job_web.pas 6.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100108101108102108103108104108105108106108107108108108109108110108111108112108113108114108115108116108117108118108119108120108121108122108123108124108125108126108127108128108129108130108131108132108133108134108135108136108137108138108139108140108141108142108143108144108145108146108147108148108149108150108151108152108153108154108155108156108157108158108159108160108161108162108163108164108165108166108167108168108169108170108171108172108173108174108175108176108177108178108179108180108181108182108183108184108185108186108187108188108189108190108191108192108193108194108195108196108197108198108199108200108201108202108203108204108205108206108207108208108209108210108211108212108213108214108215108216108217108218108219108220108221108222108223108224108225108226108227108228108229108230108231108232108233108234108235108236108237108238108239108240108241108242108243108244108245108246108247108248108249108250108251108252108253108254108255108256108257108258108259108260108261108262108263108264108265108266108267108268108269108270108271108272108273108274108275108276108277108278108279108280108281108282108283108284108285108286108287108288108289108290108291108292108293108294108295108296108297108298108299108300108301108302108303108304108305108306108307108308108309108310108311108312108313108314108315108316108317108318108319108320108321108322108323108324108325108326108327108328108329108330108331108332108333108334108335108336108337108338108339108340108341108342108343108344108345108346108347108348108349108350108351108352108353108354108355108356108357108358108359108360108361108362108363108364108365108366108367108368108369108370108371108372108373108374108375108376108377108378108379108380108381108382108383108384108385108386108387108388108389108390108391108392108393108394108395108396108397108398108399108400108401108402108403108404108405108406108407108408108409108410108411108412108413108414108415108416108417108418108419108420108421108422108423108424108425108426108427108428108429108430108431108432108433108434108435108436108437108438108439108440108441108442108443108444108445108446108447108448108449108450108451108452108453108454108455108456108457108458108459108460108461108462108463108464108465108466108467108468108469108470108471108472108473108474108475108476108477108478108479108480108481108482108483108484108485108486108487108488108489108490108491108492108493108494108495108496108497108498108499108500108501108502108503108504108505108506108507108508108509108510108511108512108513108514108515108516108517108518108519108520108521108522108523108524108525108526108527108528108529108530108531108532108533108534108535108536108537108538108539108540108541108542108543108544108545108546108547108548108549108550108551108552108553108554108555108556108557108558108559108560108561108562108563108564108565108566108567108568108569108570108571108572108573108574108575108576108577108578108579108580108581108582108583108584108585108586108587108588108589108590108591108592108593108594108595108596108597108598108599108600108601108602108603108604108605108606108607108608108609108610108611108612108613108614108615108616108617108618108619108620108621108622108623108624108625108626108627108628108629108630108631108632108633108634108635108636108637108638108639108640108641108642108643108644108645108646108647108648108649108650108651108652108653108654108655108656108657108658108659108660108661108662108663108664108665108666108667108668108669108670108671108672108673108674108675108676108677108678108679108680108681108682108683108684108685108686108687108688108689108690108691108692108693108694108695108696108697108698108699108700108701108702108703108704108705108706108707108708108709108710108711108712108713108714108715108716108717108718108719108720108721108722108723108724108725108726108727108728108729108730108731108732108733108734108735108736108737108738108739108740108741108742108743108744108745108746108747108748108749108750108751108752108753108754108755108756108757108758108759108760108761108762108763108764108765108766108767108768108769108770108771108772108773108774108775108776108777108778108779108780108781108782108783108784108785108786108787108788108789108790108791108792108793108794108795108796108797108798108799108800108801108802108803108804108805108806108807108808108809108810108811108812108813108814108815108816108817108818108819108820108821108822108823108824108825108826108827108828108829108830108831108832108833108834108835108836108837108838108839108840108841108842108843108844108845108846108847108848108849108850108851108852108853108854108855108856108857108858108859108860108861108862108863108864108865108866108867108868108869108870108871108872108873108874108875108876108877108878108879108880108881108882108883108884108885108886108887108888108889108890108891108892108893108894108895108896108897108898108899108900108901108902108903108904108905108906108907108908108909108910108911108912108913108914108915108916108917108918108919108920108921108922108923108924108925108926108927108928108929108930108931108932108933108934108935108936108937108938108939108940108941108942108943108944108945108946108947108948108949108950108951108952108953108954108955108956108957108958108959108960108961108962108963108964108965108966108967108968108969108970108971108972108973108974108975108976108977108978108979108980108981108982108983108984108985108986108987108988108989108990108991108992108993108994108995108996108997108998108999109000109001109002109003109004109005109006109007109008109009109010109011109012109013109014109015109016109017109018109019109020109021109022109023109024109025109026109027109028109029109030109031109032109033109034109035109036109037109038109039109040109041109042109043109044109045109046109047109048109049109050109051109052109053109054109055109056109057109058109059109060109061109062109063109064109065109066109067109068109069109070109071109072109073109074109075109076109077109078109079109080109081109082109083109084109085109086109087109088109089109090109091109092109093109094109095109096109097109098109099109100109101109102109103109104109105109106109107109108109109109110109111109112109113109114109115109116109117109118109119109120109121109122109123109124109125109126109127109128109129109130109131109132109133109134109135109136109137109138109139109140109141109142109143109144109145109146109147109148109149109150109151109152109153109154109155109156109157109158109159109160109161109162109163109164109165109166109167109168109169109170109171109172109173109174109175109176109177109178109179109180109181109182109183109184109185109186109187109188109189109190109191109192109193109194109195109196109197109198109199109200109201109202109203109204109205109206109207109208109209109210109211109212109213109214109215109216109217109218109219109220109221109222109223109224109225109226109227109228109229109230109231109232109233109234109235109236109237109238109239109240109241109242109243109244109245109246109247109248109249109250109251109252109253109254109255109256109257109258109259109260109261109262109263109264109265109266109267109268109269109270109271109272109273109274109275109276109277109278109279109280109281109282109283109284109285109286109287109288109289109290109291109292109293109294109295109296109297109298109299109300109301109302109303109304109305109306109307109308109309109310109311109312109313109314109315109316109317109318109319109320109321109322109323109324109325109326109327109328109329109330109331109332109333109334109335109336109337109338109339109340109341109342109343109344109345109346109347109348109349109350109351109352109353109354109355109356109357109358109359109360109361109362109363109364109365109366109367109368109369109370109371109372109373109374109375109376109377109378109379109380109381109382109383109384109385109386109387109388109389109390109391109392109393109394109395109396109397109398109399109400109401109402109403109404109405109406109407109408109409109410109411109412109413109414109415109416109417109418109419109420109421109422109423109424109425109426109427109428109429109430109431109432109433109434109435109436109437109438109439109440109441109442109443109444109445109446109447109448109449109450109451109452109453109454109455109456109457109458109459109460109461109462109463109464109465109466109467109468109469109470109471109472109473109474109475109476109477109478109479109480109481109482109483109484109485109486109487109488109489109490109491109492109493109494109495109496109497109498109499109500109501109502109503109504109505109506109507109508109509109510109511109512109513109514109515109516109517109518109519109520109521109522109523109524109525109526109527109528109529109530109531109532109533109534109535109536109537109538109539109540109541109542109543109544109545109546109547109548109549109550109551109552109553109554109555109556109557109558109559109560109561109562109563109564109565109566109567109568109569109570109571109572109573109574109575109576109577109578109579109580109581109582109583109584109585109586109587109588109589109590109591109592109593109594109595109596109597109598109599109600109601109602109603109604109605109606109607109608109609109610109611109612109613109614109615109616109617109618109619109620109621109622109623109624109625109626109627109628109629109630109631109632109633109634109635109636109637109638109639109640109641109642109643109644109645109646109647109648109649109650109651109652109653109654109655109656109657109658109659109660109661109662109663109664109665109666109667109668109669109670109671109672109673109674109675109676109677109678109679109680109681109682109683109684109685109686109687109688109689109690109691109692109693109694109695109696109697109698109699109700109701109702109703109704109705109706109707109708109709109710109711109712109713109714109715109716109717109718109719109720109721109722109723109724109725109726109727109728109729109730109731109732109733109734109735109736109737109738109739109740109741109742109743109744109745109746109747109748109749109750109751109752109753109754109755109756109757109758109759109760109761109762109763109764109765109766109767109768109769109770109771109772109773109774109775109776109777109778109779109780109781109782109783109784109785109786109787109788109789109790109791109792109793109794109795109796109797109798109799109800109801109802109803109804109805109806109807109808109809109810109811109812109813109814109815109816109817109818109819109820109821109822109823109824109825109826109827109828109829109830109831109832109833109834109835109836109837109838109839109840109841109842109843109844109845109846109847109848109849109850109851109852109853109854109855109856109857109858109859109860109861109862109863109864109865109866109867109868109869109870109871109872109873109874109875109876109877109878109879109880109881109882109883109884109885109886109887109888109889109890109891109892109893109894109895109896109897109898109899109900109901109902109903109904109905109906109907109908109909109910109911109912109913109914109915109916109917109918109919109920109921109922109923109924109925109926109927109928109929109930109931109932109933109934109935109936109937109938109939109940109941109942109943109944109945109946109947109948109949109950109951109952109953109954109955109956109957109958109959109960109961109962109963109964109965109966109967109968109969109970109971109972109973109974109975109976109977109978109979109980109981109982109983109984109985109986109987109988109989109990109991109992109993109994109995109996109997109998109999110000110001110002110003110004110005110006110007110008110009110010110011110012110013110014110015110016110017110018110019110020110021110022110023110024110025110026110027110028110029110030110031110032110033110034110035110036110037110038110039110040110041110042110043110044110045110046110047110048110049110050110051110052110053110054110055110056110057110058110059110060110061110062110063110064110065110066110067110068110069110070110071110072110073110074110075110076110077110078110079110080110081110082110083110084110085110086110087110088110089110090110091110092110093110094110095110096110097110098110099110100110101110102110103110104110105110106110107110108110109110110110111110112110113110114110115110116110117110118110119110120110121110122110123110124110125110126110127110128110129110130110131110132110133110134110135110136110137110138110139110140110141110142110143110144110145110146110147110148110149110150110151110152110153110154110155110156110157110158110159110160110161110162110163110164110165110166110167110168110169110170110171110172110173110174110175110176110177110178110179110180110181110182110183110184110185110186110187110188110189110190110191110192110193110194110195110196110197110198110199110200110201110202110203110204110205110206110207110208110209110210110211110212110213110214110215110216110217110218110219110220110221110222110223110224110225110226110227110228110229110230110231110232110233110234110235110236110237110238110239110240110241110242110243110244110245110246110247110248110249110250110251110252110253110254110255110256110257110258110259110260110261110262110263110264110265110266110267110268110269110270110271110272110273110274110275110276110277110278110279110280110281110282110283110284110285110286110287110288110289110290110291110292110293110294110295110296110297110298110299110300110301110302110303110304110305110306110307110308110309110310110311110312110313110314110315110316110317110318110319110320110321110322110323110324110325110326110327110328110329110330110331110332110333110334110335110336110337110338110339110340110341110342110343110344110345110346110347110348110349110350110351110352110353110354110355110356110357110358110359110360110361110362110363110364110365110366110367110368110369110370110371110372110373110374110375110376110377110378110379110380110381110382110383110384110385110386110387110388110389110390110391110392110393110394110395110396110397110398110399110400110401110402110403110404110405110406110407110408110409110410110411110412110413110414110415110416110417110418110419110420110421110422110423110424110425110426110427110428110429110430110431110432110433110434110435110436110437110438110439110440110441110442110443110444110445110446110447110448110449110450110451110452110453110454110455110456110457110458110459110460110461110462110463110464110465110466110467110468110469110470110471110472110473110474110475110476110477110478110479110480110481110482110483110484110485110486110487110488110489110490110491110492110493110494110495110496110497110498110499110500110501110502110503110504110505110506110507110508110509110510110511110512110513110514110515110516110517110518110519110520110521110522110523110524110525110526110527110528110529110530110531110532110533110534110535110536110537110538110539110540110541110542110543110544110545110546110547110548110549110550110551110552110553110554110555110556110557110558110559110560110561110562110563110564110565110566110567110568110569110570110571110572110573110574110575110576110577110578110579110580110581110582110583110584110585110586110587110588110589110590110591110592110593110594110595110596110597110598110599110600110601110602110603110604110605110606110607110608110609110610110611110612110613110614110615110616110617110618110619110620110621110622110623110624110625110626110627110628110629110630110631110632110633110634110635110636110637110638110639110640110641110642110643110644110645110646110647110648110649110650110651110652110653110654110655110656110657110658110659110660110661110662110663110664110665110666110667110668110669110670110671110672110673110674110675110676110677110678110679110680110681110682110683110684110685110686110687110688110689110690110691110692110693110694110695110696110697110698110699110700110701110702110703110704110705110706110707110708110709110710110711110712110713110714110715110716110717110718110719110720110721110722110723110724110725110726110727110728110729110730110731110732110733110734110735110736110737110738110739110740110741110742110743110744110745110746110747110748110749110750110751110752110753110754110755110756110757110758110759110760110761110762110763110764110765110766110767110768110769110770110771110772110773110774110775110776110777110778110779110780110781110782110783110784110785110786110787110788110789110790110791110792110793110794110795110796110797110798110799110800110801110802110803110804110805110806110807110808110809110810110811110812110813110814110815110816110817110818110819110820110821110822110823110824110825110826110827110828110829110830110831110832110833110834110835110836110837110838110839110840110841110842110843110844110845110846110847110848110849110850110851110852110853110854110855110856110857110858110859110860110861110862110863110864110865110866110867110868110869110870110871110872110873110874110875110876110877110878110879110880110881110882110883110884110885110886110887110888110889110890110891110892110893110894110895110896110897110898110899110900110901110902110903110904110905110906110907110908110909110910110911110912110913110914110915110916110917110918110919110920110921110922110923110924110925110926110927110928110929110930110931110932110933110934110935110936110937110938110939110940110941110942110943110944110945110946110947110948110949110950110951110952110953110954110955110956110957110958110959110960110961110962110963110964110965110966110967110968110969110970110971110972110973110974110975110976110977110978110979110980110981110982110983110984110985110986110987110988110989110990110991110992110993110994110995110996110997110998110999111000111001111002111003111004111005111006111007111008111009111010111011111012111013111014111015111016111017111018111019111020111021111022111023111024111025111026111027111028111029111030111031111032111033111034111035111036111037111038111039111040111041111042111043111044111045111046111047111048111049111050111051111052111053111054111055111056111057111058111059111060111061111062111063111064111065111066111067111068111069111070111071111072111073111074111075111076111077111078111079111080111081111082111083111084111085111086111087111088111089111090111091111092111093111094111095111096111097111098111099111100111101111102111103111104111105111106111107111108111109111110111111111112111113111114111115111116111117111118111119111120111121111122111123111124111125111126111127111128111129111130111131111132111133111134111135111136111137111138111139111140111141111142111143111144111145111146111147111148111149111150111151111152111153111154111155111156111157111158111159111160111161111162111163111164111165111166111167111168111169111170111171111172111173111174111175111176111177111178111179111180111181111182111183111184111185111186111187111188111189111190111191111192111193111194111195111196111197111198111199111200111201111202111203111204111205111206111207111208111209111210111211111212111213111214111215111216111217111218111219111220111221111222111223111224111225111226111227111228111229111230111231111232111233111234111235111236111237111238111239111240111241111242111243111244111245111246111247111248111249111250111251111252111253111254111255111256111257111258111259111260111261111262111263111264111265111266111267111268111269111270111271111272111273111274111275111276111277111278111279111280111281111282111283111284111285111286111287111288111289111290111291111292111293111294111295111296111297111298111299111300111301111302111303111304111305111306111307111308111309111310111311111312111313111314111315111316111317111318111319111320111321111322111323111324111325111326111327111328111329111330111331111332111333111334111335111336111337111338111339111340111341111342111343111344111345111346111347111348111349111350111351111352111353111354111355111356111357111358111359111360111361111362111363111364111365111366111367111368111369111370111371111372111373111374111375111376111377111378111379111380111381111382111383111384111385111386111387111388111389111390111391111392111393111394111395111396111397111398111399111400111401111402111403111404111405111406111407111408111409111410111411111412111413111414111415111416111417111418111419111420111421111422111423111424111425111426111427111428111429111430111431111432111433111434111435111436111437111438111439111440111441111442111443111444111445111446111447111448111449111450111451111452111453111454111455111456111457111458111459111460111461111462111463111464111465111466111467111468111469111470111471111472111473111474111475111476111477111478111479111480111481111482111483111484111485111486111487111488111489111490111491111492111493111494111495111496111497111498111499111500111501111502111503111504111505111506111507111508111509111510111511111512111513111514111515111516111517111518111519111520111521111522111523111524111525111526111527111528111529111530111531111532111533111534111535111536111537111538111539111540111541111542111543111544111545111546111547111548111549111550111551111552111553111554111555111556111557111558111559111560111561111562111563111564111565111566111567111568111569111570111571111572111573111574111575111576111577111578111579111580111581111582111583111584111585111586111587111588111589111590111591111592111593111594111595111596111597111598111599111600111601111602111603111604111605111606111607111608111609111610111611111612111613111614111615111616111617111618111619111620111621111622111623111624111625111626111627111628111629111630111631111632111633111634111635111636111637111638111639111640111641111642111643111644111645111646111647111648111649111650111651111652111653111654111655111656111657111658111659111660111661111662111663111664111665111666111667111668111669111670111671111672111673111674111675111676111677111678111679111680111681111682111683111684111685111686111687111688111689111690111691111692111693111694111695111696111697111698111699111700111701111702111703111704111705111706111707111708111709111710111711111712111713111714111715111716111717111718111719111720111721111722111723111724111725111726111727111728111729111730111731111732111733111734111735111736111737111738111739111740111741111742111743111744111745111746111747111748111749111750111751111752111753111754111755111756111757111758111759111760111761111762111763111764111765111766111767111768111769111770111771111772111773111774111775111776111777111778111779111780111781111782111783111784111785111786111787111788111789111790111791111792111793111794111795111796111797111798111799111800111801111802111803111804111805111806111807111808111809111810111811111812111813111814111815111816111817111818111819111820111821111822111823111824111825111826111827111828111829111830111831111832111833111834111835111836111837111838111839111840111841111842111843111844111845111846111847111848111849111850111851111852111853111854111855111856111857111858111859111860111861111862111863111864111865111866111867111868111869111870111871111872111873111874111875111876111877111878111879111880111881111882111883111884111885111886111887111888111889111890111891111892111893111894111895111896111897111898111899111900111901111902111903111904111905111906111907111908111909111910111911111912111913111914111915111916111917111918111919111920111921111922111923111924111925111926111927111928111929111930111931111932111933111934111935111936111937111938111939111940111941111942111943111944111945111946111947111948111949111950111951111952111953111954111955111956111957111958111959111960111961111962111963111964111965111966111967111968111969111970111971111972111973111974111975111976111977111978111979111980111981111982111983111984111985111986111987111988111989111990111991111992111993111994111995111996111997111998111999112000112001112002112003112004112005112006112007112008112009112010112011112012112013112014112015112016112017112018112019112020112021112022112023112024112025112026112027112028112029112030112031112032112033112034112035112036112037112038112039112040112041112042112043112044112045112046112047112048112049112050112051112052112053112054112055112056112057112058112059112060112061112062112063112064112065112066112067112068112069112070112071112072112073112074112075112076112077112078112079112080112081112082112083112084112085112086112087112088112089112090112091112092112093112094112095112096112097112098112099112100112101112102112103112104112105112106112107112108112109112110112111112112112113112114112115112116112117112118112119112120112121112122112123112124112125112126112127112128112129112130112131112132112133112134112135112136112137112138112139112140112141112142112143112144112145112146112147112148112149112150112151112152112153112154112155112156112157112158112159112160112161112162112163112164112165112166112167112168112169112170112171112172112173112174112175112176112177112178112179112180112181112182112183112184112185112186112187112188112189112190112191112192112193112194112195112196112197112198112199112200112201112202112203112204112205112206112207112208112209112210112211112212112213112214112215112216112217112218112219112220112221112222112223112224112225112226112227112228112229112230112231112232112233112234112235112236112237112238112239112240112241112242112243112244112245112246112247112248112249112250112251112252112253112254112255112256112257112258112259112260112261112262112263112264112265112266112267112268112269112270112271112272112273112274112275112276112277112278112279112280112281112282112283112284112285112286112287112288112289112290112291112292112293112294112295112296112297112298112299112300112301112302112303112304112305112306112307112308112309112310112311112312112313112314112315112316112317112318112319112320112321112322112323112324112325112326112327112328112329112330112331112332112333112334112335112336112337112338112339112340112341112342112343112344112345112346112347112348112349112350112351112352112353112354112355112356112357112358112359112360112361112362112363112364112365112366112367112368112369112370112371112372112373112374112375112376112377112378112379112380112381112382112383112384112385112386112387112388112389112390112391112392112393112394112395112396112397112398112399112400112401112402112403112404112405112406112407112408112409112410112411112412112413112414112415112416112417112418112419112420112421112422112423112424112425112426112427112428112429112430112431112432112433112434112435112436112437112438112439112440112441112442112443112444112445112446112447112448112449112450112451112452112453112454112455112456112457112458112459112460112461112462112463112464112465112466112467112468112469112470112471112472112473112474112475112476112477112478112479112480112481112482112483112484112485112486112487112488112489112490112491112492112493112494112495112496112497112498112499112500112501112502112503112504112505112506112507112508112509112510112511112512112513112514112515112516112517112518112519112520112521112522112523112524112525112526112527112528112529112530112531112532112533112534112535112536112537112538112539112540112541112542112543112544112545112546112547112548112549112550112551112552112553112554112555112556112557112558112559112560112561112562112563112564112565112566112567112568112569112570112571112572112573112574112575112576112577112578112579112580112581112582112583112584112585112586112587112588112589112590112591112592112593112594112595112596112597112598112599112600112601112602112603112604112605112606112607112608112609112610112611112612112613112614112615112616112617112618112619112620112621112622112623112624112625112626112627112628112629112630112631112632112633112634112635112636112637112638112639112640112641112642112643112644112645112646112647112648112649112650112651112652112653112654112655112656112657112658112659112660112661112662112663112664112665112666112667112668112669112670112671112672112673112674112675112676112677112678112679112680112681112682112683112684112685112686112687112688112689112690112691112692112693112694112695112696112697112698112699112700112701112702112703112704112705112706112707112708112709112710112711112712112713112714112715112716112717112718112719112720112721112722112723112724112725112726112727112728112729112730112731112732112733112734112735112736112737112738112739112740112741112742112743112744112745112746112747112748112749112750112751112752112753112754112755112756112757112758112759112760112761112762112763112764112765112766112767112768112769112770112771112772112773112774112775112776112777112778112779112780112781112782112783112784112785112786112787112788112789112790112791112792112793112794112795112796112797112798112799112800112801112802112803112804112805112806112807112808112809112810112811112812112813112814112815112816112817112818112819112820112821112822112823112824112825112826112827112828112829112830112831112832112833112834112835112836112837112838112839112840112841112842112843112844112845112846112847112848112849112850112851112852112853112854112855112856112857112858112859112860112861112862112863112864112865112866112867112868112869112870112871112872112873112874112875112876112877112878112879112880112881112882112883112884112885112886112887112888112889112890112891112892112893112894112895112896112897112898112899112900112901112902112903112904112905112906112907112908112909112910112911112912112913112914112915112916112917112918112919112920112921112922112923112924112925112926112927112928112929112930112931112932112933112934112935112936112937112938112939112940112941112942112943112944112945112946112947112948112949112950112951112952112953112954112955112956112957112958112959112960112961112962112963112964112965112966112967112968112969112970112971112972112973112974112975112976112977112978112979112980112981112982112983112984112985112986112987112988112989112990112991112992112993112994112995112996112997112998112999113000113001113002113003113004113005113006113007113008113009113010113011113012113013113014113015113016113017113018113019113020113021113022113023113024113025113026113027113028113029113030113031113032113033113034113035113036113037113038113039113040113041113042113043113044113045113046113047113048113049113050113051113052113053113054113055113056113057113058113059113060113061113062113063113064113065113066113067113068113069113070113071113072113073113074113075113076113077113078113079113080113081113082113083113084113085113086113087113088113089113090113091113092113093113094113095113096113097113098113099113100113101113102113103113104113105113106113107113108113109113110113111113112113113113114113115113116113117113118113119113120113121113122113123113124113125113126113127113128113129113130113131113132113133113134113135113136113137113138113139113140113141113142113143113144113145113146113147113148113149113150113151113152113153113154113155113156113157113158113159113160113161113162113163113164113165113166113167113168113169113170113171113172113173113174113175113176113177113178113179113180113181113182113183113184113185113186113187113188113189113190113191113192113193113194113195113196113197113198113199113200113201113202113203113204113205113206113207113208113209113210113211113212113213113214113215113216113217113218113219113220113221113222113223113224113225113226113227113228113229113230113231113232113233113234113235113236113237113238113239113240113241113242113243113244113245113246113247113248113249113250113251113252113253113254113255113256113257113258113259113260113261113262113263113264113265113266113267113268113269113270113271113272113273113274113275113276113277113278113279113280113281113282113283113284113285113286113287113288113289113290113291113292113293113294113295113296113297113298113299113300113301113302113303113304113305113306113307113308113309113310113311113312113313113314113315113316113317113318113319113320113321113322113323113324113325113326113327113328113329113330113331113332113333113334113335113336113337113338113339113340113341113342113343113344113345113346113347113348113349113350113351113352113353113354113355113356113357113358113359113360113361113362113363113364113365113366113367113368113369113370113371113372113373113374113375113376113377113378113379113380113381113382113383113384113385113386113387113388113389113390113391113392113393113394113395113396113397113398113399113400113401113402113403113404113405113406113407113408113409113410113411113412113413113414113415113416113417113418113419113420113421113422113423113424113425113426113427113428113429113430113431113432113433113434113435113436113437113438113439113440113441113442113443113444113445113446113447113448113449113450113451113452113453113454113455113456113457113458113459113460113461113462113463113464113465113466113467113468113469113470113471113472113473113474113475113476113477113478113479113480113481113482113483113484113485113486113487113488113489113490113491113492113493113494113495113496113497113498113499113500113501113502113503113504113505113506113507113508113509113510113511113512113513113514113515113516113517113518113519113520113521113522113523113524113525113526113527113528113529113530113531113532113533113534113535113536113537113538113539113540113541113542113543113544113545113546113547113548113549113550113551113552113553113554113555113556113557113558113559113560113561113562113563113564113565113566113567113568113569113570113571113572113573113574113575113576113577113578113579113580113581113582113583113584113585113586113587113588113589113590113591113592113593113594113595113596113597113598113599113600113601113602113603113604113605113606113607113608113609113610113611113612113613113614113615113616113617113618113619113620113621113622113623113624113625113626113627113628113629113630113631113632113633113634113635113636113637113638113639113640113641113642113643113644113645113646113647113648113649113650113651113652113653113654113655113656113657113658113659113660113661113662113663113664113665113666113667113668113669113670113671113672113673113674113675113676113677113678113679113680113681113682113683113684113685113686113687113688113689113690113691113692113693113694113695113696113697113698113699113700113701113702113703113704113705113706113707113708113709113710113711113712113713113714113715113716113717113718113719113720113721113722113723113724113725113726113727113728113729113730113731113732113733113734113735113736113737113738113739113740113741113742113743113744113745113746113747113748113749113750113751113752113753113754113755113756113757113758113759113760113761113762113763113764113765113766113767113768113769113770113771113772113773113774113775113776113777113778113779113780113781113782113783113784113785113786113787113788113789113790113791113792113793113794113795113796113797113798113799113800113801113802113803113804113805113806113807113808113809113810113811113812113813113814113815113816113817113818113819113820113821113822113823113824113825113826113827113828113829113830113831113832113833113834113835113836113837113838113839113840113841113842113843113844113845113846113847113848113849113850113851113852113853113854113855113856113857113858113859113860113861113862113863113864113865113866113867113868113869113870113871113872113873113874113875113876113877113878113879113880113881113882113883113884113885113886113887113888113889113890113891113892113893113894113895113896113897113898113899113900113901113902113903113904113905113906113907113908113909113910113911113912113913113914113915113916113917113918113919113920113921113922113923113924113925113926113927113928113929113930113931113932113933113934113935113936113937113938113939113940113941113942113943113944113945113946113947113948113949113950113951113952113953113954113955113956113957113958113959113960113961113962113963113964113965113966113967113968113969113970113971113972113973113974113975113976113977113978113979113980113981113982113983113984113985113986113987113988113989113990113991113992113993113994113995113996113997113998113999114000114001114002114003114004114005114006114007114008114009114010114011114012114013114014114015114016114017114018114019114020114021114022114023114024114025114026114027114028114029114030114031114032114033114034114035114036114037114038114039114040114041114042114043114044114045114046114047114048114049114050114051114052114053114054114055114056114057114058114059114060114061114062114063114064114065114066114067114068114069114070114071114072114073114074114075114076114077114078114079114080114081114082114083114084114085114086114087114088114089114090114091114092114093114094114095114096114097114098114099114100114101114102114103114104114105114106114107114108114109114110114111114112114113114114114115114116114117114118114119114120114121114122114123114124114125114126114127114128114129114130114131114132114133114134114135114136114137114138114139114140114141114142114143114144114145114146114147114148114149114150114151114152114153114154114155114156114157114158114159114160114161114162114163114164114165114166114167114168114169114170114171114172114173114174114175114176114177114178114179114180114181114182114183114184114185114186114187114188114189114190114191114192114193114194114195114196114197114198114199114200114201114202114203114204114205114206114207114208114209114210114211114212114213114214114215114216114217114218114219114220114221114222114223114224114225114226114227114228114229114230114231114232114233114234114235114236114237114238114239114240114241114242114243114244114245114246114247114248114249114250114251114252114253114254114255114256114257114258114259114260114261114262114263114264114265114266114267114268114269114270114271114272114273114274114275114276114277114278114279114280114281114282114283114284114285114286114287114288114289114290114291114292114293114294114295114296114297114298114299114300114301114302114303114304114305114306114307114308114309114310114311114312114313114314114315114316114317114318114319114320114321114322114323114324114325114326114327114328114329114330114331114332114333114334114335114336114337114338114339114340114341114342114343114344114345114346114347114348114349114350114351114352114353114354114355114356114357114358114359114360114361114362114363114364114365114366114367114368114369114370114371114372114373114374114375114376114377114378114379114380114381114382114383114384114385114386114387114388114389114390114391114392114393114394114395114396114397114398114399114400114401114402114403114404114405114406114407114408114409114410114411114412114413114414114415114416114417114418114419114420114421114422114423114424114425114426114427114428114429114430114431114432114433114434114435114436114437114438114439114440114441114442114443114444114445114446114447114448114449114450114451114452114453114454114455114456114457114458114459114460114461114462114463114464114465114466114467114468114469114470114471114472114473114474114475114476114477114478114479114480114481114482114483114484114485114486114487114488114489114490114491114492114493114494114495114496114497114498114499114500114501114502114503114504114505114506114507114508114509114510114511114512114513114514114515114516114517114518114519114520114521114522114523114524114525114526114527114528114529114530114531114532114533114534114535114536114537114538114539114540114541114542114543114544114545114546114547114548114549114550114551114552114553114554114555114556114557114558114559114560114561114562114563114564114565114566114567114568114569114570114571114572114573114574114575114576114577114578114579114580114581114582114583114584114585114586114587114588114589114590114591114592114593114594114595114596114597114598114599114600114601114602114603114604114605114606114607114608114609114610114611114612114613114614114615114616114617114618114619114620114621114622114623114624114625114626114627114628114629114630114631114632114633114634114635114636114637114638114639114640114641114642114643114644114645114646114647114648114649114650114651114652114653114654114655114656114657114658114659114660114661114662114663114664114665114666114667114668114669114670114671114672114673114674114675114676114677114678114679114680114681114682114683114684114685114686114687114688114689114690114691114692114693114694114695114696114697114698114699114700114701114702114703114704114705114706114707114708114709114710114711114712114713114714114715114716114717114718114719114720114721114722114723114724114725114726114727114728114729114730114731114732114733114734114735114736114737114738114739114740114741114742114743114744114745114746114747114748114749114750114751114752114753114754114755114756114757114758114759114760114761114762114763114764114765114766114767114768114769114770114771114772114773114774114775114776114777114778114779114780114781114782114783114784114785114786114787114788114789114790114791114792114793114794114795114796114797114798114799114800114801114802114803114804114805114806114807114808114809114810114811114812114813114814114815114816114817114818114819114820114821114822114823114824114825114826114827114828114829114830114831114832114833114834114835114836114837114838114839114840114841114842114843114844114845114846114847114848114849114850114851114852114853114854114855114856114857114858114859114860114861114862114863114864114865114866114867114868114869114870114871114872114873114874114875114876114877114878114879114880114881114882114883114884114885114886114887114888114889114890114891114892114893114894114895114896114897114898114899114900114901114902114903114904114905114906114907114908114909114910114911114912114913114914114915114916114917114918114919114920114921114922114923114924114925114926114927114928114929114930114931114932114933114934114935114936114937114938114939114940114941114942114943114944114945114946114947114948114949114950114951114952114953114954114955114956114957114958114959114960114961114962114963114964114965114966114967114968114969114970114971114972114973114974114975114976114977114978114979114980114981114982114983114984114985114986114987114988114989114990114991114992114993114994114995114996114997114998114999115000115001115002115003115004115005115006115007115008115009115010115011115012115013115014115015115016115017115018115019115020115021115022115023115024115025115026115027115028115029115030115031115032115033115034115035115036115037115038115039115040115041115042115043115044115045115046115047115048115049115050115051115052115053115054115055115056115057115058115059115060115061115062115063115064115065115066115067115068115069115070115071115072115073115074115075115076115077115078115079115080115081115082115083115084115085115086115087115088115089115090115091115092115093115094115095115096115097115098115099115100115101115102115103115104115105115106115107115108115109115110115111115112115113115114115115115116115117115118115119115120115121115122115123115124115125115126115127115128115129115130115131115132115133115134115135115136115137115138115139115140115141115142115143115144115145115146115147115148115149115150115151115152115153115154115155115156115157115158115159115160115161115162115163115164115165115166115167115168115169115170115171115172115173115174115175115176115177115178115179115180115181115182115183115184115185115186115187115188115189115190115191115192115193115194115195115196115197115198115199115200115201115202115203115204115205115206115207115208115209115210115211115212115213115214115215115216115217115218115219115220115221115222115223115224115225115226115227115228115229115230115231115232115233115234115235115236115237115238115239115240115241115242115243115244115245115246115247115248115249115250115251115252115253115254115255115256115257115258115259115260115261115262115263115264115265115266115267115268115269115270115271115272115273115274115275115276115277115278115279115280115281115282115283115284115285115286115287115288115289115290115291115292115293115294115295115296115297115298115299115300115301115302115303115304115305115306115307115308115309115310115311115312115313115314115315115316115317115318115319115320115321115322115323115324115325115326115327115328115329115330115331115332115333115334115335115336115337115338115339115340115341115342115343115344115345115346115347115348115349115350115351115352115353115354115355115356115357115358115359115360115361115362115363115364115365115366115367115368115369115370115371115372115373115374115375115376115377115378115379115380115381115382115383115384115385115386115387115388115389115390115391115392115393115394115395115396115397115398115399115400115401115402115403115404115405115406115407115408115409115410115411115412115413115414115415115416115417115418115419115420115421115422115423115424115425115426115427115428115429115430115431115432115433115434115435115436115437115438115439115440115441115442115443115444115445115446115447115448115449115450115451115452115453115454115455115456115457115458115459115460115461115462115463115464115465115466115467115468115469115470115471115472115473115474115475115476115477115478115479115480115481115482115483115484115485115486115487115488115489115490115491115492115493115494115495115496115497115498115499115500115501115502115503115504115505115506115507115508115509115510115511115512115513115514115515115516115517115518115519115520115521115522115523115524115525115526115527115528115529115530115531115532115533115534115535115536115537115538115539115540115541115542115543115544115545115546115547115548115549115550115551115552115553115554115555115556115557115558115559115560115561115562115563115564115565115566115567115568115569115570115571115572115573115574115575115576115577115578115579115580115581115582115583115584115585115586115587115588115589115590115591115592115593115594115595115596115597115598115599115600115601115602115603115604115605115606115607115608115609115610115611115612115613115614115615115616115617115618115619115620115621115622115623115624115625115626115627115628115629115630115631115632115633115634115635115636115637115638115639115640115641115642115643115644115645115646115647115648115649115650115651115652115653115654115655115656115657115658115659115660115661115662115663115664115665115666115667115668115669115670115671115672115673115674115675115676115677115678115679115680115681115682115683115684115685115686115687115688115689115690115691115692115693115694115695115696115697115698115699115700115701115702115703115704115705115706115707115708115709115710115711115712115713115714115715115716115717115718115719115720115721115722115723115724115725115726115727115728115729115730115731115732115733115734115735115736115737115738115739115740115741115742115743115744115745115746115747115748115749115750115751115752115753115754115755115756115757115758115759115760115761115762115763115764115765115766115767115768115769115770115771115772115773115774115775115776115777115778115779115780115781115782115783115784115785115786115787115788115789115790115791115792115793115794115795115796115797115798115799115800115801115802115803115804115805115806115807115808115809115810115811115812115813115814115815115816115817115818115819115820115821115822115823115824115825115826115827115828115829115830115831115832115833115834115835115836115837115838115839115840115841115842115843115844115845115846115847115848115849115850115851115852115853115854115855115856115857115858115859115860115861115862115863115864115865115866115867115868115869115870115871115872115873115874115875115876115877115878115879115880115881115882115883115884115885115886115887115888115889115890115891115892115893115894115895115896115897115898115899115900115901115902115903115904115905115906115907115908115909115910115911115912115913115914115915115916115917115918115919115920115921115922115923115924115925115926115927115928115929115930115931115932115933115934115935115936115937115938115939115940115941115942115943115944115945115946115947115948115949115950115951115952115953115954115955115956115957115958115959115960115961115962115963115964115965115966115967115968115969115970115971115972115973115974115975115976115977115978115979115980115981115982115983115984115985115986115987115988115989115990115991115992115993115994115995115996115997115998115999116000116001116002116003116004116005116006116007116008116009116010116011116012116013116014116015116016116017116018116019116020116021116022116023116024116025116026116027116028116029116030116031116032116033116034116035116036116037116038116039116040116041116042116043116044116045116046116047116048116049116050116051116052116053116054116055116056116057116058116059116060116061116062116063116064116065116066116067116068116069116070116071116072116073116074116075116076116077116078116079116080116081116082116083116084116085116086116087116088116089116090116091116092116093116094116095116096116097116098116099116100116101116102116103116104116105116106116107116108116109116110116111116112116113116114116115116116116117116118116119116120116121116122116123116124116125116126116127116128116129116130116131116132116133116134116135116136116137116138116139116140116141116142116143116144116145116146116147116148116149116150116151116152116153116154116155116156116157116158116159116160116161116162116163116164116165116166116167116168116169116170116171116172116173116174116175116176116177116178116179116180116181116182116183116184116185116186116187116188116189116190116191116192116193116194116195116196116197116198116199116200116201116202116203116204116205116206116207116208116209116210116211116212116213116214116215116216116217116218116219116220116221116222116223116224116225116226116227116228116229116230116231116232116233116234116235116236116237116238116239116240116241116242116243116244116245116246116247116248116249116250116251116252116253116254116255116256116257116258116259116260116261116262116263116264116265116266116267116268116269116270116271116272116273116274116275116276116277116278116279116280116281116282116283116284116285116286116287116288116289116290116291116292116293116294116295116296116297116298116299116300116301116302116303116304116305116306116307116308116309116310116311116312116313116314116315116316116317116318116319116320116321116322116323116324116325116326116327116328116329116330116331116332116333116334116335116336116337116338116339116340116341116342116343116344116345116346116347116348116349116350116351116352116353116354116355116356116357116358116359116360116361116362116363116364116365116366116367116368116369116370116371116372116373116374116375116376116377116378116379116380116381116382116383116384116385116386116387116388116389116390116391116392116393116394116395116396116397116398116399116400116401116402116403116404116405116406116407116408116409116410116411116412116413116414116415116416116417116418116419116420116421116422116423116424116425116426116427116428116429116430116431116432116433116434116435116436116437116438116439116440116441116442116443116444116445116446116447116448116449116450116451116452116453116454116455116456116457116458116459116460116461116462116463116464116465116466116467116468116469116470116471116472116473116474116475116476116477116478116479116480116481116482116483116484116485116486116487116488116489116490116491116492116493116494116495116496116497116498116499116500116501116502116503116504116505116506116507116508116509116510116511116512116513116514116515116516116517116518116519116520116521116522116523116524116525116526116527116528116529116530116531116532116533116534116535116536116537116538116539116540116541116542116543116544116545116546116547116548116549116550116551116552116553116554116555116556116557116558116559116560116561116562116563116564116565116566116567116568116569116570116571116572116573116574116575116576116577116578116579116580116581116582116583116584116585116586116587116588116589116590116591116592116593116594116595116596116597116598116599116600116601116602116603116604116605116606116607116608116609116610116611116612116613116614116615116616116617116618116619116620116621116622116623116624116625116626116627116628116629116630116631116632116633116634116635116636116637116638116639116640116641116642116643116644116645116646116647116648116649116650116651116652116653116654116655116656116657116658116659116660116661116662116663116664116665116666116667116668116669116670116671116672116673116674116675116676116677116678116679116680116681116682116683116684116685116686116687116688116689116690116691116692116693116694116695116696116697116698116699116700116701116702116703116704116705116706116707116708116709116710116711116712116713116714116715116716116717116718116719116720116721116722116723116724116725116726116727116728116729116730116731116732116733116734116735116736116737116738116739116740116741116742116743116744116745116746116747116748116749116750116751116752116753116754116755116756116757116758116759116760116761116762116763116764116765116766116767116768116769116770116771116772116773116774116775116776116777116778116779116780116781116782116783116784116785116786116787116788116789116790116791116792116793116794116795116796116797116798116799116800116801116802116803116804116805116806116807116808116809116810116811116812116813116814116815116816116817116818116819116820116821116822116823116824116825116826116827116828116829116830116831116832116833116834116835116836116837116838116839116840116841116842116843116844116845116846116847116848116849116850116851116852116853116854116855116856116857116858116859116860116861116862116863116864116865116866116867116868116869116870116871116872116873116874116875116876116877116878116879116880116881116882116883116884116885116886116887116888116889116890116891116892116893116894116895116896116897116898116899116900116901116902116903116904116905116906116907116908116909116910116911116912116913116914116915116916116917116918116919116920116921116922116923116924116925116926116927116928116929116930116931116932116933116934116935116936116937116938116939116940116941116942116943116944116945116946116947116948116949116950116951116952116953116954116955116956116957116958116959116960116961116962116963116964116965116966116967116968116969116970116971116972116973116974116975116976116977116978116979116980116981116982116983116984116985116986116987116988116989116990116991116992116993116994116995116996116997116998116999117000117001117002117003117004117005117006117007117008117009117010117011117012117013117014117015117016117017117018117019117020117021117022117023117024117025117026117027117028117029117030117031117032117033117034117035117036117037117038117039117040117041117042117043117044117045117046117047117048117049117050117051117052117053117054117055117056117057117058117059117060117061117062117063117064117065117066117067117068117069117070117071117072117073117074117075117076117077117078117079117080117081117082117083117084117085117086117087117088117089117090117091117092117093117094117095117096117097117098117099117100117101117102117103117104117105117106117107117108117109117110117111117112117113117114117115117116117117117118117119117120117121117122117123117124117125117126117127117128117129117130117131117132117133117134117135117136117137117138117139117140117141117142117143117144117145117146117147117148117149117150117151117152117153117154117155117156117157117158117159117160117161117162117163117164117165117166117167117168117169117170117171117172117173117174117175117176117177117178117179117180117181117182117183117184117185117186117187117188117189117190117191117192117193117194117195117196117197117198117199117200117201117202117203117204117205117206117207117208117209117210117211117212117213117214117215117216117217117218117219117220117221117222117223117224117225117226117227117228117229117230117231117232117233117234117235117236117237117238117239117240117241117242117243117244117245117246117247117248117249117250117251117252117253117254117255117256117257117258117259117260117261117262117263117264117265117266117267117268117269117270117271117272117273117274117275117276117277117278117279117280117281117282117283117284117285117286117287117288117289117290117291117292117293117294117295117296117297117298117299117300117301117302117303117304117305117306117307117308117309117310117311117312117313117314117315117316117317117318117319117320117321117322117323117324117325117326117327117328117329117330117331117332117333117334117335117336117337117338117339117340117341117342117343117344117345117346117347117348117349117350117351117352117353117354117355117356117357117358117359117360117361117362117363117364117365117366117367117368117369117370117371117372117373117374117375117376117377117378117379117380117381117382117383117384117385117386117387117388117389117390117391117392117393117394117395117396117397117398117399117400117401117402117403117404117405117406117407117408117409117410117411117412117413117414117415117416117417117418117419117420117421117422117423117424117425117426117427117428117429117430117431117432117433117434117435117436117437117438117439117440117441117442117443117444117445117446117447117448117449117450117451117452117453117454117455117456117457117458117459117460117461117462117463117464117465117466117467117468117469117470117471117472117473117474117475117476117477117478117479117480117481117482117483117484117485117486117487117488117489117490117491117492117493117494117495117496117497117498117499117500117501117502117503117504117505117506117507117508117509117510117511117512117513117514117515117516117517117518117519117520117521117522117523117524117525117526117527117528117529117530117531117532117533117534117535117536117537117538117539117540117541117542117543117544117545117546117547117548117549117550117551117552117553117554117555117556117557117558117559117560117561117562117563117564117565117566117567117568117569117570117571117572117573117574117575117576117577117578117579117580117581117582117583117584117585117586117587117588117589117590117591117592117593117594117595117596117597117598117599117600117601117602117603117604117605117606117607117608117609117610117611117612117613117614117615117616117617117618117619117620117621117622117623117624117625117626117627117628117629117630117631117632117633117634117635117636117637117638117639117640117641117642117643117644117645117646117647117648117649117650117651117652117653117654117655117656117657117658117659117660117661117662117663117664117665117666117667117668117669117670117671117672117673117674117675117676117677117678117679117680117681117682117683117684117685117686117687117688117689117690117691117692117693117694117695117696117697117698117699117700117701117702117703117704117705117706117707117708117709117710117711117712117713117714117715117716117717117718117719117720117721117722117723117724117725117726117727117728117729117730117731117732117733117734117735117736117737117738117739117740117741117742117743117744117745117746117747117748117749117750117751117752117753117754117755117756117757117758117759117760117761117762117763117764117765117766117767117768117769117770117771117772117773117774117775117776117777117778117779117780117781117782117783117784117785117786117787117788117789117790117791117792117793117794117795117796117797117798117799117800117801117802117803117804117805117806117807117808117809117810117811117812117813117814117815117816117817117818117819117820117821117822117823117824117825117826117827117828117829117830117831117832117833117834117835117836117837117838117839117840117841117842117843117844117845117846117847117848117849117850117851117852117853117854117855117856117857117858117859117860117861117862117863117864117865117866117867117868117869117870117871117872117873117874117875117876117877117878117879117880117881117882117883117884117885117886117887117888117889117890117891117892117893117894117895117896117897117898117899117900117901117902117903117904117905117906117907117908117909117910117911117912117913117914117915117916117917117918117919117920117921117922117923117924117925117926117927117928117929117930117931117932117933117934117935117936117937117938117939117940117941117942117943117944117945117946117947117948117949117950117951117952117953117954117955117956117957117958117959117960117961117962117963117964117965117966117967117968117969117970117971117972117973117974117975117976117977117978117979117980117981117982117983117984117985117986117987117988117989117990117991117992117993117994117995117996117997117998117999118000118001118002118003118004118005118006118007118008118009118010118011118012118013118014118015118016118017118018118019118020118021118022118023118024118025118026118027118028118029118030118031118032118033118034118035118036118037118038118039118040118041118042118043118044118045118046118047118048118049118050118051118052118053118054118055118056118057118058118059118060118061118062118063118064118065118066118067118068118069118070118071118072118073118074118075118076118077118078118079118080118081118082118083118084118085118086118087118088118089118090118091118092118093118094118095118096118097118098118099118100118101118102118103118104118105118106118107118108118109118110118111118112118113118114118115118116118117118118118119118120118121118122118123118124118125118126118127118128118129118130118131118132118133118134118135118136118137118138118139118140118141118142118143118144118145118146118147118148118149118150118151118152118153118154118155118156118157118158118159118160118161118162118163118164118165118166118167118168118169118170118171118172118173118174118175118176118177118178118179118180118181118182118183118184118185118186118187118188118189118190118191118192118193118194118195118196118197118198118199118200118201118202118203118204118205118206118207118208118209118210118211118212118213118214118215118216118217118218118219118220118221118222118223118224118225118226118227118228118229118230118231118232118233118234118235118236118237118238118239118240118241118242118243118244118245118246118247118248118249118250118251118252118253118254118255118256118257118258118259118260118261118262118263118264118265118266118267118268118269118270118271118272118273118274118275118276118277118278118279118280118281118282118283118284118285118286118287118288118289118290118291118292118293118294118295118296118297118298118299118300118301118302118303118304118305118306118307118308118309118310118311118312118313118314118315118316118317118318118319118320118321118322118323118324118325118326118327118328118329118330118331118332118333118334118335118336118337118338118339118340118341118342118343118344118345118346118347118348118349118350118351118352118353118354118355118356118357118358118359118360118361118362118363118364118365118366118367118368118369118370118371118372118373118374118375118376118377118378118379118380118381118382118383118384118385118386118387118388118389118390118391118392118393118394118395118396118397118398118399118400118401118402118403118404118405118406118407118408118409118410118411118412118413118414118415118416118417118418118419118420118421118422118423118424118425118426118427118428118429118430118431118432118433118434118435118436118437118438118439118440118441118442118443118444118445118446118447118448118449118450118451118452118453118454118455118456118457118458118459118460118461118462118463118464118465118466118467118468118469118470118471118472118473118474118475118476118477118478118479118480118481118482118483118484118485118486118487118488118489118490118491118492118493118494118495118496118497118498118499118500118501118502118503118504118505118506118507118508118509118510118511118512118513118514118515118516118517118518118519118520118521118522118523118524118525118526118527118528118529118530118531118532118533118534118535118536118537118538118539118540118541118542118543118544118545118546118547118548118549118550118551118552118553118554118555118556118557118558118559118560118561118562118563118564118565118566118567118568118569118570118571118572118573118574118575118576118577118578118579118580118581118582118583118584118585118586118587118588118589118590118591118592118593118594118595118596118597118598118599118600118601118602118603118604118605118606118607118608118609118610118611118612118613118614118615118616118617118618118619118620118621118622118623118624118625118626118627118628118629118630118631118632118633118634118635118636118637118638118639118640118641118642118643118644118645118646118647118648118649118650118651118652118653118654118655118656118657118658118659118660118661118662118663118664118665118666118667118668118669118670118671118672118673118674118675118676118677118678118679118680118681118682118683118684118685118686118687118688118689118690118691118692118693118694118695118696118697118698118699118700118701118702118703118704118705118706118707118708118709118710118711118712118713118714118715118716118717118718118719118720118721118722118723118724118725118726118727118728118729118730118731118732118733118734118735118736118737118738118739118740118741118742118743118744118745118746118747118748118749118750118751118752118753118754118755118756118757118758118759118760118761118762118763118764118765118766118767118768118769118770118771118772118773118774118775118776118777118778118779118780118781118782118783118784118785118786118787118788118789118790118791118792118793118794118795118796118797118798118799118800118801118802118803118804118805118806118807118808118809118810118811118812118813118814118815118816118817118818118819118820118821118822118823118824118825118826118827118828118829118830118831118832118833118834118835118836118837118838118839118840118841118842118843118844118845118846118847118848118849118850118851118852118853118854118855118856118857118858118859118860118861118862118863118864118865118866118867118868118869118870118871118872118873118874118875118876118877118878118879118880118881118882118883118884118885118886118887118888118889118890118891118892118893118894118895118896118897118898118899118900118901118902118903118904118905118906118907118908118909118910118911118912118913118914118915118916118917118918118919118920118921118922118923118924118925118926118927118928118929118930118931118932118933118934118935118936118937118938118939118940118941118942118943118944118945118946118947118948118949118950118951118952118953118954118955118956118957118958118959118960118961118962118963118964118965118966118967118968118969118970118971118972118973118974118975118976118977118978118979118980118981118982118983118984118985118986118987118988118989118990118991118992118993118994118995118996118997118998118999119000119001119002119003119004119005119006119007119008119009119010119011119012119013119014119015119016119017119018119019119020119021119022119023119024119025119026119027119028119029119030119031119032119033119034119035119036119037119038119039119040119041119042119043119044119045119046119047119048119049119050119051119052119053119054119055119056119057119058119059119060119061119062119063119064119065119066119067119068119069119070119071119072119073119074119075119076119077119078119079119080119081119082119083119084119085119086119087119088119089119090119091119092119093119094119095119096119097119098119099119100119101119102119103119104119105119106119107119108119109119110119111119112119113119114119115119116119117119118119119119120119121119122119123119124119125119126119127119128119129119130119131119132119133119134119135119136119137119138119139119140119141119142119143119144119145119146119147119148119149119150119151119152119153119154119155119156119157119158119159119160119161119162119163119164119165119166119167119168119169119170119171119172119173119174119175119176119177119178119179119180119181119182119183119184119185119186119187119188119189119190119191119192119193119194119195119196119197119198119199119200119201119202119203119204119205119206119207119208119209119210119211119212119213119214119215119216119217119218119219119220119221119222119223119224119225119226119227119228119229119230119231119232119233119234119235119236119237119238119239119240119241119242119243119244119245119246119247119248119249119250119251119252119253119254119255119256119257119258119259119260119261119262119263119264119265119266119267119268119269119270119271119272119273119274119275119276119277119278119279119280119281119282119283119284119285119286119287119288119289119290119291119292119293119294119295119296119297119298119299119300119301119302119303119304119305119306119307119308119309119310119311119312119313119314119315119316119317119318119319119320119321119322119323119324119325119326119327119328119329119330119331119332119333119334119335119336119337119338119339119340119341119342119343119344119345119346119347119348119349119350119351119352119353119354119355119356119357119358119359119360119361119362119363119364119365119366119367119368119369119370119371119372119373119374119375119376119377119378119379119380119381119382119383119384119385119386119387119388119389119390119391119392119393119394119395119396119397119398119399119400119401119402119403119404119405119406119407119408119409119410119411119412119413119414119415119416119417119418119419119420119421119422119423119424119425119426119427119428119429119430119431119432119433119434119435119436119437119438119439119440119441119442119443119444119445119446119447119448119449119450119451119452119453119454119455119456119457119458119459119460119461119462119463119464119465119466119467119468119469119470119471119472119473119474119475119476119477119478119479119480119481119482119483119484119485119486119487119488119489119490119491119492119493119494119495119496119497119498119499119500119501119502119503119504119505119506119507119508119509119510119511119512119513119514119515119516119517119518119519119520119521119522119523119524119525119526119527119528119529119530119531119532119533119534119535119536119537119538119539119540119541119542119543119544119545119546119547119548119549119550119551119552119553119554119555119556119557119558119559119560119561119562119563119564119565119566119567119568119569119570119571119572119573119574119575119576119577119578119579119580119581119582119583119584119585119586119587119588119589119590119591119592119593119594119595119596119597119598119599119600119601119602119603119604119605119606119607119608119609119610119611119612119613119614119615119616119617119618119619119620119621119622119623119624119625119626119627119628119629119630119631119632119633119634119635119636119637119638119639119640119641119642119643119644119645119646119647119648119649119650119651119652119653119654119655119656119657119658119659119660119661119662119663119664119665119666119667119668119669119670119671119672119673119674119675119676119677119678119679119680119681119682119683119684119685119686119687119688119689119690119691119692119693119694119695119696119697119698119699119700119701119702119703119704119705119706119707119708119709119710119711119712119713119714119715119716119717119718119719119720119721119722119723119724119725119726119727119728119729119730119731119732119733119734119735119736119737119738119739119740119741119742119743119744119745119746119747119748119749119750119751119752119753119754119755119756119757119758119759119760119761119762119763119764119765119766119767119768119769119770119771119772119773119774119775119776119777119778119779119780119781119782119783119784119785119786119787119788119789119790119791119792119793119794119795119796119797119798119799119800119801119802119803119804119805119806119807119808119809119810119811119812119813119814119815119816119817119818119819119820119821119822119823119824119825119826119827119828119829119830119831119832119833119834119835119836119837119838119839119840119841119842119843119844119845119846119847119848119849119850119851119852119853119854119855119856119857119858119859119860119861119862119863119864119865119866119867119868119869119870119871119872119873119874119875119876119877119878119879119880119881119882119883119884119885119886119887119888119889119890119891119892119893119894119895119896119897119898119899119900119901119902119903119904119905119906119907119908119909119910119911119912119913119914119915119916119917119918119919119920119921119922119923119924119925119926119927119928119929119930119931119932119933119934119935119936119937119938119939119940119941119942119943119944119945119946119947119948119949119950119951119952119953119954119955119956119957119958119959119960119961119962119963119964119965119966119967119968119969119970119971119972119973119974119975119976119977119978119979119980119981119982119983119984119985119986119987119988119989119990119991119992119993119994119995119996119997119998119999120000120001120002120003120004120005120006120007120008120009120010120011120012120013120014120015120016120017120018120019120020120021120022120023120024120025120026120027120028120029120030120031120032120033120034120035120036120037120038120039120040120041120042120043120044120045120046120047120048120049120050120051120052120053120054120055120056120057120058120059120060120061120062120063120064120065120066120067120068120069120070120071120072120073120074120075120076120077120078120079120080120081120082120083120084120085120086120087120088120089120090120091120092120093120094120095120096120097120098120099120100120101120102120103120104120105120106120107120108120109120110120111120112120113120114120115120116120117120118120119120120120121120122120123120124120125120126120127120128120129120130120131120132120133120134120135120136120137120138120139120140120141120142120143120144120145120146120147120148120149120150120151120152120153120154120155120156120157120158120159120160120161120162120163120164120165120166120167120168120169120170120171120172120173120174120175120176120177120178120179120180120181120182120183120184120185120186120187120188120189120190120191120192120193120194120195120196120197120198120199120200120201120202120203120204120205120206120207120208120209120210120211120212120213120214120215120216120217120218120219120220120221120222120223120224120225120226120227120228120229120230120231120232120233120234120235120236120237120238120239120240120241120242120243120244120245120246120247120248120249120250120251120252120253120254120255120256120257120258120259120260120261120262120263120264120265120266120267120268120269120270120271120272120273120274120275120276120277120278120279120280120281120282120283120284120285120286120287120288120289120290120291120292120293120294120295120296120297120298120299120300120301120302120303120304120305120306120307120308120309120310120311120312120313120314120315120316120317120318120319120320120321120322120323120324120325120326120327120328120329120330120331120332120333120334120335120336120337120338120339120340120341120342120343120344120345120346120347120348120349120350120351120352120353120354120355120356120357120358120359120360120361120362120363120364120365120366120367120368120369120370120371120372120373120374120375120376120377120378120379120380120381120382120383120384120385120386120387120388120389120390120391120392120393120394120395120396120397120398120399120400120401120402120403120404120405120406120407120408120409120410120411120412120413120414120415120416120417120418120419120420120421120422120423120424120425120426120427120428120429120430120431120432120433120434120435120436120437120438120439120440120441120442120443120444120445120446120447120448120449120450120451120452120453120454120455120456120457120458120459120460120461120462120463120464120465120466120467120468120469120470120471120472120473120474120475120476120477120478120479120480120481120482120483120484120485120486120487120488120489120490120491120492120493120494120495120496120497120498120499120500120501120502120503120504120505120506120507120508120509120510120511120512120513120514120515120516120517120518120519120520120521120522120523120524120525120526120527120528120529120530120531120532120533120534120535120536120537120538120539120540120541120542120543120544120545120546120547120548120549120550120551120552120553120554120555120556120557120558120559120560120561120562120563120564120565120566120567120568120569120570120571120572120573120574120575120576120577120578120579120580120581120582120583120584120585120586120587120588120589120590120591120592120593120594120595120596120597120598120599120600120601120602120603120604120605120606120607120608120609120610120611120612120613120614120615120616120617120618120619120620120621120622120623120624120625120626120627120628120629120630120631120632120633120634120635120636120637120638120639120640120641120642120643120644120645120646120647120648120649120650120651120652120653120654120655120656120657120658120659120660120661120662120663120664120665120666120667120668120669120670120671120672120673120674120675120676120677120678120679120680120681120682120683120684120685120686120687120688120689120690120691120692120693120694120695120696120697120698120699120700120701120702120703120704120705120706120707120708120709120710120711120712120713120714120715120716120717120718120719120720120721120722120723120724120725120726120727120728120729120730120731120732120733120734120735120736120737120738120739120740120741120742120743120744120745120746120747120748120749120750120751120752120753120754120755120756120757120758120759120760120761120762120763120764120765120766120767120768120769120770120771120772120773120774120775120776120777120778120779120780120781120782120783120784120785120786120787120788120789120790120791120792120793120794120795120796120797120798120799120800120801120802120803120804120805120806120807120808120809120810120811120812120813120814120815120816120817120818120819120820120821120822120823120824120825120826120827120828120829120830120831120832120833120834120835120836120837120838120839120840120841120842120843120844120845120846120847120848120849120850120851120852120853120854120855120856120857120858120859120860120861120862120863120864120865120866120867120868120869120870120871120872120873120874120875120876120877120878120879120880120881120882120883120884120885120886120887120888120889120890120891120892120893120894120895120896120897120898120899120900120901120902120903120904120905120906120907120908120909120910120911120912120913120914120915120916120917120918120919120920120921120922120923120924120925120926120927120928120929120930120931120932120933120934120935120936120937120938120939120940120941120942120943120944120945120946120947120948120949120950120951120952120953120954120955120956120957120958120959120960120961120962120963120964120965120966120967120968120969120970120971120972120973120974120975120976120977120978120979120980120981120982120983120984120985120986120987120988120989120990120991120992120993120994120995120996120997120998120999121000121001121002121003121004121005121006121007121008121009121010121011121012121013121014121015121016121017121018121019121020121021121022121023121024121025121026121027121028121029121030121031121032121033121034121035121036121037121038121039121040121041121042121043121044121045121046121047121048121049121050121051121052121053121054121055121056121057121058121059121060121061121062121063121064121065121066121067121068121069121070121071121072121073121074121075121076121077121078121079121080121081121082121083121084121085121086121087121088121089121090121091121092121093121094121095121096121097121098121099121100121101121102121103121104121105121106121107121108121109121110121111121112121113121114121115121116121117121118121119121120121121121122121123121124121125121126121127121128121129121130121131121132121133121134121135121136121137121138121139121140121141121142121143121144121145121146121147121148121149121150121151121152121153121154121155121156121157121158121159121160121161121162121163121164121165121166121167121168121169121170121171121172121173121174121175121176121177121178121179121180121181121182121183121184121185121186121187121188121189121190121191121192121193121194121195121196121197121198121199121200121201121202121203121204121205121206121207121208121209121210121211121212121213121214121215121216121217121218121219121220121221121222121223121224121225121226121227121228121229121230121231121232121233121234121235121236121237121238121239121240121241121242121243121244121245121246121247121248121249121250121251121252121253121254121255121256121257121258121259121260121261121262121263121264121265121266121267121268121269121270121271121272121273121274121275121276121277121278121279121280121281121282121283121284121285121286121287121288121289121290121291121292121293121294121295121296121297121298121299121300121301121302121303121304121305121306121307121308121309121310121311121312121313121314121315121316121317121318121319121320121321121322121323121324121325121326121327121328121329121330121331121332121333121334121335121336121337121338121339121340121341121342121343121344121345121346121347121348121349121350121351121352121353121354121355121356121357121358121359121360121361121362121363121364121365121366121367121368121369121370121371121372121373121374121375121376121377121378121379121380121381121382121383121384121385121386121387121388121389121390121391121392121393121394121395121396121397121398121399121400121401121402121403121404121405121406121407121408121409121410121411121412121413121414121415121416121417121418121419121420121421121422121423121424121425121426121427121428121429121430121431121432121433121434121435121436121437121438121439121440121441121442121443121444121445121446121447121448121449121450121451121452121453121454121455121456121457121458121459121460121461121462121463121464121465121466121467121468121469121470121471121472121473121474121475121476121477121478121479121480121481121482121483121484121485121486121487121488121489121490121491121492121493121494121495121496121497121498121499121500121501121502121503121504121505121506121507121508121509121510121511121512121513121514121515121516121517121518121519121520121521121522121523121524121525121526121527121528121529121530121531121532121533121534121535121536121537121538121539121540121541121542121543121544121545121546121547121548121549121550121551121552121553121554121555121556121557121558121559121560121561121562121563121564121565121566121567121568121569121570121571121572121573121574121575121576121577121578121579121580121581121582121583121584121585121586121587121588121589121590121591121592121593121594121595121596121597121598121599121600121601121602121603121604121605121606121607121608121609121610121611121612121613121614121615121616121617121618121619121620121621121622121623121624121625121626121627121628121629121630121631121632121633121634121635121636121637121638121639121640121641121642121643121644121645121646121647121648121649121650121651121652121653121654121655121656121657121658121659121660121661121662121663121664121665121666121667121668121669121670121671121672121673121674121675121676121677121678121679121680121681121682121683121684121685121686121687121688121689121690121691121692121693121694121695121696121697121698121699121700121701121702121703121704121705121706121707121708121709121710121711121712121713121714121715121716121717121718121719121720121721121722121723121724121725121726121727121728121729121730121731121732121733121734121735121736121737121738121739121740121741121742121743121744121745121746121747121748121749121750121751121752121753121754121755121756121757121758121759121760121761121762121763121764121765121766121767121768121769121770121771121772121773121774121775121776121777121778121779121780121781121782121783121784121785121786121787121788121789121790121791121792121793121794121795121796121797121798121799121800121801121802121803121804121805121806121807121808121809121810121811121812121813121814121815121816121817121818121819121820121821121822121823121824121825121826121827121828121829121830121831121832121833121834121835121836121837121838121839121840121841121842121843121844121845121846121847121848121849121850121851121852121853121854121855121856121857121858121859121860121861121862121863121864121865121866121867121868121869121870121871121872121873121874121875121876121877121878121879121880121881121882121883121884121885121886121887121888121889121890121891121892121893121894121895121896121897121898121899121900121901121902121903121904121905121906121907121908121909121910121911121912121913121914121915121916121917121918121919121920121921121922121923121924121925121926121927121928121929121930121931121932121933121934121935121936121937121938121939121940121941121942121943121944121945121946121947121948121949121950121951121952121953121954121955121956121957121958121959121960121961121962121963121964121965121966121967121968121969121970121971121972121973121974121975121976121977121978121979121980121981121982121983121984121985121986121987121988121989121990121991121992121993121994121995121996121997121998121999122000122001122002122003122004122005122006122007122008122009122010122011122012122013122014122015122016122017122018122019122020122021122022122023122024122025122026122027122028122029122030122031122032122033122034122035122036122037122038122039122040122041122042122043122044122045122046122047122048122049122050122051122052122053122054122055122056122057122058122059122060122061122062122063122064122065122066122067122068122069122070122071122072122073122074122075122076122077122078122079122080122081122082122083122084122085122086122087122088122089122090122091122092122093122094122095122096122097122098122099122100122101122102122103122104122105122106122107122108122109122110122111122112122113122114122115122116122117122118122119122120122121122122122123122124122125122126122127122128122129122130122131122132122133122134122135122136122137122138122139122140122141122142122143122144122145122146122147122148122149122150122151122152122153122154122155122156122157122158122159122160122161122162122163122164122165122166122167122168122169122170122171122172122173122174122175122176122177122178122179122180122181122182122183122184122185122186122187122188122189122190122191122192122193122194122195122196122197122198122199122200122201122202122203122204122205122206122207122208122209122210122211122212122213122214122215122216122217122218122219122220122221122222122223122224122225122226122227122228122229122230122231122232122233122234122235122236122237122238122239122240122241122242122243122244122245122246122247122248122249122250122251122252122253122254122255122256122257122258122259122260122261122262122263122264122265122266122267122268122269122270122271122272122273122274122275122276122277122278122279122280122281122282122283122284122285122286122287122288122289122290122291122292122293122294122295122296122297122298122299122300122301122302122303122304122305122306122307122308122309122310122311122312122313122314122315122316122317122318122319122320122321122322122323122324122325122326122327122328122329122330122331122332122333122334122335122336122337122338122339122340122341122342122343122344122345122346122347122348122349122350122351122352122353122354122355122356122357122358122359122360122361122362122363122364122365122366122367122368122369122370122371122372122373122374122375122376122377122378122379122380122381122382122383122384122385122386122387122388122389122390122391122392122393122394122395122396122397122398122399122400122401122402122403122404122405122406122407122408122409122410122411122412122413122414122415122416122417122418122419122420122421122422122423122424122425122426122427122428122429122430122431122432122433122434122435122436122437122438122439122440122441122442122443122444122445122446122447122448122449122450122451122452122453122454122455122456122457122458122459122460122461122462122463122464122465122466122467122468122469122470122471122472122473122474122475122476122477122478122479122480122481122482122483122484122485122486122487122488122489122490122491122492122493122494122495122496122497122498122499122500122501122502122503122504122505122506122507122508122509122510122511122512122513122514122515122516122517122518122519122520122521122522122523122524122525122526122527122528122529122530122531122532122533122534122535122536122537122538122539122540122541122542122543122544122545122546122547122548122549122550122551122552122553122554122555122556122557122558122559122560122561122562122563122564122565122566122567122568122569122570122571122572122573122574122575122576122577122578122579122580122581122582122583122584122585122586122587122588122589122590122591122592122593122594122595122596122597122598122599122600122601122602122603122604122605122606122607122608122609122610122611122612122613122614122615122616122617122618122619122620122621122622122623122624122625122626122627122628122629122630122631122632122633122634122635122636122637122638122639122640122641122642122643122644122645122646122647122648122649122650122651122652122653122654122655122656122657122658122659122660122661122662122663122664122665122666122667122668122669122670122671122672122673122674122675122676122677122678122679122680122681122682122683122684122685122686122687122688122689122690122691122692122693122694122695122696122697122698122699122700122701122702122703122704122705122706122707122708122709122710122711122712122713122714122715122716122717122718122719122720122721122722122723122724122725122726122727122728122729122730122731122732122733122734122735122736122737122738122739122740122741122742122743122744122745122746122747122748122749122750122751122752122753122754122755122756122757122758122759122760122761122762122763122764122765122766122767122768122769122770122771122772122773122774122775122776122777122778122779122780122781122782122783122784122785122786122787122788122789122790122791122792122793122794122795122796122797122798122799122800122801122802122803122804122805122806122807122808122809122810122811122812122813122814122815122816122817122818122819122820122821122822122823122824122825122826122827122828122829122830122831122832122833122834122835122836122837122838122839122840122841122842122843122844122845122846122847122848122849122850122851122852122853122854122855122856122857122858122859122860122861122862122863122864122865122866122867122868122869122870122871122872122873122874122875122876122877122878122879122880122881122882122883122884122885122886122887122888122889122890122891122892122893122894122895122896122897122898122899122900122901122902122903122904122905122906122907122908122909122910122911122912122913122914122915122916122917122918122919122920122921122922122923122924122925122926122927122928122929122930122931122932122933122934122935122936122937122938122939122940122941122942122943122944122945122946122947122948122949122950122951122952122953122954122955122956122957122958122959122960122961122962122963122964122965122966122967122968122969122970122971122972122973122974122975122976122977122978122979122980122981122982122983122984122985122986122987122988122989122990122991122992122993122994122995122996122997122998122999123000123001123002123003123004123005123006123007123008123009123010123011123012123013123014123015123016123017123018123019123020123021123022123023123024123025123026123027123028123029123030123031123032123033123034123035123036123037123038123039123040123041123042123043123044123045123046123047123048123049123050123051123052123053123054123055123056123057123058123059123060123061123062123063123064123065123066123067123068123069123070123071123072123073123074123075123076123077123078123079123080123081123082123083123084123085123086123087123088123089123090123091123092123093123094123095123096123097123098123099123100123101123102123103123104123105123106123107123108123109123110123111123112123113123114123115123116123117123118123119123120123121123122123123123124123125123126123127123128123129123130123131123132123133123134123135123136123137123138123139123140123141123142123143123144123145123146123147123148123149123150123151123152123153123154123155123156123157123158123159123160123161123162123163123164123165123166123167123168123169123170123171123172123173123174123175123176123177123178123179123180123181123182123183123184123185123186123187123188123189123190123191123192123193123194123195123196123197123198123199123200123201123202123203123204123205123206123207123208123209123210123211123212123213123214123215123216123217123218123219123220123221123222123223123224123225123226123227123228123229123230123231123232123233123234123235123236123237123238123239123240123241123242123243123244123245123246123247123248123249123250123251123252123253123254123255123256123257123258123259123260123261123262123263123264123265123266123267123268123269123270123271123272123273123274123275123276123277123278123279123280123281123282123283123284123285123286123287123288123289123290123291123292123293123294123295123296123297123298123299123300123301123302123303123304123305123306123307123308123309123310123311123312123313123314123315123316123317123318123319123320123321123322123323123324123325123326123327123328123329123330123331123332123333123334123335123336123337123338123339123340123341123342123343123344123345123346123347123348123349123350123351123352123353123354123355123356123357123358123359123360123361123362123363123364123365123366123367123368123369123370123371123372123373123374123375123376123377123378123379123380123381123382123383123384123385123386123387123388123389123390123391123392123393123394123395123396123397123398123399123400123401123402123403123404123405123406123407123408123409123410123411123412123413123414123415123416123417123418123419123420123421123422123423123424123425123426123427123428123429123430123431123432123433123434123435123436123437123438123439123440123441123442123443123444123445123446123447123448123449123450123451123452123453123454123455123456123457123458123459123460123461123462123463123464123465123466123467123468123469123470123471123472123473123474123475123476123477123478123479123480123481123482123483123484123485123486123487123488123489123490123491123492123493123494123495123496123497123498123499123500123501123502123503123504123505123506123507123508123509123510123511123512123513123514123515123516123517123518123519123520123521123522123523123524123525123526123527123528123529123530123531123532123533123534123535123536123537123538123539123540123541123542123543123544123545123546123547123548123549123550123551123552123553123554123555123556123557123558123559123560123561123562123563123564123565123566123567123568123569123570123571123572123573123574123575123576123577123578123579123580123581123582123583123584123585123586123587123588123589123590123591123592123593123594123595123596123597123598123599123600123601123602123603123604123605123606123607123608123609123610123611123612123613123614123615123616123617123618123619123620123621123622123623123624123625123626123627123628123629123630123631123632123633123634123635123636123637123638123639123640123641123642123643123644123645123646123647123648123649123650123651123652123653123654123655123656123657123658123659123660123661123662123663123664123665123666123667123668123669123670123671123672123673123674123675123676123677123678123679123680123681123682123683123684123685123686123687123688123689123690123691123692123693123694123695123696123697123698123699123700123701123702123703123704123705123706123707123708123709123710123711123712123713123714123715123716123717123718123719123720123721123722123723123724123725123726123727123728123729123730123731123732123733123734123735123736123737123738123739123740123741123742123743123744123745123746123747123748123749123750123751123752123753123754123755123756123757123758123759123760123761123762123763123764123765123766123767123768123769123770123771123772123773123774123775123776123777123778123779123780123781123782123783123784123785123786123787123788123789123790123791123792123793123794123795123796123797123798123799123800123801123802123803123804123805123806123807123808123809123810123811123812123813123814123815123816123817123818123819123820123821123822123823123824123825123826123827123828123829123830123831123832123833123834123835123836123837123838123839123840123841123842123843123844123845123846123847123848123849123850123851123852123853123854123855123856123857123858123859123860123861123862123863123864123865123866123867123868123869123870123871123872123873123874123875123876123877123878123879123880123881123882123883123884123885123886123887123888123889123890123891123892123893123894123895123896123897123898123899123900123901123902123903123904123905123906123907123908123909123910123911123912123913123914123915123916123917123918123919123920123921123922123923123924123925123926123927123928123929123930123931123932123933123934123935123936123937123938123939123940123941123942123943123944123945123946123947123948123949123950123951123952123953123954123955123956123957123958123959123960123961123962123963123964123965123966123967123968123969123970123971123972123973123974123975123976123977123978123979123980123981123982123983123984123985123986123987123988123989123990123991123992123993123994123995123996123997123998123999124000124001124002124003124004124005124006124007124008124009124010124011124012124013124014124015124016124017124018124019124020124021124022124023124024124025124026124027124028124029124030124031124032124033124034124035124036124037124038124039124040124041124042124043124044124045124046124047124048124049124050124051124052124053124054124055124056124057124058124059124060124061124062124063124064124065124066124067124068124069124070124071124072124073124074124075124076124077124078124079124080124081124082124083124084124085124086124087124088124089124090124091124092124093124094124095124096124097124098124099124100124101124102124103124104124105124106124107124108124109124110124111124112124113124114124115124116124117124118124119124120124121124122124123124124124125124126124127124128124129124130124131124132124133124134124135124136124137124138124139124140124141124142124143124144124145124146124147124148124149124150124151124152124153124154124155124156124157124158124159124160124161124162124163124164124165124166124167124168124169124170124171124172124173124174124175124176124177124178124179124180124181124182124183124184124185124186124187124188124189124190124191124192124193124194124195124196124197124198124199124200124201124202124203124204124205124206124207124208124209124210124211124212124213124214124215124216124217124218124219124220124221124222124223124224124225124226124227124228124229124230124231124232124233124234124235124236124237124238124239124240124241124242124243124244124245124246124247124248124249124250124251124252124253124254124255124256124257124258124259124260124261124262124263124264124265124266124267124268124269124270124271124272124273124274124275124276124277124278124279124280124281124282124283124284124285124286124287124288124289124290124291124292124293124294124295124296124297124298124299124300124301124302124303124304124305124306124307124308124309124310124311124312124313124314124315124316124317124318124319124320124321124322124323124324124325124326124327124328124329124330124331124332124333124334124335124336124337124338124339124340124341124342124343124344124345124346124347124348124349124350124351124352124353124354124355124356124357124358124359124360124361124362124363124364124365124366124367124368124369124370124371124372124373124374124375124376124377124378124379124380124381124382124383124384124385124386124387124388124389124390124391124392124393124394124395124396124397124398124399124400124401124402124403124404124405124406124407124408124409124410124411124412124413124414124415124416124417124418124419124420124421124422124423124424124425124426124427124428124429124430124431124432124433124434124435124436124437124438124439124440124441124442124443124444124445124446124447124448124449124450124451124452124453124454124455124456124457124458124459124460124461124462124463124464124465124466124467124468124469124470124471124472124473124474124475124476124477124478124479124480124481124482124483124484124485124486124487124488124489124490124491124492124493124494124495124496124497124498124499124500124501124502124503124504124505124506124507124508124509124510124511124512124513124514124515124516124517124518124519124520124521124522124523124524124525124526124527124528124529124530124531124532124533124534124535124536124537124538124539124540124541124542124543124544124545124546124547124548124549124550124551124552124553124554124555124556124557124558124559124560124561124562124563124564124565124566124567124568124569124570124571124572124573124574124575124576124577124578124579124580124581124582124583124584124585124586124587124588124589124590124591124592124593124594124595124596124597124598124599124600124601124602124603124604124605124606124607124608124609124610124611124612124613124614124615124616124617124618124619124620124621124622124623124624124625124626124627124628124629124630124631124632124633124634124635124636124637124638124639124640124641124642124643124644124645124646124647124648124649124650124651124652124653124654124655124656124657124658124659124660124661124662124663124664124665124666124667124668124669124670124671124672124673124674124675124676124677124678124679124680124681124682124683124684124685124686124687124688124689124690124691124692124693124694124695124696124697124698124699124700124701124702124703124704124705124706124707124708124709124710124711124712124713124714124715124716124717124718124719124720124721124722124723124724124725124726124727124728124729124730124731124732124733124734124735124736124737124738124739124740124741124742124743124744124745124746124747124748124749124750124751124752124753124754124755124756124757124758124759124760124761124762124763124764124765124766124767124768124769124770124771124772124773124774124775124776124777124778124779124780124781124782124783124784124785124786124787124788124789124790124791124792124793124794124795124796124797124798124799124800124801124802124803124804124805124806124807124808124809124810124811124812124813124814124815124816124817124818124819124820124821124822124823124824124825124826124827124828124829124830124831124832124833124834124835124836124837124838124839124840124841124842124843124844124845124846124847124848124849124850124851124852124853124854124855124856124857124858124859124860124861124862124863124864124865124866124867124868124869124870124871124872124873124874124875124876124877124878124879124880124881124882124883124884124885124886124887124888124889124890124891124892124893124894124895124896124897124898124899124900124901124902124903124904124905124906124907124908124909124910124911124912124913124914124915124916124917124918124919124920124921124922124923124924124925124926124927124928124929124930124931124932124933124934124935124936124937124938124939124940124941124942124943124944124945124946124947124948124949124950124951124952124953124954124955124956124957124958124959124960124961124962124963124964124965124966124967124968124969124970124971124972124973124974124975124976124977124978124979124980124981124982124983124984124985124986124987124988124989124990124991124992124993124994124995124996124997124998124999125000125001125002125003125004125005125006125007125008125009125010125011125012125013125014125015125016125017125018125019125020125021125022125023125024125025125026125027125028125029125030125031125032125033125034125035125036125037125038125039125040125041125042125043125044125045125046125047125048125049125050125051125052125053125054125055125056125057125058125059125060125061125062125063125064125065125066125067125068125069125070125071125072125073125074125075125076125077125078125079125080125081125082125083125084125085125086125087125088125089125090125091125092125093125094125095125096125097125098125099125100125101125102125103125104125105125106125107125108125109125110125111125112125113125114125115125116125117125118125119125120125121125122125123125124125125125126125127125128125129125130125131125132125133125134125135125136125137125138125139125140125141125142125143125144125145125146125147125148125149125150125151125152125153125154125155125156125157125158125159125160125161125162125163125164125165125166125167125168125169125170125171125172125173125174125175125176125177125178125179125180125181125182125183125184125185125186125187125188125189125190125191125192125193125194125195125196125197125198125199125200125201125202125203125204125205125206125207125208125209125210125211125212125213125214125215125216125217125218125219125220125221125222125223125224125225125226125227125228125229125230125231125232125233125234125235125236125237125238125239125240125241125242125243125244125245125246125247125248125249125250125251125252125253125254125255125256125257125258125259125260125261125262125263125264125265125266125267125268125269125270125271125272125273125274125275125276125277125278125279125280125281125282125283125284125285125286125287125288125289125290125291125292125293125294125295125296125297125298125299125300125301125302125303125304125305125306125307125308125309125310125311125312125313125314125315125316125317125318125319125320125321125322125323125324125325125326125327125328125329125330125331125332125333125334125335125336125337125338125339125340125341125342125343125344125345125346125347125348125349125350125351125352125353125354125355125356125357125358125359125360125361125362125363125364125365125366125367125368125369125370125371125372125373125374125375125376125377125378125379125380125381125382125383125384125385125386125387125388125389125390125391125392125393125394125395125396125397125398125399125400125401125402125403125404125405125406125407125408125409125410125411125412125413125414125415125416125417125418125419125420125421125422125423125424125425125426125427125428125429125430125431125432125433125434125435125436125437125438125439125440125441125442125443125444125445125446125447125448125449125450125451125452125453125454125455125456125457125458125459125460125461125462125463125464125465125466125467125468125469125470125471125472125473125474125475125476125477125478125479125480125481125482125483125484125485125486125487125488125489125490125491125492125493125494125495125496125497125498125499125500125501125502125503125504125505125506125507125508125509125510125511125512125513125514125515125516125517125518125519125520125521125522125523125524125525125526125527125528125529125530125531125532125533125534125535125536125537125538125539125540125541125542125543125544125545125546125547125548125549125550125551125552125553125554125555125556125557125558125559125560125561125562125563125564125565125566125567125568125569125570125571125572125573125574125575125576125577125578125579125580125581125582125583125584125585125586125587125588125589125590125591125592125593125594125595125596125597125598125599125600125601125602125603125604125605125606125607125608125609125610125611125612125613125614125615125616125617125618125619125620125621125622125623125624125625125626125627125628125629125630125631125632125633125634125635125636125637125638125639125640125641125642125643125644125645125646125647125648125649125650125651125652125653125654125655125656125657125658125659125660125661125662125663125664125665125666125667125668125669125670125671125672125673125674125675125676125677125678125679125680125681125682125683125684125685125686125687125688125689125690125691125692125693125694125695125696125697125698125699125700125701125702125703125704125705125706125707125708125709125710125711125712125713125714125715125716125717125718125719125720125721125722125723125724125725125726125727125728125729125730125731125732125733125734125735125736125737125738125739125740125741125742125743125744125745125746125747125748125749125750125751125752125753125754125755125756125757125758125759125760125761125762125763125764125765125766125767125768125769125770125771125772125773125774125775125776125777125778125779125780125781125782125783125784125785125786125787125788125789125790125791125792125793125794125795125796125797125798125799125800125801125802125803125804125805125806125807125808125809125810125811125812125813125814125815125816125817125818125819125820125821125822125823125824125825125826125827125828125829125830125831125832125833125834125835125836125837125838125839125840125841125842125843125844125845125846125847125848125849125850125851125852125853125854125855125856125857125858125859125860125861125862125863125864125865125866125867125868125869125870125871125872125873125874125875125876125877125878125879125880125881125882125883125884125885125886125887125888125889125890125891125892125893125894125895125896125897125898125899125900125901125902125903125904125905125906125907125908125909125910125911125912125913125914125915125916125917125918125919125920125921125922125923125924125925125926125927125928125929125930125931125932125933125934125935125936125937125938125939125940125941125942125943125944125945125946125947125948125949125950125951125952125953125954125955125956125957125958125959125960125961125962125963125964125965125966125967125968125969125970125971125972125973125974125975125976125977125978125979125980125981125982125983125984125985125986125987125988125989125990125991125992125993125994125995125996125997125998125999126000126001126002126003126004126005126006126007126008126009126010126011126012126013126014126015126016126017126018126019126020126021126022126023126024126025126026126027126028126029126030126031126032126033126034126035126036126037126038126039126040126041126042126043126044126045126046126047126048126049126050126051126052126053126054126055126056126057126058126059126060126061126062126063126064126065126066126067126068126069126070126071126072126073126074126075126076126077126078126079126080126081126082126083126084126085126086126087126088126089126090126091126092126093126094126095126096126097126098126099126100126101126102126103126104126105126106126107126108126109126110126111126112126113126114126115126116126117126118126119126120126121126122126123126124126125126126126127126128126129126130126131126132126133126134126135126136126137126138126139126140126141126142126143126144126145126146126147126148126149126150126151126152126153126154126155126156126157126158126159126160126161126162126163126164126165126166126167126168126169126170126171126172126173126174126175126176126177126178126179126180126181126182126183126184126185126186126187126188126189126190126191126192126193126194126195126196126197126198126199126200126201126202126203126204126205126206126207126208126209126210126211126212126213126214126215126216126217126218126219126220126221126222126223126224126225126226126227126228126229126230126231126232126233126234126235126236126237126238126239126240126241126242126243126244126245126246126247126248126249126250126251126252126253126254126255126256126257126258126259126260126261126262126263126264126265126266126267126268126269126270126271126272126273126274126275126276126277126278126279126280126281126282126283126284126285126286126287126288126289126290126291126292126293126294126295126296126297126298126299126300126301126302126303126304126305126306126307126308126309126310126311126312126313126314126315126316126317126318126319126320126321126322126323126324126325126326126327126328126329126330126331126332126333126334126335126336126337126338126339126340126341126342126343126344126345126346126347126348126349126350126351126352126353126354126355126356126357126358126359126360126361126362126363126364126365126366126367126368126369126370126371126372126373126374126375126376126377126378126379126380126381126382126383126384126385126386126387126388126389126390126391126392126393126394126395126396126397126398126399126400126401126402126403126404126405126406126407126408126409126410126411126412126413126414126415126416126417126418126419126420126421126422126423126424126425126426126427126428126429126430126431126432126433126434126435126436126437126438126439126440126441126442126443126444126445126446126447126448126449126450126451126452126453126454126455126456126457126458126459126460126461126462126463126464126465126466126467126468126469126470126471126472126473126474126475126476126477126478126479126480126481126482126483126484126485126486126487126488126489126490126491126492126493126494126495126496126497126498126499126500126501126502126503126504126505126506126507126508126509126510126511126512126513126514126515126516126517126518126519126520126521126522126523126524126525126526126527126528126529126530126531126532126533126534126535126536126537126538126539126540126541126542126543126544126545126546126547126548126549126550126551126552126553126554126555126556126557126558126559126560126561126562126563126564126565126566126567126568126569126570126571126572126573126574126575126576126577126578126579126580126581126582126583126584126585126586126587126588126589126590126591126592126593126594126595126596126597126598126599126600126601126602126603126604126605126606126607126608126609126610126611126612126613126614126615126616126617126618126619126620126621126622126623126624126625126626126627126628126629126630126631126632126633126634126635126636126637126638126639126640126641126642126643126644126645126646126647126648126649126650126651126652126653126654126655126656126657126658126659126660126661126662126663126664126665126666126667126668126669126670126671126672126673126674126675126676126677126678126679126680126681126682126683126684126685126686126687126688126689126690126691126692126693126694126695126696126697126698126699126700126701126702126703126704126705126706126707126708126709126710126711126712126713126714126715126716126717126718126719126720126721126722126723126724126725126726126727126728126729126730126731126732126733126734126735126736126737126738126739126740126741126742126743126744126745126746126747126748126749126750126751126752126753126754126755126756126757126758126759126760126761126762126763126764126765126766126767126768126769126770126771126772126773126774126775126776126777126778126779126780126781126782126783126784126785126786126787126788126789126790126791126792126793126794126795126796126797126798126799126800126801126802126803126804126805126806126807126808126809126810126811126812126813126814126815126816126817126818126819126820126821126822126823126824126825126826126827126828126829126830126831126832126833126834126835126836126837126838126839126840126841126842126843126844126845126846126847126848126849126850126851126852126853126854126855126856126857126858126859126860126861126862126863126864126865126866126867126868126869126870126871126872126873126874126875126876126877126878126879126880126881126882126883126884126885126886126887126888126889126890126891126892126893126894126895126896126897126898126899126900126901126902126903126904126905126906126907126908126909126910126911126912126913126914126915126916126917126918126919126920126921126922126923126924126925126926126927126928126929126930126931126932126933126934126935126936126937126938126939126940126941126942126943126944126945126946126947126948126949126950126951126952126953126954126955126956126957126958126959126960126961126962126963126964126965126966126967126968126969126970126971126972126973126974126975126976126977126978126979126980126981126982126983126984126985126986126987126988126989126990126991126992126993126994126995126996126997126998126999127000127001127002127003127004127005127006127007127008127009127010127011127012127013127014127015127016127017127018127019127020127021127022127023127024127025127026127027127028127029127030127031127032127033127034127035127036127037127038127039127040127041127042127043127044127045127046127047127048127049127050127051127052127053127054127055127056127057127058127059127060127061127062127063127064127065127066127067127068127069127070127071127072127073127074127075127076127077127078127079127080127081127082127083127084127085127086127087127088127089127090127091127092127093127094127095127096127097127098127099127100127101127102127103127104127105127106127107127108127109127110127111127112127113127114127115127116127117127118127119127120127121127122127123127124127125127126127127127128127129127130127131127132127133127134127135127136127137127138127139127140127141127142127143127144127145127146127147127148127149127150127151127152127153127154127155127156127157127158127159127160127161127162127163127164127165127166127167127168127169127170127171127172127173127174127175127176127177127178127179127180127181127182127183127184127185127186127187127188127189127190127191127192127193127194127195127196127197127198127199127200127201127202127203127204127205127206127207127208127209127210127211127212127213127214127215127216127217127218127219127220127221127222127223127224127225127226127227127228127229127230127231127232127233127234127235127236127237127238127239127240127241127242127243127244127245127246127247127248127249127250127251127252127253127254127255127256127257127258127259127260127261127262127263127264127265127266127267127268127269127270127271127272127273127274127275127276127277127278127279127280127281127282127283127284127285127286127287127288127289127290127291127292127293127294127295127296127297127298127299127300127301127302127303127304127305127306127307127308127309127310127311127312127313127314127315127316127317127318127319127320127321127322127323127324127325127326127327127328127329127330127331127332127333127334127335127336127337127338127339127340127341127342127343127344127345127346127347127348127349127350127351127352127353127354127355127356127357127358127359127360127361127362127363127364127365127366127367127368127369127370127371127372127373127374127375127376127377127378127379127380127381127382127383127384127385127386127387127388127389127390127391127392127393127394127395127396127397127398127399127400127401127402127403127404127405127406127407127408127409127410127411127412127413127414127415127416127417127418127419127420127421127422127423127424127425127426127427127428127429127430127431127432127433127434127435127436127437127438127439127440127441127442127443127444127445127446127447127448127449127450127451127452127453127454127455127456127457127458127459127460127461127462127463127464127465127466127467127468127469127470127471127472127473127474127475127476127477127478127479127480127481127482127483127484127485127486127487127488127489127490127491127492127493127494127495127496127497127498127499127500127501127502127503127504127505127506127507127508127509127510127511127512127513127514127515127516127517127518127519127520127521127522127523127524127525127526127527127528127529127530127531127532127533127534127535127536127537127538127539127540127541127542127543127544127545127546127547127548127549127550127551127552127553127554127555127556127557127558127559127560127561127562127563127564127565127566127567127568127569127570127571127572127573127574127575127576127577127578127579127580127581127582127583127584127585127586127587127588127589127590127591127592127593127594127595127596127597127598127599127600127601127602127603127604127605127606127607127608127609127610127611127612127613127614127615127616127617127618127619127620127621127622127623127624127625127626127627127628127629127630127631127632127633127634127635127636127637127638127639127640127641127642127643127644127645127646127647127648127649127650127651127652127653127654127655127656127657127658127659127660127661127662127663127664127665127666127667127668127669127670127671127672127673127674127675127676127677127678127679127680127681127682127683127684127685127686127687127688127689127690127691127692127693127694127695127696127697127698127699127700127701127702127703127704127705127706127707127708127709127710127711127712127713127714127715127716127717127718127719127720127721127722127723127724127725127726127727127728127729127730127731127732127733127734127735127736127737127738127739127740127741127742127743127744127745127746127747127748127749127750127751127752127753127754127755127756127757127758127759127760127761127762127763127764127765127766127767127768127769127770127771127772127773127774127775127776127777127778127779127780127781127782127783127784127785127786127787127788127789127790127791127792127793127794127795127796127797127798127799127800127801127802127803127804127805127806127807127808127809127810127811127812127813127814127815127816127817127818127819127820127821127822127823127824127825127826127827127828127829127830127831127832127833127834127835127836127837127838127839127840127841127842127843127844127845127846127847127848127849127850127851127852127853127854127855127856127857127858127859127860127861127862127863127864127865127866127867127868127869127870127871127872127873127874127875127876127877127878127879127880127881127882127883127884127885127886127887127888127889127890127891127892127893127894127895127896127897127898127899127900127901127902127903127904127905127906127907127908127909127910127911127912127913127914127915127916127917127918127919127920127921127922127923127924127925127926127927127928127929127930127931127932127933127934127935127936127937127938127939127940127941127942127943127944127945127946127947127948127949127950127951127952127953127954127955127956127957127958127959127960127961127962127963127964127965127966127967127968127969127970127971127972127973127974127975127976127977127978127979127980127981127982127983127984127985127986127987127988127989127990127991127992127993127994127995127996127997127998127999128000128001128002128003128004128005128006128007128008128009128010128011128012128013128014128015128016128017128018128019128020128021128022128023128024128025128026128027128028128029128030128031128032128033128034128035128036128037128038128039128040128041128042128043128044128045128046128047128048128049128050128051128052128053128054128055128056128057128058128059128060128061128062128063128064128065128066128067128068128069128070128071128072128073128074128075128076128077128078128079128080128081128082128083128084128085128086128087128088128089128090128091128092128093128094128095128096128097128098128099128100128101128102128103128104128105128106128107128108128109128110128111128112128113128114128115128116128117128118128119128120128121128122128123128124128125128126128127128128128129128130128131128132128133128134128135128136128137128138128139128140128141128142128143128144128145128146128147128148128149128150128151128152128153128154128155128156128157128158128159128160128161128162128163128164128165128166128167128168128169128170128171128172128173128174128175128176128177128178128179128180128181128182128183128184128185128186128187128188128189128190128191128192128193128194128195128196128197128198128199128200128201128202128203128204128205128206128207128208128209128210128211128212128213128214128215128216128217128218128219128220128221128222128223128224128225128226128227128228128229128230128231128232128233128234128235128236128237128238128239128240128241128242128243128244128245128246128247128248128249128250128251128252128253128254128255128256128257128258128259128260128261128262128263128264128265128266128267128268128269128270128271128272128273128274128275128276128277128278128279128280128281128282128283128284128285128286128287128288128289128290128291128292128293128294128295128296128297128298128299128300128301128302128303128304128305128306128307128308128309128310128311128312128313128314128315128316128317128318128319128320128321128322128323128324128325128326128327128328128329128330128331128332128333128334128335128336128337128338128339128340128341128342128343128344128345128346128347128348128349128350128351128352128353128354128355128356128357128358128359128360128361128362128363128364128365128366128367128368128369128370128371128372128373128374128375128376128377128378128379128380128381128382128383128384128385128386128387128388128389128390128391128392128393128394128395128396128397128398128399128400128401128402128403128404128405128406128407128408128409128410128411128412128413128414128415128416128417128418128419128420128421128422128423128424128425128426128427128428128429128430128431128432128433128434128435128436128437128438128439128440128441128442128443128444128445128446128447128448128449128450128451128452128453128454128455128456128457128458128459128460128461128462128463128464128465128466128467128468128469128470128471128472128473128474128475128476128477128478128479128480128481128482128483128484128485128486128487128488128489128490128491128492128493128494128495128496128497128498128499128500128501128502128503128504128505128506128507128508128509128510128511128512128513128514128515128516128517128518128519128520128521128522128523128524128525128526128527128528128529128530128531128532128533128534128535128536128537128538128539128540128541128542128543128544128545128546128547128548128549128550128551128552128553128554128555128556128557128558128559128560128561128562128563128564128565128566128567128568128569128570128571128572128573128574128575128576128577128578128579128580128581128582128583128584128585128586128587128588128589128590128591128592128593128594128595128596128597128598128599128600128601128602128603128604128605128606128607128608128609128610128611128612128613128614128615128616128617128618128619128620128621128622128623128624128625128626128627128628128629128630128631128632128633128634128635128636128637128638128639128640128641128642128643128644128645128646128647128648128649128650128651128652128653128654128655128656128657128658128659128660128661128662128663128664128665128666128667128668128669128670128671128672128673128674128675128676128677128678128679128680128681128682128683128684128685128686128687128688128689128690128691128692128693128694128695128696128697128698128699128700128701128702128703128704128705128706128707128708128709128710128711128712128713128714128715128716128717128718128719128720128721128722128723128724128725128726128727128728128729128730128731128732128733128734128735128736128737128738128739128740128741128742128743128744128745128746128747128748128749128750128751128752128753128754128755128756128757128758128759128760128761128762128763128764128765128766128767128768128769128770128771128772128773128774128775128776128777128778128779128780128781128782128783128784128785128786128787128788128789128790128791128792128793128794128795128796128797128798128799128800128801128802128803128804128805128806128807128808128809128810128811128812128813128814128815128816128817128818128819128820128821128822128823128824128825128826128827128828128829128830128831128832128833128834128835128836128837128838128839128840128841128842128843128844128845128846128847128848128849128850128851128852128853128854128855128856128857128858128859128860128861128862128863128864128865128866128867128868128869128870128871128872128873128874128875128876128877128878128879128880128881128882128883128884128885128886128887128888128889128890128891128892128893128894128895128896128897128898128899128900128901128902128903128904128905128906128907128908128909128910128911128912128913128914128915128916128917128918128919128920128921128922128923128924128925128926128927128928128929128930128931128932128933128934128935128936128937128938128939128940128941128942128943128944128945128946128947128948128949128950128951128952128953128954128955128956128957128958128959128960128961128962128963128964128965128966128967128968128969128970128971128972128973128974128975128976128977128978128979128980128981128982128983128984128985128986128987128988128989128990128991128992128993128994128995128996128997128998128999129000129001129002129003129004129005129006129007129008129009129010129011129012129013129014129015129016129017129018129019129020129021129022129023129024129025129026129027129028129029129030129031129032129033129034129035129036129037129038129039129040129041129042129043129044129045129046129047129048129049129050129051129052129053129054129055129056129057129058129059129060129061129062129063129064129065129066129067129068129069129070129071129072129073129074129075129076129077129078129079129080129081129082129083129084129085129086129087129088129089129090129091129092129093129094129095129096129097129098129099129100129101129102129103129104129105129106129107129108129109129110129111129112129113129114129115129116129117129118129119129120129121129122129123129124129125129126129127129128129129129130129131129132129133129134129135129136129137129138129139129140129141129142129143129144129145129146129147129148129149129150129151129152129153129154129155129156129157129158129159129160129161129162129163129164129165129166129167129168129169129170129171129172129173129174129175129176129177129178129179129180129181129182129183129184129185129186129187129188129189129190129191129192129193129194129195129196129197129198129199129200129201129202129203129204129205129206129207129208129209129210129211129212129213129214129215129216129217129218129219129220129221129222129223129224129225129226129227129228129229129230129231129232129233129234129235129236129237129238129239129240129241129242129243129244129245129246129247129248129249129250129251129252129253129254129255129256129257129258129259129260129261129262129263129264129265129266129267129268129269129270129271129272129273129274129275129276129277129278129279129280129281129282129283129284129285129286129287129288129289129290129291129292129293129294129295129296129297129298129299129300129301129302129303129304129305129306129307129308129309129310129311129312129313129314129315129316129317129318129319129320129321129322129323129324129325129326129327129328129329129330129331129332129333129334129335129336129337129338129339129340129341129342129343129344129345129346129347129348129349129350129351129352129353129354129355129356129357129358129359129360129361129362129363129364129365129366129367129368129369129370129371129372129373129374129375129376129377129378129379129380129381129382129383129384129385129386129387129388129389129390129391129392129393129394129395129396129397129398129399129400129401129402129403129404129405129406129407129408129409129410129411129412129413129414129415129416129417129418129419129420129421129422129423129424129425129426129427129428129429129430129431129432129433129434129435129436129437129438129439129440129441129442129443129444129445129446129447129448129449129450129451129452129453129454129455129456129457129458129459129460129461129462129463129464129465129466129467129468129469129470129471129472129473129474129475129476129477129478129479129480129481129482129483129484129485129486129487129488129489129490129491129492129493129494129495129496129497129498129499129500129501129502129503129504129505129506129507129508129509129510129511129512129513129514129515129516129517129518129519129520129521129522129523129524129525129526129527129528129529129530129531129532129533129534129535129536129537129538129539129540129541129542129543129544129545129546129547129548129549129550129551129552129553129554129555129556129557129558129559129560129561129562129563129564129565129566129567129568129569129570129571129572129573129574129575129576129577129578129579129580129581129582129583129584129585129586129587129588129589129590129591129592129593129594129595129596129597129598129599129600129601129602129603129604129605129606129607129608129609129610129611129612129613129614129615129616129617129618129619129620129621129622129623129624129625129626129627129628129629129630129631129632129633129634129635129636129637129638129639129640129641129642129643129644129645129646129647129648129649129650129651129652129653129654129655129656129657129658129659129660129661129662129663129664129665129666129667129668129669129670129671129672129673129674129675129676129677129678129679129680129681129682129683129684129685129686129687129688129689129690129691129692129693129694129695129696129697129698129699129700129701129702129703129704129705129706129707129708129709129710129711129712129713129714129715129716129717129718129719129720129721129722129723129724129725129726129727129728129729129730129731129732129733129734129735129736129737129738129739129740129741129742129743129744129745129746129747129748129749129750129751129752129753129754129755129756129757129758129759129760129761129762129763129764129765129766129767129768129769129770129771129772129773129774129775129776129777129778129779129780129781129782129783129784129785129786129787129788129789129790129791129792129793129794129795129796129797129798129799129800129801129802129803129804129805129806129807129808129809129810129811129812129813129814129815129816129817129818129819129820129821129822129823129824129825129826129827129828129829129830129831129832129833129834129835129836129837129838129839129840129841129842129843129844129845129846129847129848129849129850129851129852129853129854129855129856129857129858129859129860129861129862129863129864129865129866129867129868129869129870129871129872129873129874129875129876129877129878129879129880129881129882129883129884129885129886129887129888129889129890129891129892129893129894129895129896129897129898129899129900129901129902129903129904129905129906129907129908129909129910129911129912129913129914129915129916129917129918129919129920129921129922129923129924129925129926129927129928129929129930129931129932129933129934129935129936129937129938129939129940129941129942129943129944129945129946129947129948129949129950129951129952129953129954129955129956129957129958129959129960129961129962129963129964129965129966129967129968129969129970129971129972129973129974129975129976129977129978129979129980129981129982129983129984129985129986129987129988129989129990129991129992129993129994129995129996129997129998129999130000130001130002130003130004130005130006130007130008130009130010130011130012130013130014130015130016130017130018130019130020130021130022130023130024130025130026130027130028130029130030130031130032130033130034130035130036130037130038130039130040130041130042130043130044130045130046130047130048130049130050130051130052130053130054130055130056130057130058130059130060130061130062130063130064130065130066130067130068130069130070130071130072130073130074130075130076130077130078130079130080130081130082130083130084130085130086130087130088130089130090130091130092130093130094130095130096130097130098130099130100130101130102130103130104130105130106130107130108130109130110130111130112130113130114130115130116130117130118130119130120130121130122130123130124130125130126130127130128130129130130130131130132130133130134130135130136130137130138130139130140130141130142130143130144130145130146130147130148130149130150130151130152130153130154130155130156130157130158130159130160130161130162130163130164130165130166130167130168130169130170130171130172130173130174130175130176130177130178130179130180130181130182130183130184130185130186130187130188130189130190130191130192130193130194130195130196130197130198130199130200130201130202130203130204130205130206130207130208130209130210130211130212130213130214130215130216130217130218130219130220130221130222130223130224130225130226130227130228130229130230130231130232130233130234130235130236130237130238130239130240130241130242130243130244130245130246130247130248130249130250130251130252130253130254130255130256130257130258130259130260130261130262130263130264130265130266130267130268130269130270130271130272130273130274130275130276130277130278130279130280130281130282130283130284130285130286130287130288130289130290130291130292130293130294130295130296130297130298130299130300130301130302130303130304130305130306130307130308130309130310130311130312130313130314130315130316130317130318130319130320130321130322130323130324130325130326130327130328130329130330130331130332130333130334130335130336130337130338130339130340130341130342130343130344130345130346130347130348130349130350130351130352130353130354130355130356130357130358130359130360130361130362130363130364130365130366130367130368130369130370130371130372130373130374130375130376130377130378130379130380130381130382130383130384130385130386130387130388130389130390130391130392130393130394130395130396130397130398130399130400130401130402130403130404130405130406130407130408130409130410130411130412130413130414130415130416130417130418130419130420130421130422130423130424130425130426130427130428130429130430130431130432130433130434130435130436130437130438130439130440130441130442130443130444130445130446130447130448130449130450130451130452130453130454130455130456130457130458130459130460130461130462130463130464130465130466130467130468130469130470130471130472130473130474130475130476130477130478130479130480130481130482130483130484130485130486130487130488130489130490130491130492130493130494130495130496130497130498130499130500130501130502130503130504130505130506130507130508130509130510130511130512130513130514130515130516130517130518130519130520130521130522130523130524130525130526130527130528130529130530130531130532130533130534130535130536130537130538130539130540130541130542130543130544130545130546130547130548130549130550130551130552130553130554130555130556130557130558130559130560130561130562130563130564130565130566130567130568130569130570130571130572130573130574130575130576130577130578130579130580130581130582130583130584130585130586130587130588130589130590130591130592130593130594130595130596130597130598130599130600130601130602130603130604130605130606130607130608130609130610130611130612130613130614130615130616130617130618130619130620130621130622130623130624130625130626130627130628130629130630130631130632130633130634130635130636130637130638130639130640130641130642130643130644130645130646130647130648130649130650130651130652130653130654130655130656130657130658130659130660130661130662130663130664130665130666130667130668130669130670130671130672130673130674130675130676130677130678130679130680130681130682130683130684130685130686130687130688130689130690130691130692130693130694130695130696130697130698130699130700130701130702130703130704130705130706130707130708130709130710130711130712130713130714130715130716130717130718130719130720130721130722130723130724130725130726130727130728130729130730130731130732130733130734130735130736130737130738130739130740130741130742130743130744130745130746130747130748130749130750130751130752130753130754130755130756130757130758130759130760130761130762130763130764130765130766130767130768130769130770130771130772130773130774130775130776130777130778130779130780130781130782130783130784130785130786130787130788130789130790130791130792130793130794130795130796130797130798130799130800130801130802130803130804130805130806130807130808130809130810130811130812130813130814130815130816130817130818130819130820130821130822130823130824130825130826130827130828130829130830130831130832130833130834130835130836130837130838130839130840130841130842130843130844130845130846130847130848130849130850130851130852130853130854130855130856130857130858130859130860130861130862130863130864130865130866130867130868130869130870130871130872130873130874130875130876130877130878130879130880130881130882130883130884130885130886130887130888130889130890130891130892130893130894130895130896130897130898130899130900130901130902130903130904130905130906130907130908130909130910130911130912130913130914130915130916130917130918130919130920130921130922130923130924130925130926130927130928130929130930130931130932130933130934130935130936130937130938130939130940130941130942130943130944130945130946130947130948130949130950130951130952130953130954130955130956130957130958130959130960130961130962130963130964130965130966130967130968130969130970130971130972130973130974130975130976130977130978130979130980130981130982130983130984130985130986130987130988130989130990130991130992130993130994130995130996130997130998130999131000131001131002131003131004131005131006131007131008131009131010131011131012131013131014131015131016131017131018131019131020131021131022131023131024131025131026131027131028131029131030131031131032131033131034131035131036131037131038131039131040131041131042131043131044131045131046131047131048131049131050131051131052131053131054131055131056131057131058131059131060131061131062131063131064131065131066131067131068131069131070131071131072131073131074131075131076131077131078131079131080131081131082131083131084131085131086131087131088131089131090131091131092131093131094131095131096131097131098131099131100131101131102131103131104131105131106131107131108131109131110131111131112131113131114131115131116131117131118131119131120131121131122131123131124131125131126131127131128131129131130131131131132131133131134131135131136131137131138131139131140131141131142131143131144131145131146131147131148131149131150131151131152131153131154131155131156131157131158131159131160131161131162131163131164131165131166131167131168131169131170131171131172131173131174131175131176131177131178131179131180131181131182131183131184131185131186131187131188131189131190131191131192131193131194131195131196131197131198131199131200131201131202131203131204131205131206131207131208131209131210131211131212131213131214131215131216131217131218131219131220131221131222131223131224131225131226131227131228131229131230131231131232131233131234131235131236131237131238131239131240131241131242131243131244131245131246131247131248131249131250131251131252131253131254131255131256131257131258131259131260131261131262131263131264131265131266131267131268131269131270131271131272131273131274131275131276131277131278131279131280131281131282131283131284131285131286131287131288131289131290131291131292131293131294131295131296131297131298131299131300131301131302131303131304131305131306131307131308131309131310131311131312131313131314131315131316131317131318131319131320131321131322131323131324131325131326131327131328131329131330131331131332131333131334131335131336131337131338131339131340131341131342131343131344131345131346131347131348131349131350131351131352131353131354131355131356131357131358131359131360131361131362131363131364131365131366131367131368131369131370131371131372131373131374131375131376131377131378131379131380131381131382131383131384131385131386131387131388131389131390131391131392131393131394131395131396131397131398131399131400131401131402131403131404131405131406131407131408131409131410131411131412131413131414131415131416131417131418131419131420131421131422131423131424131425131426131427131428131429131430131431131432131433131434131435131436131437131438131439131440131441131442131443131444131445131446131447131448131449131450131451131452131453131454131455131456131457131458131459131460131461131462131463131464131465131466131467131468131469131470131471131472131473131474131475131476131477131478131479131480131481131482131483131484131485131486131487131488131489131490131491131492131493131494131495131496131497131498131499131500131501131502131503131504131505131506131507131508131509131510131511131512131513131514131515131516131517131518131519131520131521131522131523131524131525131526131527131528131529131530131531131532131533131534131535131536131537131538131539131540131541131542131543131544131545131546131547131548131549131550131551131552131553131554131555131556131557131558131559131560131561131562131563131564131565131566131567131568131569131570131571131572131573131574131575131576131577131578131579131580131581131582131583131584131585131586131587131588131589131590131591131592131593131594131595131596131597131598131599131600131601131602131603131604131605131606131607131608131609131610131611131612131613131614131615131616131617131618131619131620131621131622131623131624131625131626131627131628131629131630131631131632131633131634131635131636131637131638131639131640131641131642131643131644131645131646131647131648131649131650131651131652131653131654131655131656131657131658131659131660131661131662131663131664131665131666131667131668131669131670131671131672131673131674131675131676131677131678131679131680131681131682131683131684131685131686131687131688131689131690131691131692131693131694131695131696131697131698131699131700131701131702131703131704131705131706131707131708131709131710131711131712131713131714131715131716131717131718131719131720131721131722131723131724131725131726131727131728131729131730131731131732131733131734131735131736131737131738131739131740131741131742131743131744131745131746131747131748131749131750131751131752131753131754131755131756131757131758131759131760131761131762131763131764131765131766131767131768131769131770131771131772131773131774131775131776131777131778131779131780131781131782131783131784131785131786131787131788131789131790131791131792131793131794131795131796131797131798131799131800131801131802131803131804131805131806131807131808131809131810131811131812131813131814131815131816131817131818131819131820131821131822131823131824131825131826131827131828131829131830131831131832131833131834131835131836131837131838131839131840131841131842131843131844131845131846131847131848131849131850131851131852131853131854131855131856131857131858131859131860131861131862131863131864131865131866131867131868131869131870131871131872131873131874131875131876131877131878131879131880131881131882131883131884131885131886131887131888131889131890131891131892131893131894131895131896131897131898131899131900131901131902131903131904131905131906131907131908131909131910131911131912131913131914131915131916131917131918131919131920131921131922131923131924131925131926131927131928131929131930131931131932131933131934131935131936131937131938131939131940131941131942131943131944131945131946131947131948131949131950131951131952131953131954131955131956131957131958131959131960131961131962131963131964131965131966131967131968131969131970131971131972131973131974131975131976131977131978131979131980131981131982131983131984131985131986131987131988131989131990131991131992131993131994131995131996131997131998131999132000132001132002132003132004132005132006132007132008132009132010132011132012132013132014132015132016132017132018132019132020132021132022132023132024132025132026132027132028132029132030132031132032132033132034132035132036132037132038132039132040132041132042132043132044132045132046132047132048132049132050132051132052132053132054132055132056132057132058132059132060132061132062132063132064132065132066132067132068132069132070132071132072132073132074132075132076132077132078132079132080132081132082132083132084132085132086132087132088132089132090132091132092132093132094132095132096132097132098132099132100132101132102132103132104132105132106132107132108132109132110132111132112132113132114132115132116132117132118132119132120132121132122132123132124132125132126132127132128132129132130132131132132132133132134132135132136132137132138132139132140132141132142132143132144132145132146132147132148132149132150132151132152132153132154132155132156132157132158132159132160132161132162132163132164132165132166132167132168132169132170132171132172132173132174132175132176132177132178132179132180132181132182132183132184132185132186132187132188132189132190132191132192132193132194132195132196132197132198132199132200132201132202132203132204132205132206132207132208132209132210132211132212132213132214132215132216132217132218132219132220132221132222132223132224132225132226132227132228132229132230132231132232132233132234132235132236132237132238132239132240132241132242132243132244132245132246132247132248132249132250132251132252132253132254132255132256132257132258132259132260132261132262132263132264132265132266132267132268132269132270132271132272132273132274132275132276132277132278132279132280132281132282132283132284132285132286132287132288132289132290132291132292132293132294132295132296132297132298132299132300132301132302132303132304132305132306132307132308132309132310132311132312132313132314132315132316132317132318132319132320132321132322132323132324132325132326132327132328132329132330132331132332132333132334132335132336132337132338132339132340132341132342132343132344132345132346132347132348132349132350132351132352132353132354132355132356132357132358132359132360132361132362132363132364132365132366132367132368132369132370132371132372132373132374132375132376132377132378132379132380132381132382132383132384132385132386132387132388132389132390132391132392132393132394132395132396132397132398132399132400132401132402132403132404132405132406132407132408132409132410132411132412132413132414132415132416132417132418132419132420132421132422132423132424132425132426132427132428132429132430132431132432132433132434132435132436132437132438132439132440132441132442132443132444132445132446132447132448132449132450132451132452132453132454132455132456132457132458132459132460132461132462132463132464132465132466132467132468132469132470132471132472132473132474132475132476132477132478132479132480132481132482132483132484132485132486132487132488132489132490132491132492132493132494132495132496132497132498132499132500132501132502132503132504132505132506132507132508132509132510132511132512132513132514132515132516132517132518132519132520132521132522132523132524132525132526132527132528132529132530132531132532132533132534132535132536132537132538132539132540132541132542132543132544132545132546132547132548132549132550132551132552132553132554132555132556132557132558132559132560132561132562132563132564132565132566132567132568132569132570132571132572132573132574132575132576132577132578132579132580132581132582132583132584132585132586132587132588132589132590132591132592132593132594132595132596132597132598132599132600132601132602132603132604132605132606132607132608132609132610132611132612132613132614132615132616132617132618132619132620132621132622132623132624132625132626132627132628132629132630132631132632132633132634132635132636132637132638132639132640132641132642132643132644132645132646132647132648132649132650132651132652132653132654132655132656132657132658132659132660132661132662132663132664132665132666132667132668132669132670132671132672132673132674132675132676132677132678132679132680132681132682132683132684132685132686132687132688132689132690132691132692132693132694132695132696132697132698132699132700132701132702132703132704132705132706132707132708132709132710132711132712132713132714132715132716132717132718132719132720132721132722132723132724132725132726132727132728132729132730132731132732132733132734132735132736132737132738132739132740132741132742132743132744132745132746132747132748132749132750132751132752132753132754132755132756132757132758132759132760132761132762132763132764132765132766132767132768132769132770132771132772132773132774132775132776132777132778132779132780132781132782132783132784132785132786132787132788132789132790132791132792132793132794132795132796132797132798132799132800132801132802132803132804132805132806132807132808132809132810132811132812132813132814132815132816132817132818132819132820132821132822132823132824132825132826132827132828132829132830132831132832132833132834132835132836132837132838132839132840132841132842132843132844132845132846132847132848132849132850132851132852132853132854132855132856132857132858132859132860132861132862132863132864132865132866132867132868132869132870132871132872132873132874132875132876132877132878132879132880132881132882132883132884132885132886132887132888132889132890132891132892132893132894132895132896132897132898132899132900132901132902132903132904132905132906132907132908132909132910132911132912132913132914132915132916132917132918132919132920132921132922132923132924132925132926132927132928132929132930132931132932132933132934132935132936132937132938132939132940132941132942132943132944132945132946132947132948132949132950132951132952132953132954132955132956132957132958132959132960132961132962132963132964132965132966132967132968132969132970132971132972132973132974132975132976132977132978132979132980132981132982132983132984132985132986132987132988132989132990132991132992132993132994132995132996132997132998132999133000133001133002133003133004133005133006133007133008133009133010133011133012133013133014133015133016133017133018133019133020133021133022133023133024133025133026133027133028133029133030133031133032133033133034133035133036133037133038133039133040133041133042133043133044133045133046133047133048133049133050133051133052133053133054133055133056133057133058133059133060133061133062133063133064133065133066133067133068133069133070133071133072133073133074133075133076133077133078133079133080133081133082133083133084133085133086133087133088133089133090133091133092133093133094133095133096133097133098133099133100133101133102133103133104133105133106133107133108133109133110133111133112133113133114133115133116133117133118133119133120133121133122133123133124133125133126133127133128133129133130133131133132133133133134133135133136133137133138133139133140133141133142133143133144133145133146133147133148133149133150133151133152133153133154133155133156133157133158133159133160133161133162133163133164133165133166133167133168133169133170133171133172133173133174133175133176133177133178133179133180133181133182133183133184133185133186133187133188133189133190133191133192133193133194133195133196133197133198133199133200133201133202133203133204133205133206133207133208133209133210133211133212133213133214133215133216133217133218133219133220133221133222133223133224133225133226133227133228133229133230133231133232133233133234133235133236133237133238133239133240133241133242133243133244133245133246133247133248133249133250133251133252133253133254133255133256133257133258133259133260133261133262133263133264133265133266133267133268133269133270133271133272133273133274133275133276133277133278133279133280133281133282133283133284133285133286133287133288133289133290133291133292133293133294133295133296133297133298133299133300133301133302133303133304133305133306133307133308133309133310133311133312133313133314133315133316133317133318133319133320133321133322133323133324133325133326133327133328133329133330133331133332133333133334133335133336133337133338133339133340133341133342133343133344133345133346133347133348133349133350133351133352133353133354133355133356133357133358133359133360133361133362133363133364133365133366133367133368133369133370133371133372133373133374133375133376133377133378133379133380133381133382133383133384133385133386133387133388133389133390133391133392133393133394133395133396133397133398133399133400133401133402133403133404133405133406133407133408133409133410133411133412133413133414133415133416133417133418133419133420133421133422133423133424133425133426133427133428133429133430133431133432133433133434133435133436133437133438133439133440133441133442133443133444133445133446133447133448133449133450133451133452133453133454133455133456133457133458133459133460133461133462133463133464133465133466133467133468133469133470133471133472133473133474133475133476133477133478133479133480133481133482133483133484133485133486133487133488133489133490133491133492133493133494133495133496133497133498133499133500133501133502133503133504133505133506133507133508133509133510133511133512133513133514133515133516133517133518133519133520133521133522133523133524133525133526133527133528133529133530133531133532133533133534133535133536133537133538133539133540133541133542133543133544133545133546133547133548133549133550133551133552133553133554133555133556133557133558133559133560133561133562133563133564133565133566133567133568133569133570133571133572133573133574133575133576133577133578133579133580133581133582133583133584133585133586133587133588133589133590133591133592133593133594133595133596133597133598133599133600133601133602133603133604133605133606133607133608133609133610133611133612133613133614133615133616133617133618133619133620133621133622133623133624133625133626133627133628133629133630133631133632133633133634133635133636133637133638133639133640133641133642133643133644133645133646133647133648133649133650133651133652133653133654133655133656133657133658133659133660133661133662133663133664133665133666133667133668133669133670133671133672133673133674133675133676133677133678133679133680133681133682133683133684133685133686133687133688133689133690133691133692133693133694133695133696133697133698133699133700133701133702133703133704133705133706133707133708133709133710133711133712133713133714133715133716133717133718133719133720133721133722133723133724133725133726133727133728133729133730133731133732133733133734133735133736133737133738133739133740133741133742133743133744133745133746133747133748133749133750133751133752133753133754133755133756133757133758133759133760133761133762133763133764133765133766133767133768133769133770133771133772133773133774133775133776133777133778133779133780133781133782133783133784133785133786133787133788133789133790133791133792133793133794133795133796133797133798133799133800133801133802133803133804133805133806133807133808133809133810133811133812133813133814133815133816133817133818133819133820133821133822133823133824133825133826133827133828133829133830133831133832133833133834133835133836133837133838133839133840133841133842133843133844133845133846133847133848133849133850133851133852133853133854133855133856133857133858133859133860133861133862133863133864133865133866133867133868133869133870133871133872133873133874133875133876133877133878133879133880133881133882133883133884133885133886133887133888133889133890133891133892133893133894133895133896133897133898133899133900133901133902133903133904133905133906133907133908133909133910133911133912133913133914133915133916133917133918133919133920133921133922133923133924133925133926133927133928133929133930133931133932133933133934133935133936133937133938133939133940133941133942133943133944133945133946133947133948133949133950133951133952133953133954133955133956133957133958133959133960133961133962133963133964133965133966133967133968133969133970133971133972133973133974133975133976133977133978133979133980133981133982133983133984133985133986133987133988133989133990133991133992133993133994133995133996133997133998133999134000134001134002134003134004134005134006134007134008134009134010134011134012134013134014134015134016134017134018134019134020134021134022134023134024134025134026134027134028134029134030134031134032134033134034134035134036134037134038134039134040134041134042134043134044134045134046134047134048134049134050134051134052134053134054134055134056134057134058134059134060134061134062134063134064134065134066134067134068134069134070134071134072134073134074134075134076134077134078134079134080134081134082134083134084134085134086134087134088134089134090134091134092134093134094134095134096134097134098134099134100134101134102134103134104134105134106134107134108134109134110134111134112134113134114134115134116134117134118134119134120134121134122134123134124134125134126134127134128134129134130134131134132134133134134134135134136134137134138134139134140134141134142134143134144134145134146134147134148134149134150134151134152134153134154134155134156134157134158134159134160134161134162134163134164134165134166134167134168134169134170134171134172134173134174134175134176134177134178134179134180134181134182134183134184134185134186134187134188134189134190134191134192134193134194134195134196134197134198134199134200134201134202134203134204134205134206134207134208134209134210134211134212134213134214134215134216134217134218134219134220134221134222134223134224134225134226134227134228134229134230134231134232134233134234134235134236134237134238134239134240134241134242134243134244134245134246134247134248134249134250134251134252134253134254134255134256134257134258134259134260134261134262134263134264134265134266134267134268134269134270134271134272134273134274134275134276134277134278134279134280134281134282134283134284134285134286134287134288134289134290134291134292134293134294134295134296134297134298134299134300134301134302134303134304134305134306134307134308134309134310134311134312134313134314134315134316134317134318134319134320134321134322134323134324134325134326134327134328134329134330134331134332134333134334134335134336134337134338134339134340134341134342134343134344134345134346134347134348134349134350134351134352134353134354134355134356134357134358134359134360134361134362134363134364134365134366134367134368134369134370134371134372134373134374134375134376134377134378134379134380134381134382134383134384134385134386134387134388134389134390134391134392134393134394134395134396134397134398134399134400134401134402134403134404134405134406134407134408134409134410134411134412134413134414134415134416134417134418134419134420134421134422134423134424134425134426134427134428134429134430134431134432134433134434134435134436134437134438134439134440134441134442134443134444134445134446134447134448134449134450134451134452134453134454134455134456134457134458134459134460134461134462134463134464134465134466134467134468134469134470134471134472134473134474134475134476134477134478134479134480134481134482134483134484134485134486134487134488134489134490134491134492134493134494134495134496134497134498134499134500134501134502134503134504134505134506134507134508134509134510134511134512134513134514134515134516134517134518134519134520134521134522134523134524134525134526134527134528134529134530134531134532134533134534134535134536134537134538134539134540134541134542134543134544134545134546134547134548134549134550134551134552134553134554134555134556134557134558134559134560134561134562134563134564134565134566134567134568134569134570134571134572134573134574134575134576134577134578134579134580134581134582134583134584134585134586134587134588134589134590134591134592134593134594134595134596134597134598134599134600134601134602134603134604134605134606134607134608134609134610134611134612134613134614134615134616134617134618134619134620134621134622134623134624134625134626134627134628134629134630134631134632134633134634134635134636134637134638134639134640134641134642134643134644134645134646134647134648134649134650134651134652134653134654134655134656134657134658134659134660134661134662134663134664134665134666134667134668134669134670134671134672134673134674134675134676134677134678134679134680134681134682134683134684134685134686134687134688134689134690134691134692134693134694134695134696134697134698134699134700134701134702134703134704134705134706134707134708134709134710134711134712134713134714134715134716134717134718134719134720134721134722134723134724134725134726134727134728134729134730134731134732134733134734134735134736134737134738134739134740134741134742134743134744134745134746134747134748134749134750134751134752134753134754134755134756134757134758134759134760134761134762134763134764134765134766134767134768134769134770134771134772134773134774134775134776134777134778134779134780134781134782134783134784134785134786134787134788134789134790134791134792134793134794134795134796134797134798134799134800134801134802134803134804134805134806134807134808134809134810134811134812134813134814134815134816134817134818134819134820134821134822134823134824134825134826134827134828134829134830134831134832134833134834134835134836134837134838134839134840134841134842134843134844134845134846134847134848134849134850134851134852134853134854134855134856134857134858134859134860134861134862134863134864134865134866134867134868134869134870134871134872134873134874134875134876134877134878134879134880134881134882134883134884134885134886134887134888134889134890134891134892134893134894134895134896134897134898134899134900134901134902134903134904134905134906134907134908134909134910134911134912134913134914134915134916134917134918134919134920134921134922134923134924134925134926134927134928134929134930134931134932134933134934134935134936134937134938134939134940134941134942134943134944134945134946134947134948134949134950134951134952134953134954134955134956134957134958134959134960134961134962134963134964134965134966134967134968134969134970134971134972134973134974134975134976134977134978134979134980134981134982134983134984134985134986134987134988134989134990134991134992134993134994134995134996134997134998134999135000135001135002135003135004135005135006135007135008135009135010135011135012135013135014135015135016135017135018135019135020135021135022135023135024135025135026135027135028135029135030135031135032135033135034135035135036135037135038135039135040135041135042135043135044135045135046135047135048135049135050135051135052135053135054135055135056135057135058135059135060135061135062135063135064135065135066135067135068135069135070135071135072135073135074135075135076135077135078135079135080135081135082135083135084135085135086135087135088135089135090135091135092135093135094135095135096135097135098135099135100135101135102135103135104135105135106135107135108135109135110135111135112135113135114135115135116135117135118135119135120135121135122135123135124135125135126135127135128135129135130135131135132135133135134135135135136135137135138135139135140135141135142135143135144135145135146135147135148135149135150135151135152135153135154135155135156135157135158135159135160135161135162135163135164135165135166135167135168135169135170135171135172135173135174135175135176135177135178135179135180135181135182135183135184135185135186135187135188135189135190135191135192135193135194135195135196135197135198135199135200135201135202135203135204135205135206135207135208135209135210135211135212135213135214135215135216135217135218135219135220135221135222135223135224135225135226135227135228135229135230135231135232135233135234135235135236135237135238135239135240135241135242135243135244135245135246135247135248135249135250135251135252135253135254135255135256135257135258135259135260135261135262135263135264135265135266135267135268135269135270135271135272135273135274135275135276135277135278135279135280135281135282135283135284135285135286135287135288135289135290135291135292135293135294135295135296135297135298135299135300135301135302135303135304135305135306135307135308135309135310135311135312135313135314135315135316135317135318135319135320135321135322135323135324135325135326135327135328135329135330135331135332135333135334135335135336135337135338135339135340135341135342135343135344135345135346135347135348135349135350135351135352135353135354135355135356135357135358135359135360135361135362135363135364135365135366135367135368135369135370135371135372135373135374135375135376135377135378135379135380135381135382135383135384135385135386135387135388135389135390135391135392135393135394135395135396135397135398135399135400135401135402135403135404135405135406135407135408135409135410135411135412135413135414135415135416135417135418135419135420135421135422135423135424135425135426135427135428135429135430135431135432135433135434135435135436135437135438135439135440135441135442135443135444135445135446135447135448135449135450135451135452135453135454135455135456135457135458135459135460135461135462135463135464135465135466135467135468135469135470135471135472135473135474135475135476135477135478135479135480135481135482135483135484135485135486135487135488135489135490135491135492135493135494135495135496135497135498135499135500135501135502135503135504135505135506135507135508135509135510135511135512135513135514135515135516135517135518135519135520135521135522135523135524135525135526135527135528135529135530135531135532135533135534135535135536135537135538135539135540135541135542135543135544135545135546135547135548135549135550135551135552135553135554135555135556135557135558135559135560135561135562135563135564135565135566135567135568135569135570135571135572135573135574135575135576135577135578135579135580135581135582135583135584135585135586135587135588135589135590135591135592135593135594135595135596135597135598135599135600135601135602135603135604135605135606135607135608135609135610135611135612135613135614135615135616135617135618135619135620135621135622135623135624135625135626135627135628135629135630135631135632135633135634135635135636135637135638135639135640135641135642135643135644135645135646135647135648135649135650135651135652135653135654135655135656135657135658135659135660135661135662135663135664135665135666135667135668135669135670135671135672135673135674135675135676135677135678135679135680135681135682135683135684135685135686135687135688135689135690135691135692135693135694135695135696135697135698135699135700135701135702135703135704135705135706135707135708135709135710135711135712135713135714135715135716135717135718135719135720135721135722135723135724135725135726135727135728135729135730135731135732135733135734135735135736135737135738135739135740135741135742135743135744135745135746135747135748135749135750135751135752135753135754135755135756135757135758135759135760135761135762135763135764135765135766135767135768135769135770135771135772135773135774135775135776135777135778135779135780135781135782135783135784135785135786135787135788135789135790135791135792135793135794135795135796135797135798135799135800135801135802135803135804135805135806135807135808135809135810135811135812135813135814135815135816135817135818135819135820135821135822135823135824135825135826135827135828135829135830135831135832135833135834135835135836135837135838135839135840135841135842135843135844135845135846135847135848135849135850135851135852135853135854135855135856135857135858135859135860135861135862135863135864135865135866135867135868135869135870135871135872135873135874135875135876135877135878135879135880135881135882135883135884135885135886135887135888135889135890135891135892135893135894135895135896135897135898135899135900135901135902135903135904135905135906135907135908135909135910135911135912135913135914135915135916135917135918135919135920135921135922135923135924135925135926135927135928135929135930135931135932135933135934135935135936135937135938135939135940135941135942135943135944135945135946135947135948135949135950135951135952135953135954135955135956135957135958135959135960135961135962135963135964135965135966135967135968135969135970135971135972135973135974135975135976135977135978135979135980135981135982135983135984135985135986135987135988135989135990135991135992135993135994135995135996135997135998135999136000136001136002136003136004136005136006136007136008136009136010136011136012136013136014136015136016136017136018136019136020136021136022136023136024136025136026136027136028136029136030136031136032136033136034136035136036136037136038136039136040136041136042136043136044136045136046136047136048136049136050136051136052136053136054136055136056136057136058136059136060136061136062136063136064136065136066136067136068136069136070136071136072136073136074136075136076136077136078136079136080136081136082136083136084136085136086136087136088136089136090136091136092136093136094136095136096136097136098136099136100136101136102136103136104136105136106136107136108136109136110136111136112136113136114136115136116136117136118136119136120136121136122136123136124136125136126136127136128136129136130136131136132136133136134136135136136136137136138136139136140136141136142136143136144136145136146136147136148136149136150136151136152136153136154136155136156136157136158136159136160136161136162136163136164136165136166136167136168136169136170136171136172136173136174136175136176136177136178136179136180136181136182136183136184136185136186136187136188136189136190136191136192136193136194136195136196136197136198136199136200136201136202136203136204136205136206136207136208136209136210136211136212136213136214136215136216136217136218136219136220136221136222136223136224136225136226136227136228136229136230136231136232136233136234136235136236136237136238136239136240136241136242136243136244136245136246136247136248136249136250136251136252136253136254136255136256136257136258136259136260136261136262136263136264136265136266136267136268136269136270136271136272136273136274136275136276136277136278136279136280136281136282136283136284136285136286136287136288136289136290136291136292136293136294136295136296136297136298136299136300136301136302136303136304136305136306136307136308136309136310136311136312136313136314136315136316136317136318136319136320136321136322136323136324136325136326136327136328136329136330136331136332136333136334136335136336136337136338136339136340136341136342136343136344136345136346136347136348136349136350136351136352136353136354136355136356136357136358136359136360136361136362136363136364136365136366136367136368136369136370136371136372136373136374136375136376136377136378136379136380136381136382136383136384136385136386136387136388136389136390136391136392136393136394136395136396136397136398136399136400136401136402136403136404136405136406136407136408136409136410136411136412136413136414136415136416136417136418136419136420136421136422136423136424136425136426136427136428136429136430136431136432136433136434136435136436136437136438136439136440136441136442136443136444136445136446136447136448136449136450136451136452136453136454136455136456136457136458136459136460136461136462136463136464136465136466136467136468136469136470136471136472136473136474136475136476136477136478136479136480136481136482136483136484136485136486136487136488136489136490136491136492136493136494136495136496136497136498136499136500136501136502136503136504136505136506136507136508136509136510136511136512136513136514136515136516136517136518136519136520136521136522136523136524136525136526136527136528136529136530136531136532136533136534136535136536136537136538136539136540136541136542136543136544136545136546136547136548136549136550136551136552136553136554136555136556136557136558136559136560136561136562136563136564136565136566136567136568136569136570136571136572136573136574136575136576136577136578136579136580136581136582136583136584136585136586136587136588136589136590136591136592136593136594136595136596136597136598136599136600136601136602136603136604136605136606136607136608136609136610136611136612136613136614136615136616136617136618136619136620136621136622136623136624136625136626136627136628136629136630136631136632136633136634136635136636136637136638136639136640136641136642136643136644136645136646136647136648136649136650136651136652136653136654136655136656136657136658136659136660136661136662136663136664136665136666136667136668136669136670136671136672136673136674136675136676136677136678136679136680136681136682136683136684136685136686136687136688136689136690136691136692136693136694136695136696136697136698136699136700136701136702136703136704136705136706136707136708136709136710136711136712136713136714136715136716136717136718136719136720136721136722136723136724136725136726136727136728136729136730136731136732136733136734136735136736136737136738136739136740136741136742136743136744136745136746136747136748136749136750136751136752136753136754136755136756136757136758136759136760136761136762136763136764136765136766136767136768136769136770136771136772136773136774136775136776136777136778136779136780136781136782136783136784136785136786136787136788136789136790136791136792136793136794136795136796136797136798136799136800136801136802136803136804136805136806136807136808136809136810136811136812136813136814136815136816136817136818136819136820136821136822136823136824136825136826136827136828136829136830136831136832136833136834136835136836136837136838136839136840136841136842136843136844136845136846136847136848136849136850136851136852136853136854136855136856136857136858136859136860136861136862136863136864136865136866136867136868136869136870136871136872136873136874136875136876136877136878136879136880136881136882136883136884136885136886136887136888136889136890136891136892136893136894136895136896136897136898136899136900136901136902136903136904136905136906136907136908136909136910136911136912136913136914136915136916136917136918136919136920136921136922136923136924136925136926136927136928136929136930136931136932136933136934136935136936136937136938136939136940136941136942136943136944136945136946136947136948136949136950136951136952136953136954136955136956136957136958136959136960136961136962136963136964136965136966136967136968136969136970136971136972136973136974136975136976136977136978136979136980136981136982136983136984136985136986136987136988136989136990136991136992136993136994136995136996136997136998136999137000137001137002137003137004137005137006137007137008137009137010137011137012137013137014137015137016137017137018137019137020137021137022137023137024137025137026137027137028137029137030137031137032137033137034137035137036137037137038137039137040137041137042137043137044137045137046137047137048137049137050137051137052137053137054137055137056137057137058137059137060137061137062137063137064137065137066137067137068137069137070137071137072137073137074137075137076137077137078137079137080137081137082137083137084137085137086137087137088137089137090137091137092137093137094137095137096137097137098137099137100137101137102137103137104137105137106137107137108137109137110137111137112137113137114137115137116137117137118137119137120137121137122137123137124137125137126137127137128137129137130137131137132137133137134137135137136137137137138137139137140137141137142137143137144137145137146137147137148137149137150137151137152137153137154137155137156137157137158137159137160137161137162137163137164137165137166137167137168137169137170137171137172137173137174137175137176137177137178137179137180137181137182137183137184137185137186137187137188137189137190137191137192137193137194137195137196137197137198137199137200137201137202137203137204137205137206137207137208137209137210137211137212137213137214137215137216137217137218137219137220137221137222137223137224137225137226137227137228137229137230137231137232137233137234137235137236137237137238137239137240137241137242137243137244137245137246137247137248137249137250137251137252137253137254137255137256137257137258137259137260137261137262137263137264137265137266137267137268137269137270137271137272137273137274137275137276137277137278137279137280137281137282137283137284137285137286137287137288137289137290137291137292137293137294137295137296137297137298137299137300137301137302137303137304137305137306137307137308137309137310137311137312137313137314137315137316137317137318137319137320137321137322137323137324137325137326137327137328137329137330137331137332137333137334137335137336137337137338137339137340137341137342137343137344137345137346137347137348137349137350137351137352137353137354137355137356137357137358137359137360137361137362137363137364137365137366137367137368137369137370137371137372137373137374137375137376137377137378137379137380137381137382137383137384137385137386137387137388137389137390137391137392137393137394137395137396137397137398137399137400137401137402137403137404137405137406137407137408137409137410137411137412137413137414137415137416137417137418137419137420137421137422137423137424137425137426137427137428137429137430137431137432137433137434137435137436137437137438137439137440137441137442137443137444137445137446137447137448137449137450137451137452137453137454137455137456137457137458137459137460137461137462137463137464137465137466137467137468137469137470137471137472137473137474137475137476137477137478137479137480137481137482137483137484137485137486137487137488137489137490137491137492137493137494137495137496137497137498137499137500137501137502137503137504137505137506137507137508137509137510137511137512137513137514137515137516137517137518137519137520137521137522137523137524137525137526137527137528137529137530137531137532137533137534137535137536137537137538137539137540137541137542137543137544137545137546137547137548137549137550137551137552137553137554137555137556137557137558137559137560137561137562137563137564137565137566137567137568137569137570137571137572137573137574137575137576137577137578137579137580137581137582137583137584137585137586137587137588137589137590137591137592137593137594137595137596137597137598137599137600137601137602137603137604137605137606137607137608137609137610137611137612137613137614137615137616137617137618137619137620137621137622137623137624137625137626137627137628137629137630137631137632137633137634137635137636137637137638137639137640137641137642137643137644137645137646137647137648137649137650137651137652137653137654137655137656137657137658137659137660137661137662137663137664137665137666137667137668137669137670137671137672137673137674137675137676137677137678137679137680137681137682137683137684137685137686137687137688137689137690137691137692137693137694137695137696137697137698137699137700137701137702137703137704137705137706137707137708137709137710137711137712137713137714137715137716137717137718137719137720137721137722137723137724137725137726137727137728137729137730137731137732137733137734137735137736137737137738137739137740137741137742137743137744137745137746137747137748137749137750137751137752137753137754137755137756137757137758137759137760137761137762137763137764137765137766137767137768137769137770137771137772137773137774137775137776137777137778137779137780137781137782137783137784137785137786137787137788137789137790137791137792137793137794137795137796137797137798137799137800137801137802137803137804137805137806137807137808137809137810137811137812137813137814137815137816137817137818137819137820137821137822137823137824137825137826137827137828137829137830137831137832137833137834137835137836137837137838137839137840137841137842137843137844137845137846137847137848137849137850137851137852137853137854137855137856137857137858137859137860137861137862137863137864137865137866137867137868137869137870137871137872137873137874137875137876137877137878137879137880137881137882137883137884137885137886137887137888137889137890137891137892137893137894137895137896137897137898137899137900137901137902137903137904137905137906137907137908137909137910137911137912137913137914137915137916137917137918137919137920137921137922137923137924137925137926137927137928137929137930137931137932137933137934137935137936137937137938137939137940137941137942137943137944137945137946137947137948137949137950137951137952137953137954137955137956137957137958137959137960137961137962137963137964137965137966137967137968137969137970137971137972137973137974137975137976137977137978137979137980137981137982137983137984137985137986137987137988137989137990137991137992137993137994137995137996137997137998137999138000138001138002138003138004138005138006138007138008138009138010138011138012138013138014138015138016138017138018138019138020138021138022138023138024138025138026138027138028138029138030138031138032138033138034138035138036138037138038138039138040138041138042138043138044138045138046138047138048138049138050138051138052138053138054138055138056138057138058138059138060138061138062138063138064138065138066138067138068138069138070138071138072138073138074138075138076138077138078138079138080138081138082138083138084138085138086138087138088138089138090138091138092138093138094138095138096138097138098138099138100138101138102138103138104138105138106138107138108138109138110138111138112138113138114138115138116138117138118138119138120138121138122138123138124138125138126138127138128138129138130138131138132138133138134138135138136138137138138138139138140138141138142138143138144138145138146138147138148138149138150138151138152138153138154138155138156138157138158138159138160138161138162138163138164138165138166138167138168138169138170138171138172138173138174138175138176138177138178138179138180138181138182138183138184138185138186138187138188138189138190138191138192138193138194138195138196138197138198138199138200138201138202138203138204138205138206138207138208138209138210138211138212138213138214138215138216138217138218138219138220138221138222138223138224138225138226138227138228138229138230138231138232138233138234138235138236138237138238138239138240138241138242138243138244138245138246138247138248138249138250138251138252138253138254138255138256138257138258138259138260138261138262138263138264138265138266138267138268138269138270138271138272138273138274138275138276138277138278138279138280138281138282138283138284138285138286138287138288138289138290138291138292138293138294138295138296138297138298138299138300138301138302138303138304138305138306138307138308138309138310138311138312138313138314138315138316138317138318138319138320138321138322138323138324138325138326138327138328138329138330138331138332138333138334138335138336138337138338138339138340138341138342138343138344138345138346138347138348138349138350138351138352138353138354138355138356138357138358138359138360138361138362138363138364138365138366138367138368138369138370138371138372138373138374138375138376138377138378138379138380138381138382138383138384138385138386138387138388138389138390138391138392138393138394138395138396138397138398138399138400138401138402138403138404138405138406138407138408138409138410138411138412138413138414138415138416138417138418138419138420138421138422138423138424138425138426138427138428138429138430138431138432138433138434138435138436138437138438138439138440138441138442138443138444138445138446138447138448138449138450138451138452138453138454138455138456138457138458138459138460138461138462138463138464138465138466138467138468138469138470138471138472138473138474138475138476138477138478138479138480138481138482138483138484138485138486138487138488138489138490138491138492138493138494138495138496138497138498138499138500138501138502138503138504138505138506138507138508138509138510138511138512138513138514138515138516138517138518138519138520138521138522138523138524138525138526138527138528138529138530138531138532138533138534138535138536138537138538138539138540138541138542138543138544138545138546138547138548138549138550138551138552138553138554138555138556138557138558138559138560138561138562138563138564138565138566138567138568138569138570138571138572138573138574138575138576138577138578138579138580138581138582138583138584138585138586138587138588138589138590138591138592138593138594138595138596138597138598138599138600138601138602138603138604138605138606138607138608138609138610138611138612138613138614138615138616138617138618138619138620138621138622138623138624138625138626138627138628138629138630138631138632138633138634138635138636138637138638138639138640138641138642138643138644138645138646138647138648138649138650138651138652138653138654138655138656138657138658138659138660138661138662138663138664138665138666138667138668138669138670138671138672138673138674138675138676138677138678138679138680138681138682138683138684138685138686138687138688138689138690138691138692138693138694138695138696138697138698138699138700138701138702138703138704138705138706138707138708138709138710138711138712138713138714138715138716138717138718138719138720138721138722138723138724138725138726138727138728138729138730138731138732138733138734138735138736138737138738138739138740138741138742138743138744138745138746138747138748138749138750138751138752138753138754138755138756138757138758138759138760138761138762138763138764138765138766138767138768138769138770138771138772138773138774138775138776138777138778138779138780138781138782138783138784138785138786138787138788138789138790138791138792138793138794138795138796138797138798138799138800138801138802138803138804138805138806138807138808138809138810138811138812138813138814138815138816138817138818138819138820138821138822138823138824138825138826138827138828138829138830138831138832138833138834138835138836138837138838138839138840138841138842138843138844138845138846138847138848138849138850138851138852138853138854138855138856138857138858138859138860138861138862138863138864138865138866138867138868138869138870138871138872138873138874138875138876138877138878138879138880138881138882138883138884138885138886138887138888138889138890138891138892138893138894138895138896138897138898138899138900138901138902138903138904138905138906138907138908138909138910138911138912138913138914138915138916138917138918138919138920138921138922138923138924138925138926138927138928138929138930138931138932138933138934138935138936138937138938138939138940138941138942138943138944138945138946138947138948138949138950138951138952138953138954138955138956138957138958138959138960138961138962138963138964138965138966138967138968138969138970138971138972138973138974138975138976138977138978138979138980138981138982138983138984138985138986138987138988138989138990138991138992138993138994138995138996138997138998138999139000139001139002139003139004139005139006139007139008139009139010139011139012139013139014139015139016139017139018139019139020139021139022139023139024139025139026139027139028139029139030139031139032139033139034139035139036139037139038139039139040139041139042139043139044139045139046139047139048139049139050139051139052139053139054139055139056139057139058139059139060139061139062139063139064139065139066139067139068139069139070139071139072139073139074139075139076139077139078139079139080139081139082139083139084139085139086139087139088139089139090139091139092139093139094139095139096139097139098139099139100139101139102139103139104139105139106139107139108139109139110139111139112139113139114139115139116139117139118139119139120139121139122139123139124139125139126139127139128139129139130139131139132139133139134139135139136139137139138139139139140139141139142139143139144139145139146139147139148139149139150139151139152139153139154139155139156139157139158139159139160139161139162139163139164139165139166139167139168139169139170139171139172139173139174139175139176139177139178139179139180139181139182139183139184139185139186139187139188139189139190139191139192139193139194139195139196139197139198139199139200139201139202139203139204139205139206139207139208139209139210139211139212139213139214139215139216139217139218139219139220139221139222139223139224139225139226139227139228139229139230139231139232139233139234139235139236139237139238139239139240139241139242139243139244139245139246139247139248139249139250139251139252139253139254139255139256139257139258139259139260139261139262139263139264139265139266139267139268139269139270139271139272139273139274139275139276139277139278139279139280139281139282139283139284139285139286139287139288139289139290139291139292139293139294139295139296139297139298139299139300139301139302139303139304139305139306139307139308139309139310139311139312139313139314139315139316139317139318139319139320139321139322139323139324139325139326139327139328139329139330139331139332139333139334139335139336139337139338139339139340139341139342139343139344139345139346139347139348139349139350139351139352139353139354139355139356139357139358139359139360139361139362139363139364139365139366139367139368139369139370139371139372139373139374139375139376139377139378139379139380139381139382139383139384139385139386139387139388139389139390139391139392139393139394139395139396139397139398139399139400139401139402139403139404139405139406139407139408139409139410139411139412139413139414139415139416139417139418139419139420139421139422139423139424139425139426139427139428139429139430139431139432139433139434139435139436139437139438139439139440139441139442139443139444139445139446139447139448139449139450139451139452139453139454139455139456139457139458139459139460139461139462139463139464139465139466139467139468139469139470139471139472139473139474139475139476139477139478139479139480139481139482139483139484139485139486139487139488139489139490139491139492139493139494139495139496139497139498139499139500139501139502139503139504139505139506139507139508139509139510139511139512139513139514139515139516139517139518139519139520139521139522139523139524139525139526139527139528139529139530139531139532139533139534139535139536139537139538139539139540139541139542139543139544139545139546139547139548139549139550139551139552139553139554139555139556139557139558139559139560139561139562139563139564139565139566139567139568139569139570139571139572139573139574139575139576139577139578139579139580139581139582139583139584139585139586139587139588139589139590139591139592139593139594139595139596139597139598139599139600139601139602139603139604139605139606139607139608139609139610139611139612139613139614139615139616139617139618139619139620139621139622139623139624139625139626139627139628139629139630139631139632139633139634139635139636139637139638139639139640139641139642139643139644139645139646139647139648139649139650139651139652139653139654139655139656139657139658139659139660139661139662139663139664139665139666139667139668139669139670139671139672139673139674139675139676139677139678139679139680139681139682139683139684139685139686139687139688139689139690139691139692139693139694139695139696139697139698139699139700139701139702139703139704139705139706139707139708139709139710139711139712139713139714139715139716139717139718139719139720139721139722139723139724139725139726139727139728139729139730139731139732139733139734139735139736139737139738139739139740139741139742139743139744139745139746139747139748139749139750139751139752139753139754139755139756139757139758139759139760139761139762139763139764139765139766139767139768139769139770139771139772139773139774139775139776139777139778139779139780139781139782139783139784139785139786139787139788139789139790139791139792139793139794139795139796139797139798139799139800139801139802139803139804139805139806139807139808139809139810139811139812139813139814139815139816139817139818139819139820139821139822139823139824139825139826139827139828139829139830139831139832139833139834139835139836139837139838139839139840139841139842139843139844139845139846139847139848139849139850139851139852139853139854139855139856139857139858139859139860139861139862139863139864139865139866139867139868139869139870139871139872139873139874139875139876139877139878139879139880139881139882139883139884139885139886139887139888139889139890139891139892139893139894139895139896139897139898139899139900139901139902139903139904139905139906139907139908139909139910139911139912139913139914139915139916139917139918139919139920139921139922139923139924139925139926139927139928139929139930139931139932139933139934139935139936139937139938139939139940139941139942139943139944139945139946139947139948139949139950139951139952139953139954139955139956139957139958139959139960139961139962139963139964139965139966139967139968139969139970139971139972139973139974139975139976139977139978139979139980139981139982139983139984139985139986139987139988139989139990139991139992139993139994139995139996139997139998139999140000140001140002140003140004140005140006140007140008140009140010140011140012140013140014140015140016140017140018140019140020140021140022140023140024140025140026140027140028140029140030140031140032140033140034140035140036140037140038140039140040140041140042140043140044140045140046140047140048140049140050140051140052140053140054140055140056140057140058140059140060140061140062140063140064140065140066140067140068140069140070140071140072140073140074140075140076140077140078140079140080140081140082140083140084140085140086140087140088140089140090140091140092140093140094140095140096140097140098140099140100140101140102140103140104140105140106140107140108140109140110140111140112140113140114140115140116140117140118140119140120140121140122140123140124140125140126140127140128140129140130140131140132140133140134140135140136140137140138140139140140140141140142140143140144140145140146140147140148140149140150140151140152140153140154140155140156140157140158140159140160140161140162140163140164140165140166140167140168140169140170140171140172140173140174140175140176140177140178140179140180140181140182140183140184140185140186140187140188140189140190140191140192140193140194140195140196140197140198140199140200140201140202140203140204140205140206140207140208140209140210140211140212140213140214140215140216140217140218140219140220140221140222140223140224140225140226140227140228140229140230140231140232140233140234140235140236140237140238140239140240140241140242140243140244140245140246140247140248140249140250140251140252140253140254140255140256140257140258140259140260140261140262140263140264140265140266140267140268140269140270140271140272140273140274140275140276140277140278140279140280140281140282140283140284140285140286140287140288140289140290140291140292140293140294140295140296140297140298140299140300140301140302140303140304140305140306140307140308140309140310140311140312140313140314140315140316140317140318140319140320140321140322140323140324140325140326140327140328140329140330140331140332140333140334140335140336140337140338140339140340140341140342140343140344140345140346140347140348140349140350140351140352140353140354140355140356140357140358140359140360140361140362140363140364140365140366140367140368140369140370140371140372140373140374140375140376140377140378140379140380140381140382140383140384140385140386140387140388140389140390140391140392140393140394140395140396140397140398140399140400140401140402140403140404140405140406140407140408140409140410140411140412140413140414140415140416140417140418140419140420140421140422140423140424140425140426140427140428140429140430140431140432140433140434140435140436140437140438140439140440140441140442140443140444140445140446140447140448140449140450140451140452140453140454140455140456140457140458140459140460140461140462140463140464140465140466140467140468140469140470140471140472140473140474140475140476140477140478140479140480140481140482140483140484140485140486140487140488140489140490140491140492140493140494140495140496140497140498140499140500140501140502140503140504140505140506140507140508140509140510140511140512140513140514140515140516140517140518140519140520140521140522140523140524140525140526140527140528140529140530140531140532140533140534140535140536140537140538140539140540140541140542140543140544140545140546140547140548140549140550140551140552140553140554140555140556140557140558140559140560140561140562140563140564140565140566140567140568140569140570140571140572140573140574140575140576140577140578140579140580140581140582140583140584140585140586140587140588140589140590140591140592140593140594140595140596140597140598140599140600140601140602140603140604140605140606140607140608140609140610140611140612140613140614140615140616140617140618140619140620140621140622140623140624140625140626140627140628140629140630140631140632140633140634140635140636140637140638140639140640140641140642140643140644140645140646140647140648140649140650140651140652140653140654140655140656140657140658140659140660140661140662140663140664140665140666140667140668140669140670140671140672140673140674140675140676140677140678140679140680140681140682140683140684140685140686140687140688140689140690140691140692140693140694140695140696140697140698140699140700140701140702140703140704140705140706140707140708140709140710140711140712140713140714140715140716140717140718140719140720140721140722140723140724140725140726140727140728140729140730140731140732140733140734140735140736140737140738140739140740140741140742140743140744140745140746140747140748140749140750140751140752140753140754140755140756140757140758140759140760140761140762140763140764140765140766140767140768140769140770140771140772140773140774140775140776140777140778140779140780140781140782140783140784140785140786140787140788140789140790140791140792140793140794140795140796140797140798140799140800140801140802140803140804140805140806140807140808140809140810140811140812140813140814140815140816140817140818140819140820140821140822140823140824140825140826140827140828140829140830140831140832140833140834140835140836140837140838140839140840140841140842140843140844140845140846140847140848140849140850140851140852140853140854140855140856140857140858140859140860140861140862140863140864140865140866140867140868140869140870140871140872140873140874140875140876140877140878140879140880140881140882140883140884140885140886140887140888140889140890140891140892140893140894140895140896140897140898140899140900140901140902140903140904140905140906140907140908140909140910140911140912140913140914140915140916140917140918140919140920140921140922140923140924140925140926140927140928140929140930140931140932140933140934140935140936140937140938140939140940140941140942140943140944140945140946140947140948140949140950140951140952140953140954140955140956140957140958140959140960140961140962140963140964140965140966140967140968140969140970140971140972140973140974140975140976140977140978140979140980140981140982140983140984140985140986140987140988140989140990140991140992140993140994140995140996140997140998140999141000141001141002141003141004141005141006141007141008141009141010141011141012141013141014141015141016141017141018141019141020141021141022141023141024141025141026141027141028141029141030141031141032141033141034141035141036141037141038141039141040141041141042141043141044141045141046141047141048141049141050141051141052141053141054141055141056141057141058141059141060141061141062141063141064141065141066141067141068141069141070141071141072141073141074141075141076141077141078141079141080141081141082141083141084141085141086141087141088141089141090141091141092141093141094141095141096141097141098141099141100141101141102141103141104141105141106141107141108141109141110141111141112141113141114141115141116141117141118141119141120141121141122141123141124141125141126141127141128141129141130141131141132141133141134141135141136141137141138141139141140141141141142141143141144141145141146141147141148141149141150141151141152141153141154141155141156141157141158141159141160141161141162141163141164141165141166141167141168141169141170141171141172141173141174141175141176141177141178141179141180141181141182141183141184141185141186141187141188141189141190141191141192141193141194141195141196141197141198141199141200141201141202141203141204141205141206141207141208141209141210141211141212141213141214141215141216141217141218141219141220141221141222141223141224141225141226141227141228141229141230141231141232141233141234141235141236141237141238141239141240141241141242141243141244141245141246141247141248141249141250141251141252141253141254141255141256141257141258141259141260141261141262141263141264141265141266141267141268141269141270141271141272141273141274141275141276141277141278141279141280141281141282141283141284141285141286141287141288141289141290141291141292141293141294141295141296141297141298141299141300141301141302141303141304141305141306141307141308141309141310141311141312141313141314141315141316141317141318141319141320141321141322141323141324141325141326141327141328141329141330141331141332141333141334141335141336141337141338141339141340141341141342141343141344141345141346141347141348141349141350141351141352141353141354141355141356141357141358141359141360141361141362141363141364141365141366141367141368141369141370141371141372141373141374141375141376141377141378141379141380141381141382141383141384141385141386141387141388141389141390141391141392141393141394141395141396141397141398141399141400141401141402141403141404141405141406141407141408141409141410141411141412141413141414141415141416141417141418141419141420141421141422141423141424141425141426141427141428141429141430141431141432141433141434141435141436141437141438141439141440141441141442141443141444141445141446141447141448141449141450141451141452141453141454141455141456141457141458141459141460141461141462141463141464141465141466141467141468141469141470141471141472141473141474141475141476141477141478141479141480141481141482141483141484141485141486141487141488141489141490141491141492141493141494141495141496141497141498141499141500141501141502141503141504141505141506141507141508141509141510141511141512141513141514141515141516141517141518141519141520141521141522141523141524141525141526141527141528141529141530141531141532141533141534141535141536141537141538141539141540141541141542141543141544141545141546141547141548141549141550141551141552141553141554141555141556141557141558141559141560141561141562141563141564141565141566141567141568141569141570141571141572141573141574141575141576141577141578141579141580141581141582141583141584141585141586141587141588141589141590141591141592141593141594141595141596141597141598141599141600141601141602141603141604141605141606141607141608141609141610141611141612141613141614141615141616141617141618141619141620141621141622141623141624141625141626141627141628141629141630141631141632141633141634141635141636141637141638141639141640141641141642141643141644141645141646141647141648141649141650141651141652141653141654141655141656141657141658141659141660141661141662141663141664141665141666141667141668141669141670141671141672141673141674141675141676141677141678141679141680141681141682141683141684141685141686141687141688141689141690141691141692141693141694141695141696141697141698141699141700141701141702141703141704141705141706141707141708141709141710141711141712141713141714141715141716141717141718141719141720141721141722141723141724141725141726141727141728141729141730141731141732141733141734141735141736141737141738141739141740141741141742141743141744141745141746141747141748141749141750141751141752141753141754141755141756141757141758141759141760141761141762141763141764141765141766141767141768141769141770141771141772141773141774141775141776141777141778141779141780141781141782141783141784141785141786141787141788141789141790141791141792141793141794141795141796141797141798141799141800141801141802141803141804141805141806141807141808141809141810141811141812141813141814141815141816141817141818141819141820141821141822141823141824141825141826141827141828141829141830141831141832141833141834141835141836141837141838141839141840141841141842141843141844141845141846141847141848141849141850141851141852141853141854141855141856141857141858141859141860141861141862141863141864141865141866141867141868141869141870141871141872141873141874141875141876141877141878141879141880141881141882141883141884141885141886141887141888141889141890141891141892141893141894141895141896141897141898141899141900141901141902141903141904141905141906141907141908141909141910141911141912141913141914141915141916141917141918141919141920141921141922141923141924141925141926141927141928141929141930141931141932141933141934141935141936141937141938141939141940141941141942141943141944141945141946141947141948141949141950141951141952141953141954141955141956141957141958141959141960141961141962141963141964141965141966141967141968141969141970141971141972141973141974141975141976141977141978141979141980141981141982141983141984141985141986141987141988141989141990141991141992141993141994141995141996141997141998141999142000142001142002142003142004142005142006142007142008142009142010142011142012142013142014142015142016142017142018142019142020142021142022142023142024142025142026142027142028142029142030142031142032142033142034142035142036142037142038142039142040142041142042142043142044142045142046142047142048142049142050142051142052142053142054142055142056142057142058142059142060142061142062142063142064142065142066142067142068142069142070142071142072142073142074142075142076142077142078142079142080142081142082142083142084142085142086142087142088142089142090142091142092142093142094142095142096142097142098142099142100142101142102142103142104142105142106142107142108142109142110142111142112142113142114142115142116142117142118142119142120142121142122142123142124142125142126142127142128142129142130142131142132142133142134142135142136142137142138142139142140142141142142142143142144142145142146142147142148142149142150142151142152142153142154142155142156142157142158142159142160142161142162142163142164142165142166142167142168142169142170142171142172142173142174142175142176142177142178142179142180142181142182142183142184142185142186142187142188142189142190142191142192142193142194142195142196142197142198142199142200142201142202142203142204142205142206142207142208142209142210142211142212142213142214142215142216142217142218142219142220142221142222142223142224142225142226142227142228142229142230142231142232142233142234142235142236142237142238142239142240142241142242142243142244142245142246142247142248142249142250142251142252142253142254142255142256142257142258142259142260142261142262142263142264142265142266142267142268142269142270142271142272142273142274142275142276142277142278142279142280142281142282142283142284142285142286142287142288142289142290142291142292142293142294142295142296142297142298142299142300142301142302142303142304142305142306142307142308142309142310142311142312142313142314142315142316142317142318142319142320142321142322142323142324142325142326142327142328142329142330142331142332142333142334142335142336142337142338142339142340142341142342142343142344142345142346142347142348142349142350142351142352142353142354142355142356142357142358142359142360142361142362142363142364142365142366142367142368142369142370142371142372142373142374142375142376142377142378142379142380142381142382142383142384142385142386142387142388142389142390142391142392142393142394142395142396142397142398142399142400142401142402142403142404142405142406142407142408142409142410142411142412142413142414142415142416142417142418142419142420142421142422142423142424142425142426142427142428142429142430142431142432142433142434142435142436142437142438142439142440142441142442142443142444142445142446142447142448142449142450142451142452142453142454142455142456142457142458142459142460142461142462142463142464142465142466142467142468142469142470142471142472142473142474142475142476142477142478142479142480142481142482142483142484142485142486142487142488142489142490142491142492142493142494142495142496142497142498142499142500142501142502142503142504142505142506142507142508142509142510142511142512142513142514142515142516142517142518142519142520142521142522142523142524142525142526142527142528142529142530142531142532142533142534142535142536142537142538142539142540142541142542142543142544142545142546142547142548142549142550142551142552142553142554142555142556142557142558142559142560142561142562142563142564142565142566142567142568142569142570142571142572142573142574142575142576142577142578142579142580142581142582142583142584142585142586142587142588142589142590142591142592142593142594142595142596142597142598142599142600142601142602142603142604142605142606142607142608142609142610142611142612142613142614142615142616142617142618142619142620142621142622142623142624142625142626142627142628142629142630142631142632142633142634142635142636142637142638142639142640142641142642142643142644142645142646142647142648142649142650142651142652142653142654142655142656142657142658142659142660142661142662142663142664142665142666142667142668142669142670142671142672142673142674142675142676142677142678142679142680142681142682142683142684142685142686142687142688142689142690142691142692142693142694142695142696142697142698142699142700142701142702142703142704142705142706142707142708142709142710142711142712142713142714142715142716142717142718142719142720142721142722142723142724142725142726142727142728142729142730142731142732142733142734142735142736142737142738142739142740142741142742142743142744142745142746142747142748142749142750142751142752142753142754142755142756142757142758142759142760142761142762142763142764142765142766142767142768142769142770142771142772142773142774142775142776142777142778142779142780142781142782142783142784142785142786142787142788142789142790142791142792142793142794142795142796142797142798142799142800142801142802142803142804142805142806142807142808142809142810142811142812142813142814142815142816142817142818142819142820142821142822142823142824142825142826142827142828142829142830142831142832142833142834142835142836142837142838142839142840142841142842142843142844142845142846142847142848142849142850142851142852142853142854142855142856142857142858142859142860142861142862142863142864142865142866142867142868142869142870142871142872142873142874142875142876142877142878142879142880142881142882142883142884142885142886142887142888142889142890142891142892142893142894142895142896142897142898142899142900142901142902142903142904142905142906142907142908142909142910142911142912142913142914142915142916142917142918142919142920142921142922142923142924142925142926142927142928142929142930142931142932142933142934142935142936142937142938142939142940142941142942142943142944142945142946142947142948142949142950142951142952142953142954142955142956142957142958142959142960142961142962142963142964142965142966142967142968142969142970142971142972142973142974142975142976142977142978142979142980142981142982142983142984142985142986142987142988142989142990142991142992142993142994142995142996142997142998142999143000143001143002143003143004143005143006143007143008143009143010143011143012143013143014143015143016143017143018143019143020143021143022143023143024143025143026143027143028143029143030143031143032143033143034143035143036143037143038143039143040143041143042143043143044143045143046143047143048143049143050143051143052143053143054143055143056143057143058143059143060143061143062143063143064143065143066143067143068143069143070143071143072143073143074143075143076143077143078143079143080143081143082143083143084143085143086143087143088143089143090143091143092143093143094143095143096143097143098143099143100143101143102143103143104143105143106143107143108143109143110143111143112143113143114143115143116143117143118143119143120143121143122143123143124143125143126143127143128143129143130143131143132143133143134143135143136143137143138143139143140143141143142143143143144143145143146143147143148143149143150143151143152143153143154143155143156143157143158143159143160143161143162143163143164143165143166143167143168143169143170143171143172143173143174143175143176143177143178143179143180143181143182143183143184143185143186143187143188143189143190143191143192143193143194143195143196143197143198143199143200143201143202143203143204143205143206143207143208143209143210143211143212143213143214143215143216143217143218143219143220143221143222143223143224143225143226143227143228143229143230143231143232143233143234143235143236143237143238143239143240143241143242143243143244143245143246143247143248143249143250143251143252143253143254143255143256143257143258143259143260143261143262143263143264143265143266143267143268143269143270143271143272143273143274143275143276143277143278143279143280143281143282143283143284143285143286143287143288143289143290143291143292143293143294143295143296143297143298143299143300143301143302143303143304143305143306143307143308143309143310143311143312143313143314143315143316143317143318143319143320143321143322143323143324143325143326143327143328143329143330143331143332143333143334143335143336143337143338143339143340143341143342143343143344143345143346143347143348143349143350143351143352143353143354143355143356143357143358143359143360143361143362143363143364143365143366143367143368143369143370143371143372143373143374143375143376143377143378143379143380143381143382143383143384143385143386143387143388143389143390143391143392143393143394143395143396143397143398143399143400143401143402143403143404143405143406143407143408143409143410143411143412143413143414143415143416143417143418143419143420143421143422143423143424143425143426143427143428143429143430143431143432143433143434143435143436143437143438143439143440143441143442143443143444143445143446143447143448143449143450143451143452143453143454143455143456143457143458143459143460143461143462143463143464143465143466143467143468143469143470143471143472143473143474143475143476143477143478143479143480143481143482143483143484143485143486143487143488143489143490143491143492143493143494143495143496143497143498143499143500143501143502143503143504143505143506143507143508143509143510143511143512143513143514143515143516143517143518143519143520143521143522143523143524143525143526143527143528143529143530143531143532143533143534143535143536143537143538143539143540143541143542143543143544143545143546143547143548143549143550143551143552143553143554143555143556143557143558143559143560143561143562143563143564143565143566143567143568143569143570143571143572143573143574143575143576143577143578143579143580143581143582143583143584143585143586143587143588143589143590143591143592143593143594143595143596143597143598143599143600143601143602143603143604143605143606143607143608143609143610143611143612143613143614143615143616143617143618143619143620143621143622143623143624143625143626143627143628143629143630143631143632143633143634143635143636143637143638143639143640143641143642143643143644143645143646143647143648143649143650143651143652143653143654143655143656143657143658143659143660143661143662143663143664143665143666143667143668143669143670143671143672143673143674143675143676143677143678143679143680143681143682143683143684143685143686143687143688143689143690143691143692143693143694143695143696143697143698143699143700143701143702143703143704143705143706143707143708143709143710143711143712143713143714143715143716143717143718143719143720143721143722143723143724143725143726143727143728143729143730143731143732143733143734143735143736143737143738143739143740143741143742143743143744143745143746143747143748143749143750143751143752143753143754143755143756143757143758143759143760143761143762143763143764143765143766143767143768143769143770143771143772143773143774143775143776143777143778143779143780143781143782143783143784143785143786143787143788143789143790143791143792143793143794143795143796143797143798143799143800143801143802143803143804143805143806143807143808143809143810143811143812143813143814143815143816143817143818143819143820143821143822143823143824143825143826143827143828143829143830143831143832143833143834143835143836143837143838143839143840143841143842143843143844143845143846143847143848143849143850143851143852143853143854143855143856143857143858143859143860143861143862143863143864143865143866143867143868143869143870143871143872143873143874143875143876143877143878143879143880143881143882143883143884143885143886143887143888143889143890143891143892143893143894143895143896143897143898143899143900143901143902143903143904143905143906143907143908143909143910143911143912143913143914143915143916143917143918143919143920143921143922143923143924143925143926143927143928143929143930143931143932143933143934143935143936143937143938143939143940143941143942143943143944143945143946143947143948143949143950143951143952143953143954143955143956143957143958143959143960143961143962143963143964143965143966143967143968143969143970143971143972143973143974143975143976143977143978143979143980143981143982143983143984143985143986143987143988143989143990143991143992143993143994143995143996143997143998143999144000144001144002144003144004144005144006144007144008144009144010144011144012144013144014144015144016144017144018144019144020144021144022144023144024144025144026144027144028144029144030144031144032144033144034144035144036144037144038144039144040144041144042144043144044144045144046144047144048144049144050144051144052144053144054144055144056144057144058144059144060144061144062144063144064144065144066144067144068144069144070144071144072144073144074144075144076144077144078144079144080144081144082144083144084144085144086144087144088144089144090144091144092144093144094144095144096144097144098144099144100144101144102144103144104144105144106144107144108144109144110144111144112144113144114144115144116144117144118144119144120144121144122144123144124144125144126144127144128144129144130144131144132144133144134144135144136144137144138144139144140144141144142144143144144144145144146144147144148144149144150144151144152144153144154144155144156144157144158144159144160144161144162144163144164144165144166144167144168144169144170144171144172144173144174144175144176144177144178144179144180144181144182144183144184144185144186144187144188144189144190144191144192144193144194144195144196144197144198144199144200144201144202144203144204144205144206144207144208144209144210144211144212144213144214144215144216144217144218144219144220144221144222144223144224144225144226144227144228144229144230144231144232144233144234144235144236144237144238144239144240144241144242144243144244144245144246144247144248144249144250144251144252144253144254144255144256144257144258144259144260144261144262144263144264144265144266144267144268144269144270144271144272144273144274144275144276144277144278144279144280144281144282144283144284144285144286144287144288144289144290144291144292144293144294144295144296144297144298144299144300144301144302144303144304144305144306144307144308144309144310144311144312144313144314144315144316144317144318144319144320144321144322144323144324144325144326144327144328144329144330144331144332144333144334144335144336144337144338144339144340144341144342144343144344144345144346144347144348144349144350144351144352144353144354144355144356144357144358144359144360144361144362144363144364144365144366144367144368144369144370144371144372144373144374144375144376144377144378144379144380144381144382144383144384144385144386144387144388144389144390144391144392144393144394144395144396144397144398144399144400144401144402144403144404144405144406144407144408144409144410144411144412144413144414144415144416144417144418144419144420144421144422144423144424144425144426144427144428144429144430144431144432144433144434144435144436144437144438144439144440144441144442144443144444144445144446144447144448144449144450144451144452144453144454144455144456144457144458144459144460144461144462144463144464144465144466144467144468144469144470144471144472144473144474144475144476144477144478144479144480144481144482144483144484144485144486144487144488144489144490144491144492144493144494144495144496144497144498144499144500144501144502144503144504144505144506144507144508144509144510144511144512144513144514144515144516144517144518144519144520144521144522144523144524144525144526144527144528144529144530144531144532144533144534144535144536144537144538144539144540144541144542144543144544144545144546144547144548144549144550144551144552144553144554144555144556144557144558144559144560144561144562144563144564144565144566144567144568144569144570144571144572144573144574144575144576144577144578144579144580144581144582144583144584144585144586144587144588144589144590144591144592144593144594144595144596144597144598144599144600144601144602144603144604144605144606144607144608144609144610144611144612144613144614144615144616144617144618144619144620144621144622144623144624144625144626144627144628144629144630144631144632144633144634144635144636144637144638144639144640144641144642144643144644144645144646144647144648144649144650144651144652144653144654144655144656144657144658144659144660144661144662144663144664144665144666144667144668144669144670144671144672144673144674144675144676144677144678144679144680144681144682144683144684144685144686144687144688144689144690144691144692144693144694144695144696144697144698144699144700144701144702144703144704144705144706144707144708144709144710144711144712144713144714144715144716144717144718144719144720144721144722144723144724144725144726144727144728144729144730144731144732144733144734144735144736144737144738144739144740144741144742144743144744144745144746144747144748144749144750144751144752144753144754144755144756144757144758144759144760144761144762144763144764144765144766144767144768144769144770144771144772144773144774144775144776144777144778144779144780144781144782144783144784144785144786144787144788144789144790144791144792144793144794144795144796144797144798144799144800144801144802144803144804144805144806144807144808144809144810144811144812144813144814144815144816144817144818144819144820144821144822144823144824144825144826144827144828144829144830144831144832144833144834144835144836144837144838144839144840144841144842144843144844144845144846144847144848144849144850144851144852144853144854144855144856144857144858144859144860144861144862144863144864144865144866144867144868144869144870144871144872144873144874144875144876144877144878144879144880144881144882144883144884144885144886144887144888144889144890144891144892144893144894144895144896144897144898144899144900144901144902144903144904144905144906144907144908144909144910144911144912144913144914144915144916144917144918144919144920144921144922144923144924144925144926144927144928144929144930144931144932144933144934144935144936144937144938144939144940144941144942144943144944144945144946144947144948144949144950144951144952144953144954144955144956144957144958144959144960144961144962144963144964144965144966144967144968144969144970144971144972144973144974144975144976144977144978144979144980144981144982144983144984144985144986144987144988144989144990144991144992144993144994144995144996144997144998144999145000145001145002145003145004145005145006145007145008145009145010145011145012145013145014145015145016145017145018145019145020145021145022145023145024145025145026145027145028145029145030145031145032145033145034145035145036145037145038145039145040145041145042145043145044145045145046145047145048145049145050145051145052145053145054145055145056145057145058145059145060145061145062145063145064145065145066145067145068145069145070145071145072145073145074145075145076145077145078145079145080145081145082145083145084145085145086145087145088145089145090145091145092145093145094145095145096145097145098145099145100145101145102145103145104145105145106145107145108145109145110145111145112145113145114145115145116145117145118145119145120145121145122145123145124145125145126145127145128145129145130145131145132145133145134145135145136145137145138145139145140145141145142145143145144145145145146145147145148145149145150145151145152145153145154145155145156145157145158145159145160145161145162145163145164145165145166145167145168145169145170145171145172145173145174145175145176145177145178145179145180145181145182145183145184145185145186145187145188145189145190145191145192145193145194145195145196145197145198145199145200145201145202145203145204145205145206145207145208145209145210145211145212145213145214145215145216145217145218145219145220145221145222145223145224145225145226145227145228145229145230145231145232145233145234145235145236145237145238145239145240145241145242145243145244145245145246145247145248145249145250145251145252145253145254145255145256145257145258145259145260145261145262145263145264145265145266145267145268145269145270145271145272145273145274145275145276145277145278145279145280145281145282145283145284145285145286145287145288145289145290145291145292145293145294145295145296145297145298145299145300145301145302145303145304145305145306145307145308145309145310145311145312145313145314145315145316145317145318145319145320145321145322145323145324145325145326145327145328145329145330145331145332145333145334145335145336145337145338145339145340145341145342145343145344145345145346145347145348145349145350145351145352145353145354145355145356145357145358145359145360145361145362145363145364145365145366145367145368145369145370145371145372145373145374145375145376145377145378145379145380145381145382145383145384145385145386145387145388145389145390145391145392145393145394145395145396145397145398145399145400145401145402145403145404145405145406145407145408145409145410145411145412145413145414145415145416145417145418145419145420145421145422145423145424145425145426145427145428145429145430145431145432145433145434145435145436145437145438145439145440145441145442145443145444145445145446145447145448145449145450145451145452145453145454145455145456145457145458145459145460145461145462145463145464145465145466145467145468145469145470145471145472145473145474145475145476145477145478145479145480145481145482145483145484145485145486145487145488145489145490145491145492145493145494145495145496145497145498145499145500145501145502145503145504145505145506145507145508145509145510145511145512145513145514145515145516145517145518145519145520145521145522145523145524145525145526145527145528145529145530145531145532145533145534145535145536145537145538145539145540145541145542145543145544145545145546145547145548145549145550145551145552145553145554145555145556145557145558145559145560145561145562145563145564145565145566145567145568145569145570145571145572145573145574145575145576145577145578145579145580145581145582145583145584145585145586145587145588145589145590145591145592145593145594145595145596145597145598145599145600145601145602145603145604145605145606145607145608145609145610145611145612145613145614145615145616145617145618145619145620145621145622145623145624145625145626145627145628145629145630145631145632145633145634145635145636145637145638145639145640145641145642145643145644145645145646145647145648145649145650145651145652145653145654145655145656145657145658145659145660145661145662145663145664145665145666145667145668145669145670145671145672145673145674145675145676145677145678145679145680145681145682145683145684145685145686145687145688145689145690145691145692145693145694145695145696145697145698145699145700145701145702145703145704145705145706145707145708145709145710145711145712145713145714145715145716145717145718145719145720145721145722145723145724145725145726145727145728145729145730145731145732145733145734145735145736145737145738145739145740145741145742145743145744145745145746145747145748145749145750145751145752145753145754145755145756145757145758145759145760145761145762145763145764145765145766145767145768145769145770145771145772145773145774145775145776145777145778145779145780145781145782145783145784145785145786145787145788145789145790145791145792145793145794145795145796145797145798145799145800145801145802145803145804145805145806145807145808145809145810145811145812145813145814145815145816145817145818145819145820145821145822145823145824145825145826145827145828145829145830145831145832145833145834145835145836145837145838145839145840145841145842145843145844145845145846145847145848145849145850145851145852145853145854145855145856145857145858145859145860145861145862145863145864145865145866145867145868145869145870145871145872145873145874145875145876145877145878145879145880145881145882145883145884145885145886145887145888145889145890145891145892145893145894145895145896145897145898145899145900145901145902145903145904145905145906145907145908145909145910145911145912145913145914145915145916145917145918145919145920145921145922145923145924145925145926145927145928145929145930145931145932145933145934145935145936145937145938145939145940145941145942145943145944145945145946145947145948145949145950145951145952145953145954145955145956145957145958145959145960145961145962145963145964145965145966145967145968145969145970145971145972145973145974145975145976145977145978145979145980145981145982145983145984145985145986145987145988145989145990145991145992145993145994145995145996145997145998145999146000146001146002146003146004146005146006146007146008146009146010146011146012146013146014146015146016146017146018146019146020146021146022146023146024146025146026146027146028146029146030146031146032146033146034146035146036146037146038146039146040146041146042146043146044146045146046146047146048146049146050146051146052146053146054146055146056146057146058146059146060146061146062146063146064146065146066146067146068146069146070146071146072146073146074146075146076146077146078146079146080146081146082146083146084146085146086146087146088146089146090146091146092146093146094146095146096146097146098146099146100146101146102146103146104146105146106146107146108146109146110146111146112146113146114146115146116146117146118146119146120146121146122146123146124146125146126146127146128146129146130146131146132146133146134146135146136146137146138146139146140146141146142146143146144146145146146146147146148146149146150146151146152146153146154146155146156146157146158146159146160146161146162146163146164146165146166146167146168146169146170146171146172146173146174146175146176146177146178146179146180146181146182146183146184146185146186146187146188146189146190146191146192146193146194146195146196146197146198146199146200146201146202146203146204146205146206146207146208146209146210146211146212146213146214146215146216146217146218146219146220146221146222146223146224146225146226146227146228146229146230146231146232146233146234146235146236146237146238146239146240146241146242146243146244146245146246146247146248146249146250146251146252146253146254146255146256146257146258146259146260146261146262146263146264146265146266146267146268146269146270146271146272146273146274146275146276146277146278146279146280146281146282146283146284146285146286146287146288146289146290146291146292146293146294146295146296146297146298146299146300146301146302146303146304146305146306146307146308146309146310146311146312146313146314146315146316146317146318146319146320146321146322146323146324146325146326146327146328146329146330146331146332146333146334146335146336146337146338146339146340146341146342146343146344146345146346146347146348146349146350146351146352146353146354146355146356146357146358146359146360146361146362146363146364146365146366146367146368146369146370146371146372146373146374146375146376146377146378146379146380146381146382146383146384146385146386146387146388146389146390146391146392146393146394146395146396146397146398146399146400146401146402146403146404146405146406146407146408146409146410146411146412146413146414146415146416146417146418146419146420146421146422146423146424146425146426146427146428146429146430146431146432146433146434146435146436146437146438146439146440146441146442146443146444146445146446146447146448146449146450146451146452146453146454146455146456146457146458146459146460146461146462146463146464146465146466146467146468146469146470146471146472146473146474146475146476146477146478146479146480146481146482146483146484146485146486146487146488146489146490146491146492146493146494146495146496146497146498146499146500146501146502146503146504146505146506146507146508146509146510146511146512146513146514146515146516146517146518146519146520146521146522146523146524146525146526146527146528146529146530146531146532146533146534146535146536146537146538146539146540146541146542146543146544146545146546146547146548146549146550146551146552146553146554146555146556146557146558146559146560146561146562146563146564146565146566146567146568146569146570146571146572146573146574146575146576146577146578146579146580146581146582146583146584146585146586146587146588146589146590146591146592146593146594146595146596146597146598146599146600146601146602146603146604146605146606146607146608146609146610146611146612146613146614146615146616146617146618146619146620146621146622146623146624146625146626146627146628146629146630146631146632146633146634146635146636146637146638146639146640146641146642146643146644146645146646146647146648146649146650146651146652146653146654146655146656146657146658146659146660146661146662146663146664146665146666146667146668146669146670146671146672146673146674146675146676146677146678146679146680146681146682146683146684146685146686146687146688146689146690146691146692146693146694146695146696146697146698146699146700146701146702146703146704146705146706146707146708146709146710146711146712146713146714146715146716146717146718146719146720146721146722146723146724146725146726146727146728146729146730146731146732146733146734146735146736146737146738146739146740146741146742146743146744146745146746146747146748146749146750146751146752146753146754146755146756146757146758146759146760146761146762146763146764146765146766146767146768146769146770146771146772146773146774146775146776146777146778146779146780146781146782146783146784146785146786146787146788146789146790146791146792146793146794146795146796146797146798146799146800146801146802146803146804146805146806146807146808146809146810146811146812146813146814146815146816146817146818146819146820146821146822146823146824146825146826146827146828146829146830146831146832146833146834146835146836146837146838146839146840146841146842146843146844146845146846146847146848146849146850146851146852146853146854146855146856146857146858146859146860146861146862146863146864146865146866146867146868146869146870146871146872146873146874146875146876146877146878146879146880146881146882146883146884146885146886146887146888146889146890146891146892146893146894146895146896146897146898146899146900146901146902146903146904146905146906146907146908146909146910146911146912146913146914146915146916146917146918146919146920146921146922146923146924146925146926146927146928146929146930146931146932146933146934146935146936146937146938146939146940146941146942146943146944146945146946146947146948146949146950146951146952146953146954146955146956146957146958146959146960146961146962146963146964146965146966146967146968146969146970146971146972146973146974146975146976146977146978146979146980146981146982146983146984146985146986146987146988146989146990146991146992146993146994146995146996146997146998146999147000147001147002147003147004147005147006147007147008147009147010147011147012147013147014147015147016147017147018147019147020147021147022147023147024147025147026147027147028147029147030147031147032147033147034147035147036147037147038147039147040147041147042147043147044147045147046147047147048147049147050147051147052147053147054147055147056147057147058147059147060147061147062147063147064147065147066147067147068147069147070147071147072147073147074147075147076147077147078147079147080147081147082147083147084147085147086147087147088147089147090147091147092147093147094147095147096147097147098147099147100147101147102147103147104147105147106147107147108147109147110147111147112147113147114147115147116147117147118147119147120147121147122147123147124147125147126147127147128147129147130147131147132147133147134147135147136147137147138147139147140147141147142147143147144147145147146147147147148147149147150147151147152147153147154147155147156147157147158147159147160147161147162147163147164147165147166147167147168147169147170147171147172147173147174147175147176147177147178147179147180147181147182147183147184147185147186147187147188147189147190147191147192147193147194147195147196147197147198147199147200147201147202147203147204147205147206147207147208147209147210147211147212147213147214147215147216147217147218147219147220147221147222147223147224147225147226147227147228147229147230147231147232147233147234147235147236147237147238147239147240147241147242147243147244147245147246147247147248147249147250147251147252147253147254147255147256147257147258147259147260147261147262147263147264147265147266147267147268147269147270147271147272147273147274147275147276147277147278147279147280147281147282147283147284147285147286147287147288147289147290147291147292147293147294147295147296147297147298147299147300147301147302147303147304147305147306147307147308147309147310147311147312147313147314147315147316147317147318147319147320147321147322147323147324147325147326147327147328147329147330147331147332147333147334147335147336147337147338147339147340147341147342147343147344147345147346147347147348147349147350147351147352147353147354147355147356147357147358147359147360147361147362147363147364147365147366147367147368147369147370147371147372147373147374147375147376147377147378147379147380147381147382147383147384147385147386147387147388147389147390147391147392147393147394147395147396147397147398147399147400147401147402147403147404147405147406147407147408147409147410147411147412147413147414147415147416147417147418147419147420147421147422147423147424147425147426147427147428147429147430147431147432147433147434147435147436147437147438147439147440147441147442147443147444147445147446147447147448147449147450147451147452147453147454147455147456147457147458147459147460147461147462147463147464147465147466147467147468147469147470147471147472147473147474147475147476147477147478147479147480147481147482147483147484147485147486147487147488147489147490147491147492147493147494147495147496147497147498147499147500147501147502147503147504147505147506147507147508147509147510147511147512147513147514147515147516147517147518147519147520147521147522147523147524147525147526147527147528147529147530147531147532147533147534147535147536147537147538147539147540147541147542147543147544147545147546147547147548147549147550147551147552147553147554147555147556147557147558147559147560147561147562147563147564147565147566147567147568147569147570147571147572147573147574147575147576147577147578147579147580147581147582147583147584147585147586147587147588147589147590147591147592147593147594147595147596147597147598147599147600147601147602147603147604147605147606147607147608147609147610147611147612147613147614147615147616147617147618147619147620147621147622147623147624147625147626147627147628147629147630147631147632147633147634147635147636147637147638147639147640147641147642147643147644147645147646147647147648147649147650147651147652147653147654147655147656147657147658147659147660147661147662147663147664147665147666147667147668147669147670147671147672147673147674147675147676147677147678147679147680147681147682147683147684147685147686147687147688147689147690147691147692147693147694147695147696147697147698147699147700147701147702147703147704147705147706147707147708147709147710147711147712147713147714147715147716147717147718147719147720147721147722147723147724147725147726147727147728147729147730147731147732147733147734147735147736147737147738147739147740147741147742147743147744147745147746147747147748147749147750147751147752147753147754147755147756147757147758147759147760147761147762147763147764147765147766147767147768147769147770147771147772147773147774147775147776147777147778147779147780147781147782147783147784147785147786147787147788147789147790147791147792147793147794147795147796147797147798147799147800147801147802147803147804147805147806147807147808147809147810147811147812147813147814147815147816147817147818147819147820147821147822147823147824147825147826147827147828147829147830147831147832147833147834147835147836147837147838147839147840147841147842147843147844147845147846147847147848147849147850147851147852147853147854147855147856147857147858147859147860147861147862147863147864147865147866147867147868147869147870147871147872147873147874147875147876147877147878147879147880147881147882147883147884147885147886147887147888147889147890147891147892147893147894147895147896147897147898147899147900147901147902147903147904147905147906147907147908147909147910147911147912147913147914147915147916147917147918147919147920147921147922147923147924147925147926147927147928147929147930147931147932147933147934147935147936147937147938147939147940147941147942147943147944147945147946147947147948147949147950147951147952147953147954147955147956147957147958147959147960147961147962147963147964147965147966147967147968147969147970147971147972147973147974147975147976147977147978147979147980147981147982147983147984147985147986147987147988147989147990147991147992147993147994147995147996147997147998147999148000148001148002148003148004148005148006148007148008148009148010148011148012148013148014148015148016148017148018148019148020148021148022148023148024148025148026148027148028148029148030148031148032148033148034148035148036148037148038148039148040148041148042148043148044148045148046148047148048148049148050148051148052148053148054148055148056148057148058148059148060148061148062148063148064148065148066148067148068148069148070148071148072148073148074148075148076148077148078148079148080148081148082148083148084148085148086148087148088148089148090148091148092148093148094148095148096148097148098148099148100148101148102148103148104148105148106148107148108148109148110148111148112148113148114148115148116148117148118148119148120148121148122148123148124148125148126148127148128148129148130148131148132148133148134148135148136148137148138148139148140148141148142148143148144148145148146148147148148148149148150148151148152148153148154148155148156148157148158148159148160148161148162148163148164148165148166148167148168148169148170148171148172148173148174148175148176148177148178148179148180148181148182148183148184148185148186148187148188148189148190148191148192148193148194148195148196148197148198148199148200148201148202148203148204148205148206148207148208148209148210148211148212148213148214148215148216148217148218148219148220148221148222148223148224148225148226148227148228148229148230148231148232148233148234148235148236148237148238148239148240148241148242148243148244148245148246148247148248148249148250148251148252148253148254148255148256148257148258148259148260148261148262148263148264148265148266148267148268148269148270148271148272148273148274148275148276148277148278148279148280148281148282148283148284148285148286148287148288148289148290148291148292148293148294148295148296148297148298148299148300148301148302148303148304148305148306148307148308148309148310148311148312148313148314148315148316148317148318148319148320148321148322148323148324148325148326148327148328148329148330148331148332148333148334148335148336148337148338148339148340148341148342148343148344148345148346148347148348148349148350148351148352148353148354148355148356148357148358148359148360148361148362148363148364148365148366148367148368148369148370148371148372148373148374148375148376148377148378148379148380148381148382148383148384148385148386148387148388148389148390148391148392148393148394148395148396148397148398148399148400148401148402148403148404148405148406148407148408148409148410148411148412148413148414148415148416148417148418148419148420148421148422148423148424148425148426148427148428148429148430148431148432148433148434148435148436148437148438148439148440148441148442148443148444148445148446148447148448148449148450148451148452148453148454148455148456148457148458148459148460148461148462148463148464148465148466148467148468148469148470148471148472148473148474148475148476148477148478148479148480148481148482148483148484148485148486148487148488148489148490148491148492148493148494148495148496148497148498148499148500148501148502148503148504148505148506148507148508148509148510148511148512148513148514148515148516148517148518148519148520148521148522148523148524148525148526148527148528148529148530148531148532148533148534148535148536148537148538148539148540148541148542148543148544148545148546148547148548148549148550148551148552148553148554148555148556148557148558148559148560148561148562148563148564148565148566148567148568148569148570148571148572148573148574148575148576148577148578148579148580148581148582148583148584148585148586148587148588148589148590148591148592148593148594148595148596148597148598148599148600148601148602148603148604148605148606148607148608148609148610148611148612148613148614148615148616148617148618148619148620148621148622148623148624148625148626148627148628148629148630148631148632148633148634148635148636148637148638148639148640148641148642148643148644148645148646148647148648148649148650148651148652148653148654148655148656148657148658148659148660148661148662148663148664148665148666148667148668148669148670148671148672148673148674148675148676148677148678148679148680148681148682148683148684148685148686148687148688148689148690148691148692148693148694148695148696148697148698148699148700148701148702148703148704148705148706148707148708148709148710148711148712148713148714148715148716148717148718148719148720148721148722148723148724148725148726148727148728148729148730148731148732148733148734148735148736148737148738148739148740148741148742148743148744148745148746148747148748148749148750148751148752148753148754148755148756148757148758148759148760148761148762148763148764148765148766148767148768148769148770148771148772148773148774148775148776148777148778148779148780148781148782148783148784148785148786148787148788148789148790148791148792148793148794148795148796148797148798148799148800148801148802148803148804148805148806148807148808148809148810148811148812148813148814148815148816148817148818148819148820148821148822148823148824148825148826148827148828148829148830148831148832148833148834148835148836148837148838148839148840148841148842148843148844148845148846148847148848148849148850148851148852148853148854148855148856148857148858148859148860148861148862148863148864148865148866148867148868148869148870148871148872148873148874148875148876148877148878148879148880148881148882148883148884148885148886148887148888148889148890148891148892148893148894148895148896148897148898148899148900148901148902148903148904148905148906148907148908148909148910148911148912148913148914148915148916148917148918148919148920148921148922148923148924148925148926148927148928148929148930148931148932148933148934148935148936148937148938148939148940148941148942148943148944148945148946148947148948148949148950148951148952148953148954148955148956148957148958148959148960148961148962148963148964148965148966148967148968148969148970148971148972148973148974148975148976148977148978148979148980148981148982148983148984148985148986148987148988148989148990148991148992148993148994148995148996148997148998148999149000149001149002149003149004149005149006149007149008149009149010149011149012149013149014149015149016149017149018149019149020149021149022149023149024149025149026149027149028149029149030149031149032149033149034149035149036149037149038149039149040149041149042149043149044149045149046149047149048149049149050149051149052149053149054149055149056149057149058149059149060149061149062149063149064149065149066149067149068149069149070149071149072149073149074149075149076149077149078149079149080149081149082149083149084149085149086149087149088149089149090149091149092149093149094149095149096149097149098149099149100149101149102149103149104149105149106149107149108149109149110149111149112149113149114149115149116149117149118149119149120149121149122149123149124149125149126149127149128149129149130149131149132149133149134149135149136149137149138149139149140149141149142149143149144149145149146149147149148149149149150149151149152149153149154149155149156149157149158149159149160149161149162149163149164149165149166149167149168149169149170149171149172149173149174149175149176149177149178149179149180149181149182149183149184149185149186149187149188149189149190149191149192149193149194149195149196149197149198149199149200149201149202149203149204149205149206149207149208149209149210149211149212149213149214149215149216149217149218149219149220149221149222149223149224149225149226149227149228149229149230149231149232149233149234149235149236149237149238149239149240149241149242149243149244149245149246149247149248149249149250149251149252149253149254149255149256149257149258149259149260149261149262149263149264149265149266149267149268149269149270149271149272149273149274149275149276149277149278149279149280149281149282149283149284149285149286149287149288149289149290149291149292149293149294149295149296149297149298149299149300149301149302149303149304149305149306149307149308149309149310149311149312149313149314149315149316149317149318149319149320149321149322149323149324149325149326149327149328149329149330149331149332149333149334149335149336149337149338149339149340149341149342149343149344149345149346149347149348149349149350149351149352149353149354149355149356149357149358149359149360149361149362149363149364149365149366149367149368149369149370149371149372149373149374149375149376149377149378149379149380149381149382149383149384149385149386149387149388149389149390149391149392149393149394149395149396149397149398149399149400149401149402149403149404149405149406149407149408149409149410149411149412149413149414149415149416149417149418149419149420149421149422149423149424149425149426149427149428149429149430149431149432149433149434149435149436149437149438149439149440149441149442149443149444149445149446149447149448149449149450149451149452149453149454149455149456149457149458149459149460149461149462149463149464149465149466149467149468149469149470149471149472149473149474149475149476149477149478149479149480149481149482149483149484149485149486149487149488149489149490149491149492149493149494149495149496149497149498149499149500149501149502149503149504149505149506149507149508149509149510149511149512149513149514149515149516149517149518149519149520149521149522149523149524149525149526149527149528149529149530149531149532149533149534149535149536149537149538149539149540149541149542149543149544149545149546149547149548149549149550149551149552149553149554149555149556149557149558149559149560149561149562149563149564149565149566149567149568149569149570149571149572149573149574149575149576149577149578149579149580149581149582149583149584149585149586149587149588149589149590149591149592149593149594149595149596149597149598149599149600149601149602149603149604149605149606149607149608149609149610149611149612149613149614149615149616149617149618149619149620149621149622149623149624149625149626149627149628149629149630149631149632149633149634149635149636149637149638149639149640149641149642149643149644149645149646149647149648149649149650149651149652149653149654149655149656149657149658149659149660149661149662149663149664149665149666149667149668149669149670149671149672149673149674149675149676149677149678149679149680149681149682149683149684149685149686149687149688149689149690149691149692149693149694149695149696149697149698149699149700149701149702149703149704149705149706149707149708149709149710149711149712149713149714149715149716149717149718149719149720149721149722149723149724149725149726149727149728149729149730149731149732149733149734149735149736149737149738149739149740149741149742149743149744149745149746149747149748149749149750149751149752149753149754149755149756149757149758149759149760149761149762149763149764149765149766149767149768149769149770149771149772149773149774149775149776149777149778149779149780149781149782149783149784149785149786149787149788149789149790149791149792149793149794149795149796149797149798149799149800149801149802149803149804149805149806149807149808149809149810149811149812149813149814149815149816149817149818149819149820149821149822149823149824149825149826149827149828149829149830149831149832149833149834149835149836149837149838149839149840149841149842149843149844149845149846149847149848149849149850149851149852149853149854149855149856149857149858149859149860149861149862149863149864149865149866149867149868149869149870149871149872149873149874149875149876149877149878149879149880149881149882149883149884149885149886149887149888149889149890149891149892149893149894149895149896149897149898149899149900149901149902149903149904149905149906149907149908149909149910149911149912149913149914149915149916149917149918149919149920149921149922149923149924149925149926149927149928149929149930149931149932149933149934149935149936149937149938149939149940149941149942149943149944149945149946149947149948149949149950149951149952149953149954149955149956149957149958149959149960149961149962149963149964149965149966149967149968149969149970149971149972149973149974149975149976149977149978149979149980149981149982149983149984149985149986149987149988149989149990149991149992149993149994149995149996149997149998149999150000150001150002150003150004150005150006150007150008150009150010150011150012150013150014150015150016150017150018150019150020150021150022150023150024150025150026150027150028150029150030150031150032150033150034150035150036150037150038150039150040150041150042150043150044150045150046150047150048150049150050150051150052150053150054150055150056150057150058150059150060150061150062150063150064150065150066150067150068150069150070150071150072150073150074150075150076150077150078150079150080150081150082150083150084150085150086150087150088150089150090150091150092150093150094150095150096150097150098150099150100150101150102150103150104150105150106150107150108150109150110150111150112150113150114150115150116150117150118150119150120150121150122150123150124150125150126150127150128150129150130150131150132150133150134150135150136150137150138150139150140150141150142150143150144150145150146150147150148150149150150150151150152150153150154150155150156150157150158150159150160150161150162150163150164150165150166150167150168150169150170150171150172150173150174150175150176150177150178150179150180150181150182150183150184150185150186150187150188150189150190150191150192150193150194150195150196150197150198150199150200150201150202150203150204150205150206150207150208150209150210150211150212150213150214150215150216150217150218150219150220150221150222150223150224150225150226150227150228150229150230150231150232150233150234150235150236150237150238150239150240150241150242150243150244150245150246150247150248150249150250150251150252150253150254150255150256150257150258150259150260150261150262150263150264150265150266150267150268150269150270150271150272150273150274150275150276150277150278150279150280150281150282150283150284150285150286150287150288150289150290150291150292150293150294150295150296150297150298150299150300150301150302150303150304150305150306150307150308150309150310150311150312150313150314150315150316150317150318150319150320150321150322150323150324150325150326150327150328150329150330150331150332150333150334150335150336150337150338150339150340150341150342150343150344150345150346150347150348150349150350150351150352150353150354150355150356150357150358150359150360150361150362150363150364150365150366150367150368150369150370150371150372150373150374150375150376150377150378150379150380150381150382150383150384150385150386150387150388150389150390150391150392150393150394150395150396150397150398150399150400150401150402150403150404150405150406150407150408150409150410150411150412150413150414150415150416150417150418150419150420150421150422150423150424150425150426150427150428150429150430150431150432150433150434150435150436150437150438150439150440150441150442150443150444150445150446150447150448150449150450150451150452150453150454150455150456150457150458150459150460150461150462150463150464150465150466150467150468150469150470150471150472150473150474150475150476150477150478150479150480150481150482150483150484150485150486150487150488150489150490150491150492150493150494150495150496150497150498150499150500150501150502150503150504150505150506150507150508150509150510150511150512150513150514150515150516150517150518150519150520150521150522150523150524150525150526150527150528150529150530150531150532150533150534150535150536150537150538150539150540150541150542150543150544150545150546150547150548150549150550150551150552150553150554150555150556150557150558150559150560150561150562150563150564150565150566150567150568150569150570150571150572150573150574150575150576150577150578150579150580150581150582150583150584150585150586150587150588150589150590150591150592150593150594150595150596150597150598150599150600150601150602150603150604150605150606150607150608150609150610150611150612150613150614150615150616150617150618150619150620150621150622150623150624150625150626150627150628150629150630150631150632150633150634150635150636150637150638150639150640150641150642150643150644150645150646150647150648150649150650150651150652150653150654150655150656150657150658150659150660150661150662150663150664150665150666150667150668150669150670150671150672150673150674150675150676150677150678150679150680150681150682150683150684150685150686150687150688150689150690150691150692150693150694150695150696150697150698150699150700150701150702150703150704150705150706150707150708150709150710150711150712150713150714150715150716150717150718150719150720150721150722150723150724150725150726150727150728150729150730150731150732150733150734150735150736150737150738150739150740150741150742150743150744150745150746150747150748150749150750150751150752150753150754150755150756150757150758150759150760150761150762150763150764150765150766150767150768150769150770150771150772150773150774150775150776150777150778150779150780150781150782150783150784150785150786150787150788150789150790150791150792150793150794150795150796150797150798150799150800150801150802150803150804150805150806150807150808150809150810150811150812150813150814150815150816150817150818150819150820150821150822150823150824150825150826150827150828150829150830150831150832150833150834150835150836150837150838150839150840150841150842150843150844150845150846150847150848150849150850150851150852150853150854150855150856150857150858150859150860150861150862150863150864150865150866150867150868150869150870150871150872150873150874150875150876150877150878150879150880150881150882150883150884150885150886150887150888150889150890150891150892150893150894150895150896150897150898150899150900150901150902150903150904150905150906150907150908150909150910150911150912150913150914150915150916150917150918150919150920150921150922150923150924150925150926150927150928150929150930150931150932150933150934150935150936150937150938150939150940150941150942150943150944150945150946150947150948150949150950150951150952150953150954150955150956150957150958150959150960150961150962150963150964150965150966150967150968150969150970150971150972150973150974150975150976150977150978150979150980150981150982150983150984150985150986150987150988150989150990150991150992150993150994150995150996150997150998150999151000151001151002151003151004151005151006151007151008151009151010151011151012151013151014151015151016151017151018151019151020151021151022151023151024151025151026151027151028151029151030151031151032151033151034151035151036151037151038151039151040151041151042151043151044151045151046151047151048151049151050151051151052151053151054151055151056151057151058151059151060151061151062151063151064151065151066151067151068151069151070151071151072151073151074151075151076151077151078151079151080151081151082151083151084151085151086151087151088151089151090151091151092151093151094151095151096151097151098151099151100151101151102151103151104151105151106151107151108151109151110151111151112151113151114151115151116151117151118151119151120151121151122151123151124151125151126151127151128151129151130151131151132151133151134151135151136151137151138151139151140151141151142151143151144151145151146151147151148151149151150151151151152151153151154151155151156151157151158151159151160151161151162151163151164151165151166151167151168151169151170151171151172151173151174151175151176151177151178151179151180151181151182151183151184151185151186151187151188151189151190151191151192151193151194151195151196151197151198151199151200151201151202151203151204151205151206151207151208151209151210151211151212151213151214151215151216151217151218151219151220151221151222151223151224151225151226151227151228151229151230151231151232151233151234151235151236151237151238151239151240151241151242151243151244151245151246151247151248151249151250151251151252151253151254151255151256151257151258151259151260151261151262151263151264151265151266151267151268151269151270151271151272151273151274151275151276151277151278151279151280151281151282151283151284151285151286151287151288151289151290151291151292151293151294151295151296151297151298151299151300151301151302151303151304151305151306151307151308151309151310151311151312151313151314151315151316151317151318151319151320151321151322151323151324151325151326151327151328151329151330151331151332151333151334151335151336151337151338151339151340151341151342151343151344151345151346151347151348151349151350151351151352151353151354151355151356151357151358151359151360151361151362151363151364151365151366151367151368151369151370151371151372151373151374151375151376151377151378151379151380151381151382151383151384151385151386151387151388151389151390151391151392151393151394151395151396151397151398151399151400151401151402151403151404151405151406151407151408151409151410151411151412151413151414151415151416151417151418151419151420151421151422151423151424151425151426151427151428151429151430151431151432151433151434151435151436151437151438151439151440151441151442151443151444151445151446151447151448151449151450151451151452151453151454151455151456151457151458151459151460151461151462151463151464151465151466151467151468151469151470151471151472151473151474151475151476151477151478151479151480151481151482151483151484151485151486151487151488151489151490151491151492151493151494151495151496151497151498151499151500151501151502151503151504151505151506151507151508151509151510151511151512151513151514151515151516151517151518151519151520151521151522151523151524151525151526151527151528151529151530151531151532151533151534151535151536151537151538151539151540151541151542151543151544151545151546151547151548151549151550151551151552151553151554151555151556151557151558151559151560151561151562151563151564151565151566151567151568151569151570151571151572151573151574151575151576151577151578151579151580151581151582151583151584151585151586151587151588151589151590151591151592151593151594151595151596151597151598151599151600151601151602151603151604151605151606151607151608151609151610151611151612151613151614151615151616151617151618151619151620151621151622151623151624151625151626151627151628151629151630151631151632151633151634151635151636151637151638151639151640151641151642151643151644151645151646151647151648151649151650151651151652151653151654151655151656151657151658151659151660151661151662151663151664151665151666151667151668151669151670151671151672151673151674151675151676151677151678151679151680151681151682151683151684151685151686151687151688151689151690151691151692151693151694151695151696151697151698151699151700151701151702151703151704151705151706151707151708151709151710151711151712151713151714151715151716151717151718151719151720151721151722151723151724151725151726151727151728151729151730151731151732151733151734151735151736151737151738151739151740151741151742151743151744151745151746151747151748151749151750151751151752151753151754151755151756151757151758151759151760151761151762151763151764151765151766151767151768151769151770151771151772151773151774151775151776151777151778151779151780151781151782151783151784151785151786151787151788151789151790151791151792151793151794151795151796151797151798151799151800151801151802151803151804151805151806151807151808151809151810151811151812151813151814151815151816151817151818151819151820151821151822151823151824151825151826151827151828151829151830151831151832151833151834151835151836151837151838151839151840151841151842151843151844151845151846151847151848151849151850151851151852151853151854151855151856151857151858151859151860151861151862151863151864151865151866151867151868151869151870151871151872151873151874151875151876151877151878151879151880151881151882151883151884151885151886151887151888151889151890151891151892151893151894151895151896151897151898151899151900151901151902151903151904151905151906151907151908151909151910151911151912151913151914151915151916151917151918151919151920151921151922151923151924151925151926151927151928151929151930151931151932151933151934151935151936151937151938151939151940151941151942151943151944151945151946151947151948151949151950151951151952151953151954151955151956151957151958151959151960151961151962151963151964151965151966151967151968151969151970151971151972151973151974151975151976151977151978151979151980151981151982151983151984151985151986151987151988151989151990151991151992151993151994151995151996151997151998151999152000152001152002152003152004152005152006152007152008152009152010152011152012152013152014152015152016152017152018152019152020152021152022152023152024152025152026152027152028152029152030152031152032152033152034152035152036152037152038152039152040152041152042152043152044152045152046152047152048152049152050152051152052152053152054152055152056152057152058152059152060152061152062152063152064152065152066152067152068152069152070152071152072152073152074152075152076152077152078152079152080152081152082152083152084152085152086152087152088152089152090152091152092152093152094152095152096152097152098152099152100152101152102152103152104152105152106152107152108152109152110152111152112152113152114152115152116152117152118152119152120152121152122152123152124152125152126152127152128152129152130152131152132152133152134152135152136152137152138152139152140152141152142152143152144152145152146152147152148152149152150152151152152152153152154152155152156152157152158152159152160152161152162152163152164152165152166152167152168152169152170152171152172152173152174152175152176152177152178152179152180152181152182152183152184152185152186152187152188152189152190152191152192152193152194152195152196152197152198152199152200152201152202152203152204152205152206152207152208152209152210152211152212152213152214152215152216152217152218152219152220152221152222152223152224152225152226152227152228152229152230152231152232152233152234152235152236152237152238152239152240152241152242152243152244152245152246152247152248152249152250152251152252152253152254152255152256152257152258152259152260152261152262152263152264152265152266152267152268152269152270152271152272152273152274152275152276152277152278152279152280152281152282152283152284152285152286152287152288152289152290152291152292152293152294152295152296152297152298152299152300152301152302152303152304152305152306152307152308152309152310152311152312152313152314152315152316152317152318152319152320152321152322152323152324152325152326152327152328152329152330152331152332152333152334152335152336152337152338152339152340152341152342152343152344152345152346152347152348152349152350152351152352152353152354152355152356152357152358152359152360152361152362152363152364152365152366152367152368152369152370152371152372152373152374152375152376152377152378152379152380152381152382152383152384152385152386152387152388152389152390152391152392152393152394152395152396152397152398152399152400152401152402152403152404152405152406152407152408152409152410152411152412152413152414152415152416152417152418152419152420152421152422152423152424152425152426152427152428152429152430152431152432152433152434152435152436152437152438152439152440152441152442152443152444152445152446152447152448152449152450152451152452152453152454152455152456152457152458152459152460152461152462152463152464152465152466152467152468152469152470152471152472152473152474152475152476152477152478152479152480152481152482152483152484152485152486152487152488152489152490152491152492152493152494152495152496152497152498152499152500152501152502152503152504152505152506152507152508152509152510152511152512152513152514152515152516152517152518152519152520152521152522152523152524152525152526152527152528152529152530152531152532152533152534152535152536152537152538152539152540152541152542152543152544152545152546152547152548152549152550152551152552152553152554152555152556152557152558152559152560152561152562152563152564152565152566152567152568152569152570152571152572152573152574152575152576152577152578152579152580152581152582152583152584152585152586152587152588152589152590152591152592152593152594152595152596152597152598152599152600152601152602152603152604152605152606152607152608152609152610152611152612152613152614152615152616152617152618152619152620152621152622152623152624152625152626152627152628152629152630152631152632152633152634152635152636152637152638152639152640152641152642152643152644152645152646152647152648152649152650152651152652152653152654152655152656152657152658152659152660152661152662152663152664152665152666152667152668152669152670152671152672152673152674152675152676152677152678152679152680152681152682152683152684152685152686152687152688152689152690152691152692152693152694152695152696152697152698152699152700152701152702152703152704152705152706152707152708152709152710152711152712152713152714152715152716152717152718152719152720152721152722152723152724152725152726152727152728152729152730152731152732152733152734152735152736152737152738152739152740152741152742152743152744152745152746152747152748152749152750152751152752152753152754152755152756152757152758152759152760152761152762152763152764152765152766152767152768152769152770152771152772152773152774152775152776152777152778152779152780152781152782152783152784152785152786152787152788152789152790152791152792152793152794152795152796152797152798152799152800152801152802152803152804152805152806152807152808152809152810152811152812152813152814152815152816152817152818152819152820152821152822152823152824152825152826152827152828152829152830152831152832152833152834152835152836152837152838152839152840152841152842152843152844152845152846152847152848152849152850152851152852152853152854152855152856152857152858152859152860152861152862152863152864152865152866152867152868152869152870152871152872152873152874152875152876152877152878152879152880152881152882152883152884152885152886152887152888152889152890152891152892152893152894152895152896152897152898152899152900152901152902152903152904152905152906152907152908152909152910152911152912152913152914152915152916152917152918152919152920152921152922152923152924152925152926152927152928152929152930152931152932152933152934152935152936152937152938152939152940152941152942152943152944152945152946152947152948152949152950152951152952152953152954152955152956152957152958152959152960152961152962152963152964152965152966152967152968152969152970152971152972152973152974152975152976152977152978152979152980152981152982152983152984152985152986152987152988152989152990152991152992152993152994152995152996152997152998152999153000153001153002153003153004153005153006153007153008153009153010153011153012153013153014153015153016153017153018153019153020153021153022153023153024153025153026153027153028153029153030153031153032153033153034153035153036153037153038153039153040153041153042153043153044153045153046153047153048153049153050153051153052153053153054153055153056153057153058153059153060153061153062153063153064153065153066153067153068153069153070153071153072153073153074153075153076153077153078153079153080153081153082153083153084153085153086153087153088153089153090153091153092153093153094153095153096153097153098153099153100153101153102153103153104153105153106153107153108153109153110153111153112153113153114153115153116153117153118153119153120153121153122153123153124153125153126153127153128153129153130153131153132153133153134153135153136153137153138153139153140153141153142153143153144153145153146153147153148153149153150153151153152153153153154153155153156153157153158153159153160153161153162153163153164153165153166153167153168153169153170153171153172153173153174153175153176153177153178153179153180153181153182153183153184153185153186153187153188153189153190153191153192153193153194153195153196153197153198153199153200153201153202153203153204153205153206153207153208153209153210153211153212153213153214153215153216153217153218153219153220153221153222153223153224153225153226153227153228153229153230153231153232153233153234153235153236153237153238153239153240153241153242153243153244153245153246153247153248153249153250153251153252153253153254153255153256153257153258153259153260153261153262153263153264153265153266153267153268153269153270153271153272153273153274153275153276153277153278153279153280153281153282153283153284153285153286153287153288153289153290153291153292153293153294153295153296153297153298153299153300153301153302153303153304153305153306153307153308153309153310153311153312153313153314153315153316153317153318153319153320153321153322153323153324153325153326153327153328153329153330153331153332153333153334153335153336153337153338153339153340153341153342153343153344153345153346153347153348153349153350153351153352153353153354153355153356153357
  1. {$IFNDEF FPC_DOTTEDUNITS}
  2. Unit job_web;
  3. {$ENDIF FPC_DOTTEDUNITS}
  4. {$MODE ObjFPC}
  5. {$H+}
  6. interface
  7. {$IFDEF FPC_DOTTEDUNITS}
  8. uses System.SysUtils, Wasm.Job.Js;
  9. {$ELSE FPC_DOTTEDUNITS}
  10. uses SysUtils, Job.JS;
  11. {$ENDIF FPC_DOTTEDUNITS}
  12. Type
  13. // Forward class definitions
  14. IJSAbortController = interface;
  15. TJSAbortController = class;
  16. IJSAbortSignal = interface;
  17. TJSAbortSignal = class;
  18. IJSAbstractRange = interface;
  19. TJSAbstractRange = class;
  20. IJSAbstractWorker = interface;
  21. TJSAbstractWorker = class;
  22. IJSAccessibleNode = interface;
  23. TJSAccessibleNode = class;
  24. IJSAddonEvent = interface;
  25. TJSAddonEvent = class;
  26. IJSAddonManager = interface;
  27. TJSAddonManager = class;
  28. IJSAnalyserNode = interface;
  29. TJSAnalyserNode = class;
  30. IJSAnimatable = interface;
  31. TJSAnimatable = class;
  32. IJSAnimation = interface;
  33. TJSAnimation = class;
  34. IJSAnimationEffect = interface;
  35. TJSAnimationEffect = class;
  36. IJSAnimationEvent = interface;
  37. TJSAnimationEvent = class;
  38. IJSAnimationFrameProvider = interface;
  39. TJSAnimationFrameProvider = class;
  40. IJSAnimationPlaybackEvent = interface;
  41. TJSAnimationPlaybackEvent = class;
  42. IJSAnimationTimeline = interface;
  43. TJSAnimationTimeline = class;
  44. IJSMozObserver = interface;
  45. TJSMozObserver = class;
  46. IJSAPZHitResultFlags = interface;
  47. TJSAPZHitResultFlags = class;
  48. IJSARIAMixin = interface;
  49. TJSARIAMixin = class;
  50. IJSAttr = interface;
  51. TJSAttr = class;
  52. IJSAudioBuffer = interface;
  53. TJSAudioBuffer = class;
  54. IJSAudioBufferSourceNode = interface;
  55. TJSAudioBufferSourceNode = class;
  56. IJSAudioContext = interface;
  57. TJSAudioContext = class;
  58. IJSAudioData = interface;
  59. TJSAudioData = class;
  60. IJSAudioDecoder = interface;
  61. TJSAudioDecoder = class;
  62. IJSAudioDestinationNode = interface;
  63. TJSAudioDestinationNode = class;
  64. IJSAudioEncoder = interface;
  65. TJSAudioEncoder = class;
  66. IJSAudioListener = interface;
  67. TJSAudioListener = class;
  68. IJSAudioNode = interface;
  69. TJSAudioNode = class;
  70. IJSAudioNodePassThrough = interface;
  71. TJSAudioNodePassThrough = class;
  72. IJSAudioParam = interface;
  73. TJSAudioParam = class;
  74. IJSAudioParamMap = interface;
  75. TJSAudioParamMap = class;
  76. IJSAudioProcessingEvent = interface;
  77. TJSAudioProcessingEvent = class;
  78. IJSAudioScheduledSourceNode = interface;
  79. TJSAudioScheduledSourceNode = class;
  80. IJSAudioTrack = interface;
  81. TJSAudioTrack = class;
  82. IJSAudioTrackList = interface;
  83. TJSAudioTrackList = class;
  84. IJSAudioWorklet = interface;
  85. TJSAudioWorklet = class;
  86. IJSAudioWorkletGlobalScope = interface;
  87. TJSAudioWorkletGlobalScope = class;
  88. IJSAudioWorkletNode = interface;
  89. TJSAudioWorkletNode = class;
  90. IJSAudioWorkletProcessor = interface;
  91. TJSAudioWorkletProcessor = class;
  92. IJSBarProp = interface;
  93. TJSBarProp = class;
  94. IJSBaseAudioContext = interface;
  95. TJSBaseAudioContext = class;
  96. IJSBeforeUnloadEvent = interface;
  97. TJSBeforeUnloadEvent = class;
  98. IJSBiquadFilterNode = interface;
  99. TJSBiquadFilterNode = class;
  100. IJSBlob = interface;
  101. TJSBlob = class;
  102. IJSBlobEvent = interface;
  103. TJSBlobEvent = class;
  104. IJSBroadcastChannel = interface;
  105. TJSBroadcastChannel = class;
  106. IJSCache = interface;
  107. TJSCache = class;
  108. IJSPrincipal = interface;
  109. TJSPrincipal = class;
  110. IJSCacheStorage = interface;
  111. TJSCacheStorage = class;
  112. IJSCanvasCaptureMediaStream = interface;
  113. TJSCanvasCaptureMediaStream = class;
  114. IJSCanvasRenderingContext2D = interface;
  115. TJSCanvasRenderingContext2D = class;
  116. IJSCanvasState = interface;
  117. TJSCanvasState = class;
  118. IJSCanvasTransform = interface;
  119. TJSCanvasTransform = class;
  120. IJSCanvasCompositing = interface;
  121. TJSCanvasCompositing = class;
  122. IJSCanvasImageSmoothing = interface;
  123. TJSCanvasImageSmoothing = class;
  124. IJSCanvasFillStrokeStyles = interface;
  125. TJSCanvasFillStrokeStyles = class;
  126. IJSCanvasShadowStyles = interface;
  127. TJSCanvasShadowStyles = class;
  128. IJSCanvasFilters = interface;
  129. TJSCanvasFilters = class;
  130. IJSCanvasRect = interface;
  131. TJSCanvasRect = class;
  132. IJSCanvasDrawPath = interface;
  133. TJSCanvasDrawPath = class;
  134. IJSCanvasUserInterface = interface;
  135. TJSCanvasUserInterface = class;
  136. IJSCanvasText = interface;
  137. TJSCanvasText = class;
  138. IJSCanvasDrawImage = interface;
  139. TJSCanvasDrawImage = class;
  140. IJSCanvasImageData = interface;
  141. TJSCanvasImageData = class;
  142. IJSCanvasPathDrawingStyles = interface;
  143. TJSCanvasPathDrawingStyles = class;
  144. IJSCanvasTextDrawingStyles = interface;
  145. TJSCanvasTextDrawingStyles = class;
  146. IJSCanvasPathMethods = interface;
  147. TJSCanvasPathMethods = class;
  148. IJSCanvasGradient = interface;
  149. TJSCanvasGradient = class;
  150. IJSCanvasPattern = interface;
  151. TJSCanvasPattern = class;
  152. IJSTextMetrics = interface;
  153. TJSTextMetrics = class;
  154. IJSPath2D = interface;
  155. TJSPath2D = class;
  156. IJSCaretPosition = interface;
  157. TJSCaretPosition = class;
  158. IJSCDATASection = interface;
  159. TJSCDATASection = class;
  160. IJSChannelMergerNode = interface;
  161. TJSChannelMergerNode = class;
  162. IJSChannelSplitterNode = interface;
  163. TJSChannelSplitterNode = class;
  164. IJSCharacterData = interface;
  165. TJSCharacterData = class;
  166. IJSCheckerboardReportService = interface;
  167. TJSCheckerboardReportService = class;
  168. IJSChildNode = interface;
  169. TJSChildNode = class;
  170. IJSNonDocumentTypeChildNode = interface;
  171. TJSNonDocumentTypeChildNode = class;
  172. IJSClient = interface;
  173. TJSClient = class;
  174. IJSWindowClient = interface;
  175. TJSWindowClient = class;
  176. IJSClients = interface;
  177. TJSClients = class;
  178. IJSClipboard = interface;
  179. TJSClipboard = class;
  180. IJSClipboardItem = interface;
  181. TJSClipboardItem = class;
  182. IJSClipboardEvent = interface;
  183. TJSClipboardEvent = class;
  184. IJSCloseEvent = interface;
  185. TJSCloseEvent = class;
  186. IJSComment = interface;
  187. TJSComment = class;
  188. IJSCompositionEvent = interface;
  189. TJSCompositionEvent = class;
  190. IJSCompressionStream = interface;
  191. TJSCompressionStream = class;
  192. IJSconsole = interface;
  193. TJSconsole = class;
  194. IJSConstantSourceNode = interface;
  195. TJSConstantSourceNode = class;
  196. IJSContentVisibilityAutoStateChangeEvent = interface;
  197. TJSContentVisibilityAutoStateChangeEvent = class;
  198. IJSConvolverNode = interface;
  199. TJSConvolverNode = class;
  200. IJSCredential = interface;
  201. TJSCredential = class;
  202. IJSCredentialsContainer = interface;
  203. TJSCredentialsContainer = class;
  204. IJSGlobalCrypto = interface;
  205. TJSGlobalCrypto = class;
  206. IJSCrypto = interface;
  207. TJSCrypto = class;
  208. IJSCSS = interface;
  209. TJSCSS = class;
  210. IJSCSSAnimation = interface;
  211. TJSCSSAnimation = class;
  212. IJSCSSConditionRule = interface;
  213. TJSCSSConditionRule = class;
  214. IJSCSSContainerRule = interface;
  215. TJSCSSContainerRule = class;
  216. IJSCSSCounterStyleRule = interface;
  217. TJSCSSCounterStyleRule = class;
  218. IJSCSSFontFaceRule = interface;
  219. TJSCSSFontFaceRule = class;
  220. IJSCSSFontFeatureValuesRule = interface;
  221. TJSCSSFontFeatureValuesRule = class;
  222. IJSCSSFontPaletteValuesRule = interface;
  223. TJSCSSFontPaletteValuesRule = class;
  224. IJSCSSGroupingRule = interface;
  225. TJSCSSGroupingRule = class;
  226. IJSCSSImportRule = interface;
  227. TJSCSSImportRule = class;
  228. IJSCSSKeyframeRule = interface;
  229. TJSCSSKeyframeRule = class;
  230. IJSCSSKeyframesRule = interface;
  231. TJSCSSKeyframesRule = class;
  232. IJSCSSLayerBlockRule = interface;
  233. TJSCSSLayerBlockRule = class;
  234. IJSCSSLayerStatementRule = interface;
  235. TJSCSSLayerStatementRule = class;
  236. IJSCSSMediaRule = interface;
  237. TJSCSSMediaRule = class;
  238. IJSCSSMozDocumentRule = interface;
  239. TJSCSSMozDocumentRule = class;
  240. IJSCSSNamespaceRule = interface;
  241. TJSCSSNamespaceRule = class;
  242. IJSCSSPageRule = interface;
  243. TJSCSSPageRule = class;
  244. IJSCSSPropertyRule = interface;
  245. TJSCSSPropertyRule = class;
  246. IJSCSSPseudoElement = interface;
  247. TJSCSSPseudoElement = class;
  248. IJSCSSRule = interface;
  249. TJSCSSRule = class;
  250. IJSCSSRuleList = interface;
  251. TJSCSSRuleList = class;
  252. IJSCSSScopeRule = interface;
  253. TJSCSSScopeRule = class;
  254. IJSCSSStyleDeclaration = interface;
  255. TJSCSSStyleDeclaration = class;
  256. IJSCSSStyleRule = interface;
  257. TJSCSSStyleRule = class;
  258. IJSCSSStyleSheet = interface;
  259. TJSCSSStyleSheet = class;
  260. IJSCSSSupportsRule = interface;
  261. TJSCSSSupportsRule = class;
  262. IJSCSSTransition = interface;
  263. TJSCSSTransition = class;
  264. IJSCustomElementRegistry = interface;
  265. TJSCustomElementRegistry = class;
  266. IJSCustomEvent = interface;
  267. TJSCustomEvent = class;
  268. IJSContentSecurityPolicy = interface;
  269. TJSContentSecurityPolicy = class;
  270. IJSDataTransfer = interface;
  271. TJSDataTransfer = class;
  272. IJSDataTransferItem = interface;
  273. TJSDataTransferItem = class;
  274. IJSDataTransferItemList = interface;
  275. TJSDataTransferItemList = class;
  276. IJSDecompressionStream = interface;
  277. TJSDecompressionStream = class;
  278. IJSDedicatedWorkerGlobalScope = interface;
  279. TJSDedicatedWorkerGlobalScope = class;
  280. IJSDelayNode = interface;
  281. TJSDelayNode = class;
  282. IJSDeviceLightEvent = interface;
  283. TJSDeviceLightEvent = class;
  284. IJSDeviceAcceleration = interface;
  285. TJSDeviceAcceleration = class;
  286. IJSDeviceRotationRate = interface;
  287. TJSDeviceRotationRate = class;
  288. IJSDeviceMotionEvent = interface;
  289. TJSDeviceMotionEvent = class;
  290. IJSDeviceOrientationEvent = interface;
  291. TJSDeviceOrientationEvent = class;
  292. IJSDirectory = interface;
  293. TJSDirectory = class;
  294. IJSWindowProxy = interface;
  295. TJSWindowProxy = class;
  296. IJSnsISupports = interface;
  297. TJSnsISupports = class;
  298. IJSURI = interface;
  299. TJSURI = class;
  300. IJSnsIDocShell = interface;
  301. TJSnsIDocShell = class;
  302. IJSnsILoadGroup = interface;
  303. TJSnsILoadGroup = class;
  304. IJSnsIReferrerInfo = interface;
  305. TJSnsIReferrerInfo = class;
  306. IJSnsICookieJarSettings = interface;
  307. TJSnsICookieJarSettings = class;
  308. IJSnsIPermissionDelegateHandler = interface;
  309. TJSnsIPermissionDelegateHandler = class;
  310. IJSXULCommandDispatcher = interface;
  311. TJSXULCommandDispatcher = class;
  312. IJSDocument = interface;
  313. TJSDocument = class;
  314. IJSDocumentFragment = interface;
  315. TJSDocumentFragment = class;
  316. IJSDocumentOrShadowRoot = interface;
  317. TJSDocumentOrShadowRoot = class;
  318. IJSDocumentTimeline = interface;
  319. TJSDocumentTimeline = class;
  320. IJSDocumentType = interface;
  321. TJSDocumentType = class;
  322. IJSStackFrame = interface;
  323. TJSStackFrame = class;
  324. IJSExceptionMembers = interface;
  325. TJSExceptionMembers = class;
  326. IJSException = interface;
  327. TJSException = class;
  328. IJSDOMException = interface;
  329. TJSDOMException = class;
  330. IJSDOMImplementation = interface;
  331. TJSDOMImplementation = class;
  332. IJSDOMLocalization = interface;
  333. TJSDOMLocalization = class;
  334. IJSDOMMatrixReadOnly = interface;
  335. TJSDOMMatrixReadOnly = class;
  336. IJSDOMMatrix = interface;
  337. TJSDOMMatrix = class;
  338. IJSInputStream = interface;
  339. TJSInputStream = class;
  340. IJSDOMParser = interface;
  341. TJSDOMParser = class;
  342. IJSDOMPointReadOnly = interface;
  343. TJSDOMPointReadOnly = class;
  344. IJSDOMPoint = interface;
  345. TJSDOMPoint = class;
  346. IJSDOMQuad = interface;
  347. TJSDOMQuad = class;
  348. IJSDOMRect = interface;
  349. TJSDOMRect = class;
  350. IJSDOMRectReadOnly = interface;
  351. TJSDOMRectReadOnly = class;
  352. IJSDOMRectList = interface;
  353. TJSDOMRectList = class;
  354. IJSDOMStringList = interface;
  355. TJSDOMStringList = class;
  356. IJSDOMStringMap = interface;
  357. TJSDOMStringMap = class;
  358. IJSDOMTokenList = interface;
  359. TJSDOMTokenList = class;
  360. IJSDragEvent = interface;
  361. TJSDragEvent = class;
  362. IJSDynamicsCompressorNode = interface;
  363. TJSDynamicsCompressorNode = class;
  364. IJSnsIScreen = interface;
  365. TJSnsIScreen = class;
  366. IJSElement = interface;
  367. TJSElement = class;
  368. IJSHTMLOrForeignElement = interface;
  369. TJSHTMLOrForeignElement = class;
  370. IJSElementCSSInlineStyle = interface;
  371. TJSElementCSSInlineStyle = class;
  372. IJSElementInternals = interface;
  373. TJSElementInternals = class;
  374. IJSCustomStateSet = interface;
  375. TJSCustomStateSet = class;
  376. IJSEncodedAudioChunk = interface;
  377. TJSEncodedAudioChunk = class;
  378. IJSEncodedVideoChunk = interface;
  379. TJSEncodedVideoChunk = class;
  380. IJSErrorEvent = interface;
  381. TJSErrorEvent = class;
  382. IJSEvent = interface;
  383. TJSEvent = class;
  384. IJSGlobalEventHandlers = interface;
  385. TJSGlobalEventHandlers = class;
  386. IJSWindowEventHandlers = interface;
  387. TJSWindowEventHandlers = class;
  388. IJSOnErrorEventHandlerForNodes = interface;
  389. TJSOnErrorEventHandlerForNodes = class;
  390. IJSOnErrorEventHandlerForWindow = interface;
  391. TJSOnErrorEventHandlerForWindow = class;
  392. IJSEventSource = interface;
  393. TJSEventSource = class;
  394. IJSEventTarget = interface;
  395. TJSEventTarget = class;
  396. IJSExtendableEvent = interface;
  397. TJSExtendableEvent = class;
  398. IJSExtendableMessageEvent = interface;
  399. TJSExtendableMessageEvent = class;
  400. IJSExtensionAlarms = interface;
  401. TJSExtensionAlarms = class;
  402. IJSExtensionGlobalsMixin = interface;
  403. TJSExtensionGlobalsMixin = class;
  404. IJSExtensionBrowser = interface;
  405. TJSExtensionBrowser = class;
  406. IJSExtensionBrowserSettings = interface;
  407. TJSExtensionBrowserSettings = class;
  408. IJSExtensionBrowserSettingsColorManagement = interface;
  409. TJSExtensionBrowserSettingsColorManagement = class;
  410. IJSExtensionDns = interface;
  411. TJSExtensionDns = class;
  412. IJSExtensionEventManager = interface;
  413. TJSExtensionEventManager = class;
  414. IJSExtensionMockAPI = interface;
  415. TJSExtensionMockAPI = class;
  416. IJSExtensionPort = interface;
  417. TJSExtensionPort = class;
  418. IJSExtensionProxy = interface;
  419. TJSExtensionProxy = class;
  420. IJSExtensionRuntime = interface;
  421. TJSExtensionRuntime = class;
  422. IJSExtensionScripting = interface;
  423. TJSExtensionScripting = class;
  424. IJSExtensionSetting = interface;
  425. TJSExtensionSetting = class;
  426. IJSExtensionTest = interface;
  427. TJSExtensionTest = class;
  428. IJSExternal = interface;
  429. TJSExternal = class;
  430. IJSFeaturePolicy = interface;
  431. TJSFeaturePolicy = class;
  432. IJSFeaturePolicyViolationReportBody = interface;
  433. TJSFeaturePolicyViolationReportBody = class;
  434. IJSBody = interface;
  435. TJSBody = class;
  436. IJSFetchEvent = interface;
  437. TJSFetchEvent = class;
  438. IJSFetchObserver = interface;
  439. TJSFetchObserver = class;
  440. IJSnsIFile = interface;
  441. TJSnsIFile = class;
  442. IJSFile = interface;
  443. TJSFile = class;
  444. IJSFileList = interface;
  445. TJSFileList = class;
  446. IJSFileReader = interface;
  447. TJSFileReader = class;
  448. IJSFileReaderSync = interface;
  449. TJSFileReaderSync = class;
  450. IJSFileSystem = interface;
  451. TJSFileSystem = class;
  452. IJSFileSystemDirectoryEntry = interface;
  453. TJSFileSystemDirectoryEntry = class;
  454. IJSFileSystemDirectoryHandle = interface;
  455. TJSFileSystemDirectoryHandle = class;
  456. IJSFileSystemDirectoryIterator = interface;
  457. TJSFileSystemDirectoryIterator = class;
  458. IJSFileSystemDirectoryReader = interface;
  459. TJSFileSystemDirectoryReader = class;
  460. IJSFileSystemEntry = interface;
  461. TJSFileSystemEntry = class;
  462. IJSFileSystemFileEntry = interface;
  463. TJSFileSystemFileEntry = class;
  464. IJSFileSystemFileHandle = interface;
  465. TJSFileSystemFileHandle = class;
  466. IJSFileSystemHandle = interface;
  467. TJSFileSystemHandle = class;
  468. IJSFileSystemSyncAccessHandle = interface;
  469. TJSFileSystemSyncAccessHandle = class;
  470. IJSFileSystemWritableFileStream = interface;
  471. TJSFileSystemWritableFileStream = class;
  472. IJSFocusEvent = interface;
  473. TJSFocusEvent = class;
  474. IJSFontFace = interface;
  475. TJSFontFace = class;
  476. IJSFontFaceSetIterator = interface;
  477. TJSFontFaceSetIterator = class;
  478. IJSFontFaceSet = interface;
  479. TJSFontFaceSet = class;
  480. IJSFontFaceSetLoadEvent = interface;
  481. TJSFontFaceSetLoadEvent = class;
  482. IJSFontFaceSource = interface;
  483. TJSFontFaceSource = class;
  484. IJSFormData = interface;
  485. TJSFormData = class;
  486. IJSFormDataEvent = interface;
  487. TJSFormDataEvent = class;
  488. IJSFragmentDirective = interface;
  489. TJSFragmentDirective = class;
  490. IJSFuzzingFunctions = interface;
  491. TJSFuzzingFunctions = class;
  492. IJSGainNode = interface;
  493. TJSGainNode = class;
  494. IJSGamepadButton = interface;
  495. TJSGamepadButton = class;
  496. IJSGamepad = interface;
  497. TJSGamepad = class;
  498. IJSGamepadAxisMoveEvent = interface;
  499. TJSGamepadAxisMoveEvent = class;
  500. IJSGamepadButtonEvent = interface;
  501. TJSGamepadButtonEvent = class;
  502. IJSGamepadEvent = interface;
  503. TJSGamepadEvent = class;
  504. IJSGamepadHapticActuator = interface;
  505. TJSGamepadHapticActuator = class;
  506. IJSGamepadLightIndicator = interface;
  507. TJSGamepadLightIndicator = class;
  508. IJSGamepadPose = interface;
  509. TJSGamepadPose = class;
  510. IJSGamepadServiceTest = interface;
  511. TJSGamepadServiceTest = class;
  512. IJSGamepadTouch = interface;
  513. TJSGamepadTouch = class;
  514. IJSGenericTransformStream = interface;
  515. TJSGenericTransformStream = class;
  516. IJSGeolocation = interface;
  517. TJSGeolocation = class;
  518. IJSGeolocationCoordinates = interface;
  519. TJSGeolocationCoordinates = class;
  520. IJSGeolocationPosition = interface;
  521. TJSGeolocationPosition = class;
  522. IJSGeolocationPositionError = interface;
  523. TJSGeolocationPositionError = class;
  524. IJSGeometryUtils = interface;
  525. TJSGeometryUtils = class;
  526. IJSnsIMediaDevice = interface;
  527. TJSnsIMediaDevice = class;
  528. IJSGetUserMediaRequest = interface;
  529. TJSGetUserMediaRequest = class;
  530. IJSGleanCategory = interface;
  531. TJSGleanCategory = class;
  532. IJSGleanImpl = interface;
  533. TJSGleanImpl = class;
  534. IJSGleanLabeled = interface;
  535. TJSGleanLabeled = class;
  536. IJSGleanMetric = interface;
  537. TJSGleanMetric = class;
  538. IJSGleanBoolean = interface;
  539. TJSGleanBoolean = class;
  540. IJSGleanDatetime = interface;
  541. TJSGleanDatetime = class;
  542. IJSGleanCounter = interface;
  543. TJSGleanCounter = class;
  544. IJSGleanTimingDistribution = interface;
  545. TJSGleanTimingDistribution = class;
  546. IJSGleanMemoryDistribution = interface;
  547. TJSGleanMemoryDistribution = class;
  548. IJSGleanCustomDistribution = interface;
  549. TJSGleanCustomDistribution = class;
  550. IJSGleanString = interface;
  551. TJSGleanString = class;
  552. IJSGleanStringList = interface;
  553. TJSGleanStringList = class;
  554. IJSGleanTimespan = interface;
  555. TJSGleanTimespan = class;
  556. IJSGleanUuid = interface;
  557. TJSGleanUuid = class;
  558. IJSGleanEvent = interface;
  559. TJSGleanEvent = class;
  560. IJSGleanQuantity = interface;
  561. TJSGleanQuantity = class;
  562. IJSGleanDenominator = interface;
  563. TJSGleanDenominator = class;
  564. IJSGleanNumerator = interface;
  565. TJSGleanNumerator = class;
  566. IJSGleanRate = interface;
  567. TJSGleanRate = class;
  568. IJSGleanUrl = interface;
  569. TJSGleanUrl = class;
  570. IJSGleanText = interface;
  571. TJSGleanText = class;
  572. IJSGleanObject = interface;
  573. TJSGleanObject = class;
  574. IJSnsIGleanPing = interface;
  575. TJSnsIGleanPing = class;
  576. IJSGleanPingsImpl = interface;
  577. TJSGleanPingsImpl = class;
  578. IJSGPUUncapturedErrorEvent = interface;
  579. TJSGPUUncapturedErrorEvent = class;
  580. IJSHashChangeEvent = interface;
  581. TJSHashChangeEvent = class;
  582. IJSHeaders = interface;
  583. TJSHeaders = class;
  584. IJSHighlight = interface;
  585. TJSHighlight = class;
  586. IJSHighlightRegistry = interface;
  587. TJSHighlightRegistry = class;
  588. IJSHistory = interface;
  589. TJSHistory = class;
  590. IJSHTMLAllCollection = interface;
  591. TJSHTMLAllCollection = class;
  592. IJSHTMLAnchorElement = interface;
  593. TJSHTMLAnchorElement = class;
  594. IJSHTMLAreaElement = interface;
  595. TJSHTMLAreaElement = class;
  596. IJSHTMLAudioElement = interface;
  597. TJSHTMLAudioElement = class;
  598. IJSHTMLBaseElement = interface;
  599. TJSHTMLBaseElement = class;
  600. IJSHTMLBodyElement = interface;
  601. TJSHTMLBodyElement = class;
  602. IJSHTMLBRElement = interface;
  603. TJSHTMLBRElement = class;
  604. IJSHTMLButtonElement = interface;
  605. TJSHTMLButtonElement = class;
  606. IJSHTMLCanvasElement = interface;
  607. TJSHTMLCanvasElement = class;
  608. IJSHTMLCollection = interface;
  609. TJSHTMLCollection = class;
  610. IJSHTMLDataElement = interface;
  611. TJSHTMLDataElement = class;
  612. IJSHTMLDataListElement = interface;
  613. TJSHTMLDataListElement = class;
  614. IJSHTMLDetailsElement = interface;
  615. TJSHTMLDetailsElement = class;
  616. IJSHTMLDialogElement = interface;
  617. TJSHTMLDialogElement = class;
  618. IJSHTMLDirectoryElement = interface;
  619. TJSHTMLDirectoryElement = class;
  620. IJSHTMLDivElement = interface;
  621. TJSHTMLDivElement = class;
  622. IJSHTMLDListElement = interface;
  623. TJSHTMLDListElement = class;
  624. IJSHTMLDocument = interface;
  625. TJSHTMLDocument = class;
  626. IJSHTMLElement = interface;
  627. TJSHTMLElement = class;
  628. IJSTouchEventHandlers = interface;
  629. TJSTouchEventHandlers = class;
  630. IJSHTMLUnknownElement = interface;
  631. TJSHTMLUnknownElement = class;
  632. IJSHTMLEmbedElement = interface;
  633. TJSHTMLEmbedElement = class;
  634. IJSHTMLFieldSetElement = interface;
  635. TJSHTMLFieldSetElement = class;
  636. IJSHTMLFontElement = interface;
  637. TJSHTMLFontElement = class;
  638. IJSHTMLFormControlsCollection = interface;
  639. TJSHTMLFormControlsCollection = class;
  640. IJSHTMLFormElement = interface;
  641. TJSHTMLFormElement = class;
  642. IJSHTMLFrameElement = interface;
  643. TJSHTMLFrameElement = class;
  644. IJSHTMLFrameSetElement = interface;
  645. TJSHTMLFrameSetElement = class;
  646. IJSHTMLHeadElement = interface;
  647. TJSHTMLHeadElement = class;
  648. IJSHTMLHeadingElement = interface;
  649. TJSHTMLHeadingElement = class;
  650. IJSHTMLHRElement = interface;
  651. TJSHTMLHRElement = class;
  652. IJSHTMLHtmlElement = interface;
  653. TJSHTMLHtmlElement = class;
  654. IJSHTMLHyperlinkElementUtils = interface;
  655. TJSHTMLHyperlinkElementUtils = class;
  656. IJSHTMLIFrameElement = interface;
  657. TJSHTMLIFrameElement = class;
  658. IJSimgINotificationObserver = interface;
  659. TJSimgINotificationObserver = class;
  660. IJSimgIRequest = interface;
  661. TJSimgIRequest = class;
  662. IJSnsIStreamListener = interface;
  663. TJSnsIStreamListener = class;
  664. IJSHTMLImageElement = interface;
  665. TJSHTMLImageElement = class;
  666. IJSMozImageLoadingContent = interface;
  667. TJSMozImageLoadingContent = class;
  668. IJSXULControllers = interface;
  669. TJSXULControllers = class;
  670. IJSHTMLInputElement = interface;
  671. TJSHTMLInputElement = class;
  672. IJSMozEditableElement = interface;
  673. TJSMozEditableElement = class;
  674. IJSHTMLLabelElement = interface;
  675. TJSHTMLLabelElement = class;
  676. IJSHTMLLegendElement = interface;
  677. TJSHTMLLegendElement = class;
  678. IJSHTMLLIElement = interface;
  679. TJSHTMLLIElement = class;
  680. IJSHTMLLinkElement = interface;
  681. TJSHTMLLinkElement = class;
  682. IJSHTMLMapElement = interface;
  683. TJSHTMLMapElement = class;
  684. IJSHTMLMarqueeElement = interface;
  685. TJSHTMLMarqueeElement = class;
  686. IJSHTMLMediaElement = interface;
  687. TJSHTMLMediaElement = class;
  688. IJSHTMLMenuElement = interface;
  689. TJSHTMLMenuElement = class;
  690. IJSHTMLMetaElement = interface;
  691. TJSHTMLMetaElement = class;
  692. IJSHTMLMeterElement = interface;
  693. TJSHTMLMeterElement = class;
  694. IJSHTMLModElement = interface;
  695. TJSHTMLModElement = class;
  696. IJSHTMLObjectElement = interface;
  697. TJSHTMLObjectElement = class;
  698. IJSMozObjectLoadingContent = interface;
  699. TJSMozObjectLoadingContent = class;
  700. IJSHTMLOListElement = interface;
  701. TJSHTMLOListElement = class;
  702. IJSHTMLOptGroupElement = interface;
  703. TJSHTMLOptGroupElement = class;
  704. IJSHTMLOptionElement = interface;
  705. TJSHTMLOptionElement = class;
  706. IJSHTMLOptionsCollection = interface;
  707. TJSHTMLOptionsCollection = class;
  708. IJSHTMLOutputElement = interface;
  709. TJSHTMLOutputElement = class;
  710. IJSHTMLParagraphElement = interface;
  711. TJSHTMLParagraphElement = class;
  712. IJSHTMLParamElement = interface;
  713. TJSHTMLParamElement = class;
  714. IJSHTMLPictureElement = interface;
  715. TJSHTMLPictureElement = class;
  716. IJSHTMLPreElement = interface;
  717. TJSHTMLPreElement = class;
  718. IJSHTMLProgressElement = interface;
  719. TJSHTMLProgressElement = class;
  720. IJSHTMLQuoteElement = interface;
  721. TJSHTMLQuoteElement = class;
  722. IJSHTMLScriptElement = interface;
  723. TJSHTMLScriptElement = class;
  724. IJSHTMLSelectElement = interface;
  725. TJSHTMLSelectElement = class;
  726. IJSHTMLSlotElement = interface;
  727. TJSHTMLSlotElement = class;
  728. IJSHTMLSourceElement = interface;
  729. TJSHTMLSourceElement = class;
  730. IJSHTMLSpanElement = interface;
  731. TJSHTMLSpanElement = class;
  732. IJSHTMLStyleElement = interface;
  733. TJSHTMLStyleElement = class;
  734. IJSHTMLTableCaptionElement = interface;
  735. TJSHTMLTableCaptionElement = class;
  736. IJSHTMLTableCellElement = interface;
  737. TJSHTMLTableCellElement = class;
  738. IJSHTMLTableColElement = interface;
  739. TJSHTMLTableColElement = class;
  740. IJSHTMLTableElement = interface;
  741. TJSHTMLTableElement = class;
  742. IJSHTMLTableRowElement = interface;
  743. TJSHTMLTableRowElement = class;
  744. IJSHTMLTableSectionElement = interface;
  745. TJSHTMLTableSectionElement = class;
  746. IJSHTMLTemplateElement = interface;
  747. TJSHTMLTemplateElement = class;
  748. IJSnsIEditor = interface;
  749. TJSnsIEditor = class;
  750. IJSHTMLTextAreaElement = interface;
  751. TJSHTMLTextAreaElement = class;
  752. IJSHTMLTimeElement = interface;
  753. TJSHTMLTimeElement = class;
  754. IJSHTMLTitleElement = interface;
  755. TJSHTMLTitleElement = class;
  756. IJSHTMLTrackElement = interface;
  757. TJSHTMLTrackElement = class;
  758. IJSHTMLUListElement = interface;
  759. TJSHTMLUListElement = class;
  760. IJSHTMLVideoElement = interface;
  761. TJSHTMLVideoElement = class;
  762. IJSIDBCursor = interface;
  763. TJSIDBCursor = class;
  764. IJSIDBCursorWithValue = interface;
  765. TJSIDBCursorWithValue = class;
  766. IJSIDBDatabase = interface;
  767. TJSIDBDatabase = class;
  768. IJSIDBFactory = interface;
  769. TJSIDBFactory = class;
  770. IJSIDBIndex = interface;
  771. TJSIDBIndex = class;
  772. IJSIDBKeyRange = interface;
  773. TJSIDBKeyRange = class;
  774. IJSIDBObjectStore = interface;
  775. TJSIDBObjectStore = class;
  776. IJSIDBOpenDBRequest = interface;
  777. TJSIDBOpenDBRequest = class;
  778. IJSIDBRequest = interface;
  779. TJSIDBRequest = class;
  780. IJSIDBTransaction = interface;
  781. TJSIDBTransaction = class;
  782. IJSIDBVersionChangeEvent = interface;
  783. TJSIDBVersionChangeEvent = class;
  784. IJSIdentityCredential = interface;
  785. TJSIdentityCredential = class;
  786. IJSIdleDeadline = interface;
  787. TJSIdleDeadline = class;
  788. IJSIIRFilterNode = interface;
  789. TJSIIRFilterNode = class;
  790. IJSImageBitmap = interface;
  791. TJSImageBitmap = class;
  792. IJSImageBitmapRenderingContext = interface;
  793. TJSImageBitmapRenderingContext = class;
  794. IJSImageCapture = interface;
  795. TJSImageCapture = class;
  796. IJSImageCaptureErrorEvent = interface;
  797. TJSImageCaptureErrorEvent = class;
  798. IJSImageCaptureError = interface;
  799. TJSImageCaptureError = class;
  800. IJSImageData = interface;
  801. TJSImageData = class;
  802. IJSInputEvent = interface;
  803. TJSInputEvent = class;
  804. IJSIntersectionObserverEntry = interface;
  805. TJSIntersectionObserverEntry = class;
  806. IJSIntersectionObserver = interface;
  807. TJSIntersectionObserver = class;
  808. IJSIntlUtils = interface;
  809. TJSIntlUtils = class;
  810. IJSInvokeEvent = interface;
  811. TJSInvokeEvent = class;
  812. IJSInvokerElement = interface;
  813. TJSInvokerElement = class;
  814. IJSKeyboardEvent = interface;
  815. TJSKeyboardEvent = class;
  816. IJSKeyEvent = interface;
  817. TJSKeyEvent = class;
  818. IJSKeyEventMixin = interface;
  819. TJSKeyEventMixin = class;
  820. IJSKeyframeEffect = interface;
  821. TJSKeyframeEffect = class;
  822. IJSLinkStyle = interface;
  823. TJSLinkStyle = class;
  824. IJSLocalization = interface;
  825. TJSLocalization = class;
  826. IJSLocation = interface;
  827. TJSLocation = class;
  828. IJSLock = interface;
  829. TJSLock = class;
  830. IJSLockManager = interface;
  831. TJSLockManager = class;
  832. IJSMathMLElement = interface;
  833. TJSMathMLElement = class;
  834. IJSMediaCapabilitiesInfo = interface;
  835. TJSMediaCapabilitiesInfo = class;
  836. IJSMediaCapabilities = interface;
  837. TJSMediaCapabilities = class;
  838. IJSMediaDeviceInfo = interface;
  839. TJSMediaDeviceInfo = class;
  840. IJSMediaDevices = interface;
  841. TJSMediaDevices = class;
  842. IJSMediaElementAudioSourceNode = interface;
  843. TJSMediaElementAudioSourceNode = class;
  844. IJSMediaEncryptedEvent = interface;
  845. TJSMediaEncryptedEvent = class;
  846. IJSMediaError = interface;
  847. TJSMediaError = class;
  848. IJSMediaKeyError = interface;
  849. TJSMediaKeyError = class;
  850. IJSMediaKeyMessageEvent = interface;
  851. TJSMediaKeyMessageEvent = class;
  852. IJSMediaKeys = interface;
  853. TJSMediaKeys = class;
  854. IJSMediaKeySession = interface;
  855. TJSMediaKeySession = class;
  856. IJSMediaKeyStatusMap = interface;
  857. TJSMediaKeyStatusMap = class;
  858. IJSMediaKeySystemAccess = interface;
  859. TJSMediaKeySystemAccess = class;
  860. IJSMediaList = interface;
  861. TJSMediaList = class;
  862. IJSMediaQueryList = interface;
  863. TJSMediaQueryList = class;
  864. IJSMediaQueryListEvent = interface;
  865. TJSMediaQueryListEvent = class;
  866. IJSMediaRecorder = interface;
  867. TJSMediaRecorder = class;
  868. IJSMediaRecorderErrorEvent = interface;
  869. TJSMediaRecorderErrorEvent = class;
  870. IJSMediaSession = interface;
  871. TJSMediaSession = class;
  872. IJSMediaMetadata = interface;
  873. TJSMediaMetadata = class;
  874. IJSMediaSource = interface;
  875. TJSMediaSource = class;
  876. IJSMediaStream = interface;
  877. TJSMediaStream = class;
  878. IJSMediaStreamAudioDestinationNode = interface;
  879. TJSMediaStreamAudioDestinationNode = class;
  880. IJSMediaStreamAudioSourceNode = interface;
  881. TJSMediaStreamAudioSourceNode = class;
  882. IJSMediaStreamError = interface;
  883. TJSMediaStreamError = class;
  884. IJSMediaStreamEvent = interface;
  885. TJSMediaStreamEvent = class;
  886. IJSMediaStreamTrack = interface;
  887. TJSMediaStreamTrack = class;
  888. IJSMediaStreamTrackAudioSourceNode = interface;
  889. TJSMediaStreamTrackAudioSourceNode = class;
  890. IJSMediaStreamTrackEvent = interface;
  891. TJSMediaStreamTrackEvent = class;
  892. IJSMerchantValidationEvent = interface;
  893. TJSMerchantValidationEvent = class;
  894. IJSMessageChannel = interface;
  895. TJSMessageChannel = class;
  896. IJSMessageEvent = interface;
  897. TJSMessageEvent = class;
  898. IJSMessagePort = interface;
  899. TJSMessagePort = class;
  900. IJSMIDIAccess = interface;
  901. TJSMIDIAccess = class;
  902. IJSMIDIConnectionEvent = interface;
  903. TJSMIDIConnectionEvent = class;
  904. IJSMIDIInput = interface;
  905. TJSMIDIInput = class;
  906. IJSMIDIInputMap = interface;
  907. TJSMIDIInputMap = class;
  908. IJSMIDIMessageEvent = interface;
  909. TJSMIDIMessageEvent = class;
  910. IJSMIDIOutput = interface;
  911. TJSMIDIOutput = class;
  912. IJSMIDIOutputMap = interface;
  913. TJSMIDIOutputMap = class;
  914. IJSMIDIPort = interface;
  915. TJSMIDIPort = class;
  916. IJSMimeType = interface;
  917. TJSMimeType = class;
  918. IJSMimeTypeArray = interface;
  919. TJSMimeTypeArray = class;
  920. IJSMouseEvent = interface;
  921. TJSMouseEvent = class;
  922. IJSMouseScrollEvent = interface;
  923. TJSMouseScrollEvent = class;
  924. IJSMozFrameLoaderOwner = interface;
  925. TJSMozFrameLoaderOwner = class;
  926. IJSMutationEvent = interface;
  927. TJSMutationEvent = class;
  928. IJSMutationRecord = interface;
  929. TJSMutationRecord = class;
  930. IJSMutationObserver = interface;
  931. TJSMutationObserver = class;
  932. IJSNamedNodeMap = interface;
  933. TJSNamedNodeMap = class;
  934. IJSNavigationPreloadManager = interface;
  935. TJSNavigationPreloadManager = class;
  936. IJSNavigator = interface;
  937. TJSNavigator = class;
  938. IJSNavigatorID = interface;
  939. TJSNavigatorID = class;
  940. IJSNavigatorLanguage = interface;
  941. TJSNavigatorLanguage = class;
  942. IJSNavigatorOnLine = interface;
  943. TJSNavigatorOnLine = class;
  944. IJSNavigatorContentUtils = interface;
  945. TJSNavigatorContentUtils = class;
  946. IJSNavigatorStorage = interface;
  947. TJSNavigatorStorage = class;
  948. IJSNavigatorStorageUtils = interface;
  949. TJSNavigatorStorageUtils = class;
  950. IJSGlobalPrivacyControl = interface;
  951. TJSGlobalPrivacyControl = class;
  952. IJSNavigatorGeolocation = interface;
  953. TJSNavigatorGeolocation = class;
  954. IJSNavigatorConcurrentHardware = interface;
  955. TJSNavigatorConcurrentHardware = class;
  956. IJSNavigatorAutomationInformation = interface;
  957. TJSNavigatorAutomationInformation = class;
  958. IJSNavigatorLocks = interface;
  959. TJSNavigatorLocks = class;
  960. IJSNetworkInformation = interface;
  961. TJSNetworkInformation = class;
  962. IJSNode = interface;
  963. TJSNode = class;
  964. IJSNodeIterator = interface;
  965. TJSNodeIterator = class;
  966. IJSNodeList = interface;
  967. TJSNodeList = class;
  968. IJSNonElementParentNode = interface;
  969. TJSNonElementParentNode = class;
  970. IJSNotification = interface;
  971. TJSNotification = class;
  972. IJSNotificationEvent = interface;
  973. TJSNotificationEvent = class;
  974. IJSOfflineAudioCompletionEvent = interface;
  975. TJSOfflineAudioCompletionEvent = class;
  976. IJSOfflineAudioContext = interface;
  977. TJSOfflineAudioContext = class;
  978. IJSOffscreenCanvas = interface;
  979. TJSOffscreenCanvas = class;
  980. IJSOffscreenCanvasRenderingContext2D = interface;
  981. TJSOffscreenCanvasRenderingContext2D = class;
  982. IJSOscillatorNode = interface;
  983. TJSOscillatorNode = class;
  984. IJSPageTransitionEvent = interface;
  985. TJSPageTransitionEvent = class;
  986. IJSPaintRequest = interface;
  987. TJSPaintRequest = class;
  988. IJSPaintRequestList = interface;
  989. TJSPaintRequestList = class;
  990. IJSPaintWorkletGlobalScope = interface;
  991. TJSPaintWorkletGlobalScope = class;
  992. IJSPannerNode = interface;
  993. TJSPannerNode = class;
  994. IJSParentNode = interface;
  995. TJSParentNode = class;
  996. IJSPaymentAddress = interface;
  997. TJSPaymentAddress = class;
  998. IJSPaymentMethodChangeEvent = interface;
  999. TJSPaymentMethodChangeEvent = class;
  1000. IJSPaymentRequest = interface;
  1001. TJSPaymentRequest = class;
  1002. IJSPaymentRequestUpdateEvent = interface;
  1003. TJSPaymentRequestUpdateEvent = class;
  1004. IJSPaymentResponse = interface;
  1005. TJSPaymentResponse = class;
  1006. IJSPerformance = interface;
  1007. TJSPerformance = class;
  1008. IJSPerformanceEntry = interface;
  1009. TJSPerformanceEntry = class;
  1010. IJSEventCounts = interface;
  1011. TJSEventCounts = class;
  1012. IJSPerformanceEventTiming = interface;
  1013. TJSPerformanceEventTiming = class;
  1014. IJSLargestContentfulPaint = interface;
  1015. TJSLargestContentfulPaint = class;
  1016. IJSPerformanceMark = interface;
  1017. TJSPerformanceMark = class;
  1018. IJSPerformanceMeasure = interface;
  1019. TJSPerformanceMeasure = class;
  1020. IJSPerformanceNavigation = interface;
  1021. TJSPerformanceNavigation = class;
  1022. IJSPerformanceNavigationTiming = interface;
  1023. TJSPerformanceNavigationTiming = class;
  1024. IJSPerformanceObserver = interface;
  1025. TJSPerformanceObserver = class;
  1026. IJSPerformanceObserverEntryList = interface;
  1027. TJSPerformanceObserverEntryList = class;
  1028. IJSPerformancePaintTiming = interface;
  1029. TJSPerformancePaintTiming = class;
  1030. IJSPerformanceResourceTiming = interface;
  1031. TJSPerformanceResourceTiming = class;
  1032. IJSPerformanceServerTiming = interface;
  1033. TJSPerformanceServerTiming = class;
  1034. IJSPerformanceTiming = interface;
  1035. TJSPerformanceTiming = class;
  1036. IJSPeriodicWave = interface;
  1037. TJSPeriodicWave = class;
  1038. IJSPermissions = interface;
  1039. TJSPermissions = class;
  1040. IJSPermissionStatus = interface;
  1041. TJSPermissionStatus = class;
  1042. IJSPlugin = interface;
  1043. TJSPlugin = class;
  1044. IJSPluginArray = interface;
  1045. TJSPluginArray = class;
  1046. IJSPointerEvent = interface;
  1047. TJSPointerEvent = class;
  1048. IJSPopoverInvokerElement = interface;
  1049. TJSPopoverInvokerElement = class;
  1050. IJSPopStateEvent = interface;
  1051. TJSPopStateEvent = class;
  1052. IJSPopupBlockedEvent = interface;
  1053. TJSPopupBlockedEvent = class;
  1054. IJSProcessingInstruction = interface;
  1055. TJSProcessingInstruction = class;
  1056. IJSProgressEvent = interface;
  1057. TJSProgressEvent = class;
  1058. IJSPromiseNativeHandler = interface;
  1059. TJSPromiseNativeHandler = class;
  1060. IJSPromiseRejectionEvent = interface;
  1061. TJSPromiseRejectionEvent = class;
  1062. IJSPushEvent = interface;
  1063. TJSPushEvent = class;
  1064. IJSPushManager = interface;
  1065. TJSPushManager = class;
  1066. IJSPushMessageData = interface;
  1067. TJSPushMessageData = class;
  1068. IJSPushSubscription = interface;
  1069. TJSPushSubscription = class;
  1070. IJSPushSubscriptionOptions = interface;
  1071. TJSPushSubscriptionOptions = class;
  1072. IJSCountQueuingStrategy = interface;
  1073. TJSCountQueuingStrategy = class;
  1074. IJSByteLengthQueuingStrategy = interface;
  1075. TJSByteLengthQueuingStrategy = class;
  1076. IJSRadioNodeList = interface;
  1077. TJSRadioNodeList = class;
  1078. IJSRange = interface;
  1079. TJSRange = class;
  1080. IJSReadableByteStreamController = interface;
  1081. TJSReadableByteStreamController = class;
  1082. IJSReadableStream = interface;
  1083. TJSReadableStream = class;
  1084. IJSReadableStreamBYOBReader = interface;
  1085. TJSReadableStreamBYOBReader = class;
  1086. IJSReadableStreamBYOBRequest = interface;
  1087. TJSReadableStreamBYOBRequest = class;
  1088. IJSReadableStreamDefaultController = interface;
  1089. TJSReadableStreamDefaultController = class;
  1090. IJSReadableStreamGenericReader = interface;
  1091. TJSReadableStreamGenericReader = class;
  1092. IJSReadableStreamDefaultReader = interface;
  1093. TJSReadableStreamDefaultReader = class;
  1094. IJSReportBody = interface;
  1095. TJSReportBody = class;
  1096. IJSReport = interface;
  1097. TJSReport = class;
  1098. IJSReportingObserver = interface;
  1099. TJSReportingObserver = class;
  1100. IJSDeprecationReportBody = interface;
  1101. TJSDeprecationReportBody = class;
  1102. IJSTestingDeprecatedInterface = interface;
  1103. TJSTestingDeprecatedInterface = class;
  1104. IJSRequest = interface;
  1105. TJSRequest = class;
  1106. IJSResizeObserver = interface;
  1107. TJSResizeObserver = class;
  1108. IJSResizeObserverEntry = interface;
  1109. TJSResizeObserverEntry = class;
  1110. IJSResizeObserverSize = interface;
  1111. TJSResizeObserverSize = class;
  1112. IJSResponse = interface;
  1113. TJSResponse = class;
  1114. IJSRTCCertificate = interface;
  1115. TJSRTCCertificate = class;
  1116. IJSRTCDataChannel = interface;
  1117. TJSRTCDataChannel = class;
  1118. IJSRTCDataChannelEvent = interface;
  1119. TJSRTCDataChannelEvent = class;
  1120. IJSRTCDtlsTransport = interface;
  1121. TJSRTCDtlsTransport = class;
  1122. IJSRTCDTMFSender = interface;
  1123. TJSRTCDTMFSender = class;
  1124. IJSRTCDTMFToneChangeEvent = interface;
  1125. TJSRTCDTMFToneChangeEvent = class;
  1126. IJSRTCEncodedAudioFrame = interface;
  1127. TJSRTCEncodedAudioFrame = class;
  1128. IJSRTCEncodedVideoFrame = interface;
  1129. TJSRTCEncodedVideoFrame = class;
  1130. IJSRTCIceCandidate = interface;
  1131. TJSRTCIceCandidate = class;
  1132. IJSRTCIceTransport = interface;
  1133. TJSRTCIceTransport = class;
  1134. IJSRTCIdentityProviderRegistrar = interface;
  1135. TJSRTCIdentityProviderRegistrar = class;
  1136. IJSRTCPeerConnection = interface;
  1137. TJSRTCPeerConnection = class;
  1138. IJSRTCPeerConnectionIceEvent = interface;
  1139. TJSRTCPeerConnectionIceEvent = class;
  1140. IJSRTCRtpReceiver = interface;
  1141. TJSRTCRtpReceiver = class;
  1142. IJSRTCRtpScriptTransform = interface;
  1143. TJSRTCRtpScriptTransform = class;
  1144. IJSRTCRtpScriptTransformer = interface;
  1145. TJSRTCRtpScriptTransformer = class;
  1146. IJSRTCRtpSender = interface;
  1147. TJSRTCRtpSender = class;
  1148. IJSRTCRtpTransceiver = interface;
  1149. TJSRTCRtpTransceiver = class;
  1150. IJSRTCSctpTransport = interface;
  1151. TJSRTCSctpTransport = class;
  1152. IJSRTCSessionDescription = interface;
  1153. TJSRTCSessionDescription = class;
  1154. IJSRTCStatsReport = interface;
  1155. TJSRTCStatsReport = class;
  1156. IJSRTCTrackEvent = interface;
  1157. TJSRTCTrackEvent = class;
  1158. IJSRTCTransformEvent = interface;
  1159. TJSRTCTransformEvent = class;
  1160. IJSSanitizer = interface;
  1161. TJSSanitizer = class;
  1162. IJSScreen = interface;
  1163. TJSScreen = class;
  1164. IJSScreenLuminance = interface;
  1165. TJSScreenLuminance = class;
  1166. IJSScreenOrientation = interface;
  1167. TJSScreenOrientation = class;
  1168. IJSScriptProcessorNode = interface;
  1169. TJSScriptProcessorNode = class;
  1170. IJSScrollAreaEvent = interface;
  1171. TJSScrollAreaEvent = class;
  1172. IJSSecurityPolicyViolationEvent = interface;
  1173. TJSSecurityPolicyViolationEvent = class;
  1174. IJSSelection = interface;
  1175. TJSSelection = class;
  1176. IJSnsISelectionListener = interface;
  1177. TJSnsISelectionListener = class;
  1178. IJSServiceWorker = interface;
  1179. TJSServiceWorker = class;
  1180. IJSServiceWorkerContainer = interface;
  1181. TJSServiceWorkerContainer = class;
  1182. IJSServiceWorkerGlobalScope = interface;
  1183. TJSServiceWorkerGlobalScope = class;
  1184. IJSServiceWorkerRegistration = interface;
  1185. TJSServiceWorkerRegistration = class;
  1186. IJSShadowRealmGlobalScope = interface;
  1187. TJSShadowRealmGlobalScope = class;
  1188. IJSShadowRoot = interface;
  1189. TJSShadowRoot = class;
  1190. IJSSharedWorker = interface;
  1191. TJSSharedWorker = class;
  1192. IJSSharedWorkerGlobalScope = interface;
  1193. TJSSharedWorkerGlobalScope = class;
  1194. IJSSourceBuffer = interface;
  1195. TJSSourceBuffer = class;
  1196. IJSSourceBufferList = interface;
  1197. TJSSourceBufferList = class;
  1198. IJSSpeechGrammar = interface;
  1199. TJSSpeechGrammar = class;
  1200. IJSSpeechGrammarList = interface;
  1201. TJSSpeechGrammarList = class;
  1202. IJSSpeechRecognition = interface;
  1203. TJSSpeechRecognition = class;
  1204. IJSSpeechRecognitionAlternative = interface;
  1205. TJSSpeechRecognitionAlternative = class;
  1206. IJSSpeechRecognitionError = interface;
  1207. TJSSpeechRecognitionError = class;
  1208. IJSSpeechRecognitionEvent = interface;
  1209. TJSSpeechRecognitionEvent = class;
  1210. IJSSpeechRecognitionResult = interface;
  1211. TJSSpeechRecognitionResult = class;
  1212. IJSSpeechRecognitionResultList = interface;
  1213. TJSSpeechRecognitionResultList = class;
  1214. IJSSpeechSynthesis = interface;
  1215. TJSSpeechSynthesis = class;
  1216. IJSSpeechSynthesisErrorEvent = interface;
  1217. TJSSpeechSynthesisErrorEvent = class;
  1218. IJSSpeechSynthesisEvent = interface;
  1219. TJSSpeechSynthesisEvent = class;
  1220. IJSSpeechSynthesisUtterance = interface;
  1221. TJSSpeechSynthesisUtterance = class;
  1222. IJSSpeechSynthesisVoice = interface;
  1223. TJSSpeechSynthesisVoice = class;
  1224. IJSStaticRange = interface;
  1225. TJSStaticRange = class;
  1226. IJSStereoPannerNode = interface;
  1227. TJSStereoPannerNode = class;
  1228. IJSStorage = interface;
  1229. TJSStorage = class;
  1230. IJSStorageEvent = interface;
  1231. TJSStorageEvent = class;
  1232. IJSStorageManager = interface;
  1233. TJSStorageManager = class;
  1234. IJSStreamFilter = interface;
  1235. TJSStreamFilter = class;
  1236. IJSStreamFilterDataEvent = interface;
  1237. TJSStreamFilterDataEvent = class;
  1238. IJSStructuredCloneTester = interface;
  1239. TJSStructuredCloneTester = class;
  1240. IJSStyleSheet = interface;
  1241. TJSStyleSheet = class;
  1242. IJSStyleSheetList = interface;
  1243. TJSStyleSheetList = class;
  1244. IJSSubmitEvent = interface;
  1245. TJSSubmitEvent = class;
  1246. IJSCryptoKey = interface;
  1247. TJSCryptoKey = class;
  1248. IJSSubtleCrypto = interface;
  1249. TJSSubtleCrypto = class;
  1250. IJSSVGAElement = interface;
  1251. TJSSVGAElement = class;
  1252. IJSSVGAngle = interface;
  1253. TJSSVGAngle = class;
  1254. IJSSVGAnimatedAngle = interface;
  1255. TJSSVGAnimatedAngle = class;
  1256. IJSSVGAnimatedBoolean = interface;
  1257. TJSSVGAnimatedBoolean = class;
  1258. IJSSVGAnimatedEnumeration = interface;
  1259. TJSSVGAnimatedEnumeration = class;
  1260. IJSSVGAnimatedInteger = interface;
  1261. TJSSVGAnimatedInteger = class;
  1262. IJSSVGAnimatedLength = interface;
  1263. TJSSVGAnimatedLength = class;
  1264. IJSSVGAnimatedLengthList = interface;
  1265. TJSSVGAnimatedLengthList = class;
  1266. IJSSVGAnimatedNumber = interface;
  1267. TJSSVGAnimatedNumber = class;
  1268. IJSSVGAnimatedNumberList = interface;
  1269. TJSSVGAnimatedNumberList = class;
  1270. IJSSVGAnimatedPathData = interface;
  1271. TJSSVGAnimatedPathData = class;
  1272. IJSSVGAnimatedPoints = interface;
  1273. TJSSVGAnimatedPoints = class;
  1274. IJSSVGAnimatedPreserveAspectRatio = interface;
  1275. TJSSVGAnimatedPreserveAspectRatio = class;
  1276. IJSSVGAnimatedRect = interface;
  1277. TJSSVGAnimatedRect = class;
  1278. IJSSVGAnimatedString = interface;
  1279. TJSSVGAnimatedString = class;
  1280. IJSSVGAnimatedTransformList = interface;
  1281. TJSSVGAnimatedTransformList = class;
  1282. IJSSVGAnimateElement = interface;
  1283. TJSSVGAnimateElement = class;
  1284. IJSSVGAnimateMotionElement = interface;
  1285. TJSSVGAnimateMotionElement = class;
  1286. IJSSVGAnimateTransformElement = interface;
  1287. TJSSVGAnimateTransformElement = class;
  1288. IJSSVGAnimationElement = interface;
  1289. TJSSVGAnimationElement = class;
  1290. IJSSVGCircleElement = interface;
  1291. TJSSVGCircleElement = class;
  1292. IJSSVGClipPathElement = interface;
  1293. TJSSVGClipPathElement = class;
  1294. IJSSVGComponentTransferFunctionElement = interface;
  1295. TJSSVGComponentTransferFunctionElement = class;
  1296. IJSSVGDefsElement = interface;
  1297. TJSSVGDefsElement = class;
  1298. IJSSVGDescElement = interface;
  1299. TJSSVGDescElement = class;
  1300. IJSSVGElement = interface;
  1301. TJSSVGElement = class;
  1302. IJSSVGEllipseElement = interface;
  1303. TJSSVGEllipseElement = class;
  1304. IJSSVGFEBlendElement = interface;
  1305. TJSSVGFEBlendElement = class;
  1306. IJSSVGFEColorMatrixElement = interface;
  1307. TJSSVGFEColorMatrixElement = class;
  1308. IJSSVGFEComponentTransferElement = interface;
  1309. TJSSVGFEComponentTransferElement = class;
  1310. IJSSVGFECompositeElement = interface;
  1311. TJSSVGFECompositeElement = class;
  1312. IJSSVGFEConvolveMatrixElement = interface;
  1313. TJSSVGFEConvolveMatrixElement = class;
  1314. IJSSVGFEDiffuseLightingElement = interface;
  1315. TJSSVGFEDiffuseLightingElement = class;
  1316. IJSSVGFEDisplacementMapElement = interface;
  1317. TJSSVGFEDisplacementMapElement = class;
  1318. IJSSVGFEDistantLightElement = interface;
  1319. TJSSVGFEDistantLightElement = class;
  1320. IJSSVGFEDropShadowElement = interface;
  1321. TJSSVGFEDropShadowElement = class;
  1322. IJSSVGFEFloodElement = interface;
  1323. TJSSVGFEFloodElement = class;
  1324. IJSSVGFEFuncAElement = interface;
  1325. TJSSVGFEFuncAElement = class;
  1326. IJSSVGFEFuncBElement = interface;
  1327. TJSSVGFEFuncBElement = class;
  1328. IJSSVGFEFuncGElement = interface;
  1329. TJSSVGFEFuncGElement = class;
  1330. IJSSVGFEFuncRElement = interface;
  1331. TJSSVGFEFuncRElement = class;
  1332. IJSSVGFEGaussianBlurElement = interface;
  1333. TJSSVGFEGaussianBlurElement = class;
  1334. IJSSVGFEImageElement = interface;
  1335. TJSSVGFEImageElement = class;
  1336. IJSSVGFEMergeElement = interface;
  1337. TJSSVGFEMergeElement = class;
  1338. IJSSVGFEMergeNodeElement = interface;
  1339. TJSSVGFEMergeNodeElement = class;
  1340. IJSSVGFEMorphologyElement = interface;
  1341. TJSSVGFEMorphologyElement = class;
  1342. IJSSVGFEOffsetElement = interface;
  1343. TJSSVGFEOffsetElement = class;
  1344. IJSSVGFEPointLightElement = interface;
  1345. TJSSVGFEPointLightElement = class;
  1346. IJSSVGFESpecularLightingElement = interface;
  1347. TJSSVGFESpecularLightingElement = class;
  1348. IJSSVGFESpotLightElement = interface;
  1349. TJSSVGFESpotLightElement = class;
  1350. IJSSVGFETileElement = interface;
  1351. TJSSVGFETileElement = class;
  1352. IJSSVGFETurbulenceElement = interface;
  1353. TJSSVGFETurbulenceElement = class;
  1354. IJSSVGFilterElement = interface;
  1355. TJSSVGFilterElement = class;
  1356. IJSSVGFilterPrimitiveStandardAttributes = interface;
  1357. TJSSVGFilterPrimitiveStandardAttributes = class;
  1358. IJSSVGFitToViewBox = interface;
  1359. TJSSVGFitToViewBox = class;
  1360. IJSSVGForeignObjectElement = interface;
  1361. TJSSVGForeignObjectElement = class;
  1362. IJSSVGGElement = interface;
  1363. TJSSVGGElement = class;
  1364. IJSSVGGeometryElement = interface;
  1365. TJSSVGGeometryElement = class;
  1366. IJSSVGGradientElement = interface;
  1367. TJSSVGGradientElement = class;
  1368. IJSSVGGraphicsElement = interface;
  1369. TJSSVGGraphicsElement = class;
  1370. IJSSVGImageElement = interface;
  1371. TJSSVGImageElement = class;
  1372. IJSSVGLength = interface;
  1373. TJSSVGLength = class;
  1374. IJSSVGLengthList = interface;
  1375. TJSSVGLengthList = class;
  1376. IJSSVGLinearGradientElement = interface;
  1377. TJSSVGLinearGradientElement = class;
  1378. IJSSVGLineElement = interface;
  1379. TJSSVGLineElement = class;
  1380. IJSSVGMarkerElement = interface;
  1381. TJSSVGMarkerElement = class;
  1382. IJSSVGMaskElement = interface;
  1383. TJSSVGMaskElement = class;
  1384. IJSSVGMatrix = interface;
  1385. TJSSVGMatrix = class;
  1386. IJSSVGMetadataElement = interface;
  1387. TJSSVGMetadataElement = class;
  1388. IJSSVGMPathElement = interface;
  1389. TJSSVGMPathElement = class;
  1390. IJSSVGNumber = interface;
  1391. TJSSVGNumber = class;
  1392. IJSSVGNumberList = interface;
  1393. TJSSVGNumberList = class;
  1394. IJSSVGPathElement = interface;
  1395. TJSSVGPathElement = class;
  1396. IJSSVGPathSeg = interface;
  1397. TJSSVGPathSeg = class;
  1398. IJSSVGPathSegClosePath = interface;
  1399. TJSSVGPathSegClosePath = class;
  1400. IJSSVGPathSegMovetoAbs = interface;
  1401. TJSSVGPathSegMovetoAbs = class;
  1402. IJSSVGPathSegMovetoRel = interface;
  1403. TJSSVGPathSegMovetoRel = class;
  1404. IJSSVGPathSegLinetoAbs = interface;
  1405. TJSSVGPathSegLinetoAbs = class;
  1406. IJSSVGPathSegLinetoRel = interface;
  1407. TJSSVGPathSegLinetoRel = class;
  1408. IJSSVGPathSegCurvetoCubicAbs = interface;
  1409. TJSSVGPathSegCurvetoCubicAbs = class;
  1410. IJSSVGPathSegCurvetoCubicRel = interface;
  1411. TJSSVGPathSegCurvetoCubicRel = class;
  1412. IJSSVGPathSegCurvetoQuadraticAbs = interface;
  1413. TJSSVGPathSegCurvetoQuadraticAbs = class;
  1414. IJSSVGPathSegCurvetoQuadraticRel = interface;
  1415. TJSSVGPathSegCurvetoQuadraticRel = class;
  1416. IJSSVGPathSegArcAbs = interface;
  1417. TJSSVGPathSegArcAbs = class;
  1418. IJSSVGPathSegArcRel = interface;
  1419. TJSSVGPathSegArcRel = class;
  1420. IJSSVGPathSegLinetoHorizontalAbs = interface;
  1421. TJSSVGPathSegLinetoHorizontalAbs = class;
  1422. IJSSVGPathSegLinetoHorizontalRel = interface;
  1423. TJSSVGPathSegLinetoHorizontalRel = class;
  1424. IJSSVGPathSegLinetoVerticalAbs = interface;
  1425. TJSSVGPathSegLinetoVerticalAbs = class;
  1426. IJSSVGPathSegLinetoVerticalRel = interface;
  1427. TJSSVGPathSegLinetoVerticalRel = class;
  1428. IJSSVGPathSegCurvetoCubicSmoothAbs = interface;
  1429. TJSSVGPathSegCurvetoCubicSmoothAbs = class;
  1430. IJSSVGPathSegCurvetoCubicSmoothRel = interface;
  1431. TJSSVGPathSegCurvetoCubicSmoothRel = class;
  1432. IJSSVGPathSegCurvetoQuadraticSmoothAbs = interface;
  1433. TJSSVGPathSegCurvetoQuadraticSmoothAbs = class;
  1434. IJSSVGPathSegCurvetoQuadraticSmoothRel = interface;
  1435. TJSSVGPathSegCurvetoQuadraticSmoothRel = class;
  1436. IJSSVGPathSegList = interface;
  1437. TJSSVGPathSegList = class;
  1438. IJSSVGPatternElement = interface;
  1439. TJSSVGPatternElement = class;
  1440. IJSSVGPoint = interface;
  1441. TJSSVGPoint = class;
  1442. IJSSVGPointList = interface;
  1443. TJSSVGPointList = class;
  1444. IJSSVGPolygonElement = interface;
  1445. TJSSVGPolygonElement = class;
  1446. IJSSVGPolylineElement = interface;
  1447. TJSSVGPolylineElement = class;
  1448. IJSSVGPreserveAspectRatio = interface;
  1449. TJSSVGPreserveAspectRatio = class;
  1450. IJSSVGRadialGradientElement = interface;
  1451. TJSSVGRadialGradientElement = class;
  1452. IJSSVGRect = interface;
  1453. TJSSVGRect = class;
  1454. IJSSVGRectElement = interface;
  1455. TJSSVGRectElement = class;
  1456. IJSSVGScriptElement = interface;
  1457. TJSSVGScriptElement = class;
  1458. IJSSVGSetElement = interface;
  1459. TJSSVGSetElement = class;
  1460. IJSSVGStopElement = interface;
  1461. TJSSVGStopElement = class;
  1462. IJSSVGStringList = interface;
  1463. TJSSVGStringList = class;
  1464. IJSSVGStyleElement = interface;
  1465. TJSSVGStyleElement = class;
  1466. IJSSVGSVGElement = interface;
  1467. TJSSVGSVGElement = class;
  1468. IJSSVGSwitchElement = interface;
  1469. TJSSVGSwitchElement = class;
  1470. IJSSVGSymbolElement = interface;
  1471. TJSSVGSymbolElement = class;
  1472. IJSSVGTests = interface;
  1473. TJSSVGTests = class;
  1474. IJSSVGTextContentElement = interface;
  1475. TJSSVGTextContentElement = class;
  1476. IJSSVGTextElement = interface;
  1477. TJSSVGTextElement = class;
  1478. IJSSVGTextPathElement = interface;
  1479. TJSSVGTextPathElement = class;
  1480. IJSSVGTextPositioningElement = interface;
  1481. TJSSVGTextPositioningElement = class;
  1482. IJSSVGTitleElement = interface;
  1483. TJSSVGTitleElement = class;
  1484. IJSSVGTransform = interface;
  1485. TJSSVGTransform = class;
  1486. IJSSVGTransformList = interface;
  1487. TJSSVGTransformList = class;
  1488. IJSSVGTSpanElement = interface;
  1489. TJSSVGTSpanElement = class;
  1490. IJSSVGUnitTypes = interface;
  1491. TJSSVGUnitTypes = class;
  1492. IJSSVGURIReference = interface;
  1493. TJSSVGURIReference = class;
  1494. IJSSVGUseElement = interface;
  1495. TJSSVGUseElement = class;
  1496. IJSSVGViewElement = interface;
  1497. TJSSVGViewElement = class;
  1498. IJSSVGZoomAndPan = interface;
  1499. TJSSVGZoomAndPan = class;
  1500. IJSTaskPriorityChangeEvent = interface;
  1501. TJSTaskPriorityChangeEvent = class;
  1502. IJSTCPServerSocket = interface;
  1503. TJSTCPServerSocket = class;
  1504. IJSTCPServerSocketEvent = interface;
  1505. TJSTCPServerSocketEvent = class;
  1506. IJSnsISocketTransport = interface;
  1507. TJSnsISocketTransport = class;
  1508. IJSLegacyMozTCPSocket = interface;
  1509. TJSLegacyMozTCPSocket = class;
  1510. IJSTCPSocket = interface;
  1511. TJSTCPSocket = class;
  1512. IJSTCPSocketErrorEvent = interface;
  1513. TJSTCPSocketErrorEvent = class;
  1514. IJSTCPSocketEvent = interface;
  1515. TJSTCPSocketEvent = class;
  1516. IJSWrapperCachedNonISupportsTestInterface = interface;
  1517. TJSWrapperCachedNonISupportsTestInterface = class;
  1518. IJSTestTrialInterface = interface;
  1519. TJSTestTrialInterface = class;
  1520. IJSTestInterfaceLength = interface;
  1521. TJSTestInterfaceLength = class;
  1522. IJSTestFunctions = interface;
  1523. TJSTestFunctions = class;
  1524. IJSTestInterfaceJS = interface;
  1525. TJSTestInterfaceJS = class;
  1526. IJSTestInterfaceMaplike = interface;
  1527. TJSTestInterfaceMaplike = class;
  1528. IJSTestInterfaceMaplikeObject = interface;
  1529. TJSTestInterfaceMaplikeObject = class;
  1530. IJSTestInterfaceMaplikeJSObject = interface;
  1531. TJSTestInterfaceMaplikeJSObject = class;
  1532. IJSTestInterfaceSetlike = interface;
  1533. TJSTestInterfaceSetlike = class;
  1534. IJSTestInterfaceSetlikeNode = interface;
  1535. TJSTestInterfaceSetlikeNode = class;
  1536. IJSTestInterfaceIterableSingle = interface;
  1537. TJSTestInterfaceIterableSingle = class;
  1538. IJSTestInterfaceIterableDouble = interface;
  1539. TJSTestInterfaceIterableDouble = class;
  1540. IJSTestInterfaceIterableDoubleUnion = interface;
  1541. TJSTestInterfaceIterableDoubleUnion = class;
  1542. IJSTestInterfaceAsyncIterableSingle = interface;
  1543. TJSTestInterfaceAsyncIterableSingle = class;
  1544. IJSTestInterfaceAsyncIterableSingleWithArgs = interface;
  1545. TJSTestInterfaceAsyncIterableSingleWithArgs = class;
  1546. IJSTestInterfaceAsyncIterableDouble = interface;
  1547. TJSTestInterfaceAsyncIterableDouble = class;
  1548. IJSTestInterfaceAsyncIterableDoubleUnion = interface;
  1549. TJSTestInterfaceAsyncIterableDoubleUnion = class;
  1550. IJSTestInterfaceObservableArray = interface;
  1551. TJSTestInterfaceObservableArray = class;
  1552. IJSTestUtils = interface;
  1553. TJSTestUtils = class;
  1554. IJSText = interface;
  1555. TJSText = class;
  1556. IJSTextDecoderCommon = interface;
  1557. TJSTextDecoderCommon = class;
  1558. IJSTextDecoder = interface;
  1559. TJSTextDecoder = class;
  1560. IJSTextDecoderStream = interface;
  1561. TJSTextDecoderStream = class;
  1562. IJSTextEncoderCommon = interface;
  1563. TJSTextEncoderCommon = class;
  1564. IJSTextEncoder = interface;
  1565. TJSTextEncoder = class;
  1566. IJSTextEncoderStream = interface;
  1567. TJSTextEncoderStream = class;
  1568. IJSTextTrack = interface;
  1569. TJSTextTrack = class;
  1570. IJSTextTrackCue = interface;
  1571. TJSTextTrackCue = class;
  1572. IJSTextTrackCueList = interface;
  1573. TJSTextTrackCueList = class;
  1574. IJSTextTrackList = interface;
  1575. TJSTextTrackList = class;
  1576. IJSTimeEvent = interface;
  1577. TJSTimeEvent = class;
  1578. IJSTimeRanges = interface;
  1579. TJSTimeRanges = class;
  1580. IJSToggleEvent = interface;
  1581. TJSToggleEvent = class;
  1582. IJSTouch = interface;
  1583. TJSTouch = class;
  1584. IJSTouchEvent = interface;
  1585. TJSTouchEvent = class;
  1586. IJSTouchList = interface;
  1587. TJSTouchList = class;
  1588. IJSTrackEvent = interface;
  1589. TJSTrackEvent = class;
  1590. IJSTransformStream = interface;
  1591. TJSTransformStream = class;
  1592. IJSTransformStreamDefaultController = interface;
  1593. TJSTransformStreamDefaultController = class;
  1594. IJSTransitionEvent = interface;
  1595. TJSTransitionEvent = class;
  1596. IJSTreeWalker = interface;
  1597. TJSTreeWalker = class;
  1598. IJSTrustedHTML = interface;
  1599. TJSTrustedHTML = class;
  1600. IJSTrustedScript = interface;
  1601. TJSTrustedScript = class;
  1602. IJSTrustedScriptURL = interface;
  1603. TJSTrustedScriptURL = class;
  1604. IJSTrustedTypePolicy = interface;
  1605. TJSTrustedTypePolicy = class;
  1606. IJSTrustedTypePolicyFactory = interface;
  1607. TJSTrustedTypePolicyFactory = class;
  1608. IJSUIEvent = interface;
  1609. TJSUIEvent = class;
  1610. IJSURL = interface;
  1611. TJSURL = class;
  1612. IJSURLSearchParams = interface;
  1613. TJSURLSearchParams = class;
  1614. IJSUserActivation = interface;
  1615. TJSUserActivation = class;
  1616. IJSUserProximityEvent = interface;
  1617. TJSUserProximityEvent = class;
  1618. IJSValidityState = interface;
  1619. TJSValidityState = class;
  1620. IJSVideoColorSpace = interface;
  1621. TJSVideoColorSpace = class;
  1622. IJSVideoDecoder = interface;
  1623. TJSVideoDecoder = class;
  1624. IJSVideoEncoder = interface;
  1625. TJSVideoEncoder = class;
  1626. IJSVideoFrame = interface;
  1627. TJSVideoFrame = class;
  1628. IJSVideoPlaybackQuality = interface;
  1629. TJSVideoPlaybackQuality = class;
  1630. IJSVideoTrack = interface;
  1631. TJSVideoTrack = class;
  1632. IJSVideoTrackList = interface;
  1633. TJSVideoTrackList = class;
  1634. IJSVisualViewport = interface;
  1635. TJSVisualViewport = class;
  1636. IJSVRFieldOfView = interface;
  1637. TJSVRFieldOfView = class;
  1638. IJSVRDisplayCapabilities = interface;
  1639. TJSVRDisplayCapabilities = class;
  1640. IJSVRStageParameters = interface;
  1641. TJSVRStageParameters = class;
  1642. IJSVRPose = interface;
  1643. TJSVRPose = class;
  1644. IJSVRFrameData = interface;
  1645. TJSVRFrameData = class;
  1646. IJSVREyeParameters = interface;
  1647. TJSVREyeParameters = class;
  1648. IJSVRDisplay = interface;
  1649. TJSVRDisplay = class;
  1650. IJSVRDisplayEvent = interface;
  1651. TJSVRDisplayEvent = class;
  1652. IJSVRMockDisplay = interface;
  1653. TJSVRMockDisplay = class;
  1654. IJSVRMockController = interface;
  1655. TJSVRMockController = class;
  1656. IJSVRServiceTest = interface;
  1657. TJSVRServiceTest = class;
  1658. IJSVTTCue = interface;
  1659. TJSVTTCue = class;
  1660. IJSVTTRegion = interface;
  1661. TJSVTTRegion = class;
  1662. IJSWakeLock = interface;
  1663. TJSWakeLock = class;
  1664. IJSWakeLockSentinel = interface;
  1665. TJSWakeLockSentinel = class;
  1666. IJSWaveShaperNode = interface;
  1667. TJSWaveShaperNode = class;
  1668. IJSPublicKeyCredential = interface;
  1669. TJSPublicKeyCredential = class;
  1670. IJSAuthenticatorResponse = interface;
  1671. TJSAuthenticatorResponse = class;
  1672. IJSAuthenticatorAttestationResponse = interface;
  1673. TJSAuthenticatorAttestationResponse = class;
  1674. IJSAuthenticatorAssertionResponse = interface;
  1675. TJSAuthenticatorAssertionResponse = class;
  1676. IJSWebGLSampler = interface;
  1677. TJSWebGLSampler = class;
  1678. IJSWebGLSync = interface;
  1679. TJSWebGLSync = class;
  1680. IJSWebGLTransformFeedback = interface;
  1681. TJSWebGLTransformFeedback = class;
  1682. IJSWebGL2RenderingContext = interface;
  1683. TJSWebGL2RenderingContext = class;
  1684. IJSWebGL2RenderingContextBase = interface;
  1685. TJSWebGL2RenderingContextBase = class;
  1686. IJSEXT_color_buffer_float = interface;
  1687. TJSEXT_color_buffer_float = class;
  1688. IJSOVR_multiview2 = interface;
  1689. TJSOVR_multiview2 = class;
  1690. IJSWebGLContextEvent = interface;
  1691. TJSWebGLContextEvent = class;
  1692. IJSWebGLBuffer = interface;
  1693. TJSWebGLBuffer = class;
  1694. IJSWebGLFramebuffer = interface;
  1695. TJSWebGLFramebuffer = class;
  1696. IJSWebGLProgram = interface;
  1697. TJSWebGLProgram = class;
  1698. IJSWebGLRenderbuffer = interface;
  1699. TJSWebGLRenderbuffer = class;
  1700. IJSWebGLShader = interface;
  1701. TJSWebGLShader = class;
  1702. IJSWebGLTexture = interface;
  1703. TJSWebGLTexture = class;
  1704. IJSWebGLUniformLocation = interface;
  1705. TJSWebGLUniformLocation = class;
  1706. IJSWebGLVertexArrayObject = interface;
  1707. TJSWebGLVertexArrayObject = class;
  1708. IJSWebGLActiveInfo = interface;
  1709. TJSWebGLActiveInfo = class;
  1710. IJSWebGLShaderPrecisionFormat = interface;
  1711. TJSWebGLShaderPrecisionFormat = class;
  1712. IJSWebGLRenderingContextBase = interface;
  1713. TJSWebGLRenderingContextBase = class;
  1714. IJSWebGLRenderingContext = interface;
  1715. TJSWebGLRenderingContext = class;
  1716. IJSEXT_texture_compression_bptc = interface;
  1717. TJSEXT_texture_compression_bptc = class;
  1718. IJSEXT_texture_compression_rgtc = interface;
  1719. TJSEXT_texture_compression_rgtc = class;
  1720. IJSEXT_texture_norm16 = interface;
  1721. TJSEXT_texture_norm16 = class;
  1722. IJSWEBGL_compressed_texture_s3tc = interface;
  1723. TJSWEBGL_compressed_texture_s3tc = class;
  1724. IJSWEBGL_compressed_texture_s3tc_srgb = interface;
  1725. TJSWEBGL_compressed_texture_s3tc_srgb = class;
  1726. IJSWEBGL_compressed_texture_astc = interface;
  1727. TJSWEBGL_compressed_texture_astc = class;
  1728. IJSWEBGL_compressed_texture_etc = interface;
  1729. TJSWEBGL_compressed_texture_etc = class;
  1730. IJSWEBGL_compressed_texture_etc1 = interface;
  1731. TJSWEBGL_compressed_texture_etc1 = class;
  1732. IJSWEBGL_compressed_texture_pvrtc = interface;
  1733. TJSWEBGL_compressed_texture_pvrtc = class;
  1734. IJSWEBGL_debug_renderer_info = interface;
  1735. TJSWEBGL_debug_renderer_info = class;
  1736. IJSWEBGL_debug_shaders = interface;
  1737. TJSWEBGL_debug_shaders = class;
  1738. IJSWEBGL_depth_texture = interface;
  1739. TJSWEBGL_depth_texture = class;
  1740. IJSOES_element_index_uint = interface;
  1741. TJSOES_element_index_uint = class;
  1742. IJSEXT_frag_depth = interface;
  1743. TJSEXT_frag_depth = class;
  1744. IJSWEBGL_lose_context = interface;
  1745. TJSWEBGL_lose_context = class;
  1746. IJSEXT_texture_filter_anisotropic = interface;
  1747. TJSEXT_texture_filter_anisotropic = class;
  1748. IJSEXT_sRGB = interface;
  1749. TJSEXT_sRGB = class;
  1750. IJSOES_standard_derivatives = interface;
  1751. TJSOES_standard_derivatives = class;
  1752. IJSOES_texture_float = interface;
  1753. TJSOES_texture_float = class;
  1754. IJSWEBGL_draw_buffers = interface;
  1755. TJSWEBGL_draw_buffers = class;
  1756. IJSOES_texture_float_linear = interface;
  1757. TJSOES_texture_float_linear = class;
  1758. IJSEXT_shader_texture_lod = interface;
  1759. TJSEXT_shader_texture_lod = class;
  1760. IJSOES_texture_half_float = interface;
  1761. TJSOES_texture_half_float = class;
  1762. IJSOES_texture_half_float_linear = interface;
  1763. TJSOES_texture_half_float_linear = class;
  1764. IJSWEBGL_color_buffer_float = interface;
  1765. TJSWEBGL_color_buffer_float = class;
  1766. IJSEXT_color_buffer_half_float = interface;
  1767. TJSEXT_color_buffer_half_float = class;
  1768. IJSOES_vertex_array_object = interface;
  1769. TJSOES_vertex_array_object = class;
  1770. IJSANGLE_instanced_arrays = interface;
  1771. TJSANGLE_instanced_arrays = class;
  1772. IJSEXT_blend_minmax = interface;
  1773. TJSEXT_blend_minmax = class;
  1774. IJSWebGLQuery = interface;
  1775. TJSWebGLQuery = class;
  1776. IJSEXT_disjoint_timer_query = interface;
  1777. TJSEXT_disjoint_timer_query = class;
  1778. IJSMOZ_debug = interface;
  1779. TJSMOZ_debug = class;
  1780. IJSEXT_float_blend = interface;
  1781. TJSEXT_float_blend = class;
  1782. IJSOES_fbo_render_mipmap = interface;
  1783. TJSOES_fbo_render_mipmap = class;
  1784. IJSWEBGL_explicit_present = interface;
  1785. TJSWEBGL_explicit_present = class;
  1786. IJSOES_draw_buffers_indexed = interface;
  1787. TJSOES_draw_buffers_indexed = class;
  1788. IJSWEBGL_provoking_vertex = interface;
  1789. TJSWEBGL_provoking_vertex = class;
  1790. IJSGPUObjectBase = interface;
  1791. TJSGPUObjectBase = class;
  1792. IJSGPUSupportedLimits = interface;
  1793. TJSGPUSupportedLimits = class;
  1794. IJSGPUSupportedFeatures = interface;
  1795. TJSGPUSupportedFeatures = class;
  1796. IJSGPUAdapterInfo = interface;
  1797. TJSGPUAdapterInfo = class;
  1798. IJSNavigatorGPU = interface;
  1799. TJSNavigatorGPU = class;
  1800. IJSGPU = interface;
  1801. TJSGPU = class;
  1802. IJSGPUAdapter = interface;
  1803. TJSGPUAdapter = class;
  1804. IJSGPUDevice = interface;
  1805. TJSGPUDevice = class;
  1806. IJSGPUBuffer = interface;
  1807. TJSGPUBuffer = class;
  1808. IJSGPUBufferUsage = interface;
  1809. TJSGPUBufferUsage = class;
  1810. IJSGPUMapMode = interface;
  1811. TJSGPUMapMode = class;
  1812. IJSGPUTexture = interface;
  1813. TJSGPUTexture = class;
  1814. IJSGPUTextureUsage = interface;
  1815. TJSGPUTextureUsage = class;
  1816. IJSGPUTextureView = interface;
  1817. TJSGPUTextureView = class;
  1818. IJSGPUSampler = interface;
  1819. TJSGPUSampler = class;
  1820. IJSGPUBindGroupLayout = interface;
  1821. TJSGPUBindGroupLayout = class;
  1822. IJSGPUShaderStage = interface;
  1823. TJSGPUShaderStage = class;
  1824. IJSGPUBindGroup = interface;
  1825. TJSGPUBindGroup = class;
  1826. IJSGPUPipelineLayout = interface;
  1827. TJSGPUPipelineLayout = class;
  1828. IJSGPUShaderModule = interface;
  1829. TJSGPUShaderModule = class;
  1830. IJSGPUCompilationMessage = interface;
  1831. TJSGPUCompilationMessage = class;
  1832. IJSGPUCompilationInfo = interface;
  1833. TJSGPUCompilationInfo = class;
  1834. IJSGPUPipelineBase = interface;
  1835. TJSGPUPipelineBase = class;
  1836. IJSGPUComputePipeline = interface;
  1837. TJSGPUComputePipeline = class;
  1838. IJSGPURenderPipeline = interface;
  1839. TJSGPURenderPipeline = class;
  1840. IJSGPUColorWrite = interface;
  1841. TJSGPUColorWrite = class;
  1842. IJSGPUCommandBuffer = interface;
  1843. TJSGPUCommandBuffer = class;
  1844. IJSGPUCommandsMixin = interface;
  1845. TJSGPUCommandsMixin = class;
  1846. IJSGPUCommandEncoder = interface;
  1847. TJSGPUCommandEncoder = class;
  1848. IJSGPUBindingCommandsMixin = interface;
  1849. TJSGPUBindingCommandsMixin = class;
  1850. IJSGPUDebugCommandsMixin = interface;
  1851. TJSGPUDebugCommandsMixin = class;
  1852. IJSGPUComputePassEncoder = interface;
  1853. TJSGPUComputePassEncoder = class;
  1854. IJSGPURenderPassEncoder = interface;
  1855. TJSGPURenderPassEncoder = class;
  1856. IJSGPURenderCommandsMixin = interface;
  1857. TJSGPURenderCommandsMixin = class;
  1858. IJSGPURenderBundle = interface;
  1859. TJSGPURenderBundle = class;
  1860. IJSGPURenderBundleEncoder = interface;
  1861. TJSGPURenderBundleEncoder = class;
  1862. IJSGPUQueue = interface;
  1863. TJSGPUQueue = class;
  1864. IJSGPUQuerySet = interface;
  1865. TJSGPUQuerySet = class;
  1866. IJSGPUCanvasContext = interface;
  1867. TJSGPUCanvasContext = class;
  1868. IJSGPUDeviceLostInfo = interface;
  1869. TJSGPUDeviceLostInfo = class;
  1870. IJSGPUError = interface;
  1871. TJSGPUError = class;
  1872. IJSGPUValidationError = interface;
  1873. TJSGPUValidationError = class;
  1874. IJSGPUOutOfMemoryError = interface;
  1875. TJSGPUOutOfMemoryError = class;
  1876. IJSGPUInternalError = interface;
  1877. TJSGPUInternalError = class;
  1878. IJSWebSocket = interface;
  1879. TJSWebSocket = class;
  1880. IJSnsITransportProvider = interface;
  1881. TJSnsITransportProvider = class;
  1882. IJSTaskSignal = interface;
  1883. TJSTaskSignal = class;
  1884. IJSScheduler = interface;
  1885. TJSScheduler = class;
  1886. IJSTaskController = interface;
  1887. TJSTaskController = class;
  1888. IJSWebTransport = interface;
  1889. TJSWebTransport = class;
  1890. IJSWebTransportDatagramDuplexStream = interface;
  1891. TJSWebTransportDatagramDuplexStream = class;
  1892. IJSWebTransportError = interface;
  1893. TJSWebTransportError = class;
  1894. IJSWebTransportSendStream = interface;
  1895. TJSWebTransportSendStream = class;
  1896. IJSWebTransportReceiveStream = interface;
  1897. TJSWebTransportReceiveStream = class;
  1898. IJSWebTransportBidirectionalStream = interface;
  1899. TJSWebTransportBidirectionalStream = class;
  1900. IJSXRSystem = interface;
  1901. TJSXRSystem = class;
  1902. IJSXRSession = interface;
  1903. TJSXRSession = class;
  1904. IJSXRRenderState = interface;
  1905. TJSXRRenderState = class;
  1906. IJSXRFrame = interface;
  1907. TJSXRFrame = class;
  1908. IJSXRSpace = interface;
  1909. TJSXRSpace = class;
  1910. IJSXRReferenceSpace = interface;
  1911. TJSXRReferenceSpace = class;
  1912. IJSXRBoundedReferenceSpace = interface;
  1913. TJSXRBoundedReferenceSpace = class;
  1914. IJSXRView = interface;
  1915. TJSXRView = class;
  1916. IJSXRViewport = interface;
  1917. TJSXRViewport = class;
  1918. IJSXRRigidTransform = interface;
  1919. TJSXRRigidTransform = class;
  1920. IJSXRPose = interface;
  1921. TJSXRPose = class;
  1922. IJSXRViewerPose = interface;
  1923. TJSXRViewerPose = class;
  1924. IJSXRInputSource = interface;
  1925. TJSXRInputSource = class;
  1926. IJSXRInputSourceArray = interface;
  1927. TJSXRInputSourceArray = class;
  1928. IJSXRWebGLLayer = interface;
  1929. TJSXRWebGLLayer = class;
  1930. IJSWheelEvent = interface;
  1931. TJSWheelEvent = class;
  1932. IJSnsIBrowserDOMWindow = interface;
  1933. TJSnsIBrowserDOMWindow = class;
  1934. IJSnsIDOMWindowUtils = interface;
  1935. TJSnsIDOMWindowUtils = class;
  1936. IJSnsIPrintSettings = interface;
  1937. TJSnsIPrintSettings = class;
  1938. IJSWindow = interface;
  1939. TJSWindow = class;
  1940. IJSWindowSessionStorage = interface;
  1941. TJSWindowSessionStorage = class;
  1942. IJSWindowLocalStorage = interface;
  1943. TJSWindowLocalStorage = class;
  1944. IJSWindowOrWorkerGlobalScope = interface;
  1945. TJSWindowOrWorkerGlobalScope = class;
  1946. IJSWorker = interface;
  1947. TJSWorker = class;
  1948. IJSChromeWorker = interface;
  1949. TJSChromeWorker = class;
  1950. IJSWorkerDebuggerGlobalScope = interface;
  1951. TJSWorkerDebuggerGlobalScope = class;
  1952. IJSWorkerGlobalScope = interface;
  1953. TJSWorkerGlobalScope = class;
  1954. IJSWorkerLocation = interface;
  1955. TJSWorkerLocation = class;
  1956. IJSWorkerNavigator = interface;
  1957. TJSWorkerNavigator = class;
  1958. IJSWorkerTestUtils = interface;
  1959. TJSWorkerTestUtils = class;
  1960. IJSWorklet = interface;
  1961. TJSWorklet = class;
  1962. IJSWorkletGlobalScope = interface;
  1963. TJSWorkletGlobalScope = class;
  1964. IJSWritableStream = interface;
  1965. TJSWritableStream = class;
  1966. IJSWritableStreamDefaultController = interface;
  1967. TJSWritableStreamDefaultController = class;
  1968. IJSWritableStreamDefaultWriter = interface;
  1969. TJSWritableStreamDefaultWriter = class;
  1970. IJSXMLDocument = interface;
  1971. TJSXMLDocument = class;
  1972. IJSMozChannel = interface;
  1973. TJSMozChannel = class;
  1974. IJSXMLHttpRequest = interface;
  1975. TJSXMLHttpRequest = class;
  1976. IJSXMLHttpRequestEventTarget = interface;
  1977. TJSXMLHttpRequestEventTarget = class;
  1978. IJSXMLHttpRequestUpload = interface;
  1979. TJSXMLHttpRequestUpload = class;
  1980. IJSOutputStream = interface;
  1981. TJSOutputStream = class;
  1982. IJSXMLSerializer = interface;
  1983. TJSXMLSerializer = class;
  1984. IJSXPathEvaluator = interface;
  1985. TJSXPathEvaluator = class;
  1986. IJSXPathEvaluatorMixin = interface;
  1987. TJSXPathEvaluatorMixin = class;
  1988. IJSXPathExpression = interface;
  1989. TJSXPathExpression = class;
  1990. IJSXPathResult = interface;
  1991. TJSXPathResult = class;
  1992. IJSXRInputSourceEvent = interface;
  1993. TJSXRInputSourceEvent = class;
  1994. IJSXRInputSourcesChangeEvent = interface;
  1995. TJSXRInputSourcesChangeEvent = class;
  1996. IJSXRReferenceSpaceEvent = interface;
  1997. TJSXRReferenceSpaceEvent = class;
  1998. IJSXRSessionEvent = interface;
  1999. TJSXRSessionEvent = class;
  2000. IJSXSLTProcessor = interface;
  2001. TJSXSLTProcessor = class;
  2002. IJSAddonEventInit = interface;
  2003. TJSAddonEventInit = class;
  2004. IJSaddonInstallOptions = interface;
  2005. TJSaddonInstallOptions = class;
  2006. IJSAnalyserOptions = interface;
  2007. TJSAnalyserOptions = class;
  2008. IJSKeyframeAnimationOptions = interface;
  2009. TJSKeyframeAnimationOptions = class;
  2010. IJSGetAnimationsOptions = interface;
  2011. TJSGetAnimationsOptions = class;
  2012. IJSEffectTiming = interface;
  2013. TJSEffectTiming = class;
  2014. IJSOptionalEffectTiming = interface;
  2015. TJSOptionalEffectTiming = class;
  2016. IJSComputedEffectTiming = interface;
  2017. TJSComputedEffectTiming = class;
  2018. IJSAnimationEventInit = interface;
  2019. TJSAnimationEventInit = class;
  2020. IJSAnimationPlaybackEventInit = interface;
  2021. TJSAnimationPlaybackEventInit = class;
  2022. IJSAppInfo = interface;
  2023. TJSAppInfo = class;
  2024. IJSAppNotificationServiceOptions = interface;
  2025. TJSAppNotificationServiceOptions = class;
  2026. IJSScrollFrameDataEntry = interface;
  2027. TJSScrollFrameDataEntry = class;
  2028. IJSScrollFrameData = interface;
  2029. TJSScrollFrameData = class;
  2030. IJSAPZBucket = interface;
  2031. TJSAPZBucket = class;
  2032. IJSAPZHitResult = interface;
  2033. TJSAPZHitResult = class;
  2034. IJSAPZSampledResult = interface;
  2035. TJSAPZSampledResult = class;
  2036. IJSAdditionalDataEntry = interface;
  2037. TJSAdditionalDataEntry = class;
  2038. IJSAPZTestData = interface;
  2039. TJSAPZTestData = class;
  2040. IJSFrameUniformity = interface;
  2041. TJSFrameUniformity = class;
  2042. IJSFrameUniformityResults = interface;
  2043. TJSFrameUniformityResults = class;
  2044. IJSAudioBufferOptions = interface;
  2045. TJSAudioBufferOptions = class;
  2046. IJSAudioBufferSourceOptions = interface;
  2047. TJSAudioBufferSourceOptions = class;
  2048. IJSAudioContextOptions = interface;
  2049. TJSAudioContextOptions = class;
  2050. IJSAudioTimestamp = interface;
  2051. TJSAudioTimestamp = class;
  2052. IJSAudioDataInit = interface;
  2053. TJSAudioDataInit = class;
  2054. IJSAudioDataCopyToOptions = interface;
  2055. TJSAudioDataCopyToOptions = class;
  2056. IJSAudioDecoderInit = interface;
  2057. TJSAudioDecoderInit = class;
  2058. IJSAudioDecoderSupport = interface;
  2059. TJSAudioDecoderSupport = class;
  2060. IJSAudioDecoderConfig = interface;
  2061. TJSAudioDecoderConfig = class;
  2062. IJSAudioEncoderSupport = interface;
  2063. TJSAudioEncoderSupport = class;
  2064. IJSAudioEncoderConfig = interface;
  2065. TJSAudioEncoderConfig = class;
  2066. IJSOpusEncoderConfig = interface;
  2067. TJSOpusEncoderConfig = class;
  2068. IJSAudioEncoderInit = interface;
  2069. TJSAudioEncoderInit = class;
  2070. IJSEncodedAudioChunkMetadata = interface;
  2071. TJSEncodedAudioChunkMetadata = class;
  2072. IJSAudioNodeOptions = interface;
  2073. TJSAudioNodeOptions = class;
  2074. IJSAudioParamDescriptor = interface;
  2075. TJSAudioParamDescriptor = class;
  2076. IJSAudioWorkletNodeOptions = interface;
  2077. TJSAudioWorkletNodeOptions = class;
  2078. IJSAutocompleteInfo = interface;
  2079. TJSAutocompleteInfo = class;
  2080. IJSBasePropertyIndexedKeyframe = interface;
  2081. TJSBasePropertyIndexedKeyframe = class;
  2082. IJSBaseKeyframe = interface;
  2083. TJSBaseKeyframe = class;
  2084. IJSBaseComputedKeyframe = interface;
  2085. TJSBaseComputedKeyframe = class;
  2086. IJSBasicCardRequest = interface;
  2087. TJSBasicCardRequest = class;
  2088. IJSBasicCardResponse = interface;
  2089. TJSBasicCardResponse = class;
  2090. IJSBasicCardChangeDetails = interface;
  2091. TJSBasicCardChangeDetails = class;
  2092. IJSBasicCardErrors = interface;
  2093. TJSBasicCardErrors = class;
  2094. IJSBiquadFilterOptions = interface;
  2095. TJSBiquadFilterOptions = class;
  2096. IJSBlobPropertyBag = interface;
  2097. TJSBlobPropertyBag = class;
  2098. IJSBlobEventInit = interface;
  2099. TJSBlobEventInit = class;
  2100. IJSOpenWindowEventDetail = interface;
  2101. TJSOpenWindowEventDetail = class;
  2102. IJSDOMWindowResizeEventDetail = interface;
  2103. TJSDOMWindowResizeEventDetail = class;
  2104. IJSCacheQueryOptions = interface;
  2105. TJSCacheQueryOptions = class;
  2106. IJSCacheBatchOperation = interface;
  2107. TJSCacheBatchOperation = class;
  2108. IJSMultiCacheQueryOptions = interface;
  2109. TJSMultiCacheQueryOptions = class;
  2110. IJSCancelContentJSOptions = interface;
  2111. TJSCancelContentJSOptions = class;
  2112. IJSCanvasRenderingContext2DSettings = interface;
  2113. TJSCanvasRenderingContext2DSettings = class;
  2114. IJSHitRegionOptions = interface;
  2115. TJSHitRegionOptions = class;
  2116. IJSCaretStateChangedEventInit = interface;
  2117. TJSCaretStateChangedEventInit = class;
  2118. IJSChannelMergerOptions = interface;
  2119. TJSChannelMergerOptions = class;
  2120. IJSChannelSplitterOptions = interface;
  2121. TJSChannelSplitterOptions = class;
  2122. IJSCheckerboardReport = interface;
  2123. TJSCheckerboardReport = class;
  2124. IJSClientQueryOptions = interface;
  2125. TJSClientQueryOptions = class;
  2126. IJSClipboardItemOptions = interface;
  2127. TJSClipboardItemOptions = class;
  2128. IJSClipboardEventInit = interface;
  2129. TJSClipboardEventInit = class;
  2130. IJSCloseEventInit = interface;
  2131. TJSCloseEventInit = class;
  2132. IJSCompositionEventInit = interface;
  2133. TJSCompositionEventInit = class;
  2134. IJSConstantSourceOptions = interface;
  2135. TJSConstantSourceOptions = class;
  2136. IJSContentVisibilityAutoStateChangeEventInit = interface;
  2137. TJSContentVisibilityAutoStateChangeEventInit = class;
  2138. IJSConvolverOptions = interface;
  2139. TJSConvolverOptions = class;
  2140. IJSCredentialRequestOptions = interface;
  2141. TJSCredentialRequestOptions = class;
  2142. IJSCredentialCreationOptions = interface;
  2143. TJSCredentialCreationOptions = class;
  2144. IJSCSP = interface;
  2145. TJSCSP = class;
  2146. IJSCSPPolicies = interface;
  2147. TJSCSPPolicies = class;
  2148. IJSCSPReportProperties = interface;
  2149. TJSCSPReportProperties = class;
  2150. IJSCSPReport = interface;
  2151. TJSCSPReport = class;
  2152. IJSPropertyDefinition = interface;
  2153. TJSPropertyDefinition = class;
  2154. IJSSelectorWarning = interface;
  2155. TJSSelectorWarning = class;
  2156. IJSCSSStyleSheetInit = interface;
  2157. TJSCSSStyleSheetInit = class;
  2158. IJSElementDefinitionOptions = interface;
  2159. TJSElementDefinitionOptions = class;
  2160. IJSLifecycleCallbacks = interface;
  2161. TJSLifecycleCallbacks = class;
  2162. IJSFormAssociatedLifecycleCallbacks = interface;
  2163. TJSFormAssociatedLifecycleCallbacks = class;
  2164. IJSCustomEventInit = interface;
  2165. TJSCustomEventInit = class;
  2166. IJSDecoderDoctorNotification = interface;
  2167. TJSDecoderDoctorNotification = class;
  2168. IJSDelayOptions = interface;
  2169. TJSDelayOptions = class;
  2170. IJSDeviceLightEventInit = interface;
  2171. TJSDeviceLightEventInit = class;
  2172. IJSDeviceAccelerationInit = interface;
  2173. TJSDeviceAccelerationInit = class;
  2174. IJSDeviceRotationRateInit = interface;
  2175. TJSDeviceRotationRateInit = class;
  2176. IJSDeviceMotionEventInit = interface;
  2177. TJSDeviceMotionEventInit = class;
  2178. IJSDeviceOrientationEventInit = interface;
  2179. TJSDeviceOrientationEventInit = class;
  2180. IJSElementCreationOptions = interface;
  2181. TJSElementCreationOptions = class;
  2182. IJSBlockParsingOptions = interface;
  2183. TJSBlockParsingOptions = class;
  2184. IJSWireframeTaggedRect = interface;
  2185. TJSWireframeTaggedRect = class;
  2186. IJSWireframe = interface;
  2187. TJSWireframe = class;
  2188. IJSDocumentTimelineOptions = interface;
  2189. TJSDocumentTimelineOptions = class;
  2190. IJSDOMMatrix2DInit = interface;
  2191. TJSDOMMatrix2DInit = class;
  2192. IJSDOMMatrixInit = interface;
  2193. TJSDOMMatrixInit = class;
  2194. IJSDOMPointInit = interface;
  2195. TJSDOMPointInit = class;
  2196. IJSDOMQuadInit = interface;
  2197. TJSDOMQuadInit = class;
  2198. IJSDOMRectInit = interface;
  2199. TJSDOMRectInit = class;
  2200. IJSDragEventInit = interface;
  2201. TJSDragEventInit = class;
  2202. IJSDynamicsCompressorOptions = interface;
  2203. TJSDynamicsCompressorOptions = class;
  2204. IJSFocusOptions = interface;
  2205. TJSFocusOptions = class;
  2206. IJSScrollIntoViewOptions = interface;
  2207. TJSScrollIntoViewOptions = class;
  2208. IJSCheckVisibilityOptions = interface;
  2209. TJSCheckVisibilityOptions = class;
  2210. IJSShadowRootInit = interface;
  2211. TJSShadowRootInit = class;
  2212. IJSSetHTMLOptions = interface;
  2213. TJSSetHTMLOptions = class;
  2214. IJSValidityStateFlags = interface;
  2215. TJSValidityStateFlags = class;
  2216. IJSEncodedAudioChunkInit = interface;
  2217. TJSEncodedAudioChunkInit = class;
  2218. IJSEncodedVideoChunkInit = interface;
  2219. TJSEncodedVideoChunkInit = class;
  2220. IJSErrorEventInit = interface;
  2221. TJSErrorEventInit = class;
  2222. IJSEventInit = interface;
  2223. TJSEventInit = class;
  2224. IJSEventSourceInit = interface;
  2225. TJSEventSourceInit = class;
  2226. IJSEventListenerOptions = interface;
  2227. TJSEventListenerOptions = class;
  2228. IJSAddEventListenerOptions = interface;
  2229. TJSAddEventListenerOptions = class;
  2230. IJSExtendableEventInit = interface;
  2231. TJSExtendableEventInit = class;
  2232. IJSExtendableMessageEventInit = interface;
  2233. TJSExtendableMessageEventInit = class;
  2234. IJSExtensionPortDescriptor = interface;
  2235. TJSExtensionPortDescriptor = class;
  2236. IJSFailedCertSecurityInfo = interface;
  2237. TJSFailedCertSecurityInfo = class;
  2238. IJSFakePluginTagInit = interface;
  2239. TJSFakePluginTagInit = class;
  2240. IJSFakePluginMimeEntry = interface;
  2241. TJSFakePluginMimeEntry = class;
  2242. IJSFetchReadableStreamReadDataDone = interface;
  2243. TJSFetchReadableStreamReadDataDone = class;
  2244. IJSFetchReadableStreamReadDataArray = interface;
  2245. TJSFetchReadableStreamReadDataArray = class;
  2246. IJSFetchEventInit = interface;
  2247. TJSFetchEventInit = class;
  2248. IJSFilePropertyBag = interface;
  2249. TJSFilePropertyBag = class;
  2250. IJSChromeFilePropertyBag = interface;
  2251. TJSChromeFilePropertyBag = class;
  2252. IJSFileSystemFlags = interface;
  2253. TJSFileSystemFlags = class;
  2254. IJSFileSystemGetFileOptions = interface;
  2255. TJSFileSystemGetFileOptions = class;
  2256. IJSFileSystemGetDirectoryOptions = interface;
  2257. TJSFileSystemGetDirectoryOptions = class;
  2258. IJSFileSystemRemoveOptions = interface;
  2259. TJSFileSystemRemoveOptions = class;
  2260. IJSFileSystemCreateWritableOptions = interface;
  2261. TJSFileSystemCreateWritableOptions = class;
  2262. IJSFileSystemReadWriteOptions = interface;
  2263. TJSFileSystemReadWriteOptions = class;
  2264. IJSWriteParams = interface;
  2265. TJSWriteParams = class;
  2266. IJSFocusEventInit = interface;
  2267. TJSFocusEventInit = class;
  2268. IJSFontFaceDescriptors = interface;
  2269. TJSFontFaceDescriptors = class;
  2270. IJSFontFaceSetIteratorResult = interface;
  2271. TJSFontFaceSetIteratorResult = class;
  2272. IJSFontFaceSetLoadEventInit = interface;
  2273. TJSFontFaceSetLoadEventInit = class;
  2274. IJSFormDataEventInit = interface;
  2275. TJSFormDataEventInit = class;
  2276. IJSFrameCrashedEventInit = interface;
  2277. TJSFrameCrashedEventInit = class;
  2278. IJSGainOptions = interface;
  2279. TJSGainOptions = class;
  2280. IJSGamepadAxisMoveEventInit = interface;
  2281. TJSGamepadAxisMoveEventInit = class;
  2282. IJSGamepadButtonEventInit = interface;
  2283. TJSGamepadButtonEventInit = class;
  2284. IJSGamepadEventInit = interface;
  2285. TJSGamepadEventInit = class;
  2286. IJSGamepadLightColor = interface;
  2287. TJSGamepadLightColor = class;
  2288. IJSPositionOptions = interface;
  2289. TJSPositionOptions = class;
  2290. IJSBoxQuadOptions = interface;
  2291. TJSBoxQuadOptions = class;
  2292. IJSConvertCoordinateOptions = interface;
  2293. TJSConvertCoordinateOptions = class;
  2294. IJSGleanDistributionData = interface;
  2295. TJSGleanDistributionData = class;
  2296. IJSGleanEventRecord = interface;
  2297. TJSGleanEventRecord = class;
  2298. IJSGleanRateData = interface;
  2299. TJSGleanRateData = class;
  2300. IJSGPUUncapturedErrorEventInit = interface;
  2301. TJSGPUUncapturedErrorEventInit = class;
  2302. IJSHashChangeEventInit = interface;
  2303. TJSHashChangeEventInit = class;
  2304. IJSDateTimeValue = interface;
  2305. TJSDateTimeValue = class;
  2306. IJSAssignedNodesOptions = interface;
  2307. TJSAssignedNodesOptions = class;
  2308. IJSIDBTransactionOptions = interface;
  2309. TJSIDBTransactionOptions = class;
  2310. IJSIDBOpenDBOptions = interface;
  2311. TJSIDBOpenDBOptions = class;
  2312. IJSIDBDatabaseInfo = interface;
  2313. TJSIDBDatabaseInfo = class;
  2314. IJSIDBIndexParameters = interface;
  2315. TJSIDBIndexParameters = class;
  2316. IJSIDBObjectStoreParameters = interface;
  2317. TJSIDBObjectStoreParameters = class;
  2318. IJSIDBVersionChangeEventInit = interface;
  2319. TJSIDBVersionChangeEventInit = class;
  2320. IJSIdentityCredentialRequestOptions = interface;
  2321. TJSIdentityCredentialRequestOptions = class;
  2322. IJSIdentityProviderConfig = interface;
  2323. TJSIdentityProviderConfig = class;
  2324. IJSIdentityProviderWellKnown = interface;
  2325. TJSIdentityProviderWellKnown = class;
  2326. IJSIdentityProviderIcon = interface;
  2327. TJSIdentityProviderIcon = class;
  2328. IJSIdentityProviderBranding = interface;
  2329. TJSIdentityProviderBranding = class;
  2330. IJSIdentityProviderAPIConfig = interface;
  2331. TJSIdentityProviderAPIConfig = class;
  2332. IJSIdentityProviderAccount = interface;
  2333. TJSIdentityProviderAccount = class;
  2334. IJSIdentityProviderAccountList = interface;
  2335. TJSIdentityProviderAccountList = class;
  2336. IJSIdentityProviderClientMetadata = interface;
  2337. TJSIdentityProviderClientMetadata = class;
  2338. IJSIdentityProviderToken = interface;
  2339. TJSIdentityProviderToken = class;
  2340. IJSIdentityCredentialLogoutRPsRequest = interface;
  2341. TJSIdentityCredentialLogoutRPsRequest = class;
  2342. IJSIIRFilterOptions = interface;
  2343. TJSIIRFilterOptions = class;
  2344. IJSChannelPixelLayout = interface;
  2345. TJSChannelPixelLayout = class;
  2346. IJSImageBitmapOptions = interface;
  2347. TJSImageBitmapOptions = class;
  2348. IJSImageCaptureErrorEventInit = interface;
  2349. TJSImageCaptureErrorEventInit = class;
  2350. IJSInputEventInit = interface;
  2351. TJSInputEventInit = class;
  2352. IJSInstallTriggerData = interface;
  2353. TJSInstallTriggerData = class;
  2354. IJSIntersectionObserverEntryInit = interface;
  2355. TJSIntersectionObserverEntryInit = class;
  2356. IJSIntersectionObserverInit = interface;
  2357. TJSIntersectionObserverInit = class;
  2358. IJSDisplayNameOptions = interface;
  2359. TJSDisplayNameOptions = class;
  2360. IJSDisplayNameResult = interface;
  2361. TJSDisplayNameResult = class;
  2362. IJSLocaleInfo = interface;
  2363. TJSLocaleInfo = class;
  2364. IJSInvokeEventInit = interface;
  2365. TJSInvokeEventInit = class;
  2366. IJSIterableKeyOrValueResult = interface;
  2367. TJSIterableKeyOrValueResult = class;
  2368. IJSIterableKeyAndValueResult = interface;
  2369. TJSIterableKeyAndValueResult = class;
  2370. IJSKeyAlgorithm = interface;
  2371. TJSKeyAlgorithm = class;
  2372. IJSAesKeyAlgorithm = interface;
  2373. TJSAesKeyAlgorithm = class;
  2374. IJSEcKeyAlgorithm = interface;
  2375. TJSEcKeyAlgorithm = class;
  2376. IJSHmacKeyAlgorithm = interface;
  2377. TJSHmacKeyAlgorithm = class;
  2378. IJSRsaHashedKeyAlgorithm = interface;
  2379. TJSRsaHashedKeyAlgorithm = class;
  2380. IJSDhKeyAlgorithm = interface;
  2381. TJSDhKeyAlgorithm = class;
  2382. IJSKeyboardEventInit = interface;
  2383. TJSKeyboardEventInit = class;
  2384. IJSKeyframeEffectOptions = interface;
  2385. TJSKeyframeEffectOptions = class;
  2386. IJSAnimationPropertyValueDetails = interface;
  2387. TJSAnimationPropertyValueDetails = class;
  2388. IJSAnimationPropertyDetails = interface;
  2389. TJSAnimationPropertyDetails = class;
  2390. IJSKeyIdsInitData = interface;
  2391. TJSKeyIdsInitData = class;
  2392. IJSL10nIdArgs = interface;
  2393. TJSL10nIdArgs = class;
  2394. IJSAttributeNameValue = interface;
  2395. TJSAttributeNameValue = class;
  2396. IJSL10nMessage = interface;
  2397. TJSL10nMessage = class;
  2398. IJSL10nArgsHelperDict = interface;
  2399. TJSL10nArgsHelperDict = class;
  2400. IJSLockOptions = interface;
  2401. TJSLockOptions = class;
  2402. IJSLockManagerSnapshot = interface;
  2403. TJSLockManagerSnapshot = class;
  2404. IJSLockInfo = interface;
  2405. TJSLockInfo = class;
  2406. IJSMediaConfiguration = interface;
  2407. TJSMediaConfiguration = class;
  2408. IJSMediaDecodingConfiguration = interface;
  2409. TJSMediaDecodingConfiguration = class;
  2410. IJSMediaEncodingConfiguration = interface;
  2411. TJSMediaEncodingConfiguration = class;
  2412. IJSVideoConfiguration = interface;
  2413. TJSVideoConfiguration = class;
  2414. IJSAudioConfiguration = interface;
  2415. TJSAudioConfiguration = class;
  2416. IJSMediaCacheStreamDebugInfo = interface;
  2417. TJSMediaCacheStreamDebugInfo = class;
  2418. IJSMediaResourceDebugInfo = interface;
  2419. TJSMediaResourceDebugInfo = class;
  2420. IJSMediaDecoderDebugInfo = interface;
  2421. TJSMediaDecoderDebugInfo = class;
  2422. IJSAudioSinkDebugInfo = interface;
  2423. TJSAudioSinkDebugInfo = class;
  2424. IJSAudioSinkWrapperDebugInfo = interface;
  2425. TJSAudioSinkWrapperDebugInfo = class;
  2426. IJSVideoSinkDebugInfo = interface;
  2427. TJSVideoSinkDebugInfo = class;
  2428. IJSDecodedStreamDataDebugInfo = interface;
  2429. TJSDecodedStreamDataDebugInfo = class;
  2430. IJSDecodedStreamDebugInfo = interface;
  2431. TJSDecodedStreamDebugInfo = class;
  2432. IJSMediaSinkDebugInfo = interface;
  2433. TJSMediaSinkDebugInfo = class;
  2434. IJSMediaDecoderStateMachineDecodingStateDebugInfo = interface;
  2435. TJSMediaDecoderStateMachineDecodingStateDebugInfo = class;
  2436. IJSMediaDecoderStateMachineDebugInfo = interface;
  2437. TJSMediaDecoderStateMachineDebugInfo = class;
  2438. IJSMediaStateDebugInfo = interface;
  2439. TJSMediaStateDebugInfo = class;
  2440. IJSMediaFrameStats = interface;
  2441. TJSMediaFrameStats = class;
  2442. IJSMediaFormatReaderDebugInfo = interface;
  2443. TJSMediaFormatReaderDebugInfo = class;
  2444. IJSBufferRange = interface;
  2445. TJSBufferRange = class;
  2446. IJSTrackBuffersManagerDebugInfo = interface;
  2447. TJSTrackBuffersManagerDebugInfo = class;
  2448. IJSMediaSourceDemuxerDebugInfo = interface;
  2449. TJSMediaSourceDemuxerDebugInfo = class;
  2450. IJSMediaSourceDecoderDebugInfo = interface;
  2451. TJSMediaSourceDecoderDebugInfo = class;
  2452. IJSEMEDebugInfo = interface;
  2453. TJSEMEDebugInfo = class;
  2454. IJSHTMLMediaElementDebugInfo = interface;
  2455. TJSHTMLMediaElementDebugInfo = class;
  2456. IJSAudioOutputOptions = interface;
  2457. TJSAudioOutputOptions = class;
  2458. IJSMediaElementAudioSourceOptions = interface;
  2459. TJSMediaElementAudioSourceOptions = class;
  2460. IJSMediaKeyNeededEventInit = interface;
  2461. TJSMediaKeyNeededEventInit = class;
  2462. IJSMediaKeyMessageEventInit = interface;
  2463. TJSMediaKeyMessageEventInit = class;
  2464. IJSMediaKeysPolicy = interface;
  2465. TJSMediaKeysPolicy = class;
  2466. IJSRequestMediaKeySystemAccessNotification = interface;
  2467. TJSRequestMediaKeySystemAccessNotification = class;
  2468. IJSMediaKeySystemMediaCapability = interface;
  2469. TJSMediaKeySystemMediaCapability = class;
  2470. IJSMediaKeySystemConfiguration = interface;
  2471. TJSMediaKeySystemConfiguration = class;
  2472. IJSMediaQueryListEventInit = interface;
  2473. TJSMediaQueryListEventInit = class;
  2474. IJSMediaRecorderOptions = interface;
  2475. TJSMediaRecorderOptions = class;
  2476. IJSMediaRecorderErrorEventInit = interface;
  2477. TJSMediaRecorderErrorEventInit = class;
  2478. IJSMediaMetadataInit = interface;
  2479. TJSMediaMetadataInit = class;
  2480. IJSMediaImage = interface;
  2481. TJSMediaImage = class;
  2482. IJSMediaSessionActionDetails = interface;
  2483. TJSMediaSessionActionDetails = class;
  2484. IJSMediaPositionState = interface;
  2485. TJSMediaPositionState = class;
  2486. IJSMediaStreamConstraints = interface;
  2487. TJSMediaStreamConstraints = class;
  2488. IJSDisplayMediaStreamConstraints = interface;
  2489. TJSDisplayMediaStreamConstraints = class;
  2490. IJSMediaStreamAudioSourceOptions = interface;
  2491. TJSMediaStreamAudioSourceOptions = class;
  2492. IJSMediaStreamEventInit = interface;
  2493. TJSMediaStreamEventInit = class;
  2494. IJSConstrainLongRange = interface;
  2495. TJSConstrainLongRange = class;
  2496. IJSConstrainDoubleRange = interface;
  2497. TJSConstrainDoubleRange = class;
  2498. IJSConstrainBooleanParameters = interface;
  2499. TJSConstrainBooleanParameters = class;
  2500. IJSConstrainDOMStringParameters = interface;
  2501. TJSConstrainDOMStringParameters = class;
  2502. IJSMediaTrackConstraintSet = interface;
  2503. TJSMediaTrackConstraintSet = class;
  2504. IJSMediaTrackConstraints = interface;
  2505. TJSMediaTrackConstraints = class;
  2506. IJSMediaStreamTrackAudioSourceOptions = interface;
  2507. TJSMediaStreamTrackAudioSourceOptions = class;
  2508. IJSMediaStreamTrackEventInit = interface;
  2509. TJSMediaStreamTrackEventInit = class;
  2510. IJSMediaTrackSettings = interface;
  2511. TJSMediaTrackSettings = class;
  2512. IJSMediaTrackSupportedConstraints = interface;
  2513. TJSMediaTrackSupportedConstraints = class;
  2514. IJSMerchantValidationEventInit = interface;
  2515. TJSMerchantValidationEventInit = class;
  2516. IJSMessageEventInit = interface;
  2517. TJSMessageEventInit = class;
  2518. IJSStructuredSerializeOptions = interface;
  2519. TJSStructuredSerializeOptions = class;
  2520. IJSMIDIConnectionEventInit = interface;
  2521. TJSMIDIConnectionEventInit = class;
  2522. IJSMIDIMessageEventInit = interface;
  2523. TJSMIDIMessageEventInit = class;
  2524. IJSMIDIOptions = interface;
  2525. TJSMIDIOptions = class;
  2526. IJSMouseEventInit = interface;
  2527. TJSMouseEventInit = class;
  2528. IJSMozApplicationEventInit = interface;
  2529. TJSMozApplicationEventInit = class;
  2530. IJSRemotenessOptions = interface;
  2531. TJSRemotenessOptions = class;
  2532. IJSMutationObserverInit = interface;
  2533. TJSMutationObserverInit = class;
  2534. IJSMutationObservingInfo = interface;
  2535. TJSMutationObservingInfo = class;
  2536. IJSNavigationPreloadState = interface;
  2537. TJSNavigationPreloadState = class;
  2538. IJSShareData = interface;
  2539. TJSShareData = class;
  2540. IJSNetErrorInfo = interface;
  2541. TJSNetErrorInfo = class;
  2542. IJSNetworkCommandOptions = interface;
  2543. TJSNetworkCommandOptions = class;
  2544. IJSNetworkResultOptions = interface;
  2545. TJSNetworkResultOptions = class;
  2546. IJSGetRootNodeOptions = interface;
  2547. TJSGetRootNodeOptions = class;
  2548. IJSNotificationOptions = interface;
  2549. TJSNotificationOptions = class;
  2550. IJSGetNotificationOptions = interface;
  2551. TJSGetNotificationOptions = class;
  2552. IJSNotificationBehavior = interface;
  2553. TJSNotificationBehavior = class;
  2554. IJSNotificationEventInit = interface;
  2555. TJSNotificationEventInit = class;
  2556. IJSOfflineAudioCompletionEventInit = interface;
  2557. TJSOfflineAudioCompletionEventInit = class;
  2558. IJSOfflineAudioContextOptions = interface;
  2559. TJSOfflineAudioContextOptions = class;
  2560. IJSImageEncodeOptions = interface;
  2561. TJSImageEncodeOptions = class;
  2562. IJSOscillatorOptions = interface;
  2563. TJSOscillatorOptions = class;
  2564. IJSPageTransitionEventInit = interface;
  2565. TJSPageTransitionEventInit = class;
  2566. IJSPannerOptions = interface;
  2567. TJSPannerOptions = class;
  2568. IJSPaymentMethodChangeEventInit = interface;
  2569. TJSPaymentMethodChangeEventInit = class;
  2570. IJSPaymentMethodData = interface;
  2571. TJSPaymentMethodData = class;
  2572. IJSPaymentCurrencyAmount = interface;
  2573. TJSPaymentCurrencyAmount = class;
  2574. IJSPaymentItem = interface;
  2575. TJSPaymentItem = class;
  2576. IJSPaymentShippingOption = interface;
  2577. TJSPaymentShippingOption = class;
  2578. IJSPaymentDetailsModifier = interface;
  2579. TJSPaymentDetailsModifier = class;
  2580. IJSPaymentDetailsBase = interface;
  2581. TJSPaymentDetailsBase = class;
  2582. IJSPaymentDetailsInit = interface;
  2583. TJSPaymentDetailsInit = class;
  2584. IJSAddressErrors = interface;
  2585. TJSAddressErrors = class;
  2586. IJSPaymentValidationErrors = interface;
  2587. TJSPaymentValidationErrors = class;
  2588. IJSPayerErrors = interface;
  2589. TJSPayerErrors = class;
  2590. IJSPaymentDetailsUpdate = interface;
  2591. TJSPaymentDetailsUpdate = class;
  2592. IJSPaymentOptions = interface;
  2593. TJSPaymentOptions = class;
  2594. IJSPaymentRequestUpdateEventInit = interface;
  2595. TJSPaymentRequestUpdateEventInit = class;
  2596. IJSPCErrorData = interface;
  2597. TJSPCErrorData = class;
  2598. IJSPerformanceMarkOptions = interface;
  2599. TJSPerformanceMarkOptions = class;
  2600. IJSPerformanceMeasureOptions = interface;
  2601. TJSPerformanceMeasureOptions = class;
  2602. IJSPerformanceEntryEventInit = interface;
  2603. TJSPerformanceEntryEventInit = class;
  2604. IJSPerformanceObserverInit = interface;
  2605. TJSPerformanceObserverInit = class;
  2606. IJSPerformanceEntryFilterOptions = interface;
  2607. TJSPerformanceEntryFilterOptions = class;
  2608. IJSPeriodicWaveConstraints = interface;
  2609. TJSPeriodicWaveConstraints = class;
  2610. IJSPeriodicWaveOptions = interface;
  2611. TJSPeriodicWaveOptions = class;
  2612. IJSPermissionDescriptor = interface;
  2613. TJSPermissionDescriptor = class;
  2614. IJSMidiPermissionDescriptor = interface;
  2615. TJSMidiPermissionDescriptor = class;
  2616. IJSPointerEventInit = interface;
  2617. TJSPointerEventInit = class;
  2618. IJSPopStateEventInit = interface;
  2619. TJSPopStateEventInit = class;
  2620. IJSPopupBlockedEventInit = interface;
  2621. TJSPopupBlockedEventInit = class;
  2622. IJSPositionStateEventInit = interface;
  2623. TJSPositionStateEventInit = class;
  2624. IJSProgressEventInit = interface;
  2625. TJSProgressEventInit = class;
  2626. IJSPromiseRejectionEventInit = interface;
  2627. TJSPromiseRejectionEventInit = class;
  2628. IJSPushEventInit = interface;
  2629. TJSPushEventInit = class;
  2630. IJSPushSubscriptionOptionsInit = interface;
  2631. TJSPushSubscriptionOptionsInit = class;
  2632. IJSPushSubscriptionKeys = interface;
  2633. TJSPushSubscriptionKeys = class;
  2634. IJSPushSubscriptionJSON = interface;
  2635. TJSPushSubscriptionJSON = class;
  2636. IJSPushSubscriptionInit = interface;
  2637. TJSPushSubscriptionInit = class;
  2638. IJSQueuingStrategy = interface;
  2639. TJSQueuingStrategy = class;
  2640. IJSQueuingStrategyInit = interface;
  2641. TJSQueuingStrategyInit = class;
  2642. IJSClientRectsAndTexts = interface;
  2643. TJSClientRectsAndTexts = class;
  2644. IJSReadableStreamGetReaderOptions = interface;
  2645. TJSReadableStreamGetReaderOptions = class;
  2646. IJSReadableStreamIteratorOptions = interface;
  2647. TJSReadableStreamIteratorOptions = class;
  2648. IJSReadableWritablePair = interface;
  2649. TJSReadableWritablePair = class;
  2650. IJSStreamPipeOptions = interface;
  2651. TJSStreamPipeOptions = class;
  2652. IJSReadableStreamReadResult = interface;
  2653. TJSReadableStreamReadResult = class;
  2654. IJSReportingObserverOptions = interface;
  2655. TJSReportingObserverOptions = class;
  2656. IJSReportingHeaderValue = interface;
  2657. TJSReportingHeaderValue = class;
  2658. IJSReportingItem = interface;
  2659. TJSReportingItem = class;
  2660. IJSReportingEndpoint = interface;
  2661. TJSReportingEndpoint = class;
  2662. IJSRequestInit = interface;
  2663. TJSRequestInit = class;
  2664. IJSResizeObserverOptions = interface;
  2665. TJSResizeObserverOptions = class;
  2666. IJSResponseInit = interface;
  2667. TJSResponseInit = class;
  2668. IJSRTCCertificateExpiration = interface;
  2669. TJSRTCCertificateExpiration = class;
  2670. IJSRTCIceServer = interface;
  2671. TJSRTCIceServer = class;
  2672. IJSRTCConfiguration = interface;
  2673. TJSRTCConfiguration = class;
  2674. IJSRTCDataChannelEventInit = interface;
  2675. TJSRTCDataChannelEventInit = class;
  2676. IJSRTCDTMFToneChangeEventInit = interface;
  2677. TJSRTCDTMFToneChangeEventInit = class;
  2678. IJSRTCEncodedAudioFrameMetadata = interface;
  2679. TJSRTCEncodedAudioFrameMetadata = class;
  2680. IJSRTCEncodedVideoFrameMetadata = interface;
  2681. TJSRTCEncodedVideoFrameMetadata = class;
  2682. IJSRTCIceCandidateInit = interface;
  2683. TJSRTCIceCandidateInit = class;
  2684. IJSRTCIdentityAssertion = interface;
  2685. TJSRTCIdentityAssertion = class;
  2686. IJSRTCIdentityProvider = interface;
  2687. TJSRTCIdentityProvider = class;
  2688. IJSRTCIdentityAssertionResult = interface;
  2689. TJSRTCIdentityAssertionResult = class;
  2690. IJSRTCIdentityProviderDetails = interface;
  2691. TJSRTCIdentityProviderDetails = class;
  2692. IJSRTCIdentityValidationResult = interface;
  2693. TJSRTCIdentityValidationResult = class;
  2694. IJSRTCIdentityProviderOptions = interface;
  2695. TJSRTCIdentityProviderOptions = class;
  2696. IJSRTCDataChannelInit = interface;
  2697. TJSRTCDataChannelInit = class;
  2698. IJSRTCOfferAnswerOptions = interface;
  2699. TJSRTCOfferAnswerOptions = class;
  2700. IJSRTCAnswerOptions = interface;
  2701. TJSRTCAnswerOptions = class;
  2702. IJSRTCOfferOptions = interface;
  2703. TJSRTCOfferOptions = class;
  2704. IJSRTCPeerConnectionIceEventInit = interface;
  2705. TJSRTCPeerConnectionIceEventInit = class;
  2706. IJSRTCRtpCapabilities = interface;
  2707. TJSRTCRtpCapabilities = class;
  2708. IJSRTCRtpCodecCapability = interface;
  2709. TJSRTCRtpCodecCapability = class;
  2710. IJSRTCRtpCodec = interface;
  2711. TJSRTCRtpCodec = class;
  2712. IJSRTCRtpHeaderExtensionCapability = interface;
  2713. TJSRTCRtpHeaderExtensionCapability = class;
  2714. IJSRTCRtpEncodingParameters = interface;
  2715. TJSRTCRtpEncodingParameters = class;
  2716. IJSRTCRtpHeaderExtensionParameters = interface;
  2717. TJSRTCRtpHeaderExtensionParameters = class;
  2718. IJSRTCRtcpParameters = interface;
  2719. TJSRTCRtcpParameters = class;
  2720. IJSRTCRtpCodecParameters = interface;
  2721. TJSRTCRtpCodecParameters = class;
  2722. IJSRTCRtpParameters = interface;
  2723. TJSRTCRtpParameters = class;
  2724. IJSRTCRtpSendParameters = interface;
  2725. TJSRTCRtpSendParameters = class;
  2726. IJSRTCRtpContributingSource = interface;
  2727. TJSRTCRtpContributingSource = class;
  2728. IJSRTCRtpSynchronizationSource = interface;
  2729. TJSRTCRtpSynchronizationSource = class;
  2730. IJSRTCRtpSourceEntry = interface;
  2731. TJSRTCRtpSourceEntry = class;
  2732. IJSRTCRtpTransceiverInit = interface;
  2733. TJSRTCRtpTransceiverInit = class;
  2734. IJSRTCSessionDescriptionInit = interface;
  2735. TJSRTCSessionDescriptionInit = class;
  2736. IJSRTCLocalSessionDescriptionInit = interface;
  2737. TJSRTCLocalSessionDescriptionInit = class;
  2738. IJSRTCStats = interface;
  2739. TJSRTCStats = class;
  2740. IJSRTCRtpStreamStats = interface;
  2741. TJSRTCRtpStreamStats = class;
  2742. IJSRTCCodecStats = interface;
  2743. TJSRTCCodecStats = class;
  2744. IJSRTCReceivedRtpStreamStats = interface;
  2745. TJSRTCReceivedRtpStreamStats = class;
  2746. IJSRTCInboundRtpStreamStats = interface;
  2747. TJSRTCInboundRtpStreamStats = class;
  2748. IJSRTCRemoteInboundRtpStreamStats = interface;
  2749. TJSRTCRemoteInboundRtpStreamStats = class;
  2750. IJSRTCSentRtpStreamStats = interface;
  2751. TJSRTCSentRtpStreamStats = class;
  2752. IJSRTCOutboundRtpStreamStats = interface;
  2753. TJSRTCOutboundRtpStreamStats = class;
  2754. IJSRTCRemoteOutboundRtpStreamStats = interface;
  2755. TJSRTCRemoteOutboundRtpStreamStats = class;
  2756. IJSRTCMediaSourceStats = interface;
  2757. TJSRTCMediaSourceStats = class;
  2758. IJSRTCVideoSourceStats = interface;
  2759. TJSRTCVideoSourceStats = class;
  2760. IJSRTCPeerConnectionStats = interface;
  2761. TJSRTCPeerConnectionStats = class;
  2762. IJSRTCRTPContributingSourceStats = interface;
  2763. TJSRTCRTPContributingSourceStats = class;
  2764. IJSRTCDataChannelStats = interface;
  2765. TJSRTCDataChannelStats = class;
  2766. IJSRTCIceCandidatePairStats = interface;
  2767. TJSRTCIceCandidatePairStats = class;
  2768. IJSRTCIceCandidateStats = interface;
  2769. TJSRTCIceCandidateStats = class;
  2770. IJSRTCVideoFrameHistoryEntryInternal = interface;
  2771. TJSRTCVideoFrameHistoryEntryInternal = class;
  2772. IJSRTCVideoFrameHistoryInternal = interface;
  2773. TJSRTCVideoFrameHistoryInternal = class;
  2774. IJSRTCBandwidthEstimationInternal = interface;
  2775. TJSRTCBandwidthEstimationInternal = class;
  2776. IJSRTCSdpParsingErrorInternal = interface;
  2777. TJSRTCSdpParsingErrorInternal = class;
  2778. IJSRTCSdpHistoryEntryInternal = interface;
  2779. TJSRTCSdpHistoryEntryInternal = class;
  2780. IJSRTCStatsCollection = interface;
  2781. TJSRTCStatsCollection = class;
  2782. IJSRTCIceServerInternal = interface;
  2783. TJSRTCIceServerInternal = class;
  2784. IJSRTCConfigurationInternal = interface;
  2785. TJSRTCConfigurationInternal = class;
  2786. IJSRTCSdpHistoryInternal = interface;
  2787. TJSRTCSdpHistoryInternal = class;
  2788. IJSRTCStatsReportInternal = interface;
  2789. TJSRTCStatsReportInternal = class;
  2790. IJSRTCTrackEventInit = interface;
  2791. TJSRTCTrackEventInit = class;
  2792. IJSRTCTransformEventInit = interface;
  2793. TJSRTCTransformEventInit = class;
  2794. IJSSanitizerElementNamespace = interface;
  2795. TJSSanitizerElementNamespace = class;
  2796. IJSSanitizerElementNamespaceWithAttributes = interface;
  2797. TJSSanitizerElementNamespaceWithAttributes = class;
  2798. IJSSanitizerAttributeNamespace = interface;
  2799. TJSSanitizerAttributeNamespace = class;
  2800. IJSSanitizerConfig = interface;
  2801. TJSSanitizerConfig = class;
  2802. IJSScrollViewChangeEventInit = interface;
  2803. TJSScrollViewChangeEventInit = class;
  2804. IJSSecurityPolicyViolationEventInit = interface;
  2805. TJSSecurityPolicyViolationEventInit = class;
  2806. IJSRegistrationOptions = interface;
  2807. TJSRegistrationOptions = class;
  2808. IJSSpeechRecognitionErrorInit = interface;
  2809. TJSSpeechRecognitionErrorInit = class;
  2810. IJSSpeechRecognitionEventInit = interface;
  2811. TJSSpeechRecognitionEventInit = class;
  2812. IJSSpeechSynthesisErrorEventInit = interface;
  2813. TJSSpeechSynthesisErrorEventInit = class;
  2814. IJSSpeechSynthesisEventInit = interface;
  2815. TJSSpeechSynthesisEventInit = class;
  2816. IJSStaticRangeInit = interface;
  2817. TJSStaticRangeInit = class;
  2818. IJSStereoPannerOptions = interface;
  2819. TJSStereoPannerOptions = class;
  2820. IJSStorageEventInit = interface;
  2821. TJSStorageEventInit = class;
  2822. IJSStorageEstimate = interface;
  2823. TJSStorageEstimate = class;
  2824. IJSStreamFilterDataEventInit = interface;
  2825. TJSStreamFilterDataEventInit = class;
  2826. IJSSubmitEventInit = interface;
  2827. TJSSubmitEventInit = class;
  2828. IJSAlgorithm = interface;
  2829. TJSAlgorithm = class;
  2830. IJSAesCbcParams = interface;
  2831. TJSAesCbcParams = class;
  2832. IJSAesCtrParams = interface;
  2833. TJSAesCtrParams = class;
  2834. IJSAesGcmParams = interface;
  2835. TJSAesGcmParams = class;
  2836. IJSHmacImportParams = interface;
  2837. TJSHmacImportParams = class;
  2838. IJSPbkdf2Params = interface;
  2839. TJSPbkdf2Params = class;
  2840. IJSRsaHashedImportParams = interface;
  2841. TJSRsaHashedImportParams = class;
  2842. IJSAesKeyGenParams = interface;
  2843. TJSAesKeyGenParams = class;
  2844. IJSHmacKeyGenParams = interface;
  2845. TJSHmacKeyGenParams = class;
  2846. IJSRsaHashedKeyGenParams = interface;
  2847. TJSRsaHashedKeyGenParams = class;
  2848. IJSRsaOaepParams = interface;
  2849. TJSRsaOaepParams = class;
  2850. IJSRsaPssParams = interface;
  2851. TJSRsaPssParams = class;
  2852. IJSEcKeyGenParams = interface;
  2853. TJSEcKeyGenParams = class;
  2854. IJSAesDerivedKeyParams = interface;
  2855. TJSAesDerivedKeyParams = class;
  2856. IJSHmacDerivedKeyParams = interface;
  2857. TJSHmacDerivedKeyParams = class;
  2858. IJSEcdhKeyDeriveParams = interface;
  2859. TJSEcdhKeyDeriveParams = class;
  2860. IJSDhImportKeyParams = interface;
  2861. TJSDhImportKeyParams = class;
  2862. IJSEcdsaParams = interface;
  2863. TJSEcdsaParams = class;
  2864. IJSEcKeyImportParams = interface;
  2865. TJSEcKeyImportParams = class;
  2866. IJSHkdfParams = interface;
  2867. TJSHkdfParams = class;
  2868. IJSRsaOtherPrimesInfo = interface;
  2869. TJSRsaOtherPrimesInfo = class;
  2870. IJSJsonWebKey = interface;
  2871. TJSJsonWebKey = class;
  2872. IJSCryptoKeyPair = interface;
  2873. TJSCryptoKeyPair = class;
  2874. IJSSVGBoundingBoxOptions = interface;
  2875. TJSSVGBoundingBoxOptions = class;
  2876. IJSTaskPriorityChangeEventInit = interface;
  2877. TJSTaskPriorityChangeEventInit = class;
  2878. IJSServerSocketOptions = interface;
  2879. TJSServerSocketOptions = class;
  2880. IJSTCPServerSocketEventInit = interface;
  2881. TJSTCPServerSocketEventInit = class;
  2882. IJSSocketOptions = interface;
  2883. TJSSocketOptions = class;
  2884. IJSTCPSocketErrorEventInit = interface;
  2885. TJSTCPSocketErrorEventInit = class;
  2886. IJSTCPSocketEventInit = interface;
  2887. TJSTCPSocketEventInit = class;
  2888. IJSDictWithAllowSharedBufferSource = interface;
  2889. TJSDictWithAllowSharedBufferSource = class;
  2890. IJSTestInterfaceJSUnionableDictionary = interface;
  2891. TJSTestInterfaceJSUnionableDictionary = class;
  2892. IJSTestInterfaceJSDictionary2 = interface;
  2893. TJSTestInterfaceJSDictionary2 = class;
  2894. IJSTestInterfaceJSDictionary = interface;
  2895. TJSTestInterfaceJSDictionary = class;
  2896. IJSTestInterfaceAsyncIterableSingleOptions = interface;
  2897. TJSTestInterfaceAsyncIterableSingleOptions = class;
  2898. IJSTestInterfaceAsyncIteratorOptions = interface;
  2899. TJSTestInterfaceAsyncIteratorOptions = class;
  2900. IJSObservableArrayCallbacks = interface;
  2901. TJSObservableArrayCallbacks = class;
  2902. IJSTextDecoderOptions = interface;
  2903. TJSTextDecoderOptions = class;
  2904. IJSTextDecodeOptions = interface;
  2905. TJSTextDecodeOptions = class;
  2906. IJSTextEncoderEncodeIntoResult = interface;
  2907. TJSTextEncoderEncodeIntoResult = class;
  2908. IJSToggleEventInit = interface;
  2909. TJSToggleEventInit = class;
  2910. IJSTouchInit = interface;
  2911. TJSTouchInit = class;
  2912. IJSTouchEventInit = interface;
  2913. TJSTouchEventInit = class;
  2914. IJSTrackEventInit = interface;
  2915. TJSTrackEventInit = class;
  2916. IJSTransformer = interface;
  2917. TJSTransformer = class;
  2918. IJSTransitionEventInit = interface;
  2919. TJSTransitionEventInit = class;
  2920. IJSTrustedTypePolicyOptions = interface;
  2921. TJSTrustedTypePolicyOptions = class;
  2922. IJSUDPMessageEventInit = interface;
  2923. TJSUDPMessageEventInit = class;
  2924. IJSUDPOptions = interface;
  2925. TJSUDPOptions = class;
  2926. IJSUIEventInit = interface;
  2927. TJSUIEventInit = class;
  2928. IJSEventModifierInit = interface;
  2929. TJSEventModifierInit = class;
  2930. IJSUnderlyingSink = interface;
  2931. TJSUnderlyingSink = class;
  2932. IJSUnderlyingSource = interface;
  2933. TJSUnderlyingSource = class;
  2934. IJSUserProximityEventInit = interface;
  2935. TJSUserProximityEventInit = class;
  2936. IJSVideoColorSpaceInit = interface;
  2937. TJSVideoColorSpaceInit = class;
  2938. IJSVideoDecoderInit = interface;
  2939. TJSVideoDecoderInit = class;
  2940. IJSVideoDecoderSupport = interface;
  2941. TJSVideoDecoderSupport = class;
  2942. IJSVideoDecoderConfig = interface;
  2943. TJSVideoDecoderConfig = class;
  2944. IJSVideoEncoderInit = interface;
  2945. TJSVideoEncoderInit = class;
  2946. IJSAvcEncoderConfig = interface;
  2947. TJSAvcEncoderConfig = class;
  2948. IJSVideoEncoderConfig = interface;
  2949. TJSVideoEncoderConfig = class;
  2950. IJSVideoEncoderEncodeOptions = interface;
  2951. TJSVideoEncoderEncodeOptions = class;
  2952. IJSVideoEncoderEncodeOptionsForAvc = interface;
  2953. TJSVideoEncoderEncodeOptionsForAvc = class;
  2954. IJSVideoEncoderSupport = interface;
  2955. TJSVideoEncoderSupport = class;
  2956. IJSEncodedVideoChunkMetadata = interface;
  2957. TJSEncodedVideoChunkMetadata = class;
  2958. IJSSvcOutputMetadata = interface;
  2959. TJSSvcOutputMetadata = class;
  2960. IJSVideoFrameInit = interface;
  2961. TJSVideoFrameInit = class;
  2962. IJSVideoFrameBufferInit = interface;
  2963. TJSVideoFrameBufferInit = class;
  2964. IJSVideoFrameCopyToOptions = interface;
  2965. TJSVideoFrameCopyToOptions = class;
  2966. IJSPlaneLayout = interface;
  2967. TJSPlaneLayout = class;
  2968. IJSVRLayer = interface;
  2969. TJSVRLayer = class;
  2970. IJSVRDisplayEventInit = interface;
  2971. TJSVRDisplayEventInit = class;
  2972. IJSWaveShaperOptions = interface;
  2973. TJSWaveShaperOptions = class;
  2974. IJSRegistrationResponseJSON = interface;
  2975. TJSRegistrationResponseJSON = class;
  2976. IJSAuthenticatorAttestationResponseJSON = interface;
  2977. TJSAuthenticatorAttestationResponseJSON = class;
  2978. IJSAuthenticationResponseJSON = interface;
  2979. TJSAuthenticationResponseJSON = class;
  2980. IJSAuthenticatorAssertionResponseJSON = interface;
  2981. TJSAuthenticatorAssertionResponseJSON = class;
  2982. IJSAuthenticationExtensionsClientOutputsJSON = interface;
  2983. TJSAuthenticationExtensionsClientOutputsJSON = class;
  2984. IJSPublicKeyCredentialCreationOptionsJSON = interface;
  2985. TJSPublicKeyCredentialCreationOptionsJSON = class;
  2986. IJSPublicKeyCredentialUserEntityJSON = interface;
  2987. TJSPublicKeyCredentialUserEntityJSON = class;
  2988. IJSPublicKeyCredentialDescriptorJSON = interface;
  2989. TJSPublicKeyCredentialDescriptorJSON = class;
  2990. IJSAuthenticationExtensionsClientInputsJSON = interface;
  2991. TJSAuthenticationExtensionsClientInputsJSON = class;
  2992. IJSPublicKeyCredentialRequestOptionsJSON = interface;
  2993. TJSPublicKeyCredentialRequestOptionsJSON = class;
  2994. IJSPublicKeyCredentialParameters = interface;
  2995. TJSPublicKeyCredentialParameters = class;
  2996. IJSPublicKeyCredentialCreationOptions = interface;
  2997. TJSPublicKeyCredentialCreationOptions = class;
  2998. IJSPublicKeyCredentialEntity = interface;
  2999. TJSPublicKeyCredentialEntity = class;
  3000. IJSPublicKeyCredentialRpEntity = interface;
  3001. TJSPublicKeyCredentialRpEntity = class;
  3002. IJSPublicKeyCredentialUserEntity = interface;
  3003. TJSPublicKeyCredentialUserEntity = class;
  3004. IJSAuthenticatorSelectionCriteria = interface;
  3005. TJSAuthenticatorSelectionCriteria = class;
  3006. IJSPublicKeyCredentialRequestOptions = interface;
  3007. TJSPublicKeyCredentialRequestOptions = class;
  3008. IJSAuthenticationExtensionsClientInputs = interface;
  3009. TJSAuthenticationExtensionsClientInputs = class;
  3010. IJSAuthenticationExtensionsClientOutputs = interface;
  3011. TJSAuthenticationExtensionsClientOutputs = class;
  3012. IJSCollectedClientData = interface;
  3013. TJSCollectedClientData = class;
  3014. IJSTokenBinding = interface;
  3015. TJSTokenBinding = class;
  3016. IJSPublicKeyCredentialDescriptor = interface;
  3017. TJSPublicKeyCredentialDescriptor = class;
  3018. IJSCredentialPropertiesOutput = interface;
  3019. TJSCredentialPropertiesOutput = class;
  3020. IJSWebGLContextEventInit = interface;
  3021. TJSWebGLContextEventInit = class;
  3022. IJSWebGLContextAttributes = interface;
  3023. TJSWebGLContextAttributes = class;
  3024. IJSGPUObjectDescriptorBase = interface;
  3025. TJSGPUObjectDescriptorBase = class;
  3026. IJSGPURequestAdapterOptions = interface;
  3027. TJSGPURequestAdapterOptions = class;
  3028. IJSGPUDeviceDescriptor = interface;
  3029. TJSGPUDeviceDescriptor = class;
  3030. IJSGPUBufferDescriptor = interface;
  3031. TJSGPUBufferDescriptor = class;
  3032. IJSGPUTextureDescriptor = interface;
  3033. TJSGPUTextureDescriptor = class;
  3034. IJSGPUTextureViewDescriptor = interface;
  3035. TJSGPUTextureViewDescriptor = class;
  3036. IJSGPUSamplerDescriptor = interface;
  3037. TJSGPUSamplerDescriptor = class;
  3038. IJSGPUBindGroupLayoutDescriptor = interface;
  3039. TJSGPUBindGroupLayoutDescriptor = class;
  3040. IJSGPUBindGroupLayoutEntry = interface;
  3041. TJSGPUBindGroupLayoutEntry = class;
  3042. IJSGPUBufferBindingLayout = interface;
  3043. TJSGPUBufferBindingLayout = class;
  3044. IJSGPUSamplerBindingLayout = interface;
  3045. TJSGPUSamplerBindingLayout = class;
  3046. IJSGPUTextureBindingLayout = interface;
  3047. TJSGPUTextureBindingLayout = class;
  3048. IJSGPUStorageTextureBindingLayout = interface;
  3049. TJSGPUStorageTextureBindingLayout = class;
  3050. IJSGPUBindGroupDescriptor = interface;
  3051. TJSGPUBindGroupDescriptor = class;
  3052. IJSGPUBindGroupEntry = interface;
  3053. TJSGPUBindGroupEntry = class;
  3054. IJSGPUBufferBinding = interface;
  3055. TJSGPUBufferBinding = class;
  3056. IJSGPUPipelineLayoutDescriptor = interface;
  3057. TJSGPUPipelineLayoutDescriptor = class;
  3058. IJSGPUShaderModuleDescriptor = interface;
  3059. TJSGPUShaderModuleDescriptor = class;
  3060. IJSGPUPipelineDescriptorBase = interface;
  3061. TJSGPUPipelineDescriptorBase = class;
  3062. IJSGPUProgrammableStage = interface;
  3063. TJSGPUProgrammableStage = class;
  3064. IJSGPUComputePipelineDescriptor = interface;
  3065. TJSGPUComputePipelineDescriptor = class;
  3066. IJSGPURenderPipelineDescriptor = interface;
  3067. TJSGPURenderPipelineDescriptor = class;
  3068. IJSGPUPrimitiveState = interface;
  3069. TJSGPUPrimitiveState = class;
  3070. IJSGPUMultisampleState = interface;
  3071. TJSGPUMultisampleState = class;
  3072. IJSGPUFragmentState = interface;
  3073. TJSGPUFragmentState = class;
  3074. IJSGPUColorTargetState = interface;
  3075. TJSGPUColorTargetState = class;
  3076. IJSGPUBlendState = interface;
  3077. TJSGPUBlendState = class;
  3078. IJSGPUBlendComponent = interface;
  3079. TJSGPUBlendComponent = class;
  3080. IJSGPUDepthStencilState = interface;
  3081. TJSGPUDepthStencilState = class;
  3082. IJSGPUStencilFaceState = interface;
  3083. TJSGPUStencilFaceState = class;
  3084. IJSGPUVertexState = interface;
  3085. TJSGPUVertexState = class;
  3086. IJSGPUVertexBufferLayout = interface;
  3087. TJSGPUVertexBufferLayout = class;
  3088. IJSGPUVertexAttribute = interface;
  3089. TJSGPUVertexAttribute = class;
  3090. IJSGPUImageDataLayout = interface;
  3091. TJSGPUImageDataLayout = class;
  3092. IJSGPUImageCopyBuffer = interface;
  3093. TJSGPUImageCopyBuffer = class;
  3094. IJSGPUImageCopyTexture = interface;
  3095. TJSGPUImageCopyTexture = class;
  3096. IJSGPUImageCopyTextureTagged = interface;
  3097. TJSGPUImageCopyTextureTagged = class;
  3098. IJSGPUImageCopyExternalImage = interface;
  3099. TJSGPUImageCopyExternalImage = class;
  3100. IJSGPUCommandBufferDescriptor = interface;
  3101. TJSGPUCommandBufferDescriptor = class;
  3102. IJSGPUCommandEncoderDescriptor = interface;
  3103. TJSGPUCommandEncoderDescriptor = class;
  3104. IJSGPUComputePassDescriptor = interface;
  3105. TJSGPUComputePassDescriptor = class;
  3106. IJSGPURenderPassDescriptor = interface;
  3107. TJSGPURenderPassDescriptor = class;
  3108. IJSGPURenderPassColorAttachment = interface;
  3109. TJSGPURenderPassColorAttachment = class;
  3110. IJSGPURenderPassDepthStencilAttachment = interface;
  3111. TJSGPURenderPassDepthStencilAttachment = class;
  3112. IJSGPURenderPassLayout = interface;
  3113. TJSGPURenderPassLayout = class;
  3114. IJSGPURenderBundleDescriptor = interface;
  3115. TJSGPURenderBundleDescriptor = class;
  3116. IJSGPURenderBundleEncoderDescriptor = interface;
  3117. TJSGPURenderBundleEncoderDescriptor = class;
  3118. IJSGPUQueueDescriptor = interface;
  3119. TJSGPUQueueDescriptor = class;
  3120. IJSGPUQuerySetDescriptor = interface;
  3121. TJSGPUQuerySetDescriptor = class;
  3122. IJSGPUCanvasConfiguration = interface;
  3123. TJSGPUCanvasConfiguration = class;
  3124. IJSGPUColorDict = interface;
  3125. TJSGPUColorDict = class;
  3126. IJSGPUOrigin2DDict = interface;
  3127. TJSGPUOrigin2DDict = class;
  3128. IJSGPUOrigin3DDict = interface;
  3129. TJSGPUOrigin3DDict = class;
  3130. IJSGPUExtent3DDict = interface;
  3131. TJSGPUExtent3DDict = class;
  3132. IJSWebrtcGlobalStatisticsReport = interface;
  3133. TJSWebrtcGlobalStatisticsReport = class;
  3134. IJSWebrtcGlobalMediaContext = interface;
  3135. TJSWebrtcGlobalMediaContext = class;
  3136. IJSSchedulerPostTaskOptions = interface;
  3137. TJSSchedulerPostTaskOptions = class;
  3138. IJSTaskControllerInit = interface;
  3139. TJSTaskControllerInit = class;
  3140. IJSWebTransportHash = interface;
  3141. TJSWebTransportHash = class;
  3142. IJSWebTransportOptions = interface;
  3143. TJSWebTransportOptions = class;
  3144. IJSWebTransportCloseInfo = interface;
  3145. TJSWebTransportCloseInfo = class;
  3146. IJSWebTransportSendStreamOptions = interface;
  3147. TJSWebTransportSendStreamOptions = class;
  3148. IJSWebTransportStats = interface;
  3149. TJSWebTransportStats = class;
  3150. IJSWebTransportDatagramStats = interface;
  3151. TJSWebTransportDatagramStats = class;
  3152. IJSWebTransportErrorInit = interface;
  3153. TJSWebTransportErrorInit = class;
  3154. IJSWebTransportSendStreamStats = interface;
  3155. TJSWebTransportSendStreamStats = class;
  3156. IJSWebTransportReceiveStreamStats = interface;
  3157. TJSWebTransportReceiveStreamStats = class;
  3158. IJSXRSessionInit = interface;
  3159. TJSXRSessionInit = class;
  3160. IJSXRRenderStateInit = interface;
  3161. TJSXRRenderStateInit = class;
  3162. IJSXRWebGLLayerInit = interface;
  3163. TJSXRWebGLLayerInit = class;
  3164. IJSWheelEventInit = interface;
  3165. TJSWheelEventInit = class;
  3166. IJSScrollOptions = interface;
  3167. TJSScrollOptions = class;
  3168. IJSScrollToOptions = interface;
  3169. TJSScrollToOptions = class;
  3170. IJSSizeToContentConstraints = interface;
  3171. TJSSizeToContentConstraints = class;
  3172. IJSIdleRequestOptions = interface;
  3173. TJSIdleRequestOptions = class;
  3174. IJSWindowPostMessageOptions = interface;
  3175. TJSWindowPostMessageOptions = class;
  3176. IJSWorkerOptions = interface;
  3177. TJSWorkerOptions = class;
  3178. IJSWorkletOptions = interface;
  3179. TJSWorkletOptions = class;
  3180. IJSMozXMLHttpRequestParameters = interface;
  3181. TJSMozXMLHttpRequestParameters = class;
  3182. IJSXRInputSourceEventInit = interface;
  3183. TJSXRInputSourceEventInit = class;
  3184. IJSXRInputSourcesChangeEventInit = interface;
  3185. TJSXRInputSourcesChangeEventInit = class;
  3186. IJSXRReferenceSpaceEventInit = interface;
  3187. TJSXRReferenceSpaceEventInit = class;
  3188. IJSXRSessionEventInit = interface;
  3189. TJSXRSessionEventInit = class;
  3190. TAnimationPlayState = UnicodeString;
  3191. TAnimationReplaceState = UnicodeString;
  3192. TFillMode = UnicodeString;
  3193. TPlaybackDirection = UnicodeString;
  3194. TAudioSampleFormat = UnicodeString;
  3195. TOpusBitstreamFormat = UnicodeString;
  3196. TChannelCountMode = UnicodeString;
  3197. TChannelInterpretation = UnicodeString;
  3198. TAutomationRate = UnicodeString;
  3199. TAudioContextState = UnicodeString;
  3200. TCompositeOperation = UnicodeString;
  3201. TCompositeOperationOrAuto = UnicodeString;
  3202. TBiquadFilterType = UnicodeString;
  3203. TEndingType = UnicodeString;
  3204. TCacheStorageNamespace = UnicodeString;
  3205. TCanvasWindingRule = UnicodeString;
  3206. TCanvasLineCap = UnicodeString;
  3207. TCanvasLineJoin = UnicodeString;
  3208. TCanvasTextAlign = UnicodeString;
  3209. TCanvasTextBaseline = UnicodeString;
  3210. TCanvasDirection = UnicodeString;
  3211. TCanvasFontKerning = UnicodeString;
  3212. TCanvasFontStretch = UnicodeString;
  3213. TCanvasFontVariantCaps = UnicodeString;
  3214. TCanvasTextRendering = UnicodeString;
  3215. TCaretChangedReason = UnicodeString;
  3216. TCheckerboardReason = UnicodeString;
  3217. TFrameType = UnicodeString;
  3218. TClientType = UnicodeString;
  3219. TPresentationStyle = UnicodeString;
  3220. TCompressionFormat = UnicodeString;
  3221. TCredentialMediationRequirement = UnicodeString;
  3222. TSelectorWarningKind = UnicodeString;
  3223. TCSSStyleSheetParsingMode = UnicodeString;
  3224. TRestoreReason = UnicodeString;
  3225. TDecoderDoctorNotificationType = UnicodeString;
  3226. TDecoderDoctorReportType = UnicodeString;
  3227. TVisibilityState = UnicodeString;
  3228. TWireframeRectType = UnicodeString;
  3229. TSupportedType = UnicodeString;
  3230. TScrollLogicalPosition = UnicodeString;
  3231. TEncodedAudioChunkType = UnicodeString;
  3232. TEncodedVideoChunkType = UnicodeString;
  3233. TOverridableErrorCategory = UnicodeString;
  3234. TFetchState = UnicodeString;
  3235. TFileMode = UnicodeString;
  3236. TFileSystemHandleKind = UnicodeString;
  3237. TWriteCommandType = UnicodeString;
  3238. TFontFaceLoadStatus = UnicodeString;
  3239. TFontFaceSetLoadStatus = UnicodeString;
  3240. TGamepadHand = UnicodeString;
  3241. TGamepadMappingType = UnicodeString;
  3242. TGamepadHapticActuatorType = UnicodeString;
  3243. TGamepadLightIndicatorType = UnicodeString;
  3244. TCSSBoxType = UnicodeString;
  3245. TGetUserMediaRequestType = UnicodeString;
  3246. THeadersGuardEnum = UnicodeString;
  3247. THighlightType = UnicodeString;
  3248. TScrollRestoration = UnicodeString;
  3249. TSelectionMode = UnicodeString;
  3250. TIDBCursorDirection = UnicodeString;
  3251. TIDBTransactionDurability = UnicodeString;
  3252. TIDBRequestReadyState = UnicodeString;
  3253. TIDBTransactionMode = UnicodeString;
  3254. TImageBitmapFormat = UnicodeString;
  3255. TChannelPixelLayoutDataType = UnicodeString;
  3256. TImageOrientation = UnicodeString;
  3257. TPremultiplyAlpha = UnicodeString;
  3258. TColorSpaceConversion = UnicodeString;
  3259. TIterationCompositeOperation = UnicodeString;
  3260. TLockMode = UnicodeString;
  3261. TMediaDecodingType = UnicodeString;
  3262. TMediaEncodingType = UnicodeString;
  3263. THdrMetadataType = UnicodeString;
  3264. TColorGamut = UnicodeString;
  3265. TTransferFunction = UnicodeString;
  3266. TMediaDeviceKind = UnicodeString;
  3267. TMediaKeyMessageType = UnicodeString;
  3268. TMediaKeySessionType = UnicodeString;
  3269. THDCPVersion = UnicodeString;
  3270. TMediaKeySystemStatus = UnicodeString;
  3271. TMediaKeyStatus = UnicodeString;
  3272. TMediaKeysRequirement = UnicodeString;
  3273. TBitrateMode = UnicodeString;
  3274. TRecordingState = UnicodeString;
  3275. TMediaSessionPlaybackState = UnicodeString;
  3276. TMediaSessionAction = UnicodeString;
  3277. TMediaSourceReadyState = UnicodeString;
  3278. TMediaSourceEndOfStreamError = UnicodeString;
  3279. TVideoFacingModeEnum = UnicodeString;
  3280. TMediaSourceEnum = UnicodeString;
  3281. TMediaStreamTrackState = UnicodeString;
  3282. TMIDIPortType = UnicodeString;
  3283. TMIDIPortDeviceState = UnicodeString;
  3284. TMIDIPortConnectionState = UnicodeString;
  3285. TAutoplayPolicy = UnicodeString;
  3286. TAutoplayPolicyMediaType = UnicodeString;
  3287. TConnectionType = UnicodeString;
  3288. TNotificationPermission = UnicodeString;
  3289. TNotificationDirection = UnicodeString;
  3290. TOffscreenRenderingContextId = UnicodeString;
  3291. TOscillatorType = UnicodeString;
  3292. TPanningModelType = UnicodeString;
  3293. TDistanceModelType = UnicodeString;
  3294. TPaymentShippingType = UnicodeString;
  3295. TPaymentComplete = UnicodeString;
  3296. TPCObserverStateType = UnicodeString;
  3297. TPCError = UnicodeString;
  3298. TNavigationType = UnicodeString;
  3299. TPermissionName = UnicodeString;
  3300. TPermissionState = UnicodeString;
  3301. TPushEncryptionKeyName = UnicodeString;
  3302. TReadableStreamReaderMode = UnicodeString;
  3303. TReadableStreamType = UnicodeString;
  3304. TReferrerPolicy = UnicodeString;
  3305. TRequestDestination = UnicodeString;
  3306. TRequestMode = UnicodeString;
  3307. TRequestCredentials = UnicodeString;
  3308. TRequestCache = UnicodeString;
  3309. TRequestRedirect = UnicodeString;
  3310. TRequestPriority = UnicodeString;
  3311. TResizeObserverBoxOptions = UnicodeString;
  3312. TResponseType = UnicodeString;
  3313. TRTCIceCredentialType = UnicodeString;
  3314. TRTCIceTransportPolicy = UnicodeString;
  3315. TRTCBundlePolicy = UnicodeString;
  3316. TRTCDataChannelState = UnicodeString;
  3317. TRTCDataChannelType = UnicodeString;
  3318. TRTCDtlsTransportState = UnicodeString;
  3319. TRTCEncodedVideoFrameType = UnicodeString;
  3320. TRTCIceComponent = UnicodeString;
  3321. TRTCIceProtocol = UnicodeString;
  3322. TRTCIceCandidateType = UnicodeString;
  3323. TRTCIceTcpCandidateType = UnicodeString;
  3324. TRTCIceTransportState = UnicodeString;
  3325. TRTCIceGathererState = UnicodeString;
  3326. TRTCSignalingState = UnicodeString;
  3327. TRTCIceGatheringState = UnicodeString;
  3328. TRTCIceConnectionState = UnicodeString;
  3329. TRTCPeerConnectionState = UnicodeString;
  3330. TmozPacketDumpType = UnicodeString;
  3331. TRTCLifecycleEvent = UnicodeString;
  3332. TRTCPriorityType = UnicodeString;
  3333. TRTCDegradationPreference = UnicodeString;
  3334. TRTCRtpSourceEntryType = UnicodeString;
  3335. TRTCRtpTransceiverDirection = UnicodeString;
  3336. TRTCSctpTransportState = UnicodeString;
  3337. TRTCSdpType = UnicodeString;
  3338. TRTCStatsType = UnicodeString;
  3339. TRTCCodecType = UnicodeString;
  3340. TRTCStatsIceCandidatePairState = UnicodeString;
  3341. TScreenColorGamut = UnicodeString;
  3342. TOrientationType = UnicodeString;
  3343. TOrientationLockType = UnicodeString;
  3344. TScrollState = UnicodeString;
  3345. TSecurityPolicyViolationEventDisposition = UnicodeString;
  3346. TServiceWorkerState = UnicodeString;
  3347. TServiceWorkerUpdateViaCache = UnicodeString;
  3348. TShadowRootMode = UnicodeString;
  3349. TSlotAssignmentMode = UnicodeString;
  3350. TSocketReadyState = UnicodeString;
  3351. TSourceBufferAppendMode = UnicodeString;
  3352. TSpeechRecognitionErrorCode = UnicodeString;
  3353. TSpeechSynthesisErrorCode = UnicodeString;
  3354. TStreamFilterStatus = UnicodeString;
  3355. TTCPSocketBinaryType = UnicodeString;
  3356. TTCPReadyState = UnicodeString;
  3357. TStringType = UnicodeString;
  3358. TTextTrackKind = UnicodeString;
  3359. TTextTrackMode = UnicodeString;
  3360. TVideoColorPrimaries = UnicodeString;
  3361. TVideoTransferCharacteristics = UnicodeString;
  3362. TVideoMatrixCoefficients = UnicodeString;
  3363. THardwareAcceleration = UnicodeString;
  3364. TCodecState = UnicodeString;
  3365. TAvcBitstreamFormat = UnicodeString;
  3366. TVideoEncoderBitrateMode = UnicodeString;
  3367. TLatencyMode = UnicodeString;
  3368. TAlphaOption = UnicodeString;
  3369. TVideoPixelFormat = UnicodeString;
  3370. TVREye = UnicodeString;
  3371. TVRDisplayEventReason = UnicodeString;
  3372. TAutoKeyword = UnicodeString;
  3373. TLineAlignSetting = UnicodeString;
  3374. TPositionAlignSetting = UnicodeString;
  3375. TAlignSetting = UnicodeString;
  3376. TDirectionSetting = UnicodeString;
  3377. TScrollSetting = UnicodeString;
  3378. TWakeLockType = UnicodeString;
  3379. TOverSampleType = UnicodeString;
  3380. TWebGLPowerPreference = UnicodeString;
  3381. TPredefinedColorSpace = UnicodeString;
  3382. TGPUPowerPreference = UnicodeString;
  3383. TGPUFeatureName = UnicodeString;
  3384. TGPUBufferMapState = UnicodeString;
  3385. TGPUTextureDimension = UnicodeString;
  3386. TGPUTextureViewDimension = UnicodeString;
  3387. TGPUTextureAspect = UnicodeString;
  3388. TGPUTextureFormat = UnicodeString;
  3389. TGPUAddressMode = UnicodeString;
  3390. TGPUFilterMode = UnicodeString;
  3391. TGPUMipmapFilterMode = UnicodeString;
  3392. TGPUCompareFunction = UnicodeString;
  3393. TGPUBufferBindingType = UnicodeString;
  3394. TGPUSamplerBindingType = UnicodeString;
  3395. TGPUTextureSampleType = UnicodeString;
  3396. TGPUStorageTextureAccess = UnicodeString;
  3397. TGPUCompilationMessageType = UnicodeString;
  3398. TGPUAutoLayoutMode = UnicodeString;
  3399. TGPUPrimitiveTopology = UnicodeString;
  3400. TGPUFrontFace = UnicodeString;
  3401. TGPUCullMode = UnicodeString;
  3402. TGPUBlendFactor = UnicodeString;
  3403. TGPUBlendOperation = UnicodeString;
  3404. TGPUStencilOperation = UnicodeString;
  3405. TGPUIndexFormat = UnicodeString;
  3406. TGPUVertexFormat = UnicodeString;
  3407. TGPUVertexStepMode = UnicodeString;
  3408. TGPULoadOp = UnicodeString;
  3409. TGPUStoreOp = UnicodeString;
  3410. TGPUPipelineStatisticName = UnicodeString;
  3411. TGPUQueryType = UnicodeString;
  3412. TGPUCanvasAlphaMode = UnicodeString;
  3413. TGPUDeviceLostReason = UnicodeString;
  3414. TGPUErrorFilter = UnicodeString;
  3415. TBinaryType = UnicodeString;
  3416. TTaskPriority = UnicodeString;
  3417. TWebTransportCongestionControl = UnicodeString;
  3418. TWebTransportReliabilityMode = UnicodeString;
  3419. TWebTransportErrorSource = UnicodeString;
  3420. TXRSessionMode = UnicodeString;
  3421. TXRVisibilityState = UnicodeString;
  3422. TXRReferenceSpaceType = UnicodeString;
  3423. TXREye = UnicodeString;
  3424. TXRHandedness = UnicodeString;
  3425. TXRTargetRayMode = UnicodeString;
  3426. TScrollBehavior = UnicodeString;
  3427. TWorkerType = UnicodeString;
  3428. TXMLHttpRequestResponseType = UnicodeString;
  3429. // Union of File, USVString, FormData
  3430. TLifecycleFormStateRestoreCallback_state_Type = Variant;
  3431. // Union of Event, DOMString
  3432. TOnErrorEventHandlerNonNull_event_Type = Variant;
  3433. TJSFileSystemEntryDynArray = IJSArray; // array of FileSystemEntry
  3434. TJSIntersectionObserverEntryDynArray = IJSArray; // array of IntersectionObserverEntry
  3435. TJSMutationRecordDynArray = IJSArray; // array of MutationRecord
  3436. TJSReportDynArray = IJSArray; // array of Report
  3437. TJSResizeObserverEntryDynArray = IJSArray; // array of ResizeObserverEntry
  3438. TUnicodeStringDynArray = IJSArray; // array of DOMString
  3439. // Union of BufferSource, Blob, UTF8String
  3440. TBlobPart = Variant;
  3441. // Union of HTMLImageElement, SVGImageElement
  3442. THTMLOrSVGImageElement = Variant;
  3443. // Union of HTMLOrSVGImageElement, HTMLCanvasElement, HTMLVideoElement, OffscreenCanvas, ImageBitmap, VideoFrame
  3444. TCanvasImageSource = Variant;
  3445. // Union of DOMString, Blob
  3446. TClipboardItemDataType = Variant;
  3447. // Union of Blob, BufferSource, FormData, URLSearchParams, USVString
  3448. TXMLHttpRequestBodyInit = Variant;
  3449. TBodyInit = TXMLHttpRequestBodyInit;
  3450. // Union of BufferSource, Blob, UTF8String, WriteParams
  3451. TFileSystemWriteChunkType = Variant;
  3452. // Union of ArrayBuffer, ArrayBufferView
  3453. TBinaryData = Variant;
  3454. // Union of Blob, Directory, USVString
  3455. TFormDataEntryValue = Variant;
  3456. // Union of Text, Element, Document
  3457. TGeometryNode = Variant;
  3458. // Union of sequence, record
  3459. THeadersInit = Variant;
  3460. // Union of HTMLCanvasElement, OffscreenCanvas
  3461. TCanvasSource = Variant;
  3462. // Union of CanvasImageSource, Blob, CanvasRenderingContext2D, ImageData
  3463. TImageBitmapSource = Variant;
  3464. // Union of unrestricted double, KeyframeAnimationOptions
  3465. TUnrestrictedDoubleOrKeyframeAnimationOptions = Variant;
  3466. // Union of UTF8String, L10nIdArgs
  3467. TL10nKey = Variant;
  3468. // Union of long, ConstrainLongRange
  3469. TConstrainLong = Variant;
  3470. // Union of double, ConstrainDoubleRange
  3471. TConstrainDouble = Variant;
  3472. // Union of boolean, ConstrainBooleanParameters
  3473. TConstrainBoolean = Variant;
  3474. // Union of DOMString, sequence, ConstrainDOMStringParameters
  3475. TConstrainDOMString = Variant;
  3476. // Union of WindowProxy, MessagePort, ServiceWorker
  3477. TMessageEventSource = Variant;
  3478. // Union of unsigned long, sequence
  3479. TVibratePattern = Variant;
  3480. // Union of OffscreenCanvasRenderingContext2D, ImageBitmapRenderingContext, WebGLRenderingContext, WebGL2RenderingContext, GPUCanvasContext
  3481. TOffscreenRenderingContext = Variant;
  3482. TDOMTimeStamp = QWord;
  3483. TEpochTimeStamp = QWord;
  3484. TDOMHighResTimeStamp = Double;
  3485. // Union of BufferSource, USVString
  3486. TPushMessageDataInit = Variant;
  3487. // Union of ReadableStreamDefaultReader, ReadableStreamBYOBReader
  3488. TReadableStreamReader = Variant;
  3489. // Union of Request, USVString
  3490. TRequestInfo = Variant;
  3491. TnsContentPolicyType = Cardinal;
  3492. // Union of DOMString, SanitizerElementNamespace
  3493. TSanitizerElement = Variant;
  3494. // Union of DOMString, SanitizerElementNamespaceWithAttributes
  3495. TSanitizerElementWithAttributes = Variant;
  3496. // Union of DOMString, SanitizerAttributeNamespace
  3497. TSanitizerAttribute = Variant;
  3498. // Union of DocumentFragment, Document
  3499. TSanitizerInput = Variant;
  3500. TKeyType = UnicodeString;
  3501. TKeyUsage = UnicodeString;
  3502. TNamedCurve = UnicodeString;
  3503. TKeyFormat = UnicodeString;
  3504. // Union of object, DOMString
  3505. TAlgorithmIdentifier = Variant;
  3506. // Union of ReadableStreamDefaultController, ReadableByteStreamController
  3507. TReadableStreamController = Variant;
  3508. // Union of HTMLCanvasElement, OffscreenCanvas
  3509. TVRSource = Variant;
  3510. TBase64URLString = UnicodeString;
  3511. TCOSEAlgorithmIdentifier = LongInt;
  3512. TGLint64 = Int64;
  3513. TGLuint64 = QWord;
  3514. TGLenum = Cardinal;
  3515. TGLboolean = Boolean;
  3516. TGLbitfield = Cardinal;
  3517. TGLbyte = ShortInt;
  3518. TGLshort = SmallInt;
  3519. TGLint = LongInt;
  3520. TGLsizei = LongInt;
  3521. TGLintptr = Int64;
  3522. TGLsizeiptr = Int64;
  3523. TGLubyte = Byte;
  3524. TGLushort = Word;
  3525. TGLuint = Cardinal;
  3526. TGLfloat = Single;
  3527. TGLclampf = Single;
  3528. TGLuint64EXT = QWord;
  3529. TGPUBufferUsageFlags = Cardinal;
  3530. TGPUMapModeFlags = Cardinal;
  3531. TGPUTextureUsageFlags = Cardinal;
  3532. TGPUShaderStageFlags = Cardinal;
  3533. // Union of GPUSampler, GPUTextureView, GPUBufferBinding
  3534. TGPUBindingResource = Variant;
  3535. TGPUColorWriteFlags = Cardinal;
  3536. TGPUBufferDynamicOffset = Cardinal;
  3537. TGPUStencilValue = Cardinal;
  3538. TGPUSampleMask = Cardinal;
  3539. TGPUDepthBias = LongInt;
  3540. TGPUSize64 = QWord;
  3541. TGPUIntegerCoordinate = Cardinal;
  3542. TGPUIndex32 = Cardinal;
  3543. TGPUSize32 = Cardinal;
  3544. TGPUSignedOffset32 = LongInt;
  3545. TGPUSize64Out = QWord;
  3546. TGPUIntegerCoordinateOut = Cardinal;
  3547. TGPUSize32Out = Cardinal;
  3548. TGPUFlagsConstant = Cardinal;
  3549. // Union of sequence, GPUColorDict
  3550. TGPUColor = Variant;
  3551. // Union of sequence, GPUOrigin2DDict
  3552. TGPUOrigin2D = Variant;
  3553. // Union of sequence, GPUOrigin3DDict
  3554. TGPUOrigin3D = Variant;
  3555. // Union of sequence, GPUExtent3DDict
  3556. TGPUExtent3D = Variant;
  3557. // Union of WebGLRenderingContext, WebGL2RenderingContext
  3558. TXRWebGLRenderingContext = Variant;
  3559. // Union of unrestricted double, boolean, DOMString, Node, sequence, XPathResult
  3560. TXSLTParameterValue = Variant;
  3561. TFrameRequestCallback = procedure (time: TDOMHighResTimeStamp) of object;
  3562. TAudioDataOutputCallback = procedure (output: IJSAudioData) of object;
  3563. TEncodedAudioChunkOutputCallback = procedure (output: IJSEncodedAudioChunk; const metadata: TJSEncodedAudioChunkMetadata) of object;
  3564. TAudioWorkletProcessorConstructor = function (options: IJSObject): IJSAudioWorkletProcessor of object;
  3565. TDecodeSuccessCallback = procedure (decodedData: IJSAudioBuffer) of object;
  3566. TDecodeErrorCallback = procedure (error: IJSError) of object;
  3567. TClipboardItemsDynArray = IJSArray; // array of ClipboardItem
  3568. TCustomElementConstructor = function : Variant of object;
  3569. TCustomElementCreationCallback = procedure (const name: UnicodeString) of object;
  3570. TLifecycleConnectedCallback = procedure of object;
  3571. TLifecycleDisconnectedCallback = procedure of object;
  3572. TLifecycleAdoptedCallback = procedure (oldDocument: IJSDocument; newDocment: IJSDocument) of object;
  3573. TLifecycleAttributeChangedCallback = procedure (const attrName: UnicodeString; const oldValue: UnicodeString; const newValue: UnicodeString; const namespaceURI: UnicodeString) of object;
  3574. TLifecycleFormAssociatedCallback = procedure (form: IJSHTMLFormElement) of object;
  3575. TLifecycleFormResetCallback = procedure of object;
  3576. TLifecycleFormDisabledCallback = procedure (disabled: Boolean) of object;
  3577. TLifecycleFormStateRestoreCallback = procedure (const state: TLifecycleFormStateRestoreCallback_state_Type; reason: TRestoreReason) of object;
  3578. TLifecycleGetCustomInterfaceCallback = function (const iid: Variant): IJSObject of object;
  3579. TFunctionStringCallback = procedure (const data: UnicodeString) of object;
  3580. TEventHandlerNonNull = function (event: IJSEvent): Variant of object;
  3581. TEventHandler = TEventHandlerNonNull;
  3582. TOnBeforeUnloadEventHandlerNonNull = function (event: IJSEvent): UnicodeString of object;
  3583. TOnBeforeUnloadEventHandler = TOnBeforeUnloadEventHandlerNonNull;
  3584. TOnErrorEventHandlerNonNull = function (const event: TOnErrorEventHandlerNonNull_event_Type; const source: UnicodeString; lineno: Cardinal; column: Cardinal; const error: Variant): Variant of object;
  3585. TOnErrorEventHandler = TOnErrorEventHandlerNonNull;
  3586. TFileSystemEntryCallback = procedure (entry: IJSFileSystemEntry) of object;
  3587. TErrorCallback = procedure (err: IJSError) of object;
  3588. TFileSystemEntriesCallback = procedure (const entries: TJSFileSystemEntryDynArray) of object;
  3589. TFileCallback = procedure (file_: IJSFile) of object;
  3590. TFinalizationRegistryCleanupCallback = procedure of object;
  3591. TFontFaceSetForEachCallback = procedure (value: IJSFontFace; key: IJSFontFace; set_: IJSFontFaceSet) of object;
  3592. TFunction = function (const arguments: Variant): Variant of object;
  3593. TVoidFunction = procedure of object;
  3594. TPositionCallback = procedure (position: IJSGeolocationPosition) of object;
  3595. TPositionErrorCallback = procedure (positionError: IJSGeolocationPositionError) of object;
  3596. TBlobCallback = procedure (blob: IJSBlob) of object;
  3597. TImagePixelLayoutDynArray = IJSArray; // array of ChannelPixelLayout
  3598. TInstallTriggerCallback = procedure (const url: UnicodeString; status: SmallInt) of object;
  3599. TIntersectionCallback = procedure (const entries: TJSIntersectionObserverEntryDynArray; observer: IJSIntersectionObserver) of object;
  3600. TLockGrantedCallback = function (lock: IJSLock): IJSPromise of object;
  3601. TMediaSessionActionHandler = procedure (const details: TJSMediaSessionActionDetails) of object;
  3602. TMutationCallback = procedure (const mutations: TJSMutationRecordDynArray; observer: IJSMutationObserver) of object;
  3603. TNavigatorUserMediaSuccessCallback = procedure (stream: IJSMediaStream) of object;
  3604. TNavigatorUserMediaErrorCallback = procedure (error: IJSMediaStreamError) of object;
  3605. TNotificationPermissionCallback = procedure (permission: TNotificationPermission) of object;
  3606. TChainedOperation = function : IJSPromise of object;
  3607. TPerformanceEntryListDynArray = IJSArray; // array of PerformanceEntry
  3608. TPerformanceObserverCallback = procedure (entries: IJSPerformanceObserverEntryList; observer: IJSPerformanceObserver) of object;
  3609. TPromiseJobCallback = procedure of object;
  3610. TAnyCallback = function (const value: Variant): Variant of object;
  3611. TQueuingStrategySize = function (const chunk: Variant): Double of object;
  3612. TReportingObserverCallback = procedure (const reports: TJSReportDynArray; observer: IJSReportingObserver) of object;
  3613. TReportListDynArray = IJSArray; // array of Report
  3614. TResizeObserverCallback = procedure (const entries: TJSResizeObserverEntryDynArray; observer: IJSResizeObserver) of object;
  3615. TGenerateAssertionCallback = function (const contents: UnicodeString; const origin: UnicodeString; const options: TJSRTCIdentityProviderOptions): IJSPromise of object;
  3616. TValidateAssertionCallback = function (const assertion: UnicodeString; const origin: UnicodeString): IJSPromise of object;
  3617. TRTCSessionDescriptionCallback = procedure (const description: TJSRTCSessionDescriptionInit) of object;
  3618. TRTCPeerConnectionErrorCallback = procedure (error: IJSError) of object;
  3619. TRTCStatsCallback = procedure (report: IJSRTCStatsReport) of object;
  3620. TmozPacketCallback = procedure (level: Cardinal; type_: TmozPacketDumpType; sending: Boolean; packet: IJSArrayBuffer) of object;
  3621. TPeerConnectionLifecycleCallback = procedure (pc: IJSRTCPeerConnection; windowId: QWord; eventType: TRTCLifecycleEvent) of object;
  3622. TRTCRtpTransform = TJSRTCRtpScriptTransform;
  3623. TBigInteger = IJSUint8Array;
  3624. TPromiseReturner = function : IJSPromise of object;
  3625. TPromiseReturner2 = function (const arg: Variant; const arg2: UnicodeString): IJSPromise of object;
  3626. TTestThrowingCallback = procedure of object;
  3627. TSetDeleteObjectCallback = procedure (value: IJSObject; index: Cardinal) of object;
  3628. TSetDeleteBooleanCallback = procedure (value: Boolean; index: Cardinal) of object;
  3629. TSetDeleteInterfaceCallback = procedure (value: IJSTestInterfaceObservableArray; index: Cardinal) of object;
  3630. TTransformerStartCallback = function (controller: IJSTransformStreamDefaultController): Variant of object;
  3631. TTransformerFlushCallback = function (controller: IJSTransformStreamDefaultController): IJSPromise of object;
  3632. TTransformerTransformCallback = function (const chunk: Variant; controller: IJSTransformStreamDefaultController): IJSPromise of object;
  3633. TCreateHTMLCallback = function (const input: UnicodeString; const arguments: Variant): UnicodeString of object;
  3634. TCreateScriptCallback = function (const input: UnicodeString; const arguments: Variant): UnicodeString of object;
  3635. TCreateScriptURLCallback = function (const input: UnicodeString; const arguments: Variant): UnicodeString of object;
  3636. TUnderlyingSinkStartCallback = function (controller: IJSWritableStreamDefaultController): Variant of object;
  3637. TUnderlyingSinkWriteCallback = function (const chunk: Variant; controller: IJSWritableStreamDefaultController): IJSPromise of object;
  3638. TUnderlyingSinkCloseCallback = function : IJSPromise of object;
  3639. TUnderlyingSinkAbortCallback = function (const reason: Variant): IJSPromise of object;
  3640. TUnderlyingSourceStartCallback = function (const controller: TReadableStreamController): Variant of object;
  3641. TUnderlyingSourcePullCallback = function (const controller: TReadableStreamController): IJSPromise of object;
  3642. TUnderlyingSourceCancelCallback = function (const reason: Variant): IJSPromise of object;
  3643. TVideoFrameOutputCallback = procedure (output: IJSVideoFrame) of object;
  3644. TWebCodecsErrorCallback = procedure (error: IJSError) of object;
  3645. TEncodedVideoChunkOutputCallback = procedure (chunk: IJSEncodedVideoChunk; const metadata: TJSEncodedVideoChunkMetadata) of object;
  3646. TAuthenticationExtensionsAuthenticatorInputs = TJSObject;
  3647. TAuthenticatorSelectionListDynArray = IJSArray; // array of AAGUID
  3648. TAAGUID = IJSBufferSource;
  3649. TWebrtcGlobalStatisticsCallback = procedure (const reports: TJSWebrtcGlobalStatisticsReport) of object;
  3650. TWebrtcGlobalStatisticsHistoryPcIdsCallback = procedure (const pcIds: TUnicodeStringDynArray) of object;
  3651. TWebrtcGlobalStatisticsHistoryCallback = procedure (const reports: TJSWebrtcGlobalStatisticsReport) of object;
  3652. TWebrtcGlobalLoggingCallback = procedure (const logMessages: TUnicodeStringDynArray) of object;
  3653. TSchedulerPostTaskCallback = function : Variant of object;
  3654. TXRFrameRequestCallback = procedure (time: TDOMHighResTimeStamp; frame: IJSXRFrame) of object;
  3655. TPromiseDocumentFlushedCallback = function : Variant of object;
  3656. TIdleRequestCallback = procedure (deadline: IJSIdleDeadline) of object;
  3657. TEventListener = procedure (event: IJSEvent) of object;
  3658. TObserverCallback = procedure (observer: IJSFetchObserver) of object;
  3659. TNodeFilter = function (node: IJSNode): Word of object;
  3660. TXPathNSResolver = function (const prefix: UnicodeString): UnicodeString of object;
  3661. { --------------------------------------------------------------------
  3662. TJSaddonInstallOptions
  3663. --------------------------------------------------------------------}
  3664. TJSaddonInstallOptionsRec = record
  3665. url: UnicodeString;
  3666. hash: UnicodeString;
  3667. end;
  3668. IJSaddonInstallOptions = interface(IJSObject)
  3669. ['{78F417BE-7FF7-32C6-BF38-AB2C5DB861AD}']
  3670. function _Geturl: UnicodeString;
  3671. function _Gethash: UnicodeString;
  3672. procedure _Seturl(const aValue: UnicodeString);
  3673. procedure _Sethash(const aValue: UnicodeString);
  3674. property url: UnicodeString read _Geturl write _Seturl;
  3675. property hash: UnicodeString read _Gethash write _Sethash;
  3676. end;
  3677. TJSaddonInstallOptions = class(TJSObject,IJSaddonInstallOptions)
  3678. Protected
  3679. function _Geturl: UnicodeString;
  3680. function _Gethash: UnicodeString;
  3681. procedure _Seturl(const aValue: UnicodeString);
  3682. procedure _Sethash(const aValue: UnicodeString);
  3683. Public
  3684. class function JSClassName: UnicodeString; override;
  3685. class function Cast(const Intf: IJSObject): IJSaddonInstallOptions;
  3686. property url: UnicodeString read _Geturl write _Seturl;
  3687. property hash: UnicodeString read _Gethash write _Sethash;
  3688. end;
  3689. { --------------------------------------------------------------------
  3690. TJSGetAnimationsOptions
  3691. --------------------------------------------------------------------}
  3692. TJSGetAnimationsOptionsRec = record
  3693. subtree: Boolean;
  3694. end;
  3695. IJSGetAnimationsOptions = interface(IJSObject)
  3696. ['{ACE4E4FE-AFEF-3D26-B85E-E55870F236FB}']
  3697. function _Getsubtree: Boolean;
  3698. procedure _Setsubtree(const aValue: Boolean);
  3699. property subtree: Boolean read _Getsubtree write _Setsubtree;
  3700. end;
  3701. TJSGetAnimationsOptions = class(TJSObject,IJSGetAnimationsOptions)
  3702. Protected
  3703. function _Getsubtree: Boolean;
  3704. procedure _Setsubtree(const aValue: Boolean);
  3705. Public
  3706. class function JSClassName: UnicodeString; override;
  3707. class function Cast(const Intf: IJSObject): IJSGetAnimationsOptions;
  3708. property subtree: Boolean read _Getsubtree write _Setsubtree;
  3709. end;
  3710. { --------------------------------------------------------------------
  3711. TJSEffectTiming
  3712. --------------------------------------------------------------------}
  3713. // Union of unrestricted double, DOMString
  3714. TEffectTiming_duration_Type = Variant;
  3715. TJSEffectTimingRec = record
  3716. delay: Double;
  3717. endDelay: Double;
  3718. fill: TFillMode;
  3719. iterationStart: Double;
  3720. iterations: Double;
  3721. duration: TEffectTiming_duration_Type;
  3722. direction: TPlaybackDirection;
  3723. easing: UTF8String;
  3724. end;
  3725. IJSEffectTiming = interface(IJSObject)
  3726. ['{8045CA59-A48E-383F-B2B7-BC9CDEFC2434}']
  3727. function _Getdelay: Double;
  3728. function _GetendDelay: Double;
  3729. function _Getfill: TFillMode;
  3730. function _GetiterationStart: Double;
  3731. function _Getiterations: Double;
  3732. function _Getduration: TEffectTiming_duration_Type;
  3733. function _Getdirection: TPlaybackDirection;
  3734. function _Geteasing: UTF8String;
  3735. procedure _Setdelay(const aValue: Double);
  3736. procedure _SetendDelay(const aValue: Double);
  3737. procedure _Setfill(const aValue: TFillMode);
  3738. procedure _SetiterationStart(const aValue: Double);
  3739. procedure _Setiterations(const aValue: Double);
  3740. procedure _Setduration(const aValue: TEffectTiming_duration_Type);
  3741. procedure _Setdirection(const aValue: TPlaybackDirection);
  3742. procedure _Seteasing(const aValue: UTF8String);
  3743. property delay: Double read _Getdelay write _Setdelay;
  3744. property endDelay: Double read _GetendDelay write _SetendDelay;
  3745. property fill: TFillMode read _Getfill write _Setfill;
  3746. property iterationStart: Double read _GetiterationStart write _SetiterationStart;
  3747. property iterations: Double read _Getiterations write _Setiterations;
  3748. property duration: TEffectTiming_duration_Type read _Getduration write _Setduration;
  3749. property direction: TPlaybackDirection read _Getdirection write _Setdirection;
  3750. property easing: UTF8String read _Geteasing write _Seteasing;
  3751. end;
  3752. TJSEffectTiming = class(TJSObject,IJSEffectTiming)
  3753. Protected
  3754. function _Getdelay: Double;
  3755. function _GetendDelay: Double;
  3756. function _Getfill: TFillMode;
  3757. function _GetiterationStart: Double;
  3758. function _Getiterations: Double;
  3759. function _Getduration: TEffectTiming_duration_Type;
  3760. function _Getdirection: TPlaybackDirection;
  3761. function _Geteasing: UTF8String;
  3762. procedure _Setdelay(const aValue: Double);
  3763. procedure _SetendDelay(const aValue: Double);
  3764. procedure _Setfill(const aValue: TFillMode);
  3765. procedure _SetiterationStart(const aValue: Double);
  3766. procedure _Setiterations(const aValue: Double);
  3767. procedure _Setduration(const aValue: TEffectTiming_duration_Type);
  3768. procedure _Setdirection(const aValue: TPlaybackDirection);
  3769. procedure _Seteasing(const aValue: UTF8String);
  3770. Public
  3771. class function JSClassName: UnicodeString; override;
  3772. class function Cast(const Intf: IJSObject): IJSEffectTiming;
  3773. property delay: Double read _Getdelay write _Setdelay;
  3774. property endDelay: Double read _GetendDelay write _SetendDelay;
  3775. property fill: TFillMode read _Getfill write _Setfill;
  3776. property iterationStart: Double read _GetiterationStart write _SetiterationStart;
  3777. property iterations: Double read _Getiterations write _Setiterations;
  3778. property duration: TEffectTiming_duration_Type read _Getduration write _Setduration;
  3779. property direction: TPlaybackDirection read _Getdirection write _Setdirection;
  3780. property easing: UTF8String read _Geteasing write _Seteasing;
  3781. end;
  3782. { --------------------------------------------------------------------
  3783. TJSOptionalEffectTiming
  3784. --------------------------------------------------------------------}
  3785. // Union of unrestricted double, DOMString
  3786. TOptionalEffectTiming_duration_Type = Variant;
  3787. TJSOptionalEffectTimingRec = record
  3788. delay: Double;
  3789. endDelay: Double;
  3790. fill: TFillMode;
  3791. iterationStart: Double;
  3792. iterations: Double;
  3793. duration: TOptionalEffectTiming_duration_Type;
  3794. direction: TPlaybackDirection;
  3795. easing: UTF8String;
  3796. end;
  3797. IJSOptionalEffectTiming = interface(IJSObject)
  3798. ['{F7082501-C3AE-37CA-99A4-8E883FB2B7BC}']
  3799. function _Getdelay: Double;
  3800. function _GetendDelay: Double;
  3801. function _Getfill: TFillMode;
  3802. function _GetiterationStart: Double;
  3803. function _Getiterations: Double;
  3804. function _Getduration: TOptionalEffectTiming_duration_Type;
  3805. function _Getdirection: TPlaybackDirection;
  3806. function _Geteasing: UTF8String;
  3807. procedure _Setdelay(const aValue: Double);
  3808. procedure _SetendDelay(const aValue: Double);
  3809. procedure _Setfill(const aValue: TFillMode);
  3810. procedure _SetiterationStart(const aValue: Double);
  3811. procedure _Setiterations(const aValue: Double);
  3812. procedure _Setduration(const aValue: TOptionalEffectTiming_duration_Type);
  3813. procedure _Setdirection(const aValue: TPlaybackDirection);
  3814. procedure _Seteasing(const aValue: UTF8String);
  3815. property delay: Double read _Getdelay write _Setdelay;
  3816. property endDelay: Double read _GetendDelay write _SetendDelay;
  3817. property fill: TFillMode read _Getfill write _Setfill;
  3818. property iterationStart: Double read _GetiterationStart write _SetiterationStart;
  3819. property iterations: Double read _Getiterations write _Setiterations;
  3820. property duration: TOptionalEffectTiming_duration_Type read _Getduration write _Setduration;
  3821. property direction: TPlaybackDirection read _Getdirection write _Setdirection;
  3822. property easing: UTF8String read _Geteasing write _Seteasing;
  3823. end;
  3824. TJSOptionalEffectTiming = class(TJSObject,IJSOptionalEffectTiming)
  3825. Protected
  3826. function _Getdelay: Double;
  3827. function _GetendDelay: Double;
  3828. function _Getfill: TFillMode;
  3829. function _GetiterationStart: Double;
  3830. function _Getiterations: Double;
  3831. function _Getduration: TOptionalEffectTiming_duration_Type;
  3832. function _Getdirection: TPlaybackDirection;
  3833. function _Geteasing: UTF8String;
  3834. procedure _Setdelay(const aValue: Double);
  3835. procedure _SetendDelay(const aValue: Double);
  3836. procedure _Setfill(const aValue: TFillMode);
  3837. procedure _SetiterationStart(const aValue: Double);
  3838. procedure _Setiterations(const aValue: Double);
  3839. procedure _Setduration(const aValue: TOptionalEffectTiming_duration_Type);
  3840. procedure _Setdirection(const aValue: TPlaybackDirection);
  3841. procedure _Seteasing(const aValue: UTF8String);
  3842. Public
  3843. class function JSClassName: UnicodeString; override;
  3844. class function Cast(const Intf: IJSObject): IJSOptionalEffectTiming;
  3845. property delay: Double read _Getdelay write _Setdelay;
  3846. property endDelay: Double read _GetendDelay write _SetendDelay;
  3847. property fill: TFillMode read _Getfill write _Setfill;
  3848. property iterationStart: Double read _GetiterationStart write _SetiterationStart;
  3849. property iterations: Double read _Getiterations write _Setiterations;
  3850. property duration: TOptionalEffectTiming_duration_Type read _Getduration write _Setduration;
  3851. property direction: TPlaybackDirection read _Getdirection write _Setdirection;
  3852. property easing: UTF8String read _Geteasing write _Seteasing;
  3853. end;
  3854. { --------------------------------------------------------------------
  3855. TJSAppInfo
  3856. --------------------------------------------------------------------}
  3857. TJSAppInfoRec = record
  3858. path: UnicodeString;
  3859. isCoreApp: Boolean;
  3860. end;
  3861. IJSAppInfo = interface(IJSObject)
  3862. ['{BE7FE99D-E1A9-3D7A-836C-6B680DAD8965}']
  3863. function _Getpath: UnicodeString;
  3864. function _GetisCoreApp: Boolean;
  3865. procedure _Setpath(const aValue: UnicodeString);
  3866. procedure _SetisCoreApp(const aValue: Boolean);
  3867. property path: UnicodeString read _Getpath write _Setpath;
  3868. property isCoreApp: Boolean read _GetisCoreApp write _SetisCoreApp;
  3869. end;
  3870. TJSAppInfo = class(TJSObject,IJSAppInfo)
  3871. Protected
  3872. function _Getpath: UnicodeString;
  3873. function _GetisCoreApp: Boolean;
  3874. procedure _Setpath(const aValue: UnicodeString);
  3875. procedure _SetisCoreApp(const aValue: Boolean);
  3876. Public
  3877. class function JSClassName: UnicodeString; override;
  3878. class function Cast(const Intf: IJSObject): IJSAppInfo;
  3879. property path: UnicodeString read _Getpath write _Setpath;
  3880. property isCoreApp: Boolean read _GetisCoreApp write _SetisCoreApp;
  3881. end;
  3882. { --------------------------------------------------------------------
  3883. TJSAppNotificationServiceOptions
  3884. --------------------------------------------------------------------}
  3885. TJSAppNotificationServiceOptionsRec = record
  3886. textClickable: Boolean;
  3887. manifestURL: UnicodeString;
  3888. id: UnicodeString;
  3889. dbId: UnicodeString;
  3890. dir: UnicodeString;
  3891. lang: UnicodeString;
  3892. tag: UnicodeString;
  3893. data: UnicodeString;
  3894. mozbehavior: TJSNotificationBehavior;
  3895. end;
  3896. IJSAppNotificationServiceOptions = interface(IJSObject)
  3897. ['{19012140-08CE-352F-85AC-6E83F8D6B92A}']
  3898. function _GettextClickable: Boolean;
  3899. function _GetmanifestURL: UnicodeString;
  3900. function _Getid: UnicodeString;
  3901. function _GetdbId: UnicodeString;
  3902. function _Getdir: UnicodeString;
  3903. function _Getlang: UnicodeString;
  3904. function _Gettag: UnicodeString;
  3905. function _Getdata: UnicodeString;
  3906. function _Getmozbehavior: TJSNotificationBehavior;
  3907. procedure _SettextClickable(const aValue: Boolean);
  3908. procedure _SetmanifestURL(const aValue: UnicodeString);
  3909. procedure _Setid(const aValue: UnicodeString);
  3910. procedure _SetdbId(const aValue: UnicodeString);
  3911. procedure _Setdir(const aValue: UnicodeString);
  3912. procedure _Setlang(const aValue: UnicodeString);
  3913. procedure _Settag(const aValue: UnicodeString);
  3914. procedure _Setdata(const aValue: UnicodeString);
  3915. procedure _Setmozbehavior(const aValue: TJSNotificationBehavior);
  3916. property textClickable: Boolean read _GettextClickable write _SettextClickable;
  3917. property manifestURL: UnicodeString read _GetmanifestURL write _SetmanifestURL;
  3918. property id: UnicodeString read _Getid write _Setid;
  3919. property dbId: UnicodeString read _GetdbId write _SetdbId;
  3920. property dir: UnicodeString read _Getdir write _Setdir;
  3921. property lang: UnicodeString read _Getlang write _Setlang;
  3922. property tag: UnicodeString read _Gettag write _Settag;
  3923. property data: UnicodeString read _Getdata write _Setdata;
  3924. property mozbehavior: TJSNotificationBehavior read _Getmozbehavior write _Setmozbehavior;
  3925. end;
  3926. TJSAppNotificationServiceOptions = class(TJSObject,IJSAppNotificationServiceOptions)
  3927. Protected
  3928. function _GettextClickable: Boolean;
  3929. function _GetmanifestURL: UnicodeString;
  3930. function _Getid: UnicodeString;
  3931. function _GetdbId: UnicodeString;
  3932. function _Getdir: UnicodeString;
  3933. function _Getlang: UnicodeString;
  3934. function _Gettag: UnicodeString;
  3935. function _Getdata: UnicodeString;
  3936. function _Getmozbehavior: TJSNotificationBehavior;
  3937. procedure _SettextClickable(const aValue: Boolean);
  3938. procedure _SetmanifestURL(const aValue: UnicodeString);
  3939. procedure _Setid(const aValue: UnicodeString);
  3940. procedure _SetdbId(const aValue: UnicodeString);
  3941. procedure _Setdir(const aValue: UnicodeString);
  3942. procedure _Setlang(const aValue: UnicodeString);
  3943. procedure _Settag(const aValue: UnicodeString);
  3944. procedure _Setdata(const aValue: UnicodeString);
  3945. procedure _Setmozbehavior(const aValue: TJSNotificationBehavior);
  3946. Public
  3947. class function JSClassName: UnicodeString; override;
  3948. class function Cast(const Intf: IJSObject): IJSAppNotificationServiceOptions;
  3949. property textClickable: Boolean read _GettextClickable write _SettextClickable;
  3950. property manifestURL: UnicodeString read _GetmanifestURL write _SetmanifestURL;
  3951. property id: UnicodeString read _Getid write _Setid;
  3952. property dbId: UnicodeString read _GetdbId write _SetdbId;
  3953. property dir: UnicodeString read _Getdir write _Setdir;
  3954. property lang: UnicodeString read _Getlang write _Setlang;
  3955. property tag: UnicodeString read _Gettag write _Settag;
  3956. property data: UnicodeString read _Getdata write _Setdata;
  3957. property mozbehavior: TJSNotificationBehavior read _Getmozbehavior write _Setmozbehavior;
  3958. end;
  3959. { --------------------------------------------------------------------
  3960. TJSScrollFrameDataEntry
  3961. --------------------------------------------------------------------}
  3962. TJSScrollFrameDataEntryRec = record
  3963. key: UnicodeString;
  3964. value: UnicodeString;
  3965. end;
  3966. IJSScrollFrameDataEntry = interface(IJSObject)
  3967. ['{2ED6F823-6DFD-3EF8-8B0C-093AC483B224}']
  3968. function _Getkey: UnicodeString;
  3969. function _Getvalue: UnicodeString;
  3970. procedure _Setkey(const aValue: UnicodeString);
  3971. procedure _Setvalue(const aValue: UnicodeString);
  3972. property key: UnicodeString read _Getkey write _Setkey;
  3973. property value: UnicodeString read _Getvalue write _Setvalue;
  3974. end;
  3975. TJSScrollFrameDataEntry = class(TJSObject,IJSScrollFrameDataEntry)
  3976. Protected
  3977. function _Getkey: UnicodeString;
  3978. function _Getvalue: UnicodeString;
  3979. procedure _Setkey(const aValue: UnicodeString);
  3980. procedure _Setvalue(const aValue: UnicodeString);
  3981. Public
  3982. class function JSClassName: UnicodeString; override;
  3983. class function Cast(const Intf: IJSObject): IJSScrollFrameDataEntry;
  3984. property key: UnicodeString read _Getkey write _Setkey;
  3985. property value: UnicodeString read _Getvalue write _Setvalue;
  3986. end;
  3987. { --------------------------------------------------------------------
  3988. TJSScrollFrameData
  3989. --------------------------------------------------------------------}
  3990. TJSScrollFrameDataEntryDynArray = IJSArray; // array of ScrollFrameDataEntry
  3991. TJSScrollFrameDataRec = record
  3992. scrollId: QWord;
  3993. entries: TJSScrollFrameDataEntryDynArray;
  3994. end;
  3995. IJSScrollFrameData = interface(IJSObject)
  3996. ['{0DC2C610-B9D5-3FE6-B034-160ABE5A7963}']
  3997. function _GetscrollId: QWord;
  3998. function _Getentries: TJSScrollFrameDataEntryDynArray;
  3999. procedure _SetscrollId(const aValue: QWord);
  4000. procedure _Setentries(const aValue: TJSScrollFrameDataEntryDynArray);
  4001. property scrollId: QWord read _GetscrollId write _SetscrollId;
  4002. property entries: TJSScrollFrameDataEntryDynArray read _Getentries write _Setentries;
  4003. end;
  4004. TJSScrollFrameData = class(TJSObject,IJSScrollFrameData)
  4005. Protected
  4006. function _GetscrollId: QWord;
  4007. function _Getentries: TJSScrollFrameDataEntryDynArray;
  4008. procedure _SetscrollId(const aValue: QWord);
  4009. procedure _Setentries(const aValue: TJSScrollFrameDataEntryDynArray);
  4010. Public
  4011. class function JSClassName: UnicodeString; override;
  4012. class function Cast(const Intf: IJSObject): IJSScrollFrameData;
  4013. property scrollId: QWord read _GetscrollId write _SetscrollId;
  4014. property entries: TJSScrollFrameDataEntryDynArray read _Getentries write _Setentries;
  4015. end;
  4016. { --------------------------------------------------------------------
  4017. TJSAPZBucket
  4018. --------------------------------------------------------------------}
  4019. TJSScrollFrameDataDynArray = IJSArray; // array of ScrollFrameData
  4020. TJSAPZBucketRec = record
  4021. sequenceNumber: Cardinal;
  4022. scrollFrames: TJSScrollFrameDataDynArray;
  4023. end;
  4024. IJSAPZBucket = interface(IJSObject)
  4025. ['{BCE15B47-CD0D-3B3B-8AFC-6A6AE595683E}']
  4026. function _GetsequenceNumber: Cardinal;
  4027. function _GetscrollFrames: TJSScrollFrameDataDynArray;
  4028. procedure _SetsequenceNumber(const aValue: Cardinal);
  4029. procedure _SetscrollFrames(const aValue: TJSScrollFrameDataDynArray);
  4030. property sequenceNumber: Cardinal read _GetsequenceNumber write _SetsequenceNumber;
  4031. property scrollFrames: TJSScrollFrameDataDynArray read _GetscrollFrames write _SetscrollFrames;
  4032. end;
  4033. TJSAPZBucket = class(TJSObject,IJSAPZBucket)
  4034. Protected
  4035. function _GetsequenceNumber: Cardinal;
  4036. function _GetscrollFrames: TJSScrollFrameDataDynArray;
  4037. procedure _SetsequenceNumber(const aValue: Cardinal);
  4038. procedure _SetscrollFrames(const aValue: TJSScrollFrameDataDynArray);
  4039. Public
  4040. class function JSClassName: UnicodeString; override;
  4041. class function Cast(const Intf: IJSObject): IJSAPZBucket;
  4042. property sequenceNumber: Cardinal read _GetsequenceNumber write _SetsequenceNumber;
  4043. property scrollFrames: TJSScrollFrameDataDynArray read _GetscrollFrames write _SetscrollFrames;
  4044. end;
  4045. { --------------------------------------------------------------------
  4046. TJSAPZHitResult
  4047. --------------------------------------------------------------------}
  4048. TJSAPZHitResultRec = record
  4049. screenX: Single;
  4050. screenY: Single;
  4051. hitResult: Word;
  4052. layersId: QWord;
  4053. scrollId: QWord;
  4054. end;
  4055. IJSAPZHitResult = interface(IJSObject)
  4056. ['{893D0F89-F366-3F18-B05A-7E7F7A34F160}']
  4057. function _GetscreenX: Single;
  4058. function _GetscreenY: Single;
  4059. function _GethitResult: Word;
  4060. function _GetlayersId: QWord;
  4061. function _GetscrollId: QWord;
  4062. procedure _SetscreenX(const aValue: Single);
  4063. procedure _SetscreenY(const aValue: Single);
  4064. procedure _SethitResult(const aValue: Word);
  4065. procedure _SetlayersId(const aValue: QWord);
  4066. procedure _SetscrollId(const aValue: QWord);
  4067. property screenX: Single read _GetscreenX write _SetscreenX;
  4068. property screenY: Single read _GetscreenY write _SetscreenY;
  4069. property hitResult: Word read _GethitResult write _SethitResult;
  4070. property layersId: QWord read _GetlayersId write _SetlayersId;
  4071. property scrollId: QWord read _GetscrollId write _SetscrollId;
  4072. end;
  4073. TJSAPZHitResult = class(TJSObject,IJSAPZHitResult)
  4074. Protected
  4075. function _GetscreenX: Single;
  4076. function _GetscreenY: Single;
  4077. function _GethitResult: Word;
  4078. function _GetlayersId: QWord;
  4079. function _GetscrollId: QWord;
  4080. procedure _SetscreenX(const aValue: Single);
  4081. procedure _SetscreenY(const aValue: Single);
  4082. procedure _SethitResult(const aValue: Word);
  4083. procedure _SetlayersId(const aValue: QWord);
  4084. procedure _SetscrollId(const aValue: QWord);
  4085. Public
  4086. class function JSClassName: UnicodeString; override;
  4087. class function Cast(const Intf: IJSObject): IJSAPZHitResult;
  4088. property screenX: Single read _GetscreenX write _SetscreenX;
  4089. property screenY: Single read _GetscreenY write _SetscreenY;
  4090. property hitResult: Word read _GethitResult write _SethitResult;
  4091. property layersId: QWord read _GetlayersId write _SetlayersId;
  4092. property scrollId: QWord read _GetscrollId write _SetscrollId;
  4093. end;
  4094. { --------------------------------------------------------------------
  4095. TJSAPZSampledResult
  4096. --------------------------------------------------------------------}
  4097. TJSAPZSampledResultRec = record
  4098. scrollOffsetX: Single;
  4099. scrollOffsetY: Single;
  4100. sampledTimeStamp: TDOMHighResTimeStamp;
  4101. layersId: QWord;
  4102. scrollId: QWord;
  4103. end;
  4104. IJSAPZSampledResult = interface(IJSObject)
  4105. ['{B53B533A-E262-36EC-BA1D-3E71071AFC9D}']
  4106. function _GetscrollOffsetX: Single;
  4107. function _GetscrollOffsetY: Single;
  4108. function _GetsampledTimeStamp: TDOMHighResTimeStamp;
  4109. function _GetlayersId: QWord;
  4110. function _GetscrollId: QWord;
  4111. procedure _SetscrollOffsetX(const aValue: Single);
  4112. procedure _SetscrollOffsetY(const aValue: Single);
  4113. procedure _SetsampledTimeStamp(const aValue: TDOMHighResTimeStamp);
  4114. procedure _SetlayersId(const aValue: QWord);
  4115. procedure _SetscrollId(const aValue: QWord);
  4116. property scrollOffsetX: Single read _GetscrollOffsetX write _SetscrollOffsetX;
  4117. property scrollOffsetY: Single read _GetscrollOffsetY write _SetscrollOffsetY;
  4118. property sampledTimeStamp: TDOMHighResTimeStamp read _GetsampledTimeStamp write _SetsampledTimeStamp;
  4119. property layersId: QWord read _GetlayersId write _SetlayersId;
  4120. property scrollId: QWord read _GetscrollId write _SetscrollId;
  4121. end;
  4122. TJSAPZSampledResult = class(TJSObject,IJSAPZSampledResult)
  4123. Protected
  4124. function _GetscrollOffsetX: Single;
  4125. function _GetscrollOffsetY: Single;
  4126. function _GetsampledTimeStamp: TDOMHighResTimeStamp;
  4127. function _GetlayersId: QWord;
  4128. function _GetscrollId: QWord;
  4129. procedure _SetscrollOffsetX(const aValue: Single);
  4130. procedure _SetscrollOffsetY(const aValue: Single);
  4131. procedure _SetsampledTimeStamp(const aValue: TDOMHighResTimeStamp);
  4132. procedure _SetlayersId(const aValue: QWord);
  4133. procedure _SetscrollId(const aValue: QWord);
  4134. Public
  4135. class function JSClassName: UnicodeString; override;
  4136. class function Cast(const Intf: IJSObject): IJSAPZSampledResult;
  4137. property scrollOffsetX: Single read _GetscrollOffsetX write _SetscrollOffsetX;
  4138. property scrollOffsetY: Single read _GetscrollOffsetY write _SetscrollOffsetY;
  4139. property sampledTimeStamp: TDOMHighResTimeStamp read _GetsampledTimeStamp write _SetsampledTimeStamp;
  4140. property layersId: QWord read _GetlayersId write _SetlayersId;
  4141. property scrollId: QWord read _GetscrollId write _SetscrollId;
  4142. end;
  4143. { --------------------------------------------------------------------
  4144. TJSAdditionalDataEntry
  4145. --------------------------------------------------------------------}
  4146. TJSAdditionalDataEntryRec = record
  4147. key: UnicodeString;
  4148. value: UnicodeString;
  4149. end;
  4150. IJSAdditionalDataEntry = interface(IJSObject)
  4151. ['{0EDB9CBE-C5F8-379B-9EFD-2677AFD383B9}']
  4152. function _Getkey: UnicodeString;
  4153. function _Getvalue: UnicodeString;
  4154. procedure _Setkey(const aValue: UnicodeString);
  4155. procedure _Setvalue(const aValue: UnicodeString);
  4156. property key: UnicodeString read _Getkey write _Setkey;
  4157. property value: UnicodeString read _Getvalue write _Setvalue;
  4158. end;
  4159. TJSAdditionalDataEntry = class(TJSObject,IJSAdditionalDataEntry)
  4160. Protected
  4161. function _Getkey: UnicodeString;
  4162. function _Getvalue: UnicodeString;
  4163. procedure _Setkey(const aValue: UnicodeString);
  4164. procedure _Setvalue(const aValue: UnicodeString);
  4165. Public
  4166. class function JSClassName: UnicodeString; override;
  4167. class function Cast(const Intf: IJSObject): IJSAdditionalDataEntry;
  4168. property key: UnicodeString read _Getkey write _Setkey;
  4169. property value: UnicodeString read _Getvalue write _Setvalue;
  4170. end;
  4171. { --------------------------------------------------------------------
  4172. TJSAPZTestData
  4173. --------------------------------------------------------------------}
  4174. TJSAPZBucketDynArray = IJSArray; // array of APZBucket
  4175. TJSAPZHitResultDynArray = IJSArray; // array of APZHitResult
  4176. TJSAPZSampledResultDynArray = IJSArray; // array of APZSampledResult
  4177. TJSAdditionalDataEntryDynArray = IJSArray; // array of AdditionalDataEntry
  4178. TJSAPZTestDataRec = record
  4179. paints: TJSAPZBucketDynArray;
  4180. repaintRequests: TJSAPZBucketDynArray;
  4181. hitResults: TJSAPZHitResultDynArray;
  4182. sampledResults: TJSAPZSampledResultDynArray;
  4183. additionalData: TJSAdditionalDataEntryDynArray;
  4184. end;
  4185. IJSAPZTestData = interface(IJSObject)
  4186. ['{A5EE3B98-288B-3D24-8675-5A488CCFB30B}']
  4187. function _Getpaints: TJSAPZBucketDynArray;
  4188. function _GetrepaintRequests: TJSAPZBucketDynArray;
  4189. function _GethitResults: TJSAPZHitResultDynArray;
  4190. function _GetsampledResults: TJSAPZSampledResultDynArray;
  4191. function _GetadditionalData: TJSAdditionalDataEntryDynArray;
  4192. procedure _Setpaints(const aValue: TJSAPZBucketDynArray);
  4193. procedure _SetrepaintRequests(const aValue: TJSAPZBucketDynArray);
  4194. procedure _SethitResults(const aValue: TJSAPZHitResultDynArray);
  4195. procedure _SetsampledResults(const aValue: TJSAPZSampledResultDynArray);
  4196. procedure _SetadditionalData(const aValue: TJSAdditionalDataEntryDynArray);
  4197. property paints: TJSAPZBucketDynArray read _Getpaints write _Setpaints;
  4198. property repaintRequests: TJSAPZBucketDynArray read _GetrepaintRequests write _SetrepaintRequests;
  4199. property hitResults: TJSAPZHitResultDynArray read _GethitResults write _SethitResults;
  4200. property sampledResults: TJSAPZSampledResultDynArray read _GetsampledResults write _SetsampledResults;
  4201. property additionalData: TJSAdditionalDataEntryDynArray read _GetadditionalData write _SetadditionalData;
  4202. end;
  4203. TJSAPZTestData = class(TJSObject,IJSAPZTestData)
  4204. Protected
  4205. function _Getpaints: TJSAPZBucketDynArray;
  4206. function _GetrepaintRequests: TJSAPZBucketDynArray;
  4207. function _GethitResults: TJSAPZHitResultDynArray;
  4208. function _GetsampledResults: TJSAPZSampledResultDynArray;
  4209. function _GetadditionalData: TJSAdditionalDataEntryDynArray;
  4210. procedure _Setpaints(const aValue: TJSAPZBucketDynArray);
  4211. procedure _SetrepaintRequests(const aValue: TJSAPZBucketDynArray);
  4212. procedure _SethitResults(const aValue: TJSAPZHitResultDynArray);
  4213. procedure _SetsampledResults(const aValue: TJSAPZSampledResultDynArray);
  4214. procedure _SetadditionalData(const aValue: TJSAdditionalDataEntryDynArray);
  4215. Public
  4216. class function JSClassName: UnicodeString; override;
  4217. class function Cast(const Intf: IJSObject): IJSAPZTestData;
  4218. property paints: TJSAPZBucketDynArray read _Getpaints write _Setpaints;
  4219. property repaintRequests: TJSAPZBucketDynArray read _GetrepaintRequests write _SetrepaintRequests;
  4220. property hitResults: TJSAPZHitResultDynArray read _GethitResults write _SethitResults;
  4221. property sampledResults: TJSAPZSampledResultDynArray read _GetsampledResults write _SetsampledResults;
  4222. property additionalData: TJSAdditionalDataEntryDynArray read _GetadditionalData write _SetadditionalData;
  4223. end;
  4224. { --------------------------------------------------------------------
  4225. TJSFrameUniformity
  4226. --------------------------------------------------------------------}
  4227. TJSFrameUniformityRec = record
  4228. layerAddress: Cardinal;
  4229. frameUniformity: Single;
  4230. end;
  4231. IJSFrameUniformity = interface(IJSObject)
  4232. ['{43C2BB98-0818-3D49-8A2B-6E76D2B6F79D}']
  4233. function _GetlayerAddress: Cardinal;
  4234. function _GetframeUniformity: Single;
  4235. procedure _SetlayerAddress(const aValue: Cardinal);
  4236. procedure _SetframeUniformity(const aValue: Single);
  4237. property layerAddress: Cardinal read _GetlayerAddress write _SetlayerAddress;
  4238. property frameUniformity: Single read _GetframeUniformity write _SetframeUniformity;
  4239. end;
  4240. TJSFrameUniformity = class(TJSObject,IJSFrameUniformity)
  4241. Protected
  4242. function _GetlayerAddress: Cardinal;
  4243. function _GetframeUniformity: Single;
  4244. procedure _SetlayerAddress(const aValue: Cardinal);
  4245. procedure _SetframeUniformity(const aValue: Single);
  4246. Public
  4247. class function JSClassName: UnicodeString; override;
  4248. class function Cast(const Intf: IJSObject): IJSFrameUniformity;
  4249. property layerAddress: Cardinal read _GetlayerAddress write _SetlayerAddress;
  4250. property frameUniformity: Single read _GetframeUniformity write _SetframeUniformity;
  4251. end;
  4252. { --------------------------------------------------------------------
  4253. TJSFrameUniformityResults
  4254. --------------------------------------------------------------------}
  4255. TJSFrameUniformityDynArray = IJSArray; // array of FrameUniformity
  4256. TJSFrameUniformityResultsRec = record
  4257. layerUniformities: TJSFrameUniformityDynArray;
  4258. end;
  4259. IJSFrameUniformityResults = interface(IJSObject)
  4260. ['{22827500-C134-3C54-A0DB-49BDA30A5F7E}']
  4261. function _GetlayerUniformities: TJSFrameUniformityDynArray;
  4262. procedure _SetlayerUniformities(const aValue: TJSFrameUniformityDynArray);
  4263. property layerUniformities: TJSFrameUniformityDynArray read _GetlayerUniformities write _SetlayerUniformities;
  4264. end;
  4265. TJSFrameUniformityResults = class(TJSObject,IJSFrameUniformityResults)
  4266. Protected
  4267. function _GetlayerUniformities: TJSFrameUniformityDynArray;
  4268. procedure _SetlayerUniformities(const aValue: TJSFrameUniformityDynArray);
  4269. Public
  4270. class function JSClassName: UnicodeString; override;
  4271. class function Cast(const Intf: IJSObject): IJSFrameUniformityResults;
  4272. property layerUniformities: TJSFrameUniformityDynArray read _GetlayerUniformities write _SetlayerUniformities;
  4273. end;
  4274. { --------------------------------------------------------------------
  4275. TJSAudioBufferOptions
  4276. --------------------------------------------------------------------}
  4277. TJSAudioBufferOptionsRec = record
  4278. numberOfChannels: Cardinal;
  4279. length_: Cardinal;
  4280. sampleRate: Single;
  4281. end;
  4282. IJSAudioBufferOptions = interface(IJSObject)
  4283. ['{F05FFBCA-EAE6-35BB-87E2-5E099770288B}']
  4284. function _GetnumberOfChannels: Cardinal;
  4285. function _Getlength_: Cardinal;
  4286. function _GetsampleRate: Single;
  4287. procedure _SetnumberOfChannels(const aValue: Cardinal);
  4288. procedure _Setlength_(const aValue: Cardinal);
  4289. procedure _SetsampleRate(const aValue: Single);
  4290. property numberOfChannels: Cardinal read _GetnumberOfChannels write _SetnumberOfChannels;
  4291. property length_: Cardinal read _Getlength_ write _Setlength_;
  4292. property sampleRate: Single read _GetsampleRate write _SetsampleRate;
  4293. end;
  4294. TJSAudioBufferOptions = class(TJSObject,IJSAudioBufferOptions)
  4295. Protected
  4296. function _GetnumberOfChannels: Cardinal;
  4297. function _Getlength_: Cardinal;
  4298. function _GetsampleRate: Single;
  4299. procedure _SetnumberOfChannels(const aValue: Cardinal);
  4300. procedure _Setlength_(const aValue: Cardinal);
  4301. procedure _SetsampleRate(const aValue: Single);
  4302. Public
  4303. class function JSClassName: UnicodeString; override;
  4304. class function Cast(const Intf: IJSObject): IJSAudioBufferOptions;
  4305. property numberOfChannels: Cardinal read _GetnumberOfChannels write _SetnumberOfChannels;
  4306. property length_: Cardinal read _Getlength_ write _Setlength_;
  4307. property sampleRate: Single read _GetsampleRate write _SetsampleRate;
  4308. end;
  4309. { --------------------------------------------------------------------
  4310. TJSAudioBufferSourceOptions
  4311. --------------------------------------------------------------------}
  4312. TJSAudioBufferSourceOptionsRec = record
  4313. buffer: TJSAudioBuffer;
  4314. detune: Single;
  4315. loop: Boolean;
  4316. loopEnd: Double;
  4317. loopStart: Double;
  4318. playbackRate: Single;
  4319. end;
  4320. IJSAudioBufferSourceOptions = interface(IJSObject)
  4321. ['{48151194-905C-3634-AB55-2A35842EAA35}']
  4322. function _Getbuffer: IJSAudioBuffer;
  4323. function _Getdetune: Single;
  4324. function _Getloop: Boolean;
  4325. function _GetloopEnd: Double;
  4326. function _GetloopStart: Double;
  4327. function _GetplaybackRate: Single;
  4328. procedure _Setbuffer(const aValue: IJSAudioBuffer);
  4329. procedure _Setdetune(const aValue: Single);
  4330. procedure _Setloop(const aValue: Boolean);
  4331. procedure _SetloopEnd(const aValue: Double);
  4332. procedure _SetloopStart(const aValue: Double);
  4333. procedure _SetplaybackRate(const aValue: Single);
  4334. property buffer: IJSAudioBuffer read _Getbuffer write _Setbuffer;
  4335. property detune: Single read _Getdetune write _Setdetune;
  4336. property loop: Boolean read _Getloop write _Setloop;
  4337. property loopEnd: Double read _GetloopEnd write _SetloopEnd;
  4338. property loopStart: Double read _GetloopStart write _SetloopStart;
  4339. property playbackRate: Single read _GetplaybackRate write _SetplaybackRate;
  4340. end;
  4341. TJSAudioBufferSourceOptions = class(TJSObject,IJSAudioBufferSourceOptions)
  4342. Protected
  4343. function _Getbuffer: IJSAudioBuffer;
  4344. function _Getdetune: Single;
  4345. function _Getloop: Boolean;
  4346. function _GetloopEnd: Double;
  4347. function _GetloopStart: Double;
  4348. function _GetplaybackRate: Single;
  4349. procedure _Setbuffer(const aValue: IJSAudioBuffer);
  4350. procedure _Setdetune(const aValue: Single);
  4351. procedure _Setloop(const aValue: Boolean);
  4352. procedure _SetloopEnd(const aValue: Double);
  4353. procedure _SetloopStart(const aValue: Double);
  4354. procedure _SetplaybackRate(const aValue: Single);
  4355. Public
  4356. class function JSClassName: UnicodeString; override;
  4357. class function Cast(const Intf: IJSObject): IJSAudioBufferSourceOptions;
  4358. property buffer: IJSAudioBuffer read _Getbuffer write _Setbuffer;
  4359. property detune: Single read _Getdetune write _Setdetune;
  4360. property loop: Boolean read _Getloop write _Setloop;
  4361. property loopEnd: Double read _GetloopEnd write _SetloopEnd;
  4362. property loopStart: Double read _GetloopStart write _SetloopStart;
  4363. property playbackRate: Single read _GetplaybackRate write _SetplaybackRate;
  4364. end;
  4365. { --------------------------------------------------------------------
  4366. TJSAudioContextOptions
  4367. --------------------------------------------------------------------}
  4368. TJSAudioContextOptionsRec = record
  4369. sampleRate: Single;
  4370. end;
  4371. IJSAudioContextOptions = interface(IJSObject)
  4372. ['{70703266-C0C8-38C8-B038-AB2C5DC36041}']
  4373. function _GetsampleRate: Single;
  4374. procedure _SetsampleRate(const aValue: Single);
  4375. property sampleRate: Single read _GetsampleRate write _SetsampleRate;
  4376. end;
  4377. TJSAudioContextOptions = class(TJSObject,IJSAudioContextOptions)
  4378. Protected
  4379. function _GetsampleRate: Single;
  4380. procedure _SetsampleRate(const aValue: Single);
  4381. Public
  4382. class function JSClassName: UnicodeString; override;
  4383. class function Cast(const Intf: IJSObject): IJSAudioContextOptions;
  4384. property sampleRate: Single read _GetsampleRate write _SetsampleRate;
  4385. end;
  4386. { --------------------------------------------------------------------
  4387. TJSAudioTimestamp
  4388. --------------------------------------------------------------------}
  4389. TJSAudioTimestampRec = record
  4390. contextTime: Double;
  4391. performanceTime: TDOMHighResTimeStamp;
  4392. end;
  4393. IJSAudioTimestamp = interface(IJSObject)
  4394. ['{A5CAD830-A09B-35C6-82D1-5823105E9A82}']
  4395. function _GetcontextTime: Double;
  4396. function _GetperformanceTime: TDOMHighResTimeStamp;
  4397. procedure _SetcontextTime(const aValue: Double);
  4398. procedure _SetperformanceTime(const aValue: TDOMHighResTimeStamp);
  4399. property contextTime: Double read _GetcontextTime write _SetcontextTime;
  4400. property performanceTime: TDOMHighResTimeStamp read _GetperformanceTime write _SetperformanceTime;
  4401. end;
  4402. TJSAudioTimestamp = class(TJSObject,IJSAudioTimestamp)
  4403. Protected
  4404. function _GetcontextTime: Double;
  4405. function _GetperformanceTime: TDOMHighResTimeStamp;
  4406. procedure _SetcontextTime(const aValue: Double);
  4407. procedure _SetperformanceTime(const aValue: TDOMHighResTimeStamp);
  4408. Public
  4409. class function JSClassName: UnicodeString; override;
  4410. class function Cast(const Intf: IJSObject): IJSAudioTimestamp;
  4411. property contextTime: Double read _GetcontextTime write _SetcontextTime;
  4412. property performanceTime: TDOMHighResTimeStamp read _GetperformanceTime write _SetperformanceTime;
  4413. end;
  4414. { --------------------------------------------------------------------
  4415. TJSAudioDataInit
  4416. --------------------------------------------------------------------}
  4417. // Union of ArrayBufferView, ArrayBuffer
  4418. TAudioDataInit_data_Type = Variant;
  4419. TIJSArrayBufferDynArray = IJSArray; // array of ArrayBuffer
  4420. TJSAudioDataInitRec = record
  4421. format: TAudioSampleFormat;
  4422. sampleRate: Single;
  4423. numberOfFrames: Cardinal;
  4424. numberOfChannels: Cardinal;
  4425. timestamp: Int64;
  4426. data: TAudioDataInit_data_Type;
  4427. transfer: TIJSArrayBufferDynArray;
  4428. end;
  4429. IJSAudioDataInit = interface(IJSObject)
  4430. ['{6A12983B-D453-3A05-ABAF-2E00F3AC98F5}']
  4431. function _Getformat: TAudioSampleFormat;
  4432. function _GetsampleRate: Single;
  4433. function _GetnumberOfFrames: Cardinal;
  4434. function _GetnumberOfChannels: Cardinal;
  4435. function _Gettimestamp: Int64;
  4436. function _Getdata: TAudioDataInit_data_Type;
  4437. function _Gettransfer: TIJSArrayBufferDynArray;
  4438. procedure _Setformat(const aValue: TAudioSampleFormat);
  4439. procedure _SetsampleRate(const aValue: Single);
  4440. procedure _SetnumberOfFrames(const aValue: Cardinal);
  4441. procedure _SetnumberOfChannels(const aValue: Cardinal);
  4442. procedure _Settimestamp(const aValue: Int64);
  4443. procedure _Setdata(const aValue: TAudioDataInit_data_Type);
  4444. procedure _Settransfer(const aValue: TIJSArrayBufferDynArray);
  4445. property format: TAudioSampleFormat read _Getformat write _Setformat;
  4446. property sampleRate: Single read _GetsampleRate write _SetsampleRate;
  4447. property numberOfFrames: Cardinal read _GetnumberOfFrames write _SetnumberOfFrames;
  4448. property numberOfChannels: Cardinal read _GetnumberOfChannels write _SetnumberOfChannels;
  4449. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  4450. property data: TAudioDataInit_data_Type read _Getdata write _Setdata;
  4451. property transfer: TIJSArrayBufferDynArray read _Gettransfer write _Settransfer;
  4452. end;
  4453. TJSAudioDataInit = class(TJSObject,IJSAudioDataInit)
  4454. Protected
  4455. function _Getformat: TAudioSampleFormat;
  4456. function _GetsampleRate: Single;
  4457. function _GetnumberOfFrames: Cardinal;
  4458. function _GetnumberOfChannels: Cardinal;
  4459. function _Gettimestamp: Int64;
  4460. function _Getdata: TAudioDataInit_data_Type;
  4461. function _Gettransfer: TIJSArrayBufferDynArray;
  4462. procedure _Setformat(const aValue: TAudioSampleFormat);
  4463. procedure _SetsampleRate(const aValue: Single);
  4464. procedure _SetnumberOfFrames(const aValue: Cardinal);
  4465. procedure _SetnumberOfChannels(const aValue: Cardinal);
  4466. procedure _Settimestamp(const aValue: Int64);
  4467. procedure _Setdata(const aValue: TAudioDataInit_data_Type);
  4468. procedure _Settransfer(const aValue: TIJSArrayBufferDynArray);
  4469. Public
  4470. class function JSClassName: UnicodeString; override;
  4471. class function Cast(const Intf: IJSObject): IJSAudioDataInit;
  4472. property format: TAudioSampleFormat read _Getformat write _Setformat;
  4473. property sampleRate: Single read _GetsampleRate write _SetsampleRate;
  4474. property numberOfFrames: Cardinal read _GetnumberOfFrames write _SetnumberOfFrames;
  4475. property numberOfChannels: Cardinal read _GetnumberOfChannels write _SetnumberOfChannels;
  4476. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  4477. property data: TAudioDataInit_data_Type read _Getdata write _Setdata;
  4478. property transfer: TIJSArrayBufferDynArray read _Gettransfer write _Settransfer;
  4479. end;
  4480. { --------------------------------------------------------------------
  4481. TJSAudioDataCopyToOptions
  4482. --------------------------------------------------------------------}
  4483. TJSAudioDataCopyToOptionsRec = record
  4484. planeIndex: Cardinal;
  4485. frameOffset: Cardinal;
  4486. frameCount: Cardinal;
  4487. format: TAudioSampleFormat;
  4488. end;
  4489. IJSAudioDataCopyToOptions = interface(IJSObject)
  4490. ['{21CABF44-B579-306F-B790-390BE2964B0D}']
  4491. function _GetplaneIndex: Cardinal;
  4492. function _GetframeOffset: Cardinal;
  4493. function _GetframeCount: Cardinal;
  4494. function _Getformat: TAudioSampleFormat;
  4495. procedure _SetplaneIndex(const aValue: Cardinal);
  4496. procedure _SetframeOffset(const aValue: Cardinal);
  4497. procedure _SetframeCount(const aValue: Cardinal);
  4498. procedure _Setformat(const aValue: TAudioSampleFormat);
  4499. property planeIndex: Cardinal read _GetplaneIndex write _SetplaneIndex;
  4500. property frameOffset: Cardinal read _GetframeOffset write _SetframeOffset;
  4501. property frameCount: Cardinal read _GetframeCount write _SetframeCount;
  4502. property format: TAudioSampleFormat read _Getformat write _Setformat;
  4503. end;
  4504. TJSAudioDataCopyToOptions = class(TJSObject,IJSAudioDataCopyToOptions)
  4505. Protected
  4506. function _GetplaneIndex: Cardinal;
  4507. function _GetframeOffset: Cardinal;
  4508. function _GetframeCount: Cardinal;
  4509. function _Getformat: TAudioSampleFormat;
  4510. procedure _SetplaneIndex(const aValue: Cardinal);
  4511. procedure _SetframeOffset(const aValue: Cardinal);
  4512. procedure _SetframeCount(const aValue: Cardinal);
  4513. procedure _Setformat(const aValue: TAudioSampleFormat);
  4514. Public
  4515. class function JSClassName: UnicodeString; override;
  4516. class function Cast(const Intf: IJSObject): IJSAudioDataCopyToOptions;
  4517. property planeIndex: Cardinal read _GetplaneIndex write _SetplaneIndex;
  4518. property frameOffset: Cardinal read _GetframeOffset write _SetframeOffset;
  4519. property frameCount: Cardinal read _GetframeCount write _SetframeCount;
  4520. property format: TAudioSampleFormat read _Getformat write _Setformat;
  4521. end;
  4522. { --------------------------------------------------------------------
  4523. TJSAudioDecoderInit
  4524. --------------------------------------------------------------------}
  4525. TJSAudioDecoderInitRec = record
  4526. output: TAudioDataOutputCallback;
  4527. error: TWebCodecsErrorCallback;
  4528. end;
  4529. IJSAudioDecoderInit = interface(IJSObject)
  4530. ['{0E8976E5-E963-3DD7-A533-241C74BC299E}']
  4531. function _Getoutput: TAudioDataOutputCallback;
  4532. function _Geterror: TWebCodecsErrorCallback;
  4533. procedure _Setoutput(const aValue: TAudioDataOutputCallback);
  4534. procedure _Seterror(const aValue: TWebCodecsErrorCallback);
  4535. property output: TAudioDataOutputCallback read _Getoutput write _Setoutput;
  4536. property error: TWebCodecsErrorCallback read _Geterror write _Seterror;
  4537. end;
  4538. TJSAudioDecoderInit = class(TJSObject,IJSAudioDecoderInit)
  4539. Protected
  4540. function _Getoutput: TAudioDataOutputCallback;
  4541. function _Geterror: TWebCodecsErrorCallback;
  4542. procedure _Setoutput(const aValue: TAudioDataOutputCallback);
  4543. procedure _Seterror(const aValue: TWebCodecsErrorCallback);
  4544. Public
  4545. class function JSClassName: UnicodeString; override;
  4546. class function Cast(const Intf: IJSObject): IJSAudioDecoderInit;
  4547. property output: TAudioDataOutputCallback read _Getoutput write _Setoutput;
  4548. property error: TWebCodecsErrorCallback read _Geterror write _Seterror;
  4549. end;
  4550. { --------------------------------------------------------------------
  4551. TJSAudioDecoderSupport
  4552. --------------------------------------------------------------------}
  4553. TJSAudioDecoderSupportRec = record
  4554. supported: Boolean;
  4555. config: TJSAudioDecoderConfig;
  4556. end;
  4557. IJSAudioDecoderSupport = interface(IJSObject)
  4558. ['{41DA73DA-A527-31F8-A4FD-D23A5FB7D06D}']
  4559. function _Getsupported: Boolean;
  4560. function _Getconfig: TJSAudioDecoderConfig;
  4561. procedure _Setsupported(const aValue: Boolean);
  4562. procedure _Setconfig(const aValue: TJSAudioDecoderConfig);
  4563. property supported: Boolean read _Getsupported write _Setsupported;
  4564. property config: TJSAudioDecoderConfig read _Getconfig write _Setconfig;
  4565. end;
  4566. TJSAudioDecoderSupport = class(TJSObject,IJSAudioDecoderSupport)
  4567. Protected
  4568. function _Getsupported: Boolean;
  4569. function _Getconfig: TJSAudioDecoderConfig;
  4570. procedure _Setsupported(const aValue: Boolean);
  4571. procedure _Setconfig(const aValue: TJSAudioDecoderConfig);
  4572. Public
  4573. class function JSClassName: UnicodeString; override;
  4574. class function Cast(const Intf: IJSObject): IJSAudioDecoderSupport;
  4575. property supported: Boolean read _Getsupported write _Setsupported;
  4576. property config: TJSAudioDecoderConfig read _Getconfig write _Setconfig;
  4577. end;
  4578. { --------------------------------------------------------------------
  4579. TJSAudioDecoderConfig
  4580. --------------------------------------------------------------------}
  4581. // Union of ArrayBufferView, ArrayBuffer
  4582. TAudioDecoderConfig_description_Type = Variant;
  4583. TJSAudioDecoderConfigRec = record
  4584. codec: UnicodeString;
  4585. sampleRate: Cardinal;
  4586. numberOfChannels: Cardinal;
  4587. description: TAudioDecoderConfig_description_Type;
  4588. end;
  4589. IJSAudioDecoderConfig = interface(IJSObject)
  4590. ['{5B492ED4-F100-31FB-A4E4-904AC508C283}']
  4591. function _Getcodec: UnicodeString;
  4592. function _GetsampleRate: Cardinal;
  4593. function _GetnumberOfChannels: Cardinal;
  4594. function _Getdescription: TAudioDecoderConfig_description_Type;
  4595. procedure _Setcodec(const aValue: UnicodeString);
  4596. procedure _SetsampleRate(const aValue: Cardinal);
  4597. procedure _SetnumberOfChannels(const aValue: Cardinal);
  4598. procedure _Setdescription(const aValue: TAudioDecoderConfig_description_Type);
  4599. property codec: UnicodeString read _Getcodec write _Setcodec;
  4600. property sampleRate: Cardinal read _GetsampleRate write _SetsampleRate;
  4601. property numberOfChannels: Cardinal read _GetnumberOfChannels write _SetnumberOfChannels;
  4602. property description: TAudioDecoderConfig_description_Type read _Getdescription write _Setdescription;
  4603. end;
  4604. TJSAudioDecoderConfig = class(TJSObject,IJSAudioDecoderConfig)
  4605. Protected
  4606. function _Getcodec: UnicodeString;
  4607. function _GetsampleRate: Cardinal;
  4608. function _GetnumberOfChannels: Cardinal;
  4609. function _Getdescription: TAudioDecoderConfig_description_Type;
  4610. procedure _Setcodec(const aValue: UnicodeString);
  4611. procedure _SetsampleRate(const aValue: Cardinal);
  4612. procedure _SetnumberOfChannels(const aValue: Cardinal);
  4613. procedure _Setdescription(const aValue: TAudioDecoderConfig_description_Type);
  4614. Public
  4615. class function JSClassName: UnicodeString; override;
  4616. class function Cast(const Intf: IJSObject): IJSAudioDecoderConfig;
  4617. property codec: UnicodeString read _Getcodec write _Setcodec;
  4618. property sampleRate: Cardinal read _GetsampleRate write _SetsampleRate;
  4619. property numberOfChannels: Cardinal read _GetnumberOfChannels write _SetnumberOfChannels;
  4620. property description: TAudioDecoderConfig_description_Type read _Getdescription write _Setdescription;
  4621. end;
  4622. { --------------------------------------------------------------------
  4623. TJSAudioEncoderSupport
  4624. --------------------------------------------------------------------}
  4625. TJSAudioEncoderSupportRec = record
  4626. supported: Boolean;
  4627. config: TJSAudioEncoderConfig;
  4628. end;
  4629. IJSAudioEncoderSupport = interface(IJSObject)
  4630. ['{41DA73DA-A531-31F8-A4FD-D23A5FB7D06D}']
  4631. function _Getsupported: Boolean;
  4632. function _Getconfig: TJSAudioEncoderConfig;
  4633. procedure _Setsupported(const aValue: Boolean);
  4634. procedure _Setconfig(const aValue: TJSAudioEncoderConfig);
  4635. property supported: Boolean read _Getsupported write _Setsupported;
  4636. property config: TJSAudioEncoderConfig read _Getconfig write _Setconfig;
  4637. end;
  4638. TJSAudioEncoderSupport = class(TJSObject,IJSAudioEncoderSupport)
  4639. Protected
  4640. function _Getsupported: Boolean;
  4641. function _Getconfig: TJSAudioEncoderConfig;
  4642. procedure _Setsupported(const aValue: Boolean);
  4643. procedure _Setconfig(const aValue: TJSAudioEncoderConfig);
  4644. Public
  4645. class function JSClassName: UnicodeString; override;
  4646. class function Cast(const Intf: IJSObject): IJSAudioEncoderSupport;
  4647. property supported: Boolean read _Getsupported write _Setsupported;
  4648. property config: TJSAudioEncoderConfig read _Getconfig write _Setconfig;
  4649. end;
  4650. { --------------------------------------------------------------------
  4651. TJSAudioEncoderConfig
  4652. --------------------------------------------------------------------}
  4653. TJSAudioEncoderConfigRec = record
  4654. codec: UnicodeString;
  4655. sampleRate: Cardinal;
  4656. numberOfChannels: Cardinal;
  4657. bitrate: QWord;
  4658. bitrateMode: TBitrateMode;
  4659. opus: TJSOpusEncoderConfig;
  4660. end;
  4661. IJSAudioEncoderConfig = interface(IJSObject)
  4662. ['{7236C925-22ED-3AAA-A61A-9D598F1B1592}']
  4663. function _Getcodec: UnicodeString;
  4664. function _GetsampleRate: Cardinal;
  4665. function _GetnumberOfChannels: Cardinal;
  4666. function _Getbitrate: QWord;
  4667. function _GetbitrateMode: TBitrateMode;
  4668. function _Getopus: TJSOpusEncoderConfig;
  4669. procedure _Setcodec(const aValue: UnicodeString);
  4670. procedure _SetsampleRate(const aValue: Cardinal);
  4671. procedure _SetnumberOfChannels(const aValue: Cardinal);
  4672. procedure _Setbitrate(const aValue: QWord);
  4673. procedure _SetbitrateMode(const aValue: TBitrateMode);
  4674. procedure _Setopus(const aValue: TJSOpusEncoderConfig);
  4675. property codec: UnicodeString read _Getcodec write _Setcodec;
  4676. property sampleRate: Cardinal read _GetsampleRate write _SetsampleRate;
  4677. property numberOfChannels: Cardinal read _GetnumberOfChannels write _SetnumberOfChannels;
  4678. property bitrate: QWord read _Getbitrate write _Setbitrate;
  4679. property bitrateMode: TBitrateMode read _GetbitrateMode write _SetbitrateMode;
  4680. property opus: TJSOpusEncoderConfig read _Getopus write _Setopus;
  4681. end;
  4682. TJSAudioEncoderConfig = class(TJSObject,IJSAudioEncoderConfig)
  4683. Protected
  4684. function _Getcodec: UnicodeString;
  4685. function _GetsampleRate: Cardinal;
  4686. function _GetnumberOfChannels: Cardinal;
  4687. function _Getbitrate: QWord;
  4688. function _GetbitrateMode: TBitrateMode;
  4689. function _Getopus: TJSOpusEncoderConfig;
  4690. procedure _Setcodec(const aValue: UnicodeString);
  4691. procedure _SetsampleRate(const aValue: Cardinal);
  4692. procedure _SetnumberOfChannels(const aValue: Cardinal);
  4693. procedure _Setbitrate(const aValue: QWord);
  4694. procedure _SetbitrateMode(const aValue: TBitrateMode);
  4695. procedure _Setopus(const aValue: TJSOpusEncoderConfig);
  4696. Public
  4697. class function JSClassName: UnicodeString; override;
  4698. class function Cast(const Intf: IJSObject): IJSAudioEncoderConfig;
  4699. property codec: UnicodeString read _Getcodec write _Setcodec;
  4700. property sampleRate: Cardinal read _GetsampleRate write _SetsampleRate;
  4701. property numberOfChannels: Cardinal read _GetnumberOfChannels write _SetnumberOfChannels;
  4702. property bitrate: QWord read _Getbitrate write _Setbitrate;
  4703. property bitrateMode: TBitrateMode read _GetbitrateMode write _SetbitrateMode;
  4704. property opus: TJSOpusEncoderConfig read _Getopus write _Setopus;
  4705. end;
  4706. { --------------------------------------------------------------------
  4707. TJSOpusEncoderConfig
  4708. --------------------------------------------------------------------}
  4709. TJSOpusEncoderConfigRec = record
  4710. format: TOpusBitstreamFormat;
  4711. frameDuration: QWord;
  4712. complexity: Cardinal;
  4713. packetlossperc: Cardinal;
  4714. useinbandfec: Boolean;
  4715. usedtx: Boolean;
  4716. end;
  4717. IJSOpusEncoderConfig = interface(IJSObject)
  4718. ['{39879995-3A1C-31B2-A51F-A814795EB275}']
  4719. function _Getformat: TOpusBitstreamFormat;
  4720. function _GetframeDuration: QWord;
  4721. function _Getcomplexity: Cardinal;
  4722. function _Getpacketlossperc: Cardinal;
  4723. function _Getuseinbandfec: Boolean;
  4724. function _Getusedtx: Boolean;
  4725. procedure _Setformat(const aValue: TOpusBitstreamFormat);
  4726. procedure _SetframeDuration(const aValue: QWord);
  4727. procedure _Setcomplexity(const aValue: Cardinal);
  4728. procedure _Setpacketlossperc(const aValue: Cardinal);
  4729. procedure _Setuseinbandfec(const aValue: Boolean);
  4730. procedure _Setusedtx(const aValue: Boolean);
  4731. property format: TOpusBitstreamFormat read _Getformat write _Setformat;
  4732. property frameDuration: QWord read _GetframeDuration write _SetframeDuration;
  4733. property complexity: Cardinal read _Getcomplexity write _Setcomplexity;
  4734. property packetlossperc: Cardinal read _Getpacketlossperc write _Setpacketlossperc;
  4735. property useinbandfec: Boolean read _Getuseinbandfec write _Setuseinbandfec;
  4736. property usedtx: Boolean read _Getusedtx write _Setusedtx;
  4737. end;
  4738. TJSOpusEncoderConfig = class(TJSObject,IJSOpusEncoderConfig)
  4739. Protected
  4740. function _Getformat: TOpusBitstreamFormat;
  4741. function _GetframeDuration: QWord;
  4742. function _Getcomplexity: Cardinal;
  4743. function _Getpacketlossperc: Cardinal;
  4744. function _Getuseinbandfec: Boolean;
  4745. function _Getusedtx: Boolean;
  4746. procedure _Setformat(const aValue: TOpusBitstreamFormat);
  4747. procedure _SetframeDuration(const aValue: QWord);
  4748. procedure _Setcomplexity(const aValue: Cardinal);
  4749. procedure _Setpacketlossperc(const aValue: Cardinal);
  4750. procedure _Setuseinbandfec(const aValue: Boolean);
  4751. procedure _Setusedtx(const aValue: Boolean);
  4752. Public
  4753. class function JSClassName: UnicodeString; override;
  4754. class function Cast(const Intf: IJSObject): IJSOpusEncoderConfig;
  4755. property format: TOpusBitstreamFormat read _Getformat write _Setformat;
  4756. property frameDuration: QWord read _GetframeDuration write _SetframeDuration;
  4757. property complexity: Cardinal read _Getcomplexity write _Setcomplexity;
  4758. property packetlossperc: Cardinal read _Getpacketlossperc write _Setpacketlossperc;
  4759. property useinbandfec: Boolean read _Getuseinbandfec write _Setuseinbandfec;
  4760. property usedtx: Boolean read _Getusedtx write _Setusedtx;
  4761. end;
  4762. { --------------------------------------------------------------------
  4763. TJSAudioEncoderInit
  4764. --------------------------------------------------------------------}
  4765. TJSAudioEncoderInitRec = record
  4766. output: TEncodedAudioChunkOutputCallback;
  4767. error: TWebCodecsErrorCallback;
  4768. end;
  4769. IJSAudioEncoderInit = interface(IJSObject)
  4770. ['{0E8976E5-E96E-3DD7-A533-241C74BC299E}']
  4771. function _Getoutput: TEncodedAudioChunkOutputCallback;
  4772. function _Geterror: TWebCodecsErrorCallback;
  4773. procedure _Setoutput(const aValue: TEncodedAudioChunkOutputCallback);
  4774. procedure _Seterror(const aValue: TWebCodecsErrorCallback);
  4775. property output: TEncodedAudioChunkOutputCallback read _Getoutput write _Setoutput;
  4776. property error: TWebCodecsErrorCallback read _Geterror write _Seterror;
  4777. end;
  4778. TJSAudioEncoderInit = class(TJSObject,IJSAudioEncoderInit)
  4779. Protected
  4780. function _Getoutput: TEncodedAudioChunkOutputCallback;
  4781. function _Geterror: TWebCodecsErrorCallback;
  4782. procedure _Setoutput(const aValue: TEncodedAudioChunkOutputCallback);
  4783. procedure _Seterror(const aValue: TWebCodecsErrorCallback);
  4784. Public
  4785. class function JSClassName: UnicodeString; override;
  4786. class function Cast(const Intf: IJSObject): IJSAudioEncoderInit;
  4787. property output: TEncodedAudioChunkOutputCallback read _Getoutput write _Setoutput;
  4788. property error: TWebCodecsErrorCallback read _Geterror write _Seterror;
  4789. end;
  4790. { --------------------------------------------------------------------
  4791. TJSEncodedAudioChunkMetadata
  4792. --------------------------------------------------------------------}
  4793. TJSEncodedAudioChunkMetadataRec = record
  4794. decoderConfig: TJSAudioDecoderConfig;
  4795. end;
  4796. IJSEncodedAudioChunkMetadata = interface(IJSObject)
  4797. ['{5EE78293-A254-3539-9835-367AEBC7168D}']
  4798. function _GetdecoderConfig: TJSAudioDecoderConfig;
  4799. procedure _SetdecoderConfig(const aValue: TJSAudioDecoderConfig);
  4800. property decoderConfig: TJSAudioDecoderConfig read _GetdecoderConfig write _SetdecoderConfig;
  4801. end;
  4802. TJSEncodedAudioChunkMetadata = class(TJSObject,IJSEncodedAudioChunkMetadata)
  4803. Protected
  4804. function _GetdecoderConfig: TJSAudioDecoderConfig;
  4805. procedure _SetdecoderConfig(const aValue: TJSAudioDecoderConfig);
  4806. Public
  4807. class function JSClassName: UnicodeString; override;
  4808. class function Cast(const Intf: IJSObject): IJSEncodedAudioChunkMetadata;
  4809. property decoderConfig: TJSAudioDecoderConfig read _GetdecoderConfig write _SetdecoderConfig;
  4810. end;
  4811. { --------------------------------------------------------------------
  4812. TJSAudioNodeOptions
  4813. --------------------------------------------------------------------}
  4814. TJSAudioNodeOptionsRec = record
  4815. channelCount: Cardinal;
  4816. channelCountMode: TChannelCountMode;
  4817. channelInterpretation: TChannelInterpretation;
  4818. end;
  4819. IJSAudioNodeOptions = interface(IJSObject)
  4820. ['{31410881-F353-357C-8EB8-925B8ECEE486}']
  4821. function _GetchannelCount: Cardinal;
  4822. function _GetchannelCountMode: TChannelCountMode;
  4823. function _GetchannelInterpretation: TChannelInterpretation;
  4824. procedure _SetchannelCount(const aValue: Cardinal);
  4825. procedure _SetchannelCountMode(const aValue: TChannelCountMode);
  4826. procedure _SetchannelInterpretation(const aValue: TChannelInterpretation);
  4827. property channelCount: Cardinal read _GetchannelCount write _SetchannelCount;
  4828. property channelCountMode: TChannelCountMode read _GetchannelCountMode write _SetchannelCountMode;
  4829. property channelInterpretation: TChannelInterpretation read _GetchannelInterpretation write _SetchannelInterpretation;
  4830. end;
  4831. TJSAudioNodeOptions = class(TJSObject,IJSAudioNodeOptions)
  4832. Protected
  4833. function _GetchannelCount: Cardinal;
  4834. function _GetchannelCountMode: TChannelCountMode;
  4835. function _GetchannelInterpretation: TChannelInterpretation;
  4836. procedure _SetchannelCount(const aValue: Cardinal);
  4837. procedure _SetchannelCountMode(const aValue: TChannelCountMode);
  4838. procedure _SetchannelInterpretation(const aValue: TChannelInterpretation);
  4839. Public
  4840. class function JSClassName: UnicodeString; override;
  4841. class function Cast(const Intf: IJSObject): IJSAudioNodeOptions;
  4842. property channelCount: Cardinal read _GetchannelCount write _SetchannelCount;
  4843. property channelCountMode: TChannelCountMode read _GetchannelCountMode write _SetchannelCountMode;
  4844. property channelInterpretation: TChannelInterpretation read _GetchannelInterpretation write _SetchannelInterpretation;
  4845. end;
  4846. { --------------------------------------------------------------------
  4847. TJSAudioParamDescriptor
  4848. --------------------------------------------------------------------}
  4849. TJSAudioParamDescriptorRec = record
  4850. name: UnicodeString;
  4851. defaultValue: Single;
  4852. minValue: Single;
  4853. maxValue: Single;
  4854. end;
  4855. IJSAudioParamDescriptor = interface(IJSObject)
  4856. ['{9771E6F0-A08A-3F90-935C-0701EDFCE2FC}']
  4857. function _Getname: UnicodeString;
  4858. function _GetdefaultValue: Single;
  4859. function _GetminValue: Single;
  4860. function _GetmaxValue: Single;
  4861. procedure _Setname(const aValue: UnicodeString);
  4862. procedure _SetdefaultValue(const aValue: Single);
  4863. procedure _SetminValue(const aValue: Single);
  4864. procedure _SetmaxValue(const aValue: Single);
  4865. property name: UnicodeString read _Getname write _Setname;
  4866. property defaultValue: Single read _GetdefaultValue write _SetdefaultValue;
  4867. property minValue: Single read _GetminValue write _SetminValue;
  4868. property maxValue: Single read _GetmaxValue write _SetmaxValue;
  4869. end;
  4870. TJSAudioParamDescriptor = class(TJSObject,IJSAudioParamDescriptor)
  4871. Protected
  4872. function _Getname: UnicodeString;
  4873. function _GetdefaultValue: Single;
  4874. function _GetminValue: Single;
  4875. function _GetmaxValue: Single;
  4876. procedure _Setname(const aValue: UnicodeString);
  4877. procedure _SetdefaultValue(const aValue: Single);
  4878. procedure _SetminValue(const aValue: Single);
  4879. procedure _SetmaxValue(const aValue: Single);
  4880. Public
  4881. class function JSClassName: UnicodeString; override;
  4882. class function Cast(const Intf: IJSObject): IJSAudioParamDescriptor;
  4883. property name: UnicodeString read _Getname write _Setname;
  4884. property defaultValue: Single read _GetdefaultValue write _SetdefaultValue;
  4885. property minValue: Single read _GetminValue write _SetminValue;
  4886. property maxValue: Single read _GetmaxValue write _SetmaxValue;
  4887. end;
  4888. { --------------------------------------------------------------------
  4889. TJSAutocompleteInfo
  4890. --------------------------------------------------------------------}
  4891. TJSAutocompleteInfoRec = record
  4892. section: UnicodeString;
  4893. addressType: UnicodeString;
  4894. contactType: UnicodeString;
  4895. fieldName: UnicodeString;
  4896. credentialType: UnicodeString;
  4897. canAutomaticallyPersist: Boolean;
  4898. end;
  4899. IJSAutocompleteInfo = interface(IJSObject)
  4900. ['{544C018C-4F07-32F7-B736-DC4B9BE8BF02}']
  4901. function _Getsection: UnicodeString;
  4902. function _GetaddressType: UnicodeString;
  4903. function _GetcontactType: UnicodeString;
  4904. function _GetfieldName: UnicodeString;
  4905. function _GetcredentialType: UnicodeString;
  4906. function _GetcanAutomaticallyPersist: Boolean;
  4907. procedure _Setsection(const aValue: UnicodeString);
  4908. procedure _SetaddressType(const aValue: UnicodeString);
  4909. procedure _SetcontactType(const aValue: UnicodeString);
  4910. procedure _SetfieldName(const aValue: UnicodeString);
  4911. procedure _SetcredentialType(const aValue: UnicodeString);
  4912. procedure _SetcanAutomaticallyPersist(const aValue: Boolean);
  4913. property section: UnicodeString read _Getsection write _Setsection;
  4914. property addressType: UnicodeString read _GetaddressType write _SetaddressType;
  4915. property contactType: UnicodeString read _GetcontactType write _SetcontactType;
  4916. property fieldName: UnicodeString read _GetfieldName write _SetfieldName;
  4917. property credentialType: UnicodeString read _GetcredentialType write _SetcredentialType;
  4918. property canAutomaticallyPersist: Boolean read _GetcanAutomaticallyPersist write _SetcanAutomaticallyPersist;
  4919. end;
  4920. TJSAutocompleteInfo = class(TJSObject,IJSAutocompleteInfo)
  4921. Protected
  4922. function _Getsection: UnicodeString;
  4923. function _GetaddressType: UnicodeString;
  4924. function _GetcontactType: UnicodeString;
  4925. function _GetfieldName: UnicodeString;
  4926. function _GetcredentialType: UnicodeString;
  4927. function _GetcanAutomaticallyPersist: Boolean;
  4928. procedure _Setsection(const aValue: UnicodeString);
  4929. procedure _SetaddressType(const aValue: UnicodeString);
  4930. procedure _SetcontactType(const aValue: UnicodeString);
  4931. procedure _SetfieldName(const aValue: UnicodeString);
  4932. procedure _SetcredentialType(const aValue: UnicodeString);
  4933. procedure _SetcanAutomaticallyPersist(const aValue: Boolean);
  4934. Public
  4935. class function JSClassName: UnicodeString; override;
  4936. class function Cast(const Intf: IJSObject): IJSAutocompleteInfo;
  4937. property section: UnicodeString read _Getsection write _Setsection;
  4938. property addressType: UnicodeString read _GetaddressType write _SetaddressType;
  4939. property contactType: UnicodeString read _GetcontactType write _SetcontactType;
  4940. property fieldName: UnicodeString read _GetfieldName write _SetfieldName;
  4941. property credentialType: UnicodeString read _GetcredentialType write _SetcredentialType;
  4942. property canAutomaticallyPersist: Boolean read _GetcanAutomaticallyPersist write _SetcanAutomaticallyPersist;
  4943. end;
  4944. { --------------------------------------------------------------------
  4945. TJSBasePropertyIndexedKeyframe
  4946. --------------------------------------------------------------------}
  4947. // Union of double, sequence
  4948. TBasePropertyIndexedKeyframe_offset_Type = Variant;
  4949. // Union of UTF8String, sequence
  4950. TBasePropertyIndexedKeyframe_easing_Type = Variant;
  4951. // Union of CompositeOperationOrAuto, sequence
  4952. TBasePropertyIndexedKeyframe_composite_Type = Variant;
  4953. TJSBasePropertyIndexedKeyframeRec = record
  4954. offset: TBasePropertyIndexedKeyframe_offset_Type;
  4955. easing: TBasePropertyIndexedKeyframe_easing_Type;
  4956. composite: TBasePropertyIndexedKeyframe_composite_Type;
  4957. end;
  4958. IJSBasePropertyIndexedKeyframe = interface(IJSObject)
  4959. ['{68A54B28-31F7-3CC3-B9A3-83CA13EC8351}']
  4960. function _Getoffset: TBasePropertyIndexedKeyframe_offset_Type;
  4961. function _Geteasing: TBasePropertyIndexedKeyframe_easing_Type;
  4962. function _Getcomposite: TBasePropertyIndexedKeyframe_composite_Type;
  4963. procedure _Setoffset(const aValue: TBasePropertyIndexedKeyframe_offset_Type);
  4964. procedure _Seteasing(const aValue: TBasePropertyIndexedKeyframe_easing_Type);
  4965. procedure _Setcomposite(const aValue: TBasePropertyIndexedKeyframe_composite_Type);
  4966. property offset: TBasePropertyIndexedKeyframe_offset_Type read _Getoffset write _Setoffset;
  4967. property easing: TBasePropertyIndexedKeyframe_easing_Type read _Geteasing write _Seteasing;
  4968. property composite: TBasePropertyIndexedKeyframe_composite_Type read _Getcomposite write _Setcomposite;
  4969. end;
  4970. TJSBasePropertyIndexedKeyframe = class(TJSObject,IJSBasePropertyIndexedKeyframe)
  4971. Protected
  4972. function _Getoffset: TBasePropertyIndexedKeyframe_offset_Type;
  4973. function _Geteasing: TBasePropertyIndexedKeyframe_easing_Type;
  4974. function _Getcomposite: TBasePropertyIndexedKeyframe_composite_Type;
  4975. procedure _Setoffset(const aValue: TBasePropertyIndexedKeyframe_offset_Type);
  4976. procedure _Seteasing(const aValue: TBasePropertyIndexedKeyframe_easing_Type);
  4977. procedure _Setcomposite(const aValue: TBasePropertyIndexedKeyframe_composite_Type);
  4978. Public
  4979. class function JSClassName: UnicodeString; override;
  4980. class function Cast(const Intf: IJSObject): IJSBasePropertyIndexedKeyframe;
  4981. property offset: TBasePropertyIndexedKeyframe_offset_Type read _Getoffset write _Setoffset;
  4982. property easing: TBasePropertyIndexedKeyframe_easing_Type read _Geteasing write _Seteasing;
  4983. property composite: TBasePropertyIndexedKeyframe_composite_Type read _Getcomposite write _Setcomposite;
  4984. end;
  4985. { --------------------------------------------------------------------
  4986. TJSBaseKeyframe
  4987. --------------------------------------------------------------------}
  4988. TJSBaseKeyframeRec = record
  4989. offset: Double;
  4990. easing: UTF8String;
  4991. composite: TCompositeOperationOrAuto;
  4992. end;
  4993. IJSBaseKeyframe = interface(IJSObject)
  4994. ['{8DF54C72-30D3-3922-8965-17A1586A7A2B}']
  4995. function _Getoffset: Double;
  4996. function _Geteasing: UTF8String;
  4997. function _Getcomposite: TCompositeOperationOrAuto;
  4998. procedure _Setoffset(const aValue: Double);
  4999. procedure _Seteasing(const aValue: UTF8String);
  5000. procedure _Setcomposite(const aValue: TCompositeOperationOrAuto);
  5001. property offset: Double read _Getoffset write _Setoffset;
  5002. property easing: UTF8String read _Geteasing write _Seteasing;
  5003. property composite: TCompositeOperationOrAuto read _Getcomposite write _Setcomposite;
  5004. end;
  5005. TJSBaseKeyframe = class(TJSObject,IJSBaseKeyframe)
  5006. Protected
  5007. function _Getoffset: Double;
  5008. function _Geteasing: UTF8String;
  5009. function _Getcomposite: TCompositeOperationOrAuto;
  5010. procedure _Setoffset(const aValue: Double);
  5011. procedure _Seteasing(const aValue: UTF8String);
  5012. procedure _Setcomposite(const aValue: TCompositeOperationOrAuto);
  5013. Public
  5014. class function JSClassName: UnicodeString; override;
  5015. class function Cast(const Intf: IJSObject): IJSBaseKeyframe;
  5016. property offset: Double read _Getoffset write _Setoffset;
  5017. property easing: UTF8String read _Geteasing write _Seteasing;
  5018. property composite: TCompositeOperationOrAuto read _Getcomposite write _Setcomposite;
  5019. end;
  5020. { --------------------------------------------------------------------
  5021. TJSBasicCardRequest
  5022. --------------------------------------------------------------------}
  5023. TJSBasicCardRequestRec = record
  5024. supportedNetworks: TUnicodeStringDynArray;
  5025. requestSecurityCode: Boolean;
  5026. end;
  5027. IJSBasicCardRequest = interface(IJSObject)
  5028. ['{32801286-D3C2-37EA-9A66-17FAA5D624E2}']
  5029. function _GetsupportedNetworks: TUnicodeStringDynArray;
  5030. function _GetrequestSecurityCode: Boolean;
  5031. procedure _SetsupportedNetworks(const aValue: TUnicodeStringDynArray);
  5032. procedure _SetrequestSecurityCode(const aValue: Boolean);
  5033. property supportedNetworks: TUnicodeStringDynArray read _GetsupportedNetworks write _SetsupportedNetworks;
  5034. property requestSecurityCode: Boolean read _GetrequestSecurityCode write _SetrequestSecurityCode;
  5035. end;
  5036. TJSBasicCardRequest = class(TJSObject,IJSBasicCardRequest)
  5037. Protected
  5038. function _GetsupportedNetworks: TUnicodeStringDynArray;
  5039. function _GetrequestSecurityCode: Boolean;
  5040. procedure _SetsupportedNetworks(const aValue: TUnicodeStringDynArray);
  5041. procedure _SetrequestSecurityCode(const aValue: Boolean);
  5042. Public
  5043. class function JSClassName: UnicodeString; override;
  5044. class function Cast(const Intf: IJSObject): IJSBasicCardRequest;
  5045. property supportedNetworks: TUnicodeStringDynArray read _GetsupportedNetworks write _SetsupportedNetworks;
  5046. property requestSecurityCode: Boolean read _GetrequestSecurityCode write _SetrequestSecurityCode;
  5047. end;
  5048. { --------------------------------------------------------------------
  5049. TJSBasicCardResponse
  5050. --------------------------------------------------------------------}
  5051. TJSBasicCardResponseRec = record
  5052. cardholderName: UnicodeString;
  5053. cardNumber: UnicodeString;
  5054. expiryMonth: UnicodeString;
  5055. expiryYear: UnicodeString;
  5056. cardSecurityCode: UnicodeString;
  5057. billingAddress: TJSPaymentAddress;
  5058. end;
  5059. IJSBasicCardResponse = interface(IJSObject)
  5060. ['{F5446EC9-C805-3E29-9AF2-4E1CE51CA3A9}']
  5061. function _GetcardholderName: UnicodeString;
  5062. function _GetcardNumber: UnicodeString;
  5063. function _GetexpiryMonth: UnicodeString;
  5064. function _GetexpiryYear: UnicodeString;
  5065. function _GetcardSecurityCode: UnicodeString;
  5066. function _GetbillingAddress: IJSPaymentAddress;
  5067. procedure _SetcardholderName(const aValue: UnicodeString);
  5068. procedure _SetcardNumber(const aValue: UnicodeString);
  5069. procedure _SetexpiryMonth(const aValue: UnicodeString);
  5070. procedure _SetexpiryYear(const aValue: UnicodeString);
  5071. procedure _SetcardSecurityCode(const aValue: UnicodeString);
  5072. procedure _SetbillingAddress(const aValue: IJSPaymentAddress);
  5073. property cardholderName: UnicodeString read _GetcardholderName write _SetcardholderName;
  5074. property cardNumber: UnicodeString read _GetcardNumber write _SetcardNumber;
  5075. property expiryMonth: UnicodeString read _GetexpiryMonth write _SetexpiryMonth;
  5076. property expiryYear: UnicodeString read _GetexpiryYear write _SetexpiryYear;
  5077. property cardSecurityCode: UnicodeString read _GetcardSecurityCode write _SetcardSecurityCode;
  5078. property billingAddress: IJSPaymentAddress read _GetbillingAddress write _SetbillingAddress;
  5079. end;
  5080. TJSBasicCardResponse = class(TJSObject,IJSBasicCardResponse)
  5081. Protected
  5082. function _GetcardholderName: UnicodeString;
  5083. function _GetcardNumber: UnicodeString;
  5084. function _GetexpiryMonth: UnicodeString;
  5085. function _GetexpiryYear: UnicodeString;
  5086. function _GetcardSecurityCode: UnicodeString;
  5087. function _GetbillingAddress: IJSPaymentAddress;
  5088. procedure _SetcardholderName(const aValue: UnicodeString);
  5089. procedure _SetcardNumber(const aValue: UnicodeString);
  5090. procedure _SetexpiryMonth(const aValue: UnicodeString);
  5091. procedure _SetexpiryYear(const aValue: UnicodeString);
  5092. procedure _SetcardSecurityCode(const aValue: UnicodeString);
  5093. procedure _SetbillingAddress(const aValue: IJSPaymentAddress);
  5094. Public
  5095. class function JSClassName: UnicodeString; override;
  5096. class function Cast(const Intf: IJSObject): IJSBasicCardResponse;
  5097. property cardholderName: UnicodeString read _GetcardholderName write _SetcardholderName;
  5098. property cardNumber: UnicodeString read _GetcardNumber write _SetcardNumber;
  5099. property expiryMonth: UnicodeString read _GetexpiryMonth write _SetexpiryMonth;
  5100. property expiryYear: UnicodeString read _GetexpiryYear write _SetexpiryYear;
  5101. property cardSecurityCode: UnicodeString read _GetcardSecurityCode write _SetcardSecurityCode;
  5102. property billingAddress: IJSPaymentAddress read _GetbillingAddress write _SetbillingAddress;
  5103. end;
  5104. { --------------------------------------------------------------------
  5105. TJSBasicCardChangeDetails
  5106. --------------------------------------------------------------------}
  5107. TJSBasicCardChangeDetailsRec = record
  5108. billingAddress: TJSPaymentAddress;
  5109. end;
  5110. IJSBasicCardChangeDetails = interface(IJSObject)
  5111. ['{9C1B2486-3AF1-3E5D-963A-DCA1A53AF76B}']
  5112. function _GetbillingAddress: IJSPaymentAddress;
  5113. procedure _SetbillingAddress(const aValue: IJSPaymentAddress);
  5114. property billingAddress: IJSPaymentAddress read _GetbillingAddress write _SetbillingAddress;
  5115. end;
  5116. TJSBasicCardChangeDetails = class(TJSObject,IJSBasicCardChangeDetails)
  5117. Protected
  5118. function _GetbillingAddress: IJSPaymentAddress;
  5119. procedure _SetbillingAddress(const aValue: IJSPaymentAddress);
  5120. Public
  5121. class function JSClassName: UnicodeString; override;
  5122. class function Cast(const Intf: IJSObject): IJSBasicCardChangeDetails;
  5123. property billingAddress: IJSPaymentAddress read _GetbillingAddress write _SetbillingAddress;
  5124. end;
  5125. { --------------------------------------------------------------------
  5126. TJSBasicCardErrors
  5127. --------------------------------------------------------------------}
  5128. TJSBasicCardErrorsRec = record
  5129. cardNumber: UnicodeString;
  5130. cardholderName: UnicodeString;
  5131. cardSecurityCode: UnicodeString;
  5132. expiryMonth: UnicodeString;
  5133. expiryYear: UnicodeString;
  5134. billingAddress: TJSAddressErrors;
  5135. end;
  5136. IJSBasicCardErrors = interface(IJSObject)
  5137. ['{D4B21C74-ECD7-3959-A5B3-7D227AA1AD81}']
  5138. function _GetcardNumber: UnicodeString;
  5139. function _GetcardholderName: UnicodeString;
  5140. function _GetcardSecurityCode: UnicodeString;
  5141. function _GetexpiryMonth: UnicodeString;
  5142. function _GetexpiryYear: UnicodeString;
  5143. function _GetbillingAddress: TJSAddressErrors;
  5144. procedure _SetcardNumber(const aValue: UnicodeString);
  5145. procedure _SetcardholderName(const aValue: UnicodeString);
  5146. procedure _SetcardSecurityCode(const aValue: UnicodeString);
  5147. procedure _SetexpiryMonth(const aValue: UnicodeString);
  5148. procedure _SetexpiryYear(const aValue: UnicodeString);
  5149. procedure _SetbillingAddress(const aValue: TJSAddressErrors);
  5150. property cardNumber: UnicodeString read _GetcardNumber write _SetcardNumber;
  5151. property cardholderName: UnicodeString read _GetcardholderName write _SetcardholderName;
  5152. property cardSecurityCode: UnicodeString read _GetcardSecurityCode write _SetcardSecurityCode;
  5153. property expiryMonth: UnicodeString read _GetexpiryMonth write _SetexpiryMonth;
  5154. property expiryYear: UnicodeString read _GetexpiryYear write _SetexpiryYear;
  5155. property billingAddress: TJSAddressErrors read _GetbillingAddress write _SetbillingAddress;
  5156. end;
  5157. TJSBasicCardErrors = class(TJSObject,IJSBasicCardErrors)
  5158. Protected
  5159. function _GetcardNumber: UnicodeString;
  5160. function _GetcardholderName: UnicodeString;
  5161. function _GetcardSecurityCode: UnicodeString;
  5162. function _GetexpiryMonth: UnicodeString;
  5163. function _GetexpiryYear: UnicodeString;
  5164. function _GetbillingAddress: TJSAddressErrors;
  5165. procedure _SetcardNumber(const aValue: UnicodeString);
  5166. procedure _SetcardholderName(const aValue: UnicodeString);
  5167. procedure _SetcardSecurityCode(const aValue: UnicodeString);
  5168. procedure _SetexpiryMonth(const aValue: UnicodeString);
  5169. procedure _SetexpiryYear(const aValue: UnicodeString);
  5170. procedure _SetbillingAddress(const aValue: TJSAddressErrors);
  5171. Public
  5172. class function JSClassName: UnicodeString; override;
  5173. class function Cast(const Intf: IJSObject): IJSBasicCardErrors;
  5174. property cardNumber: UnicodeString read _GetcardNumber write _SetcardNumber;
  5175. property cardholderName: UnicodeString read _GetcardholderName write _SetcardholderName;
  5176. property cardSecurityCode: UnicodeString read _GetcardSecurityCode write _SetcardSecurityCode;
  5177. property expiryMonth: UnicodeString read _GetexpiryMonth write _SetexpiryMonth;
  5178. property expiryYear: UnicodeString read _GetexpiryYear write _SetexpiryYear;
  5179. property billingAddress: TJSAddressErrors read _GetbillingAddress write _SetbillingAddress;
  5180. end;
  5181. { --------------------------------------------------------------------
  5182. TJSBlobPropertyBag
  5183. --------------------------------------------------------------------}
  5184. TJSBlobPropertyBagRec = record
  5185. type_: UnicodeString;
  5186. endings: TEndingType;
  5187. end;
  5188. IJSBlobPropertyBag = interface(IJSObject)
  5189. ['{28B80F11-F50F-3B2A-B3B5-7F8A7D3F8963}']
  5190. function _Gettype_: UnicodeString;
  5191. function _Getendings: TEndingType;
  5192. procedure _Settype_(const aValue: UnicodeString);
  5193. procedure _Setendings(const aValue: TEndingType);
  5194. property type_: UnicodeString read _Gettype_ write _Settype_;
  5195. property endings: TEndingType read _Getendings write _Setendings;
  5196. end;
  5197. TJSBlobPropertyBag = class(TJSObject,IJSBlobPropertyBag)
  5198. Protected
  5199. function _Gettype_: UnicodeString;
  5200. function _Getendings: TEndingType;
  5201. procedure _Settype_(const aValue: UnicodeString);
  5202. procedure _Setendings(const aValue: TEndingType);
  5203. Public
  5204. class function JSClassName: UnicodeString; override;
  5205. class function Cast(const Intf: IJSObject): IJSBlobPropertyBag;
  5206. property type_: UnicodeString read _Gettype_ write _Settype_;
  5207. property endings: TEndingType read _Getendings write _Setendings;
  5208. end;
  5209. { --------------------------------------------------------------------
  5210. TJSOpenWindowEventDetail
  5211. --------------------------------------------------------------------}
  5212. TJSOpenWindowEventDetailRec = record
  5213. url: UnicodeString;
  5214. name: UnicodeString;
  5215. features: UnicodeString;
  5216. frameElement: IJSNode;
  5217. forceNoReferrer: Boolean;
  5218. end;
  5219. IJSOpenWindowEventDetail = interface(IJSObject)
  5220. ['{6BB82376-B96D-386A-8E01-CEE78478D8AF}']
  5221. function _Geturl: UnicodeString;
  5222. function _Getname: UnicodeString;
  5223. function _Getfeatures: UnicodeString;
  5224. function _GetframeElement: IJSNode;
  5225. function _GetforceNoReferrer: Boolean;
  5226. procedure _Seturl(const aValue: UnicodeString);
  5227. procedure _Setname(const aValue: UnicodeString);
  5228. procedure _Setfeatures(const aValue: UnicodeString);
  5229. procedure _SetframeElement(const aValue: IJSNode);
  5230. procedure _SetforceNoReferrer(const aValue: Boolean);
  5231. property url: UnicodeString read _Geturl write _Seturl;
  5232. property name: UnicodeString read _Getname write _Setname;
  5233. property features: UnicodeString read _Getfeatures write _Setfeatures;
  5234. property frameElement: IJSNode read _GetframeElement write _SetframeElement;
  5235. property forceNoReferrer: Boolean read _GetforceNoReferrer write _SetforceNoReferrer;
  5236. end;
  5237. TJSOpenWindowEventDetail = class(TJSObject,IJSOpenWindowEventDetail)
  5238. Protected
  5239. function _Geturl: UnicodeString;
  5240. function _Getname: UnicodeString;
  5241. function _Getfeatures: UnicodeString;
  5242. function _GetframeElement: IJSNode;
  5243. function _GetforceNoReferrer: Boolean;
  5244. procedure _Seturl(const aValue: UnicodeString);
  5245. procedure _Setname(const aValue: UnicodeString);
  5246. procedure _Setfeatures(const aValue: UnicodeString);
  5247. procedure _SetframeElement(const aValue: IJSNode);
  5248. procedure _SetforceNoReferrer(const aValue: Boolean);
  5249. Public
  5250. class function JSClassName: UnicodeString; override;
  5251. class function Cast(const Intf: IJSObject): IJSOpenWindowEventDetail;
  5252. property url: UnicodeString read _Geturl write _Seturl;
  5253. property name: UnicodeString read _Getname write _Setname;
  5254. property features: UnicodeString read _Getfeatures write _Setfeatures;
  5255. property frameElement: IJSNode read _GetframeElement write _SetframeElement;
  5256. property forceNoReferrer: Boolean read _GetforceNoReferrer write _SetforceNoReferrer;
  5257. end;
  5258. { --------------------------------------------------------------------
  5259. TJSDOMWindowResizeEventDetail
  5260. --------------------------------------------------------------------}
  5261. TJSDOMWindowResizeEventDetailRec = record
  5262. width: LongInt;
  5263. height: LongInt;
  5264. end;
  5265. IJSDOMWindowResizeEventDetail = interface(IJSObject)
  5266. ['{C8AD54E0-454E-37C1-9FFB-809B5AF005EF}']
  5267. function _Getwidth: LongInt;
  5268. function _Getheight: LongInt;
  5269. procedure _Setwidth(const aValue: LongInt);
  5270. procedure _Setheight(const aValue: LongInt);
  5271. property width: LongInt read _Getwidth write _Setwidth;
  5272. property height: LongInt read _Getheight write _Setheight;
  5273. end;
  5274. TJSDOMWindowResizeEventDetail = class(TJSObject,IJSDOMWindowResizeEventDetail)
  5275. Protected
  5276. function _Getwidth: LongInt;
  5277. function _Getheight: LongInt;
  5278. procedure _Setwidth(const aValue: LongInt);
  5279. procedure _Setheight(const aValue: LongInt);
  5280. Public
  5281. class function JSClassName: UnicodeString; override;
  5282. class function Cast(const Intf: IJSObject): IJSDOMWindowResizeEventDetail;
  5283. property width: LongInt read _Getwidth write _Setwidth;
  5284. property height: LongInt read _Getheight write _Setheight;
  5285. end;
  5286. { --------------------------------------------------------------------
  5287. TJSCacheQueryOptions
  5288. --------------------------------------------------------------------}
  5289. TJSCacheQueryOptionsRec = record
  5290. ignoreSearch: Boolean;
  5291. ignoreMethod: Boolean;
  5292. ignoreVary: Boolean;
  5293. end;
  5294. IJSCacheQueryOptions = interface(IJSObject)
  5295. ['{116C2709-8F25-3217-A0B2-099FDA9A632D}']
  5296. function _GetignoreSearch: Boolean;
  5297. function _GetignoreMethod: Boolean;
  5298. function _GetignoreVary: Boolean;
  5299. procedure _SetignoreSearch(const aValue: Boolean);
  5300. procedure _SetignoreMethod(const aValue: Boolean);
  5301. procedure _SetignoreVary(const aValue: Boolean);
  5302. property ignoreSearch: Boolean read _GetignoreSearch write _SetignoreSearch;
  5303. property ignoreMethod: Boolean read _GetignoreMethod write _SetignoreMethod;
  5304. property ignoreVary: Boolean read _GetignoreVary write _SetignoreVary;
  5305. end;
  5306. TJSCacheQueryOptions = class(TJSObject,IJSCacheQueryOptions)
  5307. Protected
  5308. function _GetignoreSearch: Boolean;
  5309. function _GetignoreMethod: Boolean;
  5310. function _GetignoreVary: Boolean;
  5311. procedure _SetignoreSearch(const aValue: Boolean);
  5312. procedure _SetignoreMethod(const aValue: Boolean);
  5313. procedure _SetignoreVary(const aValue: Boolean);
  5314. Public
  5315. class function JSClassName: UnicodeString; override;
  5316. class function Cast(const Intf: IJSObject): IJSCacheQueryOptions;
  5317. property ignoreSearch: Boolean read _GetignoreSearch write _SetignoreSearch;
  5318. property ignoreMethod: Boolean read _GetignoreMethod write _SetignoreMethod;
  5319. property ignoreVary: Boolean read _GetignoreVary write _SetignoreVary;
  5320. end;
  5321. { --------------------------------------------------------------------
  5322. TJSCacheBatchOperation
  5323. --------------------------------------------------------------------}
  5324. TJSCacheBatchOperationRec = record
  5325. type_: UnicodeString;
  5326. request: TJSRequest;
  5327. response: TJSResponse;
  5328. options: TJSCacheQueryOptions;
  5329. end;
  5330. IJSCacheBatchOperation = interface(IJSObject)
  5331. ['{A46EA67E-C746-39AC-9175-DC5CC8EA0143}']
  5332. function _Gettype_: UnicodeString;
  5333. function _Getrequest: IJSRequest;
  5334. function _Getresponse: IJSResponse;
  5335. function _Getoptions: TJSCacheQueryOptions;
  5336. procedure _Settype_(const aValue: UnicodeString);
  5337. procedure _Setrequest(const aValue: IJSRequest);
  5338. procedure _Setresponse(const aValue: IJSResponse);
  5339. procedure _Setoptions(const aValue: TJSCacheQueryOptions);
  5340. property type_: UnicodeString read _Gettype_ write _Settype_;
  5341. property request: IJSRequest read _Getrequest write _Setrequest;
  5342. property response: IJSResponse read _Getresponse write _Setresponse;
  5343. property options: TJSCacheQueryOptions read _Getoptions write _Setoptions;
  5344. end;
  5345. TJSCacheBatchOperation = class(TJSObject,IJSCacheBatchOperation)
  5346. Protected
  5347. function _Gettype_: UnicodeString;
  5348. function _Getrequest: IJSRequest;
  5349. function _Getresponse: IJSResponse;
  5350. function _Getoptions: TJSCacheQueryOptions;
  5351. procedure _Settype_(const aValue: UnicodeString);
  5352. procedure _Setrequest(const aValue: IJSRequest);
  5353. procedure _Setresponse(const aValue: IJSResponse);
  5354. procedure _Setoptions(const aValue: TJSCacheQueryOptions);
  5355. Public
  5356. class function JSClassName: UnicodeString; override;
  5357. class function Cast(const Intf: IJSObject): IJSCacheBatchOperation;
  5358. property type_: UnicodeString read _Gettype_ write _Settype_;
  5359. property request: IJSRequest read _Getrequest write _Setrequest;
  5360. property response: IJSResponse read _Getresponse write _Setresponse;
  5361. property options: TJSCacheQueryOptions read _Getoptions write _Setoptions;
  5362. end;
  5363. { --------------------------------------------------------------------
  5364. TJSCancelContentJSOptions
  5365. --------------------------------------------------------------------}
  5366. TJSCancelContentJSOptionsRec = record
  5367. index: LongInt;
  5368. uri: TJSURI;
  5369. epoch: LongInt;
  5370. end;
  5371. IJSCancelContentJSOptions = interface(IJSObject)
  5372. ['{0D77D28C-BD44-3455-93E0-EF37555AB971}']
  5373. function _Getindex: LongInt;
  5374. function _Geturi: IJSURI;
  5375. function _Getepoch: LongInt;
  5376. procedure _Setindex(const aValue: LongInt);
  5377. procedure _Seturi(const aValue: IJSURI);
  5378. procedure _Setepoch(const aValue: LongInt);
  5379. property index: LongInt read _Getindex write _Setindex;
  5380. property uri: IJSURI read _Geturi write _Seturi;
  5381. property epoch: LongInt read _Getepoch write _Setepoch;
  5382. end;
  5383. TJSCancelContentJSOptions = class(TJSObject,IJSCancelContentJSOptions)
  5384. Protected
  5385. function _Getindex: LongInt;
  5386. function _Geturi: IJSURI;
  5387. function _Getepoch: LongInt;
  5388. procedure _Setindex(const aValue: LongInt);
  5389. procedure _Seturi(const aValue: IJSURI);
  5390. procedure _Setepoch(const aValue: LongInt);
  5391. Public
  5392. class function JSClassName: UnicodeString; override;
  5393. class function Cast(const Intf: IJSObject): IJSCancelContentJSOptions;
  5394. property index: LongInt read _Getindex write _Setindex;
  5395. property uri: IJSURI read _Geturi write _Seturi;
  5396. property epoch: LongInt read _Getepoch write _Setepoch;
  5397. end;
  5398. { --------------------------------------------------------------------
  5399. TJSCanvasRenderingContext2DSettings
  5400. --------------------------------------------------------------------}
  5401. TJSCanvasRenderingContext2DSettingsRec = record
  5402. alpha: Boolean;
  5403. desynchronized: Boolean;
  5404. colorSpace: TPredefinedColorSpace;
  5405. willReadFrequently: Boolean;
  5406. end;
  5407. IJSCanvasRenderingContext2DSettings = interface(IJSObject)
  5408. ['{3515C89B-E30E-3570-8D2B-0B927C44E311}']
  5409. function _Getalpha: Boolean;
  5410. function _Getdesynchronized: Boolean;
  5411. function _GetcolorSpace: TPredefinedColorSpace;
  5412. function _GetwillReadFrequently: Boolean;
  5413. procedure _Setalpha(const aValue: Boolean);
  5414. procedure _Setdesynchronized(const aValue: Boolean);
  5415. procedure _SetcolorSpace(const aValue: TPredefinedColorSpace);
  5416. procedure _SetwillReadFrequently(const aValue: Boolean);
  5417. property alpha: Boolean read _Getalpha write _Setalpha;
  5418. property desynchronized: Boolean read _Getdesynchronized write _Setdesynchronized;
  5419. property colorSpace: TPredefinedColorSpace read _GetcolorSpace write _SetcolorSpace;
  5420. property willReadFrequently: Boolean read _GetwillReadFrequently write _SetwillReadFrequently;
  5421. end;
  5422. TJSCanvasRenderingContext2DSettings = class(TJSObject,IJSCanvasRenderingContext2DSettings)
  5423. Protected
  5424. function _Getalpha: Boolean;
  5425. function _Getdesynchronized: Boolean;
  5426. function _GetcolorSpace: TPredefinedColorSpace;
  5427. function _GetwillReadFrequently: Boolean;
  5428. procedure _Setalpha(const aValue: Boolean);
  5429. procedure _Setdesynchronized(const aValue: Boolean);
  5430. procedure _SetcolorSpace(const aValue: TPredefinedColorSpace);
  5431. procedure _SetwillReadFrequently(const aValue: Boolean);
  5432. Public
  5433. class function JSClassName: UnicodeString; override;
  5434. class function Cast(const Intf: IJSObject): IJSCanvasRenderingContext2DSettings;
  5435. property alpha: Boolean read _Getalpha write _Setalpha;
  5436. property desynchronized: Boolean read _Getdesynchronized write _Setdesynchronized;
  5437. property colorSpace: TPredefinedColorSpace read _GetcolorSpace write _SetcolorSpace;
  5438. property willReadFrequently: Boolean read _GetwillReadFrequently write _SetwillReadFrequently;
  5439. end;
  5440. { --------------------------------------------------------------------
  5441. TJSHitRegionOptions
  5442. --------------------------------------------------------------------}
  5443. TJSHitRegionOptionsRec = record
  5444. path: TJSPath2D;
  5445. id: UnicodeString;
  5446. control: TJSElement;
  5447. end;
  5448. IJSHitRegionOptions = interface(IJSObject)
  5449. ['{79D1BC47-CF7D-35BB-9193-2E5967413A54}']
  5450. function _Getpath: IJSPath2D;
  5451. function _Getid: UnicodeString;
  5452. function _Getcontrol: IJSElement;
  5453. procedure _Setpath(const aValue: IJSPath2D);
  5454. procedure _Setid(const aValue: UnicodeString);
  5455. procedure _Setcontrol(const aValue: IJSElement);
  5456. property path: IJSPath2D read _Getpath write _Setpath;
  5457. property id: UnicodeString read _Getid write _Setid;
  5458. property control: IJSElement read _Getcontrol write _Setcontrol;
  5459. end;
  5460. TJSHitRegionOptions = class(TJSObject,IJSHitRegionOptions)
  5461. Protected
  5462. function _Getpath: IJSPath2D;
  5463. function _Getid: UnicodeString;
  5464. function _Getcontrol: IJSElement;
  5465. procedure _Setpath(const aValue: IJSPath2D);
  5466. procedure _Setid(const aValue: UnicodeString);
  5467. procedure _Setcontrol(const aValue: IJSElement);
  5468. Public
  5469. class function JSClassName: UnicodeString; override;
  5470. class function Cast(const Intf: IJSObject): IJSHitRegionOptions;
  5471. property path: IJSPath2D read _Getpath write _Setpath;
  5472. property id: UnicodeString read _Getid write _Setid;
  5473. property control: IJSElement read _Getcontrol write _Setcontrol;
  5474. end;
  5475. { --------------------------------------------------------------------
  5476. TJSCheckerboardReport
  5477. --------------------------------------------------------------------}
  5478. TJSCheckerboardReportRec = record
  5479. severity: Cardinal;
  5480. timestamp: TDOMTimeStamp;
  5481. log: UnicodeString;
  5482. reason: TCheckerboardReason;
  5483. end;
  5484. IJSCheckerboardReport = interface(IJSObject)
  5485. ['{490C56A0-8F6C-397C-9102-B6ADEC99234E}']
  5486. function _Getseverity: Cardinal;
  5487. function _Gettimestamp: TDOMTimeStamp;
  5488. function _Getlog: UnicodeString;
  5489. function _Getreason: TCheckerboardReason;
  5490. procedure _Setseverity(const aValue: Cardinal);
  5491. procedure _Settimestamp(const aValue: TDOMTimeStamp);
  5492. procedure _Setlog(const aValue: UnicodeString);
  5493. procedure _Setreason(const aValue: TCheckerboardReason);
  5494. property severity: Cardinal read _Getseverity write _Setseverity;
  5495. property timestamp: TDOMTimeStamp read _Gettimestamp write _Settimestamp;
  5496. property log: UnicodeString read _Getlog write _Setlog;
  5497. property reason: TCheckerboardReason read _Getreason write _Setreason;
  5498. end;
  5499. TJSCheckerboardReport = class(TJSObject,IJSCheckerboardReport)
  5500. Protected
  5501. function _Getseverity: Cardinal;
  5502. function _Gettimestamp: TDOMTimeStamp;
  5503. function _Getlog: UnicodeString;
  5504. function _Getreason: TCheckerboardReason;
  5505. procedure _Setseverity(const aValue: Cardinal);
  5506. procedure _Settimestamp(const aValue: TDOMTimeStamp);
  5507. procedure _Setlog(const aValue: UnicodeString);
  5508. procedure _Setreason(const aValue: TCheckerboardReason);
  5509. Public
  5510. class function JSClassName: UnicodeString; override;
  5511. class function Cast(const Intf: IJSObject): IJSCheckerboardReport;
  5512. property severity: Cardinal read _Getseverity write _Setseverity;
  5513. property timestamp: TDOMTimeStamp read _Gettimestamp write _Settimestamp;
  5514. property log: UnicodeString read _Getlog write _Setlog;
  5515. property reason: TCheckerboardReason read _Getreason write _Setreason;
  5516. end;
  5517. { --------------------------------------------------------------------
  5518. TJSClientQueryOptions
  5519. --------------------------------------------------------------------}
  5520. TJSClientQueryOptionsRec = record
  5521. includeUncontrolled: Boolean;
  5522. type_: TClientType;
  5523. end;
  5524. IJSClientQueryOptions = interface(IJSObject)
  5525. ['{3B942DC6-AFA2-3737-8280-2C5ED695F354}']
  5526. function _GetincludeUncontrolled: Boolean;
  5527. function _Gettype_: TClientType;
  5528. procedure _SetincludeUncontrolled(const aValue: Boolean);
  5529. procedure _Settype_(const aValue: TClientType);
  5530. property includeUncontrolled: Boolean read _GetincludeUncontrolled write _SetincludeUncontrolled;
  5531. property type_: TClientType read _Gettype_ write _Settype_;
  5532. end;
  5533. TJSClientQueryOptions = class(TJSObject,IJSClientQueryOptions)
  5534. Protected
  5535. function _GetincludeUncontrolled: Boolean;
  5536. function _Gettype_: TClientType;
  5537. procedure _SetincludeUncontrolled(const aValue: Boolean);
  5538. procedure _Settype_(const aValue: TClientType);
  5539. Public
  5540. class function JSClassName: UnicodeString; override;
  5541. class function Cast(const Intf: IJSObject): IJSClientQueryOptions;
  5542. property includeUncontrolled: Boolean read _GetincludeUncontrolled write _SetincludeUncontrolled;
  5543. property type_: TClientType read _Gettype_ write _Settype_;
  5544. end;
  5545. { --------------------------------------------------------------------
  5546. TJSClipboardItemOptions
  5547. --------------------------------------------------------------------}
  5548. TJSClipboardItemOptionsRec = record
  5549. presentationStyle: TPresentationStyle;
  5550. end;
  5551. IJSClipboardItemOptions = interface(IJSObject)
  5552. ['{958AE912-A726-3DA2-B338-E55870F21D41}']
  5553. function _GetpresentationStyle: TPresentationStyle;
  5554. procedure _SetpresentationStyle(const aValue: TPresentationStyle);
  5555. property presentationStyle: TPresentationStyle read _GetpresentationStyle write _SetpresentationStyle;
  5556. end;
  5557. TJSClipboardItemOptions = class(TJSObject,IJSClipboardItemOptions)
  5558. Protected
  5559. function _GetpresentationStyle: TPresentationStyle;
  5560. procedure _SetpresentationStyle(const aValue: TPresentationStyle);
  5561. Public
  5562. class function JSClassName: UnicodeString; override;
  5563. class function Cast(const Intf: IJSObject): IJSClipboardItemOptions;
  5564. property presentationStyle: TPresentationStyle read _GetpresentationStyle write _SetpresentationStyle;
  5565. end;
  5566. { --------------------------------------------------------------------
  5567. TJSConstantSourceOptions
  5568. --------------------------------------------------------------------}
  5569. TJSConstantSourceOptionsRec = record
  5570. offset: Single;
  5571. end;
  5572. IJSConstantSourceOptions = interface(IJSObject)
  5573. ['{7A13C358-1C2F-3194-B533-9528C995AEA2}']
  5574. function _Getoffset: Single;
  5575. procedure _Setoffset(const aValue: Single);
  5576. property offset: Single read _Getoffset write _Setoffset;
  5577. end;
  5578. TJSConstantSourceOptions = class(TJSObject,IJSConstantSourceOptions)
  5579. Protected
  5580. function _Getoffset: Single;
  5581. procedure _Setoffset(const aValue: Single);
  5582. Public
  5583. class function JSClassName: UnicodeString; override;
  5584. class function Cast(const Intf: IJSObject): IJSConstantSourceOptions;
  5585. property offset: Single read _Getoffset write _Setoffset;
  5586. end;
  5587. { --------------------------------------------------------------------
  5588. TJSCredentialRequestOptions
  5589. --------------------------------------------------------------------}
  5590. TJSCredentialRequestOptionsRec = record
  5591. mediation: TCredentialMediationRequirement;
  5592. signal: TJSAbortSignal;
  5593. publicKey: TJSPublicKeyCredentialRequestOptions;
  5594. identity: TJSIdentityCredentialRequestOptions;
  5595. end;
  5596. IJSCredentialRequestOptions = interface(IJSObject)
  5597. ['{6F7E0181-75EF-3862-BC9B-B38B0B12F1F0}']
  5598. function _Getmediation: TCredentialMediationRequirement;
  5599. function _Getsignal: IJSAbortSignal;
  5600. function _GetpublicKey: TJSPublicKeyCredentialRequestOptions;
  5601. function _Getidentity: TJSIdentityCredentialRequestOptions;
  5602. procedure _Setmediation(const aValue: TCredentialMediationRequirement);
  5603. procedure _Setsignal(const aValue: IJSAbortSignal);
  5604. procedure _SetpublicKey(const aValue: TJSPublicKeyCredentialRequestOptions);
  5605. procedure _Setidentity(const aValue: TJSIdentityCredentialRequestOptions);
  5606. property mediation: TCredentialMediationRequirement read _Getmediation write _Setmediation;
  5607. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  5608. property publicKey: TJSPublicKeyCredentialRequestOptions read _GetpublicKey write _SetpublicKey;
  5609. property identity: TJSIdentityCredentialRequestOptions read _Getidentity write _Setidentity;
  5610. end;
  5611. TJSCredentialRequestOptions = class(TJSObject,IJSCredentialRequestOptions)
  5612. Protected
  5613. function _Getmediation: TCredentialMediationRequirement;
  5614. function _Getsignal: IJSAbortSignal;
  5615. function _GetpublicKey: TJSPublicKeyCredentialRequestOptions;
  5616. function _Getidentity: TJSIdentityCredentialRequestOptions;
  5617. procedure _Setmediation(const aValue: TCredentialMediationRequirement);
  5618. procedure _Setsignal(const aValue: IJSAbortSignal);
  5619. procedure _SetpublicKey(const aValue: TJSPublicKeyCredentialRequestOptions);
  5620. procedure _Setidentity(const aValue: TJSIdentityCredentialRequestOptions);
  5621. Public
  5622. class function JSClassName: UnicodeString; override;
  5623. class function Cast(const Intf: IJSObject): IJSCredentialRequestOptions;
  5624. property mediation: TCredentialMediationRequirement read _Getmediation write _Setmediation;
  5625. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  5626. property publicKey: TJSPublicKeyCredentialRequestOptions read _GetpublicKey write _SetpublicKey;
  5627. property identity: TJSIdentityCredentialRequestOptions read _Getidentity write _Setidentity;
  5628. end;
  5629. { --------------------------------------------------------------------
  5630. TJSCredentialCreationOptions
  5631. --------------------------------------------------------------------}
  5632. TJSCredentialCreationOptionsRec = record
  5633. publicKey: TJSPublicKeyCredentialCreationOptions;
  5634. signal: TJSAbortSignal;
  5635. end;
  5636. IJSCredentialCreationOptions = interface(IJSObject)
  5637. ['{D3396383-7D40-35C9-819A-452F3CEFA9B9}']
  5638. function _GetpublicKey: TJSPublicKeyCredentialCreationOptions;
  5639. function _Getsignal: IJSAbortSignal;
  5640. procedure _SetpublicKey(const aValue: TJSPublicKeyCredentialCreationOptions);
  5641. procedure _Setsignal(const aValue: IJSAbortSignal);
  5642. property publicKey: TJSPublicKeyCredentialCreationOptions read _GetpublicKey write _SetpublicKey;
  5643. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  5644. end;
  5645. TJSCredentialCreationOptions = class(TJSObject,IJSCredentialCreationOptions)
  5646. Protected
  5647. function _GetpublicKey: TJSPublicKeyCredentialCreationOptions;
  5648. function _Getsignal: IJSAbortSignal;
  5649. procedure _SetpublicKey(const aValue: TJSPublicKeyCredentialCreationOptions);
  5650. procedure _Setsignal(const aValue: IJSAbortSignal);
  5651. Public
  5652. class function JSClassName: UnicodeString; override;
  5653. class function Cast(const Intf: IJSObject): IJSCredentialCreationOptions;
  5654. property publicKey: TJSPublicKeyCredentialCreationOptions read _GetpublicKey write _SetpublicKey;
  5655. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  5656. end;
  5657. { --------------------------------------------------------------------
  5658. TJSCSP
  5659. --------------------------------------------------------------------}
  5660. TJSCSPRec = record
  5661. report_only: Boolean;
  5662. default_src: TUnicodeStringDynArray;
  5663. script_src: TUnicodeStringDynArray;
  5664. object_src: TUnicodeStringDynArray;
  5665. style_src: TUnicodeStringDynArray;
  5666. img_src: TUnicodeStringDynArray;
  5667. media_src: TUnicodeStringDynArray;
  5668. frame_src: TUnicodeStringDynArray;
  5669. font_src: TUnicodeStringDynArray;
  5670. connect_src: TUnicodeStringDynArray;
  5671. report_uri: TUnicodeStringDynArray;
  5672. frame_ancestors: TUnicodeStringDynArray;
  5673. base_uri: TUnicodeStringDynArray;
  5674. form_action: TUnicodeStringDynArray;
  5675. referrer: TUnicodeStringDynArray;
  5676. manifest_src: TUnicodeStringDynArray;
  5677. upgrade_insecure_requests: TUnicodeStringDynArray;
  5678. child_src: TUnicodeStringDynArray;
  5679. block_all_mixed_content: TUnicodeStringDynArray;
  5680. sandbox: TUnicodeStringDynArray;
  5681. worker_src: TUnicodeStringDynArray;
  5682. script_src_elem: TUnicodeStringDynArray;
  5683. script_src_attr: TUnicodeStringDynArray;
  5684. end;
  5685. IJSCSP = interface(IJSObject)
  5686. ['{D30AC351-7400-30DB-AA72-437D46D19776}']
  5687. function _Getreport_only: Boolean;
  5688. function _Getdefault_src: TUnicodeStringDynArray;
  5689. function _Getscript_src: TUnicodeStringDynArray;
  5690. function _Getobject_src: TUnicodeStringDynArray;
  5691. function _Getstyle_src: TUnicodeStringDynArray;
  5692. function _Getimg_src: TUnicodeStringDynArray;
  5693. function _Getmedia_src: TUnicodeStringDynArray;
  5694. function _Getframe_src: TUnicodeStringDynArray;
  5695. function _Getfont_src: TUnicodeStringDynArray;
  5696. function _Getconnect_src: TUnicodeStringDynArray;
  5697. function _Getreport_uri: TUnicodeStringDynArray;
  5698. function _Getframe_ancestors: TUnicodeStringDynArray;
  5699. function _Getbase_uri: TUnicodeStringDynArray;
  5700. function _Getform_action: TUnicodeStringDynArray;
  5701. function _Getreferrer: TUnicodeStringDynArray;
  5702. function _Getmanifest_src: TUnicodeStringDynArray;
  5703. function _Getupgrade_insecure_requests: TUnicodeStringDynArray;
  5704. function _Getchild_src: TUnicodeStringDynArray;
  5705. function _Getblock_all_mixed_content: TUnicodeStringDynArray;
  5706. function _Getsandbox: TUnicodeStringDynArray;
  5707. function _Getworker_src: TUnicodeStringDynArray;
  5708. function _Getscript_src_elem: TUnicodeStringDynArray;
  5709. function _Getscript_src_attr: TUnicodeStringDynArray;
  5710. procedure _Setreport_only(const aValue: Boolean);
  5711. procedure _Setdefault_src(const aValue: TUnicodeStringDynArray);
  5712. procedure _Setscript_src(const aValue: TUnicodeStringDynArray);
  5713. procedure _Setobject_src(const aValue: TUnicodeStringDynArray);
  5714. procedure _Setstyle_src(const aValue: TUnicodeStringDynArray);
  5715. procedure _Setimg_src(const aValue: TUnicodeStringDynArray);
  5716. procedure _Setmedia_src(const aValue: TUnicodeStringDynArray);
  5717. procedure _Setframe_src(const aValue: TUnicodeStringDynArray);
  5718. procedure _Setfont_src(const aValue: TUnicodeStringDynArray);
  5719. procedure _Setconnect_src(const aValue: TUnicodeStringDynArray);
  5720. procedure _Setreport_uri(const aValue: TUnicodeStringDynArray);
  5721. procedure _Setframe_ancestors(const aValue: TUnicodeStringDynArray);
  5722. procedure _Setbase_uri(const aValue: TUnicodeStringDynArray);
  5723. procedure _Setform_action(const aValue: TUnicodeStringDynArray);
  5724. procedure _Setreferrer(const aValue: TUnicodeStringDynArray);
  5725. procedure _Setmanifest_src(const aValue: TUnicodeStringDynArray);
  5726. procedure _Setupgrade_insecure_requests(const aValue: TUnicodeStringDynArray);
  5727. procedure _Setchild_src(const aValue: TUnicodeStringDynArray);
  5728. procedure _Setblock_all_mixed_content(const aValue: TUnicodeStringDynArray);
  5729. procedure _Setsandbox(const aValue: TUnicodeStringDynArray);
  5730. procedure _Setworker_src(const aValue: TUnicodeStringDynArray);
  5731. procedure _Setscript_src_elem(const aValue: TUnicodeStringDynArray);
  5732. procedure _Setscript_src_attr(const aValue: TUnicodeStringDynArray);
  5733. property report_only: Boolean read _Getreport_only write _Setreport_only;
  5734. property default_src: TUnicodeStringDynArray read _Getdefault_src write _Setdefault_src;
  5735. property script_src: TUnicodeStringDynArray read _Getscript_src write _Setscript_src;
  5736. property object_src: TUnicodeStringDynArray read _Getobject_src write _Setobject_src;
  5737. property style_src: TUnicodeStringDynArray read _Getstyle_src write _Setstyle_src;
  5738. property img_src: TUnicodeStringDynArray read _Getimg_src write _Setimg_src;
  5739. property media_src: TUnicodeStringDynArray read _Getmedia_src write _Setmedia_src;
  5740. property frame_src: TUnicodeStringDynArray read _Getframe_src write _Setframe_src;
  5741. property font_src: TUnicodeStringDynArray read _Getfont_src write _Setfont_src;
  5742. property connect_src: TUnicodeStringDynArray read _Getconnect_src write _Setconnect_src;
  5743. property report_uri: TUnicodeStringDynArray read _Getreport_uri write _Setreport_uri;
  5744. property frame_ancestors: TUnicodeStringDynArray read _Getframe_ancestors write _Setframe_ancestors;
  5745. property base_uri: TUnicodeStringDynArray read _Getbase_uri write _Setbase_uri;
  5746. property form_action: TUnicodeStringDynArray read _Getform_action write _Setform_action;
  5747. property referrer: TUnicodeStringDynArray read _Getreferrer write _Setreferrer;
  5748. property manifest_src: TUnicodeStringDynArray read _Getmanifest_src write _Setmanifest_src;
  5749. property upgrade_insecure_requests: TUnicodeStringDynArray read _Getupgrade_insecure_requests write _Setupgrade_insecure_requests;
  5750. property child_src: TUnicodeStringDynArray read _Getchild_src write _Setchild_src;
  5751. property block_all_mixed_content: TUnicodeStringDynArray read _Getblock_all_mixed_content write _Setblock_all_mixed_content;
  5752. property sandbox: TUnicodeStringDynArray read _Getsandbox write _Setsandbox;
  5753. property worker_src: TUnicodeStringDynArray read _Getworker_src write _Setworker_src;
  5754. property script_src_elem: TUnicodeStringDynArray read _Getscript_src_elem write _Setscript_src_elem;
  5755. property script_src_attr: TUnicodeStringDynArray read _Getscript_src_attr write _Setscript_src_attr;
  5756. end;
  5757. TJSCSP = class(TJSObject,IJSCSP)
  5758. Protected
  5759. function _Getreport_only: Boolean;
  5760. function _Getdefault_src: TUnicodeStringDynArray;
  5761. function _Getscript_src: TUnicodeStringDynArray;
  5762. function _Getobject_src: TUnicodeStringDynArray;
  5763. function _Getstyle_src: TUnicodeStringDynArray;
  5764. function _Getimg_src: TUnicodeStringDynArray;
  5765. function _Getmedia_src: TUnicodeStringDynArray;
  5766. function _Getframe_src: TUnicodeStringDynArray;
  5767. function _Getfont_src: TUnicodeStringDynArray;
  5768. function _Getconnect_src: TUnicodeStringDynArray;
  5769. function _Getreport_uri: TUnicodeStringDynArray;
  5770. function _Getframe_ancestors: TUnicodeStringDynArray;
  5771. function _Getbase_uri: TUnicodeStringDynArray;
  5772. function _Getform_action: TUnicodeStringDynArray;
  5773. function _Getreferrer: TUnicodeStringDynArray;
  5774. function _Getmanifest_src: TUnicodeStringDynArray;
  5775. function _Getupgrade_insecure_requests: TUnicodeStringDynArray;
  5776. function _Getchild_src: TUnicodeStringDynArray;
  5777. function _Getblock_all_mixed_content: TUnicodeStringDynArray;
  5778. function _Getsandbox: TUnicodeStringDynArray;
  5779. function _Getworker_src: TUnicodeStringDynArray;
  5780. function _Getscript_src_elem: TUnicodeStringDynArray;
  5781. function _Getscript_src_attr: TUnicodeStringDynArray;
  5782. procedure _Setreport_only(const aValue: Boolean);
  5783. procedure _Setdefault_src(const aValue: TUnicodeStringDynArray);
  5784. procedure _Setscript_src(const aValue: TUnicodeStringDynArray);
  5785. procedure _Setobject_src(const aValue: TUnicodeStringDynArray);
  5786. procedure _Setstyle_src(const aValue: TUnicodeStringDynArray);
  5787. procedure _Setimg_src(const aValue: TUnicodeStringDynArray);
  5788. procedure _Setmedia_src(const aValue: TUnicodeStringDynArray);
  5789. procedure _Setframe_src(const aValue: TUnicodeStringDynArray);
  5790. procedure _Setfont_src(const aValue: TUnicodeStringDynArray);
  5791. procedure _Setconnect_src(const aValue: TUnicodeStringDynArray);
  5792. procedure _Setreport_uri(const aValue: TUnicodeStringDynArray);
  5793. procedure _Setframe_ancestors(const aValue: TUnicodeStringDynArray);
  5794. procedure _Setbase_uri(const aValue: TUnicodeStringDynArray);
  5795. procedure _Setform_action(const aValue: TUnicodeStringDynArray);
  5796. procedure _Setreferrer(const aValue: TUnicodeStringDynArray);
  5797. procedure _Setmanifest_src(const aValue: TUnicodeStringDynArray);
  5798. procedure _Setupgrade_insecure_requests(const aValue: TUnicodeStringDynArray);
  5799. procedure _Setchild_src(const aValue: TUnicodeStringDynArray);
  5800. procedure _Setblock_all_mixed_content(const aValue: TUnicodeStringDynArray);
  5801. procedure _Setsandbox(const aValue: TUnicodeStringDynArray);
  5802. procedure _Setworker_src(const aValue: TUnicodeStringDynArray);
  5803. procedure _Setscript_src_elem(const aValue: TUnicodeStringDynArray);
  5804. procedure _Setscript_src_attr(const aValue: TUnicodeStringDynArray);
  5805. Public
  5806. class function JSClassName: UnicodeString; override;
  5807. class function Cast(const Intf: IJSObject): IJSCSP;
  5808. property report_only: Boolean read _Getreport_only write _Setreport_only;
  5809. property default_src: TUnicodeStringDynArray read _Getdefault_src write _Setdefault_src;
  5810. property script_src: TUnicodeStringDynArray read _Getscript_src write _Setscript_src;
  5811. property object_src: TUnicodeStringDynArray read _Getobject_src write _Setobject_src;
  5812. property style_src: TUnicodeStringDynArray read _Getstyle_src write _Setstyle_src;
  5813. property img_src: TUnicodeStringDynArray read _Getimg_src write _Setimg_src;
  5814. property media_src: TUnicodeStringDynArray read _Getmedia_src write _Setmedia_src;
  5815. property frame_src: TUnicodeStringDynArray read _Getframe_src write _Setframe_src;
  5816. property font_src: TUnicodeStringDynArray read _Getfont_src write _Setfont_src;
  5817. property connect_src: TUnicodeStringDynArray read _Getconnect_src write _Setconnect_src;
  5818. property report_uri: TUnicodeStringDynArray read _Getreport_uri write _Setreport_uri;
  5819. property frame_ancestors: TUnicodeStringDynArray read _Getframe_ancestors write _Setframe_ancestors;
  5820. property base_uri: TUnicodeStringDynArray read _Getbase_uri write _Setbase_uri;
  5821. property form_action: TUnicodeStringDynArray read _Getform_action write _Setform_action;
  5822. property referrer: TUnicodeStringDynArray read _Getreferrer write _Setreferrer;
  5823. property manifest_src: TUnicodeStringDynArray read _Getmanifest_src write _Setmanifest_src;
  5824. property upgrade_insecure_requests: TUnicodeStringDynArray read _Getupgrade_insecure_requests write _Setupgrade_insecure_requests;
  5825. property child_src: TUnicodeStringDynArray read _Getchild_src write _Setchild_src;
  5826. property block_all_mixed_content: TUnicodeStringDynArray read _Getblock_all_mixed_content write _Setblock_all_mixed_content;
  5827. property sandbox: TUnicodeStringDynArray read _Getsandbox write _Setsandbox;
  5828. property worker_src: TUnicodeStringDynArray read _Getworker_src write _Setworker_src;
  5829. property script_src_elem: TUnicodeStringDynArray read _Getscript_src_elem write _Setscript_src_elem;
  5830. property script_src_attr: TUnicodeStringDynArray read _Getscript_src_attr write _Setscript_src_attr;
  5831. end;
  5832. { --------------------------------------------------------------------
  5833. TJSCSPPolicies
  5834. --------------------------------------------------------------------}
  5835. TJSCSPDynArray = IJSArray; // array of CSP
  5836. TJSCSPPoliciesRec = record
  5837. csp_policies: TJSCSPDynArray;
  5838. end;
  5839. IJSCSPPolicies = interface(IJSObject)
  5840. ['{EEDFAF0C-D887-31F7-B3F1-7B5AAFD78257}']
  5841. function _Getcsp_policies: TJSCSPDynArray;
  5842. procedure _Setcsp_policies(const aValue: TJSCSPDynArray);
  5843. property csp_policies: TJSCSPDynArray read _Getcsp_policies write _Setcsp_policies;
  5844. end;
  5845. TJSCSPPolicies = class(TJSObject,IJSCSPPolicies)
  5846. Protected
  5847. function _Getcsp_policies: TJSCSPDynArray;
  5848. procedure _Setcsp_policies(const aValue: TJSCSPDynArray);
  5849. Public
  5850. class function JSClassName: UnicodeString; override;
  5851. class function Cast(const Intf: IJSObject): IJSCSPPolicies;
  5852. property csp_policies: TJSCSPDynArray read _Getcsp_policies write _Setcsp_policies;
  5853. end;
  5854. { --------------------------------------------------------------------
  5855. TJSCSPReportProperties
  5856. --------------------------------------------------------------------}
  5857. TJSCSPReportPropertiesRec = record
  5858. document_uri: UnicodeString;
  5859. referrer: UnicodeString;
  5860. blocked_uri: UnicodeString;
  5861. effective_directive: UnicodeString;
  5862. violated_directive: UnicodeString;
  5863. original_policy: UnicodeString;
  5864. disposition: TSecurityPolicyViolationEventDisposition;
  5865. status_code: LongInt;
  5866. source_file: UnicodeString;
  5867. script_sample: UnicodeString;
  5868. line_number: LongInt;
  5869. column_number: LongInt;
  5870. end;
  5871. IJSCSPReportProperties = interface(IJSObject)
  5872. ['{7FD4BB7D-7E2B-38D1-958D-2279FD2F6F80}']
  5873. function _Getdocument_uri: UnicodeString;
  5874. function _Getreferrer: UnicodeString;
  5875. function _Getblocked_uri: UnicodeString;
  5876. function _Geteffective_directive: UnicodeString;
  5877. function _Getviolated_directive: UnicodeString;
  5878. function _Getoriginal_policy: UnicodeString;
  5879. function _Getdisposition: TSecurityPolicyViolationEventDisposition;
  5880. function _Getstatus_code: LongInt;
  5881. function _Getsource_file: UnicodeString;
  5882. function _Getscript_sample: UnicodeString;
  5883. function _Getline_number: LongInt;
  5884. function _Getcolumn_number: LongInt;
  5885. procedure _Setdocument_uri(const aValue: UnicodeString);
  5886. procedure _Setreferrer(const aValue: UnicodeString);
  5887. procedure _Setblocked_uri(const aValue: UnicodeString);
  5888. procedure _Seteffective_directive(const aValue: UnicodeString);
  5889. procedure _Setviolated_directive(const aValue: UnicodeString);
  5890. procedure _Setoriginal_policy(const aValue: UnicodeString);
  5891. procedure _Setdisposition(const aValue: TSecurityPolicyViolationEventDisposition);
  5892. procedure _Setstatus_code(const aValue: LongInt);
  5893. procedure _Setsource_file(const aValue: UnicodeString);
  5894. procedure _Setscript_sample(const aValue: UnicodeString);
  5895. procedure _Setline_number(const aValue: LongInt);
  5896. procedure _Setcolumn_number(const aValue: LongInt);
  5897. property document_uri: UnicodeString read _Getdocument_uri write _Setdocument_uri;
  5898. property referrer: UnicodeString read _Getreferrer write _Setreferrer;
  5899. property blocked_uri: UnicodeString read _Getblocked_uri write _Setblocked_uri;
  5900. property effective_directive: UnicodeString read _Geteffective_directive write _Seteffective_directive;
  5901. property violated_directive: UnicodeString read _Getviolated_directive write _Setviolated_directive;
  5902. property original_policy: UnicodeString read _Getoriginal_policy write _Setoriginal_policy;
  5903. property disposition: TSecurityPolicyViolationEventDisposition read _Getdisposition write _Setdisposition;
  5904. property status_code: LongInt read _Getstatus_code write _Setstatus_code;
  5905. property source_file: UnicodeString read _Getsource_file write _Setsource_file;
  5906. property script_sample: UnicodeString read _Getscript_sample write _Setscript_sample;
  5907. property line_number: LongInt read _Getline_number write _Setline_number;
  5908. property column_number: LongInt read _Getcolumn_number write _Setcolumn_number;
  5909. end;
  5910. TJSCSPReportProperties = class(TJSObject,IJSCSPReportProperties)
  5911. Protected
  5912. function _Getdocument_uri: UnicodeString;
  5913. function _Getreferrer: UnicodeString;
  5914. function _Getblocked_uri: UnicodeString;
  5915. function _Geteffective_directive: UnicodeString;
  5916. function _Getviolated_directive: UnicodeString;
  5917. function _Getoriginal_policy: UnicodeString;
  5918. function _Getdisposition: TSecurityPolicyViolationEventDisposition;
  5919. function _Getstatus_code: LongInt;
  5920. function _Getsource_file: UnicodeString;
  5921. function _Getscript_sample: UnicodeString;
  5922. function _Getline_number: LongInt;
  5923. function _Getcolumn_number: LongInt;
  5924. procedure _Setdocument_uri(const aValue: UnicodeString);
  5925. procedure _Setreferrer(const aValue: UnicodeString);
  5926. procedure _Setblocked_uri(const aValue: UnicodeString);
  5927. procedure _Seteffective_directive(const aValue: UnicodeString);
  5928. procedure _Setviolated_directive(const aValue: UnicodeString);
  5929. procedure _Setoriginal_policy(const aValue: UnicodeString);
  5930. procedure _Setdisposition(const aValue: TSecurityPolicyViolationEventDisposition);
  5931. procedure _Setstatus_code(const aValue: LongInt);
  5932. procedure _Setsource_file(const aValue: UnicodeString);
  5933. procedure _Setscript_sample(const aValue: UnicodeString);
  5934. procedure _Setline_number(const aValue: LongInt);
  5935. procedure _Setcolumn_number(const aValue: LongInt);
  5936. Public
  5937. class function JSClassName: UnicodeString; override;
  5938. class function Cast(const Intf: IJSObject): IJSCSPReportProperties;
  5939. property document_uri: UnicodeString read _Getdocument_uri write _Setdocument_uri;
  5940. property referrer: UnicodeString read _Getreferrer write _Setreferrer;
  5941. property blocked_uri: UnicodeString read _Getblocked_uri write _Setblocked_uri;
  5942. property effective_directive: UnicodeString read _Geteffective_directive write _Seteffective_directive;
  5943. property violated_directive: UnicodeString read _Getviolated_directive write _Setviolated_directive;
  5944. property original_policy: UnicodeString read _Getoriginal_policy write _Setoriginal_policy;
  5945. property disposition: TSecurityPolicyViolationEventDisposition read _Getdisposition write _Setdisposition;
  5946. property status_code: LongInt read _Getstatus_code write _Setstatus_code;
  5947. property source_file: UnicodeString read _Getsource_file write _Setsource_file;
  5948. property script_sample: UnicodeString read _Getscript_sample write _Setscript_sample;
  5949. property line_number: LongInt read _Getline_number write _Setline_number;
  5950. property column_number: LongInt read _Getcolumn_number write _Setcolumn_number;
  5951. end;
  5952. { --------------------------------------------------------------------
  5953. TJSCSPReport
  5954. --------------------------------------------------------------------}
  5955. TJSCSPReportRec = record
  5956. csp_report: TJSCSPReportProperties;
  5957. end;
  5958. IJSCSPReport = interface(IJSObject)
  5959. ['{33816F6F-DAF0-31EB-88EE-DE08AA10C552}']
  5960. function _Getcsp_report: TJSCSPReportProperties;
  5961. procedure _Setcsp_report(const aValue: TJSCSPReportProperties);
  5962. property csp_report: TJSCSPReportProperties read _Getcsp_report write _Setcsp_report;
  5963. end;
  5964. TJSCSPReport = class(TJSObject,IJSCSPReport)
  5965. Protected
  5966. function _Getcsp_report: TJSCSPReportProperties;
  5967. procedure _Setcsp_report(const aValue: TJSCSPReportProperties);
  5968. Public
  5969. class function JSClassName: UnicodeString; override;
  5970. class function Cast(const Intf: IJSObject): IJSCSPReport;
  5971. property csp_report: TJSCSPReportProperties read _Getcsp_report write _Setcsp_report;
  5972. end;
  5973. { --------------------------------------------------------------------
  5974. TJSPropertyDefinition
  5975. --------------------------------------------------------------------}
  5976. TJSPropertyDefinitionRec = record
  5977. name: UTF8String;
  5978. syntax: UTF8String;
  5979. inherits: Boolean;
  5980. initialValue: UTF8String;
  5981. end;
  5982. IJSPropertyDefinition = interface(IJSObject)
  5983. ['{2586C6D7-C505-395B-8DDB-0710E991D2A8}']
  5984. function _Getname: UTF8String;
  5985. function _Getsyntax: UTF8String;
  5986. function _Getinherits: Boolean;
  5987. function _GetinitialValue: UTF8String;
  5988. procedure _Setname(const aValue: UTF8String);
  5989. procedure _Setsyntax(const aValue: UTF8String);
  5990. procedure _Setinherits(const aValue: Boolean);
  5991. procedure _SetinitialValue(const aValue: UTF8String);
  5992. property name: UTF8String read _Getname write _Setname;
  5993. property syntax: UTF8String read _Getsyntax write _Setsyntax;
  5994. property inherits: Boolean read _Getinherits write _Setinherits;
  5995. property initialValue: UTF8String read _GetinitialValue write _SetinitialValue;
  5996. end;
  5997. TJSPropertyDefinition = class(TJSObject,IJSPropertyDefinition)
  5998. Protected
  5999. function _Getname: UTF8String;
  6000. function _Getsyntax: UTF8String;
  6001. function _Getinherits: Boolean;
  6002. function _GetinitialValue: UTF8String;
  6003. procedure _Setname(const aValue: UTF8String);
  6004. procedure _Setsyntax(const aValue: UTF8String);
  6005. procedure _Setinherits(const aValue: Boolean);
  6006. procedure _SetinitialValue(const aValue: UTF8String);
  6007. Public
  6008. class function JSClassName: UnicodeString; override;
  6009. class function Cast(const Intf: IJSObject): IJSPropertyDefinition;
  6010. property name: UTF8String read _Getname write _Setname;
  6011. property syntax: UTF8String read _Getsyntax write _Setsyntax;
  6012. property inherits: Boolean read _Getinherits write _Setinherits;
  6013. property initialValue: UTF8String read _GetinitialValue write _SetinitialValue;
  6014. end;
  6015. { --------------------------------------------------------------------
  6016. TJSSelectorWarning
  6017. --------------------------------------------------------------------}
  6018. TJSSelectorWarningRec = record
  6019. index: Cardinal;
  6020. kind: TSelectorWarningKind;
  6021. end;
  6022. IJSSelectorWarning = interface(IJSObject)
  6023. ['{BE6C7B85-681F-3E40-A97C-E7CA7DC9AFDD}']
  6024. function _Getindex: Cardinal;
  6025. function _Getkind: TSelectorWarningKind;
  6026. procedure _Setindex(const aValue: Cardinal);
  6027. procedure _Setkind(const aValue: TSelectorWarningKind);
  6028. property index: Cardinal read _Getindex write _Setindex;
  6029. property kind: TSelectorWarningKind read _Getkind write _Setkind;
  6030. end;
  6031. TJSSelectorWarning = class(TJSObject,IJSSelectorWarning)
  6032. Protected
  6033. function _Getindex: Cardinal;
  6034. function _Getkind: TSelectorWarningKind;
  6035. procedure _Setindex(const aValue: Cardinal);
  6036. procedure _Setkind(const aValue: TSelectorWarningKind);
  6037. Public
  6038. class function JSClassName: UnicodeString; override;
  6039. class function Cast(const Intf: IJSObject): IJSSelectorWarning;
  6040. property index: Cardinal read _Getindex write _Setindex;
  6041. property kind: TSelectorWarningKind read _Getkind write _Setkind;
  6042. end;
  6043. { --------------------------------------------------------------------
  6044. TJSCSSStyleSheetInit
  6045. --------------------------------------------------------------------}
  6046. // Union of MediaList, UTF8String
  6047. TCSSStyleSheetInit_media_Type = Variant;
  6048. TJSCSSStyleSheetInitRec = record
  6049. media: TCSSStyleSheetInit_media_Type;
  6050. disabled: Boolean;
  6051. baseURL: UTF8String;
  6052. end;
  6053. IJSCSSStyleSheetInit = interface(IJSObject)
  6054. ['{011B7DBB-863E-347E-BF4B-B82FE58BA675}']
  6055. function _Getmedia: TCSSStyleSheetInit_media_Type;
  6056. function _Getdisabled: Boolean;
  6057. function _GetbaseURL: UTF8String;
  6058. procedure _Setmedia(const aValue: TCSSStyleSheetInit_media_Type);
  6059. procedure _Setdisabled(const aValue: Boolean);
  6060. procedure _SetbaseURL(const aValue: UTF8String);
  6061. property media: TCSSStyleSheetInit_media_Type read _Getmedia write _Setmedia;
  6062. property disabled: Boolean read _Getdisabled write _Setdisabled;
  6063. property baseURL: UTF8String read _GetbaseURL write _SetbaseURL;
  6064. end;
  6065. TJSCSSStyleSheetInit = class(TJSObject,IJSCSSStyleSheetInit)
  6066. Protected
  6067. function _Getmedia: TCSSStyleSheetInit_media_Type;
  6068. function _Getdisabled: Boolean;
  6069. function _GetbaseURL: UTF8String;
  6070. procedure _Setmedia(const aValue: TCSSStyleSheetInit_media_Type);
  6071. procedure _Setdisabled(const aValue: Boolean);
  6072. procedure _SetbaseURL(const aValue: UTF8String);
  6073. Public
  6074. class function JSClassName: UnicodeString; override;
  6075. class function Cast(const Intf: IJSObject): IJSCSSStyleSheetInit;
  6076. property media: TCSSStyleSheetInit_media_Type read _Getmedia write _Setmedia;
  6077. property disabled: Boolean read _Getdisabled write _Setdisabled;
  6078. property baseURL: UTF8String read _GetbaseURL write _SetbaseURL;
  6079. end;
  6080. { --------------------------------------------------------------------
  6081. TJSElementDefinitionOptions
  6082. --------------------------------------------------------------------}
  6083. TJSElementDefinitionOptionsRec = record
  6084. extends: UnicodeString;
  6085. end;
  6086. IJSElementDefinitionOptions = interface(IJSObject)
  6087. ['{B4B878B8-A4B7-3F9C-B984-E545BB51932E}']
  6088. function _Getextends: UnicodeString;
  6089. procedure _Setextends(const aValue: UnicodeString);
  6090. property extends: UnicodeString read _Getextends write _Setextends;
  6091. end;
  6092. TJSElementDefinitionOptions = class(TJSObject,IJSElementDefinitionOptions)
  6093. Protected
  6094. function _Getextends: UnicodeString;
  6095. procedure _Setextends(const aValue: UnicodeString);
  6096. Public
  6097. class function JSClassName: UnicodeString; override;
  6098. class function Cast(const Intf: IJSObject): IJSElementDefinitionOptions;
  6099. property extends: UnicodeString read _Getextends write _Setextends;
  6100. end;
  6101. { --------------------------------------------------------------------
  6102. TJSLifecycleCallbacks
  6103. --------------------------------------------------------------------}
  6104. TJSLifecycleCallbacksRec = record
  6105. connectedCallback: TLifecycleConnectedCallback;
  6106. disconnectedCallback: TLifecycleDisconnectedCallback;
  6107. adoptedCallback: TLifecycleAdoptedCallback;
  6108. attributeChangedCallback: TLifecycleAttributeChangedCallback;
  6109. end;
  6110. IJSLifecycleCallbacks = interface(IJSObject)
  6111. ['{DEB6E314-F1C9-3862-ABE2-45AAF2F86FC9}']
  6112. function _GetconnectedCallback: TLifecycleConnectedCallback;
  6113. function _GetdisconnectedCallback: TLifecycleDisconnectedCallback;
  6114. function _GetadoptedCallback: TLifecycleAdoptedCallback;
  6115. function _GetattributeChangedCallback: TLifecycleAttributeChangedCallback;
  6116. procedure _SetconnectedCallback(const aValue: TLifecycleConnectedCallback);
  6117. procedure _SetdisconnectedCallback(const aValue: TLifecycleDisconnectedCallback);
  6118. procedure _SetadoptedCallback(const aValue: TLifecycleAdoptedCallback);
  6119. procedure _SetattributeChangedCallback(const aValue: TLifecycleAttributeChangedCallback);
  6120. property connectedCallback: TLifecycleConnectedCallback read _GetconnectedCallback write _SetconnectedCallback;
  6121. property disconnectedCallback: TLifecycleDisconnectedCallback read _GetdisconnectedCallback write _SetdisconnectedCallback;
  6122. property adoptedCallback: TLifecycleAdoptedCallback read _GetadoptedCallback write _SetadoptedCallback;
  6123. property attributeChangedCallback: TLifecycleAttributeChangedCallback read _GetattributeChangedCallback write _SetattributeChangedCallback;
  6124. end;
  6125. TJSLifecycleCallbacks = class(TJSObject,IJSLifecycleCallbacks)
  6126. Protected
  6127. function _GetconnectedCallback: TLifecycleConnectedCallback;
  6128. function _GetdisconnectedCallback: TLifecycleDisconnectedCallback;
  6129. function _GetadoptedCallback: TLifecycleAdoptedCallback;
  6130. function _GetattributeChangedCallback: TLifecycleAttributeChangedCallback;
  6131. procedure _SetconnectedCallback(const aValue: TLifecycleConnectedCallback);
  6132. procedure _SetdisconnectedCallback(const aValue: TLifecycleDisconnectedCallback);
  6133. procedure _SetadoptedCallback(const aValue: TLifecycleAdoptedCallback);
  6134. procedure _SetattributeChangedCallback(const aValue: TLifecycleAttributeChangedCallback);
  6135. Public
  6136. class function JSClassName: UnicodeString; override;
  6137. class function Cast(const Intf: IJSObject): IJSLifecycleCallbacks;
  6138. property connectedCallback: TLifecycleConnectedCallback read _GetconnectedCallback write _SetconnectedCallback;
  6139. property disconnectedCallback: TLifecycleDisconnectedCallback read _GetdisconnectedCallback write _SetdisconnectedCallback;
  6140. property adoptedCallback: TLifecycleAdoptedCallback read _GetadoptedCallback write _SetadoptedCallback;
  6141. property attributeChangedCallback: TLifecycleAttributeChangedCallback read _GetattributeChangedCallback write _SetattributeChangedCallback;
  6142. end;
  6143. { --------------------------------------------------------------------
  6144. TJSFormAssociatedLifecycleCallbacks
  6145. --------------------------------------------------------------------}
  6146. TJSFormAssociatedLifecycleCallbacksRec = record
  6147. formAssociatedCallback: TLifecycleFormAssociatedCallback;
  6148. formResetCallback: TLifecycleFormResetCallback;
  6149. formDisabledCallback: TLifecycleFormDisabledCallback;
  6150. formStateRestoreCallback: TLifecycleFormStateRestoreCallback;
  6151. end;
  6152. IJSFormAssociatedLifecycleCallbacks = interface(IJSObject)
  6153. ['{B4E08713-D813-3D52-BFD6-D67F332B78D7}']
  6154. function _GetformAssociatedCallback: TLifecycleFormAssociatedCallback;
  6155. function _GetformResetCallback: TLifecycleFormResetCallback;
  6156. function _GetformDisabledCallback: TLifecycleFormDisabledCallback;
  6157. function _GetformStateRestoreCallback: TLifecycleFormStateRestoreCallback;
  6158. procedure _SetformAssociatedCallback(const aValue: TLifecycleFormAssociatedCallback);
  6159. procedure _SetformResetCallback(const aValue: TLifecycleFormResetCallback);
  6160. procedure _SetformDisabledCallback(const aValue: TLifecycleFormDisabledCallback);
  6161. procedure _SetformStateRestoreCallback(const aValue: TLifecycleFormStateRestoreCallback);
  6162. property formAssociatedCallback: TLifecycleFormAssociatedCallback read _GetformAssociatedCallback write _SetformAssociatedCallback;
  6163. property formResetCallback: TLifecycleFormResetCallback read _GetformResetCallback write _SetformResetCallback;
  6164. property formDisabledCallback: TLifecycleFormDisabledCallback read _GetformDisabledCallback write _SetformDisabledCallback;
  6165. property formStateRestoreCallback: TLifecycleFormStateRestoreCallback read _GetformStateRestoreCallback write _SetformStateRestoreCallback;
  6166. end;
  6167. TJSFormAssociatedLifecycleCallbacks = class(TJSObject,IJSFormAssociatedLifecycleCallbacks)
  6168. Protected
  6169. function _GetformAssociatedCallback: TLifecycleFormAssociatedCallback;
  6170. function _GetformResetCallback: TLifecycleFormResetCallback;
  6171. function _GetformDisabledCallback: TLifecycleFormDisabledCallback;
  6172. function _GetformStateRestoreCallback: TLifecycleFormStateRestoreCallback;
  6173. procedure _SetformAssociatedCallback(const aValue: TLifecycleFormAssociatedCallback);
  6174. procedure _SetformResetCallback(const aValue: TLifecycleFormResetCallback);
  6175. procedure _SetformDisabledCallback(const aValue: TLifecycleFormDisabledCallback);
  6176. procedure _SetformStateRestoreCallback(const aValue: TLifecycleFormStateRestoreCallback);
  6177. Public
  6178. class function JSClassName: UnicodeString; override;
  6179. class function Cast(const Intf: IJSObject): IJSFormAssociatedLifecycleCallbacks;
  6180. property formAssociatedCallback: TLifecycleFormAssociatedCallback read _GetformAssociatedCallback write _SetformAssociatedCallback;
  6181. property formResetCallback: TLifecycleFormResetCallback read _GetformResetCallback write _SetformResetCallback;
  6182. property formDisabledCallback: TLifecycleFormDisabledCallback read _GetformDisabledCallback write _SetformDisabledCallback;
  6183. property formStateRestoreCallback: TLifecycleFormStateRestoreCallback read _GetformStateRestoreCallback write _SetformStateRestoreCallback;
  6184. end;
  6185. { --------------------------------------------------------------------
  6186. TJSDecoderDoctorNotification
  6187. --------------------------------------------------------------------}
  6188. TJSDecoderDoctorNotificationRec = record
  6189. type_: TDecoderDoctorNotificationType;
  6190. isSolved: Boolean;
  6191. decoderDoctorReportId: UnicodeString;
  6192. formats: UnicodeString;
  6193. decodeIssue: UnicodeString;
  6194. docURL: UnicodeString;
  6195. resourceURL: UnicodeString;
  6196. end;
  6197. IJSDecoderDoctorNotification = interface(IJSObject)
  6198. ['{3A0FA850-1AE6-35EC-9353-7CF5F4174A63}']
  6199. function _Gettype_: TDecoderDoctorNotificationType;
  6200. function _GetisSolved: Boolean;
  6201. function _GetdecoderDoctorReportId: UnicodeString;
  6202. function _Getformats: UnicodeString;
  6203. function _GetdecodeIssue: UnicodeString;
  6204. function _GetdocURL: UnicodeString;
  6205. function _GetresourceURL: UnicodeString;
  6206. procedure _Settype_(const aValue: TDecoderDoctorNotificationType);
  6207. procedure _SetisSolved(const aValue: Boolean);
  6208. procedure _SetdecoderDoctorReportId(const aValue: UnicodeString);
  6209. procedure _Setformats(const aValue: UnicodeString);
  6210. procedure _SetdecodeIssue(const aValue: UnicodeString);
  6211. procedure _SetdocURL(const aValue: UnicodeString);
  6212. procedure _SetresourceURL(const aValue: UnicodeString);
  6213. property type_: TDecoderDoctorNotificationType read _Gettype_ write _Settype_;
  6214. property isSolved: Boolean read _GetisSolved write _SetisSolved;
  6215. property decoderDoctorReportId: UnicodeString read _GetdecoderDoctorReportId write _SetdecoderDoctorReportId;
  6216. property formats: UnicodeString read _Getformats write _Setformats;
  6217. property decodeIssue: UnicodeString read _GetdecodeIssue write _SetdecodeIssue;
  6218. property docURL: UnicodeString read _GetdocURL write _SetdocURL;
  6219. property resourceURL: UnicodeString read _GetresourceURL write _SetresourceURL;
  6220. end;
  6221. TJSDecoderDoctorNotification = class(TJSObject,IJSDecoderDoctorNotification)
  6222. Protected
  6223. function _Gettype_: TDecoderDoctorNotificationType;
  6224. function _GetisSolved: Boolean;
  6225. function _GetdecoderDoctorReportId: UnicodeString;
  6226. function _Getformats: UnicodeString;
  6227. function _GetdecodeIssue: UnicodeString;
  6228. function _GetdocURL: UnicodeString;
  6229. function _GetresourceURL: UnicodeString;
  6230. procedure _Settype_(const aValue: TDecoderDoctorNotificationType);
  6231. procedure _SetisSolved(const aValue: Boolean);
  6232. procedure _SetdecoderDoctorReportId(const aValue: UnicodeString);
  6233. procedure _Setformats(const aValue: UnicodeString);
  6234. procedure _SetdecodeIssue(const aValue: UnicodeString);
  6235. procedure _SetdocURL(const aValue: UnicodeString);
  6236. procedure _SetresourceURL(const aValue: UnicodeString);
  6237. Public
  6238. class function JSClassName: UnicodeString; override;
  6239. class function Cast(const Intf: IJSObject): IJSDecoderDoctorNotification;
  6240. property type_: TDecoderDoctorNotificationType read _Gettype_ write _Settype_;
  6241. property isSolved: Boolean read _GetisSolved write _SetisSolved;
  6242. property decoderDoctorReportId: UnicodeString read _GetdecoderDoctorReportId write _SetdecoderDoctorReportId;
  6243. property formats: UnicodeString read _Getformats write _Setformats;
  6244. property decodeIssue: UnicodeString read _GetdecodeIssue write _SetdecodeIssue;
  6245. property docURL: UnicodeString read _GetdocURL write _SetdocURL;
  6246. property resourceURL: UnicodeString read _GetresourceURL write _SetresourceURL;
  6247. end;
  6248. { --------------------------------------------------------------------
  6249. TJSDeviceAccelerationInit
  6250. --------------------------------------------------------------------}
  6251. TJSDeviceAccelerationInitRec = record
  6252. x: Double;
  6253. y: Double;
  6254. z: Double;
  6255. end;
  6256. IJSDeviceAccelerationInit = interface(IJSObject)
  6257. ['{D29DF84A-2C80-3E8B-A6BD-B0AA41DA949B}']
  6258. function _Getx: Double;
  6259. function _Gety: Double;
  6260. function _Getz: Double;
  6261. procedure _Setx(const aValue: Double);
  6262. procedure _Sety(const aValue: Double);
  6263. procedure _Setz(const aValue: Double);
  6264. property x: Double read _Getx write _Setx;
  6265. property y: Double read _Gety write _Sety;
  6266. property z: Double read _Getz write _Setz;
  6267. end;
  6268. TJSDeviceAccelerationInit = class(TJSObject,IJSDeviceAccelerationInit)
  6269. Protected
  6270. function _Getx: Double;
  6271. function _Gety: Double;
  6272. function _Getz: Double;
  6273. procedure _Setx(const aValue: Double);
  6274. procedure _Sety(const aValue: Double);
  6275. procedure _Setz(const aValue: Double);
  6276. Public
  6277. class function JSClassName: UnicodeString; override;
  6278. class function Cast(const Intf: IJSObject): IJSDeviceAccelerationInit;
  6279. property x: Double read _Getx write _Setx;
  6280. property y: Double read _Gety write _Sety;
  6281. property z: Double read _Getz write _Setz;
  6282. end;
  6283. { --------------------------------------------------------------------
  6284. TJSDeviceRotationRateInit
  6285. --------------------------------------------------------------------}
  6286. TJSDeviceRotationRateInitRec = record
  6287. alpha: Double;
  6288. beta: Double;
  6289. gamma: Double;
  6290. end;
  6291. IJSDeviceRotationRateInit = interface(IJSObject)
  6292. ['{CE0A0473-5AAA-3F26-877B-0E1B8D5A9471}']
  6293. function _Getalpha: Double;
  6294. function _Getbeta: Double;
  6295. function _Getgamma: Double;
  6296. procedure _Setalpha(const aValue: Double);
  6297. procedure _Setbeta(const aValue: Double);
  6298. procedure _Setgamma(const aValue: Double);
  6299. property alpha: Double read _Getalpha write _Setalpha;
  6300. property beta: Double read _Getbeta write _Setbeta;
  6301. property gamma: Double read _Getgamma write _Setgamma;
  6302. end;
  6303. TJSDeviceRotationRateInit = class(TJSObject,IJSDeviceRotationRateInit)
  6304. Protected
  6305. function _Getalpha: Double;
  6306. function _Getbeta: Double;
  6307. function _Getgamma: Double;
  6308. procedure _Setalpha(const aValue: Double);
  6309. procedure _Setbeta(const aValue: Double);
  6310. procedure _Setgamma(const aValue: Double);
  6311. Public
  6312. class function JSClassName: UnicodeString; override;
  6313. class function Cast(const Intf: IJSObject): IJSDeviceRotationRateInit;
  6314. property alpha: Double read _Getalpha write _Setalpha;
  6315. property beta: Double read _Getbeta write _Setbeta;
  6316. property gamma: Double read _Getgamma write _Setgamma;
  6317. end;
  6318. { --------------------------------------------------------------------
  6319. TJSElementCreationOptions
  6320. --------------------------------------------------------------------}
  6321. TJSElementCreationOptionsRec = record
  6322. is_: UnicodeString;
  6323. end;
  6324. IJSElementCreationOptions = interface(IJSObject)
  6325. ['{1C2E9247-8DD5-3F7B-BC95-1DF7555AB97A}']
  6326. function _Getis_: UnicodeString;
  6327. procedure _Setis_(const aValue: UnicodeString);
  6328. property is_: UnicodeString read _Getis_ write _Setis_;
  6329. end;
  6330. TJSElementCreationOptions = class(TJSObject,IJSElementCreationOptions)
  6331. Protected
  6332. function _Getis_: UnicodeString;
  6333. procedure _Setis_(const aValue: UnicodeString);
  6334. Public
  6335. class function JSClassName: UnicodeString; override;
  6336. class function Cast(const Intf: IJSObject): IJSElementCreationOptions;
  6337. property is_: UnicodeString read _Getis_ write _Setis_;
  6338. end;
  6339. { --------------------------------------------------------------------
  6340. TJSBlockParsingOptions
  6341. --------------------------------------------------------------------}
  6342. TJSBlockParsingOptionsRec = record
  6343. blockScriptCreated: Boolean;
  6344. end;
  6345. IJSBlockParsingOptions = interface(IJSObject)
  6346. ['{57B65486-897F-339F-A698-AB2C5DB2B8A7}']
  6347. function _GetblockScriptCreated: Boolean;
  6348. procedure _SetblockScriptCreated(const aValue: Boolean);
  6349. property blockScriptCreated: Boolean read _GetblockScriptCreated write _SetblockScriptCreated;
  6350. end;
  6351. TJSBlockParsingOptions = class(TJSObject,IJSBlockParsingOptions)
  6352. Protected
  6353. function _GetblockScriptCreated: Boolean;
  6354. procedure _SetblockScriptCreated(const aValue: Boolean);
  6355. Public
  6356. class function JSClassName: UnicodeString; override;
  6357. class function Cast(const Intf: IJSObject): IJSBlockParsingOptions;
  6358. property blockScriptCreated: Boolean read _GetblockScriptCreated write _SetblockScriptCreated;
  6359. end;
  6360. { --------------------------------------------------------------------
  6361. TJSWireframeTaggedRect
  6362. --------------------------------------------------------------------}
  6363. TJSWireframeTaggedRectRec = record
  6364. x: Double;
  6365. y: Double;
  6366. width: Double;
  6367. height: Double;
  6368. color: Cardinal;
  6369. type_: TWireframeRectType;
  6370. node: IJSNode;
  6371. end;
  6372. IJSWireframeTaggedRect = interface(IJSObject)
  6373. ['{726B02C7-2133-3EB5-8FA9-813EFF74A3FB}']
  6374. function _Getx: Double;
  6375. function _Gety: Double;
  6376. function _Getwidth: Double;
  6377. function _Getheight: Double;
  6378. function _Getcolor: Cardinal;
  6379. function _Gettype_: TWireframeRectType;
  6380. function _Getnode: IJSNode;
  6381. procedure _Setx(const aValue: Double);
  6382. procedure _Sety(const aValue: Double);
  6383. procedure _Setwidth(const aValue: Double);
  6384. procedure _Setheight(const aValue: Double);
  6385. procedure _Setcolor(const aValue: Cardinal);
  6386. procedure _Settype_(const aValue: TWireframeRectType);
  6387. procedure _Setnode(const aValue: IJSNode);
  6388. property x: Double read _Getx write _Setx;
  6389. property y: Double read _Gety write _Sety;
  6390. property width: Double read _Getwidth write _Setwidth;
  6391. property height: Double read _Getheight write _Setheight;
  6392. property color: Cardinal read _Getcolor write _Setcolor;
  6393. property type_: TWireframeRectType read _Gettype_ write _Settype_;
  6394. property node: IJSNode read _Getnode write _Setnode;
  6395. end;
  6396. TJSWireframeTaggedRect = class(TJSObject,IJSWireframeTaggedRect)
  6397. Protected
  6398. function _Getx: Double;
  6399. function _Gety: Double;
  6400. function _Getwidth: Double;
  6401. function _Getheight: Double;
  6402. function _Getcolor: Cardinal;
  6403. function _Gettype_: TWireframeRectType;
  6404. function _Getnode: IJSNode;
  6405. procedure _Setx(const aValue: Double);
  6406. procedure _Sety(const aValue: Double);
  6407. procedure _Setwidth(const aValue: Double);
  6408. procedure _Setheight(const aValue: Double);
  6409. procedure _Setcolor(const aValue: Cardinal);
  6410. procedure _Settype_(const aValue: TWireframeRectType);
  6411. procedure _Setnode(const aValue: IJSNode);
  6412. Public
  6413. class function JSClassName: UnicodeString; override;
  6414. class function Cast(const Intf: IJSObject): IJSWireframeTaggedRect;
  6415. property x: Double read _Getx write _Setx;
  6416. property y: Double read _Gety write _Sety;
  6417. property width: Double read _Getwidth write _Setwidth;
  6418. property height: Double read _Getheight write _Setheight;
  6419. property color: Cardinal read _Getcolor write _Setcolor;
  6420. property type_: TWireframeRectType read _Gettype_ write _Settype_;
  6421. property node: IJSNode read _Getnode write _Setnode;
  6422. end;
  6423. { --------------------------------------------------------------------
  6424. TJSWireframe
  6425. --------------------------------------------------------------------}
  6426. TJSWireframeTaggedRectDynArray = IJSArray; // array of WireframeTaggedRect
  6427. TJSWireframeRec = record
  6428. canvasBackground: Cardinal;
  6429. rects: TJSWireframeTaggedRectDynArray;
  6430. version: Cardinal;
  6431. end;
  6432. IJSWireframe = interface(IJSObject)
  6433. ['{45415E2E-24F7-39AC-A9CD-B7216C577103}']
  6434. function _GetcanvasBackground: Cardinal;
  6435. function _Getrects: TJSWireframeTaggedRectDynArray;
  6436. function _Getversion: Cardinal;
  6437. procedure _SetcanvasBackground(const aValue: Cardinal);
  6438. procedure _Setrects(const aValue: TJSWireframeTaggedRectDynArray);
  6439. procedure _Setversion(const aValue: Cardinal);
  6440. property canvasBackground: Cardinal read _GetcanvasBackground write _SetcanvasBackground;
  6441. property rects: TJSWireframeTaggedRectDynArray read _Getrects write _Setrects;
  6442. property version: Cardinal read _Getversion write _Setversion;
  6443. end;
  6444. TJSWireframe = class(TJSObject,IJSWireframe)
  6445. Protected
  6446. function _GetcanvasBackground: Cardinal;
  6447. function _Getrects: TJSWireframeTaggedRectDynArray;
  6448. function _Getversion: Cardinal;
  6449. procedure _SetcanvasBackground(const aValue: Cardinal);
  6450. procedure _Setrects(const aValue: TJSWireframeTaggedRectDynArray);
  6451. procedure _Setversion(const aValue: Cardinal);
  6452. Public
  6453. class function JSClassName: UnicodeString; override;
  6454. class function Cast(const Intf: IJSObject): IJSWireframe;
  6455. property canvasBackground: Cardinal read _GetcanvasBackground write _SetcanvasBackground;
  6456. property rects: TJSWireframeTaggedRectDynArray read _Getrects write _Setrects;
  6457. property version: Cardinal read _Getversion write _Setversion;
  6458. end;
  6459. { --------------------------------------------------------------------
  6460. TJSDocumentTimelineOptions
  6461. --------------------------------------------------------------------}
  6462. TJSDocumentTimelineOptionsRec = record
  6463. originTime: TDOMHighResTimeStamp;
  6464. end;
  6465. IJSDocumentTimelineOptions = interface(IJSObject)
  6466. ['{86BB71D3-2A98-3E8D-8971-C7A3C9B1E2EC}']
  6467. function _GetoriginTime: TDOMHighResTimeStamp;
  6468. procedure _SetoriginTime(const aValue: TDOMHighResTimeStamp);
  6469. property originTime: TDOMHighResTimeStamp read _GetoriginTime write _SetoriginTime;
  6470. end;
  6471. TJSDocumentTimelineOptions = class(TJSObject,IJSDocumentTimelineOptions)
  6472. Protected
  6473. function _GetoriginTime: TDOMHighResTimeStamp;
  6474. procedure _SetoriginTime(const aValue: TDOMHighResTimeStamp);
  6475. Public
  6476. class function JSClassName: UnicodeString; override;
  6477. class function Cast(const Intf: IJSObject): IJSDocumentTimelineOptions;
  6478. property originTime: TDOMHighResTimeStamp read _GetoriginTime write _SetoriginTime;
  6479. end;
  6480. { --------------------------------------------------------------------
  6481. TJSDOMMatrix2DInit
  6482. --------------------------------------------------------------------}
  6483. TJSDOMMatrix2DInitRec = record
  6484. a: Double;
  6485. b: Double;
  6486. c: Double;
  6487. d: Double;
  6488. e: Double;
  6489. f: Double;
  6490. m11: Double;
  6491. m12: Double;
  6492. m21: Double;
  6493. m22: Double;
  6494. m41: Double;
  6495. m42: Double;
  6496. end;
  6497. IJSDOMMatrix2DInit = interface(IJSObject)
  6498. ['{DA096D9A-0409-3B26-8A80-AC365B404C8C}']
  6499. function _Geta: Double;
  6500. function _Getb: Double;
  6501. function _Getc: Double;
  6502. function _Getd: Double;
  6503. function _Gete: Double;
  6504. function _Getf: Double;
  6505. function _Getm11: Double;
  6506. function _Getm12: Double;
  6507. function _Getm21: Double;
  6508. function _Getm22: Double;
  6509. function _Getm41: Double;
  6510. function _Getm42: Double;
  6511. procedure _Seta(const aValue: Double);
  6512. procedure _Setb(const aValue: Double);
  6513. procedure _Setc(const aValue: Double);
  6514. procedure _Setd(const aValue: Double);
  6515. procedure _Sete(const aValue: Double);
  6516. procedure _Setf(const aValue: Double);
  6517. procedure _Setm11(const aValue: Double);
  6518. procedure _Setm12(const aValue: Double);
  6519. procedure _Setm21(const aValue: Double);
  6520. procedure _Setm22(const aValue: Double);
  6521. procedure _Setm41(const aValue: Double);
  6522. procedure _Setm42(const aValue: Double);
  6523. property a: Double read _Geta write _Seta;
  6524. property b: Double read _Getb write _Setb;
  6525. property c: Double read _Getc write _Setc;
  6526. property d: Double read _Getd write _Setd;
  6527. property e: Double read _Gete write _Sete;
  6528. property f: Double read _Getf write _Setf;
  6529. property m11: Double read _Getm11 write _Setm11;
  6530. property m12: Double read _Getm12 write _Setm12;
  6531. property m21: Double read _Getm21 write _Setm21;
  6532. property m22: Double read _Getm22 write _Setm22;
  6533. property m41: Double read _Getm41 write _Setm41;
  6534. property m42: Double read _Getm42 write _Setm42;
  6535. end;
  6536. TJSDOMMatrix2DInit = class(TJSObject,IJSDOMMatrix2DInit)
  6537. Protected
  6538. function _Geta: Double;
  6539. function _Getb: Double;
  6540. function _Getc: Double;
  6541. function _Getd: Double;
  6542. function _Gete: Double;
  6543. function _Getf: Double;
  6544. function _Getm11: Double;
  6545. function _Getm12: Double;
  6546. function _Getm21: Double;
  6547. function _Getm22: Double;
  6548. function _Getm41: Double;
  6549. function _Getm42: Double;
  6550. procedure _Seta(const aValue: Double);
  6551. procedure _Setb(const aValue: Double);
  6552. procedure _Setc(const aValue: Double);
  6553. procedure _Setd(const aValue: Double);
  6554. procedure _Sete(const aValue: Double);
  6555. procedure _Setf(const aValue: Double);
  6556. procedure _Setm11(const aValue: Double);
  6557. procedure _Setm12(const aValue: Double);
  6558. procedure _Setm21(const aValue: Double);
  6559. procedure _Setm22(const aValue: Double);
  6560. procedure _Setm41(const aValue: Double);
  6561. procedure _Setm42(const aValue: Double);
  6562. Public
  6563. class function JSClassName: UnicodeString; override;
  6564. class function Cast(const Intf: IJSObject): IJSDOMMatrix2DInit;
  6565. property a: Double read _Geta write _Seta;
  6566. property b: Double read _Getb write _Setb;
  6567. property c: Double read _Getc write _Setc;
  6568. property d: Double read _Getd write _Setd;
  6569. property e: Double read _Gete write _Sete;
  6570. property f: Double read _Getf write _Setf;
  6571. property m11: Double read _Getm11 write _Setm11;
  6572. property m12: Double read _Getm12 write _Setm12;
  6573. property m21: Double read _Getm21 write _Setm21;
  6574. property m22: Double read _Getm22 write _Setm22;
  6575. property m41: Double read _Getm41 write _Setm41;
  6576. property m42: Double read _Getm42 write _Setm42;
  6577. end;
  6578. { --------------------------------------------------------------------
  6579. TJSDOMPointInit
  6580. --------------------------------------------------------------------}
  6581. TJSDOMPointInitRec = record
  6582. x: Double;
  6583. y: Double;
  6584. z: Double;
  6585. w: Double;
  6586. end;
  6587. IJSDOMPointInit = interface(IJSObject)
  6588. ['{E6CE1A6D-99B3-3671-9E63-E3D459E2A621}']
  6589. function _Getx: Double;
  6590. function _Gety: Double;
  6591. function _Getz: Double;
  6592. function _Getw: Double;
  6593. procedure _Setx(const aValue: Double);
  6594. procedure _Sety(const aValue: Double);
  6595. procedure _Setz(const aValue: Double);
  6596. procedure _Setw(const aValue: Double);
  6597. property x: Double read _Getx write _Setx;
  6598. property y: Double read _Gety write _Sety;
  6599. property z: Double read _Getz write _Setz;
  6600. property w: Double read _Getw write _Setw;
  6601. end;
  6602. TJSDOMPointInit = class(TJSObject,IJSDOMPointInit)
  6603. Protected
  6604. function _Getx: Double;
  6605. function _Gety: Double;
  6606. function _Getz: Double;
  6607. function _Getw: Double;
  6608. procedure _Setx(const aValue: Double);
  6609. procedure _Sety(const aValue: Double);
  6610. procedure _Setz(const aValue: Double);
  6611. procedure _Setw(const aValue: Double);
  6612. Public
  6613. class function JSClassName: UnicodeString; override;
  6614. class function Cast(const Intf: IJSObject): IJSDOMPointInit;
  6615. property x: Double read _Getx write _Setx;
  6616. property y: Double read _Gety write _Sety;
  6617. property z: Double read _Getz write _Setz;
  6618. property w: Double read _Getw write _Setw;
  6619. end;
  6620. { --------------------------------------------------------------------
  6621. TJSDOMQuadInit
  6622. --------------------------------------------------------------------}
  6623. TJSDOMQuadInitRec = record
  6624. p1: TJSDOMPointInit;
  6625. p2: TJSDOMPointInit;
  6626. p3: TJSDOMPointInit;
  6627. p4: TJSDOMPointInit;
  6628. end;
  6629. IJSDOMQuadInit = interface(IJSObject)
  6630. ['{EEDFBD00-FE2E-3C49-84D0-FD5938E0AE31}']
  6631. function _Getp1: TJSDOMPointInit;
  6632. function _Getp2: TJSDOMPointInit;
  6633. function _Getp3: TJSDOMPointInit;
  6634. function _Getp4: TJSDOMPointInit;
  6635. procedure _Setp1(const aValue: TJSDOMPointInit);
  6636. procedure _Setp2(const aValue: TJSDOMPointInit);
  6637. procedure _Setp3(const aValue: TJSDOMPointInit);
  6638. procedure _Setp4(const aValue: TJSDOMPointInit);
  6639. property p1: TJSDOMPointInit read _Getp1 write _Setp1;
  6640. property p2: TJSDOMPointInit read _Getp2 write _Setp2;
  6641. property p3: TJSDOMPointInit read _Getp3 write _Setp3;
  6642. property p4: TJSDOMPointInit read _Getp4 write _Setp4;
  6643. end;
  6644. TJSDOMQuadInit = class(TJSObject,IJSDOMQuadInit)
  6645. Protected
  6646. function _Getp1: TJSDOMPointInit;
  6647. function _Getp2: TJSDOMPointInit;
  6648. function _Getp3: TJSDOMPointInit;
  6649. function _Getp4: TJSDOMPointInit;
  6650. procedure _Setp1(const aValue: TJSDOMPointInit);
  6651. procedure _Setp2(const aValue: TJSDOMPointInit);
  6652. procedure _Setp3(const aValue: TJSDOMPointInit);
  6653. procedure _Setp4(const aValue: TJSDOMPointInit);
  6654. Public
  6655. class function JSClassName: UnicodeString; override;
  6656. class function Cast(const Intf: IJSObject): IJSDOMQuadInit;
  6657. property p1: TJSDOMPointInit read _Getp1 write _Setp1;
  6658. property p2: TJSDOMPointInit read _Getp2 write _Setp2;
  6659. property p3: TJSDOMPointInit read _Getp3 write _Setp3;
  6660. property p4: TJSDOMPointInit read _Getp4 write _Setp4;
  6661. end;
  6662. { --------------------------------------------------------------------
  6663. TJSDOMRectInit
  6664. --------------------------------------------------------------------}
  6665. TJSDOMRectInitRec = record
  6666. x: Double;
  6667. y: Double;
  6668. width: Double;
  6669. height: Double;
  6670. end;
  6671. IJSDOMRectInit = interface(IJSObject)
  6672. ['{EA9EDD00-0E42-3C49-BC7F-2EDD319D5E04}']
  6673. function _Getx: Double;
  6674. function _Gety: Double;
  6675. function _Getwidth: Double;
  6676. function _Getheight: Double;
  6677. procedure _Setx(const aValue: Double);
  6678. procedure _Sety(const aValue: Double);
  6679. procedure _Setwidth(const aValue: Double);
  6680. procedure _Setheight(const aValue: Double);
  6681. property x: Double read _Getx write _Setx;
  6682. property y: Double read _Gety write _Sety;
  6683. property width: Double read _Getwidth write _Setwidth;
  6684. property height: Double read _Getheight write _Setheight;
  6685. end;
  6686. TJSDOMRectInit = class(TJSObject,IJSDOMRectInit)
  6687. Protected
  6688. function _Getx: Double;
  6689. function _Gety: Double;
  6690. function _Getwidth: Double;
  6691. function _Getheight: Double;
  6692. procedure _Setx(const aValue: Double);
  6693. procedure _Sety(const aValue: Double);
  6694. procedure _Setwidth(const aValue: Double);
  6695. procedure _Setheight(const aValue: Double);
  6696. Public
  6697. class function JSClassName: UnicodeString; override;
  6698. class function Cast(const Intf: IJSObject): IJSDOMRectInit;
  6699. property x: Double read _Getx write _Setx;
  6700. property y: Double read _Gety write _Sety;
  6701. property width: Double read _Getwidth write _Setwidth;
  6702. property height: Double read _Getheight write _Setheight;
  6703. end;
  6704. { --------------------------------------------------------------------
  6705. TJSFocusOptions
  6706. --------------------------------------------------------------------}
  6707. TJSFocusOptionsRec = record
  6708. preventScroll: Boolean;
  6709. focusVisible: Boolean;
  6710. end;
  6711. IJSFocusOptions = interface(IJSObject)
  6712. ['{4C9DEE92-624E-321F-ADCC-7E61FF350680}']
  6713. function _GetpreventScroll: Boolean;
  6714. function _GetfocusVisible: Boolean;
  6715. procedure _SetpreventScroll(const aValue: Boolean);
  6716. procedure _SetfocusVisible(const aValue: Boolean);
  6717. property preventScroll: Boolean read _GetpreventScroll write _SetpreventScroll;
  6718. property focusVisible: Boolean read _GetfocusVisible write _SetfocusVisible;
  6719. end;
  6720. TJSFocusOptions = class(TJSObject,IJSFocusOptions)
  6721. Protected
  6722. function _GetpreventScroll: Boolean;
  6723. function _GetfocusVisible: Boolean;
  6724. procedure _SetpreventScroll(const aValue: Boolean);
  6725. procedure _SetfocusVisible(const aValue: Boolean);
  6726. Public
  6727. class function JSClassName: UnicodeString; override;
  6728. class function Cast(const Intf: IJSObject): IJSFocusOptions;
  6729. property preventScroll: Boolean read _GetpreventScroll write _SetpreventScroll;
  6730. property focusVisible: Boolean read _GetfocusVisible write _SetfocusVisible;
  6731. end;
  6732. { --------------------------------------------------------------------
  6733. TJSCheckVisibilityOptions
  6734. --------------------------------------------------------------------}
  6735. TJSCheckVisibilityOptionsRec = record
  6736. checkOpacity: Boolean;
  6737. checkVisibilityCSS: Boolean;
  6738. contentVisibilityAuto: Boolean;
  6739. opacityProperty: Boolean;
  6740. visibilityProperty: Boolean;
  6741. end;
  6742. IJSCheckVisibilityOptions = interface(IJSObject)
  6743. ['{3281B500-5FA6-3D4E-A0CC-E88EAEF660BE}']
  6744. function _GetcheckOpacity: Boolean;
  6745. function _GetcheckVisibilityCSS: Boolean;
  6746. function _GetcontentVisibilityAuto: Boolean;
  6747. function _GetopacityProperty: Boolean;
  6748. function _GetvisibilityProperty: Boolean;
  6749. procedure _SetcheckOpacity(const aValue: Boolean);
  6750. procedure _SetcheckVisibilityCSS(const aValue: Boolean);
  6751. procedure _SetcontentVisibilityAuto(const aValue: Boolean);
  6752. procedure _SetopacityProperty(const aValue: Boolean);
  6753. procedure _SetvisibilityProperty(const aValue: Boolean);
  6754. property checkOpacity: Boolean read _GetcheckOpacity write _SetcheckOpacity;
  6755. property checkVisibilityCSS: Boolean read _GetcheckVisibilityCSS write _SetcheckVisibilityCSS;
  6756. property contentVisibilityAuto: Boolean read _GetcontentVisibilityAuto write _SetcontentVisibilityAuto;
  6757. property opacityProperty: Boolean read _GetopacityProperty write _SetopacityProperty;
  6758. property visibilityProperty: Boolean read _GetvisibilityProperty write _SetvisibilityProperty;
  6759. end;
  6760. TJSCheckVisibilityOptions = class(TJSObject,IJSCheckVisibilityOptions)
  6761. Protected
  6762. function _GetcheckOpacity: Boolean;
  6763. function _GetcheckVisibilityCSS: Boolean;
  6764. function _GetcontentVisibilityAuto: Boolean;
  6765. function _GetopacityProperty: Boolean;
  6766. function _GetvisibilityProperty: Boolean;
  6767. procedure _SetcheckOpacity(const aValue: Boolean);
  6768. procedure _SetcheckVisibilityCSS(const aValue: Boolean);
  6769. procedure _SetcontentVisibilityAuto(const aValue: Boolean);
  6770. procedure _SetopacityProperty(const aValue: Boolean);
  6771. procedure _SetvisibilityProperty(const aValue: Boolean);
  6772. Public
  6773. class function JSClassName: UnicodeString; override;
  6774. class function Cast(const Intf: IJSObject): IJSCheckVisibilityOptions;
  6775. property checkOpacity: Boolean read _GetcheckOpacity write _SetcheckOpacity;
  6776. property checkVisibilityCSS: Boolean read _GetcheckVisibilityCSS write _SetcheckVisibilityCSS;
  6777. property contentVisibilityAuto: Boolean read _GetcontentVisibilityAuto write _SetcontentVisibilityAuto;
  6778. property opacityProperty: Boolean read _GetopacityProperty write _SetopacityProperty;
  6779. property visibilityProperty: Boolean read _GetvisibilityProperty write _SetvisibilityProperty;
  6780. end;
  6781. { --------------------------------------------------------------------
  6782. TJSShadowRootInit
  6783. --------------------------------------------------------------------}
  6784. TJSShadowRootInitRec = record
  6785. mode: TShadowRootMode;
  6786. delegatesFocus: Boolean;
  6787. slotAssignment: TSlotAssignmentMode;
  6788. clonable: Boolean;
  6789. end;
  6790. IJSShadowRootInit = interface(IJSObject)
  6791. ['{6E511F30-86AA-3E19-BD75-970C6B440A90}']
  6792. function _Getmode: TShadowRootMode;
  6793. function _GetdelegatesFocus: Boolean;
  6794. function _GetslotAssignment: TSlotAssignmentMode;
  6795. function _Getclonable: Boolean;
  6796. procedure _Setmode(const aValue: TShadowRootMode);
  6797. procedure _SetdelegatesFocus(const aValue: Boolean);
  6798. procedure _SetslotAssignment(const aValue: TSlotAssignmentMode);
  6799. procedure _Setclonable(const aValue: Boolean);
  6800. property mode: TShadowRootMode read _Getmode write _Setmode;
  6801. property delegatesFocus: Boolean read _GetdelegatesFocus write _SetdelegatesFocus;
  6802. property slotAssignment: TSlotAssignmentMode read _GetslotAssignment write _SetslotAssignment;
  6803. property clonable: Boolean read _Getclonable write _Setclonable;
  6804. end;
  6805. TJSShadowRootInit = class(TJSObject,IJSShadowRootInit)
  6806. Protected
  6807. function _Getmode: TShadowRootMode;
  6808. function _GetdelegatesFocus: Boolean;
  6809. function _GetslotAssignment: TSlotAssignmentMode;
  6810. function _Getclonable: Boolean;
  6811. procedure _Setmode(const aValue: TShadowRootMode);
  6812. procedure _SetdelegatesFocus(const aValue: Boolean);
  6813. procedure _SetslotAssignment(const aValue: TSlotAssignmentMode);
  6814. procedure _Setclonable(const aValue: Boolean);
  6815. Public
  6816. class function JSClassName: UnicodeString; override;
  6817. class function Cast(const Intf: IJSObject): IJSShadowRootInit;
  6818. property mode: TShadowRootMode read _Getmode write _Setmode;
  6819. property delegatesFocus: Boolean read _GetdelegatesFocus write _SetdelegatesFocus;
  6820. property slotAssignment: TSlotAssignmentMode read _GetslotAssignment write _SetslotAssignment;
  6821. property clonable: Boolean read _Getclonable write _Setclonable;
  6822. end;
  6823. { --------------------------------------------------------------------
  6824. TJSSetHTMLOptions
  6825. --------------------------------------------------------------------}
  6826. TJSSetHTMLOptionsRec = record
  6827. sanitizer: TJSSanitizerConfig;
  6828. end;
  6829. IJSSetHTMLOptions = interface(IJSObject)
  6830. ['{A28D8BC3-0006-3755-9AB9-8CC3E62FCECD}']
  6831. function _Getsanitizer: TJSSanitizerConfig;
  6832. procedure _Setsanitizer(const aValue: TJSSanitizerConfig);
  6833. property sanitizer: TJSSanitizerConfig read _Getsanitizer write _Setsanitizer;
  6834. end;
  6835. TJSSetHTMLOptions = class(TJSObject,IJSSetHTMLOptions)
  6836. Protected
  6837. function _Getsanitizer: TJSSanitizerConfig;
  6838. procedure _Setsanitizer(const aValue: TJSSanitizerConfig);
  6839. Public
  6840. class function JSClassName: UnicodeString; override;
  6841. class function Cast(const Intf: IJSObject): IJSSetHTMLOptions;
  6842. property sanitizer: TJSSanitizerConfig read _Getsanitizer write _Setsanitizer;
  6843. end;
  6844. { --------------------------------------------------------------------
  6845. TJSValidityStateFlags
  6846. --------------------------------------------------------------------}
  6847. TJSValidityStateFlagsRec = record
  6848. valueMissing: Boolean;
  6849. typeMismatch: Boolean;
  6850. patternMismatch: Boolean;
  6851. tooLong: Boolean;
  6852. tooShort: Boolean;
  6853. rangeUnderflow: Boolean;
  6854. rangeOverflow: Boolean;
  6855. stepMismatch: Boolean;
  6856. badInput: Boolean;
  6857. customError: Boolean;
  6858. end;
  6859. IJSValidityStateFlags = interface(IJSObject)
  6860. ['{2C09385D-5153-36E9-A684-4A295C7298EE}']
  6861. function _GetvalueMissing: Boolean;
  6862. function _GettypeMismatch: Boolean;
  6863. function _GetpatternMismatch: Boolean;
  6864. function _GettooLong: Boolean;
  6865. function _GettooShort: Boolean;
  6866. function _GetrangeUnderflow: Boolean;
  6867. function _GetrangeOverflow: Boolean;
  6868. function _GetstepMismatch: Boolean;
  6869. function _GetbadInput: Boolean;
  6870. function _GetcustomError: Boolean;
  6871. procedure _SetvalueMissing(const aValue: Boolean);
  6872. procedure _SettypeMismatch(const aValue: Boolean);
  6873. procedure _SetpatternMismatch(const aValue: Boolean);
  6874. procedure _SettooLong(const aValue: Boolean);
  6875. procedure _SettooShort(const aValue: Boolean);
  6876. procedure _SetrangeUnderflow(const aValue: Boolean);
  6877. procedure _SetrangeOverflow(const aValue: Boolean);
  6878. procedure _SetstepMismatch(const aValue: Boolean);
  6879. procedure _SetbadInput(const aValue: Boolean);
  6880. procedure _SetcustomError(const aValue: Boolean);
  6881. property valueMissing: Boolean read _GetvalueMissing write _SetvalueMissing;
  6882. property typeMismatch: Boolean read _GettypeMismatch write _SettypeMismatch;
  6883. property patternMismatch: Boolean read _GetpatternMismatch write _SetpatternMismatch;
  6884. property tooLong: Boolean read _GettooLong write _SettooLong;
  6885. property tooShort: Boolean read _GettooShort write _SettooShort;
  6886. property rangeUnderflow: Boolean read _GetrangeUnderflow write _SetrangeUnderflow;
  6887. property rangeOverflow: Boolean read _GetrangeOverflow write _SetrangeOverflow;
  6888. property stepMismatch: Boolean read _GetstepMismatch write _SetstepMismatch;
  6889. property badInput: Boolean read _GetbadInput write _SetbadInput;
  6890. property customError: Boolean read _GetcustomError write _SetcustomError;
  6891. end;
  6892. TJSValidityStateFlags = class(TJSObject,IJSValidityStateFlags)
  6893. Protected
  6894. function _GetvalueMissing: Boolean;
  6895. function _GettypeMismatch: Boolean;
  6896. function _GetpatternMismatch: Boolean;
  6897. function _GettooLong: Boolean;
  6898. function _GettooShort: Boolean;
  6899. function _GetrangeUnderflow: Boolean;
  6900. function _GetrangeOverflow: Boolean;
  6901. function _GetstepMismatch: Boolean;
  6902. function _GetbadInput: Boolean;
  6903. function _GetcustomError: Boolean;
  6904. procedure _SetvalueMissing(const aValue: Boolean);
  6905. procedure _SettypeMismatch(const aValue: Boolean);
  6906. procedure _SetpatternMismatch(const aValue: Boolean);
  6907. procedure _SettooLong(const aValue: Boolean);
  6908. procedure _SettooShort(const aValue: Boolean);
  6909. procedure _SetrangeUnderflow(const aValue: Boolean);
  6910. procedure _SetrangeOverflow(const aValue: Boolean);
  6911. procedure _SetstepMismatch(const aValue: Boolean);
  6912. procedure _SetbadInput(const aValue: Boolean);
  6913. procedure _SetcustomError(const aValue: Boolean);
  6914. Public
  6915. class function JSClassName: UnicodeString; override;
  6916. class function Cast(const Intf: IJSObject): IJSValidityStateFlags;
  6917. property valueMissing: Boolean read _GetvalueMissing write _SetvalueMissing;
  6918. property typeMismatch: Boolean read _GettypeMismatch write _SettypeMismatch;
  6919. property patternMismatch: Boolean read _GetpatternMismatch write _SetpatternMismatch;
  6920. property tooLong: Boolean read _GettooLong write _SettooLong;
  6921. property tooShort: Boolean read _GettooShort write _SettooShort;
  6922. property rangeUnderflow: Boolean read _GetrangeUnderflow write _SetrangeUnderflow;
  6923. property rangeOverflow: Boolean read _GetrangeOverflow write _SetrangeOverflow;
  6924. property stepMismatch: Boolean read _GetstepMismatch write _SetstepMismatch;
  6925. property badInput: Boolean read _GetbadInput write _SetbadInput;
  6926. property customError: Boolean read _GetcustomError write _SetcustomError;
  6927. end;
  6928. { --------------------------------------------------------------------
  6929. TJSEncodedAudioChunkInit
  6930. --------------------------------------------------------------------}
  6931. // Union of ArrayBufferView, ArrayBuffer
  6932. TEncodedAudioChunkInit_data_Type = Variant;
  6933. TJSEncodedAudioChunkInitRec = record
  6934. type_: TEncodedAudioChunkType;
  6935. timestamp: Int64;
  6936. duration: QWord;
  6937. data: TEncodedAudioChunkInit_data_Type;
  6938. transfer: TIJSArrayBufferDynArray;
  6939. end;
  6940. IJSEncodedAudioChunkInit = interface(IJSObject)
  6941. ['{2952F443-82A9-3BA3-A7C4-2135390EF720}']
  6942. function _Gettype_: TEncodedAudioChunkType;
  6943. function _Gettimestamp: Int64;
  6944. function _Getduration: QWord;
  6945. function _Getdata: TEncodedAudioChunkInit_data_Type;
  6946. function _Gettransfer: TIJSArrayBufferDynArray;
  6947. procedure _Settype_(const aValue: TEncodedAudioChunkType);
  6948. procedure _Settimestamp(const aValue: Int64);
  6949. procedure _Setduration(const aValue: QWord);
  6950. procedure _Setdata(const aValue: TEncodedAudioChunkInit_data_Type);
  6951. procedure _Settransfer(const aValue: TIJSArrayBufferDynArray);
  6952. property type_: TEncodedAudioChunkType read _Gettype_ write _Settype_;
  6953. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  6954. property duration: QWord read _Getduration write _Setduration;
  6955. property data: TEncodedAudioChunkInit_data_Type read _Getdata write _Setdata;
  6956. property transfer: TIJSArrayBufferDynArray read _Gettransfer write _Settransfer;
  6957. end;
  6958. TJSEncodedAudioChunkInit = class(TJSObject,IJSEncodedAudioChunkInit)
  6959. Protected
  6960. function _Gettype_: TEncodedAudioChunkType;
  6961. function _Gettimestamp: Int64;
  6962. function _Getduration: QWord;
  6963. function _Getdata: TEncodedAudioChunkInit_data_Type;
  6964. function _Gettransfer: TIJSArrayBufferDynArray;
  6965. procedure _Settype_(const aValue: TEncodedAudioChunkType);
  6966. procedure _Settimestamp(const aValue: Int64);
  6967. procedure _Setduration(const aValue: QWord);
  6968. procedure _Setdata(const aValue: TEncodedAudioChunkInit_data_Type);
  6969. procedure _Settransfer(const aValue: TIJSArrayBufferDynArray);
  6970. Public
  6971. class function JSClassName: UnicodeString; override;
  6972. class function Cast(const Intf: IJSObject): IJSEncodedAudioChunkInit;
  6973. property type_: TEncodedAudioChunkType read _Gettype_ write _Settype_;
  6974. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  6975. property duration: QWord read _Getduration write _Setduration;
  6976. property data: TEncodedAudioChunkInit_data_Type read _Getdata write _Setdata;
  6977. property transfer: TIJSArrayBufferDynArray read _Gettransfer write _Settransfer;
  6978. end;
  6979. { --------------------------------------------------------------------
  6980. TJSEncodedVideoChunkInit
  6981. --------------------------------------------------------------------}
  6982. // Union of ArrayBufferView, ArrayBuffer
  6983. TEncodedVideoChunkInit_data_Type = Variant;
  6984. TJSEncodedVideoChunkInitRec = record
  6985. type_: TEncodedVideoChunkType;
  6986. timestamp: Int64;
  6987. duration: QWord;
  6988. data: TEncodedVideoChunkInit_data_Type;
  6989. end;
  6990. IJSEncodedVideoChunkInit = interface(IJSObject)
  6991. ['{D12D5953-BA15-34E3-97C4-2135390E060B}']
  6992. function _Gettype_: TEncodedVideoChunkType;
  6993. function _Gettimestamp: Int64;
  6994. function _Getduration: QWord;
  6995. function _Getdata: TEncodedVideoChunkInit_data_Type;
  6996. procedure _Settype_(const aValue: TEncodedVideoChunkType);
  6997. procedure _Settimestamp(const aValue: Int64);
  6998. procedure _Setduration(const aValue: QWord);
  6999. procedure _Setdata(const aValue: TEncodedVideoChunkInit_data_Type);
  7000. property type_: TEncodedVideoChunkType read _Gettype_ write _Settype_;
  7001. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  7002. property duration: QWord read _Getduration write _Setduration;
  7003. property data: TEncodedVideoChunkInit_data_Type read _Getdata write _Setdata;
  7004. end;
  7005. TJSEncodedVideoChunkInit = class(TJSObject,IJSEncodedVideoChunkInit)
  7006. Protected
  7007. function _Gettype_: TEncodedVideoChunkType;
  7008. function _Gettimestamp: Int64;
  7009. function _Getduration: QWord;
  7010. function _Getdata: TEncodedVideoChunkInit_data_Type;
  7011. procedure _Settype_(const aValue: TEncodedVideoChunkType);
  7012. procedure _Settimestamp(const aValue: Int64);
  7013. procedure _Setduration(const aValue: QWord);
  7014. procedure _Setdata(const aValue: TEncodedVideoChunkInit_data_Type);
  7015. Public
  7016. class function JSClassName: UnicodeString; override;
  7017. class function Cast(const Intf: IJSObject): IJSEncodedVideoChunkInit;
  7018. property type_: TEncodedVideoChunkType read _Gettype_ write _Settype_;
  7019. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  7020. property duration: QWord read _Getduration write _Setduration;
  7021. property data: TEncodedVideoChunkInit_data_Type read _Getdata write _Setdata;
  7022. end;
  7023. { --------------------------------------------------------------------
  7024. TJSEventInit
  7025. --------------------------------------------------------------------}
  7026. TJSEventInitRec = record
  7027. bubbles: Boolean;
  7028. cancelable: Boolean;
  7029. composed: Boolean;
  7030. end;
  7031. IJSEventInit = interface(IJSObject)
  7032. ['{743F6C7A-0AEF-38EB-BA94-5F17EB1EF670}']
  7033. function _Getbubbles: Boolean;
  7034. function _Getcancelable: Boolean;
  7035. function _Getcomposed: Boolean;
  7036. procedure _Setbubbles(const aValue: Boolean);
  7037. procedure _Setcancelable(const aValue: Boolean);
  7038. procedure _Setcomposed(const aValue: Boolean);
  7039. property bubbles: Boolean read _Getbubbles write _Setbubbles;
  7040. property cancelable: Boolean read _Getcancelable write _Setcancelable;
  7041. property composed: Boolean read _Getcomposed write _Setcomposed;
  7042. end;
  7043. TJSEventInit = class(TJSObject,IJSEventInit)
  7044. Protected
  7045. function _Getbubbles: Boolean;
  7046. function _Getcancelable: Boolean;
  7047. function _Getcomposed: Boolean;
  7048. procedure _Setbubbles(const aValue: Boolean);
  7049. procedure _Setcancelable(const aValue: Boolean);
  7050. procedure _Setcomposed(const aValue: Boolean);
  7051. Public
  7052. class function JSClassName: UnicodeString; override;
  7053. class function Cast(const Intf: IJSObject): IJSEventInit;
  7054. property bubbles: Boolean read _Getbubbles write _Setbubbles;
  7055. property cancelable: Boolean read _Getcancelable write _Setcancelable;
  7056. property composed: Boolean read _Getcomposed write _Setcomposed;
  7057. end;
  7058. { --------------------------------------------------------------------
  7059. TJSEventSourceInit
  7060. --------------------------------------------------------------------}
  7061. TJSEventSourceInitRec = record
  7062. withCredentials: Boolean;
  7063. end;
  7064. IJSEventSourceInit = interface(IJSObject)
  7065. ['{33492567-5917-36F1-B1E1-C4E83DF4DD52}']
  7066. function _GetwithCredentials: Boolean;
  7067. procedure _SetwithCredentials(const aValue: Boolean);
  7068. property withCredentials: Boolean read _GetwithCredentials write _SetwithCredentials;
  7069. end;
  7070. TJSEventSourceInit = class(TJSObject,IJSEventSourceInit)
  7071. Protected
  7072. function _GetwithCredentials: Boolean;
  7073. procedure _SetwithCredentials(const aValue: Boolean);
  7074. Public
  7075. class function JSClassName: UnicodeString; override;
  7076. class function Cast(const Intf: IJSObject): IJSEventSourceInit;
  7077. property withCredentials: Boolean read _GetwithCredentials write _SetwithCredentials;
  7078. end;
  7079. { --------------------------------------------------------------------
  7080. TJSEventListenerOptions
  7081. --------------------------------------------------------------------}
  7082. TJSEventListenerOptionsRec = record
  7083. capture: Boolean;
  7084. mozSystemGroup: Boolean;
  7085. end;
  7086. IJSEventListenerOptions = interface(IJSObject)
  7087. ['{AD98F9CB-0E73-3B09-ACE8-0F9870F2B117}']
  7088. function _Getcapture: Boolean;
  7089. function _GetmozSystemGroup: Boolean;
  7090. procedure _Setcapture(const aValue: Boolean);
  7091. procedure _SetmozSystemGroup(const aValue: Boolean);
  7092. property capture: Boolean read _Getcapture write _Setcapture;
  7093. property mozSystemGroup: Boolean read _GetmozSystemGroup write _SetmozSystemGroup;
  7094. end;
  7095. TJSEventListenerOptions = class(TJSObject,IJSEventListenerOptions)
  7096. Protected
  7097. function _Getcapture: Boolean;
  7098. function _GetmozSystemGroup: Boolean;
  7099. procedure _Setcapture(const aValue: Boolean);
  7100. procedure _SetmozSystemGroup(const aValue: Boolean);
  7101. Public
  7102. class function JSClassName: UnicodeString; override;
  7103. class function Cast(const Intf: IJSObject): IJSEventListenerOptions;
  7104. property capture: Boolean read _Getcapture write _Setcapture;
  7105. property mozSystemGroup: Boolean read _GetmozSystemGroup write _SetmozSystemGroup;
  7106. end;
  7107. { --------------------------------------------------------------------
  7108. TJSExtensionPortDescriptor
  7109. --------------------------------------------------------------------}
  7110. TJSExtensionPortDescriptorRec = record
  7111. portId: UnicodeString;
  7112. name: UnicodeString;
  7113. end;
  7114. IJSExtensionPortDescriptor = interface(IJSObject)
  7115. ['{2D4A0AAC-FE68-3521-9318-9D810A86C7F2}']
  7116. function _GetportId: UnicodeString;
  7117. function _Getname: UnicodeString;
  7118. procedure _SetportId(const aValue: UnicodeString);
  7119. procedure _Setname(const aValue: UnicodeString);
  7120. property portId: UnicodeString read _GetportId write _SetportId;
  7121. property name: UnicodeString read _Getname write _Setname;
  7122. end;
  7123. TJSExtensionPortDescriptor = class(TJSObject,IJSExtensionPortDescriptor)
  7124. Protected
  7125. function _GetportId: UnicodeString;
  7126. function _Getname: UnicodeString;
  7127. procedure _SetportId(const aValue: UnicodeString);
  7128. procedure _Setname(const aValue: UnicodeString);
  7129. Public
  7130. class function JSClassName: UnicodeString; override;
  7131. class function Cast(const Intf: IJSObject): IJSExtensionPortDescriptor;
  7132. property portId: UnicodeString read _GetportId write _SetportId;
  7133. property name: UnicodeString read _Getname write _Setname;
  7134. end;
  7135. { --------------------------------------------------------------------
  7136. TJSFailedCertSecurityInfo
  7137. --------------------------------------------------------------------}
  7138. TJSFailedCertSecurityInfoRec = record
  7139. errorCodeString: UnicodeString;
  7140. overridableErrorCategory: TOverridableErrorCategory;
  7141. validNotBefore: TDOMTimeStamp;
  7142. validNotAfter: TDOMTimeStamp;
  7143. issuerCommonName: UnicodeString;
  7144. certValidityRangeNotAfter: TDOMTimeStamp;
  7145. certValidityRangeNotBefore: TDOMTimeStamp;
  7146. errorMessage: UnicodeString;
  7147. hasHSTS: Boolean;
  7148. hasHPKP: Boolean;
  7149. certChainStrings: TUnicodeStringDynArray;
  7150. end;
  7151. IJSFailedCertSecurityInfo = interface(IJSObject)
  7152. ['{1C14CF94-7619-3B84-9C8E-2A305706CDFB}']
  7153. function _GeterrorCodeString: UnicodeString;
  7154. function _GetoverridableErrorCategory: TOverridableErrorCategory;
  7155. function _GetvalidNotBefore: TDOMTimeStamp;
  7156. function _GetvalidNotAfter: TDOMTimeStamp;
  7157. function _GetissuerCommonName: UnicodeString;
  7158. function _GetcertValidityRangeNotAfter: TDOMTimeStamp;
  7159. function _GetcertValidityRangeNotBefore: TDOMTimeStamp;
  7160. function _GeterrorMessage: UnicodeString;
  7161. function _GethasHSTS: Boolean;
  7162. function _GethasHPKP: Boolean;
  7163. function _GetcertChainStrings: TUnicodeStringDynArray;
  7164. procedure _SeterrorCodeString(const aValue: UnicodeString);
  7165. procedure _SetoverridableErrorCategory(const aValue: TOverridableErrorCategory);
  7166. procedure _SetvalidNotBefore(const aValue: TDOMTimeStamp);
  7167. procedure _SetvalidNotAfter(const aValue: TDOMTimeStamp);
  7168. procedure _SetissuerCommonName(const aValue: UnicodeString);
  7169. procedure _SetcertValidityRangeNotAfter(const aValue: TDOMTimeStamp);
  7170. procedure _SetcertValidityRangeNotBefore(const aValue: TDOMTimeStamp);
  7171. procedure _SeterrorMessage(const aValue: UnicodeString);
  7172. procedure _SethasHSTS(const aValue: Boolean);
  7173. procedure _SethasHPKP(const aValue: Boolean);
  7174. procedure _SetcertChainStrings(const aValue: TUnicodeStringDynArray);
  7175. property errorCodeString: UnicodeString read _GeterrorCodeString write _SeterrorCodeString;
  7176. property overridableErrorCategory: TOverridableErrorCategory read _GetoverridableErrorCategory write _SetoverridableErrorCategory;
  7177. property validNotBefore: TDOMTimeStamp read _GetvalidNotBefore write _SetvalidNotBefore;
  7178. property validNotAfter: TDOMTimeStamp read _GetvalidNotAfter write _SetvalidNotAfter;
  7179. property issuerCommonName: UnicodeString read _GetissuerCommonName write _SetissuerCommonName;
  7180. property certValidityRangeNotAfter: TDOMTimeStamp read _GetcertValidityRangeNotAfter write _SetcertValidityRangeNotAfter;
  7181. property certValidityRangeNotBefore: TDOMTimeStamp read _GetcertValidityRangeNotBefore write _SetcertValidityRangeNotBefore;
  7182. property errorMessage: UnicodeString read _GeterrorMessage write _SeterrorMessage;
  7183. property hasHSTS: Boolean read _GethasHSTS write _SethasHSTS;
  7184. property hasHPKP: Boolean read _GethasHPKP write _SethasHPKP;
  7185. property certChainStrings: TUnicodeStringDynArray read _GetcertChainStrings write _SetcertChainStrings;
  7186. end;
  7187. TJSFailedCertSecurityInfo = class(TJSObject,IJSFailedCertSecurityInfo)
  7188. Protected
  7189. function _GeterrorCodeString: UnicodeString;
  7190. function _GetoverridableErrorCategory: TOverridableErrorCategory;
  7191. function _GetvalidNotBefore: TDOMTimeStamp;
  7192. function _GetvalidNotAfter: TDOMTimeStamp;
  7193. function _GetissuerCommonName: UnicodeString;
  7194. function _GetcertValidityRangeNotAfter: TDOMTimeStamp;
  7195. function _GetcertValidityRangeNotBefore: TDOMTimeStamp;
  7196. function _GeterrorMessage: UnicodeString;
  7197. function _GethasHSTS: Boolean;
  7198. function _GethasHPKP: Boolean;
  7199. function _GetcertChainStrings: TUnicodeStringDynArray;
  7200. procedure _SeterrorCodeString(const aValue: UnicodeString);
  7201. procedure _SetoverridableErrorCategory(const aValue: TOverridableErrorCategory);
  7202. procedure _SetvalidNotBefore(const aValue: TDOMTimeStamp);
  7203. procedure _SetvalidNotAfter(const aValue: TDOMTimeStamp);
  7204. procedure _SetissuerCommonName(const aValue: UnicodeString);
  7205. procedure _SetcertValidityRangeNotAfter(const aValue: TDOMTimeStamp);
  7206. procedure _SetcertValidityRangeNotBefore(const aValue: TDOMTimeStamp);
  7207. procedure _SeterrorMessage(const aValue: UnicodeString);
  7208. procedure _SethasHSTS(const aValue: Boolean);
  7209. procedure _SethasHPKP(const aValue: Boolean);
  7210. procedure _SetcertChainStrings(const aValue: TUnicodeStringDynArray);
  7211. Public
  7212. class function JSClassName: UnicodeString; override;
  7213. class function Cast(const Intf: IJSObject): IJSFailedCertSecurityInfo;
  7214. property errorCodeString: UnicodeString read _GeterrorCodeString write _SeterrorCodeString;
  7215. property overridableErrorCategory: TOverridableErrorCategory read _GetoverridableErrorCategory write _SetoverridableErrorCategory;
  7216. property validNotBefore: TDOMTimeStamp read _GetvalidNotBefore write _SetvalidNotBefore;
  7217. property validNotAfter: TDOMTimeStamp read _GetvalidNotAfter write _SetvalidNotAfter;
  7218. property issuerCommonName: UnicodeString read _GetissuerCommonName write _SetissuerCommonName;
  7219. property certValidityRangeNotAfter: TDOMTimeStamp read _GetcertValidityRangeNotAfter write _SetcertValidityRangeNotAfter;
  7220. property certValidityRangeNotBefore: TDOMTimeStamp read _GetcertValidityRangeNotBefore write _SetcertValidityRangeNotBefore;
  7221. property errorMessage: UnicodeString read _GeterrorMessage write _SeterrorMessage;
  7222. property hasHSTS: Boolean read _GethasHSTS write _SethasHSTS;
  7223. property hasHPKP: Boolean read _GethasHPKP write _SethasHPKP;
  7224. property certChainStrings: TUnicodeStringDynArray read _GetcertChainStrings write _SetcertChainStrings;
  7225. end;
  7226. { --------------------------------------------------------------------
  7227. TJSFakePluginTagInit
  7228. --------------------------------------------------------------------}
  7229. TJSFakePluginMimeEntryDynArray = IJSArray; // array of FakePluginMimeEntry
  7230. TJSFakePluginTagInitRec = record
  7231. handlerURI: UnicodeString;
  7232. mimeEntries: TJSFakePluginMimeEntryDynArray;
  7233. niceName: UnicodeString;
  7234. fullPath: UnicodeString;
  7235. name: UnicodeString;
  7236. description: UnicodeString;
  7237. fileName: UnicodeString;
  7238. version: UnicodeString;
  7239. sandboxScript: UnicodeString;
  7240. end;
  7241. IJSFakePluginTagInit = interface(IJSObject)
  7242. ['{441568B6-2051-3A0C-B675-67A34AE203D5}']
  7243. function _GethandlerURI: UnicodeString;
  7244. function _GetmimeEntries: TJSFakePluginMimeEntryDynArray;
  7245. function _GetniceName: UnicodeString;
  7246. function _GetfullPath: UnicodeString;
  7247. function _Getname: UnicodeString;
  7248. function _Getdescription: UnicodeString;
  7249. function _GetfileName: UnicodeString;
  7250. function _Getversion: UnicodeString;
  7251. function _GetsandboxScript: UnicodeString;
  7252. procedure _SethandlerURI(const aValue: UnicodeString);
  7253. procedure _SetmimeEntries(const aValue: TJSFakePluginMimeEntryDynArray);
  7254. procedure _SetniceName(const aValue: UnicodeString);
  7255. procedure _SetfullPath(const aValue: UnicodeString);
  7256. procedure _Setname(const aValue: UnicodeString);
  7257. procedure _Setdescription(const aValue: UnicodeString);
  7258. procedure _SetfileName(const aValue: UnicodeString);
  7259. procedure _Setversion(const aValue: UnicodeString);
  7260. procedure _SetsandboxScript(const aValue: UnicodeString);
  7261. property handlerURI: UnicodeString read _GethandlerURI write _SethandlerURI;
  7262. property mimeEntries: TJSFakePluginMimeEntryDynArray read _GetmimeEntries write _SetmimeEntries;
  7263. property niceName: UnicodeString read _GetniceName write _SetniceName;
  7264. property fullPath: UnicodeString read _GetfullPath write _SetfullPath;
  7265. property name: UnicodeString read _Getname write _Setname;
  7266. property description: UnicodeString read _Getdescription write _Setdescription;
  7267. property fileName: UnicodeString read _GetfileName write _SetfileName;
  7268. property version: UnicodeString read _Getversion write _Setversion;
  7269. property sandboxScript: UnicodeString read _GetsandboxScript write _SetsandboxScript;
  7270. end;
  7271. TJSFakePluginTagInit = class(TJSObject,IJSFakePluginTagInit)
  7272. Protected
  7273. function _GethandlerURI: UnicodeString;
  7274. function _GetmimeEntries: TJSFakePluginMimeEntryDynArray;
  7275. function _GetniceName: UnicodeString;
  7276. function _GetfullPath: UnicodeString;
  7277. function _Getname: UnicodeString;
  7278. function _Getdescription: UnicodeString;
  7279. function _GetfileName: UnicodeString;
  7280. function _Getversion: UnicodeString;
  7281. function _GetsandboxScript: UnicodeString;
  7282. procedure _SethandlerURI(const aValue: UnicodeString);
  7283. procedure _SetmimeEntries(const aValue: TJSFakePluginMimeEntryDynArray);
  7284. procedure _SetniceName(const aValue: UnicodeString);
  7285. procedure _SetfullPath(const aValue: UnicodeString);
  7286. procedure _Setname(const aValue: UnicodeString);
  7287. procedure _Setdescription(const aValue: UnicodeString);
  7288. procedure _SetfileName(const aValue: UnicodeString);
  7289. procedure _Setversion(const aValue: UnicodeString);
  7290. procedure _SetsandboxScript(const aValue: UnicodeString);
  7291. Public
  7292. class function JSClassName: UnicodeString; override;
  7293. class function Cast(const Intf: IJSObject): IJSFakePluginTagInit;
  7294. property handlerURI: UnicodeString read _GethandlerURI write _SethandlerURI;
  7295. property mimeEntries: TJSFakePluginMimeEntryDynArray read _GetmimeEntries write _SetmimeEntries;
  7296. property niceName: UnicodeString read _GetniceName write _SetniceName;
  7297. property fullPath: UnicodeString read _GetfullPath write _SetfullPath;
  7298. property name: UnicodeString read _Getname write _Setname;
  7299. property description: UnicodeString read _Getdescription write _Setdescription;
  7300. property fileName: UnicodeString read _GetfileName write _SetfileName;
  7301. property version: UnicodeString read _Getversion write _Setversion;
  7302. property sandboxScript: UnicodeString read _GetsandboxScript write _SetsandboxScript;
  7303. end;
  7304. { --------------------------------------------------------------------
  7305. TJSFakePluginMimeEntry
  7306. --------------------------------------------------------------------}
  7307. TJSFakePluginMimeEntryRec = record
  7308. type_: UnicodeString;
  7309. description: UnicodeString;
  7310. extension: UnicodeString;
  7311. end;
  7312. IJSFakePluginMimeEntry = interface(IJSObject)
  7313. ['{D2ECCDEC-FF9D-352B-B61B-3C563FF481A7}']
  7314. function _Gettype_: UnicodeString;
  7315. function _Getdescription: UnicodeString;
  7316. function _Getextension: UnicodeString;
  7317. procedure _Settype_(const aValue: UnicodeString);
  7318. procedure _Setdescription(const aValue: UnicodeString);
  7319. procedure _Setextension(const aValue: UnicodeString);
  7320. property type_: UnicodeString read _Gettype_ write _Settype_;
  7321. property description: UnicodeString read _Getdescription write _Setdescription;
  7322. property extension: UnicodeString read _Getextension write _Setextension;
  7323. end;
  7324. TJSFakePluginMimeEntry = class(TJSObject,IJSFakePluginMimeEntry)
  7325. Protected
  7326. function _Gettype_: UnicodeString;
  7327. function _Getdescription: UnicodeString;
  7328. function _Getextension: UnicodeString;
  7329. procedure _Settype_(const aValue: UnicodeString);
  7330. procedure _Setdescription(const aValue: UnicodeString);
  7331. procedure _Setextension(const aValue: UnicodeString);
  7332. Public
  7333. class function JSClassName: UnicodeString; override;
  7334. class function Cast(const Intf: IJSObject): IJSFakePluginMimeEntry;
  7335. property type_: UnicodeString read _Gettype_ write _Settype_;
  7336. property description: UnicodeString read _Getdescription write _Setdescription;
  7337. property extension: UnicodeString read _Getextension write _Setextension;
  7338. end;
  7339. { --------------------------------------------------------------------
  7340. TJSFetchReadableStreamReadDataDone
  7341. --------------------------------------------------------------------}
  7342. TJSFetchReadableStreamReadDataDoneRec = record
  7343. done: Boolean;
  7344. end;
  7345. IJSFetchReadableStreamReadDataDone = interface(IJSObject)
  7346. ['{3D14F29E-AFA4-3CC1-892A-072C99870986}']
  7347. function _Getdone: Boolean;
  7348. procedure _Setdone(const aValue: Boolean);
  7349. property done: Boolean read _Getdone write _Setdone;
  7350. end;
  7351. TJSFetchReadableStreamReadDataDone = class(TJSObject,IJSFetchReadableStreamReadDataDone)
  7352. Protected
  7353. function _Getdone: Boolean;
  7354. procedure _Setdone(const aValue: Boolean);
  7355. Public
  7356. class function JSClassName: UnicodeString; override;
  7357. class function Cast(const Intf: IJSObject): IJSFetchReadableStreamReadDataDone;
  7358. property done: Boolean read _Getdone write _Setdone;
  7359. end;
  7360. { --------------------------------------------------------------------
  7361. TJSFetchReadableStreamReadDataArray
  7362. --------------------------------------------------------------------}
  7363. TJSFetchReadableStreamReadDataArrayRec = record
  7364. value: IJSUint8Array;
  7365. end;
  7366. IJSFetchReadableStreamReadDataArray = interface(IJSObject)
  7367. ['{09282198-0BD8-3772-8B9E-E07B9806FF4C}']
  7368. function _Getvalue: IJSUint8Array;
  7369. procedure _Setvalue(const aValue: IJSUint8Array);
  7370. property value: IJSUint8Array read _Getvalue write _Setvalue;
  7371. end;
  7372. TJSFetchReadableStreamReadDataArray = class(TJSObject,IJSFetchReadableStreamReadDataArray)
  7373. Protected
  7374. function _Getvalue: IJSUint8Array;
  7375. procedure _Setvalue(const aValue: IJSUint8Array);
  7376. Public
  7377. class function JSClassName: UnicodeString; override;
  7378. class function Cast(const Intf: IJSObject): IJSFetchReadableStreamReadDataArray;
  7379. property value: IJSUint8Array read _Getvalue write _Setvalue;
  7380. end;
  7381. { --------------------------------------------------------------------
  7382. TJSFileSystemFlags
  7383. --------------------------------------------------------------------}
  7384. TJSFileSystemFlagsRec = record
  7385. create: Boolean;
  7386. exclusive: Boolean;
  7387. end;
  7388. IJSFileSystemFlags = interface(IJSObject)
  7389. ['{5DABC0EA-A248-3327-B934-B26C80456716}']
  7390. function _Getcreate: Boolean;
  7391. function _Getexclusive: Boolean;
  7392. procedure _Setcreate(const aValue: Boolean);
  7393. procedure _Setexclusive(const aValue: Boolean);
  7394. property create: Boolean read _Getcreate write _Setcreate;
  7395. property exclusive: Boolean read _Getexclusive write _Setexclusive;
  7396. end;
  7397. TJSFileSystemFlags = class(TJSObject,IJSFileSystemFlags)
  7398. Protected
  7399. function _Getcreate: Boolean;
  7400. function _Getexclusive: Boolean;
  7401. procedure _Setcreate(const aValue: Boolean);
  7402. procedure _Setexclusive(const aValue: Boolean);
  7403. Public
  7404. class function JSClassName: UnicodeString; override;
  7405. class function Cast(const Intf: IJSObject): IJSFileSystemFlags;
  7406. property create: Boolean read _Getcreate write _Setcreate;
  7407. property exclusive: Boolean read _Getexclusive write _Setexclusive;
  7408. end;
  7409. { --------------------------------------------------------------------
  7410. TJSFileSystemGetFileOptions
  7411. --------------------------------------------------------------------}
  7412. TJSFileSystemGetFileOptionsRec = record
  7413. create: Boolean;
  7414. end;
  7415. IJSFileSystemGetFileOptions = interface(IJSObject)
  7416. ['{B39EA283-ED0F-3F9F-B06E-753F2B51932E}']
  7417. function _Getcreate: Boolean;
  7418. procedure _Setcreate(const aValue: Boolean);
  7419. property create: Boolean read _Getcreate write _Setcreate;
  7420. end;
  7421. TJSFileSystemGetFileOptions = class(TJSObject,IJSFileSystemGetFileOptions)
  7422. Protected
  7423. function _Getcreate: Boolean;
  7424. procedure _Setcreate(const aValue: Boolean);
  7425. Public
  7426. class function JSClassName: UnicodeString; override;
  7427. class function Cast(const Intf: IJSObject): IJSFileSystemGetFileOptions;
  7428. property create: Boolean read _Getcreate write _Setcreate;
  7429. end;
  7430. { --------------------------------------------------------------------
  7431. TJSFileSystemGetDirectoryOptions
  7432. --------------------------------------------------------------------}
  7433. TJSFileSystemGetDirectoryOptionsRec = record
  7434. create: Boolean;
  7435. end;
  7436. IJSFileSystemGetDirectoryOptions = interface(IJSObject)
  7437. ['{83F429E7-ADEB-3203-BA5C-468EAEF0E336}']
  7438. function _Getcreate: Boolean;
  7439. procedure _Setcreate(const aValue: Boolean);
  7440. property create: Boolean read _Getcreate write _Setcreate;
  7441. end;
  7442. TJSFileSystemGetDirectoryOptions = class(TJSObject,IJSFileSystemGetDirectoryOptions)
  7443. Protected
  7444. function _Getcreate: Boolean;
  7445. procedure _Setcreate(const aValue: Boolean);
  7446. Public
  7447. class function JSClassName: UnicodeString; override;
  7448. class function Cast(const Intf: IJSObject): IJSFileSystemGetDirectoryOptions;
  7449. property create: Boolean read _Getcreate write _Setcreate;
  7450. end;
  7451. { --------------------------------------------------------------------
  7452. TJSFileSystemRemoveOptions
  7453. --------------------------------------------------------------------}
  7454. TJSFileSystemRemoveOptionsRec = record
  7455. recursive: Boolean;
  7456. end;
  7457. IJSFileSystemRemoveOptions = interface(IJSObject)
  7458. ['{AF245722-6A86-309F-9D72-F9A3C9B1E2EC}']
  7459. function _Getrecursive: Boolean;
  7460. procedure _Setrecursive(const aValue: Boolean);
  7461. property recursive: Boolean read _Getrecursive write _Setrecursive;
  7462. end;
  7463. TJSFileSystemRemoveOptions = class(TJSObject,IJSFileSystemRemoveOptions)
  7464. Protected
  7465. function _Getrecursive: Boolean;
  7466. procedure _Setrecursive(const aValue: Boolean);
  7467. Public
  7468. class function JSClassName: UnicodeString; override;
  7469. class function Cast(const Intf: IJSObject): IJSFileSystemRemoveOptions;
  7470. property recursive: Boolean read _Getrecursive write _Setrecursive;
  7471. end;
  7472. { --------------------------------------------------------------------
  7473. TJSFileSystemCreateWritableOptions
  7474. --------------------------------------------------------------------}
  7475. TJSFileSystemCreateWritableOptionsRec = record
  7476. keepExistingData: Boolean;
  7477. end;
  7478. IJSFileSystemCreateWritableOptions = interface(IJSObject)
  7479. ['{7EF2451E-DFCB-307D-A916-EB56E620078F}']
  7480. function _GetkeepExistingData: Boolean;
  7481. procedure _SetkeepExistingData(const aValue: Boolean);
  7482. property keepExistingData: Boolean read _GetkeepExistingData write _SetkeepExistingData;
  7483. end;
  7484. TJSFileSystemCreateWritableOptions = class(TJSObject,IJSFileSystemCreateWritableOptions)
  7485. Protected
  7486. function _GetkeepExistingData: Boolean;
  7487. procedure _SetkeepExistingData(const aValue: Boolean);
  7488. Public
  7489. class function JSClassName: UnicodeString; override;
  7490. class function Cast(const Intf: IJSObject): IJSFileSystemCreateWritableOptions;
  7491. property keepExistingData: Boolean read _GetkeepExistingData write _SetkeepExistingData;
  7492. end;
  7493. { --------------------------------------------------------------------
  7494. TJSFileSystemReadWriteOptions
  7495. --------------------------------------------------------------------}
  7496. TJSFileSystemReadWriteOptionsRec = record
  7497. at: QWord;
  7498. end;
  7499. IJSFileSystemReadWriteOptions = interface(IJSObject)
  7500. ['{25002FFC-5752-372A-9733-CC7492479165}']
  7501. function _Getat: QWord;
  7502. procedure _Setat(const aValue: QWord);
  7503. property at: QWord read _Getat write _Setat;
  7504. end;
  7505. TJSFileSystemReadWriteOptions = class(TJSObject,IJSFileSystemReadWriteOptions)
  7506. Protected
  7507. function _Getat: QWord;
  7508. procedure _Setat(const aValue: QWord);
  7509. Public
  7510. class function JSClassName: UnicodeString; override;
  7511. class function Cast(const Intf: IJSObject): IJSFileSystemReadWriteOptions;
  7512. property at: QWord read _Getat write _Setat;
  7513. end;
  7514. { --------------------------------------------------------------------
  7515. TJSWriteParams
  7516. --------------------------------------------------------------------}
  7517. // Union of BufferSource, Blob, UTF8String
  7518. TWriteParams_data_Type = Variant;
  7519. TJSWriteParamsRec = record
  7520. type_: TWriteCommandType;
  7521. size: QWord;
  7522. position: QWord;
  7523. data: TWriteParams_data_Type;
  7524. end;
  7525. IJSWriteParams = interface(IJSObject)
  7526. ['{E4BA9927-3E6D-327B-B462-DE1B3C1DDB56}']
  7527. function _Gettype_: TWriteCommandType;
  7528. function _Getsize: QWord;
  7529. function _Getposition: QWord;
  7530. function _Getdata: TWriteParams_data_Type;
  7531. procedure _Settype_(const aValue: TWriteCommandType);
  7532. procedure _Setsize(const aValue: QWord);
  7533. procedure _Setposition(const aValue: QWord);
  7534. procedure _Setdata(const aValue: TWriteParams_data_Type);
  7535. property type_: TWriteCommandType read _Gettype_ write _Settype_;
  7536. property size: QWord read _Getsize write _Setsize;
  7537. property position: QWord read _Getposition write _Setposition;
  7538. property data: TWriteParams_data_Type read _Getdata write _Setdata;
  7539. end;
  7540. TJSWriteParams = class(TJSObject,IJSWriteParams)
  7541. Protected
  7542. function _Gettype_: TWriteCommandType;
  7543. function _Getsize: QWord;
  7544. function _Getposition: QWord;
  7545. function _Getdata: TWriteParams_data_Type;
  7546. procedure _Settype_(const aValue: TWriteCommandType);
  7547. procedure _Setsize(const aValue: QWord);
  7548. procedure _Setposition(const aValue: QWord);
  7549. procedure _Setdata(const aValue: TWriteParams_data_Type);
  7550. Public
  7551. class function JSClassName: UnicodeString; override;
  7552. class function Cast(const Intf: IJSObject): IJSWriteParams;
  7553. property type_: TWriteCommandType read _Gettype_ write _Settype_;
  7554. property size: QWord read _Getsize write _Setsize;
  7555. property position: QWord read _Getposition write _Setposition;
  7556. property data: TWriteParams_data_Type read _Getdata write _Setdata;
  7557. end;
  7558. { --------------------------------------------------------------------
  7559. TJSFontFaceDescriptors
  7560. --------------------------------------------------------------------}
  7561. TJSFontFaceDescriptorsRec = record
  7562. style: UTF8String;
  7563. weight: UTF8String;
  7564. stretch: UTF8String;
  7565. unicodeRange: UTF8String;
  7566. variant: UTF8String;
  7567. featureSettings: UTF8String;
  7568. variationSettings: UTF8String;
  7569. display: UTF8String;
  7570. ascentOverride: UTF8String;
  7571. descentOverride: UTF8String;
  7572. lineGapOverride: UTF8String;
  7573. sizeAdjust: UTF8String;
  7574. end;
  7575. IJSFontFaceDescriptors = interface(IJSObject)
  7576. ['{6F44C3A2-68B0-3C82-AF77-91BD81A82BDC}']
  7577. function _Getstyle: UTF8String;
  7578. function _Getweight: UTF8String;
  7579. function _Getstretch: UTF8String;
  7580. function _GetunicodeRange: UTF8String;
  7581. function _Getvariant: UTF8String;
  7582. function _GetfeatureSettings: UTF8String;
  7583. function _GetvariationSettings: UTF8String;
  7584. function _Getdisplay: UTF8String;
  7585. function _GetascentOverride: UTF8String;
  7586. function _GetdescentOverride: UTF8String;
  7587. function _GetlineGapOverride: UTF8String;
  7588. function _GetsizeAdjust: UTF8String;
  7589. procedure _Setstyle(const aValue: UTF8String);
  7590. procedure _Setweight(const aValue: UTF8String);
  7591. procedure _Setstretch(const aValue: UTF8String);
  7592. procedure _SetunicodeRange(const aValue: UTF8String);
  7593. procedure _Setvariant(const aValue: UTF8String);
  7594. procedure _SetfeatureSettings(const aValue: UTF8String);
  7595. procedure _SetvariationSettings(const aValue: UTF8String);
  7596. procedure _Setdisplay(const aValue: UTF8String);
  7597. procedure _SetascentOverride(const aValue: UTF8String);
  7598. procedure _SetdescentOverride(const aValue: UTF8String);
  7599. procedure _SetlineGapOverride(const aValue: UTF8String);
  7600. procedure _SetsizeAdjust(const aValue: UTF8String);
  7601. property style: UTF8String read _Getstyle write _Setstyle;
  7602. property weight: UTF8String read _Getweight write _Setweight;
  7603. property stretch: UTF8String read _Getstretch write _Setstretch;
  7604. property unicodeRange: UTF8String read _GetunicodeRange write _SetunicodeRange;
  7605. property variant: UTF8String read _Getvariant write _Setvariant;
  7606. property featureSettings: UTF8String read _GetfeatureSettings write _SetfeatureSettings;
  7607. property variationSettings: UTF8String read _GetvariationSettings write _SetvariationSettings;
  7608. property display: UTF8String read _Getdisplay write _Setdisplay;
  7609. property ascentOverride: UTF8String read _GetascentOverride write _SetascentOverride;
  7610. property descentOverride: UTF8String read _GetdescentOverride write _SetdescentOverride;
  7611. property lineGapOverride: UTF8String read _GetlineGapOverride write _SetlineGapOverride;
  7612. property sizeAdjust: UTF8String read _GetsizeAdjust write _SetsizeAdjust;
  7613. end;
  7614. TJSFontFaceDescriptors = class(TJSObject,IJSFontFaceDescriptors)
  7615. Protected
  7616. function _Getstyle: UTF8String;
  7617. function _Getweight: UTF8String;
  7618. function _Getstretch: UTF8String;
  7619. function _GetunicodeRange: UTF8String;
  7620. function _Getvariant: UTF8String;
  7621. function _GetfeatureSettings: UTF8String;
  7622. function _GetvariationSettings: UTF8String;
  7623. function _Getdisplay: UTF8String;
  7624. function _GetascentOverride: UTF8String;
  7625. function _GetdescentOverride: UTF8String;
  7626. function _GetlineGapOverride: UTF8String;
  7627. function _GetsizeAdjust: UTF8String;
  7628. procedure _Setstyle(const aValue: UTF8String);
  7629. procedure _Setweight(const aValue: UTF8String);
  7630. procedure _Setstretch(const aValue: UTF8String);
  7631. procedure _SetunicodeRange(const aValue: UTF8String);
  7632. procedure _Setvariant(const aValue: UTF8String);
  7633. procedure _SetfeatureSettings(const aValue: UTF8String);
  7634. procedure _SetvariationSettings(const aValue: UTF8String);
  7635. procedure _Setdisplay(const aValue: UTF8String);
  7636. procedure _SetascentOverride(const aValue: UTF8String);
  7637. procedure _SetdescentOverride(const aValue: UTF8String);
  7638. procedure _SetlineGapOverride(const aValue: UTF8String);
  7639. procedure _SetsizeAdjust(const aValue: UTF8String);
  7640. Public
  7641. class function JSClassName: UnicodeString; override;
  7642. class function Cast(const Intf: IJSObject): IJSFontFaceDescriptors;
  7643. property style: UTF8String read _Getstyle write _Setstyle;
  7644. property weight: UTF8String read _Getweight write _Setweight;
  7645. property stretch: UTF8String read _Getstretch write _Setstretch;
  7646. property unicodeRange: UTF8String read _GetunicodeRange write _SetunicodeRange;
  7647. property variant: UTF8String read _Getvariant write _Setvariant;
  7648. property featureSettings: UTF8String read _GetfeatureSettings write _SetfeatureSettings;
  7649. property variationSettings: UTF8String read _GetvariationSettings write _SetvariationSettings;
  7650. property display: UTF8String read _Getdisplay write _Setdisplay;
  7651. property ascentOverride: UTF8String read _GetascentOverride write _SetascentOverride;
  7652. property descentOverride: UTF8String read _GetdescentOverride write _SetdescentOverride;
  7653. property lineGapOverride: UTF8String read _GetlineGapOverride write _SetlineGapOverride;
  7654. property sizeAdjust: UTF8String read _GetsizeAdjust write _SetsizeAdjust;
  7655. end;
  7656. { --------------------------------------------------------------------
  7657. TJSFontFaceSetIteratorResult
  7658. --------------------------------------------------------------------}
  7659. TJSFontFaceSetIteratorResultRec = record
  7660. value: Variant;
  7661. done: Boolean;
  7662. end;
  7663. IJSFontFaceSetIteratorResult = interface(IJSObject)
  7664. ['{4F18DDE2-4637-3392-9EE6-1DA08CF7DA0A}']
  7665. function _Getvalue: Variant;
  7666. function _Getdone: Boolean;
  7667. procedure _Setvalue(const aValue: Variant);
  7668. procedure _Setdone(const aValue: Boolean);
  7669. property value: Variant read _Getvalue write _Setvalue;
  7670. property done: Boolean read _Getdone write _Setdone;
  7671. end;
  7672. TJSFontFaceSetIteratorResult = class(TJSObject,IJSFontFaceSetIteratorResult)
  7673. Protected
  7674. function _Getvalue: Variant;
  7675. function _Getdone: Boolean;
  7676. procedure _Setvalue(const aValue: Variant);
  7677. procedure _Setdone(const aValue: Boolean);
  7678. Public
  7679. class function JSClassName: UnicodeString; override;
  7680. class function Cast(const Intf: IJSObject): IJSFontFaceSetIteratorResult;
  7681. property value: Variant read _Getvalue write _Setvalue;
  7682. property done: Boolean read _Getdone write _Setdone;
  7683. end;
  7684. { --------------------------------------------------------------------
  7685. TJSGamepadLightColor
  7686. --------------------------------------------------------------------}
  7687. TJSGamepadLightColorRec = record
  7688. red: Byte;
  7689. green: Byte;
  7690. blue: Byte;
  7691. end;
  7692. IJSGamepadLightColor = interface(IJSObject)
  7693. ['{7D9E1CAE-6AFA-36D8-93F8-E8BBC6ED9C62}']
  7694. function _Getred: Byte;
  7695. function _Getgreen: Byte;
  7696. function _Getblue: Byte;
  7697. procedure _Setred(const aValue: Byte);
  7698. procedure _Setgreen(const aValue: Byte);
  7699. procedure _Setblue(const aValue: Byte);
  7700. property red: Byte read _Getred write _Setred;
  7701. property green: Byte read _Getgreen write _Setgreen;
  7702. property blue: Byte read _Getblue write _Setblue;
  7703. end;
  7704. TJSGamepadLightColor = class(TJSObject,IJSGamepadLightColor)
  7705. Protected
  7706. function _Getred: Byte;
  7707. function _Getgreen: Byte;
  7708. function _Getblue: Byte;
  7709. procedure _Setred(const aValue: Byte);
  7710. procedure _Setgreen(const aValue: Byte);
  7711. procedure _Setblue(const aValue: Byte);
  7712. Public
  7713. class function JSClassName: UnicodeString; override;
  7714. class function Cast(const Intf: IJSObject): IJSGamepadLightColor;
  7715. property red: Byte read _Getred write _Setred;
  7716. property green: Byte read _Getgreen write _Setgreen;
  7717. property blue: Byte read _Getblue write _Setblue;
  7718. end;
  7719. { --------------------------------------------------------------------
  7720. TJSPositionOptions
  7721. --------------------------------------------------------------------}
  7722. TJSPositionOptionsRec = record
  7723. enableHighAccuracy: Boolean;
  7724. timeout: Cardinal;
  7725. maximumAge: Cardinal;
  7726. end;
  7727. IJSPositionOptions = interface(IJSObject)
  7728. ['{9B901367-4134-33CA-8C04-711BB5DA461F}']
  7729. function _GetenableHighAccuracy: Boolean;
  7730. function _Gettimeout: Cardinal;
  7731. function _GetmaximumAge: Cardinal;
  7732. procedure _SetenableHighAccuracy(const aValue: Boolean);
  7733. procedure _Settimeout(const aValue: Cardinal);
  7734. procedure _SetmaximumAge(const aValue: Cardinal);
  7735. property enableHighAccuracy: Boolean read _GetenableHighAccuracy write _SetenableHighAccuracy;
  7736. property timeout: Cardinal read _Gettimeout write _Settimeout;
  7737. property maximumAge: Cardinal read _GetmaximumAge write _SetmaximumAge;
  7738. end;
  7739. TJSPositionOptions = class(TJSObject,IJSPositionOptions)
  7740. Protected
  7741. function _GetenableHighAccuracy: Boolean;
  7742. function _Gettimeout: Cardinal;
  7743. function _GetmaximumAge: Cardinal;
  7744. procedure _SetenableHighAccuracy(const aValue: Boolean);
  7745. procedure _Settimeout(const aValue: Cardinal);
  7746. procedure _SetmaximumAge(const aValue: Cardinal);
  7747. Public
  7748. class function JSClassName: UnicodeString; override;
  7749. class function Cast(const Intf: IJSObject): IJSPositionOptions;
  7750. property enableHighAccuracy: Boolean read _GetenableHighAccuracy write _SetenableHighAccuracy;
  7751. property timeout: Cardinal read _Gettimeout write _Settimeout;
  7752. property maximumAge: Cardinal read _GetmaximumAge write _SetmaximumAge;
  7753. end;
  7754. { --------------------------------------------------------------------
  7755. TJSBoxQuadOptions
  7756. --------------------------------------------------------------------}
  7757. TJSBoxQuadOptionsRec = record
  7758. box: TCSSBoxType;
  7759. relativeTo: TGeometryNode;
  7760. end;
  7761. IJSBoxQuadOptions = interface(IJSObject)
  7762. ['{61E34003-1968-3A2F-A5FA-D5C9C7725460}']
  7763. function _Getbox: TCSSBoxType;
  7764. function _GetrelativeTo: TGeometryNode;
  7765. procedure _Setbox(const aValue: TCSSBoxType);
  7766. procedure _SetrelativeTo(const aValue: TGeometryNode);
  7767. property box: TCSSBoxType read _Getbox write _Setbox;
  7768. property relativeTo: TGeometryNode read _GetrelativeTo write _SetrelativeTo;
  7769. end;
  7770. TJSBoxQuadOptions = class(TJSObject,IJSBoxQuadOptions)
  7771. Protected
  7772. function _Getbox: TCSSBoxType;
  7773. function _GetrelativeTo: TGeometryNode;
  7774. procedure _Setbox(const aValue: TCSSBoxType);
  7775. procedure _SetrelativeTo(const aValue: TGeometryNode);
  7776. Public
  7777. class function JSClassName: UnicodeString; override;
  7778. class function Cast(const Intf: IJSObject): IJSBoxQuadOptions;
  7779. property box: TCSSBoxType read _Getbox write _Setbox;
  7780. property relativeTo: TGeometryNode read _GetrelativeTo write _SetrelativeTo;
  7781. end;
  7782. { --------------------------------------------------------------------
  7783. TJSConvertCoordinateOptions
  7784. --------------------------------------------------------------------}
  7785. TJSConvertCoordinateOptionsRec = record
  7786. fromBox: TCSSBoxType;
  7787. toBox: TCSSBoxType;
  7788. end;
  7789. IJSConvertCoordinateOptions = interface(IJSObject)
  7790. ['{B51EC100-91D1-30EE-9C44-B34F2B51932E}']
  7791. function _GetfromBox: TCSSBoxType;
  7792. function _GettoBox: TCSSBoxType;
  7793. procedure _SetfromBox(const aValue: TCSSBoxType);
  7794. procedure _SettoBox(const aValue: TCSSBoxType);
  7795. property fromBox: TCSSBoxType read _GetfromBox write _SetfromBox;
  7796. property toBox: TCSSBoxType read _GettoBox write _SettoBox;
  7797. end;
  7798. TJSConvertCoordinateOptions = class(TJSObject,IJSConvertCoordinateOptions)
  7799. Protected
  7800. function _GetfromBox: TCSSBoxType;
  7801. function _GettoBox: TCSSBoxType;
  7802. procedure _SetfromBox(const aValue: TCSSBoxType);
  7803. procedure _SettoBox(const aValue: TCSSBoxType);
  7804. Public
  7805. class function JSClassName: UnicodeString; override;
  7806. class function Cast(const Intf: IJSObject): IJSConvertCoordinateOptions;
  7807. property fromBox: TCSSBoxType read _GetfromBox write _SetfromBox;
  7808. property toBox: TCSSBoxType read _GettoBox write _SettoBox;
  7809. end;
  7810. { --------------------------------------------------------------------
  7811. TJSGleanDistributionData
  7812. --------------------------------------------------------------------}
  7813. TJSGleanDistributionDataRec = record
  7814. sum: QWord;
  7815. count: QWord;
  7816. values: IJSObject;
  7817. end;
  7818. IJSGleanDistributionData = interface(IJSObject)
  7819. ['{67C77676-75D7-30AB-9B46-14A557DE59B5}']
  7820. function _Getsum: QWord;
  7821. function _Getcount: QWord;
  7822. function _Getvalues: IJSObject;
  7823. procedure _Setsum(const aValue: QWord);
  7824. procedure _Setcount(const aValue: QWord);
  7825. procedure _Setvalues(const aValue: IJSObject);
  7826. property sum: QWord read _Getsum write _Setsum;
  7827. property count: QWord read _Getcount write _Setcount;
  7828. property values: IJSObject read _Getvalues write _Setvalues;
  7829. end;
  7830. TJSGleanDistributionData = class(TJSObject,IJSGleanDistributionData)
  7831. Protected
  7832. function _Getsum: QWord;
  7833. function _Getcount: QWord;
  7834. function _Getvalues: IJSObject;
  7835. procedure _Setsum(const aValue: QWord);
  7836. procedure _Setcount(const aValue: QWord);
  7837. procedure _Setvalues(const aValue: IJSObject);
  7838. Public
  7839. class function JSClassName: UnicodeString; override;
  7840. class function Cast(const Intf: IJSObject): IJSGleanDistributionData;
  7841. property sum: QWord read _Getsum write _Setsum;
  7842. property count: QWord read _Getcount write _Setcount;
  7843. property values: IJSObject read _Getvalues write _Setvalues;
  7844. end;
  7845. { --------------------------------------------------------------------
  7846. TJSGleanEventRecord
  7847. --------------------------------------------------------------------}
  7848. TJSGleanEventRecordRec = record
  7849. timestamp: QWord;
  7850. category: UTF8String;
  7851. name: UTF8String;
  7852. extra: IJSObject;
  7853. end;
  7854. IJSGleanEventRecord = interface(IJSObject)
  7855. ['{2A5E3311-8780-329A-91CD-B897BD72E265}']
  7856. function _Gettimestamp: QWord;
  7857. function _Getcategory: UTF8String;
  7858. function _Getname: UTF8String;
  7859. function _Getextra: IJSObject;
  7860. procedure _Settimestamp(const aValue: QWord);
  7861. procedure _Setcategory(const aValue: UTF8String);
  7862. procedure _Setname(const aValue: UTF8String);
  7863. procedure _Setextra(const aValue: IJSObject);
  7864. property timestamp: QWord read _Gettimestamp write _Settimestamp;
  7865. property category: UTF8String read _Getcategory write _Setcategory;
  7866. property name: UTF8String read _Getname write _Setname;
  7867. property extra: IJSObject read _Getextra write _Setextra;
  7868. end;
  7869. TJSGleanEventRecord = class(TJSObject,IJSGleanEventRecord)
  7870. Protected
  7871. function _Gettimestamp: QWord;
  7872. function _Getcategory: UTF8String;
  7873. function _Getname: UTF8String;
  7874. function _Getextra: IJSObject;
  7875. procedure _Settimestamp(const aValue: QWord);
  7876. procedure _Setcategory(const aValue: UTF8String);
  7877. procedure _Setname(const aValue: UTF8String);
  7878. procedure _Setextra(const aValue: IJSObject);
  7879. Public
  7880. class function JSClassName: UnicodeString; override;
  7881. class function Cast(const Intf: IJSObject): IJSGleanEventRecord;
  7882. property timestamp: QWord read _Gettimestamp write _Settimestamp;
  7883. property category: UTF8String read _Getcategory write _Setcategory;
  7884. property name: UTF8String read _Getname write _Setname;
  7885. property extra: IJSObject read _Getextra write _Setextra;
  7886. end;
  7887. { --------------------------------------------------------------------
  7888. TJSGleanRateData
  7889. --------------------------------------------------------------------}
  7890. TJSGleanRateDataRec = record
  7891. numerator: LongInt;
  7892. denominator: LongInt;
  7893. end;
  7894. IJSGleanRateData = interface(IJSObject)
  7895. ['{9C55E077-687A-37C7-9E5A-E09E086A372D}']
  7896. function _Getnumerator: LongInt;
  7897. function _Getdenominator: LongInt;
  7898. procedure _Setnumerator(const aValue: LongInt);
  7899. procedure _Setdenominator(const aValue: LongInt);
  7900. property numerator: LongInt read _Getnumerator write _Setnumerator;
  7901. property denominator: LongInt read _Getdenominator write _Setdenominator;
  7902. end;
  7903. TJSGleanRateData = class(TJSObject,IJSGleanRateData)
  7904. Protected
  7905. function _Getnumerator: LongInt;
  7906. function _Getdenominator: LongInt;
  7907. procedure _Setnumerator(const aValue: LongInt);
  7908. procedure _Setdenominator(const aValue: LongInt);
  7909. Public
  7910. class function JSClassName: UnicodeString; override;
  7911. class function Cast(const Intf: IJSObject): IJSGleanRateData;
  7912. property numerator: LongInt read _Getnumerator write _Setnumerator;
  7913. property denominator: LongInt read _Getdenominator write _Setdenominator;
  7914. end;
  7915. { --------------------------------------------------------------------
  7916. TJSDateTimeValue
  7917. --------------------------------------------------------------------}
  7918. TJSDateTimeValueRec = record
  7919. hour: LongInt;
  7920. minute: LongInt;
  7921. year: LongInt;
  7922. month: LongInt;
  7923. day: LongInt;
  7924. end;
  7925. IJSDateTimeValue = interface(IJSObject)
  7926. ['{2D71826A-A9D7-37DE-8AA2-D92C7531AD28}']
  7927. function _Gethour: LongInt;
  7928. function _Getminute: LongInt;
  7929. function _Getyear: LongInt;
  7930. function _Getmonth: LongInt;
  7931. function _Getday: LongInt;
  7932. procedure _Sethour(const aValue: LongInt);
  7933. procedure _Setminute(const aValue: LongInt);
  7934. procedure _Setyear(const aValue: LongInt);
  7935. procedure _Setmonth(const aValue: LongInt);
  7936. procedure _Setday(const aValue: LongInt);
  7937. property hour: LongInt read _Gethour write _Sethour;
  7938. property minute: LongInt read _Getminute write _Setminute;
  7939. property year: LongInt read _Getyear write _Setyear;
  7940. property month: LongInt read _Getmonth write _Setmonth;
  7941. property day: LongInt read _Getday write _Setday;
  7942. end;
  7943. TJSDateTimeValue = class(TJSObject,IJSDateTimeValue)
  7944. Protected
  7945. function _Gethour: LongInt;
  7946. function _Getminute: LongInt;
  7947. function _Getyear: LongInt;
  7948. function _Getmonth: LongInt;
  7949. function _Getday: LongInt;
  7950. procedure _Sethour(const aValue: LongInt);
  7951. procedure _Setminute(const aValue: LongInt);
  7952. procedure _Setyear(const aValue: LongInt);
  7953. procedure _Setmonth(const aValue: LongInt);
  7954. procedure _Setday(const aValue: LongInt);
  7955. Public
  7956. class function JSClassName: UnicodeString; override;
  7957. class function Cast(const Intf: IJSObject): IJSDateTimeValue;
  7958. property hour: LongInt read _Gethour write _Sethour;
  7959. property minute: LongInt read _Getminute write _Setminute;
  7960. property year: LongInt read _Getyear write _Setyear;
  7961. property month: LongInt read _Getmonth write _Setmonth;
  7962. property day: LongInt read _Getday write _Setday;
  7963. end;
  7964. { --------------------------------------------------------------------
  7965. TJSAssignedNodesOptions
  7966. --------------------------------------------------------------------}
  7967. TJSAssignedNodesOptionsRec = record
  7968. flatten: Boolean;
  7969. end;
  7970. IJSAssignedNodesOptions = interface(IJSObject)
  7971. ['{ADE6ABFF-A815-30C9-8B3E-E55870F2CBB9}']
  7972. function _Getflatten: Boolean;
  7973. procedure _Setflatten(const aValue: Boolean);
  7974. property flatten: Boolean read _Getflatten write _Setflatten;
  7975. end;
  7976. TJSAssignedNodesOptions = class(TJSObject,IJSAssignedNodesOptions)
  7977. Protected
  7978. function _Getflatten: Boolean;
  7979. procedure _Setflatten(const aValue: Boolean);
  7980. Public
  7981. class function JSClassName: UnicodeString; override;
  7982. class function Cast(const Intf: IJSObject): IJSAssignedNodesOptions;
  7983. property flatten: Boolean read _Getflatten write _Setflatten;
  7984. end;
  7985. { --------------------------------------------------------------------
  7986. TJSIDBTransactionOptions
  7987. --------------------------------------------------------------------}
  7988. TJSIDBTransactionOptionsRec = record
  7989. durability: TIDBTransactionDurability;
  7990. end;
  7991. IJSIDBTransactionOptions = interface(IJSObject)
  7992. ['{31061A89-2C2F-306E-B020-DD28C995AC01}']
  7993. function _Getdurability: TIDBTransactionDurability;
  7994. procedure _Setdurability(const aValue: TIDBTransactionDurability);
  7995. property durability: TIDBTransactionDurability read _Getdurability write _Setdurability;
  7996. end;
  7997. TJSIDBTransactionOptions = class(TJSObject,IJSIDBTransactionOptions)
  7998. Protected
  7999. function _Getdurability: TIDBTransactionDurability;
  8000. procedure _Setdurability(const aValue: TIDBTransactionDurability);
  8001. Public
  8002. class function JSClassName: UnicodeString; override;
  8003. class function Cast(const Intf: IJSObject): IJSIDBTransactionOptions;
  8004. property durability: TIDBTransactionDurability read _Getdurability write _Setdurability;
  8005. end;
  8006. { --------------------------------------------------------------------
  8007. TJSIDBOpenDBOptions
  8008. --------------------------------------------------------------------}
  8009. TJSIDBOpenDBOptionsRec = record
  8010. version: QWord;
  8011. end;
  8012. IJSIDBOpenDBOptions = interface(IJSObject)
  8013. ['{84BBCAD9-AA6D-3DFB-9193-2E63C0C0F255}']
  8014. function _Getversion: QWord;
  8015. procedure _Setversion(const aValue: QWord);
  8016. property version: QWord read _Getversion write _Setversion;
  8017. end;
  8018. TJSIDBOpenDBOptions = class(TJSObject,IJSIDBOpenDBOptions)
  8019. Protected
  8020. function _Getversion: QWord;
  8021. procedure _Setversion(const aValue: QWord);
  8022. Public
  8023. class function JSClassName: UnicodeString; override;
  8024. class function Cast(const Intf: IJSObject): IJSIDBOpenDBOptions;
  8025. property version: QWord read _Getversion write _Setversion;
  8026. end;
  8027. { --------------------------------------------------------------------
  8028. TJSIDBDatabaseInfo
  8029. --------------------------------------------------------------------}
  8030. TJSIDBDatabaseInfoRec = record
  8031. name: UnicodeString;
  8032. version: QWord;
  8033. end;
  8034. IJSIDBDatabaseInfo = interface(IJSObject)
  8035. ['{10B68B59-461C-3FE9-B1E1-A914217DFD6F}']
  8036. function _Getname: UnicodeString;
  8037. function _Getversion: QWord;
  8038. procedure _Setname(const aValue: UnicodeString);
  8039. procedure _Setversion(const aValue: QWord);
  8040. property name: UnicodeString read _Getname write _Setname;
  8041. property version: QWord read _Getversion write _Setversion;
  8042. end;
  8043. TJSIDBDatabaseInfo = class(TJSObject,IJSIDBDatabaseInfo)
  8044. Protected
  8045. function _Getname: UnicodeString;
  8046. function _Getversion: QWord;
  8047. procedure _Setname(const aValue: UnicodeString);
  8048. procedure _Setversion(const aValue: QWord);
  8049. Public
  8050. class function JSClassName: UnicodeString; override;
  8051. class function Cast(const Intf: IJSObject): IJSIDBDatabaseInfo;
  8052. property name: UnicodeString read _Getname write _Setname;
  8053. property version: QWord read _Getversion write _Setversion;
  8054. end;
  8055. { --------------------------------------------------------------------
  8056. TJSIDBIndexParameters
  8057. --------------------------------------------------------------------}
  8058. TJSIDBIndexParametersRec = record
  8059. unique: Boolean;
  8060. multiEntry: Boolean;
  8061. locale: UnicodeString;
  8062. end;
  8063. IJSIDBIndexParameters = interface(IJSObject)
  8064. ['{2E75624F-91E9-3644-8228-3A8B16F6F082}']
  8065. function _Getunique: Boolean;
  8066. function _GetmultiEntry: Boolean;
  8067. function _Getlocale: UnicodeString;
  8068. procedure _Setunique(const aValue: Boolean);
  8069. procedure _SetmultiEntry(const aValue: Boolean);
  8070. procedure _Setlocale(const aValue: UnicodeString);
  8071. property unique: Boolean read _Getunique write _Setunique;
  8072. property multiEntry: Boolean read _GetmultiEntry write _SetmultiEntry;
  8073. property locale: UnicodeString read _Getlocale write _Setlocale;
  8074. end;
  8075. TJSIDBIndexParameters = class(TJSObject,IJSIDBIndexParameters)
  8076. Protected
  8077. function _Getunique: Boolean;
  8078. function _GetmultiEntry: Boolean;
  8079. function _Getlocale: UnicodeString;
  8080. procedure _Setunique(const aValue: Boolean);
  8081. procedure _SetmultiEntry(const aValue: Boolean);
  8082. procedure _Setlocale(const aValue: UnicodeString);
  8083. Public
  8084. class function JSClassName: UnicodeString; override;
  8085. class function Cast(const Intf: IJSObject): IJSIDBIndexParameters;
  8086. property unique: Boolean read _Getunique write _Setunique;
  8087. property multiEntry: Boolean read _GetmultiEntry write _SetmultiEntry;
  8088. property locale: UnicodeString read _Getlocale write _Setlocale;
  8089. end;
  8090. { --------------------------------------------------------------------
  8091. TJSIDBObjectStoreParameters
  8092. --------------------------------------------------------------------}
  8093. // Union of DOMString, sequence
  8094. TIDBObjectStoreParameters_keyPath_Type = Variant;
  8095. TJSIDBObjectStoreParametersRec = record
  8096. keyPath: TIDBObjectStoreParameters_keyPath_Type;
  8097. autoIncrement: Boolean;
  8098. end;
  8099. IJSIDBObjectStoreParameters = interface(IJSObject)
  8100. ['{B2ACAE03-48E6-3E8F-9088-F4B69883BEDF}']
  8101. function _GetkeyPath: TIDBObjectStoreParameters_keyPath_Type;
  8102. function _GetautoIncrement: Boolean;
  8103. procedure _SetkeyPath(const aValue: TIDBObjectStoreParameters_keyPath_Type);
  8104. procedure _SetautoIncrement(const aValue: Boolean);
  8105. property keyPath: TIDBObjectStoreParameters_keyPath_Type read _GetkeyPath write _SetkeyPath;
  8106. property autoIncrement: Boolean read _GetautoIncrement write _SetautoIncrement;
  8107. end;
  8108. TJSIDBObjectStoreParameters = class(TJSObject,IJSIDBObjectStoreParameters)
  8109. Protected
  8110. function _GetkeyPath: TIDBObjectStoreParameters_keyPath_Type;
  8111. function _GetautoIncrement: Boolean;
  8112. procedure _SetkeyPath(const aValue: TIDBObjectStoreParameters_keyPath_Type);
  8113. procedure _SetautoIncrement(const aValue: Boolean);
  8114. Public
  8115. class function JSClassName: UnicodeString; override;
  8116. class function Cast(const Intf: IJSObject): IJSIDBObjectStoreParameters;
  8117. property keyPath: TIDBObjectStoreParameters_keyPath_Type read _GetkeyPath write _SetkeyPath;
  8118. property autoIncrement: Boolean read _GetautoIncrement write _SetautoIncrement;
  8119. end;
  8120. { --------------------------------------------------------------------
  8121. TJSIdentityCredentialRequestOptions
  8122. --------------------------------------------------------------------}
  8123. TJSIdentityProviderConfigDynArray = IJSArray; // array of IdentityProviderConfig
  8124. TJSIdentityCredentialRequestOptionsRec = record
  8125. providers: TJSIdentityProviderConfigDynArray;
  8126. end;
  8127. IJSIdentityCredentialRequestOptions = interface(IJSObject)
  8128. ['{A8461435-62C5-3ACC-8F6F-11E85E1C6CEC}']
  8129. function _Getproviders: TJSIdentityProviderConfigDynArray;
  8130. procedure _Setproviders(const aValue: TJSIdentityProviderConfigDynArray);
  8131. property providers: TJSIdentityProviderConfigDynArray read _Getproviders write _Setproviders;
  8132. end;
  8133. TJSIdentityCredentialRequestOptions = class(TJSObject,IJSIdentityCredentialRequestOptions)
  8134. Protected
  8135. function _Getproviders: TJSIdentityProviderConfigDynArray;
  8136. procedure _Setproviders(const aValue: TJSIdentityProviderConfigDynArray);
  8137. Public
  8138. class function JSClassName: UnicodeString; override;
  8139. class function Cast(const Intf: IJSObject): IJSIdentityCredentialRequestOptions;
  8140. property providers: TJSIdentityProviderConfigDynArray read _Getproviders write _Setproviders;
  8141. end;
  8142. { --------------------------------------------------------------------
  8143. TJSIdentityProviderConfig
  8144. --------------------------------------------------------------------}
  8145. TJSIdentityProviderConfigRec = record
  8146. configURL: UTF8String;
  8147. clientId: UnicodeString;
  8148. nonce: UnicodeString;
  8149. end;
  8150. IJSIdentityProviderConfig = interface(IJSObject)
  8151. ['{CA803DE7-3B15-3E8B-82BD-99C0CF1ED40D}']
  8152. function _GetconfigURL: UTF8String;
  8153. function _GetclientId: UnicodeString;
  8154. function _Getnonce: UnicodeString;
  8155. procedure _SetconfigURL(const aValue: UTF8String);
  8156. procedure _SetclientId(const aValue: UnicodeString);
  8157. procedure _Setnonce(const aValue: UnicodeString);
  8158. property configURL: UTF8String read _GetconfigURL write _SetconfigURL;
  8159. property clientId: UnicodeString read _GetclientId write _SetclientId;
  8160. property nonce: UnicodeString read _Getnonce write _Setnonce;
  8161. end;
  8162. TJSIdentityProviderConfig = class(TJSObject,IJSIdentityProviderConfig)
  8163. Protected
  8164. function _GetconfigURL: UTF8String;
  8165. function _GetclientId: UnicodeString;
  8166. function _Getnonce: UnicodeString;
  8167. procedure _SetconfigURL(const aValue: UTF8String);
  8168. procedure _SetclientId(const aValue: UnicodeString);
  8169. procedure _Setnonce(const aValue: UnicodeString);
  8170. Public
  8171. class function JSClassName: UnicodeString; override;
  8172. class function Cast(const Intf: IJSObject): IJSIdentityProviderConfig;
  8173. property configURL: UTF8String read _GetconfigURL write _SetconfigURL;
  8174. property clientId: UnicodeString read _GetclientId write _SetclientId;
  8175. property nonce: UnicodeString read _Getnonce write _Setnonce;
  8176. end;
  8177. { --------------------------------------------------------------------
  8178. TJSIdentityProviderWellKnown
  8179. --------------------------------------------------------------------}
  8180. TUTF8StringDynArray = IJSArray; // array of UTF8String
  8181. TJSIdentityProviderWellKnownRec = record
  8182. provider_urls: TUTF8StringDynArray;
  8183. end;
  8184. IJSIdentityProviderWellKnown = interface(IJSObject)
  8185. ['{E5E869D5-CFC0-35DC-8C3B-1281B7E200E0}']
  8186. function _Getprovider_urls: TUTF8StringDynArray;
  8187. procedure _Setprovider_urls(const aValue: TUTF8StringDynArray);
  8188. property provider_urls: TUTF8StringDynArray read _Getprovider_urls write _Setprovider_urls;
  8189. end;
  8190. TJSIdentityProviderWellKnown = class(TJSObject,IJSIdentityProviderWellKnown)
  8191. Protected
  8192. function _Getprovider_urls: TUTF8StringDynArray;
  8193. procedure _Setprovider_urls(const aValue: TUTF8StringDynArray);
  8194. Public
  8195. class function JSClassName: UnicodeString; override;
  8196. class function Cast(const Intf: IJSObject): IJSIdentityProviderWellKnown;
  8197. property provider_urls: TUTF8StringDynArray read _Getprovider_urls write _Setprovider_urls;
  8198. end;
  8199. { --------------------------------------------------------------------
  8200. TJSIdentityProviderIcon
  8201. --------------------------------------------------------------------}
  8202. TJSIdentityProviderIconRec = record
  8203. url: UnicodeString;
  8204. size: Cardinal;
  8205. end;
  8206. IJSIdentityProviderIcon = interface(IJSObject)
  8207. ['{99261047-55F2-3BEC-B953-89926AF5932A}']
  8208. function _Geturl: UnicodeString;
  8209. function _Getsize: Cardinal;
  8210. procedure _Seturl(const aValue: UnicodeString);
  8211. procedure _Setsize(const aValue: Cardinal);
  8212. property url: UnicodeString read _Geturl write _Seturl;
  8213. property size: Cardinal read _Getsize write _Setsize;
  8214. end;
  8215. TJSIdentityProviderIcon = class(TJSObject,IJSIdentityProviderIcon)
  8216. Protected
  8217. function _Geturl: UnicodeString;
  8218. function _Getsize: Cardinal;
  8219. procedure _Seturl(const aValue: UnicodeString);
  8220. procedure _Setsize(const aValue: Cardinal);
  8221. Public
  8222. class function JSClassName: UnicodeString; override;
  8223. class function Cast(const Intf: IJSObject): IJSIdentityProviderIcon;
  8224. property url: UnicodeString read _Geturl write _Seturl;
  8225. property size: Cardinal read _Getsize write _Setsize;
  8226. end;
  8227. { --------------------------------------------------------------------
  8228. TJSIdentityProviderBranding
  8229. --------------------------------------------------------------------}
  8230. TJSIdentityProviderIconDynArray = IJSArray; // array of IdentityProviderIcon
  8231. TJSIdentityProviderBrandingRec = record
  8232. background_color: UnicodeString;
  8233. color: UnicodeString;
  8234. icons: TJSIdentityProviderIconDynArray;
  8235. name: UnicodeString;
  8236. end;
  8237. IJSIdentityProviderBranding = interface(IJSObject)
  8238. ['{E50D16CD-5497-3395-A568-9AE25A29ADC0}']
  8239. function _Getbackground_color: UnicodeString;
  8240. function _Getcolor: UnicodeString;
  8241. function _Geticons: TJSIdentityProviderIconDynArray;
  8242. function _Getname: UnicodeString;
  8243. procedure _Setbackground_color(const aValue: UnicodeString);
  8244. procedure _Setcolor(const aValue: UnicodeString);
  8245. procedure _Seticons(const aValue: TJSIdentityProviderIconDynArray);
  8246. procedure _Setname(const aValue: UnicodeString);
  8247. property background_color: UnicodeString read _Getbackground_color write _Setbackground_color;
  8248. property color: UnicodeString read _Getcolor write _Setcolor;
  8249. property icons: TJSIdentityProviderIconDynArray read _Geticons write _Seticons;
  8250. property name: UnicodeString read _Getname write _Setname;
  8251. end;
  8252. TJSIdentityProviderBranding = class(TJSObject,IJSIdentityProviderBranding)
  8253. Protected
  8254. function _Getbackground_color: UnicodeString;
  8255. function _Getcolor: UnicodeString;
  8256. function _Geticons: TJSIdentityProviderIconDynArray;
  8257. function _Getname: UnicodeString;
  8258. procedure _Setbackground_color(const aValue: UnicodeString);
  8259. procedure _Setcolor(const aValue: UnicodeString);
  8260. procedure _Seticons(const aValue: TJSIdentityProviderIconDynArray);
  8261. procedure _Setname(const aValue: UnicodeString);
  8262. Public
  8263. class function JSClassName: UnicodeString; override;
  8264. class function Cast(const Intf: IJSObject): IJSIdentityProviderBranding;
  8265. property background_color: UnicodeString read _Getbackground_color write _Setbackground_color;
  8266. property color: UnicodeString read _Getcolor write _Setcolor;
  8267. property icons: TJSIdentityProviderIconDynArray read _Geticons write _Seticons;
  8268. property name: UnicodeString read _Getname write _Setname;
  8269. end;
  8270. { --------------------------------------------------------------------
  8271. TJSIdentityProviderAPIConfig
  8272. --------------------------------------------------------------------}
  8273. TJSIdentityProviderAPIConfigRec = record
  8274. accounts_endpoint: UTF8String;
  8275. client_metadata_endpoint: UTF8String;
  8276. id_assertion_endpoint: UTF8String;
  8277. branding: TJSIdentityProviderBranding;
  8278. end;
  8279. IJSIdentityProviderAPIConfig = interface(IJSObject)
  8280. ['{01C1BE99-C551-3DF6-BA58-430F578F2E85}']
  8281. function _Getaccounts_endpoint: UTF8String;
  8282. function _Getclient_metadata_endpoint: UTF8String;
  8283. function _Getid_assertion_endpoint: UTF8String;
  8284. function _Getbranding: TJSIdentityProviderBranding;
  8285. procedure _Setaccounts_endpoint(const aValue: UTF8String);
  8286. procedure _Setclient_metadata_endpoint(const aValue: UTF8String);
  8287. procedure _Setid_assertion_endpoint(const aValue: UTF8String);
  8288. procedure _Setbranding(const aValue: TJSIdentityProviderBranding);
  8289. property accounts_endpoint: UTF8String read _Getaccounts_endpoint write _Setaccounts_endpoint;
  8290. property client_metadata_endpoint: UTF8String read _Getclient_metadata_endpoint write _Setclient_metadata_endpoint;
  8291. property id_assertion_endpoint: UTF8String read _Getid_assertion_endpoint write _Setid_assertion_endpoint;
  8292. property branding: TJSIdentityProviderBranding read _Getbranding write _Setbranding;
  8293. end;
  8294. TJSIdentityProviderAPIConfig = class(TJSObject,IJSIdentityProviderAPIConfig)
  8295. Protected
  8296. function _Getaccounts_endpoint: UTF8String;
  8297. function _Getclient_metadata_endpoint: UTF8String;
  8298. function _Getid_assertion_endpoint: UTF8String;
  8299. function _Getbranding: TJSIdentityProviderBranding;
  8300. procedure _Setaccounts_endpoint(const aValue: UTF8String);
  8301. procedure _Setclient_metadata_endpoint(const aValue: UTF8String);
  8302. procedure _Setid_assertion_endpoint(const aValue: UTF8String);
  8303. procedure _Setbranding(const aValue: TJSIdentityProviderBranding);
  8304. Public
  8305. class function JSClassName: UnicodeString; override;
  8306. class function Cast(const Intf: IJSObject): IJSIdentityProviderAPIConfig;
  8307. property accounts_endpoint: UTF8String read _Getaccounts_endpoint write _Setaccounts_endpoint;
  8308. property client_metadata_endpoint: UTF8String read _Getclient_metadata_endpoint write _Setclient_metadata_endpoint;
  8309. property id_assertion_endpoint: UTF8String read _Getid_assertion_endpoint write _Setid_assertion_endpoint;
  8310. property branding: TJSIdentityProviderBranding read _Getbranding write _Setbranding;
  8311. end;
  8312. { --------------------------------------------------------------------
  8313. TJSIdentityProviderAccount
  8314. --------------------------------------------------------------------}
  8315. TJSIdentityProviderAccountRec = record
  8316. id: UnicodeString;
  8317. name: UnicodeString;
  8318. email: UnicodeString;
  8319. given_name: UnicodeString;
  8320. picture: UnicodeString;
  8321. approved_clients: TUnicodeStringDynArray;
  8322. end;
  8323. IJSIdentityProviderAccount = interface(IJSObject)
  8324. ['{87F7ABBE-EC89-315F-80DC-5C412782CDB6}']
  8325. function _Getid: UnicodeString;
  8326. function _Getname: UnicodeString;
  8327. function _Getemail: UnicodeString;
  8328. function _Getgiven_name: UnicodeString;
  8329. function _Getpicture: UnicodeString;
  8330. function _Getapproved_clients: TUnicodeStringDynArray;
  8331. procedure _Setid(const aValue: UnicodeString);
  8332. procedure _Setname(const aValue: UnicodeString);
  8333. procedure _Setemail(const aValue: UnicodeString);
  8334. procedure _Setgiven_name(const aValue: UnicodeString);
  8335. procedure _Setpicture(const aValue: UnicodeString);
  8336. procedure _Setapproved_clients(const aValue: TUnicodeStringDynArray);
  8337. property id: UnicodeString read _Getid write _Setid;
  8338. property name: UnicodeString read _Getname write _Setname;
  8339. property email: UnicodeString read _Getemail write _Setemail;
  8340. property given_name: UnicodeString read _Getgiven_name write _Setgiven_name;
  8341. property picture: UnicodeString read _Getpicture write _Setpicture;
  8342. property approved_clients: TUnicodeStringDynArray read _Getapproved_clients write _Setapproved_clients;
  8343. end;
  8344. TJSIdentityProviderAccount = class(TJSObject,IJSIdentityProviderAccount)
  8345. Protected
  8346. function _Getid: UnicodeString;
  8347. function _Getname: UnicodeString;
  8348. function _Getemail: UnicodeString;
  8349. function _Getgiven_name: UnicodeString;
  8350. function _Getpicture: UnicodeString;
  8351. function _Getapproved_clients: TUnicodeStringDynArray;
  8352. procedure _Setid(const aValue: UnicodeString);
  8353. procedure _Setname(const aValue: UnicodeString);
  8354. procedure _Setemail(const aValue: UnicodeString);
  8355. procedure _Setgiven_name(const aValue: UnicodeString);
  8356. procedure _Setpicture(const aValue: UnicodeString);
  8357. procedure _Setapproved_clients(const aValue: TUnicodeStringDynArray);
  8358. Public
  8359. class function JSClassName: UnicodeString; override;
  8360. class function Cast(const Intf: IJSObject): IJSIdentityProviderAccount;
  8361. property id: UnicodeString read _Getid write _Setid;
  8362. property name: UnicodeString read _Getname write _Setname;
  8363. property email: UnicodeString read _Getemail write _Setemail;
  8364. property given_name: UnicodeString read _Getgiven_name write _Setgiven_name;
  8365. property picture: UnicodeString read _Getpicture write _Setpicture;
  8366. property approved_clients: TUnicodeStringDynArray read _Getapproved_clients write _Setapproved_clients;
  8367. end;
  8368. { --------------------------------------------------------------------
  8369. TJSIdentityProviderAccountList
  8370. --------------------------------------------------------------------}
  8371. TJSIdentityProviderAccountDynArray = IJSArray; // array of IdentityProviderAccount
  8372. TJSIdentityProviderAccountListRec = record
  8373. accounts: TJSIdentityProviderAccountDynArray;
  8374. end;
  8375. IJSIdentityProviderAccountList = interface(IJSObject)
  8376. ['{4D29F70F-F310-37EE-AB5A-CDDD965BBE9B}']
  8377. function _Getaccounts: TJSIdentityProviderAccountDynArray;
  8378. procedure _Setaccounts(const aValue: TJSIdentityProviderAccountDynArray);
  8379. property accounts: TJSIdentityProviderAccountDynArray read _Getaccounts write _Setaccounts;
  8380. end;
  8381. TJSIdentityProviderAccountList = class(TJSObject,IJSIdentityProviderAccountList)
  8382. Protected
  8383. function _Getaccounts: TJSIdentityProviderAccountDynArray;
  8384. procedure _Setaccounts(const aValue: TJSIdentityProviderAccountDynArray);
  8385. Public
  8386. class function JSClassName: UnicodeString; override;
  8387. class function Cast(const Intf: IJSObject): IJSIdentityProviderAccountList;
  8388. property accounts: TJSIdentityProviderAccountDynArray read _Getaccounts write _Setaccounts;
  8389. end;
  8390. { --------------------------------------------------------------------
  8391. TJSIdentityProviderClientMetadata
  8392. --------------------------------------------------------------------}
  8393. TJSIdentityProviderClientMetadataRec = record
  8394. privacy_policy_url: UnicodeString;
  8395. terms_of_service_url: UnicodeString;
  8396. end;
  8397. IJSIdentityProviderClientMetadata = interface(IJSObject)
  8398. ['{1BC80C25-4FBF-34B1-A7DC-B14CC82FE414}']
  8399. function _Getprivacy_policy_url: UnicodeString;
  8400. function _Getterms_of_service_url: UnicodeString;
  8401. procedure _Setprivacy_policy_url(const aValue: UnicodeString);
  8402. procedure _Setterms_of_service_url(const aValue: UnicodeString);
  8403. property privacy_policy_url: UnicodeString read _Getprivacy_policy_url write _Setprivacy_policy_url;
  8404. property terms_of_service_url: UnicodeString read _Getterms_of_service_url write _Setterms_of_service_url;
  8405. end;
  8406. TJSIdentityProviderClientMetadata = class(TJSObject,IJSIdentityProviderClientMetadata)
  8407. Protected
  8408. function _Getprivacy_policy_url: UnicodeString;
  8409. function _Getterms_of_service_url: UnicodeString;
  8410. procedure _Setprivacy_policy_url(const aValue: UnicodeString);
  8411. procedure _Setterms_of_service_url(const aValue: UnicodeString);
  8412. Public
  8413. class function JSClassName: UnicodeString; override;
  8414. class function Cast(const Intf: IJSObject): IJSIdentityProviderClientMetadata;
  8415. property privacy_policy_url: UnicodeString read _Getprivacy_policy_url write _Setprivacy_policy_url;
  8416. property terms_of_service_url: UnicodeString read _Getterms_of_service_url write _Setterms_of_service_url;
  8417. end;
  8418. { --------------------------------------------------------------------
  8419. TJSIdentityProviderToken
  8420. --------------------------------------------------------------------}
  8421. TJSIdentityProviderTokenRec = record
  8422. token: UnicodeString;
  8423. end;
  8424. IJSIdentityProviderToken = interface(IJSObject)
  8425. ['{C3299FB3-7C72-3B67-9DB9-93AACC848BF4}']
  8426. function _Gettoken: UnicodeString;
  8427. procedure _Settoken(const aValue: UnicodeString);
  8428. property token: UnicodeString read _Gettoken write _Settoken;
  8429. end;
  8430. TJSIdentityProviderToken = class(TJSObject,IJSIdentityProviderToken)
  8431. Protected
  8432. function _Gettoken: UnicodeString;
  8433. procedure _Settoken(const aValue: UnicodeString);
  8434. Public
  8435. class function JSClassName: UnicodeString; override;
  8436. class function Cast(const Intf: IJSObject): IJSIdentityProviderToken;
  8437. property token: UnicodeString read _Gettoken write _Settoken;
  8438. end;
  8439. { --------------------------------------------------------------------
  8440. TJSIdentityCredentialLogoutRPsRequest
  8441. --------------------------------------------------------------------}
  8442. TJSIdentityCredentialLogoutRPsRequestRec = record
  8443. url: UTF8String;
  8444. accountId: UTF8String;
  8445. end;
  8446. IJSIdentityCredentialLogoutRPsRequest = interface(IJSObject)
  8447. ['{503A4287-841D-3D74-94FA-16929684D12C}']
  8448. function _Geturl: UTF8String;
  8449. function _GetaccountId: UTF8String;
  8450. procedure _Seturl(const aValue: UTF8String);
  8451. procedure _SetaccountId(const aValue: UTF8String);
  8452. property url: UTF8String read _Geturl write _Seturl;
  8453. property accountId: UTF8String read _GetaccountId write _SetaccountId;
  8454. end;
  8455. TJSIdentityCredentialLogoutRPsRequest = class(TJSObject,IJSIdentityCredentialLogoutRPsRequest)
  8456. Protected
  8457. function _Geturl: UTF8String;
  8458. function _GetaccountId: UTF8String;
  8459. procedure _Seturl(const aValue: UTF8String);
  8460. procedure _SetaccountId(const aValue: UTF8String);
  8461. Public
  8462. class function JSClassName: UnicodeString; override;
  8463. class function Cast(const Intf: IJSObject): IJSIdentityCredentialLogoutRPsRequest;
  8464. property url: UTF8String read _Geturl write _Seturl;
  8465. property accountId: UTF8String read _GetaccountId write _SetaccountId;
  8466. end;
  8467. { --------------------------------------------------------------------
  8468. TJSChannelPixelLayout
  8469. --------------------------------------------------------------------}
  8470. TJSChannelPixelLayoutRec = record
  8471. offset: Cardinal;
  8472. width: Cardinal;
  8473. height: Cardinal;
  8474. dataType: TChannelPixelLayoutDataType;
  8475. stride: Cardinal;
  8476. skip: Cardinal;
  8477. end;
  8478. IJSChannelPixelLayout = interface(IJSObject)
  8479. ['{40316EEE-EF34-3EDA-979E-26A410F365CC}']
  8480. function _Getoffset: Cardinal;
  8481. function _Getwidth: Cardinal;
  8482. function _Getheight: Cardinal;
  8483. function _GetdataType: TChannelPixelLayoutDataType;
  8484. function _Getstride: Cardinal;
  8485. function _Getskip: Cardinal;
  8486. procedure _Setoffset(const aValue: Cardinal);
  8487. procedure _Setwidth(const aValue: Cardinal);
  8488. procedure _Setheight(const aValue: Cardinal);
  8489. procedure _SetdataType(const aValue: TChannelPixelLayoutDataType);
  8490. procedure _Setstride(const aValue: Cardinal);
  8491. procedure _Setskip(const aValue: Cardinal);
  8492. property offset: Cardinal read _Getoffset write _Setoffset;
  8493. property width: Cardinal read _Getwidth write _Setwidth;
  8494. property height: Cardinal read _Getheight write _Setheight;
  8495. property dataType: TChannelPixelLayoutDataType read _GetdataType write _SetdataType;
  8496. property stride: Cardinal read _Getstride write _Setstride;
  8497. property skip: Cardinal read _Getskip write _Setskip;
  8498. end;
  8499. TJSChannelPixelLayout = class(TJSObject,IJSChannelPixelLayout)
  8500. Protected
  8501. function _Getoffset: Cardinal;
  8502. function _Getwidth: Cardinal;
  8503. function _Getheight: Cardinal;
  8504. function _GetdataType: TChannelPixelLayoutDataType;
  8505. function _Getstride: Cardinal;
  8506. function _Getskip: Cardinal;
  8507. procedure _Setoffset(const aValue: Cardinal);
  8508. procedure _Setwidth(const aValue: Cardinal);
  8509. procedure _Setheight(const aValue: Cardinal);
  8510. procedure _SetdataType(const aValue: TChannelPixelLayoutDataType);
  8511. procedure _Setstride(const aValue: Cardinal);
  8512. procedure _Setskip(const aValue: Cardinal);
  8513. Public
  8514. class function JSClassName: UnicodeString; override;
  8515. class function Cast(const Intf: IJSObject): IJSChannelPixelLayout;
  8516. property offset: Cardinal read _Getoffset write _Setoffset;
  8517. property width: Cardinal read _Getwidth write _Setwidth;
  8518. property height: Cardinal read _Getheight write _Setheight;
  8519. property dataType: TChannelPixelLayoutDataType read _GetdataType write _SetdataType;
  8520. property stride: Cardinal read _Getstride write _Setstride;
  8521. property skip: Cardinal read _Getskip write _Setskip;
  8522. end;
  8523. { --------------------------------------------------------------------
  8524. TJSImageBitmapOptions
  8525. --------------------------------------------------------------------}
  8526. TJSImageBitmapOptionsRec = record
  8527. imageOrientation: TImageOrientation;
  8528. premultiplyAlpha: TPremultiplyAlpha;
  8529. colorSpaceConversion: TColorSpaceConversion;
  8530. resizeWidth: Cardinal;
  8531. resizeHeight: Cardinal;
  8532. end;
  8533. IJSImageBitmapOptions = interface(IJSObject)
  8534. ['{1F3EE117-446F-363E-BE6B-8F0EA5B4BA67}']
  8535. function _GetimageOrientation: TImageOrientation;
  8536. function _GetpremultiplyAlpha: TPremultiplyAlpha;
  8537. function _GetcolorSpaceConversion: TColorSpaceConversion;
  8538. function _GetresizeWidth: Cardinal;
  8539. function _GetresizeHeight: Cardinal;
  8540. procedure _SetimageOrientation(const aValue: TImageOrientation);
  8541. procedure _SetpremultiplyAlpha(const aValue: TPremultiplyAlpha);
  8542. procedure _SetcolorSpaceConversion(const aValue: TColorSpaceConversion);
  8543. procedure _SetresizeWidth(const aValue: Cardinal);
  8544. procedure _SetresizeHeight(const aValue: Cardinal);
  8545. property imageOrientation: TImageOrientation read _GetimageOrientation write _SetimageOrientation;
  8546. property premultiplyAlpha: TPremultiplyAlpha read _GetpremultiplyAlpha write _SetpremultiplyAlpha;
  8547. property colorSpaceConversion: TColorSpaceConversion read _GetcolorSpaceConversion write _SetcolorSpaceConversion;
  8548. property resizeWidth: Cardinal read _GetresizeWidth write _SetresizeWidth;
  8549. property resizeHeight: Cardinal read _GetresizeHeight write _SetresizeHeight;
  8550. end;
  8551. TJSImageBitmapOptions = class(TJSObject,IJSImageBitmapOptions)
  8552. Protected
  8553. function _GetimageOrientation: TImageOrientation;
  8554. function _GetpremultiplyAlpha: TPremultiplyAlpha;
  8555. function _GetcolorSpaceConversion: TColorSpaceConversion;
  8556. function _GetresizeWidth: Cardinal;
  8557. function _GetresizeHeight: Cardinal;
  8558. procedure _SetimageOrientation(const aValue: TImageOrientation);
  8559. procedure _SetpremultiplyAlpha(const aValue: TPremultiplyAlpha);
  8560. procedure _SetcolorSpaceConversion(const aValue: TColorSpaceConversion);
  8561. procedure _SetresizeWidth(const aValue: Cardinal);
  8562. procedure _SetresizeHeight(const aValue: Cardinal);
  8563. Public
  8564. class function JSClassName: UnicodeString; override;
  8565. class function Cast(const Intf: IJSObject): IJSImageBitmapOptions;
  8566. property imageOrientation: TImageOrientation read _GetimageOrientation write _SetimageOrientation;
  8567. property premultiplyAlpha: TPremultiplyAlpha read _GetpremultiplyAlpha write _SetpremultiplyAlpha;
  8568. property colorSpaceConversion: TColorSpaceConversion read _GetcolorSpaceConversion write _SetcolorSpaceConversion;
  8569. property resizeWidth: Cardinal read _GetresizeWidth write _SetresizeWidth;
  8570. property resizeHeight: Cardinal read _GetresizeHeight write _SetresizeHeight;
  8571. end;
  8572. { --------------------------------------------------------------------
  8573. TJSInstallTriggerData
  8574. --------------------------------------------------------------------}
  8575. TJSInstallTriggerDataRec = record
  8576. URL: UnicodeString;
  8577. IconURL: UnicodeString;
  8578. Hash: UnicodeString;
  8579. end;
  8580. IJSInstallTriggerData = interface(IJSObject)
  8581. ['{8AFD8000-708B-381C-9286-4C6F296872C0}']
  8582. function _GetURL: UnicodeString;
  8583. function _GetIconURL: UnicodeString;
  8584. function _GetHash: UnicodeString;
  8585. procedure _SetURL(const aValue: UnicodeString);
  8586. procedure _SetIconURL(const aValue: UnicodeString);
  8587. procedure _SetHash(const aValue: UnicodeString);
  8588. property URL: UnicodeString read _GetURL write _SetURL;
  8589. property IconURL: UnicodeString read _GetIconURL write _SetIconURL;
  8590. property Hash: UnicodeString read _GetHash write _SetHash;
  8591. end;
  8592. TJSInstallTriggerData = class(TJSObject,IJSInstallTriggerData)
  8593. Protected
  8594. function _GetURL: UnicodeString;
  8595. function _GetIconURL: UnicodeString;
  8596. function _GetHash: UnicodeString;
  8597. procedure _SetURL(const aValue: UnicodeString);
  8598. procedure _SetIconURL(const aValue: UnicodeString);
  8599. procedure _SetHash(const aValue: UnicodeString);
  8600. Public
  8601. class function JSClassName: UnicodeString; override;
  8602. class function Cast(const Intf: IJSObject): IJSInstallTriggerData;
  8603. property URL: UnicodeString read _GetURL write _SetURL;
  8604. property IconURL: UnicodeString read _GetIconURL write _SetIconURL;
  8605. property Hash: UnicodeString read _GetHash write _SetHash;
  8606. end;
  8607. { --------------------------------------------------------------------
  8608. TJSIntersectionObserverEntryInit
  8609. --------------------------------------------------------------------}
  8610. TJSIntersectionObserverEntryInitRec = record
  8611. time: TDOMHighResTimeStamp;
  8612. rootBounds: TJSDOMRectInit;
  8613. boundingClientRect: TJSDOMRectInit;
  8614. intersectionRect: TJSDOMRectInit;
  8615. target: TJSElement;
  8616. end;
  8617. IJSIntersectionObserverEntryInit = interface(IJSObject)
  8618. ['{99D12F1B-4564-3291-B24B-D18B0ADB487A}']
  8619. function _Gettime: TDOMHighResTimeStamp;
  8620. function _GetrootBounds: TJSDOMRectInit;
  8621. function _GetboundingClientRect: TJSDOMRectInit;
  8622. function _GetintersectionRect: TJSDOMRectInit;
  8623. function _Gettarget: IJSElement;
  8624. procedure _Settime(const aValue: TDOMHighResTimeStamp);
  8625. procedure _SetrootBounds(const aValue: TJSDOMRectInit);
  8626. procedure _SetboundingClientRect(const aValue: TJSDOMRectInit);
  8627. procedure _SetintersectionRect(const aValue: TJSDOMRectInit);
  8628. procedure _Settarget(const aValue: IJSElement);
  8629. property time: TDOMHighResTimeStamp read _Gettime write _Settime;
  8630. property rootBounds: TJSDOMRectInit read _GetrootBounds write _SetrootBounds;
  8631. property boundingClientRect: TJSDOMRectInit read _GetboundingClientRect write _SetboundingClientRect;
  8632. property intersectionRect: TJSDOMRectInit read _GetintersectionRect write _SetintersectionRect;
  8633. property target: IJSElement read _Gettarget write _Settarget;
  8634. end;
  8635. TJSIntersectionObserverEntryInit = class(TJSObject,IJSIntersectionObserverEntryInit)
  8636. Protected
  8637. function _Gettime: TDOMHighResTimeStamp;
  8638. function _GetrootBounds: TJSDOMRectInit;
  8639. function _GetboundingClientRect: TJSDOMRectInit;
  8640. function _GetintersectionRect: TJSDOMRectInit;
  8641. function _Gettarget: IJSElement;
  8642. procedure _Settime(const aValue: TDOMHighResTimeStamp);
  8643. procedure _SetrootBounds(const aValue: TJSDOMRectInit);
  8644. procedure _SetboundingClientRect(const aValue: TJSDOMRectInit);
  8645. procedure _SetintersectionRect(const aValue: TJSDOMRectInit);
  8646. procedure _Settarget(const aValue: IJSElement);
  8647. Public
  8648. class function JSClassName: UnicodeString; override;
  8649. class function Cast(const Intf: IJSObject): IJSIntersectionObserverEntryInit;
  8650. property time: TDOMHighResTimeStamp read _Gettime write _Settime;
  8651. property rootBounds: TJSDOMRectInit read _GetrootBounds write _SetrootBounds;
  8652. property boundingClientRect: TJSDOMRectInit read _GetboundingClientRect write _SetboundingClientRect;
  8653. property intersectionRect: TJSDOMRectInit read _GetintersectionRect write _SetintersectionRect;
  8654. property target: IJSElement read _Gettarget write _Settarget;
  8655. end;
  8656. { --------------------------------------------------------------------
  8657. TJSIntersectionObserverInit
  8658. --------------------------------------------------------------------}
  8659. // Union of Element, Document
  8660. TIntersectionObserverInit_root_Type = Variant;
  8661. // Union of double, sequence
  8662. TIntersectionObserverInit_threshold_Type = Variant;
  8663. TJSIntersectionObserverInitRec = record
  8664. root: TIntersectionObserverInit_root_Type;
  8665. rootMargin: UTF8String;
  8666. threshold: TIntersectionObserverInit_threshold_Type;
  8667. end;
  8668. IJSIntersectionObserverInit = interface(IJSObject)
  8669. ['{7D1328E7-3005-3D1E-A388-5160B5571717}']
  8670. function _Getroot: TIntersectionObserverInit_root_Type;
  8671. function _GetrootMargin: UTF8String;
  8672. function _Getthreshold: TIntersectionObserverInit_threshold_Type;
  8673. procedure _Setroot(const aValue: TIntersectionObserverInit_root_Type);
  8674. procedure _SetrootMargin(const aValue: UTF8String);
  8675. procedure _Setthreshold(const aValue: TIntersectionObserverInit_threshold_Type);
  8676. property root: TIntersectionObserverInit_root_Type read _Getroot write _Setroot;
  8677. property rootMargin: UTF8String read _GetrootMargin write _SetrootMargin;
  8678. property threshold: TIntersectionObserverInit_threshold_Type read _Getthreshold write _Setthreshold;
  8679. end;
  8680. TJSIntersectionObserverInit = class(TJSObject,IJSIntersectionObserverInit)
  8681. Protected
  8682. function _Getroot: TIntersectionObserverInit_root_Type;
  8683. function _GetrootMargin: UTF8String;
  8684. function _Getthreshold: TIntersectionObserverInit_threshold_Type;
  8685. procedure _Setroot(const aValue: TIntersectionObserverInit_root_Type);
  8686. procedure _SetrootMargin(const aValue: UTF8String);
  8687. procedure _Setthreshold(const aValue: TIntersectionObserverInit_threshold_Type);
  8688. Public
  8689. class function JSClassName: UnicodeString; override;
  8690. class function Cast(const Intf: IJSObject): IJSIntersectionObserverInit;
  8691. property root: TIntersectionObserverInit_root_Type read _Getroot write _Setroot;
  8692. property rootMargin: UTF8String read _GetrootMargin write _SetrootMargin;
  8693. property threshold: TIntersectionObserverInit_threshold_Type read _Getthreshold write _Setthreshold;
  8694. end;
  8695. { --------------------------------------------------------------------
  8696. TJSDisplayNameOptions
  8697. --------------------------------------------------------------------}
  8698. TJSDisplayNameOptionsRec = record
  8699. type_: UnicodeString;
  8700. style: UnicodeString;
  8701. calendar: UnicodeString;
  8702. keys: TUnicodeStringDynArray;
  8703. end;
  8704. IJSDisplayNameOptions = interface(IJSObject)
  8705. ['{39000323-C7B7-3A9A-BA80-2C5ED5C83986}']
  8706. function _Gettype_: UnicodeString;
  8707. function _Getstyle: UnicodeString;
  8708. function _Getcalendar: UnicodeString;
  8709. function _Getkeys: TUnicodeStringDynArray;
  8710. procedure _Settype_(const aValue: UnicodeString);
  8711. procedure _Setstyle(const aValue: UnicodeString);
  8712. procedure _Setcalendar(const aValue: UnicodeString);
  8713. procedure _Setkeys(const aValue: TUnicodeStringDynArray);
  8714. property type_: UnicodeString read _Gettype_ write _Settype_;
  8715. property style: UnicodeString read _Getstyle write _Setstyle;
  8716. property calendar: UnicodeString read _Getcalendar write _Setcalendar;
  8717. property keys: TUnicodeStringDynArray read _Getkeys write _Setkeys;
  8718. end;
  8719. TJSDisplayNameOptions = class(TJSObject,IJSDisplayNameOptions)
  8720. Protected
  8721. function _Gettype_: UnicodeString;
  8722. function _Getstyle: UnicodeString;
  8723. function _Getcalendar: UnicodeString;
  8724. function _Getkeys: TUnicodeStringDynArray;
  8725. procedure _Settype_(const aValue: UnicodeString);
  8726. procedure _Setstyle(const aValue: UnicodeString);
  8727. procedure _Setcalendar(const aValue: UnicodeString);
  8728. procedure _Setkeys(const aValue: TUnicodeStringDynArray);
  8729. Public
  8730. class function JSClassName: UnicodeString; override;
  8731. class function Cast(const Intf: IJSObject): IJSDisplayNameOptions;
  8732. property type_: UnicodeString read _Gettype_ write _Settype_;
  8733. property style: UnicodeString read _Getstyle write _Setstyle;
  8734. property calendar: UnicodeString read _Getcalendar write _Setcalendar;
  8735. property keys: TUnicodeStringDynArray read _Getkeys write _Setkeys;
  8736. end;
  8737. { --------------------------------------------------------------------
  8738. TJSDisplayNameResult
  8739. --------------------------------------------------------------------}
  8740. TJSDisplayNameResultRec = record
  8741. locale: UnicodeString;
  8742. type_: UnicodeString;
  8743. style: UnicodeString;
  8744. calendar: UnicodeString;
  8745. values: TUnicodeStringDynArray;
  8746. end;
  8747. IJSDisplayNameResult = interface(IJSObject)
  8748. ['{C03AF34F-DC66-3354-BD79-8642B54CCD5D}']
  8749. function _Getlocale: UnicodeString;
  8750. function _Gettype_: UnicodeString;
  8751. function _Getstyle: UnicodeString;
  8752. function _Getcalendar: UnicodeString;
  8753. function _Getvalues: TUnicodeStringDynArray;
  8754. procedure _Setlocale(const aValue: UnicodeString);
  8755. procedure _Settype_(const aValue: UnicodeString);
  8756. procedure _Setstyle(const aValue: UnicodeString);
  8757. procedure _Setcalendar(const aValue: UnicodeString);
  8758. procedure _Setvalues(const aValue: TUnicodeStringDynArray);
  8759. property locale: UnicodeString read _Getlocale write _Setlocale;
  8760. property type_: UnicodeString read _Gettype_ write _Settype_;
  8761. property style: UnicodeString read _Getstyle write _Setstyle;
  8762. property calendar: UnicodeString read _Getcalendar write _Setcalendar;
  8763. property values: TUnicodeStringDynArray read _Getvalues write _Setvalues;
  8764. end;
  8765. TJSDisplayNameResult = class(TJSObject,IJSDisplayNameResult)
  8766. Protected
  8767. function _Getlocale: UnicodeString;
  8768. function _Gettype_: UnicodeString;
  8769. function _Getstyle: UnicodeString;
  8770. function _Getcalendar: UnicodeString;
  8771. function _Getvalues: TUnicodeStringDynArray;
  8772. procedure _Setlocale(const aValue: UnicodeString);
  8773. procedure _Settype_(const aValue: UnicodeString);
  8774. procedure _Setstyle(const aValue: UnicodeString);
  8775. procedure _Setcalendar(const aValue: UnicodeString);
  8776. procedure _Setvalues(const aValue: TUnicodeStringDynArray);
  8777. Public
  8778. class function JSClassName: UnicodeString; override;
  8779. class function Cast(const Intf: IJSObject): IJSDisplayNameResult;
  8780. property locale: UnicodeString read _Getlocale write _Setlocale;
  8781. property type_: UnicodeString read _Gettype_ write _Settype_;
  8782. property style: UnicodeString read _Getstyle write _Setstyle;
  8783. property calendar: UnicodeString read _Getcalendar write _Setcalendar;
  8784. property values: TUnicodeStringDynArray read _Getvalues write _Setvalues;
  8785. end;
  8786. { --------------------------------------------------------------------
  8787. TJSLocaleInfo
  8788. --------------------------------------------------------------------}
  8789. TJSLocaleInfoRec = record
  8790. locale: UnicodeString;
  8791. direction: UnicodeString;
  8792. end;
  8793. IJSLocaleInfo = interface(IJSObject)
  8794. ['{3688BFC2-CCE4-3853-B069-70E3D390FEBF}']
  8795. function _Getlocale: UnicodeString;
  8796. function _Getdirection: UnicodeString;
  8797. procedure _Setlocale(const aValue: UnicodeString);
  8798. procedure _Setdirection(const aValue: UnicodeString);
  8799. property locale: UnicodeString read _Getlocale write _Setlocale;
  8800. property direction: UnicodeString read _Getdirection write _Setdirection;
  8801. end;
  8802. TJSLocaleInfo = class(TJSObject,IJSLocaleInfo)
  8803. Protected
  8804. function _Getlocale: UnicodeString;
  8805. function _Getdirection: UnicodeString;
  8806. procedure _Setlocale(const aValue: UnicodeString);
  8807. procedure _Setdirection(const aValue: UnicodeString);
  8808. Public
  8809. class function JSClassName: UnicodeString; override;
  8810. class function Cast(const Intf: IJSObject): IJSLocaleInfo;
  8811. property locale: UnicodeString read _Getlocale write _Setlocale;
  8812. property direction: UnicodeString read _Getdirection write _Setdirection;
  8813. end;
  8814. { --------------------------------------------------------------------
  8815. TJSIterableKeyOrValueResult
  8816. --------------------------------------------------------------------}
  8817. TJSIterableKeyOrValueResultRec = record
  8818. value: Variant;
  8819. done: Boolean;
  8820. end;
  8821. IJSIterableKeyOrValueResult = interface(IJSObject)
  8822. ['{3613FCAD-A350-33FB-B5AD-F34037D7BE5E}']
  8823. function _Getvalue: Variant;
  8824. function _Getdone: Boolean;
  8825. procedure _Setvalue(const aValue: Variant);
  8826. procedure _Setdone(const aValue: Boolean);
  8827. property value: Variant read _Getvalue write _Setvalue;
  8828. property done: Boolean read _Getdone write _Setdone;
  8829. end;
  8830. TJSIterableKeyOrValueResult = class(TJSObject,IJSIterableKeyOrValueResult)
  8831. Protected
  8832. function _Getvalue: Variant;
  8833. function _Getdone: Boolean;
  8834. procedure _Setvalue(const aValue: Variant);
  8835. procedure _Setdone(const aValue: Boolean);
  8836. Public
  8837. class function JSClassName: UnicodeString; override;
  8838. class function Cast(const Intf: IJSObject): IJSIterableKeyOrValueResult;
  8839. property value: Variant read _Getvalue write _Setvalue;
  8840. property done: Boolean read _Getdone write _Setdone;
  8841. end;
  8842. { --------------------------------------------------------------------
  8843. TJSIterableKeyAndValueResult
  8844. --------------------------------------------------------------------}
  8845. TVariantDynArray = IJSArray; // array of any
  8846. TJSIterableKeyAndValueResultRec = record
  8847. value: TVariantDynArray;
  8848. done: Boolean;
  8849. end;
  8850. IJSIterableKeyAndValueResult = interface(IJSObject)
  8851. ['{4F18103E-2142-3212-B1E0-0EA00FC3DA0A}']
  8852. function _Getvalue: TVariantDynArray;
  8853. function _Getdone: Boolean;
  8854. procedure _Setvalue(const aValue: TVariantDynArray);
  8855. procedure _Setdone(const aValue: Boolean);
  8856. property value: TVariantDynArray read _Getvalue write _Setvalue;
  8857. property done: Boolean read _Getdone write _Setdone;
  8858. end;
  8859. TJSIterableKeyAndValueResult = class(TJSObject,IJSIterableKeyAndValueResult)
  8860. Protected
  8861. function _Getvalue: TVariantDynArray;
  8862. function _Getdone: Boolean;
  8863. procedure _Setvalue(const aValue: TVariantDynArray);
  8864. procedure _Setdone(const aValue: Boolean);
  8865. Public
  8866. class function JSClassName: UnicodeString; override;
  8867. class function Cast(const Intf: IJSObject): IJSIterableKeyAndValueResult;
  8868. property value: TVariantDynArray read _Getvalue write _Setvalue;
  8869. property done: Boolean read _Getdone write _Setdone;
  8870. end;
  8871. { --------------------------------------------------------------------
  8872. TJSKeyAlgorithm
  8873. --------------------------------------------------------------------}
  8874. TJSKeyAlgorithmRec = record
  8875. name: UnicodeString;
  8876. end;
  8877. IJSKeyAlgorithm = interface(IJSObject)
  8878. ['{E6CF941B-B6A3-3474-9949-11281AA2A621}']
  8879. function _Getname: UnicodeString;
  8880. procedure _Setname(const aValue: UnicodeString);
  8881. property name: UnicodeString read _Getname write _Setname;
  8882. end;
  8883. TJSKeyAlgorithm = class(TJSObject,IJSKeyAlgorithm)
  8884. Protected
  8885. function _Getname: UnicodeString;
  8886. procedure _Setname(const aValue: UnicodeString);
  8887. Public
  8888. class function JSClassName: UnicodeString; override;
  8889. class function Cast(const Intf: IJSObject): IJSKeyAlgorithm;
  8890. property name: UnicodeString read _Getname write _Setname;
  8891. end;
  8892. { --------------------------------------------------------------------
  8893. TJSAnimationPropertyValueDetails
  8894. --------------------------------------------------------------------}
  8895. TJSAnimationPropertyValueDetailsRec = record
  8896. offset: Double;
  8897. value: UTF8String;
  8898. easing: UTF8String;
  8899. composite: TCompositeOperation;
  8900. end;
  8901. IJSAnimationPropertyValueDetails = interface(IJSObject)
  8902. ['{86034265-AF5C-36AE-A036-D12D76676926}']
  8903. function _Getoffset: Double;
  8904. function _Getvalue: UTF8String;
  8905. function _Geteasing: UTF8String;
  8906. function _Getcomposite: TCompositeOperation;
  8907. procedure _Setoffset(const aValue: Double);
  8908. procedure _Setvalue(const aValue: UTF8String);
  8909. procedure _Seteasing(const aValue: UTF8String);
  8910. procedure _Setcomposite(const aValue: TCompositeOperation);
  8911. property offset: Double read _Getoffset write _Setoffset;
  8912. property value: UTF8String read _Getvalue write _Setvalue;
  8913. property easing: UTF8String read _Geteasing write _Seteasing;
  8914. property composite: TCompositeOperation read _Getcomposite write _Setcomposite;
  8915. end;
  8916. TJSAnimationPropertyValueDetails = class(TJSObject,IJSAnimationPropertyValueDetails)
  8917. Protected
  8918. function _Getoffset: Double;
  8919. function _Getvalue: UTF8String;
  8920. function _Geteasing: UTF8String;
  8921. function _Getcomposite: TCompositeOperation;
  8922. procedure _Setoffset(const aValue: Double);
  8923. procedure _Setvalue(const aValue: UTF8String);
  8924. procedure _Seteasing(const aValue: UTF8String);
  8925. procedure _Setcomposite(const aValue: TCompositeOperation);
  8926. Public
  8927. class function JSClassName: UnicodeString; override;
  8928. class function Cast(const Intf: IJSObject): IJSAnimationPropertyValueDetails;
  8929. property offset: Double read _Getoffset write _Setoffset;
  8930. property value: UTF8String read _Getvalue write _Setvalue;
  8931. property easing: UTF8String read _Geteasing write _Seteasing;
  8932. property composite: TCompositeOperation read _Getcomposite write _Setcomposite;
  8933. end;
  8934. { --------------------------------------------------------------------
  8935. TJSAnimationPropertyDetails
  8936. --------------------------------------------------------------------}
  8937. TJSAnimationPropertyValueDetailsDynArray = IJSArray; // array of AnimationPropertyValueDetails
  8938. TJSAnimationPropertyDetailsRec = record
  8939. property_: UnicodeString;
  8940. runningOnCompositor: Boolean;
  8941. warning: UnicodeString;
  8942. values: TJSAnimationPropertyValueDetailsDynArray;
  8943. end;
  8944. IJSAnimationPropertyDetails = interface(IJSObject)
  8945. ['{977022CC-25AC-36FF-92E0-4CB036297162}']
  8946. function _Getproperty_: UnicodeString;
  8947. function _GetrunningOnCompositor: Boolean;
  8948. function _Getwarning: UnicodeString;
  8949. function _Getvalues: TJSAnimationPropertyValueDetailsDynArray;
  8950. procedure _Setproperty_(const aValue: UnicodeString);
  8951. procedure _SetrunningOnCompositor(const aValue: Boolean);
  8952. procedure _Setwarning(const aValue: UnicodeString);
  8953. procedure _Setvalues(const aValue: TJSAnimationPropertyValueDetailsDynArray);
  8954. property property_: UnicodeString read _Getproperty_ write _Setproperty_;
  8955. property runningOnCompositor: Boolean read _GetrunningOnCompositor write _SetrunningOnCompositor;
  8956. property warning: UnicodeString read _Getwarning write _Setwarning;
  8957. property values: TJSAnimationPropertyValueDetailsDynArray read _Getvalues write _Setvalues;
  8958. end;
  8959. TJSAnimationPropertyDetails = class(TJSObject,IJSAnimationPropertyDetails)
  8960. Protected
  8961. function _Getproperty_: UnicodeString;
  8962. function _GetrunningOnCompositor: Boolean;
  8963. function _Getwarning: UnicodeString;
  8964. function _Getvalues: TJSAnimationPropertyValueDetailsDynArray;
  8965. procedure _Setproperty_(const aValue: UnicodeString);
  8966. procedure _SetrunningOnCompositor(const aValue: Boolean);
  8967. procedure _Setwarning(const aValue: UnicodeString);
  8968. procedure _Setvalues(const aValue: TJSAnimationPropertyValueDetailsDynArray);
  8969. Public
  8970. class function JSClassName: UnicodeString; override;
  8971. class function Cast(const Intf: IJSObject): IJSAnimationPropertyDetails;
  8972. property property_: UnicodeString read _Getproperty_ write _Setproperty_;
  8973. property runningOnCompositor: Boolean read _GetrunningOnCompositor write _SetrunningOnCompositor;
  8974. property warning: UnicodeString read _Getwarning write _Setwarning;
  8975. property values: TJSAnimationPropertyValueDetailsDynArray read _Getvalues write _Setvalues;
  8976. end;
  8977. { --------------------------------------------------------------------
  8978. TJSKeyIdsInitData
  8979. --------------------------------------------------------------------}
  8980. TJSKeyIdsInitDataRec = record
  8981. kids: TUnicodeStringDynArray;
  8982. end;
  8983. IJSKeyIdsInitData = interface(IJSObject)
  8984. ['{A28D0BD7-3034-35E4-85FF-ED3E0046E5A9}']
  8985. function _Getkids: TUnicodeStringDynArray;
  8986. procedure _Setkids(const aValue: TUnicodeStringDynArray);
  8987. property kids: TUnicodeStringDynArray read _Getkids write _Setkids;
  8988. end;
  8989. TJSKeyIdsInitData = class(TJSObject,IJSKeyIdsInitData)
  8990. Protected
  8991. function _Getkids: TUnicodeStringDynArray;
  8992. procedure _Setkids(const aValue: TUnicodeStringDynArray);
  8993. Public
  8994. class function JSClassName: UnicodeString; override;
  8995. class function Cast(const Intf: IJSObject): IJSKeyIdsInitData;
  8996. property kids: TUnicodeStringDynArray read _Getkids write _Setkids;
  8997. end;
  8998. { --------------------------------------------------------------------
  8999. TJSL10nIdArgs
  9000. --------------------------------------------------------------------}
  9001. TJSL10nIdArgsRec = record
  9002. id: UTF8String;
  9003. args: IJSArray;
  9004. end;
  9005. IJSL10nIdArgs = interface(IJSObject)
  9006. ['{F0F4A0F7-49DA-3065-9915-813089A48332}']
  9007. function _Getid: UTF8String;
  9008. function _Getargs: IJSArray;
  9009. procedure _Setid(const aValue: UTF8String);
  9010. procedure _Setargs(const aValue: IJSArray);
  9011. property id: UTF8String read _Getid write _Setid;
  9012. property args: IJSArray read _Getargs write _Setargs;
  9013. end;
  9014. TJSL10nIdArgs = class(TJSObject,IJSL10nIdArgs)
  9015. Protected
  9016. function _Getid: UTF8String;
  9017. function _Getargs: IJSArray;
  9018. procedure _Setid(const aValue: UTF8String);
  9019. procedure _Setargs(const aValue: IJSArray);
  9020. Public
  9021. class function JSClassName: UnicodeString; override;
  9022. class function Cast(const Intf: IJSObject): IJSL10nIdArgs;
  9023. property id: UTF8String read _Getid write _Setid;
  9024. property args: IJSArray read _Getargs write _Setargs;
  9025. end;
  9026. { --------------------------------------------------------------------
  9027. TJSAttributeNameValue
  9028. --------------------------------------------------------------------}
  9029. TJSAttributeNameValueRec = record
  9030. name: UTF8String;
  9031. value: UTF8String;
  9032. end;
  9033. IJSAttributeNameValue = interface(IJSObject)
  9034. ['{59F2F361-DBC3-373F-BB46-72C53F284103}']
  9035. function _Getname: UTF8String;
  9036. function _Getvalue: UTF8String;
  9037. procedure _Setname(const aValue: UTF8String);
  9038. procedure _Setvalue(const aValue: UTF8String);
  9039. property name: UTF8String read _Getname write _Setname;
  9040. property value: UTF8String read _Getvalue write _Setvalue;
  9041. end;
  9042. TJSAttributeNameValue = class(TJSObject,IJSAttributeNameValue)
  9043. Protected
  9044. function _Getname: UTF8String;
  9045. function _Getvalue: UTF8String;
  9046. procedure _Setname(const aValue: UTF8String);
  9047. procedure _Setvalue(const aValue: UTF8String);
  9048. Public
  9049. class function JSClassName: UnicodeString; override;
  9050. class function Cast(const Intf: IJSObject): IJSAttributeNameValue;
  9051. property name: UTF8String read _Getname write _Setname;
  9052. property value: UTF8String read _Getvalue write _Setvalue;
  9053. end;
  9054. { --------------------------------------------------------------------
  9055. TJSL10nMessage
  9056. --------------------------------------------------------------------}
  9057. TJSAttributeNameValueDynArray = IJSArray; // array of AttributeNameValue
  9058. TJSL10nMessageRec = record
  9059. value: UTF8String;
  9060. attributes: TJSAttributeNameValueDynArray;
  9061. end;
  9062. IJSL10nMessage = interface(IJSObject)
  9063. ['{34BFCE8F-7651-3078-B9FA-04E45439C423}']
  9064. function _Getvalue: UTF8String;
  9065. function _Getattributes: TJSAttributeNameValueDynArray;
  9066. procedure _Setvalue(const aValue: UTF8String);
  9067. procedure _Setattributes(const aValue: TJSAttributeNameValueDynArray);
  9068. property value: UTF8String read _Getvalue write _Setvalue;
  9069. property attributes: TJSAttributeNameValueDynArray read _Getattributes write _Setattributes;
  9070. end;
  9071. TJSL10nMessage = class(TJSObject,IJSL10nMessage)
  9072. Protected
  9073. function _Getvalue: UTF8String;
  9074. function _Getattributes: TJSAttributeNameValueDynArray;
  9075. procedure _Setvalue(const aValue: UTF8String);
  9076. procedure _Setattributes(const aValue: TJSAttributeNameValueDynArray);
  9077. Public
  9078. class function JSClassName: UnicodeString; override;
  9079. class function Cast(const Intf: IJSObject): IJSL10nMessage;
  9080. property value: UTF8String read _Getvalue write _Setvalue;
  9081. property attributes: TJSAttributeNameValueDynArray read _Getattributes write _Setattributes;
  9082. end;
  9083. { --------------------------------------------------------------------
  9084. TJSL10nArgsHelperDict
  9085. --------------------------------------------------------------------}
  9086. TJSL10nArgsHelperDictRec = record
  9087. args: IJSArray;
  9088. end;
  9089. IJSL10nArgsHelperDict = interface(IJSObject)
  9090. ['{C8B37CD0-3340-347A-A8A6-4C7E26191523}']
  9091. function _Getargs: IJSArray;
  9092. procedure _Setargs(const aValue: IJSArray);
  9093. property args: IJSArray read _Getargs write _Setargs;
  9094. end;
  9095. TJSL10nArgsHelperDict = class(TJSObject,IJSL10nArgsHelperDict)
  9096. Protected
  9097. function _Getargs: IJSArray;
  9098. procedure _Setargs(const aValue: IJSArray);
  9099. Public
  9100. class function JSClassName: UnicodeString; override;
  9101. class function Cast(const Intf: IJSObject): IJSL10nArgsHelperDict;
  9102. property args: IJSArray read _Getargs write _Setargs;
  9103. end;
  9104. { --------------------------------------------------------------------
  9105. TJSLockOptions
  9106. --------------------------------------------------------------------}
  9107. TJSLockOptionsRec = record
  9108. mode: TLockMode;
  9109. ifAvailable: Boolean;
  9110. steal: Boolean;
  9111. signal: TJSAbortSignal;
  9112. end;
  9113. IJSLockOptions = interface(IJSObject)
  9114. ['{F6FB180D-2DBB-3150-B286-0C67AED69AD0}']
  9115. function _Getmode: TLockMode;
  9116. function _GetifAvailable: Boolean;
  9117. function _Getsteal: Boolean;
  9118. function _Getsignal: IJSAbortSignal;
  9119. procedure _Setmode(const aValue: TLockMode);
  9120. procedure _SetifAvailable(const aValue: Boolean);
  9121. procedure _Setsteal(const aValue: Boolean);
  9122. procedure _Setsignal(const aValue: IJSAbortSignal);
  9123. property mode: TLockMode read _Getmode write _Setmode;
  9124. property ifAvailable: Boolean read _GetifAvailable write _SetifAvailable;
  9125. property steal: Boolean read _Getsteal write _Setsteal;
  9126. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  9127. end;
  9128. TJSLockOptions = class(TJSObject,IJSLockOptions)
  9129. Protected
  9130. function _Getmode: TLockMode;
  9131. function _GetifAvailable: Boolean;
  9132. function _Getsteal: Boolean;
  9133. function _Getsignal: IJSAbortSignal;
  9134. procedure _Setmode(const aValue: TLockMode);
  9135. procedure _SetifAvailable(const aValue: Boolean);
  9136. procedure _Setsteal(const aValue: Boolean);
  9137. procedure _Setsignal(const aValue: IJSAbortSignal);
  9138. Public
  9139. class function JSClassName: UnicodeString; override;
  9140. class function Cast(const Intf: IJSObject): IJSLockOptions;
  9141. property mode: TLockMode read _Getmode write _Setmode;
  9142. property ifAvailable: Boolean read _GetifAvailable write _SetifAvailable;
  9143. property steal: Boolean read _Getsteal write _Setsteal;
  9144. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  9145. end;
  9146. { --------------------------------------------------------------------
  9147. TJSLockManagerSnapshot
  9148. --------------------------------------------------------------------}
  9149. TJSLockInfoDynArray = IJSArray; // array of LockInfo
  9150. TJSLockManagerSnapshotRec = record
  9151. held: TJSLockInfoDynArray;
  9152. pending: TJSLockInfoDynArray;
  9153. end;
  9154. IJSLockManagerSnapshot = interface(IJSObject)
  9155. ['{753F6F9E-2CB7-3DF8-9437-3241EC3C80E5}']
  9156. function _Getheld: TJSLockInfoDynArray;
  9157. function _Getpending: TJSLockInfoDynArray;
  9158. procedure _Setheld(const aValue: TJSLockInfoDynArray);
  9159. procedure _Setpending(const aValue: TJSLockInfoDynArray);
  9160. property held: TJSLockInfoDynArray read _Getheld write _Setheld;
  9161. property pending: TJSLockInfoDynArray read _Getpending write _Setpending;
  9162. end;
  9163. TJSLockManagerSnapshot = class(TJSObject,IJSLockManagerSnapshot)
  9164. Protected
  9165. function _Getheld: TJSLockInfoDynArray;
  9166. function _Getpending: TJSLockInfoDynArray;
  9167. procedure _Setheld(const aValue: TJSLockInfoDynArray);
  9168. procedure _Setpending(const aValue: TJSLockInfoDynArray);
  9169. Public
  9170. class function JSClassName: UnicodeString; override;
  9171. class function Cast(const Intf: IJSObject): IJSLockManagerSnapshot;
  9172. property held: TJSLockInfoDynArray read _Getheld write _Setheld;
  9173. property pending: TJSLockInfoDynArray read _Getpending write _Setpending;
  9174. end;
  9175. { --------------------------------------------------------------------
  9176. TJSLockInfo
  9177. --------------------------------------------------------------------}
  9178. TJSLockInfoRec = record
  9179. name: UnicodeString;
  9180. mode: TLockMode;
  9181. clientId: UnicodeString;
  9182. end;
  9183. IJSLockInfo = interface(IJSObject)
  9184. ['{CB5FAB1C-5324-315B-921B-5180515CFB3C}']
  9185. function _Getname: UnicodeString;
  9186. function _Getmode: TLockMode;
  9187. function _GetclientId: UnicodeString;
  9188. procedure _Setname(const aValue: UnicodeString);
  9189. procedure _Setmode(const aValue: TLockMode);
  9190. procedure _SetclientId(const aValue: UnicodeString);
  9191. property name: UnicodeString read _Getname write _Setname;
  9192. property mode: TLockMode read _Getmode write _Setmode;
  9193. property clientId: UnicodeString read _GetclientId write _SetclientId;
  9194. end;
  9195. TJSLockInfo = class(TJSObject,IJSLockInfo)
  9196. Protected
  9197. function _Getname: UnicodeString;
  9198. function _Getmode: TLockMode;
  9199. function _GetclientId: UnicodeString;
  9200. procedure _Setname(const aValue: UnicodeString);
  9201. procedure _Setmode(const aValue: TLockMode);
  9202. procedure _SetclientId(const aValue: UnicodeString);
  9203. Public
  9204. class function JSClassName: UnicodeString; override;
  9205. class function Cast(const Intf: IJSObject): IJSLockInfo;
  9206. property name: UnicodeString read _Getname write _Setname;
  9207. property mode: TLockMode read _Getmode write _Setmode;
  9208. property clientId: UnicodeString read _GetclientId write _SetclientId;
  9209. end;
  9210. { --------------------------------------------------------------------
  9211. TJSMediaConfiguration
  9212. --------------------------------------------------------------------}
  9213. TJSMediaConfigurationRec = record
  9214. video: TJSVideoConfiguration;
  9215. audio: TJSAudioConfiguration;
  9216. end;
  9217. IJSMediaConfiguration = interface(IJSObject)
  9218. ['{C3648B18-B3CA-3C5C-9452-D07EE31CFA84}']
  9219. function _Getvideo: TJSVideoConfiguration;
  9220. function _Getaudio: TJSAudioConfiguration;
  9221. procedure _Setvideo(const aValue: TJSVideoConfiguration);
  9222. procedure _Setaudio(const aValue: TJSAudioConfiguration);
  9223. property video: TJSVideoConfiguration read _Getvideo write _Setvideo;
  9224. property audio: TJSAudioConfiguration read _Getaudio write _Setaudio;
  9225. end;
  9226. TJSMediaConfiguration = class(TJSObject,IJSMediaConfiguration)
  9227. Protected
  9228. function _Getvideo: TJSVideoConfiguration;
  9229. function _Getaudio: TJSAudioConfiguration;
  9230. procedure _Setvideo(const aValue: TJSVideoConfiguration);
  9231. procedure _Setaudio(const aValue: TJSAudioConfiguration);
  9232. Public
  9233. class function JSClassName: UnicodeString; override;
  9234. class function Cast(const Intf: IJSObject): IJSMediaConfiguration;
  9235. property video: TJSVideoConfiguration read _Getvideo write _Setvideo;
  9236. property audio: TJSAudioConfiguration read _Getaudio write _Setaudio;
  9237. end;
  9238. { --------------------------------------------------------------------
  9239. TJSVideoConfiguration
  9240. --------------------------------------------------------------------}
  9241. TJSVideoConfigurationRec = record
  9242. contentType: UnicodeString;
  9243. width: Cardinal;
  9244. height: Cardinal;
  9245. bitrate: QWord;
  9246. framerate: Double;
  9247. hasAlphaChannel: Boolean;
  9248. hdrMetadataType: THdrMetadataType;
  9249. colorGamut: TColorGamut;
  9250. transferFunction: TTransferFunction;
  9251. scalabilityMode: UnicodeString;
  9252. end;
  9253. IJSVideoConfiguration = interface(IJSObject)
  9254. ['{9C5E3A03-B9AE-32F7-9D7B-A231171CA795}']
  9255. function _GetcontentType: UnicodeString;
  9256. function _Getwidth: Cardinal;
  9257. function _Getheight: Cardinal;
  9258. function _Getbitrate: QWord;
  9259. function _Getframerate: Double;
  9260. function _GethasAlphaChannel: Boolean;
  9261. function _GethdrMetadataType: THdrMetadataType;
  9262. function _GetcolorGamut: TColorGamut;
  9263. function _GettransferFunction: TTransferFunction;
  9264. function _GetscalabilityMode: UnicodeString;
  9265. procedure _SetcontentType(const aValue: UnicodeString);
  9266. procedure _Setwidth(const aValue: Cardinal);
  9267. procedure _Setheight(const aValue: Cardinal);
  9268. procedure _Setbitrate(const aValue: QWord);
  9269. procedure _Setframerate(const aValue: Double);
  9270. procedure _SethasAlphaChannel(const aValue: Boolean);
  9271. procedure _SethdrMetadataType(const aValue: THdrMetadataType);
  9272. procedure _SetcolorGamut(const aValue: TColorGamut);
  9273. procedure _SettransferFunction(const aValue: TTransferFunction);
  9274. procedure _SetscalabilityMode(const aValue: UnicodeString);
  9275. property contentType: UnicodeString read _GetcontentType write _SetcontentType;
  9276. property width: Cardinal read _Getwidth write _Setwidth;
  9277. property height: Cardinal read _Getheight write _Setheight;
  9278. property bitrate: QWord read _Getbitrate write _Setbitrate;
  9279. property framerate: Double read _Getframerate write _Setframerate;
  9280. property hasAlphaChannel: Boolean read _GethasAlphaChannel write _SethasAlphaChannel;
  9281. property hdrMetadataType: THdrMetadataType read _GethdrMetadataType write _SethdrMetadataType;
  9282. property colorGamut: TColorGamut read _GetcolorGamut write _SetcolorGamut;
  9283. property transferFunction: TTransferFunction read _GettransferFunction write _SettransferFunction;
  9284. property scalabilityMode: UnicodeString read _GetscalabilityMode write _SetscalabilityMode;
  9285. end;
  9286. TJSVideoConfiguration = class(TJSObject,IJSVideoConfiguration)
  9287. Protected
  9288. function _GetcontentType: UnicodeString;
  9289. function _Getwidth: Cardinal;
  9290. function _Getheight: Cardinal;
  9291. function _Getbitrate: QWord;
  9292. function _Getframerate: Double;
  9293. function _GethasAlphaChannel: Boolean;
  9294. function _GethdrMetadataType: THdrMetadataType;
  9295. function _GetcolorGamut: TColorGamut;
  9296. function _GettransferFunction: TTransferFunction;
  9297. function _GetscalabilityMode: UnicodeString;
  9298. procedure _SetcontentType(const aValue: UnicodeString);
  9299. procedure _Setwidth(const aValue: Cardinal);
  9300. procedure _Setheight(const aValue: Cardinal);
  9301. procedure _Setbitrate(const aValue: QWord);
  9302. procedure _Setframerate(const aValue: Double);
  9303. procedure _SethasAlphaChannel(const aValue: Boolean);
  9304. procedure _SethdrMetadataType(const aValue: THdrMetadataType);
  9305. procedure _SetcolorGamut(const aValue: TColorGamut);
  9306. procedure _SettransferFunction(const aValue: TTransferFunction);
  9307. procedure _SetscalabilityMode(const aValue: UnicodeString);
  9308. Public
  9309. class function JSClassName: UnicodeString; override;
  9310. class function Cast(const Intf: IJSObject): IJSVideoConfiguration;
  9311. property contentType: UnicodeString read _GetcontentType write _SetcontentType;
  9312. property width: Cardinal read _Getwidth write _Setwidth;
  9313. property height: Cardinal read _Getheight write _Setheight;
  9314. property bitrate: QWord read _Getbitrate write _Setbitrate;
  9315. property framerate: Double read _Getframerate write _Setframerate;
  9316. property hasAlphaChannel: Boolean read _GethasAlphaChannel write _SethasAlphaChannel;
  9317. property hdrMetadataType: THdrMetadataType read _GethdrMetadataType write _SethdrMetadataType;
  9318. property colorGamut: TColorGamut read _GetcolorGamut write _SetcolorGamut;
  9319. property transferFunction: TTransferFunction read _GettransferFunction write _SettransferFunction;
  9320. property scalabilityMode: UnicodeString read _GetscalabilityMode write _SetscalabilityMode;
  9321. end;
  9322. { --------------------------------------------------------------------
  9323. TJSAudioConfiguration
  9324. --------------------------------------------------------------------}
  9325. TJSAudioConfigurationRec = record
  9326. contentType: UnicodeString;
  9327. channels: UnicodeString;
  9328. bitrate: QWord;
  9329. samplerate: Cardinal;
  9330. end;
  9331. IJSAudioConfiguration = interface(IJSObject)
  9332. ['{7D5CFB0D-96D0-3D3F-A7C1-5759DCC91B0D}']
  9333. function _GetcontentType: UnicodeString;
  9334. function _Getchannels: UnicodeString;
  9335. function _Getbitrate: QWord;
  9336. function _Getsamplerate: Cardinal;
  9337. procedure _SetcontentType(const aValue: UnicodeString);
  9338. procedure _Setchannels(const aValue: UnicodeString);
  9339. procedure _Setbitrate(const aValue: QWord);
  9340. procedure _Setsamplerate(const aValue: Cardinal);
  9341. property contentType: UnicodeString read _GetcontentType write _SetcontentType;
  9342. property channels: UnicodeString read _Getchannels write _Setchannels;
  9343. property bitrate: QWord read _Getbitrate write _Setbitrate;
  9344. property samplerate: Cardinal read _Getsamplerate write _Setsamplerate;
  9345. end;
  9346. TJSAudioConfiguration = class(TJSObject,IJSAudioConfiguration)
  9347. Protected
  9348. function _GetcontentType: UnicodeString;
  9349. function _Getchannels: UnicodeString;
  9350. function _Getbitrate: QWord;
  9351. function _Getsamplerate: Cardinal;
  9352. procedure _SetcontentType(const aValue: UnicodeString);
  9353. procedure _Setchannels(const aValue: UnicodeString);
  9354. procedure _Setbitrate(const aValue: QWord);
  9355. procedure _Setsamplerate(const aValue: Cardinal);
  9356. Public
  9357. class function JSClassName: UnicodeString; override;
  9358. class function Cast(const Intf: IJSObject): IJSAudioConfiguration;
  9359. property contentType: UnicodeString read _GetcontentType write _SetcontentType;
  9360. property channels: UnicodeString read _Getchannels write _Setchannels;
  9361. property bitrate: QWord read _Getbitrate write _Setbitrate;
  9362. property samplerate: Cardinal read _Getsamplerate write _Setsamplerate;
  9363. end;
  9364. { --------------------------------------------------------------------
  9365. TJSMediaCacheStreamDebugInfo
  9366. --------------------------------------------------------------------}
  9367. TJSMediaCacheStreamDebugInfoRec = record
  9368. streamLength: Int64;
  9369. channelOffset: Int64;
  9370. cacheSuspended: Boolean;
  9371. channelEnded: Boolean;
  9372. loadID: LongInt;
  9373. end;
  9374. IJSMediaCacheStreamDebugInfo = interface(IJSObject)
  9375. ['{F471FF6C-E476-31E3-ABB0-608DA5500BFD}']
  9376. function _GetstreamLength: Int64;
  9377. function _GetchannelOffset: Int64;
  9378. function _GetcacheSuspended: Boolean;
  9379. function _GetchannelEnded: Boolean;
  9380. function _GetloadID: LongInt;
  9381. procedure _SetstreamLength(const aValue: Int64);
  9382. procedure _SetchannelOffset(const aValue: Int64);
  9383. procedure _SetcacheSuspended(const aValue: Boolean);
  9384. procedure _SetchannelEnded(const aValue: Boolean);
  9385. procedure _SetloadID(const aValue: LongInt);
  9386. property streamLength: Int64 read _GetstreamLength write _SetstreamLength;
  9387. property channelOffset: Int64 read _GetchannelOffset write _SetchannelOffset;
  9388. property cacheSuspended: Boolean read _GetcacheSuspended write _SetcacheSuspended;
  9389. property channelEnded: Boolean read _GetchannelEnded write _SetchannelEnded;
  9390. property loadID: LongInt read _GetloadID write _SetloadID;
  9391. end;
  9392. TJSMediaCacheStreamDebugInfo = class(TJSObject,IJSMediaCacheStreamDebugInfo)
  9393. Protected
  9394. function _GetstreamLength: Int64;
  9395. function _GetchannelOffset: Int64;
  9396. function _GetcacheSuspended: Boolean;
  9397. function _GetchannelEnded: Boolean;
  9398. function _GetloadID: LongInt;
  9399. procedure _SetstreamLength(const aValue: Int64);
  9400. procedure _SetchannelOffset(const aValue: Int64);
  9401. procedure _SetcacheSuspended(const aValue: Boolean);
  9402. procedure _SetchannelEnded(const aValue: Boolean);
  9403. procedure _SetloadID(const aValue: LongInt);
  9404. Public
  9405. class function JSClassName: UnicodeString; override;
  9406. class function Cast(const Intf: IJSObject): IJSMediaCacheStreamDebugInfo;
  9407. property streamLength: Int64 read _GetstreamLength write _SetstreamLength;
  9408. property channelOffset: Int64 read _GetchannelOffset write _SetchannelOffset;
  9409. property cacheSuspended: Boolean read _GetcacheSuspended write _SetcacheSuspended;
  9410. property channelEnded: Boolean read _GetchannelEnded write _SetchannelEnded;
  9411. property loadID: LongInt read _GetloadID write _SetloadID;
  9412. end;
  9413. { --------------------------------------------------------------------
  9414. TJSMediaResourceDebugInfo
  9415. --------------------------------------------------------------------}
  9416. TJSMediaResourceDebugInfoRec = record
  9417. cacheStream: TJSMediaCacheStreamDebugInfo;
  9418. end;
  9419. IJSMediaResourceDebugInfo = interface(IJSObject)
  9420. ['{178A3BBE-7C38-3E53-BE70-C3DE9E5A914C}']
  9421. function _GetcacheStream: TJSMediaCacheStreamDebugInfo;
  9422. procedure _SetcacheStream(const aValue: TJSMediaCacheStreamDebugInfo);
  9423. property cacheStream: TJSMediaCacheStreamDebugInfo read _GetcacheStream write _SetcacheStream;
  9424. end;
  9425. TJSMediaResourceDebugInfo = class(TJSObject,IJSMediaResourceDebugInfo)
  9426. Protected
  9427. function _GetcacheStream: TJSMediaCacheStreamDebugInfo;
  9428. procedure _SetcacheStream(const aValue: TJSMediaCacheStreamDebugInfo);
  9429. Public
  9430. class function JSClassName: UnicodeString; override;
  9431. class function Cast(const Intf: IJSObject): IJSMediaResourceDebugInfo;
  9432. property cacheStream: TJSMediaCacheStreamDebugInfo read _GetcacheStream write _SetcacheStream;
  9433. end;
  9434. { --------------------------------------------------------------------
  9435. TJSMediaDecoderDebugInfo
  9436. --------------------------------------------------------------------}
  9437. TJSMediaDecoderDebugInfoRec = record
  9438. instance: UnicodeString;
  9439. channels: Cardinal;
  9440. rate: Cardinal;
  9441. hasAudio: Boolean;
  9442. hasVideo: Boolean;
  9443. PlayState: UnicodeString;
  9444. containerType: UnicodeString;
  9445. reader: TJSMediaFormatReaderDebugInfo;
  9446. stateMachine: TJSMediaDecoderStateMachineDebugInfo;
  9447. resource: TJSMediaResourceDebugInfo;
  9448. end;
  9449. IJSMediaDecoderDebugInfo = interface(IJSObject)
  9450. ['{EAEA025E-B2D1-3A0C-AB73-854A38EC6925}']
  9451. function _Getinstance: UnicodeString;
  9452. function _Getchannels: Cardinal;
  9453. function _Getrate: Cardinal;
  9454. function _GethasAudio: Boolean;
  9455. function _GethasVideo: Boolean;
  9456. function _GetPlayState: UnicodeString;
  9457. function _GetcontainerType: UnicodeString;
  9458. function _Getreader: TJSMediaFormatReaderDebugInfo;
  9459. function _GetstateMachine: TJSMediaDecoderStateMachineDebugInfo;
  9460. function _Getresource: TJSMediaResourceDebugInfo;
  9461. procedure _Setinstance(const aValue: UnicodeString);
  9462. procedure _Setchannels(const aValue: Cardinal);
  9463. procedure _Setrate(const aValue: Cardinal);
  9464. procedure _SethasAudio(const aValue: Boolean);
  9465. procedure _SethasVideo(const aValue: Boolean);
  9466. procedure _SetPlayState(const aValue: UnicodeString);
  9467. procedure _SetcontainerType(const aValue: UnicodeString);
  9468. procedure _Setreader(const aValue: TJSMediaFormatReaderDebugInfo);
  9469. procedure _SetstateMachine(const aValue: TJSMediaDecoderStateMachineDebugInfo);
  9470. procedure _Setresource(const aValue: TJSMediaResourceDebugInfo);
  9471. property instance: UnicodeString read _Getinstance write _Setinstance;
  9472. property channels: Cardinal read _Getchannels write _Setchannels;
  9473. property rate: Cardinal read _Getrate write _Setrate;
  9474. property hasAudio: Boolean read _GethasAudio write _SethasAudio;
  9475. property hasVideo: Boolean read _GethasVideo write _SethasVideo;
  9476. property PlayState: UnicodeString read _GetPlayState write _SetPlayState;
  9477. property containerType: UnicodeString read _GetcontainerType write _SetcontainerType;
  9478. property reader: TJSMediaFormatReaderDebugInfo read _Getreader write _Setreader;
  9479. property stateMachine: TJSMediaDecoderStateMachineDebugInfo read _GetstateMachine write _SetstateMachine;
  9480. property resource: TJSMediaResourceDebugInfo read _Getresource write _Setresource;
  9481. end;
  9482. TJSMediaDecoderDebugInfo = class(TJSObject,IJSMediaDecoderDebugInfo)
  9483. Protected
  9484. function _Getinstance: UnicodeString;
  9485. function _Getchannels: Cardinal;
  9486. function _Getrate: Cardinal;
  9487. function _GethasAudio: Boolean;
  9488. function _GethasVideo: Boolean;
  9489. function _GetPlayState: UnicodeString;
  9490. function _GetcontainerType: UnicodeString;
  9491. function _Getreader: TJSMediaFormatReaderDebugInfo;
  9492. function _GetstateMachine: TJSMediaDecoderStateMachineDebugInfo;
  9493. function _Getresource: TJSMediaResourceDebugInfo;
  9494. procedure _Setinstance(const aValue: UnicodeString);
  9495. procedure _Setchannels(const aValue: Cardinal);
  9496. procedure _Setrate(const aValue: Cardinal);
  9497. procedure _SethasAudio(const aValue: Boolean);
  9498. procedure _SethasVideo(const aValue: Boolean);
  9499. procedure _SetPlayState(const aValue: UnicodeString);
  9500. procedure _SetcontainerType(const aValue: UnicodeString);
  9501. procedure _Setreader(const aValue: TJSMediaFormatReaderDebugInfo);
  9502. procedure _SetstateMachine(const aValue: TJSMediaDecoderStateMachineDebugInfo);
  9503. procedure _Setresource(const aValue: TJSMediaResourceDebugInfo);
  9504. Public
  9505. class function JSClassName: UnicodeString; override;
  9506. class function Cast(const Intf: IJSObject): IJSMediaDecoderDebugInfo;
  9507. property instance: UnicodeString read _Getinstance write _Setinstance;
  9508. property channels: Cardinal read _Getchannels write _Setchannels;
  9509. property rate: Cardinal read _Getrate write _Setrate;
  9510. property hasAudio: Boolean read _GethasAudio write _SethasAudio;
  9511. property hasVideo: Boolean read _GethasVideo write _SethasVideo;
  9512. property PlayState: UnicodeString read _GetPlayState write _SetPlayState;
  9513. property containerType: UnicodeString read _GetcontainerType write _SetcontainerType;
  9514. property reader: TJSMediaFormatReaderDebugInfo read _Getreader write _Setreader;
  9515. property stateMachine: TJSMediaDecoderStateMachineDebugInfo read _GetstateMachine write _SetstateMachine;
  9516. property resource: TJSMediaResourceDebugInfo read _Getresource write _Setresource;
  9517. end;
  9518. { --------------------------------------------------------------------
  9519. TJSAudioSinkDebugInfo
  9520. --------------------------------------------------------------------}
  9521. TJSAudioSinkDebugInfoRec = record
  9522. startTime: Int64;
  9523. lastGoodPosition: Int64;
  9524. isPlaying: Boolean;
  9525. isStarted: Boolean;
  9526. audioEnded: Boolean;
  9527. outputRate: Cardinal;
  9528. written: Int64;
  9529. hasErrored: Boolean;
  9530. playbackComplete: Boolean;
  9531. end;
  9532. IJSAudioSinkDebugInfo = interface(IJSObject)
  9533. ['{538DBF36-A7BA-3254-B218-75B9DA79265B}']
  9534. function _GetstartTime: Int64;
  9535. function _GetlastGoodPosition: Int64;
  9536. function _GetisPlaying: Boolean;
  9537. function _GetisStarted: Boolean;
  9538. function _GetaudioEnded: Boolean;
  9539. function _GetoutputRate: Cardinal;
  9540. function _Getwritten: Int64;
  9541. function _GethasErrored: Boolean;
  9542. function _GetplaybackComplete: Boolean;
  9543. procedure _SetstartTime(const aValue: Int64);
  9544. procedure _SetlastGoodPosition(const aValue: Int64);
  9545. procedure _SetisPlaying(const aValue: Boolean);
  9546. procedure _SetisStarted(const aValue: Boolean);
  9547. procedure _SetaudioEnded(const aValue: Boolean);
  9548. procedure _SetoutputRate(const aValue: Cardinal);
  9549. procedure _Setwritten(const aValue: Int64);
  9550. procedure _SethasErrored(const aValue: Boolean);
  9551. procedure _SetplaybackComplete(const aValue: Boolean);
  9552. property startTime: Int64 read _GetstartTime write _SetstartTime;
  9553. property lastGoodPosition: Int64 read _GetlastGoodPosition write _SetlastGoodPosition;
  9554. property isPlaying: Boolean read _GetisPlaying write _SetisPlaying;
  9555. property isStarted: Boolean read _GetisStarted write _SetisStarted;
  9556. property audioEnded: Boolean read _GetaudioEnded write _SetaudioEnded;
  9557. property outputRate: Cardinal read _GetoutputRate write _SetoutputRate;
  9558. property written: Int64 read _Getwritten write _Setwritten;
  9559. property hasErrored: Boolean read _GethasErrored write _SethasErrored;
  9560. property playbackComplete: Boolean read _GetplaybackComplete write _SetplaybackComplete;
  9561. end;
  9562. TJSAudioSinkDebugInfo = class(TJSObject,IJSAudioSinkDebugInfo)
  9563. Protected
  9564. function _GetstartTime: Int64;
  9565. function _GetlastGoodPosition: Int64;
  9566. function _GetisPlaying: Boolean;
  9567. function _GetisStarted: Boolean;
  9568. function _GetaudioEnded: Boolean;
  9569. function _GetoutputRate: Cardinal;
  9570. function _Getwritten: Int64;
  9571. function _GethasErrored: Boolean;
  9572. function _GetplaybackComplete: Boolean;
  9573. procedure _SetstartTime(const aValue: Int64);
  9574. procedure _SetlastGoodPosition(const aValue: Int64);
  9575. procedure _SetisPlaying(const aValue: Boolean);
  9576. procedure _SetisStarted(const aValue: Boolean);
  9577. procedure _SetaudioEnded(const aValue: Boolean);
  9578. procedure _SetoutputRate(const aValue: Cardinal);
  9579. procedure _Setwritten(const aValue: Int64);
  9580. procedure _SethasErrored(const aValue: Boolean);
  9581. procedure _SetplaybackComplete(const aValue: Boolean);
  9582. Public
  9583. class function JSClassName: UnicodeString; override;
  9584. class function Cast(const Intf: IJSObject): IJSAudioSinkDebugInfo;
  9585. property startTime: Int64 read _GetstartTime write _SetstartTime;
  9586. property lastGoodPosition: Int64 read _GetlastGoodPosition write _SetlastGoodPosition;
  9587. property isPlaying: Boolean read _GetisPlaying write _SetisPlaying;
  9588. property isStarted: Boolean read _GetisStarted write _SetisStarted;
  9589. property audioEnded: Boolean read _GetaudioEnded write _SetaudioEnded;
  9590. property outputRate: Cardinal read _GetoutputRate write _SetoutputRate;
  9591. property written: Int64 read _Getwritten write _Setwritten;
  9592. property hasErrored: Boolean read _GethasErrored write _SethasErrored;
  9593. property playbackComplete: Boolean read _GetplaybackComplete write _SetplaybackComplete;
  9594. end;
  9595. { --------------------------------------------------------------------
  9596. TJSAudioSinkWrapperDebugInfo
  9597. --------------------------------------------------------------------}
  9598. TJSAudioSinkWrapperDebugInfoRec = record
  9599. isPlaying: Boolean;
  9600. isStarted: Boolean;
  9601. audioEnded: Boolean;
  9602. audioSink: TJSAudioSinkDebugInfo;
  9603. end;
  9604. IJSAudioSinkWrapperDebugInfo = interface(IJSObject)
  9605. ['{3F55AA3A-62EB-393B-AE73-3958151E1510}']
  9606. function _GetisPlaying: Boolean;
  9607. function _GetisStarted: Boolean;
  9608. function _GetaudioEnded: Boolean;
  9609. function _GetaudioSink: TJSAudioSinkDebugInfo;
  9610. procedure _SetisPlaying(const aValue: Boolean);
  9611. procedure _SetisStarted(const aValue: Boolean);
  9612. procedure _SetaudioEnded(const aValue: Boolean);
  9613. procedure _SetaudioSink(const aValue: TJSAudioSinkDebugInfo);
  9614. property isPlaying: Boolean read _GetisPlaying write _SetisPlaying;
  9615. property isStarted: Boolean read _GetisStarted write _SetisStarted;
  9616. property audioEnded: Boolean read _GetaudioEnded write _SetaudioEnded;
  9617. property audioSink: TJSAudioSinkDebugInfo read _GetaudioSink write _SetaudioSink;
  9618. end;
  9619. TJSAudioSinkWrapperDebugInfo = class(TJSObject,IJSAudioSinkWrapperDebugInfo)
  9620. Protected
  9621. function _GetisPlaying: Boolean;
  9622. function _GetisStarted: Boolean;
  9623. function _GetaudioEnded: Boolean;
  9624. function _GetaudioSink: TJSAudioSinkDebugInfo;
  9625. procedure _SetisPlaying(const aValue: Boolean);
  9626. procedure _SetisStarted(const aValue: Boolean);
  9627. procedure _SetaudioEnded(const aValue: Boolean);
  9628. procedure _SetaudioSink(const aValue: TJSAudioSinkDebugInfo);
  9629. Public
  9630. class function JSClassName: UnicodeString; override;
  9631. class function Cast(const Intf: IJSObject): IJSAudioSinkWrapperDebugInfo;
  9632. property isPlaying: Boolean read _GetisPlaying write _SetisPlaying;
  9633. property isStarted: Boolean read _GetisStarted write _SetisStarted;
  9634. property audioEnded: Boolean read _GetaudioEnded write _SetaudioEnded;
  9635. property audioSink: TJSAudioSinkDebugInfo read _GetaudioSink write _SetaudioSink;
  9636. end;
  9637. { --------------------------------------------------------------------
  9638. TJSVideoSinkDebugInfo
  9639. --------------------------------------------------------------------}
  9640. TJSVideoSinkDebugInfoRec = record
  9641. isStarted: Boolean;
  9642. isPlaying: Boolean;
  9643. finished: Boolean;
  9644. size: LongInt;
  9645. videoFrameEndTime: Int64;
  9646. hasVideo: Boolean;
  9647. videoSinkEndRequestExists: Boolean;
  9648. endPromiseHolderIsEmpty: Boolean;
  9649. end;
  9650. IJSVideoSinkDebugInfo = interface(IJSObject)
  9651. ['{C756C185-E3B5-3ABD-AA25-58E756582BAA}']
  9652. function _GetisStarted: Boolean;
  9653. function _GetisPlaying: Boolean;
  9654. function _Getfinished: Boolean;
  9655. function _Getsize: LongInt;
  9656. function _GetvideoFrameEndTime: Int64;
  9657. function _GethasVideo: Boolean;
  9658. function _GetvideoSinkEndRequestExists: Boolean;
  9659. function _GetendPromiseHolderIsEmpty: Boolean;
  9660. procedure _SetisStarted(const aValue: Boolean);
  9661. procedure _SetisPlaying(const aValue: Boolean);
  9662. procedure _Setfinished(const aValue: Boolean);
  9663. procedure _Setsize(const aValue: LongInt);
  9664. procedure _SetvideoFrameEndTime(const aValue: Int64);
  9665. procedure _SethasVideo(const aValue: Boolean);
  9666. procedure _SetvideoSinkEndRequestExists(const aValue: Boolean);
  9667. procedure _SetendPromiseHolderIsEmpty(const aValue: Boolean);
  9668. property isStarted: Boolean read _GetisStarted write _SetisStarted;
  9669. property isPlaying: Boolean read _GetisPlaying write _SetisPlaying;
  9670. property finished: Boolean read _Getfinished write _Setfinished;
  9671. property size: LongInt read _Getsize write _Setsize;
  9672. property videoFrameEndTime: Int64 read _GetvideoFrameEndTime write _SetvideoFrameEndTime;
  9673. property hasVideo: Boolean read _GethasVideo write _SethasVideo;
  9674. property videoSinkEndRequestExists: Boolean read _GetvideoSinkEndRequestExists write _SetvideoSinkEndRequestExists;
  9675. property endPromiseHolderIsEmpty: Boolean read _GetendPromiseHolderIsEmpty write _SetendPromiseHolderIsEmpty;
  9676. end;
  9677. TJSVideoSinkDebugInfo = class(TJSObject,IJSVideoSinkDebugInfo)
  9678. Protected
  9679. function _GetisStarted: Boolean;
  9680. function _GetisPlaying: Boolean;
  9681. function _Getfinished: Boolean;
  9682. function _Getsize: LongInt;
  9683. function _GetvideoFrameEndTime: Int64;
  9684. function _GethasVideo: Boolean;
  9685. function _GetvideoSinkEndRequestExists: Boolean;
  9686. function _GetendPromiseHolderIsEmpty: Boolean;
  9687. procedure _SetisStarted(const aValue: Boolean);
  9688. procedure _SetisPlaying(const aValue: Boolean);
  9689. procedure _Setfinished(const aValue: Boolean);
  9690. procedure _Setsize(const aValue: LongInt);
  9691. procedure _SetvideoFrameEndTime(const aValue: Int64);
  9692. procedure _SethasVideo(const aValue: Boolean);
  9693. procedure _SetvideoSinkEndRequestExists(const aValue: Boolean);
  9694. procedure _SetendPromiseHolderIsEmpty(const aValue: Boolean);
  9695. Public
  9696. class function JSClassName: UnicodeString; override;
  9697. class function Cast(const Intf: IJSObject): IJSVideoSinkDebugInfo;
  9698. property isStarted: Boolean read _GetisStarted write _SetisStarted;
  9699. property isPlaying: Boolean read _GetisPlaying write _SetisPlaying;
  9700. property finished: Boolean read _Getfinished write _Setfinished;
  9701. property size: LongInt read _Getsize write _Setsize;
  9702. property videoFrameEndTime: Int64 read _GetvideoFrameEndTime write _SetvideoFrameEndTime;
  9703. property hasVideo: Boolean read _GethasVideo write _SethasVideo;
  9704. property videoSinkEndRequestExists: Boolean read _GetvideoSinkEndRequestExists write _SetvideoSinkEndRequestExists;
  9705. property endPromiseHolderIsEmpty: Boolean read _GetendPromiseHolderIsEmpty write _SetendPromiseHolderIsEmpty;
  9706. end;
  9707. { --------------------------------------------------------------------
  9708. TJSDecodedStreamDataDebugInfo
  9709. --------------------------------------------------------------------}
  9710. TJSDecodedStreamDataDebugInfoRec = record
  9711. instance: UnicodeString;
  9712. audioFramesWritten: Int64;
  9713. streamAudioWritten: Int64;
  9714. streamVideoWritten: Int64;
  9715. nextAudioTime: Int64;
  9716. lastVideoStartTime: Int64;
  9717. lastVideoEndTime: Int64;
  9718. haveSentFinishAudio: Boolean;
  9719. haveSentFinishVideo: Boolean;
  9720. end;
  9721. IJSDecodedStreamDataDebugInfo = interface(IJSObject)
  9722. ['{7CABC06C-F02D-319B-9E8C-1B4C20E45FA8}']
  9723. function _Getinstance: UnicodeString;
  9724. function _GetaudioFramesWritten: Int64;
  9725. function _GetstreamAudioWritten: Int64;
  9726. function _GetstreamVideoWritten: Int64;
  9727. function _GetnextAudioTime: Int64;
  9728. function _GetlastVideoStartTime: Int64;
  9729. function _GetlastVideoEndTime: Int64;
  9730. function _GethaveSentFinishAudio: Boolean;
  9731. function _GethaveSentFinishVideo: Boolean;
  9732. procedure _Setinstance(const aValue: UnicodeString);
  9733. procedure _SetaudioFramesWritten(const aValue: Int64);
  9734. procedure _SetstreamAudioWritten(const aValue: Int64);
  9735. procedure _SetstreamVideoWritten(const aValue: Int64);
  9736. procedure _SetnextAudioTime(const aValue: Int64);
  9737. procedure _SetlastVideoStartTime(const aValue: Int64);
  9738. procedure _SetlastVideoEndTime(const aValue: Int64);
  9739. procedure _SethaveSentFinishAudio(const aValue: Boolean);
  9740. procedure _SethaveSentFinishVideo(const aValue: Boolean);
  9741. property instance: UnicodeString read _Getinstance write _Setinstance;
  9742. property audioFramesWritten: Int64 read _GetaudioFramesWritten write _SetaudioFramesWritten;
  9743. property streamAudioWritten: Int64 read _GetstreamAudioWritten write _SetstreamAudioWritten;
  9744. property streamVideoWritten: Int64 read _GetstreamVideoWritten write _SetstreamVideoWritten;
  9745. property nextAudioTime: Int64 read _GetnextAudioTime write _SetnextAudioTime;
  9746. property lastVideoStartTime: Int64 read _GetlastVideoStartTime write _SetlastVideoStartTime;
  9747. property lastVideoEndTime: Int64 read _GetlastVideoEndTime write _SetlastVideoEndTime;
  9748. property haveSentFinishAudio: Boolean read _GethaveSentFinishAudio write _SethaveSentFinishAudio;
  9749. property haveSentFinishVideo: Boolean read _GethaveSentFinishVideo write _SethaveSentFinishVideo;
  9750. end;
  9751. TJSDecodedStreamDataDebugInfo = class(TJSObject,IJSDecodedStreamDataDebugInfo)
  9752. Protected
  9753. function _Getinstance: UnicodeString;
  9754. function _GetaudioFramesWritten: Int64;
  9755. function _GetstreamAudioWritten: Int64;
  9756. function _GetstreamVideoWritten: Int64;
  9757. function _GetnextAudioTime: Int64;
  9758. function _GetlastVideoStartTime: Int64;
  9759. function _GetlastVideoEndTime: Int64;
  9760. function _GethaveSentFinishAudio: Boolean;
  9761. function _GethaveSentFinishVideo: Boolean;
  9762. procedure _Setinstance(const aValue: UnicodeString);
  9763. procedure _SetaudioFramesWritten(const aValue: Int64);
  9764. procedure _SetstreamAudioWritten(const aValue: Int64);
  9765. procedure _SetstreamVideoWritten(const aValue: Int64);
  9766. procedure _SetnextAudioTime(const aValue: Int64);
  9767. procedure _SetlastVideoStartTime(const aValue: Int64);
  9768. procedure _SetlastVideoEndTime(const aValue: Int64);
  9769. procedure _SethaveSentFinishAudio(const aValue: Boolean);
  9770. procedure _SethaveSentFinishVideo(const aValue: Boolean);
  9771. Public
  9772. class function JSClassName: UnicodeString; override;
  9773. class function Cast(const Intf: IJSObject): IJSDecodedStreamDataDebugInfo;
  9774. property instance: UnicodeString read _Getinstance write _Setinstance;
  9775. property audioFramesWritten: Int64 read _GetaudioFramesWritten write _SetaudioFramesWritten;
  9776. property streamAudioWritten: Int64 read _GetstreamAudioWritten write _SetstreamAudioWritten;
  9777. property streamVideoWritten: Int64 read _GetstreamVideoWritten write _SetstreamVideoWritten;
  9778. property nextAudioTime: Int64 read _GetnextAudioTime write _SetnextAudioTime;
  9779. property lastVideoStartTime: Int64 read _GetlastVideoStartTime write _SetlastVideoStartTime;
  9780. property lastVideoEndTime: Int64 read _GetlastVideoEndTime write _SetlastVideoEndTime;
  9781. property haveSentFinishAudio: Boolean read _GethaveSentFinishAudio write _SethaveSentFinishAudio;
  9782. property haveSentFinishVideo: Boolean read _GethaveSentFinishVideo write _SethaveSentFinishVideo;
  9783. end;
  9784. { --------------------------------------------------------------------
  9785. TJSDecodedStreamDebugInfo
  9786. --------------------------------------------------------------------}
  9787. TJSDecodedStreamDebugInfoRec = record
  9788. instance: UnicodeString;
  9789. startTime: Int64;
  9790. lastOutputTime: Int64;
  9791. playing: LongInt;
  9792. lastAudio: Int64;
  9793. audioQueueFinished: Boolean;
  9794. audioQueueSize: LongInt;
  9795. data: TJSDecodedStreamDataDebugInfo;
  9796. end;
  9797. IJSDecodedStreamDebugInfo = interface(IJSObject)
  9798. ['{D65CDA94-551D-37C4-99CE-941674D3D7AD}']
  9799. function _Getinstance: UnicodeString;
  9800. function _GetstartTime: Int64;
  9801. function _GetlastOutputTime: Int64;
  9802. function _Getplaying: LongInt;
  9803. function _GetlastAudio: Int64;
  9804. function _GetaudioQueueFinished: Boolean;
  9805. function _GetaudioQueueSize: LongInt;
  9806. function _Getdata: TJSDecodedStreamDataDebugInfo;
  9807. procedure _Setinstance(const aValue: UnicodeString);
  9808. procedure _SetstartTime(const aValue: Int64);
  9809. procedure _SetlastOutputTime(const aValue: Int64);
  9810. procedure _Setplaying(const aValue: LongInt);
  9811. procedure _SetlastAudio(const aValue: Int64);
  9812. procedure _SetaudioQueueFinished(const aValue: Boolean);
  9813. procedure _SetaudioQueueSize(const aValue: LongInt);
  9814. procedure _Setdata(const aValue: TJSDecodedStreamDataDebugInfo);
  9815. property instance: UnicodeString read _Getinstance write _Setinstance;
  9816. property startTime: Int64 read _GetstartTime write _SetstartTime;
  9817. property lastOutputTime: Int64 read _GetlastOutputTime write _SetlastOutputTime;
  9818. property playing: LongInt read _Getplaying write _Setplaying;
  9819. property lastAudio: Int64 read _GetlastAudio write _SetlastAudio;
  9820. property audioQueueFinished: Boolean read _GetaudioQueueFinished write _SetaudioQueueFinished;
  9821. property audioQueueSize: LongInt read _GetaudioQueueSize write _SetaudioQueueSize;
  9822. property data: TJSDecodedStreamDataDebugInfo read _Getdata write _Setdata;
  9823. end;
  9824. TJSDecodedStreamDebugInfo = class(TJSObject,IJSDecodedStreamDebugInfo)
  9825. Protected
  9826. function _Getinstance: UnicodeString;
  9827. function _GetstartTime: Int64;
  9828. function _GetlastOutputTime: Int64;
  9829. function _Getplaying: LongInt;
  9830. function _GetlastAudio: Int64;
  9831. function _GetaudioQueueFinished: Boolean;
  9832. function _GetaudioQueueSize: LongInt;
  9833. function _Getdata: TJSDecodedStreamDataDebugInfo;
  9834. procedure _Setinstance(const aValue: UnicodeString);
  9835. procedure _SetstartTime(const aValue: Int64);
  9836. procedure _SetlastOutputTime(const aValue: Int64);
  9837. procedure _Setplaying(const aValue: LongInt);
  9838. procedure _SetlastAudio(const aValue: Int64);
  9839. procedure _SetaudioQueueFinished(const aValue: Boolean);
  9840. procedure _SetaudioQueueSize(const aValue: LongInt);
  9841. procedure _Setdata(const aValue: TJSDecodedStreamDataDebugInfo);
  9842. Public
  9843. class function JSClassName: UnicodeString; override;
  9844. class function Cast(const Intf: IJSObject): IJSDecodedStreamDebugInfo;
  9845. property instance: UnicodeString read _Getinstance write _Setinstance;
  9846. property startTime: Int64 read _GetstartTime write _SetstartTime;
  9847. property lastOutputTime: Int64 read _GetlastOutputTime write _SetlastOutputTime;
  9848. property playing: LongInt read _Getplaying write _Setplaying;
  9849. property lastAudio: Int64 read _GetlastAudio write _SetlastAudio;
  9850. property audioQueueFinished: Boolean read _GetaudioQueueFinished write _SetaudioQueueFinished;
  9851. property audioQueueSize: LongInt read _GetaudioQueueSize write _SetaudioQueueSize;
  9852. property data: TJSDecodedStreamDataDebugInfo read _Getdata write _Setdata;
  9853. end;
  9854. { --------------------------------------------------------------------
  9855. TJSMediaSinkDebugInfo
  9856. --------------------------------------------------------------------}
  9857. TJSMediaSinkDebugInfoRec = record
  9858. audioSinkWrapper: TJSAudioSinkWrapperDebugInfo;
  9859. videoSink: TJSVideoSinkDebugInfo;
  9860. decodedStream: TJSDecodedStreamDebugInfo;
  9861. end;
  9862. IJSMediaSinkDebugInfo = interface(IJSObject)
  9863. ['{137DA1B5-A127-3A7E-8B9B-67E22746036C}']
  9864. function _GetaudioSinkWrapper: TJSAudioSinkWrapperDebugInfo;
  9865. function _GetvideoSink: TJSVideoSinkDebugInfo;
  9866. function _GetdecodedStream: TJSDecodedStreamDebugInfo;
  9867. procedure _SetaudioSinkWrapper(const aValue: TJSAudioSinkWrapperDebugInfo);
  9868. procedure _SetvideoSink(const aValue: TJSVideoSinkDebugInfo);
  9869. procedure _SetdecodedStream(const aValue: TJSDecodedStreamDebugInfo);
  9870. property audioSinkWrapper: TJSAudioSinkWrapperDebugInfo read _GetaudioSinkWrapper write _SetaudioSinkWrapper;
  9871. property videoSink: TJSVideoSinkDebugInfo read _GetvideoSink write _SetvideoSink;
  9872. property decodedStream: TJSDecodedStreamDebugInfo read _GetdecodedStream write _SetdecodedStream;
  9873. end;
  9874. TJSMediaSinkDebugInfo = class(TJSObject,IJSMediaSinkDebugInfo)
  9875. Protected
  9876. function _GetaudioSinkWrapper: TJSAudioSinkWrapperDebugInfo;
  9877. function _GetvideoSink: TJSVideoSinkDebugInfo;
  9878. function _GetdecodedStream: TJSDecodedStreamDebugInfo;
  9879. procedure _SetaudioSinkWrapper(const aValue: TJSAudioSinkWrapperDebugInfo);
  9880. procedure _SetvideoSink(const aValue: TJSVideoSinkDebugInfo);
  9881. procedure _SetdecodedStream(const aValue: TJSDecodedStreamDebugInfo);
  9882. Public
  9883. class function JSClassName: UnicodeString; override;
  9884. class function Cast(const Intf: IJSObject): IJSMediaSinkDebugInfo;
  9885. property audioSinkWrapper: TJSAudioSinkWrapperDebugInfo read _GetaudioSinkWrapper write _SetaudioSinkWrapper;
  9886. property videoSink: TJSVideoSinkDebugInfo read _GetvideoSink write _SetvideoSink;
  9887. property decodedStream: TJSDecodedStreamDebugInfo read _GetdecodedStream write _SetdecodedStream;
  9888. end;
  9889. { --------------------------------------------------------------------
  9890. TJSMediaDecoderStateMachineDecodingStateDebugInfo
  9891. --------------------------------------------------------------------}
  9892. TJSMediaDecoderStateMachineDecodingStateDebugInfoRec = record
  9893. isPrerolling: Boolean;
  9894. end;
  9895. IJSMediaDecoderStateMachineDecodingStateDebugInfo = interface(IJSObject)
  9896. ['{B2F493E9-F38A-3F1F-B357-96CBD0A12237}']
  9897. function _GetisPrerolling: Boolean;
  9898. procedure _SetisPrerolling(const aValue: Boolean);
  9899. property isPrerolling: Boolean read _GetisPrerolling write _SetisPrerolling;
  9900. end;
  9901. TJSMediaDecoderStateMachineDecodingStateDebugInfo = class(TJSObject,IJSMediaDecoderStateMachineDecodingStateDebugInfo)
  9902. Protected
  9903. function _GetisPrerolling: Boolean;
  9904. procedure _SetisPrerolling(const aValue: Boolean);
  9905. Public
  9906. class function JSClassName: UnicodeString; override;
  9907. class function Cast(const Intf: IJSObject): IJSMediaDecoderStateMachineDecodingStateDebugInfo;
  9908. property isPrerolling: Boolean read _GetisPrerolling write _SetisPrerolling;
  9909. end;
  9910. { --------------------------------------------------------------------
  9911. TJSMediaDecoderStateMachineDebugInfo
  9912. --------------------------------------------------------------------}
  9913. TJSMediaDecoderStateMachineDebugInfoRec = record
  9914. duration: Int64;
  9915. mediaTime: Int64;
  9916. clock: Int64;
  9917. state: UnicodeString;
  9918. playState: LongInt;
  9919. sentFirstFrameLoadedEvent: Boolean;
  9920. isPlaying: Boolean;
  9921. audioRequestStatus: UnicodeString;
  9922. videoRequestStatus: UnicodeString;
  9923. decodedAudioEndTime: Int64;
  9924. decodedVideoEndTime: Int64;
  9925. audioCompleted: Boolean;
  9926. videoCompleted: Boolean;
  9927. stateObj: TJSMediaDecoderStateMachineDecodingStateDebugInfo;
  9928. mediaSink: TJSMediaSinkDebugInfo;
  9929. totalBufferingTimeMs: Double;
  9930. end;
  9931. IJSMediaDecoderStateMachineDebugInfo = interface(IJSObject)
  9932. ['{6303109D-DA55-3B9B-94FF-4998A381C236}']
  9933. function _Getduration: Int64;
  9934. function _GetmediaTime: Int64;
  9935. function _Getclock: Int64;
  9936. function _Getstate: UnicodeString;
  9937. function _GetplayState: LongInt;
  9938. function _GetsentFirstFrameLoadedEvent: Boolean;
  9939. function _GetisPlaying: Boolean;
  9940. function _GetaudioRequestStatus: UnicodeString;
  9941. function _GetvideoRequestStatus: UnicodeString;
  9942. function _GetdecodedAudioEndTime: Int64;
  9943. function _GetdecodedVideoEndTime: Int64;
  9944. function _GetaudioCompleted: Boolean;
  9945. function _GetvideoCompleted: Boolean;
  9946. function _GetstateObj: TJSMediaDecoderStateMachineDecodingStateDebugInfo;
  9947. function _GetmediaSink: TJSMediaSinkDebugInfo;
  9948. function _GettotalBufferingTimeMs: Double;
  9949. procedure _Setduration(const aValue: Int64);
  9950. procedure _SetmediaTime(const aValue: Int64);
  9951. procedure _Setclock(const aValue: Int64);
  9952. procedure _Setstate(const aValue: UnicodeString);
  9953. procedure _SetplayState(const aValue: LongInt);
  9954. procedure _SetsentFirstFrameLoadedEvent(const aValue: Boolean);
  9955. procedure _SetisPlaying(const aValue: Boolean);
  9956. procedure _SetaudioRequestStatus(const aValue: UnicodeString);
  9957. procedure _SetvideoRequestStatus(const aValue: UnicodeString);
  9958. procedure _SetdecodedAudioEndTime(const aValue: Int64);
  9959. procedure _SetdecodedVideoEndTime(const aValue: Int64);
  9960. procedure _SetaudioCompleted(const aValue: Boolean);
  9961. procedure _SetvideoCompleted(const aValue: Boolean);
  9962. procedure _SetstateObj(const aValue: TJSMediaDecoderStateMachineDecodingStateDebugInfo);
  9963. procedure _SetmediaSink(const aValue: TJSMediaSinkDebugInfo);
  9964. procedure _SettotalBufferingTimeMs(const aValue: Double);
  9965. property duration: Int64 read _Getduration write _Setduration;
  9966. property mediaTime: Int64 read _GetmediaTime write _SetmediaTime;
  9967. property clock: Int64 read _Getclock write _Setclock;
  9968. property state: UnicodeString read _Getstate write _Setstate;
  9969. property playState: LongInt read _GetplayState write _SetplayState;
  9970. property sentFirstFrameLoadedEvent: Boolean read _GetsentFirstFrameLoadedEvent write _SetsentFirstFrameLoadedEvent;
  9971. property isPlaying: Boolean read _GetisPlaying write _SetisPlaying;
  9972. property audioRequestStatus: UnicodeString read _GetaudioRequestStatus write _SetaudioRequestStatus;
  9973. property videoRequestStatus: UnicodeString read _GetvideoRequestStatus write _SetvideoRequestStatus;
  9974. property decodedAudioEndTime: Int64 read _GetdecodedAudioEndTime write _SetdecodedAudioEndTime;
  9975. property decodedVideoEndTime: Int64 read _GetdecodedVideoEndTime write _SetdecodedVideoEndTime;
  9976. property audioCompleted: Boolean read _GetaudioCompleted write _SetaudioCompleted;
  9977. property videoCompleted: Boolean read _GetvideoCompleted write _SetvideoCompleted;
  9978. property stateObj: TJSMediaDecoderStateMachineDecodingStateDebugInfo read _GetstateObj write _SetstateObj;
  9979. property mediaSink: TJSMediaSinkDebugInfo read _GetmediaSink write _SetmediaSink;
  9980. property totalBufferingTimeMs: Double read _GettotalBufferingTimeMs write _SettotalBufferingTimeMs;
  9981. end;
  9982. TJSMediaDecoderStateMachineDebugInfo = class(TJSObject,IJSMediaDecoderStateMachineDebugInfo)
  9983. Protected
  9984. function _Getduration: Int64;
  9985. function _GetmediaTime: Int64;
  9986. function _Getclock: Int64;
  9987. function _Getstate: UnicodeString;
  9988. function _GetplayState: LongInt;
  9989. function _GetsentFirstFrameLoadedEvent: Boolean;
  9990. function _GetisPlaying: Boolean;
  9991. function _GetaudioRequestStatus: UnicodeString;
  9992. function _GetvideoRequestStatus: UnicodeString;
  9993. function _GetdecodedAudioEndTime: Int64;
  9994. function _GetdecodedVideoEndTime: Int64;
  9995. function _GetaudioCompleted: Boolean;
  9996. function _GetvideoCompleted: Boolean;
  9997. function _GetstateObj: TJSMediaDecoderStateMachineDecodingStateDebugInfo;
  9998. function _GetmediaSink: TJSMediaSinkDebugInfo;
  9999. function _GettotalBufferingTimeMs: Double;
  10000. procedure _Setduration(const aValue: Int64);
  10001. procedure _SetmediaTime(const aValue: Int64);
  10002. procedure _Setclock(const aValue: Int64);
  10003. procedure _Setstate(const aValue: UnicodeString);
  10004. procedure _SetplayState(const aValue: LongInt);
  10005. procedure _SetsentFirstFrameLoadedEvent(const aValue: Boolean);
  10006. procedure _SetisPlaying(const aValue: Boolean);
  10007. procedure _SetaudioRequestStatus(const aValue: UnicodeString);
  10008. procedure _SetvideoRequestStatus(const aValue: UnicodeString);
  10009. procedure _SetdecodedAudioEndTime(const aValue: Int64);
  10010. procedure _SetdecodedVideoEndTime(const aValue: Int64);
  10011. procedure _SetaudioCompleted(const aValue: Boolean);
  10012. procedure _SetvideoCompleted(const aValue: Boolean);
  10013. procedure _SetstateObj(const aValue: TJSMediaDecoderStateMachineDecodingStateDebugInfo);
  10014. procedure _SetmediaSink(const aValue: TJSMediaSinkDebugInfo);
  10015. procedure _SettotalBufferingTimeMs(const aValue: Double);
  10016. Public
  10017. class function JSClassName: UnicodeString; override;
  10018. class function Cast(const Intf: IJSObject): IJSMediaDecoderStateMachineDebugInfo;
  10019. property duration: Int64 read _Getduration write _Setduration;
  10020. property mediaTime: Int64 read _GetmediaTime write _SetmediaTime;
  10021. property clock: Int64 read _Getclock write _Setclock;
  10022. property state: UnicodeString read _Getstate write _Setstate;
  10023. property playState: LongInt read _GetplayState write _SetplayState;
  10024. property sentFirstFrameLoadedEvent: Boolean read _GetsentFirstFrameLoadedEvent write _SetsentFirstFrameLoadedEvent;
  10025. property isPlaying: Boolean read _GetisPlaying write _SetisPlaying;
  10026. property audioRequestStatus: UnicodeString read _GetaudioRequestStatus write _SetaudioRequestStatus;
  10027. property videoRequestStatus: UnicodeString read _GetvideoRequestStatus write _SetvideoRequestStatus;
  10028. property decodedAudioEndTime: Int64 read _GetdecodedAudioEndTime write _SetdecodedAudioEndTime;
  10029. property decodedVideoEndTime: Int64 read _GetdecodedVideoEndTime write _SetdecodedVideoEndTime;
  10030. property audioCompleted: Boolean read _GetaudioCompleted write _SetaudioCompleted;
  10031. property videoCompleted: Boolean read _GetvideoCompleted write _SetvideoCompleted;
  10032. property stateObj: TJSMediaDecoderStateMachineDecodingStateDebugInfo read _GetstateObj write _SetstateObj;
  10033. property mediaSink: TJSMediaSinkDebugInfo read _GetmediaSink write _SetmediaSink;
  10034. property totalBufferingTimeMs: Double read _GettotalBufferingTimeMs write _SettotalBufferingTimeMs;
  10035. end;
  10036. { --------------------------------------------------------------------
  10037. TJSMediaStateDebugInfo
  10038. --------------------------------------------------------------------}
  10039. TJSMediaStateDebugInfoRec = record
  10040. needInput: Boolean;
  10041. hasPromise: Boolean;
  10042. waitingPromise: Boolean;
  10043. hasDemuxRequest: Boolean;
  10044. demuxQueueSize: LongInt;
  10045. hasDecoder: Boolean;
  10046. timeTreshold: Double;
  10047. timeTresholdHasSeeked: Boolean;
  10048. numSamplesInput: Int64;
  10049. numSamplesOutput: Int64;
  10050. queueSize: LongInt;
  10051. pending: LongInt;
  10052. waitingForData: Boolean;
  10053. demuxEOS: LongInt;
  10054. drainState: LongInt;
  10055. waitingForKey: Boolean;
  10056. lastStreamSourceID: Int64;
  10057. end;
  10058. IJSMediaStateDebugInfo = interface(IJSObject)
  10059. ['{8551758C-C7FA-3436-BF44-92EC46282C0E}']
  10060. function _GetneedInput: Boolean;
  10061. function _GethasPromise: Boolean;
  10062. function _GetwaitingPromise: Boolean;
  10063. function _GethasDemuxRequest: Boolean;
  10064. function _GetdemuxQueueSize: LongInt;
  10065. function _GethasDecoder: Boolean;
  10066. function _GettimeTreshold: Double;
  10067. function _GettimeTresholdHasSeeked: Boolean;
  10068. function _GetnumSamplesInput: Int64;
  10069. function _GetnumSamplesOutput: Int64;
  10070. function _GetqueueSize: LongInt;
  10071. function _Getpending: LongInt;
  10072. function _GetwaitingForData: Boolean;
  10073. function _GetdemuxEOS: LongInt;
  10074. function _GetdrainState: LongInt;
  10075. function _GetwaitingForKey: Boolean;
  10076. function _GetlastStreamSourceID: Int64;
  10077. procedure _SetneedInput(const aValue: Boolean);
  10078. procedure _SethasPromise(const aValue: Boolean);
  10079. procedure _SetwaitingPromise(const aValue: Boolean);
  10080. procedure _SethasDemuxRequest(const aValue: Boolean);
  10081. procedure _SetdemuxQueueSize(const aValue: LongInt);
  10082. procedure _SethasDecoder(const aValue: Boolean);
  10083. procedure _SettimeTreshold(const aValue: Double);
  10084. procedure _SettimeTresholdHasSeeked(const aValue: Boolean);
  10085. procedure _SetnumSamplesInput(const aValue: Int64);
  10086. procedure _SetnumSamplesOutput(const aValue: Int64);
  10087. procedure _SetqueueSize(const aValue: LongInt);
  10088. procedure _Setpending(const aValue: LongInt);
  10089. procedure _SetwaitingForData(const aValue: Boolean);
  10090. procedure _SetdemuxEOS(const aValue: LongInt);
  10091. procedure _SetdrainState(const aValue: LongInt);
  10092. procedure _SetwaitingForKey(const aValue: Boolean);
  10093. procedure _SetlastStreamSourceID(const aValue: Int64);
  10094. property needInput: Boolean read _GetneedInput write _SetneedInput;
  10095. property hasPromise: Boolean read _GethasPromise write _SethasPromise;
  10096. property waitingPromise: Boolean read _GetwaitingPromise write _SetwaitingPromise;
  10097. property hasDemuxRequest: Boolean read _GethasDemuxRequest write _SethasDemuxRequest;
  10098. property demuxQueueSize: LongInt read _GetdemuxQueueSize write _SetdemuxQueueSize;
  10099. property hasDecoder: Boolean read _GethasDecoder write _SethasDecoder;
  10100. property timeTreshold: Double read _GettimeTreshold write _SettimeTreshold;
  10101. property timeTresholdHasSeeked: Boolean read _GettimeTresholdHasSeeked write _SettimeTresholdHasSeeked;
  10102. property numSamplesInput: Int64 read _GetnumSamplesInput write _SetnumSamplesInput;
  10103. property numSamplesOutput: Int64 read _GetnumSamplesOutput write _SetnumSamplesOutput;
  10104. property queueSize: LongInt read _GetqueueSize write _SetqueueSize;
  10105. property pending: LongInt read _Getpending write _Setpending;
  10106. property waitingForData: Boolean read _GetwaitingForData write _SetwaitingForData;
  10107. property demuxEOS: LongInt read _GetdemuxEOS write _SetdemuxEOS;
  10108. property drainState: LongInt read _GetdrainState write _SetdrainState;
  10109. property waitingForKey: Boolean read _GetwaitingForKey write _SetwaitingForKey;
  10110. property lastStreamSourceID: Int64 read _GetlastStreamSourceID write _SetlastStreamSourceID;
  10111. end;
  10112. TJSMediaStateDebugInfo = class(TJSObject,IJSMediaStateDebugInfo)
  10113. Protected
  10114. function _GetneedInput: Boolean;
  10115. function _GethasPromise: Boolean;
  10116. function _GetwaitingPromise: Boolean;
  10117. function _GethasDemuxRequest: Boolean;
  10118. function _GetdemuxQueueSize: LongInt;
  10119. function _GethasDecoder: Boolean;
  10120. function _GettimeTreshold: Double;
  10121. function _GettimeTresholdHasSeeked: Boolean;
  10122. function _GetnumSamplesInput: Int64;
  10123. function _GetnumSamplesOutput: Int64;
  10124. function _GetqueueSize: LongInt;
  10125. function _Getpending: LongInt;
  10126. function _GetwaitingForData: Boolean;
  10127. function _GetdemuxEOS: LongInt;
  10128. function _GetdrainState: LongInt;
  10129. function _GetwaitingForKey: Boolean;
  10130. function _GetlastStreamSourceID: Int64;
  10131. procedure _SetneedInput(const aValue: Boolean);
  10132. procedure _SethasPromise(const aValue: Boolean);
  10133. procedure _SetwaitingPromise(const aValue: Boolean);
  10134. procedure _SethasDemuxRequest(const aValue: Boolean);
  10135. procedure _SetdemuxQueueSize(const aValue: LongInt);
  10136. procedure _SethasDecoder(const aValue: Boolean);
  10137. procedure _SettimeTreshold(const aValue: Double);
  10138. procedure _SettimeTresholdHasSeeked(const aValue: Boolean);
  10139. procedure _SetnumSamplesInput(const aValue: Int64);
  10140. procedure _SetnumSamplesOutput(const aValue: Int64);
  10141. procedure _SetqueueSize(const aValue: LongInt);
  10142. procedure _Setpending(const aValue: LongInt);
  10143. procedure _SetwaitingForData(const aValue: Boolean);
  10144. procedure _SetdemuxEOS(const aValue: LongInt);
  10145. procedure _SetdrainState(const aValue: LongInt);
  10146. procedure _SetwaitingForKey(const aValue: Boolean);
  10147. procedure _SetlastStreamSourceID(const aValue: Int64);
  10148. Public
  10149. class function JSClassName: UnicodeString; override;
  10150. class function Cast(const Intf: IJSObject): IJSMediaStateDebugInfo;
  10151. property needInput: Boolean read _GetneedInput write _SetneedInput;
  10152. property hasPromise: Boolean read _GethasPromise write _SethasPromise;
  10153. property waitingPromise: Boolean read _GetwaitingPromise write _SetwaitingPromise;
  10154. property hasDemuxRequest: Boolean read _GethasDemuxRequest write _SethasDemuxRequest;
  10155. property demuxQueueSize: LongInt read _GetdemuxQueueSize write _SetdemuxQueueSize;
  10156. property hasDecoder: Boolean read _GethasDecoder write _SethasDecoder;
  10157. property timeTreshold: Double read _GettimeTreshold write _SettimeTreshold;
  10158. property timeTresholdHasSeeked: Boolean read _GettimeTresholdHasSeeked write _SettimeTresholdHasSeeked;
  10159. property numSamplesInput: Int64 read _GetnumSamplesInput write _SetnumSamplesInput;
  10160. property numSamplesOutput: Int64 read _GetnumSamplesOutput write _SetnumSamplesOutput;
  10161. property queueSize: LongInt read _GetqueueSize write _SetqueueSize;
  10162. property pending: LongInt read _Getpending write _Setpending;
  10163. property waitingForData: Boolean read _GetwaitingForData write _SetwaitingForData;
  10164. property demuxEOS: LongInt read _GetdemuxEOS write _SetdemuxEOS;
  10165. property drainState: LongInt read _GetdrainState write _SetdrainState;
  10166. property waitingForKey: Boolean read _GetwaitingForKey write _SetwaitingForKey;
  10167. property lastStreamSourceID: Int64 read _GetlastStreamSourceID write _SetlastStreamSourceID;
  10168. end;
  10169. { --------------------------------------------------------------------
  10170. TJSMediaFrameStats
  10171. --------------------------------------------------------------------}
  10172. TJSMediaFrameStatsRec = record
  10173. droppedDecodedFrames: Int64;
  10174. droppedSinkFrames: Int64;
  10175. droppedCompositorFrames: Int64;
  10176. end;
  10177. IJSMediaFrameStats = interface(IJSObject)
  10178. ['{2035A035-1215-3D6D-978A-33197DBC9DE4}']
  10179. function _GetdroppedDecodedFrames: Int64;
  10180. function _GetdroppedSinkFrames: Int64;
  10181. function _GetdroppedCompositorFrames: Int64;
  10182. procedure _SetdroppedDecodedFrames(const aValue: Int64);
  10183. procedure _SetdroppedSinkFrames(const aValue: Int64);
  10184. procedure _SetdroppedCompositorFrames(const aValue: Int64);
  10185. property droppedDecodedFrames: Int64 read _GetdroppedDecodedFrames write _SetdroppedDecodedFrames;
  10186. property droppedSinkFrames: Int64 read _GetdroppedSinkFrames write _SetdroppedSinkFrames;
  10187. property droppedCompositorFrames: Int64 read _GetdroppedCompositorFrames write _SetdroppedCompositorFrames;
  10188. end;
  10189. TJSMediaFrameStats = class(TJSObject,IJSMediaFrameStats)
  10190. Protected
  10191. function _GetdroppedDecodedFrames: Int64;
  10192. function _GetdroppedSinkFrames: Int64;
  10193. function _GetdroppedCompositorFrames: Int64;
  10194. procedure _SetdroppedDecodedFrames(const aValue: Int64);
  10195. procedure _SetdroppedSinkFrames(const aValue: Int64);
  10196. procedure _SetdroppedCompositorFrames(const aValue: Int64);
  10197. Public
  10198. class function JSClassName: UnicodeString; override;
  10199. class function Cast(const Intf: IJSObject): IJSMediaFrameStats;
  10200. property droppedDecodedFrames: Int64 read _GetdroppedDecodedFrames write _SetdroppedDecodedFrames;
  10201. property droppedSinkFrames: Int64 read _GetdroppedSinkFrames write _SetdroppedSinkFrames;
  10202. property droppedCompositorFrames: Int64 read _GetdroppedCompositorFrames write _SetdroppedCompositorFrames;
  10203. end;
  10204. { --------------------------------------------------------------------
  10205. TJSMediaFormatReaderDebugInfo
  10206. --------------------------------------------------------------------}
  10207. TJSMediaFormatReaderDebugInfoRec = record
  10208. videoType: UnicodeString;
  10209. videoDecoderName: UnicodeString;
  10210. videoWidth: LongInt;
  10211. videoHeight: LongInt;
  10212. videoRate: Double;
  10213. audioType: UnicodeString;
  10214. audioDecoderName: UnicodeString;
  10215. videoHardwareAccelerated: Boolean;
  10216. videoNumSamplesOutputTotal: Int64;
  10217. videoNumSamplesSkippedTotal: Int64;
  10218. audioChannels: LongInt;
  10219. audioRate: Double;
  10220. audioFramesDecoded: Int64;
  10221. audioState: TJSMediaStateDebugInfo;
  10222. videoState: TJSMediaStateDebugInfo;
  10223. frameStats: TJSMediaFrameStats;
  10224. totalReadMetadataTimeMs: Double;
  10225. totalWaitingForVideoDataTimeMs: Double;
  10226. end;
  10227. IJSMediaFormatReaderDebugInfo = interface(IJSObject)
  10228. ['{FE41ECB0-BF43-317C-BA99-E3107FA77AD9}']
  10229. function _GetvideoType: UnicodeString;
  10230. function _GetvideoDecoderName: UnicodeString;
  10231. function _GetvideoWidth: LongInt;
  10232. function _GetvideoHeight: LongInt;
  10233. function _GetvideoRate: Double;
  10234. function _GetaudioType: UnicodeString;
  10235. function _GetaudioDecoderName: UnicodeString;
  10236. function _GetvideoHardwareAccelerated: Boolean;
  10237. function _GetvideoNumSamplesOutputTotal: Int64;
  10238. function _GetvideoNumSamplesSkippedTotal: Int64;
  10239. function _GetaudioChannels: LongInt;
  10240. function _GetaudioRate: Double;
  10241. function _GetaudioFramesDecoded: Int64;
  10242. function _GetaudioState: TJSMediaStateDebugInfo;
  10243. function _GetvideoState: TJSMediaStateDebugInfo;
  10244. function _GetframeStats: TJSMediaFrameStats;
  10245. function _GettotalReadMetadataTimeMs: Double;
  10246. function _GettotalWaitingForVideoDataTimeMs: Double;
  10247. procedure _SetvideoType(const aValue: UnicodeString);
  10248. procedure _SetvideoDecoderName(const aValue: UnicodeString);
  10249. procedure _SetvideoWidth(const aValue: LongInt);
  10250. procedure _SetvideoHeight(const aValue: LongInt);
  10251. procedure _SetvideoRate(const aValue: Double);
  10252. procedure _SetaudioType(const aValue: UnicodeString);
  10253. procedure _SetaudioDecoderName(const aValue: UnicodeString);
  10254. procedure _SetvideoHardwareAccelerated(const aValue: Boolean);
  10255. procedure _SetvideoNumSamplesOutputTotal(const aValue: Int64);
  10256. procedure _SetvideoNumSamplesSkippedTotal(const aValue: Int64);
  10257. procedure _SetaudioChannels(const aValue: LongInt);
  10258. procedure _SetaudioRate(const aValue: Double);
  10259. procedure _SetaudioFramesDecoded(const aValue: Int64);
  10260. procedure _SetaudioState(const aValue: TJSMediaStateDebugInfo);
  10261. procedure _SetvideoState(const aValue: TJSMediaStateDebugInfo);
  10262. procedure _SetframeStats(const aValue: TJSMediaFrameStats);
  10263. procedure _SettotalReadMetadataTimeMs(const aValue: Double);
  10264. procedure _SettotalWaitingForVideoDataTimeMs(const aValue: Double);
  10265. property videoType: UnicodeString read _GetvideoType write _SetvideoType;
  10266. property videoDecoderName: UnicodeString read _GetvideoDecoderName write _SetvideoDecoderName;
  10267. property videoWidth: LongInt read _GetvideoWidth write _SetvideoWidth;
  10268. property videoHeight: LongInt read _GetvideoHeight write _SetvideoHeight;
  10269. property videoRate: Double read _GetvideoRate write _SetvideoRate;
  10270. property audioType: UnicodeString read _GetaudioType write _SetaudioType;
  10271. property audioDecoderName: UnicodeString read _GetaudioDecoderName write _SetaudioDecoderName;
  10272. property videoHardwareAccelerated: Boolean read _GetvideoHardwareAccelerated write _SetvideoHardwareAccelerated;
  10273. property videoNumSamplesOutputTotal: Int64 read _GetvideoNumSamplesOutputTotal write _SetvideoNumSamplesOutputTotal;
  10274. property videoNumSamplesSkippedTotal: Int64 read _GetvideoNumSamplesSkippedTotal write _SetvideoNumSamplesSkippedTotal;
  10275. property audioChannels: LongInt read _GetaudioChannels write _SetaudioChannels;
  10276. property audioRate: Double read _GetaudioRate write _SetaudioRate;
  10277. property audioFramesDecoded: Int64 read _GetaudioFramesDecoded write _SetaudioFramesDecoded;
  10278. property audioState: TJSMediaStateDebugInfo read _GetaudioState write _SetaudioState;
  10279. property videoState: TJSMediaStateDebugInfo read _GetvideoState write _SetvideoState;
  10280. property frameStats: TJSMediaFrameStats read _GetframeStats write _SetframeStats;
  10281. property totalReadMetadataTimeMs: Double read _GettotalReadMetadataTimeMs write _SettotalReadMetadataTimeMs;
  10282. property totalWaitingForVideoDataTimeMs: Double read _GettotalWaitingForVideoDataTimeMs write _SettotalWaitingForVideoDataTimeMs;
  10283. end;
  10284. TJSMediaFormatReaderDebugInfo = class(TJSObject,IJSMediaFormatReaderDebugInfo)
  10285. Protected
  10286. function _GetvideoType: UnicodeString;
  10287. function _GetvideoDecoderName: UnicodeString;
  10288. function _GetvideoWidth: LongInt;
  10289. function _GetvideoHeight: LongInt;
  10290. function _GetvideoRate: Double;
  10291. function _GetaudioType: UnicodeString;
  10292. function _GetaudioDecoderName: UnicodeString;
  10293. function _GetvideoHardwareAccelerated: Boolean;
  10294. function _GetvideoNumSamplesOutputTotal: Int64;
  10295. function _GetvideoNumSamplesSkippedTotal: Int64;
  10296. function _GetaudioChannels: LongInt;
  10297. function _GetaudioRate: Double;
  10298. function _GetaudioFramesDecoded: Int64;
  10299. function _GetaudioState: TJSMediaStateDebugInfo;
  10300. function _GetvideoState: TJSMediaStateDebugInfo;
  10301. function _GetframeStats: TJSMediaFrameStats;
  10302. function _GettotalReadMetadataTimeMs: Double;
  10303. function _GettotalWaitingForVideoDataTimeMs: Double;
  10304. procedure _SetvideoType(const aValue: UnicodeString);
  10305. procedure _SetvideoDecoderName(const aValue: UnicodeString);
  10306. procedure _SetvideoWidth(const aValue: LongInt);
  10307. procedure _SetvideoHeight(const aValue: LongInt);
  10308. procedure _SetvideoRate(const aValue: Double);
  10309. procedure _SetaudioType(const aValue: UnicodeString);
  10310. procedure _SetaudioDecoderName(const aValue: UnicodeString);
  10311. procedure _SetvideoHardwareAccelerated(const aValue: Boolean);
  10312. procedure _SetvideoNumSamplesOutputTotal(const aValue: Int64);
  10313. procedure _SetvideoNumSamplesSkippedTotal(const aValue: Int64);
  10314. procedure _SetaudioChannels(const aValue: LongInt);
  10315. procedure _SetaudioRate(const aValue: Double);
  10316. procedure _SetaudioFramesDecoded(const aValue: Int64);
  10317. procedure _SetaudioState(const aValue: TJSMediaStateDebugInfo);
  10318. procedure _SetvideoState(const aValue: TJSMediaStateDebugInfo);
  10319. procedure _SetframeStats(const aValue: TJSMediaFrameStats);
  10320. procedure _SettotalReadMetadataTimeMs(const aValue: Double);
  10321. procedure _SettotalWaitingForVideoDataTimeMs(const aValue: Double);
  10322. Public
  10323. class function JSClassName: UnicodeString; override;
  10324. class function Cast(const Intf: IJSObject): IJSMediaFormatReaderDebugInfo;
  10325. property videoType: UnicodeString read _GetvideoType write _SetvideoType;
  10326. property videoDecoderName: UnicodeString read _GetvideoDecoderName write _SetvideoDecoderName;
  10327. property videoWidth: LongInt read _GetvideoWidth write _SetvideoWidth;
  10328. property videoHeight: LongInt read _GetvideoHeight write _SetvideoHeight;
  10329. property videoRate: Double read _GetvideoRate write _SetvideoRate;
  10330. property audioType: UnicodeString read _GetaudioType write _SetaudioType;
  10331. property audioDecoderName: UnicodeString read _GetaudioDecoderName write _SetaudioDecoderName;
  10332. property videoHardwareAccelerated: Boolean read _GetvideoHardwareAccelerated write _SetvideoHardwareAccelerated;
  10333. property videoNumSamplesOutputTotal: Int64 read _GetvideoNumSamplesOutputTotal write _SetvideoNumSamplesOutputTotal;
  10334. property videoNumSamplesSkippedTotal: Int64 read _GetvideoNumSamplesSkippedTotal write _SetvideoNumSamplesSkippedTotal;
  10335. property audioChannels: LongInt read _GetaudioChannels write _SetaudioChannels;
  10336. property audioRate: Double read _GetaudioRate write _SetaudioRate;
  10337. property audioFramesDecoded: Int64 read _GetaudioFramesDecoded write _SetaudioFramesDecoded;
  10338. property audioState: TJSMediaStateDebugInfo read _GetaudioState write _SetaudioState;
  10339. property videoState: TJSMediaStateDebugInfo read _GetvideoState write _SetvideoState;
  10340. property frameStats: TJSMediaFrameStats read _GetframeStats write _SetframeStats;
  10341. property totalReadMetadataTimeMs: Double read _GettotalReadMetadataTimeMs write _SettotalReadMetadataTimeMs;
  10342. property totalWaitingForVideoDataTimeMs: Double read _GettotalWaitingForVideoDataTimeMs write _SettotalWaitingForVideoDataTimeMs;
  10343. end;
  10344. { --------------------------------------------------------------------
  10345. TJSBufferRange
  10346. --------------------------------------------------------------------}
  10347. TJSBufferRangeRec = record
  10348. start: Double;
  10349. end_: Double;
  10350. end;
  10351. IJSBufferRange = interface(IJSObject)
  10352. ['{EEDFB066-8EB1-3C48-BDC6-798D04082131}']
  10353. function _Getstart: Double;
  10354. function _Getend_: Double;
  10355. procedure _Setstart(const aValue: Double);
  10356. procedure _Setend_(const aValue: Double);
  10357. property start: Double read _Getstart write _Setstart;
  10358. property end_: Double read _Getend_ write _Setend_;
  10359. end;
  10360. TJSBufferRange = class(TJSObject,IJSBufferRange)
  10361. Protected
  10362. function _Getstart: Double;
  10363. function _Getend_: Double;
  10364. procedure _Setstart(const aValue: Double);
  10365. procedure _Setend_(const aValue: Double);
  10366. Public
  10367. class function JSClassName: UnicodeString; override;
  10368. class function Cast(const Intf: IJSObject): IJSBufferRange;
  10369. property start: Double read _Getstart write _Setstart;
  10370. property end_: Double read _Getend_ write _Setend_;
  10371. end;
  10372. { --------------------------------------------------------------------
  10373. TJSTrackBuffersManagerDebugInfo
  10374. --------------------------------------------------------------------}
  10375. TJSBufferRangeDynArray = IJSArray; // array of BufferRange
  10376. TJSTrackBuffersManagerDebugInfoRec = record
  10377. type_: UnicodeString;
  10378. nextSampleTime: Double;
  10379. numSamples: LongInt;
  10380. bufferSize: LongInt;
  10381. evictable: LongInt;
  10382. nextGetSampleIndex: LongInt;
  10383. nextInsertionIndex: LongInt;
  10384. ranges: TJSBufferRangeDynArray;
  10385. end;
  10386. IJSTrackBuffersManagerDebugInfo = interface(IJSObject)
  10387. ['{9343DC4E-F668-361C-A67A-0215D23B14B6}']
  10388. function _Gettype_: UnicodeString;
  10389. function _GetnextSampleTime: Double;
  10390. function _GetnumSamples: LongInt;
  10391. function _GetbufferSize: LongInt;
  10392. function _Getevictable: LongInt;
  10393. function _GetnextGetSampleIndex: LongInt;
  10394. function _GetnextInsertionIndex: LongInt;
  10395. function _Getranges: TJSBufferRangeDynArray;
  10396. procedure _Settype_(const aValue: UnicodeString);
  10397. procedure _SetnextSampleTime(const aValue: Double);
  10398. procedure _SetnumSamples(const aValue: LongInt);
  10399. procedure _SetbufferSize(const aValue: LongInt);
  10400. procedure _Setevictable(const aValue: LongInt);
  10401. procedure _SetnextGetSampleIndex(const aValue: LongInt);
  10402. procedure _SetnextInsertionIndex(const aValue: LongInt);
  10403. procedure _Setranges(const aValue: TJSBufferRangeDynArray);
  10404. property type_: UnicodeString read _Gettype_ write _Settype_;
  10405. property nextSampleTime: Double read _GetnextSampleTime write _SetnextSampleTime;
  10406. property numSamples: LongInt read _GetnumSamples write _SetnumSamples;
  10407. property bufferSize: LongInt read _GetbufferSize write _SetbufferSize;
  10408. property evictable: LongInt read _Getevictable write _Setevictable;
  10409. property nextGetSampleIndex: LongInt read _GetnextGetSampleIndex write _SetnextGetSampleIndex;
  10410. property nextInsertionIndex: LongInt read _GetnextInsertionIndex write _SetnextInsertionIndex;
  10411. property ranges: TJSBufferRangeDynArray read _Getranges write _Setranges;
  10412. end;
  10413. TJSTrackBuffersManagerDebugInfo = class(TJSObject,IJSTrackBuffersManagerDebugInfo)
  10414. Protected
  10415. function _Gettype_: UnicodeString;
  10416. function _GetnextSampleTime: Double;
  10417. function _GetnumSamples: LongInt;
  10418. function _GetbufferSize: LongInt;
  10419. function _Getevictable: LongInt;
  10420. function _GetnextGetSampleIndex: LongInt;
  10421. function _GetnextInsertionIndex: LongInt;
  10422. function _Getranges: TJSBufferRangeDynArray;
  10423. procedure _Settype_(const aValue: UnicodeString);
  10424. procedure _SetnextSampleTime(const aValue: Double);
  10425. procedure _SetnumSamples(const aValue: LongInt);
  10426. procedure _SetbufferSize(const aValue: LongInt);
  10427. procedure _Setevictable(const aValue: LongInt);
  10428. procedure _SetnextGetSampleIndex(const aValue: LongInt);
  10429. procedure _SetnextInsertionIndex(const aValue: LongInt);
  10430. procedure _Setranges(const aValue: TJSBufferRangeDynArray);
  10431. Public
  10432. class function JSClassName: UnicodeString; override;
  10433. class function Cast(const Intf: IJSObject): IJSTrackBuffersManagerDebugInfo;
  10434. property type_: UnicodeString read _Gettype_ write _Settype_;
  10435. property nextSampleTime: Double read _GetnextSampleTime write _SetnextSampleTime;
  10436. property numSamples: LongInt read _GetnumSamples write _SetnumSamples;
  10437. property bufferSize: LongInt read _GetbufferSize write _SetbufferSize;
  10438. property evictable: LongInt read _Getevictable write _Setevictable;
  10439. property nextGetSampleIndex: LongInt read _GetnextGetSampleIndex write _SetnextGetSampleIndex;
  10440. property nextInsertionIndex: LongInt read _GetnextInsertionIndex write _SetnextInsertionIndex;
  10441. property ranges: TJSBufferRangeDynArray read _Getranges write _Setranges;
  10442. end;
  10443. { --------------------------------------------------------------------
  10444. TJSMediaSourceDemuxerDebugInfo
  10445. --------------------------------------------------------------------}
  10446. TJSMediaSourceDemuxerDebugInfoRec = record
  10447. audioTrack: TJSTrackBuffersManagerDebugInfo;
  10448. videoTrack: TJSTrackBuffersManagerDebugInfo;
  10449. end;
  10450. IJSMediaSourceDemuxerDebugInfo = interface(IJSObject)
  10451. ['{0773A31B-74F0-3728-A008-DB8D1206797F}']
  10452. function _GetaudioTrack: TJSTrackBuffersManagerDebugInfo;
  10453. function _GetvideoTrack: TJSTrackBuffersManagerDebugInfo;
  10454. procedure _SetaudioTrack(const aValue: TJSTrackBuffersManagerDebugInfo);
  10455. procedure _SetvideoTrack(const aValue: TJSTrackBuffersManagerDebugInfo);
  10456. property audioTrack: TJSTrackBuffersManagerDebugInfo read _GetaudioTrack write _SetaudioTrack;
  10457. property videoTrack: TJSTrackBuffersManagerDebugInfo read _GetvideoTrack write _SetvideoTrack;
  10458. end;
  10459. TJSMediaSourceDemuxerDebugInfo = class(TJSObject,IJSMediaSourceDemuxerDebugInfo)
  10460. Protected
  10461. function _GetaudioTrack: TJSTrackBuffersManagerDebugInfo;
  10462. function _GetvideoTrack: TJSTrackBuffersManagerDebugInfo;
  10463. procedure _SetaudioTrack(const aValue: TJSTrackBuffersManagerDebugInfo);
  10464. procedure _SetvideoTrack(const aValue: TJSTrackBuffersManagerDebugInfo);
  10465. Public
  10466. class function JSClassName: UnicodeString; override;
  10467. class function Cast(const Intf: IJSObject): IJSMediaSourceDemuxerDebugInfo;
  10468. property audioTrack: TJSTrackBuffersManagerDebugInfo read _GetaudioTrack write _SetaudioTrack;
  10469. property videoTrack: TJSTrackBuffersManagerDebugInfo read _GetvideoTrack write _SetvideoTrack;
  10470. end;
  10471. { --------------------------------------------------------------------
  10472. TJSMediaSourceDecoderDebugInfo
  10473. --------------------------------------------------------------------}
  10474. TJSMediaSourceDecoderDebugInfoRec = record
  10475. reader: TJSMediaFormatReaderDebugInfo;
  10476. demuxer: TJSMediaSourceDemuxerDebugInfo;
  10477. end;
  10478. IJSMediaSourceDecoderDebugInfo = interface(IJSObject)
  10479. ['{0773A69D-CD88-3197-BD25-5143DE5E6CCF}']
  10480. function _Getreader: TJSMediaFormatReaderDebugInfo;
  10481. function _Getdemuxer: TJSMediaSourceDemuxerDebugInfo;
  10482. procedure _Setreader(const aValue: TJSMediaFormatReaderDebugInfo);
  10483. procedure _Setdemuxer(const aValue: TJSMediaSourceDemuxerDebugInfo);
  10484. property reader: TJSMediaFormatReaderDebugInfo read _Getreader write _Setreader;
  10485. property demuxer: TJSMediaSourceDemuxerDebugInfo read _Getdemuxer write _Setdemuxer;
  10486. end;
  10487. TJSMediaSourceDecoderDebugInfo = class(TJSObject,IJSMediaSourceDecoderDebugInfo)
  10488. Protected
  10489. function _Getreader: TJSMediaFormatReaderDebugInfo;
  10490. function _Getdemuxer: TJSMediaSourceDemuxerDebugInfo;
  10491. procedure _Setreader(const aValue: TJSMediaFormatReaderDebugInfo);
  10492. procedure _Setdemuxer(const aValue: TJSMediaSourceDemuxerDebugInfo);
  10493. Public
  10494. class function JSClassName: UnicodeString; override;
  10495. class function Cast(const Intf: IJSObject): IJSMediaSourceDecoderDebugInfo;
  10496. property reader: TJSMediaFormatReaderDebugInfo read _Getreader write _Setreader;
  10497. property demuxer: TJSMediaSourceDemuxerDebugInfo read _Getdemuxer write _Setdemuxer;
  10498. end;
  10499. { --------------------------------------------------------------------
  10500. TJSEMEDebugInfo
  10501. --------------------------------------------------------------------}
  10502. TJSEMEDebugInfoRec = record
  10503. keySystem: UnicodeString;
  10504. sessionsInfo: UnicodeString;
  10505. end;
  10506. IJSEMEDebugInfo = interface(IJSObject)
  10507. ['{7027B7D7-6890-3871-9172-28447587190E}']
  10508. function _GetkeySystem: UnicodeString;
  10509. function _GetsessionsInfo: UnicodeString;
  10510. procedure _SetkeySystem(const aValue: UnicodeString);
  10511. procedure _SetsessionsInfo(const aValue: UnicodeString);
  10512. property keySystem: UnicodeString read _GetkeySystem write _SetkeySystem;
  10513. property sessionsInfo: UnicodeString read _GetsessionsInfo write _SetsessionsInfo;
  10514. end;
  10515. TJSEMEDebugInfo = class(TJSObject,IJSEMEDebugInfo)
  10516. Protected
  10517. function _GetkeySystem: UnicodeString;
  10518. function _GetsessionsInfo: UnicodeString;
  10519. procedure _SetkeySystem(const aValue: UnicodeString);
  10520. procedure _SetsessionsInfo(const aValue: UnicodeString);
  10521. Public
  10522. class function JSClassName: UnicodeString; override;
  10523. class function Cast(const Intf: IJSObject): IJSEMEDebugInfo;
  10524. property keySystem: UnicodeString read _GetkeySystem write _SetkeySystem;
  10525. property sessionsInfo: UnicodeString read _GetsessionsInfo write _SetsessionsInfo;
  10526. end;
  10527. { --------------------------------------------------------------------
  10528. TJSHTMLMediaElementDebugInfo
  10529. --------------------------------------------------------------------}
  10530. TJSHTMLMediaElementDebugInfoRec = record
  10531. compositorDroppedFrames: Cardinal;
  10532. EMEInfo: TJSEMEDebugInfo;
  10533. decoder: TJSMediaDecoderDebugInfo;
  10534. end;
  10535. IJSHTMLMediaElementDebugInfo = interface(IJSObject)
  10536. ['{20C78013-3CFA-3BAA-BFF6-4FDCB9DE4DFE}']
  10537. function _GetcompositorDroppedFrames: Cardinal;
  10538. function _GetEMEInfo: TJSEMEDebugInfo;
  10539. function _Getdecoder: TJSMediaDecoderDebugInfo;
  10540. procedure _SetcompositorDroppedFrames(const aValue: Cardinal);
  10541. procedure _SetEMEInfo(const aValue: TJSEMEDebugInfo);
  10542. procedure _Setdecoder(const aValue: TJSMediaDecoderDebugInfo);
  10543. property compositorDroppedFrames: Cardinal read _GetcompositorDroppedFrames write _SetcompositorDroppedFrames;
  10544. property EMEInfo: TJSEMEDebugInfo read _GetEMEInfo write _SetEMEInfo;
  10545. property decoder: TJSMediaDecoderDebugInfo read _Getdecoder write _Setdecoder;
  10546. end;
  10547. TJSHTMLMediaElementDebugInfo = class(TJSObject,IJSHTMLMediaElementDebugInfo)
  10548. Protected
  10549. function _GetcompositorDroppedFrames: Cardinal;
  10550. function _GetEMEInfo: TJSEMEDebugInfo;
  10551. function _Getdecoder: TJSMediaDecoderDebugInfo;
  10552. procedure _SetcompositorDroppedFrames(const aValue: Cardinal);
  10553. procedure _SetEMEInfo(const aValue: TJSEMEDebugInfo);
  10554. procedure _Setdecoder(const aValue: TJSMediaDecoderDebugInfo);
  10555. Public
  10556. class function JSClassName: UnicodeString; override;
  10557. class function Cast(const Intf: IJSObject): IJSHTMLMediaElementDebugInfo;
  10558. property compositorDroppedFrames: Cardinal read _GetcompositorDroppedFrames write _SetcompositorDroppedFrames;
  10559. property EMEInfo: TJSEMEDebugInfo read _GetEMEInfo write _SetEMEInfo;
  10560. property decoder: TJSMediaDecoderDebugInfo read _Getdecoder write _Setdecoder;
  10561. end;
  10562. { --------------------------------------------------------------------
  10563. TJSAudioOutputOptions
  10564. --------------------------------------------------------------------}
  10565. TJSAudioOutputOptionsRec = record
  10566. deviceId: UnicodeString;
  10567. end;
  10568. IJSAudioOutputOptions = interface(IJSObject)
  10569. ['{3DC3EEA0-C12B-3802-8391-64CAD5EC8A70}']
  10570. function _GetdeviceId: UnicodeString;
  10571. procedure _SetdeviceId(const aValue: UnicodeString);
  10572. property deviceId: UnicodeString read _GetdeviceId write _SetdeviceId;
  10573. end;
  10574. TJSAudioOutputOptions = class(TJSObject,IJSAudioOutputOptions)
  10575. Protected
  10576. function _GetdeviceId: UnicodeString;
  10577. procedure _SetdeviceId(const aValue: UnicodeString);
  10578. Public
  10579. class function JSClassName: UnicodeString; override;
  10580. class function Cast(const Intf: IJSObject): IJSAudioOutputOptions;
  10581. property deviceId: UnicodeString read _GetdeviceId write _SetdeviceId;
  10582. end;
  10583. { --------------------------------------------------------------------
  10584. TJSMediaElementAudioSourceOptions
  10585. --------------------------------------------------------------------}
  10586. TJSMediaElementAudioSourceOptionsRec = record
  10587. mediaElement: TJSHTMLMediaElement;
  10588. end;
  10589. IJSMediaElementAudioSourceOptions = interface(IJSObject)
  10590. ['{117F5CD6-0241-34AD-A48B-910A42B4BDBB}']
  10591. function _GetmediaElement: IJSHTMLMediaElement;
  10592. procedure _SetmediaElement(const aValue: IJSHTMLMediaElement);
  10593. property mediaElement: IJSHTMLMediaElement read _GetmediaElement write _SetmediaElement;
  10594. end;
  10595. TJSMediaElementAudioSourceOptions = class(TJSObject,IJSMediaElementAudioSourceOptions)
  10596. Protected
  10597. function _GetmediaElement: IJSHTMLMediaElement;
  10598. procedure _SetmediaElement(const aValue: IJSHTMLMediaElement);
  10599. Public
  10600. class function JSClassName: UnicodeString; override;
  10601. class function Cast(const Intf: IJSObject): IJSMediaElementAudioSourceOptions;
  10602. property mediaElement: IJSHTMLMediaElement read _GetmediaElement write _SetmediaElement;
  10603. end;
  10604. { --------------------------------------------------------------------
  10605. TJSMediaKeysPolicy
  10606. --------------------------------------------------------------------}
  10607. TJSMediaKeysPolicyRec = record
  10608. minHdcpVersion: THDCPVersion;
  10609. end;
  10610. IJSMediaKeysPolicy = interface(IJSObject)
  10611. ['{3544AAD6-E6D5-3EF9-9D3C-9588211568F6}']
  10612. function _GetminHdcpVersion: THDCPVersion;
  10613. procedure _SetminHdcpVersion(const aValue: THDCPVersion);
  10614. property minHdcpVersion: THDCPVersion read _GetminHdcpVersion write _SetminHdcpVersion;
  10615. end;
  10616. TJSMediaKeysPolicy = class(TJSObject,IJSMediaKeysPolicy)
  10617. Protected
  10618. function _GetminHdcpVersion: THDCPVersion;
  10619. procedure _SetminHdcpVersion(const aValue: THDCPVersion);
  10620. Public
  10621. class function JSClassName: UnicodeString; override;
  10622. class function Cast(const Intf: IJSObject): IJSMediaKeysPolicy;
  10623. property minHdcpVersion: THDCPVersion read _GetminHdcpVersion write _SetminHdcpVersion;
  10624. end;
  10625. { --------------------------------------------------------------------
  10626. TJSRequestMediaKeySystemAccessNotification
  10627. --------------------------------------------------------------------}
  10628. TJSRequestMediaKeySystemAccessNotificationRec = record
  10629. keySystem: UnicodeString;
  10630. status: TMediaKeySystemStatus;
  10631. end;
  10632. IJSRequestMediaKeySystemAccessNotification = interface(IJSObject)
  10633. ['{03AEAF0C-231D-3269-AC5C-ED3B54452259}']
  10634. function _GetkeySystem: UnicodeString;
  10635. function _Getstatus: TMediaKeySystemStatus;
  10636. procedure _SetkeySystem(const aValue: UnicodeString);
  10637. procedure _Setstatus(const aValue: TMediaKeySystemStatus);
  10638. property keySystem: UnicodeString read _GetkeySystem write _SetkeySystem;
  10639. property status: TMediaKeySystemStatus read _Getstatus write _Setstatus;
  10640. end;
  10641. TJSRequestMediaKeySystemAccessNotification = class(TJSObject,IJSRequestMediaKeySystemAccessNotification)
  10642. Protected
  10643. function _GetkeySystem: UnicodeString;
  10644. function _Getstatus: TMediaKeySystemStatus;
  10645. procedure _SetkeySystem(const aValue: UnicodeString);
  10646. procedure _Setstatus(const aValue: TMediaKeySystemStatus);
  10647. Public
  10648. class function JSClassName: UnicodeString; override;
  10649. class function Cast(const Intf: IJSObject): IJSRequestMediaKeySystemAccessNotification;
  10650. property keySystem: UnicodeString read _GetkeySystem write _SetkeySystem;
  10651. property status: TMediaKeySystemStatus read _Getstatus write _Setstatus;
  10652. end;
  10653. { --------------------------------------------------------------------
  10654. TJSMediaKeySystemMediaCapability
  10655. --------------------------------------------------------------------}
  10656. TJSMediaKeySystemMediaCapabilityRec = record
  10657. contentType: UnicodeString;
  10658. robustness: UnicodeString;
  10659. encryptionScheme: UnicodeString;
  10660. end;
  10661. IJSMediaKeySystemMediaCapability = interface(IJSObject)
  10662. ['{30583260-374F-3FA9-97CA-8FE9C44D7A67}']
  10663. function _GetcontentType: UnicodeString;
  10664. function _Getrobustness: UnicodeString;
  10665. function _GetencryptionScheme: UnicodeString;
  10666. procedure _SetcontentType(const aValue: UnicodeString);
  10667. procedure _Setrobustness(const aValue: UnicodeString);
  10668. procedure _SetencryptionScheme(const aValue: UnicodeString);
  10669. property contentType: UnicodeString read _GetcontentType write _SetcontentType;
  10670. property robustness: UnicodeString read _Getrobustness write _Setrobustness;
  10671. property encryptionScheme: UnicodeString read _GetencryptionScheme write _SetencryptionScheme;
  10672. end;
  10673. TJSMediaKeySystemMediaCapability = class(TJSObject,IJSMediaKeySystemMediaCapability)
  10674. Protected
  10675. function _GetcontentType: UnicodeString;
  10676. function _Getrobustness: UnicodeString;
  10677. function _GetencryptionScheme: UnicodeString;
  10678. procedure _SetcontentType(const aValue: UnicodeString);
  10679. procedure _Setrobustness(const aValue: UnicodeString);
  10680. procedure _SetencryptionScheme(const aValue: UnicodeString);
  10681. Public
  10682. class function JSClassName: UnicodeString; override;
  10683. class function Cast(const Intf: IJSObject): IJSMediaKeySystemMediaCapability;
  10684. property contentType: UnicodeString read _GetcontentType write _SetcontentType;
  10685. property robustness: UnicodeString read _Getrobustness write _Setrobustness;
  10686. property encryptionScheme: UnicodeString read _GetencryptionScheme write _SetencryptionScheme;
  10687. end;
  10688. { --------------------------------------------------------------------
  10689. TJSMediaKeySystemConfiguration
  10690. --------------------------------------------------------------------}
  10691. TJSMediaKeySystemMediaCapabilityDynArray = IJSArray; // array of MediaKeySystemMediaCapability
  10692. TJSMediaKeySystemConfigurationRec = record
  10693. label_: UnicodeString;
  10694. initDataTypes: TUnicodeStringDynArray;
  10695. audioCapabilities: TJSMediaKeySystemMediaCapabilityDynArray;
  10696. videoCapabilities: TJSMediaKeySystemMediaCapabilityDynArray;
  10697. distinctiveIdentifier: TMediaKeysRequirement;
  10698. persistentState: TMediaKeysRequirement;
  10699. sessionTypes: TUnicodeStringDynArray;
  10700. end;
  10701. IJSMediaKeySystemConfiguration = interface(IJSObject)
  10702. ['{14C06B73-06D8-3B03-8CD9-B7B75F49F17D}']
  10703. function _Getlabel_: UnicodeString;
  10704. function _GetinitDataTypes: TUnicodeStringDynArray;
  10705. function _GetaudioCapabilities: TJSMediaKeySystemMediaCapabilityDynArray;
  10706. function _GetvideoCapabilities: TJSMediaKeySystemMediaCapabilityDynArray;
  10707. function _GetdistinctiveIdentifier: TMediaKeysRequirement;
  10708. function _GetpersistentState: TMediaKeysRequirement;
  10709. function _GetsessionTypes: TUnicodeStringDynArray;
  10710. procedure _Setlabel_(const aValue: UnicodeString);
  10711. procedure _SetinitDataTypes(const aValue: TUnicodeStringDynArray);
  10712. procedure _SetaudioCapabilities(const aValue: TJSMediaKeySystemMediaCapabilityDynArray);
  10713. procedure _SetvideoCapabilities(const aValue: TJSMediaKeySystemMediaCapabilityDynArray);
  10714. procedure _SetdistinctiveIdentifier(const aValue: TMediaKeysRequirement);
  10715. procedure _SetpersistentState(const aValue: TMediaKeysRequirement);
  10716. procedure _SetsessionTypes(const aValue: TUnicodeStringDynArray);
  10717. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  10718. property initDataTypes: TUnicodeStringDynArray read _GetinitDataTypes write _SetinitDataTypes;
  10719. property audioCapabilities: TJSMediaKeySystemMediaCapabilityDynArray read _GetaudioCapabilities write _SetaudioCapabilities;
  10720. property videoCapabilities: TJSMediaKeySystemMediaCapabilityDynArray read _GetvideoCapabilities write _SetvideoCapabilities;
  10721. property distinctiveIdentifier: TMediaKeysRequirement read _GetdistinctiveIdentifier write _SetdistinctiveIdentifier;
  10722. property persistentState: TMediaKeysRequirement read _GetpersistentState write _SetpersistentState;
  10723. property sessionTypes: TUnicodeStringDynArray read _GetsessionTypes write _SetsessionTypes;
  10724. end;
  10725. TJSMediaKeySystemConfiguration = class(TJSObject,IJSMediaKeySystemConfiguration)
  10726. Protected
  10727. function _Getlabel_: UnicodeString;
  10728. function _GetinitDataTypes: TUnicodeStringDynArray;
  10729. function _GetaudioCapabilities: TJSMediaKeySystemMediaCapabilityDynArray;
  10730. function _GetvideoCapabilities: TJSMediaKeySystemMediaCapabilityDynArray;
  10731. function _GetdistinctiveIdentifier: TMediaKeysRequirement;
  10732. function _GetpersistentState: TMediaKeysRequirement;
  10733. function _GetsessionTypes: TUnicodeStringDynArray;
  10734. procedure _Setlabel_(const aValue: UnicodeString);
  10735. procedure _SetinitDataTypes(const aValue: TUnicodeStringDynArray);
  10736. procedure _SetaudioCapabilities(const aValue: TJSMediaKeySystemMediaCapabilityDynArray);
  10737. procedure _SetvideoCapabilities(const aValue: TJSMediaKeySystemMediaCapabilityDynArray);
  10738. procedure _SetdistinctiveIdentifier(const aValue: TMediaKeysRequirement);
  10739. procedure _SetpersistentState(const aValue: TMediaKeysRequirement);
  10740. procedure _SetsessionTypes(const aValue: TUnicodeStringDynArray);
  10741. Public
  10742. class function JSClassName: UnicodeString; override;
  10743. class function Cast(const Intf: IJSObject): IJSMediaKeySystemConfiguration;
  10744. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  10745. property initDataTypes: TUnicodeStringDynArray read _GetinitDataTypes write _SetinitDataTypes;
  10746. property audioCapabilities: TJSMediaKeySystemMediaCapabilityDynArray read _GetaudioCapabilities write _SetaudioCapabilities;
  10747. property videoCapabilities: TJSMediaKeySystemMediaCapabilityDynArray read _GetvideoCapabilities write _SetvideoCapabilities;
  10748. property distinctiveIdentifier: TMediaKeysRequirement read _GetdistinctiveIdentifier write _SetdistinctiveIdentifier;
  10749. property persistentState: TMediaKeysRequirement read _GetpersistentState write _SetpersistentState;
  10750. property sessionTypes: TUnicodeStringDynArray read _GetsessionTypes write _SetsessionTypes;
  10751. end;
  10752. { --------------------------------------------------------------------
  10753. TJSMediaRecorderOptions
  10754. --------------------------------------------------------------------}
  10755. TJSMediaRecorderOptionsRec = record
  10756. mimeType: UnicodeString;
  10757. audioBitsPerSecond: Cardinal;
  10758. videoBitsPerSecond: Cardinal;
  10759. bitsPerSecond: Cardinal;
  10760. end;
  10761. IJSMediaRecorderOptions = interface(IJSObject)
  10762. ['{093155C8-755E-31DD-875E-DBD8852206D2}']
  10763. function _GetmimeType: UnicodeString;
  10764. function _GetaudioBitsPerSecond: Cardinal;
  10765. function _GetvideoBitsPerSecond: Cardinal;
  10766. function _GetbitsPerSecond: Cardinal;
  10767. procedure _SetmimeType(const aValue: UnicodeString);
  10768. procedure _SetaudioBitsPerSecond(const aValue: Cardinal);
  10769. procedure _SetvideoBitsPerSecond(const aValue: Cardinal);
  10770. procedure _SetbitsPerSecond(const aValue: Cardinal);
  10771. property mimeType: UnicodeString read _GetmimeType write _SetmimeType;
  10772. property audioBitsPerSecond: Cardinal read _GetaudioBitsPerSecond write _SetaudioBitsPerSecond;
  10773. property videoBitsPerSecond: Cardinal read _GetvideoBitsPerSecond write _SetvideoBitsPerSecond;
  10774. property bitsPerSecond: Cardinal read _GetbitsPerSecond write _SetbitsPerSecond;
  10775. end;
  10776. TJSMediaRecorderOptions = class(TJSObject,IJSMediaRecorderOptions)
  10777. Protected
  10778. function _GetmimeType: UnicodeString;
  10779. function _GetaudioBitsPerSecond: Cardinal;
  10780. function _GetvideoBitsPerSecond: Cardinal;
  10781. function _GetbitsPerSecond: Cardinal;
  10782. procedure _SetmimeType(const aValue: UnicodeString);
  10783. procedure _SetaudioBitsPerSecond(const aValue: Cardinal);
  10784. procedure _SetvideoBitsPerSecond(const aValue: Cardinal);
  10785. procedure _SetbitsPerSecond(const aValue: Cardinal);
  10786. Public
  10787. class function JSClassName: UnicodeString; override;
  10788. class function Cast(const Intf: IJSObject): IJSMediaRecorderOptions;
  10789. property mimeType: UnicodeString read _GetmimeType write _SetmimeType;
  10790. property audioBitsPerSecond: Cardinal read _GetaudioBitsPerSecond write _SetaudioBitsPerSecond;
  10791. property videoBitsPerSecond: Cardinal read _GetvideoBitsPerSecond write _SetvideoBitsPerSecond;
  10792. property bitsPerSecond: Cardinal read _GetbitsPerSecond write _SetbitsPerSecond;
  10793. end;
  10794. { --------------------------------------------------------------------
  10795. TJSMediaMetadataInit
  10796. --------------------------------------------------------------------}
  10797. TJSMediaImageDynArray = IJSArray; // array of MediaImage
  10798. TJSMediaMetadataInitRec = record
  10799. title: UnicodeString;
  10800. artist: UnicodeString;
  10801. album: UnicodeString;
  10802. artwork: TJSMediaImageDynArray;
  10803. end;
  10804. IJSMediaMetadataInit = interface(IJSObject)
  10805. ['{745A258D-9CB4-3FA9-9A05-82EC82DA2C2B}']
  10806. function _Gettitle: UnicodeString;
  10807. function _Getartist: UnicodeString;
  10808. function _Getalbum: UnicodeString;
  10809. function _Getartwork: TJSMediaImageDynArray;
  10810. procedure _Settitle(const aValue: UnicodeString);
  10811. procedure _Setartist(const aValue: UnicodeString);
  10812. procedure _Setalbum(const aValue: UnicodeString);
  10813. procedure _Setartwork(const aValue: TJSMediaImageDynArray);
  10814. property title: UnicodeString read _Gettitle write _Settitle;
  10815. property artist: UnicodeString read _Getartist write _Setartist;
  10816. property album: UnicodeString read _Getalbum write _Setalbum;
  10817. property artwork: TJSMediaImageDynArray read _Getartwork write _Setartwork;
  10818. end;
  10819. TJSMediaMetadataInit = class(TJSObject,IJSMediaMetadataInit)
  10820. Protected
  10821. function _Gettitle: UnicodeString;
  10822. function _Getartist: UnicodeString;
  10823. function _Getalbum: UnicodeString;
  10824. function _Getartwork: TJSMediaImageDynArray;
  10825. procedure _Settitle(const aValue: UnicodeString);
  10826. procedure _Setartist(const aValue: UnicodeString);
  10827. procedure _Setalbum(const aValue: UnicodeString);
  10828. procedure _Setartwork(const aValue: TJSMediaImageDynArray);
  10829. Public
  10830. class function JSClassName: UnicodeString; override;
  10831. class function Cast(const Intf: IJSObject): IJSMediaMetadataInit;
  10832. property title: UnicodeString read _Gettitle write _Settitle;
  10833. property artist: UnicodeString read _Getartist write _Setartist;
  10834. property album: UnicodeString read _Getalbum write _Setalbum;
  10835. property artwork: TJSMediaImageDynArray read _Getartwork write _Setartwork;
  10836. end;
  10837. { --------------------------------------------------------------------
  10838. TJSMediaImage
  10839. --------------------------------------------------------------------}
  10840. TJSMediaImageRec = record
  10841. src: UnicodeString;
  10842. sizes: UnicodeString;
  10843. type_: UnicodeString;
  10844. end;
  10845. IJSMediaImage = interface(IJSObject)
  10846. ['{40F3CAC7-C20D-3E60-90A9-8C68DE304159}']
  10847. function _Getsrc: UnicodeString;
  10848. function _Getsizes: UnicodeString;
  10849. function _Gettype_: UnicodeString;
  10850. procedure _Setsrc(const aValue: UnicodeString);
  10851. procedure _Setsizes(const aValue: UnicodeString);
  10852. procedure _Settype_(const aValue: UnicodeString);
  10853. property src: UnicodeString read _Getsrc write _Setsrc;
  10854. property sizes: UnicodeString read _Getsizes write _Setsizes;
  10855. property type_: UnicodeString read _Gettype_ write _Settype_;
  10856. end;
  10857. TJSMediaImage = class(TJSObject,IJSMediaImage)
  10858. Protected
  10859. function _Getsrc: UnicodeString;
  10860. function _Getsizes: UnicodeString;
  10861. function _Gettype_: UnicodeString;
  10862. procedure _Setsrc(const aValue: UnicodeString);
  10863. procedure _Setsizes(const aValue: UnicodeString);
  10864. procedure _Settype_(const aValue: UnicodeString);
  10865. Public
  10866. class function JSClassName: UnicodeString; override;
  10867. class function Cast(const Intf: IJSObject): IJSMediaImage;
  10868. property src: UnicodeString read _Getsrc write _Setsrc;
  10869. property sizes: UnicodeString read _Getsizes write _Setsizes;
  10870. property type_: UnicodeString read _Gettype_ write _Settype_;
  10871. end;
  10872. { --------------------------------------------------------------------
  10873. TJSMediaSessionActionDetails
  10874. --------------------------------------------------------------------}
  10875. TJSMediaSessionActionDetailsRec = record
  10876. action: TMediaSessionAction;
  10877. seekOffset: Double;
  10878. seekTime: Double;
  10879. fastSeek: Boolean;
  10880. end;
  10881. IJSMediaSessionActionDetails = interface(IJSObject)
  10882. ['{72A780FA-8726-38C8-BF63-D507412DDB10}']
  10883. function _Getaction: TMediaSessionAction;
  10884. function _GetseekOffset: Double;
  10885. function _GetseekTime: Double;
  10886. function _GetfastSeek: Boolean;
  10887. procedure _Setaction(const aValue: TMediaSessionAction);
  10888. procedure _SetseekOffset(const aValue: Double);
  10889. procedure _SetseekTime(const aValue: Double);
  10890. procedure _SetfastSeek(const aValue: Boolean);
  10891. property action: TMediaSessionAction read _Getaction write _Setaction;
  10892. property seekOffset: Double read _GetseekOffset write _SetseekOffset;
  10893. property seekTime: Double read _GetseekTime write _SetseekTime;
  10894. property fastSeek: Boolean read _GetfastSeek write _SetfastSeek;
  10895. end;
  10896. TJSMediaSessionActionDetails = class(TJSObject,IJSMediaSessionActionDetails)
  10897. Protected
  10898. function _Getaction: TMediaSessionAction;
  10899. function _GetseekOffset: Double;
  10900. function _GetseekTime: Double;
  10901. function _GetfastSeek: Boolean;
  10902. procedure _Setaction(const aValue: TMediaSessionAction);
  10903. procedure _SetseekOffset(const aValue: Double);
  10904. procedure _SetseekTime(const aValue: Double);
  10905. procedure _SetfastSeek(const aValue: Boolean);
  10906. Public
  10907. class function JSClassName: UnicodeString; override;
  10908. class function Cast(const Intf: IJSObject): IJSMediaSessionActionDetails;
  10909. property action: TMediaSessionAction read _Getaction write _Setaction;
  10910. property seekOffset: Double read _GetseekOffset write _SetseekOffset;
  10911. property seekTime: Double read _GetseekTime write _SetseekTime;
  10912. property fastSeek: Boolean read _GetfastSeek write _SetfastSeek;
  10913. end;
  10914. { --------------------------------------------------------------------
  10915. TJSMediaPositionState
  10916. --------------------------------------------------------------------}
  10917. TJSMediaPositionStateRec = record
  10918. duration: Double;
  10919. playbackRate: Double;
  10920. position: Double;
  10921. end;
  10922. IJSMediaPositionState = interface(IJSObject)
  10923. ['{90F19618-EB82-3F44-805C-5839F7B68D72}']
  10924. function _Getduration: Double;
  10925. function _GetplaybackRate: Double;
  10926. function _Getposition: Double;
  10927. procedure _Setduration(const aValue: Double);
  10928. procedure _SetplaybackRate(const aValue: Double);
  10929. procedure _Setposition(const aValue: Double);
  10930. property duration: Double read _Getduration write _Setduration;
  10931. property playbackRate: Double read _GetplaybackRate write _SetplaybackRate;
  10932. property position: Double read _Getposition write _Setposition;
  10933. end;
  10934. TJSMediaPositionState = class(TJSObject,IJSMediaPositionState)
  10935. Protected
  10936. function _Getduration: Double;
  10937. function _GetplaybackRate: Double;
  10938. function _Getposition: Double;
  10939. procedure _Setduration(const aValue: Double);
  10940. procedure _SetplaybackRate(const aValue: Double);
  10941. procedure _Setposition(const aValue: Double);
  10942. Public
  10943. class function JSClassName: UnicodeString; override;
  10944. class function Cast(const Intf: IJSObject): IJSMediaPositionState;
  10945. property duration: Double read _Getduration write _Setduration;
  10946. property playbackRate: Double read _GetplaybackRate write _SetplaybackRate;
  10947. property position: Double read _Getposition write _Setposition;
  10948. end;
  10949. { --------------------------------------------------------------------
  10950. TJSMediaStreamConstraints
  10951. --------------------------------------------------------------------}
  10952. // Union of boolean, MediaTrackConstraints
  10953. TMediaStreamConstraints_audio_Type = Variant;
  10954. // Union of boolean, MediaTrackConstraints
  10955. TMediaStreamConstraints_video_Type = Variant;
  10956. TJSMediaStreamConstraintsRec = record
  10957. audio: TMediaStreamConstraints_audio_Type;
  10958. video: TMediaStreamConstraints_video_Type;
  10959. picture: Boolean;
  10960. fake: Boolean;
  10961. peerIdentity: UnicodeString;
  10962. end;
  10963. IJSMediaStreamConstraints = interface(IJSObject)
  10964. ['{B622873C-0A05-3AAE-8889-9E5EFEAD852B}']
  10965. function _Getaudio: TMediaStreamConstraints_audio_Type;
  10966. function _Getvideo: TMediaStreamConstraints_video_Type;
  10967. function _Getpicture: Boolean;
  10968. function _Getfake: Boolean;
  10969. function _GetpeerIdentity: UnicodeString;
  10970. procedure _Setaudio(const aValue: TMediaStreamConstraints_audio_Type);
  10971. procedure _Setvideo(const aValue: TMediaStreamConstraints_video_Type);
  10972. procedure _Setpicture(const aValue: Boolean);
  10973. procedure _Setfake(const aValue: Boolean);
  10974. procedure _SetpeerIdentity(const aValue: UnicodeString);
  10975. property audio: TMediaStreamConstraints_audio_Type read _Getaudio write _Setaudio;
  10976. property video: TMediaStreamConstraints_video_Type read _Getvideo write _Setvideo;
  10977. property picture: Boolean read _Getpicture write _Setpicture;
  10978. property fake: Boolean read _Getfake write _Setfake;
  10979. property peerIdentity: UnicodeString read _GetpeerIdentity write _SetpeerIdentity;
  10980. end;
  10981. TJSMediaStreamConstraints = class(TJSObject,IJSMediaStreamConstraints)
  10982. Protected
  10983. function _Getaudio: TMediaStreamConstraints_audio_Type;
  10984. function _Getvideo: TMediaStreamConstraints_video_Type;
  10985. function _Getpicture: Boolean;
  10986. function _Getfake: Boolean;
  10987. function _GetpeerIdentity: UnicodeString;
  10988. procedure _Setaudio(const aValue: TMediaStreamConstraints_audio_Type);
  10989. procedure _Setvideo(const aValue: TMediaStreamConstraints_video_Type);
  10990. procedure _Setpicture(const aValue: Boolean);
  10991. procedure _Setfake(const aValue: Boolean);
  10992. procedure _SetpeerIdentity(const aValue: UnicodeString);
  10993. Public
  10994. class function JSClassName: UnicodeString; override;
  10995. class function Cast(const Intf: IJSObject): IJSMediaStreamConstraints;
  10996. property audio: TMediaStreamConstraints_audio_Type read _Getaudio write _Setaudio;
  10997. property video: TMediaStreamConstraints_video_Type read _Getvideo write _Setvideo;
  10998. property picture: Boolean read _Getpicture write _Setpicture;
  10999. property fake: Boolean read _Getfake write _Setfake;
  11000. property peerIdentity: UnicodeString read _GetpeerIdentity write _SetpeerIdentity;
  11001. end;
  11002. { --------------------------------------------------------------------
  11003. TJSDisplayMediaStreamConstraints
  11004. --------------------------------------------------------------------}
  11005. // Union of boolean, MediaTrackConstraints
  11006. TDisplayMediaStreamConstraints_video_Type = Variant;
  11007. // Union of boolean, MediaTrackConstraints
  11008. TDisplayMediaStreamConstraints_audio_Type = Variant;
  11009. TJSDisplayMediaStreamConstraintsRec = record
  11010. video: TDisplayMediaStreamConstraints_video_Type;
  11011. audio: TDisplayMediaStreamConstraints_audio_Type;
  11012. end;
  11013. IJSDisplayMediaStreamConstraints = interface(IJSObject)
  11014. ['{C5C306C5-AB22-3855-A38C-B8B4732CDF0F}']
  11015. function _Getvideo: TDisplayMediaStreamConstraints_video_Type;
  11016. function _Getaudio: TDisplayMediaStreamConstraints_audio_Type;
  11017. procedure _Setvideo(const aValue: TDisplayMediaStreamConstraints_video_Type);
  11018. procedure _Setaudio(const aValue: TDisplayMediaStreamConstraints_audio_Type);
  11019. property video: TDisplayMediaStreamConstraints_video_Type read _Getvideo write _Setvideo;
  11020. property audio: TDisplayMediaStreamConstraints_audio_Type read _Getaudio write _Setaudio;
  11021. end;
  11022. TJSDisplayMediaStreamConstraints = class(TJSObject,IJSDisplayMediaStreamConstraints)
  11023. Protected
  11024. function _Getvideo: TDisplayMediaStreamConstraints_video_Type;
  11025. function _Getaudio: TDisplayMediaStreamConstraints_audio_Type;
  11026. procedure _Setvideo(const aValue: TDisplayMediaStreamConstraints_video_Type);
  11027. procedure _Setaudio(const aValue: TDisplayMediaStreamConstraints_audio_Type);
  11028. Public
  11029. class function JSClassName: UnicodeString; override;
  11030. class function Cast(const Intf: IJSObject): IJSDisplayMediaStreamConstraints;
  11031. property video: TDisplayMediaStreamConstraints_video_Type read _Getvideo write _Setvideo;
  11032. property audio: TDisplayMediaStreamConstraints_audio_Type read _Getaudio write _Setaudio;
  11033. end;
  11034. { --------------------------------------------------------------------
  11035. TJSMediaStreamAudioSourceOptions
  11036. --------------------------------------------------------------------}
  11037. TJSMediaStreamAudioSourceOptionsRec = record
  11038. mediaStream: TJSMediaStream;
  11039. end;
  11040. IJSMediaStreamAudioSourceOptions = interface(IJSObject)
  11041. ['{83F397CB-A0B1-3F30-B8E6-168794F53396}']
  11042. function _GetmediaStream: IJSMediaStream;
  11043. procedure _SetmediaStream(const aValue: IJSMediaStream);
  11044. property mediaStream: IJSMediaStream read _GetmediaStream write _SetmediaStream;
  11045. end;
  11046. TJSMediaStreamAudioSourceOptions = class(TJSObject,IJSMediaStreamAudioSourceOptions)
  11047. Protected
  11048. function _GetmediaStream: IJSMediaStream;
  11049. procedure _SetmediaStream(const aValue: IJSMediaStream);
  11050. Public
  11051. class function JSClassName: UnicodeString; override;
  11052. class function Cast(const Intf: IJSObject): IJSMediaStreamAudioSourceOptions;
  11053. property mediaStream: IJSMediaStream read _GetmediaStream write _SetmediaStream;
  11054. end;
  11055. { --------------------------------------------------------------------
  11056. TJSConstrainLongRange
  11057. --------------------------------------------------------------------}
  11058. TJSConstrainLongRangeRec = record
  11059. min: LongInt;
  11060. max: LongInt;
  11061. exact: LongInt;
  11062. ideal: LongInt;
  11063. end;
  11064. IJSConstrainLongRange = interface(IJSObject)
  11065. ['{BDCF0C34-E68A-3FD8-A368-52C85E1FE10E}']
  11066. function _Getmin: LongInt;
  11067. function _Getmax: LongInt;
  11068. function _Getexact: LongInt;
  11069. function _Getideal: LongInt;
  11070. procedure _Setmin(const aValue: LongInt);
  11071. procedure _Setmax(const aValue: LongInt);
  11072. procedure _Setexact(const aValue: LongInt);
  11073. procedure _Setideal(const aValue: LongInt);
  11074. property min: LongInt read _Getmin write _Setmin;
  11075. property max: LongInt read _Getmax write _Setmax;
  11076. property exact: LongInt read _Getexact write _Setexact;
  11077. property ideal: LongInt read _Getideal write _Setideal;
  11078. end;
  11079. TJSConstrainLongRange = class(TJSObject,IJSConstrainLongRange)
  11080. Protected
  11081. function _Getmin: LongInt;
  11082. function _Getmax: LongInt;
  11083. function _Getexact: LongInt;
  11084. function _Getideal: LongInt;
  11085. procedure _Setmin(const aValue: LongInt);
  11086. procedure _Setmax(const aValue: LongInt);
  11087. procedure _Setexact(const aValue: LongInt);
  11088. procedure _Setideal(const aValue: LongInt);
  11089. Public
  11090. class function JSClassName: UnicodeString; override;
  11091. class function Cast(const Intf: IJSObject): IJSConstrainLongRange;
  11092. property min: LongInt read _Getmin write _Setmin;
  11093. property max: LongInt read _Getmax write _Setmax;
  11094. property exact: LongInt read _Getexact write _Setexact;
  11095. property ideal: LongInt read _Getideal write _Setideal;
  11096. end;
  11097. { --------------------------------------------------------------------
  11098. TJSConstrainDoubleRange
  11099. --------------------------------------------------------------------}
  11100. TJSConstrainDoubleRangeRec = record
  11101. min: Double;
  11102. max: Double;
  11103. exact: Double;
  11104. ideal: Double;
  11105. end;
  11106. IJSConstrainDoubleRange = interface(IJSObject)
  11107. ['{9D018D2D-0F2B-3FE1-BB48-CA54F15406B8}']
  11108. function _Getmin: Double;
  11109. function _Getmax: Double;
  11110. function _Getexact: Double;
  11111. function _Getideal: Double;
  11112. procedure _Setmin(const aValue: Double);
  11113. procedure _Setmax(const aValue: Double);
  11114. procedure _Setexact(const aValue: Double);
  11115. procedure _Setideal(const aValue: Double);
  11116. property min: Double read _Getmin write _Setmin;
  11117. property max: Double read _Getmax write _Setmax;
  11118. property exact: Double read _Getexact write _Setexact;
  11119. property ideal: Double read _Getideal write _Setideal;
  11120. end;
  11121. TJSConstrainDoubleRange = class(TJSObject,IJSConstrainDoubleRange)
  11122. Protected
  11123. function _Getmin: Double;
  11124. function _Getmax: Double;
  11125. function _Getexact: Double;
  11126. function _Getideal: Double;
  11127. procedure _Setmin(const aValue: Double);
  11128. procedure _Setmax(const aValue: Double);
  11129. procedure _Setexact(const aValue: Double);
  11130. procedure _Setideal(const aValue: Double);
  11131. Public
  11132. class function JSClassName: UnicodeString; override;
  11133. class function Cast(const Intf: IJSObject): IJSConstrainDoubleRange;
  11134. property min: Double read _Getmin write _Setmin;
  11135. property max: Double read _Getmax write _Setmax;
  11136. property exact: Double read _Getexact write _Setexact;
  11137. property ideal: Double read _Getideal write _Setideal;
  11138. end;
  11139. { --------------------------------------------------------------------
  11140. TJSConstrainBooleanParameters
  11141. --------------------------------------------------------------------}
  11142. TJSConstrainBooleanParametersRec = record
  11143. exact: Boolean;
  11144. ideal: Boolean;
  11145. end;
  11146. IJSConstrainBooleanParameters = interface(IJSObject)
  11147. ['{D1408626-E20B-3EA6-AC7E-D6EAF8FECEEF}']
  11148. function _Getexact: Boolean;
  11149. function _Getideal: Boolean;
  11150. procedure _Setexact(const aValue: Boolean);
  11151. procedure _Setideal(const aValue: Boolean);
  11152. property exact: Boolean read _Getexact write _Setexact;
  11153. property ideal: Boolean read _Getideal write _Setideal;
  11154. end;
  11155. TJSConstrainBooleanParameters = class(TJSObject,IJSConstrainBooleanParameters)
  11156. Protected
  11157. function _Getexact: Boolean;
  11158. function _Getideal: Boolean;
  11159. procedure _Setexact(const aValue: Boolean);
  11160. procedure _Setideal(const aValue: Boolean);
  11161. Public
  11162. class function JSClassName: UnicodeString; override;
  11163. class function Cast(const Intf: IJSObject): IJSConstrainBooleanParameters;
  11164. property exact: Boolean read _Getexact write _Setexact;
  11165. property ideal: Boolean read _Getideal write _Setideal;
  11166. end;
  11167. { --------------------------------------------------------------------
  11168. TJSConstrainDOMStringParameters
  11169. --------------------------------------------------------------------}
  11170. // Union of DOMString, sequence
  11171. TConstrainDOMStringParameters_exact_Type = Variant;
  11172. // Union of DOMString, sequence
  11173. TConstrainDOMStringParameters_ideal_Type = Variant;
  11174. TJSConstrainDOMStringParametersRec = record
  11175. exact: TConstrainDOMStringParameters_exact_Type;
  11176. ideal: TConstrainDOMStringParameters_ideal_Type;
  11177. end;
  11178. IJSConstrainDOMStringParameters = interface(IJSObject)
  11179. ['{D546690C-8CEA-3F28-AB2C-48FCC67BBC73}']
  11180. function _Getexact: TConstrainDOMStringParameters_exact_Type;
  11181. function _Getideal: TConstrainDOMStringParameters_ideal_Type;
  11182. procedure _Setexact(const aValue: TConstrainDOMStringParameters_exact_Type);
  11183. procedure _Setideal(const aValue: TConstrainDOMStringParameters_ideal_Type);
  11184. property exact: TConstrainDOMStringParameters_exact_Type read _Getexact write _Setexact;
  11185. property ideal: TConstrainDOMStringParameters_ideal_Type read _Getideal write _Setideal;
  11186. end;
  11187. TJSConstrainDOMStringParameters = class(TJSObject,IJSConstrainDOMStringParameters)
  11188. Protected
  11189. function _Getexact: TConstrainDOMStringParameters_exact_Type;
  11190. function _Getideal: TConstrainDOMStringParameters_ideal_Type;
  11191. procedure _Setexact(const aValue: TConstrainDOMStringParameters_exact_Type);
  11192. procedure _Setideal(const aValue: TConstrainDOMStringParameters_ideal_Type);
  11193. Public
  11194. class function JSClassName: UnicodeString; override;
  11195. class function Cast(const Intf: IJSObject): IJSConstrainDOMStringParameters;
  11196. property exact: TConstrainDOMStringParameters_exact_Type read _Getexact write _Setexact;
  11197. property ideal: TConstrainDOMStringParameters_ideal_Type read _Getideal write _Setideal;
  11198. end;
  11199. { --------------------------------------------------------------------
  11200. TJSMediaTrackConstraintSet
  11201. --------------------------------------------------------------------}
  11202. TJSMediaTrackConstraintSetRec = record
  11203. width: TConstrainLong;
  11204. height: TConstrainLong;
  11205. frameRate: TConstrainDouble;
  11206. facingMode: TConstrainDOMString;
  11207. mediaSource: UnicodeString;
  11208. browserWindow: Int64;
  11209. scrollWithPage: Boolean;
  11210. deviceId: TConstrainDOMString;
  11211. groupId: TConstrainDOMString;
  11212. viewportOffsetX: TConstrainLong;
  11213. viewportOffsetY: TConstrainLong;
  11214. viewportWidth: TConstrainLong;
  11215. viewportHeight: TConstrainLong;
  11216. echoCancellation: TConstrainBoolean;
  11217. noiseSuppression: TConstrainBoolean;
  11218. autoGainControl: TConstrainBoolean;
  11219. channelCount: TConstrainLong;
  11220. end;
  11221. IJSMediaTrackConstraintSet = interface(IJSObject)
  11222. ['{1ABC619B-9E02-3A0F-B326-F489895C0C17}']
  11223. function _Getwidth: TConstrainLong;
  11224. function _Getheight: TConstrainLong;
  11225. function _GetframeRate: TConstrainDouble;
  11226. function _GetfacingMode: TConstrainDOMString;
  11227. function _GetmediaSource: UnicodeString;
  11228. function _GetbrowserWindow: Int64;
  11229. function _GetscrollWithPage: Boolean;
  11230. function _GetdeviceId: TConstrainDOMString;
  11231. function _GetgroupId: TConstrainDOMString;
  11232. function _GetviewportOffsetX: TConstrainLong;
  11233. function _GetviewportOffsetY: TConstrainLong;
  11234. function _GetviewportWidth: TConstrainLong;
  11235. function _GetviewportHeight: TConstrainLong;
  11236. function _GetechoCancellation: TConstrainBoolean;
  11237. function _GetnoiseSuppression: TConstrainBoolean;
  11238. function _GetautoGainControl: TConstrainBoolean;
  11239. function _GetchannelCount: TConstrainLong;
  11240. procedure _Setwidth(const aValue: TConstrainLong);
  11241. procedure _Setheight(const aValue: TConstrainLong);
  11242. procedure _SetframeRate(const aValue: TConstrainDouble);
  11243. procedure _SetfacingMode(const aValue: TConstrainDOMString);
  11244. procedure _SetmediaSource(const aValue: UnicodeString);
  11245. procedure _SetbrowserWindow(const aValue: Int64);
  11246. procedure _SetscrollWithPage(const aValue: Boolean);
  11247. procedure _SetdeviceId(const aValue: TConstrainDOMString);
  11248. procedure _SetgroupId(const aValue: TConstrainDOMString);
  11249. procedure _SetviewportOffsetX(const aValue: TConstrainLong);
  11250. procedure _SetviewportOffsetY(const aValue: TConstrainLong);
  11251. procedure _SetviewportWidth(const aValue: TConstrainLong);
  11252. procedure _SetviewportHeight(const aValue: TConstrainLong);
  11253. procedure _SetechoCancellation(const aValue: TConstrainBoolean);
  11254. procedure _SetnoiseSuppression(const aValue: TConstrainBoolean);
  11255. procedure _SetautoGainControl(const aValue: TConstrainBoolean);
  11256. procedure _SetchannelCount(const aValue: TConstrainLong);
  11257. property width: TConstrainLong read _Getwidth write _Setwidth;
  11258. property height: TConstrainLong read _Getheight write _Setheight;
  11259. property frameRate: TConstrainDouble read _GetframeRate write _SetframeRate;
  11260. property facingMode: TConstrainDOMString read _GetfacingMode write _SetfacingMode;
  11261. property mediaSource: UnicodeString read _GetmediaSource write _SetmediaSource;
  11262. property browserWindow: Int64 read _GetbrowserWindow write _SetbrowserWindow;
  11263. property scrollWithPage: Boolean read _GetscrollWithPage write _SetscrollWithPage;
  11264. property deviceId: TConstrainDOMString read _GetdeviceId write _SetdeviceId;
  11265. property groupId: TConstrainDOMString read _GetgroupId write _SetgroupId;
  11266. property viewportOffsetX: TConstrainLong read _GetviewportOffsetX write _SetviewportOffsetX;
  11267. property viewportOffsetY: TConstrainLong read _GetviewportOffsetY write _SetviewportOffsetY;
  11268. property viewportWidth: TConstrainLong read _GetviewportWidth write _SetviewportWidth;
  11269. property viewportHeight: TConstrainLong read _GetviewportHeight write _SetviewportHeight;
  11270. property echoCancellation: TConstrainBoolean read _GetechoCancellation write _SetechoCancellation;
  11271. property noiseSuppression: TConstrainBoolean read _GetnoiseSuppression write _SetnoiseSuppression;
  11272. property autoGainControl: TConstrainBoolean read _GetautoGainControl write _SetautoGainControl;
  11273. property channelCount: TConstrainLong read _GetchannelCount write _SetchannelCount;
  11274. end;
  11275. TJSMediaTrackConstraintSet = class(TJSObject,IJSMediaTrackConstraintSet)
  11276. Protected
  11277. function _Getwidth: TConstrainLong;
  11278. function _Getheight: TConstrainLong;
  11279. function _GetframeRate: TConstrainDouble;
  11280. function _GetfacingMode: TConstrainDOMString;
  11281. function _GetmediaSource: UnicodeString;
  11282. function _GetbrowserWindow: Int64;
  11283. function _GetscrollWithPage: Boolean;
  11284. function _GetdeviceId: TConstrainDOMString;
  11285. function _GetgroupId: TConstrainDOMString;
  11286. function _GetviewportOffsetX: TConstrainLong;
  11287. function _GetviewportOffsetY: TConstrainLong;
  11288. function _GetviewportWidth: TConstrainLong;
  11289. function _GetviewportHeight: TConstrainLong;
  11290. function _GetechoCancellation: TConstrainBoolean;
  11291. function _GetnoiseSuppression: TConstrainBoolean;
  11292. function _GetautoGainControl: TConstrainBoolean;
  11293. function _GetchannelCount: TConstrainLong;
  11294. procedure _Setwidth(const aValue: TConstrainLong);
  11295. procedure _Setheight(const aValue: TConstrainLong);
  11296. procedure _SetframeRate(const aValue: TConstrainDouble);
  11297. procedure _SetfacingMode(const aValue: TConstrainDOMString);
  11298. procedure _SetmediaSource(const aValue: UnicodeString);
  11299. procedure _SetbrowserWindow(const aValue: Int64);
  11300. procedure _SetscrollWithPage(const aValue: Boolean);
  11301. procedure _SetdeviceId(const aValue: TConstrainDOMString);
  11302. procedure _SetgroupId(const aValue: TConstrainDOMString);
  11303. procedure _SetviewportOffsetX(const aValue: TConstrainLong);
  11304. procedure _SetviewportOffsetY(const aValue: TConstrainLong);
  11305. procedure _SetviewportWidth(const aValue: TConstrainLong);
  11306. procedure _SetviewportHeight(const aValue: TConstrainLong);
  11307. procedure _SetechoCancellation(const aValue: TConstrainBoolean);
  11308. procedure _SetnoiseSuppression(const aValue: TConstrainBoolean);
  11309. procedure _SetautoGainControl(const aValue: TConstrainBoolean);
  11310. procedure _SetchannelCount(const aValue: TConstrainLong);
  11311. Public
  11312. class function JSClassName: UnicodeString; override;
  11313. class function Cast(const Intf: IJSObject): IJSMediaTrackConstraintSet;
  11314. property width: TConstrainLong read _Getwidth write _Setwidth;
  11315. property height: TConstrainLong read _Getheight write _Setheight;
  11316. property frameRate: TConstrainDouble read _GetframeRate write _SetframeRate;
  11317. property facingMode: TConstrainDOMString read _GetfacingMode write _SetfacingMode;
  11318. property mediaSource: UnicodeString read _GetmediaSource write _SetmediaSource;
  11319. property browserWindow: Int64 read _GetbrowserWindow write _SetbrowserWindow;
  11320. property scrollWithPage: Boolean read _GetscrollWithPage write _SetscrollWithPage;
  11321. property deviceId: TConstrainDOMString read _GetdeviceId write _SetdeviceId;
  11322. property groupId: TConstrainDOMString read _GetgroupId write _SetgroupId;
  11323. property viewportOffsetX: TConstrainLong read _GetviewportOffsetX write _SetviewportOffsetX;
  11324. property viewportOffsetY: TConstrainLong read _GetviewportOffsetY write _SetviewportOffsetY;
  11325. property viewportWidth: TConstrainLong read _GetviewportWidth write _SetviewportWidth;
  11326. property viewportHeight: TConstrainLong read _GetviewportHeight write _SetviewportHeight;
  11327. property echoCancellation: TConstrainBoolean read _GetechoCancellation write _SetechoCancellation;
  11328. property noiseSuppression: TConstrainBoolean read _GetnoiseSuppression write _SetnoiseSuppression;
  11329. property autoGainControl: TConstrainBoolean read _GetautoGainControl write _SetautoGainControl;
  11330. property channelCount: TConstrainLong read _GetchannelCount write _SetchannelCount;
  11331. end;
  11332. { --------------------------------------------------------------------
  11333. TJSMediaStreamTrackAudioSourceOptions
  11334. --------------------------------------------------------------------}
  11335. TJSMediaStreamTrackAudioSourceOptionsRec = record
  11336. mediaStreamTrack: TJSMediaStreamTrack;
  11337. end;
  11338. IJSMediaStreamTrackAudioSourceOptions = interface(IJSObject)
  11339. ['{0043C9AD-E680-328C-B85C-F8F8EF1DAB8C}']
  11340. function _GetmediaStreamTrack: IJSMediaStreamTrack;
  11341. procedure _SetmediaStreamTrack(const aValue: IJSMediaStreamTrack);
  11342. property mediaStreamTrack: IJSMediaStreamTrack read _GetmediaStreamTrack write _SetmediaStreamTrack;
  11343. end;
  11344. TJSMediaStreamTrackAudioSourceOptions = class(TJSObject,IJSMediaStreamTrackAudioSourceOptions)
  11345. Protected
  11346. function _GetmediaStreamTrack: IJSMediaStreamTrack;
  11347. procedure _SetmediaStreamTrack(const aValue: IJSMediaStreamTrack);
  11348. Public
  11349. class function JSClassName: UnicodeString; override;
  11350. class function Cast(const Intf: IJSObject): IJSMediaStreamTrackAudioSourceOptions;
  11351. property mediaStreamTrack: IJSMediaStreamTrack read _GetmediaStreamTrack write _SetmediaStreamTrack;
  11352. end;
  11353. { --------------------------------------------------------------------
  11354. TJSMediaTrackSettings
  11355. --------------------------------------------------------------------}
  11356. TJSMediaTrackSettingsRec = record
  11357. width: LongInt;
  11358. height: LongInt;
  11359. frameRate: Double;
  11360. facingMode: UnicodeString;
  11361. echoCancellation: Boolean;
  11362. autoGainControl: Boolean;
  11363. noiseSuppression: Boolean;
  11364. channelCount: LongInt;
  11365. deviceId: UnicodeString;
  11366. groupId: UnicodeString;
  11367. mediaSource: UnicodeString;
  11368. browserWindow: Int64;
  11369. scrollWithPage: Boolean;
  11370. viewportOffsetX: LongInt;
  11371. viewportOffsetY: LongInt;
  11372. viewportWidth: LongInt;
  11373. viewportHeight: LongInt;
  11374. end;
  11375. IJSMediaTrackSettings = interface(IJSObject)
  11376. ['{61729CAE-E6FF-3DF3-A8AD-F09A580D2AC7}']
  11377. function _Getwidth: LongInt;
  11378. function _Getheight: LongInt;
  11379. function _GetframeRate: Double;
  11380. function _GetfacingMode: UnicodeString;
  11381. function _GetechoCancellation: Boolean;
  11382. function _GetautoGainControl: Boolean;
  11383. function _GetnoiseSuppression: Boolean;
  11384. function _GetchannelCount: LongInt;
  11385. function _GetdeviceId: UnicodeString;
  11386. function _GetgroupId: UnicodeString;
  11387. function _GetmediaSource: UnicodeString;
  11388. function _GetbrowserWindow: Int64;
  11389. function _GetscrollWithPage: Boolean;
  11390. function _GetviewportOffsetX: LongInt;
  11391. function _GetviewportOffsetY: LongInt;
  11392. function _GetviewportWidth: LongInt;
  11393. function _GetviewportHeight: LongInt;
  11394. procedure _Setwidth(const aValue: LongInt);
  11395. procedure _Setheight(const aValue: LongInt);
  11396. procedure _SetframeRate(const aValue: Double);
  11397. procedure _SetfacingMode(const aValue: UnicodeString);
  11398. procedure _SetechoCancellation(const aValue: Boolean);
  11399. procedure _SetautoGainControl(const aValue: Boolean);
  11400. procedure _SetnoiseSuppression(const aValue: Boolean);
  11401. procedure _SetchannelCount(const aValue: LongInt);
  11402. procedure _SetdeviceId(const aValue: UnicodeString);
  11403. procedure _SetgroupId(const aValue: UnicodeString);
  11404. procedure _SetmediaSource(const aValue: UnicodeString);
  11405. procedure _SetbrowserWindow(const aValue: Int64);
  11406. procedure _SetscrollWithPage(const aValue: Boolean);
  11407. procedure _SetviewportOffsetX(const aValue: LongInt);
  11408. procedure _SetviewportOffsetY(const aValue: LongInt);
  11409. procedure _SetviewportWidth(const aValue: LongInt);
  11410. procedure _SetviewportHeight(const aValue: LongInt);
  11411. property width: LongInt read _Getwidth write _Setwidth;
  11412. property height: LongInt read _Getheight write _Setheight;
  11413. property frameRate: Double read _GetframeRate write _SetframeRate;
  11414. property facingMode: UnicodeString read _GetfacingMode write _SetfacingMode;
  11415. property echoCancellation: Boolean read _GetechoCancellation write _SetechoCancellation;
  11416. property autoGainControl: Boolean read _GetautoGainControl write _SetautoGainControl;
  11417. property noiseSuppression: Boolean read _GetnoiseSuppression write _SetnoiseSuppression;
  11418. property channelCount: LongInt read _GetchannelCount write _SetchannelCount;
  11419. property deviceId: UnicodeString read _GetdeviceId write _SetdeviceId;
  11420. property groupId: UnicodeString read _GetgroupId write _SetgroupId;
  11421. property mediaSource: UnicodeString read _GetmediaSource write _SetmediaSource;
  11422. property browserWindow: Int64 read _GetbrowserWindow write _SetbrowserWindow;
  11423. property scrollWithPage: Boolean read _GetscrollWithPage write _SetscrollWithPage;
  11424. property viewportOffsetX: LongInt read _GetviewportOffsetX write _SetviewportOffsetX;
  11425. property viewportOffsetY: LongInt read _GetviewportOffsetY write _SetviewportOffsetY;
  11426. property viewportWidth: LongInt read _GetviewportWidth write _SetviewportWidth;
  11427. property viewportHeight: LongInt read _GetviewportHeight write _SetviewportHeight;
  11428. end;
  11429. TJSMediaTrackSettings = class(TJSObject,IJSMediaTrackSettings)
  11430. Protected
  11431. function _Getwidth: LongInt;
  11432. function _Getheight: LongInt;
  11433. function _GetframeRate: Double;
  11434. function _GetfacingMode: UnicodeString;
  11435. function _GetechoCancellation: Boolean;
  11436. function _GetautoGainControl: Boolean;
  11437. function _GetnoiseSuppression: Boolean;
  11438. function _GetchannelCount: LongInt;
  11439. function _GetdeviceId: UnicodeString;
  11440. function _GetgroupId: UnicodeString;
  11441. function _GetmediaSource: UnicodeString;
  11442. function _GetbrowserWindow: Int64;
  11443. function _GetscrollWithPage: Boolean;
  11444. function _GetviewportOffsetX: LongInt;
  11445. function _GetviewportOffsetY: LongInt;
  11446. function _GetviewportWidth: LongInt;
  11447. function _GetviewportHeight: LongInt;
  11448. procedure _Setwidth(const aValue: LongInt);
  11449. procedure _Setheight(const aValue: LongInt);
  11450. procedure _SetframeRate(const aValue: Double);
  11451. procedure _SetfacingMode(const aValue: UnicodeString);
  11452. procedure _SetechoCancellation(const aValue: Boolean);
  11453. procedure _SetautoGainControl(const aValue: Boolean);
  11454. procedure _SetnoiseSuppression(const aValue: Boolean);
  11455. procedure _SetchannelCount(const aValue: LongInt);
  11456. procedure _SetdeviceId(const aValue: UnicodeString);
  11457. procedure _SetgroupId(const aValue: UnicodeString);
  11458. procedure _SetmediaSource(const aValue: UnicodeString);
  11459. procedure _SetbrowserWindow(const aValue: Int64);
  11460. procedure _SetscrollWithPage(const aValue: Boolean);
  11461. procedure _SetviewportOffsetX(const aValue: LongInt);
  11462. procedure _SetviewportOffsetY(const aValue: LongInt);
  11463. procedure _SetviewportWidth(const aValue: LongInt);
  11464. procedure _SetviewportHeight(const aValue: LongInt);
  11465. Public
  11466. class function JSClassName: UnicodeString; override;
  11467. class function Cast(const Intf: IJSObject): IJSMediaTrackSettings;
  11468. property width: LongInt read _Getwidth write _Setwidth;
  11469. property height: LongInt read _Getheight write _Setheight;
  11470. property frameRate: Double read _GetframeRate write _SetframeRate;
  11471. property facingMode: UnicodeString read _GetfacingMode write _SetfacingMode;
  11472. property echoCancellation: Boolean read _GetechoCancellation write _SetechoCancellation;
  11473. property autoGainControl: Boolean read _GetautoGainControl write _SetautoGainControl;
  11474. property noiseSuppression: Boolean read _GetnoiseSuppression write _SetnoiseSuppression;
  11475. property channelCount: LongInt read _GetchannelCount write _SetchannelCount;
  11476. property deviceId: UnicodeString read _GetdeviceId write _SetdeviceId;
  11477. property groupId: UnicodeString read _GetgroupId write _SetgroupId;
  11478. property mediaSource: UnicodeString read _GetmediaSource write _SetmediaSource;
  11479. property browserWindow: Int64 read _GetbrowserWindow write _SetbrowserWindow;
  11480. property scrollWithPage: Boolean read _GetscrollWithPage write _SetscrollWithPage;
  11481. property viewportOffsetX: LongInt read _GetviewportOffsetX write _SetviewportOffsetX;
  11482. property viewportOffsetY: LongInt read _GetviewportOffsetY write _SetviewportOffsetY;
  11483. property viewportWidth: LongInt read _GetviewportWidth write _SetviewportWidth;
  11484. property viewportHeight: LongInt read _GetviewportHeight write _SetviewportHeight;
  11485. end;
  11486. { --------------------------------------------------------------------
  11487. TJSMediaTrackSupportedConstraints
  11488. --------------------------------------------------------------------}
  11489. TJSMediaTrackSupportedConstraintsRec = record
  11490. width: Boolean;
  11491. height: Boolean;
  11492. aspectRatio: Boolean;
  11493. frameRate: Boolean;
  11494. facingMode: Boolean;
  11495. volume: Boolean;
  11496. sampleRate: Boolean;
  11497. sampleSize: Boolean;
  11498. echoCancellation: Boolean;
  11499. noiseSuppression: Boolean;
  11500. autoGainControl: Boolean;
  11501. latency: Boolean;
  11502. channelCount: Boolean;
  11503. deviceId: Boolean;
  11504. groupId: Boolean;
  11505. mediaSource: Boolean;
  11506. browserWindow: Boolean;
  11507. scrollWithPage: Boolean;
  11508. viewportOffsetX: Boolean;
  11509. viewportOffsetY: Boolean;
  11510. viewportWidth: Boolean;
  11511. viewportHeight: Boolean;
  11512. end;
  11513. IJSMediaTrackSupportedConstraints = interface(IJSObject)
  11514. ['{C674D314-AA45-38EB-8169-F967F1F3407B}']
  11515. function _Getwidth: Boolean;
  11516. function _Getheight: Boolean;
  11517. function _GetaspectRatio: Boolean;
  11518. function _GetframeRate: Boolean;
  11519. function _GetfacingMode: Boolean;
  11520. function _Getvolume: Boolean;
  11521. function _GetsampleRate: Boolean;
  11522. function _GetsampleSize: Boolean;
  11523. function _GetechoCancellation: Boolean;
  11524. function _GetnoiseSuppression: Boolean;
  11525. function _GetautoGainControl: Boolean;
  11526. function _Getlatency: Boolean;
  11527. function _GetchannelCount: Boolean;
  11528. function _GetdeviceId: Boolean;
  11529. function _GetgroupId: Boolean;
  11530. function _GetmediaSource: Boolean;
  11531. function _GetbrowserWindow: Boolean;
  11532. function _GetscrollWithPage: Boolean;
  11533. function _GetviewportOffsetX: Boolean;
  11534. function _GetviewportOffsetY: Boolean;
  11535. function _GetviewportWidth: Boolean;
  11536. function _GetviewportHeight: Boolean;
  11537. procedure _Setwidth(const aValue: Boolean);
  11538. procedure _Setheight(const aValue: Boolean);
  11539. procedure _SetaspectRatio(const aValue: Boolean);
  11540. procedure _SetframeRate(const aValue: Boolean);
  11541. procedure _SetfacingMode(const aValue: Boolean);
  11542. procedure _Setvolume(const aValue: Boolean);
  11543. procedure _SetsampleRate(const aValue: Boolean);
  11544. procedure _SetsampleSize(const aValue: Boolean);
  11545. procedure _SetechoCancellation(const aValue: Boolean);
  11546. procedure _SetnoiseSuppression(const aValue: Boolean);
  11547. procedure _SetautoGainControl(const aValue: Boolean);
  11548. procedure _Setlatency(const aValue: Boolean);
  11549. procedure _SetchannelCount(const aValue: Boolean);
  11550. procedure _SetdeviceId(const aValue: Boolean);
  11551. procedure _SetgroupId(const aValue: Boolean);
  11552. procedure _SetmediaSource(const aValue: Boolean);
  11553. procedure _SetbrowserWindow(const aValue: Boolean);
  11554. procedure _SetscrollWithPage(const aValue: Boolean);
  11555. procedure _SetviewportOffsetX(const aValue: Boolean);
  11556. procedure _SetviewportOffsetY(const aValue: Boolean);
  11557. procedure _SetviewportWidth(const aValue: Boolean);
  11558. procedure _SetviewportHeight(const aValue: Boolean);
  11559. property width: Boolean read _Getwidth write _Setwidth;
  11560. property height: Boolean read _Getheight write _Setheight;
  11561. property aspectRatio: Boolean read _GetaspectRatio write _SetaspectRatio;
  11562. property frameRate: Boolean read _GetframeRate write _SetframeRate;
  11563. property facingMode: Boolean read _GetfacingMode write _SetfacingMode;
  11564. property volume: Boolean read _Getvolume write _Setvolume;
  11565. property sampleRate: Boolean read _GetsampleRate write _SetsampleRate;
  11566. property sampleSize: Boolean read _GetsampleSize write _SetsampleSize;
  11567. property echoCancellation: Boolean read _GetechoCancellation write _SetechoCancellation;
  11568. property noiseSuppression: Boolean read _GetnoiseSuppression write _SetnoiseSuppression;
  11569. property autoGainControl: Boolean read _GetautoGainControl write _SetautoGainControl;
  11570. property latency: Boolean read _Getlatency write _Setlatency;
  11571. property channelCount: Boolean read _GetchannelCount write _SetchannelCount;
  11572. property deviceId: Boolean read _GetdeviceId write _SetdeviceId;
  11573. property groupId: Boolean read _GetgroupId write _SetgroupId;
  11574. property mediaSource: Boolean read _GetmediaSource write _SetmediaSource;
  11575. property browserWindow: Boolean read _GetbrowserWindow write _SetbrowserWindow;
  11576. property scrollWithPage: Boolean read _GetscrollWithPage write _SetscrollWithPage;
  11577. property viewportOffsetX: Boolean read _GetviewportOffsetX write _SetviewportOffsetX;
  11578. property viewportOffsetY: Boolean read _GetviewportOffsetY write _SetviewportOffsetY;
  11579. property viewportWidth: Boolean read _GetviewportWidth write _SetviewportWidth;
  11580. property viewportHeight: Boolean read _GetviewportHeight write _SetviewportHeight;
  11581. end;
  11582. TJSMediaTrackSupportedConstraints = class(TJSObject,IJSMediaTrackSupportedConstraints)
  11583. Protected
  11584. function _Getwidth: Boolean;
  11585. function _Getheight: Boolean;
  11586. function _GetaspectRatio: Boolean;
  11587. function _GetframeRate: Boolean;
  11588. function _GetfacingMode: Boolean;
  11589. function _Getvolume: Boolean;
  11590. function _GetsampleRate: Boolean;
  11591. function _GetsampleSize: Boolean;
  11592. function _GetechoCancellation: Boolean;
  11593. function _GetnoiseSuppression: Boolean;
  11594. function _GetautoGainControl: Boolean;
  11595. function _Getlatency: Boolean;
  11596. function _GetchannelCount: Boolean;
  11597. function _GetdeviceId: Boolean;
  11598. function _GetgroupId: Boolean;
  11599. function _GetmediaSource: Boolean;
  11600. function _GetbrowserWindow: Boolean;
  11601. function _GetscrollWithPage: Boolean;
  11602. function _GetviewportOffsetX: Boolean;
  11603. function _GetviewportOffsetY: Boolean;
  11604. function _GetviewportWidth: Boolean;
  11605. function _GetviewportHeight: Boolean;
  11606. procedure _Setwidth(const aValue: Boolean);
  11607. procedure _Setheight(const aValue: Boolean);
  11608. procedure _SetaspectRatio(const aValue: Boolean);
  11609. procedure _SetframeRate(const aValue: Boolean);
  11610. procedure _SetfacingMode(const aValue: Boolean);
  11611. procedure _Setvolume(const aValue: Boolean);
  11612. procedure _SetsampleRate(const aValue: Boolean);
  11613. procedure _SetsampleSize(const aValue: Boolean);
  11614. procedure _SetechoCancellation(const aValue: Boolean);
  11615. procedure _SetnoiseSuppression(const aValue: Boolean);
  11616. procedure _SetautoGainControl(const aValue: Boolean);
  11617. procedure _Setlatency(const aValue: Boolean);
  11618. procedure _SetchannelCount(const aValue: Boolean);
  11619. procedure _SetdeviceId(const aValue: Boolean);
  11620. procedure _SetgroupId(const aValue: Boolean);
  11621. procedure _SetmediaSource(const aValue: Boolean);
  11622. procedure _SetbrowserWindow(const aValue: Boolean);
  11623. procedure _SetscrollWithPage(const aValue: Boolean);
  11624. procedure _SetviewportOffsetX(const aValue: Boolean);
  11625. procedure _SetviewportOffsetY(const aValue: Boolean);
  11626. procedure _SetviewportWidth(const aValue: Boolean);
  11627. procedure _SetviewportHeight(const aValue: Boolean);
  11628. Public
  11629. class function JSClassName: UnicodeString; override;
  11630. class function Cast(const Intf: IJSObject): IJSMediaTrackSupportedConstraints;
  11631. property width: Boolean read _Getwidth write _Setwidth;
  11632. property height: Boolean read _Getheight write _Setheight;
  11633. property aspectRatio: Boolean read _GetaspectRatio write _SetaspectRatio;
  11634. property frameRate: Boolean read _GetframeRate write _SetframeRate;
  11635. property facingMode: Boolean read _GetfacingMode write _SetfacingMode;
  11636. property volume: Boolean read _Getvolume write _Setvolume;
  11637. property sampleRate: Boolean read _GetsampleRate write _SetsampleRate;
  11638. property sampleSize: Boolean read _GetsampleSize write _SetsampleSize;
  11639. property echoCancellation: Boolean read _GetechoCancellation write _SetechoCancellation;
  11640. property noiseSuppression: Boolean read _GetnoiseSuppression write _SetnoiseSuppression;
  11641. property autoGainControl: Boolean read _GetautoGainControl write _SetautoGainControl;
  11642. property latency: Boolean read _Getlatency write _Setlatency;
  11643. property channelCount: Boolean read _GetchannelCount write _SetchannelCount;
  11644. property deviceId: Boolean read _GetdeviceId write _SetdeviceId;
  11645. property groupId: Boolean read _GetgroupId write _SetgroupId;
  11646. property mediaSource: Boolean read _GetmediaSource write _SetmediaSource;
  11647. property browserWindow: Boolean read _GetbrowserWindow write _SetbrowserWindow;
  11648. property scrollWithPage: Boolean read _GetscrollWithPage write _SetscrollWithPage;
  11649. property viewportOffsetX: Boolean read _GetviewportOffsetX write _SetviewportOffsetX;
  11650. property viewportOffsetY: Boolean read _GetviewportOffsetY write _SetviewportOffsetY;
  11651. property viewportWidth: Boolean read _GetviewportWidth write _SetviewportWidth;
  11652. property viewportHeight: Boolean read _GetviewportHeight write _SetviewportHeight;
  11653. end;
  11654. { --------------------------------------------------------------------
  11655. TJSStructuredSerializeOptions
  11656. --------------------------------------------------------------------}
  11657. TIJSObjectDynArray = IJSArray; // array of object
  11658. TJSStructuredSerializeOptionsRec = record
  11659. transfer: TIJSObjectDynArray;
  11660. end;
  11661. IJSStructuredSerializeOptions = interface(IJSObject)
  11662. ['{250264B9-D3BE-3B26-9B44-F6E895479165}']
  11663. function _Gettransfer: TIJSObjectDynArray;
  11664. procedure _Settransfer(const aValue: TIJSObjectDynArray);
  11665. property transfer: TIJSObjectDynArray read _Gettransfer write _Settransfer;
  11666. end;
  11667. TJSStructuredSerializeOptions = class(TJSObject,IJSStructuredSerializeOptions)
  11668. Protected
  11669. function _Gettransfer: TIJSObjectDynArray;
  11670. procedure _Settransfer(const aValue: TIJSObjectDynArray);
  11671. Public
  11672. class function JSClassName: UnicodeString; override;
  11673. class function Cast(const Intf: IJSObject): IJSStructuredSerializeOptions;
  11674. property transfer: TIJSObjectDynArray read _Gettransfer write _Settransfer;
  11675. end;
  11676. { --------------------------------------------------------------------
  11677. TJSMIDIOptions
  11678. --------------------------------------------------------------------}
  11679. TJSMIDIOptionsRec = record
  11680. sysex: Boolean;
  11681. software: Boolean;
  11682. end;
  11683. IJSMIDIOptions = interface(IJSObject)
  11684. ['{7ADF4ADB-D8AB-3C5D-83CE-89C3C620D75E}']
  11685. function _Getsysex: Boolean;
  11686. function _Getsoftware: Boolean;
  11687. procedure _Setsysex(const aValue: Boolean);
  11688. procedure _Setsoftware(const aValue: Boolean);
  11689. property sysex: Boolean read _Getsysex write _Setsysex;
  11690. property software: Boolean read _Getsoftware write _Setsoftware;
  11691. end;
  11692. TJSMIDIOptions = class(TJSObject,IJSMIDIOptions)
  11693. Protected
  11694. function _Getsysex: Boolean;
  11695. function _Getsoftware: Boolean;
  11696. procedure _Setsysex(const aValue: Boolean);
  11697. procedure _Setsoftware(const aValue: Boolean);
  11698. Public
  11699. class function JSClassName: UnicodeString; override;
  11700. class function Cast(const Intf: IJSObject): IJSMIDIOptions;
  11701. property sysex: Boolean read _Getsysex write _Setsysex;
  11702. property software: Boolean read _Getsoftware write _Setsoftware;
  11703. end;
  11704. { --------------------------------------------------------------------
  11705. TJSRemotenessOptions
  11706. --------------------------------------------------------------------}
  11707. TJSRemotenessOptionsRec = record
  11708. remoteType: UTF8String;
  11709. pendingSwitchID: QWord;
  11710. switchingInProgressLoad: Boolean;
  11711. end;
  11712. IJSRemotenessOptions = interface(IJSObject)
  11713. ['{F276C059-753B-3FD0-AF6F-4545D9BC3C21}']
  11714. function _GetremoteType: UTF8String;
  11715. function _GetpendingSwitchID: QWord;
  11716. function _GetswitchingInProgressLoad: Boolean;
  11717. procedure _SetremoteType(const aValue: UTF8String);
  11718. procedure _SetpendingSwitchID(const aValue: QWord);
  11719. procedure _SetswitchingInProgressLoad(const aValue: Boolean);
  11720. property remoteType: UTF8String read _GetremoteType write _SetremoteType;
  11721. property pendingSwitchID: QWord read _GetpendingSwitchID write _SetpendingSwitchID;
  11722. property switchingInProgressLoad: Boolean read _GetswitchingInProgressLoad write _SetswitchingInProgressLoad;
  11723. end;
  11724. TJSRemotenessOptions = class(TJSObject,IJSRemotenessOptions)
  11725. Protected
  11726. function _GetremoteType: UTF8String;
  11727. function _GetpendingSwitchID: QWord;
  11728. function _GetswitchingInProgressLoad: Boolean;
  11729. procedure _SetremoteType(const aValue: UTF8String);
  11730. procedure _SetpendingSwitchID(const aValue: QWord);
  11731. procedure _SetswitchingInProgressLoad(const aValue: Boolean);
  11732. Public
  11733. class function JSClassName: UnicodeString; override;
  11734. class function Cast(const Intf: IJSObject): IJSRemotenessOptions;
  11735. property remoteType: UTF8String read _GetremoteType write _SetremoteType;
  11736. property pendingSwitchID: QWord read _GetpendingSwitchID write _SetpendingSwitchID;
  11737. property switchingInProgressLoad: Boolean read _GetswitchingInProgressLoad write _SetswitchingInProgressLoad;
  11738. end;
  11739. { --------------------------------------------------------------------
  11740. TJSMutationObserverInit
  11741. --------------------------------------------------------------------}
  11742. TJSMutationObserverInitRec = record
  11743. childList: Boolean;
  11744. attributes: Boolean;
  11745. characterData: Boolean;
  11746. subtree: Boolean;
  11747. attributeOldValue: Boolean;
  11748. characterDataOldValue: Boolean;
  11749. attributeFilter: TUnicodeStringDynArray;
  11750. end;
  11751. IJSMutationObserverInit = interface(IJSObject)
  11752. ['{62BA9DA2-1266-3098-97C6-03B741D59665}']
  11753. function _GetchildList: Boolean;
  11754. function _Getattributes: Boolean;
  11755. function _GetcharacterData: Boolean;
  11756. function _Getsubtree: Boolean;
  11757. function _GetattributeOldValue: Boolean;
  11758. function _GetcharacterDataOldValue: Boolean;
  11759. function _GetattributeFilter: TUnicodeStringDynArray;
  11760. procedure _SetchildList(const aValue: Boolean);
  11761. procedure _Setattributes(const aValue: Boolean);
  11762. procedure _SetcharacterData(const aValue: Boolean);
  11763. procedure _Setsubtree(const aValue: Boolean);
  11764. procedure _SetattributeOldValue(const aValue: Boolean);
  11765. procedure _SetcharacterDataOldValue(const aValue: Boolean);
  11766. procedure _SetattributeFilter(const aValue: TUnicodeStringDynArray);
  11767. property childList: Boolean read _GetchildList write _SetchildList;
  11768. property attributes: Boolean read _Getattributes write _Setattributes;
  11769. property characterData: Boolean read _GetcharacterData write _SetcharacterData;
  11770. property subtree: Boolean read _Getsubtree write _Setsubtree;
  11771. property attributeOldValue: Boolean read _GetattributeOldValue write _SetattributeOldValue;
  11772. property characterDataOldValue: Boolean read _GetcharacterDataOldValue write _SetcharacterDataOldValue;
  11773. property attributeFilter: TUnicodeStringDynArray read _GetattributeFilter write _SetattributeFilter;
  11774. end;
  11775. TJSMutationObserverInit = class(TJSObject,IJSMutationObserverInit)
  11776. Protected
  11777. function _GetchildList: Boolean;
  11778. function _Getattributes: Boolean;
  11779. function _GetcharacterData: Boolean;
  11780. function _Getsubtree: Boolean;
  11781. function _GetattributeOldValue: Boolean;
  11782. function _GetcharacterDataOldValue: Boolean;
  11783. function _GetattributeFilter: TUnicodeStringDynArray;
  11784. procedure _SetchildList(const aValue: Boolean);
  11785. procedure _Setattributes(const aValue: Boolean);
  11786. procedure _SetcharacterData(const aValue: Boolean);
  11787. procedure _Setsubtree(const aValue: Boolean);
  11788. procedure _SetattributeOldValue(const aValue: Boolean);
  11789. procedure _SetcharacterDataOldValue(const aValue: Boolean);
  11790. procedure _SetattributeFilter(const aValue: TUnicodeStringDynArray);
  11791. Public
  11792. class function JSClassName: UnicodeString; override;
  11793. class function Cast(const Intf: IJSObject): IJSMutationObserverInit;
  11794. property childList: Boolean read _GetchildList write _SetchildList;
  11795. property attributes: Boolean read _Getattributes write _Setattributes;
  11796. property characterData: Boolean read _GetcharacterData write _SetcharacterData;
  11797. property subtree: Boolean read _Getsubtree write _Setsubtree;
  11798. property attributeOldValue: Boolean read _GetattributeOldValue write _SetattributeOldValue;
  11799. property characterDataOldValue: Boolean read _GetcharacterDataOldValue write _SetcharacterDataOldValue;
  11800. property attributeFilter: TUnicodeStringDynArray read _GetattributeFilter write _SetattributeFilter;
  11801. end;
  11802. { --------------------------------------------------------------------
  11803. TJSNavigationPreloadState
  11804. --------------------------------------------------------------------}
  11805. TJSNavigationPreloadStateRec = record
  11806. enabled: Boolean;
  11807. headerValue: UnicodeString;
  11808. end;
  11809. IJSNavigationPreloadState = interface(IJSObject)
  11810. ['{E6733B75-06EE-3662-8070-88DA8305FF01}']
  11811. function _Getenabled: Boolean;
  11812. function _GetheaderValue: UnicodeString;
  11813. procedure _Setenabled(const aValue: Boolean);
  11814. procedure _SetheaderValue(const aValue: UnicodeString);
  11815. property enabled: Boolean read _Getenabled write _Setenabled;
  11816. property headerValue: UnicodeString read _GetheaderValue write _SetheaderValue;
  11817. end;
  11818. TJSNavigationPreloadState = class(TJSObject,IJSNavigationPreloadState)
  11819. Protected
  11820. function _Getenabled: Boolean;
  11821. function _GetheaderValue: UnicodeString;
  11822. procedure _Setenabled(const aValue: Boolean);
  11823. procedure _SetheaderValue(const aValue: UnicodeString);
  11824. Public
  11825. class function JSClassName: UnicodeString; override;
  11826. class function Cast(const Intf: IJSObject): IJSNavigationPreloadState;
  11827. property enabled: Boolean read _Getenabled write _Setenabled;
  11828. property headerValue: UnicodeString read _GetheaderValue write _SetheaderValue;
  11829. end;
  11830. { --------------------------------------------------------------------
  11831. TJSShareData
  11832. --------------------------------------------------------------------}
  11833. TJSFileDynArray = IJSArray; // array of File
  11834. TJSShareDataRec = record
  11835. title: UnicodeString;
  11836. text: UnicodeString;
  11837. url: UnicodeString;
  11838. files: TJSFileDynArray;
  11839. end;
  11840. IJSShareData = interface(IJSObject)
  11841. ['{26C18B97-DA8C-34C6-84AE-AD43C23C7F80}']
  11842. function _Gettitle: UnicodeString;
  11843. function _Gettext: UnicodeString;
  11844. function _Geturl: UnicodeString;
  11845. function _Getfiles: TJSFileDynArray;
  11846. procedure _Settitle(const aValue: UnicodeString);
  11847. procedure _Settext(const aValue: UnicodeString);
  11848. procedure _Seturl(const aValue: UnicodeString);
  11849. procedure _Setfiles(const aValue: TJSFileDynArray);
  11850. property title: UnicodeString read _Gettitle write _Settitle;
  11851. property text: UnicodeString read _Gettext write _Settext;
  11852. property url: UnicodeString read _Geturl write _Seturl;
  11853. property files: TJSFileDynArray read _Getfiles write _Setfiles;
  11854. end;
  11855. TJSShareData = class(TJSObject,IJSShareData)
  11856. Protected
  11857. function _Gettitle: UnicodeString;
  11858. function _Gettext: UnicodeString;
  11859. function _Geturl: UnicodeString;
  11860. function _Getfiles: TJSFileDynArray;
  11861. procedure _Settitle(const aValue: UnicodeString);
  11862. procedure _Settext(const aValue: UnicodeString);
  11863. procedure _Seturl(const aValue: UnicodeString);
  11864. procedure _Setfiles(const aValue: TJSFileDynArray);
  11865. Public
  11866. class function JSClassName: UnicodeString; override;
  11867. class function Cast(const Intf: IJSObject): IJSShareData;
  11868. property title: UnicodeString read _Gettitle write _Settitle;
  11869. property text: UnicodeString read _Gettext write _Settext;
  11870. property url: UnicodeString read _Geturl write _Seturl;
  11871. property files: TJSFileDynArray read _Getfiles write _Setfiles;
  11872. end;
  11873. { --------------------------------------------------------------------
  11874. TJSNetErrorInfo
  11875. --------------------------------------------------------------------}
  11876. TJSNetErrorInfoRec = record
  11877. errorCodeString: UnicodeString;
  11878. end;
  11879. IJSNetErrorInfo = interface(IJSObject)
  11880. ['{3B13A407-3DFB-3271-9145-5B0134E6E2D1}']
  11881. function _GeterrorCodeString: UnicodeString;
  11882. procedure _SeterrorCodeString(const aValue: UnicodeString);
  11883. property errorCodeString: UnicodeString read _GeterrorCodeString write _SeterrorCodeString;
  11884. end;
  11885. TJSNetErrorInfo = class(TJSObject,IJSNetErrorInfo)
  11886. Protected
  11887. function _GeterrorCodeString: UnicodeString;
  11888. procedure _SeterrorCodeString(const aValue: UnicodeString);
  11889. Public
  11890. class function JSClassName: UnicodeString; override;
  11891. class function Cast(const Intf: IJSObject): IJSNetErrorInfo;
  11892. property errorCodeString: UnicodeString read _GeterrorCodeString write _SeterrorCodeString;
  11893. end;
  11894. { --------------------------------------------------------------------
  11895. TJSNetworkCommandOptions
  11896. --------------------------------------------------------------------}
  11897. TJSNetworkCommandOptionsRec = record
  11898. id: LongInt;
  11899. cmd: UnicodeString;
  11900. ifname: UnicodeString;
  11901. ip: UnicodeString;
  11902. prefixLength: Cardinal;
  11903. domain: UnicodeString;
  11904. dnses: TUnicodeStringDynArray;
  11905. gateway: UnicodeString;
  11906. gateways: TUnicodeStringDynArray;
  11907. mode: UnicodeString;
  11908. report: Boolean;
  11909. enabled: Boolean;
  11910. wifictrlinterfacename: UnicodeString;
  11911. internalIfname: UnicodeString;
  11912. externalIfname: UnicodeString;
  11913. enable: Boolean;
  11914. ssid: UnicodeString;
  11915. security: UnicodeString;
  11916. key: UnicodeString;
  11917. prefix: UnicodeString;
  11918. link: UnicodeString;
  11919. interfaceList: TUnicodeStringDynArray;
  11920. wifiStartIp: UnicodeString;
  11921. wifiEndIp: UnicodeString;
  11922. usbStartIp: UnicodeString;
  11923. usbEndIp: UnicodeString;
  11924. dns1: UnicodeString;
  11925. dns2: UnicodeString;
  11926. threshold: Int64;
  11927. startIp: UnicodeString;
  11928. endIp: UnicodeString;
  11929. serverIp: UnicodeString;
  11930. maskLength: UnicodeString;
  11931. preInternalIfname: UnicodeString;
  11932. preExternalIfname: UnicodeString;
  11933. curInternalIfname: UnicodeString;
  11934. curExternalIfname: UnicodeString;
  11935. ipaddr: LongInt;
  11936. mask: LongInt;
  11937. gateway_long: LongInt;
  11938. dns1_long: LongInt;
  11939. dns2_long: LongInt;
  11940. mtu: LongInt;
  11941. end;
  11942. IJSNetworkCommandOptions = interface(IJSObject)
  11943. ['{A82D88E2-F6B3-3A6D-80DE-04B513762C55}']
  11944. function _Getid: LongInt;
  11945. function _Getcmd: UnicodeString;
  11946. function _Getifname: UnicodeString;
  11947. function _Getip: UnicodeString;
  11948. function _GetprefixLength: Cardinal;
  11949. function _Getdomain: UnicodeString;
  11950. function _Getdnses: TUnicodeStringDynArray;
  11951. function _Getgateway: UnicodeString;
  11952. function _Getgateways: TUnicodeStringDynArray;
  11953. function _Getmode: UnicodeString;
  11954. function _Getreport: Boolean;
  11955. function _Getenabled: Boolean;
  11956. function _Getwifictrlinterfacename: UnicodeString;
  11957. function _GetinternalIfname: UnicodeString;
  11958. function _GetexternalIfname: UnicodeString;
  11959. function _Getenable: Boolean;
  11960. function _Getssid: UnicodeString;
  11961. function _Getsecurity: UnicodeString;
  11962. function _Getkey: UnicodeString;
  11963. function _Getprefix: UnicodeString;
  11964. function _Getlink: UnicodeString;
  11965. function _GetinterfaceList: TUnicodeStringDynArray;
  11966. function _GetwifiStartIp: UnicodeString;
  11967. function _GetwifiEndIp: UnicodeString;
  11968. function _GetusbStartIp: UnicodeString;
  11969. function _GetusbEndIp: UnicodeString;
  11970. function _Getdns1: UnicodeString;
  11971. function _Getdns2: UnicodeString;
  11972. function _Getthreshold: Int64;
  11973. function _GetstartIp: UnicodeString;
  11974. function _GetendIp: UnicodeString;
  11975. function _GetserverIp: UnicodeString;
  11976. function _GetmaskLength: UnicodeString;
  11977. function _GetpreInternalIfname: UnicodeString;
  11978. function _GetpreExternalIfname: UnicodeString;
  11979. function _GetcurInternalIfname: UnicodeString;
  11980. function _GetcurExternalIfname: UnicodeString;
  11981. function _Getipaddr: LongInt;
  11982. function _Getmask: LongInt;
  11983. function _Getgateway_long: LongInt;
  11984. function _Getdns1_long: LongInt;
  11985. function _Getdns2_long: LongInt;
  11986. function _Getmtu: LongInt;
  11987. procedure _Setid(const aValue: LongInt);
  11988. procedure _Setcmd(const aValue: UnicodeString);
  11989. procedure _Setifname(const aValue: UnicodeString);
  11990. procedure _Setip(const aValue: UnicodeString);
  11991. procedure _SetprefixLength(const aValue: Cardinal);
  11992. procedure _Setdomain(const aValue: UnicodeString);
  11993. procedure _Setdnses(const aValue: TUnicodeStringDynArray);
  11994. procedure _Setgateway(const aValue: UnicodeString);
  11995. procedure _Setgateways(const aValue: TUnicodeStringDynArray);
  11996. procedure _Setmode(const aValue: UnicodeString);
  11997. procedure _Setreport(const aValue: Boolean);
  11998. procedure _Setenabled(const aValue: Boolean);
  11999. procedure _Setwifictrlinterfacename(const aValue: UnicodeString);
  12000. procedure _SetinternalIfname(const aValue: UnicodeString);
  12001. procedure _SetexternalIfname(const aValue: UnicodeString);
  12002. procedure _Setenable(const aValue: Boolean);
  12003. procedure _Setssid(const aValue: UnicodeString);
  12004. procedure _Setsecurity(const aValue: UnicodeString);
  12005. procedure _Setkey(const aValue: UnicodeString);
  12006. procedure _Setprefix(const aValue: UnicodeString);
  12007. procedure _Setlink(const aValue: UnicodeString);
  12008. procedure _SetinterfaceList(const aValue: TUnicodeStringDynArray);
  12009. procedure _SetwifiStartIp(const aValue: UnicodeString);
  12010. procedure _SetwifiEndIp(const aValue: UnicodeString);
  12011. procedure _SetusbStartIp(const aValue: UnicodeString);
  12012. procedure _SetusbEndIp(const aValue: UnicodeString);
  12013. procedure _Setdns1(const aValue: UnicodeString);
  12014. procedure _Setdns2(const aValue: UnicodeString);
  12015. procedure _Setthreshold(const aValue: Int64);
  12016. procedure _SetstartIp(const aValue: UnicodeString);
  12017. procedure _SetendIp(const aValue: UnicodeString);
  12018. procedure _SetserverIp(const aValue: UnicodeString);
  12019. procedure _SetmaskLength(const aValue: UnicodeString);
  12020. procedure _SetpreInternalIfname(const aValue: UnicodeString);
  12021. procedure _SetpreExternalIfname(const aValue: UnicodeString);
  12022. procedure _SetcurInternalIfname(const aValue: UnicodeString);
  12023. procedure _SetcurExternalIfname(const aValue: UnicodeString);
  12024. procedure _Setipaddr(const aValue: LongInt);
  12025. procedure _Setmask(const aValue: LongInt);
  12026. procedure _Setgateway_long(const aValue: LongInt);
  12027. procedure _Setdns1_long(const aValue: LongInt);
  12028. procedure _Setdns2_long(const aValue: LongInt);
  12029. procedure _Setmtu(const aValue: LongInt);
  12030. property id: LongInt read _Getid write _Setid;
  12031. property cmd: UnicodeString read _Getcmd write _Setcmd;
  12032. property ifname: UnicodeString read _Getifname write _Setifname;
  12033. property ip: UnicodeString read _Getip write _Setip;
  12034. property prefixLength: Cardinal read _GetprefixLength write _SetprefixLength;
  12035. property domain: UnicodeString read _Getdomain write _Setdomain;
  12036. property dnses: TUnicodeStringDynArray read _Getdnses write _Setdnses;
  12037. property gateway: UnicodeString read _Getgateway write _Setgateway;
  12038. property gateways: TUnicodeStringDynArray read _Getgateways write _Setgateways;
  12039. property mode: UnicodeString read _Getmode write _Setmode;
  12040. property report: Boolean read _Getreport write _Setreport;
  12041. property enabled: Boolean read _Getenabled write _Setenabled;
  12042. property wifictrlinterfacename: UnicodeString read _Getwifictrlinterfacename write _Setwifictrlinterfacename;
  12043. property internalIfname: UnicodeString read _GetinternalIfname write _SetinternalIfname;
  12044. property externalIfname: UnicodeString read _GetexternalIfname write _SetexternalIfname;
  12045. property enable: Boolean read _Getenable write _Setenable;
  12046. property ssid: UnicodeString read _Getssid write _Setssid;
  12047. property security: UnicodeString read _Getsecurity write _Setsecurity;
  12048. property key: UnicodeString read _Getkey write _Setkey;
  12049. property prefix: UnicodeString read _Getprefix write _Setprefix;
  12050. property link: UnicodeString read _Getlink write _Setlink;
  12051. property interfaceList: TUnicodeStringDynArray read _GetinterfaceList write _SetinterfaceList;
  12052. property wifiStartIp: UnicodeString read _GetwifiStartIp write _SetwifiStartIp;
  12053. property wifiEndIp: UnicodeString read _GetwifiEndIp write _SetwifiEndIp;
  12054. property usbStartIp: UnicodeString read _GetusbStartIp write _SetusbStartIp;
  12055. property usbEndIp: UnicodeString read _GetusbEndIp write _SetusbEndIp;
  12056. property dns1: UnicodeString read _Getdns1 write _Setdns1;
  12057. property dns2: UnicodeString read _Getdns2 write _Setdns2;
  12058. property threshold: Int64 read _Getthreshold write _Setthreshold;
  12059. property startIp: UnicodeString read _GetstartIp write _SetstartIp;
  12060. property endIp: UnicodeString read _GetendIp write _SetendIp;
  12061. property serverIp: UnicodeString read _GetserverIp write _SetserverIp;
  12062. property maskLength: UnicodeString read _GetmaskLength write _SetmaskLength;
  12063. property preInternalIfname: UnicodeString read _GetpreInternalIfname write _SetpreInternalIfname;
  12064. property preExternalIfname: UnicodeString read _GetpreExternalIfname write _SetpreExternalIfname;
  12065. property curInternalIfname: UnicodeString read _GetcurInternalIfname write _SetcurInternalIfname;
  12066. property curExternalIfname: UnicodeString read _GetcurExternalIfname write _SetcurExternalIfname;
  12067. property ipaddr: LongInt read _Getipaddr write _Setipaddr;
  12068. property mask: LongInt read _Getmask write _Setmask;
  12069. property gateway_long: LongInt read _Getgateway_long write _Setgateway_long;
  12070. property dns1_long: LongInt read _Getdns1_long write _Setdns1_long;
  12071. property dns2_long: LongInt read _Getdns2_long write _Setdns2_long;
  12072. property mtu: LongInt read _Getmtu write _Setmtu;
  12073. end;
  12074. TJSNetworkCommandOptions = class(TJSObject,IJSNetworkCommandOptions)
  12075. Protected
  12076. function _Getid: LongInt;
  12077. function _Getcmd: UnicodeString;
  12078. function _Getifname: UnicodeString;
  12079. function _Getip: UnicodeString;
  12080. function _GetprefixLength: Cardinal;
  12081. function _Getdomain: UnicodeString;
  12082. function _Getdnses: TUnicodeStringDynArray;
  12083. function _Getgateway: UnicodeString;
  12084. function _Getgateways: TUnicodeStringDynArray;
  12085. function _Getmode: UnicodeString;
  12086. function _Getreport: Boolean;
  12087. function _Getenabled: Boolean;
  12088. function _Getwifictrlinterfacename: UnicodeString;
  12089. function _GetinternalIfname: UnicodeString;
  12090. function _GetexternalIfname: UnicodeString;
  12091. function _Getenable: Boolean;
  12092. function _Getssid: UnicodeString;
  12093. function _Getsecurity: UnicodeString;
  12094. function _Getkey: UnicodeString;
  12095. function _Getprefix: UnicodeString;
  12096. function _Getlink: UnicodeString;
  12097. function _GetinterfaceList: TUnicodeStringDynArray;
  12098. function _GetwifiStartIp: UnicodeString;
  12099. function _GetwifiEndIp: UnicodeString;
  12100. function _GetusbStartIp: UnicodeString;
  12101. function _GetusbEndIp: UnicodeString;
  12102. function _Getdns1: UnicodeString;
  12103. function _Getdns2: UnicodeString;
  12104. function _Getthreshold: Int64;
  12105. function _GetstartIp: UnicodeString;
  12106. function _GetendIp: UnicodeString;
  12107. function _GetserverIp: UnicodeString;
  12108. function _GetmaskLength: UnicodeString;
  12109. function _GetpreInternalIfname: UnicodeString;
  12110. function _GetpreExternalIfname: UnicodeString;
  12111. function _GetcurInternalIfname: UnicodeString;
  12112. function _GetcurExternalIfname: UnicodeString;
  12113. function _Getipaddr: LongInt;
  12114. function _Getmask: LongInt;
  12115. function _Getgateway_long: LongInt;
  12116. function _Getdns1_long: LongInt;
  12117. function _Getdns2_long: LongInt;
  12118. function _Getmtu: LongInt;
  12119. procedure _Setid(const aValue: LongInt);
  12120. procedure _Setcmd(const aValue: UnicodeString);
  12121. procedure _Setifname(const aValue: UnicodeString);
  12122. procedure _Setip(const aValue: UnicodeString);
  12123. procedure _SetprefixLength(const aValue: Cardinal);
  12124. procedure _Setdomain(const aValue: UnicodeString);
  12125. procedure _Setdnses(const aValue: TUnicodeStringDynArray);
  12126. procedure _Setgateway(const aValue: UnicodeString);
  12127. procedure _Setgateways(const aValue: TUnicodeStringDynArray);
  12128. procedure _Setmode(const aValue: UnicodeString);
  12129. procedure _Setreport(const aValue: Boolean);
  12130. procedure _Setenabled(const aValue: Boolean);
  12131. procedure _Setwifictrlinterfacename(const aValue: UnicodeString);
  12132. procedure _SetinternalIfname(const aValue: UnicodeString);
  12133. procedure _SetexternalIfname(const aValue: UnicodeString);
  12134. procedure _Setenable(const aValue: Boolean);
  12135. procedure _Setssid(const aValue: UnicodeString);
  12136. procedure _Setsecurity(const aValue: UnicodeString);
  12137. procedure _Setkey(const aValue: UnicodeString);
  12138. procedure _Setprefix(const aValue: UnicodeString);
  12139. procedure _Setlink(const aValue: UnicodeString);
  12140. procedure _SetinterfaceList(const aValue: TUnicodeStringDynArray);
  12141. procedure _SetwifiStartIp(const aValue: UnicodeString);
  12142. procedure _SetwifiEndIp(const aValue: UnicodeString);
  12143. procedure _SetusbStartIp(const aValue: UnicodeString);
  12144. procedure _SetusbEndIp(const aValue: UnicodeString);
  12145. procedure _Setdns1(const aValue: UnicodeString);
  12146. procedure _Setdns2(const aValue: UnicodeString);
  12147. procedure _Setthreshold(const aValue: Int64);
  12148. procedure _SetstartIp(const aValue: UnicodeString);
  12149. procedure _SetendIp(const aValue: UnicodeString);
  12150. procedure _SetserverIp(const aValue: UnicodeString);
  12151. procedure _SetmaskLength(const aValue: UnicodeString);
  12152. procedure _SetpreInternalIfname(const aValue: UnicodeString);
  12153. procedure _SetpreExternalIfname(const aValue: UnicodeString);
  12154. procedure _SetcurInternalIfname(const aValue: UnicodeString);
  12155. procedure _SetcurExternalIfname(const aValue: UnicodeString);
  12156. procedure _Setipaddr(const aValue: LongInt);
  12157. procedure _Setmask(const aValue: LongInt);
  12158. procedure _Setgateway_long(const aValue: LongInt);
  12159. procedure _Setdns1_long(const aValue: LongInt);
  12160. procedure _Setdns2_long(const aValue: LongInt);
  12161. procedure _Setmtu(const aValue: LongInt);
  12162. Public
  12163. class function JSClassName: UnicodeString; override;
  12164. class function Cast(const Intf: IJSObject): IJSNetworkCommandOptions;
  12165. property id: LongInt read _Getid write _Setid;
  12166. property cmd: UnicodeString read _Getcmd write _Setcmd;
  12167. property ifname: UnicodeString read _Getifname write _Setifname;
  12168. property ip: UnicodeString read _Getip write _Setip;
  12169. property prefixLength: Cardinal read _GetprefixLength write _SetprefixLength;
  12170. property domain: UnicodeString read _Getdomain write _Setdomain;
  12171. property dnses: TUnicodeStringDynArray read _Getdnses write _Setdnses;
  12172. property gateway: UnicodeString read _Getgateway write _Setgateway;
  12173. property gateways: TUnicodeStringDynArray read _Getgateways write _Setgateways;
  12174. property mode: UnicodeString read _Getmode write _Setmode;
  12175. property report: Boolean read _Getreport write _Setreport;
  12176. property enabled: Boolean read _Getenabled write _Setenabled;
  12177. property wifictrlinterfacename: UnicodeString read _Getwifictrlinterfacename write _Setwifictrlinterfacename;
  12178. property internalIfname: UnicodeString read _GetinternalIfname write _SetinternalIfname;
  12179. property externalIfname: UnicodeString read _GetexternalIfname write _SetexternalIfname;
  12180. property enable: Boolean read _Getenable write _Setenable;
  12181. property ssid: UnicodeString read _Getssid write _Setssid;
  12182. property security: UnicodeString read _Getsecurity write _Setsecurity;
  12183. property key: UnicodeString read _Getkey write _Setkey;
  12184. property prefix: UnicodeString read _Getprefix write _Setprefix;
  12185. property link: UnicodeString read _Getlink write _Setlink;
  12186. property interfaceList: TUnicodeStringDynArray read _GetinterfaceList write _SetinterfaceList;
  12187. property wifiStartIp: UnicodeString read _GetwifiStartIp write _SetwifiStartIp;
  12188. property wifiEndIp: UnicodeString read _GetwifiEndIp write _SetwifiEndIp;
  12189. property usbStartIp: UnicodeString read _GetusbStartIp write _SetusbStartIp;
  12190. property usbEndIp: UnicodeString read _GetusbEndIp write _SetusbEndIp;
  12191. property dns1: UnicodeString read _Getdns1 write _Setdns1;
  12192. property dns2: UnicodeString read _Getdns2 write _Setdns2;
  12193. property threshold: Int64 read _Getthreshold write _Setthreshold;
  12194. property startIp: UnicodeString read _GetstartIp write _SetstartIp;
  12195. property endIp: UnicodeString read _GetendIp write _SetendIp;
  12196. property serverIp: UnicodeString read _GetserverIp write _SetserverIp;
  12197. property maskLength: UnicodeString read _GetmaskLength write _SetmaskLength;
  12198. property preInternalIfname: UnicodeString read _GetpreInternalIfname write _SetpreInternalIfname;
  12199. property preExternalIfname: UnicodeString read _GetpreExternalIfname write _SetpreExternalIfname;
  12200. property curInternalIfname: UnicodeString read _GetcurInternalIfname write _SetcurInternalIfname;
  12201. property curExternalIfname: UnicodeString read _GetcurExternalIfname write _SetcurExternalIfname;
  12202. property ipaddr: LongInt read _Getipaddr write _Setipaddr;
  12203. property mask: LongInt read _Getmask write _Setmask;
  12204. property gateway_long: LongInt read _Getgateway_long write _Setgateway_long;
  12205. property dns1_long: LongInt read _Getdns1_long write _Setdns1_long;
  12206. property dns2_long: LongInt read _Getdns2_long write _Setdns2_long;
  12207. property mtu: LongInt read _Getmtu write _Setmtu;
  12208. end;
  12209. { --------------------------------------------------------------------
  12210. TJSNetworkResultOptions
  12211. --------------------------------------------------------------------}
  12212. TJSNetworkResultOptionsRec = record
  12213. id: LongInt;
  12214. ret: Boolean;
  12215. broadcast: Boolean;
  12216. topic: UnicodeString;
  12217. reason: UnicodeString;
  12218. resultCode: LongInt;
  12219. resultReason: UnicodeString;
  12220. error: Boolean;
  12221. enable: Boolean;
  12222. result: Boolean;
  12223. success: Boolean;
  12224. curExternalIfname: UnicodeString;
  12225. curInternalIfname: UnicodeString;
  12226. reply: UnicodeString;
  12227. route: UnicodeString;
  12228. ipaddr_str: UnicodeString;
  12229. gateway_str: UnicodeString;
  12230. dns1_str: UnicodeString;
  12231. dns2_str: UnicodeString;
  12232. mask_str: UnicodeString;
  12233. server_str: UnicodeString;
  12234. vendor_str: UnicodeString;
  12235. lease: LongInt;
  12236. prefixLength: LongInt;
  12237. mask: LongInt;
  12238. gateway: LongInt;
  12239. dns1: LongInt;
  12240. dns2: LongInt;
  12241. server: LongInt;
  12242. netId: UnicodeString;
  12243. interfaceList: TUnicodeStringDynArray;
  12244. flag: UnicodeString;
  12245. macAddr: UnicodeString;
  12246. ipAddr: UnicodeString;
  12247. end;
  12248. IJSNetworkResultOptions = interface(IJSObject)
  12249. ['{5AFDD509-50DE-3D6F-8461-F6CF59ED262A}']
  12250. function _Getid: LongInt;
  12251. function _Getret: Boolean;
  12252. function _Getbroadcast: Boolean;
  12253. function _Gettopic: UnicodeString;
  12254. function _Getreason: UnicodeString;
  12255. function _GetresultCode: LongInt;
  12256. function _GetresultReason: UnicodeString;
  12257. function _Geterror: Boolean;
  12258. function _Getenable: Boolean;
  12259. function _Getresult: Boolean;
  12260. function _Getsuccess: Boolean;
  12261. function _GetcurExternalIfname: UnicodeString;
  12262. function _GetcurInternalIfname: UnicodeString;
  12263. function _Getreply: UnicodeString;
  12264. function _Getroute: UnicodeString;
  12265. function _Getipaddr_str: UnicodeString;
  12266. function _Getgateway_str: UnicodeString;
  12267. function _Getdns1_str: UnicodeString;
  12268. function _Getdns2_str: UnicodeString;
  12269. function _Getmask_str: UnicodeString;
  12270. function _Getserver_str: UnicodeString;
  12271. function _Getvendor_str: UnicodeString;
  12272. function _Getlease: LongInt;
  12273. function _GetprefixLength: LongInt;
  12274. function _Getmask: LongInt;
  12275. function _Getgateway: LongInt;
  12276. function _Getdns1: LongInt;
  12277. function _Getdns2: LongInt;
  12278. function _Getserver: LongInt;
  12279. function _GetnetId: UnicodeString;
  12280. function _GetinterfaceList: TUnicodeStringDynArray;
  12281. function _Getflag: UnicodeString;
  12282. function _GetmacAddr: UnicodeString;
  12283. function _GetipAddr: UnicodeString;
  12284. procedure _Setid(const aValue: LongInt);
  12285. procedure _Setret(const aValue: Boolean);
  12286. procedure _Setbroadcast(const aValue: Boolean);
  12287. procedure _Settopic(const aValue: UnicodeString);
  12288. procedure _Setreason(const aValue: UnicodeString);
  12289. procedure _SetresultCode(const aValue: LongInt);
  12290. procedure _SetresultReason(const aValue: UnicodeString);
  12291. procedure _Seterror(const aValue: Boolean);
  12292. procedure _Setenable(const aValue: Boolean);
  12293. procedure _Setresult(const aValue: Boolean);
  12294. procedure _Setsuccess(const aValue: Boolean);
  12295. procedure _SetcurExternalIfname(const aValue: UnicodeString);
  12296. procedure _SetcurInternalIfname(const aValue: UnicodeString);
  12297. procedure _Setreply(const aValue: UnicodeString);
  12298. procedure _Setroute(const aValue: UnicodeString);
  12299. procedure _Setipaddr_str(const aValue: UnicodeString);
  12300. procedure _Setgateway_str(const aValue: UnicodeString);
  12301. procedure _Setdns1_str(const aValue: UnicodeString);
  12302. procedure _Setdns2_str(const aValue: UnicodeString);
  12303. procedure _Setmask_str(const aValue: UnicodeString);
  12304. procedure _Setserver_str(const aValue: UnicodeString);
  12305. procedure _Setvendor_str(const aValue: UnicodeString);
  12306. procedure _Setlease(const aValue: LongInt);
  12307. procedure _SetprefixLength(const aValue: LongInt);
  12308. procedure _Setmask(const aValue: LongInt);
  12309. procedure _Setgateway(const aValue: LongInt);
  12310. procedure _Setdns1(const aValue: LongInt);
  12311. procedure _Setdns2(const aValue: LongInt);
  12312. procedure _Setserver(const aValue: LongInt);
  12313. procedure _SetnetId(const aValue: UnicodeString);
  12314. procedure _SetinterfaceList(const aValue: TUnicodeStringDynArray);
  12315. procedure _Setflag(const aValue: UnicodeString);
  12316. procedure _SetmacAddr(const aValue: UnicodeString);
  12317. procedure _SetipAddr(const aValue: UnicodeString);
  12318. property id: LongInt read _Getid write _Setid;
  12319. property ret: Boolean read _Getret write _Setret;
  12320. property broadcast: Boolean read _Getbroadcast write _Setbroadcast;
  12321. property topic: UnicodeString read _Gettopic write _Settopic;
  12322. property reason: UnicodeString read _Getreason write _Setreason;
  12323. property resultCode: LongInt read _GetresultCode write _SetresultCode;
  12324. property resultReason: UnicodeString read _GetresultReason write _SetresultReason;
  12325. property error: Boolean read _Geterror write _Seterror;
  12326. property enable: Boolean read _Getenable write _Setenable;
  12327. property result: Boolean read _Getresult write _Setresult;
  12328. property success: Boolean read _Getsuccess write _Setsuccess;
  12329. property curExternalIfname: UnicodeString read _GetcurExternalIfname write _SetcurExternalIfname;
  12330. property curInternalIfname: UnicodeString read _GetcurInternalIfname write _SetcurInternalIfname;
  12331. property reply: UnicodeString read _Getreply write _Setreply;
  12332. property route: UnicodeString read _Getroute write _Setroute;
  12333. property ipaddr_str: UnicodeString read _Getipaddr_str write _Setipaddr_str;
  12334. property gateway_str: UnicodeString read _Getgateway_str write _Setgateway_str;
  12335. property dns1_str: UnicodeString read _Getdns1_str write _Setdns1_str;
  12336. property dns2_str: UnicodeString read _Getdns2_str write _Setdns2_str;
  12337. property mask_str: UnicodeString read _Getmask_str write _Setmask_str;
  12338. property server_str: UnicodeString read _Getserver_str write _Setserver_str;
  12339. property vendor_str: UnicodeString read _Getvendor_str write _Setvendor_str;
  12340. property lease: LongInt read _Getlease write _Setlease;
  12341. property prefixLength: LongInt read _GetprefixLength write _SetprefixLength;
  12342. property mask: LongInt read _Getmask write _Setmask;
  12343. property gateway: LongInt read _Getgateway write _Setgateway;
  12344. property dns1: LongInt read _Getdns1 write _Setdns1;
  12345. property dns2: LongInt read _Getdns2 write _Setdns2;
  12346. property server: LongInt read _Getserver write _Setserver;
  12347. property netId: UnicodeString read _GetnetId write _SetnetId;
  12348. property interfaceList: TUnicodeStringDynArray read _GetinterfaceList write _SetinterfaceList;
  12349. property flag: UnicodeString read _Getflag write _Setflag;
  12350. property macAddr: UnicodeString read _GetmacAddr write _SetmacAddr;
  12351. property ipAddr: UnicodeString read _GetipAddr write _SetipAddr;
  12352. end;
  12353. TJSNetworkResultOptions = class(TJSObject,IJSNetworkResultOptions)
  12354. Protected
  12355. function _Getid: LongInt;
  12356. function _Getret: Boolean;
  12357. function _Getbroadcast: Boolean;
  12358. function _Gettopic: UnicodeString;
  12359. function _Getreason: UnicodeString;
  12360. function _GetresultCode: LongInt;
  12361. function _GetresultReason: UnicodeString;
  12362. function _Geterror: Boolean;
  12363. function _Getenable: Boolean;
  12364. function _Getresult: Boolean;
  12365. function _Getsuccess: Boolean;
  12366. function _GetcurExternalIfname: UnicodeString;
  12367. function _GetcurInternalIfname: UnicodeString;
  12368. function _Getreply: UnicodeString;
  12369. function _Getroute: UnicodeString;
  12370. function _Getipaddr_str: UnicodeString;
  12371. function _Getgateway_str: UnicodeString;
  12372. function _Getdns1_str: UnicodeString;
  12373. function _Getdns2_str: UnicodeString;
  12374. function _Getmask_str: UnicodeString;
  12375. function _Getserver_str: UnicodeString;
  12376. function _Getvendor_str: UnicodeString;
  12377. function _Getlease: LongInt;
  12378. function _GetprefixLength: LongInt;
  12379. function _Getmask: LongInt;
  12380. function _Getgateway: LongInt;
  12381. function _Getdns1: LongInt;
  12382. function _Getdns2: LongInt;
  12383. function _Getserver: LongInt;
  12384. function _GetnetId: UnicodeString;
  12385. function _GetinterfaceList: TUnicodeStringDynArray;
  12386. function _Getflag: UnicodeString;
  12387. function _GetmacAddr: UnicodeString;
  12388. function _GetipAddr: UnicodeString;
  12389. procedure _Setid(const aValue: LongInt);
  12390. procedure _Setret(const aValue: Boolean);
  12391. procedure _Setbroadcast(const aValue: Boolean);
  12392. procedure _Settopic(const aValue: UnicodeString);
  12393. procedure _Setreason(const aValue: UnicodeString);
  12394. procedure _SetresultCode(const aValue: LongInt);
  12395. procedure _SetresultReason(const aValue: UnicodeString);
  12396. procedure _Seterror(const aValue: Boolean);
  12397. procedure _Setenable(const aValue: Boolean);
  12398. procedure _Setresult(const aValue: Boolean);
  12399. procedure _Setsuccess(const aValue: Boolean);
  12400. procedure _SetcurExternalIfname(const aValue: UnicodeString);
  12401. procedure _SetcurInternalIfname(const aValue: UnicodeString);
  12402. procedure _Setreply(const aValue: UnicodeString);
  12403. procedure _Setroute(const aValue: UnicodeString);
  12404. procedure _Setipaddr_str(const aValue: UnicodeString);
  12405. procedure _Setgateway_str(const aValue: UnicodeString);
  12406. procedure _Setdns1_str(const aValue: UnicodeString);
  12407. procedure _Setdns2_str(const aValue: UnicodeString);
  12408. procedure _Setmask_str(const aValue: UnicodeString);
  12409. procedure _Setserver_str(const aValue: UnicodeString);
  12410. procedure _Setvendor_str(const aValue: UnicodeString);
  12411. procedure _Setlease(const aValue: LongInt);
  12412. procedure _SetprefixLength(const aValue: LongInt);
  12413. procedure _Setmask(const aValue: LongInt);
  12414. procedure _Setgateway(const aValue: LongInt);
  12415. procedure _Setdns1(const aValue: LongInt);
  12416. procedure _Setdns2(const aValue: LongInt);
  12417. procedure _Setserver(const aValue: LongInt);
  12418. procedure _SetnetId(const aValue: UnicodeString);
  12419. procedure _SetinterfaceList(const aValue: TUnicodeStringDynArray);
  12420. procedure _Setflag(const aValue: UnicodeString);
  12421. procedure _SetmacAddr(const aValue: UnicodeString);
  12422. procedure _SetipAddr(const aValue: UnicodeString);
  12423. Public
  12424. class function JSClassName: UnicodeString; override;
  12425. class function Cast(const Intf: IJSObject): IJSNetworkResultOptions;
  12426. property id: LongInt read _Getid write _Setid;
  12427. property ret: Boolean read _Getret write _Setret;
  12428. property broadcast: Boolean read _Getbroadcast write _Setbroadcast;
  12429. property topic: UnicodeString read _Gettopic write _Settopic;
  12430. property reason: UnicodeString read _Getreason write _Setreason;
  12431. property resultCode: LongInt read _GetresultCode write _SetresultCode;
  12432. property resultReason: UnicodeString read _GetresultReason write _SetresultReason;
  12433. property error: Boolean read _Geterror write _Seterror;
  12434. property enable: Boolean read _Getenable write _Setenable;
  12435. property result: Boolean read _Getresult write _Setresult;
  12436. property success: Boolean read _Getsuccess write _Setsuccess;
  12437. property curExternalIfname: UnicodeString read _GetcurExternalIfname write _SetcurExternalIfname;
  12438. property curInternalIfname: UnicodeString read _GetcurInternalIfname write _SetcurInternalIfname;
  12439. property reply: UnicodeString read _Getreply write _Setreply;
  12440. property route: UnicodeString read _Getroute write _Setroute;
  12441. property ipaddr_str: UnicodeString read _Getipaddr_str write _Setipaddr_str;
  12442. property gateway_str: UnicodeString read _Getgateway_str write _Setgateway_str;
  12443. property dns1_str: UnicodeString read _Getdns1_str write _Setdns1_str;
  12444. property dns2_str: UnicodeString read _Getdns2_str write _Setdns2_str;
  12445. property mask_str: UnicodeString read _Getmask_str write _Setmask_str;
  12446. property server_str: UnicodeString read _Getserver_str write _Setserver_str;
  12447. property vendor_str: UnicodeString read _Getvendor_str write _Setvendor_str;
  12448. property lease: LongInt read _Getlease write _Setlease;
  12449. property prefixLength: LongInt read _GetprefixLength write _SetprefixLength;
  12450. property mask: LongInt read _Getmask write _Setmask;
  12451. property gateway: LongInt read _Getgateway write _Setgateway;
  12452. property dns1: LongInt read _Getdns1 write _Setdns1;
  12453. property dns2: LongInt read _Getdns2 write _Setdns2;
  12454. property server: LongInt read _Getserver write _Setserver;
  12455. property netId: UnicodeString read _GetnetId write _SetnetId;
  12456. property interfaceList: TUnicodeStringDynArray read _GetinterfaceList write _SetinterfaceList;
  12457. property flag: UnicodeString read _Getflag write _Setflag;
  12458. property macAddr: UnicodeString read _GetmacAddr write _SetmacAddr;
  12459. property ipAddr: UnicodeString read _GetipAddr write _SetipAddr;
  12460. end;
  12461. { --------------------------------------------------------------------
  12462. TJSGetRootNodeOptions
  12463. --------------------------------------------------------------------}
  12464. TJSGetRootNodeOptionsRec = record
  12465. composed: Boolean;
  12466. end;
  12467. IJSGetRootNodeOptions = interface(IJSObject)
  12468. ['{2BC346DD-E12C-3BEA-8791-64CAD5D64448}']
  12469. function _Getcomposed: Boolean;
  12470. procedure _Setcomposed(const aValue: Boolean);
  12471. property composed: Boolean read _Getcomposed write _Setcomposed;
  12472. end;
  12473. TJSGetRootNodeOptions = class(TJSObject,IJSGetRootNodeOptions)
  12474. Protected
  12475. function _Getcomposed: Boolean;
  12476. procedure _Setcomposed(const aValue: Boolean);
  12477. Public
  12478. class function JSClassName: UnicodeString; override;
  12479. class function Cast(const Intf: IJSObject): IJSGetRootNodeOptions;
  12480. property composed: Boolean read _Getcomposed write _Setcomposed;
  12481. end;
  12482. { --------------------------------------------------------------------
  12483. TJSNotificationOptions
  12484. --------------------------------------------------------------------}
  12485. TJSNotificationOptionsRec = record
  12486. dir: TNotificationDirection;
  12487. lang: UnicodeString;
  12488. body: UnicodeString;
  12489. tag: UnicodeString;
  12490. icon: UnicodeString;
  12491. requireInteraction: Boolean;
  12492. silent: Boolean;
  12493. vibrate: TVibratePattern;
  12494. data: Variant;
  12495. mozbehavior: TJSNotificationBehavior;
  12496. end;
  12497. IJSNotificationOptions = interface(IJSObject)
  12498. ['{CAD1062C-BF05-359A-B803-7A6E7F223F51}']
  12499. function _Getdir: TNotificationDirection;
  12500. function _Getlang: UnicodeString;
  12501. function _Getbody: UnicodeString;
  12502. function _Gettag: UnicodeString;
  12503. function _Geticon: UnicodeString;
  12504. function _GetrequireInteraction: Boolean;
  12505. function _Getsilent: Boolean;
  12506. function _Getvibrate: TVibratePattern;
  12507. function _Getdata: Variant;
  12508. function _Getmozbehavior: TJSNotificationBehavior;
  12509. procedure _Setdir(const aValue: TNotificationDirection);
  12510. procedure _Setlang(const aValue: UnicodeString);
  12511. procedure _Setbody(const aValue: UnicodeString);
  12512. procedure _Settag(const aValue: UnicodeString);
  12513. procedure _Seticon(const aValue: UnicodeString);
  12514. procedure _SetrequireInteraction(const aValue: Boolean);
  12515. procedure _Setsilent(const aValue: Boolean);
  12516. procedure _Setvibrate(const aValue: TVibratePattern);
  12517. procedure _Setdata(const aValue: Variant);
  12518. procedure _Setmozbehavior(const aValue: TJSNotificationBehavior);
  12519. property dir: TNotificationDirection read _Getdir write _Setdir;
  12520. property lang: UnicodeString read _Getlang write _Setlang;
  12521. property body: UnicodeString read _Getbody write _Setbody;
  12522. property tag: UnicodeString read _Gettag write _Settag;
  12523. property icon: UnicodeString read _Geticon write _Seticon;
  12524. property requireInteraction: Boolean read _GetrequireInteraction write _SetrequireInteraction;
  12525. property silent: Boolean read _Getsilent write _Setsilent;
  12526. property vibrate: TVibratePattern read _Getvibrate write _Setvibrate;
  12527. property data: Variant read _Getdata write _Setdata;
  12528. property mozbehavior: TJSNotificationBehavior read _Getmozbehavior write _Setmozbehavior;
  12529. end;
  12530. TJSNotificationOptions = class(TJSObject,IJSNotificationOptions)
  12531. Protected
  12532. function _Getdir: TNotificationDirection;
  12533. function _Getlang: UnicodeString;
  12534. function _Getbody: UnicodeString;
  12535. function _Gettag: UnicodeString;
  12536. function _Geticon: UnicodeString;
  12537. function _GetrequireInteraction: Boolean;
  12538. function _Getsilent: Boolean;
  12539. function _Getvibrate: TVibratePattern;
  12540. function _Getdata: Variant;
  12541. function _Getmozbehavior: TJSNotificationBehavior;
  12542. procedure _Setdir(const aValue: TNotificationDirection);
  12543. procedure _Setlang(const aValue: UnicodeString);
  12544. procedure _Setbody(const aValue: UnicodeString);
  12545. procedure _Settag(const aValue: UnicodeString);
  12546. procedure _Seticon(const aValue: UnicodeString);
  12547. procedure _SetrequireInteraction(const aValue: Boolean);
  12548. procedure _Setsilent(const aValue: Boolean);
  12549. procedure _Setvibrate(const aValue: TVibratePattern);
  12550. procedure _Setdata(const aValue: Variant);
  12551. procedure _Setmozbehavior(const aValue: TJSNotificationBehavior);
  12552. Public
  12553. class function JSClassName: UnicodeString; override;
  12554. class function Cast(const Intf: IJSObject): IJSNotificationOptions;
  12555. property dir: TNotificationDirection read _Getdir write _Setdir;
  12556. property lang: UnicodeString read _Getlang write _Setlang;
  12557. property body: UnicodeString read _Getbody write _Setbody;
  12558. property tag: UnicodeString read _Gettag write _Settag;
  12559. property icon: UnicodeString read _Geticon write _Seticon;
  12560. property requireInteraction: Boolean read _GetrequireInteraction write _SetrequireInteraction;
  12561. property silent: Boolean read _Getsilent write _Setsilent;
  12562. property vibrate: TVibratePattern read _Getvibrate write _Setvibrate;
  12563. property data: Variant read _Getdata write _Setdata;
  12564. property mozbehavior: TJSNotificationBehavior read _Getmozbehavior write _Setmozbehavior;
  12565. end;
  12566. { --------------------------------------------------------------------
  12567. TJSGetNotificationOptions
  12568. --------------------------------------------------------------------}
  12569. TJSGetNotificationOptionsRec = record
  12570. tag: UnicodeString;
  12571. end;
  12572. IJSGetNotificationOptions = interface(IJSObject)
  12573. ['{19DFE83E-D902-35EA-BC95-1DF7555AB98E}']
  12574. function _Gettag: UnicodeString;
  12575. procedure _Settag(const aValue: UnicodeString);
  12576. property tag: UnicodeString read _Gettag write _Settag;
  12577. end;
  12578. TJSGetNotificationOptions = class(TJSObject,IJSGetNotificationOptions)
  12579. Protected
  12580. function _Gettag: UnicodeString;
  12581. procedure _Settag(const aValue: UnicodeString);
  12582. Public
  12583. class function JSClassName: UnicodeString; override;
  12584. class function Cast(const Intf: IJSObject): IJSGetNotificationOptions;
  12585. property tag: UnicodeString read _Gettag write _Settag;
  12586. end;
  12587. { --------------------------------------------------------------------
  12588. TJSNotificationBehavior
  12589. --------------------------------------------------------------------}
  12590. TCardinalDynArray = IJSArray; // array of unsigned long
  12591. TJSNotificationBehaviorRec = record
  12592. noscreen: Boolean;
  12593. noclear: Boolean;
  12594. showOnlyOnce: Boolean;
  12595. soundFile: UnicodeString;
  12596. vibrationPattern: TCardinalDynArray;
  12597. end;
  12598. IJSNotificationBehavior = interface(IJSObject)
  12599. ['{1125E9DB-E893-39FE-BF14-1B8BED9B0880}']
  12600. function _Getnoscreen: Boolean;
  12601. function _Getnoclear: Boolean;
  12602. function _GetshowOnlyOnce: Boolean;
  12603. function _GetsoundFile: UnicodeString;
  12604. function _GetvibrationPattern: TCardinalDynArray;
  12605. procedure _Setnoscreen(const aValue: Boolean);
  12606. procedure _Setnoclear(const aValue: Boolean);
  12607. procedure _SetshowOnlyOnce(const aValue: Boolean);
  12608. procedure _SetsoundFile(const aValue: UnicodeString);
  12609. procedure _SetvibrationPattern(const aValue: TCardinalDynArray);
  12610. property noscreen: Boolean read _Getnoscreen write _Setnoscreen;
  12611. property noclear: Boolean read _Getnoclear write _Setnoclear;
  12612. property showOnlyOnce: Boolean read _GetshowOnlyOnce write _SetshowOnlyOnce;
  12613. property soundFile: UnicodeString read _GetsoundFile write _SetsoundFile;
  12614. property vibrationPattern: TCardinalDynArray read _GetvibrationPattern write _SetvibrationPattern;
  12615. end;
  12616. TJSNotificationBehavior = class(TJSObject,IJSNotificationBehavior)
  12617. Protected
  12618. function _Getnoscreen: Boolean;
  12619. function _Getnoclear: Boolean;
  12620. function _GetshowOnlyOnce: Boolean;
  12621. function _GetsoundFile: UnicodeString;
  12622. function _GetvibrationPattern: TCardinalDynArray;
  12623. procedure _Setnoscreen(const aValue: Boolean);
  12624. procedure _Setnoclear(const aValue: Boolean);
  12625. procedure _SetshowOnlyOnce(const aValue: Boolean);
  12626. procedure _SetsoundFile(const aValue: UnicodeString);
  12627. procedure _SetvibrationPattern(const aValue: TCardinalDynArray);
  12628. Public
  12629. class function JSClassName: UnicodeString; override;
  12630. class function Cast(const Intf: IJSObject): IJSNotificationBehavior;
  12631. property noscreen: Boolean read _Getnoscreen write _Setnoscreen;
  12632. property noclear: Boolean read _Getnoclear write _Setnoclear;
  12633. property showOnlyOnce: Boolean read _GetshowOnlyOnce write _SetshowOnlyOnce;
  12634. property soundFile: UnicodeString read _GetsoundFile write _SetsoundFile;
  12635. property vibrationPattern: TCardinalDynArray read _GetvibrationPattern write _SetvibrationPattern;
  12636. end;
  12637. { --------------------------------------------------------------------
  12638. TJSOfflineAudioContextOptions
  12639. --------------------------------------------------------------------}
  12640. TJSOfflineAudioContextOptionsRec = record
  12641. numberOfChannels: Cardinal;
  12642. length_: Cardinal;
  12643. sampleRate: Single;
  12644. end;
  12645. IJSOfflineAudioContextOptions = interface(IJSObject)
  12646. ['{63C194CE-7520-3D33-9D7E-4D51B60FE25E}']
  12647. function _GetnumberOfChannels: Cardinal;
  12648. function _Getlength_: Cardinal;
  12649. function _GetsampleRate: Single;
  12650. procedure _SetnumberOfChannels(const aValue: Cardinal);
  12651. procedure _Setlength_(const aValue: Cardinal);
  12652. procedure _SetsampleRate(const aValue: Single);
  12653. property numberOfChannels: Cardinal read _GetnumberOfChannels write _SetnumberOfChannels;
  12654. property length_: Cardinal read _Getlength_ write _Setlength_;
  12655. property sampleRate: Single read _GetsampleRate write _SetsampleRate;
  12656. end;
  12657. TJSOfflineAudioContextOptions = class(TJSObject,IJSOfflineAudioContextOptions)
  12658. Protected
  12659. function _GetnumberOfChannels: Cardinal;
  12660. function _Getlength_: Cardinal;
  12661. function _GetsampleRate: Single;
  12662. procedure _SetnumberOfChannels(const aValue: Cardinal);
  12663. procedure _Setlength_(const aValue: Cardinal);
  12664. procedure _SetsampleRate(const aValue: Single);
  12665. Public
  12666. class function JSClassName: UnicodeString; override;
  12667. class function Cast(const Intf: IJSObject): IJSOfflineAudioContextOptions;
  12668. property numberOfChannels: Cardinal read _GetnumberOfChannels write _SetnumberOfChannels;
  12669. property length_: Cardinal read _Getlength_ write _Setlength_;
  12670. property sampleRate: Single read _GetsampleRate write _SetsampleRate;
  12671. end;
  12672. { --------------------------------------------------------------------
  12673. TJSImageEncodeOptions
  12674. --------------------------------------------------------------------}
  12675. TJSImageEncodeOptionsRec = record
  12676. type_: UnicodeString;
  12677. quality: Double;
  12678. end;
  12679. IJSImageEncodeOptions = interface(IJSObject)
  12680. ['{45F1632C-B7D9-35EA-8791-64CAD79CE33D}']
  12681. function _Gettype_: UnicodeString;
  12682. function _Getquality: Double;
  12683. procedure _Settype_(const aValue: UnicodeString);
  12684. procedure _Setquality(const aValue: Double);
  12685. property type_: UnicodeString read _Gettype_ write _Settype_;
  12686. property quality: Double read _Getquality write _Setquality;
  12687. end;
  12688. TJSImageEncodeOptions = class(TJSObject,IJSImageEncodeOptions)
  12689. Protected
  12690. function _Gettype_: UnicodeString;
  12691. function _Getquality: Double;
  12692. procedure _Settype_(const aValue: UnicodeString);
  12693. procedure _Setquality(const aValue: Double);
  12694. Public
  12695. class function JSClassName: UnicodeString; override;
  12696. class function Cast(const Intf: IJSObject): IJSImageEncodeOptions;
  12697. property type_: UnicodeString read _Gettype_ write _Settype_;
  12698. property quality: Double read _Getquality write _Setquality;
  12699. end;
  12700. { --------------------------------------------------------------------
  12701. TJSPaymentMethodData
  12702. --------------------------------------------------------------------}
  12703. TJSPaymentMethodDataRec = record
  12704. supportedMethods: UnicodeString;
  12705. data: IJSObject;
  12706. end;
  12707. IJSPaymentMethodData = interface(IJSObject)
  12708. ['{B34C12EF-6469-350E-8F39-8C04BD8C7C7A}']
  12709. function _GetsupportedMethods: UnicodeString;
  12710. function _Getdata: IJSObject;
  12711. procedure _SetsupportedMethods(const aValue: UnicodeString);
  12712. procedure _Setdata(const aValue: IJSObject);
  12713. property supportedMethods: UnicodeString read _GetsupportedMethods write _SetsupportedMethods;
  12714. property data: IJSObject read _Getdata write _Setdata;
  12715. end;
  12716. TJSPaymentMethodData = class(TJSObject,IJSPaymentMethodData)
  12717. Protected
  12718. function _GetsupportedMethods: UnicodeString;
  12719. function _Getdata: IJSObject;
  12720. procedure _SetsupportedMethods(const aValue: UnicodeString);
  12721. procedure _Setdata(const aValue: IJSObject);
  12722. Public
  12723. class function JSClassName: UnicodeString; override;
  12724. class function Cast(const Intf: IJSObject): IJSPaymentMethodData;
  12725. property supportedMethods: UnicodeString read _GetsupportedMethods write _SetsupportedMethods;
  12726. property data: IJSObject read _Getdata write _Setdata;
  12727. end;
  12728. { --------------------------------------------------------------------
  12729. TJSPaymentCurrencyAmount
  12730. --------------------------------------------------------------------}
  12731. TJSPaymentCurrencyAmountRec = record
  12732. currency: UnicodeString;
  12733. value: UnicodeString;
  12734. end;
  12735. IJSPaymentCurrencyAmount = interface(IJSObject)
  12736. ['{39933056-3FDF-3257-A79E-91495CADACC1}']
  12737. function _Getcurrency: UnicodeString;
  12738. function _Getvalue: UnicodeString;
  12739. procedure _Setcurrency(const aValue: UnicodeString);
  12740. procedure _Setvalue(const aValue: UnicodeString);
  12741. property currency: UnicodeString read _Getcurrency write _Setcurrency;
  12742. property value: UnicodeString read _Getvalue write _Setvalue;
  12743. end;
  12744. TJSPaymentCurrencyAmount = class(TJSObject,IJSPaymentCurrencyAmount)
  12745. Protected
  12746. function _Getcurrency: UnicodeString;
  12747. function _Getvalue: UnicodeString;
  12748. procedure _Setcurrency(const aValue: UnicodeString);
  12749. procedure _Setvalue(const aValue: UnicodeString);
  12750. Public
  12751. class function JSClassName: UnicodeString; override;
  12752. class function Cast(const Intf: IJSObject): IJSPaymentCurrencyAmount;
  12753. property currency: UnicodeString read _Getcurrency write _Setcurrency;
  12754. property value: UnicodeString read _Getvalue write _Setvalue;
  12755. end;
  12756. { --------------------------------------------------------------------
  12757. TJSPaymentItem
  12758. --------------------------------------------------------------------}
  12759. TJSPaymentItemRec = record
  12760. label_: UnicodeString;
  12761. amount: TJSPaymentCurrencyAmount;
  12762. pending: Boolean;
  12763. end;
  12764. IJSPaymentItem = interface(IJSObject)
  12765. ['{E682AA16-BC9A-3DA7-99C0-CB3D2F354A4C}']
  12766. function _Getlabel_: UnicodeString;
  12767. function _Getamount: TJSPaymentCurrencyAmount;
  12768. function _Getpending: Boolean;
  12769. procedure _Setlabel_(const aValue: UnicodeString);
  12770. procedure _Setamount(const aValue: TJSPaymentCurrencyAmount);
  12771. procedure _Setpending(const aValue: Boolean);
  12772. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  12773. property amount: TJSPaymentCurrencyAmount read _Getamount write _Setamount;
  12774. property pending: Boolean read _Getpending write _Setpending;
  12775. end;
  12776. TJSPaymentItem = class(TJSObject,IJSPaymentItem)
  12777. Protected
  12778. function _Getlabel_: UnicodeString;
  12779. function _Getamount: TJSPaymentCurrencyAmount;
  12780. function _Getpending: Boolean;
  12781. procedure _Setlabel_(const aValue: UnicodeString);
  12782. procedure _Setamount(const aValue: TJSPaymentCurrencyAmount);
  12783. procedure _Setpending(const aValue: Boolean);
  12784. Public
  12785. class function JSClassName: UnicodeString; override;
  12786. class function Cast(const Intf: IJSObject): IJSPaymentItem;
  12787. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  12788. property amount: TJSPaymentCurrencyAmount read _Getamount write _Setamount;
  12789. property pending: Boolean read _Getpending write _Setpending;
  12790. end;
  12791. { --------------------------------------------------------------------
  12792. TJSPaymentShippingOption
  12793. --------------------------------------------------------------------}
  12794. TJSPaymentShippingOptionRec = record
  12795. id: UnicodeString;
  12796. label_: UnicodeString;
  12797. amount: TJSPaymentCurrencyAmount;
  12798. selected: Boolean;
  12799. end;
  12800. IJSPaymentShippingOption = interface(IJSObject)
  12801. ['{0B38B9E4-AC89-35ED-9E8B-D601741DC630}']
  12802. function _Getid: UnicodeString;
  12803. function _Getlabel_: UnicodeString;
  12804. function _Getamount: TJSPaymentCurrencyAmount;
  12805. function _Getselected: Boolean;
  12806. procedure _Setid(const aValue: UnicodeString);
  12807. procedure _Setlabel_(const aValue: UnicodeString);
  12808. procedure _Setamount(const aValue: TJSPaymentCurrencyAmount);
  12809. procedure _Setselected(const aValue: Boolean);
  12810. property id: UnicodeString read _Getid write _Setid;
  12811. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  12812. property amount: TJSPaymentCurrencyAmount read _Getamount write _Setamount;
  12813. property selected: Boolean read _Getselected write _Setselected;
  12814. end;
  12815. TJSPaymentShippingOption = class(TJSObject,IJSPaymentShippingOption)
  12816. Protected
  12817. function _Getid: UnicodeString;
  12818. function _Getlabel_: UnicodeString;
  12819. function _Getamount: TJSPaymentCurrencyAmount;
  12820. function _Getselected: Boolean;
  12821. procedure _Setid(const aValue: UnicodeString);
  12822. procedure _Setlabel_(const aValue: UnicodeString);
  12823. procedure _Setamount(const aValue: TJSPaymentCurrencyAmount);
  12824. procedure _Setselected(const aValue: Boolean);
  12825. Public
  12826. class function JSClassName: UnicodeString; override;
  12827. class function Cast(const Intf: IJSObject): IJSPaymentShippingOption;
  12828. property id: UnicodeString read _Getid write _Setid;
  12829. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  12830. property amount: TJSPaymentCurrencyAmount read _Getamount write _Setamount;
  12831. property selected: Boolean read _Getselected write _Setselected;
  12832. end;
  12833. { --------------------------------------------------------------------
  12834. TJSPaymentDetailsModifier
  12835. --------------------------------------------------------------------}
  12836. TJSPaymentItemDynArray = IJSArray; // array of PaymentItem
  12837. TJSPaymentDetailsModifierRec = record
  12838. supportedMethods: UnicodeString;
  12839. total: TJSPaymentItem;
  12840. additionalDisplayItems: TJSPaymentItemDynArray;
  12841. data: IJSObject;
  12842. end;
  12843. IJSPaymentDetailsModifier = interface(IJSObject)
  12844. ['{86E6FBD0-5258-31C8-8A90-D18C361079D1}']
  12845. function _GetsupportedMethods: UnicodeString;
  12846. function _Gettotal: TJSPaymentItem;
  12847. function _GetadditionalDisplayItems: TJSPaymentItemDynArray;
  12848. function _Getdata: IJSObject;
  12849. procedure _SetsupportedMethods(const aValue: UnicodeString);
  12850. procedure _Settotal(const aValue: TJSPaymentItem);
  12851. procedure _SetadditionalDisplayItems(const aValue: TJSPaymentItemDynArray);
  12852. procedure _Setdata(const aValue: IJSObject);
  12853. property supportedMethods: UnicodeString read _GetsupportedMethods write _SetsupportedMethods;
  12854. property total: TJSPaymentItem read _Gettotal write _Settotal;
  12855. property additionalDisplayItems: TJSPaymentItemDynArray read _GetadditionalDisplayItems write _SetadditionalDisplayItems;
  12856. property data: IJSObject read _Getdata write _Setdata;
  12857. end;
  12858. TJSPaymentDetailsModifier = class(TJSObject,IJSPaymentDetailsModifier)
  12859. Protected
  12860. function _GetsupportedMethods: UnicodeString;
  12861. function _Gettotal: TJSPaymentItem;
  12862. function _GetadditionalDisplayItems: TJSPaymentItemDynArray;
  12863. function _Getdata: IJSObject;
  12864. procedure _SetsupportedMethods(const aValue: UnicodeString);
  12865. procedure _Settotal(const aValue: TJSPaymentItem);
  12866. procedure _SetadditionalDisplayItems(const aValue: TJSPaymentItemDynArray);
  12867. procedure _Setdata(const aValue: IJSObject);
  12868. Public
  12869. class function JSClassName: UnicodeString; override;
  12870. class function Cast(const Intf: IJSObject): IJSPaymentDetailsModifier;
  12871. property supportedMethods: UnicodeString read _GetsupportedMethods write _SetsupportedMethods;
  12872. property total: TJSPaymentItem read _Gettotal write _Settotal;
  12873. property additionalDisplayItems: TJSPaymentItemDynArray read _GetadditionalDisplayItems write _SetadditionalDisplayItems;
  12874. property data: IJSObject read _Getdata write _Setdata;
  12875. end;
  12876. { --------------------------------------------------------------------
  12877. TJSPaymentDetailsBase
  12878. --------------------------------------------------------------------}
  12879. TJSPaymentShippingOptionDynArray = IJSArray; // array of PaymentShippingOption
  12880. TJSPaymentDetailsModifierDynArray = IJSArray; // array of PaymentDetailsModifier
  12881. TJSPaymentDetailsBaseRec = record
  12882. displayItems: TJSPaymentItemDynArray;
  12883. shippingOptions: TJSPaymentShippingOptionDynArray;
  12884. modifiers: TJSPaymentDetailsModifierDynArray;
  12885. end;
  12886. IJSPaymentDetailsBase = interface(IJSObject)
  12887. ['{DFDB1D1B-852B-35D8-9DF8-98C8878C4D54}']
  12888. function _GetdisplayItems: TJSPaymentItemDynArray;
  12889. function _GetshippingOptions: TJSPaymentShippingOptionDynArray;
  12890. function _Getmodifiers: TJSPaymentDetailsModifierDynArray;
  12891. procedure _SetdisplayItems(const aValue: TJSPaymentItemDynArray);
  12892. procedure _SetshippingOptions(const aValue: TJSPaymentShippingOptionDynArray);
  12893. procedure _Setmodifiers(const aValue: TJSPaymentDetailsModifierDynArray);
  12894. property displayItems: TJSPaymentItemDynArray read _GetdisplayItems write _SetdisplayItems;
  12895. property shippingOptions: TJSPaymentShippingOptionDynArray read _GetshippingOptions write _SetshippingOptions;
  12896. property modifiers: TJSPaymentDetailsModifierDynArray read _Getmodifiers write _Setmodifiers;
  12897. end;
  12898. TJSPaymentDetailsBase = class(TJSObject,IJSPaymentDetailsBase)
  12899. Protected
  12900. function _GetdisplayItems: TJSPaymentItemDynArray;
  12901. function _GetshippingOptions: TJSPaymentShippingOptionDynArray;
  12902. function _Getmodifiers: TJSPaymentDetailsModifierDynArray;
  12903. procedure _SetdisplayItems(const aValue: TJSPaymentItemDynArray);
  12904. procedure _SetshippingOptions(const aValue: TJSPaymentShippingOptionDynArray);
  12905. procedure _Setmodifiers(const aValue: TJSPaymentDetailsModifierDynArray);
  12906. Public
  12907. class function JSClassName: UnicodeString; override;
  12908. class function Cast(const Intf: IJSObject): IJSPaymentDetailsBase;
  12909. property displayItems: TJSPaymentItemDynArray read _GetdisplayItems write _SetdisplayItems;
  12910. property shippingOptions: TJSPaymentShippingOptionDynArray read _GetshippingOptions write _SetshippingOptions;
  12911. property modifiers: TJSPaymentDetailsModifierDynArray read _Getmodifiers write _Setmodifiers;
  12912. end;
  12913. { --------------------------------------------------------------------
  12914. TJSAddressErrors
  12915. --------------------------------------------------------------------}
  12916. TJSAddressErrorsRec = record
  12917. addressLine: UnicodeString;
  12918. city: UnicodeString;
  12919. country: UnicodeString;
  12920. dependentLocality: UnicodeString;
  12921. organization: UnicodeString;
  12922. phone: UnicodeString;
  12923. postalCode: UnicodeString;
  12924. recipient: UnicodeString;
  12925. region: UnicodeString;
  12926. regionCode: UnicodeString;
  12927. sortingCode: UnicodeString;
  12928. end;
  12929. IJSAddressErrors = interface(IJSObject)
  12930. ['{67276967-A252-3188-A344-6D0B895D056D}']
  12931. function _GetaddressLine: UnicodeString;
  12932. function _Getcity: UnicodeString;
  12933. function _Getcountry: UnicodeString;
  12934. function _GetdependentLocality: UnicodeString;
  12935. function _Getorganization: UnicodeString;
  12936. function _Getphone: UnicodeString;
  12937. function _GetpostalCode: UnicodeString;
  12938. function _Getrecipient: UnicodeString;
  12939. function _Getregion: UnicodeString;
  12940. function _GetregionCode: UnicodeString;
  12941. function _GetsortingCode: UnicodeString;
  12942. procedure _SetaddressLine(const aValue: UnicodeString);
  12943. procedure _Setcity(const aValue: UnicodeString);
  12944. procedure _Setcountry(const aValue: UnicodeString);
  12945. procedure _SetdependentLocality(const aValue: UnicodeString);
  12946. procedure _Setorganization(const aValue: UnicodeString);
  12947. procedure _Setphone(const aValue: UnicodeString);
  12948. procedure _SetpostalCode(const aValue: UnicodeString);
  12949. procedure _Setrecipient(const aValue: UnicodeString);
  12950. procedure _Setregion(const aValue: UnicodeString);
  12951. procedure _SetregionCode(const aValue: UnicodeString);
  12952. procedure _SetsortingCode(const aValue: UnicodeString);
  12953. property addressLine: UnicodeString read _GetaddressLine write _SetaddressLine;
  12954. property city: UnicodeString read _Getcity write _Setcity;
  12955. property country: UnicodeString read _Getcountry write _Setcountry;
  12956. property dependentLocality: UnicodeString read _GetdependentLocality write _SetdependentLocality;
  12957. property organization: UnicodeString read _Getorganization write _Setorganization;
  12958. property phone: UnicodeString read _Getphone write _Setphone;
  12959. property postalCode: UnicodeString read _GetpostalCode write _SetpostalCode;
  12960. property recipient: UnicodeString read _Getrecipient write _Setrecipient;
  12961. property region: UnicodeString read _Getregion write _Setregion;
  12962. property regionCode: UnicodeString read _GetregionCode write _SetregionCode;
  12963. property sortingCode: UnicodeString read _GetsortingCode write _SetsortingCode;
  12964. end;
  12965. TJSAddressErrors = class(TJSObject,IJSAddressErrors)
  12966. Protected
  12967. function _GetaddressLine: UnicodeString;
  12968. function _Getcity: UnicodeString;
  12969. function _Getcountry: UnicodeString;
  12970. function _GetdependentLocality: UnicodeString;
  12971. function _Getorganization: UnicodeString;
  12972. function _Getphone: UnicodeString;
  12973. function _GetpostalCode: UnicodeString;
  12974. function _Getrecipient: UnicodeString;
  12975. function _Getregion: UnicodeString;
  12976. function _GetregionCode: UnicodeString;
  12977. function _GetsortingCode: UnicodeString;
  12978. procedure _SetaddressLine(const aValue: UnicodeString);
  12979. procedure _Setcity(const aValue: UnicodeString);
  12980. procedure _Setcountry(const aValue: UnicodeString);
  12981. procedure _SetdependentLocality(const aValue: UnicodeString);
  12982. procedure _Setorganization(const aValue: UnicodeString);
  12983. procedure _Setphone(const aValue: UnicodeString);
  12984. procedure _SetpostalCode(const aValue: UnicodeString);
  12985. procedure _Setrecipient(const aValue: UnicodeString);
  12986. procedure _Setregion(const aValue: UnicodeString);
  12987. procedure _SetregionCode(const aValue: UnicodeString);
  12988. procedure _SetsortingCode(const aValue: UnicodeString);
  12989. Public
  12990. class function JSClassName: UnicodeString; override;
  12991. class function Cast(const Intf: IJSObject): IJSAddressErrors;
  12992. property addressLine: UnicodeString read _GetaddressLine write _SetaddressLine;
  12993. property city: UnicodeString read _Getcity write _Setcity;
  12994. property country: UnicodeString read _Getcountry write _Setcountry;
  12995. property dependentLocality: UnicodeString read _GetdependentLocality write _SetdependentLocality;
  12996. property organization: UnicodeString read _Getorganization write _Setorganization;
  12997. property phone: UnicodeString read _Getphone write _Setphone;
  12998. property postalCode: UnicodeString read _GetpostalCode write _SetpostalCode;
  12999. property recipient: UnicodeString read _Getrecipient write _Setrecipient;
  13000. property region: UnicodeString read _Getregion write _Setregion;
  13001. property regionCode: UnicodeString read _GetregionCode write _SetregionCode;
  13002. property sortingCode: UnicodeString read _GetsortingCode write _SetsortingCode;
  13003. end;
  13004. { --------------------------------------------------------------------
  13005. TJSPaymentValidationErrors
  13006. --------------------------------------------------------------------}
  13007. TJSPaymentValidationErrorsRec = record
  13008. payer: TJSPayerErrors;
  13009. shippingAddress: TJSAddressErrors;
  13010. error: UnicodeString;
  13011. paymentMethod: IJSObject;
  13012. end;
  13013. IJSPaymentValidationErrors = interface(IJSObject)
  13014. ['{BF4AD0F9-2832-34F8-8C96-A553A7E4E661}']
  13015. function _Getpayer: TJSPayerErrors;
  13016. function _GetshippingAddress: TJSAddressErrors;
  13017. function _Geterror: UnicodeString;
  13018. function _GetpaymentMethod: IJSObject;
  13019. procedure _Setpayer(const aValue: TJSPayerErrors);
  13020. procedure _SetshippingAddress(const aValue: TJSAddressErrors);
  13021. procedure _Seterror(const aValue: UnicodeString);
  13022. procedure _SetpaymentMethod(const aValue: IJSObject);
  13023. property payer: TJSPayerErrors read _Getpayer write _Setpayer;
  13024. property shippingAddress: TJSAddressErrors read _GetshippingAddress write _SetshippingAddress;
  13025. property error: UnicodeString read _Geterror write _Seterror;
  13026. property paymentMethod: IJSObject read _GetpaymentMethod write _SetpaymentMethod;
  13027. end;
  13028. TJSPaymentValidationErrors = class(TJSObject,IJSPaymentValidationErrors)
  13029. Protected
  13030. function _Getpayer: TJSPayerErrors;
  13031. function _GetshippingAddress: TJSAddressErrors;
  13032. function _Geterror: UnicodeString;
  13033. function _GetpaymentMethod: IJSObject;
  13034. procedure _Setpayer(const aValue: TJSPayerErrors);
  13035. procedure _SetshippingAddress(const aValue: TJSAddressErrors);
  13036. procedure _Seterror(const aValue: UnicodeString);
  13037. procedure _SetpaymentMethod(const aValue: IJSObject);
  13038. Public
  13039. class function JSClassName: UnicodeString; override;
  13040. class function Cast(const Intf: IJSObject): IJSPaymentValidationErrors;
  13041. property payer: TJSPayerErrors read _Getpayer write _Setpayer;
  13042. property shippingAddress: TJSAddressErrors read _GetshippingAddress write _SetshippingAddress;
  13043. property error: UnicodeString read _Geterror write _Seterror;
  13044. property paymentMethod: IJSObject read _GetpaymentMethod write _SetpaymentMethod;
  13045. end;
  13046. { --------------------------------------------------------------------
  13047. TJSPayerErrors
  13048. --------------------------------------------------------------------}
  13049. TJSPayerErrorsRec = record
  13050. email: UnicodeString;
  13051. name: UnicodeString;
  13052. phone: UnicodeString;
  13053. end;
  13054. IJSPayerErrors = interface(IJSObject)
  13055. ['{A62526B2-7B51-3E5F-B5BD-32F936E15418}']
  13056. function _Getemail: UnicodeString;
  13057. function _Getname: UnicodeString;
  13058. function _Getphone: UnicodeString;
  13059. procedure _Setemail(const aValue: UnicodeString);
  13060. procedure _Setname(const aValue: UnicodeString);
  13061. procedure _Setphone(const aValue: UnicodeString);
  13062. property email: UnicodeString read _Getemail write _Setemail;
  13063. property name: UnicodeString read _Getname write _Setname;
  13064. property phone: UnicodeString read _Getphone write _Setphone;
  13065. end;
  13066. TJSPayerErrors = class(TJSObject,IJSPayerErrors)
  13067. Protected
  13068. function _Getemail: UnicodeString;
  13069. function _Getname: UnicodeString;
  13070. function _Getphone: UnicodeString;
  13071. procedure _Setemail(const aValue: UnicodeString);
  13072. procedure _Setname(const aValue: UnicodeString);
  13073. procedure _Setphone(const aValue: UnicodeString);
  13074. Public
  13075. class function JSClassName: UnicodeString; override;
  13076. class function Cast(const Intf: IJSObject): IJSPayerErrors;
  13077. property email: UnicodeString read _Getemail write _Setemail;
  13078. property name: UnicodeString read _Getname write _Setname;
  13079. property phone: UnicodeString read _Getphone write _Setphone;
  13080. end;
  13081. { --------------------------------------------------------------------
  13082. TJSPaymentOptions
  13083. --------------------------------------------------------------------}
  13084. TJSPaymentOptionsRec = record
  13085. requestPayerName: Boolean;
  13086. requestPayerEmail: Boolean;
  13087. requestPayerPhone: Boolean;
  13088. requestShipping: Boolean;
  13089. requestBillingAddress: Boolean;
  13090. shippingType: TPaymentShippingType;
  13091. end;
  13092. IJSPaymentOptions = interface(IJSObject)
  13093. ['{77A0170B-94F7-394B-9208-974212882628}']
  13094. function _GetrequestPayerName: Boolean;
  13095. function _GetrequestPayerEmail: Boolean;
  13096. function _GetrequestPayerPhone: Boolean;
  13097. function _GetrequestShipping: Boolean;
  13098. function _GetrequestBillingAddress: Boolean;
  13099. function _GetshippingType: TPaymentShippingType;
  13100. procedure _SetrequestPayerName(const aValue: Boolean);
  13101. procedure _SetrequestPayerEmail(const aValue: Boolean);
  13102. procedure _SetrequestPayerPhone(const aValue: Boolean);
  13103. procedure _SetrequestShipping(const aValue: Boolean);
  13104. procedure _SetrequestBillingAddress(const aValue: Boolean);
  13105. procedure _SetshippingType(const aValue: TPaymentShippingType);
  13106. property requestPayerName: Boolean read _GetrequestPayerName write _SetrequestPayerName;
  13107. property requestPayerEmail: Boolean read _GetrequestPayerEmail write _SetrequestPayerEmail;
  13108. property requestPayerPhone: Boolean read _GetrequestPayerPhone write _SetrequestPayerPhone;
  13109. property requestShipping: Boolean read _GetrequestShipping write _SetrequestShipping;
  13110. property requestBillingAddress: Boolean read _GetrequestBillingAddress write _SetrequestBillingAddress;
  13111. property shippingType: TPaymentShippingType read _GetshippingType write _SetshippingType;
  13112. end;
  13113. TJSPaymentOptions = class(TJSObject,IJSPaymentOptions)
  13114. Protected
  13115. function _GetrequestPayerName: Boolean;
  13116. function _GetrequestPayerEmail: Boolean;
  13117. function _GetrequestPayerPhone: Boolean;
  13118. function _GetrequestShipping: Boolean;
  13119. function _GetrequestBillingAddress: Boolean;
  13120. function _GetshippingType: TPaymentShippingType;
  13121. procedure _SetrequestPayerName(const aValue: Boolean);
  13122. procedure _SetrequestPayerEmail(const aValue: Boolean);
  13123. procedure _SetrequestPayerPhone(const aValue: Boolean);
  13124. procedure _SetrequestShipping(const aValue: Boolean);
  13125. procedure _SetrequestBillingAddress(const aValue: Boolean);
  13126. procedure _SetshippingType(const aValue: TPaymentShippingType);
  13127. Public
  13128. class function JSClassName: UnicodeString; override;
  13129. class function Cast(const Intf: IJSObject): IJSPaymentOptions;
  13130. property requestPayerName: Boolean read _GetrequestPayerName write _SetrequestPayerName;
  13131. property requestPayerEmail: Boolean read _GetrequestPayerEmail write _SetrequestPayerEmail;
  13132. property requestPayerPhone: Boolean read _GetrequestPayerPhone write _SetrequestPayerPhone;
  13133. property requestShipping: Boolean read _GetrequestShipping write _SetrequestShipping;
  13134. property requestBillingAddress: Boolean read _GetrequestBillingAddress write _SetrequestBillingAddress;
  13135. property shippingType: TPaymentShippingType read _GetshippingType write _SetshippingType;
  13136. end;
  13137. { --------------------------------------------------------------------
  13138. TJSPCErrorData
  13139. --------------------------------------------------------------------}
  13140. TJSPCErrorDataRec = record
  13141. name: TPCError;
  13142. message: UnicodeString;
  13143. end;
  13144. IJSPCErrorData = interface(IJSObject)
  13145. ['{EEE077E4-1BA1-3280-B581-C6668B42443B}']
  13146. function _Getname: TPCError;
  13147. function _Getmessage: UnicodeString;
  13148. procedure _Setname(const aValue: TPCError);
  13149. procedure _Setmessage(const aValue: UnicodeString);
  13150. property name: TPCError read _Getname write _Setname;
  13151. property message: UnicodeString read _Getmessage write _Setmessage;
  13152. end;
  13153. TJSPCErrorData = class(TJSObject,IJSPCErrorData)
  13154. Protected
  13155. function _Getname: TPCError;
  13156. function _Getmessage: UnicodeString;
  13157. procedure _Setname(const aValue: TPCError);
  13158. procedure _Setmessage(const aValue: UnicodeString);
  13159. Public
  13160. class function JSClassName: UnicodeString; override;
  13161. class function Cast(const Intf: IJSObject): IJSPCErrorData;
  13162. property name: TPCError read _Getname write _Setname;
  13163. property message: UnicodeString read _Getmessage write _Setmessage;
  13164. end;
  13165. { --------------------------------------------------------------------
  13166. TJSPerformanceMarkOptions
  13167. --------------------------------------------------------------------}
  13168. TJSPerformanceMarkOptionsRec = record
  13169. detail: Variant;
  13170. startTime: TDOMHighResTimeStamp;
  13171. end;
  13172. IJSPerformanceMarkOptions = interface(IJSObject)
  13173. ['{60F004B6-883C-3423-88ED-3537555AB96F}']
  13174. function _Getdetail: Variant;
  13175. function _GetstartTime: TDOMHighResTimeStamp;
  13176. procedure _Setdetail(const aValue: Variant);
  13177. procedure _SetstartTime(const aValue: TDOMHighResTimeStamp);
  13178. property detail: Variant read _Getdetail write _Setdetail;
  13179. property startTime: TDOMHighResTimeStamp read _GetstartTime write _SetstartTime;
  13180. end;
  13181. TJSPerformanceMarkOptions = class(TJSObject,IJSPerformanceMarkOptions)
  13182. Protected
  13183. function _Getdetail: Variant;
  13184. function _GetstartTime: TDOMHighResTimeStamp;
  13185. procedure _Setdetail(const aValue: Variant);
  13186. procedure _SetstartTime(const aValue: TDOMHighResTimeStamp);
  13187. Public
  13188. class function JSClassName: UnicodeString; override;
  13189. class function Cast(const Intf: IJSObject): IJSPerformanceMarkOptions;
  13190. property detail: Variant read _Getdetail write _Setdetail;
  13191. property startTime: TDOMHighResTimeStamp read _GetstartTime write _SetstartTime;
  13192. end;
  13193. { --------------------------------------------------------------------
  13194. TJSPerformanceMeasureOptions
  13195. --------------------------------------------------------------------}
  13196. // Union of DOMString, DOMHighResTimeStamp
  13197. TPerformanceMeasureOptions_start_Type = Variant;
  13198. // Union of DOMString, DOMHighResTimeStamp
  13199. TPerformanceMeasureOptions_end_Type = Variant;
  13200. TJSPerformanceMeasureOptionsRec = record
  13201. detail: Variant;
  13202. start: TPerformanceMeasureOptions_start_Type;
  13203. duration: TDOMHighResTimeStamp;
  13204. end_: TPerformanceMeasureOptions_end_Type;
  13205. end;
  13206. IJSPerformanceMeasureOptions = interface(IJSObject)
  13207. ['{A3073EDF-D76E-3D42-9C7C-F3AA8CEC5702}']
  13208. function _Getdetail: Variant;
  13209. function _Getstart: TPerformanceMeasureOptions_start_Type;
  13210. function _Getduration: TDOMHighResTimeStamp;
  13211. function _Getend_: TPerformanceMeasureOptions_end_Type;
  13212. procedure _Setdetail(const aValue: Variant);
  13213. procedure _Setstart(const aValue: TPerformanceMeasureOptions_start_Type);
  13214. procedure _Setduration(const aValue: TDOMHighResTimeStamp);
  13215. procedure _Setend_(const aValue: TPerformanceMeasureOptions_end_Type);
  13216. property detail: Variant read _Getdetail write _Setdetail;
  13217. property start: TPerformanceMeasureOptions_start_Type read _Getstart write _Setstart;
  13218. property duration: TDOMHighResTimeStamp read _Getduration write _Setduration;
  13219. property end_: TPerformanceMeasureOptions_end_Type read _Getend_ write _Setend_;
  13220. end;
  13221. TJSPerformanceMeasureOptions = class(TJSObject,IJSPerformanceMeasureOptions)
  13222. Protected
  13223. function _Getdetail: Variant;
  13224. function _Getstart: TPerformanceMeasureOptions_start_Type;
  13225. function _Getduration: TDOMHighResTimeStamp;
  13226. function _Getend_: TPerformanceMeasureOptions_end_Type;
  13227. procedure _Setdetail(const aValue: Variant);
  13228. procedure _Setstart(const aValue: TPerformanceMeasureOptions_start_Type);
  13229. procedure _Setduration(const aValue: TDOMHighResTimeStamp);
  13230. procedure _Setend_(const aValue: TPerformanceMeasureOptions_end_Type);
  13231. Public
  13232. class function JSClassName: UnicodeString; override;
  13233. class function Cast(const Intf: IJSObject): IJSPerformanceMeasureOptions;
  13234. property detail: Variant read _Getdetail write _Setdetail;
  13235. property start: TPerformanceMeasureOptions_start_Type read _Getstart write _Setstart;
  13236. property duration: TDOMHighResTimeStamp read _Getduration write _Setduration;
  13237. property end_: TPerformanceMeasureOptions_end_Type read _Getend_ write _Setend_;
  13238. end;
  13239. { --------------------------------------------------------------------
  13240. TJSPerformanceObserverInit
  13241. --------------------------------------------------------------------}
  13242. TJSPerformanceObserverInitRec = record
  13243. entryTypes: TUnicodeStringDynArray;
  13244. type_: UnicodeString;
  13245. buffered: Boolean;
  13246. durationThreshold: TDOMHighResTimeStamp;
  13247. end;
  13248. IJSPerformanceObserverInit = interface(IJSObject)
  13249. ['{B33EC5A8-FC3B-3E48-99FD-9F2ED7D7C6B5}']
  13250. function _GetentryTypes: TUnicodeStringDynArray;
  13251. function _Gettype_: UnicodeString;
  13252. function _Getbuffered: Boolean;
  13253. function _GetdurationThreshold: TDOMHighResTimeStamp;
  13254. procedure _SetentryTypes(const aValue: TUnicodeStringDynArray);
  13255. procedure _Settype_(const aValue: UnicodeString);
  13256. procedure _Setbuffered(const aValue: Boolean);
  13257. procedure _SetdurationThreshold(const aValue: TDOMHighResTimeStamp);
  13258. property entryTypes: TUnicodeStringDynArray read _GetentryTypes write _SetentryTypes;
  13259. property type_: UnicodeString read _Gettype_ write _Settype_;
  13260. property buffered: Boolean read _Getbuffered write _Setbuffered;
  13261. property durationThreshold: TDOMHighResTimeStamp read _GetdurationThreshold write _SetdurationThreshold;
  13262. end;
  13263. TJSPerformanceObserverInit = class(TJSObject,IJSPerformanceObserverInit)
  13264. Protected
  13265. function _GetentryTypes: TUnicodeStringDynArray;
  13266. function _Gettype_: UnicodeString;
  13267. function _Getbuffered: Boolean;
  13268. function _GetdurationThreshold: TDOMHighResTimeStamp;
  13269. procedure _SetentryTypes(const aValue: TUnicodeStringDynArray);
  13270. procedure _Settype_(const aValue: UnicodeString);
  13271. procedure _Setbuffered(const aValue: Boolean);
  13272. procedure _SetdurationThreshold(const aValue: TDOMHighResTimeStamp);
  13273. Public
  13274. class function JSClassName: UnicodeString; override;
  13275. class function Cast(const Intf: IJSObject): IJSPerformanceObserverInit;
  13276. property entryTypes: TUnicodeStringDynArray read _GetentryTypes write _SetentryTypes;
  13277. property type_: UnicodeString read _Gettype_ write _Settype_;
  13278. property buffered: Boolean read _Getbuffered write _Setbuffered;
  13279. property durationThreshold: TDOMHighResTimeStamp read _GetdurationThreshold write _SetdurationThreshold;
  13280. end;
  13281. { --------------------------------------------------------------------
  13282. TJSPerformanceEntryFilterOptions
  13283. --------------------------------------------------------------------}
  13284. TJSPerformanceEntryFilterOptionsRec = record
  13285. name: UnicodeString;
  13286. entryType: UnicodeString;
  13287. initiatorType: UnicodeString;
  13288. end;
  13289. IJSPerformanceEntryFilterOptions = interface(IJSObject)
  13290. ['{75594349-642A-3EE6-87F5-8F8DAAF65C48}']
  13291. function _Getname: UnicodeString;
  13292. function _GetentryType: UnicodeString;
  13293. function _GetinitiatorType: UnicodeString;
  13294. procedure _Setname(const aValue: UnicodeString);
  13295. procedure _SetentryType(const aValue: UnicodeString);
  13296. procedure _SetinitiatorType(const aValue: UnicodeString);
  13297. property name: UnicodeString read _Getname write _Setname;
  13298. property entryType: UnicodeString read _GetentryType write _SetentryType;
  13299. property initiatorType: UnicodeString read _GetinitiatorType write _SetinitiatorType;
  13300. end;
  13301. TJSPerformanceEntryFilterOptions = class(TJSObject,IJSPerformanceEntryFilterOptions)
  13302. Protected
  13303. function _Getname: UnicodeString;
  13304. function _GetentryType: UnicodeString;
  13305. function _GetinitiatorType: UnicodeString;
  13306. procedure _Setname(const aValue: UnicodeString);
  13307. procedure _SetentryType(const aValue: UnicodeString);
  13308. procedure _SetinitiatorType(const aValue: UnicodeString);
  13309. Public
  13310. class function JSClassName: UnicodeString; override;
  13311. class function Cast(const Intf: IJSObject): IJSPerformanceEntryFilterOptions;
  13312. property name: UnicodeString read _Getname write _Setname;
  13313. property entryType: UnicodeString read _GetentryType write _SetentryType;
  13314. property initiatorType: UnicodeString read _GetinitiatorType write _SetinitiatorType;
  13315. end;
  13316. { --------------------------------------------------------------------
  13317. TJSPeriodicWaveConstraints
  13318. --------------------------------------------------------------------}
  13319. TJSPeriodicWaveConstraintsRec = record
  13320. disableNormalization: Boolean;
  13321. end;
  13322. IJSPeriodicWaveConstraints = interface(IJSObject)
  13323. ['{D1646603-B6B5-3D45-9392-6C0BD965E11B}']
  13324. function _GetdisableNormalization: Boolean;
  13325. procedure _SetdisableNormalization(const aValue: Boolean);
  13326. property disableNormalization: Boolean read _GetdisableNormalization write _SetdisableNormalization;
  13327. end;
  13328. TJSPeriodicWaveConstraints = class(TJSObject,IJSPeriodicWaveConstraints)
  13329. Protected
  13330. function _GetdisableNormalization: Boolean;
  13331. procedure _SetdisableNormalization(const aValue: Boolean);
  13332. Public
  13333. class function JSClassName: UnicodeString; override;
  13334. class function Cast(const Intf: IJSObject): IJSPeriodicWaveConstraints;
  13335. property disableNormalization: Boolean read _GetdisableNormalization write _SetdisableNormalization;
  13336. end;
  13337. { --------------------------------------------------------------------
  13338. TJSPermissionDescriptor
  13339. --------------------------------------------------------------------}
  13340. TJSPermissionDescriptorRec = record
  13341. name: TPermissionName;
  13342. end;
  13343. IJSPermissionDescriptor = interface(IJSObject)
  13344. ['{8345D4FB-2A41-3CD9-8B3D-84C3E476E910}']
  13345. function _Getname: TPermissionName;
  13346. procedure _Setname(const aValue: TPermissionName);
  13347. property name: TPermissionName read _Getname write _Setname;
  13348. end;
  13349. TJSPermissionDescriptor = class(TJSObject,IJSPermissionDescriptor)
  13350. Protected
  13351. function _Getname: TPermissionName;
  13352. procedure _Setname(const aValue: TPermissionName);
  13353. Public
  13354. class function JSClassName: UnicodeString; override;
  13355. class function Cast(const Intf: IJSObject): IJSPermissionDescriptor;
  13356. property name: TPermissionName read _Getname write _Setname;
  13357. end;
  13358. { --------------------------------------------------------------------
  13359. TJSPushSubscriptionOptionsInit
  13360. --------------------------------------------------------------------}
  13361. // Union of BufferSource, DOMString
  13362. TPushSubscriptionOptionsInit_applicationServerKey_Type = Variant;
  13363. TJSPushSubscriptionOptionsInitRec = record
  13364. applicationServerKey: TPushSubscriptionOptionsInit_applicationServerKey_Type;
  13365. end;
  13366. IJSPushSubscriptionOptionsInit = interface(IJSObject)
  13367. ['{07756F32-4DA5-31A7-A7D2-813A90912A9A}']
  13368. function _GetapplicationServerKey: TPushSubscriptionOptionsInit_applicationServerKey_Type;
  13369. procedure _SetapplicationServerKey(const aValue: TPushSubscriptionOptionsInit_applicationServerKey_Type);
  13370. property applicationServerKey: TPushSubscriptionOptionsInit_applicationServerKey_Type read _GetapplicationServerKey write _SetapplicationServerKey;
  13371. end;
  13372. TJSPushSubscriptionOptionsInit = class(TJSObject,IJSPushSubscriptionOptionsInit)
  13373. Protected
  13374. function _GetapplicationServerKey: TPushSubscriptionOptionsInit_applicationServerKey_Type;
  13375. procedure _SetapplicationServerKey(const aValue: TPushSubscriptionOptionsInit_applicationServerKey_Type);
  13376. Public
  13377. class function JSClassName: UnicodeString; override;
  13378. class function Cast(const Intf: IJSObject): IJSPushSubscriptionOptionsInit;
  13379. property applicationServerKey: TPushSubscriptionOptionsInit_applicationServerKey_Type read _GetapplicationServerKey write _SetapplicationServerKey;
  13380. end;
  13381. { --------------------------------------------------------------------
  13382. TJSPushSubscriptionKeys
  13383. --------------------------------------------------------------------}
  13384. TJSPushSubscriptionKeysRec = record
  13385. p256dh: UnicodeString;
  13386. auth: UnicodeString;
  13387. end;
  13388. IJSPushSubscriptionKeys = interface(IJSObject)
  13389. ['{C90C51C8-444C-301C-A19E-B30A8B1EA61E}']
  13390. function _Getp256dh: UnicodeString;
  13391. function _Getauth: UnicodeString;
  13392. procedure _Setp256dh(const aValue: UnicodeString);
  13393. procedure _Setauth(const aValue: UnicodeString);
  13394. property p256dh: UnicodeString read _Getp256dh write _Setp256dh;
  13395. property auth: UnicodeString read _Getauth write _Setauth;
  13396. end;
  13397. TJSPushSubscriptionKeys = class(TJSObject,IJSPushSubscriptionKeys)
  13398. Protected
  13399. function _Getp256dh: UnicodeString;
  13400. function _Getauth: UnicodeString;
  13401. procedure _Setp256dh(const aValue: UnicodeString);
  13402. procedure _Setauth(const aValue: UnicodeString);
  13403. Public
  13404. class function JSClassName: UnicodeString; override;
  13405. class function Cast(const Intf: IJSObject): IJSPushSubscriptionKeys;
  13406. property p256dh: UnicodeString read _Getp256dh write _Setp256dh;
  13407. property auth: UnicodeString read _Getauth write _Setauth;
  13408. end;
  13409. { --------------------------------------------------------------------
  13410. TJSPushSubscriptionJSON
  13411. --------------------------------------------------------------------}
  13412. TJSPushSubscriptionJSONRec = record
  13413. endpoint: UnicodeString;
  13414. keys: TJSPushSubscriptionKeys;
  13415. expirationTime: TEpochTimeStamp;
  13416. end;
  13417. IJSPushSubscriptionJSON = interface(IJSObject)
  13418. ['{6A771078-AB80-34B0-853F-274B3FE25D6F}']
  13419. function _Getendpoint: UnicodeString;
  13420. function _Getkeys: TJSPushSubscriptionKeys;
  13421. function _GetexpirationTime: TEpochTimeStamp;
  13422. procedure _Setendpoint(const aValue: UnicodeString);
  13423. procedure _Setkeys(const aValue: TJSPushSubscriptionKeys);
  13424. procedure _SetexpirationTime(const aValue: TEpochTimeStamp);
  13425. property endpoint: UnicodeString read _Getendpoint write _Setendpoint;
  13426. property keys: TJSPushSubscriptionKeys read _Getkeys write _Setkeys;
  13427. property expirationTime: TEpochTimeStamp read _GetexpirationTime write _SetexpirationTime;
  13428. end;
  13429. TJSPushSubscriptionJSON = class(TJSObject,IJSPushSubscriptionJSON)
  13430. Protected
  13431. function _Getendpoint: UnicodeString;
  13432. function _Getkeys: TJSPushSubscriptionKeys;
  13433. function _GetexpirationTime: TEpochTimeStamp;
  13434. procedure _Setendpoint(const aValue: UnicodeString);
  13435. procedure _Setkeys(const aValue: TJSPushSubscriptionKeys);
  13436. procedure _SetexpirationTime(const aValue: TEpochTimeStamp);
  13437. Public
  13438. class function JSClassName: UnicodeString; override;
  13439. class function Cast(const Intf: IJSObject): IJSPushSubscriptionJSON;
  13440. property endpoint: UnicodeString read _Getendpoint write _Setendpoint;
  13441. property keys: TJSPushSubscriptionKeys read _Getkeys write _Setkeys;
  13442. property expirationTime: TEpochTimeStamp read _GetexpirationTime write _SetexpirationTime;
  13443. end;
  13444. { --------------------------------------------------------------------
  13445. TJSPushSubscriptionInit
  13446. --------------------------------------------------------------------}
  13447. TJSPushSubscriptionInitRec = record
  13448. endpoint: UnicodeString;
  13449. scope: UnicodeString;
  13450. p256dhKey: IJSArrayBuffer;
  13451. authSecret: IJSArrayBuffer;
  13452. appServerKey: IJSBufferSource;
  13453. expirationTime: TEpochTimeStamp;
  13454. end;
  13455. IJSPushSubscriptionInit = interface(IJSObject)
  13456. ['{8CA36740-86E6-3694-97A2-5D78AA8FA5B7}']
  13457. function _Getendpoint: UnicodeString;
  13458. function _Getscope: UnicodeString;
  13459. function _Getp256dhKey: IJSArrayBuffer;
  13460. function _GetauthSecret: IJSArrayBuffer;
  13461. function _GetappServerKey: IJSBufferSource;
  13462. function _GetexpirationTime: TEpochTimeStamp;
  13463. procedure _Setendpoint(const aValue: UnicodeString);
  13464. procedure _Setscope(const aValue: UnicodeString);
  13465. procedure _Setp256dhKey(const aValue: IJSArrayBuffer);
  13466. procedure _SetauthSecret(const aValue: IJSArrayBuffer);
  13467. procedure _SetappServerKey(const aValue: IJSBufferSource);
  13468. procedure _SetexpirationTime(const aValue: TEpochTimeStamp);
  13469. property endpoint: UnicodeString read _Getendpoint write _Setendpoint;
  13470. property scope: UnicodeString read _Getscope write _Setscope;
  13471. property p256dhKey: IJSArrayBuffer read _Getp256dhKey write _Setp256dhKey;
  13472. property authSecret: IJSArrayBuffer read _GetauthSecret write _SetauthSecret;
  13473. property appServerKey: IJSBufferSource read _GetappServerKey write _SetappServerKey;
  13474. property expirationTime: TEpochTimeStamp read _GetexpirationTime write _SetexpirationTime;
  13475. end;
  13476. TJSPushSubscriptionInit = class(TJSObject,IJSPushSubscriptionInit)
  13477. Protected
  13478. function _Getendpoint: UnicodeString;
  13479. function _Getscope: UnicodeString;
  13480. function _Getp256dhKey: IJSArrayBuffer;
  13481. function _GetauthSecret: IJSArrayBuffer;
  13482. function _GetappServerKey: IJSBufferSource;
  13483. function _GetexpirationTime: TEpochTimeStamp;
  13484. procedure _Setendpoint(const aValue: UnicodeString);
  13485. procedure _Setscope(const aValue: UnicodeString);
  13486. procedure _Setp256dhKey(const aValue: IJSArrayBuffer);
  13487. procedure _SetauthSecret(const aValue: IJSArrayBuffer);
  13488. procedure _SetappServerKey(const aValue: IJSBufferSource);
  13489. procedure _SetexpirationTime(const aValue: TEpochTimeStamp);
  13490. Public
  13491. class function JSClassName: UnicodeString; override;
  13492. class function Cast(const Intf: IJSObject): IJSPushSubscriptionInit;
  13493. property endpoint: UnicodeString read _Getendpoint write _Setendpoint;
  13494. property scope: UnicodeString read _Getscope write _Setscope;
  13495. property p256dhKey: IJSArrayBuffer read _Getp256dhKey write _Setp256dhKey;
  13496. property authSecret: IJSArrayBuffer read _GetauthSecret write _SetauthSecret;
  13497. property appServerKey: IJSBufferSource read _GetappServerKey write _SetappServerKey;
  13498. property expirationTime: TEpochTimeStamp read _GetexpirationTime write _SetexpirationTime;
  13499. end;
  13500. { --------------------------------------------------------------------
  13501. TJSQueuingStrategy
  13502. --------------------------------------------------------------------}
  13503. TJSQueuingStrategyRec = record
  13504. highWaterMark: Double;
  13505. size: TQueuingStrategySize;
  13506. end;
  13507. IJSQueuingStrategy = interface(IJSObject)
  13508. ['{F27E0EE8-08C0-3219-A638-B53809085915}']
  13509. function _GethighWaterMark: Double;
  13510. function _Getsize: TQueuingStrategySize;
  13511. procedure _SethighWaterMark(const aValue: Double);
  13512. procedure _Setsize(const aValue: TQueuingStrategySize);
  13513. property highWaterMark: Double read _GethighWaterMark write _SethighWaterMark;
  13514. property size: TQueuingStrategySize read _Getsize write _Setsize;
  13515. end;
  13516. TJSQueuingStrategy = class(TJSObject,IJSQueuingStrategy)
  13517. Protected
  13518. function _GethighWaterMark: Double;
  13519. function _Getsize: TQueuingStrategySize;
  13520. procedure _SethighWaterMark(const aValue: Double);
  13521. procedure _Setsize(const aValue: TQueuingStrategySize);
  13522. Public
  13523. class function JSClassName: UnicodeString; override;
  13524. class function Cast(const Intf: IJSObject): IJSQueuingStrategy;
  13525. property highWaterMark: Double read _GethighWaterMark write _SethighWaterMark;
  13526. property size: TQueuingStrategySize read _Getsize write _Setsize;
  13527. end;
  13528. { --------------------------------------------------------------------
  13529. TJSQueuingStrategyInit
  13530. --------------------------------------------------------------------}
  13531. TJSQueuingStrategyInitRec = record
  13532. highWaterMark: Double;
  13533. end;
  13534. IJSQueuingStrategyInit = interface(IJSObject)
  13535. ['{1EFAB0C3-64CD-32CF-944E-642C493C9EAF}']
  13536. function _GethighWaterMark: Double;
  13537. procedure _SethighWaterMark(const aValue: Double);
  13538. property highWaterMark: Double read _GethighWaterMark write _SethighWaterMark;
  13539. end;
  13540. TJSQueuingStrategyInit = class(TJSObject,IJSQueuingStrategyInit)
  13541. Protected
  13542. function _GethighWaterMark: Double;
  13543. procedure _SethighWaterMark(const aValue: Double);
  13544. Public
  13545. class function JSClassName: UnicodeString; override;
  13546. class function Cast(const Intf: IJSObject): IJSQueuingStrategyInit;
  13547. property highWaterMark: Double read _GethighWaterMark write _SethighWaterMark;
  13548. end;
  13549. { --------------------------------------------------------------------
  13550. TJSClientRectsAndTexts
  13551. --------------------------------------------------------------------}
  13552. TJSClientRectsAndTextsRec = record
  13553. rectList: TJSDOMRectList;
  13554. textList: TUnicodeStringDynArray;
  13555. end;
  13556. IJSClientRectsAndTexts = interface(IJSObject)
  13557. ['{72F7678A-76AE-3894-96F7-4326F0C27DC7}']
  13558. function _GetrectList: IJSDOMRectList;
  13559. function _GettextList: TUnicodeStringDynArray;
  13560. procedure _SetrectList(const aValue: IJSDOMRectList);
  13561. procedure _SettextList(const aValue: TUnicodeStringDynArray);
  13562. property rectList: IJSDOMRectList read _GetrectList write _SetrectList;
  13563. property textList: TUnicodeStringDynArray read _GettextList write _SettextList;
  13564. end;
  13565. TJSClientRectsAndTexts = class(TJSObject,IJSClientRectsAndTexts)
  13566. Protected
  13567. function _GetrectList: IJSDOMRectList;
  13568. function _GettextList: TUnicodeStringDynArray;
  13569. procedure _SetrectList(const aValue: IJSDOMRectList);
  13570. procedure _SettextList(const aValue: TUnicodeStringDynArray);
  13571. Public
  13572. class function JSClassName: UnicodeString; override;
  13573. class function Cast(const Intf: IJSObject): IJSClientRectsAndTexts;
  13574. property rectList: IJSDOMRectList read _GetrectList write _SetrectList;
  13575. property textList: TUnicodeStringDynArray read _GettextList write _SettextList;
  13576. end;
  13577. { --------------------------------------------------------------------
  13578. TJSReadableStreamGetReaderOptions
  13579. --------------------------------------------------------------------}
  13580. TJSReadableStreamGetReaderOptionsRec = record
  13581. mode: TReadableStreamReaderMode;
  13582. end;
  13583. IJSReadableStreamGetReaderOptions = interface(IJSObject)
  13584. ['{517FACC9-62C9-37B1-B9AA-C1F3920A30CF}']
  13585. function _Getmode: TReadableStreamReaderMode;
  13586. procedure _Setmode(const aValue: TReadableStreamReaderMode);
  13587. property mode: TReadableStreamReaderMode read _Getmode write _Setmode;
  13588. end;
  13589. TJSReadableStreamGetReaderOptions = class(TJSObject,IJSReadableStreamGetReaderOptions)
  13590. Protected
  13591. function _Getmode: TReadableStreamReaderMode;
  13592. procedure _Setmode(const aValue: TReadableStreamReaderMode);
  13593. Public
  13594. class function JSClassName: UnicodeString; override;
  13595. class function Cast(const Intf: IJSObject): IJSReadableStreamGetReaderOptions;
  13596. property mode: TReadableStreamReaderMode read _Getmode write _Setmode;
  13597. end;
  13598. { --------------------------------------------------------------------
  13599. TJSReadableStreamIteratorOptions
  13600. --------------------------------------------------------------------}
  13601. TJSReadableStreamIteratorOptionsRec = record
  13602. preventCancel: Boolean;
  13603. end;
  13604. IJSReadableStreamIteratorOptions = interface(IJSObject)
  13605. ['{83F4E7BF-DB3D-387B-966B-E9C2B62580FE}']
  13606. function _GetpreventCancel: Boolean;
  13607. procedure _SetpreventCancel(const aValue: Boolean);
  13608. property preventCancel: Boolean read _GetpreventCancel write _SetpreventCancel;
  13609. end;
  13610. TJSReadableStreamIteratorOptions = class(TJSObject,IJSReadableStreamIteratorOptions)
  13611. Protected
  13612. function _GetpreventCancel: Boolean;
  13613. procedure _SetpreventCancel(const aValue: Boolean);
  13614. Public
  13615. class function JSClassName: UnicodeString; override;
  13616. class function Cast(const Intf: IJSObject): IJSReadableStreamIteratorOptions;
  13617. property preventCancel: Boolean read _GetpreventCancel write _SetpreventCancel;
  13618. end;
  13619. { --------------------------------------------------------------------
  13620. TJSReadableWritablePair
  13621. --------------------------------------------------------------------}
  13622. TJSReadableWritablePairRec = record
  13623. readable: TJSReadableStream;
  13624. writable: TJSWritableStream;
  13625. end;
  13626. IJSReadableWritablePair = interface(IJSObject)
  13627. ['{A35BD933-AC82-3408-890B-7B39D9DE0AF8}']
  13628. function _Getreadable: IJSReadableStream;
  13629. function _Getwritable: IJSWritableStream;
  13630. procedure _Setreadable(const aValue: IJSReadableStream);
  13631. procedure _Setwritable(const aValue: IJSWritableStream);
  13632. property readable: IJSReadableStream read _Getreadable write _Setreadable;
  13633. property writable: IJSWritableStream read _Getwritable write _Setwritable;
  13634. end;
  13635. TJSReadableWritablePair = class(TJSObject,IJSReadableWritablePair)
  13636. Protected
  13637. function _Getreadable: IJSReadableStream;
  13638. function _Getwritable: IJSWritableStream;
  13639. procedure _Setreadable(const aValue: IJSReadableStream);
  13640. procedure _Setwritable(const aValue: IJSWritableStream);
  13641. Public
  13642. class function JSClassName: UnicodeString; override;
  13643. class function Cast(const Intf: IJSObject): IJSReadableWritablePair;
  13644. property readable: IJSReadableStream read _Getreadable write _Setreadable;
  13645. property writable: IJSWritableStream read _Getwritable write _Setwritable;
  13646. end;
  13647. { --------------------------------------------------------------------
  13648. TJSStreamPipeOptions
  13649. --------------------------------------------------------------------}
  13650. TJSStreamPipeOptionsRec = record
  13651. preventClose: Boolean;
  13652. preventAbort: Boolean;
  13653. preventCancel: Boolean;
  13654. signal: TJSAbortSignal;
  13655. end;
  13656. IJSStreamPipeOptions = interface(IJSObject)
  13657. ['{D257C9F0-A081-3BDE-B832-C99ABB398443}']
  13658. function _GetpreventClose: Boolean;
  13659. function _GetpreventAbort: Boolean;
  13660. function _GetpreventCancel: Boolean;
  13661. function _Getsignal: IJSAbortSignal;
  13662. procedure _SetpreventClose(const aValue: Boolean);
  13663. procedure _SetpreventAbort(const aValue: Boolean);
  13664. procedure _SetpreventCancel(const aValue: Boolean);
  13665. procedure _Setsignal(const aValue: IJSAbortSignal);
  13666. property preventClose: Boolean read _GetpreventClose write _SetpreventClose;
  13667. property preventAbort: Boolean read _GetpreventAbort write _SetpreventAbort;
  13668. property preventCancel: Boolean read _GetpreventCancel write _SetpreventCancel;
  13669. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  13670. end;
  13671. TJSStreamPipeOptions = class(TJSObject,IJSStreamPipeOptions)
  13672. Protected
  13673. function _GetpreventClose: Boolean;
  13674. function _GetpreventAbort: Boolean;
  13675. function _GetpreventCancel: Boolean;
  13676. function _Getsignal: IJSAbortSignal;
  13677. procedure _SetpreventClose(const aValue: Boolean);
  13678. procedure _SetpreventAbort(const aValue: Boolean);
  13679. procedure _SetpreventCancel(const aValue: Boolean);
  13680. procedure _Setsignal(const aValue: IJSAbortSignal);
  13681. Public
  13682. class function JSClassName: UnicodeString; override;
  13683. class function Cast(const Intf: IJSObject): IJSStreamPipeOptions;
  13684. property preventClose: Boolean read _GetpreventClose write _SetpreventClose;
  13685. property preventAbort: Boolean read _GetpreventAbort write _SetpreventAbort;
  13686. property preventCancel: Boolean read _GetpreventCancel write _SetpreventCancel;
  13687. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  13688. end;
  13689. { --------------------------------------------------------------------
  13690. TJSReadableStreamReadResult
  13691. --------------------------------------------------------------------}
  13692. TJSReadableStreamReadResultRec = record
  13693. value: Variant;
  13694. done: Boolean;
  13695. end;
  13696. IJSReadableStreamReadResult = interface(IJSObject)
  13697. ['{3613841C-E350-3383-9C5B-A771F657BE5E}']
  13698. function _Getvalue: Variant;
  13699. function _Getdone: Boolean;
  13700. procedure _Setvalue(const aValue: Variant);
  13701. procedure _Setdone(const aValue: Boolean);
  13702. property value: Variant read _Getvalue write _Setvalue;
  13703. property done: Boolean read _Getdone write _Setdone;
  13704. end;
  13705. TJSReadableStreamReadResult = class(TJSObject,IJSReadableStreamReadResult)
  13706. Protected
  13707. function _Getvalue: Variant;
  13708. function _Getdone: Boolean;
  13709. procedure _Setvalue(const aValue: Variant);
  13710. procedure _Setdone(const aValue: Boolean);
  13711. Public
  13712. class function JSClassName: UnicodeString; override;
  13713. class function Cast(const Intf: IJSObject): IJSReadableStreamReadResult;
  13714. property value: Variant read _Getvalue write _Setvalue;
  13715. property done: Boolean read _Getdone write _Setdone;
  13716. end;
  13717. { --------------------------------------------------------------------
  13718. TJSReportingObserverOptions
  13719. --------------------------------------------------------------------}
  13720. TJSReportingObserverOptionsRec = record
  13721. types: TUnicodeStringDynArray;
  13722. buffered: Boolean;
  13723. end;
  13724. IJSReportingObserverOptions = interface(IJSObject)
  13725. ['{B32A851F-5C3A-323F-A2E0-D872FB51932E}']
  13726. function _Gettypes: TUnicodeStringDynArray;
  13727. function _Getbuffered: Boolean;
  13728. procedure _Settypes(const aValue: TUnicodeStringDynArray);
  13729. procedure _Setbuffered(const aValue: Boolean);
  13730. property types: TUnicodeStringDynArray read _Gettypes write _Settypes;
  13731. property buffered: Boolean read _Getbuffered write _Setbuffered;
  13732. end;
  13733. TJSReportingObserverOptions = class(TJSObject,IJSReportingObserverOptions)
  13734. Protected
  13735. function _Gettypes: TUnicodeStringDynArray;
  13736. function _Getbuffered: Boolean;
  13737. procedure _Settypes(const aValue: TUnicodeStringDynArray);
  13738. procedure _Setbuffered(const aValue: Boolean);
  13739. Public
  13740. class function JSClassName: UnicodeString; override;
  13741. class function Cast(const Intf: IJSObject): IJSReportingObserverOptions;
  13742. property types: TUnicodeStringDynArray read _Gettypes write _Settypes;
  13743. property buffered: Boolean read _Getbuffered write _Setbuffered;
  13744. end;
  13745. { --------------------------------------------------------------------
  13746. TJSReportingHeaderValue
  13747. --------------------------------------------------------------------}
  13748. TJSReportingItemDynArray = IJSArray; // array of ReportingItem
  13749. TJSReportingHeaderValueRec = record
  13750. items: TJSReportingItemDynArray;
  13751. end;
  13752. IJSReportingHeaderValue = interface(IJSObject)
  13753. ['{3CC5F4F3-7346-3747-8FAE-949CF08C25C1}']
  13754. function _Getitems: TJSReportingItemDynArray;
  13755. procedure _Setitems(const aValue: TJSReportingItemDynArray);
  13756. property items: TJSReportingItemDynArray read _Getitems write _Setitems;
  13757. end;
  13758. TJSReportingHeaderValue = class(TJSObject,IJSReportingHeaderValue)
  13759. Protected
  13760. function _Getitems: TJSReportingItemDynArray;
  13761. procedure _Setitems(const aValue: TJSReportingItemDynArray);
  13762. Public
  13763. class function JSClassName: UnicodeString; override;
  13764. class function Cast(const Intf: IJSObject): IJSReportingHeaderValue;
  13765. property items: TJSReportingItemDynArray read _Getitems write _Setitems;
  13766. end;
  13767. { --------------------------------------------------------------------
  13768. TJSReportingItem
  13769. --------------------------------------------------------------------}
  13770. TJSReportingItemRec = record
  13771. max_age: Variant;
  13772. endpoints: Variant;
  13773. group: Variant;
  13774. include_subdomains: Boolean;
  13775. end;
  13776. IJSReportingItem = interface(IJSObject)
  13777. ['{22B9B1E5-057A-35CE-BD36-83C891CE385C}']
  13778. function _Getmax_age: Variant;
  13779. function _Getendpoints: Variant;
  13780. function _Getgroup: Variant;
  13781. function _Getinclude_subdomains: Boolean;
  13782. procedure _Setmax_age(const aValue: Variant);
  13783. procedure _Setendpoints(const aValue: Variant);
  13784. procedure _Setgroup(const aValue: Variant);
  13785. procedure _Setinclude_subdomains(const aValue: Boolean);
  13786. property max_age: Variant read _Getmax_age write _Setmax_age;
  13787. property endpoints: Variant read _Getendpoints write _Setendpoints;
  13788. property group: Variant read _Getgroup write _Setgroup;
  13789. property include_subdomains: Boolean read _Getinclude_subdomains write _Setinclude_subdomains;
  13790. end;
  13791. TJSReportingItem = class(TJSObject,IJSReportingItem)
  13792. Protected
  13793. function _Getmax_age: Variant;
  13794. function _Getendpoints: Variant;
  13795. function _Getgroup: Variant;
  13796. function _Getinclude_subdomains: Boolean;
  13797. procedure _Setmax_age(const aValue: Variant);
  13798. procedure _Setendpoints(const aValue: Variant);
  13799. procedure _Setgroup(const aValue: Variant);
  13800. procedure _Setinclude_subdomains(const aValue: Boolean);
  13801. Public
  13802. class function JSClassName: UnicodeString; override;
  13803. class function Cast(const Intf: IJSObject): IJSReportingItem;
  13804. property max_age: Variant read _Getmax_age write _Setmax_age;
  13805. property endpoints: Variant read _Getendpoints write _Setendpoints;
  13806. property group: Variant read _Getgroup write _Setgroup;
  13807. property include_subdomains: Boolean read _Getinclude_subdomains write _Setinclude_subdomains;
  13808. end;
  13809. { --------------------------------------------------------------------
  13810. TJSReportingEndpoint
  13811. --------------------------------------------------------------------}
  13812. TJSReportingEndpointRec = record
  13813. url: Variant;
  13814. priority: Variant;
  13815. weight: Variant;
  13816. end;
  13817. IJSReportingEndpoint = interface(IJSObject)
  13818. ['{A7BDF47D-9817-331B-A925-E6F91FA1FEE6}']
  13819. function _Geturl: Variant;
  13820. function _Getpriority: Variant;
  13821. function _Getweight: Variant;
  13822. procedure _Seturl(const aValue: Variant);
  13823. procedure _Setpriority(const aValue: Variant);
  13824. procedure _Setweight(const aValue: Variant);
  13825. property url: Variant read _Geturl write _Seturl;
  13826. property priority: Variant read _Getpriority write _Setpriority;
  13827. property weight: Variant read _Getweight write _Setweight;
  13828. end;
  13829. TJSReportingEndpoint = class(TJSObject,IJSReportingEndpoint)
  13830. Protected
  13831. function _Geturl: Variant;
  13832. function _Getpriority: Variant;
  13833. function _Getweight: Variant;
  13834. procedure _Seturl(const aValue: Variant);
  13835. procedure _Setpriority(const aValue: Variant);
  13836. procedure _Setweight(const aValue: Variant);
  13837. Public
  13838. class function JSClassName: UnicodeString; override;
  13839. class function Cast(const Intf: IJSObject): IJSReportingEndpoint;
  13840. property url: Variant read _Geturl write _Seturl;
  13841. property priority: Variant read _Getpriority write _Setpriority;
  13842. property weight: Variant read _Getweight write _Setweight;
  13843. end;
  13844. { --------------------------------------------------------------------
  13845. TJSRequestInit
  13846. --------------------------------------------------------------------}
  13847. TJSRequestInitRec = record
  13848. method: UnicodeString;
  13849. headers: THeadersInit;
  13850. body: TBodyInit;
  13851. referrer: UnicodeString;
  13852. referrerPolicy: TReferrerPolicy;
  13853. mode: TRequestMode;
  13854. credentials: TRequestCredentials;
  13855. cache: TRequestCache;
  13856. redirect: TRequestRedirect;
  13857. integrity: UnicodeString;
  13858. keepalive: Boolean;
  13859. signal: TJSAbortSignal;
  13860. priority: TRequestPriority;
  13861. observe: TObserverCallback;
  13862. end;
  13863. IJSRequestInit = interface(IJSObject)
  13864. ['{55B2048F-D51C-3E14-AEBF-25123747A133}']
  13865. function _Getmethod: UnicodeString;
  13866. function _Getheaders: THeadersInit;
  13867. function _Getbody: TBodyInit;
  13868. function _Getreferrer: UnicodeString;
  13869. function _GetreferrerPolicy: TReferrerPolicy;
  13870. function _Getmode: TRequestMode;
  13871. function _Getcredentials: TRequestCredentials;
  13872. function _Getcache: TRequestCache;
  13873. function _Getredirect: TRequestRedirect;
  13874. function _Getintegrity: UnicodeString;
  13875. function _Getkeepalive: Boolean;
  13876. function _Getsignal: IJSAbortSignal;
  13877. function _Getpriority: TRequestPriority;
  13878. function _Getobserve: TObserverCallback;
  13879. procedure _Setmethod(const aValue: UnicodeString);
  13880. procedure _Setheaders(const aValue: THeadersInit);
  13881. procedure _Setbody(const aValue: TBodyInit);
  13882. procedure _Setreferrer(const aValue: UnicodeString);
  13883. procedure _SetreferrerPolicy(const aValue: TReferrerPolicy);
  13884. procedure _Setmode(const aValue: TRequestMode);
  13885. procedure _Setcredentials(const aValue: TRequestCredentials);
  13886. procedure _Setcache(const aValue: TRequestCache);
  13887. procedure _Setredirect(const aValue: TRequestRedirect);
  13888. procedure _Setintegrity(const aValue: UnicodeString);
  13889. procedure _Setkeepalive(const aValue: Boolean);
  13890. procedure _Setsignal(const aValue: IJSAbortSignal);
  13891. procedure _Setpriority(const aValue: TRequestPriority);
  13892. procedure _Setobserve(const aValue: TObserverCallback);
  13893. property method: UnicodeString read _Getmethod write _Setmethod;
  13894. property headers: THeadersInit read _Getheaders write _Setheaders;
  13895. property body: TBodyInit read _Getbody write _Setbody;
  13896. property referrer: UnicodeString read _Getreferrer write _Setreferrer;
  13897. property referrerPolicy: TReferrerPolicy read _GetreferrerPolicy write _SetreferrerPolicy;
  13898. property mode: TRequestMode read _Getmode write _Setmode;
  13899. property credentials: TRequestCredentials read _Getcredentials write _Setcredentials;
  13900. property cache: TRequestCache read _Getcache write _Setcache;
  13901. property redirect: TRequestRedirect read _Getredirect write _Setredirect;
  13902. property integrity: UnicodeString read _Getintegrity write _Setintegrity;
  13903. property keepalive: Boolean read _Getkeepalive write _Setkeepalive;
  13904. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  13905. property priority: TRequestPriority read _Getpriority write _Setpriority;
  13906. property observe: TObserverCallback read _Getobserve write _Setobserve;
  13907. end;
  13908. TJSRequestInit = class(TJSObject,IJSRequestInit)
  13909. Protected
  13910. function _Getmethod: UnicodeString;
  13911. function _Getheaders: THeadersInit;
  13912. function _Getbody: TBodyInit;
  13913. function _Getreferrer: UnicodeString;
  13914. function _GetreferrerPolicy: TReferrerPolicy;
  13915. function _Getmode: TRequestMode;
  13916. function _Getcredentials: TRequestCredentials;
  13917. function _Getcache: TRequestCache;
  13918. function _Getredirect: TRequestRedirect;
  13919. function _Getintegrity: UnicodeString;
  13920. function _Getkeepalive: Boolean;
  13921. function _Getsignal: IJSAbortSignal;
  13922. function _Getpriority: TRequestPriority;
  13923. function _Getobserve: TObserverCallback;
  13924. procedure _Setmethod(const aValue: UnicodeString);
  13925. procedure _Setheaders(const aValue: THeadersInit);
  13926. procedure _Setbody(const aValue: TBodyInit);
  13927. procedure _Setreferrer(const aValue: UnicodeString);
  13928. procedure _SetreferrerPolicy(const aValue: TReferrerPolicy);
  13929. procedure _Setmode(const aValue: TRequestMode);
  13930. procedure _Setcredentials(const aValue: TRequestCredentials);
  13931. procedure _Setcache(const aValue: TRequestCache);
  13932. procedure _Setredirect(const aValue: TRequestRedirect);
  13933. procedure _Setintegrity(const aValue: UnicodeString);
  13934. procedure _Setkeepalive(const aValue: Boolean);
  13935. procedure _Setsignal(const aValue: IJSAbortSignal);
  13936. procedure _Setpriority(const aValue: TRequestPriority);
  13937. procedure _Setobserve(const aValue: TObserverCallback);
  13938. Public
  13939. class function JSClassName: UnicodeString; override;
  13940. class function Cast(const Intf: IJSObject): IJSRequestInit;
  13941. property method: UnicodeString read _Getmethod write _Setmethod;
  13942. property headers: THeadersInit read _Getheaders write _Setheaders;
  13943. property body: TBodyInit read _Getbody write _Setbody;
  13944. property referrer: UnicodeString read _Getreferrer write _Setreferrer;
  13945. property referrerPolicy: TReferrerPolicy read _GetreferrerPolicy write _SetreferrerPolicy;
  13946. property mode: TRequestMode read _Getmode write _Setmode;
  13947. property credentials: TRequestCredentials read _Getcredentials write _Setcredentials;
  13948. property cache: TRequestCache read _Getcache write _Setcache;
  13949. property redirect: TRequestRedirect read _Getredirect write _Setredirect;
  13950. property integrity: UnicodeString read _Getintegrity write _Setintegrity;
  13951. property keepalive: Boolean read _Getkeepalive write _Setkeepalive;
  13952. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  13953. property priority: TRequestPriority read _Getpriority write _Setpriority;
  13954. property observe: TObserverCallback read _Getobserve write _Setobserve;
  13955. end;
  13956. { --------------------------------------------------------------------
  13957. TJSResizeObserverOptions
  13958. --------------------------------------------------------------------}
  13959. TJSResizeObserverOptionsRec = record
  13960. box: TResizeObserverBoxOptions;
  13961. end;
  13962. IJSResizeObserverOptions = interface(IJSObject)
  13963. ['{60F22E6B-E247-3F8F-A9B6-FD28C995AB75}']
  13964. function _Getbox: TResizeObserverBoxOptions;
  13965. procedure _Setbox(const aValue: TResizeObserverBoxOptions);
  13966. property box: TResizeObserverBoxOptions read _Getbox write _Setbox;
  13967. end;
  13968. TJSResizeObserverOptions = class(TJSObject,IJSResizeObserverOptions)
  13969. Protected
  13970. function _Getbox: TResizeObserverBoxOptions;
  13971. procedure _Setbox(const aValue: TResizeObserverBoxOptions);
  13972. Public
  13973. class function JSClassName: UnicodeString; override;
  13974. class function Cast(const Intf: IJSObject): IJSResizeObserverOptions;
  13975. property box: TResizeObserverBoxOptions read _Getbox write _Setbox;
  13976. end;
  13977. { --------------------------------------------------------------------
  13978. TJSResponseInit
  13979. --------------------------------------------------------------------}
  13980. TJSResponseInitRec = record
  13981. status: Word;
  13982. statusText: UnicodeString;
  13983. headers: THeadersInit;
  13984. end;
  13985. IJSResponseInit = interface(IJSObject)
  13986. ['{6120F7C1-CA66-3589-BEFA-F94A712E5BEB}']
  13987. function _Getstatus: Word;
  13988. function _GetstatusText: UnicodeString;
  13989. function _Getheaders: THeadersInit;
  13990. procedure _Setstatus(const aValue: Word);
  13991. procedure _SetstatusText(const aValue: UnicodeString);
  13992. procedure _Setheaders(const aValue: THeadersInit);
  13993. property status: Word read _Getstatus write _Setstatus;
  13994. property statusText: UnicodeString read _GetstatusText write _SetstatusText;
  13995. property headers: THeadersInit read _Getheaders write _Setheaders;
  13996. end;
  13997. TJSResponseInit = class(TJSObject,IJSResponseInit)
  13998. Protected
  13999. function _Getstatus: Word;
  14000. function _GetstatusText: UnicodeString;
  14001. function _Getheaders: THeadersInit;
  14002. procedure _Setstatus(const aValue: Word);
  14003. procedure _SetstatusText(const aValue: UnicodeString);
  14004. procedure _Setheaders(const aValue: THeadersInit);
  14005. Public
  14006. class function JSClassName: UnicodeString; override;
  14007. class function Cast(const Intf: IJSObject): IJSResponseInit;
  14008. property status: Word read _Getstatus write _Setstatus;
  14009. property statusText: UnicodeString read _GetstatusText write _SetstatusText;
  14010. property headers: THeadersInit read _Getheaders write _Setheaders;
  14011. end;
  14012. { --------------------------------------------------------------------
  14013. TJSRTCCertificateExpiration
  14014. --------------------------------------------------------------------}
  14015. TJSRTCCertificateExpirationRec = record
  14016. expires: TDOMTimeStamp;
  14017. end;
  14018. IJSRTCCertificateExpiration = interface(IJSObject)
  14019. ['{EAB7C04B-A4D8-39AC-A0EE-6458E8573EFF}']
  14020. function _Getexpires: TDOMTimeStamp;
  14021. procedure _Setexpires(const aValue: TDOMTimeStamp);
  14022. property expires: TDOMTimeStamp read _Getexpires write _Setexpires;
  14023. end;
  14024. TJSRTCCertificateExpiration = class(TJSObject,IJSRTCCertificateExpiration)
  14025. Protected
  14026. function _Getexpires: TDOMTimeStamp;
  14027. procedure _Setexpires(const aValue: TDOMTimeStamp);
  14028. Public
  14029. class function JSClassName: UnicodeString; override;
  14030. class function Cast(const Intf: IJSObject): IJSRTCCertificateExpiration;
  14031. property expires: TDOMTimeStamp read _Getexpires write _Setexpires;
  14032. end;
  14033. { --------------------------------------------------------------------
  14034. TJSRTCIceServer
  14035. --------------------------------------------------------------------}
  14036. // Union of DOMString, sequence
  14037. TRTCIceServer_urls_Type = Variant;
  14038. TJSRTCIceServerRec = record
  14039. urls: TRTCIceServer_urls_Type;
  14040. url: UnicodeString;
  14041. username: UnicodeString;
  14042. credential: UnicodeString;
  14043. credentialType: TRTCIceCredentialType;
  14044. end;
  14045. IJSRTCIceServer = interface(IJSObject)
  14046. ['{711E045B-85D2-3A95-8186-97097308E809}']
  14047. function _Geturls: TRTCIceServer_urls_Type;
  14048. function _Geturl: UnicodeString;
  14049. function _Getusername: UnicodeString;
  14050. function _Getcredential: UnicodeString;
  14051. function _GetcredentialType: TRTCIceCredentialType;
  14052. procedure _Seturls(const aValue: TRTCIceServer_urls_Type);
  14053. procedure _Seturl(const aValue: UnicodeString);
  14054. procedure _Setusername(const aValue: UnicodeString);
  14055. procedure _Setcredential(const aValue: UnicodeString);
  14056. procedure _SetcredentialType(const aValue: TRTCIceCredentialType);
  14057. property urls: TRTCIceServer_urls_Type read _Geturls write _Seturls;
  14058. property url: UnicodeString read _Geturl write _Seturl;
  14059. property username: UnicodeString read _Getusername write _Setusername;
  14060. property credential: UnicodeString read _Getcredential write _Setcredential;
  14061. property credentialType: TRTCIceCredentialType read _GetcredentialType write _SetcredentialType;
  14062. end;
  14063. TJSRTCIceServer = class(TJSObject,IJSRTCIceServer)
  14064. Protected
  14065. function _Geturls: TRTCIceServer_urls_Type;
  14066. function _Geturl: UnicodeString;
  14067. function _Getusername: UnicodeString;
  14068. function _Getcredential: UnicodeString;
  14069. function _GetcredentialType: TRTCIceCredentialType;
  14070. procedure _Seturls(const aValue: TRTCIceServer_urls_Type);
  14071. procedure _Seturl(const aValue: UnicodeString);
  14072. procedure _Setusername(const aValue: UnicodeString);
  14073. procedure _Setcredential(const aValue: UnicodeString);
  14074. procedure _SetcredentialType(const aValue: TRTCIceCredentialType);
  14075. Public
  14076. class function JSClassName: UnicodeString; override;
  14077. class function Cast(const Intf: IJSObject): IJSRTCIceServer;
  14078. property urls: TRTCIceServer_urls_Type read _Geturls write _Seturls;
  14079. property url: UnicodeString read _Geturl write _Seturl;
  14080. property username: UnicodeString read _Getusername write _Setusername;
  14081. property credential: UnicodeString read _Getcredential write _Setcredential;
  14082. property credentialType: TRTCIceCredentialType read _GetcredentialType write _SetcredentialType;
  14083. end;
  14084. { --------------------------------------------------------------------
  14085. TJSRTCConfiguration
  14086. --------------------------------------------------------------------}
  14087. TJSRTCIceServerDynArray = IJSArray; // array of RTCIceServer
  14088. TJSRTCCertificateDynArray = IJSArray; // array of RTCCertificate
  14089. TJSRTCConfigurationRec = record
  14090. iceServers: TJSRTCIceServerDynArray;
  14091. iceTransportPolicy: TRTCIceTransportPolicy;
  14092. bundlePolicy: TRTCBundlePolicy;
  14093. peerIdentity: UnicodeString;
  14094. certificates: TJSRTCCertificateDynArray;
  14095. sdpSemantics: UnicodeString;
  14096. end;
  14097. IJSRTCConfiguration = interface(IJSObject)
  14098. ['{5E7F867B-E8DB-34CA-96E9-D7A6BB8C109B}']
  14099. function _GeticeServers: TJSRTCIceServerDynArray;
  14100. function _GeticeTransportPolicy: TRTCIceTransportPolicy;
  14101. function _GetbundlePolicy: TRTCBundlePolicy;
  14102. function _GetpeerIdentity: UnicodeString;
  14103. function _Getcertificates: TJSRTCCertificateDynArray;
  14104. function _GetsdpSemantics: UnicodeString;
  14105. procedure _SeticeServers(const aValue: TJSRTCIceServerDynArray);
  14106. procedure _SeticeTransportPolicy(const aValue: TRTCIceTransportPolicy);
  14107. procedure _SetbundlePolicy(const aValue: TRTCBundlePolicy);
  14108. procedure _SetpeerIdentity(const aValue: UnicodeString);
  14109. procedure _Setcertificates(const aValue: TJSRTCCertificateDynArray);
  14110. procedure _SetsdpSemantics(const aValue: UnicodeString);
  14111. property iceServers: TJSRTCIceServerDynArray read _GeticeServers write _SeticeServers;
  14112. property iceTransportPolicy: TRTCIceTransportPolicy read _GeticeTransportPolicy write _SeticeTransportPolicy;
  14113. property bundlePolicy: TRTCBundlePolicy read _GetbundlePolicy write _SetbundlePolicy;
  14114. property peerIdentity: UnicodeString read _GetpeerIdentity write _SetpeerIdentity;
  14115. property certificates: TJSRTCCertificateDynArray read _Getcertificates write _Setcertificates;
  14116. property sdpSemantics: UnicodeString read _GetsdpSemantics write _SetsdpSemantics;
  14117. end;
  14118. TJSRTCConfiguration = class(TJSObject,IJSRTCConfiguration)
  14119. Protected
  14120. function _GeticeServers: TJSRTCIceServerDynArray;
  14121. function _GeticeTransportPolicy: TRTCIceTransportPolicy;
  14122. function _GetbundlePolicy: TRTCBundlePolicy;
  14123. function _GetpeerIdentity: UnicodeString;
  14124. function _Getcertificates: TJSRTCCertificateDynArray;
  14125. function _GetsdpSemantics: UnicodeString;
  14126. procedure _SeticeServers(const aValue: TJSRTCIceServerDynArray);
  14127. procedure _SeticeTransportPolicy(const aValue: TRTCIceTransportPolicy);
  14128. procedure _SetbundlePolicy(const aValue: TRTCBundlePolicy);
  14129. procedure _SetpeerIdentity(const aValue: UnicodeString);
  14130. procedure _Setcertificates(const aValue: TJSRTCCertificateDynArray);
  14131. procedure _SetsdpSemantics(const aValue: UnicodeString);
  14132. Public
  14133. class function JSClassName: UnicodeString; override;
  14134. class function Cast(const Intf: IJSObject): IJSRTCConfiguration;
  14135. property iceServers: TJSRTCIceServerDynArray read _GeticeServers write _SeticeServers;
  14136. property iceTransportPolicy: TRTCIceTransportPolicy read _GeticeTransportPolicy write _SeticeTransportPolicy;
  14137. property bundlePolicy: TRTCBundlePolicy read _GetbundlePolicy write _SetbundlePolicy;
  14138. property peerIdentity: UnicodeString read _GetpeerIdentity write _SetpeerIdentity;
  14139. property certificates: TJSRTCCertificateDynArray read _Getcertificates write _Setcertificates;
  14140. property sdpSemantics: UnicodeString read _GetsdpSemantics write _SetsdpSemantics;
  14141. end;
  14142. { --------------------------------------------------------------------
  14143. TJSRTCEncodedAudioFrameMetadata
  14144. --------------------------------------------------------------------}
  14145. TJSRTCEncodedAudioFrameMetadataRec = record
  14146. synchronizationSource: Cardinal;
  14147. payloadType: Byte;
  14148. contributingSources: TCardinalDynArray;
  14149. sequenceNumber: SmallInt;
  14150. end;
  14151. IJSRTCEncodedAudioFrameMetadata = interface(IJSObject)
  14152. ['{12B52F4E-E8FA-3CB9-A30E-9CCBED9093DA}']
  14153. function _GetsynchronizationSource: Cardinal;
  14154. function _GetpayloadType: Byte;
  14155. function _GetcontributingSources: TCardinalDynArray;
  14156. function _GetsequenceNumber: SmallInt;
  14157. procedure _SetsynchronizationSource(const aValue: Cardinal);
  14158. procedure _SetpayloadType(const aValue: Byte);
  14159. procedure _SetcontributingSources(const aValue: TCardinalDynArray);
  14160. procedure _SetsequenceNumber(const aValue: SmallInt);
  14161. property synchronizationSource: Cardinal read _GetsynchronizationSource write _SetsynchronizationSource;
  14162. property payloadType: Byte read _GetpayloadType write _SetpayloadType;
  14163. property contributingSources: TCardinalDynArray read _GetcontributingSources write _SetcontributingSources;
  14164. property sequenceNumber: SmallInt read _GetsequenceNumber write _SetsequenceNumber;
  14165. end;
  14166. TJSRTCEncodedAudioFrameMetadata = class(TJSObject,IJSRTCEncodedAudioFrameMetadata)
  14167. Protected
  14168. function _GetsynchronizationSource: Cardinal;
  14169. function _GetpayloadType: Byte;
  14170. function _GetcontributingSources: TCardinalDynArray;
  14171. function _GetsequenceNumber: SmallInt;
  14172. procedure _SetsynchronizationSource(const aValue: Cardinal);
  14173. procedure _SetpayloadType(const aValue: Byte);
  14174. procedure _SetcontributingSources(const aValue: TCardinalDynArray);
  14175. procedure _SetsequenceNumber(const aValue: SmallInt);
  14176. Public
  14177. class function JSClassName: UnicodeString; override;
  14178. class function Cast(const Intf: IJSObject): IJSRTCEncodedAudioFrameMetadata;
  14179. property synchronizationSource: Cardinal read _GetsynchronizationSource write _SetsynchronizationSource;
  14180. property payloadType: Byte read _GetpayloadType write _SetpayloadType;
  14181. property contributingSources: TCardinalDynArray read _GetcontributingSources write _SetcontributingSources;
  14182. property sequenceNumber: SmallInt read _GetsequenceNumber write _SetsequenceNumber;
  14183. end;
  14184. { --------------------------------------------------------------------
  14185. TJSRTCEncodedVideoFrameMetadata
  14186. --------------------------------------------------------------------}
  14187. TQWordDynArray = IJSArray; // array of unsigned long long
  14188. TJSRTCEncodedVideoFrameMetadataRec = record
  14189. frameId: QWord;
  14190. dependencies: TQWordDynArray;
  14191. width: Word;
  14192. height: Word;
  14193. spatialIndex: Cardinal;
  14194. temporalIndex: Cardinal;
  14195. synchronizationSource: Cardinal;
  14196. payloadType: Byte;
  14197. contributingSources: TCardinalDynArray;
  14198. timestamp: Int64;
  14199. end;
  14200. IJSRTCEncodedVideoFrameMetadata = interface(IJSObject)
  14201. ['{FE24B749-FCE5-3F46-A7ED-7B1D43C8F6FE}']
  14202. function _GetframeId: QWord;
  14203. function _Getdependencies: TQWordDynArray;
  14204. function _Getwidth: Word;
  14205. function _Getheight: Word;
  14206. function _GetspatialIndex: Cardinal;
  14207. function _GettemporalIndex: Cardinal;
  14208. function _GetsynchronizationSource: Cardinal;
  14209. function _GetpayloadType: Byte;
  14210. function _GetcontributingSources: TCardinalDynArray;
  14211. function _Gettimestamp: Int64;
  14212. procedure _SetframeId(const aValue: QWord);
  14213. procedure _Setdependencies(const aValue: TQWordDynArray);
  14214. procedure _Setwidth(const aValue: Word);
  14215. procedure _Setheight(const aValue: Word);
  14216. procedure _SetspatialIndex(const aValue: Cardinal);
  14217. procedure _SettemporalIndex(const aValue: Cardinal);
  14218. procedure _SetsynchronizationSource(const aValue: Cardinal);
  14219. procedure _SetpayloadType(const aValue: Byte);
  14220. procedure _SetcontributingSources(const aValue: TCardinalDynArray);
  14221. procedure _Settimestamp(const aValue: Int64);
  14222. property frameId: QWord read _GetframeId write _SetframeId;
  14223. property dependencies: TQWordDynArray read _Getdependencies write _Setdependencies;
  14224. property width: Word read _Getwidth write _Setwidth;
  14225. property height: Word read _Getheight write _Setheight;
  14226. property spatialIndex: Cardinal read _GetspatialIndex write _SetspatialIndex;
  14227. property temporalIndex: Cardinal read _GettemporalIndex write _SettemporalIndex;
  14228. property synchronizationSource: Cardinal read _GetsynchronizationSource write _SetsynchronizationSource;
  14229. property payloadType: Byte read _GetpayloadType write _SetpayloadType;
  14230. property contributingSources: TCardinalDynArray read _GetcontributingSources write _SetcontributingSources;
  14231. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  14232. end;
  14233. TJSRTCEncodedVideoFrameMetadata = class(TJSObject,IJSRTCEncodedVideoFrameMetadata)
  14234. Protected
  14235. function _GetframeId: QWord;
  14236. function _Getdependencies: TQWordDynArray;
  14237. function _Getwidth: Word;
  14238. function _Getheight: Word;
  14239. function _GetspatialIndex: Cardinal;
  14240. function _GettemporalIndex: Cardinal;
  14241. function _GetsynchronizationSource: Cardinal;
  14242. function _GetpayloadType: Byte;
  14243. function _GetcontributingSources: TCardinalDynArray;
  14244. function _Gettimestamp: Int64;
  14245. procedure _SetframeId(const aValue: QWord);
  14246. procedure _Setdependencies(const aValue: TQWordDynArray);
  14247. procedure _Setwidth(const aValue: Word);
  14248. procedure _Setheight(const aValue: Word);
  14249. procedure _SetspatialIndex(const aValue: Cardinal);
  14250. procedure _SettemporalIndex(const aValue: Cardinal);
  14251. procedure _SetsynchronizationSource(const aValue: Cardinal);
  14252. procedure _SetpayloadType(const aValue: Byte);
  14253. procedure _SetcontributingSources(const aValue: TCardinalDynArray);
  14254. procedure _Settimestamp(const aValue: Int64);
  14255. Public
  14256. class function JSClassName: UnicodeString; override;
  14257. class function Cast(const Intf: IJSObject): IJSRTCEncodedVideoFrameMetadata;
  14258. property frameId: QWord read _GetframeId write _SetframeId;
  14259. property dependencies: TQWordDynArray read _Getdependencies write _Setdependencies;
  14260. property width: Word read _Getwidth write _Setwidth;
  14261. property height: Word read _Getheight write _Setheight;
  14262. property spatialIndex: Cardinal read _GetspatialIndex write _SetspatialIndex;
  14263. property temporalIndex: Cardinal read _GettemporalIndex write _SettemporalIndex;
  14264. property synchronizationSource: Cardinal read _GetsynchronizationSource write _SetsynchronizationSource;
  14265. property payloadType: Byte read _GetpayloadType write _SetpayloadType;
  14266. property contributingSources: TCardinalDynArray read _GetcontributingSources write _SetcontributingSources;
  14267. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  14268. end;
  14269. { --------------------------------------------------------------------
  14270. TJSRTCIceCandidateInit
  14271. --------------------------------------------------------------------}
  14272. TJSRTCIceCandidateInitRec = record
  14273. candidate: UnicodeString;
  14274. sdpMid: UnicodeString;
  14275. sdpMLineIndex: Word;
  14276. usernameFragment: UnicodeString;
  14277. end;
  14278. IJSRTCIceCandidateInit = interface(IJSObject)
  14279. ['{FD43C815-8A10-3F36-83B6-8DDE6E9AAEF5}']
  14280. function _Getcandidate: UnicodeString;
  14281. function _GetsdpMid: UnicodeString;
  14282. function _GetsdpMLineIndex: Word;
  14283. function _GetusernameFragment: UnicodeString;
  14284. procedure _Setcandidate(const aValue: UnicodeString);
  14285. procedure _SetsdpMid(const aValue: UnicodeString);
  14286. procedure _SetsdpMLineIndex(const aValue: Word);
  14287. procedure _SetusernameFragment(const aValue: UnicodeString);
  14288. property candidate: UnicodeString read _Getcandidate write _Setcandidate;
  14289. property sdpMid: UnicodeString read _GetsdpMid write _SetsdpMid;
  14290. property sdpMLineIndex: Word read _GetsdpMLineIndex write _SetsdpMLineIndex;
  14291. property usernameFragment: UnicodeString read _GetusernameFragment write _SetusernameFragment;
  14292. end;
  14293. TJSRTCIceCandidateInit = class(TJSObject,IJSRTCIceCandidateInit)
  14294. Protected
  14295. function _Getcandidate: UnicodeString;
  14296. function _GetsdpMid: UnicodeString;
  14297. function _GetsdpMLineIndex: Word;
  14298. function _GetusernameFragment: UnicodeString;
  14299. procedure _Setcandidate(const aValue: UnicodeString);
  14300. procedure _SetsdpMid(const aValue: UnicodeString);
  14301. procedure _SetsdpMLineIndex(const aValue: Word);
  14302. procedure _SetusernameFragment(const aValue: UnicodeString);
  14303. Public
  14304. class function JSClassName: UnicodeString; override;
  14305. class function Cast(const Intf: IJSObject): IJSRTCIceCandidateInit;
  14306. property candidate: UnicodeString read _Getcandidate write _Setcandidate;
  14307. property sdpMid: UnicodeString read _GetsdpMid write _SetsdpMid;
  14308. property sdpMLineIndex: Word read _GetsdpMLineIndex write _SetsdpMLineIndex;
  14309. property usernameFragment: UnicodeString read _GetusernameFragment write _SetusernameFragment;
  14310. end;
  14311. { --------------------------------------------------------------------
  14312. TJSRTCIdentityAssertion
  14313. --------------------------------------------------------------------}
  14314. TJSRTCIdentityAssertionRec = record
  14315. idp: UnicodeString;
  14316. name: UnicodeString;
  14317. end;
  14318. IJSRTCIdentityAssertion = interface(IJSObject)
  14319. ['{2AD7F1BB-A5CF-337D-9BBE-01951DF541D2}']
  14320. function _Getidp: UnicodeString;
  14321. function _Getname: UnicodeString;
  14322. procedure _Setidp(const aValue: UnicodeString);
  14323. procedure _Setname(const aValue: UnicodeString);
  14324. property idp: UnicodeString read _Getidp write _Setidp;
  14325. property name: UnicodeString read _Getname write _Setname;
  14326. end;
  14327. TJSRTCIdentityAssertion = class(TJSObject,IJSRTCIdentityAssertion)
  14328. Protected
  14329. function _Getidp: UnicodeString;
  14330. function _Getname: UnicodeString;
  14331. procedure _Setidp(const aValue: UnicodeString);
  14332. procedure _Setname(const aValue: UnicodeString);
  14333. Public
  14334. class function JSClassName: UnicodeString; override;
  14335. class function Cast(const Intf: IJSObject): IJSRTCIdentityAssertion;
  14336. property idp: UnicodeString read _Getidp write _Setidp;
  14337. property name: UnicodeString read _Getname write _Setname;
  14338. end;
  14339. { --------------------------------------------------------------------
  14340. TJSRTCIdentityProvider
  14341. --------------------------------------------------------------------}
  14342. TJSRTCIdentityProviderRec = record
  14343. generateAssertion: TGenerateAssertionCallback;
  14344. validateAssertion: TValidateAssertionCallback;
  14345. end;
  14346. IJSRTCIdentityProvider = interface(IJSObject)
  14347. ['{25E3136B-4631-356E-AE24-97C83B6BADCE}']
  14348. function _GetgenerateAssertion: TGenerateAssertionCallback;
  14349. function _GetvalidateAssertion: TValidateAssertionCallback;
  14350. procedure _SetgenerateAssertion(const aValue: TGenerateAssertionCallback);
  14351. procedure _SetvalidateAssertion(const aValue: TValidateAssertionCallback);
  14352. property generateAssertion: TGenerateAssertionCallback read _GetgenerateAssertion write _SetgenerateAssertion;
  14353. property validateAssertion: TValidateAssertionCallback read _GetvalidateAssertion write _SetvalidateAssertion;
  14354. end;
  14355. TJSRTCIdentityProvider = class(TJSObject,IJSRTCIdentityProvider)
  14356. Protected
  14357. function _GetgenerateAssertion: TGenerateAssertionCallback;
  14358. function _GetvalidateAssertion: TValidateAssertionCallback;
  14359. procedure _SetgenerateAssertion(const aValue: TGenerateAssertionCallback);
  14360. procedure _SetvalidateAssertion(const aValue: TValidateAssertionCallback);
  14361. Public
  14362. class function JSClassName: UnicodeString; override;
  14363. class function Cast(const Intf: IJSObject): IJSRTCIdentityProvider;
  14364. property generateAssertion: TGenerateAssertionCallback read _GetgenerateAssertion write _SetgenerateAssertion;
  14365. property validateAssertion: TValidateAssertionCallback read _GetvalidateAssertion write _SetvalidateAssertion;
  14366. end;
  14367. { --------------------------------------------------------------------
  14368. TJSRTCIdentityAssertionResult
  14369. --------------------------------------------------------------------}
  14370. TJSRTCIdentityAssertionResultRec = record
  14371. idp: TJSRTCIdentityProviderDetails;
  14372. assertion: UnicodeString;
  14373. end;
  14374. IJSRTCIdentityAssertionResult = interface(IJSObject)
  14375. ['{B0E16487-1226-315B-90A5-47F43CF353EF}']
  14376. function _Getidp: TJSRTCIdentityProviderDetails;
  14377. function _Getassertion: UnicodeString;
  14378. procedure _Setidp(const aValue: TJSRTCIdentityProviderDetails);
  14379. procedure _Setassertion(const aValue: UnicodeString);
  14380. property idp: TJSRTCIdentityProviderDetails read _Getidp write _Setidp;
  14381. property assertion: UnicodeString read _Getassertion write _Setassertion;
  14382. end;
  14383. TJSRTCIdentityAssertionResult = class(TJSObject,IJSRTCIdentityAssertionResult)
  14384. Protected
  14385. function _Getidp: TJSRTCIdentityProviderDetails;
  14386. function _Getassertion: UnicodeString;
  14387. procedure _Setidp(const aValue: TJSRTCIdentityProviderDetails);
  14388. procedure _Setassertion(const aValue: UnicodeString);
  14389. Public
  14390. class function JSClassName: UnicodeString; override;
  14391. class function Cast(const Intf: IJSObject): IJSRTCIdentityAssertionResult;
  14392. property idp: TJSRTCIdentityProviderDetails read _Getidp write _Setidp;
  14393. property assertion: UnicodeString read _Getassertion write _Setassertion;
  14394. end;
  14395. { --------------------------------------------------------------------
  14396. TJSRTCIdentityProviderDetails
  14397. --------------------------------------------------------------------}
  14398. TJSRTCIdentityProviderDetailsRec = record
  14399. domain: UnicodeString;
  14400. protocol: UnicodeString;
  14401. end;
  14402. IJSRTCIdentityProviderDetails = interface(IJSObject)
  14403. ['{18E04056-00A7-351E-AD31-51213AFA2663}']
  14404. function _Getdomain: UnicodeString;
  14405. function _Getprotocol: UnicodeString;
  14406. procedure _Setdomain(const aValue: UnicodeString);
  14407. procedure _Setprotocol(const aValue: UnicodeString);
  14408. property domain: UnicodeString read _Getdomain write _Setdomain;
  14409. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  14410. end;
  14411. TJSRTCIdentityProviderDetails = class(TJSObject,IJSRTCIdentityProviderDetails)
  14412. Protected
  14413. function _Getdomain: UnicodeString;
  14414. function _Getprotocol: UnicodeString;
  14415. procedure _Setdomain(const aValue: UnicodeString);
  14416. procedure _Setprotocol(const aValue: UnicodeString);
  14417. Public
  14418. class function JSClassName: UnicodeString; override;
  14419. class function Cast(const Intf: IJSObject): IJSRTCIdentityProviderDetails;
  14420. property domain: UnicodeString read _Getdomain write _Setdomain;
  14421. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  14422. end;
  14423. { --------------------------------------------------------------------
  14424. TJSRTCIdentityValidationResult
  14425. --------------------------------------------------------------------}
  14426. TJSRTCIdentityValidationResultRec = record
  14427. identity: UnicodeString;
  14428. contents: UnicodeString;
  14429. end;
  14430. IJSRTCIdentityValidationResult = interface(IJSObject)
  14431. ['{DCE601E6-0CED-3FAB-B022-287699F3B7B6}']
  14432. function _Getidentity: UnicodeString;
  14433. function _Getcontents: UnicodeString;
  14434. procedure _Setidentity(const aValue: UnicodeString);
  14435. procedure _Setcontents(const aValue: UnicodeString);
  14436. property identity: UnicodeString read _Getidentity write _Setidentity;
  14437. property contents: UnicodeString read _Getcontents write _Setcontents;
  14438. end;
  14439. TJSRTCIdentityValidationResult = class(TJSObject,IJSRTCIdentityValidationResult)
  14440. Protected
  14441. function _Getidentity: UnicodeString;
  14442. function _Getcontents: UnicodeString;
  14443. procedure _Setidentity(const aValue: UnicodeString);
  14444. procedure _Setcontents(const aValue: UnicodeString);
  14445. Public
  14446. class function JSClassName: UnicodeString; override;
  14447. class function Cast(const Intf: IJSObject): IJSRTCIdentityValidationResult;
  14448. property identity: UnicodeString read _Getidentity write _Setidentity;
  14449. property contents: UnicodeString read _Getcontents write _Setcontents;
  14450. end;
  14451. { --------------------------------------------------------------------
  14452. TJSRTCIdentityProviderOptions
  14453. --------------------------------------------------------------------}
  14454. TJSRTCIdentityProviderOptionsRec = record
  14455. protocol: UnicodeString;
  14456. usernameHint: UnicodeString;
  14457. peerIdentity: UnicodeString;
  14458. end;
  14459. IJSRTCIdentityProviderOptions = interface(IJSObject)
  14460. ['{7D143E3B-73D5-3158-AF43-64EB292F2C5F}']
  14461. function _Getprotocol: UnicodeString;
  14462. function _GetusernameHint: UnicodeString;
  14463. function _GetpeerIdentity: UnicodeString;
  14464. procedure _Setprotocol(const aValue: UnicodeString);
  14465. procedure _SetusernameHint(const aValue: UnicodeString);
  14466. procedure _SetpeerIdentity(const aValue: UnicodeString);
  14467. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  14468. property usernameHint: UnicodeString read _GetusernameHint write _SetusernameHint;
  14469. property peerIdentity: UnicodeString read _GetpeerIdentity write _SetpeerIdentity;
  14470. end;
  14471. TJSRTCIdentityProviderOptions = class(TJSObject,IJSRTCIdentityProviderOptions)
  14472. Protected
  14473. function _Getprotocol: UnicodeString;
  14474. function _GetusernameHint: UnicodeString;
  14475. function _GetpeerIdentity: UnicodeString;
  14476. procedure _Setprotocol(const aValue: UnicodeString);
  14477. procedure _SetusernameHint(const aValue: UnicodeString);
  14478. procedure _SetpeerIdentity(const aValue: UnicodeString);
  14479. Public
  14480. class function JSClassName: UnicodeString; override;
  14481. class function Cast(const Intf: IJSObject): IJSRTCIdentityProviderOptions;
  14482. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  14483. property usernameHint: UnicodeString read _GetusernameHint write _SetusernameHint;
  14484. property peerIdentity: UnicodeString read _GetpeerIdentity write _SetpeerIdentity;
  14485. end;
  14486. { --------------------------------------------------------------------
  14487. TJSRTCDataChannelInit
  14488. --------------------------------------------------------------------}
  14489. TJSRTCDataChannelInitRec = record
  14490. ordered: Boolean;
  14491. maxPacketLifeTime: Word;
  14492. maxRetransmits: Word;
  14493. protocol: UnicodeString;
  14494. negotiated: Boolean;
  14495. id: Word;
  14496. maxRetransmitTime: Word;
  14497. end;
  14498. IJSRTCDataChannelInit = interface(IJSObject)
  14499. ['{0093652F-1255-31DA-A57F-3FB23FF5C4A7}']
  14500. function _Getordered: Boolean;
  14501. function _GetmaxPacketLifeTime: Word;
  14502. function _GetmaxRetransmits: Word;
  14503. function _Getprotocol: UnicodeString;
  14504. function _Getnegotiated: Boolean;
  14505. function _Getid: Word;
  14506. function _GetmaxRetransmitTime: Word;
  14507. procedure _Setordered(const aValue: Boolean);
  14508. procedure _SetmaxPacketLifeTime(const aValue: Word);
  14509. procedure _SetmaxRetransmits(const aValue: Word);
  14510. procedure _Setprotocol(const aValue: UnicodeString);
  14511. procedure _Setnegotiated(const aValue: Boolean);
  14512. procedure _Setid(const aValue: Word);
  14513. procedure _SetmaxRetransmitTime(const aValue: Word);
  14514. property ordered: Boolean read _Getordered write _Setordered;
  14515. property maxPacketLifeTime: Word read _GetmaxPacketLifeTime write _SetmaxPacketLifeTime;
  14516. property maxRetransmits: Word read _GetmaxRetransmits write _SetmaxRetransmits;
  14517. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  14518. property negotiated: Boolean read _Getnegotiated write _Setnegotiated;
  14519. property id: Word read _Getid write _Setid;
  14520. property maxRetransmitTime: Word read _GetmaxRetransmitTime write _SetmaxRetransmitTime;
  14521. end;
  14522. TJSRTCDataChannelInit = class(TJSObject,IJSRTCDataChannelInit)
  14523. Protected
  14524. function _Getordered: Boolean;
  14525. function _GetmaxPacketLifeTime: Word;
  14526. function _GetmaxRetransmits: Word;
  14527. function _Getprotocol: UnicodeString;
  14528. function _Getnegotiated: Boolean;
  14529. function _Getid: Word;
  14530. function _GetmaxRetransmitTime: Word;
  14531. procedure _Setordered(const aValue: Boolean);
  14532. procedure _SetmaxPacketLifeTime(const aValue: Word);
  14533. procedure _SetmaxRetransmits(const aValue: Word);
  14534. procedure _Setprotocol(const aValue: UnicodeString);
  14535. procedure _Setnegotiated(const aValue: Boolean);
  14536. procedure _Setid(const aValue: Word);
  14537. procedure _SetmaxRetransmitTime(const aValue: Word);
  14538. Public
  14539. class function JSClassName: UnicodeString; override;
  14540. class function Cast(const Intf: IJSObject): IJSRTCDataChannelInit;
  14541. property ordered: Boolean read _Getordered write _Setordered;
  14542. property maxPacketLifeTime: Word read _GetmaxPacketLifeTime write _SetmaxPacketLifeTime;
  14543. property maxRetransmits: Word read _GetmaxRetransmits write _SetmaxRetransmits;
  14544. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  14545. property negotiated: Boolean read _Getnegotiated write _Setnegotiated;
  14546. property id: Word read _Getid write _Setid;
  14547. property maxRetransmitTime: Word read _GetmaxRetransmitTime write _SetmaxRetransmitTime;
  14548. end;
  14549. { --------------------------------------------------------------------
  14550. TJSRTCOfferAnswerOptions
  14551. --------------------------------------------------------------------}
  14552. TJSRTCOfferAnswerOptionsRec = record
  14553. end;
  14554. IJSRTCOfferAnswerOptions = interface(IJSObject)
  14555. ['{E0F22627-8E55-3C75-ADD6-FD28C995330F}']
  14556. end;
  14557. TJSRTCOfferAnswerOptions = class(TJSObject,IJSRTCOfferAnswerOptions)
  14558. Protected
  14559. Public
  14560. class function JSClassName: UnicodeString; override;
  14561. class function Cast(const Intf: IJSObject): IJSRTCOfferAnswerOptions;
  14562. end;
  14563. { --------------------------------------------------------------------
  14564. TJSRTCRtpCapabilities
  14565. --------------------------------------------------------------------}
  14566. TJSRTCRtpCodecCapabilityDynArray = IJSArray; // array of RTCRtpCodecCapability
  14567. TJSRTCRtpHeaderExtensionCapabilityDynArray = IJSArray; // array of RTCRtpHeaderExtensionCapability
  14568. TJSRTCRtpCapabilitiesRec = record
  14569. codecs: TJSRTCRtpCodecCapabilityDynArray;
  14570. headerExtensions: TJSRTCRtpHeaderExtensionCapabilityDynArray;
  14571. end;
  14572. IJSRTCRtpCapabilities = interface(IJSObject)
  14573. ['{0E61EFD3-0EB3-3F06-B2F1-29FE45D6F970}']
  14574. function _Getcodecs: TJSRTCRtpCodecCapabilityDynArray;
  14575. function _GetheaderExtensions: TJSRTCRtpHeaderExtensionCapabilityDynArray;
  14576. procedure _Setcodecs(const aValue: TJSRTCRtpCodecCapabilityDynArray);
  14577. procedure _SetheaderExtensions(const aValue: TJSRTCRtpHeaderExtensionCapabilityDynArray);
  14578. property codecs: TJSRTCRtpCodecCapabilityDynArray read _Getcodecs write _Setcodecs;
  14579. property headerExtensions: TJSRTCRtpHeaderExtensionCapabilityDynArray read _GetheaderExtensions write _SetheaderExtensions;
  14580. end;
  14581. TJSRTCRtpCapabilities = class(TJSObject,IJSRTCRtpCapabilities)
  14582. Protected
  14583. function _Getcodecs: TJSRTCRtpCodecCapabilityDynArray;
  14584. function _GetheaderExtensions: TJSRTCRtpHeaderExtensionCapabilityDynArray;
  14585. procedure _Setcodecs(const aValue: TJSRTCRtpCodecCapabilityDynArray);
  14586. procedure _SetheaderExtensions(const aValue: TJSRTCRtpHeaderExtensionCapabilityDynArray);
  14587. Public
  14588. class function JSClassName: UnicodeString; override;
  14589. class function Cast(const Intf: IJSObject): IJSRTCRtpCapabilities;
  14590. property codecs: TJSRTCRtpCodecCapabilityDynArray read _Getcodecs write _Setcodecs;
  14591. property headerExtensions: TJSRTCRtpHeaderExtensionCapabilityDynArray read _GetheaderExtensions write _SetheaderExtensions;
  14592. end;
  14593. { --------------------------------------------------------------------
  14594. TJSRTCRtpCodec
  14595. --------------------------------------------------------------------}
  14596. TJSRTCRtpCodecRec = record
  14597. mimeType: UnicodeString;
  14598. clockRate: Cardinal;
  14599. channels: Word;
  14600. sdpFmtpLine: UnicodeString;
  14601. end;
  14602. IJSRTCRtpCodec = interface(IJSObject)
  14603. ['{E8B4338B-FE64-37A0-8C34-9FFEDD9CF2DD}']
  14604. function _GetmimeType: UnicodeString;
  14605. function _GetclockRate: Cardinal;
  14606. function _Getchannels: Word;
  14607. function _GetsdpFmtpLine: UnicodeString;
  14608. procedure _SetmimeType(const aValue: UnicodeString);
  14609. procedure _SetclockRate(const aValue: Cardinal);
  14610. procedure _Setchannels(const aValue: Word);
  14611. procedure _SetsdpFmtpLine(const aValue: UnicodeString);
  14612. property mimeType: UnicodeString read _GetmimeType write _SetmimeType;
  14613. property clockRate: Cardinal read _GetclockRate write _SetclockRate;
  14614. property channels: Word read _Getchannels write _Setchannels;
  14615. property sdpFmtpLine: UnicodeString read _GetsdpFmtpLine write _SetsdpFmtpLine;
  14616. end;
  14617. TJSRTCRtpCodec = class(TJSObject,IJSRTCRtpCodec)
  14618. Protected
  14619. function _GetmimeType: UnicodeString;
  14620. function _GetclockRate: Cardinal;
  14621. function _Getchannels: Word;
  14622. function _GetsdpFmtpLine: UnicodeString;
  14623. procedure _SetmimeType(const aValue: UnicodeString);
  14624. procedure _SetclockRate(const aValue: Cardinal);
  14625. procedure _Setchannels(const aValue: Word);
  14626. procedure _SetsdpFmtpLine(const aValue: UnicodeString);
  14627. Public
  14628. class function JSClassName: UnicodeString; override;
  14629. class function Cast(const Intf: IJSObject): IJSRTCRtpCodec;
  14630. property mimeType: UnicodeString read _GetmimeType write _SetmimeType;
  14631. property clockRate: Cardinal read _GetclockRate write _SetclockRate;
  14632. property channels: Word read _Getchannels write _Setchannels;
  14633. property sdpFmtpLine: UnicodeString read _GetsdpFmtpLine write _SetsdpFmtpLine;
  14634. end;
  14635. { --------------------------------------------------------------------
  14636. TJSRTCRtpHeaderExtensionCapability
  14637. --------------------------------------------------------------------}
  14638. TJSRTCRtpHeaderExtensionCapabilityRec = record
  14639. uri: UnicodeString;
  14640. end;
  14641. IJSRTCRtpHeaderExtensionCapability = interface(IJSObject)
  14642. ['{D50DCF52-D19F-34F4-96CA-2F11327AB294}']
  14643. function _Geturi: UnicodeString;
  14644. procedure _Seturi(const aValue: UnicodeString);
  14645. property uri: UnicodeString read _Geturi write _Seturi;
  14646. end;
  14647. TJSRTCRtpHeaderExtensionCapability = class(TJSObject,IJSRTCRtpHeaderExtensionCapability)
  14648. Protected
  14649. function _Geturi: UnicodeString;
  14650. procedure _Seturi(const aValue: UnicodeString);
  14651. Public
  14652. class function JSClassName: UnicodeString; override;
  14653. class function Cast(const Intf: IJSObject): IJSRTCRtpHeaderExtensionCapability;
  14654. property uri: UnicodeString read _Geturi write _Seturi;
  14655. end;
  14656. { --------------------------------------------------------------------
  14657. TJSRTCRtpEncodingParameters
  14658. --------------------------------------------------------------------}
  14659. TJSRTCRtpEncodingParametersRec = record
  14660. active: Boolean;
  14661. priority: TRTCPriorityType;
  14662. maxBitrate: Cardinal;
  14663. rid: UnicodeString;
  14664. scaleResolutionDownBy: Double;
  14665. maxFramerate: Double;
  14666. end;
  14667. IJSRTCRtpEncodingParameters = interface(IJSObject)
  14668. ['{E797EA80-8F71-322D-B2AA-9AD3B59D1AFB}']
  14669. function _Getactive: Boolean;
  14670. function _Getpriority: TRTCPriorityType;
  14671. function _GetmaxBitrate: Cardinal;
  14672. function _Getrid: UnicodeString;
  14673. function _GetscaleResolutionDownBy: Double;
  14674. function _GetmaxFramerate: Double;
  14675. procedure _Setactive(const aValue: Boolean);
  14676. procedure _Setpriority(const aValue: TRTCPriorityType);
  14677. procedure _SetmaxBitrate(const aValue: Cardinal);
  14678. procedure _Setrid(const aValue: UnicodeString);
  14679. procedure _SetscaleResolutionDownBy(const aValue: Double);
  14680. procedure _SetmaxFramerate(const aValue: Double);
  14681. property active: Boolean read _Getactive write _Setactive;
  14682. property priority: TRTCPriorityType read _Getpriority write _Setpriority;
  14683. property maxBitrate: Cardinal read _GetmaxBitrate write _SetmaxBitrate;
  14684. property rid: UnicodeString read _Getrid write _Setrid;
  14685. property scaleResolutionDownBy: Double read _GetscaleResolutionDownBy write _SetscaleResolutionDownBy;
  14686. property maxFramerate: Double read _GetmaxFramerate write _SetmaxFramerate;
  14687. end;
  14688. TJSRTCRtpEncodingParameters = class(TJSObject,IJSRTCRtpEncodingParameters)
  14689. Protected
  14690. function _Getactive: Boolean;
  14691. function _Getpriority: TRTCPriorityType;
  14692. function _GetmaxBitrate: Cardinal;
  14693. function _Getrid: UnicodeString;
  14694. function _GetscaleResolutionDownBy: Double;
  14695. function _GetmaxFramerate: Double;
  14696. procedure _Setactive(const aValue: Boolean);
  14697. procedure _Setpriority(const aValue: TRTCPriorityType);
  14698. procedure _SetmaxBitrate(const aValue: Cardinal);
  14699. procedure _Setrid(const aValue: UnicodeString);
  14700. procedure _SetscaleResolutionDownBy(const aValue: Double);
  14701. procedure _SetmaxFramerate(const aValue: Double);
  14702. Public
  14703. class function JSClassName: UnicodeString; override;
  14704. class function Cast(const Intf: IJSObject): IJSRTCRtpEncodingParameters;
  14705. property active: Boolean read _Getactive write _Setactive;
  14706. property priority: TRTCPriorityType read _Getpriority write _Setpriority;
  14707. property maxBitrate: Cardinal read _GetmaxBitrate write _SetmaxBitrate;
  14708. property rid: UnicodeString read _Getrid write _Setrid;
  14709. property scaleResolutionDownBy: Double read _GetscaleResolutionDownBy write _SetscaleResolutionDownBy;
  14710. property maxFramerate: Double read _GetmaxFramerate write _SetmaxFramerate;
  14711. end;
  14712. { --------------------------------------------------------------------
  14713. TJSRTCRtpHeaderExtensionParameters
  14714. --------------------------------------------------------------------}
  14715. TJSRTCRtpHeaderExtensionParametersRec = record
  14716. uri: UnicodeString;
  14717. id: Word;
  14718. encrypted: Boolean;
  14719. end;
  14720. IJSRTCRtpHeaderExtensionParameters = interface(IJSObject)
  14721. ['{D911404E-BF1D-3BAD-B39A-85C1DE3F05FC}']
  14722. function _Geturi: UnicodeString;
  14723. function _Getid: Word;
  14724. function _Getencrypted: Boolean;
  14725. procedure _Seturi(const aValue: UnicodeString);
  14726. procedure _Setid(const aValue: Word);
  14727. procedure _Setencrypted(const aValue: Boolean);
  14728. property uri: UnicodeString read _Geturi write _Seturi;
  14729. property id: Word read _Getid write _Setid;
  14730. property encrypted: Boolean read _Getencrypted write _Setencrypted;
  14731. end;
  14732. TJSRTCRtpHeaderExtensionParameters = class(TJSObject,IJSRTCRtpHeaderExtensionParameters)
  14733. Protected
  14734. function _Geturi: UnicodeString;
  14735. function _Getid: Word;
  14736. function _Getencrypted: Boolean;
  14737. procedure _Seturi(const aValue: UnicodeString);
  14738. procedure _Setid(const aValue: Word);
  14739. procedure _Setencrypted(const aValue: Boolean);
  14740. Public
  14741. class function JSClassName: UnicodeString; override;
  14742. class function Cast(const Intf: IJSObject): IJSRTCRtpHeaderExtensionParameters;
  14743. property uri: UnicodeString read _Geturi write _Seturi;
  14744. property id: Word read _Getid write _Setid;
  14745. property encrypted: Boolean read _Getencrypted write _Setencrypted;
  14746. end;
  14747. { --------------------------------------------------------------------
  14748. TJSRTCRtcpParameters
  14749. --------------------------------------------------------------------}
  14750. TJSRTCRtcpParametersRec = record
  14751. cname: UnicodeString;
  14752. reducedSize: Boolean;
  14753. end;
  14754. IJSRTCRtcpParameters = interface(IJSObject)
  14755. ['{7D9DDD1C-B2DA-315E-B63A-0D01DA19EA2C}']
  14756. function _Getcname: UnicodeString;
  14757. function _GetreducedSize: Boolean;
  14758. procedure _Setcname(const aValue: UnicodeString);
  14759. procedure _SetreducedSize(const aValue: Boolean);
  14760. property cname: UnicodeString read _Getcname write _Setcname;
  14761. property reducedSize: Boolean read _GetreducedSize write _SetreducedSize;
  14762. end;
  14763. TJSRTCRtcpParameters = class(TJSObject,IJSRTCRtcpParameters)
  14764. Protected
  14765. function _Getcname: UnicodeString;
  14766. function _GetreducedSize: Boolean;
  14767. procedure _Setcname(const aValue: UnicodeString);
  14768. procedure _SetreducedSize(const aValue: Boolean);
  14769. Public
  14770. class function JSClassName: UnicodeString; override;
  14771. class function Cast(const Intf: IJSObject): IJSRTCRtcpParameters;
  14772. property cname: UnicodeString read _Getcname write _Setcname;
  14773. property reducedSize: Boolean read _GetreducedSize write _SetreducedSize;
  14774. end;
  14775. { --------------------------------------------------------------------
  14776. TJSRTCRtpCodecParameters
  14777. --------------------------------------------------------------------}
  14778. TJSRTCRtpCodecParametersRec = record
  14779. payloadType: Word;
  14780. mimeType: UnicodeString;
  14781. clockRate: Cardinal;
  14782. channels: Word;
  14783. sdpFmtpLine: UnicodeString;
  14784. end;
  14785. IJSRTCRtpCodecParameters = interface(IJSObject)
  14786. ['{F34FAE54-3385-36CE-9DE1-BCC45ECEA10B}']
  14787. function _GetpayloadType: Word;
  14788. function _GetmimeType: UnicodeString;
  14789. function _GetclockRate: Cardinal;
  14790. function _Getchannels: Word;
  14791. function _GetsdpFmtpLine: UnicodeString;
  14792. procedure _SetpayloadType(const aValue: Word);
  14793. procedure _SetmimeType(const aValue: UnicodeString);
  14794. procedure _SetclockRate(const aValue: Cardinal);
  14795. procedure _Setchannels(const aValue: Word);
  14796. procedure _SetsdpFmtpLine(const aValue: UnicodeString);
  14797. property payloadType: Word read _GetpayloadType write _SetpayloadType;
  14798. property mimeType: UnicodeString read _GetmimeType write _SetmimeType;
  14799. property clockRate: Cardinal read _GetclockRate write _SetclockRate;
  14800. property channels: Word read _Getchannels write _Setchannels;
  14801. property sdpFmtpLine: UnicodeString read _GetsdpFmtpLine write _SetsdpFmtpLine;
  14802. end;
  14803. TJSRTCRtpCodecParameters = class(TJSObject,IJSRTCRtpCodecParameters)
  14804. Protected
  14805. function _GetpayloadType: Word;
  14806. function _GetmimeType: UnicodeString;
  14807. function _GetclockRate: Cardinal;
  14808. function _Getchannels: Word;
  14809. function _GetsdpFmtpLine: UnicodeString;
  14810. procedure _SetpayloadType(const aValue: Word);
  14811. procedure _SetmimeType(const aValue: UnicodeString);
  14812. procedure _SetclockRate(const aValue: Cardinal);
  14813. procedure _Setchannels(const aValue: Word);
  14814. procedure _SetsdpFmtpLine(const aValue: UnicodeString);
  14815. Public
  14816. class function JSClassName: UnicodeString; override;
  14817. class function Cast(const Intf: IJSObject): IJSRTCRtpCodecParameters;
  14818. property payloadType: Word read _GetpayloadType write _SetpayloadType;
  14819. property mimeType: UnicodeString read _GetmimeType write _SetmimeType;
  14820. property clockRate: Cardinal read _GetclockRate write _SetclockRate;
  14821. property channels: Word read _Getchannels write _Setchannels;
  14822. property sdpFmtpLine: UnicodeString read _GetsdpFmtpLine write _SetsdpFmtpLine;
  14823. end;
  14824. { --------------------------------------------------------------------
  14825. TJSRTCRtpParameters
  14826. --------------------------------------------------------------------}
  14827. TJSRTCRtpHeaderExtensionParametersDynArray = IJSArray; // array of RTCRtpHeaderExtensionParameters
  14828. TJSRTCRtpCodecParametersDynArray = IJSArray; // array of RTCRtpCodecParameters
  14829. TJSRTCRtpParametersRec = record
  14830. headerExtensions: TJSRTCRtpHeaderExtensionParametersDynArray;
  14831. rtcp: TJSRTCRtcpParameters;
  14832. codecs: TJSRTCRtpCodecParametersDynArray;
  14833. end;
  14834. IJSRTCRtpParameters = interface(IJSObject)
  14835. ['{37CB477F-4632-30CD-9727-D83536F2C3D8}']
  14836. function _GetheaderExtensions: TJSRTCRtpHeaderExtensionParametersDynArray;
  14837. function _Getrtcp: TJSRTCRtcpParameters;
  14838. function _Getcodecs: TJSRTCRtpCodecParametersDynArray;
  14839. procedure _SetheaderExtensions(const aValue: TJSRTCRtpHeaderExtensionParametersDynArray);
  14840. procedure _Setrtcp(const aValue: TJSRTCRtcpParameters);
  14841. procedure _Setcodecs(const aValue: TJSRTCRtpCodecParametersDynArray);
  14842. property headerExtensions: TJSRTCRtpHeaderExtensionParametersDynArray read _GetheaderExtensions write _SetheaderExtensions;
  14843. property rtcp: TJSRTCRtcpParameters read _Getrtcp write _Setrtcp;
  14844. property codecs: TJSRTCRtpCodecParametersDynArray read _Getcodecs write _Setcodecs;
  14845. end;
  14846. TJSRTCRtpParameters = class(TJSObject,IJSRTCRtpParameters)
  14847. Protected
  14848. function _GetheaderExtensions: TJSRTCRtpHeaderExtensionParametersDynArray;
  14849. function _Getrtcp: TJSRTCRtcpParameters;
  14850. function _Getcodecs: TJSRTCRtpCodecParametersDynArray;
  14851. procedure _SetheaderExtensions(const aValue: TJSRTCRtpHeaderExtensionParametersDynArray);
  14852. procedure _Setrtcp(const aValue: TJSRTCRtcpParameters);
  14853. procedure _Setcodecs(const aValue: TJSRTCRtpCodecParametersDynArray);
  14854. Public
  14855. class function JSClassName: UnicodeString; override;
  14856. class function Cast(const Intf: IJSObject): IJSRTCRtpParameters;
  14857. property headerExtensions: TJSRTCRtpHeaderExtensionParametersDynArray read _GetheaderExtensions write _SetheaderExtensions;
  14858. property rtcp: TJSRTCRtcpParameters read _Getrtcp write _Setrtcp;
  14859. property codecs: TJSRTCRtpCodecParametersDynArray read _Getcodecs write _Setcodecs;
  14860. end;
  14861. { --------------------------------------------------------------------
  14862. TJSRTCRtpContributingSource
  14863. --------------------------------------------------------------------}
  14864. TJSRTCRtpContributingSourceRec = record
  14865. timestamp: TDOMHighResTimeStamp;
  14866. source: Cardinal;
  14867. audioLevel: Double;
  14868. rtpTimestamp: Cardinal;
  14869. end;
  14870. IJSRTCRtpContributingSource = interface(IJSObject)
  14871. ['{21BB71CE-B38E-3CDD-BA8C-B71C9C00223E}']
  14872. function _Gettimestamp: TDOMHighResTimeStamp;
  14873. function _Getsource: Cardinal;
  14874. function _GetaudioLevel: Double;
  14875. function _GetrtpTimestamp: Cardinal;
  14876. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  14877. procedure _Setsource(const aValue: Cardinal);
  14878. procedure _SetaudioLevel(const aValue: Double);
  14879. procedure _SetrtpTimestamp(const aValue: Cardinal);
  14880. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  14881. property source: Cardinal read _Getsource write _Setsource;
  14882. property audioLevel: Double read _GetaudioLevel write _SetaudioLevel;
  14883. property rtpTimestamp: Cardinal read _GetrtpTimestamp write _SetrtpTimestamp;
  14884. end;
  14885. TJSRTCRtpContributingSource = class(TJSObject,IJSRTCRtpContributingSource)
  14886. Protected
  14887. function _Gettimestamp: TDOMHighResTimeStamp;
  14888. function _Getsource: Cardinal;
  14889. function _GetaudioLevel: Double;
  14890. function _GetrtpTimestamp: Cardinal;
  14891. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  14892. procedure _Setsource(const aValue: Cardinal);
  14893. procedure _SetaudioLevel(const aValue: Double);
  14894. procedure _SetrtpTimestamp(const aValue: Cardinal);
  14895. Public
  14896. class function JSClassName: UnicodeString; override;
  14897. class function Cast(const Intf: IJSObject): IJSRTCRtpContributingSource;
  14898. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  14899. property source: Cardinal read _Getsource write _Setsource;
  14900. property audioLevel: Double read _GetaudioLevel write _SetaudioLevel;
  14901. property rtpTimestamp: Cardinal read _GetrtpTimestamp write _SetrtpTimestamp;
  14902. end;
  14903. { --------------------------------------------------------------------
  14904. TJSRTCRtpTransceiverInit
  14905. --------------------------------------------------------------------}
  14906. TJSMediaStreamDynArray = IJSArray; // array of MediaStream
  14907. TJSRTCRtpEncodingParametersDynArray = IJSArray; // array of RTCRtpEncodingParameters
  14908. TJSRTCRtpTransceiverInitRec = record
  14909. direction: TRTCRtpTransceiverDirection;
  14910. streams: TJSMediaStreamDynArray;
  14911. sendEncodings: TJSRTCRtpEncodingParametersDynArray;
  14912. end;
  14913. IJSRTCRtpTransceiverInit = interface(IJSObject)
  14914. ['{441F0FBC-DB04-323A-B4F9-3417EC0DBD3B}']
  14915. function _Getdirection: TRTCRtpTransceiverDirection;
  14916. function _Getstreams: TJSMediaStreamDynArray;
  14917. function _GetsendEncodings: TJSRTCRtpEncodingParametersDynArray;
  14918. procedure _Setdirection(const aValue: TRTCRtpTransceiverDirection);
  14919. procedure _Setstreams(const aValue: TJSMediaStreamDynArray);
  14920. procedure _SetsendEncodings(const aValue: TJSRTCRtpEncodingParametersDynArray);
  14921. property direction: TRTCRtpTransceiverDirection read _Getdirection write _Setdirection;
  14922. property streams: TJSMediaStreamDynArray read _Getstreams write _Setstreams;
  14923. property sendEncodings: TJSRTCRtpEncodingParametersDynArray read _GetsendEncodings write _SetsendEncodings;
  14924. end;
  14925. TJSRTCRtpTransceiverInit = class(TJSObject,IJSRTCRtpTransceiverInit)
  14926. Protected
  14927. function _Getdirection: TRTCRtpTransceiverDirection;
  14928. function _Getstreams: TJSMediaStreamDynArray;
  14929. function _GetsendEncodings: TJSRTCRtpEncodingParametersDynArray;
  14930. procedure _Setdirection(const aValue: TRTCRtpTransceiverDirection);
  14931. procedure _Setstreams(const aValue: TJSMediaStreamDynArray);
  14932. procedure _SetsendEncodings(const aValue: TJSRTCRtpEncodingParametersDynArray);
  14933. Public
  14934. class function JSClassName: UnicodeString; override;
  14935. class function Cast(const Intf: IJSObject): IJSRTCRtpTransceiverInit;
  14936. property direction: TRTCRtpTransceiverDirection read _Getdirection write _Setdirection;
  14937. property streams: TJSMediaStreamDynArray read _Getstreams write _Setstreams;
  14938. property sendEncodings: TJSRTCRtpEncodingParametersDynArray read _GetsendEncodings write _SetsendEncodings;
  14939. end;
  14940. { --------------------------------------------------------------------
  14941. TJSRTCSessionDescriptionInit
  14942. --------------------------------------------------------------------}
  14943. TJSRTCSessionDescriptionInitRec = record
  14944. type_: TRTCSdpType;
  14945. sdp: UnicodeString;
  14946. end;
  14947. IJSRTCSessionDescriptionInit = interface(IJSObject)
  14948. ['{895332FC-4BB8-3BB7-A165-0DB04F5683B8}']
  14949. function _Gettype_: TRTCSdpType;
  14950. function _Getsdp: UnicodeString;
  14951. procedure _Settype_(const aValue: TRTCSdpType);
  14952. procedure _Setsdp(const aValue: UnicodeString);
  14953. property type_: TRTCSdpType read _Gettype_ write _Settype_;
  14954. property sdp: UnicodeString read _Getsdp write _Setsdp;
  14955. end;
  14956. TJSRTCSessionDescriptionInit = class(TJSObject,IJSRTCSessionDescriptionInit)
  14957. Protected
  14958. function _Gettype_: TRTCSdpType;
  14959. function _Getsdp: UnicodeString;
  14960. procedure _Settype_(const aValue: TRTCSdpType);
  14961. procedure _Setsdp(const aValue: UnicodeString);
  14962. Public
  14963. class function JSClassName: UnicodeString; override;
  14964. class function Cast(const Intf: IJSObject): IJSRTCSessionDescriptionInit;
  14965. property type_: TRTCSdpType read _Gettype_ write _Settype_;
  14966. property sdp: UnicodeString read _Getsdp write _Setsdp;
  14967. end;
  14968. { --------------------------------------------------------------------
  14969. TJSRTCLocalSessionDescriptionInit
  14970. --------------------------------------------------------------------}
  14971. TJSRTCLocalSessionDescriptionInitRec = record
  14972. type_: TRTCSdpType;
  14973. sdp: UnicodeString;
  14974. end;
  14975. IJSRTCLocalSessionDescriptionInit = interface(IJSObject)
  14976. ['{056C24A9-8324-30A1-98B3-DB71B2845527}']
  14977. function _Gettype_: TRTCSdpType;
  14978. function _Getsdp: UnicodeString;
  14979. procedure _Settype_(const aValue: TRTCSdpType);
  14980. procedure _Setsdp(const aValue: UnicodeString);
  14981. property type_: TRTCSdpType read _Gettype_ write _Settype_;
  14982. property sdp: UnicodeString read _Getsdp write _Setsdp;
  14983. end;
  14984. TJSRTCLocalSessionDescriptionInit = class(TJSObject,IJSRTCLocalSessionDescriptionInit)
  14985. Protected
  14986. function _Gettype_: TRTCSdpType;
  14987. function _Getsdp: UnicodeString;
  14988. procedure _Settype_(const aValue: TRTCSdpType);
  14989. procedure _Setsdp(const aValue: UnicodeString);
  14990. Public
  14991. class function JSClassName: UnicodeString; override;
  14992. class function Cast(const Intf: IJSObject): IJSRTCLocalSessionDescriptionInit;
  14993. property type_: TRTCSdpType read _Gettype_ write _Settype_;
  14994. property sdp: UnicodeString read _Getsdp write _Setsdp;
  14995. end;
  14996. { --------------------------------------------------------------------
  14997. TJSRTCStats
  14998. --------------------------------------------------------------------}
  14999. TJSRTCStatsRec = record
  15000. timestamp: TDOMHighResTimeStamp;
  15001. type_: TRTCStatsType;
  15002. id: UnicodeString;
  15003. end;
  15004. IJSRTCStats = interface(IJSObject)
  15005. ['{B7CCFE19-7EC0-3C33-81F1-CA9421284553}']
  15006. function _Gettimestamp: TDOMHighResTimeStamp;
  15007. function _Gettype_: TRTCStatsType;
  15008. function _Getid: UnicodeString;
  15009. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  15010. procedure _Settype_(const aValue: TRTCStatsType);
  15011. procedure _Setid(const aValue: UnicodeString);
  15012. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  15013. property type_: TRTCStatsType read _Gettype_ write _Settype_;
  15014. property id: UnicodeString read _Getid write _Setid;
  15015. end;
  15016. TJSRTCStats = class(TJSObject,IJSRTCStats)
  15017. Protected
  15018. function _Gettimestamp: TDOMHighResTimeStamp;
  15019. function _Gettype_: TRTCStatsType;
  15020. function _Getid: UnicodeString;
  15021. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  15022. procedure _Settype_(const aValue: TRTCStatsType);
  15023. procedure _Setid(const aValue: UnicodeString);
  15024. Public
  15025. class function JSClassName: UnicodeString; override;
  15026. class function Cast(const Intf: IJSObject): IJSRTCStats;
  15027. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  15028. property type_: TRTCStatsType read _Gettype_ write _Settype_;
  15029. property id: UnicodeString read _Getid write _Setid;
  15030. end;
  15031. { --------------------------------------------------------------------
  15032. TJSRTCVideoFrameHistoryEntryInternal
  15033. --------------------------------------------------------------------}
  15034. TJSRTCVideoFrameHistoryEntryInternalRec = record
  15035. width: Cardinal;
  15036. height: Cardinal;
  15037. rotationAngle: Cardinal;
  15038. firstFrameTimestamp: TDOMHighResTimeStamp;
  15039. lastFrameTimestamp: TDOMHighResTimeStamp;
  15040. consecutiveFrames: QWord;
  15041. localSsrc: Cardinal;
  15042. remoteSsrc: Cardinal;
  15043. end;
  15044. IJSRTCVideoFrameHistoryEntryInternal = interface(IJSObject)
  15045. ['{63461D45-A8AF-359E-94B4-45B6FB6F5970}']
  15046. function _Getwidth: Cardinal;
  15047. function _Getheight: Cardinal;
  15048. function _GetrotationAngle: Cardinal;
  15049. function _GetfirstFrameTimestamp: TDOMHighResTimeStamp;
  15050. function _GetlastFrameTimestamp: TDOMHighResTimeStamp;
  15051. function _GetconsecutiveFrames: QWord;
  15052. function _GetlocalSsrc: Cardinal;
  15053. function _GetremoteSsrc: Cardinal;
  15054. procedure _Setwidth(const aValue: Cardinal);
  15055. procedure _Setheight(const aValue: Cardinal);
  15056. procedure _SetrotationAngle(const aValue: Cardinal);
  15057. procedure _SetfirstFrameTimestamp(const aValue: TDOMHighResTimeStamp);
  15058. procedure _SetlastFrameTimestamp(const aValue: TDOMHighResTimeStamp);
  15059. procedure _SetconsecutiveFrames(const aValue: QWord);
  15060. procedure _SetlocalSsrc(const aValue: Cardinal);
  15061. procedure _SetremoteSsrc(const aValue: Cardinal);
  15062. property width: Cardinal read _Getwidth write _Setwidth;
  15063. property height: Cardinal read _Getheight write _Setheight;
  15064. property rotationAngle: Cardinal read _GetrotationAngle write _SetrotationAngle;
  15065. property firstFrameTimestamp: TDOMHighResTimeStamp read _GetfirstFrameTimestamp write _SetfirstFrameTimestamp;
  15066. property lastFrameTimestamp: TDOMHighResTimeStamp read _GetlastFrameTimestamp write _SetlastFrameTimestamp;
  15067. property consecutiveFrames: QWord read _GetconsecutiveFrames write _SetconsecutiveFrames;
  15068. property localSsrc: Cardinal read _GetlocalSsrc write _SetlocalSsrc;
  15069. property remoteSsrc: Cardinal read _GetremoteSsrc write _SetremoteSsrc;
  15070. end;
  15071. TJSRTCVideoFrameHistoryEntryInternal = class(TJSObject,IJSRTCVideoFrameHistoryEntryInternal)
  15072. Protected
  15073. function _Getwidth: Cardinal;
  15074. function _Getheight: Cardinal;
  15075. function _GetrotationAngle: Cardinal;
  15076. function _GetfirstFrameTimestamp: TDOMHighResTimeStamp;
  15077. function _GetlastFrameTimestamp: TDOMHighResTimeStamp;
  15078. function _GetconsecutiveFrames: QWord;
  15079. function _GetlocalSsrc: Cardinal;
  15080. function _GetremoteSsrc: Cardinal;
  15081. procedure _Setwidth(const aValue: Cardinal);
  15082. procedure _Setheight(const aValue: Cardinal);
  15083. procedure _SetrotationAngle(const aValue: Cardinal);
  15084. procedure _SetfirstFrameTimestamp(const aValue: TDOMHighResTimeStamp);
  15085. procedure _SetlastFrameTimestamp(const aValue: TDOMHighResTimeStamp);
  15086. procedure _SetconsecutiveFrames(const aValue: QWord);
  15087. procedure _SetlocalSsrc(const aValue: Cardinal);
  15088. procedure _SetremoteSsrc(const aValue: Cardinal);
  15089. Public
  15090. class function JSClassName: UnicodeString; override;
  15091. class function Cast(const Intf: IJSObject): IJSRTCVideoFrameHistoryEntryInternal;
  15092. property width: Cardinal read _Getwidth write _Setwidth;
  15093. property height: Cardinal read _Getheight write _Setheight;
  15094. property rotationAngle: Cardinal read _GetrotationAngle write _SetrotationAngle;
  15095. property firstFrameTimestamp: TDOMHighResTimeStamp read _GetfirstFrameTimestamp write _SetfirstFrameTimestamp;
  15096. property lastFrameTimestamp: TDOMHighResTimeStamp read _GetlastFrameTimestamp write _SetlastFrameTimestamp;
  15097. property consecutiveFrames: QWord read _GetconsecutiveFrames write _SetconsecutiveFrames;
  15098. property localSsrc: Cardinal read _GetlocalSsrc write _SetlocalSsrc;
  15099. property remoteSsrc: Cardinal read _GetremoteSsrc write _SetremoteSsrc;
  15100. end;
  15101. { --------------------------------------------------------------------
  15102. TJSRTCVideoFrameHistoryInternal
  15103. --------------------------------------------------------------------}
  15104. TJSRTCVideoFrameHistoryEntryInternalDynArray = IJSArray; // array of RTCVideoFrameHistoryEntryInternal
  15105. TJSRTCVideoFrameHistoryInternalRec = record
  15106. trackIdentifier: UnicodeString;
  15107. entries: TJSRTCVideoFrameHistoryEntryInternalDynArray;
  15108. end;
  15109. IJSRTCVideoFrameHistoryInternal = interface(IJSObject)
  15110. ['{B76C87F9-8866-3EC7-B36F-4C810E936D72}']
  15111. function _GettrackIdentifier: UnicodeString;
  15112. function _Getentries: TJSRTCVideoFrameHistoryEntryInternalDynArray;
  15113. procedure _SettrackIdentifier(const aValue: UnicodeString);
  15114. procedure _Setentries(const aValue: TJSRTCVideoFrameHistoryEntryInternalDynArray);
  15115. property trackIdentifier: UnicodeString read _GettrackIdentifier write _SettrackIdentifier;
  15116. property entries: TJSRTCVideoFrameHistoryEntryInternalDynArray read _Getentries write _Setentries;
  15117. end;
  15118. TJSRTCVideoFrameHistoryInternal = class(TJSObject,IJSRTCVideoFrameHistoryInternal)
  15119. Protected
  15120. function _GettrackIdentifier: UnicodeString;
  15121. function _Getentries: TJSRTCVideoFrameHistoryEntryInternalDynArray;
  15122. procedure _SettrackIdentifier(const aValue: UnicodeString);
  15123. procedure _Setentries(const aValue: TJSRTCVideoFrameHistoryEntryInternalDynArray);
  15124. Public
  15125. class function JSClassName: UnicodeString; override;
  15126. class function Cast(const Intf: IJSObject): IJSRTCVideoFrameHistoryInternal;
  15127. property trackIdentifier: UnicodeString read _GettrackIdentifier write _SettrackIdentifier;
  15128. property entries: TJSRTCVideoFrameHistoryEntryInternalDynArray read _Getentries write _Setentries;
  15129. end;
  15130. { --------------------------------------------------------------------
  15131. TJSRTCBandwidthEstimationInternal
  15132. --------------------------------------------------------------------}
  15133. TJSRTCBandwidthEstimationInternalRec = record
  15134. trackIdentifier: UnicodeString;
  15135. sendBandwidthBps: LongInt;
  15136. maxPaddingBps: LongInt;
  15137. receiveBandwidthBps: LongInt;
  15138. pacerDelayMs: LongInt;
  15139. rttMs: LongInt;
  15140. end;
  15141. IJSRTCBandwidthEstimationInternal = interface(IJSObject)
  15142. ['{9C894399-65A6-34B1-A307-178D750F8A38}']
  15143. function _GettrackIdentifier: UnicodeString;
  15144. function _GetsendBandwidthBps: LongInt;
  15145. function _GetmaxPaddingBps: LongInt;
  15146. function _GetreceiveBandwidthBps: LongInt;
  15147. function _GetpacerDelayMs: LongInt;
  15148. function _GetrttMs: LongInt;
  15149. procedure _SettrackIdentifier(const aValue: UnicodeString);
  15150. procedure _SetsendBandwidthBps(const aValue: LongInt);
  15151. procedure _SetmaxPaddingBps(const aValue: LongInt);
  15152. procedure _SetreceiveBandwidthBps(const aValue: LongInt);
  15153. procedure _SetpacerDelayMs(const aValue: LongInt);
  15154. procedure _SetrttMs(const aValue: LongInt);
  15155. property trackIdentifier: UnicodeString read _GettrackIdentifier write _SettrackIdentifier;
  15156. property sendBandwidthBps: LongInt read _GetsendBandwidthBps write _SetsendBandwidthBps;
  15157. property maxPaddingBps: LongInt read _GetmaxPaddingBps write _SetmaxPaddingBps;
  15158. property receiveBandwidthBps: LongInt read _GetreceiveBandwidthBps write _SetreceiveBandwidthBps;
  15159. property pacerDelayMs: LongInt read _GetpacerDelayMs write _SetpacerDelayMs;
  15160. property rttMs: LongInt read _GetrttMs write _SetrttMs;
  15161. end;
  15162. TJSRTCBandwidthEstimationInternal = class(TJSObject,IJSRTCBandwidthEstimationInternal)
  15163. Protected
  15164. function _GettrackIdentifier: UnicodeString;
  15165. function _GetsendBandwidthBps: LongInt;
  15166. function _GetmaxPaddingBps: LongInt;
  15167. function _GetreceiveBandwidthBps: LongInt;
  15168. function _GetpacerDelayMs: LongInt;
  15169. function _GetrttMs: LongInt;
  15170. procedure _SettrackIdentifier(const aValue: UnicodeString);
  15171. procedure _SetsendBandwidthBps(const aValue: LongInt);
  15172. procedure _SetmaxPaddingBps(const aValue: LongInt);
  15173. procedure _SetreceiveBandwidthBps(const aValue: LongInt);
  15174. procedure _SetpacerDelayMs(const aValue: LongInt);
  15175. procedure _SetrttMs(const aValue: LongInt);
  15176. Public
  15177. class function JSClassName: UnicodeString; override;
  15178. class function Cast(const Intf: IJSObject): IJSRTCBandwidthEstimationInternal;
  15179. property trackIdentifier: UnicodeString read _GettrackIdentifier write _SettrackIdentifier;
  15180. property sendBandwidthBps: LongInt read _GetsendBandwidthBps write _SetsendBandwidthBps;
  15181. property maxPaddingBps: LongInt read _GetmaxPaddingBps write _SetmaxPaddingBps;
  15182. property receiveBandwidthBps: LongInt read _GetreceiveBandwidthBps write _SetreceiveBandwidthBps;
  15183. property pacerDelayMs: LongInt read _GetpacerDelayMs write _SetpacerDelayMs;
  15184. property rttMs: LongInt read _GetrttMs write _SetrttMs;
  15185. end;
  15186. { --------------------------------------------------------------------
  15187. TJSRTCSdpParsingErrorInternal
  15188. --------------------------------------------------------------------}
  15189. TJSRTCSdpParsingErrorInternalRec = record
  15190. lineNumber: Cardinal;
  15191. error: UnicodeString;
  15192. end;
  15193. IJSRTCSdpParsingErrorInternal = interface(IJSObject)
  15194. ['{622EE381-CEF9-3422-8179-2D7BF1DB75EF}']
  15195. function _GetlineNumber: Cardinal;
  15196. function _Geterror: UnicodeString;
  15197. procedure _SetlineNumber(const aValue: Cardinal);
  15198. procedure _Seterror(const aValue: UnicodeString);
  15199. property lineNumber: Cardinal read _GetlineNumber write _SetlineNumber;
  15200. property error: UnicodeString read _Geterror write _Seterror;
  15201. end;
  15202. TJSRTCSdpParsingErrorInternal = class(TJSObject,IJSRTCSdpParsingErrorInternal)
  15203. Protected
  15204. function _GetlineNumber: Cardinal;
  15205. function _Geterror: UnicodeString;
  15206. procedure _SetlineNumber(const aValue: Cardinal);
  15207. procedure _Seterror(const aValue: UnicodeString);
  15208. Public
  15209. class function JSClassName: UnicodeString; override;
  15210. class function Cast(const Intf: IJSObject): IJSRTCSdpParsingErrorInternal;
  15211. property lineNumber: Cardinal read _GetlineNumber write _SetlineNumber;
  15212. property error: UnicodeString read _Geterror write _Seterror;
  15213. end;
  15214. { --------------------------------------------------------------------
  15215. TJSRTCSdpHistoryEntryInternal
  15216. --------------------------------------------------------------------}
  15217. TJSRTCSdpParsingErrorInternalDynArray = IJSArray; // array of RTCSdpParsingErrorInternal
  15218. TJSRTCSdpHistoryEntryInternalRec = record
  15219. timestamp: TDOMHighResTimeStamp;
  15220. isLocal: Boolean;
  15221. sdp: UnicodeString;
  15222. errors: TJSRTCSdpParsingErrorInternalDynArray;
  15223. end;
  15224. IJSRTCSdpHistoryEntryInternal = interface(IJSObject)
  15225. ['{BC0F6781-D347-34BA-9E74-B01014D84EF1}']
  15226. function _Gettimestamp: TDOMHighResTimeStamp;
  15227. function _GetisLocal: Boolean;
  15228. function _Getsdp: UnicodeString;
  15229. function _Geterrors: TJSRTCSdpParsingErrorInternalDynArray;
  15230. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  15231. procedure _SetisLocal(const aValue: Boolean);
  15232. procedure _Setsdp(const aValue: UnicodeString);
  15233. procedure _Seterrors(const aValue: TJSRTCSdpParsingErrorInternalDynArray);
  15234. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  15235. property isLocal: Boolean read _GetisLocal write _SetisLocal;
  15236. property sdp: UnicodeString read _Getsdp write _Setsdp;
  15237. property errors: TJSRTCSdpParsingErrorInternalDynArray read _Geterrors write _Seterrors;
  15238. end;
  15239. TJSRTCSdpHistoryEntryInternal = class(TJSObject,IJSRTCSdpHistoryEntryInternal)
  15240. Protected
  15241. function _Gettimestamp: TDOMHighResTimeStamp;
  15242. function _GetisLocal: Boolean;
  15243. function _Getsdp: UnicodeString;
  15244. function _Geterrors: TJSRTCSdpParsingErrorInternalDynArray;
  15245. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  15246. procedure _SetisLocal(const aValue: Boolean);
  15247. procedure _Setsdp(const aValue: UnicodeString);
  15248. procedure _Seterrors(const aValue: TJSRTCSdpParsingErrorInternalDynArray);
  15249. Public
  15250. class function JSClassName: UnicodeString; override;
  15251. class function Cast(const Intf: IJSObject): IJSRTCSdpHistoryEntryInternal;
  15252. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  15253. property isLocal: Boolean read _GetisLocal write _SetisLocal;
  15254. property sdp: UnicodeString read _Getsdp write _Setsdp;
  15255. property errors: TJSRTCSdpParsingErrorInternalDynArray read _Geterrors write _Seterrors;
  15256. end;
  15257. { --------------------------------------------------------------------
  15258. TJSRTCStatsCollection
  15259. --------------------------------------------------------------------}
  15260. TJSRTCInboundRtpStreamStatsDynArray = IJSArray; // array of RTCInboundRtpStreamStats
  15261. TJSRTCOutboundRtpStreamStatsDynArray = IJSArray; // array of RTCOutboundRtpStreamStats
  15262. TJSRTCRemoteInboundRtpStreamStatsDynArray = IJSArray; // array of RTCRemoteInboundRtpStreamStats
  15263. TJSRTCRemoteOutboundRtpStreamStatsDynArray = IJSArray; // array of RTCRemoteOutboundRtpStreamStats
  15264. TJSRTCMediaSourceStatsDynArray = IJSArray; // array of RTCMediaSourceStats
  15265. TJSRTCVideoSourceStatsDynArray = IJSArray; // array of RTCVideoSourceStats
  15266. TJSRTCPeerConnectionStatsDynArray = IJSArray; // array of RTCPeerConnectionStats
  15267. TJSRTCRTPContributingSourceStatsDynArray = IJSArray; // array of RTCRTPContributingSourceStats
  15268. TJSRTCIceCandidatePairStatsDynArray = IJSArray; // array of RTCIceCandidatePairStats
  15269. TJSRTCIceCandidateStatsDynArray = IJSArray; // array of RTCIceCandidateStats
  15270. TJSRTCDataChannelStatsDynArray = IJSArray; // array of RTCDataChannelStats
  15271. TJSRTCCodecStatsDynArray = IJSArray; // array of RTCCodecStats
  15272. TJSRTCVideoFrameHistoryInternalDynArray = IJSArray; // array of RTCVideoFrameHistoryInternal
  15273. TJSRTCBandwidthEstimationInternalDynArray = IJSArray; // array of RTCBandwidthEstimationInternal
  15274. TJSRTCStatsCollectionRec = record
  15275. inboundRtpStreamStats: TJSRTCInboundRtpStreamStatsDynArray;
  15276. outboundRtpStreamStats: TJSRTCOutboundRtpStreamStatsDynArray;
  15277. remoteInboundRtpStreamStats: TJSRTCRemoteInboundRtpStreamStatsDynArray;
  15278. remoteOutboundRtpStreamStats: TJSRTCRemoteOutboundRtpStreamStatsDynArray;
  15279. mediaSourceStats: TJSRTCMediaSourceStatsDynArray;
  15280. videoSourceStats: TJSRTCVideoSourceStatsDynArray;
  15281. peerConnectionStats: TJSRTCPeerConnectionStatsDynArray;
  15282. rtpContributingSourceStats: TJSRTCRTPContributingSourceStatsDynArray;
  15283. iceCandidatePairStats: TJSRTCIceCandidatePairStatsDynArray;
  15284. iceCandidateStats: TJSRTCIceCandidateStatsDynArray;
  15285. trickledIceCandidateStats: TJSRTCIceCandidateStatsDynArray;
  15286. dataChannelStats: TJSRTCDataChannelStatsDynArray;
  15287. codecStats: TJSRTCCodecStatsDynArray;
  15288. rawLocalCandidates: TUnicodeStringDynArray;
  15289. rawRemoteCandidates: TUnicodeStringDynArray;
  15290. videoFrameHistories: TJSRTCVideoFrameHistoryInternalDynArray;
  15291. bandwidthEstimations: TJSRTCBandwidthEstimationInternalDynArray;
  15292. end;
  15293. IJSRTCStatsCollection = interface(IJSObject)
  15294. ['{61DC747D-D8E8-3FA6-9260-9EB5A0A05723}']
  15295. function _GetinboundRtpStreamStats: TJSRTCInboundRtpStreamStatsDynArray;
  15296. function _GetoutboundRtpStreamStats: TJSRTCOutboundRtpStreamStatsDynArray;
  15297. function _GetremoteInboundRtpStreamStats: TJSRTCRemoteInboundRtpStreamStatsDynArray;
  15298. function _GetremoteOutboundRtpStreamStats: TJSRTCRemoteOutboundRtpStreamStatsDynArray;
  15299. function _GetmediaSourceStats: TJSRTCMediaSourceStatsDynArray;
  15300. function _GetvideoSourceStats: TJSRTCVideoSourceStatsDynArray;
  15301. function _GetpeerConnectionStats: TJSRTCPeerConnectionStatsDynArray;
  15302. function _GetrtpContributingSourceStats: TJSRTCRTPContributingSourceStatsDynArray;
  15303. function _GeticeCandidatePairStats: TJSRTCIceCandidatePairStatsDynArray;
  15304. function _GeticeCandidateStats: TJSRTCIceCandidateStatsDynArray;
  15305. function _GettrickledIceCandidateStats: TJSRTCIceCandidateStatsDynArray;
  15306. function _GetdataChannelStats: TJSRTCDataChannelStatsDynArray;
  15307. function _GetcodecStats: TJSRTCCodecStatsDynArray;
  15308. function _GetrawLocalCandidates: TUnicodeStringDynArray;
  15309. function _GetrawRemoteCandidates: TUnicodeStringDynArray;
  15310. function _GetvideoFrameHistories: TJSRTCVideoFrameHistoryInternalDynArray;
  15311. function _GetbandwidthEstimations: TJSRTCBandwidthEstimationInternalDynArray;
  15312. procedure _SetinboundRtpStreamStats(const aValue: TJSRTCInboundRtpStreamStatsDynArray);
  15313. procedure _SetoutboundRtpStreamStats(const aValue: TJSRTCOutboundRtpStreamStatsDynArray);
  15314. procedure _SetremoteInboundRtpStreamStats(const aValue: TJSRTCRemoteInboundRtpStreamStatsDynArray);
  15315. procedure _SetremoteOutboundRtpStreamStats(const aValue: TJSRTCRemoteOutboundRtpStreamStatsDynArray);
  15316. procedure _SetmediaSourceStats(const aValue: TJSRTCMediaSourceStatsDynArray);
  15317. procedure _SetvideoSourceStats(const aValue: TJSRTCVideoSourceStatsDynArray);
  15318. procedure _SetpeerConnectionStats(const aValue: TJSRTCPeerConnectionStatsDynArray);
  15319. procedure _SetrtpContributingSourceStats(const aValue: TJSRTCRTPContributingSourceStatsDynArray);
  15320. procedure _SeticeCandidatePairStats(const aValue: TJSRTCIceCandidatePairStatsDynArray);
  15321. procedure _SeticeCandidateStats(const aValue: TJSRTCIceCandidateStatsDynArray);
  15322. procedure _SettrickledIceCandidateStats(const aValue: TJSRTCIceCandidateStatsDynArray);
  15323. procedure _SetdataChannelStats(const aValue: TJSRTCDataChannelStatsDynArray);
  15324. procedure _SetcodecStats(const aValue: TJSRTCCodecStatsDynArray);
  15325. procedure _SetrawLocalCandidates(const aValue: TUnicodeStringDynArray);
  15326. procedure _SetrawRemoteCandidates(const aValue: TUnicodeStringDynArray);
  15327. procedure _SetvideoFrameHistories(const aValue: TJSRTCVideoFrameHistoryInternalDynArray);
  15328. procedure _SetbandwidthEstimations(const aValue: TJSRTCBandwidthEstimationInternalDynArray);
  15329. property inboundRtpStreamStats: TJSRTCInboundRtpStreamStatsDynArray read _GetinboundRtpStreamStats write _SetinboundRtpStreamStats;
  15330. property outboundRtpStreamStats: TJSRTCOutboundRtpStreamStatsDynArray read _GetoutboundRtpStreamStats write _SetoutboundRtpStreamStats;
  15331. property remoteInboundRtpStreamStats: TJSRTCRemoteInboundRtpStreamStatsDynArray read _GetremoteInboundRtpStreamStats write _SetremoteInboundRtpStreamStats;
  15332. property remoteOutboundRtpStreamStats: TJSRTCRemoteOutboundRtpStreamStatsDynArray read _GetremoteOutboundRtpStreamStats write _SetremoteOutboundRtpStreamStats;
  15333. property mediaSourceStats: TJSRTCMediaSourceStatsDynArray read _GetmediaSourceStats write _SetmediaSourceStats;
  15334. property videoSourceStats: TJSRTCVideoSourceStatsDynArray read _GetvideoSourceStats write _SetvideoSourceStats;
  15335. property peerConnectionStats: TJSRTCPeerConnectionStatsDynArray read _GetpeerConnectionStats write _SetpeerConnectionStats;
  15336. property rtpContributingSourceStats: TJSRTCRTPContributingSourceStatsDynArray read _GetrtpContributingSourceStats write _SetrtpContributingSourceStats;
  15337. property iceCandidatePairStats: TJSRTCIceCandidatePairStatsDynArray read _GeticeCandidatePairStats write _SeticeCandidatePairStats;
  15338. property iceCandidateStats: TJSRTCIceCandidateStatsDynArray read _GeticeCandidateStats write _SeticeCandidateStats;
  15339. property trickledIceCandidateStats: TJSRTCIceCandidateStatsDynArray read _GettrickledIceCandidateStats write _SettrickledIceCandidateStats;
  15340. property dataChannelStats: TJSRTCDataChannelStatsDynArray read _GetdataChannelStats write _SetdataChannelStats;
  15341. property codecStats: TJSRTCCodecStatsDynArray read _GetcodecStats write _SetcodecStats;
  15342. property rawLocalCandidates: TUnicodeStringDynArray read _GetrawLocalCandidates write _SetrawLocalCandidates;
  15343. property rawRemoteCandidates: TUnicodeStringDynArray read _GetrawRemoteCandidates write _SetrawRemoteCandidates;
  15344. property videoFrameHistories: TJSRTCVideoFrameHistoryInternalDynArray read _GetvideoFrameHistories write _SetvideoFrameHistories;
  15345. property bandwidthEstimations: TJSRTCBandwidthEstimationInternalDynArray read _GetbandwidthEstimations write _SetbandwidthEstimations;
  15346. end;
  15347. TJSRTCStatsCollection = class(TJSObject,IJSRTCStatsCollection)
  15348. Protected
  15349. function _GetinboundRtpStreamStats: TJSRTCInboundRtpStreamStatsDynArray;
  15350. function _GetoutboundRtpStreamStats: TJSRTCOutboundRtpStreamStatsDynArray;
  15351. function _GetremoteInboundRtpStreamStats: TJSRTCRemoteInboundRtpStreamStatsDynArray;
  15352. function _GetremoteOutboundRtpStreamStats: TJSRTCRemoteOutboundRtpStreamStatsDynArray;
  15353. function _GetmediaSourceStats: TJSRTCMediaSourceStatsDynArray;
  15354. function _GetvideoSourceStats: TJSRTCVideoSourceStatsDynArray;
  15355. function _GetpeerConnectionStats: TJSRTCPeerConnectionStatsDynArray;
  15356. function _GetrtpContributingSourceStats: TJSRTCRTPContributingSourceStatsDynArray;
  15357. function _GeticeCandidatePairStats: TJSRTCIceCandidatePairStatsDynArray;
  15358. function _GeticeCandidateStats: TJSRTCIceCandidateStatsDynArray;
  15359. function _GettrickledIceCandidateStats: TJSRTCIceCandidateStatsDynArray;
  15360. function _GetdataChannelStats: TJSRTCDataChannelStatsDynArray;
  15361. function _GetcodecStats: TJSRTCCodecStatsDynArray;
  15362. function _GetrawLocalCandidates: TUnicodeStringDynArray;
  15363. function _GetrawRemoteCandidates: TUnicodeStringDynArray;
  15364. function _GetvideoFrameHistories: TJSRTCVideoFrameHistoryInternalDynArray;
  15365. function _GetbandwidthEstimations: TJSRTCBandwidthEstimationInternalDynArray;
  15366. procedure _SetinboundRtpStreamStats(const aValue: TJSRTCInboundRtpStreamStatsDynArray);
  15367. procedure _SetoutboundRtpStreamStats(const aValue: TJSRTCOutboundRtpStreamStatsDynArray);
  15368. procedure _SetremoteInboundRtpStreamStats(const aValue: TJSRTCRemoteInboundRtpStreamStatsDynArray);
  15369. procedure _SetremoteOutboundRtpStreamStats(const aValue: TJSRTCRemoteOutboundRtpStreamStatsDynArray);
  15370. procedure _SetmediaSourceStats(const aValue: TJSRTCMediaSourceStatsDynArray);
  15371. procedure _SetvideoSourceStats(const aValue: TJSRTCVideoSourceStatsDynArray);
  15372. procedure _SetpeerConnectionStats(const aValue: TJSRTCPeerConnectionStatsDynArray);
  15373. procedure _SetrtpContributingSourceStats(const aValue: TJSRTCRTPContributingSourceStatsDynArray);
  15374. procedure _SeticeCandidatePairStats(const aValue: TJSRTCIceCandidatePairStatsDynArray);
  15375. procedure _SeticeCandidateStats(const aValue: TJSRTCIceCandidateStatsDynArray);
  15376. procedure _SettrickledIceCandidateStats(const aValue: TJSRTCIceCandidateStatsDynArray);
  15377. procedure _SetdataChannelStats(const aValue: TJSRTCDataChannelStatsDynArray);
  15378. procedure _SetcodecStats(const aValue: TJSRTCCodecStatsDynArray);
  15379. procedure _SetrawLocalCandidates(const aValue: TUnicodeStringDynArray);
  15380. procedure _SetrawRemoteCandidates(const aValue: TUnicodeStringDynArray);
  15381. procedure _SetvideoFrameHistories(const aValue: TJSRTCVideoFrameHistoryInternalDynArray);
  15382. procedure _SetbandwidthEstimations(const aValue: TJSRTCBandwidthEstimationInternalDynArray);
  15383. Public
  15384. class function JSClassName: UnicodeString; override;
  15385. class function Cast(const Intf: IJSObject): IJSRTCStatsCollection;
  15386. property inboundRtpStreamStats: TJSRTCInboundRtpStreamStatsDynArray read _GetinboundRtpStreamStats write _SetinboundRtpStreamStats;
  15387. property outboundRtpStreamStats: TJSRTCOutboundRtpStreamStatsDynArray read _GetoutboundRtpStreamStats write _SetoutboundRtpStreamStats;
  15388. property remoteInboundRtpStreamStats: TJSRTCRemoteInboundRtpStreamStatsDynArray read _GetremoteInboundRtpStreamStats write _SetremoteInboundRtpStreamStats;
  15389. property remoteOutboundRtpStreamStats: TJSRTCRemoteOutboundRtpStreamStatsDynArray read _GetremoteOutboundRtpStreamStats write _SetremoteOutboundRtpStreamStats;
  15390. property mediaSourceStats: TJSRTCMediaSourceStatsDynArray read _GetmediaSourceStats write _SetmediaSourceStats;
  15391. property videoSourceStats: TJSRTCVideoSourceStatsDynArray read _GetvideoSourceStats write _SetvideoSourceStats;
  15392. property peerConnectionStats: TJSRTCPeerConnectionStatsDynArray read _GetpeerConnectionStats write _SetpeerConnectionStats;
  15393. property rtpContributingSourceStats: TJSRTCRTPContributingSourceStatsDynArray read _GetrtpContributingSourceStats write _SetrtpContributingSourceStats;
  15394. property iceCandidatePairStats: TJSRTCIceCandidatePairStatsDynArray read _GeticeCandidatePairStats write _SeticeCandidatePairStats;
  15395. property iceCandidateStats: TJSRTCIceCandidateStatsDynArray read _GeticeCandidateStats write _SeticeCandidateStats;
  15396. property trickledIceCandidateStats: TJSRTCIceCandidateStatsDynArray read _GettrickledIceCandidateStats write _SettrickledIceCandidateStats;
  15397. property dataChannelStats: TJSRTCDataChannelStatsDynArray read _GetdataChannelStats write _SetdataChannelStats;
  15398. property codecStats: TJSRTCCodecStatsDynArray read _GetcodecStats write _SetcodecStats;
  15399. property rawLocalCandidates: TUnicodeStringDynArray read _GetrawLocalCandidates write _SetrawLocalCandidates;
  15400. property rawRemoteCandidates: TUnicodeStringDynArray read _GetrawRemoteCandidates write _SetrawRemoteCandidates;
  15401. property videoFrameHistories: TJSRTCVideoFrameHistoryInternalDynArray read _GetvideoFrameHistories write _SetvideoFrameHistories;
  15402. property bandwidthEstimations: TJSRTCBandwidthEstimationInternalDynArray read _GetbandwidthEstimations write _SetbandwidthEstimations;
  15403. end;
  15404. { --------------------------------------------------------------------
  15405. TJSRTCIceServerInternal
  15406. --------------------------------------------------------------------}
  15407. TJSRTCIceServerInternalRec = record
  15408. urls: TUnicodeStringDynArray;
  15409. credentialProvided: Boolean;
  15410. userNameProvided: Boolean;
  15411. end;
  15412. IJSRTCIceServerInternal = interface(IJSObject)
  15413. ['{37917243-DE3D-3E92-9214-67F98D026687}']
  15414. function _Geturls: TUnicodeStringDynArray;
  15415. function _GetcredentialProvided: Boolean;
  15416. function _GetuserNameProvided: Boolean;
  15417. procedure _Seturls(const aValue: TUnicodeStringDynArray);
  15418. procedure _SetcredentialProvided(const aValue: Boolean);
  15419. procedure _SetuserNameProvided(const aValue: Boolean);
  15420. property urls: TUnicodeStringDynArray read _Geturls write _Seturls;
  15421. property credentialProvided: Boolean read _GetcredentialProvided write _SetcredentialProvided;
  15422. property userNameProvided: Boolean read _GetuserNameProvided write _SetuserNameProvided;
  15423. end;
  15424. TJSRTCIceServerInternal = class(TJSObject,IJSRTCIceServerInternal)
  15425. Protected
  15426. function _Geturls: TUnicodeStringDynArray;
  15427. function _GetcredentialProvided: Boolean;
  15428. function _GetuserNameProvided: Boolean;
  15429. procedure _Seturls(const aValue: TUnicodeStringDynArray);
  15430. procedure _SetcredentialProvided(const aValue: Boolean);
  15431. procedure _SetuserNameProvided(const aValue: Boolean);
  15432. Public
  15433. class function JSClassName: UnicodeString; override;
  15434. class function Cast(const Intf: IJSObject): IJSRTCIceServerInternal;
  15435. property urls: TUnicodeStringDynArray read _Geturls write _Seturls;
  15436. property credentialProvided: Boolean read _GetcredentialProvided write _SetcredentialProvided;
  15437. property userNameProvided: Boolean read _GetuserNameProvided write _SetuserNameProvided;
  15438. end;
  15439. { --------------------------------------------------------------------
  15440. TJSRTCConfigurationInternal
  15441. --------------------------------------------------------------------}
  15442. TJSRTCIceServerInternalDynArray = IJSArray; // array of RTCIceServerInternal
  15443. TJSRTCConfigurationInternalRec = record
  15444. bundlePolicy: TRTCBundlePolicy;
  15445. certificatesProvided: Boolean;
  15446. iceServers: TJSRTCIceServerInternalDynArray;
  15447. iceTransportPolicy: TRTCIceTransportPolicy;
  15448. peerIdentityProvided: Boolean;
  15449. sdpSemantics: UnicodeString;
  15450. end;
  15451. IJSRTCConfigurationInternal = interface(IJSObject)
  15452. ['{5EF3BF9F-435F-3DB5-807C-295F58B61779}']
  15453. function _GetbundlePolicy: TRTCBundlePolicy;
  15454. function _GetcertificatesProvided: Boolean;
  15455. function _GeticeServers: TJSRTCIceServerInternalDynArray;
  15456. function _GeticeTransportPolicy: TRTCIceTransportPolicy;
  15457. function _GetpeerIdentityProvided: Boolean;
  15458. function _GetsdpSemantics: UnicodeString;
  15459. procedure _SetbundlePolicy(const aValue: TRTCBundlePolicy);
  15460. procedure _SetcertificatesProvided(const aValue: Boolean);
  15461. procedure _SeticeServers(const aValue: TJSRTCIceServerInternalDynArray);
  15462. procedure _SeticeTransportPolicy(const aValue: TRTCIceTransportPolicy);
  15463. procedure _SetpeerIdentityProvided(const aValue: Boolean);
  15464. procedure _SetsdpSemantics(const aValue: UnicodeString);
  15465. property bundlePolicy: TRTCBundlePolicy read _GetbundlePolicy write _SetbundlePolicy;
  15466. property certificatesProvided: Boolean read _GetcertificatesProvided write _SetcertificatesProvided;
  15467. property iceServers: TJSRTCIceServerInternalDynArray read _GeticeServers write _SeticeServers;
  15468. property iceTransportPolicy: TRTCIceTransportPolicy read _GeticeTransportPolicy write _SeticeTransportPolicy;
  15469. property peerIdentityProvided: Boolean read _GetpeerIdentityProvided write _SetpeerIdentityProvided;
  15470. property sdpSemantics: UnicodeString read _GetsdpSemantics write _SetsdpSemantics;
  15471. end;
  15472. TJSRTCConfigurationInternal = class(TJSObject,IJSRTCConfigurationInternal)
  15473. Protected
  15474. function _GetbundlePolicy: TRTCBundlePolicy;
  15475. function _GetcertificatesProvided: Boolean;
  15476. function _GeticeServers: TJSRTCIceServerInternalDynArray;
  15477. function _GeticeTransportPolicy: TRTCIceTransportPolicy;
  15478. function _GetpeerIdentityProvided: Boolean;
  15479. function _GetsdpSemantics: UnicodeString;
  15480. procedure _SetbundlePolicy(const aValue: TRTCBundlePolicy);
  15481. procedure _SetcertificatesProvided(const aValue: Boolean);
  15482. procedure _SeticeServers(const aValue: TJSRTCIceServerInternalDynArray);
  15483. procedure _SeticeTransportPolicy(const aValue: TRTCIceTransportPolicy);
  15484. procedure _SetpeerIdentityProvided(const aValue: Boolean);
  15485. procedure _SetsdpSemantics(const aValue: UnicodeString);
  15486. Public
  15487. class function JSClassName: UnicodeString; override;
  15488. class function Cast(const Intf: IJSObject): IJSRTCConfigurationInternal;
  15489. property bundlePolicy: TRTCBundlePolicy read _GetbundlePolicy write _SetbundlePolicy;
  15490. property certificatesProvided: Boolean read _GetcertificatesProvided write _SetcertificatesProvided;
  15491. property iceServers: TJSRTCIceServerInternalDynArray read _GeticeServers write _SeticeServers;
  15492. property iceTransportPolicy: TRTCIceTransportPolicy read _GeticeTransportPolicy write _SeticeTransportPolicy;
  15493. property peerIdentityProvided: Boolean read _GetpeerIdentityProvided write _SetpeerIdentityProvided;
  15494. property sdpSemantics: UnicodeString read _GetsdpSemantics write _SetsdpSemantics;
  15495. end;
  15496. { --------------------------------------------------------------------
  15497. TJSRTCSdpHistoryInternal
  15498. --------------------------------------------------------------------}
  15499. TJSRTCSdpHistoryEntryInternalDynArray = IJSArray; // array of RTCSdpHistoryEntryInternal
  15500. TJSRTCSdpHistoryInternalRec = record
  15501. pcid: UnicodeString;
  15502. sdpHistory: TJSRTCSdpHistoryEntryInternalDynArray;
  15503. end;
  15504. IJSRTCSdpHistoryInternal = interface(IJSObject)
  15505. ['{A2B0EABA-E509-3751-9D49-BDF0DE1008DC}']
  15506. function _Getpcid: UnicodeString;
  15507. function _GetsdpHistory: TJSRTCSdpHistoryEntryInternalDynArray;
  15508. procedure _Setpcid(const aValue: UnicodeString);
  15509. procedure _SetsdpHistory(const aValue: TJSRTCSdpHistoryEntryInternalDynArray);
  15510. property pcid: UnicodeString read _Getpcid write _Setpcid;
  15511. property sdpHistory: TJSRTCSdpHistoryEntryInternalDynArray read _GetsdpHistory write _SetsdpHistory;
  15512. end;
  15513. TJSRTCSdpHistoryInternal = class(TJSObject,IJSRTCSdpHistoryInternal)
  15514. Protected
  15515. function _Getpcid: UnicodeString;
  15516. function _GetsdpHistory: TJSRTCSdpHistoryEntryInternalDynArray;
  15517. procedure _Setpcid(const aValue: UnicodeString);
  15518. procedure _SetsdpHistory(const aValue: TJSRTCSdpHistoryEntryInternalDynArray);
  15519. Public
  15520. class function JSClassName: UnicodeString; override;
  15521. class function Cast(const Intf: IJSObject): IJSRTCSdpHistoryInternal;
  15522. property pcid: UnicodeString read _Getpcid write _Setpcid;
  15523. property sdpHistory: TJSRTCSdpHistoryEntryInternalDynArray read _GetsdpHistory write _SetsdpHistory;
  15524. end;
  15525. { --------------------------------------------------------------------
  15526. TJSSanitizerElementNamespace
  15527. --------------------------------------------------------------------}
  15528. TJSSanitizerElementNamespaceRec = record
  15529. name: UnicodeString;
  15530. namespace: UnicodeString;
  15531. end;
  15532. IJSSanitizerElementNamespace = interface(IJSObject)
  15533. ['{3C4FE5E1-037E-37A2-A2E9-1CC325E548ED}']
  15534. function _Getname: UnicodeString;
  15535. function _Getnamespace: UnicodeString;
  15536. procedure _Setname(const aValue: UnicodeString);
  15537. procedure _Setnamespace(const aValue: UnicodeString);
  15538. property name: UnicodeString read _Getname write _Setname;
  15539. property namespace: UnicodeString read _Getnamespace write _Setnamespace;
  15540. end;
  15541. TJSSanitizerElementNamespace = class(TJSObject,IJSSanitizerElementNamespace)
  15542. Protected
  15543. function _Getname: UnicodeString;
  15544. function _Getnamespace: UnicodeString;
  15545. procedure _Setname(const aValue: UnicodeString);
  15546. procedure _Setnamespace(const aValue: UnicodeString);
  15547. Public
  15548. class function JSClassName: UnicodeString; override;
  15549. class function Cast(const Intf: IJSObject): IJSSanitizerElementNamespace;
  15550. property name: UnicodeString read _Getname write _Setname;
  15551. property namespace: UnicodeString read _Getnamespace write _Setnamespace;
  15552. end;
  15553. { --------------------------------------------------------------------
  15554. TJSSanitizerAttributeNamespace
  15555. --------------------------------------------------------------------}
  15556. TJSSanitizerAttributeNamespaceRec = record
  15557. name: UnicodeString;
  15558. namespace: UnicodeString;
  15559. end;
  15560. IJSSanitizerAttributeNamespace = interface(IJSObject)
  15561. ['{54A166A5-BB80-359A-B3EC-57A6C806F652}']
  15562. function _Getname: UnicodeString;
  15563. function _Getnamespace: UnicodeString;
  15564. procedure _Setname(const aValue: UnicodeString);
  15565. procedure _Setnamespace(const aValue: UnicodeString);
  15566. property name: UnicodeString read _Getname write _Setname;
  15567. property namespace: UnicodeString read _Getnamespace write _Setnamespace;
  15568. end;
  15569. TJSSanitizerAttributeNamespace = class(TJSObject,IJSSanitizerAttributeNamespace)
  15570. Protected
  15571. function _Getname: UnicodeString;
  15572. function _Getnamespace: UnicodeString;
  15573. procedure _Setname(const aValue: UnicodeString);
  15574. procedure _Setnamespace(const aValue: UnicodeString);
  15575. Public
  15576. class function JSClassName: UnicodeString; override;
  15577. class function Cast(const Intf: IJSObject): IJSSanitizerAttributeNamespace;
  15578. property name: UnicodeString read _Getname write _Setname;
  15579. property namespace: UnicodeString read _Getnamespace write _Setnamespace;
  15580. end;
  15581. { --------------------------------------------------------------------
  15582. TJSSanitizerConfig
  15583. --------------------------------------------------------------------}
  15584. TSanitizerElementWithAttributesDynArray = IJSArray; // array of SanitizerElementWithAttributes
  15585. TSanitizerElementDynArray = IJSArray; // array of SanitizerElement
  15586. TSanitizerAttributeDynArray = IJSArray; // array of SanitizerAttribute
  15587. TJSSanitizerConfigRec = record
  15588. elements: TSanitizerElementWithAttributesDynArray;
  15589. removeElements: TSanitizerElementDynArray;
  15590. replaceWithChildrenElements: TSanitizerElementDynArray;
  15591. attributes: TSanitizerAttributeDynArray;
  15592. removeAttributes: TSanitizerAttributeDynArray;
  15593. customElements: Boolean;
  15594. unknownMarkup: Boolean;
  15595. comments: Boolean;
  15596. end;
  15597. IJSSanitizerConfig = interface(IJSObject)
  15598. ['{D8331B9A-B305-3D0A-A29A-2646B3E05CAA}']
  15599. function _Getelements: TSanitizerElementWithAttributesDynArray;
  15600. function _GetremoveElements: TSanitizerElementDynArray;
  15601. function _GetreplaceWithChildrenElements: TSanitizerElementDynArray;
  15602. function _Getattributes: TSanitizerAttributeDynArray;
  15603. function _GetremoveAttributes: TSanitizerAttributeDynArray;
  15604. function _GetcustomElements: Boolean;
  15605. function _GetunknownMarkup: Boolean;
  15606. function _Getcomments: Boolean;
  15607. procedure _Setelements(const aValue: TSanitizerElementWithAttributesDynArray);
  15608. procedure _SetremoveElements(const aValue: TSanitizerElementDynArray);
  15609. procedure _SetreplaceWithChildrenElements(const aValue: TSanitizerElementDynArray);
  15610. procedure _Setattributes(const aValue: TSanitizerAttributeDynArray);
  15611. procedure _SetremoveAttributes(const aValue: TSanitizerAttributeDynArray);
  15612. procedure _SetcustomElements(const aValue: Boolean);
  15613. procedure _SetunknownMarkup(const aValue: Boolean);
  15614. procedure _Setcomments(const aValue: Boolean);
  15615. property elements: TSanitizerElementWithAttributesDynArray read _Getelements write _Setelements;
  15616. property removeElements: TSanitizerElementDynArray read _GetremoveElements write _SetremoveElements;
  15617. property replaceWithChildrenElements: TSanitizerElementDynArray read _GetreplaceWithChildrenElements write _SetreplaceWithChildrenElements;
  15618. property attributes: TSanitizerAttributeDynArray read _Getattributes write _Setattributes;
  15619. property removeAttributes: TSanitizerAttributeDynArray read _GetremoveAttributes write _SetremoveAttributes;
  15620. property customElements: Boolean read _GetcustomElements write _SetcustomElements;
  15621. property unknownMarkup: Boolean read _GetunknownMarkup write _SetunknownMarkup;
  15622. property comments: Boolean read _Getcomments write _Setcomments;
  15623. end;
  15624. TJSSanitizerConfig = class(TJSObject,IJSSanitizerConfig)
  15625. Protected
  15626. function _Getelements: TSanitizerElementWithAttributesDynArray;
  15627. function _GetremoveElements: TSanitizerElementDynArray;
  15628. function _GetreplaceWithChildrenElements: TSanitizerElementDynArray;
  15629. function _Getattributes: TSanitizerAttributeDynArray;
  15630. function _GetremoveAttributes: TSanitizerAttributeDynArray;
  15631. function _GetcustomElements: Boolean;
  15632. function _GetunknownMarkup: Boolean;
  15633. function _Getcomments: Boolean;
  15634. procedure _Setelements(const aValue: TSanitizerElementWithAttributesDynArray);
  15635. procedure _SetremoveElements(const aValue: TSanitizerElementDynArray);
  15636. procedure _SetreplaceWithChildrenElements(const aValue: TSanitizerElementDynArray);
  15637. procedure _Setattributes(const aValue: TSanitizerAttributeDynArray);
  15638. procedure _SetremoveAttributes(const aValue: TSanitizerAttributeDynArray);
  15639. procedure _SetcustomElements(const aValue: Boolean);
  15640. procedure _SetunknownMarkup(const aValue: Boolean);
  15641. procedure _Setcomments(const aValue: Boolean);
  15642. Public
  15643. class function JSClassName: UnicodeString; override;
  15644. class function Cast(const Intf: IJSObject): IJSSanitizerConfig;
  15645. property elements: TSanitizerElementWithAttributesDynArray read _Getelements write _Setelements;
  15646. property removeElements: TSanitizerElementDynArray read _GetremoveElements write _SetremoveElements;
  15647. property replaceWithChildrenElements: TSanitizerElementDynArray read _GetreplaceWithChildrenElements write _SetreplaceWithChildrenElements;
  15648. property attributes: TSanitizerAttributeDynArray read _Getattributes write _Setattributes;
  15649. property removeAttributes: TSanitizerAttributeDynArray read _GetremoveAttributes write _SetremoveAttributes;
  15650. property customElements: Boolean read _GetcustomElements write _SetcustomElements;
  15651. property unknownMarkup: Boolean read _GetunknownMarkup write _SetunknownMarkup;
  15652. property comments: Boolean read _Getcomments write _Setcomments;
  15653. end;
  15654. { --------------------------------------------------------------------
  15655. TJSRegistrationOptions
  15656. --------------------------------------------------------------------}
  15657. TJSRegistrationOptionsRec = record
  15658. scope: UnicodeString;
  15659. updateViaCache: TServiceWorkerUpdateViaCache;
  15660. end;
  15661. IJSRegistrationOptions = interface(IJSObject)
  15662. ['{E37F0A6F-93E5-3B8B-BD42-AB2C5DC370C0}']
  15663. function _Getscope: UnicodeString;
  15664. function _GetupdateViaCache: TServiceWorkerUpdateViaCache;
  15665. procedure _Setscope(const aValue: UnicodeString);
  15666. procedure _SetupdateViaCache(const aValue: TServiceWorkerUpdateViaCache);
  15667. property scope: UnicodeString read _Getscope write _Setscope;
  15668. property updateViaCache: TServiceWorkerUpdateViaCache read _GetupdateViaCache write _SetupdateViaCache;
  15669. end;
  15670. TJSRegistrationOptions = class(TJSObject,IJSRegistrationOptions)
  15671. Protected
  15672. function _Getscope: UnicodeString;
  15673. function _GetupdateViaCache: TServiceWorkerUpdateViaCache;
  15674. procedure _Setscope(const aValue: UnicodeString);
  15675. procedure _SetupdateViaCache(const aValue: TServiceWorkerUpdateViaCache);
  15676. Public
  15677. class function JSClassName: UnicodeString; override;
  15678. class function Cast(const Intf: IJSObject): IJSRegistrationOptions;
  15679. property scope: UnicodeString read _Getscope write _Setscope;
  15680. property updateViaCache: TServiceWorkerUpdateViaCache read _GetupdateViaCache write _SetupdateViaCache;
  15681. end;
  15682. { --------------------------------------------------------------------
  15683. TJSStaticRangeInit
  15684. --------------------------------------------------------------------}
  15685. TJSStaticRangeInitRec = record
  15686. startContainer: IJSNode;
  15687. startOffset: Cardinal;
  15688. endContainer: IJSNode;
  15689. endOffset: Cardinal;
  15690. end;
  15691. IJSStaticRangeInit = interface(IJSObject)
  15692. ['{B7206BCC-E38D-3AC5-AE0F-34203C142F51}']
  15693. function _GetstartContainer: IJSNode;
  15694. function _GetstartOffset: Cardinal;
  15695. function _GetendContainer: IJSNode;
  15696. function _GetendOffset: Cardinal;
  15697. procedure _SetstartContainer(const aValue: IJSNode);
  15698. procedure _SetstartOffset(const aValue: Cardinal);
  15699. procedure _SetendContainer(const aValue: IJSNode);
  15700. procedure _SetendOffset(const aValue: Cardinal);
  15701. property startContainer: IJSNode read _GetstartContainer write _SetstartContainer;
  15702. property startOffset: Cardinal read _GetstartOffset write _SetstartOffset;
  15703. property endContainer: IJSNode read _GetendContainer write _SetendContainer;
  15704. property endOffset: Cardinal read _GetendOffset write _SetendOffset;
  15705. end;
  15706. TJSStaticRangeInit = class(TJSObject,IJSStaticRangeInit)
  15707. Protected
  15708. function _GetstartContainer: IJSNode;
  15709. function _GetstartOffset: Cardinal;
  15710. function _GetendContainer: IJSNode;
  15711. function _GetendOffset: Cardinal;
  15712. procedure _SetstartContainer(const aValue: IJSNode);
  15713. procedure _SetstartOffset(const aValue: Cardinal);
  15714. procedure _SetendContainer(const aValue: IJSNode);
  15715. procedure _SetendOffset(const aValue: Cardinal);
  15716. Public
  15717. class function JSClassName: UnicodeString; override;
  15718. class function Cast(const Intf: IJSObject): IJSStaticRangeInit;
  15719. property startContainer: IJSNode read _GetstartContainer write _SetstartContainer;
  15720. property startOffset: Cardinal read _GetstartOffset write _SetstartOffset;
  15721. property endContainer: IJSNode read _GetendContainer write _SetendContainer;
  15722. property endOffset: Cardinal read _GetendOffset write _SetendOffset;
  15723. end;
  15724. { --------------------------------------------------------------------
  15725. TJSStorageEstimate
  15726. --------------------------------------------------------------------}
  15727. TJSStorageEstimateRec = record
  15728. usage: QWord;
  15729. quota: QWord;
  15730. end;
  15731. IJSStorageEstimate = interface(IJSObject)
  15732. ['{EF808313-06B5-360B-8554-18CE2B92B170}']
  15733. function _Getusage: QWord;
  15734. function _Getquota: QWord;
  15735. procedure _Setusage(const aValue: QWord);
  15736. procedure _Setquota(const aValue: QWord);
  15737. property usage: QWord read _Getusage write _Setusage;
  15738. property quota: QWord read _Getquota write _Setquota;
  15739. end;
  15740. TJSStorageEstimate = class(TJSObject,IJSStorageEstimate)
  15741. Protected
  15742. function _Getusage: QWord;
  15743. function _Getquota: QWord;
  15744. procedure _Setusage(const aValue: QWord);
  15745. procedure _Setquota(const aValue: QWord);
  15746. Public
  15747. class function JSClassName: UnicodeString; override;
  15748. class function Cast(const Intf: IJSObject): IJSStorageEstimate;
  15749. property usage: QWord read _Getusage write _Setusage;
  15750. property quota: QWord read _Getquota write _Setquota;
  15751. end;
  15752. { --------------------------------------------------------------------
  15753. TJSAlgorithm
  15754. --------------------------------------------------------------------}
  15755. TJSAlgorithmRec = record
  15756. name: UnicodeString;
  15757. end;
  15758. IJSAlgorithm = interface(IJSObject)
  15759. ['{33815B4E-87BA-3CA5-8591-8DD15390C552}']
  15760. function _Getname: UnicodeString;
  15761. procedure _Setname(const aValue: UnicodeString);
  15762. property name: UnicodeString read _Getname write _Setname;
  15763. end;
  15764. TJSAlgorithm = class(TJSObject,IJSAlgorithm)
  15765. Protected
  15766. function _Getname: UnicodeString;
  15767. procedure _Setname(const aValue: UnicodeString);
  15768. Public
  15769. class function JSClassName: UnicodeString; override;
  15770. class function Cast(const Intf: IJSObject): IJSAlgorithm;
  15771. property name: UnicodeString read _Getname write _Setname;
  15772. end;
  15773. { --------------------------------------------------------------------
  15774. TJSRsaHashedImportParams
  15775. --------------------------------------------------------------------}
  15776. TJSRsaHashedImportParamsRec = record
  15777. hash: TAlgorithmIdentifier;
  15778. end;
  15779. IJSRsaHashedImportParams = interface(IJSObject)
  15780. ['{44F2351F-A9BF-3491-9500-07279EDD8DD9}']
  15781. function _Gethash: TAlgorithmIdentifier;
  15782. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  15783. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  15784. end;
  15785. TJSRsaHashedImportParams = class(TJSObject,IJSRsaHashedImportParams)
  15786. Protected
  15787. function _Gethash: TAlgorithmIdentifier;
  15788. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  15789. Public
  15790. class function JSClassName: UnicodeString; override;
  15791. class function Cast(const Intf: IJSObject): IJSRsaHashedImportParams;
  15792. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  15793. end;
  15794. { --------------------------------------------------------------------
  15795. TJSRsaOtherPrimesInfo
  15796. --------------------------------------------------------------------}
  15797. TJSRsaOtherPrimesInfoRec = record
  15798. r: UnicodeString;
  15799. d: UnicodeString;
  15800. t: UnicodeString;
  15801. end;
  15802. IJSRsaOtherPrimesInfo = interface(IJSObject)
  15803. ['{C8B4FD90-86EF-3201-9B46-54C853B35B4B}']
  15804. function _Getr: UnicodeString;
  15805. function _Getd: UnicodeString;
  15806. function _Gett: UnicodeString;
  15807. procedure _Setr(const aValue: UnicodeString);
  15808. procedure _Setd(const aValue: UnicodeString);
  15809. procedure _Sett(const aValue: UnicodeString);
  15810. property r: UnicodeString read _Getr write _Setr;
  15811. property d: UnicodeString read _Getd write _Setd;
  15812. property t: UnicodeString read _Gett write _Sett;
  15813. end;
  15814. TJSRsaOtherPrimesInfo = class(TJSObject,IJSRsaOtherPrimesInfo)
  15815. Protected
  15816. function _Getr: UnicodeString;
  15817. function _Getd: UnicodeString;
  15818. function _Gett: UnicodeString;
  15819. procedure _Setr(const aValue: UnicodeString);
  15820. procedure _Setd(const aValue: UnicodeString);
  15821. procedure _Sett(const aValue: UnicodeString);
  15822. Public
  15823. class function JSClassName: UnicodeString; override;
  15824. class function Cast(const Intf: IJSObject): IJSRsaOtherPrimesInfo;
  15825. property r: UnicodeString read _Getr write _Setr;
  15826. property d: UnicodeString read _Getd write _Setd;
  15827. property t: UnicodeString read _Gett write _Sett;
  15828. end;
  15829. { --------------------------------------------------------------------
  15830. TJSJsonWebKey
  15831. --------------------------------------------------------------------}
  15832. TJSRsaOtherPrimesInfoDynArray = IJSArray; // array of RsaOtherPrimesInfo
  15833. TJSJsonWebKeyRec = record
  15834. kty: UnicodeString;
  15835. use: UnicodeString;
  15836. key_ops: TUnicodeStringDynArray;
  15837. alg: UnicodeString;
  15838. ext: Boolean;
  15839. crv: UnicodeString;
  15840. x: UnicodeString;
  15841. y: UnicodeString;
  15842. d: UnicodeString;
  15843. n: UnicodeString;
  15844. e: UnicodeString;
  15845. p: UnicodeString;
  15846. q: UnicodeString;
  15847. dp: UnicodeString;
  15848. dq: UnicodeString;
  15849. qi: UnicodeString;
  15850. oth: TJSRsaOtherPrimesInfoDynArray;
  15851. k: UnicodeString;
  15852. end;
  15853. IJSJsonWebKey = interface(IJSObject)
  15854. ['{C65DF81E-3C0A-34BE-923E-4E061A239E88}']
  15855. function _Getkty: UnicodeString;
  15856. function _Getuse: UnicodeString;
  15857. function _Getkey_ops: TUnicodeStringDynArray;
  15858. function _Getalg: UnicodeString;
  15859. function _Getext: Boolean;
  15860. function _Getcrv: UnicodeString;
  15861. function _Getx: UnicodeString;
  15862. function _Gety: UnicodeString;
  15863. function _Getd: UnicodeString;
  15864. function _Getn: UnicodeString;
  15865. function _Gete: UnicodeString;
  15866. function _Getp: UnicodeString;
  15867. function _Getq: UnicodeString;
  15868. function _Getdp: UnicodeString;
  15869. function _Getdq: UnicodeString;
  15870. function _Getqi: UnicodeString;
  15871. function _Getoth: TJSRsaOtherPrimesInfoDynArray;
  15872. function _Getk: UnicodeString;
  15873. procedure _Setkty(const aValue: UnicodeString);
  15874. procedure _Setuse(const aValue: UnicodeString);
  15875. procedure _Setkey_ops(const aValue: TUnicodeStringDynArray);
  15876. procedure _Setalg(const aValue: UnicodeString);
  15877. procedure _Setext(const aValue: Boolean);
  15878. procedure _Setcrv(const aValue: UnicodeString);
  15879. procedure _Setx(const aValue: UnicodeString);
  15880. procedure _Sety(const aValue: UnicodeString);
  15881. procedure _Setd(const aValue: UnicodeString);
  15882. procedure _Setn(const aValue: UnicodeString);
  15883. procedure _Sete(const aValue: UnicodeString);
  15884. procedure _Setp(const aValue: UnicodeString);
  15885. procedure _Setq(const aValue: UnicodeString);
  15886. procedure _Setdp(const aValue: UnicodeString);
  15887. procedure _Setdq(const aValue: UnicodeString);
  15888. procedure _Setqi(const aValue: UnicodeString);
  15889. procedure _Setoth(const aValue: TJSRsaOtherPrimesInfoDynArray);
  15890. procedure _Setk(const aValue: UnicodeString);
  15891. property kty: UnicodeString read _Getkty write _Setkty;
  15892. property use: UnicodeString read _Getuse write _Setuse;
  15893. property key_ops: TUnicodeStringDynArray read _Getkey_ops write _Setkey_ops;
  15894. property alg: UnicodeString read _Getalg write _Setalg;
  15895. property ext: Boolean read _Getext write _Setext;
  15896. property crv: UnicodeString read _Getcrv write _Setcrv;
  15897. property x: UnicodeString read _Getx write _Setx;
  15898. property y: UnicodeString read _Gety write _Sety;
  15899. property d: UnicodeString read _Getd write _Setd;
  15900. property n: UnicodeString read _Getn write _Setn;
  15901. property e: UnicodeString read _Gete write _Sete;
  15902. property p: UnicodeString read _Getp write _Setp;
  15903. property q: UnicodeString read _Getq write _Setq;
  15904. property dp: UnicodeString read _Getdp write _Setdp;
  15905. property dq: UnicodeString read _Getdq write _Setdq;
  15906. property qi: UnicodeString read _Getqi write _Setqi;
  15907. property oth: TJSRsaOtherPrimesInfoDynArray read _Getoth write _Setoth;
  15908. property k: UnicodeString read _Getk write _Setk;
  15909. end;
  15910. TJSJsonWebKey = class(TJSObject,IJSJsonWebKey)
  15911. Protected
  15912. function _Getkty: UnicodeString;
  15913. function _Getuse: UnicodeString;
  15914. function _Getkey_ops: TUnicodeStringDynArray;
  15915. function _Getalg: UnicodeString;
  15916. function _Getext: Boolean;
  15917. function _Getcrv: UnicodeString;
  15918. function _Getx: UnicodeString;
  15919. function _Gety: UnicodeString;
  15920. function _Getd: UnicodeString;
  15921. function _Getn: UnicodeString;
  15922. function _Gete: UnicodeString;
  15923. function _Getp: UnicodeString;
  15924. function _Getq: UnicodeString;
  15925. function _Getdp: UnicodeString;
  15926. function _Getdq: UnicodeString;
  15927. function _Getqi: UnicodeString;
  15928. function _Getoth: TJSRsaOtherPrimesInfoDynArray;
  15929. function _Getk: UnicodeString;
  15930. procedure _Setkty(const aValue: UnicodeString);
  15931. procedure _Setuse(const aValue: UnicodeString);
  15932. procedure _Setkey_ops(const aValue: TUnicodeStringDynArray);
  15933. procedure _Setalg(const aValue: UnicodeString);
  15934. procedure _Setext(const aValue: Boolean);
  15935. procedure _Setcrv(const aValue: UnicodeString);
  15936. procedure _Setx(const aValue: UnicodeString);
  15937. procedure _Sety(const aValue: UnicodeString);
  15938. procedure _Setd(const aValue: UnicodeString);
  15939. procedure _Setn(const aValue: UnicodeString);
  15940. procedure _Sete(const aValue: UnicodeString);
  15941. procedure _Setp(const aValue: UnicodeString);
  15942. procedure _Setq(const aValue: UnicodeString);
  15943. procedure _Setdp(const aValue: UnicodeString);
  15944. procedure _Setdq(const aValue: UnicodeString);
  15945. procedure _Setqi(const aValue: UnicodeString);
  15946. procedure _Setoth(const aValue: TJSRsaOtherPrimesInfoDynArray);
  15947. procedure _Setk(const aValue: UnicodeString);
  15948. Public
  15949. class function JSClassName: UnicodeString; override;
  15950. class function Cast(const Intf: IJSObject): IJSJsonWebKey;
  15951. property kty: UnicodeString read _Getkty write _Setkty;
  15952. property use: UnicodeString read _Getuse write _Setuse;
  15953. property key_ops: TUnicodeStringDynArray read _Getkey_ops write _Setkey_ops;
  15954. property alg: UnicodeString read _Getalg write _Setalg;
  15955. property ext: Boolean read _Getext write _Setext;
  15956. property crv: UnicodeString read _Getcrv write _Setcrv;
  15957. property x: UnicodeString read _Getx write _Setx;
  15958. property y: UnicodeString read _Gety write _Sety;
  15959. property d: UnicodeString read _Getd write _Setd;
  15960. property n: UnicodeString read _Getn write _Setn;
  15961. property e: UnicodeString read _Gete write _Sete;
  15962. property p: UnicodeString read _Getp write _Setp;
  15963. property q: UnicodeString read _Getq write _Setq;
  15964. property dp: UnicodeString read _Getdp write _Setdp;
  15965. property dq: UnicodeString read _Getdq write _Setdq;
  15966. property qi: UnicodeString read _Getqi write _Setqi;
  15967. property oth: TJSRsaOtherPrimesInfoDynArray read _Getoth write _Setoth;
  15968. property k: UnicodeString read _Getk write _Setk;
  15969. end;
  15970. { --------------------------------------------------------------------
  15971. TJSCryptoKeyPair
  15972. --------------------------------------------------------------------}
  15973. TJSCryptoKeyPairRec = record
  15974. publicKey: TJSCryptoKey;
  15975. privateKey: TJSCryptoKey;
  15976. end;
  15977. IJSCryptoKeyPair = interface(IJSObject)
  15978. ['{5E6E43E5-6270-330D-9D0E-FA515AC1837D}']
  15979. function _GetpublicKey: IJSCryptoKey;
  15980. function _GetprivateKey: IJSCryptoKey;
  15981. procedure _SetpublicKey(const aValue: IJSCryptoKey);
  15982. procedure _SetprivateKey(const aValue: IJSCryptoKey);
  15983. property publicKey: IJSCryptoKey read _GetpublicKey write _SetpublicKey;
  15984. property privateKey: IJSCryptoKey read _GetprivateKey write _SetprivateKey;
  15985. end;
  15986. TJSCryptoKeyPair = class(TJSObject,IJSCryptoKeyPair)
  15987. Protected
  15988. function _GetpublicKey: IJSCryptoKey;
  15989. function _GetprivateKey: IJSCryptoKey;
  15990. procedure _SetpublicKey(const aValue: IJSCryptoKey);
  15991. procedure _SetprivateKey(const aValue: IJSCryptoKey);
  15992. Public
  15993. class function JSClassName: UnicodeString; override;
  15994. class function Cast(const Intf: IJSObject): IJSCryptoKeyPair;
  15995. property publicKey: IJSCryptoKey read _GetpublicKey write _SetpublicKey;
  15996. property privateKey: IJSCryptoKey read _GetprivateKey write _SetprivateKey;
  15997. end;
  15998. { --------------------------------------------------------------------
  15999. TJSSVGBoundingBoxOptions
  16000. --------------------------------------------------------------------}
  16001. TJSSVGBoundingBoxOptionsRec = record
  16002. fill: Boolean;
  16003. stroke: Boolean;
  16004. markers: Boolean;
  16005. clipped: Boolean;
  16006. end;
  16007. IJSSVGBoundingBoxOptions = interface(IJSObject)
  16008. ['{A8BE3BB0-51C5-30F5-A2D1-86679D4147FE}']
  16009. function _Getfill: Boolean;
  16010. function _Getstroke: Boolean;
  16011. function _Getmarkers: Boolean;
  16012. function _Getclipped: Boolean;
  16013. procedure _Setfill(const aValue: Boolean);
  16014. procedure _Setstroke(const aValue: Boolean);
  16015. procedure _Setmarkers(const aValue: Boolean);
  16016. procedure _Setclipped(const aValue: Boolean);
  16017. property fill: Boolean read _Getfill write _Setfill;
  16018. property stroke: Boolean read _Getstroke write _Setstroke;
  16019. property markers: Boolean read _Getmarkers write _Setmarkers;
  16020. property clipped: Boolean read _Getclipped write _Setclipped;
  16021. end;
  16022. TJSSVGBoundingBoxOptions = class(TJSObject,IJSSVGBoundingBoxOptions)
  16023. Protected
  16024. function _Getfill: Boolean;
  16025. function _Getstroke: Boolean;
  16026. function _Getmarkers: Boolean;
  16027. function _Getclipped: Boolean;
  16028. procedure _Setfill(const aValue: Boolean);
  16029. procedure _Setstroke(const aValue: Boolean);
  16030. procedure _Setmarkers(const aValue: Boolean);
  16031. procedure _Setclipped(const aValue: Boolean);
  16032. Public
  16033. class function JSClassName: UnicodeString; override;
  16034. class function Cast(const Intf: IJSObject): IJSSVGBoundingBoxOptions;
  16035. property fill: Boolean read _Getfill write _Setfill;
  16036. property stroke: Boolean read _Getstroke write _Setstroke;
  16037. property markers: Boolean read _Getmarkers write _Setmarkers;
  16038. property clipped: Boolean read _Getclipped write _Setclipped;
  16039. end;
  16040. { --------------------------------------------------------------------
  16041. TJSServerSocketOptions
  16042. --------------------------------------------------------------------}
  16043. TJSServerSocketOptionsRec = record
  16044. binaryType: TTCPSocketBinaryType;
  16045. end;
  16046. IJSServerSocketOptions = interface(IJSObject)
  16047. ['{DA7C479F-5639-39BB-A438-AB2C5DB2A063}']
  16048. function _GetbinaryType: TTCPSocketBinaryType;
  16049. procedure _SetbinaryType(const aValue: TTCPSocketBinaryType);
  16050. property binaryType: TTCPSocketBinaryType read _GetbinaryType write _SetbinaryType;
  16051. end;
  16052. TJSServerSocketOptions = class(TJSObject,IJSServerSocketOptions)
  16053. Protected
  16054. function _GetbinaryType: TTCPSocketBinaryType;
  16055. procedure _SetbinaryType(const aValue: TTCPSocketBinaryType);
  16056. Public
  16057. class function JSClassName: UnicodeString; override;
  16058. class function Cast(const Intf: IJSObject): IJSServerSocketOptions;
  16059. property binaryType: TTCPSocketBinaryType read _GetbinaryType write _SetbinaryType;
  16060. end;
  16061. { --------------------------------------------------------------------
  16062. TJSSocketOptions
  16063. --------------------------------------------------------------------}
  16064. TJSSocketOptionsRec = record
  16065. useSecureTransport: Boolean;
  16066. binaryType: TTCPSocketBinaryType;
  16067. end;
  16068. IJSSocketOptions = interface(IJSObject)
  16069. ['{61E887ED-075F-376A-A252-91671E50F615}']
  16070. function _GetuseSecureTransport: Boolean;
  16071. function _GetbinaryType: TTCPSocketBinaryType;
  16072. procedure _SetuseSecureTransport(const aValue: Boolean);
  16073. procedure _SetbinaryType(const aValue: TTCPSocketBinaryType);
  16074. property useSecureTransport: Boolean read _GetuseSecureTransport write _SetuseSecureTransport;
  16075. property binaryType: TTCPSocketBinaryType read _GetbinaryType write _SetbinaryType;
  16076. end;
  16077. TJSSocketOptions = class(TJSObject,IJSSocketOptions)
  16078. Protected
  16079. function _GetuseSecureTransport: Boolean;
  16080. function _GetbinaryType: TTCPSocketBinaryType;
  16081. procedure _SetuseSecureTransport(const aValue: Boolean);
  16082. procedure _SetbinaryType(const aValue: TTCPSocketBinaryType);
  16083. Public
  16084. class function JSClassName: UnicodeString; override;
  16085. class function Cast(const Intf: IJSObject): IJSSocketOptions;
  16086. property useSecureTransport: Boolean read _GetuseSecureTransport write _SetuseSecureTransport;
  16087. property binaryType: TTCPSocketBinaryType read _GetbinaryType write _SetbinaryType;
  16088. end;
  16089. { --------------------------------------------------------------------
  16090. TJSDictWithAllowSharedBufferSource
  16091. --------------------------------------------------------------------}
  16092. TJSDictWithAllowSharedBufferSourceRec = record
  16093. arrayBuffer: IJSArrayBuffer;
  16094. arrayBufferView: IJSArrayBufferView;
  16095. allowSharedArrayBuffer: IJSArrayBuffer;
  16096. allowSharedArrayBufferView: IJSArrayBufferView;
  16097. end;
  16098. IJSDictWithAllowSharedBufferSource = interface(IJSObject)
  16099. ['{7F54897F-06AC-3B73-908C-7A4C4E253F60}']
  16100. function _GetarrayBuffer: IJSArrayBuffer;
  16101. function _GetarrayBufferView: IJSArrayBufferView;
  16102. function _GetallowSharedArrayBuffer: IJSArrayBuffer;
  16103. function _GetallowSharedArrayBufferView: IJSArrayBufferView;
  16104. procedure _SetarrayBuffer(const aValue: IJSArrayBuffer);
  16105. procedure _SetarrayBufferView(const aValue: IJSArrayBufferView);
  16106. procedure _SetallowSharedArrayBuffer(const aValue: IJSArrayBuffer);
  16107. procedure _SetallowSharedArrayBufferView(const aValue: IJSArrayBufferView);
  16108. property arrayBuffer: IJSArrayBuffer read _GetarrayBuffer write _SetarrayBuffer;
  16109. property arrayBufferView: IJSArrayBufferView read _GetarrayBufferView write _SetarrayBufferView;
  16110. property allowSharedArrayBuffer: IJSArrayBuffer read _GetallowSharedArrayBuffer write _SetallowSharedArrayBuffer;
  16111. property allowSharedArrayBufferView: IJSArrayBufferView read _GetallowSharedArrayBufferView write _SetallowSharedArrayBufferView;
  16112. end;
  16113. TJSDictWithAllowSharedBufferSource = class(TJSObject,IJSDictWithAllowSharedBufferSource)
  16114. Protected
  16115. function _GetarrayBuffer: IJSArrayBuffer;
  16116. function _GetarrayBufferView: IJSArrayBufferView;
  16117. function _GetallowSharedArrayBuffer: IJSArrayBuffer;
  16118. function _GetallowSharedArrayBufferView: IJSArrayBufferView;
  16119. procedure _SetarrayBuffer(const aValue: IJSArrayBuffer);
  16120. procedure _SetarrayBufferView(const aValue: IJSArrayBufferView);
  16121. procedure _SetallowSharedArrayBuffer(const aValue: IJSArrayBuffer);
  16122. procedure _SetallowSharedArrayBufferView(const aValue: IJSArrayBufferView);
  16123. Public
  16124. class function JSClassName: UnicodeString; override;
  16125. class function Cast(const Intf: IJSObject): IJSDictWithAllowSharedBufferSource;
  16126. property arrayBuffer: IJSArrayBuffer read _GetarrayBuffer write _SetarrayBuffer;
  16127. property arrayBufferView: IJSArrayBufferView read _GetarrayBufferView write _SetarrayBufferView;
  16128. property allowSharedArrayBuffer: IJSArrayBuffer read _GetallowSharedArrayBuffer write _SetallowSharedArrayBuffer;
  16129. property allowSharedArrayBufferView: IJSArrayBufferView read _GetallowSharedArrayBufferView write _SetallowSharedArrayBufferView;
  16130. end;
  16131. { --------------------------------------------------------------------
  16132. TJSTestInterfaceJSUnionableDictionary
  16133. --------------------------------------------------------------------}
  16134. TJSTestInterfaceJSUnionableDictionaryRec = record
  16135. objectMember: IJSObject;
  16136. anyMember: Variant;
  16137. end;
  16138. IJSTestInterfaceJSUnionableDictionary = interface(IJSObject)
  16139. ['{4C6CB7D5-287C-39E9-AB39-D39B245CAE43}']
  16140. function _GetobjectMember: IJSObject;
  16141. function _GetanyMember: Variant;
  16142. procedure _SetobjectMember(const aValue: IJSObject);
  16143. procedure _SetanyMember(const aValue: Variant);
  16144. property objectMember: IJSObject read _GetobjectMember write _SetobjectMember;
  16145. property anyMember: Variant read _GetanyMember write _SetanyMember;
  16146. end;
  16147. TJSTestInterfaceJSUnionableDictionary = class(TJSObject,IJSTestInterfaceJSUnionableDictionary)
  16148. Protected
  16149. function _GetobjectMember: IJSObject;
  16150. function _GetanyMember: Variant;
  16151. procedure _SetobjectMember(const aValue: IJSObject);
  16152. procedure _SetanyMember(const aValue: Variant);
  16153. Public
  16154. class function JSClassName: UnicodeString; override;
  16155. class function Cast(const Intf: IJSObject): IJSTestInterfaceJSUnionableDictionary;
  16156. property objectMember: IJSObject read _GetobjectMember write _SetobjectMember;
  16157. property anyMember: Variant read _GetanyMember write _SetanyMember;
  16158. end;
  16159. { --------------------------------------------------------------------
  16160. TJSTestInterfaceJSDictionary2
  16161. --------------------------------------------------------------------}
  16162. TJSTestInterfaceJSDictionary2Rec = record
  16163. innerObject: IJSObject;
  16164. end;
  16165. IJSTestInterfaceJSDictionary2 = interface(IJSObject)
  16166. ['{2B9287A3-561D-3FFA-B3F7-FA188907D033}']
  16167. function _GetinnerObject: IJSObject;
  16168. procedure _SetinnerObject(const aValue: IJSObject);
  16169. property innerObject: IJSObject read _GetinnerObject write _SetinnerObject;
  16170. end;
  16171. TJSTestInterfaceJSDictionary2 = class(TJSObject,IJSTestInterfaceJSDictionary2)
  16172. Protected
  16173. function _GetinnerObject: IJSObject;
  16174. procedure _SetinnerObject(const aValue: IJSObject);
  16175. Public
  16176. class function JSClassName: UnicodeString; override;
  16177. class function Cast(const Intf: IJSObject): IJSTestInterfaceJSDictionary2;
  16178. property innerObject: IJSObject read _GetinnerObject write _SetinnerObject;
  16179. end;
  16180. { --------------------------------------------------------------------
  16181. TJSTestInterfaceJSDictionary
  16182. --------------------------------------------------------------------}
  16183. // Union of object, DOMString
  16184. TTestInterfaceJSDictionary_objectOrStringMember_Type = Variant;
  16185. TJSTestInterfaceJSDictionaryRec = record
  16186. innerDictionary: TJSTestInterfaceJSDictionary2;
  16187. objectMember: IJSObject;
  16188. anyMember: Variant;
  16189. objectOrStringMember: TTestInterfaceJSDictionary_objectOrStringMember_Type;
  16190. anySequenceMember: TVariantDynArray;
  16191. objectRecordMember: IJSObject;
  16192. end;
  16193. IJSTestInterfaceJSDictionary = interface(IJSObject)
  16194. ['{819148A4-49F7-356D-B649-6F740B55997F}']
  16195. function _GetinnerDictionary: TJSTestInterfaceJSDictionary2;
  16196. function _GetobjectMember: IJSObject;
  16197. function _GetanyMember: Variant;
  16198. function _GetobjectOrStringMember: TTestInterfaceJSDictionary_objectOrStringMember_Type;
  16199. function _GetanySequenceMember: TVariantDynArray;
  16200. function _GetobjectRecordMember: IJSObject;
  16201. procedure _SetinnerDictionary(const aValue: TJSTestInterfaceJSDictionary2);
  16202. procedure _SetobjectMember(const aValue: IJSObject);
  16203. procedure _SetanyMember(const aValue: Variant);
  16204. procedure _SetobjectOrStringMember(const aValue: TTestInterfaceJSDictionary_objectOrStringMember_Type);
  16205. procedure _SetanySequenceMember(const aValue: TVariantDynArray);
  16206. procedure _SetobjectRecordMember(const aValue: IJSObject);
  16207. property innerDictionary: TJSTestInterfaceJSDictionary2 read _GetinnerDictionary write _SetinnerDictionary;
  16208. property objectMember: IJSObject read _GetobjectMember write _SetobjectMember;
  16209. property anyMember: Variant read _GetanyMember write _SetanyMember;
  16210. property objectOrStringMember: TTestInterfaceJSDictionary_objectOrStringMember_Type read _GetobjectOrStringMember write _SetobjectOrStringMember;
  16211. property anySequenceMember: TVariantDynArray read _GetanySequenceMember write _SetanySequenceMember;
  16212. property objectRecordMember: IJSObject read _GetobjectRecordMember write _SetobjectRecordMember;
  16213. end;
  16214. TJSTestInterfaceJSDictionary = class(TJSObject,IJSTestInterfaceJSDictionary)
  16215. Protected
  16216. function _GetinnerDictionary: TJSTestInterfaceJSDictionary2;
  16217. function _GetobjectMember: IJSObject;
  16218. function _GetanyMember: Variant;
  16219. function _GetobjectOrStringMember: TTestInterfaceJSDictionary_objectOrStringMember_Type;
  16220. function _GetanySequenceMember: TVariantDynArray;
  16221. function _GetobjectRecordMember: IJSObject;
  16222. procedure _SetinnerDictionary(const aValue: TJSTestInterfaceJSDictionary2);
  16223. procedure _SetobjectMember(const aValue: IJSObject);
  16224. procedure _SetanyMember(const aValue: Variant);
  16225. procedure _SetobjectOrStringMember(const aValue: TTestInterfaceJSDictionary_objectOrStringMember_Type);
  16226. procedure _SetanySequenceMember(const aValue: TVariantDynArray);
  16227. procedure _SetobjectRecordMember(const aValue: IJSObject);
  16228. Public
  16229. class function JSClassName: UnicodeString; override;
  16230. class function Cast(const Intf: IJSObject): IJSTestInterfaceJSDictionary;
  16231. property innerDictionary: TJSTestInterfaceJSDictionary2 read _GetinnerDictionary write _SetinnerDictionary;
  16232. property objectMember: IJSObject read _GetobjectMember write _SetobjectMember;
  16233. property anyMember: Variant read _GetanyMember write _SetanyMember;
  16234. property objectOrStringMember: TTestInterfaceJSDictionary_objectOrStringMember_Type read _GetobjectOrStringMember write _SetobjectOrStringMember;
  16235. property anySequenceMember: TVariantDynArray read _GetanySequenceMember write _SetanySequenceMember;
  16236. property objectRecordMember: IJSObject read _GetobjectRecordMember write _SetobjectRecordMember;
  16237. end;
  16238. { --------------------------------------------------------------------
  16239. TJSTestInterfaceAsyncIterableSingleOptions
  16240. --------------------------------------------------------------------}
  16241. TJSTestInterfaceAsyncIterableSingleOptionsRec = record
  16242. failToInit: Boolean;
  16243. end;
  16244. IJSTestInterfaceAsyncIterableSingleOptions = interface(IJSObject)
  16245. ['{A536944C-80B1-3904-B2AF-B9CA97704DC4}']
  16246. function _GetfailToInit: Boolean;
  16247. procedure _SetfailToInit(const aValue: Boolean);
  16248. property failToInit: Boolean read _GetfailToInit write _SetfailToInit;
  16249. end;
  16250. TJSTestInterfaceAsyncIterableSingleOptions = class(TJSObject,IJSTestInterfaceAsyncIterableSingleOptions)
  16251. Protected
  16252. function _GetfailToInit: Boolean;
  16253. procedure _SetfailToInit(const aValue: Boolean);
  16254. Public
  16255. class function JSClassName: UnicodeString; override;
  16256. class function Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIterableSingleOptions;
  16257. property failToInit: Boolean read _GetfailToInit write _SetfailToInit;
  16258. end;
  16259. { --------------------------------------------------------------------
  16260. TJSTestInterfaceAsyncIteratorOptions
  16261. --------------------------------------------------------------------}
  16262. TIJSPromiseDynArray = IJSArray; // array of Promise
  16263. TJSTestInterfaceAsyncIteratorOptionsRec = record
  16264. multiplier: Cardinal;
  16265. blockingPromises: TIJSPromiseDynArray;
  16266. failNextAfter: Cardinal;
  16267. throwFromNext: Boolean;
  16268. throwFromReturn: TTestThrowingCallback;
  16269. end;
  16270. IJSTestInterfaceAsyncIteratorOptions = interface(IJSObject)
  16271. ['{CF120A38-E32C-362A-A9BE-DC63082E63FD}']
  16272. function _Getmultiplier: Cardinal;
  16273. function _GetblockingPromises: TIJSPromiseDynArray;
  16274. function _GetfailNextAfter: Cardinal;
  16275. function _GetthrowFromNext: Boolean;
  16276. function _GetthrowFromReturn: TTestThrowingCallback;
  16277. procedure _Setmultiplier(const aValue: Cardinal);
  16278. procedure _SetblockingPromises(const aValue: TIJSPromiseDynArray);
  16279. procedure _SetfailNextAfter(const aValue: Cardinal);
  16280. procedure _SetthrowFromNext(const aValue: Boolean);
  16281. procedure _SetthrowFromReturn(const aValue: TTestThrowingCallback);
  16282. property multiplier: Cardinal read _Getmultiplier write _Setmultiplier;
  16283. property blockingPromises: TIJSPromiseDynArray read _GetblockingPromises write _SetblockingPromises;
  16284. property failNextAfter: Cardinal read _GetfailNextAfter write _SetfailNextAfter;
  16285. property throwFromNext: Boolean read _GetthrowFromNext write _SetthrowFromNext;
  16286. property throwFromReturn: TTestThrowingCallback read _GetthrowFromReturn write _SetthrowFromReturn;
  16287. end;
  16288. TJSTestInterfaceAsyncIteratorOptions = class(TJSObject,IJSTestInterfaceAsyncIteratorOptions)
  16289. Protected
  16290. function _Getmultiplier: Cardinal;
  16291. function _GetblockingPromises: TIJSPromiseDynArray;
  16292. function _GetfailNextAfter: Cardinal;
  16293. function _GetthrowFromNext: Boolean;
  16294. function _GetthrowFromReturn: TTestThrowingCallback;
  16295. procedure _Setmultiplier(const aValue: Cardinal);
  16296. procedure _SetblockingPromises(const aValue: TIJSPromiseDynArray);
  16297. procedure _SetfailNextAfter(const aValue: Cardinal);
  16298. procedure _SetthrowFromNext(const aValue: Boolean);
  16299. procedure _SetthrowFromReturn(const aValue: TTestThrowingCallback);
  16300. Public
  16301. class function JSClassName: UnicodeString; override;
  16302. class function Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIteratorOptions;
  16303. property multiplier: Cardinal read _Getmultiplier write _Setmultiplier;
  16304. property blockingPromises: TIJSPromiseDynArray read _GetblockingPromises write _SetblockingPromises;
  16305. property failNextAfter: Cardinal read _GetfailNextAfter write _SetfailNextAfter;
  16306. property throwFromNext: Boolean read _GetthrowFromNext write _SetthrowFromNext;
  16307. property throwFromReturn: TTestThrowingCallback read _GetthrowFromReturn write _SetthrowFromReturn;
  16308. end;
  16309. { --------------------------------------------------------------------
  16310. TJSObservableArrayCallbacks
  16311. --------------------------------------------------------------------}
  16312. TJSObservableArrayCallbacksRec = record
  16313. setObjectCallback: TSetDeleteObjectCallback;
  16314. deleteObjectCallback: TSetDeleteObjectCallback;
  16315. setBooleanCallback: TSetDeleteBooleanCallback;
  16316. deleteBooleanCallback: TSetDeleteBooleanCallback;
  16317. setInterfaceCallback: TSetDeleteInterfaceCallback;
  16318. deleteInterfaceCallback: TSetDeleteInterfaceCallback;
  16319. end;
  16320. IJSObservableArrayCallbacks = interface(IJSObject)
  16321. ['{C729F896-4186-363A-AB21-318D3D009E72}']
  16322. function _GetsetObjectCallback: TSetDeleteObjectCallback;
  16323. function _GetdeleteObjectCallback: TSetDeleteObjectCallback;
  16324. function _GetsetBooleanCallback: TSetDeleteBooleanCallback;
  16325. function _GetdeleteBooleanCallback: TSetDeleteBooleanCallback;
  16326. function _GetsetInterfaceCallback: TSetDeleteInterfaceCallback;
  16327. function _GetdeleteInterfaceCallback: TSetDeleteInterfaceCallback;
  16328. procedure _SetsetObjectCallback(const aValue: TSetDeleteObjectCallback);
  16329. procedure _SetdeleteObjectCallback(const aValue: TSetDeleteObjectCallback);
  16330. procedure _SetsetBooleanCallback(const aValue: TSetDeleteBooleanCallback);
  16331. procedure _SetdeleteBooleanCallback(const aValue: TSetDeleteBooleanCallback);
  16332. procedure _SetsetInterfaceCallback(const aValue: TSetDeleteInterfaceCallback);
  16333. procedure _SetdeleteInterfaceCallback(const aValue: TSetDeleteInterfaceCallback);
  16334. property setObjectCallback: TSetDeleteObjectCallback read _GetsetObjectCallback write _SetsetObjectCallback;
  16335. property deleteObjectCallback: TSetDeleteObjectCallback read _GetdeleteObjectCallback write _SetdeleteObjectCallback;
  16336. property setBooleanCallback: TSetDeleteBooleanCallback read _GetsetBooleanCallback write _SetsetBooleanCallback;
  16337. property deleteBooleanCallback: TSetDeleteBooleanCallback read _GetdeleteBooleanCallback write _SetdeleteBooleanCallback;
  16338. property setInterfaceCallback: TSetDeleteInterfaceCallback read _GetsetInterfaceCallback write _SetsetInterfaceCallback;
  16339. property deleteInterfaceCallback: TSetDeleteInterfaceCallback read _GetdeleteInterfaceCallback write _SetdeleteInterfaceCallback;
  16340. end;
  16341. TJSObservableArrayCallbacks = class(TJSObject,IJSObservableArrayCallbacks)
  16342. Protected
  16343. function _GetsetObjectCallback: TSetDeleteObjectCallback;
  16344. function _GetdeleteObjectCallback: TSetDeleteObjectCallback;
  16345. function _GetsetBooleanCallback: TSetDeleteBooleanCallback;
  16346. function _GetdeleteBooleanCallback: TSetDeleteBooleanCallback;
  16347. function _GetsetInterfaceCallback: TSetDeleteInterfaceCallback;
  16348. function _GetdeleteInterfaceCallback: TSetDeleteInterfaceCallback;
  16349. procedure _SetsetObjectCallback(const aValue: TSetDeleteObjectCallback);
  16350. procedure _SetdeleteObjectCallback(const aValue: TSetDeleteObjectCallback);
  16351. procedure _SetsetBooleanCallback(const aValue: TSetDeleteBooleanCallback);
  16352. procedure _SetdeleteBooleanCallback(const aValue: TSetDeleteBooleanCallback);
  16353. procedure _SetsetInterfaceCallback(const aValue: TSetDeleteInterfaceCallback);
  16354. procedure _SetdeleteInterfaceCallback(const aValue: TSetDeleteInterfaceCallback);
  16355. Public
  16356. class function JSClassName: UnicodeString; override;
  16357. class function Cast(const Intf: IJSObject): IJSObservableArrayCallbacks;
  16358. property setObjectCallback: TSetDeleteObjectCallback read _GetsetObjectCallback write _SetsetObjectCallback;
  16359. property deleteObjectCallback: TSetDeleteObjectCallback read _GetdeleteObjectCallback write _SetdeleteObjectCallback;
  16360. property setBooleanCallback: TSetDeleteBooleanCallback read _GetsetBooleanCallback write _SetsetBooleanCallback;
  16361. property deleteBooleanCallback: TSetDeleteBooleanCallback read _GetdeleteBooleanCallback write _SetdeleteBooleanCallback;
  16362. property setInterfaceCallback: TSetDeleteInterfaceCallback read _GetsetInterfaceCallback write _SetsetInterfaceCallback;
  16363. property deleteInterfaceCallback: TSetDeleteInterfaceCallback read _GetdeleteInterfaceCallback write _SetdeleteInterfaceCallback;
  16364. end;
  16365. { --------------------------------------------------------------------
  16366. TJSTextDecoderOptions
  16367. --------------------------------------------------------------------}
  16368. TJSTextDecoderOptionsRec = record
  16369. fatal: Boolean;
  16370. ignoreBOM: Boolean;
  16371. end;
  16372. IJSTextDecoderOptions = interface(IJSObject)
  16373. ['{BDDD459B-BFED-3D3A-BB91-64CAD528787E}']
  16374. function _Getfatal: Boolean;
  16375. function _GetignoreBOM: Boolean;
  16376. procedure _Setfatal(const aValue: Boolean);
  16377. procedure _SetignoreBOM(const aValue: Boolean);
  16378. property fatal: Boolean read _Getfatal write _Setfatal;
  16379. property ignoreBOM: Boolean read _GetignoreBOM write _SetignoreBOM;
  16380. end;
  16381. TJSTextDecoderOptions = class(TJSObject,IJSTextDecoderOptions)
  16382. Protected
  16383. function _Getfatal: Boolean;
  16384. function _GetignoreBOM: Boolean;
  16385. procedure _Setfatal(const aValue: Boolean);
  16386. procedure _SetignoreBOM(const aValue: Boolean);
  16387. Public
  16388. class function JSClassName: UnicodeString; override;
  16389. class function Cast(const Intf: IJSObject): IJSTextDecoderOptions;
  16390. property fatal: Boolean read _Getfatal write _Setfatal;
  16391. property ignoreBOM: Boolean read _GetignoreBOM write _SetignoreBOM;
  16392. end;
  16393. { --------------------------------------------------------------------
  16394. TJSTextDecodeOptions
  16395. --------------------------------------------------------------------}
  16396. TJSTextDecodeOptionsRec = record
  16397. stream: Boolean;
  16398. end;
  16399. IJSTextDecodeOptions = interface(IJSObject)
  16400. ['{2B7E0233-1619-3B88-AFA9-B8791BEAA9A7}']
  16401. function _Getstream: Boolean;
  16402. procedure _Setstream(const aValue: Boolean);
  16403. property stream: Boolean read _Getstream write _Setstream;
  16404. end;
  16405. TJSTextDecodeOptions = class(TJSObject,IJSTextDecodeOptions)
  16406. Protected
  16407. function _Getstream: Boolean;
  16408. procedure _Setstream(const aValue: Boolean);
  16409. Public
  16410. class function JSClassName: UnicodeString; override;
  16411. class function Cast(const Intf: IJSObject): IJSTextDecodeOptions;
  16412. property stream: Boolean read _Getstream write _Setstream;
  16413. end;
  16414. { --------------------------------------------------------------------
  16415. TJSTextEncoderEncodeIntoResult
  16416. --------------------------------------------------------------------}
  16417. TJSTextEncoderEncodeIntoResultRec = record
  16418. read: QWord;
  16419. written: QWord;
  16420. end;
  16421. IJSTextEncoderEncodeIntoResult = interface(IJSObject)
  16422. ['{DCE638EC-EAA6-3B5B-AA5B-C843CA8858B6}']
  16423. function _Getread: QWord;
  16424. function _Getwritten: QWord;
  16425. procedure _Setread(const aValue: QWord);
  16426. procedure _Setwritten(const aValue: QWord);
  16427. property read: QWord read _Getread write _Setread;
  16428. property written: QWord read _Getwritten write _Setwritten;
  16429. end;
  16430. TJSTextEncoderEncodeIntoResult = class(TJSObject,IJSTextEncoderEncodeIntoResult)
  16431. Protected
  16432. function _Getread: QWord;
  16433. function _Getwritten: QWord;
  16434. procedure _Setread(const aValue: QWord);
  16435. procedure _Setwritten(const aValue: QWord);
  16436. Public
  16437. class function JSClassName: UnicodeString; override;
  16438. class function Cast(const Intf: IJSObject): IJSTextEncoderEncodeIntoResult;
  16439. property read: QWord read _Getread write _Setread;
  16440. property written: QWord read _Getwritten write _Setwritten;
  16441. end;
  16442. { --------------------------------------------------------------------
  16443. TJSTouchInit
  16444. --------------------------------------------------------------------}
  16445. TJSTouchInitRec = record
  16446. identifier: LongInt;
  16447. target: TJSEventTarget;
  16448. clientX: LongInt;
  16449. clientY: LongInt;
  16450. screenX: LongInt;
  16451. screenY: LongInt;
  16452. pageX: LongInt;
  16453. pageY: LongInt;
  16454. radiusX: Single;
  16455. radiusY: Single;
  16456. rotationAngle: Single;
  16457. force: Single;
  16458. end;
  16459. IJSTouchInit = interface(IJSObject)
  16460. ['{0B2C5C85-1AF9-3593-AF8B-62E8CC376895}']
  16461. function _Getidentifier: LongInt;
  16462. function _Gettarget: IJSEventTarget;
  16463. function _GetclientX: LongInt;
  16464. function _GetclientY: LongInt;
  16465. function _GetscreenX: LongInt;
  16466. function _GetscreenY: LongInt;
  16467. function _GetpageX: LongInt;
  16468. function _GetpageY: LongInt;
  16469. function _GetradiusX: Single;
  16470. function _GetradiusY: Single;
  16471. function _GetrotationAngle: Single;
  16472. function _Getforce: Single;
  16473. procedure _Setidentifier(const aValue: LongInt);
  16474. procedure _Settarget(const aValue: IJSEventTarget);
  16475. procedure _SetclientX(const aValue: LongInt);
  16476. procedure _SetclientY(const aValue: LongInt);
  16477. procedure _SetscreenX(const aValue: LongInt);
  16478. procedure _SetscreenY(const aValue: LongInt);
  16479. procedure _SetpageX(const aValue: LongInt);
  16480. procedure _SetpageY(const aValue: LongInt);
  16481. procedure _SetradiusX(const aValue: Single);
  16482. procedure _SetradiusY(const aValue: Single);
  16483. procedure _SetrotationAngle(const aValue: Single);
  16484. procedure _Setforce(const aValue: Single);
  16485. property identifier: LongInt read _Getidentifier write _Setidentifier;
  16486. property target: IJSEventTarget read _Gettarget write _Settarget;
  16487. property clientX: LongInt read _GetclientX write _SetclientX;
  16488. property clientY: LongInt read _GetclientY write _SetclientY;
  16489. property screenX: LongInt read _GetscreenX write _SetscreenX;
  16490. property screenY: LongInt read _GetscreenY write _SetscreenY;
  16491. property pageX: LongInt read _GetpageX write _SetpageX;
  16492. property pageY: LongInt read _GetpageY write _SetpageY;
  16493. property radiusX: Single read _GetradiusX write _SetradiusX;
  16494. property radiusY: Single read _GetradiusY write _SetradiusY;
  16495. property rotationAngle: Single read _GetrotationAngle write _SetrotationAngle;
  16496. property force: Single read _Getforce write _Setforce;
  16497. end;
  16498. TJSTouchInit = class(TJSObject,IJSTouchInit)
  16499. Protected
  16500. function _Getidentifier: LongInt;
  16501. function _Gettarget: IJSEventTarget;
  16502. function _GetclientX: LongInt;
  16503. function _GetclientY: LongInt;
  16504. function _GetscreenX: LongInt;
  16505. function _GetscreenY: LongInt;
  16506. function _GetpageX: LongInt;
  16507. function _GetpageY: LongInt;
  16508. function _GetradiusX: Single;
  16509. function _GetradiusY: Single;
  16510. function _GetrotationAngle: Single;
  16511. function _Getforce: Single;
  16512. procedure _Setidentifier(const aValue: LongInt);
  16513. procedure _Settarget(const aValue: IJSEventTarget);
  16514. procedure _SetclientX(const aValue: LongInt);
  16515. procedure _SetclientY(const aValue: LongInt);
  16516. procedure _SetscreenX(const aValue: LongInt);
  16517. procedure _SetscreenY(const aValue: LongInt);
  16518. procedure _SetpageX(const aValue: LongInt);
  16519. procedure _SetpageY(const aValue: LongInt);
  16520. procedure _SetradiusX(const aValue: Single);
  16521. procedure _SetradiusY(const aValue: Single);
  16522. procedure _SetrotationAngle(const aValue: Single);
  16523. procedure _Setforce(const aValue: Single);
  16524. Public
  16525. class function JSClassName: UnicodeString; override;
  16526. class function Cast(const Intf: IJSObject): IJSTouchInit;
  16527. property identifier: LongInt read _Getidentifier write _Setidentifier;
  16528. property target: IJSEventTarget read _Gettarget write _Settarget;
  16529. property clientX: LongInt read _GetclientX write _SetclientX;
  16530. property clientY: LongInt read _GetclientY write _SetclientY;
  16531. property screenX: LongInt read _GetscreenX write _SetscreenX;
  16532. property screenY: LongInt read _GetscreenY write _SetscreenY;
  16533. property pageX: LongInt read _GetpageX write _SetpageX;
  16534. property pageY: LongInt read _GetpageY write _SetpageY;
  16535. property radiusX: Single read _GetradiusX write _SetradiusX;
  16536. property radiusY: Single read _GetradiusY write _SetradiusY;
  16537. property rotationAngle: Single read _GetrotationAngle write _SetrotationAngle;
  16538. property force: Single read _Getforce write _Setforce;
  16539. end;
  16540. { --------------------------------------------------------------------
  16541. TJSTransformer
  16542. --------------------------------------------------------------------}
  16543. TJSTransformerRec = record
  16544. start: TTransformerStartCallback;
  16545. transform: TTransformerTransformCallback;
  16546. flush: TTransformerFlushCallback;
  16547. readableType: Variant;
  16548. writableType: Variant;
  16549. end;
  16550. IJSTransformer = interface(IJSObject)
  16551. ['{3D41D8F6-515D-34E3-AF03-60DF98C84E91}']
  16552. function _Getstart: TTransformerStartCallback;
  16553. function _Gettransform: TTransformerTransformCallback;
  16554. function _Getflush: TTransformerFlushCallback;
  16555. function _GetreadableType: Variant;
  16556. function _GetwritableType: Variant;
  16557. procedure _Setstart(const aValue: TTransformerStartCallback);
  16558. procedure _Settransform(const aValue: TTransformerTransformCallback);
  16559. procedure _Setflush(const aValue: TTransformerFlushCallback);
  16560. procedure _SetreadableType(const aValue: Variant);
  16561. procedure _SetwritableType(const aValue: Variant);
  16562. property start: TTransformerStartCallback read _Getstart write _Setstart;
  16563. property transform: TTransformerTransformCallback read _Gettransform write _Settransform;
  16564. property flush: TTransformerFlushCallback read _Getflush write _Setflush;
  16565. property readableType: Variant read _GetreadableType write _SetreadableType;
  16566. property writableType: Variant read _GetwritableType write _SetwritableType;
  16567. end;
  16568. TJSTransformer = class(TJSObject,IJSTransformer)
  16569. Protected
  16570. function _Getstart: TTransformerStartCallback;
  16571. function _Gettransform: TTransformerTransformCallback;
  16572. function _Getflush: TTransformerFlushCallback;
  16573. function _GetreadableType: Variant;
  16574. function _GetwritableType: Variant;
  16575. procedure _Setstart(const aValue: TTransformerStartCallback);
  16576. procedure _Settransform(const aValue: TTransformerTransformCallback);
  16577. procedure _Setflush(const aValue: TTransformerFlushCallback);
  16578. procedure _SetreadableType(const aValue: Variant);
  16579. procedure _SetwritableType(const aValue: Variant);
  16580. Public
  16581. class function JSClassName: UnicodeString; override;
  16582. class function Cast(const Intf: IJSObject): IJSTransformer;
  16583. property start: TTransformerStartCallback read _Getstart write _Setstart;
  16584. property transform: TTransformerTransformCallback read _Gettransform write _Settransform;
  16585. property flush: TTransformerFlushCallback read _Getflush write _Setflush;
  16586. property readableType: Variant read _GetreadableType write _SetreadableType;
  16587. property writableType: Variant read _GetwritableType write _SetwritableType;
  16588. end;
  16589. { --------------------------------------------------------------------
  16590. TJSTrustedTypePolicyOptions
  16591. --------------------------------------------------------------------}
  16592. TJSTrustedTypePolicyOptionsRec = record
  16593. createHTML: TCreateHTMLCallback;
  16594. createScript: TCreateScriptCallback;
  16595. createScriptURL: TCreateScriptURLCallback;
  16596. end;
  16597. IJSTrustedTypePolicyOptions = interface(IJSObject)
  16598. ['{089F4115-CB84-3A80-A8D2-16063DB57D20}']
  16599. function _GetcreateHTML: TCreateHTMLCallback;
  16600. function _GetcreateScript: TCreateScriptCallback;
  16601. function _GetcreateScriptURL: TCreateScriptURLCallback;
  16602. procedure _SetcreateHTML(const aValue: TCreateHTMLCallback);
  16603. procedure _SetcreateScript(const aValue: TCreateScriptCallback);
  16604. procedure _SetcreateScriptURL(const aValue: TCreateScriptURLCallback);
  16605. property createHTML: TCreateHTMLCallback read _GetcreateHTML write _SetcreateHTML;
  16606. property createScript: TCreateScriptCallback read _GetcreateScript write _SetcreateScript;
  16607. property createScriptURL: TCreateScriptURLCallback read _GetcreateScriptURL write _SetcreateScriptURL;
  16608. end;
  16609. TJSTrustedTypePolicyOptions = class(TJSObject,IJSTrustedTypePolicyOptions)
  16610. Protected
  16611. function _GetcreateHTML: TCreateHTMLCallback;
  16612. function _GetcreateScript: TCreateScriptCallback;
  16613. function _GetcreateScriptURL: TCreateScriptURLCallback;
  16614. procedure _SetcreateHTML(const aValue: TCreateHTMLCallback);
  16615. procedure _SetcreateScript(const aValue: TCreateScriptCallback);
  16616. procedure _SetcreateScriptURL(const aValue: TCreateScriptURLCallback);
  16617. Public
  16618. class function JSClassName: UnicodeString; override;
  16619. class function Cast(const Intf: IJSObject): IJSTrustedTypePolicyOptions;
  16620. property createHTML: TCreateHTMLCallback read _GetcreateHTML write _SetcreateHTML;
  16621. property createScript: TCreateScriptCallback read _GetcreateScript write _SetcreateScript;
  16622. property createScriptURL: TCreateScriptURLCallback read _GetcreateScriptURL write _SetcreateScriptURL;
  16623. end;
  16624. { --------------------------------------------------------------------
  16625. TJSUDPOptions
  16626. --------------------------------------------------------------------}
  16627. TJSUDPOptionsRec = record
  16628. localAddress: UnicodeString;
  16629. localPort: Word;
  16630. remoteAddress: UnicodeString;
  16631. remotePort: Word;
  16632. addressReuse: Boolean;
  16633. loopback: Boolean;
  16634. end;
  16635. IJSUDPOptions = interface(IJSObject)
  16636. ['{24426033-B3F9-3999-9501-9CF92CB41B55}']
  16637. function _GetlocalAddress: UnicodeString;
  16638. function _GetlocalPort: Word;
  16639. function _GetremoteAddress: UnicodeString;
  16640. function _GetremotePort: Word;
  16641. function _GetaddressReuse: Boolean;
  16642. function _Getloopback: Boolean;
  16643. procedure _SetlocalAddress(const aValue: UnicodeString);
  16644. procedure _SetlocalPort(const aValue: Word);
  16645. procedure _SetremoteAddress(const aValue: UnicodeString);
  16646. procedure _SetremotePort(const aValue: Word);
  16647. procedure _SetaddressReuse(const aValue: Boolean);
  16648. procedure _Setloopback(const aValue: Boolean);
  16649. property localAddress: UnicodeString read _GetlocalAddress write _SetlocalAddress;
  16650. property localPort: Word read _GetlocalPort write _SetlocalPort;
  16651. property remoteAddress: UnicodeString read _GetremoteAddress write _SetremoteAddress;
  16652. property remotePort: Word read _GetremotePort write _SetremotePort;
  16653. property addressReuse: Boolean read _GetaddressReuse write _SetaddressReuse;
  16654. property loopback: Boolean read _Getloopback write _Setloopback;
  16655. end;
  16656. TJSUDPOptions = class(TJSObject,IJSUDPOptions)
  16657. Protected
  16658. function _GetlocalAddress: UnicodeString;
  16659. function _GetlocalPort: Word;
  16660. function _GetremoteAddress: UnicodeString;
  16661. function _GetremotePort: Word;
  16662. function _GetaddressReuse: Boolean;
  16663. function _Getloopback: Boolean;
  16664. procedure _SetlocalAddress(const aValue: UnicodeString);
  16665. procedure _SetlocalPort(const aValue: Word);
  16666. procedure _SetremoteAddress(const aValue: UnicodeString);
  16667. procedure _SetremotePort(const aValue: Word);
  16668. procedure _SetaddressReuse(const aValue: Boolean);
  16669. procedure _Setloopback(const aValue: Boolean);
  16670. Public
  16671. class function JSClassName: UnicodeString; override;
  16672. class function Cast(const Intf: IJSObject): IJSUDPOptions;
  16673. property localAddress: UnicodeString read _GetlocalAddress write _SetlocalAddress;
  16674. property localPort: Word read _GetlocalPort write _SetlocalPort;
  16675. property remoteAddress: UnicodeString read _GetremoteAddress write _SetremoteAddress;
  16676. property remotePort: Word read _GetremotePort write _SetremotePort;
  16677. property addressReuse: Boolean read _GetaddressReuse write _SetaddressReuse;
  16678. property loopback: Boolean read _Getloopback write _Setloopback;
  16679. end;
  16680. { --------------------------------------------------------------------
  16681. TJSUnderlyingSink
  16682. --------------------------------------------------------------------}
  16683. TJSUnderlyingSinkRec = record
  16684. start: TUnderlyingSinkStartCallback;
  16685. write: TUnderlyingSinkWriteCallback;
  16686. close: TUnderlyingSinkCloseCallback;
  16687. abort: TUnderlyingSinkAbortCallback;
  16688. type_: Variant;
  16689. end;
  16690. IJSUnderlyingSink = interface(IJSObject)
  16691. ['{05CD842B-2802-3C93-80A3-F2678AF2188E}']
  16692. function _Getstart: TUnderlyingSinkStartCallback;
  16693. function _Getwrite: TUnderlyingSinkWriteCallback;
  16694. function _Getclose: TUnderlyingSinkCloseCallback;
  16695. function _Getabort: TUnderlyingSinkAbortCallback;
  16696. function _Gettype_: Variant;
  16697. procedure _Setstart(const aValue: TUnderlyingSinkStartCallback);
  16698. procedure _Setwrite(const aValue: TUnderlyingSinkWriteCallback);
  16699. procedure _Setclose(const aValue: TUnderlyingSinkCloseCallback);
  16700. procedure _Setabort(const aValue: TUnderlyingSinkAbortCallback);
  16701. procedure _Settype_(const aValue: Variant);
  16702. property start: TUnderlyingSinkStartCallback read _Getstart write _Setstart;
  16703. property write: TUnderlyingSinkWriteCallback read _Getwrite write _Setwrite;
  16704. property close: TUnderlyingSinkCloseCallback read _Getclose write _Setclose;
  16705. property abort: TUnderlyingSinkAbortCallback read _Getabort write _Setabort;
  16706. property type_: Variant read _Gettype_ write _Settype_;
  16707. end;
  16708. TJSUnderlyingSink = class(TJSObject,IJSUnderlyingSink)
  16709. Protected
  16710. function _Getstart: TUnderlyingSinkStartCallback;
  16711. function _Getwrite: TUnderlyingSinkWriteCallback;
  16712. function _Getclose: TUnderlyingSinkCloseCallback;
  16713. function _Getabort: TUnderlyingSinkAbortCallback;
  16714. function _Gettype_: Variant;
  16715. procedure _Setstart(const aValue: TUnderlyingSinkStartCallback);
  16716. procedure _Setwrite(const aValue: TUnderlyingSinkWriteCallback);
  16717. procedure _Setclose(const aValue: TUnderlyingSinkCloseCallback);
  16718. procedure _Setabort(const aValue: TUnderlyingSinkAbortCallback);
  16719. procedure _Settype_(const aValue: Variant);
  16720. Public
  16721. class function JSClassName: UnicodeString; override;
  16722. class function Cast(const Intf: IJSObject): IJSUnderlyingSink;
  16723. property start: TUnderlyingSinkStartCallback read _Getstart write _Setstart;
  16724. property write: TUnderlyingSinkWriteCallback read _Getwrite write _Setwrite;
  16725. property close: TUnderlyingSinkCloseCallback read _Getclose write _Setclose;
  16726. property abort: TUnderlyingSinkAbortCallback read _Getabort write _Setabort;
  16727. property type_: Variant read _Gettype_ write _Settype_;
  16728. end;
  16729. { --------------------------------------------------------------------
  16730. TJSUnderlyingSource
  16731. --------------------------------------------------------------------}
  16732. TJSUnderlyingSourceRec = record
  16733. start: TUnderlyingSourceStartCallback;
  16734. pull: TUnderlyingSourcePullCallback;
  16735. cancel: TUnderlyingSourceCancelCallback;
  16736. type_: TReadableStreamType;
  16737. autoAllocateChunkSize: QWord;
  16738. end;
  16739. IJSUnderlyingSource = interface(IJSObject)
  16740. ['{65A3AA01-57B0-3762-8FCB-8A158C78A28E}']
  16741. function _Getstart: TUnderlyingSourceStartCallback;
  16742. function _Getpull: TUnderlyingSourcePullCallback;
  16743. function _Getcancel: TUnderlyingSourceCancelCallback;
  16744. function _Gettype_: TReadableStreamType;
  16745. function _GetautoAllocateChunkSize: QWord;
  16746. procedure _Setstart(const aValue: TUnderlyingSourceStartCallback);
  16747. procedure _Setpull(const aValue: TUnderlyingSourcePullCallback);
  16748. procedure _Setcancel(const aValue: TUnderlyingSourceCancelCallback);
  16749. procedure _Settype_(const aValue: TReadableStreamType);
  16750. procedure _SetautoAllocateChunkSize(const aValue: QWord);
  16751. property start: TUnderlyingSourceStartCallback read _Getstart write _Setstart;
  16752. property pull: TUnderlyingSourcePullCallback read _Getpull write _Setpull;
  16753. property cancel: TUnderlyingSourceCancelCallback read _Getcancel write _Setcancel;
  16754. property type_: TReadableStreamType read _Gettype_ write _Settype_;
  16755. property autoAllocateChunkSize: QWord read _GetautoAllocateChunkSize write _SetautoAllocateChunkSize;
  16756. end;
  16757. TJSUnderlyingSource = class(TJSObject,IJSUnderlyingSource)
  16758. Protected
  16759. function _Getstart: TUnderlyingSourceStartCallback;
  16760. function _Getpull: TUnderlyingSourcePullCallback;
  16761. function _Getcancel: TUnderlyingSourceCancelCallback;
  16762. function _Gettype_: TReadableStreamType;
  16763. function _GetautoAllocateChunkSize: QWord;
  16764. procedure _Setstart(const aValue: TUnderlyingSourceStartCallback);
  16765. procedure _Setpull(const aValue: TUnderlyingSourcePullCallback);
  16766. procedure _Setcancel(const aValue: TUnderlyingSourceCancelCallback);
  16767. procedure _Settype_(const aValue: TReadableStreamType);
  16768. procedure _SetautoAllocateChunkSize(const aValue: QWord);
  16769. Public
  16770. class function JSClassName: UnicodeString; override;
  16771. class function Cast(const Intf: IJSObject): IJSUnderlyingSource;
  16772. property start: TUnderlyingSourceStartCallback read _Getstart write _Setstart;
  16773. property pull: TUnderlyingSourcePullCallback read _Getpull write _Setpull;
  16774. property cancel: TUnderlyingSourceCancelCallback read _Getcancel write _Setcancel;
  16775. property type_: TReadableStreamType read _Gettype_ write _Settype_;
  16776. property autoAllocateChunkSize: QWord read _GetautoAllocateChunkSize write _SetautoAllocateChunkSize;
  16777. end;
  16778. { --------------------------------------------------------------------
  16779. TJSVideoColorSpaceInit
  16780. --------------------------------------------------------------------}
  16781. TJSVideoColorSpaceInitRec = record
  16782. primaries: TVideoColorPrimaries;
  16783. transfer: TVideoTransferCharacteristics;
  16784. matrix: TVideoMatrixCoefficients;
  16785. fullRange: Boolean;
  16786. end;
  16787. IJSVideoColorSpaceInit = interface(IJSObject)
  16788. ['{15A97238-4A41-36AB-B923-3F81CEDDF048}']
  16789. function _Getprimaries: TVideoColorPrimaries;
  16790. function _Gettransfer: TVideoTransferCharacteristics;
  16791. function _Getmatrix: TVideoMatrixCoefficients;
  16792. function _GetfullRange: Boolean;
  16793. procedure _Setprimaries(const aValue: TVideoColorPrimaries);
  16794. procedure _Settransfer(const aValue: TVideoTransferCharacteristics);
  16795. procedure _Setmatrix(const aValue: TVideoMatrixCoefficients);
  16796. procedure _SetfullRange(const aValue: Boolean);
  16797. property primaries: TVideoColorPrimaries read _Getprimaries write _Setprimaries;
  16798. property transfer: TVideoTransferCharacteristics read _Gettransfer write _Settransfer;
  16799. property matrix: TVideoMatrixCoefficients read _Getmatrix write _Setmatrix;
  16800. property fullRange: Boolean read _GetfullRange write _SetfullRange;
  16801. end;
  16802. TJSVideoColorSpaceInit = class(TJSObject,IJSVideoColorSpaceInit)
  16803. Protected
  16804. function _Getprimaries: TVideoColorPrimaries;
  16805. function _Gettransfer: TVideoTransferCharacteristics;
  16806. function _Getmatrix: TVideoMatrixCoefficients;
  16807. function _GetfullRange: Boolean;
  16808. procedure _Setprimaries(const aValue: TVideoColorPrimaries);
  16809. procedure _Settransfer(const aValue: TVideoTransferCharacteristics);
  16810. procedure _Setmatrix(const aValue: TVideoMatrixCoefficients);
  16811. procedure _SetfullRange(const aValue: Boolean);
  16812. Public
  16813. class function JSClassName: UnicodeString; override;
  16814. class function Cast(const Intf: IJSObject): IJSVideoColorSpaceInit;
  16815. property primaries: TVideoColorPrimaries read _Getprimaries write _Setprimaries;
  16816. property transfer: TVideoTransferCharacteristics read _Gettransfer write _Settransfer;
  16817. property matrix: TVideoMatrixCoefficients read _Getmatrix write _Setmatrix;
  16818. property fullRange: Boolean read _GetfullRange write _SetfullRange;
  16819. end;
  16820. { --------------------------------------------------------------------
  16821. TJSVideoDecoderInit
  16822. --------------------------------------------------------------------}
  16823. TJSVideoDecoderInitRec = record
  16824. output: TVideoFrameOutputCallback;
  16825. error: TWebCodecsErrorCallback;
  16826. end;
  16827. IJSVideoDecoderInit = interface(IJSObject)
  16828. ['{0E8BC0E4-6963-3DD7-A533-241C74BC299E}']
  16829. function _Getoutput: TVideoFrameOutputCallback;
  16830. function _Geterror: TWebCodecsErrorCallback;
  16831. procedure _Setoutput(const aValue: TVideoFrameOutputCallback);
  16832. procedure _Seterror(const aValue: TWebCodecsErrorCallback);
  16833. property output: TVideoFrameOutputCallback read _Getoutput write _Setoutput;
  16834. property error: TWebCodecsErrorCallback read _Geterror write _Seterror;
  16835. end;
  16836. TJSVideoDecoderInit = class(TJSObject,IJSVideoDecoderInit)
  16837. Protected
  16838. function _Getoutput: TVideoFrameOutputCallback;
  16839. function _Geterror: TWebCodecsErrorCallback;
  16840. procedure _Setoutput(const aValue: TVideoFrameOutputCallback);
  16841. procedure _Seterror(const aValue: TWebCodecsErrorCallback);
  16842. Public
  16843. class function JSClassName: UnicodeString; override;
  16844. class function Cast(const Intf: IJSObject): IJSVideoDecoderInit;
  16845. property output: TVideoFrameOutputCallback read _Getoutput write _Setoutput;
  16846. property error: TWebCodecsErrorCallback read _Geterror write _Seterror;
  16847. end;
  16848. { --------------------------------------------------------------------
  16849. TJSVideoDecoderSupport
  16850. --------------------------------------------------------------------}
  16851. TJSVideoDecoderSupportRec = record
  16852. supported: Boolean;
  16853. config: TJSVideoDecoderConfig;
  16854. end;
  16855. IJSVideoDecoderSupport = interface(IJSObject)
  16856. ['{41DDBDD9-2527-31F8-A4FD-D23A5FB7D06D}']
  16857. function _Getsupported: Boolean;
  16858. function _Getconfig: TJSVideoDecoderConfig;
  16859. procedure _Setsupported(const aValue: Boolean);
  16860. procedure _Setconfig(const aValue: TJSVideoDecoderConfig);
  16861. property supported: Boolean read _Getsupported write _Setsupported;
  16862. property config: TJSVideoDecoderConfig read _Getconfig write _Setconfig;
  16863. end;
  16864. TJSVideoDecoderSupport = class(TJSObject,IJSVideoDecoderSupport)
  16865. Protected
  16866. function _Getsupported: Boolean;
  16867. function _Getconfig: TJSVideoDecoderConfig;
  16868. procedure _Setsupported(const aValue: Boolean);
  16869. procedure _Setconfig(const aValue: TJSVideoDecoderConfig);
  16870. Public
  16871. class function JSClassName: UnicodeString; override;
  16872. class function Cast(const Intf: IJSObject): IJSVideoDecoderSupport;
  16873. property supported: Boolean read _Getsupported write _Setsupported;
  16874. property config: TJSVideoDecoderConfig read _Getconfig write _Setconfig;
  16875. end;
  16876. { --------------------------------------------------------------------
  16877. TJSVideoDecoderConfig
  16878. --------------------------------------------------------------------}
  16879. // Union of ArrayBufferView, ArrayBuffer
  16880. TVideoDecoderConfig_description_Type = Variant;
  16881. TJSVideoDecoderConfigRec = record
  16882. codec: UnicodeString;
  16883. description: TVideoDecoderConfig_description_Type;
  16884. codedWidth: Cardinal;
  16885. codedHeight: Cardinal;
  16886. displayAspectWidth: Cardinal;
  16887. displayAspectHeight: Cardinal;
  16888. colorSpace: TJSVideoColorSpaceInit;
  16889. hardwareAcceleration: THardwareAcceleration;
  16890. optimizeForLatency: Boolean;
  16891. end;
  16892. IJSVideoDecoderConfig = interface(IJSObject)
  16893. ['{F2FC613A-3232-314A-BB0C-862304C0C517}']
  16894. function _Getcodec: UnicodeString;
  16895. function _Getdescription: TVideoDecoderConfig_description_Type;
  16896. function _GetcodedWidth: Cardinal;
  16897. function _GetcodedHeight: Cardinal;
  16898. function _GetdisplayAspectWidth: Cardinal;
  16899. function _GetdisplayAspectHeight: Cardinal;
  16900. function _GetcolorSpace: TJSVideoColorSpaceInit;
  16901. function _GethardwareAcceleration: THardwareAcceleration;
  16902. function _GetoptimizeForLatency: Boolean;
  16903. procedure _Setcodec(const aValue: UnicodeString);
  16904. procedure _Setdescription(const aValue: TVideoDecoderConfig_description_Type);
  16905. procedure _SetcodedWidth(const aValue: Cardinal);
  16906. procedure _SetcodedHeight(const aValue: Cardinal);
  16907. procedure _SetdisplayAspectWidth(const aValue: Cardinal);
  16908. procedure _SetdisplayAspectHeight(const aValue: Cardinal);
  16909. procedure _SetcolorSpace(const aValue: TJSVideoColorSpaceInit);
  16910. procedure _SethardwareAcceleration(const aValue: THardwareAcceleration);
  16911. procedure _SetoptimizeForLatency(const aValue: Boolean);
  16912. property codec: UnicodeString read _Getcodec write _Setcodec;
  16913. property description: TVideoDecoderConfig_description_Type read _Getdescription write _Setdescription;
  16914. property codedWidth: Cardinal read _GetcodedWidth write _SetcodedWidth;
  16915. property codedHeight: Cardinal read _GetcodedHeight write _SetcodedHeight;
  16916. property displayAspectWidth: Cardinal read _GetdisplayAspectWidth write _SetdisplayAspectWidth;
  16917. property displayAspectHeight: Cardinal read _GetdisplayAspectHeight write _SetdisplayAspectHeight;
  16918. property colorSpace: TJSVideoColorSpaceInit read _GetcolorSpace write _SetcolorSpace;
  16919. property hardwareAcceleration: THardwareAcceleration read _GethardwareAcceleration write _SethardwareAcceleration;
  16920. property optimizeForLatency: Boolean read _GetoptimizeForLatency write _SetoptimizeForLatency;
  16921. end;
  16922. TJSVideoDecoderConfig = class(TJSObject,IJSVideoDecoderConfig)
  16923. Protected
  16924. function _Getcodec: UnicodeString;
  16925. function _Getdescription: TVideoDecoderConfig_description_Type;
  16926. function _GetcodedWidth: Cardinal;
  16927. function _GetcodedHeight: Cardinal;
  16928. function _GetdisplayAspectWidth: Cardinal;
  16929. function _GetdisplayAspectHeight: Cardinal;
  16930. function _GetcolorSpace: TJSVideoColorSpaceInit;
  16931. function _GethardwareAcceleration: THardwareAcceleration;
  16932. function _GetoptimizeForLatency: Boolean;
  16933. procedure _Setcodec(const aValue: UnicodeString);
  16934. procedure _Setdescription(const aValue: TVideoDecoderConfig_description_Type);
  16935. procedure _SetcodedWidth(const aValue: Cardinal);
  16936. procedure _SetcodedHeight(const aValue: Cardinal);
  16937. procedure _SetdisplayAspectWidth(const aValue: Cardinal);
  16938. procedure _SetdisplayAspectHeight(const aValue: Cardinal);
  16939. procedure _SetcolorSpace(const aValue: TJSVideoColorSpaceInit);
  16940. procedure _SethardwareAcceleration(const aValue: THardwareAcceleration);
  16941. procedure _SetoptimizeForLatency(const aValue: Boolean);
  16942. Public
  16943. class function JSClassName: UnicodeString; override;
  16944. class function Cast(const Intf: IJSObject): IJSVideoDecoderConfig;
  16945. property codec: UnicodeString read _Getcodec write _Setcodec;
  16946. property description: TVideoDecoderConfig_description_Type read _Getdescription write _Setdescription;
  16947. property codedWidth: Cardinal read _GetcodedWidth write _SetcodedWidth;
  16948. property codedHeight: Cardinal read _GetcodedHeight write _SetcodedHeight;
  16949. property displayAspectWidth: Cardinal read _GetdisplayAspectWidth write _SetdisplayAspectWidth;
  16950. property displayAspectHeight: Cardinal read _GetdisplayAspectHeight write _SetdisplayAspectHeight;
  16951. property colorSpace: TJSVideoColorSpaceInit read _GetcolorSpace write _SetcolorSpace;
  16952. property hardwareAcceleration: THardwareAcceleration read _GethardwareAcceleration write _SethardwareAcceleration;
  16953. property optimizeForLatency: Boolean read _GetoptimizeForLatency write _SetoptimizeForLatency;
  16954. end;
  16955. { --------------------------------------------------------------------
  16956. TJSVideoEncoderInit
  16957. --------------------------------------------------------------------}
  16958. TJSVideoEncoderInitRec = record
  16959. output: TEncodedVideoChunkOutputCallback;
  16960. error: TWebCodecsErrorCallback;
  16961. end;
  16962. IJSVideoEncoderInit = interface(IJSObject)
  16963. ['{0E8BC0E4-696E-3DD7-A533-241C74BC299E}']
  16964. function _Getoutput: TEncodedVideoChunkOutputCallback;
  16965. function _Geterror: TWebCodecsErrorCallback;
  16966. procedure _Setoutput(const aValue: TEncodedVideoChunkOutputCallback);
  16967. procedure _Seterror(const aValue: TWebCodecsErrorCallback);
  16968. property output: TEncodedVideoChunkOutputCallback read _Getoutput write _Setoutput;
  16969. property error: TWebCodecsErrorCallback read _Geterror write _Seterror;
  16970. end;
  16971. TJSVideoEncoderInit = class(TJSObject,IJSVideoEncoderInit)
  16972. Protected
  16973. function _Getoutput: TEncodedVideoChunkOutputCallback;
  16974. function _Geterror: TWebCodecsErrorCallback;
  16975. procedure _Setoutput(const aValue: TEncodedVideoChunkOutputCallback);
  16976. procedure _Seterror(const aValue: TWebCodecsErrorCallback);
  16977. Public
  16978. class function JSClassName: UnicodeString; override;
  16979. class function Cast(const Intf: IJSObject): IJSVideoEncoderInit;
  16980. property output: TEncodedVideoChunkOutputCallback read _Getoutput write _Setoutput;
  16981. property error: TWebCodecsErrorCallback read _Geterror write _Seterror;
  16982. end;
  16983. { --------------------------------------------------------------------
  16984. TJSAvcEncoderConfig
  16985. --------------------------------------------------------------------}
  16986. TJSAvcEncoderConfigRec = record
  16987. format: TAvcBitstreamFormat;
  16988. end;
  16989. IJSAvcEncoderConfig = interface(IJSObject)
  16990. ['{84BA645C-685E-3F3D-9CF8-E403E8BAB3B9}']
  16991. function _Getformat: TAvcBitstreamFormat;
  16992. procedure _Setformat(const aValue: TAvcBitstreamFormat);
  16993. property format: TAvcBitstreamFormat read _Getformat write _Setformat;
  16994. end;
  16995. TJSAvcEncoderConfig = class(TJSObject,IJSAvcEncoderConfig)
  16996. Protected
  16997. function _Getformat: TAvcBitstreamFormat;
  16998. procedure _Setformat(const aValue: TAvcBitstreamFormat);
  16999. Public
  17000. class function JSClassName: UnicodeString; override;
  17001. class function Cast(const Intf: IJSObject): IJSAvcEncoderConfig;
  17002. property format: TAvcBitstreamFormat read _Getformat write _Setformat;
  17003. end;
  17004. { --------------------------------------------------------------------
  17005. TJSVideoEncoderConfig
  17006. --------------------------------------------------------------------}
  17007. TJSVideoEncoderConfigRec = record
  17008. codec: UnicodeString;
  17009. width: Cardinal;
  17010. height: Cardinal;
  17011. displayWidth: Cardinal;
  17012. displayHeight: Cardinal;
  17013. bitrate: QWord;
  17014. framerate: Double;
  17015. hardwareAcceleration: THardwareAcceleration;
  17016. alpha: TAlphaOption;
  17017. scalabilityMode: UnicodeString;
  17018. bitrateMode: TVideoEncoderBitrateMode;
  17019. latencyMode: TLatencyMode;
  17020. contentHint: UnicodeString;
  17021. avc: TJSAvcEncoderConfig;
  17022. end;
  17023. IJSVideoEncoderConfig = interface(IJSObject)
  17024. ['{A67F6801-0570-3636-9B70-16621073ACE0}']
  17025. function _Getcodec: UnicodeString;
  17026. function _Getwidth: Cardinal;
  17027. function _Getheight: Cardinal;
  17028. function _GetdisplayWidth: Cardinal;
  17029. function _GetdisplayHeight: Cardinal;
  17030. function _Getbitrate: QWord;
  17031. function _Getframerate: Double;
  17032. function _GethardwareAcceleration: THardwareAcceleration;
  17033. function _Getalpha: TAlphaOption;
  17034. function _GetscalabilityMode: UnicodeString;
  17035. function _GetbitrateMode: TVideoEncoderBitrateMode;
  17036. function _GetlatencyMode: TLatencyMode;
  17037. function _GetcontentHint: UnicodeString;
  17038. function _Getavc: TJSAvcEncoderConfig;
  17039. procedure _Setcodec(const aValue: UnicodeString);
  17040. procedure _Setwidth(const aValue: Cardinal);
  17041. procedure _Setheight(const aValue: Cardinal);
  17042. procedure _SetdisplayWidth(const aValue: Cardinal);
  17043. procedure _SetdisplayHeight(const aValue: Cardinal);
  17044. procedure _Setbitrate(const aValue: QWord);
  17045. procedure _Setframerate(const aValue: Double);
  17046. procedure _SethardwareAcceleration(const aValue: THardwareAcceleration);
  17047. procedure _Setalpha(const aValue: TAlphaOption);
  17048. procedure _SetscalabilityMode(const aValue: UnicodeString);
  17049. procedure _SetbitrateMode(const aValue: TVideoEncoderBitrateMode);
  17050. procedure _SetlatencyMode(const aValue: TLatencyMode);
  17051. procedure _SetcontentHint(const aValue: UnicodeString);
  17052. procedure _Setavc(const aValue: TJSAvcEncoderConfig);
  17053. property codec: UnicodeString read _Getcodec write _Setcodec;
  17054. property width: Cardinal read _Getwidth write _Setwidth;
  17055. property height: Cardinal read _Getheight write _Setheight;
  17056. property displayWidth: Cardinal read _GetdisplayWidth write _SetdisplayWidth;
  17057. property displayHeight: Cardinal read _GetdisplayHeight write _SetdisplayHeight;
  17058. property bitrate: QWord read _Getbitrate write _Setbitrate;
  17059. property framerate: Double read _Getframerate write _Setframerate;
  17060. property hardwareAcceleration: THardwareAcceleration read _GethardwareAcceleration write _SethardwareAcceleration;
  17061. property alpha: TAlphaOption read _Getalpha write _Setalpha;
  17062. property scalabilityMode: UnicodeString read _GetscalabilityMode write _SetscalabilityMode;
  17063. property bitrateMode: TVideoEncoderBitrateMode read _GetbitrateMode write _SetbitrateMode;
  17064. property latencyMode: TLatencyMode read _GetlatencyMode write _SetlatencyMode;
  17065. property contentHint: UnicodeString read _GetcontentHint write _SetcontentHint;
  17066. property avc: TJSAvcEncoderConfig read _Getavc write _Setavc;
  17067. end;
  17068. TJSVideoEncoderConfig = class(TJSObject,IJSVideoEncoderConfig)
  17069. Protected
  17070. function _Getcodec: UnicodeString;
  17071. function _Getwidth: Cardinal;
  17072. function _Getheight: Cardinal;
  17073. function _GetdisplayWidth: Cardinal;
  17074. function _GetdisplayHeight: Cardinal;
  17075. function _Getbitrate: QWord;
  17076. function _Getframerate: Double;
  17077. function _GethardwareAcceleration: THardwareAcceleration;
  17078. function _Getalpha: TAlphaOption;
  17079. function _GetscalabilityMode: UnicodeString;
  17080. function _GetbitrateMode: TVideoEncoderBitrateMode;
  17081. function _GetlatencyMode: TLatencyMode;
  17082. function _GetcontentHint: UnicodeString;
  17083. function _Getavc: TJSAvcEncoderConfig;
  17084. procedure _Setcodec(const aValue: UnicodeString);
  17085. procedure _Setwidth(const aValue: Cardinal);
  17086. procedure _Setheight(const aValue: Cardinal);
  17087. procedure _SetdisplayWidth(const aValue: Cardinal);
  17088. procedure _SetdisplayHeight(const aValue: Cardinal);
  17089. procedure _Setbitrate(const aValue: QWord);
  17090. procedure _Setframerate(const aValue: Double);
  17091. procedure _SethardwareAcceleration(const aValue: THardwareAcceleration);
  17092. procedure _Setalpha(const aValue: TAlphaOption);
  17093. procedure _SetscalabilityMode(const aValue: UnicodeString);
  17094. procedure _SetbitrateMode(const aValue: TVideoEncoderBitrateMode);
  17095. procedure _SetlatencyMode(const aValue: TLatencyMode);
  17096. procedure _SetcontentHint(const aValue: UnicodeString);
  17097. procedure _Setavc(const aValue: TJSAvcEncoderConfig);
  17098. Public
  17099. class function JSClassName: UnicodeString; override;
  17100. class function Cast(const Intf: IJSObject): IJSVideoEncoderConfig;
  17101. property codec: UnicodeString read _Getcodec write _Setcodec;
  17102. property width: Cardinal read _Getwidth write _Setwidth;
  17103. property height: Cardinal read _Getheight write _Setheight;
  17104. property displayWidth: Cardinal read _GetdisplayWidth write _SetdisplayWidth;
  17105. property displayHeight: Cardinal read _GetdisplayHeight write _SetdisplayHeight;
  17106. property bitrate: QWord read _Getbitrate write _Setbitrate;
  17107. property framerate: Double read _Getframerate write _Setframerate;
  17108. property hardwareAcceleration: THardwareAcceleration read _GethardwareAcceleration write _SethardwareAcceleration;
  17109. property alpha: TAlphaOption read _Getalpha write _Setalpha;
  17110. property scalabilityMode: UnicodeString read _GetscalabilityMode write _SetscalabilityMode;
  17111. property bitrateMode: TVideoEncoderBitrateMode read _GetbitrateMode write _SetbitrateMode;
  17112. property latencyMode: TLatencyMode read _GetlatencyMode write _SetlatencyMode;
  17113. property contentHint: UnicodeString read _GetcontentHint write _SetcontentHint;
  17114. property avc: TJSAvcEncoderConfig read _Getavc write _Setavc;
  17115. end;
  17116. { --------------------------------------------------------------------
  17117. TJSVideoEncoderEncodeOptions
  17118. --------------------------------------------------------------------}
  17119. TJSVideoEncoderEncodeOptionsRec = record
  17120. keyFrame: Boolean;
  17121. avc: TJSVideoEncoderEncodeOptionsForAvc;
  17122. end;
  17123. IJSVideoEncoderEncodeOptions = interface(IJSObject)
  17124. ['{D3FEAF00-2DC7-3340-8FD7-61FB886FA9B9}']
  17125. function _GetkeyFrame: Boolean;
  17126. function _Getavc: TJSVideoEncoderEncodeOptionsForAvc;
  17127. procedure _SetkeyFrame(const aValue: Boolean);
  17128. procedure _Setavc(const aValue: TJSVideoEncoderEncodeOptionsForAvc);
  17129. property keyFrame: Boolean read _GetkeyFrame write _SetkeyFrame;
  17130. property avc: TJSVideoEncoderEncodeOptionsForAvc read _Getavc write _Setavc;
  17131. end;
  17132. TJSVideoEncoderEncodeOptions = class(TJSObject,IJSVideoEncoderEncodeOptions)
  17133. Protected
  17134. function _GetkeyFrame: Boolean;
  17135. function _Getavc: TJSVideoEncoderEncodeOptionsForAvc;
  17136. procedure _SetkeyFrame(const aValue: Boolean);
  17137. procedure _Setavc(const aValue: TJSVideoEncoderEncodeOptionsForAvc);
  17138. Public
  17139. class function JSClassName: UnicodeString; override;
  17140. class function Cast(const Intf: IJSObject): IJSVideoEncoderEncodeOptions;
  17141. property keyFrame: Boolean read _GetkeyFrame write _SetkeyFrame;
  17142. property avc: TJSVideoEncoderEncodeOptionsForAvc read _Getavc write _Setavc;
  17143. end;
  17144. { --------------------------------------------------------------------
  17145. TJSVideoEncoderEncodeOptionsForAvc
  17146. --------------------------------------------------------------------}
  17147. TJSVideoEncoderEncodeOptionsForAvcRec = record
  17148. quantizer: Word;
  17149. end;
  17150. IJSVideoEncoderEncodeOptionsForAvc = interface(IJSObject)
  17151. ['{521E32F0-3791-3E08-BD1B-FAE58B13D9C9}']
  17152. function _Getquantizer: Word;
  17153. procedure _Setquantizer(const aValue: Word);
  17154. property quantizer: Word read _Getquantizer write _Setquantizer;
  17155. end;
  17156. TJSVideoEncoderEncodeOptionsForAvc = class(TJSObject,IJSVideoEncoderEncodeOptionsForAvc)
  17157. Protected
  17158. function _Getquantizer: Word;
  17159. procedure _Setquantizer(const aValue: Word);
  17160. Public
  17161. class function JSClassName: UnicodeString; override;
  17162. class function Cast(const Intf: IJSObject): IJSVideoEncoderEncodeOptionsForAvc;
  17163. property quantizer: Word read _Getquantizer write _Setquantizer;
  17164. end;
  17165. { --------------------------------------------------------------------
  17166. TJSVideoEncoderSupport
  17167. --------------------------------------------------------------------}
  17168. TJSVideoEncoderSupportRec = record
  17169. supported: Boolean;
  17170. config: TJSVideoEncoderConfig;
  17171. end;
  17172. IJSVideoEncoderSupport = interface(IJSObject)
  17173. ['{41DDBDD9-2531-31F8-A4FD-D23A5FB7D06D}']
  17174. function _Getsupported: Boolean;
  17175. function _Getconfig: TJSVideoEncoderConfig;
  17176. procedure _Setsupported(const aValue: Boolean);
  17177. procedure _Setconfig(const aValue: TJSVideoEncoderConfig);
  17178. property supported: Boolean read _Getsupported write _Setsupported;
  17179. property config: TJSVideoEncoderConfig read _Getconfig write _Setconfig;
  17180. end;
  17181. TJSVideoEncoderSupport = class(TJSObject,IJSVideoEncoderSupport)
  17182. Protected
  17183. function _Getsupported: Boolean;
  17184. function _Getconfig: TJSVideoEncoderConfig;
  17185. procedure _Setsupported(const aValue: Boolean);
  17186. procedure _Setconfig(const aValue: TJSVideoEncoderConfig);
  17187. Public
  17188. class function JSClassName: UnicodeString; override;
  17189. class function Cast(const Intf: IJSObject): IJSVideoEncoderSupport;
  17190. property supported: Boolean read _Getsupported write _Setsupported;
  17191. property config: TJSVideoEncoderConfig read _Getconfig write _Setconfig;
  17192. end;
  17193. { --------------------------------------------------------------------
  17194. TJSEncodedVideoChunkMetadata
  17195. --------------------------------------------------------------------}
  17196. TJSEncodedVideoChunkMetadataRec = record
  17197. decoderConfig: TJSVideoDecoderConfig;
  17198. svc: TJSSvcOutputMetadata;
  17199. end;
  17200. IJSEncodedVideoChunkMetadata = interface(IJSObject)
  17201. ['{5EE78293-A253-3F79-8894-A106EBC7168D}']
  17202. function _GetdecoderConfig: TJSVideoDecoderConfig;
  17203. function _Getsvc: TJSSvcOutputMetadata;
  17204. procedure _SetdecoderConfig(const aValue: TJSVideoDecoderConfig);
  17205. procedure _Setsvc(const aValue: TJSSvcOutputMetadata);
  17206. property decoderConfig: TJSVideoDecoderConfig read _GetdecoderConfig write _SetdecoderConfig;
  17207. property svc: TJSSvcOutputMetadata read _Getsvc write _Setsvc;
  17208. end;
  17209. TJSEncodedVideoChunkMetadata = class(TJSObject,IJSEncodedVideoChunkMetadata)
  17210. Protected
  17211. function _GetdecoderConfig: TJSVideoDecoderConfig;
  17212. function _Getsvc: TJSSvcOutputMetadata;
  17213. procedure _SetdecoderConfig(const aValue: TJSVideoDecoderConfig);
  17214. procedure _Setsvc(const aValue: TJSSvcOutputMetadata);
  17215. Public
  17216. class function JSClassName: UnicodeString; override;
  17217. class function Cast(const Intf: IJSObject): IJSEncodedVideoChunkMetadata;
  17218. property decoderConfig: TJSVideoDecoderConfig read _GetdecoderConfig write _SetdecoderConfig;
  17219. property svc: TJSSvcOutputMetadata read _Getsvc write _Setsvc;
  17220. end;
  17221. { --------------------------------------------------------------------
  17222. TJSSvcOutputMetadata
  17223. --------------------------------------------------------------------}
  17224. TJSSvcOutputMetadataRec = record
  17225. temporalLayerId: Cardinal;
  17226. end;
  17227. IJSSvcOutputMetadata = interface(IJSObject)
  17228. ['{71BB949F-BFD6-387B-8716-8C04FD050537}']
  17229. function _GettemporalLayerId: Cardinal;
  17230. procedure _SettemporalLayerId(const aValue: Cardinal);
  17231. property temporalLayerId: Cardinal read _GettemporalLayerId write _SettemporalLayerId;
  17232. end;
  17233. TJSSvcOutputMetadata = class(TJSObject,IJSSvcOutputMetadata)
  17234. Protected
  17235. function _GettemporalLayerId: Cardinal;
  17236. procedure _SettemporalLayerId(const aValue: Cardinal);
  17237. Public
  17238. class function JSClassName: UnicodeString; override;
  17239. class function Cast(const Intf: IJSObject): IJSSvcOutputMetadata;
  17240. property temporalLayerId: Cardinal read _GettemporalLayerId write _SettemporalLayerId;
  17241. end;
  17242. { --------------------------------------------------------------------
  17243. TJSVideoFrameInit
  17244. --------------------------------------------------------------------}
  17245. TJSVideoFrameInitRec = record
  17246. duration: QWord;
  17247. timestamp: Int64;
  17248. alpha: TAlphaOption;
  17249. visibleRect: TJSDOMRectInit;
  17250. displayWidth: Cardinal;
  17251. displayHeight: Cardinal;
  17252. end;
  17253. IJSVideoFrameInit = interface(IJSObject)
  17254. ['{2F558967-CA42-3BBB-977A-7C8716577025}']
  17255. function _Getduration: QWord;
  17256. function _Gettimestamp: Int64;
  17257. function _Getalpha: TAlphaOption;
  17258. function _GetvisibleRect: TJSDOMRectInit;
  17259. function _GetdisplayWidth: Cardinal;
  17260. function _GetdisplayHeight: Cardinal;
  17261. procedure _Setduration(const aValue: QWord);
  17262. procedure _Settimestamp(const aValue: Int64);
  17263. procedure _Setalpha(const aValue: TAlphaOption);
  17264. procedure _SetvisibleRect(const aValue: TJSDOMRectInit);
  17265. procedure _SetdisplayWidth(const aValue: Cardinal);
  17266. procedure _SetdisplayHeight(const aValue: Cardinal);
  17267. property duration: QWord read _Getduration write _Setduration;
  17268. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  17269. property alpha: TAlphaOption read _Getalpha write _Setalpha;
  17270. property visibleRect: TJSDOMRectInit read _GetvisibleRect write _SetvisibleRect;
  17271. property displayWidth: Cardinal read _GetdisplayWidth write _SetdisplayWidth;
  17272. property displayHeight: Cardinal read _GetdisplayHeight write _SetdisplayHeight;
  17273. end;
  17274. TJSVideoFrameInit = class(TJSObject,IJSVideoFrameInit)
  17275. Protected
  17276. function _Getduration: QWord;
  17277. function _Gettimestamp: Int64;
  17278. function _Getalpha: TAlphaOption;
  17279. function _GetvisibleRect: TJSDOMRectInit;
  17280. function _GetdisplayWidth: Cardinal;
  17281. function _GetdisplayHeight: Cardinal;
  17282. procedure _Setduration(const aValue: QWord);
  17283. procedure _Settimestamp(const aValue: Int64);
  17284. procedure _Setalpha(const aValue: TAlphaOption);
  17285. procedure _SetvisibleRect(const aValue: TJSDOMRectInit);
  17286. procedure _SetdisplayWidth(const aValue: Cardinal);
  17287. procedure _SetdisplayHeight(const aValue: Cardinal);
  17288. Public
  17289. class function JSClassName: UnicodeString; override;
  17290. class function Cast(const Intf: IJSObject): IJSVideoFrameInit;
  17291. property duration: QWord read _Getduration write _Setduration;
  17292. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  17293. property alpha: TAlphaOption read _Getalpha write _Setalpha;
  17294. property visibleRect: TJSDOMRectInit read _GetvisibleRect write _SetvisibleRect;
  17295. property displayWidth: Cardinal read _GetdisplayWidth write _SetdisplayWidth;
  17296. property displayHeight: Cardinal read _GetdisplayHeight write _SetdisplayHeight;
  17297. end;
  17298. { --------------------------------------------------------------------
  17299. TJSVideoFrameBufferInit
  17300. --------------------------------------------------------------------}
  17301. TJSPlaneLayoutDynArray = IJSArray; // array of PlaneLayout
  17302. TJSVideoFrameBufferInitRec = record
  17303. format: TVideoPixelFormat;
  17304. codedWidth: Cardinal;
  17305. codedHeight: Cardinal;
  17306. timestamp: Int64;
  17307. duration: QWord;
  17308. layout: TJSPlaneLayoutDynArray;
  17309. visibleRect: TJSDOMRectInit;
  17310. displayWidth: Cardinal;
  17311. displayHeight: Cardinal;
  17312. colorSpace: TJSVideoColorSpaceInit;
  17313. end;
  17314. IJSVideoFrameBufferInit = interface(IJSObject)
  17315. ['{0D805B2A-88DE-3454-B171-22998A49AE94}']
  17316. function _Getformat: TVideoPixelFormat;
  17317. function _GetcodedWidth: Cardinal;
  17318. function _GetcodedHeight: Cardinal;
  17319. function _Gettimestamp: Int64;
  17320. function _Getduration: QWord;
  17321. function _Getlayout: TJSPlaneLayoutDynArray;
  17322. function _GetvisibleRect: TJSDOMRectInit;
  17323. function _GetdisplayWidth: Cardinal;
  17324. function _GetdisplayHeight: Cardinal;
  17325. function _GetcolorSpace: TJSVideoColorSpaceInit;
  17326. procedure _Setformat(const aValue: TVideoPixelFormat);
  17327. procedure _SetcodedWidth(const aValue: Cardinal);
  17328. procedure _SetcodedHeight(const aValue: Cardinal);
  17329. procedure _Settimestamp(const aValue: Int64);
  17330. procedure _Setduration(const aValue: QWord);
  17331. procedure _Setlayout(const aValue: TJSPlaneLayoutDynArray);
  17332. procedure _SetvisibleRect(const aValue: TJSDOMRectInit);
  17333. procedure _SetdisplayWidth(const aValue: Cardinal);
  17334. procedure _SetdisplayHeight(const aValue: Cardinal);
  17335. procedure _SetcolorSpace(const aValue: TJSVideoColorSpaceInit);
  17336. property format: TVideoPixelFormat read _Getformat write _Setformat;
  17337. property codedWidth: Cardinal read _GetcodedWidth write _SetcodedWidth;
  17338. property codedHeight: Cardinal read _GetcodedHeight write _SetcodedHeight;
  17339. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  17340. property duration: QWord read _Getduration write _Setduration;
  17341. property layout: TJSPlaneLayoutDynArray read _Getlayout write _Setlayout;
  17342. property visibleRect: TJSDOMRectInit read _GetvisibleRect write _SetvisibleRect;
  17343. property displayWidth: Cardinal read _GetdisplayWidth write _SetdisplayWidth;
  17344. property displayHeight: Cardinal read _GetdisplayHeight write _SetdisplayHeight;
  17345. property colorSpace: TJSVideoColorSpaceInit read _GetcolorSpace write _SetcolorSpace;
  17346. end;
  17347. TJSVideoFrameBufferInit = class(TJSObject,IJSVideoFrameBufferInit)
  17348. Protected
  17349. function _Getformat: TVideoPixelFormat;
  17350. function _GetcodedWidth: Cardinal;
  17351. function _GetcodedHeight: Cardinal;
  17352. function _Gettimestamp: Int64;
  17353. function _Getduration: QWord;
  17354. function _Getlayout: TJSPlaneLayoutDynArray;
  17355. function _GetvisibleRect: TJSDOMRectInit;
  17356. function _GetdisplayWidth: Cardinal;
  17357. function _GetdisplayHeight: Cardinal;
  17358. function _GetcolorSpace: TJSVideoColorSpaceInit;
  17359. procedure _Setformat(const aValue: TVideoPixelFormat);
  17360. procedure _SetcodedWidth(const aValue: Cardinal);
  17361. procedure _SetcodedHeight(const aValue: Cardinal);
  17362. procedure _Settimestamp(const aValue: Int64);
  17363. procedure _Setduration(const aValue: QWord);
  17364. procedure _Setlayout(const aValue: TJSPlaneLayoutDynArray);
  17365. procedure _SetvisibleRect(const aValue: TJSDOMRectInit);
  17366. procedure _SetdisplayWidth(const aValue: Cardinal);
  17367. procedure _SetdisplayHeight(const aValue: Cardinal);
  17368. procedure _SetcolorSpace(const aValue: TJSVideoColorSpaceInit);
  17369. Public
  17370. class function JSClassName: UnicodeString; override;
  17371. class function Cast(const Intf: IJSObject): IJSVideoFrameBufferInit;
  17372. property format: TVideoPixelFormat read _Getformat write _Setformat;
  17373. property codedWidth: Cardinal read _GetcodedWidth write _SetcodedWidth;
  17374. property codedHeight: Cardinal read _GetcodedHeight write _SetcodedHeight;
  17375. property timestamp: Int64 read _Gettimestamp write _Settimestamp;
  17376. property duration: QWord read _Getduration write _Setduration;
  17377. property layout: TJSPlaneLayoutDynArray read _Getlayout write _Setlayout;
  17378. property visibleRect: TJSDOMRectInit read _GetvisibleRect write _SetvisibleRect;
  17379. property displayWidth: Cardinal read _GetdisplayWidth write _SetdisplayWidth;
  17380. property displayHeight: Cardinal read _GetdisplayHeight write _SetdisplayHeight;
  17381. property colorSpace: TJSVideoColorSpaceInit read _GetcolorSpace write _SetcolorSpace;
  17382. end;
  17383. { --------------------------------------------------------------------
  17384. TJSVideoFrameCopyToOptions
  17385. --------------------------------------------------------------------}
  17386. TJSVideoFrameCopyToOptionsRec = record
  17387. rect: TJSDOMRectInit;
  17388. layout: TJSPlaneLayoutDynArray;
  17389. end;
  17390. IJSVideoFrameCopyToOptions = interface(IJSObject)
  17391. ['{4D7D9AFB-3D20-391B-A2B5-4237C9B1E2EC}']
  17392. function _Getrect: TJSDOMRectInit;
  17393. function _Getlayout: TJSPlaneLayoutDynArray;
  17394. procedure _Setrect(const aValue: TJSDOMRectInit);
  17395. procedure _Setlayout(const aValue: TJSPlaneLayoutDynArray);
  17396. property rect: TJSDOMRectInit read _Getrect write _Setrect;
  17397. property layout: TJSPlaneLayoutDynArray read _Getlayout write _Setlayout;
  17398. end;
  17399. TJSVideoFrameCopyToOptions = class(TJSObject,IJSVideoFrameCopyToOptions)
  17400. Protected
  17401. function _Getrect: TJSDOMRectInit;
  17402. function _Getlayout: TJSPlaneLayoutDynArray;
  17403. procedure _Setrect(const aValue: TJSDOMRectInit);
  17404. procedure _Setlayout(const aValue: TJSPlaneLayoutDynArray);
  17405. Public
  17406. class function JSClassName: UnicodeString; override;
  17407. class function Cast(const Intf: IJSObject): IJSVideoFrameCopyToOptions;
  17408. property rect: TJSDOMRectInit read _Getrect write _Setrect;
  17409. property layout: TJSPlaneLayoutDynArray read _Getlayout write _Setlayout;
  17410. end;
  17411. { --------------------------------------------------------------------
  17412. TJSPlaneLayout
  17413. --------------------------------------------------------------------}
  17414. TJSPlaneLayoutRec = record
  17415. offset: Cardinal;
  17416. stride: Cardinal;
  17417. end;
  17418. IJSPlaneLayout = interface(IJSObject)
  17419. ['{3EE08CD3-8E85-3C5F-8386-86AD3028CB40}']
  17420. function _Getoffset: Cardinal;
  17421. function _Getstride: Cardinal;
  17422. procedure _Setoffset(const aValue: Cardinal);
  17423. procedure _Setstride(const aValue: Cardinal);
  17424. property offset: Cardinal read _Getoffset write _Setoffset;
  17425. property stride: Cardinal read _Getstride write _Setstride;
  17426. end;
  17427. TJSPlaneLayout = class(TJSObject,IJSPlaneLayout)
  17428. Protected
  17429. function _Getoffset: Cardinal;
  17430. function _Getstride: Cardinal;
  17431. procedure _Setoffset(const aValue: Cardinal);
  17432. procedure _Setstride(const aValue: Cardinal);
  17433. Public
  17434. class function JSClassName: UnicodeString; override;
  17435. class function Cast(const Intf: IJSObject): IJSPlaneLayout;
  17436. property offset: Cardinal read _Getoffset write _Setoffset;
  17437. property stride: Cardinal read _Getstride write _Setstride;
  17438. end;
  17439. { --------------------------------------------------------------------
  17440. TJSVRLayer
  17441. --------------------------------------------------------------------}
  17442. TSingleDynArray = IJSArray; // array of float
  17443. TJSVRLayerRec = record
  17444. source: TJSHTMLCanvasElement;
  17445. leftBounds: TSingleDynArray;
  17446. rightBounds: TSingleDynArray;
  17447. end;
  17448. IJSVRLayer = interface(IJSObject)
  17449. ['{16E14DB3-D9CE-3ACC-B3C9-66CB7FC29B51}']
  17450. function _Getsource: IJSHTMLCanvasElement;
  17451. function _GetleftBounds: TSingleDynArray;
  17452. function _GetrightBounds: TSingleDynArray;
  17453. procedure _Setsource(const aValue: IJSHTMLCanvasElement);
  17454. procedure _SetleftBounds(const aValue: TSingleDynArray);
  17455. procedure _SetrightBounds(const aValue: TSingleDynArray);
  17456. property source: IJSHTMLCanvasElement read _Getsource write _Setsource;
  17457. property leftBounds: TSingleDynArray read _GetleftBounds write _SetleftBounds;
  17458. property rightBounds: TSingleDynArray read _GetrightBounds write _SetrightBounds;
  17459. end;
  17460. TJSVRLayer = class(TJSObject,IJSVRLayer)
  17461. Protected
  17462. function _Getsource: IJSHTMLCanvasElement;
  17463. function _GetleftBounds: TSingleDynArray;
  17464. function _GetrightBounds: TSingleDynArray;
  17465. procedure _Setsource(const aValue: IJSHTMLCanvasElement);
  17466. procedure _SetleftBounds(const aValue: TSingleDynArray);
  17467. procedure _SetrightBounds(const aValue: TSingleDynArray);
  17468. Public
  17469. class function JSClassName: UnicodeString; override;
  17470. class function Cast(const Intf: IJSObject): IJSVRLayer;
  17471. property source: IJSHTMLCanvasElement read _Getsource write _Setsource;
  17472. property leftBounds: TSingleDynArray read _GetleftBounds write _SetleftBounds;
  17473. property rightBounds: TSingleDynArray read _GetrightBounds write _SetrightBounds;
  17474. end;
  17475. { --------------------------------------------------------------------
  17476. TJSRegistrationResponseJSON
  17477. --------------------------------------------------------------------}
  17478. TJSRegistrationResponseJSONRec = record
  17479. id: TBase64URLString;
  17480. rawId: TBase64URLString;
  17481. response: TJSAuthenticatorAttestationResponseJSON;
  17482. authenticatorAttachment: UnicodeString;
  17483. clientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON;
  17484. type_: UnicodeString;
  17485. end;
  17486. IJSRegistrationResponseJSON = interface(IJSObject)
  17487. ['{86FBDF85-171A-334B-B8CD-CB14053EC1F8}']
  17488. function _Getid: TBase64URLString;
  17489. function _GetrawId: TBase64URLString;
  17490. function _Getresponse: TJSAuthenticatorAttestationResponseJSON;
  17491. function _GetauthenticatorAttachment: UnicodeString;
  17492. function _GetclientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON;
  17493. function _Gettype_: UnicodeString;
  17494. procedure _Setid(const aValue: TBase64URLString);
  17495. procedure _SetrawId(const aValue: TBase64URLString);
  17496. procedure _Setresponse(const aValue: TJSAuthenticatorAttestationResponseJSON);
  17497. procedure _SetauthenticatorAttachment(const aValue: UnicodeString);
  17498. procedure _SetclientExtensionResults(const aValue: TJSAuthenticationExtensionsClientOutputsJSON);
  17499. procedure _Settype_(const aValue: UnicodeString);
  17500. property id: TBase64URLString read _Getid write _Setid;
  17501. property rawId: TBase64URLString read _GetrawId write _SetrawId;
  17502. property response: TJSAuthenticatorAttestationResponseJSON read _Getresponse write _Setresponse;
  17503. property authenticatorAttachment: UnicodeString read _GetauthenticatorAttachment write _SetauthenticatorAttachment;
  17504. property clientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON read _GetclientExtensionResults write _SetclientExtensionResults;
  17505. property type_: UnicodeString read _Gettype_ write _Settype_;
  17506. end;
  17507. TJSRegistrationResponseJSON = class(TJSObject,IJSRegistrationResponseJSON)
  17508. Protected
  17509. function _Getid: TBase64URLString;
  17510. function _GetrawId: TBase64URLString;
  17511. function _Getresponse: TJSAuthenticatorAttestationResponseJSON;
  17512. function _GetauthenticatorAttachment: UnicodeString;
  17513. function _GetclientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON;
  17514. function _Gettype_: UnicodeString;
  17515. procedure _Setid(const aValue: TBase64URLString);
  17516. procedure _SetrawId(const aValue: TBase64URLString);
  17517. procedure _Setresponse(const aValue: TJSAuthenticatorAttestationResponseJSON);
  17518. procedure _SetauthenticatorAttachment(const aValue: UnicodeString);
  17519. procedure _SetclientExtensionResults(const aValue: TJSAuthenticationExtensionsClientOutputsJSON);
  17520. procedure _Settype_(const aValue: UnicodeString);
  17521. Public
  17522. class function JSClassName: UnicodeString; override;
  17523. class function Cast(const Intf: IJSObject): IJSRegistrationResponseJSON;
  17524. property id: TBase64URLString read _Getid write _Setid;
  17525. property rawId: TBase64URLString read _GetrawId write _SetrawId;
  17526. property response: TJSAuthenticatorAttestationResponseJSON read _Getresponse write _Setresponse;
  17527. property authenticatorAttachment: UnicodeString read _GetauthenticatorAttachment write _SetauthenticatorAttachment;
  17528. property clientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON read _GetclientExtensionResults write _SetclientExtensionResults;
  17529. property type_: UnicodeString read _Gettype_ write _Settype_;
  17530. end;
  17531. { --------------------------------------------------------------------
  17532. TJSAuthenticatorAttestationResponseJSON
  17533. --------------------------------------------------------------------}
  17534. TJSAuthenticatorAttestationResponseJSONRec = record
  17535. clientDataJSON: TBase64URLString;
  17536. authenticatorData: TBase64URLString;
  17537. transports: TUnicodeStringDynArray;
  17538. publicKey: TBase64URLString;
  17539. publicKeyAlgorithm: Int64;
  17540. attestationObject: TBase64URLString;
  17541. end;
  17542. IJSAuthenticatorAttestationResponseJSON = interface(IJSObject)
  17543. ['{12CA6E76-E519-3E35-965C-F65C8F1E670E}']
  17544. function _GetclientDataJSON: TBase64URLString;
  17545. function _GetauthenticatorData: TBase64URLString;
  17546. function _Gettransports: TUnicodeStringDynArray;
  17547. function _GetpublicKey: TBase64URLString;
  17548. function _GetpublicKeyAlgorithm: Int64;
  17549. function _GetattestationObject: TBase64URLString;
  17550. procedure _SetclientDataJSON(const aValue: TBase64URLString);
  17551. procedure _SetauthenticatorData(const aValue: TBase64URLString);
  17552. procedure _Settransports(const aValue: TUnicodeStringDynArray);
  17553. procedure _SetpublicKey(const aValue: TBase64URLString);
  17554. procedure _SetpublicKeyAlgorithm(const aValue: Int64);
  17555. procedure _SetattestationObject(const aValue: TBase64URLString);
  17556. property clientDataJSON: TBase64URLString read _GetclientDataJSON write _SetclientDataJSON;
  17557. property authenticatorData: TBase64URLString read _GetauthenticatorData write _SetauthenticatorData;
  17558. property transports: TUnicodeStringDynArray read _Gettransports write _Settransports;
  17559. property publicKey: TBase64URLString read _GetpublicKey write _SetpublicKey;
  17560. property publicKeyAlgorithm: Int64 read _GetpublicKeyAlgorithm write _SetpublicKeyAlgorithm;
  17561. property attestationObject: TBase64URLString read _GetattestationObject write _SetattestationObject;
  17562. end;
  17563. TJSAuthenticatorAttestationResponseJSON = class(TJSObject,IJSAuthenticatorAttestationResponseJSON)
  17564. Protected
  17565. function _GetclientDataJSON: TBase64URLString;
  17566. function _GetauthenticatorData: TBase64URLString;
  17567. function _Gettransports: TUnicodeStringDynArray;
  17568. function _GetpublicKey: TBase64URLString;
  17569. function _GetpublicKeyAlgorithm: Int64;
  17570. function _GetattestationObject: TBase64URLString;
  17571. procedure _SetclientDataJSON(const aValue: TBase64URLString);
  17572. procedure _SetauthenticatorData(const aValue: TBase64URLString);
  17573. procedure _Settransports(const aValue: TUnicodeStringDynArray);
  17574. procedure _SetpublicKey(const aValue: TBase64URLString);
  17575. procedure _SetpublicKeyAlgorithm(const aValue: Int64);
  17576. procedure _SetattestationObject(const aValue: TBase64URLString);
  17577. Public
  17578. class function JSClassName: UnicodeString; override;
  17579. class function Cast(const Intf: IJSObject): IJSAuthenticatorAttestationResponseJSON;
  17580. property clientDataJSON: TBase64URLString read _GetclientDataJSON write _SetclientDataJSON;
  17581. property authenticatorData: TBase64URLString read _GetauthenticatorData write _SetauthenticatorData;
  17582. property transports: TUnicodeStringDynArray read _Gettransports write _Settransports;
  17583. property publicKey: TBase64URLString read _GetpublicKey write _SetpublicKey;
  17584. property publicKeyAlgorithm: Int64 read _GetpublicKeyAlgorithm write _SetpublicKeyAlgorithm;
  17585. property attestationObject: TBase64URLString read _GetattestationObject write _SetattestationObject;
  17586. end;
  17587. { --------------------------------------------------------------------
  17588. TJSAuthenticationResponseJSON
  17589. --------------------------------------------------------------------}
  17590. TJSAuthenticationResponseJSONRec = record
  17591. id: TBase64URLString;
  17592. rawId: TBase64URLString;
  17593. response: TJSAuthenticatorAssertionResponseJSON;
  17594. authenticatorAttachment: UnicodeString;
  17595. clientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON;
  17596. type_: UnicodeString;
  17597. end;
  17598. IJSAuthenticationResponseJSON = interface(IJSObject)
  17599. ['{9472FBBC-BA29-3A37-8FAA-ADED41BDCAB0}']
  17600. function _Getid: TBase64URLString;
  17601. function _GetrawId: TBase64URLString;
  17602. function _Getresponse: TJSAuthenticatorAssertionResponseJSON;
  17603. function _GetauthenticatorAttachment: UnicodeString;
  17604. function _GetclientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON;
  17605. function _Gettype_: UnicodeString;
  17606. procedure _Setid(const aValue: TBase64URLString);
  17607. procedure _SetrawId(const aValue: TBase64URLString);
  17608. procedure _Setresponse(const aValue: TJSAuthenticatorAssertionResponseJSON);
  17609. procedure _SetauthenticatorAttachment(const aValue: UnicodeString);
  17610. procedure _SetclientExtensionResults(const aValue: TJSAuthenticationExtensionsClientOutputsJSON);
  17611. procedure _Settype_(const aValue: UnicodeString);
  17612. property id: TBase64URLString read _Getid write _Setid;
  17613. property rawId: TBase64URLString read _GetrawId write _SetrawId;
  17614. property response: TJSAuthenticatorAssertionResponseJSON read _Getresponse write _Setresponse;
  17615. property authenticatorAttachment: UnicodeString read _GetauthenticatorAttachment write _SetauthenticatorAttachment;
  17616. property clientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON read _GetclientExtensionResults write _SetclientExtensionResults;
  17617. property type_: UnicodeString read _Gettype_ write _Settype_;
  17618. end;
  17619. TJSAuthenticationResponseJSON = class(TJSObject,IJSAuthenticationResponseJSON)
  17620. Protected
  17621. function _Getid: TBase64URLString;
  17622. function _GetrawId: TBase64URLString;
  17623. function _Getresponse: TJSAuthenticatorAssertionResponseJSON;
  17624. function _GetauthenticatorAttachment: UnicodeString;
  17625. function _GetclientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON;
  17626. function _Gettype_: UnicodeString;
  17627. procedure _Setid(const aValue: TBase64URLString);
  17628. procedure _SetrawId(const aValue: TBase64URLString);
  17629. procedure _Setresponse(const aValue: TJSAuthenticatorAssertionResponseJSON);
  17630. procedure _SetauthenticatorAttachment(const aValue: UnicodeString);
  17631. procedure _SetclientExtensionResults(const aValue: TJSAuthenticationExtensionsClientOutputsJSON);
  17632. procedure _Settype_(const aValue: UnicodeString);
  17633. Public
  17634. class function JSClassName: UnicodeString; override;
  17635. class function Cast(const Intf: IJSObject): IJSAuthenticationResponseJSON;
  17636. property id: TBase64URLString read _Getid write _Setid;
  17637. property rawId: TBase64URLString read _GetrawId write _SetrawId;
  17638. property response: TJSAuthenticatorAssertionResponseJSON read _Getresponse write _Setresponse;
  17639. property authenticatorAttachment: UnicodeString read _GetauthenticatorAttachment write _SetauthenticatorAttachment;
  17640. property clientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON read _GetclientExtensionResults write _SetclientExtensionResults;
  17641. property type_: UnicodeString read _Gettype_ write _Settype_;
  17642. end;
  17643. { --------------------------------------------------------------------
  17644. TJSAuthenticatorAssertionResponseJSON
  17645. --------------------------------------------------------------------}
  17646. TJSAuthenticatorAssertionResponseJSONRec = record
  17647. clientDataJSON: TBase64URLString;
  17648. authenticatorData: TBase64URLString;
  17649. signature: TBase64URLString;
  17650. userHandle: TBase64URLString;
  17651. attestationObject: TBase64URLString;
  17652. end;
  17653. IJSAuthenticatorAssertionResponseJSON = interface(IJSObject)
  17654. ['{E68D05B4-53D3-3244-AC9D-13D06F3A6297}']
  17655. function _GetclientDataJSON: TBase64URLString;
  17656. function _GetauthenticatorData: TBase64URLString;
  17657. function _Getsignature: TBase64URLString;
  17658. function _GetuserHandle: TBase64URLString;
  17659. function _GetattestationObject: TBase64URLString;
  17660. procedure _SetclientDataJSON(const aValue: TBase64URLString);
  17661. procedure _SetauthenticatorData(const aValue: TBase64URLString);
  17662. procedure _Setsignature(const aValue: TBase64URLString);
  17663. procedure _SetuserHandle(const aValue: TBase64URLString);
  17664. procedure _SetattestationObject(const aValue: TBase64URLString);
  17665. property clientDataJSON: TBase64URLString read _GetclientDataJSON write _SetclientDataJSON;
  17666. property authenticatorData: TBase64URLString read _GetauthenticatorData write _SetauthenticatorData;
  17667. property signature: TBase64URLString read _Getsignature write _Setsignature;
  17668. property userHandle: TBase64URLString read _GetuserHandle write _SetuserHandle;
  17669. property attestationObject: TBase64URLString read _GetattestationObject write _SetattestationObject;
  17670. end;
  17671. TJSAuthenticatorAssertionResponseJSON = class(TJSObject,IJSAuthenticatorAssertionResponseJSON)
  17672. Protected
  17673. function _GetclientDataJSON: TBase64URLString;
  17674. function _GetauthenticatorData: TBase64URLString;
  17675. function _Getsignature: TBase64URLString;
  17676. function _GetuserHandle: TBase64URLString;
  17677. function _GetattestationObject: TBase64URLString;
  17678. procedure _SetclientDataJSON(const aValue: TBase64URLString);
  17679. procedure _SetauthenticatorData(const aValue: TBase64URLString);
  17680. procedure _Setsignature(const aValue: TBase64URLString);
  17681. procedure _SetuserHandle(const aValue: TBase64URLString);
  17682. procedure _SetattestationObject(const aValue: TBase64URLString);
  17683. Public
  17684. class function JSClassName: UnicodeString; override;
  17685. class function Cast(const Intf: IJSObject): IJSAuthenticatorAssertionResponseJSON;
  17686. property clientDataJSON: TBase64URLString read _GetclientDataJSON write _SetclientDataJSON;
  17687. property authenticatorData: TBase64URLString read _GetauthenticatorData write _SetauthenticatorData;
  17688. property signature: TBase64URLString read _Getsignature write _Setsignature;
  17689. property userHandle: TBase64URLString read _GetuserHandle write _SetuserHandle;
  17690. property attestationObject: TBase64URLString read _GetattestationObject write _SetattestationObject;
  17691. end;
  17692. { --------------------------------------------------------------------
  17693. TJSAuthenticationExtensionsClientOutputsJSON
  17694. --------------------------------------------------------------------}
  17695. TJSAuthenticationExtensionsClientOutputsJSONRec = record
  17696. appid: Boolean;
  17697. credProps: TJSCredentialPropertiesOutput;
  17698. hmacCreateSecret: Boolean;
  17699. end;
  17700. IJSAuthenticationExtensionsClientOutputsJSON = interface(IJSObject)
  17701. ['{B7F16B65-3844-3610-AFCA-17AC1ABB3ECD}']
  17702. function _Getappid: Boolean;
  17703. function _GetcredProps: TJSCredentialPropertiesOutput;
  17704. function _GethmacCreateSecret: Boolean;
  17705. procedure _Setappid(const aValue: Boolean);
  17706. procedure _SetcredProps(const aValue: TJSCredentialPropertiesOutput);
  17707. procedure _SethmacCreateSecret(const aValue: Boolean);
  17708. property appid: Boolean read _Getappid write _Setappid;
  17709. property credProps: TJSCredentialPropertiesOutput read _GetcredProps write _SetcredProps;
  17710. property hmacCreateSecret: Boolean read _GethmacCreateSecret write _SethmacCreateSecret;
  17711. end;
  17712. TJSAuthenticationExtensionsClientOutputsJSON = class(TJSObject,IJSAuthenticationExtensionsClientOutputsJSON)
  17713. Protected
  17714. function _Getappid: Boolean;
  17715. function _GetcredProps: TJSCredentialPropertiesOutput;
  17716. function _GethmacCreateSecret: Boolean;
  17717. procedure _Setappid(const aValue: Boolean);
  17718. procedure _SetcredProps(const aValue: TJSCredentialPropertiesOutput);
  17719. procedure _SethmacCreateSecret(const aValue: Boolean);
  17720. Public
  17721. class function JSClassName: UnicodeString; override;
  17722. class function Cast(const Intf: IJSObject): IJSAuthenticationExtensionsClientOutputsJSON;
  17723. property appid: Boolean read _Getappid write _Setappid;
  17724. property credProps: TJSCredentialPropertiesOutput read _GetcredProps write _SetcredProps;
  17725. property hmacCreateSecret: Boolean read _GethmacCreateSecret write _SethmacCreateSecret;
  17726. end;
  17727. { --------------------------------------------------------------------
  17728. TJSPublicKeyCredentialCreationOptionsJSON
  17729. --------------------------------------------------------------------}
  17730. TJSPublicKeyCredentialParametersDynArray = IJSArray; // array of PublicKeyCredentialParameters
  17731. TJSPublicKeyCredentialDescriptorJSONDynArray = IJSArray; // array of PublicKeyCredentialDescriptorJSON
  17732. TJSPublicKeyCredentialCreationOptionsJSONRec = record
  17733. rp: TJSPublicKeyCredentialRpEntity;
  17734. user: TJSPublicKeyCredentialUserEntityJSON;
  17735. challenge: TBase64URLString;
  17736. pubKeyCredParams: TJSPublicKeyCredentialParametersDynArray;
  17737. timeout: Cardinal;
  17738. excludeCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray;
  17739. authenticatorSelection: TJSAuthenticatorSelectionCriteria;
  17740. hints: TUnicodeStringDynArray;
  17741. attestation: UnicodeString;
  17742. attestationFormats: TUnicodeStringDynArray;
  17743. extensions: TJSAuthenticationExtensionsClientInputsJSON;
  17744. end;
  17745. IJSPublicKeyCredentialCreationOptionsJSON = interface(IJSObject)
  17746. ['{C2FA120C-3C67-32B0-8A2D-8B82B51076E5}']
  17747. function _Getrp: TJSPublicKeyCredentialRpEntity;
  17748. function _Getuser: TJSPublicKeyCredentialUserEntityJSON;
  17749. function _Getchallenge: TBase64URLString;
  17750. function _GetpubKeyCredParams: TJSPublicKeyCredentialParametersDynArray;
  17751. function _Gettimeout: Cardinal;
  17752. function _GetexcludeCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray;
  17753. function _GetauthenticatorSelection: TJSAuthenticatorSelectionCriteria;
  17754. function _Gethints: TUnicodeStringDynArray;
  17755. function _Getattestation: UnicodeString;
  17756. function _GetattestationFormats: TUnicodeStringDynArray;
  17757. function _Getextensions: TJSAuthenticationExtensionsClientInputsJSON;
  17758. procedure _Setrp(const aValue: TJSPublicKeyCredentialRpEntity);
  17759. procedure _Setuser(const aValue: TJSPublicKeyCredentialUserEntityJSON);
  17760. procedure _Setchallenge(const aValue: TBase64URLString);
  17761. procedure _SetpubKeyCredParams(const aValue: TJSPublicKeyCredentialParametersDynArray);
  17762. procedure _Settimeout(const aValue: Cardinal);
  17763. procedure _SetexcludeCredentials(const aValue: TJSPublicKeyCredentialDescriptorJSONDynArray);
  17764. procedure _SetauthenticatorSelection(const aValue: TJSAuthenticatorSelectionCriteria);
  17765. procedure _Sethints(const aValue: TUnicodeStringDynArray);
  17766. procedure _Setattestation(const aValue: UnicodeString);
  17767. procedure _SetattestationFormats(const aValue: TUnicodeStringDynArray);
  17768. procedure _Setextensions(const aValue: TJSAuthenticationExtensionsClientInputsJSON);
  17769. property rp: TJSPublicKeyCredentialRpEntity read _Getrp write _Setrp;
  17770. property user: TJSPublicKeyCredentialUserEntityJSON read _Getuser write _Setuser;
  17771. property challenge: TBase64URLString read _Getchallenge write _Setchallenge;
  17772. property pubKeyCredParams: TJSPublicKeyCredentialParametersDynArray read _GetpubKeyCredParams write _SetpubKeyCredParams;
  17773. property timeout: Cardinal read _Gettimeout write _Settimeout;
  17774. property excludeCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray read _GetexcludeCredentials write _SetexcludeCredentials;
  17775. property authenticatorSelection: TJSAuthenticatorSelectionCriteria read _GetauthenticatorSelection write _SetauthenticatorSelection;
  17776. property hints: TUnicodeStringDynArray read _Gethints write _Sethints;
  17777. property attestation: UnicodeString read _Getattestation write _Setattestation;
  17778. property attestationFormats: TUnicodeStringDynArray read _GetattestationFormats write _SetattestationFormats;
  17779. property extensions: TJSAuthenticationExtensionsClientInputsJSON read _Getextensions write _Setextensions;
  17780. end;
  17781. TJSPublicKeyCredentialCreationOptionsJSON = class(TJSObject,IJSPublicKeyCredentialCreationOptionsJSON)
  17782. Protected
  17783. function _Getrp: TJSPublicKeyCredentialRpEntity;
  17784. function _Getuser: TJSPublicKeyCredentialUserEntityJSON;
  17785. function _Getchallenge: TBase64URLString;
  17786. function _GetpubKeyCredParams: TJSPublicKeyCredentialParametersDynArray;
  17787. function _Gettimeout: Cardinal;
  17788. function _GetexcludeCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray;
  17789. function _GetauthenticatorSelection: TJSAuthenticatorSelectionCriteria;
  17790. function _Gethints: TUnicodeStringDynArray;
  17791. function _Getattestation: UnicodeString;
  17792. function _GetattestationFormats: TUnicodeStringDynArray;
  17793. function _Getextensions: TJSAuthenticationExtensionsClientInputsJSON;
  17794. procedure _Setrp(const aValue: TJSPublicKeyCredentialRpEntity);
  17795. procedure _Setuser(const aValue: TJSPublicKeyCredentialUserEntityJSON);
  17796. procedure _Setchallenge(const aValue: TBase64URLString);
  17797. procedure _SetpubKeyCredParams(const aValue: TJSPublicKeyCredentialParametersDynArray);
  17798. procedure _Settimeout(const aValue: Cardinal);
  17799. procedure _SetexcludeCredentials(const aValue: TJSPublicKeyCredentialDescriptorJSONDynArray);
  17800. procedure _SetauthenticatorSelection(const aValue: TJSAuthenticatorSelectionCriteria);
  17801. procedure _Sethints(const aValue: TUnicodeStringDynArray);
  17802. procedure _Setattestation(const aValue: UnicodeString);
  17803. procedure _SetattestationFormats(const aValue: TUnicodeStringDynArray);
  17804. procedure _Setextensions(const aValue: TJSAuthenticationExtensionsClientInputsJSON);
  17805. Public
  17806. class function JSClassName: UnicodeString; override;
  17807. class function Cast(const Intf: IJSObject): IJSPublicKeyCredentialCreationOptionsJSON;
  17808. property rp: TJSPublicKeyCredentialRpEntity read _Getrp write _Setrp;
  17809. property user: TJSPublicKeyCredentialUserEntityJSON read _Getuser write _Setuser;
  17810. property challenge: TBase64URLString read _Getchallenge write _Setchallenge;
  17811. property pubKeyCredParams: TJSPublicKeyCredentialParametersDynArray read _GetpubKeyCredParams write _SetpubKeyCredParams;
  17812. property timeout: Cardinal read _Gettimeout write _Settimeout;
  17813. property excludeCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray read _GetexcludeCredentials write _SetexcludeCredentials;
  17814. property authenticatorSelection: TJSAuthenticatorSelectionCriteria read _GetauthenticatorSelection write _SetauthenticatorSelection;
  17815. property hints: TUnicodeStringDynArray read _Gethints write _Sethints;
  17816. property attestation: UnicodeString read _Getattestation write _Setattestation;
  17817. property attestationFormats: TUnicodeStringDynArray read _GetattestationFormats write _SetattestationFormats;
  17818. property extensions: TJSAuthenticationExtensionsClientInputsJSON read _Getextensions write _Setextensions;
  17819. end;
  17820. { --------------------------------------------------------------------
  17821. TJSPublicKeyCredentialUserEntityJSON
  17822. --------------------------------------------------------------------}
  17823. TJSPublicKeyCredentialUserEntityJSONRec = record
  17824. id: TBase64URLString;
  17825. name: UnicodeString;
  17826. displayName: UnicodeString;
  17827. end;
  17828. IJSPublicKeyCredentialUserEntityJSON = interface(IJSObject)
  17829. ['{53609143-A263-3E3C-985A-CB5255796F14}']
  17830. function _Getid: TBase64URLString;
  17831. function _Getname: UnicodeString;
  17832. function _GetdisplayName: UnicodeString;
  17833. procedure _Setid(const aValue: TBase64URLString);
  17834. procedure _Setname(const aValue: UnicodeString);
  17835. procedure _SetdisplayName(const aValue: UnicodeString);
  17836. property id: TBase64URLString read _Getid write _Setid;
  17837. property name: UnicodeString read _Getname write _Setname;
  17838. property displayName: UnicodeString read _GetdisplayName write _SetdisplayName;
  17839. end;
  17840. TJSPublicKeyCredentialUserEntityJSON = class(TJSObject,IJSPublicKeyCredentialUserEntityJSON)
  17841. Protected
  17842. function _Getid: TBase64URLString;
  17843. function _Getname: UnicodeString;
  17844. function _GetdisplayName: UnicodeString;
  17845. procedure _Setid(const aValue: TBase64URLString);
  17846. procedure _Setname(const aValue: UnicodeString);
  17847. procedure _SetdisplayName(const aValue: UnicodeString);
  17848. Public
  17849. class function JSClassName: UnicodeString; override;
  17850. class function Cast(const Intf: IJSObject): IJSPublicKeyCredentialUserEntityJSON;
  17851. property id: TBase64URLString read _Getid write _Setid;
  17852. property name: UnicodeString read _Getname write _Setname;
  17853. property displayName: UnicodeString read _GetdisplayName write _SetdisplayName;
  17854. end;
  17855. { --------------------------------------------------------------------
  17856. TJSPublicKeyCredentialDescriptorJSON
  17857. --------------------------------------------------------------------}
  17858. TJSPublicKeyCredentialDescriptorJSONRec = record
  17859. id: TBase64URLString;
  17860. type_: UnicodeString;
  17861. transports: TUnicodeStringDynArray;
  17862. end;
  17863. IJSPublicKeyCredentialDescriptorJSON = interface(IJSObject)
  17864. ['{A8A8BC9C-A263-3255-BAD9-2E0FA2B95606}']
  17865. function _Getid: TBase64URLString;
  17866. function _Gettype_: UnicodeString;
  17867. function _Gettransports: TUnicodeStringDynArray;
  17868. procedure _Setid(const aValue: TBase64URLString);
  17869. procedure _Settype_(const aValue: UnicodeString);
  17870. procedure _Settransports(const aValue: TUnicodeStringDynArray);
  17871. property id: TBase64URLString read _Getid write _Setid;
  17872. property type_: UnicodeString read _Gettype_ write _Settype_;
  17873. property transports: TUnicodeStringDynArray read _Gettransports write _Settransports;
  17874. end;
  17875. TJSPublicKeyCredentialDescriptorJSON = class(TJSObject,IJSPublicKeyCredentialDescriptorJSON)
  17876. Protected
  17877. function _Getid: TBase64URLString;
  17878. function _Gettype_: UnicodeString;
  17879. function _Gettransports: TUnicodeStringDynArray;
  17880. procedure _Setid(const aValue: TBase64URLString);
  17881. procedure _Settype_(const aValue: UnicodeString);
  17882. procedure _Settransports(const aValue: TUnicodeStringDynArray);
  17883. Public
  17884. class function JSClassName: UnicodeString; override;
  17885. class function Cast(const Intf: IJSObject): IJSPublicKeyCredentialDescriptorJSON;
  17886. property id: TBase64URLString read _Getid write _Setid;
  17887. property type_: UnicodeString read _Gettype_ write _Settype_;
  17888. property transports: TUnicodeStringDynArray read _Gettransports write _Settransports;
  17889. end;
  17890. { --------------------------------------------------------------------
  17891. TJSAuthenticationExtensionsClientInputsJSON
  17892. --------------------------------------------------------------------}
  17893. TJSAuthenticationExtensionsClientInputsJSONRec = record
  17894. appid: UnicodeString;
  17895. credProps: Boolean;
  17896. hmacCreateSecret: Boolean;
  17897. minPinLength: Boolean;
  17898. end;
  17899. IJSAuthenticationExtensionsClientInputsJSON = interface(IJSObject)
  17900. ['{FDB577A0-7BE5-3AF6-8120-6E681D50A5D1}']
  17901. function _Getappid: UnicodeString;
  17902. function _GetcredProps: Boolean;
  17903. function _GethmacCreateSecret: Boolean;
  17904. function _GetminPinLength: Boolean;
  17905. procedure _Setappid(const aValue: UnicodeString);
  17906. procedure _SetcredProps(const aValue: Boolean);
  17907. procedure _SethmacCreateSecret(const aValue: Boolean);
  17908. procedure _SetminPinLength(const aValue: Boolean);
  17909. property appid: UnicodeString read _Getappid write _Setappid;
  17910. property credProps: Boolean read _GetcredProps write _SetcredProps;
  17911. property hmacCreateSecret: Boolean read _GethmacCreateSecret write _SethmacCreateSecret;
  17912. property minPinLength: Boolean read _GetminPinLength write _SetminPinLength;
  17913. end;
  17914. TJSAuthenticationExtensionsClientInputsJSON = class(TJSObject,IJSAuthenticationExtensionsClientInputsJSON)
  17915. Protected
  17916. function _Getappid: UnicodeString;
  17917. function _GetcredProps: Boolean;
  17918. function _GethmacCreateSecret: Boolean;
  17919. function _GetminPinLength: Boolean;
  17920. procedure _Setappid(const aValue: UnicodeString);
  17921. procedure _SetcredProps(const aValue: Boolean);
  17922. procedure _SethmacCreateSecret(const aValue: Boolean);
  17923. procedure _SetminPinLength(const aValue: Boolean);
  17924. Public
  17925. class function JSClassName: UnicodeString; override;
  17926. class function Cast(const Intf: IJSObject): IJSAuthenticationExtensionsClientInputsJSON;
  17927. property appid: UnicodeString read _Getappid write _Setappid;
  17928. property credProps: Boolean read _GetcredProps write _SetcredProps;
  17929. property hmacCreateSecret: Boolean read _GethmacCreateSecret write _SethmacCreateSecret;
  17930. property minPinLength: Boolean read _GetminPinLength write _SetminPinLength;
  17931. end;
  17932. { --------------------------------------------------------------------
  17933. TJSPublicKeyCredentialRequestOptionsJSON
  17934. --------------------------------------------------------------------}
  17935. TJSPublicKeyCredentialRequestOptionsJSONRec = record
  17936. challenge: TBase64URLString;
  17937. timeout: Cardinal;
  17938. rpId: UnicodeString;
  17939. allowCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray;
  17940. userVerification: UnicodeString;
  17941. hints: TUnicodeStringDynArray;
  17942. attestation: UnicodeString;
  17943. attestationFormats: TUnicodeStringDynArray;
  17944. extensions: TJSAuthenticationExtensionsClientInputsJSON;
  17945. end;
  17946. IJSPublicKeyCredentialRequestOptionsJSON = interface(IJSObject)
  17947. ['{EE7E9E87-FEC9-3065-B10A-0757C8901FB4}']
  17948. function _Getchallenge: TBase64URLString;
  17949. function _Gettimeout: Cardinal;
  17950. function _GetrpId: UnicodeString;
  17951. function _GetallowCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray;
  17952. function _GetuserVerification: UnicodeString;
  17953. function _Gethints: TUnicodeStringDynArray;
  17954. function _Getattestation: UnicodeString;
  17955. function _GetattestationFormats: TUnicodeStringDynArray;
  17956. function _Getextensions: TJSAuthenticationExtensionsClientInputsJSON;
  17957. procedure _Setchallenge(const aValue: TBase64URLString);
  17958. procedure _Settimeout(const aValue: Cardinal);
  17959. procedure _SetrpId(const aValue: UnicodeString);
  17960. procedure _SetallowCredentials(const aValue: TJSPublicKeyCredentialDescriptorJSONDynArray);
  17961. procedure _SetuserVerification(const aValue: UnicodeString);
  17962. procedure _Sethints(const aValue: TUnicodeStringDynArray);
  17963. procedure _Setattestation(const aValue: UnicodeString);
  17964. procedure _SetattestationFormats(const aValue: TUnicodeStringDynArray);
  17965. procedure _Setextensions(const aValue: TJSAuthenticationExtensionsClientInputsJSON);
  17966. property challenge: TBase64URLString read _Getchallenge write _Setchallenge;
  17967. property timeout: Cardinal read _Gettimeout write _Settimeout;
  17968. property rpId: UnicodeString read _GetrpId write _SetrpId;
  17969. property allowCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray read _GetallowCredentials write _SetallowCredentials;
  17970. property userVerification: UnicodeString read _GetuserVerification write _SetuserVerification;
  17971. property hints: TUnicodeStringDynArray read _Gethints write _Sethints;
  17972. property attestation: UnicodeString read _Getattestation write _Setattestation;
  17973. property attestationFormats: TUnicodeStringDynArray read _GetattestationFormats write _SetattestationFormats;
  17974. property extensions: TJSAuthenticationExtensionsClientInputsJSON read _Getextensions write _Setextensions;
  17975. end;
  17976. TJSPublicKeyCredentialRequestOptionsJSON = class(TJSObject,IJSPublicKeyCredentialRequestOptionsJSON)
  17977. Protected
  17978. function _Getchallenge: TBase64URLString;
  17979. function _Gettimeout: Cardinal;
  17980. function _GetrpId: UnicodeString;
  17981. function _GetallowCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray;
  17982. function _GetuserVerification: UnicodeString;
  17983. function _Gethints: TUnicodeStringDynArray;
  17984. function _Getattestation: UnicodeString;
  17985. function _GetattestationFormats: TUnicodeStringDynArray;
  17986. function _Getextensions: TJSAuthenticationExtensionsClientInputsJSON;
  17987. procedure _Setchallenge(const aValue: TBase64URLString);
  17988. procedure _Settimeout(const aValue: Cardinal);
  17989. procedure _SetrpId(const aValue: UnicodeString);
  17990. procedure _SetallowCredentials(const aValue: TJSPublicKeyCredentialDescriptorJSONDynArray);
  17991. procedure _SetuserVerification(const aValue: UnicodeString);
  17992. procedure _Sethints(const aValue: TUnicodeStringDynArray);
  17993. procedure _Setattestation(const aValue: UnicodeString);
  17994. procedure _SetattestationFormats(const aValue: TUnicodeStringDynArray);
  17995. procedure _Setextensions(const aValue: TJSAuthenticationExtensionsClientInputsJSON);
  17996. Public
  17997. class function JSClassName: UnicodeString; override;
  17998. class function Cast(const Intf: IJSObject): IJSPublicKeyCredentialRequestOptionsJSON;
  17999. property challenge: TBase64URLString read _Getchallenge write _Setchallenge;
  18000. property timeout: Cardinal read _Gettimeout write _Settimeout;
  18001. property rpId: UnicodeString read _GetrpId write _SetrpId;
  18002. property allowCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray read _GetallowCredentials write _SetallowCredentials;
  18003. property userVerification: UnicodeString read _GetuserVerification write _SetuserVerification;
  18004. property hints: TUnicodeStringDynArray read _Gethints write _Sethints;
  18005. property attestation: UnicodeString read _Getattestation write _Setattestation;
  18006. property attestationFormats: TUnicodeStringDynArray read _GetattestationFormats write _SetattestationFormats;
  18007. property extensions: TJSAuthenticationExtensionsClientInputsJSON read _Getextensions write _Setextensions;
  18008. end;
  18009. { --------------------------------------------------------------------
  18010. TJSPublicKeyCredentialParameters
  18011. --------------------------------------------------------------------}
  18012. TJSPublicKeyCredentialParametersRec = record
  18013. type_: UnicodeString;
  18014. alg: TCOSEAlgorithmIdentifier;
  18015. end;
  18016. IJSPublicKeyCredentialParameters = interface(IJSObject)
  18017. ['{FC0A2841-1737-371D-8E4C-4FD2EDCDF202}']
  18018. function _Gettype_: UnicodeString;
  18019. function _Getalg: TCOSEAlgorithmIdentifier;
  18020. procedure _Settype_(const aValue: UnicodeString);
  18021. procedure _Setalg(const aValue: TCOSEAlgorithmIdentifier);
  18022. property type_: UnicodeString read _Gettype_ write _Settype_;
  18023. property alg: TCOSEAlgorithmIdentifier read _Getalg write _Setalg;
  18024. end;
  18025. TJSPublicKeyCredentialParameters = class(TJSObject,IJSPublicKeyCredentialParameters)
  18026. Protected
  18027. function _Gettype_: UnicodeString;
  18028. function _Getalg: TCOSEAlgorithmIdentifier;
  18029. procedure _Settype_(const aValue: UnicodeString);
  18030. procedure _Setalg(const aValue: TCOSEAlgorithmIdentifier);
  18031. Public
  18032. class function JSClassName: UnicodeString; override;
  18033. class function Cast(const Intf: IJSObject): IJSPublicKeyCredentialParameters;
  18034. property type_: UnicodeString read _Gettype_ write _Settype_;
  18035. property alg: TCOSEAlgorithmIdentifier read _Getalg write _Setalg;
  18036. end;
  18037. { --------------------------------------------------------------------
  18038. TJSPublicKeyCredentialCreationOptions
  18039. --------------------------------------------------------------------}
  18040. TJSPublicKeyCredentialDescriptorDynArray = IJSArray; // array of PublicKeyCredentialDescriptor
  18041. TJSPublicKeyCredentialCreationOptionsRec = record
  18042. rp: TJSPublicKeyCredentialRpEntity;
  18043. user: TJSPublicKeyCredentialUserEntity;
  18044. challenge: IJSBufferSource;
  18045. pubKeyCredParams: TJSPublicKeyCredentialParametersDynArray;
  18046. timeout: Cardinal;
  18047. excludeCredentials: TJSPublicKeyCredentialDescriptorDynArray;
  18048. authenticatorSelection: TJSAuthenticatorSelectionCriteria;
  18049. attestation: UnicodeString;
  18050. extensions: TJSAuthenticationExtensionsClientInputs;
  18051. end;
  18052. IJSPublicKeyCredentialCreationOptions = interface(IJSObject)
  18053. ['{B153BF14-A7E1-3984-980E-8B69A519DDD9}']
  18054. function _Getrp: TJSPublicKeyCredentialRpEntity;
  18055. function _Getuser: TJSPublicKeyCredentialUserEntity;
  18056. function _Getchallenge: IJSBufferSource;
  18057. function _GetpubKeyCredParams: TJSPublicKeyCredentialParametersDynArray;
  18058. function _Gettimeout: Cardinal;
  18059. function _GetexcludeCredentials: TJSPublicKeyCredentialDescriptorDynArray;
  18060. function _GetauthenticatorSelection: TJSAuthenticatorSelectionCriteria;
  18061. function _Getattestation: UnicodeString;
  18062. function _Getextensions: TJSAuthenticationExtensionsClientInputs;
  18063. procedure _Setrp(const aValue: TJSPublicKeyCredentialRpEntity);
  18064. procedure _Setuser(const aValue: TJSPublicKeyCredentialUserEntity);
  18065. procedure _Setchallenge(const aValue: IJSBufferSource);
  18066. procedure _SetpubKeyCredParams(const aValue: TJSPublicKeyCredentialParametersDynArray);
  18067. procedure _Settimeout(const aValue: Cardinal);
  18068. procedure _SetexcludeCredentials(const aValue: TJSPublicKeyCredentialDescriptorDynArray);
  18069. procedure _SetauthenticatorSelection(const aValue: TJSAuthenticatorSelectionCriteria);
  18070. procedure _Setattestation(const aValue: UnicodeString);
  18071. procedure _Setextensions(const aValue: TJSAuthenticationExtensionsClientInputs);
  18072. property rp: TJSPublicKeyCredentialRpEntity read _Getrp write _Setrp;
  18073. property user: TJSPublicKeyCredentialUserEntity read _Getuser write _Setuser;
  18074. property challenge: IJSBufferSource read _Getchallenge write _Setchallenge;
  18075. property pubKeyCredParams: TJSPublicKeyCredentialParametersDynArray read _GetpubKeyCredParams write _SetpubKeyCredParams;
  18076. property timeout: Cardinal read _Gettimeout write _Settimeout;
  18077. property excludeCredentials: TJSPublicKeyCredentialDescriptorDynArray read _GetexcludeCredentials write _SetexcludeCredentials;
  18078. property authenticatorSelection: TJSAuthenticatorSelectionCriteria read _GetauthenticatorSelection write _SetauthenticatorSelection;
  18079. property attestation: UnicodeString read _Getattestation write _Setattestation;
  18080. property extensions: TJSAuthenticationExtensionsClientInputs read _Getextensions write _Setextensions;
  18081. end;
  18082. TJSPublicKeyCredentialCreationOptions = class(TJSObject,IJSPublicKeyCredentialCreationOptions)
  18083. Protected
  18084. function _Getrp: TJSPublicKeyCredentialRpEntity;
  18085. function _Getuser: TJSPublicKeyCredentialUserEntity;
  18086. function _Getchallenge: IJSBufferSource;
  18087. function _GetpubKeyCredParams: TJSPublicKeyCredentialParametersDynArray;
  18088. function _Gettimeout: Cardinal;
  18089. function _GetexcludeCredentials: TJSPublicKeyCredentialDescriptorDynArray;
  18090. function _GetauthenticatorSelection: TJSAuthenticatorSelectionCriteria;
  18091. function _Getattestation: UnicodeString;
  18092. function _Getextensions: TJSAuthenticationExtensionsClientInputs;
  18093. procedure _Setrp(const aValue: TJSPublicKeyCredentialRpEntity);
  18094. procedure _Setuser(const aValue: TJSPublicKeyCredentialUserEntity);
  18095. procedure _Setchallenge(const aValue: IJSBufferSource);
  18096. procedure _SetpubKeyCredParams(const aValue: TJSPublicKeyCredentialParametersDynArray);
  18097. procedure _Settimeout(const aValue: Cardinal);
  18098. procedure _SetexcludeCredentials(const aValue: TJSPublicKeyCredentialDescriptorDynArray);
  18099. procedure _SetauthenticatorSelection(const aValue: TJSAuthenticatorSelectionCriteria);
  18100. procedure _Setattestation(const aValue: UnicodeString);
  18101. procedure _Setextensions(const aValue: TJSAuthenticationExtensionsClientInputs);
  18102. Public
  18103. class function JSClassName: UnicodeString; override;
  18104. class function Cast(const Intf: IJSObject): IJSPublicKeyCredentialCreationOptions;
  18105. property rp: TJSPublicKeyCredentialRpEntity read _Getrp write _Setrp;
  18106. property user: TJSPublicKeyCredentialUserEntity read _Getuser write _Setuser;
  18107. property challenge: IJSBufferSource read _Getchallenge write _Setchallenge;
  18108. property pubKeyCredParams: TJSPublicKeyCredentialParametersDynArray read _GetpubKeyCredParams write _SetpubKeyCredParams;
  18109. property timeout: Cardinal read _Gettimeout write _Settimeout;
  18110. property excludeCredentials: TJSPublicKeyCredentialDescriptorDynArray read _GetexcludeCredentials write _SetexcludeCredentials;
  18111. property authenticatorSelection: TJSAuthenticatorSelectionCriteria read _GetauthenticatorSelection write _SetauthenticatorSelection;
  18112. property attestation: UnicodeString read _Getattestation write _Setattestation;
  18113. property extensions: TJSAuthenticationExtensionsClientInputs read _Getextensions write _Setextensions;
  18114. end;
  18115. { --------------------------------------------------------------------
  18116. TJSPublicKeyCredentialEntity
  18117. --------------------------------------------------------------------}
  18118. TJSPublicKeyCredentialEntityRec = record
  18119. name: UnicodeString;
  18120. end;
  18121. IJSPublicKeyCredentialEntity = interface(IJSObject)
  18122. ['{5F8FBFA6-76FB-3441-9956-1CC6D5DD430F}']
  18123. function _Getname: UnicodeString;
  18124. procedure _Setname(const aValue: UnicodeString);
  18125. property name: UnicodeString read _Getname write _Setname;
  18126. end;
  18127. TJSPublicKeyCredentialEntity = class(TJSObject,IJSPublicKeyCredentialEntity)
  18128. Protected
  18129. function _Getname: UnicodeString;
  18130. procedure _Setname(const aValue: UnicodeString);
  18131. Public
  18132. class function JSClassName: UnicodeString; override;
  18133. class function Cast(const Intf: IJSObject): IJSPublicKeyCredentialEntity;
  18134. property name: UnicodeString read _Getname write _Setname;
  18135. end;
  18136. { --------------------------------------------------------------------
  18137. TJSAuthenticatorSelectionCriteria
  18138. --------------------------------------------------------------------}
  18139. TJSAuthenticatorSelectionCriteriaRec = record
  18140. authenticatorAttachment: UnicodeString;
  18141. residentKey: UnicodeString;
  18142. requireResidentKey: Boolean;
  18143. userVerification: UnicodeString;
  18144. end;
  18145. IJSAuthenticatorSelectionCriteria = interface(IJSObject)
  18146. ['{1A7E1175-000D-391D-97D1-71BB367606D3}']
  18147. function _GetauthenticatorAttachment: UnicodeString;
  18148. function _GetresidentKey: UnicodeString;
  18149. function _GetrequireResidentKey: Boolean;
  18150. function _GetuserVerification: UnicodeString;
  18151. procedure _SetauthenticatorAttachment(const aValue: UnicodeString);
  18152. procedure _SetresidentKey(const aValue: UnicodeString);
  18153. procedure _SetrequireResidentKey(const aValue: Boolean);
  18154. procedure _SetuserVerification(const aValue: UnicodeString);
  18155. property authenticatorAttachment: UnicodeString read _GetauthenticatorAttachment write _SetauthenticatorAttachment;
  18156. property residentKey: UnicodeString read _GetresidentKey write _SetresidentKey;
  18157. property requireResidentKey: Boolean read _GetrequireResidentKey write _SetrequireResidentKey;
  18158. property userVerification: UnicodeString read _GetuserVerification write _SetuserVerification;
  18159. end;
  18160. TJSAuthenticatorSelectionCriteria = class(TJSObject,IJSAuthenticatorSelectionCriteria)
  18161. Protected
  18162. function _GetauthenticatorAttachment: UnicodeString;
  18163. function _GetresidentKey: UnicodeString;
  18164. function _GetrequireResidentKey: Boolean;
  18165. function _GetuserVerification: UnicodeString;
  18166. procedure _SetauthenticatorAttachment(const aValue: UnicodeString);
  18167. procedure _SetresidentKey(const aValue: UnicodeString);
  18168. procedure _SetrequireResidentKey(const aValue: Boolean);
  18169. procedure _SetuserVerification(const aValue: UnicodeString);
  18170. Public
  18171. class function JSClassName: UnicodeString; override;
  18172. class function Cast(const Intf: IJSObject): IJSAuthenticatorSelectionCriteria;
  18173. property authenticatorAttachment: UnicodeString read _GetauthenticatorAttachment write _SetauthenticatorAttachment;
  18174. property residentKey: UnicodeString read _GetresidentKey write _SetresidentKey;
  18175. property requireResidentKey: Boolean read _GetrequireResidentKey write _SetrequireResidentKey;
  18176. property userVerification: UnicodeString read _GetuserVerification write _SetuserVerification;
  18177. end;
  18178. { --------------------------------------------------------------------
  18179. TJSPublicKeyCredentialRequestOptions
  18180. --------------------------------------------------------------------}
  18181. TJSPublicKeyCredentialRequestOptionsRec = record
  18182. challenge: IJSBufferSource;
  18183. timeout: Cardinal;
  18184. rpId: UnicodeString;
  18185. allowCredentials: TJSPublicKeyCredentialDescriptorDynArray;
  18186. userVerification: UnicodeString;
  18187. extensions: TJSAuthenticationExtensionsClientInputs;
  18188. end;
  18189. IJSPublicKeyCredentialRequestOptions = interface(IJSObject)
  18190. ['{AC2C6C23-8AF8-346C-8D07-E9B7F7230AF6}']
  18191. function _Getchallenge: IJSBufferSource;
  18192. function _Gettimeout: Cardinal;
  18193. function _GetrpId: UnicodeString;
  18194. function _GetallowCredentials: TJSPublicKeyCredentialDescriptorDynArray;
  18195. function _GetuserVerification: UnicodeString;
  18196. function _Getextensions: TJSAuthenticationExtensionsClientInputs;
  18197. procedure _Setchallenge(const aValue: IJSBufferSource);
  18198. procedure _Settimeout(const aValue: Cardinal);
  18199. procedure _SetrpId(const aValue: UnicodeString);
  18200. procedure _SetallowCredentials(const aValue: TJSPublicKeyCredentialDescriptorDynArray);
  18201. procedure _SetuserVerification(const aValue: UnicodeString);
  18202. procedure _Setextensions(const aValue: TJSAuthenticationExtensionsClientInputs);
  18203. property challenge: IJSBufferSource read _Getchallenge write _Setchallenge;
  18204. property timeout: Cardinal read _Gettimeout write _Settimeout;
  18205. property rpId: UnicodeString read _GetrpId write _SetrpId;
  18206. property allowCredentials: TJSPublicKeyCredentialDescriptorDynArray read _GetallowCredentials write _SetallowCredentials;
  18207. property userVerification: UnicodeString read _GetuserVerification write _SetuserVerification;
  18208. property extensions: TJSAuthenticationExtensionsClientInputs read _Getextensions write _Setextensions;
  18209. end;
  18210. TJSPublicKeyCredentialRequestOptions = class(TJSObject,IJSPublicKeyCredentialRequestOptions)
  18211. Protected
  18212. function _Getchallenge: IJSBufferSource;
  18213. function _Gettimeout: Cardinal;
  18214. function _GetrpId: UnicodeString;
  18215. function _GetallowCredentials: TJSPublicKeyCredentialDescriptorDynArray;
  18216. function _GetuserVerification: UnicodeString;
  18217. function _Getextensions: TJSAuthenticationExtensionsClientInputs;
  18218. procedure _Setchallenge(const aValue: IJSBufferSource);
  18219. procedure _Settimeout(const aValue: Cardinal);
  18220. procedure _SetrpId(const aValue: UnicodeString);
  18221. procedure _SetallowCredentials(const aValue: TJSPublicKeyCredentialDescriptorDynArray);
  18222. procedure _SetuserVerification(const aValue: UnicodeString);
  18223. procedure _Setextensions(const aValue: TJSAuthenticationExtensionsClientInputs);
  18224. Public
  18225. class function JSClassName: UnicodeString; override;
  18226. class function Cast(const Intf: IJSObject): IJSPublicKeyCredentialRequestOptions;
  18227. property challenge: IJSBufferSource read _Getchallenge write _Setchallenge;
  18228. property timeout: Cardinal read _Gettimeout write _Settimeout;
  18229. property rpId: UnicodeString read _GetrpId write _SetrpId;
  18230. property allowCredentials: TJSPublicKeyCredentialDescriptorDynArray read _GetallowCredentials write _SetallowCredentials;
  18231. property userVerification: UnicodeString read _GetuserVerification write _SetuserVerification;
  18232. property extensions: TJSAuthenticationExtensionsClientInputs read _Getextensions write _Setextensions;
  18233. end;
  18234. { --------------------------------------------------------------------
  18235. TJSAuthenticationExtensionsClientInputs
  18236. --------------------------------------------------------------------}
  18237. TJSAuthenticationExtensionsClientInputsRec = record
  18238. appid: UnicodeString;
  18239. credProps: Boolean;
  18240. hmacCreateSecret: Boolean;
  18241. minPinLength: Boolean;
  18242. end;
  18243. IJSAuthenticationExtensionsClientInputs = interface(IJSObject)
  18244. ['{C3125911-B86F-3D23-ADE6-702161469929}']
  18245. function _Getappid: UnicodeString;
  18246. function _GetcredProps: Boolean;
  18247. function _GethmacCreateSecret: Boolean;
  18248. function _GetminPinLength: Boolean;
  18249. procedure _Setappid(const aValue: UnicodeString);
  18250. procedure _SetcredProps(const aValue: Boolean);
  18251. procedure _SethmacCreateSecret(const aValue: Boolean);
  18252. procedure _SetminPinLength(const aValue: Boolean);
  18253. property appid: UnicodeString read _Getappid write _Setappid;
  18254. property credProps: Boolean read _GetcredProps write _SetcredProps;
  18255. property hmacCreateSecret: Boolean read _GethmacCreateSecret write _SethmacCreateSecret;
  18256. property minPinLength: Boolean read _GetminPinLength write _SetminPinLength;
  18257. end;
  18258. TJSAuthenticationExtensionsClientInputs = class(TJSObject,IJSAuthenticationExtensionsClientInputs)
  18259. Protected
  18260. function _Getappid: UnicodeString;
  18261. function _GetcredProps: Boolean;
  18262. function _GethmacCreateSecret: Boolean;
  18263. function _GetminPinLength: Boolean;
  18264. procedure _Setappid(const aValue: UnicodeString);
  18265. procedure _SetcredProps(const aValue: Boolean);
  18266. procedure _SethmacCreateSecret(const aValue: Boolean);
  18267. procedure _SetminPinLength(const aValue: Boolean);
  18268. Public
  18269. class function JSClassName: UnicodeString; override;
  18270. class function Cast(const Intf: IJSObject): IJSAuthenticationExtensionsClientInputs;
  18271. property appid: UnicodeString read _Getappid write _Setappid;
  18272. property credProps: Boolean read _GetcredProps write _SetcredProps;
  18273. property hmacCreateSecret: Boolean read _GethmacCreateSecret write _SethmacCreateSecret;
  18274. property minPinLength: Boolean read _GetminPinLength write _SetminPinLength;
  18275. end;
  18276. { --------------------------------------------------------------------
  18277. TJSAuthenticationExtensionsClientOutputs
  18278. --------------------------------------------------------------------}
  18279. TJSAuthenticationExtensionsClientOutputsRec = record
  18280. appid: Boolean;
  18281. credProps: TJSCredentialPropertiesOutput;
  18282. hmacCreateSecret: Boolean;
  18283. end;
  18284. IJSAuthenticationExtensionsClientOutputs = interface(IJSObject)
  18285. ['{F23107DB-B55A-3AB3-9727-56B8D1011ED9}']
  18286. function _Getappid: Boolean;
  18287. function _GetcredProps: TJSCredentialPropertiesOutput;
  18288. function _GethmacCreateSecret: Boolean;
  18289. procedure _Setappid(const aValue: Boolean);
  18290. procedure _SetcredProps(const aValue: TJSCredentialPropertiesOutput);
  18291. procedure _SethmacCreateSecret(const aValue: Boolean);
  18292. property appid: Boolean read _Getappid write _Setappid;
  18293. property credProps: TJSCredentialPropertiesOutput read _GetcredProps write _SetcredProps;
  18294. property hmacCreateSecret: Boolean read _GethmacCreateSecret write _SethmacCreateSecret;
  18295. end;
  18296. TJSAuthenticationExtensionsClientOutputs = class(TJSObject,IJSAuthenticationExtensionsClientOutputs)
  18297. Protected
  18298. function _Getappid: Boolean;
  18299. function _GetcredProps: TJSCredentialPropertiesOutput;
  18300. function _GethmacCreateSecret: Boolean;
  18301. procedure _Setappid(const aValue: Boolean);
  18302. procedure _SetcredProps(const aValue: TJSCredentialPropertiesOutput);
  18303. procedure _SethmacCreateSecret(const aValue: Boolean);
  18304. Public
  18305. class function JSClassName: UnicodeString; override;
  18306. class function Cast(const Intf: IJSObject): IJSAuthenticationExtensionsClientOutputs;
  18307. property appid: Boolean read _Getappid write _Setappid;
  18308. property credProps: TJSCredentialPropertiesOutput read _GetcredProps write _SetcredProps;
  18309. property hmacCreateSecret: Boolean read _GethmacCreateSecret write _SethmacCreateSecret;
  18310. end;
  18311. { --------------------------------------------------------------------
  18312. TJSCollectedClientData
  18313. --------------------------------------------------------------------}
  18314. TJSCollectedClientDataRec = record
  18315. type_: UnicodeString;
  18316. challenge: UnicodeString;
  18317. origin: UnicodeString;
  18318. tokenBinding: TJSTokenBinding;
  18319. end;
  18320. IJSCollectedClientData = interface(IJSObject)
  18321. ['{507128D9-C18E-37A3-BB8A-21F70EA5B7BF}']
  18322. function _Gettype_: UnicodeString;
  18323. function _Getchallenge: UnicodeString;
  18324. function _Getorigin: UnicodeString;
  18325. function _GettokenBinding: TJSTokenBinding;
  18326. procedure _Settype_(const aValue: UnicodeString);
  18327. procedure _Setchallenge(const aValue: UnicodeString);
  18328. procedure _Setorigin(const aValue: UnicodeString);
  18329. procedure _SettokenBinding(const aValue: TJSTokenBinding);
  18330. property type_: UnicodeString read _Gettype_ write _Settype_;
  18331. property challenge: UnicodeString read _Getchallenge write _Setchallenge;
  18332. property origin: UnicodeString read _Getorigin write _Setorigin;
  18333. property tokenBinding: TJSTokenBinding read _GettokenBinding write _SettokenBinding;
  18334. end;
  18335. TJSCollectedClientData = class(TJSObject,IJSCollectedClientData)
  18336. Protected
  18337. function _Gettype_: UnicodeString;
  18338. function _Getchallenge: UnicodeString;
  18339. function _Getorigin: UnicodeString;
  18340. function _GettokenBinding: TJSTokenBinding;
  18341. procedure _Settype_(const aValue: UnicodeString);
  18342. procedure _Setchallenge(const aValue: UnicodeString);
  18343. procedure _Setorigin(const aValue: UnicodeString);
  18344. procedure _SettokenBinding(const aValue: TJSTokenBinding);
  18345. Public
  18346. class function JSClassName: UnicodeString; override;
  18347. class function Cast(const Intf: IJSObject): IJSCollectedClientData;
  18348. property type_: UnicodeString read _Gettype_ write _Settype_;
  18349. property challenge: UnicodeString read _Getchallenge write _Setchallenge;
  18350. property origin: UnicodeString read _Getorigin write _Setorigin;
  18351. property tokenBinding: TJSTokenBinding read _GettokenBinding write _SettokenBinding;
  18352. end;
  18353. { --------------------------------------------------------------------
  18354. TJSTokenBinding
  18355. --------------------------------------------------------------------}
  18356. TJSTokenBindingRec = record
  18357. status: UnicodeString;
  18358. id: UnicodeString;
  18359. end;
  18360. IJSTokenBinding = interface(IJSObject)
  18361. ['{E6CF29E7-387A-3C1D-B061-5042AD973E21}']
  18362. function _Getstatus: UnicodeString;
  18363. function _Getid: UnicodeString;
  18364. procedure _Setstatus(const aValue: UnicodeString);
  18365. procedure _Setid(const aValue: UnicodeString);
  18366. property status: UnicodeString read _Getstatus write _Setstatus;
  18367. property id: UnicodeString read _Getid write _Setid;
  18368. end;
  18369. TJSTokenBinding = class(TJSObject,IJSTokenBinding)
  18370. Protected
  18371. function _Getstatus: UnicodeString;
  18372. function _Getid: UnicodeString;
  18373. procedure _Setstatus(const aValue: UnicodeString);
  18374. procedure _Setid(const aValue: UnicodeString);
  18375. Public
  18376. class function JSClassName: UnicodeString; override;
  18377. class function Cast(const Intf: IJSObject): IJSTokenBinding;
  18378. property status: UnicodeString read _Getstatus write _Setstatus;
  18379. property id: UnicodeString read _Getid write _Setid;
  18380. end;
  18381. { --------------------------------------------------------------------
  18382. TJSPublicKeyCredentialDescriptor
  18383. --------------------------------------------------------------------}
  18384. TJSPublicKeyCredentialDescriptorRec = record
  18385. type_: UnicodeString;
  18386. id: IJSBufferSource;
  18387. transports: TUnicodeStringDynArray;
  18388. end;
  18389. IJSPublicKeyCredentialDescriptor = interface(IJSObject)
  18390. ['{864863E2-03AB-3C1B-9A31-A9A4E1AF400B}']
  18391. function _Gettype_: UnicodeString;
  18392. function _Getid: IJSBufferSource;
  18393. function _Gettransports: TUnicodeStringDynArray;
  18394. procedure _Settype_(const aValue: UnicodeString);
  18395. procedure _Setid(const aValue: IJSBufferSource);
  18396. procedure _Settransports(const aValue: TUnicodeStringDynArray);
  18397. property type_: UnicodeString read _Gettype_ write _Settype_;
  18398. property id: IJSBufferSource read _Getid write _Setid;
  18399. property transports: TUnicodeStringDynArray read _Gettransports write _Settransports;
  18400. end;
  18401. TJSPublicKeyCredentialDescriptor = class(TJSObject,IJSPublicKeyCredentialDescriptor)
  18402. Protected
  18403. function _Gettype_: UnicodeString;
  18404. function _Getid: IJSBufferSource;
  18405. function _Gettransports: TUnicodeStringDynArray;
  18406. procedure _Settype_(const aValue: UnicodeString);
  18407. procedure _Setid(const aValue: IJSBufferSource);
  18408. procedure _Settransports(const aValue: TUnicodeStringDynArray);
  18409. Public
  18410. class function JSClassName: UnicodeString; override;
  18411. class function Cast(const Intf: IJSObject): IJSPublicKeyCredentialDescriptor;
  18412. property type_: UnicodeString read _Gettype_ write _Settype_;
  18413. property id: IJSBufferSource read _Getid write _Setid;
  18414. property transports: TUnicodeStringDynArray read _Gettransports write _Settransports;
  18415. end;
  18416. { --------------------------------------------------------------------
  18417. TJSCredentialPropertiesOutput
  18418. --------------------------------------------------------------------}
  18419. TJSCredentialPropertiesOutputRec = record
  18420. rk: Boolean;
  18421. end;
  18422. IJSCredentialPropertiesOutput = interface(IJSObject)
  18423. ['{E7739C60-49FC-31EA-91E1-2FF43CCCF06F}']
  18424. function _Getrk: Boolean;
  18425. procedure _Setrk(const aValue: Boolean);
  18426. property rk: Boolean read _Getrk write _Setrk;
  18427. end;
  18428. TJSCredentialPropertiesOutput = class(TJSObject,IJSCredentialPropertiesOutput)
  18429. Protected
  18430. function _Getrk: Boolean;
  18431. procedure _Setrk(const aValue: Boolean);
  18432. Public
  18433. class function JSClassName: UnicodeString; override;
  18434. class function Cast(const Intf: IJSObject): IJSCredentialPropertiesOutput;
  18435. property rk: Boolean read _Getrk write _Setrk;
  18436. end;
  18437. { --------------------------------------------------------------------
  18438. TJSWebGLContextAttributes
  18439. --------------------------------------------------------------------}
  18440. TJSWebGLContextAttributesRec = record
  18441. alpha: TGLboolean;
  18442. depth: TGLboolean;
  18443. stencil: TGLboolean;
  18444. antialias: TGLboolean;
  18445. premultipliedAlpha: TGLboolean;
  18446. preserveDrawingBuffer: TGLboolean;
  18447. failIfMajorPerformanceCaveat: TGLboolean;
  18448. powerPreference: TWebGLPowerPreference;
  18449. colorSpace: TPredefinedColorSpace;
  18450. xrCompatible: Boolean;
  18451. end;
  18452. IJSWebGLContextAttributes = interface(IJSObject)
  18453. ['{DE62754C-64F0-3239-AFCD-6C5C143D8F42}']
  18454. function _Getalpha: TGLboolean;
  18455. function _Getdepth: TGLboolean;
  18456. function _Getstencil: TGLboolean;
  18457. function _Getantialias: TGLboolean;
  18458. function _GetpremultipliedAlpha: TGLboolean;
  18459. function _GetpreserveDrawingBuffer: TGLboolean;
  18460. function _GetfailIfMajorPerformanceCaveat: TGLboolean;
  18461. function _GetpowerPreference: TWebGLPowerPreference;
  18462. function _GetcolorSpace: TPredefinedColorSpace;
  18463. function _GetxrCompatible: Boolean;
  18464. procedure _Setalpha(const aValue: TGLboolean);
  18465. procedure _Setdepth(const aValue: TGLboolean);
  18466. procedure _Setstencil(const aValue: TGLboolean);
  18467. procedure _Setantialias(const aValue: TGLboolean);
  18468. procedure _SetpremultipliedAlpha(const aValue: TGLboolean);
  18469. procedure _SetpreserveDrawingBuffer(const aValue: TGLboolean);
  18470. procedure _SetfailIfMajorPerformanceCaveat(const aValue: TGLboolean);
  18471. procedure _SetpowerPreference(const aValue: TWebGLPowerPreference);
  18472. procedure _SetcolorSpace(const aValue: TPredefinedColorSpace);
  18473. procedure _SetxrCompatible(const aValue: Boolean);
  18474. property alpha: TGLboolean read _Getalpha write _Setalpha;
  18475. property depth: TGLboolean read _Getdepth write _Setdepth;
  18476. property stencil: TGLboolean read _Getstencil write _Setstencil;
  18477. property antialias: TGLboolean read _Getantialias write _Setantialias;
  18478. property premultipliedAlpha: TGLboolean read _GetpremultipliedAlpha write _SetpremultipliedAlpha;
  18479. property preserveDrawingBuffer: TGLboolean read _GetpreserveDrawingBuffer write _SetpreserveDrawingBuffer;
  18480. property failIfMajorPerformanceCaveat: TGLboolean read _GetfailIfMajorPerformanceCaveat write _SetfailIfMajorPerformanceCaveat;
  18481. property powerPreference: TWebGLPowerPreference read _GetpowerPreference write _SetpowerPreference;
  18482. property colorSpace: TPredefinedColorSpace read _GetcolorSpace write _SetcolorSpace;
  18483. property xrCompatible: Boolean read _GetxrCompatible write _SetxrCompatible;
  18484. end;
  18485. TJSWebGLContextAttributes = class(TJSObject,IJSWebGLContextAttributes)
  18486. Protected
  18487. function _Getalpha: TGLboolean;
  18488. function _Getdepth: TGLboolean;
  18489. function _Getstencil: TGLboolean;
  18490. function _Getantialias: TGLboolean;
  18491. function _GetpremultipliedAlpha: TGLboolean;
  18492. function _GetpreserveDrawingBuffer: TGLboolean;
  18493. function _GetfailIfMajorPerformanceCaveat: TGLboolean;
  18494. function _GetpowerPreference: TWebGLPowerPreference;
  18495. function _GetcolorSpace: TPredefinedColorSpace;
  18496. function _GetxrCompatible: Boolean;
  18497. procedure _Setalpha(const aValue: TGLboolean);
  18498. procedure _Setdepth(const aValue: TGLboolean);
  18499. procedure _Setstencil(const aValue: TGLboolean);
  18500. procedure _Setantialias(const aValue: TGLboolean);
  18501. procedure _SetpremultipliedAlpha(const aValue: TGLboolean);
  18502. procedure _SetpreserveDrawingBuffer(const aValue: TGLboolean);
  18503. procedure _SetfailIfMajorPerformanceCaveat(const aValue: TGLboolean);
  18504. procedure _SetpowerPreference(const aValue: TWebGLPowerPreference);
  18505. procedure _SetcolorSpace(const aValue: TPredefinedColorSpace);
  18506. procedure _SetxrCompatible(const aValue: Boolean);
  18507. Public
  18508. class function JSClassName: UnicodeString; override;
  18509. class function Cast(const Intf: IJSObject): IJSWebGLContextAttributes;
  18510. property alpha: TGLboolean read _Getalpha write _Setalpha;
  18511. property depth: TGLboolean read _Getdepth write _Setdepth;
  18512. property stencil: TGLboolean read _Getstencil write _Setstencil;
  18513. property antialias: TGLboolean read _Getantialias write _Setantialias;
  18514. property premultipliedAlpha: TGLboolean read _GetpremultipliedAlpha write _SetpremultipliedAlpha;
  18515. property preserveDrawingBuffer: TGLboolean read _GetpreserveDrawingBuffer write _SetpreserveDrawingBuffer;
  18516. property failIfMajorPerformanceCaveat: TGLboolean read _GetfailIfMajorPerformanceCaveat write _SetfailIfMajorPerformanceCaveat;
  18517. property powerPreference: TWebGLPowerPreference read _GetpowerPreference write _SetpowerPreference;
  18518. property colorSpace: TPredefinedColorSpace read _GetcolorSpace write _SetcolorSpace;
  18519. property xrCompatible: Boolean read _GetxrCompatible write _SetxrCompatible;
  18520. end;
  18521. { --------------------------------------------------------------------
  18522. TJSGPUObjectDescriptorBase
  18523. --------------------------------------------------------------------}
  18524. TJSGPUObjectDescriptorBaseRec = record
  18525. label_: UnicodeString;
  18526. end;
  18527. IJSGPUObjectDescriptorBase = interface(IJSObject)
  18528. ['{CD1E5691-86BB-3E7B-AB28-0E7C1724F410}']
  18529. function _Getlabel_: UnicodeString;
  18530. procedure _Setlabel_(const aValue: UnicodeString);
  18531. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  18532. end;
  18533. TJSGPUObjectDescriptorBase = class(TJSObject,IJSGPUObjectDescriptorBase)
  18534. Protected
  18535. function _Getlabel_: UnicodeString;
  18536. procedure _Setlabel_(const aValue: UnicodeString);
  18537. Public
  18538. class function JSClassName: UnicodeString; override;
  18539. class function Cast(const Intf: IJSObject): IJSGPUObjectDescriptorBase;
  18540. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  18541. end;
  18542. { --------------------------------------------------------------------
  18543. TJSGPURequestAdapterOptions
  18544. --------------------------------------------------------------------}
  18545. TJSGPURequestAdapterOptionsRec = record
  18546. powerPreference: TGPUPowerPreference;
  18547. forceFallbackAdapter: Boolean;
  18548. end;
  18549. IJSGPURequestAdapterOptions = interface(IJSObject)
  18550. ['{07858976-FA09-3A05-804A-10CF0DCD78D1}']
  18551. function _GetpowerPreference: TGPUPowerPreference;
  18552. function _GetforceFallbackAdapter: Boolean;
  18553. procedure _SetpowerPreference(const aValue: TGPUPowerPreference);
  18554. procedure _SetforceFallbackAdapter(const aValue: Boolean);
  18555. property powerPreference: TGPUPowerPreference read _GetpowerPreference write _SetpowerPreference;
  18556. property forceFallbackAdapter: Boolean read _GetforceFallbackAdapter write _SetforceFallbackAdapter;
  18557. end;
  18558. TJSGPURequestAdapterOptions = class(TJSObject,IJSGPURequestAdapterOptions)
  18559. Protected
  18560. function _GetpowerPreference: TGPUPowerPreference;
  18561. function _GetforceFallbackAdapter: Boolean;
  18562. procedure _SetpowerPreference(const aValue: TGPUPowerPreference);
  18563. procedure _SetforceFallbackAdapter(const aValue: Boolean);
  18564. Public
  18565. class function JSClassName: UnicodeString; override;
  18566. class function Cast(const Intf: IJSObject): IJSGPURequestAdapterOptions;
  18567. property powerPreference: TGPUPowerPreference read _GetpowerPreference write _SetpowerPreference;
  18568. property forceFallbackAdapter: Boolean read _GetforceFallbackAdapter write _SetforceFallbackAdapter;
  18569. end;
  18570. { --------------------------------------------------------------------
  18571. TJSGPUBindGroupLayoutEntry
  18572. --------------------------------------------------------------------}
  18573. TJSGPUBindGroupLayoutEntryRec = record
  18574. binding: TGPUIndex32;
  18575. visibility: TGPUShaderStageFlags;
  18576. buffer: TJSGPUBufferBindingLayout;
  18577. sampler: TJSGPUSamplerBindingLayout;
  18578. texture: TJSGPUTextureBindingLayout;
  18579. storageTexture: TJSGPUStorageTextureBindingLayout;
  18580. end;
  18581. IJSGPUBindGroupLayoutEntry = interface(IJSObject)
  18582. ['{113A62EB-C619-3012-9856-B36C8DE9D998}']
  18583. function _Getbinding: TGPUIndex32;
  18584. function _Getvisibility: TGPUShaderStageFlags;
  18585. function _Getbuffer: TJSGPUBufferBindingLayout;
  18586. function _Getsampler: TJSGPUSamplerBindingLayout;
  18587. function _Gettexture: TJSGPUTextureBindingLayout;
  18588. function _GetstorageTexture: TJSGPUStorageTextureBindingLayout;
  18589. procedure _Setbinding(const aValue: TGPUIndex32);
  18590. procedure _Setvisibility(const aValue: TGPUShaderStageFlags);
  18591. procedure _Setbuffer(const aValue: TJSGPUBufferBindingLayout);
  18592. procedure _Setsampler(const aValue: TJSGPUSamplerBindingLayout);
  18593. procedure _Settexture(const aValue: TJSGPUTextureBindingLayout);
  18594. procedure _SetstorageTexture(const aValue: TJSGPUStorageTextureBindingLayout);
  18595. property binding: TGPUIndex32 read _Getbinding write _Setbinding;
  18596. property visibility: TGPUShaderStageFlags read _Getvisibility write _Setvisibility;
  18597. property buffer: TJSGPUBufferBindingLayout read _Getbuffer write _Setbuffer;
  18598. property sampler: TJSGPUSamplerBindingLayout read _Getsampler write _Setsampler;
  18599. property texture: TJSGPUTextureBindingLayout read _Gettexture write _Settexture;
  18600. property storageTexture: TJSGPUStorageTextureBindingLayout read _GetstorageTexture write _SetstorageTexture;
  18601. end;
  18602. TJSGPUBindGroupLayoutEntry = class(TJSObject,IJSGPUBindGroupLayoutEntry)
  18603. Protected
  18604. function _Getbinding: TGPUIndex32;
  18605. function _Getvisibility: TGPUShaderStageFlags;
  18606. function _Getbuffer: TJSGPUBufferBindingLayout;
  18607. function _Getsampler: TJSGPUSamplerBindingLayout;
  18608. function _Gettexture: TJSGPUTextureBindingLayout;
  18609. function _GetstorageTexture: TJSGPUStorageTextureBindingLayout;
  18610. procedure _Setbinding(const aValue: TGPUIndex32);
  18611. procedure _Setvisibility(const aValue: TGPUShaderStageFlags);
  18612. procedure _Setbuffer(const aValue: TJSGPUBufferBindingLayout);
  18613. procedure _Setsampler(const aValue: TJSGPUSamplerBindingLayout);
  18614. procedure _Settexture(const aValue: TJSGPUTextureBindingLayout);
  18615. procedure _SetstorageTexture(const aValue: TJSGPUStorageTextureBindingLayout);
  18616. Public
  18617. class function JSClassName: UnicodeString; override;
  18618. class function Cast(const Intf: IJSObject): IJSGPUBindGroupLayoutEntry;
  18619. property binding: TGPUIndex32 read _Getbinding write _Setbinding;
  18620. property visibility: TGPUShaderStageFlags read _Getvisibility write _Setvisibility;
  18621. property buffer: TJSGPUBufferBindingLayout read _Getbuffer write _Setbuffer;
  18622. property sampler: TJSGPUSamplerBindingLayout read _Getsampler write _Setsampler;
  18623. property texture: TJSGPUTextureBindingLayout read _Gettexture write _Settexture;
  18624. property storageTexture: TJSGPUStorageTextureBindingLayout read _GetstorageTexture write _SetstorageTexture;
  18625. end;
  18626. { --------------------------------------------------------------------
  18627. TJSGPUBufferBindingLayout
  18628. --------------------------------------------------------------------}
  18629. TJSGPUBufferBindingLayoutRec = record
  18630. type_: TGPUBufferBindingType;
  18631. hasDynamicOffset: Boolean;
  18632. minBindingSize: TGPUSize64;
  18633. end;
  18634. IJSGPUBufferBindingLayout = interface(IJSObject)
  18635. ['{F9989F54-3E7D-389D-A02F-F165B3A39991}']
  18636. function _Gettype_: TGPUBufferBindingType;
  18637. function _GethasDynamicOffset: Boolean;
  18638. function _GetminBindingSize: TGPUSize64;
  18639. procedure _Settype_(const aValue: TGPUBufferBindingType);
  18640. procedure _SethasDynamicOffset(const aValue: Boolean);
  18641. procedure _SetminBindingSize(const aValue: TGPUSize64);
  18642. property type_: TGPUBufferBindingType read _Gettype_ write _Settype_;
  18643. property hasDynamicOffset: Boolean read _GethasDynamicOffset write _SethasDynamicOffset;
  18644. property minBindingSize: TGPUSize64 read _GetminBindingSize write _SetminBindingSize;
  18645. end;
  18646. TJSGPUBufferBindingLayout = class(TJSObject,IJSGPUBufferBindingLayout)
  18647. Protected
  18648. function _Gettype_: TGPUBufferBindingType;
  18649. function _GethasDynamicOffset: Boolean;
  18650. function _GetminBindingSize: TGPUSize64;
  18651. procedure _Settype_(const aValue: TGPUBufferBindingType);
  18652. procedure _SethasDynamicOffset(const aValue: Boolean);
  18653. procedure _SetminBindingSize(const aValue: TGPUSize64);
  18654. Public
  18655. class function JSClassName: UnicodeString; override;
  18656. class function Cast(const Intf: IJSObject): IJSGPUBufferBindingLayout;
  18657. property type_: TGPUBufferBindingType read _Gettype_ write _Settype_;
  18658. property hasDynamicOffset: Boolean read _GethasDynamicOffset write _SethasDynamicOffset;
  18659. property minBindingSize: TGPUSize64 read _GetminBindingSize write _SetminBindingSize;
  18660. end;
  18661. { --------------------------------------------------------------------
  18662. TJSGPUSamplerBindingLayout
  18663. --------------------------------------------------------------------}
  18664. TJSGPUSamplerBindingLayoutRec = record
  18665. type_: TGPUSamplerBindingType;
  18666. end;
  18667. IJSGPUSamplerBindingLayout = interface(IJSObject)
  18668. ['{1956EA92-06D6-30A2-9EF2-9E773667E224}']
  18669. function _Gettype_: TGPUSamplerBindingType;
  18670. procedure _Settype_(const aValue: TGPUSamplerBindingType);
  18671. property type_: TGPUSamplerBindingType read _Gettype_ write _Settype_;
  18672. end;
  18673. TJSGPUSamplerBindingLayout = class(TJSObject,IJSGPUSamplerBindingLayout)
  18674. Protected
  18675. function _Gettype_: TGPUSamplerBindingType;
  18676. procedure _Settype_(const aValue: TGPUSamplerBindingType);
  18677. Public
  18678. class function JSClassName: UnicodeString; override;
  18679. class function Cast(const Intf: IJSObject): IJSGPUSamplerBindingLayout;
  18680. property type_: TGPUSamplerBindingType read _Gettype_ write _Settype_;
  18681. end;
  18682. { --------------------------------------------------------------------
  18683. TJSGPUTextureBindingLayout
  18684. --------------------------------------------------------------------}
  18685. TJSGPUTextureBindingLayoutRec = record
  18686. sampleType: TGPUTextureSampleType;
  18687. viewDimension: TGPUTextureViewDimension;
  18688. multisampled: Boolean;
  18689. end;
  18690. IJSGPUTextureBindingLayout = interface(IJSObject)
  18691. ['{CA6C9653-6498-3017-8F13-D4152F0181B9}']
  18692. function _GetsampleType: TGPUTextureSampleType;
  18693. function _GetviewDimension: TGPUTextureViewDimension;
  18694. function _Getmultisampled: Boolean;
  18695. procedure _SetsampleType(const aValue: TGPUTextureSampleType);
  18696. procedure _SetviewDimension(const aValue: TGPUTextureViewDimension);
  18697. procedure _Setmultisampled(const aValue: Boolean);
  18698. property sampleType: TGPUTextureSampleType read _GetsampleType write _SetsampleType;
  18699. property viewDimension: TGPUTextureViewDimension read _GetviewDimension write _SetviewDimension;
  18700. property multisampled: Boolean read _Getmultisampled write _Setmultisampled;
  18701. end;
  18702. TJSGPUTextureBindingLayout = class(TJSObject,IJSGPUTextureBindingLayout)
  18703. Protected
  18704. function _GetsampleType: TGPUTextureSampleType;
  18705. function _GetviewDimension: TGPUTextureViewDimension;
  18706. function _Getmultisampled: Boolean;
  18707. procedure _SetsampleType(const aValue: TGPUTextureSampleType);
  18708. procedure _SetviewDimension(const aValue: TGPUTextureViewDimension);
  18709. procedure _Setmultisampled(const aValue: Boolean);
  18710. Public
  18711. class function JSClassName: UnicodeString; override;
  18712. class function Cast(const Intf: IJSObject): IJSGPUTextureBindingLayout;
  18713. property sampleType: TGPUTextureSampleType read _GetsampleType write _SetsampleType;
  18714. property viewDimension: TGPUTextureViewDimension read _GetviewDimension write _SetviewDimension;
  18715. property multisampled: Boolean read _Getmultisampled write _Setmultisampled;
  18716. end;
  18717. { --------------------------------------------------------------------
  18718. TJSGPUStorageTextureBindingLayout
  18719. --------------------------------------------------------------------}
  18720. TJSGPUStorageTextureBindingLayoutRec = record
  18721. access: TGPUStorageTextureAccess;
  18722. format: TGPUTextureFormat;
  18723. viewDimension: TGPUTextureViewDimension;
  18724. end;
  18725. IJSGPUStorageTextureBindingLayout = interface(IJSObject)
  18726. ['{2F3A3FB7-6B71-30BC-BB27-5C9F46E6E280}']
  18727. function _Getaccess: TGPUStorageTextureAccess;
  18728. function _Getformat: TGPUTextureFormat;
  18729. function _GetviewDimension: TGPUTextureViewDimension;
  18730. procedure _Setaccess(const aValue: TGPUStorageTextureAccess);
  18731. procedure _Setformat(const aValue: TGPUTextureFormat);
  18732. procedure _SetviewDimension(const aValue: TGPUTextureViewDimension);
  18733. property access: TGPUStorageTextureAccess read _Getaccess write _Setaccess;
  18734. property format: TGPUTextureFormat read _Getformat write _Setformat;
  18735. property viewDimension: TGPUTextureViewDimension read _GetviewDimension write _SetviewDimension;
  18736. end;
  18737. TJSGPUStorageTextureBindingLayout = class(TJSObject,IJSGPUStorageTextureBindingLayout)
  18738. Protected
  18739. function _Getaccess: TGPUStorageTextureAccess;
  18740. function _Getformat: TGPUTextureFormat;
  18741. function _GetviewDimension: TGPUTextureViewDimension;
  18742. procedure _Setaccess(const aValue: TGPUStorageTextureAccess);
  18743. procedure _Setformat(const aValue: TGPUTextureFormat);
  18744. procedure _SetviewDimension(const aValue: TGPUTextureViewDimension);
  18745. Public
  18746. class function JSClassName: UnicodeString; override;
  18747. class function Cast(const Intf: IJSObject): IJSGPUStorageTextureBindingLayout;
  18748. property access: TGPUStorageTextureAccess read _Getaccess write _Setaccess;
  18749. property format: TGPUTextureFormat read _Getformat write _Setformat;
  18750. property viewDimension: TGPUTextureViewDimension read _GetviewDimension write _SetviewDimension;
  18751. end;
  18752. { --------------------------------------------------------------------
  18753. TJSGPUBindGroupEntry
  18754. --------------------------------------------------------------------}
  18755. TJSGPUBindGroupEntryRec = record
  18756. binding: TGPUIndex32;
  18757. resource: TGPUBindingResource;
  18758. end;
  18759. IJSGPUBindGroupEntry = interface(IJSObject)
  18760. ['{B1513BB7-25C5-3C6C-877A-E2C13686A3AF}']
  18761. function _Getbinding: TGPUIndex32;
  18762. function _Getresource: TGPUBindingResource;
  18763. procedure _Setbinding(const aValue: TGPUIndex32);
  18764. procedure _Setresource(const aValue: TGPUBindingResource);
  18765. property binding: TGPUIndex32 read _Getbinding write _Setbinding;
  18766. property resource: TGPUBindingResource read _Getresource write _Setresource;
  18767. end;
  18768. TJSGPUBindGroupEntry = class(TJSObject,IJSGPUBindGroupEntry)
  18769. Protected
  18770. function _Getbinding: TGPUIndex32;
  18771. function _Getresource: TGPUBindingResource;
  18772. procedure _Setbinding(const aValue: TGPUIndex32);
  18773. procedure _Setresource(const aValue: TGPUBindingResource);
  18774. Public
  18775. class function JSClassName: UnicodeString; override;
  18776. class function Cast(const Intf: IJSObject): IJSGPUBindGroupEntry;
  18777. property binding: TGPUIndex32 read _Getbinding write _Setbinding;
  18778. property resource: TGPUBindingResource read _Getresource write _Setresource;
  18779. end;
  18780. { --------------------------------------------------------------------
  18781. TJSGPUBufferBinding
  18782. --------------------------------------------------------------------}
  18783. TJSGPUBufferBindingRec = record
  18784. buffer: TJSGPUBuffer;
  18785. offset: TGPUSize64;
  18786. size: TGPUSize64;
  18787. end;
  18788. IJSGPUBufferBinding = interface(IJSObject)
  18789. ['{A76275CF-FC41-36F6-B4CE-FE41FE33D398}']
  18790. function _Getbuffer: IJSGPUBuffer;
  18791. function _Getoffset: TGPUSize64;
  18792. function _Getsize: TGPUSize64;
  18793. procedure _Setbuffer(const aValue: IJSGPUBuffer);
  18794. procedure _Setoffset(const aValue: TGPUSize64);
  18795. procedure _Setsize(const aValue: TGPUSize64);
  18796. property buffer: IJSGPUBuffer read _Getbuffer write _Setbuffer;
  18797. property offset: TGPUSize64 read _Getoffset write _Setoffset;
  18798. property size: TGPUSize64 read _Getsize write _Setsize;
  18799. end;
  18800. TJSGPUBufferBinding = class(TJSObject,IJSGPUBufferBinding)
  18801. Protected
  18802. function _Getbuffer: IJSGPUBuffer;
  18803. function _Getoffset: TGPUSize64;
  18804. function _Getsize: TGPUSize64;
  18805. procedure _Setbuffer(const aValue: IJSGPUBuffer);
  18806. procedure _Setoffset(const aValue: TGPUSize64);
  18807. procedure _Setsize(const aValue: TGPUSize64);
  18808. Public
  18809. class function JSClassName: UnicodeString; override;
  18810. class function Cast(const Intf: IJSObject): IJSGPUBufferBinding;
  18811. property buffer: IJSGPUBuffer read _Getbuffer write _Setbuffer;
  18812. property offset: TGPUSize64 read _Getoffset write _Setoffset;
  18813. property size: TGPUSize64 read _Getsize write _Setsize;
  18814. end;
  18815. { --------------------------------------------------------------------
  18816. TJSGPUProgrammableStage
  18817. --------------------------------------------------------------------}
  18818. TJSGPUProgrammableStageRec = record
  18819. module: TJSGPUShaderModule;
  18820. entryPoint: UnicodeString;
  18821. end;
  18822. IJSGPUProgrammableStage = interface(IJSObject)
  18823. ['{8F128391-F125-3D04-97AC-CA5719D4045F}']
  18824. function _Getmodule: IJSGPUShaderModule;
  18825. function _GetentryPoint: UnicodeString;
  18826. procedure _Setmodule(const aValue: IJSGPUShaderModule);
  18827. procedure _SetentryPoint(const aValue: UnicodeString);
  18828. property module: IJSGPUShaderModule read _Getmodule write _Setmodule;
  18829. property entryPoint: UnicodeString read _GetentryPoint write _SetentryPoint;
  18830. end;
  18831. TJSGPUProgrammableStage = class(TJSObject,IJSGPUProgrammableStage)
  18832. Protected
  18833. function _Getmodule: IJSGPUShaderModule;
  18834. function _GetentryPoint: UnicodeString;
  18835. procedure _Setmodule(const aValue: IJSGPUShaderModule);
  18836. procedure _SetentryPoint(const aValue: UnicodeString);
  18837. Public
  18838. class function JSClassName: UnicodeString; override;
  18839. class function Cast(const Intf: IJSObject): IJSGPUProgrammableStage;
  18840. property module: IJSGPUShaderModule read _Getmodule write _Setmodule;
  18841. property entryPoint: UnicodeString read _GetentryPoint write _SetentryPoint;
  18842. end;
  18843. { --------------------------------------------------------------------
  18844. TJSGPUPrimitiveState
  18845. --------------------------------------------------------------------}
  18846. TJSGPUPrimitiveStateRec = record
  18847. topology: TGPUPrimitiveTopology;
  18848. stripIndexFormat: TGPUIndexFormat;
  18849. frontFace: TGPUFrontFace;
  18850. cullMode: TGPUCullMode;
  18851. unclippedDepth: Boolean;
  18852. end;
  18853. IJSGPUPrimitiveState = interface(IJSObject)
  18854. ['{454DD79C-680A-3028-AE24-11C6B856E228}']
  18855. function _Gettopology: TGPUPrimitiveTopology;
  18856. function _GetstripIndexFormat: TGPUIndexFormat;
  18857. function _GetfrontFace: TGPUFrontFace;
  18858. function _GetcullMode: TGPUCullMode;
  18859. function _GetunclippedDepth: Boolean;
  18860. procedure _Settopology(const aValue: TGPUPrimitiveTopology);
  18861. procedure _SetstripIndexFormat(const aValue: TGPUIndexFormat);
  18862. procedure _SetfrontFace(const aValue: TGPUFrontFace);
  18863. procedure _SetcullMode(const aValue: TGPUCullMode);
  18864. procedure _SetunclippedDepth(const aValue: Boolean);
  18865. property topology: TGPUPrimitiveTopology read _Gettopology write _Settopology;
  18866. property stripIndexFormat: TGPUIndexFormat read _GetstripIndexFormat write _SetstripIndexFormat;
  18867. property frontFace: TGPUFrontFace read _GetfrontFace write _SetfrontFace;
  18868. property cullMode: TGPUCullMode read _GetcullMode write _SetcullMode;
  18869. property unclippedDepth: Boolean read _GetunclippedDepth write _SetunclippedDepth;
  18870. end;
  18871. TJSGPUPrimitiveState = class(TJSObject,IJSGPUPrimitiveState)
  18872. Protected
  18873. function _Gettopology: TGPUPrimitiveTopology;
  18874. function _GetstripIndexFormat: TGPUIndexFormat;
  18875. function _GetfrontFace: TGPUFrontFace;
  18876. function _GetcullMode: TGPUCullMode;
  18877. function _GetunclippedDepth: Boolean;
  18878. procedure _Settopology(const aValue: TGPUPrimitiveTopology);
  18879. procedure _SetstripIndexFormat(const aValue: TGPUIndexFormat);
  18880. procedure _SetfrontFace(const aValue: TGPUFrontFace);
  18881. procedure _SetcullMode(const aValue: TGPUCullMode);
  18882. procedure _SetunclippedDepth(const aValue: Boolean);
  18883. Public
  18884. class function JSClassName: UnicodeString; override;
  18885. class function Cast(const Intf: IJSObject): IJSGPUPrimitiveState;
  18886. property topology: TGPUPrimitiveTopology read _Gettopology write _Settopology;
  18887. property stripIndexFormat: TGPUIndexFormat read _GetstripIndexFormat write _SetstripIndexFormat;
  18888. property frontFace: TGPUFrontFace read _GetfrontFace write _SetfrontFace;
  18889. property cullMode: TGPUCullMode read _GetcullMode write _SetcullMode;
  18890. property unclippedDepth: Boolean read _GetunclippedDepth write _SetunclippedDepth;
  18891. end;
  18892. { --------------------------------------------------------------------
  18893. TJSGPUMultisampleState
  18894. --------------------------------------------------------------------}
  18895. TJSGPUMultisampleStateRec = record
  18896. count: TGPUSize32;
  18897. mask: TGPUSampleMask;
  18898. alphaToCoverageEnabled: Boolean;
  18899. end;
  18900. IJSGPUMultisampleState = interface(IJSObject)
  18901. ['{C92DBC47-7056-3BC4-A533-CBBE4F3D24E7}']
  18902. function _Getcount: TGPUSize32;
  18903. function _Getmask: TGPUSampleMask;
  18904. function _GetalphaToCoverageEnabled: Boolean;
  18905. procedure _Setcount(const aValue: TGPUSize32);
  18906. procedure _Setmask(const aValue: TGPUSampleMask);
  18907. procedure _SetalphaToCoverageEnabled(const aValue: Boolean);
  18908. property count: TGPUSize32 read _Getcount write _Setcount;
  18909. property mask: TGPUSampleMask read _Getmask write _Setmask;
  18910. property alphaToCoverageEnabled: Boolean read _GetalphaToCoverageEnabled write _SetalphaToCoverageEnabled;
  18911. end;
  18912. TJSGPUMultisampleState = class(TJSObject,IJSGPUMultisampleState)
  18913. Protected
  18914. function _Getcount: TGPUSize32;
  18915. function _Getmask: TGPUSampleMask;
  18916. function _GetalphaToCoverageEnabled: Boolean;
  18917. procedure _Setcount(const aValue: TGPUSize32);
  18918. procedure _Setmask(const aValue: TGPUSampleMask);
  18919. procedure _SetalphaToCoverageEnabled(const aValue: Boolean);
  18920. Public
  18921. class function JSClassName: UnicodeString; override;
  18922. class function Cast(const Intf: IJSObject): IJSGPUMultisampleState;
  18923. property count: TGPUSize32 read _Getcount write _Setcount;
  18924. property mask: TGPUSampleMask read _Getmask write _Setmask;
  18925. property alphaToCoverageEnabled: Boolean read _GetalphaToCoverageEnabled write _SetalphaToCoverageEnabled;
  18926. end;
  18927. { --------------------------------------------------------------------
  18928. TJSGPUColorTargetState
  18929. --------------------------------------------------------------------}
  18930. TJSGPUColorTargetStateRec = record
  18931. format: TGPUTextureFormat;
  18932. blend: TJSGPUBlendState;
  18933. writeMask: TGPUColorWriteFlags;
  18934. end;
  18935. IJSGPUColorTargetState = interface(IJSObject)
  18936. ['{D3433FFD-2A0B-335A-91B7-2682807AB63C}']
  18937. function _Getformat: TGPUTextureFormat;
  18938. function _Getblend: TJSGPUBlendState;
  18939. function _GetwriteMask: TGPUColorWriteFlags;
  18940. procedure _Setformat(const aValue: TGPUTextureFormat);
  18941. procedure _Setblend(const aValue: TJSGPUBlendState);
  18942. procedure _SetwriteMask(const aValue: TGPUColorWriteFlags);
  18943. property format: TGPUTextureFormat read _Getformat write _Setformat;
  18944. property blend: TJSGPUBlendState read _Getblend write _Setblend;
  18945. property writeMask: TGPUColorWriteFlags read _GetwriteMask write _SetwriteMask;
  18946. end;
  18947. TJSGPUColorTargetState = class(TJSObject,IJSGPUColorTargetState)
  18948. Protected
  18949. function _Getformat: TGPUTextureFormat;
  18950. function _Getblend: TJSGPUBlendState;
  18951. function _GetwriteMask: TGPUColorWriteFlags;
  18952. procedure _Setformat(const aValue: TGPUTextureFormat);
  18953. procedure _Setblend(const aValue: TJSGPUBlendState);
  18954. procedure _SetwriteMask(const aValue: TGPUColorWriteFlags);
  18955. Public
  18956. class function JSClassName: UnicodeString; override;
  18957. class function Cast(const Intf: IJSObject): IJSGPUColorTargetState;
  18958. property format: TGPUTextureFormat read _Getformat write _Setformat;
  18959. property blend: TJSGPUBlendState read _Getblend write _Setblend;
  18960. property writeMask: TGPUColorWriteFlags read _GetwriteMask write _SetwriteMask;
  18961. end;
  18962. { --------------------------------------------------------------------
  18963. TJSGPUBlendState
  18964. --------------------------------------------------------------------}
  18965. TJSGPUBlendStateRec = record
  18966. color: TJSGPUBlendComponent;
  18967. alpha: TJSGPUBlendComponent;
  18968. end;
  18969. IJSGPUBlendState = interface(IJSObject)
  18970. ['{868EC5EF-3C9D-3EBF-9E5D-2EBA51BFA52D}']
  18971. function _Getcolor: TJSGPUBlendComponent;
  18972. function _Getalpha: TJSGPUBlendComponent;
  18973. procedure _Setcolor(const aValue: TJSGPUBlendComponent);
  18974. procedure _Setalpha(const aValue: TJSGPUBlendComponent);
  18975. property color: TJSGPUBlendComponent read _Getcolor write _Setcolor;
  18976. property alpha: TJSGPUBlendComponent read _Getalpha write _Setalpha;
  18977. end;
  18978. TJSGPUBlendState = class(TJSObject,IJSGPUBlendState)
  18979. Protected
  18980. function _Getcolor: TJSGPUBlendComponent;
  18981. function _Getalpha: TJSGPUBlendComponent;
  18982. procedure _Setcolor(const aValue: TJSGPUBlendComponent);
  18983. procedure _Setalpha(const aValue: TJSGPUBlendComponent);
  18984. Public
  18985. class function JSClassName: UnicodeString; override;
  18986. class function Cast(const Intf: IJSObject): IJSGPUBlendState;
  18987. property color: TJSGPUBlendComponent read _Getcolor write _Setcolor;
  18988. property alpha: TJSGPUBlendComponent read _Getalpha write _Setalpha;
  18989. end;
  18990. { --------------------------------------------------------------------
  18991. TJSGPUBlendComponent
  18992. --------------------------------------------------------------------}
  18993. TJSGPUBlendComponentRec = record
  18994. operation: TGPUBlendOperation;
  18995. srcFactor: TGPUBlendFactor;
  18996. dstFactor: TGPUBlendFactor;
  18997. end;
  18998. IJSGPUBlendComponent = interface(IJSObject)
  18999. ['{A2CA17BB-2866-35CA-A44F-308AC361319A}']
  19000. function _Getoperation: TGPUBlendOperation;
  19001. function _GetsrcFactor: TGPUBlendFactor;
  19002. function _GetdstFactor: TGPUBlendFactor;
  19003. procedure _Setoperation(const aValue: TGPUBlendOperation);
  19004. procedure _SetsrcFactor(const aValue: TGPUBlendFactor);
  19005. procedure _SetdstFactor(const aValue: TGPUBlendFactor);
  19006. property operation: TGPUBlendOperation read _Getoperation write _Setoperation;
  19007. property srcFactor: TGPUBlendFactor read _GetsrcFactor write _SetsrcFactor;
  19008. property dstFactor: TGPUBlendFactor read _GetdstFactor write _SetdstFactor;
  19009. end;
  19010. TJSGPUBlendComponent = class(TJSObject,IJSGPUBlendComponent)
  19011. Protected
  19012. function _Getoperation: TGPUBlendOperation;
  19013. function _GetsrcFactor: TGPUBlendFactor;
  19014. function _GetdstFactor: TGPUBlendFactor;
  19015. procedure _Setoperation(const aValue: TGPUBlendOperation);
  19016. procedure _SetsrcFactor(const aValue: TGPUBlendFactor);
  19017. procedure _SetdstFactor(const aValue: TGPUBlendFactor);
  19018. Public
  19019. class function JSClassName: UnicodeString; override;
  19020. class function Cast(const Intf: IJSObject): IJSGPUBlendComponent;
  19021. property operation: TGPUBlendOperation read _Getoperation write _Setoperation;
  19022. property srcFactor: TGPUBlendFactor read _GetsrcFactor write _SetsrcFactor;
  19023. property dstFactor: TGPUBlendFactor read _GetdstFactor write _SetdstFactor;
  19024. end;
  19025. { --------------------------------------------------------------------
  19026. TJSGPUDepthStencilState
  19027. --------------------------------------------------------------------}
  19028. TJSGPUDepthStencilStateRec = record
  19029. format: TGPUTextureFormat;
  19030. depthWriteEnabled: Boolean;
  19031. depthCompare: TGPUCompareFunction;
  19032. stencilFront: TJSGPUStencilFaceState;
  19033. stencilBack: TJSGPUStencilFaceState;
  19034. stencilReadMask: TGPUStencilValue;
  19035. stencilWriteMask: TGPUStencilValue;
  19036. depthBias: TGPUDepthBias;
  19037. depthBiasSlopeScale: Single;
  19038. depthBiasClamp: Single;
  19039. end;
  19040. IJSGPUDepthStencilState = interface(IJSObject)
  19041. ['{1A3F59CB-2B85-300F-BF39-8A4EAD4820FA}']
  19042. function _Getformat: TGPUTextureFormat;
  19043. function _GetdepthWriteEnabled: Boolean;
  19044. function _GetdepthCompare: TGPUCompareFunction;
  19045. function _GetstencilFront: TJSGPUStencilFaceState;
  19046. function _GetstencilBack: TJSGPUStencilFaceState;
  19047. function _GetstencilReadMask: TGPUStencilValue;
  19048. function _GetstencilWriteMask: TGPUStencilValue;
  19049. function _GetdepthBias: TGPUDepthBias;
  19050. function _GetdepthBiasSlopeScale: Single;
  19051. function _GetdepthBiasClamp: Single;
  19052. procedure _Setformat(const aValue: TGPUTextureFormat);
  19053. procedure _SetdepthWriteEnabled(const aValue: Boolean);
  19054. procedure _SetdepthCompare(const aValue: TGPUCompareFunction);
  19055. procedure _SetstencilFront(const aValue: TJSGPUStencilFaceState);
  19056. procedure _SetstencilBack(const aValue: TJSGPUStencilFaceState);
  19057. procedure _SetstencilReadMask(const aValue: TGPUStencilValue);
  19058. procedure _SetstencilWriteMask(const aValue: TGPUStencilValue);
  19059. procedure _SetdepthBias(const aValue: TGPUDepthBias);
  19060. procedure _SetdepthBiasSlopeScale(const aValue: Single);
  19061. procedure _SetdepthBiasClamp(const aValue: Single);
  19062. property format: TGPUTextureFormat read _Getformat write _Setformat;
  19063. property depthWriteEnabled: Boolean read _GetdepthWriteEnabled write _SetdepthWriteEnabled;
  19064. property depthCompare: TGPUCompareFunction read _GetdepthCompare write _SetdepthCompare;
  19065. property stencilFront: TJSGPUStencilFaceState read _GetstencilFront write _SetstencilFront;
  19066. property stencilBack: TJSGPUStencilFaceState read _GetstencilBack write _SetstencilBack;
  19067. property stencilReadMask: TGPUStencilValue read _GetstencilReadMask write _SetstencilReadMask;
  19068. property stencilWriteMask: TGPUStencilValue read _GetstencilWriteMask write _SetstencilWriteMask;
  19069. property depthBias: TGPUDepthBias read _GetdepthBias write _SetdepthBias;
  19070. property depthBiasSlopeScale: Single read _GetdepthBiasSlopeScale write _SetdepthBiasSlopeScale;
  19071. property depthBiasClamp: Single read _GetdepthBiasClamp write _SetdepthBiasClamp;
  19072. end;
  19073. TJSGPUDepthStencilState = class(TJSObject,IJSGPUDepthStencilState)
  19074. Protected
  19075. function _Getformat: TGPUTextureFormat;
  19076. function _GetdepthWriteEnabled: Boolean;
  19077. function _GetdepthCompare: TGPUCompareFunction;
  19078. function _GetstencilFront: TJSGPUStencilFaceState;
  19079. function _GetstencilBack: TJSGPUStencilFaceState;
  19080. function _GetstencilReadMask: TGPUStencilValue;
  19081. function _GetstencilWriteMask: TGPUStencilValue;
  19082. function _GetdepthBias: TGPUDepthBias;
  19083. function _GetdepthBiasSlopeScale: Single;
  19084. function _GetdepthBiasClamp: Single;
  19085. procedure _Setformat(const aValue: TGPUTextureFormat);
  19086. procedure _SetdepthWriteEnabled(const aValue: Boolean);
  19087. procedure _SetdepthCompare(const aValue: TGPUCompareFunction);
  19088. procedure _SetstencilFront(const aValue: TJSGPUStencilFaceState);
  19089. procedure _SetstencilBack(const aValue: TJSGPUStencilFaceState);
  19090. procedure _SetstencilReadMask(const aValue: TGPUStencilValue);
  19091. procedure _SetstencilWriteMask(const aValue: TGPUStencilValue);
  19092. procedure _SetdepthBias(const aValue: TGPUDepthBias);
  19093. procedure _SetdepthBiasSlopeScale(const aValue: Single);
  19094. procedure _SetdepthBiasClamp(const aValue: Single);
  19095. Public
  19096. class function JSClassName: UnicodeString; override;
  19097. class function Cast(const Intf: IJSObject): IJSGPUDepthStencilState;
  19098. property format: TGPUTextureFormat read _Getformat write _Setformat;
  19099. property depthWriteEnabled: Boolean read _GetdepthWriteEnabled write _SetdepthWriteEnabled;
  19100. property depthCompare: TGPUCompareFunction read _GetdepthCompare write _SetdepthCompare;
  19101. property stencilFront: TJSGPUStencilFaceState read _GetstencilFront write _SetstencilFront;
  19102. property stencilBack: TJSGPUStencilFaceState read _GetstencilBack write _SetstencilBack;
  19103. property stencilReadMask: TGPUStencilValue read _GetstencilReadMask write _SetstencilReadMask;
  19104. property stencilWriteMask: TGPUStencilValue read _GetstencilWriteMask write _SetstencilWriteMask;
  19105. property depthBias: TGPUDepthBias read _GetdepthBias write _SetdepthBias;
  19106. property depthBiasSlopeScale: Single read _GetdepthBiasSlopeScale write _SetdepthBiasSlopeScale;
  19107. property depthBiasClamp: Single read _GetdepthBiasClamp write _SetdepthBiasClamp;
  19108. end;
  19109. { --------------------------------------------------------------------
  19110. TJSGPUStencilFaceState
  19111. --------------------------------------------------------------------}
  19112. TJSGPUStencilFaceStateRec = record
  19113. compare: TGPUCompareFunction;
  19114. failOp: TGPUStencilOperation;
  19115. depthFailOp: TGPUStencilOperation;
  19116. passOp: TGPUStencilOperation;
  19117. end;
  19118. IJSGPUStencilFaceState = interface(IJSObject)
  19119. ['{1C87D1C3-F47A-32A8-BA4A-D9344F06B68A}']
  19120. function _Getcompare: TGPUCompareFunction;
  19121. function _GetfailOp: TGPUStencilOperation;
  19122. function _GetdepthFailOp: TGPUStencilOperation;
  19123. function _GetpassOp: TGPUStencilOperation;
  19124. procedure _Setcompare(const aValue: TGPUCompareFunction);
  19125. procedure _SetfailOp(const aValue: TGPUStencilOperation);
  19126. procedure _SetdepthFailOp(const aValue: TGPUStencilOperation);
  19127. procedure _SetpassOp(const aValue: TGPUStencilOperation);
  19128. property compare: TGPUCompareFunction read _Getcompare write _Setcompare;
  19129. property failOp: TGPUStencilOperation read _GetfailOp write _SetfailOp;
  19130. property depthFailOp: TGPUStencilOperation read _GetdepthFailOp write _SetdepthFailOp;
  19131. property passOp: TGPUStencilOperation read _GetpassOp write _SetpassOp;
  19132. end;
  19133. TJSGPUStencilFaceState = class(TJSObject,IJSGPUStencilFaceState)
  19134. Protected
  19135. function _Getcompare: TGPUCompareFunction;
  19136. function _GetfailOp: TGPUStencilOperation;
  19137. function _GetdepthFailOp: TGPUStencilOperation;
  19138. function _GetpassOp: TGPUStencilOperation;
  19139. procedure _Setcompare(const aValue: TGPUCompareFunction);
  19140. procedure _SetfailOp(const aValue: TGPUStencilOperation);
  19141. procedure _SetdepthFailOp(const aValue: TGPUStencilOperation);
  19142. procedure _SetpassOp(const aValue: TGPUStencilOperation);
  19143. Public
  19144. class function JSClassName: UnicodeString; override;
  19145. class function Cast(const Intf: IJSObject): IJSGPUStencilFaceState;
  19146. property compare: TGPUCompareFunction read _Getcompare write _Setcompare;
  19147. property failOp: TGPUStencilOperation read _GetfailOp write _SetfailOp;
  19148. property depthFailOp: TGPUStencilOperation read _GetdepthFailOp write _SetdepthFailOp;
  19149. property passOp: TGPUStencilOperation read _GetpassOp write _SetpassOp;
  19150. end;
  19151. { --------------------------------------------------------------------
  19152. TJSGPUVertexBufferLayout
  19153. --------------------------------------------------------------------}
  19154. TJSGPUVertexAttributeDynArray = IJSArray; // array of GPUVertexAttribute
  19155. TJSGPUVertexBufferLayoutRec = record
  19156. arrayStride: TGPUSize64;
  19157. stepMode: TGPUVertexStepMode;
  19158. attributes: TJSGPUVertexAttributeDynArray;
  19159. end;
  19160. IJSGPUVertexBufferLayout = interface(IJSObject)
  19161. ['{7944481A-7C20-38C3-9DC1-28422D4B5D61}']
  19162. function _GetarrayStride: TGPUSize64;
  19163. function _GetstepMode: TGPUVertexStepMode;
  19164. function _Getattributes: TJSGPUVertexAttributeDynArray;
  19165. procedure _SetarrayStride(const aValue: TGPUSize64);
  19166. procedure _SetstepMode(const aValue: TGPUVertexStepMode);
  19167. procedure _Setattributes(const aValue: TJSGPUVertexAttributeDynArray);
  19168. property arrayStride: TGPUSize64 read _GetarrayStride write _SetarrayStride;
  19169. property stepMode: TGPUVertexStepMode read _GetstepMode write _SetstepMode;
  19170. property attributes: TJSGPUVertexAttributeDynArray read _Getattributes write _Setattributes;
  19171. end;
  19172. TJSGPUVertexBufferLayout = class(TJSObject,IJSGPUVertexBufferLayout)
  19173. Protected
  19174. function _GetarrayStride: TGPUSize64;
  19175. function _GetstepMode: TGPUVertexStepMode;
  19176. function _Getattributes: TJSGPUVertexAttributeDynArray;
  19177. procedure _SetarrayStride(const aValue: TGPUSize64);
  19178. procedure _SetstepMode(const aValue: TGPUVertexStepMode);
  19179. procedure _Setattributes(const aValue: TJSGPUVertexAttributeDynArray);
  19180. Public
  19181. class function JSClassName: UnicodeString; override;
  19182. class function Cast(const Intf: IJSObject): IJSGPUVertexBufferLayout;
  19183. property arrayStride: TGPUSize64 read _GetarrayStride write _SetarrayStride;
  19184. property stepMode: TGPUVertexStepMode read _GetstepMode write _SetstepMode;
  19185. property attributes: TJSGPUVertexAttributeDynArray read _Getattributes write _Setattributes;
  19186. end;
  19187. { --------------------------------------------------------------------
  19188. TJSGPUVertexAttribute
  19189. --------------------------------------------------------------------}
  19190. TJSGPUVertexAttributeRec = record
  19191. format: TGPUVertexFormat;
  19192. offset: TGPUSize64;
  19193. shaderLocation: TGPUIndex32;
  19194. end;
  19195. IJSGPUVertexAttribute = interface(IJSObject)
  19196. ['{1E7B6292-823E-37EC-8C51-2C2917C9EB6D}']
  19197. function _Getformat: TGPUVertexFormat;
  19198. function _Getoffset: TGPUSize64;
  19199. function _GetshaderLocation: TGPUIndex32;
  19200. procedure _Setformat(const aValue: TGPUVertexFormat);
  19201. procedure _Setoffset(const aValue: TGPUSize64);
  19202. procedure _SetshaderLocation(const aValue: TGPUIndex32);
  19203. property format: TGPUVertexFormat read _Getformat write _Setformat;
  19204. property offset: TGPUSize64 read _Getoffset write _Setoffset;
  19205. property shaderLocation: TGPUIndex32 read _GetshaderLocation write _SetshaderLocation;
  19206. end;
  19207. TJSGPUVertexAttribute = class(TJSObject,IJSGPUVertexAttribute)
  19208. Protected
  19209. function _Getformat: TGPUVertexFormat;
  19210. function _Getoffset: TGPUSize64;
  19211. function _GetshaderLocation: TGPUIndex32;
  19212. procedure _Setformat(const aValue: TGPUVertexFormat);
  19213. procedure _Setoffset(const aValue: TGPUSize64);
  19214. procedure _SetshaderLocation(const aValue: TGPUIndex32);
  19215. Public
  19216. class function JSClassName: UnicodeString; override;
  19217. class function Cast(const Intf: IJSObject): IJSGPUVertexAttribute;
  19218. property format: TGPUVertexFormat read _Getformat write _Setformat;
  19219. property offset: TGPUSize64 read _Getoffset write _Setoffset;
  19220. property shaderLocation: TGPUIndex32 read _GetshaderLocation write _SetshaderLocation;
  19221. end;
  19222. { --------------------------------------------------------------------
  19223. TJSGPUImageDataLayout
  19224. --------------------------------------------------------------------}
  19225. TJSGPUImageDataLayoutRec = record
  19226. offset: TGPUSize64;
  19227. bytesPerRow: TGPUSize32;
  19228. rowsPerImage: TGPUSize32;
  19229. end;
  19230. IJSGPUImageDataLayout = interface(IJSObject)
  19231. ['{7B05EBA3-A44B-3F4C-8312-7A9758A38131}']
  19232. function _Getoffset: TGPUSize64;
  19233. function _GetbytesPerRow: TGPUSize32;
  19234. function _GetrowsPerImage: TGPUSize32;
  19235. procedure _Setoffset(const aValue: TGPUSize64);
  19236. procedure _SetbytesPerRow(const aValue: TGPUSize32);
  19237. procedure _SetrowsPerImage(const aValue: TGPUSize32);
  19238. property offset: TGPUSize64 read _Getoffset write _Setoffset;
  19239. property bytesPerRow: TGPUSize32 read _GetbytesPerRow write _SetbytesPerRow;
  19240. property rowsPerImage: TGPUSize32 read _GetrowsPerImage write _SetrowsPerImage;
  19241. end;
  19242. TJSGPUImageDataLayout = class(TJSObject,IJSGPUImageDataLayout)
  19243. Protected
  19244. function _Getoffset: TGPUSize64;
  19245. function _GetbytesPerRow: TGPUSize32;
  19246. function _GetrowsPerImage: TGPUSize32;
  19247. procedure _Setoffset(const aValue: TGPUSize64);
  19248. procedure _SetbytesPerRow(const aValue: TGPUSize32);
  19249. procedure _SetrowsPerImage(const aValue: TGPUSize32);
  19250. Public
  19251. class function JSClassName: UnicodeString; override;
  19252. class function Cast(const Intf: IJSObject): IJSGPUImageDataLayout;
  19253. property offset: TGPUSize64 read _Getoffset write _Setoffset;
  19254. property bytesPerRow: TGPUSize32 read _GetbytesPerRow write _SetbytesPerRow;
  19255. property rowsPerImage: TGPUSize32 read _GetrowsPerImage write _SetrowsPerImage;
  19256. end;
  19257. { --------------------------------------------------------------------
  19258. TJSGPUImageCopyTexture
  19259. --------------------------------------------------------------------}
  19260. TJSGPUImageCopyTextureRec = record
  19261. texture: TJSGPUTexture;
  19262. mipLevel: TGPUIntegerCoordinate;
  19263. origin: TGPUOrigin3D;
  19264. aspect: TGPUTextureAspect;
  19265. end;
  19266. IJSGPUImageCopyTexture = interface(IJSObject)
  19267. ['{675BF611-9048-39AC-BCF1-1B03A456E33D}']
  19268. function _Gettexture: IJSGPUTexture;
  19269. function _GetmipLevel: TGPUIntegerCoordinate;
  19270. function _Getorigin: TGPUOrigin3D;
  19271. function _Getaspect: TGPUTextureAspect;
  19272. procedure _Settexture(const aValue: IJSGPUTexture);
  19273. procedure _SetmipLevel(const aValue: TGPUIntegerCoordinate);
  19274. procedure _Setorigin(const aValue: TGPUOrigin3D);
  19275. procedure _Setaspect(const aValue: TGPUTextureAspect);
  19276. property texture: IJSGPUTexture read _Gettexture write _Settexture;
  19277. property mipLevel: TGPUIntegerCoordinate read _GetmipLevel write _SetmipLevel;
  19278. property origin: TGPUOrigin3D read _Getorigin write _Setorigin;
  19279. property aspect: TGPUTextureAspect read _Getaspect write _Setaspect;
  19280. end;
  19281. TJSGPUImageCopyTexture = class(TJSObject,IJSGPUImageCopyTexture)
  19282. Protected
  19283. function _Gettexture: IJSGPUTexture;
  19284. function _GetmipLevel: TGPUIntegerCoordinate;
  19285. function _Getorigin: TGPUOrigin3D;
  19286. function _Getaspect: TGPUTextureAspect;
  19287. procedure _Settexture(const aValue: IJSGPUTexture);
  19288. procedure _SetmipLevel(const aValue: TGPUIntegerCoordinate);
  19289. procedure _Setorigin(const aValue: TGPUOrigin3D);
  19290. procedure _Setaspect(const aValue: TGPUTextureAspect);
  19291. Public
  19292. class function JSClassName: UnicodeString; override;
  19293. class function Cast(const Intf: IJSObject): IJSGPUImageCopyTexture;
  19294. property texture: IJSGPUTexture read _Gettexture write _Settexture;
  19295. property mipLevel: TGPUIntegerCoordinate read _GetmipLevel write _SetmipLevel;
  19296. property origin: TGPUOrigin3D read _Getorigin write _Setorigin;
  19297. property aspect: TGPUTextureAspect read _Getaspect write _Setaspect;
  19298. end;
  19299. { --------------------------------------------------------------------
  19300. TJSGPUImageCopyExternalImage
  19301. --------------------------------------------------------------------}
  19302. // Union of ImageBitmap, HTMLCanvasElement, OffscreenCanvas
  19303. TGPUImageCopyExternalImage_source_Type = Variant;
  19304. TJSGPUImageCopyExternalImageRec = record
  19305. source: TGPUImageCopyExternalImage_source_Type;
  19306. origin: TGPUOrigin2D;
  19307. flipY: Boolean;
  19308. end;
  19309. IJSGPUImageCopyExternalImage = interface(IJSObject)
  19310. ['{4430795C-B91B-3240-8FA5-E17C3136FED5}']
  19311. function _Getsource: TGPUImageCopyExternalImage_source_Type;
  19312. function _Getorigin: TGPUOrigin2D;
  19313. function _GetflipY: Boolean;
  19314. procedure _Setsource(const aValue: TGPUImageCopyExternalImage_source_Type);
  19315. procedure _Setorigin(const aValue: TGPUOrigin2D);
  19316. procedure _SetflipY(const aValue: Boolean);
  19317. property source: TGPUImageCopyExternalImage_source_Type read _Getsource write _Setsource;
  19318. property origin: TGPUOrigin2D read _Getorigin write _Setorigin;
  19319. property flipY: Boolean read _GetflipY write _SetflipY;
  19320. end;
  19321. TJSGPUImageCopyExternalImage = class(TJSObject,IJSGPUImageCopyExternalImage)
  19322. Protected
  19323. function _Getsource: TGPUImageCopyExternalImage_source_Type;
  19324. function _Getorigin: TGPUOrigin2D;
  19325. function _GetflipY: Boolean;
  19326. procedure _Setsource(const aValue: TGPUImageCopyExternalImage_source_Type);
  19327. procedure _Setorigin(const aValue: TGPUOrigin2D);
  19328. procedure _SetflipY(const aValue: Boolean);
  19329. Public
  19330. class function JSClassName: UnicodeString; override;
  19331. class function Cast(const Intf: IJSObject): IJSGPUImageCopyExternalImage;
  19332. property source: TGPUImageCopyExternalImage_source_Type read _Getsource write _Setsource;
  19333. property origin: TGPUOrigin2D read _Getorigin write _Setorigin;
  19334. property flipY: Boolean read _GetflipY write _SetflipY;
  19335. end;
  19336. { --------------------------------------------------------------------
  19337. TJSGPURenderPassColorAttachment
  19338. --------------------------------------------------------------------}
  19339. TJSGPURenderPassColorAttachmentRec = record
  19340. view: TJSGPUTextureView;
  19341. resolveTarget: TJSGPUTextureView;
  19342. clearValue: TGPUColor;
  19343. loadOp: TGPULoadOp;
  19344. storeOp: TGPUStoreOp;
  19345. end;
  19346. IJSGPURenderPassColorAttachment = interface(IJSObject)
  19347. ['{A4CDC7FA-B9CD-3C2B-9FE5-817F745D78FB}']
  19348. function _Getview: IJSGPUTextureView;
  19349. function _GetresolveTarget: IJSGPUTextureView;
  19350. function _GetclearValue: TGPUColor;
  19351. function _GetloadOp: TGPULoadOp;
  19352. function _GetstoreOp: TGPUStoreOp;
  19353. procedure _Setview(const aValue: IJSGPUTextureView);
  19354. procedure _SetresolveTarget(const aValue: IJSGPUTextureView);
  19355. procedure _SetclearValue(const aValue: TGPUColor);
  19356. procedure _SetloadOp(const aValue: TGPULoadOp);
  19357. procedure _SetstoreOp(const aValue: TGPUStoreOp);
  19358. property view: IJSGPUTextureView read _Getview write _Setview;
  19359. property resolveTarget: IJSGPUTextureView read _GetresolveTarget write _SetresolveTarget;
  19360. property clearValue: TGPUColor read _GetclearValue write _SetclearValue;
  19361. property loadOp: TGPULoadOp read _GetloadOp write _SetloadOp;
  19362. property storeOp: TGPUStoreOp read _GetstoreOp write _SetstoreOp;
  19363. end;
  19364. TJSGPURenderPassColorAttachment = class(TJSObject,IJSGPURenderPassColorAttachment)
  19365. Protected
  19366. function _Getview: IJSGPUTextureView;
  19367. function _GetresolveTarget: IJSGPUTextureView;
  19368. function _GetclearValue: TGPUColor;
  19369. function _GetloadOp: TGPULoadOp;
  19370. function _GetstoreOp: TGPUStoreOp;
  19371. procedure _Setview(const aValue: IJSGPUTextureView);
  19372. procedure _SetresolveTarget(const aValue: IJSGPUTextureView);
  19373. procedure _SetclearValue(const aValue: TGPUColor);
  19374. procedure _SetloadOp(const aValue: TGPULoadOp);
  19375. procedure _SetstoreOp(const aValue: TGPUStoreOp);
  19376. Public
  19377. class function JSClassName: UnicodeString; override;
  19378. class function Cast(const Intf: IJSObject): IJSGPURenderPassColorAttachment;
  19379. property view: IJSGPUTextureView read _Getview write _Setview;
  19380. property resolveTarget: IJSGPUTextureView read _GetresolveTarget write _SetresolveTarget;
  19381. property clearValue: TGPUColor read _GetclearValue write _SetclearValue;
  19382. property loadOp: TGPULoadOp read _GetloadOp write _SetloadOp;
  19383. property storeOp: TGPUStoreOp read _GetstoreOp write _SetstoreOp;
  19384. end;
  19385. { --------------------------------------------------------------------
  19386. TJSGPURenderPassDepthStencilAttachment
  19387. --------------------------------------------------------------------}
  19388. TJSGPURenderPassDepthStencilAttachmentRec = record
  19389. view: TJSGPUTextureView;
  19390. depthClearValue: Single;
  19391. depthLoadOp: TGPULoadOp;
  19392. depthStoreOp: TGPUStoreOp;
  19393. depthReadOnly: Boolean;
  19394. stencilClearValue: TGPUStencilValue;
  19395. stencilLoadOp: TGPULoadOp;
  19396. stencilStoreOp: TGPUStoreOp;
  19397. stencilReadOnly: Boolean;
  19398. end;
  19399. IJSGPURenderPassDepthStencilAttachment = interface(IJSObject)
  19400. ['{419C6D6B-33B2-3434-9F1C-FDD4429C5B6D}']
  19401. function _Getview: IJSGPUTextureView;
  19402. function _GetdepthClearValue: Single;
  19403. function _GetdepthLoadOp: TGPULoadOp;
  19404. function _GetdepthStoreOp: TGPUStoreOp;
  19405. function _GetdepthReadOnly: Boolean;
  19406. function _GetstencilClearValue: TGPUStencilValue;
  19407. function _GetstencilLoadOp: TGPULoadOp;
  19408. function _GetstencilStoreOp: TGPUStoreOp;
  19409. function _GetstencilReadOnly: Boolean;
  19410. procedure _Setview(const aValue: IJSGPUTextureView);
  19411. procedure _SetdepthClearValue(const aValue: Single);
  19412. procedure _SetdepthLoadOp(const aValue: TGPULoadOp);
  19413. procedure _SetdepthStoreOp(const aValue: TGPUStoreOp);
  19414. procedure _SetdepthReadOnly(const aValue: Boolean);
  19415. procedure _SetstencilClearValue(const aValue: TGPUStencilValue);
  19416. procedure _SetstencilLoadOp(const aValue: TGPULoadOp);
  19417. procedure _SetstencilStoreOp(const aValue: TGPUStoreOp);
  19418. procedure _SetstencilReadOnly(const aValue: Boolean);
  19419. property view: IJSGPUTextureView read _Getview write _Setview;
  19420. property depthClearValue: Single read _GetdepthClearValue write _SetdepthClearValue;
  19421. property depthLoadOp: TGPULoadOp read _GetdepthLoadOp write _SetdepthLoadOp;
  19422. property depthStoreOp: TGPUStoreOp read _GetdepthStoreOp write _SetdepthStoreOp;
  19423. property depthReadOnly: Boolean read _GetdepthReadOnly write _SetdepthReadOnly;
  19424. property stencilClearValue: TGPUStencilValue read _GetstencilClearValue write _SetstencilClearValue;
  19425. property stencilLoadOp: TGPULoadOp read _GetstencilLoadOp write _SetstencilLoadOp;
  19426. property stencilStoreOp: TGPUStoreOp read _GetstencilStoreOp write _SetstencilStoreOp;
  19427. property stencilReadOnly: Boolean read _GetstencilReadOnly write _SetstencilReadOnly;
  19428. end;
  19429. TJSGPURenderPassDepthStencilAttachment = class(TJSObject,IJSGPURenderPassDepthStencilAttachment)
  19430. Protected
  19431. function _Getview: IJSGPUTextureView;
  19432. function _GetdepthClearValue: Single;
  19433. function _GetdepthLoadOp: TGPULoadOp;
  19434. function _GetdepthStoreOp: TGPUStoreOp;
  19435. function _GetdepthReadOnly: Boolean;
  19436. function _GetstencilClearValue: TGPUStencilValue;
  19437. function _GetstencilLoadOp: TGPULoadOp;
  19438. function _GetstencilStoreOp: TGPUStoreOp;
  19439. function _GetstencilReadOnly: Boolean;
  19440. procedure _Setview(const aValue: IJSGPUTextureView);
  19441. procedure _SetdepthClearValue(const aValue: Single);
  19442. procedure _SetdepthLoadOp(const aValue: TGPULoadOp);
  19443. procedure _SetdepthStoreOp(const aValue: TGPUStoreOp);
  19444. procedure _SetdepthReadOnly(const aValue: Boolean);
  19445. procedure _SetstencilClearValue(const aValue: TGPUStencilValue);
  19446. procedure _SetstencilLoadOp(const aValue: TGPULoadOp);
  19447. procedure _SetstencilStoreOp(const aValue: TGPUStoreOp);
  19448. procedure _SetstencilReadOnly(const aValue: Boolean);
  19449. Public
  19450. class function JSClassName: UnicodeString; override;
  19451. class function Cast(const Intf: IJSObject): IJSGPURenderPassDepthStencilAttachment;
  19452. property view: IJSGPUTextureView read _Getview write _Setview;
  19453. property depthClearValue: Single read _GetdepthClearValue write _SetdepthClearValue;
  19454. property depthLoadOp: TGPULoadOp read _GetdepthLoadOp write _SetdepthLoadOp;
  19455. property depthStoreOp: TGPUStoreOp read _GetdepthStoreOp write _SetdepthStoreOp;
  19456. property depthReadOnly: Boolean read _GetdepthReadOnly write _SetdepthReadOnly;
  19457. property stencilClearValue: TGPUStencilValue read _GetstencilClearValue write _SetstencilClearValue;
  19458. property stencilLoadOp: TGPULoadOp read _GetstencilLoadOp write _SetstencilLoadOp;
  19459. property stencilStoreOp: TGPUStoreOp read _GetstencilStoreOp write _SetstencilStoreOp;
  19460. property stencilReadOnly: Boolean read _GetstencilReadOnly write _SetstencilReadOnly;
  19461. end;
  19462. { --------------------------------------------------------------------
  19463. TJSGPUCanvasConfiguration
  19464. --------------------------------------------------------------------}
  19465. TGPUTextureFormatDynArray = IJSArray; // array of GPUTextureFormat
  19466. TJSGPUCanvasConfigurationRec = record
  19467. device: TJSGPUDevice;
  19468. format: TGPUTextureFormat;
  19469. usage: TGPUTextureUsageFlags;
  19470. viewFormats: TGPUTextureFormatDynArray;
  19471. alphaMode: TGPUCanvasAlphaMode;
  19472. end;
  19473. IJSGPUCanvasConfiguration = interface(IJSObject)
  19474. ['{F6D716E3-CB91-3BC8-8B71-84D96BB1EBA2}']
  19475. function _Getdevice: IJSGPUDevice;
  19476. function _Getformat: TGPUTextureFormat;
  19477. function _Getusage: TGPUTextureUsageFlags;
  19478. function _GetviewFormats: TGPUTextureFormatDynArray;
  19479. function _GetalphaMode: TGPUCanvasAlphaMode;
  19480. procedure _Setdevice(const aValue: IJSGPUDevice);
  19481. procedure _Setformat(const aValue: TGPUTextureFormat);
  19482. procedure _Setusage(const aValue: TGPUTextureUsageFlags);
  19483. procedure _SetviewFormats(const aValue: TGPUTextureFormatDynArray);
  19484. procedure _SetalphaMode(const aValue: TGPUCanvasAlphaMode);
  19485. property device: IJSGPUDevice read _Getdevice write _Setdevice;
  19486. property format: TGPUTextureFormat read _Getformat write _Setformat;
  19487. property usage: TGPUTextureUsageFlags read _Getusage write _Setusage;
  19488. property viewFormats: TGPUTextureFormatDynArray read _GetviewFormats write _SetviewFormats;
  19489. property alphaMode: TGPUCanvasAlphaMode read _GetalphaMode write _SetalphaMode;
  19490. end;
  19491. TJSGPUCanvasConfiguration = class(TJSObject,IJSGPUCanvasConfiguration)
  19492. Protected
  19493. function _Getdevice: IJSGPUDevice;
  19494. function _Getformat: TGPUTextureFormat;
  19495. function _Getusage: TGPUTextureUsageFlags;
  19496. function _GetviewFormats: TGPUTextureFormatDynArray;
  19497. function _GetalphaMode: TGPUCanvasAlphaMode;
  19498. procedure _Setdevice(const aValue: IJSGPUDevice);
  19499. procedure _Setformat(const aValue: TGPUTextureFormat);
  19500. procedure _Setusage(const aValue: TGPUTextureUsageFlags);
  19501. procedure _SetviewFormats(const aValue: TGPUTextureFormatDynArray);
  19502. procedure _SetalphaMode(const aValue: TGPUCanvasAlphaMode);
  19503. Public
  19504. class function JSClassName: UnicodeString; override;
  19505. class function Cast(const Intf: IJSObject): IJSGPUCanvasConfiguration;
  19506. property device: IJSGPUDevice read _Getdevice write _Setdevice;
  19507. property format: TGPUTextureFormat read _Getformat write _Setformat;
  19508. property usage: TGPUTextureUsageFlags read _Getusage write _Setusage;
  19509. property viewFormats: TGPUTextureFormatDynArray read _GetviewFormats write _SetviewFormats;
  19510. property alphaMode: TGPUCanvasAlphaMode read _GetalphaMode write _SetalphaMode;
  19511. end;
  19512. { --------------------------------------------------------------------
  19513. TJSGPUColorDict
  19514. --------------------------------------------------------------------}
  19515. TJSGPUColorDictRec = record
  19516. r: Double;
  19517. g: Double;
  19518. b: Double;
  19519. a: Double;
  19520. end;
  19521. IJSGPUColorDict = interface(IJSObject)
  19522. ['{E6CF4A0B-F9CB-321D-86B3-B7CB58E2A621}']
  19523. function _Getr: Double;
  19524. function _Getg: Double;
  19525. function _Getb: Double;
  19526. function _Geta: Double;
  19527. procedure _Setr(const aValue: Double);
  19528. procedure _Setg(const aValue: Double);
  19529. procedure _Setb(const aValue: Double);
  19530. procedure _Seta(const aValue: Double);
  19531. property r: Double read _Getr write _Setr;
  19532. property g: Double read _Getg write _Setg;
  19533. property b: Double read _Getb write _Setb;
  19534. property a: Double read _Geta write _Seta;
  19535. end;
  19536. TJSGPUColorDict = class(TJSObject,IJSGPUColorDict)
  19537. Protected
  19538. function _Getr: Double;
  19539. function _Getg: Double;
  19540. function _Getb: Double;
  19541. function _Geta: Double;
  19542. procedure _Setr(const aValue: Double);
  19543. procedure _Setg(const aValue: Double);
  19544. procedure _Setb(const aValue: Double);
  19545. procedure _Seta(const aValue: Double);
  19546. Public
  19547. class function JSClassName: UnicodeString; override;
  19548. class function Cast(const Intf: IJSObject): IJSGPUColorDict;
  19549. property r: Double read _Getr write _Setr;
  19550. property g: Double read _Getg write _Setg;
  19551. property b: Double read _Getb write _Setb;
  19552. property a: Double read _Geta write _Seta;
  19553. end;
  19554. { --------------------------------------------------------------------
  19555. TJSGPUOrigin2DDict
  19556. --------------------------------------------------------------------}
  19557. TJSGPUOrigin2DDictRec = record
  19558. x: TGPUIntegerCoordinate;
  19559. y: TGPUIntegerCoordinate;
  19560. end;
  19561. IJSGPUOrigin2DDict = interface(IJSObject)
  19562. ['{AC6CB1A6-B7C5-3D99-AC3C-94D9C4B13444}']
  19563. function _Getx: TGPUIntegerCoordinate;
  19564. function _Gety: TGPUIntegerCoordinate;
  19565. procedure _Setx(const aValue: TGPUIntegerCoordinate);
  19566. procedure _Sety(const aValue: TGPUIntegerCoordinate);
  19567. property x: TGPUIntegerCoordinate read _Getx write _Setx;
  19568. property y: TGPUIntegerCoordinate read _Gety write _Sety;
  19569. end;
  19570. TJSGPUOrigin2DDict = class(TJSObject,IJSGPUOrigin2DDict)
  19571. Protected
  19572. function _Getx: TGPUIntegerCoordinate;
  19573. function _Gety: TGPUIntegerCoordinate;
  19574. procedure _Setx(const aValue: TGPUIntegerCoordinate);
  19575. procedure _Sety(const aValue: TGPUIntegerCoordinate);
  19576. Public
  19577. class function JSClassName: UnicodeString; override;
  19578. class function Cast(const Intf: IJSObject): IJSGPUOrigin2DDict;
  19579. property x: TGPUIntegerCoordinate read _Getx write _Setx;
  19580. property y: TGPUIntegerCoordinate read _Gety write _Sety;
  19581. end;
  19582. { --------------------------------------------------------------------
  19583. TJSGPUOrigin3DDict
  19584. --------------------------------------------------------------------}
  19585. TJSGPUOrigin3DDictRec = record
  19586. x: TGPUIntegerCoordinate;
  19587. y: TGPUIntegerCoordinate;
  19588. z: TGPUIntegerCoordinate;
  19589. end;
  19590. IJSGPUOrigin3DDict = interface(IJSObject)
  19591. ['{AC6CB1A6-B7C5-3D99-AC3C-94D9CAAB3444}']
  19592. function _Getx: TGPUIntegerCoordinate;
  19593. function _Gety: TGPUIntegerCoordinate;
  19594. function _Getz: TGPUIntegerCoordinate;
  19595. procedure _Setx(const aValue: TGPUIntegerCoordinate);
  19596. procedure _Sety(const aValue: TGPUIntegerCoordinate);
  19597. procedure _Setz(const aValue: TGPUIntegerCoordinate);
  19598. property x: TGPUIntegerCoordinate read _Getx write _Setx;
  19599. property y: TGPUIntegerCoordinate read _Gety write _Sety;
  19600. property z: TGPUIntegerCoordinate read _Getz write _Setz;
  19601. end;
  19602. TJSGPUOrigin3DDict = class(TJSObject,IJSGPUOrigin3DDict)
  19603. Protected
  19604. function _Getx: TGPUIntegerCoordinate;
  19605. function _Gety: TGPUIntegerCoordinate;
  19606. function _Getz: TGPUIntegerCoordinate;
  19607. procedure _Setx(const aValue: TGPUIntegerCoordinate);
  19608. procedure _Sety(const aValue: TGPUIntegerCoordinate);
  19609. procedure _Setz(const aValue: TGPUIntegerCoordinate);
  19610. Public
  19611. class function JSClassName: UnicodeString; override;
  19612. class function Cast(const Intf: IJSObject): IJSGPUOrigin3DDict;
  19613. property x: TGPUIntegerCoordinate read _Getx write _Setx;
  19614. property y: TGPUIntegerCoordinate read _Gety write _Sety;
  19615. property z: TGPUIntegerCoordinate read _Getz write _Setz;
  19616. end;
  19617. { --------------------------------------------------------------------
  19618. TJSGPUExtent3DDict
  19619. --------------------------------------------------------------------}
  19620. TJSGPUExtent3DDictRec = record
  19621. width: TGPUIntegerCoordinate;
  19622. height: TGPUIntegerCoordinate;
  19623. depthOrArrayLayers: TGPUIntegerCoordinate;
  19624. end;
  19625. IJSGPUExtent3DDict = interface(IJSObject)
  19626. ['{05FF1DCB-8E76-355E-8DD3-E99FB353C84D}']
  19627. function _Getwidth: TGPUIntegerCoordinate;
  19628. function _Getheight: TGPUIntegerCoordinate;
  19629. function _GetdepthOrArrayLayers: TGPUIntegerCoordinate;
  19630. procedure _Setwidth(const aValue: TGPUIntegerCoordinate);
  19631. procedure _Setheight(const aValue: TGPUIntegerCoordinate);
  19632. procedure _SetdepthOrArrayLayers(const aValue: TGPUIntegerCoordinate);
  19633. property width: TGPUIntegerCoordinate read _Getwidth write _Setwidth;
  19634. property height: TGPUIntegerCoordinate read _Getheight write _Setheight;
  19635. property depthOrArrayLayers: TGPUIntegerCoordinate read _GetdepthOrArrayLayers write _SetdepthOrArrayLayers;
  19636. end;
  19637. TJSGPUExtent3DDict = class(TJSObject,IJSGPUExtent3DDict)
  19638. Protected
  19639. function _Getwidth: TGPUIntegerCoordinate;
  19640. function _Getheight: TGPUIntegerCoordinate;
  19641. function _GetdepthOrArrayLayers: TGPUIntegerCoordinate;
  19642. procedure _Setwidth(const aValue: TGPUIntegerCoordinate);
  19643. procedure _Setheight(const aValue: TGPUIntegerCoordinate);
  19644. procedure _SetdepthOrArrayLayers(const aValue: TGPUIntegerCoordinate);
  19645. Public
  19646. class function JSClassName: UnicodeString; override;
  19647. class function Cast(const Intf: IJSObject): IJSGPUExtent3DDict;
  19648. property width: TGPUIntegerCoordinate read _Getwidth write _Setwidth;
  19649. property height: TGPUIntegerCoordinate read _Getheight write _Setheight;
  19650. property depthOrArrayLayers: TGPUIntegerCoordinate read _GetdepthOrArrayLayers write _SetdepthOrArrayLayers;
  19651. end;
  19652. { --------------------------------------------------------------------
  19653. TJSWebrtcGlobalStatisticsReport
  19654. --------------------------------------------------------------------}
  19655. TJSRTCStatsReportInternalDynArray = IJSArray; // array of RTCStatsReportInternal
  19656. TJSRTCSdpHistoryInternalDynArray = IJSArray; // array of RTCSdpHistoryInternal
  19657. TJSWebrtcGlobalStatisticsReportRec = record
  19658. reports: TJSRTCStatsReportInternalDynArray;
  19659. sdpHistories: TJSRTCSdpHistoryInternalDynArray;
  19660. end;
  19661. IJSWebrtcGlobalStatisticsReport = interface(IJSObject)
  19662. ['{150DA45F-CA2B-374F-A8D8-F92D6AB6C02C}']
  19663. function _Getreports: TJSRTCStatsReportInternalDynArray;
  19664. function _GetsdpHistories: TJSRTCSdpHistoryInternalDynArray;
  19665. procedure _Setreports(const aValue: TJSRTCStatsReportInternalDynArray);
  19666. procedure _SetsdpHistories(const aValue: TJSRTCSdpHistoryInternalDynArray);
  19667. property reports: TJSRTCStatsReportInternalDynArray read _Getreports write _Setreports;
  19668. property sdpHistories: TJSRTCSdpHistoryInternalDynArray read _GetsdpHistories write _SetsdpHistories;
  19669. end;
  19670. TJSWebrtcGlobalStatisticsReport = class(TJSObject,IJSWebrtcGlobalStatisticsReport)
  19671. Protected
  19672. function _Getreports: TJSRTCStatsReportInternalDynArray;
  19673. function _GetsdpHistories: TJSRTCSdpHistoryInternalDynArray;
  19674. procedure _Setreports(const aValue: TJSRTCStatsReportInternalDynArray);
  19675. procedure _SetsdpHistories(const aValue: TJSRTCSdpHistoryInternalDynArray);
  19676. Public
  19677. class function JSClassName: UnicodeString; override;
  19678. class function Cast(const Intf: IJSObject): IJSWebrtcGlobalStatisticsReport;
  19679. property reports: TJSRTCStatsReportInternalDynArray read _Getreports write _Setreports;
  19680. property sdpHistories: TJSRTCSdpHistoryInternalDynArray read _GetsdpHistories write _SetsdpHistories;
  19681. end;
  19682. { --------------------------------------------------------------------
  19683. TJSWebrtcGlobalMediaContext
  19684. --------------------------------------------------------------------}
  19685. TJSWebrtcGlobalMediaContextRec = record
  19686. hasH264Hardware: Boolean;
  19687. end;
  19688. IJSWebrtcGlobalMediaContext = interface(IJSObject)
  19689. ['{38DD5741-5903-3231-BD71-6CF9E54CDEE1}']
  19690. function _GethasH264Hardware: Boolean;
  19691. procedure _SethasH264Hardware(const aValue: Boolean);
  19692. property hasH264Hardware: Boolean read _GethasH264Hardware write _SethasH264Hardware;
  19693. end;
  19694. TJSWebrtcGlobalMediaContext = class(TJSObject,IJSWebrtcGlobalMediaContext)
  19695. Protected
  19696. function _GethasH264Hardware: Boolean;
  19697. procedure _SethasH264Hardware(const aValue: Boolean);
  19698. Public
  19699. class function JSClassName: UnicodeString; override;
  19700. class function Cast(const Intf: IJSObject): IJSWebrtcGlobalMediaContext;
  19701. property hasH264Hardware: Boolean read _GethasH264Hardware write _SethasH264Hardware;
  19702. end;
  19703. { --------------------------------------------------------------------
  19704. TJSSchedulerPostTaskOptions
  19705. --------------------------------------------------------------------}
  19706. TJSSchedulerPostTaskOptionsRec = record
  19707. signal: TJSAbortSignal;
  19708. priority: TTaskPriority;
  19709. delay: QWord;
  19710. end;
  19711. IJSSchedulerPostTaskOptions = interface(IJSObject)
  19712. ['{B4EA4F8D-A642-3B0A-90CF-4777ACB1932E}']
  19713. function _Getsignal: IJSAbortSignal;
  19714. function _Getpriority: TTaskPriority;
  19715. function _Getdelay: QWord;
  19716. procedure _Setsignal(const aValue: IJSAbortSignal);
  19717. procedure _Setpriority(const aValue: TTaskPriority);
  19718. procedure _Setdelay(const aValue: QWord);
  19719. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  19720. property priority: TTaskPriority read _Getpriority write _Setpriority;
  19721. property delay: QWord read _Getdelay write _Setdelay;
  19722. end;
  19723. TJSSchedulerPostTaskOptions = class(TJSObject,IJSSchedulerPostTaskOptions)
  19724. Protected
  19725. function _Getsignal: IJSAbortSignal;
  19726. function _Getpriority: TTaskPriority;
  19727. function _Getdelay: QWord;
  19728. procedure _Setsignal(const aValue: IJSAbortSignal);
  19729. procedure _Setpriority(const aValue: TTaskPriority);
  19730. procedure _Setdelay(const aValue: QWord);
  19731. Public
  19732. class function JSClassName: UnicodeString; override;
  19733. class function Cast(const Intf: IJSObject): IJSSchedulerPostTaskOptions;
  19734. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  19735. property priority: TTaskPriority read _Getpriority write _Setpriority;
  19736. property delay: QWord read _Getdelay write _Setdelay;
  19737. end;
  19738. { --------------------------------------------------------------------
  19739. TJSTaskControllerInit
  19740. --------------------------------------------------------------------}
  19741. TJSTaskControllerInitRec = record
  19742. priority: TTaskPriority;
  19743. end;
  19744. IJSTaskControllerInit = interface(IJSObject)
  19745. ['{929814DC-D52A-381F-A726-4CC888F9240E}']
  19746. function _Getpriority: TTaskPriority;
  19747. procedure _Setpriority(const aValue: TTaskPriority);
  19748. property priority: TTaskPriority read _Getpriority write _Setpriority;
  19749. end;
  19750. TJSTaskControllerInit = class(TJSObject,IJSTaskControllerInit)
  19751. Protected
  19752. function _Getpriority: TTaskPriority;
  19753. procedure _Setpriority(const aValue: TTaskPriority);
  19754. Public
  19755. class function JSClassName: UnicodeString; override;
  19756. class function Cast(const Intf: IJSObject): IJSTaskControllerInit;
  19757. property priority: TTaskPriority read _Getpriority write _Setpriority;
  19758. end;
  19759. { --------------------------------------------------------------------
  19760. TJSWebTransportHash
  19761. --------------------------------------------------------------------}
  19762. TJSWebTransportHashRec = record
  19763. algorithm: UnicodeString;
  19764. value: IJSBufferSource;
  19765. end;
  19766. IJSWebTransportHash = interface(IJSObject)
  19767. ['{3BFBDB57-564E-3EEB-9972-BF825A5C38E8}']
  19768. function _Getalgorithm: UnicodeString;
  19769. function _Getvalue: IJSBufferSource;
  19770. procedure _Setalgorithm(const aValue: UnicodeString);
  19771. procedure _Setvalue(const aValue: IJSBufferSource);
  19772. property algorithm: UnicodeString read _Getalgorithm write _Setalgorithm;
  19773. property value: IJSBufferSource read _Getvalue write _Setvalue;
  19774. end;
  19775. TJSWebTransportHash = class(TJSObject,IJSWebTransportHash)
  19776. Protected
  19777. function _Getalgorithm: UnicodeString;
  19778. function _Getvalue: IJSBufferSource;
  19779. procedure _Setalgorithm(const aValue: UnicodeString);
  19780. procedure _Setvalue(const aValue: IJSBufferSource);
  19781. Public
  19782. class function JSClassName: UnicodeString; override;
  19783. class function Cast(const Intf: IJSObject): IJSWebTransportHash;
  19784. property algorithm: UnicodeString read _Getalgorithm write _Setalgorithm;
  19785. property value: IJSBufferSource read _Getvalue write _Setvalue;
  19786. end;
  19787. { --------------------------------------------------------------------
  19788. TJSWebTransportOptions
  19789. --------------------------------------------------------------------}
  19790. TJSWebTransportHashDynArray = IJSArray; // array of WebTransportHash
  19791. TJSWebTransportOptionsRec = record
  19792. allowPooling: Boolean;
  19793. requireUnreliable: Boolean;
  19794. serverCertificateHashes: TJSWebTransportHashDynArray;
  19795. congestionControl: TWebTransportCongestionControl;
  19796. end;
  19797. IJSWebTransportOptions = interface(IJSObject)
  19798. ['{98BAC044-DF1E-38C0-98CA-8F38DD6A3576}']
  19799. function _GetallowPooling: Boolean;
  19800. function _GetrequireUnreliable: Boolean;
  19801. function _GetserverCertificateHashes: TJSWebTransportHashDynArray;
  19802. function _GetcongestionControl: TWebTransportCongestionControl;
  19803. procedure _SetallowPooling(const aValue: Boolean);
  19804. procedure _SetrequireUnreliable(const aValue: Boolean);
  19805. procedure _SetserverCertificateHashes(const aValue: TJSWebTransportHashDynArray);
  19806. procedure _SetcongestionControl(const aValue: TWebTransportCongestionControl);
  19807. property allowPooling: Boolean read _GetallowPooling write _SetallowPooling;
  19808. property requireUnreliable: Boolean read _GetrequireUnreliable write _SetrequireUnreliable;
  19809. property serverCertificateHashes: TJSWebTransportHashDynArray read _GetserverCertificateHashes write _SetserverCertificateHashes;
  19810. property congestionControl: TWebTransportCongestionControl read _GetcongestionControl write _SetcongestionControl;
  19811. end;
  19812. TJSWebTransportOptions = class(TJSObject,IJSWebTransportOptions)
  19813. Protected
  19814. function _GetallowPooling: Boolean;
  19815. function _GetrequireUnreliable: Boolean;
  19816. function _GetserverCertificateHashes: TJSWebTransportHashDynArray;
  19817. function _GetcongestionControl: TWebTransportCongestionControl;
  19818. procedure _SetallowPooling(const aValue: Boolean);
  19819. procedure _SetrequireUnreliable(const aValue: Boolean);
  19820. procedure _SetserverCertificateHashes(const aValue: TJSWebTransportHashDynArray);
  19821. procedure _SetcongestionControl(const aValue: TWebTransportCongestionControl);
  19822. Public
  19823. class function JSClassName: UnicodeString; override;
  19824. class function Cast(const Intf: IJSObject): IJSWebTransportOptions;
  19825. property allowPooling: Boolean read _GetallowPooling write _SetallowPooling;
  19826. property requireUnreliable: Boolean read _GetrequireUnreliable write _SetrequireUnreliable;
  19827. property serverCertificateHashes: TJSWebTransportHashDynArray read _GetserverCertificateHashes write _SetserverCertificateHashes;
  19828. property congestionControl: TWebTransportCongestionControl read _GetcongestionControl write _SetcongestionControl;
  19829. end;
  19830. { --------------------------------------------------------------------
  19831. TJSWebTransportCloseInfo
  19832. --------------------------------------------------------------------}
  19833. TJSWebTransportCloseInfoRec = record
  19834. closeCode: Cardinal;
  19835. reason: UTF8String;
  19836. end;
  19837. IJSWebTransportCloseInfo = interface(IJSObject)
  19838. ['{0A0E4D5D-D982-3333-9953-D52DC990A7AE}']
  19839. function _GetcloseCode: Cardinal;
  19840. function _Getreason: UTF8String;
  19841. procedure _SetcloseCode(const aValue: Cardinal);
  19842. procedure _Setreason(const aValue: UTF8String);
  19843. property closeCode: Cardinal read _GetcloseCode write _SetcloseCode;
  19844. property reason: UTF8String read _Getreason write _Setreason;
  19845. end;
  19846. TJSWebTransportCloseInfo = class(TJSObject,IJSWebTransportCloseInfo)
  19847. Protected
  19848. function _GetcloseCode: Cardinal;
  19849. function _Getreason: UTF8String;
  19850. procedure _SetcloseCode(const aValue: Cardinal);
  19851. procedure _Setreason(const aValue: UTF8String);
  19852. Public
  19853. class function JSClassName: UnicodeString; override;
  19854. class function Cast(const Intf: IJSObject): IJSWebTransportCloseInfo;
  19855. property closeCode: Cardinal read _GetcloseCode write _SetcloseCode;
  19856. property reason: UTF8String read _Getreason write _Setreason;
  19857. end;
  19858. { --------------------------------------------------------------------
  19859. TJSWebTransportSendStreamOptions
  19860. --------------------------------------------------------------------}
  19861. TJSWebTransportSendStreamOptionsRec = record
  19862. sendOrder: Int64;
  19863. end;
  19864. IJSWebTransportSendStreamOptions = interface(IJSObject)
  19865. ['{83F637C1-92BB-3EB7-AC9B-4FB1986791D6}']
  19866. function _GetsendOrder: Int64;
  19867. procedure _SetsendOrder(const aValue: Int64);
  19868. property sendOrder: Int64 read _GetsendOrder write _SetsendOrder;
  19869. end;
  19870. TJSWebTransportSendStreamOptions = class(TJSObject,IJSWebTransportSendStreamOptions)
  19871. Protected
  19872. function _GetsendOrder: Int64;
  19873. procedure _SetsendOrder(const aValue: Int64);
  19874. Public
  19875. class function JSClassName: UnicodeString; override;
  19876. class function Cast(const Intf: IJSObject): IJSWebTransportSendStreamOptions;
  19877. property sendOrder: Int64 read _GetsendOrder write _SetsendOrder;
  19878. end;
  19879. { --------------------------------------------------------------------
  19880. TJSWebTransportStats
  19881. --------------------------------------------------------------------}
  19882. TJSWebTransportStatsRec = record
  19883. timestamp: TDOMHighResTimeStamp;
  19884. bytesSent: QWord;
  19885. packetsSent: QWord;
  19886. packetsLost: QWord;
  19887. numOutgoingStreamsCreated: Cardinal;
  19888. numIncomingStreamsCreated: Cardinal;
  19889. bytesReceived: QWord;
  19890. packetsReceived: QWord;
  19891. smoothedRtt: TDOMHighResTimeStamp;
  19892. rttVariation: TDOMHighResTimeStamp;
  19893. minRtt: TDOMHighResTimeStamp;
  19894. datagrams: TJSWebTransportDatagramStats;
  19895. end;
  19896. IJSWebTransportStats = interface(IJSObject)
  19897. ['{E2FEED25-13E7-3AEB-96DB-A2912150EAE4}']
  19898. function _Gettimestamp: TDOMHighResTimeStamp;
  19899. function _GetbytesSent: QWord;
  19900. function _GetpacketsSent: QWord;
  19901. function _GetpacketsLost: QWord;
  19902. function _GetnumOutgoingStreamsCreated: Cardinal;
  19903. function _GetnumIncomingStreamsCreated: Cardinal;
  19904. function _GetbytesReceived: QWord;
  19905. function _GetpacketsReceived: QWord;
  19906. function _GetsmoothedRtt: TDOMHighResTimeStamp;
  19907. function _GetrttVariation: TDOMHighResTimeStamp;
  19908. function _GetminRtt: TDOMHighResTimeStamp;
  19909. function _Getdatagrams: TJSWebTransportDatagramStats;
  19910. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  19911. procedure _SetbytesSent(const aValue: QWord);
  19912. procedure _SetpacketsSent(const aValue: QWord);
  19913. procedure _SetpacketsLost(const aValue: QWord);
  19914. procedure _SetnumOutgoingStreamsCreated(const aValue: Cardinal);
  19915. procedure _SetnumIncomingStreamsCreated(const aValue: Cardinal);
  19916. procedure _SetbytesReceived(const aValue: QWord);
  19917. procedure _SetpacketsReceived(const aValue: QWord);
  19918. procedure _SetsmoothedRtt(const aValue: TDOMHighResTimeStamp);
  19919. procedure _SetrttVariation(const aValue: TDOMHighResTimeStamp);
  19920. procedure _SetminRtt(const aValue: TDOMHighResTimeStamp);
  19921. procedure _Setdatagrams(const aValue: TJSWebTransportDatagramStats);
  19922. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  19923. property bytesSent: QWord read _GetbytesSent write _SetbytesSent;
  19924. property packetsSent: QWord read _GetpacketsSent write _SetpacketsSent;
  19925. property packetsLost: QWord read _GetpacketsLost write _SetpacketsLost;
  19926. property numOutgoingStreamsCreated: Cardinal read _GetnumOutgoingStreamsCreated write _SetnumOutgoingStreamsCreated;
  19927. property numIncomingStreamsCreated: Cardinal read _GetnumIncomingStreamsCreated write _SetnumIncomingStreamsCreated;
  19928. property bytesReceived: QWord read _GetbytesReceived write _SetbytesReceived;
  19929. property packetsReceived: QWord read _GetpacketsReceived write _SetpacketsReceived;
  19930. property smoothedRtt: TDOMHighResTimeStamp read _GetsmoothedRtt write _SetsmoothedRtt;
  19931. property rttVariation: TDOMHighResTimeStamp read _GetrttVariation write _SetrttVariation;
  19932. property minRtt: TDOMHighResTimeStamp read _GetminRtt write _SetminRtt;
  19933. property datagrams: TJSWebTransportDatagramStats read _Getdatagrams write _Setdatagrams;
  19934. end;
  19935. TJSWebTransportStats = class(TJSObject,IJSWebTransportStats)
  19936. Protected
  19937. function _Gettimestamp: TDOMHighResTimeStamp;
  19938. function _GetbytesSent: QWord;
  19939. function _GetpacketsSent: QWord;
  19940. function _GetpacketsLost: QWord;
  19941. function _GetnumOutgoingStreamsCreated: Cardinal;
  19942. function _GetnumIncomingStreamsCreated: Cardinal;
  19943. function _GetbytesReceived: QWord;
  19944. function _GetpacketsReceived: QWord;
  19945. function _GetsmoothedRtt: TDOMHighResTimeStamp;
  19946. function _GetrttVariation: TDOMHighResTimeStamp;
  19947. function _GetminRtt: TDOMHighResTimeStamp;
  19948. function _Getdatagrams: TJSWebTransportDatagramStats;
  19949. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  19950. procedure _SetbytesSent(const aValue: QWord);
  19951. procedure _SetpacketsSent(const aValue: QWord);
  19952. procedure _SetpacketsLost(const aValue: QWord);
  19953. procedure _SetnumOutgoingStreamsCreated(const aValue: Cardinal);
  19954. procedure _SetnumIncomingStreamsCreated(const aValue: Cardinal);
  19955. procedure _SetbytesReceived(const aValue: QWord);
  19956. procedure _SetpacketsReceived(const aValue: QWord);
  19957. procedure _SetsmoothedRtt(const aValue: TDOMHighResTimeStamp);
  19958. procedure _SetrttVariation(const aValue: TDOMHighResTimeStamp);
  19959. procedure _SetminRtt(const aValue: TDOMHighResTimeStamp);
  19960. procedure _Setdatagrams(const aValue: TJSWebTransportDatagramStats);
  19961. Public
  19962. class function JSClassName: UnicodeString; override;
  19963. class function Cast(const Intf: IJSObject): IJSWebTransportStats;
  19964. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  19965. property bytesSent: QWord read _GetbytesSent write _SetbytesSent;
  19966. property packetsSent: QWord read _GetpacketsSent write _SetpacketsSent;
  19967. property packetsLost: QWord read _GetpacketsLost write _SetpacketsLost;
  19968. property numOutgoingStreamsCreated: Cardinal read _GetnumOutgoingStreamsCreated write _SetnumOutgoingStreamsCreated;
  19969. property numIncomingStreamsCreated: Cardinal read _GetnumIncomingStreamsCreated write _SetnumIncomingStreamsCreated;
  19970. property bytesReceived: QWord read _GetbytesReceived write _SetbytesReceived;
  19971. property packetsReceived: QWord read _GetpacketsReceived write _SetpacketsReceived;
  19972. property smoothedRtt: TDOMHighResTimeStamp read _GetsmoothedRtt write _SetsmoothedRtt;
  19973. property rttVariation: TDOMHighResTimeStamp read _GetrttVariation write _SetrttVariation;
  19974. property minRtt: TDOMHighResTimeStamp read _GetminRtt write _SetminRtt;
  19975. property datagrams: TJSWebTransportDatagramStats read _Getdatagrams write _Setdatagrams;
  19976. end;
  19977. { --------------------------------------------------------------------
  19978. TJSWebTransportDatagramStats
  19979. --------------------------------------------------------------------}
  19980. TJSWebTransportDatagramStatsRec = record
  19981. timestamp: TDOMHighResTimeStamp;
  19982. expiredOutgoing: QWord;
  19983. droppedIncoming: QWord;
  19984. lostOutgoing: QWord;
  19985. end;
  19986. IJSWebTransportDatagramStats = interface(IJSObject)
  19987. ['{9514FB39-D616-384A-8EAD-CD5171893E97}']
  19988. function _Gettimestamp: TDOMHighResTimeStamp;
  19989. function _GetexpiredOutgoing: QWord;
  19990. function _GetdroppedIncoming: QWord;
  19991. function _GetlostOutgoing: QWord;
  19992. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  19993. procedure _SetexpiredOutgoing(const aValue: QWord);
  19994. procedure _SetdroppedIncoming(const aValue: QWord);
  19995. procedure _SetlostOutgoing(const aValue: QWord);
  19996. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  19997. property expiredOutgoing: QWord read _GetexpiredOutgoing write _SetexpiredOutgoing;
  19998. property droppedIncoming: QWord read _GetdroppedIncoming write _SetdroppedIncoming;
  19999. property lostOutgoing: QWord read _GetlostOutgoing write _SetlostOutgoing;
  20000. end;
  20001. TJSWebTransportDatagramStats = class(TJSObject,IJSWebTransportDatagramStats)
  20002. Protected
  20003. function _Gettimestamp: TDOMHighResTimeStamp;
  20004. function _GetexpiredOutgoing: QWord;
  20005. function _GetdroppedIncoming: QWord;
  20006. function _GetlostOutgoing: QWord;
  20007. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  20008. procedure _SetexpiredOutgoing(const aValue: QWord);
  20009. procedure _SetdroppedIncoming(const aValue: QWord);
  20010. procedure _SetlostOutgoing(const aValue: QWord);
  20011. Public
  20012. class function JSClassName: UnicodeString; override;
  20013. class function Cast(const Intf: IJSObject): IJSWebTransportDatagramStats;
  20014. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  20015. property expiredOutgoing: QWord read _GetexpiredOutgoing write _SetexpiredOutgoing;
  20016. property droppedIncoming: QWord read _GetdroppedIncoming write _SetdroppedIncoming;
  20017. property lostOutgoing: QWord read _GetlostOutgoing write _SetlostOutgoing;
  20018. end;
  20019. { --------------------------------------------------------------------
  20020. TJSWebTransportErrorInit
  20021. --------------------------------------------------------------------}
  20022. TJSWebTransportErrorInitRec = record
  20023. streamErrorCode: Byte;
  20024. message: UnicodeString;
  20025. end;
  20026. IJSWebTransportErrorInit = interface(IJSObject)
  20027. ['{4A03C3A0-E982-3349-95BB-482F7E910F21}']
  20028. function _GetstreamErrorCode: Byte;
  20029. function _Getmessage: UnicodeString;
  20030. procedure _SetstreamErrorCode(const aValue: Byte);
  20031. procedure _Setmessage(const aValue: UnicodeString);
  20032. property streamErrorCode: Byte read _GetstreamErrorCode write _SetstreamErrorCode;
  20033. property message: UnicodeString read _Getmessage write _Setmessage;
  20034. end;
  20035. TJSWebTransportErrorInit = class(TJSObject,IJSWebTransportErrorInit)
  20036. Protected
  20037. function _GetstreamErrorCode: Byte;
  20038. function _Getmessage: UnicodeString;
  20039. procedure _SetstreamErrorCode(const aValue: Byte);
  20040. procedure _Setmessage(const aValue: UnicodeString);
  20041. Public
  20042. class function JSClassName: UnicodeString; override;
  20043. class function Cast(const Intf: IJSObject): IJSWebTransportErrorInit;
  20044. property streamErrorCode: Byte read _GetstreamErrorCode write _SetstreamErrorCode;
  20045. property message: UnicodeString read _Getmessage write _Setmessage;
  20046. end;
  20047. { --------------------------------------------------------------------
  20048. TJSWebTransportSendStreamStats
  20049. --------------------------------------------------------------------}
  20050. TJSWebTransportSendStreamStatsRec = record
  20051. timestamp: TDOMHighResTimeStamp;
  20052. bytesWritten: QWord;
  20053. bytesSent: QWord;
  20054. bytesAcknowledged: QWord;
  20055. end;
  20056. IJSWebTransportSendStreamStats = interface(IJSObject)
  20057. ['{40EFE192-3AF4-3B2E-A51D-FB977EAF6D58}']
  20058. function _Gettimestamp: TDOMHighResTimeStamp;
  20059. function _GetbytesWritten: QWord;
  20060. function _GetbytesSent: QWord;
  20061. function _GetbytesAcknowledged: QWord;
  20062. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  20063. procedure _SetbytesWritten(const aValue: QWord);
  20064. procedure _SetbytesSent(const aValue: QWord);
  20065. procedure _SetbytesAcknowledged(const aValue: QWord);
  20066. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  20067. property bytesWritten: QWord read _GetbytesWritten write _SetbytesWritten;
  20068. property bytesSent: QWord read _GetbytesSent write _SetbytesSent;
  20069. property bytesAcknowledged: QWord read _GetbytesAcknowledged write _SetbytesAcknowledged;
  20070. end;
  20071. TJSWebTransportSendStreamStats = class(TJSObject,IJSWebTransportSendStreamStats)
  20072. Protected
  20073. function _Gettimestamp: TDOMHighResTimeStamp;
  20074. function _GetbytesWritten: QWord;
  20075. function _GetbytesSent: QWord;
  20076. function _GetbytesAcknowledged: QWord;
  20077. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  20078. procedure _SetbytesWritten(const aValue: QWord);
  20079. procedure _SetbytesSent(const aValue: QWord);
  20080. procedure _SetbytesAcknowledged(const aValue: QWord);
  20081. Public
  20082. class function JSClassName: UnicodeString; override;
  20083. class function Cast(const Intf: IJSObject): IJSWebTransportSendStreamStats;
  20084. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  20085. property bytesWritten: QWord read _GetbytesWritten write _SetbytesWritten;
  20086. property bytesSent: QWord read _GetbytesSent write _SetbytesSent;
  20087. property bytesAcknowledged: QWord read _GetbytesAcknowledged write _SetbytesAcknowledged;
  20088. end;
  20089. { --------------------------------------------------------------------
  20090. TJSWebTransportReceiveStreamStats
  20091. --------------------------------------------------------------------}
  20092. TJSWebTransportReceiveStreamStatsRec = record
  20093. timestamp: TDOMHighResTimeStamp;
  20094. bytesReceived: QWord;
  20095. bytesRead: QWord;
  20096. end;
  20097. IJSWebTransportReceiveStreamStats = interface(IJSObject)
  20098. ['{6765D2FF-248B-3752-9B86-79E6D9B5D096}']
  20099. function _Gettimestamp: TDOMHighResTimeStamp;
  20100. function _GetbytesReceived: QWord;
  20101. function _GetbytesRead: QWord;
  20102. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  20103. procedure _SetbytesReceived(const aValue: QWord);
  20104. procedure _SetbytesRead(const aValue: QWord);
  20105. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  20106. property bytesReceived: QWord read _GetbytesReceived write _SetbytesReceived;
  20107. property bytesRead: QWord read _GetbytesRead write _SetbytesRead;
  20108. end;
  20109. TJSWebTransportReceiveStreamStats = class(TJSObject,IJSWebTransportReceiveStreamStats)
  20110. Protected
  20111. function _Gettimestamp: TDOMHighResTimeStamp;
  20112. function _GetbytesReceived: QWord;
  20113. function _GetbytesRead: QWord;
  20114. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  20115. procedure _SetbytesReceived(const aValue: QWord);
  20116. procedure _SetbytesRead(const aValue: QWord);
  20117. Public
  20118. class function JSClassName: UnicodeString; override;
  20119. class function Cast(const Intf: IJSObject): IJSWebTransportReceiveStreamStats;
  20120. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  20121. property bytesReceived: QWord read _GetbytesReceived write _SetbytesReceived;
  20122. property bytesRead: QWord read _GetbytesRead write _SetbytesRead;
  20123. end;
  20124. { --------------------------------------------------------------------
  20125. TJSXRSessionInit
  20126. --------------------------------------------------------------------}
  20127. TJSXRSessionInitRec = record
  20128. requiredFeatures: TUnicodeStringDynArray;
  20129. optionalFeatures: TUnicodeStringDynArray;
  20130. end;
  20131. IJSXRSessionInit = interface(IJSObject)
  20132. ['{B0727B8E-8E95-36EB-92A2-375923424398}']
  20133. function _GetrequiredFeatures: TUnicodeStringDynArray;
  20134. function _GetoptionalFeatures: TUnicodeStringDynArray;
  20135. procedure _SetrequiredFeatures(const aValue: TUnicodeStringDynArray);
  20136. procedure _SetoptionalFeatures(const aValue: TUnicodeStringDynArray);
  20137. property requiredFeatures: TUnicodeStringDynArray read _GetrequiredFeatures write _SetrequiredFeatures;
  20138. property optionalFeatures: TUnicodeStringDynArray read _GetoptionalFeatures write _SetoptionalFeatures;
  20139. end;
  20140. TJSXRSessionInit = class(TJSObject,IJSXRSessionInit)
  20141. Protected
  20142. function _GetrequiredFeatures: TUnicodeStringDynArray;
  20143. function _GetoptionalFeatures: TUnicodeStringDynArray;
  20144. procedure _SetrequiredFeatures(const aValue: TUnicodeStringDynArray);
  20145. procedure _SetoptionalFeatures(const aValue: TUnicodeStringDynArray);
  20146. Public
  20147. class function JSClassName: UnicodeString; override;
  20148. class function Cast(const Intf: IJSObject): IJSXRSessionInit;
  20149. property requiredFeatures: TUnicodeStringDynArray read _GetrequiredFeatures write _SetrequiredFeatures;
  20150. property optionalFeatures: TUnicodeStringDynArray read _GetoptionalFeatures write _SetoptionalFeatures;
  20151. end;
  20152. { --------------------------------------------------------------------
  20153. TJSXRRenderStateInit
  20154. --------------------------------------------------------------------}
  20155. TJSXRRenderStateInitRec = record
  20156. depthNear: Double;
  20157. depthFar: Double;
  20158. inlineVerticalFieldOfView: Double;
  20159. baseLayer: TJSXRWebGLLayer;
  20160. end;
  20161. IJSXRRenderStateInit = interface(IJSObject)
  20162. ['{9FF0E688-C3CD-3E35-8133-758A47547D6C}']
  20163. function _GetdepthNear: Double;
  20164. function _GetdepthFar: Double;
  20165. function _GetinlineVerticalFieldOfView: Double;
  20166. function _GetbaseLayer: IJSXRWebGLLayer;
  20167. procedure _SetdepthNear(const aValue: Double);
  20168. procedure _SetdepthFar(const aValue: Double);
  20169. procedure _SetinlineVerticalFieldOfView(const aValue: Double);
  20170. procedure _SetbaseLayer(const aValue: IJSXRWebGLLayer);
  20171. property depthNear: Double read _GetdepthNear write _SetdepthNear;
  20172. property depthFar: Double read _GetdepthFar write _SetdepthFar;
  20173. property inlineVerticalFieldOfView: Double read _GetinlineVerticalFieldOfView write _SetinlineVerticalFieldOfView;
  20174. property baseLayer: IJSXRWebGLLayer read _GetbaseLayer write _SetbaseLayer;
  20175. end;
  20176. TJSXRRenderStateInit = class(TJSObject,IJSXRRenderStateInit)
  20177. Protected
  20178. function _GetdepthNear: Double;
  20179. function _GetdepthFar: Double;
  20180. function _GetinlineVerticalFieldOfView: Double;
  20181. function _GetbaseLayer: IJSXRWebGLLayer;
  20182. procedure _SetdepthNear(const aValue: Double);
  20183. procedure _SetdepthFar(const aValue: Double);
  20184. procedure _SetinlineVerticalFieldOfView(const aValue: Double);
  20185. procedure _SetbaseLayer(const aValue: IJSXRWebGLLayer);
  20186. Public
  20187. class function JSClassName: UnicodeString; override;
  20188. class function Cast(const Intf: IJSObject): IJSXRRenderStateInit;
  20189. property depthNear: Double read _GetdepthNear write _SetdepthNear;
  20190. property depthFar: Double read _GetdepthFar write _SetdepthFar;
  20191. property inlineVerticalFieldOfView: Double read _GetinlineVerticalFieldOfView write _SetinlineVerticalFieldOfView;
  20192. property baseLayer: IJSXRWebGLLayer read _GetbaseLayer write _SetbaseLayer;
  20193. end;
  20194. { --------------------------------------------------------------------
  20195. TJSXRWebGLLayerInit
  20196. --------------------------------------------------------------------}
  20197. TJSXRWebGLLayerInitRec = record
  20198. antialias: Boolean;
  20199. depth: Boolean;
  20200. stencil: Boolean;
  20201. alpha: Boolean;
  20202. ignoreDepthValues: Boolean;
  20203. framebufferScaleFactor: Double;
  20204. end;
  20205. IJSXRWebGLLayerInit = interface(IJSObject)
  20206. ['{EB72E6CC-68E9-36EE-841D-C83EA2269E9D}']
  20207. function _Getantialias: Boolean;
  20208. function _Getdepth: Boolean;
  20209. function _Getstencil: Boolean;
  20210. function _Getalpha: Boolean;
  20211. function _GetignoreDepthValues: Boolean;
  20212. function _GetframebufferScaleFactor: Double;
  20213. procedure _Setantialias(const aValue: Boolean);
  20214. procedure _Setdepth(const aValue: Boolean);
  20215. procedure _Setstencil(const aValue: Boolean);
  20216. procedure _Setalpha(const aValue: Boolean);
  20217. procedure _SetignoreDepthValues(const aValue: Boolean);
  20218. procedure _SetframebufferScaleFactor(const aValue: Double);
  20219. property antialias: Boolean read _Getantialias write _Setantialias;
  20220. property depth: Boolean read _Getdepth write _Setdepth;
  20221. property stencil: Boolean read _Getstencil write _Setstencil;
  20222. property alpha: Boolean read _Getalpha write _Setalpha;
  20223. property ignoreDepthValues: Boolean read _GetignoreDepthValues write _SetignoreDepthValues;
  20224. property framebufferScaleFactor: Double read _GetframebufferScaleFactor write _SetframebufferScaleFactor;
  20225. end;
  20226. TJSXRWebGLLayerInit = class(TJSObject,IJSXRWebGLLayerInit)
  20227. Protected
  20228. function _Getantialias: Boolean;
  20229. function _Getdepth: Boolean;
  20230. function _Getstencil: Boolean;
  20231. function _Getalpha: Boolean;
  20232. function _GetignoreDepthValues: Boolean;
  20233. function _GetframebufferScaleFactor: Double;
  20234. procedure _Setantialias(const aValue: Boolean);
  20235. procedure _Setdepth(const aValue: Boolean);
  20236. procedure _Setstencil(const aValue: Boolean);
  20237. procedure _Setalpha(const aValue: Boolean);
  20238. procedure _SetignoreDepthValues(const aValue: Boolean);
  20239. procedure _SetframebufferScaleFactor(const aValue: Double);
  20240. Public
  20241. class function JSClassName: UnicodeString; override;
  20242. class function Cast(const Intf: IJSObject): IJSXRWebGLLayerInit;
  20243. property antialias: Boolean read _Getantialias write _Setantialias;
  20244. property depth: Boolean read _Getdepth write _Setdepth;
  20245. property stencil: Boolean read _Getstencil write _Setstencil;
  20246. property alpha: Boolean read _Getalpha write _Setalpha;
  20247. property ignoreDepthValues: Boolean read _GetignoreDepthValues write _SetignoreDepthValues;
  20248. property framebufferScaleFactor: Double read _GetframebufferScaleFactor write _SetframebufferScaleFactor;
  20249. end;
  20250. { --------------------------------------------------------------------
  20251. TJSScrollOptions
  20252. --------------------------------------------------------------------}
  20253. TJSScrollOptionsRec = record
  20254. behavior: TScrollBehavior;
  20255. end;
  20256. IJSScrollOptions = interface(IJSObject)
  20257. ['{668F8EE8-DCCD-38C9-95AB-60372C6BA248}']
  20258. function _Getbehavior: TScrollBehavior;
  20259. procedure _Setbehavior(const aValue: TScrollBehavior);
  20260. property behavior: TScrollBehavior read _Getbehavior write _Setbehavior;
  20261. end;
  20262. TJSScrollOptions = class(TJSObject,IJSScrollOptions)
  20263. Protected
  20264. function _Getbehavior: TScrollBehavior;
  20265. procedure _Setbehavior(const aValue: TScrollBehavior);
  20266. Public
  20267. class function JSClassName: UnicodeString; override;
  20268. class function Cast(const Intf: IJSObject): IJSScrollOptions;
  20269. property behavior: TScrollBehavior read _Getbehavior write _Setbehavior;
  20270. end;
  20271. { --------------------------------------------------------------------
  20272. TJSSizeToContentConstraints
  20273. --------------------------------------------------------------------}
  20274. TJSSizeToContentConstraintsRec = record
  20275. maxWidth: LongInt;
  20276. maxHeight: LongInt;
  20277. prefWidth: LongInt;
  20278. end;
  20279. IJSSizeToContentConstraints = interface(IJSObject)
  20280. ['{5644B944-C26D-3134-BF26-D8690F8044CC}']
  20281. function _GetmaxWidth: LongInt;
  20282. function _GetmaxHeight: LongInt;
  20283. function _GetprefWidth: LongInt;
  20284. procedure _SetmaxWidth(const aValue: LongInt);
  20285. procedure _SetmaxHeight(const aValue: LongInt);
  20286. procedure _SetprefWidth(const aValue: LongInt);
  20287. property maxWidth: LongInt read _GetmaxWidth write _SetmaxWidth;
  20288. property maxHeight: LongInt read _GetmaxHeight write _SetmaxHeight;
  20289. property prefWidth: LongInt read _GetprefWidth write _SetprefWidth;
  20290. end;
  20291. TJSSizeToContentConstraints = class(TJSObject,IJSSizeToContentConstraints)
  20292. Protected
  20293. function _GetmaxWidth: LongInt;
  20294. function _GetmaxHeight: LongInt;
  20295. function _GetprefWidth: LongInt;
  20296. procedure _SetmaxWidth(const aValue: LongInt);
  20297. procedure _SetmaxHeight(const aValue: LongInt);
  20298. procedure _SetprefWidth(const aValue: LongInt);
  20299. Public
  20300. class function JSClassName: UnicodeString; override;
  20301. class function Cast(const Intf: IJSObject): IJSSizeToContentConstraints;
  20302. property maxWidth: LongInt read _GetmaxWidth write _SetmaxWidth;
  20303. property maxHeight: LongInt read _GetmaxHeight write _SetmaxHeight;
  20304. property prefWidth: LongInt read _GetprefWidth write _SetprefWidth;
  20305. end;
  20306. { --------------------------------------------------------------------
  20307. TJSIdleRequestOptions
  20308. --------------------------------------------------------------------}
  20309. TJSIdleRequestOptionsRec = record
  20310. timeout: Cardinal;
  20311. end;
  20312. IJSIdleRequestOptions = interface(IJSObject)
  20313. ['{52B3663F-24DA-3A51-8391-64CAD7F04189}']
  20314. function _Gettimeout: Cardinal;
  20315. procedure _Settimeout(const aValue: Cardinal);
  20316. property timeout: Cardinal read _Gettimeout write _Settimeout;
  20317. end;
  20318. TJSIdleRequestOptions = class(TJSObject,IJSIdleRequestOptions)
  20319. Protected
  20320. function _Gettimeout: Cardinal;
  20321. procedure _Settimeout(const aValue: Cardinal);
  20322. Public
  20323. class function JSClassName: UnicodeString; override;
  20324. class function Cast(const Intf: IJSObject): IJSIdleRequestOptions;
  20325. property timeout: Cardinal read _Gettimeout write _Settimeout;
  20326. end;
  20327. { --------------------------------------------------------------------
  20328. TJSWorkerOptions
  20329. --------------------------------------------------------------------}
  20330. TJSWorkerOptionsRec = record
  20331. type_: TWorkerType;
  20332. credentials: TRequestCredentials;
  20333. name: UnicodeString;
  20334. end;
  20335. IJSWorkerOptions = interface(IJSObject)
  20336. ['{AC53611B-46C5-3CC9-95AB-B90869107267}']
  20337. function _Gettype_: TWorkerType;
  20338. function _Getcredentials: TRequestCredentials;
  20339. function _Getname: UnicodeString;
  20340. procedure _Settype_(const aValue: TWorkerType);
  20341. procedure _Setcredentials(const aValue: TRequestCredentials);
  20342. procedure _Setname(const aValue: UnicodeString);
  20343. property type_: TWorkerType read _Gettype_ write _Settype_;
  20344. property credentials: TRequestCredentials read _Getcredentials write _Setcredentials;
  20345. property name: UnicodeString read _Getname write _Setname;
  20346. end;
  20347. TJSWorkerOptions = class(TJSObject,IJSWorkerOptions)
  20348. Protected
  20349. function _Gettype_: TWorkerType;
  20350. function _Getcredentials: TRequestCredentials;
  20351. function _Getname: UnicodeString;
  20352. procedure _Settype_(const aValue: TWorkerType);
  20353. procedure _Setcredentials(const aValue: TRequestCredentials);
  20354. procedure _Setname(const aValue: UnicodeString);
  20355. Public
  20356. class function JSClassName: UnicodeString; override;
  20357. class function Cast(const Intf: IJSObject): IJSWorkerOptions;
  20358. property type_: TWorkerType read _Gettype_ write _Settype_;
  20359. property credentials: TRequestCredentials read _Getcredentials write _Setcredentials;
  20360. property name: UnicodeString read _Getname write _Setname;
  20361. end;
  20362. { --------------------------------------------------------------------
  20363. TJSWorkletOptions
  20364. --------------------------------------------------------------------}
  20365. TJSWorkletOptionsRec = record
  20366. credentials: TRequestCredentials;
  20367. end;
  20368. IJSWorkletOptions = interface(IJSObject)
  20369. ['{9C0ED0BF-78D0-3755-9AB9-6DCE50549FB2}']
  20370. function _Getcredentials: TRequestCredentials;
  20371. procedure _Setcredentials(const aValue: TRequestCredentials);
  20372. property credentials: TRequestCredentials read _Getcredentials write _Setcredentials;
  20373. end;
  20374. TJSWorkletOptions = class(TJSObject,IJSWorkletOptions)
  20375. Protected
  20376. function _Getcredentials: TRequestCredentials;
  20377. procedure _Setcredentials(const aValue: TRequestCredentials);
  20378. Public
  20379. class function JSClassName: UnicodeString; override;
  20380. class function Cast(const Intf: IJSObject): IJSWorkletOptions;
  20381. property credentials: TRequestCredentials read _Getcredentials write _Setcredentials;
  20382. end;
  20383. { --------------------------------------------------------------------
  20384. TJSMozXMLHttpRequestParameters
  20385. --------------------------------------------------------------------}
  20386. TJSMozXMLHttpRequestParametersRec = record
  20387. mozAnon: Boolean;
  20388. mozSystem: Boolean;
  20389. end;
  20390. IJSMozXMLHttpRequestParameters = interface(IJSObject)
  20391. ['{DDE9C446-70AD-3FBA-8B70-1F3FCBD40A8E}']
  20392. function _GetmozAnon: Boolean;
  20393. function _GetmozSystem: Boolean;
  20394. procedure _SetmozAnon(const aValue: Boolean);
  20395. procedure _SetmozSystem(const aValue: Boolean);
  20396. property mozAnon: Boolean read _GetmozAnon write _SetmozAnon;
  20397. property mozSystem: Boolean read _GetmozSystem write _SetmozSystem;
  20398. end;
  20399. TJSMozXMLHttpRequestParameters = class(TJSObject,IJSMozXMLHttpRequestParameters)
  20400. Protected
  20401. function _GetmozAnon: Boolean;
  20402. function _GetmozSystem: Boolean;
  20403. procedure _SetmozAnon(const aValue: Boolean);
  20404. procedure _SetmozSystem(const aValue: Boolean);
  20405. Public
  20406. class function JSClassName: UnicodeString; override;
  20407. class function Cast(const Intf: IJSObject): IJSMozXMLHttpRequestParameters;
  20408. property mozAnon: Boolean read _GetmozAnon write _SetmozAnon;
  20409. property mozSystem: Boolean read _GetmozSystem write _SetmozSystem;
  20410. end;
  20411. { --------------------------------------------------------------------
  20412. TJSAddonEventInit
  20413. --------------------------------------------------------------------}
  20414. TJSAddonEventInitRec = record
  20415. id: UnicodeString;
  20416. bubbles: Boolean;
  20417. cancelable: Boolean;
  20418. composed: Boolean;
  20419. end;
  20420. IJSAddonEventInit = interface(IJSEventInit)
  20421. ['{A28C6B07-F777-37F3-BF8E-FD52E4C6E5A9}']
  20422. function _Getid: UnicodeString;
  20423. procedure _Setid(const aValue: UnicodeString);
  20424. property id: UnicodeString read _Getid write _Setid;
  20425. end;
  20426. TJSAddonEventInit = class(TJSEventInit,IJSAddonEventInit)
  20427. Protected
  20428. function _Getid: UnicodeString;
  20429. procedure _Setid(const aValue: UnicodeString);
  20430. Public
  20431. class function JSClassName: UnicodeString; override;
  20432. class function Cast(const Intf: IJSObject): IJSAddonEventInit;
  20433. property id: UnicodeString read _Getid write _Setid;
  20434. end;
  20435. { --------------------------------------------------------------------
  20436. TJSAnalyserOptions
  20437. --------------------------------------------------------------------}
  20438. TJSAnalyserOptionsRec = record
  20439. fftSize: Cardinal;
  20440. maxDecibels: Double;
  20441. minDecibels: Double;
  20442. smoothingTimeConstant: Double;
  20443. channelCount: Cardinal;
  20444. channelCountMode: TChannelCountMode;
  20445. channelInterpretation: TChannelInterpretation;
  20446. end;
  20447. IJSAnalyserOptions = interface(IJSAudioNodeOptions)
  20448. ['{0366BDAB-DF3A-3907-9AF3-C2B631890135}']
  20449. function _GetfftSize: Cardinal;
  20450. function _GetmaxDecibels: Double;
  20451. function _GetminDecibels: Double;
  20452. function _GetsmoothingTimeConstant: Double;
  20453. procedure _SetfftSize(const aValue: Cardinal);
  20454. procedure _SetmaxDecibels(const aValue: Double);
  20455. procedure _SetminDecibels(const aValue: Double);
  20456. procedure _SetsmoothingTimeConstant(const aValue: Double);
  20457. property fftSize: Cardinal read _GetfftSize write _SetfftSize;
  20458. property maxDecibels: Double read _GetmaxDecibels write _SetmaxDecibels;
  20459. property minDecibels: Double read _GetminDecibels write _SetminDecibels;
  20460. property smoothingTimeConstant: Double read _GetsmoothingTimeConstant write _SetsmoothingTimeConstant;
  20461. end;
  20462. TJSAnalyserOptions = class(TJSAudioNodeOptions,IJSAnalyserOptions)
  20463. Protected
  20464. function _GetfftSize: Cardinal;
  20465. function _GetmaxDecibels: Double;
  20466. function _GetminDecibels: Double;
  20467. function _GetsmoothingTimeConstant: Double;
  20468. procedure _SetfftSize(const aValue: Cardinal);
  20469. procedure _SetmaxDecibels(const aValue: Double);
  20470. procedure _SetminDecibels(const aValue: Double);
  20471. procedure _SetsmoothingTimeConstant(const aValue: Double);
  20472. Public
  20473. class function JSClassName: UnicodeString; override;
  20474. class function Cast(const Intf: IJSObject): IJSAnalyserOptions;
  20475. property fftSize: Cardinal read _GetfftSize write _SetfftSize;
  20476. property maxDecibels: Double read _GetmaxDecibels write _SetmaxDecibels;
  20477. property minDecibels: Double read _GetminDecibels write _SetminDecibels;
  20478. property smoothingTimeConstant: Double read _GetsmoothingTimeConstant write _SetsmoothingTimeConstant;
  20479. end;
  20480. { --------------------------------------------------------------------
  20481. TJSComputedEffectTiming
  20482. --------------------------------------------------------------------}
  20483. TJSComputedEffectTimingRec = record
  20484. endTime: Double;
  20485. activeDuration: Double;
  20486. localTime: Double;
  20487. progress: Double;
  20488. currentIteration: Double;
  20489. delay: Double;
  20490. endDelay: Double;
  20491. fill: TFillMode;
  20492. iterationStart: Double;
  20493. iterations: Double;
  20494. duration: TEffectTiming_duration_Type;
  20495. direction: TPlaybackDirection;
  20496. easing: UTF8String;
  20497. end;
  20498. IJSComputedEffectTiming = interface(IJSEffectTiming)
  20499. ['{01AF1524-9147-310C-9C74-3ACCA397FCE5}']
  20500. function _GetendTime: Double;
  20501. function _GetactiveDuration: Double;
  20502. function _GetlocalTime: Double;
  20503. function _Getprogress: Double;
  20504. function _GetcurrentIteration: Double;
  20505. procedure _SetendTime(const aValue: Double);
  20506. procedure _SetactiveDuration(const aValue: Double);
  20507. procedure _SetlocalTime(const aValue: Double);
  20508. procedure _Setprogress(const aValue: Double);
  20509. procedure _SetcurrentIteration(const aValue: Double);
  20510. property endTime: Double read _GetendTime write _SetendTime;
  20511. property activeDuration: Double read _GetactiveDuration write _SetactiveDuration;
  20512. property localTime: Double read _GetlocalTime write _SetlocalTime;
  20513. property progress: Double read _Getprogress write _Setprogress;
  20514. property currentIteration: Double read _GetcurrentIteration write _SetcurrentIteration;
  20515. end;
  20516. TJSComputedEffectTiming = class(TJSEffectTiming,IJSComputedEffectTiming)
  20517. Protected
  20518. function _GetendTime: Double;
  20519. function _GetactiveDuration: Double;
  20520. function _GetlocalTime: Double;
  20521. function _Getprogress: Double;
  20522. function _GetcurrentIteration: Double;
  20523. procedure _SetendTime(const aValue: Double);
  20524. procedure _SetactiveDuration(const aValue: Double);
  20525. procedure _SetlocalTime(const aValue: Double);
  20526. procedure _Setprogress(const aValue: Double);
  20527. procedure _SetcurrentIteration(const aValue: Double);
  20528. Public
  20529. class function JSClassName: UnicodeString; override;
  20530. class function Cast(const Intf: IJSObject): IJSComputedEffectTiming;
  20531. property endTime: Double read _GetendTime write _SetendTime;
  20532. property activeDuration: Double read _GetactiveDuration write _SetactiveDuration;
  20533. property localTime: Double read _GetlocalTime write _SetlocalTime;
  20534. property progress: Double read _Getprogress write _Setprogress;
  20535. property currentIteration: Double read _GetcurrentIteration write _SetcurrentIteration;
  20536. end;
  20537. { --------------------------------------------------------------------
  20538. TJSAnimationEventInit
  20539. --------------------------------------------------------------------}
  20540. TJSAnimationEventInitRec = record
  20541. animationName: UnicodeString;
  20542. elapsedTime: Single;
  20543. pseudoElement: UnicodeString;
  20544. bubbles: Boolean;
  20545. cancelable: Boolean;
  20546. composed: Boolean;
  20547. end;
  20548. IJSAnimationEventInit = interface(IJSEventInit)
  20549. ['{B2CA5EE5-DCB8-3B8A-81C2-AD510854D7C0}']
  20550. function _GetanimationName: UnicodeString;
  20551. function _GetelapsedTime: Single;
  20552. function _GetpseudoElement: UnicodeString;
  20553. procedure _SetanimationName(const aValue: UnicodeString);
  20554. procedure _SetelapsedTime(const aValue: Single);
  20555. procedure _SetpseudoElement(const aValue: UnicodeString);
  20556. property animationName: UnicodeString read _GetanimationName write _SetanimationName;
  20557. property elapsedTime: Single read _GetelapsedTime write _SetelapsedTime;
  20558. property pseudoElement: UnicodeString read _GetpseudoElement write _SetpseudoElement;
  20559. end;
  20560. TJSAnimationEventInit = class(TJSEventInit,IJSAnimationEventInit)
  20561. Protected
  20562. function _GetanimationName: UnicodeString;
  20563. function _GetelapsedTime: Single;
  20564. function _GetpseudoElement: UnicodeString;
  20565. procedure _SetanimationName(const aValue: UnicodeString);
  20566. procedure _SetelapsedTime(const aValue: Single);
  20567. procedure _SetpseudoElement(const aValue: UnicodeString);
  20568. Public
  20569. class function JSClassName: UnicodeString; override;
  20570. class function Cast(const Intf: IJSObject): IJSAnimationEventInit;
  20571. property animationName: UnicodeString read _GetanimationName write _SetanimationName;
  20572. property elapsedTime: Single read _GetelapsedTime write _SetelapsedTime;
  20573. property pseudoElement: UnicodeString read _GetpseudoElement write _SetpseudoElement;
  20574. end;
  20575. { --------------------------------------------------------------------
  20576. TJSAnimationPlaybackEventInit
  20577. --------------------------------------------------------------------}
  20578. TJSAnimationPlaybackEventInitRec = record
  20579. currentTime: Double;
  20580. timelineTime: Double;
  20581. bubbles: Boolean;
  20582. cancelable: Boolean;
  20583. composed: Boolean;
  20584. end;
  20585. IJSAnimationPlaybackEventInit = interface(IJSEventInit)
  20586. ['{6ED643EA-1681-3FE0-BAEC-24B302CC745E}']
  20587. function _GetcurrentTime: Double;
  20588. function _GettimelineTime: Double;
  20589. procedure _SetcurrentTime(const aValue: Double);
  20590. procedure _SettimelineTime(const aValue: Double);
  20591. property currentTime: Double read _GetcurrentTime write _SetcurrentTime;
  20592. property timelineTime: Double read _GettimelineTime write _SettimelineTime;
  20593. end;
  20594. TJSAnimationPlaybackEventInit = class(TJSEventInit,IJSAnimationPlaybackEventInit)
  20595. Protected
  20596. function _GetcurrentTime: Double;
  20597. function _GettimelineTime: Double;
  20598. procedure _SetcurrentTime(const aValue: Double);
  20599. procedure _SettimelineTime(const aValue: Double);
  20600. Public
  20601. class function JSClassName: UnicodeString; override;
  20602. class function Cast(const Intf: IJSObject): IJSAnimationPlaybackEventInit;
  20603. property currentTime: Double read _GetcurrentTime write _SetcurrentTime;
  20604. property timelineTime: Double read _GettimelineTime write _SettimelineTime;
  20605. end;
  20606. { --------------------------------------------------------------------
  20607. TJSAudioWorkletNodeOptions
  20608. --------------------------------------------------------------------}
  20609. TJSAudioWorkletNodeOptionsRec = record
  20610. numberOfInputs: Cardinal;
  20611. numberOfOutputs: Cardinal;
  20612. outputChannelCount: TCardinalDynArray;
  20613. parameterData: IJSObject;
  20614. processorOptions: IJSObject;
  20615. channelCount: Cardinal;
  20616. channelCountMode: TChannelCountMode;
  20617. channelInterpretation: TChannelInterpretation;
  20618. end;
  20619. IJSAudioWorkletNodeOptions = interface(IJSAudioNodeOptions)
  20620. ['{BD88DCDC-9509-3C34-BFB1-73ABFD828748}']
  20621. function _GetnumberOfInputs: Cardinal;
  20622. function _GetnumberOfOutputs: Cardinal;
  20623. function _GetoutputChannelCount: TCardinalDynArray;
  20624. function _GetparameterData: IJSObject;
  20625. function _GetprocessorOptions: IJSObject;
  20626. procedure _SetnumberOfInputs(const aValue: Cardinal);
  20627. procedure _SetnumberOfOutputs(const aValue: Cardinal);
  20628. procedure _SetoutputChannelCount(const aValue: TCardinalDynArray);
  20629. procedure _SetparameterData(const aValue: IJSObject);
  20630. procedure _SetprocessorOptions(const aValue: IJSObject);
  20631. property numberOfInputs: Cardinal read _GetnumberOfInputs write _SetnumberOfInputs;
  20632. property numberOfOutputs: Cardinal read _GetnumberOfOutputs write _SetnumberOfOutputs;
  20633. property outputChannelCount: TCardinalDynArray read _GetoutputChannelCount write _SetoutputChannelCount;
  20634. property parameterData: IJSObject read _GetparameterData write _SetparameterData;
  20635. property processorOptions: IJSObject read _GetprocessorOptions write _SetprocessorOptions;
  20636. end;
  20637. TJSAudioWorkletNodeOptions = class(TJSAudioNodeOptions,IJSAudioWorkletNodeOptions)
  20638. Protected
  20639. function _GetnumberOfInputs: Cardinal;
  20640. function _GetnumberOfOutputs: Cardinal;
  20641. function _GetoutputChannelCount: TCardinalDynArray;
  20642. function _GetparameterData: IJSObject;
  20643. function _GetprocessorOptions: IJSObject;
  20644. procedure _SetnumberOfInputs(const aValue: Cardinal);
  20645. procedure _SetnumberOfOutputs(const aValue: Cardinal);
  20646. procedure _SetoutputChannelCount(const aValue: TCardinalDynArray);
  20647. procedure _SetparameterData(const aValue: IJSObject);
  20648. procedure _SetprocessorOptions(const aValue: IJSObject);
  20649. Public
  20650. class function JSClassName: UnicodeString; override;
  20651. class function Cast(const Intf: IJSObject): IJSAudioWorkletNodeOptions;
  20652. property numberOfInputs: Cardinal read _GetnumberOfInputs write _SetnumberOfInputs;
  20653. property numberOfOutputs: Cardinal read _GetnumberOfOutputs write _SetnumberOfOutputs;
  20654. property outputChannelCount: TCardinalDynArray read _GetoutputChannelCount write _SetoutputChannelCount;
  20655. property parameterData: IJSObject read _GetparameterData write _SetparameterData;
  20656. property processorOptions: IJSObject read _GetprocessorOptions write _SetprocessorOptions;
  20657. end;
  20658. { --------------------------------------------------------------------
  20659. TJSBaseComputedKeyframe
  20660. --------------------------------------------------------------------}
  20661. TJSBaseComputedKeyframeRec = record
  20662. computedOffset: Double;
  20663. offset: Double;
  20664. easing: UTF8String;
  20665. composite: TCompositeOperationOrAuto;
  20666. end;
  20667. IJSBaseComputedKeyframe = interface(IJSBaseKeyframe)
  20668. ['{D901C182-F592-3683-8F82-14F5C172E4FC}']
  20669. function _GetcomputedOffset: Double;
  20670. procedure _SetcomputedOffset(const aValue: Double);
  20671. property computedOffset: Double read _GetcomputedOffset write _SetcomputedOffset;
  20672. end;
  20673. TJSBaseComputedKeyframe = class(TJSBaseKeyframe,IJSBaseComputedKeyframe)
  20674. Protected
  20675. function _GetcomputedOffset: Double;
  20676. procedure _SetcomputedOffset(const aValue: Double);
  20677. Public
  20678. class function JSClassName: UnicodeString; override;
  20679. class function Cast(const Intf: IJSObject): IJSBaseComputedKeyframe;
  20680. property computedOffset: Double read _GetcomputedOffset write _SetcomputedOffset;
  20681. end;
  20682. { --------------------------------------------------------------------
  20683. TJSBiquadFilterOptions
  20684. --------------------------------------------------------------------}
  20685. TJSBiquadFilterOptionsRec = record
  20686. type_: TBiquadFilterType;
  20687. Q: Single;
  20688. detune: Single;
  20689. frequency: Single;
  20690. gain: Single;
  20691. channelCount: Cardinal;
  20692. channelCountMode: TChannelCountMode;
  20693. channelInterpretation: TChannelInterpretation;
  20694. end;
  20695. IJSBiquadFilterOptions = interface(IJSAudioNodeOptions)
  20696. ['{E13E72E5-36BF-311A-841A-0B116792AF38}']
  20697. function _Gettype_: TBiquadFilterType;
  20698. function _GetQ: Single;
  20699. function _Getdetune: Single;
  20700. function _Getfrequency: Single;
  20701. function _Getgain: Single;
  20702. procedure _Settype_(const aValue: TBiquadFilterType);
  20703. procedure _SetQ(const aValue: Single);
  20704. procedure _Setdetune(const aValue: Single);
  20705. procedure _Setfrequency(const aValue: Single);
  20706. procedure _Setgain(const aValue: Single);
  20707. property type_: TBiquadFilterType read _Gettype_ write _Settype_;
  20708. property Q: Single read _GetQ write _SetQ;
  20709. property detune: Single read _Getdetune write _Setdetune;
  20710. property frequency: Single read _Getfrequency write _Setfrequency;
  20711. property gain: Single read _Getgain write _Setgain;
  20712. end;
  20713. TJSBiquadFilterOptions = class(TJSAudioNodeOptions,IJSBiquadFilterOptions)
  20714. Protected
  20715. function _Gettype_: TBiquadFilterType;
  20716. function _GetQ: Single;
  20717. function _Getdetune: Single;
  20718. function _Getfrequency: Single;
  20719. function _Getgain: Single;
  20720. procedure _Settype_(const aValue: TBiquadFilterType);
  20721. procedure _SetQ(const aValue: Single);
  20722. procedure _Setdetune(const aValue: Single);
  20723. procedure _Setfrequency(const aValue: Single);
  20724. procedure _Setgain(const aValue: Single);
  20725. Public
  20726. class function JSClassName: UnicodeString; override;
  20727. class function Cast(const Intf: IJSObject): IJSBiquadFilterOptions;
  20728. property type_: TBiquadFilterType read _Gettype_ write _Settype_;
  20729. property Q: Single read _GetQ write _SetQ;
  20730. property detune: Single read _Getdetune write _Setdetune;
  20731. property frequency: Single read _Getfrequency write _Setfrequency;
  20732. property gain: Single read _Getgain write _Setgain;
  20733. end;
  20734. { --------------------------------------------------------------------
  20735. TJSBlobEventInit
  20736. --------------------------------------------------------------------}
  20737. TJSBlobEventInitRec = record
  20738. data: TJSBlob;
  20739. bubbles: Boolean;
  20740. cancelable: Boolean;
  20741. composed: Boolean;
  20742. end;
  20743. IJSBlobEventInit = interface(IJSEventInit)
  20744. ['{668E845B-CB1A-3D96-AE3E-AA785ABD1248}']
  20745. function _Getdata: IJSBlob;
  20746. procedure _Setdata(const aValue: IJSBlob);
  20747. property data: IJSBlob read _Getdata write _Setdata;
  20748. end;
  20749. TJSBlobEventInit = class(TJSEventInit,IJSBlobEventInit)
  20750. Protected
  20751. function _Getdata: IJSBlob;
  20752. procedure _Setdata(const aValue: IJSBlob);
  20753. Public
  20754. class function JSClassName: UnicodeString; override;
  20755. class function Cast(const Intf: IJSObject): IJSBlobEventInit;
  20756. property data: IJSBlob read _Getdata write _Setdata;
  20757. end;
  20758. { --------------------------------------------------------------------
  20759. TJSMultiCacheQueryOptions
  20760. --------------------------------------------------------------------}
  20761. TJSMultiCacheQueryOptionsRec = record
  20762. cacheName: UnicodeString;
  20763. ignoreSearch: Boolean;
  20764. ignoreMethod: Boolean;
  20765. ignoreVary: Boolean;
  20766. end;
  20767. IJSMultiCacheQueryOptions = interface(IJSCacheQueryOptions)
  20768. ['{FE3BDFB0-A74E-375E-9590-7D5DD8469317}']
  20769. function _GetcacheName: UnicodeString;
  20770. procedure _SetcacheName(const aValue: UnicodeString);
  20771. property cacheName: UnicodeString read _GetcacheName write _SetcacheName;
  20772. end;
  20773. TJSMultiCacheQueryOptions = class(TJSCacheQueryOptions,IJSMultiCacheQueryOptions)
  20774. Protected
  20775. function _GetcacheName: UnicodeString;
  20776. procedure _SetcacheName(const aValue: UnicodeString);
  20777. Public
  20778. class function JSClassName: UnicodeString; override;
  20779. class function Cast(const Intf: IJSObject): IJSMultiCacheQueryOptions;
  20780. property cacheName: UnicodeString read _GetcacheName write _SetcacheName;
  20781. end;
  20782. { --------------------------------------------------------------------
  20783. TJSCaretStateChangedEventInit
  20784. --------------------------------------------------------------------}
  20785. TJSCaretStateChangedEventInitRec = record
  20786. collapsed: Boolean;
  20787. boundingClientRect: TJSDOMRectReadOnly;
  20788. reason: TCaretChangedReason;
  20789. caretVisible: Boolean;
  20790. caretVisuallyVisible: Boolean;
  20791. selectionVisible: Boolean;
  20792. selectionEditable: Boolean;
  20793. selectedTextContent: UnicodeString;
  20794. clientX: LongInt;
  20795. clientY: LongInt;
  20796. bubbles: Boolean;
  20797. cancelable: Boolean;
  20798. composed: Boolean;
  20799. end;
  20800. IJSCaretStateChangedEventInit = interface(IJSEventInit)
  20801. ['{99AB811E-675D-340E-8DF8-647B38736C9F}']
  20802. function _Getcollapsed: Boolean;
  20803. function _GetboundingClientRect: IJSDOMRectReadOnly;
  20804. function _Getreason: TCaretChangedReason;
  20805. function _GetcaretVisible: Boolean;
  20806. function _GetcaretVisuallyVisible: Boolean;
  20807. function _GetselectionVisible: Boolean;
  20808. function _GetselectionEditable: Boolean;
  20809. function _GetselectedTextContent: UnicodeString;
  20810. function _GetclientX: LongInt;
  20811. function _GetclientY: LongInt;
  20812. procedure _Setcollapsed(const aValue: Boolean);
  20813. procedure _SetboundingClientRect(const aValue: IJSDOMRectReadOnly);
  20814. procedure _Setreason(const aValue: TCaretChangedReason);
  20815. procedure _SetcaretVisible(const aValue: Boolean);
  20816. procedure _SetcaretVisuallyVisible(const aValue: Boolean);
  20817. procedure _SetselectionVisible(const aValue: Boolean);
  20818. procedure _SetselectionEditable(const aValue: Boolean);
  20819. procedure _SetselectedTextContent(const aValue: UnicodeString);
  20820. procedure _SetclientX(const aValue: LongInt);
  20821. procedure _SetclientY(const aValue: LongInt);
  20822. property collapsed: Boolean read _Getcollapsed write _Setcollapsed;
  20823. property boundingClientRect: IJSDOMRectReadOnly read _GetboundingClientRect write _SetboundingClientRect;
  20824. property reason: TCaretChangedReason read _Getreason write _Setreason;
  20825. property caretVisible: Boolean read _GetcaretVisible write _SetcaretVisible;
  20826. property caretVisuallyVisible: Boolean read _GetcaretVisuallyVisible write _SetcaretVisuallyVisible;
  20827. property selectionVisible: Boolean read _GetselectionVisible write _SetselectionVisible;
  20828. property selectionEditable: Boolean read _GetselectionEditable write _SetselectionEditable;
  20829. property selectedTextContent: UnicodeString read _GetselectedTextContent write _SetselectedTextContent;
  20830. property clientX: LongInt read _GetclientX write _SetclientX;
  20831. property clientY: LongInt read _GetclientY write _SetclientY;
  20832. end;
  20833. TJSCaretStateChangedEventInit = class(TJSEventInit,IJSCaretStateChangedEventInit)
  20834. Protected
  20835. function _Getcollapsed: Boolean;
  20836. function _GetboundingClientRect: IJSDOMRectReadOnly;
  20837. function _Getreason: TCaretChangedReason;
  20838. function _GetcaretVisible: Boolean;
  20839. function _GetcaretVisuallyVisible: Boolean;
  20840. function _GetselectionVisible: Boolean;
  20841. function _GetselectionEditable: Boolean;
  20842. function _GetselectedTextContent: UnicodeString;
  20843. function _GetclientX: LongInt;
  20844. function _GetclientY: LongInt;
  20845. procedure _Setcollapsed(const aValue: Boolean);
  20846. procedure _SetboundingClientRect(const aValue: IJSDOMRectReadOnly);
  20847. procedure _Setreason(const aValue: TCaretChangedReason);
  20848. procedure _SetcaretVisible(const aValue: Boolean);
  20849. procedure _SetcaretVisuallyVisible(const aValue: Boolean);
  20850. procedure _SetselectionVisible(const aValue: Boolean);
  20851. procedure _SetselectionEditable(const aValue: Boolean);
  20852. procedure _SetselectedTextContent(const aValue: UnicodeString);
  20853. procedure _SetclientX(const aValue: LongInt);
  20854. procedure _SetclientY(const aValue: LongInt);
  20855. Public
  20856. class function JSClassName: UnicodeString; override;
  20857. class function Cast(const Intf: IJSObject): IJSCaretStateChangedEventInit;
  20858. property collapsed: Boolean read _Getcollapsed write _Setcollapsed;
  20859. property boundingClientRect: IJSDOMRectReadOnly read _GetboundingClientRect write _SetboundingClientRect;
  20860. property reason: TCaretChangedReason read _Getreason write _Setreason;
  20861. property caretVisible: Boolean read _GetcaretVisible write _SetcaretVisible;
  20862. property caretVisuallyVisible: Boolean read _GetcaretVisuallyVisible write _SetcaretVisuallyVisible;
  20863. property selectionVisible: Boolean read _GetselectionVisible write _SetselectionVisible;
  20864. property selectionEditable: Boolean read _GetselectionEditable write _SetselectionEditable;
  20865. property selectedTextContent: UnicodeString read _GetselectedTextContent write _SetselectedTextContent;
  20866. property clientX: LongInt read _GetclientX write _SetclientX;
  20867. property clientY: LongInt read _GetclientY write _SetclientY;
  20868. end;
  20869. { --------------------------------------------------------------------
  20870. TJSChannelMergerOptions
  20871. --------------------------------------------------------------------}
  20872. TJSChannelMergerOptionsRec = record
  20873. numberOfInputs: Cardinal;
  20874. channelCount: Cardinal;
  20875. channelCountMode: TChannelCountMode;
  20876. channelInterpretation: TChannelInterpretation;
  20877. end;
  20878. IJSChannelMergerOptions = interface(IJSAudioNodeOptions)
  20879. ['{FA8A8FA2-3356-394E-9BEC-85E8822B14DE}']
  20880. function _GetnumberOfInputs: Cardinal;
  20881. procedure _SetnumberOfInputs(const aValue: Cardinal);
  20882. property numberOfInputs: Cardinal read _GetnumberOfInputs write _SetnumberOfInputs;
  20883. end;
  20884. TJSChannelMergerOptions = class(TJSAudioNodeOptions,IJSChannelMergerOptions)
  20885. Protected
  20886. function _GetnumberOfInputs: Cardinal;
  20887. procedure _SetnumberOfInputs(const aValue: Cardinal);
  20888. Public
  20889. class function JSClassName: UnicodeString; override;
  20890. class function Cast(const Intf: IJSObject): IJSChannelMergerOptions;
  20891. property numberOfInputs: Cardinal read _GetnumberOfInputs write _SetnumberOfInputs;
  20892. end;
  20893. { --------------------------------------------------------------------
  20894. TJSChannelSplitterOptions
  20895. --------------------------------------------------------------------}
  20896. TJSChannelSplitterOptionsRec = record
  20897. numberOfOutputs: Cardinal;
  20898. channelCount: Cardinal;
  20899. channelCountMode: TChannelCountMode;
  20900. channelInterpretation: TChannelInterpretation;
  20901. end;
  20902. IJSChannelSplitterOptions = interface(IJSAudioNodeOptions)
  20903. ['{1010F919-7282-3061-A1C0-FCFC70A56D85}']
  20904. function _GetnumberOfOutputs: Cardinal;
  20905. procedure _SetnumberOfOutputs(const aValue: Cardinal);
  20906. property numberOfOutputs: Cardinal read _GetnumberOfOutputs write _SetnumberOfOutputs;
  20907. end;
  20908. TJSChannelSplitterOptions = class(TJSAudioNodeOptions,IJSChannelSplitterOptions)
  20909. Protected
  20910. function _GetnumberOfOutputs: Cardinal;
  20911. procedure _SetnumberOfOutputs(const aValue: Cardinal);
  20912. Public
  20913. class function JSClassName: UnicodeString; override;
  20914. class function Cast(const Intf: IJSObject): IJSChannelSplitterOptions;
  20915. property numberOfOutputs: Cardinal read _GetnumberOfOutputs write _SetnumberOfOutputs;
  20916. end;
  20917. { --------------------------------------------------------------------
  20918. TJSClipboardEventInit
  20919. --------------------------------------------------------------------}
  20920. TJSClipboardEventInitRec = record
  20921. data: UnicodeString;
  20922. dataType: UnicodeString;
  20923. bubbles: Boolean;
  20924. cancelable: Boolean;
  20925. composed: Boolean;
  20926. end;
  20927. IJSClipboardEventInit = interface(IJSEventInit)
  20928. ['{39EFEBED-83EE-3705-899B-4B371FD3392D}']
  20929. function _Getdata: UnicodeString;
  20930. function _GetdataType: UnicodeString;
  20931. procedure _Setdata(const aValue: UnicodeString);
  20932. procedure _SetdataType(const aValue: UnicodeString);
  20933. property data: UnicodeString read _Getdata write _Setdata;
  20934. property dataType: UnicodeString read _GetdataType write _SetdataType;
  20935. end;
  20936. TJSClipboardEventInit = class(TJSEventInit,IJSClipboardEventInit)
  20937. Protected
  20938. function _Getdata: UnicodeString;
  20939. function _GetdataType: UnicodeString;
  20940. procedure _Setdata(const aValue: UnicodeString);
  20941. procedure _SetdataType(const aValue: UnicodeString);
  20942. Public
  20943. class function JSClassName: UnicodeString; override;
  20944. class function Cast(const Intf: IJSObject): IJSClipboardEventInit;
  20945. property data: UnicodeString read _Getdata write _Setdata;
  20946. property dataType: UnicodeString read _GetdataType write _SetdataType;
  20947. end;
  20948. { --------------------------------------------------------------------
  20949. TJSCloseEventInit
  20950. --------------------------------------------------------------------}
  20951. TJSCloseEventInitRec = record
  20952. wasClean: Boolean;
  20953. code: Word;
  20954. reason: UnicodeString;
  20955. bubbles: Boolean;
  20956. cancelable: Boolean;
  20957. composed: Boolean;
  20958. end;
  20959. IJSCloseEventInit = interface(IJSEventInit)
  20960. ['{23E6DDB2-F7C9-34F4-AF8E-FD52CE8A1893}']
  20961. function _GetwasClean: Boolean;
  20962. function _Getcode: Word;
  20963. function _Getreason: UnicodeString;
  20964. procedure _SetwasClean(const aValue: Boolean);
  20965. procedure _Setcode(const aValue: Word);
  20966. procedure _Setreason(const aValue: UnicodeString);
  20967. property wasClean: Boolean read _GetwasClean write _SetwasClean;
  20968. property code: Word read _Getcode write _Setcode;
  20969. property reason: UnicodeString read _Getreason write _Setreason;
  20970. end;
  20971. TJSCloseEventInit = class(TJSEventInit,IJSCloseEventInit)
  20972. Protected
  20973. function _GetwasClean: Boolean;
  20974. function _Getcode: Word;
  20975. function _Getreason: UnicodeString;
  20976. procedure _SetwasClean(const aValue: Boolean);
  20977. procedure _Setcode(const aValue: Word);
  20978. procedure _Setreason(const aValue: UnicodeString);
  20979. Public
  20980. class function JSClassName: UnicodeString; override;
  20981. class function Cast(const Intf: IJSObject): IJSCloseEventInit;
  20982. property wasClean: Boolean read _GetwasClean write _SetwasClean;
  20983. property code: Word read _Getcode write _Setcode;
  20984. property reason: UnicodeString read _Getreason write _Setreason;
  20985. end;
  20986. { --------------------------------------------------------------------
  20987. TJSContentVisibilityAutoStateChangeEventInit
  20988. --------------------------------------------------------------------}
  20989. TJSContentVisibilityAutoStateChangeEventInitRec = record
  20990. skipped: Boolean;
  20991. bubbles: Boolean;
  20992. cancelable: Boolean;
  20993. composed: Boolean;
  20994. end;
  20995. IJSContentVisibilityAutoStateChangeEventInit = interface(IJSEventInit)
  20996. ['{16ACC5F9-486E-3278-962F-9D29547E15BE}']
  20997. function _Getskipped: Boolean;
  20998. procedure _Setskipped(const aValue: Boolean);
  20999. property skipped: Boolean read _Getskipped write _Setskipped;
  21000. end;
  21001. TJSContentVisibilityAutoStateChangeEventInit = class(TJSEventInit,IJSContentVisibilityAutoStateChangeEventInit)
  21002. Protected
  21003. function _Getskipped: Boolean;
  21004. procedure _Setskipped(const aValue: Boolean);
  21005. Public
  21006. class function JSClassName: UnicodeString; override;
  21007. class function Cast(const Intf: IJSObject): IJSContentVisibilityAutoStateChangeEventInit;
  21008. property skipped: Boolean read _Getskipped write _Setskipped;
  21009. end;
  21010. { --------------------------------------------------------------------
  21011. TJSConvolverOptions
  21012. --------------------------------------------------------------------}
  21013. TJSConvolverOptionsRec = record
  21014. buffer: TJSAudioBuffer;
  21015. disableNormalization: Boolean;
  21016. channelCount: Cardinal;
  21017. channelCountMode: TChannelCountMode;
  21018. channelInterpretation: TChannelInterpretation;
  21019. end;
  21020. IJSConvolverOptions = interface(IJSAudioNodeOptions)
  21021. ['{8705A458-DADD-38F7-BDD3-98A91919FBF2}']
  21022. function _Getbuffer: IJSAudioBuffer;
  21023. function _GetdisableNormalization: Boolean;
  21024. procedure _Setbuffer(const aValue: IJSAudioBuffer);
  21025. procedure _SetdisableNormalization(const aValue: Boolean);
  21026. property buffer: IJSAudioBuffer read _Getbuffer write _Setbuffer;
  21027. property disableNormalization: Boolean read _GetdisableNormalization write _SetdisableNormalization;
  21028. end;
  21029. TJSConvolverOptions = class(TJSAudioNodeOptions,IJSConvolverOptions)
  21030. Protected
  21031. function _Getbuffer: IJSAudioBuffer;
  21032. function _GetdisableNormalization: Boolean;
  21033. procedure _Setbuffer(const aValue: IJSAudioBuffer);
  21034. procedure _SetdisableNormalization(const aValue: Boolean);
  21035. Public
  21036. class function JSClassName: UnicodeString; override;
  21037. class function Cast(const Intf: IJSObject): IJSConvolverOptions;
  21038. property buffer: IJSAudioBuffer read _Getbuffer write _Setbuffer;
  21039. property disableNormalization: Boolean read _GetdisableNormalization write _SetdisableNormalization;
  21040. end;
  21041. { --------------------------------------------------------------------
  21042. TJSCustomEventInit
  21043. --------------------------------------------------------------------}
  21044. TJSCustomEventInitRec = record
  21045. detail: Variant;
  21046. bubbles: Boolean;
  21047. cancelable: Boolean;
  21048. composed: Boolean;
  21049. end;
  21050. IJSCustomEventInit = interface(IJSEventInit)
  21051. ['{6C6B83A3-54CA-35CE-A218-8FE99D96EC5D}']
  21052. function _Getdetail: Variant;
  21053. procedure _Setdetail(const aValue: Variant);
  21054. property detail: Variant read _Getdetail write _Setdetail;
  21055. end;
  21056. TJSCustomEventInit = class(TJSEventInit,IJSCustomEventInit)
  21057. Protected
  21058. function _Getdetail: Variant;
  21059. procedure _Setdetail(const aValue: Variant);
  21060. Public
  21061. class function JSClassName: UnicodeString; override;
  21062. class function Cast(const Intf: IJSObject): IJSCustomEventInit;
  21063. property detail: Variant read _Getdetail write _Setdetail;
  21064. end;
  21065. { --------------------------------------------------------------------
  21066. TJSDelayOptions
  21067. --------------------------------------------------------------------}
  21068. TJSDelayOptionsRec = record
  21069. maxDelayTime: Double;
  21070. delayTime: Double;
  21071. channelCount: Cardinal;
  21072. channelCountMode: TChannelCountMode;
  21073. channelInterpretation: TChannelInterpretation;
  21074. end;
  21075. IJSDelayOptions = interface(IJSAudioNodeOptions)
  21076. ['{6C619840-6763-38D3-AEDE-9951662B11F0}']
  21077. function _GetmaxDelayTime: Double;
  21078. function _GetdelayTime: Double;
  21079. procedure _SetmaxDelayTime(const aValue: Double);
  21080. procedure _SetdelayTime(const aValue: Double);
  21081. property maxDelayTime: Double read _GetmaxDelayTime write _SetmaxDelayTime;
  21082. property delayTime: Double read _GetdelayTime write _SetdelayTime;
  21083. end;
  21084. TJSDelayOptions = class(TJSAudioNodeOptions,IJSDelayOptions)
  21085. Protected
  21086. function _GetmaxDelayTime: Double;
  21087. function _GetdelayTime: Double;
  21088. procedure _SetmaxDelayTime(const aValue: Double);
  21089. procedure _SetdelayTime(const aValue: Double);
  21090. Public
  21091. class function JSClassName: UnicodeString; override;
  21092. class function Cast(const Intf: IJSObject): IJSDelayOptions;
  21093. property maxDelayTime: Double read _GetmaxDelayTime write _SetmaxDelayTime;
  21094. property delayTime: Double read _GetdelayTime write _SetdelayTime;
  21095. end;
  21096. { --------------------------------------------------------------------
  21097. TJSDeviceLightEventInit
  21098. --------------------------------------------------------------------}
  21099. TJSDeviceLightEventInitRec = record
  21100. value: Double;
  21101. bubbles: Boolean;
  21102. cancelable: Boolean;
  21103. composed: Boolean;
  21104. end;
  21105. IJSDeviceLightEventInit = interface(IJSEventInit)
  21106. ['{C382190B-A3C8-3D57-BDDF-66D10C46F34F}']
  21107. function _Getvalue: Double;
  21108. procedure _Setvalue(const aValue: Double);
  21109. property value: Double read _Getvalue write _Setvalue;
  21110. end;
  21111. TJSDeviceLightEventInit = class(TJSEventInit,IJSDeviceLightEventInit)
  21112. Protected
  21113. function _Getvalue: Double;
  21114. procedure _Setvalue(const aValue: Double);
  21115. Public
  21116. class function JSClassName: UnicodeString; override;
  21117. class function Cast(const Intf: IJSObject): IJSDeviceLightEventInit;
  21118. property value: Double read _Getvalue write _Setvalue;
  21119. end;
  21120. { --------------------------------------------------------------------
  21121. TJSDeviceMotionEventInit
  21122. --------------------------------------------------------------------}
  21123. TJSDeviceMotionEventInitRec = record
  21124. acceleration: TJSDeviceAccelerationInit;
  21125. accelerationIncludingGravity: TJSDeviceAccelerationInit;
  21126. rotationRate: TJSDeviceRotationRateInit;
  21127. interval: Double;
  21128. bubbles: Boolean;
  21129. cancelable: Boolean;
  21130. composed: Boolean;
  21131. end;
  21132. IJSDeviceMotionEventInit = interface(IJSEventInit)
  21133. ['{F4C15B75-0548-32DE-ADD3-B90861BEA806}']
  21134. function _Getacceleration: TJSDeviceAccelerationInit;
  21135. function _GetaccelerationIncludingGravity: TJSDeviceAccelerationInit;
  21136. function _GetrotationRate: TJSDeviceRotationRateInit;
  21137. function _Getinterval: Double;
  21138. procedure _Setacceleration(const aValue: TJSDeviceAccelerationInit);
  21139. procedure _SetaccelerationIncludingGravity(const aValue: TJSDeviceAccelerationInit);
  21140. procedure _SetrotationRate(const aValue: TJSDeviceRotationRateInit);
  21141. procedure _Setinterval(const aValue: Double);
  21142. property acceleration: TJSDeviceAccelerationInit read _Getacceleration write _Setacceleration;
  21143. property accelerationIncludingGravity: TJSDeviceAccelerationInit read _GetaccelerationIncludingGravity write _SetaccelerationIncludingGravity;
  21144. property rotationRate: TJSDeviceRotationRateInit read _GetrotationRate write _SetrotationRate;
  21145. property interval: Double read _Getinterval write _Setinterval;
  21146. end;
  21147. TJSDeviceMotionEventInit = class(TJSEventInit,IJSDeviceMotionEventInit)
  21148. Protected
  21149. function _Getacceleration: TJSDeviceAccelerationInit;
  21150. function _GetaccelerationIncludingGravity: TJSDeviceAccelerationInit;
  21151. function _GetrotationRate: TJSDeviceRotationRateInit;
  21152. function _Getinterval: Double;
  21153. procedure _Setacceleration(const aValue: TJSDeviceAccelerationInit);
  21154. procedure _SetaccelerationIncludingGravity(const aValue: TJSDeviceAccelerationInit);
  21155. procedure _SetrotationRate(const aValue: TJSDeviceRotationRateInit);
  21156. procedure _Setinterval(const aValue: Double);
  21157. Public
  21158. class function JSClassName: UnicodeString; override;
  21159. class function Cast(const Intf: IJSObject): IJSDeviceMotionEventInit;
  21160. property acceleration: TJSDeviceAccelerationInit read _Getacceleration write _Setacceleration;
  21161. property accelerationIncludingGravity: TJSDeviceAccelerationInit read _GetaccelerationIncludingGravity write _SetaccelerationIncludingGravity;
  21162. property rotationRate: TJSDeviceRotationRateInit read _GetrotationRate write _SetrotationRate;
  21163. property interval: Double read _Getinterval write _Setinterval;
  21164. end;
  21165. { --------------------------------------------------------------------
  21166. TJSDeviceOrientationEventInit
  21167. --------------------------------------------------------------------}
  21168. TJSDeviceOrientationEventInitRec = record
  21169. alpha: Double;
  21170. beta: Double;
  21171. gamma: Double;
  21172. absolute_: Boolean;
  21173. bubbles: Boolean;
  21174. cancelable: Boolean;
  21175. composed: Boolean;
  21176. end;
  21177. IJSDeviceOrientationEventInit = interface(IJSEventInit)
  21178. ['{39D7C6DE-F110-327A-BCDC-4899F1B2C971}']
  21179. function _Getalpha: Double;
  21180. function _Getbeta: Double;
  21181. function _Getgamma: Double;
  21182. function _Getabsolute_: Boolean;
  21183. procedure _Setalpha(const aValue: Double);
  21184. procedure _Setbeta(const aValue: Double);
  21185. procedure _Setgamma(const aValue: Double);
  21186. procedure _Setabsolute_(const aValue: Boolean);
  21187. property alpha: Double read _Getalpha write _Setalpha;
  21188. property beta: Double read _Getbeta write _Setbeta;
  21189. property gamma: Double read _Getgamma write _Setgamma;
  21190. property absolute_: Boolean read _Getabsolute_ write _Setabsolute_;
  21191. end;
  21192. TJSDeviceOrientationEventInit = class(TJSEventInit,IJSDeviceOrientationEventInit)
  21193. Protected
  21194. function _Getalpha: Double;
  21195. function _Getbeta: Double;
  21196. function _Getgamma: Double;
  21197. function _Getabsolute_: Boolean;
  21198. procedure _Setalpha(const aValue: Double);
  21199. procedure _Setbeta(const aValue: Double);
  21200. procedure _Setgamma(const aValue: Double);
  21201. procedure _Setabsolute_(const aValue: Boolean);
  21202. Public
  21203. class function JSClassName: UnicodeString; override;
  21204. class function Cast(const Intf: IJSObject): IJSDeviceOrientationEventInit;
  21205. property alpha: Double read _Getalpha write _Setalpha;
  21206. property beta: Double read _Getbeta write _Setbeta;
  21207. property gamma: Double read _Getgamma write _Setgamma;
  21208. property absolute_: Boolean read _Getabsolute_ write _Setabsolute_;
  21209. end;
  21210. { --------------------------------------------------------------------
  21211. TJSDOMMatrixInit
  21212. --------------------------------------------------------------------}
  21213. TJSDOMMatrixInitRec = record
  21214. m13: Double;
  21215. m14: Double;
  21216. m23: Double;
  21217. m24: Double;
  21218. m31: Double;
  21219. m32: Double;
  21220. m33: Double;
  21221. m34: Double;
  21222. m43: Double;
  21223. m44: Double;
  21224. is2D: Boolean;
  21225. a: Double;
  21226. b: Double;
  21227. c: Double;
  21228. d: Double;
  21229. e: Double;
  21230. f: Double;
  21231. m11: Double;
  21232. m12: Double;
  21233. m21: Double;
  21234. m22: Double;
  21235. m41: Double;
  21236. m42: Double;
  21237. end;
  21238. IJSDOMMatrixInit = interface(IJSDOMMatrix2DInit)
  21239. ['{FD912603-3C59-3C9C-AA68-D52267291B0B}']
  21240. function _Getm13: Double;
  21241. function _Getm14: Double;
  21242. function _Getm23: Double;
  21243. function _Getm24: Double;
  21244. function _Getm31: Double;
  21245. function _Getm32: Double;
  21246. function _Getm33: Double;
  21247. function _Getm34: Double;
  21248. function _Getm43: Double;
  21249. function _Getm44: Double;
  21250. function _Getis2D: Boolean;
  21251. procedure _Setm13(const aValue: Double);
  21252. procedure _Setm14(const aValue: Double);
  21253. procedure _Setm23(const aValue: Double);
  21254. procedure _Setm24(const aValue: Double);
  21255. procedure _Setm31(const aValue: Double);
  21256. procedure _Setm32(const aValue: Double);
  21257. procedure _Setm33(const aValue: Double);
  21258. procedure _Setm34(const aValue: Double);
  21259. procedure _Setm43(const aValue: Double);
  21260. procedure _Setm44(const aValue: Double);
  21261. procedure _Setis2D(const aValue: Boolean);
  21262. property m13: Double read _Getm13 write _Setm13;
  21263. property m14: Double read _Getm14 write _Setm14;
  21264. property m23: Double read _Getm23 write _Setm23;
  21265. property m24: Double read _Getm24 write _Setm24;
  21266. property m31: Double read _Getm31 write _Setm31;
  21267. property m32: Double read _Getm32 write _Setm32;
  21268. property m33: Double read _Getm33 write _Setm33;
  21269. property m34: Double read _Getm34 write _Setm34;
  21270. property m43: Double read _Getm43 write _Setm43;
  21271. property m44: Double read _Getm44 write _Setm44;
  21272. property is2D: Boolean read _Getis2D write _Setis2D;
  21273. end;
  21274. TJSDOMMatrixInit = class(TJSDOMMatrix2DInit,IJSDOMMatrixInit)
  21275. Protected
  21276. function _Getm13: Double;
  21277. function _Getm14: Double;
  21278. function _Getm23: Double;
  21279. function _Getm24: Double;
  21280. function _Getm31: Double;
  21281. function _Getm32: Double;
  21282. function _Getm33: Double;
  21283. function _Getm34: Double;
  21284. function _Getm43: Double;
  21285. function _Getm44: Double;
  21286. function _Getis2D: Boolean;
  21287. procedure _Setm13(const aValue: Double);
  21288. procedure _Setm14(const aValue: Double);
  21289. procedure _Setm23(const aValue: Double);
  21290. procedure _Setm24(const aValue: Double);
  21291. procedure _Setm31(const aValue: Double);
  21292. procedure _Setm32(const aValue: Double);
  21293. procedure _Setm33(const aValue: Double);
  21294. procedure _Setm34(const aValue: Double);
  21295. procedure _Setm43(const aValue: Double);
  21296. procedure _Setm44(const aValue: Double);
  21297. procedure _Setis2D(const aValue: Boolean);
  21298. Public
  21299. class function JSClassName: UnicodeString; override;
  21300. class function Cast(const Intf: IJSObject): IJSDOMMatrixInit;
  21301. property m13: Double read _Getm13 write _Setm13;
  21302. property m14: Double read _Getm14 write _Setm14;
  21303. property m23: Double read _Getm23 write _Setm23;
  21304. property m24: Double read _Getm24 write _Setm24;
  21305. property m31: Double read _Getm31 write _Setm31;
  21306. property m32: Double read _Getm32 write _Setm32;
  21307. property m33: Double read _Getm33 write _Setm33;
  21308. property m34: Double read _Getm34 write _Setm34;
  21309. property m43: Double read _Getm43 write _Setm43;
  21310. property m44: Double read _Getm44 write _Setm44;
  21311. property is2D: Boolean read _Getis2D write _Setis2D;
  21312. end;
  21313. { --------------------------------------------------------------------
  21314. TJSDynamicsCompressorOptions
  21315. --------------------------------------------------------------------}
  21316. TJSDynamicsCompressorOptionsRec = record
  21317. attack: Single;
  21318. knee: Single;
  21319. ratio: Single;
  21320. release: Single;
  21321. threshold: Single;
  21322. channelCount: Cardinal;
  21323. channelCountMode: TChannelCountMode;
  21324. channelInterpretation: TChannelInterpretation;
  21325. end;
  21326. IJSDynamicsCompressorOptions = interface(IJSAudioNodeOptions)
  21327. ['{CCC36461-AF88-3855-9BDF-DCA8D0759E19}']
  21328. function _Getattack: Single;
  21329. function _Getknee: Single;
  21330. function _Getratio: Single;
  21331. function _Getrelease: Single;
  21332. function _Getthreshold: Single;
  21333. procedure _Setattack(const aValue: Single);
  21334. procedure _Setknee(const aValue: Single);
  21335. procedure _Setratio(const aValue: Single);
  21336. procedure _Setrelease(const aValue: Single);
  21337. procedure _Setthreshold(const aValue: Single);
  21338. property attack: Single read _Getattack write _Setattack;
  21339. property knee: Single read _Getknee write _Setknee;
  21340. property ratio: Single read _Getratio write _Setratio;
  21341. property release: Single read _Getrelease write _Setrelease;
  21342. property threshold: Single read _Getthreshold write _Setthreshold;
  21343. end;
  21344. TJSDynamicsCompressorOptions = class(TJSAudioNodeOptions,IJSDynamicsCompressorOptions)
  21345. Protected
  21346. function _Getattack: Single;
  21347. function _Getknee: Single;
  21348. function _Getratio: Single;
  21349. function _Getrelease: Single;
  21350. function _Getthreshold: Single;
  21351. procedure _Setattack(const aValue: Single);
  21352. procedure _Setknee(const aValue: Single);
  21353. procedure _Setratio(const aValue: Single);
  21354. procedure _Setrelease(const aValue: Single);
  21355. procedure _Setthreshold(const aValue: Single);
  21356. Public
  21357. class function JSClassName: UnicodeString; override;
  21358. class function Cast(const Intf: IJSObject): IJSDynamicsCompressorOptions;
  21359. property attack: Single read _Getattack write _Setattack;
  21360. property knee: Single read _Getknee write _Setknee;
  21361. property ratio: Single read _Getratio write _Setratio;
  21362. property release: Single read _Getrelease write _Setrelease;
  21363. property threshold: Single read _Getthreshold write _Setthreshold;
  21364. end;
  21365. { --------------------------------------------------------------------
  21366. TJSScrollIntoViewOptions
  21367. --------------------------------------------------------------------}
  21368. TJSScrollIntoViewOptionsRec = record
  21369. block: TScrollLogicalPosition;
  21370. inline_: TScrollLogicalPosition;
  21371. behavior: TScrollBehavior;
  21372. end;
  21373. IJSScrollIntoViewOptions = interface(IJSScrollOptions)
  21374. ['{FA1BE992-78E4-3433-B258-C6CD2E99ED34}']
  21375. function _Getblock: TScrollLogicalPosition;
  21376. function _Getinline_: TScrollLogicalPosition;
  21377. procedure _Setblock(const aValue: TScrollLogicalPosition);
  21378. procedure _Setinline_(const aValue: TScrollLogicalPosition);
  21379. property block: TScrollLogicalPosition read _Getblock write _Setblock;
  21380. property inline_: TScrollLogicalPosition read _Getinline_ write _Setinline_;
  21381. end;
  21382. TJSScrollIntoViewOptions = class(TJSScrollOptions,IJSScrollIntoViewOptions)
  21383. Protected
  21384. function _Getblock: TScrollLogicalPosition;
  21385. function _Getinline_: TScrollLogicalPosition;
  21386. procedure _Setblock(const aValue: TScrollLogicalPosition);
  21387. procedure _Setinline_(const aValue: TScrollLogicalPosition);
  21388. Public
  21389. class function JSClassName: UnicodeString; override;
  21390. class function Cast(const Intf: IJSObject): IJSScrollIntoViewOptions;
  21391. property block: TScrollLogicalPosition read _Getblock write _Setblock;
  21392. property inline_: TScrollLogicalPosition read _Getinline_ write _Setinline_;
  21393. end;
  21394. { --------------------------------------------------------------------
  21395. TJSErrorEventInit
  21396. --------------------------------------------------------------------}
  21397. TJSErrorEventInitRec = record
  21398. message: UnicodeString;
  21399. filename: UnicodeString;
  21400. lineno: Cardinal;
  21401. colno: Cardinal;
  21402. error: Variant;
  21403. bubbles: Boolean;
  21404. cancelable: Boolean;
  21405. composed: Boolean;
  21406. end;
  21407. IJSErrorEventInit = interface(IJSEventInit)
  21408. ['{3CA804B9-546A-3C80-B26D-C4F4FD0D8230}']
  21409. function _Getmessage: UnicodeString;
  21410. function _Getfilename: UnicodeString;
  21411. function _Getlineno: Cardinal;
  21412. function _Getcolno: Cardinal;
  21413. function _Geterror: Variant;
  21414. procedure _Setmessage(const aValue: UnicodeString);
  21415. procedure _Setfilename(const aValue: UnicodeString);
  21416. procedure _Setlineno(const aValue: Cardinal);
  21417. procedure _Setcolno(const aValue: Cardinal);
  21418. procedure _Seterror(const aValue: Variant);
  21419. property message: UnicodeString read _Getmessage write _Setmessage;
  21420. property filename: UnicodeString read _Getfilename write _Setfilename;
  21421. property lineno: Cardinal read _Getlineno write _Setlineno;
  21422. property colno: Cardinal read _Getcolno write _Setcolno;
  21423. property error: Variant read _Geterror write _Seterror;
  21424. end;
  21425. TJSErrorEventInit = class(TJSEventInit,IJSErrorEventInit)
  21426. Protected
  21427. function _Getmessage: UnicodeString;
  21428. function _Getfilename: UnicodeString;
  21429. function _Getlineno: Cardinal;
  21430. function _Getcolno: Cardinal;
  21431. function _Geterror: Variant;
  21432. procedure _Setmessage(const aValue: UnicodeString);
  21433. procedure _Setfilename(const aValue: UnicodeString);
  21434. procedure _Setlineno(const aValue: Cardinal);
  21435. procedure _Setcolno(const aValue: Cardinal);
  21436. procedure _Seterror(const aValue: Variant);
  21437. Public
  21438. class function JSClassName: UnicodeString; override;
  21439. class function Cast(const Intf: IJSObject): IJSErrorEventInit;
  21440. property message: UnicodeString read _Getmessage write _Setmessage;
  21441. property filename: UnicodeString read _Getfilename write _Setfilename;
  21442. property lineno: Cardinal read _Getlineno write _Setlineno;
  21443. property colno: Cardinal read _Getcolno write _Setcolno;
  21444. property error: Variant read _Geterror write _Seterror;
  21445. end;
  21446. { --------------------------------------------------------------------
  21447. TJSAddEventListenerOptions
  21448. --------------------------------------------------------------------}
  21449. TJSAddEventListenerOptionsRec = record
  21450. passive: Boolean;
  21451. once: Boolean;
  21452. signal: TJSAbortSignal;
  21453. capture: Boolean;
  21454. mozSystemGroup: Boolean;
  21455. end;
  21456. IJSAddEventListenerOptions = interface(IJSEventListenerOptions)
  21457. ['{2376D6B1-09A4-3D0E-8366-20CC115E8DCE}']
  21458. function _Getpassive: Boolean;
  21459. function _Getonce: Boolean;
  21460. function _Getsignal: IJSAbortSignal;
  21461. procedure _Setpassive(const aValue: Boolean);
  21462. procedure _Setonce(const aValue: Boolean);
  21463. procedure _Setsignal(const aValue: IJSAbortSignal);
  21464. property passive: Boolean read _Getpassive write _Setpassive;
  21465. property once: Boolean read _Getonce write _Setonce;
  21466. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  21467. end;
  21468. TJSAddEventListenerOptions = class(TJSEventListenerOptions,IJSAddEventListenerOptions)
  21469. Protected
  21470. function _Getpassive: Boolean;
  21471. function _Getonce: Boolean;
  21472. function _Getsignal: IJSAbortSignal;
  21473. procedure _Setpassive(const aValue: Boolean);
  21474. procedure _Setonce(const aValue: Boolean);
  21475. procedure _Setsignal(const aValue: IJSAbortSignal);
  21476. Public
  21477. class function JSClassName: UnicodeString; override;
  21478. class function Cast(const Intf: IJSObject): IJSAddEventListenerOptions;
  21479. property passive: Boolean read _Getpassive write _Setpassive;
  21480. property once: Boolean read _Getonce write _Setonce;
  21481. property signal: IJSAbortSignal read _Getsignal write _Setsignal;
  21482. end;
  21483. { --------------------------------------------------------------------
  21484. TJSExtendableEventInit
  21485. --------------------------------------------------------------------}
  21486. TJSExtendableEventInitRec = record
  21487. bubbles: Boolean;
  21488. cancelable: Boolean;
  21489. composed: Boolean;
  21490. end;
  21491. IJSExtendableEventInit = interface(IJSEventInit)
  21492. ['{7D9DE1FD-3FCC-3F47-B869-FA5FC6FD9D1A}']
  21493. end;
  21494. TJSExtendableEventInit = class(TJSEventInit,IJSExtendableEventInit)
  21495. Protected
  21496. Public
  21497. class function JSClassName: UnicodeString; override;
  21498. class function Cast(const Intf: IJSObject): IJSExtendableEventInit;
  21499. end;
  21500. { --------------------------------------------------------------------
  21501. TJSFetchEventInit
  21502. --------------------------------------------------------------------}
  21503. TJSFetchEventInitRec = record
  21504. request: TJSRequest;
  21505. clientId: UnicodeString;
  21506. resultingClientId: UnicodeString;
  21507. bubbles: Boolean;
  21508. cancelable: Boolean;
  21509. composed: Boolean;
  21510. end;
  21511. IJSFetchEventInit = interface(IJSEventInit)
  21512. ['{94CB606B-82E1-3698-B4AE-7197F0A93930}']
  21513. function _Getrequest: IJSRequest;
  21514. function _GetclientId: UnicodeString;
  21515. function _GetresultingClientId: UnicodeString;
  21516. procedure _Setrequest(const aValue: IJSRequest);
  21517. procedure _SetclientId(const aValue: UnicodeString);
  21518. procedure _SetresultingClientId(const aValue: UnicodeString);
  21519. property request: IJSRequest read _Getrequest write _Setrequest;
  21520. property clientId: UnicodeString read _GetclientId write _SetclientId;
  21521. property resultingClientId: UnicodeString read _GetresultingClientId write _SetresultingClientId;
  21522. end;
  21523. TJSFetchEventInit = class(TJSEventInit,IJSFetchEventInit)
  21524. Protected
  21525. function _Getrequest: IJSRequest;
  21526. function _GetclientId: UnicodeString;
  21527. function _GetresultingClientId: UnicodeString;
  21528. procedure _Setrequest(const aValue: IJSRequest);
  21529. procedure _SetclientId(const aValue: UnicodeString);
  21530. procedure _SetresultingClientId(const aValue: UnicodeString);
  21531. Public
  21532. class function JSClassName: UnicodeString; override;
  21533. class function Cast(const Intf: IJSObject): IJSFetchEventInit;
  21534. property request: IJSRequest read _Getrequest write _Setrequest;
  21535. property clientId: UnicodeString read _GetclientId write _SetclientId;
  21536. property resultingClientId: UnicodeString read _GetresultingClientId write _SetresultingClientId;
  21537. end;
  21538. { --------------------------------------------------------------------
  21539. TJSFilePropertyBag
  21540. --------------------------------------------------------------------}
  21541. TJSFilePropertyBagRec = record
  21542. lastModified: Int64;
  21543. type_: UnicodeString;
  21544. endings: TEndingType;
  21545. end;
  21546. IJSFilePropertyBag = interface(IJSBlobPropertyBag)
  21547. ['{A2FF8109-E4B9-3F9F-91F6-F25DCC5276DF}']
  21548. function _GetlastModified: Int64;
  21549. procedure _SetlastModified(const aValue: Int64);
  21550. property lastModified: Int64 read _GetlastModified write _SetlastModified;
  21551. end;
  21552. TJSFilePropertyBag = class(TJSBlobPropertyBag,IJSFilePropertyBag)
  21553. Protected
  21554. function _GetlastModified: Int64;
  21555. procedure _SetlastModified(const aValue: Int64);
  21556. Public
  21557. class function JSClassName: UnicodeString; override;
  21558. class function Cast(const Intf: IJSObject): IJSFilePropertyBag;
  21559. property lastModified: Int64 read _GetlastModified write _SetlastModified;
  21560. end;
  21561. { --------------------------------------------------------------------
  21562. TJSFontFaceSetLoadEventInit
  21563. --------------------------------------------------------------------}
  21564. TJSFontFaceDynArray = IJSArray; // array of FontFace
  21565. TJSFontFaceSetLoadEventInitRec = record
  21566. fontfaces: TJSFontFaceDynArray;
  21567. bubbles: Boolean;
  21568. cancelable: Boolean;
  21569. composed: Boolean;
  21570. end;
  21571. IJSFontFaceSetLoadEventInit = interface(IJSEventInit)
  21572. ['{D87F8A67-EDDA-388D-A149-4B1C347A2DE3}']
  21573. function _Getfontfaces: TJSFontFaceDynArray;
  21574. procedure _Setfontfaces(const aValue: TJSFontFaceDynArray);
  21575. property fontfaces: TJSFontFaceDynArray read _Getfontfaces write _Setfontfaces;
  21576. end;
  21577. TJSFontFaceSetLoadEventInit = class(TJSEventInit,IJSFontFaceSetLoadEventInit)
  21578. Protected
  21579. function _Getfontfaces: TJSFontFaceDynArray;
  21580. procedure _Setfontfaces(const aValue: TJSFontFaceDynArray);
  21581. Public
  21582. class function JSClassName: UnicodeString; override;
  21583. class function Cast(const Intf: IJSObject): IJSFontFaceSetLoadEventInit;
  21584. property fontfaces: TJSFontFaceDynArray read _Getfontfaces write _Setfontfaces;
  21585. end;
  21586. { --------------------------------------------------------------------
  21587. TJSFormDataEventInit
  21588. --------------------------------------------------------------------}
  21589. TJSFormDataEventInitRec = record
  21590. formData: TJSFormData;
  21591. bubbles: Boolean;
  21592. cancelable: Boolean;
  21593. composed: Boolean;
  21594. end;
  21595. IJSFormDataEventInit = interface(IJSEventInit)
  21596. ['{1D0F081A-36FE-39F0-AFE6-8523FAA4B537}']
  21597. function _GetformData: IJSFormData;
  21598. procedure _SetformData(const aValue: IJSFormData);
  21599. property formData: IJSFormData read _GetformData write _SetformData;
  21600. end;
  21601. TJSFormDataEventInit = class(TJSEventInit,IJSFormDataEventInit)
  21602. Protected
  21603. function _GetformData: IJSFormData;
  21604. procedure _SetformData(const aValue: IJSFormData);
  21605. Public
  21606. class function JSClassName: UnicodeString; override;
  21607. class function Cast(const Intf: IJSObject): IJSFormDataEventInit;
  21608. property formData: IJSFormData read _GetformData write _SetformData;
  21609. end;
  21610. { --------------------------------------------------------------------
  21611. TJSFrameCrashedEventInit
  21612. --------------------------------------------------------------------}
  21613. TJSFrameCrashedEventInitRec = record
  21614. browsingContextId: QWord;
  21615. isTopFrame: Boolean;
  21616. childID: QWord;
  21617. bubbles: Boolean;
  21618. cancelable: Boolean;
  21619. composed: Boolean;
  21620. end;
  21621. IJSFrameCrashedEventInit = interface(IJSEventInit)
  21622. ['{8E5A89F9-0864-3CC5-B9F7-DCF95ED10B5C}']
  21623. function _GetbrowsingContextId: QWord;
  21624. function _GetisTopFrame: Boolean;
  21625. function _GetchildID: QWord;
  21626. procedure _SetbrowsingContextId(const aValue: QWord);
  21627. procedure _SetisTopFrame(const aValue: Boolean);
  21628. procedure _SetchildID(const aValue: QWord);
  21629. property browsingContextId: QWord read _GetbrowsingContextId write _SetbrowsingContextId;
  21630. property isTopFrame: Boolean read _GetisTopFrame write _SetisTopFrame;
  21631. property childID: QWord read _GetchildID write _SetchildID;
  21632. end;
  21633. TJSFrameCrashedEventInit = class(TJSEventInit,IJSFrameCrashedEventInit)
  21634. Protected
  21635. function _GetbrowsingContextId: QWord;
  21636. function _GetisTopFrame: Boolean;
  21637. function _GetchildID: QWord;
  21638. procedure _SetbrowsingContextId(const aValue: QWord);
  21639. procedure _SetisTopFrame(const aValue: Boolean);
  21640. procedure _SetchildID(const aValue: QWord);
  21641. Public
  21642. class function JSClassName: UnicodeString; override;
  21643. class function Cast(const Intf: IJSObject): IJSFrameCrashedEventInit;
  21644. property browsingContextId: QWord read _GetbrowsingContextId write _SetbrowsingContextId;
  21645. property isTopFrame: Boolean read _GetisTopFrame write _SetisTopFrame;
  21646. property childID: QWord read _GetchildID write _SetchildID;
  21647. end;
  21648. { --------------------------------------------------------------------
  21649. TJSGainOptions
  21650. --------------------------------------------------------------------}
  21651. TJSGainOptionsRec = record
  21652. gain: Single;
  21653. channelCount: Cardinal;
  21654. channelCountMode: TChannelCountMode;
  21655. channelInterpretation: TChannelInterpretation;
  21656. end;
  21657. IJSGainOptions = interface(IJSAudioNodeOptions)
  21658. ['{B5DFF4C6-49C0-3F44-BFDA-F34A43A09ABA}']
  21659. function _Getgain: Single;
  21660. procedure _Setgain(const aValue: Single);
  21661. property gain: Single read _Getgain write _Setgain;
  21662. end;
  21663. TJSGainOptions = class(TJSAudioNodeOptions,IJSGainOptions)
  21664. Protected
  21665. function _Getgain: Single;
  21666. procedure _Setgain(const aValue: Single);
  21667. Public
  21668. class function JSClassName: UnicodeString; override;
  21669. class function Cast(const Intf: IJSObject): IJSGainOptions;
  21670. property gain: Single read _Getgain write _Setgain;
  21671. end;
  21672. { --------------------------------------------------------------------
  21673. TJSGamepadEventInit
  21674. --------------------------------------------------------------------}
  21675. TJSGamepadEventInitRec = record
  21676. gamepad: TJSGamepad;
  21677. bubbles: Boolean;
  21678. cancelable: Boolean;
  21679. composed: Boolean;
  21680. end;
  21681. IJSGamepadEventInit = interface(IJSEventInit)
  21682. ['{B5CBB808-6A4B-3C34-BA2D-E37E53F4B1CA}']
  21683. function _Getgamepad: IJSGamepad;
  21684. procedure _Setgamepad(const aValue: IJSGamepad);
  21685. property gamepad: IJSGamepad read _Getgamepad write _Setgamepad;
  21686. end;
  21687. TJSGamepadEventInit = class(TJSEventInit,IJSGamepadEventInit)
  21688. Protected
  21689. function _Getgamepad: IJSGamepad;
  21690. procedure _Setgamepad(const aValue: IJSGamepad);
  21691. Public
  21692. class function JSClassName: UnicodeString; override;
  21693. class function Cast(const Intf: IJSObject): IJSGamepadEventInit;
  21694. property gamepad: IJSGamepad read _Getgamepad write _Setgamepad;
  21695. end;
  21696. { --------------------------------------------------------------------
  21697. TJSGPUUncapturedErrorEventInit
  21698. --------------------------------------------------------------------}
  21699. TJSGPUUncapturedErrorEventInitRec = record
  21700. error: TJSGPUError;
  21701. bubbles: Boolean;
  21702. cancelable: Boolean;
  21703. composed: Boolean;
  21704. end;
  21705. IJSGPUUncapturedErrorEventInit = interface(IJSEventInit)
  21706. ['{BAF29506-F9AC-340F-B535-D81F7D3869FA}']
  21707. function _Geterror: IJSGPUError;
  21708. procedure _Seterror(const aValue: IJSGPUError);
  21709. property error: IJSGPUError read _Geterror write _Seterror;
  21710. end;
  21711. TJSGPUUncapturedErrorEventInit = class(TJSEventInit,IJSGPUUncapturedErrorEventInit)
  21712. Protected
  21713. function _Geterror: IJSGPUError;
  21714. procedure _Seterror(const aValue: IJSGPUError);
  21715. Public
  21716. class function JSClassName: UnicodeString; override;
  21717. class function Cast(const Intf: IJSObject): IJSGPUUncapturedErrorEventInit;
  21718. property error: IJSGPUError read _Geterror write _Seterror;
  21719. end;
  21720. { --------------------------------------------------------------------
  21721. TJSHashChangeEventInit
  21722. --------------------------------------------------------------------}
  21723. TJSHashChangeEventInitRec = record
  21724. oldURL: UnicodeString;
  21725. newURL: UnicodeString;
  21726. bubbles: Boolean;
  21727. cancelable: Boolean;
  21728. composed: Boolean;
  21729. end;
  21730. IJSHashChangeEventInit = interface(IJSEventInit)
  21731. ['{097B91F6-1357-3977-B869-FA5FC6FDA8FC}']
  21732. function _GetoldURL: UnicodeString;
  21733. function _GetnewURL: UnicodeString;
  21734. procedure _SetoldURL(const aValue: UnicodeString);
  21735. procedure _SetnewURL(const aValue: UnicodeString);
  21736. property oldURL: UnicodeString read _GetoldURL write _SetoldURL;
  21737. property newURL: UnicodeString read _GetnewURL write _SetnewURL;
  21738. end;
  21739. TJSHashChangeEventInit = class(TJSEventInit,IJSHashChangeEventInit)
  21740. Protected
  21741. function _GetoldURL: UnicodeString;
  21742. function _GetnewURL: UnicodeString;
  21743. procedure _SetoldURL(const aValue: UnicodeString);
  21744. procedure _SetnewURL(const aValue: UnicodeString);
  21745. Public
  21746. class function JSClassName: UnicodeString; override;
  21747. class function Cast(const Intf: IJSObject): IJSHashChangeEventInit;
  21748. property oldURL: UnicodeString read _GetoldURL write _SetoldURL;
  21749. property newURL: UnicodeString read _GetnewURL write _SetnewURL;
  21750. end;
  21751. { --------------------------------------------------------------------
  21752. TJSIDBVersionChangeEventInit
  21753. --------------------------------------------------------------------}
  21754. TJSIDBVersionChangeEventInitRec = record
  21755. oldVersion: QWord;
  21756. newVersion: QWord;
  21757. bubbles: Boolean;
  21758. cancelable: Boolean;
  21759. composed: Boolean;
  21760. end;
  21761. IJSIDBVersionChangeEventInit = interface(IJSEventInit)
  21762. ['{7D245604-E510-3280-B292-887C155C7FAD}']
  21763. function _GetoldVersion: QWord;
  21764. function _GetnewVersion: QWord;
  21765. procedure _SetoldVersion(const aValue: QWord);
  21766. procedure _SetnewVersion(const aValue: QWord);
  21767. property oldVersion: QWord read _GetoldVersion write _SetoldVersion;
  21768. property newVersion: QWord read _GetnewVersion write _SetnewVersion;
  21769. end;
  21770. TJSIDBVersionChangeEventInit = class(TJSEventInit,IJSIDBVersionChangeEventInit)
  21771. Protected
  21772. function _GetoldVersion: QWord;
  21773. function _GetnewVersion: QWord;
  21774. procedure _SetoldVersion(const aValue: QWord);
  21775. procedure _SetnewVersion(const aValue: QWord);
  21776. Public
  21777. class function JSClassName: UnicodeString; override;
  21778. class function Cast(const Intf: IJSObject): IJSIDBVersionChangeEventInit;
  21779. property oldVersion: QWord read _GetoldVersion write _SetoldVersion;
  21780. property newVersion: QWord read _GetnewVersion write _SetnewVersion;
  21781. end;
  21782. { --------------------------------------------------------------------
  21783. TJSIIRFilterOptions
  21784. --------------------------------------------------------------------}
  21785. TDoubleDynArray = IJSArray; // array of double
  21786. TJSIIRFilterOptionsRec = record
  21787. feedforward: TDoubleDynArray;
  21788. feedback: TDoubleDynArray;
  21789. channelCount: Cardinal;
  21790. channelCountMode: TChannelCountMode;
  21791. channelInterpretation: TChannelInterpretation;
  21792. end;
  21793. IJSIIRFilterOptions = interface(IJSAudioNodeOptions)
  21794. ['{2A78F2D9-4DE8-3C4A-9E83-B936AD9F2222}']
  21795. function _Getfeedforward: TDoubleDynArray;
  21796. function _Getfeedback: TDoubleDynArray;
  21797. procedure _Setfeedforward(const aValue: TDoubleDynArray);
  21798. procedure _Setfeedback(const aValue: TDoubleDynArray);
  21799. property feedforward: TDoubleDynArray read _Getfeedforward write _Setfeedforward;
  21800. property feedback: TDoubleDynArray read _Getfeedback write _Setfeedback;
  21801. end;
  21802. TJSIIRFilterOptions = class(TJSAudioNodeOptions,IJSIIRFilterOptions)
  21803. Protected
  21804. function _Getfeedforward: TDoubleDynArray;
  21805. function _Getfeedback: TDoubleDynArray;
  21806. procedure _Setfeedforward(const aValue: TDoubleDynArray);
  21807. procedure _Setfeedback(const aValue: TDoubleDynArray);
  21808. Public
  21809. class function JSClassName: UnicodeString; override;
  21810. class function Cast(const Intf: IJSObject): IJSIIRFilterOptions;
  21811. property feedforward: TDoubleDynArray read _Getfeedforward write _Setfeedforward;
  21812. property feedback: TDoubleDynArray read _Getfeedback write _Setfeedback;
  21813. end;
  21814. { --------------------------------------------------------------------
  21815. TJSImageCaptureErrorEventInit
  21816. --------------------------------------------------------------------}
  21817. TJSImageCaptureErrorEventInitRec = record
  21818. imageCaptureError: TJSImageCaptureError;
  21819. bubbles: Boolean;
  21820. cancelable: Boolean;
  21821. composed: Boolean;
  21822. end;
  21823. IJSImageCaptureErrorEventInit = interface(IJSEventInit)
  21824. ['{9149994A-C8E2-3CDF-B408-95D1971E1B4B}']
  21825. function _GetimageCaptureError: IJSImageCaptureError;
  21826. procedure _SetimageCaptureError(const aValue: IJSImageCaptureError);
  21827. property imageCaptureError: IJSImageCaptureError read _GetimageCaptureError write _SetimageCaptureError;
  21828. end;
  21829. TJSImageCaptureErrorEventInit = class(TJSEventInit,IJSImageCaptureErrorEventInit)
  21830. Protected
  21831. function _GetimageCaptureError: IJSImageCaptureError;
  21832. procedure _SetimageCaptureError(const aValue: IJSImageCaptureError);
  21833. Public
  21834. class function JSClassName: UnicodeString; override;
  21835. class function Cast(const Intf: IJSObject): IJSImageCaptureErrorEventInit;
  21836. property imageCaptureError: IJSImageCaptureError read _GetimageCaptureError write _SetimageCaptureError;
  21837. end;
  21838. { --------------------------------------------------------------------
  21839. TJSInvokeEventInit
  21840. --------------------------------------------------------------------}
  21841. TJSInvokeEventInitRec = record
  21842. invoker: TJSElement;
  21843. action: UnicodeString;
  21844. bubbles: Boolean;
  21845. cancelable: Boolean;
  21846. composed: Boolean;
  21847. end;
  21848. IJSInvokeEventInit = interface(IJSEventInit)
  21849. ['{A21E16C1-40AA-35CE-A218-8FE99C34EE69}']
  21850. function _Getinvoker: IJSElement;
  21851. function _Getaction: UnicodeString;
  21852. procedure _Setinvoker(const aValue: IJSElement);
  21853. procedure _Setaction(const aValue: UnicodeString);
  21854. property invoker: IJSElement read _Getinvoker write _Setinvoker;
  21855. property action: UnicodeString read _Getaction write _Setaction;
  21856. end;
  21857. TJSInvokeEventInit = class(TJSEventInit,IJSInvokeEventInit)
  21858. Protected
  21859. function _Getinvoker: IJSElement;
  21860. function _Getaction: UnicodeString;
  21861. procedure _Setinvoker(const aValue: IJSElement);
  21862. procedure _Setaction(const aValue: UnicodeString);
  21863. Public
  21864. class function JSClassName: UnicodeString; override;
  21865. class function Cast(const Intf: IJSObject): IJSInvokeEventInit;
  21866. property invoker: IJSElement read _Getinvoker write _Setinvoker;
  21867. property action: UnicodeString read _Getaction write _Setaction;
  21868. end;
  21869. { --------------------------------------------------------------------
  21870. TJSAesKeyAlgorithm
  21871. --------------------------------------------------------------------}
  21872. TJSAesKeyAlgorithmRec = record
  21873. length_: Word;
  21874. name: UnicodeString;
  21875. end;
  21876. IJSAesKeyAlgorithm = interface(IJSKeyAlgorithm)
  21877. ['{BFC85B9E-2A34-3B38-BC28-B4F799FDAF15}']
  21878. function _Getlength_: Word;
  21879. procedure _Setlength_(const aValue: Word);
  21880. property length_: Word read _Getlength_ write _Setlength_;
  21881. end;
  21882. TJSAesKeyAlgorithm = class(TJSKeyAlgorithm,IJSAesKeyAlgorithm)
  21883. Protected
  21884. function _Getlength_: Word;
  21885. procedure _Setlength_(const aValue: Word);
  21886. Public
  21887. class function JSClassName: UnicodeString; override;
  21888. class function Cast(const Intf: IJSObject): IJSAesKeyAlgorithm;
  21889. property length_: Word read _Getlength_ write _Setlength_;
  21890. end;
  21891. { --------------------------------------------------------------------
  21892. TJSEcKeyAlgorithm
  21893. --------------------------------------------------------------------}
  21894. TJSEcKeyAlgorithmRec = record
  21895. namedCurve: UnicodeString;
  21896. name: UnicodeString;
  21897. end;
  21898. IJSEcKeyAlgorithm = interface(IJSKeyAlgorithm)
  21899. ['{24A8BCEC-03B5-3466-8192-9E325DF26DC9}']
  21900. function _GetnamedCurve: UnicodeString;
  21901. procedure _SetnamedCurve(const aValue: UnicodeString);
  21902. property namedCurve: UnicodeString read _GetnamedCurve write _SetnamedCurve;
  21903. end;
  21904. TJSEcKeyAlgorithm = class(TJSKeyAlgorithm,IJSEcKeyAlgorithm)
  21905. Protected
  21906. function _GetnamedCurve: UnicodeString;
  21907. procedure _SetnamedCurve(const aValue: UnicodeString);
  21908. Public
  21909. class function JSClassName: UnicodeString; override;
  21910. class function Cast(const Intf: IJSObject): IJSEcKeyAlgorithm;
  21911. property namedCurve: UnicodeString read _GetnamedCurve write _SetnamedCurve;
  21912. end;
  21913. { --------------------------------------------------------------------
  21914. TJSHmacKeyAlgorithm
  21915. --------------------------------------------------------------------}
  21916. TJSHmacKeyAlgorithmRec = record
  21917. hash: TJSKeyAlgorithm;
  21918. length_: Cardinal;
  21919. name: UnicodeString;
  21920. end;
  21921. IJSHmacKeyAlgorithm = interface(IJSKeyAlgorithm)
  21922. ['{CEE1BA1B-5AE5-3B5F-96FD-65A6CBD6F98F}']
  21923. function _Gethash: TJSKeyAlgorithm;
  21924. function _Getlength_: Cardinal;
  21925. procedure _Sethash(const aValue: TJSKeyAlgorithm);
  21926. procedure _Setlength_(const aValue: Cardinal);
  21927. property hash: TJSKeyAlgorithm read _Gethash write _Sethash;
  21928. property length_: Cardinal read _Getlength_ write _Setlength_;
  21929. end;
  21930. TJSHmacKeyAlgorithm = class(TJSKeyAlgorithm,IJSHmacKeyAlgorithm)
  21931. Protected
  21932. function _Gethash: TJSKeyAlgorithm;
  21933. function _Getlength_: Cardinal;
  21934. procedure _Sethash(const aValue: TJSKeyAlgorithm);
  21935. procedure _Setlength_(const aValue: Cardinal);
  21936. Public
  21937. class function JSClassName: UnicodeString; override;
  21938. class function Cast(const Intf: IJSObject): IJSHmacKeyAlgorithm;
  21939. property hash: TJSKeyAlgorithm read _Gethash write _Sethash;
  21940. property length_: Cardinal read _Getlength_ write _Setlength_;
  21941. end;
  21942. { --------------------------------------------------------------------
  21943. TJSRsaHashedKeyAlgorithm
  21944. --------------------------------------------------------------------}
  21945. TJSRsaHashedKeyAlgorithmRec = record
  21946. modulusLength: Word;
  21947. publicExponent: IJSUint8Array;
  21948. hash: TJSKeyAlgorithm;
  21949. name: UnicodeString;
  21950. end;
  21951. IJSRsaHashedKeyAlgorithm = interface(IJSKeyAlgorithm)
  21952. ['{82AA632B-6357-3187-B4FD-A23052FABA67}']
  21953. function _GetmodulusLength: Word;
  21954. function _GetpublicExponent: IJSUint8Array;
  21955. function _Gethash: TJSKeyAlgorithm;
  21956. procedure _SetmodulusLength(const aValue: Word);
  21957. procedure _SetpublicExponent(const aValue: IJSUint8Array);
  21958. procedure _Sethash(const aValue: TJSKeyAlgorithm);
  21959. property modulusLength: Word read _GetmodulusLength write _SetmodulusLength;
  21960. property publicExponent: IJSUint8Array read _GetpublicExponent write _SetpublicExponent;
  21961. property hash: TJSKeyAlgorithm read _Gethash write _Sethash;
  21962. end;
  21963. TJSRsaHashedKeyAlgorithm = class(TJSKeyAlgorithm,IJSRsaHashedKeyAlgorithm)
  21964. Protected
  21965. function _GetmodulusLength: Word;
  21966. function _GetpublicExponent: IJSUint8Array;
  21967. function _Gethash: TJSKeyAlgorithm;
  21968. procedure _SetmodulusLength(const aValue: Word);
  21969. procedure _SetpublicExponent(const aValue: IJSUint8Array);
  21970. procedure _Sethash(const aValue: TJSKeyAlgorithm);
  21971. Public
  21972. class function JSClassName: UnicodeString; override;
  21973. class function Cast(const Intf: IJSObject): IJSRsaHashedKeyAlgorithm;
  21974. property modulusLength: Word read _GetmodulusLength write _SetmodulusLength;
  21975. property publicExponent: IJSUint8Array read _GetpublicExponent write _SetpublicExponent;
  21976. property hash: TJSKeyAlgorithm read _Gethash write _Sethash;
  21977. end;
  21978. { --------------------------------------------------------------------
  21979. TJSDhKeyAlgorithm
  21980. --------------------------------------------------------------------}
  21981. TJSDhKeyAlgorithmRec = record
  21982. prime: IJSUint8Array;
  21983. generator: IJSUint8Array;
  21984. name: UnicodeString;
  21985. end;
  21986. IJSDhKeyAlgorithm = interface(IJSKeyAlgorithm)
  21987. ['{2B1F8C3D-AA0A-3506-8192-9E325DF236CB}']
  21988. function _Getprime: IJSUint8Array;
  21989. function _Getgenerator: IJSUint8Array;
  21990. procedure _Setprime(const aValue: IJSUint8Array);
  21991. procedure _Setgenerator(const aValue: IJSUint8Array);
  21992. property prime: IJSUint8Array read _Getprime write _Setprime;
  21993. property generator: IJSUint8Array read _Getgenerator write _Setgenerator;
  21994. end;
  21995. TJSDhKeyAlgorithm = class(TJSKeyAlgorithm,IJSDhKeyAlgorithm)
  21996. Protected
  21997. function _Getprime: IJSUint8Array;
  21998. function _Getgenerator: IJSUint8Array;
  21999. procedure _Setprime(const aValue: IJSUint8Array);
  22000. procedure _Setgenerator(const aValue: IJSUint8Array);
  22001. Public
  22002. class function JSClassName: UnicodeString; override;
  22003. class function Cast(const Intf: IJSObject): IJSDhKeyAlgorithm;
  22004. property prime: IJSUint8Array read _Getprime write _Setprime;
  22005. property generator: IJSUint8Array read _Getgenerator write _Setgenerator;
  22006. end;
  22007. { --------------------------------------------------------------------
  22008. TJSKeyframeEffectOptions
  22009. --------------------------------------------------------------------}
  22010. TJSKeyframeEffectOptionsRec = record
  22011. iterationComposite: TIterationCompositeOperation;
  22012. composite: TCompositeOperation;
  22013. pseudoElement: UnicodeString;
  22014. delay: Double;
  22015. endDelay: Double;
  22016. fill: TFillMode;
  22017. iterationStart: Double;
  22018. iterations: Double;
  22019. duration: TEffectTiming_duration_Type;
  22020. direction: TPlaybackDirection;
  22021. easing: UTF8String;
  22022. end;
  22023. IJSKeyframeEffectOptions = interface(IJSEffectTiming)
  22024. ['{B37A07E2-9931-3AD1-8266-CFC957C6C258}']
  22025. function _GetiterationComposite: TIterationCompositeOperation;
  22026. function _Getcomposite: TCompositeOperation;
  22027. function _GetpseudoElement: UnicodeString;
  22028. procedure _SetiterationComposite(const aValue: TIterationCompositeOperation);
  22029. procedure _Setcomposite(const aValue: TCompositeOperation);
  22030. procedure _SetpseudoElement(const aValue: UnicodeString);
  22031. property iterationComposite: TIterationCompositeOperation read _GetiterationComposite write _SetiterationComposite;
  22032. property composite: TCompositeOperation read _Getcomposite write _Setcomposite;
  22033. property pseudoElement: UnicodeString read _GetpseudoElement write _SetpseudoElement;
  22034. end;
  22035. TJSKeyframeEffectOptions = class(TJSEffectTiming,IJSKeyframeEffectOptions)
  22036. Protected
  22037. function _GetiterationComposite: TIterationCompositeOperation;
  22038. function _Getcomposite: TCompositeOperation;
  22039. function _GetpseudoElement: UnicodeString;
  22040. procedure _SetiterationComposite(const aValue: TIterationCompositeOperation);
  22041. procedure _Setcomposite(const aValue: TCompositeOperation);
  22042. procedure _SetpseudoElement(const aValue: UnicodeString);
  22043. Public
  22044. class function JSClassName: UnicodeString; override;
  22045. class function Cast(const Intf: IJSObject): IJSKeyframeEffectOptions;
  22046. property iterationComposite: TIterationCompositeOperation read _GetiterationComposite write _SetiterationComposite;
  22047. property composite: TCompositeOperation read _Getcomposite write _Setcomposite;
  22048. property pseudoElement: UnicodeString read _GetpseudoElement write _SetpseudoElement;
  22049. end;
  22050. { --------------------------------------------------------------------
  22051. TJSMediaDecodingConfiguration
  22052. --------------------------------------------------------------------}
  22053. TJSMediaDecodingConfigurationRec = record
  22054. type_: TMediaDecodingType;
  22055. video: TJSVideoConfiguration;
  22056. audio: TJSAudioConfiguration;
  22057. end;
  22058. IJSMediaDecodingConfiguration = interface(IJSMediaConfiguration)
  22059. ['{5AF610A2-2D1C-3FAF-9F49-9200542E72F2}']
  22060. function _Gettype_: TMediaDecodingType;
  22061. procedure _Settype_(const aValue: TMediaDecodingType);
  22062. property type_: TMediaDecodingType read _Gettype_ write _Settype_;
  22063. end;
  22064. TJSMediaDecodingConfiguration = class(TJSMediaConfiguration,IJSMediaDecodingConfiguration)
  22065. Protected
  22066. function _Gettype_: TMediaDecodingType;
  22067. procedure _Settype_(const aValue: TMediaDecodingType);
  22068. Public
  22069. class function JSClassName: UnicodeString; override;
  22070. class function Cast(const Intf: IJSObject): IJSMediaDecodingConfiguration;
  22071. property type_: TMediaDecodingType read _Gettype_ write _Settype_;
  22072. end;
  22073. { --------------------------------------------------------------------
  22074. TJSMediaEncodingConfiguration
  22075. --------------------------------------------------------------------}
  22076. TJSMediaEncodingConfigurationRec = record
  22077. type_: TMediaEncodingType;
  22078. video: TJSVideoConfiguration;
  22079. audio: TJSAudioConfiguration;
  22080. end;
  22081. IJSMediaEncodingConfiguration = interface(IJSMediaConfiguration)
  22082. ['{5AF610A2-2D26-3FAF-9F49-9200542E72F2}']
  22083. function _Gettype_: TMediaEncodingType;
  22084. procedure _Settype_(const aValue: TMediaEncodingType);
  22085. property type_: TMediaEncodingType read _Gettype_ write _Settype_;
  22086. end;
  22087. TJSMediaEncodingConfiguration = class(TJSMediaConfiguration,IJSMediaEncodingConfiguration)
  22088. Protected
  22089. function _Gettype_: TMediaEncodingType;
  22090. procedure _Settype_(const aValue: TMediaEncodingType);
  22091. Public
  22092. class function JSClassName: UnicodeString; override;
  22093. class function Cast(const Intf: IJSObject): IJSMediaEncodingConfiguration;
  22094. property type_: TMediaEncodingType read _Gettype_ write _Settype_;
  22095. end;
  22096. { --------------------------------------------------------------------
  22097. TJSMediaKeyNeededEventInit
  22098. --------------------------------------------------------------------}
  22099. TJSMediaKeyNeededEventInitRec = record
  22100. initDataType: UnicodeString;
  22101. initData: IJSArrayBuffer;
  22102. bubbles: Boolean;
  22103. cancelable: Boolean;
  22104. composed: Boolean;
  22105. end;
  22106. IJSMediaKeyNeededEventInit = interface(IJSEventInit)
  22107. ['{43C741B6-530D-3014-B375-F3214286E290}']
  22108. function _GetinitDataType: UnicodeString;
  22109. function _GetinitData: IJSArrayBuffer;
  22110. procedure _SetinitDataType(const aValue: UnicodeString);
  22111. procedure _SetinitData(const aValue: IJSArrayBuffer);
  22112. property initDataType: UnicodeString read _GetinitDataType write _SetinitDataType;
  22113. property initData: IJSArrayBuffer read _GetinitData write _SetinitData;
  22114. end;
  22115. TJSMediaKeyNeededEventInit = class(TJSEventInit,IJSMediaKeyNeededEventInit)
  22116. Protected
  22117. function _GetinitDataType: UnicodeString;
  22118. function _GetinitData: IJSArrayBuffer;
  22119. procedure _SetinitDataType(const aValue: UnicodeString);
  22120. procedure _SetinitData(const aValue: IJSArrayBuffer);
  22121. Public
  22122. class function JSClassName: UnicodeString; override;
  22123. class function Cast(const Intf: IJSObject): IJSMediaKeyNeededEventInit;
  22124. property initDataType: UnicodeString read _GetinitDataType write _SetinitDataType;
  22125. property initData: IJSArrayBuffer read _GetinitData write _SetinitData;
  22126. end;
  22127. { --------------------------------------------------------------------
  22128. TJSMediaKeyMessageEventInit
  22129. --------------------------------------------------------------------}
  22130. TJSMediaKeyMessageEventInitRec = record
  22131. messageType: TMediaKeyMessageType;
  22132. message: IJSArrayBuffer;
  22133. bubbles: Boolean;
  22134. cancelable: Boolean;
  22135. composed: Boolean;
  22136. end;
  22137. IJSMediaKeyMessageEventInit = interface(IJSEventInit)
  22138. ['{D87DFCEF-E6DF-3F07-A6C7-BF7A2D136DE3}']
  22139. function _GetmessageType: TMediaKeyMessageType;
  22140. function _Getmessage: IJSArrayBuffer;
  22141. procedure _SetmessageType(const aValue: TMediaKeyMessageType);
  22142. procedure _Setmessage(const aValue: IJSArrayBuffer);
  22143. property messageType: TMediaKeyMessageType read _GetmessageType write _SetmessageType;
  22144. property message: IJSArrayBuffer read _Getmessage write _Setmessage;
  22145. end;
  22146. TJSMediaKeyMessageEventInit = class(TJSEventInit,IJSMediaKeyMessageEventInit)
  22147. Protected
  22148. function _GetmessageType: TMediaKeyMessageType;
  22149. function _Getmessage: IJSArrayBuffer;
  22150. procedure _SetmessageType(const aValue: TMediaKeyMessageType);
  22151. procedure _Setmessage(const aValue: IJSArrayBuffer);
  22152. Public
  22153. class function JSClassName: UnicodeString; override;
  22154. class function Cast(const Intf: IJSObject): IJSMediaKeyMessageEventInit;
  22155. property messageType: TMediaKeyMessageType read _GetmessageType write _SetmessageType;
  22156. property message: IJSArrayBuffer read _Getmessage write _Setmessage;
  22157. end;
  22158. { --------------------------------------------------------------------
  22159. TJSMediaQueryListEventInit
  22160. --------------------------------------------------------------------}
  22161. TJSMediaQueryListEventInitRec = record
  22162. media: UTF8String;
  22163. matches: Boolean;
  22164. bubbles: Boolean;
  22165. cancelable: Boolean;
  22166. composed: Boolean;
  22167. end;
  22168. IJSMediaQueryListEventInit = interface(IJSEventInit)
  22169. ['{43C8B40A-5D80-307A-81FA-02C5CEA21890}']
  22170. function _Getmedia: UTF8String;
  22171. function _Getmatches: Boolean;
  22172. procedure _Setmedia(const aValue: UTF8String);
  22173. procedure _Setmatches(const aValue: Boolean);
  22174. property media: UTF8String read _Getmedia write _Setmedia;
  22175. property matches: Boolean read _Getmatches write _Setmatches;
  22176. end;
  22177. TJSMediaQueryListEventInit = class(TJSEventInit,IJSMediaQueryListEventInit)
  22178. Protected
  22179. function _Getmedia: UTF8String;
  22180. function _Getmatches: Boolean;
  22181. procedure _Setmedia(const aValue: UTF8String);
  22182. procedure _Setmatches(const aValue: Boolean);
  22183. Public
  22184. class function JSClassName: UnicodeString; override;
  22185. class function Cast(const Intf: IJSObject): IJSMediaQueryListEventInit;
  22186. property media: UTF8String read _Getmedia write _Setmedia;
  22187. property matches: Boolean read _Getmatches write _Setmatches;
  22188. end;
  22189. { --------------------------------------------------------------------
  22190. TJSMediaRecorderErrorEventInit
  22191. --------------------------------------------------------------------}
  22192. TJSMediaRecorderErrorEventInitRec = record
  22193. error: IJSError;
  22194. bubbles: Boolean;
  22195. cancelable: Boolean;
  22196. composed: Boolean;
  22197. end;
  22198. IJSMediaRecorderErrorEventInit = interface(IJSEventInit)
  22199. ['{BAF0FFC5-6C25-38BE-BD43-D81F7D3869FA}']
  22200. function _Geterror: IJSDOMException;
  22201. procedure _Seterror(const aValue: IJSDOMException);
  22202. property error: IJSDOMException read _Geterror write _Seterror;
  22203. end;
  22204. TJSMediaRecorderErrorEventInit = class(TJSEventInit,IJSMediaRecorderErrorEventInit)
  22205. Protected
  22206. function _Geterror: IJSDOMException;
  22207. procedure _Seterror(const aValue: IJSDOMException);
  22208. Public
  22209. class function JSClassName: UnicodeString; override;
  22210. class function Cast(const Intf: IJSObject): IJSMediaRecorderErrorEventInit;
  22211. property error: IJSDOMException read _Geterror write _Seterror;
  22212. end;
  22213. { --------------------------------------------------------------------
  22214. TJSMediaStreamEventInit
  22215. --------------------------------------------------------------------}
  22216. TJSMediaStreamEventInitRec = record
  22217. stream: TJSMediaStream;
  22218. bubbles: Boolean;
  22219. cancelable: Boolean;
  22220. composed: Boolean;
  22221. end;
  22222. IJSMediaStreamEventInit = interface(IJSEventInit)
  22223. ['{9D19A52B-A242-3F32-A1DF-66D10C46F34F}']
  22224. function _Getstream: IJSMediaStream;
  22225. procedure _Setstream(const aValue: IJSMediaStream);
  22226. property stream: IJSMediaStream read _Getstream write _Setstream;
  22227. end;
  22228. TJSMediaStreamEventInit = class(TJSEventInit,IJSMediaStreamEventInit)
  22229. Protected
  22230. function _Getstream: IJSMediaStream;
  22231. procedure _Setstream(const aValue: IJSMediaStream);
  22232. Public
  22233. class function JSClassName: UnicodeString; override;
  22234. class function Cast(const Intf: IJSObject): IJSMediaStreamEventInit;
  22235. property stream: IJSMediaStream read _Getstream write _Setstream;
  22236. end;
  22237. { --------------------------------------------------------------------
  22238. TJSMediaTrackConstraints
  22239. --------------------------------------------------------------------}
  22240. TJSMediaTrackConstraintSetDynArray = IJSArray; // array of MediaTrackConstraintSet
  22241. TJSMediaTrackConstraintsRec = record
  22242. advanced: TJSMediaTrackConstraintSetDynArray;
  22243. width: TConstrainLong;
  22244. height: TConstrainLong;
  22245. frameRate: TConstrainDouble;
  22246. facingMode: TConstrainDOMString;
  22247. mediaSource: UnicodeString;
  22248. browserWindow: Int64;
  22249. scrollWithPage: Boolean;
  22250. deviceId: TConstrainDOMString;
  22251. groupId: TConstrainDOMString;
  22252. viewportOffsetX: TConstrainLong;
  22253. viewportOffsetY: TConstrainLong;
  22254. viewportWidth: TConstrainLong;
  22255. viewportHeight: TConstrainLong;
  22256. echoCancellation: TConstrainBoolean;
  22257. noiseSuppression: TConstrainBoolean;
  22258. autoGainControl: TConstrainBoolean;
  22259. channelCount: TConstrainLong;
  22260. end;
  22261. IJSMediaTrackConstraints = interface(IJSMediaTrackConstraintSet)
  22262. ['{07CCD052-ED32-3F3B-9798-3F3B4528255C}']
  22263. function _Getadvanced: TJSMediaTrackConstraintSetDynArray;
  22264. procedure _Setadvanced(const aValue: TJSMediaTrackConstraintSetDynArray);
  22265. property advanced: TJSMediaTrackConstraintSetDynArray read _Getadvanced write _Setadvanced;
  22266. end;
  22267. TJSMediaTrackConstraints = class(TJSMediaTrackConstraintSet,IJSMediaTrackConstraints)
  22268. Protected
  22269. function _Getadvanced: TJSMediaTrackConstraintSetDynArray;
  22270. procedure _Setadvanced(const aValue: TJSMediaTrackConstraintSetDynArray);
  22271. Public
  22272. class function JSClassName: UnicodeString; override;
  22273. class function Cast(const Intf: IJSObject): IJSMediaTrackConstraints;
  22274. property advanced: TJSMediaTrackConstraintSetDynArray read _Getadvanced write _Setadvanced;
  22275. end;
  22276. { --------------------------------------------------------------------
  22277. TJSMediaStreamTrackEventInit
  22278. --------------------------------------------------------------------}
  22279. TJSMediaStreamTrackEventInitRec = record
  22280. track: TJSMediaStreamTrack;
  22281. bubbles: Boolean;
  22282. cancelable: Boolean;
  22283. composed: Boolean;
  22284. end;
  22285. IJSMediaStreamTrackEventInit = interface(IJSEventInit)
  22286. ['{7D24A642-56EC-3D10-8344-F9EDF0AFE686}']
  22287. function _Gettrack: IJSMediaStreamTrack;
  22288. procedure _Settrack(const aValue: IJSMediaStreamTrack);
  22289. property track: IJSMediaStreamTrack read _Gettrack write _Settrack;
  22290. end;
  22291. TJSMediaStreamTrackEventInit = class(TJSEventInit,IJSMediaStreamTrackEventInit)
  22292. Protected
  22293. function _Gettrack: IJSMediaStreamTrack;
  22294. procedure _Settrack(const aValue: IJSMediaStreamTrack);
  22295. Public
  22296. class function JSClassName: UnicodeString; override;
  22297. class function Cast(const Intf: IJSObject): IJSMediaStreamTrackEventInit;
  22298. property track: IJSMediaStreamTrack read _Gettrack write _Settrack;
  22299. end;
  22300. { --------------------------------------------------------------------
  22301. TJSMerchantValidationEventInit
  22302. --------------------------------------------------------------------}
  22303. TJSMerchantValidationEventInitRec = record
  22304. methodName: UnicodeString;
  22305. validationURL: UnicodeString;
  22306. bubbles: Boolean;
  22307. cancelable: Boolean;
  22308. composed: Boolean;
  22309. end;
  22310. IJSMerchantValidationEventInit = interface(IJSEventInit)
  22311. ['{0405A2FC-C2D0-3E28-A6D6-20710799336F}']
  22312. function _GetmethodName: UnicodeString;
  22313. function _GetvalidationURL: UnicodeString;
  22314. procedure _SetmethodName(const aValue: UnicodeString);
  22315. procedure _SetvalidationURL(const aValue: UnicodeString);
  22316. property methodName: UnicodeString read _GetmethodName write _SetmethodName;
  22317. property validationURL: UnicodeString read _GetvalidationURL write _SetvalidationURL;
  22318. end;
  22319. TJSMerchantValidationEventInit = class(TJSEventInit,IJSMerchantValidationEventInit)
  22320. Protected
  22321. function _GetmethodName: UnicodeString;
  22322. function _GetvalidationURL: UnicodeString;
  22323. procedure _SetmethodName(const aValue: UnicodeString);
  22324. procedure _SetvalidationURL(const aValue: UnicodeString);
  22325. Public
  22326. class function JSClassName: UnicodeString; override;
  22327. class function Cast(const Intf: IJSObject): IJSMerchantValidationEventInit;
  22328. property methodName: UnicodeString read _GetmethodName write _SetmethodName;
  22329. property validationURL: UnicodeString read _GetvalidationURL write _SetvalidationURL;
  22330. end;
  22331. { --------------------------------------------------------------------
  22332. TJSMessageEventInit
  22333. --------------------------------------------------------------------}
  22334. TJSMessagePortDynArray = IJSArray; // array of MessagePort
  22335. TJSMessageEventInitRec = record
  22336. data: Variant;
  22337. origin: UnicodeString;
  22338. lastEventId: UnicodeString;
  22339. source: TMessageEventSource;
  22340. ports: TJSMessagePortDynArray;
  22341. bubbles: Boolean;
  22342. cancelable: Boolean;
  22343. composed: Boolean;
  22344. end;
  22345. IJSMessageEventInit = interface(IJSEventInit)
  22346. ['{54A197F1-6C96-3CE0-8E86-87BB438622C4}']
  22347. function _Getdata: Variant;
  22348. function _Getorigin: UnicodeString;
  22349. function _GetlastEventId: UnicodeString;
  22350. function _Getsource: TMessageEventSource;
  22351. function _Getports: TJSMessagePortDynArray;
  22352. procedure _Setdata(const aValue: Variant);
  22353. procedure _Setorigin(const aValue: UnicodeString);
  22354. procedure _SetlastEventId(const aValue: UnicodeString);
  22355. procedure _Setsource(const aValue: TMessageEventSource);
  22356. procedure _Setports(const aValue: TJSMessagePortDynArray);
  22357. property data: Variant read _Getdata write _Setdata;
  22358. property origin: UnicodeString read _Getorigin write _Setorigin;
  22359. property lastEventId: UnicodeString read _GetlastEventId write _SetlastEventId;
  22360. property source: TMessageEventSource read _Getsource write _Setsource;
  22361. property ports: TJSMessagePortDynArray read _Getports write _Setports;
  22362. end;
  22363. TJSMessageEventInit = class(TJSEventInit,IJSMessageEventInit)
  22364. Protected
  22365. function _Getdata: Variant;
  22366. function _Getorigin: UnicodeString;
  22367. function _GetlastEventId: UnicodeString;
  22368. function _Getsource: TMessageEventSource;
  22369. function _Getports: TJSMessagePortDynArray;
  22370. procedure _Setdata(const aValue: Variant);
  22371. procedure _Setorigin(const aValue: UnicodeString);
  22372. procedure _SetlastEventId(const aValue: UnicodeString);
  22373. procedure _Setsource(const aValue: TMessageEventSource);
  22374. procedure _Setports(const aValue: TJSMessagePortDynArray);
  22375. Public
  22376. class function JSClassName: UnicodeString; override;
  22377. class function Cast(const Intf: IJSObject): IJSMessageEventInit;
  22378. property data: Variant read _Getdata write _Setdata;
  22379. property origin: UnicodeString read _Getorigin write _Setorigin;
  22380. property lastEventId: UnicodeString read _GetlastEventId write _SetlastEventId;
  22381. property source: TMessageEventSource read _Getsource write _Setsource;
  22382. property ports: TJSMessagePortDynArray read _Getports write _Setports;
  22383. end;
  22384. { --------------------------------------------------------------------
  22385. TJSMIDIConnectionEventInit
  22386. --------------------------------------------------------------------}
  22387. TJSMIDIConnectionEventInitRec = record
  22388. port: TJSMIDIPort;
  22389. bubbles: Boolean;
  22390. cancelable: Boolean;
  22391. composed: Boolean;
  22392. end;
  22393. IJSMIDIConnectionEventInit = interface(IJSEventInit)
  22394. ['{43C8157A-A8E5-349A-A6F4-D2C5CEA21890}']
  22395. function _Getport: IJSMIDIPort;
  22396. procedure _Setport(const aValue: IJSMIDIPort);
  22397. property port: IJSMIDIPort read _Getport write _Setport;
  22398. end;
  22399. TJSMIDIConnectionEventInit = class(TJSEventInit,IJSMIDIConnectionEventInit)
  22400. Protected
  22401. function _Getport: IJSMIDIPort;
  22402. procedure _Setport(const aValue: IJSMIDIPort);
  22403. Public
  22404. class function JSClassName: UnicodeString; override;
  22405. class function Cast(const Intf: IJSObject): IJSMIDIConnectionEventInit;
  22406. property port: IJSMIDIPort read _Getport write _Setport;
  22407. end;
  22408. { --------------------------------------------------------------------
  22409. TJSMIDIMessageEventInit
  22410. --------------------------------------------------------------------}
  22411. TJSMIDIMessageEventInitRec = record
  22412. data: IJSUint8Array;
  22413. bubbles: Boolean;
  22414. cancelable: Boolean;
  22415. composed: Boolean;
  22416. end;
  22417. IJSMIDIMessageEventInit = interface(IJSEventInit)
  22418. ['{A3A0B63F-8ED1-30F5-81DF-66D10C46F34E}']
  22419. function _Getdata: IJSUint8Array;
  22420. procedure _Setdata(const aValue: IJSUint8Array);
  22421. property data: IJSUint8Array read _Getdata write _Setdata;
  22422. end;
  22423. TJSMIDIMessageEventInit = class(TJSEventInit,IJSMIDIMessageEventInit)
  22424. Protected
  22425. function _Getdata: IJSUint8Array;
  22426. procedure _Setdata(const aValue: IJSUint8Array);
  22427. Public
  22428. class function JSClassName: UnicodeString; override;
  22429. class function Cast(const Intf: IJSObject): IJSMIDIMessageEventInit;
  22430. property data: IJSUint8Array read _Getdata write _Setdata;
  22431. end;
  22432. { --------------------------------------------------------------------
  22433. TJSMozApplicationEventInit
  22434. --------------------------------------------------------------------}
  22435. TJSMozApplicationEventInitRec = record
  22436. application: IJSObject;
  22437. bubbles: Boolean;
  22438. cancelable: Boolean;
  22439. composed: Boolean;
  22440. end;
  22441. IJSMozApplicationEventInit = interface(IJSEventInit)
  22442. ['{43C6493F-AE4D-3608-96F4-D2C5CEA21890}']
  22443. function _Getapplication: IJSObject;
  22444. procedure _Setapplication(const aValue: IJSObject);
  22445. property application: IJSObject read _Getapplication write _Setapplication;
  22446. end;
  22447. TJSMozApplicationEventInit = class(TJSEventInit,IJSMozApplicationEventInit)
  22448. Protected
  22449. function _Getapplication: IJSObject;
  22450. procedure _Setapplication(const aValue: IJSObject);
  22451. Public
  22452. class function JSClassName: UnicodeString; override;
  22453. class function Cast(const Intf: IJSObject): IJSMozApplicationEventInit;
  22454. property application: IJSObject read _Getapplication write _Setapplication;
  22455. end;
  22456. { --------------------------------------------------------------------
  22457. TJSMutationObservingInfo
  22458. --------------------------------------------------------------------}
  22459. TJSMutationObservingInfoRec = record
  22460. observedNode: IJSNode;
  22461. childList: Boolean;
  22462. attributes: Boolean;
  22463. characterData: Boolean;
  22464. subtree: Boolean;
  22465. attributeOldValue: Boolean;
  22466. characterDataOldValue: Boolean;
  22467. attributeFilter: TUnicodeStringDynArray;
  22468. end;
  22469. IJSMutationObservingInfo = interface(IJSMutationObserverInit)
  22470. ['{69D6F8D2-35C3-393E-982A-530C1423897C}']
  22471. function _GetobservedNode: IJSNode;
  22472. procedure _SetobservedNode(const aValue: IJSNode);
  22473. property observedNode: IJSNode read _GetobservedNode write _SetobservedNode;
  22474. end;
  22475. TJSMutationObservingInfo = class(TJSMutationObserverInit,IJSMutationObservingInfo)
  22476. Protected
  22477. function _GetobservedNode: IJSNode;
  22478. procedure _SetobservedNode(const aValue: IJSNode);
  22479. Public
  22480. class function JSClassName: UnicodeString; override;
  22481. class function Cast(const Intf: IJSObject): IJSMutationObservingInfo;
  22482. property observedNode: IJSNode read _GetobservedNode write _SetobservedNode;
  22483. end;
  22484. { --------------------------------------------------------------------
  22485. TJSOfflineAudioCompletionEventInit
  22486. --------------------------------------------------------------------}
  22487. TJSOfflineAudioCompletionEventInitRec = record
  22488. renderedBuffer: TJSAudioBuffer;
  22489. bubbles: Boolean;
  22490. cancelable: Boolean;
  22491. composed: Boolean;
  22492. end;
  22493. IJSOfflineAudioCompletionEventInit = interface(IJSEventInit)
  22494. ['{1FF8C5BD-7973-37D9-AE3A-3780C0F045F2}']
  22495. function _GetrenderedBuffer: IJSAudioBuffer;
  22496. procedure _SetrenderedBuffer(const aValue: IJSAudioBuffer);
  22497. property renderedBuffer: IJSAudioBuffer read _GetrenderedBuffer write _SetrenderedBuffer;
  22498. end;
  22499. TJSOfflineAudioCompletionEventInit = class(TJSEventInit,IJSOfflineAudioCompletionEventInit)
  22500. Protected
  22501. function _GetrenderedBuffer: IJSAudioBuffer;
  22502. procedure _SetrenderedBuffer(const aValue: IJSAudioBuffer);
  22503. Public
  22504. class function JSClassName: UnicodeString; override;
  22505. class function Cast(const Intf: IJSObject): IJSOfflineAudioCompletionEventInit;
  22506. property renderedBuffer: IJSAudioBuffer read _GetrenderedBuffer write _SetrenderedBuffer;
  22507. end;
  22508. { --------------------------------------------------------------------
  22509. TJSOscillatorOptions
  22510. --------------------------------------------------------------------}
  22511. TJSOscillatorOptionsRec = record
  22512. type_: TOscillatorType;
  22513. frequency: Single;
  22514. detune: Single;
  22515. periodicWave: TJSPeriodicWave;
  22516. channelCount: Cardinal;
  22517. channelCountMode: TChannelCountMode;
  22518. channelInterpretation: TChannelInterpretation;
  22519. end;
  22520. IJSOscillatorOptions = interface(IJSAudioNodeOptions)
  22521. ['{8C366D56-3542-3BE3-B830-4EB05606F7F7}']
  22522. function _Gettype_: TOscillatorType;
  22523. function _Getfrequency: Single;
  22524. function _Getdetune: Single;
  22525. function _GetperiodicWave: IJSPeriodicWave;
  22526. procedure _Settype_(const aValue: TOscillatorType);
  22527. procedure _Setfrequency(const aValue: Single);
  22528. procedure _Setdetune(const aValue: Single);
  22529. procedure _SetperiodicWave(const aValue: IJSPeriodicWave);
  22530. property type_: TOscillatorType read _Gettype_ write _Settype_;
  22531. property frequency: Single read _Getfrequency write _Setfrequency;
  22532. property detune: Single read _Getdetune write _Setdetune;
  22533. property periodicWave: IJSPeriodicWave read _GetperiodicWave write _SetperiodicWave;
  22534. end;
  22535. TJSOscillatorOptions = class(TJSAudioNodeOptions,IJSOscillatorOptions)
  22536. Protected
  22537. function _Gettype_: TOscillatorType;
  22538. function _Getfrequency: Single;
  22539. function _Getdetune: Single;
  22540. function _GetperiodicWave: IJSPeriodicWave;
  22541. procedure _Settype_(const aValue: TOscillatorType);
  22542. procedure _Setfrequency(const aValue: Single);
  22543. procedure _Setdetune(const aValue: Single);
  22544. procedure _SetperiodicWave(const aValue: IJSPeriodicWave);
  22545. Public
  22546. class function JSClassName: UnicodeString; override;
  22547. class function Cast(const Intf: IJSObject): IJSOscillatorOptions;
  22548. property type_: TOscillatorType read _Gettype_ write _Settype_;
  22549. property frequency: Single read _Getfrequency write _Setfrequency;
  22550. property detune: Single read _Getdetune write _Setdetune;
  22551. property periodicWave: IJSPeriodicWave read _GetperiodicWave write _SetperiodicWave;
  22552. end;
  22553. { --------------------------------------------------------------------
  22554. TJSPageTransitionEventInit
  22555. --------------------------------------------------------------------}
  22556. TJSPageTransitionEventInitRec = record
  22557. persisted: Boolean;
  22558. inFrameSwap: Boolean;
  22559. bubbles: Boolean;
  22560. cancelable: Boolean;
  22561. composed: Boolean;
  22562. end;
  22563. IJSPageTransitionEventInit = interface(IJSEventInit)
  22564. ['{43C96FA8-82FC-3FBE-B1DB-5B9E615B2090}']
  22565. function _Getpersisted: Boolean;
  22566. function _GetinFrameSwap: Boolean;
  22567. procedure _Setpersisted(const aValue: Boolean);
  22568. procedure _SetinFrameSwap(const aValue: Boolean);
  22569. property persisted: Boolean read _Getpersisted write _Setpersisted;
  22570. property inFrameSwap: Boolean read _GetinFrameSwap write _SetinFrameSwap;
  22571. end;
  22572. TJSPageTransitionEventInit = class(TJSEventInit,IJSPageTransitionEventInit)
  22573. Protected
  22574. function _Getpersisted: Boolean;
  22575. function _GetinFrameSwap: Boolean;
  22576. procedure _Setpersisted(const aValue: Boolean);
  22577. procedure _SetinFrameSwap(const aValue: Boolean);
  22578. Public
  22579. class function JSClassName: UnicodeString; override;
  22580. class function Cast(const Intf: IJSObject): IJSPageTransitionEventInit;
  22581. property persisted: Boolean read _Getpersisted write _Setpersisted;
  22582. property inFrameSwap: Boolean read _GetinFrameSwap write _SetinFrameSwap;
  22583. end;
  22584. { --------------------------------------------------------------------
  22585. TJSPannerOptions
  22586. --------------------------------------------------------------------}
  22587. TJSPannerOptionsRec = record
  22588. panningModel: TPanningModelType;
  22589. distanceModel: TDistanceModelType;
  22590. positionX: Single;
  22591. positionY: Single;
  22592. positionZ: Single;
  22593. orientationX: Single;
  22594. orientationY: Single;
  22595. orientationZ: Single;
  22596. refDistance: Double;
  22597. maxDistance: Double;
  22598. rolloffFactor: Double;
  22599. coneInnerAngle: Double;
  22600. coneOuterAngle: Double;
  22601. coneOuterGain: Double;
  22602. channelCount: Cardinal;
  22603. channelCountMode: TChannelCountMode;
  22604. channelInterpretation: TChannelInterpretation;
  22605. end;
  22606. IJSPannerOptions = interface(IJSAudioNodeOptions)
  22607. ['{95858366-0367-365A-AAEC-3DEB31A88E4A}']
  22608. function _GetpanningModel: TPanningModelType;
  22609. function _GetdistanceModel: TDistanceModelType;
  22610. function _GetpositionX: Single;
  22611. function _GetpositionY: Single;
  22612. function _GetpositionZ: Single;
  22613. function _GetorientationX: Single;
  22614. function _GetorientationY: Single;
  22615. function _GetorientationZ: Single;
  22616. function _GetrefDistance: Double;
  22617. function _GetmaxDistance: Double;
  22618. function _GetrolloffFactor: Double;
  22619. function _GetconeInnerAngle: Double;
  22620. function _GetconeOuterAngle: Double;
  22621. function _GetconeOuterGain: Double;
  22622. procedure _SetpanningModel(const aValue: TPanningModelType);
  22623. procedure _SetdistanceModel(const aValue: TDistanceModelType);
  22624. procedure _SetpositionX(const aValue: Single);
  22625. procedure _SetpositionY(const aValue: Single);
  22626. procedure _SetpositionZ(const aValue: Single);
  22627. procedure _SetorientationX(const aValue: Single);
  22628. procedure _SetorientationY(const aValue: Single);
  22629. procedure _SetorientationZ(const aValue: Single);
  22630. procedure _SetrefDistance(const aValue: Double);
  22631. procedure _SetmaxDistance(const aValue: Double);
  22632. procedure _SetrolloffFactor(const aValue: Double);
  22633. procedure _SetconeInnerAngle(const aValue: Double);
  22634. procedure _SetconeOuterAngle(const aValue: Double);
  22635. procedure _SetconeOuterGain(const aValue: Double);
  22636. property panningModel: TPanningModelType read _GetpanningModel write _SetpanningModel;
  22637. property distanceModel: TDistanceModelType read _GetdistanceModel write _SetdistanceModel;
  22638. property positionX: Single read _GetpositionX write _SetpositionX;
  22639. property positionY: Single read _GetpositionY write _SetpositionY;
  22640. property positionZ: Single read _GetpositionZ write _SetpositionZ;
  22641. property orientationX: Single read _GetorientationX write _SetorientationX;
  22642. property orientationY: Single read _GetorientationY write _SetorientationY;
  22643. property orientationZ: Single read _GetorientationZ write _SetorientationZ;
  22644. property refDistance: Double read _GetrefDistance write _SetrefDistance;
  22645. property maxDistance: Double read _GetmaxDistance write _SetmaxDistance;
  22646. property rolloffFactor: Double read _GetrolloffFactor write _SetrolloffFactor;
  22647. property coneInnerAngle: Double read _GetconeInnerAngle write _SetconeInnerAngle;
  22648. property coneOuterAngle: Double read _GetconeOuterAngle write _SetconeOuterAngle;
  22649. property coneOuterGain: Double read _GetconeOuterGain write _SetconeOuterGain;
  22650. end;
  22651. TJSPannerOptions = class(TJSAudioNodeOptions,IJSPannerOptions)
  22652. Protected
  22653. function _GetpanningModel: TPanningModelType;
  22654. function _GetdistanceModel: TDistanceModelType;
  22655. function _GetpositionX: Single;
  22656. function _GetpositionY: Single;
  22657. function _GetpositionZ: Single;
  22658. function _GetorientationX: Single;
  22659. function _GetorientationY: Single;
  22660. function _GetorientationZ: Single;
  22661. function _GetrefDistance: Double;
  22662. function _GetmaxDistance: Double;
  22663. function _GetrolloffFactor: Double;
  22664. function _GetconeInnerAngle: Double;
  22665. function _GetconeOuterAngle: Double;
  22666. function _GetconeOuterGain: Double;
  22667. procedure _SetpanningModel(const aValue: TPanningModelType);
  22668. procedure _SetdistanceModel(const aValue: TDistanceModelType);
  22669. procedure _SetpositionX(const aValue: Single);
  22670. procedure _SetpositionY(const aValue: Single);
  22671. procedure _SetpositionZ(const aValue: Single);
  22672. procedure _SetorientationX(const aValue: Single);
  22673. procedure _SetorientationY(const aValue: Single);
  22674. procedure _SetorientationZ(const aValue: Single);
  22675. procedure _SetrefDistance(const aValue: Double);
  22676. procedure _SetmaxDistance(const aValue: Double);
  22677. procedure _SetrolloffFactor(const aValue: Double);
  22678. procedure _SetconeInnerAngle(const aValue: Double);
  22679. procedure _SetconeOuterAngle(const aValue: Double);
  22680. procedure _SetconeOuterGain(const aValue: Double);
  22681. Public
  22682. class function JSClassName: UnicodeString; override;
  22683. class function Cast(const Intf: IJSObject): IJSPannerOptions;
  22684. property panningModel: TPanningModelType read _GetpanningModel write _SetpanningModel;
  22685. property distanceModel: TDistanceModelType read _GetdistanceModel write _SetdistanceModel;
  22686. property positionX: Single read _GetpositionX write _SetpositionX;
  22687. property positionY: Single read _GetpositionY write _SetpositionY;
  22688. property positionZ: Single read _GetpositionZ write _SetpositionZ;
  22689. property orientationX: Single read _GetorientationX write _SetorientationX;
  22690. property orientationY: Single read _GetorientationY write _SetorientationY;
  22691. property orientationZ: Single read _GetorientationZ write _SetorientationZ;
  22692. property refDistance: Double read _GetrefDistance write _SetrefDistance;
  22693. property maxDistance: Double read _GetmaxDistance write _SetmaxDistance;
  22694. property rolloffFactor: Double read _GetrolloffFactor write _SetrolloffFactor;
  22695. property coneInnerAngle: Double read _GetconeInnerAngle write _SetconeInnerAngle;
  22696. property coneOuterAngle: Double read _GetconeOuterAngle write _SetconeOuterAngle;
  22697. property coneOuterGain: Double read _GetconeOuterGain write _SetconeOuterGain;
  22698. end;
  22699. { --------------------------------------------------------------------
  22700. TJSPaymentDetailsInit
  22701. --------------------------------------------------------------------}
  22702. TJSPaymentDetailsInitRec = record
  22703. id: UnicodeString;
  22704. total: TJSPaymentItem;
  22705. displayItems: TJSPaymentItemDynArray;
  22706. shippingOptions: TJSPaymentShippingOptionDynArray;
  22707. modifiers: TJSPaymentDetailsModifierDynArray;
  22708. end;
  22709. IJSPaymentDetailsInit = interface(IJSPaymentDetailsBase)
  22710. ['{190D9D5F-0F7A-36AA-8D0D-CD846D68234D}']
  22711. function _Getid: UnicodeString;
  22712. function _Gettotal: TJSPaymentItem;
  22713. procedure _Setid(const aValue: UnicodeString);
  22714. procedure _Settotal(const aValue: TJSPaymentItem);
  22715. property id: UnicodeString read _Getid write _Setid;
  22716. property total: TJSPaymentItem read _Gettotal write _Settotal;
  22717. end;
  22718. TJSPaymentDetailsInit = class(TJSPaymentDetailsBase,IJSPaymentDetailsInit)
  22719. Protected
  22720. function _Getid: UnicodeString;
  22721. function _Gettotal: TJSPaymentItem;
  22722. procedure _Setid(const aValue: UnicodeString);
  22723. procedure _Settotal(const aValue: TJSPaymentItem);
  22724. Public
  22725. class function JSClassName: UnicodeString; override;
  22726. class function Cast(const Intf: IJSObject): IJSPaymentDetailsInit;
  22727. property id: UnicodeString read _Getid write _Setid;
  22728. property total: TJSPaymentItem read _Gettotal write _Settotal;
  22729. end;
  22730. { --------------------------------------------------------------------
  22731. TJSPaymentDetailsUpdate
  22732. --------------------------------------------------------------------}
  22733. TJSPaymentDetailsUpdateRec = record
  22734. error: UnicodeString;
  22735. shippingAddressErrors: TJSAddressErrors;
  22736. payerErrors: TJSPayerErrors;
  22737. paymentMethodErrors: IJSObject;
  22738. total: TJSPaymentItem;
  22739. displayItems: TJSPaymentItemDynArray;
  22740. shippingOptions: TJSPaymentShippingOptionDynArray;
  22741. modifiers: TJSPaymentDetailsModifierDynArray;
  22742. end;
  22743. IJSPaymentDetailsUpdate = interface(IJSPaymentDetailsBase)
  22744. ['{D3C490CC-AE60-3672-BF78-7CDD1E2092AF}']
  22745. function _Geterror: UnicodeString;
  22746. function _GetshippingAddressErrors: TJSAddressErrors;
  22747. function _GetpayerErrors: TJSPayerErrors;
  22748. function _GetpaymentMethodErrors: IJSObject;
  22749. function _Gettotal: TJSPaymentItem;
  22750. procedure _Seterror(const aValue: UnicodeString);
  22751. procedure _SetshippingAddressErrors(const aValue: TJSAddressErrors);
  22752. procedure _SetpayerErrors(const aValue: TJSPayerErrors);
  22753. procedure _SetpaymentMethodErrors(const aValue: IJSObject);
  22754. procedure _Settotal(const aValue: TJSPaymentItem);
  22755. property error: UnicodeString read _Geterror write _Seterror;
  22756. property shippingAddressErrors: TJSAddressErrors read _GetshippingAddressErrors write _SetshippingAddressErrors;
  22757. property payerErrors: TJSPayerErrors read _GetpayerErrors write _SetpayerErrors;
  22758. property paymentMethodErrors: IJSObject read _GetpaymentMethodErrors write _SetpaymentMethodErrors;
  22759. property total: TJSPaymentItem read _Gettotal write _Settotal;
  22760. end;
  22761. TJSPaymentDetailsUpdate = class(TJSPaymentDetailsBase,IJSPaymentDetailsUpdate)
  22762. Protected
  22763. function _Geterror: UnicodeString;
  22764. function _GetshippingAddressErrors: TJSAddressErrors;
  22765. function _GetpayerErrors: TJSPayerErrors;
  22766. function _GetpaymentMethodErrors: IJSObject;
  22767. function _Gettotal: TJSPaymentItem;
  22768. procedure _Seterror(const aValue: UnicodeString);
  22769. procedure _SetshippingAddressErrors(const aValue: TJSAddressErrors);
  22770. procedure _SetpayerErrors(const aValue: TJSPayerErrors);
  22771. procedure _SetpaymentMethodErrors(const aValue: IJSObject);
  22772. procedure _Settotal(const aValue: TJSPaymentItem);
  22773. Public
  22774. class function JSClassName: UnicodeString; override;
  22775. class function Cast(const Intf: IJSObject): IJSPaymentDetailsUpdate;
  22776. property error: UnicodeString read _Geterror write _Seterror;
  22777. property shippingAddressErrors: TJSAddressErrors read _GetshippingAddressErrors write _SetshippingAddressErrors;
  22778. property payerErrors: TJSPayerErrors read _GetpayerErrors write _SetpayerErrors;
  22779. property paymentMethodErrors: IJSObject read _GetpaymentMethodErrors write _SetpaymentMethodErrors;
  22780. property total: TJSPaymentItem read _Gettotal write _Settotal;
  22781. end;
  22782. { --------------------------------------------------------------------
  22783. TJSPaymentRequestUpdateEventInit
  22784. --------------------------------------------------------------------}
  22785. TJSPaymentRequestUpdateEventInitRec = record
  22786. bubbles: Boolean;
  22787. cancelable: Boolean;
  22788. composed: Boolean;
  22789. end;
  22790. IJSPaymentRequestUpdateEventInit = interface(IJSEventInit)
  22791. ['{97C19EAF-AC14-3165-B25B-C18A9DEF2B1A}']
  22792. end;
  22793. TJSPaymentRequestUpdateEventInit = class(TJSEventInit,IJSPaymentRequestUpdateEventInit)
  22794. Protected
  22795. Public
  22796. class function JSClassName: UnicodeString; override;
  22797. class function Cast(const Intf: IJSObject): IJSPaymentRequestUpdateEventInit;
  22798. end;
  22799. { --------------------------------------------------------------------
  22800. TJSPerformanceEntryEventInit
  22801. --------------------------------------------------------------------}
  22802. TJSPerformanceEntryEventInitRec = record
  22803. name: UnicodeString;
  22804. entryType: UnicodeString;
  22805. startTime: TDOMHighResTimeStamp;
  22806. duration: TDOMHighResTimeStamp;
  22807. epoch: Double;
  22808. origin: UnicodeString;
  22809. bubbles: Boolean;
  22810. cancelable: Boolean;
  22811. composed: Boolean;
  22812. end;
  22813. IJSPerformanceEntryEventInit = interface(IJSEventInit)
  22814. ['{45EC5243-E903-3F51-B379-E99996F84A22}']
  22815. function _Getname: UnicodeString;
  22816. function _GetentryType: UnicodeString;
  22817. function _GetstartTime: TDOMHighResTimeStamp;
  22818. function _Getduration: TDOMHighResTimeStamp;
  22819. function _Getepoch: Double;
  22820. function _Getorigin: UnicodeString;
  22821. procedure _Setname(const aValue: UnicodeString);
  22822. procedure _SetentryType(const aValue: UnicodeString);
  22823. procedure _SetstartTime(const aValue: TDOMHighResTimeStamp);
  22824. procedure _Setduration(const aValue: TDOMHighResTimeStamp);
  22825. procedure _Setepoch(const aValue: Double);
  22826. procedure _Setorigin(const aValue: UnicodeString);
  22827. property name: UnicodeString read _Getname write _Setname;
  22828. property entryType: UnicodeString read _GetentryType write _SetentryType;
  22829. property startTime: TDOMHighResTimeStamp read _GetstartTime write _SetstartTime;
  22830. property duration: TDOMHighResTimeStamp read _Getduration write _Setduration;
  22831. property epoch: Double read _Getepoch write _Setepoch;
  22832. property origin: UnicodeString read _Getorigin write _Setorigin;
  22833. end;
  22834. TJSPerformanceEntryEventInit = class(TJSEventInit,IJSPerformanceEntryEventInit)
  22835. Protected
  22836. function _Getname: UnicodeString;
  22837. function _GetentryType: UnicodeString;
  22838. function _GetstartTime: TDOMHighResTimeStamp;
  22839. function _Getduration: TDOMHighResTimeStamp;
  22840. function _Getepoch: Double;
  22841. function _Getorigin: UnicodeString;
  22842. procedure _Setname(const aValue: UnicodeString);
  22843. procedure _SetentryType(const aValue: UnicodeString);
  22844. procedure _SetstartTime(const aValue: TDOMHighResTimeStamp);
  22845. procedure _Setduration(const aValue: TDOMHighResTimeStamp);
  22846. procedure _Setepoch(const aValue: Double);
  22847. procedure _Setorigin(const aValue: UnicodeString);
  22848. Public
  22849. class function JSClassName: UnicodeString; override;
  22850. class function Cast(const Intf: IJSObject): IJSPerformanceEntryEventInit;
  22851. property name: UnicodeString read _Getname write _Setname;
  22852. property entryType: UnicodeString read _GetentryType write _SetentryType;
  22853. property startTime: TDOMHighResTimeStamp read _GetstartTime write _SetstartTime;
  22854. property duration: TDOMHighResTimeStamp read _Getduration write _Setduration;
  22855. property epoch: Double read _Getepoch write _Setepoch;
  22856. property origin: UnicodeString read _Getorigin write _Setorigin;
  22857. end;
  22858. { --------------------------------------------------------------------
  22859. TJSPeriodicWaveOptions
  22860. --------------------------------------------------------------------}
  22861. TJSPeriodicWaveOptionsRec = record
  22862. real: TSingleDynArray;
  22863. imag: TSingleDynArray;
  22864. disableNormalization: Boolean;
  22865. end;
  22866. IJSPeriodicWaveOptions = interface(IJSPeriodicWaveConstraints)
  22867. ['{A4787999-E448-3AA2-ACA2-48203F7106E7}']
  22868. function _Getreal: TSingleDynArray;
  22869. function _Getimag: TSingleDynArray;
  22870. procedure _Setreal(const aValue: TSingleDynArray);
  22871. procedure _Setimag(const aValue: TSingleDynArray);
  22872. property real: TSingleDynArray read _Getreal write _Setreal;
  22873. property imag: TSingleDynArray read _Getimag write _Setimag;
  22874. end;
  22875. TJSPeriodicWaveOptions = class(TJSPeriodicWaveConstraints,IJSPeriodicWaveOptions)
  22876. Protected
  22877. function _Getreal: TSingleDynArray;
  22878. function _Getimag: TSingleDynArray;
  22879. procedure _Setreal(const aValue: TSingleDynArray);
  22880. procedure _Setimag(const aValue: TSingleDynArray);
  22881. Public
  22882. class function JSClassName: UnicodeString; override;
  22883. class function Cast(const Intf: IJSObject): IJSPeriodicWaveOptions;
  22884. property real: TSingleDynArray read _Getreal write _Setreal;
  22885. property imag: TSingleDynArray read _Getimag write _Setimag;
  22886. end;
  22887. { --------------------------------------------------------------------
  22888. TJSMidiPermissionDescriptor
  22889. --------------------------------------------------------------------}
  22890. TJSMidiPermissionDescriptorRec = record
  22891. sysex: Boolean;
  22892. name: TPermissionName;
  22893. end;
  22894. IJSMidiPermissionDescriptor = interface(IJSPermissionDescriptor)
  22895. ['{276424DF-82A8-3C4A-8CD8-7526B65E4554}']
  22896. function _Getsysex: Boolean;
  22897. procedure _Setsysex(const aValue: Boolean);
  22898. property sysex: Boolean read _Getsysex write _Setsysex;
  22899. end;
  22900. TJSMidiPermissionDescriptor = class(TJSPermissionDescriptor,IJSMidiPermissionDescriptor)
  22901. Protected
  22902. function _Getsysex: Boolean;
  22903. procedure _Setsysex(const aValue: Boolean);
  22904. Public
  22905. class function JSClassName: UnicodeString; override;
  22906. class function Cast(const Intf: IJSObject): IJSMidiPermissionDescriptor;
  22907. property sysex: Boolean read _Getsysex write _Setsysex;
  22908. end;
  22909. { --------------------------------------------------------------------
  22910. TJSPopStateEventInit
  22911. --------------------------------------------------------------------}
  22912. TJSPopStateEventInitRec = record
  22913. state: Variant;
  22914. bubbles: Boolean;
  22915. cancelable: Boolean;
  22916. composed: Boolean;
  22917. end;
  22918. IJSPopStateEventInit = interface(IJSEventInit)
  22919. ['{9DFEC70F-26FE-31F0-AFE6-8523FAA41E56}']
  22920. function _Getstate: Variant;
  22921. procedure _Setstate(const aValue: Variant);
  22922. property state: Variant read _Getstate write _Setstate;
  22923. end;
  22924. TJSPopStateEventInit = class(TJSEventInit,IJSPopStateEventInit)
  22925. Protected
  22926. function _Getstate: Variant;
  22927. procedure _Setstate(const aValue: Variant);
  22928. Public
  22929. class function JSClassName: UnicodeString; override;
  22930. class function Cast(const Intf: IJSObject): IJSPopStateEventInit;
  22931. property state: Variant read _Getstate write _Setstate;
  22932. end;
  22933. { --------------------------------------------------------------------
  22934. TJSPopupBlockedEventInit
  22935. --------------------------------------------------------------------}
  22936. TJSPopupBlockedEventInitRec = record
  22937. requestingWindow: TJSWindow;
  22938. popupWindowURI: TJSURI;
  22939. popupWindowName: UnicodeString;
  22940. popupWindowFeatures: UnicodeString;
  22941. bubbles: Boolean;
  22942. cancelable: Boolean;
  22943. composed: Boolean;
  22944. end;
  22945. IJSPopupBlockedEventInit = interface(IJSEventInit)
  22946. ['{338FF432-5E18-3DED-AC8C-EC6D5DBD5E5B}']
  22947. function _GetrequestingWindow: IJSWindow;
  22948. function _GetpopupWindowURI: IJSURI;
  22949. function _GetpopupWindowName: UnicodeString;
  22950. function _GetpopupWindowFeatures: UnicodeString;
  22951. procedure _SetrequestingWindow(const aValue: IJSWindow);
  22952. procedure _SetpopupWindowURI(const aValue: IJSURI);
  22953. procedure _SetpopupWindowName(const aValue: UnicodeString);
  22954. procedure _SetpopupWindowFeatures(const aValue: UnicodeString);
  22955. property requestingWindow: IJSWindow read _GetrequestingWindow write _SetrequestingWindow;
  22956. property popupWindowURI: IJSURI read _GetpopupWindowURI write _SetpopupWindowURI;
  22957. property popupWindowName: UnicodeString read _GetpopupWindowName write _SetpopupWindowName;
  22958. property popupWindowFeatures: UnicodeString read _GetpopupWindowFeatures write _SetpopupWindowFeatures;
  22959. end;
  22960. TJSPopupBlockedEventInit = class(TJSEventInit,IJSPopupBlockedEventInit)
  22961. Protected
  22962. function _GetrequestingWindow: IJSWindow;
  22963. function _GetpopupWindowURI: IJSURI;
  22964. function _GetpopupWindowName: UnicodeString;
  22965. function _GetpopupWindowFeatures: UnicodeString;
  22966. procedure _SetrequestingWindow(const aValue: IJSWindow);
  22967. procedure _SetpopupWindowURI(const aValue: IJSURI);
  22968. procedure _SetpopupWindowName(const aValue: UnicodeString);
  22969. procedure _SetpopupWindowFeatures(const aValue: UnicodeString);
  22970. Public
  22971. class function JSClassName: UnicodeString; override;
  22972. class function Cast(const Intf: IJSObject): IJSPopupBlockedEventInit;
  22973. property requestingWindow: IJSWindow read _GetrequestingWindow write _SetrequestingWindow;
  22974. property popupWindowURI: IJSURI read _GetpopupWindowURI write _SetpopupWindowURI;
  22975. property popupWindowName: UnicodeString read _GetpopupWindowName write _SetpopupWindowName;
  22976. property popupWindowFeatures: UnicodeString read _GetpopupWindowFeatures write _SetpopupWindowFeatures;
  22977. end;
  22978. { --------------------------------------------------------------------
  22979. TJSPositionStateEventInit
  22980. --------------------------------------------------------------------}
  22981. TJSPositionStateEventInitRec = record
  22982. duration: Double;
  22983. playbackRate: Double;
  22984. position: Double;
  22985. bubbles: Boolean;
  22986. cancelable: Boolean;
  22987. composed: Boolean;
  22988. end;
  22989. IJSPositionStateEventInit = interface(IJSEventInit)
  22990. ['{0692F3FF-16D2-31FF-A298-B90E94782D35}']
  22991. function _Getduration: Double;
  22992. function _GetplaybackRate: Double;
  22993. function _Getposition: Double;
  22994. procedure _Setduration(const aValue: Double);
  22995. procedure _SetplaybackRate(const aValue: Double);
  22996. procedure _Setposition(const aValue: Double);
  22997. property duration: Double read _Getduration write _Setduration;
  22998. property playbackRate: Double read _GetplaybackRate write _SetplaybackRate;
  22999. property position: Double read _Getposition write _Setposition;
  23000. end;
  23001. TJSPositionStateEventInit = class(TJSEventInit,IJSPositionStateEventInit)
  23002. Protected
  23003. function _Getduration: Double;
  23004. function _GetplaybackRate: Double;
  23005. function _Getposition: Double;
  23006. procedure _Setduration(const aValue: Double);
  23007. procedure _SetplaybackRate(const aValue: Double);
  23008. procedure _Setposition(const aValue: Double);
  23009. Public
  23010. class function JSClassName: UnicodeString; override;
  23011. class function Cast(const Intf: IJSObject): IJSPositionStateEventInit;
  23012. property duration: Double read _Getduration write _Setduration;
  23013. property playbackRate: Double read _GetplaybackRate write _SetplaybackRate;
  23014. property position: Double read _Getposition write _Setposition;
  23015. end;
  23016. { --------------------------------------------------------------------
  23017. TJSProgressEventInit
  23018. --------------------------------------------------------------------}
  23019. TJSProgressEventInitRec = record
  23020. lengthComputable: Boolean;
  23021. loaded: QWord;
  23022. total: QWord;
  23023. bubbles: Boolean;
  23024. cancelable: Boolean;
  23025. composed: Boolean;
  23026. end;
  23027. IJSProgressEventInit = interface(IJSEventInit)
  23028. ['{D5279911-958E-33D5-AACA-C7C4A66090F5}']
  23029. function _GetlengthComputable: Boolean;
  23030. function _Getloaded: QWord;
  23031. function _Gettotal: QWord;
  23032. procedure _SetlengthComputable(const aValue: Boolean);
  23033. procedure _Setloaded(const aValue: QWord);
  23034. procedure _Settotal(const aValue: QWord);
  23035. property lengthComputable: Boolean read _GetlengthComputable write _SetlengthComputable;
  23036. property loaded: QWord read _Getloaded write _Setloaded;
  23037. property total: QWord read _Gettotal write _Settotal;
  23038. end;
  23039. TJSProgressEventInit = class(TJSEventInit,IJSProgressEventInit)
  23040. Protected
  23041. function _GetlengthComputable: Boolean;
  23042. function _Getloaded: QWord;
  23043. function _Gettotal: QWord;
  23044. procedure _SetlengthComputable(const aValue: Boolean);
  23045. procedure _Setloaded(const aValue: QWord);
  23046. procedure _Settotal(const aValue: QWord);
  23047. Public
  23048. class function JSClassName: UnicodeString; override;
  23049. class function Cast(const Intf: IJSObject): IJSProgressEventInit;
  23050. property lengthComputable: Boolean read _GetlengthComputable write _SetlengthComputable;
  23051. property loaded: QWord read _Getloaded write _Setloaded;
  23052. property total: QWord read _Gettotal write _Settotal;
  23053. end;
  23054. { --------------------------------------------------------------------
  23055. TJSPromiseRejectionEventInit
  23056. --------------------------------------------------------------------}
  23057. TJSPromiseRejectionEventInitRec = record
  23058. promise: IJSPromise;
  23059. reason: Variant;
  23060. bubbles: Boolean;
  23061. cancelable: Boolean;
  23062. composed: Boolean;
  23063. end;
  23064. IJSPromiseRejectionEventInit = interface(IJSEventInit)
  23065. ['{7D24DDCF-FB87-35E2-8E2F-A42BF0AFE686}']
  23066. function _Getpromise: IJSPromise;
  23067. function _Getreason: Variant;
  23068. procedure _Setpromise(const aValue: IJSPromise);
  23069. procedure _Setreason(const aValue: Variant);
  23070. property promise: IJSPromise read _Getpromise write _Setpromise;
  23071. property reason: Variant read _Getreason write _Setreason;
  23072. end;
  23073. TJSPromiseRejectionEventInit = class(TJSEventInit,IJSPromiseRejectionEventInit)
  23074. Protected
  23075. function _Getpromise: IJSPromise;
  23076. function _Getreason: Variant;
  23077. procedure _Setpromise(const aValue: IJSPromise);
  23078. procedure _Setreason(const aValue: Variant);
  23079. Public
  23080. class function JSClassName: UnicodeString; override;
  23081. class function Cast(const Intf: IJSObject): IJSPromiseRejectionEventInit;
  23082. property promise: IJSPromise read _Getpromise write _Setpromise;
  23083. property reason: Variant read _Getreason write _Setreason;
  23084. end;
  23085. { --------------------------------------------------------------------
  23086. TJSRTCDataChannelEventInit
  23087. --------------------------------------------------------------------}
  23088. TJSRTCDataChannelEventInitRec = record
  23089. channel: TJSRTCDataChannel;
  23090. bubbles: Boolean;
  23091. cancelable: Boolean;
  23092. composed: Boolean;
  23093. end;
  23094. IJSRTCDataChannelEventInit = interface(IJSEventInit)
  23095. ['{43C8C36B-8890-3EC9-8E8A-C2C5CEA21890}']
  23096. function _Getchannel: IJSRTCDataChannel;
  23097. procedure _Setchannel(const aValue: IJSRTCDataChannel);
  23098. property channel: IJSRTCDataChannel read _Getchannel write _Setchannel;
  23099. end;
  23100. TJSRTCDataChannelEventInit = class(TJSEventInit,IJSRTCDataChannelEventInit)
  23101. Protected
  23102. function _Getchannel: IJSRTCDataChannel;
  23103. procedure _Setchannel(const aValue: IJSRTCDataChannel);
  23104. Public
  23105. class function JSClassName: UnicodeString; override;
  23106. class function Cast(const Intf: IJSObject): IJSRTCDataChannelEventInit;
  23107. property channel: IJSRTCDataChannel read _Getchannel write _Setchannel;
  23108. end;
  23109. { --------------------------------------------------------------------
  23110. TJSRTCDTMFToneChangeEventInit
  23111. --------------------------------------------------------------------}
  23112. TJSRTCDTMFToneChangeEventInitRec = record
  23113. tone: UnicodeString;
  23114. bubbles: Boolean;
  23115. cancelable: Boolean;
  23116. composed: Boolean;
  23117. end;
  23118. IJSRTCDTMFToneChangeEventInit = interface(IJSEventInit)
  23119. ['{914A1D51-1CFA-37CB-9FFA-B91D15899B4B}']
  23120. function _Gettone: UnicodeString;
  23121. procedure _Settone(const aValue: UnicodeString);
  23122. property tone: UnicodeString read _Gettone write _Settone;
  23123. end;
  23124. TJSRTCDTMFToneChangeEventInit = class(TJSEventInit,IJSRTCDTMFToneChangeEventInit)
  23125. Protected
  23126. function _Gettone: UnicodeString;
  23127. procedure _Settone(const aValue: UnicodeString);
  23128. Public
  23129. class function JSClassName: UnicodeString; override;
  23130. class function Cast(const Intf: IJSObject): IJSRTCDTMFToneChangeEventInit;
  23131. property tone: UnicodeString read _Gettone write _Settone;
  23132. end;
  23133. { --------------------------------------------------------------------
  23134. TJSRTCAnswerOptions
  23135. --------------------------------------------------------------------}
  23136. TJSRTCAnswerOptionsRec = record
  23137. end;
  23138. IJSRTCAnswerOptions = interface(IJSRTCOfferAnswerOptions)
  23139. ['{F905952F-E9E0-3B5D-9432-BBAFF8523260}']
  23140. end;
  23141. TJSRTCAnswerOptions = class(TJSRTCOfferAnswerOptions,IJSRTCAnswerOptions)
  23142. Protected
  23143. Public
  23144. class function JSClassName: UnicodeString; override;
  23145. class function Cast(const Intf: IJSObject): IJSRTCAnswerOptions;
  23146. end;
  23147. { --------------------------------------------------------------------
  23148. TJSRTCOfferOptions
  23149. --------------------------------------------------------------------}
  23150. TJSRTCOfferOptionsRec = record
  23151. offerToReceiveVideo: Boolean;
  23152. offerToReceiveAudio: Boolean;
  23153. iceRestart: Boolean;
  23154. end;
  23155. IJSRTCOfferOptions = interface(IJSRTCOfferAnswerOptions)
  23156. ['{0AD82307-CD32-3D80-8F92-3DD518157BB0}']
  23157. function _GetofferToReceiveVideo: Boolean;
  23158. function _GetofferToReceiveAudio: Boolean;
  23159. function _GeticeRestart: Boolean;
  23160. procedure _SetofferToReceiveVideo(const aValue: Boolean);
  23161. procedure _SetofferToReceiveAudio(const aValue: Boolean);
  23162. procedure _SeticeRestart(const aValue: Boolean);
  23163. property offerToReceiveVideo: Boolean read _GetofferToReceiveVideo write _SetofferToReceiveVideo;
  23164. property offerToReceiveAudio: Boolean read _GetofferToReceiveAudio write _SetofferToReceiveAudio;
  23165. property iceRestart: Boolean read _GeticeRestart write _SeticeRestart;
  23166. end;
  23167. TJSRTCOfferOptions = class(TJSRTCOfferAnswerOptions,IJSRTCOfferOptions)
  23168. Protected
  23169. function _GetofferToReceiveVideo: Boolean;
  23170. function _GetofferToReceiveAudio: Boolean;
  23171. function _GeticeRestart: Boolean;
  23172. procedure _SetofferToReceiveVideo(const aValue: Boolean);
  23173. procedure _SetofferToReceiveAudio(const aValue: Boolean);
  23174. procedure _SeticeRestart(const aValue: Boolean);
  23175. Public
  23176. class function JSClassName: UnicodeString; override;
  23177. class function Cast(const Intf: IJSObject): IJSRTCOfferOptions;
  23178. property offerToReceiveVideo: Boolean read _GetofferToReceiveVideo write _SetofferToReceiveVideo;
  23179. property offerToReceiveAudio: Boolean read _GetofferToReceiveAudio write _SetofferToReceiveAudio;
  23180. property iceRestart: Boolean read _GeticeRestart write _SeticeRestart;
  23181. end;
  23182. { --------------------------------------------------------------------
  23183. TJSRTCPeerConnectionIceEventInit
  23184. --------------------------------------------------------------------}
  23185. TJSRTCPeerConnectionIceEventInitRec = record
  23186. candidate: TJSRTCIceCandidate;
  23187. bubbles: Boolean;
  23188. cancelable: Boolean;
  23189. composed: Boolean;
  23190. end;
  23191. IJSRTCPeerConnectionIceEventInit = interface(IJSEventInit)
  23192. ['{97C1B854-0FBC-3428-B715-390831AB2B1A}']
  23193. function _Getcandidate: IJSRTCIceCandidate;
  23194. procedure _Setcandidate(const aValue: IJSRTCIceCandidate);
  23195. property candidate: IJSRTCIceCandidate read _Getcandidate write _Setcandidate;
  23196. end;
  23197. TJSRTCPeerConnectionIceEventInit = class(TJSEventInit,IJSRTCPeerConnectionIceEventInit)
  23198. Protected
  23199. function _Getcandidate: IJSRTCIceCandidate;
  23200. procedure _Setcandidate(const aValue: IJSRTCIceCandidate);
  23201. Public
  23202. class function JSClassName: UnicodeString; override;
  23203. class function Cast(const Intf: IJSObject): IJSRTCPeerConnectionIceEventInit;
  23204. property candidate: IJSRTCIceCandidate read _Getcandidate write _Setcandidate;
  23205. end;
  23206. { --------------------------------------------------------------------
  23207. TJSRTCRtpCodecCapability
  23208. --------------------------------------------------------------------}
  23209. TJSRTCRtpCodecCapabilityRec = record
  23210. mimeType: UnicodeString;
  23211. clockRate: Cardinal;
  23212. channels: Word;
  23213. sdpFmtpLine: UnicodeString;
  23214. end;
  23215. IJSRTCRtpCodecCapability = interface(IJSRTCRtpCodec)
  23216. ['{86F22628-FC9C-389F-A766-23648F813218}']
  23217. end;
  23218. TJSRTCRtpCodecCapability = class(TJSRTCRtpCodec,IJSRTCRtpCodecCapability)
  23219. Protected
  23220. Public
  23221. class function JSClassName: UnicodeString; override;
  23222. class function Cast(const Intf: IJSObject): IJSRTCRtpCodecCapability;
  23223. end;
  23224. { --------------------------------------------------------------------
  23225. TJSRTCRtpSendParameters
  23226. --------------------------------------------------------------------}
  23227. TJSRTCRtpSendParametersRec = record
  23228. transactionId: UnicodeString;
  23229. encodings: TJSRTCRtpEncodingParametersDynArray;
  23230. headerExtensions: TJSRTCRtpHeaderExtensionParametersDynArray;
  23231. rtcp: TJSRTCRtcpParameters;
  23232. codecs: TJSRTCRtpCodecParametersDynArray;
  23233. end;
  23234. IJSRTCRtpSendParameters = interface(IJSRTCRtpParameters)
  23235. ['{EFA59527-A632-3DAD-88EB-885D4C98B176}']
  23236. function _GettransactionId: UnicodeString;
  23237. function _Getencodings: TJSRTCRtpEncodingParametersDynArray;
  23238. procedure _SettransactionId(const aValue: UnicodeString);
  23239. procedure _Setencodings(const aValue: TJSRTCRtpEncodingParametersDynArray);
  23240. property transactionId: UnicodeString read _GettransactionId write _SettransactionId;
  23241. property encodings: TJSRTCRtpEncodingParametersDynArray read _Getencodings write _Setencodings;
  23242. end;
  23243. TJSRTCRtpSendParameters = class(TJSRTCRtpParameters,IJSRTCRtpSendParameters)
  23244. Protected
  23245. function _GettransactionId: UnicodeString;
  23246. function _Getencodings: TJSRTCRtpEncodingParametersDynArray;
  23247. procedure _SettransactionId(const aValue: UnicodeString);
  23248. procedure _Setencodings(const aValue: TJSRTCRtpEncodingParametersDynArray);
  23249. Public
  23250. class function JSClassName: UnicodeString; override;
  23251. class function Cast(const Intf: IJSObject): IJSRTCRtpSendParameters;
  23252. property transactionId: UnicodeString read _GettransactionId write _SettransactionId;
  23253. property encodings: TJSRTCRtpEncodingParametersDynArray read _Getencodings write _Setencodings;
  23254. end;
  23255. { --------------------------------------------------------------------
  23256. TJSRTCRtpSynchronizationSource
  23257. --------------------------------------------------------------------}
  23258. TJSRTCRtpSynchronizationSourceRec = record
  23259. voiceActivityFlag: Boolean;
  23260. timestamp: TDOMHighResTimeStamp;
  23261. source: Cardinal;
  23262. audioLevel: Double;
  23263. rtpTimestamp: Cardinal;
  23264. end;
  23265. IJSRTCRtpSynchronizationSource = interface(IJSRTCRtpContributingSource)
  23266. ['{48495131-A42E-38AD-8391-7008ECC2DFE4}']
  23267. function _GetvoiceActivityFlag: Boolean;
  23268. procedure _SetvoiceActivityFlag(const aValue: Boolean);
  23269. property voiceActivityFlag: Boolean read _GetvoiceActivityFlag write _SetvoiceActivityFlag;
  23270. end;
  23271. TJSRTCRtpSynchronizationSource = class(TJSRTCRtpContributingSource,IJSRTCRtpSynchronizationSource)
  23272. Protected
  23273. function _GetvoiceActivityFlag: Boolean;
  23274. procedure _SetvoiceActivityFlag(const aValue: Boolean);
  23275. Public
  23276. class function JSClassName: UnicodeString; override;
  23277. class function Cast(const Intf: IJSObject): IJSRTCRtpSynchronizationSource;
  23278. property voiceActivityFlag: Boolean read _GetvoiceActivityFlag write _SetvoiceActivityFlag;
  23279. end;
  23280. { --------------------------------------------------------------------
  23281. TJSRTCRtpStreamStats
  23282. --------------------------------------------------------------------}
  23283. TJSRTCRtpStreamStatsRec = record
  23284. ssrc: Cardinal;
  23285. kind: UnicodeString;
  23286. mediaType: UnicodeString;
  23287. transportId: UnicodeString;
  23288. codecId: UnicodeString;
  23289. timestamp: TDOMHighResTimeStamp;
  23290. type_: TRTCStatsType;
  23291. id: UnicodeString;
  23292. end;
  23293. IJSRTCRtpStreamStats = interface(IJSRTCStats)
  23294. ['{11C760E9-B573-3993-A1A4-19B1498419D6}']
  23295. function _Getssrc: Cardinal;
  23296. function _Getkind: UnicodeString;
  23297. function _GetmediaType: UnicodeString;
  23298. function _GettransportId: UnicodeString;
  23299. function _GetcodecId: UnicodeString;
  23300. procedure _Setssrc(const aValue: Cardinal);
  23301. procedure _Setkind(const aValue: UnicodeString);
  23302. procedure _SetmediaType(const aValue: UnicodeString);
  23303. procedure _SettransportId(const aValue: UnicodeString);
  23304. procedure _SetcodecId(const aValue: UnicodeString);
  23305. property ssrc: Cardinal read _Getssrc write _Setssrc;
  23306. property kind: UnicodeString read _Getkind write _Setkind;
  23307. property mediaType: UnicodeString read _GetmediaType write _SetmediaType;
  23308. property transportId: UnicodeString read _GettransportId write _SettransportId;
  23309. property codecId: UnicodeString read _GetcodecId write _SetcodecId;
  23310. end;
  23311. TJSRTCRtpStreamStats = class(TJSRTCStats,IJSRTCRtpStreamStats)
  23312. Protected
  23313. function _Getssrc: Cardinal;
  23314. function _Getkind: UnicodeString;
  23315. function _GetmediaType: UnicodeString;
  23316. function _GettransportId: UnicodeString;
  23317. function _GetcodecId: UnicodeString;
  23318. procedure _Setssrc(const aValue: Cardinal);
  23319. procedure _Setkind(const aValue: UnicodeString);
  23320. procedure _SetmediaType(const aValue: UnicodeString);
  23321. procedure _SettransportId(const aValue: UnicodeString);
  23322. procedure _SetcodecId(const aValue: UnicodeString);
  23323. Public
  23324. class function JSClassName: UnicodeString; override;
  23325. class function Cast(const Intf: IJSObject): IJSRTCRtpStreamStats;
  23326. property ssrc: Cardinal read _Getssrc write _Setssrc;
  23327. property kind: UnicodeString read _Getkind write _Setkind;
  23328. property mediaType: UnicodeString read _GetmediaType write _SetmediaType;
  23329. property transportId: UnicodeString read _GettransportId write _SettransportId;
  23330. property codecId: UnicodeString read _GetcodecId write _SetcodecId;
  23331. end;
  23332. { --------------------------------------------------------------------
  23333. TJSRTCCodecStats
  23334. --------------------------------------------------------------------}
  23335. TJSRTCCodecStatsRec = record
  23336. payloadType: Cardinal;
  23337. codecType: TRTCCodecType;
  23338. transportId: UnicodeString;
  23339. mimeType: UnicodeString;
  23340. clockRate: Cardinal;
  23341. channels: Cardinal;
  23342. sdpFmtpLine: UnicodeString;
  23343. timestamp: TDOMHighResTimeStamp;
  23344. type_: TRTCStatsType;
  23345. id: UnicodeString;
  23346. end;
  23347. IJSRTCCodecStats = interface(IJSRTCStats)
  23348. ['{6FAF2024-5E6D-3323-A4B7-C22670BB9B5D}']
  23349. function _GetpayloadType: Cardinal;
  23350. function _GetcodecType: TRTCCodecType;
  23351. function _GettransportId: UnicodeString;
  23352. function _GetmimeType: UnicodeString;
  23353. function _GetclockRate: Cardinal;
  23354. function _Getchannels: Cardinal;
  23355. function _GetsdpFmtpLine: UnicodeString;
  23356. procedure _SetpayloadType(const aValue: Cardinal);
  23357. procedure _SetcodecType(const aValue: TRTCCodecType);
  23358. procedure _SettransportId(const aValue: UnicodeString);
  23359. procedure _SetmimeType(const aValue: UnicodeString);
  23360. procedure _SetclockRate(const aValue: Cardinal);
  23361. procedure _Setchannels(const aValue: Cardinal);
  23362. procedure _SetsdpFmtpLine(const aValue: UnicodeString);
  23363. property payloadType: Cardinal read _GetpayloadType write _SetpayloadType;
  23364. property codecType: TRTCCodecType read _GetcodecType write _SetcodecType;
  23365. property transportId: UnicodeString read _GettransportId write _SettransportId;
  23366. property mimeType: UnicodeString read _GetmimeType write _SetmimeType;
  23367. property clockRate: Cardinal read _GetclockRate write _SetclockRate;
  23368. property channels: Cardinal read _Getchannels write _Setchannels;
  23369. property sdpFmtpLine: UnicodeString read _GetsdpFmtpLine write _SetsdpFmtpLine;
  23370. end;
  23371. TJSRTCCodecStats = class(TJSRTCStats,IJSRTCCodecStats)
  23372. Protected
  23373. function _GetpayloadType: Cardinal;
  23374. function _GetcodecType: TRTCCodecType;
  23375. function _GettransportId: UnicodeString;
  23376. function _GetmimeType: UnicodeString;
  23377. function _GetclockRate: Cardinal;
  23378. function _Getchannels: Cardinal;
  23379. function _GetsdpFmtpLine: UnicodeString;
  23380. procedure _SetpayloadType(const aValue: Cardinal);
  23381. procedure _SetcodecType(const aValue: TRTCCodecType);
  23382. procedure _SettransportId(const aValue: UnicodeString);
  23383. procedure _SetmimeType(const aValue: UnicodeString);
  23384. procedure _SetclockRate(const aValue: Cardinal);
  23385. procedure _Setchannels(const aValue: Cardinal);
  23386. procedure _SetsdpFmtpLine(const aValue: UnicodeString);
  23387. Public
  23388. class function JSClassName: UnicodeString; override;
  23389. class function Cast(const Intf: IJSObject): IJSRTCCodecStats;
  23390. property payloadType: Cardinal read _GetpayloadType write _SetpayloadType;
  23391. property codecType: TRTCCodecType read _GetcodecType write _SetcodecType;
  23392. property transportId: UnicodeString read _GettransportId write _SettransportId;
  23393. property mimeType: UnicodeString read _GetmimeType write _SetmimeType;
  23394. property clockRate: Cardinal read _GetclockRate write _SetclockRate;
  23395. property channels: Cardinal read _Getchannels write _Setchannels;
  23396. property sdpFmtpLine: UnicodeString read _GetsdpFmtpLine write _SetsdpFmtpLine;
  23397. end;
  23398. { --------------------------------------------------------------------
  23399. TJSRTCMediaSourceStats
  23400. --------------------------------------------------------------------}
  23401. TJSRTCMediaSourceStatsRec = record
  23402. trackIdentifier: UnicodeString;
  23403. kind: UnicodeString;
  23404. timestamp: TDOMHighResTimeStamp;
  23405. type_: TRTCStatsType;
  23406. id: UnicodeString;
  23407. end;
  23408. IJSRTCMediaSourceStats = interface(IJSRTCStats)
  23409. ['{8F5C9056-D190-3EF1-9828-73F81B1CB7B3}']
  23410. function _GettrackIdentifier: UnicodeString;
  23411. function _Getkind: UnicodeString;
  23412. procedure _SettrackIdentifier(const aValue: UnicodeString);
  23413. procedure _Setkind(const aValue: UnicodeString);
  23414. property trackIdentifier: UnicodeString read _GettrackIdentifier write _SettrackIdentifier;
  23415. property kind: UnicodeString read _Getkind write _Setkind;
  23416. end;
  23417. TJSRTCMediaSourceStats = class(TJSRTCStats,IJSRTCMediaSourceStats)
  23418. Protected
  23419. function _GettrackIdentifier: UnicodeString;
  23420. function _Getkind: UnicodeString;
  23421. procedure _SettrackIdentifier(const aValue: UnicodeString);
  23422. procedure _Setkind(const aValue: UnicodeString);
  23423. Public
  23424. class function JSClassName: UnicodeString; override;
  23425. class function Cast(const Intf: IJSObject): IJSRTCMediaSourceStats;
  23426. property trackIdentifier: UnicodeString read _GettrackIdentifier write _SettrackIdentifier;
  23427. property kind: UnicodeString read _Getkind write _Setkind;
  23428. end;
  23429. { --------------------------------------------------------------------
  23430. TJSRTCPeerConnectionStats
  23431. --------------------------------------------------------------------}
  23432. TJSRTCPeerConnectionStatsRec = record
  23433. dataChannelsOpened: Cardinal;
  23434. dataChannelsClosed: Cardinal;
  23435. timestamp: TDOMHighResTimeStamp;
  23436. type_: TRTCStatsType;
  23437. id: UnicodeString;
  23438. end;
  23439. IJSRTCPeerConnectionStats = interface(IJSRTCStats)
  23440. ['{5A20B418-FF44-3463-A196-48924915FC9F}']
  23441. function _GetdataChannelsOpened: Cardinal;
  23442. function _GetdataChannelsClosed: Cardinal;
  23443. procedure _SetdataChannelsOpened(const aValue: Cardinal);
  23444. procedure _SetdataChannelsClosed(const aValue: Cardinal);
  23445. property dataChannelsOpened: Cardinal read _GetdataChannelsOpened write _SetdataChannelsOpened;
  23446. property dataChannelsClosed: Cardinal read _GetdataChannelsClosed write _SetdataChannelsClosed;
  23447. end;
  23448. TJSRTCPeerConnectionStats = class(TJSRTCStats,IJSRTCPeerConnectionStats)
  23449. Protected
  23450. function _GetdataChannelsOpened: Cardinal;
  23451. function _GetdataChannelsClosed: Cardinal;
  23452. procedure _SetdataChannelsOpened(const aValue: Cardinal);
  23453. procedure _SetdataChannelsClosed(const aValue: Cardinal);
  23454. Public
  23455. class function JSClassName: UnicodeString; override;
  23456. class function Cast(const Intf: IJSObject): IJSRTCPeerConnectionStats;
  23457. property dataChannelsOpened: Cardinal read _GetdataChannelsOpened write _SetdataChannelsOpened;
  23458. property dataChannelsClosed: Cardinal read _GetdataChannelsClosed write _SetdataChannelsClosed;
  23459. end;
  23460. { --------------------------------------------------------------------
  23461. TJSRTCRTPContributingSourceStats
  23462. --------------------------------------------------------------------}
  23463. TJSRTCRTPContributingSourceStatsRec = record
  23464. contributorSsrc: Cardinal;
  23465. inboundRtpStreamId: UnicodeString;
  23466. timestamp: TDOMHighResTimeStamp;
  23467. type_: TRTCStatsType;
  23468. id: UnicodeString;
  23469. end;
  23470. IJSRTCRTPContributingSourceStats = interface(IJSRTCStats)
  23471. ['{E97D5807-79D9-3429-A6FF-498E141518FC}']
  23472. function _GetcontributorSsrc: Cardinal;
  23473. function _GetinboundRtpStreamId: UnicodeString;
  23474. procedure _SetcontributorSsrc(const aValue: Cardinal);
  23475. procedure _SetinboundRtpStreamId(const aValue: UnicodeString);
  23476. property contributorSsrc: Cardinal read _GetcontributorSsrc write _SetcontributorSsrc;
  23477. property inboundRtpStreamId: UnicodeString read _GetinboundRtpStreamId write _SetinboundRtpStreamId;
  23478. end;
  23479. TJSRTCRTPContributingSourceStats = class(TJSRTCStats,IJSRTCRTPContributingSourceStats)
  23480. Protected
  23481. function _GetcontributorSsrc: Cardinal;
  23482. function _GetinboundRtpStreamId: UnicodeString;
  23483. procedure _SetcontributorSsrc(const aValue: Cardinal);
  23484. procedure _SetinboundRtpStreamId(const aValue: UnicodeString);
  23485. Public
  23486. class function JSClassName: UnicodeString; override;
  23487. class function Cast(const Intf: IJSObject): IJSRTCRTPContributingSourceStats;
  23488. property contributorSsrc: Cardinal read _GetcontributorSsrc write _SetcontributorSsrc;
  23489. property inboundRtpStreamId: UnicodeString read _GetinboundRtpStreamId write _SetinboundRtpStreamId;
  23490. end;
  23491. { --------------------------------------------------------------------
  23492. TJSRTCDataChannelStats
  23493. --------------------------------------------------------------------}
  23494. TJSRTCDataChannelStatsRec = record
  23495. label_: UnicodeString;
  23496. protocol: UnicodeString;
  23497. dataChannelIdentifier: LongInt;
  23498. state: TRTCDataChannelState;
  23499. messagesSent: Cardinal;
  23500. bytesSent: QWord;
  23501. messagesReceived: Cardinal;
  23502. bytesReceived: QWord;
  23503. timestamp: TDOMHighResTimeStamp;
  23504. type_: TRTCStatsType;
  23505. id: UnicodeString;
  23506. end;
  23507. IJSRTCDataChannelStats = interface(IJSRTCStats)
  23508. ['{29641C0A-D434-31CE-AE37-F6BAF988AB8A}']
  23509. function _Getlabel_: UnicodeString;
  23510. function _Getprotocol: UnicodeString;
  23511. function _GetdataChannelIdentifier: LongInt;
  23512. function _Getstate: TRTCDataChannelState;
  23513. function _GetmessagesSent: Cardinal;
  23514. function _GetbytesSent: QWord;
  23515. function _GetmessagesReceived: Cardinal;
  23516. function _GetbytesReceived: QWord;
  23517. procedure _Setlabel_(const aValue: UnicodeString);
  23518. procedure _Setprotocol(const aValue: UnicodeString);
  23519. procedure _SetdataChannelIdentifier(const aValue: LongInt);
  23520. procedure _Setstate(const aValue: TRTCDataChannelState);
  23521. procedure _SetmessagesSent(const aValue: Cardinal);
  23522. procedure _SetbytesSent(const aValue: QWord);
  23523. procedure _SetmessagesReceived(const aValue: Cardinal);
  23524. procedure _SetbytesReceived(const aValue: QWord);
  23525. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  23526. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  23527. property dataChannelIdentifier: LongInt read _GetdataChannelIdentifier write _SetdataChannelIdentifier;
  23528. property state: TRTCDataChannelState read _Getstate write _Setstate;
  23529. property messagesSent: Cardinal read _GetmessagesSent write _SetmessagesSent;
  23530. property bytesSent: QWord read _GetbytesSent write _SetbytesSent;
  23531. property messagesReceived: Cardinal read _GetmessagesReceived write _SetmessagesReceived;
  23532. property bytesReceived: QWord read _GetbytesReceived write _SetbytesReceived;
  23533. end;
  23534. TJSRTCDataChannelStats = class(TJSRTCStats,IJSRTCDataChannelStats)
  23535. Protected
  23536. function _Getlabel_: UnicodeString;
  23537. function _Getprotocol: UnicodeString;
  23538. function _GetdataChannelIdentifier: LongInt;
  23539. function _Getstate: TRTCDataChannelState;
  23540. function _GetmessagesSent: Cardinal;
  23541. function _GetbytesSent: QWord;
  23542. function _GetmessagesReceived: Cardinal;
  23543. function _GetbytesReceived: QWord;
  23544. procedure _Setlabel_(const aValue: UnicodeString);
  23545. procedure _Setprotocol(const aValue: UnicodeString);
  23546. procedure _SetdataChannelIdentifier(const aValue: LongInt);
  23547. procedure _Setstate(const aValue: TRTCDataChannelState);
  23548. procedure _SetmessagesSent(const aValue: Cardinal);
  23549. procedure _SetbytesSent(const aValue: QWord);
  23550. procedure _SetmessagesReceived(const aValue: Cardinal);
  23551. procedure _SetbytesReceived(const aValue: QWord);
  23552. Public
  23553. class function JSClassName: UnicodeString; override;
  23554. class function Cast(const Intf: IJSObject): IJSRTCDataChannelStats;
  23555. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  23556. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  23557. property dataChannelIdentifier: LongInt read _GetdataChannelIdentifier write _SetdataChannelIdentifier;
  23558. property state: TRTCDataChannelState read _Getstate write _Setstate;
  23559. property messagesSent: Cardinal read _GetmessagesSent write _SetmessagesSent;
  23560. property bytesSent: QWord read _GetbytesSent write _SetbytesSent;
  23561. property messagesReceived: Cardinal read _GetmessagesReceived write _SetmessagesReceived;
  23562. property bytesReceived: QWord read _GetbytesReceived write _SetbytesReceived;
  23563. end;
  23564. { --------------------------------------------------------------------
  23565. TJSRTCIceCandidatePairStats
  23566. --------------------------------------------------------------------}
  23567. TJSRTCIceCandidatePairStatsRec = record
  23568. transportId: UnicodeString;
  23569. localCandidateId: UnicodeString;
  23570. remoteCandidateId: UnicodeString;
  23571. state: TRTCStatsIceCandidatePairState;
  23572. priority: QWord;
  23573. nominated: Boolean;
  23574. writable: Boolean;
  23575. readable: Boolean;
  23576. bytesSent: QWord;
  23577. bytesReceived: QWord;
  23578. lastPacketSentTimestamp: TDOMHighResTimeStamp;
  23579. lastPacketReceivedTimestamp: TDOMHighResTimeStamp;
  23580. selected: Boolean;
  23581. timestamp: TDOMHighResTimeStamp;
  23582. type_: TRTCStatsType;
  23583. id: UnicodeString;
  23584. end;
  23585. IJSRTCIceCandidatePairStats = interface(IJSRTCStats)
  23586. ['{4ECE7FE3-FBC4-3C05-AE3C-115A641D1A85}']
  23587. function _GettransportId: UnicodeString;
  23588. function _GetlocalCandidateId: UnicodeString;
  23589. function _GetremoteCandidateId: UnicodeString;
  23590. function _Getstate: TRTCStatsIceCandidatePairState;
  23591. function _Getpriority: QWord;
  23592. function _Getnominated: Boolean;
  23593. function _Getwritable: Boolean;
  23594. function _Getreadable: Boolean;
  23595. function _GetbytesSent: QWord;
  23596. function _GetbytesReceived: QWord;
  23597. function _GetlastPacketSentTimestamp: TDOMHighResTimeStamp;
  23598. function _GetlastPacketReceivedTimestamp: TDOMHighResTimeStamp;
  23599. function _Getselected: Boolean;
  23600. procedure _SettransportId(const aValue: UnicodeString);
  23601. procedure _SetlocalCandidateId(const aValue: UnicodeString);
  23602. procedure _SetremoteCandidateId(const aValue: UnicodeString);
  23603. procedure _Setstate(const aValue: TRTCStatsIceCandidatePairState);
  23604. procedure _Setpriority(const aValue: QWord);
  23605. procedure _Setnominated(const aValue: Boolean);
  23606. procedure _Setwritable(const aValue: Boolean);
  23607. procedure _Setreadable(const aValue: Boolean);
  23608. procedure _SetbytesSent(const aValue: QWord);
  23609. procedure _SetbytesReceived(const aValue: QWord);
  23610. procedure _SetlastPacketSentTimestamp(const aValue: TDOMHighResTimeStamp);
  23611. procedure _SetlastPacketReceivedTimestamp(const aValue: TDOMHighResTimeStamp);
  23612. procedure _Setselected(const aValue: Boolean);
  23613. property transportId: UnicodeString read _GettransportId write _SettransportId;
  23614. property localCandidateId: UnicodeString read _GetlocalCandidateId write _SetlocalCandidateId;
  23615. property remoteCandidateId: UnicodeString read _GetremoteCandidateId write _SetremoteCandidateId;
  23616. property state: TRTCStatsIceCandidatePairState read _Getstate write _Setstate;
  23617. property priority: QWord read _Getpriority write _Setpriority;
  23618. property nominated: Boolean read _Getnominated write _Setnominated;
  23619. property writable: Boolean read _Getwritable write _Setwritable;
  23620. property readable: Boolean read _Getreadable write _Setreadable;
  23621. property bytesSent: QWord read _GetbytesSent write _SetbytesSent;
  23622. property bytesReceived: QWord read _GetbytesReceived write _SetbytesReceived;
  23623. property lastPacketSentTimestamp: TDOMHighResTimeStamp read _GetlastPacketSentTimestamp write _SetlastPacketSentTimestamp;
  23624. property lastPacketReceivedTimestamp: TDOMHighResTimeStamp read _GetlastPacketReceivedTimestamp write _SetlastPacketReceivedTimestamp;
  23625. property selected: Boolean read _Getselected write _Setselected;
  23626. end;
  23627. TJSRTCIceCandidatePairStats = class(TJSRTCStats,IJSRTCIceCandidatePairStats)
  23628. Protected
  23629. function _GettransportId: UnicodeString;
  23630. function _GetlocalCandidateId: UnicodeString;
  23631. function _GetremoteCandidateId: UnicodeString;
  23632. function _Getstate: TRTCStatsIceCandidatePairState;
  23633. function _Getpriority: QWord;
  23634. function _Getnominated: Boolean;
  23635. function _Getwritable: Boolean;
  23636. function _Getreadable: Boolean;
  23637. function _GetbytesSent: QWord;
  23638. function _GetbytesReceived: QWord;
  23639. function _GetlastPacketSentTimestamp: TDOMHighResTimeStamp;
  23640. function _GetlastPacketReceivedTimestamp: TDOMHighResTimeStamp;
  23641. function _Getselected: Boolean;
  23642. procedure _SettransportId(const aValue: UnicodeString);
  23643. procedure _SetlocalCandidateId(const aValue: UnicodeString);
  23644. procedure _SetremoteCandidateId(const aValue: UnicodeString);
  23645. procedure _Setstate(const aValue: TRTCStatsIceCandidatePairState);
  23646. procedure _Setpriority(const aValue: QWord);
  23647. procedure _Setnominated(const aValue: Boolean);
  23648. procedure _Setwritable(const aValue: Boolean);
  23649. procedure _Setreadable(const aValue: Boolean);
  23650. procedure _SetbytesSent(const aValue: QWord);
  23651. procedure _SetbytesReceived(const aValue: QWord);
  23652. procedure _SetlastPacketSentTimestamp(const aValue: TDOMHighResTimeStamp);
  23653. procedure _SetlastPacketReceivedTimestamp(const aValue: TDOMHighResTimeStamp);
  23654. procedure _Setselected(const aValue: Boolean);
  23655. Public
  23656. class function JSClassName: UnicodeString; override;
  23657. class function Cast(const Intf: IJSObject): IJSRTCIceCandidatePairStats;
  23658. property transportId: UnicodeString read _GettransportId write _SettransportId;
  23659. property localCandidateId: UnicodeString read _GetlocalCandidateId write _SetlocalCandidateId;
  23660. property remoteCandidateId: UnicodeString read _GetremoteCandidateId write _SetremoteCandidateId;
  23661. property state: TRTCStatsIceCandidatePairState read _Getstate write _Setstate;
  23662. property priority: QWord read _Getpriority write _Setpriority;
  23663. property nominated: Boolean read _Getnominated write _Setnominated;
  23664. property writable: Boolean read _Getwritable write _Setwritable;
  23665. property readable: Boolean read _Getreadable write _Setreadable;
  23666. property bytesSent: QWord read _GetbytesSent write _SetbytesSent;
  23667. property bytesReceived: QWord read _GetbytesReceived write _SetbytesReceived;
  23668. property lastPacketSentTimestamp: TDOMHighResTimeStamp read _GetlastPacketSentTimestamp write _SetlastPacketSentTimestamp;
  23669. property lastPacketReceivedTimestamp: TDOMHighResTimeStamp read _GetlastPacketReceivedTimestamp write _SetlastPacketReceivedTimestamp;
  23670. property selected: Boolean read _Getselected write _Setselected;
  23671. end;
  23672. { --------------------------------------------------------------------
  23673. TJSRTCIceCandidateStats
  23674. --------------------------------------------------------------------}
  23675. TJSRTCIceCandidateStatsRec = record
  23676. address: UnicodeString;
  23677. port: LongInt;
  23678. protocol: UnicodeString;
  23679. candidateType: TRTCIceCandidateType;
  23680. priority: LongInt;
  23681. relayProtocol: UnicodeString;
  23682. timestamp: TDOMHighResTimeStamp;
  23683. type_: TRTCStatsType;
  23684. id: UnicodeString;
  23685. end;
  23686. IJSRTCIceCandidateStats = interface(IJSRTCStats)
  23687. ['{65065D6F-C19E-3C83-81A8-7A27ED6331A7}']
  23688. function _Getaddress: UnicodeString;
  23689. function _Getport: LongInt;
  23690. function _Getprotocol: UnicodeString;
  23691. function _GetcandidateType: TRTCIceCandidateType;
  23692. function _Getpriority: LongInt;
  23693. function _GetrelayProtocol: UnicodeString;
  23694. procedure _Setaddress(const aValue: UnicodeString);
  23695. procedure _Setport(const aValue: LongInt);
  23696. procedure _Setprotocol(const aValue: UnicodeString);
  23697. procedure _SetcandidateType(const aValue: TRTCIceCandidateType);
  23698. procedure _Setpriority(const aValue: LongInt);
  23699. procedure _SetrelayProtocol(const aValue: UnicodeString);
  23700. property address: UnicodeString read _Getaddress write _Setaddress;
  23701. property port: LongInt read _Getport write _Setport;
  23702. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  23703. property candidateType: TRTCIceCandidateType read _GetcandidateType write _SetcandidateType;
  23704. property priority: LongInt read _Getpriority write _Setpriority;
  23705. property relayProtocol: UnicodeString read _GetrelayProtocol write _SetrelayProtocol;
  23706. end;
  23707. TJSRTCIceCandidateStats = class(TJSRTCStats,IJSRTCIceCandidateStats)
  23708. Protected
  23709. function _Getaddress: UnicodeString;
  23710. function _Getport: LongInt;
  23711. function _Getprotocol: UnicodeString;
  23712. function _GetcandidateType: TRTCIceCandidateType;
  23713. function _Getpriority: LongInt;
  23714. function _GetrelayProtocol: UnicodeString;
  23715. procedure _Setaddress(const aValue: UnicodeString);
  23716. procedure _Setport(const aValue: LongInt);
  23717. procedure _Setprotocol(const aValue: UnicodeString);
  23718. procedure _SetcandidateType(const aValue: TRTCIceCandidateType);
  23719. procedure _Setpriority(const aValue: LongInt);
  23720. procedure _SetrelayProtocol(const aValue: UnicodeString);
  23721. Public
  23722. class function JSClassName: UnicodeString; override;
  23723. class function Cast(const Intf: IJSObject): IJSRTCIceCandidateStats;
  23724. property address: UnicodeString read _Getaddress write _Setaddress;
  23725. property port: LongInt read _Getport write _Setport;
  23726. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  23727. property candidateType: TRTCIceCandidateType read _GetcandidateType write _SetcandidateType;
  23728. property priority: LongInt read _Getpriority write _Setpriority;
  23729. property relayProtocol: UnicodeString read _GetrelayProtocol write _SetrelayProtocol;
  23730. end;
  23731. { --------------------------------------------------------------------
  23732. TJSRTCStatsReportInternal
  23733. --------------------------------------------------------------------}
  23734. TJSRTCStatsReportInternalRec = record
  23735. pcid: UnicodeString;
  23736. browserId: Cardinal;
  23737. configuration: TJSRTCConfigurationInternal;
  23738. jsepSessionErrors: UnicodeString;
  23739. sdpHistory: TJSRTCSdpHistoryEntryInternalDynArray;
  23740. timestamp: TDOMHighResTimeStamp;
  23741. callDurationMs: Double;
  23742. iceRestarts: Cardinal;
  23743. iceRollbacks: Cardinal;
  23744. offerer: Boolean;
  23745. closed: Boolean;
  23746. inboundRtpStreamStats: TJSRTCInboundRtpStreamStatsDynArray;
  23747. outboundRtpStreamStats: TJSRTCOutboundRtpStreamStatsDynArray;
  23748. remoteInboundRtpStreamStats: TJSRTCRemoteInboundRtpStreamStatsDynArray;
  23749. remoteOutboundRtpStreamStats: TJSRTCRemoteOutboundRtpStreamStatsDynArray;
  23750. mediaSourceStats: TJSRTCMediaSourceStatsDynArray;
  23751. videoSourceStats: TJSRTCVideoSourceStatsDynArray;
  23752. peerConnectionStats: TJSRTCPeerConnectionStatsDynArray;
  23753. rtpContributingSourceStats: TJSRTCRTPContributingSourceStatsDynArray;
  23754. iceCandidatePairStats: TJSRTCIceCandidatePairStatsDynArray;
  23755. iceCandidateStats: TJSRTCIceCandidateStatsDynArray;
  23756. trickledIceCandidateStats: TJSRTCIceCandidateStatsDynArray;
  23757. dataChannelStats: TJSRTCDataChannelStatsDynArray;
  23758. codecStats: TJSRTCCodecStatsDynArray;
  23759. rawLocalCandidates: TUnicodeStringDynArray;
  23760. rawRemoteCandidates: TUnicodeStringDynArray;
  23761. videoFrameHistories: TJSRTCVideoFrameHistoryInternalDynArray;
  23762. bandwidthEstimations: TJSRTCBandwidthEstimationInternalDynArray;
  23763. end;
  23764. IJSRTCStatsReportInternal = interface(IJSRTCStatsCollection)
  23765. ['{1E83601D-32F6-3CDF-BBBF-A470A591227F}']
  23766. function _Getpcid: UnicodeString;
  23767. function _GetbrowserId: Cardinal;
  23768. function _Getconfiguration: TJSRTCConfigurationInternal;
  23769. function _GetjsepSessionErrors: UnicodeString;
  23770. function _GetsdpHistory: TJSRTCSdpHistoryEntryInternalDynArray;
  23771. function _Gettimestamp: TDOMHighResTimeStamp;
  23772. function _GetcallDurationMs: Double;
  23773. function _GeticeRestarts: Cardinal;
  23774. function _GeticeRollbacks: Cardinal;
  23775. function _Getofferer: Boolean;
  23776. function _Getclosed: Boolean;
  23777. procedure _Setpcid(const aValue: UnicodeString);
  23778. procedure _SetbrowserId(const aValue: Cardinal);
  23779. procedure _Setconfiguration(const aValue: TJSRTCConfigurationInternal);
  23780. procedure _SetjsepSessionErrors(const aValue: UnicodeString);
  23781. procedure _SetsdpHistory(const aValue: TJSRTCSdpHistoryEntryInternalDynArray);
  23782. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  23783. procedure _SetcallDurationMs(const aValue: Double);
  23784. procedure _SeticeRestarts(const aValue: Cardinal);
  23785. procedure _SeticeRollbacks(const aValue: Cardinal);
  23786. procedure _Setofferer(const aValue: Boolean);
  23787. procedure _Setclosed(const aValue: Boolean);
  23788. property pcid: UnicodeString read _Getpcid write _Setpcid;
  23789. property browserId: Cardinal read _GetbrowserId write _SetbrowserId;
  23790. property configuration: TJSRTCConfigurationInternal read _Getconfiguration write _Setconfiguration;
  23791. property jsepSessionErrors: UnicodeString read _GetjsepSessionErrors write _SetjsepSessionErrors;
  23792. property sdpHistory: TJSRTCSdpHistoryEntryInternalDynArray read _GetsdpHistory write _SetsdpHistory;
  23793. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  23794. property callDurationMs: Double read _GetcallDurationMs write _SetcallDurationMs;
  23795. property iceRestarts: Cardinal read _GeticeRestarts write _SeticeRestarts;
  23796. property iceRollbacks: Cardinal read _GeticeRollbacks write _SeticeRollbacks;
  23797. property offerer: Boolean read _Getofferer write _Setofferer;
  23798. property closed: Boolean read _Getclosed write _Setclosed;
  23799. end;
  23800. TJSRTCStatsReportInternal = class(TJSRTCStatsCollection,IJSRTCStatsReportInternal)
  23801. Protected
  23802. function _Getpcid: UnicodeString;
  23803. function _GetbrowserId: Cardinal;
  23804. function _Getconfiguration: TJSRTCConfigurationInternal;
  23805. function _GetjsepSessionErrors: UnicodeString;
  23806. function _GetsdpHistory: TJSRTCSdpHistoryEntryInternalDynArray;
  23807. function _Gettimestamp: TDOMHighResTimeStamp;
  23808. function _GetcallDurationMs: Double;
  23809. function _GeticeRestarts: Cardinal;
  23810. function _GeticeRollbacks: Cardinal;
  23811. function _Getofferer: Boolean;
  23812. function _Getclosed: Boolean;
  23813. procedure _Setpcid(const aValue: UnicodeString);
  23814. procedure _SetbrowserId(const aValue: Cardinal);
  23815. procedure _Setconfiguration(const aValue: TJSRTCConfigurationInternal);
  23816. procedure _SetjsepSessionErrors(const aValue: UnicodeString);
  23817. procedure _SetsdpHistory(const aValue: TJSRTCSdpHistoryEntryInternalDynArray);
  23818. procedure _Settimestamp(const aValue: TDOMHighResTimeStamp);
  23819. procedure _SetcallDurationMs(const aValue: Double);
  23820. procedure _SeticeRestarts(const aValue: Cardinal);
  23821. procedure _SeticeRollbacks(const aValue: Cardinal);
  23822. procedure _Setofferer(const aValue: Boolean);
  23823. procedure _Setclosed(const aValue: Boolean);
  23824. Public
  23825. class function JSClassName: UnicodeString; override;
  23826. class function Cast(const Intf: IJSObject): IJSRTCStatsReportInternal;
  23827. property pcid: UnicodeString read _Getpcid write _Setpcid;
  23828. property browserId: Cardinal read _GetbrowserId write _SetbrowserId;
  23829. property configuration: TJSRTCConfigurationInternal read _Getconfiguration write _Setconfiguration;
  23830. property jsepSessionErrors: UnicodeString read _GetjsepSessionErrors write _SetjsepSessionErrors;
  23831. property sdpHistory: TJSRTCSdpHistoryEntryInternalDynArray read _GetsdpHistory write _SetsdpHistory;
  23832. property timestamp: TDOMHighResTimeStamp read _Gettimestamp write _Settimestamp;
  23833. property callDurationMs: Double read _GetcallDurationMs write _SetcallDurationMs;
  23834. property iceRestarts: Cardinal read _GeticeRestarts write _SeticeRestarts;
  23835. property iceRollbacks: Cardinal read _GeticeRollbacks write _SeticeRollbacks;
  23836. property offerer: Boolean read _Getofferer write _Setofferer;
  23837. property closed: Boolean read _Getclosed write _Setclosed;
  23838. end;
  23839. { --------------------------------------------------------------------
  23840. TJSRTCTrackEventInit
  23841. --------------------------------------------------------------------}
  23842. TJSRTCTrackEventInitRec = record
  23843. receiver: TJSRTCRtpReceiver;
  23844. track: TJSMediaStreamTrack;
  23845. streams: TJSMediaStreamDynArray;
  23846. transceiver: TJSRTCRtpTransceiver;
  23847. bubbles: Boolean;
  23848. cancelable: Boolean;
  23849. composed: Boolean;
  23850. end;
  23851. IJSRTCTrackEventInit = interface(IJSEventInit)
  23852. ['{D17930D8-F44C-3F03-ACD0-C655EE4C35FB}']
  23853. function _Getreceiver: IJSRTCRtpReceiver;
  23854. function _Gettrack: IJSMediaStreamTrack;
  23855. function _Getstreams: TJSMediaStreamDynArray;
  23856. function _Gettransceiver: IJSRTCRtpTransceiver;
  23857. procedure _Setreceiver(const aValue: IJSRTCRtpReceiver);
  23858. procedure _Settrack(const aValue: IJSMediaStreamTrack);
  23859. procedure _Setstreams(const aValue: TJSMediaStreamDynArray);
  23860. procedure _Settransceiver(const aValue: IJSRTCRtpTransceiver);
  23861. property receiver: IJSRTCRtpReceiver read _Getreceiver write _Setreceiver;
  23862. property track: IJSMediaStreamTrack read _Gettrack write _Settrack;
  23863. property streams: TJSMediaStreamDynArray read _Getstreams write _Setstreams;
  23864. property transceiver: IJSRTCRtpTransceiver read _Gettransceiver write _Settransceiver;
  23865. end;
  23866. TJSRTCTrackEventInit = class(TJSEventInit,IJSRTCTrackEventInit)
  23867. Protected
  23868. function _Getreceiver: IJSRTCRtpReceiver;
  23869. function _Gettrack: IJSMediaStreamTrack;
  23870. function _Getstreams: TJSMediaStreamDynArray;
  23871. function _Gettransceiver: IJSRTCRtpTransceiver;
  23872. procedure _Setreceiver(const aValue: IJSRTCRtpReceiver);
  23873. procedure _Settrack(const aValue: IJSMediaStreamTrack);
  23874. procedure _Setstreams(const aValue: TJSMediaStreamDynArray);
  23875. procedure _Settransceiver(const aValue: IJSRTCRtpTransceiver);
  23876. Public
  23877. class function JSClassName: UnicodeString; override;
  23878. class function Cast(const Intf: IJSObject): IJSRTCTrackEventInit;
  23879. property receiver: IJSRTCRtpReceiver read _Getreceiver write _Setreceiver;
  23880. property track: IJSMediaStreamTrack read _Gettrack write _Settrack;
  23881. property streams: TJSMediaStreamDynArray read _Getstreams write _Setstreams;
  23882. property transceiver: IJSRTCRtpTransceiver read _Gettransceiver write _Settransceiver;
  23883. end;
  23884. { --------------------------------------------------------------------
  23885. TJSRTCTransformEventInit
  23886. --------------------------------------------------------------------}
  23887. TJSRTCTransformEventInitRec = record
  23888. transformer: TJSRTCRtpScriptTransformer;
  23889. bubbles: Boolean;
  23890. cancelable: Boolean;
  23891. composed: Boolean;
  23892. end;
  23893. IJSRTCTransformEventInit = interface(IJSEventInit)
  23894. ['{DAC6B4D9-9F86-3304-A82B-1A3D966E3EAA}']
  23895. function _Gettransformer: IJSRTCRtpScriptTransformer;
  23896. procedure _Settransformer(const aValue: IJSRTCRtpScriptTransformer);
  23897. property transformer: IJSRTCRtpScriptTransformer read _Gettransformer write _Settransformer;
  23898. end;
  23899. TJSRTCTransformEventInit = class(TJSEventInit,IJSRTCTransformEventInit)
  23900. Protected
  23901. function _Gettransformer: IJSRTCRtpScriptTransformer;
  23902. procedure _Settransformer(const aValue: IJSRTCRtpScriptTransformer);
  23903. Public
  23904. class function JSClassName: UnicodeString; override;
  23905. class function Cast(const Intf: IJSObject): IJSRTCTransformEventInit;
  23906. property transformer: IJSRTCRtpScriptTransformer read _Gettransformer write _Settransformer;
  23907. end;
  23908. { --------------------------------------------------------------------
  23909. TJSSanitizerElementNamespaceWithAttributes
  23910. --------------------------------------------------------------------}
  23911. TJSSanitizerElementNamespaceWithAttributesRec = record
  23912. attributes: TSanitizerAttributeDynArray;
  23913. removeAttributes: TSanitizerAttributeDynArray;
  23914. name: UnicodeString;
  23915. namespace: UnicodeString;
  23916. end;
  23917. IJSSanitizerElementNamespaceWithAttributes = interface(IJSSanitizerElementNamespace)
  23918. ['{AC4CE6DF-AD3D-33FD-91D5-2A0143520196}']
  23919. function _Getattributes: TSanitizerAttributeDynArray;
  23920. function _GetremoveAttributes: TSanitizerAttributeDynArray;
  23921. procedure _Setattributes(const aValue: TSanitizerAttributeDynArray);
  23922. procedure _SetremoveAttributes(const aValue: TSanitizerAttributeDynArray);
  23923. property attributes: TSanitizerAttributeDynArray read _Getattributes write _Setattributes;
  23924. property removeAttributes: TSanitizerAttributeDynArray read _GetremoveAttributes write _SetremoveAttributes;
  23925. end;
  23926. TJSSanitizerElementNamespaceWithAttributes = class(TJSSanitizerElementNamespace,IJSSanitizerElementNamespaceWithAttributes)
  23927. Protected
  23928. function _Getattributes: TSanitizerAttributeDynArray;
  23929. function _GetremoveAttributes: TSanitizerAttributeDynArray;
  23930. procedure _Setattributes(const aValue: TSanitizerAttributeDynArray);
  23931. procedure _SetremoveAttributes(const aValue: TSanitizerAttributeDynArray);
  23932. Public
  23933. class function JSClassName: UnicodeString; override;
  23934. class function Cast(const Intf: IJSObject): IJSSanitizerElementNamespaceWithAttributes;
  23935. property attributes: TSanitizerAttributeDynArray read _Getattributes write _Setattributes;
  23936. property removeAttributes: TSanitizerAttributeDynArray read _GetremoveAttributes write _SetremoveAttributes;
  23937. end;
  23938. { --------------------------------------------------------------------
  23939. TJSScrollViewChangeEventInit
  23940. --------------------------------------------------------------------}
  23941. TJSScrollViewChangeEventInitRec = record
  23942. state: TScrollState;
  23943. bubbles: Boolean;
  23944. cancelable: Boolean;
  23945. composed: Boolean;
  23946. end;
  23947. IJSScrollViewChangeEventInit = interface(IJSEventInit)
  23948. ['{7D240573-A2B9-3B1B-9EB3-62E1F0AFE686}']
  23949. function _Getstate: TScrollState;
  23950. procedure _Setstate(const aValue: TScrollState);
  23951. property state: TScrollState read _Getstate write _Setstate;
  23952. end;
  23953. TJSScrollViewChangeEventInit = class(TJSEventInit,IJSScrollViewChangeEventInit)
  23954. Protected
  23955. function _Getstate: TScrollState;
  23956. procedure _Setstate(const aValue: TScrollState);
  23957. Public
  23958. class function JSClassName: UnicodeString; override;
  23959. class function Cast(const Intf: IJSObject): IJSScrollViewChangeEventInit;
  23960. property state: TScrollState read _Getstate write _Setstate;
  23961. end;
  23962. { --------------------------------------------------------------------
  23963. TJSSecurityPolicyViolationEventInit
  23964. --------------------------------------------------------------------}
  23965. TJSSecurityPolicyViolationEventInitRec = record
  23966. documentURI: UnicodeString;
  23967. referrer: UnicodeString;
  23968. blockedURI: UnicodeString;
  23969. violatedDirective: UnicodeString;
  23970. effectiveDirective: UnicodeString;
  23971. originalPolicy: UnicodeString;
  23972. sourceFile: UnicodeString;
  23973. sample: UnicodeString;
  23974. disposition: TSecurityPolicyViolationEventDisposition;
  23975. statusCode: Word;
  23976. lineNumber: Cardinal;
  23977. columnNumber: Cardinal;
  23978. bubbles: Boolean;
  23979. cancelable: Boolean;
  23980. composed: Boolean;
  23981. end;
  23982. IJSSecurityPolicyViolationEventInit = interface(IJSEventInit)
  23983. ['{32F596A6-8370-392E-A1DB-277D13AEF490}']
  23984. function _GetdocumentURI: UnicodeString;
  23985. function _Getreferrer: UnicodeString;
  23986. function _GetblockedURI: UnicodeString;
  23987. function _GetviolatedDirective: UnicodeString;
  23988. function _GeteffectiveDirective: UnicodeString;
  23989. function _GetoriginalPolicy: UnicodeString;
  23990. function _GetsourceFile: UnicodeString;
  23991. function _Getsample: UnicodeString;
  23992. function _Getdisposition: TSecurityPolicyViolationEventDisposition;
  23993. function _GetstatusCode: Word;
  23994. function _GetlineNumber: Cardinal;
  23995. function _GetcolumnNumber: Cardinal;
  23996. procedure _SetdocumentURI(const aValue: UnicodeString);
  23997. procedure _Setreferrer(const aValue: UnicodeString);
  23998. procedure _SetblockedURI(const aValue: UnicodeString);
  23999. procedure _SetviolatedDirective(const aValue: UnicodeString);
  24000. procedure _SeteffectiveDirective(const aValue: UnicodeString);
  24001. procedure _SetoriginalPolicy(const aValue: UnicodeString);
  24002. procedure _SetsourceFile(const aValue: UnicodeString);
  24003. procedure _Setsample(const aValue: UnicodeString);
  24004. procedure _Setdisposition(const aValue: TSecurityPolicyViolationEventDisposition);
  24005. procedure _SetstatusCode(const aValue: Word);
  24006. procedure _SetlineNumber(const aValue: Cardinal);
  24007. procedure _SetcolumnNumber(const aValue: Cardinal);
  24008. property documentURI: UnicodeString read _GetdocumentURI write _SetdocumentURI;
  24009. property referrer: UnicodeString read _Getreferrer write _Setreferrer;
  24010. property blockedURI: UnicodeString read _GetblockedURI write _SetblockedURI;
  24011. property violatedDirective: UnicodeString read _GetviolatedDirective write _SetviolatedDirective;
  24012. property effectiveDirective: UnicodeString read _GeteffectiveDirective write _SeteffectiveDirective;
  24013. property originalPolicy: UnicodeString read _GetoriginalPolicy write _SetoriginalPolicy;
  24014. property sourceFile: UnicodeString read _GetsourceFile write _SetsourceFile;
  24015. property sample: UnicodeString read _Getsample write _Setsample;
  24016. property disposition: TSecurityPolicyViolationEventDisposition read _Getdisposition write _Setdisposition;
  24017. property statusCode: Word read _GetstatusCode write _SetstatusCode;
  24018. property lineNumber: Cardinal read _GetlineNumber write _SetlineNumber;
  24019. property columnNumber: Cardinal read _GetcolumnNumber write _SetcolumnNumber;
  24020. end;
  24021. TJSSecurityPolicyViolationEventInit = class(TJSEventInit,IJSSecurityPolicyViolationEventInit)
  24022. Protected
  24023. function _GetdocumentURI: UnicodeString;
  24024. function _Getreferrer: UnicodeString;
  24025. function _GetblockedURI: UnicodeString;
  24026. function _GetviolatedDirective: UnicodeString;
  24027. function _GeteffectiveDirective: UnicodeString;
  24028. function _GetoriginalPolicy: UnicodeString;
  24029. function _GetsourceFile: UnicodeString;
  24030. function _Getsample: UnicodeString;
  24031. function _Getdisposition: TSecurityPolicyViolationEventDisposition;
  24032. function _GetstatusCode: Word;
  24033. function _GetlineNumber: Cardinal;
  24034. function _GetcolumnNumber: Cardinal;
  24035. procedure _SetdocumentURI(const aValue: UnicodeString);
  24036. procedure _Setreferrer(const aValue: UnicodeString);
  24037. procedure _SetblockedURI(const aValue: UnicodeString);
  24038. procedure _SetviolatedDirective(const aValue: UnicodeString);
  24039. procedure _SeteffectiveDirective(const aValue: UnicodeString);
  24040. procedure _SetoriginalPolicy(const aValue: UnicodeString);
  24041. procedure _SetsourceFile(const aValue: UnicodeString);
  24042. procedure _Setsample(const aValue: UnicodeString);
  24043. procedure _Setdisposition(const aValue: TSecurityPolicyViolationEventDisposition);
  24044. procedure _SetstatusCode(const aValue: Word);
  24045. procedure _SetlineNumber(const aValue: Cardinal);
  24046. procedure _SetcolumnNumber(const aValue: Cardinal);
  24047. Public
  24048. class function JSClassName: UnicodeString; override;
  24049. class function Cast(const Intf: IJSObject): IJSSecurityPolicyViolationEventInit;
  24050. property documentURI: UnicodeString read _GetdocumentURI write _SetdocumentURI;
  24051. property referrer: UnicodeString read _Getreferrer write _Setreferrer;
  24052. property blockedURI: UnicodeString read _GetblockedURI write _SetblockedURI;
  24053. property violatedDirective: UnicodeString read _GetviolatedDirective write _SetviolatedDirective;
  24054. property effectiveDirective: UnicodeString read _GeteffectiveDirective write _SeteffectiveDirective;
  24055. property originalPolicy: UnicodeString read _GetoriginalPolicy write _SetoriginalPolicy;
  24056. property sourceFile: UnicodeString read _GetsourceFile write _SetsourceFile;
  24057. property sample: UnicodeString read _Getsample write _Setsample;
  24058. property disposition: TSecurityPolicyViolationEventDisposition read _Getdisposition write _Setdisposition;
  24059. property statusCode: Word read _GetstatusCode write _SetstatusCode;
  24060. property lineNumber: Cardinal read _GetlineNumber write _SetlineNumber;
  24061. property columnNumber: Cardinal read _GetcolumnNumber write _SetcolumnNumber;
  24062. end;
  24063. { --------------------------------------------------------------------
  24064. TJSSpeechRecognitionErrorInit
  24065. --------------------------------------------------------------------}
  24066. TJSSpeechRecognitionErrorInitRec = record
  24067. error: TSpeechRecognitionErrorCode;
  24068. message: UnicodeString;
  24069. bubbles: Boolean;
  24070. cancelable: Boolean;
  24071. composed: Boolean;
  24072. end;
  24073. IJSSpeechRecognitionErrorInit = interface(IJSEventInit)
  24074. ['{914B3CD9-911A-36F8-B107-9401A57B3C3B}']
  24075. function _Geterror: TSpeechRecognitionErrorCode;
  24076. function _Getmessage: UnicodeString;
  24077. procedure _Seterror(const aValue: TSpeechRecognitionErrorCode);
  24078. procedure _Setmessage(const aValue: UnicodeString);
  24079. property error: TSpeechRecognitionErrorCode read _Geterror write _Seterror;
  24080. property message: UnicodeString read _Getmessage write _Setmessage;
  24081. end;
  24082. TJSSpeechRecognitionErrorInit = class(TJSEventInit,IJSSpeechRecognitionErrorInit)
  24083. Protected
  24084. function _Geterror: TSpeechRecognitionErrorCode;
  24085. function _Getmessage: UnicodeString;
  24086. procedure _Seterror(const aValue: TSpeechRecognitionErrorCode);
  24087. procedure _Setmessage(const aValue: UnicodeString);
  24088. Public
  24089. class function JSClassName: UnicodeString; override;
  24090. class function Cast(const Intf: IJSObject): IJSSpeechRecognitionErrorInit;
  24091. property error: TSpeechRecognitionErrorCode read _Geterror write _Seterror;
  24092. property message: UnicodeString read _Getmessage write _Setmessage;
  24093. end;
  24094. { --------------------------------------------------------------------
  24095. TJSSpeechRecognitionEventInit
  24096. --------------------------------------------------------------------}
  24097. TJSSpeechRecognitionEventInitRec = record
  24098. resultIndex: Cardinal;
  24099. results: TJSSpeechRecognitionResultList;
  24100. interpretation: Variant;
  24101. emma: IJSDocument;
  24102. bubbles: Boolean;
  24103. cancelable: Boolean;
  24104. composed: Boolean;
  24105. end;
  24106. IJSSpeechRecognitionEventInit = interface(IJSEventInit)
  24107. ['{655EFFC6-4E5F-3E15-B6F1-C8838643C041}']
  24108. function _GetresultIndex: Cardinal;
  24109. function _Getresults: IJSSpeechRecognitionResultList;
  24110. function _Getinterpretation: Variant;
  24111. function _Getemma: IJSDocument;
  24112. procedure _SetresultIndex(const aValue: Cardinal);
  24113. procedure _Setresults(const aValue: IJSSpeechRecognitionResultList);
  24114. procedure _Setinterpretation(const aValue: Variant);
  24115. procedure _Setemma(const aValue: IJSDocument);
  24116. property resultIndex: Cardinal read _GetresultIndex write _SetresultIndex;
  24117. property results: IJSSpeechRecognitionResultList read _Getresults write _Setresults;
  24118. property interpretation: Variant read _Getinterpretation write _Setinterpretation;
  24119. property emma: IJSDocument read _Getemma write _Setemma;
  24120. end;
  24121. TJSSpeechRecognitionEventInit = class(TJSEventInit,IJSSpeechRecognitionEventInit)
  24122. Protected
  24123. function _GetresultIndex: Cardinal;
  24124. function _Getresults: IJSSpeechRecognitionResultList;
  24125. function _Getinterpretation: Variant;
  24126. function _Getemma: IJSDocument;
  24127. procedure _SetresultIndex(const aValue: Cardinal);
  24128. procedure _Setresults(const aValue: IJSSpeechRecognitionResultList);
  24129. procedure _Setinterpretation(const aValue: Variant);
  24130. procedure _Setemma(const aValue: IJSDocument);
  24131. Public
  24132. class function JSClassName: UnicodeString; override;
  24133. class function Cast(const Intf: IJSObject): IJSSpeechRecognitionEventInit;
  24134. property resultIndex: Cardinal read _GetresultIndex write _SetresultIndex;
  24135. property results: IJSSpeechRecognitionResultList read _Getresults write _Setresults;
  24136. property interpretation: Variant read _Getinterpretation write _Setinterpretation;
  24137. property emma: IJSDocument read _Getemma write _Setemma;
  24138. end;
  24139. { --------------------------------------------------------------------
  24140. TJSSpeechSynthesisEventInit
  24141. --------------------------------------------------------------------}
  24142. TJSSpeechSynthesisEventInitRec = record
  24143. utterance: TJSSpeechSynthesisUtterance;
  24144. charIndex: Cardinal;
  24145. charLength: Cardinal;
  24146. elapsedTime: Single;
  24147. name: UnicodeString;
  24148. bubbles: Boolean;
  24149. cancelable: Boolean;
  24150. composed: Boolean;
  24151. end;
  24152. IJSSpeechSynthesisEventInit = interface(IJSEventInit)
  24153. ['{140E0994-5987-30D4-8D69-B90C871712EA}']
  24154. function _Getutterance: IJSSpeechSynthesisUtterance;
  24155. function _GetcharIndex: Cardinal;
  24156. function _GetcharLength: Cardinal;
  24157. function _GetelapsedTime: Single;
  24158. function _Getname: UnicodeString;
  24159. procedure _Setutterance(const aValue: IJSSpeechSynthesisUtterance);
  24160. procedure _SetcharIndex(const aValue: Cardinal);
  24161. procedure _SetcharLength(const aValue: Cardinal);
  24162. procedure _SetelapsedTime(const aValue: Single);
  24163. procedure _Setname(const aValue: UnicodeString);
  24164. property utterance: IJSSpeechSynthesisUtterance read _Getutterance write _Setutterance;
  24165. property charIndex: Cardinal read _GetcharIndex write _SetcharIndex;
  24166. property charLength: Cardinal read _GetcharLength write _SetcharLength;
  24167. property elapsedTime: Single read _GetelapsedTime write _SetelapsedTime;
  24168. property name: UnicodeString read _Getname write _Setname;
  24169. end;
  24170. TJSSpeechSynthesisEventInit = class(TJSEventInit,IJSSpeechSynthesisEventInit)
  24171. Protected
  24172. function _Getutterance: IJSSpeechSynthesisUtterance;
  24173. function _GetcharIndex: Cardinal;
  24174. function _GetcharLength: Cardinal;
  24175. function _GetelapsedTime: Single;
  24176. function _Getname: UnicodeString;
  24177. procedure _Setutterance(const aValue: IJSSpeechSynthesisUtterance);
  24178. procedure _SetcharIndex(const aValue: Cardinal);
  24179. procedure _SetcharLength(const aValue: Cardinal);
  24180. procedure _SetelapsedTime(const aValue: Single);
  24181. procedure _Setname(const aValue: UnicodeString);
  24182. Public
  24183. class function JSClassName: UnicodeString; override;
  24184. class function Cast(const Intf: IJSObject): IJSSpeechSynthesisEventInit;
  24185. property utterance: IJSSpeechSynthesisUtterance read _Getutterance write _Setutterance;
  24186. property charIndex: Cardinal read _GetcharIndex write _SetcharIndex;
  24187. property charLength: Cardinal read _GetcharLength write _SetcharLength;
  24188. property elapsedTime: Single read _GetelapsedTime write _SetelapsedTime;
  24189. property name: UnicodeString read _Getname write _Setname;
  24190. end;
  24191. { --------------------------------------------------------------------
  24192. TJSStereoPannerOptions
  24193. --------------------------------------------------------------------}
  24194. TJSStereoPannerOptionsRec = record
  24195. pan: Single;
  24196. channelCount: Cardinal;
  24197. channelCountMode: TChannelCountMode;
  24198. channelInterpretation: TChannelInterpretation;
  24199. end;
  24200. IJSStereoPannerOptions = interface(IJSAudioNodeOptions)
  24201. ['{A46E0B3F-9F01-3D6B-B7C9-C0EF44BFDAF3}']
  24202. function _Getpan: Single;
  24203. procedure _Setpan(const aValue: Single);
  24204. property pan: Single read _Getpan write _Setpan;
  24205. end;
  24206. TJSStereoPannerOptions = class(TJSAudioNodeOptions,IJSStereoPannerOptions)
  24207. Protected
  24208. function _Getpan: Single;
  24209. procedure _Setpan(const aValue: Single);
  24210. Public
  24211. class function JSClassName: UnicodeString; override;
  24212. class function Cast(const Intf: IJSObject): IJSStereoPannerOptions;
  24213. property pan: Single read _Getpan write _Setpan;
  24214. end;
  24215. { --------------------------------------------------------------------
  24216. TJSStorageEventInit
  24217. --------------------------------------------------------------------}
  24218. TJSStorageEventInitRec = record
  24219. key: UnicodeString;
  24220. oldValue: UnicodeString;
  24221. newValue: UnicodeString;
  24222. url: UnicodeString;
  24223. storageArea: TJSStorage;
  24224. bubbles: Boolean;
  24225. cancelable: Boolean;
  24226. composed: Boolean;
  24227. end;
  24228. IJSStorageEventInit = interface(IJSEventInit)
  24229. ['{EB23213A-C873-380A-9D1E-495842A1E8C9}']
  24230. function _Getkey: UnicodeString;
  24231. function _GetoldValue: UnicodeString;
  24232. function _GetnewValue: UnicodeString;
  24233. function _Geturl: UnicodeString;
  24234. function _GetstorageArea: IJSStorage;
  24235. procedure _Setkey(const aValue: UnicodeString);
  24236. procedure _SetoldValue(const aValue: UnicodeString);
  24237. procedure _SetnewValue(const aValue: UnicodeString);
  24238. procedure _Seturl(const aValue: UnicodeString);
  24239. procedure _SetstorageArea(const aValue: IJSStorage);
  24240. property key: UnicodeString read _Getkey write _Setkey;
  24241. property oldValue: UnicodeString read _GetoldValue write _SetoldValue;
  24242. property newValue: UnicodeString read _GetnewValue write _SetnewValue;
  24243. property url: UnicodeString read _Geturl write _Seturl;
  24244. property storageArea: IJSStorage read _GetstorageArea write _SetstorageArea;
  24245. end;
  24246. TJSStorageEventInit = class(TJSEventInit,IJSStorageEventInit)
  24247. Protected
  24248. function _Getkey: UnicodeString;
  24249. function _GetoldValue: UnicodeString;
  24250. function _GetnewValue: UnicodeString;
  24251. function _Geturl: UnicodeString;
  24252. function _GetstorageArea: IJSStorage;
  24253. procedure _Setkey(const aValue: UnicodeString);
  24254. procedure _SetoldValue(const aValue: UnicodeString);
  24255. procedure _SetnewValue(const aValue: UnicodeString);
  24256. procedure _Seturl(const aValue: UnicodeString);
  24257. procedure _SetstorageArea(const aValue: IJSStorage);
  24258. Public
  24259. class function JSClassName: UnicodeString; override;
  24260. class function Cast(const Intf: IJSObject): IJSStorageEventInit;
  24261. property key: UnicodeString read _Getkey write _Setkey;
  24262. property oldValue: UnicodeString read _GetoldValue write _SetoldValue;
  24263. property newValue: UnicodeString read _GetnewValue write _SetnewValue;
  24264. property url: UnicodeString read _Geturl write _Seturl;
  24265. property storageArea: IJSStorage read _GetstorageArea write _SetstorageArea;
  24266. end;
  24267. { --------------------------------------------------------------------
  24268. TJSStreamFilterDataEventInit
  24269. --------------------------------------------------------------------}
  24270. TJSStreamFilterDataEventInitRec = record
  24271. data: IJSArrayBuffer;
  24272. bubbles: Boolean;
  24273. cancelable: Boolean;
  24274. composed: Boolean;
  24275. end;
  24276. IJSStreamFilterDataEventInit = interface(IJSEventInit)
  24277. ['{7D240E75-BC5A-3B8B-A7D6-FE19F0AFE686}']
  24278. function _Getdata: IJSArrayBuffer;
  24279. procedure _Setdata(const aValue: IJSArrayBuffer);
  24280. property data: IJSArrayBuffer read _Getdata write _Setdata;
  24281. end;
  24282. TJSStreamFilterDataEventInit = class(TJSEventInit,IJSStreamFilterDataEventInit)
  24283. Protected
  24284. function _Getdata: IJSArrayBuffer;
  24285. procedure _Setdata(const aValue: IJSArrayBuffer);
  24286. Public
  24287. class function JSClassName: UnicodeString; override;
  24288. class function Cast(const Intf: IJSObject): IJSStreamFilterDataEventInit;
  24289. property data: IJSArrayBuffer read _Getdata write _Setdata;
  24290. end;
  24291. { --------------------------------------------------------------------
  24292. TJSSubmitEventInit
  24293. --------------------------------------------------------------------}
  24294. TJSSubmitEventInitRec = record
  24295. submitter: TJSHTMLElement;
  24296. bubbles: Boolean;
  24297. cancelable: Boolean;
  24298. composed: Boolean;
  24299. end;
  24300. IJSSubmitEventInit = interface(IJSEventInit)
  24301. ['{260EC35E-6E02-35CE-A218-8FE99F865F5D}']
  24302. function _Getsubmitter: IJSHTMLElement;
  24303. procedure _Setsubmitter(const aValue: IJSHTMLElement);
  24304. property submitter: IJSHTMLElement read _Getsubmitter write _Setsubmitter;
  24305. end;
  24306. TJSSubmitEventInit = class(TJSEventInit,IJSSubmitEventInit)
  24307. Protected
  24308. function _Getsubmitter: IJSHTMLElement;
  24309. procedure _Setsubmitter(const aValue: IJSHTMLElement);
  24310. Public
  24311. class function JSClassName: UnicodeString; override;
  24312. class function Cast(const Intf: IJSObject): IJSSubmitEventInit;
  24313. property submitter: IJSHTMLElement read _Getsubmitter write _Setsubmitter;
  24314. end;
  24315. { --------------------------------------------------------------------
  24316. TJSAesCbcParams
  24317. --------------------------------------------------------------------}
  24318. TJSAesCbcParamsRec = record
  24319. iv: IJSBufferSource;
  24320. name: UnicodeString;
  24321. end;
  24322. IJSAesCbcParams = interface(IJSAlgorithm)
  24323. ['{E6CEF4F5-3BD1-3DAD-AFD3-4FA31AA2A621}']
  24324. function _Getiv: IJSBufferSource;
  24325. procedure _Setiv(const aValue: IJSBufferSource);
  24326. property iv: IJSBufferSource read _Getiv write _Setiv;
  24327. end;
  24328. TJSAesCbcParams = class(TJSAlgorithm,IJSAesCbcParams)
  24329. Protected
  24330. function _Getiv: IJSBufferSource;
  24331. procedure _Setiv(const aValue: IJSBufferSource);
  24332. Public
  24333. class function JSClassName: UnicodeString; override;
  24334. class function Cast(const Intf: IJSObject): IJSAesCbcParams;
  24335. property iv: IJSBufferSource read _Getiv write _Setiv;
  24336. end;
  24337. { --------------------------------------------------------------------
  24338. TJSAesCtrParams
  24339. --------------------------------------------------------------------}
  24340. TJSAesCtrParamsRec = record
  24341. counter: IJSBufferSource;
  24342. length_: Byte;
  24343. name: UnicodeString;
  24344. end;
  24345. IJSAesCtrParams = interface(IJSAlgorithm)
  24346. ['{D9134835-4E49-3DAD-AFD3-4F3F7CD6EA00}']
  24347. function _Getcounter: IJSBufferSource;
  24348. function _Getlength_: Byte;
  24349. procedure _Setcounter(const aValue: IJSBufferSource);
  24350. procedure _Setlength_(const aValue: Byte);
  24351. property counter: IJSBufferSource read _Getcounter write _Setcounter;
  24352. property length_: Byte read _Getlength_ write _Setlength_;
  24353. end;
  24354. TJSAesCtrParams = class(TJSAlgorithm,IJSAesCtrParams)
  24355. Protected
  24356. function _Getcounter: IJSBufferSource;
  24357. function _Getlength_: Byte;
  24358. procedure _Setcounter(const aValue: IJSBufferSource);
  24359. procedure _Setlength_(const aValue: Byte);
  24360. Public
  24361. class function JSClassName: UnicodeString; override;
  24362. class function Cast(const Intf: IJSObject): IJSAesCtrParams;
  24363. property counter: IJSBufferSource read _Getcounter write _Setcounter;
  24364. property length_: Byte read _Getlength_ write _Setlength_;
  24365. end;
  24366. { --------------------------------------------------------------------
  24367. TJSAesGcmParams
  24368. --------------------------------------------------------------------}
  24369. TJSAesGcmParamsRec = record
  24370. iv: IJSBufferSource;
  24371. additionalData: IJSBufferSource;
  24372. tagLength: Byte;
  24373. name: UnicodeString;
  24374. end;
  24375. IJSAesGcmParams = interface(IJSAlgorithm)
  24376. ['{2CEB8808-9697-3934-A9F5-F8BAB73609C3}']
  24377. function _Getiv: IJSBufferSource;
  24378. function _GetadditionalData: IJSBufferSource;
  24379. function _GettagLength: Byte;
  24380. procedure _Setiv(const aValue: IJSBufferSource);
  24381. procedure _SetadditionalData(const aValue: IJSBufferSource);
  24382. procedure _SettagLength(const aValue: Byte);
  24383. property iv: IJSBufferSource read _Getiv write _Setiv;
  24384. property additionalData: IJSBufferSource read _GetadditionalData write _SetadditionalData;
  24385. property tagLength: Byte read _GettagLength write _SettagLength;
  24386. end;
  24387. TJSAesGcmParams = class(TJSAlgorithm,IJSAesGcmParams)
  24388. Protected
  24389. function _Getiv: IJSBufferSource;
  24390. function _GetadditionalData: IJSBufferSource;
  24391. function _GettagLength: Byte;
  24392. procedure _Setiv(const aValue: IJSBufferSource);
  24393. procedure _SetadditionalData(const aValue: IJSBufferSource);
  24394. procedure _SettagLength(const aValue: Byte);
  24395. Public
  24396. class function JSClassName: UnicodeString; override;
  24397. class function Cast(const Intf: IJSObject): IJSAesGcmParams;
  24398. property iv: IJSBufferSource read _Getiv write _Setiv;
  24399. property additionalData: IJSBufferSource read _GetadditionalData write _SetadditionalData;
  24400. property tagLength: Byte read _GettagLength write _SettagLength;
  24401. end;
  24402. { --------------------------------------------------------------------
  24403. TJSHmacImportParams
  24404. --------------------------------------------------------------------}
  24405. TJSHmacImportParamsRec = record
  24406. hash: TAlgorithmIdentifier;
  24407. name: UnicodeString;
  24408. end;
  24409. IJSHmacImportParams = interface(IJSAlgorithm)
  24410. ['{84BBCED8-04AE-3B04-9EF7-F90C53F5B349}']
  24411. function _Gethash: TAlgorithmIdentifier;
  24412. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24413. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24414. end;
  24415. TJSHmacImportParams = class(TJSAlgorithm,IJSHmacImportParams)
  24416. Protected
  24417. function _Gethash: TAlgorithmIdentifier;
  24418. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24419. Public
  24420. class function JSClassName: UnicodeString; override;
  24421. class function Cast(const Intf: IJSObject): IJSHmacImportParams;
  24422. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24423. end;
  24424. { --------------------------------------------------------------------
  24425. TJSPbkdf2Params
  24426. --------------------------------------------------------------------}
  24427. TJSPbkdf2ParamsRec = record
  24428. salt: IJSBufferSource;
  24429. iterations: Cardinal;
  24430. hash: TAlgorithmIdentifier;
  24431. name: UnicodeString;
  24432. end;
  24433. IJSPbkdf2Params = interface(IJSAlgorithm)
  24434. ['{372D73E6-7FA9-3C2D-AFD3-4F8873CE0BF3}']
  24435. function _Getsalt: IJSBufferSource;
  24436. function _Getiterations: Cardinal;
  24437. function _Gethash: TAlgorithmIdentifier;
  24438. procedure _Setsalt(const aValue: IJSBufferSource);
  24439. procedure _Setiterations(const aValue: Cardinal);
  24440. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24441. property salt: IJSBufferSource read _Getsalt write _Setsalt;
  24442. property iterations: Cardinal read _Getiterations write _Setiterations;
  24443. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24444. end;
  24445. TJSPbkdf2Params = class(TJSAlgorithm,IJSPbkdf2Params)
  24446. Protected
  24447. function _Getsalt: IJSBufferSource;
  24448. function _Getiterations: Cardinal;
  24449. function _Gethash: TAlgorithmIdentifier;
  24450. procedure _Setsalt(const aValue: IJSBufferSource);
  24451. procedure _Setiterations(const aValue: Cardinal);
  24452. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24453. Public
  24454. class function JSClassName: UnicodeString; override;
  24455. class function Cast(const Intf: IJSObject): IJSPbkdf2Params;
  24456. property salt: IJSBufferSource read _Getsalt write _Setsalt;
  24457. property iterations: Cardinal read _Getiterations write _Setiterations;
  24458. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24459. end;
  24460. { --------------------------------------------------------------------
  24461. TJSAesKeyGenParams
  24462. --------------------------------------------------------------------}
  24463. TJSAesKeyGenParamsRec = record
  24464. length_: Word;
  24465. name: UnicodeString;
  24466. end;
  24467. IJSAesKeyGenParams = interface(IJSAlgorithm)
  24468. ['{2C6B5B9E-2A22-3352-BB5B-60A99E96BEF3}']
  24469. function _Getlength_: Word;
  24470. procedure _Setlength_(const aValue: Word);
  24471. property length_: Word read _Getlength_ write _Setlength_;
  24472. end;
  24473. TJSAesKeyGenParams = class(TJSAlgorithm,IJSAesKeyGenParams)
  24474. Protected
  24475. function _Getlength_: Word;
  24476. procedure _Setlength_(const aValue: Word);
  24477. Public
  24478. class function JSClassName: UnicodeString; override;
  24479. class function Cast(const Intf: IJSObject): IJSAesKeyGenParams;
  24480. property length_: Word read _Getlength_ write _Setlength_;
  24481. end;
  24482. { --------------------------------------------------------------------
  24483. TJSHmacKeyGenParams
  24484. --------------------------------------------------------------------}
  24485. TJSHmacKeyGenParamsRec = record
  24486. hash: TAlgorithmIdentifier;
  24487. length_: Cardinal;
  24488. name: UnicodeString;
  24489. end;
  24490. IJSHmacKeyGenParams = interface(IJSAlgorithm)
  24491. ['{7A5DF592-0570-3A31-9EF7-F90C53F5B34C}']
  24492. function _Gethash: TAlgorithmIdentifier;
  24493. function _Getlength_: Cardinal;
  24494. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24495. procedure _Setlength_(const aValue: Cardinal);
  24496. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24497. property length_: Cardinal read _Getlength_ write _Setlength_;
  24498. end;
  24499. TJSHmacKeyGenParams = class(TJSAlgorithm,IJSHmacKeyGenParams)
  24500. Protected
  24501. function _Gethash: TAlgorithmIdentifier;
  24502. function _Getlength_: Cardinal;
  24503. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24504. procedure _Setlength_(const aValue: Cardinal);
  24505. Public
  24506. class function JSClassName: UnicodeString; override;
  24507. class function Cast(const Intf: IJSObject): IJSHmacKeyGenParams;
  24508. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24509. property length_: Cardinal read _Getlength_ write _Setlength_;
  24510. end;
  24511. { --------------------------------------------------------------------
  24512. TJSRsaHashedKeyGenParams
  24513. --------------------------------------------------------------------}
  24514. TJSRsaHashedKeyGenParamsRec = record
  24515. modulusLength: Cardinal;
  24516. publicExponent: TBigInteger;
  24517. hash: TAlgorithmIdentifier;
  24518. name: UnicodeString;
  24519. end;
  24520. IJSRsaHashedKeyGenParams = interface(IJSAlgorithm)
  24521. ['{77F491EB-E739-33A5-AFAC-C2F5EC3AE46C}']
  24522. function _GetmodulusLength: Cardinal;
  24523. function _GetpublicExponent: TBigInteger;
  24524. function _Gethash: TAlgorithmIdentifier;
  24525. procedure _SetmodulusLength(const aValue: Cardinal);
  24526. procedure _SetpublicExponent(const aValue: TBigInteger);
  24527. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24528. property modulusLength: Cardinal read _GetmodulusLength write _SetmodulusLength;
  24529. property publicExponent: TBigInteger read _GetpublicExponent write _SetpublicExponent;
  24530. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24531. end;
  24532. TJSRsaHashedKeyGenParams = class(TJSAlgorithm,IJSRsaHashedKeyGenParams)
  24533. Protected
  24534. function _GetmodulusLength: Cardinal;
  24535. function _GetpublicExponent: TBigInteger;
  24536. function _Gethash: TAlgorithmIdentifier;
  24537. procedure _SetmodulusLength(const aValue: Cardinal);
  24538. procedure _SetpublicExponent(const aValue: TBigInteger);
  24539. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24540. Public
  24541. class function JSClassName: UnicodeString; override;
  24542. class function Cast(const Intf: IJSObject): IJSRsaHashedKeyGenParams;
  24543. property modulusLength: Cardinal read _GetmodulusLength write _SetmodulusLength;
  24544. property publicExponent: TBigInteger read _GetpublicExponent write _SetpublicExponent;
  24545. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24546. end;
  24547. { --------------------------------------------------------------------
  24548. TJSRsaOaepParams
  24549. --------------------------------------------------------------------}
  24550. TJSRsaOaepParamsRec = record
  24551. label_: IJSBufferSource;
  24552. name: UnicodeString;
  24553. end;
  24554. IJSRsaOaepParams = interface(IJSAlgorithm)
  24555. ['{668F86A0-6419-3FFC-B985-AA7C58817248}']
  24556. function _Getlabel_: IJSBufferSource;
  24557. procedure _Setlabel_(const aValue: IJSBufferSource);
  24558. property label_: IJSBufferSource read _Getlabel_ write _Setlabel_;
  24559. end;
  24560. TJSRsaOaepParams = class(TJSAlgorithm,IJSRsaOaepParams)
  24561. Protected
  24562. function _Getlabel_: IJSBufferSource;
  24563. procedure _Setlabel_(const aValue: IJSBufferSource);
  24564. Public
  24565. class function JSClassName: UnicodeString; override;
  24566. class function Cast(const Intf: IJSObject): IJSRsaOaepParams;
  24567. property label_: IJSBufferSource read _Getlabel_ write _Setlabel_;
  24568. end;
  24569. { --------------------------------------------------------------------
  24570. TJSRsaPssParams
  24571. --------------------------------------------------------------------}
  24572. TJSRsaPssParamsRec = record
  24573. saltLength: Cardinal;
  24574. name: UnicodeString;
  24575. end;
  24576. IJSRsaPssParams = interface(IJSAlgorithm)
  24577. ['{5ACF0BAF-ED51-3DAD-AFD3-5038596EE977}']
  24578. function _GetsaltLength: Cardinal;
  24579. procedure _SetsaltLength(const aValue: Cardinal);
  24580. property saltLength: Cardinal read _GetsaltLength write _SetsaltLength;
  24581. end;
  24582. TJSRsaPssParams = class(TJSAlgorithm,IJSRsaPssParams)
  24583. Protected
  24584. function _GetsaltLength: Cardinal;
  24585. procedure _SetsaltLength(const aValue: Cardinal);
  24586. Public
  24587. class function JSClassName: UnicodeString; override;
  24588. class function Cast(const Intf: IJSObject): IJSRsaPssParams;
  24589. property saltLength: Cardinal read _GetsaltLength write _SetsaltLength;
  24590. end;
  24591. { --------------------------------------------------------------------
  24592. TJSEcKeyGenParams
  24593. --------------------------------------------------------------------}
  24594. TJSEcKeyGenParamsRec = record
  24595. namedCurve: TNamedCurve;
  24596. name: UnicodeString;
  24597. end;
  24598. IJSEcKeyGenParams = interface(IJSAlgorithm)
  24599. ['{2B724A22-C16F-3885-A8E8-3552F8D32636}']
  24600. function _GetnamedCurve: TNamedCurve;
  24601. procedure _SetnamedCurve(const aValue: TNamedCurve);
  24602. property namedCurve: TNamedCurve read _GetnamedCurve write _SetnamedCurve;
  24603. end;
  24604. TJSEcKeyGenParams = class(TJSAlgorithm,IJSEcKeyGenParams)
  24605. Protected
  24606. function _GetnamedCurve: TNamedCurve;
  24607. procedure _SetnamedCurve(const aValue: TNamedCurve);
  24608. Public
  24609. class function JSClassName: UnicodeString; override;
  24610. class function Cast(const Intf: IJSObject): IJSEcKeyGenParams;
  24611. property namedCurve: TNamedCurve read _GetnamedCurve write _SetnamedCurve;
  24612. end;
  24613. { --------------------------------------------------------------------
  24614. TJSAesDerivedKeyParams
  24615. --------------------------------------------------------------------}
  24616. TJSAesDerivedKeyParamsRec = record
  24617. length_: Cardinal;
  24618. name: UnicodeString;
  24619. end;
  24620. IJSAesDerivedKeyParams = interface(IJSAlgorithm)
  24621. ['{04477F75-163E-37D6-846D-42F4F319A8F8}']
  24622. function _Getlength_: Cardinal;
  24623. procedure _Setlength_(const aValue: Cardinal);
  24624. property length_: Cardinal read _Getlength_ write _Setlength_;
  24625. end;
  24626. TJSAesDerivedKeyParams = class(TJSAlgorithm,IJSAesDerivedKeyParams)
  24627. Protected
  24628. function _Getlength_: Cardinal;
  24629. procedure _Setlength_(const aValue: Cardinal);
  24630. Public
  24631. class function JSClassName: UnicodeString; override;
  24632. class function Cast(const Intf: IJSObject): IJSAesDerivedKeyParams;
  24633. property length_: Cardinal read _Getlength_ write _Setlength_;
  24634. end;
  24635. { --------------------------------------------------------------------
  24636. TJSEcdhKeyDeriveParams
  24637. --------------------------------------------------------------------}
  24638. TJSEcdhKeyDeriveParamsRec = record
  24639. public: TJSCryptoKey;
  24640. name: UnicodeString;
  24641. end;
  24642. IJSEcdhKeyDeriveParams = interface(IJSAlgorithm)
  24643. ['{FE5A583E-7CDB-33DD-BE79-42F4F319A801}']
  24644. function _Getpublic: IJSCryptoKey;
  24645. procedure _Setpublic(const aValue: IJSCryptoKey);
  24646. property public: IJSCryptoKey read _Getpublic write _Setpublic;
  24647. end;
  24648. TJSEcdhKeyDeriveParams = class(TJSAlgorithm,IJSEcdhKeyDeriveParams)
  24649. Protected
  24650. function _Getpublic: IJSCryptoKey;
  24651. procedure _Setpublic(const aValue: IJSCryptoKey);
  24652. Public
  24653. class function JSClassName: UnicodeString; override;
  24654. class function Cast(const Intf: IJSObject): IJSEcdhKeyDeriveParams;
  24655. property public: IJSCryptoKey read _Getpublic write _Setpublic;
  24656. end;
  24657. { --------------------------------------------------------------------
  24658. TJSDhImportKeyParams
  24659. --------------------------------------------------------------------}
  24660. TJSDhImportKeyParamsRec = record
  24661. prime: TBigInteger;
  24662. generator: TBigInteger;
  24663. name: UnicodeString;
  24664. end;
  24665. IJSDhImportKeyParams = interface(IJSAlgorithm)
  24666. ['{B40FF391-49C2-3DBF-BD0B-D6D76AA4BAAF}']
  24667. function _Getprime: TBigInteger;
  24668. function _Getgenerator: TBigInteger;
  24669. procedure _Setprime(const aValue: TBigInteger);
  24670. procedure _Setgenerator(const aValue: TBigInteger);
  24671. property prime: TBigInteger read _Getprime write _Setprime;
  24672. property generator: TBigInteger read _Getgenerator write _Setgenerator;
  24673. end;
  24674. TJSDhImportKeyParams = class(TJSAlgorithm,IJSDhImportKeyParams)
  24675. Protected
  24676. function _Getprime: TBigInteger;
  24677. function _Getgenerator: TBigInteger;
  24678. procedure _Setprime(const aValue: TBigInteger);
  24679. procedure _Setgenerator(const aValue: TBigInteger);
  24680. Public
  24681. class function JSClassName: UnicodeString; override;
  24682. class function Cast(const Intf: IJSObject): IJSDhImportKeyParams;
  24683. property prime: TBigInteger read _Getprime write _Setprime;
  24684. property generator: TBigInteger read _Getgenerator write _Setgenerator;
  24685. end;
  24686. { --------------------------------------------------------------------
  24687. TJSEcdsaParams
  24688. --------------------------------------------------------------------}
  24689. TJSEcdsaParamsRec = record
  24690. hash: TAlgorithmIdentifier;
  24691. name: UnicodeString;
  24692. end;
  24693. IJSEcdsaParams = interface(IJSAlgorithm)
  24694. ['{EEDFD5AA-1542-34F3-99A8-F06C92542131}']
  24695. function _Gethash: TAlgorithmIdentifier;
  24696. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24697. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24698. end;
  24699. TJSEcdsaParams = class(TJSAlgorithm,IJSEcdsaParams)
  24700. Protected
  24701. function _Gethash: TAlgorithmIdentifier;
  24702. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24703. Public
  24704. class function JSClassName: UnicodeString; override;
  24705. class function Cast(const Intf: IJSObject): IJSEcdsaParams;
  24706. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24707. end;
  24708. { --------------------------------------------------------------------
  24709. TJSEcKeyImportParams
  24710. --------------------------------------------------------------------}
  24711. TJSEcKeyImportParamsRec = record
  24712. namedCurve: TNamedCurve;
  24713. name: UnicodeString;
  24714. end;
  24715. IJSEcKeyImportParams = interface(IJSAlgorithm)
  24716. ['{AD972446-AB3C-3666-A90B-D6D76AA4F1AD}']
  24717. function _GetnamedCurve: TNamedCurve;
  24718. procedure _SetnamedCurve(const aValue: TNamedCurve);
  24719. property namedCurve: TNamedCurve read _GetnamedCurve write _SetnamedCurve;
  24720. end;
  24721. TJSEcKeyImportParams = class(TJSAlgorithm,IJSEcKeyImportParams)
  24722. Protected
  24723. function _GetnamedCurve: TNamedCurve;
  24724. procedure _SetnamedCurve(const aValue: TNamedCurve);
  24725. Public
  24726. class function JSClassName: UnicodeString; override;
  24727. class function Cast(const Intf: IJSObject): IJSEcKeyImportParams;
  24728. property namedCurve: TNamedCurve read _GetnamedCurve write _SetnamedCurve;
  24729. end;
  24730. { --------------------------------------------------------------------
  24731. TJSHkdfParams
  24732. --------------------------------------------------------------------}
  24733. TJSHkdfParamsRec = record
  24734. hash: TAlgorithmIdentifier;
  24735. salt: IJSBufferSource;
  24736. info: IJSBufferSource;
  24737. name: UnicodeString;
  24738. end;
  24739. IJSHkdfParams = interface(IJSAlgorithm)
  24740. ['{5132C603-A47D-3CC2-933A-2CD24632CE52}']
  24741. function _Gethash: TAlgorithmIdentifier;
  24742. function _Getsalt: IJSBufferSource;
  24743. function _Getinfo: IJSBufferSource;
  24744. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24745. procedure _Setsalt(const aValue: IJSBufferSource);
  24746. procedure _Setinfo(const aValue: IJSBufferSource);
  24747. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24748. property salt: IJSBufferSource read _Getsalt write _Setsalt;
  24749. property info: IJSBufferSource read _Getinfo write _Setinfo;
  24750. end;
  24751. TJSHkdfParams = class(TJSAlgorithm,IJSHkdfParams)
  24752. Protected
  24753. function _Gethash: TAlgorithmIdentifier;
  24754. function _Getsalt: IJSBufferSource;
  24755. function _Getinfo: IJSBufferSource;
  24756. procedure _Sethash(const aValue: TAlgorithmIdentifier);
  24757. procedure _Setsalt(const aValue: IJSBufferSource);
  24758. procedure _Setinfo(const aValue: IJSBufferSource);
  24759. Public
  24760. class function JSClassName: UnicodeString; override;
  24761. class function Cast(const Intf: IJSObject): IJSHkdfParams;
  24762. property hash: TAlgorithmIdentifier read _Gethash write _Sethash;
  24763. property salt: IJSBufferSource read _Getsalt write _Setsalt;
  24764. property info: IJSBufferSource read _Getinfo write _Setinfo;
  24765. end;
  24766. { --------------------------------------------------------------------
  24767. TJSTaskPriorityChangeEventInit
  24768. --------------------------------------------------------------------}
  24769. TJSTaskPriorityChangeEventInitRec = record
  24770. previousPriority: TTaskPriority;
  24771. bubbles: Boolean;
  24772. cancelable: Boolean;
  24773. composed: Boolean;
  24774. end;
  24775. IJSTaskPriorityChangeEventInit = interface(IJSEventInit)
  24776. ['{BAF26D01-B120-3C38-85FC-4122A076A9FA}']
  24777. function _GetpreviousPriority: TTaskPriority;
  24778. procedure _SetpreviousPriority(const aValue: TTaskPriority);
  24779. property previousPriority: TTaskPriority read _GetpreviousPriority write _SetpreviousPriority;
  24780. end;
  24781. TJSTaskPriorityChangeEventInit = class(TJSEventInit,IJSTaskPriorityChangeEventInit)
  24782. Protected
  24783. function _GetpreviousPriority: TTaskPriority;
  24784. procedure _SetpreviousPriority(const aValue: TTaskPriority);
  24785. Public
  24786. class function JSClassName: UnicodeString; override;
  24787. class function Cast(const Intf: IJSObject): IJSTaskPriorityChangeEventInit;
  24788. property previousPriority: TTaskPriority read _GetpreviousPriority write _SetpreviousPriority;
  24789. end;
  24790. { --------------------------------------------------------------------
  24791. TJSTCPServerSocketEventInit
  24792. --------------------------------------------------------------------}
  24793. TJSTCPServerSocketEventInitRec = record
  24794. socket: TJSTCPSocket;
  24795. bubbles: Boolean;
  24796. cancelable: Boolean;
  24797. composed: Boolean;
  24798. end;
  24799. IJSTCPServerSocketEventInit = interface(IJSEventInit)
  24800. ['{D87E61E9-1B61-3161-9025-6F1C347A2DE3}']
  24801. function _Getsocket: IJSTCPSocket;
  24802. procedure _Setsocket(const aValue: IJSTCPSocket);
  24803. property socket: IJSTCPSocket read _Getsocket write _Setsocket;
  24804. end;
  24805. TJSTCPServerSocketEventInit = class(TJSEventInit,IJSTCPServerSocketEventInit)
  24806. Protected
  24807. function _Getsocket: IJSTCPSocket;
  24808. procedure _Setsocket(const aValue: IJSTCPSocket);
  24809. Public
  24810. class function JSClassName: UnicodeString; override;
  24811. class function Cast(const Intf: IJSObject): IJSTCPServerSocketEventInit;
  24812. property socket: IJSTCPSocket read _Getsocket write _Setsocket;
  24813. end;
  24814. { --------------------------------------------------------------------
  24815. TJSTCPSocketErrorEventInit
  24816. --------------------------------------------------------------------}
  24817. TJSTCPSocketErrorEventInitRec = record
  24818. name: UnicodeString;
  24819. message: UnicodeString;
  24820. errorCode: Cardinal;
  24821. bubbles: Boolean;
  24822. cancelable: Boolean;
  24823. composed: Boolean;
  24824. end;
  24825. IJSTCPSocketErrorEventInit = interface(IJSEventInit)
  24826. ['{43C725A9-BBEC-3F47-A042-53EE9A2A38E0}']
  24827. function _Getname: UnicodeString;
  24828. function _Getmessage: UnicodeString;
  24829. function _GeterrorCode: Cardinal;
  24830. procedure _Setname(const aValue: UnicodeString);
  24831. procedure _Setmessage(const aValue: UnicodeString);
  24832. procedure _SeterrorCode(const aValue: Cardinal);
  24833. property name: UnicodeString read _Getname write _Setname;
  24834. property message: UnicodeString read _Getmessage write _Setmessage;
  24835. property errorCode: Cardinal read _GeterrorCode write _SeterrorCode;
  24836. end;
  24837. TJSTCPSocketErrorEventInit = class(TJSEventInit,IJSTCPSocketErrorEventInit)
  24838. Protected
  24839. function _Getname: UnicodeString;
  24840. function _Getmessage: UnicodeString;
  24841. function _GeterrorCode: Cardinal;
  24842. procedure _Setname(const aValue: UnicodeString);
  24843. procedure _Setmessage(const aValue: UnicodeString);
  24844. procedure _SeterrorCode(const aValue: Cardinal);
  24845. Public
  24846. class function JSClassName: UnicodeString; override;
  24847. class function Cast(const Intf: IJSObject): IJSTCPSocketErrorEventInit;
  24848. property name: UnicodeString read _Getname write _Setname;
  24849. property message: UnicodeString read _Getmessage write _Setmessage;
  24850. property errorCode: Cardinal read _GeterrorCode write _SeterrorCode;
  24851. end;
  24852. { --------------------------------------------------------------------
  24853. TJSTCPSocketEventInit
  24854. --------------------------------------------------------------------}
  24855. TJSTCPSocketEventInitRec = record
  24856. data: Variant;
  24857. bubbles: Boolean;
  24858. cancelable: Boolean;
  24859. composed: Boolean;
  24860. end;
  24861. IJSTCPSocketEventInit = interface(IJSEventInit)
  24862. ['{3934054D-01C9-3A05-899B-4B371FD3392D}']
  24863. function _Getdata: Variant;
  24864. procedure _Setdata(const aValue: Variant);
  24865. property data: Variant read _Getdata write _Setdata;
  24866. end;
  24867. TJSTCPSocketEventInit = class(TJSEventInit,IJSTCPSocketEventInit)
  24868. Protected
  24869. function _Getdata: Variant;
  24870. procedure _Setdata(const aValue: Variant);
  24871. Public
  24872. class function JSClassName: UnicodeString; override;
  24873. class function Cast(const Intf: IJSObject): IJSTCPSocketEventInit;
  24874. property data: Variant read _Getdata write _Setdata;
  24875. end;
  24876. { --------------------------------------------------------------------
  24877. TJSToggleEventInit
  24878. --------------------------------------------------------------------}
  24879. TJSToggleEventInitRec = record
  24880. oldState: UnicodeString;
  24881. newState: UnicodeString;
  24882. bubbles: Boolean;
  24883. cancelable: Boolean;
  24884. composed: Boolean;
  24885. end;
  24886. IJSToggleEventInit = interface(IJSEventInit)
  24887. ['{F6067FEA-5DFB-326E-A218-8FE99ED601F2}']
  24888. function _GetoldState: UnicodeString;
  24889. function _GetnewState: UnicodeString;
  24890. procedure _SetoldState(const aValue: UnicodeString);
  24891. procedure _SetnewState(const aValue: UnicodeString);
  24892. property oldState: UnicodeString read _GetoldState write _SetoldState;
  24893. property newState: UnicodeString read _GetnewState write _SetnewState;
  24894. end;
  24895. TJSToggleEventInit = class(TJSEventInit,IJSToggleEventInit)
  24896. Protected
  24897. function _GetoldState: UnicodeString;
  24898. function _GetnewState: UnicodeString;
  24899. procedure _SetoldState(const aValue: UnicodeString);
  24900. procedure _SetnewState(const aValue: UnicodeString);
  24901. Public
  24902. class function JSClassName: UnicodeString; override;
  24903. class function Cast(const Intf: IJSObject): IJSToggleEventInit;
  24904. property oldState: UnicodeString read _GetoldState write _SetoldState;
  24905. property newState: UnicodeString read _GetnewState write _SetnewState;
  24906. end;
  24907. { --------------------------------------------------------------------
  24908. TJSTrackEventInit
  24909. --------------------------------------------------------------------}
  24910. // Union of VideoTrack, AudioTrack, TextTrack
  24911. TTrackEventInit_track_Type = Variant;
  24912. TJSTrackEventInitRec = record
  24913. track: TTrackEventInit_track_Type;
  24914. bubbles: Boolean;
  24915. cancelable: Boolean;
  24916. composed: Boolean;
  24917. end;
  24918. IJSTrackEventInit = interface(IJSEventInit)
  24919. ['{A28DA2FA-7477-37F3-BF8E-FD5212E71869}']
  24920. function _Gettrack: TTrackEventInit_track_Type;
  24921. procedure _Settrack(const aValue: TTrackEventInit_track_Type);
  24922. property track: TTrackEventInit_track_Type read _Gettrack write _Settrack;
  24923. end;
  24924. TJSTrackEventInit = class(TJSEventInit,IJSTrackEventInit)
  24925. Protected
  24926. function _Gettrack: TTrackEventInit_track_Type;
  24927. procedure _Settrack(const aValue: TTrackEventInit_track_Type);
  24928. Public
  24929. class function JSClassName: UnicodeString; override;
  24930. class function Cast(const Intf: IJSObject): IJSTrackEventInit;
  24931. property track: TTrackEventInit_track_Type read _Gettrack write _Settrack;
  24932. end;
  24933. { --------------------------------------------------------------------
  24934. TJSTransitionEventInit
  24935. --------------------------------------------------------------------}
  24936. TJSTransitionEventInitRec = record
  24937. propertyName: UnicodeString;
  24938. elapsedTime: Single;
  24939. pseudoElement: UnicodeString;
  24940. bubbles: Boolean;
  24941. cancelable: Boolean;
  24942. composed: Boolean;
  24943. end;
  24944. IJSTransitionEventInit = interface(IJSEventInit)
  24945. ['{91F01D05-C41F-3FED-8C3B-544DE77E4724}']
  24946. function _GetpropertyName: UnicodeString;
  24947. function _GetelapsedTime: Single;
  24948. function _GetpseudoElement: UnicodeString;
  24949. procedure _SetpropertyName(const aValue: UnicodeString);
  24950. procedure _SetelapsedTime(const aValue: Single);
  24951. procedure _SetpseudoElement(const aValue: UnicodeString);
  24952. property propertyName: UnicodeString read _GetpropertyName write _SetpropertyName;
  24953. property elapsedTime: Single read _GetelapsedTime write _SetelapsedTime;
  24954. property pseudoElement: UnicodeString read _GetpseudoElement write _SetpseudoElement;
  24955. end;
  24956. TJSTransitionEventInit = class(TJSEventInit,IJSTransitionEventInit)
  24957. Protected
  24958. function _GetpropertyName: UnicodeString;
  24959. function _GetelapsedTime: Single;
  24960. function _GetpseudoElement: UnicodeString;
  24961. procedure _SetpropertyName(const aValue: UnicodeString);
  24962. procedure _SetelapsedTime(const aValue: Single);
  24963. procedure _SetpseudoElement(const aValue: UnicodeString);
  24964. Public
  24965. class function JSClassName: UnicodeString; override;
  24966. class function Cast(const Intf: IJSObject): IJSTransitionEventInit;
  24967. property propertyName: UnicodeString read _GetpropertyName write _SetpropertyName;
  24968. property elapsedTime: Single read _GetelapsedTime write _SetelapsedTime;
  24969. property pseudoElement: UnicodeString read _GetpseudoElement write _SetpseudoElement;
  24970. end;
  24971. { --------------------------------------------------------------------
  24972. TJSUDPMessageEventInit
  24973. --------------------------------------------------------------------}
  24974. TJSUDPMessageEventInitRec = record
  24975. remoteAddress: UnicodeString;
  24976. remotePort: Word;
  24977. data: Variant;
  24978. bubbles: Boolean;
  24979. cancelable: Boolean;
  24980. composed: Boolean;
  24981. end;
  24982. IJSUDPMessageEventInit = interface(IJSEventInit)
  24983. ['{1DA7B9AD-5BBB-3EDB-A197-4034D3927720}']
  24984. function _GetremoteAddress: UnicodeString;
  24985. function _GetremotePort: Word;
  24986. function _Getdata: Variant;
  24987. procedure _SetremoteAddress(const aValue: UnicodeString);
  24988. procedure _SetremotePort(const aValue: Word);
  24989. procedure _Setdata(const aValue: Variant);
  24990. property remoteAddress: UnicodeString read _GetremoteAddress write _SetremoteAddress;
  24991. property remotePort: Word read _GetremotePort write _SetremotePort;
  24992. property data: Variant read _Getdata write _Setdata;
  24993. end;
  24994. TJSUDPMessageEventInit = class(TJSEventInit,IJSUDPMessageEventInit)
  24995. Protected
  24996. function _GetremoteAddress: UnicodeString;
  24997. function _GetremotePort: Word;
  24998. function _Getdata: Variant;
  24999. procedure _SetremoteAddress(const aValue: UnicodeString);
  25000. procedure _SetremotePort(const aValue: Word);
  25001. procedure _Setdata(const aValue: Variant);
  25002. Public
  25003. class function JSClassName: UnicodeString; override;
  25004. class function Cast(const Intf: IJSObject): IJSUDPMessageEventInit;
  25005. property remoteAddress: UnicodeString read _GetremoteAddress write _SetremoteAddress;
  25006. property remotePort: Word read _GetremotePort write _SetremotePort;
  25007. property data: Variant read _Getdata write _Setdata;
  25008. end;
  25009. { --------------------------------------------------------------------
  25010. TJSUIEventInit
  25011. --------------------------------------------------------------------}
  25012. TJSUIEventInitRec = record
  25013. view: TJSWindow;
  25014. detail: LongInt;
  25015. bubbles: Boolean;
  25016. cancelable: Boolean;
  25017. composed: Boolean;
  25018. end;
  25019. IJSUIEventInit = interface(IJSEventInit)
  25020. ['{7A60C9B8-69FA-3FC6-BDA8-E8AD03E09E8A}']
  25021. function _Getview: IJSWindow;
  25022. function _Getdetail: LongInt;
  25023. procedure _Setview(const aValue: IJSWindow);
  25024. procedure _Setdetail(const aValue: LongInt);
  25025. property view: IJSWindow read _Getview write _Setview;
  25026. property detail: LongInt read _Getdetail write _Setdetail;
  25027. end;
  25028. TJSUIEventInit = class(TJSEventInit,IJSUIEventInit)
  25029. Protected
  25030. function _Getview: IJSWindow;
  25031. function _Getdetail: LongInt;
  25032. procedure _Setview(const aValue: IJSWindow);
  25033. procedure _Setdetail(const aValue: LongInt);
  25034. Public
  25035. class function JSClassName: UnicodeString; override;
  25036. class function Cast(const Intf: IJSObject): IJSUIEventInit;
  25037. property view: IJSWindow read _Getview write _Setview;
  25038. property detail: LongInt read _Getdetail write _Setdetail;
  25039. end;
  25040. { --------------------------------------------------------------------
  25041. TJSUserProximityEventInit
  25042. --------------------------------------------------------------------}
  25043. TJSUserProximityEventInitRec = record
  25044. near: Boolean;
  25045. bubbles: Boolean;
  25046. cancelable: Boolean;
  25047. composed: Boolean;
  25048. end;
  25049. IJSUserProximityEventInit = interface(IJSEventInit)
  25050. ['{AC25D097-3AF3-39EF-9CA2-77D7F3BF8EFD}']
  25051. function _Getnear: Boolean;
  25052. procedure _Setnear(const aValue: Boolean);
  25053. property near: Boolean read _Getnear write _Setnear;
  25054. end;
  25055. TJSUserProximityEventInit = class(TJSEventInit,IJSUserProximityEventInit)
  25056. Protected
  25057. function _Getnear: Boolean;
  25058. procedure _Setnear(const aValue: Boolean);
  25059. Public
  25060. class function JSClassName: UnicodeString; override;
  25061. class function Cast(const Intf: IJSObject): IJSUserProximityEventInit;
  25062. property near: Boolean read _Getnear write _Setnear;
  25063. end;
  25064. { --------------------------------------------------------------------
  25065. TJSVRDisplayEventInit
  25066. --------------------------------------------------------------------}
  25067. TJSVRDisplayEventInitRec = record
  25068. display: TJSVRDisplay;
  25069. reason: TVRDisplayEventReason;
  25070. bubbles: Boolean;
  25071. cancelable: Boolean;
  25072. composed: Boolean;
  25073. end;
  25074. IJSVRDisplayEventInit = interface(IJSEventInit)
  25075. ['{3070C61D-157C-3D15-899B-4B371FD3393C}']
  25076. function _Getdisplay: IJSVRDisplay;
  25077. function _Getreason: TVRDisplayEventReason;
  25078. procedure _Setdisplay(const aValue: IJSVRDisplay);
  25079. procedure _Setreason(const aValue: TVRDisplayEventReason);
  25080. property display: IJSVRDisplay read _Getdisplay write _Setdisplay;
  25081. property reason: TVRDisplayEventReason read _Getreason write _Setreason;
  25082. end;
  25083. TJSVRDisplayEventInit = class(TJSEventInit,IJSVRDisplayEventInit)
  25084. Protected
  25085. function _Getdisplay: IJSVRDisplay;
  25086. function _Getreason: TVRDisplayEventReason;
  25087. procedure _Setdisplay(const aValue: IJSVRDisplay);
  25088. procedure _Setreason(const aValue: TVRDisplayEventReason);
  25089. Public
  25090. class function JSClassName: UnicodeString; override;
  25091. class function Cast(const Intf: IJSObject): IJSVRDisplayEventInit;
  25092. property display: IJSVRDisplay read _Getdisplay write _Setdisplay;
  25093. property reason: TVRDisplayEventReason read _Getreason write _Setreason;
  25094. end;
  25095. { --------------------------------------------------------------------
  25096. TJSWaveShaperOptions
  25097. --------------------------------------------------------------------}
  25098. TJSWaveShaperOptionsRec = record
  25099. curve: TSingleDynArray;
  25100. oversample: TOverSampleType;
  25101. channelCount: Cardinal;
  25102. channelCountMode: TChannelCountMode;
  25103. channelInterpretation: TChannelInterpretation;
  25104. end;
  25105. IJSWaveShaperOptions = interface(IJSAudioNodeOptions)
  25106. ['{6FB313ED-B797-320E-A088-CFD1AA6CCD30}']
  25107. function _Getcurve: TSingleDynArray;
  25108. function _Getoversample: TOverSampleType;
  25109. procedure _Setcurve(const aValue: TSingleDynArray);
  25110. procedure _Setoversample(const aValue: TOverSampleType);
  25111. property curve: TSingleDynArray read _Getcurve write _Setcurve;
  25112. property oversample: TOverSampleType read _Getoversample write _Setoversample;
  25113. end;
  25114. TJSWaveShaperOptions = class(TJSAudioNodeOptions,IJSWaveShaperOptions)
  25115. Protected
  25116. function _Getcurve: TSingleDynArray;
  25117. function _Getoversample: TOverSampleType;
  25118. procedure _Setcurve(const aValue: TSingleDynArray);
  25119. procedure _Setoversample(const aValue: TOverSampleType);
  25120. Public
  25121. class function JSClassName: UnicodeString; override;
  25122. class function Cast(const Intf: IJSObject): IJSWaveShaperOptions;
  25123. property curve: TSingleDynArray read _Getcurve write _Setcurve;
  25124. property oversample: TOverSampleType read _Getoversample write _Setoversample;
  25125. end;
  25126. { --------------------------------------------------------------------
  25127. TJSPublicKeyCredentialRpEntity
  25128. --------------------------------------------------------------------}
  25129. TJSPublicKeyCredentialRpEntityRec = record
  25130. id: UnicodeString;
  25131. name: UnicodeString;
  25132. end;
  25133. IJSPublicKeyCredentialRpEntity = interface(IJSPublicKeyCredentialEntity)
  25134. ['{1E1885FB-11D4-3187-A659-4B825F1AB35B}']
  25135. function _Getid: UnicodeString;
  25136. procedure _Setid(const aValue: UnicodeString);
  25137. property id: UnicodeString read _Getid write _Setid;
  25138. end;
  25139. TJSPublicKeyCredentialRpEntity = class(TJSPublicKeyCredentialEntity,IJSPublicKeyCredentialRpEntity)
  25140. Protected
  25141. function _Getid: UnicodeString;
  25142. procedure _Setid(const aValue: UnicodeString);
  25143. Public
  25144. class function JSClassName: UnicodeString; override;
  25145. class function Cast(const Intf: IJSObject): IJSPublicKeyCredentialRpEntity;
  25146. property id: UnicodeString read _Getid write _Setid;
  25147. end;
  25148. { --------------------------------------------------------------------
  25149. TJSPublicKeyCredentialUserEntity
  25150. --------------------------------------------------------------------}
  25151. TJSPublicKeyCredentialUserEntityRec = record
  25152. id: IJSBufferSource;
  25153. displayName: UnicodeString;
  25154. name: UnicodeString;
  25155. end;
  25156. IJSPublicKeyCredentialUserEntity = interface(IJSPublicKeyCredentialEntity)
  25157. ['{112B2A1E-B374-3622-8668-D6B0819F4B41}']
  25158. function _Getid: IJSBufferSource;
  25159. function _GetdisplayName: UnicodeString;
  25160. procedure _Setid(const aValue: IJSBufferSource);
  25161. procedure _SetdisplayName(const aValue: UnicodeString);
  25162. property id: IJSBufferSource read _Getid write _Setid;
  25163. property displayName: UnicodeString read _GetdisplayName write _SetdisplayName;
  25164. end;
  25165. TJSPublicKeyCredentialUserEntity = class(TJSPublicKeyCredentialEntity,IJSPublicKeyCredentialUserEntity)
  25166. Protected
  25167. function _Getid: IJSBufferSource;
  25168. function _GetdisplayName: UnicodeString;
  25169. procedure _Setid(const aValue: IJSBufferSource);
  25170. procedure _SetdisplayName(const aValue: UnicodeString);
  25171. Public
  25172. class function JSClassName: UnicodeString; override;
  25173. class function Cast(const Intf: IJSObject): IJSPublicKeyCredentialUserEntity;
  25174. property id: IJSBufferSource read _Getid write _Setid;
  25175. property displayName: UnicodeString read _GetdisplayName write _SetdisplayName;
  25176. end;
  25177. { --------------------------------------------------------------------
  25178. TJSWebGLContextEventInit
  25179. --------------------------------------------------------------------}
  25180. TJSWebGLContextEventInitRec = record
  25181. statusMessage: UnicodeString;
  25182. bubbles: Boolean;
  25183. cancelable: Boolean;
  25184. composed: Boolean;
  25185. end;
  25186. IJSWebGLContextEventInit = interface(IJSEventInit)
  25187. ['{DA4E12E7-D4C8-3F26-A90B-1A3D966E3EAA}']
  25188. function _GetstatusMessage: UnicodeString;
  25189. procedure _SetstatusMessage(const aValue: UnicodeString);
  25190. property statusMessage: UnicodeString read _GetstatusMessage write _SetstatusMessage;
  25191. end;
  25192. TJSWebGLContextEventInit = class(TJSEventInit,IJSWebGLContextEventInit)
  25193. Protected
  25194. function _GetstatusMessage: UnicodeString;
  25195. procedure _SetstatusMessage(const aValue: UnicodeString);
  25196. Public
  25197. class function JSClassName: UnicodeString; override;
  25198. class function Cast(const Intf: IJSObject): IJSWebGLContextEventInit;
  25199. property statusMessage: UnicodeString read _GetstatusMessage write _SetstatusMessage;
  25200. end;
  25201. { --------------------------------------------------------------------
  25202. TJSGPUDeviceDescriptor
  25203. --------------------------------------------------------------------}
  25204. TGPUFeatureNameDynArray = IJSArray; // array of GPUFeatureName
  25205. TJSGPUDeviceDescriptorRec = record
  25206. requiredFeatures: TGPUFeatureNameDynArray;
  25207. requiredLimits: IJSObject;
  25208. defaultQueue: TJSGPUQueueDescriptor;
  25209. label_: UnicodeString;
  25210. end;
  25211. IJSGPUDeviceDescriptor = interface(IJSGPUObjectDescriptorBase)
  25212. ['{907FCD77-E2E6-3C30-B51A-BDDD08EA0327}']
  25213. function _GetrequiredFeatures: TGPUFeatureNameDynArray;
  25214. function _GetrequiredLimits: IJSObject;
  25215. function _GetdefaultQueue: TJSGPUQueueDescriptor;
  25216. procedure _SetrequiredFeatures(const aValue: TGPUFeatureNameDynArray);
  25217. procedure _SetrequiredLimits(const aValue: IJSObject);
  25218. procedure _SetdefaultQueue(const aValue: TJSGPUQueueDescriptor);
  25219. property requiredFeatures: TGPUFeatureNameDynArray read _GetrequiredFeatures write _SetrequiredFeatures;
  25220. property requiredLimits: IJSObject read _GetrequiredLimits write _SetrequiredLimits;
  25221. property defaultQueue: TJSGPUQueueDescriptor read _GetdefaultQueue write _SetdefaultQueue;
  25222. end;
  25223. TJSGPUDeviceDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUDeviceDescriptor)
  25224. Protected
  25225. function _GetrequiredFeatures: TGPUFeatureNameDynArray;
  25226. function _GetrequiredLimits: IJSObject;
  25227. function _GetdefaultQueue: TJSGPUQueueDescriptor;
  25228. procedure _SetrequiredFeatures(const aValue: TGPUFeatureNameDynArray);
  25229. procedure _SetrequiredLimits(const aValue: IJSObject);
  25230. procedure _SetdefaultQueue(const aValue: TJSGPUQueueDescriptor);
  25231. Public
  25232. class function JSClassName: UnicodeString; override;
  25233. class function Cast(const Intf: IJSObject): IJSGPUDeviceDescriptor;
  25234. property requiredFeatures: TGPUFeatureNameDynArray read _GetrequiredFeatures write _SetrequiredFeatures;
  25235. property requiredLimits: IJSObject read _GetrequiredLimits write _SetrequiredLimits;
  25236. property defaultQueue: TJSGPUQueueDescriptor read _GetdefaultQueue write _SetdefaultQueue;
  25237. end;
  25238. { --------------------------------------------------------------------
  25239. TJSGPUBufferDescriptor
  25240. --------------------------------------------------------------------}
  25241. TJSGPUBufferDescriptorRec = record
  25242. size: TGPUSize64;
  25243. usage: TGPUBufferUsageFlags;
  25244. mappedAtCreation: Boolean;
  25245. label_: UnicodeString;
  25246. end;
  25247. IJSGPUBufferDescriptor = interface(IJSGPUObjectDescriptorBase)
  25248. ['{843A58B7-027D-3365-9CA6-67112545D1F1}']
  25249. function _Getsize: TGPUSize64;
  25250. function _Getusage: TGPUBufferUsageFlags;
  25251. function _GetmappedAtCreation: Boolean;
  25252. procedure _Setsize(const aValue: TGPUSize64);
  25253. procedure _Setusage(const aValue: TGPUBufferUsageFlags);
  25254. procedure _SetmappedAtCreation(const aValue: Boolean);
  25255. property size: TGPUSize64 read _Getsize write _Setsize;
  25256. property usage: TGPUBufferUsageFlags read _Getusage write _Setusage;
  25257. property mappedAtCreation: Boolean read _GetmappedAtCreation write _SetmappedAtCreation;
  25258. end;
  25259. TJSGPUBufferDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUBufferDescriptor)
  25260. Protected
  25261. function _Getsize: TGPUSize64;
  25262. function _Getusage: TGPUBufferUsageFlags;
  25263. function _GetmappedAtCreation: Boolean;
  25264. procedure _Setsize(const aValue: TGPUSize64);
  25265. procedure _Setusage(const aValue: TGPUBufferUsageFlags);
  25266. procedure _SetmappedAtCreation(const aValue: Boolean);
  25267. Public
  25268. class function JSClassName: UnicodeString; override;
  25269. class function Cast(const Intf: IJSObject): IJSGPUBufferDescriptor;
  25270. property size: TGPUSize64 read _Getsize write _Setsize;
  25271. property usage: TGPUBufferUsageFlags read _Getusage write _Setusage;
  25272. property mappedAtCreation: Boolean read _GetmappedAtCreation write _SetmappedAtCreation;
  25273. end;
  25274. { --------------------------------------------------------------------
  25275. TJSGPUTextureDescriptor
  25276. --------------------------------------------------------------------}
  25277. TJSGPUTextureDescriptorRec = record
  25278. size: TGPUExtent3D;
  25279. mipLevelCount: TGPUIntegerCoordinate;
  25280. sampleCount: TGPUSize32;
  25281. dimension: TGPUTextureDimension;
  25282. format: TGPUTextureFormat;
  25283. usage: TGPUTextureUsageFlags;
  25284. viewFormats: TGPUTextureFormatDynArray;
  25285. label_: UnicodeString;
  25286. end;
  25287. IJSGPUTextureDescriptor = interface(IJSGPUObjectDescriptorBase)
  25288. ['{7E7AC472-0C96-31BF-8DC3-580286EB0352}']
  25289. function _Getsize: TGPUExtent3D;
  25290. function _GetmipLevelCount: TGPUIntegerCoordinate;
  25291. function _GetsampleCount: TGPUSize32;
  25292. function _Getdimension: TGPUTextureDimension;
  25293. function _Getformat: TGPUTextureFormat;
  25294. function _Getusage: TGPUTextureUsageFlags;
  25295. function _GetviewFormats: TGPUTextureFormatDynArray;
  25296. procedure _Setsize(const aValue: TGPUExtent3D);
  25297. procedure _SetmipLevelCount(const aValue: TGPUIntegerCoordinate);
  25298. procedure _SetsampleCount(const aValue: TGPUSize32);
  25299. procedure _Setdimension(const aValue: TGPUTextureDimension);
  25300. procedure _Setformat(const aValue: TGPUTextureFormat);
  25301. procedure _Setusage(const aValue: TGPUTextureUsageFlags);
  25302. procedure _SetviewFormats(const aValue: TGPUTextureFormatDynArray);
  25303. property size: TGPUExtent3D read _Getsize write _Setsize;
  25304. property mipLevelCount: TGPUIntegerCoordinate read _GetmipLevelCount write _SetmipLevelCount;
  25305. property sampleCount: TGPUSize32 read _GetsampleCount write _SetsampleCount;
  25306. property dimension: TGPUTextureDimension read _Getdimension write _Setdimension;
  25307. property format: TGPUTextureFormat read _Getformat write _Setformat;
  25308. property usage: TGPUTextureUsageFlags read _Getusage write _Setusage;
  25309. property viewFormats: TGPUTextureFormatDynArray read _GetviewFormats write _SetviewFormats;
  25310. end;
  25311. TJSGPUTextureDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUTextureDescriptor)
  25312. Protected
  25313. function _Getsize: TGPUExtent3D;
  25314. function _GetmipLevelCount: TGPUIntegerCoordinate;
  25315. function _GetsampleCount: TGPUSize32;
  25316. function _Getdimension: TGPUTextureDimension;
  25317. function _Getformat: TGPUTextureFormat;
  25318. function _Getusage: TGPUTextureUsageFlags;
  25319. function _GetviewFormats: TGPUTextureFormatDynArray;
  25320. procedure _Setsize(const aValue: TGPUExtent3D);
  25321. procedure _SetmipLevelCount(const aValue: TGPUIntegerCoordinate);
  25322. procedure _SetsampleCount(const aValue: TGPUSize32);
  25323. procedure _Setdimension(const aValue: TGPUTextureDimension);
  25324. procedure _Setformat(const aValue: TGPUTextureFormat);
  25325. procedure _Setusage(const aValue: TGPUTextureUsageFlags);
  25326. procedure _SetviewFormats(const aValue: TGPUTextureFormatDynArray);
  25327. Public
  25328. class function JSClassName: UnicodeString; override;
  25329. class function Cast(const Intf: IJSObject): IJSGPUTextureDescriptor;
  25330. property size: TGPUExtent3D read _Getsize write _Setsize;
  25331. property mipLevelCount: TGPUIntegerCoordinate read _GetmipLevelCount write _SetmipLevelCount;
  25332. property sampleCount: TGPUSize32 read _GetsampleCount write _SetsampleCount;
  25333. property dimension: TGPUTextureDimension read _Getdimension write _Setdimension;
  25334. property format: TGPUTextureFormat read _Getformat write _Setformat;
  25335. property usage: TGPUTextureUsageFlags read _Getusage write _Setusage;
  25336. property viewFormats: TGPUTextureFormatDynArray read _GetviewFormats write _SetviewFormats;
  25337. end;
  25338. { --------------------------------------------------------------------
  25339. TJSGPUTextureViewDescriptor
  25340. --------------------------------------------------------------------}
  25341. TJSGPUTextureViewDescriptorRec = record
  25342. format: TGPUTextureFormat;
  25343. dimension: TGPUTextureViewDimension;
  25344. aspect: TGPUTextureAspect;
  25345. baseMipLevel: TGPUIntegerCoordinate;
  25346. mipLevelCount: TGPUIntegerCoordinate;
  25347. baseArrayLayer: TGPUIntegerCoordinate;
  25348. arrayLayerCount: TGPUIntegerCoordinate;
  25349. label_: UnicodeString;
  25350. end;
  25351. IJSGPUTextureViewDescriptor = interface(IJSGPUObjectDescriptorBase)
  25352. ['{998704CA-087B-3E11-B72C-7AA03D7FFC60}']
  25353. function _Getformat: TGPUTextureFormat;
  25354. function _Getdimension: TGPUTextureViewDimension;
  25355. function _Getaspect: TGPUTextureAspect;
  25356. function _GetbaseMipLevel: TGPUIntegerCoordinate;
  25357. function _GetmipLevelCount: TGPUIntegerCoordinate;
  25358. function _GetbaseArrayLayer: TGPUIntegerCoordinate;
  25359. function _GetarrayLayerCount: TGPUIntegerCoordinate;
  25360. procedure _Setformat(const aValue: TGPUTextureFormat);
  25361. procedure _Setdimension(const aValue: TGPUTextureViewDimension);
  25362. procedure _Setaspect(const aValue: TGPUTextureAspect);
  25363. procedure _SetbaseMipLevel(const aValue: TGPUIntegerCoordinate);
  25364. procedure _SetmipLevelCount(const aValue: TGPUIntegerCoordinate);
  25365. procedure _SetbaseArrayLayer(const aValue: TGPUIntegerCoordinate);
  25366. procedure _SetarrayLayerCount(const aValue: TGPUIntegerCoordinate);
  25367. property format: TGPUTextureFormat read _Getformat write _Setformat;
  25368. property dimension: TGPUTextureViewDimension read _Getdimension write _Setdimension;
  25369. property aspect: TGPUTextureAspect read _Getaspect write _Setaspect;
  25370. property baseMipLevel: TGPUIntegerCoordinate read _GetbaseMipLevel write _SetbaseMipLevel;
  25371. property mipLevelCount: TGPUIntegerCoordinate read _GetmipLevelCount write _SetmipLevelCount;
  25372. property baseArrayLayer: TGPUIntegerCoordinate read _GetbaseArrayLayer write _SetbaseArrayLayer;
  25373. property arrayLayerCount: TGPUIntegerCoordinate read _GetarrayLayerCount write _SetarrayLayerCount;
  25374. end;
  25375. TJSGPUTextureViewDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUTextureViewDescriptor)
  25376. Protected
  25377. function _Getformat: TGPUTextureFormat;
  25378. function _Getdimension: TGPUTextureViewDimension;
  25379. function _Getaspect: TGPUTextureAspect;
  25380. function _GetbaseMipLevel: TGPUIntegerCoordinate;
  25381. function _GetmipLevelCount: TGPUIntegerCoordinate;
  25382. function _GetbaseArrayLayer: TGPUIntegerCoordinate;
  25383. function _GetarrayLayerCount: TGPUIntegerCoordinate;
  25384. procedure _Setformat(const aValue: TGPUTextureFormat);
  25385. procedure _Setdimension(const aValue: TGPUTextureViewDimension);
  25386. procedure _Setaspect(const aValue: TGPUTextureAspect);
  25387. procedure _SetbaseMipLevel(const aValue: TGPUIntegerCoordinate);
  25388. procedure _SetmipLevelCount(const aValue: TGPUIntegerCoordinate);
  25389. procedure _SetbaseArrayLayer(const aValue: TGPUIntegerCoordinate);
  25390. procedure _SetarrayLayerCount(const aValue: TGPUIntegerCoordinate);
  25391. Public
  25392. class function JSClassName: UnicodeString; override;
  25393. class function Cast(const Intf: IJSObject): IJSGPUTextureViewDescriptor;
  25394. property format: TGPUTextureFormat read _Getformat write _Setformat;
  25395. property dimension: TGPUTextureViewDimension read _Getdimension write _Setdimension;
  25396. property aspect: TGPUTextureAspect read _Getaspect write _Setaspect;
  25397. property baseMipLevel: TGPUIntegerCoordinate read _GetbaseMipLevel write _SetbaseMipLevel;
  25398. property mipLevelCount: TGPUIntegerCoordinate read _GetmipLevelCount write _SetmipLevelCount;
  25399. property baseArrayLayer: TGPUIntegerCoordinate read _GetbaseArrayLayer write _SetbaseArrayLayer;
  25400. property arrayLayerCount: TGPUIntegerCoordinate read _GetarrayLayerCount write _SetarrayLayerCount;
  25401. end;
  25402. { --------------------------------------------------------------------
  25403. TJSGPUSamplerDescriptor
  25404. --------------------------------------------------------------------}
  25405. TJSGPUSamplerDescriptorRec = record
  25406. addressModeU: TGPUAddressMode;
  25407. addressModeV: TGPUAddressMode;
  25408. addressModeW: TGPUAddressMode;
  25409. magFilter: TGPUFilterMode;
  25410. minFilter: TGPUFilterMode;
  25411. mipmapFilter: TGPUMipmapFilterMode;
  25412. lodMinClamp: Single;
  25413. lodMaxClamp: Single;
  25414. compare: TGPUCompareFunction;
  25415. maxAnisotropy: Word;
  25416. label_: UnicodeString;
  25417. end;
  25418. IJSGPUSamplerDescriptor = interface(IJSGPUObjectDescriptorBase)
  25419. ['{6A5ACBA9-5789-3322-BDE0-77C1911A85D7}']
  25420. function _GetaddressModeU: TGPUAddressMode;
  25421. function _GetaddressModeV: TGPUAddressMode;
  25422. function _GetaddressModeW: TGPUAddressMode;
  25423. function _GetmagFilter: TGPUFilterMode;
  25424. function _GetminFilter: TGPUFilterMode;
  25425. function _GetmipmapFilter: TGPUMipmapFilterMode;
  25426. function _GetlodMinClamp: Single;
  25427. function _GetlodMaxClamp: Single;
  25428. function _Getcompare: TGPUCompareFunction;
  25429. function _GetmaxAnisotropy: Word;
  25430. procedure _SetaddressModeU(const aValue: TGPUAddressMode);
  25431. procedure _SetaddressModeV(const aValue: TGPUAddressMode);
  25432. procedure _SetaddressModeW(const aValue: TGPUAddressMode);
  25433. procedure _SetmagFilter(const aValue: TGPUFilterMode);
  25434. procedure _SetminFilter(const aValue: TGPUFilterMode);
  25435. procedure _SetmipmapFilter(const aValue: TGPUMipmapFilterMode);
  25436. procedure _SetlodMinClamp(const aValue: Single);
  25437. procedure _SetlodMaxClamp(const aValue: Single);
  25438. procedure _Setcompare(const aValue: TGPUCompareFunction);
  25439. procedure _SetmaxAnisotropy(const aValue: Word);
  25440. property addressModeU: TGPUAddressMode read _GetaddressModeU write _SetaddressModeU;
  25441. property addressModeV: TGPUAddressMode read _GetaddressModeV write _SetaddressModeV;
  25442. property addressModeW: TGPUAddressMode read _GetaddressModeW write _SetaddressModeW;
  25443. property magFilter: TGPUFilterMode read _GetmagFilter write _SetmagFilter;
  25444. property minFilter: TGPUFilterMode read _GetminFilter write _SetminFilter;
  25445. property mipmapFilter: TGPUMipmapFilterMode read _GetmipmapFilter write _SetmipmapFilter;
  25446. property lodMinClamp: Single read _GetlodMinClamp write _SetlodMinClamp;
  25447. property lodMaxClamp: Single read _GetlodMaxClamp write _SetlodMaxClamp;
  25448. property compare: TGPUCompareFunction read _Getcompare write _Setcompare;
  25449. property maxAnisotropy: Word read _GetmaxAnisotropy write _SetmaxAnisotropy;
  25450. end;
  25451. TJSGPUSamplerDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUSamplerDescriptor)
  25452. Protected
  25453. function _GetaddressModeU: TGPUAddressMode;
  25454. function _GetaddressModeV: TGPUAddressMode;
  25455. function _GetaddressModeW: TGPUAddressMode;
  25456. function _GetmagFilter: TGPUFilterMode;
  25457. function _GetminFilter: TGPUFilterMode;
  25458. function _GetmipmapFilter: TGPUMipmapFilterMode;
  25459. function _GetlodMinClamp: Single;
  25460. function _GetlodMaxClamp: Single;
  25461. function _Getcompare: TGPUCompareFunction;
  25462. function _GetmaxAnisotropy: Word;
  25463. procedure _SetaddressModeU(const aValue: TGPUAddressMode);
  25464. procedure _SetaddressModeV(const aValue: TGPUAddressMode);
  25465. procedure _SetaddressModeW(const aValue: TGPUAddressMode);
  25466. procedure _SetmagFilter(const aValue: TGPUFilterMode);
  25467. procedure _SetminFilter(const aValue: TGPUFilterMode);
  25468. procedure _SetmipmapFilter(const aValue: TGPUMipmapFilterMode);
  25469. procedure _SetlodMinClamp(const aValue: Single);
  25470. procedure _SetlodMaxClamp(const aValue: Single);
  25471. procedure _Setcompare(const aValue: TGPUCompareFunction);
  25472. procedure _SetmaxAnisotropy(const aValue: Word);
  25473. Public
  25474. class function JSClassName: UnicodeString; override;
  25475. class function Cast(const Intf: IJSObject): IJSGPUSamplerDescriptor;
  25476. property addressModeU: TGPUAddressMode read _GetaddressModeU write _SetaddressModeU;
  25477. property addressModeV: TGPUAddressMode read _GetaddressModeV write _SetaddressModeV;
  25478. property addressModeW: TGPUAddressMode read _GetaddressModeW write _SetaddressModeW;
  25479. property magFilter: TGPUFilterMode read _GetmagFilter write _SetmagFilter;
  25480. property minFilter: TGPUFilterMode read _GetminFilter write _SetminFilter;
  25481. property mipmapFilter: TGPUMipmapFilterMode read _GetmipmapFilter write _SetmipmapFilter;
  25482. property lodMinClamp: Single read _GetlodMinClamp write _SetlodMinClamp;
  25483. property lodMaxClamp: Single read _GetlodMaxClamp write _SetlodMaxClamp;
  25484. property compare: TGPUCompareFunction read _Getcompare write _Setcompare;
  25485. property maxAnisotropy: Word read _GetmaxAnisotropy write _SetmaxAnisotropy;
  25486. end;
  25487. { --------------------------------------------------------------------
  25488. TJSGPUBindGroupLayoutDescriptor
  25489. --------------------------------------------------------------------}
  25490. TJSGPUBindGroupLayoutEntryDynArray = IJSArray; // array of GPUBindGroupLayoutEntry
  25491. TJSGPUBindGroupLayoutDescriptorRec = record
  25492. entries: TJSGPUBindGroupLayoutEntryDynArray;
  25493. label_: UnicodeString;
  25494. end;
  25495. IJSGPUBindGroupLayoutDescriptor = interface(IJSGPUObjectDescriptorBase)
  25496. ['{B81736F5-C5CB-316D-9C76-FCE3883CCB91}']
  25497. function _Getentries: TJSGPUBindGroupLayoutEntryDynArray;
  25498. procedure _Setentries(const aValue: TJSGPUBindGroupLayoutEntryDynArray);
  25499. property entries: TJSGPUBindGroupLayoutEntryDynArray read _Getentries write _Setentries;
  25500. end;
  25501. TJSGPUBindGroupLayoutDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUBindGroupLayoutDescriptor)
  25502. Protected
  25503. function _Getentries: TJSGPUBindGroupLayoutEntryDynArray;
  25504. procedure _Setentries(const aValue: TJSGPUBindGroupLayoutEntryDynArray);
  25505. Public
  25506. class function JSClassName: UnicodeString; override;
  25507. class function Cast(const Intf: IJSObject): IJSGPUBindGroupLayoutDescriptor;
  25508. property entries: TJSGPUBindGroupLayoutEntryDynArray read _Getentries write _Setentries;
  25509. end;
  25510. { --------------------------------------------------------------------
  25511. TJSGPUBindGroupDescriptor
  25512. --------------------------------------------------------------------}
  25513. TJSGPUBindGroupEntryDynArray = IJSArray; // array of GPUBindGroupEntry
  25514. TJSGPUBindGroupDescriptorRec = record
  25515. layout: TJSGPUBindGroupLayout;
  25516. entries: TJSGPUBindGroupEntryDynArray;
  25517. label_: UnicodeString;
  25518. end;
  25519. IJSGPUBindGroupDescriptor = interface(IJSGPUObjectDescriptorBase)
  25520. ['{D1CF27DE-3812-3945-9F4C-30E212374217}']
  25521. function _Getlayout: IJSGPUBindGroupLayout;
  25522. function _Getentries: TJSGPUBindGroupEntryDynArray;
  25523. procedure _Setlayout(const aValue: IJSGPUBindGroupLayout);
  25524. procedure _Setentries(const aValue: TJSGPUBindGroupEntryDynArray);
  25525. property layout: IJSGPUBindGroupLayout read _Getlayout write _Setlayout;
  25526. property entries: TJSGPUBindGroupEntryDynArray read _Getentries write _Setentries;
  25527. end;
  25528. TJSGPUBindGroupDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUBindGroupDescriptor)
  25529. Protected
  25530. function _Getlayout: IJSGPUBindGroupLayout;
  25531. function _Getentries: TJSGPUBindGroupEntryDynArray;
  25532. procedure _Setlayout(const aValue: IJSGPUBindGroupLayout);
  25533. procedure _Setentries(const aValue: TJSGPUBindGroupEntryDynArray);
  25534. Public
  25535. class function JSClassName: UnicodeString; override;
  25536. class function Cast(const Intf: IJSObject): IJSGPUBindGroupDescriptor;
  25537. property layout: IJSGPUBindGroupLayout read _Getlayout write _Setlayout;
  25538. property entries: TJSGPUBindGroupEntryDynArray read _Getentries write _Setentries;
  25539. end;
  25540. { --------------------------------------------------------------------
  25541. TJSGPUPipelineLayoutDescriptor
  25542. --------------------------------------------------------------------}
  25543. TJSGPUBindGroupLayoutDynArray = IJSArray; // array of GPUBindGroupLayout
  25544. TJSGPUPipelineLayoutDescriptorRec = record
  25545. bindGroupLayouts: TJSGPUBindGroupLayoutDynArray;
  25546. label_: UnicodeString;
  25547. end;
  25548. IJSGPUPipelineLayoutDescriptor = interface(IJSGPUObjectDescriptorBase)
  25549. ['{AA123BA9-D774-320B-9E5C-DA9063FCA198}']
  25550. function _GetbindGroupLayouts: TJSGPUBindGroupLayoutDynArray;
  25551. procedure _SetbindGroupLayouts(const aValue: TJSGPUBindGroupLayoutDynArray);
  25552. property bindGroupLayouts: TJSGPUBindGroupLayoutDynArray read _GetbindGroupLayouts write _SetbindGroupLayouts;
  25553. end;
  25554. TJSGPUPipelineLayoutDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUPipelineLayoutDescriptor)
  25555. Protected
  25556. function _GetbindGroupLayouts: TJSGPUBindGroupLayoutDynArray;
  25557. procedure _SetbindGroupLayouts(const aValue: TJSGPUBindGroupLayoutDynArray);
  25558. Public
  25559. class function JSClassName: UnicodeString; override;
  25560. class function Cast(const Intf: IJSObject): IJSGPUPipelineLayoutDescriptor;
  25561. property bindGroupLayouts: TJSGPUBindGroupLayoutDynArray read _GetbindGroupLayouts write _SetbindGroupLayouts;
  25562. end;
  25563. { --------------------------------------------------------------------
  25564. TJSGPUShaderModuleDescriptor
  25565. --------------------------------------------------------------------}
  25566. TJSGPUShaderModuleDescriptorRec = record
  25567. code: UTF8String;
  25568. sourceMap: IJSObject;
  25569. label_: UnicodeString;
  25570. end;
  25571. IJSGPUShaderModuleDescriptor = interface(IJSGPUObjectDescriptorBase)
  25572. ['{0B1ADF04-AE2C-3F58-B2D3-F8DE22437455}']
  25573. function _Getcode: UTF8String;
  25574. function _GetsourceMap: IJSObject;
  25575. procedure _Setcode(const aValue: UTF8String);
  25576. procedure _SetsourceMap(const aValue: IJSObject);
  25577. property code: UTF8String read _Getcode write _Setcode;
  25578. property sourceMap: IJSObject read _GetsourceMap write _SetsourceMap;
  25579. end;
  25580. TJSGPUShaderModuleDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUShaderModuleDescriptor)
  25581. Protected
  25582. function _Getcode: UTF8String;
  25583. function _GetsourceMap: IJSObject;
  25584. procedure _Setcode(const aValue: UTF8String);
  25585. procedure _SetsourceMap(const aValue: IJSObject);
  25586. Public
  25587. class function JSClassName: UnicodeString; override;
  25588. class function Cast(const Intf: IJSObject): IJSGPUShaderModuleDescriptor;
  25589. property code: UTF8String read _Getcode write _Setcode;
  25590. property sourceMap: IJSObject read _GetsourceMap write _SetsourceMap;
  25591. end;
  25592. { --------------------------------------------------------------------
  25593. TJSGPUPipelineDescriptorBase
  25594. --------------------------------------------------------------------}
  25595. // Union of GPUPipelineLayout, GPUAutoLayoutMode
  25596. TGPUPipelineDescriptorBase_layout_Type = Variant;
  25597. TJSGPUPipelineDescriptorBaseRec = record
  25598. layout: TGPUPipelineDescriptorBase_layout_Type;
  25599. label_: UnicodeString;
  25600. end;
  25601. IJSGPUPipelineDescriptorBase = interface(IJSGPUObjectDescriptorBase)
  25602. ['{F0A7A3FC-4FA4-3BD9-85C4-2FBC74B02DB8}']
  25603. function _Getlayout: TGPUPipelineDescriptorBase_layout_Type;
  25604. procedure _Setlayout(const aValue: TGPUPipelineDescriptorBase_layout_Type);
  25605. property layout: TGPUPipelineDescriptorBase_layout_Type read _Getlayout write _Setlayout;
  25606. end;
  25607. TJSGPUPipelineDescriptorBase = class(TJSGPUObjectDescriptorBase,IJSGPUPipelineDescriptorBase)
  25608. Protected
  25609. function _Getlayout: TGPUPipelineDescriptorBase_layout_Type;
  25610. procedure _Setlayout(const aValue: TGPUPipelineDescriptorBase_layout_Type);
  25611. Public
  25612. class function JSClassName: UnicodeString; override;
  25613. class function Cast(const Intf: IJSObject): IJSGPUPipelineDescriptorBase;
  25614. property layout: TGPUPipelineDescriptorBase_layout_Type read _Getlayout write _Setlayout;
  25615. end;
  25616. { --------------------------------------------------------------------
  25617. TJSGPUFragmentState
  25618. --------------------------------------------------------------------}
  25619. TJSGPUColorTargetStateDynArray = IJSArray; // array of GPUColorTargetState
  25620. TJSGPUFragmentStateRec = record
  25621. targets: TJSGPUColorTargetStateDynArray;
  25622. module: TJSGPUShaderModule;
  25623. entryPoint: UnicodeString;
  25624. end;
  25625. IJSGPUFragmentState = interface(IJSGPUProgrammableStage)
  25626. ['{F5E4798F-7A95-31F9-A465-CF125E8F07A6}']
  25627. function _Gettargets: TJSGPUColorTargetStateDynArray;
  25628. procedure _Settargets(const aValue: TJSGPUColorTargetStateDynArray);
  25629. property targets: TJSGPUColorTargetStateDynArray read _Gettargets write _Settargets;
  25630. end;
  25631. TJSGPUFragmentState = class(TJSGPUProgrammableStage,IJSGPUFragmentState)
  25632. Protected
  25633. function _Gettargets: TJSGPUColorTargetStateDynArray;
  25634. procedure _Settargets(const aValue: TJSGPUColorTargetStateDynArray);
  25635. Public
  25636. class function JSClassName: UnicodeString; override;
  25637. class function Cast(const Intf: IJSObject): IJSGPUFragmentState;
  25638. property targets: TJSGPUColorTargetStateDynArray read _Gettargets write _Settargets;
  25639. end;
  25640. { --------------------------------------------------------------------
  25641. TJSGPUVertexState
  25642. --------------------------------------------------------------------}
  25643. TJSGPUVertexBufferLayoutDynArray = IJSArray; // array of GPUVertexBufferLayout
  25644. TJSGPUVertexStateRec = record
  25645. buffers: TJSGPUVertexBufferLayoutDynArray;
  25646. module: TJSGPUShaderModule;
  25647. entryPoint: UnicodeString;
  25648. end;
  25649. IJSGPUVertexState = interface(IJSGPUProgrammableStage)
  25650. ['{45B76DF6-E1A5-3FDF-A33C-517C492B9A72}']
  25651. function _Getbuffers: TJSGPUVertexBufferLayoutDynArray;
  25652. procedure _Setbuffers(const aValue: TJSGPUVertexBufferLayoutDynArray);
  25653. property buffers: TJSGPUVertexBufferLayoutDynArray read _Getbuffers write _Setbuffers;
  25654. end;
  25655. TJSGPUVertexState = class(TJSGPUProgrammableStage,IJSGPUVertexState)
  25656. Protected
  25657. function _Getbuffers: TJSGPUVertexBufferLayoutDynArray;
  25658. procedure _Setbuffers(const aValue: TJSGPUVertexBufferLayoutDynArray);
  25659. Public
  25660. class function JSClassName: UnicodeString; override;
  25661. class function Cast(const Intf: IJSObject): IJSGPUVertexState;
  25662. property buffers: TJSGPUVertexBufferLayoutDynArray read _Getbuffers write _Setbuffers;
  25663. end;
  25664. { --------------------------------------------------------------------
  25665. TJSGPUImageCopyBuffer
  25666. --------------------------------------------------------------------}
  25667. TJSGPUImageCopyBufferRec = record
  25668. buffer: TJSGPUBuffer;
  25669. offset: TGPUSize64;
  25670. bytesPerRow: TGPUSize32;
  25671. rowsPerImage: TGPUSize32;
  25672. end;
  25673. IJSGPUImageCopyBuffer = interface(IJSGPUImageDataLayout)
  25674. ['{9015E54B-8B3B-3B1F-A4C6-C9F5251BDB2D}']
  25675. function _Getbuffer: IJSGPUBuffer;
  25676. procedure _Setbuffer(const aValue: IJSGPUBuffer);
  25677. property buffer: IJSGPUBuffer read _Getbuffer write _Setbuffer;
  25678. end;
  25679. TJSGPUImageCopyBuffer = class(TJSGPUImageDataLayout,IJSGPUImageCopyBuffer)
  25680. Protected
  25681. function _Getbuffer: IJSGPUBuffer;
  25682. procedure _Setbuffer(const aValue: IJSGPUBuffer);
  25683. Public
  25684. class function JSClassName: UnicodeString; override;
  25685. class function Cast(const Intf: IJSObject): IJSGPUImageCopyBuffer;
  25686. property buffer: IJSGPUBuffer read _Getbuffer write _Setbuffer;
  25687. end;
  25688. { --------------------------------------------------------------------
  25689. TJSGPUImageCopyTextureTagged
  25690. --------------------------------------------------------------------}
  25691. TJSGPUImageCopyTextureTaggedRec = record
  25692. premultipliedAlpha: Boolean;
  25693. texture: TJSGPUTexture;
  25694. mipLevel: TGPUIntegerCoordinate;
  25695. origin: TGPUOrigin3D;
  25696. aspect: TGPUTextureAspect;
  25697. end;
  25698. IJSGPUImageCopyTextureTagged = interface(IJSGPUImageCopyTexture)
  25699. ['{7C858555-626D-36C0-BFAD-72856041885B}']
  25700. function _GetpremultipliedAlpha: Boolean;
  25701. procedure _SetpremultipliedAlpha(const aValue: Boolean);
  25702. property premultipliedAlpha: Boolean read _GetpremultipliedAlpha write _SetpremultipliedAlpha;
  25703. end;
  25704. TJSGPUImageCopyTextureTagged = class(TJSGPUImageCopyTexture,IJSGPUImageCopyTextureTagged)
  25705. Protected
  25706. function _GetpremultipliedAlpha: Boolean;
  25707. procedure _SetpremultipliedAlpha(const aValue: Boolean);
  25708. Public
  25709. class function JSClassName: UnicodeString; override;
  25710. class function Cast(const Intf: IJSObject): IJSGPUImageCopyTextureTagged;
  25711. property premultipliedAlpha: Boolean read _GetpremultipliedAlpha write _SetpremultipliedAlpha;
  25712. end;
  25713. { --------------------------------------------------------------------
  25714. TJSGPUCommandBufferDescriptor
  25715. --------------------------------------------------------------------}
  25716. TJSGPUCommandBufferDescriptorRec = record
  25717. label_: UnicodeString;
  25718. end;
  25719. IJSGPUCommandBufferDescriptor = interface(IJSGPUObjectDescriptorBase)
  25720. ['{CAAB04CC-DEB9-3F08-8165-442118AD62BE}']
  25721. end;
  25722. TJSGPUCommandBufferDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUCommandBufferDescriptor)
  25723. Protected
  25724. Public
  25725. class function JSClassName: UnicodeString; override;
  25726. class function Cast(const Intf: IJSObject): IJSGPUCommandBufferDescriptor;
  25727. end;
  25728. { --------------------------------------------------------------------
  25729. TJSGPUCommandEncoderDescriptor
  25730. --------------------------------------------------------------------}
  25731. TJSGPUCommandEncoderDescriptorRec = record
  25732. label_: UnicodeString;
  25733. end;
  25734. IJSGPUCommandEncoderDescriptor = interface(IJSGPUObjectDescriptorBase)
  25735. ['{54BDA8DE-76FA-3855-A29D-89B017D27F35}']
  25736. end;
  25737. TJSGPUCommandEncoderDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUCommandEncoderDescriptor)
  25738. Protected
  25739. Public
  25740. class function JSClassName: UnicodeString; override;
  25741. class function Cast(const Intf: IJSObject): IJSGPUCommandEncoderDescriptor;
  25742. end;
  25743. { --------------------------------------------------------------------
  25744. TJSGPUComputePassDescriptor
  25745. --------------------------------------------------------------------}
  25746. TJSGPUComputePassDescriptorRec = record
  25747. label_: UnicodeString;
  25748. end;
  25749. IJSGPUComputePassDescriptor = interface(IJSGPUObjectDescriptorBase)
  25750. ['{62EC6894-AF27-312C-8683-9469BF97F9C9}']
  25751. end;
  25752. TJSGPUComputePassDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUComputePassDescriptor)
  25753. Protected
  25754. Public
  25755. class function JSClassName: UnicodeString; override;
  25756. class function Cast(const Intf: IJSObject): IJSGPUComputePassDescriptor;
  25757. end;
  25758. { --------------------------------------------------------------------
  25759. TJSGPURenderPassDescriptor
  25760. --------------------------------------------------------------------}
  25761. TJSGPURenderPassColorAttachmentDynArray = IJSArray; // array of GPURenderPassColorAttachment
  25762. TJSGPURenderPassDescriptorRec = record
  25763. colorAttachments: TJSGPURenderPassColorAttachmentDynArray;
  25764. depthStencilAttachment: TJSGPURenderPassDepthStencilAttachment;
  25765. occlusionQuerySet: TJSGPUQuerySet;
  25766. label_: UnicodeString;
  25767. end;
  25768. IJSGPURenderPassDescriptor = interface(IJSGPUObjectDescriptorBase)
  25769. ['{1512CB5D-386C-3B47-A297-C6167DB655CA}']
  25770. function _GetcolorAttachments: TJSGPURenderPassColorAttachmentDynArray;
  25771. function _GetdepthStencilAttachment: TJSGPURenderPassDepthStencilAttachment;
  25772. function _GetocclusionQuerySet: IJSGPUQuerySet;
  25773. procedure _SetcolorAttachments(const aValue: TJSGPURenderPassColorAttachmentDynArray);
  25774. procedure _SetdepthStencilAttachment(const aValue: TJSGPURenderPassDepthStencilAttachment);
  25775. procedure _SetocclusionQuerySet(const aValue: IJSGPUQuerySet);
  25776. property colorAttachments: TJSGPURenderPassColorAttachmentDynArray read _GetcolorAttachments write _SetcolorAttachments;
  25777. property depthStencilAttachment: TJSGPURenderPassDepthStencilAttachment read _GetdepthStencilAttachment write _SetdepthStencilAttachment;
  25778. property occlusionQuerySet: IJSGPUQuerySet read _GetocclusionQuerySet write _SetocclusionQuerySet;
  25779. end;
  25780. TJSGPURenderPassDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPURenderPassDescriptor)
  25781. Protected
  25782. function _GetcolorAttachments: TJSGPURenderPassColorAttachmentDynArray;
  25783. function _GetdepthStencilAttachment: TJSGPURenderPassDepthStencilAttachment;
  25784. function _GetocclusionQuerySet: IJSGPUQuerySet;
  25785. procedure _SetcolorAttachments(const aValue: TJSGPURenderPassColorAttachmentDynArray);
  25786. procedure _SetdepthStencilAttachment(const aValue: TJSGPURenderPassDepthStencilAttachment);
  25787. procedure _SetocclusionQuerySet(const aValue: IJSGPUQuerySet);
  25788. Public
  25789. class function JSClassName: UnicodeString; override;
  25790. class function Cast(const Intf: IJSObject): IJSGPURenderPassDescriptor;
  25791. property colorAttachments: TJSGPURenderPassColorAttachmentDynArray read _GetcolorAttachments write _SetcolorAttachments;
  25792. property depthStencilAttachment: TJSGPURenderPassDepthStencilAttachment read _GetdepthStencilAttachment write _SetdepthStencilAttachment;
  25793. property occlusionQuerySet: IJSGPUQuerySet read _GetocclusionQuerySet write _SetocclusionQuerySet;
  25794. end;
  25795. { --------------------------------------------------------------------
  25796. TJSGPURenderPassLayout
  25797. --------------------------------------------------------------------}
  25798. TJSGPURenderPassLayoutRec = record
  25799. colorFormats: TGPUTextureFormatDynArray;
  25800. depthStencilFormat: TGPUTextureFormat;
  25801. sampleCount: TGPUSize32;
  25802. label_: UnicodeString;
  25803. end;
  25804. IJSGPURenderPassLayout = interface(IJSGPUObjectDescriptorBase)
  25805. ['{3EC0FECD-92C6-39BB-9B83-3DDC46B9E689}']
  25806. function _GetcolorFormats: TGPUTextureFormatDynArray;
  25807. function _GetdepthStencilFormat: TGPUTextureFormat;
  25808. function _GetsampleCount: TGPUSize32;
  25809. procedure _SetcolorFormats(const aValue: TGPUTextureFormatDynArray);
  25810. procedure _SetdepthStencilFormat(const aValue: TGPUTextureFormat);
  25811. procedure _SetsampleCount(const aValue: TGPUSize32);
  25812. property colorFormats: TGPUTextureFormatDynArray read _GetcolorFormats write _SetcolorFormats;
  25813. property depthStencilFormat: TGPUTextureFormat read _GetdepthStencilFormat write _SetdepthStencilFormat;
  25814. property sampleCount: TGPUSize32 read _GetsampleCount write _SetsampleCount;
  25815. end;
  25816. TJSGPURenderPassLayout = class(TJSGPUObjectDescriptorBase,IJSGPURenderPassLayout)
  25817. Protected
  25818. function _GetcolorFormats: TGPUTextureFormatDynArray;
  25819. function _GetdepthStencilFormat: TGPUTextureFormat;
  25820. function _GetsampleCount: TGPUSize32;
  25821. procedure _SetcolorFormats(const aValue: TGPUTextureFormatDynArray);
  25822. procedure _SetdepthStencilFormat(const aValue: TGPUTextureFormat);
  25823. procedure _SetsampleCount(const aValue: TGPUSize32);
  25824. Public
  25825. class function JSClassName: UnicodeString; override;
  25826. class function Cast(const Intf: IJSObject): IJSGPURenderPassLayout;
  25827. property colorFormats: TGPUTextureFormatDynArray read _GetcolorFormats write _SetcolorFormats;
  25828. property depthStencilFormat: TGPUTextureFormat read _GetdepthStencilFormat write _SetdepthStencilFormat;
  25829. property sampleCount: TGPUSize32 read _GetsampleCount write _SetsampleCount;
  25830. end;
  25831. { --------------------------------------------------------------------
  25832. TJSGPURenderBundleDescriptor
  25833. --------------------------------------------------------------------}
  25834. TJSGPURenderBundleDescriptorRec = record
  25835. label_: UnicodeString;
  25836. end;
  25837. IJSGPURenderBundleDescriptor = interface(IJSGPUObjectDescriptorBase)
  25838. ['{A977A3FB-8B94-3F54-8B02-F8225309D4ED}']
  25839. end;
  25840. TJSGPURenderBundleDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPURenderBundleDescriptor)
  25841. Protected
  25842. Public
  25843. class function JSClassName: UnicodeString; override;
  25844. class function Cast(const Intf: IJSObject): IJSGPURenderBundleDescriptor;
  25845. end;
  25846. { --------------------------------------------------------------------
  25847. TJSGPUQueueDescriptor
  25848. --------------------------------------------------------------------}
  25849. TJSGPUQueueDescriptorRec = record
  25850. label_: UnicodeString;
  25851. end;
  25852. IJSGPUQueueDescriptor = interface(IJSGPUObjectDescriptorBase)
  25853. ['{90918E0A-F440-3718-AD62-BF6F826C710E}']
  25854. end;
  25855. TJSGPUQueueDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUQueueDescriptor)
  25856. Protected
  25857. Public
  25858. class function JSClassName: UnicodeString; override;
  25859. class function Cast(const Intf: IJSObject): IJSGPUQueueDescriptor;
  25860. end;
  25861. { --------------------------------------------------------------------
  25862. TJSGPUQuerySetDescriptor
  25863. --------------------------------------------------------------------}
  25864. TGPUPipelineStatisticNameDynArray = IJSArray; // array of GPUPipelineStatisticName
  25865. TJSGPUQuerySetDescriptorRec = record
  25866. type_: TGPUQueryType;
  25867. count: TGPUSize32;
  25868. pipelineStatistics: TGPUPipelineStatisticNameDynArray;
  25869. label_: UnicodeString;
  25870. end;
  25871. IJSGPUQuerySetDescriptor = interface(IJSGPUObjectDescriptorBase)
  25872. ['{F46BB9F5-FAFB-3D8D-B67B-D6B1297A2A67}']
  25873. function _Gettype_: TGPUQueryType;
  25874. function _Getcount: TGPUSize32;
  25875. function _GetpipelineStatistics: TGPUPipelineStatisticNameDynArray;
  25876. procedure _Settype_(const aValue: TGPUQueryType);
  25877. procedure _Setcount(const aValue: TGPUSize32);
  25878. procedure _SetpipelineStatistics(const aValue: TGPUPipelineStatisticNameDynArray);
  25879. property type_: TGPUQueryType read _Gettype_ write _Settype_;
  25880. property count: TGPUSize32 read _Getcount write _Setcount;
  25881. property pipelineStatistics: TGPUPipelineStatisticNameDynArray read _GetpipelineStatistics write _SetpipelineStatistics;
  25882. end;
  25883. TJSGPUQuerySetDescriptor = class(TJSGPUObjectDescriptorBase,IJSGPUQuerySetDescriptor)
  25884. Protected
  25885. function _Gettype_: TGPUQueryType;
  25886. function _Getcount: TGPUSize32;
  25887. function _GetpipelineStatistics: TGPUPipelineStatisticNameDynArray;
  25888. procedure _Settype_(const aValue: TGPUQueryType);
  25889. procedure _Setcount(const aValue: TGPUSize32);
  25890. procedure _SetpipelineStatistics(const aValue: TGPUPipelineStatisticNameDynArray);
  25891. Public
  25892. class function JSClassName: UnicodeString; override;
  25893. class function Cast(const Intf: IJSObject): IJSGPUQuerySetDescriptor;
  25894. property type_: TGPUQueryType read _Gettype_ write _Settype_;
  25895. property count: TGPUSize32 read _Getcount write _Setcount;
  25896. property pipelineStatistics: TGPUPipelineStatisticNameDynArray read _GetpipelineStatistics write _SetpipelineStatistics;
  25897. end;
  25898. { --------------------------------------------------------------------
  25899. TJSScrollToOptions
  25900. --------------------------------------------------------------------}
  25901. TJSScrollToOptionsRec = record
  25902. left: Double;
  25903. top: Double;
  25904. behavior: TScrollBehavior;
  25905. end;
  25906. IJSScrollToOptions = interface(IJSScrollOptions)
  25907. ['{2F416E32-B1E2-3BF2-8923-7ACB273A9F22}']
  25908. function _Getleft: Double;
  25909. function _Gettop: Double;
  25910. procedure _Setleft(const aValue: Double);
  25911. procedure _Settop(const aValue: Double);
  25912. property left: Double read _Getleft write _Setleft;
  25913. property top: Double read _Gettop write _Settop;
  25914. end;
  25915. TJSScrollToOptions = class(TJSScrollOptions,IJSScrollToOptions)
  25916. Protected
  25917. function _Getleft: Double;
  25918. function _Gettop: Double;
  25919. procedure _Setleft(const aValue: Double);
  25920. procedure _Settop(const aValue: Double);
  25921. Public
  25922. class function JSClassName: UnicodeString; override;
  25923. class function Cast(const Intf: IJSObject): IJSScrollToOptions;
  25924. property left: Double read _Getleft write _Setleft;
  25925. property top: Double read _Gettop write _Settop;
  25926. end;
  25927. { --------------------------------------------------------------------
  25928. TJSWindowPostMessageOptions
  25929. --------------------------------------------------------------------}
  25930. TJSWindowPostMessageOptionsRec = record
  25931. targetOrigin: UnicodeString;
  25932. transfer: TIJSObjectDynArray;
  25933. end;
  25934. IJSWindowPostMessageOptions = interface(IJSStructuredSerializeOptions)
  25935. ['{9EF524CB-A8C4-33D2-8293-F4A7F909D160}']
  25936. function _GettargetOrigin: UnicodeString;
  25937. procedure _SettargetOrigin(const aValue: UnicodeString);
  25938. property targetOrigin: UnicodeString read _GettargetOrigin write _SettargetOrigin;
  25939. end;
  25940. TJSWindowPostMessageOptions = class(TJSStructuredSerializeOptions,IJSWindowPostMessageOptions)
  25941. Protected
  25942. function _GettargetOrigin: UnicodeString;
  25943. procedure _SettargetOrigin(const aValue: UnicodeString);
  25944. Public
  25945. class function JSClassName: UnicodeString; override;
  25946. class function Cast(const Intf: IJSObject): IJSWindowPostMessageOptions;
  25947. property targetOrigin: UnicodeString read _GettargetOrigin write _SettargetOrigin;
  25948. end;
  25949. { --------------------------------------------------------------------
  25950. TJSXRInputSourceEventInit
  25951. --------------------------------------------------------------------}
  25952. TJSXRInputSourceEventInitRec = record
  25953. frame: TJSXRFrame;
  25954. inputSource: TJSXRInputSource;
  25955. bubbles: Boolean;
  25956. cancelable: Boolean;
  25957. composed: Boolean;
  25958. end;
  25959. IJSXRInputSourceEventInit = interface(IJSEventInit)
  25960. ['{AC079098-78D4-3C67-B21F-C9EBF3BF8EFD}']
  25961. function _Getframe: IJSXRFrame;
  25962. function _GetinputSource: IJSXRInputSource;
  25963. procedure _Setframe(const aValue: IJSXRFrame);
  25964. procedure _SetinputSource(const aValue: IJSXRInputSource);
  25965. property frame: IJSXRFrame read _Getframe write _Setframe;
  25966. property inputSource: IJSXRInputSource read _GetinputSource write _SetinputSource;
  25967. end;
  25968. TJSXRInputSourceEventInit = class(TJSEventInit,IJSXRInputSourceEventInit)
  25969. Protected
  25970. function _Getframe: IJSXRFrame;
  25971. function _GetinputSource: IJSXRInputSource;
  25972. procedure _Setframe(const aValue: IJSXRFrame);
  25973. procedure _SetinputSource(const aValue: IJSXRInputSource);
  25974. Public
  25975. class function JSClassName: UnicodeString; override;
  25976. class function Cast(const Intf: IJSObject): IJSXRInputSourceEventInit;
  25977. property frame: IJSXRFrame read _Getframe write _Setframe;
  25978. property inputSource: IJSXRInputSource read _GetinputSource write _SetinputSource;
  25979. end;
  25980. { --------------------------------------------------------------------
  25981. TJSXRInputSourcesChangeEventInit
  25982. --------------------------------------------------------------------}
  25983. TJSXRInputSourceDynArray = IJSArray; // array of XRInputSource
  25984. TJSXRInputSourcesChangeEventInitRec = record
  25985. session: TJSXRSession;
  25986. added: TJSXRInputSourceDynArray;
  25987. removed: TJSXRInputSourceDynArray;
  25988. bubbles: Boolean;
  25989. cancelable: Boolean;
  25990. composed: Boolean;
  25991. end;
  25992. IJSXRInputSourcesChangeEventInit = interface(IJSEventInit)
  25993. ['{F051876F-DB3C-3FEB-91F8-3B45996617A4}']
  25994. function _Getsession: IJSXRSession;
  25995. function _Getadded: TJSXRInputSourceDynArray;
  25996. function _Getremoved: TJSXRInputSourceDynArray;
  25997. procedure _Setsession(const aValue: IJSXRSession);
  25998. procedure _Setadded(const aValue: TJSXRInputSourceDynArray);
  25999. procedure _Setremoved(const aValue: TJSXRInputSourceDynArray);
  26000. property session: IJSXRSession read _Getsession write _Setsession;
  26001. property added: TJSXRInputSourceDynArray read _Getadded write _Setadded;
  26002. property removed: TJSXRInputSourceDynArray read _Getremoved write _Setremoved;
  26003. end;
  26004. TJSXRInputSourcesChangeEventInit = class(TJSEventInit,IJSXRInputSourcesChangeEventInit)
  26005. Protected
  26006. function _Getsession: IJSXRSession;
  26007. function _Getadded: TJSXRInputSourceDynArray;
  26008. function _Getremoved: TJSXRInputSourceDynArray;
  26009. procedure _Setsession(const aValue: IJSXRSession);
  26010. procedure _Setadded(const aValue: TJSXRInputSourceDynArray);
  26011. procedure _Setremoved(const aValue: TJSXRInputSourceDynArray);
  26012. Public
  26013. class function JSClassName: UnicodeString; override;
  26014. class function Cast(const Intf: IJSObject): IJSXRInputSourcesChangeEventInit;
  26015. property session: IJSXRSession read _Getsession write _Setsession;
  26016. property added: TJSXRInputSourceDynArray read _Getadded write _Setadded;
  26017. property removed: TJSXRInputSourceDynArray read _Getremoved write _Setremoved;
  26018. end;
  26019. { --------------------------------------------------------------------
  26020. TJSXRReferenceSpaceEventInit
  26021. --------------------------------------------------------------------}
  26022. TJSXRReferenceSpaceEventInitRec = record
  26023. referenceSpace: TJSXRReferenceSpace;
  26024. transform: TJSXRRigidTransform;
  26025. bubbles: Boolean;
  26026. cancelable: Boolean;
  26027. composed: Boolean;
  26028. end;
  26029. IJSXRReferenceSpaceEventInit = interface(IJSEventInit)
  26030. ['{47D24D66-A59E-35C4-9FC9-3BFBE45809E9}']
  26031. function _GetreferenceSpace: IJSXRReferenceSpace;
  26032. function _Gettransform: IJSXRRigidTransform;
  26033. procedure _SetreferenceSpace(const aValue: IJSXRReferenceSpace);
  26034. procedure _Settransform(const aValue: IJSXRRigidTransform);
  26035. property referenceSpace: IJSXRReferenceSpace read _GetreferenceSpace write _SetreferenceSpace;
  26036. property transform: IJSXRRigidTransform read _Gettransform write _Settransform;
  26037. end;
  26038. TJSXRReferenceSpaceEventInit = class(TJSEventInit,IJSXRReferenceSpaceEventInit)
  26039. Protected
  26040. function _GetreferenceSpace: IJSXRReferenceSpace;
  26041. function _Gettransform: IJSXRRigidTransform;
  26042. procedure _SetreferenceSpace(const aValue: IJSXRReferenceSpace);
  26043. procedure _Settransform(const aValue: IJSXRRigidTransform);
  26044. Public
  26045. class function JSClassName: UnicodeString; override;
  26046. class function Cast(const Intf: IJSObject): IJSXRReferenceSpaceEventInit;
  26047. property referenceSpace: IJSXRReferenceSpace read _GetreferenceSpace write _SetreferenceSpace;
  26048. property transform: IJSXRRigidTransform read _Gettransform write _Settransform;
  26049. end;
  26050. { --------------------------------------------------------------------
  26051. TJSXRSessionEventInit
  26052. --------------------------------------------------------------------}
  26053. TJSXRSessionEventInitRec = record
  26054. session: TJSXRSession;
  26055. bubbles: Boolean;
  26056. cancelable: Boolean;
  26057. composed: Boolean;
  26058. end;
  26059. IJSXRSessionEventInit = interface(IJSEventInit)
  26060. ['{32E69BDB-4548-3DA5-899B-4B371FD33DF4}']
  26061. function _Getsession: IJSXRSession;
  26062. procedure _Setsession(const aValue: IJSXRSession);
  26063. property session: IJSXRSession read _Getsession write _Setsession;
  26064. end;
  26065. TJSXRSessionEventInit = class(TJSEventInit,IJSXRSessionEventInit)
  26066. Protected
  26067. function _Getsession: IJSXRSession;
  26068. procedure _Setsession(const aValue: IJSXRSession);
  26069. Public
  26070. class function JSClassName: UnicodeString; override;
  26071. class function Cast(const Intf: IJSObject): IJSXRSessionEventInit;
  26072. property session: IJSXRSession read _Getsession write _Setsession;
  26073. end;
  26074. { --------------------------------------------------------------------
  26075. TJSKeyframeAnimationOptions
  26076. --------------------------------------------------------------------}
  26077. TJSKeyframeAnimationOptionsRec = record
  26078. id: UnicodeString;
  26079. iterationComposite: TIterationCompositeOperation;
  26080. composite: TCompositeOperation;
  26081. pseudoElement: UnicodeString;
  26082. delay: Double;
  26083. endDelay: Double;
  26084. fill: TFillMode;
  26085. iterationStart: Double;
  26086. iterations: Double;
  26087. duration: TEffectTiming_duration_Type;
  26088. direction: TPlaybackDirection;
  26089. easing: UTF8String;
  26090. end;
  26091. IJSKeyframeAnimationOptions = interface(IJSKeyframeEffectOptions)
  26092. ['{45EEF2B2-92C2-3893-8CBB-A60678800CA2}']
  26093. function _Getid: UnicodeString;
  26094. procedure _Setid(const aValue: UnicodeString);
  26095. property id: UnicodeString read _Getid write _Setid;
  26096. end;
  26097. TJSKeyframeAnimationOptions = class(TJSKeyframeEffectOptions,IJSKeyframeAnimationOptions)
  26098. Protected
  26099. function _Getid: UnicodeString;
  26100. procedure _Setid(const aValue: UnicodeString);
  26101. Public
  26102. class function JSClassName: UnicodeString; override;
  26103. class function Cast(const Intf: IJSObject): IJSKeyframeAnimationOptions;
  26104. property id: UnicodeString read _Getid write _Setid;
  26105. end;
  26106. { --------------------------------------------------------------------
  26107. TJSCompositionEventInit
  26108. --------------------------------------------------------------------}
  26109. TJSCompositionEventInitRec = record
  26110. data: UnicodeString;
  26111. view: TJSWindow;
  26112. detail: LongInt;
  26113. bubbles: Boolean;
  26114. cancelable: Boolean;
  26115. composed: Boolean;
  26116. end;
  26117. IJSCompositionEventInit = interface(IJSUIEventInit)
  26118. ['{09E09DF0-903E-3379-B56F-75F3A0400544}']
  26119. function _Getdata: UnicodeString;
  26120. procedure _Setdata(const aValue: UnicodeString);
  26121. property data: UnicodeString read _Getdata write _Setdata;
  26122. end;
  26123. TJSCompositionEventInit = class(TJSUIEventInit,IJSCompositionEventInit)
  26124. Protected
  26125. function _Getdata: UnicodeString;
  26126. procedure _Setdata(const aValue: UnicodeString);
  26127. Public
  26128. class function JSClassName: UnicodeString; override;
  26129. class function Cast(const Intf: IJSObject): IJSCompositionEventInit;
  26130. property data: UnicodeString read _Getdata write _Setdata;
  26131. end;
  26132. { --------------------------------------------------------------------
  26133. TJSExtendableMessageEventInit
  26134. --------------------------------------------------------------------}
  26135. // Union of Client, ServiceWorker, MessagePort
  26136. TExtendableMessageEventInit_source_Type = Variant;
  26137. TJSExtendableMessageEventInitRec = record
  26138. data: Variant;
  26139. origin: UnicodeString;
  26140. lastEventId: UnicodeString;
  26141. source: TExtendableMessageEventInit_source_Type;
  26142. ports: TJSMessagePortDynArray;
  26143. bubbles: Boolean;
  26144. cancelable: Boolean;
  26145. composed: Boolean;
  26146. end;
  26147. IJSExtendableMessageEventInit = interface(IJSExtendableEventInit)
  26148. ['{C2BEAB70-8B60-3F8E-B5DB-0D2CDEF508FB}']
  26149. function _Getdata: Variant;
  26150. function _Getorigin: UnicodeString;
  26151. function _GetlastEventId: UnicodeString;
  26152. function _Getsource: TExtendableMessageEventInit_source_Type;
  26153. function _Getports: TJSMessagePortDynArray;
  26154. procedure _Setdata(const aValue: Variant);
  26155. procedure _Setorigin(const aValue: UnicodeString);
  26156. procedure _SetlastEventId(const aValue: UnicodeString);
  26157. procedure _Setsource(const aValue: TExtendableMessageEventInit_source_Type);
  26158. procedure _Setports(const aValue: TJSMessagePortDynArray);
  26159. property data: Variant read _Getdata write _Setdata;
  26160. property origin: UnicodeString read _Getorigin write _Setorigin;
  26161. property lastEventId: UnicodeString read _GetlastEventId write _SetlastEventId;
  26162. property source: TExtendableMessageEventInit_source_Type read _Getsource write _Setsource;
  26163. property ports: TJSMessagePortDynArray read _Getports write _Setports;
  26164. end;
  26165. TJSExtendableMessageEventInit = class(TJSExtendableEventInit,IJSExtendableMessageEventInit)
  26166. Protected
  26167. function _Getdata: Variant;
  26168. function _Getorigin: UnicodeString;
  26169. function _GetlastEventId: UnicodeString;
  26170. function _Getsource: TExtendableMessageEventInit_source_Type;
  26171. function _Getports: TJSMessagePortDynArray;
  26172. procedure _Setdata(const aValue: Variant);
  26173. procedure _Setorigin(const aValue: UnicodeString);
  26174. procedure _SetlastEventId(const aValue: UnicodeString);
  26175. procedure _Setsource(const aValue: TExtendableMessageEventInit_source_Type);
  26176. procedure _Setports(const aValue: TJSMessagePortDynArray);
  26177. Public
  26178. class function JSClassName: UnicodeString; override;
  26179. class function Cast(const Intf: IJSObject): IJSExtendableMessageEventInit;
  26180. property data: Variant read _Getdata write _Setdata;
  26181. property origin: UnicodeString read _Getorigin write _Setorigin;
  26182. property lastEventId: UnicodeString read _GetlastEventId write _SetlastEventId;
  26183. property source: TExtendableMessageEventInit_source_Type read _Getsource write _Setsource;
  26184. property ports: TJSMessagePortDynArray read _Getports write _Setports;
  26185. end;
  26186. { --------------------------------------------------------------------
  26187. TJSChromeFilePropertyBag
  26188. --------------------------------------------------------------------}
  26189. TJSChromeFilePropertyBagRec = record
  26190. name: UnicodeString;
  26191. existenceCheck: Boolean;
  26192. lastModified: Int64;
  26193. type_: UnicodeString;
  26194. endings: TEndingType;
  26195. end;
  26196. IJSChromeFilePropertyBag = interface(IJSFilePropertyBag)
  26197. ['{11824A52-66FA-3605-AA87-1B431D601482}']
  26198. function _Getname: UnicodeString;
  26199. function _GetexistenceCheck: Boolean;
  26200. procedure _Setname(const aValue: UnicodeString);
  26201. procedure _SetexistenceCheck(const aValue: Boolean);
  26202. property name: UnicodeString read _Getname write _Setname;
  26203. property existenceCheck: Boolean read _GetexistenceCheck write _SetexistenceCheck;
  26204. end;
  26205. TJSChromeFilePropertyBag = class(TJSFilePropertyBag,IJSChromeFilePropertyBag)
  26206. Protected
  26207. function _Getname: UnicodeString;
  26208. function _GetexistenceCheck: Boolean;
  26209. procedure _Setname(const aValue: UnicodeString);
  26210. procedure _SetexistenceCheck(const aValue: Boolean);
  26211. Public
  26212. class function JSClassName: UnicodeString; override;
  26213. class function Cast(const Intf: IJSObject): IJSChromeFilePropertyBag;
  26214. property name: UnicodeString read _Getname write _Setname;
  26215. property existenceCheck: Boolean read _GetexistenceCheck write _SetexistenceCheck;
  26216. end;
  26217. { --------------------------------------------------------------------
  26218. TJSFocusEventInit
  26219. --------------------------------------------------------------------}
  26220. TJSFocusEventInitRec = record
  26221. relatedTarget: TJSEventTarget;
  26222. view: TJSWindow;
  26223. detail: LongInt;
  26224. bubbles: Boolean;
  26225. cancelable: Boolean;
  26226. composed: Boolean;
  26227. end;
  26228. IJSFocusEventInit = interface(IJSUIEventInit)
  26229. ['{15A8A12E-515B-3BBB-A58D-01D069382872}']
  26230. function _GetrelatedTarget: IJSEventTarget;
  26231. procedure _SetrelatedTarget(const aValue: IJSEventTarget);
  26232. property relatedTarget: IJSEventTarget read _GetrelatedTarget write _SetrelatedTarget;
  26233. end;
  26234. TJSFocusEventInit = class(TJSUIEventInit,IJSFocusEventInit)
  26235. Protected
  26236. function _GetrelatedTarget: IJSEventTarget;
  26237. procedure _SetrelatedTarget(const aValue: IJSEventTarget);
  26238. Public
  26239. class function JSClassName: UnicodeString; override;
  26240. class function Cast(const Intf: IJSObject): IJSFocusEventInit;
  26241. property relatedTarget: IJSEventTarget read _GetrelatedTarget write _SetrelatedTarget;
  26242. end;
  26243. { --------------------------------------------------------------------
  26244. TJSGamepadAxisMoveEventInit
  26245. --------------------------------------------------------------------}
  26246. TJSGamepadAxisMoveEventInitRec = record
  26247. axis: Cardinal;
  26248. value: Double;
  26249. gamepad: TJSGamepad;
  26250. bubbles: Boolean;
  26251. cancelable: Boolean;
  26252. composed: Boolean;
  26253. end;
  26254. IJSGamepadAxisMoveEventInit = interface(IJSGamepadEventInit)
  26255. ['{16907659-F3F1-3664-828A-84B1D756EA1B}']
  26256. function _Getaxis: Cardinal;
  26257. function _Getvalue: Double;
  26258. procedure _Setaxis(const aValue: Cardinal);
  26259. procedure _Setvalue(const aValue: Double);
  26260. property axis: Cardinal read _Getaxis write _Setaxis;
  26261. property value: Double read _Getvalue write _Setvalue;
  26262. end;
  26263. TJSGamepadAxisMoveEventInit = class(TJSGamepadEventInit,IJSGamepadAxisMoveEventInit)
  26264. Protected
  26265. function _Getaxis: Cardinal;
  26266. function _Getvalue: Double;
  26267. procedure _Setaxis(const aValue: Cardinal);
  26268. procedure _Setvalue(const aValue: Double);
  26269. Public
  26270. class function JSClassName: UnicodeString; override;
  26271. class function Cast(const Intf: IJSObject): IJSGamepadAxisMoveEventInit;
  26272. property axis: Cardinal read _Getaxis write _Setaxis;
  26273. property value: Double read _Getvalue write _Setvalue;
  26274. end;
  26275. { --------------------------------------------------------------------
  26276. TJSGamepadButtonEventInit
  26277. --------------------------------------------------------------------}
  26278. TJSGamepadButtonEventInitRec = record
  26279. button: Cardinal;
  26280. gamepad: TJSGamepad;
  26281. bubbles: Boolean;
  26282. cancelable: Boolean;
  26283. composed: Boolean;
  26284. end;
  26285. IJSGamepadButtonEventInit = interface(IJSGamepadEventInit)
  26286. ['{F0910FCF-545A-31A7-9B78-CE5266B56FF9}']
  26287. function _Getbutton: Cardinal;
  26288. procedure _Setbutton(const aValue: Cardinal);
  26289. property button: Cardinal read _Getbutton write _Setbutton;
  26290. end;
  26291. TJSGamepadButtonEventInit = class(TJSGamepadEventInit,IJSGamepadButtonEventInit)
  26292. Protected
  26293. function _Getbutton: Cardinal;
  26294. procedure _Setbutton(const aValue: Cardinal);
  26295. Public
  26296. class function JSClassName: UnicodeString; override;
  26297. class function Cast(const Intf: IJSObject): IJSGamepadButtonEventInit;
  26298. property button: Cardinal read _Getbutton write _Setbutton;
  26299. end;
  26300. { --------------------------------------------------------------------
  26301. TJSInputEventInit
  26302. --------------------------------------------------------------------}
  26303. TJSStaticRangeDynArray = IJSArray; // array of StaticRange
  26304. TJSInputEventInitRec = record
  26305. isComposing: Boolean;
  26306. inputType: UnicodeString;
  26307. data: UnicodeString;
  26308. dataTransfer: TJSDataTransfer;
  26309. targetRanges: TJSStaticRangeDynArray;
  26310. view: TJSWindow;
  26311. detail: LongInt;
  26312. bubbles: Boolean;
  26313. cancelable: Boolean;
  26314. composed: Boolean;
  26315. end;
  26316. IJSInputEventInit = interface(IJSUIEventInit)
  26317. ['{2E6D6DA1-D0D6-34F2-B43A-90B8B4E9A838}']
  26318. function _GetisComposing: Boolean;
  26319. function _GetinputType: UnicodeString;
  26320. function _Getdata: UnicodeString;
  26321. function _GetdataTransfer: IJSDataTransfer;
  26322. function _GettargetRanges: TJSStaticRangeDynArray;
  26323. procedure _SetisComposing(const aValue: Boolean);
  26324. procedure _SetinputType(const aValue: UnicodeString);
  26325. procedure _Setdata(const aValue: UnicodeString);
  26326. procedure _SetdataTransfer(const aValue: IJSDataTransfer);
  26327. procedure _SettargetRanges(const aValue: TJSStaticRangeDynArray);
  26328. property isComposing: Boolean read _GetisComposing write _SetisComposing;
  26329. property inputType: UnicodeString read _GetinputType write _SetinputType;
  26330. property data: UnicodeString read _Getdata write _Setdata;
  26331. property dataTransfer: IJSDataTransfer read _GetdataTransfer write _SetdataTransfer;
  26332. property targetRanges: TJSStaticRangeDynArray read _GettargetRanges write _SettargetRanges;
  26333. end;
  26334. TJSInputEventInit = class(TJSUIEventInit,IJSInputEventInit)
  26335. Protected
  26336. function _GetisComposing: Boolean;
  26337. function _GetinputType: UnicodeString;
  26338. function _Getdata: UnicodeString;
  26339. function _GetdataTransfer: IJSDataTransfer;
  26340. function _GettargetRanges: TJSStaticRangeDynArray;
  26341. procedure _SetisComposing(const aValue: Boolean);
  26342. procedure _SetinputType(const aValue: UnicodeString);
  26343. procedure _Setdata(const aValue: UnicodeString);
  26344. procedure _SetdataTransfer(const aValue: IJSDataTransfer);
  26345. procedure _SettargetRanges(const aValue: TJSStaticRangeDynArray);
  26346. Public
  26347. class function JSClassName: UnicodeString; override;
  26348. class function Cast(const Intf: IJSObject): IJSInputEventInit;
  26349. property isComposing: Boolean read _GetisComposing write _SetisComposing;
  26350. property inputType: UnicodeString read _GetinputType write _SetinputType;
  26351. property data: UnicodeString read _Getdata write _Setdata;
  26352. property dataTransfer: IJSDataTransfer read _GetdataTransfer write _SetdataTransfer;
  26353. property targetRanges: TJSStaticRangeDynArray read _GettargetRanges write _SettargetRanges;
  26354. end;
  26355. { --------------------------------------------------------------------
  26356. TJSNotificationEventInit
  26357. --------------------------------------------------------------------}
  26358. TJSNotificationEventInitRec = record
  26359. notification: TJSNotification;
  26360. bubbles: Boolean;
  26361. cancelable: Boolean;
  26362. composed: Boolean;
  26363. end;
  26364. IJSNotificationEventInit = interface(IJSExtendableEventInit)
  26365. ['{7338BCFA-F812-3BD0-965E-79BCE95A8DE1}']
  26366. function _Getnotification: IJSNotification;
  26367. procedure _Setnotification(const aValue: IJSNotification);
  26368. property notification: IJSNotification read _Getnotification write _Setnotification;
  26369. end;
  26370. TJSNotificationEventInit = class(TJSExtendableEventInit,IJSNotificationEventInit)
  26371. Protected
  26372. function _Getnotification: IJSNotification;
  26373. procedure _Setnotification(const aValue: IJSNotification);
  26374. Public
  26375. class function JSClassName: UnicodeString; override;
  26376. class function Cast(const Intf: IJSObject): IJSNotificationEventInit;
  26377. property notification: IJSNotification read _Getnotification write _Setnotification;
  26378. end;
  26379. { --------------------------------------------------------------------
  26380. TJSPaymentMethodChangeEventInit
  26381. --------------------------------------------------------------------}
  26382. TJSPaymentMethodChangeEventInitRec = record
  26383. methodName: UnicodeString;
  26384. methodDetails: IJSObject;
  26385. bubbles: Boolean;
  26386. cancelable: Boolean;
  26387. composed: Boolean;
  26388. end;
  26389. IJSPaymentMethodChangeEventInit = interface(IJSPaymentRequestUpdateEventInit)
  26390. ['{23BACC8D-28EC-30B2-9779-0A2254BCA6F9}']
  26391. function _GetmethodName: UnicodeString;
  26392. function _GetmethodDetails: IJSObject;
  26393. procedure _SetmethodName(const aValue: UnicodeString);
  26394. procedure _SetmethodDetails(const aValue: IJSObject);
  26395. property methodName: UnicodeString read _GetmethodName write _SetmethodName;
  26396. property methodDetails: IJSObject read _GetmethodDetails write _SetmethodDetails;
  26397. end;
  26398. TJSPaymentMethodChangeEventInit = class(TJSPaymentRequestUpdateEventInit,IJSPaymentMethodChangeEventInit)
  26399. Protected
  26400. function _GetmethodName: UnicodeString;
  26401. function _GetmethodDetails: IJSObject;
  26402. procedure _SetmethodName(const aValue: UnicodeString);
  26403. procedure _SetmethodDetails(const aValue: IJSObject);
  26404. Public
  26405. class function JSClassName: UnicodeString; override;
  26406. class function Cast(const Intf: IJSObject): IJSPaymentMethodChangeEventInit;
  26407. property methodName: UnicodeString read _GetmethodName write _SetmethodName;
  26408. property methodDetails: IJSObject read _GetmethodDetails write _SetmethodDetails;
  26409. end;
  26410. { --------------------------------------------------------------------
  26411. TJSPushEventInit
  26412. --------------------------------------------------------------------}
  26413. TJSPushEventInitRec = record
  26414. data: TPushMessageDataInit;
  26415. bubbles: Boolean;
  26416. cancelable: Boolean;
  26417. composed: Boolean;
  26418. end;
  26419. IJSPushEventInit = interface(IJSExtendableEventInit)
  26420. ['{0C4B48A4-CBB7-3A00-870D-E0190EA59C72}']
  26421. function _Getdata: TPushMessageDataInit;
  26422. procedure _Setdata(const aValue: TPushMessageDataInit);
  26423. property data: TPushMessageDataInit read _Getdata write _Setdata;
  26424. end;
  26425. TJSPushEventInit = class(TJSExtendableEventInit,IJSPushEventInit)
  26426. Protected
  26427. function _Getdata: TPushMessageDataInit;
  26428. procedure _Setdata(const aValue: TPushMessageDataInit);
  26429. Public
  26430. class function JSClassName: UnicodeString; override;
  26431. class function Cast(const Intf: IJSObject): IJSPushEventInit;
  26432. property data: TPushMessageDataInit read _Getdata write _Setdata;
  26433. end;
  26434. { --------------------------------------------------------------------
  26435. TJSRTCRtpSourceEntry
  26436. --------------------------------------------------------------------}
  26437. TJSRTCRtpSourceEntryRec = record
  26438. sourceType: TRTCRtpSourceEntryType;
  26439. voiceActivityFlag: Boolean;
  26440. timestamp: TDOMHighResTimeStamp;
  26441. source: Cardinal;
  26442. audioLevel: Double;
  26443. rtpTimestamp: Cardinal;
  26444. end;
  26445. IJSRTCRtpSourceEntry = interface(IJSRTCRtpSynchronizationSource)
  26446. ['{FBDB695F-ABF6-37AA-B58E-6606FE292436}']
  26447. function _GetsourceType: TRTCRtpSourceEntryType;
  26448. procedure _SetsourceType(const aValue: TRTCRtpSourceEntryType);
  26449. property sourceType: TRTCRtpSourceEntryType read _GetsourceType write _SetsourceType;
  26450. end;
  26451. TJSRTCRtpSourceEntry = class(TJSRTCRtpSynchronizationSource,IJSRTCRtpSourceEntry)
  26452. Protected
  26453. function _GetsourceType: TRTCRtpSourceEntryType;
  26454. procedure _SetsourceType(const aValue: TRTCRtpSourceEntryType);
  26455. Public
  26456. class function JSClassName: UnicodeString; override;
  26457. class function Cast(const Intf: IJSObject): IJSRTCRtpSourceEntry;
  26458. property sourceType: TRTCRtpSourceEntryType read _GetsourceType write _SetsourceType;
  26459. end;
  26460. { --------------------------------------------------------------------
  26461. TJSRTCReceivedRtpStreamStats
  26462. --------------------------------------------------------------------}
  26463. TJSRTCReceivedRtpStreamStatsRec = record
  26464. packetsReceived: QWord;
  26465. packetsLost: Int64;
  26466. jitter: Double;
  26467. discardedPackets: Cardinal;
  26468. packetsDiscarded: Cardinal;
  26469. ssrc: Cardinal;
  26470. kind: UnicodeString;
  26471. mediaType: UnicodeString;
  26472. transportId: UnicodeString;
  26473. codecId: UnicodeString;
  26474. timestamp: TDOMHighResTimeStamp;
  26475. type_: TRTCStatsType;
  26476. id: UnicodeString;
  26477. end;
  26478. IJSRTCReceivedRtpStreamStats = interface(IJSRTCRtpStreamStats)
  26479. ['{8DCA51F3-9710-3D13-BBE1-AE7323DC602B}']
  26480. function _GetpacketsReceived: QWord;
  26481. function _GetpacketsLost: Int64;
  26482. function _Getjitter: Double;
  26483. function _GetdiscardedPackets: Cardinal;
  26484. function _GetpacketsDiscarded: Cardinal;
  26485. procedure _SetpacketsReceived(const aValue: QWord);
  26486. procedure _SetpacketsLost(const aValue: Int64);
  26487. procedure _Setjitter(const aValue: Double);
  26488. procedure _SetdiscardedPackets(const aValue: Cardinal);
  26489. procedure _SetpacketsDiscarded(const aValue: Cardinal);
  26490. property packetsReceived: QWord read _GetpacketsReceived write _SetpacketsReceived;
  26491. property packetsLost: Int64 read _GetpacketsLost write _SetpacketsLost;
  26492. property jitter: Double read _Getjitter write _Setjitter;
  26493. property discardedPackets: Cardinal read _GetdiscardedPackets write _SetdiscardedPackets;
  26494. property packetsDiscarded: Cardinal read _GetpacketsDiscarded write _SetpacketsDiscarded;
  26495. end;
  26496. TJSRTCReceivedRtpStreamStats = class(TJSRTCRtpStreamStats,IJSRTCReceivedRtpStreamStats)
  26497. Protected
  26498. function _GetpacketsReceived: QWord;
  26499. function _GetpacketsLost: Int64;
  26500. function _Getjitter: Double;
  26501. function _GetdiscardedPackets: Cardinal;
  26502. function _GetpacketsDiscarded: Cardinal;
  26503. procedure _SetpacketsReceived(const aValue: QWord);
  26504. procedure _SetpacketsLost(const aValue: Int64);
  26505. procedure _Setjitter(const aValue: Double);
  26506. procedure _SetdiscardedPackets(const aValue: Cardinal);
  26507. procedure _SetpacketsDiscarded(const aValue: Cardinal);
  26508. Public
  26509. class function JSClassName: UnicodeString; override;
  26510. class function Cast(const Intf: IJSObject): IJSRTCReceivedRtpStreamStats;
  26511. property packetsReceived: QWord read _GetpacketsReceived write _SetpacketsReceived;
  26512. property packetsLost: Int64 read _GetpacketsLost write _SetpacketsLost;
  26513. property jitter: Double read _Getjitter write _Setjitter;
  26514. property discardedPackets: Cardinal read _GetdiscardedPackets write _SetdiscardedPackets;
  26515. property packetsDiscarded: Cardinal read _GetpacketsDiscarded write _SetpacketsDiscarded;
  26516. end;
  26517. { --------------------------------------------------------------------
  26518. TJSRTCSentRtpStreamStats
  26519. --------------------------------------------------------------------}
  26520. TJSRTCSentRtpStreamStatsRec = record
  26521. packetsSent: Cardinal;
  26522. bytesSent: QWord;
  26523. ssrc: Cardinal;
  26524. kind: UnicodeString;
  26525. mediaType: UnicodeString;
  26526. transportId: UnicodeString;
  26527. codecId: UnicodeString;
  26528. timestamp: TDOMHighResTimeStamp;
  26529. type_: TRTCStatsType;
  26530. id: UnicodeString;
  26531. end;
  26532. IJSRTCSentRtpStreamStats = interface(IJSRTCRtpStreamStats)
  26533. ['{B25C5ACA-A88A-328A-9A28-E53795992D92}']
  26534. function _GetpacketsSent: Cardinal;
  26535. function _GetbytesSent: QWord;
  26536. procedure _SetpacketsSent(const aValue: Cardinal);
  26537. procedure _SetbytesSent(const aValue: QWord);
  26538. property packetsSent: Cardinal read _GetpacketsSent write _SetpacketsSent;
  26539. property bytesSent: QWord read _GetbytesSent write _SetbytesSent;
  26540. end;
  26541. TJSRTCSentRtpStreamStats = class(TJSRTCRtpStreamStats,IJSRTCSentRtpStreamStats)
  26542. Protected
  26543. function _GetpacketsSent: Cardinal;
  26544. function _GetbytesSent: QWord;
  26545. procedure _SetpacketsSent(const aValue: Cardinal);
  26546. procedure _SetbytesSent(const aValue: QWord);
  26547. Public
  26548. class function JSClassName: UnicodeString; override;
  26549. class function Cast(const Intf: IJSObject): IJSRTCSentRtpStreamStats;
  26550. property packetsSent: Cardinal read _GetpacketsSent write _SetpacketsSent;
  26551. property bytesSent: QWord read _GetbytesSent write _SetbytesSent;
  26552. end;
  26553. { --------------------------------------------------------------------
  26554. TJSRTCVideoSourceStats
  26555. --------------------------------------------------------------------}
  26556. TJSRTCVideoSourceStatsRec = record
  26557. width: Cardinal;
  26558. height: Cardinal;
  26559. frames: Cardinal;
  26560. framesPerSecond: Double;
  26561. trackIdentifier: UnicodeString;
  26562. kind: UnicodeString;
  26563. timestamp: TDOMHighResTimeStamp;
  26564. type_: TRTCStatsType;
  26565. id: UnicodeString;
  26566. end;
  26567. IJSRTCVideoSourceStats = interface(IJSRTCMediaSourceStats)
  26568. ['{18C8BB38-A8F1-34F5-B0AE-C2B35E4BD2B0}']
  26569. function _Getwidth: Cardinal;
  26570. function _Getheight: Cardinal;
  26571. function _Getframes: Cardinal;
  26572. function _GetframesPerSecond: Double;
  26573. procedure _Setwidth(const aValue: Cardinal);
  26574. procedure _Setheight(const aValue: Cardinal);
  26575. procedure _Setframes(const aValue: Cardinal);
  26576. procedure _SetframesPerSecond(const aValue: Double);
  26577. property width: Cardinal read _Getwidth write _Setwidth;
  26578. property height: Cardinal read _Getheight write _Setheight;
  26579. property frames: Cardinal read _Getframes write _Setframes;
  26580. property framesPerSecond: Double read _GetframesPerSecond write _SetframesPerSecond;
  26581. end;
  26582. TJSRTCVideoSourceStats = class(TJSRTCMediaSourceStats,IJSRTCVideoSourceStats)
  26583. Protected
  26584. function _Getwidth: Cardinal;
  26585. function _Getheight: Cardinal;
  26586. function _Getframes: Cardinal;
  26587. function _GetframesPerSecond: Double;
  26588. procedure _Setwidth(const aValue: Cardinal);
  26589. procedure _Setheight(const aValue: Cardinal);
  26590. procedure _Setframes(const aValue: Cardinal);
  26591. procedure _SetframesPerSecond(const aValue: Double);
  26592. Public
  26593. class function JSClassName: UnicodeString; override;
  26594. class function Cast(const Intf: IJSObject): IJSRTCVideoSourceStats;
  26595. property width: Cardinal read _Getwidth write _Setwidth;
  26596. property height: Cardinal read _Getheight write _Setheight;
  26597. property frames: Cardinal read _Getframes write _Setframes;
  26598. property framesPerSecond: Double read _GetframesPerSecond write _SetframesPerSecond;
  26599. end;
  26600. { --------------------------------------------------------------------
  26601. TJSSpeechSynthesisErrorEventInit
  26602. --------------------------------------------------------------------}
  26603. TJSSpeechSynthesisErrorEventInitRec = record
  26604. error: TSpeechSynthesisErrorCode;
  26605. utterance: TJSSpeechSynthesisUtterance;
  26606. charIndex: Cardinal;
  26607. charLength: Cardinal;
  26608. elapsedTime: Single;
  26609. name: UnicodeString;
  26610. bubbles: Boolean;
  26611. cancelable: Boolean;
  26612. composed: Boolean;
  26613. end;
  26614. IJSSpeechSynthesisErrorEventInit = interface(IJSSpeechSynthesisEventInit)
  26615. ['{D50C86C1-E964-329C-877E-D5FA1BB09722}']
  26616. function _Geterror: TSpeechSynthesisErrorCode;
  26617. procedure _Seterror(const aValue: TSpeechSynthesisErrorCode);
  26618. property error: TSpeechSynthesisErrorCode read _Geterror write _Seterror;
  26619. end;
  26620. TJSSpeechSynthesisErrorEventInit = class(TJSSpeechSynthesisEventInit,IJSSpeechSynthesisErrorEventInit)
  26621. Protected
  26622. function _Geterror: TSpeechSynthesisErrorCode;
  26623. procedure _Seterror(const aValue: TSpeechSynthesisErrorCode);
  26624. Public
  26625. class function JSClassName: UnicodeString; override;
  26626. class function Cast(const Intf: IJSObject): IJSSpeechSynthesisErrorEventInit;
  26627. property error: TSpeechSynthesisErrorCode read _Geterror write _Seterror;
  26628. end;
  26629. { --------------------------------------------------------------------
  26630. TJSHmacDerivedKeyParams
  26631. --------------------------------------------------------------------}
  26632. TJSHmacDerivedKeyParamsRec = record
  26633. length_: Cardinal;
  26634. hash: TAlgorithmIdentifier;
  26635. name: UnicodeString;
  26636. end;
  26637. IJSHmacDerivedKeyParams = interface(IJSHmacImportParams)
  26638. ['{8386E121-A457-382C-8146-E78F9E9434B9}']
  26639. function _Getlength_: Cardinal;
  26640. procedure _Setlength_(const aValue: Cardinal);
  26641. property length_: Cardinal read _Getlength_ write _Setlength_;
  26642. end;
  26643. TJSHmacDerivedKeyParams = class(TJSHmacImportParams,IJSHmacDerivedKeyParams)
  26644. Protected
  26645. function _Getlength_: Cardinal;
  26646. procedure _Setlength_(const aValue: Cardinal);
  26647. Public
  26648. class function JSClassName: UnicodeString; override;
  26649. class function Cast(const Intf: IJSObject): IJSHmacDerivedKeyParams;
  26650. property length_: Cardinal read _Getlength_ write _Setlength_;
  26651. end;
  26652. { --------------------------------------------------------------------
  26653. TJSEventModifierInit
  26654. --------------------------------------------------------------------}
  26655. TJSEventModifierInitRec = record
  26656. ctrlKey: Boolean;
  26657. shiftKey: Boolean;
  26658. altKey: Boolean;
  26659. metaKey: Boolean;
  26660. modifierAltGraph: Boolean;
  26661. modifierCapsLock: Boolean;
  26662. modifierFn: Boolean;
  26663. modifierFnLock: Boolean;
  26664. modifierNumLock: Boolean;
  26665. modifierOS: Boolean;
  26666. modifierScrollLock: Boolean;
  26667. modifierSymbol: Boolean;
  26668. modifierSymbolLock: Boolean;
  26669. view: TJSWindow;
  26670. detail: LongInt;
  26671. bubbles: Boolean;
  26672. cancelable: Boolean;
  26673. composed: Boolean;
  26674. end;
  26675. IJSEventModifierInit = interface(IJSUIEventInit)
  26676. ['{2CEC0442-6DC0-3932-9972-C79F1BE13412}']
  26677. function _GetctrlKey: Boolean;
  26678. function _GetshiftKey: Boolean;
  26679. function _GetaltKey: Boolean;
  26680. function _GetmetaKey: Boolean;
  26681. function _GetmodifierAltGraph: Boolean;
  26682. function _GetmodifierCapsLock: Boolean;
  26683. function _GetmodifierFn: Boolean;
  26684. function _GetmodifierFnLock: Boolean;
  26685. function _GetmodifierNumLock: Boolean;
  26686. function _GetmodifierOS: Boolean;
  26687. function _GetmodifierScrollLock: Boolean;
  26688. function _GetmodifierSymbol: Boolean;
  26689. function _GetmodifierSymbolLock: Boolean;
  26690. procedure _SetctrlKey(const aValue: Boolean);
  26691. procedure _SetshiftKey(const aValue: Boolean);
  26692. procedure _SetaltKey(const aValue: Boolean);
  26693. procedure _SetmetaKey(const aValue: Boolean);
  26694. procedure _SetmodifierAltGraph(const aValue: Boolean);
  26695. procedure _SetmodifierCapsLock(const aValue: Boolean);
  26696. procedure _SetmodifierFn(const aValue: Boolean);
  26697. procedure _SetmodifierFnLock(const aValue: Boolean);
  26698. procedure _SetmodifierNumLock(const aValue: Boolean);
  26699. procedure _SetmodifierOS(const aValue: Boolean);
  26700. procedure _SetmodifierScrollLock(const aValue: Boolean);
  26701. procedure _SetmodifierSymbol(const aValue: Boolean);
  26702. procedure _SetmodifierSymbolLock(const aValue: Boolean);
  26703. property ctrlKey: Boolean read _GetctrlKey write _SetctrlKey;
  26704. property shiftKey: Boolean read _GetshiftKey write _SetshiftKey;
  26705. property altKey: Boolean read _GetaltKey write _SetaltKey;
  26706. property metaKey: Boolean read _GetmetaKey write _SetmetaKey;
  26707. property modifierAltGraph: Boolean read _GetmodifierAltGraph write _SetmodifierAltGraph;
  26708. property modifierCapsLock: Boolean read _GetmodifierCapsLock write _SetmodifierCapsLock;
  26709. property modifierFn: Boolean read _GetmodifierFn write _SetmodifierFn;
  26710. property modifierFnLock: Boolean read _GetmodifierFnLock write _SetmodifierFnLock;
  26711. property modifierNumLock: Boolean read _GetmodifierNumLock write _SetmodifierNumLock;
  26712. property modifierOS: Boolean read _GetmodifierOS write _SetmodifierOS;
  26713. property modifierScrollLock: Boolean read _GetmodifierScrollLock write _SetmodifierScrollLock;
  26714. property modifierSymbol: Boolean read _GetmodifierSymbol write _SetmodifierSymbol;
  26715. property modifierSymbolLock: Boolean read _GetmodifierSymbolLock write _SetmodifierSymbolLock;
  26716. end;
  26717. TJSEventModifierInit = class(TJSUIEventInit,IJSEventModifierInit)
  26718. Protected
  26719. function _GetctrlKey: Boolean;
  26720. function _GetshiftKey: Boolean;
  26721. function _GetaltKey: Boolean;
  26722. function _GetmetaKey: Boolean;
  26723. function _GetmodifierAltGraph: Boolean;
  26724. function _GetmodifierCapsLock: Boolean;
  26725. function _GetmodifierFn: Boolean;
  26726. function _GetmodifierFnLock: Boolean;
  26727. function _GetmodifierNumLock: Boolean;
  26728. function _GetmodifierOS: Boolean;
  26729. function _GetmodifierScrollLock: Boolean;
  26730. function _GetmodifierSymbol: Boolean;
  26731. function _GetmodifierSymbolLock: Boolean;
  26732. procedure _SetctrlKey(const aValue: Boolean);
  26733. procedure _SetshiftKey(const aValue: Boolean);
  26734. procedure _SetaltKey(const aValue: Boolean);
  26735. procedure _SetmetaKey(const aValue: Boolean);
  26736. procedure _SetmodifierAltGraph(const aValue: Boolean);
  26737. procedure _SetmodifierCapsLock(const aValue: Boolean);
  26738. procedure _SetmodifierFn(const aValue: Boolean);
  26739. procedure _SetmodifierFnLock(const aValue: Boolean);
  26740. procedure _SetmodifierNumLock(const aValue: Boolean);
  26741. procedure _SetmodifierOS(const aValue: Boolean);
  26742. procedure _SetmodifierScrollLock(const aValue: Boolean);
  26743. procedure _SetmodifierSymbol(const aValue: Boolean);
  26744. procedure _SetmodifierSymbolLock(const aValue: Boolean);
  26745. Public
  26746. class function JSClassName: UnicodeString; override;
  26747. class function Cast(const Intf: IJSObject): IJSEventModifierInit;
  26748. property ctrlKey: Boolean read _GetctrlKey write _SetctrlKey;
  26749. property shiftKey: Boolean read _GetshiftKey write _SetshiftKey;
  26750. property altKey: Boolean read _GetaltKey write _SetaltKey;
  26751. property metaKey: Boolean read _GetmetaKey write _SetmetaKey;
  26752. property modifierAltGraph: Boolean read _GetmodifierAltGraph write _SetmodifierAltGraph;
  26753. property modifierCapsLock: Boolean read _GetmodifierCapsLock write _SetmodifierCapsLock;
  26754. property modifierFn: Boolean read _GetmodifierFn write _SetmodifierFn;
  26755. property modifierFnLock: Boolean read _GetmodifierFnLock write _SetmodifierFnLock;
  26756. property modifierNumLock: Boolean read _GetmodifierNumLock write _SetmodifierNumLock;
  26757. property modifierOS: Boolean read _GetmodifierOS write _SetmodifierOS;
  26758. property modifierScrollLock: Boolean read _GetmodifierScrollLock write _SetmodifierScrollLock;
  26759. property modifierSymbol: Boolean read _GetmodifierSymbol write _SetmodifierSymbol;
  26760. property modifierSymbolLock: Boolean read _GetmodifierSymbolLock write _SetmodifierSymbolLock;
  26761. end;
  26762. { --------------------------------------------------------------------
  26763. TJSGPUComputePipelineDescriptor
  26764. --------------------------------------------------------------------}
  26765. TJSGPUComputePipelineDescriptorRec = record
  26766. compute: TJSGPUProgrammableStage;
  26767. layout: TGPUPipelineDescriptorBase_layout_Type;
  26768. label_: UnicodeString;
  26769. end;
  26770. IJSGPUComputePipelineDescriptor = interface(IJSGPUPipelineDescriptorBase)
  26771. ['{BD7A0485-8DE6-35BE-9096-110F89960682}']
  26772. function _Getcompute: TJSGPUProgrammableStage;
  26773. procedure _Setcompute(const aValue: TJSGPUProgrammableStage);
  26774. property compute: TJSGPUProgrammableStage read _Getcompute write _Setcompute;
  26775. end;
  26776. TJSGPUComputePipelineDescriptor = class(TJSGPUPipelineDescriptorBase,IJSGPUComputePipelineDescriptor)
  26777. Protected
  26778. function _Getcompute: TJSGPUProgrammableStage;
  26779. procedure _Setcompute(const aValue: TJSGPUProgrammableStage);
  26780. Public
  26781. class function JSClassName: UnicodeString; override;
  26782. class function Cast(const Intf: IJSObject): IJSGPUComputePipelineDescriptor;
  26783. property compute: TJSGPUProgrammableStage read _Getcompute write _Setcompute;
  26784. end;
  26785. { --------------------------------------------------------------------
  26786. TJSGPURenderPipelineDescriptor
  26787. --------------------------------------------------------------------}
  26788. TJSGPURenderPipelineDescriptorRec = record
  26789. vertex: TJSGPUVertexState;
  26790. primitive: TJSGPUPrimitiveState;
  26791. depthStencil: TJSGPUDepthStencilState;
  26792. multisample: TJSGPUMultisampleState;
  26793. fragment: TJSGPUFragmentState;
  26794. layout: TGPUPipelineDescriptorBase_layout_Type;
  26795. label_: UnicodeString;
  26796. end;
  26797. IJSGPURenderPipelineDescriptor = interface(IJSGPUPipelineDescriptorBase)
  26798. ['{1ECEF9EE-C9D1-33AF-B67F-CA89E6DCC163}']
  26799. function _Getvertex: TJSGPUVertexState;
  26800. function _Getprimitive: TJSGPUPrimitiveState;
  26801. function _GetdepthStencil: TJSGPUDepthStencilState;
  26802. function _Getmultisample: TJSGPUMultisampleState;
  26803. function _Getfragment: TJSGPUFragmentState;
  26804. procedure _Setvertex(const aValue: TJSGPUVertexState);
  26805. procedure _Setprimitive(const aValue: TJSGPUPrimitiveState);
  26806. procedure _SetdepthStencil(const aValue: TJSGPUDepthStencilState);
  26807. procedure _Setmultisample(const aValue: TJSGPUMultisampleState);
  26808. procedure _Setfragment(const aValue: TJSGPUFragmentState);
  26809. property vertex: TJSGPUVertexState read _Getvertex write _Setvertex;
  26810. property primitive: TJSGPUPrimitiveState read _Getprimitive write _Setprimitive;
  26811. property depthStencil: TJSGPUDepthStencilState read _GetdepthStencil write _SetdepthStencil;
  26812. property multisample: TJSGPUMultisampleState read _Getmultisample write _Setmultisample;
  26813. property fragment: TJSGPUFragmentState read _Getfragment write _Setfragment;
  26814. end;
  26815. TJSGPURenderPipelineDescriptor = class(TJSGPUPipelineDescriptorBase,IJSGPURenderPipelineDescriptor)
  26816. Protected
  26817. function _Getvertex: TJSGPUVertexState;
  26818. function _Getprimitive: TJSGPUPrimitiveState;
  26819. function _GetdepthStencil: TJSGPUDepthStencilState;
  26820. function _Getmultisample: TJSGPUMultisampleState;
  26821. function _Getfragment: TJSGPUFragmentState;
  26822. procedure _Setvertex(const aValue: TJSGPUVertexState);
  26823. procedure _Setprimitive(const aValue: TJSGPUPrimitiveState);
  26824. procedure _SetdepthStencil(const aValue: TJSGPUDepthStencilState);
  26825. procedure _Setmultisample(const aValue: TJSGPUMultisampleState);
  26826. procedure _Setfragment(const aValue: TJSGPUFragmentState);
  26827. Public
  26828. class function JSClassName: UnicodeString; override;
  26829. class function Cast(const Intf: IJSObject): IJSGPURenderPipelineDescriptor;
  26830. property vertex: TJSGPUVertexState read _Getvertex write _Setvertex;
  26831. property primitive: TJSGPUPrimitiveState read _Getprimitive write _Setprimitive;
  26832. property depthStencil: TJSGPUDepthStencilState read _GetdepthStencil write _SetdepthStencil;
  26833. property multisample: TJSGPUMultisampleState read _Getmultisample write _Setmultisample;
  26834. property fragment: TJSGPUFragmentState read _Getfragment write _Setfragment;
  26835. end;
  26836. { --------------------------------------------------------------------
  26837. TJSGPURenderBundleEncoderDescriptor
  26838. --------------------------------------------------------------------}
  26839. TJSGPURenderBundleEncoderDescriptorRec = record
  26840. depthReadOnly: Boolean;
  26841. stencilReadOnly: Boolean;
  26842. colorFormats: TGPUTextureFormatDynArray;
  26843. depthStencilFormat: TGPUTextureFormat;
  26844. sampleCount: TGPUSize32;
  26845. label_: UnicodeString;
  26846. end;
  26847. IJSGPURenderBundleEncoderDescriptor = interface(IJSGPURenderPassLayout)
  26848. ['{6E90B31C-4861-34DC-8A7B-085A962D27E9}']
  26849. function _GetdepthReadOnly: Boolean;
  26850. function _GetstencilReadOnly: Boolean;
  26851. procedure _SetdepthReadOnly(const aValue: Boolean);
  26852. procedure _SetstencilReadOnly(const aValue: Boolean);
  26853. property depthReadOnly: Boolean read _GetdepthReadOnly write _SetdepthReadOnly;
  26854. property stencilReadOnly: Boolean read _GetstencilReadOnly write _SetstencilReadOnly;
  26855. end;
  26856. TJSGPURenderBundleEncoderDescriptor = class(TJSGPURenderPassLayout,IJSGPURenderBundleEncoderDescriptor)
  26857. Protected
  26858. function _GetdepthReadOnly: Boolean;
  26859. function _GetstencilReadOnly: Boolean;
  26860. procedure _SetdepthReadOnly(const aValue: Boolean);
  26861. procedure _SetstencilReadOnly(const aValue: Boolean);
  26862. Public
  26863. class function JSClassName: UnicodeString; override;
  26864. class function Cast(const Intf: IJSObject): IJSGPURenderBundleEncoderDescriptor;
  26865. property depthReadOnly: Boolean read _GetdepthReadOnly write _SetdepthReadOnly;
  26866. property stencilReadOnly: Boolean read _GetstencilReadOnly write _SetstencilReadOnly;
  26867. end;
  26868. { --------------------------------------------------------------------
  26869. TJSKeyboardEventInit
  26870. --------------------------------------------------------------------}
  26871. TJSKeyboardEventInitRec = record
  26872. key: UnicodeString;
  26873. code: UnicodeString;
  26874. location: Cardinal;
  26875. repeat_: Boolean;
  26876. isComposing: Boolean;
  26877. charCode: Cardinal;
  26878. keyCode: Cardinal;
  26879. which: Cardinal;
  26880. ctrlKey: Boolean;
  26881. shiftKey: Boolean;
  26882. altKey: Boolean;
  26883. metaKey: Boolean;
  26884. modifierAltGraph: Boolean;
  26885. modifierCapsLock: Boolean;
  26886. modifierFn: Boolean;
  26887. modifierFnLock: Boolean;
  26888. modifierNumLock: Boolean;
  26889. modifierOS: Boolean;
  26890. modifierScrollLock: Boolean;
  26891. modifierSymbol: Boolean;
  26892. modifierSymbolLock: Boolean;
  26893. view: TJSWindow;
  26894. detail: LongInt;
  26895. bubbles: Boolean;
  26896. cancelable: Boolean;
  26897. composed: Boolean;
  26898. end;
  26899. IJSKeyboardEventInit = interface(IJSEventModifierInit)
  26900. ['{40F8318E-16C5-3E3D-8CFE-37F939DF7424}']
  26901. function _Getkey: UnicodeString;
  26902. function _Getcode: UnicodeString;
  26903. function _Getlocation: Cardinal;
  26904. function _Getrepeat_: Boolean;
  26905. function _GetisComposing: Boolean;
  26906. function _GetcharCode: Cardinal;
  26907. function _GetkeyCode: Cardinal;
  26908. function _Getwhich: Cardinal;
  26909. procedure _Setkey(const aValue: UnicodeString);
  26910. procedure _Setcode(const aValue: UnicodeString);
  26911. procedure _Setlocation(const aValue: Cardinal);
  26912. procedure _Setrepeat_(const aValue: Boolean);
  26913. procedure _SetisComposing(const aValue: Boolean);
  26914. procedure _SetcharCode(const aValue: Cardinal);
  26915. procedure _SetkeyCode(const aValue: Cardinal);
  26916. procedure _Setwhich(const aValue: Cardinal);
  26917. property key: UnicodeString read _Getkey write _Setkey;
  26918. property code: UnicodeString read _Getcode write _Setcode;
  26919. property location: Cardinal read _Getlocation write _Setlocation;
  26920. property repeat_: Boolean read _Getrepeat_ write _Setrepeat_;
  26921. property isComposing: Boolean read _GetisComposing write _SetisComposing;
  26922. property charCode: Cardinal read _GetcharCode write _SetcharCode;
  26923. property keyCode: Cardinal read _GetkeyCode write _SetkeyCode;
  26924. property which: Cardinal read _Getwhich write _Setwhich;
  26925. end;
  26926. TJSKeyboardEventInit = class(TJSEventModifierInit,IJSKeyboardEventInit)
  26927. Protected
  26928. function _Getkey: UnicodeString;
  26929. function _Getcode: UnicodeString;
  26930. function _Getlocation: Cardinal;
  26931. function _Getrepeat_: Boolean;
  26932. function _GetisComposing: Boolean;
  26933. function _GetcharCode: Cardinal;
  26934. function _GetkeyCode: Cardinal;
  26935. function _Getwhich: Cardinal;
  26936. procedure _Setkey(const aValue: UnicodeString);
  26937. procedure _Setcode(const aValue: UnicodeString);
  26938. procedure _Setlocation(const aValue: Cardinal);
  26939. procedure _Setrepeat_(const aValue: Boolean);
  26940. procedure _SetisComposing(const aValue: Boolean);
  26941. procedure _SetcharCode(const aValue: Cardinal);
  26942. procedure _SetkeyCode(const aValue: Cardinal);
  26943. procedure _Setwhich(const aValue: Cardinal);
  26944. Public
  26945. class function JSClassName: UnicodeString; override;
  26946. class function Cast(const Intf: IJSObject): IJSKeyboardEventInit;
  26947. property key: UnicodeString read _Getkey write _Setkey;
  26948. property code: UnicodeString read _Getcode write _Setcode;
  26949. property location: Cardinal read _Getlocation write _Setlocation;
  26950. property repeat_: Boolean read _Getrepeat_ write _Setrepeat_;
  26951. property isComposing: Boolean read _GetisComposing write _SetisComposing;
  26952. property charCode: Cardinal read _GetcharCode write _SetcharCode;
  26953. property keyCode: Cardinal read _GetkeyCode write _SetkeyCode;
  26954. property which: Cardinal read _Getwhich write _Setwhich;
  26955. end;
  26956. { --------------------------------------------------------------------
  26957. TJSMouseEventInit
  26958. --------------------------------------------------------------------}
  26959. TJSMouseEventInitRec = record
  26960. screenX: LongInt;
  26961. screenY: LongInt;
  26962. clientX: LongInt;
  26963. clientY: LongInt;
  26964. button: SmallInt;
  26965. buttons: Word;
  26966. relatedTarget: TJSEventTarget;
  26967. movementX: LongInt;
  26968. movementY: LongInt;
  26969. ctrlKey: Boolean;
  26970. shiftKey: Boolean;
  26971. altKey: Boolean;
  26972. metaKey: Boolean;
  26973. modifierAltGraph: Boolean;
  26974. modifierCapsLock: Boolean;
  26975. modifierFn: Boolean;
  26976. modifierFnLock: Boolean;
  26977. modifierNumLock: Boolean;
  26978. modifierOS: Boolean;
  26979. modifierScrollLock: Boolean;
  26980. modifierSymbol: Boolean;
  26981. modifierSymbolLock: Boolean;
  26982. view: TJSWindow;
  26983. detail: LongInt;
  26984. bubbles: Boolean;
  26985. cancelable: Boolean;
  26986. composed: Boolean;
  26987. end;
  26988. IJSMouseEventInit = interface(IJSEventModifierInit)
  26989. ['{AA62FC06-A487-33BE-81F6-2D34E48E438D}']
  26990. function _GetscreenX: LongInt;
  26991. function _GetscreenY: LongInt;
  26992. function _GetclientX: LongInt;
  26993. function _GetclientY: LongInt;
  26994. function _Getbutton: SmallInt;
  26995. function _Getbuttons: Word;
  26996. function _GetrelatedTarget: IJSEventTarget;
  26997. function _GetmovementX: LongInt;
  26998. function _GetmovementY: LongInt;
  26999. procedure _SetscreenX(const aValue: LongInt);
  27000. procedure _SetscreenY(const aValue: LongInt);
  27001. procedure _SetclientX(const aValue: LongInt);
  27002. procedure _SetclientY(const aValue: LongInt);
  27003. procedure _Setbutton(const aValue: SmallInt);
  27004. procedure _Setbuttons(const aValue: Word);
  27005. procedure _SetrelatedTarget(const aValue: IJSEventTarget);
  27006. procedure _SetmovementX(const aValue: LongInt);
  27007. procedure _SetmovementY(const aValue: LongInt);
  27008. property screenX: LongInt read _GetscreenX write _SetscreenX;
  27009. property screenY: LongInt read _GetscreenY write _SetscreenY;
  27010. property clientX: LongInt read _GetclientX write _SetclientX;
  27011. property clientY: LongInt read _GetclientY write _SetclientY;
  27012. property button: SmallInt read _Getbutton write _Setbutton;
  27013. property buttons: Word read _Getbuttons write _Setbuttons;
  27014. property relatedTarget: IJSEventTarget read _GetrelatedTarget write _SetrelatedTarget;
  27015. property movementX: LongInt read _GetmovementX write _SetmovementX;
  27016. property movementY: LongInt read _GetmovementY write _SetmovementY;
  27017. end;
  27018. TJSMouseEventInit = class(TJSEventModifierInit,IJSMouseEventInit)
  27019. Protected
  27020. function _GetscreenX: LongInt;
  27021. function _GetscreenY: LongInt;
  27022. function _GetclientX: LongInt;
  27023. function _GetclientY: LongInt;
  27024. function _Getbutton: SmallInt;
  27025. function _Getbuttons: Word;
  27026. function _GetrelatedTarget: IJSEventTarget;
  27027. function _GetmovementX: LongInt;
  27028. function _GetmovementY: LongInt;
  27029. procedure _SetscreenX(const aValue: LongInt);
  27030. procedure _SetscreenY(const aValue: LongInt);
  27031. procedure _SetclientX(const aValue: LongInt);
  27032. procedure _SetclientY(const aValue: LongInt);
  27033. procedure _Setbutton(const aValue: SmallInt);
  27034. procedure _Setbuttons(const aValue: Word);
  27035. procedure _SetrelatedTarget(const aValue: IJSEventTarget);
  27036. procedure _SetmovementX(const aValue: LongInt);
  27037. procedure _SetmovementY(const aValue: LongInt);
  27038. Public
  27039. class function JSClassName: UnicodeString; override;
  27040. class function Cast(const Intf: IJSObject): IJSMouseEventInit;
  27041. property screenX: LongInt read _GetscreenX write _SetscreenX;
  27042. property screenY: LongInt read _GetscreenY write _SetscreenY;
  27043. property clientX: LongInt read _GetclientX write _SetclientX;
  27044. property clientY: LongInt read _GetclientY write _SetclientY;
  27045. property button: SmallInt read _Getbutton write _Setbutton;
  27046. property buttons: Word read _Getbuttons write _Setbuttons;
  27047. property relatedTarget: IJSEventTarget read _GetrelatedTarget write _SetrelatedTarget;
  27048. property movementX: LongInt read _GetmovementX write _SetmovementX;
  27049. property movementY: LongInt read _GetmovementY write _SetmovementY;
  27050. end;
  27051. { --------------------------------------------------------------------
  27052. TJSRTCInboundRtpStreamStats
  27053. --------------------------------------------------------------------}
  27054. TJSRTCInboundRtpStreamStatsRec = record
  27055. trackIdentifier: UnicodeString;
  27056. remoteId: UnicodeString;
  27057. framesDecoded: Cardinal;
  27058. framesDropped: Cardinal;
  27059. frameWidth: Cardinal;
  27060. frameHeight: Cardinal;
  27061. framesPerSecond: Double;
  27062. qpSum: QWord;
  27063. totalDecodeTime: Double;
  27064. totalInterFrameDelay: Double;
  27065. totalSquaredInterFrameDelay: Double;
  27066. lastPacketReceivedTimestamp: TDOMHighResTimeStamp;
  27067. headerBytesReceived: QWord;
  27068. fecPacketsReceived: QWord;
  27069. fecPacketsDiscarded: QWord;
  27070. bytesReceived: QWord;
  27071. nackCount: Cardinal;
  27072. firCount: Cardinal;
  27073. pliCount: Cardinal;
  27074. totalProcessingDelay: Double;
  27075. jitterBufferDelay: Double;
  27076. jitterBufferEmittedCount: QWord;
  27077. totalSamplesReceived: QWord;
  27078. concealedSamples: QWord;
  27079. silentConcealedSamples: QWord;
  27080. concealmentEvents: QWord;
  27081. insertedSamplesForDeceleration: QWord;
  27082. removedSamplesForAcceleration: QWord;
  27083. audioLevel: Double;
  27084. totalAudioEnergy: Double;
  27085. totalSamplesDuration: Double;
  27086. framesReceived: Cardinal;
  27087. packetsReceived: QWord;
  27088. packetsLost: Int64;
  27089. jitter: Double;
  27090. discardedPackets: Cardinal;
  27091. packetsDiscarded: Cardinal;
  27092. ssrc: Cardinal;
  27093. kind: UnicodeString;
  27094. mediaType: UnicodeString;
  27095. transportId: UnicodeString;
  27096. codecId: UnicodeString;
  27097. timestamp: TDOMHighResTimeStamp;
  27098. type_: TRTCStatsType;
  27099. id: UnicodeString;
  27100. end;
  27101. IJSRTCInboundRtpStreamStats = interface(IJSRTCReceivedRtpStreamStats)
  27102. ['{4EB2B8AC-E9E7-367A-85ED-6D914A661566}']
  27103. function _GettrackIdentifier: UnicodeString;
  27104. function _GetremoteId: UnicodeString;
  27105. function _GetframesDecoded: Cardinal;
  27106. function _GetframesDropped: Cardinal;
  27107. function _GetframeWidth: Cardinal;
  27108. function _GetframeHeight: Cardinal;
  27109. function _GetframesPerSecond: Double;
  27110. function _GetqpSum: QWord;
  27111. function _GettotalDecodeTime: Double;
  27112. function _GettotalInterFrameDelay: Double;
  27113. function _GettotalSquaredInterFrameDelay: Double;
  27114. function _GetlastPacketReceivedTimestamp: TDOMHighResTimeStamp;
  27115. function _GetheaderBytesReceived: QWord;
  27116. function _GetfecPacketsReceived: QWord;
  27117. function _GetfecPacketsDiscarded: QWord;
  27118. function _GetbytesReceived: QWord;
  27119. function _GetnackCount: Cardinal;
  27120. function _GetfirCount: Cardinal;
  27121. function _GetpliCount: Cardinal;
  27122. function _GettotalProcessingDelay: Double;
  27123. function _GetjitterBufferDelay: Double;
  27124. function _GetjitterBufferEmittedCount: QWord;
  27125. function _GettotalSamplesReceived: QWord;
  27126. function _GetconcealedSamples: QWord;
  27127. function _GetsilentConcealedSamples: QWord;
  27128. function _GetconcealmentEvents: QWord;
  27129. function _GetinsertedSamplesForDeceleration: QWord;
  27130. function _GetremovedSamplesForAcceleration: QWord;
  27131. function _GetaudioLevel: Double;
  27132. function _GettotalAudioEnergy: Double;
  27133. function _GettotalSamplesDuration: Double;
  27134. function _GetframesReceived: Cardinal;
  27135. procedure _SettrackIdentifier(const aValue: UnicodeString);
  27136. procedure _SetremoteId(const aValue: UnicodeString);
  27137. procedure _SetframesDecoded(const aValue: Cardinal);
  27138. procedure _SetframesDropped(const aValue: Cardinal);
  27139. procedure _SetframeWidth(const aValue: Cardinal);
  27140. procedure _SetframeHeight(const aValue: Cardinal);
  27141. procedure _SetframesPerSecond(const aValue: Double);
  27142. procedure _SetqpSum(const aValue: QWord);
  27143. procedure _SettotalDecodeTime(const aValue: Double);
  27144. procedure _SettotalInterFrameDelay(const aValue: Double);
  27145. procedure _SettotalSquaredInterFrameDelay(const aValue: Double);
  27146. procedure _SetlastPacketReceivedTimestamp(const aValue: TDOMHighResTimeStamp);
  27147. procedure _SetheaderBytesReceived(const aValue: QWord);
  27148. procedure _SetfecPacketsReceived(const aValue: QWord);
  27149. procedure _SetfecPacketsDiscarded(const aValue: QWord);
  27150. procedure _SetbytesReceived(const aValue: QWord);
  27151. procedure _SetnackCount(const aValue: Cardinal);
  27152. procedure _SetfirCount(const aValue: Cardinal);
  27153. procedure _SetpliCount(const aValue: Cardinal);
  27154. procedure _SettotalProcessingDelay(const aValue: Double);
  27155. procedure _SetjitterBufferDelay(const aValue: Double);
  27156. procedure _SetjitterBufferEmittedCount(const aValue: QWord);
  27157. procedure _SettotalSamplesReceived(const aValue: QWord);
  27158. procedure _SetconcealedSamples(const aValue: QWord);
  27159. procedure _SetsilentConcealedSamples(const aValue: QWord);
  27160. procedure _SetconcealmentEvents(const aValue: QWord);
  27161. procedure _SetinsertedSamplesForDeceleration(const aValue: QWord);
  27162. procedure _SetremovedSamplesForAcceleration(const aValue: QWord);
  27163. procedure _SetaudioLevel(const aValue: Double);
  27164. procedure _SettotalAudioEnergy(const aValue: Double);
  27165. procedure _SettotalSamplesDuration(const aValue: Double);
  27166. procedure _SetframesReceived(const aValue: Cardinal);
  27167. property trackIdentifier: UnicodeString read _GettrackIdentifier write _SettrackIdentifier;
  27168. property remoteId: UnicodeString read _GetremoteId write _SetremoteId;
  27169. property framesDecoded: Cardinal read _GetframesDecoded write _SetframesDecoded;
  27170. property framesDropped: Cardinal read _GetframesDropped write _SetframesDropped;
  27171. property frameWidth: Cardinal read _GetframeWidth write _SetframeWidth;
  27172. property frameHeight: Cardinal read _GetframeHeight write _SetframeHeight;
  27173. property framesPerSecond: Double read _GetframesPerSecond write _SetframesPerSecond;
  27174. property qpSum: QWord read _GetqpSum write _SetqpSum;
  27175. property totalDecodeTime: Double read _GettotalDecodeTime write _SettotalDecodeTime;
  27176. property totalInterFrameDelay: Double read _GettotalInterFrameDelay write _SettotalInterFrameDelay;
  27177. property totalSquaredInterFrameDelay: Double read _GettotalSquaredInterFrameDelay write _SettotalSquaredInterFrameDelay;
  27178. property lastPacketReceivedTimestamp: TDOMHighResTimeStamp read _GetlastPacketReceivedTimestamp write _SetlastPacketReceivedTimestamp;
  27179. property headerBytesReceived: QWord read _GetheaderBytesReceived write _SetheaderBytesReceived;
  27180. property fecPacketsReceived: QWord read _GetfecPacketsReceived write _SetfecPacketsReceived;
  27181. property fecPacketsDiscarded: QWord read _GetfecPacketsDiscarded write _SetfecPacketsDiscarded;
  27182. property bytesReceived: QWord read _GetbytesReceived write _SetbytesReceived;
  27183. property nackCount: Cardinal read _GetnackCount write _SetnackCount;
  27184. property firCount: Cardinal read _GetfirCount write _SetfirCount;
  27185. property pliCount: Cardinal read _GetpliCount write _SetpliCount;
  27186. property totalProcessingDelay: Double read _GettotalProcessingDelay write _SettotalProcessingDelay;
  27187. property jitterBufferDelay: Double read _GetjitterBufferDelay write _SetjitterBufferDelay;
  27188. property jitterBufferEmittedCount: QWord read _GetjitterBufferEmittedCount write _SetjitterBufferEmittedCount;
  27189. property totalSamplesReceived: QWord read _GettotalSamplesReceived write _SettotalSamplesReceived;
  27190. property concealedSamples: QWord read _GetconcealedSamples write _SetconcealedSamples;
  27191. property silentConcealedSamples: QWord read _GetsilentConcealedSamples write _SetsilentConcealedSamples;
  27192. property concealmentEvents: QWord read _GetconcealmentEvents write _SetconcealmentEvents;
  27193. property insertedSamplesForDeceleration: QWord read _GetinsertedSamplesForDeceleration write _SetinsertedSamplesForDeceleration;
  27194. property removedSamplesForAcceleration: QWord read _GetremovedSamplesForAcceleration write _SetremovedSamplesForAcceleration;
  27195. property audioLevel: Double read _GetaudioLevel write _SetaudioLevel;
  27196. property totalAudioEnergy: Double read _GettotalAudioEnergy write _SettotalAudioEnergy;
  27197. property totalSamplesDuration: Double read _GettotalSamplesDuration write _SettotalSamplesDuration;
  27198. property framesReceived: Cardinal read _GetframesReceived write _SetframesReceived;
  27199. end;
  27200. TJSRTCInboundRtpStreamStats = class(TJSRTCReceivedRtpStreamStats,IJSRTCInboundRtpStreamStats)
  27201. Protected
  27202. function _GettrackIdentifier: UnicodeString;
  27203. function _GetremoteId: UnicodeString;
  27204. function _GetframesDecoded: Cardinal;
  27205. function _GetframesDropped: Cardinal;
  27206. function _GetframeWidth: Cardinal;
  27207. function _GetframeHeight: Cardinal;
  27208. function _GetframesPerSecond: Double;
  27209. function _GetqpSum: QWord;
  27210. function _GettotalDecodeTime: Double;
  27211. function _GettotalInterFrameDelay: Double;
  27212. function _GettotalSquaredInterFrameDelay: Double;
  27213. function _GetlastPacketReceivedTimestamp: TDOMHighResTimeStamp;
  27214. function _GetheaderBytesReceived: QWord;
  27215. function _GetfecPacketsReceived: QWord;
  27216. function _GetfecPacketsDiscarded: QWord;
  27217. function _GetbytesReceived: QWord;
  27218. function _GetnackCount: Cardinal;
  27219. function _GetfirCount: Cardinal;
  27220. function _GetpliCount: Cardinal;
  27221. function _GettotalProcessingDelay: Double;
  27222. function _GetjitterBufferDelay: Double;
  27223. function _GetjitterBufferEmittedCount: QWord;
  27224. function _GettotalSamplesReceived: QWord;
  27225. function _GetconcealedSamples: QWord;
  27226. function _GetsilentConcealedSamples: QWord;
  27227. function _GetconcealmentEvents: QWord;
  27228. function _GetinsertedSamplesForDeceleration: QWord;
  27229. function _GetremovedSamplesForAcceleration: QWord;
  27230. function _GetaudioLevel: Double;
  27231. function _GettotalAudioEnergy: Double;
  27232. function _GettotalSamplesDuration: Double;
  27233. function _GetframesReceived: Cardinal;
  27234. procedure _SettrackIdentifier(const aValue: UnicodeString);
  27235. procedure _SetremoteId(const aValue: UnicodeString);
  27236. procedure _SetframesDecoded(const aValue: Cardinal);
  27237. procedure _SetframesDropped(const aValue: Cardinal);
  27238. procedure _SetframeWidth(const aValue: Cardinal);
  27239. procedure _SetframeHeight(const aValue: Cardinal);
  27240. procedure _SetframesPerSecond(const aValue: Double);
  27241. procedure _SetqpSum(const aValue: QWord);
  27242. procedure _SettotalDecodeTime(const aValue: Double);
  27243. procedure _SettotalInterFrameDelay(const aValue: Double);
  27244. procedure _SettotalSquaredInterFrameDelay(const aValue: Double);
  27245. procedure _SetlastPacketReceivedTimestamp(const aValue: TDOMHighResTimeStamp);
  27246. procedure _SetheaderBytesReceived(const aValue: QWord);
  27247. procedure _SetfecPacketsReceived(const aValue: QWord);
  27248. procedure _SetfecPacketsDiscarded(const aValue: QWord);
  27249. procedure _SetbytesReceived(const aValue: QWord);
  27250. procedure _SetnackCount(const aValue: Cardinal);
  27251. procedure _SetfirCount(const aValue: Cardinal);
  27252. procedure _SetpliCount(const aValue: Cardinal);
  27253. procedure _SettotalProcessingDelay(const aValue: Double);
  27254. procedure _SetjitterBufferDelay(const aValue: Double);
  27255. procedure _SetjitterBufferEmittedCount(const aValue: QWord);
  27256. procedure _SettotalSamplesReceived(const aValue: QWord);
  27257. procedure _SetconcealedSamples(const aValue: QWord);
  27258. procedure _SetsilentConcealedSamples(const aValue: QWord);
  27259. procedure _SetconcealmentEvents(const aValue: QWord);
  27260. procedure _SetinsertedSamplesForDeceleration(const aValue: QWord);
  27261. procedure _SetremovedSamplesForAcceleration(const aValue: QWord);
  27262. procedure _SetaudioLevel(const aValue: Double);
  27263. procedure _SettotalAudioEnergy(const aValue: Double);
  27264. procedure _SettotalSamplesDuration(const aValue: Double);
  27265. procedure _SetframesReceived(const aValue: Cardinal);
  27266. Public
  27267. class function JSClassName: UnicodeString; override;
  27268. class function Cast(const Intf: IJSObject): IJSRTCInboundRtpStreamStats;
  27269. property trackIdentifier: UnicodeString read _GettrackIdentifier write _SettrackIdentifier;
  27270. property remoteId: UnicodeString read _GetremoteId write _SetremoteId;
  27271. property framesDecoded: Cardinal read _GetframesDecoded write _SetframesDecoded;
  27272. property framesDropped: Cardinal read _GetframesDropped write _SetframesDropped;
  27273. property frameWidth: Cardinal read _GetframeWidth write _SetframeWidth;
  27274. property frameHeight: Cardinal read _GetframeHeight write _SetframeHeight;
  27275. property framesPerSecond: Double read _GetframesPerSecond write _SetframesPerSecond;
  27276. property qpSum: QWord read _GetqpSum write _SetqpSum;
  27277. property totalDecodeTime: Double read _GettotalDecodeTime write _SettotalDecodeTime;
  27278. property totalInterFrameDelay: Double read _GettotalInterFrameDelay write _SettotalInterFrameDelay;
  27279. property totalSquaredInterFrameDelay: Double read _GettotalSquaredInterFrameDelay write _SettotalSquaredInterFrameDelay;
  27280. property lastPacketReceivedTimestamp: TDOMHighResTimeStamp read _GetlastPacketReceivedTimestamp write _SetlastPacketReceivedTimestamp;
  27281. property headerBytesReceived: QWord read _GetheaderBytesReceived write _SetheaderBytesReceived;
  27282. property fecPacketsReceived: QWord read _GetfecPacketsReceived write _SetfecPacketsReceived;
  27283. property fecPacketsDiscarded: QWord read _GetfecPacketsDiscarded write _SetfecPacketsDiscarded;
  27284. property bytesReceived: QWord read _GetbytesReceived write _SetbytesReceived;
  27285. property nackCount: Cardinal read _GetnackCount write _SetnackCount;
  27286. property firCount: Cardinal read _GetfirCount write _SetfirCount;
  27287. property pliCount: Cardinal read _GetpliCount write _SetpliCount;
  27288. property totalProcessingDelay: Double read _GettotalProcessingDelay write _SettotalProcessingDelay;
  27289. property jitterBufferDelay: Double read _GetjitterBufferDelay write _SetjitterBufferDelay;
  27290. property jitterBufferEmittedCount: QWord read _GetjitterBufferEmittedCount write _SetjitterBufferEmittedCount;
  27291. property totalSamplesReceived: QWord read _GettotalSamplesReceived write _SettotalSamplesReceived;
  27292. property concealedSamples: QWord read _GetconcealedSamples write _SetconcealedSamples;
  27293. property silentConcealedSamples: QWord read _GetsilentConcealedSamples write _SetsilentConcealedSamples;
  27294. property concealmentEvents: QWord read _GetconcealmentEvents write _SetconcealmentEvents;
  27295. property insertedSamplesForDeceleration: QWord read _GetinsertedSamplesForDeceleration write _SetinsertedSamplesForDeceleration;
  27296. property removedSamplesForAcceleration: QWord read _GetremovedSamplesForAcceleration write _SetremovedSamplesForAcceleration;
  27297. property audioLevel: Double read _GetaudioLevel write _SetaudioLevel;
  27298. property totalAudioEnergy: Double read _GettotalAudioEnergy write _SettotalAudioEnergy;
  27299. property totalSamplesDuration: Double read _GettotalSamplesDuration write _SettotalSamplesDuration;
  27300. property framesReceived: Cardinal read _GetframesReceived write _SetframesReceived;
  27301. end;
  27302. { --------------------------------------------------------------------
  27303. TJSRTCRemoteInboundRtpStreamStats
  27304. --------------------------------------------------------------------}
  27305. TJSRTCRemoteInboundRtpStreamStatsRec = record
  27306. localId: UnicodeString;
  27307. roundTripTime: Double;
  27308. totalRoundTripTime: Double;
  27309. fractionLost: Double;
  27310. roundTripTimeMeasurements: QWord;
  27311. packetsReceived: QWord;
  27312. packetsLost: Int64;
  27313. jitter: Double;
  27314. discardedPackets: Cardinal;
  27315. packetsDiscarded: Cardinal;
  27316. ssrc: Cardinal;
  27317. kind: UnicodeString;
  27318. mediaType: UnicodeString;
  27319. transportId: UnicodeString;
  27320. codecId: UnicodeString;
  27321. timestamp: TDOMHighResTimeStamp;
  27322. type_: TRTCStatsType;
  27323. id: UnicodeString;
  27324. end;
  27325. IJSRTCRemoteInboundRtpStreamStats = interface(IJSRTCReceivedRtpStreamStats)
  27326. ['{0B8B4C7F-3215-3E93-A7FA-A30AD2B412AB}']
  27327. function _GetlocalId: UnicodeString;
  27328. function _GetroundTripTime: Double;
  27329. function _GettotalRoundTripTime: Double;
  27330. function _GetfractionLost: Double;
  27331. function _GetroundTripTimeMeasurements: QWord;
  27332. procedure _SetlocalId(const aValue: UnicodeString);
  27333. procedure _SetroundTripTime(const aValue: Double);
  27334. procedure _SettotalRoundTripTime(const aValue: Double);
  27335. procedure _SetfractionLost(const aValue: Double);
  27336. procedure _SetroundTripTimeMeasurements(const aValue: QWord);
  27337. property localId: UnicodeString read _GetlocalId write _SetlocalId;
  27338. property roundTripTime: Double read _GetroundTripTime write _SetroundTripTime;
  27339. property totalRoundTripTime: Double read _GettotalRoundTripTime write _SettotalRoundTripTime;
  27340. property fractionLost: Double read _GetfractionLost write _SetfractionLost;
  27341. property roundTripTimeMeasurements: QWord read _GetroundTripTimeMeasurements write _SetroundTripTimeMeasurements;
  27342. end;
  27343. TJSRTCRemoteInboundRtpStreamStats = class(TJSRTCReceivedRtpStreamStats,IJSRTCRemoteInboundRtpStreamStats)
  27344. Protected
  27345. function _GetlocalId: UnicodeString;
  27346. function _GetroundTripTime: Double;
  27347. function _GettotalRoundTripTime: Double;
  27348. function _GetfractionLost: Double;
  27349. function _GetroundTripTimeMeasurements: QWord;
  27350. procedure _SetlocalId(const aValue: UnicodeString);
  27351. procedure _SetroundTripTime(const aValue: Double);
  27352. procedure _SettotalRoundTripTime(const aValue: Double);
  27353. procedure _SetfractionLost(const aValue: Double);
  27354. procedure _SetroundTripTimeMeasurements(const aValue: QWord);
  27355. Public
  27356. class function JSClassName: UnicodeString; override;
  27357. class function Cast(const Intf: IJSObject): IJSRTCRemoteInboundRtpStreamStats;
  27358. property localId: UnicodeString read _GetlocalId write _SetlocalId;
  27359. property roundTripTime: Double read _GetroundTripTime write _SetroundTripTime;
  27360. property totalRoundTripTime: Double read _GettotalRoundTripTime write _SettotalRoundTripTime;
  27361. property fractionLost: Double read _GetfractionLost write _SetfractionLost;
  27362. property roundTripTimeMeasurements: QWord read _GetroundTripTimeMeasurements write _SetroundTripTimeMeasurements;
  27363. end;
  27364. { --------------------------------------------------------------------
  27365. TJSRTCOutboundRtpStreamStats
  27366. --------------------------------------------------------------------}
  27367. TJSRTCOutboundRtpStreamStatsRec = record
  27368. remoteId: UnicodeString;
  27369. framesEncoded: Cardinal;
  27370. qpSum: QWord;
  27371. nackCount: Cardinal;
  27372. firCount: Cardinal;
  27373. pliCount: Cardinal;
  27374. headerBytesSent: QWord;
  27375. retransmittedPacketsSent: QWord;
  27376. retransmittedBytesSent: QWord;
  27377. totalEncodedBytesTarget: QWord;
  27378. frameWidth: Cardinal;
  27379. frameHeight: Cardinal;
  27380. framesPerSecond: Double;
  27381. framesSent: Cardinal;
  27382. hugeFramesSent: Cardinal;
  27383. totalEncodeTime: Double;
  27384. packetsSent: Cardinal;
  27385. bytesSent: QWord;
  27386. ssrc: Cardinal;
  27387. kind: UnicodeString;
  27388. mediaType: UnicodeString;
  27389. transportId: UnicodeString;
  27390. codecId: UnicodeString;
  27391. timestamp: TDOMHighResTimeStamp;
  27392. type_: TRTCStatsType;
  27393. id: UnicodeString;
  27394. end;
  27395. IJSRTCOutboundRtpStreamStats = interface(IJSRTCSentRtpStreamStats)
  27396. ['{FE5624B4-DE5F-3683-B7BB-880F9E40BE3F}']
  27397. function _GetremoteId: UnicodeString;
  27398. function _GetframesEncoded: Cardinal;
  27399. function _GetqpSum: QWord;
  27400. function _GetnackCount: Cardinal;
  27401. function _GetfirCount: Cardinal;
  27402. function _GetpliCount: Cardinal;
  27403. function _GetheaderBytesSent: QWord;
  27404. function _GetretransmittedPacketsSent: QWord;
  27405. function _GetretransmittedBytesSent: QWord;
  27406. function _GettotalEncodedBytesTarget: QWord;
  27407. function _GetframeWidth: Cardinal;
  27408. function _GetframeHeight: Cardinal;
  27409. function _GetframesPerSecond: Double;
  27410. function _GetframesSent: Cardinal;
  27411. function _GethugeFramesSent: Cardinal;
  27412. function _GettotalEncodeTime: Double;
  27413. procedure _SetremoteId(const aValue: UnicodeString);
  27414. procedure _SetframesEncoded(const aValue: Cardinal);
  27415. procedure _SetqpSum(const aValue: QWord);
  27416. procedure _SetnackCount(const aValue: Cardinal);
  27417. procedure _SetfirCount(const aValue: Cardinal);
  27418. procedure _SetpliCount(const aValue: Cardinal);
  27419. procedure _SetheaderBytesSent(const aValue: QWord);
  27420. procedure _SetretransmittedPacketsSent(const aValue: QWord);
  27421. procedure _SetretransmittedBytesSent(const aValue: QWord);
  27422. procedure _SettotalEncodedBytesTarget(const aValue: QWord);
  27423. procedure _SetframeWidth(const aValue: Cardinal);
  27424. procedure _SetframeHeight(const aValue: Cardinal);
  27425. procedure _SetframesPerSecond(const aValue: Double);
  27426. procedure _SetframesSent(const aValue: Cardinal);
  27427. procedure _SethugeFramesSent(const aValue: Cardinal);
  27428. procedure _SettotalEncodeTime(const aValue: Double);
  27429. property remoteId: UnicodeString read _GetremoteId write _SetremoteId;
  27430. property framesEncoded: Cardinal read _GetframesEncoded write _SetframesEncoded;
  27431. property qpSum: QWord read _GetqpSum write _SetqpSum;
  27432. property nackCount: Cardinal read _GetnackCount write _SetnackCount;
  27433. property firCount: Cardinal read _GetfirCount write _SetfirCount;
  27434. property pliCount: Cardinal read _GetpliCount write _SetpliCount;
  27435. property headerBytesSent: QWord read _GetheaderBytesSent write _SetheaderBytesSent;
  27436. property retransmittedPacketsSent: QWord read _GetretransmittedPacketsSent write _SetretransmittedPacketsSent;
  27437. property retransmittedBytesSent: QWord read _GetretransmittedBytesSent write _SetretransmittedBytesSent;
  27438. property totalEncodedBytesTarget: QWord read _GettotalEncodedBytesTarget write _SettotalEncodedBytesTarget;
  27439. property frameWidth: Cardinal read _GetframeWidth write _SetframeWidth;
  27440. property frameHeight: Cardinal read _GetframeHeight write _SetframeHeight;
  27441. property framesPerSecond: Double read _GetframesPerSecond write _SetframesPerSecond;
  27442. property framesSent: Cardinal read _GetframesSent write _SetframesSent;
  27443. property hugeFramesSent: Cardinal read _GethugeFramesSent write _SethugeFramesSent;
  27444. property totalEncodeTime: Double read _GettotalEncodeTime write _SettotalEncodeTime;
  27445. end;
  27446. TJSRTCOutboundRtpStreamStats = class(TJSRTCSentRtpStreamStats,IJSRTCOutboundRtpStreamStats)
  27447. Protected
  27448. function _GetremoteId: UnicodeString;
  27449. function _GetframesEncoded: Cardinal;
  27450. function _GetqpSum: QWord;
  27451. function _GetnackCount: Cardinal;
  27452. function _GetfirCount: Cardinal;
  27453. function _GetpliCount: Cardinal;
  27454. function _GetheaderBytesSent: QWord;
  27455. function _GetretransmittedPacketsSent: QWord;
  27456. function _GetretransmittedBytesSent: QWord;
  27457. function _GettotalEncodedBytesTarget: QWord;
  27458. function _GetframeWidth: Cardinal;
  27459. function _GetframeHeight: Cardinal;
  27460. function _GetframesPerSecond: Double;
  27461. function _GetframesSent: Cardinal;
  27462. function _GethugeFramesSent: Cardinal;
  27463. function _GettotalEncodeTime: Double;
  27464. procedure _SetremoteId(const aValue: UnicodeString);
  27465. procedure _SetframesEncoded(const aValue: Cardinal);
  27466. procedure _SetqpSum(const aValue: QWord);
  27467. procedure _SetnackCount(const aValue: Cardinal);
  27468. procedure _SetfirCount(const aValue: Cardinal);
  27469. procedure _SetpliCount(const aValue: Cardinal);
  27470. procedure _SetheaderBytesSent(const aValue: QWord);
  27471. procedure _SetretransmittedPacketsSent(const aValue: QWord);
  27472. procedure _SetretransmittedBytesSent(const aValue: QWord);
  27473. procedure _SettotalEncodedBytesTarget(const aValue: QWord);
  27474. procedure _SetframeWidth(const aValue: Cardinal);
  27475. procedure _SetframeHeight(const aValue: Cardinal);
  27476. procedure _SetframesPerSecond(const aValue: Double);
  27477. procedure _SetframesSent(const aValue: Cardinal);
  27478. procedure _SethugeFramesSent(const aValue: Cardinal);
  27479. procedure _SettotalEncodeTime(const aValue: Double);
  27480. Public
  27481. class function JSClassName: UnicodeString; override;
  27482. class function Cast(const Intf: IJSObject): IJSRTCOutboundRtpStreamStats;
  27483. property remoteId: UnicodeString read _GetremoteId write _SetremoteId;
  27484. property framesEncoded: Cardinal read _GetframesEncoded write _SetframesEncoded;
  27485. property qpSum: QWord read _GetqpSum write _SetqpSum;
  27486. property nackCount: Cardinal read _GetnackCount write _SetnackCount;
  27487. property firCount: Cardinal read _GetfirCount write _SetfirCount;
  27488. property pliCount: Cardinal read _GetpliCount write _SetpliCount;
  27489. property headerBytesSent: QWord read _GetheaderBytesSent write _SetheaderBytesSent;
  27490. property retransmittedPacketsSent: QWord read _GetretransmittedPacketsSent write _SetretransmittedPacketsSent;
  27491. property retransmittedBytesSent: QWord read _GetretransmittedBytesSent write _SetretransmittedBytesSent;
  27492. property totalEncodedBytesTarget: QWord read _GettotalEncodedBytesTarget write _SettotalEncodedBytesTarget;
  27493. property frameWidth: Cardinal read _GetframeWidth write _SetframeWidth;
  27494. property frameHeight: Cardinal read _GetframeHeight write _SetframeHeight;
  27495. property framesPerSecond: Double read _GetframesPerSecond write _SetframesPerSecond;
  27496. property framesSent: Cardinal read _GetframesSent write _SetframesSent;
  27497. property hugeFramesSent: Cardinal read _GethugeFramesSent write _SethugeFramesSent;
  27498. property totalEncodeTime: Double read _GettotalEncodeTime write _SettotalEncodeTime;
  27499. end;
  27500. { --------------------------------------------------------------------
  27501. TJSRTCRemoteOutboundRtpStreamStats
  27502. --------------------------------------------------------------------}
  27503. TJSRTCRemoteOutboundRtpStreamStatsRec = record
  27504. localId: UnicodeString;
  27505. remoteTimestamp: TDOMHighResTimeStamp;
  27506. packetsSent: Cardinal;
  27507. bytesSent: QWord;
  27508. ssrc: Cardinal;
  27509. kind: UnicodeString;
  27510. mediaType: UnicodeString;
  27511. transportId: UnicodeString;
  27512. codecId: UnicodeString;
  27513. timestamp: TDOMHighResTimeStamp;
  27514. type_: TRTCStatsType;
  27515. id: UnicodeString;
  27516. end;
  27517. IJSRTCRemoteOutboundRtpStreamStats = interface(IJSRTCSentRtpStreamStats)
  27518. ['{1C125D96-58FC-3188-999E-B34E8B929746}']
  27519. function _GetlocalId: UnicodeString;
  27520. function _GetremoteTimestamp: TDOMHighResTimeStamp;
  27521. procedure _SetlocalId(const aValue: UnicodeString);
  27522. procedure _SetremoteTimestamp(const aValue: TDOMHighResTimeStamp);
  27523. property localId: UnicodeString read _GetlocalId write _SetlocalId;
  27524. property remoteTimestamp: TDOMHighResTimeStamp read _GetremoteTimestamp write _SetremoteTimestamp;
  27525. end;
  27526. TJSRTCRemoteOutboundRtpStreamStats = class(TJSRTCSentRtpStreamStats,IJSRTCRemoteOutboundRtpStreamStats)
  27527. Protected
  27528. function _GetlocalId: UnicodeString;
  27529. function _GetremoteTimestamp: TDOMHighResTimeStamp;
  27530. procedure _SetlocalId(const aValue: UnicodeString);
  27531. procedure _SetremoteTimestamp(const aValue: TDOMHighResTimeStamp);
  27532. Public
  27533. class function JSClassName: UnicodeString; override;
  27534. class function Cast(const Intf: IJSObject): IJSRTCRemoteOutboundRtpStreamStats;
  27535. property localId: UnicodeString read _GetlocalId write _SetlocalId;
  27536. property remoteTimestamp: TDOMHighResTimeStamp read _GetremoteTimestamp write _SetremoteTimestamp;
  27537. end;
  27538. { --------------------------------------------------------------------
  27539. TJSTouchEventInit
  27540. --------------------------------------------------------------------}
  27541. TJSTouchDynArray = IJSArray; // array of Touch
  27542. TJSTouchEventInitRec = record
  27543. touches: TJSTouchDynArray;
  27544. targetTouches: TJSTouchDynArray;
  27545. changedTouches: TJSTouchDynArray;
  27546. ctrlKey: Boolean;
  27547. shiftKey: Boolean;
  27548. altKey: Boolean;
  27549. metaKey: Boolean;
  27550. modifierAltGraph: Boolean;
  27551. modifierCapsLock: Boolean;
  27552. modifierFn: Boolean;
  27553. modifierFnLock: Boolean;
  27554. modifierNumLock: Boolean;
  27555. modifierOS: Boolean;
  27556. modifierScrollLock: Boolean;
  27557. modifierSymbol: Boolean;
  27558. modifierSymbolLock: Boolean;
  27559. view: TJSWindow;
  27560. detail: LongInt;
  27561. bubbles: Boolean;
  27562. cancelable: Boolean;
  27563. composed: Boolean;
  27564. end;
  27565. IJSTouchEventInit = interface(IJSEventModifierInit)
  27566. ['{918BA442-2CFA-378E-998C-B5D02C19F928}']
  27567. function _Gettouches: TJSTouchDynArray;
  27568. function _GettargetTouches: TJSTouchDynArray;
  27569. function _GetchangedTouches: TJSTouchDynArray;
  27570. procedure _Settouches(const aValue: TJSTouchDynArray);
  27571. procedure _SettargetTouches(const aValue: TJSTouchDynArray);
  27572. procedure _SetchangedTouches(const aValue: TJSTouchDynArray);
  27573. property touches: TJSTouchDynArray read _Gettouches write _Settouches;
  27574. property targetTouches: TJSTouchDynArray read _GettargetTouches write _SettargetTouches;
  27575. property changedTouches: TJSTouchDynArray read _GetchangedTouches write _SetchangedTouches;
  27576. end;
  27577. TJSTouchEventInit = class(TJSEventModifierInit,IJSTouchEventInit)
  27578. Protected
  27579. function _Gettouches: TJSTouchDynArray;
  27580. function _GettargetTouches: TJSTouchDynArray;
  27581. function _GetchangedTouches: TJSTouchDynArray;
  27582. procedure _Settouches(const aValue: TJSTouchDynArray);
  27583. procedure _SettargetTouches(const aValue: TJSTouchDynArray);
  27584. procedure _SetchangedTouches(const aValue: TJSTouchDynArray);
  27585. Public
  27586. class function JSClassName: UnicodeString; override;
  27587. class function Cast(const Intf: IJSObject): IJSTouchEventInit;
  27588. property touches: TJSTouchDynArray read _Gettouches write _Settouches;
  27589. property targetTouches: TJSTouchDynArray read _GettargetTouches write _SettargetTouches;
  27590. property changedTouches: TJSTouchDynArray read _GetchangedTouches write _SetchangedTouches;
  27591. end;
  27592. { --------------------------------------------------------------------
  27593. TJSDragEventInit
  27594. --------------------------------------------------------------------}
  27595. TJSDragEventInitRec = record
  27596. dataTransfer: TJSDataTransfer;
  27597. screenX: LongInt;
  27598. screenY: LongInt;
  27599. clientX: LongInt;
  27600. clientY: LongInt;
  27601. button: SmallInt;
  27602. buttons: Word;
  27603. relatedTarget: TJSEventTarget;
  27604. movementX: LongInt;
  27605. movementY: LongInt;
  27606. ctrlKey: Boolean;
  27607. shiftKey: Boolean;
  27608. altKey: Boolean;
  27609. metaKey: Boolean;
  27610. modifierAltGraph: Boolean;
  27611. modifierCapsLock: Boolean;
  27612. modifierFn: Boolean;
  27613. modifierFnLock: Boolean;
  27614. modifierNumLock: Boolean;
  27615. modifierOS: Boolean;
  27616. modifierScrollLock: Boolean;
  27617. modifierSymbol: Boolean;
  27618. modifierSymbolLock: Boolean;
  27619. view: TJSWindow;
  27620. detail: LongInt;
  27621. bubbles: Boolean;
  27622. cancelable: Boolean;
  27623. composed: Boolean;
  27624. end;
  27625. IJSDragEventInit = interface(IJSMouseEventInit)
  27626. ['{D76C47B0-3B03-3507-AA21-A89B1C288B11}']
  27627. function _GetdataTransfer: IJSDataTransfer;
  27628. procedure _SetdataTransfer(const aValue: IJSDataTransfer);
  27629. property dataTransfer: IJSDataTransfer read _GetdataTransfer write _SetdataTransfer;
  27630. end;
  27631. TJSDragEventInit = class(TJSMouseEventInit,IJSDragEventInit)
  27632. Protected
  27633. function _GetdataTransfer: IJSDataTransfer;
  27634. procedure _SetdataTransfer(const aValue: IJSDataTransfer);
  27635. Public
  27636. class function JSClassName: UnicodeString; override;
  27637. class function Cast(const Intf: IJSObject): IJSDragEventInit;
  27638. property dataTransfer: IJSDataTransfer read _GetdataTransfer write _SetdataTransfer;
  27639. end;
  27640. { --------------------------------------------------------------------
  27641. TJSPointerEventInit
  27642. --------------------------------------------------------------------}
  27643. TJSPointerEventDynArray = IJSArray; // array of PointerEvent
  27644. TJSPointerEventInitRec = record
  27645. pointerId: LongInt;
  27646. width: LongInt;
  27647. height: LongInt;
  27648. pressure: Single;
  27649. tangentialPressure: Single;
  27650. tiltX: LongInt;
  27651. tiltY: LongInt;
  27652. twist: LongInt;
  27653. pointerType: UnicodeString;
  27654. isPrimary: Boolean;
  27655. coalescedEvents: TJSPointerEventDynArray;
  27656. predictedEvents: TJSPointerEventDynArray;
  27657. screenX: LongInt;
  27658. screenY: LongInt;
  27659. clientX: LongInt;
  27660. clientY: LongInt;
  27661. button: SmallInt;
  27662. buttons: Word;
  27663. relatedTarget: TJSEventTarget;
  27664. movementX: LongInt;
  27665. movementY: LongInt;
  27666. ctrlKey: Boolean;
  27667. shiftKey: Boolean;
  27668. altKey: Boolean;
  27669. metaKey: Boolean;
  27670. modifierAltGraph: Boolean;
  27671. modifierCapsLock: Boolean;
  27672. modifierFn: Boolean;
  27673. modifierFnLock: Boolean;
  27674. modifierNumLock: Boolean;
  27675. modifierOS: Boolean;
  27676. modifierScrollLock: Boolean;
  27677. modifierSymbol: Boolean;
  27678. modifierSymbolLock: Boolean;
  27679. view: TJSWindow;
  27680. detail: LongInt;
  27681. bubbles: Boolean;
  27682. cancelable: Boolean;
  27683. composed: Boolean;
  27684. end;
  27685. IJSPointerEventInit = interface(IJSMouseEventInit)
  27686. ['{EF28D1C0-3F8A-3469-9A91-D0B9B0899EA5}']
  27687. function _GetpointerId: LongInt;
  27688. function _Getwidth: LongInt;
  27689. function _Getheight: LongInt;
  27690. function _Getpressure: Single;
  27691. function _GettangentialPressure: Single;
  27692. function _GettiltX: LongInt;
  27693. function _GettiltY: LongInt;
  27694. function _Gettwist: LongInt;
  27695. function _GetpointerType: UnicodeString;
  27696. function _GetisPrimary: Boolean;
  27697. function _GetcoalescedEvents: TJSPointerEventDynArray;
  27698. function _GetpredictedEvents: TJSPointerEventDynArray;
  27699. procedure _SetpointerId(const aValue: LongInt);
  27700. procedure _Setwidth(const aValue: LongInt);
  27701. procedure _Setheight(const aValue: LongInt);
  27702. procedure _Setpressure(const aValue: Single);
  27703. procedure _SettangentialPressure(const aValue: Single);
  27704. procedure _SettiltX(const aValue: LongInt);
  27705. procedure _SettiltY(const aValue: LongInt);
  27706. procedure _Settwist(const aValue: LongInt);
  27707. procedure _SetpointerType(const aValue: UnicodeString);
  27708. procedure _SetisPrimary(const aValue: Boolean);
  27709. procedure _SetcoalescedEvents(const aValue: TJSPointerEventDynArray);
  27710. procedure _SetpredictedEvents(const aValue: TJSPointerEventDynArray);
  27711. property pointerId: LongInt read _GetpointerId write _SetpointerId;
  27712. property width: LongInt read _Getwidth write _Setwidth;
  27713. property height: LongInt read _Getheight write _Setheight;
  27714. property pressure: Single read _Getpressure write _Setpressure;
  27715. property tangentialPressure: Single read _GettangentialPressure write _SettangentialPressure;
  27716. property tiltX: LongInt read _GettiltX write _SettiltX;
  27717. property tiltY: LongInt read _GettiltY write _SettiltY;
  27718. property twist: LongInt read _Gettwist write _Settwist;
  27719. property pointerType: UnicodeString read _GetpointerType write _SetpointerType;
  27720. property isPrimary: Boolean read _GetisPrimary write _SetisPrimary;
  27721. property coalescedEvents: TJSPointerEventDynArray read _GetcoalescedEvents write _SetcoalescedEvents;
  27722. property predictedEvents: TJSPointerEventDynArray read _GetpredictedEvents write _SetpredictedEvents;
  27723. end;
  27724. TJSPointerEventInit = class(TJSMouseEventInit,IJSPointerEventInit)
  27725. Protected
  27726. function _GetpointerId: LongInt;
  27727. function _Getwidth: LongInt;
  27728. function _Getheight: LongInt;
  27729. function _Getpressure: Single;
  27730. function _GettangentialPressure: Single;
  27731. function _GettiltX: LongInt;
  27732. function _GettiltY: LongInt;
  27733. function _Gettwist: LongInt;
  27734. function _GetpointerType: UnicodeString;
  27735. function _GetisPrimary: Boolean;
  27736. function _GetcoalescedEvents: TJSPointerEventDynArray;
  27737. function _GetpredictedEvents: TJSPointerEventDynArray;
  27738. procedure _SetpointerId(const aValue: LongInt);
  27739. procedure _Setwidth(const aValue: LongInt);
  27740. procedure _Setheight(const aValue: LongInt);
  27741. procedure _Setpressure(const aValue: Single);
  27742. procedure _SettangentialPressure(const aValue: Single);
  27743. procedure _SettiltX(const aValue: LongInt);
  27744. procedure _SettiltY(const aValue: LongInt);
  27745. procedure _Settwist(const aValue: LongInt);
  27746. procedure _SetpointerType(const aValue: UnicodeString);
  27747. procedure _SetisPrimary(const aValue: Boolean);
  27748. procedure _SetcoalescedEvents(const aValue: TJSPointerEventDynArray);
  27749. procedure _SetpredictedEvents(const aValue: TJSPointerEventDynArray);
  27750. Public
  27751. class function JSClassName: UnicodeString; override;
  27752. class function Cast(const Intf: IJSObject): IJSPointerEventInit;
  27753. property pointerId: LongInt read _GetpointerId write _SetpointerId;
  27754. property width: LongInt read _Getwidth write _Setwidth;
  27755. property height: LongInt read _Getheight write _Setheight;
  27756. property pressure: Single read _Getpressure write _Setpressure;
  27757. property tangentialPressure: Single read _GettangentialPressure write _SettangentialPressure;
  27758. property tiltX: LongInt read _GettiltX write _SettiltX;
  27759. property tiltY: LongInt read _GettiltY write _SettiltY;
  27760. property twist: LongInt read _Gettwist write _Settwist;
  27761. property pointerType: UnicodeString read _GetpointerType write _SetpointerType;
  27762. property isPrimary: Boolean read _GetisPrimary write _SetisPrimary;
  27763. property coalescedEvents: TJSPointerEventDynArray read _GetcoalescedEvents write _SetcoalescedEvents;
  27764. property predictedEvents: TJSPointerEventDynArray read _GetpredictedEvents write _SetpredictedEvents;
  27765. end;
  27766. { --------------------------------------------------------------------
  27767. TJSWheelEventInit
  27768. --------------------------------------------------------------------}
  27769. TJSWheelEventInitRec = record
  27770. deltaX: Double;
  27771. deltaY: Double;
  27772. deltaZ: Double;
  27773. deltaMode: Cardinal;
  27774. screenX: LongInt;
  27775. screenY: LongInt;
  27776. clientX: LongInt;
  27777. clientY: LongInt;
  27778. button: SmallInt;
  27779. buttons: Word;
  27780. relatedTarget: TJSEventTarget;
  27781. movementX: LongInt;
  27782. movementY: LongInt;
  27783. ctrlKey: Boolean;
  27784. shiftKey: Boolean;
  27785. altKey: Boolean;
  27786. metaKey: Boolean;
  27787. modifierAltGraph: Boolean;
  27788. modifierCapsLock: Boolean;
  27789. modifierFn: Boolean;
  27790. modifierFnLock: Boolean;
  27791. modifierNumLock: Boolean;
  27792. modifierOS: Boolean;
  27793. modifierScrollLock: Boolean;
  27794. modifierSymbol: Boolean;
  27795. modifierSymbolLock: Boolean;
  27796. view: TJSWindow;
  27797. detail: LongInt;
  27798. bubbles: Boolean;
  27799. cancelable: Boolean;
  27800. composed: Boolean;
  27801. end;
  27802. IJSWheelEventInit = interface(IJSMouseEventInit)
  27803. ['{04E43A9B-845C-3A2A-A5CB-8782C7C21EFD}']
  27804. function _GetdeltaX: Double;
  27805. function _GetdeltaY: Double;
  27806. function _GetdeltaZ: Double;
  27807. function _GetdeltaMode: Cardinal;
  27808. procedure _SetdeltaX(const aValue: Double);
  27809. procedure _SetdeltaY(const aValue: Double);
  27810. procedure _SetdeltaZ(const aValue: Double);
  27811. procedure _SetdeltaMode(const aValue: Cardinal);
  27812. property deltaX: Double read _GetdeltaX write _SetdeltaX;
  27813. property deltaY: Double read _GetdeltaY write _SetdeltaY;
  27814. property deltaZ: Double read _GetdeltaZ write _SetdeltaZ;
  27815. property deltaMode: Cardinal read _GetdeltaMode write _SetdeltaMode;
  27816. end;
  27817. TJSWheelEventInit = class(TJSMouseEventInit,IJSWheelEventInit)
  27818. Protected
  27819. function _GetdeltaX: Double;
  27820. function _GetdeltaY: Double;
  27821. function _GetdeltaZ: Double;
  27822. function _GetdeltaMode: Cardinal;
  27823. procedure _SetdeltaX(const aValue: Double);
  27824. procedure _SetdeltaY(const aValue: Double);
  27825. procedure _SetdeltaZ(const aValue: Double);
  27826. procedure _SetdeltaMode(const aValue: Cardinal);
  27827. Public
  27828. class function JSClassName: UnicodeString; override;
  27829. class function Cast(const Intf: IJSObject): IJSWheelEventInit;
  27830. property deltaX: Double read _GetdeltaX write _SetdeltaX;
  27831. property deltaY: Double read _GetdeltaY write _SetdeltaY;
  27832. property deltaZ: Double read _GetdeltaZ write _SetdeltaZ;
  27833. property deltaMode: Cardinal read _GetdeltaMode write _SetdeltaMode;
  27834. end;
  27835. { --------------------------------------------------------------------
  27836. TJSAbortController
  27837. --------------------------------------------------------------------}
  27838. IJSAbortController = interface(IJSObject)
  27839. ['{3244E19B-3458-3D6C-91D8-49962A65A796}']
  27840. function _Getsignal: IJSAbortSignal;
  27841. procedure abort(const aReason: Variant);
  27842. procedure abort;
  27843. property signal: IJSAbortSignal read _Getsignal;
  27844. end;
  27845. TJSAbortController = class(TJSObject,IJSAbortController)
  27846. Protected
  27847. function _Getsignal: IJSAbortSignal;
  27848. Public
  27849. constructor Create; overload;
  27850. procedure abort(const aReason: Variant); overload;
  27851. procedure abort; overload;
  27852. class function JSClassName: UnicodeString; override;
  27853. class function Cast(const Intf: IJSObject): IJSAbortController;
  27854. property signal: IJSAbortSignal read _Getsignal;
  27855. end;
  27856. { --------------------------------------------------------------------
  27857. TJSAbstractRange
  27858. --------------------------------------------------------------------}
  27859. IJSAbstractRange = interface(IJSObject)
  27860. ['{8E39D0ED-D143-37AA-8AE4-89FBFDC74148}']
  27861. function _GetstartContainer: IJSNode;
  27862. function _GetstartOffset: Cardinal;
  27863. function _GetendContainer: IJSNode;
  27864. function _GetendOffset: Cardinal;
  27865. function _Getcollapsed: Boolean;
  27866. property startContainer: IJSNode read _GetstartContainer;
  27867. property startOffset: Cardinal read _GetstartOffset;
  27868. property endContainer: IJSNode read _GetendContainer;
  27869. property endOffset: Cardinal read _GetendOffset;
  27870. property collapsed: Boolean read _Getcollapsed;
  27871. end;
  27872. TJSAbstractRange = class(TJSObject,IJSAbstractRange)
  27873. Protected
  27874. function _GetstartContainer: IJSNode;
  27875. function _GetstartOffset: Cardinal;
  27876. function _GetendContainer: IJSNode;
  27877. function _GetendOffset: Cardinal;
  27878. function _Getcollapsed: Boolean;
  27879. Public
  27880. class function JSClassName: UnicodeString; override;
  27881. class function Cast(const Intf: IJSObject): IJSAbstractRange;
  27882. property startContainer: IJSNode read _GetstartContainer;
  27883. property startOffset: Cardinal read _GetstartOffset;
  27884. property endContainer: IJSNode read _GetendContainer;
  27885. property endOffset: Cardinal read _GetendOffset;
  27886. property collapsed: Boolean read _Getcollapsed;
  27887. end;
  27888. { --------------------------------------------------------------------
  27889. TJSAbstractWorker
  27890. --------------------------------------------------------------------}
  27891. IJSAbstractWorker = interface(IJSObject)
  27892. ['{35D23268-EC9E-38C1-BE30-7D8E8AF584BB}']
  27893. function _Getonerror: TEventHandler;
  27894. procedure _Setonerror(const aValue: TEventHandler);
  27895. property onerror: TEventHandler read _Getonerror write _Setonerror;
  27896. end;
  27897. TJSAbstractWorker = class(TJSObject,IJSAbstractWorker)
  27898. Protected
  27899. function _Getonerror: TEventHandler;
  27900. procedure _Setonerror(const aValue: TEventHandler);
  27901. Public
  27902. class function JSClassName: UnicodeString; override;
  27903. class function Cast(const Intf: IJSObject): IJSAbstractWorker;
  27904. property onerror: TEventHandler read _Getonerror write _Setonerror;
  27905. end;
  27906. { --------------------------------------------------------------------
  27907. TJSAccessibleNode
  27908. --------------------------------------------------------------------}
  27909. IJSAccessibleNode = interface(IJSObject)
  27910. ['{2F50359E-E423-3CAE-810B-D9BD10195D9B}']
  27911. function _GetcomputedRole: UnicodeString;
  27912. function _Getstates: TUnicodeStringDynArray;
  27913. function _Getattributes: TUnicodeStringDynArray;
  27914. function _GetDOMNode: IJSNode;
  27915. function _Getrole: UnicodeString;
  27916. function _GetroleDescription: UnicodeString;
  27917. function _Getlabel_: UnicodeString;
  27918. function _Getcurrent: UnicodeString;
  27919. function _Getautocomplete: UnicodeString;
  27920. function _GetkeyShortcuts: UnicodeString;
  27921. function _Getmodal: Boolean;
  27922. function _Getmultiline: Boolean;
  27923. function _Getmultiselectable: Boolean;
  27924. function _Getorientation: UnicodeString;
  27925. function _GetreadOnly: Boolean;
  27926. function _Getrequired: Boolean;
  27927. function _Getsort: UnicodeString;
  27928. function _Getplaceholder: UnicodeString;
  27929. function _GetvalueMax: Double;
  27930. function _GetvalueMin: Double;
  27931. function _GetvalueNow: Double;
  27932. function _GetvalueText: UnicodeString;
  27933. function _Getchecked: UnicodeString;
  27934. function _Getdisabled: Boolean;
  27935. function _Getexpanded: Boolean;
  27936. function _GethasPopUp: UnicodeString;
  27937. function _Gethidden: Boolean;
  27938. function _Getinvalid: UnicodeString;
  27939. function _Getpressed: UnicodeString;
  27940. function _Getselected: Boolean;
  27941. function _Getatomic: Boolean;
  27942. function _Getbusy: Boolean;
  27943. function _Getlive: UnicodeString;
  27944. function _Getrelevant: UnicodeString;
  27945. function _GetactiveDescendant: IJSAccessibleNode;
  27946. function _Getdetails: IJSAccessibleNode;
  27947. function _GeterrorMessage: IJSAccessibleNode;
  27948. function _GetcolCount: LongInt;
  27949. function _GetcolIndex: Cardinal;
  27950. function _GetcolSpan: Cardinal;
  27951. function _Getlevel: Cardinal;
  27952. function _GetposInSet: Cardinal;
  27953. function _GetrowCount: LongInt;
  27954. function _GetrowIndex: Cardinal;
  27955. function _GetrowSpan: Cardinal;
  27956. function _GetsetSize: LongInt;
  27957. procedure _Setrole(const aValue: UnicodeString);
  27958. procedure _SetroleDescription(const aValue: UnicodeString);
  27959. procedure _Setlabel_(const aValue: UnicodeString);
  27960. procedure _Setcurrent(const aValue: UnicodeString);
  27961. procedure _Setautocomplete(const aValue: UnicodeString);
  27962. procedure _SetkeyShortcuts(const aValue: UnicodeString);
  27963. procedure _Setmodal(const aValue: Boolean);
  27964. procedure _Setmultiline(const aValue: Boolean);
  27965. procedure _Setmultiselectable(const aValue: Boolean);
  27966. procedure _Setorientation(const aValue: UnicodeString);
  27967. procedure _SetreadOnly(const aValue: Boolean);
  27968. procedure _Setrequired(const aValue: Boolean);
  27969. procedure _Setsort(const aValue: UnicodeString);
  27970. procedure _Setplaceholder(const aValue: UnicodeString);
  27971. procedure _SetvalueMax(const aValue: Double);
  27972. procedure _SetvalueMin(const aValue: Double);
  27973. procedure _SetvalueNow(const aValue: Double);
  27974. procedure _SetvalueText(const aValue: UnicodeString);
  27975. procedure _Setchecked(const aValue: UnicodeString);
  27976. procedure _Setdisabled(const aValue: Boolean);
  27977. procedure _Setexpanded(const aValue: Boolean);
  27978. procedure _SethasPopUp(const aValue: UnicodeString);
  27979. procedure _Sethidden(const aValue: Boolean);
  27980. procedure _Setinvalid(const aValue: UnicodeString);
  27981. procedure _Setpressed(const aValue: UnicodeString);
  27982. procedure _Setselected(const aValue: Boolean);
  27983. procedure _Setatomic(const aValue: Boolean);
  27984. procedure _Setbusy(const aValue: Boolean);
  27985. procedure _Setlive(const aValue: UnicodeString);
  27986. procedure _Setrelevant(const aValue: UnicodeString);
  27987. procedure _SetactiveDescendant(const aValue: IJSAccessibleNode);
  27988. procedure _Setdetails(const aValue: IJSAccessibleNode);
  27989. procedure _SeterrorMessage(const aValue: IJSAccessibleNode);
  27990. procedure _SetcolCount(const aValue: LongInt);
  27991. procedure _SetcolIndex(const aValue: Cardinal);
  27992. procedure _SetcolSpan(const aValue: Cardinal);
  27993. procedure _Setlevel(const aValue: Cardinal);
  27994. procedure _SetposInSet(const aValue: Cardinal);
  27995. procedure _SetrowCount(const aValue: LongInt);
  27996. procedure _SetrowIndex(const aValue: Cardinal);
  27997. procedure _SetrowSpan(const aValue: Cardinal);
  27998. procedure _SetsetSize(const aValue: LongInt);
  27999. function is_(const aStates: UnicodeString): Boolean{; ToDo:varargs};
  28000. function has(const aAttributes: UnicodeString): Boolean{; ToDo:varargs};
  28001. function get(const aAttribute: UnicodeString): Variant;
  28002. property computedRole: UnicodeString read _GetcomputedRole;
  28003. property states: TUnicodeStringDynArray read _Getstates;
  28004. property attributes: TUnicodeStringDynArray read _Getattributes;
  28005. property DOMNode: IJSNode read _GetDOMNode;
  28006. property role: UnicodeString read _Getrole write _Setrole;
  28007. property roleDescription: UnicodeString read _GetroleDescription write _SetroleDescription;
  28008. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  28009. property current: UnicodeString read _Getcurrent write _Setcurrent;
  28010. property autocomplete: UnicodeString read _Getautocomplete write _Setautocomplete;
  28011. property keyShortcuts: UnicodeString read _GetkeyShortcuts write _SetkeyShortcuts;
  28012. property modal: Boolean read _Getmodal write _Setmodal;
  28013. property multiline: Boolean read _Getmultiline write _Setmultiline;
  28014. property multiselectable: Boolean read _Getmultiselectable write _Setmultiselectable;
  28015. property orientation: UnicodeString read _Getorientation write _Setorientation;
  28016. property readOnly: Boolean read _GetreadOnly write _SetreadOnly;
  28017. property required: Boolean read _Getrequired write _Setrequired;
  28018. property sort: UnicodeString read _Getsort write _Setsort;
  28019. property placeholder: UnicodeString read _Getplaceholder write _Setplaceholder;
  28020. property valueMax: Double read _GetvalueMax write _SetvalueMax;
  28021. property valueMin: Double read _GetvalueMin write _SetvalueMin;
  28022. property valueNow: Double read _GetvalueNow write _SetvalueNow;
  28023. property valueText: UnicodeString read _GetvalueText write _SetvalueText;
  28024. property checked: UnicodeString read _Getchecked write _Setchecked;
  28025. property disabled: Boolean read _Getdisabled write _Setdisabled;
  28026. property expanded: Boolean read _Getexpanded write _Setexpanded;
  28027. property hasPopUp: UnicodeString read _GethasPopUp write _SethasPopUp;
  28028. property hidden: Boolean read _Gethidden write _Sethidden;
  28029. property invalid: UnicodeString read _Getinvalid write _Setinvalid;
  28030. property pressed: UnicodeString read _Getpressed write _Setpressed;
  28031. property selected: Boolean read _Getselected write _Setselected;
  28032. property atomic: Boolean read _Getatomic write _Setatomic;
  28033. property busy: Boolean read _Getbusy write _Setbusy;
  28034. property live: UnicodeString read _Getlive write _Setlive;
  28035. property relevant: UnicodeString read _Getrelevant write _Setrelevant;
  28036. property activeDescendant: IJSAccessibleNode read _GetactiveDescendant write _SetactiveDescendant;
  28037. property details: IJSAccessibleNode read _Getdetails write _Setdetails;
  28038. property errorMessage: IJSAccessibleNode read _GeterrorMessage write _SeterrorMessage;
  28039. property colCount: LongInt read _GetcolCount write _SetcolCount;
  28040. property colIndex: Cardinal read _GetcolIndex write _SetcolIndex;
  28041. property colSpan: Cardinal read _GetcolSpan write _SetcolSpan;
  28042. property level: Cardinal read _Getlevel write _Setlevel;
  28043. property posInSet: Cardinal read _GetposInSet write _SetposInSet;
  28044. property rowCount: LongInt read _GetrowCount write _SetrowCount;
  28045. property rowIndex: Cardinal read _GetrowIndex write _SetrowIndex;
  28046. property rowSpan: Cardinal read _GetrowSpan write _SetrowSpan;
  28047. property setSize: LongInt read _GetsetSize write _SetsetSize;
  28048. end;
  28049. TJSAccessibleNode = class(TJSObject,IJSAccessibleNode)
  28050. Protected
  28051. function _GetcomputedRole: UnicodeString;
  28052. function _Getstates: TUnicodeStringDynArray;
  28053. function _Getattributes: TUnicodeStringDynArray;
  28054. function _GetDOMNode: IJSNode;
  28055. function _Getrole: UnicodeString;
  28056. function _GetroleDescription: UnicodeString;
  28057. function _Getlabel_: UnicodeString;
  28058. function _Getcurrent: UnicodeString;
  28059. function _Getautocomplete: UnicodeString;
  28060. function _GetkeyShortcuts: UnicodeString;
  28061. function _Getmodal: Boolean;
  28062. function _Getmultiline: Boolean;
  28063. function _Getmultiselectable: Boolean;
  28064. function _Getorientation: UnicodeString;
  28065. function _GetreadOnly: Boolean;
  28066. function _Getrequired: Boolean;
  28067. function _Getsort: UnicodeString;
  28068. function _Getplaceholder: UnicodeString;
  28069. function _GetvalueMax: Double;
  28070. function _GetvalueMin: Double;
  28071. function _GetvalueNow: Double;
  28072. function _GetvalueText: UnicodeString;
  28073. function _Getchecked: UnicodeString;
  28074. function _Getdisabled: Boolean;
  28075. function _Getexpanded: Boolean;
  28076. function _GethasPopUp: UnicodeString;
  28077. function _Gethidden: Boolean;
  28078. function _Getinvalid: UnicodeString;
  28079. function _Getpressed: UnicodeString;
  28080. function _Getselected: Boolean;
  28081. function _Getatomic: Boolean;
  28082. function _Getbusy: Boolean;
  28083. function _Getlive: UnicodeString;
  28084. function _Getrelevant: UnicodeString;
  28085. function _GetactiveDescendant: IJSAccessibleNode;
  28086. function _Getdetails: IJSAccessibleNode;
  28087. function _GeterrorMessage: IJSAccessibleNode;
  28088. function _GetcolCount: LongInt;
  28089. function _GetcolIndex: Cardinal;
  28090. function _GetcolSpan: Cardinal;
  28091. function _Getlevel: Cardinal;
  28092. function _GetposInSet: Cardinal;
  28093. function _GetrowCount: LongInt;
  28094. function _GetrowIndex: Cardinal;
  28095. function _GetrowSpan: Cardinal;
  28096. function _GetsetSize: LongInt;
  28097. procedure _Setrole(const aValue: UnicodeString);
  28098. procedure _SetroleDescription(const aValue: UnicodeString);
  28099. procedure _Setlabel_(const aValue: UnicodeString);
  28100. procedure _Setcurrent(const aValue: UnicodeString);
  28101. procedure _Setautocomplete(const aValue: UnicodeString);
  28102. procedure _SetkeyShortcuts(const aValue: UnicodeString);
  28103. procedure _Setmodal(const aValue: Boolean);
  28104. procedure _Setmultiline(const aValue: Boolean);
  28105. procedure _Setmultiselectable(const aValue: Boolean);
  28106. procedure _Setorientation(const aValue: UnicodeString);
  28107. procedure _SetreadOnly(const aValue: Boolean);
  28108. procedure _Setrequired(const aValue: Boolean);
  28109. procedure _Setsort(const aValue: UnicodeString);
  28110. procedure _Setplaceholder(const aValue: UnicodeString);
  28111. procedure _SetvalueMax(const aValue: Double);
  28112. procedure _SetvalueMin(const aValue: Double);
  28113. procedure _SetvalueNow(const aValue: Double);
  28114. procedure _SetvalueText(const aValue: UnicodeString);
  28115. procedure _Setchecked(const aValue: UnicodeString);
  28116. procedure _Setdisabled(const aValue: Boolean);
  28117. procedure _Setexpanded(const aValue: Boolean);
  28118. procedure _SethasPopUp(const aValue: UnicodeString);
  28119. procedure _Sethidden(const aValue: Boolean);
  28120. procedure _Setinvalid(const aValue: UnicodeString);
  28121. procedure _Setpressed(const aValue: UnicodeString);
  28122. procedure _Setselected(const aValue: Boolean);
  28123. procedure _Setatomic(const aValue: Boolean);
  28124. procedure _Setbusy(const aValue: Boolean);
  28125. procedure _Setlive(const aValue: UnicodeString);
  28126. procedure _Setrelevant(const aValue: UnicodeString);
  28127. procedure _SetactiveDescendant(const aValue: IJSAccessibleNode);
  28128. procedure _Setdetails(const aValue: IJSAccessibleNode);
  28129. procedure _SeterrorMessage(const aValue: IJSAccessibleNode);
  28130. procedure _SetcolCount(const aValue: LongInt);
  28131. procedure _SetcolIndex(const aValue: Cardinal);
  28132. procedure _SetcolSpan(const aValue: Cardinal);
  28133. procedure _Setlevel(const aValue: Cardinal);
  28134. procedure _SetposInSet(const aValue: Cardinal);
  28135. procedure _SetrowCount(const aValue: LongInt);
  28136. procedure _SetrowIndex(const aValue: Cardinal);
  28137. procedure _SetrowSpan(const aValue: Cardinal);
  28138. procedure _SetsetSize(const aValue: LongInt);
  28139. Public
  28140. function is_(const aStates: UnicodeString): Boolean{; ToDo:varargs}; overload;
  28141. function has(const aAttributes: UnicodeString): Boolean{; ToDo:varargs}; overload;
  28142. function get(const aAttribute: UnicodeString): Variant; overload;
  28143. class function JSClassName: UnicodeString; override;
  28144. class function Cast(const Intf: IJSObject): IJSAccessibleNode;
  28145. property computedRole: UnicodeString read _GetcomputedRole;
  28146. property states: TUnicodeStringDynArray read _Getstates;
  28147. property attributes: TUnicodeStringDynArray read _Getattributes;
  28148. property DOMNode: IJSNode read _GetDOMNode;
  28149. property role: UnicodeString read _Getrole write _Setrole;
  28150. property roleDescription: UnicodeString read _GetroleDescription write _SetroleDescription;
  28151. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  28152. property current: UnicodeString read _Getcurrent write _Setcurrent;
  28153. property autocomplete: UnicodeString read _Getautocomplete write _Setautocomplete;
  28154. property keyShortcuts: UnicodeString read _GetkeyShortcuts write _SetkeyShortcuts;
  28155. property modal: Boolean read _Getmodal write _Setmodal;
  28156. property multiline: Boolean read _Getmultiline write _Setmultiline;
  28157. property multiselectable: Boolean read _Getmultiselectable write _Setmultiselectable;
  28158. property orientation: UnicodeString read _Getorientation write _Setorientation;
  28159. property readOnly: Boolean read _GetreadOnly write _SetreadOnly;
  28160. property required: Boolean read _Getrequired write _Setrequired;
  28161. property sort: UnicodeString read _Getsort write _Setsort;
  28162. property placeholder: UnicodeString read _Getplaceholder write _Setplaceholder;
  28163. property valueMax: Double read _GetvalueMax write _SetvalueMax;
  28164. property valueMin: Double read _GetvalueMin write _SetvalueMin;
  28165. property valueNow: Double read _GetvalueNow write _SetvalueNow;
  28166. property valueText: UnicodeString read _GetvalueText write _SetvalueText;
  28167. property checked: UnicodeString read _Getchecked write _Setchecked;
  28168. property disabled: Boolean read _Getdisabled write _Setdisabled;
  28169. property expanded: Boolean read _Getexpanded write _Setexpanded;
  28170. property hasPopUp: UnicodeString read _GethasPopUp write _SethasPopUp;
  28171. property hidden: Boolean read _Gethidden write _Sethidden;
  28172. property invalid: UnicodeString read _Getinvalid write _Setinvalid;
  28173. property pressed: UnicodeString read _Getpressed write _Setpressed;
  28174. property selected: Boolean read _Getselected write _Setselected;
  28175. property atomic: Boolean read _Getatomic write _Setatomic;
  28176. property busy: Boolean read _Getbusy write _Setbusy;
  28177. property live: UnicodeString read _Getlive write _Setlive;
  28178. property relevant: UnicodeString read _Getrelevant write _Setrelevant;
  28179. property activeDescendant: IJSAccessibleNode read _GetactiveDescendant write _SetactiveDescendant;
  28180. property details: IJSAccessibleNode read _Getdetails write _Setdetails;
  28181. property errorMessage: IJSAccessibleNode read _GeterrorMessage write _SeterrorMessage;
  28182. property colCount: LongInt read _GetcolCount write _SetcolCount;
  28183. property colIndex: Cardinal read _GetcolIndex write _SetcolIndex;
  28184. property colSpan: Cardinal read _GetcolSpan write _SetcolSpan;
  28185. property level: Cardinal read _Getlevel write _Setlevel;
  28186. property posInSet: Cardinal read _GetposInSet write _SetposInSet;
  28187. property rowCount: LongInt read _GetrowCount write _SetrowCount;
  28188. property rowIndex: Cardinal read _GetrowIndex write _SetrowIndex;
  28189. property rowSpan: Cardinal read _GetrowSpan write _SetrowSpan;
  28190. property setSize: LongInt read _GetsetSize write _SetsetSize;
  28191. end;
  28192. { --------------------------------------------------------------------
  28193. TJSAnimatable
  28194. --------------------------------------------------------------------}
  28195. TJSAnimationDynArray = IJSArray; // array of Animation
  28196. IJSAnimatable = interface(IJSObject)
  28197. ['{B705F8EE-A862-30AE-9523-6CE1C6E93355}']
  28198. function animate(aKeyframes: IJSObject; const aOptions: TJSKeyframeAnimationOptions): IJSAnimation;
  28199. function animate(aKeyframes: IJSObject): IJSAnimation;
  28200. function animate(aKeyframes: IJSObject; aOptions: Double): IJSAnimation;
  28201. function getAnimations(const aOptions: TJSGetAnimationsOptions): TJSAnimationDynArray;
  28202. function getAnimations: TJSAnimationDynArray;
  28203. end;
  28204. TJSAnimatable = class(TJSObject,IJSAnimatable)
  28205. Protected
  28206. Public
  28207. function animate(aKeyframes: IJSObject; const aOptions: TJSKeyframeAnimationOptions): IJSAnimation; overload;
  28208. function animate(aKeyframes: IJSObject): IJSAnimation; overload;
  28209. function animate(aKeyframes: IJSObject; aOptions: Double): IJSAnimation; overload;
  28210. function getAnimations(const aOptions: TJSGetAnimationsOptions): TJSAnimationDynArray; overload;
  28211. function getAnimations: TJSAnimationDynArray; overload;
  28212. class function JSClassName: UnicodeString; override;
  28213. class function Cast(const Intf: IJSObject): IJSAnimatable;
  28214. end;
  28215. { --------------------------------------------------------------------
  28216. TJSAnimationEffect
  28217. --------------------------------------------------------------------}
  28218. IJSAnimationEffect = interface(IJSObject)
  28219. ['{FB12ACCA-88A4-32B6-B299-5A872E1981A7}']
  28220. function getTiming: TJSEffectTiming;
  28221. function getComputedTiming: TJSComputedEffectTiming;
  28222. procedure updateTiming(const aTiming: TJSOptionalEffectTiming);
  28223. procedure updateTiming;
  28224. end;
  28225. TJSAnimationEffect = class(TJSObject,IJSAnimationEffect)
  28226. Protected
  28227. Public
  28228. function getTiming: TJSEffectTiming; overload;
  28229. function getComputedTiming: TJSComputedEffectTiming; overload;
  28230. procedure updateTiming(const aTiming: TJSOptionalEffectTiming); overload;
  28231. procedure updateTiming; overload;
  28232. class function JSClassName: UnicodeString; override;
  28233. class function Cast(const Intf: IJSObject): IJSAnimationEffect;
  28234. end;
  28235. { --------------------------------------------------------------------
  28236. TJSAnimationFrameProvider
  28237. --------------------------------------------------------------------}
  28238. IJSAnimationFrameProvider = interface(IJSObject)
  28239. ['{7685FDC3-774D-3963-9FF2-0ED5389D80ED}']
  28240. function requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt;
  28241. procedure cancelAnimationFrame(aHandle: LongInt);
  28242. end;
  28243. TJSAnimationFrameProvider = class(TJSObject,IJSAnimationFrameProvider)
  28244. Protected
  28245. Public
  28246. function requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt; overload;
  28247. procedure cancelAnimationFrame(aHandle: LongInt); overload;
  28248. class function JSClassName: UnicodeString; override;
  28249. class function Cast(const Intf: IJSObject): IJSAnimationFrameProvider;
  28250. end;
  28251. { --------------------------------------------------------------------
  28252. TJSAnimationTimeline
  28253. --------------------------------------------------------------------}
  28254. IJSAnimationTimeline = interface(IJSObject)
  28255. ['{952FDD5F-3814-37BF-963A-CEF8FB0A12B0}']
  28256. function _GetcurrentTime: Double;
  28257. property currentTime: Double read _GetcurrentTime;
  28258. end;
  28259. TJSAnimationTimeline = class(TJSObject,IJSAnimationTimeline)
  28260. Protected
  28261. function _GetcurrentTime: Double;
  28262. Public
  28263. class function JSClassName: UnicodeString; override;
  28264. class function Cast(const Intf: IJSObject): IJSAnimationTimeline;
  28265. property currentTime: Double read _GetcurrentTime;
  28266. end;
  28267. { --------------------------------------------------------------------
  28268. TJSMozObserver
  28269. --------------------------------------------------------------------}
  28270. IJSMozObserver = interface(IJSObject)
  28271. ['{EEDF5DB3-ABBE-30C2-8C3D-1A2372542131}']
  28272. end;
  28273. TJSMozObserver = class(TJSObject,IJSMozObserver)
  28274. Protected
  28275. Public
  28276. class function JSClassName: UnicodeString; override;
  28277. class function Cast(const Intf: IJSObject): IJSMozObserver;
  28278. end;
  28279. { --------------------------------------------------------------------
  28280. TJSARIAMixin
  28281. --------------------------------------------------------------------}
  28282. IJSARIAMixin = interface(IJSObject)
  28283. ['{F81FB63E-B58F-337A-8667-E62C0E47BE60}']
  28284. function _GetariaActiveDescendantElement: IJSElement;
  28285. function _Getrole: UnicodeString;
  28286. function _GetariaAtomic: UnicodeString;
  28287. function _GetariaAutoComplete: UnicodeString;
  28288. function _GetariaBrailleLabel: UnicodeString;
  28289. function _GetariaBrailleRoleDescription: UnicodeString;
  28290. function _GetariaBusy: UnicodeString;
  28291. function _GetariaChecked: UnicodeString;
  28292. function _GetariaColCount: UnicodeString;
  28293. function _GetariaColIndex: UnicodeString;
  28294. function _GetariaColIndexText: UnicodeString;
  28295. function _GetariaColSpan: UnicodeString;
  28296. function _GetariaCurrent: UnicodeString;
  28297. function _GetariaDescription: UnicodeString;
  28298. function _GetariaDisabled: UnicodeString;
  28299. function _GetariaExpanded: UnicodeString;
  28300. function _GetariaHasPopup: UnicodeString;
  28301. function _GetariaHidden: UnicodeString;
  28302. function _GetariaInvalid: UnicodeString;
  28303. function _GetariaKeyShortcuts: UnicodeString;
  28304. function _GetariaLabel: UnicodeString;
  28305. function _GetariaLevel: UnicodeString;
  28306. function _GetariaLive: UnicodeString;
  28307. function _GetariaModal: UnicodeString;
  28308. function _GetariaMultiLine: UnicodeString;
  28309. function _GetariaMultiSelectable: UnicodeString;
  28310. function _GetariaOrientation: UnicodeString;
  28311. function _GetariaPlaceholder: UnicodeString;
  28312. function _GetariaPosInSet: UnicodeString;
  28313. function _GetariaPressed: UnicodeString;
  28314. function _GetariaReadOnly: UnicodeString;
  28315. function _GetariaRelevant: UnicodeString;
  28316. function _GetariaRequired: UnicodeString;
  28317. function _GetariaRoleDescription: UnicodeString;
  28318. function _GetariaRowCount: UnicodeString;
  28319. function _GetariaRowIndex: UnicodeString;
  28320. function _GetariaRowIndexText: UnicodeString;
  28321. function _GetariaRowSpan: UnicodeString;
  28322. function _GetariaSelected: UnicodeString;
  28323. function _GetariaSetSize: UnicodeString;
  28324. function _GetariaSort: UnicodeString;
  28325. function _GetariaValueMax: UnicodeString;
  28326. function _GetariaValueMin: UnicodeString;
  28327. function _GetariaValueNow: UnicodeString;
  28328. function _GetariaValueText: UnicodeString;
  28329. procedure _SetariaActiveDescendantElement(const aValue: IJSElement);
  28330. procedure _Setrole(const aValue: UnicodeString);
  28331. procedure _SetariaAtomic(const aValue: UnicodeString);
  28332. procedure _SetariaAutoComplete(const aValue: UnicodeString);
  28333. procedure _SetariaBrailleLabel(const aValue: UnicodeString);
  28334. procedure _SetariaBrailleRoleDescription(const aValue: UnicodeString);
  28335. procedure _SetariaBusy(const aValue: UnicodeString);
  28336. procedure _SetariaChecked(const aValue: UnicodeString);
  28337. procedure _SetariaColCount(const aValue: UnicodeString);
  28338. procedure _SetariaColIndex(const aValue: UnicodeString);
  28339. procedure _SetariaColIndexText(const aValue: UnicodeString);
  28340. procedure _SetariaColSpan(const aValue: UnicodeString);
  28341. procedure _SetariaCurrent(const aValue: UnicodeString);
  28342. procedure _SetariaDescription(const aValue: UnicodeString);
  28343. procedure _SetariaDisabled(const aValue: UnicodeString);
  28344. procedure _SetariaExpanded(const aValue: UnicodeString);
  28345. procedure _SetariaHasPopup(const aValue: UnicodeString);
  28346. procedure _SetariaHidden(const aValue: UnicodeString);
  28347. procedure _SetariaInvalid(const aValue: UnicodeString);
  28348. procedure _SetariaKeyShortcuts(const aValue: UnicodeString);
  28349. procedure _SetariaLabel(const aValue: UnicodeString);
  28350. procedure _SetariaLevel(const aValue: UnicodeString);
  28351. procedure _SetariaLive(const aValue: UnicodeString);
  28352. procedure _SetariaModal(const aValue: UnicodeString);
  28353. procedure _SetariaMultiLine(const aValue: UnicodeString);
  28354. procedure _SetariaMultiSelectable(const aValue: UnicodeString);
  28355. procedure _SetariaOrientation(const aValue: UnicodeString);
  28356. procedure _SetariaPlaceholder(const aValue: UnicodeString);
  28357. procedure _SetariaPosInSet(const aValue: UnicodeString);
  28358. procedure _SetariaPressed(const aValue: UnicodeString);
  28359. procedure _SetariaReadOnly(const aValue: UnicodeString);
  28360. procedure _SetariaRelevant(const aValue: UnicodeString);
  28361. procedure _SetariaRequired(const aValue: UnicodeString);
  28362. procedure _SetariaRoleDescription(const aValue: UnicodeString);
  28363. procedure _SetariaRowCount(const aValue: UnicodeString);
  28364. procedure _SetariaRowIndex(const aValue: UnicodeString);
  28365. procedure _SetariaRowIndexText(const aValue: UnicodeString);
  28366. procedure _SetariaRowSpan(const aValue: UnicodeString);
  28367. procedure _SetariaSelected(const aValue: UnicodeString);
  28368. procedure _SetariaSetSize(const aValue: UnicodeString);
  28369. procedure _SetariaSort(const aValue: UnicodeString);
  28370. procedure _SetariaValueMax(const aValue: UnicodeString);
  28371. procedure _SetariaValueMin(const aValue: UnicodeString);
  28372. procedure _SetariaValueNow(const aValue: UnicodeString);
  28373. procedure _SetariaValueText(const aValue: UnicodeString);
  28374. property ariaActiveDescendantElement: IJSElement read _GetariaActiveDescendantElement write _SetariaActiveDescendantElement;
  28375. property role: UnicodeString read _Getrole write _Setrole;
  28376. property ariaAtomic: UnicodeString read _GetariaAtomic write _SetariaAtomic;
  28377. property ariaAutoComplete: UnicodeString read _GetariaAutoComplete write _SetariaAutoComplete;
  28378. property ariaBrailleLabel: UnicodeString read _GetariaBrailleLabel write _SetariaBrailleLabel;
  28379. property ariaBrailleRoleDescription: UnicodeString read _GetariaBrailleRoleDescription write _SetariaBrailleRoleDescription;
  28380. property ariaBusy: UnicodeString read _GetariaBusy write _SetariaBusy;
  28381. property ariaChecked: UnicodeString read _GetariaChecked write _SetariaChecked;
  28382. property ariaColCount: UnicodeString read _GetariaColCount write _SetariaColCount;
  28383. property ariaColIndex: UnicodeString read _GetariaColIndex write _SetariaColIndex;
  28384. property ariaColIndexText: UnicodeString read _GetariaColIndexText write _SetariaColIndexText;
  28385. property ariaColSpan: UnicodeString read _GetariaColSpan write _SetariaColSpan;
  28386. property ariaCurrent: UnicodeString read _GetariaCurrent write _SetariaCurrent;
  28387. property ariaDescription: UnicodeString read _GetariaDescription write _SetariaDescription;
  28388. property ariaDisabled: UnicodeString read _GetariaDisabled write _SetariaDisabled;
  28389. property ariaExpanded: UnicodeString read _GetariaExpanded write _SetariaExpanded;
  28390. property ariaHasPopup: UnicodeString read _GetariaHasPopup write _SetariaHasPopup;
  28391. property ariaHidden: UnicodeString read _GetariaHidden write _SetariaHidden;
  28392. property ariaInvalid: UnicodeString read _GetariaInvalid write _SetariaInvalid;
  28393. property ariaKeyShortcuts: UnicodeString read _GetariaKeyShortcuts write _SetariaKeyShortcuts;
  28394. property ariaLabel: UnicodeString read _GetariaLabel write _SetariaLabel;
  28395. property ariaLevel: UnicodeString read _GetariaLevel write _SetariaLevel;
  28396. property ariaLive: UnicodeString read _GetariaLive write _SetariaLive;
  28397. property ariaModal: UnicodeString read _GetariaModal write _SetariaModal;
  28398. property ariaMultiLine: UnicodeString read _GetariaMultiLine write _SetariaMultiLine;
  28399. property ariaMultiSelectable: UnicodeString read _GetariaMultiSelectable write _SetariaMultiSelectable;
  28400. property ariaOrientation: UnicodeString read _GetariaOrientation write _SetariaOrientation;
  28401. property ariaPlaceholder: UnicodeString read _GetariaPlaceholder write _SetariaPlaceholder;
  28402. property ariaPosInSet: UnicodeString read _GetariaPosInSet write _SetariaPosInSet;
  28403. property ariaPressed: UnicodeString read _GetariaPressed write _SetariaPressed;
  28404. property ariaReadOnly: UnicodeString read _GetariaReadOnly write _SetariaReadOnly;
  28405. property ariaRelevant: UnicodeString read _GetariaRelevant write _SetariaRelevant;
  28406. property ariaRequired: UnicodeString read _GetariaRequired write _SetariaRequired;
  28407. property ariaRoleDescription: UnicodeString read _GetariaRoleDescription write _SetariaRoleDescription;
  28408. property ariaRowCount: UnicodeString read _GetariaRowCount write _SetariaRowCount;
  28409. property ariaRowIndex: UnicodeString read _GetariaRowIndex write _SetariaRowIndex;
  28410. property ariaRowIndexText: UnicodeString read _GetariaRowIndexText write _SetariaRowIndexText;
  28411. property ariaRowSpan: UnicodeString read _GetariaRowSpan write _SetariaRowSpan;
  28412. property ariaSelected: UnicodeString read _GetariaSelected write _SetariaSelected;
  28413. property ariaSetSize: UnicodeString read _GetariaSetSize write _SetariaSetSize;
  28414. property ariaSort: UnicodeString read _GetariaSort write _SetariaSort;
  28415. property ariaValueMax: UnicodeString read _GetariaValueMax write _SetariaValueMax;
  28416. property ariaValueMin: UnicodeString read _GetariaValueMin write _SetariaValueMin;
  28417. property ariaValueNow: UnicodeString read _GetariaValueNow write _SetariaValueNow;
  28418. property ariaValueText: UnicodeString read _GetariaValueText write _SetariaValueText;
  28419. end;
  28420. TJSARIAMixin = class(TJSObject,IJSARIAMixin)
  28421. Protected
  28422. function _GetariaActiveDescendantElement: IJSElement;
  28423. function _Getrole: UnicodeString;
  28424. function _GetariaAtomic: UnicodeString;
  28425. function _GetariaAutoComplete: UnicodeString;
  28426. function _GetariaBrailleLabel: UnicodeString;
  28427. function _GetariaBrailleRoleDescription: UnicodeString;
  28428. function _GetariaBusy: UnicodeString;
  28429. function _GetariaChecked: UnicodeString;
  28430. function _GetariaColCount: UnicodeString;
  28431. function _GetariaColIndex: UnicodeString;
  28432. function _GetariaColIndexText: UnicodeString;
  28433. function _GetariaColSpan: UnicodeString;
  28434. function _GetariaCurrent: UnicodeString;
  28435. function _GetariaDescription: UnicodeString;
  28436. function _GetariaDisabled: UnicodeString;
  28437. function _GetariaExpanded: UnicodeString;
  28438. function _GetariaHasPopup: UnicodeString;
  28439. function _GetariaHidden: UnicodeString;
  28440. function _GetariaInvalid: UnicodeString;
  28441. function _GetariaKeyShortcuts: UnicodeString;
  28442. function _GetariaLabel: UnicodeString;
  28443. function _GetariaLevel: UnicodeString;
  28444. function _GetariaLive: UnicodeString;
  28445. function _GetariaModal: UnicodeString;
  28446. function _GetariaMultiLine: UnicodeString;
  28447. function _GetariaMultiSelectable: UnicodeString;
  28448. function _GetariaOrientation: UnicodeString;
  28449. function _GetariaPlaceholder: UnicodeString;
  28450. function _GetariaPosInSet: UnicodeString;
  28451. function _GetariaPressed: UnicodeString;
  28452. function _GetariaReadOnly: UnicodeString;
  28453. function _GetariaRelevant: UnicodeString;
  28454. function _GetariaRequired: UnicodeString;
  28455. function _GetariaRoleDescription: UnicodeString;
  28456. function _GetariaRowCount: UnicodeString;
  28457. function _GetariaRowIndex: UnicodeString;
  28458. function _GetariaRowIndexText: UnicodeString;
  28459. function _GetariaRowSpan: UnicodeString;
  28460. function _GetariaSelected: UnicodeString;
  28461. function _GetariaSetSize: UnicodeString;
  28462. function _GetariaSort: UnicodeString;
  28463. function _GetariaValueMax: UnicodeString;
  28464. function _GetariaValueMin: UnicodeString;
  28465. function _GetariaValueNow: UnicodeString;
  28466. function _GetariaValueText: UnicodeString;
  28467. procedure _SetariaActiveDescendantElement(const aValue: IJSElement);
  28468. procedure _Setrole(const aValue: UnicodeString);
  28469. procedure _SetariaAtomic(const aValue: UnicodeString);
  28470. procedure _SetariaAutoComplete(const aValue: UnicodeString);
  28471. procedure _SetariaBrailleLabel(const aValue: UnicodeString);
  28472. procedure _SetariaBrailleRoleDescription(const aValue: UnicodeString);
  28473. procedure _SetariaBusy(const aValue: UnicodeString);
  28474. procedure _SetariaChecked(const aValue: UnicodeString);
  28475. procedure _SetariaColCount(const aValue: UnicodeString);
  28476. procedure _SetariaColIndex(const aValue: UnicodeString);
  28477. procedure _SetariaColIndexText(const aValue: UnicodeString);
  28478. procedure _SetariaColSpan(const aValue: UnicodeString);
  28479. procedure _SetariaCurrent(const aValue: UnicodeString);
  28480. procedure _SetariaDescription(const aValue: UnicodeString);
  28481. procedure _SetariaDisabled(const aValue: UnicodeString);
  28482. procedure _SetariaExpanded(const aValue: UnicodeString);
  28483. procedure _SetariaHasPopup(const aValue: UnicodeString);
  28484. procedure _SetariaHidden(const aValue: UnicodeString);
  28485. procedure _SetariaInvalid(const aValue: UnicodeString);
  28486. procedure _SetariaKeyShortcuts(const aValue: UnicodeString);
  28487. procedure _SetariaLabel(const aValue: UnicodeString);
  28488. procedure _SetariaLevel(const aValue: UnicodeString);
  28489. procedure _SetariaLive(const aValue: UnicodeString);
  28490. procedure _SetariaModal(const aValue: UnicodeString);
  28491. procedure _SetariaMultiLine(const aValue: UnicodeString);
  28492. procedure _SetariaMultiSelectable(const aValue: UnicodeString);
  28493. procedure _SetariaOrientation(const aValue: UnicodeString);
  28494. procedure _SetariaPlaceholder(const aValue: UnicodeString);
  28495. procedure _SetariaPosInSet(const aValue: UnicodeString);
  28496. procedure _SetariaPressed(const aValue: UnicodeString);
  28497. procedure _SetariaReadOnly(const aValue: UnicodeString);
  28498. procedure _SetariaRelevant(const aValue: UnicodeString);
  28499. procedure _SetariaRequired(const aValue: UnicodeString);
  28500. procedure _SetariaRoleDescription(const aValue: UnicodeString);
  28501. procedure _SetariaRowCount(const aValue: UnicodeString);
  28502. procedure _SetariaRowIndex(const aValue: UnicodeString);
  28503. procedure _SetariaRowIndexText(const aValue: UnicodeString);
  28504. procedure _SetariaRowSpan(const aValue: UnicodeString);
  28505. procedure _SetariaSelected(const aValue: UnicodeString);
  28506. procedure _SetariaSetSize(const aValue: UnicodeString);
  28507. procedure _SetariaSort(const aValue: UnicodeString);
  28508. procedure _SetariaValueMax(const aValue: UnicodeString);
  28509. procedure _SetariaValueMin(const aValue: UnicodeString);
  28510. procedure _SetariaValueNow(const aValue: UnicodeString);
  28511. procedure _SetariaValueText(const aValue: UnicodeString);
  28512. Public
  28513. class function JSClassName: UnicodeString; override;
  28514. class function Cast(const Intf: IJSObject): IJSARIAMixin;
  28515. property ariaActiveDescendantElement: IJSElement read _GetariaActiveDescendantElement write _SetariaActiveDescendantElement;
  28516. property role: UnicodeString read _Getrole write _Setrole;
  28517. property ariaAtomic: UnicodeString read _GetariaAtomic write _SetariaAtomic;
  28518. property ariaAutoComplete: UnicodeString read _GetariaAutoComplete write _SetariaAutoComplete;
  28519. property ariaBrailleLabel: UnicodeString read _GetariaBrailleLabel write _SetariaBrailleLabel;
  28520. property ariaBrailleRoleDescription: UnicodeString read _GetariaBrailleRoleDescription write _SetariaBrailleRoleDescription;
  28521. property ariaBusy: UnicodeString read _GetariaBusy write _SetariaBusy;
  28522. property ariaChecked: UnicodeString read _GetariaChecked write _SetariaChecked;
  28523. property ariaColCount: UnicodeString read _GetariaColCount write _SetariaColCount;
  28524. property ariaColIndex: UnicodeString read _GetariaColIndex write _SetariaColIndex;
  28525. property ariaColIndexText: UnicodeString read _GetariaColIndexText write _SetariaColIndexText;
  28526. property ariaColSpan: UnicodeString read _GetariaColSpan write _SetariaColSpan;
  28527. property ariaCurrent: UnicodeString read _GetariaCurrent write _SetariaCurrent;
  28528. property ariaDescription: UnicodeString read _GetariaDescription write _SetariaDescription;
  28529. property ariaDisabled: UnicodeString read _GetariaDisabled write _SetariaDisabled;
  28530. property ariaExpanded: UnicodeString read _GetariaExpanded write _SetariaExpanded;
  28531. property ariaHasPopup: UnicodeString read _GetariaHasPopup write _SetariaHasPopup;
  28532. property ariaHidden: UnicodeString read _GetariaHidden write _SetariaHidden;
  28533. property ariaInvalid: UnicodeString read _GetariaInvalid write _SetariaInvalid;
  28534. property ariaKeyShortcuts: UnicodeString read _GetariaKeyShortcuts write _SetariaKeyShortcuts;
  28535. property ariaLabel: UnicodeString read _GetariaLabel write _SetariaLabel;
  28536. property ariaLevel: UnicodeString read _GetariaLevel write _SetariaLevel;
  28537. property ariaLive: UnicodeString read _GetariaLive write _SetariaLive;
  28538. property ariaModal: UnicodeString read _GetariaModal write _SetariaModal;
  28539. property ariaMultiLine: UnicodeString read _GetariaMultiLine write _SetariaMultiLine;
  28540. property ariaMultiSelectable: UnicodeString read _GetariaMultiSelectable write _SetariaMultiSelectable;
  28541. property ariaOrientation: UnicodeString read _GetariaOrientation write _SetariaOrientation;
  28542. property ariaPlaceholder: UnicodeString read _GetariaPlaceholder write _SetariaPlaceholder;
  28543. property ariaPosInSet: UnicodeString read _GetariaPosInSet write _SetariaPosInSet;
  28544. property ariaPressed: UnicodeString read _GetariaPressed write _SetariaPressed;
  28545. property ariaReadOnly: UnicodeString read _GetariaReadOnly write _SetariaReadOnly;
  28546. property ariaRelevant: UnicodeString read _GetariaRelevant write _SetariaRelevant;
  28547. property ariaRequired: UnicodeString read _GetariaRequired write _SetariaRequired;
  28548. property ariaRoleDescription: UnicodeString read _GetariaRoleDescription write _SetariaRoleDescription;
  28549. property ariaRowCount: UnicodeString read _GetariaRowCount write _SetariaRowCount;
  28550. property ariaRowIndex: UnicodeString read _GetariaRowIndex write _SetariaRowIndex;
  28551. property ariaRowIndexText: UnicodeString read _GetariaRowIndexText write _SetariaRowIndexText;
  28552. property ariaRowSpan: UnicodeString read _GetariaRowSpan write _SetariaRowSpan;
  28553. property ariaSelected: UnicodeString read _GetariaSelected write _SetariaSelected;
  28554. property ariaSetSize: UnicodeString read _GetariaSetSize write _SetariaSetSize;
  28555. property ariaSort: UnicodeString read _GetariaSort write _SetariaSort;
  28556. property ariaValueMax: UnicodeString read _GetariaValueMax write _SetariaValueMax;
  28557. property ariaValueMin: UnicodeString read _GetariaValueMin write _SetariaValueMin;
  28558. property ariaValueNow: UnicodeString read _GetariaValueNow write _SetariaValueNow;
  28559. property ariaValueText: UnicodeString read _GetariaValueText write _SetariaValueText;
  28560. end;
  28561. { --------------------------------------------------------------------
  28562. TJSAudioBuffer
  28563. --------------------------------------------------------------------}
  28564. IJSAudioBuffer = interface(IJSObject)
  28565. ['{96E1F302-0856-38F9-968C-E9E6D6BB7ABD}']
  28566. function _GetsampleRate: Single;
  28567. function _Getlength_: Cardinal;
  28568. function _Getduration: Double;
  28569. function _GetnumberOfChannels: Cardinal;
  28570. function getChannelData(aChannel: Cardinal): IJSFloat32Array;
  28571. procedure copyFromChannel(aDestination: IJSFloat32Array; aChannelNumber: Cardinal; aStartInChannel: Cardinal);
  28572. procedure copyFromChannel(aDestination: IJSFloat32Array; aChannelNumber: Cardinal);
  28573. procedure copyToChannel(aSource: IJSFloat32Array; aChannelNumber: Cardinal; aStartInChannel: Cardinal);
  28574. procedure copyToChannel(aSource: IJSFloat32Array; aChannelNumber: Cardinal);
  28575. property sampleRate: Single read _GetsampleRate;
  28576. property length_: Cardinal read _Getlength_;
  28577. property duration: Double read _Getduration;
  28578. property numberOfChannels: Cardinal read _GetnumberOfChannels;
  28579. end;
  28580. TJSAudioBuffer = class(TJSObject,IJSAudioBuffer)
  28581. Protected
  28582. function _GetsampleRate: Single;
  28583. function _Getlength_: Cardinal;
  28584. function _Getduration: Double;
  28585. function _GetnumberOfChannels: Cardinal;
  28586. Public
  28587. constructor Create(const aOptions: TJSAudioBufferOptions); overload;
  28588. function getChannelData(aChannel: Cardinal): IJSFloat32Array; overload;
  28589. procedure copyFromChannel(aDestination: IJSFloat32Array; aChannelNumber: Cardinal; aStartInChannel: Cardinal); overload;
  28590. procedure copyFromChannel(aDestination: IJSFloat32Array; aChannelNumber: Cardinal); overload;
  28591. procedure copyToChannel(aSource: IJSFloat32Array; aChannelNumber: Cardinal; aStartInChannel: Cardinal); overload;
  28592. procedure copyToChannel(aSource: IJSFloat32Array; aChannelNumber: Cardinal); overload;
  28593. class function JSClassName: UnicodeString; override;
  28594. class function Cast(const Intf: IJSObject): IJSAudioBuffer;
  28595. property sampleRate: Single read _GetsampleRate;
  28596. property length_: Cardinal read _Getlength_;
  28597. property duration: Double read _Getduration;
  28598. property numberOfChannels: Cardinal read _GetnumberOfChannels;
  28599. end;
  28600. { --------------------------------------------------------------------
  28601. TJSAudioData
  28602. --------------------------------------------------------------------}
  28603. // Union of ArrayBufferView, ArrayBuffer
  28604. TAudioData_copyTo_destination_Type = Variant;
  28605. IJSAudioData = interface(IJSObject)
  28606. ['{CC4F1F64-A678-33C3-A116-51E5B7200E07}']
  28607. function _Getformat: TAudioSampleFormat;
  28608. function _GetsampleRate: Single;
  28609. function _GetnumberOfFrames: Cardinal;
  28610. function _GetnumberOfChannels: Cardinal;
  28611. function _Getduration: QWord;
  28612. function _Gettimestamp: Int64;
  28613. function allocationSize(const aOptions: TJSAudioDataCopyToOptions): Cardinal;
  28614. procedure copyTo(aDestination: IJSArrayBuffer; const aOptions: TJSAudioDataCopyToOptions);
  28615. procedure copyTo(aDestination: IJSArrayBufferView; const aOptions: TJSAudioDataCopyToOptions);
  28616. function clone: IJSAudioData;
  28617. procedure close;
  28618. property format: TAudioSampleFormat read _Getformat;
  28619. property sampleRate: Single read _GetsampleRate;
  28620. property numberOfFrames: Cardinal read _GetnumberOfFrames;
  28621. property numberOfChannels: Cardinal read _GetnumberOfChannels;
  28622. property duration: QWord read _Getduration;
  28623. property timestamp: Int64 read _Gettimestamp;
  28624. end;
  28625. TJSAudioData = class(TJSObject,IJSAudioData)
  28626. Protected
  28627. function _Getformat: TAudioSampleFormat;
  28628. function _GetsampleRate: Single;
  28629. function _GetnumberOfFrames: Cardinal;
  28630. function _GetnumberOfChannels: Cardinal;
  28631. function _Getduration: QWord;
  28632. function _Gettimestamp: Int64;
  28633. Public
  28634. constructor Create(const aInit: TJSAudioDataInit); overload;
  28635. function allocationSize(const aOptions: TJSAudioDataCopyToOptions): Cardinal; overload;
  28636. procedure copyTo(aDestination: IJSArrayBuffer; const aOptions: TJSAudioDataCopyToOptions); overload;
  28637. procedure copyTo(aDestination: IJSArrayBufferView; const aOptions: TJSAudioDataCopyToOptions); overload;
  28638. function clone: IJSAudioData; overload;
  28639. procedure close; overload;
  28640. class function JSClassName: UnicodeString; override;
  28641. class function Cast(const Intf: IJSObject): IJSAudioData;
  28642. property format: TAudioSampleFormat read _Getformat;
  28643. property sampleRate: Single read _GetsampleRate;
  28644. property numberOfFrames: Cardinal read _GetnumberOfFrames;
  28645. property numberOfChannels: Cardinal read _GetnumberOfChannels;
  28646. property duration: QWord read _Getduration;
  28647. property timestamp: Int64 read _Gettimestamp;
  28648. end;
  28649. { --------------------------------------------------------------------
  28650. TJSAudioListener
  28651. --------------------------------------------------------------------}
  28652. IJSAudioListener = interface(IJSObject)
  28653. ['{DBD86361-4C0C-375B-B42A-A0EE1C619F11}']
  28654. procedure setPosition(aX: Double; aY: Double; aZ: Double);
  28655. procedure setOrientation(aX: Double; aY: Double; aZ: Double; aXUp: Double; aYUp: Double; aZUp: Double);
  28656. end;
  28657. TJSAudioListener = class(TJSObject,IJSAudioListener)
  28658. Protected
  28659. Public
  28660. procedure setPosition(aX: Double; aY: Double; aZ: Double); overload;
  28661. procedure setOrientation(aX: Double; aY: Double; aZ: Double; aXUp: Double; aYUp: Double; aZUp: Double); overload;
  28662. class function JSClassName: UnicodeString; override;
  28663. class function Cast(const Intf: IJSObject): IJSAudioListener;
  28664. end;
  28665. { --------------------------------------------------------------------
  28666. TJSAudioNodePassThrough
  28667. --------------------------------------------------------------------}
  28668. IJSAudioNodePassThrough = interface(IJSObject)
  28669. ['{8DF39B85-43E9-3C76-821A-0B54D3D5B91D}']
  28670. end;
  28671. TJSAudioNodePassThrough = class(TJSObject,IJSAudioNodePassThrough)
  28672. Protected
  28673. Public
  28674. class function JSClassName: UnicodeString; override;
  28675. class function Cast(const Intf: IJSObject): IJSAudioNodePassThrough;
  28676. end;
  28677. { --------------------------------------------------------------------
  28678. TJSAudioParam
  28679. --------------------------------------------------------------------}
  28680. IJSAudioParam = interface(IJSObject)
  28681. ['{D92F4F5C-4AD1-36A0-A153-42B8094AB8BA}']
  28682. function _Getvalue: Single;
  28683. function _GetdefaultValue: Single;
  28684. function _GetminValue: Single;
  28685. function _GetmaxValue: Single;
  28686. procedure _Setvalue(const aValue: Single);
  28687. function setValueAtTime(aValue: Single; aStartTime: Double): IJSAudioParam;
  28688. function linearRampToValueAtTime(aValue: Single; aEndTime: Double): IJSAudioParam;
  28689. function exponentialRampToValueAtTime(aValue: Single; aEndTime: Double): IJSAudioParam;
  28690. function setTargetAtTime(aTarget: Single; aStartTime: Double; aTimeConstant: Double): IJSAudioParam;
  28691. function setValueCurveAtTime(const aValues: TSingleDynArray; aStartTime: Double; aDuration: Double): IJSAudioParam;
  28692. function cancelScheduledValues(aStartTime: Double): IJSAudioParam;
  28693. property value: Single read _Getvalue write _Setvalue;
  28694. property defaultValue: Single read _GetdefaultValue;
  28695. property minValue: Single read _GetminValue;
  28696. property maxValue: Single read _GetmaxValue;
  28697. end;
  28698. TJSAudioParam = class(TJSObject,IJSAudioParam)
  28699. Protected
  28700. function _Getvalue: Single;
  28701. function _GetdefaultValue: Single;
  28702. function _GetminValue: Single;
  28703. function _GetmaxValue: Single;
  28704. procedure _Setvalue(const aValue: Single);
  28705. Public
  28706. function setValueAtTime(aValue: Single; aStartTime: Double): IJSAudioParam; overload;
  28707. function linearRampToValueAtTime(aValue: Single; aEndTime: Double): IJSAudioParam; overload;
  28708. function exponentialRampToValueAtTime(aValue: Single; aEndTime: Double): IJSAudioParam; overload;
  28709. function setTargetAtTime(aTarget: Single; aStartTime: Double; aTimeConstant: Double): IJSAudioParam; overload;
  28710. function setValueCurveAtTime(const aValues: TSingleDynArray; aStartTime: Double; aDuration: Double): IJSAudioParam; overload;
  28711. function cancelScheduledValues(aStartTime: Double): IJSAudioParam; overload;
  28712. class function JSClassName: UnicodeString; override;
  28713. class function Cast(const Intf: IJSObject): IJSAudioParam;
  28714. property value: Single read _Getvalue write _Setvalue;
  28715. property defaultValue: Single read _GetdefaultValue;
  28716. property minValue: Single read _GetminValue;
  28717. property maxValue: Single read _GetmaxValue;
  28718. end;
  28719. { --------------------------------------------------------------------
  28720. TJSAudioParamMap
  28721. --------------------------------------------------------------------}
  28722. IJSAudioParamMap = interface(IJSObject)
  28723. ['{668E77B0-20F2-3B9B-8C90-0F86C7DC1248}']
  28724. function _Getsize : LongInt;
  28725. function get(key: UnicodeString) : TJSAudioParam;
  28726. function has(key: UnicodeString) : Boolean;
  28727. function entries : IJSIterator;
  28728. function keys : IJSIterator;
  28729. function values : IJSIterator;
  28730. property size : LongInt read _Getsize;
  28731. end;
  28732. TJSAudioParamMap = class(TJSObject,IJSAudioParamMap)
  28733. Protected
  28734. function _Getsize : LongInt;
  28735. Public
  28736. function get(key: UnicodeString) : TJSAudioParam;
  28737. function has(key: UnicodeString) : Boolean;
  28738. function entries : IJSIterator;
  28739. function keys : IJSIterator;
  28740. function values : IJSIterator;
  28741. class function JSClassName: UnicodeString; override;
  28742. class function Cast(const Intf: IJSObject): IJSAudioParamMap;
  28743. property size : LongInt read _Getsize;
  28744. end;
  28745. { --------------------------------------------------------------------
  28746. TJSAudioTrack
  28747. --------------------------------------------------------------------}
  28748. IJSAudioTrack = interface(IJSObject)
  28749. ['{0D9091EE-72D5-3121-AF69-7BC27A64BC17}']
  28750. function _Getid: UnicodeString;
  28751. function _Getkind: UnicodeString;
  28752. function _Getlabel_: UnicodeString;
  28753. function _Getlanguage: UnicodeString;
  28754. function _Getenabled: Boolean;
  28755. procedure _Setenabled(const aValue: Boolean);
  28756. property id: UnicodeString read _Getid;
  28757. property kind: UnicodeString read _Getkind;
  28758. property label_: UnicodeString read _Getlabel_;
  28759. property language: UnicodeString read _Getlanguage;
  28760. property enabled: Boolean read _Getenabled write _Setenabled;
  28761. end;
  28762. TJSAudioTrack = class(TJSObject,IJSAudioTrack)
  28763. Protected
  28764. function _Getid: UnicodeString;
  28765. function _Getkind: UnicodeString;
  28766. function _Getlabel_: UnicodeString;
  28767. function _Getlanguage: UnicodeString;
  28768. function _Getenabled: Boolean;
  28769. procedure _Setenabled(const aValue: Boolean);
  28770. Public
  28771. class function JSClassName: UnicodeString; override;
  28772. class function Cast(const Intf: IJSObject): IJSAudioTrack;
  28773. property id: UnicodeString read _Getid;
  28774. property kind: UnicodeString read _Getkind;
  28775. property label_: UnicodeString read _Getlabel_;
  28776. property language: UnicodeString read _Getlanguage;
  28777. property enabled: Boolean read _Getenabled write _Setenabled;
  28778. end;
  28779. { --------------------------------------------------------------------
  28780. TJSAudioWorkletProcessor
  28781. --------------------------------------------------------------------}
  28782. IJSAudioWorkletProcessor = interface(IJSObject)
  28783. ['{66BF78DE-F968-369A-B146-5F0EDEA5C561}']
  28784. function _Getport: IJSMessagePort;
  28785. property port: IJSMessagePort read _Getport;
  28786. end;
  28787. TJSAudioWorkletProcessor = class(TJSObject,IJSAudioWorkletProcessor)
  28788. Protected
  28789. function _Getport: IJSMessagePort;
  28790. Public
  28791. constructor Create; overload;
  28792. class function JSClassName: UnicodeString; override;
  28793. class function Cast(const Intf: IJSObject): IJSAudioWorkletProcessor;
  28794. property port: IJSMessagePort read _Getport;
  28795. end;
  28796. { --------------------------------------------------------------------
  28797. TJSBarProp
  28798. --------------------------------------------------------------------}
  28799. IJSBarProp = interface(IJSObject)
  28800. ['{BE7FF026-C5F3-3839-B3AD-FEA98AFE6CE5}']
  28801. function _Getvisible: Boolean;
  28802. procedure _Setvisible(const aValue: Boolean);
  28803. property visible: Boolean read _Getvisible write _Setvisible;
  28804. end;
  28805. TJSBarProp = class(TJSObject,IJSBarProp)
  28806. Protected
  28807. function _Getvisible: Boolean;
  28808. procedure _Setvisible(const aValue: Boolean);
  28809. Public
  28810. class function JSClassName: UnicodeString; override;
  28811. class function Cast(const Intf: IJSObject): IJSBarProp;
  28812. property visible: Boolean read _Getvisible write _Setvisible;
  28813. end;
  28814. { --------------------------------------------------------------------
  28815. TJSBlob
  28816. --------------------------------------------------------------------}
  28817. TBlobPartDynArray = IJSArray; // array of BlobPart
  28818. IJSBlob = interface(IJSObject)
  28819. ['{CC8FD59F-1B85-3D93-82A4-CA4E7EBB09E7}']
  28820. function _Getsize: QWord;
  28821. function _Gettype_: UnicodeString;
  28822. function slice(aStart: Int64; aEnd_: Int64; const aContentType: UnicodeString): IJSBlob;
  28823. function slice: IJSBlob;
  28824. function slice(aStart: Int64): IJSBlob;
  28825. function slice(aStart: Int64; aEnd_: Int64): IJSBlob;
  28826. function stream: IJSReadableStream;
  28827. function text: IJSPromise; // Promise<USVString>
  28828. function arrayBuffer: IJSPromise; // Promise<ArrayBuffer>
  28829. property size: QWord read _Getsize;
  28830. property type_: UnicodeString read _Gettype_;
  28831. end;
  28832. TJSBlob = class(TJSObject,IJSBlob)
  28833. Protected
  28834. function _Getsize: QWord;
  28835. function _Gettype_: UnicodeString;
  28836. Public
  28837. constructor Create(const aBlobParts: TBlobPartDynArray; const aOptions: TJSBlobPropertyBag); overload;
  28838. constructor Create; overload;
  28839. constructor Create(const aBlobParts: TBlobPartDynArray); overload;
  28840. function slice(aStart: Int64; aEnd_: Int64; const aContentType: UnicodeString): IJSBlob; overload;
  28841. function slice: IJSBlob; overload;
  28842. function slice(aStart: Int64): IJSBlob; overload;
  28843. function slice(aStart: Int64; aEnd_: Int64): IJSBlob; overload;
  28844. function stream: IJSReadableStream; overload;
  28845. function text: IJSPromise; overload; // Promise<USVString>
  28846. function arrayBuffer: IJSPromise; overload; // Promise<ArrayBuffer>
  28847. class function JSClassName: UnicodeString; override;
  28848. class function Cast(const Intf: IJSObject): IJSBlob;
  28849. property size: QWord read _Getsize;
  28850. property type_: UnicodeString read _Gettype_;
  28851. end;
  28852. { --------------------------------------------------------------------
  28853. TJSCache
  28854. --------------------------------------------------------------------}
  28855. TRequestInfoDynArray = IJSArray; // array of RequestInfo
  28856. IJSCache = interface(IJSObject)
  28857. ['{971E41E6-0B81-3959-B8C9-68B3F5D74C2F}']
  28858. function match(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<Response>
  28859. function match(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<Response>
  28860. function match(const aRequest: UnicodeString): IJSPromise; // Promise<Response>
  28861. function match(aRequest: IJSRequest): IJSPromise; // Promise<Response>
  28862. function matchAll(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<sequence>
  28863. function matchAll: IJSPromise; // Promise<sequence>
  28864. function matchAll(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<sequence>
  28865. function matchAll(const aRequest: UnicodeString): IJSPromise; // Promise<sequence>
  28866. function matchAll(aRequest: IJSRequest): IJSPromise; // Promise<sequence>
  28867. function add(aRequest: IJSRequest): IJSPromise; // Promise<undefined>
  28868. function add(const aRequest: UnicodeString): IJSPromise; // Promise<undefined>
  28869. function addAll(const aRequests: TRequestInfoDynArray): IJSPromise; // Promise<undefined>
  28870. function put(aRequest: IJSRequest; aResponse: IJSResponse): IJSPromise; // Promise<undefined>
  28871. function put(const aRequest: UnicodeString; aResponse: IJSResponse): IJSPromise; // Promise<undefined>
  28872. function delete(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<boolean>
  28873. function delete(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<boolean>
  28874. function delete(const aRequest: UnicodeString): IJSPromise; // Promise<boolean>
  28875. function delete(aRequest: IJSRequest): IJSPromise; // Promise<boolean>
  28876. function keys(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<sequence>
  28877. function keys: IJSPromise; // Promise<sequence>
  28878. function keys(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<sequence>
  28879. function keys(const aRequest: UnicodeString): IJSPromise; // Promise<sequence>
  28880. function keys(aRequest: IJSRequest): IJSPromise; // Promise<sequence>
  28881. end;
  28882. TJSCache = class(TJSObject,IJSCache)
  28883. Protected
  28884. Public
  28885. function match(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; overload; // Promise<Response>
  28886. function match(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; overload; // Promise<Response>
  28887. function match(const aRequest: UnicodeString): IJSPromise; overload; // Promise<Response>
  28888. function match(aRequest: IJSRequest): IJSPromise; overload; // Promise<Response>
  28889. function matchAll(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; overload; // Promise<sequence>
  28890. function matchAll: IJSPromise; overload; // Promise<sequence>
  28891. function matchAll(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; overload; // Promise<sequence>
  28892. function matchAll(const aRequest: UnicodeString): IJSPromise; overload; // Promise<sequence>
  28893. function matchAll(aRequest: IJSRequest): IJSPromise; overload; // Promise<sequence>
  28894. function add(aRequest: IJSRequest): IJSPromise; overload; // Promise<undefined>
  28895. function add(const aRequest: UnicodeString): IJSPromise; overload; // Promise<undefined>
  28896. function addAll(const aRequests: TRequestInfoDynArray): IJSPromise; overload; // Promise<undefined>
  28897. function put(aRequest: IJSRequest; aResponse: IJSResponse): IJSPromise; overload; // Promise<undefined>
  28898. function put(const aRequest: UnicodeString; aResponse: IJSResponse): IJSPromise; overload; // Promise<undefined>
  28899. function delete(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; overload; // Promise<boolean>
  28900. function delete(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; overload; // Promise<boolean>
  28901. function delete(const aRequest: UnicodeString): IJSPromise; overload; // Promise<boolean>
  28902. function delete(aRequest: IJSRequest): IJSPromise; overload; // Promise<boolean>
  28903. function keys(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; overload; // Promise<sequence>
  28904. function keys: IJSPromise; overload; // Promise<sequence>
  28905. function keys(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; overload; // Promise<sequence>
  28906. function keys(const aRequest: UnicodeString): IJSPromise; overload; // Promise<sequence>
  28907. function keys(aRequest: IJSRequest): IJSPromise; overload; // Promise<sequence>
  28908. class function JSClassName: UnicodeString; override;
  28909. class function Cast(const Intf: IJSObject): IJSCache;
  28910. end;
  28911. { --------------------------------------------------------------------
  28912. TJSPrincipal
  28913. --------------------------------------------------------------------}
  28914. IJSPrincipal = interface(IJSObject)
  28915. ['{33824E56-58B9-38D0-B869-8DD15390C552}']
  28916. end;
  28917. TJSPrincipal = class(TJSObject,IJSPrincipal)
  28918. Protected
  28919. Public
  28920. class function JSClassName: UnicodeString; override;
  28921. class function Cast(const Intf: IJSObject): IJSPrincipal;
  28922. end;
  28923. { --------------------------------------------------------------------
  28924. TJSCacheStorage
  28925. --------------------------------------------------------------------}
  28926. IJSCacheStorage = interface(IJSObject)
  28927. ['{C9409E48-BE6A-391E-97DF-419AB48ACA40}']
  28928. function match(aRequest: IJSRequest; const aOptions: TJSMultiCacheQueryOptions): IJSPromise; // Promise<Response>
  28929. function match(const aRequest: UnicodeString; const aOptions: TJSMultiCacheQueryOptions): IJSPromise; // Promise<Response>
  28930. function match(const aRequest: UnicodeString): IJSPromise; // Promise<Response>
  28931. function match(aRequest: IJSRequest): IJSPromise; // Promise<Response>
  28932. function has(const aCacheName: UnicodeString): IJSPromise; // Promise<boolean>
  28933. function open(const aCacheName: UnicodeString): IJSPromise; // Promise<Cache>
  28934. function delete(const aCacheName: UnicodeString): IJSPromise; // Promise<boolean>
  28935. function keys: IJSPromise; // Promise<sequence>
  28936. end;
  28937. TJSCacheStorage = class(TJSObject,IJSCacheStorage)
  28938. Protected
  28939. Public
  28940. function match(aRequest: IJSRequest; const aOptions: TJSMultiCacheQueryOptions): IJSPromise; overload; // Promise<Response>
  28941. function match(const aRequest: UnicodeString; const aOptions: TJSMultiCacheQueryOptions): IJSPromise; overload; // Promise<Response>
  28942. function match(const aRequest: UnicodeString): IJSPromise; overload; // Promise<Response>
  28943. function match(aRequest: IJSRequest): IJSPromise; overload; // Promise<Response>
  28944. function has(const aCacheName: UnicodeString): IJSPromise; overload; // Promise<boolean>
  28945. function open(const aCacheName: UnicodeString): IJSPromise; overload; // Promise<Cache>
  28946. function delete(const aCacheName: UnicodeString): IJSPromise; overload; // Promise<boolean>
  28947. function keys: IJSPromise; overload; // Promise<sequence>
  28948. class function JSClassName: UnicodeString; override;
  28949. class function Cast(const Intf: IJSObject): IJSCacheStorage;
  28950. end;
  28951. { --------------------------------------------------------------------
  28952. TJSCanvasRenderingContext2D
  28953. --------------------------------------------------------------------}
  28954. // Union of unrestricted double, DOMPointInit, sequence
  28955. TCanvasPathMethods_roundRect_radii_Type = Variant;
  28956. TunionDynArray = IJSArray; // array of union
  28957. // Union of UTF8String, CanvasGradient, CanvasPattern
  28958. TCanvasFillStrokeStyles_strokeStyle_Type = Variant;
  28959. // Union of UTF8String, CanvasGradient, CanvasPattern
  28960. TCanvasFillStrokeStyles_fillStyle_Type = Variant;
  28961. IJSCanvasRenderingContext2D = interface(IJSObject)
  28962. ['{B60ADF08-7AE4-3C2B-9C44-7120F616992E}']
  28963. function _Getcanvas: IJSHTMLCanvasElement;
  28964. function _GetglobalAlpha: Double;
  28965. function _GetglobalCompositeOperation: UnicodeString;
  28966. function _GetimageSmoothingEnabled: Boolean;
  28967. function _GetstrokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type;
  28968. function _GetfillStyle: TCanvasFillStrokeStyles_fillStyle_Type;
  28969. function _GetshadowOffsetX: Double;
  28970. function _GetshadowOffsetY: Double;
  28971. function _GetshadowBlur: Double;
  28972. function _GetshadowColor: UTF8String;
  28973. function _Getfilter: UTF8String;
  28974. function _GetlineWidth: Double;
  28975. function _GetlineCap: TCanvasLineCap;
  28976. function _GetlineJoin: TCanvasLineJoin;
  28977. function _GetmiterLimit: Double;
  28978. function _GetlineDashOffset: Double;
  28979. function _Getfont: UTF8String;
  28980. function _GettextAlign: TCanvasTextAlign;
  28981. function _GettextBaseline: TCanvasTextBaseline;
  28982. function _Getdirection: TCanvasDirection;
  28983. function _GetletterSpacing: UTF8String;
  28984. function _GetfontKerning: TCanvasFontKerning;
  28985. function _GetfontStretch: TCanvasFontStretch;
  28986. function _GetfontVariantCaps: TCanvasFontVariantCaps;
  28987. function _GettextRendering: TCanvasTextRendering;
  28988. function _GetwordSpacing: UTF8String;
  28989. procedure _SetglobalAlpha(const aValue: Double);
  28990. procedure _SetglobalCompositeOperation(const aValue: UnicodeString);
  28991. procedure _SetimageSmoothingEnabled(const aValue: Boolean);
  28992. procedure _SetstrokeStyle(const aValue: TCanvasFillStrokeStyles_strokeStyle_Type);
  28993. procedure _SetfillStyle(const aValue: TCanvasFillStrokeStyles_fillStyle_Type);
  28994. procedure _SetshadowOffsetX(const aValue: Double);
  28995. procedure _SetshadowOffsetY(const aValue: Double);
  28996. procedure _SetshadowBlur(const aValue: Double);
  28997. procedure _SetshadowColor(const aValue: UTF8String);
  28998. procedure _Setfilter(const aValue: UTF8String);
  28999. procedure _SetlineWidth(const aValue: Double);
  29000. procedure _SetlineCap(const aValue: TCanvasLineCap);
  29001. procedure _SetlineJoin(const aValue: TCanvasLineJoin);
  29002. procedure _SetmiterLimit(const aValue: Double);
  29003. procedure _SetlineDashOffset(const aValue: Double);
  29004. procedure _Setfont(const aValue: UTF8String);
  29005. procedure _SettextAlign(const aValue: TCanvasTextAlign);
  29006. procedure _SettextBaseline(const aValue: TCanvasTextBaseline);
  29007. procedure _Setdirection(const aValue: TCanvasDirection);
  29008. procedure _SetletterSpacing(const aValue: UTF8String);
  29009. procedure _SetfontKerning(const aValue: TCanvasFontKerning);
  29010. procedure _SetfontStretch(const aValue: TCanvasFontStretch);
  29011. procedure _SetfontVariantCaps(const aValue: TCanvasFontVariantCaps);
  29012. procedure _SettextRendering(const aValue: TCanvasTextRendering);
  29013. procedure _SetwordSpacing(const aValue: UTF8String);
  29014. function getContextAttributes: TJSCanvasRenderingContext2DSettings;
  29015. procedure drawWindow(aWindow: IJSWindow; aX: Double; aY: Double; aW: Double; aH: Double; const aBgColor: UTF8String; aFlags: Cardinal);
  29016. procedure drawWindow(aWindow: IJSWindow; aX: Double; aY: Double; aW: Double; aH: Double; const aBgColor: UTF8String);
  29017. procedure save;
  29018. procedure restore;
  29019. procedure reset;
  29020. function isContextLost: Boolean;
  29021. procedure scale(aX: Double; aY: Double);
  29022. procedure rotate(aAngle: Double);
  29023. procedure translate(aX: Double; aY: Double);
  29024. procedure transform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  29025. function getTransform: IJSDOMMatrix;
  29026. procedure setTransform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  29027. procedure setTransform(const aTransform: TJSDOMMatrix2DInit);
  29028. procedure setTransform;
  29029. procedure resetTransform;
  29030. function createLinearGradient(aX0: Double; aY0: Double; aX1: Double; aY1: Double): IJSCanvasGradient;
  29031. function createRadialGradient(aX0: Double; aY0: Double; aR0: Double; aX1: Double; aY1: Double; aR1: Double): IJSCanvasGradient;
  29032. function createConicGradient(aAngle: Double; aCx: Double; aCy: Double): IJSCanvasGradient;
  29033. function createPattern(aImage: IJSHTMLCanvasElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  29034. function createPattern(const aImage: THTMLOrSVGImageElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  29035. function createPattern(aImage: IJSHTMLVideoElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  29036. function createPattern(aImage: IJSImageBitmap; const aRepetition: UnicodeString): IJSCanvasPattern;
  29037. function createPattern(aImage: IJSOffscreenCanvas; const aRepetition: UnicodeString): IJSCanvasPattern;
  29038. function createPattern(aImage: IJSVideoFrame; const aRepetition: UnicodeString): IJSCanvasPattern;
  29039. procedure clearRect(aX: Double; aY: Double; aW: Double; aH: Double);
  29040. procedure fillRect(aX: Double; aY: Double; aW: Double; aH: Double);
  29041. procedure strokeRect(aX: Double; aY: Double; aW: Double; aH: Double);
  29042. procedure beginPath;
  29043. procedure fill(aWinding: TCanvasWindingRule);
  29044. procedure fill;
  29045. procedure fill(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  29046. procedure fill(aPath: IJSPath2D);
  29047. procedure stroke;
  29048. procedure stroke(aPath: IJSPath2D);
  29049. procedure clip(aWinding: TCanvasWindingRule);
  29050. procedure clip;
  29051. procedure clip(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  29052. procedure clip(aPath: IJSPath2D);
  29053. function isPointInPath(aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  29054. function isPointInPath(aX: Double; aY: Double): Boolean;
  29055. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  29056. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  29057. function isPointInStroke(aX: Double; aY: Double): Boolean;
  29058. function isPointInStroke(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  29059. procedure drawFocusIfNeeded(aElement: IJSElement);
  29060. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  29061. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double);
  29062. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  29063. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double);
  29064. function measureText(const aText: UnicodeString): IJSTextMetrics;
  29065. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double);
  29066. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double);
  29067. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double);
  29068. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double);
  29069. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double);
  29070. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double);
  29071. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29072. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29073. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29074. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29075. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29076. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29077. procedure drawImage(aImage: IJSHTMLCanvasElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29078. procedure drawImage(const aImage: THTMLOrSVGImageElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29079. procedure drawImage(aImage: IJSHTMLVideoElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29080. procedure drawImage(aImage: IJSImageBitmap; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29081. procedure drawImage(aImage: IJSOffscreenCanvas; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29082. procedure drawImage(aImage: IJSVideoFrame; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29083. function createImageData(aSw: LongInt; aSh: LongInt): IJSImageData;
  29084. function createImageData(aImagedata: IJSImageData): IJSImageData;
  29085. function getImageData(aSx: LongInt; aSy: LongInt; aSw: LongInt; aSh: LongInt): IJSImageData;
  29086. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt);
  29087. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt; aDirtyX: LongInt; aDirtyY: LongInt; aDirtyWidth: LongInt; aDirtyHeight: LongInt);
  29088. procedure setLineDash(const aSegments: TDoubleDynArray);
  29089. function getLineDash: TDoubleDynArray;
  29090. procedure closePath;
  29091. procedure moveTo(aX: Double; aY: Double);
  29092. procedure lineTo(aX: Double; aY: Double);
  29093. procedure quadraticCurveTo(aCpx: Double; aCpy: Double; aX: Double; aY: Double);
  29094. procedure bezierCurveTo(aCp1x: Double; aCp1y: Double; aCp2x: Double; aCp2y: Double; aX: Double; aY: Double);
  29095. procedure arcTo(aX1: Double; aY1: Double; aX2: Double; aY2: Double; aRadius: Double);
  29096. procedure rect(aX: Double; aY: Double; aW: Double; aH: Double);
  29097. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TJSDOMPointInit);
  29098. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double);
  29099. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TunionDynArray);
  29100. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; aRadii: Double);
  29101. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  29102. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double);
  29103. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  29104. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double);
  29105. property canvas: IJSHTMLCanvasElement read _Getcanvas;
  29106. property globalAlpha: Double read _GetglobalAlpha write _SetglobalAlpha;
  29107. property globalCompositeOperation: UnicodeString read _GetglobalCompositeOperation write _SetglobalCompositeOperation;
  29108. property imageSmoothingEnabled: Boolean read _GetimageSmoothingEnabled write _SetimageSmoothingEnabled;
  29109. property strokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type read _GetstrokeStyle write _SetstrokeStyle;
  29110. property fillStyle: TCanvasFillStrokeStyles_fillStyle_Type read _GetfillStyle write _SetfillStyle;
  29111. property shadowOffsetX: Double read _GetshadowOffsetX write _SetshadowOffsetX;
  29112. property shadowOffsetY: Double read _GetshadowOffsetY write _SetshadowOffsetY;
  29113. property shadowBlur: Double read _GetshadowBlur write _SetshadowBlur;
  29114. property shadowColor: UTF8String read _GetshadowColor write _SetshadowColor;
  29115. property filter: UTF8String read _Getfilter write _Setfilter;
  29116. property lineWidth: Double read _GetlineWidth write _SetlineWidth;
  29117. property lineCap: TCanvasLineCap read _GetlineCap write _SetlineCap;
  29118. property lineJoin: TCanvasLineJoin read _GetlineJoin write _SetlineJoin;
  29119. property miterLimit: Double read _GetmiterLimit write _SetmiterLimit;
  29120. property lineDashOffset: Double read _GetlineDashOffset write _SetlineDashOffset;
  29121. property font: UTF8String read _Getfont write _Setfont;
  29122. property textAlign: TCanvasTextAlign read _GettextAlign write _SettextAlign;
  29123. property textBaseline: TCanvasTextBaseline read _GettextBaseline write _SettextBaseline;
  29124. property direction: TCanvasDirection read _Getdirection write _Setdirection;
  29125. property letterSpacing: UTF8String read _GetletterSpacing write _SetletterSpacing;
  29126. property fontKerning: TCanvasFontKerning read _GetfontKerning write _SetfontKerning;
  29127. property fontStretch: TCanvasFontStretch read _GetfontStretch write _SetfontStretch;
  29128. property fontVariantCaps: TCanvasFontVariantCaps read _GetfontVariantCaps write _SetfontVariantCaps;
  29129. property textRendering: TCanvasTextRendering read _GettextRendering write _SettextRendering;
  29130. property wordSpacing: UTF8String read _GetwordSpacing write _SetwordSpacing;
  29131. end;
  29132. TJSCanvasRenderingContext2D = class(TJSObject,IJSCanvasRenderingContext2D)
  29133. Protected
  29134. function _Getcanvas: IJSHTMLCanvasElement;
  29135. function _GetglobalAlpha: Double;
  29136. function _GetglobalCompositeOperation: UnicodeString;
  29137. function _GetimageSmoothingEnabled: Boolean;
  29138. function _GetstrokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type;
  29139. function _GetfillStyle: TCanvasFillStrokeStyles_fillStyle_Type;
  29140. function _GetshadowOffsetX: Double;
  29141. function _GetshadowOffsetY: Double;
  29142. function _GetshadowBlur: Double;
  29143. function _GetshadowColor: UTF8String;
  29144. function _Getfilter: UTF8String;
  29145. function _GetlineWidth: Double;
  29146. function _GetlineCap: TCanvasLineCap;
  29147. function _GetlineJoin: TCanvasLineJoin;
  29148. function _GetmiterLimit: Double;
  29149. function _GetlineDashOffset: Double;
  29150. function _Getfont: UTF8String;
  29151. function _GettextAlign: TCanvasTextAlign;
  29152. function _GettextBaseline: TCanvasTextBaseline;
  29153. function _Getdirection: TCanvasDirection;
  29154. function _GetletterSpacing: UTF8String;
  29155. function _GetfontKerning: TCanvasFontKerning;
  29156. function _GetfontStretch: TCanvasFontStretch;
  29157. function _GetfontVariantCaps: TCanvasFontVariantCaps;
  29158. function _GettextRendering: TCanvasTextRendering;
  29159. function _GetwordSpacing: UTF8String;
  29160. procedure _SetglobalAlpha(const aValue: Double);
  29161. procedure _SetglobalCompositeOperation(const aValue: UnicodeString);
  29162. procedure _SetimageSmoothingEnabled(const aValue: Boolean);
  29163. procedure _SetstrokeStyle(const aValue: TCanvasFillStrokeStyles_strokeStyle_Type);
  29164. procedure _SetfillStyle(const aValue: TCanvasFillStrokeStyles_fillStyle_Type);
  29165. procedure _SetshadowOffsetX(const aValue: Double);
  29166. procedure _SetshadowOffsetY(const aValue: Double);
  29167. procedure _SetshadowBlur(const aValue: Double);
  29168. procedure _SetshadowColor(const aValue: UTF8String);
  29169. procedure _Setfilter(const aValue: UTF8String);
  29170. procedure _SetlineWidth(const aValue: Double);
  29171. procedure _SetlineCap(const aValue: TCanvasLineCap);
  29172. procedure _SetlineJoin(const aValue: TCanvasLineJoin);
  29173. procedure _SetmiterLimit(const aValue: Double);
  29174. procedure _SetlineDashOffset(const aValue: Double);
  29175. procedure _Setfont(const aValue: UTF8String);
  29176. procedure _SettextAlign(const aValue: TCanvasTextAlign);
  29177. procedure _SettextBaseline(const aValue: TCanvasTextBaseline);
  29178. procedure _Setdirection(const aValue: TCanvasDirection);
  29179. procedure _SetletterSpacing(const aValue: UTF8String);
  29180. procedure _SetfontKerning(const aValue: TCanvasFontKerning);
  29181. procedure _SetfontStretch(const aValue: TCanvasFontStretch);
  29182. procedure _SetfontVariantCaps(const aValue: TCanvasFontVariantCaps);
  29183. procedure _SettextRendering(const aValue: TCanvasTextRendering);
  29184. procedure _SetwordSpacing(const aValue: UTF8String);
  29185. Public
  29186. Const
  29187. DRAWWINDOW_DRAW_CARET = $01;
  29188. DRAWWINDOW_DO_NOT_FLUSH = $02;
  29189. DRAWWINDOW_DRAW_VIEW = $04;
  29190. DRAWWINDOW_USE_WIDGET_LAYERS = $08;
  29191. DRAWWINDOW_ASYNC_DECODE_IMAGES = $10;
  29192. Public
  29193. function getContextAttributes: TJSCanvasRenderingContext2DSettings; overload;
  29194. procedure drawWindow(aWindow: IJSWindow; aX: Double; aY: Double; aW: Double; aH: Double; const aBgColor: UTF8String; aFlags: Cardinal); overload;
  29195. procedure drawWindow(aWindow: IJSWindow; aX: Double; aY: Double; aW: Double; aH: Double; const aBgColor: UTF8String); overload;
  29196. procedure save; overload;
  29197. procedure restore; overload;
  29198. procedure reset; overload;
  29199. function isContextLost: Boolean; overload;
  29200. procedure scale(aX: Double; aY: Double); overload;
  29201. procedure rotate(aAngle: Double); overload;
  29202. procedure translate(aX: Double; aY: Double); overload;
  29203. procedure transform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double); overload;
  29204. function getTransform: IJSDOMMatrix; overload;
  29205. procedure setTransform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double); overload;
  29206. procedure setTransform(const aTransform: TJSDOMMatrix2DInit); overload;
  29207. procedure setTransform; overload;
  29208. procedure resetTransform; overload;
  29209. function createLinearGradient(aX0: Double; aY0: Double; aX1: Double; aY1: Double): IJSCanvasGradient; overload;
  29210. function createRadialGradient(aX0: Double; aY0: Double; aR0: Double; aX1: Double; aY1: Double; aR1: Double): IJSCanvasGradient; overload;
  29211. function createConicGradient(aAngle: Double; aCx: Double; aCy: Double): IJSCanvasGradient; overload;
  29212. function createPattern(aImage: IJSHTMLCanvasElement; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29213. function createPattern(const aImage: THTMLOrSVGImageElement; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29214. function createPattern(aImage: IJSHTMLVideoElement; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29215. function createPattern(aImage: IJSImageBitmap; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29216. function createPattern(aImage: IJSOffscreenCanvas; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29217. function createPattern(aImage: IJSVideoFrame; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29218. procedure clearRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  29219. procedure fillRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  29220. procedure strokeRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  29221. procedure beginPath; overload;
  29222. procedure fill(aWinding: TCanvasWindingRule); overload;
  29223. procedure fill; overload;
  29224. procedure fill(aPath: IJSPath2D; aWinding: TCanvasWindingRule); overload;
  29225. procedure fill(aPath: IJSPath2D); overload;
  29226. procedure stroke; overload;
  29227. procedure stroke(aPath: IJSPath2D); overload;
  29228. procedure clip(aWinding: TCanvasWindingRule); overload;
  29229. procedure clip; overload;
  29230. procedure clip(aPath: IJSPath2D; aWinding: TCanvasWindingRule); overload;
  29231. procedure clip(aPath: IJSPath2D); overload;
  29232. function isPointInPath(aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean; overload;
  29233. function isPointInPath(aX: Double; aY: Double): Boolean; overload;
  29234. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean; overload;
  29235. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double): Boolean; overload;
  29236. function isPointInStroke(aX: Double; aY: Double): Boolean; overload;
  29237. function isPointInStroke(aPath: IJSPath2D; aX: Double; aY: Double): Boolean; overload;
  29238. procedure drawFocusIfNeeded(aElement: IJSElement); overload;
  29239. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double); overload;
  29240. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double); overload;
  29241. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double); overload;
  29242. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double); overload;
  29243. function measureText(const aText: UnicodeString): IJSTextMetrics; overload;
  29244. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double); overload;
  29245. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double); overload;
  29246. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double); overload;
  29247. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double); overload;
  29248. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double); overload;
  29249. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double); overload;
  29250. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29251. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29252. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29253. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29254. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29255. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29256. procedure drawImage(aImage: IJSHTMLCanvasElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29257. procedure drawImage(const aImage: THTMLOrSVGImageElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29258. procedure drawImage(aImage: IJSHTMLVideoElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29259. procedure drawImage(aImage: IJSImageBitmap; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29260. procedure drawImage(aImage: IJSOffscreenCanvas; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29261. procedure drawImage(aImage: IJSVideoFrame; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29262. function createImageData(aSw: LongInt; aSh: LongInt): IJSImageData; overload;
  29263. function createImageData(aImagedata: IJSImageData): IJSImageData; overload;
  29264. function getImageData(aSx: LongInt; aSy: LongInt; aSw: LongInt; aSh: LongInt): IJSImageData; overload;
  29265. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt); overload;
  29266. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt; aDirtyX: LongInt; aDirtyY: LongInt; aDirtyWidth: LongInt; aDirtyHeight: LongInt); overload;
  29267. procedure setLineDash(const aSegments: TDoubleDynArray); overload;
  29268. function getLineDash: TDoubleDynArray; overload;
  29269. procedure closePath; overload;
  29270. procedure moveTo(aX: Double; aY: Double); overload;
  29271. procedure lineTo(aX: Double; aY: Double); overload;
  29272. procedure quadraticCurveTo(aCpx: Double; aCpy: Double; aX: Double; aY: Double); overload;
  29273. procedure bezierCurveTo(aCp1x: Double; aCp1y: Double; aCp2x: Double; aCp2y: Double; aX: Double; aY: Double); overload;
  29274. procedure arcTo(aX1: Double; aY1: Double; aX2: Double; aY2: Double; aRadius: Double); overload;
  29275. procedure rect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  29276. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TJSDOMPointInit); overload;
  29277. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  29278. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TunionDynArray); overload;
  29279. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; aRadii: Double); overload;
  29280. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean); overload;
  29281. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double); overload;
  29282. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean); overload;
  29283. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double); overload;
  29284. class function JSClassName: UnicodeString; override;
  29285. class function Cast(const Intf: IJSObject): IJSCanvasRenderingContext2D;
  29286. property canvas: IJSHTMLCanvasElement read _Getcanvas;
  29287. property globalAlpha: Double read _GetglobalAlpha write _SetglobalAlpha;
  29288. property globalCompositeOperation: UnicodeString read _GetglobalCompositeOperation write _SetglobalCompositeOperation;
  29289. property imageSmoothingEnabled: Boolean read _GetimageSmoothingEnabled write _SetimageSmoothingEnabled;
  29290. property strokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type read _GetstrokeStyle write _SetstrokeStyle;
  29291. property fillStyle: TCanvasFillStrokeStyles_fillStyle_Type read _GetfillStyle write _SetfillStyle;
  29292. property shadowOffsetX: Double read _GetshadowOffsetX write _SetshadowOffsetX;
  29293. property shadowOffsetY: Double read _GetshadowOffsetY write _SetshadowOffsetY;
  29294. property shadowBlur: Double read _GetshadowBlur write _SetshadowBlur;
  29295. property shadowColor: UTF8String read _GetshadowColor write _SetshadowColor;
  29296. property filter: UTF8String read _Getfilter write _Setfilter;
  29297. property lineWidth: Double read _GetlineWidth write _SetlineWidth;
  29298. property lineCap: TCanvasLineCap read _GetlineCap write _SetlineCap;
  29299. property lineJoin: TCanvasLineJoin read _GetlineJoin write _SetlineJoin;
  29300. property miterLimit: Double read _GetmiterLimit write _SetmiterLimit;
  29301. property lineDashOffset: Double read _GetlineDashOffset write _SetlineDashOffset;
  29302. property font: UTF8String read _Getfont write _Setfont;
  29303. property textAlign: TCanvasTextAlign read _GettextAlign write _SettextAlign;
  29304. property textBaseline: TCanvasTextBaseline read _GettextBaseline write _SettextBaseline;
  29305. property direction: TCanvasDirection read _Getdirection write _Setdirection;
  29306. property letterSpacing: UTF8String read _GetletterSpacing write _SetletterSpacing;
  29307. property fontKerning: TCanvasFontKerning read _GetfontKerning write _SetfontKerning;
  29308. property fontStretch: TCanvasFontStretch read _GetfontStretch write _SetfontStretch;
  29309. property fontVariantCaps: TCanvasFontVariantCaps read _GetfontVariantCaps write _SetfontVariantCaps;
  29310. property textRendering: TCanvasTextRendering read _GettextRendering write _SettextRendering;
  29311. property wordSpacing: UTF8String read _GetwordSpacing write _SetwordSpacing;
  29312. end;
  29313. { --------------------------------------------------------------------
  29314. TJSCanvasState
  29315. --------------------------------------------------------------------}
  29316. IJSCanvasState = interface(IJSObject)
  29317. ['{44B4C9CD-E90B-3D6F-AB84-1FA1B5C89CDF}']
  29318. procedure save;
  29319. procedure restore;
  29320. procedure reset;
  29321. function isContextLost: Boolean;
  29322. end;
  29323. TJSCanvasState = class(TJSObject,IJSCanvasState)
  29324. Protected
  29325. Public
  29326. procedure save; overload;
  29327. procedure restore; overload;
  29328. procedure reset; overload;
  29329. function isContextLost: Boolean; overload;
  29330. class function JSClassName: UnicodeString; override;
  29331. class function Cast(const Intf: IJSObject): IJSCanvasState;
  29332. end;
  29333. { --------------------------------------------------------------------
  29334. TJSCanvasTransform
  29335. --------------------------------------------------------------------}
  29336. IJSCanvasTransform = interface(IJSObject)
  29337. ['{3835CD5C-EBB1-359D-B3CD-C949F2E3C78B}']
  29338. procedure scale(aX: Double; aY: Double);
  29339. procedure rotate(aAngle: Double);
  29340. procedure translate(aX: Double; aY: Double);
  29341. procedure transform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  29342. function getTransform: IJSDOMMatrix;
  29343. procedure setTransform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  29344. procedure setTransform(const aTransform: TJSDOMMatrix2DInit);
  29345. procedure setTransform;
  29346. procedure resetTransform;
  29347. end;
  29348. TJSCanvasTransform = class(TJSObject,IJSCanvasTransform)
  29349. Protected
  29350. Public
  29351. procedure scale(aX: Double; aY: Double); overload;
  29352. procedure rotate(aAngle: Double); overload;
  29353. procedure translate(aX: Double; aY: Double); overload;
  29354. procedure transform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double); overload;
  29355. function getTransform: IJSDOMMatrix; overload;
  29356. procedure setTransform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double); overload;
  29357. procedure setTransform(const aTransform: TJSDOMMatrix2DInit); overload;
  29358. procedure setTransform; overload;
  29359. procedure resetTransform; overload;
  29360. class function JSClassName: UnicodeString; override;
  29361. class function Cast(const Intf: IJSObject): IJSCanvasTransform;
  29362. end;
  29363. { --------------------------------------------------------------------
  29364. TJSCanvasCompositing
  29365. --------------------------------------------------------------------}
  29366. IJSCanvasCompositing = interface(IJSObject)
  29367. ['{E9B62969-42F6-34C3-BE24-DD963E8116FF}']
  29368. function _GetglobalAlpha: Double;
  29369. function _GetglobalCompositeOperation: UnicodeString;
  29370. procedure _SetglobalAlpha(const aValue: Double);
  29371. procedure _SetglobalCompositeOperation(const aValue: UnicodeString);
  29372. property globalAlpha: Double read _GetglobalAlpha write _SetglobalAlpha;
  29373. property globalCompositeOperation: UnicodeString read _GetglobalCompositeOperation write _SetglobalCompositeOperation;
  29374. end;
  29375. TJSCanvasCompositing = class(TJSObject,IJSCanvasCompositing)
  29376. Protected
  29377. function _GetglobalAlpha: Double;
  29378. function _GetglobalCompositeOperation: UnicodeString;
  29379. procedure _SetglobalAlpha(const aValue: Double);
  29380. procedure _SetglobalCompositeOperation(const aValue: UnicodeString);
  29381. Public
  29382. class function JSClassName: UnicodeString; override;
  29383. class function Cast(const Intf: IJSObject): IJSCanvasCompositing;
  29384. property globalAlpha: Double read _GetglobalAlpha write _SetglobalAlpha;
  29385. property globalCompositeOperation: UnicodeString read _GetglobalCompositeOperation write _SetglobalCompositeOperation;
  29386. end;
  29387. { --------------------------------------------------------------------
  29388. TJSCanvasImageSmoothing
  29389. --------------------------------------------------------------------}
  29390. IJSCanvasImageSmoothing = interface(IJSObject)
  29391. ['{D51D1181-18FD-3903-AE57-650C0C83353F}']
  29392. function _GetimageSmoothingEnabled: Boolean;
  29393. procedure _SetimageSmoothingEnabled(const aValue: Boolean);
  29394. property imageSmoothingEnabled: Boolean read _GetimageSmoothingEnabled write _SetimageSmoothingEnabled;
  29395. end;
  29396. TJSCanvasImageSmoothing = class(TJSObject,IJSCanvasImageSmoothing)
  29397. Protected
  29398. function _GetimageSmoothingEnabled: Boolean;
  29399. procedure _SetimageSmoothingEnabled(const aValue: Boolean);
  29400. Public
  29401. class function JSClassName: UnicodeString; override;
  29402. class function Cast(const Intf: IJSObject): IJSCanvasImageSmoothing;
  29403. property imageSmoothingEnabled: Boolean read _GetimageSmoothingEnabled write _SetimageSmoothingEnabled;
  29404. end;
  29405. { --------------------------------------------------------------------
  29406. TJSCanvasFillStrokeStyles
  29407. --------------------------------------------------------------------}
  29408. IJSCanvasFillStrokeStyles = interface(IJSObject)
  29409. ['{74D11FF1-F685-344C-A016-24871E1C41E5}']
  29410. function _GetstrokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type;
  29411. function _GetfillStyle: TCanvasFillStrokeStyles_fillStyle_Type;
  29412. procedure _SetstrokeStyle(const aValue: TCanvasFillStrokeStyles_strokeStyle_Type);
  29413. procedure _SetfillStyle(const aValue: TCanvasFillStrokeStyles_fillStyle_Type);
  29414. function createLinearGradient(aX0: Double; aY0: Double; aX1: Double; aY1: Double): IJSCanvasGradient;
  29415. function createRadialGradient(aX0: Double; aY0: Double; aR0: Double; aX1: Double; aY1: Double; aR1: Double): IJSCanvasGradient;
  29416. function createConicGradient(aAngle: Double; aCx: Double; aCy: Double): IJSCanvasGradient;
  29417. function createPattern(aImage: IJSHTMLCanvasElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  29418. function createPattern(const aImage: THTMLOrSVGImageElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  29419. function createPattern(aImage: IJSHTMLVideoElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  29420. function createPattern(aImage: IJSImageBitmap; const aRepetition: UnicodeString): IJSCanvasPattern;
  29421. function createPattern(aImage: IJSOffscreenCanvas; const aRepetition: UnicodeString): IJSCanvasPattern;
  29422. function createPattern(aImage: IJSVideoFrame; const aRepetition: UnicodeString): IJSCanvasPattern;
  29423. property strokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type read _GetstrokeStyle write _SetstrokeStyle;
  29424. property fillStyle: TCanvasFillStrokeStyles_fillStyle_Type read _GetfillStyle write _SetfillStyle;
  29425. end;
  29426. TJSCanvasFillStrokeStyles = class(TJSObject,IJSCanvasFillStrokeStyles)
  29427. Protected
  29428. function _GetstrokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type;
  29429. function _GetfillStyle: TCanvasFillStrokeStyles_fillStyle_Type;
  29430. procedure _SetstrokeStyle(const aValue: TCanvasFillStrokeStyles_strokeStyle_Type);
  29431. procedure _SetfillStyle(const aValue: TCanvasFillStrokeStyles_fillStyle_Type);
  29432. Public
  29433. function createLinearGradient(aX0: Double; aY0: Double; aX1: Double; aY1: Double): IJSCanvasGradient; overload;
  29434. function createRadialGradient(aX0: Double; aY0: Double; aR0: Double; aX1: Double; aY1: Double; aR1: Double): IJSCanvasGradient; overload;
  29435. function createConicGradient(aAngle: Double; aCx: Double; aCy: Double): IJSCanvasGradient; overload;
  29436. function createPattern(aImage: IJSHTMLCanvasElement; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29437. function createPattern(const aImage: THTMLOrSVGImageElement; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29438. function createPattern(aImage: IJSHTMLVideoElement; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29439. function createPattern(aImage: IJSImageBitmap; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29440. function createPattern(aImage: IJSOffscreenCanvas; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29441. function createPattern(aImage: IJSVideoFrame; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  29442. class function JSClassName: UnicodeString; override;
  29443. class function Cast(const Intf: IJSObject): IJSCanvasFillStrokeStyles;
  29444. property strokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type read _GetstrokeStyle write _SetstrokeStyle;
  29445. property fillStyle: TCanvasFillStrokeStyles_fillStyle_Type read _GetfillStyle write _SetfillStyle;
  29446. end;
  29447. { --------------------------------------------------------------------
  29448. TJSCanvasShadowStyles
  29449. --------------------------------------------------------------------}
  29450. IJSCanvasShadowStyles = interface(IJSObject)
  29451. ['{87949896-2BE9-3393-8841-BC2516A33B96}']
  29452. function _GetshadowOffsetX: Double;
  29453. function _GetshadowOffsetY: Double;
  29454. function _GetshadowBlur: Double;
  29455. function _GetshadowColor: UTF8String;
  29456. procedure _SetshadowOffsetX(const aValue: Double);
  29457. procedure _SetshadowOffsetY(const aValue: Double);
  29458. procedure _SetshadowBlur(const aValue: Double);
  29459. procedure _SetshadowColor(const aValue: UTF8String);
  29460. property shadowOffsetX: Double read _GetshadowOffsetX write _SetshadowOffsetX;
  29461. property shadowOffsetY: Double read _GetshadowOffsetY write _SetshadowOffsetY;
  29462. property shadowBlur: Double read _GetshadowBlur write _SetshadowBlur;
  29463. property shadowColor: UTF8String read _GetshadowColor write _SetshadowColor;
  29464. end;
  29465. TJSCanvasShadowStyles = class(TJSObject,IJSCanvasShadowStyles)
  29466. Protected
  29467. function _GetshadowOffsetX: Double;
  29468. function _GetshadowOffsetY: Double;
  29469. function _GetshadowBlur: Double;
  29470. function _GetshadowColor: UTF8String;
  29471. procedure _SetshadowOffsetX(const aValue: Double);
  29472. procedure _SetshadowOffsetY(const aValue: Double);
  29473. procedure _SetshadowBlur(const aValue: Double);
  29474. procedure _SetshadowColor(const aValue: UTF8String);
  29475. Public
  29476. class function JSClassName: UnicodeString; override;
  29477. class function Cast(const Intf: IJSObject): IJSCanvasShadowStyles;
  29478. property shadowOffsetX: Double read _GetshadowOffsetX write _SetshadowOffsetX;
  29479. property shadowOffsetY: Double read _GetshadowOffsetY write _SetshadowOffsetY;
  29480. property shadowBlur: Double read _GetshadowBlur write _SetshadowBlur;
  29481. property shadowColor: UTF8String read _GetshadowColor write _SetshadowColor;
  29482. end;
  29483. { --------------------------------------------------------------------
  29484. TJSCanvasFilters
  29485. --------------------------------------------------------------------}
  29486. IJSCanvasFilters = interface(IJSObject)
  29487. ['{10EC3663-7203-3A4F-AE2C-68806A56CFD7}']
  29488. function _Getfilter: UTF8String;
  29489. procedure _Setfilter(const aValue: UTF8String);
  29490. property filter: UTF8String read _Getfilter write _Setfilter;
  29491. end;
  29492. TJSCanvasFilters = class(TJSObject,IJSCanvasFilters)
  29493. Protected
  29494. function _Getfilter: UTF8String;
  29495. procedure _Setfilter(const aValue: UTF8String);
  29496. Public
  29497. class function JSClassName: UnicodeString; override;
  29498. class function Cast(const Intf: IJSObject): IJSCanvasFilters;
  29499. property filter: UTF8String read _Getfilter write _Setfilter;
  29500. end;
  29501. { --------------------------------------------------------------------
  29502. TJSCanvasRect
  29503. --------------------------------------------------------------------}
  29504. IJSCanvasRect = interface(IJSObject)
  29505. ['{D993FC6D-11AE-3E18-93A8-8CC1A450CD51}']
  29506. procedure clearRect(aX: Double; aY: Double; aW: Double; aH: Double);
  29507. procedure fillRect(aX: Double; aY: Double; aW: Double; aH: Double);
  29508. procedure strokeRect(aX: Double; aY: Double; aW: Double; aH: Double);
  29509. end;
  29510. TJSCanvasRect = class(TJSObject,IJSCanvasRect)
  29511. Protected
  29512. Public
  29513. procedure clearRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  29514. procedure fillRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  29515. procedure strokeRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  29516. class function JSClassName: UnicodeString; override;
  29517. class function Cast(const Intf: IJSObject): IJSCanvasRect;
  29518. end;
  29519. { --------------------------------------------------------------------
  29520. TJSCanvasDrawPath
  29521. --------------------------------------------------------------------}
  29522. IJSCanvasDrawPath = interface(IJSObject)
  29523. ['{DD820417-E91C-3D22-9318-6FAFA454C1E9}']
  29524. procedure beginPath;
  29525. procedure fill(aWinding: TCanvasWindingRule);
  29526. procedure fill;
  29527. procedure fill(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  29528. procedure fill(aPath: IJSPath2D);
  29529. procedure stroke;
  29530. procedure stroke(aPath: IJSPath2D);
  29531. procedure clip(aWinding: TCanvasWindingRule);
  29532. procedure clip;
  29533. procedure clip(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  29534. procedure clip(aPath: IJSPath2D);
  29535. function isPointInPath(aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  29536. function isPointInPath(aX: Double; aY: Double): Boolean;
  29537. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  29538. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  29539. function isPointInStroke(aX: Double; aY: Double): Boolean;
  29540. function isPointInStroke(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  29541. end;
  29542. TJSCanvasDrawPath = class(TJSObject,IJSCanvasDrawPath)
  29543. Protected
  29544. Public
  29545. procedure beginPath; overload;
  29546. procedure fill(aWinding: TCanvasWindingRule); overload;
  29547. procedure fill; overload;
  29548. procedure fill(aPath: IJSPath2D; aWinding: TCanvasWindingRule); overload;
  29549. procedure fill(aPath: IJSPath2D); overload;
  29550. procedure stroke; overload;
  29551. procedure stroke(aPath: IJSPath2D); overload;
  29552. procedure clip(aWinding: TCanvasWindingRule); overload;
  29553. procedure clip; overload;
  29554. procedure clip(aPath: IJSPath2D; aWinding: TCanvasWindingRule); overload;
  29555. procedure clip(aPath: IJSPath2D); overload;
  29556. function isPointInPath(aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean; overload;
  29557. function isPointInPath(aX: Double; aY: Double): Boolean; overload;
  29558. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean; overload;
  29559. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double): Boolean; overload;
  29560. function isPointInStroke(aX: Double; aY: Double): Boolean; overload;
  29561. function isPointInStroke(aPath: IJSPath2D; aX: Double; aY: Double): Boolean; overload;
  29562. class function JSClassName: UnicodeString; override;
  29563. class function Cast(const Intf: IJSObject): IJSCanvasDrawPath;
  29564. end;
  29565. { --------------------------------------------------------------------
  29566. TJSCanvasUserInterface
  29567. --------------------------------------------------------------------}
  29568. IJSCanvasUserInterface = interface(IJSObject)
  29569. ['{15B7C8C8-74C4-3EE3-B39D-51A676FCE54C}']
  29570. procedure drawFocusIfNeeded(aElement: IJSElement);
  29571. end;
  29572. TJSCanvasUserInterface = class(TJSObject,IJSCanvasUserInterface)
  29573. Protected
  29574. Public
  29575. procedure drawFocusIfNeeded(aElement: IJSElement); overload;
  29576. class function JSClassName: UnicodeString; override;
  29577. class function Cast(const Intf: IJSObject): IJSCanvasUserInterface;
  29578. end;
  29579. { --------------------------------------------------------------------
  29580. TJSCanvasText
  29581. --------------------------------------------------------------------}
  29582. IJSCanvasText = interface(IJSObject)
  29583. ['{79910DCD-C1C2-3DC2-AD0C-CBFA5F91C360}']
  29584. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  29585. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double);
  29586. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  29587. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double);
  29588. function measureText(const aText: UnicodeString): IJSTextMetrics;
  29589. end;
  29590. TJSCanvasText = class(TJSObject,IJSCanvasText)
  29591. Protected
  29592. Public
  29593. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double); overload;
  29594. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double); overload;
  29595. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double); overload;
  29596. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double); overload;
  29597. function measureText(const aText: UnicodeString): IJSTextMetrics; overload;
  29598. class function JSClassName: UnicodeString; override;
  29599. class function Cast(const Intf: IJSObject): IJSCanvasText;
  29600. end;
  29601. { --------------------------------------------------------------------
  29602. TJSCanvasDrawImage
  29603. --------------------------------------------------------------------}
  29604. IJSCanvasDrawImage = interface(IJSObject)
  29605. ['{12091A59-A651-39D0-AD87-760DB8DAB458}']
  29606. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double);
  29607. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double);
  29608. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double);
  29609. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double);
  29610. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double);
  29611. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double);
  29612. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29613. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29614. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29615. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29616. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29617. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29618. procedure drawImage(aImage: IJSHTMLCanvasElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29619. procedure drawImage(const aImage: THTMLOrSVGImageElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29620. procedure drawImage(aImage: IJSHTMLVideoElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29621. procedure drawImage(aImage: IJSImageBitmap; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29622. procedure drawImage(aImage: IJSOffscreenCanvas; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29623. procedure drawImage(aImage: IJSVideoFrame; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  29624. end;
  29625. TJSCanvasDrawImage = class(TJSObject,IJSCanvasDrawImage)
  29626. Protected
  29627. Public
  29628. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double); overload;
  29629. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double); overload;
  29630. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double); overload;
  29631. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double); overload;
  29632. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double); overload;
  29633. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double); overload;
  29634. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29635. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29636. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29637. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29638. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29639. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29640. procedure drawImage(aImage: IJSHTMLCanvasElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29641. procedure drawImage(const aImage: THTMLOrSVGImageElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29642. procedure drawImage(aImage: IJSHTMLVideoElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29643. procedure drawImage(aImage: IJSImageBitmap; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29644. procedure drawImage(aImage: IJSOffscreenCanvas; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29645. procedure drawImage(aImage: IJSVideoFrame; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  29646. class function JSClassName: UnicodeString; override;
  29647. class function Cast(const Intf: IJSObject): IJSCanvasDrawImage;
  29648. end;
  29649. { --------------------------------------------------------------------
  29650. TJSCanvasImageData
  29651. --------------------------------------------------------------------}
  29652. IJSCanvasImageData = interface(IJSObject)
  29653. ['{5C778578-3067-3A14-961A-6A4E9A2B32D5}']
  29654. function createImageData(aSw: LongInt; aSh: LongInt): IJSImageData;
  29655. function createImageData(aImagedata: IJSImageData): IJSImageData;
  29656. function getImageData(aSx: LongInt; aSy: LongInt; aSw: LongInt; aSh: LongInt): IJSImageData;
  29657. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt);
  29658. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt; aDirtyX: LongInt; aDirtyY: LongInt; aDirtyWidth: LongInt; aDirtyHeight: LongInt);
  29659. end;
  29660. TJSCanvasImageData = class(TJSObject,IJSCanvasImageData)
  29661. Protected
  29662. Public
  29663. function createImageData(aSw: LongInt; aSh: LongInt): IJSImageData; overload;
  29664. function createImageData(aImagedata: IJSImageData): IJSImageData; overload;
  29665. function getImageData(aSx: LongInt; aSy: LongInt; aSw: LongInt; aSh: LongInt): IJSImageData; overload;
  29666. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt); overload;
  29667. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt; aDirtyX: LongInt; aDirtyY: LongInt; aDirtyWidth: LongInt; aDirtyHeight: LongInt); overload;
  29668. class function JSClassName: UnicodeString; override;
  29669. class function Cast(const Intf: IJSObject): IJSCanvasImageData;
  29670. end;
  29671. { --------------------------------------------------------------------
  29672. TJSCanvasPathDrawingStyles
  29673. --------------------------------------------------------------------}
  29674. IJSCanvasPathDrawingStyles = interface(IJSObject)
  29675. ['{FA4E1F69-1B59-31AE-B8D2-19E95E0FE50A}']
  29676. function _GetlineWidth: Double;
  29677. function _GetlineCap: TCanvasLineCap;
  29678. function _GetlineJoin: TCanvasLineJoin;
  29679. function _GetmiterLimit: Double;
  29680. function _GetlineDashOffset: Double;
  29681. procedure _SetlineWidth(const aValue: Double);
  29682. procedure _SetlineCap(const aValue: TCanvasLineCap);
  29683. procedure _SetlineJoin(const aValue: TCanvasLineJoin);
  29684. procedure _SetmiterLimit(const aValue: Double);
  29685. procedure _SetlineDashOffset(const aValue: Double);
  29686. procedure setLineDash(const aSegments: TDoubleDynArray);
  29687. function getLineDash: TDoubleDynArray;
  29688. property lineWidth: Double read _GetlineWidth write _SetlineWidth;
  29689. property lineCap: TCanvasLineCap read _GetlineCap write _SetlineCap;
  29690. property lineJoin: TCanvasLineJoin read _GetlineJoin write _SetlineJoin;
  29691. property miterLimit: Double read _GetmiterLimit write _SetmiterLimit;
  29692. property lineDashOffset: Double read _GetlineDashOffset write _SetlineDashOffset;
  29693. end;
  29694. TJSCanvasPathDrawingStyles = class(TJSObject,IJSCanvasPathDrawingStyles)
  29695. Protected
  29696. function _GetlineWidth: Double;
  29697. function _GetlineCap: TCanvasLineCap;
  29698. function _GetlineJoin: TCanvasLineJoin;
  29699. function _GetmiterLimit: Double;
  29700. function _GetlineDashOffset: Double;
  29701. procedure _SetlineWidth(const aValue: Double);
  29702. procedure _SetlineCap(const aValue: TCanvasLineCap);
  29703. procedure _SetlineJoin(const aValue: TCanvasLineJoin);
  29704. procedure _SetmiterLimit(const aValue: Double);
  29705. procedure _SetlineDashOffset(const aValue: Double);
  29706. Public
  29707. procedure setLineDash(const aSegments: TDoubleDynArray); overload;
  29708. function getLineDash: TDoubleDynArray; overload;
  29709. class function JSClassName: UnicodeString; override;
  29710. class function Cast(const Intf: IJSObject): IJSCanvasPathDrawingStyles;
  29711. property lineWidth: Double read _GetlineWidth write _SetlineWidth;
  29712. property lineCap: TCanvasLineCap read _GetlineCap write _SetlineCap;
  29713. property lineJoin: TCanvasLineJoin read _GetlineJoin write _SetlineJoin;
  29714. property miterLimit: Double read _GetmiterLimit write _SetmiterLimit;
  29715. property lineDashOffset: Double read _GetlineDashOffset write _SetlineDashOffset;
  29716. end;
  29717. { --------------------------------------------------------------------
  29718. TJSCanvasTextDrawingStyles
  29719. --------------------------------------------------------------------}
  29720. IJSCanvasTextDrawingStyles = interface(IJSObject)
  29721. ['{33DDE17F-9120-3E3A-B35C-A5D4C094CAD2}']
  29722. function _Getfont: UTF8String;
  29723. function _GettextAlign: TCanvasTextAlign;
  29724. function _GettextBaseline: TCanvasTextBaseline;
  29725. function _Getdirection: TCanvasDirection;
  29726. function _GetletterSpacing: UTF8String;
  29727. function _GetfontKerning: TCanvasFontKerning;
  29728. function _GetfontStretch: TCanvasFontStretch;
  29729. function _GetfontVariantCaps: TCanvasFontVariantCaps;
  29730. function _GettextRendering: TCanvasTextRendering;
  29731. function _GetwordSpacing: UTF8String;
  29732. procedure _Setfont(const aValue: UTF8String);
  29733. procedure _SettextAlign(const aValue: TCanvasTextAlign);
  29734. procedure _SettextBaseline(const aValue: TCanvasTextBaseline);
  29735. procedure _Setdirection(const aValue: TCanvasDirection);
  29736. procedure _SetletterSpacing(const aValue: UTF8String);
  29737. procedure _SetfontKerning(const aValue: TCanvasFontKerning);
  29738. procedure _SetfontStretch(const aValue: TCanvasFontStretch);
  29739. procedure _SetfontVariantCaps(const aValue: TCanvasFontVariantCaps);
  29740. procedure _SettextRendering(const aValue: TCanvasTextRendering);
  29741. procedure _SetwordSpacing(const aValue: UTF8String);
  29742. property font: UTF8String read _Getfont write _Setfont;
  29743. property textAlign: TCanvasTextAlign read _GettextAlign write _SettextAlign;
  29744. property textBaseline: TCanvasTextBaseline read _GettextBaseline write _SettextBaseline;
  29745. property direction: TCanvasDirection read _Getdirection write _Setdirection;
  29746. property letterSpacing: UTF8String read _GetletterSpacing write _SetletterSpacing;
  29747. property fontKerning: TCanvasFontKerning read _GetfontKerning write _SetfontKerning;
  29748. property fontStretch: TCanvasFontStretch read _GetfontStretch write _SetfontStretch;
  29749. property fontVariantCaps: TCanvasFontVariantCaps read _GetfontVariantCaps write _SetfontVariantCaps;
  29750. property textRendering: TCanvasTextRendering read _GettextRendering write _SettextRendering;
  29751. property wordSpacing: UTF8String read _GetwordSpacing write _SetwordSpacing;
  29752. end;
  29753. TJSCanvasTextDrawingStyles = class(TJSObject,IJSCanvasTextDrawingStyles)
  29754. Protected
  29755. function _Getfont: UTF8String;
  29756. function _GettextAlign: TCanvasTextAlign;
  29757. function _GettextBaseline: TCanvasTextBaseline;
  29758. function _Getdirection: TCanvasDirection;
  29759. function _GetletterSpacing: UTF8String;
  29760. function _GetfontKerning: TCanvasFontKerning;
  29761. function _GetfontStretch: TCanvasFontStretch;
  29762. function _GetfontVariantCaps: TCanvasFontVariantCaps;
  29763. function _GettextRendering: TCanvasTextRendering;
  29764. function _GetwordSpacing: UTF8String;
  29765. procedure _Setfont(const aValue: UTF8String);
  29766. procedure _SettextAlign(const aValue: TCanvasTextAlign);
  29767. procedure _SettextBaseline(const aValue: TCanvasTextBaseline);
  29768. procedure _Setdirection(const aValue: TCanvasDirection);
  29769. procedure _SetletterSpacing(const aValue: UTF8String);
  29770. procedure _SetfontKerning(const aValue: TCanvasFontKerning);
  29771. procedure _SetfontStretch(const aValue: TCanvasFontStretch);
  29772. procedure _SetfontVariantCaps(const aValue: TCanvasFontVariantCaps);
  29773. procedure _SettextRendering(const aValue: TCanvasTextRendering);
  29774. procedure _SetwordSpacing(const aValue: UTF8String);
  29775. Public
  29776. class function JSClassName: UnicodeString; override;
  29777. class function Cast(const Intf: IJSObject): IJSCanvasTextDrawingStyles;
  29778. property font: UTF8String read _Getfont write _Setfont;
  29779. property textAlign: TCanvasTextAlign read _GettextAlign write _SettextAlign;
  29780. property textBaseline: TCanvasTextBaseline read _GettextBaseline write _SettextBaseline;
  29781. property direction: TCanvasDirection read _Getdirection write _Setdirection;
  29782. property letterSpacing: UTF8String read _GetletterSpacing write _SetletterSpacing;
  29783. property fontKerning: TCanvasFontKerning read _GetfontKerning write _SetfontKerning;
  29784. property fontStretch: TCanvasFontStretch read _GetfontStretch write _SetfontStretch;
  29785. property fontVariantCaps: TCanvasFontVariantCaps read _GetfontVariantCaps write _SetfontVariantCaps;
  29786. property textRendering: TCanvasTextRendering read _GettextRendering write _SettextRendering;
  29787. property wordSpacing: UTF8String read _GetwordSpacing write _SetwordSpacing;
  29788. end;
  29789. { --------------------------------------------------------------------
  29790. TJSCanvasPathMethods
  29791. --------------------------------------------------------------------}
  29792. IJSCanvasPathMethods = interface(IJSObject)
  29793. ['{D46DD69E-18FC-354F-B5EF-9943EA942FF7}']
  29794. procedure closePath;
  29795. procedure moveTo(aX: Double; aY: Double);
  29796. procedure lineTo(aX: Double; aY: Double);
  29797. procedure quadraticCurveTo(aCpx: Double; aCpy: Double; aX: Double; aY: Double);
  29798. procedure bezierCurveTo(aCp1x: Double; aCp1y: Double; aCp2x: Double; aCp2y: Double; aX: Double; aY: Double);
  29799. procedure arcTo(aX1: Double; aY1: Double; aX2: Double; aY2: Double; aRadius: Double);
  29800. procedure rect(aX: Double; aY: Double; aW: Double; aH: Double);
  29801. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TJSDOMPointInit);
  29802. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double);
  29803. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TunionDynArray);
  29804. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; aRadii: Double);
  29805. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  29806. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double);
  29807. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  29808. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double);
  29809. end;
  29810. TJSCanvasPathMethods = class(TJSObject,IJSCanvasPathMethods)
  29811. Protected
  29812. Public
  29813. procedure closePath; overload;
  29814. procedure moveTo(aX: Double; aY: Double); overload;
  29815. procedure lineTo(aX: Double; aY: Double); overload;
  29816. procedure quadraticCurveTo(aCpx: Double; aCpy: Double; aX: Double; aY: Double); overload;
  29817. procedure bezierCurveTo(aCp1x: Double; aCp1y: Double; aCp2x: Double; aCp2y: Double; aX: Double; aY: Double); overload;
  29818. procedure arcTo(aX1: Double; aY1: Double; aX2: Double; aY2: Double; aRadius: Double); overload;
  29819. procedure rect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  29820. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TJSDOMPointInit); overload;
  29821. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  29822. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TunionDynArray); overload;
  29823. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; aRadii: Double); overload;
  29824. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean); overload;
  29825. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double); overload;
  29826. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean); overload;
  29827. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double); overload;
  29828. class function JSClassName: UnicodeString; override;
  29829. class function Cast(const Intf: IJSObject): IJSCanvasPathMethods;
  29830. end;
  29831. { --------------------------------------------------------------------
  29832. TJSCanvasGradient
  29833. --------------------------------------------------------------------}
  29834. IJSCanvasGradient = interface(IJSObject)
  29835. ['{1ACC89B0-CD34-3C5D-9979-70EE4E927AD6}']
  29836. procedure addColorStop(aOffset: Single; const aColor: UTF8String);
  29837. end;
  29838. TJSCanvasGradient = class(TJSObject,IJSCanvasGradient)
  29839. Protected
  29840. Public
  29841. procedure addColorStop(aOffset: Single; const aColor: UTF8String); overload;
  29842. class function JSClassName: UnicodeString; override;
  29843. class function Cast(const Intf: IJSObject): IJSCanvasGradient;
  29844. end;
  29845. { --------------------------------------------------------------------
  29846. TJSCanvasPattern
  29847. --------------------------------------------------------------------}
  29848. IJSCanvasPattern = interface(IJSObject)
  29849. ['{BD0E8DD9-B207-3ACF-AE2A-A0F09B6AC3AD}']
  29850. procedure setTransform(const aMatrix: TJSDOMMatrix2DInit);
  29851. procedure setTransform;
  29852. end;
  29853. TJSCanvasPattern = class(TJSObject,IJSCanvasPattern)
  29854. Protected
  29855. Public
  29856. procedure setTransform(const aMatrix: TJSDOMMatrix2DInit); overload;
  29857. procedure setTransform; overload;
  29858. class function JSClassName: UnicodeString; override;
  29859. class function Cast(const Intf: IJSObject): IJSCanvasPattern;
  29860. end;
  29861. { --------------------------------------------------------------------
  29862. TJSTextMetrics
  29863. --------------------------------------------------------------------}
  29864. IJSTextMetrics = interface(IJSObject)
  29865. ['{E485774C-B8B2-31CC-9D95-D32C147C040C}']
  29866. function _Getwidth: Double;
  29867. function _GetactualBoundingBoxLeft: Double;
  29868. function _GetactualBoundingBoxRight: Double;
  29869. function _GetfontBoundingBoxAscent: Double;
  29870. function _GetfontBoundingBoxDescent: Double;
  29871. function _GetactualBoundingBoxAscent: Double;
  29872. function _GetactualBoundingBoxDescent: Double;
  29873. function _GetemHeightAscent: Double;
  29874. function _GetemHeightDescent: Double;
  29875. function _GethangingBaseline: Double;
  29876. function _GetalphabeticBaseline: Double;
  29877. function _GetideographicBaseline: Double;
  29878. property width: Double read _Getwidth;
  29879. property actualBoundingBoxLeft: Double read _GetactualBoundingBoxLeft;
  29880. property actualBoundingBoxRight: Double read _GetactualBoundingBoxRight;
  29881. property fontBoundingBoxAscent: Double read _GetfontBoundingBoxAscent;
  29882. property fontBoundingBoxDescent: Double read _GetfontBoundingBoxDescent;
  29883. property actualBoundingBoxAscent: Double read _GetactualBoundingBoxAscent;
  29884. property actualBoundingBoxDescent: Double read _GetactualBoundingBoxDescent;
  29885. property emHeightAscent: Double read _GetemHeightAscent;
  29886. property emHeightDescent: Double read _GetemHeightDescent;
  29887. property hangingBaseline: Double read _GethangingBaseline;
  29888. property alphabeticBaseline: Double read _GetalphabeticBaseline;
  29889. property ideographicBaseline: Double read _GetideographicBaseline;
  29890. end;
  29891. TJSTextMetrics = class(TJSObject,IJSTextMetrics)
  29892. Protected
  29893. function _Getwidth: Double;
  29894. function _GetactualBoundingBoxLeft: Double;
  29895. function _GetactualBoundingBoxRight: Double;
  29896. function _GetfontBoundingBoxAscent: Double;
  29897. function _GetfontBoundingBoxDescent: Double;
  29898. function _GetactualBoundingBoxAscent: Double;
  29899. function _GetactualBoundingBoxDescent: Double;
  29900. function _GetemHeightAscent: Double;
  29901. function _GetemHeightDescent: Double;
  29902. function _GethangingBaseline: Double;
  29903. function _GetalphabeticBaseline: Double;
  29904. function _GetideographicBaseline: Double;
  29905. Public
  29906. class function JSClassName: UnicodeString; override;
  29907. class function Cast(const Intf: IJSObject): IJSTextMetrics;
  29908. property width: Double read _Getwidth;
  29909. property actualBoundingBoxLeft: Double read _GetactualBoundingBoxLeft;
  29910. property actualBoundingBoxRight: Double read _GetactualBoundingBoxRight;
  29911. property fontBoundingBoxAscent: Double read _GetfontBoundingBoxAscent;
  29912. property fontBoundingBoxDescent: Double read _GetfontBoundingBoxDescent;
  29913. property actualBoundingBoxAscent: Double read _GetactualBoundingBoxAscent;
  29914. property actualBoundingBoxDescent: Double read _GetactualBoundingBoxDescent;
  29915. property emHeightAscent: Double read _GetemHeightAscent;
  29916. property emHeightDescent: Double read _GetemHeightDescent;
  29917. property hangingBaseline: Double read _GethangingBaseline;
  29918. property alphabeticBaseline: Double read _GetalphabeticBaseline;
  29919. property ideographicBaseline: Double read _GetideographicBaseline;
  29920. end;
  29921. { --------------------------------------------------------------------
  29922. TJSCaretPosition
  29923. --------------------------------------------------------------------}
  29924. IJSCaretPosition = interface(IJSObject)
  29925. ['{0D17C1D4-341A-32BE-BADC-B3FC70F5F0EA}']
  29926. function _GetoffsetNode: IJSNode;
  29927. function _Getoffset: Cardinal;
  29928. function getClientRect: IJSDOMRect;
  29929. property offsetNode: IJSNode read _GetoffsetNode;
  29930. property offset: Cardinal read _Getoffset;
  29931. end;
  29932. TJSCaretPosition = class(TJSObject,IJSCaretPosition)
  29933. Protected
  29934. function _GetoffsetNode: IJSNode;
  29935. function _Getoffset: Cardinal;
  29936. Public
  29937. function getClientRect: IJSDOMRect; overload;
  29938. class function JSClassName: UnicodeString; override;
  29939. class function Cast(const Intf: IJSObject): IJSCaretPosition;
  29940. property offsetNode: IJSNode read _GetoffsetNode;
  29941. property offset: Cardinal read _Getoffset;
  29942. end;
  29943. { --------------------------------------------------------------------
  29944. TJSCheckerboardReportService
  29945. --------------------------------------------------------------------}
  29946. TJSCheckerboardReportDynArray = IJSArray; // array of CheckerboardReport
  29947. IJSCheckerboardReportService = interface(IJSObject)
  29948. ['{AF44FB64-FD56-37B8-97B7-F948792EF62B}']
  29949. function getReports: TJSCheckerboardReportDynArray;
  29950. function isRecordingEnabled: Boolean;
  29951. procedure setRecordingEnabled(aAEnabled: Boolean);
  29952. procedure flushActiveReports;
  29953. end;
  29954. TJSCheckerboardReportService = class(TJSObject,IJSCheckerboardReportService)
  29955. Protected
  29956. Public
  29957. constructor Create; overload;
  29958. function getReports: TJSCheckerboardReportDynArray; overload;
  29959. function isRecordingEnabled: Boolean; overload;
  29960. procedure setRecordingEnabled(aAEnabled: Boolean); overload;
  29961. procedure flushActiveReports; overload;
  29962. class function JSClassName: UnicodeString; override;
  29963. class function Cast(const Intf: IJSObject): IJSCheckerboardReportService;
  29964. end;
  29965. { --------------------------------------------------------------------
  29966. TJSChildNode
  29967. --------------------------------------------------------------------}
  29968. // Union of Node, DOMString
  29969. TChildNode_before_nodes_Type = Variant;
  29970. // Union of Node, DOMString
  29971. TChildNode_after_nodes_Type = Variant;
  29972. // Union of Node, DOMString
  29973. TChildNode_replaceWith_nodes_Type = Variant;
  29974. IJSChildNode = interface(IJSObject)
  29975. ['{BACC9ED2-6A16-35B6-BEDC-EB2379E2F83C}']
  29976. procedure before(const aNodes: UnicodeString){; ToDo:varargs};
  29977. procedure before(aNodes: IJSNode){; ToDo:varargs};
  29978. procedure after(const aNodes: UnicodeString){; ToDo:varargs};
  29979. procedure after(aNodes: IJSNode){; ToDo:varargs};
  29980. procedure replaceWith(const aNodes: UnicodeString){; ToDo:varargs};
  29981. procedure replaceWith(aNodes: IJSNode){; ToDo:varargs};
  29982. procedure remove;
  29983. end;
  29984. TJSChildNode = class(TJSObject,IJSChildNode)
  29985. Protected
  29986. Public
  29987. procedure before(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  29988. procedure before(aNodes: IJSNode){; ToDo:varargs}; overload;
  29989. procedure after(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  29990. procedure after(aNodes: IJSNode){; ToDo:varargs}; overload;
  29991. procedure replaceWith(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  29992. procedure replaceWith(aNodes: IJSNode){; ToDo:varargs}; overload;
  29993. procedure remove; overload;
  29994. class function JSClassName: UnicodeString; override;
  29995. class function Cast(const Intf: IJSObject): IJSChildNode;
  29996. end;
  29997. { --------------------------------------------------------------------
  29998. TJSNonDocumentTypeChildNode
  29999. --------------------------------------------------------------------}
  30000. IJSNonDocumentTypeChildNode = interface(IJSObject)
  30001. ['{FF1E525E-40C5-3DEC-A33A-65591891AC23}']
  30002. function _GetpreviousElementSibling: IJSElement;
  30003. function _GetnextElementSibling: IJSElement;
  30004. property previousElementSibling: IJSElement read _GetpreviousElementSibling;
  30005. property nextElementSibling: IJSElement read _GetnextElementSibling;
  30006. end;
  30007. TJSNonDocumentTypeChildNode = class(TJSObject,IJSNonDocumentTypeChildNode)
  30008. Protected
  30009. function _GetpreviousElementSibling: IJSElement;
  30010. function _GetnextElementSibling: IJSElement;
  30011. Public
  30012. class function JSClassName: UnicodeString; override;
  30013. class function Cast(const Intf: IJSObject): IJSNonDocumentTypeChildNode;
  30014. property previousElementSibling: IJSElement read _GetpreviousElementSibling;
  30015. property nextElementSibling: IJSElement read _GetnextElementSibling;
  30016. end;
  30017. { --------------------------------------------------------------------
  30018. TJSClient
  30019. --------------------------------------------------------------------}
  30020. IJSClient = interface(IJSObject)
  30021. ['{29C2396F-D664-389C-9D17-213F36D3DAC2}']
  30022. function _Geturl: UnicodeString;
  30023. function _GetframeType: TFrameType;
  30024. function _Gettype_: TClientType;
  30025. function _Getid: UnicodeString;
  30026. procedure postMessage(const aMessage: Variant; const aTransfer: TIJSObjectDynArray);
  30027. procedure postMessage(const aMessage: Variant; const aAOptions: TJSStructuredSerializeOptions);
  30028. procedure postMessage(const aMessage: Variant);
  30029. property url: UnicodeString read _Geturl;
  30030. property frameType: TFrameType read _GetframeType;
  30031. property type_: TClientType read _Gettype_;
  30032. property id: UnicodeString read _Getid;
  30033. end;
  30034. TJSClient = class(TJSObject,IJSClient)
  30035. Protected
  30036. function _Geturl: UnicodeString;
  30037. function _GetframeType: TFrameType;
  30038. function _Gettype_: TClientType;
  30039. function _Getid: UnicodeString;
  30040. Public
  30041. procedure postMessage(const aMessage: Variant; const aTransfer: TIJSObjectDynArray); overload;
  30042. procedure postMessage(const aMessage: Variant; const aAOptions: TJSStructuredSerializeOptions); overload;
  30043. procedure postMessage(const aMessage: Variant); overload;
  30044. class function JSClassName: UnicodeString; override;
  30045. class function Cast(const Intf: IJSObject): IJSClient;
  30046. property url: UnicodeString read _Geturl;
  30047. property frameType: TFrameType read _GetframeType;
  30048. property type_: TClientType read _Gettype_;
  30049. property id: UnicodeString read _Getid;
  30050. end;
  30051. { --------------------------------------------------------------------
  30052. TJSClients
  30053. --------------------------------------------------------------------}
  30054. IJSClients = interface(IJSObject)
  30055. ['{B43C57C7-95E1-37C8-BEAE-D5A801AD7BEE}']
  30056. function get(const aId: UnicodeString): IJSPromise; // Promise<union>
  30057. function matchAll(const aOptions: TJSClientQueryOptions): IJSPromise; // Promise<sequence>
  30058. function matchAll: IJSPromise; // Promise<sequence>
  30059. function openWindow(const aUrl: UnicodeString): IJSPromise; // Promise<WindowClient>
  30060. function claim: IJSPromise; // Promise<undefined>
  30061. end;
  30062. TJSClients = class(TJSObject,IJSClients)
  30063. Protected
  30064. Public
  30065. function get(const aId: UnicodeString): IJSPromise; overload; // Promise<union>
  30066. function matchAll(const aOptions: TJSClientQueryOptions): IJSPromise; overload; // Promise<sequence>
  30067. function matchAll: IJSPromise; overload; // Promise<sequence>
  30068. function openWindow(const aUrl: UnicodeString): IJSPromise; overload; // Promise<WindowClient>
  30069. function claim: IJSPromise; overload; // Promise<undefined>
  30070. class function JSClassName: UnicodeString; override;
  30071. class function Cast(const Intf: IJSObject): IJSClients;
  30072. end;
  30073. { --------------------------------------------------------------------
  30074. TJSClipboardItem
  30075. --------------------------------------------------------------------}
  30076. IJSClipboardItem = interface(IJSObject)
  30077. ['{68F09C98-814C-3DC5-A668-B93E8E1B38B9}']
  30078. function _GetpresentationStyle: TPresentationStyle;
  30079. function _Gettypes: TUnicodeStringDynArray;
  30080. function getType(const aType_: UnicodeString): IJSPromise; // Promise<Blob>
  30081. property presentationStyle: TPresentationStyle read _GetpresentationStyle;
  30082. property types: TUnicodeStringDynArray read _Gettypes;
  30083. end;
  30084. TJSClipboardItem = class(TJSObject,IJSClipboardItem)
  30085. Protected
  30086. function _GetpresentationStyle: TPresentationStyle;
  30087. function _Gettypes: TUnicodeStringDynArray;
  30088. Public
  30089. constructor Create(aItems: IJSObject; const aOptions: TJSClipboardItemOptions); overload;
  30090. constructor Create(aItems: IJSObject); overload;
  30091. function getType(const aType_: UnicodeString): IJSPromise; overload; // Promise<Blob>
  30092. class function JSClassName: UnicodeString; override;
  30093. class function Cast(const Intf: IJSObject): IJSClipboardItem;
  30094. property presentationStyle: TPresentationStyle read _GetpresentationStyle;
  30095. property types: TUnicodeStringDynArray read _Gettypes;
  30096. end;
  30097. { --------------------------------------------------------------------
  30098. TJSCredential
  30099. --------------------------------------------------------------------}
  30100. IJSCredential = interface(IJSObject)
  30101. ['{6D3F0B7D-85A2-3391-83A5-4EF8E74D0C52}']
  30102. function _Getid: UnicodeString;
  30103. function _Gettype_: UnicodeString;
  30104. property id: UnicodeString read _Getid;
  30105. property type_: UnicodeString read _Gettype_;
  30106. end;
  30107. TJSCredential = class(TJSObject,IJSCredential)
  30108. Protected
  30109. function _Getid: UnicodeString;
  30110. function _Gettype_: UnicodeString;
  30111. Public
  30112. class function JSClassName: UnicodeString; override;
  30113. class function Cast(const Intf: IJSObject): IJSCredential;
  30114. property id: UnicodeString read _Getid;
  30115. property type_: UnicodeString read _Gettype_;
  30116. end;
  30117. { --------------------------------------------------------------------
  30118. TJSCredentialsContainer
  30119. --------------------------------------------------------------------}
  30120. IJSCredentialsContainer = interface(IJSObject)
  30121. ['{CFD0AE35-B553-3F1E-90A7-A3D4A56F21C9}']
  30122. function get(const aOptions: TJSCredentialRequestOptions): IJSPromise; // Promise<Credential>
  30123. function get: IJSPromise; // Promise<Credential>
  30124. function create(const aOptions: TJSCredentialCreationOptions): IJSPromise; // Promise<Credential>
  30125. function create: IJSPromise; // Promise<Credential>
  30126. function store(aCredential: IJSCredential): IJSPromise; // Promise<Credential>
  30127. function preventSilentAccess: IJSPromise; // Promise<undefined>
  30128. end;
  30129. TJSCredentialsContainer = class(TJSObject,IJSCredentialsContainer)
  30130. Protected
  30131. Public
  30132. function get(const aOptions: TJSCredentialRequestOptions): IJSPromise; overload; // Promise<Credential>
  30133. function get: IJSPromise; overload; // Promise<Credential>
  30134. function create(const aOptions: TJSCredentialCreationOptions): IJSPromise; overload; // Promise<Credential>
  30135. function create: IJSPromise; overload; // Promise<Credential>
  30136. function store(aCredential: IJSCredential): IJSPromise; overload; // Promise<Credential>
  30137. function preventSilentAccess: IJSPromise; overload; // Promise<undefined>
  30138. class function JSClassName: UnicodeString; override;
  30139. class function Cast(const Intf: IJSObject): IJSCredentialsContainer;
  30140. end;
  30141. { --------------------------------------------------------------------
  30142. TJSGlobalCrypto
  30143. --------------------------------------------------------------------}
  30144. IJSGlobalCrypto = interface(IJSObject)
  30145. ['{5E4F5977-CBC0-3572-8935-6912DD255449}']
  30146. function _Getcrypto: IJSCrypto;
  30147. property crypto: IJSCrypto read _Getcrypto;
  30148. end;
  30149. TJSGlobalCrypto = class(TJSObject,IJSGlobalCrypto)
  30150. Protected
  30151. function _Getcrypto: IJSCrypto;
  30152. Public
  30153. class function JSClassName: UnicodeString; override;
  30154. class function Cast(const Intf: IJSObject): IJSGlobalCrypto;
  30155. property crypto: IJSCrypto read _Getcrypto;
  30156. end;
  30157. { --------------------------------------------------------------------
  30158. TJSCrypto
  30159. --------------------------------------------------------------------}
  30160. IJSCrypto = interface(IJSObject)
  30161. ['{7A89D159-B5AA-318A-8FEE-123854A7DAF2}']
  30162. function _Getsubtle: IJSSubtleCrypto;
  30163. function getRandomValues(aArray_: IJSArrayBufferView): IJSArrayBufferView;
  30164. function randomUUID: UTF8String;
  30165. property subtle: IJSSubtleCrypto read _Getsubtle;
  30166. end;
  30167. TJSCrypto = class(TJSObject,IJSCrypto)
  30168. Protected
  30169. function _Getsubtle: IJSSubtleCrypto;
  30170. Public
  30171. function getRandomValues(aArray_: IJSArrayBufferView): IJSArrayBufferView; overload;
  30172. function randomUUID: UTF8String; overload;
  30173. class function JSClassName: UnicodeString; override;
  30174. class function Cast(const Intf: IJSObject): IJSCrypto;
  30175. property subtle: IJSSubtleCrypto read _Getsubtle;
  30176. end;
  30177. { --------------------------------------------------------------------
  30178. TJSCSSPseudoElement
  30179. --------------------------------------------------------------------}
  30180. IJSCSSPseudoElement = interface(IJSObject)
  30181. ['{47F77FE2-3869-312B-A05A-D7BA03A49225}']
  30182. function _Gettype_: UnicodeString;
  30183. function _Getelement: IJSElement;
  30184. property type_: UnicodeString read _Gettype_;
  30185. property element: IJSElement read _Getelement;
  30186. end;
  30187. TJSCSSPseudoElement = class(TJSObject,IJSCSSPseudoElement)
  30188. Protected
  30189. function _Gettype_: UnicodeString;
  30190. function _Getelement: IJSElement;
  30191. Public
  30192. class function JSClassName: UnicodeString; override;
  30193. class function Cast(const Intf: IJSObject): IJSCSSPseudoElement;
  30194. property type_: UnicodeString read _Gettype_;
  30195. property element: IJSElement read _Getelement;
  30196. end;
  30197. { --------------------------------------------------------------------
  30198. TJSCSSRule
  30199. --------------------------------------------------------------------}
  30200. IJSCSSRule = interface(IJSObject)
  30201. ['{F4CA6F6B-E68F-3FAC-9790-5AE68DFB3358}']
  30202. function _Gettype_: Word;
  30203. function _GetcssText: UTF8String;
  30204. function _GetparentRule: IJSCSSRule;
  30205. function _GetparentStyleSheet: IJSCSSStyleSheet;
  30206. procedure _SetcssText(const aValue: UTF8String);
  30207. property type_: Word read _Gettype_;
  30208. property cssText: UTF8String read _GetcssText write _SetcssText;
  30209. property parentRule: IJSCSSRule read _GetparentRule;
  30210. property parentStyleSheet: IJSCSSStyleSheet read _GetparentStyleSheet;
  30211. end;
  30212. TJSCSSRule = class(TJSObject,IJSCSSRule)
  30213. Protected
  30214. function _Gettype_: Word;
  30215. function _GetcssText: UTF8String;
  30216. function _GetparentRule: IJSCSSRule;
  30217. function _GetparentStyleSheet: IJSCSSStyleSheet;
  30218. procedure _SetcssText(const aValue: UTF8String);
  30219. Public
  30220. Const
  30221. STYLE_RULE = 1;
  30222. CHARSET_RULE = 2;
  30223. IMPORT_RULE = 3;
  30224. MEDIA_RULE = 4;
  30225. FONT_FACE_RULE = 5;
  30226. PAGE_RULE = 6;
  30227. NAMESPACE_RULE = 10;
  30228. KEYFRAMES_RULE = 7;
  30229. KEYFRAME_RULE = 8;
  30230. COUNTER_STYLE_RULE = 11;
  30231. SUPPORTS_RULE = 12;
  30232. FONT_FEATURE_VALUES_RULE = 14;
  30233. Public
  30234. class function JSClassName: UnicodeString; override;
  30235. class function Cast(const Intf: IJSObject): IJSCSSRule;
  30236. property type_: Word read _Gettype_;
  30237. property cssText: UTF8String read _GetcssText write _SetcssText;
  30238. property parentRule: IJSCSSRule read _GetparentRule;
  30239. property parentStyleSheet: IJSCSSStyleSheet read _GetparentStyleSheet;
  30240. end;
  30241. { --------------------------------------------------------------------
  30242. TJSCSSRuleList
  30243. --------------------------------------------------------------------}
  30244. IJSCSSRuleList = interface(IJSObject)
  30245. ['{75B836A1-28BD-3D25-BDF6-3619147BDBAD}']
  30246. function _Getlength_: Cardinal;
  30247. function item(aIndex: Cardinal): IJSCSSRule;
  30248. property length_: Cardinal read _Getlength_;
  30249. end;
  30250. TJSCSSRuleList = class(TJSObject,IJSCSSRuleList)
  30251. Protected
  30252. function _Getlength_: Cardinal;
  30253. Public
  30254. function item(aIndex: Cardinal): IJSCSSRule; overload;
  30255. class function JSClassName: UnicodeString; override;
  30256. class function Cast(const Intf: IJSObject): IJSCSSRuleList;
  30257. property length_: Cardinal read _Getlength_;
  30258. end;
  30259. { --------------------------------------------------------------------
  30260. TJSCSSStyleDeclaration
  30261. --------------------------------------------------------------------}
  30262. IJSCSSStyleDeclaration = interface(IJSObject)
  30263. ['{D48B40C4-4295-3104-8EB0-F063D392F5C3}']
  30264. function _GetcssText: UTF8String;
  30265. function _Getlength_: Cardinal;
  30266. function _GetparentRule: IJSCSSRule;
  30267. procedure _SetcssText(const aValue: UTF8String);
  30268. function item(aIndex: Cardinal): UTF8String;
  30269. function getPropertyValue(const aProperty_: UTF8String): UTF8String;
  30270. function getPropertyPriority(const aProperty_: UTF8String): UTF8String;
  30271. procedure setProperty(const aProperty_: UTF8String; const aValue: UTF8String; const aPriority: UTF8String);
  30272. procedure setProperty(const aProperty_: UTF8String; const aValue: UTF8String);
  30273. function removeProperty(const aProperty_: UTF8String): UTF8String;
  30274. property cssText: UTF8String read _GetcssText write _SetcssText;
  30275. property length_: Cardinal read _Getlength_;
  30276. property parentRule: IJSCSSRule read _GetparentRule;
  30277. end;
  30278. TJSCSSStyleDeclaration = class(TJSObject,IJSCSSStyleDeclaration)
  30279. Protected
  30280. function _GetcssText: UTF8String;
  30281. function _Getlength_: Cardinal;
  30282. function _GetparentRule: IJSCSSRule;
  30283. procedure _SetcssText(const aValue: UTF8String);
  30284. Public
  30285. function item(aIndex: Cardinal): UTF8String; overload;
  30286. function getPropertyValue(const aProperty_: UTF8String): UTF8String; overload;
  30287. function getPropertyPriority(const aProperty_: UTF8String): UTF8String; overload;
  30288. procedure setProperty(const aProperty_: UTF8String; const aValue: UTF8String; const aPriority: UTF8String); overload;
  30289. procedure setProperty(const aProperty_: UTF8String; const aValue: UTF8String); overload;
  30290. function removeProperty(const aProperty_: UTF8String): UTF8String; overload;
  30291. class function JSClassName: UnicodeString; override;
  30292. class function Cast(const Intf: IJSObject): IJSCSSStyleDeclaration;
  30293. property cssText: UTF8String read _GetcssText write _SetcssText;
  30294. property length_: Cardinal read _Getlength_;
  30295. property parentRule: IJSCSSRule read _GetparentRule;
  30296. end;
  30297. { --------------------------------------------------------------------
  30298. TJSCustomElementRegistry
  30299. --------------------------------------------------------------------}
  30300. // Union of CustomElementConstructor, undefined
  30301. TCustomElementRegistry_get_Type = Variant;
  30302. IJSCustomElementRegistry = interface(IJSObject)
  30303. ['{4460735D-4E48-37FC-A213-2FAD7CCD9500}']
  30304. procedure define(const aName: UnicodeString; const aConstructor_: TCustomElementConstructor; const aOptions: TJSElementDefinitionOptions);
  30305. procedure define(const aName: UnicodeString; const aConstructor_: TCustomElementConstructor);
  30306. function get(const aName: UnicodeString): TCustomElementRegistry_get_Type;
  30307. function getName(const aConstructor_: TCustomElementConstructor): UnicodeString;
  30308. function whenDefined(const aName: UnicodeString): IJSPromise; // Promise<CustomElementConstructor>
  30309. procedure upgrade(aRoot: IJSNode);
  30310. end;
  30311. TJSCustomElementRegistry = class(TJSObject,IJSCustomElementRegistry)
  30312. Protected
  30313. Public
  30314. procedure define(const aName: UnicodeString; const aConstructor_: TCustomElementConstructor; const aOptions: TJSElementDefinitionOptions); overload;
  30315. procedure define(const aName: UnicodeString; const aConstructor_: TCustomElementConstructor); overload;
  30316. function get(const aName: UnicodeString): TCustomElementRegistry_get_Type; overload;
  30317. function getName(const aConstructor_: TCustomElementConstructor): UnicodeString; overload;
  30318. function whenDefined(const aName: UnicodeString): IJSPromise; overload; // Promise<CustomElementConstructor>
  30319. procedure upgrade(aRoot: IJSNode); overload;
  30320. class function JSClassName: UnicodeString; override;
  30321. class function Cast(const Intf: IJSObject): IJSCustomElementRegistry;
  30322. end;
  30323. { --------------------------------------------------------------------
  30324. TJSContentSecurityPolicy
  30325. --------------------------------------------------------------------}
  30326. IJSContentSecurityPolicy = interface(IJSObject)
  30327. ['{E0F14358-2D99-30AE-B53A-19677BFCD90F}']
  30328. end;
  30329. TJSContentSecurityPolicy = class(TJSObject,IJSContentSecurityPolicy)
  30330. Protected
  30331. Public
  30332. class function JSClassName: UnicodeString; override;
  30333. class function Cast(const Intf: IJSObject): IJSContentSecurityPolicy;
  30334. end;
  30335. { --------------------------------------------------------------------
  30336. TJSDataTransfer
  30337. --------------------------------------------------------------------}
  30338. IJSDataTransfer = interface(IJSObject)
  30339. ['{37808D5E-9660-3EB0-AF23-71340E0ED36E}']
  30340. function _GetdropEffect: UnicodeString;
  30341. function _GeteffectAllowed: UnicodeString;
  30342. function _Getitems: IJSDataTransferItemList;
  30343. function _Gettypes: TUnicodeStringDynArray;
  30344. function _Getfiles: IJSFileList;
  30345. function _GetmozCursor: UnicodeString;
  30346. function _GetmozUserCancelled: Boolean;
  30347. function _GetmozSourceNode: IJSNode;
  30348. procedure _SetdropEffect(const aValue: UnicodeString);
  30349. procedure _SeteffectAllowed(const aValue: UnicodeString);
  30350. procedure _SetmozCursor(const aValue: UnicodeString);
  30351. procedure setDragImage(aImage: IJSElement; aX: LongInt; aY: LongInt);
  30352. function getData(const aFormat: UnicodeString): UnicodeString;
  30353. procedure setData(const aFormat: UnicodeString; const aData: UnicodeString);
  30354. procedure clearData(const aFormat: UnicodeString);
  30355. procedure clearData;
  30356. procedure addElement(aElement: IJSElement);
  30357. property dropEffect: UnicodeString read _GetdropEffect write _SetdropEffect;
  30358. property effectAllowed: UnicodeString read _GeteffectAllowed write _SeteffectAllowed;
  30359. property items: IJSDataTransferItemList read _Getitems;
  30360. property types: TUnicodeStringDynArray read _Gettypes;
  30361. property files: IJSFileList read _Getfiles;
  30362. property mozCursor: UnicodeString read _GetmozCursor write _SetmozCursor;
  30363. property mozUserCancelled: Boolean read _GetmozUserCancelled;
  30364. property mozSourceNode: IJSNode read _GetmozSourceNode;
  30365. end;
  30366. TJSDataTransfer = class(TJSObject,IJSDataTransfer)
  30367. Protected
  30368. function _GetdropEffect: UnicodeString;
  30369. function _GeteffectAllowed: UnicodeString;
  30370. function _Getitems: IJSDataTransferItemList;
  30371. function _Gettypes: TUnicodeStringDynArray;
  30372. function _Getfiles: IJSFileList;
  30373. function _GetmozCursor: UnicodeString;
  30374. function _GetmozUserCancelled: Boolean;
  30375. function _GetmozSourceNode: IJSNode;
  30376. procedure _SetdropEffect(const aValue: UnicodeString);
  30377. procedure _SeteffectAllowed(const aValue: UnicodeString);
  30378. procedure _SetmozCursor(const aValue: UnicodeString);
  30379. Public
  30380. constructor Create; overload;
  30381. procedure setDragImage(aImage: IJSElement; aX: LongInt; aY: LongInt); overload;
  30382. function getData(const aFormat: UnicodeString): UnicodeString; overload;
  30383. procedure setData(const aFormat: UnicodeString; const aData: UnicodeString); overload;
  30384. procedure clearData(const aFormat: UnicodeString); overload;
  30385. procedure clearData; overload;
  30386. procedure addElement(aElement: IJSElement); overload;
  30387. class function JSClassName: UnicodeString; override;
  30388. class function Cast(const Intf: IJSObject): IJSDataTransfer;
  30389. property dropEffect: UnicodeString read _GetdropEffect write _SetdropEffect;
  30390. property effectAllowed: UnicodeString read _GeteffectAllowed write _SeteffectAllowed;
  30391. property items: IJSDataTransferItemList read _Getitems;
  30392. property types: TUnicodeStringDynArray read _Gettypes;
  30393. property files: IJSFileList read _Getfiles;
  30394. property mozCursor: UnicodeString read _GetmozCursor write _SetmozCursor;
  30395. property mozUserCancelled: Boolean read _GetmozUserCancelled;
  30396. property mozSourceNode: IJSNode read _GetmozSourceNode;
  30397. end;
  30398. { --------------------------------------------------------------------
  30399. TJSDataTransferItem
  30400. --------------------------------------------------------------------}
  30401. IJSDataTransferItem = interface(IJSObject)
  30402. ['{6ECE7555-0B66-3823-9763-5FB295630AE4}']
  30403. function _Getkind: UnicodeString;
  30404. function _Gettype_: UnicodeString;
  30405. procedure getAsString(const aCallback: TFunctionStringCallback);
  30406. function getAsFile: IJSFile;
  30407. function webkitGetAsEntry: IJSFileSystemEntry;
  30408. property kind: UnicodeString read _Getkind;
  30409. property type_: UnicodeString read _Gettype_;
  30410. end;
  30411. TJSDataTransferItem = class(TJSObject,IJSDataTransferItem)
  30412. Protected
  30413. function _Getkind: UnicodeString;
  30414. function _Gettype_: UnicodeString;
  30415. Public
  30416. procedure getAsString(const aCallback: TFunctionStringCallback); overload;
  30417. function getAsFile: IJSFile; overload;
  30418. function webkitGetAsEntry: IJSFileSystemEntry; overload;
  30419. class function JSClassName: UnicodeString; override;
  30420. class function Cast(const Intf: IJSObject): IJSDataTransferItem;
  30421. property kind: UnicodeString read _Getkind;
  30422. property type_: UnicodeString read _Gettype_;
  30423. end;
  30424. { --------------------------------------------------------------------
  30425. TJSDataTransferItemList
  30426. --------------------------------------------------------------------}
  30427. IJSDataTransferItemList = interface(IJSObject)
  30428. ['{B04F4754-B7BF-3A23-9B62-A66AD068643C}']
  30429. function _Getlength_: Cardinal;
  30430. function GetDefault(aIndex: Cardinal): IJSDataTransferItem;
  30431. function add(const aData: UnicodeString; const aType_: UnicodeString): IJSDataTransferItem;
  30432. function add(aData: IJSFile): IJSDataTransferItem;
  30433. procedure remove(aIndex: Cardinal);
  30434. procedure clear;
  30435. property length_: Cardinal read _Getlength_;
  30436. end;
  30437. TJSDataTransferItemList = class(TJSObject,IJSDataTransferItemList)
  30438. Protected
  30439. function _Getlength_: Cardinal;
  30440. Public
  30441. function GetDefault(aIndex: Cardinal): IJSDataTransferItem; overload;
  30442. function add(const aData: UnicodeString; const aType_: UnicodeString): IJSDataTransferItem; overload;
  30443. function add(aData: IJSFile): IJSDataTransferItem; overload;
  30444. procedure remove(aIndex: Cardinal); overload;
  30445. procedure clear; overload;
  30446. class function JSClassName: UnicodeString; override;
  30447. class function Cast(const Intf: IJSObject): IJSDataTransferItemList;
  30448. property length_: Cardinal read _Getlength_;
  30449. end;
  30450. { --------------------------------------------------------------------
  30451. TJSDeviceAcceleration
  30452. --------------------------------------------------------------------}
  30453. IJSDeviceAcceleration = interface(IJSObject)
  30454. ['{1E4C0FD1-9B4F-31F6-84A1-FA94CBC1FC13}']
  30455. function _Getx: Double;
  30456. function _Gety: Double;
  30457. function _Getz: Double;
  30458. property x: Double read _Getx;
  30459. property y: Double read _Gety;
  30460. property z: Double read _Getz;
  30461. end;
  30462. TJSDeviceAcceleration = class(TJSObject,IJSDeviceAcceleration)
  30463. Protected
  30464. function _Getx: Double;
  30465. function _Gety: Double;
  30466. function _Getz: Double;
  30467. Public
  30468. class function JSClassName: UnicodeString; override;
  30469. class function Cast(const Intf: IJSObject): IJSDeviceAcceleration;
  30470. property x: Double read _Getx;
  30471. property y: Double read _Gety;
  30472. property z: Double read _Getz;
  30473. end;
  30474. { --------------------------------------------------------------------
  30475. TJSDeviceRotationRate
  30476. --------------------------------------------------------------------}
  30477. IJSDeviceRotationRate = interface(IJSObject)
  30478. ['{38D2432B-5325-3A92-8380-848815B67A56}']
  30479. function _Getalpha: Double;
  30480. function _Getbeta: Double;
  30481. function _Getgamma: Double;
  30482. property alpha: Double read _Getalpha;
  30483. property beta: Double read _Getbeta;
  30484. property gamma: Double read _Getgamma;
  30485. end;
  30486. TJSDeviceRotationRate = class(TJSObject,IJSDeviceRotationRate)
  30487. Protected
  30488. function _Getalpha: Double;
  30489. function _Getbeta: Double;
  30490. function _Getgamma: Double;
  30491. Public
  30492. class function JSClassName: UnicodeString; override;
  30493. class function Cast(const Intf: IJSObject): IJSDeviceRotationRate;
  30494. property alpha: Double read _Getalpha;
  30495. property beta: Double read _Getbeta;
  30496. property gamma: Double read _Getgamma;
  30497. end;
  30498. { --------------------------------------------------------------------
  30499. TJSDirectory
  30500. --------------------------------------------------------------------}
  30501. IJSDirectory = interface(IJSObject)
  30502. ['{01C77A7A-F806-37D0-A561-0B4BD2F64A5C}']
  30503. function _Getname: UnicodeString;
  30504. function _Getpath: UnicodeString;
  30505. function getFilesAndDirectories: IJSPromise; // Promise<sequence>
  30506. function getFiles(aRecursiveFlag: Boolean): IJSPromise; // Promise<sequence>
  30507. function getFiles: IJSPromise; // Promise<sequence>
  30508. property name: UnicodeString read _Getname;
  30509. property path: UnicodeString read _Getpath;
  30510. end;
  30511. TJSDirectory = class(TJSObject,IJSDirectory)
  30512. Protected
  30513. function _Getname: UnicodeString;
  30514. function _Getpath: UnicodeString;
  30515. Public
  30516. function getFilesAndDirectories: IJSPromise; overload; // Promise<sequence>
  30517. function getFiles(aRecursiveFlag: Boolean): IJSPromise; overload; // Promise<sequence>
  30518. function getFiles: IJSPromise; overload; // Promise<sequence>
  30519. class function JSClassName: UnicodeString; override;
  30520. class function Cast(const Intf: IJSObject): IJSDirectory;
  30521. property name: UnicodeString read _Getname;
  30522. property path: UnicodeString read _Getpath;
  30523. end;
  30524. { --------------------------------------------------------------------
  30525. TJSWindowProxy
  30526. --------------------------------------------------------------------}
  30527. IJSWindowProxy = interface(IJSObject)
  30528. ['{EEE0FA86-59DA-3E5C-A83D-1A2372542131}']
  30529. end;
  30530. TJSWindowProxy = class(TJSObject,IJSWindowProxy)
  30531. Protected
  30532. Public
  30533. class function JSClassName: UnicodeString; override;
  30534. class function Cast(const Intf: IJSObject): IJSWindowProxy;
  30535. end;
  30536. { --------------------------------------------------------------------
  30537. TJSnsISupports
  30538. --------------------------------------------------------------------}
  30539. IJSnsISupports = interface(IJSObject)
  30540. ['{EEE16FF0-3EAA-398A-903D-1A2372542131}']
  30541. end;
  30542. TJSnsISupports = class(TJSObject,IJSnsISupports)
  30543. Protected
  30544. Public
  30545. class function JSClassName: UnicodeString; override;
  30546. class function Cast(const Intf: IJSObject): IJSnsISupports;
  30547. end;
  30548. { --------------------------------------------------------------------
  30549. TJSURI
  30550. --------------------------------------------------------------------}
  30551. IJSURI = interface(IJSObject)
  30552. ['{677FA928-3D1A-3372-9421-3194B5554269}']
  30553. end;
  30554. TJSURI = class(TJSObject,IJSURI)
  30555. Protected
  30556. Public
  30557. class function JSClassName: UnicodeString; override;
  30558. class function Cast(const Intf: IJSObject): IJSURI;
  30559. end;
  30560. { --------------------------------------------------------------------
  30561. TJSnsIDocShell
  30562. --------------------------------------------------------------------}
  30563. IJSnsIDocShell = interface(IJSObject)
  30564. ['{EEE16FEE-5839-3BB6-B43D-1A2372542131}']
  30565. end;
  30566. TJSnsIDocShell = class(TJSObject,IJSnsIDocShell)
  30567. Protected
  30568. Public
  30569. class function JSClassName: UnicodeString; override;
  30570. class function Cast(const Intf: IJSObject): IJSnsIDocShell;
  30571. end;
  30572. { --------------------------------------------------------------------
  30573. TJSnsILoadGroup
  30574. --------------------------------------------------------------------}
  30575. IJSnsILoadGroup = interface(IJSObject)
  30576. ['{E6D0CC5C-1971-3F00-A220-F0D81AA2A621}']
  30577. end;
  30578. TJSnsILoadGroup = class(TJSObject,IJSnsILoadGroup)
  30579. Protected
  30580. Public
  30581. class function JSClassName: UnicodeString; override;
  30582. class function Cast(const Intf: IJSObject): IJSnsILoadGroup;
  30583. end;
  30584. { --------------------------------------------------------------------
  30585. TJSnsIReferrerInfo
  30586. --------------------------------------------------------------------}
  30587. IJSnsIReferrerInfo = interface(IJSObject)
  30588. ['{AC6D32F7-0AAD-30F2-A5E1-4B03E0B13444}']
  30589. end;
  30590. TJSnsIReferrerInfo = class(TJSObject,IJSnsIReferrerInfo)
  30591. Protected
  30592. Public
  30593. class function JSClassName: UnicodeString; override;
  30594. class function Cast(const Intf: IJSObject): IJSnsIReferrerInfo;
  30595. end;
  30596. { --------------------------------------------------------------------
  30597. TJSnsICookieJarSettings
  30598. --------------------------------------------------------------------}
  30599. IJSnsICookieJarSettings = interface(IJSObject)
  30600. ['{3346BB52-F01F-3C27-81BD-9658712A80F0}']
  30601. end;
  30602. TJSnsICookieJarSettings = class(TJSObject,IJSnsICookieJarSettings)
  30603. Protected
  30604. Public
  30605. class function JSClassName: UnicodeString; override;
  30606. class function Cast(const Intf: IJSObject): IJSnsICookieJarSettings;
  30607. end;
  30608. { --------------------------------------------------------------------
  30609. TJSnsIPermissionDelegateHandler
  30610. --------------------------------------------------------------------}
  30611. IJSnsIPermissionDelegateHandler = interface(IJSObject)
  30612. ['{E64C3B0E-5583-330B-976E-C5C335C10FA8}']
  30613. end;
  30614. TJSnsIPermissionDelegateHandler = class(TJSObject,IJSnsIPermissionDelegateHandler)
  30615. Protected
  30616. Public
  30617. class function JSClassName: UnicodeString; override;
  30618. class function Cast(const Intf: IJSObject): IJSnsIPermissionDelegateHandler;
  30619. end;
  30620. { --------------------------------------------------------------------
  30621. TJSXULCommandDispatcher
  30622. --------------------------------------------------------------------}
  30623. IJSXULCommandDispatcher = interface(IJSObject)
  30624. ['{33454C5E-F00F-3CC4-8CBE-E8980E2260F0}']
  30625. end;
  30626. TJSXULCommandDispatcher = class(TJSObject,IJSXULCommandDispatcher)
  30627. Protected
  30628. Public
  30629. class function JSClassName: UnicodeString; override;
  30630. class function Cast(const Intf: IJSObject): IJSXULCommandDispatcher;
  30631. end;
  30632. { --------------------------------------------------------------------
  30633. TJSDocumentOrShadowRoot
  30634. --------------------------------------------------------------------}
  30635. TJSElementDynArray = IJSArray; // array of Element
  30636. TJSCSSStyleSheetDynArray = IJSArray; // array of CSSStyleSheet
  30637. IJSDocumentOrShadowRoot = interface(IJSObject)
  30638. ['{67400E7D-8AD9-3429-BBA2-725CE9473D68}']
  30639. function _GetactiveElement: IJSElement;
  30640. function _GetstyleSheets: IJSStyleSheetList;
  30641. function _GetpointerLockElement: IJSElement;
  30642. function _GetfullscreenElement: IJSElement;
  30643. function _GetmozFullScreenElement: IJSElement;
  30644. function _GetadoptedStyleSheets: TJSCSSStyleSheetDynArray;
  30645. procedure _SetadoptedStyleSheets(const aValue: TJSCSSStyleSheetDynArray);
  30646. function elementFromPoint(aX: Single; aY: Single): IJSElement;
  30647. function elementsFromPoint(aX: Single; aY: Single): TJSElementDynArray;
  30648. function getAnimations: TJSAnimationDynArray;
  30649. property activeElement: IJSElement read _GetactiveElement;
  30650. property styleSheets: IJSStyleSheetList read _GetstyleSheets;
  30651. property pointerLockElement: IJSElement read _GetpointerLockElement;
  30652. property fullscreenElement: IJSElement read _GetfullscreenElement;
  30653. property mozFullScreenElement: IJSElement read _GetmozFullScreenElement;
  30654. property adoptedStyleSheets: TJSCSSStyleSheetDynArray read _GetadoptedStyleSheets write _SetadoptedStyleSheets;
  30655. end;
  30656. TJSDocumentOrShadowRoot = class(TJSObject,IJSDocumentOrShadowRoot)
  30657. Protected
  30658. function _GetactiveElement: IJSElement;
  30659. function _GetstyleSheets: IJSStyleSheetList;
  30660. function _GetpointerLockElement: IJSElement;
  30661. function _GetfullscreenElement: IJSElement;
  30662. function _GetmozFullScreenElement: IJSElement;
  30663. function _GetadoptedStyleSheets: TJSCSSStyleSheetDynArray;
  30664. procedure _SetadoptedStyleSheets(const aValue: TJSCSSStyleSheetDynArray);
  30665. Public
  30666. function elementFromPoint(aX: Single; aY: Single): IJSElement; overload;
  30667. function elementsFromPoint(aX: Single; aY: Single): TJSElementDynArray; overload;
  30668. function getAnimations: TJSAnimationDynArray; overload;
  30669. class function JSClassName: UnicodeString; override;
  30670. class function Cast(const Intf: IJSObject): IJSDocumentOrShadowRoot;
  30671. property activeElement: IJSElement read _GetactiveElement;
  30672. property styleSheets: IJSStyleSheetList read _GetstyleSheets;
  30673. property pointerLockElement: IJSElement read _GetpointerLockElement;
  30674. property fullscreenElement: IJSElement read _GetfullscreenElement;
  30675. property mozFullScreenElement: IJSElement read _GetmozFullScreenElement;
  30676. property adoptedStyleSheets: TJSCSSStyleSheetDynArray read _GetadoptedStyleSheets write _SetadoptedStyleSheets;
  30677. end;
  30678. { --------------------------------------------------------------------
  30679. TJSStackFrame
  30680. --------------------------------------------------------------------}
  30681. IJSStackFrame = interface(IJSObject)
  30682. ['{F0F4323A-0CF6-3E02-87C0-636E89A48332}']
  30683. end;
  30684. TJSStackFrame = class(TJSObject,IJSStackFrame)
  30685. Protected
  30686. Public
  30687. class function JSClassName: UnicodeString; override;
  30688. class function Cast(const Intf: IJSObject): IJSStackFrame;
  30689. end;
  30690. { --------------------------------------------------------------------
  30691. TJSExceptionMembers
  30692. --------------------------------------------------------------------}
  30693. IJSExceptionMembers = interface(IJSObject)
  30694. ['{B2623B51-6CD8-3AD0-AD66-7B8A6CFFE45F}']
  30695. function _Getresult: Cardinal;
  30696. function _Getfilename: UnicodeString;
  30697. function _GetlineNumber: Cardinal;
  30698. function _GetcolumnNumber: Cardinal;
  30699. function _Getdata: IJSnsISupports;
  30700. function _Getstack: UnicodeString;
  30701. property result: Cardinal read _Getresult;
  30702. property filename: UnicodeString read _Getfilename;
  30703. property lineNumber: Cardinal read _GetlineNumber;
  30704. property columnNumber: Cardinal read _GetcolumnNumber;
  30705. property data: IJSnsISupports read _Getdata;
  30706. property stack: UnicodeString read _Getstack;
  30707. end;
  30708. TJSExceptionMembers = class(TJSObject,IJSExceptionMembers)
  30709. Protected
  30710. function _Getresult: Cardinal;
  30711. function _Getfilename: UnicodeString;
  30712. function _GetlineNumber: Cardinal;
  30713. function _GetcolumnNumber: Cardinal;
  30714. function _Getdata: IJSnsISupports;
  30715. function _Getstack: UnicodeString;
  30716. Public
  30717. class function JSClassName: UnicodeString; override;
  30718. class function Cast(const Intf: IJSObject): IJSExceptionMembers;
  30719. property result: Cardinal read _Getresult;
  30720. property filename: UnicodeString read _Getfilename;
  30721. property lineNumber: Cardinal read _GetlineNumber;
  30722. property columnNumber: Cardinal read _GetcolumnNumber;
  30723. property data: IJSnsISupports read _Getdata;
  30724. property stack: UnicodeString read _Getstack;
  30725. end;
  30726. { --------------------------------------------------------------------
  30727. TJSDOMImplementation
  30728. --------------------------------------------------------------------}
  30729. IJSDOMImplementation = interface(IJSObject)
  30730. ['{3D38DA1F-BC10-3889-894E-706A3B0086C7}']
  30731. function hasFeature: Boolean;
  30732. function createDocumentType(const aQualifiedName: UnicodeString; const aPublicId: UnicodeString; const aSystemId: UnicodeString): IJSDocumentType;
  30733. function createDocument(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString; aDoctype: IJSDocumentType): IJSDocument;
  30734. function createDocument(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString): IJSDocument;
  30735. function createHTMLDocument(const aTitle: UnicodeString): IJSDocument;
  30736. function createHTMLDocument: IJSDocument;
  30737. end;
  30738. TJSDOMImplementation = class(TJSObject,IJSDOMImplementation)
  30739. Protected
  30740. Public
  30741. function hasFeature: Boolean; overload;
  30742. function createDocumentType(const aQualifiedName: UnicodeString; const aPublicId: UnicodeString; const aSystemId: UnicodeString): IJSDocumentType; overload;
  30743. function createDocument(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString; aDoctype: IJSDocumentType): IJSDocument; overload;
  30744. function createDocument(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString): IJSDocument; overload;
  30745. function createHTMLDocument(const aTitle: UnicodeString): IJSDocument; overload;
  30746. function createHTMLDocument: IJSDocument; overload;
  30747. class function JSClassName: UnicodeString; override;
  30748. class function Cast(const Intf: IJSObject): IJSDOMImplementation;
  30749. end;
  30750. { --------------------------------------------------------------------
  30751. TJSDOMMatrixReadOnly
  30752. --------------------------------------------------------------------}
  30753. // Union of UTF8String, sequence, DOMMatrixReadOnly
  30754. TDOMMatrixReadOnly_New_init_Type = Variant;
  30755. IJSDOMMatrixReadOnly = interface(IJSObject)
  30756. ['{AB48E8EF-310D-3404-9782-FC0DEDF0497B}']
  30757. function _Geta: Double;
  30758. function _Getb: Double;
  30759. function _Getc: Double;
  30760. function _Getd: Double;
  30761. function _Gete: Double;
  30762. function _Getf: Double;
  30763. function _Getm11: Double;
  30764. function _Getm12: Double;
  30765. function _Getm13: Double;
  30766. function _Getm14: Double;
  30767. function _Getm21: Double;
  30768. function _Getm22: Double;
  30769. function _Getm23: Double;
  30770. function _Getm24: Double;
  30771. function _Getm31: Double;
  30772. function _Getm32: Double;
  30773. function _Getm33: Double;
  30774. function _Getm34: Double;
  30775. function _Getm41: Double;
  30776. function _Getm42: Double;
  30777. function _Getm43: Double;
  30778. function _Getm44: Double;
  30779. function _Getis2D: Boolean;
  30780. function _GetisIdentity: Boolean;
  30781. function translate(aTx: Double; aTy: Double; aTz: Double): IJSDOMMatrix;
  30782. function translate: IJSDOMMatrix;
  30783. function translate(aTx: Double): IJSDOMMatrix;
  30784. function translate(aTx: Double; aTy: Double): IJSDOMMatrix;
  30785. function scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix;
  30786. function scale: IJSDOMMatrix;
  30787. function scale(aScaleX: Double): IJSDOMMatrix;
  30788. function scale(aScaleX: Double; aScaleY: Double): IJSDOMMatrix;
  30789. function scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double): IJSDOMMatrix;
  30790. function scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double): IJSDOMMatrix;
  30791. function scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix;
  30792. function scaleNonUniform(aScaleX: Double; aScaleY: Double): IJSDOMMatrix;
  30793. function scaleNonUniform: IJSDOMMatrix;
  30794. function scaleNonUniform(aScaleX: Double): IJSDOMMatrix;
  30795. function scale3d(aScale: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix;
  30796. function scale3d: IJSDOMMatrix;
  30797. function scale3d(aScale: Double): IJSDOMMatrix;
  30798. function scale3d(aScale: Double; aOriginX: Double): IJSDOMMatrix;
  30799. function scale3d(aScale: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix;
  30800. function rotate(aRotX: Double; aRotY: Double; aRotZ: Double): IJSDOMMatrix;
  30801. function rotate: IJSDOMMatrix;
  30802. function rotate(aRotX: Double): IJSDOMMatrix;
  30803. function rotate(aRotX: Double; aRotY: Double): IJSDOMMatrix;
  30804. function rotateFromVector(aX: Double; aY: Double): IJSDOMMatrix;
  30805. function rotateFromVector: IJSDOMMatrix;
  30806. function rotateFromVector(aX: Double): IJSDOMMatrix;
  30807. function rotateAxisAngle(aX: Double; aY: Double; aZ: Double; aAngle: Double): IJSDOMMatrix;
  30808. function rotateAxisAngle: IJSDOMMatrix;
  30809. function rotateAxisAngle(aX: Double): IJSDOMMatrix;
  30810. function rotateAxisAngle(aX: Double; aY: Double): IJSDOMMatrix;
  30811. function rotateAxisAngle(aX: Double; aY: Double; aZ: Double): IJSDOMMatrix;
  30812. function skewX(aSx: Double): IJSDOMMatrix;
  30813. function skewX: IJSDOMMatrix;
  30814. function skewY(aSy: Double): IJSDOMMatrix;
  30815. function skewY: IJSDOMMatrix;
  30816. function multiply(const aOther: TJSDOMMatrixInit): IJSDOMMatrix;
  30817. function multiply: IJSDOMMatrix;
  30818. function flipX: IJSDOMMatrix;
  30819. function flipY: IJSDOMMatrix;
  30820. function inverse: IJSDOMMatrix;
  30821. function transformPoint(const aPoint: TJSDOMPointInit): IJSDOMPoint;
  30822. function transformPoint: IJSDOMPoint;
  30823. function toFloat32Array: IJSFloat32Array;
  30824. function toFloat64Array: IJSFloat64Array;
  30825. function toJSON: IJSObject;
  30826. property a: Double read _Geta;
  30827. property b: Double read _Getb;
  30828. property c: Double read _Getc;
  30829. property d: Double read _Getd;
  30830. property e: Double read _Gete;
  30831. property f: Double read _Getf;
  30832. property m11: Double read _Getm11;
  30833. property m12: Double read _Getm12;
  30834. property m13: Double read _Getm13;
  30835. property m14: Double read _Getm14;
  30836. property m21: Double read _Getm21;
  30837. property m22: Double read _Getm22;
  30838. property m23: Double read _Getm23;
  30839. property m24: Double read _Getm24;
  30840. property m31: Double read _Getm31;
  30841. property m32: Double read _Getm32;
  30842. property m33: Double read _Getm33;
  30843. property m34: Double read _Getm34;
  30844. property m41: Double read _Getm41;
  30845. property m42: Double read _Getm42;
  30846. property m43: Double read _Getm43;
  30847. property m44: Double read _Getm44;
  30848. property is2D: Boolean read _Getis2D;
  30849. property isIdentity: Boolean read _GetisIdentity;
  30850. end;
  30851. TJSDOMMatrixReadOnly = class(TJSObject,IJSDOMMatrixReadOnly)
  30852. Protected
  30853. function _Geta: Double;
  30854. function _Getb: Double;
  30855. function _Getc: Double;
  30856. function _Getd: Double;
  30857. function _Gete: Double;
  30858. function _Getf: Double;
  30859. function _Getm11: Double;
  30860. function _Getm12: Double;
  30861. function _Getm13: Double;
  30862. function _Getm14: Double;
  30863. function _Getm21: Double;
  30864. function _Getm22: Double;
  30865. function _Getm23: Double;
  30866. function _Getm24: Double;
  30867. function _Getm31: Double;
  30868. function _Getm32: Double;
  30869. function _Getm33: Double;
  30870. function _Getm34: Double;
  30871. function _Getm41: Double;
  30872. function _Getm42: Double;
  30873. function _Getm43: Double;
  30874. function _Getm44: Double;
  30875. function _Getis2D: Boolean;
  30876. function _GetisIdentity: Boolean;
  30877. Public
  30878. constructor Create(aInit: IJSDOMMatrixReadOnly); overload;
  30879. constructor Create; overload;
  30880. constructor Create(const aInit: TDoubleDynArray); overload;
  30881. constructor Create(const aInit: UTF8String); overload;
  30882. function fromMatrix(const aOther: TJSDOMMatrixInit): IJSDOMMatrixReadOnly; overload;
  30883. function fromMatrix: IJSDOMMatrixReadOnly; overload;
  30884. function fromFloat32Array(aArray32: IJSFloat32Array): IJSDOMMatrixReadOnly; overload;
  30885. function fromFloat64Array(aArray64: IJSFloat64Array): IJSDOMMatrixReadOnly; overload;
  30886. function translate(aTx: Double; aTy: Double; aTz: Double): IJSDOMMatrix; overload;
  30887. function translate: IJSDOMMatrix; overload;
  30888. function translate(aTx: Double): IJSDOMMatrix; overload;
  30889. function translate(aTx: Double; aTy: Double): IJSDOMMatrix; overload;
  30890. function scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix; overload;
  30891. function scale: IJSDOMMatrix; overload;
  30892. function scale(aScaleX: Double): IJSDOMMatrix; overload;
  30893. function scale(aScaleX: Double; aScaleY: Double): IJSDOMMatrix; overload;
  30894. function scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double): IJSDOMMatrix; overload;
  30895. function scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double): IJSDOMMatrix; overload;
  30896. function scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix; overload;
  30897. function scaleNonUniform(aScaleX: Double; aScaleY: Double): IJSDOMMatrix; overload;
  30898. function scaleNonUniform: IJSDOMMatrix; overload;
  30899. function scaleNonUniform(aScaleX: Double): IJSDOMMatrix; overload;
  30900. function scale3d(aScale: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix; overload;
  30901. function scale3d: IJSDOMMatrix; overload;
  30902. function scale3d(aScale: Double): IJSDOMMatrix; overload;
  30903. function scale3d(aScale: Double; aOriginX: Double): IJSDOMMatrix; overload;
  30904. function scale3d(aScale: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix; overload;
  30905. function rotate(aRotX: Double; aRotY: Double; aRotZ: Double): IJSDOMMatrix; overload;
  30906. function rotate: IJSDOMMatrix; overload;
  30907. function rotate(aRotX: Double): IJSDOMMatrix; overload;
  30908. function rotate(aRotX: Double; aRotY: Double): IJSDOMMatrix; overload;
  30909. function rotateFromVector(aX: Double; aY: Double): IJSDOMMatrix; overload;
  30910. function rotateFromVector: IJSDOMMatrix; overload;
  30911. function rotateFromVector(aX: Double): IJSDOMMatrix; overload;
  30912. function rotateAxisAngle(aX: Double; aY: Double; aZ: Double; aAngle: Double): IJSDOMMatrix; overload;
  30913. function rotateAxisAngle: IJSDOMMatrix; overload;
  30914. function rotateAxisAngle(aX: Double): IJSDOMMatrix; overload;
  30915. function rotateAxisAngle(aX: Double; aY: Double): IJSDOMMatrix; overload;
  30916. function rotateAxisAngle(aX: Double; aY: Double; aZ: Double): IJSDOMMatrix; overload;
  30917. function skewX(aSx: Double): IJSDOMMatrix; overload;
  30918. function skewX: IJSDOMMatrix; overload;
  30919. function skewY(aSy: Double): IJSDOMMatrix; overload;
  30920. function skewY: IJSDOMMatrix; overload;
  30921. function multiply(const aOther: TJSDOMMatrixInit): IJSDOMMatrix; overload;
  30922. function multiply: IJSDOMMatrix; overload;
  30923. function flipX: IJSDOMMatrix; overload;
  30924. function flipY: IJSDOMMatrix; overload;
  30925. function inverse: IJSDOMMatrix; overload;
  30926. function transformPoint(const aPoint: TJSDOMPointInit): IJSDOMPoint; overload;
  30927. function transformPoint: IJSDOMPoint; overload;
  30928. function toFloat32Array: IJSFloat32Array; overload;
  30929. function toFloat64Array: IJSFloat64Array; overload;
  30930. function toJSON: IJSObject; overload;
  30931. class function JSClassName: UnicodeString; override;
  30932. class function Cast(const Intf: IJSObject): IJSDOMMatrixReadOnly;
  30933. property a: Double read _Geta;
  30934. property b: Double read _Getb;
  30935. property c: Double read _Getc;
  30936. property d: Double read _Getd;
  30937. property e: Double read _Gete;
  30938. property f: Double read _Getf;
  30939. property m11: Double read _Getm11;
  30940. property m12: Double read _Getm12;
  30941. property m13: Double read _Getm13;
  30942. property m14: Double read _Getm14;
  30943. property m21: Double read _Getm21;
  30944. property m22: Double read _Getm22;
  30945. property m23: Double read _Getm23;
  30946. property m24: Double read _Getm24;
  30947. property m31: Double read _Getm31;
  30948. property m32: Double read _Getm32;
  30949. property m33: Double read _Getm33;
  30950. property m34: Double read _Getm34;
  30951. property m41: Double read _Getm41;
  30952. property m42: Double read _Getm42;
  30953. property m43: Double read _Getm43;
  30954. property m44: Double read _Getm44;
  30955. property is2D: Boolean read _Getis2D;
  30956. property isIdentity: Boolean read _GetisIdentity;
  30957. end;
  30958. { --------------------------------------------------------------------
  30959. TJSInputStream
  30960. --------------------------------------------------------------------}
  30961. IJSInputStream = interface(IJSObject)
  30962. ['{EEDF1D10-7DC3-3FB0-B83D-1A2372542131}']
  30963. end;
  30964. TJSInputStream = class(TJSObject,IJSInputStream)
  30965. Protected
  30966. Public
  30967. class function JSClassName: UnicodeString; override;
  30968. class function Cast(const Intf: IJSObject): IJSInputStream;
  30969. end;
  30970. { --------------------------------------------------------------------
  30971. TJSDOMParser
  30972. --------------------------------------------------------------------}
  30973. IJSDOMParser = interface(IJSObject)
  30974. ['{296ECA4D-DE09-354F-8A1D-1CCB2BB46B68}']
  30975. function parseFromString(const aStr: UnicodeString; aType_: TSupportedType): IJSDocument;
  30976. procedure forceEnableDTD;
  30977. end;
  30978. TJSDOMParser = class(TJSObject,IJSDOMParser)
  30979. Protected
  30980. Public
  30981. constructor Create; overload;
  30982. function parseFromString(const aStr: UnicodeString; aType_: TSupportedType): IJSDocument; overload;
  30983. procedure forceEnableDTD; overload;
  30984. class function JSClassName: UnicodeString; override;
  30985. class function Cast(const Intf: IJSObject): IJSDOMParser;
  30986. end;
  30987. { --------------------------------------------------------------------
  30988. TJSDOMPointReadOnly
  30989. --------------------------------------------------------------------}
  30990. IJSDOMPointReadOnly = interface(IJSObject)
  30991. ['{293AA78B-AF88-3A46-8FD6-85216F158CFB}']
  30992. function _Getx: Double;
  30993. function _Gety: Double;
  30994. function _Getz: Double;
  30995. function _Getw: Double;
  30996. function matrixTransform(const aMatrix: TJSDOMMatrixInit): IJSDOMPoint;
  30997. function matrixTransform: IJSDOMPoint;
  30998. function toJSON: IJSObject;
  30999. property x: Double read _Getx;
  31000. property y: Double read _Gety;
  31001. property z: Double read _Getz;
  31002. property w: Double read _Getw;
  31003. end;
  31004. TJSDOMPointReadOnly = class(TJSObject,IJSDOMPointReadOnly)
  31005. Protected
  31006. function _Getx: Double;
  31007. function _Gety: Double;
  31008. function _Getz: Double;
  31009. function _Getw: Double;
  31010. Public
  31011. constructor Create(aX: Double; aY: Double; aZ: Double; aW: Double); overload;
  31012. constructor Create; overload;
  31013. constructor Create(aX: Double); overload;
  31014. constructor Create(aX: Double; aY: Double); overload;
  31015. constructor Create(aX: Double; aY: Double; aZ: Double); overload;
  31016. function fromPoint(const aOther: TJSDOMPointInit): IJSDOMPointReadOnly; overload;
  31017. function fromPoint: IJSDOMPointReadOnly; overload;
  31018. function matrixTransform(const aMatrix: TJSDOMMatrixInit): IJSDOMPoint; overload;
  31019. function matrixTransform: IJSDOMPoint; overload;
  31020. function toJSON: IJSObject; overload;
  31021. class function JSClassName: UnicodeString; override;
  31022. class function Cast(const Intf: IJSObject): IJSDOMPointReadOnly;
  31023. property x: Double read _Getx;
  31024. property y: Double read _Gety;
  31025. property z: Double read _Getz;
  31026. property w: Double read _Getw;
  31027. end;
  31028. { --------------------------------------------------------------------
  31029. TJSDOMQuad
  31030. --------------------------------------------------------------------}
  31031. IJSDOMQuad = interface(IJSObject)
  31032. ['{2BFD0837-A351-39D9-93AD-2B21D7211656}']
  31033. function _Getp1: IJSDOMPoint;
  31034. function _Getp2: IJSDOMPoint;
  31035. function _Getp3: IJSDOMPoint;
  31036. function _Getp4: IJSDOMPoint;
  31037. function getBounds: IJSDOMRectReadOnly;
  31038. function toJSON: IJSObject;
  31039. property p1: IJSDOMPoint read _Getp1;
  31040. property p2: IJSDOMPoint read _Getp2;
  31041. property p3: IJSDOMPoint read _Getp3;
  31042. property p4: IJSDOMPoint read _Getp4;
  31043. end;
  31044. TJSDOMQuad = class(TJSObject,IJSDOMQuad)
  31045. Protected
  31046. function _Getp1: IJSDOMPoint;
  31047. function _Getp2: IJSDOMPoint;
  31048. function _Getp3: IJSDOMPoint;
  31049. function _Getp4: IJSDOMPoint;
  31050. Public
  31051. constructor Create(const aP1: TJSDOMPointInit; const aP2: TJSDOMPointInit; const aP3: TJSDOMPointInit; const aP4: TJSDOMPointInit); overload;
  31052. constructor Create; overload;
  31053. constructor Create(const aP1: TJSDOMPointInit); overload;
  31054. constructor Create(const aP1: TJSDOMPointInit; const aP2: TJSDOMPointInit); overload;
  31055. constructor Create(const aP1: TJSDOMPointInit; const aP2: TJSDOMPointInit; const aP3: TJSDOMPointInit); overload;
  31056. constructor Create(aRect: IJSDOMRectReadOnly); overload;
  31057. function fromRect(const aOther: TJSDOMRectInit): IJSDOMQuad; overload;
  31058. function fromRect: IJSDOMQuad; overload;
  31059. function fromQuad(const aOther: TJSDOMQuadInit): IJSDOMQuad; overload;
  31060. function fromQuad: IJSDOMQuad; overload;
  31061. function getBounds: IJSDOMRectReadOnly; overload;
  31062. function toJSON: IJSObject; overload;
  31063. class function JSClassName: UnicodeString; override;
  31064. class function Cast(const Intf: IJSObject): IJSDOMQuad;
  31065. property p1: IJSDOMPoint read _Getp1;
  31066. property p2: IJSDOMPoint read _Getp2;
  31067. property p3: IJSDOMPoint read _Getp3;
  31068. property p4: IJSDOMPoint read _Getp4;
  31069. end;
  31070. { --------------------------------------------------------------------
  31071. TJSDOMRectReadOnly
  31072. --------------------------------------------------------------------}
  31073. IJSDOMRectReadOnly = interface(IJSObject)
  31074. ['{1945BAF0-30A9-3E11-8775-7872297173E5}']
  31075. function _Getx: Double;
  31076. function _Gety: Double;
  31077. function _Getwidth: Double;
  31078. function _Getheight: Double;
  31079. function _Gettop: Double;
  31080. function _Getright: Double;
  31081. function _Getbottom: Double;
  31082. function _Getleft: Double;
  31083. function toJSON: IJSObject;
  31084. property x: Double read _Getx;
  31085. property y: Double read _Gety;
  31086. property width: Double read _Getwidth;
  31087. property height: Double read _Getheight;
  31088. property top: Double read _Gettop;
  31089. property right: Double read _Getright;
  31090. property bottom: Double read _Getbottom;
  31091. property left: Double read _Getleft;
  31092. end;
  31093. TJSDOMRectReadOnly = class(TJSObject,IJSDOMRectReadOnly)
  31094. Protected
  31095. function _Getx: Double;
  31096. function _Gety: Double;
  31097. function _Getwidth: Double;
  31098. function _Getheight: Double;
  31099. function _Gettop: Double;
  31100. function _Getright: Double;
  31101. function _Getbottom: Double;
  31102. function _Getleft: Double;
  31103. Public
  31104. constructor Create(aX: Double; aY: Double; aWidth: Double; aHeight: Double); overload;
  31105. constructor Create; overload;
  31106. constructor Create(aX: Double); overload;
  31107. constructor Create(aX: Double; aY: Double); overload;
  31108. constructor Create(aX: Double; aY: Double; aWidth: Double); overload;
  31109. function fromRect(const aOther: TJSDOMRectInit): IJSDOMRectReadOnly; overload;
  31110. function fromRect: IJSDOMRectReadOnly; overload;
  31111. function toJSON: IJSObject; overload;
  31112. class function JSClassName: UnicodeString; override;
  31113. class function Cast(const Intf: IJSObject): IJSDOMRectReadOnly;
  31114. property x: Double read _Getx;
  31115. property y: Double read _Gety;
  31116. property width: Double read _Getwidth;
  31117. property height: Double read _Getheight;
  31118. property top: Double read _Gettop;
  31119. property right: Double read _Getright;
  31120. property bottom: Double read _Getbottom;
  31121. property left: Double read _Getleft;
  31122. end;
  31123. { --------------------------------------------------------------------
  31124. TJSDOMRectList
  31125. --------------------------------------------------------------------}
  31126. IJSDOMRectList = interface(IJSObject)
  31127. ['{75B84489-1878-3D25-BDF6-3619147BDBAD}']
  31128. function _Getlength_: Cardinal;
  31129. function item(aIndex: Cardinal): IJSDOMRect;
  31130. property length_: Cardinal read _Getlength_;
  31131. end;
  31132. TJSDOMRectList = class(TJSObject,IJSDOMRectList)
  31133. Protected
  31134. function _Getlength_: Cardinal;
  31135. Public
  31136. function item(aIndex: Cardinal): IJSDOMRect; overload;
  31137. class function JSClassName: UnicodeString; override;
  31138. class function Cast(const Intf: IJSObject): IJSDOMRectList;
  31139. property length_: Cardinal read _Getlength_;
  31140. end;
  31141. { --------------------------------------------------------------------
  31142. TJSDOMStringList
  31143. --------------------------------------------------------------------}
  31144. IJSDOMStringList = interface(IJSObject)
  31145. ['{D9C88094-BA78-3BF9-B061-C7B4C4FE0321}']
  31146. function _Getlength_: Cardinal;
  31147. function item(aIndex: Cardinal): UnicodeString;
  31148. function contains(const aString_: UnicodeString): Boolean;
  31149. property length_: Cardinal read _Getlength_;
  31150. end;
  31151. TJSDOMStringList = class(TJSObject,IJSDOMStringList)
  31152. Protected
  31153. function _Getlength_: Cardinal;
  31154. Public
  31155. function item(aIndex: Cardinal): UnicodeString; overload;
  31156. function contains(const aString_: UnicodeString): Boolean; overload;
  31157. class function JSClassName: UnicodeString; override;
  31158. class function Cast(const Intf: IJSObject): IJSDOMStringList;
  31159. property length_: Cardinal read _Getlength_;
  31160. end;
  31161. { --------------------------------------------------------------------
  31162. TJSDOMStringMap
  31163. --------------------------------------------------------------------}
  31164. IJSDOMStringMap = interface(IJSObject)
  31165. ['{E6CE1A6D-FFFA-3C3F-9220-F0D81AA2A621}']
  31166. function GetDefault(const aName: UnicodeString): UnicodeString;
  31167. procedure SetDefault(const aName: UnicodeString; const aValue: UnicodeString);
  31168. procedure DOMStringMapType(const aName: UnicodeString);
  31169. end;
  31170. TJSDOMStringMap = class(TJSObject,IJSDOMStringMap)
  31171. Protected
  31172. Public
  31173. function GetDefault(const aName: UnicodeString): UnicodeString; overload;
  31174. procedure SetDefault(const aName: UnicodeString; const aValue: UnicodeString); overload;
  31175. procedure DOMStringMapType(const aName: UnicodeString); overload;
  31176. class function JSClassName: UnicodeString; override;
  31177. class function Cast(const Intf: IJSObject): IJSDOMStringMap;
  31178. end;
  31179. { --------------------------------------------------------------------
  31180. TJSDOMTokenList
  31181. --------------------------------------------------------------------}
  31182. IJSDOMTokenList = interface(IJSObject)
  31183. ['{C204D7F9-C9A7-372E-BF8B-52847EF6813E}']
  31184. function _Getlength_: Cardinal;
  31185. function _Getvalue: UnicodeString;
  31186. function item(aIndex: Cardinal): UnicodeString;
  31187. function contains(const aToken: UnicodeString): Boolean;
  31188. procedure add(const aTokens: UnicodeString){; ToDo:varargs};
  31189. procedure remove(const aTokens: UnicodeString){; ToDo:varargs};
  31190. function replace(const aToken: UnicodeString; const aNewToken: UnicodeString): Boolean;
  31191. function toggle(const aToken: UnicodeString; aForce: Boolean): Boolean;
  31192. function toggle(const aToken: UnicodeString): Boolean;
  31193. function supports(const aToken: UnicodeString): Boolean;
  31194. property length_: Cardinal read _Getlength_;
  31195. property value: UnicodeString read _Getvalue;
  31196. end;
  31197. TJSDOMTokenList = class(TJSObject,IJSDOMTokenList)
  31198. Protected
  31199. function _Getlength_: Cardinal;
  31200. function _Getvalue: UnicodeString;
  31201. Public
  31202. function item(aIndex: Cardinal): UnicodeString; overload;
  31203. function contains(const aToken: UnicodeString): Boolean; overload;
  31204. procedure add(const aTokens: UnicodeString){; ToDo:varargs}; overload;
  31205. procedure remove(const aTokens: UnicodeString){; ToDo:varargs}; overload;
  31206. function replace(const aToken: UnicodeString; const aNewToken: UnicodeString): Boolean; overload;
  31207. function toggle(const aToken: UnicodeString; aForce: Boolean): Boolean; overload;
  31208. function toggle(const aToken: UnicodeString): Boolean; overload;
  31209. function supports(const aToken: UnicodeString): Boolean; overload;
  31210. class function JSClassName: UnicodeString; override;
  31211. class function Cast(const Intf: IJSObject): IJSDOMTokenList;
  31212. property length_: Cardinal read _Getlength_;
  31213. property value: UnicodeString read _Getvalue;
  31214. end;
  31215. { --------------------------------------------------------------------
  31216. TJSnsIScreen
  31217. --------------------------------------------------------------------}
  31218. IJSnsIScreen = interface(IJSObject)
  31219. ['{33832E53-F8FD-30F0-B869-8DD15390C552}']
  31220. end;
  31221. TJSnsIScreen = class(TJSObject,IJSnsIScreen)
  31222. Protected
  31223. Public
  31224. class function JSClassName: UnicodeString; override;
  31225. class function Cast(const Intf: IJSObject): IJSnsIScreen;
  31226. end;
  31227. { --------------------------------------------------------------------
  31228. TJSHTMLOrForeignElement
  31229. --------------------------------------------------------------------}
  31230. IJSHTMLOrForeignElement = interface(IJSObject)
  31231. ['{D1D6276F-F8E6-3C85-BD36-565D3205D0B3}']
  31232. function _Getdataset: IJSDOMStringMap;
  31233. function _Getautofocus: Boolean;
  31234. function _GettabIndex: LongInt;
  31235. procedure _Setautofocus(const aValue: Boolean);
  31236. procedure _SettabIndex(const aValue: LongInt);
  31237. procedure focus(const aOptions: TJSFocusOptions);
  31238. procedure focus;
  31239. procedure blur;
  31240. property dataset: IJSDOMStringMap read _Getdataset;
  31241. property autofocus: Boolean read _Getautofocus write _Setautofocus;
  31242. property tabIndex: LongInt read _GettabIndex write _SettabIndex;
  31243. end;
  31244. TJSHTMLOrForeignElement = class(TJSObject,IJSHTMLOrForeignElement)
  31245. Protected
  31246. function _Getdataset: IJSDOMStringMap;
  31247. function _Getautofocus: Boolean;
  31248. function _GettabIndex: LongInt;
  31249. procedure _Setautofocus(const aValue: Boolean);
  31250. procedure _SettabIndex(const aValue: LongInt);
  31251. Public
  31252. procedure focus(const aOptions: TJSFocusOptions); overload;
  31253. procedure focus; overload;
  31254. procedure blur; overload;
  31255. class function JSClassName: UnicodeString; override;
  31256. class function Cast(const Intf: IJSObject): IJSHTMLOrForeignElement;
  31257. property dataset: IJSDOMStringMap read _Getdataset;
  31258. property autofocus: Boolean read _Getautofocus write _Setautofocus;
  31259. property tabIndex: LongInt read _GettabIndex write _SettabIndex;
  31260. end;
  31261. { --------------------------------------------------------------------
  31262. TJSElementCSSInlineStyle
  31263. --------------------------------------------------------------------}
  31264. IJSElementCSSInlineStyle = interface(IJSObject)
  31265. ['{A68CE660-BA16-3C6A-855A-0663A9D0E1BF}']
  31266. function _Getstyle: IJSCSSStyleDeclaration;
  31267. property style: IJSCSSStyleDeclaration read _Getstyle;
  31268. end;
  31269. TJSElementCSSInlineStyle = class(TJSObject,IJSElementCSSInlineStyle)
  31270. Protected
  31271. function _Getstyle: IJSCSSStyleDeclaration;
  31272. Public
  31273. class function JSClassName: UnicodeString; override;
  31274. class function Cast(const Intf: IJSObject): IJSElementCSSInlineStyle;
  31275. property style: IJSCSSStyleDeclaration read _Getstyle;
  31276. end;
  31277. { --------------------------------------------------------------------
  31278. TJSElementInternals
  31279. --------------------------------------------------------------------}
  31280. // Union of File, USVString, FormData
  31281. TElementInternals_setFormValue_value_Type = Variant;
  31282. // Union of File, USVString, FormData
  31283. TElementInternals_setFormValue_state_Type = Variant;
  31284. IJSElementInternals = interface(IJSObject)
  31285. ['{98DC28CF-DF27-3CC3-9AF2-7A055198724B}']
  31286. function _GetshadowRoot: IJSShadowRoot;
  31287. function _Getform: IJSHTMLFormElement;
  31288. function _GetwillValidate: Boolean;
  31289. function _Getvalidity: IJSValidityState;
  31290. function _GetvalidationMessage: UnicodeString;
  31291. function _Getlabels: IJSNodeList;
  31292. function _Getstates: IJSCustomStateSet;
  31293. function _GetariaActiveDescendantElement: IJSElement;
  31294. function _Getrole: UnicodeString;
  31295. function _GetariaAtomic: UnicodeString;
  31296. function _GetariaAutoComplete: UnicodeString;
  31297. function _GetariaBrailleLabel: UnicodeString;
  31298. function _GetariaBrailleRoleDescription: UnicodeString;
  31299. function _GetariaBusy: UnicodeString;
  31300. function _GetariaChecked: UnicodeString;
  31301. function _GetariaColCount: UnicodeString;
  31302. function _GetariaColIndex: UnicodeString;
  31303. function _GetariaColIndexText: UnicodeString;
  31304. function _GetariaColSpan: UnicodeString;
  31305. function _GetariaCurrent: UnicodeString;
  31306. function _GetariaDescription: UnicodeString;
  31307. function _GetariaDisabled: UnicodeString;
  31308. function _GetariaExpanded: UnicodeString;
  31309. function _GetariaHasPopup: UnicodeString;
  31310. function _GetariaHidden: UnicodeString;
  31311. function _GetariaInvalid: UnicodeString;
  31312. function _GetariaKeyShortcuts: UnicodeString;
  31313. function _GetariaLabel: UnicodeString;
  31314. function _GetariaLevel: UnicodeString;
  31315. function _GetariaLive: UnicodeString;
  31316. function _GetariaModal: UnicodeString;
  31317. function _GetariaMultiLine: UnicodeString;
  31318. function _GetariaMultiSelectable: UnicodeString;
  31319. function _GetariaOrientation: UnicodeString;
  31320. function _GetariaPlaceholder: UnicodeString;
  31321. function _GetariaPosInSet: UnicodeString;
  31322. function _GetariaPressed: UnicodeString;
  31323. function _GetariaReadOnly: UnicodeString;
  31324. function _GetariaRelevant: UnicodeString;
  31325. function _GetariaRequired: UnicodeString;
  31326. function _GetariaRoleDescription: UnicodeString;
  31327. function _GetariaRowCount: UnicodeString;
  31328. function _GetariaRowIndex: UnicodeString;
  31329. function _GetariaRowIndexText: UnicodeString;
  31330. function _GetariaRowSpan: UnicodeString;
  31331. function _GetariaSelected: UnicodeString;
  31332. function _GetariaSetSize: UnicodeString;
  31333. function _GetariaSort: UnicodeString;
  31334. function _GetariaValueMax: UnicodeString;
  31335. function _GetariaValueMin: UnicodeString;
  31336. function _GetariaValueNow: UnicodeString;
  31337. function _GetariaValueText: UnicodeString;
  31338. procedure _SetariaActiveDescendantElement(const aValue: IJSElement);
  31339. procedure _Setrole(const aValue: UnicodeString);
  31340. procedure _SetariaAtomic(const aValue: UnicodeString);
  31341. procedure _SetariaAutoComplete(const aValue: UnicodeString);
  31342. procedure _SetariaBrailleLabel(const aValue: UnicodeString);
  31343. procedure _SetariaBrailleRoleDescription(const aValue: UnicodeString);
  31344. procedure _SetariaBusy(const aValue: UnicodeString);
  31345. procedure _SetariaChecked(const aValue: UnicodeString);
  31346. procedure _SetariaColCount(const aValue: UnicodeString);
  31347. procedure _SetariaColIndex(const aValue: UnicodeString);
  31348. procedure _SetariaColIndexText(const aValue: UnicodeString);
  31349. procedure _SetariaColSpan(const aValue: UnicodeString);
  31350. procedure _SetariaCurrent(const aValue: UnicodeString);
  31351. procedure _SetariaDescription(const aValue: UnicodeString);
  31352. procedure _SetariaDisabled(const aValue: UnicodeString);
  31353. procedure _SetariaExpanded(const aValue: UnicodeString);
  31354. procedure _SetariaHasPopup(const aValue: UnicodeString);
  31355. procedure _SetariaHidden(const aValue: UnicodeString);
  31356. procedure _SetariaInvalid(const aValue: UnicodeString);
  31357. procedure _SetariaKeyShortcuts(const aValue: UnicodeString);
  31358. procedure _SetariaLabel(const aValue: UnicodeString);
  31359. procedure _SetariaLevel(const aValue: UnicodeString);
  31360. procedure _SetariaLive(const aValue: UnicodeString);
  31361. procedure _SetariaModal(const aValue: UnicodeString);
  31362. procedure _SetariaMultiLine(const aValue: UnicodeString);
  31363. procedure _SetariaMultiSelectable(const aValue: UnicodeString);
  31364. procedure _SetariaOrientation(const aValue: UnicodeString);
  31365. procedure _SetariaPlaceholder(const aValue: UnicodeString);
  31366. procedure _SetariaPosInSet(const aValue: UnicodeString);
  31367. procedure _SetariaPressed(const aValue: UnicodeString);
  31368. procedure _SetariaReadOnly(const aValue: UnicodeString);
  31369. procedure _SetariaRelevant(const aValue: UnicodeString);
  31370. procedure _SetariaRequired(const aValue: UnicodeString);
  31371. procedure _SetariaRoleDescription(const aValue: UnicodeString);
  31372. procedure _SetariaRowCount(const aValue: UnicodeString);
  31373. procedure _SetariaRowIndex(const aValue: UnicodeString);
  31374. procedure _SetariaRowIndexText(const aValue: UnicodeString);
  31375. procedure _SetariaRowSpan(const aValue: UnicodeString);
  31376. procedure _SetariaSelected(const aValue: UnicodeString);
  31377. procedure _SetariaSetSize(const aValue: UnicodeString);
  31378. procedure _SetariaSort(const aValue: UnicodeString);
  31379. procedure _SetariaValueMax(const aValue: UnicodeString);
  31380. procedure _SetariaValueMin(const aValue: UnicodeString);
  31381. procedure _SetariaValueNow(const aValue: UnicodeString);
  31382. procedure _SetariaValueText(const aValue: UnicodeString);
  31383. procedure setFormValue(aValue: IJSFile; aState: IJSFile);
  31384. procedure setFormValue(aValue: IJSFormData; aState: IJSFile);
  31385. procedure setFormValue(const aValue: UnicodeString; aState: IJSFile);
  31386. procedure setFormValue(const aValue: UnicodeString);
  31387. procedure setFormValue(aValue: IJSFormData);
  31388. procedure setFormValue(aValue: IJSFile);
  31389. procedure setFormValue(const aValue: UnicodeString; aState: IJSFormData);
  31390. procedure setFormValue(aValue: IJSFormData; aState: IJSFormData);
  31391. procedure setFormValue(aValue: IJSFile; aState: IJSFormData);
  31392. procedure setFormValue(const aValue: UnicodeString; const aState: UnicodeString);
  31393. procedure setFormValue(aValue: IJSFormData; const aState: UnicodeString);
  31394. procedure setFormValue(aValue: IJSFile; const aState: UnicodeString);
  31395. procedure setValidity(const aFlags: TJSValidityStateFlags; const aMessage: UnicodeString; aAnchor: IJSHTMLElement);
  31396. procedure setValidity;
  31397. procedure setValidity(const aFlags: TJSValidityStateFlags);
  31398. procedure setValidity(const aFlags: TJSValidityStateFlags; const aMessage: UnicodeString);
  31399. function checkValidity: Boolean;
  31400. function reportValidity: Boolean;
  31401. property shadowRoot: IJSShadowRoot read _GetshadowRoot;
  31402. property form: IJSHTMLFormElement read _Getform;
  31403. property willValidate: Boolean read _GetwillValidate;
  31404. property validity: IJSValidityState read _Getvalidity;
  31405. property validationMessage: UnicodeString read _GetvalidationMessage;
  31406. property labels: IJSNodeList read _Getlabels;
  31407. property states: IJSCustomStateSet read _Getstates;
  31408. property ariaActiveDescendantElement: IJSElement read _GetariaActiveDescendantElement write _SetariaActiveDescendantElement;
  31409. property role: UnicodeString read _Getrole write _Setrole;
  31410. property ariaAtomic: UnicodeString read _GetariaAtomic write _SetariaAtomic;
  31411. property ariaAutoComplete: UnicodeString read _GetariaAutoComplete write _SetariaAutoComplete;
  31412. property ariaBrailleLabel: UnicodeString read _GetariaBrailleLabel write _SetariaBrailleLabel;
  31413. property ariaBrailleRoleDescription: UnicodeString read _GetariaBrailleRoleDescription write _SetariaBrailleRoleDescription;
  31414. property ariaBusy: UnicodeString read _GetariaBusy write _SetariaBusy;
  31415. property ariaChecked: UnicodeString read _GetariaChecked write _SetariaChecked;
  31416. property ariaColCount: UnicodeString read _GetariaColCount write _SetariaColCount;
  31417. property ariaColIndex: UnicodeString read _GetariaColIndex write _SetariaColIndex;
  31418. property ariaColIndexText: UnicodeString read _GetariaColIndexText write _SetariaColIndexText;
  31419. property ariaColSpan: UnicodeString read _GetariaColSpan write _SetariaColSpan;
  31420. property ariaCurrent: UnicodeString read _GetariaCurrent write _SetariaCurrent;
  31421. property ariaDescription: UnicodeString read _GetariaDescription write _SetariaDescription;
  31422. property ariaDisabled: UnicodeString read _GetariaDisabled write _SetariaDisabled;
  31423. property ariaExpanded: UnicodeString read _GetariaExpanded write _SetariaExpanded;
  31424. property ariaHasPopup: UnicodeString read _GetariaHasPopup write _SetariaHasPopup;
  31425. property ariaHidden: UnicodeString read _GetariaHidden write _SetariaHidden;
  31426. property ariaInvalid: UnicodeString read _GetariaInvalid write _SetariaInvalid;
  31427. property ariaKeyShortcuts: UnicodeString read _GetariaKeyShortcuts write _SetariaKeyShortcuts;
  31428. property ariaLabel: UnicodeString read _GetariaLabel write _SetariaLabel;
  31429. property ariaLevel: UnicodeString read _GetariaLevel write _SetariaLevel;
  31430. property ariaLive: UnicodeString read _GetariaLive write _SetariaLive;
  31431. property ariaModal: UnicodeString read _GetariaModal write _SetariaModal;
  31432. property ariaMultiLine: UnicodeString read _GetariaMultiLine write _SetariaMultiLine;
  31433. property ariaMultiSelectable: UnicodeString read _GetariaMultiSelectable write _SetariaMultiSelectable;
  31434. property ariaOrientation: UnicodeString read _GetariaOrientation write _SetariaOrientation;
  31435. property ariaPlaceholder: UnicodeString read _GetariaPlaceholder write _SetariaPlaceholder;
  31436. property ariaPosInSet: UnicodeString read _GetariaPosInSet write _SetariaPosInSet;
  31437. property ariaPressed: UnicodeString read _GetariaPressed write _SetariaPressed;
  31438. property ariaReadOnly: UnicodeString read _GetariaReadOnly write _SetariaReadOnly;
  31439. property ariaRelevant: UnicodeString read _GetariaRelevant write _SetariaRelevant;
  31440. property ariaRequired: UnicodeString read _GetariaRequired write _SetariaRequired;
  31441. property ariaRoleDescription: UnicodeString read _GetariaRoleDescription write _SetariaRoleDescription;
  31442. property ariaRowCount: UnicodeString read _GetariaRowCount write _SetariaRowCount;
  31443. property ariaRowIndex: UnicodeString read _GetariaRowIndex write _SetariaRowIndex;
  31444. property ariaRowIndexText: UnicodeString read _GetariaRowIndexText write _SetariaRowIndexText;
  31445. property ariaRowSpan: UnicodeString read _GetariaRowSpan write _SetariaRowSpan;
  31446. property ariaSelected: UnicodeString read _GetariaSelected write _SetariaSelected;
  31447. property ariaSetSize: UnicodeString read _GetariaSetSize write _SetariaSetSize;
  31448. property ariaSort: UnicodeString read _GetariaSort write _SetariaSort;
  31449. property ariaValueMax: UnicodeString read _GetariaValueMax write _SetariaValueMax;
  31450. property ariaValueMin: UnicodeString read _GetariaValueMin write _SetariaValueMin;
  31451. property ariaValueNow: UnicodeString read _GetariaValueNow write _SetariaValueNow;
  31452. property ariaValueText: UnicodeString read _GetariaValueText write _SetariaValueText;
  31453. end;
  31454. TJSElementInternals = class(TJSObject,IJSElementInternals)
  31455. Protected
  31456. function _GetshadowRoot: IJSShadowRoot;
  31457. function _Getform: IJSHTMLFormElement;
  31458. function _GetwillValidate: Boolean;
  31459. function _Getvalidity: IJSValidityState;
  31460. function _GetvalidationMessage: UnicodeString;
  31461. function _Getlabels: IJSNodeList;
  31462. function _Getstates: IJSCustomStateSet;
  31463. function _GetariaActiveDescendantElement: IJSElement;
  31464. function _Getrole: UnicodeString;
  31465. function _GetariaAtomic: UnicodeString;
  31466. function _GetariaAutoComplete: UnicodeString;
  31467. function _GetariaBrailleLabel: UnicodeString;
  31468. function _GetariaBrailleRoleDescription: UnicodeString;
  31469. function _GetariaBusy: UnicodeString;
  31470. function _GetariaChecked: UnicodeString;
  31471. function _GetariaColCount: UnicodeString;
  31472. function _GetariaColIndex: UnicodeString;
  31473. function _GetariaColIndexText: UnicodeString;
  31474. function _GetariaColSpan: UnicodeString;
  31475. function _GetariaCurrent: UnicodeString;
  31476. function _GetariaDescription: UnicodeString;
  31477. function _GetariaDisabled: UnicodeString;
  31478. function _GetariaExpanded: UnicodeString;
  31479. function _GetariaHasPopup: UnicodeString;
  31480. function _GetariaHidden: UnicodeString;
  31481. function _GetariaInvalid: UnicodeString;
  31482. function _GetariaKeyShortcuts: UnicodeString;
  31483. function _GetariaLabel: UnicodeString;
  31484. function _GetariaLevel: UnicodeString;
  31485. function _GetariaLive: UnicodeString;
  31486. function _GetariaModal: UnicodeString;
  31487. function _GetariaMultiLine: UnicodeString;
  31488. function _GetariaMultiSelectable: UnicodeString;
  31489. function _GetariaOrientation: UnicodeString;
  31490. function _GetariaPlaceholder: UnicodeString;
  31491. function _GetariaPosInSet: UnicodeString;
  31492. function _GetariaPressed: UnicodeString;
  31493. function _GetariaReadOnly: UnicodeString;
  31494. function _GetariaRelevant: UnicodeString;
  31495. function _GetariaRequired: UnicodeString;
  31496. function _GetariaRoleDescription: UnicodeString;
  31497. function _GetariaRowCount: UnicodeString;
  31498. function _GetariaRowIndex: UnicodeString;
  31499. function _GetariaRowIndexText: UnicodeString;
  31500. function _GetariaRowSpan: UnicodeString;
  31501. function _GetariaSelected: UnicodeString;
  31502. function _GetariaSetSize: UnicodeString;
  31503. function _GetariaSort: UnicodeString;
  31504. function _GetariaValueMax: UnicodeString;
  31505. function _GetariaValueMin: UnicodeString;
  31506. function _GetariaValueNow: UnicodeString;
  31507. function _GetariaValueText: UnicodeString;
  31508. procedure _SetariaActiveDescendantElement(const aValue: IJSElement);
  31509. procedure _Setrole(const aValue: UnicodeString);
  31510. procedure _SetariaAtomic(const aValue: UnicodeString);
  31511. procedure _SetariaAutoComplete(const aValue: UnicodeString);
  31512. procedure _SetariaBrailleLabel(const aValue: UnicodeString);
  31513. procedure _SetariaBrailleRoleDescription(const aValue: UnicodeString);
  31514. procedure _SetariaBusy(const aValue: UnicodeString);
  31515. procedure _SetariaChecked(const aValue: UnicodeString);
  31516. procedure _SetariaColCount(const aValue: UnicodeString);
  31517. procedure _SetariaColIndex(const aValue: UnicodeString);
  31518. procedure _SetariaColIndexText(const aValue: UnicodeString);
  31519. procedure _SetariaColSpan(const aValue: UnicodeString);
  31520. procedure _SetariaCurrent(const aValue: UnicodeString);
  31521. procedure _SetariaDescription(const aValue: UnicodeString);
  31522. procedure _SetariaDisabled(const aValue: UnicodeString);
  31523. procedure _SetariaExpanded(const aValue: UnicodeString);
  31524. procedure _SetariaHasPopup(const aValue: UnicodeString);
  31525. procedure _SetariaHidden(const aValue: UnicodeString);
  31526. procedure _SetariaInvalid(const aValue: UnicodeString);
  31527. procedure _SetariaKeyShortcuts(const aValue: UnicodeString);
  31528. procedure _SetariaLabel(const aValue: UnicodeString);
  31529. procedure _SetariaLevel(const aValue: UnicodeString);
  31530. procedure _SetariaLive(const aValue: UnicodeString);
  31531. procedure _SetariaModal(const aValue: UnicodeString);
  31532. procedure _SetariaMultiLine(const aValue: UnicodeString);
  31533. procedure _SetariaMultiSelectable(const aValue: UnicodeString);
  31534. procedure _SetariaOrientation(const aValue: UnicodeString);
  31535. procedure _SetariaPlaceholder(const aValue: UnicodeString);
  31536. procedure _SetariaPosInSet(const aValue: UnicodeString);
  31537. procedure _SetariaPressed(const aValue: UnicodeString);
  31538. procedure _SetariaReadOnly(const aValue: UnicodeString);
  31539. procedure _SetariaRelevant(const aValue: UnicodeString);
  31540. procedure _SetariaRequired(const aValue: UnicodeString);
  31541. procedure _SetariaRoleDescription(const aValue: UnicodeString);
  31542. procedure _SetariaRowCount(const aValue: UnicodeString);
  31543. procedure _SetariaRowIndex(const aValue: UnicodeString);
  31544. procedure _SetariaRowIndexText(const aValue: UnicodeString);
  31545. procedure _SetariaRowSpan(const aValue: UnicodeString);
  31546. procedure _SetariaSelected(const aValue: UnicodeString);
  31547. procedure _SetariaSetSize(const aValue: UnicodeString);
  31548. procedure _SetariaSort(const aValue: UnicodeString);
  31549. procedure _SetariaValueMax(const aValue: UnicodeString);
  31550. procedure _SetariaValueMin(const aValue: UnicodeString);
  31551. procedure _SetariaValueNow(const aValue: UnicodeString);
  31552. procedure _SetariaValueText(const aValue: UnicodeString);
  31553. Public
  31554. procedure setFormValue(aValue: IJSFile; aState: IJSFile); overload;
  31555. procedure setFormValue(aValue: IJSFormData; aState: IJSFile); overload;
  31556. procedure setFormValue(const aValue: UnicodeString; aState: IJSFile); overload;
  31557. procedure setFormValue(const aValue: UnicodeString); overload;
  31558. procedure setFormValue(aValue: IJSFormData); overload;
  31559. procedure setFormValue(aValue: IJSFile); overload;
  31560. procedure setFormValue(const aValue: UnicodeString; aState: IJSFormData); overload;
  31561. procedure setFormValue(aValue: IJSFormData; aState: IJSFormData); overload;
  31562. procedure setFormValue(aValue: IJSFile; aState: IJSFormData); overload;
  31563. procedure setFormValue(const aValue: UnicodeString; const aState: UnicodeString); overload;
  31564. procedure setFormValue(aValue: IJSFormData; const aState: UnicodeString); overload;
  31565. procedure setFormValue(aValue: IJSFile; const aState: UnicodeString); overload;
  31566. procedure setValidity(const aFlags: TJSValidityStateFlags; const aMessage: UnicodeString; aAnchor: IJSHTMLElement); overload;
  31567. procedure setValidity; overload;
  31568. procedure setValidity(const aFlags: TJSValidityStateFlags); overload;
  31569. procedure setValidity(const aFlags: TJSValidityStateFlags; const aMessage: UnicodeString); overload;
  31570. function checkValidity: Boolean; overload;
  31571. function reportValidity: Boolean; overload;
  31572. class function JSClassName: UnicodeString; override;
  31573. class function Cast(const Intf: IJSObject): IJSElementInternals;
  31574. property shadowRoot: IJSShadowRoot read _GetshadowRoot;
  31575. property form: IJSHTMLFormElement read _Getform;
  31576. property willValidate: Boolean read _GetwillValidate;
  31577. property validity: IJSValidityState read _Getvalidity;
  31578. property validationMessage: UnicodeString read _GetvalidationMessage;
  31579. property labels: IJSNodeList read _Getlabels;
  31580. property states: IJSCustomStateSet read _Getstates;
  31581. property ariaActiveDescendantElement: IJSElement read _GetariaActiveDescendantElement write _SetariaActiveDescendantElement;
  31582. property role: UnicodeString read _Getrole write _Setrole;
  31583. property ariaAtomic: UnicodeString read _GetariaAtomic write _SetariaAtomic;
  31584. property ariaAutoComplete: UnicodeString read _GetariaAutoComplete write _SetariaAutoComplete;
  31585. property ariaBrailleLabel: UnicodeString read _GetariaBrailleLabel write _SetariaBrailleLabel;
  31586. property ariaBrailleRoleDescription: UnicodeString read _GetariaBrailleRoleDescription write _SetariaBrailleRoleDescription;
  31587. property ariaBusy: UnicodeString read _GetariaBusy write _SetariaBusy;
  31588. property ariaChecked: UnicodeString read _GetariaChecked write _SetariaChecked;
  31589. property ariaColCount: UnicodeString read _GetariaColCount write _SetariaColCount;
  31590. property ariaColIndex: UnicodeString read _GetariaColIndex write _SetariaColIndex;
  31591. property ariaColIndexText: UnicodeString read _GetariaColIndexText write _SetariaColIndexText;
  31592. property ariaColSpan: UnicodeString read _GetariaColSpan write _SetariaColSpan;
  31593. property ariaCurrent: UnicodeString read _GetariaCurrent write _SetariaCurrent;
  31594. property ariaDescription: UnicodeString read _GetariaDescription write _SetariaDescription;
  31595. property ariaDisabled: UnicodeString read _GetariaDisabled write _SetariaDisabled;
  31596. property ariaExpanded: UnicodeString read _GetariaExpanded write _SetariaExpanded;
  31597. property ariaHasPopup: UnicodeString read _GetariaHasPopup write _SetariaHasPopup;
  31598. property ariaHidden: UnicodeString read _GetariaHidden write _SetariaHidden;
  31599. property ariaInvalid: UnicodeString read _GetariaInvalid write _SetariaInvalid;
  31600. property ariaKeyShortcuts: UnicodeString read _GetariaKeyShortcuts write _SetariaKeyShortcuts;
  31601. property ariaLabel: UnicodeString read _GetariaLabel write _SetariaLabel;
  31602. property ariaLevel: UnicodeString read _GetariaLevel write _SetariaLevel;
  31603. property ariaLive: UnicodeString read _GetariaLive write _SetariaLive;
  31604. property ariaModal: UnicodeString read _GetariaModal write _SetariaModal;
  31605. property ariaMultiLine: UnicodeString read _GetariaMultiLine write _SetariaMultiLine;
  31606. property ariaMultiSelectable: UnicodeString read _GetariaMultiSelectable write _SetariaMultiSelectable;
  31607. property ariaOrientation: UnicodeString read _GetariaOrientation write _SetariaOrientation;
  31608. property ariaPlaceholder: UnicodeString read _GetariaPlaceholder write _SetariaPlaceholder;
  31609. property ariaPosInSet: UnicodeString read _GetariaPosInSet write _SetariaPosInSet;
  31610. property ariaPressed: UnicodeString read _GetariaPressed write _SetariaPressed;
  31611. property ariaReadOnly: UnicodeString read _GetariaReadOnly write _SetariaReadOnly;
  31612. property ariaRelevant: UnicodeString read _GetariaRelevant write _SetariaRelevant;
  31613. property ariaRequired: UnicodeString read _GetariaRequired write _SetariaRequired;
  31614. property ariaRoleDescription: UnicodeString read _GetariaRoleDescription write _SetariaRoleDescription;
  31615. property ariaRowCount: UnicodeString read _GetariaRowCount write _SetariaRowCount;
  31616. property ariaRowIndex: UnicodeString read _GetariaRowIndex write _SetariaRowIndex;
  31617. property ariaRowIndexText: UnicodeString read _GetariaRowIndexText write _SetariaRowIndexText;
  31618. property ariaRowSpan: UnicodeString read _GetariaRowSpan write _SetariaRowSpan;
  31619. property ariaSelected: UnicodeString read _GetariaSelected write _SetariaSelected;
  31620. property ariaSetSize: UnicodeString read _GetariaSetSize write _SetariaSetSize;
  31621. property ariaSort: UnicodeString read _GetariaSort write _SetariaSort;
  31622. property ariaValueMax: UnicodeString read _GetariaValueMax write _SetariaValueMax;
  31623. property ariaValueMin: UnicodeString read _GetariaValueMin write _SetariaValueMin;
  31624. property ariaValueNow: UnicodeString read _GetariaValueNow write _SetariaValueNow;
  31625. property ariaValueText: UnicodeString read _GetariaValueText write _SetariaValueText;
  31626. end;
  31627. { --------------------------------------------------------------------
  31628. TJSCustomStateSet
  31629. --------------------------------------------------------------------}
  31630. IJSCustomStateSet = interface(IJSObject)
  31631. ['{942E787D-DB07-3065-8730-70EEF01225D0}']
  31632. procedure add(const aState: UnicodeString);
  31633. function delete(const aState: UnicodeString): Boolean;
  31634. procedure clear;
  31635. end;
  31636. TJSCustomStateSet = class(TJSObject,IJSCustomStateSet)
  31637. Protected
  31638. Public
  31639. procedure add(const aState: UnicodeString); overload;
  31640. function delete(const aState: UnicodeString): Boolean; overload;
  31641. procedure clear; overload;
  31642. class function JSClassName: UnicodeString; override;
  31643. class function Cast(const Intf: IJSObject): IJSCustomStateSet;
  31644. end;
  31645. { --------------------------------------------------------------------
  31646. TJSEncodedAudioChunk
  31647. --------------------------------------------------------------------}
  31648. // Union of ArrayBufferView, ArrayBuffer
  31649. TEncodedAudioChunk_copyTo_destination_Type = Variant;
  31650. IJSEncodedAudioChunk = interface(IJSObject)
  31651. ['{4B58FBF0-1495-387D-9F9C-E880C5F54639}']
  31652. function _Gettype_: TEncodedAudioChunkType;
  31653. function _Gettimestamp: Int64;
  31654. function _Getduration: QWord;
  31655. function _GetbyteLength: Cardinal;
  31656. procedure copyTo(aDestination: IJSArrayBuffer);
  31657. procedure copyTo(aDestination: IJSArrayBufferView);
  31658. property type_: TEncodedAudioChunkType read _Gettype_;
  31659. property timestamp: Int64 read _Gettimestamp;
  31660. property duration: QWord read _Getduration;
  31661. property byteLength: Cardinal read _GetbyteLength;
  31662. end;
  31663. TJSEncodedAudioChunk = class(TJSObject,IJSEncodedAudioChunk)
  31664. Protected
  31665. function _Gettype_: TEncodedAudioChunkType;
  31666. function _Gettimestamp: Int64;
  31667. function _Getduration: QWord;
  31668. function _GetbyteLength: Cardinal;
  31669. Public
  31670. constructor Create(const aInit: TJSEncodedAudioChunkInit); overload;
  31671. procedure copyTo(aDestination: IJSArrayBuffer); overload;
  31672. procedure copyTo(aDestination: IJSArrayBufferView); overload;
  31673. class function JSClassName: UnicodeString; override;
  31674. class function Cast(const Intf: IJSObject): IJSEncodedAudioChunk;
  31675. property type_: TEncodedAudioChunkType read _Gettype_;
  31676. property timestamp: Int64 read _Gettimestamp;
  31677. property duration: QWord read _Getduration;
  31678. property byteLength: Cardinal read _GetbyteLength;
  31679. end;
  31680. { --------------------------------------------------------------------
  31681. TJSEncodedVideoChunk
  31682. --------------------------------------------------------------------}
  31683. // Union of ArrayBufferView, ArrayBuffer
  31684. TEncodedVideoChunk_copyTo_destination_Type = Variant;
  31685. IJSEncodedVideoChunk = interface(IJSObject)
  31686. ['{4B58FBF0-1494-30BD-A11C-C880C5F54639}']
  31687. function _Gettype_: TEncodedVideoChunkType;
  31688. function _Gettimestamp: Int64;
  31689. function _Getduration: QWord;
  31690. function _GetbyteLength: Cardinal;
  31691. procedure copyTo(aDestination: IJSArrayBuffer);
  31692. procedure copyTo(aDestination: IJSArrayBufferView);
  31693. property type_: TEncodedVideoChunkType read _Gettype_;
  31694. property timestamp: Int64 read _Gettimestamp;
  31695. property duration: QWord read _Getduration;
  31696. property byteLength: Cardinal read _GetbyteLength;
  31697. end;
  31698. TJSEncodedVideoChunk = class(TJSObject,IJSEncodedVideoChunk)
  31699. Protected
  31700. function _Gettype_: TEncodedVideoChunkType;
  31701. function _Gettimestamp: Int64;
  31702. function _Getduration: QWord;
  31703. function _GetbyteLength: Cardinal;
  31704. Public
  31705. constructor Create(const aInit: TJSEncodedVideoChunkInit); overload;
  31706. procedure copyTo(aDestination: IJSArrayBuffer); overload;
  31707. procedure copyTo(aDestination: IJSArrayBufferView); overload;
  31708. class function JSClassName: UnicodeString; override;
  31709. class function Cast(const Intf: IJSObject): IJSEncodedVideoChunk;
  31710. property type_: TEncodedVideoChunkType read _Gettype_;
  31711. property timestamp: Int64 read _Gettimestamp;
  31712. property duration: QWord read _Getduration;
  31713. property byteLength: Cardinal read _GetbyteLength;
  31714. end;
  31715. { --------------------------------------------------------------------
  31716. TJSEvent
  31717. --------------------------------------------------------------------}
  31718. TJSEventTargetDynArray = IJSArray; // array of EventTarget
  31719. IJSEvent = interface(IJSObject)
  31720. ['{AB32DD1E-5570-35E0-A83F-1CEAEC58476F}']
  31721. function _Gettype_: UnicodeString;
  31722. function _Gettarget: IJSEventTarget;
  31723. function _GetcurrentTarget: IJSEventTarget;
  31724. function _GeteventPhase: Word;
  31725. function _Getbubbles: Boolean;
  31726. function _Getcancelable: Boolean;
  31727. function _GetreturnValue: Boolean;
  31728. function _GetdefaultPrevented: Boolean;
  31729. function _Getcomposed: Boolean;
  31730. function _GetisTrusted: Boolean;
  31731. function _GettimeStamp: TDOMHighResTimeStamp;
  31732. function _GetcancelBubble: Boolean;
  31733. function _GetoriginalTarget: IJSEventTarget;
  31734. function _GetexplicitOriginalTarget: IJSEventTarget;
  31735. procedure _SetreturnValue(const aValue: Boolean);
  31736. procedure _SetcancelBubble(const aValue: Boolean);
  31737. function composedPath: TJSEventTargetDynArray;
  31738. procedure stopPropagation;
  31739. procedure stopImmediatePropagation;
  31740. procedure preventDefault;
  31741. procedure initEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean);
  31742. procedure initEvent(const aType_: UnicodeString);
  31743. procedure initEvent(const aType_: UnicodeString; aBubbles: Boolean);
  31744. property type_: UnicodeString read _Gettype_;
  31745. property target: IJSEventTarget read _Gettarget;
  31746. property currentTarget: IJSEventTarget read _GetcurrentTarget;
  31747. property eventPhase: Word read _GeteventPhase;
  31748. property bubbles: Boolean read _Getbubbles;
  31749. property cancelable: Boolean read _Getcancelable;
  31750. property returnValue: Boolean read _GetreturnValue write _SetreturnValue;
  31751. property defaultPrevented: Boolean read _GetdefaultPrevented;
  31752. property composed: Boolean read _Getcomposed;
  31753. property isTrusted: Boolean read _GetisTrusted;
  31754. property timeStamp: TDOMHighResTimeStamp read _GettimeStamp;
  31755. property cancelBubble: Boolean read _GetcancelBubble write _SetcancelBubble;
  31756. property originalTarget: IJSEventTarget read _GetoriginalTarget;
  31757. property explicitOriginalTarget: IJSEventTarget read _GetexplicitOriginalTarget;
  31758. end;
  31759. TJSEvent = class(TJSObject,IJSEvent)
  31760. Protected
  31761. function _Gettype_: UnicodeString;
  31762. function _Gettarget: IJSEventTarget;
  31763. function _GetcurrentTarget: IJSEventTarget;
  31764. function _GeteventPhase: Word;
  31765. function _Getbubbles: Boolean;
  31766. function _Getcancelable: Boolean;
  31767. function _GetreturnValue: Boolean;
  31768. function _GetdefaultPrevented: Boolean;
  31769. function _Getcomposed: Boolean;
  31770. function _GetisTrusted: Boolean;
  31771. function _GettimeStamp: TDOMHighResTimeStamp;
  31772. function _GetcancelBubble: Boolean;
  31773. function _GetoriginalTarget: IJSEventTarget;
  31774. function _GetexplicitOriginalTarget: IJSEventTarget;
  31775. procedure _SetreturnValue(const aValue: Boolean);
  31776. procedure _SetcancelBubble(const aValue: Boolean);
  31777. Public
  31778. Const
  31779. NONE = 0;
  31780. CAPTURING_PHASE = 1;
  31781. AT_TARGET = 2;
  31782. BUBBLING_PHASE = 3;
  31783. ALT_MASK = $00000001;
  31784. CONTROL_MASK = $00000002;
  31785. SHIFT_MASK = $00000004;
  31786. META_MASK = $00000008;
  31787. Public
  31788. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSEventInit); overload;
  31789. constructor Create(const aType_: UnicodeString); overload;
  31790. function composedPath: TJSEventTargetDynArray; overload;
  31791. procedure stopPropagation; overload;
  31792. procedure stopImmediatePropagation; overload;
  31793. procedure preventDefault; overload;
  31794. procedure initEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean); overload;
  31795. procedure initEvent(const aType_: UnicodeString); overload;
  31796. procedure initEvent(const aType_: UnicodeString; aBubbles: Boolean); overload;
  31797. class function JSClassName: UnicodeString; override;
  31798. class function Cast(const Intf: IJSObject): IJSEvent;
  31799. property type_: UnicodeString read _Gettype_;
  31800. property target: IJSEventTarget read _Gettarget;
  31801. property currentTarget: IJSEventTarget read _GetcurrentTarget;
  31802. property eventPhase: Word read _GeteventPhase;
  31803. property bubbles: Boolean read _Getbubbles;
  31804. property cancelable: Boolean read _Getcancelable;
  31805. property returnValue: Boolean read _GetreturnValue write _SetreturnValue;
  31806. property defaultPrevented: Boolean read _GetdefaultPrevented;
  31807. property composed: Boolean read _Getcomposed;
  31808. property isTrusted: Boolean read _GetisTrusted;
  31809. property timeStamp: TDOMHighResTimeStamp read _GettimeStamp;
  31810. property cancelBubble: Boolean read _GetcancelBubble write _SetcancelBubble;
  31811. property originalTarget: IJSEventTarget read _GetoriginalTarget;
  31812. property explicitOriginalTarget: IJSEventTarget read _GetexplicitOriginalTarget;
  31813. end;
  31814. { --------------------------------------------------------------------
  31815. TJSGlobalEventHandlers
  31816. --------------------------------------------------------------------}
  31817. IJSGlobalEventHandlers = interface(IJSObject)
  31818. ['{7CE4AF2C-6DAB-3CC2-B60A-AC73A9AC5FD8}']
  31819. function _Getonabort: TEventHandler;
  31820. function _Getonblur: TEventHandler;
  31821. function _Getonfocus: TEventHandler;
  31822. function _Getoncancel: TEventHandler;
  31823. function _Getonauxclick: TEventHandler;
  31824. function _Getonbeforeinput: TEventHandler;
  31825. function _Getonbeforetoggle: TEventHandler;
  31826. function _Getoncanplay: TEventHandler;
  31827. function _Getoncanplaythrough: TEventHandler;
  31828. function _Getonchange: TEventHandler;
  31829. function _Getonclick: TEventHandler;
  31830. function _Getonclose: TEventHandler;
  31831. function _Getoncontextlost: TEventHandler;
  31832. function _Getoncontextmenu: TEventHandler;
  31833. function _Getoncontextrestored: TEventHandler;
  31834. function _Getoncopy: TEventHandler;
  31835. function _Getoncuechange: TEventHandler;
  31836. function _Getoncut: TEventHandler;
  31837. function _Getondblclick: TEventHandler;
  31838. function _Getondrag: TEventHandler;
  31839. function _Getondragend: TEventHandler;
  31840. function _Getondragenter: TEventHandler;
  31841. function _Getondragexit: TEventHandler;
  31842. function _Getondragleave: TEventHandler;
  31843. function _Getondragover: TEventHandler;
  31844. function _Getondragstart: TEventHandler;
  31845. function _Getondrop: TEventHandler;
  31846. function _Getondurationchange: TEventHandler;
  31847. function _Getonemptied: TEventHandler;
  31848. function _Getonended: TEventHandler;
  31849. function _Getonformdata: TEventHandler;
  31850. function _Getoninput: TEventHandler;
  31851. function _Getoninvalid: TEventHandler;
  31852. function _Getonkeydown: TEventHandler;
  31853. function _Getonkeypress: TEventHandler;
  31854. function _Getonkeyup: TEventHandler;
  31855. function _Getonload: TEventHandler;
  31856. function _Getonloadeddata: TEventHandler;
  31857. function _Getonloadedmetadata: TEventHandler;
  31858. function _Getonloadstart: TEventHandler;
  31859. function _Getonmousedown: TEventHandler;
  31860. function _Getonmouseenter: TEventHandler;
  31861. function _Getonmouseleave: TEventHandler;
  31862. function _Getonmousemove: TEventHandler;
  31863. function _Getonmouseout: TEventHandler;
  31864. function _Getonmouseover: TEventHandler;
  31865. function _Getonmouseup: TEventHandler;
  31866. function _Getonwheel: TEventHandler;
  31867. function _Getonpaste: TEventHandler;
  31868. function _Getonpause: TEventHandler;
  31869. function _Getonplay: TEventHandler;
  31870. function _Getonplaying: TEventHandler;
  31871. function _Getonprogress: TEventHandler;
  31872. function _Getonratechange: TEventHandler;
  31873. function _Getonreset: TEventHandler;
  31874. function _Getonresize: TEventHandler;
  31875. function _Getonscroll: TEventHandler;
  31876. function _Getonscrollend: TEventHandler;
  31877. function _Getonsecuritypolicyviolation: TEventHandler;
  31878. function _Getonseeked: TEventHandler;
  31879. function _Getonseeking: TEventHandler;
  31880. function _Getonselect: TEventHandler;
  31881. function _Getonslotchange: TEventHandler;
  31882. function _Getonstalled: TEventHandler;
  31883. function _Getonsubmit: TEventHandler;
  31884. function _Getonsuspend: TEventHandler;
  31885. function _Getontimeupdate: TEventHandler;
  31886. function _Getonvolumechange: TEventHandler;
  31887. function _Getonwaiting: TEventHandler;
  31888. function _Getonselectstart: TEventHandler;
  31889. function _Getonselectionchange: TEventHandler;
  31890. function _Getontoggle: TEventHandler;
  31891. function _Getonpointercancel: TEventHandler;
  31892. function _Getonpointerdown: TEventHandler;
  31893. function _Getonpointerup: TEventHandler;
  31894. function _Getonpointermove: TEventHandler;
  31895. function _Getonpointerout: TEventHandler;
  31896. function _Getonpointerover: TEventHandler;
  31897. function _Getonpointerenter: TEventHandler;
  31898. function _Getonpointerleave: TEventHandler;
  31899. function _Getongotpointercapture: TEventHandler;
  31900. function _Getonlostpointercapture: TEventHandler;
  31901. function _Getonmozfullscreenchange: TEventHandler;
  31902. function _Getonmozfullscreenerror: TEventHandler;
  31903. function _Getonanimationcancel: TEventHandler;
  31904. function _Getonanimationend: TEventHandler;
  31905. function _Getonanimationiteration: TEventHandler;
  31906. function _Getonanimationstart: TEventHandler;
  31907. function _Getontransitioncancel: TEventHandler;
  31908. function _Getontransitionend: TEventHandler;
  31909. function _Getontransitionrun: TEventHandler;
  31910. function _Getontransitionstart: TEventHandler;
  31911. function _Getonwebkitanimationend: TEventHandler;
  31912. function _Getonwebkitanimationiteration: TEventHandler;
  31913. function _Getonwebkitanimationstart: TEventHandler;
  31914. function _Getonwebkittransitionend: TEventHandler;
  31915. procedure _Setonabort(const aValue: TEventHandler);
  31916. procedure _Setonblur(const aValue: TEventHandler);
  31917. procedure _Setonfocus(const aValue: TEventHandler);
  31918. procedure _Setoncancel(const aValue: TEventHandler);
  31919. procedure _Setonauxclick(const aValue: TEventHandler);
  31920. procedure _Setonbeforeinput(const aValue: TEventHandler);
  31921. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  31922. procedure _Setoncanplay(const aValue: TEventHandler);
  31923. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  31924. procedure _Setonchange(const aValue: TEventHandler);
  31925. procedure _Setonclick(const aValue: TEventHandler);
  31926. procedure _Setonclose(const aValue: TEventHandler);
  31927. procedure _Setoncontextlost(const aValue: TEventHandler);
  31928. procedure _Setoncontextmenu(const aValue: TEventHandler);
  31929. procedure _Setoncontextrestored(const aValue: TEventHandler);
  31930. procedure _Setoncopy(const aValue: TEventHandler);
  31931. procedure _Setoncuechange(const aValue: TEventHandler);
  31932. procedure _Setoncut(const aValue: TEventHandler);
  31933. procedure _Setondblclick(const aValue: TEventHandler);
  31934. procedure _Setondrag(const aValue: TEventHandler);
  31935. procedure _Setondragend(const aValue: TEventHandler);
  31936. procedure _Setondragenter(const aValue: TEventHandler);
  31937. procedure _Setondragexit(const aValue: TEventHandler);
  31938. procedure _Setondragleave(const aValue: TEventHandler);
  31939. procedure _Setondragover(const aValue: TEventHandler);
  31940. procedure _Setondragstart(const aValue: TEventHandler);
  31941. procedure _Setondrop(const aValue: TEventHandler);
  31942. procedure _Setondurationchange(const aValue: TEventHandler);
  31943. procedure _Setonemptied(const aValue: TEventHandler);
  31944. procedure _Setonended(const aValue: TEventHandler);
  31945. procedure _Setonformdata(const aValue: TEventHandler);
  31946. procedure _Setoninput(const aValue: TEventHandler);
  31947. procedure _Setoninvalid(const aValue: TEventHandler);
  31948. procedure _Setonkeydown(const aValue: TEventHandler);
  31949. procedure _Setonkeypress(const aValue: TEventHandler);
  31950. procedure _Setonkeyup(const aValue: TEventHandler);
  31951. procedure _Setonload(const aValue: TEventHandler);
  31952. procedure _Setonloadeddata(const aValue: TEventHandler);
  31953. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  31954. procedure _Setonloadstart(const aValue: TEventHandler);
  31955. procedure _Setonmousedown(const aValue: TEventHandler);
  31956. procedure _Setonmouseenter(const aValue: TEventHandler);
  31957. procedure _Setonmouseleave(const aValue: TEventHandler);
  31958. procedure _Setonmousemove(const aValue: TEventHandler);
  31959. procedure _Setonmouseout(const aValue: TEventHandler);
  31960. procedure _Setonmouseover(const aValue: TEventHandler);
  31961. procedure _Setonmouseup(const aValue: TEventHandler);
  31962. procedure _Setonwheel(const aValue: TEventHandler);
  31963. procedure _Setonpaste(const aValue: TEventHandler);
  31964. procedure _Setonpause(const aValue: TEventHandler);
  31965. procedure _Setonplay(const aValue: TEventHandler);
  31966. procedure _Setonplaying(const aValue: TEventHandler);
  31967. procedure _Setonprogress(const aValue: TEventHandler);
  31968. procedure _Setonratechange(const aValue: TEventHandler);
  31969. procedure _Setonreset(const aValue: TEventHandler);
  31970. procedure _Setonresize(const aValue: TEventHandler);
  31971. procedure _Setonscroll(const aValue: TEventHandler);
  31972. procedure _Setonscrollend(const aValue: TEventHandler);
  31973. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  31974. procedure _Setonseeked(const aValue: TEventHandler);
  31975. procedure _Setonseeking(const aValue: TEventHandler);
  31976. procedure _Setonselect(const aValue: TEventHandler);
  31977. procedure _Setonslotchange(const aValue: TEventHandler);
  31978. procedure _Setonstalled(const aValue: TEventHandler);
  31979. procedure _Setonsubmit(const aValue: TEventHandler);
  31980. procedure _Setonsuspend(const aValue: TEventHandler);
  31981. procedure _Setontimeupdate(const aValue: TEventHandler);
  31982. procedure _Setonvolumechange(const aValue: TEventHandler);
  31983. procedure _Setonwaiting(const aValue: TEventHandler);
  31984. procedure _Setonselectstart(const aValue: TEventHandler);
  31985. procedure _Setonselectionchange(const aValue: TEventHandler);
  31986. procedure _Setontoggle(const aValue: TEventHandler);
  31987. procedure _Setonpointercancel(const aValue: TEventHandler);
  31988. procedure _Setonpointerdown(const aValue: TEventHandler);
  31989. procedure _Setonpointerup(const aValue: TEventHandler);
  31990. procedure _Setonpointermove(const aValue: TEventHandler);
  31991. procedure _Setonpointerout(const aValue: TEventHandler);
  31992. procedure _Setonpointerover(const aValue: TEventHandler);
  31993. procedure _Setonpointerenter(const aValue: TEventHandler);
  31994. procedure _Setonpointerleave(const aValue: TEventHandler);
  31995. procedure _Setongotpointercapture(const aValue: TEventHandler);
  31996. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  31997. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  31998. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  31999. procedure _Setonanimationcancel(const aValue: TEventHandler);
  32000. procedure _Setonanimationend(const aValue: TEventHandler);
  32001. procedure _Setonanimationiteration(const aValue: TEventHandler);
  32002. procedure _Setonanimationstart(const aValue: TEventHandler);
  32003. procedure _Setontransitioncancel(const aValue: TEventHandler);
  32004. procedure _Setontransitionend(const aValue: TEventHandler);
  32005. procedure _Setontransitionrun(const aValue: TEventHandler);
  32006. procedure _Setontransitionstart(const aValue: TEventHandler);
  32007. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  32008. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  32009. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  32010. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  32011. property onabort: TEventHandler read _Getonabort write _Setonabort;
  32012. property onblur: TEventHandler read _Getonblur write _Setonblur;
  32013. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  32014. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  32015. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  32016. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  32017. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  32018. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  32019. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  32020. property onchange: TEventHandler read _Getonchange write _Setonchange;
  32021. property onclick: TEventHandler read _Getonclick write _Setonclick;
  32022. property onclose: TEventHandler read _Getonclose write _Setonclose;
  32023. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  32024. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  32025. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  32026. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  32027. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  32028. property oncut: TEventHandler read _Getoncut write _Setoncut;
  32029. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  32030. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  32031. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  32032. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  32033. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  32034. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  32035. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  32036. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  32037. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  32038. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  32039. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  32040. property onended: TEventHandler read _Getonended write _Setonended;
  32041. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  32042. property oninput: TEventHandler read _Getoninput write _Setoninput;
  32043. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  32044. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  32045. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  32046. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  32047. property onload: TEventHandler read _Getonload write _Setonload;
  32048. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  32049. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  32050. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  32051. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  32052. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  32053. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  32054. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  32055. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  32056. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  32057. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  32058. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  32059. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  32060. property onpause: TEventHandler read _Getonpause write _Setonpause;
  32061. property onplay: TEventHandler read _Getonplay write _Setonplay;
  32062. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  32063. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  32064. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  32065. property onreset: TEventHandler read _Getonreset write _Setonreset;
  32066. property onresize: TEventHandler read _Getonresize write _Setonresize;
  32067. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  32068. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  32069. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  32070. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  32071. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  32072. property onselect: TEventHandler read _Getonselect write _Setonselect;
  32073. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  32074. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  32075. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  32076. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  32077. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  32078. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  32079. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  32080. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  32081. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  32082. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  32083. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  32084. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  32085. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  32086. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  32087. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  32088. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  32089. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  32090. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  32091. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  32092. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  32093. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  32094. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  32095. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  32096. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  32097. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  32098. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  32099. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  32100. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  32101. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  32102. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  32103. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  32104. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  32105. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  32106. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  32107. end;
  32108. TJSGlobalEventHandlers = class(TJSObject,IJSGlobalEventHandlers)
  32109. Protected
  32110. function _Getonabort: TEventHandler;
  32111. function _Getonblur: TEventHandler;
  32112. function _Getonfocus: TEventHandler;
  32113. function _Getoncancel: TEventHandler;
  32114. function _Getonauxclick: TEventHandler;
  32115. function _Getonbeforeinput: TEventHandler;
  32116. function _Getonbeforetoggle: TEventHandler;
  32117. function _Getoncanplay: TEventHandler;
  32118. function _Getoncanplaythrough: TEventHandler;
  32119. function _Getonchange: TEventHandler;
  32120. function _Getonclick: TEventHandler;
  32121. function _Getonclose: TEventHandler;
  32122. function _Getoncontextlost: TEventHandler;
  32123. function _Getoncontextmenu: TEventHandler;
  32124. function _Getoncontextrestored: TEventHandler;
  32125. function _Getoncopy: TEventHandler;
  32126. function _Getoncuechange: TEventHandler;
  32127. function _Getoncut: TEventHandler;
  32128. function _Getondblclick: TEventHandler;
  32129. function _Getondrag: TEventHandler;
  32130. function _Getondragend: TEventHandler;
  32131. function _Getondragenter: TEventHandler;
  32132. function _Getondragexit: TEventHandler;
  32133. function _Getondragleave: TEventHandler;
  32134. function _Getondragover: TEventHandler;
  32135. function _Getondragstart: TEventHandler;
  32136. function _Getondrop: TEventHandler;
  32137. function _Getondurationchange: TEventHandler;
  32138. function _Getonemptied: TEventHandler;
  32139. function _Getonended: TEventHandler;
  32140. function _Getonformdata: TEventHandler;
  32141. function _Getoninput: TEventHandler;
  32142. function _Getoninvalid: TEventHandler;
  32143. function _Getonkeydown: TEventHandler;
  32144. function _Getonkeypress: TEventHandler;
  32145. function _Getonkeyup: TEventHandler;
  32146. function _Getonload: TEventHandler;
  32147. function _Getonloadeddata: TEventHandler;
  32148. function _Getonloadedmetadata: TEventHandler;
  32149. function _Getonloadstart: TEventHandler;
  32150. function _Getonmousedown: TEventHandler;
  32151. function _Getonmouseenter: TEventHandler;
  32152. function _Getonmouseleave: TEventHandler;
  32153. function _Getonmousemove: TEventHandler;
  32154. function _Getonmouseout: TEventHandler;
  32155. function _Getonmouseover: TEventHandler;
  32156. function _Getonmouseup: TEventHandler;
  32157. function _Getonwheel: TEventHandler;
  32158. function _Getonpaste: TEventHandler;
  32159. function _Getonpause: TEventHandler;
  32160. function _Getonplay: TEventHandler;
  32161. function _Getonplaying: TEventHandler;
  32162. function _Getonprogress: TEventHandler;
  32163. function _Getonratechange: TEventHandler;
  32164. function _Getonreset: TEventHandler;
  32165. function _Getonresize: TEventHandler;
  32166. function _Getonscroll: TEventHandler;
  32167. function _Getonscrollend: TEventHandler;
  32168. function _Getonsecuritypolicyviolation: TEventHandler;
  32169. function _Getonseeked: TEventHandler;
  32170. function _Getonseeking: TEventHandler;
  32171. function _Getonselect: TEventHandler;
  32172. function _Getonslotchange: TEventHandler;
  32173. function _Getonstalled: TEventHandler;
  32174. function _Getonsubmit: TEventHandler;
  32175. function _Getonsuspend: TEventHandler;
  32176. function _Getontimeupdate: TEventHandler;
  32177. function _Getonvolumechange: TEventHandler;
  32178. function _Getonwaiting: TEventHandler;
  32179. function _Getonselectstart: TEventHandler;
  32180. function _Getonselectionchange: TEventHandler;
  32181. function _Getontoggle: TEventHandler;
  32182. function _Getonpointercancel: TEventHandler;
  32183. function _Getonpointerdown: TEventHandler;
  32184. function _Getonpointerup: TEventHandler;
  32185. function _Getonpointermove: TEventHandler;
  32186. function _Getonpointerout: TEventHandler;
  32187. function _Getonpointerover: TEventHandler;
  32188. function _Getonpointerenter: TEventHandler;
  32189. function _Getonpointerleave: TEventHandler;
  32190. function _Getongotpointercapture: TEventHandler;
  32191. function _Getonlostpointercapture: TEventHandler;
  32192. function _Getonmozfullscreenchange: TEventHandler;
  32193. function _Getonmozfullscreenerror: TEventHandler;
  32194. function _Getonanimationcancel: TEventHandler;
  32195. function _Getonanimationend: TEventHandler;
  32196. function _Getonanimationiteration: TEventHandler;
  32197. function _Getonanimationstart: TEventHandler;
  32198. function _Getontransitioncancel: TEventHandler;
  32199. function _Getontransitionend: TEventHandler;
  32200. function _Getontransitionrun: TEventHandler;
  32201. function _Getontransitionstart: TEventHandler;
  32202. function _Getonwebkitanimationend: TEventHandler;
  32203. function _Getonwebkitanimationiteration: TEventHandler;
  32204. function _Getonwebkitanimationstart: TEventHandler;
  32205. function _Getonwebkittransitionend: TEventHandler;
  32206. procedure _Setonabort(const aValue: TEventHandler);
  32207. procedure _Setonblur(const aValue: TEventHandler);
  32208. procedure _Setonfocus(const aValue: TEventHandler);
  32209. procedure _Setoncancel(const aValue: TEventHandler);
  32210. procedure _Setonauxclick(const aValue: TEventHandler);
  32211. procedure _Setonbeforeinput(const aValue: TEventHandler);
  32212. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  32213. procedure _Setoncanplay(const aValue: TEventHandler);
  32214. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  32215. procedure _Setonchange(const aValue: TEventHandler);
  32216. procedure _Setonclick(const aValue: TEventHandler);
  32217. procedure _Setonclose(const aValue: TEventHandler);
  32218. procedure _Setoncontextlost(const aValue: TEventHandler);
  32219. procedure _Setoncontextmenu(const aValue: TEventHandler);
  32220. procedure _Setoncontextrestored(const aValue: TEventHandler);
  32221. procedure _Setoncopy(const aValue: TEventHandler);
  32222. procedure _Setoncuechange(const aValue: TEventHandler);
  32223. procedure _Setoncut(const aValue: TEventHandler);
  32224. procedure _Setondblclick(const aValue: TEventHandler);
  32225. procedure _Setondrag(const aValue: TEventHandler);
  32226. procedure _Setondragend(const aValue: TEventHandler);
  32227. procedure _Setondragenter(const aValue: TEventHandler);
  32228. procedure _Setondragexit(const aValue: TEventHandler);
  32229. procedure _Setondragleave(const aValue: TEventHandler);
  32230. procedure _Setondragover(const aValue: TEventHandler);
  32231. procedure _Setondragstart(const aValue: TEventHandler);
  32232. procedure _Setondrop(const aValue: TEventHandler);
  32233. procedure _Setondurationchange(const aValue: TEventHandler);
  32234. procedure _Setonemptied(const aValue: TEventHandler);
  32235. procedure _Setonended(const aValue: TEventHandler);
  32236. procedure _Setonformdata(const aValue: TEventHandler);
  32237. procedure _Setoninput(const aValue: TEventHandler);
  32238. procedure _Setoninvalid(const aValue: TEventHandler);
  32239. procedure _Setonkeydown(const aValue: TEventHandler);
  32240. procedure _Setonkeypress(const aValue: TEventHandler);
  32241. procedure _Setonkeyup(const aValue: TEventHandler);
  32242. procedure _Setonload(const aValue: TEventHandler);
  32243. procedure _Setonloadeddata(const aValue: TEventHandler);
  32244. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  32245. procedure _Setonloadstart(const aValue: TEventHandler);
  32246. procedure _Setonmousedown(const aValue: TEventHandler);
  32247. procedure _Setonmouseenter(const aValue: TEventHandler);
  32248. procedure _Setonmouseleave(const aValue: TEventHandler);
  32249. procedure _Setonmousemove(const aValue: TEventHandler);
  32250. procedure _Setonmouseout(const aValue: TEventHandler);
  32251. procedure _Setonmouseover(const aValue: TEventHandler);
  32252. procedure _Setonmouseup(const aValue: TEventHandler);
  32253. procedure _Setonwheel(const aValue: TEventHandler);
  32254. procedure _Setonpaste(const aValue: TEventHandler);
  32255. procedure _Setonpause(const aValue: TEventHandler);
  32256. procedure _Setonplay(const aValue: TEventHandler);
  32257. procedure _Setonplaying(const aValue: TEventHandler);
  32258. procedure _Setonprogress(const aValue: TEventHandler);
  32259. procedure _Setonratechange(const aValue: TEventHandler);
  32260. procedure _Setonreset(const aValue: TEventHandler);
  32261. procedure _Setonresize(const aValue: TEventHandler);
  32262. procedure _Setonscroll(const aValue: TEventHandler);
  32263. procedure _Setonscrollend(const aValue: TEventHandler);
  32264. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  32265. procedure _Setonseeked(const aValue: TEventHandler);
  32266. procedure _Setonseeking(const aValue: TEventHandler);
  32267. procedure _Setonselect(const aValue: TEventHandler);
  32268. procedure _Setonslotchange(const aValue: TEventHandler);
  32269. procedure _Setonstalled(const aValue: TEventHandler);
  32270. procedure _Setonsubmit(const aValue: TEventHandler);
  32271. procedure _Setonsuspend(const aValue: TEventHandler);
  32272. procedure _Setontimeupdate(const aValue: TEventHandler);
  32273. procedure _Setonvolumechange(const aValue: TEventHandler);
  32274. procedure _Setonwaiting(const aValue: TEventHandler);
  32275. procedure _Setonselectstart(const aValue: TEventHandler);
  32276. procedure _Setonselectionchange(const aValue: TEventHandler);
  32277. procedure _Setontoggle(const aValue: TEventHandler);
  32278. procedure _Setonpointercancel(const aValue: TEventHandler);
  32279. procedure _Setonpointerdown(const aValue: TEventHandler);
  32280. procedure _Setonpointerup(const aValue: TEventHandler);
  32281. procedure _Setonpointermove(const aValue: TEventHandler);
  32282. procedure _Setonpointerout(const aValue: TEventHandler);
  32283. procedure _Setonpointerover(const aValue: TEventHandler);
  32284. procedure _Setonpointerenter(const aValue: TEventHandler);
  32285. procedure _Setonpointerleave(const aValue: TEventHandler);
  32286. procedure _Setongotpointercapture(const aValue: TEventHandler);
  32287. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  32288. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  32289. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  32290. procedure _Setonanimationcancel(const aValue: TEventHandler);
  32291. procedure _Setonanimationend(const aValue: TEventHandler);
  32292. procedure _Setonanimationiteration(const aValue: TEventHandler);
  32293. procedure _Setonanimationstart(const aValue: TEventHandler);
  32294. procedure _Setontransitioncancel(const aValue: TEventHandler);
  32295. procedure _Setontransitionend(const aValue: TEventHandler);
  32296. procedure _Setontransitionrun(const aValue: TEventHandler);
  32297. procedure _Setontransitionstart(const aValue: TEventHandler);
  32298. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  32299. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  32300. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  32301. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  32302. Public
  32303. class function JSClassName: UnicodeString; override;
  32304. class function Cast(const Intf: IJSObject): IJSGlobalEventHandlers;
  32305. property onabort: TEventHandler read _Getonabort write _Setonabort;
  32306. property onblur: TEventHandler read _Getonblur write _Setonblur;
  32307. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  32308. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  32309. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  32310. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  32311. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  32312. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  32313. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  32314. property onchange: TEventHandler read _Getonchange write _Setonchange;
  32315. property onclick: TEventHandler read _Getonclick write _Setonclick;
  32316. property onclose: TEventHandler read _Getonclose write _Setonclose;
  32317. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  32318. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  32319. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  32320. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  32321. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  32322. property oncut: TEventHandler read _Getoncut write _Setoncut;
  32323. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  32324. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  32325. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  32326. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  32327. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  32328. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  32329. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  32330. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  32331. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  32332. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  32333. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  32334. property onended: TEventHandler read _Getonended write _Setonended;
  32335. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  32336. property oninput: TEventHandler read _Getoninput write _Setoninput;
  32337. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  32338. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  32339. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  32340. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  32341. property onload: TEventHandler read _Getonload write _Setonload;
  32342. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  32343. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  32344. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  32345. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  32346. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  32347. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  32348. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  32349. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  32350. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  32351. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  32352. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  32353. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  32354. property onpause: TEventHandler read _Getonpause write _Setonpause;
  32355. property onplay: TEventHandler read _Getonplay write _Setonplay;
  32356. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  32357. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  32358. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  32359. property onreset: TEventHandler read _Getonreset write _Setonreset;
  32360. property onresize: TEventHandler read _Getonresize write _Setonresize;
  32361. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  32362. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  32363. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  32364. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  32365. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  32366. property onselect: TEventHandler read _Getonselect write _Setonselect;
  32367. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  32368. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  32369. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  32370. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  32371. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  32372. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  32373. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  32374. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  32375. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  32376. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  32377. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  32378. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  32379. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  32380. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  32381. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  32382. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  32383. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  32384. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  32385. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  32386. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  32387. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  32388. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  32389. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  32390. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  32391. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  32392. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  32393. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  32394. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  32395. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  32396. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  32397. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  32398. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  32399. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  32400. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  32401. end;
  32402. { --------------------------------------------------------------------
  32403. TJSWindowEventHandlers
  32404. --------------------------------------------------------------------}
  32405. IJSWindowEventHandlers = interface(IJSObject)
  32406. ['{59259445-2E1D-3B8D-AD27-083C0E2E8A69}']
  32407. function _Getonafterprint: TEventHandler;
  32408. function _Getonbeforeprint: TEventHandler;
  32409. function _Getonbeforeunload: TOnBeforeUnloadEventHandler;
  32410. function _Getonhashchange: TEventHandler;
  32411. function _Getonlanguagechange: TEventHandler;
  32412. function _Getonmessage: TEventHandler;
  32413. function _Getonmessageerror: TEventHandler;
  32414. function _Getonoffline: TEventHandler;
  32415. function _Getononline: TEventHandler;
  32416. function _Getonpagehide: TEventHandler;
  32417. function _Getonpageshow: TEventHandler;
  32418. function _Getonpopstate: TEventHandler;
  32419. function _Getonrejectionhandled: TEventHandler;
  32420. function _Getonstorage: TEventHandler;
  32421. function _Getonunhandledrejection: TEventHandler;
  32422. function _Getonunload: TEventHandler;
  32423. function _Getongamepadconnected: TEventHandler;
  32424. function _Getongamepaddisconnected: TEventHandler;
  32425. procedure _Setonafterprint(const aValue: TEventHandler);
  32426. procedure _Setonbeforeprint(const aValue: TEventHandler);
  32427. procedure _Setonbeforeunload(const aValue: TOnBeforeUnloadEventHandler);
  32428. procedure _Setonhashchange(const aValue: TEventHandler);
  32429. procedure _Setonlanguagechange(const aValue: TEventHandler);
  32430. procedure _Setonmessage(const aValue: TEventHandler);
  32431. procedure _Setonmessageerror(const aValue: TEventHandler);
  32432. procedure _Setonoffline(const aValue: TEventHandler);
  32433. procedure _Setononline(const aValue: TEventHandler);
  32434. procedure _Setonpagehide(const aValue: TEventHandler);
  32435. procedure _Setonpageshow(const aValue: TEventHandler);
  32436. procedure _Setonpopstate(const aValue: TEventHandler);
  32437. procedure _Setonrejectionhandled(const aValue: TEventHandler);
  32438. procedure _Setonstorage(const aValue: TEventHandler);
  32439. procedure _Setonunhandledrejection(const aValue: TEventHandler);
  32440. procedure _Setonunload(const aValue: TEventHandler);
  32441. procedure _Setongamepadconnected(const aValue: TEventHandler);
  32442. procedure _Setongamepaddisconnected(const aValue: TEventHandler);
  32443. property onafterprint: TEventHandler read _Getonafterprint write _Setonafterprint;
  32444. property onbeforeprint: TEventHandler read _Getonbeforeprint write _Setonbeforeprint;
  32445. property onbeforeunload: TOnBeforeUnloadEventHandler read _Getonbeforeunload write _Setonbeforeunload;
  32446. property onhashchange: TEventHandler read _Getonhashchange write _Setonhashchange;
  32447. property onlanguagechange: TEventHandler read _Getonlanguagechange write _Setonlanguagechange;
  32448. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  32449. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  32450. property onoffline: TEventHandler read _Getonoffline write _Setonoffline;
  32451. property ononline: TEventHandler read _Getononline write _Setononline;
  32452. property onpagehide: TEventHandler read _Getonpagehide write _Setonpagehide;
  32453. property onpageshow: TEventHandler read _Getonpageshow write _Setonpageshow;
  32454. property onpopstate: TEventHandler read _Getonpopstate write _Setonpopstate;
  32455. property onrejectionhandled: TEventHandler read _Getonrejectionhandled write _Setonrejectionhandled;
  32456. property onstorage: TEventHandler read _Getonstorage write _Setonstorage;
  32457. property onunhandledrejection: TEventHandler read _Getonunhandledrejection write _Setonunhandledrejection;
  32458. property onunload: TEventHandler read _Getonunload write _Setonunload;
  32459. property ongamepadconnected: TEventHandler read _Getongamepadconnected write _Setongamepadconnected;
  32460. property ongamepaddisconnected: TEventHandler read _Getongamepaddisconnected write _Setongamepaddisconnected;
  32461. end;
  32462. TJSWindowEventHandlers = class(TJSObject,IJSWindowEventHandlers)
  32463. Protected
  32464. function _Getonafterprint: TEventHandler;
  32465. function _Getonbeforeprint: TEventHandler;
  32466. function _Getonbeforeunload: TOnBeforeUnloadEventHandler;
  32467. function _Getonhashchange: TEventHandler;
  32468. function _Getonlanguagechange: TEventHandler;
  32469. function _Getonmessage: TEventHandler;
  32470. function _Getonmessageerror: TEventHandler;
  32471. function _Getonoffline: TEventHandler;
  32472. function _Getononline: TEventHandler;
  32473. function _Getonpagehide: TEventHandler;
  32474. function _Getonpageshow: TEventHandler;
  32475. function _Getonpopstate: TEventHandler;
  32476. function _Getonrejectionhandled: TEventHandler;
  32477. function _Getonstorage: TEventHandler;
  32478. function _Getonunhandledrejection: TEventHandler;
  32479. function _Getonunload: TEventHandler;
  32480. function _Getongamepadconnected: TEventHandler;
  32481. function _Getongamepaddisconnected: TEventHandler;
  32482. procedure _Setonafterprint(const aValue: TEventHandler);
  32483. procedure _Setonbeforeprint(const aValue: TEventHandler);
  32484. procedure _Setonbeforeunload(const aValue: TOnBeforeUnloadEventHandler);
  32485. procedure _Setonhashchange(const aValue: TEventHandler);
  32486. procedure _Setonlanguagechange(const aValue: TEventHandler);
  32487. procedure _Setonmessage(const aValue: TEventHandler);
  32488. procedure _Setonmessageerror(const aValue: TEventHandler);
  32489. procedure _Setonoffline(const aValue: TEventHandler);
  32490. procedure _Setononline(const aValue: TEventHandler);
  32491. procedure _Setonpagehide(const aValue: TEventHandler);
  32492. procedure _Setonpageshow(const aValue: TEventHandler);
  32493. procedure _Setonpopstate(const aValue: TEventHandler);
  32494. procedure _Setonrejectionhandled(const aValue: TEventHandler);
  32495. procedure _Setonstorage(const aValue: TEventHandler);
  32496. procedure _Setonunhandledrejection(const aValue: TEventHandler);
  32497. procedure _Setonunload(const aValue: TEventHandler);
  32498. procedure _Setongamepadconnected(const aValue: TEventHandler);
  32499. procedure _Setongamepaddisconnected(const aValue: TEventHandler);
  32500. Public
  32501. class function JSClassName: UnicodeString; override;
  32502. class function Cast(const Intf: IJSObject): IJSWindowEventHandlers;
  32503. property onafterprint: TEventHandler read _Getonafterprint write _Setonafterprint;
  32504. property onbeforeprint: TEventHandler read _Getonbeforeprint write _Setonbeforeprint;
  32505. property onbeforeunload: TOnBeforeUnloadEventHandler read _Getonbeforeunload write _Setonbeforeunload;
  32506. property onhashchange: TEventHandler read _Getonhashchange write _Setonhashchange;
  32507. property onlanguagechange: TEventHandler read _Getonlanguagechange write _Setonlanguagechange;
  32508. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  32509. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  32510. property onoffline: TEventHandler read _Getonoffline write _Setonoffline;
  32511. property ononline: TEventHandler read _Getononline write _Setononline;
  32512. property onpagehide: TEventHandler read _Getonpagehide write _Setonpagehide;
  32513. property onpageshow: TEventHandler read _Getonpageshow write _Setonpageshow;
  32514. property onpopstate: TEventHandler read _Getonpopstate write _Setonpopstate;
  32515. property onrejectionhandled: TEventHandler read _Getonrejectionhandled write _Setonrejectionhandled;
  32516. property onstorage: TEventHandler read _Getonstorage write _Setonstorage;
  32517. property onunhandledrejection: TEventHandler read _Getonunhandledrejection write _Setonunhandledrejection;
  32518. property onunload: TEventHandler read _Getonunload write _Setonunload;
  32519. property ongamepadconnected: TEventHandler read _Getongamepadconnected write _Setongamepadconnected;
  32520. property ongamepaddisconnected: TEventHandler read _Getongamepaddisconnected write _Setongamepaddisconnected;
  32521. end;
  32522. { --------------------------------------------------------------------
  32523. TJSOnErrorEventHandlerForNodes
  32524. --------------------------------------------------------------------}
  32525. IJSOnErrorEventHandlerForNodes = interface(IJSObject)
  32526. ['{13D166E9-F70F-346C-B11C-1B956C0BBCB0}']
  32527. function _Getonerror: TEventHandler;
  32528. procedure _Setonerror(const aValue: TEventHandler);
  32529. property onerror: TEventHandler read _Getonerror write _Setonerror;
  32530. end;
  32531. TJSOnErrorEventHandlerForNodes = class(TJSObject,IJSOnErrorEventHandlerForNodes)
  32532. Protected
  32533. function _Getonerror: TEventHandler;
  32534. procedure _Setonerror(const aValue: TEventHandler);
  32535. Public
  32536. class function JSClassName: UnicodeString; override;
  32537. class function Cast(const Intf: IJSObject): IJSOnErrorEventHandlerForNodes;
  32538. property onerror: TEventHandler read _Getonerror write _Setonerror;
  32539. end;
  32540. { --------------------------------------------------------------------
  32541. TJSOnErrorEventHandlerForWindow
  32542. --------------------------------------------------------------------}
  32543. IJSOnErrorEventHandlerForWindow = interface(IJSObject)
  32544. ['{EF0A17DA-F3C5-35AE-80F9-08BD29C87E5B}']
  32545. function _Getonerror: TOnErrorEventHandler;
  32546. procedure _Setonerror(const aValue: TOnErrorEventHandler);
  32547. property onerror: TOnErrorEventHandler read _Getonerror write _Setonerror;
  32548. end;
  32549. TJSOnErrorEventHandlerForWindow = class(TJSObject,IJSOnErrorEventHandlerForWindow)
  32550. Protected
  32551. function _Getonerror: TOnErrorEventHandler;
  32552. procedure _Setonerror(const aValue: TOnErrorEventHandler);
  32553. Public
  32554. class function JSClassName: UnicodeString; override;
  32555. class function Cast(const Intf: IJSObject): IJSOnErrorEventHandlerForWindow;
  32556. property onerror: TOnErrorEventHandler read _Getonerror write _Setonerror;
  32557. end;
  32558. { --------------------------------------------------------------------
  32559. TJSEventTarget
  32560. --------------------------------------------------------------------}
  32561. // Union of AddEventListenerOptions, boolean
  32562. TEventTarget_addEventListener_options_Type = Variant;
  32563. // Union of EventListenerOptions, boolean
  32564. TEventTarget_removeEventListener_options_Type = Variant;
  32565. IJSEventTarget = interface(IJSObject)
  32566. ['{508F4552-EEB9-36D3-BF1A-151D53753BED}']
  32567. procedure addEventListener(const aType_: UnicodeString; const aListener: TEventListener; const aOptions: TJSAddEventListenerOptions; aWantsUntrusted: Boolean);
  32568. procedure addEventListener(const aType_: UnicodeString; const aListener: TEventListener);
  32569. procedure addEventListener(const aType_: UnicodeString; const aListener: TEventListener; aOptions: Boolean; aWantsUntrusted: Boolean);
  32570. procedure addEventListener(const aType_: UnicodeString; const aListener: TEventListener; aOptions: Boolean);
  32571. procedure addEventListener(const aType_: UnicodeString; const aListener: TEventListener; const aOptions: TJSAddEventListenerOptions);
  32572. procedure removeEventListener(const aType_: UnicodeString; const aListener: TEventListener; aOptions: Boolean);
  32573. procedure removeEventListener(const aType_: UnicodeString; const aListener: TEventListener);
  32574. procedure removeEventListener(const aType_: UnicodeString; const aListener: TEventListener; const aOptions: TJSEventListenerOptions);
  32575. function dispatchEvent(aEvent: IJSEvent): Boolean;
  32576. end;
  32577. TJSEventTarget = class(TJSObject,IJSEventTarget)
  32578. Protected
  32579. Public
  32580. constructor Create; overload;
  32581. procedure addEventListener(const aType_: UnicodeString; const aListener: TEventListener; const aOptions: TJSAddEventListenerOptions; aWantsUntrusted: Boolean); overload;
  32582. procedure addEventListener(const aType_: UnicodeString; const aListener: TEventListener); overload;
  32583. procedure addEventListener(const aType_: UnicodeString; const aListener: TEventListener; aOptions: Boolean; aWantsUntrusted: Boolean); overload;
  32584. procedure addEventListener(const aType_: UnicodeString; const aListener: TEventListener; aOptions: Boolean); overload;
  32585. procedure addEventListener(const aType_: UnicodeString; const aListener: TEventListener; const aOptions: TJSAddEventListenerOptions); overload;
  32586. procedure removeEventListener(const aType_: UnicodeString; const aListener: TEventListener; aOptions: Boolean); overload;
  32587. procedure removeEventListener(const aType_: UnicodeString; const aListener: TEventListener); overload;
  32588. procedure removeEventListener(const aType_: UnicodeString; const aListener: TEventListener; const aOptions: TJSEventListenerOptions); overload;
  32589. function dispatchEvent(aEvent: IJSEvent): Boolean; overload;
  32590. class function JSClassName: UnicodeString; override;
  32591. class function Cast(const Intf: IJSObject): IJSEventTarget;
  32592. end;
  32593. { --------------------------------------------------------------------
  32594. TJSExtensionAlarms
  32595. --------------------------------------------------------------------}
  32596. IJSExtensionAlarms = interface(IJSObject)
  32597. ['{DD42A039-4629-3069-A350-7C495C17A477}']
  32598. function _GetonAlarm: IJSExtensionEventManager;
  32599. procedure create(const aName: UnicodeString; const aAlarmInfo: Variant);
  32600. procedure create(const aAlarmInfo: Variant);
  32601. function get(const aName: UnicodeString; const aCallback: TFunction): Variant;
  32602. function get(const aName: UnicodeString): Variant;
  32603. function get(const aCallback: TFunction): Variant;
  32604. function get: Variant;
  32605. function getAll(const aCallback: TFunction): Variant;
  32606. function getAll: Variant;
  32607. function clear(const aName: UnicodeString; const aCallback: TFunction): Variant;
  32608. function clear(const aName: UnicodeString): Variant;
  32609. function clear(const aCallback: TFunction): Variant;
  32610. function clear: Variant;
  32611. function clearAll(const aCallback: TFunction): Variant;
  32612. function clearAll: Variant;
  32613. property onAlarm: IJSExtensionEventManager read _GetonAlarm;
  32614. end;
  32615. TJSExtensionAlarms = class(TJSObject,IJSExtensionAlarms)
  32616. Protected
  32617. function _GetonAlarm: IJSExtensionEventManager;
  32618. Public
  32619. procedure create(const aName: UnicodeString; const aAlarmInfo: Variant); overload;
  32620. procedure create(const aAlarmInfo: Variant); overload;
  32621. function get(const aName: UnicodeString; const aCallback: TFunction): Variant; overload;
  32622. function get(const aName: UnicodeString): Variant; overload;
  32623. function get(const aCallback: TFunction): Variant; overload;
  32624. function get: Variant; overload;
  32625. function getAll(const aCallback: TFunction): Variant; overload;
  32626. function getAll: Variant; overload;
  32627. function clear(const aName: UnicodeString; const aCallback: TFunction): Variant; overload;
  32628. function clear(const aName: UnicodeString): Variant; overload;
  32629. function clear(const aCallback: TFunction): Variant; overload;
  32630. function clear: Variant; overload;
  32631. function clearAll(const aCallback: TFunction): Variant; overload;
  32632. function clearAll: Variant; overload;
  32633. class function JSClassName: UnicodeString; override;
  32634. class function Cast(const Intf: IJSObject): IJSExtensionAlarms;
  32635. property onAlarm: IJSExtensionEventManager read _GetonAlarm;
  32636. end;
  32637. { --------------------------------------------------------------------
  32638. TJSExtensionGlobalsMixin
  32639. --------------------------------------------------------------------}
  32640. IJSExtensionGlobalsMixin = interface(IJSObject)
  32641. ['{0C4A7BCF-8D31-3EF9-A4DD-D5D51E49067A}']
  32642. function _Getbrowser: IJSExtensionBrowser;
  32643. property browser: IJSExtensionBrowser read _Getbrowser;
  32644. end;
  32645. TJSExtensionGlobalsMixin = class(TJSObject,IJSExtensionGlobalsMixin)
  32646. Protected
  32647. function _Getbrowser: IJSExtensionBrowser;
  32648. Public
  32649. class function JSClassName: UnicodeString; override;
  32650. class function Cast(const Intf: IJSObject): IJSExtensionGlobalsMixin;
  32651. property browser: IJSExtensionBrowser read _Getbrowser;
  32652. end;
  32653. { --------------------------------------------------------------------
  32654. TJSExtensionBrowser
  32655. --------------------------------------------------------------------}
  32656. IJSExtensionBrowser = interface(IJSObject)
  32657. ['{3815D491-828C-39C2-A339-D602D4B2EFE5}']
  32658. function _GetmockExtensionAPI: IJSExtensionMockAPI;
  32659. function _Getalarms: IJSExtensionAlarms;
  32660. function _GetbrowserSettings: IJSExtensionBrowserSettings;
  32661. function _Getdns: IJSExtensionDns;
  32662. function _Getproxy: IJSExtensionProxy;
  32663. function _Getruntime: IJSExtensionRuntime;
  32664. function _Getscripting: IJSExtensionScripting;
  32665. function _Gettest: IJSExtensionTest;
  32666. property mockExtensionAPI: IJSExtensionMockAPI read _GetmockExtensionAPI;
  32667. property alarms: IJSExtensionAlarms read _Getalarms;
  32668. property browserSettings: IJSExtensionBrowserSettings read _GetbrowserSettings;
  32669. property dns: IJSExtensionDns read _Getdns;
  32670. property proxy: IJSExtensionProxy read _Getproxy;
  32671. property runtime: IJSExtensionRuntime read _Getruntime;
  32672. property scripting: IJSExtensionScripting read _Getscripting;
  32673. property test: IJSExtensionTest read _Gettest;
  32674. end;
  32675. TJSExtensionBrowser = class(TJSObject,IJSExtensionBrowser)
  32676. Protected
  32677. function _GetmockExtensionAPI: IJSExtensionMockAPI;
  32678. function _Getalarms: IJSExtensionAlarms;
  32679. function _GetbrowserSettings: IJSExtensionBrowserSettings;
  32680. function _Getdns: IJSExtensionDns;
  32681. function _Getproxy: IJSExtensionProxy;
  32682. function _Getruntime: IJSExtensionRuntime;
  32683. function _Getscripting: IJSExtensionScripting;
  32684. function _Gettest: IJSExtensionTest;
  32685. Public
  32686. class function JSClassName: UnicodeString; override;
  32687. class function Cast(const Intf: IJSObject): IJSExtensionBrowser;
  32688. property mockExtensionAPI: IJSExtensionMockAPI read _GetmockExtensionAPI;
  32689. property alarms: IJSExtensionAlarms read _Getalarms;
  32690. property browserSettings: IJSExtensionBrowserSettings read _GetbrowserSettings;
  32691. property dns: IJSExtensionDns read _Getdns;
  32692. property proxy: IJSExtensionProxy read _Getproxy;
  32693. property runtime: IJSExtensionRuntime read _Getruntime;
  32694. property scripting: IJSExtensionScripting read _Getscripting;
  32695. property test: IJSExtensionTest read _Gettest;
  32696. end;
  32697. { --------------------------------------------------------------------
  32698. TJSExtensionBrowserSettings
  32699. --------------------------------------------------------------------}
  32700. IJSExtensionBrowserSettings = interface(IJSObject)
  32701. ['{ABF24278-04F2-3D64-B2D6-E33AAC7350C9}']
  32702. function _GetallowPopupsForUserEvents: IJSExtensionSetting;
  32703. function _GetcacheEnabled: IJSExtensionSetting;
  32704. function _GetcloseTabsByDoubleClick: IJSExtensionSetting;
  32705. function _GetcontextMenuShowEvent: IJSExtensionSetting;
  32706. function _GetftpProtocolEnabled: IJSExtensionSetting;
  32707. function _GethomepageOverride: IJSExtensionSetting;
  32708. function _GetimageAnimationBehavior: IJSExtensionSetting;
  32709. function _GetnewTabPageOverride: IJSExtensionSetting;
  32710. function _GetnewTabPosition: IJSExtensionSetting;
  32711. function _GetopenBookmarksInNewTabs: IJSExtensionSetting;
  32712. function _GetopenSearchResultsInNewTabs: IJSExtensionSetting;
  32713. function _GetopenUrlbarResultsInNewTabs: IJSExtensionSetting;
  32714. function _GetwebNotificationsDisabled: IJSExtensionSetting;
  32715. function _GetoverrideDocumentColors: IJSExtensionSetting;
  32716. function _GetoverrideContentColorScheme: IJSExtensionSetting;
  32717. function _GetuseDocumentFonts: IJSExtensionSetting;
  32718. function _GetzoomFullPage: IJSExtensionSetting;
  32719. function _GetzoomSiteSpecific: IJSExtensionSetting;
  32720. function _GetcolorManagement: IJSExtensionBrowserSettingsColorManagement;
  32721. property allowPopupsForUserEvents: IJSExtensionSetting read _GetallowPopupsForUserEvents;
  32722. property cacheEnabled: IJSExtensionSetting read _GetcacheEnabled;
  32723. property closeTabsByDoubleClick: IJSExtensionSetting read _GetcloseTabsByDoubleClick;
  32724. property contextMenuShowEvent: IJSExtensionSetting read _GetcontextMenuShowEvent;
  32725. property ftpProtocolEnabled: IJSExtensionSetting read _GetftpProtocolEnabled;
  32726. property homepageOverride: IJSExtensionSetting read _GethomepageOverride;
  32727. property imageAnimationBehavior: IJSExtensionSetting read _GetimageAnimationBehavior;
  32728. property newTabPageOverride: IJSExtensionSetting read _GetnewTabPageOverride;
  32729. property newTabPosition: IJSExtensionSetting read _GetnewTabPosition;
  32730. property openBookmarksInNewTabs: IJSExtensionSetting read _GetopenBookmarksInNewTabs;
  32731. property openSearchResultsInNewTabs: IJSExtensionSetting read _GetopenSearchResultsInNewTabs;
  32732. property openUrlbarResultsInNewTabs: IJSExtensionSetting read _GetopenUrlbarResultsInNewTabs;
  32733. property webNotificationsDisabled: IJSExtensionSetting read _GetwebNotificationsDisabled;
  32734. property overrideDocumentColors: IJSExtensionSetting read _GetoverrideDocumentColors;
  32735. property overrideContentColorScheme: IJSExtensionSetting read _GetoverrideContentColorScheme;
  32736. property useDocumentFonts: IJSExtensionSetting read _GetuseDocumentFonts;
  32737. property zoomFullPage: IJSExtensionSetting read _GetzoomFullPage;
  32738. property zoomSiteSpecific: IJSExtensionSetting read _GetzoomSiteSpecific;
  32739. property colorManagement: IJSExtensionBrowserSettingsColorManagement read _GetcolorManagement;
  32740. end;
  32741. TJSExtensionBrowserSettings = class(TJSObject,IJSExtensionBrowserSettings)
  32742. Protected
  32743. function _GetallowPopupsForUserEvents: IJSExtensionSetting;
  32744. function _GetcacheEnabled: IJSExtensionSetting;
  32745. function _GetcloseTabsByDoubleClick: IJSExtensionSetting;
  32746. function _GetcontextMenuShowEvent: IJSExtensionSetting;
  32747. function _GetftpProtocolEnabled: IJSExtensionSetting;
  32748. function _GethomepageOverride: IJSExtensionSetting;
  32749. function _GetimageAnimationBehavior: IJSExtensionSetting;
  32750. function _GetnewTabPageOverride: IJSExtensionSetting;
  32751. function _GetnewTabPosition: IJSExtensionSetting;
  32752. function _GetopenBookmarksInNewTabs: IJSExtensionSetting;
  32753. function _GetopenSearchResultsInNewTabs: IJSExtensionSetting;
  32754. function _GetopenUrlbarResultsInNewTabs: IJSExtensionSetting;
  32755. function _GetwebNotificationsDisabled: IJSExtensionSetting;
  32756. function _GetoverrideDocumentColors: IJSExtensionSetting;
  32757. function _GetoverrideContentColorScheme: IJSExtensionSetting;
  32758. function _GetuseDocumentFonts: IJSExtensionSetting;
  32759. function _GetzoomFullPage: IJSExtensionSetting;
  32760. function _GetzoomSiteSpecific: IJSExtensionSetting;
  32761. function _GetcolorManagement: IJSExtensionBrowserSettingsColorManagement;
  32762. Public
  32763. class function JSClassName: UnicodeString; override;
  32764. class function Cast(const Intf: IJSObject): IJSExtensionBrowserSettings;
  32765. property allowPopupsForUserEvents: IJSExtensionSetting read _GetallowPopupsForUserEvents;
  32766. property cacheEnabled: IJSExtensionSetting read _GetcacheEnabled;
  32767. property closeTabsByDoubleClick: IJSExtensionSetting read _GetcloseTabsByDoubleClick;
  32768. property contextMenuShowEvent: IJSExtensionSetting read _GetcontextMenuShowEvent;
  32769. property ftpProtocolEnabled: IJSExtensionSetting read _GetftpProtocolEnabled;
  32770. property homepageOverride: IJSExtensionSetting read _GethomepageOverride;
  32771. property imageAnimationBehavior: IJSExtensionSetting read _GetimageAnimationBehavior;
  32772. property newTabPageOverride: IJSExtensionSetting read _GetnewTabPageOverride;
  32773. property newTabPosition: IJSExtensionSetting read _GetnewTabPosition;
  32774. property openBookmarksInNewTabs: IJSExtensionSetting read _GetopenBookmarksInNewTabs;
  32775. property openSearchResultsInNewTabs: IJSExtensionSetting read _GetopenSearchResultsInNewTabs;
  32776. property openUrlbarResultsInNewTabs: IJSExtensionSetting read _GetopenUrlbarResultsInNewTabs;
  32777. property webNotificationsDisabled: IJSExtensionSetting read _GetwebNotificationsDisabled;
  32778. property overrideDocumentColors: IJSExtensionSetting read _GetoverrideDocumentColors;
  32779. property overrideContentColorScheme: IJSExtensionSetting read _GetoverrideContentColorScheme;
  32780. property useDocumentFonts: IJSExtensionSetting read _GetuseDocumentFonts;
  32781. property zoomFullPage: IJSExtensionSetting read _GetzoomFullPage;
  32782. property zoomSiteSpecific: IJSExtensionSetting read _GetzoomSiteSpecific;
  32783. property colorManagement: IJSExtensionBrowserSettingsColorManagement read _GetcolorManagement;
  32784. end;
  32785. { --------------------------------------------------------------------
  32786. TJSExtensionBrowserSettingsColorManagement
  32787. --------------------------------------------------------------------}
  32788. IJSExtensionBrowserSettingsColorManagement = interface(IJSObject)
  32789. ['{5D5DEF68-AEBD-381B-9E84-76A46197C148}']
  32790. function _Getmode: IJSExtensionSetting;
  32791. function _GetuseNativeSRGB: IJSExtensionSetting;
  32792. function _GetuseWebRenderCompositor: IJSExtensionSetting;
  32793. property mode: IJSExtensionSetting read _Getmode;
  32794. property useNativeSRGB: IJSExtensionSetting read _GetuseNativeSRGB;
  32795. property useWebRenderCompositor: IJSExtensionSetting read _GetuseWebRenderCompositor;
  32796. end;
  32797. TJSExtensionBrowserSettingsColorManagement = class(TJSObject,IJSExtensionBrowserSettingsColorManagement)
  32798. Protected
  32799. function _Getmode: IJSExtensionSetting;
  32800. function _GetuseNativeSRGB: IJSExtensionSetting;
  32801. function _GetuseWebRenderCompositor: IJSExtensionSetting;
  32802. Public
  32803. class function JSClassName: UnicodeString; override;
  32804. class function Cast(const Intf: IJSObject): IJSExtensionBrowserSettingsColorManagement;
  32805. property mode: IJSExtensionSetting read _Getmode;
  32806. property useNativeSRGB: IJSExtensionSetting read _GetuseNativeSRGB;
  32807. property useWebRenderCompositor: IJSExtensionSetting read _GetuseWebRenderCompositor;
  32808. end;
  32809. { --------------------------------------------------------------------
  32810. TJSExtensionDns
  32811. --------------------------------------------------------------------}
  32812. IJSExtensionDns = interface(IJSObject)
  32813. ['{E6CF3F8B-3902-3EAC-B22A-1DFEFF42A621}']
  32814. function resolve(const aArgs: Variant): Variant{; ToDo:varargs};
  32815. end;
  32816. TJSExtensionDns = class(TJSObject,IJSExtensionDns)
  32817. Protected
  32818. Public
  32819. function resolve(const aArgs: Variant): Variant{; ToDo:varargs}; overload;
  32820. class function JSClassName: UnicodeString; override;
  32821. class function Cast(const Intf: IJSObject): IJSExtensionDns;
  32822. end;
  32823. { --------------------------------------------------------------------
  32824. TJSExtensionEventManager
  32825. --------------------------------------------------------------------}
  32826. IJSExtensionEventManager = interface(IJSObject)
  32827. ['{F9778082-0132-3946-A442-33A2BB3F7374}']
  32828. procedure addListener(const aCallback: TFunction; aListenerOptions: IJSObject);
  32829. procedure addListener(const aCallback: TFunction);
  32830. procedure removeListener(const aCallback: TFunction);
  32831. function hasListener(const aCallback: TFunction): Boolean;
  32832. function hasListeners: Boolean;
  32833. end;
  32834. TJSExtensionEventManager = class(TJSObject,IJSExtensionEventManager)
  32835. Protected
  32836. Public
  32837. procedure addListener(const aCallback: TFunction; aListenerOptions: IJSObject); overload;
  32838. procedure addListener(const aCallback: TFunction); overload;
  32839. procedure removeListener(const aCallback: TFunction); overload;
  32840. function hasListener(const aCallback: TFunction): Boolean; overload;
  32841. function hasListeners: Boolean; overload;
  32842. class function JSClassName: UnicodeString; override;
  32843. class function Cast(const Intf: IJSObject): IJSExtensionEventManager;
  32844. end;
  32845. { --------------------------------------------------------------------
  32846. TJSExtensionMockAPI
  32847. --------------------------------------------------------------------}
  32848. IJSExtensionMockAPI = interface(IJSObject)
  32849. ['{CD454311-9596-34B8-B713-C8588A1872B5}']
  32850. function _GetpropertyAsErrorObject: Variant;
  32851. function _GetpropertyAsString: UnicodeString;
  32852. function _GetonTestEvent: IJSExtensionEventManager;
  32853. function methodSyncWithReturn(const aArgs: Variant): Variant{; ToDo:varargs};
  32854. procedure methodNoReturn(const aArgs: Variant){; ToDo:varargs};
  32855. function methodAsync(const aArg0: Variant; const aCb: TFunction): Variant;
  32856. function methodAsync(const aArg0: Variant): Variant;
  32857. function methodAmbiguousArgsAsync(const aArgs: Variant): Variant{; ToDo:varargs};
  32858. function methodReturnsPort(const aTestName: UnicodeString): IJSExtensionPort;
  32859. property propertyAsErrorObject: Variant read _GetpropertyAsErrorObject;
  32860. property propertyAsString: UnicodeString read _GetpropertyAsString;
  32861. property onTestEvent: IJSExtensionEventManager read _GetonTestEvent;
  32862. end;
  32863. TJSExtensionMockAPI = class(TJSObject,IJSExtensionMockAPI)
  32864. Protected
  32865. function _GetpropertyAsErrorObject: Variant;
  32866. function _GetpropertyAsString: UnicodeString;
  32867. function _GetonTestEvent: IJSExtensionEventManager;
  32868. Public
  32869. function methodSyncWithReturn(const aArgs: Variant): Variant{; ToDo:varargs}; overload;
  32870. procedure methodNoReturn(const aArgs: Variant){; ToDo:varargs}; overload;
  32871. function methodAsync(const aArg0: Variant; const aCb: TFunction): Variant; overload;
  32872. function methodAsync(const aArg0: Variant): Variant; overload;
  32873. function methodAmbiguousArgsAsync(const aArgs: Variant): Variant{; ToDo:varargs}; overload;
  32874. function methodReturnsPort(const aTestName: UnicodeString): IJSExtensionPort; overload;
  32875. class function JSClassName: UnicodeString; override;
  32876. class function Cast(const Intf: IJSObject): IJSExtensionMockAPI;
  32877. property propertyAsErrorObject: Variant read _GetpropertyAsErrorObject;
  32878. property propertyAsString: UnicodeString read _GetpropertyAsString;
  32879. property onTestEvent: IJSExtensionEventManager read _GetonTestEvent;
  32880. end;
  32881. { --------------------------------------------------------------------
  32882. TJSExtensionPort
  32883. --------------------------------------------------------------------}
  32884. IJSExtensionPort = interface(IJSObject)
  32885. ['{47039CA3-AAD4-3274-9665-14BCC031756F}']
  32886. function _Getname: UnicodeString;
  32887. function _Getsender: Variant;
  32888. function _Geterror: Variant;
  32889. function _GetonDisconnect: IJSExtensionEventManager;
  32890. function _GetonMessage: IJSExtensionEventManager;
  32891. procedure disconnect;
  32892. procedure postMessage(const aMessage: Variant);
  32893. property name: UnicodeString read _Getname;
  32894. property sender: Variant read _Getsender;
  32895. property error: Variant read _Geterror;
  32896. property onDisconnect: IJSExtensionEventManager read _GetonDisconnect;
  32897. property onMessage: IJSExtensionEventManager read _GetonMessage;
  32898. end;
  32899. TJSExtensionPort = class(TJSObject,IJSExtensionPort)
  32900. Protected
  32901. function _Getname: UnicodeString;
  32902. function _Getsender: Variant;
  32903. function _Geterror: Variant;
  32904. function _GetonDisconnect: IJSExtensionEventManager;
  32905. function _GetonMessage: IJSExtensionEventManager;
  32906. Public
  32907. procedure disconnect; overload;
  32908. procedure postMessage(const aMessage: Variant); overload;
  32909. class function JSClassName: UnicodeString; override;
  32910. class function Cast(const Intf: IJSObject): IJSExtensionPort;
  32911. property name: UnicodeString read _Getname;
  32912. property sender: Variant read _Getsender;
  32913. property error: Variant read _Geterror;
  32914. property onDisconnect: IJSExtensionEventManager read _GetonDisconnect;
  32915. property onMessage: IJSExtensionEventManager read _GetonMessage;
  32916. end;
  32917. { --------------------------------------------------------------------
  32918. TJSExtensionProxy
  32919. --------------------------------------------------------------------}
  32920. IJSExtensionProxy = interface(IJSObject)
  32921. ['{60F3C62F-59BC-3BF2-92B6-6367A235CFF3}']
  32922. function _GetonRequest: IJSExtensionEventManager;
  32923. function _GetonError: IJSExtensionEventManager;
  32924. function _Getsettings: IJSExtensionSetting;
  32925. property onRequest: IJSExtensionEventManager read _GetonRequest;
  32926. property onError: IJSExtensionEventManager read _GetonError;
  32927. property settings: IJSExtensionSetting read _Getsettings;
  32928. end;
  32929. TJSExtensionProxy = class(TJSObject,IJSExtensionProxy)
  32930. Protected
  32931. function _GetonRequest: IJSExtensionEventManager;
  32932. function _GetonError: IJSExtensionEventManager;
  32933. function _Getsettings: IJSExtensionSetting;
  32934. Public
  32935. class function JSClassName: UnicodeString; override;
  32936. class function Cast(const Intf: IJSObject): IJSExtensionProxy;
  32937. property onRequest: IJSExtensionEventManager read _GetonRequest;
  32938. property onError: IJSExtensionEventManager read _GetonError;
  32939. property settings: IJSExtensionSetting read _Getsettings;
  32940. end;
  32941. { --------------------------------------------------------------------
  32942. TJSExtensionRuntime
  32943. --------------------------------------------------------------------}
  32944. IJSExtensionRuntime = interface(IJSObject)
  32945. ['{66AD95C0-2DDD-346E-8F3D-F1FBE1F57FBC}']
  32946. function _GetonStartup: IJSExtensionEventManager;
  32947. function _GetonInstalled: IJSExtensionEventManager;
  32948. function _GetonUpdateAvailable: IJSExtensionEventManager;
  32949. function _GetonConnect: IJSExtensionEventManager;
  32950. function _GetonConnectExternal: IJSExtensionEventManager;
  32951. function _GetonMessage: IJSExtensionEventManager;
  32952. function _GetonMessageExternal: IJSExtensionEventManager;
  32953. function _GetlastError: Variant;
  32954. function _Getid: UnicodeString;
  32955. function openOptionsPage(const aCallback: TFunction): Variant;
  32956. function openOptionsPage: Variant;
  32957. function getManifest: Variant;
  32958. function getURL(const aPath: UnicodeString): UnicodeString;
  32959. function setUninstallURL(const aUrl: UnicodeString; const aCallback: TFunction): Variant;
  32960. function setUninstallURL(const aUrl: UnicodeString): Variant;
  32961. function setUninstallURL(const aCallback: TFunction): Variant;
  32962. function setUninstallURL: Variant;
  32963. procedure reload;
  32964. function connect(const aExtensionId: UnicodeString; const aConnectInfo: Variant): IJSExtensionPort;
  32965. function connect(const aConnectInfo: Variant): IJSExtensionPort;
  32966. function connect: IJSExtensionPort;
  32967. function connectNative(const aApplication: UnicodeString): IJSExtensionPort;
  32968. function sendMessage(const aArgs: Variant): Variant{; ToDo:varargs};
  32969. function sendNativeMessage(const aApplication: UnicodeString; const aMessage: Variant; const aResponseCallback: TFunction): Variant;
  32970. function sendNativeMessage(const aApplication: UnicodeString; const aMessage: Variant): Variant;
  32971. function getBrowserInfo(const aCallback: TFunction): Variant;
  32972. function getBrowserInfo: Variant;
  32973. function getPlatformInfo(const aCallback: TFunction): Variant;
  32974. function getPlatformInfo: Variant;
  32975. property onStartup: IJSExtensionEventManager read _GetonStartup;
  32976. property onInstalled: IJSExtensionEventManager read _GetonInstalled;
  32977. property onUpdateAvailable: IJSExtensionEventManager read _GetonUpdateAvailable;
  32978. property onConnect: IJSExtensionEventManager read _GetonConnect;
  32979. property onConnectExternal: IJSExtensionEventManager read _GetonConnectExternal;
  32980. property onMessage: IJSExtensionEventManager read _GetonMessage;
  32981. property onMessageExternal: IJSExtensionEventManager read _GetonMessageExternal;
  32982. property lastError: Variant read _GetlastError;
  32983. property id: UnicodeString read _Getid;
  32984. end;
  32985. TJSExtensionRuntime = class(TJSObject,IJSExtensionRuntime)
  32986. Protected
  32987. function _GetonStartup: IJSExtensionEventManager;
  32988. function _GetonInstalled: IJSExtensionEventManager;
  32989. function _GetonUpdateAvailable: IJSExtensionEventManager;
  32990. function _GetonConnect: IJSExtensionEventManager;
  32991. function _GetonConnectExternal: IJSExtensionEventManager;
  32992. function _GetonMessage: IJSExtensionEventManager;
  32993. function _GetonMessageExternal: IJSExtensionEventManager;
  32994. function _GetlastError: Variant;
  32995. function _Getid: UnicodeString;
  32996. Public
  32997. function openOptionsPage(const aCallback: TFunction): Variant; overload;
  32998. function openOptionsPage: Variant; overload;
  32999. function getManifest: Variant; overload;
  33000. function getURL(const aPath: UnicodeString): UnicodeString; overload;
  33001. function setUninstallURL(const aUrl: UnicodeString; const aCallback: TFunction): Variant; overload;
  33002. function setUninstallURL(const aUrl: UnicodeString): Variant; overload;
  33003. function setUninstallURL(const aCallback: TFunction): Variant; overload;
  33004. function setUninstallURL: Variant; overload;
  33005. procedure reload; overload;
  33006. function connect(const aExtensionId: UnicodeString; const aConnectInfo: Variant): IJSExtensionPort; overload;
  33007. function connect(const aConnectInfo: Variant): IJSExtensionPort; overload;
  33008. function connect: IJSExtensionPort; overload;
  33009. function connectNative(const aApplication: UnicodeString): IJSExtensionPort; overload;
  33010. function sendMessage(const aArgs: Variant): Variant{; ToDo:varargs}; overload;
  33011. function sendNativeMessage(const aApplication: UnicodeString; const aMessage: Variant; const aResponseCallback: TFunction): Variant; overload;
  33012. function sendNativeMessage(const aApplication: UnicodeString; const aMessage: Variant): Variant; overload;
  33013. function getBrowserInfo(const aCallback: TFunction): Variant; overload;
  33014. function getBrowserInfo: Variant; overload;
  33015. function getPlatformInfo(const aCallback: TFunction): Variant; overload;
  33016. function getPlatformInfo: Variant; overload;
  33017. class function JSClassName: UnicodeString; override;
  33018. class function Cast(const Intf: IJSObject): IJSExtensionRuntime;
  33019. property onStartup: IJSExtensionEventManager read _GetonStartup;
  33020. property onInstalled: IJSExtensionEventManager read _GetonInstalled;
  33021. property onUpdateAvailable: IJSExtensionEventManager read _GetonUpdateAvailable;
  33022. property onConnect: IJSExtensionEventManager read _GetonConnect;
  33023. property onConnectExternal: IJSExtensionEventManager read _GetonConnectExternal;
  33024. property onMessage: IJSExtensionEventManager read _GetonMessage;
  33025. property onMessageExternal: IJSExtensionEventManager read _GetonMessageExternal;
  33026. property lastError: Variant read _GetlastError;
  33027. property id: UnicodeString read _Getid;
  33028. end;
  33029. { --------------------------------------------------------------------
  33030. TJSExtensionScripting
  33031. --------------------------------------------------------------------}
  33032. IJSExtensionScripting = interface(IJSObject)
  33033. ['{451E934A-8F5A-35F9-AE5D-C3C81F4D36E2}']
  33034. function executeScript(const aInjection: Variant; const aCallback: TFunction): Variant;
  33035. function executeScript(const aInjection: Variant): Variant;
  33036. function insertCSS(const aInjection: Variant; const aCallback: TFunction): Variant;
  33037. function insertCSS(const aInjection: Variant): Variant;
  33038. function removeCSS(const aInjection: Variant; const aCallback: TFunction): Variant;
  33039. function removeCSS(const aInjection: Variant): Variant;
  33040. function registerContentScripts(const aScripts: Variant; const aCallback: TFunction): Variant;
  33041. function registerContentScripts(const aScripts: Variant): Variant;
  33042. function getRegisteredContentScripts(const aArgs: Variant): Variant{; ToDo:varargs};
  33043. function unregisterContentScripts(const aArgs: Variant): Variant{; ToDo:varargs};
  33044. function updateContentScripts(const aScripts: Variant; const aCallback: TFunction): Variant;
  33045. function updateContentScripts(const aScripts: Variant): Variant;
  33046. end;
  33047. TJSExtensionScripting = class(TJSObject,IJSExtensionScripting)
  33048. Protected
  33049. Public
  33050. function executeScript(const aInjection: Variant; const aCallback: TFunction): Variant; overload;
  33051. function executeScript(const aInjection: Variant): Variant; overload;
  33052. function insertCSS(const aInjection: Variant; const aCallback: TFunction): Variant; overload;
  33053. function insertCSS(const aInjection: Variant): Variant; overload;
  33054. function removeCSS(const aInjection: Variant; const aCallback: TFunction): Variant; overload;
  33055. function removeCSS(const aInjection: Variant): Variant; overload;
  33056. function registerContentScripts(const aScripts: Variant; const aCallback: TFunction): Variant; overload;
  33057. function registerContentScripts(const aScripts: Variant): Variant; overload;
  33058. function getRegisteredContentScripts(const aArgs: Variant): Variant{; ToDo:varargs}; overload;
  33059. function unregisterContentScripts(const aArgs: Variant): Variant{; ToDo:varargs}; overload;
  33060. function updateContentScripts(const aScripts: Variant; const aCallback: TFunction): Variant; overload;
  33061. function updateContentScripts(const aScripts: Variant): Variant; overload;
  33062. class function JSClassName: UnicodeString; override;
  33063. class function Cast(const Intf: IJSObject): IJSExtensionScripting;
  33064. end;
  33065. { --------------------------------------------------------------------
  33066. TJSExtensionSetting
  33067. --------------------------------------------------------------------}
  33068. IJSExtensionSetting = interface(IJSObject)
  33069. ['{4E071567-68C9-3442-826F-1773A8537AA7}']
  33070. function _GetonChange: IJSExtensionEventManager;
  33071. function get(aDetails: IJSObject; const aCallback: TFunction): Variant;
  33072. function get(aDetails: IJSObject): Variant;
  33073. function set_(aDetails: IJSObject; const aCallback: TFunction): Variant;
  33074. function set_(aDetails: IJSObject): Variant;
  33075. function clear(aDetails: IJSObject; const aCallback: TFunction): Variant;
  33076. function clear(aDetails: IJSObject): Variant;
  33077. property onChange: IJSExtensionEventManager read _GetonChange;
  33078. end;
  33079. TJSExtensionSetting = class(TJSObject,IJSExtensionSetting)
  33080. Protected
  33081. function _GetonChange: IJSExtensionEventManager;
  33082. Public
  33083. function get(aDetails: IJSObject; const aCallback: TFunction): Variant; overload;
  33084. function get(aDetails: IJSObject): Variant; overload;
  33085. function set_(aDetails: IJSObject; const aCallback: TFunction): Variant; overload;
  33086. function set_(aDetails: IJSObject): Variant; overload;
  33087. function clear(aDetails: IJSObject; const aCallback: TFunction): Variant; overload;
  33088. function clear(aDetails: IJSObject): Variant; overload;
  33089. class function JSClassName: UnicodeString; override;
  33090. class function Cast(const Intf: IJSObject): IJSExtensionSetting;
  33091. property onChange: IJSExtensionEventManager read _GetonChange;
  33092. end;
  33093. { --------------------------------------------------------------------
  33094. TJSExtensionTest
  33095. --------------------------------------------------------------------}
  33096. IJSExtensionTest = interface(IJSObject)
  33097. ['{DF005F20-D3AC-343D-B813-4A5A49449699}']
  33098. function _GetonMessage: IJSExtensionEventManager;
  33099. procedure withHandlingUserInput(const aCallback: TFunction);
  33100. procedure notifyFail(const aMessage: UnicodeString);
  33101. procedure notifyPass(const aMessage: UnicodeString);
  33102. procedure notifyPass;
  33103. procedure log(const aMessage: UnicodeString);
  33104. procedure sendMessage(const aArgs: Variant){; ToDo:varargs};
  33105. procedure fail(const aMessage: Variant);
  33106. procedure fail;
  33107. procedure succeed(const aMessage: Variant);
  33108. procedure succeed;
  33109. procedure assertTrue(const aArgs: Variant){; ToDo:varargs};
  33110. procedure assertFalse(const aArgs: Variant){; ToDo:varargs};
  33111. procedure assertDeepEq(const aArgs: Variant){; ToDo:varargs};
  33112. procedure assertEq(const aArgs: Variant){; ToDo:varargs};
  33113. function assertRejects(aPromise: IJSPromise; const aExpectedError: Variant; const aMessage: UnicodeString; const aCallback: TFunction): Variant;
  33114. function assertRejects(aPromise: IJSPromise; const aExpectedError: Variant; const aMessage: UnicodeString): Variant;
  33115. function assertRejects(aPromise: IJSPromise; const aExpectedError: Variant; const aCallback: TFunction): Variant;
  33116. function assertRejects(aPromise: IJSPromise; const aExpectedError: Variant): Variant;
  33117. procedure assertThrows(const aFunc: TFunction; const aExpectedError: Variant; const aMessage: UnicodeString);
  33118. procedure assertThrows(const aFunc: TFunction; const aExpectedError: Variant);
  33119. property onMessage: IJSExtensionEventManager read _GetonMessage;
  33120. end;
  33121. TJSExtensionTest = class(TJSObject,IJSExtensionTest)
  33122. Protected
  33123. function _GetonMessage: IJSExtensionEventManager;
  33124. Public
  33125. procedure withHandlingUserInput(const aCallback: TFunction); overload;
  33126. procedure notifyFail(const aMessage: UnicodeString); overload;
  33127. procedure notifyPass(const aMessage: UnicodeString); overload;
  33128. procedure notifyPass; overload;
  33129. procedure log(const aMessage: UnicodeString); overload;
  33130. procedure sendMessage(const aArgs: Variant){; ToDo:varargs}; overload;
  33131. procedure fail(const aMessage: Variant); overload;
  33132. procedure fail; overload;
  33133. procedure succeed(const aMessage: Variant); overload;
  33134. procedure succeed; overload;
  33135. procedure assertTrue(const aArgs: Variant){; ToDo:varargs}; overload;
  33136. procedure assertFalse(const aArgs: Variant){; ToDo:varargs}; overload;
  33137. procedure assertDeepEq(const aArgs: Variant){; ToDo:varargs}; overload;
  33138. procedure assertEq(const aArgs: Variant){; ToDo:varargs}; overload;
  33139. function assertRejects(aPromise: IJSPromise; const aExpectedError: Variant; const aMessage: UnicodeString; const aCallback: TFunction): Variant; overload;
  33140. function assertRejects(aPromise: IJSPromise; const aExpectedError: Variant; const aMessage: UnicodeString): Variant; overload;
  33141. function assertRejects(aPromise: IJSPromise; const aExpectedError: Variant; const aCallback: TFunction): Variant; overload;
  33142. function assertRejects(aPromise: IJSPromise; const aExpectedError: Variant): Variant; overload;
  33143. procedure assertThrows(const aFunc: TFunction; const aExpectedError: Variant; const aMessage: UnicodeString); overload;
  33144. procedure assertThrows(const aFunc: TFunction; const aExpectedError: Variant); overload;
  33145. class function JSClassName: UnicodeString; override;
  33146. class function Cast(const Intf: IJSObject): IJSExtensionTest;
  33147. property onMessage: IJSExtensionEventManager read _GetonMessage;
  33148. end;
  33149. { --------------------------------------------------------------------
  33150. TJSExternal
  33151. --------------------------------------------------------------------}
  33152. IJSExternal = interface(IJSObject)
  33153. ['{AE84D490-C574-34AC-B627-56DF6C7C5B5E}']
  33154. procedure AddSearchProvider;
  33155. procedure IsSearchProviderInstalled;
  33156. end;
  33157. TJSExternal = class(TJSObject,IJSExternal)
  33158. Protected
  33159. Public
  33160. procedure AddSearchProvider; overload;
  33161. procedure IsSearchProviderInstalled; overload;
  33162. class function JSClassName: UnicodeString; override;
  33163. class function Cast(const Intf: IJSObject): IJSExternal;
  33164. end;
  33165. { --------------------------------------------------------------------
  33166. TJSFeaturePolicy
  33167. --------------------------------------------------------------------}
  33168. IJSFeaturePolicy = interface(IJSObject)
  33169. ['{846F2349-EAB9-389B-A9E3-819D564F136E}']
  33170. function allowsFeature(const aFeature: UnicodeString; const aOrigin: UnicodeString): Boolean;
  33171. function allowsFeature(const aFeature: UnicodeString): Boolean;
  33172. function features: TUnicodeStringDynArray;
  33173. function allowedFeatures: TUnicodeStringDynArray;
  33174. function getAllowlistForFeature(const aFeature: UnicodeString): TUnicodeStringDynArray;
  33175. end;
  33176. TJSFeaturePolicy = class(TJSObject,IJSFeaturePolicy)
  33177. Protected
  33178. Public
  33179. function allowsFeature(const aFeature: UnicodeString; const aOrigin: UnicodeString): Boolean; overload;
  33180. function allowsFeature(const aFeature: UnicodeString): Boolean; overload;
  33181. function features: TUnicodeStringDynArray; overload;
  33182. function allowedFeatures: TUnicodeStringDynArray; overload;
  33183. function getAllowlistForFeature(const aFeature: UnicodeString): TUnicodeStringDynArray; overload;
  33184. class function JSClassName: UnicodeString; override;
  33185. class function Cast(const Intf: IJSObject): IJSFeaturePolicy;
  33186. end;
  33187. { --------------------------------------------------------------------
  33188. TJSBody
  33189. --------------------------------------------------------------------}
  33190. IJSBody = interface(IJSObject)
  33191. ['{71627F30-F081-31B2-A3C2-703943ACC667}']
  33192. function _GetbodyUsed: Boolean;
  33193. function arrayBuffer: IJSPromise; // Promise<ArrayBuffer>
  33194. function blob: IJSPromise; // Promise<Blob>
  33195. function formData: IJSPromise; // Promise<FormData>
  33196. function json: IJSPromise; // Promise<JSON>
  33197. function text: IJSPromise; // Promise<USVString>
  33198. property bodyUsed: Boolean read _GetbodyUsed;
  33199. end;
  33200. TJSBody = class(TJSObject,IJSBody)
  33201. Protected
  33202. function _GetbodyUsed: Boolean;
  33203. Public
  33204. function arrayBuffer: IJSPromise; overload; // Promise<ArrayBuffer>
  33205. function blob: IJSPromise; overload; // Promise<Blob>
  33206. function formData: IJSPromise; overload; // Promise<FormData>
  33207. function json: IJSPromise; overload; // Promise<JSON>
  33208. function text: IJSPromise; overload; // Promise<USVString>
  33209. class function JSClassName: UnicodeString; override;
  33210. class function Cast(const Intf: IJSObject): IJSBody;
  33211. property bodyUsed: Boolean read _GetbodyUsed;
  33212. end;
  33213. { --------------------------------------------------------------------
  33214. TJSnsIFile
  33215. --------------------------------------------------------------------}
  33216. IJSnsIFile = interface(IJSObject)
  33217. ['{BE81BA80-7C79-33E0-B134-445241194965}']
  33218. end;
  33219. TJSnsIFile = class(TJSObject,IJSnsIFile)
  33220. Protected
  33221. Public
  33222. class function JSClassName: UnicodeString; override;
  33223. class function Cast(const Intf: IJSObject): IJSnsIFile;
  33224. end;
  33225. { --------------------------------------------------------------------
  33226. TJSFileList
  33227. --------------------------------------------------------------------}
  33228. IJSFileList = interface(IJSObject)
  33229. ['{488F4C5A-7B13-3E7A-9A09-8A3EED528BC7}']
  33230. function _Getlength_: Cardinal;
  33231. function item(aIndex: Cardinal): IJSFile;
  33232. property length_: Cardinal read _Getlength_;
  33233. end;
  33234. TJSFileList = class(TJSObject,IJSFileList)
  33235. Protected
  33236. function _Getlength_: Cardinal;
  33237. Public
  33238. function item(aIndex: Cardinal): IJSFile; overload;
  33239. class function JSClassName: UnicodeString; override;
  33240. class function Cast(const Intf: IJSObject): IJSFileList;
  33241. property length_: Cardinal read _Getlength_;
  33242. end;
  33243. { --------------------------------------------------------------------
  33244. TJSFileReaderSync
  33245. --------------------------------------------------------------------}
  33246. IJSFileReaderSync = interface(IJSObject)
  33247. ['{06D2D09E-616E-34B8-B772-00E797C373FE}']
  33248. function readAsArrayBuffer(aBlob: IJSBlob): IJSArrayBuffer;
  33249. function readAsBinaryString(aBlob: IJSBlob): UnicodeString;
  33250. function readAsText(aBlob: IJSBlob; const aEncoding: UnicodeString): UnicodeString;
  33251. function readAsText(aBlob: IJSBlob): UnicodeString;
  33252. function readAsDataURL(aBlob: IJSBlob): UnicodeString;
  33253. end;
  33254. TJSFileReaderSync = class(TJSObject,IJSFileReaderSync)
  33255. Protected
  33256. Public
  33257. constructor Create; overload;
  33258. function readAsArrayBuffer(aBlob: IJSBlob): IJSArrayBuffer; overload;
  33259. function readAsBinaryString(aBlob: IJSBlob): UnicodeString; overload;
  33260. function readAsText(aBlob: IJSBlob; const aEncoding: UnicodeString): UnicodeString; overload;
  33261. function readAsText(aBlob: IJSBlob): UnicodeString; overload;
  33262. function readAsDataURL(aBlob: IJSBlob): UnicodeString; overload;
  33263. class function JSClassName: UnicodeString; override;
  33264. class function Cast(const Intf: IJSObject): IJSFileReaderSync;
  33265. end;
  33266. { --------------------------------------------------------------------
  33267. TJSFileSystem
  33268. --------------------------------------------------------------------}
  33269. IJSFileSystem = interface(IJSObject)
  33270. ['{18FE59D4-4755-321C-9D11-0E9A11AD12B1}']
  33271. function _Getname: UnicodeString;
  33272. function _Getroot: IJSFileSystemDirectoryEntry;
  33273. property name: UnicodeString read _Getname;
  33274. property root: IJSFileSystemDirectoryEntry read _Getroot;
  33275. end;
  33276. TJSFileSystem = class(TJSObject,IJSFileSystem)
  33277. Protected
  33278. function _Getname: UnicodeString;
  33279. function _Getroot: IJSFileSystemDirectoryEntry;
  33280. Public
  33281. class function JSClassName: UnicodeString; override;
  33282. class function Cast(const Intf: IJSObject): IJSFileSystem;
  33283. property name: UnicodeString read _Getname;
  33284. property root: IJSFileSystemDirectoryEntry read _Getroot;
  33285. end;
  33286. { --------------------------------------------------------------------
  33287. TJSFileSystemDirectoryIterator
  33288. --------------------------------------------------------------------}
  33289. IJSFileSystemDirectoryIterator = interface(IJSObject)
  33290. ['{F8D8CEBF-F607-31DB-BEC3-D5637F2FFD51}']
  33291. function next: IJSPromise; // Promise<any>
  33292. end;
  33293. TJSFileSystemDirectoryIterator = class(TJSObject,IJSFileSystemDirectoryIterator)
  33294. Protected
  33295. Public
  33296. function next: IJSPromise; overload; // Promise<any>
  33297. class function JSClassName: UnicodeString; override;
  33298. class function Cast(const Intf: IJSObject): IJSFileSystemDirectoryIterator;
  33299. end;
  33300. { --------------------------------------------------------------------
  33301. TJSFileSystemDirectoryReader
  33302. --------------------------------------------------------------------}
  33303. IJSFileSystemDirectoryReader = interface(IJSObject)
  33304. ['{012F8DD6-A32E-3129-A2E4-19053F93DA75}']
  33305. procedure readEntries(const aSuccessCallback: TFileSystemEntriesCallback; const aErrorCallback: TErrorCallback);
  33306. procedure readEntries(const aSuccessCallback: TFileSystemEntriesCallback);
  33307. end;
  33308. TJSFileSystemDirectoryReader = class(TJSObject,IJSFileSystemDirectoryReader)
  33309. Protected
  33310. Public
  33311. procedure readEntries(const aSuccessCallback: TFileSystemEntriesCallback; const aErrorCallback: TErrorCallback); overload;
  33312. procedure readEntries(const aSuccessCallback: TFileSystemEntriesCallback); overload;
  33313. class function JSClassName: UnicodeString; override;
  33314. class function Cast(const Intf: IJSObject): IJSFileSystemDirectoryReader;
  33315. end;
  33316. { --------------------------------------------------------------------
  33317. TJSFileSystemEntry
  33318. --------------------------------------------------------------------}
  33319. IJSFileSystemEntry = interface(IJSObject)
  33320. ['{5BEE87E9-67F9-3987-98A3-A4E050626A39}']
  33321. function _GetisFile: Boolean;
  33322. function _GetisDirectory: Boolean;
  33323. function _Getname: UnicodeString;
  33324. function _GetfullPath: UnicodeString;
  33325. function _Getfilesystem: IJSFileSystem;
  33326. procedure getParent(const aSuccessCallback: TFileSystemEntryCallback; const aErrorCallback: TErrorCallback);
  33327. procedure getParent;
  33328. procedure getParent(const aSuccessCallback: TFileSystemEntryCallback);
  33329. property isFile: Boolean read _GetisFile;
  33330. property isDirectory: Boolean read _GetisDirectory;
  33331. property name: UnicodeString read _Getname;
  33332. property fullPath: UnicodeString read _GetfullPath;
  33333. property filesystem: IJSFileSystem read _Getfilesystem;
  33334. end;
  33335. TJSFileSystemEntry = class(TJSObject,IJSFileSystemEntry)
  33336. Protected
  33337. function _GetisFile: Boolean;
  33338. function _GetisDirectory: Boolean;
  33339. function _Getname: UnicodeString;
  33340. function _GetfullPath: UnicodeString;
  33341. function _Getfilesystem: IJSFileSystem;
  33342. Public
  33343. procedure getParent(const aSuccessCallback: TFileSystemEntryCallback; const aErrorCallback: TErrorCallback); overload;
  33344. procedure getParent; overload;
  33345. procedure getParent(const aSuccessCallback: TFileSystemEntryCallback); overload;
  33346. class function JSClassName: UnicodeString; override;
  33347. class function Cast(const Intf: IJSObject): IJSFileSystemEntry;
  33348. property isFile: Boolean read _GetisFile;
  33349. property isDirectory: Boolean read _GetisDirectory;
  33350. property name: UnicodeString read _Getname;
  33351. property fullPath: UnicodeString read _GetfullPath;
  33352. property filesystem: IJSFileSystem read _Getfilesystem;
  33353. end;
  33354. { --------------------------------------------------------------------
  33355. TJSFileSystemHandle
  33356. --------------------------------------------------------------------}
  33357. IJSFileSystemHandle = interface(IJSObject)
  33358. ['{4AE4D2AC-DFE6-315D-B8E8-8B87D83A60EF}']
  33359. function _Getkind: TFileSystemHandleKind;
  33360. function _Getname: UnicodeString;
  33361. function move(const aName: UnicodeString): IJSPromise; // Promise<undefined>
  33362. function move(aParent: IJSFileSystemDirectoryHandle): IJSPromise; // Promise<undefined>
  33363. function move(aParent: IJSFileSystemDirectoryHandle; const aName: UnicodeString): IJSPromise; // Promise<undefined>
  33364. function isSameEntry(aOther: IJSFileSystemHandle): IJSPromise; // Promise<boolean>
  33365. property kind: TFileSystemHandleKind read _Getkind;
  33366. property name: UnicodeString read _Getname;
  33367. end;
  33368. TJSFileSystemHandle = class(TJSObject,IJSFileSystemHandle)
  33369. Protected
  33370. function _Getkind: TFileSystemHandleKind;
  33371. function _Getname: UnicodeString;
  33372. Public
  33373. function move(const aName: UnicodeString): IJSPromise; overload; // Promise<undefined>
  33374. function move(aParent: IJSFileSystemDirectoryHandle): IJSPromise; overload; // Promise<undefined>
  33375. function move(aParent: IJSFileSystemDirectoryHandle; const aName: UnicodeString): IJSPromise; overload; // Promise<undefined>
  33376. function isSameEntry(aOther: IJSFileSystemHandle): IJSPromise; overload; // Promise<boolean>
  33377. class function JSClassName: UnicodeString; override;
  33378. class function Cast(const Intf: IJSObject): IJSFileSystemHandle;
  33379. property kind: TFileSystemHandleKind read _Getkind;
  33380. property name: UnicodeString read _Getname;
  33381. end;
  33382. { --------------------------------------------------------------------
  33383. TJSFileSystemSyncAccessHandle
  33384. --------------------------------------------------------------------}
  33385. // Union of ArrayBufferView, ArrayBuffer
  33386. TFileSystemSyncAccessHandle_read_buffer_Type = Variant;
  33387. // Union of ArrayBufferView, ArrayBuffer
  33388. TFileSystemSyncAccessHandle_write_buffer_Type = Variant;
  33389. IJSFileSystemSyncAccessHandle = interface(IJSObject)
  33390. ['{64CD14B4-44A2-3112-8207-C82EC437D34E}']
  33391. function read(aBuffer: IJSArrayBuffer; const aOptions: TJSFileSystemReadWriteOptions): QWord;
  33392. function read(aBuffer: IJSArrayBufferView; const aOptions: TJSFileSystemReadWriteOptions): QWord;
  33393. function read(aBuffer: IJSArrayBufferView): QWord;
  33394. function read(aBuffer: IJSArrayBuffer): QWord;
  33395. function write(aBuffer: IJSArrayBuffer; const aOptions: TJSFileSystemReadWriteOptions): QWord;
  33396. function write(aBuffer: IJSArrayBufferView; const aOptions: TJSFileSystemReadWriteOptions): QWord;
  33397. function write(aBuffer: IJSArrayBufferView): QWord;
  33398. function write(aBuffer: IJSArrayBuffer): QWord;
  33399. procedure truncate(aSize: QWord);
  33400. function getSize: QWord;
  33401. procedure flush;
  33402. procedure close;
  33403. end;
  33404. TJSFileSystemSyncAccessHandle = class(TJSObject,IJSFileSystemSyncAccessHandle)
  33405. Protected
  33406. Public
  33407. function read(aBuffer: IJSArrayBuffer; const aOptions: TJSFileSystemReadWriteOptions): QWord; overload;
  33408. function read(aBuffer: IJSArrayBufferView; const aOptions: TJSFileSystemReadWriteOptions): QWord; overload;
  33409. function read(aBuffer: IJSArrayBufferView): QWord; overload;
  33410. function read(aBuffer: IJSArrayBuffer): QWord; overload;
  33411. function write(aBuffer: IJSArrayBuffer; const aOptions: TJSFileSystemReadWriteOptions): QWord; overload;
  33412. function write(aBuffer: IJSArrayBufferView; const aOptions: TJSFileSystemReadWriteOptions): QWord; overload;
  33413. function write(aBuffer: IJSArrayBufferView): QWord; overload;
  33414. function write(aBuffer: IJSArrayBuffer): QWord; overload;
  33415. procedure truncate(aSize: QWord); overload;
  33416. function getSize: QWord; overload;
  33417. procedure flush; overload;
  33418. procedure close; overload;
  33419. class function JSClassName: UnicodeString; override;
  33420. class function Cast(const Intf: IJSObject): IJSFileSystemSyncAccessHandle;
  33421. end;
  33422. { --------------------------------------------------------------------
  33423. TJSFontFace
  33424. --------------------------------------------------------------------}
  33425. // Union of UTF8String, BinaryData
  33426. TFontFace_New_source_Type = Variant;
  33427. IJSFontFace = interface(IJSObject)
  33428. ['{BB941FF5-D536-372D-8FFE-14119DDDAC27}']
  33429. function _Getfamily: UTF8String;
  33430. function _Getstyle: UTF8String;
  33431. function _Getweight: UTF8String;
  33432. function _Getstretch: UTF8String;
  33433. function _GetunicodeRange: UTF8String;
  33434. function _Getvariant: UTF8String;
  33435. function _GetfeatureSettings: UTF8String;
  33436. function _GetvariationSettings: UTF8String;
  33437. function _Getdisplay: UTF8String;
  33438. function _GetascentOverride: UTF8String;
  33439. function _GetdescentOverride: UTF8String;
  33440. function _GetlineGapOverride: UTF8String;
  33441. function _GetsizeAdjust: UTF8String;
  33442. function _Getstatus: TFontFaceLoadStatus;
  33443. function _Getloaded: IJSPromise;
  33444. procedure _Setfamily(const aValue: UTF8String);
  33445. procedure _Setstyle(const aValue: UTF8String);
  33446. procedure _Setweight(const aValue: UTF8String);
  33447. procedure _Setstretch(const aValue: UTF8String);
  33448. procedure _SetunicodeRange(const aValue: UTF8String);
  33449. procedure _Setvariant(const aValue: UTF8String);
  33450. procedure _SetfeatureSettings(const aValue: UTF8String);
  33451. procedure _SetvariationSettings(const aValue: UTF8String);
  33452. procedure _Setdisplay(const aValue: UTF8String);
  33453. procedure _SetascentOverride(const aValue: UTF8String);
  33454. procedure _SetdescentOverride(const aValue: UTF8String);
  33455. procedure _SetlineGapOverride(const aValue: UTF8String);
  33456. procedure _SetsizeAdjust(const aValue: UTF8String);
  33457. function load: IJSPromise; // Promise<FontFace>
  33458. property family: UTF8String read _Getfamily write _Setfamily;
  33459. property style: UTF8String read _Getstyle write _Setstyle;
  33460. property weight: UTF8String read _Getweight write _Setweight;
  33461. property stretch: UTF8String read _Getstretch write _Setstretch;
  33462. property unicodeRange: UTF8String read _GetunicodeRange write _SetunicodeRange;
  33463. property variant: UTF8String read _Getvariant write _Setvariant;
  33464. property featureSettings: UTF8String read _GetfeatureSettings write _SetfeatureSettings;
  33465. property variationSettings: UTF8String read _GetvariationSettings write _SetvariationSettings;
  33466. property display: UTF8String read _Getdisplay write _Setdisplay;
  33467. property ascentOverride: UTF8String read _GetascentOverride write _SetascentOverride;
  33468. property descentOverride: UTF8String read _GetdescentOverride write _SetdescentOverride;
  33469. property lineGapOverride: UTF8String read _GetlineGapOverride write _SetlineGapOverride;
  33470. property sizeAdjust: UTF8String read _GetsizeAdjust write _SetsizeAdjust;
  33471. property status: TFontFaceLoadStatus read _Getstatus;
  33472. property loaded: IJSPromise read _Getloaded;
  33473. end;
  33474. TJSFontFace = class(TJSObject,IJSFontFace)
  33475. Protected
  33476. function _Getfamily: UTF8String;
  33477. function _Getstyle: UTF8String;
  33478. function _Getweight: UTF8String;
  33479. function _Getstretch: UTF8String;
  33480. function _GetunicodeRange: UTF8String;
  33481. function _Getvariant: UTF8String;
  33482. function _GetfeatureSettings: UTF8String;
  33483. function _GetvariationSettings: UTF8String;
  33484. function _Getdisplay: UTF8String;
  33485. function _GetascentOverride: UTF8String;
  33486. function _GetdescentOverride: UTF8String;
  33487. function _GetlineGapOverride: UTF8String;
  33488. function _GetsizeAdjust: UTF8String;
  33489. function _Getstatus: TFontFaceLoadStatus;
  33490. function _Getloaded: IJSPromise;
  33491. procedure _Setfamily(const aValue: UTF8String);
  33492. procedure _Setstyle(const aValue: UTF8String);
  33493. procedure _Setweight(const aValue: UTF8String);
  33494. procedure _Setstretch(const aValue: UTF8String);
  33495. procedure _SetunicodeRange(const aValue: UTF8String);
  33496. procedure _Setvariant(const aValue: UTF8String);
  33497. procedure _SetfeatureSettings(const aValue: UTF8String);
  33498. procedure _SetvariationSettings(const aValue: UTF8String);
  33499. procedure _Setdisplay(const aValue: UTF8String);
  33500. procedure _SetascentOverride(const aValue: UTF8String);
  33501. procedure _SetdescentOverride(const aValue: UTF8String);
  33502. procedure _SetlineGapOverride(const aValue: UTF8String);
  33503. procedure _SetsizeAdjust(const aValue: UTF8String);
  33504. Public
  33505. constructor Create(const aFamily: UTF8String; const aSource: TBinaryData; const aDescriptors: TJSFontFaceDescriptors); overload;
  33506. constructor Create(const aFamily: UTF8String; const aSource: UTF8String; const aDescriptors: TJSFontFaceDescriptors); overload;
  33507. constructor Create(const aFamily: UTF8String; const aSource: UTF8String); overload;
  33508. constructor Create(const aFamily: UTF8String; const aSource: TBinaryData); overload;
  33509. function load: IJSPromise; overload; // Promise<FontFace>
  33510. class function JSClassName: UnicodeString; override;
  33511. class function Cast(const Intf: IJSObject): IJSFontFace;
  33512. property family: UTF8String read _Getfamily write _Setfamily;
  33513. property style: UTF8String read _Getstyle write _Setstyle;
  33514. property weight: UTF8String read _Getweight write _Setweight;
  33515. property stretch: UTF8String read _Getstretch write _Setstretch;
  33516. property unicodeRange: UTF8String read _GetunicodeRange write _SetunicodeRange;
  33517. property variant: UTF8String read _Getvariant write _Setvariant;
  33518. property featureSettings: UTF8String read _GetfeatureSettings write _SetfeatureSettings;
  33519. property variationSettings: UTF8String read _GetvariationSettings write _SetvariationSettings;
  33520. property display: UTF8String read _Getdisplay write _Setdisplay;
  33521. property ascentOverride: UTF8String read _GetascentOverride write _SetascentOverride;
  33522. property descentOverride: UTF8String read _GetdescentOverride write _SetdescentOverride;
  33523. property lineGapOverride: UTF8String read _GetlineGapOverride write _SetlineGapOverride;
  33524. property sizeAdjust: UTF8String read _GetsizeAdjust write _SetsizeAdjust;
  33525. property status: TFontFaceLoadStatus read _Getstatus;
  33526. property loaded: IJSPromise read _Getloaded;
  33527. end;
  33528. { --------------------------------------------------------------------
  33529. TJSFontFaceSetIterator
  33530. --------------------------------------------------------------------}
  33531. IJSFontFaceSetIterator = interface(IJSObject)
  33532. ['{7D9DEC67-F7B5-34B8-9BFD-519DAC3A8302}']
  33533. function next: TJSFontFaceSetIteratorResult;
  33534. end;
  33535. TJSFontFaceSetIterator = class(TJSObject,IJSFontFaceSetIterator)
  33536. Protected
  33537. Public
  33538. function next: TJSFontFaceSetIteratorResult; overload;
  33539. class function JSClassName: UnicodeString; override;
  33540. class function Cast(const Intf: IJSObject): IJSFontFaceSetIterator;
  33541. end;
  33542. { --------------------------------------------------------------------
  33543. TJSFontFaceSource
  33544. --------------------------------------------------------------------}
  33545. IJSFontFaceSource = interface(IJSObject)
  33546. ['{051E8561-99AB-3181-8B0E-03A312E0314C}']
  33547. function _Getfonts: IJSFontFaceSet;
  33548. property fonts: IJSFontFaceSet read _Getfonts;
  33549. end;
  33550. TJSFontFaceSource = class(TJSObject,IJSFontFaceSource)
  33551. Protected
  33552. function _Getfonts: IJSFontFaceSet;
  33553. Public
  33554. class function JSClassName: UnicodeString; override;
  33555. class function Cast(const Intf: IJSObject): IJSFontFaceSource;
  33556. property fonts: IJSFontFaceSet read _Getfonts;
  33557. end;
  33558. { --------------------------------------------------------------------
  33559. TJSFormData
  33560. --------------------------------------------------------------------}
  33561. TFormDataEntryValueDynArray = IJSArray; // array of FormDataEntryValue
  33562. IJSFormData = interface(IJSObject)
  33563. ['{2E99E2FA-2016-3D80-95F1-0B04E8B02321}']
  33564. procedure append(const aName: UnicodeString; aValue: IJSBlob; const aFilename: UnicodeString);
  33565. procedure append(const aName: UnicodeString; aValue: IJSBlob);
  33566. procedure append(const aName: UnicodeString; const aValue: UnicodeString);
  33567. procedure delete(const aName: UnicodeString);
  33568. function get(const aName: UnicodeString): TFormDataEntryValue;
  33569. function getAll(const aName: UnicodeString): TFormDataEntryValueDynArray;
  33570. function has(const aName: UnicodeString): Boolean;
  33571. procedure set_(const aName: UnicodeString; aValue: IJSBlob; const aFilename: UnicodeString);
  33572. procedure set_(const aName: UnicodeString; aValue: IJSBlob);
  33573. procedure set_(const aName: UnicodeString; const aValue: UnicodeString);
  33574. end;
  33575. TJSFormData = class(TJSObject,IJSFormData)
  33576. Protected
  33577. Public
  33578. constructor Create(aForm: IJSHTMLFormElement; aSubmitter: IJSHTMLElement); overload;
  33579. constructor Create; overload;
  33580. constructor Create(aForm: IJSHTMLFormElement); overload;
  33581. procedure append(const aName: UnicodeString; aValue: IJSBlob; const aFilename: UnicodeString); overload;
  33582. procedure append(const aName: UnicodeString; aValue: IJSBlob); overload;
  33583. procedure append(const aName: UnicodeString; const aValue: UnicodeString); overload;
  33584. procedure delete(const aName: UnicodeString); overload;
  33585. function get(const aName: UnicodeString): TFormDataEntryValue; overload;
  33586. function getAll(const aName: UnicodeString): TFormDataEntryValueDynArray; overload;
  33587. function has(const aName: UnicodeString): Boolean; overload;
  33588. procedure set_(const aName: UnicodeString; aValue: IJSBlob; const aFilename: UnicodeString); overload;
  33589. procedure set_(const aName: UnicodeString; aValue: IJSBlob); overload;
  33590. procedure set_(const aName: UnicodeString; const aValue: UnicodeString); overload;
  33591. class function JSClassName: UnicodeString; override;
  33592. class function Cast(const Intf: IJSObject): IJSFormData;
  33593. end;
  33594. { --------------------------------------------------------------------
  33595. TJSFragmentDirective
  33596. --------------------------------------------------------------------}
  33597. IJSFragmentDirective = interface(IJSObject)
  33598. ['{2B7D2955-9F1C-3389-B938-0EF260F8698D}']
  33599. end;
  33600. TJSFragmentDirective = class(TJSObject,IJSFragmentDirective)
  33601. Protected
  33602. Public
  33603. class function JSClassName: UnicodeString; override;
  33604. class function Cast(const Intf: IJSObject): IJSFragmentDirective;
  33605. end;
  33606. { --------------------------------------------------------------------
  33607. TJSGamepadButton
  33608. --------------------------------------------------------------------}
  33609. IJSGamepadButton = interface(IJSObject)
  33610. ['{A7D2F05B-787C-3AE3-922F-1FB0AE5E43A8}']
  33611. function _Getpressed: Boolean;
  33612. function _Gettouched: Boolean;
  33613. function _Getvalue: Double;
  33614. property pressed: Boolean read _Getpressed;
  33615. property touched: Boolean read _Gettouched;
  33616. property value: Double read _Getvalue;
  33617. end;
  33618. TJSGamepadButton = class(TJSObject,IJSGamepadButton)
  33619. Protected
  33620. function _Getpressed: Boolean;
  33621. function _Gettouched: Boolean;
  33622. function _Getvalue: Double;
  33623. Public
  33624. class function JSClassName: UnicodeString; override;
  33625. class function Cast(const Intf: IJSObject): IJSGamepadButton;
  33626. property pressed: Boolean read _Getpressed;
  33627. property touched: Boolean read _Gettouched;
  33628. property value: Double read _Getvalue;
  33629. end;
  33630. { --------------------------------------------------------------------
  33631. TJSGamepad
  33632. --------------------------------------------------------------------}
  33633. TJSGamepadButtonDynArray = IJSArray; // array of GamepadButton
  33634. TJSGamepadHapticActuatorDynArray = IJSArray; // array of GamepadHapticActuator
  33635. TJSGamepadLightIndicatorDynArray = IJSArray; // array of GamepadLightIndicator
  33636. TJSGamepadTouchDynArray = IJSArray; // array of GamepadTouch
  33637. IJSGamepad = interface(IJSObject)
  33638. ['{86D4DA35-A9E3-3F7B-AC32-367CBD7AA26B}']
  33639. function _Getid: UnicodeString;
  33640. function _Getindex: LongInt;
  33641. function _Getmapping: TGamepadMappingType;
  33642. function _Gethand: TGamepadHand;
  33643. function _GetdisplayId: Cardinal;
  33644. function _Getconnected: Boolean;
  33645. function _Getbuttons: TJSGamepadButtonDynArray;
  33646. function _Getaxes: TDoubleDynArray;
  33647. function _Gettimestamp: TDOMHighResTimeStamp;
  33648. function _Getpose: IJSGamepadPose;
  33649. function _GethapticActuators: TJSGamepadHapticActuatorDynArray;
  33650. function _GetlightIndicators: TJSGamepadLightIndicatorDynArray;
  33651. function _GettouchEvents: TJSGamepadTouchDynArray;
  33652. property id: UnicodeString read _Getid;
  33653. property index: LongInt read _Getindex;
  33654. property mapping: TGamepadMappingType read _Getmapping;
  33655. property hand: TGamepadHand read _Gethand;
  33656. property displayId: Cardinal read _GetdisplayId;
  33657. property connected: Boolean read _Getconnected;
  33658. property buttons: TJSGamepadButtonDynArray read _Getbuttons;
  33659. property axes: TDoubleDynArray read _Getaxes;
  33660. property timestamp: TDOMHighResTimeStamp read _Gettimestamp;
  33661. property pose: IJSGamepadPose read _Getpose;
  33662. property hapticActuators: TJSGamepadHapticActuatorDynArray read _GethapticActuators;
  33663. property lightIndicators: TJSGamepadLightIndicatorDynArray read _GetlightIndicators;
  33664. property touchEvents: TJSGamepadTouchDynArray read _GettouchEvents;
  33665. end;
  33666. TJSGamepad = class(TJSObject,IJSGamepad)
  33667. Protected
  33668. function _Getid: UnicodeString;
  33669. function _Getindex: LongInt;
  33670. function _Getmapping: TGamepadMappingType;
  33671. function _Gethand: TGamepadHand;
  33672. function _GetdisplayId: Cardinal;
  33673. function _Getconnected: Boolean;
  33674. function _Getbuttons: TJSGamepadButtonDynArray;
  33675. function _Getaxes: TDoubleDynArray;
  33676. function _Gettimestamp: TDOMHighResTimeStamp;
  33677. function _Getpose: IJSGamepadPose;
  33678. function _GethapticActuators: TJSGamepadHapticActuatorDynArray;
  33679. function _GetlightIndicators: TJSGamepadLightIndicatorDynArray;
  33680. function _GettouchEvents: TJSGamepadTouchDynArray;
  33681. Public
  33682. class function JSClassName: UnicodeString; override;
  33683. class function Cast(const Intf: IJSObject): IJSGamepad;
  33684. property id: UnicodeString read _Getid;
  33685. property index: LongInt read _Getindex;
  33686. property mapping: TGamepadMappingType read _Getmapping;
  33687. property hand: TGamepadHand read _Gethand;
  33688. property displayId: Cardinal read _GetdisplayId;
  33689. property connected: Boolean read _Getconnected;
  33690. property buttons: TJSGamepadButtonDynArray read _Getbuttons;
  33691. property axes: TDoubleDynArray read _Getaxes;
  33692. property timestamp: TDOMHighResTimeStamp read _Gettimestamp;
  33693. property pose: IJSGamepadPose read _Getpose;
  33694. property hapticActuators: TJSGamepadHapticActuatorDynArray read _GethapticActuators;
  33695. property lightIndicators: TJSGamepadLightIndicatorDynArray read _GetlightIndicators;
  33696. property touchEvents: TJSGamepadTouchDynArray read _GettouchEvents;
  33697. end;
  33698. { --------------------------------------------------------------------
  33699. TJSGamepadHapticActuator
  33700. --------------------------------------------------------------------}
  33701. IJSGamepadHapticActuator = interface(IJSObject)
  33702. ['{ECF9152F-5871-3C7B-881F-2A80BED2DB7B}']
  33703. function _Gettype_: TGamepadHapticActuatorType;
  33704. function pulse(aValue: Double; aDuration: Double): IJSPromise; // Promise<boolean>
  33705. property type_: TGamepadHapticActuatorType read _Gettype_;
  33706. end;
  33707. TJSGamepadHapticActuator = class(TJSObject,IJSGamepadHapticActuator)
  33708. Protected
  33709. function _Gettype_: TGamepadHapticActuatorType;
  33710. Public
  33711. function pulse(aValue: Double; aDuration: Double): IJSPromise; overload; // Promise<boolean>
  33712. class function JSClassName: UnicodeString; override;
  33713. class function Cast(const Intf: IJSObject): IJSGamepadHapticActuator;
  33714. property type_: TGamepadHapticActuatorType read _Gettype_;
  33715. end;
  33716. { --------------------------------------------------------------------
  33717. TJSGamepadLightIndicator
  33718. --------------------------------------------------------------------}
  33719. IJSGamepadLightIndicator = interface(IJSObject)
  33720. ['{DFBD90D2-91E7-3377-A46B-14739EFBBB68}']
  33721. function _Gettype_: TGamepadLightIndicatorType;
  33722. function setColor(const aColor: TJSGamepadLightColor): IJSPromise; // Promise<boolean>
  33723. property type_: TGamepadLightIndicatorType read _Gettype_;
  33724. end;
  33725. TJSGamepadLightIndicator = class(TJSObject,IJSGamepadLightIndicator)
  33726. Protected
  33727. function _Gettype_: TGamepadLightIndicatorType;
  33728. Public
  33729. function setColor(const aColor: TJSGamepadLightColor): IJSPromise; overload; // Promise<boolean>
  33730. class function JSClassName: UnicodeString; override;
  33731. class function Cast(const Intf: IJSObject): IJSGamepadLightIndicator;
  33732. property type_: TGamepadLightIndicatorType read _Gettype_;
  33733. end;
  33734. { --------------------------------------------------------------------
  33735. TJSGamepadPose
  33736. --------------------------------------------------------------------}
  33737. IJSGamepadPose = interface(IJSObject)
  33738. ['{78FB0E20-331B-3F93-A35B-A2DB6BC6B74B}']
  33739. function _GethasOrientation: Boolean;
  33740. function _GethasPosition: Boolean;
  33741. function _Getposition: IJSFloat32Array;
  33742. function _GetlinearVelocity: IJSFloat32Array;
  33743. function _GetlinearAcceleration: IJSFloat32Array;
  33744. function _Getorientation: IJSFloat32Array;
  33745. function _GetangularVelocity: IJSFloat32Array;
  33746. function _GetangularAcceleration: IJSFloat32Array;
  33747. property hasOrientation: Boolean read _GethasOrientation;
  33748. property hasPosition: Boolean read _GethasPosition;
  33749. property position: IJSFloat32Array read _Getposition;
  33750. property linearVelocity: IJSFloat32Array read _GetlinearVelocity;
  33751. property linearAcceleration: IJSFloat32Array read _GetlinearAcceleration;
  33752. property orientation: IJSFloat32Array read _Getorientation;
  33753. property angularVelocity: IJSFloat32Array read _GetangularVelocity;
  33754. property angularAcceleration: IJSFloat32Array read _GetangularAcceleration;
  33755. end;
  33756. TJSGamepadPose = class(TJSObject,IJSGamepadPose)
  33757. Protected
  33758. function _GethasOrientation: Boolean;
  33759. function _GethasPosition: Boolean;
  33760. function _Getposition: IJSFloat32Array;
  33761. function _GetlinearVelocity: IJSFloat32Array;
  33762. function _GetlinearAcceleration: IJSFloat32Array;
  33763. function _Getorientation: IJSFloat32Array;
  33764. function _GetangularVelocity: IJSFloat32Array;
  33765. function _GetangularAcceleration: IJSFloat32Array;
  33766. Public
  33767. class function JSClassName: UnicodeString; override;
  33768. class function Cast(const Intf: IJSObject): IJSGamepadPose;
  33769. property hasOrientation: Boolean read _GethasOrientation;
  33770. property hasPosition: Boolean read _GethasPosition;
  33771. property position: IJSFloat32Array read _Getposition;
  33772. property linearVelocity: IJSFloat32Array read _GetlinearVelocity;
  33773. property linearAcceleration: IJSFloat32Array read _GetlinearAcceleration;
  33774. property orientation: IJSFloat32Array read _Getorientation;
  33775. property angularVelocity: IJSFloat32Array read _GetangularVelocity;
  33776. property angularAcceleration: IJSFloat32Array read _GetangularAcceleration;
  33777. end;
  33778. { --------------------------------------------------------------------
  33779. TJSGamepadServiceTest
  33780. --------------------------------------------------------------------}
  33781. IJSGamepadServiceTest = interface(IJSObject)
  33782. ['{38264F34-F0E1-398E-967C-92509F869280}']
  33783. function _GetnoMapping: TGamepadMappingType;
  33784. function _GetstandardMapping: TGamepadMappingType;
  33785. function _GetnoHand: TGamepadHand;
  33786. function _GetleftHand: TGamepadHand;
  33787. function _GetrightHand: TGamepadHand;
  33788. function addGamepad(const aId: UnicodeString; aMapping: TGamepadMappingType; aHand: TGamepadHand; aNumButtons: Cardinal; aNumAxes: Cardinal; aNumHaptics: Cardinal; aNumLightIndicator: Cardinal; aNumTouchEvents: Cardinal): IJSPromise; // Promise<unsigned long>
  33789. function removeGamepad(aIndex: Cardinal): IJSPromise; // Promise<unsigned long>
  33790. function newButtonEvent(aIndex: Cardinal; aButton: Cardinal; aPressed: Boolean; aTouched: Boolean): IJSPromise; // Promise<unsigned long>
  33791. function newButtonValueEvent(aIndex: Cardinal; aButton: Cardinal; aPressed: Boolean; aTouched: Boolean; aValue: Double): IJSPromise; // Promise<unsigned long>
  33792. function newAxisMoveEvent(aIndex: Cardinal; aAxis: Cardinal; aValue: Double): IJSPromise; // Promise<unsigned long>
  33793. function newPoseMove(aIndex: Cardinal; aOrient: IJSFloat32Array; aPos: IJSFloat32Array; aAngVelocity: IJSFloat32Array; aAngAcceleration: IJSFloat32Array; aLinVelocity: IJSFloat32Array; aLinAcceleration: IJSFloat32Array): IJSPromise; // Promise<unsigned long>
  33794. function newTouch(aIndex: Cardinal; aATouchArrayIndex: Cardinal; aTouchId: Cardinal; aSurfaceId: Byte; aPosition: IJSFloat32Array; aSurfaceDimension: IJSFloat32Array): IJSPromise; // Promise<unsigned long>
  33795. property noMapping: TGamepadMappingType read _GetnoMapping;
  33796. property standardMapping: TGamepadMappingType read _GetstandardMapping;
  33797. property noHand: TGamepadHand read _GetnoHand;
  33798. property leftHand: TGamepadHand read _GetleftHand;
  33799. property rightHand: TGamepadHand read _GetrightHand;
  33800. end;
  33801. TJSGamepadServiceTest = class(TJSObject,IJSGamepadServiceTest)
  33802. Protected
  33803. function _GetnoMapping: TGamepadMappingType;
  33804. function _GetstandardMapping: TGamepadMappingType;
  33805. function _GetnoHand: TGamepadHand;
  33806. function _GetleftHand: TGamepadHand;
  33807. function _GetrightHand: TGamepadHand;
  33808. Public
  33809. function addGamepad(const aId: UnicodeString; aMapping: TGamepadMappingType; aHand: TGamepadHand; aNumButtons: Cardinal; aNumAxes: Cardinal; aNumHaptics: Cardinal; aNumLightIndicator: Cardinal; aNumTouchEvents: Cardinal): IJSPromise; overload; // Promise<unsigned long>
  33810. function removeGamepad(aIndex: Cardinal): IJSPromise; overload; // Promise<unsigned long>
  33811. function newButtonEvent(aIndex: Cardinal; aButton: Cardinal; aPressed: Boolean; aTouched: Boolean): IJSPromise; overload; // Promise<unsigned long>
  33812. function newButtonValueEvent(aIndex: Cardinal; aButton: Cardinal; aPressed: Boolean; aTouched: Boolean; aValue: Double): IJSPromise; overload; // Promise<unsigned long>
  33813. function newAxisMoveEvent(aIndex: Cardinal; aAxis: Cardinal; aValue: Double): IJSPromise; overload; // Promise<unsigned long>
  33814. function newPoseMove(aIndex: Cardinal; aOrient: IJSFloat32Array; aPos: IJSFloat32Array; aAngVelocity: IJSFloat32Array; aAngAcceleration: IJSFloat32Array; aLinVelocity: IJSFloat32Array; aLinAcceleration: IJSFloat32Array): IJSPromise; overload; // Promise<unsigned long>
  33815. function newTouch(aIndex: Cardinal; aATouchArrayIndex: Cardinal; aTouchId: Cardinal; aSurfaceId: Byte; aPosition: IJSFloat32Array; aSurfaceDimension: IJSFloat32Array): IJSPromise; overload; // Promise<unsigned long>
  33816. class function JSClassName: UnicodeString; override;
  33817. class function Cast(const Intf: IJSObject): IJSGamepadServiceTest;
  33818. property noMapping: TGamepadMappingType read _GetnoMapping;
  33819. property standardMapping: TGamepadMappingType read _GetstandardMapping;
  33820. property noHand: TGamepadHand read _GetnoHand;
  33821. property leftHand: TGamepadHand read _GetleftHand;
  33822. property rightHand: TGamepadHand read _GetrightHand;
  33823. end;
  33824. { --------------------------------------------------------------------
  33825. TJSGamepadTouch
  33826. --------------------------------------------------------------------}
  33827. IJSGamepadTouch = interface(IJSObject)
  33828. ['{C878D030-C810-3B5C-BE43-2B38CA13748B}']
  33829. function _GettouchId: Cardinal;
  33830. function _GetsurfaceId: Byte;
  33831. function _Getposition: IJSFloat32Array;
  33832. function _GetsurfaceDimensions: IJSUint32Array;
  33833. property touchId: Cardinal read _GettouchId;
  33834. property surfaceId: Byte read _GetsurfaceId;
  33835. property position: IJSFloat32Array read _Getposition;
  33836. property surfaceDimensions: IJSUint32Array read _GetsurfaceDimensions;
  33837. end;
  33838. TJSGamepadTouch = class(TJSObject,IJSGamepadTouch)
  33839. Protected
  33840. function _GettouchId: Cardinal;
  33841. function _GetsurfaceId: Byte;
  33842. function _Getposition: IJSFloat32Array;
  33843. function _GetsurfaceDimensions: IJSUint32Array;
  33844. Public
  33845. class function JSClassName: UnicodeString; override;
  33846. class function Cast(const Intf: IJSObject): IJSGamepadTouch;
  33847. property touchId: Cardinal read _GettouchId;
  33848. property surfaceId: Byte read _GetsurfaceId;
  33849. property position: IJSFloat32Array read _Getposition;
  33850. property surfaceDimensions: IJSUint32Array read _GetsurfaceDimensions;
  33851. end;
  33852. { --------------------------------------------------------------------
  33853. TJSGenericTransformStream
  33854. --------------------------------------------------------------------}
  33855. IJSGenericTransformStream = interface(IJSObject)
  33856. ['{B2FEE35B-1DAE-3285-AAAB-5C07EEF061AF}']
  33857. function _Getreadable: IJSReadableStream;
  33858. function _Getwritable: IJSWritableStream;
  33859. property readable: IJSReadableStream read _Getreadable;
  33860. property writable: IJSWritableStream read _Getwritable;
  33861. end;
  33862. TJSGenericTransformStream = class(TJSObject,IJSGenericTransformStream)
  33863. Protected
  33864. function _Getreadable: IJSReadableStream;
  33865. function _Getwritable: IJSWritableStream;
  33866. Public
  33867. class function JSClassName: UnicodeString; override;
  33868. class function Cast(const Intf: IJSObject): IJSGenericTransformStream;
  33869. property readable: IJSReadableStream read _Getreadable;
  33870. property writable: IJSWritableStream read _Getwritable;
  33871. end;
  33872. { --------------------------------------------------------------------
  33873. TJSGeolocation
  33874. --------------------------------------------------------------------}
  33875. IJSGeolocation = interface(IJSObject)
  33876. ['{ABE39DB4-7BA5-3EC5-99DB-19561869122F}']
  33877. procedure getCurrentPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback; const aOptions: TJSPositionOptions);
  33878. procedure getCurrentPosition(const aSuccessCallback: TPositionCallback);
  33879. procedure getCurrentPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback);
  33880. function watchPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback; const aOptions: TJSPositionOptions): LongInt;
  33881. function watchPosition(const aSuccessCallback: TPositionCallback): LongInt;
  33882. function watchPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback): LongInt;
  33883. procedure clearWatch(aWatchId: LongInt);
  33884. end;
  33885. TJSGeolocation = class(TJSObject,IJSGeolocation)
  33886. Protected
  33887. Public
  33888. procedure getCurrentPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback; const aOptions: TJSPositionOptions); overload;
  33889. procedure getCurrentPosition(const aSuccessCallback: TPositionCallback); overload;
  33890. procedure getCurrentPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback); overload;
  33891. function watchPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback; const aOptions: TJSPositionOptions): LongInt; overload;
  33892. function watchPosition(const aSuccessCallback: TPositionCallback): LongInt; overload;
  33893. function watchPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback): LongInt; overload;
  33894. procedure clearWatch(aWatchId: LongInt); overload;
  33895. class function JSClassName: UnicodeString; override;
  33896. class function Cast(const Intf: IJSObject): IJSGeolocation;
  33897. end;
  33898. { --------------------------------------------------------------------
  33899. TJSGeolocationCoordinates
  33900. --------------------------------------------------------------------}
  33901. IJSGeolocationCoordinates = interface(IJSObject)
  33902. ['{6823DE7C-8A5C-39CD-83AE-9AAB4E048C77}']
  33903. function _Getlatitude: Double;
  33904. function _Getlongitude: Double;
  33905. function _Getaltitude: Double;
  33906. function _Getaccuracy: Double;
  33907. function _GetaltitudeAccuracy: Double;
  33908. function _Getheading: Double;
  33909. function _Getspeed: Double;
  33910. property latitude: Double read _Getlatitude;
  33911. property longitude: Double read _Getlongitude;
  33912. property altitude: Double read _Getaltitude;
  33913. property accuracy: Double read _Getaccuracy;
  33914. property altitudeAccuracy: Double read _GetaltitudeAccuracy;
  33915. property heading: Double read _Getheading;
  33916. property speed: Double read _Getspeed;
  33917. end;
  33918. TJSGeolocationCoordinates = class(TJSObject,IJSGeolocationCoordinates)
  33919. Protected
  33920. function _Getlatitude: Double;
  33921. function _Getlongitude: Double;
  33922. function _Getaltitude: Double;
  33923. function _Getaccuracy: Double;
  33924. function _GetaltitudeAccuracy: Double;
  33925. function _Getheading: Double;
  33926. function _Getspeed: Double;
  33927. Public
  33928. class function JSClassName: UnicodeString; override;
  33929. class function Cast(const Intf: IJSObject): IJSGeolocationCoordinates;
  33930. property latitude: Double read _Getlatitude;
  33931. property longitude: Double read _Getlongitude;
  33932. property altitude: Double read _Getaltitude;
  33933. property accuracy: Double read _Getaccuracy;
  33934. property altitudeAccuracy: Double read _GetaltitudeAccuracy;
  33935. property heading: Double read _Getheading;
  33936. property speed: Double read _Getspeed;
  33937. end;
  33938. { --------------------------------------------------------------------
  33939. TJSGeolocationPosition
  33940. --------------------------------------------------------------------}
  33941. IJSGeolocationPosition = interface(IJSObject)
  33942. ['{D49B81AB-4A6C-3547-9127-99263F0DA90A}']
  33943. function _Getcoords: IJSGeolocationCoordinates;
  33944. function _Gettimestamp: TEpochTimeStamp;
  33945. property coords: IJSGeolocationCoordinates read _Getcoords;
  33946. property timestamp: TEpochTimeStamp read _Gettimestamp;
  33947. end;
  33948. TJSGeolocationPosition = class(TJSObject,IJSGeolocationPosition)
  33949. Protected
  33950. function _Getcoords: IJSGeolocationCoordinates;
  33951. function _Gettimestamp: TEpochTimeStamp;
  33952. Public
  33953. class function JSClassName: UnicodeString; override;
  33954. class function Cast(const Intf: IJSObject): IJSGeolocationPosition;
  33955. property coords: IJSGeolocationCoordinates read _Getcoords;
  33956. property timestamp: TEpochTimeStamp read _Gettimestamp;
  33957. end;
  33958. { --------------------------------------------------------------------
  33959. TJSGeolocationPositionError
  33960. --------------------------------------------------------------------}
  33961. IJSGeolocationPositionError = interface(IJSObject)
  33962. ['{7D5D84D2-6F3E-392A-A60E-D2D9A9888A04}']
  33963. function _Getcode: Word;
  33964. function _Getmessage: UnicodeString;
  33965. property code: Word read _Getcode;
  33966. property message: UnicodeString read _Getmessage;
  33967. end;
  33968. TJSGeolocationPositionError = class(TJSObject,IJSGeolocationPositionError)
  33969. Protected
  33970. function _Getcode: Word;
  33971. function _Getmessage: UnicodeString;
  33972. Public
  33973. Const
  33974. PERMISSION_DENIED = 1;
  33975. POSITION_UNAVAILABLE = 2;
  33976. TIMEOUT = 3;
  33977. Public
  33978. class function JSClassName: UnicodeString; override;
  33979. class function Cast(const Intf: IJSObject): IJSGeolocationPositionError;
  33980. property code: Word read _Getcode;
  33981. property message: UnicodeString read _Getmessage;
  33982. end;
  33983. { --------------------------------------------------------------------
  33984. TJSGeometryUtils
  33985. --------------------------------------------------------------------}
  33986. TJSDOMQuadDynArray = IJSArray; // array of DOMQuad
  33987. IJSGeometryUtils = interface(IJSObject)
  33988. ['{09422898-B09C-3FFF-A43C-8D49EFA031F4}']
  33989. function getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray;
  33990. function getBoxQuads: TJSDOMQuadDynArray;
  33991. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  33992. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  33993. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  33994. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad;
  33995. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad;
  33996. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad;
  33997. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  33998. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  33999. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  34000. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad;
  34001. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad;
  34002. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad;
  34003. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  34004. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  34005. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  34006. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint;
  34007. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint;
  34008. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint;
  34009. end;
  34010. TJSGeometryUtils = class(TJSObject,IJSGeometryUtils)
  34011. Protected
  34012. Public
  34013. function getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray; overload;
  34014. function getBoxQuads: TJSDOMQuadDynArray; overload;
  34015. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  34016. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  34017. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  34018. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad; overload;
  34019. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad; overload;
  34020. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad; overload;
  34021. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  34022. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  34023. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  34024. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad; overload;
  34025. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad; overload;
  34026. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad; overload;
  34027. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  34028. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  34029. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  34030. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint; overload;
  34031. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint; overload;
  34032. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint; overload;
  34033. class function JSClassName: UnicodeString; override;
  34034. class function Cast(const Intf: IJSObject): IJSGeometryUtils;
  34035. end;
  34036. { --------------------------------------------------------------------
  34037. TJSnsIMediaDevice
  34038. --------------------------------------------------------------------}
  34039. IJSnsIMediaDevice = interface(IJSObject)
  34040. ['{A28E4217-B0C4-388C-8EE3-307C3446E5A9}']
  34041. end;
  34042. TJSnsIMediaDevice = class(TJSObject,IJSnsIMediaDevice)
  34043. Protected
  34044. Public
  34045. class function JSClassName: UnicodeString; override;
  34046. class function Cast(const Intf: IJSObject): IJSnsIMediaDevice;
  34047. end;
  34048. { --------------------------------------------------------------------
  34049. TJSGetUserMediaRequest
  34050. --------------------------------------------------------------------}
  34051. TJSnsIMediaDeviceDynArray = IJSArray; // array of nsIMediaDevice
  34052. IJSGetUserMediaRequest = interface(IJSObject)
  34053. ['{752F62F9-194F-3980-804B-A9B976FF6840}']
  34054. function _Gettype_: TGetUserMediaRequestType;
  34055. function _GetwindowID: QWord;
  34056. function _GetinnerWindowID: QWord;
  34057. function _GetcallID: UnicodeString;
  34058. function _GetrawID: UnicodeString;
  34059. function _GetmediaSource: UnicodeString;
  34060. function _Getdevices: TJSnsIMediaDeviceDynArray;
  34061. function _GetisSecure: Boolean;
  34062. function _GetisHandlingUserInput: Boolean;
  34063. function getConstraints: TJSMediaStreamConstraints;
  34064. function getAudioOutputOptions: TJSAudioOutputOptions;
  34065. property type_: TGetUserMediaRequestType read _Gettype_;
  34066. property windowID: QWord read _GetwindowID;
  34067. property innerWindowID: QWord read _GetinnerWindowID;
  34068. property callID: UnicodeString read _GetcallID;
  34069. property rawID: UnicodeString read _GetrawID;
  34070. property mediaSource: UnicodeString read _GetmediaSource;
  34071. property devices: TJSnsIMediaDeviceDynArray read _Getdevices;
  34072. property isSecure: Boolean read _GetisSecure;
  34073. property isHandlingUserInput: Boolean read _GetisHandlingUserInput;
  34074. end;
  34075. TJSGetUserMediaRequest = class(TJSObject,IJSGetUserMediaRequest)
  34076. Protected
  34077. function _Gettype_: TGetUserMediaRequestType;
  34078. function _GetwindowID: QWord;
  34079. function _GetinnerWindowID: QWord;
  34080. function _GetcallID: UnicodeString;
  34081. function _GetrawID: UnicodeString;
  34082. function _GetmediaSource: UnicodeString;
  34083. function _Getdevices: TJSnsIMediaDeviceDynArray;
  34084. function _GetisSecure: Boolean;
  34085. function _GetisHandlingUserInput: Boolean;
  34086. Public
  34087. function getConstraints: TJSMediaStreamConstraints; overload;
  34088. function getAudioOutputOptions: TJSAudioOutputOptions; overload;
  34089. class function JSClassName: UnicodeString; override;
  34090. class function Cast(const Intf: IJSObject): IJSGetUserMediaRequest;
  34091. property type_: TGetUserMediaRequestType read _Gettype_;
  34092. property windowID: QWord read _GetwindowID;
  34093. property innerWindowID: QWord read _GetinnerWindowID;
  34094. property callID: UnicodeString read _GetcallID;
  34095. property rawID: UnicodeString read _GetrawID;
  34096. property mediaSource: UnicodeString read _GetmediaSource;
  34097. property devices: TJSnsIMediaDeviceDynArray read _Getdevices;
  34098. property isSecure: Boolean read _GetisSecure;
  34099. property isHandlingUserInput: Boolean read _GetisHandlingUserInput;
  34100. end;
  34101. { --------------------------------------------------------------------
  34102. TJSGleanCategory
  34103. --------------------------------------------------------------------}
  34104. IJSGleanCategory = interface(IJSObject)
  34105. ['{668ED333-1E8A-30D8-96B9-0F86C7DC1248}']
  34106. function GetDefault(const aIdentifier: UnicodeString): IJSGleanMetric;
  34107. end;
  34108. TJSGleanCategory = class(TJSObject,IJSGleanCategory)
  34109. Protected
  34110. Public
  34111. function GetDefault(const aIdentifier: UnicodeString): IJSGleanMetric; overload;
  34112. class function JSClassName: UnicodeString; override;
  34113. class function Cast(const Intf: IJSObject): IJSGleanCategory;
  34114. end;
  34115. { --------------------------------------------------------------------
  34116. TJSGleanImpl
  34117. --------------------------------------------------------------------}
  34118. IJSGleanImpl = interface(IJSObject)
  34119. ['{3382BB45-C3B7-36D0-B869-8DD15390C552}']
  34120. function GetDefault(const aIdentifier: UnicodeString): IJSGleanCategory;
  34121. end;
  34122. TJSGleanImpl = class(TJSObject,IJSGleanImpl)
  34123. Protected
  34124. Public
  34125. function GetDefault(const aIdentifier: UnicodeString): IJSGleanCategory; overload;
  34126. class function JSClassName: UnicodeString; override;
  34127. class function Cast(const Intf: IJSObject): IJSGleanImpl;
  34128. end;
  34129. { --------------------------------------------------------------------
  34130. TJSGleanLabeled
  34131. --------------------------------------------------------------------}
  34132. IJSGleanLabeled = interface(IJSObject)
  34133. ['{E6CF594F-B8C8-3430-A0A0-F0D81AA2A621}']
  34134. function GetDefault(const aIdentifier: UnicodeString): IJSGleanMetric;
  34135. end;
  34136. TJSGleanLabeled = class(TJSObject,IJSGleanLabeled)
  34137. Protected
  34138. Public
  34139. function GetDefault(const aIdentifier: UnicodeString): IJSGleanMetric; overload;
  34140. class function JSClassName: UnicodeString; override;
  34141. class function Cast(const Intf: IJSObject): IJSGleanLabeled;
  34142. end;
  34143. { --------------------------------------------------------------------
  34144. TJSGleanMetric
  34145. --------------------------------------------------------------------}
  34146. IJSGleanMetric = interface(IJSObject)
  34147. ['{EEDFFCE2-F78E-3384-903D-1A2372542131}']
  34148. end;
  34149. TJSGleanMetric = class(TJSObject,IJSGleanMetric)
  34150. Protected
  34151. Public
  34152. class function JSClassName: UnicodeString; override;
  34153. class function Cast(const Intf: IJSObject): IJSGleanMetric;
  34154. end;
  34155. { --------------------------------------------------------------------
  34156. TJSnsIGleanPing
  34157. --------------------------------------------------------------------}
  34158. IJSnsIGleanPing = interface(IJSObject)
  34159. ['{E6D0CC5B-7690-3BDD-8400-F0D81AA2A621}']
  34160. end;
  34161. TJSnsIGleanPing = class(TJSObject,IJSnsIGleanPing)
  34162. Protected
  34163. Public
  34164. class function JSClassName: UnicodeString; override;
  34165. class function Cast(const Intf: IJSObject): IJSnsIGleanPing;
  34166. end;
  34167. { --------------------------------------------------------------------
  34168. TJSGleanPingsImpl
  34169. --------------------------------------------------------------------}
  34170. IJSGleanPingsImpl = interface(IJSObject)
  34171. ['{A28DCF0A-3A24-35C4-9A70-687C3446E5A9}']
  34172. function GetDefault(const aIdentifier: UnicodeString): IJSnsIGleanPing;
  34173. end;
  34174. TJSGleanPingsImpl = class(TJSObject,IJSGleanPingsImpl)
  34175. Protected
  34176. Public
  34177. function GetDefault(const aIdentifier: UnicodeString): IJSnsIGleanPing; overload;
  34178. class function JSClassName: UnicodeString; override;
  34179. class function Cast(const Intf: IJSObject): IJSGleanPingsImpl;
  34180. end;
  34181. { --------------------------------------------------------------------
  34182. TJSHeaders
  34183. --------------------------------------------------------------------}
  34184. TsequenceDynArrayDynArray = IJSArray; // array of sequence
  34185. IJSHeaders = interface(IJSObject)
  34186. ['{6ACE26BF-C6B8-32F0-BB7A-D7441AEA0C68}']
  34187. procedure append(const aName: UnicodeString; const aValue: UnicodeString);
  34188. procedure delete(const aName: UnicodeString);
  34189. function get(const aName: UnicodeString): UnicodeString;
  34190. function getSetCookie: TUnicodeStringDynArray;
  34191. function has(const aName: UnicodeString): Boolean;
  34192. procedure set_(const aName: UnicodeString; const aValue: UnicodeString);
  34193. end;
  34194. TJSHeaders = class(TJSObject,IJSHeaders)
  34195. Protected
  34196. Public
  34197. constructor Create(aInit: IJSObject); overload;
  34198. constructor Create; overload;
  34199. constructor Create(const aInit: TsequenceDynArrayDynArray); overload;
  34200. procedure append(const aName: UnicodeString; const aValue: UnicodeString); overload;
  34201. procedure delete(const aName: UnicodeString); overload;
  34202. function get(const aName: UnicodeString): UnicodeString; overload;
  34203. function getSetCookie: TUnicodeStringDynArray; overload;
  34204. function has(const aName: UnicodeString): Boolean; overload;
  34205. procedure set_(const aName: UnicodeString; const aValue: UnicodeString); overload;
  34206. class function JSClassName: UnicodeString; override;
  34207. class function Cast(const Intf: IJSObject): IJSHeaders;
  34208. end;
  34209. { --------------------------------------------------------------------
  34210. TJSHighlight
  34211. --------------------------------------------------------------------}
  34212. IJSHighlight = interface(IJSObject)
  34213. ['{D3434969-2CE5-3123-9B9C-2396AD322E90}']
  34214. function _Getpriority: LongInt;
  34215. function _Gettype_: THighlightType;
  34216. procedure _Setpriority(const aValue: LongInt);
  34217. procedure _Settype_(const aValue: THighlightType);
  34218. procedure add(aRange: IJSAbstractRange);
  34219. procedure clear;
  34220. function delete(aRange: IJSAbstractRange): Boolean;
  34221. property priority: LongInt read _Getpriority write _Setpriority;
  34222. property type_: THighlightType read _Gettype_ write _Settype_;
  34223. end;
  34224. TJSHighlight = class(TJSObject,IJSHighlight)
  34225. Protected
  34226. function _Getpriority: LongInt;
  34227. function _Gettype_: THighlightType;
  34228. procedure _Setpriority(const aValue: LongInt);
  34229. procedure _Settype_(const aValue: THighlightType);
  34230. Public
  34231. constructor Create(aInitialRanges: IJSAbstractRange){; ToDo:varargs}; overload;
  34232. procedure add(aRange: IJSAbstractRange); overload;
  34233. procedure clear; overload;
  34234. function delete(aRange: IJSAbstractRange): Boolean; overload;
  34235. class function JSClassName: UnicodeString; override;
  34236. class function Cast(const Intf: IJSObject): IJSHighlight;
  34237. property priority: LongInt read _Getpriority write _Setpriority;
  34238. property type_: THighlightType read _Gettype_ write _Settype_;
  34239. end;
  34240. { --------------------------------------------------------------------
  34241. TJSHighlightRegistry
  34242. --------------------------------------------------------------------}
  34243. IJSHighlightRegistry = interface(IJSObject)
  34244. ['{9DB95821-AAC4-3E7E-857E-0AC13ADD8E6B}']
  34245. function _Getsize : LongInt;
  34246. function get(key: UnicodeString) : TJSHighlight;
  34247. function has(key: UnicodeString) : Boolean;
  34248. function entries : IJSIterator;
  34249. function keys : IJSIterator;
  34250. function values : IJSIterator;
  34251. procedure set_(const aKey: UnicodeString; aValue: IJSHighlight);
  34252. procedure clear;
  34253. function delete(const aKey: UnicodeString): Boolean;
  34254. property size : LongInt read _Getsize;
  34255. end;
  34256. TJSHighlightRegistry = class(TJSObject,IJSHighlightRegistry)
  34257. Protected
  34258. function _Getsize : LongInt;
  34259. Public
  34260. function get(key: UnicodeString) : TJSHighlight;
  34261. function has(key: UnicodeString) : Boolean;
  34262. function entries : IJSIterator;
  34263. function keys : IJSIterator;
  34264. function values : IJSIterator;
  34265. procedure set_(const aKey: UnicodeString; aValue: IJSHighlight); overload;
  34266. procedure clear; overload;
  34267. function delete(const aKey: UnicodeString): Boolean; overload;
  34268. class function JSClassName: UnicodeString; override;
  34269. class function Cast(const Intf: IJSObject): IJSHighlightRegistry;
  34270. property size : LongInt read _Getsize;
  34271. end;
  34272. { --------------------------------------------------------------------
  34273. TJSHistory
  34274. --------------------------------------------------------------------}
  34275. IJSHistory = interface(IJSObject)
  34276. ['{B2F3EF44-D118-30A2-834F-526F84F0536B}']
  34277. function _Getlength_: Cardinal;
  34278. function _GetscrollRestoration: TScrollRestoration;
  34279. function _Getstate: Variant;
  34280. procedure _SetscrollRestoration(const aValue: TScrollRestoration);
  34281. procedure go(aDelta: LongInt);
  34282. procedure go;
  34283. procedure back;
  34284. procedure forward;
  34285. procedure pushState(const aData: Variant; const aTitle: UnicodeString; const aUrl: UnicodeString);
  34286. procedure pushState(const aData: Variant; const aTitle: UnicodeString);
  34287. procedure replaceState(const aData: Variant; const aTitle: UnicodeString; const aUrl: UnicodeString);
  34288. procedure replaceState(const aData: Variant; const aTitle: UnicodeString);
  34289. property length_: Cardinal read _Getlength_;
  34290. property scrollRestoration: TScrollRestoration read _GetscrollRestoration write _SetscrollRestoration;
  34291. property state: Variant read _Getstate;
  34292. end;
  34293. TJSHistory = class(TJSObject,IJSHistory)
  34294. Protected
  34295. function _Getlength_: Cardinal;
  34296. function _GetscrollRestoration: TScrollRestoration;
  34297. function _Getstate: Variant;
  34298. procedure _SetscrollRestoration(const aValue: TScrollRestoration);
  34299. Public
  34300. procedure go(aDelta: LongInt); overload;
  34301. procedure go; overload;
  34302. procedure back; overload;
  34303. procedure forward; overload;
  34304. procedure pushState(const aData: Variant; const aTitle: UnicodeString; const aUrl: UnicodeString); overload;
  34305. procedure pushState(const aData: Variant; const aTitle: UnicodeString); overload;
  34306. procedure replaceState(const aData: Variant; const aTitle: UnicodeString; const aUrl: UnicodeString); overload;
  34307. procedure replaceState(const aData: Variant; const aTitle: UnicodeString); overload;
  34308. class function JSClassName: UnicodeString; override;
  34309. class function Cast(const Intf: IJSObject): IJSHistory;
  34310. property length_: Cardinal read _Getlength_;
  34311. property scrollRestoration: TScrollRestoration read _GetscrollRestoration write _SetscrollRestoration;
  34312. property state: Variant read _Getstate;
  34313. end;
  34314. { --------------------------------------------------------------------
  34315. TJSHTMLAllCollection
  34316. --------------------------------------------------------------------}
  34317. // Union of HTMLCollection, Element
  34318. THTMLAllCollection_namedItem_Type = Variant;
  34319. // Union of HTMLCollection, Element
  34320. THTMLAllCollection_item_Type = Variant;
  34321. // Union of HTMLCollection, Element
  34322. THTMLAllCollection_Type = Variant;
  34323. IJSHTMLAllCollection = interface(IJSObject)
  34324. ['{0E3422EF-36B9-3C60-8916-359C9101ECD0}']
  34325. function _Getlength_: Cardinal;
  34326. function GetDefault(aIndex: Cardinal): IJSElement;
  34327. function namedItem(const aName: UnicodeString): THTMLAllCollection_namedItem_Type;
  34328. function item(const aNameOrIndex: UnicodeString): THTMLAllCollection_item_Type;
  34329. function item: THTMLAllCollection_item_Type;
  34330. function HTMLAllCollectionType(const aNameOrIndex: UnicodeString): THTMLAllCollection_Type;
  34331. function HTMLAllCollectionType: THTMLAllCollection_Type;
  34332. property length_: Cardinal read _Getlength_;
  34333. end;
  34334. TJSHTMLAllCollection = class(TJSObject,IJSHTMLAllCollection)
  34335. Protected
  34336. function _Getlength_: Cardinal;
  34337. Public
  34338. function GetDefault(aIndex: Cardinal): IJSElement; overload;
  34339. function namedItem(const aName: UnicodeString): THTMLAllCollection_namedItem_Type; overload;
  34340. function item(const aNameOrIndex: UnicodeString): THTMLAllCollection_item_Type; overload;
  34341. function item: THTMLAllCollection_item_Type; overload;
  34342. function HTMLAllCollectionType(const aNameOrIndex: UnicodeString): THTMLAllCollection_Type; overload;
  34343. function HTMLAllCollectionType: THTMLAllCollection_Type; overload;
  34344. class function JSClassName: UnicodeString; override;
  34345. class function Cast(const Intf: IJSObject): IJSHTMLAllCollection;
  34346. property length_: Cardinal read _Getlength_;
  34347. end;
  34348. { --------------------------------------------------------------------
  34349. TJSHTMLCollection
  34350. --------------------------------------------------------------------}
  34351. IJSHTMLCollection = interface(IJSObject)
  34352. ['{9684E159-8331-3507-9A4B-488072645884}']
  34353. function _Getlength_: Cardinal;
  34354. function item(aIndex: Cardinal): IJSElement;
  34355. function namedItem(const aName: UnicodeString): IJSElement;
  34356. property length_: Cardinal read _Getlength_;
  34357. end;
  34358. TJSHTMLCollection = class(TJSObject,IJSHTMLCollection)
  34359. Protected
  34360. function _Getlength_: Cardinal;
  34361. Public
  34362. function item(aIndex: Cardinal): IJSElement; overload;
  34363. function namedItem(const aName: UnicodeString): IJSElement; overload;
  34364. class function JSClassName: UnicodeString; override;
  34365. class function Cast(const Intf: IJSObject): IJSHTMLCollection;
  34366. property length_: Cardinal read _Getlength_;
  34367. end;
  34368. { --------------------------------------------------------------------
  34369. TJSTouchEventHandlers
  34370. --------------------------------------------------------------------}
  34371. IJSTouchEventHandlers = interface(IJSObject)
  34372. ['{B146E7A5-80F0-3C9C-AA6B-1304898E62ED}']
  34373. function _Getontouchstart: TEventHandler;
  34374. function _Getontouchend: TEventHandler;
  34375. function _Getontouchmove: TEventHandler;
  34376. function _Getontouchcancel: TEventHandler;
  34377. procedure _Setontouchstart(const aValue: TEventHandler);
  34378. procedure _Setontouchend(const aValue: TEventHandler);
  34379. procedure _Setontouchmove(const aValue: TEventHandler);
  34380. procedure _Setontouchcancel(const aValue: TEventHandler);
  34381. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  34382. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  34383. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  34384. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  34385. end;
  34386. TJSTouchEventHandlers = class(TJSObject,IJSTouchEventHandlers)
  34387. Protected
  34388. function _Getontouchstart: TEventHandler;
  34389. function _Getontouchend: TEventHandler;
  34390. function _Getontouchmove: TEventHandler;
  34391. function _Getontouchcancel: TEventHandler;
  34392. procedure _Setontouchstart(const aValue: TEventHandler);
  34393. procedure _Setontouchend(const aValue: TEventHandler);
  34394. procedure _Setontouchmove(const aValue: TEventHandler);
  34395. procedure _Setontouchcancel(const aValue: TEventHandler);
  34396. Public
  34397. class function JSClassName: UnicodeString; override;
  34398. class function Cast(const Intf: IJSObject): IJSTouchEventHandlers;
  34399. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  34400. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  34401. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  34402. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  34403. end;
  34404. { --------------------------------------------------------------------
  34405. TJSHTMLHyperlinkElementUtils
  34406. --------------------------------------------------------------------}
  34407. IJSHTMLHyperlinkElementUtils = interface(IJSObject)
  34408. ['{46AECF98-4647-3147-95BD-FA47CE4155A4}']
  34409. function _Gethref: UnicodeString;
  34410. function _Getorigin: UnicodeString;
  34411. function _Getprotocol: UnicodeString;
  34412. function _Getusername: UnicodeString;
  34413. function _Getpassword: UnicodeString;
  34414. function _Gethost: UnicodeString;
  34415. function _Gethostname: UnicodeString;
  34416. function _Getport: UnicodeString;
  34417. function _Getpathname: UnicodeString;
  34418. function _Getsearch: UnicodeString;
  34419. function _Gethash: UnicodeString;
  34420. procedure _Setprotocol(const aValue: UnicodeString);
  34421. procedure _Setusername(const aValue: UnicodeString);
  34422. procedure _Setpassword(const aValue: UnicodeString);
  34423. procedure _Sethost(const aValue: UnicodeString);
  34424. procedure _Sethostname(const aValue: UnicodeString);
  34425. procedure _Setport(const aValue: UnicodeString);
  34426. procedure _Setpathname(const aValue: UnicodeString);
  34427. procedure _Setsearch(const aValue: UnicodeString);
  34428. procedure _Sethash(const aValue: UnicodeString);
  34429. property href: UnicodeString read _Gethref;
  34430. property origin: UnicodeString read _Getorigin;
  34431. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  34432. property username: UnicodeString read _Getusername write _Setusername;
  34433. property password: UnicodeString read _Getpassword write _Setpassword;
  34434. property host: UnicodeString read _Gethost write _Sethost;
  34435. property hostname: UnicodeString read _Gethostname write _Sethostname;
  34436. property port: UnicodeString read _Getport write _Setport;
  34437. property pathname: UnicodeString read _Getpathname write _Setpathname;
  34438. property search: UnicodeString read _Getsearch write _Setsearch;
  34439. property hash: UnicodeString read _Gethash write _Sethash;
  34440. end;
  34441. TJSHTMLHyperlinkElementUtils = class(TJSObject,IJSHTMLHyperlinkElementUtils)
  34442. Protected
  34443. function _Gethref: UnicodeString;
  34444. function _Getorigin: UnicodeString;
  34445. function _Getprotocol: UnicodeString;
  34446. function _Getusername: UnicodeString;
  34447. function _Getpassword: UnicodeString;
  34448. function _Gethost: UnicodeString;
  34449. function _Gethostname: UnicodeString;
  34450. function _Getport: UnicodeString;
  34451. function _Getpathname: UnicodeString;
  34452. function _Getsearch: UnicodeString;
  34453. function _Gethash: UnicodeString;
  34454. procedure _Setprotocol(const aValue: UnicodeString);
  34455. procedure _Setusername(const aValue: UnicodeString);
  34456. procedure _Setpassword(const aValue: UnicodeString);
  34457. procedure _Sethost(const aValue: UnicodeString);
  34458. procedure _Sethostname(const aValue: UnicodeString);
  34459. procedure _Setport(const aValue: UnicodeString);
  34460. procedure _Setpathname(const aValue: UnicodeString);
  34461. procedure _Setsearch(const aValue: UnicodeString);
  34462. procedure _Sethash(const aValue: UnicodeString);
  34463. Public
  34464. class function JSClassName: UnicodeString; override;
  34465. class function Cast(const Intf: IJSObject): IJSHTMLHyperlinkElementUtils;
  34466. property href: UnicodeString read _Gethref;
  34467. property origin: UnicodeString read _Getorigin;
  34468. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  34469. property username: UnicodeString read _Getusername write _Setusername;
  34470. property password: UnicodeString read _Getpassword write _Setpassword;
  34471. property host: UnicodeString read _Gethost write _Sethost;
  34472. property hostname: UnicodeString read _Gethostname write _Sethostname;
  34473. property port: UnicodeString read _Getport write _Setport;
  34474. property pathname: UnicodeString read _Getpathname write _Setpathname;
  34475. property search: UnicodeString read _Getsearch write _Setsearch;
  34476. property hash: UnicodeString read _Gethash write _Sethash;
  34477. end;
  34478. { --------------------------------------------------------------------
  34479. TJSimgINotificationObserver
  34480. --------------------------------------------------------------------}
  34481. IJSimgINotificationObserver = interface(IJSObject)
  34482. ['{804BD3B3-27C0-39AC-A0EE-8EC1D6DBBD61}']
  34483. end;
  34484. TJSimgINotificationObserver = class(TJSObject,IJSimgINotificationObserver)
  34485. Protected
  34486. Public
  34487. class function JSClassName: UnicodeString; override;
  34488. class function Cast(const Intf: IJSObject): IJSimgINotificationObserver;
  34489. end;
  34490. { --------------------------------------------------------------------
  34491. TJSimgIRequest
  34492. --------------------------------------------------------------------}
  34493. IJSimgIRequest = interface(IJSObject)
  34494. ['{EEE11C67-DB51-35B9-943D-1A2372542131}']
  34495. end;
  34496. TJSimgIRequest = class(TJSObject,IJSimgIRequest)
  34497. Protected
  34498. Public
  34499. class function JSClassName: UnicodeString; override;
  34500. class function Cast(const Intf: IJSObject): IJSimgIRequest;
  34501. end;
  34502. { --------------------------------------------------------------------
  34503. TJSnsIStreamListener
  34504. --------------------------------------------------------------------}
  34505. IJSnsIStreamListener = interface(IJSObject)
  34506. ['{2B7FAA73-2682-300B-9709-981130F8698D}']
  34507. end;
  34508. TJSnsIStreamListener = class(TJSObject,IJSnsIStreamListener)
  34509. Protected
  34510. Public
  34511. class function JSClassName: UnicodeString; override;
  34512. class function Cast(const Intf: IJSObject): IJSnsIStreamListener;
  34513. end;
  34514. { --------------------------------------------------------------------
  34515. TJSMozImageLoadingContent
  34516. --------------------------------------------------------------------}
  34517. IJSMozImageLoadingContent = interface(IJSObject)
  34518. ['{E78C46AD-22F9-3955-A9ED-A5614E1AA513}']
  34519. end;
  34520. TJSMozImageLoadingContent = class(TJSObject,IJSMozImageLoadingContent)
  34521. Protected
  34522. Public
  34523. class function JSClassName: UnicodeString; override;
  34524. class function Cast(const Intf: IJSObject): IJSMozImageLoadingContent;
  34525. end;
  34526. { --------------------------------------------------------------------
  34527. TJSXULControllers
  34528. --------------------------------------------------------------------}
  34529. IJSXULControllers = interface(IJSObject)
  34530. ['{A28ED322-7B18-3C41-A572-A07C3446E5A9}']
  34531. end;
  34532. TJSXULControllers = class(TJSObject,IJSXULControllers)
  34533. Protected
  34534. Public
  34535. class function JSClassName: UnicodeString; override;
  34536. class function Cast(const Intf: IJSObject): IJSXULControllers;
  34537. end;
  34538. { --------------------------------------------------------------------
  34539. TJSMozEditableElement
  34540. --------------------------------------------------------------------}
  34541. IJSMozEditableElement = interface(IJSObject)
  34542. ['{F149ED58-F918-3374-8387-D2A67A9F5B38}']
  34543. procedure setUserInput(const aInput: UnicodeString);
  34544. end;
  34545. TJSMozEditableElement = class(TJSObject,IJSMozEditableElement)
  34546. Protected
  34547. Public
  34548. procedure setUserInput(const aInput: UnicodeString); overload;
  34549. class function JSClassName: UnicodeString; override;
  34550. class function Cast(const Intf: IJSObject): IJSMozEditableElement;
  34551. end;
  34552. { --------------------------------------------------------------------
  34553. TJSMozObjectLoadingContent
  34554. --------------------------------------------------------------------}
  34555. IJSMozObjectLoadingContent = interface(IJSObject)
  34556. ['{66E1DEC5-5C63-35FD-BEED-5916ECBC99E5}']
  34557. end;
  34558. TJSMozObjectLoadingContent = class(TJSObject,IJSMozObjectLoadingContent)
  34559. Protected
  34560. Public
  34561. class function JSClassName: UnicodeString; override;
  34562. class function Cast(const Intf: IJSObject): IJSMozObjectLoadingContent;
  34563. end;
  34564. { --------------------------------------------------------------------
  34565. TJSnsIEditor
  34566. --------------------------------------------------------------------}
  34567. IJSnsIEditor = interface(IJSObject)
  34568. ['{33832E51-39BA-3530-B869-8DD15390C552}']
  34569. end;
  34570. TJSnsIEditor = class(TJSObject,IJSnsIEditor)
  34571. Protected
  34572. Public
  34573. class function JSClassName: UnicodeString; override;
  34574. class function Cast(const Intf: IJSObject): IJSnsIEditor;
  34575. end;
  34576. { --------------------------------------------------------------------
  34577. TJSIDBCursor
  34578. --------------------------------------------------------------------}
  34579. // Union of IDBObjectStore, IDBIndex
  34580. TIDBCursor_source_Type = Variant;
  34581. IJSIDBCursor = interface(IJSObject)
  34582. ['{631E6413-1574-37E5-8710-7EB3700BDAAB}']
  34583. function _Getsource: TIDBCursor_source_Type;
  34584. function _Getdirection: TIDBCursorDirection;
  34585. function _Getkey: Variant;
  34586. function _GetprimaryKey: Variant;
  34587. function _Getrequest: IJSIDBRequest;
  34588. procedure advance(aCount: Cardinal);
  34589. procedure continue(const aKey: Variant);
  34590. procedure continue;
  34591. procedure continuePrimaryKey(const aKey: Variant; const aPrimaryKey: Variant);
  34592. function update(const aValue: Variant): IJSIDBRequest;
  34593. function delete: IJSIDBRequest;
  34594. property source: TIDBCursor_source_Type read _Getsource;
  34595. property direction: TIDBCursorDirection read _Getdirection;
  34596. property key: Variant read _Getkey;
  34597. property primaryKey: Variant read _GetprimaryKey;
  34598. property request: IJSIDBRequest read _Getrequest;
  34599. end;
  34600. TJSIDBCursor = class(TJSObject,IJSIDBCursor)
  34601. Protected
  34602. function _Getsource: TIDBCursor_source_Type;
  34603. function _Getdirection: TIDBCursorDirection;
  34604. function _Getkey: Variant;
  34605. function _GetprimaryKey: Variant;
  34606. function _Getrequest: IJSIDBRequest;
  34607. Public
  34608. procedure advance(aCount: Cardinal); overload;
  34609. procedure continue(const aKey: Variant); overload;
  34610. procedure continue; overload;
  34611. procedure continuePrimaryKey(const aKey: Variant; const aPrimaryKey: Variant); overload;
  34612. function update(const aValue: Variant): IJSIDBRequest; overload;
  34613. function delete: IJSIDBRequest; overload;
  34614. class function JSClassName: UnicodeString; override;
  34615. class function Cast(const Intf: IJSObject): IJSIDBCursor;
  34616. property source: TIDBCursor_source_Type read _Getsource;
  34617. property direction: TIDBCursorDirection read _Getdirection;
  34618. property key: Variant read _Getkey;
  34619. property primaryKey: Variant read _GetprimaryKey;
  34620. property request: IJSIDBRequest read _Getrequest;
  34621. end;
  34622. { --------------------------------------------------------------------
  34623. TJSIDBFactory
  34624. --------------------------------------------------------------------}
  34625. IJSIDBFactory = interface(IJSObject)
  34626. ['{A7CDB3FD-C273-37A3-AB37-987D1A61CECE}']
  34627. function open(const aName: UnicodeString; aVersion: QWord): IJSIDBOpenDBRequest;
  34628. function open(const aName: UnicodeString; const aOptions: TJSIDBOpenDBOptions): IJSIDBOpenDBRequest;
  34629. function open(const aName: UnicodeString): IJSIDBOpenDBRequest;
  34630. function deleteDatabase(const aName: UnicodeString; const aOptions: TJSIDBOpenDBOptions): IJSIDBOpenDBRequest;
  34631. function deleteDatabase(const aName: UnicodeString): IJSIDBOpenDBRequest;
  34632. function databases: IJSPromise; // Promise<sequence>
  34633. function cmp(const aFirst: Variant; const aSecond: Variant): SmallInt;
  34634. end;
  34635. TJSIDBFactory = class(TJSObject,IJSIDBFactory)
  34636. Protected
  34637. Public
  34638. function open(const aName: UnicodeString; aVersion: QWord): IJSIDBOpenDBRequest; overload;
  34639. function open(const aName: UnicodeString; const aOptions: TJSIDBOpenDBOptions): IJSIDBOpenDBRequest; overload;
  34640. function open(const aName: UnicodeString): IJSIDBOpenDBRequest; overload;
  34641. function deleteDatabase(const aName: UnicodeString; const aOptions: TJSIDBOpenDBOptions): IJSIDBOpenDBRequest; overload;
  34642. function deleteDatabase(const aName: UnicodeString): IJSIDBOpenDBRequest; overload;
  34643. function databases: IJSPromise; overload; // Promise<sequence>
  34644. function cmp(const aFirst: Variant; const aSecond: Variant): SmallInt; overload;
  34645. class function JSClassName: UnicodeString; override;
  34646. class function Cast(const Intf: IJSObject): IJSIDBFactory;
  34647. end;
  34648. { --------------------------------------------------------------------
  34649. TJSIDBIndex
  34650. --------------------------------------------------------------------}
  34651. IJSIDBIndex = interface(IJSObject)
  34652. ['{E17C8884-12EF-3C98-AA31-46383E3AAF1B}']
  34653. function _Getname: UnicodeString;
  34654. function _GetobjectStore: IJSIDBObjectStore;
  34655. function _GetkeyPath: Variant;
  34656. function _GetmultiEntry: Boolean;
  34657. function _Getunique: Boolean;
  34658. function _Getlocale: UnicodeString;
  34659. function _GetisAutoLocale: Boolean;
  34660. procedure _Setname(const aValue: UnicodeString);
  34661. function get(const aQuery: Variant): IJSIDBRequest;
  34662. function getKey(const aQuery: Variant): IJSIDBRequest;
  34663. function getAll(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest;
  34664. function getAll: IJSIDBRequest;
  34665. function getAll(const aQuery: Variant): IJSIDBRequest;
  34666. function getAllKeys(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest;
  34667. function getAllKeys: IJSIDBRequest;
  34668. function getAllKeys(const aQuery: Variant): IJSIDBRequest;
  34669. function count(const aQuery: Variant): IJSIDBRequest;
  34670. function count: IJSIDBRequest;
  34671. function openCursor(const aQuery: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest;
  34672. function openCursor: IJSIDBRequest;
  34673. function openCursor(const aQuery: Variant): IJSIDBRequest;
  34674. function openKeyCursor(const aQuery: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest;
  34675. function openKeyCursor: IJSIDBRequest;
  34676. function openKeyCursor(const aQuery: Variant): IJSIDBRequest;
  34677. property name: UnicodeString read _Getname write _Setname;
  34678. property objectStore: IJSIDBObjectStore read _GetobjectStore;
  34679. property keyPath: Variant read _GetkeyPath;
  34680. property multiEntry: Boolean read _GetmultiEntry;
  34681. property unique: Boolean read _Getunique;
  34682. property locale: UnicodeString read _Getlocale;
  34683. property isAutoLocale: Boolean read _GetisAutoLocale;
  34684. end;
  34685. TJSIDBIndex = class(TJSObject,IJSIDBIndex)
  34686. Protected
  34687. function _Getname: UnicodeString;
  34688. function _GetobjectStore: IJSIDBObjectStore;
  34689. function _GetkeyPath: Variant;
  34690. function _GetmultiEntry: Boolean;
  34691. function _Getunique: Boolean;
  34692. function _Getlocale: UnicodeString;
  34693. function _GetisAutoLocale: Boolean;
  34694. procedure _Setname(const aValue: UnicodeString);
  34695. Public
  34696. function get(const aQuery: Variant): IJSIDBRequest; overload;
  34697. function getKey(const aQuery: Variant): IJSIDBRequest; overload;
  34698. function getAll(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest; overload;
  34699. function getAll: IJSIDBRequest; overload;
  34700. function getAll(const aQuery: Variant): IJSIDBRequest; overload;
  34701. function getAllKeys(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest; overload;
  34702. function getAllKeys: IJSIDBRequest; overload;
  34703. function getAllKeys(const aQuery: Variant): IJSIDBRequest; overload;
  34704. function count(const aQuery: Variant): IJSIDBRequest; overload;
  34705. function count: IJSIDBRequest; overload;
  34706. function openCursor(const aQuery: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest; overload;
  34707. function openCursor: IJSIDBRequest; overload;
  34708. function openCursor(const aQuery: Variant): IJSIDBRequest; overload;
  34709. function openKeyCursor(const aQuery: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest; overload;
  34710. function openKeyCursor: IJSIDBRequest; overload;
  34711. function openKeyCursor(const aQuery: Variant): IJSIDBRequest; overload;
  34712. class function JSClassName: UnicodeString; override;
  34713. class function Cast(const Intf: IJSObject): IJSIDBIndex;
  34714. property name: UnicodeString read _Getname write _Setname;
  34715. property objectStore: IJSIDBObjectStore read _GetobjectStore;
  34716. property keyPath: Variant read _GetkeyPath;
  34717. property multiEntry: Boolean read _GetmultiEntry;
  34718. property unique: Boolean read _Getunique;
  34719. property locale: UnicodeString read _Getlocale;
  34720. property isAutoLocale: Boolean read _GetisAutoLocale;
  34721. end;
  34722. { --------------------------------------------------------------------
  34723. TJSIDBKeyRange
  34724. --------------------------------------------------------------------}
  34725. IJSIDBKeyRange = interface(IJSObject)
  34726. ['{42B7258F-30B5-3272-8612-84571E3882E8}']
  34727. function _Getlower: Variant;
  34728. function _Getupper: Variant;
  34729. function _GetlowerOpen: Boolean;
  34730. function _GetupperOpen: Boolean;
  34731. function includes(const aKey: Variant): Boolean;
  34732. property lower: Variant read _Getlower;
  34733. property upper: Variant read _Getupper;
  34734. property lowerOpen: Boolean read _GetlowerOpen;
  34735. property upperOpen: Boolean read _GetupperOpen;
  34736. end;
  34737. TJSIDBKeyRange = class(TJSObject,IJSIDBKeyRange)
  34738. Protected
  34739. function _Getlower: Variant;
  34740. function _Getupper: Variant;
  34741. function _GetlowerOpen: Boolean;
  34742. function _GetupperOpen: Boolean;
  34743. Public
  34744. function includes(const aKey: Variant): Boolean; overload;
  34745. function only(const aValue: Variant): IJSIDBKeyRange; overload;
  34746. function lowerBound(const aLower: Variant; aOpen: Boolean): IJSIDBKeyRange; overload;
  34747. function lowerBound(const aLower: Variant): IJSIDBKeyRange; overload;
  34748. function upperBound(const aUpper: Variant; aOpen: Boolean): IJSIDBKeyRange; overload;
  34749. function upperBound(const aUpper: Variant): IJSIDBKeyRange; overload;
  34750. function bound(const aLower: Variant; const aUpper: Variant; aLowerOpen: Boolean; aUpperOpen: Boolean): IJSIDBKeyRange; overload;
  34751. function bound(const aLower: Variant; const aUpper: Variant): IJSIDBKeyRange; overload;
  34752. function bound(const aLower: Variant; const aUpper: Variant; aLowerOpen: Boolean): IJSIDBKeyRange; overload;
  34753. class function JSClassName: UnicodeString; override;
  34754. class function Cast(const Intf: IJSObject): IJSIDBKeyRange;
  34755. property lower: Variant read _Getlower;
  34756. property upper: Variant read _Getupper;
  34757. property lowerOpen: Boolean read _GetlowerOpen;
  34758. property upperOpen: Boolean read _GetupperOpen;
  34759. end;
  34760. { --------------------------------------------------------------------
  34761. TJSIDBObjectStore
  34762. --------------------------------------------------------------------}
  34763. // Union of DOMString, sequence
  34764. TIDBObjectStore_createIndex_keyPath_Type = Variant;
  34765. IJSIDBObjectStore = interface(IJSObject)
  34766. ['{E6AAB7E9-A628-3756-82C7-629AEC6C7F0E}']
  34767. function _Getname: UnicodeString;
  34768. function _GetkeyPath: Variant;
  34769. function _GetindexNames: IJSDOMStringList;
  34770. function _Gettransaction: IJSIDBTransaction;
  34771. function _GetautoIncrement: Boolean;
  34772. procedure _Setname(const aValue: UnicodeString);
  34773. function put(const aValue: Variant; const aKey: Variant): IJSIDBRequest;
  34774. function put(const aValue: Variant): IJSIDBRequest;
  34775. function add(const aValue: Variant; const aKey: Variant): IJSIDBRequest;
  34776. function add(const aValue: Variant): IJSIDBRequest;
  34777. function delete(const aKey: Variant): IJSIDBRequest;
  34778. function clear: IJSIDBRequest;
  34779. function get(const aKey: Variant): IJSIDBRequest;
  34780. function getKey(const aKey: Variant): IJSIDBRequest;
  34781. function getAll(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest;
  34782. function getAll: IJSIDBRequest;
  34783. function getAll(const aQuery: Variant): IJSIDBRequest;
  34784. function getAllKeys(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest;
  34785. function getAllKeys: IJSIDBRequest;
  34786. function getAllKeys(const aQuery: Variant): IJSIDBRequest;
  34787. function count(const aKey: Variant): IJSIDBRequest;
  34788. function count: IJSIDBRequest;
  34789. function openCursor(const aRange: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest;
  34790. function openCursor: IJSIDBRequest;
  34791. function openCursor(const aRange: Variant): IJSIDBRequest;
  34792. function openKeyCursor(const aQuery: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest;
  34793. function openKeyCursor: IJSIDBRequest;
  34794. function openKeyCursor(const aQuery: Variant): IJSIDBRequest;
  34795. function createIndex(const aName: UnicodeString; const aKeyPath: UnicodeString; const aOptionalParameters: TJSIDBIndexParameters): IJSIDBIndex;
  34796. function createIndex(const aName: UnicodeString; const aKeyPath: TUnicodeStringDynArray; const aOptionalParameters: TJSIDBIndexParameters): IJSIDBIndex;
  34797. function createIndex(const aName: UnicodeString; const aKeyPath: TUnicodeStringDynArray): IJSIDBIndex;
  34798. function createIndex(const aName: UnicodeString; const aKeyPath: UnicodeString): IJSIDBIndex;
  34799. function index(const aName: UnicodeString): IJSIDBIndex;
  34800. procedure deleteIndex(const aIndexName: UnicodeString);
  34801. property name: UnicodeString read _Getname write _Setname;
  34802. property keyPath: Variant read _GetkeyPath;
  34803. property indexNames: IJSDOMStringList read _GetindexNames;
  34804. property transaction: IJSIDBTransaction read _Gettransaction;
  34805. property autoIncrement: Boolean read _GetautoIncrement;
  34806. end;
  34807. TJSIDBObjectStore = class(TJSObject,IJSIDBObjectStore)
  34808. Protected
  34809. function _Getname: UnicodeString;
  34810. function _GetkeyPath: Variant;
  34811. function _GetindexNames: IJSDOMStringList;
  34812. function _Gettransaction: IJSIDBTransaction;
  34813. function _GetautoIncrement: Boolean;
  34814. procedure _Setname(const aValue: UnicodeString);
  34815. Public
  34816. function put(const aValue: Variant; const aKey: Variant): IJSIDBRequest; overload;
  34817. function put(const aValue: Variant): IJSIDBRequest; overload;
  34818. function add(const aValue: Variant; const aKey: Variant): IJSIDBRequest; overload;
  34819. function add(const aValue: Variant): IJSIDBRequest; overload;
  34820. function delete(const aKey: Variant): IJSIDBRequest; overload;
  34821. function clear: IJSIDBRequest; overload;
  34822. function get(const aKey: Variant): IJSIDBRequest; overload;
  34823. function getKey(const aKey: Variant): IJSIDBRequest; overload;
  34824. function getAll(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest; overload;
  34825. function getAll: IJSIDBRequest; overload;
  34826. function getAll(const aQuery: Variant): IJSIDBRequest; overload;
  34827. function getAllKeys(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest; overload;
  34828. function getAllKeys: IJSIDBRequest; overload;
  34829. function getAllKeys(const aQuery: Variant): IJSIDBRequest; overload;
  34830. function count(const aKey: Variant): IJSIDBRequest; overload;
  34831. function count: IJSIDBRequest; overload;
  34832. function openCursor(const aRange: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest; overload;
  34833. function openCursor: IJSIDBRequest; overload;
  34834. function openCursor(const aRange: Variant): IJSIDBRequest; overload;
  34835. function openKeyCursor(const aQuery: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest; overload;
  34836. function openKeyCursor: IJSIDBRequest; overload;
  34837. function openKeyCursor(const aQuery: Variant): IJSIDBRequest; overload;
  34838. function createIndex(const aName: UnicodeString; const aKeyPath: UnicodeString; const aOptionalParameters: TJSIDBIndexParameters): IJSIDBIndex; overload;
  34839. function createIndex(const aName: UnicodeString; const aKeyPath: TUnicodeStringDynArray; const aOptionalParameters: TJSIDBIndexParameters): IJSIDBIndex; overload;
  34840. function createIndex(const aName: UnicodeString; const aKeyPath: TUnicodeStringDynArray): IJSIDBIndex; overload;
  34841. function createIndex(const aName: UnicodeString; const aKeyPath: UnicodeString): IJSIDBIndex; overload;
  34842. function index(const aName: UnicodeString): IJSIDBIndex; overload;
  34843. procedure deleteIndex(const aIndexName: UnicodeString); overload;
  34844. class function JSClassName: UnicodeString; override;
  34845. class function Cast(const Intf: IJSObject): IJSIDBObjectStore;
  34846. property name: UnicodeString read _Getname write _Setname;
  34847. property keyPath: Variant read _GetkeyPath;
  34848. property indexNames: IJSDOMStringList read _GetindexNames;
  34849. property transaction: IJSIDBTransaction read _Gettransaction;
  34850. property autoIncrement: Boolean read _GetautoIncrement;
  34851. end;
  34852. { --------------------------------------------------------------------
  34853. TJSIdleDeadline
  34854. --------------------------------------------------------------------}
  34855. IJSIdleDeadline = interface(IJSObject)
  34856. ['{3E185A8E-ED04-398F-B404-C5FE82B16B9C}']
  34857. function _GetdidTimeout: Boolean;
  34858. function timeRemaining: TDOMHighResTimeStamp;
  34859. property didTimeout: Boolean read _GetdidTimeout;
  34860. end;
  34861. TJSIdleDeadline = class(TJSObject,IJSIdleDeadline)
  34862. Protected
  34863. function _GetdidTimeout: Boolean;
  34864. Public
  34865. function timeRemaining: TDOMHighResTimeStamp; overload;
  34866. class function JSClassName: UnicodeString; override;
  34867. class function Cast(const Intf: IJSObject): IJSIdleDeadline;
  34868. property didTimeout: Boolean read _GetdidTimeout;
  34869. end;
  34870. { --------------------------------------------------------------------
  34871. TJSImageBitmap
  34872. --------------------------------------------------------------------}
  34873. IJSImageBitmap = interface(IJSObject)
  34874. ['{0D29FF8B-1207-3083-AAAD-88665820DFE1}']
  34875. function _Getwidth: Cardinal;
  34876. function _Getheight: Cardinal;
  34877. procedure close;
  34878. property width: Cardinal read _Getwidth;
  34879. property height: Cardinal read _Getheight;
  34880. end;
  34881. TJSImageBitmap = class(TJSObject,IJSImageBitmap)
  34882. Protected
  34883. function _Getwidth: Cardinal;
  34884. function _Getheight: Cardinal;
  34885. Public
  34886. procedure close; overload;
  34887. class function JSClassName: UnicodeString; override;
  34888. class function Cast(const Intf: IJSObject): IJSImageBitmap;
  34889. property width: Cardinal read _Getwidth;
  34890. property height: Cardinal read _Getheight;
  34891. end;
  34892. { --------------------------------------------------------------------
  34893. TJSImageBitmapRenderingContext
  34894. --------------------------------------------------------------------}
  34895. IJSImageBitmapRenderingContext = interface(IJSObject)
  34896. ['{E269EF5F-7BA5-33C5-8ED0-2BBEE016A4AC}']
  34897. function _Getcanvas: TCanvasSource;
  34898. procedure transferFromImageBitmap(aBitmap: IJSImageBitmap);
  34899. procedure transferImageBitmap(aBitmap: IJSImageBitmap);
  34900. property canvas: TCanvasSource read _Getcanvas;
  34901. end;
  34902. TJSImageBitmapRenderingContext = class(TJSObject,IJSImageBitmapRenderingContext)
  34903. Protected
  34904. function _Getcanvas: TCanvasSource;
  34905. Public
  34906. procedure transferFromImageBitmap(aBitmap: IJSImageBitmap); overload;
  34907. procedure transferImageBitmap(aBitmap: IJSImageBitmap); overload;
  34908. class function JSClassName: UnicodeString; override;
  34909. class function Cast(const Intf: IJSObject): IJSImageBitmapRenderingContext;
  34910. property canvas: TCanvasSource read _Getcanvas;
  34911. end;
  34912. { --------------------------------------------------------------------
  34913. TJSImageCaptureError
  34914. --------------------------------------------------------------------}
  34915. IJSImageCaptureError = interface(IJSObject)
  34916. ['{913FA737-5745-3F30-A026-CDB8A9051BE6}']
  34917. function _Getcode: Word;
  34918. function _Getmessage: UnicodeString;
  34919. property code: Word read _Getcode;
  34920. property message: UnicodeString read _Getmessage;
  34921. end;
  34922. TJSImageCaptureError = class(TJSObject,IJSImageCaptureError)
  34923. Protected
  34924. function _Getcode: Word;
  34925. function _Getmessage: UnicodeString;
  34926. Public
  34927. Const
  34928. FRAME_GRAB_ERROR = 1;
  34929. SETTINGS_ERROR = 2;
  34930. PHOTO_ERROR = 3;
  34931. ERROR_UNKNOWN = 4;
  34932. Public
  34933. class function JSClassName: UnicodeString; override;
  34934. class function Cast(const Intf: IJSObject): IJSImageCaptureError;
  34935. property code: Word read _Getcode;
  34936. property message: UnicodeString read _Getmessage;
  34937. end;
  34938. { --------------------------------------------------------------------
  34939. TJSImageData
  34940. --------------------------------------------------------------------}
  34941. IJSImageData = interface(IJSObject)
  34942. ['{D03D831F-35C5-3CC2-8276-EC263EF4EE49}']
  34943. function _Getwidth: Cardinal;
  34944. function _Getheight: Cardinal;
  34945. function _Getdata: IJSUint8ClampedArray;
  34946. property width: Cardinal read _Getwidth;
  34947. property height: Cardinal read _Getheight;
  34948. property data: IJSUint8ClampedArray read _Getdata;
  34949. end;
  34950. TJSImageData = class(TJSObject,IJSImageData)
  34951. Protected
  34952. function _Getwidth: Cardinal;
  34953. function _Getheight: Cardinal;
  34954. function _Getdata: IJSUint8ClampedArray;
  34955. Public
  34956. constructor Create(aSw: Cardinal; aSh: Cardinal); overload;
  34957. constructor Create(aData: IJSUint8ClampedArray; aSw: Cardinal; aSh: Cardinal); overload;
  34958. constructor Create(aData: IJSUint8ClampedArray; aSw: Cardinal); overload;
  34959. class function JSClassName: UnicodeString; override;
  34960. class function Cast(const Intf: IJSObject): IJSImageData;
  34961. property width: Cardinal read _Getwidth;
  34962. property height: Cardinal read _Getheight;
  34963. property data: IJSUint8ClampedArray read _Getdata;
  34964. end;
  34965. { --------------------------------------------------------------------
  34966. TJSIntersectionObserverEntry
  34967. --------------------------------------------------------------------}
  34968. IJSIntersectionObserverEntry = interface(IJSObject)
  34969. ['{959E0BA2-C2E5-3F59-B3FE-502113142504}']
  34970. function _Gettime: TDOMHighResTimeStamp;
  34971. function _GetrootBounds: IJSDOMRectReadOnly;
  34972. function _GetboundingClientRect: IJSDOMRectReadOnly;
  34973. function _GetintersectionRect: IJSDOMRectReadOnly;
  34974. function _GetisIntersecting: Boolean;
  34975. function _GetintersectionRatio: Double;
  34976. function _Gettarget: IJSElement;
  34977. property time: TDOMHighResTimeStamp read _Gettime;
  34978. property rootBounds: IJSDOMRectReadOnly read _GetrootBounds;
  34979. property boundingClientRect: IJSDOMRectReadOnly read _GetboundingClientRect;
  34980. property intersectionRect: IJSDOMRectReadOnly read _GetintersectionRect;
  34981. property isIntersecting: Boolean read _GetisIntersecting;
  34982. property intersectionRatio: Double read _GetintersectionRatio;
  34983. property target: IJSElement read _Gettarget;
  34984. end;
  34985. TJSIntersectionObserverEntry = class(TJSObject,IJSIntersectionObserverEntry)
  34986. Protected
  34987. function _Gettime: TDOMHighResTimeStamp;
  34988. function _GetrootBounds: IJSDOMRectReadOnly;
  34989. function _GetboundingClientRect: IJSDOMRectReadOnly;
  34990. function _GetintersectionRect: IJSDOMRectReadOnly;
  34991. function _GetisIntersecting: Boolean;
  34992. function _GetintersectionRatio: Double;
  34993. function _Gettarget: IJSElement;
  34994. Public
  34995. class function JSClassName: UnicodeString; override;
  34996. class function Cast(const Intf: IJSObject): IJSIntersectionObserverEntry;
  34997. property time: TDOMHighResTimeStamp read _Gettime;
  34998. property rootBounds: IJSDOMRectReadOnly read _GetrootBounds;
  34999. property boundingClientRect: IJSDOMRectReadOnly read _GetboundingClientRect;
  35000. property intersectionRect: IJSDOMRectReadOnly read _GetintersectionRect;
  35001. property isIntersecting: Boolean read _GetisIntersecting;
  35002. property intersectionRatio: Double read _GetintersectionRatio;
  35003. property target: IJSElement read _Gettarget;
  35004. end;
  35005. { --------------------------------------------------------------------
  35006. TJSIntersectionObserver
  35007. --------------------------------------------------------------------}
  35008. IJSIntersectionObserver = interface(IJSObject)
  35009. ['{FCA2AC89-C96E-3CE9-8F8F-C3E84B458349}']
  35010. function _Getroot: IJSNode;
  35011. function _GetrootMargin: UTF8String;
  35012. function _Getthresholds: TDoubleDynArray;
  35013. procedure observe(aTarget: IJSElement);
  35014. procedure unobserve(aTarget: IJSElement);
  35015. procedure disconnect;
  35016. function takeRecords: TJSIntersectionObserverEntryDynArray;
  35017. property root: IJSNode read _Getroot;
  35018. property rootMargin: UTF8String read _GetrootMargin;
  35019. property thresholds: TDoubleDynArray read _Getthresholds;
  35020. end;
  35021. TJSIntersectionObserver = class(TJSObject,IJSIntersectionObserver)
  35022. Protected
  35023. function _Getroot: IJSNode;
  35024. function _GetrootMargin: UTF8String;
  35025. function _Getthresholds: TDoubleDynArray;
  35026. Public
  35027. constructor Create(const aIntersectionCallback: TIntersectionCallback; const aOptions: TJSIntersectionObserverInit); overload;
  35028. constructor Create(const aIntersectionCallback: TIntersectionCallback); overload;
  35029. procedure observe(aTarget: IJSElement); overload;
  35030. procedure unobserve(aTarget: IJSElement); overload;
  35031. procedure disconnect; overload;
  35032. function takeRecords: TJSIntersectionObserverEntryDynArray; overload;
  35033. class function JSClassName: UnicodeString; override;
  35034. class function Cast(const Intf: IJSObject): IJSIntersectionObserver;
  35035. property root: IJSNode read _Getroot;
  35036. property rootMargin: UTF8String read _GetrootMargin;
  35037. property thresholds: TDoubleDynArray read _Getthresholds;
  35038. end;
  35039. { --------------------------------------------------------------------
  35040. TJSIntlUtils
  35041. --------------------------------------------------------------------}
  35042. IJSIntlUtils = interface(IJSObject)
  35043. ['{79357E1E-A830-37CE-B13B-BA07E6FEE863}']
  35044. function getDisplayNames(const aLocales: TUnicodeStringDynArray; const aOptions: TJSDisplayNameOptions): TJSDisplayNameResult;
  35045. function getDisplayNames(const aLocales: TUnicodeStringDynArray): TJSDisplayNameResult;
  35046. function isAppLocaleRTL: Boolean;
  35047. end;
  35048. TJSIntlUtils = class(TJSObject,IJSIntlUtils)
  35049. Protected
  35050. Public
  35051. function getDisplayNames(const aLocales: TUnicodeStringDynArray; const aOptions: TJSDisplayNameOptions): TJSDisplayNameResult; overload;
  35052. function getDisplayNames(const aLocales: TUnicodeStringDynArray): TJSDisplayNameResult; overload;
  35053. function isAppLocaleRTL: Boolean; overload;
  35054. class function JSClassName: UnicodeString; override;
  35055. class function Cast(const Intf: IJSObject): IJSIntlUtils;
  35056. end;
  35057. { --------------------------------------------------------------------
  35058. TJSInvokerElement
  35059. --------------------------------------------------------------------}
  35060. IJSInvokerElement = interface(IJSObject)
  35061. ['{8CB2F7FF-4269-39B4-86DC-19D0F12F5AE2}']
  35062. function _GetinvokeTargetElement: IJSElement;
  35063. function _GetinvokeAction: UnicodeString;
  35064. procedure _SetinvokeTargetElement(const aValue: IJSElement);
  35065. procedure _SetinvokeAction(const aValue: UnicodeString);
  35066. property invokeTargetElement: IJSElement read _GetinvokeTargetElement write _SetinvokeTargetElement;
  35067. property invokeAction: UnicodeString read _GetinvokeAction write _SetinvokeAction;
  35068. end;
  35069. TJSInvokerElement = class(TJSObject,IJSInvokerElement)
  35070. Protected
  35071. function _GetinvokeTargetElement: IJSElement;
  35072. function _GetinvokeAction: UnicodeString;
  35073. procedure _SetinvokeTargetElement(const aValue: IJSElement);
  35074. procedure _SetinvokeAction(const aValue: UnicodeString);
  35075. Public
  35076. class function JSClassName: UnicodeString; override;
  35077. class function Cast(const Intf: IJSObject): IJSInvokerElement;
  35078. property invokeTargetElement: IJSElement read _GetinvokeTargetElement write _SetinvokeTargetElement;
  35079. property invokeAction: UnicodeString read _GetinvokeAction write _SetinvokeAction;
  35080. end;
  35081. { --------------------------------------------------------------------
  35082. TJSKeyEventMixin
  35083. --------------------------------------------------------------------}
  35084. IJSKeyEventMixin = interface(IJSObject)
  35085. ['{326FB9F3-7CD6-3DED-831E-A07D5F3E0CD0}']
  35086. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal; aCharCode: Cardinal);
  35087. procedure initKeyEvent(const aType_: UnicodeString);
  35088. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  35089. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  35090. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow);
  35091. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean);
  35092. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean);
  35093. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean);
  35094. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean);
  35095. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal);
  35096. end;
  35097. TJSKeyEventMixin = class(TJSObject,IJSKeyEventMixin)
  35098. Protected
  35099. Public
  35100. Const
  35101. DOM_VK_CANCEL = $03;
  35102. DOM_VK_HELP = $06;
  35103. DOM_VK_BACK_SPACE = $08;
  35104. DOM_VK_TAB = $09;
  35105. DOM_VK_CLEAR = $0C;
  35106. DOM_VK_RETURN = $0D;
  35107. DOM_VK_SHIFT = $10;
  35108. DOM_VK_CONTROL = $11;
  35109. DOM_VK_ALT = $12;
  35110. DOM_VK_PAUSE = $13;
  35111. DOM_VK_CAPS_LOCK = $14;
  35112. DOM_VK_KANA = $15;
  35113. DOM_VK_HANGUL = $15;
  35114. DOM_VK_EISU = $16;
  35115. DOM_VK_JUNJA = $17;
  35116. DOM_VK_FINAL = $18;
  35117. DOM_VK_HANJA = $19;
  35118. DOM_VK_KANJI = $19;
  35119. DOM_VK_ESCAPE = $1B;
  35120. DOM_VK_CONVERT = $1C;
  35121. DOM_VK_NONCONVERT = $1D;
  35122. DOM_VK_ACCEPT = $1E;
  35123. DOM_VK_MODECHANGE = $1F;
  35124. DOM_VK_SPACE = $20;
  35125. DOM_VK_PAGE_UP = $21;
  35126. DOM_VK_PAGE_DOWN = $22;
  35127. DOM_VK_END = $23;
  35128. DOM_VK_HOME = $24;
  35129. DOM_VK_LEFT = $25;
  35130. DOM_VK_UP = $26;
  35131. DOM_VK_RIGHT = $27;
  35132. DOM_VK_DOWN = $28;
  35133. DOM_VK_SELECT = $29;
  35134. DOM_VK_PRINT = $2A;
  35135. DOM_VK_EXECUTE = $2B;
  35136. DOM_VK_PRINTSCREEN = $2C;
  35137. DOM_VK_INSERT = $2D;
  35138. DOM_VK_DELETE = $2E;
  35139. DOM_VK_0 = $30;
  35140. DOM_VK_1 = $31;
  35141. DOM_VK_2 = $32;
  35142. DOM_VK_3 = $33;
  35143. DOM_VK_4 = $34;
  35144. DOM_VK_5 = $35;
  35145. DOM_VK_6 = $36;
  35146. DOM_VK_7 = $37;
  35147. DOM_VK_8 = $38;
  35148. DOM_VK_9 = $39;
  35149. DOM_VK_COLON = $3A;
  35150. DOM_VK_SEMICOLON = $3B;
  35151. DOM_VK_LESS_THAN = $3C;
  35152. DOM_VK_EQUALS = $3D;
  35153. DOM_VK_GREATER_THAN = $3E;
  35154. DOM_VK_QUESTION_MARK = $3F;
  35155. DOM_VK_AT = $40;
  35156. DOM_VK_A = $41;
  35157. DOM_VK_B = $42;
  35158. DOM_VK_C = $43;
  35159. DOM_VK_D = $44;
  35160. DOM_VK_E = $45;
  35161. DOM_VK_F = $46;
  35162. DOM_VK_G = $47;
  35163. DOM_VK_H = $48;
  35164. DOM_VK_I = $49;
  35165. DOM_VK_J = $4A;
  35166. DOM_VK_K = $4B;
  35167. DOM_VK_L = $4C;
  35168. DOM_VK_M = $4D;
  35169. DOM_VK_N = $4E;
  35170. DOM_VK_O = $4F;
  35171. DOM_VK_P = $50;
  35172. DOM_VK_Q = $51;
  35173. DOM_VK_R = $52;
  35174. DOM_VK_S = $53;
  35175. DOM_VK_T = $54;
  35176. DOM_VK_U = $55;
  35177. DOM_VK_V = $56;
  35178. DOM_VK_W = $57;
  35179. DOM_VK_X = $58;
  35180. DOM_VK_Y = $59;
  35181. DOM_VK_Z = $5A;
  35182. DOM_VK_WIN = $5B;
  35183. DOM_VK_CONTEXT_MENU = $5D;
  35184. DOM_VK_SLEEP = $5F;
  35185. DOM_VK_NUMPAD0 = $60;
  35186. DOM_VK_NUMPAD1 = $61;
  35187. DOM_VK_NUMPAD2 = $62;
  35188. DOM_VK_NUMPAD3 = $63;
  35189. DOM_VK_NUMPAD4 = $64;
  35190. DOM_VK_NUMPAD5 = $65;
  35191. DOM_VK_NUMPAD6 = $66;
  35192. DOM_VK_NUMPAD7 = $67;
  35193. DOM_VK_NUMPAD8 = $68;
  35194. DOM_VK_NUMPAD9 = $69;
  35195. DOM_VK_MULTIPLY = $6A;
  35196. DOM_VK_ADD = $6B;
  35197. DOM_VK_SEPARATOR = $6C;
  35198. DOM_VK_SUBTRACT = $6D;
  35199. DOM_VK_DECIMAL = $6E;
  35200. DOM_VK_DIVIDE = $6F;
  35201. DOM_VK_F1 = $70;
  35202. DOM_VK_F2 = $71;
  35203. DOM_VK_F3 = $72;
  35204. DOM_VK_F4 = $73;
  35205. DOM_VK_F5 = $74;
  35206. DOM_VK_F6 = $75;
  35207. DOM_VK_F7 = $76;
  35208. DOM_VK_F8 = $77;
  35209. DOM_VK_F9 = $78;
  35210. DOM_VK_F10 = $79;
  35211. DOM_VK_F11 = $7A;
  35212. DOM_VK_F12 = $7B;
  35213. DOM_VK_F13 = $7C;
  35214. DOM_VK_F14 = $7D;
  35215. DOM_VK_F15 = $7E;
  35216. DOM_VK_F16 = $7F;
  35217. DOM_VK_F17 = $80;
  35218. DOM_VK_F18 = $81;
  35219. DOM_VK_F19 = $82;
  35220. DOM_VK_F20 = $83;
  35221. DOM_VK_F21 = $84;
  35222. DOM_VK_F22 = $85;
  35223. DOM_VK_F23 = $86;
  35224. DOM_VK_F24 = $87;
  35225. DOM_VK_NUM_LOCK = $90;
  35226. DOM_VK_SCROLL_LOCK = $91;
  35227. DOM_VK_WIN_OEM_FJ_JISHO = $92;
  35228. DOM_VK_WIN_OEM_FJ_MASSHOU = $93;
  35229. DOM_VK_WIN_OEM_FJ_TOUROKU = $94;
  35230. DOM_VK_WIN_OEM_FJ_LOYA = $95;
  35231. DOM_VK_WIN_OEM_FJ_ROYA = $96;
  35232. DOM_VK_CIRCUMFLEX = $A0;
  35233. DOM_VK_EXCLAMATION = $A1;
  35234. DOM_VK_DOUBLE_QUOTE = $A2;
  35235. DOM_VK_HASH = $A3;
  35236. DOM_VK_DOLLAR = $A4;
  35237. DOM_VK_PERCENT = $A5;
  35238. DOM_VK_AMPERSAND = $A6;
  35239. DOM_VK_UNDERSCORE = $A7;
  35240. DOM_VK_OPEN_PAREN = $A8;
  35241. DOM_VK_CLOSE_PAREN = $A9;
  35242. DOM_VK_ASTERISK = $AA;
  35243. DOM_VK_PLUS = $AB;
  35244. DOM_VK_PIPE = $AC;
  35245. DOM_VK_HYPHEN_MINUS = $AD;
  35246. DOM_VK_OPEN_CURLY_BRACKET = $AE;
  35247. DOM_VK_CLOSE_CURLY_BRACKET = $AF;
  35248. DOM_VK_TILDE = $B0;
  35249. DOM_VK_VOLUME_MUTE = $B5;
  35250. DOM_VK_VOLUME_DOWN = $B6;
  35251. DOM_VK_VOLUME_UP = $B7;
  35252. DOM_VK_COMMA = $BC;
  35253. DOM_VK_PERIOD = $BE;
  35254. DOM_VK_SLASH = $BF;
  35255. DOM_VK_BACK_QUOTE = $C0;
  35256. DOM_VK_OPEN_BRACKET = $DB;
  35257. DOM_VK_BACK_SLASH = $DC;
  35258. DOM_VK_CLOSE_BRACKET = $DD;
  35259. DOM_VK_QUOTE = $DE;
  35260. DOM_VK_META = $E0;
  35261. DOM_VK_ALTGR = $E1;
  35262. DOM_VK_WIN_ICO_HELP = $E3;
  35263. DOM_VK_WIN_ICO_00 = $E4;
  35264. DOM_VK_PROCESSKEY = $E5;
  35265. DOM_VK_WIN_ICO_CLEAR = $E6;
  35266. DOM_VK_WIN_OEM_RESET = $E9;
  35267. DOM_VK_WIN_OEM_JUMP = $EA;
  35268. DOM_VK_WIN_OEM_PA1 = $EB;
  35269. DOM_VK_WIN_OEM_PA2 = $EC;
  35270. DOM_VK_WIN_OEM_PA3 = $ED;
  35271. DOM_VK_WIN_OEM_WSCTRL = $EE;
  35272. DOM_VK_WIN_OEM_CUSEL = $EF;
  35273. DOM_VK_WIN_OEM_ATTN = $F0;
  35274. DOM_VK_WIN_OEM_FINISH = $F1;
  35275. DOM_VK_WIN_OEM_COPY = $F2;
  35276. DOM_VK_WIN_OEM_AUTO = $F3;
  35277. DOM_VK_WIN_OEM_ENLW = $F4;
  35278. DOM_VK_WIN_OEM_BACKTAB = $F5;
  35279. DOM_VK_ATTN = $F6;
  35280. DOM_VK_CRSEL = $F7;
  35281. DOM_VK_EXSEL = $F8;
  35282. DOM_VK_EREOF = $F9;
  35283. DOM_VK_PLAY = $FA;
  35284. DOM_VK_ZOOM = $FB;
  35285. DOM_VK_PA1 = $FD;
  35286. DOM_VK_WIN_OEM_CLEAR = $FE;
  35287. Public
  35288. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal; aCharCode: Cardinal); overload;
  35289. procedure initKeyEvent(const aType_: UnicodeString); overload;
  35290. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean); overload;
  35291. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean); overload;
  35292. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow); overload;
  35293. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean); overload;
  35294. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean); overload;
  35295. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean); overload;
  35296. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean); overload;
  35297. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal); overload;
  35298. class function JSClassName: UnicodeString; override;
  35299. class function Cast(const Intf: IJSObject): IJSKeyEventMixin;
  35300. end;
  35301. { --------------------------------------------------------------------
  35302. TJSLinkStyle
  35303. --------------------------------------------------------------------}
  35304. IJSLinkStyle = interface(IJSObject)
  35305. ['{BD8209EA-E812-3439-9DAE-073B45757722}']
  35306. function _Getsheet: IJSStyleSheet;
  35307. property sheet: IJSStyleSheet read _Getsheet;
  35308. end;
  35309. TJSLinkStyle = class(TJSObject,IJSLinkStyle)
  35310. Protected
  35311. function _Getsheet: IJSStyleSheet;
  35312. Public
  35313. class function JSClassName: UnicodeString; override;
  35314. class function Cast(const Intf: IJSObject): IJSLinkStyle;
  35315. property sheet: IJSStyleSheet read _Getsheet;
  35316. end;
  35317. { --------------------------------------------------------------------
  35318. TJSLocalization
  35319. --------------------------------------------------------------------}
  35320. TDOMStringDynArray = IJSArray; // array of L10nResourceId
  35321. TL10nKeyDynArray = IJSArray; // array of L10nKey
  35322. TJSL10nMessageDynArray = IJSArray; // array of L10nMessage
  35323. IJSLocalization = interface(IJSObject)
  35324. ['{CBA54BE6-4457-3426-8482-058452041ED9}']
  35325. procedure addResourceIds(const aAResourceIds: TDOMStringDynArray);
  35326. function removeResourceIds(const aAResourceIds: TDOMStringDynArray): Cardinal;
  35327. function formatValue(const aAId: UTF8String; aAArgs: IJSArray): IJSPromise; // Promise<UTF8String>
  35328. function formatValue(const aAId: UTF8String): IJSPromise; // Promise<UTF8String>
  35329. function formatValues(const aAKeys: TL10nKeyDynArray): IJSPromise; // Promise<sequence>
  35330. function formatMessages(const aAKeys: TL10nKeyDynArray): IJSPromise; // Promise<sequence>
  35331. procedure setAsync;
  35332. function formatValueSync(const aAId: UTF8String; aAArgs: IJSArray): UTF8String;
  35333. function formatValueSync(const aAId: UTF8String): UTF8String;
  35334. function formatValuesSync(const aAKeys: TL10nKeyDynArray): TUTF8StringDynArray;
  35335. function formatMessagesSync(const aAKeys: TL10nKeyDynArray): TJSL10nMessageDynArray;
  35336. end;
  35337. TJSLocalization = class(TJSObject,IJSLocalization)
  35338. Protected
  35339. Public
  35340. constructor Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean; aARegistry: IJSObject; const aALocales: TUTF8StringDynArray); overload;
  35341. constructor Create(const aAResourceIds: TDOMStringDynArray); overload;
  35342. constructor Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean); overload;
  35343. constructor Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean; aARegistry: IJSObject); overload;
  35344. procedure addResourceIds(const aAResourceIds: TDOMStringDynArray); overload;
  35345. function removeResourceIds(const aAResourceIds: TDOMStringDynArray): Cardinal; overload;
  35346. function formatValue(const aAId: UTF8String; aAArgs: IJSArray): IJSPromise; overload; // Promise<UTF8String>
  35347. function formatValue(const aAId: UTF8String): IJSPromise; overload; // Promise<UTF8String>
  35348. function formatValues(const aAKeys: TL10nKeyDynArray): IJSPromise; overload; // Promise<sequence>
  35349. function formatMessages(const aAKeys: TL10nKeyDynArray): IJSPromise; overload; // Promise<sequence>
  35350. procedure setAsync; overload;
  35351. function formatValueSync(const aAId: UTF8String; aAArgs: IJSArray): UTF8String; overload;
  35352. function formatValueSync(const aAId: UTF8String): UTF8String; overload;
  35353. function formatValuesSync(const aAKeys: TL10nKeyDynArray): TUTF8StringDynArray; overload;
  35354. function formatMessagesSync(const aAKeys: TL10nKeyDynArray): TJSL10nMessageDynArray; overload;
  35355. class function JSClassName: UnicodeString; override;
  35356. class function Cast(const Intf: IJSObject): IJSLocalization;
  35357. end;
  35358. { --------------------------------------------------------------------
  35359. TJSLocation
  35360. --------------------------------------------------------------------}
  35361. IJSLocation = interface(IJSObject)
  35362. ['{E6A2E52F-9356-306C-9704-EB03595A4201}']
  35363. function _Gethref: UnicodeString;
  35364. function _Getorigin: UnicodeString;
  35365. function _Getprotocol: UnicodeString;
  35366. function _Gethost: UnicodeString;
  35367. function _Gethostname: UnicodeString;
  35368. function _Getport: UnicodeString;
  35369. function _Getpathname: UnicodeString;
  35370. function _Getsearch: UnicodeString;
  35371. function _Gethash: UnicodeString;
  35372. procedure _Setprotocol(const aValue: UnicodeString);
  35373. procedure _Sethost(const aValue: UnicodeString);
  35374. procedure _Sethostname(const aValue: UnicodeString);
  35375. procedure _Setport(const aValue: UnicodeString);
  35376. procedure _Setpathname(const aValue: UnicodeString);
  35377. procedure _Setsearch(const aValue: UnicodeString);
  35378. procedure _Sethash(const aValue: UnicodeString);
  35379. procedure assign(const aUrl: UnicodeString);
  35380. procedure replace(const aUrl: UnicodeString);
  35381. procedure reload(aForceget: Boolean);
  35382. procedure reload;
  35383. property href: UnicodeString read _Gethref;
  35384. property origin: UnicodeString read _Getorigin;
  35385. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  35386. property host: UnicodeString read _Gethost write _Sethost;
  35387. property hostname: UnicodeString read _Gethostname write _Sethostname;
  35388. property port: UnicodeString read _Getport write _Setport;
  35389. property pathname: UnicodeString read _Getpathname write _Setpathname;
  35390. property search: UnicodeString read _Getsearch write _Setsearch;
  35391. property hash: UnicodeString read _Gethash write _Sethash;
  35392. end;
  35393. TJSLocation = class(TJSObject,IJSLocation)
  35394. Protected
  35395. function _Gethref: UnicodeString;
  35396. function _Getorigin: UnicodeString;
  35397. function _Getprotocol: UnicodeString;
  35398. function _Gethost: UnicodeString;
  35399. function _Gethostname: UnicodeString;
  35400. function _Getport: UnicodeString;
  35401. function _Getpathname: UnicodeString;
  35402. function _Getsearch: UnicodeString;
  35403. function _Gethash: UnicodeString;
  35404. procedure _Setprotocol(const aValue: UnicodeString);
  35405. procedure _Sethost(const aValue: UnicodeString);
  35406. procedure _Sethostname(const aValue: UnicodeString);
  35407. procedure _Setport(const aValue: UnicodeString);
  35408. procedure _Setpathname(const aValue: UnicodeString);
  35409. procedure _Setsearch(const aValue: UnicodeString);
  35410. procedure _Sethash(const aValue: UnicodeString);
  35411. Public
  35412. procedure assign(const aUrl: UnicodeString); overload;
  35413. procedure replace(const aUrl: UnicodeString); overload;
  35414. procedure reload(aForceget: Boolean); overload;
  35415. procedure reload; overload;
  35416. class function JSClassName: UnicodeString; override;
  35417. class function Cast(const Intf: IJSObject): IJSLocation;
  35418. property href: UnicodeString read _Gethref;
  35419. property origin: UnicodeString read _Getorigin;
  35420. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  35421. property host: UnicodeString read _Gethost write _Sethost;
  35422. property hostname: UnicodeString read _Gethostname write _Sethostname;
  35423. property port: UnicodeString read _Getport write _Setport;
  35424. property pathname: UnicodeString read _Getpathname write _Setpathname;
  35425. property search: UnicodeString read _Getsearch write _Setsearch;
  35426. property hash: UnicodeString read _Gethash write _Sethash;
  35427. end;
  35428. { --------------------------------------------------------------------
  35429. TJSLock
  35430. --------------------------------------------------------------------}
  35431. IJSLock = interface(IJSObject)
  35432. ['{1253746F-26EF-3558-A511-44FFE2D330E2}']
  35433. function _Getname: UnicodeString;
  35434. function _Getmode: TLockMode;
  35435. property name: UnicodeString read _Getname;
  35436. property mode: TLockMode read _Getmode;
  35437. end;
  35438. TJSLock = class(TJSObject,IJSLock)
  35439. Protected
  35440. function _Getname: UnicodeString;
  35441. function _Getmode: TLockMode;
  35442. Public
  35443. class function JSClassName: UnicodeString; override;
  35444. class function Cast(const Intf: IJSObject): IJSLock;
  35445. property name: UnicodeString read _Getname;
  35446. property mode: TLockMode read _Getmode;
  35447. end;
  35448. { --------------------------------------------------------------------
  35449. TJSLockManager
  35450. --------------------------------------------------------------------}
  35451. IJSLockManager = interface(IJSObject)
  35452. ['{44B35D1C-4370-3DD7-BDFE-45C94665E25F}']
  35453. function request(const aName: UnicodeString; const aCallback: TLockGrantedCallback): IJSPromise; // Promise<any>
  35454. function request(const aName: UnicodeString; const aOptions: TJSLockOptions; const aCallback: TLockGrantedCallback): IJSPromise; // Promise<any>
  35455. function query: IJSPromise; // Promise<LockManagerSnapshot>
  35456. end;
  35457. TJSLockManager = class(TJSObject,IJSLockManager)
  35458. Protected
  35459. Public
  35460. function request(const aName: UnicodeString; const aCallback: TLockGrantedCallback): IJSPromise; overload; // Promise<any>
  35461. function request(const aName: UnicodeString; const aOptions: TJSLockOptions; const aCallback: TLockGrantedCallback): IJSPromise; overload; // Promise<any>
  35462. function query: IJSPromise; overload; // Promise<LockManagerSnapshot>
  35463. class function JSClassName: UnicodeString; override;
  35464. class function Cast(const Intf: IJSObject): IJSLockManager;
  35465. end;
  35466. { --------------------------------------------------------------------
  35467. TJSMediaCapabilitiesInfo
  35468. --------------------------------------------------------------------}
  35469. IJSMediaCapabilitiesInfo = interface(IJSObject)
  35470. ['{B8E47819-563D-33EC-9747-E4A87DA8F6BF}']
  35471. function _Getsupported: Boolean;
  35472. function _Getsmooth: Boolean;
  35473. function _GetpowerEfficient: Boolean;
  35474. property supported: Boolean read _Getsupported;
  35475. property smooth: Boolean read _Getsmooth;
  35476. property powerEfficient: Boolean read _GetpowerEfficient;
  35477. end;
  35478. TJSMediaCapabilitiesInfo = class(TJSObject,IJSMediaCapabilitiesInfo)
  35479. Protected
  35480. function _Getsupported: Boolean;
  35481. function _Getsmooth: Boolean;
  35482. function _GetpowerEfficient: Boolean;
  35483. Public
  35484. class function JSClassName: UnicodeString; override;
  35485. class function Cast(const Intf: IJSObject): IJSMediaCapabilitiesInfo;
  35486. property supported: Boolean read _Getsupported;
  35487. property smooth: Boolean read _Getsmooth;
  35488. property powerEfficient: Boolean read _GetpowerEfficient;
  35489. end;
  35490. { --------------------------------------------------------------------
  35491. TJSMediaCapabilities
  35492. --------------------------------------------------------------------}
  35493. IJSMediaCapabilities = interface(IJSObject)
  35494. ['{3E2FB865-A31A-353F-9F76-21A3DDFBFA66}']
  35495. function decodingInfo(const aConfiguration: TJSMediaDecodingConfiguration): IJSPromise; // Promise<MediaCapabilitiesInfo>
  35496. function encodingInfo(const aConfiguration: TJSMediaEncodingConfiguration): IJSPromise; // Promise<MediaCapabilitiesInfo>
  35497. end;
  35498. TJSMediaCapabilities = class(TJSObject,IJSMediaCapabilities)
  35499. Protected
  35500. Public
  35501. function decodingInfo(const aConfiguration: TJSMediaDecodingConfiguration): IJSPromise; overload; // Promise<MediaCapabilitiesInfo>
  35502. function encodingInfo(const aConfiguration: TJSMediaEncodingConfiguration): IJSPromise; overload; // Promise<MediaCapabilitiesInfo>
  35503. class function JSClassName: UnicodeString; override;
  35504. class function Cast(const Intf: IJSObject): IJSMediaCapabilities;
  35505. end;
  35506. { --------------------------------------------------------------------
  35507. TJSMediaDeviceInfo
  35508. --------------------------------------------------------------------}
  35509. IJSMediaDeviceInfo = interface(IJSObject)
  35510. ['{35FFF8AD-5AC6-3235-9B6E-45D7E2D37360}']
  35511. function _GetdeviceId: UnicodeString;
  35512. function _Getkind: TMediaDeviceKind;
  35513. function _Getlabel_: UnicodeString;
  35514. function _GetgroupId: UnicodeString;
  35515. function toJSON: IJSObject;
  35516. property deviceId: UnicodeString read _GetdeviceId;
  35517. property kind: TMediaDeviceKind read _Getkind;
  35518. property label_: UnicodeString read _Getlabel_;
  35519. property groupId: UnicodeString read _GetgroupId;
  35520. end;
  35521. TJSMediaDeviceInfo = class(TJSObject,IJSMediaDeviceInfo)
  35522. Protected
  35523. function _GetdeviceId: UnicodeString;
  35524. function _Getkind: TMediaDeviceKind;
  35525. function _Getlabel_: UnicodeString;
  35526. function _GetgroupId: UnicodeString;
  35527. Public
  35528. function toJSON: IJSObject; overload;
  35529. class function JSClassName: UnicodeString; override;
  35530. class function Cast(const Intf: IJSObject): IJSMediaDeviceInfo;
  35531. property deviceId: UnicodeString read _GetdeviceId;
  35532. property kind: TMediaDeviceKind read _Getkind;
  35533. property label_: UnicodeString read _Getlabel_;
  35534. property groupId: UnicodeString read _GetgroupId;
  35535. end;
  35536. { --------------------------------------------------------------------
  35537. TJSMediaError
  35538. --------------------------------------------------------------------}
  35539. IJSMediaError = interface(IJSObject)
  35540. ['{23061721-70EA-3928-B9E8-4F30BDFCE554}']
  35541. function _Getcode: Word;
  35542. function _Getmessage: UnicodeString;
  35543. property code: Word read _Getcode;
  35544. property message: UnicodeString read _Getmessage;
  35545. end;
  35546. TJSMediaError = class(TJSObject,IJSMediaError)
  35547. Protected
  35548. function _Getcode: Word;
  35549. function _Getmessage: UnicodeString;
  35550. Public
  35551. Const
  35552. MEDIA_ERR_ABORTED = 1;
  35553. MEDIA_ERR_NETWORK = 2;
  35554. MEDIA_ERR_DECODE = 3;
  35555. MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
  35556. Public
  35557. class function JSClassName: UnicodeString; override;
  35558. class function Cast(const Intf: IJSObject): IJSMediaError;
  35559. property code: Word read _Getcode;
  35560. property message: UnicodeString read _Getmessage;
  35561. end;
  35562. { --------------------------------------------------------------------
  35563. TJSMediaKeys
  35564. --------------------------------------------------------------------}
  35565. IJSMediaKeys = interface(IJSObject)
  35566. ['{61FF2B90-A5ED-38AE-9CF0-22833B5E74F0}']
  35567. function _GetkeySystem: UnicodeString;
  35568. function createSession(aSessionType: TMediaKeySessionType): IJSMediaKeySession;
  35569. function createSession: IJSMediaKeySession;
  35570. function setServerCertificate(aServerCertificate: IJSBufferSource): IJSPromise; // Promise<undefined>
  35571. function getStatusForPolicy(const aPolicy: TJSMediaKeysPolicy): IJSPromise; // Promise<MediaKeyStatus>
  35572. function getStatusForPolicy: IJSPromise; // Promise<MediaKeyStatus>
  35573. property keySystem: UnicodeString read _GetkeySystem;
  35574. end;
  35575. TJSMediaKeys = class(TJSObject,IJSMediaKeys)
  35576. Protected
  35577. function _GetkeySystem: UnicodeString;
  35578. Public
  35579. function createSession(aSessionType: TMediaKeySessionType): IJSMediaKeySession; overload;
  35580. function createSession: IJSMediaKeySession; overload;
  35581. function setServerCertificate(aServerCertificate: IJSBufferSource): IJSPromise; overload; // Promise<undefined>
  35582. function getStatusForPolicy(const aPolicy: TJSMediaKeysPolicy): IJSPromise; overload; // Promise<MediaKeyStatus>
  35583. function getStatusForPolicy: IJSPromise; overload; // Promise<MediaKeyStatus>
  35584. class function JSClassName: UnicodeString; override;
  35585. class function Cast(const Intf: IJSObject): IJSMediaKeys;
  35586. property keySystem: UnicodeString read _GetkeySystem;
  35587. end;
  35588. { --------------------------------------------------------------------
  35589. TJSMediaKeyStatusMap
  35590. --------------------------------------------------------------------}
  35591. // Union of MediaKeyStatus, undefined
  35592. TMediaKeyStatusMap_get_Type = Variant;
  35593. IJSMediaKeyStatusMap = interface(IJSObject)
  35594. ['{71562C19-4464-3FCD-B871-F724990CE356}']
  35595. function _Getsize: Cardinal;
  35596. function has(aKeyId: IJSBufferSource): Boolean;
  35597. function get(aKeyId: IJSBufferSource): TMediaKeyStatusMap_get_Type;
  35598. property size: Cardinal read _Getsize;
  35599. end;
  35600. TJSMediaKeyStatusMap = class(TJSObject,IJSMediaKeyStatusMap)
  35601. Protected
  35602. function _Getsize: Cardinal;
  35603. Public
  35604. function has(aKeyId: IJSBufferSource): Boolean; overload;
  35605. function get(aKeyId: IJSBufferSource): TMediaKeyStatusMap_get_Type; overload;
  35606. class function JSClassName: UnicodeString; override;
  35607. class function Cast(const Intf: IJSObject): IJSMediaKeyStatusMap;
  35608. property size: Cardinal read _Getsize;
  35609. end;
  35610. { --------------------------------------------------------------------
  35611. TJSMediaKeySystemAccess
  35612. --------------------------------------------------------------------}
  35613. IJSMediaKeySystemAccess = interface(IJSObject)
  35614. ['{2F30248F-6352-31ED-92A2-EE8EDE7E4F8A}']
  35615. function _GetkeySystem: UnicodeString;
  35616. function getConfiguration: TJSMediaKeySystemConfiguration;
  35617. function createMediaKeys: IJSPromise; // Promise<MediaKeys>
  35618. property keySystem: UnicodeString read _GetkeySystem;
  35619. end;
  35620. TJSMediaKeySystemAccess = class(TJSObject,IJSMediaKeySystemAccess)
  35621. Protected
  35622. function _GetkeySystem: UnicodeString;
  35623. Public
  35624. function getConfiguration: TJSMediaKeySystemConfiguration; overload;
  35625. function createMediaKeys: IJSPromise; overload; // Promise<MediaKeys>
  35626. class function JSClassName: UnicodeString; override;
  35627. class function Cast(const Intf: IJSObject): IJSMediaKeySystemAccess;
  35628. property keySystem: UnicodeString read _GetkeySystem;
  35629. end;
  35630. { --------------------------------------------------------------------
  35631. TJSMediaList
  35632. --------------------------------------------------------------------}
  35633. IJSMediaList = interface(IJSObject)
  35634. ['{E567DE61-7B61-3446-B23F-DE5A74592DC6}']
  35635. function _GetmediaText: UTF8String;
  35636. function _Getlength_: Cardinal;
  35637. function item(aIndex: Cardinal): UTF8String;
  35638. procedure deleteMedium(const aOldMedium: UTF8String);
  35639. procedure appendMedium(const aNewMedium: UTF8String);
  35640. property mediaText: UTF8String read _GetmediaText;
  35641. property length_: Cardinal read _Getlength_;
  35642. end;
  35643. TJSMediaList = class(TJSObject,IJSMediaList)
  35644. Protected
  35645. function _GetmediaText: UTF8String;
  35646. function _Getlength_: Cardinal;
  35647. Public
  35648. function item(aIndex: Cardinal): UTF8String; overload;
  35649. procedure deleteMedium(const aOldMedium: UTF8String); overload;
  35650. procedure appendMedium(const aNewMedium: UTF8String); overload;
  35651. class function JSClassName: UnicodeString; override;
  35652. class function Cast(const Intf: IJSObject): IJSMediaList;
  35653. property mediaText: UTF8String read _GetmediaText;
  35654. property length_: Cardinal read _Getlength_;
  35655. end;
  35656. { --------------------------------------------------------------------
  35657. TJSMediaSession
  35658. --------------------------------------------------------------------}
  35659. IJSMediaSession = interface(IJSObject)
  35660. ['{C2145BDA-FD8C-3F47-86A5-7016E547FF12}']
  35661. function _Getmetadata: IJSMediaMetadata;
  35662. function _GetplaybackState: TMediaSessionPlaybackState;
  35663. procedure _Setmetadata(const aValue: IJSMediaMetadata);
  35664. procedure _SetplaybackState(const aValue: TMediaSessionPlaybackState);
  35665. procedure setActionHandler(aAction: TMediaSessionAction; const aHandler: TMediaSessionActionHandler);
  35666. procedure setPositionState(const aState: TJSMediaPositionState);
  35667. procedure setPositionState;
  35668. property metadata: IJSMediaMetadata read _Getmetadata write _Setmetadata;
  35669. property playbackState: TMediaSessionPlaybackState read _GetplaybackState write _SetplaybackState;
  35670. end;
  35671. TJSMediaSession = class(TJSObject,IJSMediaSession)
  35672. Protected
  35673. function _Getmetadata: IJSMediaMetadata;
  35674. function _GetplaybackState: TMediaSessionPlaybackState;
  35675. procedure _Setmetadata(const aValue: IJSMediaMetadata);
  35676. procedure _SetplaybackState(const aValue: TMediaSessionPlaybackState);
  35677. Public
  35678. procedure setActionHandler(aAction: TMediaSessionAction; const aHandler: TMediaSessionActionHandler); overload;
  35679. procedure setPositionState(const aState: TJSMediaPositionState); overload;
  35680. procedure setPositionState; overload;
  35681. class function JSClassName: UnicodeString; override;
  35682. class function Cast(const Intf: IJSObject): IJSMediaSession;
  35683. property metadata: IJSMediaMetadata read _Getmetadata write _Setmetadata;
  35684. property playbackState: TMediaSessionPlaybackState read _GetplaybackState write _SetplaybackState;
  35685. end;
  35686. { --------------------------------------------------------------------
  35687. TJSMediaMetadata
  35688. --------------------------------------------------------------------}
  35689. IJSMediaMetadata = interface(IJSObject)
  35690. ['{F646A75B-62B0-3882-AFCB-F9AAF681D3A9}']
  35691. function _Gettitle: UnicodeString;
  35692. function _Getartist: UnicodeString;
  35693. function _Getalbum: UnicodeString;
  35694. function _Getartwork: TIJSObjectDynArray;
  35695. procedure _Settitle(const aValue: UnicodeString);
  35696. procedure _Setartist(const aValue: UnicodeString);
  35697. procedure _Setalbum(const aValue: UnicodeString);
  35698. procedure _Setartwork(const aValue: TIJSObjectDynArray);
  35699. property title: UnicodeString read _Gettitle write _Settitle;
  35700. property artist: UnicodeString read _Getartist write _Setartist;
  35701. property album: UnicodeString read _Getalbum write _Setalbum;
  35702. property artwork: TIJSObjectDynArray read _Getartwork write _Setartwork;
  35703. end;
  35704. TJSMediaMetadata = class(TJSObject,IJSMediaMetadata)
  35705. Protected
  35706. function _Gettitle: UnicodeString;
  35707. function _Getartist: UnicodeString;
  35708. function _Getalbum: UnicodeString;
  35709. function _Getartwork: TIJSObjectDynArray;
  35710. procedure _Settitle(const aValue: UnicodeString);
  35711. procedure _Setartist(const aValue: UnicodeString);
  35712. procedure _Setalbum(const aValue: UnicodeString);
  35713. procedure _Setartwork(const aValue: TIJSObjectDynArray);
  35714. Public
  35715. constructor Create(const aInit: TJSMediaMetadataInit); overload;
  35716. constructor Create; overload;
  35717. class function JSClassName: UnicodeString; override;
  35718. class function Cast(const Intf: IJSObject): IJSMediaMetadata;
  35719. property title: UnicodeString read _Gettitle write _Settitle;
  35720. property artist: UnicodeString read _Getartist write _Setartist;
  35721. property album: UnicodeString read _Getalbum write _Setalbum;
  35722. property artwork: TIJSObjectDynArray read _Getartwork write _Setartwork;
  35723. end;
  35724. { --------------------------------------------------------------------
  35725. TJSMediaStreamError
  35726. --------------------------------------------------------------------}
  35727. IJSMediaStreamError = interface(IJSObject)
  35728. ['{A93A2890-DA9A-368F-9937-8536E421EDFB}']
  35729. function _Getname: UnicodeString;
  35730. function _Getmessage: UnicodeString;
  35731. function _Getconstraint: UnicodeString;
  35732. property name: UnicodeString read _Getname;
  35733. property message: UnicodeString read _Getmessage;
  35734. property constraint: UnicodeString read _Getconstraint;
  35735. end;
  35736. TJSMediaStreamError = class(TJSObject,IJSMediaStreamError)
  35737. Protected
  35738. function _Getname: UnicodeString;
  35739. function _Getmessage: UnicodeString;
  35740. function _Getconstraint: UnicodeString;
  35741. Public
  35742. class function JSClassName: UnicodeString; override;
  35743. class function Cast(const Intf: IJSObject): IJSMediaStreamError;
  35744. property name: UnicodeString read _Getname;
  35745. property message: UnicodeString read _Getmessage;
  35746. property constraint: UnicodeString read _Getconstraint;
  35747. end;
  35748. { --------------------------------------------------------------------
  35749. TJSMessageChannel
  35750. --------------------------------------------------------------------}
  35751. IJSMessageChannel = interface(IJSObject)
  35752. ['{37009EE6-FC14-3676-8A3B-63F9776A1AB1}']
  35753. function _Getport1: IJSMessagePort;
  35754. function _Getport2: IJSMessagePort;
  35755. property port1: IJSMessagePort read _Getport1;
  35756. property port2: IJSMessagePort read _Getport2;
  35757. end;
  35758. TJSMessageChannel = class(TJSObject,IJSMessageChannel)
  35759. Protected
  35760. function _Getport1: IJSMessagePort;
  35761. function _Getport2: IJSMessagePort;
  35762. Public
  35763. constructor Create; overload;
  35764. class function JSClassName: UnicodeString; override;
  35765. class function Cast(const Intf: IJSObject): IJSMessageChannel;
  35766. property port1: IJSMessagePort read _Getport1;
  35767. property port2: IJSMessagePort read _Getport2;
  35768. end;
  35769. { --------------------------------------------------------------------
  35770. TJSMIDIInputMap
  35771. --------------------------------------------------------------------}
  35772. IJSMIDIInputMap = interface(IJSObject)
  35773. ['{E6CFA648-94DD-3B0F-9220-F0D81AA2A621}']
  35774. function _Getsize : LongInt;
  35775. function get(key: UnicodeString) : TJSMIDIInput;
  35776. function has(key: UnicodeString) : Boolean;
  35777. function entries : IJSIterator;
  35778. function keys : IJSIterator;
  35779. function values : IJSIterator;
  35780. property size : LongInt read _Getsize;
  35781. end;
  35782. TJSMIDIInputMap = class(TJSObject,IJSMIDIInputMap)
  35783. Protected
  35784. function _Getsize : LongInt;
  35785. Public
  35786. function get(key: UnicodeString) : TJSMIDIInput;
  35787. function has(key: UnicodeString) : Boolean;
  35788. function entries : IJSIterator;
  35789. function keys : IJSIterator;
  35790. function values : IJSIterator;
  35791. class function JSClassName: UnicodeString; override;
  35792. class function Cast(const Intf: IJSObject): IJSMIDIInputMap;
  35793. property size : LongInt read _Getsize;
  35794. end;
  35795. { --------------------------------------------------------------------
  35796. TJSMIDIOutputMap
  35797. --------------------------------------------------------------------}
  35798. IJSMIDIOutputMap = interface(IJSObject)
  35799. ['{668E212C-0020-39DF-8C90-0F86C7DC1248}']
  35800. function _Getsize : LongInt;
  35801. function get(key: UnicodeString) : TJSMIDIOutput;
  35802. function has(key: UnicodeString) : Boolean;
  35803. function entries : IJSIterator;
  35804. function keys : IJSIterator;
  35805. function values : IJSIterator;
  35806. property size : LongInt read _Getsize;
  35807. end;
  35808. TJSMIDIOutputMap = class(TJSObject,IJSMIDIOutputMap)
  35809. Protected
  35810. function _Getsize : LongInt;
  35811. Public
  35812. function get(key: UnicodeString) : TJSMIDIOutput;
  35813. function has(key: UnicodeString) : Boolean;
  35814. function entries : IJSIterator;
  35815. function keys : IJSIterator;
  35816. function values : IJSIterator;
  35817. class function JSClassName: UnicodeString; override;
  35818. class function Cast(const Intf: IJSObject): IJSMIDIOutputMap;
  35819. property size : LongInt read _Getsize;
  35820. end;
  35821. { --------------------------------------------------------------------
  35822. TJSMimeType
  35823. --------------------------------------------------------------------}
  35824. IJSMimeType = interface(IJSObject)
  35825. ['{B09EF652-ED5A-3ED8-A382-395F169DB5F9}']
  35826. function _Gettype_: UnicodeString;
  35827. function _Getdescription: UnicodeString;
  35828. function _Getsuffixes: UnicodeString;
  35829. function _GetenabledPlugin: IJSPlugin;
  35830. property type_: UnicodeString read _Gettype_;
  35831. property description: UnicodeString read _Getdescription;
  35832. property suffixes: UnicodeString read _Getsuffixes;
  35833. property enabledPlugin: IJSPlugin read _GetenabledPlugin;
  35834. end;
  35835. TJSMimeType = class(TJSObject,IJSMimeType)
  35836. Protected
  35837. function _Gettype_: UnicodeString;
  35838. function _Getdescription: UnicodeString;
  35839. function _Getsuffixes: UnicodeString;
  35840. function _GetenabledPlugin: IJSPlugin;
  35841. Public
  35842. class function JSClassName: UnicodeString; override;
  35843. class function Cast(const Intf: IJSObject): IJSMimeType;
  35844. property type_: UnicodeString read _Gettype_;
  35845. property description: UnicodeString read _Getdescription;
  35846. property suffixes: UnicodeString read _Getsuffixes;
  35847. property enabledPlugin: IJSPlugin read _GetenabledPlugin;
  35848. end;
  35849. { --------------------------------------------------------------------
  35850. TJSMimeTypeArray
  35851. --------------------------------------------------------------------}
  35852. IJSMimeTypeArray = interface(IJSObject)
  35853. ['{036F6435-27C1-3D8D-A932-4D4D09266DC6}']
  35854. function _Getlength_: Cardinal;
  35855. function item(aIndex: Cardinal): IJSMimeType;
  35856. function namedItem(const aName: UnicodeString): IJSMimeType;
  35857. property length_: Cardinal read _Getlength_;
  35858. end;
  35859. TJSMimeTypeArray = class(TJSObject,IJSMimeTypeArray)
  35860. Protected
  35861. function _Getlength_: Cardinal;
  35862. Public
  35863. function item(aIndex: Cardinal): IJSMimeType; overload;
  35864. function namedItem(const aName: UnicodeString): IJSMimeType; overload;
  35865. class function JSClassName: UnicodeString; override;
  35866. class function Cast(const Intf: IJSObject): IJSMimeTypeArray;
  35867. property length_: Cardinal read _Getlength_;
  35868. end;
  35869. { --------------------------------------------------------------------
  35870. TJSMozFrameLoaderOwner
  35871. --------------------------------------------------------------------}
  35872. IJSMozFrameLoaderOwner = interface(IJSObject)
  35873. ['{34E340AC-FB22-368F-B658-5B6E604A3F3E}']
  35874. end;
  35875. TJSMozFrameLoaderOwner = class(TJSObject,IJSMozFrameLoaderOwner)
  35876. Protected
  35877. Public
  35878. class function JSClassName: UnicodeString; override;
  35879. class function Cast(const Intf: IJSObject): IJSMozFrameLoaderOwner;
  35880. end;
  35881. { --------------------------------------------------------------------
  35882. TJSMutationRecord
  35883. --------------------------------------------------------------------}
  35884. IJSMutationRecord = interface(IJSObject)
  35885. ['{3021B3EB-64AE-367A-8125-288E23F988A0}']
  35886. function _Gettype_: UnicodeString;
  35887. function _Gettarget: IJSNode;
  35888. function _GetaddedNodes: IJSNodeList;
  35889. function _GetremovedNodes: IJSNodeList;
  35890. function _GetpreviousSibling: IJSNode;
  35891. function _GetnextSibling: IJSNode;
  35892. function _GetattributeName: UnicodeString;
  35893. function _GetattributeNamespace: UnicodeString;
  35894. function _GetoldValue: UnicodeString;
  35895. property type_: UnicodeString read _Gettype_;
  35896. property target: IJSNode read _Gettarget;
  35897. property addedNodes: IJSNodeList read _GetaddedNodes;
  35898. property removedNodes: IJSNodeList read _GetremovedNodes;
  35899. property previousSibling: IJSNode read _GetpreviousSibling;
  35900. property nextSibling: IJSNode read _GetnextSibling;
  35901. property attributeName: UnicodeString read _GetattributeName;
  35902. property attributeNamespace: UnicodeString read _GetattributeNamespace;
  35903. property oldValue: UnicodeString read _GetoldValue;
  35904. end;
  35905. TJSMutationRecord = class(TJSObject,IJSMutationRecord)
  35906. Protected
  35907. function _Gettype_: UnicodeString;
  35908. function _Gettarget: IJSNode;
  35909. function _GetaddedNodes: IJSNodeList;
  35910. function _GetremovedNodes: IJSNodeList;
  35911. function _GetpreviousSibling: IJSNode;
  35912. function _GetnextSibling: IJSNode;
  35913. function _GetattributeName: UnicodeString;
  35914. function _GetattributeNamespace: UnicodeString;
  35915. function _GetoldValue: UnicodeString;
  35916. Public
  35917. class function JSClassName: UnicodeString; override;
  35918. class function Cast(const Intf: IJSObject): IJSMutationRecord;
  35919. property type_: UnicodeString read _Gettype_;
  35920. property target: IJSNode read _Gettarget;
  35921. property addedNodes: IJSNodeList read _GetaddedNodes;
  35922. property removedNodes: IJSNodeList read _GetremovedNodes;
  35923. property previousSibling: IJSNode read _GetpreviousSibling;
  35924. property nextSibling: IJSNode read _GetnextSibling;
  35925. property attributeName: UnicodeString read _GetattributeName;
  35926. property attributeNamespace: UnicodeString read _GetattributeNamespace;
  35927. property oldValue: UnicodeString read _GetoldValue;
  35928. end;
  35929. { --------------------------------------------------------------------
  35930. TJSMutationObserver
  35931. --------------------------------------------------------------------}
  35932. IJSMutationObserver = interface(IJSObject)
  35933. ['{DDC3D0B4-E8D1-3580-8280-D87E3228A228}']
  35934. procedure observe(aTarget: IJSNode; const aOptions: TJSMutationObserverInit);
  35935. procedure observe(aTarget: IJSNode);
  35936. procedure disconnect;
  35937. function takeRecords: TJSMutationRecordDynArray;
  35938. end;
  35939. TJSMutationObserver = class(TJSObject,IJSMutationObserver)
  35940. Protected
  35941. Public
  35942. constructor Create(const aMutationCallback: TMutationCallback); overload;
  35943. procedure observe(aTarget: IJSNode; const aOptions: TJSMutationObserverInit); overload;
  35944. procedure observe(aTarget: IJSNode); overload;
  35945. procedure disconnect; overload;
  35946. function takeRecords: TJSMutationRecordDynArray; overload;
  35947. class function JSClassName: UnicodeString; override;
  35948. class function Cast(const Intf: IJSObject): IJSMutationObserver;
  35949. end;
  35950. { --------------------------------------------------------------------
  35951. TJSNamedNodeMap
  35952. --------------------------------------------------------------------}
  35953. IJSNamedNodeMap = interface(IJSObject)
  35954. ['{0610D8A9-55AB-32B7-AD52-DD3C9C8CFA9F}']
  35955. function _Getlength_: Cardinal;
  35956. function getNamedItem(const aName: UnicodeString): IJSAttr;
  35957. function setNamedItem(aArg: IJSAttr): IJSAttr;
  35958. function removeNamedItem(const aName: UnicodeString): IJSAttr;
  35959. function item(aIndex: Cardinal): IJSAttr;
  35960. function getNamedItemNS(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): IJSAttr;
  35961. function setNamedItemNS(aArg: IJSAttr): IJSAttr;
  35962. function removeNamedItemNS(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): IJSAttr;
  35963. property length_: Cardinal read _Getlength_;
  35964. end;
  35965. TJSNamedNodeMap = class(TJSObject,IJSNamedNodeMap)
  35966. Protected
  35967. function _Getlength_: Cardinal;
  35968. Public
  35969. function getNamedItem(const aName: UnicodeString): IJSAttr; overload;
  35970. function setNamedItem(aArg: IJSAttr): IJSAttr; overload;
  35971. function removeNamedItem(const aName: UnicodeString): IJSAttr; overload;
  35972. function item(aIndex: Cardinal): IJSAttr; overload;
  35973. function getNamedItemNS(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): IJSAttr; overload;
  35974. function setNamedItemNS(aArg: IJSAttr): IJSAttr; overload;
  35975. function removeNamedItemNS(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): IJSAttr; overload;
  35976. class function JSClassName: UnicodeString; override;
  35977. class function Cast(const Intf: IJSObject): IJSNamedNodeMap;
  35978. property length_: Cardinal read _Getlength_;
  35979. end;
  35980. { --------------------------------------------------------------------
  35981. TJSNavigationPreloadManager
  35982. --------------------------------------------------------------------}
  35983. IJSNavigationPreloadManager = interface(IJSObject)
  35984. ['{95C21E2C-96A6-3882-909E-4903EE3998E5}']
  35985. function enable: IJSPromise; // Promise<undefined>
  35986. function disable: IJSPromise; // Promise<undefined>
  35987. function setHeaderValue(const aValue: UnicodeString): IJSPromise; // Promise<undefined>
  35988. function getState: IJSPromise; // Promise<NavigationPreloadState>
  35989. end;
  35990. TJSNavigationPreloadManager = class(TJSObject,IJSNavigationPreloadManager)
  35991. Protected
  35992. Public
  35993. function enable: IJSPromise; overload; // Promise<undefined>
  35994. function disable: IJSPromise; overload; // Promise<undefined>
  35995. function setHeaderValue(const aValue: UnicodeString): IJSPromise; overload; // Promise<undefined>
  35996. function getState: IJSPromise; overload; // Promise<NavigationPreloadState>
  35997. class function JSClassName: UnicodeString; override;
  35998. class function Cast(const Intf: IJSObject): IJSNavigationPreloadManager;
  35999. end;
  36000. { --------------------------------------------------------------------
  36001. TJSNavigator
  36002. --------------------------------------------------------------------}
  36003. TJSGamepadDynArray = IJSArray; // array of Gamepad
  36004. TJSMediaKeySystemConfigurationDynArray = IJSArray; // array of MediaKeySystemConfiguration
  36005. TJSVRDisplayDynArray = IJSArray; // array of VRDisplay
  36006. IJSNavigator = interface(IJSObject)
  36007. ['{26C12334-0B8F-3C85-AE36-432DF00E2D06}']
  36008. function _Getpermissions: IJSPermissions;
  36009. function _GetmimeTypes: IJSMimeTypeArray;
  36010. function _Getplugins: IJSPluginArray;
  36011. function _GetpdfViewerEnabled: Boolean;
  36012. function _GetdoNotTrack: UnicodeString;
  36013. function _GetmaxTouchPoints: LongInt;
  36014. function _GetmediaCapabilities: IJSMediaCapabilities;
  36015. function _Getoscpu: UnicodeString;
  36016. function _Getvendor: UnicodeString;
  36017. function _GetvendorSub: UnicodeString;
  36018. function _GetproductSub: UnicodeString;
  36019. function _GetcookieEnabled: Boolean;
  36020. function _GetbuildID: UnicodeString;
  36021. function _GetmozAddonManager: IJSAddonManager;
  36022. function _Getconnection: IJSNetworkInformation;
  36023. function _GetactiveVRDisplays: TJSVRDisplayDynArray;
  36024. function _Getxr: IJSXRSystem;
  36025. function _GetmediaDevices: IJSMediaDevices;
  36026. function _GetserviceWorker: IJSServiceWorkerContainer;
  36027. function _GetmozTCPSocket: IJSLegacyMozTCPSocket;
  36028. function _Getcredentials: IJSCredentialsContainer;
  36029. function _Getclipboard: IJSClipboard;
  36030. function _GettestTrialGatedAttribute: Boolean;
  36031. function _GetmediaSession: IJSMediaSession;
  36032. function _GetuserActivation: IJSUserActivation;
  36033. function _GetwakeLock: IJSWakeLock;
  36034. function _GetappCodeName: UnicodeString;
  36035. function _GetappName: UnicodeString;
  36036. function _GetappVersion: UnicodeString;
  36037. function _Getplatform: UnicodeString;
  36038. function _GetuserAgent: UnicodeString;
  36039. function _Getproduct: UnicodeString;
  36040. function _Getlanguage: UnicodeString;
  36041. function _Getlanguages: TUnicodeStringDynArray;
  36042. function _GetonLine: Boolean;
  36043. function _GethardwareConcurrency: QWord;
  36044. function _Getstorage: IJSStorageManager;
  36045. function _Getwebdriver: Boolean;
  36046. function _Getgpu: IJSGPU;
  36047. function _GetglobalPrivacyControl: Boolean;
  36048. function _Getgeolocation: IJSGeolocation;
  36049. function _Getlocks: IJSLockManager;
  36050. function vibrate(aDuration: Cardinal): Boolean;
  36051. function vibrate(const aPattern: TCardinalDynArray): Boolean;
  36052. function javaEnabled: Boolean;
  36053. function getGamepads: TJSGamepadDynArray;
  36054. function requestGamepadServiceTest: IJSGamepadServiceTest;
  36055. function getVRDisplays: IJSPromise; // Promise<sequence>
  36056. function requestVRServiceTest: IJSVRServiceTest;
  36057. function requestMIDIAccess(const aOptions: TJSMIDIOptions): IJSPromise; // Promise<MIDIAccess>
  36058. function requestMIDIAccess: IJSPromise; // Promise<MIDIAccess>
  36059. procedure mozGetUserMedia(const aConstraints: TJSMediaStreamConstraints; const aSuccessCallback: TNavigatorUserMediaSuccessCallback; const aErrorCallback: TNavigatorUserMediaErrorCallback);
  36060. function sendBeacon(const aUrl: UnicodeString; const aData: TBodyInit): Boolean;
  36061. function sendBeacon(const aUrl: UnicodeString): Boolean;
  36062. function requestMediaKeySystemAccess(const aKeySystem: UnicodeString; const aSupportedConfigurations: TJSMediaKeySystemConfigurationDynArray): IJSPromise; // Promise<MediaKeySystemAccess>
  36063. function share(const aData: TJSShareData): IJSPromise; // Promise<undefined>
  36064. function share: IJSPromise; // Promise<undefined>
  36065. function canShare(const aData: TJSShareData): Boolean;
  36066. function canShare: Boolean;
  36067. function getAutoplayPolicy(aType_: TAutoplayPolicyMediaType): TAutoplayPolicy;
  36068. function getAutoplayPolicy(aElement: IJSHTMLMediaElement): TAutoplayPolicy;
  36069. function getAutoplayPolicy(aContext: IJSAudioContext): TAutoplayPolicy;
  36070. function taintEnabled: Boolean;
  36071. procedure registerProtocolHandler(const aScheme: UnicodeString; const aUrl: UnicodeString);
  36072. property permissions: IJSPermissions read _Getpermissions;
  36073. property mimeTypes: IJSMimeTypeArray read _GetmimeTypes;
  36074. property plugins: IJSPluginArray read _Getplugins;
  36075. property pdfViewerEnabled: Boolean read _GetpdfViewerEnabled;
  36076. property doNotTrack: UnicodeString read _GetdoNotTrack;
  36077. property maxTouchPoints: LongInt read _GetmaxTouchPoints;
  36078. property mediaCapabilities: IJSMediaCapabilities read _GetmediaCapabilities;
  36079. property oscpu: UnicodeString read _Getoscpu;
  36080. property vendor: UnicodeString read _Getvendor;
  36081. property vendorSub: UnicodeString read _GetvendorSub;
  36082. property productSub: UnicodeString read _GetproductSub;
  36083. property cookieEnabled: Boolean read _GetcookieEnabled;
  36084. property buildID: UnicodeString read _GetbuildID;
  36085. property mozAddonManager: IJSAddonManager read _GetmozAddonManager;
  36086. property connection: IJSNetworkInformation read _Getconnection;
  36087. property activeVRDisplays: TJSVRDisplayDynArray read _GetactiveVRDisplays;
  36088. property xr: IJSXRSystem read _Getxr;
  36089. property mediaDevices: IJSMediaDevices read _GetmediaDevices;
  36090. property serviceWorker: IJSServiceWorkerContainer read _GetserviceWorker;
  36091. property mozTCPSocket: IJSLegacyMozTCPSocket read _GetmozTCPSocket;
  36092. property credentials: IJSCredentialsContainer read _Getcredentials;
  36093. property clipboard: IJSClipboard read _Getclipboard;
  36094. property testTrialGatedAttribute: Boolean read _GettestTrialGatedAttribute;
  36095. property mediaSession: IJSMediaSession read _GetmediaSession;
  36096. property userActivation: IJSUserActivation read _GetuserActivation;
  36097. property wakeLock: IJSWakeLock read _GetwakeLock;
  36098. property appCodeName: UnicodeString read _GetappCodeName;
  36099. property appName: UnicodeString read _GetappName;
  36100. property appVersion: UnicodeString read _GetappVersion;
  36101. property platform: UnicodeString read _Getplatform;
  36102. property userAgent: UnicodeString read _GetuserAgent;
  36103. property product: UnicodeString read _Getproduct;
  36104. property language: UnicodeString read _Getlanguage;
  36105. property languages: TUnicodeStringDynArray read _Getlanguages;
  36106. property onLine: Boolean read _GetonLine;
  36107. property hardwareConcurrency: QWord read _GethardwareConcurrency;
  36108. property storage: IJSStorageManager read _Getstorage;
  36109. property webdriver: Boolean read _Getwebdriver;
  36110. property gpu: IJSGPU read _Getgpu;
  36111. property globalPrivacyControl: Boolean read _GetglobalPrivacyControl;
  36112. property geolocation: IJSGeolocation read _Getgeolocation;
  36113. property locks: IJSLockManager read _Getlocks;
  36114. end;
  36115. TJSNavigator = class(TJSObject,IJSNavigator)
  36116. Protected
  36117. function _Getpermissions: IJSPermissions;
  36118. function _GetmimeTypes: IJSMimeTypeArray;
  36119. function _Getplugins: IJSPluginArray;
  36120. function _GetpdfViewerEnabled: Boolean;
  36121. function _GetdoNotTrack: UnicodeString;
  36122. function _GetmaxTouchPoints: LongInt;
  36123. function _GetmediaCapabilities: IJSMediaCapabilities;
  36124. function _Getoscpu: UnicodeString;
  36125. function _Getvendor: UnicodeString;
  36126. function _GetvendorSub: UnicodeString;
  36127. function _GetproductSub: UnicodeString;
  36128. function _GetcookieEnabled: Boolean;
  36129. function _GetbuildID: UnicodeString;
  36130. function _GetmozAddonManager: IJSAddonManager;
  36131. function _Getconnection: IJSNetworkInformation;
  36132. function _GetactiveVRDisplays: TJSVRDisplayDynArray;
  36133. function _Getxr: IJSXRSystem;
  36134. function _GetmediaDevices: IJSMediaDevices;
  36135. function _GetserviceWorker: IJSServiceWorkerContainer;
  36136. function _GetmozTCPSocket: IJSLegacyMozTCPSocket;
  36137. function _Getcredentials: IJSCredentialsContainer;
  36138. function _Getclipboard: IJSClipboard;
  36139. function _GettestTrialGatedAttribute: Boolean;
  36140. function _GetmediaSession: IJSMediaSession;
  36141. function _GetuserActivation: IJSUserActivation;
  36142. function _GetwakeLock: IJSWakeLock;
  36143. function _GetappCodeName: UnicodeString;
  36144. function _GetappName: UnicodeString;
  36145. function _GetappVersion: UnicodeString;
  36146. function _Getplatform: UnicodeString;
  36147. function _GetuserAgent: UnicodeString;
  36148. function _Getproduct: UnicodeString;
  36149. function _Getlanguage: UnicodeString;
  36150. function _Getlanguages: TUnicodeStringDynArray;
  36151. function _GetonLine: Boolean;
  36152. function _GethardwareConcurrency: QWord;
  36153. function _Getstorage: IJSStorageManager;
  36154. function _Getwebdriver: Boolean;
  36155. function _Getgpu: IJSGPU;
  36156. function _GetglobalPrivacyControl: Boolean;
  36157. function _Getgeolocation: IJSGeolocation;
  36158. function _Getlocks: IJSLockManager;
  36159. Public
  36160. function vibrate(aDuration: Cardinal): Boolean; overload;
  36161. function vibrate(const aPattern: TCardinalDynArray): Boolean; overload;
  36162. function javaEnabled: Boolean; overload;
  36163. function getGamepads: TJSGamepadDynArray; overload;
  36164. function requestGamepadServiceTest: IJSGamepadServiceTest; overload;
  36165. function getVRDisplays: IJSPromise; overload; // Promise<sequence>
  36166. function requestVRServiceTest: IJSVRServiceTest; overload;
  36167. function requestMIDIAccess(const aOptions: TJSMIDIOptions): IJSPromise; overload; // Promise<MIDIAccess>
  36168. function requestMIDIAccess: IJSPromise; overload; // Promise<MIDIAccess>
  36169. procedure mozGetUserMedia(const aConstraints: TJSMediaStreamConstraints; const aSuccessCallback: TNavigatorUserMediaSuccessCallback; const aErrorCallback: TNavigatorUserMediaErrorCallback); overload;
  36170. function sendBeacon(const aUrl: UnicodeString; const aData: TBodyInit): Boolean; overload;
  36171. function sendBeacon(const aUrl: UnicodeString): Boolean; overload;
  36172. function requestMediaKeySystemAccess(const aKeySystem: UnicodeString; const aSupportedConfigurations: TJSMediaKeySystemConfigurationDynArray): IJSPromise; overload; // Promise<MediaKeySystemAccess>
  36173. function share(const aData: TJSShareData): IJSPromise; overload; // Promise<undefined>
  36174. function share: IJSPromise; overload; // Promise<undefined>
  36175. function canShare(const aData: TJSShareData): Boolean; overload;
  36176. function canShare: Boolean; overload;
  36177. function getAutoplayPolicy(aType_: TAutoplayPolicyMediaType): TAutoplayPolicy; overload;
  36178. function getAutoplayPolicy(aElement: IJSHTMLMediaElement): TAutoplayPolicy; overload;
  36179. function getAutoplayPolicy(aContext: IJSAudioContext): TAutoplayPolicy; overload;
  36180. function taintEnabled: Boolean; overload;
  36181. procedure registerProtocolHandler(const aScheme: UnicodeString; const aUrl: UnicodeString); overload;
  36182. class function JSClassName: UnicodeString; override;
  36183. class function Cast(const Intf: IJSObject): IJSNavigator;
  36184. property permissions: IJSPermissions read _Getpermissions;
  36185. property mimeTypes: IJSMimeTypeArray read _GetmimeTypes;
  36186. property plugins: IJSPluginArray read _Getplugins;
  36187. property pdfViewerEnabled: Boolean read _GetpdfViewerEnabled;
  36188. property doNotTrack: UnicodeString read _GetdoNotTrack;
  36189. property maxTouchPoints: LongInt read _GetmaxTouchPoints;
  36190. property mediaCapabilities: IJSMediaCapabilities read _GetmediaCapabilities;
  36191. property oscpu: UnicodeString read _Getoscpu;
  36192. property vendor: UnicodeString read _Getvendor;
  36193. property vendorSub: UnicodeString read _GetvendorSub;
  36194. property productSub: UnicodeString read _GetproductSub;
  36195. property cookieEnabled: Boolean read _GetcookieEnabled;
  36196. property buildID: UnicodeString read _GetbuildID;
  36197. property mozAddonManager: IJSAddonManager read _GetmozAddonManager;
  36198. property connection: IJSNetworkInformation read _Getconnection;
  36199. property activeVRDisplays: TJSVRDisplayDynArray read _GetactiveVRDisplays;
  36200. property xr: IJSXRSystem read _Getxr;
  36201. property mediaDevices: IJSMediaDevices read _GetmediaDevices;
  36202. property serviceWorker: IJSServiceWorkerContainer read _GetserviceWorker;
  36203. property mozTCPSocket: IJSLegacyMozTCPSocket read _GetmozTCPSocket;
  36204. property credentials: IJSCredentialsContainer read _Getcredentials;
  36205. property clipboard: IJSClipboard read _Getclipboard;
  36206. property testTrialGatedAttribute: Boolean read _GettestTrialGatedAttribute;
  36207. property mediaSession: IJSMediaSession read _GetmediaSession;
  36208. property userActivation: IJSUserActivation read _GetuserActivation;
  36209. property wakeLock: IJSWakeLock read _GetwakeLock;
  36210. property appCodeName: UnicodeString read _GetappCodeName;
  36211. property appName: UnicodeString read _GetappName;
  36212. property appVersion: UnicodeString read _GetappVersion;
  36213. property platform: UnicodeString read _Getplatform;
  36214. property userAgent: UnicodeString read _GetuserAgent;
  36215. property product: UnicodeString read _Getproduct;
  36216. property language: UnicodeString read _Getlanguage;
  36217. property languages: TUnicodeStringDynArray read _Getlanguages;
  36218. property onLine: Boolean read _GetonLine;
  36219. property hardwareConcurrency: QWord read _GethardwareConcurrency;
  36220. property storage: IJSStorageManager read _Getstorage;
  36221. property webdriver: Boolean read _Getwebdriver;
  36222. property gpu: IJSGPU read _Getgpu;
  36223. property globalPrivacyControl: Boolean read _GetglobalPrivacyControl;
  36224. property geolocation: IJSGeolocation read _Getgeolocation;
  36225. property locks: IJSLockManager read _Getlocks;
  36226. end;
  36227. { --------------------------------------------------------------------
  36228. TJSNavigatorID
  36229. --------------------------------------------------------------------}
  36230. IJSNavigatorID = interface(IJSObject)
  36231. ['{215A405D-0F9C-31EF-B9F7-FF5AB1BCEF36}']
  36232. function _GetappCodeName: UnicodeString;
  36233. function _GetappName: UnicodeString;
  36234. function _GetappVersion: UnicodeString;
  36235. function _Getplatform: UnicodeString;
  36236. function _GetuserAgent: UnicodeString;
  36237. function _Getproduct: UnicodeString;
  36238. function taintEnabled: Boolean;
  36239. property appCodeName: UnicodeString read _GetappCodeName;
  36240. property appName: UnicodeString read _GetappName;
  36241. property appVersion: UnicodeString read _GetappVersion;
  36242. property platform: UnicodeString read _Getplatform;
  36243. property userAgent: UnicodeString read _GetuserAgent;
  36244. property product: UnicodeString read _Getproduct;
  36245. end;
  36246. TJSNavigatorID = class(TJSObject,IJSNavigatorID)
  36247. Protected
  36248. function _GetappCodeName: UnicodeString;
  36249. function _GetappName: UnicodeString;
  36250. function _GetappVersion: UnicodeString;
  36251. function _Getplatform: UnicodeString;
  36252. function _GetuserAgent: UnicodeString;
  36253. function _Getproduct: UnicodeString;
  36254. Public
  36255. function taintEnabled: Boolean; overload;
  36256. class function JSClassName: UnicodeString; override;
  36257. class function Cast(const Intf: IJSObject): IJSNavigatorID;
  36258. property appCodeName: UnicodeString read _GetappCodeName;
  36259. property appName: UnicodeString read _GetappName;
  36260. property appVersion: UnicodeString read _GetappVersion;
  36261. property platform: UnicodeString read _Getplatform;
  36262. property userAgent: UnicodeString read _GetuserAgent;
  36263. property product: UnicodeString read _Getproduct;
  36264. end;
  36265. { --------------------------------------------------------------------
  36266. TJSNavigatorLanguage
  36267. --------------------------------------------------------------------}
  36268. IJSNavigatorLanguage = interface(IJSObject)
  36269. ['{2EFCA0E7-8953-3167-AE7E-BFFA622D2A1E}']
  36270. function _Getlanguage: UnicodeString;
  36271. function _Getlanguages: TUnicodeStringDynArray;
  36272. property language: UnicodeString read _Getlanguage;
  36273. property languages: TUnicodeStringDynArray read _Getlanguages;
  36274. end;
  36275. TJSNavigatorLanguage = class(TJSObject,IJSNavigatorLanguage)
  36276. Protected
  36277. function _Getlanguage: UnicodeString;
  36278. function _Getlanguages: TUnicodeStringDynArray;
  36279. Public
  36280. class function JSClassName: UnicodeString; override;
  36281. class function Cast(const Intf: IJSObject): IJSNavigatorLanguage;
  36282. property language: UnicodeString read _Getlanguage;
  36283. property languages: TUnicodeStringDynArray read _Getlanguages;
  36284. end;
  36285. { --------------------------------------------------------------------
  36286. TJSNavigatorOnLine
  36287. --------------------------------------------------------------------}
  36288. IJSNavigatorOnLine = interface(IJSObject)
  36289. ['{D3A72A1E-EB8A-3AE7-953C-E8AA1D3F6A8F}']
  36290. function _GetonLine: Boolean;
  36291. property onLine: Boolean read _GetonLine;
  36292. end;
  36293. TJSNavigatorOnLine = class(TJSObject,IJSNavigatorOnLine)
  36294. Protected
  36295. function _GetonLine: Boolean;
  36296. Public
  36297. class function JSClassName: UnicodeString; override;
  36298. class function Cast(const Intf: IJSObject): IJSNavigatorOnLine;
  36299. property onLine: Boolean read _GetonLine;
  36300. end;
  36301. { --------------------------------------------------------------------
  36302. TJSNavigatorContentUtils
  36303. --------------------------------------------------------------------}
  36304. IJSNavigatorContentUtils = interface(IJSObject)
  36305. ['{362EC3BB-3CE7-318B-B2C8-528F06651BFC}']
  36306. procedure registerProtocolHandler(const aScheme: UnicodeString; const aUrl: UnicodeString);
  36307. end;
  36308. TJSNavigatorContentUtils = class(TJSObject,IJSNavigatorContentUtils)
  36309. Protected
  36310. Public
  36311. procedure registerProtocolHandler(const aScheme: UnicodeString; const aUrl: UnicodeString); overload;
  36312. class function JSClassName: UnicodeString; override;
  36313. class function Cast(const Intf: IJSObject): IJSNavigatorContentUtils;
  36314. end;
  36315. { --------------------------------------------------------------------
  36316. TJSNavigatorStorage
  36317. --------------------------------------------------------------------}
  36318. IJSNavigatorStorage = interface(IJSObject)
  36319. ['{4E187B4F-7050-3B84-A57C-BC857B5FB047}']
  36320. function _Getstorage: IJSStorageManager;
  36321. property storage: IJSStorageManager read _Getstorage;
  36322. end;
  36323. TJSNavigatorStorage = class(TJSObject,IJSNavigatorStorage)
  36324. Protected
  36325. function _Getstorage: IJSStorageManager;
  36326. Public
  36327. class function JSClassName: UnicodeString; override;
  36328. class function Cast(const Intf: IJSObject): IJSNavigatorStorage;
  36329. property storage: IJSStorageManager read _Getstorage;
  36330. end;
  36331. { --------------------------------------------------------------------
  36332. TJSNavigatorStorageUtils
  36333. --------------------------------------------------------------------}
  36334. IJSNavigatorStorageUtils = interface(IJSObject)
  36335. ['{E0F1ED77-CF32-3976-B0E2-7B11DFFDF30F}']
  36336. end;
  36337. TJSNavigatorStorageUtils = class(TJSObject,IJSNavigatorStorageUtils)
  36338. Protected
  36339. Public
  36340. class function JSClassName: UnicodeString; override;
  36341. class function Cast(const Intf: IJSObject): IJSNavigatorStorageUtils;
  36342. end;
  36343. { --------------------------------------------------------------------
  36344. TJSGlobalPrivacyControl
  36345. --------------------------------------------------------------------}
  36346. IJSGlobalPrivacyControl = interface(IJSObject)
  36347. ['{837EBBD4-0A6E-39CB-BB68-60A372EFFCB4}']
  36348. function _GetglobalPrivacyControl: Boolean;
  36349. property globalPrivacyControl: Boolean read _GetglobalPrivacyControl;
  36350. end;
  36351. TJSGlobalPrivacyControl = class(TJSObject,IJSGlobalPrivacyControl)
  36352. Protected
  36353. function _GetglobalPrivacyControl: Boolean;
  36354. Public
  36355. class function JSClassName: UnicodeString; override;
  36356. class function Cast(const Intf: IJSObject): IJSGlobalPrivacyControl;
  36357. property globalPrivacyControl: Boolean read _GetglobalPrivacyControl;
  36358. end;
  36359. { --------------------------------------------------------------------
  36360. TJSNavigatorGeolocation
  36361. --------------------------------------------------------------------}
  36362. IJSNavigatorGeolocation = interface(IJSObject)
  36363. ['{2A5C466F-4776-3B41-A101-553CDDF53214}']
  36364. function _Getgeolocation: IJSGeolocation;
  36365. property geolocation: IJSGeolocation read _Getgeolocation;
  36366. end;
  36367. TJSNavigatorGeolocation = class(TJSObject,IJSNavigatorGeolocation)
  36368. Protected
  36369. function _Getgeolocation: IJSGeolocation;
  36370. Public
  36371. class function JSClassName: UnicodeString; override;
  36372. class function Cast(const Intf: IJSObject): IJSNavigatorGeolocation;
  36373. property geolocation: IJSGeolocation read _Getgeolocation;
  36374. end;
  36375. { --------------------------------------------------------------------
  36376. TJSNavigatorConcurrentHardware
  36377. --------------------------------------------------------------------}
  36378. IJSNavigatorConcurrentHardware = interface(IJSObject)
  36379. ['{7B301AD1-26B3-3394-A2B6-61F4EB52863D}']
  36380. function _GethardwareConcurrency: QWord;
  36381. property hardwareConcurrency: QWord read _GethardwareConcurrency;
  36382. end;
  36383. TJSNavigatorConcurrentHardware = class(TJSObject,IJSNavigatorConcurrentHardware)
  36384. Protected
  36385. function _GethardwareConcurrency: QWord;
  36386. Public
  36387. class function JSClassName: UnicodeString; override;
  36388. class function Cast(const Intf: IJSObject): IJSNavigatorConcurrentHardware;
  36389. property hardwareConcurrency: QWord read _GethardwareConcurrency;
  36390. end;
  36391. { --------------------------------------------------------------------
  36392. TJSNavigatorAutomationInformation
  36393. --------------------------------------------------------------------}
  36394. IJSNavigatorAutomationInformation = interface(IJSObject)
  36395. ['{D644165F-F322-372F-90C1-995B3CEB56D6}']
  36396. function _Getwebdriver: Boolean;
  36397. property webdriver: Boolean read _Getwebdriver;
  36398. end;
  36399. TJSNavigatorAutomationInformation = class(TJSObject,IJSNavigatorAutomationInformation)
  36400. Protected
  36401. function _Getwebdriver: Boolean;
  36402. Public
  36403. class function JSClassName: UnicodeString; override;
  36404. class function Cast(const Intf: IJSObject): IJSNavigatorAutomationInformation;
  36405. property webdriver: Boolean read _Getwebdriver;
  36406. end;
  36407. { --------------------------------------------------------------------
  36408. TJSNavigatorLocks
  36409. --------------------------------------------------------------------}
  36410. IJSNavigatorLocks = interface(IJSObject)
  36411. ['{799D5A20-56B0-3761-B136-7F9D6EE06136}']
  36412. function _Getlocks: IJSLockManager;
  36413. property locks: IJSLockManager read _Getlocks;
  36414. end;
  36415. TJSNavigatorLocks = class(TJSObject,IJSNavigatorLocks)
  36416. Protected
  36417. function _Getlocks: IJSLockManager;
  36418. Public
  36419. class function JSClassName: UnicodeString; override;
  36420. class function Cast(const Intf: IJSObject): IJSNavigatorLocks;
  36421. property locks: IJSLockManager read _Getlocks;
  36422. end;
  36423. { --------------------------------------------------------------------
  36424. TJSNodeIterator
  36425. --------------------------------------------------------------------}
  36426. IJSNodeIterator = interface(IJSObject)
  36427. ['{BA2591D6-ECC5-3504-B093-55716146F7C7}']
  36428. function _Getroot: IJSNode;
  36429. function _GetreferenceNode: IJSNode;
  36430. function _GetpointerBeforeReferenceNode: Boolean;
  36431. function _GetwhatToShow: Cardinal;
  36432. function _Getfilter: TNodeFilter;
  36433. function nextNode: IJSNode;
  36434. function previousNode: IJSNode;
  36435. procedure detach;
  36436. property root: IJSNode read _Getroot;
  36437. property referenceNode: IJSNode read _GetreferenceNode;
  36438. property pointerBeforeReferenceNode: Boolean read _GetpointerBeforeReferenceNode;
  36439. property whatToShow: Cardinal read _GetwhatToShow;
  36440. property filter: TNodeFilter read _Getfilter;
  36441. end;
  36442. TJSNodeIterator = class(TJSObject,IJSNodeIterator)
  36443. Protected
  36444. function _Getroot: IJSNode;
  36445. function _GetreferenceNode: IJSNode;
  36446. function _GetpointerBeforeReferenceNode: Boolean;
  36447. function _GetwhatToShow: Cardinal;
  36448. function _Getfilter: TNodeFilter;
  36449. Public
  36450. function nextNode: IJSNode; overload;
  36451. function previousNode: IJSNode; overload;
  36452. procedure detach; overload;
  36453. class function JSClassName: UnicodeString; override;
  36454. class function Cast(const Intf: IJSObject): IJSNodeIterator;
  36455. property root: IJSNode read _Getroot;
  36456. property referenceNode: IJSNode read _GetreferenceNode;
  36457. property pointerBeforeReferenceNode: Boolean read _GetpointerBeforeReferenceNode;
  36458. property whatToShow: Cardinal read _GetwhatToShow;
  36459. property filter: TNodeFilter read _Getfilter;
  36460. end;
  36461. { --------------------------------------------------------------------
  36462. TJSNodeList
  36463. --------------------------------------------------------------------}
  36464. IJSNodeList = interface(IJSObject)
  36465. ['{4890CF3A-7B13-3E7A-9A09-8A3EED528BC7}']
  36466. function _Getlength_: Cardinal;
  36467. function item(aIndex: Cardinal): IJSNode;
  36468. property length_: Cardinal read _Getlength_;
  36469. end;
  36470. TJSNodeList = class(TJSObject,IJSNodeList)
  36471. Protected
  36472. function _Getlength_: Cardinal;
  36473. Public
  36474. function item(aIndex: Cardinal): IJSNode; overload;
  36475. class function JSClassName: UnicodeString; override;
  36476. class function Cast(const Intf: IJSObject): IJSNodeList;
  36477. property length_: Cardinal read _Getlength_;
  36478. end;
  36479. { --------------------------------------------------------------------
  36480. TJSNonElementParentNode
  36481. --------------------------------------------------------------------}
  36482. IJSNonElementParentNode = interface(IJSObject)
  36483. ['{B9E6BE73-B984-34CC-BBBC-93D6C0C8121C}']
  36484. function getElementById(const aElementId: UnicodeString): IJSElement;
  36485. end;
  36486. TJSNonElementParentNode = class(TJSObject,IJSNonElementParentNode)
  36487. Protected
  36488. Public
  36489. function getElementById(const aElementId: UnicodeString): IJSElement; overload;
  36490. class function JSClassName: UnicodeString; override;
  36491. class function Cast(const Intf: IJSObject): IJSNonElementParentNode;
  36492. end;
  36493. { --------------------------------------------------------------------
  36494. TJSOffscreenCanvasRenderingContext2D
  36495. --------------------------------------------------------------------}
  36496. IJSOffscreenCanvasRenderingContext2D = interface(IJSObject)
  36497. ['{2176BF78-4D3D-3387-9838-374B1B734B4E}']
  36498. function _Getcanvas: IJSOffscreenCanvas;
  36499. function _GetglobalAlpha: Double;
  36500. function _GetglobalCompositeOperation: UnicodeString;
  36501. function _GetimageSmoothingEnabled: Boolean;
  36502. function _GetstrokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type;
  36503. function _GetfillStyle: TCanvasFillStrokeStyles_fillStyle_Type;
  36504. function _GetshadowOffsetX: Double;
  36505. function _GetshadowOffsetY: Double;
  36506. function _GetshadowBlur: Double;
  36507. function _GetshadowColor: UTF8String;
  36508. function _Getfilter: UTF8String;
  36509. function _GetlineWidth: Double;
  36510. function _GetlineCap: TCanvasLineCap;
  36511. function _GetlineJoin: TCanvasLineJoin;
  36512. function _GetmiterLimit: Double;
  36513. function _GetlineDashOffset: Double;
  36514. function _Getfont: UTF8String;
  36515. function _GettextAlign: TCanvasTextAlign;
  36516. function _GettextBaseline: TCanvasTextBaseline;
  36517. function _Getdirection: TCanvasDirection;
  36518. function _GetletterSpacing: UTF8String;
  36519. function _GetfontKerning: TCanvasFontKerning;
  36520. function _GetfontStretch: TCanvasFontStretch;
  36521. function _GetfontVariantCaps: TCanvasFontVariantCaps;
  36522. function _GettextRendering: TCanvasTextRendering;
  36523. function _GetwordSpacing: UTF8String;
  36524. procedure _SetglobalAlpha(const aValue: Double);
  36525. procedure _SetglobalCompositeOperation(const aValue: UnicodeString);
  36526. procedure _SetimageSmoothingEnabled(const aValue: Boolean);
  36527. procedure _SetstrokeStyle(const aValue: TCanvasFillStrokeStyles_strokeStyle_Type);
  36528. procedure _SetfillStyle(const aValue: TCanvasFillStrokeStyles_fillStyle_Type);
  36529. procedure _SetshadowOffsetX(const aValue: Double);
  36530. procedure _SetshadowOffsetY(const aValue: Double);
  36531. procedure _SetshadowBlur(const aValue: Double);
  36532. procedure _SetshadowColor(const aValue: UTF8String);
  36533. procedure _Setfilter(const aValue: UTF8String);
  36534. procedure _SetlineWidth(const aValue: Double);
  36535. procedure _SetlineCap(const aValue: TCanvasLineCap);
  36536. procedure _SetlineJoin(const aValue: TCanvasLineJoin);
  36537. procedure _SetmiterLimit(const aValue: Double);
  36538. procedure _SetlineDashOffset(const aValue: Double);
  36539. procedure _Setfont(const aValue: UTF8String);
  36540. procedure _SettextAlign(const aValue: TCanvasTextAlign);
  36541. procedure _SettextBaseline(const aValue: TCanvasTextBaseline);
  36542. procedure _Setdirection(const aValue: TCanvasDirection);
  36543. procedure _SetletterSpacing(const aValue: UTF8String);
  36544. procedure _SetfontKerning(const aValue: TCanvasFontKerning);
  36545. procedure _SetfontStretch(const aValue: TCanvasFontStretch);
  36546. procedure _SetfontVariantCaps(const aValue: TCanvasFontVariantCaps);
  36547. procedure _SettextRendering(const aValue: TCanvasTextRendering);
  36548. procedure _SetwordSpacing(const aValue: UTF8String);
  36549. procedure commit;
  36550. procedure save;
  36551. procedure restore;
  36552. procedure reset;
  36553. function isContextLost: Boolean;
  36554. procedure scale(aX: Double; aY: Double);
  36555. procedure rotate(aAngle: Double);
  36556. procedure translate(aX: Double; aY: Double);
  36557. procedure transform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  36558. function getTransform: IJSDOMMatrix;
  36559. procedure setTransform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  36560. procedure setTransform(const aTransform: TJSDOMMatrix2DInit);
  36561. procedure setTransform;
  36562. procedure resetTransform;
  36563. function createLinearGradient(aX0: Double; aY0: Double; aX1: Double; aY1: Double): IJSCanvasGradient;
  36564. function createRadialGradient(aX0: Double; aY0: Double; aR0: Double; aX1: Double; aY1: Double; aR1: Double): IJSCanvasGradient;
  36565. function createConicGradient(aAngle: Double; aCx: Double; aCy: Double): IJSCanvasGradient;
  36566. function createPattern(aImage: IJSHTMLCanvasElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  36567. function createPattern(const aImage: THTMLOrSVGImageElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  36568. function createPattern(aImage: IJSHTMLVideoElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  36569. function createPattern(aImage: IJSImageBitmap; const aRepetition: UnicodeString): IJSCanvasPattern;
  36570. function createPattern(aImage: IJSOffscreenCanvas; const aRepetition: UnicodeString): IJSCanvasPattern;
  36571. function createPattern(aImage: IJSVideoFrame; const aRepetition: UnicodeString): IJSCanvasPattern;
  36572. procedure clearRect(aX: Double; aY: Double; aW: Double; aH: Double);
  36573. procedure fillRect(aX: Double; aY: Double; aW: Double; aH: Double);
  36574. procedure strokeRect(aX: Double; aY: Double; aW: Double; aH: Double);
  36575. procedure beginPath;
  36576. procedure fill(aWinding: TCanvasWindingRule);
  36577. procedure fill;
  36578. procedure fill(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  36579. procedure fill(aPath: IJSPath2D);
  36580. procedure stroke;
  36581. procedure stroke(aPath: IJSPath2D);
  36582. procedure clip(aWinding: TCanvasWindingRule);
  36583. procedure clip;
  36584. procedure clip(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  36585. procedure clip(aPath: IJSPath2D);
  36586. function isPointInPath(aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  36587. function isPointInPath(aX: Double; aY: Double): Boolean;
  36588. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  36589. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  36590. function isPointInStroke(aX: Double; aY: Double): Boolean;
  36591. function isPointInStroke(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  36592. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  36593. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double);
  36594. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  36595. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double);
  36596. function measureText(const aText: UnicodeString): IJSTextMetrics;
  36597. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double);
  36598. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double);
  36599. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double);
  36600. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double);
  36601. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double);
  36602. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double);
  36603. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36604. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36605. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36606. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36607. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36608. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36609. procedure drawImage(aImage: IJSHTMLCanvasElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36610. procedure drawImage(const aImage: THTMLOrSVGImageElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36611. procedure drawImage(aImage: IJSHTMLVideoElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36612. procedure drawImage(aImage: IJSImageBitmap; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36613. procedure drawImage(aImage: IJSOffscreenCanvas; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36614. procedure drawImage(aImage: IJSVideoFrame; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  36615. function createImageData(aSw: LongInt; aSh: LongInt): IJSImageData;
  36616. function createImageData(aImagedata: IJSImageData): IJSImageData;
  36617. function getImageData(aSx: LongInt; aSy: LongInt; aSw: LongInt; aSh: LongInt): IJSImageData;
  36618. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt);
  36619. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt; aDirtyX: LongInt; aDirtyY: LongInt; aDirtyWidth: LongInt; aDirtyHeight: LongInt);
  36620. procedure setLineDash(const aSegments: TDoubleDynArray);
  36621. function getLineDash: TDoubleDynArray;
  36622. procedure closePath;
  36623. procedure moveTo(aX: Double; aY: Double);
  36624. procedure lineTo(aX: Double; aY: Double);
  36625. procedure quadraticCurveTo(aCpx: Double; aCpy: Double; aX: Double; aY: Double);
  36626. procedure bezierCurveTo(aCp1x: Double; aCp1y: Double; aCp2x: Double; aCp2y: Double; aX: Double; aY: Double);
  36627. procedure arcTo(aX1: Double; aY1: Double; aX2: Double; aY2: Double; aRadius: Double);
  36628. procedure rect(aX: Double; aY: Double; aW: Double; aH: Double);
  36629. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TJSDOMPointInit);
  36630. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double);
  36631. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TunionDynArray);
  36632. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; aRadii: Double);
  36633. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  36634. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double);
  36635. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  36636. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double);
  36637. property canvas: IJSOffscreenCanvas read _Getcanvas;
  36638. property globalAlpha: Double read _GetglobalAlpha write _SetglobalAlpha;
  36639. property globalCompositeOperation: UnicodeString read _GetglobalCompositeOperation write _SetglobalCompositeOperation;
  36640. property imageSmoothingEnabled: Boolean read _GetimageSmoothingEnabled write _SetimageSmoothingEnabled;
  36641. property strokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type read _GetstrokeStyle write _SetstrokeStyle;
  36642. property fillStyle: TCanvasFillStrokeStyles_fillStyle_Type read _GetfillStyle write _SetfillStyle;
  36643. property shadowOffsetX: Double read _GetshadowOffsetX write _SetshadowOffsetX;
  36644. property shadowOffsetY: Double read _GetshadowOffsetY write _SetshadowOffsetY;
  36645. property shadowBlur: Double read _GetshadowBlur write _SetshadowBlur;
  36646. property shadowColor: UTF8String read _GetshadowColor write _SetshadowColor;
  36647. property filter: UTF8String read _Getfilter write _Setfilter;
  36648. property lineWidth: Double read _GetlineWidth write _SetlineWidth;
  36649. property lineCap: TCanvasLineCap read _GetlineCap write _SetlineCap;
  36650. property lineJoin: TCanvasLineJoin read _GetlineJoin write _SetlineJoin;
  36651. property miterLimit: Double read _GetmiterLimit write _SetmiterLimit;
  36652. property lineDashOffset: Double read _GetlineDashOffset write _SetlineDashOffset;
  36653. property font: UTF8String read _Getfont write _Setfont;
  36654. property textAlign: TCanvasTextAlign read _GettextAlign write _SettextAlign;
  36655. property textBaseline: TCanvasTextBaseline read _GettextBaseline write _SettextBaseline;
  36656. property direction: TCanvasDirection read _Getdirection write _Setdirection;
  36657. property letterSpacing: UTF8String read _GetletterSpacing write _SetletterSpacing;
  36658. property fontKerning: TCanvasFontKerning read _GetfontKerning write _SetfontKerning;
  36659. property fontStretch: TCanvasFontStretch read _GetfontStretch write _SetfontStretch;
  36660. property fontVariantCaps: TCanvasFontVariantCaps read _GetfontVariantCaps write _SetfontVariantCaps;
  36661. property textRendering: TCanvasTextRendering read _GettextRendering write _SettextRendering;
  36662. property wordSpacing: UTF8String read _GetwordSpacing write _SetwordSpacing;
  36663. end;
  36664. TJSOffscreenCanvasRenderingContext2D = class(TJSObject,IJSOffscreenCanvasRenderingContext2D)
  36665. Protected
  36666. function _Getcanvas: IJSOffscreenCanvas;
  36667. function _GetglobalAlpha: Double;
  36668. function _GetglobalCompositeOperation: UnicodeString;
  36669. function _GetimageSmoothingEnabled: Boolean;
  36670. function _GetstrokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type;
  36671. function _GetfillStyle: TCanvasFillStrokeStyles_fillStyle_Type;
  36672. function _GetshadowOffsetX: Double;
  36673. function _GetshadowOffsetY: Double;
  36674. function _GetshadowBlur: Double;
  36675. function _GetshadowColor: UTF8String;
  36676. function _Getfilter: UTF8String;
  36677. function _GetlineWidth: Double;
  36678. function _GetlineCap: TCanvasLineCap;
  36679. function _GetlineJoin: TCanvasLineJoin;
  36680. function _GetmiterLimit: Double;
  36681. function _GetlineDashOffset: Double;
  36682. function _Getfont: UTF8String;
  36683. function _GettextAlign: TCanvasTextAlign;
  36684. function _GettextBaseline: TCanvasTextBaseline;
  36685. function _Getdirection: TCanvasDirection;
  36686. function _GetletterSpacing: UTF8String;
  36687. function _GetfontKerning: TCanvasFontKerning;
  36688. function _GetfontStretch: TCanvasFontStretch;
  36689. function _GetfontVariantCaps: TCanvasFontVariantCaps;
  36690. function _GettextRendering: TCanvasTextRendering;
  36691. function _GetwordSpacing: UTF8String;
  36692. procedure _SetglobalAlpha(const aValue: Double);
  36693. procedure _SetglobalCompositeOperation(const aValue: UnicodeString);
  36694. procedure _SetimageSmoothingEnabled(const aValue: Boolean);
  36695. procedure _SetstrokeStyle(const aValue: TCanvasFillStrokeStyles_strokeStyle_Type);
  36696. procedure _SetfillStyle(const aValue: TCanvasFillStrokeStyles_fillStyle_Type);
  36697. procedure _SetshadowOffsetX(const aValue: Double);
  36698. procedure _SetshadowOffsetY(const aValue: Double);
  36699. procedure _SetshadowBlur(const aValue: Double);
  36700. procedure _SetshadowColor(const aValue: UTF8String);
  36701. procedure _Setfilter(const aValue: UTF8String);
  36702. procedure _SetlineWidth(const aValue: Double);
  36703. procedure _SetlineCap(const aValue: TCanvasLineCap);
  36704. procedure _SetlineJoin(const aValue: TCanvasLineJoin);
  36705. procedure _SetmiterLimit(const aValue: Double);
  36706. procedure _SetlineDashOffset(const aValue: Double);
  36707. procedure _Setfont(const aValue: UTF8String);
  36708. procedure _SettextAlign(const aValue: TCanvasTextAlign);
  36709. procedure _SettextBaseline(const aValue: TCanvasTextBaseline);
  36710. procedure _Setdirection(const aValue: TCanvasDirection);
  36711. procedure _SetletterSpacing(const aValue: UTF8String);
  36712. procedure _SetfontKerning(const aValue: TCanvasFontKerning);
  36713. procedure _SetfontStretch(const aValue: TCanvasFontStretch);
  36714. procedure _SetfontVariantCaps(const aValue: TCanvasFontVariantCaps);
  36715. procedure _SettextRendering(const aValue: TCanvasTextRendering);
  36716. procedure _SetwordSpacing(const aValue: UTF8String);
  36717. Public
  36718. procedure commit; overload;
  36719. procedure save; overload;
  36720. procedure restore; overload;
  36721. procedure reset; overload;
  36722. function isContextLost: Boolean; overload;
  36723. procedure scale(aX: Double; aY: Double); overload;
  36724. procedure rotate(aAngle: Double); overload;
  36725. procedure translate(aX: Double; aY: Double); overload;
  36726. procedure transform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double); overload;
  36727. function getTransform: IJSDOMMatrix; overload;
  36728. procedure setTransform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double); overload;
  36729. procedure setTransform(const aTransform: TJSDOMMatrix2DInit); overload;
  36730. procedure setTransform; overload;
  36731. procedure resetTransform; overload;
  36732. function createLinearGradient(aX0: Double; aY0: Double; aX1: Double; aY1: Double): IJSCanvasGradient; overload;
  36733. function createRadialGradient(aX0: Double; aY0: Double; aR0: Double; aX1: Double; aY1: Double; aR1: Double): IJSCanvasGradient; overload;
  36734. function createConicGradient(aAngle: Double; aCx: Double; aCy: Double): IJSCanvasGradient; overload;
  36735. function createPattern(aImage: IJSHTMLCanvasElement; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  36736. function createPattern(const aImage: THTMLOrSVGImageElement; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  36737. function createPattern(aImage: IJSHTMLVideoElement; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  36738. function createPattern(aImage: IJSImageBitmap; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  36739. function createPattern(aImage: IJSOffscreenCanvas; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  36740. function createPattern(aImage: IJSVideoFrame; const aRepetition: UnicodeString): IJSCanvasPattern; overload;
  36741. procedure clearRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  36742. procedure fillRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  36743. procedure strokeRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  36744. procedure beginPath; overload;
  36745. procedure fill(aWinding: TCanvasWindingRule); overload;
  36746. procedure fill; overload;
  36747. procedure fill(aPath: IJSPath2D; aWinding: TCanvasWindingRule); overload;
  36748. procedure fill(aPath: IJSPath2D); overload;
  36749. procedure stroke; overload;
  36750. procedure stroke(aPath: IJSPath2D); overload;
  36751. procedure clip(aWinding: TCanvasWindingRule); overload;
  36752. procedure clip; overload;
  36753. procedure clip(aPath: IJSPath2D; aWinding: TCanvasWindingRule); overload;
  36754. procedure clip(aPath: IJSPath2D); overload;
  36755. function isPointInPath(aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean; overload;
  36756. function isPointInPath(aX: Double; aY: Double): Boolean; overload;
  36757. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean; overload;
  36758. function isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double): Boolean; overload;
  36759. function isPointInStroke(aX: Double; aY: Double): Boolean; overload;
  36760. function isPointInStroke(aPath: IJSPath2D; aX: Double; aY: Double): Boolean; overload;
  36761. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double); overload;
  36762. procedure fillText(const aText: UnicodeString; aX: Double; aY: Double); overload;
  36763. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double); overload;
  36764. procedure strokeText(const aText: UnicodeString; aX: Double; aY: Double); overload;
  36765. function measureText(const aText: UnicodeString): IJSTextMetrics; overload;
  36766. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double); overload;
  36767. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double); overload;
  36768. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double); overload;
  36769. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double); overload;
  36770. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double); overload;
  36771. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double); overload;
  36772. procedure drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36773. procedure drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36774. procedure drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36775. procedure drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36776. procedure drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36777. procedure drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36778. procedure drawImage(aImage: IJSHTMLCanvasElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36779. procedure drawImage(const aImage: THTMLOrSVGImageElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36780. procedure drawImage(aImage: IJSHTMLVideoElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36781. procedure drawImage(aImage: IJSImageBitmap; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36782. procedure drawImage(aImage: IJSOffscreenCanvas; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36783. procedure drawImage(aImage: IJSVideoFrame; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double); overload;
  36784. function createImageData(aSw: LongInt; aSh: LongInt): IJSImageData; overload;
  36785. function createImageData(aImagedata: IJSImageData): IJSImageData; overload;
  36786. function getImageData(aSx: LongInt; aSy: LongInt; aSw: LongInt; aSh: LongInt): IJSImageData; overload;
  36787. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt); overload;
  36788. procedure putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt; aDirtyX: LongInt; aDirtyY: LongInt; aDirtyWidth: LongInt; aDirtyHeight: LongInt); overload;
  36789. procedure setLineDash(const aSegments: TDoubleDynArray); overload;
  36790. function getLineDash: TDoubleDynArray; overload;
  36791. procedure closePath; overload;
  36792. procedure moveTo(aX: Double; aY: Double); overload;
  36793. procedure lineTo(aX: Double; aY: Double); overload;
  36794. procedure quadraticCurveTo(aCpx: Double; aCpy: Double; aX: Double; aY: Double); overload;
  36795. procedure bezierCurveTo(aCp1x: Double; aCp1y: Double; aCp2x: Double; aCp2y: Double; aX: Double; aY: Double); overload;
  36796. procedure arcTo(aX1: Double; aY1: Double; aX2: Double; aY2: Double; aRadius: Double); overload;
  36797. procedure rect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  36798. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TJSDOMPointInit); overload;
  36799. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double); overload;
  36800. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TunionDynArray); overload;
  36801. procedure roundRect(aX: Double; aY: Double; aW: Double; aH: Double; aRadii: Double); overload;
  36802. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean); overload;
  36803. procedure arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double); overload;
  36804. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean); overload;
  36805. procedure ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double); overload;
  36806. class function JSClassName: UnicodeString; override;
  36807. class function Cast(const Intf: IJSObject): IJSOffscreenCanvasRenderingContext2D;
  36808. property canvas: IJSOffscreenCanvas read _Getcanvas;
  36809. property globalAlpha: Double read _GetglobalAlpha write _SetglobalAlpha;
  36810. property globalCompositeOperation: UnicodeString read _GetglobalCompositeOperation write _SetglobalCompositeOperation;
  36811. property imageSmoothingEnabled: Boolean read _GetimageSmoothingEnabled write _SetimageSmoothingEnabled;
  36812. property strokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type read _GetstrokeStyle write _SetstrokeStyle;
  36813. property fillStyle: TCanvasFillStrokeStyles_fillStyle_Type read _GetfillStyle write _SetfillStyle;
  36814. property shadowOffsetX: Double read _GetshadowOffsetX write _SetshadowOffsetX;
  36815. property shadowOffsetY: Double read _GetshadowOffsetY write _SetshadowOffsetY;
  36816. property shadowBlur: Double read _GetshadowBlur write _SetshadowBlur;
  36817. property shadowColor: UTF8String read _GetshadowColor write _SetshadowColor;
  36818. property filter: UTF8String read _Getfilter write _Setfilter;
  36819. property lineWidth: Double read _GetlineWidth write _SetlineWidth;
  36820. property lineCap: TCanvasLineCap read _GetlineCap write _SetlineCap;
  36821. property lineJoin: TCanvasLineJoin read _GetlineJoin write _SetlineJoin;
  36822. property miterLimit: Double read _GetmiterLimit write _SetmiterLimit;
  36823. property lineDashOffset: Double read _GetlineDashOffset write _SetlineDashOffset;
  36824. property font: UTF8String read _Getfont write _Setfont;
  36825. property textAlign: TCanvasTextAlign read _GettextAlign write _SettextAlign;
  36826. property textBaseline: TCanvasTextBaseline read _GettextBaseline write _SettextBaseline;
  36827. property direction: TCanvasDirection read _Getdirection write _Setdirection;
  36828. property letterSpacing: UTF8String read _GetletterSpacing write _SetletterSpacing;
  36829. property fontKerning: TCanvasFontKerning read _GetfontKerning write _SetfontKerning;
  36830. property fontStretch: TCanvasFontStretch read _GetfontStretch write _SetfontStretch;
  36831. property fontVariantCaps: TCanvasFontVariantCaps read _GetfontVariantCaps write _SetfontVariantCaps;
  36832. property textRendering: TCanvasTextRendering read _GettextRendering write _SettextRendering;
  36833. property wordSpacing: UTF8String read _GetwordSpacing write _SetwordSpacing;
  36834. end;
  36835. { --------------------------------------------------------------------
  36836. TJSPaintRequest
  36837. --------------------------------------------------------------------}
  36838. IJSPaintRequest = interface(IJSObject)
  36839. ['{4E8E8715-BF4C-35FA-85E0-DF3AE6AB299A}']
  36840. function _GetclientRect: IJSDOMRect;
  36841. function _Getreason: UnicodeString;
  36842. property clientRect: IJSDOMRect read _GetclientRect;
  36843. property reason: UnicodeString read _Getreason;
  36844. end;
  36845. TJSPaintRequest = class(TJSObject,IJSPaintRequest)
  36846. Protected
  36847. function _GetclientRect: IJSDOMRect;
  36848. function _Getreason: UnicodeString;
  36849. Public
  36850. class function JSClassName: UnicodeString; override;
  36851. class function Cast(const Intf: IJSObject): IJSPaintRequest;
  36852. property clientRect: IJSDOMRect read _GetclientRect;
  36853. property reason: UnicodeString read _Getreason;
  36854. end;
  36855. { --------------------------------------------------------------------
  36856. TJSPaintRequestList
  36857. --------------------------------------------------------------------}
  36858. IJSPaintRequestList = interface(IJSObject)
  36859. ['{981882BD-FC97-3E3A-B85B-131E7A1A098A}']
  36860. function _Getlength_: Cardinal;
  36861. function item(aIndex: Cardinal): IJSPaintRequest;
  36862. property length_: Cardinal read _Getlength_;
  36863. end;
  36864. TJSPaintRequestList = class(TJSObject,IJSPaintRequestList)
  36865. Protected
  36866. function _Getlength_: Cardinal;
  36867. Public
  36868. function item(aIndex: Cardinal): IJSPaintRequest; overload;
  36869. class function JSClassName: UnicodeString; override;
  36870. class function Cast(const Intf: IJSObject): IJSPaintRequestList;
  36871. property length_: Cardinal read _Getlength_;
  36872. end;
  36873. { --------------------------------------------------------------------
  36874. TJSParentNode
  36875. --------------------------------------------------------------------}
  36876. // Union of Node, DOMString
  36877. TParentNode_prepend_nodes_Type = Variant;
  36878. // Union of Node, DOMString
  36879. TParentNode_append_nodes_Type = Variant;
  36880. // Union of Node, DOMString
  36881. TParentNode_replaceChildren_nodes_Type = Variant;
  36882. IJSParentNode = interface(IJSObject)
  36883. ['{3F7277E6-1295-395D-B3E6-86061FC5C0A1}']
  36884. function _Getchildren: IJSHTMLCollection;
  36885. function _GetfirstElementChild: IJSElement;
  36886. function _GetlastElementChild: IJSElement;
  36887. function _GetchildElementCount: Cardinal;
  36888. procedure prepend(const aNodes: UnicodeString){; ToDo:varargs};
  36889. procedure prepend(aNodes: IJSNode){; ToDo:varargs};
  36890. procedure append(const aNodes: UnicodeString){; ToDo:varargs};
  36891. procedure append(aNodes: IJSNode){; ToDo:varargs};
  36892. procedure replaceChildren(const aNodes: UnicodeString){; ToDo:varargs};
  36893. procedure replaceChildren(aNodes: IJSNode){; ToDo:varargs};
  36894. function querySelector(const aSelectors: UTF8String): IJSElement;
  36895. function querySelectorAll(const aSelectors: UTF8String): IJSNodeList;
  36896. property children: IJSHTMLCollection read _Getchildren;
  36897. property firstElementChild: IJSElement read _GetfirstElementChild;
  36898. property lastElementChild: IJSElement read _GetlastElementChild;
  36899. property childElementCount: Cardinal read _GetchildElementCount;
  36900. end;
  36901. TJSParentNode = class(TJSObject,IJSParentNode)
  36902. Protected
  36903. function _Getchildren: IJSHTMLCollection;
  36904. function _GetfirstElementChild: IJSElement;
  36905. function _GetlastElementChild: IJSElement;
  36906. function _GetchildElementCount: Cardinal;
  36907. Public
  36908. procedure prepend(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  36909. procedure prepend(aNodes: IJSNode){; ToDo:varargs}; overload;
  36910. procedure append(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  36911. procedure append(aNodes: IJSNode){; ToDo:varargs}; overload;
  36912. procedure replaceChildren(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  36913. procedure replaceChildren(aNodes: IJSNode){; ToDo:varargs}; overload;
  36914. function querySelector(const aSelectors: UTF8String): IJSElement; overload;
  36915. function querySelectorAll(const aSelectors: UTF8String): IJSNodeList; overload;
  36916. class function JSClassName: UnicodeString; override;
  36917. class function Cast(const Intf: IJSObject): IJSParentNode;
  36918. property children: IJSHTMLCollection read _Getchildren;
  36919. property firstElementChild: IJSElement read _GetfirstElementChild;
  36920. property lastElementChild: IJSElement read _GetlastElementChild;
  36921. property childElementCount: Cardinal read _GetchildElementCount;
  36922. end;
  36923. { --------------------------------------------------------------------
  36924. TJSPaymentAddress
  36925. --------------------------------------------------------------------}
  36926. IJSPaymentAddress = interface(IJSObject)
  36927. ['{7928C2FA-86FE-364B-9A2C-085E23428FE8}']
  36928. function _Getcountry: UnicodeString;
  36929. function _GetaddressLine: TUnicodeStringDynArray;
  36930. function _Getregion: UnicodeString;
  36931. function _GetregionCode: UnicodeString;
  36932. function _Getcity: UnicodeString;
  36933. function _GetdependentLocality: UnicodeString;
  36934. function _GetpostalCode: UnicodeString;
  36935. function _GetsortingCode: UnicodeString;
  36936. function _Getorganization: UnicodeString;
  36937. function _Getrecipient: UnicodeString;
  36938. function _Getphone: UnicodeString;
  36939. function toJSON: IJSObject;
  36940. property country: UnicodeString read _Getcountry;
  36941. property addressLine: TUnicodeStringDynArray read _GetaddressLine;
  36942. property region: UnicodeString read _Getregion;
  36943. property regionCode: UnicodeString read _GetregionCode;
  36944. property city: UnicodeString read _Getcity;
  36945. property dependentLocality: UnicodeString read _GetdependentLocality;
  36946. property postalCode: UnicodeString read _GetpostalCode;
  36947. property sortingCode: UnicodeString read _GetsortingCode;
  36948. property organization: UnicodeString read _Getorganization;
  36949. property recipient: UnicodeString read _Getrecipient;
  36950. property phone: UnicodeString read _Getphone;
  36951. end;
  36952. TJSPaymentAddress = class(TJSObject,IJSPaymentAddress)
  36953. Protected
  36954. function _Getcountry: UnicodeString;
  36955. function _GetaddressLine: TUnicodeStringDynArray;
  36956. function _Getregion: UnicodeString;
  36957. function _GetregionCode: UnicodeString;
  36958. function _Getcity: UnicodeString;
  36959. function _GetdependentLocality: UnicodeString;
  36960. function _GetpostalCode: UnicodeString;
  36961. function _GetsortingCode: UnicodeString;
  36962. function _Getorganization: UnicodeString;
  36963. function _Getrecipient: UnicodeString;
  36964. function _Getphone: UnicodeString;
  36965. Public
  36966. function toJSON: IJSObject; overload;
  36967. class function JSClassName: UnicodeString; override;
  36968. class function Cast(const Intf: IJSObject): IJSPaymentAddress;
  36969. property country: UnicodeString read _Getcountry;
  36970. property addressLine: TUnicodeStringDynArray read _GetaddressLine;
  36971. property region: UnicodeString read _Getregion;
  36972. property regionCode: UnicodeString read _GetregionCode;
  36973. property city: UnicodeString read _Getcity;
  36974. property dependentLocality: UnicodeString read _GetdependentLocality;
  36975. property postalCode: UnicodeString read _GetpostalCode;
  36976. property sortingCode: UnicodeString read _GetsortingCode;
  36977. property organization: UnicodeString read _Getorganization;
  36978. property recipient: UnicodeString read _Getrecipient;
  36979. property phone: UnicodeString read _Getphone;
  36980. end;
  36981. { --------------------------------------------------------------------
  36982. TJSPerformanceEntry
  36983. --------------------------------------------------------------------}
  36984. IJSPerformanceEntry = interface(IJSObject)
  36985. ['{1C51D983-EF5A-3411-BDEC-55FE1ED8D644}']
  36986. function _Getname: UnicodeString;
  36987. function _GetentryType: UnicodeString;
  36988. function _GetstartTime: TDOMHighResTimeStamp;
  36989. function _Getduration: TDOMHighResTimeStamp;
  36990. function toJSON: IJSObject;
  36991. property name: UnicodeString read _Getname;
  36992. property entryType: UnicodeString read _GetentryType;
  36993. property startTime: TDOMHighResTimeStamp read _GetstartTime;
  36994. property duration: TDOMHighResTimeStamp read _Getduration;
  36995. end;
  36996. TJSPerformanceEntry = class(TJSObject,IJSPerformanceEntry)
  36997. Protected
  36998. function _Getname: UnicodeString;
  36999. function _GetentryType: UnicodeString;
  37000. function _GetstartTime: TDOMHighResTimeStamp;
  37001. function _Getduration: TDOMHighResTimeStamp;
  37002. Public
  37003. function toJSON: IJSObject; overload;
  37004. class function JSClassName: UnicodeString; override;
  37005. class function Cast(const Intf: IJSObject): IJSPerformanceEntry;
  37006. property name: UnicodeString read _Getname;
  37007. property entryType: UnicodeString read _GetentryType;
  37008. property startTime: TDOMHighResTimeStamp read _GetstartTime;
  37009. property duration: TDOMHighResTimeStamp read _Getduration;
  37010. end;
  37011. { --------------------------------------------------------------------
  37012. TJSEventCounts
  37013. --------------------------------------------------------------------}
  37014. IJSEventCounts = interface(IJSObject)
  37015. ['{EEDFE1E3-9D40-344A-903D-1A2372542131}']
  37016. function _Getsize : LongInt;
  37017. function get(key: UnicodeString) : QWord;
  37018. function has(key: UnicodeString) : Boolean;
  37019. function entries : IJSIterator;
  37020. function keys : IJSIterator;
  37021. function values : IJSIterator;
  37022. property size : LongInt read _Getsize;
  37023. end;
  37024. TJSEventCounts = class(TJSObject,IJSEventCounts)
  37025. Protected
  37026. function _Getsize : LongInt;
  37027. Public
  37028. function get(key: UnicodeString) : QWord;
  37029. function has(key: UnicodeString) : Boolean;
  37030. function entries : IJSIterator;
  37031. function keys : IJSIterator;
  37032. function values : IJSIterator;
  37033. class function JSClassName: UnicodeString; override;
  37034. class function Cast(const Intf: IJSObject): IJSEventCounts;
  37035. property size : LongInt read _Getsize;
  37036. end;
  37037. { --------------------------------------------------------------------
  37038. TJSPerformanceNavigation
  37039. --------------------------------------------------------------------}
  37040. IJSPerformanceNavigation = interface(IJSObject)
  37041. ['{AF147EBF-1513-34CE-BBBC-906C34BD4CC3}']
  37042. function _Gettype_: Word;
  37043. function _GetredirectCount: Word;
  37044. function toJSON: IJSObject;
  37045. property type_: Word read _Gettype_;
  37046. property redirectCount: Word read _GetredirectCount;
  37047. end;
  37048. TJSPerformanceNavigation = class(TJSObject,IJSPerformanceNavigation)
  37049. Protected
  37050. function _Gettype_: Word;
  37051. function _GetredirectCount: Word;
  37052. Public
  37053. Const
  37054. TYPE_NAVIGATE = 0;
  37055. TYPE_RELOAD = 1;
  37056. TYPE_BACK_FORWARD = 2;
  37057. TYPE_RESERVED = 255;
  37058. Public
  37059. function toJSON: IJSObject; overload;
  37060. class function JSClassName: UnicodeString; override;
  37061. class function Cast(const Intf: IJSObject): IJSPerformanceNavigation;
  37062. property type_: Word read _Gettype_;
  37063. property redirectCount: Word read _GetredirectCount;
  37064. end;
  37065. { --------------------------------------------------------------------
  37066. TJSPerformanceObserver
  37067. --------------------------------------------------------------------}
  37068. IJSPerformanceObserver = interface(IJSObject)
  37069. ['{47BB663B-BCBD-304E-B42C-F293199568D5}']
  37070. function _GetsupportedEntryTypes: IJSObject;
  37071. procedure observe(const aOptions: TJSPerformanceObserverInit);
  37072. procedure observe;
  37073. procedure disconnect;
  37074. function takeRecords: TPerformanceEntryListDynArray;
  37075. property supportedEntryTypes: IJSObject read _GetsupportedEntryTypes;
  37076. end;
  37077. TJSPerformanceObserver = class(TJSObject,IJSPerformanceObserver)
  37078. Protected
  37079. function _GetsupportedEntryTypes: IJSObject;
  37080. Public
  37081. constructor Create(const aCallback: TPerformanceObserverCallback); overload;
  37082. procedure observe(const aOptions: TJSPerformanceObserverInit); overload;
  37083. procedure observe; overload;
  37084. procedure disconnect; overload;
  37085. function takeRecords: TPerformanceEntryListDynArray; overload;
  37086. class function JSClassName: UnicodeString; override;
  37087. class function Cast(const Intf: IJSObject): IJSPerformanceObserver;
  37088. property supportedEntryTypes: IJSObject read _GetsupportedEntryTypes;
  37089. end;
  37090. { --------------------------------------------------------------------
  37091. TJSPerformanceObserverEntryList
  37092. --------------------------------------------------------------------}
  37093. IJSPerformanceObserverEntryList = interface(IJSObject)
  37094. ['{D1375B52-3E2C-35E9-B344-34E110E1E196}']
  37095. function getEntries(const aFilter: TJSPerformanceEntryFilterOptions): TPerformanceEntryListDynArray;
  37096. function getEntries: TPerformanceEntryListDynArray;
  37097. function getEntriesByType(const aEntryType: UnicodeString): TPerformanceEntryListDynArray;
  37098. function getEntriesByName(const aName: UnicodeString; const aEntryType: UnicodeString): TPerformanceEntryListDynArray;
  37099. function getEntriesByName(const aName: UnicodeString): TPerformanceEntryListDynArray;
  37100. end;
  37101. TJSPerformanceObserverEntryList = class(TJSObject,IJSPerformanceObserverEntryList)
  37102. Protected
  37103. Public
  37104. function getEntries(const aFilter: TJSPerformanceEntryFilterOptions): TPerformanceEntryListDynArray; overload;
  37105. function getEntries: TPerformanceEntryListDynArray; overload;
  37106. function getEntriesByType(const aEntryType: UnicodeString): TPerformanceEntryListDynArray; overload;
  37107. function getEntriesByName(const aName: UnicodeString; const aEntryType: UnicodeString): TPerformanceEntryListDynArray; overload;
  37108. function getEntriesByName(const aName: UnicodeString): TPerformanceEntryListDynArray; overload;
  37109. class function JSClassName: UnicodeString; override;
  37110. class function Cast(const Intf: IJSObject): IJSPerformanceObserverEntryList;
  37111. end;
  37112. { --------------------------------------------------------------------
  37113. TJSPerformanceServerTiming
  37114. --------------------------------------------------------------------}
  37115. IJSPerformanceServerTiming = interface(IJSObject)
  37116. ['{4D74EE60-3845-3925-894F-650923C756F6}']
  37117. function _Getname: UnicodeString;
  37118. function _Getduration: TDOMHighResTimeStamp;
  37119. function _Getdescription: UnicodeString;
  37120. function toJSON: IJSObject;
  37121. property name: UnicodeString read _Getname;
  37122. property duration: TDOMHighResTimeStamp read _Getduration;
  37123. property description: UnicodeString read _Getdescription;
  37124. end;
  37125. TJSPerformanceServerTiming = class(TJSObject,IJSPerformanceServerTiming)
  37126. Protected
  37127. function _Getname: UnicodeString;
  37128. function _Getduration: TDOMHighResTimeStamp;
  37129. function _Getdescription: UnicodeString;
  37130. Public
  37131. function toJSON: IJSObject; overload;
  37132. class function JSClassName: UnicodeString; override;
  37133. class function Cast(const Intf: IJSObject): IJSPerformanceServerTiming;
  37134. property name: UnicodeString read _Getname;
  37135. property duration: TDOMHighResTimeStamp read _Getduration;
  37136. property description: UnicodeString read _Getdescription;
  37137. end;
  37138. { --------------------------------------------------------------------
  37139. TJSPerformanceTiming
  37140. --------------------------------------------------------------------}
  37141. IJSPerformanceTiming = interface(IJSObject)
  37142. ['{80423661-01A7-3298-9AD0-037B8131FFB7}']
  37143. function _GetnavigationStart: QWord;
  37144. function _GetunloadEventStart: QWord;
  37145. function _GetunloadEventEnd: QWord;
  37146. function _GetredirectStart: QWord;
  37147. function _GetredirectEnd: QWord;
  37148. function _GetfetchStart: QWord;
  37149. function _GetdomainLookupStart: QWord;
  37150. function _GetdomainLookupEnd: QWord;
  37151. function _GetconnectStart: QWord;
  37152. function _GetconnectEnd: QWord;
  37153. function _GetsecureConnectionStart: QWord;
  37154. function _GetrequestStart: QWord;
  37155. function _GetresponseStart: QWord;
  37156. function _GetresponseEnd: QWord;
  37157. function _GetdomLoading: QWord;
  37158. function _GetdomInteractive: QWord;
  37159. function _GetdomContentLoadedEventStart: QWord;
  37160. function _GetdomContentLoadedEventEnd: QWord;
  37161. function _GetdomComplete: QWord;
  37162. function _GetloadEventStart: QWord;
  37163. function _GetloadEventEnd: QWord;
  37164. function _GettimeToNonBlankPaint: QWord;
  37165. function _GettimeToContentfulPaint: QWord;
  37166. function _GettimeToDOMContentFlushed: QWord;
  37167. function _GettimeToFirstInteractive: QWord;
  37168. function toJSON: IJSObject;
  37169. property navigationStart: QWord read _GetnavigationStart;
  37170. property unloadEventStart: QWord read _GetunloadEventStart;
  37171. property unloadEventEnd: QWord read _GetunloadEventEnd;
  37172. property redirectStart: QWord read _GetredirectStart;
  37173. property redirectEnd: QWord read _GetredirectEnd;
  37174. property fetchStart: QWord read _GetfetchStart;
  37175. property domainLookupStart: QWord read _GetdomainLookupStart;
  37176. property domainLookupEnd: QWord read _GetdomainLookupEnd;
  37177. property connectStart: QWord read _GetconnectStart;
  37178. property connectEnd: QWord read _GetconnectEnd;
  37179. property secureConnectionStart: QWord read _GetsecureConnectionStart;
  37180. property requestStart: QWord read _GetrequestStart;
  37181. property responseStart: QWord read _GetresponseStart;
  37182. property responseEnd: QWord read _GetresponseEnd;
  37183. property domLoading: QWord read _GetdomLoading;
  37184. property domInteractive: QWord read _GetdomInteractive;
  37185. property domContentLoadedEventStart: QWord read _GetdomContentLoadedEventStart;
  37186. property domContentLoadedEventEnd: QWord read _GetdomContentLoadedEventEnd;
  37187. property domComplete: QWord read _GetdomComplete;
  37188. property loadEventStart: QWord read _GetloadEventStart;
  37189. property loadEventEnd: QWord read _GetloadEventEnd;
  37190. property timeToNonBlankPaint: QWord read _GettimeToNonBlankPaint;
  37191. property timeToContentfulPaint: QWord read _GettimeToContentfulPaint;
  37192. property timeToDOMContentFlushed: QWord read _GettimeToDOMContentFlushed;
  37193. property timeToFirstInteractive: QWord read _GettimeToFirstInteractive;
  37194. end;
  37195. TJSPerformanceTiming = class(TJSObject,IJSPerformanceTiming)
  37196. Protected
  37197. function _GetnavigationStart: QWord;
  37198. function _GetunloadEventStart: QWord;
  37199. function _GetunloadEventEnd: QWord;
  37200. function _GetredirectStart: QWord;
  37201. function _GetredirectEnd: QWord;
  37202. function _GetfetchStart: QWord;
  37203. function _GetdomainLookupStart: QWord;
  37204. function _GetdomainLookupEnd: QWord;
  37205. function _GetconnectStart: QWord;
  37206. function _GetconnectEnd: QWord;
  37207. function _GetsecureConnectionStart: QWord;
  37208. function _GetrequestStart: QWord;
  37209. function _GetresponseStart: QWord;
  37210. function _GetresponseEnd: QWord;
  37211. function _GetdomLoading: QWord;
  37212. function _GetdomInteractive: QWord;
  37213. function _GetdomContentLoadedEventStart: QWord;
  37214. function _GetdomContentLoadedEventEnd: QWord;
  37215. function _GetdomComplete: QWord;
  37216. function _GetloadEventStart: QWord;
  37217. function _GetloadEventEnd: QWord;
  37218. function _GettimeToNonBlankPaint: QWord;
  37219. function _GettimeToContentfulPaint: QWord;
  37220. function _GettimeToDOMContentFlushed: QWord;
  37221. function _GettimeToFirstInteractive: QWord;
  37222. Public
  37223. function toJSON: IJSObject; overload;
  37224. class function JSClassName: UnicodeString; override;
  37225. class function Cast(const Intf: IJSObject): IJSPerformanceTiming;
  37226. property navigationStart: QWord read _GetnavigationStart;
  37227. property unloadEventStart: QWord read _GetunloadEventStart;
  37228. property unloadEventEnd: QWord read _GetunloadEventEnd;
  37229. property redirectStart: QWord read _GetredirectStart;
  37230. property redirectEnd: QWord read _GetredirectEnd;
  37231. property fetchStart: QWord read _GetfetchStart;
  37232. property domainLookupStart: QWord read _GetdomainLookupStart;
  37233. property domainLookupEnd: QWord read _GetdomainLookupEnd;
  37234. property connectStart: QWord read _GetconnectStart;
  37235. property connectEnd: QWord read _GetconnectEnd;
  37236. property secureConnectionStart: QWord read _GetsecureConnectionStart;
  37237. property requestStart: QWord read _GetrequestStart;
  37238. property responseStart: QWord read _GetresponseStart;
  37239. property responseEnd: QWord read _GetresponseEnd;
  37240. property domLoading: QWord read _GetdomLoading;
  37241. property domInteractive: QWord read _GetdomInteractive;
  37242. property domContentLoadedEventStart: QWord read _GetdomContentLoadedEventStart;
  37243. property domContentLoadedEventEnd: QWord read _GetdomContentLoadedEventEnd;
  37244. property domComplete: QWord read _GetdomComplete;
  37245. property loadEventStart: QWord read _GetloadEventStart;
  37246. property loadEventEnd: QWord read _GetloadEventEnd;
  37247. property timeToNonBlankPaint: QWord read _GettimeToNonBlankPaint;
  37248. property timeToContentfulPaint: QWord read _GettimeToContentfulPaint;
  37249. property timeToDOMContentFlushed: QWord read _GettimeToDOMContentFlushed;
  37250. property timeToFirstInteractive: QWord read _GettimeToFirstInteractive;
  37251. end;
  37252. { --------------------------------------------------------------------
  37253. TJSPeriodicWave
  37254. --------------------------------------------------------------------}
  37255. IJSPeriodicWave = interface(IJSObject)
  37256. ['{E6CFE404-B98A-3549-904A-1ED81AA2A621}']
  37257. end;
  37258. TJSPeriodicWave = class(TJSObject,IJSPeriodicWave)
  37259. Protected
  37260. Public
  37261. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSPeriodicWaveOptions); overload;
  37262. constructor Create(aContext: IJSBaseAudioContext); overload;
  37263. class function JSClassName: UnicodeString; override;
  37264. class function Cast(const Intf: IJSObject): IJSPeriodicWave;
  37265. end;
  37266. { --------------------------------------------------------------------
  37267. TJSPermissions
  37268. --------------------------------------------------------------------}
  37269. IJSPermissions = interface(IJSObject)
  37270. ['{F13D9A3A-5C44-337D-8061-869C9424457A}']
  37271. function query(aPermission: IJSObject): IJSPromise; // Promise<PermissionStatus>
  37272. end;
  37273. TJSPermissions = class(TJSObject,IJSPermissions)
  37274. Protected
  37275. Public
  37276. function query(aPermission: IJSObject): IJSPromise; overload; // Promise<PermissionStatus>
  37277. class function JSClassName: UnicodeString; override;
  37278. class function Cast(const Intf: IJSObject): IJSPermissions;
  37279. end;
  37280. { --------------------------------------------------------------------
  37281. TJSPlugin
  37282. --------------------------------------------------------------------}
  37283. IJSPlugin = interface(IJSObject)
  37284. ['{6745E40C-5666-3F31-9F5D-219FA5AB0BEA}']
  37285. function _Getdescription: UnicodeString;
  37286. function _Getfilename: UnicodeString;
  37287. function _Getname: UnicodeString;
  37288. function _Getlength_: Cardinal;
  37289. function item(aIndex: Cardinal): IJSMimeType;
  37290. function namedItem(const aName: UnicodeString): IJSMimeType;
  37291. property description: UnicodeString read _Getdescription;
  37292. property filename: UnicodeString read _Getfilename;
  37293. property name: UnicodeString read _Getname;
  37294. property length_: Cardinal read _Getlength_;
  37295. end;
  37296. TJSPlugin = class(TJSObject,IJSPlugin)
  37297. Protected
  37298. function _Getdescription: UnicodeString;
  37299. function _Getfilename: UnicodeString;
  37300. function _Getname: UnicodeString;
  37301. function _Getlength_: Cardinal;
  37302. Public
  37303. function item(aIndex: Cardinal): IJSMimeType; overload;
  37304. function namedItem(const aName: UnicodeString): IJSMimeType; overload;
  37305. class function JSClassName: UnicodeString; override;
  37306. class function Cast(const Intf: IJSObject): IJSPlugin;
  37307. property description: UnicodeString read _Getdescription;
  37308. property filename: UnicodeString read _Getfilename;
  37309. property name: UnicodeString read _Getname;
  37310. property length_: Cardinal read _Getlength_;
  37311. end;
  37312. { --------------------------------------------------------------------
  37313. TJSPluginArray
  37314. --------------------------------------------------------------------}
  37315. IJSPluginArray = interface(IJSObject)
  37316. ['{9B5EC5AB-BCC3-39AC-8D3F-3832A8BF7AFF}']
  37317. function _Getlength_: Cardinal;
  37318. procedure refresh;
  37319. function item(aIndex: Cardinal): IJSPlugin;
  37320. function namedItem(const aName: UnicodeString): IJSPlugin;
  37321. property length_: Cardinal read _Getlength_;
  37322. end;
  37323. TJSPluginArray = class(TJSObject,IJSPluginArray)
  37324. Protected
  37325. function _Getlength_: Cardinal;
  37326. Public
  37327. procedure refresh; overload;
  37328. function item(aIndex: Cardinal): IJSPlugin; overload;
  37329. function namedItem(const aName: UnicodeString): IJSPlugin; overload;
  37330. class function JSClassName: UnicodeString; override;
  37331. class function Cast(const Intf: IJSObject): IJSPluginArray;
  37332. property length_: Cardinal read _Getlength_;
  37333. end;
  37334. { --------------------------------------------------------------------
  37335. TJSPopoverInvokerElement
  37336. --------------------------------------------------------------------}
  37337. IJSPopoverInvokerElement = interface(IJSObject)
  37338. ['{C68A21FD-5B45-3575-A7DE-35C74B8E5EF8}']
  37339. function _GetpopoverTargetElement: IJSElement;
  37340. function _GetpopoverTargetAction: UnicodeString;
  37341. procedure _SetpopoverTargetElement(const aValue: IJSElement);
  37342. procedure _SetpopoverTargetAction(const aValue: UnicodeString);
  37343. property popoverTargetElement: IJSElement read _GetpopoverTargetElement write _SetpopoverTargetElement;
  37344. property popoverTargetAction: UnicodeString read _GetpopoverTargetAction write _SetpopoverTargetAction;
  37345. end;
  37346. TJSPopoverInvokerElement = class(TJSObject,IJSPopoverInvokerElement)
  37347. Protected
  37348. function _GetpopoverTargetElement: IJSElement;
  37349. function _GetpopoverTargetAction: UnicodeString;
  37350. procedure _SetpopoverTargetElement(const aValue: IJSElement);
  37351. procedure _SetpopoverTargetAction(const aValue: UnicodeString);
  37352. Public
  37353. class function JSClassName: UnicodeString; override;
  37354. class function Cast(const Intf: IJSObject): IJSPopoverInvokerElement;
  37355. property popoverTargetElement: IJSElement read _GetpopoverTargetElement write _SetpopoverTargetElement;
  37356. property popoverTargetAction: UnicodeString read _GetpopoverTargetAction write _SetpopoverTargetAction;
  37357. end;
  37358. { --------------------------------------------------------------------
  37359. TJSPromiseNativeHandler
  37360. --------------------------------------------------------------------}
  37361. IJSPromiseNativeHandler = interface(IJSObject)
  37362. ['{3345DC6F-2A3E-36FD-A14F-A88C202260F0}']
  37363. end;
  37364. TJSPromiseNativeHandler = class(TJSObject,IJSPromiseNativeHandler)
  37365. Protected
  37366. Public
  37367. class function JSClassName: UnicodeString; override;
  37368. class function Cast(const Intf: IJSObject): IJSPromiseNativeHandler;
  37369. end;
  37370. { --------------------------------------------------------------------
  37371. TJSPushManager
  37372. --------------------------------------------------------------------}
  37373. IJSPushManager = interface(IJSObject)
  37374. ['{CCE109EC-2563-33E0-A81B-EEFE2BDF248B}']
  37375. function subscribe(const aOptions: TJSPushSubscriptionOptionsInit): IJSPromise; // Promise<PushSubscription>
  37376. function subscribe: IJSPromise; // Promise<PushSubscription>
  37377. function getSubscription: IJSPromise; // Promise<PushSubscription>
  37378. function permissionState(const aOptions: TJSPushSubscriptionOptionsInit): IJSPromise; // Promise<PermissionState>
  37379. function permissionState: IJSPromise; // Promise<PermissionState>
  37380. end;
  37381. TJSPushManager = class(TJSObject,IJSPushManager)
  37382. Protected
  37383. Public
  37384. function subscribe(const aOptions: TJSPushSubscriptionOptionsInit): IJSPromise; overload; // Promise<PushSubscription>
  37385. function subscribe: IJSPromise; overload; // Promise<PushSubscription>
  37386. function getSubscription: IJSPromise; overload; // Promise<PushSubscription>
  37387. function permissionState(const aOptions: TJSPushSubscriptionOptionsInit): IJSPromise; overload; // Promise<PermissionState>
  37388. function permissionState: IJSPromise; overload; // Promise<PermissionState>
  37389. class function JSClassName: UnicodeString; override;
  37390. class function Cast(const Intf: IJSObject): IJSPushManager;
  37391. end;
  37392. { --------------------------------------------------------------------
  37393. TJSPushMessageData
  37394. --------------------------------------------------------------------}
  37395. IJSPushMessageData = interface(IJSObject)
  37396. ['{3EB9351E-399D-3B31-AD05-D0CCB44A6157}']
  37397. function arrayBuffer: IJSArrayBuffer;
  37398. function blob: IJSBlob;
  37399. function json: Variant;
  37400. function text: UnicodeString;
  37401. end;
  37402. TJSPushMessageData = class(TJSObject,IJSPushMessageData)
  37403. Protected
  37404. Public
  37405. function arrayBuffer: IJSArrayBuffer; overload;
  37406. function blob: IJSBlob; overload;
  37407. function json: Variant; overload;
  37408. function text: UnicodeString; overload;
  37409. class function JSClassName: UnicodeString; override;
  37410. class function Cast(const Intf: IJSObject): IJSPushMessageData;
  37411. end;
  37412. { --------------------------------------------------------------------
  37413. TJSPushSubscription
  37414. --------------------------------------------------------------------}
  37415. IJSPushSubscription = interface(IJSObject)
  37416. ['{31AC4E78-E148-383F-9864-37E5150B3BFA}']
  37417. function _Getendpoint: UnicodeString;
  37418. function _Getoptions: IJSPushSubscriptionOptions;
  37419. function _GetexpirationTime: TEpochTimeStamp;
  37420. function getKey(aName: TPushEncryptionKeyName): IJSArrayBuffer;
  37421. function unsubscribe: IJSPromise; // Promise<boolean>
  37422. function toJSON: TJSPushSubscriptionJSON;
  37423. property endpoint: UnicodeString read _Getendpoint;
  37424. property options: IJSPushSubscriptionOptions read _Getoptions;
  37425. property expirationTime: TEpochTimeStamp read _GetexpirationTime;
  37426. end;
  37427. TJSPushSubscription = class(TJSObject,IJSPushSubscription)
  37428. Protected
  37429. function _Getendpoint: UnicodeString;
  37430. function _Getoptions: IJSPushSubscriptionOptions;
  37431. function _GetexpirationTime: TEpochTimeStamp;
  37432. Public
  37433. function getKey(aName: TPushEncryptionKeyName): IJSArrayBuffer; overload;
  37434. function unsubscribe: IJSPromise; overload; // Promise<boolean>
  37435. function toJSON: TJSPushSubscriptionJSON; overload;
  37436. class function JSClassName: UnicodeString; override;
  37437. class function Cast(const Intf: IJSObject): IJSPushSubscription;
  37438. property endpoint: UnicodeString read _Getendpoint;
  37439. property options: IJSPushSubscriptionOptions read _Getoptions;
  37440. property expirationTime: TEpochTimeStamp read _GetexpirationTime;
  37441. end;
  37442. { --------------------------------------------------------------------
  37443. TJSPushSubscriptionOptions
  37444. --------------------------------------------------------------------}
  37445. IJSPushSubscriptionOptions = interface(IJSObject)
  37446. ['{3CDF1EE1-C6DA-3F47-A92A-0D1823D64C38}']
  37447. function _GetapplicationServerKey: IJSArrayBuffer;
  37448. property applicationServerKey: IJSArrayBuffer read _GetapplicationServerKey;
  37449. end;
  37450. TJSPushSubscriptionOptions = class(TJSObject,IJSPushSubscriptionOptions)
  37451. Protected
  37452. function _GetapplicationServerKey: IJSArrayBuffer;
  37453. Public
  37454. class function JSClassName: UnicodeString; override;
  37455. class function Cast(const Intf: IJSObject): IJSPushSubscriptionOptions;
  37456. property applicationServerKey: IJSArrayBuffer read _GetapplicationServerKey;
  37457. end;
  37458. { --------------------------------------------------------------------
  37459. TJSCountQueuingStrategy
  37460. --------------------------------------------------------------------}
  37461. IJSCountQueuingStrategy = interface(IJSObject)
  37462. ['{3E02214C-EAC5-352D-9426-C93752B4E17C}']
  37463. function _GethighWaterMark: Double;
  37464. function _Getsize: TFunction;
  37465. property highWaterMark: Double read _GethighWaterMark;
  37466. property size: TFunction read _Getsize;
  37467. end;
  37468. TJSCountQueuingStrategy = class(TJSObject,IJSCountQueuingStrategy)
  37469. Protected
  37470. function _GethighWaterMark: Double;
  37471. function _Getsize: TFunction;
  37472. Public
  37473. constructor Create(const aInit: TJSQueuingStrategyInit); overload;
  37474. class function JSClassName: UnicodeString; override;
  37475. class function Cast(const Intf: IJSObject): IJSCountQueuingStrategy;
  37476. property highWaterMark: Double read _GethighWaterMark;
  37477. property size: TFunction read _Getsize;
  37478. end;
  37479. { --------------------------------------------------------------------
  37480. TJSByteLengthQueuingStrategy
  37481. --------------------------------------------------------------------}
  37482. IJSByteLengthQueuingStrategy = interface(IJSObject)
  37483. ['{331716CB-5821-374B-A1F7-96290FE2982A}']
  37484. function _GethighWaterMark: Double;
  37485. function _Getsize: TFunction;
  37486. property highWaterMark: Double read _GethighWaterMark;
  37487. property size: TFunction read _Getsize;
  37488. end;
  37489. TJSByteLengthQueuingStrategy = class(TJSObject,IJSByteLengthQueuingStrategy)
  37490. Protected
  37491. function _GethighWaterMark: Double;
  37492. function _Getsize: TFunction;
  37493. Public
  37494. constructor Create(const aInit: TJSQueuingStrategyInit); overload;
  37495. class function JSClassName: UnicodeString; override;
  37496. class function Cast(const Intf: IJSObject): IJSByteLengthQueuingStrategy;
  37497. property highWaterMark: Double read _GethighWaterMark;
  37498. property size: TFunction read _Getsize;
  37499. end;
  37500. { --------------------------------------------------------------------
  37501. TJSReadableByteStreamController
  37502. --------------------------------------------------------------------}
  37503. IJSReadableByteStreamController = interface(IJSObject)
  37504. ['{7BE7C314-B6FF-3095-B637-0696E245677C}']
  37505. function _GetbyobRequest: IJSReadableStreamBYOBRequest;
  37506. function _GetdesiredSize: Double;
  37507. procedure close;
  37508. procedure enqueue(aChunk: IJSArrayBufferView);
  37509. procedure error(const aE: Variant);
  37510. procedure error;
  37511. property byobRequest: IJSReadableStreamBYOBRequest read _GetbyobRequest;
  37512. property desiredSize: Double read _GetdesiredSize;
  37513. end;
  37514. TJSReadableByteStreamController = class(TJSObject,IJSReadableByteStreamController)
  37515. Protected
  37516. function _GetbyobRequest: IJSReadableStreamBYOBRequest;
  37517. function _GetdesiredSize: Double;
  37518. Public
  37519. procedure close; overload;
  37520. procedure enqueue(aChunk: IJSArrayBufferView); overload;
  37521. procedure error(const aE: Variant); overload;
  37522. procedure error; overload;
  37523. class function JSClassName: UnicodeString; override;
  37524. class function Cast(const Intf: IJSObject): IJSReadableByteStreamController;
  37525. property byobRequest: IJSReadableStreamBYOBRequest read _GetbyobRequest;
  37526. property desiredSize: Double read _GetdesiredSize;
  37527. end;
  37528. { --------------------------------------------------------------------
  37529. TJSReadableStream
  37530. --------------------------------------------------------------------}
  37531. TJSReadableStreamDynArray = IJSArray; // array of ReadableStream
  37532. IJSReadableStream = interface(IJSObject)
  37533. ['{ECC0054E-1144-374E-9F7B-45CBD2B675D3}']
  37534. function _Getlocked: Boolean;
  37535. function cancel(const aReason: Variant): IJSPromise; // Promise<undefined>
  37536. function cancel: IJSPromise; // Promise<undefined>
  37537. function getReader(const aOptions: TJSReadableStreamGetReaderOptions): TReadableStreamReader;
  37538. function getReader: TReadableStreamReader;
  37539. function pipeThrough(const aTransform: TJSReadableWritablePair; const aOptions: TJSStreamPipeOptions): IJSReadableStream;
  37540. function pipeThrough(const aTransform: TJSReadableWritablePair): IJSReadableStream;
  37541. function pipeTo(aDestination: IJSWritableStream; const aOptions: TJSStreamPipeOptions): IJSPromise; // Promise<undefined>
  37542. function pipeTo(aDestination: IJSWritableStream): IJSPromise; // Promise<undefined>
  37543. function tee: TJSReadableStreamDynArray;
  37544. property locked: Boolean read _Getlocked;
  37545. end;
  37546. TJSReadableStream = class(TJSObject,IJSReadableStream)
  37547. Protected
  37548. function _Getlocked: Boolean;
  37549. Public
  37550. constructor Create(aUnderlyingSource: IJSObject; const aStrategy: TJSQueuingStrategy); overload;
  37551. constructor Create; overload;
  37552. constructor Create(aUnderlyingSource: IJSObject); overload;
  37553. function from(const aAsyncIterable: Variant): IJSReadableStream; overload;
  37554. function cancel(const aReason: Variant): IJSPromise; overload; // Promise<undefined>
  37555. function cancel: IJSPromise; overload; // Promise<undefined>
  37556. function getReader(const aOptions: TJSReadableStreamGetReaderOptions): TReadableStreamReader; overload;
  37557. function getReader: TReadableStreamReader; overload;
  37558. function pipeThrough(const aTransform: TJSReadableWritablePair; const aOptions: TJSStreamPipeOptions): IJSReadableStream; overload;
  37559. function pipeThrough(const aTransform: TJSReadableWritablePair): IJSReadableStream; overload;
  37560. function pipeTo(aDestination: IJSWritableStream; const aOptions: TJSStreamPipeOptions): IJSPromise; overload; // Promise<undefined>
  37561. function pipeTo(aDestination: IJSWritableStream): IJSPromise; overload; // Promise<undefined>
  37562. function tee: TJSReadableStreamDynArray; overload;
  37563. class function JSClassName: UnicodeString; override;
  37564. class function Cast(const Intf: IJSObject): IJSReadableStream;
  37565. property locked: Boolean read _Getlocked;
  37566. end;
  37567. { --------------------------------------------------------------------
  37568. TJSReadableStreamBYOBRequest
  37569. --------------------------------------------------------------------}
  37570. IJSReadableStreamBYOBRequest = interface(IJSObject)
  37571. ['{805B2726-9E65-3934-8178-62D1D893E9AA}']
  37572. function _Getview: IJSArrayBufferView;
  37573. procedure respond(aBytesWritten: QWord);
  37574. procedure respondWithNewView(aView: IJSArrayBufferView);
  37575. property view: IJSArrayBufferView read _Getview;
  37576. end;
  37577. TJSReadableStreamBYOBRequest = class(TJSObject,IJSReadableStreamBYOBRequest)
  37578. Protected
  37579. function _Getview: IJSArrayBufferView;
  37580. Public
  37581. procedure respond(aBytesWritten: QWord); overload;
  37582. procedure respondWithNewView(aView: IJSArrayBufferView); overload;
  37583. class function JSClassName: UnicodeString; override;
  37584. class function Cast(const Intf: IJSObject): IJSReadableStreamBYOBRequest;
  37585. property view: IJSArrayBufferView read _Getview;
  37586. end;
  37587. { --------------------------------------------------------------------
  37588. TJSReadableStreamDefaultController
  37589. --------------------------------------------------------------------}
  37590. IJSReadableStreamDefaultController = interface(IJSObject)
  37591. ['{39EF6056-206F-3E09-9040-444C267FDC28}']
  37592. function _GetdesiredSize: Double;
  37593. procedure close;
  37594. procedure enqueue(const aChunk: Variant);
  37595. procedure enqueue;
  37596. procedure error(const aE: Variant);
  37597. procedure error;
  37598. property desiredSize: Double read _GetdesiredSize;
  37599. end;
  37600. TJSReadableStreamDefaultController = class(TJSObject,IJSReadableStreamDefaultController)
  37601. Protected
  37602. function _GetdesiredSize: Double;
  37603. Public
  37604. procedure close; overload;
  37605. procedure enqueue(const aChunk: Variant); overload;
  37606. procedure enqueue; overload;
  37607. procedure error(const aE: Variant); overload;
  37608. procedure error; overload;
  37609. class function JSClassName: UnicodeString; override;
  37610. class function Cast(const Intf: IJSObject): IJSReadableStreamDefaultController;
  37611. property desiredSize: Double read _GetdesiredSize;
  37612. end;
  37613. { --------------------------------------------------------------------
  37614. TJSReadableStreamGenericReader
  37615. --------------------------------------------------------------------}
  37616. IJSReadableStreamGenericReader = interface(IJSObject)
  37617. ['{B7D38171-47D5-3E8B-89C2-6B93171A1906}']
  37618. function _Getclosed: IJSPromise;
  37619. function cancel(const aReason: Variant): IJSPromise; // Promise<undefined>
  37620. function cancel: IJSPromise; // Promise<undefined>
  37621. property closed: IJSPromise read _Getclosed;
  37622. end;
  37623. TJSReadableStreamGenericReader = class(TJSObject,IJSReadableStreamGenericReader)
  37624. Protected
  37625. function _Getclosed: IJSPromise;
  37626. Public
  37627. function cancel(const aReason: Variant): IJSPromise; overload; // Promise<undefined>
  37628. function cancel: IJSPromise; overload; // Promise<undefined>
  37629. class function JSClassName: UnicodeString; override;
  37630. class function Cast(const Intf: IJSObject): IJSReadableStreamGenericReader;
  37631. property closed: IJSPromise read _Getclosed;
  37632. end;
  37633. { --------------------------------------------------------------------
  37634. TJSReportBody
  37635. --------------------------------------------------------------------}
  37636. IJSReportBody = interface(IJSObject)
  37637. ['{F0F41AF7-935A-3A3A-B625-C64E89A48332}']
  37638. function toJSON: IJSObject;
  37639. end;
  37640. TJSReportBody = class(TJSObject,IJSReportBody)
  37641. Protected
  37642. Public
  37643. function toJSON: IJSObject; overload;
  37644. class function JSClassName: UnicodeString; override;
  37645. class function Cast(const Intf: IJSObject): IJSReportBody;
  37646. end;
  37647. { --------------------------------------------------------------------
  37648. TJSReport
  37649. --------------------------------------------------------------------}
  37650. IJSReport = interface(IJSObject)
  37651. ['{3E4656CC-CA26-3EEE-94D8-E3E78431995D}']
  37652. function _Gettype_: UnicodeString;
  37653. function _Geturl: UnicodeString;
  37654. function _Getbody: IJSReportBody;
  37655. function toJSON: IJSObject;
  37656. property type_: UnicodeString read _Gettype_;
  37657. property url: UnicodeString read _Geturl;
  37658. property body: IJSReportBody read _Getbody;
  37659. end;
  37660. TJSReport = class(TJSObject,IJSReport)
  37661. Protected
  37662. function _Gettype_: UnicodeString;
  37663. function _Geturl: UnicodeString;
  37664. function _Getbody: IJSReportBody;
  37665. Public
  37666. function toJSON: IJSObject; overload;
  37667. class function JSClassName: UnicodeString; override;
  37668. class function Cast(const Intf: IJSObject): IJSReport;
  37669. property type_: UnicodeString read _Gettype_;
  37670. property url: UnicodeString read _Geturl;
  37671. property body: IJSReportBody read _Getbody;
  37672. end;
  37673. { --------------------------------------------------------------------
  37674. TJSReportingObserver
  37675. --------------------------------------------------------------------}
  37676. IJSReportingObserver = interface(IJSObject)
  37677. ['{DBF98E9B-D58A-3171-A946-FCB99334AA59}']
  37678. procedure observe;
  37679. procedure disconnect;
  37680. function takeRecords: TReportListDynArray;
  37681. end;
  37682. TJSReportingObserver = class(TJSObject,IJSReportingObserver)
  37683. Protected
  37684. Public
  37685. constructor Create(const aCallback: TReportingObserverCallback; const aOptions: TJSReportingObserverOptions); overload;
  37686. constructor Create(const aCallback: TReportingObserverCallback); overload;
  37687. procedure observe; overload;
  37688. procedure disconnect; overload;
  37689. function takeRecords: TReportListDynArray; overload;
  37690. class function JSClassName: UnicodeString; override;
  37691. class function Cast(const Intf: IJSObject): IJSReportingObserver;
  37692. end;
  37693. { --------------------------------------------------------------------
  37694. TJSTestingDeprecatedInterface
  37695. --------------------------------------------------------------------}
  37696. IJSTestingDeprecatedInterface = interface(IJSObject)
  37697. ['{844AD984-262C-3655-8C8A-3497D18383D7}']
  37698. function _GetdeprecatedAttribute: Boolean;
  37699. procedure deprecatedMethod;
  37700. property deprecatedAttribute: Boolean read _GetdeprecatedAttribute;
  37701. end;
  37702. TJSTestingDeprecatedInterface = class(TJSObject,IJSTestingDeprecatedInterface)
  37703. Protected
  37704. function _GetdeprecatedAttribute: Boolean;
  37705. Public
  37706. constructor Create; overload;
  37707. procedure deprecatedMethod; overload;
  37708. class function JSClassName: UnicodeString; override;
  37709. class function Cast(const Intf: IJSObject): IJSTestingDeprecatedInterface;
  37710. property deprecatedAttribute: Boolean read _GetdeprecatedAttribute;
  37711. end;
  37712. { --------------------------------------------------------------------
  37713. TJSResizeObserver
  37714. --------------------------------------------------------------------}
  37715. IJSResizeObserver = interface(IJSObject)
  37716. ['{F8D2923F-D028-34A1-BCB3-881D605DAEB6}']
  37717. procedure observe(aTarget: IJSElement; const aOptions: TJSResizeObserverOptions);
  37718. procedure observe(aTarget: IJSElement);
  37719. procedure unobserve(aTarget: IJSElement);
  37720. procedure disconnect;
  37721. end;
  37722. TJSResizeObserver = class(TJSObject,IJSResizeObserver)
  37723. Protected
  37724. Public
  37725. constructor Create(const aCallback: TResizeObserverCallback); overload;
  37726. procedure observe(aTarget: IJSElement; const aOptions: TJSResizeObserverOptions); overload;
  37727. procedure observe(aTarget: IJSElement); overload;
  37728. procedure unobserve(aTarget: IJSElement); overload;
  37729. procedure disconnect; overload;
  37730. class function JSClassName: UnicodeString; override;
  37731. class function Cast(const Intf: IJSObject): IJSResizeObserver;
  37732. end;
  37733. { --------------------------------------------------------------------
  37734. TJSResizeObserverEntry
  37735. --------------------------------------------------------------------}
  37736. TJSResizeObserverSizeDynArray = IJSArray; // array of ResizeObserverSize
  37737. IJSResizeObserverEntry = interface(IJSObject)
  37738. ['{06572029-E7FD-3578-95F3-47A4B3D502DF}']
  37739. function _Gettarget: IJSElement;
  37740. function _GetcontentRect: IJSDOMRectReadOnly;
  37741. function _GetborderBoxSize: TJSResizeObserverSizeDynArray;
  37742. function _GetcontentBoxSize: TJSResizeObserverSizeDynArray;
  37743. function _GetdevicePixelContentBoxSize: TJSResizeObserverSizeDynArray;
  37744. property target: IJSElement read _Gettarget;
  37745. property contentRect: IJSDOMRectReadOnly read _GetcontentRect;
  37746. property borderBoxSize: TJSResizeObserverSizeDynArray read _GetborderBoxSize;
  37747. property contentBoxSize: TJSResizeObserverSizeDynArray read _GetcontentBoxSize;
  37748. property devicePixelContentBoxSize: TJSResizeObserverSizeDynArray read _GetdevicePixelContentBoxSize;
  37749. end;
  37750. TJSResizeObserverEntry = class(TJSObject,IJSResizeObserverEntry)
  37751. Protected
  37752. function _Gettarget: IJSElement;
  37753. function _GetcontentRect: IJSDOMRectReadOnly;
  37754. function _GetborderBoxSize: TJSResizeObserverSizeDynArray;
  37755. function _GetcontentBoxSize: TJSResizeObserverSizeDynArray;
  37756. function _GetdevicePixelContentBoxSize: TJSResizeObserverSizeDynArray;
  37757. Public
  37758. class function JSClassName: UnicodeString; override;
  37759. class function Cast(const Intf: IJSObject): IJSResizeObserverEntry;
  37760. property target: IJSElement read _Gettarget;
  37761. property contentRect: IJSDOMRectReadOnly read _GetcontentRect;
  37762. property borderBoxSize: TJSResizeObserverSizeDynArray read _GetborderBoxSize;
  37763. property contentBoxSize: TJSResizeObserverSizeDynArray read _GetcontentBoxSize;
  37764. property devicePixelContentBoxSize: TJSResizeObserverSizeDynArray read _GetdevicePixelContentBoxSize;
  37765. end;
  37766. { --------------------------------------------------------------------
  37767. TJSResizeObserverSize
  37768. --------------------------------------------------------------------}
  37769. IJSResizeObserverSize = interface(IJSObject)
  37770. ['{748B998C-04F6-375F-86A0-74609DE850BD}']
  37771. function _GetinlineSize: Double;
  37772. function _GetblockSize: Double;
  37773. property inlineSize: Double read _GetinlineSize;
  37774. property blockSize: Double read _GetblockSize;
  37775. end;
  37776. TJSResizeObserverSize = class(TJSObject,IJSResizeObserverSize)
  37777. Protected
  37778. function _GetinlineSize: Double;
  37779. function _GetblockSize: Double;
  37780. Public
  37781. class function JSClassName: UnicodeString; override;
  37782. class function Cast(const Intf: IJSObject): IJSResizeObserverSize;
  37783. property inlineSize: Double read _GetinlineSize;
  37784. property blockSize: Double read _GetblockSize;
  37785. end;
  37786. { --------------------------------------------------------------------
  37787. TJSResponse
  37788. --------------------------------------------------------------------}
  37789. // Union of Blob, BufferSource, FormData, URLSearchParams, ReadableStream, USVString
  37790. TResponse_New_body_Type = Variant;
  37791. IJSResponse = interface(IJSObject)
  37792. ['{0B705D5E-D166-325F-8AD5-004BD5C7161F}']
  37793. function _Gettype_: TResponseType;
  37794. function _Geturl: UnicodeString;
  37795. function _Getredirected: Boolean;
  37796. function _Getstatus: Word;
  37797. function _Getok: Boolean;
  37798. function _GetstatusText: UnicodeString;
  37799. function _Getheaders: IJSHeaders;
  37800. function _Getbody: IJSReadableStream;
  37801. function _GetbodyUsed: Boolean;
  37802. function clone: IJSResponse;
  37803. function arrayBuffer: IJSPromise; // Promise<ArrayBuffer>
  37804. function blob: IJSPromise; // Promise<Blob>
  37805. function formData: IJSPromise; // Promise<FormData>
  37806. function json: IJSPromise; // Promise<JSON>
  37807. function text: IJSPromise; // Promise<USVString>
  37808. property type_: TResponseType read _Gettype_;
  37809. property url: UnicodeString read _Geturl;
  37810. property redirected: Boolean read _Getredirected;
  37811. property status: Word read _Getstatus;
  37812. property ok: Boolean read _Getok;
  37813. property statusText: UnicodeString read _GetstatusText;
  37814. property headers: IJSHeaders read _Getheaders;
  37815. property body: IJSReadableStream read _Getbody;
  37816. property bodyUsed: Boolean read _GetbodyUsed;
  37817. end;
  37818. TJSResponse = class(TJSObject,IJSResponse)
  37819. Protected
  37820. function _Gettype_: TResponseType;
  37821. function _Geturl: UnicodeString;
  37822. function _Getredirected: Boolean;
  37823. function _Getstatus: Word;
  37824. function _Getok: Boolean;
  37825. function _GetstatusText: UnicodeString;
  37826. function _Getheaders: IJSHeaders;
  37827. function _Getbody: IJSReadableStream;
  37828. function _GetbodyUsed: Boolean;
  37829. Public
  37830. constructor Create(aBody: IJSBlob; const aInit: TJSResponseInit); overload;
  37831. constructor Create; overload;
  37832. constructor Create(aBody: IJSBufferSource; const aInit: TJSResponseInit); overload;
  37833. constructor Create(aBody: IJSFormData; const aInit: TJSResponseInit); overload;
  37834. constructor Create(aBody: IJSReadableStream; const aInit: TJSResponseInit); overload;
  37835. constructor Create(aBody: IJSURLSearchParams; const aInit: TJSResponseInit); overload;
  37836. constructor Create(const aBody: UnicodeString; const aInit: TJSResponseInit); overload;
  37837. constructor Create(const aBody: UnicodeString); overload;
  37838. constructor Create(aBody: IJSURLSearchParams); overload;
  37839. constructor Create(aBody: IJSReadableStream); overload;
  37840. constructor Create(aBody: IJSFormData); overload;
  37841. constructor Create(aBody: IJSBufferSource); overload;
  37842. constructor Create(aBody: IJSBlob); overload;
  37843. function error: IJSResponse; overload;
  37844. function redirect(const aUrl: UnicodeString; aStatus: Word): IJSResponse; overload;
  37845. function redirect(const aUrl: UnicodeString): IJSResponse; overload;
  37846. function json(const aData: Variant; const aInit: TJSResponseInit): IJSResponse; overload;
  37847. function json(const aData: Variant): IJSResponse; overload;
  37848. function clone: IJSResponse; overload;
  37849. function arrayBuffer: IJSPromise; overload; // Promise<ArrayBuffer>
  37850. function blob: IJSPromise; overload; // Promise<Blob>
  37851. function formData: IJSPromise; overload; // Promise<FormData>
  37852. function json: IJSPromise; overload; // Promise<JSON>
  37853. function text: IJSPromise; overload; // Promise<USVString>
  37854. class function JSClassName: UnicodeString; override;
  37855. class function Cast(const Intf: IJSObject): IJSResponse;
  37856. property type_: TResponseType read _Gettype_;
  37857. property url: UnicodeString read _Geturl;
  37858. property redirected: Boolean read _Getredirected;
  37859. property status: Word read _Getstatus;
  37860. property ok: Boolean read _Getok;
  37861. property statusText: UnicodeString read _GetstatusText;
  37862. property headers: IJSHeaders read _Getheaders;
  37863. property body: IJSReadableStream read _Getbody;
  37864. property bodyUsed: Boolean read _GetbodyUsed;
  37865. end;
  37866. { --------------------------------------------------------------------
  37867. TJSRTCCertificate
  37868. --------------------------------------------------------------------}
  37869. IJSRTCCertificate = interface(IJSObject)
  37870. ['{B96A00BB-1F7F-3BAE-81FF-0134E6EB8CB6}']
  37871. function _Getexpires: TDOMTimeStamp;
  37872. property expires: TDOMTimeStamp read _Getexpires;
  37873. end;
  37874. TJSRTCCertificate = class(TJSObject,IJSRTCCertificate)
  37875. Protected
  37876. function _Getexpires: TDOMTimeStamp;
  37877. Public
  37878. class function JSClassName: UnicodeString; override;
  37879. class function Cast(const Intf: IJSObject): IJSRTCCertificate;
  37880. property expires: TDOMTimeStamp read _Getexpires;
  37881. end;
  37882. { --------------------------------------------------------------------
  37883. TJSRTCEncodedAudioFrame
  37884. --------------------------------------------------------------------}
  37885. IJSRTCEncodedAudioFrame = interface(IJSObject)
  37886. ['{3DE5E38F-408B-3CD2-9366-BB8055C79744}']
  37887. function _Gettimestamp: Cardinal;
  37888. function _Getdata: IJSArrayBuffer;
  37889. procedure _Setdata(const aValue: IJSArrayBuffer);
  37890. function getMetadata: TJSRTCEncodedAudioFrameMetadata;
  37891. property timestamp: Cardinal read _Gettimestamp;
  37892. property data: IJSArrayBuffer read _Getdata write _Setdata;
  37893. end;
  37894. TJSRTCEncodedAudioFrame = class(TJSObject,IJSRTCEncodedAudioFrame)
  37895. Protected
  37896. function _Gettimestamp: Cardinal;
  37897. function _Getdata: IJSArrayBuffer;
  37898. procedure _Setdata(const aValue: IJSArrayBuffer);
  37899. Public
  37900. function getMetadata: TJSRTCEncodedAudioFrameMetadata; overload;
  37901. class function JSClassName: UnicodeString; override;
  37902. class function Cast(const Intf: IJSObject): IJSRTCEncodedAudioFrame;
  37903. property timestamp: Cardinal read _Gettimestamp;
  37904. property data: IJSArrayBuffer read _Getdata write _Setdata;
  37905. end;
  37906. { --------------------------------------------------------------------
  37907. TJSRTCEncodedVideoFrame
  37908. --------------------------------------------------------------------}
  37909. IJSRTCEncodedVideoFrame = interface(IJSObject)
  37910. ['{665C0CF0-E2AE-3DA3-9197-8009BF0ECB1C}']
  37911. function _Gettype_: TRTCEncodedVideoFrameType;
  37912. function _Gettimestamp: Cardinal;
  37913. function _Getdata: IJSArrayBuffer;
  37914. procedure _Setdata(const aValue: IJSArrayBuffer);
  37915. function getMetadata: TJSRTCEncodedVideoFrameMetadata;
  37916. property type_: TRTCEncodedVideoFrameType read _Gettype_;
  37917. property timestamp: Cardinal read _Gettimestamp;
  37918. property data: IJSArrayBuffer read _Getdata write _Setdata;
  37919. end;
  37920. TJSRTCEncodedVideoFrame = class(TJSObject,IJSRTCEncodedVideoFrame)
  37921. Protected
  37922. function _Gettype_: TRTCEncodedVideoFrameType;
  37923. function _Gettimestamp: Cardinal;
  37924. function _Getdata: IJSArrayBuffer;
  37925. procedure _Setdata(const aValue: IJSArrayBuffer);
  37926. Public
  37927. function getMetadata: TJSRTCEncodedVideoFrameMetadata; overload;
  37928. class function JSClassName: UnicodeString; override;
  37929. class function Cast(const Intf: IJSObject): IJSRTCEncodedVideoFrame;
  37930. property type_: TRTCEncodedVideoFrameType read _Gettype_;
  37931. property timestamp: Cardinal read _Gettimestamp;
  37932. property data: IJSArrayBuffer read _Getdata write _Setdata;
  37933. end;
  37934. { --------------------------------------------------------------------
  37935. TJSRTCIceCandidate
  37936. --------------------------------------------------------------------}
  37937. IJSRTCIceCandidate = interface(IJSObject)
  37938. ['{DD51CC57-6A6C-3E35-ABDD-FD5F3712557A}']
  37939. function _Getcandidate: UnicodeString;
  37940. function _GetsdpMid: UnicodeString;
  37941. function _GetsdpMLineIndex: Word;
  37942. function _Getfoundation: UnicodeString;
  37943. function _Getcomponent: TRTCIceComponent;
  37944. function _Getpriority: Cardinal;
  37945. function _Getaddress: UnicodeString;
  37946. function _Getprotocol: TRTCIceProtocol;
  37947. function _Getport: Word;
  37948. function _Gettype_: TRTCIceCandidateType;
  37949. function _GettcpType: TRTCIceTcpCandidateType;
  37950. function _GetrelatedAddress: UnicodeString;
  37951. function _GetrelatedPort: Word;
  37952. function _GetusernameFragment: UnicodeString;
  37953. function toJSON: TJSRTCIceCandidateInit;
  37954. property candidate: UnicodeString read _Getcandidate;
  37955. property sdpMid: UnicodeString read _GetsdpMid;
  37956. property sdpMLineIndex: Word read _GetsdpMLineIndex;
  37957. property foundation: UnicodeString read _Getfoundation;
  37958. property component: TRTCIceComponent read _Getcomponent;
  37959. property priority: Cardinal read _Getpriority;
  37960. property address: UnicodeString read _Getaddress;
  37961. property protocol: TRTCIceProtocol read _Getprotocol;
  37962. property port: Word read _Getport;
  37963. property type_: TRTCIceCandidateType read _Gettype_;
  37964. property tcpType: TRTCIceTcpCandidateType read _GettcpType;
  37965. property relatedAddress: UnicodeString read _GetrelatedAddress;
  37966. property relatedPort: Word read _GetrelatedPort;
  37967. property usernameFragment: UnicodeString read _GetusernameFragment;
  37968. end;
  37969. TJSRTCIceCandidate = class(TJSObject,IJSRTCIceCandidate)
  37970. Protected
  37971. function _Getcandidate: UnicodeString;
  37972. function _GetsdpMid: UnicodeString;
  37973. function _GetsdpMLineIndex: Word;
  37974. function _Getfoundation: UnicodeString;
  37975. function _Getcomponent: TRTCIceComponent;
  37976. function _Getpriority: Cardinal;
  37977. function _Getaddress: UnicodeString;
  37978. function _Getprotocol: TRTCIceProtocol;
  37979. function _Getport: Word;
  37980. function _Gettype_: TRTCIceCandidateType;
  37981. function _GettcpType: TRTCIceTcpCandidateType;
  37982. function _GetrelatedAddress: UnicodeString;
  37983. function _GetrelatedPort: Word;
  37984. function _GetusernameFragment: UnicodeString;
  37985. Public
  37986. constructor Create(const aCandidateInitDict: TJSRTCIceCandidateInit); overload;
  37987. constructor Create; overload;
  37988. function toJSON: TJSRTCIceCandidateInit; overload;
  37989. class function JSClassName: UnicodeString; override;
  37990. class function Cast(const Intf: IJSObject): IJSRTCIceCandidate;
  37991. property candidate: UnicodeString read _Getcandidate;
  37992. property sdpMid: UnicodeString read _GetsdpMid;
  37993. property sdpMLineIndex: Word read _GetsdpMLineIndex;
  37994. property foundation: UnicodeString read _Getfoundation;
  37995. property component: TRTCIceComponent read _Getcomponent;
  37996. property priority: Cardinal read _Getpriority;
  37997. property address: UnicodeString read _Getaddress;
  37998. property protocol: TRTCIceProtocol read _Getprotocol;
  37999. property port: Word read _Getport;
  38000. property type_: TRTCIceCandidateType read _Gettype_;
  38001. property tcpType: TRTCIceTcpCandidateType read _GettcpType;
  38002. property relatedAddress: UnicodeString read _GetrelatedAddress;
  38003. property relatedPort: Word read _GetrelatedPort;
  38004. property usernameFragment: UnicodeString read _GetusernameFragment;
  38005. end;
  38006. { --------------------------------------------------------------------
  38007. TJSRTCIdentityProviderRegistrar
  38008. --------------------------------------------------------------------}
  38009. IJSRTCIdentityProviderRegistrar = interface(IJSObject)
  38010. ['{82F73A95-DEF9-3C6B-89E4-05BE4E6EEB9D}']
  38011. procedure register(const aIdp: TJSRTCIdentityProvider);
  38012. end;
  38013. TJSRTCIdentityProviderRegistrar = class(TJSObject,IJSRTCIdentityProviderRegistrar)
  38014. Protected
  38015. Public
  38016. procedure register(const aIdp: TJSRTCIdentityProvider); overload;
  38017. class function JSClassName: UnicodeString; override;
  38018. class function Cast(const Intf: IJSObject): IJSRTCIdentityProviderRegistrar;
  38019. end;
  38020. { --------------------------------------------------------------------
  38021. TJSRTCRtpReceiver
  38022. --------------------------------------------------------------------}
  38023. TJSRTCRtpContributingSourceDynArray = IJSArray; // array of RTCRtpContributingSource
  38024. TJSRTCRtpSynchronizationSourceDynArray = IJSArray; // array of RTCRtpSynchronizationSource
  38025. IJSRTCRtpReceiver = interface(IJSObject)
  38026. ['{262E430A-C115-3C23-BAB8-C032C8D3DCE0}']
  38027. function _Gettrack: IJSMediaStreamTrack;
  38028. function _Gettransport: IJSRTCDtlsTransport;
  38029. function _GetjitterBufferTarget: TDOMHighResTimeStamp;
  38030. function _Gettransform: IJSRTCRtpScriptTransform;
  38031. procedure _SetjitterBufferTarget(const aValue: TDOMHighResTimeStamp);
  38032. procedure _Settransform(const aValue: IJSRTCRtpScriptTransform);
  38033. function getContributingSources: TJSRTCRtpContributingSourceDynArray;
  38034. function getSynchronizationSources: TJSRTCRtpSynchronizationSourceDynArray;
  38035. function getStats: IJSPromise; // Promise<RTCStatsReport>
  38036. property track: IJSMediaStreamTrack read _Gettrack;
  38037. property transport: IJSRTCDtlsTransport read _Gettransport;
  38038. property jitterBufferTarget: TDOMHighResTimeStamp read _GetjitterBufferTarget write _SetjitterBufferTarget;
  38039. property transform: IJSRTCRtpScriptTransform read _Gettransform write _Settransform;
  38040. end;
  38041. TJSRTCRtpReceiver = class(TJSObject,IJSRTCRtpReceiver)
  38042. Protected
  38043. function _Gettrack: IJSMediaStreamTrack;
  38044. function _Gettransport: IJSRTCDtlsTransport;
  38045. function _GetjitterBufferTarget: TDOMHighResTimeStamp;
  38046. function _Gettransform: IJSRTCRtpScriptTransform;
  38047. procedure _SetjitterBufferTarget(const aValue: TDOMHighResTimeStamp);
  38048. procedure _Settransform(const aValue: IJSRTCRtpScriptTransform);
  38049. Public
  38050. function getCapabilities(const aKind: UnicodeString): TJSRTCRtpCapabilities; overload;
  38051. function getContributingSources: TJSRTCRtpContributingSourceDynArray; overload;
  38052. function getSynchronizationSources: TJSRTCRtpSynchronizationSourceDynArray; overload;
  38053. function getStats: IJSPromise; overload; // Promise<RTCStatsReport>
  38054. class function JSClassName: UnicodeString; override;
  38055. class function Cast(const Intf: IJSObject): IJSRTCRtpReceiver;
  38056. property track: IJSMediaStreamTrack read _Gettrack;
  38057. property transport: IJSRTCDtlsTransport read _Gettransport;
  38058. property jitterBufferTarget: TDOMHighResTimeStamp read _GetjitterBufferTarget write _SetjitterBufferTarget;
  38059. property transform: IJSRTCRtpScriptTransform read _Gettransform write _Settransform;
  38060. end;
  38061. { --------------------------------------------------------------------
  38062. TJSRTCRtpScriptTransform
  38063. --------------------------------------------------------------------}
  38064. IJSRTCRtpScriptTransform = interface(IJSObject)
  38065. ['{50F22628-FCA0-3181-A165-02A4B8162061}']
  38066. end;
  38067. TJSRTCRtpScriptTransform = class(TJSObject,IJSRTCRtpScriptTransform)
  38068. Protected
  38069. Public
  38070. constructor Create(aWorker: IJSWorker; const aOptions: Variant; const aTransfer: TIJSObjectDynArray); overload;
  38071. constructor Create(aWorker: IJSWorker); overload;
  38072. constructor Create(aWorker: IJSWorker; const aOptions: Variant); overload;
  38073. class function JSClassName: UnicodeString; override;
  38074. class function Cast(const Intf: IJSObject): IJSRTCRtpScriptTransform;
  38075. end;
  38076. { --------------------------------------------------------------------
  38077. TJSRTCRtpScriptTransformer
  38078. --------------------------------------------------------------------}
  38079. IJSRTCRtpScriptTransformer = interface(IJSObject)
  38080. ['{F2AC4547-05FD-3397-9D1B-69D0D4DC1118}']
  38081. function _Getreadable: IJSReadableStream;
  38082. function _Getwritable: IJSWritableStream;
  38083. function _Getoptions: Variant;
  38084. function generateKeyFrame(const aRid: UnicodeString): IJSPromise; // Promise<unsigned long long>
  38085. function generateKeyFrame: IJSPromise; // Promise<unsigned long long>
  38086. function sendKeyFrameRequest: IJSPromise; // Promise<undefined>
  38087. property readable: IJSReadableStream read _Getreadable;
  38088. property writable: IJSWritableStream read _Getwritable;
  38089. property options: Variant read _Getoptions;
  38090. end;
  38091. TJSRTCRtpScriptTransformer = class(TJSObject,IJSRTCRtpScriptTransformer)
  38092. Protected
  38093. function _Getreadable: IJSReadableStream;
  38094. function _Getwritable: IJSWritableStream;
  38095. function _Getoptions: Variant;
  38096. Public
  38097. function generateKeyFrame(const aRid: UnicodeString): IJSPromise; overload; // Promise<unsigned long long>
  38098. function generateKeyFrame: IJSPromise; overload; // Promise<unsigned long long>
  38099. function sendKeyFrameRequest: IJSPromise; overload; // Promise<undefined>
  38100. class function JSClassName: UnicodeString; override;
  38101. class function Cast(const Intf: IJSObject): IJSRTCRtpScriptTransformer;
  38102. property readable: IJSReadableStream read _Getreadable;
  38103. property writable: IJSWritableStream read _Getwritable;
  38104. property options: Variant read _Getoptions;
  38105. end;
  38106. { --------------------------------------------------------------------
  38107. TJSRTCRtpSender
  38108. --------------------------------------------------------------------}
  38109. IJSRTCRtpSender = interface(IJSObject)
  38110. ['{4A978B28-4BB7-3D8B-8FD4-3F6C51AA3FC5}']
  38111. function _Gettrack: IJSMediaStreamTrack;
  38112. function _Gettransport: IJSRTCDtlsTransport;
  38113. function _Getdtmf: IJSRTCDTMFSender;
  38114. function _Gettransform: IJSRTCRtpScriptTransform;
  38115. procedure _Settransform(const aValue: IJSRTCRtpScriptTransform);
  38116. function setParameters(const aParameters: TJSRTCRtpSendParameters): IJSPromise; // Promise<undefined>
  38117. function getParameters: TJSRTCRtpSendParameters;
  38118. function replaceTrack(aWithTrack: IJSMediaStreamTrack): IJSPromise; // Promise<undefined>
  38119. procedure setStreams(aStreams: IJSMediaStream){; ToDo:varargs};
  38120. function getStats: IJSPromise; // Promise<RTCStatsReport>
  38121. property track: IJSMediaStreamTrack read _Gettrack;
  38122. property transport: IJSRTCDtlsTransport read _Gettransport;
  38123. property dtmf: IJSRTCDTMFSender read _Getdtmf;
  38124. property transform: IJSRTCRtpScriptTransform read _Gettransform write _Settransform;
  38125. end;
  38126. TJSRTCRtpSender = class(TJSObject,IJSRTCRtpSender)
  38127. Protected
  38128. function _Gettrack: IJSMediaStreamTrack;
  38129. function _Gettransport: IJSRTCDtlsTransport;
  38130. function _Getdtmf: IJSRTCDTMFSender;
  38131. function _Gettransform: IJSRTCRtpScriptTransform;
  38132. procedure _Settransform(const aValue: IJSRTCRtpScriptTransform);
  38133. Public
  38134. function getCapabilities(const aKind: UnicodeString): TJSRTCRtpCapabilities; overload;
  38135. function setParameters(const aParameters: TJSRTCRtpSendParameters): IJSPromise; overload; // Promise<undefined>
  38136. function getParameters: TJSRTCRtpSendParameters; overload;
  38137. function replaceTrack(aWithTrack: IJSMediaStreamTrack): IJSPromise; overload; // Promise<undefined>
  38138. procedure setStreams(aStreams: IJSMediaStream){; ToDo:varargs}; overload;
  38139. function getStats: IJSPromise; overload; // Promise<RTCStatsReport>
  38140. class function JSClassName: UnicodeString; override;
  38141. class function Cast(const Intf: IJSObject): IJSRTCRtpSender;
  38142. property track: IJSMediaStreamTrack read _Gettrack;
  38143. property transport: IJSRTCDtlsTransport read _Gettransport;
  38144. property dtmf: IJSRTCDTMFSender read _Getdtmf;
  38145. property transform: IJSRTCRtpScriptTransform read _Gettransform write _Settransform;
  38146. end;
  38147. { --------------------------------------------------------------------
  38148. TJSRTCRtpTransceiver
  38149. --------------------------------------------------------------------}
  38150. IJSRTCRtpTransceiver = interface(IJSObject)
  38151. ['{529A6680-5905-3391-94C9-BEAF1089FC5A}']
  38152. function _Getmid: UnicodeString;
  38153. function _Getsender: IJSRTCRtpSender;
  38154. function _Getreceiver: IJSRTCRtpReceiver;
  38155. function _Getstopped: Boolean;
  38156. function _Getdirection: TRTCRtpTransceiverDirection;
  38157. function _GetcurrentDirection: TRTCRtpTransceiverDirection;
  38158. procedure _Setdirection(const aValue: TRTCRtpTransceiverDirection);
  38159. procedure stop;
  38160. property mid: UnicodeString read _Getmid;
  38161. property sender: IJSRTCRtpSender read _Getsender;
  38162. property receiver: IJSRTCRtpReceiver read _Getreceiver;
  38163. property stopped: Boolean read _Getstopped;
  38164. property direction: TRTCRtpTransceiverDirection read _Getdirection write _Setdirection;
  38165. property currentDirection: TRTCRtpTransceiverDirection read _GetcurrentDirection;
  38166. end;
  38167. TJSRTCRtpTransceiver = class(TJSObject,IJSRTCRtpTransceiver)
  38168. Protected
  38169. function _Getmid: UnicodeString;
  38170. function _Getsender: IJSRTCRtpSender;
  38171. function _Getreceiver: IJSRTCRtpReceiver;
  38172. function _Getstopped: Boolean;
  38173. function _Getdirection: TRTCRtpTransceiverDirection;
  38174. function _GetcurrentDirection: TRTCRtpTransceiverDirection;
  38175. procedure _Setdirection(const aValue: TRTCRtpTransceiverDirection);
  38176. Public
  38177. procedure stop; overload;
  38178. class function JSClassName: UnicodeString; override;
  38179. class function Cast(const Intf: IJSObject): IJSRTCRtpTransceiver;
  38180. property mid: UnicodeString read _Getmid;
  38181. property sender: IJSRTCRtpSender read _Getsender;
  38182. property receiver: IJSRTCRtpReceiver read _Getreceiver;
  38183. property stopped: Boolean read _Getstopped;
  38184. property direction: TRTCRtpTransceiverDirection read _Getdirection write _Setdirection;
  38185. property currentDirection: TRTCRtpTransceiverDirection read _GetcurrentDirection;
  38186. end;
  38187. { --------------------------------------------------------------------
  38188. TJSRTCSessionDescription
  38189. --------------------------------------------------------------------}
  38190. IJSRTCSessionDescription = interface(IJSObject)
  38191. ['{025CC675-2819-3A25-B9C2-068C3E78B029}']
  38192. function _Gettype_: TRTCSdpType;
  38193. function _Getsdp: UnicodeString;
  38194. procedure _Settype_(const aValue: TRTCSdpType);
  38195. procedure _Setsdp(const aValue: UnicodeString);
  38196. function toJSON: IJSObject;
  38197. property type_: TRTCSdpType read _Gettype_ write _Settype_;
  38198. property sdp: UnicodeString read _Getsdp write _Setsdp;
  38199. end;
  38200. TJSRTCSessionDescription = class(TJSObject,IJSRTCSessionDescription)
  38201. Protected
  38202. function _Gettype_: TRTCSdpType;
  38203. function _Getsdp: UnicodeString;
  38204. procedure _Settype_(const aValue: TRTCSdpType);
  38205. procedure _Setsdp(const aValue: UnicodeString);
  38206. Public
  38207. constructor Create(const aDescriptionInitDict: TJSRTCSessionDescriptionInit); overload;
  38208. function toJSON: IJSObject; overload;
  38209. class function JSClassName: UnicodeString; override;
  38210. class function Cast(const Intf: IJSObject): IJSRTCSessionDescription;
  38211. property type_: TRTCSdpType read _Gettype_ write _Settype_;
  38212. property sdp: UnicodeString read _Getsdp write _Setsdp;
  38213. end;
  38214. { --------------------------------------------------------------------
  38215. TJSRTCStatsReport
  38216. --------------------------------------------------------------------}
  38217. IJSRTCStatsReport = interface(IJSObject)
  38218. ['{A28D7380-7FB0-3D6C-B6BD-4A07B446E5A9}']
  38219. function _Getsize : LongInt;
  38220. function get(key: UnicodeString) : IJSObject;
  38221. function has(key: UnicodeString) : Boolean;
  38222. function entries : IJSIterator;
  38223. function keys : IJSIterator;
  38224. function values : IJSIterator;
  38225. property size : LongInt read _Getsize;
  38226. end;
  38227. TJSRTCStatsReport = class(TJSObject,IJSRTCStatsReport)
  38228. Protected
  38229. function _Getsize : LongInt;
  38230. Public
  38231. function get(key: UnicodeString) : IJSObject;
  38232. function has(key: UnicodeString) : Boolean;
  38233. function entries : IJSIterator;
  38234. function keys : IJSIterator;
  38235. function values : IJSIterator;
  38236. class function JSClassName: UnicodeString; override;
  38237. class function Cast(const Intf: IJSObject): IJSRTCStatsReport;
  38238. property size : LongInt read _Getsize;
  38239. end;
  38240. { --------------------------------------------------------------------
  38241. TJSSanitizer
  38242. --------------------------------------------------------------------}
  38243. IJSSanitizer = interface(IJSObject)
  38244. ['{338275EA-C9BB-3775-8FE6-16E5B02AED52}']
  38245. function sanitize(aInput: IJSDocument): IJSDocumentFragment;
  38246. function sanitize(aInput: IJSDocumentFragment): IJSDocumentFragment;
  38247. end;
  38248. TJSSanitizer = class(TJSObject,IJSSanitizer)
  38249. Protected
  38250. Public
  38251. constructor Create(const aSanitizerConfig: TJSSanitizerConfig); overload;
  38252. constructor Create; overload;
  38253. function sanitize(aInput: IJSDocument): IJSDocumentFragment; overload;
  38254. function sanitize(aInput: IJSDocumentFragment): IJSDocumentFragment; overload;
  38255. class function JSClassName: UnicodeString; override;
  38256. class function Cast(const Intf: IJSObject): IJSSanitizer;
  38257. end;
  38258. { --------------------------------------------------------------------
  38259. TJSScreenLuminance
  38260. --------------------------------------------------------------------}
  38261. IJSScreenLuminance = interface(IJSObject)
  38262. ['{69ACF4AD-9D71-36E9-81C6-114013D8E821}']
  38263. function _Getmin: Double;
  38264. function _Getmax: Double;
  38265. function _GetmaxAverage: Double;
  38266. property min: Double read _Getmin;
  38267. property max: Double read _Getmax;
  38268. property maxAverage: Double read _GetmaxAverage;
  38269. end;
  38270. TJSScreenLuminance = class(TJSObject,IJSScreenLuminance)
  38271. Protected
  38272. function _Getmin: Double;
  38273. function _Getmax: Double;
  38274. function _GetmaxAverage: Double;
  38275. Public
  38276. class function JSClassName: UnicodeString; override;
  38277. class function Cast(const Intf: IJSObject): IJSScreenLuminance;
  38278. property min: Double read _Getmin;
  38279. property max: Double read _Getmax;
  38280. property maxAverage: Double read _GetmaxAverage;
  38281. end;
  38282. { --------------------------------------------------------------------
  38283. TJSSelection
  38284. --------------------------------------------------------------------}
  38285. IJSSelection = interface(IJSObject)
  38286. ['{82EF7B15-E7CA-3C2F-B9D8-90AE381834C3}']
  38287. function _GetanchorNode: IJSNode;
  38288. function _GetanchorOffset: Cardinal;
  38289. function _GetfocusNode: IJSNode;
  38290. function _GetfocusOffset: Cardinal;
  38291. function _GetisCollapsed: Boolean;
  38292. function _GetrangeCount: Cardinal;
  38293. function _Gettype_: UnicodeString;
  38294. function _Getdirection: UnicodeString;
  38295. function _GetcaretBidiLevel: SmallInt;
  38296. procedure _SetcaretBidiLevel(const aValue: SmallInt);
  38297. function getRangeAt(aIndex: Cardinal): IJSRange;
  38298. procedure addRange(aRange: IJSRange);
  38299. procedure removeRange(aRange: IJSRange);
  38300. procedure removeAllRanges;
  38301. procedure empty;
  38302. function getComposedRanges(aShadowRoots: IJSShadowRoot): TJSStaticRangeDynArray{; ToDo:varargs};
  38303. procedure collapse(aNode: IJSNode; aOffset: Cardinal);
  38304. procedure collapse(aNode: IJSNode);
  38305. procedure setPosition(aNode: IJSNode; aOffset: Cardinal);
  38306. procedure setPosition(aNode: IJSNode);
  38307. procedure collapseToStart;
  38308. procedure collapseToEnd;
  38309. procedure extend(aNode: IJSNode; aOffset: Cardinal);
  38310. procedure extend(aNode: IJSNode);
  38311. procedure setBaseAndExtent(aAnchorNode: IJSNode; aAnchorOffset: Cardinal; aFocusNode: IJSNode; aFocusOffset: Cardinal);
  38312. procedure selectAllChildren(aNode: IJSNode);
  38313. procedure deleteFromDocument;
  38314. function containsNode(aNode: IJSNode; aAllowPartialContainment: Boolean): Boolean;
  38315. function containsNode(aNode: IJSNode): Boolean;
  38316. function SelectionType: UnicodeString;
  38317. procedure modify(const aAlter: UnicodeString; const aDirection: UnicodeString; const aGranularity: UnicodeString);
  38318. property anchorNode: IJSNode read _GetanchorNode;
  38319. property anchorOffset: Cardinal read _GetanchorOffset;
  38320. property focusNode: IJSNode read _GetfocusNode;
  38321. property focusOffset: Cardinal read _GetfocusOffset;
  38322. property isCollapsed: Boolean read _GetisCollapsed;
  38323. property rangeCount: Cardinal read _GetrangeCount;
  38324. property type_: UnicodeString read _Gettype_;
  38325. property direction: UnicodeString read _Getdirection;
  38326. property caretBidiLevel: SmallInt read _GetcaretBidiLevel write _SetcaretBidiLevel;
  38327. end;
  38328. TJSSelection = class(TJSObject,IJSSelection)
  38329. Protected
  38330. function _GetanchorNode: IJSNode;
  38331. function _GetanchorOffset: Cardinal;
  38332. function _GetfocusNode: IJSNode;
  38333. function _GetfocusOffset: Cardinal;
  38334. function _GetisCollapsed: Boolean;
  38335. function _GetrangeCount: Cardinal;
  38336. function _Gettype_: UnicodeString;
  38337. function _Getdirection: UnicodeString;
  38338. function _GetcaretBidiLevel: SmallInt;
  38339. procedure _SetcaretBidiLevel(const aValue: SmallInt);
  38340. Public
  38341. function getRangeAt(aIndex: Cardinal): IJSRange; overload;
  38342. procedure addRange(aRange: IJSRange); overload;
  38343. procedure removeRange(aRange: IJSRange); overload;
  38344. procedure removeAllRanges; overload;
  38345. procedure empty; overload;
  38346. function getComposedRanges(aShadowRoots: IJSShadowRoot): TJSStaticRangeDynArray{; ToDo:varargs}; overload;
  38347. procedure collapse(aNode: IJSNode; aOffset: Cardinal); overload;
  38348. procedure collapse(aNode: IJSNode); overload;
  38349. procedure setPosition(aNode: IJSNode; aOffset: Cardinal); overload;
  38350. procedure setPosition(aNode: IJSNode); overload;
  38351. procedure collapseToStart; overload;
  38352. procedure collapseToEnd; overload;
  38353. procedure extend(aNode: IJSNode; aOffset: Cardinal); overload;
  38354. procedure extend(aNode: IJSNode); overload;
  38355. procedure setBaseAndExtent(aAnchorNode: IJSNode; aAnchorOffset: Cardinal; aFocusNode: IJSNode; aFocusOffset: Cardinal); overload;
  38356. procedure selectAllChildren(aNode: IJSNode); overload;
  38357. procedure deleteFromDocument; overload;
  38358. function containsNode(aNode: IJSNode; aAllowPartialContainment: Boolean): Boolean; overload;
  38359. function containsNode(aNode: IJSNode): Boolean; overload;
  38360. function SelectionType: UnicodeString; overload;
  38361. procedure modify(const aAlter: UnicodeString; const aDirection: UnicodeString; const aGranularity: UnicodeString); overload;
  38362. class function JSClassName: UnicodeString; override;
  38363. class function Cast(const Intf: IJSObject): IJSSelection;
  38364. property anchorNode: IJSNode read _GetanchorNode;
  38365. property anchorOffset: Cardinal read _GetanchorOffset;
  38366. property focusNode: IJSNode read _GetfocusNode;
  38367. property focusOffset: Cardinal read _GetfocusOffset;
  38368. property isCollapsed: Boolean read _GetisCollapsed;
  38369. property rangeCount: Cardinal read _GetrangeCount;
  38370. property type_: UnicodeString read _Gettype_;
  38371. property direction: UnicodeString read _Getdirection;
  38372. property caretBidiLevel: SmallInt read _GetcaretBidiLevel write _SetcaretBidiLevel;
  38373. end;
  38374. { --------------------------------------------------------------------
  38375. TJSnsISelectionListener
  38376. --------------------------------------------------------------------}
  38377. IJSnsISelectionListener = interface(IJSObject)
  38378. ['{3346BB54-E605-3126-B836-B418312260F0}']
  38379. end;
  38380. TJSnsISelectionListener = class(TJSObject,IJSnsISelectionListener)
  38381. Protected
  38382. Public
  38383. class function JSClassName: UnicodeString; override;
  38384. class function Cast(const Intf: IJSObject): IJSnsISelectionListener;
  38385. end;
  38386. { --------------------------------------------------------------------
  38387. TJSShadowRealmGlobalScope
  38388. --------------------------------------------------------------------}
  38389. IJSShadowRealmGlobalScope = interface(IJSObject)
  38390. ['{D65FAB75-9914-326F-A6F8-1A1B03C2B030}']
  38391. end;
  38392. TJSShadowRealmGlobalScope = class(TJSObject,IJSShadowRealmGlobalScope)
  38393. Protected
  38394. Public
  38395. class function JSClassName: UnicodeString; override;
  38396. class function Cast(const Intf: IJSObject): IJSShadowRealmGlobalScope;
  38397. end;
  38398. { --------------------------------------------------------------------
  38399. TJSSpeechGrammar
  38400. --------------------------------------------------------------------}
  38401. IJSSpeechGrammar = interface(IJSObject)
  38402. ['{60ED3EBD-B34D-3CE3-BA58-571F227FF3EB}']
  38403. function _Getsrc: UnicodeString;
  38404. function _Getweight: Single;
  38405. procedure _Setsrc(const aValue: UnicodeString);
  38406. procedure _Setweight(const aValue: Single);
  38407. property src: UnicodeString read _Getsrc write _Setsrc;
  38408. property weight: Single read _Getweight write _Setweight;
  38409. end;
  38410. TJSSpeechGrammar = class(TJSObject,IJSSpeechGrammar)
  38411. Protected
  38412. function _Getsrc: UnicodeString;
  38413. function _Getweight: Single;
  38414. procedure _Setsrc(const aValue: UnicodeString);
  38415. procedure _Setweight(const aValue: Single);
  38416. Public
  38417. constructor Create; overload;
  38418. class function JSClassName: UnicodeString; override;
  38419. class function Cast(const Intf: IJSObject): IJSSpeechGrammar;
  38420. property src: UnicodeString read _Getsrc write _Setsrc;
  38421. property weight: Single read _Getweight write _Setweight;
  38422. end;
  38423. { --------------------------------------------------------------------
  38424. TJSSpeechGrammarList
  38425. --------------------------------------------------------------------}
  38426. IJSSpeechGrammarList = interface(IJSObject)
  38427. ['{6931F160-8C9D-38CE-80AD-574DFE4D55E3}']
  38428. function _Getlength_: Cardinal;
  38429. function item(aIndex: Cardinal): IJSSpeechGrammar;
  38430. procedure addFromURI(const aSrc: UnicodeString; aWeight: Single);
  38431. procedure addFromURI(const aSrc: UnicodeString);
  38432. procedure addFromString(const aString_: UnicodeString; aWeight: Single);
  38433. procedure addFromString(const aString_: UnicodeString);
  38434. property length_: Cardinal read _Getlength_;
  38435. end;
  38436. TJSSpeechGrammarList = class(TJSObject,IJSSpeechGrammarList)
  38437. Protected
  38438. function _Getlength_: Cardinal;
  38439. Public
  38440. constructor Create; overload;
  38441. function item(aIndex: Cardinal): IJSSpeechGrammar; overload;
  38442. procedure addFromURI(const aSrc: UnicodeString; aWeight: Single); overload;
  38443. procedure addFromURI(const aSrc: UnicodeString); overload;
  38444. procedure addFromString(const aString_: UnicodeString; aWeight: Single); overload;
  38445. procedure addFromString(const aString_: UnicodeString); overload;
  38446. class function JSClassName: UnicodeString; override;
  38447. class function Cast(const Intf: IJSObject): IJSSpeechGrammarList;
  38448. property length_: Cardinal read _Getlength_;
  38449. end;
  38450. { --------------------------------------------------------------------
  38451. TJSSpeechRecognitionAlternative
  38452. --------------------------------------------------------------------}
  38453. IJSSpeechRecognitionAlternative = interface(IJSObject)
  38454. ['{E51BDD80-5707-39D3-9818-5C90466AFB42}']
  38455. function _Gettranscript: UnicodeString;
  38456. function _Getconfidence: Single;
  38457. property transcript: UnicodeString read _Gettranscript;
  38458. property confidence: Single read _Getconfidence;
  38459. end;
  38460. TJSSpeechRecognitionAlternative = class(TJSObject,IJSSpeechRecognitionAlternative)
  38461. Protected
  38462. function _Gettranscript: UnicodeString;
  38463. function _Getconfidence: Single;
  38464. Public
  38465. class function JSClassName: UnicodeString; override;
  38466. class function Cast(const Intf: IJSObject): IJSSpeechRecognitionAlternative;
  38467. property transcript: UnicodeString read _Gettranscript;
  38468. property confidence: Single read _Getconfidence;
  38469. end;
  38470. { --------------------------------------------------------------------
  38471. TJSSpeechRecognitionResult
  38472. --------------------------------------------------------------------}
  38473. IJSSpeechRecognitionResult = interface(IJSObject)
  38474. ['{0D653590-689F-3BE1-B8DC-E81B76EF4B86}']
  38475. function _Getlength_: Cardinal;
  38476. function _GetisFinal: Boolean;
  38477. function item(aIndex: Cardinal): IJSSpeechRecognitionAlternative;
  38478. property length_: Cardinal read _Getlength_;
  38479. property isFinal: Boolean read _GetisFinal;
  38480. end;
  38481. TJSSpeechRecognitionResult = class(TJSObject,IJSSpeechRecognitionResult)
  38482. Protected
  38483. function _Getlength_: Cardinal;
  38484. function _GetisFinal: Boolean;
  38485. Public
  38486. function item(aIndex: Cardinal): IJSSpeechRecognitionAlternative; overload;
  38487. class function JSClassName: UnicodeString; override;
  38488. class function Cast(const Intf: IJSObject): IJSSpeechRecognitionResult;
  38489. property length_: Cardinal read _Getlength_;
  38490. property isFinal: Boolean read _GetisFinal;
  38491. end;
  38492. { --------------------------------------------------------------------
  38493. TJSSpeechRecognitionResultList
  38494. --------------------------------------------------------------------}
  38495. IJSSpeechRecognitionResultList = interface(IJSObject)
  38496. ['{1651A596-3A6D-34E2-84D5-D5B2E66D48C1}']
  38497. function _Getlength_: Cardinal;
  38498. function item(aIndex: Cardinal): IJSSpeechRecognitionResult;
  38499. property length_: Cardinal read _Getlength_;
  38500. end;
  38501. TJSSpeechRecognitionResultList = class(TJSObject,IJSSpeechRecognitionResultList)
  38502. Protected
  38503. function _Getlength_: Cardinal;
  38504. Public
  38505. function item(aIndex: Cardinal): IJSSpeechRecognitionResult; overload;
  38506. class function JSClassName: UnicodeString; override;
  38507. class function Cast(const Intf: IJSObject): IJSSpeechRecognitionResultList;
  38508. property length_: Cardinal read _Getlength_;
  38509. end;
  38510. { --------------------------------------------------------------------
  38511. TJSSpeechSynthesisVoice
  38512. --------------------------------------------------------------------}
  38513. IJSSpeechSynthesisVoice = interface(IJSObject)
  38514. ['{E0A90C74-129E-3D39-B861-D0FE505A204D}']
  38515. function _GetvoiceURI: UnicodeString;
  38516. function _Getname: UnicodeString;
  38517. function _Getlang: UnicodeString;
  38518. function _GetlocalService: Boolean;
  38519. function _Getdefault: Boolean;
  38520. property voiceURI: UnicodeString read _GetvoiceURI;
  38521. property name: UnicodeString read _Getname;
  38522. property lang: UnicodeString read _Getlang;
  38523. property localService: Boolean read _GetlocalService;
  38524. property default: Boolean read _Getdefault;
  38525. end;
  38526. TJSSpeechSynthesisVoice = class(TJSObject,IJSSpeechSynthesisVoice)
  38527. Protected
  38528. function _GetvoiceURI: UnicodeString;
  38529. function _Getname: UnicodeString;
  38530. function _Getlang: UnicodeString;
  38531. function _GetlocalService: Boolean;
  38532. function _Getdefault: Boolean;
  38533. Public
  38534. class function JSClassName: UnicodeString; override;
  38535. class function Cast(const Intf: IJSObject): IJSSpeechSynthesisVoice;
  38536. property voiceURI: UnicodeString read _GetvoiceURI;
  38537. property name: UnicodeString read _Getname;
  38538. property lang: UnicodeString read _Getlang;
  38539. property localService: Boolean read _GetlocalService;
  38540. property default: Boolean read _Getdefault;
  38541. end;
  38542. { --------------------------------------------------------------------
  38543. TJSStorage
  38544. --------------------------------------------------------------------}
  38545. IJSStorage = interface(IJSObject)
  38546. ['{0509C647-1744-3B87-980B-382DC71D1F46}']
  38547. function _Getlength_: Cardinal;
  38548. function _GethasSnapshot: Boolean;
  38549. function _GetsnapshotUsage: Int64;
  38550. function key(aIndex: Cardinal): UnicodeString;
  38551. function getItem(const aKey: UnicodeString): UnicodeString;
  38552. procedure setItem(const aKey: UnicodeString; const aValue: UnicodeString);
  38553. procedure removeItem(const aKey: UnicodeString);
  38554. procedure clear;
  38555. procedure open;
  38556. procedure close;
  38557. procedure beginExplicitSnapshot;
  38558. procedure checkpointExplicitSnapshot;
  38559. procedure endExplicitSnapshot;
  38560. property length_: Cardinal read _Getlength_;
  38561. property hasSnapshot: Boolean read _GethasSnapshot;
  38562. property snapshotUsage: Int64 read _GetsnapshotUsage;
  38563. end;
  38564. TJSStorage = class(TJSObject,IJSStorage)
  38565. Protected
  38566. function _Getlength_: Cardinal;
  38567. function _GethasSnapshot: Boolean;
  38568. function _GetsnapshotUsage: Int64;
  38569. Public
  38570. function key(aIndex: Cardinal): UnicodeString; overload;
  38571. function getItem(const aKey: UnicodeString): UnicodeString; overload;
  38572. procedure setItem(const aKey: UnicodeString; const aValue: UnicodeString); overload;
  38573. procedure removeItem(const aKey: UnicodeString); overload;
  38574. procedure clear; overload;
  38575. procedure open; overload;
  38576. procedure close; overload;
  38577. procedure beginExplicitSnapshot; overload;
  38578. procedure checkpointExplicitSnapshot; overload;
  38579. procedure endExplicitSnapshot; overload;
  38580. class function JSClassName: UnicodeString; override;
  38581. class function Cast(const Intf: IJSObject): IJSStorage;
  38582. property length_: Cardinal read _Getlength_;
  38583. property hasSnapshot: Boolean read _GethasSnapshot;
  38584. property snapshotUsage: Int64 read _GetsnapshotUsage;
  38585. end;
  38586. { --------------------------------------------------------------------
  38587. TJSStorageManager
  38588. --------------------------------------------------------------------}
  38589. IJSStorageManager = interface(IJSObject)
  38590. ['{A0CBA7C9-15B0-3882-92DB-CE4191E0C9AC}']
  38591. function persisted: IJSPromise; // Promise<boolean>
  38592. function persist: IJSPromise; // Promise<boolean>
  38593. function estimate: IJSPromise; // Promise<StorageEstimate>
  38594. function getDirectory: IJSPromise; // Promise<FileSystemDirectoryHandle>
  38595. end;
  38596. TJSStorageManager = class(TJSObject,IJSStorageManager)
  38597. Protected
  38598. Public
  38599. function persisted: IJSPromise; overload; // Promise<boolean>
  38600. function persist: IJSPromise; overload; // Promise<boolean>
  38601. function estimate: IJSPromise; overload; // Promise<StorageEstimate>
  38602. function getDirectory: IJSPromise; overload; // Promise<FileSystemDirectoryHandle>
  38603. class function JSClassName: UnicodeString; override;
  38604. class function Cast(const Intf: IJSObject): IJSStorageManager;
  38605. end;
  38606. { --------------------------------------------------------------------
  38607. TJSStructuredCloneTester
  38608. --------------------------------------------------------------------}
  38609. IJSStructuredCloneTester = interface(IJSObject)
  38610. ['{65F0EB3C-551F-3072-BD4B-7610CA31BCDA}']
  38611. function _Getserializable: Boolean;
  38612. function _Getdeserializable: Boolean;
  38613. property serializable: Boolean read _Getserializable;
  38614. property deserializable: Boolean read _Getdeserializable;
  38615. end;
  38616. TJSStructuredCloneTester = class(TJSObject,IJSStructuredCloneTester)
  38617. Protected
  38618. function _Getserializable: Boolean;
  38619. function _Getdeserializable: Boolean;
  38620. Public
  38621. constructor Create(aSerializable: Boolean; aDeserializable: Boolean); overload;
  38622. class function JSClassName: UnicodeString; override;
  38623. class function Cast(const Intf: IJSObject): IJSStructuredCloneTester;
  38624. property serializable: Boolean read _Getserializable;
  38625. property deserializable: Boolean read _Getdeserializable;
  38626. end;
  38627. { --------------------------------------------------------------------
  38628. TJSStyleSheet
  38629. --------------------------------------------------------------------}
  38630. IJSStyleSheet = interface(IJSObject)
  38631. ['{EFFC4E62-072E-3DD0-93AB-191D7D688320}']
  38632. function _Gettype_: UnicodeString;
  38633. function _Gethref: UnicodeString;
  38634. function _GetownerNode: IJSNode;
  38635. function _GetparentStyleSheet: IJSStyleSheet;
  38636. function _Gettitle: UnicodeString;
  38637. function _Getmedia: IJSMediaList;
  38638. function _Getdisabled: Boolean;
  38639. procedure _Setdisabled(const aValue: Boolean);
  38640. property type_: UnicodeString read _Gettype_;
  38641. property href: UnicodeString read _Gethref;
  38642. property ownerNode: IJSNode read _GetownerNode;
  38643. property parentStyleSheet: IJSStyleSheet read _GetparentStyleSheet;
  38644. property title: UnicodeString read _Gettitle;
  38645. property media: IJSMediaList read _Getmedia;
  38646. property disabled: Boolean read _Getdisabled write _Setdisabled;
  38647. end;
  38648. TJSStyleSheet = class(TJSObject,IJSStyleSheet)
  38649. Protected
  38650. function _Gettype_: UnicodeString;
  38651. function _Gethref: UnicodeString;
  38652. function _GetownerNode: IJSNode;
  38653. function _GetparentStyleSheet: IJSStyleSheet;
  38654. function _Gettitle: UnicodeString;
  38655. function _Getmedia: IJSMediaList;
  38656. function _Getdisabled: Boolean;
  38657. procedure _Setdisabled(const aValue: Boolean);
  38658. Public
  38659. class function JSClassName: UnicodeString; override;
  38660. class function Cast(const Intf: IJSObject): IJSStyleSheet;
  38661. property type_: UnicodeString read _Gettype_;
  38662. property href: UnicodeString read _Gethref;
  38663. property ownerNode: IJSNode read _GetownerNode;
  38664. property parentStyleSheet: IJSStyleSheet read _GetparentStyleSheet;
  38665. property title: UnicodeString read _Gettitle;
  38666. property media: IJSMediaList read _Getmedia;
  38667. property disabled: Boolean read _Getdisabled write _Setdisabled;
  38668. end;
  38669. { --------------------------------------------------------------------
  38670. TJSStyleSheetList
  38671. --------------------------------------------------------------------}
  38672. IJSStyleSheetList = interface(IJSObject)
  38673. ['{1684A20D-A650-3710-BA4C-81EE6D3229FE}']
  38674. function _Getlength_: Cardinal;
  38675. function item(aIndex: Cardinal): IJSCSSStyleSheet;
  38676. property length_: Cardinal read _Getlength_;
  38677. end;
  38678. TJSStyleSheetList = class(TJSObject,IJSStyleSheetList)
  38679. Protected
  38680. function _Getlength_: Cardinal;
  38681. Public
  38682. function item(aIndex: Cardinal): IJSCSSStyleSheet; overload;
  38683. class function JSClassName: UnicodeString; override;
  38684. class function Cast(const Intf: IJSObject): IJSStyleSheetList;
  38685. property length_: Cardinal read _Getlength_;
  38686. end;
  38687. { --------------------------------------------------------------------
  38688. TJSCryptoKey
  38689. --------------------------------------------------------------------}
  38690. TKeyUsageDynArray = IJSArray; // array of KeyUsage
  38691. IJSCryptoKey = interface(IJSObject)
  38692. ['{38C9DD44-BAE3-3C8E-AAD2-8446B4CBF07E}']
  38693. function _Gettype_: TKeyType;
  38694. function _Getextractable: Boolean;
  38695. function _Getalgorithm: IJSObject;
  38696. function _Getusages: TKeyUsageDynArray;
  38697. property type_: TKeyType read _Gettype_;
  38698. property extractable: Boolean read _Getextractable;
  38699. property algorithm: IJSObject read _Getalgorithm;
  38700. property usages: TKeyUsageDynArray read _Getusages;
  38701. end;
  38702. TJSCryptoKey = class(TJSObject,IJSCryptoKey)
  38703. Protected
  38704. function _Gettype_: TKeyType;
  38705. function _Getextractable: Boolean;
  38706. function _Getalgorithm: IJSObject;
  38707. function _Getusages: TKeyUsageDynArray;
  38708. Public
  38709. class function JSClassName: UnicodeString; override;
  38710. class function Cast(const Intf: IJSObject): IJSCryptoKey;
  38711. property type_: TKeyType read _Gettype_;
  38712. property extractable: Boolean read _Getextractable;
  38713. property algorithm: IJSObject read _Getalgorithm;
  38714. property usages: TKeyUsageDynArray read _Getusages;
  38715. end;
  38716. { --------------------------------------------------------------------
  38717. TJSSubtleCrypto
  38718. --------------------------------------------------------------------}
  38719. IJSSubtleCrypto = interface(IJSObject)
  38720. ['{00AF14C9-77EF-303A-A24F-F6939D666628}']
  38721. function encrypt(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  38722. function encrypt(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  38723. function decrypt(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  38724. function decrypt(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  38725. function sign(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  38726. function sign(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  38727. function verify(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aSignature: IJSBufferSource; aData: IJSBufferSource): IJSPromise; // Promise<any>
  38728. function verify(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aSignature: IJSBufferSource; aData: IJSBufferSource): IJSPromise; // Promise<any>
  38729. function digest(const aAlgorithm: UnicodeString; aData: IJSBufferSource): IJSPromise; // Promise<any>
  38730. function digest(aAlgorithm: IJSObject; aData: IJSBufferSource): IJSPromise; // Promise<any>
  38731. function generateKey(const aAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38732. function generateKey(aAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38733. function deriveKey(const aAlgorithm: UnicodeString; aBaseKey: IJSCryptoKey; const aDerivedKeyType: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38734. function deriveKey(aAlgorithm: IJSObject; aBaseKey: IJSCryptoKey; const aDerivedKeyType: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38735. function deriveKey(aAlgorithm: IJSObject; aBaseKey: IJSCryptoKey; aDerivedKeyType: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38736. function deriveKey(const aAlgorithm: UnicodeString; aBaseKey: IJSCryptoKey; aDerivedKeyType: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38737. function deriveBits(const aAlgorithm: UnicodeString; aBaseKey: IJSCryptoKey; aLength_: Cardinal): IJSPromise; // Promise<any>
  38738. function deriveBits(aAlgorithm: IJSObject; aBaseKey: IJSCryptoKey; aLength_: Cardinal): IJSPromise; // Promise<any>
  38739. function importKey(const aFormat: TKeyFormat; aKeyData: IJSObject; const aAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38740. function importKey(const aFormat: TKeyFormat; aKeyData: IJSObject; aAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38741. function exportKey(const aFormat: TKeyFormat; aKey: IJSCryptoKey): IJSPromise; // Promise<any>
  38742. function wrapKey(const aFormat: TKeyFormat; aKey: IJSCryptoKey; aWrappingKey: IJSCryptoKey; const aWrapAlgorithm: UnicodeString): IJSPromise; // Promise<any>
  38743. function wrapKey(const aFormat: TKeyFormat; aKey: IJSCryptoKey; aWrappingKey: IJSCryptoKey; aWrapAlgorithm: IJSObject): IJSPromise; // Promise<any>
  38744. function unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; const aUnwrapAlgorithm: UnicodeString; const aUnwrappedKeyAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38745. function unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; aUnwrapAlgorithm: IJSObject; const aUnwrappedKeyAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38746. function unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; aUnwrapAlgorithm: IJSObject; aUnwrappedKeyAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38747. function unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; const aUnwrapAlgorithm: UnicodeString; aUnwrappedKeyAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  38748. end;
  38749. TJSSubtleCrypto = class(TJSObject,IJSSubtleCrypto)
  38750. Protected
  38751. Public
  38752. function encrypt(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; overload; // Promise<any>
  38753. function encrypt(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; overload; // Promise<any>
  38754. function decrypt(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; overload; // Promise<any>
  38755. function decrypt(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; overload; // Promise<any>
  38756. function sign(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; overload; // Promise<any>
  38757. function sign(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; overload; // Promise<any>
  38758. function verify(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aSignature: IJSBufferSource; aData: IJSBufferSource): IJSPromise; overload; // Promise<any>
  38759. function verify(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aSignature: IJSBufferSource; aData: IJSBufferSource): IJSPromise; overload; // Promise<any>
  38760. function digest(const aAlgorithm: UnicodeString; aData: IJSBufferSource): IJSPromise; overload; // Promise<any>
  38761. function digest(aAlgorithm: IJSObject; aData: IJSBufferSource): IJSPromise; overload; // Promise<any>
  38762. function generateKey(const aAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38763. function generateKey(aAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38764. function deriveKey(const aAlgorithm: UnicodeString; aBaseKey: IJSCryptoKey; const aDerivedKeyType: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38765. function deriveKey(aAlgorithm: IJSObject; aBaseKey: IJSCryptoKey; const aDerivedKeyType: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38766. function deriveKey(aAlgorithm: IJSObject; aBaseKey: IJSCryptoKey; aDerivedKeyType: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38767. function deriveKey(const aAlgorithm: UnicodeString; aBaseKey: IJSCryptoKey; aDerivedKeyType: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38768. function deriveBits(const aAlgorithm: UnicodeString; aBaseKey: IJSCryptoKey; aLength_: Cardinal): IJSPromise; overload; // Promise<any>
  38769. function deriveBits(aAlgorithm: IJSObject; aBaseKey: IJSCryptoKey; aLength_: Cardinal): IJSPromise; overload; // Promise<any>
  38770. function importKey(const aFormat: TKeyFormat; aKeyData: IJSObject; const aAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38771. function importKey(const aFormat: TKeyFormat; aKeyData: IJSObject; aAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38772. function exportKey(const aFormat: TKeyFormat; aKey: IJSCryptoKey): IJSPromise; overload; // Promise<any>
  38773. function wrapKey(const aFormat: TKeyFormat; aKey: IJSCryptoKey; aWrappingKey: IJSCryptoKey; const aWrapAlgorithm: UnicodeString): IJSPromise; overload; // Promise<any>
  38774. function wrapKey(const aFormat: TKeyFormat; aKey: IJSCryptoKey; aWrappingKey: IJSCryptoKey; aWrapAlgorithm: IJSObject): IJSPromise; overload; // Promise<any>
  38775. function unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; const aUnwrapAlgorithm: UnicodeString; const aUnwrappedKeyAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38776. function unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; aUnwrapAlgorithm: IJSObject; const aUnwrappedKeyAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38777. function unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; aUnwrapAlgorithm: IJSObject; aUnwrappedKeyAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38778. function unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; const aUnwrapAlgorithm: UnicodeString; aUnwrappedKeyAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; overload; // Promise<any>
  38779. class function JSClassName: UnicodeString; override;
  38780. class function Cast(const Intf: IJSObject): IJSSubtleCrypto;
  38781. end;
  38782. { --------------------------------------------------------------------
  38783. TJSSVGAngle
  38784. --------------------------------------------------------------------}
  38785. IJSSVGAngle = interface(IJSObject)
  38786. ['{AEC0E62A-5272-38D5-9C79-C30B0F93F235}']
  38787. function _GetunitType: Word;
  38788. function _Getvalue: Single;
  38789. function _GetvalueInSpecifiedUnits: Single;
  38790. function _GetvalueAsString: UnicodeString;
  38791. procedure _Setvalue(const aValue: Single);
  38792. procedure _SetvalueInSpecifiedUnits(const aValue: Single);
  38793. procedure _SetvalueAsString(const aValue: UnicodeString);
  38794. procedure newValueSpecifiedUnits(aUnitType: Word; aValueInSpecifiedUnits: Single);
  38795. procedure convertToSpecifiedUnits(aUnitType: Word);
  38796. property unitType: Word read _GetunitType;
  38797. property value: Single read _Getvalue write _Setvalue;
  38798. property valueInSpecifiedUnits: Single read _GetvalueInSpecifiedUnits write _SetvalueInSpecifiedUnits;
  38799. property valueAsString: UnicodeString read _GetvalueAsString write _SetvalueAsString;
  38800. end;
  38801. TJSSVGAngle = class(TJSObject,IJSSVGAngle)
  38802. Protected
  38803. function _GetunitType: Word;
  38804. function _Getvalue: Single;
  38805. function _GetvalueInSpecifiedUnits: Single;
  38806. function _GetvalueAsString: UnicodeString;
  38807. procedure _Setvalue(const aValue: Single);
  38808. procedure _SetvalueInSpecifiedUnits(const aValue: Single);
  38809. procedure _SetvalueAsString(const aValue: UnicodeString);
  38810. Public
  38811. Const
  38812. SVG_ANGLETYPE_UNKNOWN = 0;
  38813. SVG_ANGLETYPE_UNSPECIFIED = 1;
  38814. SVG_ANGLETYPE_DEG = 2;
  38815. SVG_ANGLETYPE_RAD = 3;
  38816. SVG_ANGLETYPE_GRAD = 4;
  38817. Public
  38818. procedure newValueSpecifiedUnits(aUnitType: Word; aValueInSpecifiedUnits: Single); overload;
  38819. procedure convertToSpecifiedUnits(aUnitType: Word); overload;
  38820. class function JSClassName: UnicodeString; override;
  38821. class function Cast(const Intf: IJSObject): IJSSVGAngle;
  38822. property unitType: Word read _GetunitType;
  38823. property value: Single read _Getvalue write _Setvalue;
  38824. property valueInSpecifiedUnits: Single read _GetvalueInSpecifiedUnits write _SetvalueInSpecifiedUnits;
  38825. property valueAsString: UnicodeString read _GetvalueAsString write _SetvalueAsString;
  38826. end;
  38827. { --------------------------------------------------------------------
  38828. TJSSVGAnimatedAngle
  38829. --------------------------------------------------------------------}
  38830. IJSSVGAnimatedAngle = interface(IJSObject)
  38831. ['{CE9C9476-86F3-3EB9-9881-CB136ABDABC7}']
  38832. function _GetbaseVal: IJSSVGAngle;
  38833. function _GetanimVal: IJSSVGAngle;
  38834. property baseVal: IJSSVGAngle read _GetbaseVal;
  38835. property animVal: IJSSVGAngle read _GetanimVal;
  38836. end;
  38837. TJSSVGAnimatedAngle = class(TJSObject,IJSSVGAnimatedAngle)
  38838. Protected
  38839. function _GetbaseVal: IJSSVGAngle;
  38840. function _GetanimVal: IJSSVGAngle;
  38841. Public
  38842. class function JSClassName: UnicodeString; override;
  38843. class function Cast(const Intf: IJSObject): IJSSVGAnimatedAngle;
  38844. property baseVal: IJSSVGAngle read _GetbaseVal;
  38845. property animVal: IJSSVGAngle read _GetanimVal;
  38846. end;
  38847. { --------------------------------------------------------------------
  38848. TJSSVGAnimatedBoolean
  38849. --------------------------------------------------------------------}
  38850. IJSSVGAnimatedBoolean = interface(IJSObject)
  38851. ['{0EA9AE3A-9140-3EDB-B4E2-846AB2A8F39C}']
  38852. function _GetbaseVal: Boolean;
  38853. function _GetanimVal: Boolean;
  38854. procedure _SetbaseVal(const aValue: Boolean);
  38855. property baseVal: Boolean read _GetbaseVal write _SetbaseVal;
  38856. property animVal: Boolean read _GetanimVal;
  38857. end;
  38858. TJSSVGAnimatedBoolean = class(TJSObject,IJSSVGAnimatedBoolean)
  38859. Protected
  38860. function _GetbaseVal: Boolean;
  38861. function _GetanimVal: Boolean;
  38862. procedure _SetbaseVal(const aValue: Boolean);
  38863. Public
  38864. class function JSClassName: UnicodeString; override;
  38865. class function Cast(const Intf: IJSObject): IJSSVGAnimatedBoolean;
  38866. property baseVal: Boolean read _GetbaseVal write _SetbaseVal;
  38867. property animVal: Boolean read _GetanimVal;
  38868. end;
  38869. { --------------------------------------------------------------------
  38870. TJSSVGAnimatedEnumeration
  38871. --------------------------------------------------------------------}
  38872. IJSSVGAnimatedEnumeration = interface(IJSObject)
  38873. ['{CE2AAF9A-0DEE-3111-AFB9-082D1E7F43A4}']
  38874. function _GetbaseVal: Word;
  38875. function _GetanimVal: Word;
  38876. procedure _SetbaseVal(const aValue: Word);
  38877. property baseVal: Word read _GetbaseVal write _SetbaseVal;
  38878. property animVal: Word read _GetanimVal;
  38879. end;
  38880. TJSSVGAnimatedEnumeration = class(TJSObject,IJSSVGAnimatedEnumeration)
  38881. Protected
  38882. function _GetbaseVal: Word;
  38883. function _GetanimVal: Word;
  38884. procedure _SetbaseVal(const aValue: Word);
  38885. Public
  38886. class function JSClassName: UnicodeString; override;
  38887. class function Cast(const Intf: IJSObject): IJSSVGAnimatedEnumeration;
  38888. property baseVal: Word read _GetbaseVal write _SetbaseVal;
  38889. property animVal: Word read _GetanimVal;
  38890. end;
  38891. { --------------------------------------------------------------------
  38892. TJSSVGAnimatedInteger
  38893. --------------------------------------------------------------------}
  38894. IJSSVGAnimatedInteger = interface(IJSObject)
  38895. ['{0EAAEE31-DF4A-3A30-A64A-5BFF25152355}']
  38896. function _GetbaseVal: LongInt;
  38897. function _GetanimVal: LongInt;
  38898. procedure _SetbaseVal(const aValue: LongInt);
  38899. property baseVal: LongInt read _GetbaseVal write _SetbaseVal;
  38900. property animVal: LongInt read _GetanimVal;
  38901. end;
  38902. TJSSVGAnimatedInteger = class(TJSObject,IJSSVGAnimatedInteger)
  38903. Protected
  38904. function _GetbaseVal: LongInt;
  38905. function _GetanimVal: LongInt;
  38906. procedure _SetbaseVal(const aValue: LongInt);
  38907. Public
  38908. class function JSClassName: UnicodeString; override;
  38909. class function Cast(const Intf: IJSObject): IJSSVGAnimatedInteger;
  38910. property baseVal: LongInt read _GetbaseVal write _SetbaseVal;
  38911. property animVal: LongInt read _GetanimVal;
  38912. end;
  38913. { --------------------------------------------------------------------
  38914. TJSSVGAnimatedLength
  38915. --------------------------------------------------------------------}
  38916. IJSSVGAnimatedLength = interface(IJSObject)
  38917. ['{B3BDF263-02E6-3669-A2AA-6FBBB5E3465C}']
  38918. function _GetbaseVal: IJSSVGLength;
  38919. function _GetanimVal: IJSSVGLength;
  38920. property baseVal: IJSSVGLength read _GetbaseVal;
  38921. property animVal: IJSSVGLength read _GetanimVal;
  38922. end;
  38923. TJSSVGAnimatedLength = class(TJSObject,IJSSVGAnimatedLength)
  38924. Protected
  38925. function _GetbaseVal: IJSSVGLength;
  38926. function _GetanimVal: IJSSVGLength;
  38927. Public
  38928. class function JSClassName: UnicodeString; override;
  38929. class function Cast(const Intf: IJSObject): IJSSVGAnimatedLength;
  38930. property baseVal: IJSSVGLength read _GetbaseVal;
  38931. property animVal: IJSSVGLength read _GetanimVal;
  38932. end;
  38933. { --------------------------------------------------------------------
  38934. TJSSVGAnimatedLengthList
  38935. --------------------------------------------------------------------}
  38936. IJSSVGAnimatedLengthList = interface(IJSObject)
  38937. ['{DF698479-CDAF-3740-9355-AC86DD23DBC3}']
  38938. function _GetbaseVal: IJSSVGLengthList;
  38939. function _GetanimVal: IJSSVGLengthList;
  38940. property baseVal: IJSSVGLengthList read _GetbaseVal;
  38941. property animVal: IJSSVGLengthList read _GetanimVal;
  38942. end;
  38943. TJSSVGAnimatedLengthList = class(TJSObject,IJSSVGAnimatedLengthList)
  38944. Protected
  38945. function _GetbaseVal: IJSSVGLengthList;
  38946. function _GetanimVal: IJSSVGLengthList;
  38947. Public
  38948. class function JSClassName: UnicodeString; override;
  38949. class function Cast(const Intf: IJSObject): IJSSVGAnimatedLengthList;
  38950. property baseVal: IJSSVGLengthList read _GetbaseVal;
  38951. property animVal: IJSSVGLengthList read _GetanimVal;
  38952. end;
  38953. { --------------------------------------------------------------------
  38954. TJSSVGAnimatedNumber
  38955. --------------------------------------------------------------------}
  38956. IJSSVGAnimatedNumber = interface(IJSObject)
  38957. ['{0824DA0E-3E8C-397D-A1E5-6BEF5621E7D5}']
  38958. function _GetbaseVal: Single;
  38959. function _GetanimVal: Single;
  38960. procedure _SetbaseVal(const aValue: Single);
  38961. property baseVal: Single read _GetbaseVal write _SetbaseVal;
  38962. property animVal: Single read _GetanimVal;
  38963. end;
  38964. TJSSVGAnimatedNumber = class(TJSObject,IJSSVGAnimatedNumber)
  38965. Protected
  38966. function _GetbaseVal: Single;
  38967. function _GetanimVal: Single;
  38968. procedure _SetbaseVal(const aValue: Single);
  38969. Public
  38970. class function JSClassName: UnicodeString; override;
  38971. class function Cast(const Intf: IJSObject): IJSSVGAnimatedNumber;
  38972. property baseVal: Single read _GetbaseVal write _SetbaseVal;
  38973. property animVal: Single read _GetanimVal;
  38974. end;
  38975. { --------------------------------------------------------------------
  38976. TJSSVGAnimatedNumberList
  38977. --------------------------------------------------------------------}
  38978. IJSSVGAnimatedNumberList = interface(IJSObject)
  38979. ['{DF69847E-CC1A-311C-9F25-A4287D23DBC3}']
  38980. function _GetbaseVal: IJSSVGNumberList;
  38981. function _GetanimVal: IJSSVGNumberList;
  38982. property baseVal: IJSSVGNumberList read _GetbaseVal;
  38983. property animVal: IJSSVGNumberList read _GetanimVal;
  38984. end;
  38985. TJSSVGAnimatedNumberList = class(TJSObject,IJSSVGAnimatedNumberList)
  38986. Protected
  38987. function _GetbaseVal: IJSSVGNumberList;
  38988. function _GetanimVal: IJSSVGNumberList;
  38989. Public
  38990. class function JSClassName: UnicodeString; override;
  38991. class function Cast(const Intf: IJSObject): IJSSVGAnimatedNumberList;
  38992. property baseVal: IJSSVGNumberList read _GetbaseVal;
  38993. property animVal: IJSSVGNumberList read _GetanimVal;
  38994. end;
  38995. { --------------------------------------------------------------------
  38996. TJSSVGAnimatedPathData
  38997. --------------------------------------------------------------------}
  38998. IJSSVGAnimatedPathData = interface(IJSObject)
  38999. ['{8B4B5790-DF05-39FB-AAAD-14BE2DECE717}']
  39000. function _GetpathSegList: IJSSVGPathSegList;
  39001. function _GetanimatedPathSegList: IJSSVGPathSegList;
  39002. property pathSegList: IJSSVGPathSegList read _GetpathSegList;
  39003. property animatedPathSegList: IJSSVGPathSegList read _GetanimatedPathSegList;
  39004. end;
  39005. TJSSVGAnimatedPathData = class(TJSObject,IJSSVGAnimatedPathData)
  39006. Protected
  39007. function _GetpathSegList: IJSSVGPathSegList;
  39008. function _GetanimatedPathSegList: IJSSVGPathSegList;
  39009. Public
  39010. class function JSClassName: UnicodeString; override;
  39011. class function Cast(const Intf: IJSObject): IJSSVGAnimatedPathData;
  39012. property pathSegList: IJSSVGPathSegList read _GetpathSegList;
  39013. property animatedPathSegList: IJSSVGPathSegList read _GetanimatedPathSegList;
  39014. end;
  39015. { --------------------------------------------------------------------
  39016. TJSSVGAnimatedPoints
  39017. --------------------------------------------------------------------}
  39018. IJSSVGAnimatedPoints = interface(IJSObject)
  39019. ['{8C66E189-0037-3531-BF07-1EF8A69DCE82}']
  39020. function _Getpoints: IJSSVGPointList;
  39021. function _GetanimatedPoints: IJSSVGPointList;
  39022. property points: IJSSVGPointList read _Getpoints;
  39023. property animatedPoints: IJSSVGPointList read _GetanimatedPoints;
  39024. end;
  39025. TJSSVGAnimatedPoints = class(TJSObject,IJSSVGAnimatedPoints)
  39026. Protected
  39027. function _Getpoints: IJSSVGPointList;
  39028. function _GetanimatedPoints: IJSSVGPointList;
  39029. Public
  39030. class function JSClassName: UnicodeString; override;
  39031. class function Cast(const Intf: IJSObject): IJSSVGAnimatedPoints;
  39032. property points: IJSSVGPointList read _Getpoints;
  39033. property animatedPoints: IJSSVGPointList read _GetanimatedPoints;
  39034. end;
  39035. { --------------------------------------------------------------------
  39036. TJSSVGAnimatedPreserveAspectRatio
  39037. --------------------------------------------------------------------}
  39038. IJSSVGAnimatedPreserveAspectRatio = interface(IJSObject)
  39039. ['{E0C44995-82B5-30FB-805A-D44D0E27028B}']
  39040. function _GetbaseVal: IJSSVGPreserveAspectRatio;
  39041. function _GetanimVal: IJSSVGPreserveAspectRatio;
  39042. property baseVal: IJSSVGPreserveAspectRatio read _GetbaseVal;
  39043. property animVal: IJSSVGPreserveAspectRatio read _GetanimVal;
  39044. end;
  39045. TJSSVGAnimatedPreserveAspectRatio = class(TJSObject,IJSSVGAnimatedPreserveAspectRatio)
  39046. Protected
  39047. function _GetbaseVal: IJSSVGPreserveAspectRatio;
  39048. function _GetanimVal: IJSSVGPreserveAspectRatio;
  39049. Public
  39050. class function JSClassName: UnicodeString; override;
  39051. class function Cast(const Intf: IJSObject): IJSSVGAnimatedPreserveAspectRatio;
  39052. property baseVal: IJSSVGPreserveAspectRatio read _GetbaseVal;
  39053. property animVal: IJSSVGPreserveAspectRatio read _GetanimVal;
  39054. end;
  39055. { --------------------------------------------------------------------
  39056. TJSSVGAnimatedRect
  39057. --------------------------------------------------------------------}
  39058. IJSSVGAnimatedRect = interface(IJSObject)
  39059. ['{079219A2-5117-3608-9171-EEB037DC57BD}']
  39060. function _GetbaseVal: IJSSVGRect;
  39061. function _GetanimVal: IJSSVGRect;
  39062. property baseVal: IJSSVGRect read _GetbaseVal;
  39063. property animVal: IJSSVGRect read _GetanimVal;
  39064. end;
  39065. TJSSVGAnimatedRect = class(TJSObject,IJSSVGAnimatedRect)
  39066. Protected
  39067. function _GetbaseVal: IJSSVGRect;
  39068. function _GetanimVal: IJSSVGRect;
  39069. Public
  39070. class function JSClassName: UnicodeString; override;
  39071. class function Cast(const Intf: IJSObject): IJSSVGAnimatedRect;
  39072. property baseVal: IJSSVGRect read _GetbaseVal;
  39073. property animVal: IJSSVGRect read _GetanimVal;
  39074. end;
  39075. { --------------------------------------------------------------------
  39076. TJSSVGAnimatedString
  39077. --------------------------------------------------------------------}
  39078. IJSSVGAnimatedString = interface(IJSObject)
  39079. ['{BABF189E-CA03-3269-A399-8F2F96ADD54E}']
  39080. function _GetbaseVal: UnicodeString;
  39081. function _GetanimVal: UnicodeString;
  39082. procedure _SetbaseVal(const aValue: UnicodeString);
  39083. property baseVal: UnicodeString read _GetbaseVal write _SetbaseVal;
  39084. property animVal: UnicodeString read _GetanimVal;
  39085. end;
  39086. TJSSVGAnimatedString = class(TJSObject,IJSSVGAnimatedString)
  39087. Protected
  39088. function _GetbaseVal: UnicodeString;
  39089. function _GetanimVal: UnicodeString;
  39090. procedure _SetbaseVal(const aValue: UnicodeString);
  39091. Public
  39092. class function JSClassName: UnicodeString; override;
  39093. class function Cast(const Intf: IJSObject): IJSSVGAnimatedString;
  39094. property baseVal: UnicodeString read _GetbaseVal write _SetbaseVal;
  39095. property animVal: UnicodeString read _GetanimVal;
  39096. end;
  39097. { --------------------------------------------------------------------
  39098. TJSSVGAnimatedTransformList
  39099. --------------------------------------------------------------------}
  39100. IJSSVGAnimatedTransformList = interface(IJSObject)
  39101. ['{882132C3-40AE-317B-9389-D7A973AB2E55}']
  39102. function _GetbaseVal: IJSSVGTransformList;
  39103. function _GetanimVal: IJSSVGTransformList;
  39104. property baseVal: IJSSVGTransformList read _GetbaseVal;
  39105. property animVal: IJSSVGTransformList read _GetanimVal;
  39106. end;
  39107. TJSSVGAnimatedTransformList = class(TJSObject,IJSSVGAnimatedTransformList)
  39108. Protected
  39109. function _GetbaseVal: IJSSVGTransformList;
  39110. function _GetanimVal: IJSSVGTransformList;
  39111. Public
  39112. class function JSClassName: UnicodeString; override;
  39113. class function Cast(const Intf: IJSObject): IJSSVGAnimatedTransformList;
  39114. property baseVal: IJSSVGTransformList read _GetbaseVal;
  39115. property animVal: IJSSVGTransformList read _GetanimVal;
  39116. end;
  39117. { --------------------------------------------------------------------
  39118. TJSSVGFilterPrimitiveStandardAttributes
  39119. --------------------------------------------------------------------}
  39120. IJSSVGFilterPrimitiveStandardAttributes = interface(IJSObject)
  39121. ['{16FD1CEA-8088-3A85-A3B8-F244168E4F20}']
  39122. function _Getx: IJSSVGAnimatedLength;
  39123. function _Gety: IJSSVGAnimatedLength;
  39124. function _Getwidth: IJSSVGAnimatedLength;
  39125. function _Getheight: IJSSVGAnimatedLength;
  39126. function _Getresult: IJSSVGAnimatedString;
  39127. property x: IJSSVGAnimatedLength read _Getx;
  39128. property y: IJSSVGAnimatedLength read _Gety;
  39129. property width: IJSSVGAnimatedLength read _Getwidth;
  39130. property height: IJSSVGAnimatedLength read _Getheight;
  39131. property result: IJSSVGAnimatedString read _Getresult;
  39132. end;
  39133. TJSSVGFilterPrimitiveStandardAttributes = class(TJSObject,IJSSVGFilterPrimitiveStandardAttributes)
  39134. Protected
  39135. function _Getx: IJSSVGAnimatedLength;
  39136. function _Gety: IJSSVGAnimatedLength;
  39137. function _Getwidth: IJSSVGAnimatedLength;
  39138. function _Getheight: IJSSVGAnimatedLength;
  39139. function _Getresult: IJSSVGAnimatedString;
  39140. Public
  39141. class function JSClassName: UnicodeString; override;
  39142. class function Cast(const Intf: IJSObject): IJSSVGFilterPrimitiveStandardAttributes;
  39143. property x: IJSSVGAnimatedLength read _Getx;
  39144. property y: IJSSVGAnimatedLength read _Gety;
  39145. property width: IJSSVGAnimatedLength read _Getwidth;
  39146. property height: IJSSVGAnimatedLength read _Getheight;
  39147. property result: IJSSVGAnimatedString read _Getresult;
  39148. end;
  39149. { --------------------------------------------------------------------
  39150. TJSSVGFitToViewBox
  39151. --------------------------------------------------------------------}
  39152. IJSSVGFitToViewBox = interface(IJSObject)
  39153. ['{041363B2-5113-33C0-9185-48E55D02B4D7}']
  39154. function _GetviewBox: IJSSVGAnimatedRect;
  39155. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  39156. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  39157. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  39158. end;
  39159. TJSSVGFitToViewBox = class(TJSObject,IJSSVGFitToViewBox)
  39160. Protected
  39161. function _GetviewBox: IJSSVGAnimatedRect;
  39162. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  39163. Public
  39164. class function JSClassName: UnicodeString; override;
  39165. class function Cast(const Intf: IJSObject): IJSSVGFitToViewBox;
  39166. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  39167. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  39168. end;
  39169. { --------------------------------------------------------------------
  39170. TJSSVGLength
  39171. --------------------------------------------------------------------}
  39172. IJSSVGLength = interface(IJSObject)
  39173. ['{5AA21ADC-4F61-379F-8857-8B9BF22BA48F}']
  39174. function _GetunitType: Word;
  39175. function _Getvalue: Single;
  39176. function _GetvalueInSpecifiedUnits: Single;
  39177. function _GetvalueAsString: UnicodeString;
  39178. procedure _Setvalue(const aValue: Single);
  39179. procedure _SetvalueInSpecifiedUnits(const aValue: Single);
  39180. procedure _SetvalueAsString(const aValue: UnicodeString);
  39181. procedure newValueSpecifiedUnits(aUnitType: Word; aValueInSpecifiedUnits: Single);
  39182. procedure convertToSpecifiedUnits(aUnitType: Word);
  39183. property unitType: Word read _GetunitType;
  39184. property value: Single read _Getvalue write _Setvalue;
  39185. property valueInSpecifiedUnits: Single read _GetvalueInSpecifiedUnits write _SetvalueInSpecifiedUnits;
  39186. property valueAsString: UnicodeString read _GetvalueAsString write _SetvalueAsString;
  39187. end;
  39188. TJSSVGLength = class(TJSObject,IJSSVGLength)
  39189. Protected
  39190. function _GetunitType: Word;
  39191. function _Getvalue: Single;
  39192. function _GetvalueInSpecifiedUnits: Single;
  39193. function _GetvalueAsString: UnicodeString;
  39194. procedure _Setvalue(const aValue: Single);
  39195. procedure _SetvalueInSpecifiedUnits(const aValue: Single);
  39196. procedure _SetvalueAsString(const aValue: UnicodeString);
  39197. Public
  39198. Const
  39199. SVG_LENGTHTYPE_UNKNOWN = 0;
  39200. SVG_LENGTHTYPE_NUMBER = 1;
  39201. SVG_LENGTHTYPE_PERCENTAGE = 2;
  39202. SVG_LENGTHTYPE_EMS = 3;
  39203. SVG_LENGTHTYPE_EXS = 4;
  39204. SVG_LENGTHTYPE_PX = 5;
  39205. SVG_LENGTHTYPE_CM = 6;
  39206. SVG_LENGTHTYPE_MM = 7;
  39207. SVG_LENGTHTYPE_IN = 8;
  39208. SVG_LENGTHTYPE_PT = 9;
  39209. SVG_LENGTHTYPE_PC = 10;
  39210. Public
  39211. procedure newValueSpecifiedUnits(aUnitType: Word; aValueInSpecifiedUnits: Single); overload;
  39212. procedure convertToSpecifiedUnits(aUnitType: Word); overload;
  39213. class function JSClassName: UnicodeString; override;
  39214. class function Cast(const Intf: IJSObject): IJSSVGLength;
  39215. property unitType: Word read _GetunitType;
  39216. property value: Single read _Getvalue write _Setvalue;
  39217. property valueInSpecifiedUnits: Single read _GetvalueInSpecifiedUnits write _SetvalueInSpecifiedUnits;
  39218. property valueAsString: UnicodeString read _GetvalueAsString write _SetvalueAsString;
  39219. end;
  39220. { --------------------------------------------------------------------
  39221. TJSSVGLengthList
  39222. --------------------------------------------------------------------}
  39223. IJSSVGLengthList = interface(IJSObject)
  39224. ['{140C90EE-0154-33E7-92A9-70C43A4A2932}']
  39225. function _GetnumberOfItems: Cardinal;
  39226. function _Getlength_: Cardinal;
  39227. procedure clear;
  39228. function initialize(aNewItem: IJSSVGLength): IJSSVGLength;
  39229. function getItem(aIndex: Cardinal): IJSSVGLength;
  39230. function insertItemBefore(aNewItem: IJSSVGLength; aIndex: Cardinal): IJSSVGLength;
  39231. function replaceItem(aNewItem: IJSSVGLength; aIndex: Cardinal): IJSSVGLength;
  39232. function removeItem(aIndex: Cardinal): IJSSVGLength;
  39233. function appendItem(aNewItem: IJSSVGLength): IJSSVGLength;
  39234. procedure SetDefault(aIndex: Cardinal; aNewItem: IJSSVGLength);
  39235. property numberOfItems: Cardinal read _GetnumberOfItems;
  39236. property length_: Cardinal read _Getlength_;
  39237. end;
  39238. TJSSVGLengthList = class(TJSObject,IJSSVGLengthList)
  39239. Protected
  39240. function _GetnumberOfItems: Cardinal;
  39241. function _Getlength_: Cardinal;
  39242. Public
  39243. procedure clear; overload;
  39244. function initialize(aNewItem: IJSSVGLength): IJSSVGLength; overload;
  39245. function getItem(aIndex: Cardinal): IJSSVGLength; overload;
  39246. function insertItemBefore(aNewItem: IJSSVGLength; aIndex: Cardinal): IJSSVGLength; overload;
  39247. function replaceItem(aNewItem: IJSSVGLength; aIndex: Cardinal): IJSSVGLength; overload;
  39248. function removeItem(aIndex: Cardinal): IJSSVGLength; overload;
  39249. function appendItem(aNewItem: IJSSVGLength): IJSSVGLength; overload;
  39250. procedure SetDefault(aIndex: Cardinal; aNewItem: IJSSVGLength); overload;
  39251. class function JSClassName: UnicodeString; override;
  39252. class function Cast(const Intf: IJSObject): IJSSVGLengthList;
  39253. property numberOfItems: Cardinal read _GetnumberOfItems;
  39254. property length_: Cardinal read _Getlength_;
  39255. end;
  39256. { --------------------------------------------------------------------
  39257. TJSSVGMatrix
  39258. --------------------------------------------------------------------}
  39259. IJSSVGMatrix = interface(IJSObject)
  39260. ['{63EDACAF-68A5-3A63-AAA8-291B2E9ABBFB}']
  39261. function _Geta: Single;
  39262. function _Getb: Single;
  39263. function _Getc: Single;
  39264. function _Getd: Single;
  39265. function _Gete: Single;
  39266. function _Getf: Single;
  39267. procedure _Seta(const aValue: Single);
  39268. procedure _Setb(const aValue: Single);
  39269. procedure _Setc(const aValue: Single);
  39270. procedure _Setd(const aValue: Single);
  39271. procedure _Sete(const aValue: Single);
  39272. procedure _Setf(const aValue: Single);
  39273. function multiply(aSecondMatrix: IJSSVGMatrix): IJSSVGMatrix;
  39274. function inverse: IJSSVGMatrix;
  39275. function translate(aX: Single; aY: Single): IJSSVGMatrix;
  39276. function scale(aScaleFactor: Single): IJSSVGMatrix;
  39277. function scaleNonUniform(aScaleFactorX: Single; aScaleFactorY: Single): IJSSVGMatrix;
  39278. function rotate(aAngle: Single): IJSSVGMatrix;
  39279. function rotateFromVector(aX: Single; aY: Single): IJSSVGMatrix;
  39280. function flipX: IJSSVGMatrix;
  39281. function flipY: IJSSVGMatrix;
  39282. function skewX(aAngle: Single): IJSSVGMatrix;
  39283. function skewY(aAngle: Single): IJSSVGMatrix;
  39284. property a: Single read _Geta write _Seta;
  39285. property b: Single read _Getb write _Setb;
  39286. property c: Single read _Getc write _Setc;
  39287. property d: Single read _Getd write _Setd;
  39288. property e: Single read _Gete write _Sete;
  39289. property f: Single read _Getf write _Setf;
  39290. end;
  39291. TJSSVGMatrix = class(TJSObject,IJSSVGMatrix)
  39292. Protected
  39293. function _Geta: Single;
  39294. function _Getb: Single;
  39295. function _Getc: Single;
  39296. function _Getd: Single;
  39297. function _Gete: Single;
  39298. function _Getf: Single;
  39299. procedure _Seta(const aValue: Single);
  39300. procedure _Setb(const aValue: Single);
  39301. procedure _Setc(const aValue: Single);
  39302. procedure _Setd(const aValue: Single);
  39303. procedure _Sete(const aValue: Single);
  39304. procedure _Setf(const aValue: Single);
  39305. Public
  39306. function multiply(aSecondMatrix: IJSSVGMatrix): IJSSVGMatrix; overload;
  39307. function inverse: IJSSVGMatrix; overload;
  39308. function translate(aX: Single; aY: Single): IJSSVGMatrix; overload;
  39309. function scale(aScaleFactor: Single): IJSSVGMatrix; overload;
  39310. function scaleNonUniform(aScaleFactorX: Single; aScaleFactorY: Single): IJSSVGMatrix; overload;
  39311. function rotate(aAngle: Single): IJSSVGMatrix; overload;
  39312. function rotateFromVector(aX: Single; aY: Single): IJSSVGMatrix; overload;
  39313. function flipX: IJSSVGMatrix; overload;
  39314. function flipY: IJSSVGMatrix; overload;
  39315. function skewX(aAngle: Single): IJSSVGMatrix; overload;
  39316. function skewY(aAngle: Single): IJSSVGMatrix; overload;
  39317. class function JSClassName: UnicodeString; override;
  39318. class function Cast(const Intf: IJSObject): IJSSVGMatrix;
  39319. property a: Single read _Geta write _Seta;
  39320. property b: Single read _Getb write _Setb;
  39321. property c: Single read _Getc write _Setc;
  39322. property d: Single read _Getd write _Setd;
  39323. property e: Single read _Gete write _Sete;
  39324. property f: Single read _Getf write _Setf;
  39325. end;
  39326. { --------------------------------------------------------------------
  39327. TJSSVGNumber
  39328. --------------------------------------------------------------------}
  39329. IJSSVGNumber = interface(IJSObject)
  39330. ['{338270CA-6AD5-3715-842A-48671B24C552}']
  39331. function _Getvalue: Single;
  39332. procedure _Setvalue(const aValue: Single);
  39333. property value: Single read _Getvalue write _Setvalue;
  39334. end;
  39335. TJSSVGNumber = class(TJSObject,IJSSVGNumber)
  39336. Protected
  39337. function _Getvalue: Single;
  39338. procedure _Setvalue(const aValue: Single);
  39339. Public
  39340. class function JSClassName: UnicodeString; override;
  39341. class function Cast(const Intf: IJSObject): IJSSVGNumber;
  39342. property value: Single read _Getvalue write _Setvalue;
  39343. end;
  39344. { --------------------------------------------------------------------
  39345. TJSSVGNumberList
  39346. --------------------------------------------------------------------}
  39347. IJSSVGNumberList = interface(IJSObject)
  39348. ['{140C90EF-514A-3687-92A9-70C43A4A2932}']
  39349. function _GetnumberOfItems: Cardinal;
  39350. function _Getlength_: Cardinal;
  39351. procedure clear;
  39352. function initialize(aNewItem: IJSSVGNumber): IJSSVGNumber;
  39353. function getItem(aIndex: Cardinal): IJSSVGNumber;
  39354. function insertItemBefore(aNewItem: IJSSVGNumber; aIndex: Cardinal): IJSSVGNumber;
  39355. function replaceItem(aNewItem: IJSSVGNumber; aIndex: Cardinal): IJSSVGNumber;
  39356. function removeItem(aIndex: Cardinal): IJSSVGNumber;
  39357. function appendItem(aNewItem: IJSSVGNumber): IJSSVGNumber;
  39358. property numberOfItems: Cardinal read _GetnumberOfItems;
  39359. property length_: Cardinal read _Getlength_;
  39360. end;
  39361. TJSSVGNumberList = class(TJSObject,IJSSVGNumberList)
  39362. Protected
  39363. function _GetnumberOfItems: Cardinal;
  39364. function _Getlength_: Cardinal;
  39365. Public
  39366. procedure clear; overload;
  39367. function initialize(aNewItem: IJSSVGNumber): IJSSVGNumber; overload;
  39368. function getItem(aIndex: Cardinal): IJSSVGNumber; overload;
  39369. function insertItemBefore(aNewItem: IJSSVGNumber; aIndex: Cardinal): IJSSVGNumber; overload;
  39370. function replaceItem(aNewItem: IJSSVGNumber; aIndex: Cardinal): IJSSVGNumber; overload;
  39371. function removeItem(aIndex: Cardinal): IJSSVGNumber; overload;
  39372. function appendItem(aNewItem: IJSSVGNumber): IJSSVGNumber; overload;
  39373. class function JSClassName: UnicodeString; override;
  39374. class function Cast(const Intf: IJSObject): IJSSVGNumberList;
  39375. property numberOfItems: Cardinal read _GetnumberOfItems;
  39376. property length_: Cardinal read _Getlength_;
  39377. end;
  39378. { --------------------------------------------------------------------
  39379. TJSSVGPathSeg
  39380. --------------------------------------------------------------------}
  39381. IJSSVGPathSeg = interface(IJSObject)
  39382. ['{7D703657-85D8-35B9-A30C-FA2E5C08B0F2}']
  39383. function _GetpathSegType: Word;
  39384. function _GetpathSegTypeAsLetter: UnicodeString;
  39385. property pathSegType: Word read _GetpathSegType;
  39386. property pathSegTypeAsLetter: UnicodeString read _GetpathSegTypeAsLetter;
  39387. end;
  39388. TJSSVGPathSeg = class(TJSObject,IJSSVGPathSeg)
  39389. Protected
  39390. function _GetpathSegType: Word;
  39391. function _GetpathSegTypeAsLetter: UnicodeString;
  39392. Public
  39393. Const
  39394. PATHSEG_UNKNOWN = 0;
  39395. PATHSEG_CLOSEPATH = 1;
  39396. PATHSEG_MOVETO_ABS = 2;
  39397. PATHSEG_MOVETO_REL = 3;
  39398. PATHSEG_LINETO_ABS = 4;
  39399. PATHSEG_LINETO_REL = 5;
  39400. PATHSEG_CURVETO_CUBIC_ABS = 6;
  39401. PATHSEG_CURVETO_CUBIC_REL = 7;
  39402. PATHSEG_CURVETO_QUADRATIC_ABS = 8;
  39403. PATHSEG_CURVETO_QUADRATIC_REL = 9;
  39404. PATHSEG_ARC_ABS = 10;
  39405. PATHSEG_ARC_REL = 11;
  39406. PATHSEG_LINETO_HORIZONTAL_ABS = 12;
  39407. PATHSEG_LINETO_HORIZONTAL_REL = 13;
  39408. PATHSEG_LINETO_VERTICAL_ABS = 14;
  39409. PATHSEG_LINETO_VERTICAL_REL = 15;
  39410. PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
  39411. PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
  39412. PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
  39413. PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
  39414. Public
  39415. class function JSClassName: UnicodeString; override;
  39416. class function Cast(const Intf: IJSObject): IJSSVGPathSeg;
  39417. property pathSegType: Word read _GetpathSegType;
  39418. property pathSegTypeAsLetter: UnicodeString read _GetpathSegTypeAsLetter;
  39419. end;
  39420. { --------------------------------------------------------------------
  39421. TJSSVGPathSegList
  39422. --------------------------------------------------------------------}
  39423. IJSSVGPathSegList = interface(IJSObject)
  39424. ['{7141259E-7D8B-3C25-B15F-3196DEAE6210}']
  39425. function _GetnumberOfItems: Cardinal;
  39426. function _Getlength_: Cardinal;
  39427. function getItem(aIndex: Cardinal): IJSSVGPathSeg;
  39428. property numberOfItems: Cardinal read _GetnumberOfItems;
  39429. property length_: Cardinal read _Getlength_;
  39430. end;
  39431. TJSSVGPathSegList = class(TJSObject,IJSSVGPathSegList)
  39432. Protected
  39433. function _GetnumberOfItems: Cardinal;
  39434. function _Getlength_: Cardinal;
  39435. Public
  39436. function getItem(aIndex: Cardinal): IJSSVGPathSeg; overload;
  39437. class function JSClassName: UnicodeString; override;
  39438. class function Cast(const Intf: IJSObject): IJSSVGPathSegList;
  39439. property numberOfItems: Cardinal read _GetnumberOfItems;
  39440. property length_: Cardinal read _Getlength_;
  39441. end;
  39442. { --------------------------------------------------------------------
  39443. TJSSVGPoint
  39444. --------------------------------------------------------------------}
  39445. IJSSVGPoint = interface(IJSObject)
  39446. ['{81403BB9-44FA-345C-901C-687BD6DE5CB7}']
  39447. function _Getx: Single;
  39448. function _Gety: Single;
  39449. procedure _Setx(const aValue: Single);
  39450. procedure _Sety(const aValue: Single);
  39451. function matrixTransform(const aMatrix: TJSDOMMatrix2DInit): IJSSVGPoint;
  39452. function matrixTransform: IJSSVGPoint;
  39453. property x: Single read _Getx write _Setx;
  39454. property y: Single read _Gety write _Sety;
  39455. end;
  39456. TJSSVGPoint = class(TJSObject,IJSSVGPoint)
  39457. Protected
  39458. function _Getx: Single;
  39459. function _Gety: Single;
  39460. procedure _Setx(const aValue: Single);
  39461. procedure _Sety(const aValue: Single);
  39462. Public
  39463. function matrixTransform(const aMatrix: TJSDOMMatrix2DInit): IJSSVGPoint; overload;
  39464. function matrixTransform: IJSSVGPoint; overload;
  39465. class function JSClassName: UnicodeString; override;
  39466. class function Cast(const Intf: IJSObject): IJSSVGPoint;
  39467. property x: Single read _Getx write _Setx;
  39468. property y: Single read _Gety write _Sety;
  39469. end;
  39470. { --------------------------------------------------------------------
  39471. TJSSVGPointList
  39472. --------------------------------------------------------------------}
  39473. IJSSVGPointList = interface(IJSObject)
  39474. ['{702AF041-C38D-30ED-B006-F361223E6110}']
  39475. function _GetnumberOfItems: Cardinal;
  39476. function _Getlength_: Cardinal;
  39477. procedure clear;
  39478. function initialize(aNewItem: IJSSVGPoint): IJSSVGPoint;
  39479. function getItem(aIndex: Cardinal): IJSSVGPoint;
  39480. function insertItemBefore(aNewItem: IJSSVGPoint; aIndex: Cardinal): IJSSVGPoint;
  39481. function replaceItem(aNewItem: IJSSVGPoint; aIndex: Cardinal): IJSSVGPoint;
  39482. function removeItem(aIndex: Cardinal): IJSSVGPoint;
  39483. function appendItem(aNewItem: IJSSVGPoint): IJSSVGPoint;
  39484. property numberOfItems: Cardinal read _GetnumberOfItems;
  39485. property length_: Cardinal read _Getlength_;
  39486. end;
  39487. TJSSVGPointList = class(TJSObject,IJSSVGPointList)
  39488. Protected
  39489. function _GetnumberOfItems: Cardinal;
  39490. function _Getlength_: Cardinal;
  39491. Public
  39492. procedure clear; overload;
  39493. function initialize(aNewItem: IJSSVGPoint): IJSSVGPoint; overload;
  39494. function getItem(aIndex: Cardinal): IJSSVGPoint; overload;
  39495. function insertItemBefore(aNewItem: IJSSVGPoint; aIndex: Cardinal): IJSSVGPoint; overload;
  39496. function replaceItem(aNewItem: IJSSVGPoint; aIndex: Cardinal): IJSSVGPoint; overload;
  39497. function removeItem(aIndex: Cardinal): IJSSVGPoint; overload;
  39498. function appendItem(aNewItem: IJSSVGPoint): IJSSVGPoint; overload;
  39499. class function JSClassName: UnicodeString; override;
  39500. class function Cast(const Intf: IJSObject): IJSSVGPointList;
  39501. property numberOfItems: Cardinal read _GetnumberOfItems;
  39502. property length_: Cardinal read _Getlength_;
  39503. end;
  39504. { --------------------------------------------------------------------
  39505. TJSSVGPreserveAspectRatio
  39506. --------------------------------------------------------------------}
  39507. IJSSVGPreserveAspectRatio = interface(IJSObject)
  39508. ['{83AA053A-0C2C-3308-85C5-6F7E29FDFD5C}']
  39509. function _Getalign: Word;
  39510. function _GetmeetOrSlice: Word;
  39511. procedure _Setalign(const aValue: Word);
  39512. procedure _SetmeetOrSlice(const aValue: Word);
  39513. property align: Word read _Getalign write _Setalign;
  39514. property meetOrSlice: Word read _GetmeetOrSlice write _SetmeetOrSlice;
  39515. end;
  39516. TJSSVGPreserveAspectRatio = class(TJSObject,IJSSVGPreserveAspectRatio)
  39517. Protected
  39518. function _Getalign: Word;
  39519. function _GetmeetOrSlice: Word;
  39520. procedure _Setalign(const aValue: Word);
  39521. procedure _SetmeetOrSlice(const aValue: Word);
  39522. Public
  39523. Const
  39524. SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;
  39525. SVG_PRESERVEASPECTRATIO_NONE = 1;
  39526. SVG_PRESERVEASPECTRATIO_XMINYMIN = 2;
  39527. SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3;
  39528. SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4;
  39529. SVG_PRESERVEASPECTRATIO_XMINYMID = 5;
  39530. SVG_PRESERVEASPECTRATIO_XMIDYMID = 6;
  39531. SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;
  39532. SVG_PRESERVEASPECTRATIO_XMINYMAX = 8;
  39533. SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9;
  39534. SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;
  39535. SVG_MEETORSLICE_UNKNOWN = 0;
  39536. SVG_MEETORSLICE_MEET = 1;
  39537. SVG_MEETORSLICE_SLICE = 2;
  39538. Public
  39539. class function JSClassName: UnicodeString; override;
  39540. class function Cast(const Intf: IJSObject): IJSSVGPreserveAspectRatio;
  39541. property align: Word read _Getalign write _Setalign;
  39542. property meetOrSlice: Word read _GetmeetOrSlice write _SetmeetOrSlice;
  39543. end;
  39544. { --------------------------------------------------------------------
  39545. TJSSVGRect
  39546. --------------------------------------------------------------------}
  39547. IJSSVGRect = interface(IJSObject)
  39548. ['{3275278B-238F-3A3D-8A0D-93BE7F554374}']
  39549. function _Getx: Single;
  39550. function _Gety: Single;
  39551. function _Getwidth: Single;
  39552. function _Getheight: Single;
  39553. procedure _Setx(const aValue: Single);
  39554. procedure _Sety(const aValue: Single);
  39555. procedure _Setwidth(const aValue: Single);
  39556. procedure _Setheight(const aValue: Single);
  39557. property x: Single read _Getx write _Setx;
  39558. property y: Single read _Gety write _Sety;
  39559. property width: Single read _Getwidth write _Setwidth;
  39560. property height: Single read _Getheight write _Setheight;
  39561. end;
  39562. TJSSVGRect = class(TJSObject,IJSSVGRect)
  39563. Protected
  39564. function _Getx: Single;
  39565. function _Gety: Single;
  39566. function _Getwidth: Single;
  39567. function _Getheight: Single;
  39568. procedure _Setx(const aValue: Single);
  39569. procedure _Sety(const aValue: Single);
  39570. procedure _Setwidth(const aValue: Single);
  39571. procedure _Setheight(const aValue: Single);
  39572. Public
  39573. class function JSClassName: UnicodeString; override;
  39574. class function Cast(const Intf: IJSObject): IJSSVGRect;
  39575. property x: Single read _Getx write _Setx;
  39576. property y: Single read _Gety write _Sety;
  39577. property width: Single read _Getwidth write _Setwidth;
  39578. property height: Single read _Getheight write _Setheight;
  39579. end;
  39580. { --------------------------------------------------------------------
  39581. TJSSVGStringList
  39582. --------------------------------------------------------------------}
  39583. IJSSVGStringList = interface(IJSObject)
  39584. ['{140C90EF-EF75-37D7-92A9-70C43A4A2932}']
  39585. function _Getlength_: Cardinal;
  39586. function _GetnumberOfItems: Cardinal;
  39587. procedure clear;
  39588. function initialize(const aNewItem: UnicodeString): UnicodeString;
  39589. function getItem(aIndex: Cardinal): UnicodeString;
  39590. function GetDefault(aIndex: Cardinal): UnicodeString;
  39591. function insertItemBefore(const aNewItem: UnicodeString; aIndex: Cardinal): UnicodeString;
  39592. function replaceItem(const aNewItem: UnicodeString; aIndex: Cardinal): UnicodeString;
  39593. function removeItem(aIndex: Cardinal): UnicodeString;
  39594. function appendItem(const aNewItem: UnicodeString): UnicodeString;
  39595. property length_: Cardinal read _Getlength_;
  39596. property numberOfItems: Cardinal read _GetnumberOfItems;
  39597. end;
  39598. TJSSVGStringList = class(TJSObject,IJSSVGStringList)
  39599. Protected
  39600. function _Getlength_: Cardinal;
  39601. function _GetnumberOfItems: Cardinal;
  39602. Public
  39603. procedure clear; overload;
  39604. function initialize(const aNewItem: UnicodeString): UnicodeString; overload;
  39605. function getItem(aIndex: Cardinal): UnicodeString; overload;
  39606. function GetDefault(aIndex: Cardinal): UnicodeString; overload;
  39607. function insertItemBefore(const aNewItem: UnicodeString; aIndex: Cardinal): UnicodeString; overload;
  39608. function replaceItem(const aNewItem: UnicodeString; aIndex: Cardinal): UnicodeString; overload;
  39609. function removeItem(aIndex: Cardinal): UnicodeString; overload;
  39610. function appendItem(const aNewItem: UnicodeString): UnicodeString; overload;
  39611. class function JSClassName: UnicodeString; override;
  39612. class function Cast(const Intf: IJSObject): IJSSVGStringList;
  39613. property length_: Cardinal read _Getlength_;
  39614. property numberOfItems: Cardinal read _GetnumberOfItems;
  39615. end;
  39616. { --------------------------------------------------------------------
  39617. TJSSVGTests
  39618. --------------------------------------------------------------------}
  39619. IJSSVGTests = interface(IJSObject)
  39620. ['{F074C479-C6AA-36A3-B633-1CFC31B674E4}']
  39621. function _GetrequiredExtensions: IJSSVGStringList;
  39622. function _GetsystemLanguage: IJSSVGStringList;
  39623. property requiredExtensions: IJSSVGStringList read _GetrequiredExtensions;
  39624. property systemLanguage: IJSSVGStringList read _GetsystemLanguage;
  39625. end;
  39626. TJSSVGTests = class(TJSObject,IJSSVGTests)
  39627. Protected
  39628. function _GetrequiredExtensions: IJSSVGStringList;
  39629. function _GetsystemLanguage: IJSSVGStringList;
  39630. Public
  39631. class function JSClassName: UnicodeString; override;
  39632. class function Cast(const Intf: IJSObject): IJSSVGTests;
  39633. property requiredExtensions: IJSSVGStringList read _GetrequiredExtensions;
  39634. property systemLanguage: IJSSVGStringList read _GetsystemLanguage;
  39635. end;
  39636. { --------------------------------------------------------------------
  39637. TJSSVGTransform
  39638. --------------------------------------------------------------------}
  39639. IJSSVGTransform = interface(IJSObject)
  39640. ['{179D7DF7-2DCB-3E3A-BE64-366F4F456503}']
  39641. function _Gettype_: Word;
  39642. function _Getmatrix: IJSSVGMatrix;
  39643. function _Getangle: Single;
  39644. procedure setMatrix(const aMatrix: TJSDOMMatrix2DInit);
  39645. procedure setMatrix;
  39646. procedure setTranslate(aTx: Single; aTy: Single);
  39647. procedure setScale(aSx: Single; aSy: Single);
  39648. procedure setRotate(aAngle: Single; aCx: Single; aCy: Single);
  39649. procedure setSkewX(aAngle: Single);
  39650. procedure setSkewY(aAngle: Single);
  39651. property type_: Word read _Gettype_;
  39652. property matrix: IJSSVGMatrix read _Getmatrix;
  39653. property angle: Single read _Getangle;
  39654. end;
  39655. TJSSVGTransform = class(TJSObject,IJSSVGTransform)
  39656. Protected
  39657. function _Gettype_: Word;
  39658. function _Getmatrix: IJSSVGMatrix;
  39659. function _Getangle: Single;
  39660. Public
  39661. Const
  39662. SVG_TRANSFORM_UNKNOWN = 0;
  39663. SVG_TRANSFORM_MATRIX = 1;
  39664. SVG_TRANSFORM_TRANSLATE = 2;
  39665. SVG_TRANSFORM_SCALE = 3;
  39666. SVG_TRANSFORM_ROTATE = 4;
  39667. SVG_TRANSFORM_SKEWX = 5;
  39668. SVG_TRANSFORM_SKEWY = 6;
  39669. Public
  39670. procedure setMatrix(const aMatrix: TJSDOMMatrix2DInit); overload;
  39671. procedure setMatrix; overload;
  39672. procedure setTranslate(aTx: Single; aTy: Single); overload;
  39673. procedure setScale(aSx: Single; aSy: Single); overload;
  39674. procedure setRotate(aAngle: Single; aCx: Single; aCy: Single); overload;
  39675. procedure setSkewX(aAngle: Single); overload;
  39676. procedure setSkewY(aAngle: Single); overload;
  39677. class function JSClassName: UnicodeString; override;
  39678. class function Cast(const Intf: IJSObject): IJSSVGTransform;
  39679. property type_: Word read _Gettype_;
  39680. property matrix: IJSSVGMatrix read _Getmatrix;
  39681. property angle: Single read _Getangle;
  39682. end;
  39683. { --------------------------------------------------------------------
  39684. TJSSVGTransformList
  39685. --------------------------------------------------------------------}
  39686. IJSSVGTransformList = interface(IJSObject)
  39687. ['{655092FB-17E8-3B2B-9E50-C34285303386}']
  39688. function _GetnumberOfItems: Cardinal;
  39689. function _Getlength_: Cardinal;
  39690. procedure clear;
  39691. function initialize(aNewItem: IJSSVGTransform): IJSSVGTransform;
  39692. function getItem(aIndex: Cardinal): IJSSVGTransform;
  39693. function insertItemBefore(aNewItem: IJSSVGTransform; aIndex: Cardinal): IJSSVGTransform;
  39694. function replaceItem(aNewItem: IJSSVGTransform; aIndex: Cardinal): IJSSVGTransform;
  39695. function removeItem(aIndex: Cardinal): IJSSVGTransform;
  39696. function appendItem(aNewItem: IJSSVGTransform): IJSSVGTransform;
  39697. function createSVGTransformFromMatrix(const aMatrix: TJSDOMMatrix2DInit): IJSSVGTransform;
  39698. function createSVGTransformFromMatrix: IJSSVGTransform;
  39699. function consolidate: IJSSVGTransform;
  39700. property numberOfItems: Cardinal read _GetnumberOfItems;
  39701. property length_: Cardinal read _Getlength_;
  39702. end;
  39703. TJSSVGTransformList = class(TJSObject,IJSSVGTransformList)
  39704. Protected
  39705. function _GetnumberOfItems: Cardinal;
  39706. function _Getlength_: Cardinal;
  39707. Public
  39708. procedure clear; overload;
  39709. function initialize(aNewItem: IJSSVGTransform): IJSSVGTransform; overload;
  39710. function getItem(aIndex: Cardinal): IJSSVGTransform; overload;
  39711. function insertItemBefore(aNewItem: IJSSVGTransform; aIndex: Cardinal): IJSSVGTransform; overload;
  39712. function replaceItem(aNewItem: IJSSVGTransform; aIndex: Cardinal): IJSSVGTransform; overload;
  39713. function removeItem(aIndex: Cardinal): IJSSVGTransform; overload;
  39714. function appendItem(aNewItem: IJSSVGTransform): IJSSVGTransform; overload;
  39715. function createSVGTransformFromMatrix(const aMatrix: TJSDOMMatrix2DInit): IJSSVGTransform; overload;
  39716. function createSVGTransformFromMatrix: IJSSVGTransform; overload;
  39717. function consolidate: IJSSVGTransform; overload;
  39718. class function JSClassName: UnicodeString; override;
  39719. class function Cast(const Intf: IJSObject): IJSSVGTransformList;
  39720. property numberOfItems: Cardinal read _GetnumberOfItems;
  39721. property length_: Cardinal read _Getlength_;
  39722. end;
  39723. { --------------------------------------------------------------------
  39724. TJSSVGUnitTypes
  39725. --------------------------------------------------------------------}
  39726. IJSSVGUnitTypes = interface(IJSObject)
  39727. ['{FE24CC07-F90F-3A52-B66B-64989733CCCE}']
  39728. end;
  39729. TJSSVGUnitTypes = class(TJSObject,IJSSVGUnitTypes)
  39730. Protected
  39731. Public
  39732. Const
  39733. SVG_UNIT_TYPE_UNKNOWN = 0;
  39734. SVG_UNIT_TYPE_USERSPACEONUSE = 1;
  39735. SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2;
  39736. Public
  39737. class function JSClassName: UnicodeString; override;
  39738. class function Cast(const Intf: IJSObject): IJSSVGUnitTypes;
  39739. end;
  39740. { --------------------------------------------------------------------
  39741. TJSSVGURIReference
  39742. --------------------------------------------------------------------}
  39743. IJSSVGURIReference = interface(IJSObject)
  39744. ['{F31E7528-642A-3AC0-A061-903C81ABE156}']
  39745. function _Gethref: IJSSVGAnimatedString;
  39746. property href: IJSSVGAnimatedString read _Gethref;
  39747. end;
  39748. TJSSVGURIReference = class(TJSObject,IJSSVGURIReference)
  39749. Protected
  39750. function _Gethref: IJSSVGAnimatedString;
  39751. Public
  39752. class function JSClassName: UnicodeString; override;
  39753. class function Cast(const Intf: IJSObject): IJSSVGURIReference;
  39754. property href: IJSSVGAnimatedString read _Gethref;
  39755. end;
  39756. { --------------------------------------------------------------------
  39757. TJSSVGZoomAndPan
  39758. --------------------------------------------------------------------}
  39759. IJSSVGZoomAndPan = interface(IJSObject)
  39760. ['{A8239C3A-1C38-39BE-9A2A-F03A8A30F8F5}']
  39761. function _GetzoomAndPan: Word;
  39762. procedure _SetzoomAndPan(const aValue: Word);
  39763. property zoomAndPan: Word read _GetzoomAndPan write _SetzoomAndPan;
  39764. end;
  39765. TJSSVGZoomAndPan = class(TJSObject,IJSSVGZoomAndPan)
  39766. Protected
  39767. function _GetzoomAndPan: Word;
  39768. procedure _SetzoomAndPan(const aValue: Word);
  39769. Public
  39770. Const
  39771. SVG_ZOOMANDPAN_UNKNOWN = 0;
  39772. SVG_ZOOMANDPAN_DISABLE = 1;
  39773. SVG_ZOOMANDPAN_MAGNIFY = 2;
  39774. Public
  39775. class function JSClassName: UnicodeString; override;
  39776. class function Cast(const Intf: IJSObject): IJSSVGZoomAndPan;
  39777. property zoomAndPan: Word read _GetzoomAndPan write _SetzoomAndPan;
  39778. end;
  39779. { --------------------------------------------------------------------
  39780. TJSnsISocketTransport
  39781. --------------------------------------------------------------------}
  39782. IJSnsISocketTransport = interface(IJSObject)
  39783. ['{C8B5BD31-01C9-3A33-BECF-5F8B5A87C063}']
  39784. end;
  39785. TJSnsISocketTransport = class(TJSObject,IJSnsISocketTransport)
  39786. Protected
  39787. Public
  39788. class function JSClassName: UnicodeString; override;
  39789. class function Cast(const Intf: IJSObject): IJSnsISocketTransport;
  39790. end;
  39791. { --------------------------------------------------------------------
  39792. TJSLegacyMozTCPSocket
  39793. --------------------------------------------------------------------}
  39794. IJSLegacyMozTCPSocket = interface(IJSObject)
  39795. ['{BE7DFB1B-B571-3F92-8094-3B4248707534}']
  39796. function open(const aHost: UnicodeString; aPort: Word; const aOptions: TJSSocketOptions): IJSTCPSocket;
  39797. function open(const aHost: UnicodeString; aPort: Word): IJSTCPSocket;
  39798. function listen(aPort: Word; const aOptions: TJSServerSocketOptions; aBacklog: Word): IJSTCPServerSocket;
  39799. function listen(aPort: Word): IJSTCPServerSocket;
  39800. function listen(aPort: Word; const aOptions: TJSServerSocketOptions): IJSTCPServerSocket;
  39801. end;
  39802. TJSLegacyMozTCPSocket = class(TJSObject,IJSLegacyMozTCPSocket)
  39803. Protected
  39804. Public
  39805. function open(const aHost: UnicodeString; aPort: Word; const aOptions: TJSSocketOptions): IJSTCPSocket; overload;
  39806. function open(const aHost: UnicodeString; aPort: Word): IJSTCPSocket; overload;
  39807. function listen(aPort: Word; const aOptions: TJSServerSocketOptions; aBacklog: Word): IJSTCPServerSocket; overload;
  39808. function listen(aPort: Word): IJSTCPServerSocket; overload;
  39809. function listen(aPort: Word; const aOptions: TJSServerSocketOptions): IJSTCPServerSocket; overload;
  39810. class function JSClassName: UnicodeString; override;
  39811. class function Cast(const Intf: IJSObject): IJSLegacyMozTCPSocket;
  39812. end;
  39813. { --------------------------------------------------------------------
  39814. TJSWrapperCachedNonISupportsTestInterface
  39815. --------------------------------------------------------------------}
  39816. IJSWrapperCachedNonISupportsTestInterface = interface(IJSObject)
  39817. ['{2CAEB512-5E85-308E-9AD6-9355FF471ADC}']
  39818. end;
  39819. TJSWrapperCachedNonISupportsTestInterface = class(TJSObject,IJSWrapperCachedNonISupportsTestInterface)
  39820. Protected
  39821. Public
  39822. constructor Create; overload;
  39823. class function JSClassName: UnicodeString; override;
  39824. class function Cast(const Intf: IJSObject): IJSWrapperCachedNonISupportsTestInterface;
  39825. end;
  39826. { --------------------------------------------------------------------
  39827. TJSTestTrialInterface
  39828. --------------------------------------------------------------------}
  39829. IJSTestTrialInterface = interface(IJSObject)
  39830. ['{C8B416DD-0640-32AC-B026-53EE1B2C7863}']
  39831. end;
  39832. TJSTestTrialInterface = class(TJSObject,IJSTestTrialInterface)
  39833. Protected
  39834. Public
  39835. constructor Create; overload;
  39836. class function JSClassName: UnicodeString; override;
  39837. class function Cast(const Intf: IJSObject): IJSTestTrialInterface;
  39838. end;
  39839. { --------------------------------------------------------------------
  39840. TJSTestInterfaceLength
  39841. --------------------------------------------------------------------}
  39842. IJSTestInterfaceLength = interface(IJSObject)
  39843. ['{7D9DC77B-FA22-36A9-922E-8677E07282DA}']
  39844. end;
  39845. TJSTestInterfaceLength = class(TJSObject,IJSTestInterfaceLength)
  39846. Protected
  39847. Public
  39848. class function JSClassName: UnicodeString; override;
  39849. class function Cast(const Intf: IJSObject): IJSTestInterfaceLength;
  39850. end;
  39851. { --------------------------------------------------------------------
  39852. TJSTestFunctions
  39853. --------------------------------------------------------------------}
  39854. // Union of ArrayBuffer, ArrayBufferView, DOMString
  39855. TTestFunctions_testUnionOfBuffferSource_foo_Type = Variant;
  39856. // Union of ArrayBuffer, ArrayBufferView
  39857. TTestFunctions_testUnionOfAllowSharedBuffferSource_foo_Type = Variant;
  39858. TIJSArrayBufferViewDynArray = IJSArray; // array of ArrayBufferView
  39859. IJSTestFunctions = interface(IJSObject)
  39860. ['{2A01F0F2-48D0-3D3B-A403-61D6ABFFB9E3}']
  39861. function _Getone: LongInt;
  39862. function _Gettwo: LongInt;
  39863. function _GetwrapperCachedNonISupportsObject: IJSWrapperCachedNonISupportsTestInterface;
  39864. function _GetclampedNullableOctet: Byte;
  39865. function _GetenforcedNullableOctet: Byte;
  39866. function _GetarrayBufferView: IJSArrayBufferView;
  39867. function _GetallowSharedArrayBufferView: IJSArrayBufferView;
  39868. function _GetsequenceOfArrayBufferView: TIJSArrayBufferViewDynArray;
  39869. function _GetsequenceOfAllowSharedArrayBufferView: TIJSArrayBufferViewDynArray;
  39870. function _GetarrayBuffer: IJSArrayBuffer;
  39871. function _GetallowSharedArrayBuffer: IJSArrayBuffer;
  39872. function _GetsequenceOfArrayBuffer: TIJSArrayBufferDynArray;
  39873. function _GetsequenceOfAllowSharedArrayBuffer: TIJSArrayBufferDynArray;
  39874. procedure _SetclampedNullableOctet(const aValue: Byte);
  39875. procedure _SetenforcedNullableOctet(const aValue: Byte);
  39876. procedure _SetarrayBufferView(const aValue: IJSArrayBufferView);
  39877. procedure _SetallowSharedArrayBufferView(const aValue: IJSArrayBufferView);
  39878. procedure _SetsequenceOfArrayBufferView(const aValue: TIJSArrayBufferViewDynArray);
  39879. procedure _SetsequenceOfAllowSharedArrayBufferView(const aValue: TIJSArrayBufferViewDynArray);
  39880. procedure _SetarrayBuffer(const aValue: IJSArrayBuffer);
  39881. procedure _SetallowSharedArrayBuffer(const aValue: IJSArrayBuffer);
  39882. procedure _SetsequenceOfArrayBuffer(const aValue: TIJSArrayBufferDynArray);
  39883. procedure _SetsequenceOfAllowSharedArrayBuffer(const aValue: TIJSArrayBufferDynArray);
  39884. procedure setStringData(const aArg: UnicodeString);
  39885. function getStringDataAsAString: UnicodeString;
  39886. function getStringDataAsAString(aLength_: Cardinal): UnicodeString;
  39887. function getStringDataAsDOMString(aLength_: Cardinal): UnicodeString;
  39888. function getStringDataAsDOMString: UnicodeString;
  39889. function getShortLiteralString: UnicodeString;
  39890. function getMediumLiteralString: UnicodeString;
  39891. function getLongLiteralString: UnicodeString;
  39892. function getStringbufferString(const aInput: UnicodeString): UnicodeString;
  39893. function getStringType(const aStr: UnicodeString): TStringType;
  39894. function stringbufferMatchesStored(const aStr: UnicodeString): Boolean;
  39895. procedure testThrowNsresult;
  39896. procedure testThrowNsresultFromNative;
  39897. function toJSON: IJSObject;
  39898. procedure testNotAllowShared(aBuffer: IJSArrayBufferView);
  39899. procedure testNotAllowShared(aBuffer: IJSArrayBuffer);
  39900. procedure testNotAllowShared(const aBuffer: UnicodeString);
  39901. procedure testAllowShared(aBuffer: IJSArrayBufferView);
  39902. procedure testAllowShared(aBuffer: IJSArrayBuffer);
  39903. procedure testDictWithAllowShared(const aBuffer: TJSDictWithAllowSharedBufferSource);
  39904. procedure testDictWithAllowShared;
  39905. procedure testUnionOfBuffferSource(aFoo: IJSArrayBuffer);
  39906. procedure testUnionOfBuffferSource(aFoo: IJSArrayBufferView);
  39907. procedure testUnionOfBuffferSource(const aFoo: UnicodeString);
  39908. procedure testUnionOfAllowSharedBuffferSource(aFoo: IJSArrayBuffer);
  39909. procedure testUnionOfAllowSharedBuffferSource(aFoo: IJSArrayBufferView);
  39910. property one: LongInt read _Getone;
  39911. property two: LongInt read _Gettwo;
  39912. property wrapperCachedNonISupportsObject: IJSWrapperCachedNonISupportsTestInterface read _GetwrapperCachedNonISupportsObject;
  39913. property clampedNullableOctet: Byte read _GetclampedNullableOctet write _SetclampedNullableOctet;
  39914. property enforcedNullableOctet: Byte read _GetenforcedNullableOctet write _SetenforcedNullableOctet;
  39915. property arrayBufferView: IJSArrayBufferView read _GetarrayBufferView write _SetarrayBufferView;
  39916. property allowSharedArrayBufferView: IJSArrayBufferView read _GetallowSharedArrayBufferView write _SetallowSharedArrayBufferView;
  39917. property sequenceOfArrayBufferView: TIJSArrayBufferViewDynArray read _GetsequenceOfArrayBufferView write _SetsequenceOfArrayBufferView;
  39918. property sequenceOfAllowSharedArrayBufferView: TIJSArrayBufferViewDynArray read _GetsequenceOfAllowSharedArrayBufferView write _SetsequenceOfAllowSharedArrayBufferView;
  39919. property arrayBuffer: IJSArrayBuffer read _GetarrayBuffer write _SetarrayBuffer;
  39920. property allowSharedArrayBuffer: IJSArrayBuffer read _GetallowSharedArrayBuffer write _SetallowSharedArrayBuffer;
  39921. property sequenceOfArrayBuffer: TIJSArrayBufferDynArray read _GetsequenceOfArrayBuffer write _SetsequenceOfArrayBuffer;
  39922. property sequenceOfAllowSharedArrayBuffer: TIJSArrayBufferDynArray read _GetsequenceOfAllowSharedArrayBuffer write _SetsequenceOfAllowSharedArrayBuffer;
  39923. end;
  39924. TJSTestFunctions = class(TJSObject,IJSTestFunctions)
  39925. Protected
  39926. function _Getone: LongInt;
  39927. function _Gettwo: LongInt;
  39928. function _GetwrapperCachedNonISupportsObject: IJSWrapperCachedNonISupportsTestInterface;
  39929. function _GetclampedNullableOctet: Byte;
  39930. function _GetenforcedNullableOctet: Byte;
  39931. function _GetarrayBufferView: IJSArrayBufferView;
  39932. function _GetallowSharedArrayBufferView: IJSArrayBufferView;
  39933. function _GetsequenceOfArrayBufferView: TIJSArrayBufferViewDynArray;
  39934. function _GetsequenceOfAllowSharedArrayBufferView: TIJSArrayBufferViewDynArray;
  39935. function _GetarrayBuffer: IJSArrayBuffer;
  39936. function _GetallowSharedArrayBuffer: IJSArrayBuffer;
  39937. function _GetsequenceOfArrayBuffer: TIJSArrayBufferDynArray;
  39938. function _GetsequenceOfAllowSharedArrayBuffer: TIJSArrayBufferDynArray;
  39939. procedure _SetclampedNullableOctet(const aValue: Byte);
  39940. procedure _SetenforcedNullableOctet(const aValue: Byte);
  39941. procedure _SetarrayBufferView(const aValue: IJSArrayBufferView);
  39942. procedure _SetallowSharedArrayBufferView(const aValue: IJSArrayBufferView);
  39943. procedure _SetsequenceOfArrayBufferView(const aValue: TIJSArrayBufferViewDynArray);
  39944. procedure _SetsequenceOfAllowSharedArrayBufferView(const aValue: TIJSArrayBufferViewDynArray);
  39945. procedure _SetarrayBuffer(const aValue: IJSArrayBuffer);
  39946. procedure _SetallowSharedArrayBuffer(const aValue: IJSArrayBuffer);
  39947. procedure _SetsequenceOfArrayBuffer(const aValue: TIJSArrayBufferDynArray);
  39948. procedure _SetsequenceOfAllowSharedArrayBuffer(const aValue: TIJSArrayBufferDynArray);
  39949. Public
  39950. constructor Create; overload;
  39951. procedure throwUncatchableException; overload;
  39952. function passThroughPromise(aArg: IJSPromise): IJSPromise; overload; // Promise<any>
  39953. function passThroughCallbackPromise(const aCallback: TPromiseReturner): IJSPromise; overload; // Promise<any>
  39954. procedure setStringData(const aArg: UnicodeString); overload;
  39955. function getStringDataAsAString: UnicodeString; overload;
  39956. function getStringDataAsAString(aLength_: Cardinal): UnicodeString; overload;
  39957. function getStringDataAsDOMString(aLength_: Cardinal): UnicodeString; overload;
  39958. function getStringDataAsDOMString: UnicodeString; overload;
  39959. function getShortLiteralString: UnicodeString; overload;
  39960. function getMediumLiteralString: UnicodeString; overload;
  39961. function getLongLiteralString: UnicodeString; overload;
  39962. function getStringbufferString(const aInput: UnicodeString): UnicodeString; overload;
  39963. function getStringType(const aStr: UnicodeString): TStringType; overload;
  39964. function stringbufferMatchesStored(const aStr: UnicodeString): Boolean; overload;
  39965. procedure testThrowNsresult; overload;
  39966. procedure testThrowNsresultFromNative; overload;
  39967. function throwToRejectPromise: IJSPromise; overload; // Promise<any>
  39968. function toJSON: IJSObject; overload;
  39969. procedure testNotAllowShared(aBuffer: IJSArrayBufferView); overload;
  39970. procedure testNotAllowShared(aBuffer: IJSArrayBuffer); overload;
  39971. procedure testNotAllowShared(const aBuffer: UnicodeString); overload;
  39972. procedure testAllowShared(aBuffer: IJSArrayBufferView); overload;
  39973. procedure testAllowShared(aBuffer: IJSArrayBuffer); overload;
  39974. procedure testDictWithAllowShared(const aBuffer: TJSDictWithAllowSharedBufferSource); overload;
  39975. procedure testDictWithAllowShared; overload;
  39976. procedure testUnionOfBuffferSource(aFoo: IJSArrayBuffer); overload;
  39977. procedure testUnionOfBuffferSource(aFoo: IJSArrayBufferView); overload;
  39978. procedure testUnionOfBuffferSource(const aFoo: UnicodeString); overload;
  39979. procedure testUnionOfAllowSharedBuffferSource(aFoo: IJSArrayBuffer); overload;
  39980. procedure testUnionOfAllowSharedBuffferSource(aFoo: IJSArrayBufferView); overload;
  39981. function staticAndNonStaticOverload(aFoo: Cardinal): Boolean; overload;
  39982. function staticAndNonStaticOverload: Boolean; overload;
  39983. class function JSClassName: UnicodeString; override;
  39984. class function Cast(const Intf: IJSObject): IJSTestFunctions;
  39985. property one: LongInt read _Getone;
  39986. property two: LongInt read _Gettwo;
  39987. property wrapperCachedNonISupportsObject: IJSWrapperCachedNonISupportsTestInterface read _GetwrapperCachedNonISupportsObject;
  39988. property clampedNullableOctet: Byte read _GetclampedNullableOctet write _SetclampedNullableOctet;
  39989. property enforcedNullableOctet: Byte read _GetenforcedNullableOctet write _SetenforcedNullableOctet;
  39990. property arrayBufferView: IJSArrayBufferView read _GetarrayBufferView write _SetarrayBufferView;
  39991. property allowSharedArrayBufferView: IJSArrayBufferView read _GetallowSharedArrayBufferView write _SetallowSharedArrayBufferView;
  39992. property sequenceOfArrayBufferView: TIJSArrayBufferViewDynArray read _GetsequenceOfArrayBufferView write _SetsequenceOfArrayBufferView;
  39993. property sequenceOfAllowSharedArrayBufferView: TIJSArrayBufferViewDynArray read _GetsequenceOfAllowSharedArrayBufferView write _SetsequenceOfAllowSharedArrayBufferView;
  39994. property arrayBuffer: IJSArrayBuffer read _GetarrayBuffer write _SetarrayBuffer;
  39995. property allowSharedArrayBuffer: IJSArrayBuffer read _GetallowSharedArrayBuffer write _SetallowSharedArrayBuffer;
  39996. property sequenceOfArrayBuffer: TIJSArrayBufferDynArray read _GetsequenceOfArrayBuffer write _SetsequenceOfArrayBuffer;
  39997. property sequenceOfAllowSharedArrayBuffer: TIJSArrayBufferDynArray read _GetsequenceOfAllowSharedArrayBuffer write _SetsequenceOfAllowSharedArrayBuffer;
  39998. end;
  39999. { --------------------------------------------------------------------
  40000. TJSTestInterfaceMaplike
  40001. --------------------------------------------------------------------}
  40002. IJSTestInterfaceMaplike = interface(IJSObject)
  40003. ['{3C073C18-1B09-38AD-8273-8CBC2ED812DA}']
  40004. function _Getsize : LongInt;
  40005. function get(key: UnicodeString) : LongInt;
  40006. function has(key: UnicodeString) : Boolean;
  40007. function entries : IJSIterator;
  40008. function keys : IJSIterator;
  40009. function values : IJSIterator;
  40010. procedure set_(key: UnicodeString; value : LongInt);
  40011. procedure clear;
  40012. procedure delete(key: UnicodeString);
  40013. procedure setInternal(const aAKey: UnicodeString; aAValue: LongInt);
  40014. procedure clearInternal;
  40015. function deleteInternal(const aAKey: UnicodeString): Boolean;
  40016. function hasInternal(const aAKey: UnicodeString): Boolean;
  40017. function getInternal(const aAKey: UnicodeString): LongInt;
  40018. property size : LongInt read _Getsize;
  40019. end;
  40020. TJSTestInterfaceMaplike = class(TJSObject,IJSTestInterfaceMaplike)
  40021. Protected
  40022. function _Getsize : LongInt;
  40023. Public
  40024. constructor Create; overload;
  40025. function get(key: UnicodeString) : LongInt;
  40026. function has(key: UnicodeString) : Boolean;
  40027. function entries : IJSIterator;
  40028. function keys : IJSIterator;
  40029. function values : IJSIterator;
  40030. procedure set_(key: UnicodeString; value : LongInt);
  40031. procedure clear;
  40032. procedure delete(key: UnicodeString);
  40033. procedure setInternal(const aAKey: UnicodeString; aAValue: LongInt); overload;
  40034. procedure clearInternal; overload;
  40035. function deleteInternal(const aAKey: UnicodeString): Boolean; overload;
  40036. function hasInternal(const aAKey: UnicodeString): Boolean; overload;
  40037. function getInternal(const aAKey: UnicodeString): LongInt; overload;
  40038. class function JSClassName: UnicodeString; override;
  40039. class function Cast(const Intf: IJSObject): IJSTestInterfaceMaplike;
  40040. property size : LongInt read _Getsize;
  40041. end;
  40042. { --------------------------------------------------------------------
  40043. TJSTestInterfaceMaplikeObject
  40044. --------------------------------------------------------------------}
  40045. IJSTestInterfaceMaplikeObject = interface(IJSObject)
  40046. ['{A02345CB-5A0F-3A5B-A0C3-EC9DC6F32292}']
  40047. function _Getsize : LongInt;
  40048. function get(key: UnicodeString) : TJSTestInterfaceMaplike;
  40049. function has(key: UnicodeString) : Boolean;
  40050. function entries : IJSIterator;
  40051. function keys : IJSIterator;
  40052. function values : IJSIterator;
  40053. procedure setInternal(const aAKey: UnicodeString);
  40054. procedure clearInternal;
  40055. function deleteInternal(const aAKey: UnicodeString): Boolean;
  40056. function hasInternal(const aAKey: UnicodeString): Boolean;
  40057. function getInternal(const aAKey: UnicodeString): IJSTestInterfaceMaplike;
  40058. property size : LongInt read _Getsize;
  40059. end;
  40060. TJSTestInterfaceMaplikeObject = class(TJSObject,IJSTestInterfaceMaplikeObject)
  40061. Protected
  40062. function _Getsize : LongInt;
  40063. Public
  40064. constructor Create; overload;
  40065. function get(key: UnicodeString) : TJSTestInterfaceMaplike;
  40066. function has(key: UnicodeString) : Boolean;
  40067. function entries : IJSIterator;
  40068. function keys : IJSIterator;
  40069. function values : IJSIterator;
  40070. procedure setInternal(const aAKey: UnicodeString); overload;
  40071. procedure clearInternal; overload;
  40072. function deleteInternal(const aAKey: UnicodeString): Boolean; overload;
  40073. function hasInternal(const aAKey: UnicodeString): Boolean; overload;
  40074. function getInternal(const aAKey: UnicodeString): IJSTestInterfaceMaplike; overload;
  40075. class function JSClassName: UnicodeString; override;
  40076. class function Cast(const Intf: IJSObject): IJSTestInterfaceMaplikeObject;
  40077. property size : LongInt read _Getsize;
  40078. end;
  40079. { --------------------------------------------------------------------
  40080. TJSTestInterfaceMaplikeJSObject
  40081. --------------------------------------------------------------------}
  40082. IJSTestInterfaceMaplikeJSObject = interface(IJSObject)
  40083. ['{7A382C4C-A36E-3E1E-8E17-FBBF4DE998B8}']
  40084. function _Getsize : LongInt;
  40085. function get(key: UnicodeString) : IJSObject;
  40086. function has(key: UnicodeString) : Boolean;
  40087. function entries : IJSIterator;
  40088. function keys : IJSIterator;
  40089. function values : IJSIterator;
  40090. procedure setInternal(const aAKey: UnicodeString; aAObject: IJSObject);
  40091. procedure clearInternal;
  40092. function deleteInternal(const aAKey: UnicodeString): Boolean;
  40093. function hasInternal(const aAKey: UnicodeString): Boolean;
  40094. function getInternal(const aAKey: UnicodeString): IJSObject;
  40095. property size : LongInt read _Getsize;
  40096. end;
  40097. TJSTestInterfaceMaplikeJSObject = class(TJSObject,IJSTestInterfaceMaplikeJSObject)
  40098. Protected
  40099. function _Getsize : LongInt;
  40100. Public
  40101. constructor Create; overload;
  40102. function get(key: UnicodeString) : IJSObject;
  40103. function has(key: UnicodeString) : Boolean;
  40104. function entries : IJSIterator;
  40105. function keys : IJSIterator;
  40106. function values : IJSIterator;
  40107. procedure setInternal(const aAKey: UnicodeString; aAObject: IJSObject); overload;
  40108. procedure clearInternal; overload;
  40109. function deleteInternal(const aAKey: UnicodeString): Boolean; overload;
  40110. function hasInternal(const aAKey: UnicodeString): Boolean; overload;
  40111. function getInternal(const aAKey: UnicodeString): IJSObject; overload;
  40112. class function JSClassName: UnicodeString; override;
  40113. class function Cast(const Intf: IJSObject): IJSTestInterfaceMaplikeJSObject;
  40114. property size : LongInt read _Getsize;
  40115. end;
  40116. { --------------------------------------------------------------------
  40117. TJSTestInterfaceSetlike
  40118. --------------------------------------------------------------------}
  40119. IJSTestInterfaceSetlike = interface(IJSObject)
  40120. ['{33451400-EA1A-3505-BFF0-01989DE44A1E}']
  40121. end;
  40122. TJSTestInterfaceSetlike = class(TJSObject,IJSTestInterfaceSetlike)
  40123. Protected
  40124. Public
  40125. constructor Create; overload;
  40126. class function JSClassName: UnicodeString; override;
  40127. class function Cast(const Intf: IJSObject): IJSTestInterfaceSetlike;
  40128. end;
  40129. { --------------------------------------------------------------------
  40130. TJSTestInterfaceSetlikeNode
  40131. --------------------------------------------------------------------}
  40132. IJSTestInterfaceSetlikeNode = interface(IJSObject)
  40133. ['{0DEC5FE8-82B8-316C-9820-DC4FA83B982B}']
  40134. end;
  40135. TJSTestInterfaceSetlikeNode = class(TJSObject,IJSTestInterfaceSetlikeNode)
  40136. Protected
  40137. Public
  40138. constructor Create; overload;
  40139. class function JSClassName: UnicodeString; override;
  40140. class function Cast(const Intf: IJSObject): IJSTestInterfaceSetlikeNode;
  40141. end;
  40142. { --------------------------------------------------------------------
  40143. TJSTestInterfaceIterableSingle
  40144. --------------------------------------------------------------------}
  40145. IJSTestInterfaceIterableSingle = interface(IJSObject)
  40146. ['{73E6F6DB-3825-3AB6-A40B-0D9A11EA9FA6}']
  40147. function _Getlength_: Cardinal;
  40148. function GetDefault(aIndex: Cardinal): LongInt;
  40149. property length_: Cardinal read _Getlength_;
  40150. end;
  40151. TJSTestInterfaceIterableSingle = class(TJSObject,IJSTestInterfaceIterableSingle)
  40152. Protected
  40153. function _Getlength_: Cardinal;
  40154. Public
  40155. constructor Create; overload;
  40156. function GetDefault(aIndex: Cardinal): LongInt; overload;
  40157. class function JSClassName: UnicodeString; override;
  40158. class function Cast(const Intf: IJSObject): IJSTestInterfaceIterableSingle;
  40159. property length_: Cardinal read _Getlength_;
  40160. end;
  40161. { --------------------------------------------------------------------
  40162. TJSTestInterfaceIterableDouble
  40163. --------------------------------------------------------------------}
  40164. IJSTestInterfaceIterableDouble = interface(IJSObject)
  40165. ['{5FB6D8DD-A3B1-33A8-B1F6-FA86A5574E49}']
  40166. end;
  40167. TJSTestInterfaceIterableDouble = class(TJSObject,IJSTestInterfaceIterableDouble)
  40168. Protected
  40169. Public
  40170. constructor Create; overload;
  40171. class function JSClassName: UnicodeString; override;
  40172. class function Cast(const Intf: IJSObject): IJSTestInterfaceIterableDouble;
  40173. end;
  40174. { --------------------------------------------------------------------
  40175. TJSTestInterfaceIterableDoubleUnion
  40176. --------------------------------------------------------------------}
  40177. IJSTestInterfaceIterableDoubleUnion = interface(IJSObject)
  40178. ['{2B351312-C712-3240-9E7E-906168DD3F66}']
  40179. end;
  40180. TJSTestInterfaceIterableDoubleUnion = class(TJSObject,IJSTestInterfaceIterableDoubleUnion)
  40181. Protected
  40182. Public
  40183. constructor Create; overload;
  40184. class function JSClassName: UnicodeString; override;
  40185. class function Cast(const Intf: IJSObject): IJSTestInterfaceIterableDoubleUnion;
  40186. end;
  40187. { --------------------------------------------------------------------
  40188. TJSTestInterfaceAsyncIterableSingle
  40189. --------------------------------------------------------------------}
  40190. IJSTestInterfaceAsyncIterableSingle = interface(IJSObject)
  40191. ['{85D14E92-B740-3240-9E7E-4F482A7A40D3}']
  40192. end;
  40193. TJSTestInterfaceAsyncIterableSingle = class(TJSObject,IJSTestInterfaceAsyncIterableSingle)
  40194. Protected
  40195. Public
  40196. constructor Create(const aOptions: TJSTestInterfaceAsyncIterableSingleOptions); overload;
  40197. constructor Create; overload;
  40198. class function JSClassName: UnicodeString; override;
  40199. class function Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIterableSingle;
  40200. end;
  40201. { --------------------------------------------------------------------
  40202. TJSTestInterfaceAsyncIterableSingleWithArgs
  40203. --------------------------------------------------------------------}
  40204. IJSTestInterfaceAsyncIterableSingleWithArgs = interface(IJSObject)
  40205. ['{77196D51-DA58-3277-BA0F-888CEF4ABEB6}']
  40206. function _GetreturnCallCount: LongInt;
  40207. function _GetreturnLastCalledWith: Variant;
  40208. property returnCallCount: LongInt read _GetreturnCallCount;
  40209. property returnLastCalledWith: Variant read _GetreturnLastCalledWith;
  40210. end;
  40211. TJSTestInterfaceAsyncIterableSingleWithArgs = class(TJSObject,IJSTestInterfaceAsyncIterableSingleWithArgs)
  40212. Protected
  40213. function _GetreturnCallCount: LongInt;
  40214. function _GetreturnLastCalledWith: Variant;
  40215. Public
  40216. constructor Create; overload;
  40217. class function JSClassName: UnicodeString; override;
  40218. class function Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIterableSingleWithArgs;
  40219. property returnCallCount: LongInt read _GetreturnCallCount;
  40220. property returnLastCalledWith: Variant read _GetreturnLastCalledWith;
  40221. end;
  40222. { --------------------------------------------------------------------
  40223. TJSTestInterfaceAsyncIterableDouble
  40224. --------------------------------------------------------------------}
  40225. IJSTestInterfaceAsyncIterableDouble = interface(IJSObject)
  40226. ['{85D1135A-8F40-3240-9E7E-4F482A7A40D3}']
  40227. end;
  40228. TJSTestInterfaceAsyncIterableDouble = class(TJSObject,IJSTestInterfaceAsyncIterableDouble)
  40229. Protected
  40230. Public
  40231. constructor Create; overload;
  40232. class function JSClassName: UnicodeString; override;
  40233. class function Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIterableDouble;
  40234. end;
  40235. { --------------------------------------------------------------------
  40236. TJSTestInterfaceAsyncIterableDoubleUnion
  40237. --------------------------------------------------------------------}
  40238. IJSTestInterfaceAsyncIterableDoubleUnion = interface(IJSObject)
  40239. ['{C84AA340-4EDE-3D51-9226-1B7FEEC42DB4}']
  40240. end;
  40241. TJSTestInterfaceAsyncIterableDoubleUnion = class(TJSObject,IJSTestInterfaceAsyncIterableDoubleUnion)
  40242. Protected
  40243. Public
  40244. constructor Create; overload;
  40245. class function JSClassName: UnicodeString; override;
  40246. class function Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIterableDoubleUnion;
  40247. end;
  40248. { --------------------------------------------------------------------
  40249. TJSTestInterfaceObservableArray
  40250. --------------------------------------------------------------------}
  40251. TBooleanDynArray = IJSArray; // array of boolean
  40252. TJSTestInterfaceObservableArrayDynArray = IJSArray; // array of TestInterfaceObservableArray
  40253. IJSTestInterfaceObservableArray = interface(IJSObject)
  40254. ['{8DE24CE0-BA83-3D88-A74B-3F54110911ED}']
  40255. function _GetobservableArrayBoolean: TBooleanDynArray;
  40256. function _GetobservableArrayObject: TIJSObjectDynArray;
  40257. function _GetobservableArrayInterface: TJSTestInterfaceObservableArrayDynArray;
  40258. procedure _SetobservableArrayBoolean(const aValue: TBooleanDynArray);
  40259. procedure _SetobservableArrayObject(const aValue: TIJSObjectDynArray);
  40260. procedure _SetobservableArrayInterface(const aValue: TJSTestInterfaceObservableArrayDynArray);
  40261. function booleanElementAtInternal(aIndex: Cardinal): Boolean;
  40262. function interfaceElementAtInternal(aIndex: Cardinal): IJSTestInterfaceObservableArray;
  40263. function objectElementAtInternal(aIndex: Cardinal): IJSObject;
  40264. procedure booleanReplaceElementAtInternal(aIndex: Cardinal; aValue: Boolean);
  40265. procedure interfaceReplaceElementAtInternal(aIndex: Cardinal; aValue: IJSTestInterfaceObservableArray);
  40266. procedure objectReplaceElementAtInternal(aIndex: Cardinal; aValue: IJSObject);
  40267. procedure booleanAppendElementInternal(aValue: Boolean);
  40268. procedure interfaceAppendElementInternal(aValue: IJSTestInterfaceObservableArray);
  40269. procedure objectAppendElementInternal(aValue: IJSObject);
  40270. procedure booleanRemoveLastElementInternal;
  40271. procedure interfaceRemoveLastElementInternal;
  40272. procedure objectRemoveLastElementInternal;
  40273. function booleanLengthInternal: Cardinal;
  40274. function interfaceLengthInternal: Cardinal;
  40275. function objectLengthInternal: Cardinal;
  40276. property observableArrayBoolean: TBooleanDynArray read _GetobservableArrayBoolean write _SetobservableArrayBoolean;
  40277. property observableArrayObject: TIJSObjectDynArray read _GetobservableArrayObject write _SetobservableArrayObject;
  40278. property observableArrayInterface: TJSTestInterfaceObservableArrayDynArray read _GetobservableArrayInterface write _SetobservableArrayInterface;
  40279. end;
  40280. TJSTestInterfaceObservableArray = class(TJSObject,IJSTestInterfaceObservableArray)
  40281. Protected
  40282. function _GetobservableArrayBoolean: TBooleanDynArray;
  40283. function _GetobservableArrayObject: TIJSObjectDynArray;
  40284. function _GetobservableArrayInterface: TJSTestInterfaceObservableArrayDynArray;
  40285. procedure _SetobservableArrayBoolean(const aValue: TBooleanDynArray);
  40286. procedure _SetobservableArrayObject(const aValue: TIJSObjectDynArray);
  40287. procedure _SetobservableArrayInterface(const aValue: TJSTestInterfaceObservableArrayDynArray);
  40288. Public
  40289. constructor Create(const aCallbacks: TJSObservableArrayCallbacks); overload;
  40290. constructor Create; overload;
  40291. function booleanElementAtInternal(aIndex: Cardinal): Boolean; overload;
  40292. function interfaceElementAtInternal(aIndex: Cardinal): IJSTestInterfaceObservableArray; overload;
  40293. function objectElementAtInternal(aIndex: Cardinal): IJSObject; overload;
  40294. procedure booleanReplaceElementAtInternal(aIndex: Cardinal; aValue: Boolean); overload;
  40295. procedure interfaceReplaceElementAtInternal(aIndex: Cardinal; aValue: IJSTestInterfaceObservableArray); overload;
  40296. procedure objectReplaceElementAtInternal(aIndex: Cardinal; aValue: IJSObject); overload;
  40297. procedure booleanAppendElementInternal(aValue: Boolean); overload;
  40298. procedure interfaceAppendElementInternal(aValue: IJSTestInterfaceObservableArray); overload;
  40299. procedure objectAppendElementInternal(aValue: IJSObject); overload;
  40300. procedure booleanRemoveLastElementInternal; overload;
  40301. procedure interfaceRemoveLastElementInternal; overload;
  40302. procedure objectRemoveLastElementInternal; overload;
  40303. function booleanLengthInternal: Cardinal; overload;
  40304. function interfaceLengthInternal: Cardinal; overload;
  40305. function objectLengthInternal: Cardinal; overload;
  40306. class function JSClassName: UnicodeString; override;
  40307. class function Cast(const Intf: IJSObject): IJSTestInterfaceObservableArray;
  40308. property observableArrayBoolean: TBooleanDynArray read _GetobservableArrayBoolean write _SetobservableArrayBoolean;
  40309. property observableArrayObject: TIJSObjectDynArray read _GetobservableArrayObject write _SetobservableArrayObject;
  40310. property observableArrayInterface: TJSTestInterfaceObservableArrayDynArray read _GetobservableArrayInterface write _SetobservableArrayInterface;
  40311. end;
  40312. { --------------------------------------------------------------------
  40313. TJSTextDecoderCommon
  40314. --------------------------------------------------------------------}
  40315. IJSTextDecoderCommon = interface(IJSObject)
  40316. ['{FC755D5A-36B3-3ABE-A124-2FAE41AECAAD}']
  40317. function _Getencoding: UnicodeString;
  40318. function _Getfatal: Boolean;
  40319. function _GetignoreBOM: Boolean;
  40320. property encoding: UnicodeString read _Getencoding;
  40321. property fatal: Boolean read _Getfatal;
  40322. property ignoreBOM: Boolean read _GetignoreBOM;
  40323. end;
  40324. TJSTextDecoderCommon = class(TJSObject,IJSTextDecoderCommon)
  40325. Protected
  40326. function _Getencoding: UnicodeString;
  40327. function _Getfatal: Boolean;
  40328. function _GetignoreBOM: Boolean;
  40329. Public
  40330. class function JSClassName: UnicodeString; override;
  40331. class function Cast(const Intf: IJSObject): IJSTextDecoderCommon;
  40332. property encoding: UnicodeString read _Getencoding;
  40333. property fatal: Boolean read _Getfatal;
  40334. property ignoreBOM: Boolean read _GetignoreBOM;
  40335. end;
  40336. { --------------------------------------------------------------------
  40337. TJSTextDecoderStream
  40338. --------------------------------------------------------------------}
  40339. IJSTextDecoderStream = interface(IJSObject)
  40340. ['{A1F42831-346C-3DBC-AFF6-8818D7DB18E2}']
  40341. function _Getencoding: UnicodeString;
  40342. function _Getfatal: Boolean;
  40343. function _GetignoreBOM: Boolean;
  40344. function _Getreadable: IJSReadableStream;
  40345. function _Getwritable: IJSWritableStream;
  40346. property encoding: UnicodeString read _Getencoding;
  40347. property fatal: Boolean read _Getfatal;
  40348. property ignoreBOM: Boolean read _GetignoreBOM;
  40349. property readable: IJSReadableStream read _Getreadable;
  40350. property writable: IJSWritableStream read _Getwritable;
  40351. end;
  40352. TJSTextDecoderStream = class(TJSObject,IJSTextDecoderStream)
  40353. Protected
  40354. function _Getencoding: UnicodeString;
  40355. function _Getfatal: Boolean;
  40356. function _GetignoreBOM: Boolean;
  40357. function _Getreadable: IJSReadableStream;
  40358. function _Getwritable: IJSWritableStream;
  40359. Public
  40360. constructor Create(const aLabel_: UnicodeString; const aOptions: TJSTextDecoderOptions); overload;
  40361. constructor Create; overload;
  40362. constructor Create(const aLabel_: UnicodeString); overload;
  40363. class function JSClassName: UnicodeString; override;
  40364. class function Cast(const Intf: IJSObject): IJSTextDecoderStream;
  40365. property encoding: UnicodeString read _Getencoding;
  40366. property fatal: Boolean read _Getfatal;
  40367. property ignoreBOM: Boolean read _GetignoreBOM;
  40368. property readable: IJSReadableStream read _Getreadable;
  40369. property writable: IJSWritableStream read _Getwritable;
  40370. end;
  40371. { --------------------------------------------------------------------
  40372. TJSTextEncoderCommon
  40373. --------------------------------------------------------------------}
  40374. IJSTextEncoderCommon = interface(IJSObject)
  40375. ['{3EEEBBEC-04DA-3DAE-B504-D7FA921BFA66}']
  40376. function _Getencoding: UnicodeString;
  40377. property encoding: UnicodeString read _Getencoding;
  40378. end;
  40379. TJSTextEncoderCommon = class(TJSObject,IJSTextEncoderCommon)
  40380. Protected
  40381. function _Getencoding: UnicodeString;
  40382. Public
  40383. class function JSClassName: UnicodeString; override;
  40384. class function Cast(const Intf: IJSObject): IJSTextEncoderCommon;
  40385. property encoding: UnicodeString read _Getencoding;
  40386. end;
  40387. { --------------------------------------------------------------------
  40388. TJSTextEncoderStream
  40389. --------------------------------------------------------------------}
  40390. IJSTextEncoderStream = interface(IJSObject)
  40391. ['{03F8A40A-F84D-3A60-8341-6D5C3B5EF7CB}']
  40392. function _Getencoding: UnicodeString;
  40393. function _Getreadable: IJSReadableStream;
  40394. function _Getwritable: IJSWritableStream;
  40395. property encoding: UnicodeString read _Getencoding;
  40396. property readable: IJSReadableStream read _Getreadable;
  40397. property writable: IJSWritableStream read _Getwritable;
  40398. end;
  40399. TJSTextEncoderStream = class(TJSObject,IJSTextEncoderStream)
  40400. Protected
  40401. function _Getencoding: UnicodeString;
  40402. function _Getreadable: IJSReadableStream;
  40403. function _Getwritable: IJSWritableStream;
  40404. Public
  40405. constructor Create; overload;
  40406. class function JSClassName: UnicodeString; override;
  40407. class function Cast(const Intf: IJSObject): IJSTextEncoderStream;
  40408. property encoding: UnicodeString read _Getencoding;
  40409. property readable: IJSReadableStream read _Getreadable;
  40410. property writable: IJSWritableStream read _Getwritable;
  40411. end;
  40412. { --------------------------------------------------------------------
  40413. TJSTextTrackCueList
  40414. --------------------------------------------------------------------}
  40415. IJSTextTrackCueList = interface(IJSObject)
  40416. ['{39D17779-8546-3494-95AB-12B1AC639D85}']
  40417. function _Getlength_: Cardinal;
  40418. function GetDefault(aIndex: Cardinal): IJSVTTCue;
  40419. function getCueById(const aId: UnicodeString): IJSVTTCue;
  40420. property length_: Cardinal read _Getlength_;
  40421. end;
  40422. TJSTextTrackCueList = class(TJSObject,IJSTextTrackCueList)
  40423. Protected
  40424. function _Getlength_: Cardinal;
  40425. Public
  40426. function GetDefault(aIndex: Cardinal): IJSVTTCue; overload;
  40427. function getCueById(const aId: UnicodeString): IJSVTTCue; overload;
  40428. class function JSClassName: UnicodeString; override;
  40429. class function Cast(const Intf: IJSObject): IJSTextTrackCueList;
  40430. property length_: Cardinal read _Getlength_;
  40431. end;
  40432. { --------------------------------------------------------------------
  40433. TJSTimeRanges
  40434. --------------------------------------------------------------------}
  40435. IJSTimeRanges = interface(IJSObject)
  40436. ['{551D6112-11F4-3B38-8E16-81F5348C7056}']
  40437. function _Getlength_: Cardinal;
  40438. function start(aIndex: Cardinal): Double;
  40439. function end_(aIndex: Cardinal): Double;
  40440. property length_: Cardinal read _Getlength_;
  40441. end;
  40442. TJSTimeRanges = class(TJSObject,IJSTimeRanges)
  40443. Protected
  40444. function _Getlength_: Cardinal;
  40445. Public
  40446. function start(aIndex: Cardinal): Double; overload;
  40447. function end_(aIndex: Cardinal): Double; overload;
  40448. class function JSClassName: UnicodeString; override;
  40449. class function Cast(const Intf: IJSObject): IJSTimeRanges;
  40450. property length_: Cardinal read _Getlength_;
  40451. end;
  40452. { --------------------------------------------------------------------
  40453. TJSTouch
  40454. --------------------------------------------------------------------}
  40455. IJSTouch = interface(IJSObject)
  40456. ['{17132850-3E3C-3FD9-8067-FC4E4CC9B925}']
  40457. function _Getidentifier: LongInt;
  40458. function _Gettarget: IJSEventTarget;
  40459. function _GetscreenX: LongInt;
  40460. function _GetscreenY: LongInt;
  40461. function _GetclientX: LongInt;
  40462. function _GetclientY: LongInt;
  40463. function _GetpageX: LongInt;
  40464. function _GetpageY: LongInt;
  40465. function _GetradiusX: LongInt;
  40466. function _GetradiusY: LongInt;
  40467. function _GetrotationAngle: Single;
  40468. function _Getforce: Single;
  40469. property identifier: LongInt read _Getidentifier;
  40470. property target: IJSEventTarget read _Gettarget;
  40471. property screenX: LongInt read _GetscreenX;
  40472. property screenY: LongInt read _GetscreenY;
  40473. property clientX: LongInt read _GetclientX;
  40474. property clientY: LongInt read _GetclientY;
  40475. property pageX: LongInt read _GetpageX;
  40476. property pageY: LongInt read _GetpageY;
  40477. property radiusX: LongInt read _GetradiusX;
  40478. property radiusY: LongInt read _GetradiusY;
  40479. property rotationAngle: Single read _GetrotationAngle;
  40480. property force: Single read _Getforce;
  40481. end;
  40482. TJSTouch = class(TJSObject,IJSTouch)
  40483. Protected
  40484. function _Getidentifier: LongInt;
  40485. function _Gettarget: IJSEventTarget;
  40486. function _GetscreenX: LongInt;
  40487. function _GetscreenY: LongInt;
  40488. function _GetclientX: LongInt;
  40489. function _GetclientY: LongInt;
  40490. function _GetpageX: LongInt;
  40491. function _GetpageY: LongInt;
  40492. function _GetradiusX: LongInt;
  40493. function _GetradiusY: LongInt;
  40494. function _GetrotationAngle: Single;
  40495. function _Getforce: Single;
  40496. Public
  40497. constructor Create(const aTouchInitDict: TJSTouchInit); overload;
  40498. class function JSClassName: UnicodeString; override;
  40499. class function Cast(const Intf: IJSObject): IJSTouch;
  40500. property identifier: LongInt read _Getidentifier;
  40501. property target: IJSEventTarget read _Gettarget;
  40502. property screenX: LongInt read _GetscreenX;
  40503. property screenY: LongInt read _GetscreenY;
  40504. property clientX: LongInt read _GetclientX;
  40505. property clientY: LongInt read _GetclientY;
  40506. property pageX: LongInt read _GetpageX;
  40507. property pageY: LongInt read _GetpageY;
  40508. property radiusX: LongInt read _GetradiusX;
  40509. property radiusY: LongInt read _GetradiusY;
  40510. property rotationAngle: Single read _GetrotationAngle;
  40511. property force: Single read _Getforce;
  40512. end;
  40513. { --------------------------------------------------------------------
  40514. TJSTouchList
  40515. --------------------------------------------------------------------}
  40516. IJSTouchList = interface(IJSObject)
  40517. ['{98ACB12D-DCF5-3F03-9DDC-6C58FE78B275}']
  40518. function _Getlength_: Cardinal;
  40519. function item(aIndex: Cardinal): IJSTouch;
  40520. property length_: Cardinal read _Getlength_;
  40521. end;
  40522. TJSTouchList = class(TJSObject,IJSTouchList)
  40523. Protected
  40524. function _Getlength_: Cardinal;
  40525. Public
  40526. function item(aIndex: Cardinal): IJSTouch; overload;
  40527. class function JSClassName: UnicodeString; override;
  40528. class function Cast(const Intf: IJSObject): IJSTouchList;
  40529. property length_: Cardinal read _Getlength_;
  40530. end;
  40531. { --------------------------------------------------------------------
  40532. TJSTransformStream
  40533. --------------------------------------------------------------------}
  40534. IJSTransformStream = interface(IJSObject)
  40535. ['{A90341DC-1035-3A33-9262-35CF394DA293}']
  40536. function _Getreadable: IJSReadableStream;
  40537. function _Getwritable: IJSWritableStream;
  40538. property readable: IJSReadableStream read _Getreadable;
  40539. property writable: IJSWritableStream read _Getwritable;
  40540. end;
  40541. TJSTransformStream = class(TJSObject,IJSTransformStream)
  40542. Protected
  40543. function _Getreadable: IJSReadableStream;
  40544. function _Getwritable: IJSWritableStream;
  40545. Public
  40546. constructor Create(aTransformer: IJSObject; const aWritableStrategy: TJSQueuingStrategy; const aReadableStrategy: TJSQueuingStrategy); overload;
  40547. constructor Create; overload;
  40548. constructor Create(aTransformer: IJSObject); overload;
  40549. constructor Create(aTransformer: IJSObject; const aWritableStrategy: TJSQueuingStrategy); overload;
  40550. class function JSClassName: UnicodeString; override;
  40551. class function Cast(const Intf: IJSObject): IJSTransformStream;
  40552. property readable: IJSReadableStream read _Getreadable;
  40553. property writable: IJSWritableStream read _Getwritable;
  40554. end;
  40555. { --------------------------------------------------------------------
  40556. TJSTransformStreamDefaultController
  40557. --------------------------------------------------------------------}
  40558. IJSTransformStreamDefaultController = interface(IJSObject)
  40559. ['{2E3D75E0-588F-35C4-A25E-F869BB2AC4BB}']
  40560. function _GetdesiredSize: Double;
  40561. procedure enqueue(const aChunk: Variant);
  40562. procedure enqueue;
  40563. procedure error(const aReason: Variant);
  40564. procedure error;
  40565. procedure terminate;
  40566. property desiredSize: Double read _GetdesiredSize;
  40567. end;
  40568. TJSTransformStreamDefaultController = class(TJSObject,IJSTransformStreamDefaultController)
  40569. Protected
  40570. function _GetdesiredSize: Double;
  40571. Public
  40572. procedure enqueue(const aChunk: Variant); overload;
  40573. procedure enqueue; overload;
  40574. procedure error(const aReason: Variant); overload;
  40575. procedure error; overload;
  40576. procedure terminate; overload;
  40577. class function JSClassName: UnicodeString; override;
  40578. class function Cast(const Intf: IJSObject): IJSTransformStreamDefaultController;
  40579. property desiredSize: Double read _GetdesiredSize;
  40580. end;
  40581. { --------------------------------------------------------------------
  40582. TJSTreeWalker
  40583. --------------------------------------------------------------------}
  40584. IJSTreeWalker = interface(IJSObject)
  40585. ['{8191F005-D1AE-37E7-A163-BECD51A61EB0}']
  40586. function _Getroot: IJSNode;
  40587. function _GetwhatToShow: Cardinal;
  40588. function _Getfilter: TNodeFilter;
  40589. function _GetcurrentNode: IJSNode;
  40590. procedure _SetcurrentNode(const aValue: IJSNode);
  40591. function parentNode: IJSNode;
  40592. function firstChild: IJSNode;
  40593. function lastChild: IJSNode;
  40594. function previousSibling: IJSNode;
  40595. function nextSibling: IJSNode;
  40596. function previousNode: IJSNode;
  40597. function nextNode: IJSNode;
  40598. property root: IJSNode read _Getroot;
  40599. property whatToShow: Cardinal read _GetwhatToShow;
  40600. property filter: TNodeFilter read _Getfilter;
  40601. property currentNode: IJSNode read _GetcurrentNode write _SetcurrentNode;
  40602. end;
  40603. TJSTreeWalker = class(TJSObject,IJSTreeWalker)
  40604. Protected
  40605. function _Getroot: IJSNode;
  40606. function _GetwhatToShow: Cardinal;
  40607. function _Getfilter: TNodeFilter;
  40608. function _GetcurrentNode: IJSNode;
  40609. procedure _SetcurrentNode(const aValue: IJSNode);
  40610. Public
  40611. function parentNode: IJSNode; overload;
  40612. function firstChild: IJSNode; overload;
  40613. function lastChild: IJSNode; overload;
  40614. function previousSibling: IJSNode; overload;
  40615. function nextSibling: IJSNode; overload;
  40616. function previousNode: IJSNode; overload;
  40617. function nextNode: IJSNode; overload;
  40618. class function JSClassName: UnicodeString; override;
  40619. class function Cast(const Intf: IJSObject): IJSTreeWalker;
  40620. property root: IJSNode read _Getroot;
  40621. property whatToShow: Cardinal read _GetwhatToShow;
  40622. property filter: TNodeFilter read _Getfilter;
  40623. property currentNode: IJSNode read _GetcurrentNode write _SetcurrentNode;
  40624. end;
  40625. { --------------------------------------------------------------------
  40626. TJSTrustedHTML
  40627. --------------------------------------------------------------------}
  40628. IJSTrustedHTML = interface(IJSObject)
  40629. ['{EEE0CF24-3D4E-399C-A8C7-453A72542131}']
  40630. function toJSON: UnicodeString;
  40631. end;
  40632. TJSTrustedHTML = class(TJSObject,IJSTrustedHTML)
  40633. Protected
  40634. Public
  40635. function toJSON: UnicodeString; overload;
  40636. class function JSClassName: UnicodeString; override;
  40637. class function Cast(const Intf: IJSObject): IJSTrustedHTML;
  40638. end;
  40639. { --------------------------------------------------------------------
  40640. TJSTrustedScript
  40641. --------------------------------------------------------------------}
  40642. IJSTrustedScript = interface(IJSObject)
  40643. ['{668FA775-649B-3DBE-BEF1-F2508D9C1248}']
  40644. function toJSON: UnicodeString;
  40645. end;
  40646. TJSTrustedScript = class(TJSObject,IJSTrustedScript)
  40647. Protected
  40648. Public
  40649. function toJSON: UnicodeString; overload;
  40650. class function JSClassName: UnicodeString; override;
  40651. class function Cast(const Intf: IJSObject): IJSTrustedScript;
  40652. end;
  40653. { --------------------------------------------------------------------
  40654. TJSTrustedScriptURL
  40655. --------------------------------------------------------------------}
  40656. IJSTrustedScriptURL = interface(IJSObject)
  40657. ['{84BB92AA-2E6C-3D1E-B51E-5614E3A01A39}']
  40658. function toJSON: UnicodeString;
  40659. end;
  40660. TJSTrustedScriptURL = class(TJSObject,IJSTrustedScriptURL)
  40661. Protected
  40662. Public
  40663. function toJSON: UnicodeString; overload;
  40664. class function JSClassName: UnicodeString; override;
  40665. class function Cast(const Intf: IJSObject): IJSTrustedScriptURL;
  40666. end;
  40667. { --------------------------------------------------------------------
  40668. TJSTrustedTypePolicy
  40669. --------------------------------------------------------------------}
  40670. IJSTrustedTypePolicy = interface(IJSObject)
  40671. ['{2A4B6CC4-4C28-33D7-BAE2-FE6F44105DBD}']
  40672. function _Getname: UnicodeString;
  40673. function createHTML(const aInput: UnicodeString; const aArguments: Variant): IJSTrustedHTML{; ToDo:varargs};
  40674. function createScript(const aInput: UnicodeString; const aArguments: Variant): IJSTrustedScript{; ToDo:varargs};
  40675. function createScriptURL(const aInput: UnicodeString; const aArguments: Variant): IJSTrustedScriptURL{; ToDo:varargs};
  40676. property name: UnicodeString read _Getname;
  40677. end;
  40678. TJSTrustedTypePolicy = class(TJSObject,IJSTrustedTypePolicy)
  40679. Protected
  40680. function _Getname: UnicodeString;
  40681. Public
  40682. function createHTML(const aInput: UnicodeString; const aArguments: Variant): IJSTrustedHTML{; ToDo:varargs}; overload;
  40683. function createScript(const aInput: UnicodeString; const aArguments: Variant): IJSTrustedScript{; ToDo:varargs}; overload;
  40684. function createScriptURL(const aInput: UnicodeString; const aArguments: Variant): IJSTrustedScriptURL{; ToDo:varargs}; overload;
  40685. class function JSClassName: UnicodeString; override;
  40686. class function Cast(const Intf: IJSObject): IJSTrustedTypePolicy;
  40687. property name: UnicodeString read _Getname;
  40688. end;
  40689. { --------------------------------------------------------------------
  40690. TJSTrustedTypePolicyFactory
  40691. --------------------------------------------------------------------}
  40692. IJSTrustedTypePolicyFactory = interface(IJSObject)
  40693. ['{E0F1F2BD-FCF8-3732-B95C-C814AC944506}']
  40694. function _GetemptyHTML: IJSTrustedHTML;
  40695. function _GetemptyScript: IJSTrustedScript;
  40696. function _GetdefaultPolicy: IJSTrustedTypePolicy;
  40697. function createPolicy(const aPolicyName: UnicodeString; const aPolicyOptions: TJSTrustedTypePolicyOptions): IJSTrustedTypePolicy;
  40698. function createPolicy(const aPolicyName: UnicodeString): IJSTrustedTypePolicy;
  40699. function isHTML(const aValue: Variant): Boolean;
  40700. function isScript(const aValue: Variant): Boolean;
  40701. function isScriptURL(const aValue: Variant): Boolean;
  40702. function getAttributeType(const aTagName: UnicodeString; const aAttribute: UnicodeString; const aElementNs: UnicodeString; const aAttrNs: UnicodeString): UnicodeString;
  40703. function getAttributeType(const aTagName: UnicodeString; const aAttribute: UnicodeString): UnicodeString;
  40704. function getAttributeType(const aTagName: UnicodeString; const aAttribute: UnicodeString; const aElementNs: UnicodeString): UnicodeString;
  40705. function getPropertyType(const aTagName: UnicodeString; const aProperty_: UnicodeString; const aElementNs: UnicodeString): UnicodeString;
  40706. function getPropertyType(const aTagName: UnicodeString; const aProperty_: UnicodeString): UnicodeString;
  40707. property emptyHTML: IJSTrustedHTML read _GetemptyHTML;
  40708. property emptyScript: IJSTrustedScript read _GetemptyScript;
  40709. property defaultPolicy: IJSTrustedTypePolicy read _GetdefaultPolicy;
  40710. end;
  40711. TJSTrustedTypePolicyFactory = class(TJSObject,IJSTrustedTypePolicyFactory)
  40712. Protected
  40713. function _GetemptyHTML: IJSTrustedHTML;
  40714. function _GetemptyScript: IJSTrustedScript;
  40715. function _GetdefaultPolicy: IJSTrustedTypePolicy;
  40716. Public
  40717. function createPolicy(const aPolicyName: UnicodeString; const aPolicyOptions: TJSTrustedTypePolicyOptions): IJSTrustedTypePolicy; overload;
  40718. function createPolicy(const aPolicyName: UnicodeString): IJSTrustedTypePolicy; overload;
  40719. function isHTML(const aValue: Variant): Boolean; overload;
  40720. function isScript(const aValue: Variant): Boolean; overload;
  40721. function isScriptURL(const aValue: Variant): Boolean; overload;
  40722. function getAttributeType(const aTagName: UnicodeString; const aAttribute: UnicodeString; const aElementNs: UnicodeString; const aAttrNs: UnicodeString): UnicodeString; overload;
  40723. function getAttributeType(const aTagName: UnicodeString; const aAttribute: UnicodeString): UnicodeString; overload;
  40724. function getAttributeType(const aTagName: UnicodeString; const aAttribute: UnicodeString; const aElementNs: UnicodeString): UnicodeString; overload;
  40725. function getPropertyType(const aTagName: UnicodeString; const aProperty_: UnicodeString; const aElementNs: UnicodeString): UnicodeString; overload;
  40726. function getPropertyType(const aTagName: UnicodeString; const aProperty_: UnicodeString): UnicodeString; overload;
  40727. class function JSClassName: UnicodeString; override;
  40728. class function Cast(const Intf: IJSObject): IJSTrustedTypePolicyFactory;
  40729. property emptyHTML: IJSTrustedHTML read _GetemptyHTML;
  40730. property emptyScript: IJSTrustedScript read _GetemptyScript;
  40731. property defaultPolicy: IJSTrustedTypePolicy read _GetdefaultPolicy;
  40732. end;
  40733. { --------------------------------------------------------------------
  40734. TJSURL
  40735. --------------------------------------------------------------------}
  40736. IJSURL = interface(IJSObject)
  40737. ['{4C36F951-3654-3EAF-8A46-6B6FE733A990}']
  40738. function _Gethref: UnicodeString;
  40739. function _Getorigin: UnicodeString;
  40740. function _Getprotocol: UnicodeString;
  40741. function _Getusername: UnicodeString;
  40742. function _Getpassword: UnicodeString;
  40743. function _Gethost: UnicodeString;
  40744. function _Gethostname: UnicodeString;
  40745. function _Getport: UnicodeString;
  40746. function _Getpathname: UnicodeString;
  40747. function _Getsearch: UnicodeString;
  40748. function _GetsearchParams: IJSURLSearchParams;
  40749. function _Gethash: UnicodeString;
  40750. procedure _Setprotocol(const aValue: UnicodeString);
  40751. procedure _Setusername(const aValue: UnicodeString);
  40752. procedure _Setpassword(const aValue: UnicodeString);
  40753. procedure _Sethost(const aValue: UnicodeString);
  40754. procedure _Sethostname(const aValue: UnicodeString);
  40755. procedure _Setport(const aValue: UnicodeString);
  40756. procedure _Setpathname(const aValue: UnicodeString);
  40757. procedure _Setsearch(const aValue: UnicodeString);
  40758. procedure _Sethash(const aValue: UnicodeString);
  40759. function toJSON: UnicodeString;
  40760. property href: UnicodeString read _Gethref;
  40761. property origin: UnicodeString read _Getorigin;
  40762. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  40763. property username: UnicodeString read _Getusername write _Setusername;
  40764. property password: UnicodeString read _Getpassword write _Setpassword;
  40765. property host: UnicodeString read _Gethost write _Sethost;
  40766. property hostname: UnicodeString read _Gethostname write _Sethostname;
  40767. property port: UnicodeString read _Getport write _Setport;
  40768. property pathname: UnicodeString read _Getpathname write _Setpathname;
  40769. property search: UnicodeString read _Getsearch write _Setsearch;
  40770. property searchParams: IJSURLSearchParams read _GetsearchParams;
  40771. property hash: UnicodeString read _Gethash write _Sethash;
  40772. end;
  40773. TJSURL = class(TJSObject,IJSURL)
  40774. Protected
  40775. function _Gethref: UnicodeString;
  40776. function _Getorigin: UnicodeString;
  40777. function _Getprotocol: UnicodeString;
  40778. function _Getusername: UnicodeString;
  40779. function _Getpassword: UnicodeString;
  40780. function _Gethost: UnicodeString;
  40781. function _Gethostname: UnicodeString;
  40782. function _Getport: UnicodeString;
  40783. function _Getpathname: UnicodeString;
  40784. function _Getsearch: UnicodeString;
  40785. function _GetsearchParams: IJSURLSearchParams;
  40786. function _Gethash: UnicodeString;
  40787. procedure _Setprotocol(const aValue: UnicodeString);
  40788. procedure _Setusername(const aValue: UnicodeString);
  40789. procedure _Setpassword(const aValue: UnicodeString);
  40790. procedure _Sethost(const aValue: UnicodeString);
  40791. procedure _Sethostname(const aValue: UnicodeString);
  40792. procedure _Setport(const aValue: UnicodeString);
  40793. procedure _Setpathname(const aValue: UnicodeString);
  40794. procedure _Setsearch(const aValue: UnicodeString);
  40795. procedure _Sethash(const aValue: UnicodeString);
  40796. Public
  40797. constructor Create(const aUrl: UnicodeString; const aBase: UnicodeString); overload;
  40798. constructor Create(const aUrl: UnicodeString); overload;
  40799. function parse(const aUrl: UTF8String; const aBase: UTF8String): IJSURL; overload;
  40800. function parse(const aUrl: UTF8String): IJSURL; overload;
  40801. function canParse(const aUrl: UTF8String; const aBase: UTF8String): Boolean; overload;
  40802. function canParse(const aUrl: UTF8String): Boolean; overload;
  40803. function toJSON: UnicodeString; overload;
  40804. function createObjectURL(aBlob: IJSBlob): UnicodeString; overload;
  40805. procedure revokeObjectURL(const aUrl: UnicodeString); overload;
  40806. function createObjectURL(aSource: IJSMediaSource): UnicodeString; overload;
  40807. class function JSClassName: UnicodeString; override;
  40808. class function Cast(const Intf: IJSObject): IJSURL;
  40809. property href: UnicodeString read _Gethref;
  40810. property origin: UnicodeString read _Getorigin;
  40811. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  40812. property username: UnicodeString read _Getusername write _Setusername;
  40813. property password: UnicodeString read _Getpassword write _Setpassword;
  40814. property host: UnicodeString read _Gethost write _Sethost;
  40815. property hostname: UnicodeString read _Gethostname write _Sethostname;
  40816. property port: UnicodeString read _Getport write _Setport;
  40817. property pathname: UnicodeString read _Getpathname write _Setpathname;
  40818. property search: UnicodeString read _Getsearch write _Setsearch;
  40819. property searchParams: IJSURLSearchParams read _GetsearchParams;
  40820. property hash: UnicodeString read _Gethash write _Sethash;
  40821. end;
  40822. { --------------------------------------------------------------------
  40823. TJSURLSearchParams
  40824. --------------------------------------------------------------------}
  40825. // Union of sequence, record, USVString
  40826. TURLSearchParams_New_init_Type = Variant;
  40827. IJSURLSearchParams = interface(IJSObject)
  40828. ['{D4BB2A37-27C0-3CBE-AC51-64CDC367F661}']
  40829. function _Getsize: Cardinal;
  40830. procedure append(const aName: UnicodeString; const aValue: UnicodeString);
  40831. procedure delete(const aName: UnicodeString; const aValue: UnicodeString);
  40832. procedure delete(const aName: UnicodeString);
  40833. function get(const aName: UnicodeString): UnicodeString;
  40834. function getAll(const aName: UnicodeString): TUnicodeStringDynArray;
  40835. function has(const aName: UnicodeString; const aValue: UnicodeString): Boolean;
  40836. function has(const aName: UnicodeString): Boolean;
  40837. procedure set_(const aName: UnicodeString; const aValue: UnicodeString);
  40838. procedure sort;
  40839. property size: Cardinal read _Getsize;
  40840. end;
  40841. TJSURLSearchParams = class(TJSObject,IJSURLSearchParams)
  40842. Protected
  40843. function _Getsize: Cardinal;
  40844. Public
  40845. constructor Create(aInit: IJSObject); overload;
  40846. constructor Create; overload;
  40847. constructor Create(const aInit: TsequenceDynArrayDynArray); overload;
  40848. constructor Create(const aInit: UnicodeString); overload;
  40849. procedure append(const aName: UnicodeString; const aValue: UnicodeString); overload;
  40850. procedure delete(const aName: UnicodeString; const aValue: UnicodeString); overload;
  40851. procedure delete(const aName: UnicodeString); overload;
  40852. function get(const aName: UnicodeString): UnicodeString; overload;
  40853. function getAll(const aName: UnicodeString): TUnicodeStringDynArray; overload;
  40854. function has(const aName: UnicodeString; const aValue: UnicodeString): Boolean; overload;
  40855. function has(const aName: UnicodeString): Boolean; overload;
  40856. procedure set_(const aName: UnicodeString; const aValue: UnicodeString); overload;
  40857. procedure sort; overload;
  40858. class function JSClassName: UnicodeString; override;
  40859. class function Cast(const Intf: IJSObject): IJSURLSearchParams;
  40860. property size: Cardinal read _Getsize;
  40861. end;
  40862. { --------------------------------------------------------------------
  40863. TJSUserActivation
  40864. --------------------------------------------------------------------}
  40865. IJSUserActivation = interface(IJSObject)
  40866. ['{B8818CB7-D1B3-3E96-AB42-B878ED33CADC}']
  40867. function _GethasBeenActive: Boolean;
  40868. function _GetisActive: Boolean;
  40869. property hasBeenActive: Boolean read _GethasBeenActive;
  40870. property isActive: Boolean read _GetisActive;
  40871. end;
  40872. TJSUserActivation = class(TJSObject,IJSUserActivation)
  40873. Protected
  40874. function _GethasBeenActive: Boolean;
  40875. function _GetisActive: Boolean;
  40876. Public
  40877. class function JSClassName: UnicodeString; override;
  40878. class function Cast(const Intf: IJSObject): IJSUserActivation;
  40879. property hasBeenActive: Boolean read _GethasBeenActive;
  40880. property isActive: Boolean read _GetisActive;
  40881. end;
  40882. { --------------------------------------------------------------------
  40883. TJSValidityState
  40884. --------------------------------------------------------------------}
  40885. IJSValidityState = interface(IJSObject)
  40886. ['{C907A0BC-CCB8-3706-BA75-944E8B184B53}']
  40887. function _GetvalueMissing: Boolean;
  40888. function _GettypeMismatch: Boolean;
  40889. function _GetpatternMismatch: Boolean;
  40890. function _GettooLong: Boolean;
  40891. function _GettooShort: Boolean;
  40892. function _GetrangeUnderflow: Boolean;
  40893. function _GetrangeOverflow: Boolean;
  40894. function _GetstepMismatch: Boolean;
  40895. function _GetbadInput: Boolean;
  40896. function _GetcustomError: Boolean;
  40897. function _Getvalid: Boolean;
  40898. property valueMissing: Boolean read _GetvalueMissing;
  40899. property typeMismatch: Boolean read _GettypeMismatch;
  40900. property patternMismatch: Boolean read _GetpatternMismatch;
  40901. property tooLong: Boolean read _GettooLong;
  40902. property tooShort: Boolean read _GettooShort;
  40903. property rangeUnderflow: Boolean read _GetrangeUnderflow;
  40904. property rangeOverflow: Boolean read _GetrangeOverflow;
  40905. property stepMismatch: Boolean read _GetstepMismatch;
  40906. property badInput: Boolean read _GetbadInput;
  40907. property customError: Boolean read _GetcustomError;
  40908. property valid: Boolean read _Getvalid;
  40909. end;
  40910. TJSValidityState = class(TJSObject,IJSValidityState)
  40911. Protected
  40912. function _GetvalueMissing: Boolean;
  40913. function _GettypeMismatch: Boolean;
  40914. function _GetpatternMismatch: Boolean;
  40915. function _GettooLong: Boolean;
  40916. function _GettooShort: Boolean;
  40917. function _GetrangeUnderflow: Boolean;
  40918. function _GetrangeOverflow: Boolean;
  40919. function _GetstepMismatch: Boolean;
  40920. function _GetbadInput: Boolean;
  40921. function _GetcustomError: Boolean;
  40922. function _Getvalid: Boolean;
  40923. Public
  40924. class function JSClassName: UnicodeString; override;
  40925. class function Cast(const Intf: IJSObject): IJSValidityState;
  40926. property valueMissing: Boolean read _GetvalueMissing;
  40927. property typeMismatch: Boolean read _GettypeMismatch;
  40928. property patternMismatch: Boolean read _GetpatternMismatch;
  40929. property tooLong: Boolean read _GettooLong;
  40930. property tooShort: Boolean read _GettooShort;
  40931. property rangeUnderflow: Boolean read _GetrangeUnderflow;
  40932. property rangeOverflow: Boolean read _GetrangeOverflow;
  40933. property stepMismatch: Boolean read _GetstepMismatch;
  40934. property badInput: Boolean read _GetbadInput;
  40935. property customError: Boolean read _GetcustomError;
  40936. property valid: Boolean read _Getvalid;
  40937. end;
  40938. { --------------------------------------------------------------------
  40939. TJSVideoColorSpace
  40940. --------------------------------------------------------------------}
  40941. IJSVideoColorSpace = interface(IJSObject)
  40942. ['{DEB44931-8927-32B3-A503-84237082D19E}']
  40943. function _Getprimaries: TVideoColorPrimaries;
  40944. function _Gettransfer: TVideoTransferCharacteristics;
  40945. function _Getmatrix: TVideoMatrixCoefficients;
  40946. function _GetfullRange: Boolean;
  40947. function toJSON: IJSObject;
  40948. property primaries: TVideoColorPrimaries read _Getprimaries;
  40949. property transfer: TVideoTransferCharacteristics read _Gettransfer;
  40950. property matrix: TVideoMatrixCoefficients read _Getmatrix;
  40951. property fullRange: Boolean read _GetfullRange;
  40952. end;
  40953. TJSVideoColorSpace = class(TJSObject,IJSVideoColorSpace)
  40954. Protected
  40955. function _Getprimaries: TVideoColorPrimaries;
  40956. function _Gettransfer: TVideoTransferCharacteristics;
  40957. function _Getmatrix: TVideoMatrixCoefficients;
  40958. function _GetfullRange: Boolean;
  40959. Public
  40960. constructor Create(const aInit: TJSVideoColorSpaceInit); overload;
  40961. constructor Create; overload;
  40962. function toJSON: IJSObject; overload;
  40963. class function JSClassName: UnicodeString; override;
  40964. class function Cast(const Intf: IJSObject): IJSVideoColorSpace;
  40965. property primaries: TVideoColorPrimaries read _Getprimaries;
  40966. property transfer: TVideoTransferCharacteristics read _Gettransfer;
  40967. property matrix: TVideoMatrixCoefficients read _Getmatrix;
  40968. property fullRange: Boolean read _GetfullRange;
  40969. end;
  40970. { --------------------------------------------------------------------
  40971. TJSVideoFrame
  40972. --------------------------------------------------------------------}
  40973. // Union of ArrayBufferView, ArrayBuffer
  40974. TVideoFrame_copyTo_destination_Type = Variant;
  40975. IJSVideoFrame = interface(IJSObject)
  40976. ['{FA15E2FC-713A-3207-A8EF-68499CB1E361}']
  40977. function _Getformat: TVideoPixelFormat;
  40978. function _GetcodedWidth: Cardinal;
  40979. function _GetcodedHeight: Cardinal;
  40980. function _GetcodedRect: IJSDOMRectReadOnly;
  40981. function _GetvisibleRect: IJSDOMRectReadOnly;
  40982. function _GetdisplayWidth: Cardinal;
  40983. function _GetdisplayHeight: Cardinal;
  40984. function _Getduration: QWord;
  40985. function _Gettimestamp: Int64;
  40986. function _GetcolorSpace: IJSVideoColorSpace;
  40987. function allocationSize(const aOptions: TJSVideoFrameCopyToOptions): Cardinal;
  40988. function allocationSize: Cardinal;
  40989. function copyTo(aDestination: IJSArrayBuffer; const aOptions: TJSVideoFrameCopyToOptions): IJSPromise; // Promise<sequence>
  40990. function copyTo(aDestination: IJSArrayBufferView; const aOptions: TJSVideoFrameCopyToOptions): IJSPromise; // Promise<sequence>
  40991. function copyTo(aDestination: IJSArrayBufferView): IJSPromise; // Promise<sequence>
  40992. function copyTo(aDestination: IJSArrayBuffer): IJSPromise; // Promise<sequence>
  40993. function clone: IJSVideoFrame;
  40994. procedure close;
  40995. property format: TVideoPixelFormat read _Getformat;
  40996. property codedWidth: Cardinal read _GetcodedWidth;
  40997. property codedHeight: Cardinal read _GetcodedHeight;
  40998. property codedRect: IJSDOMRectReadOnly read _GetcodedRect;
  40999. property visibleRect: IJSDOMRectReadOnly read _GetvisibleRect;
  41000. property displayWidth: Cardinal read _GetdisplayWidth;
  41001. property displayHeight: Cardinal read _GetdisplayHeight;
  41002. property duration: QWord read _Getduration;
  41003. property timestamp: Int64 read _Gettimestamp;
  41004. property colorSpace: IJSVideoColorSpace read _GetcolorSpace;
  41005. end;
  41006. TJSVideoFrame = class(TJSObject,IJSVideoFrame)
  41007. Protected
  41008. function _Getformat: TVideoPixelFormat;
  41009. function _GetcodedWidth: Cardinal;
  41010. function _GetcodedHeight: Cardinal;
  41011. function _GetcodedRect: IJSDOMRectReadOnly;
  41012. function _GetvisibleRect: IJSDOMRectReadOnly;
  41013. function _GetdisplayWidth: Cardinal;
  41014. function _GetdisplayHeight: Cardinal;
  41015. function _Getduration: QWord;
  41016. function _Gettimestamp: Int64;
  41017. function _GetcolorSpace: IJSVideoColorSpace;
  41018. Public
  41019. constructor Create(aImageElement: IJSHTMLImageElement; const aInit: TJSVideoFrameInit); overload;
  41020. constructor Create(aImageElement: IJSHTMLImageElement); overload;
  41021. constructor Create(aSvgImageElement: IJSSVGImageElement; const aInit: TJSVideoFrameInit); overload;
  41022. constructor Create(aSvgImageElement: IJSSVGImageElement); overload;
  41023. constructor Create(aCanvasElement: IJSHTMLCanvasElement; const aInit: TJSVideoFrameInit); overload;
  41024. constructor Create(aCanvasElement: IJSHTMLCanvasElement); overload;
  41025. constructor Create(aVideoElement: IJSHTMLVideoElement; const aInit: TJSVideoFrameInit); overload;
  41026. constructor Create(aVideoElement: IJSHTMLVideoElement); overload;
  41027. constructor Create(aOffscreenCanvas: IJSOffscreenCanvas; const aInit: TJSVideoFrameInit); overload;
  41028. constructor Create(aOffscreenCanvas: IJSOffscreenCanvas); overload;
  41029. constructor Create(aImageBitmap: IJSImageBitmap; const aInit: TJSVideoFrameInit); overload;
  41030. constructor Create(aImageBitmap: IJSImageBitmap); overload;
  41031. constructor Create(aVideoFrame: IJSVideoFrame; const aInit: TJSVideoFrameInit); overload;
  41032. constructor Create(aVideoFrame: IJSVideoFrame); overload;
  41033. constructor Create(aBufferView: IJSArrayBufferView; const aInit: TJSVideoFrameBufferInit); overload;
  41034. constructor Create(aBuffer: IJSArrayBuffer; const aInit: TJSVideoFrameBufferInit); overload;
  41035. function allocationSize(const aOptions: TJSVideoFrameCopyToOptions): Cardinal; overload;
  41036. function allocationSize: Cardinal; overload;
  41037. function copyTo(aDestination: IJSArrayBuffer; const aOptions: TJSVideoFrameCopyToOptions): IJSPromise; overload; // Promise<sequence>
  41038. function copyTo(aDestination: IJSArrayBufferView; const aOptions: TJSVideoFrameCopyToOptions): IJSPromise; overload; // Promise<sequence>
  41039. function copyTo(aDestination: IJSArrayBufferView): IJSPromise; overload; // Promise<sequence>
  41040. function copyTo(aDestination: IJSArrayBuffer): IJSPromise; overload; // Promise<sequence>
  41041. function clone: IJSVideoFrame; overload;
  41042. procedure close; overload;
  41043. class function JSClassName: UnicodeString; override;
  41044. class function Cast(const Intf: IJSObject): IJSVideoFrame;
  41045. property format: TVideoPixelFormat read _Getformat;
  41046. property codedWidth: Cardinal read _GetcodedWidth;
  41047. property codedHeight: Cardinal read _GetcodedHeight;
  41048. property codedRect: IJSDOMRectReadOnly read _GetcodedRect;
  41049. property visibleRect: IJSDOMRectReadOnly read _GetvisibleRect;
  41050. property displayWidth: Cardinal read _GetdisplayWidth;
  41051. property displayHeight: Cardinal read _GetdisplayHeight;
  41052. property duration: QWord read _Getduration;
  41053. property timestamp: Int64 read _Gettimestamp;
  41054. property colorSpace: IJSVideoColorSpace read _GetcolorSpace;
  41055. end;
  41056. { --------------------------------------------------------------------
  41057. TJSVideoPlaybackQuality
  41058. --------------------------------------------------------------------}
  41059. IJSVideoPlaybackQuality = interface(IJSObject)
  41060. ['{1D96D490-BD3A-398F-9B4B-1A16A3AB347D}']
  41061. function _GetcreationTime: TDOMHighResTimeStamp;
  41062. function _GettotalVideoFrames: Cardinal;
  41063. function _GetdroppedVideoFrames: Cardinal;
  41064. property creationTime: TDOMHighResTimeStamp read _GetcreationTime;
  41065. property totalVideoFrames: Cardinal read _GettotalVideoFrames;
  41066. property droppedVideoFrames: Cardinal read _GetdroppedVideoFrames;
  41067. end;
  41068. TJSVideoPlaybackQuality = class(TJSObject,IJSVideoPlaybackQuality)
  41069. Protected
  41070. function _GetcreationTime: TDOMHighResTimeStamp;
  41071. function _GettotalVideoFrames: Cardinal;
  41072. function _GetdroppedVideoFrames: Cardinal;
  41073. Public
  41074. class function JSClassName: UnicodeString; override;
  41075. class function Cast(const Intf: IJSObject): IJSVideoPlaybackQuality;
  41076. property creationTime: TDOMHighResTimeStamp read _GetcreationTime;
  41077. property totalVideoFrames: Cardinal read _GettotalVideoFrames;
  41078. property droppedVideoFrames: Cardinal read _GetdroppedVideoFrames;
  41079. end;
  41080. { --------------------------------------------------------------------
  41081. TJSVideoTrack
  41082. --------------------------------------------------------------------}
  41083. IJSVideoTrack = interface(IJSObject)
  41084. ['{B608085A-EA2A-37D2-8DE6-05DE4BA2F194}']
  41085. function _Getid: UnicodeString;
  41086. function _Getkind: UnicodeString;
  41087. function _Getlabel_: UnicodeString;
  41088. function _Getlanguage: UnicodeString;
  41089. function _Getselected: Boolean;
  41090. procedure _Setselected(const aValue: Boolean);
  41091. property id: UnicodeString read _Getid;
  41092. property kind: UnicodeString read _Getkind;
  41093. property label_: UnicodeString read _Getlabel_;
  41094. property language: UnicodeString read _Getlanguage;
  41095. property selected: Boolean read _Getselected write _Setselected;
  41096. end;
  41097. TJSVideoTrack = class(TJSObject,IJSVideoTrack)
  41098. Protected
  41099. function _Getid: UnicodeString;
  41100. function _Getkind: UnicodeString;
  41101. function _Getlabel_: UnicodeString;
  41102. function _Getlanguage: UnicodeString;
  41103. function _Getselected: Boolean;
  41104. procedure _Setselected(const aValue: Boolean);
  41105. Public
  41106. class function JSClassName: UnicodeString; override;
  41107. class function Cast(const Intf: IJSObject): IJSVideoTrack;
  41108. property id: UnicodeString read _Getid;
  41109. property kind: UnicodeString read _Getkind;
  41110. property label_: UnicodeString read _Getlabel_;
  41111. property language: UnicodeString read _Getlanguage;
  41112. property selected: Boolean read _Getselected write _Setselected;
  41113. end;
  41114. { --------------------------------------------------------------------
  41115. TJSVRFieldOfView
  41116. --------------------------------------------------------------------}
  41117. IJSVRFieldOfView = interface(IJSObject)
  41118. ['{53C87EC8-E2BF-341F-9F78-1052F7BEF3CB}']
  41119. function _GetupDegrees: Double;
  41120. function _GetrightDegrees: Double;
  41121. function _GetdownDegrees: Double;
  41122. function _GetleftDegrees: Double;
  41123. property upDegrees: Double read _GetupDegrees;
  41124. property rightDegrees: Double read _GetrightDegrees;
  41125. property downDegrees: Double read _GetdownDegrees;
  41126. property leftDegrees: Double read _GetleftDegrees;
  41127. end;
  41128. TJSVRFieldOfView = class(TJSObject,IJSVRFieldOfView)
  41129. Protected
  41130. function _GetupDegrees: Double;
  41131. function _GetrightDegrees: Double;
  41132. function _GetdownDegrees: Double;
  41133. function _GetleftDegrees: Double;
  41134. Public
  41135. class function JSClassName: UnicodeString; override;
  41136. class function Cast(const Intf: IJSObject): IJSVRFieldOfView;
  41137. property upDegrees: Double read _GetupDegrees;
  41138. property rightDegrees: Double read _GetrightDegrees;
  41139. property downDegrees: Double read _GetdownDegrees;
  41140. property leftDegrees: Double read _GetleftDegrees;
  41141. end;
  41142. { --------------------------------------------------------------------
  41143. TJSVRDisplayCapabilities
  41144. --------------------------------------------------------------------}
  41145. IJSVRDisplayCapabilities = interface(IJSObject)
  41146. ['{7E4B9BCB-650F-3CDA-87E6-5B30A9E9D7F3}']
  41147. function _GethasPosition: Boolean;
  41148. function _GethasOrientation: Boolean;
  41149. function _GethasExternalDisplay: Boolean;
  41150. function _GetcanPresent: Boolean;
  41151. function _GetmaxLayers: Cardinal;
  41152. property hasPosition: Boolean read _GethasPosition;
  41153. property hasOrientation: Boolean read _GethasOrientation;
  41154. property hasExternalDisplay: Boolean read _GethasExternalDisplay;
  41155. property canPresent: Boolean read _GetcanPresent;
  41156. property maxLayers: Cardinal read _GetmaxLayers;
  41157. end;
  41158. TJSVRDisplayCapabilities = class(TJSObject,IJSVRDisplayCapabilities)
  41159. Protected
  41160. function _GethasPosition: Boolean;
  41161. function _GethasOrientation: Boolean;
  41162. function _GethasExternalDisplay: Boolean;
  41163. function _GetcanPresent: Boolean;
  41164. function _GetmaxLayers: Cardinal;
  41165. Public
  41166. class function JSClassName: UnicodeString; override;
  41167. class function Cast(const Intf: IJSObject): IJSVRDisplayCapabilities;
  41168. property hasPosition: Boolean read _GethasPosition;
  41169. property hasOrientation: Boolean read _GethasOrientation;
  41170. property hasExternalDisplay: Boolean read _GethasExternalDisplay;
  41171. property canPresent: Boolean read _GetcanPresent;
  41172. property maxLayers: Cardinal read _GetmaxLayers;
  41173. end;
  41174. { --------------------------------------------------------------------
  41175. TJSVRStageParameters
  41176. --------------------------------------------------------------------}
  41177. IJSVRStageParameters = interface(IJSObject)
  41178. ['{3D4122CC-27CC-3D8E-943C-6CEA7170DAE8}']
  41179. function _GetsittingToStandingTransform: IJSFloat32Array;
  41180. function _GetsizeX: Single;
  41181. function _GetsizeZ: Single;
  41182. property sittingToStandingTransform: IJSFloat32Array read _GetsittingToStandingTransform;
  41183. property sizeX: Single read _GetsizeX;
  41184. property sizeZ: Single read _GetsizeZ;
  41185. end;
  41186. TJSVRStageParameters = class(TJSObject,IJSVRStageParameters)
  41187. Protected
  41188. function _GetsittingToStandingTransform: IJSFloat32Array;
  41189. function _GetsizeX: Single;
  41190. function _GetsizeZ: Single;
  41191. Public
  41192. class function JSClassName: UnicodeString; override;
  41193. class function Cast(const Intf: IJSObject): IJSVRStageParameters;
  41194. property sittingToStandingTransform: IJSFloat32Array read _GetsittingToStandingTransform;
  41195. property sizeX: Single read _GetsizeX;
  41196. property sizeZ: Single read _GetsizeZ;
  41197. end;
  41198. { --------------------------------------------------------------------
  41199. TJSVRPose
  41200. --------------------------------------------------------------------}
  41201. IJSVRPose = interface(IJSObject)
  41202. ['{ACD0D404-9D5F-3C23-A140-CC2A0BD35299}']
  41203. function _Getposition: IJSFloat32Array;
  41204. function _GetlinearVelocity: IJSFloat32Array;
  41205. function _GetlinearAcceleration: IJSFloat32Array;
  41206. function _Getorientation: IJSFloat32Array;
  41207. function _GetangularVelocity: IJSFloat32Array;
  41208. function _GetangularAcceleration: IJSFloat32Array;
  41209. property position: IJSFloat32Array read _Getposition;
  41210. property linearVelocity: IJSFloat32Array read _GetlinearVelocity;
  41211. property linearAcceleration: IJSFloat32Array read _GetlinearAcceleration;
  41212. property orientation: IJSFloat32Array read _Getorientation;
  41213. property angularVelocity: IJSFloat32Array read _GetangularVelocity;
  41214. property angularAcceleration: IJSFloat32Array read _GetangularAcceleration;
  41215. end;
  41216. TJSVRPose = class(TJSObject,IJSVRPose)
  41217. Protected
  41218. function _Getposition: IJSFloat32Array;
  41219. function _GetlinearVelocity: IJSFloat32Array;
  41220. function _GetlinearAcceleration: IJSFloat32Array;
  41221. function _Getorientation: IJSFloat32Array;
  41222. function _GetangularVelocity: IJSFloat32Array;
  41223. function _GetangularAcceleration: IJSFloat32Array;
  41224. Public
  41225. class function JSClassName: UnicodeString; override;
  41226. class function Cast(const Intf: IJSObject): IJSVRPose;
  41227. property position: IJSFloat32Array read _Getposition;
  41228. property linearVelocity: IJSFloat32Array read _GetlinearVelocity;
  41229. property linearAcceleration: IJSFloat32Array read _GetlinearAcceleration;
  41230. property orientation: IJSFloat32Array read _Getorientation;
  41231. property angularVelocity: IJSFloat32Array read _GetangularVelocity;
  41232. property angularAcceleration: IJSFloat32Array read _GetangularAcceleration;
  41233. end;
  41234. { --------------------------------------------------------------------
  41235. TJSVRFrameData
  41236. --------------------------------------------------------------------}
  41237. IJSVRFrameData = interface(IJSObject)
  41238. ['{E0BE9F5A-94CD-3E85-B87B-748BF7D6D3E1}']
  41239. function _Gettimestamp: TDOMHighResTimeStamp;
  41240. function _GetleftProjectionMatrix: IJSFloat32Array;
  41241. function _GetleftViewMatrix: IJSFloat32Array;
  41242. function _GetrightProjectionMatrix: IJSFloat32Array;
  41243. function _GetrightViewMatrix: IJSFloat32Array;
  41244. function _Getpose: IJSVRPose;
  41245. property timestamp: TDOMHighResTimeStamp read _Gettimestamp;
  41246. property leftProjectionMatrix: IJSFloat32Array read _GetleftProjectionMatrix;
  41247. property leftViewMatrix: IJSFloat32Array read _GetleftViewMatrix;
  41248. property rightProjectionMatrix: IJSFloat32Array read _GetrightProjectionMatrix;
  41249. property rightViewMatrix: IJSFloat32Array read _GetrightViewMatrix;
  41250. property pose: IJSVRPose read _Getpose;
  41251. end;
  41252. TJSVRFrameData = class(TJSObject,IJSVRFrameData)
  41253. Protected
  41254. function _Gettimestamp: TDOMHighResTimeStamp;
  41255. function _GetleftProjectionMatrix: IJSFloat32Array;
  41256. function _GetleftViewMatrix: IJSFloat32Array;
  41257. function _GetrightProjectionMatrix: IJSFloat32Array;
  41258. function _GetrightViewMatrix: IJSFloat32Array;
  41259. function _Getpose: IJSVRPose;
  41260. Public
  41261. constructor Create; overload;
  41262. class function JSClassName: UnicodeString; override;
  41263. class function Cast(const Intf: IJSObject): IJSVRFrameData;
  41264. property timestamp: TDOMHighResTimeStamp read _Gettimestamp;
  41265. property leftProjectionMatrix: IJSFloat32Array read _GetleftProjectionMatrix;
  41266. property leftViewMatrix: IJSFloat32Array read _GetleftViewMatrix;
  41267. property rightProjectionMatrix: IJSFloat32Array read _GetrightProjectionMatrix;
  41268. property rightViewMatrix: IJSFloat32Array read _GetrightViewMatrix;
  41269. property pose: IJSVRPose read _Getpose;
  41270. end;
  41271. { --------------------------------------------------------------------
  41272. TJSVREyeParameters
  41273. --------------------------------------------------------------------}
  41274. IJSVREyeParameters = interface(IJSObject)
  41275. ['{FE31BC8E-A4DD-3B0C-8AFC-562C9E1E886A}']
  41276. function _Getoffset: IJSFloat32Array;
  41277. function _GetfieldOfView: IJSVRFieldOfView;
  41278. function _GetrenderWidth: Cardinal;
  41279. function _GetrenderHeight: Cardinal;
  41280. property offset: IJSFloat32Array read _Getoffset;
  41281. property fieldOfView: IJSVRFieldOfView read _GetfieldOfView;
  41282. property renderWidth: Cardinal read _GetrenderWidth;
  41283. property renderHeight: Cardinal read _GetrenderHeight;
  41284. end;
  41285. TJSVREyeParameters = class(TJSObject,IJSVREyeParameters)
  41286. Protected
  41287. function _Getoffset: IJSFloat32Array;
  41288. function _GetfieldOfView: IJSVRFieldOfView;
  41289. function _GetrenderWidth: Cardinal;
  41290. function _GetrenderHeight: Cardinal;
  41291. Public
  41292. class function JSClassName: UnicodeString; override;
  41293. class function Cast(const Intf: IJSObject): IJSVREyeParameters;
  41294. property offset: IJSFloat32Array read _Getoffset;
  41295. property fieldOfView: IJSVRFieldOfView read _GetfieldOfView;
  41296. property renderWidth: Cardinal read _GetrenderWidth;
  41297. property renderHeight: Cardinal read _GetrenderHeight;
  41298. end;
  41299. { --------------------------------------------------------------------
  41300. TJSVRMockDisplay
  41301. --------------------------------------------------------------------}
  41302. IJSVRMockDisplay = interface(IJSObject)
  41303. ['{650F81BF-3271-3479-BC54-EDAE2BCAC58E}']
  41304. function _GetcapPosition: Boolean;
  41305. function _GetcapOrientation: Boolean;
  41306. function _GetcapPresent: Boolean;
  41307. function _GetcapExternal: Boolean;
  41308. function _GetcapAngularAcceleration: Boolean;
  41309. function _GetcapLinearAcceleration: Boolean;
  41310. function _GetcapStageParameters: Boolean;
  41311. function _GetcapMountDetection: Boolean;
  41312. function _GetcapPositionEmulated: Boolean;
  41313. procedure _SetcapPosition(const aValue: Boolean);
  41314. procedure _SetcapOrientation(const aValue: Boolean);
  41315. procedure _SetcapPresent(const aValue: Boolean);
  41316. procedure _SetcapExternal(const aValue: Boolean);
  41317. procedure _SetcapAngularAcceleration(const aValue: Boolean);
  41318. procedure _SetcapLinearAcceleration(const aValue: Boolean);
  41319. procedure _SetcapStageParameters(const aValue: Boolean);
  41320. procedure _SetcapMountDetection(const aValue: Boolean);
  41321. procedure _SetcapPositionEmulated(const aValue: Boolean);
  41322. procedure create;
  41323. procedure setEyeFOV(aEye: TVREye; aUpDegree: Double; aRightDegree: Double; aDownDegree: Double; aLeftDegree: Double);
  41324. procedure setEyeOffset(aEye: TVREye; aOffsetX: Double; aOffsetY: Double; aOffsetZ: Double);
  41325. procedure setEyeResolution(aRenderWidth: Cardinal; aRenderHeight: Cardinal);
  41326. procedure setConnected(aConnected: Boolean);
  41327. procedure setMounted(aMounted: Boolean);
  41328. procedure setStageSize(aWidth: Double; aHeight: Double);
  41329. procedure setSittingToStandingTransform(aSittingToStandingTransform: IJSFloat32Array);
  41330. procedure setPose(aPosition: IJSFloat32Array; aLinearVelocity: IJSFloat32Array; aLinearAcceleration: IJSFloat32Array; aOrientation: IJSFloat32Array; aAngularVelocity: IJSFloat32Array; aAngularAcceleration: IJSFloat32Array);
  41331. property capPosition: Boolean read _GetcapPosition write _SetcapPosition;
  41332. property capOrientation: Boolean read _GetcapOrientation write _SetcapOrientation;
  41333. property capPresent: Boolean read _GetcapPresent write _SetcapPresent;
  41334. property capExternal: Boolean read _GetcapExternal write _SetcapExternal;
  41335. property capAngularAcceleration: Boolean read _GetcapAngularAcceleration write _SetcapAngularAcceleration;
  41336. property capLinearAcceleration: Boolean read _GetcapLinearAcceleration write _SetcapLinearAcceleration;
  41337. property capStageParameters: Boolean read _GetcapStageParameters write _SetcapStageParameters;
  41338. property capMountDetection: Boolean read _GetcapMountDetection write _SetcapMountDetection;
  41339. property capPositionEmulated: Boolean read _GetcapPositionEmulated write _SetcapPositionEmulated;
  41340. end;
  41341. TJSVRMockDisplay = class(TJSObject,IJSVRMockDisplay)
  41342. Protected
  41343. function _GetcapPosition: Boolean;
  41344. function _GetcapOrientation: Boolean;
  41345. function _GetcapPresent: Boolean;
  41346. function _GetcapExternal: Boolean;
  41347. function _GetcapAngularAcceleration: Boolean;
  41348. function _GetcapLinearAcceleration: Boolean;
  41349. function _GetcapStageParameters: Boolean;
  41350. function _GetcapMountDetection: Boolean;
  41351. function _GetcapPositionEmulated: Boolean;
  41352. procedure _SetcapPosition(const aValue: Boolean);
  41353. procedure _SetcapOrientation(const aValue: Boolean);
  41354. procedure _SetcapPresent(const aValue: Boolean);
  41355. procedure _SetcapExternal(const aValue: Boolean);
  41356. procedure _SetcapAngularAcceleration(const aValue: Boolean);
  41357. procedure _SetcapLinearAcceleration(const aValue: Boolean);
  41358. procedure _SetcapStageParameters(const aValue: Boolean);
  41359. procedure _SetcapMountDetection(const aValue: Boolean);
  41360. procedure _SetcapPositionEmulated(const aValue: Boolean);
  41361. Public
  41362. procedure create; overload;
  41363. procedure setEyeFOV(aEye: TVREye; aUpDegree: Double; aRightDegree: Double; aDownDegree: Double; aLeftDegree: Double); overload;
  41364. procedure setEyeOffset(aEye: TVREye; aOffsetX: Double; aOffsetY: Double; aOffsetZ: Double); overload;
  41365. procedure setEyeResolution(aRenderWidth: Cardinal; aRenderHeight: Cardinal); overload;
  41366. procedure setConnected(aConnected: Boolean); overload;
  41367. procedure setMounted(aMounted: Boolean); overload;
  41368. procedure setStageSize(aWidth: Double; aHeight: Double); overload;
  41369. procedure setSittingToStandingTransform(aSittingToStandingTransform: IJSFloat32Array); overload;
  41370. procedure setPose(aPosition: IJSFloat32Array; aLinearVelocity: IJSFloat32Array; aLinearAcceleration: IJSFloat32Array; aOrientation: IJSFloat32Array; aAngularVelocity: IJSFloat32Array; aAngularAcceleration: IJSFloat32Array); overload;
  41371. class function JSClassName: UnicodeString; override;
  41372. class function Cast(const Intf: IJSObject): IJSVRMockDisplay;
  41373. property capPosition: Boolean read _GetcapPosition write _SetcapPosition;
  41374. property capOrientation: Boolean read _GetcapOrientation write _SetcapOrientation;
  41375. property capPresent: Boolean read _GetcapPresent write _SetcapPresent;
  41376. property capExternal: Boolean read _GetcapExternal write _SetcapExternal;
  41377. property capAngularAcceleration: Boolean read _GetcapAngularAcceleration write _SetcapAngularAcceleration;
  41378. property capLinearAcceleration: Boolean read _GetcapLinearAcceleration write _SetcapLinearAcceleration;
  41379. property capStageParameters: Boolean read _GetcapStageParameters write _SetcapStageParameters;
  41380. property capMountDetection: Boolean read _GetcapMountDetection write _SetcapMountDetection;
  41381. property capPositionEmulated: Boolean read _GetcapPositionEmulated write _SetcapPositionEmulated;
  41382. end;
  41383. { --------------------------------------------------------------------
  41384. TJSVRMockController
  41385. --------------------------------------------------------------------}
  41386. IJSVRMockController = interface(IJSObject)
  41387. ['{14340086-B23E-3A53-89BF-39AF611F0C7A}']
  41388. function _Gethand: TGamepadHand;
  41389. function _GetcapPosition: Boolean;
  41390. function _GetcapOrientation: Boolean;
  41391. function _GetcapAngularAcceleration: Boolean;
  41392. function _GetcapLinearAcceleration: Boolean;
  41393. function _GetaxisCount: Cardinal;
  41394. function _GetbuttonCount: Cardinal;
  41395. function _GethapticCount: Cardinal;
  41396. procedure _Sethand(const aValue: TGamepadHand);
  41397. procedure _SetcapPosition(const aValue: Boolean);
  41398. procedure _SetcapOrientation(const aValue: Boolean);
  41399. procedure _SetcapAngularAcceleration(const aValue: Boolean);
  41400. procedure _SetcapLinearAcceleration(const aValue: Boolean);
  41401. procedure _SetaxisCount(const aValue: Cardinal);
  41402. procedure _SetbuttonCount(const aValue: Cardinal);
  41403. procedure _SethapticCount(const aValue: Cardinal);
  41404. procedure create;
  41405. procedure clear;
  41406. procedure setPose(aPosition: IJSFloat32Array; aLinearVelocity: IJSFloat32Array; aLinearAcceleration: IJSFloat32Array; aOrientation: IJSFloat32Array; aAngularVelocity: IJSFloat32Array; aAngularAcceleration: IJSFloat32Array);
  41407. procedure setButtonPressed(aButtonIdx: Cardinal; aPressed: Boolean);
  41408. procedure setButtonTouched(aButtonIdx: Cardinal; aTouched: Boolean);
  41409. procedure setButtonTrigger(aButtonIdx: Cardinal; aTrigger: Double);
  41410. procedure setAxisValue(aAxisIdx: Cardinal; aValue: Double);
  41411. property hand: TGamepadHand read _Gethand write _Sethand;
  41412. property capPosition: Boolean read _GetcapPosition write _SetcapPosition;
  41413. property capOrientation: Boolean read _GetcapOrientation write _SetcapOrientation;
  41414. property capAngularAcceleration: Boolean read _GetcapAngularAcceleration write _SetcapAngularAcceleration;
  41415. property capLinearAcceleration: Boolean read _GetcapLinearAcceleration write _SetcapLinearAcceleration;
  41416. property axisCount: Cardinal read _GetaxisCount write _SetaxisCount;
  41417. property buttonCount: Cardinal read _GetbuttonCount write _SetbuttonCount;
  41418. property hapticCount: Cardinal read _GethapticCount write _SethapticCount;
  41419. end;
  41420. TJSVRMockController = class(TJSObject,IJSVRMockController)
  41421. Protected
  41422. function _Gethand: TGamepadHand;
  41423. function _GetcapPosition: Boolean;
  41424. function _GetcapOrientation: Boolean;
  41425. function _GetcapAngularAcceleration: Boolean;
  41426. function _GetcapLinearAcceleration: Boolean;
  41427. function _GetaxisCount: Cardinal;
  41428. function _GetbuttonCount: Cardinal;
  41429. function _GethapticCount: Cardinal;
  41430. procedure _Sethand(const aValue: TGamepadHand);
  41431. procedure _SetcapPosition(const aValue: Boolean);
  41432. procedure _SetcapOrientation(const aValue: Boolean);
  41433. procedure _SetcapAngularAcceleration(const aValue: Boolean);
  41434. procedure _SetcapLinearAcceleration(const aValue: Boolean);
  41435. procedure _SetaxisCount(const aValue: Cardinal);
  41436. procedure _SetbuttonCount(const aValue: Cardinal);
  41437. procedure _SethapticCount(const aValue: Cardinal);
  41438. Public
  41439. procedure create; overload;
  41440. procedure clear; overload;
  41441. procedure setPose(aPosition: IJSFloat32Array; aLinearVelocity: IJSFloat32Array; aLinearAcceleration: IJSFloat32Array; aOrientation: IJSFloat32Array; aAngularVelocity: IJSFloat32Array; aAngularAcceleration: IJSFloat32Array); overload;
  41442. procedure setButtonPressed(aButtonIdx: Cardinal; aPressed: Boolean); overload;
  41443. procedure setButtonTouched(aButtonIdx: Cardinal; aTouched: Boolean); overload;
  41444. procedure setButtonTrigger(aButtonIdx: Cardinal; aTrigger: Double); overload;
  41445. procedure setAxisValue(aAxisIdx: Cardinal; aValue: Double); overload;
  41446. class function JSClassName: UnicodeString; override;
  41447. class function Cast(const Intf: IJSObject): IJSVRMockController;
  41448. property hand: TGamepadHand read _Gethand write _Sethand;
  41449. property capPosition: Boolean read _GetcapPosition write _SetcapPosition;
  41450. property capOrientation: Boolean read _GetcapOrientation write _SetcapOrientation;
  41451. property capAngularAcceleration: Boolean read _GetcapAngularAcceleration write _SetcapAngularAcceleration;
  41452. property capLinearAcceleration: Boolean read _GetcapLinearAcceleration write _SetcapLinearAcceleration;
  41453. property axisCount: Cardinal read _GetaxisCount write _SetaxisCount;
  41454. property buttonCount: Cardinal read _GetbuttonCount write _SetbuttonCount;
  41455. property hapticCount: Cardinal read _GethapticCount write _SethapticCount;
  41456. end;
  41457. { --------------------------------------------------------------------
  41458. TJSVRServiceTest
  41459. --------------------------------------------------------------------}
  41460. IJSVRServiceTest = interface(IJSObject)
  41461. ['{CCB0A371-F1FD-3D10-89A2-F17441BCAC02}']
  41462. function getVRDisplay: IJSVRMockDisplay;
  41463. function getVRController(aControllerIdx: Cardinal): IJSVRMockController;
  41464. function run: IJSPromise; // Promise<undefined>
  41465. function reset: IJSPromise; // Promise<undefined>
  41466. procedure commit;
  41467. procedure end_;
  41468. procedure clearAll;
  41469. procedure timeout(aDuration: Cardinal);
  41470. procedure wait(aDuration: Cardinal);
  41471. procedure waitSubmit;
  41472. procedure waitPresentationStart;
  41473. procedure waitPresentationEnd;
  41474. procedure waitHapticIntensity(aControllerIdx: Cardinal; aHapticIdx: Cardinal; aIntensity: Double);
  41475. procedure captureFrame;
  41476. procedure acknowledgeFrame;
  41477. procedure rejectFrame;
  41478. procedure startTimer;
  41479. procedure stopTimer;
  41480. end;
  41481. TJSVRServiceTest = class(TJSObject,IJSVRServiceTest)
  41482. Protected
  41483. Public
  41484. function getVRDisplay: IJSVRMockDisplay; overload;
  41485. function getVRController(aControllerIdx: Cardinal): IJSVRMockController; overload;
  41486. function run: IJSPromise; overload; // Promise<undefined>
  41487. function reset: IJSPromise; overload; // Promise<undefined>
  41488. procedure commit; overload;
  41489. procedure end_; overload;
  41490. procedure clearAll; overload;
  41491. procedure timeout(aDuration: Cardinal); overload;
  41492. procedure wait(aDuration: Cardinal); overload;
  41493. procedure waitSubmit; overload;
  41494. procedure waitPresentationStart; overload;
  41495. procedure waitPresentationEnd; overload;
  41496. procedure waitHapticIntensity(aControllerIdx: Cardinal; aHapticIdx: Cardinal; aIntensity: Double); overload;
  41497. procedure captureFrame; overload;
  41498. procedure acknowledgeFrame; overload;
  41499. procedure rejectFrame; overload;
  41500. procedure startTimer; overload;
  41501. procedure stopTimer; overload;
  41502. class function JSClassName: UnicodeString; override;
  41503. class function Cast(const Intf: IJSObject): IJSVRServiceTest;
  41504. end;
  41505. { --------------------------------------------------------------------
  41506. TJSVTTRegion
  41507. --------------------------------------------------------------------}
  41508. IJSVTTRegion = interface(IJSObject)
  41509. ['{34566EEC-4270-3759-B489-08A08333E965}']
  41510. function _Getid: UnicodeString;
  41511. function _Getwidth: Double;
  41512. function _Getlines: LongInt;
  41513. function _GetregionAnchorX: Double;
  41514. function _GetregionAnchorY: Double;
  41515. function _GetviewportAnchorX: Double;
  41516. function _GetviewportAnchorY: Double;
  41517. function _Getscroll: TScrollSetting;
  41518. procedure _Setid(const aValue: UnicodeString);
  41519. procedure _Setwidth(const aValue: Double);
  41520. procedure _Setlines(const aValue: LongInt);
  41521. procedure _SetregionAnchorX(const aValue: Double);
  41522. procedure _SetregionAnchorY(const aValue: Double);
  41523. procedure _SetviewportAnchorX(const aValue: Double);
  41524. procedure _SetviewportAnchorY(const aValue: Double);
  41525. procedure _Setscroll(const aValue: TScrollSetting);
  41526. property id: UnicodeString read _Getid write _Setid;
  41527. property width: Double read _Getwidth write _Setwidth;
  41528. property lines: LongInt read _Getlines write _Setlines;
  41529. property regionAnchorX: Double read _GetregionAnchorX write _SetregionAnchorX;
  41530. property regionAnchorY: Double read _GetregionAnchorY write _SetregionAnchorY;
  41531. property viewportAnchorX: Double read _GetviewportAnchorX write _SetviewportAnchorX;
  41532. property viewportAnchorY: Double read _GetviewportAnchorY write _SetviewportAnchorY;
  41533. property scroll: TScrollSetting read _Getscroll write _Setscroll;
  41534. end;
  41535. TJSVTTRegion = class(TJSObject,IJSVTTRegion)
  41536. Protected
  41537. function _Getid: UnicodeString;
  41538. function _Getwidth: Double;
  41539. function _Getlines: LongInt;
  41540. function _GetregionAnchorX: Double;
  41541. function _GetregionAnchorY: Double;
  41542. function _GetviewportAnchorX: Double;
  41543. function _GetviewportAnchorY: Double;
  41544. function _Getscroll: TScrollSetting;
  41545. procedure _Setid(const aValue: UnicodeString);
  41546. procedure _Setwidth(const aValue: Double);
  41547. procedure _Setlines(const aValue: LongInt);
  41548. procedure _SetregionAnchorX(const aValue: Double);
  41549. procedure _SetregionAnchorY(const aValue: Double);
  41550. procedure _SetviewportAnchorX(const aValue: Double);
  41551. procedure _SetviewportAnchorY(const aValue: Double);
  41552. procedure _Setscroll(const aValue: TScrollSetting);
  41553. Public
  41554. constructor Create; overload;
  41555. class function JSClassName: UnicodeString; override;
  41556. class function Cast(const Intf: IJSObject): IJSVTTRegion;
  41557. property id: UnicodeString read _Getid write _Setid;
  41558. property width: Double read _Getwidth write _Setwidth;
  41559. property lines: LongInt read _Getlines write _Setlines;
  41560. property regionAnchorX: Double read _GetregionAnchorX write _SetregionAnchorX;
  41561. property regionAnchorY: Double read _GetregionAnchorY write _SetregionAnchorY;
  41562. property viewportAnchorX: Double read _GetviewportAnchorX write _SetviewportAnchorX;
  41563. property viewportAnchorY: Double read _GetviewportAnchorY write _SetviewportAnchorY;
  41564. property scroll: TScrollSetting read _Getscroll write _Setscroll;
  41565. end;
  41566. { --------------------------------------------------------------------
  41567. TJSWakeLock
  41568. --------------------------------------------------------------------}
  41569. IJSWakeLock = interface(IJSObject)
  41570. ['{854C543B-962B-31C0-A2D3-612A9018C85A}']
  41571. function request(aType_: TWakeLockType): IJSPromise; // Promise<WakeLockSentinel>
  41572. function request: IJSPromise; // Promise<WakeLockSentinel>
  41573. end;
  41574. TJSWakeLock = class(TJSObject,IJSWakeLock)
  41575. Protected
  41576. Public
  41577. function request(aType_: TWakeLockType): IJSPromise; overload; // Promise<WakeLockSentinel>
  41578. function request: IJSPromise; overload; // Promise<WakeLockSentinel>
  41579. class function JSClassName: UnicodeString; override;
  41580. class function Cast(const Intf: IJSObject): IJSWakeLock;
  41581. end;
  41582. { --------------------------------------------------------------------
  41583. TJSAuthenticatorResponse
  41584. --------------------------------------------------------------------}
  41585. IJSAuthenticatorResponse = interface(IJSObject)
  41586. ['{A337EA94-7463-3287-954D-504592DB61AE}']
  41587. function _GetclientDataJSON: IJSArrayBuffer;
  41588. property clientDataJSON: IJSArrayBuffer read _GetclientDataJSON;
  41589. end;
  41590. TJSAuthenticatorResponse = class(TJSObject,IJSAuthenticatorResponse)
  41591. Protected
  41592. function _GetclientDataJSON: IJSArrayBuffer;
  41593. Public
  41594. class function JSClassName: UnicodeString; override;
  41595. class function Cast(const Intf: IJSObject): IJSAuthenticatorResponse;
  41596. property clientDataJSON: IJSArrayBuffer read _GetclientDataJSON;
  41597. end;
  41598. { --------------------------------------------------------------------
  41599. TJSWebGLSampler
  41600. --------------------------------------------------------------------}
  41601. IJSWebGLSampler = interface(IJSObject)
  41602. ['{E6D054BF-5700-3BE0-A260-F0D81AA2A621}']
  41603. end;
  41604. TJSWebGLSampler = class(TJSObject,IJSWebGLSampler)
  41605. Protected
  41606. Public
  41607. class function JSClassName: UnicodeString; override;
  41608. class function Cast(const Intf: IJSObject): IJSWebGLSampler;
  41609. end;
  41610. { --------------------------------------------------------------------
  41611. TJSWebGLSync
  41612. --------------------------------------------------------------------}
  41613. IJSWebGLSync = interface(IJSObject)
  41614. ['{3383B7B5-610A-3240-B869-8DD15390C552}']
  41615. end;
  41616. TJSWebGLSync = class(TJSObject,IJSWebGLSync)
  41617. Protected
  41618. Public
  41619. class function JSClassName: UnicodeString; override;
  41620. class function Cast(const Intf: IJSObject): IJSWebGLSync;
  41621. end;
  41622. { --------------------------------------------------------------------
  41623. TJSWebGLTransformFeedback
  41624. --------------------------------------------------------------------}
  41625. IJSWebGLTransformFeedback = interface(IJSObject)
  41626. ['{D660E8F5-D604-3A42-8FFE-03239D3DE360}']
  41627. end;
  41628. TJSWebGLTransformFeedback = class(TJSObject,IJSWebGLTransformFeedback)
  41629. Protected
  41630. Public
  41631. class function JSClassName: UnicodeString; override;
  41632. class function Cast(const Intf: IJSObject): IJSWebGLTransformFeedback;
  41633. end;
  41634. { --------------------------------------------------------------------
  41635. TJSWebGL2RenderingContext
  41636. --------------------------------------------------------------------}
  41637. TJSWebGLShaderDynArray = IJSArray; // array of WebGLShader
  41638. TGLfloatDynArray = IJSArray; // array of GLfloat
  41639. TGLenumDynArray = IJSArray; // array of GLenum
  41640. TGLintDynArray = IJSArray; // array of GLint
  41641. TGLuintDynArray = IJSArray; // array of GLuint
  41642. IJSWebGL2RenderingContext = interface(IJSObject)
  41643. ['{B1626F5C-7936-30E3-925C-D49BAB0F9AFA}']
  41644. function _Getcanvas: TCanvasSource;
  41645. function _GetdrawingBufferWidth: TGLsizei;
  41646. function _GetdrawingBufferHeight: TGLsizei;
  41647. function getContextAttributes: TJSWebGLContextAttributes;
  41648. function isContextLost: Boolean;
  41649. function getSupportedExtensions: TUnicodeStringDynArray;
  41650. function getExtension(const aName: UnicodeString): IJSObject;
  41651. procedure activeTexture(aTexture: TGLenum);
  41652. procedure attachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader);
  41653. procedure bindAttribLocation(aProgram_: IJSWebGLProgram; aIndex: TGLuint; const aName: UnicodeString);
  41654. procedure bindBuffer(aTarget: TGLenum; aBuffer: IJSWebGLBuffer);
  41655. procedure bindFramebuffer(aTarget: TGLenum; aFramebuffer: IJSWebGLFramebuffer);
  41656. procedure bindRenderbuffer(aTarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer);
  41657. procedure bindTexture(aTarget: TGLenum; aTexture: IJSWebGLTexture);
  41658. procedure blendColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat);
  41659. procedure blendEquation(aMode: TGLenum);
  41660. procedure blendEquationSeparate(aModeRGB: TGLenum; aModeAlpha: TGLenum);
  41661. procedure blendFunc(aSfactor: TGLenum; aDfactor: TGLenum);
  41662. procedure blendFuncSeparate(aSrcRGB: TGLenum; aDstRGB: TGLenum; aSrcAlpha: TGLenum; aDstAlpha: TGLenum);
  41663. function checkFramebufferStatus(aTarget: TGLenum): TGLenum;
  41664. procedure clear(aMask: TGLbitfield);
  41665. procedure clearColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat);
  41666. procedure clearDepth(aDepth: TGLclampf);
  41667. procedure clearStencil(aS_: TGLint);
  41668. procedure colorMask(aRed: TGLboolean; aGreen: TGLboolean; aBlue: TGLboolean; aAlpha: TGLboolean);
  41669. procedure compileShader(aShader: IJSWebGLShader);
  41670. procedure copyTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint);
  41671. procedure copyTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  41672. function createBuffer: IJSWebGLBuffer;
  41673. function createFramebuffer: IJSWebGLFramebuffer;
  41674. function createProgram: IJSWebGLProgram;
  41675. function createRenderbuffer: IJSWebGLRenderbuffer;
  41676. function createShader(aType_: TGLenum): IJSWebGLShader;
  41677. function createTexture: IJSWebGLTexture;
  41678. procedure cullFace(aMode: TGLenum);
  41679. procedure deleteBuffer(aBuffer: IJSWebGLBuffer);
  41680. procedure deleteFramebuffer(aFramebuffer: IJSWebGLFramebuffer);
  41681. procedure deleteProgram(aProgram_: IJSWebGLProgram);
  41682. procedure deleteRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer);
  41683. procedure deleteShader(aShader: IJSWebGLShader);
  41684. procedure deleteTexture(aTexture: IJSWebGLTexture);
  41685. procedure depthFunc(aFunc: TGLenum);
  41686. procedure depthMask(aFlag: TGLboolean);
  41687. procedure depthRange(aZNear: TGLclampf; aZFar: TGLclampf);
  41688. procedure detachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader);
  41689. procedure disable(aCap: TGLenum);
  41690. procedure disableVertexAttribArray(aIndex: TGLuint);
  41691. procedure drawArrays(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei);
  41692. procedure drawElements(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr);
  41693. procedure enable(aCap: TGLenum);
  41694. procedure enableVertexAttribArray(aIndex: TGLuint);
  41695. procedure finish;
  41696. procedure flush;
  41697. procedure framebufferRenderbuffer(aTarget: TGLenum; aAttachment: TGLenum; aRenderbuffertarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer);
  41698. procedure framebufferTexture2D(aTarget: TGLenum; aAttachment: TGLenum; aTextarget: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint);
  41699. procedure frontFace(aMode: TGLenum);
  41700. procedure generateMipmap(aTarget: TGLenum);
  41701. function getActiveAttrib(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  41702. function getActiveUniform(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  41703. function getAttachedShaders(aProgram_: IJSWebGLProgram): TJSWebGLShaderDynArray;
  41704. function getAttribLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint;
  41705. function getBufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  41706. function getParameter(aPname: TGLenum): Variant;
  41707. function getError: TGLenum;
  41708. function getFramebufferAttachmentParameter(aTarget: TGLenum; aAttachment: TGLenum; aPname: TGLenum): Variant;
  41709. function getProgramParameter(aProgram_: IJSWebGLProgram; aPname: TGLenum): Variant;
  41710. function getProgramInfoLog(aProgram_: IJSWebGLProgram): UnicodeString;
  41711. function getRenderbufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  41712. function getShaderParameter(aShader: IJSWebGLShader; aPname: TGLenum): Variant;
  41713. function getShaderPrecisionFormat(aShadertype: TGLenum; aPrecisiontype: TGLenum): IJSWebGLShaderPrecisionFormat;
  41714. function getShaderInfoLog(aShader: IJSWebGLShader): UnicodeString;
  41715. function getShaderSource(aShader: IJSWebGLShader): UnicodeString;
  41716. function getTexParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  41717. function getUniform(aProgram_: IJSWebGLProgram; aLocation: IJSWebGLUniformLocation): Variant;
  41718. function getUniformLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): IJSWebGLUniformLocation;
  41719. function getVertexAttrib(aIndex: TGLuint; aPname: TGLenum): Variant;
  41720. function getVertexAttribOffset(aIndex: TGLuint; aPname: TGLenum): TGLintptr;
  41721. procedure hint(aTarget: TGLenum; aMode: TGLenum);
  41722. function isBuffer(aBuffer: IJSWebGLBuffer): TGLboolean;
  41723. function isEnabled(aCap: TGLenum): TGLboolean;
  41724. function isFramebuffer(aFramebuffer: IJSWebGLFramebuffer): TGLboolean;
  41725. function isProgram(aProgram_: IJSWebGLProgram): TGLboolean;
  41726. function isRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer): TGLboolean;
  41727. function isShader(aShader: IJSWebGLShader): TGLboolean;
  41728. function isTexture(aTexture: IJSWebGLTexture): TGLboolean;
  41729. procedure lineWidth(aWidth: TGLfloat);
  41730. procedure linkProgram(aProgram_: IJSWebGLProgram);
  41731. procedure pixelStorei(aPname: TGLenum; aParam: TGLint);
  41732. procedure polygonOffset(aFactor: TGLfloat; aUnits: TGLfloat);
  41733. procedure renderbufferStorage(aTarget: TGLenum; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  41734. procedure sampleCoverage(aValue: TGLclampf; aInvert: TGLboolean);
  41735. procedure scissor(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  41736. procedure shaderSource(aShader: IJSWebGLShader; const aSource: UnicodeString);
  41737. procedure stencilFunc(aFunc: TGLenum; aRef: TGLint; aMask: TGLuint);
  41738. procedure stencilFuncSeparate(aFace: TGLenum; aFunc: TGLenum; aRef: TGLint; aMask: TGLuint);
  41739. procedure stencilMask(aMask: TGLuint);
  41740. procedure stencilMaskSeparate(aFace: TGLenum; aMask: TGLuint);
  41741. procedure stencilOp(aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum);
  41742. procedure stencilOpSeparate(aFace: TGLenum; aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum);
  41743. procedure texParameterf(aTarget: TGLenum; aPname: TGLenum; aParam: TGLfloat);
  41744. procedure texParameteri(aTarget: TGLenum; aPname: TGLenum; aParam: TGLint);
  41745. procedure uniform1f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat);
  41746. procedure uniform2f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat);
  41747. procedure uniform3f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat);
  41748. procedure uniform4f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat);
  41749. procedure uniform1i(aLocation: IJSWebGLUniformLocation; aX: TGLint);
  41750. procedure uniform2i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint);
  41751. procedure uniform3i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint);
  41752. procedure uniform4i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint);
  41753. procedure useProgram(aProgram_: IJSWebGLProgram);
  41754. procedure validateProgram(aProgram_: IJSWebGLProgram);
  41755. procedure vertexAttrib1f(aIndx: TGLuint; aX: TGLfloat);
  41756. procedure vertexAttrib1fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  41757. procedure vertexAttrib1fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  41758. procedure vertexAttrib2f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat);
  41759. procedure vertexAttrib2fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  41760. procedure vertexAttrib2fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  41761. procedure vertexAttrib3f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat);
  41762. procedure vertexAttrib3fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  41763. procedure vertexAttrib3fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  41764. procedure vertexAttrib4f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat);
  41765. procedure vertexAttrib4fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  41766. procedure vertexAttrib4fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  41767. procedure vertexAttribPointer(aIndx: TGLuint; aSize: TGLint; aType_: TGLenum; aNormalized: TGLboolean; aStride: TGLsizei; aOffset: TGLintptr);
  41768. procedure viewport(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  41769. function makeXRCompatible: IJSPromise; // Promise<undefined>
  41770. procedure bufferData(aTarget: TGLenum; aSize: TGLsizeiptr; aUsage: TGLenum);
  41771. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBuffer; aUsage: TGLenum);
  41772. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum);
  41773. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBuffer);
  41774. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBufferView);
  41775. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint; aLength_: TGLuint);
  41776. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint);
  41777. procedure bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aLength_: TGLuint);
  41778. procedure bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  41779. procedure copyBufferSubData(aReadTarget: TGLenum; aWriteTarget: TGLenum; aReadOffset: TGLintptr; aWriteOffset: TGLintptr; aSize: TGLsizeiptr);
  41780. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint; aLength_: TGLuint);
  41781. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView);
  41782. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint);
  41783. procedure blitFramebuffer(aSrcX0: TGLint; aSrcY0: TGLint; aSrcX1: TGLint; aSrcY1: TGLint; aDstX0: TGLint; aDstY0: TGLint; aDstX1: TGLint; aDstY1: TGLint; aMask: TGLbitfield; aFilter: TGLenum);
  41784. procedure framebufferTextureLayer(aTarget: TGLenum; aAttachment: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint; aLayer: TGLint);
  41785. procedure invalidateFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray);
  41786. procedure invalidateSubFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  41787. procedure readBuffer(aSrc: TGLenum);
  41788. function getInternalformatParameter(aTarget: TGLenum; aInternalformat: TGLenum; aPname: TGLenum): Variant;
  41789. procedure renderbufferStorageMultisample(aTarget: TGLenum; aSamples: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  41790. procedure texStorage2D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  41791. procedure texStorage3D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei);
  41792. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  41793. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  41794. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  41795. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  41796. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  41797. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  41798. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  41799. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  41800. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  41801. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  41802. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  41803. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  41804. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  41805. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  41806. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  41807. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  41808. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  41809. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  41810. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  41811. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  41812. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  41813. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  41814. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  41815. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  41816. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  41817. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  41818. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  41819. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  41820. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  41821. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  41822. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  41823. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  41824. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  41825. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView);
  41826. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  41827. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  41828. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  41829. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  41830. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  41831. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  41832. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  41833. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  41834. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  41835. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  41836. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  41837. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  41838. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  41839. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  41840. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  41841. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  41842. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  41843. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  41844. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  41845. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView);
  41846. procedure copyTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  41847. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr);
  41848. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  41849. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView);
  41850. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  41851. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr);
  41852. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  41853. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView);
  41854. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  41855. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr);
  41856. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  41857. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView);
  41858. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  41859. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr);
  41860. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  41861. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView);
  41862. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  41863. function getFragDataLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint;
  41864. procedure uniform1ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint);
  41865. procedure uniform2ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint);
  41866. procedure uniform3ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint);
  41867. procedure uniform4ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint; aV3: TGLuint);
  41868. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41869. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41870. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  41871. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  41872. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41873. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41874. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41875. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41876. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  41877. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  41878. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41879. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41880. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41881. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41882. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  41883. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  41884. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41885. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41886. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41887. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41888. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  41889. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  41890. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41891. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41892. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41893. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41894. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  41895. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  41896. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  41897. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  41898. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41899. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41900. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  41901. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  41902. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  41903. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  41904. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41905. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41906. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  41907. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  41908. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  41909. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  41910. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41911. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41912. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  41913. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  41914. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  41915. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  41916. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41917. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41918. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  41919. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  41920. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  41921. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  41922. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41923. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41924. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  41925. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  41926. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  41927. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  41928. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41929. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41930. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  41931. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  41932. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  41933. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  41934. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41935. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41936. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  41937. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  41938. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  41939. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  41940. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41941. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41942. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  41943. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  41944. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41945. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41946. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41947. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41948. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  41949. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  41950. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41951. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41952. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41953. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41954. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  41955. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  41956. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41957. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41958. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41959. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41960. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  41961. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  41962. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41963. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41964. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41965. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41966. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  41967. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  41968. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41969. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41970. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41971. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41972. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  41973. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  41974. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41975. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41976. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41977. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41978. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  41979. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  41980. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41981. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41982. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41983. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41984. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  41985. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  41986. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41987. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41988. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41989. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  41990. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  41991. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  41992. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  41993. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  41994. procedure vertexAttribI4i(aIndex: TGLuint; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint);
  41995. procedure vertexAttribI4iv(aIndex: TGLuint; aValues: IJSInt32Array);
  41996. procedure vertexAttribI4iv(aIndex: TGLuint; const aValues: TGLintDynArray);
  41997. procedure vertexAttribI4ui(aIndex: TGLuint; aX: TGLuint; aY: TGLuint; aZ: TGLuint; aW: TGLuint);
  41998. procedure vertexAttribI4uiv(aIndex: TGLuint; const aValues: TGLuintDynArray);
  41999. procedure vertexAttribI4uiv(aIndex: TGLuint; aValues: IJSUint32Array);
  42000. procedure vertexAttribIPointer(aIndex: TGLuint; aSize: TGLint; aType_: TGLenum; aStride: TGLsizei; aOffset: TGLintptr);
  42001. procedure vertexAttribDivisor(aIndex: TGLuint; aDivisor: TGLuint);
  42002. procedure drawArraysInstanced(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei; aInstanceCount: TGLsizei);
  42003. procedure drawElementsInstanced(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr; aInstanceCount: TGLsizei);
  42004. procedure drawRangeElements(aMode: TGLenum; aStart: TGLuint; aEnd_: TGLuint; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr);
  42005. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView);
  42006. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aOffset: TGLintptr);
  42007. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView; aDstOffset: TGLuint);
  42008. procedure drawBuffers(const aBuffers: TGLenumDynArray);
  42009. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array; aSrcOffset: TGLuint);
  42010. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray; aSrcOffset: TGLuint);
  42011. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray);
  42012. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array);
  42013. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array; aSrcOffset: TGLuint);
  42014. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray; aSrcOffset: TGLuint);
  42015. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray);
  42016. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array);
  42017. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray; aSrcOffset: TGLuint);
  42018. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array; aSrcOffset: TGLuint);
  42019. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array);
  42020. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray);
  42021. procedure clearBufferfi(aBuffer: TGLenum; aDrawbuffer: TGLint; aDepth: TGLfloat; aStencil: TGLint);
  42022. function createQuery: IJSWebGLQuery;
  42023. procedure deleteQuery(aQuery: IJSWebGLQuery);
  42024. function isQuery(aQuery: IJSWebGLQuery): TGLboolean;
  42025. procedure beginQuery(aTarget: TGLenum; aQuery: IJSWebGLQuery);
  42026. procedure endQuery(aTarget: TGLenum);
  42027. function getQuery(aTarget: TGLenum; aPname: TGLenum): Variant;
  42028. function getQueryParameter(aQuery: IJSWebGLQuery; aPname: TGLenum): Variant;
  42029. function createSampler: IJSWebGLSampler;
  42030. procedure deleteSampler(aSampler: IJSWebGLSampler);
  42031. function isSampler(aSampler: IJSWebGLSampler): TGLboolean;
  42032. procedure bindSampler(aUnit_: TGLuint; aSampler: IJSWebGLSampler);
  42033. procedure samplerParameteri(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLint);
  42034. procedure samplerParameterf(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLfloat);
  42035. function getSamplerParameter(aSampler: IJSWebGLSampler; aPname: TGLenum): Variant;
  42036. function fenceSync(aCondition: TGLenum; aFlags: TGLbitfield): IJSWebGLSync;
  42037. function isSync(aSync: IJSWebGLSync): TGLboolean;
  42038. procedure deleteSync(aSync: IJSWebGLSync);
  42039. function clientWaitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLuint64): TGLenum;
  42040. procedure waitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLint64);
  42041. function getSyncParameter(aSync: IJSWebGLSync; aPname: TGLenum): Variant;
  42042. function createTransformFeedback: IJSWebGLTransformFeedback;
  42043. procedure deleteTransformFeedback(aTf: IJSWebGLTransformFeedback);
  42044. function isTransformFeedback(aTf: IJSWebGLTransformFeedback): TGLboolean;
  42045. procedure bindTransformFeedback(aTarget: TGLenum; aTf: IJSWebGLTransformFeedback);
  42046. procedure beginTransformFeedback(aPrimitiveMode: TGLenum);
  42047. procedure endTransformFeedback;
  42048. procedure transformFeedbackVaryings(aProgram_: IJSWebGLProgram; const aVaryings: TUnicodeStringDynArray; aBufferMode: TGLenum);
  42049. function getTransformFeedbackVarying(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  42050. procedure pauseTransformFeedback;
  42051. procedure resumeTransformFeedback;
  42052. procedure bindBufferBase(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer);
  42053. procedure bindBufferRange(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer; aOffset: TGLintptr; aSize: TGLsizeiptr);
  42054. function getIndexedParameter(aTarget: TGLenum; aIndex: TGLuint): Variant;
  42055. function getUniformIndices(aProgram_: IJSWebGLProgram; const aUniformNames: TUnicodeStringDynArray): TGLuintDynArray;
  42056. function getActiveUniforms(aProgram_: IJSWebGLProgram; const aUniformIndices: TGLuintDynArray; aPname: TGLenum): Variant;
  42057. function getUniformBlockIndex(aProgram_: IJSWebGLProgram; const aUniformBlockName: UnicodeString): TGLuint;
  42058. function getActiveUniformBlockParameter(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aPname: TGLenum): Variant;
  42059. function getActiveUniformBlockName(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint): UnicodeString;
  42060. procedure uniformBlockBinding(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aUniformBlockBinding: TGLuint);
  42061. function createVertexArray: IJSWebGLVertexArrayObject;
  42062. procedure deleteVertexArray(aVertexArray: IJSWebGLVertexArrayObject);
  42063. function isVertexArray(aVertexArray: IJSWebGLVertexArrayObject): TGLboolean;
  42064. procedure bindVertexArray(aArray_: IJSWebGLVertexArrayObject);
  42065. property canvas: TCanvasSource read _Getcanvas;
  42066. property drawingBufferWidth: TGLsizei read _GetdrawingBufferWidth;
  42067. property drawingBufferHeight: TGLsizei read _GetdrawingBufferHeight;
  42068. end;
  42069. TJSWebGL2RenderingContext = class(TJSObject,IJSWebGL2RenderingContext)
  42070. Protected
  42071. function _Getcanvas: TCanvasSource;
  42072. function _GetdrawingBufferWidth: TGLsizei;
  42073. function _GetdrawingBufferHeight: TGLsizei;
  42074. Public
  42075. Const
  42076. DEPTH_BUFFER_BIT = $00000100;
  42077. STENCIL_BUFFER_BIT = $00000400;
  42078. COLOR_BUFFER_BIT = $00004000;
  42079. POINTS = $0000;
  42080. LINES = $0001;
  42081. LINE_LOOP = $0002;
  42082. LINE_STRIP = $0003;
  42083. TRIANGLES = $0004;
  42084. TRIANGLE_STRIP = $0005;
  42085. TRIANGLE_FAN = $0006;
  42086. ZERO = 0;
  42087. ONE = 1;
  42088. SRC_COLOR = $0300;
  42089. ONE_MINUS_SRC_COLOR = $0301;
  42090. SRC_ALPHA = $0302;
  42091. ONE_MINUS_SRC_ALPHA = $0303;
  42092. DST_ALPHA = $0304;
  42093. ONE_MINUS_DST_ALPHA = $0305;
  42094. DST_COLOR = $0306;
  42095. ONE_MINUS_DST_COLOR = $0307;
  42096. SRC_ALPHA_SATURATE = $0308;
  42097. FUNC_ADD = $8006;
  42098. BLEND_EQUATION = $8009;
  42099. BLEND_EQUATION_RGB = $8009;
  42100. BLEND_EQUATION_ALPHA = $883D;
  42101. FUNC_SUBTRACT = $800A;
  42102. FUNC_REVERSE_SUBTRACT = $800B;
  42103. BLEND_DST_RGB = $80C8;
  42104. BLEND_SRC_RGB = $80C9;
  42105. BLEND_DST_ALPHA = $80CA;
  42106. BLEND_SRC_ALPHA = $80CB;
  42107. CONSTANT_COLOR = $8001;
  42108. ONE_MINUS_CONSTANT_COLOR = $8002;
  42109. CONSTANT_ALPHA = $8003;
  42110. ONE_MINUS_CONSTANT_ALPHA = $8004;
  42111. BLEND_COLOR = $8005;
  42112. ARRAY_BUFFER = $8892;
  42113. ELEMENT_ARRAY_BUFFER = $8893;
  42114. ARRAY_BUFFER_BINDING = $8894;
  42115. ELEMENT_ARRAY_BUFFER_BINDING = $8895;
  42116. STREAM_DRAW = $88E0;
  42117. STATIC_DRAW = $88E4;
  42118. DYNAMIC_DRAW = $88E8;
  42119. BUFFER_SIZE = $8764;
  42120. BUFFER_USAGE = $8765;
  42121. CURRENT_VERTEX_ATTRIB = $8626;
  42122. FRONT = $0404;
  42123. BACK = $0405;
  42124. FRONT_AND_BACK = $0408;
  42125. CULL_FACE = $0B44;
  42126. BLEND = $0BE2;
  42127. DITHER = $0BD0;
  42128. STENCIL_TEST = $0B90;
  42129. DEPTH_TEST = $0B71;
  42130. SCISSOR_TEST = $0C11;
  42131. POLYGON_OFFSET_FILL = $8037;
  42132. SAMPLE_ALPHA_TO_COVERAGE = $809E;
  42133. SAMPLE_COVERAGE = $80A0;
  42134. NO_ERROR = 0;
  42135. INVALID_ENUM = $0500;
  42136. INVALID_VALUE = $0501;
  42137. INVALID_OPERATION = $0502;
  42138. OUT_OF_MEMORY = $0505;
  42139. CW = $0900;
  42140. CCW = $0901;
  42141. LINE_WIDTH = $0B21;
  42142. ALIASED_POINT_SIZE_RANGE = $846D;
  42143. ALIASED_LINE_WIDTH_RANGE = $846E;
  42144. CULL_FACE_MODE = $0B45;
  42145. FRONT_FACE = $0B46;
  42146. DEPTH_RANGE = $0B70;
  42147. DEPTH_WRITEMASK = $0B72;
  42148. DEPTH_CLEAR_VALUE = $0B73;
  42149. DEPTH_FUNC = $0B74;
  42150. STENCIL_CLEAR_VALUE = $0B91;
  42151. STENCIL_FUNC = $0B92;
  42152. STENCIL_FAIL = $0B94;
  42153. STENCIL_PASS_DEPTH_FAIL = $0B95;
  42154. STENCIL_PASS_DEPTH_PASS = $0B96;
  42155. STENCIL_REF = $0B97;
  42156. STENCIL_VALUE_MASK = $0B93;
  42157. STENCIL_WRITEMASK = $0B98;
  42158. STENCIL_BACK_FUNC = $8800;
  42159. STENCIL_BACK_FAIL = $8801;
  42160. STENCIL_BACK_PASS_DEPTH_FAIL = $8802;
  42161. STENCIL_BACK_PASS_DEPTH_PASS = $8803;
  42162. STENCIL_BACK_REF = $8CA3;
  42163. STENCIL_BACK_VALUE_MASK = $8CA4;
  42164. STENCIL_BACK_WRITEMASK = $8CA5;
  42165. VIEWPORT_ = $0BA2;
  42166. SCISSOR_BOX = $0C10;
  42167. COLOR_CLEAR_VALUE = $0C22;
  42168. COLOR_WRITEMASK = $0C23;
  42169. UNPACK_ALIGNMENT = $0CF5;
  42170. PACK_ALIGNMENT = $0D05;
  42171. MAX_TEXTURE_SIZE = $0D33;
  42172. MAX_VIEWPORT_DIMS = $0D3A;
  42173. SUBPIXEL_BITS = $0D50;
  42174. RED_BITS = $0D52;
  42175. GREEN_BITS = $0D53;
  42176. BLUE_BITS = $0D54;
  42177. ALPHA_BITS = $0D55;
  42178. DEPTH_BITS = $0D56;
  42179. STENCIL_BITS = $0D57;
  42180. POLYGON_OFFSET_UNITS = $2A00;
  42181. POLYGON_OFFSET_FACTOR = $8038;
  42182. TEXTURE_BINDING_2D = $8069;
  42183. SAMPLE_BUFFERS = $80A8;
  42184. SAMPLES = $80A9;
  42185. SAMPLE_COVERAGE_VALUE = $80AA;
  42186. SAMPLE_COVERAGE_INVERT = $80AB;
  42187. COMPRESSED_TEXTURE_FORMATS = $86A3;
  42188. DONT_CARE = $1100;
  42189. FASTEST = $1101;
  42190. NICEST = $1102;
  42191. GENERATE_MIPMAP_HINT = $8192;
  42192. BYTE = $1400;
  42193. UNSIGNED_BYTE = $1401;
  42194. SHORT = $1402;
  42195. UNSIGNED_SHORT = $1403;
  42196. INT = $1404;
  42197. UNSIGNED_INT = $1405;
  42198. FLOAT = $1406;
  42199. DEPTH_COMPONENT = $1902;
  42200. ALPHA = $1906;
  42201. RGB = $1907;
  42202. RGBA = $1908;
  42203. LUMINANCE = $1909;
  42204. LUMINANCE_ALPHA = $190A;
  42205. UNSIGNED_SHORT_4_4_4_4 = $8033;
  42206. UNSIGNED_SHORT_5_5_5_1 = $8034;
  42207. UNSIGNED_SHORT_5_6_5 = $8363;
  42208. FRAGMENT_SHADER = $8B30;
  42209. VERTEX_SHADER = $8B31;
  42210. MAX_VERTEX_ATTRIBS = $8869;
  42211. MAX_VERTEX_UNIFORM_VECTORS = $8DFB;
  42212. MAX_VARYING_VECTORS = $8DFC;
  42213. MAX_COMBINED_TEXTURE_IMAGE_UNITS = $8B4D;
  42214. MAX_VERTEX_TEXTURE_IMAGE_UNITS = $8B4C;
  42215. MAX_TEXTURE_IMAGE_UNITS = $8872;
  42216. MAX_FRAGMENT_UNIFORM_VECTORS = $8DFD;
  42217. SHADER_TYPE = $8B4F;
  42218. DELETE_STATUS = $8B80;
  42219. LINK_STATUS = $8B82;
  42220. VALIDATE_STATUS = $8B83;
  42221. ATTACHED_SHADERS = $8B85;
  42222. ACTIVE_UNIFORMS = $8B86;
  42223. ACTIVE_ATTRIBUTES = $8B89;
  42224. SHADING_LANGUAGE_VERSION = $8B8C;
  42225. CURRENT_PROGRAM = $8B8D;
  42226. NEVER = $0200;
  42227. LESS = $0201;
  42228. EQUAL = $0202;
  42229. LEQUAL = $0203;
  42230. GREATER = $0204;
  42231. NOTEQUAL = $0205;
  42232. GEQUAL = $0206;
  42233. ALWAYS = $0207;
  42234. KEEP = $1E00;
  42235. REPLACE = $1E01;
  42236. INCR = $1E02;
  42237. DECR = $1E03;
  42238. INVERT = $150A;
  42239. INCR_WRAP = $8507;
  42240. DECR_WRAP = $8508;
  42241. VENDOR = $1F00;
  42242. RENDERER = $1F01;
  42243. VERSION = $1F02;
  42244. NEAREST = $2600;
  42245. LINEAR = $2601;
  42246. NEAREST_MIPMAP_NEAREST = $2700;
  42247. LINEAR_MIPMAP_NEAREST = $2701;
  42248. NEAREST_MIPMAP_LINEAR = $2702;
  42249. LINEAR_MIPMAP_LINEAR = $2703;
  42250. TEXTURE_MAG_FILTER = $2800;
  42251. TEXTURE_MIN_FILTER = $2801;
  42252. TEXTURE_WRAP_S = $2802;
  42253. TEXTURE_WRAP_T = $2803;
  42254. TEXTURE_2D = $0DE1;
  42255. TEXTURE = $1702;
  42256. TEXTURE_CUBE_MAP = $8513;
  42257. TEXTURE_BINDING_CUBE_MAP = $8514;
  42258. TEXTURE_CUBE_MAP_POSITIVE_X = $8515;
  42259. TEXTURE_CUBE_MAP_NEGATIVE_X = $8516;
  42260. TEXTURE_CUBE_MAP_POSITIVE_Y = $8517;
  42261. TEXTURE_CUBE_MAP_NEGATIVE_Y = $8518;
  42262. TEXTURE_CUBE_MAP_POSITIVE_Z = $8519;
  42263. TEXTURE_CUBE_MAP_NEGATIVE_Z = $851A;
  42264. MAX_CUBE_MAP_TEXTURE_SIZE = $851C;
  42265. TEXTURE0 = $84C0;
  42266. TEXTURE1 = $84C1;
  42267. TEXTURE2 = $84C2;
  42268. TEXTURE3 = $84C3;
  42269. TEXTURE4 = $84C4;
  42270. TEXTURE5 = $84C5;
  42271. TEXTURE6 = $84C6;
  42272. TEXTURE7 = $84C7;
  42273. TEXTURE8 = $84C8;
  42274. TEXTURE9 = $84C9;
  42275. TEXTURE10 = $84CA;
  42276. TEXTURE11 = $84CB;
  42277. TEXTURE12 = $84CC;
  42278. TEXTURE13 = $84CD;
  42279. TEXTURE14 = $84CE;
  42280. TEXTURE15 = $84CF;
  42281. TEXTURE16 = $84D0;
  42282. TEXTURE17 = $84D1;
  42283. TEXTURE18 = $84D2;
  42284. TEXTURE19 = $84D3;
  42285. TEXTURE20 = $84D4;
  42286. TEXTURE21 = $84D5;
  42287. TEXTURE22 = $84D6;
  42288. TEXTURE23 = $84D7;
  42289. TEXTURE24 = $84D8;
  42290. TEXTURE25 = $84D9;
  42291. TEXTURE26 = $84DA;
  42292. TEXTURE27 = $84DB;
  42293. TEXTURE28 = $84DC;
  42294. TEXTURE29 = $84DD;
  42295. TEXTURE30 = $84DE;
  42296. TEXTURE31 = $84DF;
  42297. ACTIVE_TEXTURE = $84E0;
  42298. REPEAT_ = $2901;
  42299. CLAMP_TO_EDGE = $812F;
  42300. MIRRORED_REPEAT = $8370;
  42301. FLOAT_VEC2 = $8B50;
  42302. FLOAT_VEC3 = $8B51;
  42303. FLOAT_VEC4 = $8B52;
  42304. INT_VEC2 = $8B53;
  42305. INT_VEC3 = $8B54;
  42306. INT_VEC4 = $8B55;
  42307. BOOL = $8B56;
  42308. BOOL_VEC2 = $8B57;
  42309. BOOL_VEC3 = $8B58;
  42310. BOOL_VEC4 = $8B59;
  42311. FLOAT_MAT2 = $8B5A;
  42312. FLOAT_MAT3 = $8B5B;
  42313. FLOAT_MAT4 = $8B5C;
  42314. SAMPLER_2D = $8B5E;
  42315. SAMPLER_CUBE = $8B60;
  42316. VERTEX_ATTRIB_ARRAY_ENABLED = $8622;
  42317. VERTEX_ATTRIB_ARRAY_SIZE = $8623;
  42318. VERTEX_ATTRIB_ARRAY_STRIDE = $8624;
  42319. VERTEX_ATTRIB_ARRAY_TYPE = $8625;
  42320. VERTEX_ATTRIB_ARRAY_NORMALIZED = $886A;
  42321. VERTEX_ATTRIB_ARRAY_POINTER = $8645;
  42322. VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = $889F;
  42323. IMPLEMENTATION_COLOR_READ_TYPE = $8B9A;
  42324. IMPLEMENTATION_COLOR_READ_FORMAT = $8B9B;
  42325. COMPILE_STATUS = $8B81;
  42326. LOW_FLOAT = $8DF0;
  42327. MEDIUM_FLOAT = $8DF1;
  42328. HIGH_FLOAT = $8DF2;
  42329. LOW_INT = $8DF3;
  42330. MEDIUM_INT = $8DF4;
  42331. HIGH_INT = $8DF5;
  42332. FRAMEBUFFER = $8D40;
  42333. RENDERBUFFER = $8D41;
  42334. RGBA4 = $8056;
  42335. RGB5_A1 = $8057;
  42336. RGB565 = $8D62;
  42337. DEPTH_COMPONENT16 = $81A5;
  42338. STENCIL_INDEX8 = $8D48;
  42339. DEPTH_STENCIL = $84F9;
  42340. RENDERBUFFER_WIDTH = $8D42;
  42341. RENDERBUFFER_HEIGHT = $8D43;
  42342. RENDERBUFFER_INTERNAL_FORMAT = $8D44;
  42343. RENDERBUFFER_RED_SIZE = $8D50;
  42344. RENDERBUFFER_GREEN_SIZE = $8D51;
  42345. RENDERBUFFER_BLUE_SIZE = $8D52;
  42346. RENDERBUFFER_ALPHA_SIZE = $8D53;
  42347. RENDERBUFFER_DEPTH_SIZE = $8D54;
  42348. RENDERBUFFER_STENCIL_SIZE = $8D55;
  42349. FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = $8CD0;
  42350. FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = $8CD1;
  42351. FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = $8CD2;
  42352. FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = $8CD3;
  42353. COLOR_ATTACHMENT0 = $8CE0;
  42354. DEPTH_ATTACHMENT = $8D00;
  42355. STENCIL_ATTACHMENT = $8D20;
  42356. DEPTH_STENCIL_ATTACHMENT = $821A;
  42357. NONE = 0;
  42358. FRAMEBUFFER_COMPLETE = $8CD5;
  42359. FRAMEBUFFER_INCOMPLETE_ATTACHMENT = $8CD6;
  42360. FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = $8CD7;
  42361. FRAMEBUFFER_INCOMPLETE_DIMENSIONS = $8CD9;
  42362. FRAMEBUFFER_UNSUPPORTED = $8CDD;
  42363. FRAMEBUFFER_BINDING = $8CA6;
  42364. RENDERBUFFER_BINDING = $8CA7;
  42365. MAX_RENDERBUFFER_SIZE = $84E8;
  42366. INVALID_FRAMEBUFFER_OPERATION = $0506;
  42367. UNPACK_FLIP_Y_WEBGL = $9240;
  42368. UNPACK_PREMULTIPLY_ALPHA_WEBGL = $9241;
  42369. CONTEXT_LOST_WEBGL = $9242;
  42370. UNPACK_COLORSPACE_CONVERSION_WEBGL = $9243;
  42371. BROWSER_DEFAULT_WEBGL = $9244;
  42372. READ_BUFFER = $0C02;
  42373. UNPACK_ROW_LENGTH = $0CF2;
  42374. UNPACK_SKIP_ROWS = $0CF3;
  42375. UNPACK_SKIP_PIXELS = $0CF4;
  42376. PACK_ROW_LENGTH = $0D02;
  42377. PACK_SKIP_ROWS = $0D03;
  42378. PACK_SKIP_PIXELS = $0D04;
  42379. COLOR = $1800;
  42380. DEPTH = $1801;
  42381. STENCIL = $1802;
  42382. RED = $1903;
  42383. RGB8 = $8051;
  42384. RGBA8 = $8058;
  42385. RGB10_A2 = $8059;
  42386. TEXTURE_BINDING_3D = $806A;
  42387. UNPACK_SKIP_IMAGES = $806D;
  42388. UNPACK_IMAGE_HEIGHT = $806E;
  42389. TEXTURE_3D = $806F;
  42390. TEXTURE_WRAP_R = $8072;
  42391. MAX_3D_TEXTURE_SIZE = $8073;
  42392. UNSIGNED_INT_2_10_10_10_REV = $8368;
  42393. MAX_ELEMENTS_VERTICES = $80E8;
  42394. MAX_ELEMENTS_INDICES = $80E9;
  42395. TEXTURE_MIN_LOD = $813A;
  42396. TEXTURE_MAX_LOD = $813B;
  42397. TEXTURE_BASE_LEVEL = $813C;
  42398. TEXTURE_MAX_LEVEL = $813D;
  42399. MIN = $8007;
  42400. MAX = $8008;
  42401. DEPTH_COMPONENT24 = $81A6;
  42402. MAX_TEXTURE_LOD_BIAS = $84FD;
  42403. TEXTURE_COMPARE_MODE = $884C;
  42404. TEXTURE_COMPARE_FUNC = $884D;
  42405. CURRENT_QUERY = $8865;
  42406. QUERY_RESULT = $8866;
  42407. QUERY_RESULT_AVAILABLE = $8867;
  42408. STREAM_READ = $88E1;
  42409. STREAM_COPY = $88E2;
  42410. STATIC_READ = $88E5;
  42411. STATIC_COPY = $88E6;
  42412. DYNAMIC_READ = $88E9;
  42413. DYNAMIC_COPY = $88EA;
  42414. MAX_DRAW_BUFFERS = $8824;
  42415. DRAW_BUFFER0 = $8825;
  42416. DRAW_BUFFER1 = $8826;
  42417. DRAW_BUFFER2 = $8827;
  42418. DRAW_BUFFER3 = $8828;
  42419. DRAW_BUFFER4 = $8829;
  42420. DRAW_BUFFER5 = $882A;
  42421. DRAW_BUFFER6 = $882B;
  42422. DRAW_BUFFER7 = $882C;
  42423. DRAW_BUFFER8 = $882D;
  42424. DRAW_BUFFER9 = $882E;
  42425. DRAW_BUFFER10 = $882F;
  42426. DRAW_BUFFER11 = $8830;
  42427. DRAW_BUFFER12 = $8831;
  42428. DRAW_BUFFER13 = $8832;
  42429. DRAW_BUFFER14 = $8833;
  42430. DRAW_BUFFER15 = $8834;
  42431. MAX_FRAGMENT_UNIFORM_COMPONENTS = $8B49;
  42432. MAX_VERTEX_UNIFORM_COMPONENTS = $8B4A;
  42433. SAMPLER_3D = $8B5F;
  42434. SAMPLER_2D_SHADOW = $8B62;
  42435. FRAGMENT_SHADER_DERIVATIVE_HINT = $8B8B;
  42436. PIXEL_PACK_BUFFER = $88EB;
  42437. PIXEL_UNPACK_BUFFER = $88EC;
  42438. PIXEL_PACK_BUFFER_BINDING = $88ED;
  42439. PIXEL_UNPACK_BUFFER_BINDING = $88EF;
  42440. FLOAT_MAT2x3 = $8B65;
  42441. FLOAT_MAT2x4 = $8B66;
  42442. FLOAT_MAT3x2 = $8B67;
  42443. FLOAT_MAT3x4 = $8B68;
  42444. FLOAT_MAT4x2 = $8B69;
  42445. FLOAT_MAT4x3 = $8B6A;
  42446. SRGB = $8C40;
  42447. SRGB8 = $8C41;
  42448. SRGB8_ALPHA8 = $8C43;
  42449. COMPARE_REF_TO_TEXTURE = $884E;
  42450. RGBA32F = $8814;
  42451. RGB32F = $8815;
  42452. RGBA16F = $881A;
  42453. RGB16F = $881B;
  42454. VERTEX_ATTRIB_ARRAY_INTEGER = $88FD;
  42455. MAX_ARRAY_TEXTURE_LAYERS = $88FF;
  42456. MIN_PROGRAM_TEXEL_OFFSET = $8904;
  42457. MAX_PROGRAM_TEXEL_OFFSET = $8905;
  42458. MAX_VARYING_COMPONENTS = $8B4B;
  42459. TEXTURE_2D_ARRAY = $8C1A;
  42460. TEXTURE_BINDING_2D_ARRAY = $8C1D;
  42461. R11F_G11F_B10F = $8C3A;
  42462. UNSIGNED_INT_10F_11F_11F_REV = $8C3B;
  42463. RGB9_E5 = $8C3D;
  42464. UNSIGNED_INT_5_9_9_9_REV = $8C3E;
  42465. TRANSFORM_FEEDBACK_BUFFER_MODE = $8C7F;
  42466. MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = $8C80;
  42467. TRANSFORM_FEEDBACK_VARYINGS = $8C83;
  42468. TRANSFORM_FEEDBACK_BUFFER_START = $8C84;
  42469. TRANSFORM_FEEDBACK_BUFFER_SIZE = $8C85;
  42470. TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = $8C88;
  42471. RASTERIZER_DISCARD = $8C89;
  42472. MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = $8C8A;
  42473. MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = $8C8B;
  42474. INTERLEAVED_ATTRIBS = $8C8C;
  42475. SEPARATE_ATTRIBS = $8C8D;
  42476. TRANSFORM_FEEDBACK_BUFFER = $8C8E;
  42477. TRANSFORM_FEEDBACK_BUFFER_BINDING = $8C8F;
  42478. RGBA32UI = $8D70;
  42479. RGB32UI = $8D71;
  42480. RGBA16UI = $8D76;
  42481. RGB16UI = $8D77;
  42482. RGBA8UI = $8D7C;
  42483. RGB8UI = $8D7D;
  42484. RGBA32I = $8D82;
  42485. RGB32I = $8D83;
  42486. RGBA16I = $8D88;
  42487. RGB16I = $8D89;
  42488. RGBA8I = $8D8E;
  42489. RGB8I = $8D8F;
  42490. RED_INTEGER = $8D94;
  42491. RGB_INTEGER = $8D98;
  42492. RGBA_INTEGER = $8D99;
  42493. SAMPLER_2D_ARRAY = $8DC1;
  42494. SAMPLER_2D_ARRAY_SHADOW = $8DC4;
  42495. SAMPLER_CUBE_SHADOW = $8DC5;
  42496. UNSIGNED_INT_VEC2 = $8DC6;
  42497. UNSIGNED_INT_VEC3 = $8DC7;
  42498. UNSIGNED_INT_VEC4 = $8DC8;
  42499. INT_SAMPLER_2D = $8DCA;
  42500. INT_SAMPLER_3D = $8DCB;
  42501. INT_SAMPLER_CUBE = $8DCC;
  42502. INT_SAMPLER_2D_ARRAY = $8DCF;
  42503. UNSIGNED_INT_SAMPLER_2D = $8DD2;
  42504. UNSIGNED_INT_SAMPLER_3D = $8DD3;
  42505. UNSIGNED_INT_SAMPLER_CUBE = $8DD4;
  42506. UNSIGNED_INT_SAMPLER_2D_ARRAY = $8DD7;
  42507. DEPTH_COMPONENT32F = $8CAC;
  42508. DEPTH32F_STENCIL8 = $8CAD;
  42509. FLOAT_32_UNSIGNED_INT_24_8_REV = $8DAD;
  42510. FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = $8210;
  42511. FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = $8211;
  42512. FRAMEBUFFER_ATTACHMENT_RED_SIZE = $8212;
  42513. FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = $8213;
  42514. FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = $8214;
  42515. FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = $8215;
  42516. FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = $8216;
  42517. FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = $8217;
  42518. FRAMEBUFFER_DEFAULT = $8218;
  42519. UNSIGNED_INT_24_8 = $84FA;
  42520. DEPTH24_STENCIL8 = $88F0;
  42521. UNSIGNED_NORMALIZED = $8C17;
  42522. DRAW_FRAMEBUFFER_BINDING = $8CA6;
  42523. READ_FRAMEBUFFER = $8CA8;
  42524. DRAW_FRAMEBUFFER = $8CA9;
  42525. READ_FRAMEBUFFER_BINDING = $8CAA;
  42526. RENDERBUFFER_SAMPLES = $8CAB;
  42527. FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = $8CD4;
  42528. MAX_COLOR_ATTACHMENTS = $8CDF;
  42529. COLOR_ATTACHMENT1 = $8CE1;
  42530. COLOR_ATTACHMENT2 = $8CE2;
  42531. COLOR_ATTACHMENT3 = $8CE3;
  42532. COLOR_ATTACHMENT4 = $8CE4;
  42533. COLOR_ATTACHMENT5 = $8CE5;
  42534. COLOR_ATTACHMENT6 = $8CE6;
  42535. COLOR_ATTACHMENT7 = $8CE7;
  42536. COLOR_ATTACHMENT8 = $8CE8;
  42537. COLOR_ATTACHMENT9 = $8CE9;
  42538. COLOR_ATTACHMENT10 = $8CEA;
  42539. COLOR_ATTACHMENT11 = $8CEB;
  42540. COLOR_ATTACHMENT12 = $8CEC;
  42541. COLOR_ATTACHMENT13 = $8CED;
  42542. COLOR_ATTACHMENT14 = $8CEE;
  42543. COLOR_ATTACHMENT15 = $8CEF;
  42544. FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = $8D56;
  42545. MAX_SAMPLES = $8D57;
  42546. HALF_FLOAT = $140B;
  42547. RG = $8227;
  42548. RG_INTEGER = $8228;
  42549. R8 = $8229;
  42550. RG8 = $822B;
  42551. R16F = $822D;
  42552. R32F = $822E;
  42553. RG16F = $822F;
  42554. RG32F = $8230;
  42555. R8I = $8231;
  42556. R8UI = $8232;
  42557. R16I = $8233;
  42558. R16UI = $8234;
  42559. R32I = $8235;
  42560. R32UI = $8236;
  42561. RG8I = $8237;
  42562. RG8UI = $8238;
  42563. RG16I = $8239;
  42564. RG16UI = $823A;
  42565. RG32I = $823B;
  42566. RG32UI = $823C;
  42567. VERTEX_ARRAY_BINDING = $85B5;
  42568. R8_SNORM = $8F94;
  42569. RG8_SNORM = $8F95;
  42570. RGB8_SNORM = $8F96;
  42571. RGBA8_SNORM = $8F97;
  42572. SIGNED_NORMALIZED = $8F9C;
  42573. COPY_READ_BUFFER = $8F36;
  42574. COPY_WRITE_BUFFER = $8F37;
  42575. COPY_READ_BUFFER_BINDING = $8F36;
  42576. COPY_WRITE_BUFFER_BINDING = $8F37;
  42577. UNIFORM_BUFFER = $8A11;
  42578. UNIFORM_BUFFER_BINDING = $8A28;
  42579. UNIFORM_BUFFER_START = $8A29;
  42580. UNIFORM_BUFFER_SIZE = $8A2A;
  42581. MAX_VERTEX_UNIFORM_BLOCKS = $8A2B;
  42582. MAX_FRAGMENT_UNIFORM_BLOCKS = $8A2D;
  42583. MAX_COMBINED_UNIFORM_BLOCKS = $8A2E;
  42584. MAX_UNIFORM_BUFFER_BINDINGS = $8A2F;
  42585. MAX_UNIFORM_BLOCK_SIZE = $8A30;
  42586. MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = $8A31;
  42587. MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = $8A33;
  42588. UNIFORM_BUFFER_OFFSET_ALIGNMENT = $8A34;
  42589. ACTIVE_UNIFORM_BLOCKS = $8A36;
  42590. UNIFORM_TYPE = $8A37;
  42591. UNIFORM_SIZE = $8A38;
  42592. UNIFORM_BLOCK_INDEX = $8A3A;
  42593. UNIFORM_OFFSET = $8A3B;
  42594. UNIFORM_ARRAY_STRIDE = $8A3C;
  42595. UNIFORM_MATRIX_STRIDE = $8A3D;
  42596. UNIFORM_IS_ROW_MAJOR = $8A3E;
  42597. UNIFORM_BLOCK_BINDING = $8A3F;
  42598. UNIFORM_BLOCK_DATA_SIZE = $8A40;
  42599. UNIFORM_BLOCK_ACTIVE_UNIFORMS = $8A42;
  42600. UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = $8A43;
  42601. UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = $8A44;
  42602. UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = $8A46;
  42603. INVALID_INDEX = $FFFFFFFF;
  42604. MAX_VERTEX_OUTPUT_COMPONENTS = $9122;
  42605. MAX_FRAGMENT_INPUT_COMPONENTS = $9125;
  42606. MAX_SERVER_WAIT_TIMEOUT = $9111;
  42607. OBJECT_TYPE = $9112;
  42608. SYNC_CONDITION = $9113;
  42609. SYNC_STATUS = $9114;
  42610. SYNC_FLAGS = $9115;
  42611. SYNC_FENCE = $9116;
  42612. SYNC_GPU_COMMANDS_COMPLETE = $9117;
  42613. UNSIGNALED = $9118;
  42614. SIGNALED = $9119;
  42615. ALREADY_SIGNALED = $911A;
  42616. TIMEOUT_EXPIRED = $911B;
  42617. CONDITION_SATISFIED = $911C;
  42618. WAIT_FAILED = $911D;
  42619. SYNC_FLUSH_COMMANDS_BIT = $00000001;
  42620. VERTEX_ATTRIB_ARRAY_DIVISOR = $88FE;
  42621. ANY_SAMPLES_PASSED = $8C2F;
  42622. ANY_SAMPLES_PASSED_CONSERVATIVE = $8D6A;
  42623. SAMPLER_BINDING = $8919;
  42624. RGB10_A2UI = $906F;
  42625. INT_2_10_10_10_REV = $8D9F;
  42626. TRANSFORM_FEEDBACK = $8E22;
  42627. TRANSFORM_FEEDBACK_PAUSED = $8E23;
  42628. TRANSFORM_FEEDBACK_ACTIVE = $8E24;
  42629. TRANSFORM_FEEDBACK_BINDING = $8E25;
  42630. TEXTURE_IMMUTABLE_FORMAT = $912F;
  42631. MAX_ELEMENT_INDEX = $8D6B;
  42632. TEXTURE_IMMUTABLE_LEVELS = $82DF;
  42633. TIMEOUT_IGNORED = -1;
  42634. MAX_CLIENT_WAIT_TIMEOUT_WEBGL = $9247;
  42635. Public
  42636. function getContextAttributes: TJSWebGLContextAttributes; overload;
  42637. function isContextLost: Boolean; overload;
  42638. function getSupportedExtensions: TUnicodeStringDynArray; overload;
  42639. function getExtension(const aName: UnicodeString): IJSObject; overload;
  42640. procedure activeTexture(aTexture: TGLenum); overload;
  42641. procedure attachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader); overload;
  42642. procedure bindAttribLocation(aProgram_: IJSWebGLProgram; aIndex: TGLuint; const aName: UnicodeString); overload;
  42643. procedure bindBuffer(aTarget: TGLenum; aBuffer: IJSWebGLBuffer); overload;
  42644. procedure bindFramebuffer(aTarget: TGLenum; aFramebuffer: IJSWebGLFramebuffer); overload;
  42645. procedure bindRenderbuffer(aTarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer); overload;
  42646. procedure bindTexture(aTarget: TGLenum; aTexture: IJSWebGLTexture); overload;
  42647. procedure blendColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat); overload;
  42648. procedure blendEquation(aMode: TGLenum); overload;
  42649. procedure blendEquationSeparate(aModeRGB: TGLenum; aModeAlpha: TGLenum); overload;
  42650. procedure blendFunc(aSfactor: TGLenum; aDfactor: TGLenum); overload;
  42651. procedure blendFuncSeparate(aSrcRGB: TGLenum; aDstRGB: TGLenum; aSrcAlpha: TGLenum; aDstAlpha: TGLenum); overload;
  42652. function checkFramebufferStatus(aTarget: TGLenum): TGLenum; overload;
  42653. procedure clear(aMask: TGLbitfield); overload;
  42654. procedure clearColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat); overload;
  42655. procedure clearDepth(aDepth: TGLclampf); overload;
  42656. procedure clearStencil(aS_: TGLint); overload;
  42657. procedure colorMask(aRed: TGLboolean; aGreen: TGLboolean; aBlue: TGLboolean; aAlpha: TGLboolean); overload;
  42658. procedure compileShader(aShader: IJSWebGLShader); overload;
  42659. procedure copyTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint); overload;
  42660. procedure copyTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  42661. function createBuffer: IJSWebGLBuffer; overload;
  42662. function createFramebuffer: IJSWebGLFramebuffer; overload;
  42663. function createProgram: IJSWebGLProgram; overload;
  42664. function createRenderbuffer: IJSWebGLRenderbuffer; overload;
  42665. function createShader(aType_: TGLenum): IJSWebGLShader; overload;
  42666. function createTexture: IJSWebGLTexture; overload;
  42667. procedure cullFace(aMode: TGLenum); overload;
  42668. procedure deleteBuffer(aBuffer: IJSWebGLBuffer); overload;
  42669. procedure deleteFramebuffer(aFramebuffer: IJSWebGLFramebuffer); overload;
  42670. procedure deleteProgram(aProgram_: IJSWebGLProgram); overload;
  42671. procedure deleteRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer); overload;
  42672. procedure deleteShader(aShader: IJSWebGLShader); overload;
  42673. procedure deleteTexture(aTexture: IJSWebGLTexture); overload;
  42674. procedure depthFunc(aFunc: TGLenum); overload;
  42675. procedure depthMask(aFlag: TGLboolean); overload;
  42676. procedure depthRange(aZNear: TGLclampf; aZFar: TGLclampf); overload;
  42677. procedure detachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader); overload;
  42678. procedure disable(aCap: TGLenum); overload;
  42679. procedure disableVertexAttribArray(aIndex: TGLuint); overload;
  42680. procedure drawArrays(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei); overload;
  42681. procedure drawElements(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr); overload;
  42682. procedure enable(aCap: TGLenum); overload;
  42683. procedure enableVertexAttribArray(aIndex: TGLuint); overload;
  42684. procedure finish; overload;
  42685. procedure flush; overload;
  42686. procedure framebufferRenderbuffer(aTarget: TGLenum; aAttachment: TGLenum; aRenderbuffertarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer); overload;
  42687. procedure framebufferTexture2D(aTarget: TGLenum; aAttachment: TGLenum; aTextarget: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint); overload;
  42688. procedure frontFace(aMode: TGLenum); overload;
  42689. procedure generateMipmap(aTarget: TGLenum); overload;
  42690. function getActiveAttrib(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo; overload;
  42691. function getActiveUniform(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo; overload;
  42692. function getAttachedShaders(aProgram_: IJSWebGLProgram): TJSWebGLShaderDynArray; overload;
  42693. function getAttribLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint; overload;
  42694. function getBufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant; overload;
  42695. function getParameter(aPname: TGLenum): Variant; overload;
  42696. function getError: TGLenum; overload;
  42697. function getFramebufferAttachmentParameter(aTarget: TGLenum; aAttachment: TGLenum; aPname: TGLenum): Variant; overload;
  42698. function getProgramParameter(aProgram_: IJSWebGLProgram; aPname: TGLenum): Variant; overload;
  42699. function getProgramInfoLog(aProgram_: IJSWebGLProgram): UnicodeString; overload;
  42700. function getRenderbufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant; overload;
  42701. function getShaderParameter(aShader: IJSWebGLShader; aPname: TGLenum): Variant; overload;
  42702. function getShaderPrecisionFormat(aShadertype: TGLenum; aPrecisiontype: TGLenum): IJSWebGLShaderPrecisionFormat; overload;
  42703. function getShaderInfoLog(aShader: IJSWebGLShader): UnicodeString; overload;
  42704. function getShaderSource(aShader: IJSWebGLShader): UnicodeString; overload;
  42705. function getTexParameter(aTarget: TGLenum; aPname: TGLenum): Variant; overload;
  42706. function getUniform(aProgram_: IJSWebGLProgram; aLocation: IJSWebGLUniformLocation): Variant; overload;
  42707. function getUniformLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): IJSWebGLUniformLocation; overload;
  42708. function getVertexAttrib(aIndex: TGLuint; aPname: TGLenum): Variant; overload;
  42709. function getVertexAttribOffset(aIndex: TGLuint; aPname: TGLenum): TGLintptr; overload;
  42710. procedure hint(aTarget: TGLenum; aMode: TGLenum); overload;
  42711. function isBuffer(aBuffer: IJSWebGLBuffer): TGLboolean; overload;
  42712. function isEnabled(aCap: TGLenum): TGLboolean; overload;
  42713. function isFramebuffer(aFramebuffer: IJSWebGLFramebuffer): TGLboolean; overload;
  42714. function isProgram(aProgram_: IJSWebGLProgram): TGLboolean; overload;
  42715. function isRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer): TGLboolean; overload;
  42716. function isShader(aShader: IJSWebGLShader): TGLboolean; overload;
  42717. function isTexture(aTexture: IJSWebGLTexture): TGLboolean; overload;
  42718. procedure lineWidth(aWidth: TGLfloat); overload;
  42719. procedure linkProgram(aProgram_: IJSWebGLProgram); overload;
  42720. procedure pixelStorei(aPname: TGLenum; aParam: TGLint); overload;
  42721. procedure polygonOffset(aFactor: TGLfloat; aUnits: TGLfloat); overload;
  42722. procedure renderbufferStorage(aTarget: TGLenum; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  42723. procedure sampleCoverage(aValue: TGLclampf; aInvert: TGLboolean); overload;
  42724. procedure scissor(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  42725. procedure shaderSource(aShader: IJSWebGLShader; const aSource: UnicodeString); overload;
  42726. procedure stencilFunc(aFunc: TGLenum; aRef: TGLint; aMask: TGLuint); overload;
  42727. procedure stencilFuncSeparate(aFace: TGLenum; aFunc: TGLenum; aRef: TGLint; aMask: TGLuint); overload;
  42728. procedure stencilMask(aMask: TGLuint); overload;
  42729. procedure stencilMaskSeparate(aFace: TGLenum; aMask: TGLuint); overload;
  42730. procedure stencilOp(aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum); overload;
  42731. procedure stencilOpSeparate(aFace: TGLenum; aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum); overload;
  42732. procedure texParameterf(aTarget: TGLenum; aPname: TGLenum; aParam: TGLfloat); overload;
  42733. procedure texParameteri(aTarget: TGLenum; aPname: TGLenum; aParam: TGLint); overload;
  42734. procedure uniform1f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat); overload;
  42735. procedure uniform2f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat); overload;
  42736. procedure uniform3f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat); overload;
  42737. procedure uniform4f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat); overload;
  42738. procedure uniform1i(aLocation: IJSWebGLUniformLocation; aX: TGLint); overload;
  42739. procedure uniform2i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint); overload;
  42740. procedure uniform3i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint); overload;
  42741. procedure uniform4i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint); overload;
  42742. procedure useProgram(aProgram_: IJSWebGLProgram); overload;
  42743. procedure validateProgram(aProgram_: IJSWebGLProgram); overload;
  42744. procedure vertexAttrib1f(aIndx: TGLuint; aX: TGLfloat); overload;
  42745. procedure vertexAttrib1fv(aIndx: TGLuint; aValues: IJSFloat32Array); overload;
  42746. procedure vertexAttrib1fv(aIndx: TGLuint; const aValues: TGLfloatDynArray); overload;
  42747. procedure vertexAttrib2f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat); overload;
  42748. procedure vertexAttrib2fv(aIndx: TGLuint; aValues: IJSFloat32Array); overload;
  42749. procedure vertexAttrib2fv(aIndx: TGLuint; const aValues: TGLfloatDynArray); overload;
  42750. procedure vertexAttrib3f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat); overload;
  42751. procedure vertexAttrib3fv(aIndx: TGLuint; aValues: IJSFloat32Array); overload;
  42752. procedure vertexAttrib3fv(aIndx: TGLuint; const aValues: TGLfloatDynArray); overload;
  42753. procedure vertexAttrib4f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat); overload;
  42754. procedure vertexAttrib4fv(aIndx: TGLuint; aValues: IJSFloat32Array); overload;
  42755. procedure vertexAttrib4fv(aIndx: TGLuint; const aValues: TGLfloatDynArray); overload;
  42756. procedure vertexAttribPointer(aIndx: TGLuint; aSize: TGLint; aType_: TGLenum; aNormalized: TGLboolean; aStride: TGLsizei; aOffset: TGLintptr); overload;
  42757. procedure viewport(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  42758. function makeXRCompatible: IJSPromise; overload; // Promise<undefined>
  42759. procedure bufferData(aTarget: TGLenum; aSize: TGLsizeiptr; aUsage: TGLenum); overload;
  42760. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBuffer; aUsage: TGLenum); overload;
  42761. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum); overload;
  42762. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBuffer); overload;
  42763. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBufferView); overload;
  42764. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint; aLength_: TGLuint); overload;
  42765. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint); overload;
  42766. procedure bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aLength_: TGLuint); overload;
  42767. procedure bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  42768. procedure copyBufferSubData(aReadTarget: TGLenum; aWriteTarget: TGLenum; aReadOffset: TGLintptr; aWriteOffset: TGLintptr; aSize: TGLsizeiptr); overload;
  42769. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint; aLength_: TGLuint); overload;
  42770. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView); overload;
  42771. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint); overload;
  42772. procedure blitFramebuffer(aSrcX0: TGLint; aSrcY0: TGLint; aSrcX1: TGLint; aSrcY1: TGLint; aDstX0: TGLint; aDstY0: TGLint; aDstX1: TGLint; aDstY1: TGLint; aMask: TGLbitfield; aFilter: TGLenum); overload;
  42773. procedure framebufferTextureLayer(aTarget: TGLenum; aAttachment: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint; aLayer: TGLint); overload;
  42774. procedure invalidateFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray); overload;
  42775. procedure invalidateSubFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  42776. procedure readBuffer(aSrc: TGLenum); overload;
  42777. function getInternalformatParameter(aTarget: TGLenum; aInternalformat: TGLenum; aPname: TGLenum): Variant; overload;
  42778. procedure renderbufferStorageMultisample(aTarget: TGLenum; aSamples: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  42779. procedure texStorage2D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  42780. procedure texStorage3D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei); overload;
  42781. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView); overload;
  42782. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  42783. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  42784. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  42785. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  42786. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  42787. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  42788. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  42789. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView); overload;
  42790. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  42791. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  42792. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  42793. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  42794. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  42795. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  42796. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  42797. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr); overload;
  42798. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  42799. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  42800. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  42801. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  42802. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  42803. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  42804. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  42805. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  42806. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr); overload;
  42807. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  42808. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  42809. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  42810. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  42811. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  42812. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  42813. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  42814. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView); overload;
  42815. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  42816. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr); overload;
  42817. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  42818. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  42819. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  42820. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  42821. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  42822. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  42823. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  42824. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  42825. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr); overload;
  42826. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  42827. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  42828. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  42829. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  42830. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  42831. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  42832. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  42833. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  42834. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView); overload;
  42835. procedure copyTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  42836. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr); overload;
  42837. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint); overload;
  42838. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView); overload;
  42839. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  42840. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr); overload;
  42841. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint); overload;
  42842. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView); overload;
  42843. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  42844. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr); overload;
  42845. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint); overload;
  42846. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView); overload;
  42847. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  42848. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr); overload;
  42849. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint); overload;
  42850. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView); overload;
  42851. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  42852. function getFragDataLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint; overload;
  42853. procedure uniform1ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint); overload;
  42854. procedure uniform2ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint); overload;
  42855. procedure uniform3ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint); overload;
  42856. procedure uniform4ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint; aV3: TGLuint); overload;
  42857. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42858. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42859. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  42860. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  42861. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42862. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42863. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42864. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42865. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  42866. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  42867. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42868. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42869. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42870. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42871. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  42872. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  42873. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42874. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42875. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42876. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42877. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  42878. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  42879. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42880. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42881. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42882. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42883. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  42884. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  42885. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint); overload;
  42886. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint); overload;
  42887. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42888. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42889. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  42890. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  42891. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint); overload;
  42892. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint); overload;
  42893. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42894. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42895. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  42896. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  42897. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint); overload;
  42898. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint); overload;
  42899. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42900. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42901. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  42902. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  42903. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint); overload;
  42904. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint); overload;
  42905. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42906. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42907. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array); overload;
  42908. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray); overload;
  42909. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint); overload;
  42910. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint); overload;
  42911. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42912. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42913. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array); overload;
  42914. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray); overload;
  42915. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint); overload;
  42916. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint); overload;
  42917. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42918. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42919. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array); overload;
  42920. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray); overload;
  42921. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint); overload;
  42922. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint); overload;
  42923. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42924. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42925. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array); overload;
  42926. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray); overload;
  42927. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint); overload;
  42928. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint); overload;
  42929. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42930. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42931. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  42932. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  42933. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42934. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42935. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42936. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42937. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  42938. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  42939. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42940. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42941. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42942. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42943. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  42944. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  42945. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42946. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42947. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42948. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42949. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  42950. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  42951. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42952. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42953. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42954. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42955. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  42956. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  42957. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42958. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42959. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42960. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42961. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  42962. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  42963. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42964. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42965. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42966. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42967. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  42968. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  42969. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42970. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42971. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42972. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42973. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  42974. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  42975. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42976. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42977. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42978. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  42979. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  42980. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  42981. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  42982. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42983. procedure vertexAttribI4i(aIndex: TGLuint; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint); overload;
  42984. procedure vertexAttribI4iv(aIndex: TGLuint; aValues: IJSInt32Array); overload;
  42985. procedure vertexAttribI4iv(aIndex: TGLuint; const aValues: TGLintDynArray); overload;
  42986. procedure vertexAttribI4ui(aIndex: TGLuint; aX: TGLuint; aY: TGLuint; aZ: TGLuint; aW: TGLuint); overload;
  42987. procedure vertexAttribI4uiv(aIndex: TGLuint; const aValues: TGLuintDynArray); overload;
  42988. procedure vertexAttribI4uiv(aIndex: TGLuint; aValues: IJSUint32Array); overload;
  42989. procedure vertexAttribIPointer(aIndex: TGLuint; aSize: TGLint; aType_: TGLenum; aStride: TGLsizei; aOffset: TGLintptr); overload;
  42990. procedure vertexAttribDivisor(aIndex: TGLuint; aDivisor: TGLuint); overload;
  42991. procedure drawArraysInstanced(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei; aInstanceCount: TGLsizei); overload;
  42992. procedure drawElementsInstanced(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr; aInstanceCount: TGLsizei); overload;
  42993. procedure drawRangeElements(aMode: TGLenum; aStart: TGLuint; aEnd_: TGLuint; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr); overload;
  42994. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView); overload;
  42995. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aOffset: TGLintptr); overload;
  42996. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView; aDstOffset: TGLuint); overload;
  42997. procedure drawBuffers(const aBuffers: TGLenumDynArray); overload;
  42998. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  42999. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43000. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray); overload;
  43001. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array); overload;
  43002. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array; aSrcOffset: TGLuint); overload;
  43003. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray; aSrcOffset: TGLuint); overload;
  43004. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray); overload;
  43005. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array); overload;
  43006. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray; aSrcOffset: TGLuint); overload;
  43007. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array; aSrcOffset: TGLuint); overload;
  43008. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array); overload;
  43009. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray); overload;
  43010. procedure clearBufferfi(aBuffer: TGLenum; aDrawbuffer: TGLint; aDepth: TGLfloat; aStencil: TGLint); overload;
  43011. function createQuery: IJSWebGLQuery; overload;
  43012. procedure deleteQuery(aQuery: IJSWebGLQuery); overload;
  43013. function isQuery(aQuery: IJSWebGLQuery): TGLboolean; overload;
  43014. procedure beginQuery(aTarget: TGLenum; aQuery: IJSWebGLQuery); overload;
  43015. procedure endQuery(aTarget: TGLenum); overload;
  43016. function getQuery(aTarget: TGLenum; aPname: TGLenum): Variant; overload;
  43017. function getQueryParameter(aQuery: IJSWebGLQuery; aPname: TGLenum): Variant; overload;
  43018. function createSampler: IJSWebGLSampler; overload;
  43019. procedure deleteSampler(aSampler: IJSWebGLSampler); overload;
  43020. function isSampler(aSampler: IJSWebGLSampler): TGLboolean; overload;
  43021. procedure bindSampler(aUnit_: TGLuint; aSampler: IJSWebGLSampler); overload;
  43022. procedure samplerParameteri(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLint); overload;
  43023. procedure samplerParameterf(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLfloat); overload;
  43024. function getSamplerParameter(aSampler: IJSWebGLSampler; aPname: TGLenum): Variant; overload;
  43025. function fenceSync(aCondition: TGLenum; aFlags: TGLbitfield): IJSWebGLSync; overload;
  43026. function isSync(aSync: IJSWebGLSync): TGLboolean; overload;
  43027. procedure deleteSync(aSync: IJSWebGLSync); overload;
  43028. function clientWaitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLuint64): TGLenum; overload;
  43029. procedure waitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLint64); overload;
  43030. function getSyncParameter(aSync: IJSWebGLSync; aPname: TGLenum): Variant; overload;
  43031. function createTransformFeedback: IJSWebGLTransformFeedback; overload;
  43032. procedure deleteTransformFeedback(aTf: IJSWebGLTransformFeedback); overload;
  43033. function isTransformFeedback(aTf: IJSWebGLTransformFeedback): TGLboolean; overload;
  43034. procedure bindTransformFeedback(aTarget: TGLenum; aTf: IJSWebGLTransformFeedback); overload;
  43035. procedure beginTransformFeedback(aPrimitiveMode: TGLenum); overload;
  43036. procedure endTransformFeedback; overload;
  43037. procedure transformFeedbackVaryings(aProgram_: IJSWebGLProgram; const aVaryings: TUnicodeStringDynArray; aBufferMode: TGLenum); overload;
  43038. function getTransformFeedbackVarying(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo; overload;
  43039. procedure pauseTransformFeedback; overload;
  43040. procedure resumeTransformFeedback; overload;
  43041. procedure bindBufferBase(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer); overload;
  43042. procedure bindBufferRange(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer; aOffset: TGLintptr; aSize: TGLsizeiptr); overload;
  43043. function getIndexedParameter(aTarget: TGLenum; aIndex: TGLuint): Variant; overload;
  43044. function getUniformIndices(aProgram_: IJSWebGLProgram; const aUniformNames: TUnicodeStringDynArray): TGLuintDynArray; overload;
  43045. function getActiveUniforms(aProgram_: IJSWebGLProgram; const aUniformIndices: TGLuintDynArray; aPname: TGLenum): Variant; overload;
  43046. function getUniformBlockIndex(aProgram_: IJSWebGLProgram; const aUniformBlockName: UnicodeString): TGLuint; overload;
  43047. function getActiveUniformBlockParameter(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aPname: TGLenum): Variant; overload;
  43048. function getActiveUniformBlockName(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint): UnicodeString; overload;
  43049. procedure uniformBlockBinding(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aUniformBlockBinding: TGLuint); overload;
  43050. function createVertexArray: IJSWebGLVertexArrayObject; overload;
  43051. procedure deleteVertexArray(aVertexArray: IJSWebGLVertexArrayObject); overload;
  43052. function isVertexArray(aVertexArray: IJSWebGLVertexArrayObject): TGLboolean; overload;
  43053. procedure bindVertexArray(aArray_: IJSWebGLVertexArrayObject); overload;
  43054. class function JSClassName: UnicodeString; override;
  43055. class function Cast(const Intf: IJSObject): IJSWebGL2RenderingContext;
  43056. property canvas: TCanvasSource read _Getcanvas;
  43057. property drawingBufferWidth: TGLsizei read _GetdrawingBufferWidth;
  43058. property drawingBufferHeight: TGLsizei read _GetdrawingBufferHeight;
  43059. end;
  43060. { --------------------------------------------------------------------
  43061. TJSWebGL2RenderingContextBase
  43062. --------------------------------------------------------------------}
  43063. IJSWebGL2RenderingContextBase = interface(IJSObject)
  43064. ['{F6E20F6C-0549-3256-854A-F1323ACC369C}']
  43065. procedure bufferData(aTarget: TGLenum; aSize: TGLsizeiptr; aUsage: TGLenum);
  43066. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBuffer; aUsage: TGLenum);
  43067. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum);
  43068. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBuffer);
  43069. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBufferView);
  43070. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint; aLength_: TGLuint);
  43071. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint);
  43072. procedure bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aLength_: TGLuint);
  43073. procedure bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  43074. procedure copyBufferSubData(aReadTarget: TGLenum; aWriteTarget: TGLenum; aReadOffset: TGLintptr; aWriteOffset: TGLintptr; aSize: TGLsizeiptr);
  43075. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint; aLength_: TGLuint);
  43076. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView);
  43077. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint);
  43078. procedure blitFramebuffer(aSrcX0: TGLint; aSrcY0: TGLint; aSrcX1: TGLint; aSrcY1: TGLint; aDstX0: TGLint; aDstY0: TGLint; aDstX1: TGLint; aDstY1: TGLint; aMask: TGLbitfield; aFilter: TGLenum);
  43079. procedure framebufferTextureLayer(aTarget: TGLenum; aAttachment: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint; aLayer: TGLint);
  43080. procedure invalidateFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray);
  43081. procedure invalidateSubFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  43082. procedure readBuffer(aSrc: TGLenum);
  43083. function getInternalformatParameter(aTarget: TGLenum; aInternalformat: TGLenum; aPname: TGLenum): Variant;
  43084. procedure renderbufferStorageMultisample(aTarget: TGLenum; aSamples: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  43085. procedure texStorage2D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  43086. procedure texStorage3D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei);
  43087. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  43088. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  43089. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  43090. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  43091. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  43092. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  43093. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  43094. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  43095. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  43096. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  43097. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  43098. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  43099. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  43100. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  43101. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  43102. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  43103. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  43104. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  43105. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  43106. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  43107. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  43108. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  43109. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  43110. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  43111. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  43112. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  43113. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  43114. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  43115. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  43116. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  43117. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  43118. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  43119. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  43120. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView);
  43121. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  43122. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  43123. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  43124. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  43125. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  43126. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  43127. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  43128. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  43129. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  43130. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  43131. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  43132. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  43133. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  43134. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  43135. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  43136. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  43137. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  43138. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  43139. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  43140. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView);
  43141. procedure copyTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  43142. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr);
  43143. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  43144. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView);
  43145. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  43146. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr);
  43147. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  43148. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView);
  43149. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  43150. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr);
  43151. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  43152. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView);
  43153. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  43154. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr);
  43155. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  43156. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView);
  43157. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  43158. function getFragDataLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint;
  43159. procedure uniform1ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint);
  43160. procedure uniform2ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint);
  43161. procedure uniform3ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint);
  43162. procedure uniform4ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint; aV3: TGLuint);
  43163. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43164. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43165. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  43166. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  43167. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43168. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43169. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43170. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43171. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  43172. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  43173. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43174. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43175. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43176. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43177. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  43178. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  43179. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43180. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43181. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43182. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43183. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  43184. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  43185. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43186. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43187. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43188. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43189. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  43190. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  43191. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  43192. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  43193. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43194. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43195. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  43196. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  43197. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  43198. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  43199. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43200. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43201. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  43202. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  43203. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  43204. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  43205. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43206. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43207. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  43208. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  43209. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  43210. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  43211. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43212. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43213. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  43214. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  43215. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  43216. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  43217. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43218. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43219. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  43220. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  43221. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  43222. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  43223. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43224. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43225. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  43226. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  43227. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  43228. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  43229. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43230. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43231. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  43232. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  43233. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  43234. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  43235. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43236. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43237. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  43238. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  43239. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43240. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43241. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43242. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43243. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  43244. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  43245. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43246. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43247. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43248. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43249. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  43250. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  43251. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43252. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43253. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43254. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43255. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  43256. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  43257. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43258. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43259. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43260. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43261. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  43262. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  43263. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43264. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43265. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43266. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43267. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  43268. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  43269. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43270. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43271. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43272. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43273. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  43274. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  43275. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43276. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43277. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43278. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43279. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  43280. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  43281. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43282. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43283. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43284. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  43285. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  43286. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  43287. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  43288. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  43289. procedure vertexAttribI4i(aIndex: TGLuint; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint);
  43290. procedure vertexAttribI4iv(aIndex: TGLuint; aValues: IJSInt32Array);
  43291. procedure vertexAttribI4iv(aIndex: TGLuint; const aValues: TGLintDynArray);
  43292. procedure vertexAttribI4ui(aIndex: TGLuint; aX: TGLuint; aY: TGLuint; aZ: TGLuint; aW: TGLuint);
  43293. procedure vertexAttribI4uiv(aIndex: TGLuint; const aValues: TGLuintDynArray);
  43294. procedure vertexAttribI4uiv(aIndex: TGLuint; aValues: IJSUint32Array);
  43295. procedure vertexAttribIPointer(aIndex: TGLuint; aSize: TGLint; aType_: TGLenum; aStride: TGLsizei; aOffset: TGLintptr);
  43296. procedure vertexAttribDivisor(aIndex: TGLuint; aDivisor: TGLuint);
  43297. procedure drawArraysInstanced(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei; aInstanceCount: TGLsizei);
  43298. procedure drawElementsInstanced(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr; aInstanceCount: TGLsizei);
  43299. procedure drawRangeElements(aMode: TGLenum; aStart: TGLuint; aEnd_: TGLuint; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr);
  43300. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView);
  43301. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aOffset: TGLintptr);
  43302. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView; aDstOffset: TGLuint);
  43303. procedure drawBuffers(const aBuffers: TGLenumDynArray);
  43304. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array; aSrcOffset: TGLuint);
  43305. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray; aSrcOffset: TGLuint);
  43306. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray);
  43307. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array);
  43308. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array; aSrcOffset: TGLuint);
  43309. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray; aSrcOffset: TGLuint);
  43310. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray);
  43311. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array);
  43312. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray; aSrcOffset: TGLuint);
  43313. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array; aSrcOffset: TGLuint);
  43314. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array);
  43315. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray);
  43316. procedure clearBufferfi(aBuffer: TGLenum; aDrawbuffer: TGLint; aDepth: TGLfloat; aStencil: TGLint);
  43317. function createQuery: IJSWebGLQuery;
  43318. procedure deleteQuery(aQuery: IJSWebGLQuery);
  43319. function isQuery(aQuery: IJSWebGLQuery): TGLboolean;
  43320. procedure beginQuery(aTarget: TGLenum; aQuery: IJSWebGLQuery);
  43321. procedure endQuery(aTarget: TGLenum);
  43322. function getQuery(aTarget: TGLenum; aPname: TGLenum): Variant;
  43323. function getQueryParameter(aQuery: IJSWebGLQuery; aPname: TGLenum): Variant;
  43324. function createSampler: IJSWebGLSampler;
  43325. procedure deleteSampler(aSampler: IJSWebGLSampler);
  43326. function isSampler(aSampler: IJSWebGLSampler): TGLboolean;
  43327. procedure bindSampler(aUnit_: TGLuint; aSampler: IJSWebGLSampler);
  43328. procedure samplerParameteri(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLint);
  43329. procedure samplerParameterf(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLfloat);
  43330. function getSamplerParameter(aSampler: IJSWebGLSampler; aPname: TGLenum): Variant;
  43331. function fenceSync(aCondition: TGLenum; aFlags: TGLbitfield): IJSWebGLSync;
  43332. function isSync(aSync: IJSWebGLSync): TGLboolean;
  43333. procedure deleteSync(aSync: IJSWebGLSync);
  43334. function clientWaitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLuint64): TGLenum;
  43335. procedure waitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLint64);
  43336. function getSyncParameter(aSync: IJSWebGLSync; aPname: TGLenum): Variant;
  43337. function createTransformFeedback: IJSWebGLTransformFeedback;
  43338. procedure deleteTransformFeedback(aTf: IJSWebGLTransformFeedback);
  43339. function isTransformFeedback(aTf: IJSWebGLTransformFeedback): TGLboolean;
  43340. procedure bindTransformFeedback(aTarget: TGLenum; aTf: IJSWebGLTransformFeedback);
  43341. procedure beginTransformFeedback(aPrimitiveMode: TGLenum);
  43342. procedure endTransformFeedback;
  43343. procedure transformFeedbackVaryings(aProgram_: IJSWebGLProgram; const aVaryings: TUnicodeStringDynArray; aBufferMode: TGLenum);
  43344. function getTransformFeedbackVarying(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  43345. procedure pauseTransformFeedback;
  43346. procedure resumeTransformFeedback;
  43347. procedure bindBufferBase(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer);
  43348. procedure bindBufferRange(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer; aOffset: TGLintptr; aSize: TGLsizeiptr);
  43349. function getIndexedParameter(aTarget: TGLenum; aIndex: TGLuint): Variant;
  43350. function getUniformIndices(aProgram_: IJSWebGLProgram; const aUniformNames: TUnicodeStringDynArray): TGLuintDynArray;
  43351. function getActiveUniforms(aProgram_: IJSWebGLProgram; const aUniformIndices: TGLuintDynArray; aPname: TGLenum): Variant;
  43352. function getUniformBlockIndex(aProgram_: IJSWebGLProgram; const aUniformBlockName: UnicodeString): TGLuint;
  43353. function getActiveUniformBlockParameter(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aPname: TGLenum): Variant;
  43354. function getActiveUniformBlockName(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint): UnicodeString;
  43355. procedure uniformBlockBinding(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aUniformBlockBinding: TGLuint);
  43356. function createVertexArray: IJSWebGLVertexArrayObject;
  43357. procedure deleteVertexArray(aVertexArray: IJSWebGLVertexArrayObject);
  43358. function isVertexArray(aVertexArray: IJSWebGLVertexArrayObject): TGLboolean;
  43359. procedure bindVertexArray(aArray_: IJSWebGLVertexArrayObject);
  43360. end;
  43361. TJSWebGL2RenderingContextBase = class(TJSObject,IJSWebGL2RenderingContextBase)
  43362. Protected
  43363. Public
  43364. Const
  43365. READ_BUFFER = $0C02;
  43366. UNPACK_ROW_LENGTH = $0CF2;
  43367. UNPACK_SKIP_ROWS = $0CF3;
  43368. UNPACK_SKIP_PIXELS = $0CF4;
  43369. PACK_ROW_LENGTH = $0D02;
  43370. PACK_SKIP_ROWS = $0D03;
  43371. PACK_SKIP_PIXELS = $0D04;
  43372. COLOR = $1800;
  43373. DEPTH = $1801;
  43374. STENCIL = $1802;
  43375. RED = $1903;
  43376. RGB8 = $8051;
  43377. RGBA8 = $8058;
  43378. RGB10_A2 = $8059;
  43379. TEXTURE_BINDING_3D = $806A;
  43380. UNPACK_SKIP_IMAGES = $806D;
  43381. UNPACK_IMAGE_HEIGHT = $806E;
  43382. TEXTURE_3D = $806F;
  43383. TEXTURE_WRAP_R = $8072;
  43384. MAX_3D_TEXTURE_SIZE = $8073;
  43385. UNSIGNED_INT_2_10_10_10_REV = $8368;
  43386. MAX_ELEMENTS_VERTICES = $80E8;
  43387. MAX_ELEMENTS_INDICES = $80E9;
  43388. TEXTURE_MIN_LOD = $813A;
  43389. TEXTURE_MAX_LOD = $813B;
  43390. TEXTURE_BASE_LEVEL = $813C;
  43391. TEXTURE_MAX_LEVEL = $813D;
  43392. MIN = $8007;
  43393. MAX = $8008;
  43394. DEPTH_COMPONENT24 = $81A6;
  43395. MAX_TEXTURE_LOD_BIAS = $84FD;
  43396. TEXTURE_COMPARE_MODE = $884C;
  43397. TEXTURE_COMPARE_FUNC = $884D;
  43398. CURRENT_QUERY = $8865;
  43399. QUERY_RESULT = $8866;
  43400. QUERY_RESULT_AVAILABLE = $8867;
  43401. STREAM_READ = $88E1;
  43402. STREAM_COPY = $88E2;
  43403. STATIC_READ = $88E5;
  43404. STATIC_COPY = $88E6;
  43405. DYNAMIC_READ = $88E9;
  43406. DYNAMIC_COPY = $88EA;
  43407. MAX_DRAW_BUFFERS = $8824;
  43408. DRAW_BUFFER0 = $8825;
  43409. DRAW_BUFFER1 = $8826;
  43410. DRAW_BUFFER2 = $8827;
  43411. DRAW_BUFFER3 = $8828;
  43412. DRAW_BUFFER4 = $8829;
  43413. DRAW_BUFFER5 = $882A;
  43414. DRAW_BUFFER6 = $882B;
  43415. DRAW_BUFFER7 = $882C;
  43416. DRAW_BUFFER8 = $882D;
  43417. DRAW_BUFFER9 = $882E;
  43418. DRAW_BUFFER10 = $882F;
  43419. DRAW_BUFFER11 = $8830;
  43420. DRAW_BUFFER12 = $8831;
  43421. DRAW_BUFFER13 = $8832;
  43422. DRAW_BUFFER14 = $8833;
  43423. DRAW_BUFFER15 = $8834;
  43424. MAX_FRAGMENT_UNIFORM_COMPONENTS = $8B49;
  43425. MAX_VERTEX_UNIFORM_COMPONENTS = $8B4A;
  43426. SAMPLER_3D = $8B5F;
  43427. SAMPLER_2D_SHADOW = $8B62;
  43428. FRAGMENT_SHADER_DERIVATIVE_HINT = $8B8B;
  43429. PIXEL_PACK_BUFFER = $88EB;
  43430. PIXEL_UNPACK_BUFFER = $88EC;
  43431. PIXEL_PACK_BUFFER_BINDING = $88ED;
  43432. PIXEL_UNPACK_BUFFER_BINDING = $88EF;
  43433. FLOAT_MAT2x3 = $8B65;
  43434. FLOAT_MAT2x4 = $8B66;
  43435. FLOAT_MAT3x2 = $8B67;
  43436. FLOAT_MAT3x4 = $8B68;
  43437. FLOAT_MAT4x2 = $8B69;
  43438. FLOAT_MAT4x3 = $8B6A;
  43439. SRGB = $8C40;
  43440. SRGB8 = $8C41;
  43441. SRGB8_ALPHA8 = $8C43;
  43442. COMPARE_REF_TO_TEXTURE = $884E;
  43443. RGBA32F = $8814;
  43444. RGB32F = $8815;
  43445. RGBA16F = $881A;
  43446. RGB16F = $881B;
  43447. VERTEX_ATTRIB_ARRAY_INTEGER = $88FD;
  43448. MAX_ARRAY_TEXTURE_LAYERS = $88FF;
  43449. MIN_PROGRAM_TEXEL_OFFSET = $8904;
  43450. MAX_PROGRAM_TEXEL_OFFSET = $8905;
  43451. MAX_VARYING_COMPONENTS = $8B4B;
  43452. TEXTURE_2D_ARRAY = $8C1A;
  43453. TEXTURE_BINDING_2D_ARRAY = $8C1D;
  43454. R11F_G11F_B10F = $8C3A;
  43455. UNSIGNED_INT_10F_11F_11F_REV = $8C3B;
  43456. RGB9_E5 = $8C3D;
  43457. UNSIGNED_INT_5_9_9_9_REV = $8C3E;
  43458. TRANSFORM_FEEDBACK_BUFFER_MODE = $8C7F;
  43459. MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = $8C80;
  43460. TRANSFORM_FEEDBACK_VARYINGS = $8C83;
  43461. TRANSFORM_FEEDBACK_BUFFER_START = $8C84;
  43462. TRANSFORM_FEEDBACK_BUFFER_SIZE = $8C85;
  43463. TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = $8C88;
  43464. RASTERIZER_DISCARD = $8C89;
  43465. MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = $8C8A;
  43466. MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = $8C8B;
  43467. INTERLEAVED_ATTRIBS = $8C8C;
  43468. SEPARATE_ATTRIBS = $8C8D;
  43469. TRANSFORM_FEEDBACK_BUFFER = $8C8E;
  43470. TRANSFORM_FEEDBACK_BUFFER_BINDING = $8C8F;
  43471. RGBA32UI = $8D70;
  43472. RGB32UI = $8D71;
  43473. RGBA16UI = $8D76;
  43474. RGB16UI = $8D77;
  43475. RGBA8UI = $8D7C;
  43476. RGB8UI = $8D7D;
  43477. RGBA32I = $8D82;
  43478. RGB32I = $8D83;
  43479. RGBA16I = $8D88;
  43480. RGB16I = $8D89;
  43481. RGBA8I = $8D8E;
  43482. RGB8I = $8D8F;
  43483. RED_INTEGER = $8D94;
  43484. RGB_INTEGER = $8D98;
  43485. RGBA_INTEGER = $8D99;
  43486. SAMPLER_2D_ARRAY = $8DC1;
  43487. SAMPLER_2D_ARRAY_SHADOW = $8DC4;
  43488. SAMPLER_CUBE_SHADOW = $8DC5;
  43489. UNSIGNED_INT_VEC2 = $8DC6;
  43490. UNSIGNED_INT_VEC3 = $8DC7;
  43491. UNSIGNED_INT_VEC4 = $8DC8;
  43492. INT_SAMPLER_2D = $8DCA;
  43493. INT_SAMPLER_3D = $8DCB;
  43494. INT_SAMPLER_CUBE = $8DCC;
  43495. INT_SAMPLER_2D_ARRAY = $8DCF;
  43496. UNSIGNED_INT_SAMPLER_2D = $8DD2;
  43497. UNSIGNED_INT_SAMPLER_3D = $8DD3;
  43498. UNSIGNED_INT_SAMPLER_CUBE = $8DD4;
  43499. UNSIGNED_INT_SAMPLER_2D_ARRAY = $8DD7;
  43500. DEPTH_COMPONENT32F = $8CAC;
  43501. DEPTH32F_STENCIL8 = $8CAD;
  43502. FLOAT_32_UNSIGNED_INT_24_8_REV = $8DAD;
  43503. FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = $8210;
  43504. FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = $8211;
  43505. FRAMEBUFFER_ATTACHMENT_RED_SIZE = $8212;
  43506. FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = $8213;
  43507. FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = $8214;
  43508. FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = $8215;
  43509. FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = $8216;
  43510. FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = $8217;
  43511. FRAMEBUFFER_DEFAULT = $8218;
  43512. UNSIGNED_INT_24_8 = $84FA;
  43513. DEPTH24_STENCIL8 = $88F0;
  43514. UNSIGNED_NORMALIZED = $8C17;
  43515. DRAW_FRAMEBUFFER_BINDING = $8CA6;
  43516. READ_FRAMEBUFFER = $8CA8;
  43517. DRAW_FRAMEBUFFER = $8CA9;
  43518. READ_FRAMEBUFFER_BINDING = $8CAA;
  43519. RENDERBUFFER_SAMPLES = $8CAB;
  43520. FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = $8CD4;
  43521. MAX_COLOR_ATTACHMENTS = $8CDF;
  43522. COLOR_ATTACHMENT1 = $8CE1;
  43523. COLOR_ATTACHMENT2 = $8CE2;
  43524. COLOR_ATTACHMENT3 = $8CE3;
  43525. COLOR_ATTACHMENT4 = $8CE4;
  43526. COLOR_ATTACHMENT5 = $8CE5;
  43527. COLOR_ATTACHMENT6 = $8CE6;
  43528. COLOR_ATTACHMENT7 = $8CE7;
  43529. COLOR_ATTACHMENT8 = $8CE8;
  43530. COLOR_ATTACHMENT9 = $8CE9;
  43531. COLOR_ATTACHMENT10 = $8CEA;
  43532. COLOR_ATTACHMENT11 = $8CEB;
  43533. COLOR_ATTACHMENT12 = $8CEC;
  43534. COLOR_ATTACHMENT13 = $8CED;
  43535. COLOR_ATTACHMENT14 = $8CEE;
  43536. COLOR_ATTACHMENT15 = $8CEF;
  43537. FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = $8D56;
  43538. MAX_SAMPLES = $8D57;
  43539. HALF_FLOAT = $140B;
  43540. RG = $8227;
  43541. RG_INTEGER = $8228;
  43542. R8 = $8229;
  43543. RG8 = $822B;
  43544. R16F = $822D;
  43545. R32F = $822E;
  43546. RG16F = $822F;
  43547. RG32F = $8230;
  43548. R8I = $8231;
  43549. R8UI = $8232;
  43550. R16I = $8233;
  43551. R16UI = $8234;
  43552. R32I = $8235;
  43553. R32UI = $8236;
  43554. RG8I = $8237;
  43555. RG8UI = $8238;
  43556. RG16I = $8239;
  43557. RG16UI = $823A;
  43558. RG32I = $823B;
  43559. RG32UI = $823C;
  43560. VERTEX_ARRAY_BINDING = $85B5;
  43561. R8_SNORM = $8F94;
  43562. RG8_SNORM = $8F95;
  43563. RGB8_SNORM = $8F96;
  43564. RGBA8_SNORM = $8F97;
  43565. SIGNED_NORMALIZED = $8F9C;
  43566. COPY_READ_BUFFER = $8F36;
  43567. COPY_WRITE_BUFFER = $8F37;
  43568. COPY_READ_BUFFER_BINDING = $8F36;
  43569. COPY_WRITE_BUFFER_BINDING = $8F37;
  43570. UNIFORM_BUFFER = $8A11;
  43571. UNIFORM_BUFFER_BINDING = $8A28;
  43572. UNIFORM_BUFFER_START = $8A29;
  43573. UNIFORM_BUFFER_SIZE = $8A2A;
  43574. MAX_VERTEX_UNIFORM_BLOCKS = $8A2B;
  43575. MAX_FRAGMENT_UNIFORM_BLOCKS = $8A2D;
  43576. MAX_COMBINED_UNIFORM_BLOCKS = $8A2E;
  43577. MAX_UNIFORM_BUFFER_BINDINGS = $8A2F;
  43578. MAX_UNIFORM_BLOCK_SIZE = $8A30;
  43579. MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = $8A31;
  43580. MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = $8A33;
  43581. UNIFORM_BUFFER_OFFSET_ALIGNMENT = $8A34;
  43582. ACTIVE_UNIFORM_BLOCKS = $8A36;
  43583. UNIFORM_TYPE = $8A37;
  43584. UNIFORM_SIZE = $8A38;
  43585. UNIFORM_BLOCK_INDEX = $8A3A;
  43586. UNIFORM_OFFSET = $8A3B;
  43587. UNIFORM_ARRAY_STRIDE = $8A3C;
  43588. UNIFORM_MATRIX_STRIDE = $8A3D;
  43589. UNIFORM_IS_ROW_MAJOR = $8A3E;
  43590. UNIFORM_BLOCK_BINDING = $8A3F;
  43591. UNIFORM_BLOCK_DATA_SIZE = $8A40;
  43592. UNIFORM_BLOCK_ACTIVE_UNIFORMS = $8A42;
  43593. UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = $8A43;
  43594. UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = $8A44;
  43595. UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = $8A46;
  43596. INVALID_INDEX = $FFFFFFFF;
  43597. MAX_VERTEX_OUTPUT_COMPONENTS = $9122;
  43598. MAX_FRAGMENT_INPUT_COMPONENTS = $9125;
  43599. MAX_SERVER_WAIT_TIMEOUT = $9111;
  43600. OBJECT_TYPE = $9112;
  43601. SYNC_CONDITION = $9113;
  43602. SYNC_STATUS = $9114;
  43603. SYNC_FLAGS = $9115;
  43604. SYNC_FENCE = $9116;
  43605. SYNC_GPU_COMMANDS_COMPLETE = $9117;
  43606. UNSIGNALED = $9118;
  43607. SIGNALED = $9119;
  43608. ALREADY_SIGNALED = $911A;
  43609. TIMEOUT_EXPIRED = $911B;
  43610. CONDITION_SATISFIED = $911C;
  43611. WAIT_FAILED = $911D;
  43612. SYNC_FLUSH_COMMANDS_BIT = $00000001;
  43613. VERTEX_ATTRIB_ARRAY_DIVISOR = $88FE;
  43614. ANY_SAMPLES_PASSED = $8C2F;
  43615. ANY_SAMPLES_PASSED_CONSERVATIVE = $8D6A;
  43616. SAMPLER_BINDING = $8919;
  43617. RGB10_A2UI = $906F;
  43618. INT_2_10_10_10_REV = $8D9F;
  43619. TRANSFORM_FEEDBACK = $8E22;
  43620. TRANSFORM_FEEDBACK_PAUSED = $8E23;
  43621. TRANSFORM_FEEDBACK_ACTIVE = $8E24;
  43622. TRANSFORM_FEEDBACK_BINDING = $8E25;
  43623. TEXTURE_IMMUTABLE_FORMAT = $912F;
  43624. MAX_ELEMENT_INDEX = $8D6B;
  43625. TEXTURE_IMMUTABLE_LEVELS = $82DF;
  43626. TIMEOUT_IGNORED = -1;
  43627. MAX_CLIENT_WAIT_TIMEOUT_WEBGL = $9247;
  43628. Public
  43629. procedure bufferData(aTarget: TGLenum; aSize: TGLsizeiptr; aUsage: TGLenum); overload;
  43630. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBuffer; aUsage: TGLenum); overload;
  43631. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum); overload;
  43632. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBuffer); overload;
  43633. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBufferView); overload;
  43634. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint; aLength_: TGLuint); overload;
  43635. procedure bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint); overload;
  43636. procedure bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aLength_: TGLuint); overload;
  43637. procedure bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  43638. procedure copyBufferSubData(aReadTarget: TGLenum; aWriteTarget: TGLenum; aReadOffset: TGLintptr; aWriteOffset: TGLintptr; aSize: TGLsizeiptr); overload;
  43639. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint; aLength_: TGLuint); overload;
  43640. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView); overload;
  43641. procedure getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint); overload;
  43642. procedure blitFramebuffer(aSrcX0: TGLint; aSrcY0: TGLint; aSrcX1: TGLint; aSrcY1: TGLint; aDstX0: TGLint; aDstY0: TGLint; aDstX1: TGLint; aDstY1: TGLint; aMask: TGLbitfield; aFilter: TGLenum); overload;
  43643. procedure framebufferTextureLayer(aTarget: TGLenum; aAttachment: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint; aLayer: TGLint); overload;
  43644. procedure invalidateFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray); overload;
  43645. procedure invalidateSubFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  43646. procedure readBuffer(aSrc: TGLenum); overload;
  43647. function getInternalformatParameter(aTarget: TGLenum; aInternalformat: TGLenum; aPname: TGLenum): Variant; overload;
  43648. procedure renderbufferStorageMultisample(aTarget: TGLenum; aSamples: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  43649. procedure texStorage2D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  43650. procedure texStorage3D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei); overload;
  43651. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView); overload;
  43652. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  43653. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  43654. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  43655. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  43656. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  43657. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  43658. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  43659. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView); overload;
  43660. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  43661. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  43662. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  43663. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  43664. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  43665. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  43666. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  43667. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr); overload;
  43668. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  43669. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  43670. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  43671. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  43672. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  43673. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  43674. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  43675. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  43676. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr); overload;
  43677. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  43678. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  43679. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  43680. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  43681. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  43682. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  43683. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  43684. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView); overload;
  43685. procedure texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  43686. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr); overload;
  43687. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  43688. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  43689. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  43690. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  43691. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  43692. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  43693. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  43694. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  43695. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr); overload;
  43696. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement); overload;
  43697. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement); overload;
  43698. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement); overload;
  43699. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap); overload;
  43700. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData); overload;
  43701. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas); overload;
  43702. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame); overload;
  43703. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  43704. procedure texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView); overload;
  43705. procedure copyTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  43706. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr); overload;
  43707. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint); overload;
  43708. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView); overload;
  43709. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  43710. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr); overload;
  43711. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint); overload;
  43712. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView); overload;
  43713. procedure compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  43714. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr); overload;
  43715. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint); overload;
  43716. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView); overload;
  43717. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  43718. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr); overload;
  43719. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint); overload;
  43720. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView); overload;
  43721. procedure compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint); overload;
  43722. function getFragDataLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint; overload;
  43723. procedure uniform1ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint); overload;
  43724. procedure uniform2ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint); overload;
  43725. procedure uniform3ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint); overload;
  43726. procedure uniform4ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint; aV3: TGLuint); overload;
  43727. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43728. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43729. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  43730. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  43731. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43732. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43733. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43734. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43735. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  43736. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  43737. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43738. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43739. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43740. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43741. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  43742. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  43743. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43744. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43745. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43746. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43747. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  43748. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  43749. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43750. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43751. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43752. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43753. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  43754. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  43755. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint); overload;
  43756. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint); overload;
  43757. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43758. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43759. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  43760. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  43761. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint); overload;
  43762. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint); overload;
  43763. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43764. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43765. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  43766. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  43767. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint); overload;
  43768. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint); overload;
  43769. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43770. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43771. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  43772. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  43773. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint); overload;
  43774. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint); overload;
  43775. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43776. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43777. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array); overload;
  43778. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray); overload;
  43779. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint); overload;
  43780. procedure uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint); overload;
  43781. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43782. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43783. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array); overload;
  43784. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray); overload;
  43785. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint); overload;
  43786. procedure uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint); overload;
  43787. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43788. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43789. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array); overload;
  43790. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray); overload;
  43791. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint); overload;
  43792. procedure uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint); overload;
  43793. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43794. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43795. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array); overload;
  43796. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray); overload;
  43797. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint); overload;
  43798. procedure uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint); overload;
  43799. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43800. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43801. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  43802. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  43803. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43804. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43805. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43806. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43807. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  43808. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  43809. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43810. procedure uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43811. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43812. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43813. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  43814. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  43815. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43816. procedure uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43817. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43818. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43819. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  43820. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  43821. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43822. procedure uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43823. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43824. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43825. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  43826. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  43827. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43828. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43829. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43830. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43831. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  43832. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  43833. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43834. procedure uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43835. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43836. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43837. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  43838. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  43839. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43840. procedure uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43841. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43842. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43843. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  43844. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  43845. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43846. procedure uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43847. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43848. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint); overload;
  43849. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  43850. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  43851. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43852. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43853. procedure vertexAttribI4i(aIndex: TGLuint; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint); overload;
  43854. procedure vertexAttribI4iv(aIndex: TGLuint; aValues: IJSInt32Array); overload;
  43855. procedure vertexAttribI4iv(aIndex: TGLuint; const aValues: TGLintDynArray); overload;
  43856. procedure vertexAttribI4ui(aIndex: TGLuint; aX: TGLuint; aY: TGLuint; aZ: TGLuint; aW: TGLuint); overload;
  43857. procedure vertexAttribI4uiv(aIndex: TGLuint; const aValues: TGLuintDynArray); overload;
  43858. procedure vertexAttribI4uiv(aIndex: TGLuint; aValues: IJSUint32Array); overload;
  43859. procedure vertexAttribIPointer(aIndex: TGLuint; aSize: TGLint; aType_: TGLenum; aStride: TGLsizei; aOffset: TGLintptr); overload;
  43860. procedure vertexAttribDivisor(aIndex: TGLuint; aDivisor: TGLuint); overload;
  43861. procedure drawArraysInstanced(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei; aInstanceCount: TGLsizei); overload;
  43862. procedure drawElementsInstanced(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr; aInstanceCount: TGLsizei); overload;
  43863. procedure drawRangeElements(aMode: TGLenum; aStart: TGLuint; aEnd_: TGLuint; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr); overload;
  43864. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView); overload;
  43865. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aOffset: TGLintptr); overload;
  43866. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView; aDstOffset: TGLuint); overload;
  43867. procedure drawBuffers(const aBuffers: TGLenumDynArray); overload;
  43868. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array; aSrcOffset: TGLuint); overload;
  43869. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray; aSrcOffset: TGLuint); overload;
  43870. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray); overload;
  43871. procedure clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array); overload;
  43872. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array; aSrcOffset: TGLuint); overload;
  43873. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray; aSrcOffset: TGLuint); overload;
  43874. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray); overload;
  43875. procedure clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array); overload;
  43876. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray; aSrcOffset: TGLuint); overload;
  43877. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array; aSrcOffset: TGLuint); overload;
  43878. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array); overload;
  43879. procedure clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray); overload;
  43880. procedure clearBufferfi(aBuffer: TGLenum; aDrawbuffer: TGLint; aDepth: TGLfloat; aStencil: TGLint); overload;
  43881. function createQuery: IJSWebGLQuery; overload;
  43882. procedure deleteQuery(aQuery: IJSWebGLQuery); overload;
  43883. function isQuery(aQuery: IJSWebGLQuery): TGLboolean; overload;
  43884. procedure beginQuery(aTarget: TGLenum; aQuery: IJSWebGLQuery); overload;
  43885. procedure endQuery(aTarget: TGLenum); overload;
  43886. function getQuery(aTarget: TGLenum; aPname: TGLenum): Variant; overload;
  43887. function getQueryParameter(aQuery: IJSWebGLQuery; aPname: TGLenum): Variant; overload;
  43888. function createSampler: IJSWebGLSampler; overload;
  43889. procedure deleteSampler(aSampler: IJSWebGLSampler); overload;
  43890. function isSampler(aSampler: IJSWebGLSampler): TGLboolean; overload;
  43891. procedure bindSampler(aUnit_: TGLuint; aSampler: IJSWebGLSampler); overload;
  43892. procedure samplerParameteri(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLint); overload;
  43893. procedure samplerParameterf(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLfloat); overload;
  43894. function getSamplerParameter(aSampler: IJSWebGLSampler; aPname: TGLenum): Variant; overload;
  43895. function fenceSync(aCondition: TGLenum; aFlags: TGLbitfield): IJSWebGLSync; overload;
  43896. function isSync(aSync: IJSWebGLSync): TGLboolean; overload;
  43897. procedure deleteSync(aSync: IJSWebGLSync); overload;
  43898. function clientWaitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLuint64): TGLenum; overload;
  43899. procedure waitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLint64); overload;
  43900. function getSyncParameter(aSync: IJSWebGLSync; aPname: TGLenum): Variant; overload;
  43901. function createTransformFeedback: IJSWebGLTransformFeedback; overload;
  43902. procedure deleteTransformFeedback(aTf: IJSWebGLTransformFeedback); overload;
  43903. function isTransformFeedback(aTf: IJSWebGLTransformFeedback): TGLboolean; overload;
  43904. procedure bindTransformFeedback(aTarget: TGLenum; aTf: IJSWebGLTransformFeedback); overload;
  43905. procedure beginTransformFeedback(aPrimitiveMode: TGLenum); overload;
  43906. procedure endTransformFeedback; overload;
  43907. procedure transformFeedbackVaryings(aProgram_: IJSWebGLProgram; const aVaryings: TUnicodeStringDynArray; aBufferMode: TGLenum); overload;
  43908. function getTransformFeedbackVarying(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo; overload;
  43909. procedure pauseTransformFeedback; overload;
  43910. procedure resumeTransformFeedback; overload;
  43911. procedure bindBufferBase(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer); overload;
  43912. procedure bindBufferRange(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer; aOffset: TGLintptr; aSize: TGLsizeiptr); overload;
  43913. function getIndexedParameter(aTarget: TGLenum; aIndex: TGLuint): Variant; overload;
  43914. function getUniformIndices(aProgram_: IJSWebGLProgram; const aUniformNames: TUnicodeStringDynArray): TGLuintDynArray; overload;
  43915. function getActiveUniforms(aProgram_: IJSWebGLProgram; const aUniformIndices: TGLuintDynArray; aPname: TGLenum): Variant; overload;
  43916. function getUniformBlockIndex(aProgram_: IJSWebGLProgram; const aUniformBlockName: UnicodeString): TGLuint; overload;
  43917. function getActiveUniformBlockParameter(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aPname: TGLenum): Variant; overload;
  43918. function getActiveUniformBlockName(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint): UnicodeString; overload;
  43919. procedure uniformBlockBinding(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aUniformBlockBinding: TGLuint); overload;
  43920. function createVertexArray: IJSWebGLVertexArrayObject; overload;
  43921. procedure deleteVertexArray(aVertexArray: IJSWebGLVertexArrayObject); overload;
  43922. function isVertexArray(aVertexArray: IJSWebGLVertexArrayObject): TGLboolean; overload;
  43923. procedure bindVertexArray(aArray_: IJSWebGLVertexArrayObject); overload;
  43924. class function JSClassName: UnicodeString; override;
  43925. class function Cast(const Intf: IJSObject): IJSWebGL2RenderingContextBase;
  43926. end;
  43927. { --------------------------------------------------------------------
  43928. TJSEXT_color_buffer_float
  43929. --------------------------------------------------------------------}
  43930. IJSEXT_color_buffer_float = interface(IJSObject)
  43931. ['{D65EC240-EDDC-3778-80B2-D3FB3E66A1A8}']
  43932. end;
  43933. TJSEXT_color_buffer_float = class(TJSObject,IJSEXT_color_buffer_float)
  43934. Protected
  43935. Public
  43936. class function JSClassName: UnicodeString; override;
  43937. class function Cast(const Intf: IJSObject): IJSEXT_color_buffer_float;
  43938. end;
  43939. { --------------------------------------------------------------------
  43940. TJSOVR_multiview2
  43941. --------------------------------------------------------------------}
  43942. IJSOVR_multiview2 = interface(IJSObject)
  43943. ['{4B6B11A4-5576-3060-B02E-10347131D7B5}']
  43944. procedure framebufferTextureMultiviewOVR(aTarget: TGLenum; aAttachment: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint; aBaseViewIndex: TGLint; aNumViews: TGLsizei);
  43945. end;
  43946. TJSOVR_multiview2 = class(TJSObject,IJSOVR_multiview2)
  43947. Protected
  43948. Public
  43949. Const
  43950. FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR = $9630;
  43951. FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR = $9632;
  43952. MAX_VIEWS_OVR = $9631;
  43953. FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR = $9633;
  43954. Public
  43955. procedure framebufferTextureMultiviewOVR(aTarget: TGLenum; aAttachment: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint; aBaseViewIndex: TGLint; aNumViews: TGLsizei); overload;
  43956. class function JSClassName: UnicodeString; override;
  43957. class function Cast(const Intf: IJSObject): IJSOVR_multiview2;
  43958. end;
  43959. { --------------------------------------------------------------------
  43960. TJSWebGLBuffer
  43961. --------------------------------------------------------------------}
  43962. IJSWebGLBuffer = interface(IJSObject)
  43963. ['{EEE0F752-953A-37C2-8C3D-1A2372542131}']
  43964. end;
  43965. TJSWebGLBuffer = class(TJSObject,IJSWebGLBuffer)
  43966. Protected
  43967. Public
  43968. class function JSClassName: UnicodeString; override;
  43969. class function Cast(const Intf: IJSObject): IJSWebGLBuffer;
  43970. end;
  43971. { --------------------------------------------------------------------
  43972. TJSWebGLFramebuffer
  43973. --------------------------------------------------------------------}
  43974. IJSWebGLFramebuffer = interface(IJSObject)
  43975. ['{84BCBAD8-8677-39B6-99B0-E1261E0D8EB9}']
  43976. end;
  43977. TJSWebGLFramebuffer = class(TJSObject,IJSWebGLFramebuffer)
  43978. Protected
  43979. Public
  43980. class function JSClassName: UnicodeString; override;
  43981. class function Cast(const Intf: IJSObject): IJSWebGLFramebuffer;
  43982. end;
  43983. { --------------------------------------------------------------------
  43984. TJSWebGLProgram
  43985. --------------------------------------------------------------------}
  43986. IJSWebGLProgram = interface(IJSObject)
  43987. ['{E6D054BF-57EC-3E53-91C0-F0D81AA2A621}']
  43988. end;
  43989. TJSWebGLProgram = class(TJSObject,IJSWebGLProgram)
  43990. Protected
  43991. Public
  43992. class function JSClassName: UnicodeString; override;
  43993. class function Cast(const Intf: IJSObject): IJSWebGLProgram;
  43994. end;
  43995. { --------------------------------------------------------------------
  43996. TJSWebGLRenderbuffer
  43997. --------------------------------------------------------------------}
  43998. IJSWebGLRenderbuffer = interface(IJSObject)
  43999. ['{2B7E32D5-7E82-3987-B9EA-9E1130F8698D}']
  44000. end;
  44001. TJSWebGLRenderbuffer = class(TJSObject,IJSWebGLRenderbuffer)
  44002. Protected
  44003. Public
  44004. class function JSClassName: UnicodeString; override;
  44005. class function Cast(const Intf: IJSObject): IJSWebGLRenderbuffer;
  44006. end;
  44007. { --------------------------------------------------------------------
  44008. TJSWebGLShader
  44009. --------------------------------------------------------------------}
  44010. IJSWebGLShader = interface(IJSObject)
  44011. ['{EEE0F752-95C0-3CA2-8C3D-1A2372542131}']
  44012. end;
  44013. TJSWebGLShader = class(TJSObject,IJSWebGLShader)
  44014. Protected
  44015. Public
  44016. class function JSClassName: UnicodeString; override;
  44017. class function Cast(const Intf: IJSObject): IJSWebGLShader;
  44018. end;
  44019. { --------------------------------------------------------------------
  44020. TJSWebGLTexture
  44021. --------------------------------------------------------------------}
  44022. IJSWebGLTexture = interface(IJSObject)
  44023. ['{E6D054BF-5709-3123-94C0-F0D81AA2A621}']
  44024. end;
  44025. TJSWebGLTexture = class(TJSObject,IJSWebGLTexture)
  44026. Protected
  44027. Public
  44028. class function JSClassName: UnicodeString; override;
  44029. class function Cast(const Intf: IJSObject): IJSWebGLTexture;
  44030. end;
  44031. { --------------------------------------------------------------------
  44032. TJSWebGLUniformLocation
  44033. --------------------------------------------------------------------}
  44034. IJSWebGLUniformLocation = interface(IJSObject)
  44035. ['{334544B6-4D4F-3D49-8417-E0F31DC9E0F0}']
  44036. end;
  44037. TJSWebGLUniformLocation = class(TJSObject,IJSWebGLUniformLocation)
  44038. Protected
  44039. Public
  44040. class function JSClassName: UnicodeString; override;
  44041. class function Cast(const Intf: IJSObject): IJSWebGLUniformLocation;
  44042. end;
  44043. { --------------------------------------------------------------------
  44044. TJSWebGLVertexArrayObject
  44045. --------------------------------------------------------------------}
  44046. IJSWebGLVertexArrayObject = interface(IJSObject)
  44047. ['{D660E8F5-D611-3D9B-923E-32083C5D63A8}']
  44048. end;
  44049. TJSWebGLVertexArrayObject = class(TJSObject,IJSWebGLVertexArrayObject)
  44050. Protected
  44051. Public
  44052. class function JSClassName: UnicodeString; override;
  44053. class function Cast(const Intf: IJSObject): IJSWebGLVertexArrayObject;
  44054. end;
  44055. { --------------------------------------------------------------------
  44056. TJSWebGLActiveInfo
  44057. --------------------------------------------------------------------}
  44058. IJSWebGLActiveInfo = interface(IJSObject)
  44059. ['{5C4F499C-7D51-3EF2-AC04-FFF3B1C17B95}']
  44060. function _Getsize: TGLint;
  44061. function _Gettype_: TGLenum;
  44062. function _Getname: UnicodeString;
  44063. property size: TGLint read _Getsize;
  44064. property type_: TGLenum read _Gettype_;
  44065. property name: UnicodeString read _Getname;
  44066. end;
  44067. TJSWebGLActiveInfo = class(TJSObject,IJSWebGLActiveInfo)
  44068. Protected
  44069. function _Getsize: TGLint;
  44070. function _Gettype_: TGLenum;
  44071. function _Getname: UnicodeString;
  44072. Public
  44073. class function JSClassName: UnicodeString; override;
  44074. class function Cast(const Intf: IJSObject): IJSWebGLActiveInfo;
  44075. property size: TGLint read _Getsize;
  44076. property type_: TGLenum read _Gettype_;
  44077. property name: UnicodeString read _Getname;
  44078. end;
  44079. { --------------------------------------------------------------------
  44080. TJSWebGLShaderPrecisionFormat
  44081. --------------------------------------------------------------------}
  44082. IJSWebGLShaderPrecisionFormat = interface(IJSObject)
  44083. ['{C7BA1534-7F59-3861-8144-E24C30E5D63F}']
  44084. function _GetrangeMin: TGLint;
  44085. function _GetrangeMax: TGLint;
  44086. function _Getprecision: TGLint;
  44087. property rangeMin: TGLint read _GetrangeMin;
  44088. property rangeMax: TGLint read _GetrangeMax;
  44089. property precision: TGLint read _Getprecision;
  44090. end;
  44091. TJSWebGLShaderPrecisionFormat = class(TJSObject,IJSWebGLShaderPrecisionFormat)
  44092. Protected
  44093. function _GetrangeMin: TGLint;
  44094. function _GetrangeMax: TGLint;
  44095. function _Getprecision: TGLint;
  44096. Public
  44097. class function JSClassName: UnicodeString; override;
  44098. class function Cast(const Intf: IJSObject): IJSWebGLShaderPrecisionFormat;
  44099. property rangeMin: TGLint read _GetrangeMin;
  44100. property rangeMax: TGLint read _GetrangeMax;
  44101. property precision: TGLint read _Getprecision;
  44102. end;
  44103. { --------------------------------------------------------------------
  44104. TJSWebGLRenderingContextBase
  44105. --------------------------------------------------------------------}
  44106. IJSWebGLRenderingContextBase = interface(IJSObject)
  44107. ['{E49A3F0A-15DD-32F2-B442-0F83E83D0435}']
  44108. function _Getcanvas: TCanvasSource;
  44109. function _GetdrawingBufferWidth: TGLsizei;
  44110. function _GetdrawingBufferHeight: TGLsizei;
  44111. function getContextAttributes: TJSWebGLContextAttributes;
  44112. function isContextLost: Boolean;
  44113. function getSupportedExtensions: TUnicodeStringDynArray;
  44114. function getExtension(const aName: UnicodeString): IJSObject;
  44115. procedure activeTexture(aTexture: TGLenum);
  44116. procedure attachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader);
  44117. procedure bindAttribLocation(aProgram_: IJSWebGLProgram; aIndex: TGLuint; const aName: UnicodeString);
  44118. procedure bindBuffer(aTarget: TGLenum; aBuffer: IJSWebGLBuffer);
  44119. procedure bindFramebuffer(aTarget: TGLenum; aFramebuffer: IJSWebGLFramebuffer);
  44120. procedure bindRenderbuffer(aTarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer);
  44121. procedure bindTexture(aTarget: TGLenum; aTexture: IJSWebGLTexture);
  44122. procedure blendColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat);
  44123. procedure blendEquation(aMode: TGLenum);
  44124. procedure blendEquationSeparate(aModeRGB: TGLenum; aModeAlpha: TGLenum);
  44125. procedure blendFunc(aSfactor: TGLenum; aDfactor: TGLenum);
  44126. procedure blendFuncSeparate(aSrcRGB: TGLenum; aDstRGB: TGLenum; aSrcAlpha: TGLenum; aDstAlpha: TGLenum);
  44127. function checkFramebufferStatus(aTarget: TGLenum): TGLenum;
  44128. procedure clear(aMask: TGLbitfield);
  44129. procedure clearColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat);
  44130. procedure clearDepth(aDepth: TGLclampf);
  44131. procedure clearStencil(aS_: TGLint);
  44132. procedure colorMask(aRed: TGLboolean; aGreen: TGLboolean; aBlue: TGLboolean; aAlpha: TGLboolean);
  44133. procedure compileShader(aShader: IJSWebGLShader);
  44134. procedure copyTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint);
  44135. procedure copyTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  44136. function createBuffer: IJSWebGLBuffer;
  44137. function createFramebuffer: IJSWebGLFramebuffer;
  44138. function createProgram: IJSWebGLProgram;
  44139. function createRenderbuffer: IJSWebGLRenderbuffer;
  44140. function createShader(aType_: TGLenum): IJSWebGLShader;
  44141. function createTexture: IJSWebGLTexture;
  44142. procedure cullFace(aMode: TGLenum);
  44143. procedure deleteBuffer(aBuffer: IJSWebGLBuffer);
  44144. procedure deleteFramebuffer(aFramebuffer: IJSWebGLFramebuffer);
  44145. procedure deleteProgram(aProgram_: IJSWebGLProgram);
  44146. procedure deleteRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer);
  44147. procedure deleteShader(aShader: IJSWebGLShader);
  44148. procedure deleteTexture(aTexture: IJSWebGLTexture);
  44149. procedure depthFunc(aFunc: TGLenum);
  44150. procedure depthMask(aFlag: TGLboolean);
  44151. procedure depthRange(aZNear: TGLclampf; aZFar: TGLclampf);
  44152. procedure detachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader);
  44153. procedure disable(aCap: TGLenum);
  44154. procedure disableVertexAttribArray(aIndex: TGLuint);
  44155. procedure drawArrays(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei);
  44156. procedure drawElements(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr);
  44157. procedure enable(aCap: TGLenum);
  44158. procedure enableVertexAttribArray(aIndex: TGLuint);
  44159. procedure finish;
  44160. procedure flush;
  44161. procedure framebufferRenderbuffer(aTarget: TGLenum; aAttachment: TGLenum; aRenderbuffertarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer);
  44162. procedure framebufferTexture2D(aTarget: TGLenum; aAttachment: TGLenum; aTextarget: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint);
  44163. procedure frontFace(aMode: TGLenum);
  44164. procedure generateMipmap(aTarget: TGLenum);
  44165. function getActiveAttrib(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  44166. function getActiveUniform(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  44167. function getAttachedShaders(aProgram_: IJSWebGLProgram): TJSWebGLShaderDynArray;
  44168. function getAttribLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint;
  44169. function getBufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  44170. function getParameter(aPname: TGLenum): Variant;
  44171. function getError: TGLenum;
  44172. function getFramebufferAttachmentParameter(aTarget: TGLenum; aAttachment: TGLenum; aPname: TGLenum): Variant;
  44173. function getProgramParameter(aProgram_: IJSWebGLProgram; aPname: TGLenum): Variant;
  44174. function getProgramInfoLog(aProgram_: IJSWebGLProgram): UnicodeString;
  44175. function getRenderbufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  44176. function getShaderParameter(aShader: IJSWebGLShader; aPname: TGLenum): Variant;
  44177. function getShaderPrecisionFormat(aShadertype: TGLenum; aPrecisiontype: TGLenum): IJSWebGLShaderPrecisionFormat;
  44178. function getShaderInfoLog(aShader: IJSWebGLShader): UnicodeString;
  44179. function getShaderSource(aShader: IJSWebGLShader): UnicodeString;
  44180. function getTexParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  44181. function getUniform(aProgram_: IJSWebGLProgram; aLocation: IJSWebGLUniformLocation): Variant;
  44182. function getUniformLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): IJSWebGLUniformLocation;
  44183. function getVertexAttrib(aIndex: TGLuint; aPname: TGLenum): Variant;
  44184. function getVertexAttribOffset(aIndex: TGLuint; aPname: TGLenum): TGLintptr;
  44185. procedure hint(aTarget: TGLenum; aMode: TGLenum);
  44186. function isBuffer(aBuffer: IJSWebGLBuffer): TGLboolean;
  44187. function isEnabled(aCap: TGLenum): TGLboolean;
  44188. function isFramebuffer(aFramebuffer: IJSWebGLFramebuffer): TGLboolean;
  44189. function isProgram(aProgram_: IJSWebGLProgram): TGLboolean;
  44190. function isRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer): TGLboolean;
  44191. function isShader(aShader: IJSWebGLShader): TGLboolean;
  44192. function isTexture(aTexture: IJSWebGLTexture): TGLboolean;
  44193. procedure lineWidth(aWidth: TGLfloat);
  44194. procedure linkProgram(aProgram_: IJSWebGLProgram);
  44195. procedure pixelStorei(aPname: TGLenum; aParam: TGLint);
  44196. procedure polygonOffset(aFactor: TGLfloat; aUnits: TGLfloat);
  44197. procedure renderbufferStorage(aTarget: TGLenum; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  44198. procedure sampleCoverage(aValue: TGLclampf; aInvert: TGLboolean);
  44199. procedure scissor(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  44200. procedure shaderSource(aShader: IJSWebGLShader; const aSource: UnicodeString);
  44201. procedure stencilFunc(aFunc: TGLenum; aRef: TGLint; aMask: TGLuint);
  44202. procedure stencilFuncSeparate(aFace: TGLenum; aFunc: TGLenum; aRef: TGLint; aMask: TGLuint);
  44203. procedure stencilMask(aMask: TGLuint);
  44204. procedure stencilMaskSeparate(aFace: TGLenum; aMask: TGLuint);
  44205. procedure stencilOp(aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum);
  44206. procedure stencilOpSeparate(aFace: TGLenum; aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum);
  44207. procedure texParameterf(aTarget: TGLenum; aPname: TGLenum; aParam: TGLfloat);
  44208. procedure texParameteri(aTarget: TGLenum; aPname: TGLenum; aParam: TGLint);
  44209. procedure uniform1f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat);
  44210. procedure uniform2f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat);
  44211. procedure uniform3f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat);
  44212. procedure uniform4f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat);
  44213. procedure uniform1i(aLocation: IJSWebGLUniformLocation; aX: TGLint);
  44214. procedure uniform2i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint);
  44215. procedure uniform3i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint);
  44216. procedure uniform4i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint);
  44217. procedure useProgram(aProgram_: IJSWebGLProgram);
  44218. procedure validateProgram(aProgram_: IJSWebGLProgram);
  44219. procedure vertexAttrib1f(aIndx: TGLuint; aX: TGLfloat);
  44220. procedure vertexAttrib1fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  44221. procedure vertexAttrib1fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  44222. procedure vertexAttrib2f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat);
  44223. procedure vertexAttrib2fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  44224. procedure vertexAttrib2fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  44225. procedure vertexAttrib3f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat);
  44226. procedure vertexAttrib3fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  44227. procedure vertexAttrib3fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  44228. procedure vertexAttrib4f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat);
  44229. procedure vertexAttrib4fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  44230. procedure vertexAttrib4fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  44231. procedure vertexAttribPointer(aIndx: TGLuint; aSize: TGLint; aType_: TGLenum; aNormalized: TGLboolean; aStride: TGLsizei; aOffset: TGLintptr);
  44232. procedure viewport(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  44233. function makeXRCompatible: IJSPromise; // Promise<undefined>
  44234. property canvas: TCanvasSource read _Getcanvas;
  44235. property drawingBufferWidth: TGLsizei read _GetdrawingBufferWidth;
  44236. property drawingBufferHeight: TGLsizei read _GetdrawingBufferHeight;
  44237. end;
  44238. TJSWebGLRenderingContextBase = class(TJSObject,IJSWebGLRenderingContextBase)
  44239. Protected
  44240. function _Getcanvas: TCanvasSource;
  44241. function _GetdrawingBufferWidth: TGLsizei;
  44242. function _GetdrawingBufferHeight: TGLsizei;
  44243. Public
  44244. Const
  44245. DEPTH_BUFFER_BIT = $00000100;
  44246. STENCIL_BUFFER_BIT = $00000400;
  44247. COLOR_BUFFER_BIT = $00004000;
  44248. POINTS = $0000;
  44249. LINES = $0001;
  44250. LINE_LOOP = $0002;
  44251. LINE_STRIP = $0003;
  44252. TRIANGLES = $0004;
  44253. TRIANGLE_STRIP = $0005;
  44254. TRIANGLE_FAN = $0006;
  44255. ZERO = 0;
  44256. ONE = 1;
  44257. SRC_COLOR = $0300;
  44258. ONE_MINUS_SRC_COLOR = $0301;
  44259. SRC_ALPHA = $0302;
  44260. ONE_MINUS_SRC_ALPHA = $0303;
  44261. DST_ALPHA = $0304;
  44262. ONE_MINUS_DST_ALPHA = $0305;
  44263. DST_COLOR = $0306;
  44264. ONE_MINUS_DST_COLOR = $0307;
  44265. SRC_ALPHA_SATURATE = $0308;
  44266. FUNC_ADD = $8006;
  44267. BLEND_EQUATION = $8009;
  44268. BLEND_EQUATION_RGB = $8009;
  44269. BLEND_EQUATION_ALPHA = $883D;
  44270. FUNC_SUBTRACT = $800A;
  44271. FUNC_REVERSE_SUBTRACT = $800B;
  44272. BLEND_DST_RGB = $80C8;
  44273. BLEND_SRC_RGB = $80C9;
  44274. BLEND_DST_ALPHA = $80CA;
  44275. BLEND_SRC_ALPHA = $80CB;
  44276. CONSTANT_COLOR = $8001;
  44277. ONE_MINUS_CONSTANT_COLOR = $8002;
  44278. CONSTANT_ALPHA = $8003;
  44279. ONE_MINUS_CONSTANT_ALPHA = $8004;
  44280. BLEND_COLOR = $8005;
  44281. ARRAY_BUFFER = $8892;
  44282. ELEMENT_ARRAY_BUFFER = $8893;
  44283. ARRAY_BUFFER_BINDING = $8894;
  44284. ELEMENT_ARRAY_BUFFER_BINDING = $8895;
  44285. STREAM_DRAW = $88E0;
  44286. STATIC_DRAW = $88E4;
  44287. DYNAMIC_DRAW = $88E8;
  44288. BUFFER_SIZE = $8764;
  44289. BUFFER_USAGE = $8765;
  44290. CURRENT_VERTEX_ATTRIB = $8626;
  44291. FRONT = $0404;
  44292. BACK = $0405;
  44293. FRONT_AND_BACK = $0408;
  44294. CULL_FACE = $0B44;
  44295. BLEND = $0BE2;
  44296. DITHER = $0BD0;
  44297. STENCIL_TEST = $0B90;
  44298. DEPTH_TEST = $0B71;
  44299. SCISSOR_TEST = $0C11;
  44300. POLYGON_OFFSET_FILL = $8037;
  44301. SAMPLE_ALPHA_TO_COVERAGE = $809E;
  44302. SAMPLE_COVERAGE = $80A0;
  44303. NO_ERROR = 0;
  44304. INVALID_ENUM = $0500;
  44305. INVALID_VALUE = $0501;
  44306. INVALID_OPERATION = $0502;
  44307. OUT_OF_MEMORY = $0505;
  44308. CW = $0900;
  44309. CCW = $0901;
  44310. LINE_WIDTH = $0B21;
  44311. ALIASED_POINT_SIZE_RANGE = $846D;
  44312. ALIASED_LINE_WIDTH_RANGE = $846E;
  44313. CULL_FACE_MODE = $0B45;
  44314. FRONT_FACE = $0B46;
  44315. DEPTH_RANGE = $0B70;
  44316. DEPTH_WRITEMASK = $0B72;
  44317. DEPTH_CLEAR_VALUE = $0B73;
  44318. DEPTH_FUNC = $0B74;
  44319. STENCIL_CLEAR_VALUE = $0B91;
  44320. STENCIL_FUNC = $0B92;
  44321. STENCIL_FAIL = $0B94;
  44322. STENCIL_PASS_DEPTH_FAIL = $0B95;
  44323. STENCIL_PASS_DEPTH_PASS = $0B96;
  44324. STENCIL_REF = $0B97;
  44325. STENCIL_VALUE_MASK = $0B93;
  44326. STENCIL_WRITEMASK = $0B98;
  44327. STENCIL_BACK_FUNC = $8800;
  44328. STENCIL_BACK_FAIL = $8801;
  44329. STENCIL_BACK_PASS_DEPTH_FAIL = $8802;
  44330. STENCIL_BACK_PASS_DEPTH_PASS = $8803;
  44331. STENCIL_BACK_REF = $8CA3;
  44332. STENCIL_BACK_VALUE_MASK = $8CA4;
  44333. STENCIL_BACK_WRITEMASK = $8CA5;
  44334. VIEWPORT_ = $0BA2;
  44335. SCISSOR_BOX = $0C10;
  44336. COLOR_CLEAR_VALUE = $0C22;
  44337. COLOR_WRITEMASK = $0C23;
  44338. UNPACK_ALIGNMENT = $0CF5;
  44339. PACK_ALIGNMENT = $0D05;
  44340. MAX_TEXTURE_SIZE = $0D33;
  44341. MAX_VIEWPORT_DIMS = $0D3A;
  44342. SUBPIXEL_BITS = $0D50;
  44343. RED_BITS = $0D52;
  44344. GREEN_BITS = $0D53;
  44345. BLUE_BITS = $0D54;
  44346. ALPHA_BITS = $0D55;
  44347. DEPTH_BITS = $0D56;
  44348. STENCIL_BITS = $0D57;
  44349. POLYGON_OFFSET_UNITS = $2A00;
  44350. POLYGON_OFFSET_FACTOR = $8038;
  44351. TEXTURE_BINDING_2D = $8069;
  44352. SAMPLE_BUFFERS = $80A8;
  44353. SAMPLES = $80A9;
  44354. SAMPLE_COVERAGE_VALUE = $80AA;
  44355. SAMPLE_COVERAGE_INVERT = $80AB;
  44356. COMPRESSED_TEXTURE_FORMATS = $86A3;
  44357. DONT_CARE = $1100;
  44358. FASTEST = $1101;
  44359. NICEST = $1102;
  44360. GENERATE_MIPMAP_HINT = $8192;
  44361. BYTE = $1400;
  44362. UNSIGNED_BYTE = $1401;
  44363. SHORT = $1402;
  44364. UNSIGNED_SHORT = $1403;
  44365. INT = $1404;
  44366. UNSIGNED_INT = $1405;
  44367. FLOAT = $1406;
  44368. DEPTH_COMPONENT = $1902;
  44369. ALPHA = $1906;
  44370. RGB = $1907;
  44371. RGBA = $1908;
  44372. LUMINANCE = $1909;
  44373. LUMINANCE_ALPHA = $190A;
  44374. UNSIGNED_SHORT_4_4_4_4 = $8033;
  44375. UNSIGNED_SHORT_5_5_5_1 = $8034;
  44376. UNSIGNED_SHORT_5_6_5 = $8363;
  44377. FRAGMENT_SHADER = $8B30;
  44378. VERTEX_SHADER = $8B31;
  44379. MAX_VERTEX_ATTRIBS = $8869;
  44380. MAX_VERTEX_UNIFORM_VECTORS = $8DFB;
  44381. MAX_VARYING_VECTORS = $8DFC;
  44382. MAX_COMBINED_TEXTURE_IMAGE_UNITS = $8B4D;
  44383. MAX_VERTEX_TEXTURE_IMAGE_UNITS = $8B4C;
  44384. MAX_TEXTURE_IMAGE_UNITS = $8872;
  44385. MAX_FRAGMENT_UNIFORM_VECTORS = $8DFD;
  44386. SHADER_TYPE = $8B4F;
  44387. DELETE_STATUS = $8B80;
  44388. LINK_STATUS = $8B82;
  44389. VALIDATE_STATUS = $8B83;
  44390. ATTACHED_SHADERS = $8B85;
  44391. ACTIVE_UNIFORMS = $8B86;
  44392. ACTIVE_ATTRIBUTES = $8B89;
  44393. SHADING_LANGUAGE_VERSION = $8B8C;
  44394. CURRENT_PROGRAM = $8B8D;
  44395. NEVER = $0200;
  44396. LESS = $0201;
  44397. EQUAL = $0202;
  44398. LEQUAL = $0203;
  44399. GREATER = $0204;
  44400. NOTEQUAL = $0205;
  44401. GEQUAL = $0206;
  44402. ALWAYS = $0207;
  44403. KEEP = $1E00;
  44404. REPLACE = $1E01;
  44405. INCR = $1E02;
  44406. DECR = $1E03;
  44407. INVERT = $150A;
  44408. INCR_WRAP = $8507;
  44409. DECR_WRAP = $8508;
  44410. VENDOR = $1F00;
  44411. RENDERER = $1F01;
  44412. VERSION = $1F02;
  44413. NEAREST = $2600;
  44414. LINEAR = $2601;
  44415. NEAREST_MIPMAP_NEAREST = $2700;
  44416. LINEAR_MIPMAP_NEAREST = $2701;
  44417. NEAREST_MIPMAP_LINEAR = $2702;
  44418. LINEAR_MIPMAP_LINEAR = $2703;
  44419. TEXTURE_MAG_FILTER = $2800;
  44420. TEXTURE_MIN_FILTER = $2801;
  44421. TEXTURE_WRAP_S = $2802;
  44422. TEXTURE_WRAP_T = $2803;
  44423. TEXTURE_2D = $0DE1;
  44424. TEXTURE = $1702;
  44425. TEXTURE_CUBE_MAP = $8513;
  44426. TEXTURE_BINDING_CUBE_MAP = $8514;
  44427. TEXTURE_CUBE_MAP_POSITIVE_X = $8515;
  44428. TEXTURE_CUBE_MAP_NEGATIVE_X = $8516;
  44429. TEXTURE_CUBE_MAP_POSITIVE_Y = $8517;
  44430. TEXTURE_CUBE_MAP_NEGATIVE_Y = $8518;
  44431. TEXTURE_CUBE_MAP_POSITIVE_Z = $8519;
  44432. TEXTURE_CUBE_MAP_NEGATIVE_Z = $851A;
  44433. MAX_CUBE_MAP_TEXTURE_SIZE = $851C;
  44434. TEXTURE0 = $84C0;
  44435. TEXTURE1 = $84C1;
  44436. TEXTURE2 = $84C2;
  44437. TEXTURE3 = $84C3;
  44438. TEXTURE4 = $84C4;
  44439. TEXTURE5 = $84C5;
  44440. TEXTURE6 = $84C6;
  44441. TEXTURE7 = $84C7;
  44442. TEXTURE8 = $84C8;
  44443. TEXTURE9 = $84C9;
  44444. TEXTURE10 = $84CA;
  44445. TEXTURE11 = $84CB;
  44446. TEXTURE12 = $84CC;
  44447. TEXTURE13 = $84CD;
  44448. TEXTURE14 = $84CE;
  44449. TEXTURE15 = $84CF;
  44450. TEXTURE16 = $84D0;
  44451. TEXTURE17 = $84D1;
  44452. TEXTURE18 = $84D2;
  44453. TEXTURE19 = $84D3;
  44454. TEXTURE20 = $84D4;
  44455. TEXTURE21 = $84D5;
  44456. TEXTURE22 = $84D6;
  44457. TEXTURE23 = $84D7;
  44458. TEXTURE24 = $84D8;
  44459. TEXTURE25 = $84D9;
  44460. TEXTURE26 = $84DA;
  44461. TEXTURE27 = $84DB;
  44462. TEXTURE28 = $84DC;
  44463. TEXTURE29 = $84DD;
  44464. TEXTURE30 = $84DE;
  44465. TEXTURE31 = $84DF;
  44466. ACTIVE_TEXTURE = $84E0;
  44467. REPEAT_ = $2901;
  44468. CLAMP_TO_EDGE = $812F;
  44469. MIRRORED_REPEAT = $8370;
  44470. FLOAT_VEC2 = $8B50;
  44471. FLOAT_VEC3 = $8B51;
  44472. FLOAT_VEC4 = $8B52;
  44473. INT_VEC2 = $8B53;
  44474. INT_VEC3 = $8B54;
  44475. INT_VEC4 = $8B55;
  44476. BOOL = $8B56;
  44477. BOOL_VEC2 = $8B57;
  44478. BOOL_VEC3 = $8B58;
  44479. BOOL_VEC4 = $8B59;
  44480. FLOAT_MAT2 = $8B5A;
  44481. FLOAT_MAT3 = $8B5B;
  44482. FLOAT_MAT4 = $8B5C;
  44483. SAMPLER_2D = $8B5E;
  44484. SAMPLER_CUBE = $8B60;
  44485. VERTEX_ATTRIB_ARRAY_ENABLED = $8622;
  44486. VERTEX_ATTRIB_ARRAY_SIZE = $8623;
  44487. VERTEX_ATTRIB_ARRAY_STRIDE = $8624;
  44488. VERTEX_ATTRIB_ARRAY_TYPE = $8625;
  44489. VERTEX_ATTRIB_ARRAY_NORMALIZED = $886A;
  44490. VERTEX_ATTRIB_ARRAY_POINTER = $8645;
  44491. VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = $889F;
  44492. IMPLEMENTATION_COLOR_READ_TYPE = $8B9A;
  44493. IMPLEMENTATION_COLOR_READ_FORMAT = $8B9B;
  44494. COMPILE_STATUS = $8B81;
  44495. LOW_FLOAT = $8DF0;
  44496. MEDIUM_FLOAT = $8DF1;
  44497. HIGH_FLOAT = $8DF2;
  44498. LOW_INT = $8DF3;
  44499. MEDIUM_INT = $8DF4;
  44500. HIGH_INT = $8DF5;
  44501. FRAMEBUFFER = $8D40;
  44502. RENDERBUFFER = $8D41;
  44503. RGBA4 = $8056;
  44504. RGB5_A1 = $8057;
  44505. RGB565 = $8D62;
  44506. DEPTH_COMPONENT16 = $81A5;
  44507. STENCIL_INDEX8 = $8D48;
  44508. DEPTH_STENCIL = $84F9;
  44509. RENDERBUFFER_WIDTH = $8D42;
  44510. RENDERBUFFER_HEIGHT = $8D43;
  44511. RENDERBUFFER_INTERNAL_FORMAT = $8D44;
  44512. RENDERBUFFER_RED_SIZE = $8D50;
  44513. RENDERBUFFER_GREEN_SIZE = $8D51;
  44514. RENDERBUFFER_BLUE_SIZE = $8D52;
  44515. RENDERBUFFER_ALPHA_SIZE = $8D53;
  44516. RENDERBUFFER_DEPTH_SIZE = $8D54;
  44517. RENDERBUFFER_STENCIL_SIZE = $8D55;
  44518. FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = $8CD0;
  44519. FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = $8CD1;
  44520. FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = $8CD2;
  44521. FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = $8CD3;
  44522. COLOR_ATTACHMENT0 = $8CE0;
  44523. DEPTH_ATTACHMENT = $8D00;
  44524. STENCIL_ATTACHMENT = $8D20;
  44525. DEPTH_STENCIL_ATTACHMENT = $821A;
  44526. NONE = 0;
  44527. FRAMEBUFFER_COMPLETE = $8CD5;
  44528. FRAMEBUFFER_INCOMPLETE_ATTACHMENT = $8CD6;
  44529. FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = $8CD7;
  44530. FRAMEBUFFER_INCOMPLETE_DIMENSIONS = $8CD9;
  44531. FRAMEBUFFER_UNSUPPORTED = $8CDD;
  44532. FRAMEBUFFER_BINDING = $8CA6;
  44533. RENDERBUFFER_BINDING = $8CA7;
  44534. MAX_RENDERBUFFER_SIZE = $84E8;
  44535. INVALID_FRAMEBUFFER_OPERATION = $0506;
  44536. UNPACK_FLIP_Y_WEBGL = $9240;
  44537. UNPACK_PREMULTIPLY_ALPHA_WEBGL = $9241;
  44538. CONTEXT_LOST_WEBGL = $9242;
  44539. UNPACK_COLORSPACE_CONVERSION_WEBGL = $9243;
  44540. BROWSER_DEFAULT_WEBGL = $9244;
  44541. Public
  44542. function getContextAttributes: TJSWebGLContextAttributes; overload;
  44543. function isContextLost: Boolean; overload;
  44544. function getSupportedExtensions: TUnicodeStringDynArray; overload;
  44545. function getExtension(const aName: UnicodeString): IJSObject; overload;
  44546. procedure activeTexture(aTexture: TGLenum); overload;
  44547. procedure attachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader); overload;
  44548. procedure bindAttribLocation(aProgram_: IJSWebGLProgram; aIndex: TGLuint; const aName: UnicodeString); overload;
  44549. procedure bindBuffer(aTarget: TGLenum; aBuffer: IJSWebGLBuffer); overload;
  44550. procedure bindFramebuffer(aTarget: TGLenum; aFramebuffer: IJSWebGLFramebuffer); overload;
  44551. procedure bindRenderbuffer(aTarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer); overload;
  44552. procedure bindTexture(aTarget: TGLenum; aTexture: IJSWebGLTexture); overload;
  44553. procedure blendColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat); overload;
  44554. procedure blendEquation(aMode: TGLenum); overload;
  44555. procedure blendEquationSeparate(aModeRGB: TGLenum; aModeAlpha: TGLenum); overload;
  44556. procedure blendFunc(aSfactor: TGLenum; aDfactor: TGLenum); overload;
  44557. procedure blendFuncSeparate(aSrcRGB: TGLenum; aDstRGB: TGLenum; aSrcAlpha: TGLenum; aDstAlpha: TGLenum); overload;
  44558. function checkFramebufferStatus(aTarget: TGLenum): TGLenum; overload;
  44559. procedure clear(aMask: TGLbitfield); overload;
  44560. procedure clearColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat); overload;
  44561. procedure clearDepth(aDepth: TGLclampf); overload;
  44562. procedure clearStencil(aS_: TGLint); overload;
  44563. procedure colorMask(aRed: TGLboolean; aGreen: TGLboolean; aBlue: TGLboolean; aAlpha: TGLboolean); overload;
  44564. procedure compileShader(aShader: IJSWebGLShader); overload;
  44565. procedure copyTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint); overload;
  44566. procedure copyTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  44567. function createBuffer: IJSWebGLBuffer; overload;
  44568. function createFramebuffer: IJSWebGLFramebuffer; overload;
  44569. function createProgram: IJSWebGLProgram; overload;
  44570. function createRenderbuffer: IJSWebGLRenderbuffer; overload;
  44571. function createShader(aType_: TGLenum): IJSWebGLShader; overload;
  44572. function createTexture: IJSWebGLTexture; overload;
  44573. procedure cullFace(aMode: TGLenum); overload;
  44574. procedure deleteBuffer(aBuffer: IJSWebGLBuffer); overload;
  44575. procedure deleteFramebuffer(aFramebuffer: IJSWebGLFramebuffer); overload;
  44576. procedure deleteProgram(aProgram_: IJSWebGLProgram); overload;
  44577. procedure deleteRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer); overload;
  44578. procedure deleteShader(aShader: IJSWebGLShader); overload;
  44579. procedure deleteTexture(aTexture: IJSWebGLTexture); overload;
  44580. procedure depthFunc(aFunc: TGLenum); overload;
  44581. procedure depthMask(aFlag: TGLboolean); overload;
  44582. procedure depthRange(aZNear: TGLclampf; aZFar: TGLclampf); overload;
  44583. procedure detachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader); overload;
  44584. procedure disable(aCap: TGLenum); overload;
  44585. procedure disableVertexAttribArray(aIndex: TGLuint); overload;
  44586. procedure drawArrays(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei); overload;
  44587. procedure drawElements(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr); overload;
  44588. procedure enable(aCap: TGLenum); overload;
  44589. procedure enableVertexAttribArray(aIndex: TGLuint); overload;
  44590. procedure finish; overload;
  44591. procedure flush; overload;
  44592. procedure framebufferRenderbuffer(aTarget: TGLenum; aAttachment: TGLenum; aRenderbuffertarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer); overload;
  44593. procedure framebufferTexture2D(aTarget: TGLenum; aAttachment: TGLenum; aTextarget: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint); overload;
  44594. procedure frontFace(aMode: TGLenum); overload;
  44595. procedure generateMipmap(aTarget: TGLenum); overload;
  44596. function getActiveAttrib(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo; overload;
  44597. function getActiveUniform(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo; overload;
  44598. function getAttachedShaders(aProgram_: IJSWebGLProgram): TJSWebGLShaderDynArray; overload;
  44599. function getAttribLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint; overload;
  44600. function getBufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant; overload;
  44601. function getParameter(aPname: TGLenum): Variant; overload;
  44602. function getError: TGLenum; overload;
  44603. function getFramebufferAttachmentParameter(aTarget: TGLenum; aAttachment: TGLenum; aPname: TGLenum): Variant; overload;
  44604. function getProgramParameter(aProgram_: IJSWebGLProgram; aPname: TGLenum): Variant; overload;
  44605. function getProgramInfoLog(aProgram_: IJSWebGLProgram): UnicodeString; overload;
  44606. function getRenderbufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant; overload;
  44607. function getShaderParameter(aShader: IJSWebGLShader; aPname: TGLenum): Variant; overload;
  44608. function getShaderPrecisionFormat(aShadertype: TGLenum; aPrecisiontype: TGLenum): IJSWebGLShaderPrecisionFormat; overload;
  44609. function getShaderInfoLog(aShader: IJSWebGLShader): UnicodeString; overload;
  44610. function getShaderSource(aShader: IJSWebGLShader): UnicodeString; overload;
  44611. function getTexParameter(aTarget: TGLenum; aPname: TGLenum): Variant; overload;
  44612. function getUniform(aProgram_: IJSWebGLProgram; aLocation: IJSWebGLUniformLocation): Variant; overload;
  44613. function getUniformLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): IJSWebGLUniformLocation; overload;
  44614. function getVertexAttrib(aIndex: TGLuint; aPname: TGLenum): Variant; overload;
  44615. function getVertexAttribOffset(aIndex: TGLuint; aPname: TGLenum): TGLintptr; overload;
  44616. procedure hint(aTarget: TGLenum; aMode: TGLenum); overload;
  44617. function isBuffer(aBuffer: IJSWebGLBuffer): TGLboolean; overload;
  44618. function isEnabled(aCap: TGLenum): TGLboolean; overload;
  44619. function isFramebuffer(aFramebuffer: IJSWebGLFramebuffer): TGLboolean; overload;
  44620. function isProgram(aProgram_: IJSWebGLProgram): TGLboolean; overload;
  44621. function isRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer): TGLboolean; overload;
  44622. function isShader(aShader: IJSWebGLShader): TGLboolean; overload;
  44623. function isTexture(aTexture: IJSWebGLTexture): TGLboolean; overload;
  44624. procedure lineWidth(aWidth: TGLfloat); overload;
  44625. procedure linkProgram(aProgram_: IJSWebGLProgram); overload;
  44626. procedure pixelStorei(aPname: TGLenum; aParam: TGLint); overload;
  44627. procedure polygonOffset(aFactor: TGLfloat; aUnits: TGLfloat); overload;
  44628. procedure renderbufferStorage(aTarget: TGLenum; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  44629. procedure sampleCoverage(aValue: TGLclampf; aInvert: TGLboolean); overload;
  44630. procedure scissor(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  44631. procedure shaderSource(aShader: IJSWebGLShader; const aSource: UnicodeString); overload;
  44632. procedure stencilFunc(aFunc: TGLenum; aRef: TGLint; aMask: TGLuint); overload;
  44633. procedure stencilFuncSeparate(aFace: TGLenum; aFunc: TGLenum; aRef: TGLint; aMask: TGLuint); overload;
  44634. procedure stencilMask(aMask: TGLuint); overload;
  44635. procedure stencilMaskSeparate(aFace: TGLenum; aMask: TGLuint); overload;
  44636. procedure stencilOp(aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum); overload;
  44637. procedure stencilOpSeparate(aFace: TGLenum; aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum); overload;
  44638. procedure texParameterf(aTarget: TGLenum; aPname: TGLenum; aParam: TGLfloat); overload;
  44639. procedure texParameteri(aTarget: TGLenum; aPname: TGLenum; aParam: TGLint); overload;
  44640. procedure uniform1f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat); overload;
  44641. procedure uniform2f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat); overload;
  44642. procedure uniform3f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat); overload;
  44643. procedure uniform4f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat); overload;
  44644. procedure uniform1i(aLocation: IJSWebGLUniformLocation; aX: TGLint); overload;
  44645. procedure uniform2i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint); overload;
  44646. procedure uniform3i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint); overload;
  44647. procedure uniform4i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint); overload;
  44648. procedure useProgram(aProgram_: IJSWebGLProgram); overload;
  44649. procedure validateProgram(aProgram_: IJSWebGLProgram); overload;
  44650. procedure vertexAttrib1f(aIndx: TGLuint; aX: TGLfloat); overload;
  44651. procedure vertexAttrib1fv(aIndx: TGLuint; aValues: IJSFloat32Array); overload;
  44652. procedure vertexAttrib1fv(aIndx: TGLuint; const aValues: TGLfloatDynArray); overload;
  44653. procedure vertexAttrib2f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat); overload;
  44654. procedure vertexAttrib2fv(aIndx: TGLuint; aValues: IJSFloat32Array); overload;
  44655. procedure vertexAttrib2fv(aIndx: TGLuint; const aValues: TGLfloatDynArray); overload;
  44656. procedure vertexAttrib3f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat); overload;
  44657. procedure vertexAttrib3fv(aIndx: TGLuint; aValues: IJSFloat32Array); overload;
  44658. procedure vertexAttrib3fv(aIndx: TGLuint; const aValues: TGLfloatDynArray); overload;
  44659. procedure vertexAttrib4f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat); overload;
  44660. procedure vertexAttrib4fv(aIndx: TGLuint; aValues: IJSFloat32Array); overload;
  44661. procedure vertexAttrib4fv(aIndx: TGLuint; const aValues: TGLfloatDynArray); overload;
  44662. procedure vertexAttribPointer(aIndx: TGLuint; aSize: TGLint; aType_: TGLenum; aNormalized: TGLboolean; aStride: TGLsizei; aOffset: TGLintptr); overload;
  44663. procedure viewport(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei); overload;
  44664. function makeXRCompatible: IJSPromise; overload; // Promise<undefined>
  44665. class function JSClassName: UnicodeString; override;
  44666. class function Cast(const Intf: IJSObject): IJSWebGLRenderingContextBase;
  44667. property canvas: TCanvasSource read _Getcanvas;
  44668. property drawingBufferWidth: TGLsizei read _GetdrawingBufferWidth;
  44669. property drawingBufferHeight: TGLsizei read _GetdrawingBufferHeight;
  44670. end;
  44671. { --------------------------------------------------------------------
  44672. TJSEXT_texture_compression_bptc
  44673. --------------------------------------------------------------------}
  44674. IJSEXT_texture_compression_bptc = interface(IJSObject)
  44675. ['{E907EACE-5EAE-32C7-82B2-4427249175C8}']
  44676. end;
  44677. TJSEXT_texture_compression_bptc = class(TJSObject,IJSEXT_texture_compression_bptc)
  44678. Protected
  44679. Public
  44680. Const
  44681. COMPRESSED_RGBA_BPTC_UNORM_EXT = $8E8C;
  44682. COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT = $8E8D;
  44683. COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT = $8E8E;
  44684. COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT = $8E8F;
  44685. Public
  44686. class function JSClassName: UnicodeString; override;
  44687. class function Cast(const Intf: IJSObject): IJSEXT_texture_compression_bptc;
  44688. end;
  44689. { --------------------------------------------------------------------
  44690. TJSEXT_texture_compression_rgtc
  44691. --------------------------------------------------------------------}
  44692. IJSEXT_texture_compression_rgtc = interface(IJSObject)
  44693. ['{EAEE17C3-49D9-3FFE-92EB-61ACF6E42A49}']
  44694. end;
  44695. TJSEXT_texture_compression_rgtc = class(TJSObject,IJSEXT_texture_compression_rgtc)
  44696. Protected
  44697. Public
  44698. Const
  44699. COMPRESSED_RED_RGTC1_EXT = $8DBB;
  44700. COMPRESSED_SIGNED_RED_RGTC1_EXT = $8DBC;
  44701. COMPRESSED_RED_GREEN_RGTC2_EXT = $8DBD;
  44702. COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = $8DBE;
  44703. Public
  44704. class function JSClassName: UnicodeString; override;
  44705. class function Cast(const Intf: IJSObject): IJSEXT_texture_compression_rgtc;
  44706. end;
  44707. { --------------------------------------------------------------------
  44708. TJSEXT_texture_norm16
  44709. --------------------------------------------------------------------}
  44710. IJSEXT_texture_norm16 = interface(IJSObject)
  44711. ['{BFAC4B76-DA94-3C24-A0D4-72B7A7DFC618}']
  44712. end;
  44713. TJSEXT_texture_norm16 = class(TJSObject,IJSEXT_texture_norm16)
  44714. Protected
  44715. Public
  44716. Const
  44717. R16_EXT = $822A;
  44718. RG16_EXT = $822C;
  44719. RGB16_EXT = $8054;
  44720. RGBA16_EXT = $805B;
  44721. R16_SNORM_EXT = $8F98;
  44722. RG16_SNORM_EXT = $8F99;
  44723. RGB16_SNORM_EXT = $8F9A;
  44724. RGBA16_SNORM_EXT = $8F9B;
  44725. Public
  44726. class function JSClassName: UnicodeString; override;
  44727. class function Cast(const Intf: IJSObject): IJSEXT_texture_norm16;
  44728. end;
  44729. { --------------------------------------------------------------------
  44730. TJSWEBGL_compressed_texture_s3tc
  44731. --------------------------------------------------------------------}
  44732. IJSWEBGL_compressed_texture_s3tc = interface(IJSObject)
  44733. ['{F0274618-8139-396E-8236-B6B7EF89D263}']
  44734. end;
  44735. TJSWEBGL_compressed_texture_s3tc = class(TJSObject,IJSWEBGL_compressed_texture_s3tc)
  44736. Protected
  44737. Public
  44738. Const
  44739. COMPRESSED_RGB_S3TC_DXT1_EXT = $83F0;
  44740. COMPRESSED_RGBA_S3TC_DXT1_EXT = $83F1;
  44741. COMPRESSED_RGBA_S3TC_DXT3_EXT = $83F2;
  44742. COMPRESSED_RGBA_S3TC_DXT5_EXT = $83F3;
  44743. Public
  44744. class function JSClassName: UnicodeString; override;
  44745. class function Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_s3tc;
  44746. end;
  44747. { --------------------------------------------------------------------
  44748. TJSWEBGL_compressed_texture_s3tc_srgb
  44749. --------------------------------------------------------------------}
  44750. IJSWEBGL_compressed_texture_s3tc_srgb = interface(IJSObject)
  44751. ['{2374FE4F-FBCA-3132-8F97-C771A425D9EB}']
  44752. end;
  44753. TJSWEBGL_compressed_texture_s3tc_srgb = class(TJSObject,IJSWEBGL_compressed_texture_s3tc_srgb)
  44754. Protected
  44755. Public
  44756. Const
  44757. COMPRESSED_SRGB_S3TC_DXT1_EXT = $8C4C;
  44758. COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = $8C4D;
  44759. COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = $8C4E;
  44760. COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = $8C4F;
  44761. Public
  44762. class function JSClassName: UnicodeString; override;
  44763. class function Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_s3tc_srgb;
  44764. end;
  44765. { --------------------------------------------------------------------
  44766. TJSWEBGL_compressed_texture_astc
  44767. --------------------------------------------------------------------}
  44768. IJSWEBGL_compressed_texture_astc = interface(IJSObject)
  44769. ['{FF6C2C3A-962A-33F1-BD30-05C620E357C6}']
  44770. function getSupportedProfiles: TUnicodeStringDynArray;
  44771. end;
  44772. TJSWEBGL_compressed_texture_astc = class(TJSObject,IJSWEBGL_compressed_texture_astc)
  44773. Protected
  44774. Public
  44775. Const
  44776. COMPRESSED_RGBA_ASTC_4x4_KHR = $93B0;
  44777. COMPRESSED_RGBA_ASTC_5x4_KHR = $93B1;
  44778. COMPRESSED_RGBA_ASTC_5x5_KHR = $93B2;
  44779. COMPRESSED_RGBA_ASTC_6x5_KHR = $93B3;
  44780. COMPRESSED_RGBA_ASTC_6x6_KHR = $93B4;
  44781. COMPRESSED_RGBA_ASTC_8x5_KHR = $93B5;
  44782. COMPRESSED_RGBA_ASTC_8x6_KHR = $93B6;
  44783. COMPRESSED_RGBA_ASTC_8x8_KHR = $93B7;
  44784. COMPRESSED_RGBA_ASTC_10x5_KHR = $93B8;
  44785. COMPRESSED_RGBA_ASTC_10x6_KHR = $93B9;
  44786. COMPRESSED_RGBA_ASTC_10x8_KHR = $93BA;
  44787. COMPRESSED_RGBA_ASTC_10x10_KHR = $93BB;
  44788. COMPRESSED_RGBA_ASTC_12x10_KHR = $93BC;
  44789. COMPRESSED_RGBA_ASTC_12x12_KHR = $93BD;
  44790. COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = $93D0;
  44791. COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = $93D1;
  44792. COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = $93D2;
  44793. COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = $93D3;
  44794. COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = $93D4;
  44795. COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = $93D5;
  44796. COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = $93D6;
  44797. COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = $93D7;
  44798. COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = $93D8;
  44799. COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = $93D9;
  44800. COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = $93DA;
  44801. COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = $93DB;
  44802. COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = $93DC;
  44803. COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = $93DD;
  44804. Public
  44805. function getSupportedProfiles: TUnicodeStringDynArray; overload;
  44806. class function JSClassName: UnicodeString; override;
  44807. class function Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_astc;
  44808. end;
  44809. { --------------------------------------------------------------------
  44810. TJSWEBGL_compressed_texture_etc
  44811. --------------------------------------------------------------------}
  44812. IJSWEBGL_compressed_texture_etc = interface(IJSObject)
  44813. ['{502905B1-5FD2-3862-9A5D-FD88E4ABA50F}']
  44814. end;
  44815. TJSWEBGL_compressed_texture_etc = class(TJSObject,IJSWEBGL_compressed_texture_etc)
  44816. Protected
  44817. Public
  44818. Const
  44819. COMPRESSED_R11_EAC = $9270;
  44820. COMPRESSED_SIGNED_R11_EAC = $9271;
  44821. COMPRESSED_RG11_EAC = $9272;
  44822. COMPRESSED_SIGNED_RG11_EAC = $9273;
  44823. COMPRESSED_RGB8_ETC2 = $9274;
  44824. COMPRESSED_SRGB8_ETC2 = $9275;
  44825. COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = $9276;
  44826. COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = $9277;
  44827. COMPRESSED_RGBA8_ETC2_EAC = $9278;
  44828. COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = $9279;
  44829. Public
  44830. class function JSClassName: UnicodeString; override;
  44831. class function Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_etc;
  44832. end;
  44833. { --------------------------------------------------------------------
  44834. TJSWEBGL_compressed_texture_etc1
  44835. --------------------------------------------------------------------}
  44836. IJSWEBGL_compressed_texture_etc1 = interface(IJSObject)
  44837. ['{10868591-9E8F-3CD8-8F29-D695F6738E5D}']
  44838. end;
  44839. TJSWEBGL_compressed_texture_etc1 = class(TJSObject,IJSWEBGL_compressed_texture_etc1)
  44840. Protected
  44841. Public
  44842. Const
  44843. COMPRESSED_RGB_ETC1_WEBGL = $8D64;
  44844. Public
  44845. class function JSClassName: UnicodeString; override;
  44846. class function Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_etc1;
  44847. end;
  44848. { --------------------------------------------------------------------
  44849. TJSWEBGL_compressed_texture_pvrtc
  44850. --------------------------------------------------------------------}
  44851. IJSWEBGL_compressed_texture_pvrtc = interface(IJSObject)
  44852. ['{A88FA31E-9545-3BCD-8706-4258291039F2}']
  44853. end;
  44854. TJSWEBGL_compressed_texture_pvrtc = class(TJSObject,IJSWEBGL_compressed_texture_pvrtc)
  44855. Protected
  44856. Public
  44857. Const
  44858. COMPRESSED_RGB_PVRTC_4BPPV1_IMG = $8C00;
  44859. COMPRESSED_RGB_PVRTC_2BPPV1_IMG = $8C01;
  44860. COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = $8C02;
  44861. COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = $8C03;
  44862. Public
  44863. class function JSClassName: UnicodeString; override;
  44864. class function Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_pvrtc;
  44865. end;
  44866. { --------------------------------------------------------------------
  44867. TJSWEBGL_debug_renderer_info
  44868. --------------------------------------------------------------------}
  44869. IJSWEBGL_debug_renderer_info = interface(IJSObject)
  44870. ['{E196B370-86DB-3FF0-9082-445C2080E78E}']
  44871. end;
  44872. TJSWEBGL_debug_renderer_info = class(TJSObject,IJSWEBGL_debug_renderer_info)
  44873. Protected
  44874. Public
  44875. Const
  44876. UNMASKED_VENDOR_WEBGL = $9245;
  44877. UNMASKED_RENDERER_WEBGL = $9246;
  44878. Public
  44879. class function JSClassName: UnicodeString; override;
  44880. class function Cast(const Intf: IJSObject): IJSWEBGL_debug_renderer_info;
  44881. end;
  44882. { --------------------------------------------------------------------
  44883. TJSWEBGL_debug_shaders
  44884. --------------------------------------------------------------------}
  44885. IJSWEBGL_debug_shaders = interface(IJSObject)
  44886. ['{CEE5B3D6-2D10-3134-AEE9-8FB884B782C9}']
  44887. function getTranslatedShaderSource(aShader: IJSWebGLShader): UnicodeString;
  44888. end;
  44889. TJSWEBGL_debug_shaders = class(TJSObject,IJSWEBGL_debug_shaders)
  44890. Protected
  44891. Public
  44892. function getTranslatedShaderSource(aShader: IJSWebGLShader): UnicodeString; overload;
  44893. class function JSClassName: UnicodeString; override;
  44894. class function Cast(const Intf: IJSObject): IJSWEBGL_debug_shaders;
  44895. end;
  44896. { --------------------------------------------------------------------
  44897. TJSWEBGL_depth_texture
  44898. --------------------------------------------------------------------}
  44899. IJSWEBGL_depth_texture = interface(IJSObject)
  44900. ['{14BBC60C-8BAF-32A8-BB0B-97F4BF6DC170}']
  44901. end;
  44902. TJSWEBGL_depth_texture = class(TJSObject,IJSWEBGL_depth_texture)
  44903. Protected
  44904. Public
  44905. Const
  44906. UNSIGNED_INT_24_8_WEBGL = $84FA;
  44907. Public
  44908. class function JSClassName: UnicodeString; override;
  44909. class function Cast(const Intf: IJSObject): IJSWEBGL_depth_texture;
  44910. end;
  44911. { --------------------------------------------------------------------
  44912. TJSOES_element_index_uint
  44913. --------------------------------------------------------------------}
  44914. IJSOES_element_index_uint = interface(IJSObject)
  44915. ['{D65E59BC-EEC1-33B0-85F5-14A4C90AEEA8}']
  44916. end;
  44917. TJSOES_element_index_uint = class(TJSObject,IJSOES_element_index_uint)
  44918. Protected
  44919. Public
  44920. class function JSClassName: UnicodeString; override;
  44921. class function Cast(const Intf: IJSObject): IJSOES_element_index_uint;
  44922. end;
  44923. { --------------------------------------------------------------------
  44924. TJSEXT_frag_depth
  44925. --------------------------------------------------------------------}
  44926. IJSEXT_frag_depth = interface(IJSObject)
  44927. ['{A28CA5C5-F232-353D-8BD4-487C3446E5A9}']
  44928. end;
  44929. TJSEXT_frag_depth = class(TJSObject,IJSEXT_frag_depth)
  44930. Protected
  44931. Public
  44932. class function JSClassName: UnicodeString; override;
  44933. class function Cast(const Intf: IJSObject): IJSEXT_frag_depth;
  44934. end;
  44935. { --------------------------------------------------------------------
  44936. TJSWEBGL_lose_context
  44937. --------------------------------------------------------------------}
  44938. IJSWEBGL_lose_context = interface(IJSObject)
  44939. ['{EF904EBE-4834-3C7C-AAB5-521AEC767130}']
  44940. procedure loseContext;
  44941. procedure restoreContext;
  44942. end;
  44943. TJSWEBGL_lose_context = class(TJSObject,IJSWEBGL_lose_context)
  44944. Protected
  44945. Public
  44946. procedure loseContext; overload;
  44947. procedure restoreContext; overload;
  44948. class function JSClassName: UnicodeString; override;
  44949. class function Cast(const Intf: IJSObject): IJSWEBGL_lose_context;
  44950. end;
  44951. { --------------------------------------------------------------------
  44952. TJSEXT_texture_filter_anisotropic
  44953. --------------------------------------------------------------------}
  44954. IJSEXT_texture_filter_anisotropic = interface(IJSObject)
  44955. ['{B19DFFDC-9D1C-3DB2-A948-4CDC9F913183}']
  44956. end;
  44957. TJSEXT_texture_filter_anisotropic = class(TJSObject,IJSEXT_texture_filter_anisotropic)
  44958. Protected
  44959. Public
  44960. Const
  44961. TEXTURE_MAX_ANISOTROPY_EXT = $84FE;
  44962. MAX_TEXTURE_MAX_ANISOTROPY_EXT = $84FF;
  44963. Public
  44964. class function JSClassName: UnicodeString; override;
  44965. class function Cast(const Intf: IJSObject): IJSEXT_texture_filter_anisotropic;
  44966. end;
  44967. { --------------------------------------------------------------------
  44968. TJSEXT_sRGB
  44969. --------------------------------------------------------------------}
  44970. IJSEXT_sRGB = interface(IJSObject)
  44971. ['{B9C6AE83-8AFF-34F8-8274-9419BD51456A}']
  44972. end;
  44973. TJSEXT_sRGB = class(TJSObject,IJSEXT_sRGB)
  44974. Protected
  44975. Public
  44976. Const
  44977. SRGB_EXT = $8C40;
  44978. SRGB_ALPHA_EXT = $8C42;
  44979. SRGB8_ALPHA8_EXT = $8C43;
  44980. FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT = $8210;
  44981. Public
  44982. class function JSClassName: UnicodeString; override;
  44983. class function Cast(const Intf: IJSObject): IJSEXT_sRGB;
  44984. end;
  44985. { --------------------------------------------------------------------
  44986. TJSOES_standard_derivatives
  44987. --------------------------------------------------------------------}
  44988. IJSOES_standard_derivatives = interface(IJSObject)
  44989. ['{85C0E20C-05F0-37C9-8D23-76690955801F}']
  44990. end;
  44991. TJSOES_standard_derivatives = class(TJSObject,IJSOES_standard_derivatives)
  44992. Protected
  44993. Public
  44994. Const
  44995. FRAGMENT_SHADER_DERIVATIVE_HINT_OES = $8B8B;
  44996. Public
  44997. class function JSClassName: UnicodeString; override;
  44998. class function Cast(const Intf: IJSObject): IJSOES_standard_derivatives;
  44999. end;
  45000. { --------------------------------------------------------------------
  45001. TJSOES_texture_float
  45002. --------------------------------------------------------------------}
  45003. IJSOES_texture_float = interface(IJSObject)
  45004. ['{2B7DA39C-A620-379E-847B-D04950F8698D}']
  45005. end;
  45006. TJSOES_texture_float = class(TJSObject,IJSOES_texture_float)
  45007. Protected
  45008. Public
  45009. class function JSClassName: UnicodeString; override;
  45010. class function Cast(const Intf: IJSObject): IJSOES_texture_float;
  45011. end;
  45012. { --------------------------------------------------------------------
  45013. TJSWEBGL_draw_buffers
  45014. --------------------------------------------------------------------}
  45015. IJSWEBGL_draw_buffers = interface(IJSObject)
  45016. ['{32A0CDB9-3796-3649-8E26-EBFEA16BC652}']
  45017. procedure drawBuffersWEBGL(const aBuffers: TGLenumDynArray);
  45018. end;
  45019. TJSWEBGL_draw_buffers = class(TJSObject,IJSWEBGL_draw_buffers)
  45020. Protected
  45021. Public
  45022. Const
  45023. COLOR_ATTACHMENT0_WEBGL = $8CE0;
  45024. COLOR_ATTACHMENT1_WEBGL = $8CE1;
  45025. COLOR_ATTACHMENT2_WEBGL = $8CE2;
  45026. COLOR_ATTACHMENT3_WEBGL = $8CE3;
  45027. COLOR_ATTACHMENT4_WEBGL = $8CE4;
  45028. COLOR_ATTACHMENT5_WEBGL = $8CE5;
  45029. COLOR_ATTACHMENT6_WEBGL = $8CE6;
  45030. COLOR_ATTACHMENT7_WEBGL = $8CE7;
  45031. COLOR_ATTACHMENT8_WEBGL = $8CE8;
  45032. COLOR_ATTACHMENT9_WEBGL = $8CE9;
  45033. COLOR_ATTACHMENT10_WEBGL = $8CEA;
  45034. COLOR_ATTACHMENT11_WEBGL = $8CEB;
  45035. COLOR_ATTACHMENT12_WEBGL = $8CEC;
  45036. COLOR_ATTACHMENT13_WEBGL = $8CED;
  45037. COLOR_ATTACHMENT14_WEBGL = $8CEE;
  45038. COLOR_ATTACHMENT15_WEBGL = $8CEF;
  45039. DRAW_BUFFER0_WEBGL = $8825;
  45040. DRAW_BUFFER1_WEBGL = $8826;
  45041. DRAW_BUFFER2_WEBGL = $8827;
  45042. DRAW_BUFFER3_WEBGL = $8828;
  45043. DRAW_BUFFER4_WEBGL = $8829;
  45044. DRAW_BUFFER5_WEBGL = $882A;
  45045. DRAW_BUFFER6_WEBGL = $882B;
  45046. DRAW_BUFFER7_WEBGL = $882C;
  45047. DRAW_BUFFER8_WEBGL = $882D;
  45048. DRAW_BUFFER9_WEBGL = $882E;
  45049. DRAW_BUFFER10_WEBGL = $882F;
  45050. DRAW_BUFFER11_WEBGL = $8830;
  45051. DRAW_BUFFER12_WEBGL = $8831;
  45052. DRAW_BUFFER13_WEBGL = $8832;
  45053. DRAW_BUFFER14_WEBGL = $8833;
  45054. DRAW_BUFFER15_WEBGL = $8834;
  45055. MAX_COLOR_ATTACHMENTS_WEBGL = $8CDF;
  45056. MAX_DRAW_BUFFERS_WEBGL = $8824;
  45057. Public
  45058. procedure drawBuffersWEBGL(const aBuffers: TGLenumDynArray); overload;
  45059. class function JSClassName: UnicodeString; override;
  45060. class function Cast(const Intf: IJSObject): IJSWEBGL_draw_buffers;
  45061. end;
  45062. { --------------------------------------------------------------------
  45063. TJSOES_texture_float_linear
  45064. --------------------------------------------------------------------}
  45065. IJSOES_texture_float_linear = interface(IJSObject)
  45066. ['{80481F65-0D71-30A2-A7A0-A6AA234038D8}']
  45067. end;
  45068. TJSOES_texture_float_linear = class(TJSObject,IJSOES_texture_float_linear)
  45069. Protected
  45070. Public
  45071. class function JSClassName: UnicodeString; override;
  45072. class function Cast(const Intf: IJSObject): IJSOES_texture_float_linear;
  45073. end;
  45074. { --------------------------------------------------------------------
  45075. TJSEXT_shader_texture_lod
  45076. --------------------------------------------------------------------}
  45077. IJSEXT_shader_texture_lod = interface(IJSObject)
  45078. ['{D65EC240-FCA0-31B2-B491-68C36CB24F28}']
  45079. end;
  45080. TJSEXT_shader_texture_lod = class(TJSObject,IJSEXT_shader_texture_lod)
  45081. Protected
  45082. Public
  45083. class function JSClassName: UnicodeString; override;
  45084. class function Cast(const Intf: IJSObject): IJSEXT_shader_texture_lod;
  45085. end;
  45086. { --------------------------------------------------------------------
  45087. TJSOES_texture_half_float
  45088. --------------------------------------------------------------------}
  45089. IJSOES_texture_half_float = interface(IJSObject)
  45090. ['{0C827F30-44FE-37A5-89F3-AEA33E66AC3C}']
  45091. end;
  45092. TJSOES_texture_half_float = class(TJSObject,IJSOES_texture_half_float)
  45093. Protected
  45094. Public
  45095. Const
  45096. HALF_FLOAT_OES = $8D61;
  45097. Public
  45098. class function JSClassName: UnicodeString; override;
  45099. class function Cast(const Intf: IJSObject): IJSOES_texture_half_float;
  45100. end;
  45101. { --------------------------------------------------------------------
  45102. TJSOES_texture_half_float_linear
  45103. --------------------------------------------------------------------}
  45104. IJSOES_texture_half_float_linear = interface(IJSObject)
  45105. ['{7A46FE69-63CD-3666-B190-30355050D213}']
  45106. end;
  45107. TJSOES_texture_half_float_linear = class(TJSObject,IJSOES_texture_half_float_linear)
  45108. Protected
  45109. Public
  45110. class function JSClassName: UnicodeString; override;
  45111. class function Cast(const Intf: IJSObject): IJSOES_texture_half_float_linear;
  45112. end;
  45113. { --------------------------------------------------------------------
  45114. TJSWEBGL_color_buffer_float
  45115. --------------------------------------------------------------------}
  45116. IJSWEBGL_color_buffer_float = interface(IJSObject)
  45117. ['{1C25836A-B929-3322-9D51-EAFC9FAAAD30}']
  45118. end;
  45119. TJSWEBGL_color_buffer_float = class(TJSObject,IJSWEBGL_color_buffer_float)
  45120. Protected
  45121. Public
  45122. Const
  45123. RGBA32F_EXT = $8814;
  45124. RGB32F_EXT = $8815;
  45125. FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = $8211;
  45126. UNSIGNED_NORMALIZED_EXT = $8C17;
  45127. Public
  45128. class function JSClassName: UnicodeString; override;
  45129. class function Cast(const Intf: IJSObject): IJSWEBGL_color_buffer_float;
  45130. end;
  45131. { --------------------------------------------------------------------
  45132. TJSEXT_color_buffer_half_float
  45133. --------------------------------------------------------------------}
  45134. IJSEXT_color_buffer_half_float = interface(IJSObject)
  45135. ['{BB900451-2C4D-3683-9563-62457BEB166D}']
  45136. end;
  45137. TJSEXT_color_buffer_half_float = class(TJSObject,IJSEXT_color_buffer_half_float)
  45138. Protected
  45139. Public
  45140. Const
  45141. RGBA16F_EXT = $881A;
  45142. RGB16F_EXT = $881B;
  45143. FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = $8211;
  45144. UNSIGNED_NORMALIZED_EXT = $8C17;
  45145. Public
  45146. class function JSClassName: UnicodeString; override;
  45147. class function Cast(const Intf: IJSObject): IJSEXT_color_buffer_half_float;
  45148. end;
  45149. { --------------------------------------------------------------------
  45150. TJSOES_vertex_array_object
  45151. --------------------------------------------------------------------}
  45152. IJSOES_vertex_array_object = interface(IJSObject)
  45153. ['{4ABF74AF-5F5E-3E43-A4B2-5C9944CE6A3C}']
  45154. function createVertexArrayOES: IJSWebGLVertexArrayObject;
  45155. procedure deleteVertexArrayOES(aArrayObject: IJSWebGLVertexArrayObject);
  45156. function isVertexArrayOES(aArrayObject: IJSWebGLVertexArrayObject): TGLboolean;
  45157. procedure bindVertexArrayOES(aArrayObject: IJSWebGLVertexArrayObject);
  45158. end;
  45159. TJSOES_vertex_array_object = class(TJSObject,IJSOES_vertex_array_object)
  45160. Protected
  45161. Public
  45162. Const
  45163. VERTEX_ARRAY_BINDING_OES = $85B5;
  45164. Public
  45165. function createVertexArrayOES: IJSWebGLVertexArrayObject; overload;
  45166. procedure deleteVertexArrayOES(aArrayObject: IJSWebGLVertexArrayObject); overload;
  45167. function isVertexArrayOES(aArrayObject: IJSWebGLVertexArrayObject): TGLboolean; overload;
  45168. procedure bindVertexArrayOES(aArrayObject: IJSWebGLVertexArrayObject); overload;
  45169. class function JSClassName: UnicodeString; override;
  45170. class function Cast(const Intf: IJSObject): IJSOES_vertex_array_object;
  45171. end;
  45172. { --------------------------------------------------------------------
  45173. TJSANGLE_instanced_arrays
  45174. --------------------------------------------------------------------}
  45175. IJSANGLE_instanced_arrays = interface(IJSObject)
  45176. ['{0E0941FF-892B-3230-85CA-25E0156FDC86}']
  45177. procedure drawArraysInstancedANGLE(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei; aPrimcount: TGLsizei);
  45178. procedure drawElementsInstancedANGLE(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr; aPrimcount: TGLsizei);
  45179. procedure vertexAttribDivisorANGLE(aIndex: TGLuint; aDivisor: TGLuint);
  45180. end;
  45181. TJSANGLE_instanced_arrays = class(TJSObject,IJSANGLE_instanced_arrays)
  45182. Protected
  45183. Public
  45184. Const
  45185. VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = $88FE;
  45186. Public
  45187. procedure drawArraysInstancedANGLE(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei; aPrimcount: TGLsizei); overload;
  45188. procedure drawElementsInstancedANGLE(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr; aPrimcount: TGLsizei); overload;
  45189. procedure vertexAttribDivisorANGLE(aIndex: TGLuint; aDivisor: TGLuint); overload;
  45190. class function JSClassName: UnicodeString; override;
  45191. class function Cast(const Intf: IJSObject): IJSANGLE_instanced_arrays;
  45192. end;
  45193. { --------------------------------------------------------------------
  45194. TJSEXT_blend_minmax
  45195. --------------------------------------------------------------------}
  45196. IJSEXT_blend_minmax = interface(IJSObject)
  45197. ['{6B68B361-44A4-3323-8438-1A18AD6CCC64}']
  45198. end;
  45199. TJSEXT_blend_minmax = class(TJSObject,IJSEXT_blend_minmax)
  45200. Protected
  45201. Public
  45202. Const
  45203. MIN_EXT = $8007;
  45204. MAX_EXT = $8008;
  45205. Public
  45206. class function JSClassName: UnicodeString; override;
  45207. class function Cast(const Intf: IJSObject): IJSEXT_blend_minmax;
  45208. end;
  45209. { --------------------------------------------------------------------
  45210. TJSWebGLQuery
  45211. --------------------------------------------------------------------}
  45212. IJSWebGLQuery = interface(IJSObject)
  45213. ['{F0F56ABA-6D4F-375C-87C0-636E89A48332}']
  45214. end;
  45215. TJSWebGLQuery = class(TJSObject,IJSWebGLQuery)
  45216. Protected
  45217. Public
  45218. class function JSClassName: UnicodeString; override;
  45219. class function Cast(const Intf: IJSObject): IJSWebGLQuery;
  45220. end;
  45221. { --------------------------------------------------------------------
  45222. TJSEXT_disjoint_timer_query
  45223. --------------------------------------------------------------------}
  45224. IJSEXT_disjoint_timer_query = interface(IJSObject)
  45225. ['{B08F1DD2-20BA-3E87-B41A-09AB51EF7B9F}']
  45226. function createQueryEXT: IJSWebGLQuery;
  45227. procedure deleteQueryEXT(aQuery: IJSWebGLQuery);
  45228. function isQueryEXT(aQuery: IJSWebGLQuery): Boolean;
  45229. procedure beginQueryEXT(aTarget: TGLenum; aQuery: IJSWebGLQuery);
  45230. procedure endQueryEXT(aTarget: TGLenum);
  45231. procedure queryCounterEXT(aQuery: IJSWebGLQuery; aTarget: TGLenum);
  45232. function getQueryEXT(aTarget: TGLenum; aPname: TGLenum): Variant;
  45233. function getQueryObjectEXT(aQuery: IJSWebGLQuery; aPname: TGLenum): Variant;
  45234. end;
  45235. TJSEXT_disjoint_timer_query = class(TJSObject,IJSEXT_disjoint_timer_query)
  45236. Protected
  45237. Public
  45238. Const
  45239. QUERY_COUNTER_BITS_EXT = $8864;
  45240. CURRENT_QUERY_EXT = $8865;
  45241. QUERY_RESULT_EXT = $8866;
  45242. QUERY_RESULT_AVAILABLE_EXT = $8867;
  45243. TIME_ELAPSED_EXT = $88BF;
  45244. TIMESTAMP_EXT = $8E28;
  45245. GPU_DISJOINT_EXT = $8FBB;
  45246. Public
  45247. function createQueryEXT: IJSWebGLQuery; overload;
  45248. procedure deleteQueryEXT(aQuery: IJSWebGLQuery); overload;
  45249. function isQueryEXT(aQuery: IJSWebGLQuery): Boolean; overload;
  45250. procedure beginQueryEXT(aTarget: TGLenum; aQuery: IJSWebGLQuery); overload;
  45251. procedure endQueryEXT(aTarget: TGLenum); overload;
  45252. procedure queryCounterEXT(aQuery: IJSWebGLQuery; aTarget: TGLenum); overload;
  45253. function getQueryEXT(aTarget: TGLenum; aPname: TGLenum): Variant; overload;
  45254. function getQueryObjectEXT(aQuery: IJSWebGLQuery; aPname: TGLenum): Variant; overload;
  45255. class function JSClassName: UnicodeString; override;
  45256. class function Cast(const Intf: IJSObject): IJSEXT_disjoint_timer_query;
  45257. end;
  45258. { --------------------------------------------------------------------
  45259. TJSMOZ_debug
  45260. --------------------------------------------------------------------}
  45261. IJSMOZ_debug = interface(IJSObject)
  45262. ['{6756779A-7C82-3416-B075-CB82F7F38759}']
  45263. function getParameter(aPname: TGLenum): Variant;
  45264. end;
  45265. TJSMOZ_debug = class(TJSObject,IJSMOZ_debug)
  45266. Protected
  45267. Public
  45268. Const
  45269. EXTENSIONS = $1F03;
  45270. WSI_INFO = $10000;
  45271. UNPACK_REQUIRE_FASTPATH = $10001;
  45272. DOES_INDEX_VALIDATION = $10002;
  45273. Public
  45274. function getParameter(aPname: TGLenum): Variant; overload;
  45275. class function JSClassName: UnicodeString; override;
  45276. class function Cast(const Intf: IJSObject): IJSMOZ_debug;
  45277. end;
  45278. { --------------------------------------------------------------------
  45279. TJSEXT_float_blend
  45280. --------------------------------------------------------------------}
  45281. IJSEXT_float_blend = interface(IJSObject)
  45282. ['{AC6B95A4-ABDF-3E0F-A938-8943E0B13444}']
  45283. end;
  45284. TJSEXT_float_blend = class(TJSObject,IJSEXT_float_blend)
  45285. Protected
  45286. Public
  45287. class function JSClassName: UnicodeString; override;
  45288. class function Cast(const Intf: IJSObject): IJSEXT_float_blend;
  45289. end;
  45290. { --------------------------------------------------------------------
  45291. TJSOES_fbo_render_mipmap
  45292. --------------------------------------------------------------------}
  45293. IJSOES_fbo_render_mipmap = interface(IJSObject)
  45294. ['{E0F1EFE9-8E37-397F-9776-01221D0C900F}']
  45295. end;
  45296. TJSOES_fbo_render_mipmap = class(TJSObject,IJSOES_fbo_render_mipmap)
  45297. Protected
  45298. Public
  45299. class function JSClassName: UnicodeString; override;
  45300. class function Cast(const Intf: IJSObject): IJSOES_fbo_render_mipmap;
  45301. end;
  45302. { --------------------------------------------------------------------
  45303. TJSWEBGL_explicit_present
  45304. --------------------------------------------------------------------}
  45305. IJSWEBGL_explicit_present = interface(IJSObject)
  45306. ['{28B9E715-D559-395F-9A75-42796C01798F}']
  45307. procedure present;
  45308. end;
  45309. TJSWEBGL_explicit_present = class(TJSObject,IJSWEBGL_explicit_present)
  45310. Protected
  45311. Public
  45312. procedure present; overload;
  45313. class function JSClassName: UnicodeString; override;
  45314. class function Cast(const Intf: IJSObject): IJSWEBGL_explicit_present;
  45315. end;
  45316. { --------------------------------------------------------------------
  45317. TJSOES_draw_buffers_indexed
  45318. --------------------------------------------------------------------}
  45319. IJSOES_draw_buffers_indexed = interface(IJSObject)
  45320. ['{302CA20A-D54E-3465-BD83-DE6842BDF66E}']
  45321. procedure enableiOES(aTarget: TGLenum; aIndex: TGLuint);
  45322. procedure disableiOES(aTarget: TGLenum; aIndex: TGLuint);
  45323. procedure blendEquationiOES(aBuf: TGLuint; aMode: TGLenum);
  45324. procedure blendEquationSeparateiOES(aBuf: TGLuint; aModeRGB: TGLenum; aModeAlpha: TGLenum);
  45325. procedure blendFunciOES(aBuf: TGLuint; aSrc: TGLenum; aDst: TGLenum);
  45326. procedure blendFuncSeparateiOES(aBuf: TGLuint; aSrcRGB: TGLenum; aDstRGB: TGLenum; aSrcAlpha: TGLenum; aDstAlpha: TGLenum);
  45327. procedure colorMaskiOES(aBuf: TGLuint; aR: TGLboolean; aG: TGLboolean; aB: TGLboolean; aA: TGLboolean);
  45328. end;
  45329. TJSOES_draw_buffers_indexed = class(TJSObject,IJSOES_draw_buffers_indexed)
  45330. Protected
  45331. Public
  45332. procedure enableiOES(aTarget: TGLenum; aIndex: TGLuint); overload;
  45333. procedure disableiOES(aTarget: TGLenum; aIndex: TGLuint); overload;
  45334. procedure blendEquationiOES(aBuf: TGLuint; aMode: TGLenum); overload;
  45335. procedure blendEquationSeparateiOES(aBuf: TGLuint; aModeRGB: TGLenum; aModeAlpha: TGLenum); overload;
  45336. procedure blendFunciOES(aBuf: TGLuint; aSrc: TGLenum; aDst: TGLenum); overload;
  45337. procedure blendFuncSeparateiOES(aBuf: TGLuint; aSrcRGB: TGLenum; aDstRGB: TGLenum; aSrcAlpha: TGLenum; aDstAlpha: TGLenum); overload;
  45338. procedure colorMaskiOES(aBuf: TGLuint; aR: TGLboolean; aG: TGLboolean; aB: TGLboolean; aA: TGLboolean); overload;
  45339. class function JSClassName: UnicodeString; override;
  45340. class function Cast(const Intf: IJSObject): IJSOES_draw_buffers_indexed;
  45341. end;
  45342. { --------------------------------------------------------------------
  45343. TJSWEBGL_provoking_vertex
  45344. --------------------------------------------------------------------}
  45345. IJSWEBGL_provoking_vertex = interface(IJSObject)
  45346. ['{0EF532CE-CEC1-3696-90F1-403816C02DB3}']
  45347. procedure provokingVertexWEBGL(aProvokeMode: TGLenum);
  45348. end;
  45349. TJSWEBGL_provoking_vertex = class(TJSObject,IJSWEBGL_provoking_vertex)
  45350. Protected
  45351. Public
  45352. Const
  45353. FIRST_VERTEX_CONVENTION_WEBGL = $8E4D;
  45354. LAST_VERTEX_CONVENTION_WEBGL = $8E4E;
  45355. PROVOKING_VERTEX_WEBGL = $8E4F;
  45356. Public
  45357. procedure provokingVertexWEBGL(aProvokeMode: TGLenum); overload;
  45358. class function JSClassName: UnicodeString; override;
  45359. class function Cast(const Intf: IJSObject): IJSWEBGL_provoking_vertex;
  45360. end;
  45361. { --------------------------------------------------------------------
  45362. TJSGPUObjectBase
  45363. --------------------------------------------------------------------}
  45364. IJSGPUObjectBase = interface(IJSObject)
  45365. ['{DF40ECF0-D2C3-3EB6-9E40-D7D9FF71BF75}']
  45366. function _Getlabel_: UnicodeString;
  45367. procedure _Setlabel_(const aValue: UnicodeString);
  45368. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  45369. end;
  45370. TJSGPUObjectBase = class(TJSObject,IJSGPUObjectBase)
  45371. Protected
  45372. function _Getlabel_: UnicodeString;
  45373. procedure _Setlabel_(const aValue: UnicodeString);
  45374. Public
  45375. class function JSClassName: UnicodeString; override;
  45376. class function Cast(const Intf: IJSObject): IJSGPUObjectBase;
  45377. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  45378. end;
  45379. { --------------------------------------------------------------------
  45380. TJSGPUSupportedLimits
  45381. --------------------------------------------------------------------}
  45382. IJSGPUSupportedLimits = interface(IJSObject)
  45383. ['{19E413AF-72B2-3B3A-9959-C6D19AB80E33}']
  45384. function _GetmaxTextureDimension1D: Cardinal;
  45385. function _GetmaxTextureDimension2D: Cardinal;
  45386. function _GetmaxTextureDimension3D: Cardinal;
  45387. function _GetmaxTextureArrayLayers: Cardinal;
  45388. function _GetmaxBindGroups: Cardinal;
  45389. function _GetmaxBindGroupsPlusVertexBuffers: Cardinal;
  45390. function _GetmaxBindingsPerBindGroup: Cardinal;
  45391. function _GetmaxDynamicUniformBuffersPerPipelineLayout: Cardinal;
  45392. function _GetmaxDynamicStorageBuffersPerPipelineLayout: Cardinal;
  45393. function _GetmaxSampledTexturesPerShaderStage: Cardinal;
  45394. function _GetmaxSamplersPerShaderStage: Cardinal;
  45395. function _GetmaxStorageBuffersPerShaderStage: Cardinal;
  45396. function _GetmaxStorageTexturesPerShaderStage: Cardinal;
  45397. function _GetmaxUniformBuffersPerShaderStage: Cardinal;
  45398. function _GetmaxUniformBufferBindingSize: QWord;
  45399. function _GetmaxStorageBufferBindingSize: QWord;
  45400. function _GetminUniformBufferOffsetAlignment: Cardinal;
  45401. function _GetminStorageBufferOffsetAlignment: Cardinal;
  45402. function _GetmaxVertexBuffers: Cardinal;
  45403. function _GetmaxBufferSize: QWord;
  45404. function _GetmaxVertexAttributes: Cardinal;
  45405. function _GetmaxVertexBufferArrayStride: Cardinal;
  45406. function _GetmaxInterStageShaderComponents: Cardinal;
  45407. function _GetmaxInterStageShaderVariables: Cardinal;
  45408. function _GetmaxColorAttachments: Cardinal;
  45409. function _GetmaxColorAttachmentBytesPerSample: Cardinal;
  45410. function _GetmaxComputeWorkgroupStorageSize: Cardinal;
  45411. function _GetmaxComputeInvocationsPerWorkgroup: Cardinal;
  45412. function _GetmaxComputeWorkgroupSizeX: Cardinal;
  45413. function _GetmaxComputeWorkgroupSizeY: Cardinal;
  45414. function _GetmaxComputeWorkgroupSizeZ: Cardinal;
  45415. function _GetmaxComputeWorkgroupsPerDimension: Cardinal;
  45416. property maxTextureDimension1D: Cardinal read _GetmaxTextureDimension1D;
  45417. property maxTextureDimension2D: Cardinal read _GetmaxTextureDimension2D;
  45418. property maxTextureDimension3D: Cardinal read _GetmaxTextureDimension3D;
  45419. property maxTextureArrayLayers: Cardinal read _GetmaxTextureArrayLayers;
  45420. property maxBindGroups: Cardinal read _GetmaxBindGroups;
  45421. property maxBindGroupsPlusVertexBuffers: Cardinal read _GetmaxBindGroupsPlusVertexBuffers;
  45422. property maxBindingsPerBindGroup: Cardinal read _GetmaxBindingsPerBindGroup;
  45423. property maxDynamicUniformBuffersPerPipelineLayout: Cardinal read _GetmaxDynamicUniformBuffersPerPipelineLayout;
  45424. property maxDynamicStorageBuffersPerPipelineLayout: Cardinal read _GetmaxDynamicStorageBuffersPerPipelineLayout;
  45425. property maxSampledTexturesPerShaderStage: Cardinal read _GetmaxSampledTexturesPerShaderStage;
  45426. property maxSamplersPerShaderStage: Cardinal read _GetmaxSamplersPerShaderStage;
  45427. property maxStorageBuffersPerShaderStage: Cardinal read _GetmaxStorageBuffersPerShaderStage;
  45428. property maxStorageTexturesPerShaderStage: Cardinal read _GetmaxStorageTexturesPerShaderStage;
  45429. property maxUniformBuffersPerShaderStage: Cardinal read _GetmaxUniformBuffersPerShaderStage;
  45430. property maxUniformBufferBindingSize: QWord read _GetmaxUniformBufferBindingSize;
  45431. property maxStorageBufferBindingSize: QWord read _GetmaxStorageBufferBindingSize;
  45432. property minUniformBufferOffsetAlignment: Cardinal read _GetminUniformBufferOffsetAlignment;
  45433. property minStorageBufferOffsetAlignment: Cardinal read _GetminStorageBufferOffsetAlignment;
  45434. property maxVertexBuffers: Cardinal read _GetmaxVertexBuffers;
  45435. property maxBufferSize: QWord read _GetmaxBufferSize;
  45436. property maxVertexAttributes: Cardinal read _GetmaxVertexAttributes;
  45437. property maxVertexBufferArrayStride: Cardinal read _GetmaxVertexBufferArrayStride;
  45438. property maxInterStageShaderComponents: Cardinal read _GetmaxInterStageShaderComponents;
  45439. property maxInterStageShaderVariables: Cardinal read _GetmaxInterStageShaderVariables;
  45440. property maxColorAttachments: Cardinal read _GetmaxColorAttachments;
  45441. property maxColorAttachmentBytesPerSample: Cardinal read _GetmaxColorAttachmentBytesPerSample;
  45442. property maxComputeWorkgroupStorageSize: Cardinal read _GetmaxComputeWorkgroupStorageSize;
  45443. property maxComputeInvocationsPerWorkgroup: Cardinal read _GetmaxComputeInvocationsPerWorkgroup;
  45444. property maxComputeWorkgroupSizeX: Cardinal read _GetmaxComputeWorkgroupSizeX;
  45445. property maxComputeWorkgroupSizeY: Cardinal read _GetmaxComputeWorkgroupSizeY;
  45446. property maxComputeWorkgroupSizeZ: Cardinal read _GetmaxComputeWorkgroupSizeZ;
  45447. property maxComputeWorkgroupsPerDimension: Cardinal read _GetmaxComputeWorkgroupsPerDimension;
  45448. end;
  45449. TJSGPUSupportedLimits = class(TJSObject,IJSGPUSupportedLimits)
  45450. Protected
  45451. function _GetmaxTextureDimension1D: Cardinal;
  45452. function _GetmaxTextureDimension2D: Cardinal;
  45453. function _GetmaxTextureDimension3D: Cardinal;
  45454. function _GetmaxTextureArrayLayers: Cardinal;
  45455. function _GetmaxBindGroups: Cardinal;
  45456. function _GetmaxBindGroupsPlusVertexBuffers: Cardinal;
  45457. function _GetmaxBindingsPerBindGroup: Cardinal;
  45458. function _GetmaxDynamicUniformBuffersPerPipelineLayout: Cardinal;
  45459. function _GetmaxDynamicStorageBuffersPerPipelineLayout: Cardinal;
  45460. function _GetmaxSampledTexturesPerShaderStage: Cardinal;
  45461. function _GetmaxSamplersPerShaderStage: Cardinal;
  45462. function _GetmaxStorageBuffersPerShaderStage: Cardinal;
  45463. function _GetmaxStorageTexturesPerShaderStage: Cardinal;
  45464. function _GetmaxUniformBuffersPerShaderStage: Cardinal;
  45465. function _GetmaxUniformBufferBindingSize: QWord;
  45466. function _GetmaxStorageBufferBindingSize: QWord;
  45467. function _GetminUniformBufferOffsetAlignment: Cardinal;
  45468. function _GetminStorageBufferOffsetAlignment: Cardinal;
  45469. function _GetmaxVertexBuffers: Cardinal;
  45470. function _GetmaxBufferSize: QWord;
  45471. function _GetmaxVertexAttributes: Cardinal;
  45472. function _GetmaxVertexBufferArrayStride: Cardinal;
  45473. function _GetmaxInterStageShaderComponents: Cardinal;
  45474. function _GetmaxInterStageShaderVariables: Cardinal;
  45475. function _GetmaxColorAttachments: Cardinal;
  45476. function _GetmaxColorAttachmentBytesPerSample: Cardinal;
  45477. function _GetmaxComputeWorkgroupStorageSize: Cardinal;
  45478. function _GetmaxComputeInvocationsPerWorkgroup: Cardinal;
  45479. function _GetmaxComputeWorkgroupSizeX: Cardinal;
  45480. function _GetmaxComputeWorkgroupSizeY: Cardinal;
  45481. function _GetmaxComputeWorkgroupSizeZ: Cardinal;
  45482. function _GetmaxComputeWorkgroupsPerDimension: Cardinal;
  45483. Public
  45484. class function JSClassName: UnicodeString; override;
  45485. class function Cast(const Intf: IJSObject): IJSGPUSupportedLimits;
  45486. property maxTextureDimension1D: Cardinal read _GetmaxTextureDimension1D;
  45487. property maxTextureDimension2D: Cardinal read _GetmaxTextureDimension2D;
  45488. property maxTextureDimension3D: Cardinal read _GetmaxTextureDimension3D;
  45489. property maxTextureArrayLayers: Cardinal read _GetmaxTextureArrayLayers;
  45490. property maxBindGroups: Cardinal read _GetmaxBindGroups;
  45491. property maxBindGroupsPlusVertexBuffers: Cardinal read _GetmaxBindGroupsPlusVertexBuffers;
  45492. property maxBindingsPerBindGroup: Cardinal read _GetmaxBindingsPerBindGroup;
  45493. property maxDynamicUniformBuffersPerPipelineLayout: Cardinal read _GetmaxDynamicUniformBuffersPerPipelineLayout;
  45494. property maxDynamicStorageBuffersPerPipelineLayout: Cardinal read _GetmaxDynamicStorageBuffersPerPipelineLayout;
  45495. property maxSampledTexturesPerShaderStage: Cardinal read _GetmaxSampledTexturesPerShaderStage;
  45496. property maxSamplersPerShaderStage: Cardinal read _GetmaxSamplersPerShaderStage;
  45497. property maxStorageBuffersPerShaderStage: Cardinal read _GetmaxStorageBuffersPerShaderStage;
  45498. property maxStorageTexturesPerShaderStage: Cardinal read _GetmaxStorageTexturesPerShaderStage;
  45499. property maxUniformBuffersPerShaderStage: Cardinal read _GetmaxUniformBuffersPerShaderStage;
  45500. property maxUniformBufferBindingSize: QWord read _GetmaxUniformBufferBindingSize;
  45501. property maxStorageBufferBindingSize: QWord read _GetmaxStorageBufferBindingSize;
  45502. property minUniformBufferOffsetAlignment: Cardinal read _GetminUniformBufferOffsetAlignment;
  45503. property minStorageBufferOffsetAlignment: Cardinal read _GetminStorageBufferOffsetAlignment;
  45504. property maxVertexBuffers: Cardinal read _GetmaxVertexBuffers;
  45505. property maxBufferSize: QWord read _GetmaxBufferSize;
  45506. property maxVertexAttributes: Cardinal read _GetmaxVertexAttributes;
  45507. property maxVertexBufferArrayStride: Cardinal read _GetmaxVertexBufferArrayStride;
  45508. property maxInterStageShaderComponents: Cardinal read _GetmaxInterStageShaderComponents;
  45509. property maxInterStageShaderVariables: Cardinal read _GetmaxInterStageShaderVariables;
  45510. property maxColorAttachments: Cardinal read _GetmaxColorAttachments;
  45511. property maxColorAttachmentBytesPerSample: Cardinal read _GetmaxColorAttachmentBytesPerSample;
  45512. property maxComputeWorkgroupStorageSize: Cardinal read _GetmaxComputeWorkgroupStorageSize;
  45513. property maxComputeInvocationsPerWorkgroup: Cardinal read _GetmaxComputeInvocationsPerWorkgroup;
  45514. property maxComputeWorkgroupSizeX: Cardinal read _GetmaxComputeWorkgroupSizeX;
  45515. property maxComputeWorkgroupSizeY: Cardinal read _GetmaxComputeWorkgroupSizeY;
  45516. property maxComputeWorkgroupSizeZ: Cardinal read _GetmaxComputeWorkgroupSizeZ;
  45517. property maxComputeWorkgroupsPerDimension: Cardinal read _GetmaxComputeWorkgroupsPerDimension;
  45518. end;
  45519. { --------------------------------------------------------------------
  45520. TJSGPUSupportedFeatures
  45521. --------------------------------------------------------------------}
  45522. IJSGPUSupportedFeatures = interface(IJSObject)
  45523. ['{33443A04-F629-390D-8FF0-9099332280F0}']
  45524. end;
  45525. TJSGPUSupportedFeatures = class(TJSObject,IJSGPUSupportedFeatures)
  45526. Protected
  45527. Public
  45528. class function JSClassName: UnicodeString; override;
  45529. class function Cast(const Intf: IJSObject): IJSGPUSupportedFeatures;
  45530. end;
  45531. { --------------------------------------------------------------------
  45532. TJSGPUAdapterInfo
  45533. --------------------------------------------------------------------}
  45534. IJSGPUAdapterInfo = interface(IJSObject)
  45535. ['{71937EA5-6881-36F7-8F9C-19540620DF37}']
  45536. function _Getvendor: UnicodeString;
  45537. function _Getarchitecture: UnicodeString;
  45538. function _Getdevice: UnicodeString;
  45539. function _Getdescription: UnicodeString;
  45540. property vendor: UnicodeString read _Getvendor;
  45541. property architecture: UnicodeString read _Getarchitecture;
  45542. property device: UnicodeString read _Getdevice;
  45543. property description: UnicodeString read _Getdescription;
  45544. end;
  45545. TJSGPUAdapterInfo = class(TJSObject,IJSGPUAdapterInfo)
  45546. Protected
  45547. function _Getvendor: UnicodeString;
  45548. function _Getarchitecture: UnicodeString;
  45549. function _Getdevice: UnicodeString;
  45550. function _Getdescription: UnicodeString;
  45551. Public
  45552. class function JSClassName: UnicodeString; override;
  45553. class function Cast(const Intf: IJSObject): IJSGPUAdapterInfo;
  45554. property vendor: UnicodeString read _Getvendor;
  45555. property architecture: UnicodeString read _Getarchitecture;
  45556. property device: UnicodeString read _Getdevice;
  45557. property description: UnicodeString read _Getdescription;
  45558. end;
  45559. { --------------------------------------------------------------------
  45560. TJSNavigatorGPU
  45561. --------------------------------------------------------------------}
  45562. IJSNavigatorGPU = interface(IJSObject)
  45563. ['{E6CEC214-B176-3FED-B614-DE9BE542A621}']
  45564. function _Getgpu: IJSGPU;
  45565. property gpu: IJSGPU read _Getgpu;
  45566. end;
  45567. TJSNavigatorGPU = class(TJSObject,IJSNavigatorGPU)
  45568. Protected
  45569. function _Getgpu: IJSGPU;
  45570. Public
  45571. class function JSClassName: UnicodeString; override;
  45572. class function Cast(const Intf: IJSObject): IJSNavigatorGPU;
  45573. property gpu: IJSGPU read _Getgpu;
  45574. end;
  45575. { --------------------------------------------------------------------
  45576. TJSGPU
  45577. --------------------------------------------------------------------}
  45578. IJSGPU = interface(IJSObject)
  45579. ['{BD9279E8-AC43-3057-9FF1-B03DFC76EBCE}']
  45580. function requestAdapter(const aOptions: TJSGPURequestAdapterOptions): IJSPromise; // Promise<GPUAdapter>
  45581. function requestAdapter: IJSPromise; // Promise<GPUAdapter>
  45582. function getPreferredCanvasFormat: TGPUTextureFormat;
  45583. end;
  45584. TJSGPU = class(TJSObject,IJSGPU)
  45585. Protected
  45586. Public
  45587. function requestAdapter(const aOptions: TJSGPURequestAdapterOptions): IJSPromise; overload; // Promise<GPUAdapter>
  45588. function requestAdapter: IJSPromise; overload; // Promise<GPUAdapter>
  45589. function getPreferredCanvasFormat: TGPUTextureFormat; overload;
  45590. class function JSClassName: UnicodeString; override;
  45591. class function Cast(const Intf: IJSObject): IJSGPU;
  45592. end;
  45593. { --------------------------------------------------------------------
  45594. TJSGPUAdapter
  45595. --------------------------------------------------------------------}
  45596. IJSGPUAdapter = interface(IJSObject)
  45597. ['{3A247037-3E87-37F8-BDB8-473634084F48}']
  45598. function _Getfeatures: IJSGPUSupportedFeatures;
  45599. function _Getlimits: IJSGPUSupportedLimits;
  45600. function _GetisFallbackAdapter: Boolean;
  45601. function requestDevice(const aDescriptor: TJSGPUDeviceDescriptor): IJSPromise; // Promise<GPUDevice>
  45602. function requestDevice: IJSPromise; // Promise<GPUDevice>
  45603. function requestAdapterInfo(const aUnmaskHints: TUnicodeStringDynArray): IJSPromise; // Promise<GPUAdapterInfo>
  45604. function requestAdapterInfo: IJSPromise; // Promise<GPUAdapterInfo>
  45605. property features: IJSGPUSupportedFeatures read _Getfeatures;
  45606. property limits: IJSGPUSupportedLimits read _Getlimits;
  45607. property isFallbackAdapter: Boolean read _GetisFallbackAdapter;
  45608. end;
  45609. TJSGPUAdapter = class(TJSObject,IJSGPUAdapter)
  45610. Protected
  45611. function _Getfeatures: IJSGPUSupportedFeatures;
  45612. function _Getlimits: IJSGPUSupportedLimits;
  45613. function _GetisFallbackAdapter: Boolean;
  45614. Public
  45615. function requestDevice(const aDescriptor: TJSGPUDeviceDescriptor): IJSPromise; overload; // Promise<GPUDevice>
  45616. function requestDevice: IJSPromise; overload; // Promise<GPUDevice>
  45617. function requestAdapterInfo(const aUnmaskHints: TUnicodeStringDynArray): IJSPromise; overload; // Promise<GPUAdapterInfo>
  45618. function requestAdapterInfo: IJSPromise; overload; // Promise<GPUAdapterInfo>
  45619. class function JSClassName: UnicodeString; override;
  45620. class function Cast(const Intf: IJSObject): IJSGPUAdapter;
  45621. property features: IJSGPUSupportedFeatures read _Getfeatures;
  45622. property limits: IJSGPUSupportedLimits read _Getlimits;
  45623. property isFallbackAdapter: Boolean read _GetisFallbackAdapter;
  45624. end;
  45625. { --------------------------------------------------------------------
  45626. TJSGPUBufferUsage
  45627. --------------------------------------------------------------------}
  45628. IJSGPUBufferUsage = interface(IJSObject)
  45629. ['{B3FF8426-2B77-3C43-8EAE-5DC383BA25A9}']
  45630. end;
  45631. TJSGPUBufferUsage = class(TJSObject,IJSGPUBufferUsage)
  45632. Protected
  45633. Public
  45634. Const
  45635. MAP_READ = $0001;
  45636. MAP_WRITE = $0002;
  45637. COPY_SRC = $0004;
  45638. COPY_DST = $0008;
  45639. INDEX = $0010;
  45640. VERTEX = $0020;
  45641. UNIFORM = $0040;
  45642. STORAGE = $0080;
  45643. INDIRECT = $0100;
  45644. QUERY_RESOLVE = $0200;
  45645. Public
  45646. class function JSClassName: UnicodeString; override;
  45647. class function Cast(const Intf: IJSObject): IJSGPUBufferUsage;
  45648. end;
  45649. { --------------------------------------------------------------------
  45650. TJSGPUMapMode
  45651. --------------------------------------------------------------------}
  45652. IJSGPUMapMode = interface(IJSObject)
  45653. ['{F0F46007-423D-3A2C-8CD9-C007B8698332}']
  45654. end;
  45655. TJSGPUMapMode = class(TJSObject,IJSGPUMapMode)
  45656. Protected
  45657. Public
  45658. Const
  45659. READ = $0001;
  45660. WRITE = $0002;
  45661. Public
  45662. class function JSClassName: UnicodeString; override;
  45663. class function Cast(const Intf: IJSObject): IJSGPUMapMode;
  45664. end;
  45665. { --------------------------------------------------------------------
  45666. TJSGPUTextureUsage
  45667. --------------------------------------------------------------------}
  45668. IJSGPUTextureUsage = interface(IJSObject)
  45669. ['{0461CAD3-0228-393D-B4B5-E08AAA078046}']
  45670. end;
  45671. TJSGPUTextureUsage = class(TJSObject,IJSGPUTextureUsage)
  45672. Protected
  45673. Public
  45674. Const
  45675. COPY_SRC = $01;
  45676. COPY_DST = $02;
  45677. TEXTURE_BINDING = $04;
  45678. STORAGE_BINDING = $08;
  45679. RENDER_ATTACHMENT = $10;
  45680. Public
  45681. class function JSClassName: UnicodeString; override;
  45682. class function Cast(const Intf: IJSObject): IJSGPUTextureUsage;
  45683. end;
  45684. { --------------------------------------------------------------------
  45685. TJSGPUShaderStage
  45686. --------------------------------------------------------------------}
  45687. IJSGPUShaderStage = interface(IJSObject)
  45688. ['{E333A64D-D12F-3528-85F2-BB92FE3A183A}']
  45689. end;
  45690. TJSGPUShaderStage = class(TJSObject,IJSGPUShaderStage)
  45691. Protected
  45692. Public
  45693. Const
  45694. VERTEX = $1;
  45695. FRAGMENT = $2;
  45696. COMPUTE = $4;
  45697. Public
  45698. class function JSClassName: UnicodeString; override;
  45699. class function Cast(const Intf: IJSObject): IJSGPUShaderStage;
  45700. end;
  45701. { --------------------------------------------------------------------
  45702. TJSGPUCompilationMessage
  45703. --------------------------------------------------------------------}
  45704. IJSGPUCompilationMessage = interface(IJSObject)
  45705. ['{398A3F0E-25AD-364A-86A1-B3280E1C82FB}']
  45706. function _Getmessage: UnicodeString;
  45707. function _Gettype_: TGPUCompilationMessageType;
  45708. function _GetlineNum: QWord;
  45709. function _GetlinePos: QWord;
  45710. function _Getoffset: QWord;
  45711. function _Getlength_: QWord;
  45712. property message: UnicodeString read _Getmessage;
  45713. property type_: TGPUCompilationMessageType read _Gettype_;
  45714. property lineNum: QWord read _GetlineNum;
  45715. property linePos: QWord read _GetlinePos;
  45716. property offset: QWord read _Getoffset;
  45717. property length_: QWord read _Getlength_;
  45718. end;
  45719. TJSGPUCompilationMessage = class(TJSObject,IJSGPUCompilationMessage)
  45720. Protected
  45721. function _Getmessage: UnicodeString;
  45722. function _Gettype_: TGPUCompilationMessageType;
  45723. function _GetlineNum: QWord;
  45724. function _GetlinePos: QWord;
  45725. function _Getoffset: QWord;
  45726. function _Getlength_: QWord;
  45727. Public
  45728. class function JSClassName: UnicodeString; override;
  45729. class function Cast(const Intf: IJSObject): IJSGPUCompilationMessage;
  45730. property message: UnicodeString read _Getmessage;
  45731. property type_: TGPUCompilationMessageType read _Gettype_;
  45732. property lineNum: QWord read _GetlineNum;
  45733. property linePos: QWord read _GetlinePos;
  45734. property offset: QWord read _Getoffset;
  45735. property length_: QWord read _Getlength_;
  45736. end;
  45737. { --------------------------------------------------------------------
  45738. TJSGPUCompilationInfo
  45739. --------------------------------------------------------------------}
  45740. TJSGPUCompilationMessageDynArray = IJSArray; // array of GPUCompilationMessage
  45741. IJSGPUCompilationInfo = interface(IJSObject)
  45742. ['{6B06EF23-31A2-3B58-87D0-2CC8540C75EC}']
  45743. function _Getmessages: TJSGPUCompilationMessageDynArray;
  45744. property messages: TJSGPUCompilationMessageDynArray read _Getmessages;
  45745. end;
  45746. TJSGPUCompilationInfo = class(TJSObject,IJSGPUCompilationInfo)
  45747. Protected
  45748. function _Getmessages: TJSGPUCompilationMessageDynArray;
  45749. Public
  45750. class function JSClassName: UnicodeString; override;
  45751. class function Cast(const Intf: IJSObject): IJSGPUCompilationInfo;
  45752. property messages: TJSGPUCompilationMessageDynArray read _Getmessages;
  45753. end;
  45754. { --------------------------------------------------------------------
  45755. TJSGPUPipelineBase
  45756. --------------------------------------------------------------------}
  45757. IJSGPUPipelineBase = interface(IJSObject)
  45758. ['{03CEFDCE-F487-3367-B0F4-0F26385ABDD9}']
  45759. function getBindGroupLayout(aIndex: Cardinal): IJSGPUBindGroupLayout;
  45760. end;
  45761. TJSGPUPipelineBase = class(TJSObject,IJSGPUPipelineBase)
  45762. Protected
  45763. Public
  45764. function getBindGroupLayout(aIndex: Cardinal): IJSGPUBindGroupLayout; overload;
  45765. class function JSClassName: UnicodeString; override;
  45766. class function Cast(const Intf: IJSObject): IJSGPUPipelineBase;
  45767. end;
  45768. { --------------------------------------------------------------------
  45769. TJSGPUComputePipeline
  45770. --------------------------------------------------------------------}
  45771. IJSGPUComputePipeline = interface(IJSObject)
  45772. ['{8C04EBA3-9F68-344F-B29A-40B663F99D35}']
  45773. function _Getlabel_: UnicodeString;
  45774. procedure _Setlabel_(const aValue: UnicodeString);
  45775. function getBindGroupLayout(aIndex: Cardinal): IJSGPUBindGroupLayout;
  45776. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  45777. end;
  45778. TJSGPUComputePipeline = class(TJSObject,IJSGPUComputePipeline)
  45779. Protected
  45780. function _Getlabel_: UnicodeString;
  45781. procedure _Setlabel_(const aValue: UnicodeString);
  45782. Public
  45783. function getBindGroupLayout(aIndex: Cardinal): IJSGPUBindGroupLayout; overload;
  45784. class function JSClassName: UnicodeString; override;
  45785. class function Cast(const Intf: IJSObject): IJSGPUComputePipeline;
  45786. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  45787. end;
  45788. { --------------------------------------------------------------------
  45789. TJSGPURenderPipeline
  45790. --------------------------------------------------------------------}
  45791. IJSGPURenderPipeline = interface(IJSObject)
  45792. ['{D3B37DB6-C02A-3A09-8FA5-54EAFCD14204}']
  45793. function _Getlabel_: UnicodeString;
  45794. procedure _Setlabel_(const aValue: UnicodeString);
  45795. function getBindGroupLayout(aIndex: Cardinal): IJSGPUBindGroupLayout;
  45796. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  45797. end;
  45798. TJSGPURenderPipeline = class(TJSObject,IJSGPURenderPipeline)
  45799. Protected
  45800. function _Getlabel_: UnicodeString;
  45801. procedure _Setlabel_(const aValue: UnicodeString);
  45802. Public
  45803. function getBindGroupLayout(aIndex: Cardinal): IJSGPUBindGroupLayout; overload;
  45804. class function JSClassName: UnicodeString; override;
  45805. class function Cast(const Intf: IJSObject): IJSGPURenderPipeline;
  45806. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  45807. end;
  45808. { --------------------------------------------------------------------
  45809. TJSGPUColorWrite
  45810. --------------------------------------------------------------------}
  45811. IJSGPUColorWrite = interface(IJSObject)
  45812. ['{ACEB913B-6E4C-3683-9E55-EC5CD5AC62E4}']
  45813. end;
  45814. TJSGPUColorWrite = class(TJSObject,IJSGPUColorWrite)
  45815. Protected
  45816. Public
  45817. Const
  45818. RED = $1;
  45819. GREEN = $2;
  45820. BLUE = $4;
  45821. ALPHA = $8;
  45822. ALL = $F;
  45823. Public
  45824. class function JSClassName: UnicodeString; override;
  45825. class function Cast(const Intf: IJSObject): IJSGPUColorWrite;
  45826. end;
  45827. { --------------------------------------------------------------------
  45828. TJSGPUCommandsMixin
  45829. --------------------------------------------------------------------}
  45830. IJSGPUCommandsMixin = interface(IJSObject)
  45831. ['{84BBB024-2AAD-39C7-98B4-721E1E0D8EB9}']
  45832. end;
  45833. TJSGPUCommandsMixin = class(TJSObject,IJSGPUCommandsMixin)
  45834. Protected
  45835. Public
  45836. class function JSClassName: UnicodeString; override;
  45837. class function Cast(const Intf: IJSObject): IJSGPUCommandsMixin;
  45838. end;
  45839. { --------------------------------------------------------------------
  45840. TJSGPUCommandEncoder
  45841. --------------------------------------------------------------------}
  45842. TGPUIntegerCoordinateDynArray = IJSArray; // array of GPUIntegerCoordinate
  45843. IJSGPUCommandEncoder = interface(IJSObject)
  45844. ['{50008FF5-BD44-3608-A4B4-906B36E6DC12}']
  45845. function _Getlabel_: UnicodeString;
  45846. procedure _Setlabel_(const aValue: UnicodeString);
  45847. function beginRenderPass(const aDescriptor: TJSGPURenderPassDescriptor): IJSGPURenderPassEncoder;
  45848. function beginComputePass(const aDescriptor: TJSGPUComputePassDescriptor): IJSGPUComputePassEncoder;
  45849. function beginComputePass: IJSGPUComputePassEncoder;
  45850. procedure copyBufferToBuffer(aSource: IJSGPUBuffer; aSourceOffset: TGPUSize64; aDestination: IJSGPUBuffer; aDestinationOffset: TGPUSize64; aSize: TGPUSize64);
  45851. procedure copyBufferToTexture(const aSource: TJSGPUImageCopyBuffer; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TJSGPUExtent3DDict);
  45852. procedure copyBufferToTexture(const aSource: TJSGPUImageCopyBuffer; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TGPUIntegerCoordinateDynArray);
  45853. procedure copyTextureToBuffer(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyBuffer; const aCopySize: TJSGPUExtent3DDict);
  45854. procedure copyTextureToBuffer(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyBuffer; const aCopySize: TGPUIntegerCoordinateDynArray);
  45855. procedure copyTextureToTexture(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TJSGPUExtent3DDict);
  45856. procedure copyTextureToTexture(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TGPUIntegerCoordinateDynArray);
  45857. procedure clearBuffer(aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64);
  45858. procedure clearBuffer(aBuffer: IJSGPUBuffer);
  45859. procedure clearBuffer(aBuffer: IJSGPUBuffer; aOffset: TGPUSize64);
  45860. function finish(const aDescriptor: TJSGPUCommandBufferDescriptor): IJSGPUCommandBuffer;
  45861. function finish: IJSGPUCommandBuffer;
  45862. procedure pushDebugGroup(const aGroupLabel: UnicodeString);
  45863. procedure popDebugGroup;
  45864. procedure insertDebugMarker(const aMarkerLabel: UnicodeString);
  45865. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  45866. end;
  45867. TJSGPUCommandEncoder = class(TJSObject,IJSGPUCommandEncoder)
  45868. Protected
  45869. function _Getlabel_: UnicodeString;
  45870. procedure _Setlabel_(const aValue: UnicodeString);
  45871. Public
  45872. function beginRenderPass(const aDescriptor: TJSGPURenderPassDescriptor): IJSGPURenderPassEncoder; overload;
  45873. function beginComputePass(const aDescriptor: TJSGPUComputePassDescriptor): IJSGPUComputePassEncoder; overload;
  45874. function beginComputePass: IJSGPUComputePassEncoder; overload;
  45875. procedure copyBufferToBuffer(aSource: IJSGPUBuffer; aSourceOffset: TGPUSize64; aDestination: IJSGPUBuffer; aDestinationOffset: TGPUSize64; aSize: TGPUSize64); overload;
  45876. procedure copyBufferToTexture(const aSource: TJSGPUImageCopyBuffer; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TJSGPUExtent3DDict); overload;
  45877. procedure copyBufferToTexture(const aSource: TJSGPUImageCopyBuffer; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TGPUIntegerCoordinateDynArray); overload;
  45878. procedure copyTextureToBuffer(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyBuffer; const aCopySize: TJSGPUExtent3DDict); overload;
  45879. procedure copyTextureToBuffer(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyBuffer; const aCopySize: TGPUIntegerCoordinateDynArray); overload;
  45880. procedure copyTextureToTexture(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TJSGPUExtent3DDict); overload;
  45881. procedure copyTextureToTexture(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TGPUIntegerCoordinateDynArray); overload;
  45882. procedure clearBuffer(aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64); overload;
  45883. procedure clearBuffer(aBuffer: IJSGPUBuffer); overload;
  45884. procedure clearBuffer(aBuffer: IJSGPUBuffer; aOffset: TGPUSize64); overload;
  45885. function finish(const aDescriptor: TJSGPUCommandBufferDescriptor): IJSGPUCommandBuffer; overload;
  45886. function finish: IJSGPUCommandBuffer; overload;
  45887. procedure pushDebugGroup(const aGroupLabel: UnicodeString); overload;
  45888. procedure popDebugGroup; overload;
  45889. procedure insertDebugMarker(const aMarkerLabel: UnicodeString); overload;
  45890. class function JSClassName: UnicodeString; override;
  45891. class function Cast(const Intf: IJSObject): IJSGPUCommandEncoder;
  45892. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  45893. end;
  45894. { --------------------------------------------------------------------
  45895. TJSGPUBindingCommandsMixin
  45896. --------------------------------------------------------------------}
  45897. TGPUBufferDynamicOffsetDynArray = IJSArray; // array of GPUBufferDynamicOffset
  45898. IJSGPUBindingCommandsMixin = interface(IJSObject)
  45899. ['{7F62F319-8332-3B2C-A2B2-E4771A95EBC2}']
  45900. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray);
  45901. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup);
  45902. end;
  45903. TJSGPUBindingCommandsMixin = class(TJSObject,IJSGPUBindingCommandsMixin)
  45904. Protected
  45905. Public
  45906. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray); overload;
  45907. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup); overload;
  45908. class function JSClassName: UnicodeString; override;
  45909. class function Cast(const Intf: IJSObject): IJSGPUBindingCommandsMixin;
  45910. end;
  45911. { --------------------------------------------------------------------
  45912. TJSGPUDebugCommandsMixin
  45913. --------------------------------------------------------------------}
  45914. IJSGPUDebugCommandsMixin = interface(IJSObject)
  45915. ['{0D57B49F-01EC-3A00-AEC8-7DB33EE61ADC}']
  45916. procedure pushDebugGroup(const aGroupLabel: UnicodeString);
  45917. procedure popDebugGroup;
  45918. procedure insertDebugMarker(const aMarkerLabel: UnicodeString);
  45919. end;
  45920. TJSGPUDebugCommandsMixin = class(TJSObject,IJSGPUDebugCommandsMixin)
  45921. Protected
  45922. Public
  45923. procedure pushDebugGroup(const aGroupLabel: UnicodeString); overload;
  45924. procedure popDebugGroup; overload;
  45925. procedure insertDebugMarker(const aMarkerLabel: UnicodeString); overload;
  45926. class function JSClassName: UnicodeString; override;
  45927. class function Cast(const Intf: IJSObject): IJSGPUDebugCommandsMixin;
  45928. end;
  45929. { --------------------------------------------------------------------
  45930. TJSGPUComputePassEncoder
  45931. --------------------------------------------------------------------}
  45932. IJSGPUComputePassEncoder = interface(IJSObject)
  45933. ['{8735412F-85E2-3DB3-BB2B-3B080FB08A28}']
  45934. function _Getlabel_: UnicodeString;
  45935. procedure _Setlabel_(const aValue: UnicodeString);
  45936. procedure setPipeline(aPipeline: IJSGPUComputePipeline);
  45937. procedure dispatchWorkgroups(aWorkgroupCountX: TGPUSize32; aWorkgroupCountY: TGPUSize32; aWorkgroupCountZ: TGPUSize32);
  45938. procedure dispatchWorkgroups(aWorkgroupCountX: TGPUSize32);
  45939. procedure dispatchWorkgroups(aWorkgroupCountX: TGPUSize32; aWorkgroupCountY: TGPUSize32);
  45940. procedure dispatchWorkgroupsIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  45941. procedure end_;
  45942. procedure pushDebugGroup(const aGroupLabel: UnicodeString);
  45943. procedure popDebugGroup;
  45944. procedure insertDebugMarker(const aMarkerLabel: UnicodeString);
  45945. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray);
  45946. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup);
  45947. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  45948. end;
  45949. TJSGPUComputePassEncoder = class(TJSObject,IJSGPUComputePassEncoder)
  45950. Protected
  45951. function _Getlabel_: UnicodeString;
  45952. procedure _Setlabel_(const aValue: UnicodeString);
  45953. Public
  45954. procedure setPipeline(aPipeline: IJSGPUComputePipeline); overload;
  45955. procedure dispatchWorkgroups(aWorkgroupCountX: TGPUSize32; aWorkgroupCountY: TGPUSize32; aWorkgroupCountZ: TGPUSize32); overload;
  45956. procedure dispatchWorkgroups(aWorkgroupCountX: TGPUSize32); overload;
  45957. procedure dispatchWorkgroups(aWorkgroupCountX: TGPUSize32; aWorkgroupCountY: TGPUSize32); overload;
  45958. procedure dispatchWorkgroupsIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64); overload;
  45959. procedure end_; overload;
  45960. procedure pushDebugGroup(const aGroupLabel: UnicodeString); overload;
  45961. procedure popDebugGroup; overload;
  45962. procedure insertDebugMarker(const aMarkerLabel: UnicodeString); overload;
  45963. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray); overload;
  45964. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup); overload;
  45965. class function JSClassName: UnicodeString; override;
  45966. class function Cast(const Intf: IJSObject): IJSGPUComputePassEncoder;
  45967. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  45968. end;
  45969. { --------------------------------------------------------------------
  45970. TJSGPURenderPassEncoder
  45971. --------------------------------------------------------------------}
  45972. TJSGPURenderBundleDynArray = IJSArray; // array of GPURenderBundle
  45973. IJSGPURenderPassEncoder = interface(IJSObject)
  45974. ['{09978F20-716E-33DF-ADD4-9D32BCDB2F87}']
  45975. function _Getlabel_: UnicodeString;
  45976. procedure _Setlabel_(const aValue: UnicodeString);
  45977. procedure setViewport(aX: Single; aY: Single; aWidth: Single; aHeight: Single; aMinDepth: Single; aMaxDepth: Single);
  45978. procedure setScissorRect(aX: TGPUIntegerCoordinate; aY: TGPUIntegerCoordinate; aWidth: TGPUIntegerCoordinate; aHeight: TGPUIntegerCoordinate);
  45979. procedure setBlendConstant(const aColor: TJSGPUColorDict);
  45980. procedure setBlendConstant(const aColor: TDoubleDynArray);
  45981. procedure setStencilReference(aReference: TGPUStencilValue);
  45982. procedure executeBundles(const aBundles: TJSGPURenderBundleDynArray);
  45983. procedure end_;
  45984. procedure pushDebugGroup(const aGroupLabel: UnicodeString);
  45985. procedure popDebugGroup;
  45986. procedure insertDebugMarker(const aMarkerLabel: UnicodeString);
  45987. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray);
  45988. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup);
  45989. procedure setPipeline(aPipeline: IJSGPURenderPipeline);
  45990. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64; aSize: TGPUSize64);
  45991. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat);
  45992. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64);
  45993. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64);
  45994. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer);
  45995. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64);
  45996. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32; aFirstInstance: TGPUSize32);
  45997. procedure draw(aVertexCount: TGPUSize32);
  45998. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  45999. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32);
  46000. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32; aFirstInstance: TGPUSize32);
  46001. procedure drawIndexed(aIndexCount: TGPUSize32);
  46002. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  46003. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32);
  46004. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32);
  46005. procedure drawIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  46006. procedure drawIndexedIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  46007. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  46008. end;
  46009. TJSGPURenderPassEncoder = class(TJSObject,IJSGPURenderPassEncoder)
  46010. Protected
  46011. function _Getlabel_: UnicodeString;
  46012. procedure _Setlabel_(const aValue: UnicodeString);
  46013. Public
  46014. procedure setViewport(aX: Single; aY: Single; aWidth: Single; aHeight: Single; aMinDepth: Single; aMaxDepth: Single); overload;
  46015. procedure setScissorRect(aX: TGPUIntegerCoordinate; aY: TGPUIntegerCoordinate; aWidth: TGPUIntegerCoordinate; aHeight: TGPUIntegerCoordinate); overload;
  46016. procedure setBlendConstant(const aColor: TJSGPUColorDict); overload;
  46017. procedure setBlendConstant(const aColor: TDoubleDynArray); overload;
  46018. procedure setStencilReference(aReference: TGPUStencilValue); overload;
  46019. procedure executeBundles(const aBundles: TJSGPURenderBundleDynArray); overload;
  46020. procedure end_; overload;
  46021. procedure pushDebugGroup(const aGroupLabel: UnicodeString); overload;
  46022. procedure popDebugGroup; overload;
  46023. procedure insertDebugMarker(const aMarkerLabel: UnicodeString); overload;
  46024. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray); overload;
  46025. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup); overload;
  46026. procedure setPipeline(aPipeline: IJSGPURenderPipeline); overload;
  46027. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64; aSize: TGPUSize64); overload;
  46028. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat); overload;
  46029. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64); overload;
  46030. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64); overload;
  46031. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer); overload;
  46032. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64); overload;
  46033. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32; aFirstInstance: TGPUSize32); overload;
  46034. procedure draw(aVertexCount: TGPUSize32); overload;
  46035. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32); overload;
  46036. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32); overload;
  46037. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32; aFirstInstance: TGPUSize32); overload;
  46038. procedure drawIndexed(aIndexCount: TGPUSize32); overload;
  46039. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32); overload;
  46040. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32); overload;
  46041. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32); overload;
  46042. procedure drawIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64); overload;
  46043. procedure drawIndexedIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64); overload;
  46044. class function JSClassName: UnicodeString; override;
  46045. class function Cast(const Intf: IJSObject): IJSGPURenderPassEncoder;
  46046. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  46047. end;
  46048. { --------------------------------------------------------------------
  46049. TJSGPURenderCommandsMixin
  46050. --------------------------------------------------------------------}
  46051. IJSGPURenderCommandsMixin = interface(IJSObject)
  46052. ['{4D8B5793-FD43-3A9D-9137-2CE0F8D7380E}']
  46053. procedure setPipeline(aPipeline: IJSGPURenderPipeline);
  46054. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64; aSize: TGPUSize64);
  46055. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat);
  46056. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64);
  46057. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64);
  46058. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer);
  46059. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64);
  46060. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32; aFirstInstance: TGPUSize32);
  46061. procedure draw(aVertexCount: TGPUSize32);
  46062. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  46063. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32);
  46064. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32; aFirstInstance: TGPUSize32);
  46065. procedure drawIndexed(aIndexCount: TGPUSize32);
  46066. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  46067. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32);
  46068. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32);
  46069. procedure drawIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  46070. procedure drawIndexedIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  46071. end;
  46072. TJSGPURenderCommandsMixin = class(TJSObject,IJSGPURenderCommandsMixin)
  46073. Protected
  46074. Public
  46075. procedure setPipeline(aPipeline: IJSGPURenderPipeline); overload;
  46076. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64; aSize: TGPUSize64); overload;
  46077. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat); overload;
  46078. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64); overload;
  46079. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64); overload;
  46080. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer); overload;
  46081. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64); overload;
  46082. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32; aFirstInstance: TGPUSize32); overload;
  46083. procedure draw(aVertexCount: TGPUSize32); overload;
  46084. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32); overload;
  46085. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32); overload;
  46086. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32; aFirstInstance: TGPUSize32); overload;
  46087. procedure drawIndexed(aIndexCount: TGPUSize32); overload;
  46088. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32); overload;
  46089. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32); overload;
  46090. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32); overload;
  46091. procedure drawIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64); overload;
  46092. procedure drawIndexedIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64); overload;
  46093. class function JSClassName: UnicodeString; override;
  46094. class function Cast(const Intf: IJSObject): IJSGPURenderCommandsMixin;
  46095. end;
  46096. { --------------------------------------------------------------------
  46097. TJSGPURenderBundleEncoder
  46098. --------------------------------------------------------------------}
  46099. IJSGPURenderBundleEncoder = interface(IJSObject)
  46100. ['{73885434-1492-31D3-B1A2-EEEB134789EC}']
  46101. function _Getlabel_: UnicodeString;
  46102. procedure _Setlabel_(const aValue: UnicodeString);
  46103. function finish(const aDescriptor: TJSGPURenderBundleDescriptor): IJSGPURenderBundle;
  46104. function finish: IJSGPURenderBundle;
  46105. procedure pushDebugGroup(const aGroupLabel: UnicodeString);
  46106. procedure popDebugGroup;
  46107. procedure insertDebugMarker(const aMarkerLabel: UnicodeString);
  46108. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray);
  46109. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup);
  46110. procedure setPipeline(aPipeline: IJSGPURenderPipeline);
  46111. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64; aSize: TGPUSize64);
  46112. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat);
  46113. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64);
  46114. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64);
  46115. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer);
  46116. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64);
  46117. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32; aFirstInstance: TGPUSize32);
  46118. procedure draw(aVertexCount: TGPUSize32);
  46119. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  46120. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32);
  46121. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32; aFirstInstance: TGPUSize32);
  46122. procedure drawIndexed(aIndexCount: TGPUSize32);
  46123. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  46124. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32);
  46125. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32);
  46126. procedure drawIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  46127. procedure drawIndexedIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  46128. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  46129. end;
  46130. TJSGPURenderBundleEncoder = class(TJSObject,IJSGPURenderBundleEncoder)
  46131. Protected
  46132. function _Getlabel_: UnicodeString;
  46133. procedure _Setlabel_(const aValue: UnicodeString);
  46134. Public
  46135. function finish(const aDescriptor: TJSGPURenderBundleDescriptor): IJSGPURenderBundle; overload;
  46136. function finish: IJSGPURenderBundle; overload;
  46137. procedure pushDebugGroup(const aGroupLabel: UnicodeString); overload;
  46138. procedure popDebugGroup; overload;
  46139. procedure insertDebugMarker(const aMarkerLabel: UnicodeString); overload;
  46140. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray); overload;
  46141. procedure setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup); overload;
  46142. procedure setPipeline(aPipeline: IJSGPURenderPipeline); overload;
  46143. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64; aSize: TGPUSize64); overload;
  46144. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat); overload;
  46145. procedure setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64); overload;
  46146. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64); overload;
  46147. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer); overload;
  46148. procedure setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64); overload;
  46149. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32; aFirstInstance: TGPUSize32); overload;
  46150. procedure draw(aVertexCount: TGPUSize32); overload;
  46151. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32); overload;
  46152. procedure draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32); overload;
  46153. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32; aFirstInstance: TGPUSize32); overload;
  46154. procedure drawIndexed(aIndexCount: TGPUSize32); overload;
  46155. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32); overload;
  46156. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32); overload;
  46157. procedure drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32); overload;
  46158. procedure drawIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64); overload;
  46159. procedure drawIndexedIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64); overload;
  46160. class function JSClassName: UnicodeString; override;
  46161. class function Cast(const Intf: IJSObject): IJSGPURenderBundleEncoder;
  46162. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  46163. end;
  46164. { --------------------------------------------------------------------
  46165. TJSGPUCanvasContext
  46166. --------------------------------------------------------------------}
  46167. // Union of HTMLCanvasElement, OffscreenCanvas
  46168. TGPUCanvasContext_canvas_Type = Variant;
  46169. IJSGPUCanvasContext = interface(IJSObject)
  46170. ['{6885BBC7-27AC-3DEE-8941-E6D804F0040E}']
  46171. function _Getcanvas: TGPUCanvasContext_canvas_Type;
  46172. procedure configure(const aConfiguration: TJSGPUCanvasConfiguration);
  46173. procedure unconfigure;
  46174. function getCurrentTexture: IJSGPUTexture;
  46175. property canvas: TGPUCanvasContext_canvas_Type read _Getcanvas;
  46176. end;
  46177. TJSGPUCanvasContext = class(TJSObject,IJSGPUCanvasContext)
  46178. Protected
  46179. function _Getcanvas: TGPUCanvasContext_canvas_Type;
  46180. Public
  46181. procedure configure(const aConfiguration: TJSGPUCanvasConfiguration); overload;
  46182. procedure unconfigure; overload;
  46183. function getCurrentTexture: IJSGPUTexture; overload;
  46184. class function JSClassName: UnicodeString; override;
  46185. class function Cast(const Intf: IJSObject): IJSGPUCanvasContext;
  46186. property canvas: TGPUCanvasContext_canvas_Type read _Getcanvas;
  46187. end;
  46188. { --------------------------------------------------------------------
  46189. TJSGPUDeviceLostInfo
  46190. --------------------------------------------------------------------}
  46191. IJSGPUDeviceLostInfo = interface(IJSObject)
  46192. ['{989755D6-236A-357E-AF36-DF1C4FD319A1}']
  46193. function _Getreason: Variant;
  46194. function _Getmessage: UnicodeString;
  46195. property reason: Variant read _Getreason;
  46196. property message: UnicodeString read _Getmessage;
  46197. end;
  46198. TJSGPUDeviceLostInfo = class(TJSObject,IJSGPUDeviceLostInfo)
  46199. Protected
  46200. function _Getreason: Variant;
  46201. function _Getmessage: UnicodeString;
  46202. Public
  46203. class function JSClassName: UnicodeString; override;
  46204. class function Cast(const Intf: IJSObject): IJSGPUDeviceLostInfo;
  46205. property reason: Variant read _Getreason;
  46206. property message: UnicodeString read _Getmessage;
  46207. end;
  46208. { --------------------------------------------------------------------
  46209. TJSGPUError
  46210. --------------------------------------------------------------------}
  46211. IJSGPUError = interface(IJSObject)
  46212. ['{98CB4C5F-BC46-3C40-A0B0-46ECD50B84B3}']
  46213. function _Getmessage: UnicodeString;
  46214. property message: UnicodeString read _Getmessage;
  46215. end;
  46216. TJSGPUError = class(TJSObject,IJSGPUError)
  46217. Protected
  46218. function _Getmessage: UnicodeString;
  46219. Public
  46220. class function JSClassName: UnicodeString; override;
  46221. class function Cast(const Intf: IJSObject): IJSGPUError;
  46222. property message: UnicodeString read _Getmessage;
  46223. end;
  46224. { --------------------------------------------------------------------
  46225. TJSnsITransportProvider
  46226. --------------------------------------------------------------------}
  46227. IJSnsITransportProvider = interface(IJSObject)
  46228. ['{3346BB54-12AF-31E9-85FB-FB1C6C2260F0}']
  46229. end;
  46230. TJSnsITransportProvider = class(TJSObject,IJSnsITransportProvider)
  46231. Protected
  46232. Public
  46233. class function JSClassName: UnicodeString; override;
  46234. class function Cast(const Intf: IJSObject): IJSnsITransportProvider;
  46235. end;
  46236. { --------------------------------------------------------------------
  46237. TJSScheduler
  46238. --------------------------------------------------------------------}
  46239. IJSScheduler = interface(IJSObject)
  46240. ['{338276D1-3918-37FE-8B1E-5736D390C552}']
  46241. function postTask(const aCallback: TSchedulerPostTaskCallback; const aOptions: TJSSchedulerPostTaskOptions): IJSPromise; // Promise<any>
  46242. function postTask(const aCallback: TSchedulerPostTaskCallback): IJSPromise; // Promise<any>
  46243. end;
  46244. TJSScheduler = class(TJSObject,IJSScheduler)
  46245. Protected
  46246. Public
  46247. function postTask(const aCallback: TSchedulerPostTaskCallback; const aOptions: TJSSchedulerPostTaskOptions): IJSPromise; overload; // Promise<any>
  46248. function postTask(const aCallback: TSchedulerPostTaskCallback): IJSPromise; overload; // Promise<any>
  46249. class function JSClassName: UnicodeString; override;
  46250. class function Cast(const Intf: IJSObject): IJSScheduler;
  46251. end;
  46252. { --------------------------------------------------------------------
  46253. TJSWebTransport
  46254. --------------------------------------------------------------------}
  46255. IJSWebTransport = interface(IJSObject)
  46256. ['{38998DFD-BBC2-3731-895A-2B24628C6267}']
  46257. function _Getready: IJSPromise;
  46258. function _Getreliability: TWebTransportReliabilityMode;
  46259. function _GetcongestionControl: TWebTransportCongestionControl;
  46260. function _Getclosed: IJSPromise;
  46261. function _Getdatagrams: IJSWebTransportDatagramDuplexStream;
  46262. function _GetincomingBidirectionalStreams: IJSReadableStream;
  46263. function _GetincomingUnidirectionalStreams: IJSReadableStream;
  46264. function getStats: IJSPromise; // Promise<WebTransportStats>
  46265. procedure close(const aCloseInfo: TJSWebTransportCloseInfo);
  46266. procedure close;
  46267. function createBidirectionalStream(const aOptions: TJSWebTransportSendStreamOptions): IJSPromise; // Promise<WebTransportBidirectionalStream>
  46268. function createBidirectionalStream: IJSPromise; // Promise<WebTransportBidirectionalStream>
  46269. function createUnidirectionalStream(const aOptions: TJSWebTransportSendStreamOptions): IJSPromise; // Promise<WritableStream>
  46270. function createUnidirectionalStream: IJSPromise; // Promise<WritableStream>
  46271. property ready: IJSPromise read _Getready;
  46272. property reliability: TWebTransportReliabilityMode read _Getreliability;
  46273. property congestionControl: TWebTransportCongestionControl read _GetcongestionControl;
  46274. property closed: IJSPromise read _Getclosed;
  46275. property datagrams: IJSWebTransportDatagramDuplexStream read _Getdatagrams;
  46276. property incomingBidirectionalStreams: IJSReadableStream read _GetincomingBidirectionalStreams;
  46277. property incomingUnidirectionalStreams: IJSReadableStream read _GetincomingUnidirectionalStreams;
  46278. end;
  46279. TJSWebTransport = class(TJSObject,IJSWebTransport)
  46280. Protected
  46281. function _Getready: IJSPromise;
  46282. function _Getreliability: TWebTransportReliabilityMode;
  46283. function _GetcongestionControl: TWebTransportCongestionControl;
  46284. function _Getclosed: IJSPromise;
  46285. function _Getdatagrams: IJSWebTransportDatagramDuplexStream;
  46286. function _GetincomingBidirectionalStreams: IJSReadableStream;
  46287. function _GetincomingUnidirectionalStreams: IJSReadableStream;
  46288. Public
  46289. constructor Create(const aUrl: UnicodeString; const aOptions: TJSWebTransportOptions); overload;
  46290. constructor Create(const aUrl: UnicodeString); overload;
  46291. function getStats: IJSPromise; overload; // Promise<WebTransportStats>
  46292. procedure close(const aCloseInfo: TJSWebTransportCloseInfo); overload;
  46293. procedure close; overload;
  46294. function createBidirectionalStream(const aOptions: TJSWebTransportSendStreamOptions): IJSPromise; overload; // Promise<WebTransportBidirectionalStream>
  46295. function createBidirectionalStream: IJSPromise; overload; // Promise<WebTransportBidirectionalStream>
  46296. function createUnidirectionalStream(const aOptions: TJSWebTransportSendStreamOptions): IJSPromise; overload; // Promise<WritableStream>
  46297. function createUnidirectionalStream: IJSPromise; overload; // Promise<WritableStream>
  46298. class function JSClassName: UnicodeString; override;
  46299. class function Cast(const Intf: IJSObject): IJSWebTransport;
  46300. property ready: IJSPromise read _Getready;
  46301. property reliability: TWebTransportReliabilityMode read _Getreliability;
  46302. property congestionControl: TWebTransportCongestionControl read _GetcongestionControl;
  46303. property closed: IJSPromise read _Getclosed;
  46304. property datagrams: IJSWebTransportDatagramDuplexStream read _Getdatagrams;
  46305. property incomingBidirectionalStreams: IJSReadableStream read _GetincomingBidirectionalStreams;
  46306. property incomingUnidirectionalStreams: IJSReadableStream read _GetincomingUnidirectionalStreams;
  46307. end;
  46308. { --------------------------------------------------------------------
  46309. TJSWebTransportDatagramDuplexStream
  46310. --------------------------------------------------------------------}
  46311. IJSWebTransportDatagramDuplexStream = interface(IJSObject)
  46312. ['{15D88670-07F7-3B5A-BE1E-7493004CD85D}']
  46313. function _Getreadable: IJSReadableStream;
  46314. function _Getwritable: IJSWritableStream;
  46315. function _GetmaxDatagramSize: Cardinal;
  46316. function _GetincomingMaxAge: Double;
  46317. function _GetoutgoingMaxAge: Double;
  46318. function _GetincomingHighWaterMark: Double;
  46319. function _GetoutgoingHighWaterMark: Double;
  46320. procedure _SetincomingMaxAge(const aValue: Double);
  46321. procedure _SetoutgoingMaxAge(const aValue: Double);
  46322. procedure _SetincomingHighWaterMark(const aValue: Double);
  46323. procedure _SetoutgoingHighWaterMark(const aValue: Double);
  46324. property readable: IJSReadableStream read _Getreadable;
  46325. property writable: IJSWritableStream read _Getwritable;
  46326. property maxDatagramSize: Cardinal read _GetmaxDatagramSize;
  46327. property incomingMaxAge: Double read _GetincomingMaxAge write _SetincomingMaxAge;
  46328. property outgoingMaxAge: Double read _GetoutgoingMaxAge write _SetoutgoingMaxAge;
  46329. property incomingHighWaterMark: Double read _GetincomingHighWaterMark write _SetincomingHighWaterMark;
  46330. property outgoingHighWaterMark: Double read _GetoutgoingHighWaterMark write _SetoutgoingHighWaterMark;
  46331. end;
  46332. TJSWebTransportDatagramDuplexStream = class(TJSObject,IJSWebTransportDatagramDuplexStream)
  46333. Protected
  46334. function _Getreadable: IJSReadableStream;
  46335. function _Getwritable: IJSWritableStream;
  46336. function _GetmaxDatagramSize: Cardinal;
  46337. function _GetincomingMaxAge: Double;
  46338. function _GetoutgoingMaxAge: Double;
  46339. function _GetincomingHighWaterMark: Double;
  46340. function _GetoutgoingHighWaterMark: Double;
  46341. procedure _SetincomingMaxAge(const aValue: Double);
  46342. procedure _SetoutgoingMaxAge(const aValue: Double);
  46343. procedure _SetincomingHighWaterMark(const aValue: Double);
  46344. procedure _SetoutgoingHighWaterMark(const aValue: Double);
  46345. Public
  46346. class function JSClassName: UnicodeString; override;
  46347. class function Cast(const Intf: IJSObject): IJSWebTransportDatagramDuplexStream;
  46348. property readable: IJSReadableStream read _Getreadable;
  46349. property writable: IJSWritableStream read _Getwritable;
  46350. property maxDatagramSize: Cardinal read _GetmaxDatagramSize;
  46351. property incomingMaxAge: Double read _GetincomingMaxAge write _SetincomingMaxAge;
  46352. property outgoingMaxAge: Double read _GetoutgoingMaxAge write _SetoutgoingMaxAge;
  46353. property incomingHighWaterMark: Double read _GetincomingHighWaterMark write _SetincomingHighWaterMark;
  46354. property outgoingHighWaterMark: Double read _GetoutgoingHighWaterMark write _SetoutgoingHighWaterMark;
  46355. end;
  46356. { --------------------------------------------------------------------
  46357. TJSWebTransportBidirectionalStream
  46358. --------------------------------------------------------------------}
  46359. IJSWebTransportBidirectionalStream = interface(IJSObject)
  46360. ['{58A9AC67-3F2D-36F4-A75F-9048B41A48FB}']
  46361. function _Getreadable: IJSWebTransportReceiveStream;
  46362. function _Getwritable: IJSWebTransportSendStream;
  46363. property readable: IJSWebTransportReceiveStream read _Getreadable;
  46364. property writable: IJSWebTransportSendStream read _Getwritable;
  46365. end;
  46366. TJSWebTransportBidirectionalStream = class(TJSObject,IJSWebTransportBidirectionalStream)
  46367. Protected
  46368. function _Getreadable: IJSWebTransportReceiveStream;
  46369. function _Getwritable: IJSWebTransportSendStream;
  46370. Public
  46371. class function JSClassName: UnicodeString; override;
  46372. class function Cast(const Intf: IJSObject): IJSWebTransportBidirectionalStream;
  46373. property readable: IJSWebTransportReceiveStream read _Getreadable;
  46374. property writable: IJSWebTransportSendStream read _Getwritable;
  46375. end;
  46376. { --------------------------------------------------------------------
  46377. TJSXRRenderState
  46378. --------------------------------------------------------------------}
  46379. IJSXRRenderState = interface(IJSObject)
  46380. ['{EA087F1B-C1EB-3FE7-8ED2-0A38C9F790B3}']
  46381. function _GetdepthNear: Double;
  46382. function _GetdepthFar: Double;
  46383. function _GetinlineVerticalFieldOfView: Double;
  46384. function _GetbaseLayer: IJSXRWebGLLayer;
  46385. property depthNear: Double read _GetdepthNear;
  46386. property depthFar: Double read _GetdepthFar;
  46387. property inlineVerticalFieldOfView: Double read _GetinlineVerticalFieldOfView;
  46388. property baseLayer: IJSXRWebGLLayer read _GetbaseLayer;
  46389. end;
  46390. TJSXRRenderState = class(TJSObject,IJSXRRenderState)
  46391. Protected
  46392. function _GetdepthNear: Double;
  46393. function _GetdepthFar: Double;
  46394. function _GetinlineVerticalFieldOfView: Double;
  46395. function _GetbaseLayer: IJSXRWebGLLayer;
  46396. Public
  46397. class function JSClassName: UnicodeString; override;
  46398. class function Cast(const Intf: IJSObject): IJSXRRenderState;
  46399. property depthNear: Double read _GetdepthNear;
  46400. property depthFar: Double read _GetdepthFar;
  46401. property inlineVerticalFieldOfView: Double read _GetinlineVerticalFieldOfView;
  46402. property baseLayer: IJSXRWebGLLayer read _GetbaseLayer;
  46403. end;
  46404. { --------------------------------------------------------------------
  46405. TJSXRFrame
  46406. --------------------------------------------------------------------}
  46407. IJSXRFrame = interface(IJSObject)
  46408. ['{064A0E77-8648-3888-868F-454E64D60FF6}']
  46409. function _Getsession: IJSXRSession;
  46410. function getViewerPose(aReferenceSpace: IJSXRReferenceSpace): IJSXRViewerPose;
  46411. function getPose(aSpace: IJSXRSpace; aBaseSpace: IJSXRSpace): IJSXRPose;
  46412. property session: IJSXRSession read _Getsession;
  46413. end;
  46414. TJSXRFrame = class(TJSObject,IJSXRFrame)
  46415. Protected
  46416. function _Getsession: IJSXRSession;
  46417. Public
  46418. function getViewerPose(aReferenceSpace: IJSXRReferenceSpace): IJSXRViewerPose; overload;
  46419. function getPose(aSpace: IJSXRSpace; aBaseSpace: IJSXRSpace): IJSXRPose; overload;
  46420. class function JSClassName: UnicodeString; override;
  46421. class function Cast(const Intf: IJSObject): IJSXRFrame;
  46422. property session: IJSXRSession read _Getsession;
  46423. end;
  46424. { --------------------------------------------------------------------
  46425. TJSXRView
  46426. --------------------------------------------------------------------}
  46427. IJSXRView = interface(IJSObject)
  46428. ['{F2065928-1681-3DE8-8A0D-88C925F16AAC}']
  46429. function _Geteye: TXREye;
  46430. function _GetprojectionMatrix: IJSFloat32Array;
  46431. function _Gettransform: IJSXRRigidTransform;
  46432. property eye: TXREye read _Geteye;
  46433. property projectionMatrix: IJSFloat32Array read _GetprojectionMatrix;
  46434. property transform: IJSXRRigidTransform read _Gettransform;
  46435. end;
  46436. TJSXRView = class(TJSObject,IJSXRView)
  46437. Protected
  46438. function _Geteye: TXREye;
  46439. function _GetprojectionMatrix: IJSFloat32Array;
  46440. function _Gettransform: IJSXRRigidTransform;
  46441. Public
  46442. class function JSClassName: UnicodeString; override;
  46443. class function Cast(const Intf: IJSObject): IJSXRView;
  46444. property eye: TXREye read _Geteye;
  46445. property projectionMatrix: IJSFloat32Array read _GetprojectionMatrix;
  46446. property transform: IJSXRRigidTransform read _Gettransform;
  46447. end;
  46448. { --------------------------------------------------------------------
  46449. TJSXRViewport
  46450. --------------------------------------------------------------------}
  46451. IJSXRViewport = interface(IJSObject)
  46452. ['{B2D2AB8B-6805-32C3-BF73-F740367C8627}']
  46453. function _Getx: LongInt;
  46454. function _Gety: LongInt;
  46455. function _Getwidth: LongInt;
  46456. function _Getheight: LongInt;
  46457. property x: LongInt read _Getx;
  46458. property y: LongInt read _Gety;
  46459. property width: LongInt read _Getwidth;
  46460. property height: LongInt read _Getheight;
  46461. end;
  46462. TJSXRViewport = class(TJSObject,IJSXRViewport)
  46463. Protected
  46464. function _Getx: LongInt;
  46465. function _Gety: LongInt;
  46466. function _Getwidth: LongInt;
  46467. function _Getheight: LongInt;
  46468. Public
  46469. class function JSClassName: UnicodeString; override;
  46470. class function Cast(const Intf: IJSObject): IJSXRViewport;
  46471. property x: LongInt read _Getx;
  46472. property y: LongInt read _Gety;
  46473. property width: LongInt read _Getwidth;
  46474. property height: LongInt read _Getheight;
  46475. end;
  46476. { --------------------------------------------------------------------
  46477. TJSXRRigidTransform
  46478. --------------------------------------------------------------------}
  46479. IJSXRRigidTransform = interface(IJSObject)
  46480. ['{EE29224E-6FCB-3D4D-B9B9-967E2374EBA4}']
  46481. function _Getposition: IJSDOMPointReadOnly;
  46482. function _Getorientation: IJSDOMPointReadOnly;
  46483. function _Getmatrix: IJSFloat32Array;
  46484. function _Getinverse: IJSXRRigidTransform;
  46485. property position: IJSDOMPointReadOnly read _Getposition;
  46486. property orientation: IJSDOMPointReadOnly read _Getorientation;
  46487. property matrix: IJSFloat32Array read _Getmatrix;
  46488. property inverse: IJSXRRigidTransform read _Getinverse;
  46489. end;
  46490. TJSXRRigidTransform = class(TJSObject,IJSXRRigidTransform)
  46491. Protected
  46492. function _Getposition: IJSDOMPointReadOnly;
  46493. function _Getorientation: IJSDOMPointReadOnly;
  46494. function _Getmatrix: IJSFloat32Array;
  46495. function _Getinverse: IJSXRRigidTransform;
  46496. Public
  46497. constructor Create(const aPosition: TJSDOMPointInit; const aOrientation: TJSDOMPointInit); overload;
  46498. constructor Create; overload;
  46499. constructor Create(const aPosition: TJSDOMPointInit); overload;
  46500. class function JSClassName: UnicodeString; override;
  46501. class function Cast(const Intf: IJSObject): IJSXRRigidTransform;
  46502. property position: IJSDOMPointReadOnly read _Getposition;
  46503. property orientation: IJSDOMPointReadOnly read _Getorientation;
  46504. property matrix: IJSFloat32Array read _Getmatrix;
  46505. property inverse: IJSXRRigidTransform read _Getinverse;
  46506. end;
  46507. { --------------------------------------------------------------------
  46508. TJSXRPose
  46509. --------------------------------------------------------------------}
  46510. IJSXRPose = interface(IJSObject)
  46511. ['{10D6597F-F3FA-38A3-A5D1-3DDB26749611}']
  46512. function _Gettransform: IJSXRRigidTransform;
  46513. function _GetemulatedPosition: Boolean;
  46514. property transform: IJSXRRigidTransform read _Gettransform;
  46515. property emulatedPosition: Boolean read _GetemulatedPosition;
  46516. end;
  46517. TJSXRPose = class(TJSObject,IJSXRPose)
  46518. Protected
  46519. function _Gettransform: IJSXRRigidTransform;
  46520. function _GetemulatedPosition: Boolean;
  46521. Public
  46522. class function JSClassName: UnicodeString; override;
  46523. class function Cast(const Intf: IJSObject): IJSXRPose;
  46524. property transform: IJSXRRigidTransform read _Gettransform;
  46525. property emulatedPosition: Boolean read _GetemulatedPosition;
  46526. end;
  46527. { --------------------------------------------------------------------
  46528. TJSXRInputSource
  46529. --------------------------------------------------------------------}
  46530. IJSXRInputSource = interface(IJSObject)
  46531. ['{5AACB449-BF75-3322-8A7D-2AF8C6577E0D}']
  46532. function _Gethandedness: TXRHandedness;
  46533. function _GettargetRayMode: TXRTargetRayMode;
  46534. function _GettargetRaySpace: IJSXRSpace;
  46535. function _GetgripSpace: IJSXRSpace;
  46536. function _Getprofiles: TUnicodeStringDynArray;
  46537. function _Getgamepad: IJSGamepad;
  46538. property handedness: TXRHandedness read _Gethandedness;
  46539. property targetRayMode: TXRTargetRayMode read _GettargetRayMode;
  46540. property targetRaySpace: IJSXRSpace read _GettargetRaySpace;
  46541. property gripSpace: IJSXRSpace read _GetgripSpace;
  46542. property profiles: TUnicodeStringDynArray read _Getprofiles;
  46543. property gamepad: IJSGamepad read _Getgamepad;
  46544. end;
  46545. TJSXRInputSource = class(TJSObject,IJSXRInputSource)
  46546. Protected
  46547. function _Gethandedness: TXRHandedness;
  46548. function _GettargetRayMode: TXRTargetRayMode;
  46549. function _GettargetRaySpace: IJSXRSpace;
  46550. function _GetgripSpace: IJSXRSpace;
  46551. function _Getprofiles: TUnicodeStringDynArray;
  46552. function _Getgamepad: IJSGamepad;
  46553. Public
  46554. class function JSClassName: UnicodeString; override;
  46555. class function Cast(const Intf: IJSObject): IJSXRInputSource;
  46556. property handedness: TXRHandedness read _Gethandedness;
  46557. property targetRayMode: TXRTargetRayMode read _GettargetRayMode;
  46558. property targetRaySpace: IJSXRSpace read _GettargetRaySpace;
  46559. property gripSpace: IJSXRSpace read _GetgripSpace;
  46560. property profiles: TUnicodeStringDynArray read _Getprofiles;
  46561. property gamepad: IJSGamepad read _Getgamepad;
  46562. end;
  46563. { --------------------------------------------------------------------
  46564. TJSXRInputSourceArray
  46565. --------------------------------------------------------------------}
  46566. IJSXRInputSourceArray = interface(IJSObject)
  46567. ['{65968016-04DE-33E1-87C5-CE1009EC4A12}']
  46568. function _Getlength_: Cardinal;
  46569. function GetDefault(aIndex: Cardinal): IJSXRInputSource;
  46570. property length_: Cardinal read _Getlength_;
  46571. end;
  46572. TJSXRInputSourceArray = class(TJSObject,IJSXRInputSourceArray)
  46573. Protected
  46574. function _Getlength_: Cardinal;
  46575. Public
  46576. function GetDefault(aIndex: Cardinal): IJSXRInputSource; overload;
  46577. class function JSClassName: UnicodeString; override;
  46578. class function Cast(const Intf: IJSObject): IJSXRInputSourceArray;
  46579. property length_: Cardinal read _Getlength_;
  46580. end;
  46581. { --------------------------------------------------------------------
  46582. TJSXRWebGLLayer
  46583. --------------------------------------------------------------------}
  46584. IJSXRWebGLLayer = interface(IJSObject)
  46585. ['{2EF0D9AD-C696-3FB5-8C02-4048F537982A}']
  46586. function _Getantialias: Boolean;
  46587. function _GetignoreDepthValues: Boolean;
  46588. function _Getframebuffer: IJSWebGLFramebuffer;
  46589. function _GetframebufferWidth: Cardinal;
  46590. function _GetframebufferHeight: Cardinal;
  46591. function getViewport(aView: IJSXRView): IJSXRViewport;
  46592. property antialias: Boolean read _Getantialias;
  46593. property ignoreDepthValues: Boolean read _GetignoreDepthValues;
  46594. property framebuffer: IJSWebGLFramebuffer read _Getframebuffer;
  46595. property framebufferWidth: Cardinal read _GetframebufferWidth;
  46596. property framebufferHeight: Cardinal read _GetframebufferHeight;
  46597. end;
  46598. TJSXRWebGLLayer = class(TJSObject,IJSXRWebGLLayer)
  46599. Protected
  46600. function _Getantialias: Boolean;
  46601. function _GetignoreDepthValues: Boolean;
  46602. function _Getframebuffer: IJSWebGLFramebuffer;
  46603. function _GetframebufferWidth: Cardinal;
  46604. function _GetframebufferHeight: Cardinal;
  46605. Public
  46606. constructor Create(aSession: IJSXRSession; aContext: IJSWebGL2RenderingContext; const aLayerInit: TJSXRWebGLLayerInit); overload;
  46607. constructor Create(aSession: IJSXRSession; aContext: IJSWebGLRenderingContext; const aLayerInit: TJSXRWebGLLayerInit); overload;
  46608. constructor Create(aSession: IJSXRSession; aContext: IJSWebGLRenderingContext); overload;
  46609. constructor Create(aSession: IJSXRSession; aContext: IJSWebGL2RenderingContext); overload;
  46610. function getViewport(aView: IJSXRView): IJSXRViewport; overload;
  46611. function getNativeFramebufferScaleFactor(aSession: IJSXRSession): Double; overload;
  46612. class function JSClassName: UnicodeString; override;
  46613. class function Cast(const Intf: IJSObject): IJSXRWebGLLayer;
  46614. property antialias: Boolean read _Getantialias;
  46615. property ignoreDepthValues: Boolean read _GetignoreDepthValues;
  46616. property framebuffer: IJSWebGLFramebuffer read _Getframebuffer;
  46617. property framebufferWidth: Cardinal read _GetframebufferWidth;
  46618. property framebufferHeight: Cardinal read _GetframebufferHeight;
  46619. end;
  46620. { --------------------------------------------------------------------
  46621. TJSnsIBrowserDOMWindow
  46622. --------------------------------------------------------------------}
  46623. IJSnsIBrowserDOMWindow = interface(IJSObject)
  46624. ['{7D9E6ECD-E32A-31DE-9B97-DF76A7603D1A}']
  46625. end;
  46626. TJSnsIBrowserDOMWindow = class(TJSObject,IJSnsIBrowserDOMWindow)
  46627. Protected
  46628. Public
  46629. class function JSClassName: UnicodeString; override;
  46630. class function Cast(const Intf: IJSObject): IJSnsIBrowserDOMWindow;
  46631. end;
  46632. { --------------------------------------------------------------------
  46633. TJSnsIDOMWindowUtils
  46634. --------------------------------------------------------------------}
  46635. IJSnsIDOMWindowUtils = interface(IJSObject)
  46636. ['{2B7FAA71-2156-3F28-AF6A-0EDF40F8698D}']
  46637. end;
  46638. TJSnsIDOMWindowUtils = class(TJSObject,IJSnsIDOMWindowUtils)
  46639. Protected
  46640. Public
  46641. class function JSClassName: UnicodeString; override;
  46642. class function Cast(const Intf: IJSObject): IJSnsIDOMWindowUtils;
  46643. end;
  46644. { --------------------------------------------------------------------
  46645. TJSnsIPrintSettings
  46646. --------------------------------------------------------------------}
  46647. IJSnsIPrintSettings = interface(IJSObject)
  46648. ['{84BC3276-CC8E-3E16-A193-21A81E0D8EB9}']
  46649. end;
  46650. TJSnsIPrintSettings = class(TJSObject,IJSnsIPrintSettings)
  46651. Protected
  46652. Public
  46653. class function JSClassName: UnicodeString; override;
  46654. class function Cast(const Intf: IJSObject): IJSnsIPrintSettings;
  46655. end;
  46656. { --------------------------------------------------------------------
  46657. TJSWindowSessionStorage
  46658. --------------------------------------------------------------------}
  46659. IJSWindowSessionStorage = interface(IJSObject)
  46660. ['{978F59A5-BA9C-30AE-9C23-4963F9D4721D}']
  46661. function _GetsessionStorage: IJSStorage;
  46662. property sessionStorage: IJSStorage read _GetsessionStorage;
  46663. end;
  46664. TJSWindowSessionStorage = class(TJSObject,IJSWindowSessionStorage)
  46665. Protected
  46666. function _GetsessionStorage: IJSStorage;
  46667. Public
  46668. class function JSClassName: UnicodeString; override;
  46669. class function Cast(const Intf: IJSObject): IJSWindowSessionStorage;
  46670. property sessionStorage: IJSStorage read _GetsessionStorage;
  46671. end;
  46672. { --------------------------------------------------------------------
  46673. TJSWindowLocalStorage
  46674. --------------------------------------------------------------------}
  46675. IJSWindowLocalStorage = interface(IJSObject)
  46676. ['{327EE918-DACC-37C9-B555-3EEE5FF6F080}']
  46677. function _GetlocalStorage: IJSStorage;
  46678. property localStorage: IJSStorage read _GetlocalStorage;
  46679. end;
  46680. TJSWindowLocalStorage = class(TJSObject,IJSWindowLocalStorage)
  46681. Protected
  46682. function _GetlocalStorage: IJSStorage;
  46683. Public
  46684. class function JSClassName: UnicodeString; override;
  46685. class function Cast(const Intf: IJSObject): IJSWindowLocalStorage;
  46686. property localStorage: IJSStorage read _GetlocalStorage;
  46687. end;
  46688. { --------------------------------------------------------------------
  46689. TJSWindowOrWorkerGlobalScope
  46690. --------------------------------------------------------------------}
  46691. IJSWindowOrWorkerGlobalScope = interface(IJSObject)
  46692. ['{BA538363-7E06-3AE7-A0EE-D067E1AC7076}']
  46693. function _Getorigin: UnicodeString;
  46694. function _GetcrossOriginIsolated: Boolean;
  46695. function _GetisSecureContext: Boolean;
  46696. function _GetindexedDB: IJSIDBFactory;
  46697. function _Getcaches: IJSCacheStorage;
  46698. function _Getscheduler: IJSScheduler;
  46699. function _GettrustedTypes: IJSTrustedTypePolicyFactory;
  46700. procedure reportError(const aE: Variant);
  46701. function btoa(const aBtoa: UnicodeString): UnicodeString;
  46702. function atob(const aAtob: UnicodeString): UnicodeString;
  46703. function setTimeout(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  46704. function setTimeout(const aHandler: TFunction): LongInt{; ToDo:varargs};
  46705. function setTimeout(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  46706. function setTimeout(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  46707. procedure clearTimeout(aHandle: LongInt);
  46708. procedure clearTimeout;
  46709. function setInterval(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  46710. function setInterval(const aHandler: TFunction): LongInt{; ToDo:varargs};
  46711. function setInterval(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  46712. function setInterval(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  46713. procedure clearInterval(aHandle: LongInt);
  46714. procedure clearInterval;
  46715. procedure queueMicrotask(const aCallback: TVoidFunction);
  46716. function createImageBitmap(aAImage: IJSBlob; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  46717. function createImageBitmap(const aAImage: TCanvasImageSource; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  46718. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  46719. function createImageBitmap(aAImage: IJSImageData; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  46720. function createImageBitmap(aAImage: IJSImageData): IJSPromise; // Promise<ImageBitmap>
  46721. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D): IJSPromise; // Promise<ImageBitmap>
  46722. function createImageBitmap(const aAImage: TCanvasImageSource): IJSPromise; // Promise<ImageBitmap>
  46723. function createImageBitmap(aAImage: IJSBlob): IJSPromise; // Promise<ImageBitmap>
  46724. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  46725. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  46726. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  46727. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  46728. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  46729. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  46730. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  46731. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  46732. function structuredClone(const aValue: Variant; const aOptions: TJSStructuredSerializeOptions): Variant;
  46733. function structuredClone(const aValue: Variant): Variant;
  46734. function fetch(aInput: IJSRequest; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  46735. function fetch(const aInput: UnicodeString; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  46736. function fetch(const aInput: UnicodeString): IJSPromise; // Promise<Response>
  46737. function fetch(aInput: IJSRequest): IJSPromise; // Promise<Response>
  46738. property origin: UnicodeString read _Getorigin;
  46739. property crossOriginIsolated: Boolean read _GetcrossOriginIsolated;
  46740. property isSecureContext: Boolean read _GetisSecureContext;
  46741. property indexedDB: IJSIDBFactory read _GetindexedDB;
  46742. property caches: IJSCacheStorage read _Getcaches;
  46743. property scheduler: IJSScheduler read _Getscheduler;
  46744. property trustedTypes: IJSTrustedTypePolicyFactory read _GettrustedTypes;
  46745. end;
  46746. TJSWindowOrWorkerGlobalScope = class(TJSObject,IJSWindowOrWorkerGlobalScope)
  46747. Protected
  46748. function _Getorigin: UnicodeString;
  46749. function _GetcrossOriginIsolated: Boolean;
  46750. function _GetisSecureContext: Boolean;
  46751. function _GetindexedDB: IJSIDBFactory;
  46752. function _Getcaches: IJSCacheStorage;
  46753. function _Getscheduler: IJSScheduler;
  46754. function _GettrustedTypes: IJSTrustedTypePolicyFactory;
  46755. Public
  46756. procedure reportError(const aE: Variant); overload;
  46757. function btoa(const aBtoa: UnicodeString): UnicodeString; overload;
  46758. function atob(const aAtob: UnicodeString): UnicodeString; overload;
  46759. function setTimeout(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs}; overload;
  46760. function setTimeout(const aHandler: TFunction): LongInt{; ToDo:varargs}; overload;
  46761. function setTimeout(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs}; overload;
  46762. function setTimeout(const aHandler: UnicodeString): LongInt{; ToDo:varargs}; overload;
  46763. procedure clearTimeout(aHandle: LongInt); overload;
  46764. procedure clearTimeout; overload;
  46765. function setInterval(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs}; overload;
  46766. function setInterval(const aHandler: TFunction): LongInt{; ToDo:varargs}; overload;
  46767. function setInterval(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs}; overload;
  46768. function setInterval(const aHandler: UnicodeString): LongInt{; ToDo:varargs}; overload;
  46769. procedure clearInterval(aHandle: LongInt); overload;
  46770. procedure clearInterval; overload;
  46771. procedure queueMicrotask(const aCallback: TVoidFunction); overload;
  46772. function createImageBitmap(aAImage: IJSBlob; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  46773. function createImageBitmap(const aAImage: TCanvasImageSource; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  46774. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  46775. function createImageBitmap(aAImage: IJSImageData; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  46776. function createImageBitmap(aAImage: IJSImageData): IJSPromise; overload; // Promise<ImageBitmap>
  46777. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D): IJSPromise; overload; // Promise<ImageBitmap>
  46778. function createImageBitmap(const aAImage: TCanvasImageSource): IJSPromise; overload; // Promise<ImageBitmap>
  46779. function createImageBitmap(aAImage: IJSBlob): IJSPromise; overload; // Promise<ImageBitmap>
  46780. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  46781. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  46782. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  46783. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  46784. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  46785. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  46786. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  46787. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  46788. function structuredClone(const aValue: Variant; const aOptions: TJSStructuredSerializeOptions): Variant; overload;
  46789. function structuredClone(const aValue: Variant): Variant; overload;
  46790. function fetch(aInput: IJSRequest; const aInit: TJSRequestInit): IJSPromise; overload; // Promise<Response>
  46791. function fetch(const aInput: UnicodeString; const aInit: TJSRequestInit): IJSPromise; overload; // Promise<Response>
  46792. function fetch(const aInput: UnicodeString): IJSPromise; overload; // Promise<Response>
  46793. function fetch(aInput: IJSRequest): IJSPromise; overload; // Promise<Response>
  46794. class function JSClassName: UnicodeString; override;
  46795. class function Cast(const Intf: IJSObject): IJSWindowOrWorkerGlobalScope;
  46796. property origin: UnicodeString read _Getorigin;
  46797. property crossOriginIsolated: Boolean read _GetcrossOriginIsolated;
  46798. property isSecureContext: Boolean read _GetisSecureContext;
  46799. property indexedDB: IJSIDBFactory read _GetindexedDB;
  46800. property caches: IJSCacheStorage read _Getcaches;
  46801. property scheduler: IJSScheduler read _Getscheduler;
  46802. property trustedTypes: IJSTrustedTypePolicyFactory read _GettrustedTypes;
  46803. end;
  46804. { --------------------------------------------------------------------
  46805. TJSWorkerLocation
  46806. --------------------------------------------------------------------}
  46807. IJSWorkerLocation = interface(IJSObject)
  46808. ['{D143EEAC-0746-3910-A4F4-485B01C78D43}']
  46809. function _Gethref: UnicodeString;
  46810. function _Getorigin: UnicodeString;
  46811. function _Getprotocol: UnicodeString;
  46812. function _Gethost: UnicodeString;
  46813. function _Gethostname: UnicodeString;
  46814. function _Getport: UnicodeString;
  46815. function _Getpathname: UnicodeString;
  46816. function _Getsearch: UnicodeString;
  46817. function _Gethash: UnicodeString;
  46818. property href: UnicodeString read _Gethref;
  46819. property origin: UnicodeString read _Getorigin;
  46820. property protocol: UnicodeString read _Getprotocol;
  46821. property host: UnicodeString read _Gethost;
  46822. property hostname: UnicodeString read _Gethostname;
  46823. property port: UnicodeString read _Getport;
  46824. property pathname: UnicodeString read _Getpathname;
  46825. property search: UnicodeString read _Getsearch;
  46826. property hash: UnicodeString read _Gethash;
  46827. end;
  46828. TJSWorkerLocation = class(TJSObject,IJSWorkerLocation)
  46829. Protected
  46830. function _Gethref: UnicodeString;
  46831. function _Getorigin: UnicodeString;
  46832. function _Getprotocol: UnicodeString;
  46833. function _Gethost: UnicodeString;
  46834. function _Gethostname: UnicodeString;
  46835. function _Getport: UnicodeString;
  46836. function _Getpathname: UnicodeString;
  46837. function _Getsearch: UnicodeString;
  46838. function _Gethash: UnicodeString;
  46839. Public
  46840. class function JSClassName: UnicodeString; override;
  46841. class function Cast(const Intf: IJSObject): IJSWorkerLocation;
  46842. property href: UnicodeString read _Gethref;
  46843. property origin: UnicodeString read _Getorigin;
  46844. property protocol: UnicodeString read _Getprotocol;
  46845. property host: UnicodeString read _Gethost;
  46846. property hostname: UnicodeString read _Gethostname;
  46847. property port: UnicodeString read _Getport;
  46848. property pathname: UnicodeString read _Getpathname;
  46849. property search: UnicodeString read _Getsearch;
  46850. property hash: UnicodeString read _Gethash;
  46851. end;
  46852. { --------------------------------------------------------------------
  46853. TJSWorkerNavigator
  46854. --------------------------------------------------------------------}
  46855. IJSWorkerNavigator = interface(IJSObject)
  46856. ['{65DC02B6-1C12-3653-B2D1-B699EE7A7991}']
  46857. function _Getconnection: IJSNetworkInformation;
  46858. function _GetmediaCapabilities: IJSMediaCapabilities;
  46859. function _GetappCodeName: UnicodeString;
  46860. function _GetappName: UnicodeString;
  46861. function _GetappVersion: UnicodeString;
  46862. function _Getplatform: UnicodeString;
  46863. function _GetuserAgent: UnicodeString;
  46864. function _Getproduct: UnicodeString;
  46865. function _Getlanguage: UnicodeString;
  46866. function _Getlanguages: TUnicodeStringDynArray;
  46867. function _GetonLine: Boolean;
  46868. function _GethardwareConcurrency: QWord;
  46869. function _Getstorage: IJSStorageManager;
  46870. function _GetglobalPrivacyControl: Boolean;
  46871. function _Getlocks: IJSLockManager;
  46872. function _Getgpu: IJSGPU;
  46873. function taintEnabled: Boolean;
  46874. property connection: IJSNetworkInformation read _Getconnection;
  46875. property mediaCapabilities: IJSMediaCapabilities read _GetmediaCapabilities;
  46876. property appCodeName: UnicodeString read _GetappCodeName;
  46877. property appName: UnicodeString read _GetappName;
  46878. property appVersion: UnicodeString read _GetappVersion;
  46879. property platform: UnicodeString read _Getplatform;
  46880. property userAgent: UnicodeString read _GetuserAgent;
  46881. property product: UnicodeString read _Getproduct;
  46882. property language: UnicodeString read _Getlanguage;
  46883. property languages: TUnicodeStringDynArray read _Getlanguages;
  46884. property onLine: Boolean read _GetonLine;
  46885. property hardwareConcurrency: QWord read _GethardwareConcurrency;
  46886. property storage: IJSStorageManager read _Getstorage;
  46887. property globalPrivacyControl: Boolean read _GetglobalPrivacyControl;
  46888. property locks: IJSLockManager read _Getlocks;
  46889. property gpu: IJSGPU read _Getgpu;
  46890. end;
  46891. TJSWorkerNavigator = class(TJSObject,IJSWorkerNavigator)
  46892. Protected
  46893. function _Getconnection: IJSNetworkInformation;
  46894. function _GetmediaCapabilities: IJSMediaCapabilities;
  46895. function _GetappCodeName: UnicodeString;
  46896. function _GetappName: UnicodeString;
  46897. function _GetappVersion: UnicodeString;
  46898. function _Getplatform: UnicodeString;
  46899. function _GetuserAgent: UnicodeString;
  46900. function _Getproduct: UnicodeString;
  46901. function _Getlanguage: UnicodeString;
  46902. function _Getlanguages: TUnicodeStringDynArray;
  46903. function _GetonLine: Boolean;
  46904. function _GethardwareConcurrency: QWord;
  46905. function _Getstorage: IJSStorageManager;
  46906. function _GetglobalPrivacyControl: Boolean;
  46907. function _Getlocks: IJSLockManager;
  46908. function _Getgpu: IJSGPU;
  46909. Public
  46910. function taintEnabled: Boolean; overload;
  46911. class function JSClassName: UnicodeString; override;
  46912. class function Cast(const Intf: IJSObject): IJSWorkerNavigator;
  46913. property connection: IJSNetworkInformation read _Getconnection;
  46914. property mediaCapabilities: IJSMediaCapabilities read _GetmediaCapabilities;
  46915. property appCodeName: UnicodeString read _GetappCodeName;
  46916. property appName: UnicodeString read _GetappName;
  46917. property appVersion: UnicodeString read _GetappVersion;
  46918. property platform: UnicodeString read _Getplatform;
  46919. property userAgent: UnicodeString read _GetuserAgent;
  46920. property product: UnicodeString read _Getproduct;
  46921. property language: UnicodeString read _Getlanguage;
  46922. property languages: TUnicodeStringDynArray read _Getlanguages;
  46923. property onLine: Boolean read _GetonLine;
  46924. property hardwareConcurrency: QWord read _GethardwareConcurrency;
  46925. property storage: IJSStorageManager read _Getstorage;
  46926. property globalPrivacyControl: Boolean read _GetglobalPrivacyControl;
  46927. property locks: IJSLockManager read _Getlocks;
  46928. property gpu: IJSGPU read _Getgpu;
  46929. end;
  46930. { --------------------------------------------------------------------
  46931. TJSWorklet
  46932. --------------------------------------------------------------------}
  46933. IJSWorklet = interface(IJSObject)
  46934. ['{BE804729-1FA3-357A-8071-62A241194965}']
  46935. function addModule(const aModuleURL: UnicodeString; const aOptions: TJSWorkletOptions): IJSPromise; // Promise<undefined>
  46936. function addModule(const aModuleURL: UnicodeString): IJSPromise; // Promise<undefined>
  46937. end;
  46938. TJSWorklet = class(TJSObject,IJSWorklet)
  46939. Protected
  46940. Public
  46941. function addModule(const aModuleURL: UnicodeString; const aOptions: TJSWorkletOptions): IJSPromise; overload; // Promise<undefined>
  46942. function addModule(const aModuleURL: UnicodeString): IJSPromise; overload; // Promise<undefined>
  46943. class function JSClassName: UnicodeString; override;
  46944. class function Cast(const Intf: IJSObject): IJSWorklet;
  46945. end;
  46946. { --------------------------------------------------------------------
  46947. TJSWorkletGlobalScope
  46948. --------------------------------------------------------------------}
  46949. IJSWorkletGlobalScope = interface(IJSObject)
  46950. ['{C8B44BD8-FEDC-3EBF-BECD-5B4BEEFC4463}']
  46951. procedure dump(const aStr: UnicodeString);
  46952. procedure dump;
  46953. end;
  46954. TJSWorkletGlobalScope = class(TJSObject,IJSWorkletGlobalScope)
  46955. Protected
  46956. Public
  46957. procedure dump(const aStr: UnicodeString); overload;
  46958. procedure dump; overload;
  46959. class function JSClassName: UnicodeString; override;
  46960. class function Cast(const Intf: IJSObject): IJSWorkletGlobalScope;
  46961. end;
  46962. { --------------------------------------------------------------------
  46963. TJSWritableStream
  46964. --------------------------------------------------------------------}
  46965. IJSWritableStream = interface(IJSObject)
  46966. ['{43995D92-3780-33F1-B9F8-1BEA2C85B60E}']
  46967. function _Getlocked: Boolean;
  46968. function abort(const aReason: Variant): IJSPromise; // Promise<undefined>
  46969. function abort: IJSPromise; // Promise<undefined>
  46970. function close: IJSPromise; // Promise<undefined>
  46971. function getWriter: IJSWritableStreamDefaultWriter;
  46972. property locked: Boolean read _Getlocked;
  46973. end;
  46974. TJSWritableStream = class(TJSObject,IJSWritableStream)
  46975. Protected
  46976. function _Getlocked: Boolean;
  46977. Public
  46978. constructor Create(aUnderlyingSink: IJSObject; const aStrategy: TJSQueuingStrategy); overload;
  46979. constructor Create; overload;
  46980. constructor Create(aUnderlyingSink: IJSObject); overload;
  46981. function abort(const aReason: Variant): IJSPromise; overload; // Promise<undefined>
  46982. function abort: IJSPromise; overload; // Promise<undefined>
  46983. function close: IJSPromise; overload; // Promise<undefined>
  46984. function getWriter: IJSWritableStreamDefaultWriter; overload;
  46985. class function JSClassName: UnicodeString; override;
  46986. class function Cast(const Intf: IJSObject): IJSWritableStream;
  46987. property locked: Boolean read _Getlocked;
  46988. end;
  46989. { --------------------------------------------------------------------
  46990. TJSWritableStreamDefaultController
  46991. --------------------------------------------------------------------}
  46992. IJSWritableStreamDefaultController = interface(IJSObject)
  46993. ['{ABCBD009-8478-346E-85DE-72A463CABDF3}']
  46994. function _Getsignal: IJSAbortSignal;
  46995. procedure error(const aE: Variant);
  46996. procedure error;
  46997. property signal: IJSAbortSignal read _Getsignal;
  46998. end;
  46999. TJSWritableStreamDefaultController = class(TJSObject,IJSWritableStreamDefaultController)
  47000. Protected
  47001. function _Getsignal: IJSAbortSignal;
  47002. Public
  47003. procedure error(const aE: Variant); overload;
  47004. procedure error; overload;
  47005. class function JSClassName: UnicodeString; override;
  47006. class function Cast(const Intf: IJSObject): IJSWritableStreamDefaultController;
  47007. property signal: IJSAbortSignal read _Getsignal;
  47008. end;
  47009. { --------------------------------------------------------------------
  47010. TJSWritableStreamDefaultWriter
  47011. --------------------------------------------------------------------}
  47012. IJSWritableStreamDefaultWriter = interface(IJSObject)
  47013. ['{82354902-76A9-327D-A66D-63D8BE46D535}']
  47014. function _Getclosed: IJSPromise;
  47015. function _GetdesiredSize: Double;
  47016. function _Getready: IJSPromise;
  47017. function abort(const aReason: Variant): IJSPromise; // Promise<undefined>
  47018. function abort: IJSPromise; // Promise<undefined>
  47019. function close: IJSPromise; // Promise<undefined>
  47020. procedure releaseLock;
  47021. function write(const aChunk: Variant): IJSPromise; // Promise<undefined>
  47022. function write: IJSPromise; // Promise<undefined>
  47023. property closed: IJSPromise read _Getclosed;
  47024. property desiredSize: Double read _GetdesiredSize;
  47025. property ready: IJSPromise read _Getready;
  47026. end;
  47027. TJSWritableStreamDefaultWriter = class(TJSObject,IJSWritableStreamDefaultWriter)
  47028. Protected
  47029. function _Getclosed: IJSPromise;
  47030. function _GetdesiredSize: Double;
  47031. function _Getready: IJSPromise;
  47032. Public
  47033. constructor Create(aStream: IJSWritableStream); overload;
  47034. function abort(const aReason: Variant): IJSPromise; overload; // Promise<undefined>
  47035. function abort: IJSPromise; overload; // Promise<undefined>
  47036. function close: IJSPromise; overload; // Promise<undefined>
  47037. procedure releaseLock; overload;
  47038. function write(const aChunk: Variant): IJSPromise; overload; // Promise<undefined>
  47039. function write: IJSPromise; overload; // Promise<undefined>
  47040. class function JSClassName: UnicodeString; override;
  47041. class function Cast(const Intf: IJSObject): IJSWritableStreamDefaultWriter;
  47042. property closed: IJSPromise read _Getclosed;
  47043. property desiredSize: Double read _GetdesiredSize;
  47044. property ready: IJSPromise read _Getready;
  47045. end;
  47046. { --------------------------------------------------------------------
  47047. TJSMozChannel
  47048. --------------------------------------------------------------------}
  47049. IJSMozChannel = interface(IJSObject)
  47050. ['{F0F3CF1A-08CD-3886-87C0-636E89A48332}']
  47051. end;
  47052. TJSMozChannel = class(TJSObject,IJSMozChannel)
  47053. Protected
  47054. Public
  47055. class function JSClassName: UnicodeString; override;
  47056. class function Cast(const Intf: IJSObject): IJSMozChannel;
  47057. end;
  47058. { --------------------------------------------------------------------
  47059. TJSOutputStream
  47060. --------------------------------------------------------------------}
  47061. IJSOutputStream = interface(IJSObject)
  47062. ['{E6CEDC0D-A004-39FB-91C0-F0D81AA2A621}']
  47063. end;
  47064. TJSOutputStream = class(TJSObject,IJSOutputStream)
  47065. Protected
  47066. Public
  47067. class function JSClassName: UnicodeString; override;
  47068. class function Cast(const Intf: IJSObject): IJSOutputStream;
  47069. end;
  47070. { --------------------------------------------------------------------
  47071. TJSXMLSerializer
  47072. --------------------------------------------------------------------}
  47073. IJSXMLSerializer = interface(IJSObject)
  47074. ['{E455C202-4085-333C-85DD-A6BF45AADFDF}']
  47075. function serializeToString(aRoot: IJSNode): UnicodeString;
  47076. end;
  47077. TJSXMLSerializer = class(TJSObject,IJSXMLSerializer)
  47078. Protected
  47079. Public
  47080. constructor Create; overload;
  47081. function serializeToString(aRoot: IJSNode): UnicodeString; overload;
  47082. class function JSClassName: UnicodeString; override;
  47083. class function Cast(const Intf: IJSObject): IJSXMLSerializer;
  47084. end;
  47085. { --------------------------------------------------------------------
  47086. TJSXPathEvaluatorMixin
  47087. --------------------------------------------------------------------}
  47088. IJSXPathEvaluatorMixin = interface(IJSObject)
  47089. ['{D453E68E-8D1E-3B63-88A8-FA0CFCC91349}']
  47090. function createExpression(const aExpression: UnicodeString; const aResolver: TXPathNSResolver): IJSXPathExpression;
  47091. function createExpression(const aExpression: UnicodeString): IJSXPathExpression;
  47092. function createNSResolver(aNodeResolver: IJSNode): IJSNode;
  47093. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word; aResult: IJSObject): IJSXPathResult;
  47094. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode): IJSXPathResult;
  47095. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver): IJSXPathResult;
  47096. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word): IJSXPathResult;
  47097. end;
  47098. TJSXPathEvaluatorMixin = class(TJSObject,IJSXPathEvaluatorMixin)
  47099. Protected
  47100. Public
  47101. function createExpression(const aExpression: UnicodeString; const aResolver: TXPathNSResolver): IJSXPathExpression; overload;
  47102. function createExpression(const aExpression: UnicodeString): IJSXPathExpression; overload;
  47103. function createNSResolver(aNodeResolver: IJSNode): IJSNode; overload;
  47104. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word; aResult: IJSObject): IJSXPathResult; overload;
  47105. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode): IJSXPathResult; overload;
  47106. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver): IJSXPathResult; overload;
  47107. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word): IJSXPathResult; overload;
  47108. class function JSClassName: UnicodeString; override;
  47109. class function Cast(const Intf: IJSObject): IJSXPathEvaluatorMixin;
  47110. end;
  47111. { --------------------------------------------------------------------
  47112. TJSXPathExpression
  47113. --------------------------------------------------------------------}
  47114. IJSXPathExpression = interface(IJSObject)
  47115. ['{9ED14D9B-7B26-3FDA-A1C0-64BCF2A65911}']
  47116. function evaluate(aContextNode: IJSNode; aType_: Word; aResult: IJSObject): IJSXPathResult;
  47117. function evaluate(aContextNode: IJSNode): IJSXPathResult;
  47118. function evaluate(aContextNode: IJSNode; aType_: Word): IJSXPathResult;
  47119. end;
  47120. TJSXPathExpression = class(TJSObject,IJSXPathExpression)
  47121. Protected
  47122. Public
  47123. function evaluate(aContextNode: IJSNode; aType_: Word; aResult: IJSObject): IJSXPathResult; overload;
  47124. function evaluate(aContextNode: IJSNode): IJSXPathResult; overload;
  47125. function evaluate(aContextNode: IJSNode; aType_: Word): IJSXPathResult; overload;
  47126. class function JSClassName: UnicodeString; override;
  47127. class function Cast(const Intf: IJSObject): IJSXPathExpression;
  47128. end;
  47129. { --------------------------------------------------------------------
  47130. TJSXPathResult
  47131. --------------------------------------------------------------------}
  47132. IJSXPathResult = interface(IJSObject)
  47133. ['{376C660B-EC56-3465-94B2-5242359043A6}']
  47134. function _GetresultType: Word;
  47135. function _GetnumberValue: Double;
  47136. function _GetstringValue: UnicodeString;
  47137. function _GetbooleanValue: Boolean;
  47138. function _GetsingleNodeValue: IJSNode;
  47139. function _GetinvalidIteratorState: Boolean;
  47140. function _GetsnapshotLength: Cardinal;
  47141. function iterateNext: IJSNode;
  47142. function snapshotItem(aIndex: Cardinal): IJSNode;
  47143. property resultType: Word read _GetresultType;
  47144. property numberValue: Double read _GetnumberValue;
  47145. property stringValue: UnicodeString read _GetstringValue;
  47146. property booleanValue: Boolean read _GetbooleanValue;
  47147. property singleNodeValue: IJSNode read _GetsingleNodeValue;
  47148. property invalidIteratorState: Boolean read _GetinvalidIteratorState;
  47149. property snapshotLength: Cardinal read _GetsnapshotLength;
  47150. end;
  47151. TJSXPathResult = class(TJSObject,IJSXPathResult)
  47152. Protected
  47153. function _GetresultType: Word;
  47154. function _GetnumberValue: Double;
  47155. function _GetstringValue: UnicodeString;
  47156. function _GetbooleanValue: Boolean;
  47157. function _GetsingleNodeValue: IJSNode;
  47158. function _GetinvalidIteratorState: Boolean;
  47159. function _GetsnapshotLength: Cardinal;
  47160. Public
  47161. Const
  47162. ANY_TYPE = 0;
  47163. NUMBER_TYPE = 1;
  47164. STRING_TYPE = 2;
  47165. BOOLEAN_TYPE = 3;
  47166. UNORDERED_NODE_ITERATOR_TYPE = 4;
  47167. ORDERED_NODE_ITERATOR_TYPE = 5;
  47168. UNORDERED_NODE_SNAPSHOT_TYPE = 6;
  47169. ORDERED_NODE_SNAPSHOT_TYPE = 7;
  47170. ANY_UNORDERED_NODE_TYPE = 8;
  47171. FIRST_ORDERED_NODE_TYPE = 9;
  47172. Public
  47173. function iterateNext: IJSNode; overload;
  47174. function snapshotItem(aIndex: Cardinal): IJSNode; overload;
  47175. class function JSClassName: UnicodeString; override;
  47176. class function Cast(const Intf: IJSObject): IJSXPathResult;
  47177. property resultType: Word read _GetresultType;
  47178. property numberValue: Double read _GetnumberValue;
  47179. property stringValue: UnicodeString read _GetstringValue;
  47180. property booleanValue: Boolean read _GetbooleanValue;
  47181. property singleNodeValue: IJSNode read _GetsingleNodeValue;
  47182. property invalidIteratorState: Boolean read _GetinvalidIteratorState;
  47183. property snapshotLength: Cardinal read _GetsnapshotLength;
  47184. end;
  47185. { --------------------------------------------------------------------
  47186. TJSXSLTProcessor
  47187. --------------------------------------------------------------------}
  47188. TIJSNodeDynArray = IJSArray; // array of Node
  47189. IJSXSLTProcessor = interface(IJSObject)
  47190. ['{AB1EE2FC-9053-3BA0-B1B0-CB391D2B529D}']
  47191. procedure importStylesheet(aStyle: IJSNode);
  47192. function transformToFragment(aSource: IJSNode; aOutput: IJSDocument): IJSDocumentFragment;
  47193. function transformToDocument(aSource: IJSNode): IJSDocument;
  47194. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: Boolean);
  47195. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; const aValue: UnicodeString);
  47196. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: IJSNode);
  47197. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; const aValue: TIJSNodeDynArray);
  47198. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: Double);
  47199. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: IJSXPathResult);
  47200. function getParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): TXSLTParameterValue;
  47201. procedure removeParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString);
  47202. procedure clearParameters;
  47203. procedure reset;
  47204. end;
  47205. TJSXSLTProcessor = class(TJSObject,IJSXSLTProcessor)
  47206. Protected
  47207. Public
  47208. constructor Create; overload;
  47209. procedure importStylesheet(aStyle: IJSNode); overload;
  47210. function transformToFragment(aSource: IJSNode; aOutput: IJSDocument): IJSDocumentFragment; overload;
  47211. function transformToDocument(aSource: IJSNode): IJSDocument; overload;
  47212. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: Boolean); overload;
  47213. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; const aValue: UnicodeString); overload;
  47214. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: IJSNode); overload;
  47215. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; const aValue: TIJSNodeDynArray); overload;
  47216. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: Double); overload;
  47217. procedure setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: IJSXPathResult); overload;
  47218. function getParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): TXSLTParameterValue; overload;
  47219. procedure removeParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString); overload;
  47220. procedure clearParameters; overload;
  47221. procedure reset; overload;
  47222. class function JSClassName: UnicodeString; override;
  47223. class function Cast(const Intf: IJSObject): IJSXSLTProcessor;
  47224. end;
  47225. { --------------------------------------------------------------------
  47226. TJSAbortSignal
  47227. --------------------------------------------------------------------}
  47228. TJSAbortSignalDynArray = IJSArray; // array of AbortSignal
  47229. IJSAbortSignal = interface(IJSEventTarget)
  47230. ['{1EF8713E-033B-3A7C-A9E1-6F6406504E92}']
  47231. function _Getaborted: Boolean;
  47232. function _Getreason: Variant;
  47233. function _Getonabort: TEventHandler;
  47234. procedure _Setonabort(const aValue: TEventHandler);
  47235. procedure throwIfAborted;
  47236. property aborted: Boolean read _Getaborted;
  47237. property reason: Variant read _Getreason;
  47238. property onabort: TEventHandler read _Getonabort write _Setonabort;
  47239. end;
  47240. TJSAbortSignal = class(TJSEventTarget,IJSAbortSignal)
  47241. Protected
  47242. function _Getaborted: Boolean;
  47243. function _Getreason: Variant;
  47244. function _Getonabort: TEventHandler;
  47245. procedure _Setonabort(const aValue: TEventHandler);
  47246. Public
  47247. function abort(const aReason: Variant): IJSAbortSignal; overload;
  47248. function abort: IJSAbortSignal; overload;
  47249. function timeout(aMilliseconds: QWord): IJSAbortSignal; overload;
  47250. function any(const aSignals: TJSAbortSignalDynArray): IJSAbortSignal; overload;
  47251. procedure throwIfAborted; overload;
  47252. class function JSClassName: UnicodeString; override;
  47253. class function Cast(const Intf: IJSObject): IJSAbortSignal;
  47254. property aborted: Boolean read _Getaborted;
  47255. property reason: Variant read _Getreason;
  47256. property onabort: TEventHandler read _Getonabort write _Setonabort;
  47257. end;
  47258. { --------------------------------------------------------------------
  47259. TJSAddonEvent
  47260. --------------------------------------------------------------------}
  47261. IJSAddonEvent = interface(IJSEvent)
  47262. ['{7C73E5C2-DB9A-36CB-81F4-C2D85E32C6D5}']
  47263. function _Getid: UnicodeString;
  47264. property id: UnicodeString read _Getid;
  47265. end;
  47266. TJSAddonEvent = class(TJSEvent,IJSAddonEvent)
  47267. Protected
  47268. function _Getid: UnicodeString;
  47269. Public
  47270. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSAddonEventInit); overload;
  47271. class function JSClassName: UnicodeString; override;
  47272. class function Cast(const Intf: IJSObject): IJSAddonEvent;
  47273. property id: UnicodeString read _Getid;
  47274. end;
  47275. { --------------------------------------------------------------------
  47276. TJSAddonManager
  47277. --------------------------------------------------------------------}
  47278. IJSAddonManager = interface(IJSEventTarget)
  47279. ['{B4E8F4D1-D886-34FB-9218-FAC83570BBAE}']
  47280. function _GetabuseReportPanelEnabled: Boolean;
  47281. function getAddonByID(const aId: UnicodeString): IJSPromise; // Promise<Addon>
  47282. function createInstall(const aOptions: TJSaddonInstallOptions): IJSPromise; // Promise<AddonInstall>
  47283. function createInstall: IJSPromise; // Promise<AddonInstall>
  47284. function reportAbuse(const aId: UnicodeString): IJSPromise; // Promise<boolean>
  47285. property abuseReportPanelEnabled: Boolean read _GetabuseReportPanelEnabled;
  47286. end;
  47287. TJSAddonManager = class(TJSEventTarget,IJSAddonManager)
  47288. Protected
  47289. function _GetabuseReportPanelEnabled: Boolean;
  47290. Public
  47291. function getAddonByID(const aId: UnicodeString): IJSPromise; overload; // Promise<Addon>
  47292. function createInstall(const aOptions: TJSaddonInstallOptions): IJSPromise; overload; // Promise<AddonInstall>
  47293. function createInstall: IJSPromise; overload; // Promise<AddonInstall>
  47294. function reportAbuse(const aId: UnicodeString): IJSPromise; overload; // Promise<boolean>
  47295. class function JSClassName: UnicodeString; override;
  47296. class function Cast(const Intf: IJSObject): IJSAddonManager;
  47297. property abuseReportPanelEnabled: Boolean read _GetabuseReportPanelEnabled;
  47298. end;
  47299. { --------------------------------------------------------------------
  47300. TJSAnimation
  47301. --------------------------------------------------------------------}
  47302. IJSAnimation = interface(IJSEventTarget)
  47303. ['{59BCE942-9DFA-3857-A73B-22D9BF6A48B6}']
  47304. function _Getid: UnicodeString;
  47305. function _Geteffect: IJSAnimationEffect;
  47306. function _Gettimeline: IJSAnimationTimeline;
  47307. function _GetstartTime: Double;
  47308. function _GetcurrentTime: Double;
  47309. function _GetplaybackRate: Double;
  47310. function _GetplayState: TAnimationPlayState;
  47311. function _Getpending: Boolean;
  47312. function _GetreplaceState: TAnimationReplaceState;
  47313. function _Getready: IJSPromise;
  47314. function _Getfinished: IJSPromise;
  47315. function _Getonfinish: TEventHandler;
  47316. function _Getoncancel: TEventHandler;
  47317. function _Getonremove: TEventHandler;
  47318. procedure _Setid(const aValue: UnicodeString);
  47319. procedure _Seteffect(const aValue: IJSAnimationEffect);
  47320. procedure _Settimeline(const aValue: IJSAnimationTimeline);
  47321. procedure _SetstartTime(const aValue: Double);
  47322. procedure _SetcurrentTime(const aValue: Double);
  47323. procedure _SetplaybackRate(const aValue: Double);
  47324. procedure _Setonfinish(const aValue: TEventHandler);
  47325. procedure _Setoncancel(const aValue: TEventHandler);
  47326. procedure _Setonremove(const aValue: TEventHandler);
  47327. procedure cancel;
  47328. procedure finish;
  47329. procedure play;
  47330. procedure pause;
  47331. procedure updatePlaybackRate(aPlaybackRate: Double);
  47332. procedure reverse;
  47333. procedure persist;
  47334. procedure commitStyles;
  47335. property id: UnicodeString read _Getid write _Setid;
  47336. property effect: IJSAnimationEffect read _Geteffect write _Seteffect;
  47337. property timeline: IJSAnimationTimeline read _Gettimeline write _Settimeline;
  47338. property startTime: Double read _GetstartTime write _SetstartTime;
  47339. property currentTime: Double read _GetcurrentTime write _SetcurrentTime;
  47340. property playbackRate: Double read _GetplaybackRate write _SetplaybackRate;
  47341. property playState: TAnimationPlayState read _GetplayState;
  47342. property pending: Boolean read _Getpending;
  47343. property replaceState: TAnimationReplaceState read _GetreplaceState;
  47344. property ready: IJSPromise read _Getready;
  47345. property finished: IJSPromise read _Getfinished;
  47346. property onfinish: TEventHandler read _Getonfinish write _Setonfinish;
  47347. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  47348. property onremove: TEventHandler read _Getonremove write _Setonremove;
  47349. end;
  47350. TJSAnimation = class(TJSEventTarget,IJSAnimation)
  47351. Protected
  47352. function _Getid: UnicodeString;
  47353. function _Geteffect: IJSAnimationEffect;
  47354. function _Gettimeline: IJSAnimationTimeline;
  47355. function _GetstartTime: Double;
  47356. function _GetcurrentTime: Double;
  47357. function _GetplaybackRate: Double;
  47358. function _GetplayState: TAnimationPlayState;
  47359. function _Getpending: Boolean;
  47360. function _GetreplaceState: TAnimationReplaceState;
  47361. function _Getready: IJSPromise;
  47362. function _Getfinished: IJSPromise;
  47363. function _Getonfinish: TEventHandler;
  47364. function _Getoncancel: TEventHandler;
  47365. function _Getonremove: TEventHandler;
  47366. procedure _Setid(const aValue: UnicodeString);
  47367. procedure _Seteffect(const aValue: IJSAnimationEffect);
  47368. procedure _Settimeline(const aValue: IJSAnimationTimeline);
  47369. procedure _SetstartTime(const aValue: Double);
  47370. procedure _SetcurrentTime(const aValue: Double);
  47371. procedure _SetplaybackRate(const aValue: Double);
  47372. procedure _Setonfinish(const aValue: TEventHandler);
  47373. procedure _Setoncancel(const aValue: TEventHandler);
  47374. procedure _Setonremove(const aValue: TEventHandler);
  47375. Public
  47376. constructor Create(aEffect: IJSAnimationEffect; aTimeline: IJSAnimationTimeline); overload;
  47377. constructor Create; overload;
  47378. constructor Create(aEffect: IJSAnimationEffect); overload;
  47379. procedure cancel; overload;
  47380. procedure finish; overload;
  47381. procedure play; overload;
  47382. procedure pause; overload;
  47383. procedure updatePlaybackRate(aPlaybackRate: Double); overload;
  47384. procedure reverse; overload;
  47385. procedure persist; overload;
  47386. procedure commitStyles; overload;
  47387. class function JSClassName: UnicodeString; override;
  47388. class function Cast(const Intf: IJSObject): IJSAnimation;
  47389. property id: UnicodeString read _Getid write _Setid;
  47390. property effect: IJSAnimationEffect read _Geteffect write _Seteffect;
  47391. property timeline: IJSAnimationTimeline read _Gettimeline write _Settimeline;
  47392. property startTime: Double read _GetstartTime write _SetstartTime;
  47393. property currentTime: Double read _GetcurrentTime write _SetcurrentTime;
  47394. property playbackRate: Double read _GetplaybackRate write _SetplaybackRate;
  47395. property playState: TAnimationPlayState read _GetplayState;
  47396. property pending: Boolean read _Getpending;
  47397. property replaceState: TAnimationReplaceState read _GetreplaceState;
  47398. property ready: IJSPromise read _Getready;
  47399. property finished: IJSPromise read _Getfinished;
  47400. property onfinish: TEventHandler read _Getonfinish write _Setonfinish;
  47401. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  47402. property onremove: TEventHandler read _Getonremove write _Setonremove;
  47403. end;
  47404. { --------------------------------------------------------------------
  47405. TJSAnimationEvent
  47406. --------------------------------------------------------------------}
  47407. IJSAnimationEvent = interface(IJSEvent)
  47408. ['{BC4B03CA-46C6-3DAF-991B-B4FFCC0CF752}']
  47409. function _GetanimationName: UnicodeString;
  47410. function _GetelapsedTime: Single;
  47411. function _GetpseudoElement: UnicodeString;
  47412. property animationName: UnicodeString read _GetanimationName;
  47413. property elapsedTime: Single read _GetelapsedTime;
  47414. property pseudoElement: UnicodeString read _GetpseudoElement;
  47415. end;
  47416. TJSAnimationEvent = class(TJSEvent,IJSAnimationEvent)
  47417. Protected
  47418. function _GetanimationName: UnicodeString;
  47419. function _GetelapsedTime: Single;
  47420. function _GetpseudoElement: UnicodeString;
  47421. Public
  47422. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSAnimationEventInit); overload;
  47423. constructor Create(const aType_: UnicodeString); overload;
  47424. class function JSClassName: UnicodeString; override;
  47425. class function Cast(const Intf: IJSObject): IJSAnimationEvent;
  47426. property animationName: UnicodeString read _GetanimationName;
  47427. property elapsedTime: Single read _GetelapsedTime;
  47428. property pseudoElement: UnicodeString read _GetpseudoElement;
  47429. end;
  47430. { --------------------------------------------------------------------
  47431. TJSAnimationPlaybackEvent
  47432. --------------------------------------------------------------------}
  47433. IJSAnimationPlaybackEvent = interface(IJSEvent)
  47434. ['{E0257C71-380D-39B1-9B0F-4136B36AA7DF}']
  47435. function _GetcurrentTime: Double;
  47436. function _GettimelineTime: Double;
  47437. property currentTime: Double read _GetcurrentTime;
  47438. property timelineTime: Double read _GettimelineTime;
  47439. end;
  47440. TJSAnimationPlaybackEvent = class(TJSEvent,IJSAnimationPlaybackEvent)
  47441. Protected
  47442. function _GetcurrentTime: Double;
  47443. function _GettimelineTime: Double;
  47444. Public
  47445. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSAnimationPlaybackEventInit); overload;
  47446. constructor Create(const aType_: UnicodeString); overload;
  47447. class function JSClassName: UnicodeString; override;
  47448. class function Cast(const Intf: IJSObject): IJSAnimationPlaybackEvent;
  47449. property currentTime: Double read _GetcurrentTime;
  47450. property timelineTime: Double read _GettimelineTime;
  47451. end;
  47452. { --------------------------------------------------------------------
  47453. TJSAudioDecoder
  47454. --------------------------------------------------------------------}
  47455. IJSAudioDecoder = interface(IJSEventTarget)
  47456. ['{72FFEED1-BD7A-3462-A2CC-DF999EFD8C2E}']
  47457. function _Getstate: TCodecState;
  47458. function _GetdecodeQueueSize: Cardinal;
  47459. function _Getondequeue: TEventHandler;
  47460. procedure _Setondequeue(const aValue: TEventHandler);
  47461. procedure configure(const aConfig: TJSAudioDecoderConfig);
  47462. procedure decode(aChunk: IJSEncodedAudioChunk);
  47463. function flush: IJSPromise; // Promise<undefined>
  47464. procedure reset;
  47465. procedure close;
  47466. property state: TCodecState read _Getstate;
  47467. property decodeQueueSize: Cardinal read _GetdecodeQueueSize;
  47468. property ondequeue: TEventHandler read _Getondequeue write _Setondequeue;
  47469. end;
  47470. TJSAudioDecoder = class(TJSEventTarget,IJSAudioDecoder)
  47471. Protected
  47472. function _Getstate: TCodecState;
  47473. function _GetdecodeQueueSize: Cardinal;
  47474. function _Getondequeue: TEventHandler;
  47475. procedure _Setondequeue(const aValue: TEventHandler);
  47476. Public
  47477. constructor Create(const aInit: TJSAudioDecoderInit); overload;
  47478. procedure configure(const aConfig: TJSAudioDecoderConfig); overload;
  47479. procedure decode(aChunk: IJSEncodedAudioChunk); overload;
  47480. function flush: IJSPromise; overload; // Promise<undefined>
  47481. procedure reset; overload;
  47482. procedure close; overload;
  47483. function isConfigSupported(const aConfig: TJSAudioDecoderConfig): IJSPromise; overload; // Promise<AudioDecoderSupport>
  47484. class function JSClassName: UnicodeString; override;
  47485. class function Cast(const Intf: IJSObject): IJSAudioDecoder;
  47486. property state: TCodecState read _Getstate;
  47487. property decodeQueueSize: Cardinal read _GetdecodeQueueSize;
  47488. property ondequeue: TEventHandler read _Getondequeue write _Setondequeue;
  47489. end;
  47490. { --------------------------------------------------------------------
  47491. TJSAudioEncoder
  47492. --------------------------------------------------------------------}
  47493. IJSAudioEncoder = interface(IJSEventTarget)
  47494. ['{72FFEED1-BD83-3982-A2CC-E03D9EFD8C2E}']
  47495. function _Getstate: TCodecState;
  47496. function _GetencodeQueueSize: Cardinal;
  47497. function _Getondequeue: TEventHandler;
  47498. procedure _Setondequeue(const aValue: TEventHandler);
  47499. procedure configure(const aConfig: TJSAudioEncoderConfig);
  47500. procedure encode(aData: IJSAudioData);
  47501. function flush: IJSPromise; // Promise<undefined>
  47502. procedure reset;
  47503. procedure close;
  47504. property state: TCodecState read _Getstate;
  47505. property encodeQueueSize: Cardinal read _GetencodeQueueSize;
  47506. property ondequeue: TEventHandler read _Getondequeue write _Setondequeue;
  47507. end;
  47508. TJSAudioEncoder = class(TJSEventTarget,IJSAudioEncoder)
  47509. Protected
  47510. function _Getstate: TCodecState;
  47511. function _GetencodeQueueSize: Cardinal;
  47512. function _Getondequeue: TEventHandler;
  47513. procedure _Setondequeue(const aValue: TEventHandler);
  47514. Public
  47515. constructor Create(const aInit: TJSAudioEncoderInit); overload;
  47516. procedure configure(const aConfig: TJSAudioEncoderConfig); overload;
  47517. procedure encode(aData: IJSAudioData); overload;
  47518. function flush: IJSPromise; overload; // Promise<undefined>
  47519. procedure reset; overload;
  47520. procedure close; overload;
  47521. function isConfigSupported(const aConfig: TJSAudioEncoderConfig): IJSPromise; overload; // Promise<AudioEncoderSupport>
  47522. class function JSClassName: UnicodeString; override;
  47523. class function Cast(const Intf: IJSObject): IJSAudioEncoder;
  47524. property state: TCodecState read _Getstate;
  47525. property encodeQueueSize: Cardinal read _GetencodeQueueSize;
  47526. property ondequeue: TEventHandler read _Getondequeue write _Setondequeue;
  47527. end;
  47528. { --------------------------------------------------------------------
  47529. TJSAudioNode
  47530. --------------------------------------------------------------------}
  47531. IJSAudioNode = interface(IJSEventTarget)
  47532. ['{AF6504EE-7C50-37B9-8313-D35302E611D5}']
  47533. function _Getcontext: IJSBaseAudioContext;
  47534. function _GetnumberOfInputs: Cardinal;
  47535. function _GetnumberOfOutputs: Cardinal;
  47536. function _GetchannelCount: Cardinal;
  47537. function _GetchannelCountMode: TChannelCountMode;
  47538. function _GetchannelInterpretation: TChannelInterpretation;
  47539. procedure _SetchannelCount(const aValue: Cardinal);
  47540. procedure _SetchannelCountMode(const aValue: TChannelCountMode);
  47541. procedure _SetchannelInterpretation(const aValue: TChannelInterpretation);
  47542. function connect(aDestination: IJSAudioNode; aOutput: Cardinal; aInput: Cardinal): IJSAudioNode;
  47543. function connect(aDestination: IJSAudioNode): IJSAudioNode;
  47544. function connect(aDestination: IJSAudioNode; aOutput: Cardinal): IJSAudioNode;
  47545. procedure connect(aDestination: IJSAudioParam; aOutput: Cardinal);
  47546. procedure connect(aDestination: IJSAudioParam);
  47547. procedure disconnect;
  47548. procedure disconnect(aOutput: Cardinal);
  47549. procedure disconnect(aDestination: IJSAudioNode);
  47550. procedure disconnect(aDestination: IJSAudioNode; aOutput: Cardinal);
  47551. procedure disconnect(aDestination: IJSAudioNode; aOutput: Cardinal; aInput: Cardinal);
  47552. procedure disconnect(aDestination: IJSAudioParam);
  47553. procedure disconnect(aDestination: IJSAudioParam; aOutput: Cardinal);
  47554. property context: IJSBaseAudioContext read _Getcontext;
  47555. property numberOfInputs: Cardinal read _GetnumberOfInputs;
  47556. property numberOfOutputs: Cardinal read _GetnumberOfOutputs;
  47557. property channelCount: Cardinal read _GetchannelCount write _SetchannelCount;
  47558. property channelCountMode: TChannelCountMode read _GetchannelCountMode write _SetchannelCountMode;
  47559. property channelInterpretation: TChannelInterpretation read _GetchannelInterpretation write _SetchannelInterpretation;
  47560. end;
  47561. TJSAudioNode = class(TJSEventTarget,IJSAudioNode)
  47562. Protected
  47563. function _Getcontext: IJSBaseAudioContext;
  47564. function _GetnumberOfInputs: Cardinal;
  47565. function _GetnumberOfOutputs: Cardinal;
  47566. function _GetchannelCount: Cardinal;
  47567. function _GetchannelCountMode: TChannelCountMode;
  47568. function _GetchannelInterpretation: TChannelInterpretation;
  47569. procedure _SetchannelCount(const aValue: Cardinal);
  47570. procedure _SetchannelCountMode(const aValue: TChannelCountMode);
  47571. procedure _SetchannelInterpretation(const aValue: TChannelInterpretation);
  47572. Public
  47573. function connect(aDestination: IJSAudioNode; aOutput: Cardinal; aInput: Cardinal): IJSAudioNode; overload;
  47574. function connect(aDestination: IJSAudioNode): IJSAudioNode; overload;
  47575. function connect(aDestination: IJSAudioNode; aOutput: Cardinal): IJSAudioNode; overload;
  47576. procedure connect(aDestination: IJSAudioParam; aOutput: Cardinal); overload;
  47577. procedure connect(aDestination: IJSAudioParam); overload;
  47578. procedure disconnect; overload;
  47579. procedure disconnect(aOutput: Cardinal); overload;
  47580. procedure disconnect(aDestination: IJSAudioNode); overload;
  47581. procedure disconnect(aDestination: IJSAudioNode; aOutput: Cardinal); overload;
  47582. procedure disconnect(aDestination: IJSAudioNode; aOutput: Cardinal; aInput: Cardinal); overload;
  47583. procedure disconnect(aDestination: IJSAudioParam); overload;
  47584. procedure disconnect(aDestination: IJSAudioParam; aOutput: Cardinal); overload;
  47585. class function JSClassName: UnicodeString; override;
  47586. class function Cast(const Intf: IJSObject): IJSAudioNode;
  47587. property context: IJSBaseAudioContext read _Getcontext;
  47588. property numberOfInputs: Cardinal read _GetnumberOfInputs;
  47589. property numberOfOutputs: Cardinal read _GetnumberOfOutputs;
  47590. property channelCount: Cardinal read _GetchannelCount write _SetchannelCount;
  47591. property channelCountMode: TChannelCountMode read _GetchannelCountMode write _SetchannelCountMode;
  47592. property channelInterpretation: TChannelInterpretation read _GetchannelInterpretation write _SetchannelInterpretation;
  47593. end;
  47594. { --------------------------------------------------------------------
  47595. TJSAudioProcessingEvent
  47596. --------------------------------------------------------------------}
  47597. IJSAudioProcessingEvent = interface(IJSEvent)
  47598. ['{75E57B9D-0627-39F5-9D38-E26051BDD5FC}']
  47599. function _GetplaybackTime: Double;
  47600. function _GetinputBuffer: IJSAudioBuffer;
  47601. function _GetoutputBuffer: IJSAudioBuffer;
  47602. property playbackTime: Double read _GetplaybackTime;
  47603. property inputBuffer: IJSAudioBuffer read _GetinputBuffer;
  47604. property outputBuffer: IJSAudioBuffer read _GetoutputBuffer;
  47605. end;
  47606. TJSAudioProcessingEvent = class(TJSEvent,IJSAudioProcessingEvent)
  47607. Protected
  47608. function _GetplaybackTime: Double;
  47609. function _GetinputBuffer: IJSAudioBuffer;
  47610. function _GetoutputBuffer: IJSAudioBuffer;
  47611. Public
  47612. class function JSClassName: UnicodeString; override;
  47613. class function Cast(const Intf: IJSObject): IJSAudioProcessingEvent;
  47614. property playbackTime: Double read _GetplaybackTime;
  47615. property inputBuffer: IJSAudioBuffer read _GetinputBuffer;
  47616. property outputBuffer: IJSAudioBuffer read _GetoutputBuffer;
  47617. end;
  47618. { --------------------------------------------------------------------
  47619. TJSAudioTrackList
  47620. --------------------------------------------------------------------}
  47621. IJSAudioTrackList = interface(IJSEventTarget)
  47622. ['{5B993ACB-2B51-3767-A7E6-7A72380F78CA}']
  47623. function _Getlength_: Cardinal;
  47624. function _Getonchange: TEventHandler;
  47625. function _Getonaddtrack: TEventHandler;
  47626. function _Getonremovetrack: TEventHandler;
  47627. procedure _Setonchange(const aValue: TEventHandler);
  47628. procedure _Setonaddtrack(const aValue: TEventHandler);
  47629. procedure _Setonremovetrack(const aValue: TEventHandler);
  47630. function GetDefault(aIndex: Cardinal): IJSAudioTrack;
  47631. function getTrackById(const aId: UnicodeString): IJSAudioTrack;
  47632. property length_: Cardinal read _Getlength_;
  47633. property onchange: TEventHandler read _Getonchange write _Setonchange;
  47634. property onaddtrack: TEventHandler read _Getonaddtrack write _Setonaddtrack;
  47635. property onremovetrack: TEventHandler read _Getonremovetrack write _Setonremovetrack;
  47636. end;
  47637. TJSAudioTrackList = class(TJSEventTarget,IJSAudioTrackList)
  47638. Protected
  47639. function _Getlength_: Cardinal;
  47640. function _Getonchange: TEventHandler;
  47641. function _Getonaddtrack: TEventHandler;
  47642. function _Getonremovetrack: TEventHandler;
  47643. procedure _Setonchange(const aValue: TEventHandler);
  47644. procedure _Setonaddtrack(const aValue: TEventHandler);
  47645. procedure _Setonremovetrack(const aValue: TEventHandler);
  47646. Public
  47647. function GetDefault(aIndex: Cardinal): IJSAudioTrack; overload;
  47648. function getTrackById(const aId: UnicodeString): IJSAudioTrack; overload;
  47649. class function JSClassName: UnicodeString; override;
  47650. class function Cast(const Intf: IJSObject): IJSAudioTrackList;
  47651. property length_: Cardinal read _Getlength_;
  47652. property onchange: TEventHandler read _Getonchange write _Setonchange;
  47653. property onaddtrack: TEventHandler read _Getonaddtrack write _Setonaddtrack;
  47654. property onremovetrack: TEventHandler read _Getonremovetrack write _Setonremovetrack;
  47655. end;
  47656. { --------------------------------------------------------------------
  47657. TJSAudioWorklet
  47658. --------------------------------------------------------------------}
  47659. IJSAudioWorklet = interface(IJSWorklet)
  47660. ['{E6CEFCD4-2430-3D3B-AEA0-F0D81AA2A621}']
  47661. end;
  47662. TJSAudioWorklet = class(TJSWorklet,IJSAudioWorklet)
  47663. Protected
  47664. Public
  47665. class function JSClassName: UnicodeString; override;
  47666. class function Cast(const Intf: IJSObject): IJSAudioWorklet;
  47667. end;
  47668. { --------------------------------------------------------------------
  47669. TJSAudioWorkletGlobalScope
  47670. --------------------------------------------------------------------}
  47671. IJSAudioWorkletGlobalScope = interface(IJSWorkletGlobalScope)
  47672. ['{E18DD65E-3A6D-3D56-AE96-693D5C212E00}']
  47673. function _GetcurrentFrame: QWord;
  47674. function _GetcurrentTime: Double;
  47675. function _GetsampleRate: Single;
  47676. procedure registerProcessor(const aName: UnicodeString; const aProcessorCtor: TAudioWorkletProcessorConstructor);
  47677. property currentFrame: QWord read _GetcurrentFrame;
  47678. property currentTime: Double read _GetcurrentTime;
  47679. property sampleRate: Single read _GetsampleRate;
  47680. end;
  47681. TJSAudioWorkletGlobalScope = class(TJSWorkletGlobalScope,IJSAudioWorkletGlobalScope)
  47682. Protected
  47683. function _GetcurrentFrame: QWord;
  47684. function _GetcurrentTime: Double;
  47685. function _GetsampleRate: Single;
  47686. Public
  47687. procedure registerProcessor(const aName: UnicodeString; const aProcessorCtor: TAudioWorkletProcessorConstructor); overload;
  47688. class function JSClassName: UnicodeString; override;
  47689. class function Cast(const Intf: IJSObject): IJSAudioWorkletGlobalScope;
  47690. property currentFrame: QWord read _GetcurrentFrame;
  47691. property currentTime: Double read _GetcurrentTime;
  47692. property sampleRate: Single read _GetsampleRate;
  47693. end;
  47694. { --------------------------------------------------------------------
  47695. TJSBaseAudioContext
  47696. --------------------------------------------------------------------}
  47697. IJSBaseAudioContext = interface(IJSEventTarget)
  47698. ['{B2AEFD13-1847-376A-A0E0-231D2C8EA974}']
  47699. function _Getdestination: IJSAudioDestinationNode;
  47700. function _GetsampleRate: Single;
  47701. function _GetcurrentTime: Double;
  47702. function _Getlistener: IJSAudioListener;
  47703. function _Getstate: TAudioContextState;
  47704. function _GetaudioWorklet: IJSAudioWorklet;
  47705. function _Getonstatechange: TEventHandler;
  47706. procedure _Setonstatechange(const aValue: TEventHandler);
  47707. function resume: IJSPromise; // Promise<undefined>
  47708. function createBuffer(aNumberOfChannels: Cardinal; aLength_: Cardinal; aSampleRate: Single): IJSAudioBuffer;
  47709. function decodeAudioData(aAudioData: IJSArrayBuffer; const aSuccessCallback: TDecodeSuccessCallback; const aErrorCallback: TDecodeErrorCallback): IJSPromise; // Promise<AudioBuffer>
  47710. function decodeAudioData(aAudioData: IJSArrayBuffer): IJSPromise; // Promise<AudioBuffer>
  47711. function decodeAudioData(aAudioData: IJSArrayBuffer; const aSuccessCallback: TDecodeSuccessCallback): IJSPromise; // Promise<AudioBuffer>
  47712. function createBufferSource: IJSAudioBufferSourceNode;
  47713. function createConstantSource: IJSConstantSourceNode;
  47714. function createScriptProcessor(aBufferSize: Cardinal; aNumberOfInputChannels: Cardinal; aNumberOfOutputChannels: Cardinal): IJSScriptProcessorNode;
  47715. function createScriptProcessor: IJSScriptProcessorNode;
  47716. function createScriptProcessor(aBufferSize: Cardinal): IJSScriptProcessorNode;
  47717. function createScriptProcessor(aBufferSize: Cardinal; aNumberOfInputChannels: Cardinal): IJSScriptProcessorNode;
  47718. function createAnalyser: IJSAnalyserNode;
  47719. function createGain: IJSGainNode;
  47720. function createDelay(aMaxDelayTime: Double): IJSDelayNode;
  47721. function createDelay: IJSDelayNode;
  47722. function createBiquadFilter: IJSBiquadFilterNode;
  47723. function createIIRFilter(const aFeedforward: TDoubleDynArray; const aFeedback: TDoubleDynArray): IJSIIRFilterNode;
  47724. function createWaveShaper: IJSWaveShaperNode;
  47725. function createPanner: IJSPannerNode;
  47726. function createStereoPanner: IJSStereoPannerNode;
  47727. function createConvolver: IJSConvolverNode;
  47728. function createChannelSplitter(aNumberOfOutputs: Cardinal): IJSChannelSplitterNode;
  47729. function createChannelSplitter: IJSChannelSplitterNode;
  47730. function createChannelMerger(aNumberOfInputs: Cardinal): IJSChannelMergerNode;
  47731. function createChannelMerger: IJSChannelMergerNode;
  47732. function createDynamicsCompressor: IJSDynamicsCompressorNode;
  47733. function createOscillator: IJSOscillatorNode;
  47734. function createPeriodicWave(const aReal: TSingleDynArray; const aImag: TSingleDynArray; const aConstraints: TJSPeriodicWaveConstraints): IJSPeriodicWave;
  47735. function createPeriodicWave(const aReal: TSingleDynArray; const aImag: TSingleDynArray): IJSPeriodicWave;
  47736. property destination: IJSAudioDestinationNode read _Getdestination;
  47737. property sampleRate: Single read _GetsampleRate;
  47738. property currentTime: Double read _GetcurrentTime;
  47739. property listener: IJSAudioListener read _Getlistener;
  47740. property state: TAudioContextState read _Getstate;
  47741. property audioWorklet: IJSAudioWorklet read _GetaudioWorklet;
  47742. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  47743. end;
  47744. TJSBaseAudioContext = class(TJSEventTarget,IJSBaseAudioContext)
  47745. Protected
  47746. function _Getdestination: IJSAudioDestinationNode;
  47747. function _GetsampleRate: Single;
  47748. function _GetcurrentTime: Double;
  47749. function _Getlistener: IJSAudioListener;
  47750. function _Getstate: TAudioContextState;
  47751. function _GetaudioWorklet: IJSAudioWorklet;
  47752. function _Getonstatechange: TEventHandler;
  47753. procedure _Setonstatechange(const aValue: TEventHandler);
  47754. Public
  47755. function resume: IJSPromise; overload; // Promise<undefined>
  47756. function createBuffer(aNumberOfChannels: Cardinal; aLength_: Cardinal; aSampleRate: Single): IJSAudioBuffer; overload;
  47757. function decodeAudioData(aAudioData: IJSArrayBuffer; const aSuccessCallback: TDecodeSuccessCallback; const aErrorCallback: TDecodeErrorCallback): IJSPromise; overload; // Promise<AudioBuffer>
  47758. function decodeAudioData(aAudioData: IJSArrayBuffer): IJSPromise; overload; // Promise<AudioBuffer>
  47759. function decodeAudioData(aAudioData: IJSArrayBuffer; const aSuccessCallback: TDecodeSuccessCallback): IJSPromise; overload; // Promise<AudioBuffer>
  47760. function createBufferSource: IJSAudioBufferSourceNode; overload;
  47761. function createConstantSource: IJSConstantSourceNode; overload;
  47762. function createScriptProcessor(aBufferSize: Cardinal; aNumberOfInputChannels: Cardinal; aNumberOfOutputChannels: Cardinal): IJSScriptProcessorNode; overload;
  47763. function createScriptProcessor: IJSScriptProcessorNode; overload;
  47764. function createScriptProcessor(aBufferSize: Cardinal): IJSScriptProcessorNode; overload;
  47765. function createScriptProcessor(aBufferSize: Cardinal; aNumberOfInputChannels: Cardinal): IJSScriptProcessorNode; overload;
  47766. function createAnalyser: IJSAnalyserNode; overload;
  47767. function createGain: IJSGainNode; overload;
  47768. function createDelay(aMaxDelayTime: Double): IJSDelayNode; overload;
  47769. function createDelay: IJSDelayNode; overload;
  47770. function createBiquadFilter: IJSBiquadFilterNode; overload;
  47771. function createIIRFilter(const aFeedforward: TDoubleDynArray; const aFeedback: TDoubleDynArray): IJSIIRFilterNode; overload;
  47772. function createWaveShaper: IJSWaveShaperNode; overload;
  47773. function createPanner: IJSPannerNode; overload;
  47774. function createStereoPanner: IJSStereoPannerNode; overload;
  47775. function createConvolver: IJSConvolverNode; overload;
  47776. function createChannelSplitter(aNumberOfOutputs: Cardinal): IJSChannelSplitterNode; overload;
  47777. function createChannelSplitter: IJSChannelSplitterNode; overload;
  47778. function createChannelMerger(aNumberOfInputs: Cardinal): IJSChannelMergerNode; overload;
  47779. function createChannelMerger: IJSChannelMergerNode; overload;
  47780. function createDynamicsCompressor: IJSDynamicsCompressorNode; overload;
  47781. function createOscillator: IJSOscillatorNode; overload;
  47782. function createPeriodicWave(const aReal: TSingleDynArray; const aImag: TSingleDynArray; const aConstraints: TJSPeriodicWaveConstraints): IJSPeriodicWave; overload;
  47783. function createPeriodicWave(const aReal: TSingleDynArray; const aImag: TSingleDynArray): IJSPeriodicWave; overload;
  47784. class function JSClassName: UnicodeString; override;
  47785. class function Cast(const Intf: IJSObject): IJSBaseAudioContext;
  47786. property destination: IJSAudioDestinationNode read _Getdestination;
  47787. property sampleRate: Single read _GetsampleRate;
  47788. property currentTime: Double read _GetcurrentTime;
  47789. property listener: IJSAudioListener read _Getlistener;
  47790. property state: TAudioContextState read _Getstate;
  47791. property audioWorklet: IJSAudioWorklet read _GetaudioWorklet;
  47792. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  47793. end;
  47794. { --------------------------------------------------------------------
  47795. TJSBeforeUnloadEvent
  47796. --------------------------------------------------------------------}
  47797. IJSBeforeUnloadEvent = interface(IJSEvent)
  47798. ['{715EBC1E-0380-3AE9-9670-631CF3ED15BF}']
  47799. function _GetreturnValue2: UnicodeString;
  47800. procedure _SetreturnValue2(const aValue: UnicodeString);
  47801. property returnValue: UnicodeString read _GetreturnValue2 write _SetreturnValue2;
  47802. end;
  47803. TJSBeforeUnloadEvent = class(TJSEvent,IJSBeforeUnloadEvent)
  47804. Protected
  47805. function _GetreturnValue2: UnicodeString;
  47806. procedure _SetreturnValue2(const aValue: UnicodeString);
  47807. Public
  47808. class function JSClassName: UnicodeString; override;
  47809. class function Cast(const Intf: IJSObject): IJSBeforeUnloadEvent;
  47810. property returnValue: UnicodeString read _GetreturnValue2 write _SetreturnValue2;
  47811. end;
  47812. { --------------------------------------------------------------------
  47813. TJSBlobEvent
  47814. --------------------------------------------------------------------}
  47815. IJSBlobEvent = interface(IJSEvent)
  47816. ['{337CBBD6-3063-35E3-994A-ECF20DB57D52}']
  47817. function _Getdata: IJSBlob;
  47818. property data: IJSBlob read _Getdata;
  47819. end;
  47820. TJSBlobEvent = class(TJSEvent,IJSBlobEvent)
  47821. Protected
  47822. function _Getdata: IJSBlob;
  47823. Public
  47824. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSBlobEventInit); overload;
  47825. class function JSClassName: UnicodeString; override;
  47826. class function Cast(const Intf: IJSObject): IJSBlobEvent;
  47827. property data: IJSBlob read _Getdata;
  47828. end;
  47829. { --------------------------------------------------------------------
  47830. TJSBroadcastChannel
  47831. --------------------------------------------------------------------}
  47832. IJSBroadcastChannel = interface(IJSEventTarget)
  47833. ['{4608FDAC-BCFB-31F8-BFDD-1243E4F5BC1D}']
  47834. function _Getname: UnicodeString;
  47835. function _Getonmessage: TEventHandler;
  47836. function _Getonmessageerror: TEventHandler;
  47837. procedure _Setonmessage(const aValue: TEventHandler);
  47838. procedure _Setonmessageerror(const aValue: TEventHandler);
  47839. procedure postMessage(const aMessage: Variant);
  47840. procedure close;
  47841. property name: UnicodeString read _Getname;
  47842. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  47843. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  47844. end;
  47845. TJSBroadcastChannel = class(TJSEventTarget,IJSBroadcastChannel)
  47846. Protected
  47847. function _Getname: UnicodeString;
  47848. function _Getonmessage: TEventHandler;
  47849. function _Getonmessageerror: TEventHandler;
  47850. procedure _Setonmessage(const aValue: TEventHandler);
  47851. procedure _Setonmessageerror(const aValue: TEventHandler);
  47852. Public
  47853. constructor Create(const aChannel: UnicodeString); overload;
  47854. procedure postMessage(const aMessage: Variant); overload;
  47855. procedure close; overload;
  47856. class function JSClassName: UnicodeString; override;
  47857. class function Cast(const Intf: IJSObject): IJSBroadcastChannel;
  47858. property name: UnicodeString read _Getname;
  47859. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  47860. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  47861. end;
  47862. { --------------------------------------------------------------------
  47863. TJSPath2D
  47864. --------------------------------------------------------------------}
  47865. IJSPath2D = interface(IJSCanvasPathMethods)
  47866. ['{798BD980-A983-33A8-B522-BE1EF20D02D8}']
  47867. procedure addPath(aPath: IJSPath2D; const aTransform: TJSDOMMatrix2DInit);
  47868. procedure addPath(aPath: IJSPath2D);
  47869. end;
  47870. TJSPath2D = class(TJSCanvasPathMethods,IJSPath2D)
  47871. Protected
  47872. Public
  47873. constructor Create; overload;
  47874. constructor Create(aOther: IJSPath2D); overload;
  47875. constructor Create(const aPathString: UnicodeString); overload;
  47876. procedure addPath(aPath: IJSPath2D; const aTransform: TJSDOMMatrix2DInit); overload;
  47877. procedure addPath(aPath: IJSPath2D); overload;
  47878. class function JSClassName: UnicodeString; override;
  47879. class function Cast(const Intf: IJSObject): IJSPath2D;
  47880. end;
  47881. { --------------------------------------------------------------------
  47882. TJSWindowClient
  47883. --------------------------------------------------------------------}
  47884. IJSWindowClient = interface(IJSClient)
  47885. ['{A558E228-84BB-3CF1-9555-068E29E4BD36}']
  47886. function _GetvisibilityState: TVisibilityState;
  47887. function _Getfocused: Boolean;
  47888. function focus: IJSPromise; // Promise<WindowClient>
  47889. function navigate(const aUrl: UnicodeString): IJSPromise; // Promise<WindowClient>
  47890. property visibilityState: TVisibilityState read _GetvisibilityState;
  47891. property focused: Boolean read _Getfocused;
  47892. end;
  47893. TJSWindowClient = class(TJSClient,IJSWindowClient)
  47894. Protected
  47895. function _GetvisibilityState: TVisibilityState;
  47896. function _Getfocused: Boolean;
  47897. Public
  47898. function focus: IJSPromise; overload; // Promise<WindowClient>
  47899. function navigate(const aUrl: UnicodeString): IJSPromise; overload; // Promise<WindowClient>
  47900. class function JSClassName: UnicodeString; override;
  47901. class function Cast(const Intf: IJSObject): IJSWindowClient;
  47902. property visibilityState: TVisibilityState read _GetvisibilityState;
  47903. property focused: Boolean read _Getfocused;
  47904. end;
  47905. { --------------------------------------------------------------------
  47906. TJSClipboard
  47907. --------------------------------------------------------------------}
  47908. IJSClipboard = interface(IJSEventTarget)
  47909. ['{A5EB7794-70CB-3CC5-86A3-EABFE982055F}']
  47910. function read: IJSPromise; // Promise<ClipboardItems>
  47911. function readText: IJSPromise; // Promise<DOMString>
  47912. function write(const aData: TClipboardItemsDynArray): IJSPromise; // Promise<undefined>
  47913. function writeText(const aData: UnicodeString): IJSPromise; // Promise<undefined>
  47914. end;
  47915. TJSClipboard = class(TJSEventTarget,IJSClipboard)
  47916. Protected
  47917. Public
  47918. function read: IJSPromise; overload; // Promise<ClipboardItems>
  47919. function readText: IJSPromise; overload; // Promise<DOMString>
  47920. function write(const aData: TClipboardItemsDynArray): IJSPromise; overload; // Promise<undefined>
  47921. function writeText(const aData: UnicodeString): IJSPromise; overload; // Promise<undefined>
  47922. class function JSClassName: UnicodeString; override;
  47923. class function Cast(const Intf: IJSObject): IJSClipboard;
  47924. end;
  47925. { --------------------------------------------------------------------
  47926. TJSClipboardEvent
  47927. --------------------------------------------------------------------}
  47928. IJSClipboardEvent = interface(IJSEvent)
  47929. ['{EC171341-D33B-326A-B9AE-2EE7AA878E37}']
  47930. function _GetclipboardData: IJSDataTransfer;
  47931. property clipboardData: IJSDataTransfer read _GetclipboardData;
  47932. end;
  47933. TJSClipboardEvent = class(TJSEvent,IJSClipboardEvent)
  47934. Protected
  47935. function _GetclipboardData: IJSDataTransfer;
  47936. Public
  47937. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSClipboardEventInit); overload;
  47938. constructor Create(const aType_: UnicodeString); overload;
  47939. class function JSClassName: UnicodeString; override;
  47940. class function Cast(const Intf: IJSObject): IJSClipboardEvent;
  47941. property clipboardData: IJSDataTransfer read _GetclipboardData;
  47942. end;
  47943. { --------------------------------------------------------------------
  47944. TJSCloseEvent
  47945. --------------------------------------------------------------------}
  47946. IJSCloseEvent = interface(IJSEvent)
  47947. ['{93FE6600-2460-3D49-9D17-CECEADAF1D8D}']
  47948. function _GetwasClean: Boolean;
  47949. function _Getcode: Word;
  47950. function _Getreason: UnicodeString;
  47951. property wasClean: Boolean read _GetwasClean;
  47952. property code: Word read _Getcode;
  47953. property reason: UnicodeString read _Getreason;
  47954. end;
  47955. TJSCloseEvent = class(TJSEvent,IJSCloseEvent)
  47956. Protected
  47957. function _GetwasClean: Boolean;
  47958. function _Getcode: Word;
  47959. function _Getreason: UnicodeString;
  47960. Public
  47961. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSCloseEventInit); overload;
  47962. constructor Create(const aType_: UnicodeString); overload;
  47963. class function JSClassName: UnicodeString; override;
  47964. class function Cast(const Intf: IJSObject): IJSCloseEvent;
  47965. property wasClean: Boolean read _GetwasClean;
  47966. property code: Word read _Getcode;
  47967. property reason: UnicodeString read _Getreason;
  47968. end;
  47969. { --------------------------------------------------------------------
  47970. TJSCompressionStream
  47971. --------------------------------------------------------------------}
  47972. IJSCompressionStream = interface(IJSGenericTransformStream)
  47973. ['{24DC9C2B-58F3-3500-A77E-B481722BB537}']
  47974. end;
  47975. TJSCompressionStream = class(TJSGenericTransformStream,IJSCompressionStream)
  47976. Protected
  47977. Public
  47978. constructor Create(aFormat: TCompressionFormat); overload;
  47979. class function JSClassName: UnicodeString; override;
  47980. class function Cast(const Intf: IJSObject): IJSCompressionStream;
  47981. end;
  47982. { --------------------------------------------------------------------
  47983. TJSContentVisibilityAutoStateChangeEvent
  47984. --------------------------------------------------------------------}
  47985. IJSContentVisibilityAutoStateChangeEvent = interface(IJSEvent)
  47986. ['{5115D408-BF36-3616-ADE8-FA2F1D0D4392}']
  47987. function _Getskipped: Boolean;
  47988. property skipped: Boolean read _Getskipped;
  47989. end;
  47990. TJSContentVisibilityAutoStateChangeEvent = class(TJSEvent,IJSContentVisibilityAutoStateChangeEvent)
  47991. Protected
  47992. function _Getskipped: Boolean;
  47993. Public
  47994. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSContentVisibilityAutoStateChangeEventInit); overload;
  47995. constructor Create(const aType_: UnicodeString); overload;
  47996. class function JSClassName: UnicodeString; override;
  47997. class function Cast(const Intf: IJSObject): IJSContentVisibilityAutoStateChangeEvent;
  47998. property skipped: Boolean read _Getskipped;
  47999. end;
  48000. { --------------------------------------------------------------------
  48001. TJSCSSCounterStyleRule
  48002. --------------------------------------------------------------------}
  48003. IJSCSSCounterStyleRule = interface(IJSCSSRule)
  48004. ['{28227C02-BC5A-3A47-9EAD-179182ACFF81}']
  48005. function _Getname: UnicodeString;
  48006. function _Getsystem: UTF8String;
  48007. function _Getsymbols: UTF8String;
  48008. function _GetadditiveSymbols: UTF8String;
  48009. function _Getnegative: UTF8String;
  48010. function _Getprefix: UTF8String;
  48011. function _Getsuffix: UTF8String;
  48012. function _Getrange: UTF8String;
  48013. function _Getpad: UTF8String;
  48014. function _GetspeakAs: UTF8String;
  48015. function _Getfallback: UTF8String;
  48016. procedure _Setname(const aValue: UnicodeString);
  48017. procedure _Setsystem(const aValue: UTF8String);
  48018. procedure _Setsymbols(const aValue: UTF8String);
  48019. procedure _SetadditiveSymbols(const aValue: UTF8String);
  48020. procedure _Setnegative(const aValue: UTF8String);
  48021. procedure _Setprefix(const aValue: UTF8String);
  48022. procedure _Setsuffix(const aValue: UTF8String);
  48023. procedure _Setrange(const aValue: UTF8String);
  48024. procedure _Setpad(const aValue: UTF8String);
  48025. procedure _SetspeakAs(const aValue: UTF8String);
  48026. procedure _Setfallback(const aValue: UTF8String);
  48027. property name: UnicodeString read _Getname write _Setname;
  48028. property system: UTF8String read _Getsystem write _Setsystem;
  48029. property symbols: UTF8String read _Getsymbols write _Setsymbols;
  48030. property additiveSymbols: UTF8String read _GetadditiveSymbols write _SetadditiveSymbols;
  48031. property negative: UTF8String read _Getnegative write _Setnegative;
  48032. property prefix: UTF8String read _Getprefix write _Setprefix;
  48033. property suffix: UTF8String read _Getsuffix write _Setsuffix;
  48034. property range: UTF8String read _Getrange write _Setrange;
  48035. property pad: UTF8String read _Getpad write _Setpad;
  48036. property speakAs: UTF8String read _GetspeakAs write _SetspeakAs;
  48037. property fallback: UTF8String read _Getfallback write _Setfallback;
  48038. end;
  48039. TJSCSSCounterStyleRule = class(TJSCSSRule,IJSCSSCounterStyleRule)
  48040. Protected
  48041. function _Getname: UnicodeString;
  48042. function _Getsystem: UTF8String;
  48043. function _Getsymbols: UTF8String;
  48044. function _GetadditiveSymbols: UTF8String;
  48045. function _Getnegative: UTF8String;
  48046. function _Getprefix: UTF8String;
  48047. function _Getsuffix: UTF8String;
  48048. function _Getrange: UTF8String;
  48049. function _Getpad: UTF8String;
  48050. function _GetspeakAs: UTF8String;
  48051. function _Getfallback: UTF8String;
  48052. procedure _Setname(const aValue: UnicodeString);
  48053. procedure _Setsystem(const aValue: UTF8String);
  48054. procedure _Setsymbols(const aValue: UTF8String);
  48055. procedure _SetadditiveSymbols(const aValue: UTF8String);
  48056. procedure _Setnegative(const aValue: UTF8String);
  48057. procedure _Setprefix(const aValue: UTF8String);
  48058. procedure _Setsuffix(const aValue: UTF8String);
  48059. procedure _Setrange(const aValue: UTF8String);
  48060. procedure _Setpad(const aValue: UTF8String);
  48061. procedure _SetspeakAs(const aValue: UTF8String);
  48062. procedure _Setfallback(const aValue: UTF8String);
  48063. Public
  48064. class function JSClassName: UnicodeString; override;
  48065. class function Cast(const Intf: IJSObject): IJSCSSCounterStyleRule;
  48066. property name: UnicodeString read _Getname write _Setname;
  48067. property system: UTF8String read _Getsystem write _Setsystem;
  48068. property symbols: UTF8String read _Getsymbols write _Setsymbols;
  48069. property additiveSymbols: UTF8String read _GetadditiveSymbols write _SetadditiveSymbols;
  48070. property negative: UTF8String read _Getnegative write _Setnegative;
  48071. property prefix: UTF8String read _Getprefix write _Setprefix;
  48072. property suffix: UTF8String read _Getsuffix write _Setsuffix;
  48073. property range: UTF8String read _Getrange write _Setrange;
  48074. property pad: UTF8String read _Getpad write _Setpad;
  48075. property speakAs: UTF8String read _GetspeakAs write _SetspeakAs;
  48076. property fallback: UTF8String read _Getfallback write _Setfallback;
  48077. end;
  48078. { --------------------------------------------------------------------
  48079. TJSCSSFontFaceRule
  48080. --------------------------------------------------------------------}
  48081. IJSCSSFontFaceRule = interface(IJSCSSRule)
  48082. ['{05456B96-635A-37A9-8FC0-3B7D3F3D6A4F}']
  48083. function _Getstyle: IJSCSSStyleDeclaration;
  48084. property style: IJSCSSStyleDeclaration read _Getstyle;
  48085. end;
  48086. TJSCSSFontFaceRule = class(TJSCSSRule,IJSCSSFontFaceRule)
  48087. Protected
  48088. function _Getstyle: IJSCSSStyleDeclaration;
  48089. Public
  48090. class function JSClassName: UnicodeString; override;
  48091. class function Cast(const Intf: IJSObject): IJSCSSFontFaceRule;
  48092. property style: IJSCSSStyleDeclaration read _Getstyle;
  48093. end;
  48094. { --------------------------------------------------------------------
  48095. TJSCSSFontFeatureValuesRule
  48096. --------------------------------------------------------------------}
  48097. IJSCSSFontFeatureValuesRule = interface(IJSCSSRule)
  48098. ['{3BF36D4B-8E19-38C7-934F-55E179604BE8}']
  48099. function _GetfontFamily: UTF8String;
  48100. function _GetvalueText: UTF8String;
  48101. procedure _SetfontFamily(const aValue: UTF8String);
  48102. procedure _SetvalueText(const aValue: UTF8String);
  48103. property fontFamily: UTF8String read _GetfontFamily write _SetfontFamily;
  48104. property valueText: UTF8String read _GetvalueText write _SetvalueText;
  48105. end;
  48106. TJSCSSFontFeatureValuesRule = class(TJSCSSRule,IJSCSSFontFeatureValuesRule)
  48107. Protected
  48108. function _GetfontFamily: UTF8String;
  48109. function _GetvalueText: UTF8String;
  48110. procedure _SetfontFamily(const aValue: UTF8String);
  48111. procedure _SetvalueText(const aValue: UTF8String);
  48112. Public
  48113. class function JSClassName: UnicodeString; override;
  48114. class function Cast(const Intf: IJSObject): IJSCSSFontFeatureValuesRule;
  48115. property fontFamily: UTF8String read _GetfontFamily write _SetfontFamily;
  48116. property valueText: UTF8String read _GetvalueText write _SetvalueText;
  48117. end;
  48118. { --------------------------------------------------------------------
  48119. TJSCSSFontPaletteValuesRule
  48120. --------------------------------------------------------------------}
  48121. IJSCSSFontPaletteValuesRule = interface(IJSCSSRule)
  48122. ['{41ADB283-3E86-3ADA-97FA-62C4D2428D19}']
  48123. function _Getname: UTF8String;
  48124. function _GetfontFamily: UTF8String;
  48125. function _GetbasePalette: UTF8String;
  48126. function _GetoverrideColors: UTF8String;
  48127. property name: UTF8String read _Getname;
  48128. property fontFamily: UTF8String read _GetfontFamily;
  48129. property basePalette: UTF8String read _GetbasePalette;
  48130. property overrideColors: UTF8String read _GetoverrideColors;
  48131. end;
  48132. TJSCSSFontPaletteValuesRule = class(TJSCSSRule,IJSCSSFontPaletteValuesRule)
  48133. Protected
  48134. function _Getname: UTF8String;
  48135. function _GetfontFamily: UTF8String;
  48136. function _GetbasePalette: UTF8String;
  48137. function _GetoverrideColors: UTF8String;
  48138. Public
  48139. class function JSClassName: UnicodeString; override;
  48140. class function Cast(const Intf: IJSObject): IJSCSSFontPaletteValuesRule;
  48141. property name: UTF8String read _Getname;
  48142. property fontFamily: UTF8String read _GetfontFamily;
  48143. property basePalette: UTF8String read _GetbasePalette;
  48144. property overrideColors: UTF8String read _GetoverrideColors;
  48145. end;
  48146. { --------------------------------------------------------------------
  48147. TJSCSSGroupingRule
  48148. --------------------------------------------------------------------}
  48149. IJSCSSGroupingRule = interface(IJSCSSRule)
  48150. ['{3F46D276-5CEA-3272-ABB7-06D12D26C30A}']
  48151. function _GetcssRules: IJSCSSRuleList;
  48152. function insertRule(const aRule: UTF8String; aIndex: Cardinal): Cardinal;
  48153. function insertRule(const aRule: UTF8String): Cardinal;
  48154. procedure deleteRule(aIndex: Cardinal);
  48155. property cssRules: IJSCSSRuleList read _GetcssRules;
  48156. end;
  48157. TJSCSSGroupingRule = class(TJSCSSRule,IJSCSSGroupingRule)
  48158. Protected
  48159. function _GetcssRules: IJSCSSRuleList;
  48160. Public
  48161. function insertRule(const aRule: UTF8String; aIndex: Cardinal): Cardinal; overload;
  48162. function insertRule(const aRule: UTF8String): Cardinal; overload;
  48163. procedure deleteRule(aIndex: Cardinal); overload;
  48164. class function JSClassName: UnicodeString; override;
  48165. class function Cast(const Intf: IJSObject): IJSCSSGroupingRule;
  48166. property cssRules: IJSCSSRuleList read _GetcssRules;
  48167. end;
  48168. { --------------------------------------------------------------------
  48169. TJSCSSImportRule
  48170. --------------------------------------------------------------------}
  48171. IJSCSSImportRule = interface(IJSCSSRule)
  48172. ['{76111F1B-A229-383F-A2C9-12900416399D}']
  48173. function _Gethref: UnicodeString;
  48174. function _Getmedia: IJSMediaList;
  48175. function _GetstyleSheet: IJSCSSStyleSheet;
  48176. function _GetlayerName: UTF8String;
  48177. function _GetsupportsText: UTF8String;
  48178. property href: UnicodeString read _Gethref;
  48179. property media: IJSMediaList read _Getmedia;
  48180. property styleSheet: IJSCSSStyleSheet read _GetstyleSheet;
  48181. property layerName: UTF8String read _GetlayerName;
  48182. property supportsText: UTF8String read _GetsupportsText;
  48183. end;
  48184. TJSCSSImportRule = class(TJSCSSRule,IJSCSSImportRule)
  48185. Protected
  48186. function _Gethref: UnicodeString;
  48187. function _Getmedia: IJSMediaList;
  48188. function _GetstyleSheet: IJSCSSStyleSheet;
  48189. function _GetlayerName: UTF8String;
  48190. function _GetsupportsText: UTF8String;
  48191. Public
  48192. class function JSClassName: UnicodeString; override;
  48193. class function Cast(const Intf: IJSObject): IJSCSSImportRule;
  48194. property href: UnicodeString read _Gethref;
  48195. property media: IJSMediaList read _Getmedia;
  48196. property styleSheet: IJSCSSStyleSheet read _GetstyleSheet;
  48197. property layerName: UTF8String read _GetlayerName;
  48198. property supportsText: UTF8String read _GetsupportsText;
  48199. end;
  48200. { --------------------------------------------------------------------
  48201. TJSCSSKeyframeRule
  48202. --------------------------------------------------------------------}
  48203. IJSCSSKeyframeRule = interface(IJSCSSRule)
  48204. ['{1247E3FD-5EA5-320F-A905-818FB6DA7222}']
  48205. function _GetkeyText: UTF8String;
  48206. function _Getstyle: IJSCSSStyleDeclaration;
  48207. procedure _SetkeyText(const aValue: UTF8String);
  48208. property keyText: UTF8String read _GetkeyText write _SetkeyText;
  48209. property style: IJSCSSStyleDeclaration read _Getstyle;
  48210. end;
  48211. TJSCSSKeyframeRule = class(TJSCSSRule,IJSCSSKeyframeRule)
  48212. Protected
  48213. function _GetkeyText: UTF8String;
  48214. function _Getstyle: IJSCSSStyleDeclaration;
  48215. procedure _SetkeyText(const aValue: UTF8String);
  48216. Public
  48217. class function JSClassName: UnicodeString; override;
  48218. class function Cast(const Intf: IJSObject): IJSCSSKeyframeRule;
  48219. property keyText: UTF8String read _GetkeyText write _SetkeyText;
  48220. property style: IJSCSSStyleDeclaration read _Getstyle;
  48221. end;
  48222. { --------------------------------------------------------------------
  48223. TJSCSSKeyframesRule
  48224. --------------------------------------------------------------------}
  48225. IJSCSSKeyframesRule = interface(IJSCSSRule)
  48226. ['{61EA6063-6AA7-365E-AC3E-B4EAC930D18D}']
  48227. function _Getname: UnicodeString;
  48228. function _GetcssRules: IJSCSSRuleList;
  48229. function _Getlength_: Cardinal;
  48230. procedure _Setname(const aValue: UnicodeString);
  48231. function GetDefault(aIndex: Cardinal): IJSCSSKeyframeRule;
  48232. procedure appendRule(const aRule: UnicodeString);
  48233. procedure deleteRule(const aSelect: UnicodeString);
  48234. function findRule(const aSelect: UnicodeString): IJSCSSKeyframeRule;
  48235. property name: UnicodeString read _Getname write _Setname;
  48236. property cssRules: IJSCSSRuleList read _GetcssRules;
  48237. property length_: Cardinal read _Getlength_;
  48238. end;
  48239. TJSCSSKeyframesRule = class(TJSCSSRule,IJSCSSKeyframesRule)
  48240. Protected
  48241. function _Getname: UnicodeString;
  48242. function _GetcssRules: IJSCSSRuleList;
  48243. function _Getlength_: Cardinal;
  48244. procedure _Setname(const aValue: UnicodeString);
  48245. Public
  48246. function GetDefault(aIndex: Cardinal): IJSCSSKeyframeRule; overload;
  48247. procedure appendRule(const aRule: UnicodeString); overload;
  48248. procedure deleteRule(const aSelect: UnicodeString); overload;
  48249. function findRule(const aSelect: UnicodeString): IJSCSSKeyframeRule; overload;
  48250. class function JSClassName: UnicodeString; override;
  48251. class function Cast(const Intf: IJSObject): IJSCSSKeyframesRule;
  48252. property name: UnicodeString read _Getname write _Setname;
  48253. property cssRules: IJSCSSRuleList read _GetcssRules;
  48254. property length_: Cardinal read _Getlength_;
  48255. end;
  48256. { --------------------------------------------------------------------
  48257. TJSCSSLayerStatementRule
  48258. --------------------------------------------------------------------}
  48259. IJSCSSLayerStatementRule = interface(IJSCSSRule)
  48260. ['{270E1F9C-A650-309C-AD9C-EC7DA6AA50F1}']
  48261. function _GetnameList: TUTF8StringDynArray;
  48262. property nameList: TUTF8StringDynArray read _GetnameList;
  48263. end;
  48264. TJSCSSLayerStatementRule = class(TJSCSSRule,IJSCSSLayerStatementRule)
  48265. Protected
  48266. function _GetnameList: TUTF8StringDynArray;
  48267. Public
  48268. class function JSClassName: UnicodeString; override;
  48269. class function Cast(const Intf: IJSObject): IJSCSSLayerStatementRule;
  48270. property nameList: TUTF8StringDynArray read _GetnameList;
  48271. end;
  48272. { --------------------------------------------------------------------
  48273. TJSCSSNamespaceRule
  48274. --------------------------------------------------------------------}
  48275. IJSCSSNamespaceRule = interface(IJSCSSRule)
  48276. ['{85AD0F15-F9C2-30F8-B0BD-5077E8004BC7}']
  48277. function _GetnamespaceURI: UnicodeString;
  48278. function _Getprefix: UnicodeString;
  48279. property namespaceURI: UnicodeString read _GetnamespaceURI;
  48280. property prefix: UnicodeString read _Getprefix;
  48281. end;
  48282. TJSCSSNamespaceRule = class(TJSCSSRule,IJSCSSNamespaceRule)
  48283. Protected
  48284. function _GetnamespaceURI: UnicodeString;
  48285. function _Getprefix: UnicodeString;
  48286. Public
  48287. class function JSClassName: UnicodeString; override;
  48288. class function Cast(const Intf: IJSObject): IJSCSSNamespaceRule;
  48289. property namespaceURI: UnicodeString read _GetnamespaceURI;
  48290. property prefix: UnicodeString read _Getprefix;
  48291. end;
  48292. { --------------------------------------------------------------------
  48293. TJSCSSPageRule
  48294. --------------------------------------------------------------------}
  48295. IJSCSSPageRule = interface(IJSCSSRule)
  48296. ['{E723A726-0C74-322C-B9E6-2B158353892F}']
  48297. function _GetselectorText: UTF8String;
  48298. function _Getstyle: IJSCSSStyleDeclaration;
  48299. procedure _SetselectorText(const aValue: UTF8String);
  48300. property selectorText: UTF8String read _GetselectorText write _SetselectorText;
  48301. property style: IJSCSSStyleDeclaration read _Getstyle;
  48302. end;
  48303. TJSCSSPageRule = class(TJSCSSRule,IJSCSSPageRule)
  48304. Protected
  48305. function _GetselectorText: UTF8String;
  48306. function _Getstyle: IJSCSSStyleDeclaration;
  48307. procedure _SetselectorText(const aValue: UTF8String);
  48308. Public
  48309. class function JSClassName: UnicodeString; override;
  48310. class function Cast(const Intf: IJSObject): IJSCSSPageRule;
  48311. property selectorText: UTF8String read _GetselectorText write _SetselectorText;
  48312. property style: IJSCSSStyleDeclaration read _Getstyle;
  48313. end;
  48314. { --------------------------------------------------------------------
  48315. TJSCSSPropertyRule
  48316. --------------------------------------------------------------------}
  48317. IJSCSSPropertyRule = interface(IJSCSSRule)
  48318. ['{718D9F86-3F92-3D7C-ACEE-E9DDC46F93B2}']
  48319. function _Getname: UTF8String;
  48320. function _Getsyntax: UTF8String;
  48321. function _Getinherits: Boolean;
  48322. function _GetinitialValue: UTF8String;
  48323. property name: UTF8String read _Getname;
  48324. property syntax: UTF8String read _Getsyntax;
  48325. property inherits: Boolean read _Getinherits;
  48326. property initialValue: UTF8String read _GetinitialValue;
  48327. end;
  48328. TJSCSSPropertyRule = class(TJSCSSRule,IJSCSSPropertyRule)
  48329. Protected
  48330. function _Getname: UTF8String;
  48331. function _Getsyntax: UTF8String;
  48332. function _Getinherits: Boolean;
  48333. function _GetinitialValue: UTF8String;
  48334. Public
  48335. class function JSClassName: UnicodeString; override;
  48336. class function Cast(const Intf: IJSObject): IJSCSSPropertyRule;
  48337. property name: UTF8String read _Getname;
  48338. property syntax: UTF8String read _Getsyntax;
  48339. property inherits: Boolean read _Getinherits;
  48340. property initialValue: UTF8String read _GetinitialValue;
  48341. end;
  48342. { --------------------------------------------------------------------
  48343. TJSCSSStyleSheet
  48344. --------------------------------------------------------------------}
  48345. IJSCSSStyleSheet = interface(IJSStyleSheet)
  48346. ['{CBEA9F79-9F3A-312F-8439-3B9DFE5F999C}']
  48347. function _GetownerRule: IJSCSSRule;
  48348. function _GetcssRules: IJSCSSRuleList;
  48349. function _Getrules: IJSCSSRuleList;
  48350. function insertRule(const aRule: UTF8String; aIndex: Cardinal): Cardinal;
  48351. function insertRule(const aRule: UTF8String): Cardinal;
  48352. procedure deleteRule(aIndex: Cardinal);
  48353. function replace(const aText: UTF8String): IJSPromise; // Promise<CSSStyleSheet>
  48354. procedure replaceSync(const aText: UTF8String);
  48355. procedure removeRule(aIndex: Cardinal);
  48356. procedure removeRule;
  48357. function addRule(const aSelector: UTF8String; const aStyle: UTF8String; aIndex: Cardinal): LongInt;
  48358. function addRule: LongInt;
  48359. function addRule(const aSelector: UTF8String): LongInt;
  48360. function addRule(const aSelector: UTF8String; const aStyle: UTF8String): LongInt;
  48361. property ownerRule: IJSCSSRule read _GetownerRule;
  48362. property cssRules: IJSCSSRuleList read _GetcssRules;
  48363. property rules: IJSCSSRuleList read _Getrules;
  48364. end;
  48365. TJSCSSStyleSheet = class(TJSStyleSheet,IJSCSSStyleSheet)
  48366. Protected
  48367. function _GetownerRule: IJSCSSRule;
  48368. function _GetcssRules: IJSCSSRuleList;
  48369. function _Getrules: IJSCSSRuleList;
  48370. Public
  48371. constructor Create(const aOptions: TJSCSSStyleSheetInit); overload;
  48372. constructor Create; overload;
  48373. function insertRule(const aRule: UTF8String; aIndex: Cardinal): Cardinal; overload;
  48374. function insertRule(const aRule: UTF8String): Cardinal; overload;
  48375. procedure deleteRule(aIndex: Cardinal); overload;
  48376. function replace(const aText: UTF8String): IJSPromise; overload; // Promise<CSSStyleSheet>
  48377. procedure replaceSync(const aText: UTF8String); overload;
  48378. procedure removeRule(aIndex: Cardinal); overload;
  48379. procedure removeRule; overload;
  48380. function addRule(const aSelector: UTF8String; const aStyle: UTF8String; aIndex: Cardinal): LongInt; overload;
  48381. function addRule: LongInt; overload;
  48382. function addRule(const aSelector: UTF8String): LongInt; overload;
  48383. function addRule(const aSelector: UTF8String; const aStyle: UTF8String): LongInt; overload;
  48384. class function JSClassName: UnicodeString; override;
  48385. class function Cast(const Intf: IJSObject): IJSCSSStyleSheet;
  48386. property ownerRule: IJSCSSRule read _GetownerRule;
  48387. property cssRules: IJSCSSRuleList read _GetcssRules;
  48388. property rules: IJSCSSRuleList read _Getrules;
  48389. end;
  48390. { --------------------------------------------------------------------
  48391. TJSCustomEvent
  48392. --------------------------------------------------------------------}
  48393. IJSCustomEvent = interface(IJSEvent)
  48394. ['{B8FAD12B-D16E-3A78-AD46-A200048D9B54}']
  48395. function _Getdetail: Variant;
  48396. procedure initCustomEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aDetail: Variant);
  48397. procedure initCustomEvent(const aType_: UnicodeString);
  48398. procedure initCustomEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  48399. procedure initCustomEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  48400. property detail: Variant read _Getdetail;
  48401. end;
  48402. TJSCustomEvent = class(TJSEvent,IJSCustomEvent)
  48403. Protected
  48404. function _Getdetail: Variant;
  48405. Public
  48406. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSCustomEventInit); overload;
  48407. constructor Create(const aType_: UnicodeString); overload;
  48408. procedure initCustomEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aDetail: Variant); overload;
  48409. procedure initCustomEvent(const aType_: UnicodeString); overload;
  48410. procedure initCustomEvent(const aType_: UnicodeString; aCanBubble: Boolean); overload;
  48411. procedure initCustomEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean); overload;
  48412. class function JSClassName: UnicodeString; override;
  48413. class function Cast(const Intf: IJSObject): IJSCustomEvent;
  48414. property detail: Variant read _Getdetail;
  48415. end;
  48416. { --------------------------------------------------------------------
  48417. TJSDecompressionStream
  48418. --------------------------------------------------------------------}
  48419. IJSDecompressionStream = interface(IJSGenericTransformStream)
  48420. ['{A65B9AE3-8714-3C8C-BC97-E0AC5ED9C9AD}']
  48421. end;
  48422. TJSDecompressionStream = class(TJSGenericTransformStream,IJSDecompressionStream)
  48423. Protected
  48424. Public
  48425. constructor Create(aFormat: TCompressionFormat); overload;
  48426. class function JSClassName: UnicodeString; override;
  48427. class function Cast(const Intf: IJSObject): IJSDecompressionStream;
  48428. end;
  48429. { --------------------------------------------------------------------
  48430. TJSDeviceLightEvent
  48431. --------------------------------------------------------------------}
  48432. IJSDeviceLightEvent = interface(IJSEvent)
  48433. ['{F19CBD72-8CBA-3D2B-B438-CA916403B1A9}']
  48434. function _Getvalue: Double;
  48435. property value: Double read _Getvalue;
  48436. end;
  48437. TJSDeviceLightEvent = class(TJSEvent,IJSDeviceLightEvent)
  48438. Protected
  48439. function _Getvalue: Double;
  48440. Public
  48441. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSDeviceLightEventInit); overload;
  48442. constructor Create(const aType_: UnicodeString); overload;
  48443. class function JSClassName: UnicodeString; override;
  48444. class function Cast(const Intf: IJSObject): IJSDeviceLightEvent;
  48445. property value: Double read _Getvalue;
  48446. end;
  48447. { --------------------------------------------------------------------
  48448. TJSDeviceMotionEvent
  48449. --------------------------------------------------------------------}
  48450. IJSDeviceMotionEvent = interface(IJSEvent)
  48451. ['{ACE340CF-AF08-3D7E-9F9F-527A410380C9}']
  48452. function _Getacceleration: IJSDeviceAcceleration;
  48453. function _GetaccelerationIncludingGravity: IJSDeviceAcceleration;
  48454. function _GetrotationRate: IJSDeviceRotationRate;
  48455. function _Getinterval: Double;
  48456. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit; const aAccelerationIncludingGravity: TJSDeviceAccelerationInit; const aRotationRate: TJSDeviceRotationRateInit; aInterval: Double);
  48457. procedure initDeviceMotionEvent(const aType_: UnicodeString);
  48458. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  48459. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  48460. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit);
  48461. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit; const aAccelerationIncludingGravity: TJSDeviceAccelerationInit);
  48462. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit; const aAccelerationIncludingGravity: TJSDeviceAccelerationInit; const aRotationRate: TJSDeviceRotationRateInit);
  48463. property acceleration: IJSDeviceAcceleration read _Getacceleration;
  48464. property accelerationIncludingGravity: IJSDeviceAcceleration read _GetaccelerationIncludingGravity;
  48465. property rotationRate: IJSDeviceRotationRate read _GetrotationRate;
  48466. property interval: Double read _Getinterval;
  48467. end;
  48468. TJSDeviceMotionEvent = class(TJSEvent,IJSDeviceMotionEvent)
  48469. Protected
  48470. function _Getacceleration: IJSDeviceAcceleration;
  48471. function _GetaccelerationIncludingGravity: IJSDeviceAcceleration;
  48472. function _GetrotationRate: IJSDeviceRotationRate;
  48473. function _Getinterval: Double;
  48474. Public
  48475. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSDeviceMotionEventInit); overload;
  48476. constructor Create(const aType_: UnicodeString); overload;
  48477. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit; const aAccelerationIncludingGravity: TJSDeviceAccelerationInit; const aRotationRate: TJSDeviceRotationRateInit; aInterval: Double); overload;
  48478. procedure initDeviceMotionEvent(const aType_: UnicodeString); overload;
  48479. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean); overload;
  48480. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean); overload;
  48481. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit); overload;
  48482. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit; const aAccelerationIncludingGravity: TJSDeviceAccelerationInit); overload;
  48483. procedure initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit; const aAccelerationIncludingGravity: TJSDeviceAccelerationInit; const aRotationRate: TJSDeviceRotationRateInit); overload;
  48484. class function JSClassName: UnicodeString; override;
  48485. class function Cast(const Intf: IJSObject): IJSDeviceMotionEvent;
  48486. property acceleration: IJSDeviceAcceleration read _Getacceleration;
  48487. property accelerationIncludingGravity: IJSDeviceAcceleration read _GetaccelerationIncludingGravity;
  48488. property rotationRate: IJSDeviceRotationRate read _GetrotationRate;
  48489. property interval: Double read _Getinterval;
  48490. end;
  48491. { --------------------------------------------------------------------
  48492. TJSDeviceOrientationEvent
  48493. --------------------------------------------------------------------}
  48494. IJSDeviceOrientationEvent = interface(IJSEvent)
  48495. ['{303F7D04-EC9D-3D4A-9E15-597DF3F8DAEC}']
  48496. function _Getalpha: Double;
  48497. function _Getbeta: Double;
  48498. function _Getgamma: Double;
  48499. function _Getabsolute_: Boolean;
  48500. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double; aBeta: Double; aGamma: Double; aAbsolute_: Boolean);
  48501. procedure initDeviceOrientationEvent(const aType_: UnicodeString);
  48502. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  48503. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  48504. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double);
  48505. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double; aBeta: Double);
  48506. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double; aBeta: Double; aGamma: Double);
  48507. property alpha: Double read _Getalpha;
  48508. property beta: Double read _Getbeta;
  48509. property gamma: Double read _Getgamma;
  48510. property absolute_: Boolean read _Getabsolute_;
  48511. end;
  48512. TJSDeviceOrientationEvent = class(TJSEvent,IJSDeviceOrientationEvent)
  48513. Protected
  48514. function _Getalpha: Double;
  48515. function _Getbeta: Double;
  48516. function _Getgamma: Double;
  48517. function _Getabsolute_: Boolean;
  48518. Public
  48519. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSDeviceOrientationEventInit); overload;
  48520. constructor Create(const aType_: UnicodeString); overload;
  48521. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double; aBeta: Double; aGamma: Double; aAbsolute_: Boolean); overload;
  48522. procedure initDeviceOrientationEvent(const aType_: UnicodeString); overload;
  48523. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean); overload;
  48524. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean); overload;
  48525. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double); overload;
  48526. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double; aBeta: Double); overload;
  48527. procedure initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double; aBeta: Double; aGamma: Double); overload;
  48528. class function JSClassName: UnicodeString; override;
  48529. class function Cast(const Intf: IJSObject): IJSDeviceOrientationEvent;
  48530. property alpha: Double read _Getalpha;
  48531. property beta: Double read _Getbeta;
  48532. property gamma: Double read _Getgamma;
  48533. property absolute_: Boolean read _Getabsolute_;
  48534. end;
  48535. { --------------------------------------------------------------------
  48536. TJSDocumentTimeline
  48537. --------------------------------------------------------------------}
  48538. IJSDocumentTimeline = interface(IJSAnimationTimeline)
  48539. ['{E9F05D28-276D-3425-81C6-8856CF1208DB}']
  48540. end;
  48541. TJSDocumentTimeline = class(TJSAnimationTimeline,IJSDocumentTimeline)
  48542. Protected
  48543. Public
  48544. constructor Create(const aOptions: TJSDocumentTimelineOptions); overload;
  48545. constructor Create; overload;
  48546. class function JSClassName: UnicodeString; override;
  48547. class function Cast(const Intf: IJSObject): IJSDocumentTimeline;
  48548. end;
  48549. { --------------------------------------------------------------------
  48550. TJSException
  48551. --------------------------------------------------------------------}
  48552. IJSException = interface(IJSExceptionMembers)
  48553. ['{BB797CE8-9A0C-3C58-81DB-BB8658F9BA52}']
  48554. function _Getname: UnicodeString;
  48555. function _Getmessage: UnicodeString;
  48556. property name: UnicodeString read _Getname;
  48557. property message: UnicodeString read _Getmessage;
  48558. end;
  48559. TJSException = class(TJSExceptionMembers,IJSException)
  48560. Protected
  48561. function _Getname: UnicodeString;
  48562. function _Getmessage: UnicodeString;
  48563. Public
  48564. class function JSClassName: UnicodeString; override;
  48565. class function Cast(const Intf: IJSObject): IJSException;
  48566. property name: UnicodeString read _Getname;
  48567. property message: UnicodeString read _Getmessage;
  48568. end;
  48569. { --------------------------------------------------------------------
  48570. TJSDOMException
  48571. --------------------------------------------------------------------}
  48572. IJSDOMException = interface(IJSExceptionMembers)
  48573. ['{2C6C3F00-89B2-35A4-9A7A-4447C02EEAAA}']
  48574. function _Getname: UnicodeString;
  48575. function _Getmessage: UnicodeString;
  48576. function _Getcode: Word;
  48577. property name: UnicodeString read _Getname;
  48578. property message: UnicodeString read _Getmessage;
  48579. property code: Word read _Getcode;
  48580. end;
  48581. TJSDOMException = class(TJSExceptionMembers,IJSDOMException)
  48582. Protected
  48583. function _Getname: UnicodeString;
  48584. function _Getmessage: UnicodeString;
  48585. function _Getcode: Word;
  48586. Public
  48587. Const
  48588. INDEX_SIZE_ERR = 1;
  48589. DOMSTRING_SIZE_ERR = 2;
  48590. HIERARCHY_REQUEST_ERR = 3;
  48591. WRONG_DOCUMENT_ERR = 4;
  48592. INVALID_CHARACTER_ERR = 5;
  48593. NO_DATA_ALLOWED_ERR = 6;
  48594. NO_MODIFICATION_ALLOWED_ERR = 7;
  48595. NOT_FOUND_ERR = 8;
  48596. NOT_SUPPORTED_ERR = 9;
  48597. INUSE_ATTRIBUTE_ERR = 10;
  48598. INVALID_STATE_ERR = 11;
  48599. SYNTAX_ERR = 12;
  48600. INVALID_MODIFICATION_ERR = 13;
  48601. NAMESPACE_ERR = 14;
  48602. INVALID_ACCESS_ERR = 15;
  48603. VALIDATION_ERR = 16;
  48604. TYPE_MISMATCH_ERR = 17;
  48605. SECURITY_ERR = 18;
  48606. NETWORK_ERR = 19;
  48607. ABORT_ERR = 20;
  48608. URL_MISMATCH_ERR = 21;
  48609. QUOTA_EXCEEDED_ERR = 22;
  48610. TIMEOUT_ERR = 23;
  48611. INVALID_NODE_TYPE_ERR = 24;
  48612. DATA_CLONE_ERR = 25;
  48613. Public
  48614. constructor Create(const aMessage: UnicodeString; const aName: UnicodeString); overload;
  48615. constructor Create; overload;
  48616. constructor Create(const aMessage: UnicodeString); overload;
  48617. class function JSClassName: UnicodeString; override;
  48618. class function Cast(const Intf: IJSObject): IJSDOMException;
  48619. property name: UnicodeString read _Getname;
  48620. property message: UnicodeString read _Getmessage;
  48621. property code: Word read _Getcode;
  48622. end;
  48623. { --------------------------------------------------------------------
  48624. TJSDOMLocalization
  48625. --------------------------------------------------------------------}
  48626. IJSDOMLocalization = interface(IJSLocalization)
  48627. ['{D233ABB2-08D5-3C3B-961E-82BAEB6AA7E2}']
  48628. procedure connectRoot(aAElement: IJSNode);
  48629. procedure disconnectRoot(aAElement: IJSNode);
  48630. procedure pauseObserving;
  48631. procedure resumeObserving;
  48632. procedure setAttributes(aAElement: IJSElement; const aAId: UnicodeString; aAArgs: IJSObject);
  48633. procedure setAttributes(aAElement: IJSElement; const aAId: UnicodeString);
  48634. function getAttributes(aAElement: IJSElement): TJSL10nIdArgs;
  48635. procedure setArgs(aAElement: IJSElement; aAArgs: IJSObject);
  48636. procedure setArgs(aAElement: IJSElement);
  48637. function translateFragment(aANode: IJSNode): IJSPromise; // Promise<any>
  48638. function translateElements(const aAElements: TJSElementDynArray): IJSPromise; // Promise<undefined>
  48639. function translateRoots: IJSPromise; // Promise<undefined>
  48640. end;
  48641. TJSDOMLocalization = class(TJSLocalization,IJSDOMLocalization)
  48642. Protected
  48643. Public
  48644. constructor Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean; aARegistry: IJSObject; const aALocales: TUTF8StringDynArray); overload;
  48645. constructor Create(const aAResourceIds: TDOMStringDynArray); overload;
  48646. constructor Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean); overload;
  48647. constructor Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean; aARegistry: IJSObject); overload;
  48648. procedure connectRoot(aAElement: IJSNode); overload;
  48649. procedure disconnectRoot(aAElement: IJSNode); overload;
  48650. procedure pauseObserving; overload;
  48651. procedure resumeObserving; overload;
  48652. procedure setAttributes(aAElement: IJSElement; const aAId: UnicodeString; aAArgs: IJSObject); overload;
  48653. procedure setAttributes(aAElement: IJSElement; const aAId: UnicodeString); overload;
  48654. function getAttributes(aAElement: IJSElement): TJSL10nIdArgs; overload;
  48655. procedure setArgs(aAElement: IJSElement; aAArgs: IJSObject); overload;
  48656. procedure setArgs(aAElement: IJSElement); overload;
  48657. function translateFragment(aANode: IJSNode): IJSPromise; overload; // Promise<any>
  48658. function translateElements(const aAElements: TJSElementDynArray): IJSPromise; overload; // Promise<undefined>
  48659. function translateRoots: IJSPromise; overload; // Promise<undefined>
  48660. class function JSClassName: UnicodeString; override;
  48661. class function Cast(const Intf: IJSObject): IJSDOMLocalization;
  48662. end;
  48663. { --------------------------------------------------------------------
  48664. TJSDOMMatrix
  48665. --------------------------------------------------------------------}
  48666. // Union of UTF8String, sequence, DOMMatrixReadOnly
  48667. TDOMMatrix_New_init_Type = Variant;
  48668. IJSDOMMatrix = interface(IJSDOMMatrixReadOnly)
  48669. ['{5AB58B4D-E63F-3E20-81EC-0889BBDA95F7}']
  48670. function _Geta2: Double;
  48671. function _Getb2: Double;
  48672. function _Getc2: Double;
  48673. function _Getd2: Double;
  48674. function _Gete2: Double;
  48675. function _Getf2: Double;
  48676. function _Getm112: Double;
  48677. function _Getm122: Double;
  48678. function _Getm132: Double;
  48679. function _Getm142: Double;
  48680. function _Getm212: Double;
  48681. function _Getm222: Double;
  48682. function _Getm232: Double;
  48683. function _Getm242: Double;
  48684. function _Getm312: Double;
  48685. function _Getm322: Double;
  48686. function _Getm332: Double;
  48687. function _Getm342: Double;
  48688. function _Getm412: Double;
  48689. function _Getm422: Double;
  48690. function _Getm432: Double;
  48691. function _Getm442: Double;
  48692. procedure _Seta2(const aValue: Double);
  48693. procedure _Setb2(const aValue: Double);
  48694. procedure _Setc2(const aValue: Double);
  48695. procedure _Setd2(const aValue: Double);
  48696. procedure _Sete2(const aValue: Double);
  48697. procedure _Setf2(const aValue: Double);
  48698. procedure _Setm112(const aValue: Double);
  48699. procedure _Setm122(const aValue: Double);
  48700. procedure _Setm132(const aValue: Double);
  48701. procedure _Setm142(const aValue: Double);
  48702. procedure _Setm212(const aValue: Double);
  48703. procedure _Setm222(const aValue: Double);
  48704. procedure _Setm232(const aValue: Double);
  48705. procedure _Setm242(const aValue: Double);
  48706. procedure _Setm312(const aValue: Double);
  48707. procedure _Setm322(const aValue: Double);
  48708. procedure _Setm332(const aValue: Double);
  48709. procedure _Setm342(const aValue: Double);
  48710. procedure _Setm412(const aValue: Double);
  48711. procedure _Setm422(const aValue: Double);
  48712. procedure _Setm432(const aValue: Double);
  48713. procedure _Setm442(const aValue: Double);
  48714. function multiplySelf(const aOther: TJSDOMMatrixInit): IJSDOMMatrix;
  48715. function multiplySelf: IJSDOMMatrix;
  48716. function preMultiplySelf(const aOther: TJSDOMMatrixInit): IJSDOMMatrix;
  48717. function preMultiplySelf: IJSDOMMatrix;
  48718. function translateSelf(aTx: Double; aTy: Double; aTz: Double): IJSDOMMatrix;
  48719. function translateSelf: IJSDOMMatrix;
  48720. function translateSelf(aTx: Double): IJSDOMMatrix;
  48721. function translateSelf(aTx: Double; aTy: Double): IJSDOMMatrix;
  48722. function scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix;
  48723. function scaleSelf: IJSDOMMatrix;
  48724. function scaleSelf(aScaleX: Double): IJSDOMMatrix;
  48725. function scaleSelf(aScaleX: Double; aScaleY: Double): IJSDOMMatrix;
  48726. function scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double): IJSDOMMatrix;
  48727. function scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double): IJSDOMMatrix;
  48728. function scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix;
  48729. function scale3dSelf(aScale: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix;
  48730. function scale3dSelf: IJSDOMMatrix;
  48731. function scale3dSelf(aScale: Double): IJSDOMMatrix;
  48732. function scale3dSelf(aScale: Double; aOriginX: Double): IJSDOMMatrix;
  48733. function scale3dSelf(aScale: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix;
  48734. function rotateSelf(aRotX: Double; aRotY: Double; aRotZ: Double): IJSDOMMatrix;
  48735. function rotateSelf: IJSDOMMatrix;
  48736. function rotateSelf(aRotX: Double): IJSDOMMatrix;
  48737. function rotateSelf(aRotX: Double; aRotY: Double): IJSDOMMatrix;
  48738. function rotateFromVectorSelf(aX: Double; aY: Double): IJSDOMMatrix;
  48739. function rotateFromVectorSelf: IJSDOMMatrix;
  48740. function rotateFromVectorSelf(aX: Double): IJSDOMMatrix;
  48741. function rotateAxisAngleSelf(aX: Double; aY: Double; aZ: Double; aAngle: Double): IJSDOMMatrix;
  48742. function rotateAxisAngleSelf: IJSDOMMatrix;
  48743. function rotateAxisAngleSelf(aX: Double): IJSDOMMatrix;
  48744. function rotateAxisAngleSelf(aX: Double; aY: Double): IJSDOMMatrix;
  48745. function rotateAxisAngleSelf(aX: Double; aY: Double; aZ: Double): IJSDOMMatrix;
  48746. function skewXSelf(aSx: Double): IJSDOMMatrix;
  48747. function skewXSelf: IJSDOMMatrix;
  48748. function skewYSelf(aSy: Double): IJSDOMMatrix;
  48749. function skewYSelf: IJSDOMMatrix;
  48750. function invertSelf: IJSDOMMatrix;
  48751. function setMatrixValue(const aTransformList: UTF8String): IJSDOMMatrix;
  48752. property a: Double read _Geta2 write _Seta2;
  48753. property b: Double read _Getb2 write _Setb2;
  48754. property c: Double read _Getc2 write _Setc2;
  48755. property d: Double read _Getd2 write _Setd2;
  48756. property e: Double read _Gete2 write _Sete2;
  48757. property f: Double read _Getf2 write _Setf2;
  48758. property m11: Double read _Getm112 write _Setm112;
  48759. property m12: Double read _Getm122 write _Setm122;
  48760. property m13: Double read _Getm132 write _Setm132;
  48761. property m14: Double read _Getm142 write _Setm142;
  48762. property m21: Double read _Getm212 write _Setm212;
  48763. property m22: Double read _Getm222 write _Setm222;
  48764. property m23: Double read _Getm232 write _Setm232;
  48765. property m24: Double read _Getm242 write _Setm242;
  48766. property m31: Double read _Getm312 write _Setm312;
  48767. property m32: Double read _Getm322 write _Setm322;
  48768. property m33: Double read _Getm332 write _Setm332;
  48769. property m34: Double read _Getm342 write _Setm342;
  48770. property m41: Double read _Getm412 write _Setm412;
  48771. property m42: Double read _Getm422 write _Setm422;
  48772. property m43: Double read _Getm432 write _Setm432;
  48773. property m44: Double read _Getm442 write _Setm442;
  48774. end;
  48775. TJSDOMMatrix = class(TJSDOMMatrixReadOnly,IJSDOMMatrix)
  48776. Protected
  48777. function _Geta2: Double;
  48778. function _Getb2: Double;
  48779. function _Getc2: Double;
  48780. function _Getd2: Double;
  48781. function _Gete2: Double;
  48782. function _Getf2: Double;
  48783. function _Getm112: Double;
  48784. function _Getm122: Double;
  48785. function _Getm132: Double;
  48786. function _Getm142: Double;
  48787. function _Getm212: Double;
  48788. function _Getm222: Double;
  48789. function _Getm232: Double;
  48790. function _Getm242: Double;
  48791. function _Getm312: Double;
  48792. function _Getm322: Double;
  48793. function _Getm332: Double;
  48794. function _Getm342: Double;
  48795. function _Getm412: Double;
  48796. function _Getm422: Double;
  48797. function _Getm432: Double;
  48798. function _Getm442: Double;
  48799. procedure _Seta2(const aValue: Double);
  48800. procedure _Setb2(const aValue: Double);
  48801. procedure _Setc2(const aValue: Double);
  48802. procedure _Setd2(const aValue: Double);
  48803. procedure _Sete2(const aValue: Double);
  48804. procedure _Setf2(const aValue: Double);
  48805. procedure _Setm112(const aValue: Double);
  48806. procedure _Setm122(const aValue: Double);
  48807. procedure _Setm132(const aValue: Double);
  48808. procedure _Setm142(const aValue: Double);
  48809. procedure _Setm212(const aValue: Double);
  48810. procedure _Setm222(const aValue: Double);
  48811. procedure _Setm232(const aValue: Double);
  48812. procedure _Setm242(const aValue: Double);
  48813. procedure _Setm312(const aValue: Double);
  48814. procedure _Setm322(const aValue: Double);
  48815. procedure _Setm332(const aValue: Double);
  48816. procedure _Setm342(const aValue: Double);
  48817. procedure _Setm412(const aValue: Double);
  48818. procedure _Setm422(const aValue: Double);
  48819. procedure _Setm432(const aValue: Double);
  48820. procedure _Setm442(const aValue: Double);
  48821. Public
  48822. constructor Create(aInit: IJSDOMMatrixReadOnly); overload;
  48823. constructor Create; overload;
  48824. constructor Create(const aInit: TDoubleDynArray); overload;
  48825. constructor Create(const aInit: UTF8String); overload;
  48826. function fromMatrix(const aOther: TJSDOMMatrixInit): IJSDOMMatrix; overload;
  48827. function fromMatrix: IJSDOMMatrix; overload;
  48828. function fromFloat32Array(aArray32: IJSFloat32Array): IJSDOMMatrix; overload;
  48829. function fromFloat64Array(aArray64: IJSFloat64Array): IJSDOMMatrix; overload;
  48830. function multiplySelf(const aOther: TJSDOMMatrixInit): IJSDOMMatrix; overload;
  48831. function multiplySelf: IJSDOMMatrix; overload;
  48832. function preMultiplySelf(const aOther: TJSDOMMatrixInit): IJSDOMMatrix; overload;
  48833. function preMultiplySelf: IJSDOMMatrix; overload;
  48834. function translateSelf(aTx: Double; aTy: Double; aTz: Double): IJSDOMMatrix; overload;
  48835. function translateSelf: IJSDOMMatrix; overload;
  48836. function translateSelf(aTx: Double): IJSDOMMatrix; overload;
  48837. function translateSelf(aTx: Double; aTy: Double): IJSDOMMatrix; overload;
  48838. function scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix; overload;
  48839. function scaleSelf: IJSDOMMatrix; overload;
  48840. function scaleSelf(aScaleX: Double): IJSDOMMatrix; overload;
  48841. function scaleSelf(aScaleX: Double; aScaleY: Double): IJSDOMMatrix; overload;
  48842. function scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double): IJSDOMMatrix; overload;
  48843. function scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double): IJSDOMMatrix; overload;
  48844. function scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix; overload;
  48845. function scale3dSelf(aScale: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix; overload;
  48846. function scale3dSelf: IJSDOMMatrix; overload;
  48847. function scale3dSelf(aScale: Double): IJSDOMMatrix; overload;
  48848. function scale3dSelf(aScale: Double; aOriginX: Double): IJSDOMMatrix; overload;
  48849. function scale3dSelf(aScale: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix; overload;
  48850. function rotateSelf(aRotX: Double; aRotY: Double; aRotZ: Double): IJSDOMMatrix; overload;
  48851. function rotateSelf: IJSDOMMatrix; overload;
  48852. function rotateSelf(aRotX: Double): IJSDOMMatrix; overload;
  48853. function rotateSelf(aRotX: Double; aRotY: Double): IJSDOMMatrix; overload;
  48854. function rotateFromVectorSelf(aX: Double; aY: Double): IJSDOMMatrix; overload;
  48855. function rotateFromVectorSelf: IJSDOMMatrix; overload;
  48856. function rotateFromVectorSelf(aX: Double): IJSDOMMatrix; overload;
  48857. function rotateAxisAngleSelf(aX: Double; aY: Double; aZ: Double; aAngle: Double): IJSDOMMatrix; overload;
  48858. function rotateAxisAngleSelf: IJSDOMMatrix; overload;
  48859. function rotateAxisAngleSelf(aX: Double): IJSDOMMatrix; overload;
  48860. function rotateAxisAngleSelf(aX: Double; aY: Double): IJSDOMMatrix; overload;
  48861. function rotateAxisAngleSelf(aX: Double; aY: Double; aZ: Double): IJSDOMMatrix; overload;
  48862. function skewXSelf(aSx: Double): IJSDOMMatrix; overload;
  48863. function skewXSelf: IJSDOMMatrix; overload;
  48864. function skewYSelf(aSy: Double): IJSDOMMatrix; overload;
  48865. function skewYSelf: IJSDOMMatrix; overload;
  48866. function invertSelf: IJSDOMMatrix; overload;
  48867. function setMatrixValue(const aTransformList: UTF8String): IJSDOMMatrix; overload;
  48868. class function JSClassName: UnicodeString; override;
  48869. class function Cast(const Intf: IJSObject): IJSDOMMatrix;
  48870. property a: Double read _Geta2 write _Seta2;
  48871. property b: Double read _Getb2 write _Setb2;
  48872. property c: Double read _Getc2 write _Setc2;
  48873. property d: Double read _Getd2 write _Setd2;
  48874. property e: Double read _Gete2 write _Sete2;
  48875. property f: Double read _Getf2 write _Setf2;
  48876. property m11: Double read _Getm112 write _Setm112;
  48877. property m12: Double read _Getm122 write _Setm122;
  48878. property m13: Double read _Getm132 write _Setm132;
  48879. property m14: Double read _Getm142 write _Setm142;
  48880. property m21: Double read _Getm212 write _Setm212;
  48881. property m22: Double read _Getm222 write _Setm222;
  48882. property m23: Double read _Getm232 write _Setm232;
  48883. property m24: Double read _Getm242 write _Setm242;
  48884. property m31: Double read _Getm312 write _Setm312;
  48885. property m32: Double read _Getm322 write _Setm322;
  48886. property m33: Double read _Getm332 write _Setm332;
  48887. property m34: Double read _Getm342 write _Setm342;
  48888. property m41: Double read _Getm412 write _Setm412;
  48889. property m42: Double read _Getm422 write _Setm422;
  48890. property m43: Double read _Getm432 write _Setm432;
  48891. property m44: Double read _Getm442 write _Setm442;
  48892. end;
  48893. { --------------------------------------------------------------------
  48894. TJSDOMPoint
  48895. --------------------------------------------------------------------}
  48896. IJSDOMPoint = interface(IJSDOMPointReadOnly)
  48897. ['{99C3FF21-291B-334E-BE70-12E3446261EF}']
  48898. function _Getx2: Double;
  48899. function _Gety2: Double;
  48900. function _Getz2: Double;
  48901. function _Getw2: Double;
  48902. procedure _Setx2(const aValue: Double);
  48903. procedure _Sety2(const aValue: Double);
  48904. procedure _Setz2(const aValue: Double);
  48905. procedure _Setw2(const aValue: Double);
  48906. property x: Double read _Getx2 write _Setx2;
  48907. property y: Double read _Gety2 write _Sety2;
  48908. property z: Double read _Getz2 write _Setz2;
  48909. property w: Double read _Getw2 write _Setw2;
  48910. end;
  48911. TJSDOMPoint = class(TJSDOMPointReadOnly,IJSDOMPoint)
  48912. Protected
  48913. function _Getx2: Double;
  48914. function _Gety2: Double;
  48915. function _Getz2: Double;
  48916. function _Getw2: Double;
  48917. procedure _Setx2(const aValue: Double);
  48918. procedure _Sety2(const aValue: Double);
  48919. procedure _Setz2(const aValue: Double);
  48920. procedure _Setw2(const aValue: Double);
  48921. Public
  48922. constructor Create(aX: Double; aY: Double; aZ: Double; aW: Double); overload;
  48923. constructor Create; overload;
  48924. constructor Create(aX: Double); overload;
  48925. constructor Create(aX: Double; aY: Double); overload;
  48926. constructor Create(aX: Double; aY: Double; aZ: Double); overload;
  48927. function fromPoint(const aOther: TJSDOMPointInit): IJSDOMPoint; overload;
  48928. function fromPoint: IJSDOMPoint; overload;
  48929. class function JSClassName: UnicodeString; override;
  48930. class function Cast(const Intf: IJSObject): IJSDOMPoint;
  48931. property x: Double read _Getx2 write _Setx2;
  48932. property y: Double read _Gety2 write _Sety2;
  48933. property z: Double read _Getz2 write _Setz2;
  48934. property w: Double read _Getw2 write _Setw2;
  48935. end;
  48936. { --------------------------------------------------------------------
  48937. TJSDOMRect
  48938. --------------------------------------------------------------------}
  48939. IJSDOMRect = interface(IJSDOMRectReadOnly)
  48940. ['{491BD5AD-8D74-3F01-BC3C-2DF00C3E9384}']
  48941. function _Getx2: Double;
  48942. function _Gety2: Double;
  48943. function _Getwidth2: Double;
  48944. function _Getheight2: Double;
  48945. procedure _Setx2(const aValue: Double);
  48946. procedure _Sety2(const aValue: Double);
  48947. procedure _Setwidth2(const aValue: Double);
  48948. procedure _Setheight2(const aValue: Double);
  48949. property x: Double read _Getx2 write _Setx2;
  48950. property y: Double read _Gety2 write _Sety2;
  48951. property width: Double read _Getwidth2 write _Setwidth2;
  48952. property height: Double read _Getheight2 write _Setheight2;
  48953. end;
  48954. TJSDOMRect = class(TJSDOMRectReadOnly,IJSDOMRect)
  48955. Protected
  48956. function _Getx2: Double;
  48957. function _Gety2: Double;
  48958. function _Getwidth2: Double;
  48959. function _Getheight2: Double;
  48960. procedure _Setx2(const aValue: Double);
  48961. procedure _Sety2(const aValue: Double);
  48962. procedure _Setwidth2(const aValue: Double);
  48963. procedure _Setheight2(const aValue: Double);
  48964. Public
  48965. constructor Create(aX: Double; aY: Double; aWidth: Double; aHeight: Double); overload;
  48966. constructor Create; overload;
  48967. constructor Create(aX: Double); overload;
  48968. constructor Create(aX: Double; aY: Double); overload;
  48969. constructor Create(aX: Double; aY: Double; aWidth: Double); overload;
  48970. function fromRect(const aOther: TJSDOMRectInit): IJSDOMRect; overload;
  48971. function fromRect: IJSDOMRect; overload;
  48972. class function JSClassName: UnicodeString; override;
  48973. class function Cast(const Intf: IJSObject): IJSDOMRect;
  48974. property x: Double read _Getx2 write _Setx2;
  48975. property y: Double read _Gety2 write _Sety2;
  48976. property width: Double read _Getwidth2 write _Setwidth2;
  48977. property height: Double read _Getheight2 write _Setheight2;
  48978. end;
  48979. { --------------------------------------------------------------------
  48980. TJSErrorEvent
  48981. --------------------------------------------------------------------}
  48982. IJSErrorEvent = interface(IJSEvent)
  48983. ['{5B392ECE-78EF-3096-ACB5-E810F576E0A2}']
  48984. function _Getmessage: UnicodeString;
  48985. function _Getfilename: UnicodeString;
  48986. function _Getlineno: Cardinal;
  48987. function _Getcolno: Cardinal;
  48988. function _Geterror: Variant;
  48989. property message: UnicodeString read _Getmessage;
  48990. property filename: UnicodeString read _Getfilename;
  48991. property lineno: Cardinal read _Getlineno;
  48992. property colno: Cardinal read _Getcolno;
  48993. property error: Variant read _Geterror;
  48994. end;
  48995. TJSErrorEvent = class(TJSEvent,IJSErrorEvent)
  48996. Protected
  48997. function _Getmessage: UnicodeString;
  48998. function _Getfilename: UnicodeString;
  48999. function _Getlineno: Cardinal;
  49000. function _Getcolno: Cardinal;
  49001. function _Geterror: Variant;
  49002. Public
  49003. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSErrorEventInit); overload;
  49004. constructor Create(const aType_: UnicodeString); overload;
  49005. class function JSClassName: UnicodeString; override;
  49006. class function Cast(const Intf: IJSObject): IJSErrorEvent;
  49007. property message: UnicodeString read _Getmessage;
  49008. property filename: UnicodeString read _Getfilename;
  49009. property lineno: Cardinal read _Getlineno;
  49010. property colno: Cardinal read _Getcolno;
  49011. property error: Variant read _Geterror;
  49012. end;
  49013. { --------------------------------------------------------------------
  49014. TJSEventSource
  49015. --------------------------------------------------------------------}
  49016. IJSEventSource = interface(IJSEventTarget)
  49017. ['{70C77BD3-B91C-3FBA-AC3F-B812771B162A}']
  49018. function _Geturl: UnicodeString;
  49019. function _GetwithCredentials: Boolean;
  49020. function _GetreadyState: Word;
  49021. function _Getonopen: TEventHandler;
  49022. function _Getonmessage: TEventHandler;
  49023. function _Getonerror: TEventHandler;
  49024. procedure _Setonopen(const aValue: TEventHandler);
  49025. procedure _Setonmessage(const aValue: TEventHandler);
  49026. procedure _Setonerror(const aValue: TEventHandler);
  49027. procedure close;
  49028. property url: UnicodeString read _Geturl;
  49029. property withCredentials: Boolean read _GetwithCredentials;
  49030. property readyState: Word read _GetreadyState;
  49031. property onopen: TEventHandler read _Getonopen write _Setonopen;
  49032. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  49033. property onerror: TEventHandler read _Getonerror write _Setonerror;
  49034. end;
  49035. TJSEventSource = class(TJSEventTarget,IJSEventSource)
  49036. Protected
  49037. function _Geturl: UnicodeString;
  49038. function _GetwithCredentials: Boolean;
  49039. function _GetreadyState: Word;
  49040. function _Getonopen: TEventHandler;
  49041. function _Getonmessage: TEventHandler;
  49042. function _Getonerror: TEventHandler;
  49043. procedure _Setonopen(const aValue: TEventHandler);
  49044. procedure _Setonmessage(const aValue: TEventHandler);
  49045. procedure _Setonerror(const aValue: TEventHandler);
  49046. Public
  49047. Const
  49048. CONNECTING = 0;
  49049. OPEN = 1;
  49050. CLOSED = 2;
  49051. Public
  49052. constructor Create(const aUrl: UnicodeString; const aEventSourceInitDict: TJSEventSourceInit); overload;
  49053. constructor Create(const aUrl: UnicodeString); overload;
  49054. procedure close; overload;
  49055. class function JSClassName: UnicodeString; override;
  49056. class function Cast(const Intf: IJSObject): IJSEventSource;
  49057. property url: UnicodeString read _Geturl;
  49058. property withCredentials: Boolean read _GetwithCredentials;
  49059. property readyState: Word read _GetreadyState;
  49060. property onopen: TEventHandler read _Getonopen write _Setonopen;
  49061. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  49062. property onerror: TEventHandler read _Getonerror write _Setonerror;
  49063. end;
  49064. { --------------------------------------------------------------------
  49065. TJSExtendableEvent
  49066. --------------------------------------------------------------------}
  49067. IJSExtendableEvent = interface(IJSEvent)
  49068. ['{C61E2525-7289-3D39-8B90-2FCF1FF299F5}']
  49069. procedure waitUntil(aP: IJSPromise);
  49070. end;
  49071. TJSExtendableEvent = class(TJSEvent,IJSExtendableEvent)
  49072. Protected
  49073. Public
  49074. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSExtendableEventInit); overload;
  49075. constructor Create(const aType_: UnicodeString); overload;
  49076. procedure waitUntil(aP: IJSPromise); overload;
  49077. class function JSClassName: UnicodeString; override;
  49078. class function Cast(const Intf: IJSObject): IJSExtendableEvent;
  49079. end;
  49080. { --------------------------------------------------------------------
  49081. TJSFeaturePolicyViolationReportBody
  49082. --------------------------------------------------------------------}
  49083. IJSFeaturePolicyViolationReportBody = interface(IJSReportBody)
  49084. ['{41E08A45-B4E4-3F4A-AB46-8FFBD1E6C5E1}']
  49085. function _GetfeatureId: UnicodeString;
  49086. function _GetsourceFile: UnicodeString;
  49087. function _GetlineNumber: LongInt;
  49088. function _GetcolumnNumber: LongInt;
  49089. function _Getdisposition: UnicodeString;
  49090. property featureId: UnicodeString read _GetfeatureId;
  49091. property sourceFile: UnicodeString read _GetsourceFile;
  49092. property lineNumber: LongInt read _GetlineNumber;
  49093. property columnNumber: LongInt read _GetcolumnNumber;
  49094. property disposition: UnicodeString read _Getdisposition;
  49095. end;
  49096. TJSFeaturePolicyViolationReportBody = class(TJSReportBody,IJSFeaturePolicyViolationReportBody)
  49097. Protected
  49098. function _GetfeatureId: UnicodeString;
  49099. function _GetsourceFile: UnicodeString;
  49100. function _GetlineNumber: LongInt;
  49101. function _GetcolumnNumber: LongInt;
  49102. function _Getdisposition: UnicodeString;
  49103. Public
  49104. class function JSClassName: UnicodeString; override;
  49105. class function Cast(const Intf: IJSObject): IJSFeaturePolicyViolationReportBody;
  49106. property featureId: UnicodeString read _GetfeatureId;
  49107. property sourceFile: UnicodeString read _GetsourceFile;
  49108. property lineNumber: LongInt read _GetlineNumber;
  49109. property columnNumber: LongInt read _GetcolumnNumber;
  49110. property disposition: UnicodeString read _Getdisposition;
  49111. end;
  49112. { --------------------------------------------------------------------
  49113. TJSFetchObserver
  49114. --------------------------------------------------------------------}
  49115. IJSFetchObserver = interface(IJSEventTarget)
  49116. ['{99793B19-00F5-32CD-8157-F5D87BD32D07}']
  49117. function _Getstate: TFetchState;
  49118. function _Getonstatechange: TEventHandler;
  49119. function _Getonrequestprogress: TEventHandler;
  49120. function _Getonresponseprogress: TEventHandler;
  49121. procedure _Setonstatechange(const aValue: TEventHandler);
  49122. procedure _Setonrequestprogress(const aValue: TEventHandler);
  49123. procedure _Setonresponseprogress(const aValue: TEventHandler);
  49124. property state: TFetchState read _Getstate;
  49125. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  49126. property onrequestprogress: TEventHandler read _Getonrequestprogress write _Setonrequestprogress;
  49127. property onresponseprogress: TEventHandler read _Getonresponseprogress write _Setonresponseprogress;
  49128. end;
  49129. TJSFetchObserver = class(TJSEventTarget,IJSFetchObserver)
  49130. Protected
  49131. function _Getstate: TFetchState;
  49132. function _Getonstatechange: TEventHandler;
  49133. function _Getonrequestprogress: TEventHandler;
  49134. function _Getonresponseprogress: TEventHandler;
  49135. procedure _Setonstatechange(const aValue: TEventHandler);
  49136. procedure _Setonrequestprogress(const aValue: TEventHandler);
  49137. procedure _Setonresponseprogress(const aValue: TEventHandler);
  49138. Public
  49139. class function JSClassName: UnicodeString; override;
  49140. class function Cast(const Intf: IJSObject): IJSFetchObserver;
  49141. property state: TFetchState read _Getstate;
  49142. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  49143. property onrequestprogress: TEventHandler read _Getonrequestprogress write _Setonrequestprogress;
  49144. property onresponseprogress: TEventHandler read _Getonresponseprogress write _Setonresponseprogress;
  49145. end;
  49146. { --------------------------------------------------------------------
  49147. TJSFile
  49148. --------------------------------------------------------------------}
  49149. IJSFile = interface(IJSBlob)
  49150. ['{45D649A5-2DB7-3F6D-946B-BDE7D5CBFC3F}']
  49151. function _Getname: UnicodeString;
  49152. function _GetlastModified: Int64;
  49153. function _GetwebkitRelativePath: UnicodeString;
  49154. property name: UnicodeString read _Getname;
  49155. property lastModified: Int64 read _GetlastModified;
  49156. property webkitRelativePath: UnicodeString read _GetwebkitRelativePath;
  49157. end;
  49158. TJSFile = class(TJSBlob,IJSFile)
  49159. Protected
  49160. function _Getname: UnicodeString;
  49161. function _GetlastModified: Int64;
  49162. function _GetwebkitRelativePath: UnicodeString;
  49163. Public
  49164. constructor Create(const aFileBits: TBlobPartDynArray; const aFileName: UnicodeString; const aOptions: TJSFilePropertyBag); overload;
  49165. constructor Create(const aFileBits: TBlobPartDynArray; const aFileName: UnicodeString); overload;
  49166. class function JSClassName: UnicodeString; override;
  49167. class function Cast(const Intf: IJSObject): IJSFile;
  49168. property name: UnicodeString read _Getname;
  49169. property lastModified: Int64 read _GetlastModified;
  49170. property webkitRelativePath: UnicodeString read _GetwebkitRelativePath;
  49171. end;
  49172. { --------------------------------------------------------------------
  49173. TJSFileReader
  49174. --------------------------------------------------------------------}
  49175. // Union of DOMString, ArrayBuffer
  49176. TFileReader_result_Type = Variant;
  49177. IJSFileReader = interface(IJSEventTarget)
  49178. ['{59E31412-895F-3EE2-BFD3-99317A2141D2}']
  49179. function _GetreadyState: Word;
  49180. function _Getresult: TFileReader_result_Type;
  49181. function _Geterror: IJSDOMException;
  49182. function _Getonloadstart: TEventHandler;
  49183. function _Getonprogress: TEventHandler;
  49184. function _Getonload: TEventHandler;
  49185. function _Getonabort: TEventHandler;
  49186. function _Getonerror: TEventHandler;
  49187. function _Getonloadend: TEventHandler;
  49188. procedure _Setonloadstart(const aValue: TEventHandler);
  49189. procedure _Setonprogress(const aValue: TEventHandler);
  49190. procedure _Setonload(const aValue: TEventHandler);
  49191. procedure _Setonabort(const aValue: TEventHandler);
  49192. procedure _Setonerror(const aValue: TEventHandler);
  49193. procedure _Setonloadend(const aValue: TEventHandler);
  49194. procedure readAsArrayBuffer(aBlob: IJSBlob);
  49195. procedure readAsBinaryString(aFiledata: IJSBlob);
  49196. procedure readAsText(aBlob: IJSBlob; const aLabel_: UnicodeString);
  49197. procedure readAsText(aBlob: IJSBlob);
  49198. procedure readAsDataURL(aBlob: IJSBlob);
  49199. procedure abort;
  49200. property readyState: Word read _GetreadyState;
  49201. property result: TFileReader_result_Type read _Getresult;
  49202. property error: IJSDOMException read _Geterror;
  49203. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  49204. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  49205. property onload: TEventHandler read _Getonload write _Setonload;
  49206. property onabort: TEventHandler read _Getonabort write _Setonabort;
  49207. property onerror: TEventHandler read _Getonerror write _Setonerror;
  49208. property onloadend: TEventHandler read _Getonloadend write _Setonloadend;
  49209. end;
  49210. TJSFileReader = class(TJSEventTarget,IJSFileReader)
  49211. Protected
  49212. function _GetreadyState: Word;
  49213. function _Getresult: TFileReader_result_Type;
  49214. function _Geterror: IJSDOMException;
  49215. function _Getonloadstart: TEventHandler;
  49216. function _Getonprogress: TEventHandler;
  49217. function _Getonload: TEventHandler;
  49218. function _Getonabort: TEventHandler;
  49219. function _Getonerror: TEventHandler;
  49220. function _Getonloadend: TEventHandler;
  49221. procedure _Setonloadstart(const aValue: TEventHandler);
  49222. procedure _Setonprogress(const aValue: TEventHandler);
  49223. procedure _Setonload(const aValue: TEventHandler);
  49224. procedure _Setonabort(const aValue: TEventHandler);
  49225. procedure _Setonerror(const aValue: TEventHandler);
  49226. procedure _Setonloadend(const aValue: TEventHandler);
  49227. Public
  49228. Const
  49229. EMPTY = 0;
  49230. LOADING = 1;
  49231. DONE = 2;
  49232. Public
  49233. constructor Create; overload;
  49234. procedure readAsArrayBuffer(aBlob: IJSBlob); overload;
  49235. procedure readAsBinaryString(aFiledata: IJSBlob); overload;
  49236. procedure readAsText(aBlob: IJSBlob; const aLabel_: UnicodeString); overload;
  49237. procedure readAsText(aBlob: IJSBlob); overload;
  49238. procedure readAsDataURL(aBlob: IJSBlob); overload;
  49239. procedure abort; overload;
  49240. class function JSClassName: UnicodeString; override;
  49241. class function Cast(const Intf: IJSObject): IJSFileReader;
  49242. property readyState: Word read _GetreadyState;
  49243. property result: TFileReader_result_Type read _Getresult;
  49244. property error: IJSDOMException read _Geterror;
  49245. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  49246. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  49247. property onload: TEventHandler read _Getonload write _Setonload;
  49248. property onabort: TEventHandler read _Getonabort write _Setonabort;
  49249. property onerror: TEventHandler read _Getonerror write _Setonerror;
  49250. property onloadend: TEventHandler read _Getonloadend write _Setonloadend;
  49251. end;
  49252. { --------------------------------------------------------------------
  49253. TJSFileSystemDirectoryEntry
  49254. --------------------------------------------------------------------}
  49255. IJSFileSystemDirectoryEntry = interface(IJSFileSystemEntry)
  49256. ['{727D1627-6ACF-3089-9D81-51524B7AC7F5}']
  49257. function createReader: IJSFileSystemDirectoryReader;
  49258. procedure getFile(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback; const aErrorCallback: TErrorCallback);
  49259. procedure getFile;
  49260. procedure getFile(const aPath: UnicodeString);
  49261. procedure getFile(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags);
  49262. procedure getFile(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback);
  49263. procedure getDirectory(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback; const aErrorCallback: TErrorCallback);
  49264. procedure getDirectory;
  49265. procedure getDirectory(const aPath: UnicodeString);
  49266. procedure getDirectory(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags);
  49267. procedure getDirectory(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback);
  49268. end;
  49269. TJSFileSystemDirectoryEntry = class(TJSFileSystemEntry,IJSFileSystemDirectoryEntry)
  49270. Protected
  49271. Public
  49272. function createReader: IJSFileSystemDirectoryReader; overload;
  49273. procedure getFile(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback; const aErrorCallback: TErrorCallback); overload;
  49274. procedure getFile; overload;
  49275. procedure getFile(const aPath: UnicodeString); overload;
  49276. procedure getFile(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags); overload;
  49277. procedure getFile(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback); overload;
  49278. procedure getDirectory(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback; const aErrorCallback: TErrorCallback); overload;
  49279. procedure getDirectory; overload;
  49280. procedure getDirectory(const aPath: UnicodeString); overload;
  49281. procedure getDirectory(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags); overload;
  49282. procedure getDirectory(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback); overload;
  49283. class function JSClassName: UnicodeString; override;
  49284. class function Cast(const Intf: IJSObject): IJSFileSystemDirectoryEntry;
  49285. end;
  49286. { --------------------------------------------------------------------
  49287. TJSFileSystemDirectoryHandle
  49288. --------------------------------------------------------------------}
  49289. IJSFileSystemDirectoryHandle = interface(IJSFileSystemHandle)
  49290. ['{FE6F94FB-8B0D-3F81-B084-9F6E5887B904}']
  49291. function getFileHandle(const aName: UnicodeString; const aOptions: TJSFileSystemGetFileOptions): IJSPromise; // Promise<FileSystemFileHandle>
  49292. function getFileHandle(const aName: UnicodeString): IJSPromise; // Promise<FileSystemFileHandle>
  49293. function getDirectoryHandle(const aName: UnicodeString; const aOptions: TJSFileSystemGetDirectoryOptions): IJSPromise; // Promise<FileSystemDirectoryHandle>
  49294. function getDirectoryHandle(const aName: UnicodeString): IJSPromise; // Promise<FileSystemDirectoryHandle>
  49295. function removeEntry(const aName: UnicodeString; const aOptions: TJSFileSystemRemoveOptions): IJSPromise; // Promise<undefined>
  49296. function removeEntry(const aName: UnicodeString): IJSPromise; // Promise<undefined>
  49297. function resolve(aPossibleDescendant: IJSFileSystemHandle): IJSPromise; // Promise<sequence>
  49298. end;
  49299. TJSFileSystemDirectoryHandle = class(TJSFileSystemHandle,IJSFileSystemDirectoryHandle)
  49300. Protected
  49301. Public
  49302. function getFileHandle(const aName: UnicodeString; const aOptions: TJSFileSystemGetFileOptions): IJSPromise; overload; // Promise<FileSystemFileHandle>
  49303. function getFileHandle(const aName: UnicodeString): IJSPromise; overload; // Promise<FileSystemFileHandle>
  49304. function getDirectoryHandle(const aName: UnicodeString; const aOptions: TJSFileSystemGetDirectoryOptions): IJSPromise; overload; // Promise<FileSystemDirectoryHandle>
  49305. function getDirectoryHandle(const aName: UnicodeString): IJSPromise; overload; // Promise<FileSystemDirectoryHandle>
  49306. function removeEntry(const aName: UnicodeString; const aOptions: TJSFileSystemRemoveOptions): IJSPromise; overload; // Promise<undefined>
  49307. function removeEntry(const aName: UnicodeString): IJSPromise; overload; // Promise<undefined>
  49308. function resolve(aPossibleDescendant: IJSFileSystemHandle): IJSPromise; overload; // Promise<sequence>
  49309. class function JSClassName: UnicodeString; override;
  49310. class function Cast(const Intf: IJSObject): IJSFileSystemDirectoryHandle;
  49311. end;
  49312. { --------------------------------------------------------------------
  49313. TJSFileSystemFileEntry
  49314. --------------------------------------------------------------------}
  49315. IJSFileSystemFileEntry = interface(IJSFileSystemEntry)
  49316. ['{DAC794A7-43C9-33DB-8E05-26ECD6F58089}']
  49317. procedure file_(const aSuccessCallback: TFileCallback; const aErrorCallback: TErrorCallback);
  49318. procedure file_(const aSuccessCallback: TFileCallback);
  49319. end;
  49320. TJSFileSystemFileEntry = class(TJSFileSystemEntry,IJSFileSystemFileEntry)
  49321. Protected
  49322. Public
  49323. procedure file_(const aSuccessCallback: TFileCallback; const aErrorCallback: TErrorCallback); overload;
  49324. procedure file_(const aSuccessCallback: TFileCallback); overload;
  49325. class function JSClassName: UnicodeString; override;
  49326. class function Cast(const Intf: IJSObject): IJSFileSystemFileEntry;
  49327. end;
  49328. { --------------------------------------------------------------------
  49329. TJSFileSystemFileHandle
  49330. --------------------------------------------------------------------}
  49331. IJSFileSystemFileHandle = interface(IJSFileSystemHandle)
  49332. ['{82E578F8-6220-3CC8-B052-15188381243D}']
  49333. function getFile: IJSPromise; // Promise<File>
  49334. function createWritable(const aOptions: TJSFileSystemCreateWritableOptions): IJSPromise; // Promise<FileSystemWritableFileStream>
  49335. function createWritable: IJSPromise; // Promise<FileSystemWritableFileStream>
  49336. function createSyncAccessHandle: IJSPromise; // Promise<FileSystemSyncAccessHandle>
  49337. end;
  49338. TJSFileSystemFileHandle = class(TJSFileSystemHandle,IJSFileSystemFileHandle)
  49339. Protected
  49340. Public
  49341. function getFile: IJSPromise; overload; // Promise<File>
  49342. function createWritable(const aOptions: TJSFileSystemCreateWritableOptions): IJSPromise; overload; // Promise<FileSystemWritableFileStream>
  49343. function createWritable: IJSPromise; overload; // Promise<FileSystemWritableFileStream>
  49344. function createSyncAccessHandle: IJSPromise; overload; // Promise<FileSystemSyncAccessHandle>
  49345. class function JSClassName: UnicodeString; override;
  49346. class function Cast(const Intf: IJSObject): IJSFileSystemFileHandle;
  49347. end;
  49348. { --------------------------------------------------------------------
  49349. TJSFileSystemWritableFileStream
  49350. --------------------------------------------------------------------}
  49351. IJSFileSystemWritableFileStream = interface(IJSWritableStream)
  49352. ['{898CFD83-3304-31D5-82DA-0A8D5AE4BFDD}']
  49353. function write(aData: IJSBlob): IJSPromise; // Promise<undefined>
  49354. function write(aData: IJSBufferSource): IJSPromise; // Promise<undefined>
  49355. function write(const aData: UTF8String): IJSPromise; // Promise<undefined>
  49356. function write(const aData: TJSWriteParams): IJSPromise; // Promise<undefined>
  49357. function seek(aPosition: QWord): IJSPromise; // Promise<undefined>
  49358. function truncate(aSize: QWord): IJSPromise; // Promise<undefined>
  49359. end;
  49360. TJSFileSystemWritableFileStream = class(TJSWritableStream,IJSFileSystemWritableFileStream)
  49361. Protected
  49362. Public
  49363. function write(aData: IJSBlob): IJSPromise; overload; // Promise<undefined>
  49364. function write(aData: IJSBufferSource): IJSPromise; overload; // Promise<undefined>
  49365. function write(const aData: UTF8String): IJSPromise; overload; // Promise<undefined>
  49366. function write(const aData: TJSWriteParams): IJSPromise; overload; // Promise<undefined>
  49367. function seek(aPosition: QWord): IJSPromise; overload; // Promise<undefined>
  49368. function truncate(aSize: QWord): IJSPromise; overload; // Promise<undefined>
  49369. class function JSClassName: UnicodeString; override;
  49370. class function Cast(const Intf: IJSObject): IJSFileSystemWritableFileStream;
  49371. end;
  49372. { --------------------------------------------------------------------
  49373. TJSFontFaceSet
  49374. --------------------------------------------------------------------}
  49375. IJSFontFaceSet = interface(IJSEventTarget)
  49376. ['{23E591F0-C122-3895-B650-E7F13296998C}']
  49377. function _Getsize: Cardinal;
  49378. function _Getonloading: TEventHandler;
  49379. function _Getonloadingdone: TEventHandler;
  49380. function _Getonloadingerror: TEventHandler;
  49381. function _Getready: IJSPromise;
  49382. function _Getstatus: TFontFaceSetLoadStatus;
  49383. procedure _Setonloading(const aValue: TEventHandler);
  49384. procedure _Setonloadingdone(const aValue: TEventHandler);
  49385. procedure _Setonloadingerror(const aValue: TEventHandler);
  49386. procedure add(aFont: IJSFontFace);
  49387. function has(aFont: IJSFontFace): Boolean;
  49388. function delete(aFont: IJSFontFace): Boolean;
  49389. procedure clear;
  49390. function entries: IJSFontFaceSetIterator;
  49391. function values: IJSFontFaceSetIterator;
  49392. procedure forEach(const aCb: TFontFaceSetForEachCallback; const aThisArg: Variant);
  49393. procedure forEach(const aCb: TFontFaceSetForEachCallback);
  49394. function load(const aFont: UTF8String; const aText: UnicodeString): IJSPromise; // Promise<sequence>
  49395. function load(const aFont: UTF8String): IJSPromise; // Promise<sequence>
  49396. function check(const aFont: UTF8String; const aText: UnicodeString): Boolean;
  49397. function check(const aFont: UTF8String): Boolean;
  49398. property size: Cardinal read _Getsize;
  49399. property onloading: TEventHandler read _Getonloading write _Setonloading;
  49400. property onloadingdone: TEventHandler read _Getonloadingdone write _Setonloadingdone;
  49401. property onloadingerror: TEventHandler read _Getonloadingerror write _Setonloadingerror;
  49402. property ready: IJSPromise read _Getready;
  49403. property status: TFontFaceSetLoadStatus read _Getstatus;
  49404. end;
  49405. TJSFontFaceSet = class(TJSEventTarget,IJSFontFaceSet)
  49406. Protected
  49407. function _Getsize: Cardinal;
  49408. function _Getonloading: TEventHandler;
  49409. function _Getonloadingdone: TEventHandler;
  49410. function _Getonloadingerror: TEventHandler;
  49411. function _Getready: IJSPromise;
  49412. function _Getstatus: TFontFaceSetLoadStatus;
  49413. procedure _Setonloading(const aValue: TEventHandler);
  49414. procedure _Setonloadingdone(const aValue: TEventHandler);
  49415. procedure _Setonloadingerror(const aValue: TEventHandler);
  49416. Public
  49417. procedure add(aFont: IJSFontFace); overload;
  49418. function has(aFont: IJSFontFace): Boolean; overload;
  49419. function delete(aFont: IJSFontFace): Boolean; overload;
  49420. procedure clear; overload;
  49421. function entries: IJSFontFaceSetIterator; overload;
  49422. function values: IJSFontFaceSetIterator; overload;
  49423. procedure forEach(const aCb: TFontFaceSetForEachCallback; const aThisArg: Variant); overload;
  49424. procedure forEach(const aCb: TFontFaceSetForEachCallback); overload;
  49425. function load(const aFont: UTF8String; const aText: UnicodeString): IJSPromise; overload; // Promise<sequence>
  49426. function load(const aFont: UTF8String): IJSPromise; overload; // Promise<sequence>
  49427. function check(const aFont: UTF8String; const aText: UnicodeString): Boolean; overload;
  49428. function check(const aFont: UTF8String): Boolean; overload;
  49429. class function JSClassName: UnicodeString; override;
  49430. class function Cast(const Intf: IJSObject): IJSFontFaceSet;
  49431. property size: Cardinal read _Getsize;
  49432. property onloading: TEventHandler read _Getonloading write _Setonloading;
  49433. property onloadingdone: TEventHandler read _Getonloadingdone write _Setonloadingdone;
  49434. property onloadingerror: TEventHandler read _Getonloadingerror write _Setonloadingerror;
  49435. property ready: IJSPromise read _Getready;
  49436. property status: TFontFaceSetLoadStatus read _Getstatus;
  49437. end;
  49438. { --------------------------------------------------------------------
  49439. TJSFontFaceSetLoadEvent
  49440. --------------------------------------------------------------------}
  49441. IJSFontFaceSetLoadEvent = interface(IJSEvent)
  49442. ['{C35C4CD9-77F7-3437-B15A-D066C72C345E}']
  49443. function _Getfontfaces: TJSFontFaceDynArray;
  49444. property fontfaces: TJSFontFaceDynArray read _Getfontfaces;
  49445. end;
  49446. TJSFontFaceSetLoadEvent = class(TJSEvent,IJSFontFaceSetLoadEvent)
  49447. Protected
  49448. function _Getfontfaces: TJSFontFaceDynArray;
  49449. Public
  49450. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSFontFaceSetLoadEventInit); overload;
  49451. constructor Create(const aType_: UnicodeString); overload;
  49452. class function JSClassName: UnicodeString; override;
  49453. class function Cast(const Intf: IJSObject): IJSFontFaceSetLoadEvent;
  49454. property fontfaces: TJSFontFaceDynArray read _Getfontfaces;
  49455. end;
  49456. { --------------------------------------------------------------------
  49457. TJSFormDataEvent
  49458. --------------------------------------------------------------------}
  49459. IJSFormDataEvent = interface(IJSEvent)
  49460. ['{BD2A58FB-CB02-3035-8D7F-BA785ABDF3AD}']
  49461. function _GetformData: IJSFormData;
  49462. property formData: IJSFormData read _GetformData;
  49463. end;
  49464. TJSFormDataEvent = class(TJSEvent,IJSFormDataEvent)
  49465. Protected
  49466. function _GetformData: IJSFormData;
  49467. Public
  49468. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSFormDataEventInit); overload;
  49469. constructor Create(const aType_: UnicodeString); overload;
  49470. class function JSClassName: UnicodeString; override;
  49471. class function Cast(const Intf: IJSObject): IJSFormDataEvent;
  49472. property formData: IJSFormData read _GetformData;
  49473. end;
  49474. { --------------------------------------------------------------------
  49475. TJSGamepadEvent
  49476. --------------------------------------------------------------------}
  49477. IJSGamepadEvent = interface(IJSEvent)
  49478. ['{17E4202B-9944-36C7-ADC4-01083129C932}']
  49479. function _Getgamepad: IJSGamepad;
  49480. property gamepad: IJSGamepad read _Getgamepad;
  49481. end;
  49482. TJSGamepadEvent = class(TJSEvent,IJSGamepadEvent)
  49483. Protected
  49484. function _Getgamepad: IJSGamepad;
  49485. Public
  49486. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSGamepadEventInit); overload;
  49487. constructor Create(const aType_: UnicodeString); overload;
  49488. class function JSClassName: UnicodeString; override;
  49489. class function Cast(const Intf: IJSObject): IJSGamepadEvent;
  49490. property gamepad: IJSGamepad read _Getgamepad;
  49491. end;
  49492. { --------------------------------------------------------------------
  49493. TJSGleanBoolean
  49494. --------------------------------------------------------------------}
  49495. IJSGleanBoolean = interface(IJSGleanMetric)
  49496. ['{50F76D0F-26B7-3B14-8341-05AEF3B623F3}']
  49497. procedure set_(aValue: Boolean);
  49498. end;
  49499. TJSGleanBoolean = class(TJSGleanMetric,IJSGleanBoolean)
  49500. Protected
  49501. Public
  49502. procedure set_(aValue: Boolean); overload;
  49503. class function JSClassName: UnicodeString; override;
  49504. class function Cast(const Intf: IJSObject): IJSGleanBoolean;
  49505. end;
  49506. { --------------------------------------------------------------------
  49507. TJSGleanDatetime
  49508. --------------------------------------------------------------------}
  49509. IJSGleanDatetime = interface(IJSGleanMetric)
  49510. ['{F0E718E9-2902-39CB-85AF-182C86A1BD36}']
  49511. procedure set_(aAValue: Int64);
  49512. procedure set_;
  49513. end;
  49514. TJSGleanDatetime = class(TJSGleanMetric,IJSGleanDatetime)
  49515. Protected
  49516. Public
  49517. procedure set_(aAValue: Int64); overload;
  49518. procedure set_; overload;
  49519. class function JSClassName: UnicodeString; override;
  49520. class function Cast(const Intf: IJSObject): IJSGleanDatetime;
  49521. end;
  49522. { --------------------------------------------------------------------
  49523. TJSGleanCounter
  49524. --------------------------------------------------------------------}
  49525. IJSGleanCounter = interface(IJSGleanMetric)
  49526. ['{50F76D0F-26BF-363D-94C1-05AEAB8623F3}']
  49527. procedure add(aAAmount: LongInt);
  49528. procedure add;
  49529. end;
  49530. TJSGleanCounter = class(TJSGleanMetric,IJSGleanCounter)
  49531. Protected
  49532. Public
  49533. procedure add(aAAmount: LongInt); overload;
  49534. procedure add; overload;
  49535. class function JSClassName: UnicodeString; override;
  49536. class function Cast(const Intf: IJSObject): IJSGleanCounter;
  49537. end;
  49538. { --------------------------------------------------------------------
  49539. TJSGleanTimingDistribution
  49540. --------------------------------------------------------------------}
  49541. IJSGleanTimingDistribution = interface(IJSGleanMetric)
  49542. ['{8D8AA718-90FC-30C4-B415-9C428F48C3B3}']
  49543. function start: QWord;
  49544. procedure stopAndAccumulate(aAId: QWord);
  49545. procedure cancel(aAId: QWord);
  49546. end;
  49547. TJSGleanTimingDistribution = class(TJSGleanMetric,IJSGleanTimingDistribution)
  49548. Protected
  49549. Public
  49550. function start: QWord; overload;
  49551. procedure stopAndAccumulate(aAId: QWord); overload;
  49552. procedure cancel(aAId: QWord); overload;
  49553. class function JSClassName: UnicodeString; override;
  49554. class function Cast(const Intf: IJSObject): IJSGleanTimingDistribution;
  49555. end;
  49556. { --------------------------------------------------------------------
  49557. TJSGleanMemoryDistribution
  49558. --------------------------------------------------------------------}
  49559. IJSGleanMemoryDistribution = interface(IJSGleanMetric)
  49560. ['{BED304F5-6159-3223-AEED-7D389A34E0C3}']
  49561. procedure accumulate(aASample: QWord);
  49562. end;
  49563. TJSGleanMemoryDistribution = class(TJSGleanMetric,IJSGleanMemoryDistribution)
  49564. Protected
  49565. Public
  49566. procedure accumulate(aASample: QWord); overload;
  49567. class function JSClassName: UnicodeString; override;
  49568. class function Cast(const Intf: IJSObject): IJSGleanMemoryDistribution;
  49569. end;
  49570. { --------------------------------------------------------------------
  49571. TJSGleanCustomDistribution
  49572. --------------------------------------------------------------------}
  49573. TInt64DynArray = IJSArray; // array of long long
  49574. IJSGleanCustomDistribution = interface(IJSGleanMetric)
  49575. ['{53109CA6-583F-37EA-AA80-9E1035646007}']
  49576. procedure accumulateSamples(const aASamples: TInt64DynArray);
  49577. procedure accumulateSingleSample(aASample: Int64);
  49578. end;
  49579. TJSGleanCustomDistribution = class(TJSGleanMetric,IJSGleanCustomDistribution)
  49580. Protected
  49581. Public
  49582. procedure accumulateSamples(const aASamples: TInt64DynArray); overload;
  49583. procedure accumulateSingleSample(aASample: Int64); overload;
  49584. class function JSClassName: UnicodeString; override;
  49585. class function Cast(const Intf: IJSObject): IJSGleanCustomDistribution;
  49586. end;
  49587. { --------------------------------------------------------------------
  49588. TJSGleanString
  49589. --------------------------------------------------------------------}
  49590. IJSGleanString = interface(IJSGleanMetric)
  49591. ['{5202D10F-BF26-3D25-895F-B41C9400DA5F}']
  49592. procedure set_(const aAValue: UTF8String);
  49593. end;
  49594. TJSGleanString = class(TJSGleanMetric,IJSGleanString)
  49595. Protected
  49596. Public
  49597. procedure set_(const aAValue: UTF8String); overload;
  49598. class function JSClassName: UnicodeString; override;
  49599. class function Cast(const Intf: IJSObject): IJSGleanString;
  49600. end;
  49601. { --------------------------------------------------------------------
  49602. TJSGleanStringList
  49603. --------------------------------------------------------------------}
  49604. IJSGleanStringList = interface(IJSGleanMetric)
  49605. ['{A58F6BA3-206E-30AF-951E-EF050A5D550F}']
  49606. procedure add(const aValue: UTF8String);
  49607. procedure set_(const aAValue: TUTF8StringDynArray);
  49608. end;
  49609. TJSGleanStringList = class(TJSGleanMetric,IJSGleanStringList)
  49610. Protected
  49611. Public
  49612. procedure add(const aValue: UTF8String); overload;
  49613. procedure set_(const aAValue: TUTF8StringDynArray); overload;
  49614. class function JSClassName: UnicodeString; override;
  49615. class function Cast(const Intf: IJSObject): IJSGleanStringList;
  49616. end;
  49617. { --------------------------------------------------------------------
  49618. TJSGleanTimespan
  49619. --------------------------------------------------------------------}
  49620. IJSGleanTimespan = interface(IJSGleanMetric)
  49621. ['{978865E6-1283-335B-8B25-8F7278E2487B}']
  49622. procedure start;
  49623. procedure stop;
  49624. procedure cancel;
  49625. procedure setRaw(aADuration: Cardinal);
  49626. end;
  49627. TJSGleanTimespan = class(TJSGleanMetric,IJSGleanTimespan)
  49628. Protected
  49629. Public
  49630. procedure start; overload;
  49631. procedure stop; overload;
  49632. procedure cancel; overload;
  49633. procedure setRaw(aADuration: Cardinal); overload;
  49634. class function JSClassName: UnicodeString; override;
  49635. class function Cast(const Intf: IJSObject): IJSGleanTimespan;
  49636. end;
  49637. { --------------------------------------------------------------------
  49638. TJSGleanUuid
  49639. --------------------------------------------------------------------}
  49640. IJSGleanUuid = interface(IJSGleanMetric)
  49641. ['{45D7F71D-A42C-3D14-B365-CDEAEA597E1B}']
  49642. procedure set_(const aAValue: UTF8String);
  49643. procedure generateAndSet;
  49644. end;
  49645. TJSGleanUuid = class(TJSGleanMetric,IJSGleanUuid)
  49646. Protected
  49647. Public
  49648. procedure set_(const aAValue: UTF8String); overload;
  49649. procedure generateAndSet; overload;
  49650. class function JSClassName: UnicodeString; override;
  49651. class function Cast(const Intf: IJSObject): IJSGleanUuid;
  49652. end;
  49653. { --------------------------------------------------------------------
  49654. TJSGleanEvent
  49655. --------------------------------------------------------------------}
  49656. IJSGleanEvent = interface(IJSGleanMetric)
  49657. ['{7A4D953B-FA60-3EEF-8A13-C2C1A3F6AE21}']
  49658. procedure record_(aAExtra: IJSObject);
  49659. procedure record_;
  49660. end;
  49661. TJSGleanEvent = class(TJSGleanMetric,IJSGleanEvent)
  49662. Protected
  49663. Public
  49664. procedure record_(aAExtra: IJSObject); overload;
  49665. procedure record_; overload;
  49666. class function JSClassName: UnicodeString; override;
  49667. class function Cast(const Intf: IJSObject): IJSGleanEvent;
  49668. end;
  49669. { --------------------------------------------------------------------
  49670. TJSGleanQuantity
  49671. --------------------------------------------------------------------}
  49672. IJSGleanQuantity = interface(IJSGleanMetric)
  49673. ['{F0E718E9-2A6F-335B-86A3-182C86A1BD36}']
  49674. procedure set_(aAValue: Int64);
  49675. end;
  49676. TJSGleanQuantity = class(TJSGleanMetric,IJSGleanQuantity)
  49677. Protected
  49678. Public
  49679. procedure set_(aAValue: Int64); overload;
  49680. class function JSClassName: UnicodeString; override;
  49681. class function Cast(const Intf: IJSObject): IJSGleanQuantity;
  49682. end;
  49683. { --------------------------------------------------------------------
  49684. TJSGleanDenominator
  49685. --------------------------------------------------------------------}
  49686. IJSGleanDenominator = interface(IJSGleanMetric)
  49687. ['{DA98D21A-79CE-3ABB-A7A2-EAFA2F5906C7}']
  49688. procedure add(aAAmount: LongInt);
  49689. procedure add;
  49690. end;
  49691. TJSGleanDenominator = class(TJSGleanMetric,IJSGleanDenominator)
  49692. Protected
  49693. Public
  49694. procedure add(aAAmount: LongInt); overload;
  49695. procedure add; overload;
  49696. class function JSClassName: UnicodeString; override;
  49697. class function Cast(const Intf: IJSObject): IJSGleanDenominator;
  49698. end;
  49699. { --------------------------------------------------------------------
  49700. TJSGleanNumerator
  49701. --------------------------------------------------------------------}
  49702. IJSGleanNumerator = interface(IJSGleanMetric)
  49703. ['{B96FD4B2-6754-30B0-8C41-7A24F5E85E58}']
  49704. procedure addToNumerator(aAAmount: LongInt);
  49705. procedure addToNumerator;
  49706. end;
  49707. TJSGleanNumerator = class(TJSGleanMetric,IJSGleanNumerator)
  49708. Protected
  49709. Public
  49710. procedure addToNumerator(aAAmount: LongInt); overload;
  49711. procedure addToNumerator; overload;
  49712. class function JSClassName: UnicodeString; override;
  49713. class function Cast(const Intf: IJSObject): IJSGleanNumerator;
  49714. end;
  49715. { --------------------------------------------------------------------
  49716. TJSGleanRate
  49717. --------------------------------------------------------------------}
  49718. IJSGleanRate = interface(IJSGleanMetric)
  49719. ['{90082C7E-EA0F-3100-8FF4-DFD6A04FF740}']
  49720. procedure addToNumerator(aAAmount: LongInt);
  49721. procedure addToNumerator;
  49722. procedure addToDenominator(aAAmount: LongInt);
  49723. procedure addToDenominator;
  49724. end;
  49725. TJSGleanRate = class(TJSGleanMetric,IJSGleanRate)
  49726. Protected
  49727. Public
  49728. procedure addToNumerator(aAAmount: LongInt); overload;
  49729. procedure addToNumerator; overload;
  49730. procedure addToDenominator(aAAmount: LongInt); overload;
  49731. procedure addToDenominator; overload;
  49732. class function JSClassName: UnicodeString; override;
  49733. class function Cast(const Intf: IJSObject): IJSGleanRate;
  49734. end;
  49735. { --------------------------------------------------------------------
  49736. TJSGleanUrl
  49737. --------------------------------------------------------------------}
  49738. IJSGleanUrl = interface(IJSGleanMetric)
  49739. ['{EF613B56-10F3-3E2F-990B-4A806C2B7AEB}']
  49740. procedure set_(const aAValue: UTF8String);
  49741. end;
  49742. TJSGleanUrl = class(TJSGleanMetric,IJSGleanUrl)
  49743. Protected
  49744. Public
  49745. procedure set_(const aAValue: UTF8String); overload;
  49746. class function JSClassName: UnicodeString; override;
  49747. class function Cast(const Intf: IJSObject): IJSGleanUrl;
  49748. end;
  49749. { --------------------------------------------------------------------
  49750. TJSGleanText
  49751. --------------------------------------------------------------------}
  49752. IJSGleanText = interface(IJSGleanMetric)
  49753. ['{BDE36F62-51CA-3001-81D4-7A5B12757AE6}']
  49754. procedure set_(const aAValue: UTF8String);
  49755. end;
  49756. TJSGleanText = class(TJSGleanMetric,IJSGleanText)
  49757. Protected
  49758. Public
  49759. procedure set_(const aAValue: UTF8String); overload;
  49760. class function JSClassName: UnicodeString; override;
  49761. class function Cast(const Intf: IJSObject): IJSGleanText;
  49762. end;
  49763. { --------------------------------------------------------------------
  49764. TJSGleanObject
  49765. --------------------------------------------------------------------}
  49766. IJSGleanObject = interface(IJSGleanMetric)
  49767. ['{5202D10F-BF01-3DDF-BD5F-B41C9400DA5F}']
  49768. procedure set_(aValue: IJSObject);
  49769. end;
  49770. TJSGleanObject = class(TJSGleanMetric,IJSGleanObject)
  49771. Protected
  49772. Public
  49773. procedure set_(aValue: IJSObject); overload;
  49774. class function JSClassName: UnicodeString; override;
  49775. class function Cast(const Intf: IJSObject): IJSGleanObject;
  49776. end;
  49777. { --------------------------------------------------------------------
  49778. TJSGPUUncapturedErrorEvent
  49779. --------------------------------------------------------------------}
  49780. IJSGPUUncapturedErrorEvent = interface(IJSEvent)
  49781. ['{F6D4C4DE-000B-3EE5-90BB-05FC6FCB905E}']
  49782. function _Geterror: IJSGPUError;
  49783. property error: IJSGPUError read _Geterror;
  49784. end;
  49785. TJSGPUUncapturedErrorEvent = class(TJSEvent,IJSGPUUncapturedErrorEvent)
  49786. Protected
  49787. function _Geterror: IJSGPUError;
  49788. Public
  49789. constructor Create(const aType_: UnicodeString; const aGpuUncapturedErrorEventInitDict: TJSGPUUncapturedErrorEventInit); overload;
  49790. class function JSClassName: UnicodeString; override;
  49791. class function Cast(const Intf: IJSObject): IJSGPUUncapturedErrorEvent;
  49792. property error: IJSGPUError read _Geterror;
  49793. end;
  49794. { --------------------------------------------------------------------
  49795. TJSHashChangeEvent
  49796. --------------------------------------------------------------------}
  49797. IJSHashChangeEvent = interface(IJSEvent)
  49798. ['{BA5A9807-1F5E-317C-9B89-CB28294189CA}']
  49799. function _GetoldURL: UnicodeString;
  49800. function _GetnewURL: UnicodeString;
  49801. procedure initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; const aOldURLArg: UnicodeString; const aNewURLArg: UnicodeString);
  49802. procedure initHashChangeEvent(const aTypeArg: UnicodeString);
  49803. procedure initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean);
  49804. procedure initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean);
  49805. procedure initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; const aOldURLArg: UnicodeString);
  49806. property oldURL: UnicodeString read _GetoldURL;
  49807. property newURL: UnicodeString read _GetnewURL;
  49808. end;
  49809. TJSHashChangeEvent = class(TJSEvent,IJSHashChangeEvent)
  49810. Protected
  49811. function _GetoldURL: UnicodeString;
  49812. function _GetnewURL: UnicodeString;
  49813. Public
  49814. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSHashChangeEventInit); overload;
  49815. constructor Create(const aType_: UnicodeString); overload;
  49816. procedure initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; const aOldURLArg: UnicodeString; const aNewURLArg: UnicodeString); overload;
  49817. procedure initHashChangeEvent(const aTypeArg: UnicodeString); overload;
  49818. procedure initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean); overload;
  49819. procedure initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean); overload;
  49820. procedure initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; const aOldURLArg: UnicodeString); overload;
  49821. class function JSClassName: UnicodeString; override;
  49822. class function Cast(const Intf: IJSObject): IJSHashChangeEvent;
  49823. property oldURL: UnicodeString read _GetoldURL;
  49824. property newURL: UnicodeString read _GetnewURL;
  49825. end;
  49826. { --------------------------------------------------------------------
  49827. TJSHTMLFormControlsCollection
  49828. --------------------------------------------------------------------}
  49829. // Union of RadioNodeList, Element
  49830. THTMLFormControlsCollection_namedItem_Type = Variant;
  49831. IJSHTMLFormControlsCollection = interface(IJSHTMLCollection)
  49832. ['{29F10560-C8A8-342C-8A30-F454B10A55D9}']
  49833. function namedItem(const aName: UnicodeString): THTMLFormControlsCollection_namedItem_Type;
  49834. end;
  49835. TJSHTMLFormControlsCollection = class(TJSHTMLCollection,IJSHTMLFormControlsCollection)
  49836. Protected
  49837. Public
  49838. function namedItem(const aName: UnicodeString): THTMLFormControlsCollection_namedItem_Type; overload;
  49839. class function JSClassName: UnicodeString; override;
  49840. class function Cast(const Intf: IJSObject): IJSHTMLFormControlsCollection;
  49841. end;
  49842. { --------------------------------------------------------------------
  49843. TJSHTMLOptionsCollection
  49844. --------------------------------------------------------------------}
  49845. // Union of HTMLOptionElement, HTMLOptGroupElement
  49846. THTMLOptionsCollection_add_element_Type = Variant;
  49847. // Union of HTMLElement, long
  49848. THTMLOptionsCollection_add_before_Type = Variant;
  49849. IJSHTMLOptionsCollection = interface(IJSHTMLCollection)
  49850. ['{120F63B1-AB4B-3DE0-8DEA-10DDB0145075}']
  49851. function _Getlength_2: Cardinal;
  49852. function _GetselectedIndex: LongInt;
  49853. procedure _Setlength_2(const aValue: Cardinal);
  49854. procedure _SetselectedIndex(const aValue: LongInt);
  49855. procedure SetDefault(aIndex: Cardinal; aOption: IJSHTMLOptionElement);
  49856. procedure add(aElement: IJSHTMLOptGroupElement; aBefore: IJSHTMLElement);
  49857. procedure add(aElement: IJSHTMLOptionElement; aBefore: IJSHTMLElement);
  49858. procedure add(aElement: IJSHTMLOptionElement);
  49859. procedure add(aElement: IJSHTMLOptGroupElement);
  49860. procedure add(aElement: IJSHTMLOptionElement; aBefore: LongInt);
  49861. procedure add(aElement: IJSHTMLOptGroupElement; aBefore: LongInt);
  49862. procedure remove(aIndex: LongInt);
  49863. property length_: Cardinal read _Getlength_2 write _Setlength_2;
  49864. property selectedIndex: LongInt read _GetselectedIndex write _SetselectedIndex;
  49865. end;
  49866. TJSHTMLOptionsCollection = class(TJSHTMLCollection,IJSHTMLOptionsCollection)
  49867. Protected
  49868. function _Getlength_2: Cardinal;
  49869. function _GetselectedIndex: LongInt;
  49870. procedure _Setlength_2(const aValue: Cardinal);
  49871. procedure _SetselectedIndex(const aValue: LongInt);
  49872. Public
  49873. procedure SetDefault(aIndex: Cardinal; aOption: IJSHTMLOptionElement); overload;
  49874. procedure add(aElement: IJSHTMLOptGroupElement; aBefore: IJSHTMLElement); overload;
  49875. procedure add(aElement: IJSHTMLOptionElement; aBefore: IJSHTMLElement); overload;
  49876. procedure add(aElement: IJSHTMLOptionElement); overload;
  49877. procedure add(aElement: IJSHTMLOptGroupElement); overload;
  49878. procedure add(aElement: IJSHTMLOptionElement; aBefore: LongInt); overload;
  49879. procedure add(aElement: IJSHTMLOptGroupElement; aBefore: LongInt); overload;
  49880. procedure remove(aIndex: LongInt); overload;
  49881. class function JSClassName: UnicodeString; override;
  49882. class function Cast(const Intf: IJSObject): IJSHTMLOptionsCollection;
  49883. property length_: Cardinal read _Getlength_2 write _Setlength_2;
  49884. property selectedIndex: LongInt read _GetselectedIndex write _SetselectedIndex;
  49885. end;
  49886. { --------------------------------------------------------------------
  49887. TJSIDBCursorWithValue
  49888. --------------------------------------------------------------------}
  49889. IJSIDBCursorWithValue = interface(IJSIDBCursor)
  49890. ['{C3CEF721-4743-3EF7-B41E-F387CF533DAC}']
  49891. function _Getvalue: Variant;
  49892. property value: Variant read _Getvalue;
  49893. end;
  49894. TJSIDBCursorWithValue = class(TJSIDBCursor,IJSIDBCursorWithValue)
  49895. Protected
  49896. function _Getvalue: Variant;
  49897. Public
  49898. class function JSClassName: UnicodeString; override;
  49899. class function Cast(const Intf: IJSObject): IJSIDBCursorWithValue;
  49900. property value: Variant read _Getvalue;
  49901. end;
  49902. { --------------------------------------------------------------------
  49903. TJSIDBDatabase
  49904. --------------------------------------------------------------------}
  49905. // Union of DOMString, sequence
  49906. TIDBDatabase_transaction_storeNames_Type = Variant;
  49907. IJSIDBDatabase = interface(IJSEventTarget)
  49908. ['{FBD83AA0-9955-3D92-BB3E-57FDDE2C56A1}']
  49909. function _Getname: UnicodeString;
  49910. function _Getversion: QWord;
  49911. function _GetobjectStoreNames: IJSDOMStringList;
  49912. function _Getonabort: TEventHandler;
  49913. function _Getonclose: TEventHandler;
  49914. function _Getonerror: TEventHandler;
  49915. function _Getonversionchange: TEventHandler;
  49916. procedure _Setonabort(const aValue: TEventHandler);
  49917. procedure _Setonclose(const aValue: TEventHandler);
  49918. procedure _Setonerror(const aValue: TEventHandler);
  49919. procedure _Setonversionchange(const aValue: TEventHandler);
  49920. function transaction(const aStoreNames: UnicodeString; aMode: TIDBTransactionMode; const aOptions: TJSIDBTransactionOptions): IJSIDBTransaction;
  49921. function transaction(const aStoreNames: TUnicodeStringDynArray; aMode: TIDBTransactionMode; const aOptions: TJSIDBTransactionOptions): IJSIDBTransaction;
  49922. function transaction(const aStoreNames: TUnicodeStringDynArray): IJSIDBTransaction;
  49923. function transaction(const aStoreNames: UnicodeString): IJSIDBTransaction;
  49924. function transaction(const aStoreNames: TUnicodeStringDynArray; aMode: TIDBTransactionMode): IJSIDBTransaction;
  49925. function transaction(const aStoreNames: UnicodeString; aMode: TIDBTransactionMode): IJSIDBTransaction;
  49926. function createObjectStore(const aName: UnicodeString; const aOptions: TJSIDBObjectStoreParameters): IJSIDBObjectStore;
  49927. function createObjectStore(const aName: UnicodeString): IJSIDBObjectStore;
  49928. procedure deleteObjectStore(const aName: UnicodeString);
  49929. procedure close;
  49930. property name: UnicodeString read _Getname;
  49931. property version: QWord read _Getversion;
  49932. property objectStoreNames: IJSDOMStringList read _GetobjectStoreNames;
  49933. property onabort: TEventHandler read _Getonabort write _Setonabort;
  49934. property onclose: TEventHandler read _Getonclose write _Setonclose;
  49935. property onerror: TEventHandler read _Getonerror write _Setonerror;
  49936. property onversionchange: TEventHandler read _Getonversionchange write _Setonversionchange;
  49937. end;
  49938. TJSIDBDatabase = class(TJSEventTarget,IJSIDBDatabase)
  49939. Protected
  49940. function _Getname: UnicodeString;
  49941. function _Getversion: QWord;
  49942. function _GetobjectStoreNames: IJSDOMStringList;
  49943. function _Getonabort: TEventHandler;
  49944. function _Getonclose: TEventHandler;
  49945. function _Getonerror: TEventHandler;
  49946. function _Getonversionchange: TEventHandler;
  49947. procedure _Setonabort(const aValue: TEventHandler);
  49948. procedure _Setonclose(const aValue: TEventHandler);
  49949. procedure _Setonerror(const aValue: TEventHandler);
  49950. procedure _Setonversionchange(const aValue: TEventHandler);
  49951. Public
  49952. function transaction(const aStoreNames: UnicodeString; aMode: TIDBTransactionMode; const aOptions: TJSIDBTransactionOptions): IJSIDBTransaction; overload;
  49953. function transaction(const aStoreNames: TUnicodeStringDynArray; aMode: TIDBTransactionMode; const aOptions: TJSIDBTransactionOptions): IJSIDBTransaction; overload;
  49954. function transaction(const aStoreNames: TUnicodeStringDynArray): IJSIDBTransaction; overload;
  49955. function transaction(const aStoreNames: UnicodeString): IJSIDBTransaction; overload;
  49956. function transaction(const aStoreNames: TUnicodeStringDynArray; aMode: TIDBTransactionMode): IJSIDBTransaction; overload;
  49957. function transaction(const aStoreNames: UnicodeString; aMode: TIDBTransactionMode): IJSIDBTransaction; overload;
  49958. function createObjectStore(const aName: UnicodeString; const aOptions: TJSIDBObjectStoreParameters): IJSIDBObjectStore; overload;
  49959. function createObjectStore(const aName: UnicodeString): IJSIDBObjectStore; overload;
  49960. procedure deleteObjectStore(const aName: UnicodeString); overload;
  49961. procedure close; overload;
  49962. class function JSClassName: UnicodeString; override;
  49963. class function Cast(const Intf: IJSObject): IJSIDBDatabase;
  49964. property name: UnicodeString read _Getname;
  49965. property version: QWord read _Getversion;
  49966. property objectStoreNames: IJSDOMStringList read _GetobjectStoreNames;
  49967. property onabort: TEventHandler read _Getonabort write _Setonabort;
  49968. property onclose: TEventHandler read _Getonclose write _Setonclose;
  49969. property onerror: TEventHandler read _Getonerror write _Setonerror;
  49970. property onversionchange: TEventHandler read _Getonversionchange write _Setonversionchange;
  49971. end;
  49972. { --------------------------------------------------------------------
  49973. TJSIDBRequest
  49974. --------------------------------------------------------------------}
  49975. // Union of IDBObjectStore, IDBIndex, IDBCursor
  49976. TIDBRequest_source_Type = Variant;
  49977. IJSIDBRequest = interface(IJSEventTarget)
  49978. ['{22A8CAD7-85C9-3D91-9C20-90FFC38FEC88}']
  49979. function _Getresult: Variant;
  49980. function _Geterror: IJSDOMException;
  49981. function _Getsource: TIDBRequest_source_Type;
  49982. function _Gettransaction: IJSIDBTransaction;
  49983. function _GetreadyState: TIDBRequestReadyState;
  49984. function _Getonsuccess: TEventHandler;
  49985. function _Getonerror: TEventHandler;
  49986. procedure _Setonsuccess(const aValue: TEventHandler);
  49987. procedure _Setonerror(const aValue: TEventHandler);
  49988. property result: Variant read _Getresult;
  49989. property error: IJSDOMException read _Geterror;
  49990. property source: TIDBRequest_source_Type read _Getsource;
  49991. property transaction: IJSIDBTransaction read _Gettransaction;
  49992. property readyState: TIDBRequestReadyState read _GetreadyState;
  49993. property onsuccess: TEventHandler read _Getonsuccess write _Setonsuccess;
  49994. property onerror: TEventHandler read _Getonerror write _Setonerror;
  49995. end;
  49996. TJSIDBRequest = class(TJSEventTarget,IJSIDBRequest)
  49997. Protected
  49998. function _Getresult: Variant;
  49999. function _Geterror: IJSDOMException;
  50000. function _Getsource: TIDBRequest_source_Type;
  50001. function _Gettransaction: IJSIDBTransaction;
  50002. function _GetreadyState: TIDBRequestReadyState;
  50003. function _Getonsuccess: TEventHandler;
  50004. function _Getonerror: TEventHandler;
  50005. procedure _Setonsuccess(const aValue: TEventHandler);
  50006. procedure _Setonerror(const aValue: TEventHandler);
  50007. Public
  50008. class function JSClassName: UnicodeString; override;
  50009. class function Cast(const Intf: IJSObject): IJSIDBRequest;
  50010. property result: Variant read _Getresult;
  50011. property error: IJSDOMException read _Geterror;
  50012. property source: TIDBRequest_source_Type read _Getsource;
  50013. property transaction: IJSIDBTransaction read _Gettransaction;
  50014. property readyState: TIDBRequestReadyState read _GetreadyState;
  50015. property onsuccess: TEventHandler read _Getonsuccess write _Setonsuccess;
  50016. property onerror: TEventHandler read _Getonerror write _Setonerror;
  50017. end;
  50018. { --------------------------------------------------------------------
  50019. TJSIDBTransaction
  50020. --------------------------------------------------------------------}
  50021. IJSIDBTransaction = interface(IJSEventTarget)
  50022. ['{B95C05C1-3CAF-3664-9067-E8E4C2056B04}']
  50023. function _Getmode: TIDBTransactionMode;
  50024. function _Getdurability: TIDBTransactionDurability;
  50025. function _Getdb: IJSIDBDatabase;
  50026. function _Geterror: IJSDOMException;
  50027. function _Getonabort: TEventHandler;
  50028. function _Getoncomplete: TEventHandler;
  50029. function _Getonerror: TEventHandler;
  50030. function _GetobjectStoreNames: IJSDOMStringList;
  50031. procedure _Setonabort(const aValue: TEventHandler);
  50032. procedure _Setoncomplete(const aValue: TEventHandler);
  50033. procedure _Setonerror(const aValue: TEventHandler);
  50034. function objectStore(const aName: UnicodeString): IJSIDBObjectStore;
  50035. procedure commit;
  50036. procedure abort;
  50037. property mode: TIDBTransactionMode read _Getmode;
  50038. property durability: TIDBTransactionDurability read _Getdurability;
  50039. property db: IJSIDBDatabase read _Getdb;
  50040. property error: IJSDOMException read _Geterror;
  50041. property onabort: TEventHandler read _Getonabort write _Setonabort;
  50042. property oncomplete: TEventHandler read _Getoncomplete write _Setoncomplete;
  50043. property onerror: TEventHandler read _Getonerror write _Setonerror;
  50044. property objectStoreNames: IJSDOMStringList read _GetobjectStoreNames;
  50045. end;
  50046. TJSIDBTransaction = class(TJSEventTarget,IJSIDBTransaction)
  50047. Protected
  50048. function _Getmode: TIDBTransactionMode;
  50049. function _Getdurability: TIDBTransactionDurability;
  50050. function _Getdb: IJSIDBDatabase;
  50051. function _Geterror: IJSDOMException;
  50052. function _Getonabort: TEventHandler;
  50053. function _Getoncomplete: TEventHandler;
  50054. function _Getonerror: TEventHandler;
  50055. function _GetobjectStoreNames: IJSDOMStringList;
  50056. procedure _Setonabort(const aValue: TEventHandler);
  50057. procedure _Setoncomplete(const aValue: TEventHandler);
  50058. procedure _Setonerror(const aValue: TEventHandler);
  50059. Public
  50060. function objectStore(const aName: UnicodeString): IJSIDBObjectStore; overload;
  50061. procedure commit; overload;
  50062. procedure abort; overload;
  50063. class function JSClassName: UnicodeString; override;
  50064. class function Cast(const Intf: IJSObject): IJSIDBTransaction;
  50065. property mode: TIDBTransactionMode read _Getmode;
  50066. property durability: TIDBTransactionDurability read _Getdurability;
  50067. property db: IJSIDBDatabase read _Getdb;
  50068. property error: IJSDOMException read _Geterror;
  50069. property onabort: TEventHandler read _Getonabort write _Setonabort;
  50070. property oncomplete: TEventHandler read _Getoncomplete write _Setoncomplete;
  50071. property onerror: TEventHandler read _Getonerror write _Setonerror;
  50072. property objectStoreNames: IJSDOMStringList read _GetobjectStoreNames;
  50073. end;
  50074. { --------------------------------------------------------------------
  50075. TJSIDBVersionChangeEvent
  50076. --------------------------------------------------------------------}
  50077. IJSIDBVersionChangeEvent = interface(IJSEvent)
  50078. ['{846B0E45-11C4-3DBB-9E3D-637B376BE14E}']
  50079. function _GetoldVersion: QWord;
  50080. function _GetnewVersion: QWord;
  50081. property oldVersion: QWord read _GetoldVersion;
  50082. property newVersion: QWord read _GetnewVersion;
  50083. end;
  50084. TJSIDBVersionChangeEvent = class(TJSEvent,IJSIDBVersionChangeEvent)
  50085. Protected
  50086. function _GetoldVersion: QWord;
  50087. function _GetnewVersion: QWord;
  50088. Public
  50089. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSIDBVersionChangeEventInit); overload;
  50090. constructor Create(const aType_: UnicodeString); overload;
  50091. class function JSClassName: UnicodeString; override;
  50092. class function Cast(const Intf: IJSObject): IJSIDBVersionChangeEvent;
  50093. property oldVersion: QWord read _GetoldVersion;
  50094. property newVersion: QWord read _GetnewVersion;
  50095. end;
  50096. { --------------------------------------------------------------------
  50097. TJSIdentityCredential
  50098. --------------------------------------------------------------------}
  50099. TJSIdentityCredentialLogoutRPsRequestDynArray = IJSArray; // array of IdentityCredentialLogoutRPsRequest
  50100. IJSIdentityCredential = interface(IJSCredential)
  50101. ['{ECFE7AC8-4FF6-38C8-834D-0CA64A937942}']
  50102. function _Gettoken: UnicodeString;
  50103. property token: UnicodeString read _Gettoken;
  50104. end;
  50105. TJSIdentityCredential = class(TJSCredential,IJSIdentityCredential)
  50106. Protected
  50107. function _Gettoken: UnicodeString;
  50108. Public
  50109. function logoutRPs(const aLogoutRequests: TJSIdentityCredentialLogoutRPsRequestDynArray): IJSPromise; overload; // Promise<undefined>
  50110. class function JSClassName: UnicodeString; override;
  50111. class function Cast(const Intf: IJSObject): IJSIdentityCredential;
  50112. property token: UnicodeString read _Gettoken;
  50113. end;
  50114. { --------------------------------------------------------------------
  50115. TJSImageCapture
  50116. --------------------------------------------------------------------}
  50117. IJSImageCapture = interface(IJSEventTarget)
  50118. ['{E1E8BCA7-91AB-33FA-89C5-0C96106BE122}']
  50119. function _GetvideoStreamTrack: IJSMediaStreamTrack;
  50120. function _Getonphoto: TEventHandler;
  50121. function _Getonerror: TEventHandler;
  50122. procedure _Setonphoto(const aValue: TEventHandler);
  50123. procedure _Setonerror(const aValue: TEventHandler);
  50124. procedure takePhoto;
  50125. property videoStreamTrack: IJSMediaStreamTrack read _GetvideoStreamTrack;
  50126. property onphoto: TEventHandler read _Getonphoto write _Setonphoto;
  50127. property onerror: TEventHandler read _Getonerror write _Setonerror;
  50128. end;
  50129. TJSImageCapture = class(TJSEventTarget,IJSImageCapture)
  50130. Protected
  50131. function _GetvideoStreamTrack: IJSMediaStreamTrack;
  50132. function _Getonphoto: TEventHandler;
  50133. function _Getonerror: TEventHandler;
  50134. procedure _Setonphoto(const aValue: TEventHandler);
  50135. procedure _Setonerror(const aValue: TEventHandler);
  50136. Public
  50137. constructor Create(aTrack: IJSMediaStreamTrack); overload;
  50138. procedure takePhoto; overload;
  50139. class function JSClassName: UnicodeString; override;
  50140. class function Cast(const Intf: IJSObject): IJSImageCapture;
  50141. property videoStreamTrack: IJSMediaStreamTrack read _GetvideoStreamTrack;
  50142. property onphoto: TEventHandler read _Getonphoto write _Setonphoto;
  50143. property onerror: TEventHandler read _Getonerror write _Setonerror;
  50144. end;
  50145. { --------------------------------------------------------------------
  50146. TJSImageCaptureErrorEvent
  50147. --------------------------------------------------------------------}
  50148. IJSImageCaptureErrorEvent = interface(IJSEvent)
  50149. ['{6E607AF7-150F-3255-9387-A5FC5CE0B042}']
  50150. function _GetimageCaptureError: IJSImageCaptureError;
  50151. property imageCaptureError: IJSImageCaptureError read _GetimageCaptureError;
  50152. end;
  50153. TJSImageCaptureErrorEvent = class(TJSEvent,IJSImageCaptureErrorEvent)
  50154. Protected
  50155. function _GetimageCaptureError: IJSImageCaptureError;
  50156. Public
  50157. constructor Create(const aType_: UnicodeString; const aImageCaptureErrorInitDict: TJSImageCaptureErrorEventInit); overload;
  50158. constructor Create(const aType_: UnicodeString); overload;
  50159. class function JSClassName: UnicodeString; override;
  50160. class function Cast(const Intf: IJSObject): IJSImageCaptureErrorEvent;
  50161. property imageCaptureError: IJSImageCaptureError read _GetimageCaptureError;
  50162. end;
  50163. { --------------------------------------------------------------------
  50164. TJSInvokeEvent
  50165. --------------------------------------------------------------------}
  50166. IJSInvokeEvent = interface(IJSEvent)
  50167. ['{B5800589-F386-37C8-9117-C6F65AC7961C}']
  50168. function _Getinvoker: IJSElement;
  50169. function _Getaction: UnicodeString;
  50170. property invoker: IJSElement read _Getinvoker;
  50171. property action: UnicodeString read _Getaction;
  50172. end;
  50173. TJSInvokeEvent = class(TJSEvent,IJSInvokeEvent)
  50174. Protected
  50175. function _Getinvoker: IJSElement;
  50176. function _Getaction: UnicodeString;
  50177. Public
  50178. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSInvokeEventInit); overload;
  50179. constructor Create(const aType_: UnicodeString); overload;
  50180. class function JSClassName: UnicodeString; override;
  50181. class function Cast(const Intf: IJSObject): IJSInvokeEvent;
  50182. property invoker: IJSElement read _Getinvoker;
  50183. property action: UnicodeString read _Getaction;
  50184. end;
  50185. { --------------------------------------------------------------------
  50186. TJSKeyEvent
  50187. --------------------------------------------------------------------}
  50188. IJSKeyEvent = interface(IJSKeyEventMixin)
  50189. ['{840D4F82-59B0-3E8B-9BE1-B92A9018C85A}']
  50190. end;
  50191. TJSKeyEvent = class(TJSKeyEventMixin,IJSKeyEvent)
  50192. Protected
  50193. Public
  50194. class function JSClassName: UnicodeString; override;
  50195. class function Cast(const Intf: IJSObject): IJSKeyEvent;
  50196. end;
  50197. { --------------------------------------------------------------------
  50198. TJSKeyframeEffect
  50199. --------------------------------------------------------------------}
  50200. // Union of unrestricted double, KeyframeEffectOptions
  50201. TKeyframeEffect_New_options_Type = Variant;
  50202. IJSKeyframeEffect = interface(IJSAnimationEffect)
  50203. ['{7EB66A46-59C9-3DCD-AB44-A17CE5723BC9}']
  50204. function _Gettarget: IJSElement;
  50205. function _GetpseudoElement: UnicodeString;
  50206. function _GetiterationComposite: TIterationCompositeOperation;
  50207. function _Getcomposite: TCompositeOperation;
  50208. procedure _Settarget(const aValue: IJSElement);
  50209. procedure _SetpseudoElement(const aValue: UnicodeString);
  50210. procedure _SetiterationComposite(const aValue: TIterationCompositeOperation);
  50211. procedure _Setcomposite(const aValue: TCompositeOperation);
  50212. function getKeyframes: TIJSObjectDynArray;
  50213. procedure setKeyframes(aKeyframes: IJSObject);
  50214. property target: IJSElement read _Gettarget write _Settarget;
  50215. property pseudoElement: UnicodeString read _GetpseudoElement write _SetpseudoElement;
  50216. property iterationComposite: TIterationCompositeOperation read _GetiterationComposite write _SetiterationComposite;
  50217. property composite: TCompositeOperation read _Getcomposite write _Setcomposite;
  50218. end;
  50219. TJSKeyframeEffect = class(TJSAnimationEffect,IJSKeyframeEffect)
  50220. Protected
  50221. function _Gettarget: IJSElement;
  50222. function _GetpseudoElement: UnicodeString;
  50223. function _GetiterationComposite: TIterationCompositeOperation;
  50224. function _Getcomposite: TCompositeOperation;
  50225. procedure _Settarget(const aValue: IJSElement);
  50226. procedure _SetpseudoElement(const aValue: UnicodeString);
  50227. procedure _SetiterationComposite(const aValue: TIterationCompositeOperation);
  50228. procedure _Setcomposite(const aValue: TCompositeOperation);
  50229. Public
  50230. constructor Create(aTarget: IJSElement; aKeyframes: IJSObject; const aOptions: TJSKeyframeEffectOptions); overload;
  50231. constructor Create(aTarget: IJSElement; aKeyframes: IJSObject); overload;
  50232. constructor Create(aTarget: IJSElement; aKeyframes: IJSObject; aOptions: Double); overload;
  50233. constructor Create(aSource: IJSKeyframeEffect); overload;
  50234. function getKeyframes: TIJSObjectDynArray; overload;
  50235. procedure setKeyframes(aKeyframes: IJSObject); overload;
  50236. class function JSClassName: UnicodeString; override;
  50237. class function Cast(const Intf: IJSObject): IJSKeyframeEffect;
  50238. property target: IJSElement read _Gettarget write _Settarget;
  50239. property pseudoElement: UnicodeString read _GetpseudoElement write _SetpseudoElement;
  50240. property iterationComposite: TIterationCompositeOperation read _GetiterationComposite write _SetiterationComposite;
  50241. property composite: TCompositeOperation read _Getcomposite write _Setcomposite;
  50242. end;
  50243. { --------------------------------------------------------------------
  50244. TJSMediaDevices
  50245. --------------------------------------------------------------------}
  50246. IJSMediaDevices = interface(IJSEventTarget)
  50247. ['{4D00DB21-97D9-3D69-BB55-E08D71F144D3}']
  50248. function _Getondevicechange: TEventHandler;
  50249. procedure _Setondevicechange(const aValue: TEventHandler);
  50250. function getSupportedConstraints: TJSMediaTrackSupportedConstraints;
  50251. function enumerateDevices: IJSPromise; // Promise<sequence>
  50252. function getUserMedia(const aConstraints: TJSMediaStreamConstraints): IJSPromise; // Promise<MediaStream>
  50253. function getUserMedia: IJSPromise; // Promise<MediaStream>
  50254. function getDisplayMedia(const aConstraints: TJSDisplayMediaStreamConstraints): IJSPromise; // Promise<MediaStream>
  50255. function getDisplayMedia: IJSPromise; // Promise<MediaStream>
  50256. function selectAudioOutput(const aOptions: TJSAudioOutputOptions): IJSPromise; // Promise<MediaDeviceInfo>
  50257. function selectAudioOutput: IJSPromise; // Promise<MediaDeviceInfo>
  50258. property ondevicechange: TEventHandler read _Getondevicechange write _Setondevicechange;
  50259. end;
  50260. TJSMediaDevices = class(TJSEventTarget,IJSMediaDevices)
  50261. Protected
  50262. function _Getondevicechange: TEventHandler;
  50263. procedure _Setondevicechange(const aValue: TEventHandler);
  50264. Public
  50265. function getSupportedConstraints: TJSMediaTrackSupportedConstraints; overload;
  50266. function enumerateDevices: IJSPromise; overload; // Promise<sequence>
  50267. function getUserMedia(const aConstraints: TJSMediaStreamConstraints): IJSPromise; overload; // Promise<MediaStream>
  50268. function getUserMedia: IJSPromise; overload; // Promise<MediaStream>
  50269. function getDisplayMedia(const aConstraints: TJSDisplayMediaStreamConstraints): IJSPromise; overload; // Promise<MediaStream>
  50270. function getDisplayMedia: IJSPromise; overload; // Promise<MediaStream>
  50271. function selectAudioOutput(const aOptions: TJSAudioOutputOptions): IJSPromise; overload; // Promise<MediaDeviceInfo>
  50272. function selectAudioOutput: IJSPromise; overload; // Promise<MediaDeviceInfo>
  50273. class function JSClassName: UnicodeString; override;
  50274. class function Cast(const Intf: IJSObject): IJSMediaDevices;
  50275. property ondevicechange: TEventHandler read _Getondevicechange write _Setondevicechange;
  50276. end;
  50277. { --------------------------------------------------------------------
  50278. TJSMediaEncryptedEvent
  50279. --------------------------------------------------------------------}
  50280. IJSMediaEncryptedEvent = interface(IJSEvent)
  50281. ['{13010B4B-665E-3119-8A92-E28A08876925}']
  50282. function _GetinitDataType: UnicodeString;
  50283. function _GetinitData: IJSArrayBuffer;
  50284. property initDataType: UnicodeString read _GetinitDataType;
  50285. property initData: IJSArrayBuffer read _GetinitData;
  50286. end;
  50287. TJSMediaEncryptedEvent = class(TJSEvent,IJSMediaEncryptedEvent)
  50288. Protected
  50289. function _GetinitDataType: UnicodeString;
  50290. function _GetinitData: IJSArrayBuffer;
  50291. Public
  50292. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaKeyNeededEventInit); overload;
  50293. constructor Create(const aType_: UnicodeString); overload;
  50294. class function JSClassName: UnicodeString; override;
  50295. class function Cast(const Intf: IJSObject): IJSMediaEncryptedEvent;
  50296. property initDataType: UnicodeString read _GetinitDataType;
  50297. property initData: IJSArrayBuffer read _GetinitData;
  50298. end;
  50299. { --------------------------------------------------------------------
  50300. TJSMediaKeyError
  50301. --------------------------------------------------------------------}
  50302. IJSMediaKeyError = interface(IJSEvent)
  50303. ['{ED67B63A-D0F8-395A-8108-3CF904AB4B03}']
  50304. function _GetsystemCode: Cardinal;
  50305. property systemCode: Cardinal read _GetsystemCode;
  50306. end;
  50307. TJSMediaKeyError = class(TJSEvent,IJSMediaKeyError)
  50308. Protected
  50309. function _GetsystemCode: Cardinal;
  50310. Public
  50311. class function JSClassName: UnicodeString; override;
  50312. class function Cast(const Intf: IJSObject): IJSMediaKeyError;
  50313. property systemCode: Cardinal read _GetsystemCode;
  50314. end;
  50315. { --------------------------------------------------------------------
  50316. TJSMediaKeyMessageEvent
  50317. --------------------------------------------------------------------}
  50318. IJSMediaKeyMessageEvent = interface(IJSEvent)
  50319. ['{11EC6648-22D1-381F-B0AC-967A2122E7C0}']
  50320. function _GetmessageType: TMediaKeyMessageType;
  50321. function _Getmessage: IJSArrayBuffer;
  50322. property messageType: TMediaKeyMessageType read _GetmessageType;
  50323. property message: IJSArrayBuffer read _Getmessage;
  50324. end;
  50325. TJSMediaKeyMessageEvent = class(TJSEvent,IJSMediaKeyMessageEvent)
  50326. Protected
  50327. function _GetmessageType: TMediaKeyMessageType;
  50328. function _Getmessage: IJSArrayBuffer;
  50329. Public
  50330. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaKeyMessageEventInit); overload;
  50331. class function JSClassName: UnicodeString; override;
  50332. class function Cast(const Intf: IJSObject): IJSMediaKeyMessageEvent;
  50333. property messageType: TMediaKeyMessageType read _GetmessageType;
  50334. property message: IJSArrayBuffer read _Getmessage;
  50335. end;
  50336. { --------------------------------------------------------------------
  50337. TJSMediaKeySession
  50338. --------------------------------------------------------------------}
  50339. IJSMediaKeySession = interface(IJSEventTarget)
  50340. ['{597F2524-93DB-35B2-A13B-1C6002BF2084}']
  50341. function _Geterror: IJSMediaKeyError;
  50342. function _GetsessionId: UnicodeString;
  50343. function _Getexpiration: Double;
  50344. function _Getclosed: IJSPromise;
  50345. function _GetkeyStatuses: IJSMediaKeyStatusMap;
  50346. function _Getonkeystatuseschange: TEventHandler;
  50347. function _Getonmessage: TEventHandler;
  50348. procedure _Setonkeystatuseschange(const aValue: TEventHandler);
  50349. procedure _Setonmessage(const aValue: TEventHandler);
  50350. function generateRequest(const aInitDataType: UnicodeString; aInitData: IJSBufferSource): IJSPromise; // Promise<undefined>
  50351. function load(const aSessionId: UnicodeString): IJSPromise; // Promise<boolean>
  50352. function update(aResponse: IJSBufferSource): IJSPromise; // Promise<undefined>
  50353. function close: IJSPromise; // Promise<undefined>
  50354. function remove: IJSPromise; // Promise<undefined>
  50355. property error: IJSMediaKeyError read _Geterror;
  50356. property sessionId: UnicodeString read _GetsessionId;
  50357. property expiration: Double read _Getexpiration;
  50358. property closed: IJSPromise read _Getclosed;
  50359. property keyStatuses: IJSMediaKeyStatusMap read _GetkeyStatuses;
  50360. property onkeystatuseschange: TEventHandler read _Getonkeystatuseschange write _Setonkeystatuseschange;
  50361. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  50362. end;
  50363. TJSMediaKeySession = class(TJSEventTarget,IJSMediaKeySession)
  50364. Protected
  50365. function _Geterror: IJSMediaKeyError;
  50366. function _GetsessionId: UnicodeString;
  50367. function _Getexpiration: Double;
  50368. function _Getclosed: IJSPromise;
  50369. function _GetkeyStatuses: IJSMediaKeyStatusMap;
  50370. function _Getonkeystatuseschange: TEventHandler;
  50371. function _Getonmessage: TEventHandler;
  50372. procedure _Setonkeystatuseschange(const aValue: TEventHandler);
  50373. procedure _Setonmessage(const aValue: TEventHandler);
  50374. Public
  50375. function generateRequest(const aInitDataType: UnicodeString; aInitData: IJSBufferSource): IJSPromise; overload; // Promise<undefined>
  50376. function load(const aSessionId: UnicodeString): IJSPromise; overload; // Promise<boolean>
  50377. function update(aResponse: IJSBufferSource): IJSPromise; overload; // Promise<undefined>
  50378. function close: IJSPromise; overload; // Promise<undefined>
  50379. function remove: IJSPromise; overload; // Promise<undefined>
  50380. class function JSClassName: UnicodeString; override;
  50381. class function Cast(const Intf: IJSObject): IJSMediaKeySession;
  50382. property error: IJSMediaKeyError read _Geterror;
  50383. property sessionId: UnicodeString read _GetsessionId;
  50384. property expiration: Double read _Getexpiration;
  50385. property closed: IJSPromise read _Getclosed;
  50386. property keyStatuses: IJSMediaKeyStatusMap read _GetkeyStatuses;
  50387. property onkeystatuseschange: TEventHandler read _Getonkeystatuseschange write _Setonkeystatuseschange;
  50388. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  50389. end;
  50390. { --------------------------------------------------------------------
  50391. TJSMediaQueryList
  50392. --------------------------------------------------------------------}
  50393. IJSMediaQueryList = interface(IJSEventTarget)
  50394. ['{AFF6B5FE-2218-314D-B9BA-FA5B9E11AF7F}']
  50395. function _Getmedia: UTF8String;
  50396. function _Getmatches: Boolean;
  50397. function _Getonchange: TEventHandler;
  50398. procedure _Setonchange(const aValue: TEventHandler);
  50399. procedure addListener(const aListener: TEventListener);
  50400. procedure removeListener(const aListener: TEventListener);
  50401. property media: UTF8String read _Getmedia;
  50402. property matches: Boolean read _Getmatches;
  50403. property onchange: TEventHandler read _Getonchange write _Setonchange;
  50404. end;
  50405. TJSMediaQueryList = class(TJSEventTarget,IJSMediaQueryList)
  50406. Protected
  50407. function _Getmedia: UTF8String;
  50408. function _Getmatches: Boolean;
  50409. function _Getonchange: TEventHandler;
  50410. procedure _Setonchange(const aValue: TEventHandler);
  50411. Public
  50412. procedure addListener(const aListener: TEventListener); overload;
  50413. procedure removeListener(const aListener: TEventListener); overload;
  50414. class function JSClassName: UnicodeString; override;
  50415. class function Cast(const Intf: IJSObject): IJSMediaQueryList;
  50416. property media: UTF8String read _Getmedia;
  50417. property matches: Boolean read _Getmatches;
  50418. property onchange: TEventHandler read _Getonchange write _Setonchange;
  50419. end;
  50420. { --------------------------------------------------------------------
  50421. TJSMediaQueryListEvent
  50422. --------------------------------------------------------------------}
  50423. IJSMediaQueryListEvent = interface(IJSEvent)
  50424. ['{A8DE4B91-8280-34B6-8EDC-E6B13D8AE077}']
  50425. function _Getmedia: UTF8String;
  50426. function _Getmatches: Boolean;
  50427. property media: UTF8String read _Getmedia;
  50428. property matches: Boolean read _Getmatches;
  50429. end;
  50430. TJSMediaQueryListEvent = class(TJSEvent,IJSMediaQueryListEvent)
  50431. Protected
  50432. function _Getmedia: UTF8String;
  50433. function _Getmatches: Boolean;
  50434. Public
  50435. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaQueryListEventInit); overload;
  50436. constructor Create(const aType_: UnicodeString); overload;
  50437. class function JSClassName: UnicodeString; override;
  50438. class function Cast(const Intf: IJSObject): IJSMediaQueryListEvent;
  50439. property media: UTF8String read _Getmedia;
  50440. property matches: Boolean read _Getmatches;
  50441. end;
  50442. { --------------------------------------------------------------------
  50443. TJSMediaRecorder
  50444. --------------------------------------------------------------------}
  50445. IJSMediaRecorder = interface(IJSEventTarget)
  50446. ['{44880CDC-F764-3A6C-9E62-37C5D045F64B}']
  50447. function _Getstream: IJSMediaStream;
  50448. function _GetmimeType: UnicodeString;
  50449. function _Getstate: TRecordingState;
  50450. function _Getonstart: TEventHandler;
  50451. function _Getonstop: TEventHandler;
  50452. function _Getondataavailable: TEventHandler;
  50453. function _Getonpause: TEventHandler;
  50454. function _Getonresume: TEventHandler;
  50455. function _Getonerror: TEventHandler;
  50456. function _GetvideoBitsPerSecond: Cardinal;
  50457. function _GetaudioBitsPerSecond: Cardinal;
  50458. procedure _Setonstart(const aValue: TEventHandler);
  50459. procedure _Setonstop(const aValue: TEventHandler);
  50460. procedure _Setondataavailable(const aValue: TEventHandler);
  50461. procedure _Setonpause(const aValue: TEventHandler);
  50462. procedure _Setonresume(const aValue: TEventHandler);
  50463. procedure _Setonerror(const aValue: TEventHandler);
  50464. procedure start(aTimeslice: Cardinal);
  50465. procedure start;
  50466. procedure stop;
  50467. procedure pause;
  50468. procedure resume;
  50469. procedure requestData;
  50470. property stream: IJSMediaStream read _Getstream;
  50471. property mimeType: UnicodeString read _GetmimeType;
  50472. property state: TRecordingState read _Getstate;
  50473. property onstart: TEventHandler read _Getonstart write _Setonstart;
  50474. property onstop: TEventHandler read _Getonstop write _Setonstop;
  50475. property ondataavailable: TEventHandler read _Getondataavailable write _Setondataavailable;
  50476. property onpause: TEventHandler read _Getonpause write _Setonpause;
  50477. property onresume: TEventHandler read _Getonresume write _Setonresume;
  50478. property onerror: TEventHandler read _Getonerror write _Setonerror;
  50479. property videoBitsPerSecond: Cardinal read _GetvideoBitsPerSecond;
  50480. property audioBitsPerSecond: Cardinal read _GetaudioBitsPerSecond;
  50481. end;
  50482. TJSMediaRecorder = class(TJSEventTarget,IJSMediaRecorder)
  50483. Protected
  50484. function _Getstream: IJSMediaStream;
  50485. function _GetmimeType: UnicodeString;
  50486. function _Getstate: TRecordingState;
  50487. function _Getonstart: TEventHandler;
  50488. function _Getonstop: TEventHandler;
  50489. function _Getondataavailable: TEventHandler;
  50490. function _Getonpause: TEventHandler;
  50491. function _Getonresume: TEventHandler;
  50492. function _Getonerror: TEventHandler;
  50493. function _GetvideoBitsPerSecond: Cardinal;
  50494. function _GetaudioBitsPerSecond: Cardinal;
  50495. procedure _Setonstart(const aValue: TEventHandler);
  50496. procedure _Setonstop(const aValue: TEventHandler);
  50497. procedure _Setondataavailable(const aValue: TEventHandler);
  50498. procedure _Setonpause(const aValue: TEventHandler);
  50499. procedure _Setonresume(const aValue: TEventHandler);
  50500. procedure _Setonerror(const aValue: TEventHandler);
  50501. Public
  50502. constructor Create(aStream: IJSMediaStream; const aOptions: TJSMediaRecorderOptions); overload;
  50503. constructor Create(aStream: IJSMediaStream); overload;
  50504. constructor Create(aNode: IJSAudioNode; aOutput: Cardinal; const aOptions: TJSMediaRecorderOptions); overload;
  50505. constructor Create(aNode: IJSAudioNode); overload;
  50506. constructor Create(aNode: IJSAudioNode; aOutput: Cardinal); overload;
  50507. procedure start(aTimeslice: Cardinal); overload;
  50508. procedure start; overload;
  50509. procedure stop; overload;
  50510. procedure pause; overload;
  50511. procedure resume; overload;
  50512. procedure requestData; overload;
  50513. function isTypeSupported(const aType_: UnicodeString): Boolean; overload;
  50514. class function JSClassName: UnicodeString; override;
  50515. class function Cast(const Intf: IJSObject): IJSMediaRecorder;
  50516. property stream: IJSMediaStream read _Getstream;
  50517. property mimeType: UnicodeString read _GetmimeType;
  50518. property state: TRecordingState read _Getstate;
  50519. property onstart: TEventHandler read _Getonstart write _Setonstart;
  50520. property onstop: TEventHandler read _Getonstop write _Setonstop;
  50521. property ondataavailable: TEventHandler read _Getondataavailable write _Setondataavailable;
  50522. property onpause: TEventHandler read _Getonpause write _Setonpause;
  50523. property onresume: TEventHandler read _Getonresume write _Setonresume;
  50524. property onerror: TEventHandler read _Getonerror write _Setonerror;
  50525. property videoBitsPerSecond: Cardinal read _GetvideoBitsPerSecond;
  50526. property audioBitsPerSecond: Cardinal read _GetaudioBitsPerSecond;
  50527. end;
  50528. { --------------------------------------------------------------------
  50529. TJSMediaRecorderErrorEvent
  50530. --------------------------------------------------------------------}
  50531. IJSMediaRecorderErrorEvent = interface(IJSEvent)
  50532. ['{F6D42D85-2587-3552-9F9C-8B4186CB905E}']
  50533. function _Geterror: IJSDOMException;
  50534. property error: IJSDOMException read _Geterror;
  50535. end;
  50536. TJSMediaRecorderErrorEvent = class(TJSEvent,IJSMediaRecorderErrorEvent)
  50537. Protected
  50538. function _Geterror: IJSDOMException;
  50539. Public
  50540. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaRecorderErrorEventInit); overload;
  50541. class function JSClassName: UnicodeString; override;
  50542. class function Cast(const Intf: IJSObject): IJSMediaRecorderErrorEvent;
  50543. property error: IJSDOMException read _Geterror;
  50544. end;
  50545. { --------------------------------------------------------------------
  50546. TJSMediaSource
  50547. --------------------------------------------------------------------}
  50548. IJSMediaSource = interface(IJSEventTarget)
  50549. ['{65C7B3E9-C77A-3F13-A4BB-60B7953BF5C3}']
  50550. function _GetsourceBuffers: IJSSourceBufferList;
  50551. function _GetactiveSourceBuffers: IJSSourceBufferList;
  50552. function _GetreadyState: TMediaSourceReadyState;
  50553. function _Getduration: Double;
  50554. function _Getonsourceopen: TEventHandler;
  50555. function _Getonsourceended: TEventHandler;
  50556. function _Getonsourceclose: TEventHandler;
  50557. procedure _Setduration(const aValue: Double);
  50558. procedure _Setonsourceopen(const aValue: TEventHandler);
  50559. procedure _Setonsourceended(const aValue: TEventHandler);
  50560. procedure _Setonsourceclose(const aValue: TEventHandler);
  50561. function addSourceBuffer(const aType_: UnicodeString): IJSSourceBuffer;
  50562. procedure removeSourceBuffer(aSourceBuffer: IJSSourceBuffer);
  50563. procedure endOfStream(aError: TMediaSourceEndOfStreamError);
  50564. procedure endOfStream;
  50565. procedure setLiveSeekableRange(aStart: Double; aEnd_: Double);
  50566. procedure clearLiveSeekableRange;
  50567. property sourceBuffers: IJSSourceBufferList read _GetsourceBuffers;
  50568. property activeSourceBuffers: IJSSourceBufferList read _GetactiveSourceBuffers;
  50569. property readyState: TMediaSourceReadyState read _GetreadyState;
  50570. property duration: Double read _Getduration write _Setduration;
  50571. property onsourceopen: TEventHandler read _Getonsourceopen write _Setonsourceopen;
  50572. property onsourceended: TEventHandler read _Getonsourceended write _Setonsourceended;
  50573. property onsourceclose: TEventHandler read _Getonsourceclose write _Setonsourceclose;
  50574. end;
  50575. TJSMediaSource = class(TJSEventTarget,IJSMediaSource)
  50576. Protected
  50577. function _GetsourceBuffers: IJSSourceBufferList;
  50578. function _GetactiveSourceBuffers: IJSSourceBufferList;
  50579. function _GetreadyState: TMediaSourceReadyState;
  50580. function _Getduration: Double;
  50581. function _Getonsourceopen: TEventHandler;
  50582. function _Getonsourceended: TEventHandler;
  50583. function _Getonsourceclose: TEventHandler;
  50584. procedure _Setduration(const aValue: Double);
  50585. procedure _Setonsourceopen(const aValue: TEventHandler);
  50586. procedure _Setonsourceended(const aValue: TEventHandler);
  50587. procedure _Setonsourceclose(const aValue: TEventHandler);
  50588. Public
  50589. constructor Create; overload;
  50590. function addSourceBuffer(const aType_: UnicodeString): IJSSourceBuffer; overload;
  50591. procedure removeSourceBuffer(aSourceBuffer: IJSSourceBuffer); overload;
  50592. procedure endOfStream(aError: TMediaSourceEndOfStreamError); overload;
  50593. procedure endOfStream; overload;
  50594. procedure setLiveSeekableRange(aStart: Double; aEnd_: Double); overload;
  50595. procedure clearLiveSeekableRange; overload;
  50596. function isTypeSupported(const aType_: UnicodeString): Boolean; overload;
  50597. class function JSClassName: UnicodeString; override;
  50598. class function Cast(const Intf: IJSObject): IJSMediaSource;
  50599. property sourceBuffers: IJSSourceBufferList read _GetsourceBuffers;
  50600. property activeSourceBuffers: IJSSourceBufferList read _GetactiveSourceBuffers;
  50601. property readyState: TMediaSourceReadyState read _GetreadyState;
  50602. property duration: Double read _Getduration write _Setduration;
  50603. property onsourceopen: TEventHandler read _Getonsourceopen write _Setonsourceopen;
  50604. property onsourceended: TEventHandler read _Getonsourceended write _Setonsourceended;
  50605. property onsourceclose: TEventHandler read _Getonsourceclose write _Setonsourceclose;
  50606. end;
  50607. { --------------------------------------------------------------------
  50608. TJSMediaStream
  50609. --------------------------------------------------------------------}
  50610. TJSMediaStreamTrackDynArray = IJSArray; // array of MediaStreamTrack
  50611. IJSMediaStream = interface(IJSEventTarget)
  50612. ['{92E92B75-A2A0-3F5E-A4DC-D33C2055BC0D}']
  50613. function _Getid: UnicodeString;
  50614. function _Getactive: Boolean;
  50615. function _Getonaddtrack: TEventHandler;
  50616. function _Getonremovetrack: TEventHandler;
  50617. procedure _Setonaddtrack(const aValue: TEventHandler);
  50618. procedure _Setonremovetrack(const aValue: TEventHandler);
  50619. function getAudioTracks: TJSMediaStreamTrackDynArray;
  50620. function getVideoTracks: TJSMediaStreamTrackDynArray;
  50621. function getTracks: TJSMediaStreamTrackDynArray;
  50622. function getTrackById(const aTrackId: UnicodeString): IJSMediaStreamTrack;
  50623. procedure addTrack(aTrack: IJSMediaStreamTrack);
  50624. procedure removeTrack(aTrack: IJSMediaStreamTrack);
  50625. function clone: IJSMediaStream;
  50626. property id: UnicodeString read _Getid;
  50627. property active: Boolean read _Getactive;
  50628. property onaddtrack: TEventHandler read _Getonaddtrack write _Setonaddtrack;
  50629. property onremovetrack: TEventHandler read _Getonremovetrack write _Setonremovetrack;
  50630. end;
  50631. TJSMediaStream = class(TJSEventTarget,IJSMediaStream)
  50632. Protected
  50633. function _Getid: UnicodeString;
  50634. function _Getactive: Boolean;
  50635. function _Getonaddtrack: TEventHandler;
  50636. function _Getonremovetrack: TEventHandler;
  50637. procedure _Setonaddtrack(const aValue: TEventHandler);
  50638. procedure _Setonremovetrack(const aValue: TEventHandler);
  50639. Public
  50640. constructor Create; overload;
  50641. constructor Create(aStream: IJSMediaStream); overload;
  50642. constructor Create(const aTracks: TJSMediaStreamTrackDynArray); overload;
  50643. function getAudioTracks: TJSMediaStreamTrackDynArray; overload;
  50644. function getVideoTracks: TJSMediaStreamTrackDynArray; overload;
  50645. function getTracks: TJSMediaStreamTrackDynArray; overload;
  50646. function getTrackById(const aTrackId: UnicodeString): IJSMediaStreamTrack; overload;
  50647. procedure addTrack(aTrack: IJSMediaStreamTrack); overload;
  50648. procedure removeTrack(aTrack: IJSMediaStreamTrack); overload;
  50649. function clone: IJSMediaStream; overload;
  50650. class function JSClassName: UnicodeString; override;
  50651. class function Cast(const Intf: IJSObject): IJSMediaStream;
  50652. property id: UnicodeString read _Getid;
  50653. property active: Boolean read _Getactive;
  50654. property onaddtrack: TEventHandler read _Getonaddtrack write _Setonaddtrack;
  50655. property onremovetrack: TEventHandler read _Getonremovetrack write _Setonremovetrack;
  50656. end;
  50657. { --------------------------------------------------------------------
  50658. TJSMediaStreamEvent
  50659. --------------------------------------------------------------------}
  50660. IJSMediaStreamEvent = interface(IJSEvent)
  50661. ['{CB2B1F20-E44A-3922-9869-A07C7F004B09}']
  50662. function _Getstream: IJSMediaStream;
  50663. property stream: IJSMediaStream read _Getstream;
  50664. end;
  50665. TJSMediaStreamEvent = class(TJSEvent,IJSMediaStreamEvent)
  50666. Protected
  50667. function _Getstream: IJSMediaStream;
  50668. Public
  50669. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaStreamEventInit); overload;
  50670. constructor Create(const aType_: UnicodeString); overload;
  50671. class function JSClassName: UnicodeString; override;
  50672. class function Cast(const Intf: IJSObject): IJSMediaStreamEvent;
  50673. property stream: IJSMediaStream read _Getstream;
  50674. end;
  50675. { --------------------------------------------------------------------
  50676. TJSMediaStreamTrack
  50677. --------------------------------------------------------------------}
  50678. IJSMediaStreamTrack = interface(IJSEventTarget)
  50679. ['{1C7BE426-BF98-35DF-942D-3F3FC2865756}']
  50680. function _Getkind: UnicodeString;
  50681. function _Getid: UnicodeString;
  50682. function _Getlabel_: UnicodeString;
  50683. function _Getenabled: Boolean;
  50684. function _Getmuted: Boolean;
  50685. function _Getonmute: TEventHandler;
  50686. function _Getonunmute: TEventHandler;
  50687. function _GetreadyState: TMediaStreamTrackState;
  50688. function _Getonended: TEventHandler;
  50689. procedure _Setenabled(const aValue: Boolean);
  50690. procedure _Setonmute(const aValue: TEventHandler);
  50691. procedure _Setonunmute(const aValue: TEventHandler);
  50692. procedure _Setonended(const aValue: TEventHandler);
  50693. function clone: IJSMediaStreamTrack;
  50694. procedure stop;
  50695. function getConstraints: TJSMediaTrackConstraints;
  50696. function getSettings: TJSMediaTrackSettings;
  50697. function applyConstraints(const aConstraints: TJSMediaTrackConstraints): IJSPromise; // Promise<undefined>
  50698. function applyConstraints: IJSPromise; // Promise<undefined>
  50699. property kind: UnicodeString read _Getkind;
  50700. property id: UnicodeString read _Getid;
  50701. property label_: UnicodeString read _Getlabel_;
  50702. property enabled: Boolean read _Getenabled write _Setenabled;
  50703. property muted: Boolean read _Getmuted;
  50704. property onmute: TEventHandler read _Getonmute write _Setonmute;
  50705. property onunmute: TEventHandler read _Getonunmute write _Setonunmute;
  50706. property readyState: TMediaStreamTrackState read _GetreadyState;
  50707. property onended: TEventHandler read _Getonended write _Setonended;
  50708. end;
  50709. TJSMediaStreamTrack = class(TJSEventTarget,IJSMediaStreamTrack)
  50710. Protected
  50711. function _Getkind: UnicodeString;
  50712. function _Getid: UnicodeString;
  50713. function _Getlabel_: UnicodeString;
  50714. function _Getenabled: Boolean;
  50715. function _Getmuted: Boolean;
  50716. function _Getonmute: TEventHandler;
  50717. function _Getonunmute: TEventHandler;
  50718. function _GetreadyState: TMediaStreamTrackState;
  50719. function _Getonended: TEventHandler;
  50720. procedure _Setenabled(const aValue: Boolean);
  50721. procedure _Setonmute(const aValue: TEventHandler);
  50722. procedure _Setonunmute(const aValue: TEventHandler);
  50723. procedure _Setonended(const aValue: TEventHandler);
  50724. Public
  50725. function clone: IJSMediaStreamTrack; overload;
  50726. procedure stop; overload;
  50727. function getConstraints: TJSMediaTrackConstraints; overload;
  50728. function getSettings: TJSMediaTrackSettings; overload;
  50729. function applyConstraints(const aConstraints: TJSMediaTrackConstraints): IJSPromise; overload; // Promise<undefined>
  50730. function applyConstraints: IJSPromise; overload; // Promise<undefined>
  50731. class function JSClassName: UnicodeString; override;
  50732. class function Cast(const Intf: IJSObject): IJSMediaStreamTrack;
  50733. property kind: UnicodeString read _Getkind;
  50734. property id: UnicodeString read _Getid;
  50735. property label_: UnicodeString read _Getlabel_;
  50736. property enabled: Boolean read _Getenabled write _Setenabled;
  50737. property muted: Boolean read _Getmuted;
  50738. property onmute: TEventHandler read _Getonmute write _Setonmute;
  50739. property onunmute: TEventHandler read _Getonunmute write _Setonunmute;
  50740. property readyState: TMediaStreamTrackState read _GetreadyState;
  50741. property onended: TEventHandler read _Getonended write _Setonended;
  50742. end;
  50743. { --------------------------------------------------------------------
  50744. TJSMediaStreamTrackEvent
  50745. --------------------------------------------------------------------}
  50746. IJSMediaStreamTrackEvent = interface(IJSEvent)
  50747. ['{DAC56196-EA44-3E20-8D87-B892D6807D40}']
  50748. function _Gettrack: IJSMediaStreamTrack;
  50749. property track: IJSMediaStreamTrack read _Gettrack;
  50750. end;
  50751. TJSMediaStreamTrackEvent = class(TJSEvent,IJSMediaStreamTrackEvent)
  50752. Protected
  50753. function _Gettrack: IJSMediaStreamTrack;
  50754. Public
  50755. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaStreamTrackEventInit); overload;
  50756. class function JSClassName: UnicodeString; override;
  50757. class function Cast(const Intf: IJSObject): IJSMediaStreamTrackEvent;
  50758. property track: IJSMediaStreamTrack read _Gettrack;
  50759. end;
  50760. { --------------------------------------------------------------------
  50761. TJSMerchantValidationEvent
  50762. --------------------------------------------------------------------}
  50763. IJSMerchantValidationEvent = interface(IJSEvent)
  50764. ['{FAC77072-A609-3550-A8F8-BCCCAA779A09}']
  50765. function _GetmethodName: UnicodeString;
  50766. function _GetvalidationURL: UnicodeString;
  50767. procedure complete(aMerchantSessionPromise: IJSPromise);
  50768. property methodName: UnicodeString read _GetmethodName;
  50769. property validationURL: UnicodeString read _GetvalidationURL;
  50770. end;
  50771. TJSMerchantValidationEvent = class(TJSEvent,IJSMerchantValidationEvent)
  50772. Protected
  50773. function _GetmethodName: UnicodeString;
  50774. function _GetvalidationURL: UnicodeString;
  50775. Public
  50776. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSMerchantValidationEventInit); overload;
  50777. constructor Create(const aType_: UnicodeString); overload;
  50778. procedure complete(aMerchantSessionPromise: IJSPromise); overload;
  50779. class function JSClassName: UnicodeString; override;
  50780. class function Cast(const Intf: IJSObject): IJSMerchantValidationEvent;
  50781. property methodName: UnicodeString read _GetmethodName;
  50782. property validationURL: UnicodeString read _GetvalidationURL;
  50783. end;
  50784. { --------------------------------------------------------------------
  50785. TJSMessageEvent
  50786. --------------------------------------------------------------------}
  50787. IJSMessageEvent = interface(IJSEvent)
  50788. ['{90A1155B-308F-3E35-A7E7-A391F3125ED5}']
  50789. function _Getdata: Variant;
  50790. function _Getorigin: UnicodeString;
  50791. function _GetlastEventId: UnicodeString;
  50792. function _Getsource: TMessageEventSource;
  50793. function _Getports: TJSMessagePortDynArray;
  50794. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSMessagePort; const aPorts: TJSMessagePortDynArray);
  50795. procedure initMessageEvent(const aType_: UnicodeString);
  50796. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean);
  50797. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean);
  50798. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant);
  50799. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString);
  50800. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString);
  50801. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSServiceWorker; const aPorts: TJSMessagePortDynArray);
  50802. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSWindowProxy; const aPorts: TJSMessagePortDynArray);
  50803. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSWindowProxy);
  50804. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSServiceWorker);
  50805. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSMessagePort);
  50806. property data: Variant read _Getdata;
  50807. property origin: UnicodeString read _Getorigin;
  50808. property lastEventId: UnicodeString read _GetlastEventId;
  50809. property source: TMessageEventSource read _Getsource;
  50810. property ports: TJSMessagePortDynArray read _Getports;
  50811. end;
  50812. TJSMessageEvent = class(TJSEvent,IJSMessageEvent)
  50813. Protected
  50814. function _Getdata: Variant;
  50815. function _Getorigin: UnicodeString;
  50816. function _GetlastEventId: UnicodeString;
  50817. function _Getsource: TMessageEventSource;
  50818. function _Getports: TJSMessagePortDynArray;
  50819. Public
  50820. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSMessageEventInit); overload;
  50821. constructor Create(const aType_: UnicodeString); overload;
  50822. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSMessagePort; const aPorts: TJSMessagePortDynArray); overload;
  50823. procedure initMessageEvent(const aType_: UnicodeString); overload;
  50824. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean); overload;
  50825. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean); overload;
  50826. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant); overload;
  50827. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString); overload;
  50828. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString); overload;
  50829. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSServiceWorker; const aPorts: TJSMessagePortDynArray); overload;
  50830. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSWindowProxy; const aPorts: TJSMessagePortDynArray); overload;
  50831. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSWindowProxy); overload;
  50832. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSServiceWorker); overload;
  50833. procedure initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSMessagePort); overload;
  50834. class function JSClassName: UnicodeString; override;
  50835. class function Cast(const Intf: IJSObject): IJSMessageEvent;
  50836. property data: Variant read _Getdata;
  50837. property origin: UnicodeString read _Getorigin;
  50838. property lastEventId: UnicodeString read _GetlastEventId;
  50839. property source: TMessageEventSource read _Getsource;
  50840. property ports: TJSMessagePortDynArray read _Getports;
  50841. end;
  50842. { --------------------------------------------------------------------
  50843. TJSMessagePort
  50844. --------------------------------------------------------------------}
  50845. IJSMessagePort = interface(IJSEventTarget)
  50846. ['{5F758B0C-FC90-31B7-860B-0510125B07C7}']
  50847. function _Getonmessage: TEventHandler;
  50848. function _Getonmessageerror: TEventHandler;
  50849. procedure _Setonmessage(const aValue: TEventHandler);
  50850. procedure _Setonmessageerror(const aValue: TEventHandler);
  50851. procedure postMessage(const aMessage: Variant; const aTransferable: TIJSObjectDynArray);
  50852. procedure postMessage(const aMessage: Variant; const aOptions: TJSStructuredSerializeOptions);
  50853. procedure postMessage(const aMessage: Variant);
  50854. procedure start;
  50855. procedure close;
  50856. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  50857. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  50858. end;
  50859. TJSMessagePort = class(TJSEventTarget,IJSMessagePort)
  50860. Protected
  50861. function _Getonmessage: TEventHandler;
  50862. function _Getonmessageerror: TEventHandler;
  50863. procedure _Setonmessage(const aValue: TEventHandler);
  50864. procedure _Setonmessageerror(const aValue: TEventHandler);
  50865. Public
  50866. procedure postMessage(const aMessage: Variant; const aTransferable: TIJSObjectDynArray); overload;
  50867. procedure postMessage(const aMessage: Variant; const aOptions: TJSStructuredSerializeOptions); overload;
  50868. procedure postMessage(const aMessage: Variant); overload;
  50869. procedure start; overload;
  50870. procedure close; overload;
  50871. class function JSClassName: UnicodeString; override;
  50872. class function Cast(const Intf: IJSObject): IJSMessagePort;
  50873. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  50874. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  50875. end;
  50876. { --------------------------------------------------------------------
  50877. TJSMIDIAccess
  50878. --------------------------------------------------------------------}
  50879. IJSMIDIAccess = interface(IJSEventTarget)
  50880. ['{920B8458-74A8-3AC7-996D-FB149857C53B}']
  50881. function _Getinputs: IJSMIDIInputMap;
  50882. function _Getoutputs: IJSMIDIOutputMap;
  50883. function _Getonstatechange: TEventHandler;
  50884. function _GetsysexEnabled: Boolean;
  50885. procedure _Setonstatechange(const aValue: TEventHandler);
  50886. property inputs: IJSMIDIInputMap read _Getinputs;
  50887. property outputs: IJSMIDIOutputMap read _Getoutputs;
  50888. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  50889. property sysexEnabled: Boolean read _GetsysexEnabled;
  50890. end;
  50891. TJSMIDIAccess = class(TJSEventTarget,IJSMIDIAccess)
  50892. Protected
  50893. function _Getinputs: IJSMIDIInputMap;
  50894. function _Getoutputs: IJSMIDIOutputMap;
  50895. function _Getonstatechange: TEventHandler;
  50896. function _GetsysexEnabled: Boolean;
  50897. procedure _Setonstatechange(const aValue: TEventHandler);
  50898. Public
  50899. class function JSClassName: UnicodeString; override;
  50900. class function Cast(const Intf: IJSObject): IJSMIDIAccess;
  50901. property inputs: IJSMIDIInputMap read _Getinputs;
  50902. property outputs: IJSMIDIOutputMap read _Getoutputs;
  50903. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  50904. property sysexEnabled: Boolean read _GetsysexEnabled;
  50905. end;
  50906. { --------------------------------------------------------------------
  50907. TJSMIDIConnectionEvent
  50908. --------------------------------------------------------------------}
  50909. IJSMIDIConnectionEvent = interface(IJSEvent)
  50910. ['{A674D613-2B5E-3E55-B3D3-EBD841F90001}']
  50911. function _Getport: IJSMIDIPort;
  50912. property port: IJSMIDIPort read _Getport;
  50913. end;
  50914. TJSMIDIConnectionEvent = class(TJSEvent,IJSMIDIConnectionEvent)
  50915. Protected
  50916. function _Getport: IJSMIDIPort;
  50917. Public
  50918. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSMIDIConnectionEventInit); overload;
  50919. constructor Create(const aType_: UnicodeString); overload;
  50920. class function JSClassName: UnicodeString; override;
  50921. class function Cast(const Intf: IJSObject): IJSMIDIConnectionEvent;
  50922. property port: IJSMIDIPort read _Getport;
  50923. end;
  50924. { --------------------------------------------------------------------
  50925. TJSMIDIMessageEvent
  50926. --------------------------------------------------------------------}
  50927. IJSMIDIMessageEvent = interface(IJSEvent)
  50928. ['{E0CDBF88-6480-33E4-9069-A1DA7A6750DC}']
  50929. function _Getdata: IJSUint8Array;
  50930. property data: IJSUint8Array read _Getdata;
  50931. end;
  50932. TJSMIDIMessageEvent = class(TJSEvent,IJSMIDIMessageEvent)
  50933. Protected
  50934. function _Getdata: IJSUint8Array;
  50935. Public
  50936. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSMIDIMessageEventInit); overload;
  50937. constructor Create(const aType_: UnicodeString); overload;
  50938. class function JSClassName: UnicodeString; override;
  50939. class function Cast(const Intf: IJSObject): IJSMIDIMessageEvent;
  50940. property data: IJSUint8Array read _Getdata;
  50941. end;
  50942. { --------------------------------------------------------------------
  50943. TJSMIDIPort
  50944. --------------------------------------------------------------------}
  50945. IJSMIDIPort = interface(IJSEventTarget)
  50946. ['{88B1A7A9-B882-3020-98A5-708AFEFA43E1}']
  50947. function _Getid: UnicodeString;
  50948. function _Getmanufacturer: UnicodeString;
  50949. function _Getname: UnicodeString;
  50950. function _Getversion: UnicodeString;
  50951. function _Gettype_: TMIDIPortType;
  50952. function _Getstate: TMIDIPortDeviceState;
  50953. function _Getconnection: TMIDIPortConnectionState;
  50954. function _Getonstatechange: TEventHandler;
  50955. procedure _Setonstatechange(const aValue: TEventHandler);
  50956. function open: IJSPromise; // Promise<MIDIPort>
  50957. function close: IJSPromise; // Promise<MIDIPort>
  50958. property id: UnicodeString read _Getid;
  50959. property manufacturer: UnicodeString read _Getmanufacturer;
  50960. property name: UnicodeString read _Getname;
  50961. property version: UnicodeString read _Getversion;
  50962. property type_: TMIDIPortType read _Gettype_;
  50963. property state: TMIDIPortDeviceState read _Getstate;
  50964. property connection: TMIDIPortConnectionState read _Getconnection;
  50965. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  50966. end;
  50967. TJSMIDIPort = class(TJSEventTarget,IJSMIDIPort)
  50968. Protected
  50969. function _Getid: UnicodeString;
  50970. function _Getmanufacturer: UnicodeString;
  50971. function _Getname: UnicodeString;
  50972. function _Getversion: UnicodeString;
  50973. function _Gettype_: TMIDIPortType;
  50974. function _Getstate: TMIDIPortDeviceState;
  50975. function _Getconnection: TMIDIPortConnectionState;
  50976. function _Getonstatechange: TEventHandler;
  50977. procedure _Setonstatechange(const aValue: TEventHandler);
  50978. Public
  50979. function open: IJSPromise; overload; // Promise<MIDIPort>
  50980. function close: IJSPromise; overload; // Promise<MIDIPort>
  50981. class function JSClassName: UnicodeString; override;
  50982. class function Cast(const Intf: IJSObject): IJSMIDIPort;
  50983. property id: UnicodeString read _Getid;
  50984. property manufacturer: UnicodeString read _Getmanufacturer;
  50985. property name: UnicodeString read _Getname;
  50986. property version: UnicodeString read _Getversion;
  50987. property type_: TMIDIPortType read _Gettype_;
  50988. property state: TMIDIPortDeviceState read _Getstate;
  50989. property connection: TMIDIPortConnectionState read _Getconnection;
  50990. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  50991. end;
  50992. { --------------------------------------------------------------------
  50993. TJSMutationEvent
  50994. --------------------------------------------------------------------}
  50995. IJSMutationEvent = interface(IJSEvent)
  50996. ['{E24F1609-AA23-3DE8-B2A2-73C354BAB72F}']
  50997. function _GetrelatedNode: IJSNode;
  50998. function _GetprevValue: UnicodeString;
  50999. function _GetnewValue: UnicodeString;
  51000. function _GetattrName: UnicodeString;
  51001. function _GetattrChange: Word;
  51002. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString; const aNewValue: UnicodeString; const aAttrName: UnicodeString; aAttrChange: Word);
  51003. procedure initMutationEvent(const aType_: UnicodeString);
  51004. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  51005. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  51006. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode);
  51007. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString);
  51008. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString; const aNewValue: UnicodeString);
  51009. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString; const aNewValue: UnicodeString; const aAttrName: UnicodeString);
  51010. property relatedNode: IJSNode read _GetrelatedNode;
  51011. property prevValue: UnicodeString read _GetprevValue;
  51012. property newValue: UnicodeString read _GetnewValue;
  51013. property attrName: UnicodeString read _GetattrName;
  51014. property attrChange: Word read _GetattrChange;
  51015. end;
  51016. TJSMutationEvent = class(TJSEvent,IJSMutationEvent)
  51017. Protected
  51018. function _GetrelatedNode: IJSNode;
  51019. function _GetprevValue: UnicodeString;
  51020. function _GetnewValue: UnicodeString;
  51021. function _GetattrName: UnicodeString;
  51022. function _GetattrChange: Word;
  51023. Public
  51024. Const
  51025. MODIFICATION = 1;
  51026. ADDITION = 2;
  51027. REMOVAL = 3;
  51028. Public
  51029. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString; const aNewValue: UnicodeString; const aAttrName: UnicodeString; aAttrChange: Word); overload;
  51030. procedure initMutationEvent(const aType_: UnicodeString); overload;
  51031. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean); overload;
  51032. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean); overload;
  51033. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode); overload;
  51034. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString); overload;
  51035. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString; const aNewValue: UnicodeString); overload;
  51036. procedure initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString; const aNewValue: UnicodeString; const aAttrName: UnicodeString); overload;
  51037. class function JSClassName: UnicodeString; override;
  51038. class function Cast(const Intf: IJSObject): IJSMutationEvent;
  51039. property relatedNode: IJSNode read _GetrelatedNode;
  51040. property prevValue: UnicodeString read _GetprevValue;
  51041. property newValue: UnicodeString read _GetnewValue;
  51042. property attrName: UnicodeString read _GetattrName;
  51043. property attrChange: Word read _GetattrChange;
  51044. end;
  51045. { --------------------------------------------------------------------
  51046. TJSNetworkInformation
  51047. --------------------------------------------------------------------}
  51048. IJSNetworkInformation = interface(IJSEventTarget)
  51049. ['{CE227C2F-3E4C-3D4A-9995-DFB25ED6E4F8}']
  51050. function _Gettype_: TConnectionType;
  51051. function _Getontypechange: TEventHandler;
  51052. procedure _Setontypechange(const aValue: TEventHandler);
  51053. property type_: TConnectionType read _Gettype_;
  51054. property ontypechange: TEventHandler read _Getontypechange write _Setontypechange;
  51055. end;
  51056. TJSNetworkInformation = class(TJSEventTarget,IJSNetworkInformation)
  51057. Protected
  51058. function _Gettype_: TConnectionType;
  51059. function _Getontypechange: TEventHandler;
  51060. procedure _Setontypechange(const aValue: TEventHandler);
  51061. Public
  51062. class function JSClassName: UnicodeString; override;
  51063. class function Cast(const Intf: IJSObject): IJSNetworkInformation;
  51064. property type_: TConnectionType read _Gettype_;
  51065. property ontypechange: TEventHandler read _Getontypechange write _Setontypechange;
  51066. end;
  51067. { --------------------------------------------------------------------
  51068. TJSNode
  51069. --------------------------------------------------------------------}
  51070. IJSNode = interface(IJSEventTarget)
  51071. ['{68B76BEB-8ED3-3409-9374-782E9D57F39F}']
  51072. function _GetnodeType: Word;
  51073. function _GetnodeName: UnicodeString;
  51074. function _GetbaseURI: UnicodeString;
  51075. function _GetisConnected: Boolean;
  51076. function _GetownerDocument: IJSDocument;
  51077. function _GetparentNode: IJSNode;
  51078. function _GetparentElement: IJSElement;
  51079. function _GetchildNodes: IJSNodeList;
  51080. function _GetfirstChild: IJSNode;
  51081. function _GetlastChild: IJSNode;
  51082. function _GetpreviousSibling: IJSNode;
  51083. function _GetnextSibling: IJSNode;
  51084. function _GetnodeValue: UnicodeString;
  51085. function _GettextContent: UnicodeString;
  51086. function _GetcontainingShadowRoot: IJSShadowRoot;
  51087. procedure _SetnodeValue(const aValue: UnicodeString);
  51088. procedure _SettextContent(const aValue: UnicodeString);
  51089. function getRootNode(const aOptions: TJSGetRootNodeOptions): IJSNode;
  51090. function getRootNode: IJSNode;
  51091. function hasChildNodes: Boolean;
  51092. function insertBefore(aNode: IJSNode; aChild: IJSNode): IJSNode;
  51093. function appendChild(aNode: IJSNode): IJSNode;
  51094. function replaceChild(aNode: IJSNode; aChild: IJSNode): IJSNode;
  51095. function removeChild(aChild: IJSNode): IJSNode;
  51096. procedure normalize;
  51097. function cloneNode(aDeep: Boolean): IJSNode;
  51098. function cloneNode: IJSNode;
  51099. function isSameNode(aNode: IJSNode): Boolean;
  51100. function isEqualNode(aNode: IJSNode): Boolean;
  51101. function compareDocumentPosition(aOther: IJSNode): Word;
  51102. function contains(aOther: IJSNode): Boolean;
  51103. function lookupPrefix(const aNamespace: UnicodeString): UnicodeString;
  51104. function lookupNamespaceURI(const aPrefix: UnicodeString): UnicodeString;
  51105. function isDefaultNamespace(const aNamespace: UnicodeString): Boolean;
  51106. property nodeType: Word read _GetnodeType;
  51107. property nodeName: UnicodeString read _GetnodeName;
  51108. property baseURI: UnicodeString read _GetbaseURI;
  51109. property isConnected: Boolean read _GetisConnected;
  51110. property ownerDocument: IJSDocument read _GetownerDocument;
  51111. property parentNode: IJSNode read _GetparentNode;
  51112. property parentElement: IJSElement read _GetparentElement;
  51113. property childNodes: IJSNodeList read _GetchildNodes;
  51114. property firstChild: IJSNode read _GetfirstChild;
  51115. property lastChild: IJSNode read _GetlastChild;
  51116. property previousSibling: IJSNode read _GetpreviousSibling;
  51117. property nextSibling: IJSNode read _GetnextSibling;
  51118. property nodeValue: UnicodeString read _GetnodeValue write _SetnodeValue;
  51119. property textContent: UnicodeString read _GettextContent write _SettextContent;
  51120. property containingShadowRoot: IJSShadowRoot read _GetcontainingShadowRoot;
  51121. end;
  51122. TJSNode = class(TJSEventTarget,IJSNode)
  51123. Protected
  51124. function _GetnodeType: Word;
  51125. function _GetnodeName: UnicodeString;
  51126. function _GetbaseURI: UnicodeString;
  51127. function _GetisConnected: Boolean;
  51128. function _GetownerDocument: IJSDocument;
  51129. function _GetparentNode: IJSNode;
  51130. function _GetparentElement: IJSElement;
  51131. function _GetchildNodes: IJSNodeList;
  51132. function _GetfirstChild: IJSNode;
  51133. function _GetlastChild: IJSNode;
  51134. function _GetpreviousSibling: IJSNode;
  51135. function _GetnextSibling: IJSNode;
  51136. function _GetnodeValue: UnicodeString;
  51137. function _GettextContent: UnicodeString;
  51138. function _GetcontainingShadowRoot: IJSShadowRoot;
  51139. procedure _SetnodeValue(const aValue: UnicodeString);
  51140. procedure _SettextContent(const aValue: UnicodeString);
  51141. Public
  51142. Const
  51143. ELEMENT_NODE = 1;
  51144. ATTRIBUTE_NODE = 2;
  51145. TEXT_NODE = 3;
  51146. CDATA_SECTION_NODE = 4;
  51147. ENTITY_REFERENCE_NODE = 5;
  51148. ENTITY_NODE = 6;
  51149. PROCESSING_INSTRUCTION_NODE = 7;
  51150. COMMENT_NODE = 8;
  51151. DOCUMENT_NODE = 9;
  51152. DOCUMENT_TYPE_NODE = 10;
  51153. DOCUMENT_FRAGMENT_NODE = 11;
  51154. NOTATION_NODE = 12;
  51155. DOCUMENT_POSITION_DISCONNECTED = $01;
  51156. DOCUMENT_POSITION_PRECEDING = $02;
  51157. DOCUMENT_POSITION_FOLLOWING = $04;
  51158. DOCUMENT_POSITION_CONTAINS = $08;
  51159. DOCUMENT_POSITION_CONTAINED_BY = $10;
  51160. DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = $20;
  51161. Public
  51162. function getRootNode(const aOptions: TJSGetRootNodeOptions): IJSNode; overload;
  51163. function getRootNode: IJSNode; overload;
  51164. function hasChildNodes: Boolean; overload;
  51165. function insertBefore(aNode: IJSNode; aChild: IJSNode): IJSNode; overload;
  51166. function appendChild(aNode: IJSNode): IJSNode; overload;
  51167. function replaceChild(aNode: IJSNode; aChild: IJSNode): IJSNode; overload;
  51168. function removeChild(aChild: IJSNode): IJSNode; overload;
  51169. procedure normalize; overload;
  51170. function cloneNode(aDeep: Boolean): IJSNode; overload;
  51171. function cloneNode: IJSNode; overload;
  51172. function isSameNode(aNode: IJSNode): Boolean; overload;
  51173. function isEqualNode(aNode: IJSNode): Boolean; overload;
  51174. function compareDocumentPosition(aOther: IJSNode): Word; overload;
  51175. function contains(aOther: IJSNode): Boolean; overload;
  51176. function lookupPrefix(const aNamespace: UnicodeString): UnicodeString; overload;
  51177. function lookupNamespaceURI(const aPrefix: UnicodeString): UnicodeString; overload;
  51178. function isDefaultNamespace(const aNamespace: UnicodeString): Boolean; overload;
  51179. class function JSClassName: UnicodeString; override;
  51180. class function Cast(const Intf: IJSObject): IJSNode;
  51181. property nodeType: Word read _GetnodeType;
  51182. property nodeName: UnicodeString read _GetnodeName;
  51183. property baseURI: UnicodeString read _GetbaseURI;
  51184. property isConnected: Boolean read _GetisConnected;
  51185. property ownerDocument: IJSDocument read _GetownerDocument;
  51186. property parentNode: IJSNode read _GetparentNode;
  51187. property parentElement: IJSElement read _GetparentElement;
  51188. property childNodes: IJSNodeList read _GetchildNodes;
  51189. property firstChild: IJSNode read _GetfirstChild;
  51190. property lastChild: IJSNode read _GetlastChild;
  51191. property previousSibling: IJSNode read _GetpreviousSibling;
  51192. property nextSibling: IJSNode read _GetnextSibling;
  51193. property nodeValue: UnicodeString read _GetnodeValue write _SetnodeValue;
  51194. property textContent: UnicodeString read _GettextContent write _SettextContent;
  51195. property containingShadowRoot: IJSShadowRoot read _GetcontainingShadowRoot;
  51196. end;
  51197. { --------------------------------------------------------------------
  51198. TJSNotification
  51199. --------------------------------------------------------------------}
  51200. IJSNotification = interface(IJSEventTarget)
  51201. ['{9042790D-7F63-38E8-95B8-7F16943DD23F}']
  51202. function _Getpermission: TNotificationPermission;
  51203. function _Getonclick: TEventHandler;
  51204. function _Getonshow: TEventHandler;
  51205. function _Getonerror: TEventHandler;
  51206. function _Getonclose: TEventHandler;
  51207. function _Gettitle: UnicodeString;
  51208. function _Getdir: TNotificationDirection;
  51209. function _Getlang: UnicodeString;
  51210. function _Getbody: UnicodeString;
  51211. function _Gettag: UnicodeString;
  51212. function _Geticon: UnicodeString;
  51213. function _GetrequireInteraction: Boolean;
  51214. function _Getsilent: Boolean;
  51215. function _Getvibrate: TCardinalDynArray;
  51216. function _Getdata: Variant;
  51217. procedure _Setonclick(const aValue: TEventHandler);
  51218. procedure _Setonshow(const aValue: TEventHandler);
  51219. procedure _Setonerror(const aValue: TEventHandler);
  51220. procedure _Setonclose(const aValue: TEventHandler);
  51221. procedure close;
  51222. property permission: TNotificationPermission read _Getpermission;
  51223. property onclick: TEventHandler read _Getonclick write _Setonclick;
  51224. property onshow: TEventHandler read _Getonshow write _Setonshow;
  51225. property onerror: TEventHandler read _Getonerror write _Setonerror;
  51226. property onclose: TEventHandler read _Getonclose write _Setonclose;
  51227. property title: UnicodeString read _Gettitle;
  51228. property dir: TNotificationDirection read _Getdir;
  51229. property lang: UnicodeString read _Getlang;
  51230. property body: UnicodeString read _Getbody;
  51231. property tag: UnicodeString read _Gettag;
  51232. property icon: UnicodeString read _Geticon;
  51233. property requireInteraction: Boolean read _GetrequireInteraction;
  51234. property silent: Boolean read _Getsilent;
  51235. property vibrate: TCardinalDynArray read _Getvibrate;
  51236. property data: Variant read _Getdata;
  51237. end;
  51238. TJSNotification = class(TJSEventTarget,IJSNotification)
  51239. Protected
  51240. function _Getpermission: TNotificationPermission;
  51241. function _Getonclick: TEventHandler;
  51242. function _Getonshow: TEventHandler;
  51243. function _Getonerror: TEventHandler;
  51244. function _Getonclose: TEventHandler;
  51245. function _Gettitle: UnicodeString;
  51246. function _Getdir: TNotificationDirection;
  51247. function _Getlang: UnicodeString;
  51248. function _Getbody: UnicodeString;
  51249. function _Gettag: UnicodeString;
  51250. function _Geticon: UnicodeString;
  51251. function _GetrequireInteraction: Boolean;
  51252. function _Getsilent: Boolean;
  51253. function _Getvibrate: TCardinalDynArray;
  51254. function _Getdata: Variant;
  51255. procedure _Setonclick(const aValue: TEventHandler);
  51256. procedure _Setonshow(const aValue: TEventHandler);
  51257. procedure _Setonerror(const aValue: TEventHandler);
  51258. procedure _Setonclose(const aValue: TEventHandler);
  51259. Public
  51260. constructor Create(const aTitle: UnicodeString; const aOptions: TJSNotificationOptions); overload;
  51261. constructor Create(const aTitle: UnicodeString); overload;
  51262. function requestPermission(const aPermissionCallback: TNotificationPermissionCallback): IJSPromise; overload; // Promise<NotificationPermission>
  51263. function requestPermission: IJSPromise; overload; // Promise<NotificationPermission>
  51264. procedure close; overload;
  51265. class function JSClassName: UnicodeString; override;
  51266. class function Cast(const Intf: IJSObject): IJSNotification;
  51267. property permission: TNotificationPermission read _Getpermission;
  51268. property onclick: TEventHandler read _Getonclick write _Setonclick;
  51269. property onshow: TEventHandler read _Getonshow write _Setonshow;
  51270. property onerror: TEventHandler read _Getonerror write _Setonerror;
  51271. property onclose: TEventHandler read _Getonclose write _Setonclose;
  51272. property title: UnicodeString read _Gettitle;
  51273. property dir: TNotificationDirection read _Getdir;
  51274. property lang: UnicodeString read _Getlang;
  51275. property body: UnicodeString read _Getbody;
  51276. property tag: UnicodeString read _Gettag;
  51277. property icon: UnicodeString read _Geticon;
  51278. property requireInteraction: Boolean read _GetrequireInteraction;
  51279. property silent: Boolean read _Getsilent;
  51280. property vibrate: TCardinalDynArray read _Getvibrate;
  51281. property data: Variant read _Getdata;
  51282. end;
  51283. { --------------------------------------------------------------------
  51284. TJSOfflineAudioCompletionEvent
  51285. --------------------------------------------------------------------}
  51286. IJSOfflineAudioCompletionEvent = interface(IJSEvent)
  51287. ['{762066F7-0D34-39E9-93DF-AA7F58540460}']
  51288. function _GetrenderedBuffer: IJSAudioBuffer;
  51289. property renderedBuffer: IJSAudioBuffer read _GetrenderedBuffer;
  51290. end;
  51291. TJSOfflineAudioCompletionEvent = class(TJSEvent,IJSOfflineAudioCompletionEvent)
  51292. Protected
  51293. function _GetrenderedBuffer: IJSAudioBuffer;
  51294. Public
  51295. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSOfflineAudioCompletionEventInit); overload;
  51296. class function JSClassName: UnicodeString; override;
  51297. class function Cast(const Intf: IJSObject): IJSOfflineAudioCompletionEvent;
  51298. property renderedBuffer: IJSAudioBuffer read _GetrenderedBuffer;
  51299. end;
  51300. { --------------------------------------------------------------------
  51301. TJSOffscreenCanvas
  51302. --------------------------------------------------------------------}
  51303. IJSOffscreenCanvas = interface(IJSEventTarget)
  51304. ['{25EAA2E3-7227-3092-ABA5-F2CC48002CCB}']
  51305. function _Getwidth: Cardinal;
  51306. function _Getheight: Cardinal;
  51307. function _Getoncontextlost: TEventHandler;
  51308. function _Getoncontextrestored: TEventHandler;
  51309. procedure _Setwidth(const aValue: Cardinal);
  51310. procedure _Setheight(const aValue: Cardinal);
  51311. procedure _Setoncontextlost(const aValue: TEventHandler);
  51312. procedure _Setoncontextrestored(const aValue: TEventHandler);
  51313. function getContext(aContextId: TOffscreenRenderingContextId; const aContextOptions: Variant): TOffscreenRenderingContext;
  51314. function getContext(aContextId: TOffscreenRenderingContextId): TOffscreenRenderingContext;
  51315. function transferToImageBitmap: IJSImageBitmap;
  51316. function convertToBlob(const aOptions: TJSImageEncodeOptions): IJSPromise; // Promise<Blob>
  51317. function convertToBlob: IJSPromise; // Promise<Blob>
  51318. function toBlob(const aType_: UnicodeString; const aEncoderOptions: Variant): IJSPromise; // Promise<Blob>
  51319. function toBlob: IJSPromise; // Promise<Blob>
  51320. function toBlob(const aType_: UnicodeString): IJSPromise; // Promise<Blob>
  51321. property width: Cardinal read _Getwidth write _Setwidth;
  51322. property height: Cardinal read _Getheight write _Setheight;
  51323. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  51324. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  51325. end;
  51326. TJSOffscreenCanvas = class(TJSEventTarget,IJSOffscreenCanvas)
  51327. Protected
  51328. function _Getwidth: Cardinal;
  51329. function _Getheight: Cardinal;
  51330. function _Getoncontextlost: TEventHandler;
  51331. function _Getoncontextrestored: TEventHandler;
  51332. procedure _Setwidth(const aValue: Cardinal);
  51333. procedure _Setheight(const aValue: Cardinal);
  51334. procedure _Setoncontextlost(const aValue: TEventHandler);
  51335. procedure _Setoncontextrestored(const aValue: TEventHandler);
  51336. Public
  51337. constructor Create(aWidth: Cardinal; aHeight: Cardinal); overload;
  51338. function getContext(aContextId: TOffscreenRenderingContextId; const aContextOptions: Variant): TOffscreenRenderingContext; overload;
  51339. function getContext(aContextId: TOffscreenRenderingContextId): TOffscreenRenderingContext; overload;
  51340. function transferToImageBitmap: IJSImageBitmap; overload;
  51341. function convertToBlob(const aOptions: TJSImageEncodeOptions): IJSPromise; overload; // Promise<Blob>
  51342. function convertToBlob: IJSPromise; overload; // Promise<Blob>
  51343. function toBlob(const aType_: UnicodeString; const aEncoderOptions: Variant): IJSPromise; overload; // Promise<Blob>
  51344. function toBlob: IJSPromise; overload; // Promise<Blob>
  51345. function toBlob(const aType_: UnicodeString): IJSPromise; overload; // Promise<Blob>
  51346. class function JSClassName: UnicodeString; override;
  51347. class function Cast(const Intf: IJSObject): IJSOffscreenCanvas;
  51348. property width: Cardinal read _Getwidth write _Setwidth;
  51349. property height: Cardinal read _Getheight write _Setheight;
  51350. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  51351. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  51352. end;
  51353. { --------------------------------------------------------------------
  51354. TJSPageTransitionEvent
  51355. --------------------------------------------------------------------}
  51356. IJSPageTransitionEvent = interface(IJSEvent)
  51357. ['{2032F17C-6275-35B9-AE76-7716A90F22CD}']
  51358. function _Getpersisted: Boolean;
  51359. property persisted: Boolean read _Getpersisted;
  51360. end;
  51361. TJSPageTransitionEvent = class(TJSEvent,IJSPageTransitionEvent)
  51362. Protected
  51363. function _Getpersisted: Boolean;
  51364. Public
  51365. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSPageTransitionEventInit); overload;
  51366. constructor Create(const aType_: UnicodeString); overload;
  51367. class function JSClassName: UnicodeString; override;
  51368. class function Cast(const Intf: IJSObject): IJSPageTransitionEvent;
  51369. property persisted: Boolean read _Getpersisted;
  51370. end;
  51371. { --------------------------------------------------------------------
  51372. TJSPaintWorkletGlobalScope
  51373. --------------------------------------------------------------------}
  51374. IJSPaintWorkletGlobalScope = interface(IJSWorkletGlobalScope)
  51375. ['{FE9DB499-1F8A-32F1-ACC6-5A568F5FA478}']
  51376. procedure registerPaint(const aName: UnicodeString; const aPaintCtor: TVoidFunction);
  51377. end;
  51378. TJSPaintWorkletGlobalScope = class(TJSWorkletGlobalScope,IJSPaintWorkletGlobalScope)
  51379. Protected
  51380. Public
  51381. procedure registerPaint(const aName: UnicodeString; const aPaintCtor: TVoidFunction); overload;
  51382. class function JSClassName: UnicodeString; override;
  51383. class function Cast(const Intf: IJSObject): IJSPaintWorkletGlobalScope;
  51384. end;
  51385. { --------------------------------------------------------------------
  51386. TJSPaymentRequest
  51387. --------------------------------------------------------------------}
  51388. TJSPaymentMethodDataDynArray = IJSArray; // array of PaymentMethodData
  51389. IJSPaymentRequest = interface(IJSEventTarget)
  51390. ['{E1735C15-22EA-3056-8E2D-C94D4DEC8FF4}']
  51391. function _Getid: UnicodeString;
  51392. function _GetshippingAddress: IJSPaymentAddress;
  51393. function _GetshippingOption: UnicodeString;
  51394. function _GetshippingType: TPaymentShippingType;
  51395. function _Getonmerchantvalidation: TEventHandler;
  51396. function _Getonshippingaddresschange: TEventHandler;
  51397. function _Getonshippingoptionchange: TEventHandler;
  51398. function _Getonpaymentmethodchange: TEventHandler;
  51399. procedure _Setonmerchantvalidation(const aValue: TEventHandler);
  51400. procedure _Setonshippingaddresschange(const aValue: TEventHandler);
  51401. procedure _Setonshippingoptionchange(const aValue: TEventHandler);
  51402. procedure _Setonpaymentmethodchange(const aValue: TEventHandler);
  51403. function show(aDetailsPromise: IJSPromise): IJSPromise; // Promise<PaymentResponse>
  51404. function show: IJSPromise; // Promise<PaymentResponse>
  51405. function abort: IJSPromise; // Promise<undefined>
  51406. function canMakePayment: IJSPromise; // Promise<boolean>
  51407. property id: UnicodeString read _Getid;
  51408. property shippingAddress: IJSPaymentAddress read _GetshippingAddress;
  51409. property shippingOption: UnicodeString read _GetshippingOption;
  51410. property shippingType: TPaymentShippingType read _GetshippingType;
  51411. property onmerchantvalidation: TEventHandler read _Getonmerchantvalidation write _Setonmerchantvalidation;
  51412. property onshippingaddresschange: TEventHandler read _Getonshippingaddresschange write _Setonshippingaddresschange;
  51413. property onshippingoptionchange: TEventHandler read _Getonshippingoptionchange write _Setonshippingoptionchange;
  51414. property onpaymentmethodchange: TEventHandler read _Getonpaymentmethodchange write _Setonpaymentmethodchange;
  51415. end;
  51416. TJSPaymentRequest = class(TJSEventTarget,IJSPaymentRequest)
  51417. Protected
  51418. function _Getid: UnicodeString;
  51419. function _GetshippingAddress: IJSPaymentAddress;
  51420. function _GetshippingOption: UnicodeString;
  51421. function _GetshippingType: TPaymentShippingType;
  51422. function _Getonmerchantvalidation: TEventHandler;
  51423. function _Getonshippingaddresschange: TEventHandler;
  51424. function _Getonshippingoptionchange: TEventHandler;
  51425. function _Getonpaymentmethodchange: TEventHandler;
  51426. procedure _Setonmerchantvalidation(const aValue: TEventHandler);
  51427. procedure _Setonshippingaddresschange(const aValue: TEventHandler);
  51428. procedure _Setonshippingoptionchange(const aValue: TEventHandler);
  51429. procedure _Setonpaymentmethodchange(const aValue: TEventHandler);
  51430. Public
  51431. constructor Create(const aMethodData: TJSPaymentMethodDataDynArray; const aDetails: TJSPaymentDetailsInit; const aOptions: TJSPaymentOptions); overload;
  51432. constructor Create(const aMethodData: TJSPaymentMethodDataDynArray; const aDetails: TJSPaymentDetailsInit); overload;
  51433. function show(aDetailsPromise: IJSPromise): IJSPromise; overload; // Promise<PaymentResponse>
  51434. function show: IJSPromise; overload; // Promise<PaymentResponse>
  51435. function abort: IJSPromise; overload; // Promise<undefined>
  51436. function canMakePayment: IJSPromise; overload; // Promise<boolean>
  51437. class function JSClassName: UnicodeString; override;
  51438. class function Cast(const Intf: IJSObject): IJSPaymentRequest;
  51439. property id: UnicodeString read _Getid;
  51440. property shippingAddress: IJSPaymentAddress read _GetshippingAddress;
  51441. property shippingOption: UnicodeString read _GetshippingOption;
  51442. property shippingType: TPaymentShippingType read _GetshippingType;
  51443. property onmerchantvalidation: TEventHandler read _Getonmerchantvalidation write _Setonmerchantvalidation;
  51444. property onshippingaddresschange: TEventHandler read _Getonshippingaddresschange write _Setonshippingaddresschange;
  51445. property onshippingoptionchange: TEventHandler read _Getonshippingoptionchange write _Setonshippingoptionchange;
  51446. property onpaymentmethodchange: TEventHandler read _Getonpaymentmethodchange write _Setonpaymentmethodchange;
  51447. end;
  51448. { --------------------------------------------------------------------
  51449. TJSPaymentRequestUpdateEvent
  51450. --------------------------------------------------------------------}
  51451. IJSPaymentRequestUpdateEvent = interface(IJSEvent)
  51452. ['{641E349E-60A8-3B61-9F65-8E78D46A9064}']
  51453. procedure updateWith(aDetailsPromise: IJSPromise);
  51454. end;
  51455. TJSPaymentRequestUpdateEvent = class(TJSEvent,IJSPaymentRequestUpdateEvent)
  51456. Protected
  51457. Public
  51458. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSPaymentRequestUpdateEventInit); overload;
  51459. constructor Create(const aType_: UnicodeString); overload;
  51460. procedure updateWith(aDetailsPromise: IJSPromise); overload;
  51461. class function JSClassName: UnicodeString; override;
  51462. class function Cast(const Intf: IJSObject): IJSPaymentRequestUpdateEvent;
  51463. end;
  51464. { --------------------------------------------------------------------
  51465. TJSPaymentResponse
  51466. --------------------------------------------------------------------}
  51467. IJSPaymentResponse = interface(IJSEventTarget)
  51468. ['{FD908BCD-D7F6-3A72-B467-D0BBDE18D271}']
  51469. function _GetrequestId: UnicodeString;
  51470. function _GetmethodName: UnicodeString;
  51471. function _Getdetails: IJSObject;
  51472. function _GetshippingAddress: IJSPaymentAddress;
  51473. function _GetshippingOption: UnicodeString;
  51474. function _GetpayerName: UnicodeString;
  51475. function _GetpayerEmail: UnicodeString;
  51476. function _GetpayerPhone: UnicodeString;
  51477. function _Getonpayerdetailchange: TEventHandler;
  51478. procedure _Setonpayerdetailchange(const aValue: TEventHandler);
  51479. function toJSON: IJSObject;
  51480. function complete(aResult: TPaymentComplete): IJSPromise; // Promise<undefined>
  51481. function complete: IJSPromise; // Promise<undefined>
  51482. function retry(const aErrorFields: TJSPaymentValidationErrors): IJSPromise; // Promise<undefined>
  51483. function retry: IJSPromise; // Promise<undefined>
  51484. property requestId: UnicodeString read _GetrequestId;
  51485. property methodName: UnicodeString read _GetmethodName;
  51486. property details: IJSObject read _Getdetails;
  51487. property shippingAddress: IJSPaymentAddress read _GetshippingAddress;
  51488. property shippingOption: UnicodeString read _GetshippingOption;
  51489. property payerName: UnicodeString read _GetpayerName;
  51490. property payerEmail: UnicodeString read _GetpayerEmail;
  51491. property payerPhone: UnicodeString read _GetpayerPhone;
  51492. property onpayerdetailchange: TEventHandler read _Getonpayerdetailchange write _Setonpayerdetailchange;
  51493. end;
  51494. TJSPaymentResponse = class(TJSEventTarget,IJSPaymentResponse)
  51495. Protected
  51496. function _GetrequestId: UnicodeString;
  51497. function _GetmethodName: UnicodeString;
  51498. function _Getdetails: IJSObject;
  51499. function _GetshippingAddress: IJSPaymentAddress;
  51500. function _GetshippingOption: UnicodeString;
  51501. function _GetpayerName: UnicodeString;
  51502. function _GetpayerEmail: UnicodeString;
  51503. function _GetpayerPhone: UnicodeString;
  51504. function _Getonpayerdetailchange: TEventHandler;
  51505. procedure _Setonpayerdetailchange(const aValue: TEventHandler);
  51506. Public
  51507. function toJSON: IJSObject; overload;
  51508. function complete(aResult: TPaymentComplete): IJSPromise; overload; // Promise<undefined>
  51509. function complete: IJSPromise; overload; // Promise<undefined>
  51510. function retry(const aErrorFields: TJSPaymentValidationErrors): IJSPromise; overload; // Promise<undefined>
  51511. function retry: IJSPromise; overload; // Promise<undefined>
  51512. class function JSClassName: UnicodeString; override;
  51513. class function Cast(const Intf: IJSObject): IJSPaymentResponse;
  51514. property requestId: UnicodeString read _GetrequestId;
  51515. property methodName: UnicodeString read _GetmethodName;
  51516. property details: IJSObject read _Getdetails;
  51517. property shippingAddress: IJSPaymentAddress read _GetshippingAddress;
  51518. property shippingOption: UnicodeString read _GetshippingOption;
  51519. property payerName: UnicodeString read _GetpayerName;
  51520. property payerEmail: UnicodeString read _GetpayerEmail;
  51521. property payerPhone: UnicodeString read _GetpayerPhone;
  51522. property onpayerdetailchange: TEventHandler read _Getonpayerdetailchange write _Setonpayerdetailchange;
  51523. end;
  51524. { --------------------------------------------------------------------
  51525. TJSPerformance
  51526. --------------------------------------------------------------------}
  51527. // Union of DOMString, PerformanceMeasureOptions
  51528. TPerformance_measure_startOrMeasureOptions_Type = Variant;
  51529. IJSPerformance = interface(IJSEventTarget)
  51530. ['{CE425498-38FE-3AF6-9913-854656AD6BCA}']
  51531. function _GettimeOrigin: TDOMHighResTimeStamp;
  51532. function _Gettiming: IJSPerformanceTiming;
  51533. function _Getnavigation: IJSPerformanceNavigation;
  51534. function _Getonresourcetimingbufferfull: TEventHandler;
  51535. function _GetmozMemory: IJSObject;
  51536. function _GeteventCounts: IJSEventCounts;
  51537. procedure _Setonresourcetimingbufferfull(const aValue: TEventHandler);
  51538. function now: TDOMHighResTimeStamp;
  51539. function toJSON: IJSObject;
  51540. function getEntries: TPerformanceEntryListDynArray;
  51541. function getEntriesByType(const aEntryType: UnicodeString): TPerformanceEntryListDynArray;
  51542. function getEntriesByName(const aName: UnicodeString; const aEntryType: UnicodeString): TPerformanceEntryListDynArray;
  51543. function getEntriesByName(const aName: UnicodeString): TPerformanceEntryListDynArray;
  51544. procedure clearResourceTimings;
  51545. procedure setResourceTimingBufferSize(aMaxSize: Cardinal);
  51546. function mark(const aMarkName: UnicodeString; const aMarkOptions: TJSPerformanceMarkOptions): IJSPerformanceMark;
  51547. function mark(const aMarkName: UnicodeString): IJSPerformanceMark;
  51548. procedure clearMarks(const aMarkName: UnicodeString);
  51549. procedure clearMarks;
  51550. function measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: UnicodeString; const aEndMark: UnicodeString): IJSPerformanceMeasure;
  51551. function measure(const aMeasureName: UnicodeString): IJSPerformanceMeasure;
  51552. function measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: TJSPerformanceMeasureOptions; const aEndMark: UnicodeString): IJSPerformanceMeasure;
  51553. function measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: TJSPerformanceMeasureOptions): IJSPerformanceMeasure;
  51554. function measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: UnicodeString): IJSPerformanceMeasure;
  51555. procedure clearMeasures(const aMeasureName: UnicodeString);
  51556. procedure clearMeasures;
  51557. property timeOrigin: TDOMHighResTimeStamp read _GettimeOrigin;
  51558. property timing: IJSPerformanceTiming read _Gettiming;
  51559. property navigation: IJSPerformanceNavigation read _Getnavigation;
  51560. property onresourcetimingbufferfull: TEventHandler read _Getonresourcetimingbufferfull write _Setonresourcetimingbufferfull;
  51561. property mozMemory: IJSObject read _GetmozMemory;
  51562. property eventCounts: IJSEventCounts read _GeteventCounts;
  51563. end;
  51564. TJSPerformance = class(TJSEventTarget,IJSPerformance)
  51565. Protected
  51566. function _GettimeOrigin: TDOMHighResTimeStamp;
  51567. function _Gettiming: IJSPerformanceTiming;
  51568. function _Getnavigation: IJSPerformanceNavigation;
  51569. function _Getonresourcetimingbufferfull: TEventHandler;
  51570. function _GetmozMemory: IJSObject;
  51571. function _GeteventCounts: IJSEventCounts;
  51572. procedure _Setonresourcetimingbufferfull(const aValue: TEventHandler);
  51573. Public
  51574. function now: TDOMHighResTimeStamp; overload;
  51575. function toJSON: IJSObject; overload;
  51576. function getEntries: TPerformanceEntryListDynArray; overload;
  51577. function getEntriesByType(const aEntryType: UnicodeString): TPerformanceEntryListDynArray; overload;
  51578. function getEntriesByName(const aName: UnicodeString; const aEntryType: UnicodeString): TPerformanceEntryListDynArray; overload;
  51579. function getEntriesByName(const aName: UnicodeString): TPerformanceEntryListDynArray; overload;
  51580. procedure clearResourceTimings; overload;
  51581. procedure setResourceTimingBufferSize(aMaxSize: Cardinal); overload;
  51582. function mark(const aMarkName: UnicodeString; const aMarkOptions: TJSPerformanceMarkOptions): IJSPerformanceMark; overload;
  51583. function mark(const aMarkName: UnicodeString): IJSPerformanceMark; overload;
  51584. procedure clearMarks(const aMarkName: UnicodeString); overload;
  51585. procedure clearMarks; overload;
  51586. function measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: UnicodeString; const aEndMark: UnicodeString): IJSPerformanceMeasure; overload;
  51587. function measure(const aMeasureName: UnicodeString): IJSPerformanceMeasure; overload;
  51588. function measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: TJSPerformanceMeasureOptions; const aEndMark: UnicodeString): IJSPerformanceMeasure; overload;
  51589. function measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: TJSPerformanceMeasureOptions): IJSPerformanceMeasure; overload;
  51590. function measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: UnicodeString): IJSPerformanceMeasure; overload;
  51591. procedure clearMeasures(const aMeasureName: UnicodeString); overload;
  51592. procedure clearMeasures; overload;
  51593. class function JSClassName: UnicodeString; override;
  51594. class function Cast(const Intf: IJSObject): IJSPerformance;
  51595. property timeOrigin: TDOMHighResTimeStamp read _GettimeOrigin;
  51596. property timing: IJSPerformanceTiming read _Gettiming;
  51597. property navigation: IJSPerformanceNavigation read _Getnavigation;
  51598. property onresourcetimingbufferfull: TEventHandler read _Getonresourcetimingbufferfull write _Setonresourcetimingbufferfull;
  51599. property mozMemory: IJSObject read _GetmozMemory;
  51600. property eventCounts: IJSEventCounts read _GeteventCounts;
  51601. end;
  51602. { --------------------------------------------------------------------
  51603. TJSPerformanceEventTiming
  51604. --------------------------------------------------------------------}
  51605. IJSPerformanceEventTiming = interface(IJSPerformanceEntry)
  51606. ['{4761E198-54D9-39CC-8DFC-100CA3DC1CB4}']
  51607. function _GetprocessingStart: TDOMHighResTimeStamp;
  51608. function _GetprocessingEnd: TDOMHighResTimeStamp;
  51609. function _Getcancelable: Boolean;
  51610. function _Gettarget: IJSNode;
  51611. function toJSON: IJSObject;
  51612. property processingStart: TDOMHighResTimeStamp read _GetprocessingStart;
  51613. property processingEnd: TDOMHighResTimeStamp read _GetprocessingEnd;
  51614. property cancelable: Boolean read _Getcancelable;
  51615. property target: IJSNode read _Gettarget;
  51616. end;
  51617. TJSPerformanceEventTiming = class(TJSPerformanceEntry,IJSPerformanceEventTiming)
  51618. Protected
  51619. function _GetprocessingStart: TDOMHighResTimeStamp;
  51620. function _GetprocessingEnd: TDOMHighResTimeStamp;
  51621. function _Getcancelable: Boolean;
  51622. function _Gettarget: IJSNode;
  51623. Public
  51624. function toJSON: IJSObject; overload;
  51625. class function JSClassName: UnicodeString; override;
  51626. class function Cast(const Intf: IJSObject): IJSPerformanceEventTiming;
  51627. property processingStart: TDOMHighResTimeStamp read _GetprocessingStart;
  51628. property processingEnd: TDOMHighResTimeStamp read _GetprocessingEnd;
  51629. property cancelable: Boolean read _Getcancelable;
  51630. property target: IJSNode read _Gettarget;
  51631. end;
  51632. { --------------------------------------------------------------------
  51633. TJSLargestContentfulPaint
  51634. --------------------------------------------------------------------}
  51635. IJSLargestContentfulPaint = interface(IJSPerformanceEntry)
  51636. ['{9FF8FDFC-6105-385A-82D4-608F9BA82B4A}']
  51637. function _GetrenderTime: TDOMHighResTimeStamp;
  51638. function _GetloadTime: TDOMHighResTimeStamp;
  51639. function _Getsize: Cardinal;
  51640. function _Getid: UnicodeString;
  51641. function _Geturl: UnicodeString;
  51642. function _Getelement: IJSElement;
  51643. function toJSON: IJSObject;
  51644. property renderTime: TDOMHighResTimeStamp read _GetrenderTime;
  51645. property loadTime: TDOMHighResTimeStamp read _GetloadTime;
  51646. property size: Cardinal read _Getsize;
  51647. property id: UnicodeString read _Getid;
  51648. property url: UnicodeString read _Geturl;
  51649. property element: IJSElement read _Getelement;
  51650. end;
  51651. TJSLargestContentfulPaint = class(TJSPerformanceEntry,IJSLargestContentfulPaint)
  51652. Protected
  51653. function _GetrenderTime: TDOMHighResTimeStamp;
  51654. function _GetloadTime: TDOMHighResTimeStamp;
  51655. function _Getsize: Cardinal;
  51656. function _Getid: UnicodeString;
  51657. function _Geturl: UnicodeString;
  51658. function _Getelement: IJSElement;
  51659. Public
  51660. function toJSON: IJSObject; overload;
  51661. class function JSClassName: UnicodeString; override;
  51662. class function Cast(const Intf: IJSObject): IJSLargestContentfulPaint;
  51663. property renderTime: TDOMHighResTimeStamp read _GetrenderTime;
  51664. property loadTime: TDOMHighResTimeStamp read _GetloadTime;
  51665. property size: Cardinal read _Getsize;
  51666. property id: UnicodeString read _Getid;
  51667. property url: UnicodeString read _Geturl;
  51668. property element: IJSElement read _Getelement;
  51669. end;
  51670. { --------------------------------------------------------------------
  51671. TJSPerformanceMark
  51672. --------------------------------------------------------------------}
  51673. IJSPerformanceMark = interface(IJSPerformanceEntry)
  51674. ['{82085FBF-AFE2-3802-B8AF-CC6682E5E2D9}']
  51675. function _Getdetail: Variant;
  51676. property detail: Variant read _Getdetail;
  51677. end;
  51678. TJSPerformanceMark = class(TJSPerformanceEntry,IJSPerformanceMark)
  51679. Protected
  51680. function _Getdetail: Variant;
  51681. Public
  51682. constructor Create(const aMarkName: UnicodeString; const aMarkOptions: TJSPerformanceMarkOptions); overload;
  51683. constructor Create(const aMarkName: UnicodeString); overload;
  51684. class function JSClassName: UnicodeString; override;
  51685. class function Cast(const Intf: IJSObject): IJSPerformanceMark;
  51686. property detail: Variant read _Getdetail;
  51687. end;
  51688. { --------------------------------------------------------------------
  51689. TJSPerformanceMeasure
  51690. --------------------------------------------------------------------}
  51691. IJSPerformanceMeasure = interface(IJSPerformanceEntry)
  51692. ['{25DE8210-8F86-397E-BD90-CFB196CC03D2}']
  51693. function _Getdetail: Variant;
  51694. property detail: Variant read _Getdetail;
  51695. end;
  51696. TJSPerformanceMeasure = class(TJSPerformanceEntry,IJSPerformanceMeasure)
  51697. Protected
  51698. function _Getdetail: Variant;
  51699. Public
  51700. class function JSClassName: UnicodeString; override;
  51701. class function Cast(const Intf: IJSObject): IJSPerformanceMeasure;
  51702. property detail: Variant read _Getdetail;
  51703. end;
  51704. { --------------------------------------------------------------------
  51705. TJSPerformancePaintTiming
  51706. --------------------------------------------------------------------}
  51707. IJSPerformancePaintTiming = interface(IJSPerformanceEntry)
  51708. ['{48A56A0C-71F3-3A3A-880D-34C03EEEB18D}']
  51709. end;
  51710. TJSPerformancePaintTiming = class(TJSPerformanceEntry,IJSPerformancePaintTiming)
  51711. Protected
  51712. Public
  51713. class function JSClassName: UnicodeString; override;
  51714. class function Cast(const Intf: IJSObject): IJSPerformancePaintTiming;
  51715. end;
  51716. { --------------------------------------------------------------------
  51717. TJSPerformanceResourceTiming
  51718. --------------------------------------------------------------------}
  51719. TJSPerformanceServerTimingDynArray = IJSArray; // array of PerformanceServerTiming
  51720. IJSPerformanceResourceTiming = interface(IJSPerformanceEntry)
  51721. ['{88121EFD-31BF-37C2-81AC-4361840D5E98}']
  51722. function _GetinitiatorType: UnicodeString;
  51723. function _GetnextHopProtocol: UnicodeString;
  51724. function _GetworkerStart: TDOMHighResTimeStamp;
  51725. function _GetredirectStart: TDOMHighResTimeStamp;
  51726. function _GetredirectEnd: TDOMHighResTimeStamp;
  51727. function _GetfetchStart: TDOMHighResTimeStamp;
  51728. function _GetdomainLookupStart: TDOMHighResTimeStamp;
  51729. function _GetdomainLookupEnd: TDOMHighResTimeStamp;
  51730. function _GetconnectStart: TDOMHighResTimeStamp;
  51731. function _GetconnectEnd: TDOMHighResTimeStamp;
  51732. function _GetsecureConnectionStart: TDOMHighResTimeStamp;
  51733. function _GetrequestStart: TDOMHighResTimeStamp;
  51734. function _GetresponseStart: TDOMHighResTimeStamp;
  51735. function _GetresponseEnd: TDOMHighResTimeStamp;
  51736. function _GettransferSize: QWord;
  51737. function _GetencodedBodySize: QWord;
  51738. function _GetdecodedBodySize: QWord;
  51739. function _GetserverTiming: TJSPerformanceServerTimingDynArray;
  51740. function toJSON: IJSObject;
  51741. property initiatorType: UnicodeString read _GetinitiatorType;
  51742. property nextHopProtocol: UnicodeString read _GetnextHopProtocol;
  51743. property workerStart: TDOMHighResTimeStamp read _GetworkerStart;
  51744. property redirectStart: TDOMHighResTimeStamp read _GetredirectStart;
  51745. property redirectEnd: TDOMHighResTimeStamp read _GetredirectEnd;
  51746. property fetchStart: TDOMHighResTimeStamp read _GetfetchStart;
  51747. property domainLookupStart: TDOMHighResTimeStamp read _GetdomainLookupStart;
  51748. property domainLookupEnd: TDOMHighResTimeStamp read _GetdomainLookupEnd;
  51749. property connectStart: TDOMHighResTimeStamp read _GetconnectStart;
  51750. property connectEnd: TDOMHighResTimeStamp read _GetconnectEnd;
  51751. property secureConnectionStart: TDOMHighResTimeStamp read _GetsecureConnectionStart;
  51752. property requestStart: TDOMHighResTimeStamp read _GetrequestStart;
  51753. property responseStart: TDOMHighResTimeStamp read _GetresponseStart;
  51754. property responseEnd: TDOMHighResTimeStamp read _GetresponseEnd;
  51755. property transferSize: QWord read _GettransferSize;
  51756. property encodedBodySize: QWord read _GetencodedBodySize;
  51757. property decodedBodySize: QWord read _GetdecodedBodySize;
  51758. property serverTiming: TJSPerformanceServerTimingDynArray read _GetserverTiming;
  51759. end;
  51760. TJSPerformanceResourceTiming = class(TJSPerformanceEntry,IJSPerformanceResourceTiming)
  51761. Protected
  51762. function _GetinitiatorType: UnicodeString;
  51763. function _GetnextHopProtocol: UnicodeString;
  51764. function _GetworkerStart: TDOMHighResTimeStamp;
  51765. function _GetredirectStart: TDOMHighResTimeStamp;
  51766. function _GetredirectEnd: TDOMHighResTimeStamp;
  51767. function _GetfetchStart: TDOMHighResTimeStamp;
  51768. function _GetdomainLookupStart: TDOMHighResTimeStamp;
  51769. function _GetdomainLookupEnd: TDOMHighResTimeStamp;
  51770. function _GetconnectStart: TDOMHighResTimeStamp;
  51771. function _GetconnectEnd: TDOMHighResTimeStamp;
  51772. function _GetsecureConnectionStart: TDOMHighResTimeStamp;
  51773. function _GetrequestStart: TDOMHighResTimeStamp;
  51774. function _GetresponseStart: TDOMHighResTimeStamp;
  51775. function _GetresponseEnd: TDOMHighResTimeStamp;
  51776. function _GettransferSize: QWord;
  51777. function _GetencodedBodySize: QWord;
  51778. function _GetdecodedBodySize: QWord;
  51779. function _GetserverTiming: TJSPerformanceServerTimingDynArray;
  51780. Public
  51781. function toJSON: IJSObject; overload;
  51782. class function JSClassName: UnicodeString; override;
  51783. class function Cast(const Intf: IJSObject): IJSPerformanceResourceTiming;
  51784. property initiatorType: UnicodeString read _GetinitiatorType;
  51785. property nextHopProtocol: UnicodeString read _GetnextHopProtocol;
  51786. property workerStart: TDOMHighResTimeStamp read _GetworkerStart;
  51787. property redirectStart: TDOMHighResTimeStamp read _GetredirectStart;
  51788. property redirectEnd: TDOMHighResTimeStamp read _GetredirectEnd;
  51789. property fetchStart: TDOMHighResTimeStamp read _GetfetchStart;
  51790. property domainLookupStart: TDOMHighResTimeStamp read _GetdomainLookupStart;
  51791. property domainLookupEnd: TDOMHighResTimeStamp read _GetdomainLookupEnd;
  51792. property connectStart: TDOMHighResTimeStamp read _GetconnectStart;
  51793. property connectEnd: TDOMHighResTimeStamp read _GetconnectEnd;
  51794. property secureConnectionStart: TDOMHighResTimeStamp read _GetsecureConnectionStart;
  51795. property requestStart: TDOMHighResTimeStamp read _GetrequestStart;
  51796. property responseStart: TDOMHighResTimeStamp read _GetresponseStart;
  51797. property responseEnd: TDOMHighResTimeStamp read _GetresponseEnd;
  51798. property transferSize: QWord read _GettransferSize;
  51799. property encodedBodySize: QWord read _GetencodedBodySize;
  51800. property decodedBodySize: QWord read _GetdecodedBodySize;
  51801. property serverTiming: TJSPerformanceServerTimingDynArray read _GetserverTiming;
  51802. end;
  51803. { --------------------------------------------------------------------
  51804. TJSPermissionStatus
  51805. --------------------------------------------------------------------}
  51806. IJSPermissionStatus = interface(IJSEventTarget)
  51807. ['{CAA7949E-C170-3E54-A797-D4B727FB35FF}']
  51808. function _Getname: TPermissionName;
  51809. function _Getstate: TPermissionState;
  51810. function _Getonchange: TEventHandler;
  51811. procedure _Setonchange(const aValue: TEventHandler);
  51812. property name: TPermissionName read _Getname;
  51813. property state: TPermissionState read _Getstate;
  51814. property onchange: TEventHandler read _Getonchange write _Setonchange;
  51815. end;
  51816. TJSPermissionStatus = class(TJSEventTarget,IJSPermissionStatus)
  51817. Protected
  51818. function _Getname: TPermissionName;
  51819. function _Getstate: TPermissionState;
  51820. function _Getonchange: TEventHandler;
  51821. procedure _Setonchange(const aValue: TEventHandler);
  51822. Public
  51823. class function JSClassName: UnicodeString; override;
  51824. class function Cast(const Intf: IJSObject): IJSPermissionStatus;
  51825. property name: TPermissionName read _Getname;
  51826. property state: TPermissionState read _Getstate;
  51827. property onchange: TEventHandler read _Getonchange write _Setonchange;
  51828. end;
  51829. { --------------------------------------------------------------------
  51830. TJSPopStateEvent
  51831. --------------------------------------------------------------------}
  51832. IJSPopStateEvent = interface(IJSEvent)
  51833. ['{830F64DD-1976-3835-8DBD-408023704891}']
  51834. function _Getstate: Variant;
  51835. property state: Variant read _Getstate;
  51836. end;
  51837. TJSPopStateEvent = class(TJSEvent,IJSPopStateEvent)
  51838. Protected
  51839. function _Getstate: Variant;
  51840. Public
  51841. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSPopStateEventInit); overload;
  51842. constructor Create(const aType_: UnicodeString); overload;
  51843. class function JSClassName: UnicodeString; override;
  51844. class function Cast(const Intf: IJSObject): IJSPopStateEvent;
  51845. property state: Variant read _Getstate;
  51846. end;
  51847. { --------------------------------------------------------------------
  51848. TJSPopupBlockedEvent
  51849. --------------------------------------------------------------------}
  51850. IJSPopupBlockedEvent = interface(IJSEvent)
  51851. ['{B2CBADE5-B0A5-3509-8BEB-C08102C20592}']
  51852. function _GetrequestingWindow: IJSWindow;
  51853. function _GetpopupWindowURI: IJSURI;
  51854. function _GetpopupWindowName: UnicodeString;
  51855. function _GetpopupWindowFeatures: UnicodeString;
  51856. property requestingWindow: IJSWindow read _GetrequestingWindow;
  51857. property popupWindowURI: IJSURI read _GetpopupWindowURI;
  51858. property popupWindowName: UnicodeString read _GetpopupWindowName;
  51859. property popupWindowFeatures: UnicodeString read _GetpopupWindowFeatures;
  51860. end;
  51861. TJSPopupBlockedEvent = class(TJSEvent,IJSPopupBlockedEvent)
  51862. Protected
  51863. function _GetrequestingWindow: IJSWindow;
  51864. function _GetpopupWindowURI: IJSURI;
  51865. function _GetpopupWindowName: UnicodeString;
  51866. function _GetpopupWindowFeatures: UnicodeString;
  51867. Public
  51868. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSPopupBlockedEventInit); overload;
  51869. constructor Create(const aType_: UnicodeString); overload;
  51870. class function JSClassName: UnicodeString; override;
  51871. class function Cast(const Intf: IJSObject): IJSPopupBlockedEvent;
  51872. property requestingWindow: IJSWindow read _GetrequestingWindow;
  51873. property popupWindowURI: IJSURI read _GetpopupWindowURI;
  51874. property popupWindowName: UnicodeString read _GetpopupWindowName;
  51875. property popupWindowFeatures: UnicodeString read _GetpopupWindowFeatures;
  51876. end;
  51877. { --------------------------------------------------------------------
  51878. TJSProgressEvent
  51879. --------------------------------------------------------------------}
  51880. IJSProgressEvent = interface(IJSEvent)
  51881. ['{4F0A09AB-9EB7-3D54-9DE8-B5C4BF37DFDE}']
  51882. function _GetlengthComputable: Boolean;
  51883. function _Getloaded: QWord;
  51884. function _Gettotal: QWord;
  51885. property lengthComputable: Boolean read _GetlengthComputable;
  51886. property loaded: QWord read _Getloaded;
  51887. property total: QWord read _Gettotal;
  51888. end;
  51889. TJSProgressEvent = class(TJSEvent,IJSProgressEvent)
  51890. Protected
  51891. function _GetlengthComputable: Boolean;
  51892. function _Getloaded: QWord;
  51893. function _Gettotal: QWord;
  51894. Public
  51895. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSProgressEventInit); overload;
  51896. constructor Create(const aType_: UnicodeString); overload;
  51897. class function JSClassName: UnicodeString; override;
  51898. class function Cast(const Intf: IJSObject): IJSProgressEvent;
  51899. property lengthComputable: Boolean read _GetlengthComputable;
  51900. property loaded: QWord read _Getloaded;
  51901. property total: QWord read _Gettotal;
  51902. end;
  51903. { --------------------------------------------------------------------
  51904. TJSPromiseRejectionEvent
  51905. --------------------------------------------------------------------}
  51906. IJSPromiseRejectionEvent = interface(IJSEvent)
  51907. ['{BCC76340-DF86-34FF-97A6-AD5AC8E1B787}']
  51908. function _Getpromise: IJSPromise;
  51909. function _Getreason: Variant;
  51910. property promise: IJSPromise read _Getpromise;
  51911. property reason: Variant read _Getreason;
  51912. end;
  51913. TJSPromiseRejectionEvent = class(TJSEvent,IJSPromiseRejectionEvent)
  51914. Protected
  51915. function _Getpromise: IJSPromise;
  51916. function _Getreason: Variant;
  51917. Public
  51918. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSPromiseRejectionEventInit); overload;
  51919. class function JSClassName: UnicodeString; override;
  51920. class function Cast(const Intf: IJSObject): IJSPromiseRejectionEvent;
  51921. property promise: IJSPromise read _Getpromise;
  51922. property reason: Variant read _Getreason;
  51923. end;
  51924. { --------------------------------------------------------------------
  51925. TJSRadioNodeList
  51926. --------------------------------------------------------------------}
  51927. IJSRadioNodeList = interface(IJSNodeList)
  51928. ['{60ED2639-DB19-3429-8627-6E1706E1F3EB}']
  51929. function _Getvalue: UnicodeString;
  51930. procedure _Setvalue(const aValue: UnicodeString);
  51931. property value: UnicodeString read _Getvalue write _Setvalue;
  51932. end;
  51933. TJSRadioNodeList = class(TJSNodeList,IJSRadioNodeList)
  51934. Protected
  51935. function _Getvalue: UnicodeString;
  51936. procedure _Setvalue(const aValue: UnicodeString);
  51937. Public
  51938. class function JSClassName: UnicodeString; override;
  51939. class function Cast(const Intf: IJSObject): IJSRadioNodeList;
  51940. property value: UnicodeString read _Getvalue write _Setvalue;
  51941. end;
  51942. { --------------------------------------------------------------------
  51943. TJSRange
  51944. --------------------------------------------------------------------}
  51945. IJSRange = interface(IJSAbstractRange)
  51946. ['{FF03C715-0BC1-36DE-A480-A5366C7650C4}']
  51947. function _GetcommonAncestorContainer: IJSNode;
  51948. procedure setStart(aRefNode: IJSNode; aOffset: Cardinal);
  51949. procedure setEnd(aRefNode: IJSNode; aOffset: Cardinal);
  51950. procedure setStartBefore(aRefNode: IJSNode);
  51951. procedure setStartAfter(aRefNode: IJSNode);
  51952. procedure setEndBefore(aRefNode: IJSNode);
  51953. procedure setEndAfter(aRefNode: IJSNode);
  51954. procedure collapse(aToStart: Boolean);
  51955. procedure collapse;
  51956. procedure selectNode(aRefNode: IJSNode);
  51957. procedure selectNodeContents(aRefNode: IJSNode);
  51958. function compareBoundaryPoints(aHow: Word; aSourceRange: IJSRange): SmallInt;
  51959. procedure deleteContents;
  51960. function extractContents: IJSDocumentFragment;
  51961. function cloneContents: IJSDocumentFragment;
  51962. procedure insertNode(aNode: IJSNode);
  51963. procedure surroundContents(aNewParent: IJSNode);
  51964. function cloneRange: IJSRange;
  51965. procedure detach;
  51966. function isPointInRange(aNode: IJSNode; aOffset: Cardinal): Boolean;
  51967. function comparePoint(aNode: IJSNode; aOffset: Cardinal): SmallInt;
  51968. function intersectsNode(aNode: IJSNode): Boolean;
  51969. function createContextualFragment(const aFragment: UnicodeString): IJSDocumentFragment;
  51970. function getClientRects: IJSDOMRectList;
  51971. function getBoundingClientRect: IJSDOMRect;
  51972. property commonAncestorContainer: IJSNode read _GetcommonAncestorContainer;
  51973. end;
  51974. TJSRange = class(TJSAbstractRange,IJSRange)
  51975. Protected
  51976. function _GetcommonAncestorContainer: IJSNode;
  51977. Public
  51978. Const
  51979. START_TO_START = 0;
  51980. START_TO_END = 1;
  51981. END_TO_END = 2;
  51982. END_TO_START = 3;
  51983. Public
  51984. constructor Create; overload;
  51985. procedure setStart(aRefNode: IJSNode; aOffset: Cardinal); overload;
  51986. procedure setEnd(aRefNode: IJSNode; aOffset: Cardinal); overload;
  51987. procedure setStartBefore(aRefNode: IJSNode); overload;
  51988. procedure setStartAfter(aRefNode: IJSNode); overload;
  51989. procedure setEndBefore(aRefNode: IJSNode); overload;
  51990. procedure setEndAfter(aRefNode: IJSNode); overload;
  51991. procedure collapse(aToStart: Boolean); overload;
  51992. procedure collapse; overload;
  51993. procedure selectNode(aRefNode: IJSNode); overload;
  51994. procedure selectNodeContents(aRefNode: IJSNode); overload;
  51995. function compareBoundaryPoints(aHow: Word; aSourceRange: IJSRange): SmallInt; overload;
  51996. procedure deleteContents; overload;
  51997. function extractContents: IJSDocumentFragment; overload;
  51998. function cloneContents: IJSDocumentFragment; overload;
  51999. procedure insertNode(aNode: IJSNode); overload;
  52000. procedure surroundContents(aNewParent: IJSNode); overload;
  52001. function cloneRange: IJSRange; overload;
  52002. procedure detach; overload;
  52003. function isPointInRange(aNode: IJSNode; aOffset: Cardinal): Boolean; overload;
  52004. function comparePoint(aNode: IJSNode; aOffset: Cardinal): SmallInt; overload;
  52005. function intersectsNode(aNode: IJSNode): Boolean; overload;
  52006. function createContextualFragment(const aFragment: UnicodeString): IJSDocumentFragment; overload;
  52007. function getClientRects: IJSDOMRectList; overload;
  52008. function getBoundingClientRect: IJSDOMRect; overload;
  52009. class function JSClassName: UnicodeString; override;
  52010. class function Cast(const Intf: IJSObject): IJSRange;
  52011. property commonAncestorContainer: IJSNode read _GetcommonAncestorContainer;
  52012. end;
  52013. { --------------------------------------------------------------------
  52014. TJSReadableStreamBYOBReader
  52015. --------------------------------------------------------------------}
  52016. IJSReadableStreamBYOBReader = interface(IJSReadableStreamGenericReader)
  52017. ['{BE1E8B02-B108-3741-A9C8-96D56DA87D8E}']
  52018. function read(aView: IJSArrayBufferView): IJSPromise; // Promise<ReadableStreamReadResult>
  52019. procedure releaseLock;
  52020. end;
  52021. TJSReadableStreamBYOBReader = class(TJSReadableStreamGenericReader,IJSReadableStreamBYOBReader)
  52022. Protected
  52023. Public
  52024. constructor Create(aStream: IJSReadableStream); overload;
  52025. function read(aView: IJSArrayBufferView): IJSPromise; overload; // Promise<ReadableStreamReadResult>
  52026. procedure releaseLock; overload;
  52027. class function JSClassName: UnicodeString; override;
  52028. class function Cast(const Intf: IJSObject): IJSReadableStreamBYOBReader;
  52029. end;
  52030. { --------------------------------------------------------------------
  52031. TJSReadableStreamDefaultReader
  52032. --------------------------------------------------------------------}
  52033. IJSReadableStreamDefaultReader = interface(IJSReadableStreamGenericReader)
  52034. ['{5B471CFF-5A17-3F24-8BB3-2961CBA0B058}']
  52035. function read: IJSPromise; // Promise<ReadableStreamReadResult>
  52036. procedure releaseLock;
  52037. end;
  52038. TJSReadableStreamDefaultReader = class(TJSReadableStreamGenericReader,IJSReadableStreamDefaultReader)
  52039. Protected
  52040. Public
  52041. constructor Create(aStream: IJSReadableStream); overload;
  52042. function read: IJSPromise; overload; // Promise<ReadableStreamReadResult>
  52043. procedure releaseLock; overload;
  52044. class function JSClassName: UnicodeString; override;
  52045. class function Cast(const Intf: IJSObject): IJSReadableStreamDefaultReader;
  52046. end;
  52047. { --------------------------------------------------------------------
  52048. TJSDeprecationReportBody
  52049. --------------------------------------------------------------------}
  52050. IJSDeprecationReportBody = interface(IJSReportBody)
  52051. ['{718AC7F7-F9F6-3D3B-97FF-CDEBE608EA45}']
  52052. function _Getid: UnicodeString;
  52053. function _GetanticipatedRemoval: TDOMTimeStamp;
  52054. function _Getmessage: UnicodeString;
  52055. function _GetsourceFile: UnicodeString;
  52056. function _GetlineNumber: Cardinal;
  52057. function _GetcolumnNumber: Cardinal;
  52058. property id: UnicodeString read _Getid;
  52059. property anticipatedRemoval: TDOMTimeStamp read _GetanticipatedRemoval;
  52060. property message: UnicodeString read _Getmessage;
  52061. property sourceFile: UnicodeString read _GetsourceFile;
  52062. property lineNumber: Cardinal read _GetlineNumber;
  52063. property columnNumber: Cardinal read _GetcolumnNumber;
  52064. end;
  52065. TJSDeprecationReportBody = class(TJSReportBody,IJSDeprecationReportBody)
  52066. Protected
  52067. function _Getid: UnicodeString;
  52068. function _GetanticipatedRemoval: TDOMTimeStamp;
  52069. function _Getmessage: UnicodeString;
  52070. function _GetsourceFile: UnicodeString;
  52071. function _GetlineNumber: Cardinal;
  52072. function _GetcolumnNumber: Cardinal;
  52073. Public
  52074. class function JSClassName: UnicodeString; override;
  52075. class function Cast(const Intf: IJSObject): IJSDeprecationReportBody;
  52076. property id: UnicodeString read _Getid;
  52077. property anticipatedRemoval: TDOMTimeStamp read _GetanticipatedRemoval;
  52078. property message: UnicodeString read _Getmessage;
  52079. property sourceFile: UnicodeString read _GetsourceFile;
  52080. property lineNumber: Cardinal read _GetlineNumber;
  52081. property columnNumber: Cardinal read _GetcolumnNumber;
  52082. end;
  52083. { --------------------------------------------------------------------
  52084. TJSRequest
  52085. --------------------------------------------------------------------}
  52086. IJSRequest = interface(IJSBody)
  52087. ['{0C5BDFE3-F508-3B5D-906F-B680B80F00D3}']
  52088. function _Getmethod: UnicodeString;
  52089. function _Geturl: UnicodeString;
  52090. function _Getheaders: IJSHeaders;
  52091. function _Getdestination: TRequestDestination;
  52092. function _Getreferrer: UnicodeString;
  52093. function _GetreferrerPolicy: TReferrerPolicy;
  52094. function _Getmode: TRequestMode;
  52095. function _Getcredentials: TRequestCredentials;
  52096. function _Getcache: TRequestCache;
  52097. function _Getredirect: TRequestRedirect;
  52098. function _Getintegrity: UnicodeString;
  52099. function _Getkeepalive: Boolean;
  52100. function _Getsignal: IJSAbortSignal;
  52101. function clone: IJSRequest;
  52102. property method: UnicodeString read _Getmethod;
  52103. property url: UnicodeString read _Geturl;
  52104. property headers: IJSHeaders read _Getheaders;
  52105. property destination: TRequestDestination read _Getdestination;
  52106. property referrer: UnicodeString read _Getreferrer;
  52107. property referrerPolicy: TReferrerPolicy read _GetreferrerPolicy;
  52108. property mode: TRequestMode read _Getmode;
  52109. property credentials: TRequestCredentials read _Getcredentials;
  52110. property cache: TRequestCache read _Getcache;
  52111. property redirect: TRequestRedirect read _Getredirect;
  52112. property integrity: UnicodeString read _Getintegrity;
  52113. property keepalive: Boolean read _Getkeepalive;
  52114. property signal: IJSAbortSignal read _Getsignal;
  52115. end;
  52116. TJSRequest = class(TJSBody,IJSRequest)
  52117. Protected
  52118. function _Getmethod: UnicodeString;
  52119. function _Geturl: UnicodeString;
  52120. function _Getheaders: IJSHeaders;
  52121. function _Getdestination: TRequestDestination;
  52122. function _Getreferrer: UnicodeString;
  52123. function _GetreferrerPolicy: TReferrerPolicy;
  52124. function _Getmode: TRequestMode;
  52125. function _Getcredentials: TRequestCredentials;
  52126. function _Getcache: TRequestCache;
  52127. function _Getredirect: TRequestRedirect;
  52128. function _Getintegrity: UnicodeString;
  52129. function _Getkeepalive: Boolean;
  52130. function _Getsignal: IJSAbortSignal;
  52131. Public
  52132. constructor Create(aInput: IJSRequest; const aInit: TJSRequestInit); overload;
  52133. constructor Create(const aInput: UnicodeString; const aInit: TJSRequestInit); overload;
  52134. constructor Create(const aInput: UnicodeString); overload;
  52135. constructor Create(aInput: IJSRequest); overload;
  52136. function clone: IJSRequest; overload;
  52137. class function JSClassName: UnicodeString; override;
  52138. class function Cast(const Intf: IJSObject): IJSRequest;
  52139. property method: UnicodeString read _Getmethod;
  52140. property url: UnicodeString read _Geturl;
  52141. property headers: IJSHeaders read _Getheaders;
  52142. property destination: TRequestDestination read _Getdestination;
  52143. property referrer: UnicodeString read _Getreferrer;
  52144. property referrerPolicy: TReferrerPolicy read _GetreferrerPolicy;
  52145. property mode: TRequestMode read _Getmode;
  52146. property credentials: TRequestCredentials read _Getcredentials;
  52147. property cache: TRequestCache read _Getcache;
  52148. property redirect: TRequestRedirect read _Getredirect;
  52149. property integrity: UnicodeString read _Getintegrity;
  52150. property keepalive: Boolean read _Getkeepalive;
  52151. property signal: IJSAbortSignal read _Getsignal;
  52152. end;
  52153. { --------------------------------------------------------------------
  52154. TJSRTCDataChannel
  52155. --------------------------------------------------------------------}
  52156. IJSRTCDataChannel = interface(IJSEventTarget)
  52157. ['{84384DB7-1896-3BAC-A48C-6AA8682005C5}']
  52158. function _Getlabel_: UnicodeString;
  52159. function _Getnegotiated: Boolean;
  52160. function _Getordered: Boolean;
  52161. function _Getreliable: Boolean;
  52162. function _GetmaxPacketLifeTime: Word;
  52163. function _GetmaxRetransmits: Word;
  52164. function _Getprotocol: UnicodeString;
  52165. function _Getid: Word;
  52166. function _GetreadyState: TRTCDataChannelState;
  52167. function _GetbufferedAmount: Cardinal;
  52168. function _GetbufferedAmountLowThreshold: Cardinal;
  52169. function _Getonopen: TEventHandler;
  52170. function _Getonerror: TEventHandler;
  52171. function _Getonclose: TEventHandler;
  52172. function _Getonmessage: TEventHandler;
  52173. function _Getonbufferedamountlow: TEventHandler;
  52174. function _GetbinaryType: TRTCDataChannelType;
  52175. procedure _SetbufferedAmountLowThreshold(const aValue: Cardinal);
  52176. procedure _Setonopen(const aValue: TEventHandler);
  52177. procedure _Setonerror(const aValue: TEventHandler);
  52178. procedure _Setonclose(const aValue: TEventHandler);
  52179. procedure _Setonmessage(const aValue: TEventHandler);
  52180. procedure _Setonbufferedamountlow(const aValue: TEventHandler);
  52181. procedure _SetbinaryType(const aValue: TRTCDataChannelType);
  52182. procedure close;
  52183. procedure send(const aData: UnicodeString);
  52184. procedure send(aData: IJSBlob);
  52185. procedure send(aData: IJSArrayBuffer);
  52186. procedure send(aData: IJSArrayBufferView);
  52187. property label_: UnicodeString read _Getlabel_;
  52188. property negotiated: Boolean read _Getnegotiated;
  52189. property ordered: Boolean read _Getordered;
  52190. property reliable: Boolean read _Getreliable;
  52191. property maxPacketLifeTime: Word read _GetmaxPacketLifeTime;
  52192. property maxRetransmits: Word read _GetmaxRetransmits;
  52193. property protocol: UnicodeString read _Getprotocol;
  52194. property id: Word read _Getid;
  52195. property readyState: TRTCDataChannelState read _GetreadyState;
  52196. property bufferedAmount: Cardinal read _GetbufferedAmount;
  52197. property bufferedAmountLowThreshold: Cardinal read _GetbufferedAmountLowThreshold write _SetbufferedAmountLowThreshold;
  52198. property onopen: TEventHandler read _Getonopen write _Setonopen;
  52199. property onerror: TEventHandler read _Getonerror write _Setonerror;
  52200. property onclose: TEventHandler read _Getonclose write _Setonclose;
  52201. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  52202. property onbufferedamountlow: TEventHandler read _Getonbufferedamountlow write _Setonbufferedamountlow;
  52203. property binaryType: TRTCDataChannelType read _GetbinaryType write _SetbinaryType;
  52204. end;
  52205. TJSRTCDataChannel = class(TJSEventTarget,IJSRTCDataChannel)
  52206. Protected
  52207. function _Getlabel_: UnicodeString;
  52208. function _Getnegotiated: Boolean;
  52209. function _Getordered: Boolean;
  52210. function _Getreliable: Boolean;
  52211. function _GetmaxPacketLifeTime: Word;
  52212. function _GetmaxRetransmits: Word;
  52213. function _Getprotocol: UnicodeString;
  52214. function _Getid: Word;
  52215. function _GetreadyState: TRTCDataChannelState;
  52216. function _GetbufferedAmount: Cardinal;
  52217. function _GetbufferedAmountLowThreshold: Cardinal;
  52218. function _Getonopen: TEventHandler;
  52219. function _Getonerror: TEventHandler;
  52220. function _Getonclose: TEventHandler;
  52221. function _Getonmessage: TEventHandler;
  52222. function _Getonbufferedamountlow: TEventHandler;
  52223. function _GetbinaryType: TRTCDataChannelType;
  52224. procedure _SetbufferedAmountLowThreshold(const aValue: Cardinal);
  52225. procedure _Setonopen(const aValue: TEventHandler);
  52226. procedure _Setonerror(const aValue: TEventHandler);
  52227. procedure _Setonclose(const aValue: TEventHandler);
  52228. procedure _Setonmessage(const aValue: TEventHandler);
  52229. procedure _Setonbufferedamountlow(const aValue: TEventHandler);
  52230. procedure _SetbinaryType(const aValue: TRTCDataChannelType);
  52231. Public
  52232. procedure close; overload;
  52233. procedure send(const aData: UnicodeString); overload;
  52234. procedure send(aData: IJSBlob); overload;
  52235. procedure send(aData: IJSArrayBuffer); overload;
  52236. procedure send(aData: IJSArrayBufferView); overload;
  52237. class function JSClassName: UnicodeString; override;
  52238. class function Cast(const Intf: IJSObject): IJSRTCDataChannel;
  52239. property label_: UnicodeString read _Getlabel_;
  52240. property negotiated: Boolean read _Getnegotiated;
  52241. property ordered: Boolean read _Getordered;
  52242. property reliable: Boolean read _Getreliable;
  52243. property maxPacketLifeTime: Word read _GetmaxPacketLifeTime;
  52244. property maxRetransmits: Word read _GetmaxRetransmits;
  52245. property protocol: UnicodeString read _Getprotocol;
  52246. property id: Word read _Getid;
  52247. property readyState: TRTCDataChannelState read _GetreadyState;
  52248. property bufferedAmount: Cardinal read _GetbufferedAmount;
  52249. property bufferedAmountLowThreshold: Cardinal read _GetbufferedAmountLowThreshold write _SetbufferedAmountLowThreshold;
  52250. property onopen: TEventHandler read _Getonopen write _Setonopen;
  52251. property onerror: TEventHandler read _Getonerror write _Setonerror;
  52252. property onclose: TEventHandler read _Getonclose write _Setonclose;
  52253. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  52254. property onbufferedamountlow: TEventHandler read _Getonbufferedamountlow write _Setonbufferedamountlow;
  52255. property binaryType: TRTCDataChannelType read _GetbinaryType write _SetbinaryType;
  52256. end;
  52257. { --------------------------------------------------------------------
  52258. TJSRTCDataChannelEvent
  52259. --------------------------------------------------------------------}
  52260. IJSRTCDataChannelEvent = interface(IJSEvent)
  52261. ['{038F325E-DBBE-3A65-A6B9-B11C5B9C607C}']
  52262. function _Getchannel: IJSRTCDataChannel;
  52263. property channel: IJSRTCDataChannel read _Getchannel;
  52264. end;
  52265. TJSRTCDataChannelEvent = class(TJSEvent,IJSRTCDataChannelEvent)
  52266. Protected
  52267. function _Getchannel: IJSRTCDataChannel;
  52268. Public
  52269. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSRTCDataChannelEventInit); overload;
  52270. class function JSClassName: UnicodeString; override;
  52271. class function Cast(const Intf: IJSObject): IJSRTCDataChannelEvent;
  52272. property channel: IJSRTCDataChannel read _Getchannel;
  52273. end;
  52274. { --------------------------------------------------------------------
  52275. TJSRTCDtlsTransport
  52276. --------------------------------------------------------------------}
  52277. IJSRTCDtlsTransport = interface(IJSEventTarget)
  52278. ['{8688A3A3-40AB-3E5F-A82E-8F12200E56AF}']
  52279. function _GeticeTransport: IJSRTCIceTransport;
  52280. function _Getstate: TRTCDtlsTransportState;
  52281. function _Getonstatechange: TEventHandler;
  52282. procedure _Setonstatechange(const aValue: TEventHandler);
  52283. property iceTransport: IJSRTCIceTransport read _GeticeTransport;
  52284. property state: TRTCDtlsTransportState read _Getstate;
  52285. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  52286. end;
  52287. TJSRTCDtlsTransport = class(TJSEventTarget,IJSRTCDtlsTransport)
  52288. Protected
  52289. function _GeticeTransport: IJSRTCIceTransport;
  52290. function _Getstate: TRTCDtlsTransportState;
  52291. function _Getonstatechange: TEventHandler;
  52292. procedure _Setonstatechange(const aValue: TEventHandler);
  52293. Public
  52294. class function JSClassName: UnicodeString; override;
  52295. class function Cast(const Intf: IJSObject): IJSRTCDtlsTransport;
  52296. property iceTransport: IJSRTCIceTransport read _GeticeTransport;
  52297. property state: TRTCDtlsTransportState read _Getstate;
  52298. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  52299. end;
  52300. { --------------------------------------------------------------------
  52301. TJSRTCDTMFSender
  52302. --------------------------------------------------------------------}
  52303. IJSRTCDTMFSender = interface(IJSEventTarget)
  52304. ['{EDD5A101-3486-3DA8-980E-CD6C175D8368}']
  52305. function _Getontonechange: TEventHandler;
  52306. function _GettoneBuffer: UnicodeString;
  52307. procedure _Setontonechange(const aValue: TEventHandler);
  52308. procedure insertDTMF(const aTones: UnicodeString; aDuration: Cardinal; aInterToneGap: Cardinal);
  52309. procedure insertDTMF(const aTones: UnicodeString);
  52310. procedure insertDTMF(const aTones: UnicodeString; aDuration: Cardinal);
  52311. property ontonechange: TEventHandler read _Getontonechange write _Setontonechange;
  52312. property toneBuffer: UnicodeString read _GettoneBuffer;
  52313. end;
  52314. TJSRTCDTMFSender = class(TJSEventTarget,IJSRTCDTMFSender)
  52315. Protected
  52316. function _Getontonechange: TEventHandler;
  52317. function _GettoneBuffer: UnicodeString;
  52318. procedure _Setontonechange(const aValue: TEventHandler);
  52319. Public
  52320. procedure insertDTMF(const aTones: UnicodeString; aDuration: Cardinal; aInterToneGap: Cardinal); overload;
  52321. procedure insertDTMF(const aTones: UnicodeString); overload;
  52322. procedure insertDTMF(const aTones: UnicodeString; aDuration: Cardinal); overload;
  52323. class function JSClassName: UnicodeString; override;
  52324. class function Cast(const Intf: IJSObject): IJSRTCDTMFSender;
  52325. property ontonechange: TEventHandler read _Getontonechange write _Setontonechange;
  52326. property toneBuffer: UnicodeString read _GettoneBuffer;
  52327. end;
  52328. { --------------------------------------------------------------------
  52329. TJSRTCDTMFToneChangeEvent
  52330. --------------------------------------------------------------------}
  52331. IJSRTCDTMFToneChangeEvent = interface(IJSEvent)
  52332. ['{5C3DDE2F-8AD8-3A42-A9BF-55DB47B082FA}']
  52333. function _Gettone: UnicodeString;
  52334. property tone: UnicodeString read _Gettone;
  52335. end;
  52336. TJSRTCDTMFToneChangeEvent = class(TJSEvent,IJSRTCDTMFToneChangeEvent)
  52337. Protected
  52338. function _Gettone: UnicodeString;
  52339. Public
  52340. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSRTCDTMFToneChangeEventInit); overload;
  52341. constructor Create(const aType_: UnicodeString); overload;
  52342. class function JSClassName: UnicodeString; override;
  52343. class function Cast(const Intf: IJSObject): IJSRTCDTMFToneChangeEvent;
  52344. property tone: UnicodeString read _Gettone;
  52345. end;
  52346. { --------------------------------------------------------------------
  52347. TJSRTCIceTransport
  52348. --------------------------------------------------------------------}
  52349. IJSRTCIceTransport = interface(IJSEventTarget)
  52350. ['{8EEF47F1-4C43-3B65-AD9D-C714622D8CFB}']
  52351. function _Getstate: TRTCIceTransportState;
  52352. function _GetgatheringState: TRTCIceGathererState;
  52353. function _Getonstatechange: TEventHandler;
  52354. function _Getongatheringstatechange: TEventHandler;
  52355. procedure _Setonstatechange(const aValue: TEventHandler);
  52356. procedure _Setongatheringstatechange(const aValue: TEventHandler);
  52357. property state: TRTCIceTransportState read _Getstate;
  52358. property gatheringState: TRTCIceGathererState read _GetgatheringState;
  52359. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  52360. property ongatheringstatechange: TEventHandler read _Getongatheringstatechange write _Setongatheringstatechange;
  52361. end;
  52362. TJSRTCIceTransport = class(TJSEventTarget,IJSRTCIceTransport)
  52363. Protected
  52364. function _Getstate: TRTCIceTransportState;
  52365. function _GetgatheringState: TRTCIceGathererState;
  52366. function _Getonstatechange: TEventHandler;
  52367. function _Getongatheringstatechange: TEventHandler;
  52368. procedure _Setonstatechange(const aValue: TEventHandler);
  52369. procedure _Setongatheringstatechange(const aValue: TEventHandler);
  52370. Public
  52371. class function JSClassName: UnicodeString; override;
  52372. class function Cast(const Intf: IJSObject): IJSRTCIceTransport;
  52373. property state: TRTCIceTransportState read _Getstate;
  52374. property gatheringState: TRTCIceGathererState read _GetgatheringState;
  52375. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  52376. property ongatheringstatechange: TEventHandler read _Getongatheringstatechange write _Setongatheringstatechange;
  52377. end;
  52378. { --------------------------------------------------------------------
  52379. TJSRTCPeerConnection
  52380. --------------------------------------------------------------------}
  52381. // Union of RTCIceCandidateInit, RTCIceCandidate
  52382. TRTCPeerConnection_addIceCandidate_candidate_Type = Variant;
  52383. // Union of MediaStreamTrack, DOMString
  52384. TRTCPeerConnection_addTransceiver_trackOrKind_Type = Variant;
  52385. TJSRTCRtpSenderDynArray = IJSArray; // array of RTCRtpSender
  52386. TJSRTCRtpReceiverDynArray = IJSArray; // array of RTCRtpReceiver
  52387. TJSRTCRtpTransceiverDynArray = IJSArray; // array of RTCRtpTransceiver
  52388. IJSRTCPeerConnection = interface(IJSEventTarget)
  52389. ['{B63F0174-D1B0-3634-AC7F-0A158A9577E1}']
  52390. function _GetlocalDescription: IJSRTCSessionDescription;
  52391. function _GetcurrentLocalDescription: IJSRTCSessionDescription;
  52392. function _GetpendingLocalDescription: IJSRTCSessionDescription;
  52393. function _GetremoteDescription: IJSRTCSessionDescription;
  52394. function _GetcurrentRemoteDescription: IJSRTCSessionDescription;
  52395. function _GetpendingRemoteDescription: IJSRTCSessionDescription;
  52396. function _GetsignalingState: TRTCSignalingState;
  52397. function _GetcanTrickleIceCandidates: Boolean;
  52398. function _GeticeGatheringState: TRTCIceGatheringState;
  52399. function _GeticeConnectionState: TRTCIceConnectionState;
  52400. function _GetconnectionState: TRTCPeerConnectionState;
  52401. function _GetpeerIdentity: IJSPromise;
  52402. function _GetidpLoginUrl: UnicodeString;
  52403. function _Getonnegotiationneeded: TEventHandler;
  52404. function _Getonicecandidate: TEventHandler;
  52405. function _Getonsignalingstatechange: TEventHandler;
  52406. function _Getonaddstream: TEventHandler;
  52407. function _Getonaddtrack: TEventHandler;
  52408. function _Getontrack: TEventHandler;
  52409. function _Getoniceconnectionstatechange: TEventHandler;
  52410. function _Getonicegatheringstatechange: TEventHandler;
  52411. function _Getonconnectionstatechange: TEventHandler;
  52412. function _Getsctp: IJSRTCSctpTransport;
  52413. function _Getondatachannel: TEventHandler;
  52414. procedure _Setonnegotiationneeded(const aValue: TEventHandler);
  52415. procedure _Setonicecandidate(const aValue: TEventHandler);
  52416. procedure _Setonsignalingstatechange(const aValue: TEventHandler);
  52417. procedure _Setonaddstream(const aValue: TEventHandler);
  52418. procedure _Setonaddtrack(const aValue: TEventHandler);
  52419. procedure _Setontrack(const aValue: TEventHandler);
  52420. procedure _Setoniceconnectionstatechange(const aValue: TEventHandler);
  52421. procedure _Setonicegatheringstatechange(const aValue: TEventHandler);
  52422. procedure _Setonconnectionstatechange(const aValue: TEventHandler);
  52423. procedure _Setondatachannel(const aValue: TEventHandler);
  52424. procedure setIdentityProvider(const aProvider: UnicodeString; const aOptions: TJSRTCIdentityProviderOptions);
  52425. procedure setIdentityProvider(const aProvider: UnicodeString);
  52426. function getIdentityAssertion: IJSPromise; // Promise<DOMString>
  52427. function createOffer(const aOptions: TJSRTCOfferOptions): IJSPromise; // Promise<RTCSessionDescriptionInit>
  52428. function createOffer: IJSPromise; // Promise<RTCSessionDescriptionInit>
  52429. function createAnswer(const aOptions: TJSRTCAnswerOptions): IJSPromise; // Promise<RTCSessionDescriptionInit>
  52430. function createAnswer: IJSPromise; // Promise<RTCSessionDescriptionInit>
  52431. function setLocalDescription(const aDescription: TJSRTCLocalSessionDescriptionInit): IJSPromise; // Promise<undefined>
  52432. function setLocalDescription: IJSPromise; // Promise<undefined>
  52433. function setRemoteDescription(const aDescription: TJSRTCSessionDescriptionInit): IJSPromise; // Promise<undefined>
  52434. function addIceCandidate(aCandidate: IJSRTCIceCandidate): IJSPromise; // Promise<undefined>
  52435. function addIceCandidate: IJSPromise; // Promise<undefined>
  52436. function addIceCandidate(const aCandidate: TJSRTCIceCandidateInit): IJSPromise; // Promise<undefined>
  52437. procedure restartIce;
  52438. function getConfiguration: TJSRTCConfiguration;
  52439. procedure setConfiguration(const aConfiguration: TJSRTCConfiguration);
  52440. procedure setConfiguration;
  52441. function getLocalStreams: TJSMediaStreamDynArray;
  52442. function getRemoteStreams: TJSMediaStreamDynArray;
  52443. procedure addStream(aStream: IJSMediaStream);
  52444. function addTrack(aTrack: IJSMediaStreamTrack; aStreams: IJSMediaStream): IJSRTCRtpSender{; ToDo:varargs};
  52445. procedure removeTrack(aSender: IJSRTCRtpSender);
  52446. function addTransceiver(const aTrackOrKind: UnicodeString; const aInit: TJSRTCRtpTransceiverInit): IJSRTCRtpTransceiver;
  52447. function addTransceiver(aTrackOrKind: IJSMediaStreamTrack; const aInit: TJSRTCRtpTransceiverInit): IJSRTCRtpTransceiver;
  52448. function addTransceiver(aTrackOrKind: IJSMediaStreamTrack): IJSRTCRtpTransceiver;
  52449. function addTransceiver(const aTrackOrKind: UnicodeString): IJSRTCRtpTransceiver;
  52450. function getSenders: TJSRTCRtpSenderDynArray;
  52451. function getReceivers: TJSRTCRtpReceiverDynArray;
  52452. function getTransceivers: TJSRTCRtpTransceiverDynArray;
  52453. procedure close;
  52454. function getStats(aSelector: IJSMediaStreamTrack): IJSPromise; // Promise<RTCStatsReport>
  52455. function getStats: IJSPromise; // Promise<RTCStatsReport>
  52456. function createDataChannel(const aLabel_: UnicodeString; const aDataChannelDict: TJSRTCDataChannelInit): IJSRTCDataChannel;
  52457. function createDataChannel(const aLabel_: UnicodeString): IJSRTCDataChannel;
  52458. function createOffer(const aSuccessCallback: TRTCSessionDescriptionCallback; const aFailureCallback: TRTCPeerConnectionErrorCallback; const aOptions: TJSRTCOfferOptions): IJSPromise; // Promise<undefined>
  52459. function createOffer(const aSuccessCallback: TRTCSessionDescriptionCallback; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; // Promise<undefined>
  52460. function setLocalDescription(const aDescription: TJSRTCLocalSessionDescriptionInit; const aSuccessCallback: TVoidFunction; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; // Promise<undefined>
  52461. function createAnswer(const aSuccessCallback: TRTCSessionDescriptionCallback; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; // Promise<undefined>
  52462. function setRemoteDescription(const aDescription: TJSRTCSessionDescriptionInit; const aSuccessCallback: TVoidFunction; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; // Promise<undefined>
  52463. function addIceCandidate(const aCandidate: TJSRTCIceCandidateInit; const aSuccessCallback: TVoidFunction; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; // Promise<undefined>
  52464. property localDescription: IJSRTCSessionDescription read _GetlocalDescription;
  52465. property currentLocalDescription: IJSRTCSessionDescription read _GetcurrentLocalDescription;
  52466. property pendingLocalDescription: IJSRTCSessionDescription read _GetpendingLocalDescription;
  52467. property remoteDescription: IJSRTCSessionDescription read _GetremoteDescription;
  52468. property currentRemoteDescription: IJSRTCSessionDescription read _GetcurrentRemoteDescription;
  52469. property pendingRemoteDescription: IJSRTCSessionDescription read _GetpendingRemoteDescription;
  52470. property signalingState: TRTCSignalingState read _GetsignalingState;
  52471. property canTrickleIceCandidates: Boolean read _GetcanTrickleIceCandidates;
  52472. property iceGatheringState: TRTCIceGatheringState read _GeticeGatheringState;
  52473. property iceConnectionState: TRTCIceConnectionState read _GeticeConnectionState;
  52474. property connectionState: TRTCPeerConnectionState read _GetconnectionState;
  52475. property peerIdentity: IJSPromise read _GetpeerIdentity;
  52476. property idpLoginUrl: UnicodeString read _GetidpLoginUrl;
  52477. property onnegotiationneeded: TEventHandler read _Getonnegotiationneeded write _Setonnegotiationneeded;
  52478. property onicecandidate: TEventHandler read _Getonicecandidate write _Setonicecandidate;
  52479. property onsignalingstatechange: TEventHandler read _Getonsignalingstatechange write _Setonsignalingstatechange;
  52480. property onaddstream: TEventHandler read _Getonaddstream write _Setonaddstream;
  52481. property onaddtrack: TEventHandler read _Getonaddtrack write _Setonaddtrack;
  52482. property ontrack: TEventHandler read _Getontrack write _Setontrack;
  52483. property oniceconnectionstatechange: TEventHandler read _Getoniceconnectionstatechange write _Setoniceconnectionstatechange;
  52484. property onicegatheringstatechange: TEventHandler read _Getonicegatheringstatechange write _Setonicegatheringstatechange;
  52485. property onconnectionstatechange: TEventHandler read _Getonconnectionstatechange write _Setonconnectionstatechange;
  52486. property sctp: IJSRTCSctpTransport read _Getsctp;
  52487. property ondatachannel: TEventHandler read _Getondatachannel write _Setondatachannel;
  52488. end;
  52489. TJSRTCPeerConnection = class(TJSEventTarget,IJSRTCPeerConnection)
  52490. Protected
  52491. function _GetlocalDescription: IJSRTCSessionDescription;
  52492. function _GetcurrentLocalDescription: IJSRTCSessionDescription;
  52493. function _GetpendingLocalDescription: IJSRTCSessionDescription;
  52494. function _GetremoteDescription: IJSRTCSessionDescription;
  52495. function _GetcurrentRemoteDescription: IJSRTCSessionDescription;
  52496. function _GetpendingRemoteDescription: IJSRTCSessionDescription;
  52497. function _GetsignalingState: TRTCSignalingState;
  52498. function _GetcanTrickleIceCandidates: Boolean;
  52499. function _GeticeGatheringState: TRTCIceGatheringState;
  52500. function _GeticeConnectionState: TRTCIceConnectionState;
  52501. function _GetconnectionState: TRTCPeerConnectionState;
  52502. function _GetpeerIdentity: IJSPromise;
  52503. function _GetidpLoginUrl: UnicodeString;
  52504. function _Getonnegotiationneeded: TEventHandler;
  52505. function _Getonicecandidate: TEventHandler;
  52506. function _Getonsignalingstatechange: TEventHandler;
  52507. function _Getonaddstream: TEventHandler;
  52508. function _Getonaddtrack: TEventHandler;
  52509. function _Getontrack: TEventHandler;
  52510. function _Getoniceconnectionstatechange: TEventHandler;
  52511. function _Getonicegatheringstatechange: TEventHandler;
  52512. function _Getonconnectionstatechange: TEventHandler;
  52513. function _Getsctp: IJSRTCSctpTransport;
  52514. function _Getondatachannel: TEventHandler;
  52515. procedure _Setonnegotiationneeded(const aValue: TEventHandler);
  52516. procedure _Setonicecandidate(const aValue: TEventHandler);
  52517. procedure _Setonsignalingstatechange(const aValue: TEventHandler);
  52518. procedure _Setonaddstream(const aValue: TEventHandler);
  52519. procedure _Setonaddtrack(const aValue: TEventHandler);
  52520. procedure _Setontrack(const aValue: TEventHandler);
  52521. procedure _Setoniceconnectionstatechange(const aValue: TEventHandler);
  52522. procedure _Setonicegatheringstatechange(const aValue: TEventHandler);
  52523. procedure _Setonconnectionstatechange(const aValue: TEventHandler);
  52524. procedure _Setondatachannel(const aValue: TEventHandler);
  52525. Public
  52526. constructor Create(const aConfiguration: TJSRTCConfiguration); overload;
  52527. constructor Create; overload;
  52528. function generateCertificate(const aKeygenAlgorithm: UnicodeString): IJSPromise; overload; // Promise<RTCCertificate>
  52529. function generateCertificate(aKeygenAlgorithm: IJSObject): IJSPromise; overload; // Promise<RTCCertificate>
  52530. procedure setIdentityProvider(const aProvider: UnicodeString; const aOptions: TJSRTCIdentityProviderOptions); overload;
  52531. procedure setIdentityProvider(const aProvider: UnicodeString); overload;
  52532. function getIdentityAssertion: IJSPromise; overload; // Promise<DOMString>
  52533. function createOffer(const aOptions: TJSRTCOfferOptions): IJSPromise; overload; // Promise<RTCSessionDescriptionInit>
  52534. function createOffer: IJSPromise; overload; // Promise<RTCSessionDescriptionInit>
  52535. function createAnswer(const aOptions: TJSRTCAnswerOptions): IJSPromise; overload; // Promise<RTCSessionDescriptionInit>
  52536. function createAnswer: IJSPromise; overload; // Promise<RTCSessionDescriptionInit>
  52537. function setLocalDescription(const aDescription: TJSRTCLocalSessionDescriptionInit): IJSPromise; overload; // Promise<undefined>
  52538. function setLocalDescription: IJSPromise; overload; // Promise<undefined>
  52539. function setRemoteDescription(const aDescription: TJSRTCSessionDescriptionInit): IJSPromise; overload; // Promise<undefined>
  52540. function addIceCandidate(aCandidate: IJSRTCIceCandidate): IJSPromise; overload; // Promise<undefined>
  52541. function addIceCandidate: IJSPromise; overload; // Promise<undefined>
  52542. function addIceCandidate(const aCandidate: TJSRTCIceCandidateInit): IJSPromise; overload; // Promise<undefined>
  52543. procedure restartIce; overload;
  52544. function getConfiguration: TJSRTCConfiguration; overload;
  52545. procedure setConfiguration(const aConfiguration: TJSRTCConfiguration); overload;
  52546. procedure setConfiguration; overload;
  52547. function getLocalStreams: TJSMediaStreamDynArray; overload;
  52548. function getRemoteStreams: TJSMediaStreamDynArray; overload;
  52549. procedure addStream(aStream: IJSMediaStream); overload;
  52550. function addTrack(aTrack: IJSMediaStreamTrack; aStreams: IJSMediaStream): IJSRTCRtpSender{; ToDo:varargs}; overload;
  52551. procedure removeTrack(aSender: IJSRTCRtpSender); overload;
  52552. function addTransceiver(const aTrackOrKind: UnicodeString; const aInit: TJSRTCRtpTransceiverInit): IJSRTCRtpTransceiver; overload;
  52553. function addTransceiver(aTrackOrKind: IJSMediaStreamTrack; const aInit: TJSRTCRtpTransceiverInit): IJSRTCRtpTransceiver; overload;
  52554. function addTransceiver(aTrackOrKind: IJSMediaStreamTrack): IJSRTCRtpTransceiver; overload;
  52555. function addTransceiver(const aTrackOrKind: UnicodeString): IJSRTCRtpTransceiver; overload;
  52556. function getSenders: TJSRTCRtpSenderDynArray; overload;
  52557. function getReceivers: TJSRTCRtpReceiverDynArray; overload;
  52558. function getTransceivers: TJSRTCRtpTransceiverDynArray; overload;
  52559. procedure close; overload;
  52560. function getStats(aSelector: IJSMediaStreamTrack): IJSPromise; overload; // Promise<RTCStatsReport>
  52561. function getStats: IJSPromise; overload; // Promise<RTCStatsReport>
  52562. function createDataChannel(const aLabel_: UnicodeString; const aDataChannelDict: TJSRTCDataChannelInit): IJSRTCDataChannel; overload;
  52563. function createDataChannel(const aLabel_: UnicodeString): IJSRTCDataChannel; overload;
  52564. function createOffer(const aSuccessCallback: TRTCSessionDescriptionCallback; const aFailureCallback: TRTCPeerConnectionErrorCallback; const aOptions: TJSRTCOfferOptions): IJSPromise; overload; // Promise<undefined>
  52565. function createOffer(const aSuccessCallback: TRTCSessionDescriptionCallback; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; overload; // Promise<undefined>
  52566. function setLocalDescription(const aDescription: TJSRTCLocalSessionDescriptionInit; const aSuccessCallback: TVoidFunction; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; overload; // Promise<undefined>
  52567. function createAnswer(const aSuccessCallback: TRTCSessionDescriptionCallback; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; overload; // Promise<undefined>
  52568. function setRemoteDescription(const aDescription: TJSRTCSessionDescriptionInit; const aSuccessCallback: TVoidFunction; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; overload; // Promise<undefined>
  52569. function addIceCandidate(const aCandidate: TJSRTCIceCandidateInit; const aSuccessCallback: TVoidFunction; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; overload; // Promise<undefined>
  52570. class function JSClassName: UnicodeString; override;
  52571. class function Cast(const Intf: IJSObject): IJSRTCPeerConnection;
  52572. property localDescription: IJSRTCSessionDescription read _GetlocalDescription;
  52573. property currentLocalDescription: IJSRTCSessionDescription read _GetcurrentLocalDescription;
  52574. property pendingLocalDescription: IJSRTCSessionDescription read _GetpendingLocalDescription;
  52575. property remoteDescription: IJSRTCSessionDescription read _GetremoteDescription;
  52576. property currentRemoteDescription: IJSRTCSessionDescription read _GetcurrentRemoteDescription;
  52577. property pendingRemoteDescription: IJSRTCSessionDescription read _GetpendingRemoteDescription;
  52578. property signalingState: TRTCSignalingState read _GetsignalingState;
  52579. property canTrickleIceCandidates: Boolean read _GetcanTrickleIceCandidates;
  52580. property iceGatheringState: TRTCIceGatheringState read _GeticeGatheringState;
  52581. property iceConnectionState: TRTCIceConnectionState read _GeticeConnectionState;
  52582. property connectionState: TRTCPeerConnectionState read _GetconnectionState;
  52583. property peerIdentity: IJSPromise read _GetpeerIdentity;
  52584. property idpLoginUrl: UnicodeString read _GetidpLoginUrl;
  52585. property onnegotiationneeded: TEventHandler read _Getonnegotiationneeded write _Setonnegotiationneeded;
  52586. property onicecandidate: TEventHandler read _Getonicecandidate write _Setonicecandidate;
  52587. property onsignalingstatechange: TEventHandler read _Getonsignalingstatechange write _Setonsignalingstatechange;
  52588. property onaddstream: TEventHandler read _Getonaddstream write _Setonaddstream;
  52589. property onaddtrack: TEventHandler read _Getonaddtrack write _Setonaddtrack;
  52590. property ontrack: TEventHandler read _Getontrack write _Setontrack;
  52591. property oniceconnectionstatechange: TEventHandler read _Getoniceconnectionstatechange write _Setoniceconnectionstatechange;
  52592. property onicegatheringstatechange: TEventHandler read _Getonicegatheringstatechange write _Setonicegatheringstatechange;
  52593. property onconnectionstatechange: TEventHandler read _Getonconnectionstatechange write _Setonconnectionstatechange;
  52594. property sctp: IJSRTCSctpTransport read _Getsctp;
  52595. property ondatachannel: TEventHandler read _Getondatachannel write _Setondatachannel;
  52596. end;
  52597. { --------------------------------------------------------------------
  52598. TJSRTCPeerConnectionIceEvent
  52599. --------------------------------------------------------------------}
  52600. IJSRTCPeerConnectionIceEvent = interface(IJSEvent)
  52601. ['{A8B21EE0-BB87-314C-B361-04888C8759D6}']
  52602. function _Getcandidate: IJSRTCIceCandidate;
  52603. property candidate: IJSRTCIceCandidate read _Getcandidate;
  52604. end;
  52605. TJSRTCPeerConnectionIceEvent = class(TJSEvent,IJSRTCPeerConnectionIceEvent)
  52606. Protected
  52607. function _Getcandidate: IJSRTCIceCandidate;
  52608. Public
  52609. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSRTCPeerConnectionIceEventInit); overload;
  52610. constructor Create(const aType_: UnicodeString); overload;
  52611. class function JSClassName: UnicodeString; override;
  52612. class function Cast(const Intf: IJSObject): IJSRTCPeerConnectionIceEvent;
  52613. property candidate: IJSRTCIceCandidate read _Getcandidate;
  52614. end;
  52615. { --------------------------------------------------------------------
  52616. TJSRTCSctpTransport
  52617. --------------------------------------------------------------------}
  52618. IJSRTCSctpTransport = interface(IJSEventTarget)
  52619. ['{032CAA62-D70C-3A20-AF50-EF9404CAFAB0}']
  52620. function _Gettransport: IJSRTCDtlsTransport;
  52621. function _Getstate: TRTCSctpTransportState;
  52622. function _GetmaxMessageSize: Double;
  52623. function _GetmaxChannels: Word;
  52624. function _Getonstatechange: TEventHandler;
  52625. procedure _Setonstatechange(const aValue: TEventHandler);
  52626. property transport: IJSRTCDtlsTransport read _Gettransport;
  52627. property state: TRTCSctpTransportState read _Getstate;
  52628. property maxMessageSize: Double read _GetmaxMessageSize;
  52629. property maxChannels: Word read _GetmaxChannels;
  52630. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  52631. end;
  52632. TJSRTCSctpTransport = class(TJSEventTarget,IJSRTCSctpTransport)
  52633. Protected
  52634. function _Gettransport: IJSRTCDtlsTransport;
  52635. function _Getstate: TRTCSctpTransportState;
  52636. function _GetmaxMessageSize: Double;
  52637. function _GetmaxChannels: Word;
  52638. function _Getonstatechange: TEventHandler;
  52639. procedure _Setonstatechange(const aValue: TEventHandler);
  52640. Public
  52641. class function JSClassName: UnicodeString; override;
  52642. class function Cast(const Intf: IJSObject): IJSRTCSctpTransport;
  52643. property transport: IJSRTCDtlsTransport read _Gettransport;
  52644. property state: TRTCSctpTransportState read _Getstate;
  52645. property maxMessageSize: Double read _GetmaxMessageSize;
  52646. property maxChannels: Word read _GetmaxChannels;
  52647. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  52648. end;
  52649. { --------------------------------------------------------------------
  52650. TJSRTCTrackEvent
  52651. --------------------------------------------------------------------}
  52652. IJSRTCTrackEvent = interface(IJSEvent)
  52653. ['{DC0379CF-7BC1-3E00-9A88-D0034D08ECA4}']
  52654. function _Getreceiver: IJSRTCRtpReceiver;
  52655. function _Gettrack: IJSMediaStreamTrack;
  52656. function _Getstreams: TJSMediaStreamDynArray;
  52657. function _Gettransceiver: IJSRTCRtpTransceiver;
  52658. property receiver: IJSRTCRtpReceiver read _Getreceiver;
  52659. property track: IJSMediaStreamTrack read _Gettrack;
  52660. property streams: TJSMediaStreamDynArray read _Getstreams;
  52661. property transceiver: IJSRTCRtpTransceiver read _Gettransceiver;
  52662. end;
  52663. TJSRTCTrackEvent = class(TJSEvent,IJSRTCTrackEvent)
  52664. Protected
  52665. function _Getreceiver: IJSRTCRtpReceiver;
  52666. function _Gettrack: IJSMediaStreamTrack;
  52667. function _Getstreams: TJSMediaStreamDynArray;
  52668. function _Gettransceiver: IJSRTCRtpTransceiver;
  52669. Public
  52670. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSRTCTrackEventInit); overload;
  52671. class function JSClassName: UnicodeString; override;
  52672. class function Cast(const Intf: IJSObject): IJSRTCTrackEvent;
  52673. property receiver: IJSRTCRtpReceiver read _Getreceiver;
  52674. property track: IJSMediaStreamTrack read _Gettrack;
  52675. property streams: TJSMediaStreamDynArray read _Getstreams;
  52676. property transceiver: IJSRTCRtpTransceiver read _Gettransceiver;
  52677. end;
  52678. { --------------------------------------------------------------------
  52679. TJSRTCTransformEvent
  52680. --------------------------------------------------------------------}
  52681. IJSRTCTransformEvent = interface(IJSEvent)
  52682. ['{6AF6AD80-6CC5-38AD-9F3C-CCBC67C06FEF}']
  52683. function _Gettransformer: IJSRTCRtpScriptTransformer;
  52684. property transformer: IJSRTCRtpScriptTransformer read _Gettransformer;
  52685. end;
  52686. TJSRTCTransformEvent = class(TJSEvent,IJSRTCTransformEvent)
  52687. Protected
  52688. function _Gettransformer: IJSRTCRtpScriptTransformer;
  52689. Public
  52690. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSRTCTransformEventInit); overload;
  52691. class function JSClassName: UnicodeString; override;
  52692. class function Cast(const Intf: IJSObject): IJSRTCTransformEvent;
  52693. property transformer: IJSRTCRtpScriptTransformer read _Gettransformer;
  52694. end;
  52695. { --------------------------------------------------------------------
  52696. TJSScreen
  52697. --------------------------------------------------------------------}
  52698. IJSScreen = interface(IJSEventTarget)
  52699. ['{50081500-62A8-3C0B-B01A-A5E254E77476}']
  52700. function _GetavailWidth: LongInt;
  52701. function _GetavailHeight: LongInt;
  52702. function _Getwidth: LongInt;
  52703. function _Getheight: LongInt;
  52704. function _GetcolorDepth: LongInt;
  52705. function _GetpixelDepth: LongInt;
  52706. function _Gettop: LongInt;
  52707. function _Getleft: LongInt;
  52708. function _GetavailTop: LongInt;
  52709. function _GetavailLeft: LongInt;
  52710. function _GetmozOrientation: UnicodeString;
  52711. function _Getonmozorientationchange: TEventHandler;
  52712. function _Getorientation: IJSScreenOrientation;
  52713. function _GetcolorGamut: TScreenColorGamut;
  52714. function _Getluminance: IJSScreenLuminance;
  52715. function _Getonchange: TEventHandler;
  52716. procedure _Setonmozorientationchange(const aValue: TEventHandler);
  52717. procedure _Setonchange(const aValue: TEventHandler);
  52718. function mozLockOrientation(const aOrientation: UnicodeString): Boolean;
  52719. function mozLockOrientation(const aOrientation: TUnicodeStringDynArray): Boolean;
  52720. procedure mozUnlockOrientation;
  52721. property availWidth: LongInt read _GetavailWidth;
  52722. property availHeight: LongInt read _GetavailHeight;
  52723. property width: LongInt read _Getwidth;
  52724. property height: LongInt read _Getheight;
  52725. property colorDepth: LongInt read _GetcolorDepth;
  52726. property pixelDepth: LongInt read _GetpixelDepth;
  52727. property top: LongInt read _Gettop;
  52728. property left: LongInt read _Getleft;
  52729. property availTop: LongInt read _GetavailTop;
  52730. property availLeft: LongInt read _GetavailLeft;
  52731. property mozOrientation: UnicodeString read _GetmozOrientation;
  52732. property onmozorientationchange: TEventHandler read _Getonmozorientationchange write _Setonmozorientationchange;
  52733. property orientation: IJSScreenOrientation read _Getorientation;
  52734. property colorGamut: TScreenColorGamut read _GetcolorGamut;
  52735. property luminance: IJSScreenLuminance read _Getluminance;
  52736. property onchange: TEventHandler read _Getonchange write _Setonchange;
  52737. end;
  52738. TJSScreen = class(TJSEventTarget,IJSScreen)
  52739. Protected
  52740. function _GetavailWidth: LongInt;
  52741. function _GetavailHeight: LongInt;
  52742. function _Getwidth: LongInt;
  52743. function _Getheight: LongInt;
  52744. function _GetcolorDepth: LongInt;
  52745. function _GetpixelDepth: LongInt;
  52746. function _Gettop: LongInt;
  52747. function _Getleft: LongInt;
  52748. function _GetavailTop: LongInt;
  52749. function _GetavailLeft: LongInt;
  52750. function _GetmozOrientation: UnicodeString;
  52751. function _Getonmozorientationchange: TEventHandler;
  52752. function _Getorientation: IJSScreenOrientation;
  52753. function _GetcolorGamut: TScreenColorGamut;
  52754. function _Getluminance: IJSScreenLuminance;
  52755. function _Getonchange: TEventHandler;
  52756. procedure _Setonmozorientationchange(const aValue: TEventHandler);
  52757. procedure _Setonchange(const aValue: TEventHandler);
  52758. Public
  52759. function mozLockOrientation(const aOrientation: UnicodeString): Boolean; overload;
  52760. function mozLockOrientation(const aOrientation: TUnicodeStringDynArray): Boolean; overload;
  52761. procedure mozUnlockOrientation; overload;
  52762. class function JSClassName: UnicodeString; override;
  52763. class function Cast(const Intf: IJSObject): IJSScreen;
  52764. property availWidth: LongInt read _GetavailWidth;
  52765. property availHeight: LongInt read _GetavailHeight;
  52766. property width: LongInt read _Getwidth;
  52767. property height: LongInt read _Getheight;
  52768. property colorDepth: LongInt read _GetcolorDepth;
  52769. property pixelDepth: LongInt read _GetpixelDepth;
  52770. property top: LongInt read _Gettop;
  52771. property left: LongInt read _Getleft;
  52772. property availTop: LongInt read _GetavailTop;
  52773. property availLeft: LongInt read _GetavailLeft;
  52774. property mozOrientation: UnicodeString read _GetmozOrientation;
  52775. property onmozorientationchange: TEventHandler read _Getonmozorientationchange write _Setonmozorientationchange;
  52776. property orientation: IJSScreenOrientation read _Getorientation;
  52777. property colorGamut: TScreenColorGamut read _GetcolorGamut;
  52778. property luminance: IJSScreenLuminance read _Getluminance;
  52779. property onchange: TEventHandler read _Getonchange write _Setonchange;
  52780. end;
  52781. { --------------------------------------------------------------------
  52782. TJSScreenOrientation
  52783. --------------------------------------------------------------------}
  52784. IJSScreenOrientation = interface(IJSEventTarget)
  52785. ['{122E004B-C22C-3AE6-8F0D-3EBD7E86B5E8}']
  52786. function _Gettype_: TOrientationType;
  52787. function _Getangle: Word;
  52788. function _Getonchange: TEventHandler;
  52789. procedure _Setonchange(const aValue: TEventHandler);
  52790. function lock(aOrientation: TOrientationLockType): IJSPromise; // Promise<undefined>
  52791. procedure unlock;
  52792. property type_: TOrientationType read _Gettype_;
  52793. property angle: Word read _Getangle;
  52794. property onchange: TEventHandler read _Getonchange write _Setonchange;
  52795. end;
  52796. TJSScreenOrientation = class(TJSEventTarget,IJSScreenOrientation)
  52797. Protected
  52798. function _Gettype_: TOrientationType;
  52799. function _Getangle: Word;
  52800. function _Getonchange: TEventHandler;
  52801. procedure _Setonchange(const aValue: TEventHandler);
  52802. Public
  52803. function lock(aOrientation: TOrientationLockType): IJSPromise; overload; // Promise<undefined>
  52804. procedure unlock; overload;
  52805. class function JSClassName: UnicodeString; override;
  52806. class function Cast(const Intf: IJSObject): IJSScreenOrientation;
  52807. property type_: TOrientationType read _Gettype_;
  52808. property angle: Word read _Getangle;
  52809. property onchange: TEventHandler read _Getonchange write _Setonchange;
  52810. end;
  52811. { --------------------------------------------------------------------
  52812. TJSSecurityPolicyViolationEvent
  52813. --------------------------------------------------------------------}
  52814. IJSSecurityPolicyViolationEvent = interface(IJSEvent)
  52815. ['{A24E839F-C6A7-37D4-8AC5-EAE10F9A666B}']
  52816. function _GetdocumentURI: UnicodeString;
  52817. function _Getreferrer: UnicodeString;
  52818. function _GetblockedURI: UnicodeString;
  52819. function _GetviolatedDirective: UnicodeString;
  52820. function _GeteffectiveDirective: UnicodeString;
  52821. function _GetoriginalPolicy: UnicodeString;
  52822. function _GetsourceFile: UnicodeString;
  52823. function _Getsample: UnicodeString;
  52824. function _Getdisposition: TSecurityPolicyViolationEventDisposition;
  52825. function _GetstatusCode: Word;
  52826. function _GetlineNumber: Cardinal;
  52827. function _GetcolumnNumber: Cardinal;
  52828. property documentURI: UnicodeString read _GetdocumentURI;
  52829. property referrer: UnicodeString read _Getreferrer;
  52830. property blockedURI: UnicodeString read _GetblockedURI;
  52831. property violatedDirective: UnicodeString read _GetviolatedDirective;
  52832. property effectiveDirective: UnicodeString read _GeteffectiveDirective;
  52833. property originalPolicy: UnicodeString read _GetoriginalPolicy;
  52834. property sourceFile: UnicodeString read _GetsourceFile;
  52835. property sample: UnicodeString read _Getsample;
  52836. property disposition: TSecurityPolicyViolationEventDisposition read _Getdisposition;
  52837. property statusCode: Word read _GetstatusCode;
  52838. property lineNumber: Cardinal read _GetlineNumber;
  52839. property columnNumber: Cardinal read _GetcolumnNumber;
  52840. end;
  52841. TJSSecurityPolicyViolationEvent = class(TJSEvent,IJSSecurityPolicyViolationEvent)
  52842. Protected
  52843. function _GetdocumentURI: UnicodeString;
  52844. function _Getreferrer: UnicodeString;
  52845. function _GetblockedURI: UnicodeString;
  52846. function _GetviolatedDirective: UnicodeString;
  52847. function _GeteffectiveDirective: UnicodeString;
  52848. function _GetoriginalPolicy: UnicodeString;
  52849. function _GetsourceFile: UnicodeString;
  52850. function _Getsample: UnicodeString;
  52851. function _Getdisposition: TSecurityPolicyViolationEventDisposition;
  52852. function _GetstatusCode: Word;
  52853. function _GetlineNumber: Cardinal;
  52854. function _GetcolumnNumber: Cardinal;
  52855. Public
  52856. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSSecurityPolicyViolationEventInit); overload;
  52857. constructor Create(const aType_: UnicodeString); overload;
  52858. class function JSClassName: UnicodeString; override;
  52859. class function Cast(const Intf: IJSObject): IJSSecurityPolicyViolationEvent;
  52860. property documentURI: UnicodeString read _GetdocumentURI;
  52861. property referrer: UnicodeString read _Getreferrer;
  52862. property blockedURI: UnicodeString read _GetblockedURI;
  52863. property violatedDirective: UnicodeString read _GetviolatedDirective;
  52864. property effectiveDirective: UnicodeString read _GeteffectiveDirective;
  52865. property originalPolicy: UnicodeString read _GetoriginalPolicy;
  52866. property sourceFile: UnicodeString read _GetsourceFile;
  52867. property sample: UnicodeString read _Getsample;
  52868. property disposition: TSecurityPolicyViolationEventDisposition read _Getdisposition;
  52869. property statusCode: Word read _GetstatusCode;
  52870. property lineNumber: Cardinal read _GetlineNumber;
  52871. property columnNumber: Cardinal read _GetcolumnNumber;
  52872. end;
  52873. { --------------------------------------------------------------------
  52874. TJSServiceWorker
  52875. --------------------------------------------------------------------}
  52876. IJSServiceWorker = interface(IJSEventTarget)
  52877. ['{74F2313E-0293-36F2-ABE3-934BD707B50A}']
  52878. function _GetscriptURL: UnicodeString;
  52879. function _Getstate: TServiceWorkerState;
  52880. function _Getonstatechange: TEventHandler;
  52881. function _Getonerror: TEventHandler;
  52882. procedure _Setonstatechange(const aValue: TEventHandler);
  52883. procedure _Setonerror(const aValue: TEventHandler);
  52884. procedure postMessage(const aMessage: Variant; const aTransferable: TIJSObjectDynArray);
  52885. procedure postMessage(const aMessage: Variant; const aOptions: TJSStructuredSerializeOptions);
  52886. procedure postMessage(const aMessage: Variant);
  52887. property scriptURL: UnicodeString read _GetscriptURL;
  52888. property state: TServiceWorkerState read _Getstate;
  52889. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  52890. property onerror: TEventHandler read _Getonerror write _Setonerror;
  52891. end;
  52892. TJSServiceWorker = class(TJSEventTarget,IJSServiceWorker)
  52893. Protected
  52894. function _GetscriptURL: UnicodeString;
  52895. function _Getstate: TServiceWorkerState;
  52896. function _Getonstatechange: TEventHandler;
  52897. function _Getonerror: TEventHandler;
  52898. procedure _Setonstatechange(const aValue: TEventHandler);
  52899. procedure _Setonerror(const aValue: TEventHandler);
  52900. Public
  52901. procedure postMessage(const aMessage: Variant; const aTransferable: TIJSObjectDynArray); overload;
  52902. procedure postMessage(const aMessage: Variant; const aOptions: TJSStructuredSerializeOptions); overload;
  52903. procedure postMessage(const aMessage: Variant); overload;
  52904. class function JSClassName: UnicodeString; override;
  52905. class function Cast(const Intf: IJSObject): IJSServiceWorker;
  52906. property scriptURL: UnicodeString read _GetscriptURL;
  52907. property state: TServiceWorkerState read _Getstate;
  52908. property onstatechange: TEventHandler read _Getonstatechange write _Setonstatechange;
  52909. property onerror: TEventHandler read _Getonerror write _Setonerror;
  52910. end;
  52911. { --------------------------------------------------------------------
  52912. TJSServiceWorkerContainer
  52913. --------------------------------------------------------------------}
  52914. IJSServiceWorkerContainer = interface(IJSEventTarget)
  52915. ['{B2561097-DB4F-3A03-9AEE-A533E6C58607}']
  52916. function _Getcontroller: IJSServiceWorker;
  52917. function _Getready: IJSPromise;
  52918. function _Getoncontrollerchange: TEventHandler;
  52919. function _Getonmessage: TEventHandler;
  52920. function _Getonmessageerror: TEventHandler;
  52921. procedure _Setoncontrollerchange(const aValue: TEventHandler);
  52922. procedure _Setonmessage(const aValue: TEventHandler);
  52923. procedure _Setonmessageerror(const aValue: TEventHandler);
  52924. function register(const aScriptURL: UnicodeString; const aOptions: TJSRegistrationOptions): IJSPromise; // Promise<ServiceWorkerRegistration>
  52925. function register(const aScriptURL: UnicodeString): IJSPromise; // Promise<ServiceWorkerRegistration>
  52926. function getRegistration(const aDocumentURL: UnicodeString): IJSPromise; // Promise<union>
  52927. function getRegistration: IJSPromise; // Promise<union>
  52928. function getRegistrations: IJSPromise; // Promise<sequence>
  52929. procedure startMessages;
  52930. function getScopeForUrl(const aUrl: UnicodeString): UnicodeString;
  52931. property controller: IJSServiceWorker read _Getcontroller;
  52932. property ready: IJSPromise read _Getready;
  52933. property oncontrollerchange: TEventHandler read _Getoncontrollerchange write _Setoncontrollerchange;
  52934. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  52935. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  52936. end;
  52937. TJSServiceWorkerContainer = class(TJSEventTarget,IJSServiceWorkerContainer)
  52938. Protected
  52939. function _Getcontroller: IJSServiceWorker;
  52940. function _Getready: IJSPromise;
  52941. function _Getoncontrollerchange: TEventHandler;
  52942. function _Getonmessage: TEventHandler;
  52943. function _Getonmessageerror: TEventHandler;
  52944. procedure _Setoncontrollerchange(const aValue: TEventHandler);
  52945. procedure _Setonmessage(const aValue: TEventHandler);
  52946. procedure _Setonmessageerror(const aValue: TEventHandler);
  52947. Public
  52948. function register(const aScriptURL: UnicodeString; const aOptions: TJSRegistrationOptions): IJSPromise; overload; // Promise<ServiceWorkerRegistration>
  52949. function register(const aScriptURL: UnicodeString): IJSPromise; overload; // Promise<ServiceWorkerRegistration>
  52950. function getRegistration(const aDocumentURL: UnicodeString): IJSPromise; overload; // Promise<union>
  52951. function getRegistration: IJSPromise; overload; // Promise<union>
  52952. function getRegistrations: IJSPromise; overload; // Promise<sequence>
  52953. procedure startMessages; overload;
  52954. function getScopeForUrl(const aUrl: UnicodeString): UnicodeString; overload;
  52955. class function JSClassName: UnicodeString; override;
  52956. class function Cast(const Intf: IJSObject): IJSServiceWorkerContainer;
  52957. property controller: IJSServiceWorker read _Getcontroller;
  52958. property ready: IJSPromise read _Getready;
  52959. property oncontrollerchange: TEventHandler read _Getoncontrollerchange write _Setoncontrollerchange;
  52960. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  52961. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  52962. end;
  52963. { --------------------------------------------------------------------
  52964. TJSServiceWorkerRegistration
  52965. --------------------------------------------------------------------}
  52966. IJSServiceWorkerRegistration = interface(IJSEventTarget)
  52967. ['{0FC82B91-17C0-309F-BBAA-4803F30F66F0}']
  52968. function _Getinstalling: IJSServiceWorker;
  52969. function _Getwaiting: IJSServiceWorker;
  52970. function _Getactive: IJSServiceWorker;
  52971. function _GetnavigationPreload: IJSNavigationPreloadManager;
  52972. function _Getscope: UnicodeString;
  52973. function _GetupdateViaCache: TServiceWorkerUpdateViaCache;
  52974. function _Getonupdatefound: TEventHandler;
  52975. function _GetpushManager: IJSPushManager;
  52976. procedure _Setonupdatefound(const aValue: TEventHandler);
  52977. function update: IJSPromise; // Promise<undefined>
  52978. function unregister: IJSPromise; // Promise<boolean>
  52979. function showNotification(const aTitle: UnicodeString; const aOptions: TJSNotificationOptions): IJSPromise; // Promise<undefined>
  52980. function showNotification(const aTitle: UnicodeString): IJSPromise; // Promise<undefined>
  52981. function getNotifications(const aFilter: TJSGetNotificationOptions): IJSPromise; // Promise<sequence>
  52982. function getNotifications: IJSPromise; // Promise<sequence>
  52983. property installing: IJSServiceWorker read _Getinstalling;
  52984. property waiting: IJSServiceWorker read _Getwaiting;
  52985. property active: IJSServiceWorker read _Getactive;
  52986. property navigationPreload: IJSNavigationPreloadManager read _GetnavigationPreload;
  52987. property scope: UnicodeString read _Getscope;
  52988. property updateViaCache: TServiceWorkerUpdateViaCache read _GetupdateViaCache;
  52989. property onupdatefound: TEventHandler read _Getonupdatefound write _Setonupdatefound;
  52990. property pushManager: IJSPushManager read _GetpushManager;
  52991. end;
  52992. TJSServiceWorkerRegistration = class(TJSEventTarget,IJSServiceWorkerRegistration)
  52993. Protected
  52994. function _Getinstalling: IJSServiceWorker;
  52995. function _Getwaiting: IJSServiceWorker;
  52996. function _Getactive: IJSServiceWorker;
  52997. function _GetnavigationPreload: IJSNavigationPreloadManager;
  52998. function _Getscope: UnicodeString;
  52999. function _GetupdateViaCache: TServiceWorkerUpdateViaCache;
  53000. function _Getonupdatefound: TEventHandler;
  53001. function _GetpushManager: IJSPushManager;
  53002. procedure _Setonupdatefound(const aValue: TEventHandler);
  53003. Public
  53004. function update: IJSPromise; overload; // Promise<undefined>
  53005. function unregister: IJSPromise; overload; // Promise<boolean>
  53006. function showNotification(const aTitle: UnicodeString; const aOptions: TJSNotificationOptions): IJSPromise; overload; // Promise<undefined>
  53007. function showNotification(const aTitle: UnicodeString): IJSPromise; overload; // Promise<undefined>
  53008. function getNotifications(const aFilter: TJSGetNotificationOptions): IJSPromise; overload; // Promise<sequence>
  53009. function getNotifications: IJSPromise; overload; // Promise<sequence>
  53010. class function JSClassName: UnicodeString; override;
  53011. class function Cast(const Intf: IJSObject): IJSServiceWorkerRegistration;
  53012. property installing: IJSServiceWorker read _Getinstalling;
  53013. property waiting: IJSServiceWorker read _Getwaiting;
  53014. property active: IJSServiceWorker read _Getactive;
  53015. property navigationPreload: IJSNavigationPreloadManager read _GetnavigationPreload;
  53016. property scope: UnicodeString read _Getscope;
  53017. property updateViaCache: TServiceWorkerUpdateViaCache read _GetupdateViaCache;
  53018. property onupdatefound: TEventHandler read _Getonupdatefound write _Setonupdatefound;
  53019. property pushManager: IJSPushManager read _GetpushManager;
  53020. end;
  53021. { --------------------------------------------------------------------
  53022. TJSSharedWorker
  53023. --------------------------------------------------------------------}
  53024. // Union of DOMString, WorkerOptions
  53025. TSharedWorker_New_options_Type = Variant;
  53026. IJSSharedWorker = interface(IJSEventTarget)
  53027. ['{CA65B9FF-C9AF-3848-9283-CE6CCE669AC6}']
  53028. function _Getport: IJSMessagePort;
  53029. function _Getonerror: TEventHandler;
  53030. procedure _Setonerror(const aValue: TEventHandler);
  53031. property port: IJSMessagePort read _Getport;
  53032. property onerror: TEventHandler read _Getonerror write _Setonerror;
  53033. end;
  53034. TJSSharedWorker = class(TJSEventTarget,IJSSharedWorker)
  53035. Protected
  53036. function _Getport: IJSMessagePort;
  53037. function _Getonerror: TEventHandler;
  53038. procedure _Setonerror(const aValue: TEventHandler);
  53039. Public
  53040. constructor Create(const aScriptURL: UnicodeString; const aOptions: UnicodeString); overload;
  53041. constructor Create(const aScriptURL: UnicodeString); overload;
  53042. constructor Create(const aScriptURL: UnicodeString; const aOptions: TJSWorkerOptions); overload;
  53043. class function JSClassName: UnicodeString; override;
  53044. class function Cast(const Intf: IJSObject): IJSSharedWorker;
  53045. property port: IJSMessagePort read _Getport;
  53046. property onerror: TEventHandler read _Getonerror write _Setonerror;
  53047. end;
  53048. { --------------------------------------------------------------------
  53049. TJSSourceBuffer
  53050. --------------------------------------------------------------------}
  53051. IJSSourceBuffer = interface(IJSEventTarget)
  53052. ['{0976ACCA-1D41-3979-8C4C-F233676D0B94}']
  53053. function _Getmode: TSourceBufferAppendMode;
  53054. function _Getupdating: Boolean;
  53055. function _Getbuffered: IJSTimeRanges;
  53056. function _GettimestampOffset: Double;
  53057. function _GetappendWindowStart: Double;
  53058. function _GetappendWindowEnd: Double;
  53059. function _Getonupdatestart: TEventHandler;
  53060. function _Getonupdate: TEventHandler;
  53061. function _Getonupdateend: TEventHandler;
  53062. function _Getonerror: TEventHandler;
  53063. function _Getonabort: TEventHandler;
  53064. procedure _Setmode(const aValue: TSourceBufferAppendMode);
  53065. procedure _SettimestampOffset(const aValue: Double);
  53066. procedure _SetappendWindowStart(const aValue: Double);
  53067. procedure _SetappendWindowEnd(const aValue: Double);
  53068. procedure _Setonupdatestart(const aValue: TEventHandler);
  53069. procedure _Setonupdate(const aValue: TEventHandler);
  53070. procedure _Setonupdateend(const aValue: TEventHandler);
  53071. procedure _Setonerror(const aValue: TEventHandler);
  53072. procedure _Setonabort(const aValue: TEventHandler);
  53073. procedure appendBuffer(aData: IJSArrayBuffer);
  53074. procedure appendBuffer(aData: IJSArrayBufferView);
  53075. procedure abort;
  53076. procedure remove(aStart: Double; aEnd_: Double);
  53077. function appendBufferAsync(aData: IJSArrayBuffer): IJSPromise; // Promise<undefined>
  53078. function appendBufferAsync(aData: IJSArrayBufferView): IJSPromise; // Promise<undefined>
  53079. function removeAsync(aStart: Double; aEnd_: Double): IJSPromise; // Promise<undefined>
  53080. procedure changeType(const aType_: UnicodeString);
  53081. property mode: TSourceBufferAppendMode read _Getmode write _Setmode;
  53082. property updating: Boolean read _Getupdating;
  53083. property buffered: IJSTimeRanges read _Getbuffered;
  53084. property timestampOffset: Double read _GettimestampOffset write _SettimestampOffset;
  53085. property appendWindowStart: Double read _GetappendWindowStart write _SetappendWindowStart;
  53086. property appendWindowEnd: Double read _GetappendWindowEnd write _SetappendWindowEnd;
  53087. property onupdatestart: TEventHandler read _Getonupdatestart write _Setonupdatestart;
  53088. property onupdate: TEventHandler read _Getonupdate write _Setonupdate;
  53089. property onupdateend: TEventHandler read _Getonupdateend write _Setonupdateend;
  53090. property onerror: TEventHandler read _Getonerror write _Setonerror;
  53091. property onabort: TEventHandler read _Getonabort write _Setonabort;
  53092. end;
  53093. TJSSourceBuffer = class(TJSEventTarget,IJSSourceBuffer)
  53094. Protected
  53095. function _Getmode: TSourceBufferAppendMode;
  53096. function _Getupdating: Boolean;
  53097. function _Getbuffered: IJSTimeRanges;
  53098. function _GettimestampOffset: Double;
  53099. function _GetappendWindowStart: Double;
  53100. function _GetappendWindowEnd: Double;
  53101. function _Getonupdatestart: TEventHandler;
  53102. function _Getonupdate: TEventHandler;
  53103. function _Getonupdateend: TEventHandler;
  53104. function _Getonerror: TEventHandler;
  53105. function _Getonabort: TEventHandler;
  53106. procedure _Setmode(const aValue: TSourceBufferAppendMode);
  53107. procedure _SettimestampOffset(const aValue: Double);
  53108. procedure _SetappendWindowStart(const aValue: Double);
  53109. procedure _SetappendWindowEnd(const aValue: Double);
  53110. procedure _Setonupdatestart(const aValue: TEventHandler);
  53111. procedure _Setonupdate(const aValue: TEventHandler);
  53112. procedure _Setonupdateend(const aValue: TEventHandler);
  53113. procedure _Setonerror(const aValue: TEventHandler);
  53114. procedure _Setonabort(const aValue: TEventHandler);
  53115. Public
  53116. procedure appendBuffer(aData: IJSArrayBuffer); overload;
  53117. procedure appendBuffer(aData: IJSArrayBufferView); overload;
  53118. procedure abort; overload;
  53119. procedure remove(aStart: Double; aEnd_: Double); overload;
  53120. function appendBufferAsync(aData: IJSArrayBuffer): IJSPromise; overload; // Promise<undefined>
  53121. function appendBufferAsync(aData: IJSArrayBufferView): IJSPromise; overload; // Promise<undefined>
  53122. function removeAsync(aStart: Double; aEnd_: Double): IJSPromise; overload; // Promise<undefined>
  53123. procedure changeType(const aType_: UnicodeString); overload;
  53124. class function JSClassName: UnicodeString; override;
  53125. class function Cast(const Intf: IJSObject): IJSSourceBuffer;
  53126. property mode: TSourceBufferAppendMode read _Getmode write _Setmode;
  53127. property updating: Boolean read _Getupdating;
  53128. property buffered: IJSTimeRanges read _Getbuffered;
  53129. property timestampOffset: Double read _GettimestampOffset write _SettimestampOffset;
  53130. property appendWindowStart: Double read _GetappendWindowStart write _SetappendWindowStart;
  53131. property appendWindowEnd: Double read _GetappendWindowEnd write _SetappendWindowEnd;
  53132. property onupdatestart: TEventHandler read _Getonupdatestart write _Setonupdatestart;
  53133. property onupdate: TEventHandler read _Getonupdate write _Setonupdate;
  53134. property onupdateend: TEventHandler read _Getonupdateend write _Setonupdateend;
  53135. property onerror: TEventHandler read _Getonerror write _Setonerror;
  53136. property onabort: TEventHandler read _Getonabort write _Setonabort;
  53137. end;
  53138. { --------------------------------------------------------------------
  53139. TJSSourceBufferList
  53140. --------------------------------------------------------------------}
  53141. IJSSourceBufferList = interface(IJSEventTarget)
  53142. ['{504D1339-561D-320F-9C68-F3B70DDD5584}']
  53143. function _Getlength_: Cardinal;
  53144. function _Getonaddsourcebuffer: TEventHandler;
  53145. function _Getonremovesourcebuffer: TEventHandler;
  53146. procedure _Setonaddsourcebuffer(const aValue: TEventHandler);
  53147. procedure _Setonremovesourcebuffer(const aValue: TEventHandler);
  53148. function GetDefault(aIndex: Cardinal): IJSSourceBuffer;
  53149. property length_: Cardinal read _Getlength_;
  53150. property onaddsourcebuffer: TEventHandler read _Getonaddsourcebuffer write _Setonaddsourcebuffer;
  53151. property onremovesourcebuffer: TEventHandler read _Getonremovesourcebuffer write _Setonremovesourcebuffer;
  53152. end;
  53153. TJSSourceBufferList = class(TJSEventTarget,IJSSourceBufferList)
  53154. Protected
  53155. function _Getlength_: Cardinal;
  53156. function _Getonaddsourcebuffer: TEventHandler;
  53157. function _Getonremovesourcebuffer: TEventHandler;
  53158. procedure _Setonaddsourcebuffer(const aValue: TEventHandler);
  53159. procedure _Setonremovesourcebuffer(const aValue: TEventHandler);
  53160. Public
  53161. function GetDefault(aIndex: Cardinal): IJSSourceBuffer; overload;
  53162. class function JSClassName: UnicodeString; override;
  53163. class function Cast(const Intf: IJSObject): IJSSourceBufferList;
  53164. property length_: Cardinal read _Getlength_;
  53165. property onaddsourcebuffer: TEventHandler read _Getonaddsourcebuffer write _Setonaddsourcebuffer;
  53166. property onremovesourcebuffer: TEventHandler read _Getonremovesourcebuffer write _Setonremovesourcebuffer;
  53167. end;
  53168. { --------------------------------------------------------------------
  53169. TJSSpeechRecognition
  53170. --------------------------------------------------------------------}
  53171. IJSSpeechRecognition = interface(IJSEventTarget)
  53172. ['{B413C3E9-B876-325D-8EB6-878BDAA90CCC}']
  53173. function _Getgrammars: IJSSpeechGrammarList;
  53174. function _Getlang: UnicodeString;
  53175. function _Getcontinuous: Boolean;
  53176. function _GetinterimResults: Boolean;
  53177. function _GetmaxAlternatives: Cardinal;
  53178. function _GetserviceURI: UnicodeString;
  53179. function _Getonaudiostart: TEventHandler;
  53180. function _Getonsoundstart: TEventHandler;
  53181. function _Getonspeechstart: TEventHandler;
  53182. function _Getonspeechend: TEventHandler;
  53183. function _Getonsoundend: TEventHandler;
  53184. function _Getonaudioend: TEventHandler;
  53185. function _Getonresult: TEventHandler;
  53186. function _Getonnomatch: TEventHandler;
  53187. function _Getonerror: TEventHandler;
  53188. function _Getonstart: TEventHandler;
  53189. function _Getonend: TEventHandler;
  53190. procedure _Setgrammars(const aValue: IJSSpeechGrammarList);
  53191. procedure _Setlang(const aValue: UnicodeString);
  53192. procedure _Setcontinuous(const aValue: Boolean);
  53193. procedure _SetinterimResults(const aValue: Boolean);
  53194. procedure _SetmaxAlternatives(const aValue: Cardinal);
  53195. procedure _SetserviceURI(const aValue: UnicodeString);
  53196. procedure _Setonaudiostart(const aValue: TEventHandler);
  53197. procedure _Setonsoundstart(const aValue: TEventHandler);
  53198. procedure _Setonspeechstart(const aValue: TEventHandler);
  53199. procedure _Setonspeechend(const aValue: TEventHandler);
  53200. procedure _Setonsoundend(const aValue: TEventHandler);
  53201. procedure _Setonaudioend(const aValue: TEventHandler);
  53202. procedure _Setonresult(const aValue: TEventHandler);
  53203. procedure _Setonnomatch(const aValue: TEventHandler);
  53204. procedure _Setonerror(const aValue: TEventHandler);
  53205. procedure _Setonstart(const aValue: TEventHandler);
  53206. procedure _Setonend(const aValue: TEventHandler);
  53207. procedure start(aStream: IJSMediaStream);
  53208. procedure start;
  53209. procedure stop;
  53210. procedure abort;
  53211. property grammars: IJSSpeechGrammarList read _Getgrammars write _Setgrammars;
  53212. property lang: UnicodeString read _Getlang write _Setlang;
  53213. property continuous: Boolean read _Getcontinuous write _Setcontinuous;
  53214. property interimResults: Boolean read _GetinterimResults write _SetinterimResults;
  53215. property maxAlternatives: Cardinal read _GetmaxAlternatives write _SetmaxAlternatives;
  53216. property serviceURI: UnicodeString read _GetserviceURI write _SetserviceURI;
  53217. property onaudiostart: TEventHandler read _Getonaudiostart write _Setonaudiostart;
  53218. property onsoundstart: TEventHandler read _Getonsoundstart write _Setonsoundstart;
  53219. property onspeechstart: TEventHandler read _Getonspeechstart write _Setonspeechstart;
  53220. property onspeechend: TEventHandler read _Getonspeechend write _Setonspeechend;
  53221. property onsoundend: TEventHandler read _Getonsoundend write _Setonsoundend;
  53222. property onaudioend: TEventHandler read _Getonaudioend write _Setonaudioend;
  53223. property onresult: TEventHandler read _Getonresult write _Setonresult;
  53224. property onnomatch: TEventHandler read _Getonnomatch write _Setonnomatch;
  53225. property onerror: TEventHandler read _Getonerror write _Setonerror;
  53226. property onstart: TEventHandler read _Getonstart write _Setonstart;
  53227. property onend: TEventHandler read _Getonend write _Setonend;
  53228. end;
  53229. TJSSpeechRecognition = class(TJSEventTarget,IJSSpeechRecognition)
  53230. Protected
  53231. function _Getgrammars: IJSSpeechGrammarList;
  53232. function _Getlang: UnicodeString;
  53233. function _Getcontinuous: Boolean;
  53234. function _GetinterimResults: Boolean;
  53235. function _GetmaxAlternatives: Cardinal;
  53236. function _GetserviceURI: UnicodeString;
  53237. function _Getonaudiostart: TEventHandler;
  53238. function _Getonsoundstart: TEventHandler;
  53239. function _Getonspeechstart: TEventHandler;
  53240. function _Getonspeechend: TEventHandler;
  53241. function _Getonsoundend: TEventHandler;
  53242. function _Getonaudioend: TEventHandler;
  53243. function _Getonresult: TEventHandler;
  53244. function _Getonnomatch: TEventHandler;
  53245. function _Getonerror: TEventHandler;
  53246. function _Getonstart: TEventHandler;
  53247. function _Getonend: TEventHandler;
  53248. procedure _Setgrammars(const aValue: IJSSpeechGrammarList);
  53249. procedure _Setlang(const aValue: UnicodeString);
  53250. procedure _Setcontinuous(const aValue: Boolean);
  53251. procedure _SetinterimResults(const aValue: Boolean);
  53252. procedure _SetmaxAlternatives(const aValue: Cardinal);
  53253. procedure _SetserviceURI(const aValue: UnicodeString);
  53254. procedure _Setonaudiostart(const aValue: TEventHandler);
  53255. procedure _Setonsoundstart(const aValue: TEventHandler);
  53256. procedure _Setonspeechstart(const aValue: TEventHandler);
  53257. procedure _Setonspeechend(const aValue: TEventHandler);
  53258. procedure _Setonsoundend(const aValue: TEventHandler);
  53259. procedure _Setonaudioend(const aValue: TEventHandler);
  53260. procedure _Setonresult(const aValue: TEventHandler);
  53261. procedure _Setonnomatch(const aValue: TEventHandler);
  53262. procedure _Setonerror(const aValue: TEventHandler);
  53263. procedure _Setonstart(const aValue: TEventHandler);
  53264. procedure _Setonend(const aValue: TEventHandler);
  53265. Public
  53266. constructor Create; overload;
  53267. procedure start(aStream: IJSMediaStream); overload;
  53268. procedure start; overload;
  53269. procedure stop; overload;
  53270. procedure abort; overload;
  53271. class function JSClassName: UnicodeString; override;
  53272. class function Cast(const Intf: IJSObject): IJSSpeechRecognition;
  53273. property grammars: IJSSpeechGrammarList read _Getgrammars write _Setgrammars;
  53274. property lang: UnicodeString read _Getlang write _Setlang;
  53275. property continuous: Boolean read _Getcontinuous write _Setcontinuous;
  53276. property interimResults: Boolean read _GetinterimResults write _SetinterimResults;
  53277. property maxAlternatives: Cardinal read _GetmaxAlternatives write _SetmaxAlternatives;
  53278. property serviceURI: UnicodeString read _GetserviceURI write _SetserviceURI;
  53279. property onaudiostart: TEventHandler read _Getonaudiostart write _Setonaudiostart;
  53280. property onsoundstart: TEventHandler read _Getonsoundstart write _Setonsoundstart;
  53281. property onspeechstart: TEventHandler read _Getonspeechstart write _Setonspeechstart;
  53282. property onspeechend: TEventHandler read _Getonspeechend write _Setonspeechend;
  53283. property onsoundend: TEventHandler read _Getonsoundend write _Setonsoundend;
  53284. property onaudioend: TEventHandler read _Getonaudioend write _Setonaudioend;
  53285. property onresult: TEventHandler read _Getonresult write _Setonresult;
  53286. property onnomatch: TEventHandler read _Getonnomatch write _Setonnomatch;
  53287. property onerror: TEventHandler read _Getonerror write _Setonerror;
  53288. property onstart: TEventHandler read _Getonstart write _Setonstart;
  53289. property onend: TEventHandler read _Getonend write _Setonend;
  53290. end;
  53291. { --------------------------------------------------------------------
  53292. TJSSpeechRecognitionError
  53293. --------------------------------------------------------------------}
  53294. IJSSpeechRecognitionError = interface(IJSEvent)
  53295. ['{27F275FF-4558-3EC9-B28C-904F89377A8F}']
  53296. function _Geterror: TSpeechRecognitionErrorCode;
  53297. function _Getmessage: UnicodeString;
  53298. property error: TSpeechRecognitionErrorCode read _Geterror;
  53299. property message: UnicodeString read _Getmessage;
  53300. end;
  53301. TJSSpeechRecognitionError = class(TJSEvent,IJSSpeechRecognitionError)
  53302. Protected
  53303. function _Geterror: TSpeechRecognitionErrorCode;
  53304. function _Getmessage: UnicodeString;
  53305. Public
  53306. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSSpeechRecognitionErrorInit); overload;
  53307. constructor Create(const aType_: UnicodeString); overload;
  53308. class function JSClassName: UnicodeString; override;
  53309. class function Cast(const Intf: IJSObject): IJSSpeechRecognitionError;
  53310. property error: TSpeechRecognitionErrorCode read _Geterror;
  53311. property message: UnicodeString read _Getmessage;
  53312. end;
  53313. { --------------------------------------------------------------------
  53314. TJSSpeechRecognitionEvent
  53315. --------------------------------------------------------------------}
  53316. IJSSpeechRecognitionEvent = interface(IJSEvent)
  53317. ['{4C34CCB1-2BF2-37C6-84B2-87C18AC7A4C6}']
  53318. function _GetresultIndex: Cardinal;
  53319. function _Getresults: IJSSpeechRecognitionResultList;
  53320. function _Getinterpretation: Variant;
  53321. function _Getemma: IJSDocument;
  53322. property resultIndex: Cardinal read _GetresultIndex;
  53323. property results: IJSSpeechRecognitionResultList read _Getresults;
  53324. property interpretation: Variant read _Getinterpretation;
  53325. property emma: IJSDocument read _Getemma;
  53326. end;
  53327. TJSSpeechRecognitionEvent = class(TJSEvent,IJSSpeechRecognitionEvent)
  53328. Protected
  53329. function _GetresultIndex: Cardinal;
  53330. function _Getresults: IJSSpeechRecognitionResultList;
  53331. function _Getinterpretation: Variant;
  53332. function _Getemma: IJSDocument;
  53333. Public
  53334. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSSpeechRecognitionEventInit); overload;
  53335. constructor Create(const aType_: UnicodeString); overload;
  53336. class function JSClassName: UnicodeString; override;
  53337. class function Cast(const Intf: IJSObject): IJSSpeechRecognitionEvent;
  53338. property resultIndex: Cardinal read _GetresultIndex;
  53339. property results: IJSSpeechRecognitionResultList read _Getresults;
  53340. property interpretation: Variant read _Getinterpretation;
  53341. property emma: IJSDocument read _Getemma;
  53342. end;
  53343. { --------------------------------------------------------------------
  53344. TJSSpeechSynthesis
  53345. --------------------------------------------------------------------}
  53346. TJSSpeechSynthesisVoiceDynArray = IJSArray; // array of SpeechSynthesisVoice
  53347. IJSSpeechSynthesis = interface(IJSEventTarget)
  53348. ['{D01DE2C8-C27D-3A7D-9706-6564F9E7696F}']
  53349. function _Getpending: Boolean;
  53350. function _Getspeaking: Boolean;
  53351. function _Getpaused: Boolean;
  53352. function _Getonvoiceschanged: TEventHandler;
  53353. procedure _Setonvoiceschanged(const aValue: TEventHandler);
  53354. procedure speak(aUtterance: IJSSpeechSynthesisUtterance);
  53355. procedure cancel;
  53356. procedure pause;
  53357. procedure resume;
  53358. function getVoices: TJSSpeechSynthesisVoiceDynArray;
  53359. property pending: Boolean read _Getpending;
  53360. property speaking: Boolean read _Getspeaking;
  53361. property paused: Boolean read _Getpaused;
  53362. property onvoiceschanged: TEventHandler read _Getonvoiceschanged write _Setonvoiceschanged;
  53363. end;
  53364. TJSSpeechSynthesis = class(TJSEventTarget,IJSSpeechSynthesis)
  53365. Protected
  53366. function _Getpending: Boolean;
  53367. function _Getspeaking: Boolean;
  53368. function _Getpaused: Boolean;
  53369. function _Getonvoiceschanged: TEventHandler;
  53370. procedure _Setonvoiceschanged(const aValue: TEventHandler);
  53371. Public
  53372. procedure speak(aUtterance: IJSSpeechSynthesisUtterance); overload;
  53373. procedure cancel; overload;
  53374. procedure pause; overload;
  53375. procedure resume; overload;
  53376. function getVoices: TJSSpeechSynthesisVoiceDynArray; overload;
  53377. class function JSClassName: UnicodeString; override;
  53378. class function Cast(const Intf: IJSObject): IJSSpeechSynthesis;
  53379. property pending: Boolean read _Getpending;
  53380. property speaking: Boolean read _Getspeaking;
  53381. property paused: Boolean read _Getpaused;
  53382. property onvoiceschanged: TEventHandler read _Getonvoiceschanged write _Setonvoiceschanged;
  53383. end;
  53384. { --------------------------------------------------------------------
  53385. TJSSpeechSynthesisEvent
  53386. --------------------------------------------------------------------}
  53387. IJSSpeechSynthesisEvent = interface(IJSEvent)
  53388. ['{594D5A6D-CD25-3EBE-8362-11F13E1F990C}']
  53389. function _Getutterance: IJSSpeechSynthesisUtterance;
  53390. function _GetcharIndex: Cardinal;
  53391. function _GetcharLength: Cardinal;
  53392. function _GetelapsedTime: Single;
  53393. function _Getname: UnicodeString;
  53394. property utterance: IJSSpeechSynthesisUtterance read _Getutterance;
  53395. property charIndex: Cardinal read _GetcharIndex;
  53396. property charLength: Cardinal read _GetcharLength;
  53397. property elapsedTime: Single read _GetelapsedTime;
  53398. property name: UnicodeString read _Getname;
  53399. end;
  53400. TJSSpeechSynthesisEvent = class(TJSEvent,IJSSpeechSynthesisEvent)
  53401. Protected
  53402. function _Getutterance: IJSSpeechSynthesisUtterance;
  53403. function _GetcharIndex: Cardinal;
  53404. function _GetcharLength: Cardinal;
  53405. function _GetelapsedTime: Single;
  53406. function _Getname: UnicodeString;
  53407. Public
  53408. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSSpeechSynthesisEventInit); overload;
  53409. class function JSClassName: UnicodeString; override;
  53410. class function Cast(const Intf: IJSObject): IJSSpeechSynthesisEvent;
  53411. property utterance: IJSSpeechSynthesisUtterance read _Getutterance;
  53412. property charIndex: Cardinal read _GetcharIndex;
  53413. property charLength: Cardinal read _GetcharLength;
  53414. property elapsedTime: Single read _GetelapsedTime;
  53415. property name: UnicodeString read _Getname;
  53416. end;
  53417. { --------------------------------------------------------------------
  53418. TJSSpeechSynthesisUtterance
  53419. --------------------------------------------------------------------}
  53420. IJSSpeechSynthesisUtterance = interface(IJSEventTarget)
  53421. ['{407DB04F-2990-3A3E-8A0D-25B2514E833E}']
  53422. function _Gettext: UnicodeString;
  53423. function _Getlang: UnicodeString;
  53424. function _Getvoice: IJSSpeechSynthesisVoice;
  53425. function _Getvolume: Single;
  53426. function _Getrate: Single;
  53427. function _Getpitch: Single;
  53428. function _Getonstart: TEventHandler;
  53429. function _Getonend: TEventHandler;
  53430. function _Getonerror: TEventHandler;
  53431. function _Getonpause: TEventHandler;
  53432. function _Getonresume: TEventHandler;
  53433. function _Getonmark: TEventHandler;
  53434. function _Getonboundary: TEventHandler;
  53435. procedure _Settext(const aValue: UnicodeString);
  53436. procedure _Setlang(const aValue: UnicodeString);
  53437. procedure _Setvoice(const aValue: IJSSpeechSynthesisVoice);
  53438. procedure _Setvolume(const aValue: Single);
  53439. procedure _Setrate(const aValue: Single);
  53440. procedure _Setpitch(const aValue: Single);
  53441. procedure _Setonstart(const aValue: TEventHandler);
  53442. procedure _Setonend(const aValue: TEventHandler);
  53443. procedure _Setonerror(const aValue: TEventHandler);
  53444. procedure _Setonpause(const aValue: TEventHandler);
  53445. procedure _Setonresume(const aValue: TEventHandler);
  53446. procedure _Setonmark(const aValue: TEventHandler);
  53447. procedure _Setonboundary(const aValue: TEventHandler);
  53448. property text: UnicodeString read _Gettext write _Settext;
  53449. property lang: UnicodeString read _Getlang write _Setlang;
  53450. property voice: IJSSpeechSynthesisVoice read _Getvoice write _Setvoice;
  53451. property volume: Single read _Getvolume write _Setvolume;
  53452. property rate: Single read _Getrate write _Setrate;
  53453. property pitch: Single read _Getpitch write _Setpitch;
  53454. property onstart: TEventHandler read _Getonstart write _Setonstart;
  53455. property onend: TEventHandler read _Getonend write _Setonend;
  53456. property onerror: TEventHandler read _Getonerror write _Setonerror;
  53457. property onpause: TEventHandler read _Getonpause write _Setonpause;
  53458. property onresume: TEventHandler read _Getonresume write _Setonresume;
  53459. property onmark: TEventHandler read _Getonmark write _Setonmark;
  53460. property onboundary: TEventHandler read _Getonboundary write _Setonboundary;
  53461. end;
  53462. TJSSpeechSynthesisUtterance = class(TJSEventTarget,IJSSpeechSynthesisUtterance)
  53463. Protected
  53464. function _Gettext: UnicodeString;
  53465. function _Getlang: UnicodeString;
  53466. function _Getvoice: IJSSpeechSynthesisVoice;
  53467. function _Getvolume: Single;
  53468. function _Getrate: Single;
  53469. function _Getpitch: Single;
  53470. function _Getonstart: TEventHandler;
  53471. function _Getonend: TEventHandler;
  53472. function _Getonerror: TEventHandler;
  53473. function _Getonpause: TEventHandler;
  53474. function _Getonresume: TEventHandler;
  53475. function _Getonmark: TEventHandler;
  53476. function _Getonboundary: TEventHandler;
  53477. procedure _Settext(const aValue: UnicodeString);
  53478. procedure _Setlang(const aValue: UnicodeString);
  53479. procedure _Setvoice(const aValue: IJSSpeechSynthesisVoice);
  53480. procedure _Setvolume(const aValue: Single);
  53481. procedure _Setrate(const aValue: Single);
  53482. procedure _Setpitch(const aValue: Single);
  53483. procedure _Setonstart(const aValue: TEventHandler);
  53484. procedure _Setonend(const aValue: TEventHandler);
  53485. procedure _Setonerror(const aValue: TEventHandler);
  53486. procedure _Setonpause(const aValue: TEventHandler);
  53487. procedure _Setonresume(const aValue: TEventHandler);
  53488. procedure _Setonmark(const aValue: TEventHandler);
  53489. procedure _Setonboundary(const aValue: TEventHandler);
  53490. Public
  53491. constructor Create; overload;
  53492. constructor Create(const aText: UnicodeString); overload;
  53493. class function JSClassName: UnicodeString; override;
  53494. class function Cast(const Intf: IJSObject): IJSSpeechSynthesisUtterance;
  53495. property text: UnicodeString read _Gettext write _Settext;
  53496. property lang: UnicodeString read _Getlang write _Setlang;
  53497. property voice: IJSSpeechSynthesisVoice read _Getvoice write _Setvoice;
  53498. property volume: Single read _Getvolume write _Setvolume;
  53499. property rate: Single read _Getrate write _Setrate;
  53500. property pitch: Single read _Getpitch write _Setpitch;
  53501. property onstart: TEventHandler read _Getonstart write _Setonstart;
  53502. property onend: TEventHandler read _Getonend write _Setonend;
  53503. property onerror: TEventHandler read _Getonerror write _Setonerror;
  53504. property onpause: TEventHandler read _Getonpause write _Setonpause;
  53505. property onresume: TEventHandler read _Getonresume write _Setonresume;
  53506. property onmark: TEventHandler read _Getonmark write _Setonmark;
  53507. property onboundary: TEventHandler read _Getonboundary write _Setonboundary;
  53508. end;
  53509. { --------------------------------------------------------------------
  53510. TJSStaticRange
  53511. --------------------------------------------------------------------}
  53512. IJSStaticRange = interface(IJSAbstractRange)
  53513. ['{EEE0BE14-9E16-396D-B9C6-A6C92C79D931}']
  53514. end;
  53515. TJSStaticRange = class(TJSAbstractRange,IJSStaticRange)
  53516. Protected
  53517. Public
  53518. constructor Create(const aInit: TJSStaticRangeInit); overload;
  53519. class function JSClassName: UnicodeString; override;
  53520. class function Cast(const Intf: IJSObject): IJSStaticRange;
  53521. end;
  53522. { --------------------------------------------------------------------
  53523. TJSStorageEvent
  53524. --------------------------------------------------------------------}
  53525. IJSStorageEvent = interface(IJSEvent)
  53526. ['{4DAA3541-0635-34B4-B2C0-130AD6EFBA40}']
  53527. function _Getkey: UnicodeString;
  53528. function _GetoldValue: UnicodeString;
  53529. function _GetnewValue: UnicodeString;
  53530. function _Geturl: UnicodeString;
  53531. function _GetstorageArea: IJSStorage;
  53532. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString; const aNewValue: UnicodeString; const aUrl: UnicodeString; aStorageArea: IJSStorage);
  53533. procedure initStorageEvent(const aType_: UnicodeString);
  53534. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  53535. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  53536. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString);
  53537. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString);
  53538. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString; const aNewValue: UnicodeString);
  53539. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString; const aNewValue: UnicodeString; const aUrl: UnicodeString);
  53540. property key: UnicodeString read _Getkey;
  53541. property oldValue: UnicodeString read _GetoldValue;
  53542. property newValue: UnicodeString read _GetnewValue;
  53543. property url: UnicodeString read _Geturl;
  53544. property storageArea: IJSStorage read _GetstorageArea;
  53545. end;
  53546. TJSStorageEvent = class(TJSEvent,IJSStorageEvent)
  53547. Protected
  53548. function _Getkey: UnicodeString;
  53549. function _GetoldValue: UnicodeString;
  53550. function _GetnewValue: UnicodeString;
  53551. function _Geturl: UnicodeString;
  53552. function _GetstorageArea: IJSStorage;
  53553. Public
  53554. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSStorageEventInit); overload;
  53555. constructor Create(const aType_: UnicodeString); overload;
  53556. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString; const aNewValue: UnicodeString; const aUrl: UnicodeString; aStorageArea: IJSStorage); overload;
  53557. procedure initStorageEvent(const aType_: UnicodeString); overload;
  53558. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean); overload;
  53559. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean); overload;
  53560. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString); overload;
  53561. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString); overload;
  53562. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString; const aNewValue: UnicodeString); overload;
  53563. procedure initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString; const aNewValue: UnicodeString; const aUrl: UnicodeString); overload;
  53564. class function JSClassName: UnicodeString; override;
  53565. class function Cast(const Intf: IJSObject): IJSStorageEvent;
  53566. property key: UnicodeString read _Getkey;
  53567. property oldValue: UnicodeString read _GetoldValue;
  53568. property newValue: UnicodeString read _GetnewValue;
  53569. property url: UnicodeString read _Geturl;
  53570. property storageArea: IJSStorage read _GetstorageArea;
  53571. end;
  53572. { --------------------------------------------------------------------
  53573. TJSStreamFilter
  53574. --------------------------------------------------------------------}
  53575. // Union of ArrayBuffer, Uint8Array
  53576. TStreamFilter_write_data_Type = Variant;
  53577. IJSStreamFilter = interface(IJSEventTarget)
  53578. ['{762264AA-C029-3F13-BA2D-A0AAE8DA61E4}']
  53579. function _Getstatus: TStreamFilterStatus;
  53580. function _Geterror: UnicodeString;
  53581. function _Getondata: TEventHandler;
  53582. function _Getonstart: TEventHandler;
  53583. function _Getonstop: TEventHandler;
  53584. function _Getonerror: TEventHandler;
  53585. procedure _Setondata(const aValue: TEventHandler);
  53586. procedure _Setonstart(const aValue: TEventHandler);
  53587. procedure _Setonstop(const aValue: TEventHandler);
  53588. procedure _Setonerror(const aValue: TEventHandler);
  53589. procedure suspend;
  53590. procedure resume;
  53591. procedure close;
  53592. procedure disconnect;
  53593. procedure write(aData: IJSArrayBuffer);
  53594. procedure write(aData: IJSUint8Array);
  53595. property status: TStreamFilterStatus read _Getstatus;
  53596. property error: UnicodeString read _Geterror;
  53597. property ondata: TEventHandler read _Getondata write _Setondata;
  53598. property onstart: TEventHandler read _Getonstart write _Setonstart;
  53599. property onstop: TEventHandler read _Getonstop write _Setonstop;
  53600. property onerror: TEventHandler read _Getonerror write _Setonerror;
  53601. end;
  53602. TJSStreamFilter = class(TJSEventTarget,IJSStreamFilter)
  53603. Protected
  53604. function _Getstatus: TStreamFilterStatus;
  53605. function _Geterror: UnicodeString;
  53606. function _Getondata: TEventHandler;
  53607. function _Getonstart: TEventHandler;
  53608. function _Getonstop: TEventHandler;
  53609. function _Getonerror: TEventHandler;
  53610. procedure _Setondata(const aValue: TEventHandler);
  53611. procedure _Setonstart(const aValue: TEventHandler);
  53612. procedure _Setonstop(const aValue: TEventHandler);
  53613. procedure _Setonerror(const aValue: TEventHandler);
  53614. Public
  53615. procedure suspend; overload;
  53616. procedure resume; overload;
  53617. procedure close; overload;
  53618. procedure disconnect; overload;
  53619. procedure write(aData: IJSArrayBuffer); overload;
  53620. procedure write(aData: IJSUint8Array); overload;
  53621. class function JSClassName: UnicodeString; override;
  53622. class function Cast(const Intf: IJSObject): IJSStreamFilter;
  53623. property status: TStreamFilterStatus read _Getstatus;
  53624. property error: UnicodeString read _Geterror;
  53625. property ondata: TEventHandler read _Getondata write _Setondata;
  53626. property onstart: TEventHandler read _Getonstart write _Setonstart;
  53627. property onstop: TEventHandler read _Getonstop write _Setonstop;
  53628. property onerror: TEventHandler read _Getonerror write _Setonerror;
  53629. end;
  53630. { --------------------------------------------------------------------
  53631. TJSStreamFilterDataEvent
  53632. --------------------------------------------------------------------}
  53633. IJSStreamFilterDataEvent = interface(IJSEvent)
  53634. ['{0D04F90C-1408-3039-A91A-E6E0354D6C3D}']
  53635. function _Getdata: IJSArrayBuffer;
  53636. property data: IJSArrayBuffer read _Getdata;
  53637. end;
  53638. TJSStreamFilterDataEvent = class(TJSEvent,IJSStreamFilterDataEvent)
  53639. Protected
  53640. function _Getdata: IJSArrayBuffer;
  53641. Public
  53642. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSStreamFilterDataEventInit); overload;
  53643. constructor Create(const aType_: UnicodeString); overload;
  53644. class function JSClassName: UnicodeString; override;
  53645. class function Cast(const Intf: IJSObject): IJSStreamFilterDataEvent;
  53646. property data: IJSArrayBuffer read _Getdata;
  53647. end;
  53648. { --------------------------------------------------------------------
  53649. TJSSubmitEvent
  53650. --------------------------------------------------------------------}
  53651. IJSSubmitEvent = interface(IJSEvent)
  53652. ['{B23AAA6E-1D1E-3EC1-B900-07A433E8DA59}']
  53653. function _Getsubmitter: IJSHTMLElement;
  53654. property submitter: IJSHTMLElement read _Getsubmitter;
  53655. end;
  53656. TJSSubmitEvent = class(TJSEvent,IJSSubmitEvent)
  53657. Protected
  53658. function _Getsubmitter: IJSHTMLElement;
  53659. Public
  53660. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSSubmitEventInit); overload;
  53661. constructor Create(const aType_: UnicodeString); overload;
  53662. class function JSClassName: UnicodeString; override;
  53663. class function Cast(const Intf: IJSObject): IJSSubmitEvent;
  53664. property submitter: IJSHTMLElement read _Getsubmitter;
  53665. end;
  53666. { --------------------------------------------------------------------
  53667. TJSSVGPathSegClosePath
  53668. --------------------------------------------------------------------}
  53669. IJSSVGPathSegClosePath = interface(IJSSVGPathSeg)
  53670. ['{7D9DAF47-924F-31D9-8F3B-7B5AA3AB901A}']
  53671. end;
  53672. TJSSVGPathSegClosePath = class(TJSSVGPathSeg,IJSSVGPathSegClosePath)
  53673. Protected
  53674. Public
  53675. class function JSClassName: UnicodeString; override;
  53676. class function Cast(const Intf: IJSObject): IJSSVGPathSegClosePath;
  53677. end;
  53678. { --------------------------------------------------------------------
  53679. TJSSVGPathSegMovetoAbs
  53680. --------------------------------------------------------------------}
  53681. IJSSVGPathSegMovetoAbs = interface(IJSSVGPathSeg)
  53682. ['{1A439E6C-F1FC-37C9-9CA2-0F569AD79079}']
  53683. function _Getx: Single;
  53684. function _Gety: Single;
  53685. procedure _Setx(const aValue: Single);
  53686. procedure _Sety(const aValue: Single);
  53687. property x: Single read _Getx write _Setx;
  53688. property y: Single read _Gety write _Sety;
  53689. end;
  53690. TJSSVGPathSegMovetoAbs = class(TJSSVGPathSeg,IJSSVGPathSegMovetoAbs)
  53691. Protected
  53692. function _Getx: Single;
  53693. function _Gety: Single;
  53694. procedure _Setx(const aValue: Single);
  53695. procedure _Sety(const aValue: Single);
  53696. Public
  53697. class function JSClassName: UnicodeString; override;
  53698. class function Cast(const Intf: IJSObject): IJSSVGPathSegMovetoAbs;
  53699. property x: Single read _Getx write _Setx;
  53700. property y: Single read _Gety write _Sety;
  53701. end;
  53702. { --------------------------------------------------------------------
  53703. TJSSVGPathSegMovetoRel
  53704. --------------------------------------------------------------------}
  53705. IJSSVGPathSegMovetoRel = interface(IJSSVGPathSeg)
  53706. ['{1A439E6C-F1FC-37C9-9CA2-0F57AA3B9079}']
  53707. function _Getx: Single;
  53708. function _Gety: Single;
  53709. procedure _Setx(const aValue: Single);
  53710. procedure _Sety(const aValue: Single);
  53711. property x: Single read _Getx write _Setx;
  53712. property y: Single read _Gety write _Sety;
  53713. end;
  53714. TJSSVGPathSegMovetoRel = class(TJSSVGPathSeg,IJSSVGPathSegMovetoRel)
  53715. Protected
  53716. function _Getx: Single;
  53717. function _Gety: Single;
  53718. procedure _Setx(const aValue: Single);
  53719. procedure _Sety(const aValue: Single);
  53720. Public
  53721. class function JSClassName: UnicodeString; override;
  53722. class function Cast(const Intf: IJSObject): IJSSVGPathSegMovetoRel;
  53723. property x: Single read _Getx write _Setx;
  53724. property y: Single read _Gety write _Sety;
  53725. end;
  53726. { --------------------------------------------------------------------
  53727. TJSSVGPathSegLinetoAbs
  53728. --------------------------------------------------------------------}
  53729. IJSSVGPathSegLinetoAbs = interface(IJSSVGPathSeg)
  53730. ['{1A439E6C-F1FC-37C9-98DA-0F569AD79079}']
  53731. function _Getx: Single;
  53732. function _Gety: Single;
  53733. procedure _Setx(const aValue: Single);
  53734. procedure _Sety(const aValue: Single);
  53735. property x: Single read _Getx write _Setx;
  53736. property y: Single read _Gety write _Sety;
  53737. end;
  53738. TJSSVGPathSegLinetoAbs = class(TJSSVGPathSeg,IJSSVGPathSegLinetoAbs)
  53739. Protected
  53740. function _Getx: Single;
  53741. function _Gety: Single;
  53742. procedure _Setx(const aValue: Single);
  53743. procedure _Sety(const aValue: Single);
  53744. Public
  53745. class function JSClassName: UnicodeString; override;
  53746. class function Cast(const Intf: IJSObject): IJSSVGPathSegLinetoAbs;
  53747. property x: Single read _Getx write _Setx;
  53748. property y: Single read _Gety write _Sety;
  53749. end;
  53750. { --------------------------------------------------------------------
  53751. TJSSVGPathSegLinetoRel
  53752. --------------------------------------------------------------------}
  53753. IJSSVGPathSegLinetoRel = interface(IJSSVGPathSeg)
  53754. ['{1A439E6C-F1FC-37C9-98DA-0F57AA3B9079}']
  53755. function _Getx: Single;
  53756. function _Gety: Single;
  53757. procedure _Setx(const aValue: Single);
  53758. procedure _Sety(const aValue: Single);
  53759. property x: Single read _Getx write _Setx;
  53760. property y: Single read _Gety write _Sety;
  53761. end;
  53762. TJSSVGPathSegLinetoRel = class(TJSSVGPathSeg,IJSSVGPathSegLinetoRel)
  53763. Protected
  53764. function _Getx: Single;
  53765. function _Gety: Single;
  53766. procedure _Setx(const aValue: Single);
  53767. procedure _Sety(const aValue: Single);
  53768. Public
  53769. class function JSClassName: UnicodeString; override;
  53770. class function Cast(const Intf: IJSObject): IJSSVGPathSegLinetoRel;
  53771. property x: Single read _Getx write _Setx;
  53772. property y: Single read _Gety write _Sety;
  53773. end;
  53774. { --------------------------------------------------------------------
  53775. TJSSVGPathSegCurvetoCubicAbs
  53776. --------------------------------------------------------------------}
  53777. IJSSVGPathSegCurvetoCubicAbs = interface(IJSSVGPathSeg)
  53778. ['{13F74DAC-FCD3-38E4-B555-2ED35D3E8485}']
  53779. function _Getx: Single;
  53780. function _Gety: Single;
  53781. function _Getx1: Single;
  53782. function _Gety1: Single;
  53783. function _Getx2: Single;
  53784. function _Gety2: Single;
  53785. procedure _Setx(const aValue: Single);
  53786. procedure _Sety(const aValue: Single);
  53787. procedure _Setx1(const aValue: Single);
  53788. procedure _Sety1(const aValue: Single);
  53789. procedure _Setx2(const aValue: Single);
  53790. procedure _Sety2(const aValue: Single);
  53791. property x: Single read _Getx write _Setx;
  53792. property y: Single read _Gety write _Sety;
  53793. property x1: Single read _Getx1 write _Setx1;
  53794. property y1: Single read _Gety1 write _Sety1;
  53795. property x2: Single read _Getx2 write _Setx2;
  53796. property y2: Single read _Gety2 write _Sety2;
  53797. end;
  53798. TJSSVGPathSegCurvetoCubicAbs = class(TJSSVGPathSeg,IJSSVGPathSegCurvetoCubicAbs)
  53799. Protected
  53800. function _Getx: Single;
  53801. function _Gety: Single;
  53802. function _Getx1: Single;
  53803. function _Gety1: Single;
  53804. function _Getx2: Single;
  53805. function _Gety2: Single;
  53806. procedure _Setx(const aValue: Single);
  53807. procedure _Sety(const aValue: Single);
  53808. procedure _Setx1(const aValue: Single);
  53809. procedure _Sety1(const aValue: Single);
  53810. procedure _Setx2(const aValue: Single);
  53811. procedure _Sety2(const aValue: Single);
  53812. Public
  53813. class function JSClassName: UnicodeString; override;
  53814. class function Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoCubicAbs;
  53815. property x: Single read _Getx write _Setx;
  53816. property y: Single read _Gety write _Sety;
  53817. property x1: Single read _Getx1 write _Setx1;
  53818. property y1: Single read _Gety1 write _Sety1;
  53819. property x2: Single read _Getx2 write _Setx2;
  53820. property y2: Single read _Gety2 write _Sety2;
  53821. end;
  53822. { --------------------------------------------------------------------
  53823. TJSSVGPathSegCurvetoCubicRel
  53824. --------------------------------------------------------------------}
  53825. IJSSVGPathSegCurvetoCubicRel = interface(IJSSVGPathSeg)
  53826. ['{58874DAC-FCD3-38E4-B555-2ED35D3E8389}']
  53827. function _Getx: Single;
  53828. function _Gety: Single;
  53829. function _Getx1: Single;
  53830. function _Gety1: Single;
  53831. function _Getx2: Single;
  53832. function _Gety2: Single;
  53833. procedure _Setx(const aValue: Single);
  53834. procedure _Sety(const aValue: Single);
  53835. procedure _Setx1(const aValue: Single);
  53836. procedure _Sety1(const aValue: Single);
  53837. procedure _Setx2(const aValue: Single);
  53838. procedure _Sety2(const aValue: Single);
  53839. property x: Single read _Getx write _Setx;
  53840. property y: Single read _Gety write _Sety;
  53841. property x1: Single read _Getx1 write _Setx1;
  53842. property y1: Single read _Gety1 write _Sety1;
  53843. property x2: Single read _Getx2 write _Setx2;
  53844. property y2: Single read _Gety2 write _Sety2;
  53845. end;
  53846. TJSSVGPathSegCurvetoCubicRel = class(TJSSVGPathSeg,IJSSVGPathSegCurvetoCubicRel)
  53847. Protected
  53848. function _Getx: Single;
  53849. function _Gety: Single;
  53850. function _Getx1: Single;
  53851. function _Gety1: Single;
  53852. function _Getx2: Single;
  53853. function _Gety2: Single;
  53854. procedure _Setx(const aValue: Single);
  53855. procedure _Sety(const aValue: Single);
  53856. procedure _Setx1(const aValue: Single);
  53857. procedure _Sety1(const aValue: Single);
  53858. procedure _Setx2(const aValue: Single);
  53859. procedure _Sety2(const aValue: Single);
  53860. Public
  53861. class function JSClassName: UnicodeString; override;
  53862. class function Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoCubicRel;
  53863. property x: Single read _Getx write _Setx;
  53864. property y: Single read _Gety write _Sety;
  53865. property x1: Single read _Getx1 write _Setx1;
  53866. property y1: Single read _Gety1 write _Sety1;
  53867. property x2: Single read _Getx2 write _Setx2;
  53868. property y2: Single read _Gety2 write _Sety2;
  53869. end;
  53870. { --------------------------------------------------------------------
  53871. TJSSVGPathSegCurvetoQuadraticAbs
  53872. --------------------------------------------------------------------}
  53873. IJSSVGPathSegCurvetoQuadraticAbs = interface(IJSSVGPathSeg)
  53874. ['{789A277A-A56C-32A4-965F-6F517F3E1605}']
  53875. function _Getx: Single;
  53876. function _Gety: Single;
  53877. function _Getx1: Single;
  53878. function _Gety1: Single;
  53879. procedure _Setx(const aValue: Single);
  53880. procedure _Sety(const aValue: Single);
  53881. procedure _Setx1(const aValue: Single);
  53882. procedure _Sety1(const aValue: Single);
  53883. property x: Single read _Getx write _Setx;
  53884. property y: Single read _Gety write _Sety;
  53885. property x1: Single read _Getx1 write _Setx1;
  53886. property y1: Single read _Gety1 write _Sety1;
  53887. end;
  53888. TJSSVGPathSegCurvetoQuadraticAbs = class(TJSSVGPathSeg,IJSSVGPathSegCurvetoQuadraticAbs)
  53889. Protected
  53890. function _Getx: Single;
  53891. function _Gety: Single;
  53892. function _Getx1: Single;
  53893. function _Gety1: Single;
  53894. procedure _Setx(const aValue: Single);
  53895. procedure _Sety(const aValue: Single);
  53896. procedure _Setx1(const aValue: Single);
  53897. procedure _Sety1(const aValue: Single);
  53898. Public
  53899. class function JSClassName: UnicodeString; override;
  53900. class function Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoQuadraticAbs;
  53901. property x: Single read _Getx write _Setx;
  53902. property y: Single read _Gety write _Sety;
  53903. property x1: Single read _Getx1 write _Setx1;
  53904. property y1: Single read _Gety1 write _Sety1;
  53905. end;
  53906. { --------------------------------------------------------------------
  53907. TJSSVGPathSegCurvetoQuadraticRel
  53908. --------------------------------------------------------------------}
  53909. IJSSVGPathSegCurvetoQuadraticRel = interface(IJSSVGPathSeg)
  53910. ['{789A6BD3-A56C-32A4-965F-6F517F3E1605}']
  53911. function _Getx: Single;
  53912. function _Gety: Single;
  53913. function _Getx1: Single;
  53914. function _Gety1: Single;
  53915. procedure _Setx(const aValue: Single);
  53916. procedure _Sety(const aValue: Single);
  53917. procedure _Setx1(const aValue: Single);
  53918. procedure _Sety1(const aValue: Single);
  53919. property x: Single read _Getx write _Setx;
  53920. property y: Single read _Gety write _Sety;
  53921. property x1: Single read _Getx1 write _Setx1;
  53922. property y1: Single read _Gety1 write _Sety1;
  53923. end;
  53924. TJSSVGPathSegCurvetoQuadraticRel = class(TJSSVGPathSeg,IJSSVGPathSegCurvetoQuadraticRel)
  53925. Protected
  53926. function _Getx: Single;
  53927. function _Gety: Single;
  53928. function _Getx1: Single;
  53929. function _Gety1: Single;
  53930. procedure _Setx(const aValue: Single);
  53931. procedure _Sety(const aValue: Single);
  53932. procedure _Setx1(const aValue: Single);
  53933. procedure _Sety1(const aValue: Single);
  53934. Public
  53935. class function JSClassName: UnicodeString; override;
  53936. class function Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoQuadraticRel;
  53937. property x: Single read _Getx write _Setx;
  53938. property y: Single read _Gety write _Sety;
  53939. property x1: Single read _Getx1 write _Setx1;
  53940. property y1: Single read _Gety1 write _Sety1;
  53941. end;
  53942. { --------------------------------------------------------------------
  53943. TJSSVGPathSegArcAbs
  53944. --------------------------------------------------------------------}
  53945. IJSSVGPathSegArcAbs = interface(IJSSVGPathSeg)
  53946. ['{A29323F1-50E8-3403-88AC-6B127C576CFA}']
  53947. function _Getx: Single;
  53948. function _Gety: Single;
  53949. function _Getr1: Single;
  53950. function _Getr2: Single;
  53951. function _Getangle: Single;
  53952. function _GetlargeArcFlag: Boolean;
  53953. function _GetsweepFlag: Boolean;
  53954. procedure _Setx(const aValue: Single);
  53955. procedure _Sety(const aValue: Single);
  53956. procedure _Setr1(const aValue: Single);
  53957. procedure _Setr2(const aValue: Single);
  53958. procedure _Setangle(const aValue: Single);
  53959. procedure _SetlargeArcFlag(const aValue: Boolean);
  53960. procedure _SetsweepFlag(const aValue: Boolean);
  53961. property x: Single read _Getx write _Setx;
  53962. property y: Single read _Gety write _Sety;
  53963. property r1: Single read _Getr1 write _Setr1;
  53964. property r2: Single read _Getr2 write _Setr2;
  53965. property angle: Single read _Getangle write _Setangle;
  53966. property largeArcFlag: Boolean read _GetlargeArcFlag write _SetlargeArcFlag;
  53967. property sweepFlag: Boolean read _GetsweepFlag write _SetsweepFlag;
  53968. end;
  53969. TJSSVGPathSegArcAbs = class(TJSSVGPathSeg,IJSSVGPathSegArcAbs)
  53970. Protected
  53971. function _Getx: Single;
  53972. function _Gety: Single;
  53973. function _Getr1: Single;
  53974. function _Getr2: Single;
  53975. function _Getangle: Single;
  53976. function _GetlargeArcFlag: Boolean;
  53977. function _GetsweepFlag: Boolean;
  53978. procedure _Setx(const aValue: Single);
  53979. procedure _Sety(const aValue: Single);
  53980. procedure _Setr1(const aValue: Single);
  53981. procedure _Setr2(const aValue: Single);
  53982. procedure _Setangle(const aValue: Single);
  53983. procedure _SetlargeArcFlag(const aValue: Boolean);
  53984. procedure _SetsweepFlag(const aValue: Boolean);
  53985. Public
  53986. class function JSClassName: UnicodeString; override;
  53987. class function Cast(const Intf: IJSObject): IJSSVGPathSegArcAbs;
  53988. property x: Single read _Getx write _Setx;
  53989. property y: Single read _Gety write _Sety;
  53990. property r1: Single read _Getr1 write _Setr1;
  53991. property r2: Single read _Getr2 write _Setr2;
  53992. property angle: Single read _Getangle write _Setangle;
  53993. property largeArcFlag: Boolean read _GetlargeArcFlag write _SetlargeArcFlag;
  53994. property sweepFlag: Boolean read _GetsweepFlag write _SetsweepFlag;
  53995. end;
  53996. { --------------------------------------------------------------------
  53997. TJSSVGPathSegArcRel
  53998. --------------------------------------------------------------------}
  53999. IJSSVGPathSegArcRel = interface(IJSSVGPathSeg)
  54000. ['{A29323F1-50E8-3403-88AB-F3C47C576CFA}']
  54001. function _Getx: Single;
  54002. function _Gety: Single;
  54003. function _Getr1: Single;
  54004. function _Getr2: Single;
  54005. function _Getangle: Single;
  54006. function _GetlargeArcFlag: Boolean;
  54007. function _GetsweepFlag: Boolean;
  54008. procedure _Setx(const aValue: Single);
  54009. procedure _Sety(const aValue: Single);
  54010. procedure _Setr1(const aValue: Single);
  54011. procedure _Setr2(const aValue: Single);
  54012. procedure _Setangle(const aValue: Single);
  54013. procedure _SetlargeArcFlag(const aValue: Boolean);
  54014. procedure _SetsweepFlag(const aValue: Boolean);
  54015. property x: Single read _Getx write _Setx;
  54016. property y: Single read _Gety write _Sety;
  54017. property r1: Single read _Getr1 write _Setr1;
  54018. property r2: Single read _Getr2 write _Setr2;
  54019. property angle: Single read _Getangle write _Setangle;
  54020. property largeArcFlag: Boolean read _GetlargeArcFlag write _SetlargeArcFlag;
  54021. property sweepFlag: Boolean read _GetsweepFlag write _SetsweepFlag;
  54022. end;
  54023. TJSSVGPathSegArcRel = class(TJSSVGPathSeg,IJSSVGPathSegArcRel)
  54024. Protected
  54025. function _Getx: Single;
  54026. function _Gety: Single;
  54027. function _Getr1: Single;
  54028. function _Getr2: Single;
  54029. function _Getangle: Single;
  54030. function _GetlargeArcFlag: Boolean;
  54031. function _GetsweepFlag: Boolean;
  54032. procedure _Setx(const aValue: Single);
  54033. procedure _Sety(const aValue: Single);
  54034. procedure _Setr1(const aValue: Single);
  54035. procedure _Setr2(const aValue: Single);
  54036. procedure _Setangle(const aValue: Single);
  54037. procedure _SetlargeArcFlag(const aValue: Boolean);
  54038. procedure _SetsweepFlag(const aValue: Boolean);
  54039. Public
  54040. class function JSClassName: UnicodeString; override;
  54041. class function Cast(const Intf: IJSObject): IJSSVGPathSegArcRel;
  54042. property x: Single read _Getx write _Setx;
  54043. property y: Single read _Gety write _Sety;
  54044. property r1: Single read _Getr1 write _Setr1;
  54045. property r2: Single read _Getr2 write _Setr2;
  54046. property angle: Single read _Getangle write _Setangle;
  54047. property largeArcFlag: Boolean read _GetlargeArcFlag write _SetlargeArcFlag;
  54048. property sweepFlag: Boolean read _GetsweepFlag write _SetsweepFlag;
  54049. end;
  54050. { --------------------------------------------------------------------
  54051. TJSSVGPathSegLinetoHorizontalAbs
  54052. --------------------------------------------------------------------}
  54053. IJSSVGPathSegLinetoHorizontalAbs = interface(IJSSVGPathSeg)
  54054. ['{F8CEBE1B-8517-3A06-8B5F-9246E4E848A6}']
  54055. function _Getx: Single;
  54056. procedure _Setx(const aValue: Single);
  54057. property x: Single read _Getx write _Setx;
  54058. end;
  54059. TJSSVGPathSegLinetoHorizontalAbs = class(TJSSVGPathSeg,IJSSVGPathSegLinetoHorizontalAbs)
  54060. Protected
  54061. function _Getx: Single;
  54062. procedure _Setx(const aValue: Single);
  54063. Public
  54064. class function JSClassName: UnicodeString; override;
  54065. class function Cast(const Intf: IJSObject): IJSSVGPathSegLinetoHorizontalAbs;
  54066. property x: Single read _Getx write _Setx;
  54067. end;
  54068. { --------------------------------------------------------------------
  54069. TJSSVGPathSegLinetoHorizontalRel
  54070. --------------------------------------------------------------------}
  54071. IJSSVGPathSegLinetoHorizontalRel = interface(IJSSVGPathSeg)
  54072. ['{F8CE0274-8517-3A06-8B5F-9246E4E848A6}']
  54073. function _Getx: Single;
  54074. procedure _Setx(const aValue: Single);
  54075. property x: Single read _Getx write _Setx;
  54076. end;
  54077. TJSSVGPathSegLinetoHorizontalRel = class(TJSSVGPathSeg,IJSSVGPathSegLinetoHorizontalRel)
  54078. Protected
  54079. function _Getx: Single;
  54080. procedure _Setx(const aValue: Single);
  54081. Public
  54082. class function JSClassName: UnicodeString; override;
  54083. class function Cast(const Intf: IJSObject): IJSSVGPathSegLinetoHorizontalRel;
  54084. property x: Single read _Getx write _Setx;
  54085. end;
  54086. { --------------------------------------------------------------------
  54087. TJSSVGPathSegLinetoVerticalAbs
  54088. --------------------------------------------------------------------}
  54089. IJSSVGPathSegLinetoVerticalAbs = interface(IJSSVGPathSeg)
  54090. ['{EAC432B6-DB8A-35C7-83BF-DA98E80C35F9}']
  54091. function _Gety: Single;
  54092. procedure _Sety(const aValue: Single);
  54093. property y: Single read _Gety write _Sety;
  54094. end;
  54095. TJSSVGPathSegLinetoVerticalAbs = class(TJSSVGPathSeg,IJSSVGPathSegLinetoVerticalAbs)
  54096. Protected
  54097. function _Gety: Single;
  54098. procedure _Sety(const aValue: Single);
  54099. Public
  54100. class function JSClassName: UnicodeString; override;
  54101. class function Cast(const Intf: IJSObject): IJSSVGPathSegLinetoVerticalAbs;
  54102. property y: Single read _Gety write _Sety;
  54103. end;
  54104. { --------------------------------------------------------------------
  54105. TJSSVGPathSegLinetoVerticalRel
  54106. --------------------------------------------------------------------}
  54107. IJSSVGPathSegLinetoVerticalRel = interface(IJSSVGPathSeg)
  54108. ['{EBD696B6-DB8A-35C7-83BF-DA98E80C35F9}']
  54109. function _Gety: Single;
  54110. procedure _Sety(const aValue: Single);
  54111. property y: Single read _Gety write _Sety;
  54112. end;
  54113. TJSSVGPathSegLinetoVerticalRel = class(TJSSVGPathSeg,IJSSVGPathSegLinetoVerticalRel)
  54114. Protected
  54115. function _Gety: Single;
  54116. procedure _Sety(const aValue: Single);
  54117. Public
  54118. class function JSClassName: UnicodeString; override;
  54119. class function Cast(const Intf: IJSObject): IJSSVGPathSegLinetoVerticalRel;
  54120. property y: Single read _Gety write _Sety;
  54121. end;
  54122. { --------------------------------------------------------------------
  54123. TJSSVGPathSegCurvetoCubicSmoothAbs
  54124. --------------------------------------------------------------------}
  54125. IJSSVGPathSegCurvetoCubicSmoothAbs = interface(IJSSVGPathSeg)
  54126. ['{90CA21B6-B50B-35AB-A73F-DA15D6776090}']
  54127. function _Getx: Single;
  54128. function _Gety: Single;
  54129. function _Getx2: Single;
  54130. function _Gety2: Single;
  54131. procedure _Setx(const aValue: Single);
  54132. procedure _Sety(const aValue: Single);
  54133. procedure _Setx2(const aValue: Single);
  54134. procedure _Sety2(const aValue: Single);
  54135. property x: Single read _Getx write _Setx;
  54136. property y: Single read _Gety write _Sety;
  54137. property x2: Single read _Getx2 write _Setx2;
  54138. property y2: Single read _Gety2 write _Sety2;
  54139. end;
  54140. TJSSVGPathSegCurvetoCubicSmoothAbs = class(TJSSVGPathSeg,IJSSVGPathSegCurvetoCubicSmoothAbs)
  54141. Protected
  54142. function _Getx: Single;
  54143. function _Gety: Single;
  54144. function _Getx2: Single;
  54145. function _Gety2: Single;
  54146. procedure _Setx(const aValue: Single);
  54147. procedure _Sety(const aValue: Single);
  54148. procedure _Setx2(const aValue: Single);
  54149. procedure _Sety2(const aValue: Single);
  54150. Public
  54151. class function JSClassName: UnicodeString; override;
  54152. class function Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoCubicSmoothAbs;
  54153. property x: Single read _Getx write _Setx;
  54154. property y: Single read _Gety write _Sety;
  54155. property x2: Single read _Getx2 write _Setx2;
  54156. property y2: Single read _Gety2 write _Sety2;
  54157. end;
  54158. { --------------------------------------------------------------------
  54159. TJSSVGPathSegCurvetoCubicSmoothRel
  54160. --------------------------------------------------------------------}
  54161. IJSSVGPathSegCurvetoCubicSmoothRel = interface(IJSSVGPathSeg)
  54162. ['{90CA21C7-CB4B-35AB-A73F-DA15D6776090}']
  54163. function _Getx: Single;
  54164. function _Gety: Single;
  54165. function _Getx2: Single;
  54166. function _Gety2: Single;
  54167. procedure _Setx(const aValue: Single);
  54168. procedure _Sety(const aValue: Single);
  54169. procedure _Setx2(const aValue: Single);
  54170. procedure _Sety2(const aValue: Single);
  54171. property x: Single read _Getx write _Setx;
  54172. property y: Single read _Gety write _Sety;
  54173. property x2: Single read _Getx2 write _Setx2;
  54174. property y2: Single read _Gety2 write _Sety2;
  54175. end;
  54176. TJSSVGPathSegCurvetoCubicSmoothRel = class(TJSSVGPathSeg,IJSSVGPathSegCurvetoCubicSmoothRel)
  54177. Protected
  54178. function _Getx: Single;
  54179. function _Gety: Single;
  54180. function _Getx2: Single;
  54181. function _Gety2: Single;
  54182. procedure _Setx(const aValue: Single);
  54183. procedure _Sety(const aValue: Single);
  54184. procedure _Setx2(const aValue: Single);
  54185. procedure _Sety2(const aValue: Single);
  54186. Public
  54187. class function JSClassName: UnicodeString; override;
  54188. class function Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoCubicSmoothRel;
  54189. property x: Single read _Getx write _Setx;
  54190. property y: Single read _Gety write _Sety;
  54191. property x2: Single read _Getx2 write _Setx2;
  54192. property y2: Single read _Gety2 write _Sety2;
  54193. end;
  54194. { --------------------------------------------------------------------
  54195. TJSSVGPathSegCurvetoQuadraticSmoothAbs
  54196. --------------------------------------------------------------------}
  54197. IJSSVGPathSegCurvetoQuadraticSmoothAbs = interface(IJSSVGPathSeg)
  54198. ['{E2310F81-BF02-355A-AA8D-89455CA614EA}']
  54199. function _Getx: Single;
  54200. function _Gety: Single;
  54201. procedure _Setx(const aValue: Single);
  54202. procedure _Sety(const aValue: Single);
  54203. property x: Single read _Getx write _Setx;
  54204. property y: Single read _Gety write _Sety;
  54205. end;
  54206. TJSSVGPathSegCurvetoQuadraticSmoothAbs = class(TJSSVGPathSeg,IJSSVGPathSegCurvetoQuadraticSmoothAbs)
  54207. Protected
  54208. function _Getx: Single;
  54209. function _Gety: Single;
  54210. procedure _Setx(const aValue: Single);
  54211. procedure _Sety(const aValue: Single);
  54212. Public
  54213. class function JSClassName: UnicodeString; override;
  54214. class function Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoQuadraticSmoothAbs;
  54215. property x: Single read _Getx write _Setx;
  54216. property y: Single read _Gety write _Sety;
  54217. end;
  54218. { --------------------------------------------------------------------
  54219. TJSSVGPathSegCurvetoQuadraticSmoothRel
  54220. --------------------------------------------------------------------}
  54221. IJSSVGPathSegCurvetoQuadraticSmoothRel = interface(IJSSVGPathSeg)
  54222. ['{E2310F81-BF03-38BE-AA8D-89455CA614EA}']
  54223. function _Getx: Single;
  54224. function _Gety: Single;
  54225. procedure _Setx(const aValue: Single);
  54226. procedure _Sety(const aValue: Single);
  54227. property x: Single read _Getx write _Setx;
  54228. property y: Single read _Gety write _Sety;
  54229. end;
  54230. TJSSVGPathSegCurvetoQuadraticSmoothRel = class(TJSSVGPathSeg,IJSSVGPathSegCurvetoQuadraticSmoothRel)
  54231. Protected
  54232. function _Getx: Single;
  54233. function _Gety: Single;
  54234. procedure _Setx(const aValue: Single);
  54235. procedure _Sety(const aValue: Single);
  54236. Public
  54237. class function JSClassName: UnicodeString; override;
  54238. class function Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoQuadraticSmoothRel;
  54239. property x: Single read _Getx write _Setx;
  54240. property y: Single read _Gety write _Sety;
  54241. end;
  54242. { --------------------------------------------------------------------
  54243. TJSTaskPriorityChangeEvent
  54244. --------------------------------------------------------------------}
  54245. IJSTaskPriorityChangeEvent = interface(IJSEvent)
  54246. ['{DA9BF9C5-4E26-3CDF-8C73-73A17D702B68}']
  54247. function _GetpreviousPriority: TTaskPriority;
  54248. property previousPriority: TTaskPriority read _GetpreviousPriority;
  54249. end;
  54250. TJSTaskPriorityChangeEvent = class(TJSEvent,IJSTaskPriorityChangeEvent)
  54251. Protected
  54252. function _GetpreviousPriority: TTaskPriority;
  54253. Public
  54254. constructor Create(const aType_: UnicodeString; const aPriorityChangeEventInitDict: TJSTaskPriorityChangeEventInit); overload;
  54255. class function JSClassName: UnicodeString; override;
  54256. class function Cast(const Intf: IJSObject): IJSTaskPriorityChangeEvent;
  54257. property previousPriority: TTaskPriority read _GetpreviousPriority;
  54258. end;
  54259. { --------------------------------------------------------------------
  54260. TJSTCPServerSocket
  54261. --------------------------------------------------------------------}
  54262. IJSTCPServerSocket = interface(IJSEventTarget)
  54263. ['{C9129474-C57F-37E5-80FF-475A69038DF0}']
  54264. function _GetlocalPort: Word;
  54265. function _Getonconnect: TEventHandler;
  54266. function _Getonerror: TEventHandler;
  54267. procedure _Setonconnect(const aValue: TEventHandler);
  54268. procedure _Setonerror(const aValue: TEventHandler);
  54269. procedure close;
  54270. property localPort: Word read _GetlocalPort;
  54271. property onconnect: TEventHandler read _Getonconnect write _Setonconnect;
  54272. property onerror: TEventHandler read _Getonerror write _Setonerror;
  54273. end;
  54274. TJSTCPServerSocket = class(TJSEventTarget,IJSTCPServerSocket)
  54275. Protected
  54276. function _GetlocalPort: Word;
  54277. function _Getonconnect: TEventHandler;
  54278. function _Getonerror: TEventHandler;
  54279. procedure _Setonconnect(const aValue: TEventHandler);
  54280. procedure _Setonerror(const aValue: TEventHandler);
  54281. Public
  54282. constructor Create(aPort: Word; const aOptions: TJSServerSocketOptions; aBacklog: Word); overload;
  54283. constructor Create(aPort: Word); overload;
  54284. constructor Create(aPort: Word; const aOptions: TJSServerSocketOptions); overload;
  54285. procedure close; overload;
  54286. class function JSClassName: UnicodeString; override;
  54287. class function Cast(const Intf: IJSObject): IJSTCPServerSocket;
  54288. property localPort: Word read _GetlocalPort;
  54289. property onconnect: TEventHandler read _Getonconnect write _Setonconnect;
  54290. property onerror: TEventHandler read _Getonerror write _Setonerror;
  54291. end;
  54292. { --------------------------------------------------------------------
  54293. TJSTCPServerSocketEvent
  54294. --------------------------------------------------------------------}
  54295. IJSTCPServerSocketEvent = interface(IJSEvent)
  54296. ['{9A5EC91F-1291-3F3E-9EBC-68E6C714E60F}']
  54297. function _Getsocket: IJSTCPSocket;
  54298. property socket: IJSTCPSocket read _Getsocket;
  54299. end;
  54300. TJSTCPServerSocketEvent = class(TJSEvent,IJSTCPServerSocketEvent)
  54301. Protected
  54302. function _Getsocket: IJSTCPSocket;
  54303. Public
  54304. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSTCPServerSocketEventInit); overload;
  54305. constructor Create(const aType_: UnicodeString); overload;
  54306. class function JSClassName: UnicodeString; override;
  54307. class function Cast(const Intf: IJSObject): IJSTCPServerSocketEvent;
  54308. property socket: IJSTCPSocket read _Getsocket;
  54309. end;
  54310. { --------------------------------------------------------------------
  54311. TJSTCPSocket
  54312. --------------------------------------------------------------------}
  54313. IJSTCPSocket = interface(IJSEventTarget)
  54314. ['{149DD817-8158-3B0F-B185-F8B1A7B4BDA0}']
  54315. function _Gettransport: IJSnsISocketTransport;
  54316. function _Gethost: UnicodeString;
  54317. function _Getport: Word;
  54318. function _Getssl: Boolean;
  54319. function _GetbufferedAmount: QWord;
  54320. function _GetreadyState: TTCPReadyState;
  54321. function _GetbinaryType: TTCPSocketBinaryType;
  54322. function _Getonopen: TEventHandler;
  54323. function _Getondrain: TEventHandler;
  54324. function _Getondata: TEventHandler;
  54325. function _Getonerror: TEventHandler;
  54326. function _Getonclose: TEventHandler;
  54327. procedure _Setonopen(const aValue: TEventHandler);
  54328. procedure _Setondrain(const aValue: TEventHandler);
  54329. procedure _Setondata(const aValue: TEventHandler);
  54330. procedure _Setonerror(const aValue: TEventHandler);
  54331. procedure _Setonclose(const aValue: TEventHandler);
  54332. procedure upgradeToSecure;
  54333. procedure suspend;
  54334. procedure resume;
  54335. procedure close;
  54336. function send(const aData: UnicodeString): Boolean;
  54337. function send(aData: IJSArrayBuffer; aByteOffset: Cardinal; aByteLength: Cardinal): Boolean;
  54338. function send(aData: IJSArrayBuffer): Boolean;
  54339. function send(aData: IJSArrayBuffer; aByteOffset: Cardinal): Boolean;
  54340. property transport: IJSnsISocketTransport read _Gettransport;
  54341. property host: UnicodeString read _Gethost;
  54342. property port: Word read _Getport;
  54343. property ssl: Boolean read _Getssl;
  54344. property bufferedAmount: QWord read _GetbufferedAmount;
  54345. property readyState: TTCPReadyState read _GetreadyState;
  54346. property binaryType: TTCPSocketBinaryType read _GetbinaryType;
  54347. property onopen: TEventHandler read _Getonopen write _Setonopen;
  54348. property ondrain: TEventHandler read _Getondrain write _Setondrain;
  54349. property ondata: TEventHandler read _Getondata write _Setondata;
  54350. property onerror: TEventHandler read _Getonerror write _Setonerror;
  54351. property onclose: TEventHandler read _Getonclose write _Setonclose;
  54352. end;
  54353. TJSTCPSocket = class(TJSEventTarget,IJSTCPSocket)
  54354. Protected
  54355. function _Gettransport: IJSnsISocketTransport;
  54356. function _Gethost: UnicodeString;
  54357. function _Getport: Word;
  54358. function _Getssl: Boolean;
  54359. function _GetbufferedAmount: QWord;
  54360. function _GetreadyState: TTCPReadyState;
  54361. function _GetbinaryType: TTCPSocketBinaryType;
  54362. function _Getonopen: TEventHandler;
  54363. function _Getondrain: TEventHandler;
  54364. function _Getondata: TEventHandler;
  54365. function _Getonerror: TEventHandler;
  54366. function _Getonclose: TEventHandler;
  54367. procedure _Setonopen(const aValue: TEventHandler);
  54368. procedure _Setondrain(const aValue: TEventHandler);
  54369. procedure _Setondata(const aValue: TEventHandler);
  54370. procedure _Setonerror(const aValue: TEventHandler);
  54371. procedure _Setonclose(const aValue: TEventHandler);
  54372. Public
  54373. constructor Create(const aHost: UnicodeString; aPort: Word; const aOptions: TJSSocketOptions); overload;
  54374. constructor Create(const aHost: UnicodeString; aPort: Word); overload;
  54375. procedure upgradeToSecure; overload;
  54376. procedure suspend; overload;
  54377. procedure resume; overload;
  54378. procedure close; overload;
  54379. function send(const aData: UnicodeString): Boolean; overload;
  54380. function send(aData: IJSArrayBuffer; aByteOffset: Cardinal; aByteLength: Cardinal): Boolean; overload;
  54381. function send(aData: IJSArrayBuffer): Boolean; overload;
  54382. function send(aData: IJSArrayBuffer; aByteOffset: Cardinal): Boolean; overload;
  54383. class function JSClassName: UnicodeString; override;
  54384. class function Cast(const Intf: IJSObject): IJSTCPSocket;
  54385. property transport: IJSnsISocketTransport read _Gettransport;
  54386. property host: UnicodeString read _Gethost;
  54387. property port: Word read _Getport;
  54388. property ssl: Boolean read _Getssl;
  54389. property bufferedAmount: QWord read _GetbufferedAmount;
  54390. property readyState: TTCPReadyState read _GetreadyState;
  54391. property binaryType: TTCPSocketBinaryType read _GetbinaryType;
  54392. property onopen: TEventHandler read _Getonopen write _Setonopen;
  54393. property ondrain: TEventHandler read _Getondrain write _Setondrain;
  54394. property ondata: TEventHandler read _Getondata write _Setondata;
  54395. property onerror: TEventHandler read _Getonerror write _Setonerror;
  54396. property onclose: TEventHandler read _Getonclose write _Setonclose;
  54397. end;
  54398. { --------------------------------------------------------------------
  54399. TJSTCPSocketErrorEvent
  54400. --------------------------------------------------------------------}
  54401. IJSTCPSocketErrorEvent = interface(IJSEvent)
  54402. ['{24CECD5D-C2CF-3742-A844-3842FE863806}']
  54403. function _Getname: UnicodeString;
  54404. function _Getmessage: UnicodeString;
  54405. function _GeterrorCode: Cardinal;
  54406. property name: UnicodeString read _Getname;
  54407. property message: UnicodeString read _Getmessage;
  54408. property errorCode: Cardinal read _GeterrorCode;
  54409. end;
  54410. TJSTCPSocketErrorEvent = class(TJSEvent,IJSTCPSocketErrorEvent)
  54411. Protected
  54412. function _Getname: UnicodeString;
  54413. function _Getmessage: UnicodeString;
  54414. function _GeterrorCode: Cardinal;
  54415. Public
  54416. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSTCPSocketErrorEventInit); overload;
  54417. constructor Create(const aType_: UnicodeString); overload;
  54418. class function JSClassName: UnicodeString; override;
  54419. class function Cast(const Intf: IJSObject): IJSTCPSocketErrorEvent;
  54420. property name: UnicodeString read _Getname;
  54421. property message: UnicodeString read _Getmessage;
  54422. property errorCode: Cardinal read _GeterrorCode;
  54423. end;
  54424. { --------------------------------------------------------------------
  54425. TJSTCPSocketEvent
  54426. --------------------------------------------------------------------}
  54427. IJSTCPSocketEvent = interface(IJSEvent)
  54428. ['{2E0D8A34-7864-3837-B087-71ECA8D4B84B}']
  54429. function _Getdata: Variant;
  54430. property data: Variant read _Getdata;
  54431. end;
  54432. TJSTCPSocketEvent = class(TJSEvent,IJSTCPSocketEvent)
  54433. Protected
  54434. function _Getdata: Variant;
  54435. Public
  54436. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSTCPSocketEventInit); overload;
  54437. constructor Create(const aType_: UnicodeString); overload;
  54438. class function JSClassName: UnicodeString; override;
  54439. class function Cast(const Intf: IJSObject): IJSTCPSocketEvent;
  54440. property data: Variant read _Getdata;
  54441. end;
  54442. { --------------------------------------------------------------------
  54443. TJSTestInterfaceJS
  54444. --------------------------------------------------------------------}
  54445. // Union of object, DOMString
  54446. TTestInterfaceJS_pingPongObjectOrString_objOrString_Type = Variant;
  54447. // Union of TestInterfaceJSUnionableDictionary, long
  54448. TTestInterfaceJS_pingPongDictionaryOrLong_dictOrLong_Type = Variant;
  54449. // Union of TestInterfaceJS, long
  54450. TTestInterfaceJS_pingPongUnion_Type = Variant;
  54451. // Union of TestInterfaceJS, long
  54452. TTestInterfaceJS_pingPongUnion_something_Type = Variant;
  54453. // Union of DOMString, TestInterfaceJS
  54454. TTestInterfaceJS_pingPongUnionContainingNull_Type = Variant;
  54455. // Union of TestInterfaceJS, DOMString
  54456. TTestInterfaceJS_pingPongUnionContainingNull_something_Type = Variant;
  54457. // Union of TestInterfaceJS, long
  54458. TTestInterfaceJS_pingPongNullableUnion_Type = Variant;
  54459. // Union of TestInterfaceJS, long
  54460. TTestInterfaceJS_pingPongNullableUnion_something_Type = Variant;
  54461. // Union of Location, TestInterfaceJS
  54462. TTestInterfaceJS_returnBadUnion_Type = Variant;
  54463. // Union of sequence, DOMString
  54464. TTestInterfaceJS_testSequenceUnion_arg_Type = Variant;
  54465. IJSTestInterfaceJS = interface(IJSEventTarget)
  54466. ['{21F8D9D3-D88F-3939-946B-FFFDF6C78902}']
  54467. function _GetanyArg: Variant;
  54468. function _GetobjectArg: IJSObject;
  54469. function _GetanyAttr: Variant;
  54470. function _GetobjectAttr: IJSObject;
  54471. function _Getonsomething: TEventHandler;
  54472. procedure _SetanyAttr(const aValue: Variant);
  54473. procedure _SetobjectAttr(const aValue: IJSObject);
  54474. procedure _Setonsomething(const aValue: TEventHandler);
  54475. function getDictionaryArg: TJSTestInterfaceJSDictionary;
  54476. function getDictionaryAttr: TJSTestInterfaceJSDictionary;
  54477. procedure setDictionaryAttr(const aDict: TJSTestInterfaceJSDictionary);
  54478. procedure setDictionaryAttr;
  54479. function pingPongAny(const aArg: Variant): Variant;
  54480. function pingPongObject(aObj: IJSObject): IJSObject;
  54481. function pingPongObjectOrString(const aObjOrString: UnicodeString): Variant;
  54482. function pingPongObjectOrString(aObjOrString: IJSObject): Variant;
  54483. function pingPongDictionary(const aDict: TJSTestInterfaceJSDictionary): TJSTestInterfaceJSDictionary;
  54484. function pingPongDictionary: TJSTestInterfaceJSDictionary;
  54485. function pingPongDictionaryOrLong(aDictOrLong: LongInt): LongInt;
  54486. function pingPongDictionaryOrLong: LongInt;
  54487. function pingPongDictionaryOrLong(const aDictOrLong: TJSTestInterfaceJSUnionableDictionary): LongInt;
  54488. function pingPongRecord(aRec: IJSObject): UnicodeString;
  54489. function objectSequenceLength(const aSeq: TIJSObjectDynArray): LongInt;
  54490. function anySequenceLength(const aSeq: TVariantDynArray): LongInt;
  54491. function getCallerPrincipal: UnicodeString;
  54492. function convertSVS(const aSvs: UnicodeString): UnicodeString;
  54493. function pingPongUnion(aSomething: LongInt): TTestInterfaceJS_pingPongUnion_Type;
  54494. function pingPongUnion(aSomething: IJSTestInterfaceJS): TTestInterfaceJS_pingPongUnion_Type;
  54495. function pingPongUnionContainingNull(const aSomething: UnicodeString): TTestInterfaceJS_pingPongUnionContainingNull_Type;
  54496. function pingPongUnionContainingNull(aSomething: IJSTestInterfaceJS): TTestInterfaceJS_pingPongUnionContainingNull_Type;
  54497. function pingPongNullableUnion(aSomething: LongInt): TTestInterfaceJS_pingPongNullableUnion_Type;
  54498. function pingPongNullableUnion(aSomething: IJSTestInterfaceJS): TTestInterfaceJS_pingPongNullableUnion_Type;
  54499. function returnBadUnion: TTestInterfaceJS_returnBadUnion_Type;
  54500. procedure testSequenceOverload(const aArg: TUnicodeStringDynArray);
  54501. procedure testSequenceOverload(const aArg: UnicodeString);
  54502. procedure testSequenceUnion(const aArg: UnicodeString);
  54503. procedure testSequenceUnion(const aArg: TUnicodeStringDynArray);
  54504. procedure testThrowError;
  54505. procedure testThrowDOMException;
  54506. procedure testThrowTypeError;
  54507. procedure testThrowCallbackError(const aCallback: TFunction);
  54508. procedure testThrowXraySelfHosted;
  54509. procedure testThrowSelfHosted;
  54510. function testPromiseWithThrowingChromePromiseInit: IJSPromise; // Promise<undefined>
  54511. function testPromiseWithThrowingContentPromiseInit(const aFunc: TFunction): IJSPromise; // Promise<undefined>
  54512. function testPromiseWithDOMExceptionThrowingPromiseInit: IJSPromise; // Promise<undefined>
  54513. function testPromiseWithThrowingChromeThenFunction: IJSPromise; // Promise<undefined>
  54514. function testPromiseWithThrowingContentThenFunction(const aFunc: TAnyCallback): IJSPromise; // Promise<undefined>
  54515. function testPromiseWithDOMExceptionThrowingThenFunction: IJSPromise; // Promise<undefined>
  54516. function testPromiseWithThrowingChromeThenable: IJSPromise; // Promise<undefined>
  54517. function testPromiseWithThrowingContentThenable(aThenable: IJSObject): IJSPromise; // Promise<undefined>
  54518. function testPromiseWithDOMExceptionThrowingThenable: IJSPromise; // Promise<undefined>
  54519. property anyArg: Variant read _GetanyArg;
  54520. property objectArg: IJSObject read _GetobjectArg;
  54521. property anyAttr: Variant read _GetanyAttr write _SetanyAttr;
  54522. property objectAttr: IJSObject read _GetobjectAttr write _SetobjectAttr;
  54523. property onsomething: TEventHandler read _Getonsomething write _Setonsomething;
  54524. end;
  54525. TJSTestInterfaceJS = class(TJSEventTarget,IJSTestInterfaceJS)
  54526. Protected
  54527. function _GetanyArg: Variant;
  54528. function _GetobjectArg: IJSObject;
  54529. function _GetanyAttr: Variant;
  54530. function _GetobjectAttr: IJSObject;
  54531. function _Getonsomething: TEventHandler;
  54532. procedure _SetanyAttr(const aValue: Variant);
  54533. procedure _SetobjectAttr(const aValue: IJSObject);
  54534. procedure _Setonsomething(const aValue: TEventHandler);
  54535. Public
  54536. constructor Create(const aAnyArg: Variant; aObjectArg: IJSObject; const aDictionaryArg: TJSTestInterfaceJSDictionary); overload;
  54537. constructor Create; overload;
  54538. constructor Create(const aAnyArg: Variant); overload;
  54539. constructor Create(const aAnyArg: Variant; aObjectArg: IJSObject); overload;
  54540. function getDictionaryArg: TJSTestInterfaceJSDictionary; overload;
  54541. function getDictionaryAttr: TJSTestInterfaceJSDictionary; overload;
  54542. procedure setDictionaryAttr(const aDict: TJSTestInterfaceJSDictionary); overload;
  54543. procedure setDictionaryAttr; overload;
  54544. function pingPongAny(const aArg: Variant): Variant; overload;
  54545. function pingPongObject(aObj: IJSObject): IJSObject; overload;
  54546. function pingPongObjectOrString(const aObjOrString: UnicodeString): Variant; overload;
  54547. function pingPongObjectOrString(aObjOrString: IJSObject): Variant; overload;
  54548. function pingPongDictionary(const aDict: TJSTestInterfaceJSDictionary): TJSTestInterfaceJSDictionary; overload;
  54549. function pingPongDictionary: TJSTestInterfaceJSDictionary; overload;
  54550. function pingPongDictionaryOrLong(aDictOrLong: LongInt): LongInt; overload;
  54551. function pingPongDictionaryOrLong: LongInt; overload;
  54552. function pingPongDictionaryOrLong(const aDictOrLong: TJSTestInterfaceJSUnionableDictionary): LongInt; overload;
  54553. function pingPongRecord(aRec: IJSObject): UnicodeString; overload;
  54554. function objectSequenceLength(const aSeq: TIJSObjectDynArray): LongInt; overload;
  54555. function anySequenceLength(const aSeq: TVariantDynArray): LongInt; overload;
  54556. function getCallerPrincipal: UnicodeString; overload;
  54557. function convertSVS(const aSvs: UnicodeString): UnicodeString; overload;
  54558. function pingPongUnion(aSomething: LongInt): TTestInterfaceJS_pingPongUnion_Type; overload;
  54559. function pingPongUnion(aSomething: IJSTestInterfaceJS): TTestInterfaceJS_pingPongUnion_Type; overload;
  54560. function pingPongUnionContainingNull(const aSomething: UnicodeString): TTestInterfaceJS_pingPongUnionContainingNull_Type; overload;
  54561. function pingPongUnionContainingNull(aSomething: IJSTestInterfaceJS): TTestInterfaceJS_pingPongUnionContainingNull_Type; overload;
  54562. function pingPongNullableUnion(aSomething: LongInt): TTestInterfaceJS_pingPongNullableUnion_Type; overload;
  54563. function pingPongNullableUnion(aSomething: IJSTestInterfaceJS): TTestInterfaceJS_pingPongNullableUnion_Type; overload;
  54564. function returnBadUnion: TTestInterfaceJS_returnBadUnion_Type; overload;
  54565. procedure testSequenceOverload(const aArg: TUnicodeStringDynArray); overload;
  54566. procedure testSequenceOverload(const aArg: UnicodeString); overload;
  54567. procedure testSequenceUnion(const aArg: UnicodeString); overload;
  54568. procedure testSequenceUnion(const aArg: TUnicodeStringDynArray); overload;
  54569. procedure testThrowError; overload;
  54570. procedure testThrowDOMException; overload;
  54571. procedure testThrowTypeError; overload;
  54572. procedure testThrowCallbackError(const aCallback: TFunction); overload;
  54573. procedure testThrowXraySelfHosted; overload;
  54574. procedure testThrowSelfHosted; overload;
  54575. function testPromiseWithThrowingChromePromiseInit: IJSPromise; overload; // Promise<undefined>
  54576. function testPromiseWithThrowingContentPromiseInit(const aFunc: TFunction): IJSPromise; overload; // Promise<undefined>
  54577. function testPromiseWithDOMExceptionThrowingPromiseInit: IJSPromise; overload; // Promise<undefined>
  54578. function testPromiseWithThrowingChromeThenFunction: IJSPromise; overload; // Promise<undefined>
  54579. function testPromiseWithThrowingContentThenFunction(const aFunc: TAnyCallback): IJSPromise; overload; // Promise<undefined>
  54580. function testPromiseWithDOMExceptionThrowingThenFunction: IJSPromise; overload; // Promise<undefined>
  54581. function testPromiseWithThrowingChromeThenable: IJSPromise; overload; // Promise<undefined>
  54582. function testPromiseWithThrowingContentThenable(aThenable: IJSObject): IJSPromise; overload; // Promise<undefined>
  54583. function testPromiseWithDOMExceptionThrowingThenable: IJSPromise; overload; // Promise<undefined>
  54584. class function JSClassName: UnicodeString; override;
  54585. class function Cast(const Intf: IJSObject): IJSTestInterfaceJS;
  54586. property anyArg: Variant read _GetanyArg;
  54587. property objectArg: IJSObject read _GetobjectArg;
  54588. property anyAttr: Variant read _GetanyAttr write _SetanyAttr;
  54589. property objectAttr: IJSObject read _GetobjectAttr write _SetobjectAttr;
  54590. property onsomething: TEventHandler read _Getonsomething write _Setonsomething;
  54591. end;
  54592. { --------------------------------------------------------------------
  54593. TJSTextDecoder
  54594. --------------------------------------------------------------------}
  54595. IJSTextDecoder = interface(IJSTextDecoderCommon)
  54596. ['{7029ADC7-F33E-35BA-B1DD-BE29BC3D8C00}']
  54597. function decode(aInput: IJSBufferSource; const aOptions: TJSTextDecodeOptions): UnicodeString;
  54598. function decode: UnicodeString;
  54599. function decode(aInput: IJSBufferSource): UnicodeString;
  54600. end;
  54601. TJSTextDecoder = class(TJSTextDecoderCommon,IJSTextDecoder)
  54602. Protected
  54603. Public
  54604. constructor Create(const aLabel_: UnicodeString; const aOptions: TJSTextDecoderOptions); overload;
  54605. constructor Create; overload;
  54606. constructor Create(const aLabel_: UnicodeString); overload;
  54607. function decode(aInput: IJSBufferSource; const aOptions: TJSTextDecodeOptions): UnicodeString; overload;
  54608. function decode: UnicodeString; overload;
  54609. function decode(aInput: IJSBufferSource): UnicodeString; overload;
  54610. class function JSClassName: UnicodeString; override;
  54611. class function Cast(const Intf: IJSObject): IJSTextDecoder;
  54612. end;
  54613. { --------------------------------------------------------------------
  54614. TJSTextEncoder
  54615. --------------------------------------------------------------------}
  54616. IJSTextEncoder = interface(IJSTextEncoderCommon)
  54617. ['{0029ADCC-C481-32A3-BEBE-A5CC9C3D8C02}']
  54618. function encode(const aInput: UTF8String): IJSUint8Array;
  54619. function encode: IJSUint8Array;
  54620. function encodeInto(aSource: IJSString; aDestination: IJSUint8Array): TJSTextEncoderEncodeIntoResult;
  54621. end;
  54622. TJSTextEncoder = class(TJSTextEncoderCommon,IJSTextEncoder)
  54623. Protected
  54624. Public
  54625. constructor Create; overload;
  54626. function encode(const aInput: UTF8String): IJSUint8Array; overload;
  54627. function encode: IJSUint8Array; overload;
  54628. function encodeInto(aSource: IJSString; aDestination: IJSUint8Array): TJSTextEncoderEncodeIntoResult; overload;
  54629. class function JSClassName: UnicodeString; override;
  54630. class function Cast(const Intf: IJSObject): IJSTextEncoder;
  54631. end;
  54632. { --------------------------------------------------------------------
  54633. TJSTextTrack
  54634. --------------------------------------------------------------------}
  54635. IJSTextTrack = interface(IJSEventTarget)
  54636. ['{ABECB1C0-1A84-37A6-9385-9BF16B9FB721}']
  54637. function _Getkind: TTextTrackKind;
  54638. function _Getlabel_: UnicodeString;
  54639. function _Getlanguage: UnicodeString;
  54640. function _Getid: UnicodeString;
  54641. function _GetinBandMetadataTrackDispatchType: UnicodeString;
  54642. function _Getmode: TTextTrackMode;
  54643. function _Getcues: IJSTextTrackCueList;
  54644. function _GetactiveCues: IJSTextTrackCueList;
  54645. function _Getoncuechange: TEventHandler;
  54646. procedure _Setmode(const aValue: TTextTrackMode);
  54647. procedure _Setoncuechange(const aValue: TEventHandler);
  54648. procedure addCue(aCue: IJSVTTCue);
  54649. procedure removeCue(aCue: IJSVTTCue);
  54650. property kind: TTextTrackKind read _Getkind;
  54651. property label_: UnicodeString read _Getlabel_;
  54652. property language: UnicodeString read _Getlanguage;
  54653. property id: UnicodeString read _Getid;
  54654. property inBandMetadataTrackDispatchType: UnicodeString read _GetinBandMetadataTrackDispatchType;
  54655. property mode: TTextTrackMode read _Getmode write _Setmode;
  54656. property cues: IJSTextTrackCueList read _Getcues;
  54657. property activeCues: IJSTextTrackCueList read _GetactiveCues;
  54658. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  54659. end;
  54660. TJSTextTrack = class(TJSEventTarget,IJSTextTrack)
  54661. Protected
  54662. function _Getkind: TTextTrackKind;
  54663. function _Getlabel_: UnicodeString;
  54664. function _Getlanguage: UnicodeString;
  54665. function _Getid: UnicodeString;
  54666. function _GetinBandMetadataTrackDispatchType: UnicodeString;
  54667. function _Getmode: TTextTrackMode;
  54668. function _Getcues: IJSTextTrackCueList;
  54669. function _GetactiveCues: IJSTextTrackCueList;
  54670. function _Getoncuechange: TEventHandler;
  54671. procedure _Setmode(const aValue: TTextTrackMode);
  54672. procedure _Setoncuechange(const aValue: TEventHandler);
  54673. Public
  54674. procedure addCue(aCue: IJSVTTCue); overload;
  54675. procedure removeCue(aCue: IJSVTTCue); overload;
  54676. class function JSClassName: UnicodeString; override;
  54677. class function Cast(const Intf: IJSObject): IJSTextTrack;
  54678. property kind: TTextTrackKind read _Getkind;
  54679. property label_: UnicodeString read _Getlabel_;
  54680. property language: UnicodeString read _Getlanguage;
  54681. property id: UnicodeString read _Getid;
  54682. property inBandMetadataTrackDispatchType: UnicodeString read _GetinBandMetadataTrackDispatchType;
  54683. property mode: TTextTrackMode read _Getmode write _Setmode;
  54684. property cues: IJSTextTrackCueList read _Getcues;
  54685. property activeCues: IJSTextTrackCueList read _GetactiveCues;
  54686. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  54687. end;
  54688. { --------------------------------------------------------------------
  54689. TJSTextTrackCue
  54690. --------------------------------------------------------------------}
  54691. IJSTextTrackCue = interface(IJSEventTarget)
  54692. ['{F5AA948D-188D-38F7-BCAE-A6DFB57E4843}']
  54693. function _Gettrack: IJSTextTrack;
  54694. function _Getid: UnicodeString;
  54695. function _GetstartTime: Double;
  54696. function _GetendTime: Double;
  54697. function _GetpauseOnExit: Boolean;
  54698. function _Getonenter: TEventHandler;
  54699. function _Getonexit: TEventHandler;
  54700. procedure _Setid(const aValue: UnicodeString);
  54701. procedure _SetstartTime(const aValue: Double);
  54702. procedure _SetendTime(const aValue: Double);
  54703. procedure _SetpauseOnExit(const aValue: Boolean);
  54704. procedure _Setonenter(const aValue: TEventHandler);
  54705. procedure _Setonexit(const aValue: TEventHandler);
  54706. property track: IJSTextTrack read _Gettrack;
  54707. property id: UnicodeString read _Getid write _Setid;
  54708. property startTime: Double read _GetstartTime write _SetstartTime;
  54709. property endTime: Double read _GetendTime write _SetendTime;
  54710. property pauseOnExit: Boolean read _GetpauseOnExit write _SetpauseOnExit;
  54711. property onenter: TEventHandler read _Getonenter write _Setonenter;
  54712. property onexit: TEventHandler read _Getonexit write _Setonexit;
  54713. end;
  54714. TJSTextTrackCue = class(TJSEventTarget,IJSTextTrackCue)
  54715. Protected
  54716. function _Gettrack: IJSTextTrack;
  54717. function _Getid: UnicodeString;
  54718. function _GetstartTime: Double;
  54719. function _GetendTime: Double;
  54720. function _GetpauseOnExit: Boolean;
  54721. function _Getonenter: TEventHandler;
  54722. function _Getonexit: TEventHandler;
  54723. procedure _Setid(const aValue: UnicodeString);
  54724. procedure _SetstartTime(const aValue: Double);
  54725. procedure _SetendTime(const aValue: Double);
  54726. procedure _SetpauseOnExit(const aValue: Boolean);
  54727. procedure _Setonenter(const aValue: TEventHandler);
  54728. procedure _Setonexit(const aValue: TEventHandler);
  54729. Public
  54730. class function JSClassName: UnicodeString; override;
  54731. class function Cast(const Intf: IJSObject): IJSTextTrackCue;
  54732. property track: IJSTextTrack read _Gettrack;
  54733. property id: UnicodeString read _Getid write _Setid;
  54734. property startTime: Double read _GetstartTime write _SetstartTime;
  54735. property endTime: Double read _GetendTime write _SetendTime;
  54736. property pauseOnExit: Boolean read _GetpauseOnExit write _SetpauseOnExit;
  54737. property onenter: TEventHandler read _Getonenter write _Setonenter;
  54738. property onexit: TEventHandler read _Getonexit write _Setonexit;
  54739. end;
  54740. { --------------------------------------------------------------------
  54741. TJSTextTrackList
  54742. --------------------------------------------------------------------}
  54743. IJSTextTrackList = interface(IJSEventTarget)
  54744. ['{9C31B9EE-C9BD-34BD-8C6E-22C12253A160}']
  54745. function _Getlength_: Cardinal;
  54746. function _Getonchange: TEventHandler;
  54747. function _Getonaddtrack: TEventHandler;
  54748. function _Getonremovetrack: TEventHandler;
  54749. procedure _Setonchange(const aValue: TEventHandler);
  54750. procedure _Setonaddtrack(const aValue: TEventHandler);
  54751. procedure _Setonremovetrack(const aValue: TEventHandler);
  54752. function GetDefault(aIndex: Cardinal): IJSTextTrack;
  54753. function getTrackById(const aId: UnicodeString): IJSTextTrack;
  54754. property length_: Cardinal read _Getlength_;
  54755. property onchange: TEventHandler read _Getonchange write _Setonchange;
  54756. property onaddtrack: TEventHandler read _Getonaddtrack write _Setonaddtrack;
  54757. property onremovetrack: TEventHandler read _Getonremovetrack write _Setonremovetrack;
  54758. end;
  54759. TJSTextTrackList = class(TJSEventTarget,IJSTextTrackList)
  54760. Protected
  54761. function _Getlength_: Cardinal;
  54762. function _Getonchange: TEventHandler;
  54763. function _Getonaddtrack: TEventHandler;
  54764. function _Getonremovetrack: TEventHandler;
  54765. procedure _Setonchange(const aValue: TEventHandler);
  54766. procedure _Setonaddtrack(const aValue: TEventHandler);
  54767. procedure _Setonremovetrack(const aValue: TEventHandler);
  54768. Public
  54769. function GetDefault(aIndex: Cardinal): IJSTextTrack; overload;
  54770. function getTrackById(const aId: UnicodeString): IJSTextTrack; overload;
  54771. class function JSClassName: UnicodeString; override;
  54772. class function Cast(const Intf: IJSObject): IJSTextTrackList;
  54773. property length_: Cardinal read _Getlength_;
  54774. property onchange: TEventHandler read _Getonchange write _Setonchange;
  54775. property onaddtrack: TEventHandler read _Getonaddtrack write _Setonaddtrack;
  54776. property onremovetrack: TEventHandler read _Getonremovetrack write _Setonremovetrack;
  54777. end;
  54778. { --------------------------------------------------------------------
  54779. TJSTimeEvent
  54780. --------------------------------------------------------------------}
  54781. IJSTimeEvent = interface(IJSEvent)
  54782. ['{812FDD94-E17D-341C-9F05-AD0D876813D7}']
  54783. function _Getdetail: LongInt;
  54784. function _Getview: IJSWindowProxy;
  54785. procedure initTimeEvent(const aAType: UnicodeString; aAView: IJSWindow; aADetail: LongInt);
  54786. procedure initTimeEvent(const aAType: UnicodeString);
  54787. procedure initTimeEvent(const aAType: UnicodeString; aAView: IJSWindow);
  54788. property detail: LongInt read _Getdetail;
  54789. property view: IJSWindowProxy read _Getview;
  54790. end;
  54791. TJSTimeEvent = class(TJSEvent,IJSTimeEvent)
  54792. Protected
  54793. function _Getdetail: LongInt;
  54794. function _Getview: IJSWindowProxy;
  54795. Public
  54796. procedure initTimeEvent(const aAType: UnicodeString; aAView: IJSWindow; aADetail: LongInt); overload;
  54797. procedure initTimeEvent(const aAType: UnicodeString); overload;
  54798. procedure initTimeEvent(const aAType: UnicodeString; aAView: IJSWindow); overload;
  54799. class function JSClassName: UnicodeString; override;
  54800. class function Cast(const Intf: IJSObject): IJSTimeEvent;
  54801. property detail: LongInt read _Getdetail;
  54802. property view: IJSWindowProxy read _Getview;
  54803. end;
  54804. { --------------------------------------------------------------------
  54805. TJSToggleEvent
  54806. --------------------------------------------------------------------}
  54807. IJSToggleEvent = interface(IJSEvent)
  54808. ['{9B7F9FE8-B229-3125-AECA-6F1E1BB28A3E}']
  54809. function _GetoldState: UnicodeString;
  54810. function _GetnewState: UnicodeString;
  54811. property oldState: UnicodeString read _GetoldState;
  54812. property newState: UnicodeString read _GetnewState;
  54813. end;
  54814. TJSToggleEvent = class(TJSEvent,IJSToggleEvent)
  54815. Protected
  54816. function _GetoldState: UnicodeString;
  54817. function _GetnewState: UnicodeString;
  54818. Public
  54819. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSToggleEventInit); overload;
  54820. constructor Create(const aType_: UnicodeString); overload;
  54821. class function JSClassName: UnicodeString; override;
  54822. class function Cast(const Intf: IJSObject): IJSToggleEvent;
  54823. property oldState: UnicodeString read _GetoldState;
  54824. property newState: UnicodeString read _GetnewState;
  54825. end;
  54826. { --------------------------------------------------------------------
  54827. TJSTrackEvent
  54828. --------------------------------------------------------------------}
  54829. // Union of VideoTrack, AudioTrack, TextTrack
  54830. TTrackEvent_track_Type = Variant;
  54831. IJSTrackEvent = interface(IJSEvent)
  54832. ['{D0F41CB5-589A-365F-9E3D-4DB0BC590D57}']
  54833. function _Gettrack: TTrackEvent_track_Type;
  54834. property track: TTrackEvent_track_Type read _Gettrack;
  54835. end;
  54836. TJSTrackEvent = class(TJSEvent,IJSTrackEvent)
  54837. Protected
  54838. function _Gettrack: TTrackEvent_track_Type;
  54839. Public
  54840. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSTrackEventInit); overload;
  54841. constructor Create(const aType_: UnicodeString); overload;
  54842. class function JSClassName: UnicodeString; override;
  54843. class function Cast(const Intf: IJSObject): IJSTrackEvent;
  54844. property track: TTrackEvent_track_Type read _Gettrack;
  54845. end;
  54846. { --------------------------------------------------------------------
  54847. TJSTransitionEvent
  54848. --------------------------------------------------------------------}
  54849. IJSTransitionEvent = interface(IJSEvent)
  54850. ['{F5C35D1C-263F-3D2A-996D-326FAA21E6A4}']
  54851. function _GetpropertyName: UnicodeString;
  54852. function _GetelapsedTime: Single;
  54853. function _GetpseudoElement: UnicodeString;
  54854. property propertyName: UnicodeString read _GetpropertyName;
  54855. property elapsedTime: Single read _GetelapsedTime;
  54856. property pseudoElement: UnicodeString read _GetpseudoElement;
  54857. end;
  54858. TJSTransitionEvent = class(TJSEvent,IJSTransitionEvent)
  54859. Protected
  54860. function _GetpropertyName: UnicodeString;
  54861. function _GetelapsedTime: Single;
  54862. function _GetpseudoElement: UnicodeString;
  54863. Public
  54864. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSTransitionEventInit); overload;
  54865. constructor Create(const aType_: UnicodeString); overload;
  54866. class function JSClassName: UnicodeString; override;
  54867. class function Cast(const Intf: IJSObject): IJSTransitionEvent;
  54868. property propertyName: UnicodeString read _GetpropertyName;
  54869. property elapsedTime: Single read _GetelapsedTime;
  54870. property pseudoElement: UnicodeString read _GetpseudoElement;
  54871. end;
  54872. { --------------------------------------------------------------------
  54873. TJSUIEvent
  54874. --------------------------------------------------------------------}
  54875. IJSUIEvent = interface(IJSEvent)
  54876. ['{E1117B61-9923-311E-BFA0-D6A31F90F3F4}']
  54877. function _Getview: IJSWindowProxy;
  54878. function _Getdetail: LongInt;
  54879. function _GetlayerX: LongInt;
  54880. function _GetlayerY: LongInt;
  54881. function _Getwhich: Cardinal;
  54882. function _GetrangeParent: IJSNode;
  54883. function _GetrangeOffset: LongInt;
  54884. procedure initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean; aACancelable: Boolean; aAView: IJSWindow; aADetail: LongInt);
  54885. procedure initUIEvent(const aAType: UnicodeString);
  54886. procedure initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean);
  54887. procedure initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean; aACancelable: Boolean);
  54888. procedure initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean; aACancelable: Boolean; aAView: IJSWindow);
  54889. property view: IJSWindowProxy read _Getview;
  54890. property detail: LongInt read _Getdetail;
  54891. property layerX: LongInt read _GetlayerX;
  54892. property layerY: LongInt read _GetlayerY;
  54893. property which: Cardinal read _Getwhich;
  54894. property rangeParent: IJSNode read _GetrangeParent;
  54895. property rangeOffset: LongInt read _GetrangeOffset;
  54896. end;
  54897. TJSUIEvent = class(TJSEvent,IJSUIEvent)
  54898. Protected
  54899. function _Getview: IJSWindowProxy;
  54900. function _Getdetail: LongInt;
  54901. function _GetlayerX: LongInt;
  54902. function _GetlayerY: LongInt;
  54903. function _Getwhich: Cardinal;
  54904. function _GetrangeParent: IJSNode;
  54905. function _GetrangeOffset: LongInt;
  54906. Public
  54907. Const
  54908. SCROLL_PAGE_UP = -32768;
  54909. SCROLL_PAGE_DOWN = 32768;
  54910. Public
  54911. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSUIEventInit); overload;
  54912. constructor Create(const aType_: UnicodeString); overload;
  54913. procedure initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean; aACancelable: Boolean; aAView: IJSWindow; aADetail: LongInt); overload;
  54914. procedure initUIEvent(const aAType: UnicodeString); overload;
  54915. procedure initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean); overload;
  54916. procedure initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean; aACancelable: Boolean); overload;
  54917. procedure initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean; aACancelable: Boolean; aAView: IJSWindow); overload;
  54918. class function JSClassName: UnicodeString; override;
  54919. class function Cast(const Intf: IJSObject): IJSUIEvent;
  54920. property view: IJSWindowProxy read _Getview;
  54921. property detail: LongInt read _Getdetail;
  54922. property layerX: LongInt read _GetlayerX;
  54923. property layerY: LongInt read _GetlayerY;
  54924. property which: Cardinal read _Getwhich;
  54925. property rangeParent: IJSNode read _GetrangeParent;
  54926. property rangeOffset: LongInt read _GetrangeOffset;
  54927. end;
  54928. { --------------------------------------------------------------------
  54929. TJSUserProximityEvent
  54930. --------------------------------------------------------------------}
  54931. IJSUserProximityEvent = interface(IJSEvent)
  54932. ['{F0F02E20-64CE-3068-9786-9A26DF885EAE}']
  54933. function _Getnear: Boolean;
  54934. property near: Boolean read _Getnear;
  54935. end;
  54936. TJSUserProximityEvent = class(TJSEvent,IJSUserProximityEvent)
  54937. Protected
  54938. function _Getnear: Boolean;
  54939. Public
  54940. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSUserProximityEventInit); overload;
  54941. constructor Create(const aType_: UnicodeString); overload;
  54942. class function JSClassName: UnicodeString; override;
  54943. class function Cast(const Intf: IJSObject): IJSUserProximityEvent;
  54944. property near: Boolean read _Getnear;
  54945. end;
  54946. { --------------------------------------------------------------------
  54947. TJSVideoDecoder
  54948. --------------------------------------------------------------------}
  54949. IJSVideoDecoder = interface(IJSEventTarget)
  54950. ['{720038D1-3D7A-3462-A2CC-DF999EFD8C2E}']
  54951. function _Getstate: TCodecState;
  54952. function _GetdecodeQueueSize: Cardinal;
  54953. function _Getondequeue: TEventHandler;
  54954. procedure _Setondequeue(const aValue: TEventHandler);
  54955. procedure configure(const aConfig: TJSVideoDecoderConfig);
  54956. procedure decode(aChunk: IJSEncodedVideoChunk);
  54957. function flush: IJSPromise; // Promise<undefined>
  54958. procedure reset;
  54959. procedure close;
  54960. property state: TCodecState read _Getstate;
  54961. property decodeQueueSize: Cardinal read _GetdecodeQueueSize;
  54962. property ondequeue: TEventHandler read _Getondequeue write _Setondequeue;
  54963. end;
  54964. TJSVideoDecoder = class(TJSEventTarget,IJSVideoDecoder)
  54965. Protected
  54966. function _Getstate: TCodecState;
  54967. function _GetdecodeQueueSize: Cardinal;
  54968. function _Getondequeue: TEventHandler;
  54969. procedure _Setondequeue(const aValue: TEventHandler);
  54970. Public
  54971. constructor Create(const aInit: TJSVideoDecoderInit); overload;
  54972. procedure configure(const aConfig: TJSVideoDecoderConfig); overload;
  54973. procedure decode(aChunk: IJSEncodedVideoChunk); overload;
  54974. function flush: IJSPromise; overload; // Promise<undefined>
  54975. procedure reset; overload;
  54976. procedure close; overload;
  54977. function isConfigSupported(const aConfig: TJSVideoDecoderConfig): IJSPromise; overload; // Promise<VideoDecoderSupport>
  54978. class function JSClassName: UnicodeString; override;
  54979. class function Cast(const Intf: IJSObject): IJSVideoDecoder;
  54980. property state: TCodecState read _Getstate;
  54981. property decodeQueueSize: Cardinal read _GetdecodeQueueSize;
  54982. property ondequeue: TEventHandler read _Getondequeue write _Setondequeue;
  54983. end;
  54984. { --------------------------------------------------------------------
  54985. TJSVideoEncoder
  54986. --------------------------------------------------------------------}
  54987. IJSVideoEncoder = interface(IJSEventTarget)
  54988. ['{720038D1-3D83-3982-A2CC-E03D9EFD8C2E}']
  54989. function _Getstate: TCodecState;
  54990. function _GetencodeQueueSize: Cardinal;
  54991. function _Getondequeue: TEventHandler;
  54992. procedure _Setondequeue(const aValue: TEventHandler);
  54993. procedure configure(const aConfig: TJSVideoEncoderConfig);
  54994. procedure encode(aFrame: IJSVideoFrame; const aOptions: TJSVideoEncoderEncodeOptions);
  54995. procedure encode(aFrame: IJSVideoFrame);
  54996. function flush: IJSPromise; // Promise<undefined>
  54997. procedure reset;
  54998. procedure close;
  54999. property state: TCodecState read _Getstate;
  55000. property encodeQueueSize: Cardinal read _GetencodeQueueSize;
  55001. property ondequeue: TEventHandler read _Getondequeue write _Setondequeue;
  55002. end;
  55003. TJSVideoEncoder = class(TJSEventTarget,IJSVideoEncoder)
  55004. Protected
  55005. function _Getstate: TCodecState;
  55006. function _GetencodeQueueSize: Cardinal;
  55007. function _Getondequeue: TEventHandler;
  55008. procedure _Setondequeue(const aValue: TEventHandler);
  55009. Public
  55010. constructor Create(const aInit: TJSVideoEncoderInit); overload;
  55011. procedure configure(const aConfig: TJSVideoEncoderConfig); overload;
  55012. procedure encode(aFrame: IJSVideoFrame; const aOptions: TJSVideoEncoderEncodeOptions); overload;
  55013. procedure encode(aFrame: IJSVideoFrame); overload;
  55014. function flush: IJSPromise; overload; // Promise<undefined>
  55015. procedure reset; overload;
  55016. procedure close; overload;
  55017. function isConfigSupported(const aConfig: TJSVideoEncoderConfig): IJSPromise; overload; // Promise<VideoEncoderSupport>
  55018. class function JSClassName: UnicodeString; override;
  55019. class function Cast(const Intf: IJSObject): IJSVideoEncoder;
  55020. property state: TCodecState read _Getstate;
  55021. property encodeQueueSize: Cardinal read _GetencodeQueueSize;
  55022. property ondequeue: TEventHandler read _Getondequeue write _Setondequeue;
  55023. end;
  55024. { --------------------------------------------------------------------
  55025. TJSVideoTrackList
  55026. --------------------------------------------------------------------}
  55027. IJSVideoTrackList = interface(IJSEventTarget)
  55028. ['{4722259F-ECEA-390A-A162-1CE2380F78D5}']
  55029. function _Getlength_: Cardinal;
  55030. function _GetselectedIndex: LongInt;
  55031. function _Getonchange: TEventHandler;
  55032. function _Getonaddtrack: TEventHandler;
  55033. function _Getonremovetrack: TEventHandler;
  55034. procedure _Setonchange(const aValue: TEventHandler);
  55035. procedure _Setonaddtrack(const aValue: TEventHandler);
  55036. procedure _Setonremovetrack(const aValue: TEventHandler);
  55037. function GetDefault(aIndex: Cardinal): IJSVideoTrack;
  55038. function getTrackById(const aId: UnicodeString): IJSVideoTrack;
  55039. property length_: Cardinal read _Getlength_;
  55040. property selectedIndex: LongInt read _GetselectedIndex;
  55041. property onchange: TEventHandler read _Getonchange write _Setonchange;
  55042. property onaddtrack: TEventHandler read _Getonaddtrack write _Setonaddtrack;
  55043. property onremovetrack: TEventHandler read _Getonremovetrack write _Setonremovetrack;
  55044. end;
  55045. TJSVideoTrackList = class(TJSEventTarget,IJSVideoTrackList)
  55046. Protected
  55047. function _Getlength_: Cardinal;
  55048. function _GetselectedIndex: LongInt;
  55049. function _Getonchange: TEventHandler;
  55050. function _Getonaddtrack: TEventHandler;
  55051. function _Getonremovetrack: TEventHandler;
  55052. procedure _Setonchange(const aValue: TEventHandler);
  55053. procedure _Setonaddtrack(const aValue: TEventHandler);
  55054. procedure _Setonremovetrack(const aValue: TEventHandler);
  55055. Public
  55056. function GetDefault(aIndex: Cardinal): IJSVideoTrack; overload;
  55057. function getTrackById(const aId: UnicodeString): IJSVideoTrack; overload;
  55058. class function JSClassName: UnicodeString; override;
  55059. class function Cast(const Intf: IJSObject): IJSVideoTrackList;
  55060. property length_: Cardinal read _Getlength_;
  55061. property selectedIndex: LongInt read _GetselectedIndex;
  55062. property onchange: TEventHandler read _Getonchange write _Setonchange;
  55063. property onaddtrack: TEventHandler read _Getonaddtrack write _Setonaddtrack;
  55064. property onremovetrack: TEventHandler read _Getonremovetrack write _Setonremovetrack;
  55065. end;
  55066. { --------------------------------------------------------------------
  55067. TJSVisualViewport
  55068. --------------------------------------------------------------------}
  55069. IJSVisualViewport = interface(IJSEventTarget)
  55070. ['{B22BE921-5B5D-3E05-A183-9FE8D07C55DD}']
  55071. function _GetoffsetLeft: Double;
  55072. function _GetoffsetTop: Double;
  55073. function _GetpageLeft: Double;
  55074. function _GetpageTop: Double;
  55075. function _Getwidth: Double;
  55076. function _Getheight: Double;
  55077. function _Getscale: Double;
  55078. function _Getonresize: TEventHandler;
  55079. function _Getonscroll: TEventHandler;
  55080. procedure _Setonresize(const aValue: TEventHandler);
  55081. procedure _Setonscroll(const aValue: TEventHandler);
  55082. property offsetLeft: Double read _GetoffsetLeft;
  55083. property offsetTop: Double read _GetoffsetTop;
  55084. property pageLeft: Double read _GetpageLeft;
  55085. property pageTop: Double read _GetpageTop;
  55086. property width: Double read _Getwidth;
  55087. property height: Double read _Getheight;
  55088. property scale: Double read _Getscale;
  55089. property onresize: TEventHandler read _Getonresize write _Setonresize;
  55090. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  55091. end;
  55092. TJSVisualViewport = class(TJSEventTarget,IJSVisualViewport)
  55093. Protected
  55094. function _GetoffsetLeft: Double;
  55095. function _GetoffsetTop: Double;
  55096. function _GetpageLeft: Double;
  55097. function _GetpageTop: Double;
  55098. function _Getwidth: Double;
  55099. function _Getheight: Double;
  55100. function _Getscale: Double;
  55101. function _Getonresize: TEventHandler;
  55102. function _Getonscroll: TEventHandler;
  55103. procedure _Setonresize(const aValue: TEventHandler);
  55104. procedure _Setonscroll(const aValue: TEventHandler);
  55105. Public
  55106. class function JSClassName: UnicodeString; override;
  55107. class function Cast(const Intf: IJSObject): IJSVisualViewport;
  55108. property offsetLeft: Double read _GetoffsetLeft;
  55109. property offsetTop: Double read _GetoffsetTop;
  55110. property pageLeft: Double read _GetpageLeft;
  55111. property pageTop: Double read _GetpageTop;
  55112. property width: Double read _Getwidth;
  55113. property height: Double read _Getheight;
  55114. property scale: Double read _Getscale;
  55115. property onresize: TEventHandler read _Getonresize write _Setonresize;
  55116. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  55117. end;
  55118. { --------------------------------------------------------------------
  55119. TJSVRDisplay
  55120. --------------------------------------------------------------------}
  55121. TJSVRLayerDynArray = IJSArray; // array of VRLayer
  55122. IJSVRDisplay = interface(IJSEventTarget)
  55123. ['{24A143AA-91BE-33D2-9386-5D0949E43467}']
  55124. function _GetisConnected: Boolean;
  55125. function _GetisPresenting: Boolean;
  55126. function _Getcapabilities: IJSVRDisplayCapabilities;
  55127. function _GetstageParameters: IJSVRStageParameters;
  55128. function _GetdisplayId: Cardinal;
  55129. function _GetdisplayName: UnicodeString;
  55130. function _GetdepthNear: Double;
  55131. function _GetdepthFar: Double;
  55132. procedure _SetdepthNear(const aValue: Double);
  55133. procedure _SetdepthFar(const aValue: Double);
  55134. function getEyeParameters(aWhichEye: TVREye): IJSVREyeParameters;
  55135. function getFrameData(aFrameData: IJSVRFrameData): Boolean;
  55136. function getPose: IJSVRPose;
  55137. procedure resetPose;
  55138. function requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt;
  55139. procedure cancelAnimationFrame(aHandle: LongInt);
  55140. function requestPresent(const aLayers: TJSVRLayerDynArray): IJSPromise; // Promise<undefined>
  55141. function exitPresent: IJSPromise; // Promise<undefined>
  55142. function getLayers: TJSVRLayerDynArray;
  55143. procedure submitFrame;
  55144. property isConnected: Boolean read _GetisConnected;
  55145. property isPresenting: Boolean read _GetisPresenting;
  55146. property capabilities: IJSVRDisplayCapabilities read _Getcapabilities;
  55147. property stageParameters: IJSVRStageParameters read _GetstageParameters;
  55148. property displayId: Cardinal read _GetdisplayId;
  55149. property displayName: UnicodeString read _GetdisplayName;
  55150. property depthNear: Double read _GetdepthNear write _SetdepthNear;
  55151. property depthFar: Double read _GetdepthFar write _SetdepthFar;
  55152. end;
  55153. TJSVRDisplay = class(TJSEventTarget,IJSVRDisplay)
  55154. Protected
  55155. function _GetisConnected: Boolean;
  55156. function _GetisPresenting: Boolean;
  55157. function _Getcapabilities: IJSVRDisplayCapabilities;
  55158. function _GetstageParameters: IJSVRStageParameters;
  55159. function _GetdisplayId: Cardinal;
  55160. function _GetdisplayName: UnicodeString;
  55161. function _GetdepthNear: Double;
  55162. function _GetdepthFar: Double;
  55163. procedure _SetdepthNear(const aValue: Double);
  55164. procedure _SetdepthFar(const aValue: Double);
  55165. Public
  55166. function getEyeParameters(aWhichEye: TVREye): IJSVREyeParameters; overload;
  55167. function getFrameData(aFrameData: IJSVRFrameData): Boolean; overload;
  55168. function getPose: IJSVRPose; overload;
  55169. procedure resetPose; overload;
  55170. function requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt; overload;
  55171. procedure cancelAnimationFrame(aHandle: LongInt); overload;
  55172. function requestPresent(const aLayers: TJSVRLayerDynArray): IJSPromise; overload; // Promise<undefined>
  55173. function exitPresent: IJSPromise; overload; // Promise<undefined>
  55174. function getLayers: TJSVRLayerDynArray; overload;
  55175. procedure submitFrame; overload;
  55176. class function JSClassName: UnicodeString; override;
  55177. class function Cast(const Intf: IJSObject): IJSVRDisplay;
  55178. property isConnected: Boolean read _GetisConnected;
  55179. property isPresenting: Boolean read _GetisPresenting;
  55180. property capabilities: IJSVRDisplayCapabilities read _Getcapabilities;
  55181. property stageParameters: IJSVRStageParameters read _GetstageParameters;
  55182. property displayId: Cardinal read _GetdisplayId;
  55183. property displayName: UnicodeString read _GetdisplayName;
  55184. property depthNear: Double read _GetdepthNear write _SetdepthNear;
  55185. property depthFar: Double read _GetdepthFar write _SetdepthFar;
  55186. end;
  55187. { --------------------------------------------------------------------
  55188. TJSVRDisplayEvent
  55189. --------------------------------------------------------------------}
  55190. IJSVRDisplayEvent = interface(IJSEvent)
  55191. ['{AB4DE7D1-4280-350D-B0B4-A8D7021AF807}']
  55192. function _Getdisplay: IJSVRDisplay;
  55193. function _Getreason: TVRDisplayEventReason;
  55194. property display: IJSVRDisplay read _Getdisplay;
  55195. property reason: TVRDisplayEventReason read _Getreason;
  55196. end;
  55197. TJSVRDisplayEvent = class(TJSEvent,IJSVRDisplayEvent)
  55198. Protected
  55199. function _Getdisplay: IJSVRDisplay;
  55200. function _Getreason: TVRDisplayEventReason;
  55201. Public
  55202. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSVRDisplayEventInit); overload;
  55203. class function JSClassName: UnicodeString; override;
  55204. class function Cast(const Intf: IJSObject): IJSVRDisplayEvent;
  55205. property display: IJSVRDisplay read _Getdisplay;
  55206. property reason: TVRDisplayEventReason read _Getreason;
  55207. end;
  55208. { --------------------------------------------------------------------
  55209. TJSWakeLockSentinel
  55210. --------------------------------------------------------------------}
  55211. IJSWakeLockSentinel = interface(IJSEventTarget)
  55212. ['{713641F1-B797-3461-B7E9-C9EC5CFB5B50}']
  55213. function _Getreleased: Boolean;
  55214. function _Gettype_: TWakeLockType;
  55215. function _Getonrelease: TEventHandler;
  55216. procedure _Setonrelease(const aValue: TEventHandler);
  55217. function release: IJSPromise; // Promise<undefined>
  55218. property released: Boolean read _Getreleased;
  55219. property type_: TWakeLockType read _Gettype_;
  55220. property onrelease: TEventHandler read _Getonrelease write _Setonrelease;
  55221. end;
  55222. TJSWakeLockSentinel = class(TJSEventTarget,IJSWakeLockSentinel)
  55223. Protected
  55224. function _Getreleased: Boolean;
  55225. function _Gettype_: TWakeLockType;
  55226. function _Getonrelease: TEventHandler;
  55227. procedure _Setonrelease(const aValue: TEventHandler);
  55228. Public
  55229. function release: IJSPromise; overload; // Promise<undefined>
  55230. class function JSClassName: UnicodeString; override;
  55231. class function Cast(const Intf: IJSObject): IJSWakeLockSentinel;
  55232. property released: Boolean read _Getreleased;
  55233. property type_: TWakeLockType read _Gettype_;
  55234. property onrelease: TEventHandler read _Getonrelease write _Setonrelease;
  55235. end;
  55236. { --------------------------------------------------------------------
  55237. TJSPublicKeyCredential
  55238. --------------------------------------------------------------------}
  55239. IJSPublicKeyCredential = interface(IJSCredential)
  55240. ['{E5335C4B-DC3C-3DC9-8C33-6EC05DA193B3}']
  55241. function _GetrawId: IJSArrayBuffer;
  55242. function _Getresponse: IJSAuthenticatorResponse;
  55243. function _GetauthenticatorAttachment: UnicodeString;
  55244. function getClientExtensionResults: TJSAuthenticationExtensionsClientOutputs;
  55245. function toJSON: IJSObject;
  55246. property rawId: IJSArrayBuffer read _GetrawId;
  55247. property response: IJSAuthenticatorResponse read _Getresponse;
  55248. property authenticatorAttachment: UnicodeString read _GetauthenticatorAttachment;
  55249. end;
  55250. TJSPublicKeyCredential = class(TJSCredential,IJSPublicKeyCredential)
  55251. Protected
  55252. function _GetrawId: IJSArrayBuffer;
  55253. function _Getresponse: IJSAuthenticatorResponse;
  55254. function _GetauthenticatorAttachment: UnicodeString;
  55255. Public
  55256. function getClientExtensionResults: TJSAuthenticationExtensionsClientOutputs; overload;
  55257. function isConditionalMediationAvailable: IJSPromise; overload; // Promise<boolean>
  55258. function toJSON: IJSObject; overload;
  55259. function isUserVerifyingPlatformAuthenticatorAvailable: IJSPromise; overload; // Promise<boolean>
  55260. function parseCreationOptionsFromJSON(const aOptions: TJSPublicKeyCredentialCreationOptionsJSON): TJSPublicKeyCredentialCreationOptions; overload;
  55261. function parseRequestOptionsFromJSON(const aOptions: TJSPublicKeyCredentialRequestOptionsJSON): TJSPublicKeyCredentialRequestOptions; overload;
  55262. class function JSClassName: UnicodeString; override;
  55263. class function Cast(const Intf: IJSObject): IJSPublicKeyCredential;
  55264. property rawId: IJSArrayBuffer read _GetrawId;
  55265. property response: IJSAuthenticatorResponse read _Getresponse;
  55266. property authenticatorAttachment: UnicodeString read _GetauthenticatorAttachment;
  55267. end;
  55268. { --------------------------------------------------------------------
  55269. TJSAuthenticatorAttestationResponse
  55270. --------------------------------------------------------------------}
  55271. IJSAuthenticatorAttestationResponse = interface(IJSAuthenticatorResponse)
  55272. ['{8DAB0507-197C-320D-8BD1-9A4B77D66D3C}']
  55273. function _GetattestationObject: IJSArrayBuffer;
  55274. function getTransports: TUnicodeStringDynArray;
  55275. function getAuthenticatorData: IJSArrayBuffer;
  55276. function getPublicKey: IJSArrayBuffer;
  55277. function getPublicKeyAlgorithm: TCOSEAlgorithmIdentifier;
  55278. property attestationObject: IJSArrayBuffer read _GetattestationObject;
  55279. end;
  55280. TJSAuthenticatorAttestationResponse = class(TJSAuthenticatorResponse,IJSAuthenticatorAttestationResponse)
  55281. Protected
  55282. function _GetattestationObject: IJSArrayBuffer;
  55283. Public
  55284. function getTransports: TUnicodeStringDynArray; overload;
  55285. function getAuthenticatorData: IJSArrayBuffer; overload;
  55286. function getPublicKey: IJSArrayBuffer; overload;
  55287. function getPublicKeyAlgorithm: TCOSEAlgorithmIdentifier; overload;
  55288. class function JSClassName: UnicodeString; override;
  55289. class function Cast(const Intf: IJSObject): IJSAuthenticatorAttestationResponse;
  55290. property attestationObject: IJSArrayBuffer read _GetattestationObject;
  55291. end;
  55292. { --------------------------------------------------------------------
  55293. TJSAuthenticatorAssertionResponse
  55294. --------------------------------------------------------------------}
  55295. IJSAuthenticatorAssertionResponse = interface(IJSAuthenticatorResponse)
  55296. ['{55925D81-5399-397C-959B-572E7C07DC3C}']
  55297. function _GetauthenticatorData: IJSArrayBuffer;
  55298. function _Getsignature: IJSArrayBuffer;
  55299. function _GetuserHandle: IJSArrayBuffer;
  55300. property authenticatorData: IJSArrayBuffer read _GetauthenticatorData;
  55301. property signature: IJSArrayBuffer read _Getsignature;
  55302. property userHandle: IJSArrayBuffer read _GetuserHandle;
  55303. end;
  55304. TJSAuthenticatorAssertionResponse = class(TJSAuthenticatorResponse,IJSAuthenticatorAssertionResponse)
  55305. Protected
  55306. function _GetauthenticatorData: IJSArrayBuffer;
  55307. function _Getsignature: IJSArrayBuffer;
  55308. function _GetuserHandle: IJSArrayBuffer;
  55309. Public
  55310. class function JSClassName: UnicodeString; override;
  55311. class function Cast(const Intf: IJSObject): IJSAuthenticatorAssertionResponse;
  55312. property authenticatorData: IJSArrayBuffer read _GetauthenticatorData;
  55313. property signature: IJSArrayBuffer read _Getsignature;
  55314. property userHandle: IJSArrayBuffer read _GetuserHandle;
  55315. end;
  55316. { --------------------------------------------------------------------
  55317. TJSWebGLContextEvent
  55318. --------------------------------------------------------------------}
  55319. IJSWebGLContextEvent = interface(IJSEvent)
  55320. ['{A5D3378A-06AF-36A6-B91F-B74FD3041E56}']
  55321. function _GetstatusMessage: UnicodeString;
  55322. property statusMessage: UnicodeString read _GetstatusMessage;
  55323. end;
  55324. TJSWebGLContextEvent = class(TJSEvent,IJSWebGLContextEvent)
  55325. Protected
  55326. function _GetstatusMessage: UnicodeString;
  55327. Public
  55328. constructor Create(const aType_: UnicodeString; const aEventInit: TJSWebGLContextEventInit); overload;
  55329. constructor Create(const aType_: UnicodeString); overload;
  55330. class function JSClassName: UnicodeString; override;
  55331. class function Cast(const Intf: IJSObject): IJSWebGLContextEvent;
  55332. property statusMessage: UnicodeString read _GetstatusMessage;
  55333. end;
  55334. { --------------------------------------------------------------------
  55335. TJSWebGLRenderingContext
  55336. --------------------------------------------------------------------}
  55337. IJSWebGLRenderingContext = interface(IJSWebGLRenderingContextBase)
  55338. ['{934B04AF-A7AC-3EB4-9728-0BCBA82CAAF2}']
  55339. procedure bufferData(aTarget: TGLenum; aSize: TGLsizeiptr; aUsage: TGLenum);
  55340. procedure bufferData(aTarget: TGLenum; aData: IJSArrayBuffer; aUsage: TGLenum);
  55341. procedure bufferData(aTarget: TGLenum; aData: IJSArrayBufferView; aUsage: TGLenum);
  55342. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aData: IJSArrayBuffer);
  55343. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aData: IJSArrayBufferView);
  55344. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aData: IJSArrayBufferView);
  55345. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aData: IJSArrayBufferView);
  55346. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  55347. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  55348. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageBitmap);
  55349. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageData);
  55350. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aImage: IJSHTMLImageElement);
  55351. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSHTMLCanvasElement);
  55352. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideo: IJSHTMLVideoElement);
  55353. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSOffscreenCanvas);
  55354. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideoFrame: IJSVideoFrame);
  55355. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  55356. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageBitmap);
  55357. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageData);
  55358. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aImage: IJSHTMLImageElement);
  55359. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSHTMLCanvasElement);
  55360. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideo: IJSHTMLVideoElement);
  55361. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSOffscreenCanvas);
  55362. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideoFrame: IJSVideoFrame);
  55363. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  55364. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  55365. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  55366. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  55367. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  55368. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  55369. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  55370. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  55371. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  55372. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  55373. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  55374. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  55375. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  55376. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  55377. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  55378. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  55379. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  55380. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  55381. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  55382. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  55383. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  55384. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  55385. end;
  55386. TJSWebGLRenderingContext = class(TJSWebGLRenderingContextBase,IJSWebGLRenderingContext)
  55387. Protected
  55388. Public
  55389. procedure bufferData(aTarget: TGLenum; aSize: TGLsizeiptr; aUsage: TGLenum); overload;
  55390. procedure bufferData(aTarget: TGLenum; aData: IJSArrayBuffer; aUsage: TGLenum); overload;
  55391. procedure bufferData(aTarget: TGLenum; aData: IJSArrayBufferView; aUsage: TGLenum); overload;
  55392. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aData: IJSArrayBuffer); overload;
  55393. procedure bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aData: IJSArrayBufferView); overload;
  55394. procedure compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aData: IJSArrayBufferView); overload;
  55395. procedure compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aData: IJSArrayBufferView); overload;
  55396. procedure readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView); overload;
  55397. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView); overload;
  55398. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageBitmap); overload;
  55399. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageData); overload;
  55400. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aImage: IJSHTMLImageElement); overload;
  55401. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSHTMLCanvasElement); overload;
  55402. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideo: IJSHTMLVideoElement); overload;
  55403. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSOffscreenCanvas); overload;
  55404. procedure texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideoFrame: IJSVideoFrame); overload;
  55405. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView); overload;
  55406. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageBitmap); overload;
  55407. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageData); overload;
  55408. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aImage: IJSHTMLImageElement); overload;
  55409. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSHTMLCanvasElement); overload;
  55410. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideo: IJSHTMLVideoElement); overload;
  55411. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSOffscreenCanvas); overload;
  55412. procedure texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideoFrame: IJSVideoFrame); overload;
  55413. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  55414. procedure uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  55415. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  55416. procedure uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  55417. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  55418. procedure uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  55419. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array); overload;
  55420. procedure uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray); overload;
  55421. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  55422. procedure uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  55423. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  55424. procedure uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  55425. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  55426. procedure uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  55427. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array); overload;
  55428. procedure uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray); overload;
  55429. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  55430. procedure uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  55431. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  55432. procedure uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  55433. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array); overload;
  55434. procedure uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray); overload;
  55435. class function JSClassName: UnicodeString; override;
  55436. class function Cast(const Intf: IJSObject): IJSWebGLRenderingContext;
  55437. end;
  55438. { --------------------------------------------------------------------
  55439. TJSGPUDevice
  55440. --------------------------------------------------------------------}
  55441. IJSGPUDevice = interface(IJSEventTarget)
  55442. ['{5F825503-86AF-3453-8355-5F1B71874B24}']
  55443. function _Getfeatures: IJSGPUSupportedFeatures;
  55444. function _Getlimits: IJSGPUSupportedLimits;
  55445. function _Getqueue: IJSGPUQueue;
  55446. function _Getlost: IJSPromise;
  55447. function _Getonuncapturederror: TEventHandler;
  55448. function _Getlabel_: UnicodeString;
  55449. procedure _Setonuncapturederror(const aValue: TEventHandler);
  55450. procedure _Setlabel_(const aValue: UnicodeString);
  55451. procedure destroy;
  55452. function createBuffer(const aDescriptor: TJSGPUBufferDescriptor): IJSGPUBuffer;
  55453. function createTexture(const aDescriptor: TJSGPUTextureDescriptor): IJSGPUTexture;
  55454. function createSampler(const aDescriptor: TJSGPUSamplerDescriptor): IJSGPUSampler;
  55455. function createSampler: IJSGPUSampler;
  55456. function createBindGroupLayout(const aDescriptor: TJSGPUBindGroupLayoutDescriptor): IJSGPUBindGroupLayout;
  55457. function createPipelineLayout(const aDescriptor: TJSGPUPipelineLayoutDescriptor): IJSGPUPipelineLayout;
  55458. function createBindGroup(const aDescriptor: TJSGPUBindGroupDescriptor): IJSGPUBindGroup;
  55459. function createShaderModule(const aDescriptor: TJSGPUShaderModuleDescriptor): IJSGPUShaderModule;
  55460. function createComputePipeline(const aDescriptor: TJSGPUComputePipelineDescriptor): IJSGPUComputePipeline;
  55461. function createRenderPipeline(const aDescriptor: TJSGPURenderPipelineDescriptor): IJSGPURenderPipeline;
  55462. function createComputePipelineAsync(const aDescriptor: TJSGPUComputePipelineDescriptor): IJSPromise; // Promise<GPUComputePipeline>
  55463. function createRenderPipelineAsync(const aDescriptor: TJSGPURenderPipelineDescriptor): IJSPromise; // Promise<GPURenderPipeline>
  55464. function createCommandEncoder(const aDescriptor: TJSGPUCommandEncoderDescriptor): IJSGPUCommandEncoder;
  55465. function createCommandEncoder: IJSGPUCommandEncoder;
  55466. function createRenderBundleEncoder(const aDescriptor: TJSGPURenderBundleEncoderDescriptor): IJSGPURenderBundleEncoder;
  55467. procedure pushErrorScope(aFilter: TGPUErrorFilter);
  55468. function popErrorScope: IJSPromise; // Promise<GPUError>
  55469. property features: IJSGPUSupportedFeatures read _Getfeatures;
  55470. property limits: IJSGPUSupportedLimits read _Getlimits;
  55471. property queue: IJSGPUQueue read _Getqueue;
  55472. property lost: IJSPromise read _Getlost;
  55473. property onuncapturederror: TEventHandler read _Getonuncapturederror write _Setonuncapturederror;
  55474. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  55475. end;
  55476. TJSGPUDevice = class(TJSEventTarget,IJSGPUDevice)
  55477. Protected
  55478. function _Getfeatures: IJSGPUSupportedFeatures;
  55479. function _Getlimits: IJSGPUSupportedLimits;
  55480. function _Getqueue: IJSGPUQueue;
  55481. function _Getlost: IJSPromise;
  55482. function _Getonuncapturederror: TEventHandler;
  55483. function _Getlabel_: UnicodeString;
  55484. procedure _Setonuncapturederror(const aValue: TEventHandler);
  55485. procedure _Setlabel_(const aValue: UnicodeString);
  55486. Public
  55487. procedure destroy; overload;
  55488. function createBuffer(const aDescriptor: TJSGPUBufferDescriptor): IJSGPUBuffer; overload;
  55489. function createTexture(const aDescriptor: TJSGPUTextureDescriptor): IJSGPUTexture; overload;
  55490. function createSampler(const aDescriptor: TJSGPUSamplerDescriptor): IJSGPUSampler; overload;
  55491. function createSampler: IJSGPUSampler; overload;
  55492. function createBindGroupLayout(const aDescriptor: TJSGPUBindGroupLayoutDescriptor): IJSGPUBindGroupLayout; overload;
  55493. function createPipelineLayout(const aDescriptor: TJSGPUPipelineLayoutDescriptor): IJSGPUPipelineLayout; overload;
  55494. function createBindGroup(const aDescriptor: TJSGPUBindGroupDescriptor): IJSGPUBindGroup; overload;
  55495. function createShaderModule(const aDescriptor: TJSGPUShaderModuleDescriptor): IJSGPUShaderModule; overload;
  55496. function createComputePipeline(const aDescriptor: TJSGPUComputePipelineDescriptor): IJSGPUComputePipeline; overload;
  55497. function createRenderPipeline(const aDescriptor: TJSGPURenderPipelineDescriptor): IJSGPURenderPipeline; overload;
  55498. function createComputePipelineAsync(const aDescriptor: TJSGPUComputePipelineDescriptor): IJSPromise; overload; // Promise<GPUComputePipeline>
  55499. function createRenderPipelineAsync(const aDescriptor: TJSGPURenderPipelineDescriptor): IJSPromise; overload; // Promise<GPURenderPipeline>
  55500. function createCommandEncoder(const aDescriptor: TJSGPUCommandEncoderDescriptor): IJSGPUCommandEncoder; overload;
  55501. function createCommandEncoder: IJSGPUCommandEncoder; overload;
  55502. function createRenderBundleEncoder(const aDescriptor: TJSGPURenderBundleEncoderDescriptor): IJSGPURenderBundleEncoder; overload;
  55503. procedure pushErrorScope(aFilter: TGPUErrorFilter); overload;
  55504. function popErrorScope: IJSPromise; overload; // Promise<GPUError>
  55505. class function JSClassName: UnicodeString; override;
  55506. class function Cast(const Intf: IJSObject): IJSGPUDevice;
  55507. property features: IJSGPUSupportedFeatures read _Getfeatures;
  55508. property limits: IJSGPUSupportedLimits read _Getlimits;
  55509. property queue: IJSGPUQueue read _Getqueue;
  55510. property lost: IJSPromise read _Getlost;
  55511. property onuncapturederror: TEventHandler read _Getonuncapturederror write _Setonuncapturederror;
  55512. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  55513. end;
  55514. { --------------------------------------------------------------------
  55515. TJSGPUBuffer
  55516. --------------------------------------------------------------------}
  55517. IJSGPUBuffer = interface(IJSGPUObjectBase)
  55518. ['{DB6EA287-517F-32F8-8164-43535AF5498A}']
  55519. function _Getsize: TGPUSize64Out;
  55520. function _Getusage: TGPUFlagsConstant;
  55521. function _GetmapState: TGPUBufferMapState;
  55522. function mapAsync(aMode: TGPUMapModeFlags; aOffset: TGPUSize64; aSize: TGPUSize64): IJSPromise; // Promise<undefined>
  55523. function mapAsync(aMode: TGPUMapModeFlags): IJSPromise; // Promise<undefined>
  55524. function mapAsync(aMode: TGPUMapModeFlags; aOffset: TGPUSize64): IJSPromise; // Promise<undefined>
  55525. function getMappedRange(aOffset: TGPUSize64; aSize: TGPUSize64): IJSArrayBuffer;
  55526. function getMappedRange: IJSArrayBuffer;
  55527. function getMappedRange(aOffset: TGPUSize64): IJSArrayBuffer;
  55528. procedure unmap;
  55529. procedure destroy;
  55530. property size: TGPUSize64Out read _Getsize;
  55531. property usage: TGPUFlagsConstant read _Getusage;
  55532. property mapState: TGPUBufferMapState read _GetmapState;
  55533. end;
  55534. TJSGPUBuffer = class(TJSGPUObjectBase,IJSGPUBuffer)
  55535. Protected
  55536. function _Getsize: TGPUSize64Out;
  55537. function _Getusage: TGPUFlagsConstant;
  55538. function _GetmapState: TGPUBufferMapState;
  55539. Public
  55540. function mapAsync(aMode: TGPUMapModeFlags; aOffset: TGPUSize64; aSize: TGPUSize64): IJSPromise; overload; // Promise<undefined>
  55541. function mapAsync(aMode: TGPUMapModeFlags): IJSPromise; overload; // Promise<undefined>
  55542. function mapAsync(aMode: TGPUMapModeFlags; aOffset: TGPUSize64): IJSPromise; overload; // Promise<undefined>
  55543. function getMappedRange(aOffset: TGPUSize64; aSize: TGPUSize64): IJSArrayBuffer; overload;
  55544. function getMappedRange: IJSArrayBuffer; overload;
  55545. function getMappedRange(aOffset: TGPUSize64): IJSArrayBuffer; overload;
  55546. procedure unmap; overload;
  55547. procedure destroy; overload;
  55548. class function JSClassName: UnicodeString; override;
  55549. class function Cast(const Intf: IJSObject): IJSGPUBuffer;
  55550. property size: TGPUSize64Out read _Getsize;
  55551. property usage: TGPUFlagsConstant read _Getusage;
  55552. property mapState: TGPUBufferMapState read _GetmapState;
  55553. end;
  55554. { --------------------------------------------------------------------
  55555. TJSGPUTexture
  55556. --------------------------------------------------------------------}
  55557. IJSGPUTexture = interface(IJSGPUObjectBase)
  55558. ['{67553666-FDE8-336A-B22B-9D408D2C50C0}']
  55559. function _Getwidth: TGPUIntegerCoordinateOut;
  55560. function _Getheight: TGPUIntegerCoordinateOut;
  55561. function _GetdepthOrArrayLayers: TGPUIntegerCoordinateOut;
  55562. function _GetmipLevelCount: TGPUIntegerCoordinateOut;
  55563. function _GetsampleCount: TGPUSize32Out;
  55564. function _Getdimension: TGPUTextureDimension;
  55565. function _Getformat: TGPUTextureFormat;
  55566. function _Getusage: TGPUFlagsConstant;
  55567. function createView(const aDescriptor: TJSGPUTextureViewDescriptor): IJSGPUTextureView;
  55568. function createView: IJSGPUTextureView;
  55569. procedure destroy;
  55570. property width: TGPUIntegerCoordinateOut read _Getwidth;
  55571. property height: TGPUIntegerCoordinateOut read _Getheight;
  55572. property depthOrArrayLayers: TGPUIntegerCoordinateOut read _GetdepthOrArrayLayers;
  55573. property mipLevelCount: TGPUIntegerCoordinateOut read _GetmipLevelCount;
  55574. property sampleCount: TGPUSize32Out read _GetsampleCount;
  55575. property dimension: TGPUTextureDimension read _Getdimension;
  55576. property format: TGPUTextureFormat read _Getformat;
  55577. property usage: TGPUFlagsConstant read _Getusage;
  55578. end;
  55579. TJSGPUTexture = class(TJSGPUObjectBase,IJSGPUTexture)
  55580. Protected
  55581. function _Getwidth: TGPUIntegerCoordinateOut;
  55582. function _Getheight: TGPUIntegerCoordinateOut;
  55583. function _GetdepthOrArrayLayers: TGPUIntegerCoordinateOut;
  55584. function _GetmipLevelCount: TGPUIntegerCoordinateOut;
  55585. function _GetsampleCount: TGPUSize32Out;
  55586. function _Getdimension: TGPUTextureDimension;
  55587. function _Getformat: TGPUTextureFormat;
  55588. function _Getusage: TGPUFlagsConstant;
  55589. Public
  55590. function createView(const aDescriptor: TJSGPUTextureViewDescriptor): IJSGPUTextureView; overload;
  55591. function createView: IJSGPUTextureView; overload;
  55592. procedure destroy; overload;
  55593. class function JSClassName: UnicodeString; override;
  55594. class function Cast(const Intf: IJSObject): IJSGPUTexture;
  55595. property width: TGPUIntegerCoordinateOut read _Getwidth;
  55596. property height: TGPUIntegerCoordinateOut read _Getheight;
  55597. property depthOrArrayLayers: TGPUIntegerCoordinateOut read _GetdepthOrArrayLayers;
  55598. property mipLevelCount: TGPUIntegerCoordinateOut read _GetmipLevelCount;
  55599. property sampleCount: TGPUSize32Out read _GetsampleCount;
  55600. property dimension: TGPUTextureDimension read _Getdimension;
  55601. property format: TGPUTextureFormat read _Getformat;
  55602. property usage: TGPUFlagsConstant read _Getusage;
  55603. end;
  55604. { --------------------------------------------------------------------
  55605. TJSGPUTextureView
  55606. --------------------------------------------------------------------}
  55607. IJSGPUTextureView = interface(IJSGPUObjectBase)
  55608. ['{A28DC1C8-8F43-3868-8ABA-4AC54D92E5A9}']
  55609. end;
  55610. TJSGPUTextureView = class(TJSGPUObjectBase,IJSGPUTextureView)
  55611. Protected
  55612. Public
  55613. class function JSClassName: UnicodeString; override;
  55614. class function Cast(const Intf: IJSObject): IJSGPUTextureView;
  55615. end;
  55616. { --------------------------------------------------------------------
  55617. TJSGPUSampler
  55618. --------------------------------------------------------------------}
  55619. IJSGPUSampler = interface(IJSGPUObjectBase)
  55620. ['{F0F43EB3-52DF-30E1-A871-F82E89A48332}']
  55621. end;
  55622. TJSGPUSampler = class(TJSGPUObjectBase,IJSGPUSampler)
  55623. Protected
  55624. Public
  55625. class function JSClassName: UnicodeString; override;
  55626. class function Cast(const Intf: IJSObject): IJSGPUSampler;
  55627. end;
  55628. { --------------------------------------------------------------------
  55629. TJSGPUBindGroupLayout
  55630. --------------------------------------------------------------------}
  55631. IJSGPUBindGroupLayout = interface(IJSGPUObjectBase)
  55632. ['{88B33CDF-DB20-3EFD-B7DC-80A7E22871F8}']
  55633. end;
  55634. TJSGPUBindGroupLayout = class(TJSGPUObjectBase,IJSGPUBindGroupLayout)
  55635. Protected
  55636. Public
  55637. class function JSClassName: UnicodeString; override;
  55638. class function Cast(const Intf: IJSObject): IJSGPUBindGroupLayout;
  55639. end;
  55640. { --------------------------------------------------------------------
  55641. TJSGPUBindGroup
  55642. --------------------------------------------------------------------}
  55643. IJSGPUBindGroup = interface(IJSGPUObjectBase)
  55644. ['{E6CF4A03-3E6D-3AF7-B649-1D3C4AA2A621}']
  55645. end;
  55646. TJSGPUBindGroup = class(TJSGPUObjectBase,IJSGPUBindGroup)
  55647. Protected
  55648. Public
  55649. class function JSClassName: UnicodeString; override;
  55650. class function Cast(const Intf: IJSObject): IJSGPUBindGroup;
  55651. end;
  55652. { --------------------------------------------------------------------
  55653. TJSGPUPipelineLayout
  55654. --------------------------------------------------------------------}
  55655. IJSGPUPipelineLayout = interface(IJSGPUObjectBase)
  55656. ['{2B7D2823-BB72-3292-8C0C-331B658B9B25}']
  55657. end;
  55658. TJSGPUPipelineLayout = class(TJSGPUObjectBase,IJSGPUPipelineLayout)
  55659. Protected
  55660. Public
  55661. class function JSClassName: UnicodeString; override;
  55662. class function Cast(const Intf: IJSObject): IJSGPUPipelineLayout;
  55663. end;
  55664. { --------------------------------------------------------------------
  55665. TJSGPUShaderModule
  55666. --------------------------------------------------------------------}
  55667. IJSGPUShaderModule = interface(IJSGPUObjectBase)
  55668. ['{8407A11E-F59B-3C34-B50A-AFEE8614BD5B}']
  55669. function compilationInfo: IJSPromise; // Promise<GPUCompilationInfo>
  55670. function getCompilationInfo: IJSPromise; // Promise<GPUCompilationInfo>
  55671. end;
  55672. TJSGPUShaderModule = class(TJSGPUObjectBase,IJSGPUShaderModule)
  55673. Protected
  55674. Public
  55675. function compilationInfo: IJSPromise; overload; // Promise<GPUCompilationInfo>
  55676. function getCompilationInfo: IJSPromise; overload; // Promise<GPUCompilationInfo>
  55677. class function JSClassName: UnicodeString; override;
  55678. class function Cast(const Intf: IJSObject): IJSGPUShaderModule;
  55679. end;
  55680. { --------------------------------------------------------------------
  55681. TJSGPUCommandBuffer
  55682. --------------------------------------------------------------------}
  55683. IJSGPUCommandBuffer = interface(IJSGPUObjectBase)
  55684. ['{84BBB024-2AAD-306F-986F-5687B0D2E1B9}']
  55685. end;
  55686. TJSGPUCommandBuffer = class(TJSGPUObjectBase,IJSGPUCommandBuffer)
  55687. Protected
  55688. Public
  55689. class function JSClassName: UnicodeString; override;
  55690. class function Cast(const Intf: IJSObject): IJSGPUCommandBuffer;
  55691. end;
  55692. { --------------------------------------------------------------------
  55693. TJSGPURenderBundle
  55694. --------------------------------------------------------------------}
  55695. IJSGPURenderBundle = interface(IJSGPUObjectBase)
  55696. ['{AC6CB1A7-0ADC-3B0A-8B65-25D4397A9444}']
  55697. end;
  55698. TJSGPURenderBundle = class(TJSGPUObjectBase,IJSGPURenderBundle)
  55699. Protected
  55700. Public
  55701. class function JSClassName: UnicodeString; override;
  55702. class function Cast(const Intf: IJSObject): IJSGPURenderBundle;
  55703. end;
  55704. { --------------------------------------------------------------------
  55705. TJSGPUQueue
  55706. --------------------------------------------------------------------}
  55707. TJSGPUCommandBufferDynArray = IJSArray; // array of GPUCommandBuffer
  55708. IJSGPUQueue = interface(IJSGPUObjectBase)
  55709. ['{EE8345FC-5213-3CB6-A931-3D8CAADD79CC}']
  55710. procedure submit(const aBuffers: TJSGPUCommandBufferDynArray);
  55711. function onSubmittedWorkDone: IJSPromise; // Promise<undefined>
  55712. procedure writeBuffer(aBuffer: IJSGPUBuffer; aBufferOffset: TGPUSize64; aData: IJSBufferSource; aDataOffset: TGPUSize64; aSize: TGPUSize64);
  55713. procedure writeBuffer(aBuffer: IJSGPUBuffer; aBufferOffset: TGPUSize64; aData: IJSBufferSource);
  55714. procedure writeBuffer(aBuffer: IJSGPUBuffer; aBufferOffset: TGPUSize64; aData: IJSBufferSource; aDataOffset: TGPUSize64);
  55715. procedure writeTexture(const aDestination: TJSGPUImageCopyTexture; aData: IJSBufferSource; const aDataLayout: TJSGPUImageDataLayout; const aSize: TJSGPUExtent3DDict);
  55716. procedure writeTexture(const aDestination: TJSGPUImageCopyTexture; aData: IJSBufferSource; const aDataLayout: TJSGPUImageDataLayout; const aSize: TGPUIntegerCoordinateDynArray);
  55717. procedure copyExternalImageToTexture(const aSource: TJSGPUImageCopyExternalImage; const aDestination: TJSGPUImageCopyTextureTagged; const aCopySize: TJSGPUExtent3DDict);
  55718. procedure copyExternalImageToTexture(const aSource: TJSGPUImageCopyExternalImage; const aDestination: TJSGPUImageCopyTextureTagged; const aCopySize: TGPUIntegerCoordinateDynArray);
  55719. end;
  55720. TJSGPUQueue = class(TJSGPUObjectBase,IJSGPUQueue)
  55721. Protected
  55722. Public
  55723. procedure submit(const aBuffers: TJSGPUCommandBufferDynArray); overload;
  55724. function onSubmittedWorkDone: IJSPromise; overload; // Promise<undefined>
  55725. procedure writeBuffer(aBuffer: IJSGPUBuffer; aBufferOffset: TGPUSize64; aData: IJSBufferSource; aDataOffset: TGPUSize64; aSize: TGPUSize64); overload;
  55726. procedure writeBuffer(aBuffer: IJSGPUBuffer; aBufferOffset: TGPUSize64; aData: IJSBufferSource); overload;
  55727. procedure writeBuffer(aBuffer: IJSGPUBuffer; aBufferOffset: TGPUSize64; aData: IJSBufferSource; aDataOffset: TGPUSize64); overload;
  55728. procedure writeTexture(const aDestination: TJSGPUImageCopyTexture; aData: IJSBufferSource; const aDataLayout: TJSGPUImageDataLayout; const aSize: TJSGPUExtent3DDict); overload;
  55729. procedure writeTexture(const aDestination: TJSGPUImageCopyTexture; aData: IJSBufferSource; const aDataLayout: TJSGPUImageDataLayout; const aSize: TGPUIntegerCoordinateDynArray); overload;
  55730. procedure copyExternalImageToTexture(const aSource: TJSGPUImageCopyExternalImage; const aDestination: TJSGPUImageCopyTextureTagged; const aCopySize: TJSGPUExtent3DDict); overload;
  55731. procedure copyExternalImageToTexture(const aSource: TJSGPUImageCopyExternalImage; const aDestination: TJSGPUImageCopyTextureTagged; const aCopySize: TGPUIntegerCoordinateDynArray); overload;
  55732. class function JSClassName: UnicodeString; override;
  55733. class function Cast(const Intf: IJSObject): IJSGPUQueue;
  55734. end;
  55735. { --------------------------------------------------------------------
  55736. TJSGPUQuerySet
  55737. --------------------------------------------------------------------}
  55738. IJSGPUQuerySet = interface(IJSGPUObjectBase)
  55739. ['{1B5FED8E-51CF-397C-9661-A6C92E39D61C}']
  55740. procedure destroy;
  55741. end;
  55742. TJSGPUQuerySet = class(TJSGPUObjectBase,IJSGPUQuerySet)
  55743. Protected
  55744. Public
  55745. procedure destroy; overload;
  55746. class function JSClassName: UnicodeString; override;
  55747. class function Cast(const Intf: IJSObject): IJSGPUQuerySet;
  55748. end;
  55749. { --------------------------------------------------------------------
  55750. TJSGPUValidationError
  55751. --------------------------------------------------------------------}
  55752. IJSGPUValidationError = interface(IJSGPUError)
  55753. ['{C8B33CE1-5310-37F0-8692-AF93D3334991}']
  55754. end;
  55755. TJSGPUValidationError = class(TJSGPUError,IJSGPUValidationError)
  55756. Protected
  55757. Public
  55758. constructor Create(const aMessage: UnicodeString); overload;
  55759. class function JSClassName: UnicodeString; override;
  55760. class function Cast(const Intf: IJSObject): IJSGPUValidationError;
  55761. end;
  55762. { --------------------------------------------------------------------
  55763. TJSGPUOutOfMemoryError
  55764. --------------------------------------------------------------------}
  55765. IJSGPUOutOfMemoryError = interface(IJSGPUError)
  55766. ['{ED9DED7E-8648-3557-B10C-0482A498B06B}']
  55767. end;
  55768. TJSGPUOutOfMemoryError = class(TJSGPUError,IJSGPUOutOfMemoryError)
  55769. Protected
  55770. Public
  55771. constructor Create(const aMessage: UnicodeString); overload;
  55772. class function JSClassName: UnicodeString; override;
  55773. class function Cast(const Intf: IJSObject): IJSGPUOutOfMemoryError;
  55774. end;
  55775. { --------------------------------------------------------------------
  55776. TJSGPUInternalError
  55777. --------------------------------------------------------------------}
  55778. IJSGPUInternalError = interface(IJSGPUError)
  55779. ['{84BBB025-E9E3-326C-8ABE-524CD73246B9}']
  55780. end;
  55781. TJSGPUInternalError = class(TJSGPUError,IJSGPUInternalError)
  55782. Protected
  55783. Public
  55784. constructor Create(const aMessage: UnicodeString); overload;
  55785. class function JSClassName: UnicodeString; override;
  55786. class function Cast(const Intf: IJSObject): IJSGPUInternalError;
  55787. end;
  55788. { --------------------------------------------------------------------
  55789. TJSWebSocket
  55790. --------------------------------------------------------------------}
  55791. // Union of DOMString, sequence
  55792. TWebSocket_New_protocols_Type = Variant;
  55793. IJSWebSocket = interface(IJSEventTarget)
  55794. ['{DD3636D6-08D2-3813-AA92-E9380571B6FF}']
  55795. function _Geturl: UnicodeString;
  55796. function _GetreadyState: Word;
  55797. function _GetbufferedAmount: QWord;
  55798. function _Getonopen: TEventHandler;
  55799. function _Getonerror: TEventHandler;
  55800. function _Getonclose: TEventHandler;
  55801. function _Getextensions: UnicodeString;
  55802. function _Getprotocol: UnicodeString;
  55803. function _Getonmessage: TEventHandler;
  55804. function _GetbinaryType: TBinaryType;
  55805. procedure _Setonopen(const aValue: TEventHandler);
  55806. procedure _Setonerror(const aValue: TEventHandler);
  55807. procedure _Setonclose(const aValue: TEventHandler);
  55808. procedure _Setonmessage(const aValue: TEventHandler);
  55809. procedure _SetbinaryType(const aValue: TBinaryType);
  55810. procedure close(aCode: Word; const aReason: UnicodeString);
  55811. procedure close;
  55812. procedure close(aCode: Word);
  55813. procedure send(const aData: UnicodeString);
  55814. procedure send(aData: IJSBlob);
  55815. procedure send(aData: IJSArrayBuffer);
  55816. procedure send(aData: IJSArrayBufferView);
  55817. property url: UnicodeString read _Geturl;
  55818. property readyState: Word read _GetreadyState;
  55819. property bufferedAmount: QWord read _GetbufferedAmount;
  55820. property onopen: TEventHandler read _Getonopen write _Setonopen;
  55821. property onerror: TEventHandler read _Getonerror write _Setonerror;
  55822. property onclose: TEventHandler read _Getonclose write _Setonclose;
  55823. property extensions: UnicodeString read _Getextensions;
  55824. property protocol: UnicodeString read _Getprotocol;
  55825. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  55826. property binaryType: TBinaryType read _GetbinaryType write _SetbinaryType;
  55827. end;
  55828. TJSWebSocket = class(TJSEventTarget,IJSWebSocket)
  55829. Protected
  55830. function _Geturl: UnicodeString;
  55831. function _GetreadyState: Word;
  55832. function _GetbufferedAmount: QWord;
  55833. function _Getonopen: TEventHandler;
  55834. function _Getonerror: TEventHandler;
  55835. function _Getonclose: TEventHandler;
  55836. function _Getextensions: UnicodeString;
  55837. function _Getprotocol: UnicodeString;
  55838. function _Getonmessage: TEventHandler;
  55839. function _GetbinaryType: TBinaryType;
  55840. procedure _Setonopen(const aValue: TEventHandler);
  55841. procedure _Setonerror(const aValue: TEventHandler);
  55842. procedure _Setonclose(const aValue: TEventHandler);
  55843. procedure _Setonmessage(const aValue: TEventHandler);
  55844. procedure _SetbinaryType(const aValue: TBinaryType);
  55845. Public
  55846. Const
  55847. CONNECTING = 0;
  55848. OPEN = 1;
  55849. CLOSING = 2;
  55850. CLOSED = 3;
  55851. Public
  55852. constructor Create(const aUrl: UnicodeString; const aProtocols: UnicodeString); overload;
  55853. constructor Create(const aUrl: UnicodeString); overload;
  55854. constructor Create(const aUrl: UnicodeString; const aProtocols: TUnicodeStringDynArray); overload;
  55855. procedure close(aCode: Word; const aReason: UnicodeString); overload;
  55856. procedure close; overload;
  55857. procedure close(aCode: Word); overload;
  55858. procedure send(const aData: UnicodeString); overload;
  55859. procedure send(aData: IJSBlob); overload;
  55860. procedure send(aData: IJSArrayBuffer); overload;
  55861. procedure send(aData: IJSArrayBufferView); overload;
  55862. class function JSClassName: UnicodeString; override;
  55863. class function Cast(const Intf: IJSObject): IJSWebSocket;
  55864. property url: UnicodeString read _Geturl;
  55865. property readyState: Word read _GetreadyState;
  55866. property bufferedAmount: QWord read _GetbufferedAmount;
  55867. property onopen: TEventHandler read _Getonopen write _Setonopen;
  55868. property onerror: TEventHandler read _Getonerror write _Setonerror;
  55869. property onclose: TEventHandler read _Getonclose write _Setonclose;
  55870. property extensions: UnicodeString read _Getextensions;
  55871. property protocol: UnicodeString read _Getprotocol;
  55872. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  55873. property binaryType: TBinaryType read _GetbinaryType write _SetbinaryType;
  55874. end;
  55875. { --------------------------------------------------------------------
  55876. TJSTaskController
  55877. --------------------------------------------------------------------}
  55878. IJSTaskController = interface(IJSAbortController)
  55879. ['{B5EF8C08-F2F3-32D8-8AB2-83A2F0583806}']
  55880. procedure setPriority(aPriority: TTaskPriority);
  55881. end;
  55882. TJSTaskController = class(TJSAbortController,IJSTaskController)
  55883. Protected
  55884. Public
  55885. constructor Create(const aInit: TJSTaskControllerInit); overload;
  55886. constructor Create; overload;
  55887. procedure setPriority(aPriority: TTaskPriority); overload;
  55888. class function JSClassName: UnicodeString; override;
  55889. class function Cast(const Intf: IJSObject): IJSTaskController;
  55890. end;
  55891. { --------------------------------------------------------------------
  55892. TJSWebTransportSendStream
  55893. --------------------------------------------------------------------}
  55894. IJSWebTransportSendStream = interface(IJSWritableStream)
  55895. ['{E6C0F141-9691-3941-BDA1-4F5CCA290F5C}']
  55896. function _GetsendOrder: Int64;
  55897. procedure _SetsendOrder(const aValue: Int64);
  55898. function getStats: IJSPromise; // Promise<WebTransportSendStreamStats>
  55899. property sendOrder: Int64 read _GetsendOrder write _SetsendOrder;
  55900. end;
  55901. TJSWebTransportSendStream = class(TJSWritableStream,IJSWebTransportSendStream)
  55902. Protected
  55903. function _GetsendOrder: Int64;
  55904. procedure _SetsendOrder(const aValue: Int64);
  55905. Public
  55906. function getStats: IJSPromise; overload; // Promise<WebTransportSendStreamStats>
  55907. class function JSClassName: UnicodeString; override;
  55908. class function Cast(const Intf: IJSObject): IJSWebTransportSendStream;
  55909. property sendOrder: Int64 read _GetsendOrder write _SetsendOrder;
  55910. end;
  55911. { --------------------------------------------------------------------
  55912. TJSWebTransportReceiveStream
  55913. --------------------------------------------------------------------}
  55914. IJSWebTransportReceiveStream = interface(IJSReadableStream)
  55915. ['{DB693F9E-14CA-39DB-90ED-93696B22F507}']
  55916. function getStats: IJSPromise; // Promise<WebTransportReceiveStreamStats>
  55917. end;
  55918. TJSWebTransportReceiveStream = class(TJSReadableStream,IJSWebTransportReceiveStream)
  55919. Protected
  55920. Public
  55921. function getStats: IJSPromise; overload; // Promise<WebTransportReceiveStreamStats>
  55922. class function JSClassName: UnicodeString; override;
  55923. class function Cast(const Intf: IJSObject): IJSWebTransportReceiveStream;
  55924. end;
  55925. { --------------------------------------------------------------------
  55926. TJSXRSystem
  55927. --------------------------------------------------------------------}
  55928. IJSXRSystem = interface(IJSEventTarget)
  55929. ['{AEB8F56A-CC7D-3E01-8C97-C18DBCDEDA4A}']
  55930. function _Getondevicechange: TEventHandler;
  55931. procedure _Setondevicechange(const aValue: TEventHandler);
  55932. function isSessionSupported(aMode: TXRSessionMode): IJSPromise; // Promise<boolean>
  55933. function requestSession(aMode: TXRSessionMode; const aOptions: TJSXRSessionInit): IJSPromise; // Promise<XRSession>
  55934. function requestSession(aMode: TXRSessionMode): IJSPromise; // Promise<XRSession>
  55935. property ondevicechange: TEventHandler read _Getondevicechange write _Setondevicechange;
  55936. end;
  55937. TJSXRSystem = class(TJSEventTarget,IJSXRSystem)
  55938. Protected
  55939. function _Getondevicechange: TEventHandler;
  55940. procedure _Setondevicechange(const aValue: TEventHandler);
  55941. Public
  55942. function isSessionSupported(aMode: TXRSessionMode): IJSPromise; overload; // Promise<boolean>
  55943. function requestSession(aMode: TXRSessionMode; const aOptions: TJSXRSessionInit): IJSPromise; overload; // Promise<XRSession>
  55944. function requestSession(aMode: TXRSessionMode): IJSPromise; overload; // Promise<XRSession>
  55945. class function JSClassName: UnicodeString; override;
  55946. class function Cast(const Intf: IJSObject): IJSXRSystem;
  55947. property ondevicechange: TEventHandler read _Getondevicechange write _Setondevicechange;
  55948. end;
  55949. { --------------------------------------------------------------------
  55950. TJSXRSession
  55951. --------------------------------------------------------------------}
  55952. IJSXRSession = interface(IJSEventTarget)
  55953. ['{9C6239C1-4B16-3AA9-9D2C-8067C3478282}']
  55954. function _GetvisibilityState: TXRVisibilityState;
  55955. function _GetrenderState: IJSXRRenderState;
  55956. function _GetinputSources: IJSXRInputSourceArray;
  55957. function _GetframeRate: Single;
  55958. function _GetsupportedFrameRates: IJSFloat32Array;
  55959. function _Getonend: TEventHandler;
  55960. function _Getoninputsourceschange: TEventHandler;
  55961. function _Getonselect: TEventHandler;
  55962. function _Getonselectstart: TEventHandler;
  55963. function _Getonselectend: TEventHandler;
  55964. function _Getonsqueeze: TEventHandler;
  55965. function _Getonsqueezestart: TEventHandler;
  55966. function _Getonsqueezeend: TEventHandler;
  55967. function _Getonvisibilitychange: TEventHandler;
  55968. procedure _Setonend(const aValue: TEventHandler);
  55969. procedure _Setoninputsourceschange(const aValue: TEventHandler);
  55970. procedure _Setonselect(const aValue: TEventHandler);
  55971. procedure _Setonselectstart(const aValue: TEventHandler);
  55972. procedure _Setonselectend(const aValue: TEventHandler);
  55973. procedure _Setonsqueeze(const aValue: TEventHandler);
  55974. procedure _Setonsqueezestart(const aValue: TEventHandler);
  55975. procedure _Setonsqueezeend(const aValue: TEventHandler);
  55976. procedure _Setonvisibilitychange(const aValue: TEventHandler);
  55977. procedure updateRenderState(const aState: TJSXRRenderStateInit);
  55978. procedure updateRenderState;
  55979. function requestReferenceSpace(aType_: TXRReferenceSpaceType): IJSPromise; // Promise<XRReferenceSpace>
  55980. function updateTargetFrameRate(aRate: Single): IJSPromise; // Promise<undefined>
  55981. function requestAnimationFrame(const aCallback: TXRFrameRequestCallback): LongInt;
  55982. procedure cancelAnimationFrame(aHandle: LongInt);
  55983. function end_: IJSPromise; // Promise<undefined>
  55984. property visibilityState: TXRVisibilityState read _GetvisibilityState;
  55985. property renderState: IJSXRRenderState read _GetrenderState;
  55986. property inputSources: IJSXRInputSourceArray read _GetinputSources;
  55987. property frameRate: Single read _GetframeRate;
  55988. property supportedFrameRates: IJSFloat32Array read _GetsupportedFrameRates;
  55989. property onend: TEventHandler read _Getonend write _Setonend;
  55990. property oninputsourceschange: TEventHandler read _Getoninputsourceschange write _Setoninputsourceschange;
  55991. property onselect: TEventHandler read _Getonselect write _Setonselect;
  55992. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  55993. property onselectend: TEventHandler read _Getonselectend write _Setonselectend;
  55994. property onsqueeze: TEventHandler read _Getonsqueeze write _Setonsqueeze;
  55995. property onsqueezestart: TEventHandler read _Getonsqueezestart write _Setonsqueezestart;
  55996. property onsqueezeend: TEventHandler read _Getonsqueezeend write _Setonsqueezeend;
  55997. property onvisibilitychange: TEventHandler read _Getonvisibilitychange write _Setonvisibilitychange;
  55998. end;
  55999. TJSXRSession = class(TJSEventTarget,IJSXRSession)
  56000. Protected
  56001. function _GetvisibilityState: TXRVisibilityState;
  56002. function _GetrenderState: IJSXRRenderState;
  56003. function _GetinputSources: IJSXRInputSourceArray;
  56004. function _GetframeRate: Single;
  56005. function _GetsupportedFrameRates: IJSFloat32Array;
  56006. function _Getonend: TEventHandler;
  56007. function _Getoninputsourceschange: TEventHandler;
  56008. function _Getonselect: TEventHandler;
  56009. function _Getonselectstart: TEventHandler;
  56010. function _Getonselectend: TEventHandler;
  56011. function _Getonsqueeze: TEventHandler;
  56012. function _Getonsqueezestart: TEventHandler;
  56013. function _Getonsqueezeend: TEventHandler;
  56014. function _Getonvisibilitychange: TEventHandler;
  56015. procedure _Setonend(const aValue: TEventHandler);
  56016. procedure _Setoninputsourceschange(const aValue: TEventHandler);
  56017. procedure _Setonselect(const aValue: TEventHandler);
  56018. procedure _Setonselectstart(const aValue: TEventHandler);
  56019. procedure _Setonselectend(const aValue: TEventHandler);
  56020. procedure _Setonsqueeze(const aValue: TEventHandler);
  56021. procedure _Setonsqueezestart(const aValue: TEventHandler);
  56022. procedure _Setonsqueezeend(const aValue: TEventHandler);
  56023. procedure _Setonvisibilitychange(const aValue: TEventHandler);
  56024. Public
  56025. procedure updateRenderState(const aState: TJSXRRenderStateInit); overload;
  56026. procedure updateRenderState; overload;
  56027. function requestReferenceSpace(aType_: TXRReferenceSpaceType): IJSPromise; overload; // Promise<XRReferenceSpace>
  56028. function updateTargetFrameRate(aRate: Single): IJSPromise; overload; // Promise<undefined>
  56029. function requestAnimationFrame(const aCallback: TXRFrameRequestCallback): LongInt; overload;
  56030. procedure cancelAnimationFrame(aHandle: LongInt); overload;
  56031. function end_: IJSPromise; overload; // Promise<undefined>
  56032. class function JSClassName: UnicodeString; override;
  56033. class function Cast(const Intf: IJSObject): IJSXRSession;
  56034. property visibilityState: TXRVisibilityState read _GetvisibilityState;
  56035. property renderState: IJSXRRenderState read _GetrenderState;
  56036. property inputSources: IJSXRInputSourceArray read _GetinputSources;
  56037. property frameRate: Single read _GetframeRate;
  56038. property supportedFrameRates: IJSFloat32Array read _GetsupportedFrameRates;
  56039. property onend: TEventHandler read _Getonend write _Setonend;
  56040. property oninputsourceschange: TEventHandler read _Getoninputsourceschange write _Setoninputsourceschange;
  56041. property onselect: TEventHandler read _Getonselect write _Setonselect;
  56042. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  56043. property onselectend: TEventHandler read _Getonselectend write _Setonselectend;
  56044. property onsqueeze: TEventHandler read _Getonsqueeze write _Setonsqueeze;
  56045. property onsqueezestart: TEventHandler read _Getonsqueezestart write _Setonsqueezestart;
  56046. property onsqueezeend: TEventHandler read _Getonsqueezeend write _Setonsqueezeend;
  56047. property onvisibilitychange: TEventHandler read _Getonvisibilitychange write _Setonvisibilitychange;
  56048. end;
  56049. { --------------------------------------------------------------------
  56050. TJSXRSpace
  56051. --------------------------------------------------------------------}
  56052. IJSXRSpace = interface(IJSEventTarget)
  56053. ['{ABBEEF2E-8585-3D8A-B134-445241194965}']
  56054. end;
  56055. TJSXRSpace = class(TJSEventTarget,IJSXRSpace)
  56056. Protected
  56057. Public
  56058. class function JSClassName: UnicodeString; override;
  56059. class function Cast(const Intf: IJSObject): IJSXRSpace;
  56060. end;
  56061. { --------------------------------------------------------------------
  56062. TJSXRViewerPose
  56063. --------------------------------------------------------------------}
  56064. TJSXRViewDynArray = IJSArray; // array of XRView
  56065. IJSXRViewerPose = interface(IJSXRPose)
  56066. ['{F8E45B1D-29B6-3B60-848B-028191674B32}']
  56067. function _Getviews: TJSXRViewDynArray;
  56068. property views: TJSXRViewDynArray read _Getviews;
  56069. end;
  56070. TJSXRViewerPose = class(TJSXRPose,IJSXRViewerPose)
  56071. Protected
  56072. function _Getviews: TJSXRViewDynArray;
  56073. Public
  56074. class function JSClassName: UnicodeString; override;
  56075. class function Cast(const Intf: IJSObject): IJSXRViewerPose;
  56076. property views: TJSXRViewDynArray read _Getviews;
  56077. end;
  56078. { --------------------------------------------------------------------
  56079. TJSWindow
  56080. --------------------------------------------------------------------}
  56081. // Union of Event, undefined
  56082. TWindow_event_Type = Variant;
  56083. IJSWindow = interface(IJSEventTarget)
  56084. ['{8C2FFAA1-2B45-34DB-931F-96C5BAE6A914}']
  56085. function _Getwindow: IJSWindowProxy;
  56086. function _Getself_: IJSWindowProxy;
  56087. function _Getdocument: IJSDocument;
  56088. function _Getname: UnicodeString;
  56089. function _Getlocation: IJSLocation;
  56090. function _Gethistory: IJSHistory;
  56091. function _GetcustomElements: IJSCustomElementRegistry;
  56092. function _Getlocationbar: IJSBarProp;
  56093. function _Getmenubar: IJSBarProp;
  56094. function _Getpersonalbar: IJSBarProp;
  56095. function _Getscrollbars: IJSBarProp;
  56096. function _Getstatusbar: IJSBarProp;
  56097. function _Gettoolbar: IJSBarProp;
  56098. function _Getstatus: UnicodeString;
  56099. function _Getclosed: Boolean;
  56100. function _Getevent: TWindow_event_Type;
  56101. function _Getframes: IJSWindowProxy;
  56102. function _Getlength_: Cardinal;
  56103. function _Gettop: IJSWindowProxy;
  56104. function _Getopener: Variant;
  56105. function _Getparent: IJSWindowProxy;
  56106. function _GetframeElement: IJSElement;
  56107. function _Getnavigator: IJSNavigator;
  56108. function _GetclientInformation: IJSNavigator;
  56109. function _Getexternal: IJSExternal;
  56110. function _Getscreen: IJSScreen;
  56111. function _GetinnerWidth: Double;
  56112. function _GetinnerHeight: Double;
  56113. function _GetscrollX: Double;
  56114. function _GetpageXOffset: Double;
  56115. function _GetscrollY: Double;
  56116. function _GetpageYOffset: Double;
  56117. function _GetscreenLeft: Double;
  56118. function _GetscreenTop: Double;
  56119. function _GetscreenX: Double;
  56120. function _GetscreenY: Double;
  56121. function _GetouterWidth: Double;
  56122. function _GetouterHeight: Double;
  56123. function _Getperformance: IJSPerformance;
  56124. function _GetmozInnerScreenX: Single;
  56125. function _GetmozInnerScreenY: Single;
  56126. function _GetdevicePixelRatio: Double;
  56127. function _GetscrollMaxX: LongInt;
  56128. function _GetscrollMaxY: LongInt;
  56129. function _GetfullScreen: Boolean;
  56130. function _Getondevicemotion: TEventHandler;
  56131. function _Getondeviceorientation: TEventHandler;
  56132. function _Getondeviceorientationabsolute: TEventHandler;
  56133. function _Getonuserproximity: TEventHandler;
  56134. function _Getondevicelight: TEventHandler;
  56135. function _GetwindowState: Word;
  56136. function _GetisFullyOccluded: Boolean;
  56137. function _GetbrowserDOMWindow: IJSnsIBrowserDOMWindow;
  56138. function _GetisChromeWindow: Boolean;
  56139. function _GetGlean: IJSGleanImpl;
  56140. function _GetGleanPings: IJSGleanPingsImpl;
  56141. function _Getonvrdisplayconnect: TEventHandler;
  56142. function _Getonvrdisplaydisconnect: TEventHandler;
  56143. function _Getonvrdisplayactivate: TEventHandler;
  56144. function _Getonvrdisplaydeactivate: TEventHandler;
  56145. function _Getonvrdisplaypresentchange: TEventHandler;
  56146. function _GetpaintWorklet: IJSWorklet;
  56147. function _GetintlUtils: IJSIntlUtils;
  56148. function _GetvisualViewport: IJSVisualViewport;
  56149. function _Getonabort: TEventHandler;
  56150. function _Getonblur: TEventHandler;
  56151. function _Getonfocus: TEventHandler;
  56152. function _Getoncancel: TEventHandler;
  56153. function _Getonauxclick: TEventHandler;
  56154. function _Getonbeforeinput: TEventHandler;
  56155. function _Getonbeforetoggle: TEventHandler;
  56156. function _Getoncanplay: TEventHandler;
  56157. function _Getoncanplaythrough: TEventHandler;
  56158. function _Getonchange: TEventHandler;
  56159. function _Getonclick: TEventHandler;
  56160. function _Getonclose: TEventHandler;
  56161. function _Getoncontextlost: TEventHandler;
  56162. function _Getoncontextmenu: TEventHandler;
  56163. function _Getoncontextrestored: TEventHandler;
  56164. function _Getoncopy: TEventHandler;
  56165. function _Getoncuechange: TEventHandler;
  56166. function _Getoncut: TEventHandler;
  56167. function _Getondblclick: TEventHandler;
  56168. function _Getondrag: TEventHandler;
  56169. function _Getondragend: TEventHandler;
  56170. function _Getondragenter: TEventHandler;
  56171. function _Getondragexit: TEventHandler;
  56172. function _Getondragleave: TEventHandler;
  56173. function _Getondragover: TEventHandler;
  56174. function _Getondragstart: TEventHandler;
  56175. function _Getondrop: TEventHandler;
  56176. function _Getondurationchange: TEventHandler;
  56177. function _Getonemptied: TEventHandler;
  56178. function _Getonended: TEventHandler;
  56179. function _Getonformdata: TEventHandler;
  56180. function _Getoninput: TEventHandler;
  56181. function _Getoninvalid: TEventHandler;
  56182. function _Getonkeydown: TEventHandler;
  56183. function _Getonkeypress: TEventHandler;
  56184. function _Getonkeyup: TEventHandler;
  56185. function _Getonload: TEventHandler;
  56186. function _Getonloadeddata: TEventHandler;
  56187. function _Getonloadedmetadata: TEventHandler;
  56188. function _Getonloadstart: TEventHandler;
  56189. function _Getonmousedown: TEventHandler;
  56190. function _Getonmouseenter: TEventHandler;
  56191. function _Getonmouseleave: TEventHandler;
  56192. function _Getonmousemove: TEventHandler;
  56193. function _Getonmouseout: TEventHandler;
  56194. function _Getonmouseover: TEventHandler;
  56195. function _Getonmouseup: TEventHandler;
  56196. function _Getonwheel: TEventHandler;
  56197. function _Getonpaste: TEventHandler;
  56198. function _Getonpause: TEventHandler;
  56199. function _Getonplay: TEventHandler;
  56200. function _Getonplaying: TEventHandler;
  56201. function _Getonprogress: TEventHandler;
  56202. function _Getonratechange: TEventHandler;
  56203. function _Getonreset: TEventHandler;
  56204. function _Getonresize: TEventHandler;
  56205. function _Getonscroll: TEventHandler;
  56206. function _Getonscrollend: TEventHandler;
  56207. function _Getonsecuritypolicyviolation: TEventHandler;
  56208. function _Getonseeked: TEventHandler;
  56209. function _Getonseeking: TEventHandler;
  56210. function _Getonselect: TEventHandler;
  56211. function _Getonslotchange: TEventHandler;
  56212. function _Getonstalled: TEventHandler;
  56213. function _Getonsubmit: TEventHandler;
  56214. function _Getonsuspend: TEventHandler;
  56215. function _Getontimeupdate: TEventHandler;
  56216. function _Getonvolumechange: TEventHandler;
  56217. function _Getonwaiting: TEventHandler;
  56218. function _Getonselectstart: TEventHandler;
  56219. function _Getonselectionchange: TEventHandler;
  56220. function _Getontoggle: TEventHandler;
  56221. function _Getonpointercancel: TEventHandler;
  56222. function _Getonpointerdown: TEventHandler;
  56223. function _Getonpointerup: TEventHandler;
  56224. function _Getonpointermove: TEventHandler;
  56225. function _Getonpointerout: TEventHandler;
  56226. function _Getonpointerover: TEventHandler;
  56227. function _Getonpointerenter: TEventHandler;
  56228. function _Getonpointerleave: TEventHandler;
  56229. function _Getongotpointercapture: TEventHandler;
  56230. function _Getonlostpointercapture: TEventHandler;
  56231. function _Getonmozfullscreenchange: TEventHandler;
  56232. function _Getonmozfullscreenerror: TEventHandler;
  56233. function _Getonanimationcancel: TEventHandler;
  56234. function _Getonanimationend: TEventHandler;
  56235. function _Getonanimationiteration: TEventHandler;
  56236. function _Getonanimationstart: TEventHandler;
  56237. function _Getontransitioncancel: TEventHandler;
  56238. function _Getontransitionend: TEventHandler;
  56239. function _Getontransitionrun: TEventHandler;
  56240. function _Getontransitionstart: TEventHandler;
  56241. function _Getonwebkitanimationend: TEventHandler;
  56242. function _Getonwebkitanimationiteration: TEventHandler;
  56243. function _Getonwebkitanimationstart: TEventHandler;
  56244. function _Getonwebkittransitionend: TEventHandler;
  56245. function _Getonafterprint: TEventHandler;
  56246. function _Getonbeforeprint: TEventHandler;
  56247. function _Getonbeforeunload: TOnBeforeUnloadEventHandler;
  56248. function _Getonhashchange: TEventHandler;
  56249. function _Getonlanguagechange: TEventHandler;
  56250. function _Getonmessage: TEventHandler;
  56251. function _Getonmessageerror: TEventHandler;
  56252. function _Getonoffline: TEventHandler;
  56253. function _Getononline: TEventHandler;
  56254. function _Getonpagehide: TEventHandler;
  56255. function _Getonpageshow: TEventHandler;
  56256. function _Getonpopstate: TEventHandler;
  56257. function _Getonrejectionhandled: TEventHandler;
  56258. function _Getonstorage: TEventHandler;
  56259. function _Getonunhandledrejection: TEventHandler;
  56260. function _Getonunload: TEventHandler;
  56261. function _Getongamepadconnected: TEventHandler;
  56262. function _Getongamepaddisconnected: TEventHandler;
  56263. function _GetsessionStorage: IJSStorage;
  56264. function _GetlocalStorage: IJSStorage;
  56265. function _Getcrypto: IJSCrypto;
  56266. function _Getontouchstart: TEventHandler;
  56267. function _Getontouchend: TEventHandler;
  56268. function _Getontouchmove: TEventHandler;
  56269. function _Getontouchcancel: TEventHandler;
  56270. function _Getonerror: TOnErrorEventHandler;
  56271. function _Getorigin: UnicodeString;
  56272. function _GetcrossOriginIsolated: Boolean;
  56273. function _GetisSecureContext: Boolean;
  56274. function _GetindexedDB: IJSIDBFactory;
  56275. function _Getcaches: IJSCacheStorage;
  56276. function _Getscheduler: IJSScheduler;
  56277. function _GettrustedTypes: IJSTrustedTypePolicyFactory;
  56278. procedure _Setname(const aValue: UnicodeString);
  56279. procedure _Setstatus(const aValue: UnicodeString);
  56280. procedure _Setopener(const aValue: Variant);
  56281. procedure _SetfullScreen(const aValue: Boolean);
  56282. procedure _Setondevicemotion(const aValue: TEventHandler);
  56283. procedure _Setondeviceorientation(const aValue: TEventHandler);
  56284. procedure _Setondeviceorientationabsolute(const aValue: TEventHandler);
  56285. procedure _Setonuserproximity(const aValue: TEventHandler);
  56286. procedure _Setondevicelight(const aValue: TEventHandler);
  56287. procedure _SetbrowserDOMWindow(const aValue: IJSnsIBrowserDOMWindow);
  56288. procedure _Setonvrdisplayconnect(const aValue: TEventHandler);
  56289. procedure _Setonvrdisplaydisconnect(const aValue: TEventHandler);
  56290. procedure _Setonvrdisplayactivate(const aValue: TEventHandler);
  56291. procedure _Setonvrdisplaydeactivate(const aValue: TEventHandler);
  56292. procedure _Setonvrdisplaypresentchange(const aValue: TEventHandler);
  56293. procedure _Setonabort(const aValue: TEventHandler);
  56294. procedure _Setonblur(const aValue: TEventHandler);
  56295. procedure _Setonfocus(const aValue: TEventHandler);
  56296. procedure _Setoncancel(const aValue: TEventHandler);
  56297. procedure _Setonauxclick(const aValue: TEventHandler);
  56298. procedure _Setonbeforeinput(const aValue: TEventHandler);
  56299. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  56300. procedure _Setoncanplay(const aValue: TEventHandler);
  56301. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  56302. procedure _Setonchange(const aValue: TEventHandler);
  56303. procedure _Setonclick(const aValue: TEventHandler);
  56304. procedure _Setonclose(const aValue: TEventHandler);
  56305. procedure _Setoncontextlost(const aValue: TEventHandler);
  56306. procedure _Setoncontextmenu(const aValue: TEventHandler);
  56307. procedure _Setoncontextrestored(const aValue: TEventHandler);
  56308. procedure _Setoncopy(const aValue: TEventHandler);
  56309. procedure _Setoncuechange(const aValue: TEventHandler);
  56310. procedure _Setoncut(const aValue: TEventHandler);
  56311. procedure _Setondblclick(const aValue: TEventHandler);
  56312. procedure _Setondrag(const aValue: TEventHandler);
  56313. procedure _Setondragend(const aValue: TEventHandler);
  56314. procedure _Setondragenter(const aValue: TEventHandler);
  56315. procedure _Setondragexit(const aValue: TEventHandler);
  56316. procedure _Setondragleave(const aValue: TEventHandler);
  56317. procedure _Setondragover(const aValue: TEventHandler);
  56318. procedure _Setondragstart(const aValue: TEventHandler);
  56319. procedure _Setondrop(const aValue: TEventHandler);
  56320. procedure _Setondurationchange(const aValue: TEventHandler);
  56321. procedure _Setonemptied(const aValue: TEventHandler);
  56322. procedure _Setonended(const aValue: TEventHandler);
  56323. procedure _Setonformdata(const aValue: TEventHandler);
  56324. procedure _Setoninput(const aValue: TEventHandler);
  56325. procedure _Setoninvalid(const aValue: TEventHandler);
  56326. procedure _Setonkeydown(const aValue: TEventHandler);
  56327. procedure _Setonkeypress(const aValue: TEventHandler);
  56328. procedure _Setonkeyup(const aValue: TEventHandler);
  56329. procedure _Setonload(const aValue: TEventHandler);
  56330. procedure _Setonloadeddata(const aValue: TEventHandler);
  56331. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  56332. procedure _Setonloadstart(const aValue: TEventHandler);
  56333. procedure _Setonmousedown(const aValue: TEventHandler);
  56334. procedure _Setonmouseenter(const aValue: TEventHandler);
  56335. procedure _Setonmouseleave(const aValue: TEventHandler);
  56336. procedure _Setonmousemove(const aValue: TEventHandler);
  56337. procedure _Setonmouseout(const aValue: TEventHandler);
  56338. procedure _Setonmouseover(const aValue: TEventHandler);
  56339. procedure _Setonmouseup(const aValue: TEventHandler);
  56340. procedure _Setonwheel(const aValue: TEventHandler);
  56341. procedure _Setonpaste(const aValue: TEventHandler);
  56342. procedure _Setonpause(const aValue: TEventHandler);
  56343. procedure _Setonplay(const aValue: TEventHandler);
  56344. procedure _Setonplaying(const aValue: TEventHandler);
  56345. procedure _Setonprogress(const aValue: TEventHandler);
  56346. procedure _Setonratechange(const aValue: TEventHandler);
  56347. procedure _Setonreset(const aValue: TEventHandler);
  56348. procedure _Setonresize(const aValue: TEventHandler);
  56349. procedure _Setonscroll(const aValue: TEventHandler);
  56350. procedure _Setonscrollend(const aValue: TEventHandler);
  56351. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  56352. procedure _Setonseeked(const aValue: TEventHandler);
  56353. procedure _Setonseeking(const aValue: TEventHandler);
  56354. procedure _Setonselect(const aValue: TEventHandler);
  56355. procedure _Setonslotchange(const aValue: TEventHandler);
  56356. procedure _Setonstalled(const aValue: TEventHandler);
  56357. procedure _Setonsubmit(const aValue: TEventHandler);
  56358. procedure _Setonsuspend(const aValue: TEventHandler);
  56359. procedure _Setontimeupdate(const aValue: TEventHandler);
  56360. procedure _Setonvolumechange(const aValue: TEventHandler);
  56361. procedure _Setonwaiting(const aValue: TEventHandler);
  56362. procedure _Setonselectstart(const aValue: TEventHandler);
  56363. procedure _Setonselectionchange(const aValue: TEventHandler);
  56364. procedure _Setontoggle(const aValue: TEventHandler);
  56365. procedure _Setonpointercancel(const aValue: TEventHandler);
  56366. procedure _Setonpointerdown(const aValue: TEventHandler);
  56367. procedure _Setonpointerup(const aValue: TEventHandler);
  56368. procedure _Setonpointermove(const aValue: TEventHandler);
  56369. procedure _Setonpointerout(const aValue: TEventHandler);
  56370. procedure _Setonpointerover(const aValue: TEventHandler);
  56371. procedure _Setonpointerenter(const aValue: TEventHandler);
  56372. procedure _Setonpointerleave(const aValue: TEventHandler);
  56373. procedure _Setongotpointercapture(const aValue: TEventHandler);
  56374. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  56375. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  56376. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  56377. procedure _Setonanimationcancel(const aValue: TEventHandler);
  56378. procedure _Setonanimationend(const aValue: TEventHandler);
  56379. procedure _Setonanimationiteration(const aValue: TEventHandler);
  56380. procedure _Setonanimationstart(const aValue: TEventHandler);
  56381. procedure _Setontransitioncancel(const aValue: TEventHandler);
  56382. procedure _Setontransitionend(const aValue: TEventHandler);
  56383. procedure _Setontransitionrun(const aValue: TEventHandler);
  56384. procedure _Setontransitionstart(const aValue: TEventHandler);
  56385. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  56386. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  56387. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  56388. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  56389. procedure _Setonafterprint(const aValue: TEventHandler);
  56390. procedure _Setonbeforeprint(const aValue: TEventHandler);
  56391. procedure _Setonbeforeunload(const aValue: TOnBeforeUnloadEventHandler);
  56392. procedure _Setonhashchange(const aValue: TEventHandler);
  56393. procedure _Setonlanguagechange(const aValue: TEventHandler);
  56394. procedure _Setonmessage(const aValue: TEventHandler);
  56395. procedure _Setonmessageerror(const aValue: TEventHandler);
  56396. procedure _Setonoffline(const aValue: TEventHandler);
  56397. procedure _Setononline(const aValue: TEventHandler);
  56398. procedure _Setonpagehide(const aValue: TEventHandler);
  56399. procedure _Setonpageshow(const aValue: TEventHandler);
  56400. procedure _Setonpopstate(const aValue: TEventHandler);
  56401. procedure _Setonrejectionhandled(const aValue: TEventHandler);
  56402. procedure _Setonstorage(const aValue: TEventHandler);
  56403. procedure _Setonunhandledrejection(const aValue: TEventHandler);
  56404. procedure _Setonunload(const aValue: TEventHandler);
  56405. procedure _Setongamepadconnected(const aValue: TEventHandler);
  56406. procedure _Setongamepaddisconnected(const aValue: TEventHandler);
  56407. procedure _Setontouchstart(const aValue: TEventHandler);
  56408. procedure _Setontouchend(const aValue: TEventHandler);
  56409. procedure _Setontouchmove(const aValue: TEventHandler);
  56410. procedure _Setontouchcancel(const aValue: TEventHandler);
  56411. procedure _Setonerror(const aValue: TOnErrorEventHandler);
  56412. procedure close;
  56413. procedure stop;
  56414. procedure focus;
  56415. procedure blur;
  56416. function open(const aUrl: UnicodeString; const aTarget: UnicodeString; const aFeatures: UnicodeString): IJSWindowProxy;
  56417. function open: IJSWindowProxy;
  56418. function open(const aUrl: UnicodeString): IJSWindowProxy;
  56419. function open(const aUrl: UnicodeString; const aTarget: UnicodeString): IJSWindowProxy;
  56420. function GetDefault(const aName: UnicodeString): IJSObject;
  56421. procedure alert;
  56422. procedure alert(const aMessage: UnicodeString);
  56423. function confirm(const aMessage: UnicodeString): Boolean;
  56424. function confirm: Boolean;
  56425. function prompt(const aMessage: UnicodeString; const aDefault: UnicodeString): UnicodeString;
  56426. function prompt: UnicodeString;
  56427. function prompt(const aMessage: UnicodeString): UnicodeString;
  56428. procedure print;
  56429. procedure postMessage(const aMessage: Variant; const aTargetOrigin: UnicodeString; const aTransfer: TIJSObjectDynArray);
  56430. procedure postMessage(const aMessage: Variant; const aTargetOrigin: UnicodeString);
  56431. procedure postMessage(const aMessage: Variant; const aOptions: TJSWindowPostMessageOptions);
  56432. procedure postMessage(const aMessage: Variant);
  56433. procedure captureEvents;
  56434. procedure releaseEvents;
  56435. function getSelection: IJSSelection;
  56436. function getComputedStyle(aElt: IJSElement; const aPseudoElt: UnicodeString): IJSCSSStyleDeclaration;
  56437. function getComputedStyle(aElt: IJSElement): IJSCSSStyleDeclaration;
  56438. function matchMedia(const aQuery: UTF8String): IJSMediaQueryList;
  56439. procedure moveTo(aX: LongInt; aY: LongInt);
  56440. procedure moveBy(aX: LongInt; aY: LongInt);
  56441. procedure resizeTo(aX: LongInt; aY: LongInt);
  56442. procedure resizeBy(aX: LongInt; aY: LongInt);
  56443. procedure scroll(aX: Double; aY: Double);
  56444. procedure scroll(const aOptions: TJSScrollToOptions);
  56445. procedure scroll;
  56446. procedure scrollTo(aX: Double; aY: Double);
  56447. procedure scrollTo(const aOptions: TJSScrollToOptions);
  56448. procedure scrollTo;
  56449. procedure scrollBy(aX: Double; aY: Double);
  56450. procedure scrollBy(const aOptions: TJSScrollToOptions);
  56451. procedure scrollBy;
  56452. function getDefaultComputedStyle(aElt: IJSElement; const aPseudoElt: UnicodeString): IJSCSSStyleDeclaration;
  56453. function getDefaultComputedStyle(aElt: IJSElement): IJSCSSStyleDeclaration;
  56454. procedure scrollByLines(aNumLines: LongInt; const aOptions: TJSScrollOptions);
  56455. procedure scrollByLines(aNumLines: LongInt);
  56456. procedure scrollByPages(aNumPages: LongInt; const aOptions: TJSScrollOptions);
  56457. procedure scrollByPages(aNumPages: LongInt);
  56458. procedure sizeToContent;
  56459. procedure updateCommands(const aAction: UnicodeString);
  56460. function find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean; aWholeWord: Boolean; aSearchInFrames: Boolean; aShowDialog: Boolean): Boolean;
  56461. function find: Boolean;
  56462. function find(const aStr: UnicodeString): Boolean;
  56463. function find(const aStr: UnicodeString; aCaseSensitive: Boolean): Boolean;
  56464. function find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean): Boolean;
  56465. function find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean): Boolean;
  56466. function find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean; aWholeWord: Boolean): Boolean;
  56467. function find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean; aWholeWord: Boolean; aSearchInFrames: Boolean): Boolean;
  56468. procedure dump(const aStr: UnicodeString);
  56469. procedure setResizable(aResizable: Boolean);
  56470. procedure getAttention;
  56471. procedure getAttentionWithCycleCount(aACycleCount: LongInt);
  56472. procedure setCursor(const aCursor: UTF8String);
  56473. procedure maximize;
  56474. procedure minimize;
  56475. procedure restore;
  56476. function getWorkspaceID: UnicodeString;
  56477. procedure moveToWorkspace(const aWorkspaceID: UnicodeString);
  56478. procedure notifyDefaultButtonLoaded(aDefaultButton: IJSElement);
  56479. function promiseDocumentFlushed(const aCallback: TPromiseDocumentFlushedCallback): IJSPromise; // Promise<any>
  56480. function requestIdleCallback(const aCallback: TIdleRequestCallback; const aOptions: TJSIdleRequestOptions): Cardinal;
  56481. function requestIdleCallback(const aCallback: TIdleRequestCallback): Cardinal;
  56482. procedure cancelIdleCallback(aHandle: Cardinal);
  56483. function getRegionalPrefsLocales: TUnicodeStringDynArray;
  56484. function getWebExposedLocales: TUnicodeStringDynArray;
  56485. function requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt;
  56486. procedure cancelAnimationFrame(aHandle: LongInt);
  56487. procedure reportError(const aE: Variant);
  56488. function btoa(const aBtoa: UnicodeString): UnicodeString;
  56489. function atob(const aAtob: UnicodeString): UnicodeString;
  56490. function setTimeout(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  56491. function setTimeout(const aHandler: TFunction): LongInt{; ToDo:varargs};
  56492. function setTimeout(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  56493. function setTimeout(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  56494. procedure clearTimeout(aHandle: LongInt);
  56495. procedure clearTimeout;
  56496. function setInterval(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  56497. function setInterval(const aHandler: TFunction): LongInt{; ToDo:varargs};
  56498. function setInterval(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  56499. function setInterval(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  56500. procedure clearInterval(aHandle: LongInt);
  56501. procedure clearInterval;
  56502. procedure queueMicrotask(const aCallback: TVoidFunction);
  56503. function createImageBitmap(aAImage: IJSBlob; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  56504. function createImageBitmap(const aAImage: TCanvasImageSource; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  56505. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  56506. function createImageBitmap(aAImage: IJSImageData; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  56507. function createImageBitmap(aAImage: IJSImageData): IJSPromise; // Promise<ImageBitmap>
  56508. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D): IJSPromise; // Promise<ImageBitmap>
  56509. function createImageBitmap(const aAImage: TCanvasImageSource): IJSPromise; // Promise<ImageBitmap>
  56510. function createImageBitmap(aAImage: IJSBlob): IJSPromise; // Promise<ImageBitmap>
  56511. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  56512. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  56513. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  56514. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  56515. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  56516. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  56517. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  56518. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  56519. function structuredClone(const aValue: Variant; const aOptions: TJSStructuredSerializeOptions): Variant;
  56520. function structuredClone(const aValue: Variant): Variant;
  56521. function fetch(aInput: IJSRequest; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  56522. function fetch(const aInput: UnicodeString; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  56523. function fetch(const aInput: UnicodeString): IJSPromise; // Promise<Response>
  56524. function fetch(aInput: IJSRequest): IJSPromise; // Promise<Response>
  56525. property window: IJSWindowProxy read _Getwindow;
  56526. property self_: IJSWindowProxy read _Getself_;
  56527. property document: IJSDocument read _Getdocument;
  56528. property name: UnicodeString read _Getname write _Setname;
  56529. property location: IJSLocation read _Getlocation;
  56530. property history: IJSHistory read _Gethistory;
  56531. property customElements: IJSCustomElementRegistry read _GetcustomElements;
  56532. property locationbar: IJSBarProp read _Getlocationbar;
  56533. property menubar: IJSBarProp read _Getmenubar;
  56534. property personalbar: IJSBarProp read _Getpersonalbar;
  56535. property scrollbars: IJSBarProp read _Getscrollbars;
  56536. property statusbar: IJSBarProp read _Getstatusbar;
  56537. property toolbar: IJSBarProp read _Gettoolbar;
  56538. property status: UnicodeString read _Getstatus write _Setstatus;
  56539. property closed: Boolean read _Getclosed;
  56540. property event: TWindow_event_Type read _Getevent;
  56541. property frames: IJSWindowProxy read _Getframes;
  56542. property length_: Cardinal read _Getlength_;
  56543. property top: IJSWindowProxy read _Gettop;
  56544. property opener: Variant read _Getopener write _Setopener;
  56545. property parent: IJSWindowProxy read _Getparent;
  56546. property frameElement: IJSElement read _GetframeElement;
  56547. property navigator: IJSNavigator read _Getnavigator;
  56548. property clientInformation: IJSNavigator read _GetclientInformation;
  56549. property external: IJSExternal read _Getexternal;
  56550. property screen: IJSScreen read _Getscreen;
  56551. property innerWidth: Double read _GetinnerWidth;
  56552. property innerHeight: Double read _GetinnerHeight;
  56553. property scrollX: Double read _GetscrollX;
  56554. property pageXOffset: Double read _GetpageXOffset;
  56555. property scrollY: Double read _GetscrollY;
  56556. property pageYOffset: Double read _GetpageYOffset;
  56557. property screenLeft: Double read _GetscreenLeft;
  56558. property screenTop: Double read _GetscreenTop;
  56559. property screenX: Double read _GetscreenX;
  56560. property screenY: Double read _GetscreenY;
  56561. property outerWidth: Double read _GetouterWidth;
  56562. property outerHeight: Double read _GetouterHeight;
  56563. property performance: IJSPerformance read _Getperformance;
  56564. property mozInnerScreenX: Single read _GetmozInnerScreenX;
  56565. property mozInnerScreenY: Single read _GetmozInnerScreenY;
  56566. property devicePixelRatio: Double read _GetdevicePixelRatio;
  56567. property scrollMaxX: LongInt read _GetscrollMaxX;
  56568. property scrollMaxY: LongInt read _GetscrollMaxY;
  56569. property fullScreen: Boolean read _GetfullScreen write _SetfullScreen;
  56570. property ondevicemotion: TEventHandler read _Getondevicemotion write _Setondevicemotion;
  56571. property ondeviceorientation: TEventHandler read _Getondeviceorientation write _Setondeviceorientation;
  56572. property ondeviceorientationabsolute: TEventHandler read _Getondeviceorientationabsolute write _Setondeviceorientationabsolute;
  56573. property onuserproximity: TEventHandler read _Getonuserproximity write _Setonuserproximity;
  56574. property ondevicelight: TEventHandler read _Getondevicelight write _Setondevicelight;
  56575. property windowState: Word read _GetwindowState;
  56576. property isFullyOccluded: Boolean read _GetisFullyOccluded;
  56577. property browserDOMWindow: IJSnsIBrowserDOMWindow read _GetbrowserDOMWindow write _SetbrowserDOMWindow;
  56578. property isChromeWindow: Boolean read _GetisChromeWindow;
  56579. property Glean: IJSGleanImpl read _GetGlean;
  56580. property GleanPings: IJSGleanPingsImpl read _GetGleanPings;
  56581. property onvrdisplayconnect: TEventHandler read _Getonvrdisplayconnect write _Setonvrdisplayconnect;
  56582. property onvrdisplaydisconnect: TEventHandler read _Getonvrdisplaydisconnect write _Setonvrdisplaydisconnect;
  56583. property onvrdisplayactivate: TEventHandler read _Getonvrdisplayactivate write _Setonvrdisplayactivate;
  56584. property onvrdisplaydeactivate: TEventHandler read _Getonvrdisplaydeactivate write _Setonvrdisplaydeactivate;
  56585. property onvrdisplaypresentchange: TEventHandler read _Getonvrdisplaypresentchange write _Setonvrdisplaypresentchange;
  56586. property paintWorklet: IJSWorklet read _GetpaintWorklet;
  56587. property intlUtils: IJSIntlUtils read _GetintlUtils;
  56588. property visualViewport: IJSVisualViewport read _GetvisualViewport;
  56589. property onabort: TEventHandler read _Getonabort write _Setonabort;
  56590. property onblur: TEventHandler read _Getonblur write _Setonblur;
  56591. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  56592. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  56593. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  56594. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  56595. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  56596. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  56597. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  56598. property onchange: TEventHandler read _Getonchange write _Setonchange;
  56599. property onclick: TEventHandler read _Getonclick write _Setonclick;
  56600. property onclose: TEventHandler read _Getonclose write _Setonclose;
  56601. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  56602. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  56603. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  56604. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  56605. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  56606. property oncut: TEventHandler read _Getoncut write _Setoncut;
  56607. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  56608. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  56609. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  56610. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  56611. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  56612. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  56613. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  56614. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  56615. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  56616. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  56617. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  56618. property onended: TEventHandler read _Getonended write _Setonended;
  56619. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  56620. property oninput: TEventHandler read _Getoninput write _Setoninput;
  56621. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  56622. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  56623. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  56624. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  56625. property onload: TEventHandler read _Getonload write _Setonload;
  56626. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  56627. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  56628. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  56629. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  56630. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  56631. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  56632. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  56633. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  56634. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  56635. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  56636. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  56637. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  56638. property onpause: TEventHandler read _Getonpause write _Setonpause;
  56639. property onplay: TEventHandler read _Getonplay write _Setonplay;
  56640. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  56641. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  56642. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  56643. property onreset: TEventHandler read _Getonreset write _Setonreset;
  56644. property onresize: TEventHandler read _Getonresize write _Setonresize;
  56645. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  56646. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  56647. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  56648. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  56649. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  56650. property onselect: TEventHandler read _Getonselect write _Setonselect;
  56651. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  56652. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  56653. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  56654. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  56655. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  56656. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  56657. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  56658. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  56659. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  56660. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  56661. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  56662. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  56663. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  56664. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  56665. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  56666. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  56667. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  56668. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  56669. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  56670. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  56671. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  56672. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  56673. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  56674. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  56675. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  56676. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  56677. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  56678. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  56679. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  56680. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  56681. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  56682. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  56683. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  56684. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  56685. property onafterprint: TEventHandler read _Getonafterprint write _Setonafterprint;
  56686. property onbeforeprint: TEventHandler read _Getonbeforeprint write _Setonbeforeprint;
  56687. property onbeforeunload: TOnBeforeUnloadEventHandler read _Getonbeforeunload write _Setonbeforeunload;
  56688. property onhashchange: TEventHandler read _Getonhashchange write _Setonhashchange;
  56689. property onlanguagechange: TEventHandler read _Getonlanguagechange write _Setonlanguagechange;
  56690. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  56691. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  56692. property onoffline: TEventHandler read _Getonoffline write _Setonoffline;
  56693. property ononline: TEventHandler read _Getononline write _Setononline;
  56694. property onpagehide: TEventHandler read _Getonpagehide write _Setonpagehide;
  56695. property onpageshow: TEventHandler read _Getonpageshow write _Setonpageshow;
  56696. property onpopstate: TEventHandler read _Getonpopstate write _Setonpopstate;
  56697. property onrejectionhandled: TEventHandler read _Getonrejectionhandled write _Setonrejectionhandled;
  56698. property onstorage: TEventHandler read _Getonstorage write _Setonstorage;
  56699. property onunhandledrejection: TEventHandler read _Getonunhandledrejection write _Setonunhandledrejection;
  56700. property onunload: TEventHandler read _Getonunload write _Setonunload;
  56701. property ongamepadconnected: TEventHandler read _Getongamepadconnected write _Setongamepadconnected;
  56702. property ongamepaddisconnected: TEventHandler read _Getongamepaddisconnected write _Setongamepaddisconnected;
  56703. property sessionStorage: IJSStorage read _GetsessionStorage;
  56704. property localStorage: IJSStorage read _GetlocalStorage;
  56705. property crypto: IJSCrypto read _Getcrypto;
  56706. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  56707. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  56708. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  56709. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  56710. property onerror: TOnErrorEventHandler read _Getonerror write _Setonerror;
  56711. property origin: UnicodeString read _Getorigin;
  56712. property crossOriginIsolated: Boolean read _GetcrossOriginIsolated;
  56713. property isSecureContext: Boolean read _GetisSecureContext;
  56714. property indexedDB: IJSIDBFactory read _GetindexedDB;
  56715. property caches: IJSCacheStorage read _Getcaches;
  56716. property scheduler: IJSScheduler read _Getscheduler;
  56717. property trustedTypes: IJSTrustedTypePolicyFactory read _GettrustedTypes;
  56718. end;
  56719. TJSWindow = class(TJSEventTarget,IJSWindow)
  56720. Protected
  56721. function _Getwindow: IJSWindowProxy;
  56722. function _Getself_: IJSWindowProxy;
  56723. function _Getdocument: IJSDocument;
  56724. function _Getname: UnicodeString;
  56725. function _Getlocation: IJSLocation;
  56726. function _Gethistory: IJSHistory;
  56727. function _GetcustomElements: IJSCustomElementRegistry;
  56728. function _Getlocationbar: IJSBarProp;
  56729. function _Getmenubar: IJSBarProp;
  56730. function _Getpersonalbar: IJSBarProp;
  56731. function _Getscrollbars: IJSBarProp;
  56732. function _Getstatusbar: IJSBarProp;
  56733. function _Gettoolbar: IJSBarProp;
  56734. function _Getstatus: UnicodeString;
  56735. function _Getclosed: Boolean;
  56736. function _Getevent: TWindow_event_Type;
  56737. function _Getframes: IJSWindowProxy;
  56738. function _Getlength_: Cardinal;
  56739. function _Gettop: IJSWindowProxy;
  56740. function _Getopener: Variant;
  56741. function _Getparent: IJSWindowProxy;
  56742. function _GetframeElement: IJSElement;
  56743. function _Getnavigator: IJSNavigator;
  56744. function _GetclientInformation: IJSNavigator;
  56745. function _Getexternal: IJSExternal;
  56746. function _Getscreen: IJSScreen;
  56747. function _GetinnerWidth: Double;
  56748. function _GetinnerHeight: Double;
  56749. function _GetscrollX: Double;
  56750. function _GetpageXOffset: Double;
  56751. function _GetscrollY: Double;
  56752. function _GetpageYOffset: Double;
  56753. function _GetscreenLeft: Double;
  56754. function _GetscreenTop: Double;
  56755. function _GetscreenX: Double;
  56756. function _GetscreenY: Double;
  56757. function _GetouterWidth: Double;
  56758. function _GetouterHeight: Double;
  56759. function _Getperformance: IJSPerformance;
  56760. function _GetmozInnerScreenX: Single;
  56761. function _GetmozInnerScreenY: Single;
  56762. function _GetdevicePixelRatio: Double;
  56763. function _GetscrollMaxX: LongInt;
  56764. function _GetscrollMaxY: LongInt;
  56765. function _GetfullScreen: Boolean;
  56766. function _Getondevicemotion: TEventHandler;
  56767. function _Getondeviceorientation: TEventHandler;
  56768. function _Getondeviceorientationabsolute: TEventHandler;
  56769. function _Getonuserproximity: TEventHandler;
  56770. function _Getondevicelight: TEventHandler;
  56771. function _GetwindowState: Word;
  56772. function _GetisFullyOccluded: Boolean;
  56773. function _GetbrowserDOMWindow: IJSnsIBrowserDOMWindow;
  56774. function _GetisChromeWindow: Boolean;
  56775. function _GetGlean: IJSGleanImpl;
  56776. function _GetGleanPings: IJSGleanPingsImpl;
  56777. function _Getonvrdisplayconnect: TEventHandler;
  56778. function _Getonvrdisplaydisconnect: TEventHandler;
  56779. function _Getonvrdisplayactivate: TEventHandler;
  56780. function _Getonvrdisplaydeactivate: TEventHandler;
  56781. function _Getonvrdisplaypresentchange: TEventHandler;
  56782. function _GetpaintWorklet: IJSWorklet;
  56783. function _GetintlUtils: IJSIntlUtils;
  56784. function _GetvisualViewport: IJSVisualViewport;
  56785. function _Getonabort: TEventHandler;
  56786. function _Getonblur: TEventHandler;
  56787. function _Getonfocus: TEventHandler;
  56788. function _Getoncancel: TEventHandler;
  56789. function _Getonauxclick: TEventHandler;
  56790. function _Getonbeforeinput: TEventHandler;
  56791. function _Getonbeforetoggle: TEventHandler;
  56792. function _Getoncanplay: TEventHandler;
  56793. function _Getoncanplaythrough: TEventHandler;
  56794. function _Getonchange: TEventHandler;
  56795. function _Getonclick: TEventHandler;
  56796. function _Getonclose: TEventHandler;
  56797. function _Getoncontextlost: TEventHandler;
  56798. function _Getoncontextmenu: TEventHandler;
  56799. function _Getoncontextrestored: TEventHandler;
  56800. function _Getoncopy: TEventHandler;
  56801. function _Getoncuechange: TEventHandler;
  56802. function _Getoncut: TEventHandler;
  56803. function _Getondblclick: TEventHandler;
  56804. function _Getondrag: TEventHandler;
  56805. function _Getondragend: TEventHandler;
  56806. function _Getondragenter: TEventHandler;
  56807. function _Getondragexit: TEventHandler;
  56808. function _Getondragleave: TEventHandler;
  56809. function _Getondragover: TEventHandler;
  56810. function _Getondragstart: TEventHandler;
  56811. function _Getondrop: TEventHandler;
  56812. function _Getondurationchange: TEventHandler;
  56813. function _Getonemptied: TEventHandler;
  56814. function _Getonended: TEventHandler;
  56815. function _Getonformdata: TEventHandler;
  56816. function _Getoninput: TEventHandler;
  56817. function _Getoninvalid: TEventHandler;
  56818. function _Getonkeydown: TEventHandler;
  56819. function _Getonkeypress: TEventHandler;
  56820. function _Getonkeyup: TEventHandler;
  56821. function _Getonload: TEventHandler;
  56822. function _Getonloadeddata: TEventHandler;
  56823. function _Getonloadedmetadata: TEventHandler;
  56824. function _Getonloadstart: TEventHandler;
  56825. function _Getonmousedown: TEventHandler;
  56826. function _Getonmouseenter: TEventHandler;
  56827. function _Getonmouseleave: TEventHandler;
  56828. function _Getonmousemove: TEventHandler;
  56829. function _Getonmouseout: TEventHandler;
  56830. function _Getonmouseover: TEventHandler;
  56831. function _Getonmouseup: TEventHandler;
  56832. function _Getonwheel: TEventHandler;
  56833. function _Getonpaste: TEventHandler;
  56834. function _Getonpause: TEventHandler;
  56835. function _Getonplay: TEventHandler;
  56836. function _Getonplaying: TEventHandler;
  56837. function _Getonprogress: TEventHandler;
  56838. function _Getonratechange: TEventHandler;
  56839. function _Getonreset: TEventHandler;
  56840. function _Getonresize: TEventHandler;
  56841. function _Getonscroll: TEventHandler;
  56842. function _Getonscrollend: TEventHandler;
  56843. function _Getonsecuritypolicyviolation: TEventHandler;
  56844. function _Getonseeked: TEventHandler;
  56845. function _Getonseeking: TEventHandler;
  56846. function _Getonselect: TEventHandler;
  56847. function _Getonslotchange: TEventHandler;
  56848. function _Getonstalled: TEventHandler;
  56849. function _Getonsubmit: TEventHandler;
  56850. function _Getonsuspend: TEventHandler;
  56851. function _Getontimeupdate: TEventHandler;
  56852. function _Getonvolumechange: TEventHandler;
  56853. function _Getonwaiting: TEventHandler;
  56854. function _Getonselectstart: TEventHandler;
  56855. function _Getonselectionchange: TEventHandler;
  56856. function _Getontoggle: TEventHandler;
  56857. function _Getonpointercancel: TEventHandler;
  56858. function _Getonpointerdown: TEventHandler;
  56859. function _Getonpointerup: TEventHandler;
  56860. function _Getonpointermove: TEventHandler;
  56861. function _Getonpointerout: TEventHandler;
  56862. function _Getonpointerover: TEventHandler;
  56863. function _Getonpointerenter: TEventHandler;
  56864. function _Getonpointerleave: TEventHandler;
  56865. function _Getongotpointercapture: TEventHandler;
  56866. function _Getonlostpointercapture: TEventHandler;
  56867. function _Getonmozfullscreenchange: TEventHandler;
  56868. function _Getonmozfullscreenerror: TEventHandler;
  56869. function _Getonanimationcancel: TEventHandler;
  56870. function _Getonanimationend: TEventHandler;
  56871. function _Getonanimationiteration: TEventHandler;
  56872. function _Getonanimationstart: TEventHandler;
  56873. function _Getontransitioncancel: TEventHandler;
  56874. function _Getontransitionend: TEventHandler;
  56875. function _Getontransitionrun: TEventHandler;
  56876. function _Getontransitionstart: TEventHandler;
  56877. function _Getonwebkitanimationend: TEventHandler;
  56878. function _Getonwebkitanimationiteration: TEventHandler;
  56879. function _Getonwebkitanimationstart: TEventHandler;
  56880. function _Getonwebkittransitionend: TEventHandler;
  56881. function _Getonafterprint: TEventHandler;
  56882. function _Getonbeforeprint: TEventHandler;
  56883. function _Getonbeforeunload: TOnBeforeUnloadEventHandler;
  56884. function _Getonhashchange: TEventHandler;
  56885. function _Getonlanguagechange: TEventHandler;
  56886. function _Getonmessage: TEventHandler;
  56887. function _Getonmessageerror: TEventHandler;
  56888. function _Getonoffline: TEventHandler;
  56889. function _Getononline: TEventHandler;
  56890. function _Getonpagehide: TEventHandler;
  56891. function _Getonpageshow: TEventHandler;
  56892. function _Getonpopstate: TEventHandler;
  56893. function _Getonrejectionhandled: TEventHandler;
  56894. function _Getonstorage: TEventHandler;
  56895. function _Getonunhandledrejection: TEventHandler;
  56896. function _Getonunload: TEventHandler;
  56897. function _Getongamepadconnected: TEventHandler;
  56898. function _Getongamepaddisconnected: TEventHandler;
  56899. function _GetsessionStorage: IJSStorage;
  56900. function _GetlocalStorage: IJSStorage;
  56901. function _Getcrypto: IJSCrypto;
  56902. function _Getontouchstart: TEventHandler;
  56903. function _Getontouchend: TEventHandler;
  56904. function _Getontouchmove: TEventHandler;
  56905. function _Getontouchcancel: TEventHandler;
  56906. function _Getonerror: TOnErrorEventHandler;
  56907. function _Getorigin: UnicodeString;
  56908. function _GetcrossOriginIsolated: Boolean;
  56909. function _GetisSecureContext: Boolean;
  56910. function _GetindexedDB: IJSIDBFactory;
  56911. function _Getcaches: IJSCacheStorage;
  56912. function _Getscheduler: IJSScheduler;
  56913. function _GettrustedTypes: IJSTrustedTypePolicyFactory;
  56914. procedure _Setname(const aValue: UnicodeString);
  56915. procedure _Setstatus(const aValue: UnicodeString);
  56916. procedure _Setopener(const aValue: Variant);
  56917. procedure _SetfullScreen(const aValue: Boolean);
  56918. procedure _Setondevicemotion(const aValue: TEventHandler);
  56919. procedure _Setondeviceorientation(const aValue: TEventHandler);
  56920. procedure _Setondeviceorientationabsolute(const aValue: TEventHandler);
  56921. procedure _Setonuserproximity(const aValue: TEventHandler);
  56922. procedure _Setondevicelight(const aValue: TEventHandler);
  56923. procedure _SetbrowserDOMWindow(const aValue: IJSnsIBrowserDOMWindow);
  56924. procedure _Setonvrdisplayconnect(const aValue: TEventHandler);
  56925. procedure _Setonvrdisplaydisconnect(const aValue: TEventHandler);
  56926. procedure _Setonvrdisplayactivate(const aValue: TEventHandler);
  56927. procedure _Setonvrdisplaydeactivate(const aValue: TEventHandler);
  56928. procedure _Setonvrdisplaypresentchange(const aValue: TEventHandler);
  56929. procedure _Setonabort(const aValue: TEventHandler);
  56930. procedure _Setonblur(const aValue: TEventHandler);
  56931. procedure _Setonfocus(const aValue: TEventHandler);
  56932. procedure _Setoncancel(const aValue: TEventHandler);
  56933. procedure _Setonauxclick(const aValue: TEventHandler);
  56934. procedure _Setonbeforeinput(const aValue: TEventHandler);
  56935. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  56936. procedure _Setoncanplay(const aValue: TEventHandler);
  56937. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  56938. procedure _Setonchange(const aValue: TEventHandler);
  56939. procedure _Setonclick(const aValue: TEventHandler);
  56940. procedure _Setonclose(const aValue: TEventHandler);
  56941. procedure _Setoncontextlost(const aValue: TEventHandler);
  56942. procedure _Setoncontextmenu(const aValue: TEventHandler);
  56943. procedure _Setoncontextrestored(const aValue: TEventHandler);
  56944. procedure _Setoncopy(const aValue: TEventHandler);
  56945. procedure _Setoncuechange(const aValue: TEventHandler);
  56946. procedure _Setoncut(const aValue: TEventHandler);
  56947. procedure _Setondblclick(const aValue: TEventHandler);
  56948. procedure _Setondrag(const aValue: TEventHandler);
  56949. procedure _Setondragend(const aValue: TEventHandler);
  56950. procedure _Setondragenter(const aValue: TEventHandler);
  56951. procedure _Setondragexit(const aValue: TEventHandler);
  56952. procedure _Setondragleave(const aValue: TEventHandler);
  56953. procedure _Setondragover(const aValue: TEventHandler);
  56954. procedure _Setondragstart(const aValue: TEventHandler);
  56955. procedure _Setondrop(const aValue: TEventHandler);
  56956. procedure _Setondurationchange(const aValue: TEventHandler);
  56957. procedure _Setonemptied(const aValue: TEventHandler);
  56958. procedure _Setonended(const aValue: TEventHandler);
  56959. procedure _Setonformdata(const aValue: TEventHandler);
  56960. procedure _Setoninput(const aValue: TEventHandler);
  56961. procedure _Setoninvalid(const aValue: TEventHandler);
  56962. procedure _Setonkeydown(const aValue: TEventHandler);
  56963. procedure _Setonkeypress(const aValue: TEventHandler);
  56964. procedure _Setonkeyup(const aValue: TEventHandler);
  56965. procedure _Setonload(const aValue: TEventHandler);
  56966. procedure _Setonloadeddata(const aValue: TEventHandler);
  56967. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  56968. procedure _Setonloadstart(const aValue: TEventHandler);
  56969. procedure _Setonmousedown(const aValue: TEventHandler);
  56970. procedure _Setonmouseenter(const aValue: TEventHandler);
  56971. procedure _Setonmouseleave(const aValue: TEventHandler);
  56972. procedure _Setonmousemove(const aValue: TEventHandler);
  56973. procedure _Setonmouseout(const aValue: TEventHandler);
  56974. procedure _Setonmouseover(const aValue: TEventHandler);
  56975. procedure _Setonmouseup(const aValue: TEventHandler);
  56976. procedure _Setonwheel(const aValue: TEventHandler);
  56977. procedure _Setonpaste(const aValue: TEventHandler);
  56978. procedure _Setonpause(const aValue: TEventHandler);
  56979. procedure _Setonplay(const aValue: TEventHandler);
  56980. procedure _Setonplaying(const aValue: TEventHandler);
  56981. procedure _Setonprogress(const aValue: TEventHandler);
  56982. procedure _Setonratechange(const aValue: TEventHandler);
  56983. procedure _Setonreset(const aValue: TEventHandler);
  56984. procedure _Setonresize(const aValue: TEventHandler);
  56985. procedure _Setonscroll(const aValue: TEventHandler);
  56986. procedure _Setonscrollend(const aValue: TEventHandler);
  56987. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  56988. procedure _Setonseeked(const aValue: TEventHandler);
  56989. procedure _Setonseeking(const aValue: TEventHandler);
  56990. procedure _Setonselect(const aValue: TEventHandler);
  56991. procedure _Setonslotchange(const aValue: TEventHandler);
  56992. procedure _Setonstalled(const aValue: TEventHandler);
  56993. procedure _Setonsubmit(const aValue: TEventHandler);
  56994. procedure _Setonsuspend(const aValue: TEventHandler);
  56995. procedure _Setontimeupdate(const aValue: TEventHandler);
  56996. procedure _Setonvolumechange(const aValue: TEventHandler);
  56997. procedure _Setonwaiting(const aValue: TEventHandler);
  56998. procedure _Setonselectstart(const aValue: TEventHandler);
  56999. procedure _Setonselectionchange(const aValue: TEventHandler);
  57000. procedure _Setontoggle(const aValue: TEventHandler);
  57001. procedure _Setonpointercancel(const aValue: TEventHandler);
  57002. procedure _Setonpointerdown(const aValue: TEventHandler);
  57003. procedure _Setonpointerup(const aValue: TEventHandler);
  57004. procedure _Setonpointermove(const aValue: TEventHandler);
  57005. procedure _Setonpointerout(const aValue: TEventHandler);
  57006. procedure _Setonpointerover(const aValue: TEventHandler);
  57007. procedure _Setonpointerenter(const aValue: TEventHandler);
  57008. procedure _Setonpointerleave(const aValue: TEventHandler);
  57009. procedure _Setongotpointercapture(const aValue: TEventHandler);
  57010. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  57011. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  57012. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  57013. procedure _Setonanimationcancel(const aValue: TEventHandler);
  57014. procedure _Setonanimationend(const aValue: TEventHandler);
  57015. procedure _Setonanimationiteration(const aValue: TEventHandler);
  57016. procedure _Setonanimationstart(const aValue: TEventHandler);
  57017. procedure _Setontransitioncancel(const aValue: TEventHandler);
  57018. procedure _Setontransitionend(const aValue: TEventHandler);
  57019. procedure _Setontransitionrun(const aValue: TEventHandler);
  57020. procedure _Setontransitionstart(const aValue: TEventHandler);
  57021. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  57022. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  57023. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  57024. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  57025. procedure _Setonafterprint(const aValue: TEventHandler);
  57026. procedure _Setonbeforeprint(const aValue: TEventHandler);
  57027. procedure _Setonbeforeunload(const aValue: TOnBeforeUnloadEventHandler);
  57028. procedure _Setonhashchange(const aValue: TEventHandler);
  57029. procedure _Setonlanguagechange(const aValue: TEventHandler);
  57030. procedure _Setonmessage(const aValue: TEventHandler);
  57031. procedure _Setonmessageerror(const aValue: TEventHandler);
  57032. procedure _Setonoffline(const aValue: TEventHandler);
  57033. procedure _Setononline(const aValue: TEventHandler);
  57034. procedure _Setonpagehide(const aValue: TEventHandler);
  57035. procedure _Setonpageshow(const aValue: TEventHandler);
  57036. procedure _Setonpopstate(const aValue: TEventHandler);
  57037. procedure _Setonrejectionhandled(const aValue: TEventHandler);
  57038. procedure _Setonstorage(const aValue: TEventHandler);
  57039. procedure _Setonunhandledrejection(const aValue: TEventHandler);
  57040. procedure _Setonunload(const aValue: TEventHandler);
  57041. procedure _Setongamepadconnected(const aValue: TEventHandler);
  57042. procedure _Setongamepaddisconnected(const aValue: TEventHandler);
  57043. procedure _Setontouchstart(const aValue: TEventHandler);
  57044. procedure _Setontouchend(const aValue: TEventHandler);
  57045. procedure _Setontouchmove(const aValue: TEventHandler);
  57046. procedure _Setontouchcancel(const aValue: TEventHandler);
  57047. procedure _Setonerror(const aValue: TOnErrorEventHandler);
  57048. Public
  57049. Const
  57050. STATE_MAXIMIZED = 1;
  57051. STATE_MINIMIZED = 2;
  57052. STATE_NORMAL = 3;
  57053. STATE_FULLSCREEN = 4;
  57054. Public
  57055. procedure close; overload;
  57056. procedure stop; overload;
  57057. procedure focus; overload;
  57058. procedure blur; overload;
  57059. function open(const aUrl: UnicodeString; const aTarget: UnicodeString; const aFeatures: UnicodeString): IJSWindowProxy; overload;
  57060. function open: IJSWindowProxy; overload;
  57061. function open(const aUrl: UnicodeString): IJSWindowProxy; overload;
  57062. function open(const aUrl: UnicodeString; const aTarget: UnicodeString): IJSWindowProxy; overload;
  57063. function GetDefault(const aName: UnicodeString): IJSObject; overload;
  57064. procedure alert; overload;
  57065. procedure alert(const aMessage: UnicodeString); overload;
  57066. function confirm(const aMessage: UnicodeString): Boolean; overload;
  57067. function confirm: Boolean; overload;
  57068. function prompt(const aMessage: UnicodeString; const aDefault: UnicodeString): UnicodeString; overload;
  57069. function prompt: UnicodeString; overload;
  57070. function prompt(const aMessage: UnicodeString): UnicodeString; overload;
  57071. procedure print; overload;
  57072. procedure postMessage(const aMessage: Variant; const aTargetOrigin: UnicodeString; const aTransfer: TIJSObjectDynArray); overload;
  57073. procedure postMessage(const aMessage: Variant; const aTargetOrigin: UnicodeString); overload;
  57074. procedure postMessage(const aMessage: Variant; const aOptions: TJSWindowPostMessageOptions); overload;
  57075. procedure postMessage(const aMessage: Variant); overload;
  57076. procedure captureEvents; overload;
  57077. procedure releaseEvents; overload;
  57078. function getSelection: IJSSelection; overload;
  57079. function getComputedStyle(aElt: IJSElement; const aPseudoElt: UnicodeString): IJSCSSStyleDeclaration; overload;
  57080. function getComputedStyle(aElt: IJSElement): IJSCSSStyleDeclaration; overload;
  57081. function matchMedia(const aQuery: UTF8String): IJSMediaQueryList; overload;
  57082. procedure moveTo(aX: LongInt; aY: LongInt); overload;
  57083. procedure moveBy(aX: LongInt; aY: LongInt); overload;
  57084. procedure resizeTo(aX: LongInt; aY: LongInt); overload;
  57085. procedure resizeBy(aX: LongInt; aY: LongInt); overload;
  57086. procedure scroll(aX: Double; aY: Double); overload;
  57087. procedure scroll(const aOptions: TJSScrollToOptions); overload;
  57088. procedure scroll; overload;
  57089. procedure scrollTo(aX: Double; aY: Double); overload;
  57090. procedure scrollTo(const aOptions: TJSScrollToOptions); overload;
  57091. procedure scrollTo; overload;
  57092. procedure scrollBy(aX: Double; aY: Double); overload;
  57093. procedure scrollBy(const aOptions: TJSScrollToOptions); overload;
  57094. procedure scrollBy; overload;
  57095. function getDefaultComputedStyle(aElt: IJSElement; const aPseudoElt: UnicodeString): IJSCSSStyleDeclaration; overload;
  57096. function getDefaultComputedStyle(aElt: IJSElement): IJSCSSStyleDeclaration; overload;
  57097. procedure scrollByLines(aNumLines: LongInt; const aOptions: TJSScrollOptions); overload;
  57098. procedure scrollByLines(aNumLines: LongInt); overload;
  57099. procedure scrollByPages(aNumPages: LongInt; const aOptions: TJSScrollOptions); overload;
  57100. procedure scrollByPages(aNumPages: LongInt); overload;
  57101. procedure sizeToContent; overload;
  57102. procedure updateCommands(const aAction: UnicodeString); overload;
  57103. function find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean; aWholeWord: Boolean; aSearchInFrames: Boolean; aShowDialog: Boolean): Boolean; overload;
  57104. function find: Boolean; overload;
  57105. function find(const aStr: UnicodeString): Boolean; overload;
  57106. function find(const aStr: UnicodeString; aCaseSensitive: Boolean): Boolean; overload;
  57107. function find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean): Boolean; overload;
  57108. function find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean): Boolean; overload;
  57109. function find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean; aWholeWord: Boolean): Boolean; overload;
  57110. function find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean; aWholeWord: Boolean; aSearchInFrames: Boolean): Boolean; overload;
  57111. procedure dump(const aStr: UnicodeString); overload;
  57112. procedure setResizable(aResizable: Boolean); overload;
  57113. procedure getAttention; overload;
  57114. procedure getAttentionWithCycleCount(aACycleCount: LongInt); overload;
  57115. procedure setCursor(const aCursor: UTF8String); overload;
  57116. procedure maximize; overload;
  57117. procedure minimize; overload;
  57118. procedure restore; overload;
  57119. function getWorkspaceID: UnicodeString; overload;
  57120. procedure moveToWorkspace(const aWorkspaceID: UnicodeString); overload;
  57121. procedure notifyDefaultButtonLoaded(aDefaultButton: IJSElement); overload;
  57122. function promiseDocumentFlushed(const aCallback: TPromiseDocumentFlushedCallback): IJSPromise; overload; // Promise<any>
  57123. function requestIdleCallback(const aCallback: TIdleRequestCallback; const aOptions: TJSIdleRequestOptions): Cardinal; overload;
  57124. function requestIdleCallback(const aCallback: TIdleRequestCallback): Cardinal; overload;
  57125. procedure cancelIdleCallback(aHandle: Cardinal); overload;
  57126. function getRegionalPrefsLocales: TUnicodeStringDynArray; overload;
  57127. function getWebExposedLocales: TUnicodeStringDynArray; overload;
  57128. function requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt; overload;
  57129. procedure cancelAnimationFrame(aHandle: LongInt); overload;
  57130. procedure reportError(const aE: Variant); overload;
  57131. function btoa(const aBtoa: UnicodeString): UnicodeString; overload;
  57132. function atob(const aAtob: UnicodeString): UnicodeString; overload;
  57133. function setTimeout(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs}; overload;
  57134. function setTimeout(const aHandler: TFunction): LongInt{; ToDo:varargs}; overload;
  57135. function setTimeout(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs}; overload;
  57136. function setTimeout(const aHandler: UnicodeString): LongInt{; ToDo:varargs}; overload;
  57137. procedure clearTimeout(aHandle: LongInt); overload;
  57138. procedure clearTimeout; overload;
  57139. function setInterval(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs}; overload;
  57140. function setInterval(const aHandler: TFunction): LongInt{; ToDo:varargs}; overload;
  57141. function setInterval(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs}; overload;
  57142. function setInterval(const aHandler: UnicodeString): LongInt{; ToDo:varargs}; overload;
  57143. procedure clearInterval(aHandle: LongInt); overload;
  57144. procedure clearInterval; overload;
  57145. procedure queueMicrotask(const aCallback: TVoidFunction); overload;
  57146. function createImageBitmap(aAImage: IJSBlob; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57147. function createImageBitmap(const aAImage: TCanvasImageSource; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57148. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57149. function createImageBitmap(aAImage: IJSImageData; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57150. function createImageBitmap(aAImage: IJSImageData): IJSPromise; overload; // Promise<ImageBitmap>
  57151. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D): IJSPromise; overload; // Promise<ImageBitmap>
  57152. function createImageBitmap(const aAImage: TCanvasImageSource): IJSPromise; overload; // Promise<ImageBitmap>
  57153. function createImageBitmap(aAImage: IJSBlob): IJSPromise; overload; // Promise<ImageBitmap>
  57154. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57155. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57156. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57157. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57158. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  57159. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  57160. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  57161. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  57162. function structuredClone(const aValue: Variant; const aOptions: TJSStructuredSerializeOptions): Variant; overload;
  57163. function structuredClone(const aValue: Variant): Variant; overload;
  57164. function fetch(aInput: IJSRequest; const aInit: TJSRequestInit): IJSPromise; overload; // Promise<Response>
  57165. function fetch(const aInput: UnicodeString; const aInit: TJSRequestInit): IJSPromise; overload; // Promise<Response>
  57166. function fetch(const aInput: UnicodeString): IJSPromise; overload; // Promise<Response>
  57167. function fetch(aInput: IJSRequest): IJSPromise; overload; // Promise<Response>
  57168. class function JSClassName: UnicodeString; override;
  57169. class function Cast(const Intf: IJSObject): IJSWindow;
  57170. property window: IJSWindowProxy read _Getwindow;
  57171. property self_: IJSWindowProxy read _Getself_;
  57172. property document: IJSDocument read _Getdocument;
  57173. property name: UnicodeString read _Getname write _Setname;
  57174. property location: IJSLocation read _Getlocation;
  57175. property history: IJSHistory read _Gethistory;
  57176. property customElements: IJSCustomElementRegistry read _GetcustomElements;
  57177. property locationbar: IJSBarProp read _Getlocationbar;
  57178. property menubar: IJSBarProp read _Getmenubar;
  57179. property personalbar: IJSBarProp read _Getpersonalbar;
  57180. property scrollbars: IJSBarProp read _Getscrollbars;
  57181. property statusbar: IJSBarProp read _Getstatusbar;
  57182. property toolbar: IJSBarProp read _Gettoolbar;
  57183. property status: UnicodeString read _Getstatus write _Setstatus;
  57184. property closed: Boolean read _Getclosed;
  57185. property event: TWindow_event_Type read _Getevent;
  57186. property frames: IJSWindowProxy read _Getframes;
  57187. property length_: Cardinal read _Getlength_;
  57188. property top: IJSWindowProxy read _Gettop;
  57189. property opener: Variant read _Getopener write _Setopener;
  57190. property parent: IJSWindowProxy read _Getparent;
  57191. property frameElement: IJSElement read _GetframeElement;
  57192. property navigator: IJSNavigator read _Getnavigator;
  57193. property clientInformation: IJSNavigator read _GetclientInformation;
  57194. property external: IJSExternal read _Getexternal;
  57195. property screen: IJSScreen read _Getscreen;
  57196. property innerWidth: Double read _GetinnerWidth;
  57197. property innerHeight: Double read _GetinnerHeight;
  57198. property scrollX: Double read _GetscrollX;
  57199. property pageXOffset: Double read _GetpageXOffset;
  57200. property scrollY: Double read _GetscrollY;
  57201. property pageYOffset: Double read _GetpageYOffset;
  57202. property screenLeft: Double read _GetscreenLeft;
  57203. property screenTop: Double read _GetscreenTop;
  57204. property screenX: Double read _GetscreenX;
  57205. property screenY: Double read _GetscreenY;
  57206. property outerWidth: Double read _GetouterWidth;
  57207. property outerHeight: Double read _GetouterHeight;
  57208. property performance: IJSPerformance read _Getperformance;
  57209. property mozInnerScreenX: Single read _GetmozInnerScreenX;
  57210. property mozInnerScreenY: Single read _GetmozInnerScreenY;
  57211. property devicePixelRatio: Double read _GetdevicePixelRatio;
  57212. property scrollMaxX: LongInt read _GetscrollMaxX;
  57213. property scrollMaxY: LongInt read _GetscrollMaxY;
  57214. property fullScreen: Boolean read _GetfullScreen write _SetfullScreen;
  57215. property ondevicemotion: TEventHandler read _Getondevicemotion write _Setondevicemotion;
  57216. property ondeviceorientation: TEventHandler read _Getondeviceorientation write _Setondeviceorientation;
  57217. property ondeviceorientationabsolute: TEventHandler read _Getondeviceorientationabsolute write _Setondeviceorientationabsolute;
  57218. property onuserproximity: TEventHandler read _Getonuserproximity write _Setonuserproximity;
  57219. property ondevicelight: TEventHandler read _Getondevicelight write _Setondevicelight;
  57220. property windowState: Word read _GetwindowState;
  57221. property isFullyOccluded: Boolean read _GetisFullyOccluded;
  57222. property browserDOMWindow: IJSnsIBrowserDOMWindow read _GetbrowserDOMWindow write _SetbrowserDOMWindow;
  57223. property isChromeWindow: Boolean read _GetisChromeWindow;
  57224. property Glean: IJSGleanImpl read _GetGlean;
  57225. property GleanPings: IJSGleanPingsImpl read _GetGleanPings;
  57226. property onvrdisplayconnect: TEventHandler read _Getonvrdisplayconnect write _Setonvrdisplayconnect;
  57227. property onvrdisplaydisconnect: TEventHandler read _Getonvrdisplaydisconnect write _Setonvrdisplaydisconnect;
  57228. property onvrdisplayactivate: TEventHandler read _Getonvrdisplayactivate write _Setonvrdisplayactivate;
  57229. property onvrdisplaydeactivate: TEventHandler read _Getonvrdisplaydeactivate write _Setonvrdisplaydeactivate;
  57230. property onvrdisplaypresentchange: TEventHandler read _Getonvrdisplaypresentchange write _Setonvrdisplaypresentchange;
  57231. property paintWorklet: IJSWorklet read _GetpaintWorklet;
  57232. property intlUtils: IJSIntlUtils read _GetintlUtils;
  57233. property visualViewport: IJSVisualViewport read _GetvisualViewport;
  57234. property onabort: TEventHandler read _Getonabort write _Setonabort;
  57235. property onblur: TEventHandler read _Getonblur write _Setonblur;
  57236. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  57237. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  57238. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  57239. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  57240. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  57241. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  57242. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  57243. property onchange: TEventHandler read _Getonchange write _Setonchange;
  57244. property onclick: TEventHandler read _Getonclick write _Setonclick;
  57245. property onclose: TEventHandler read _Getonclose write _Setonclose;
  57246. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  57247. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  57248. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  57249. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  57250. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  57251. property oncut: TEventHandler read _Getoncut write _Setoncut;
  57252. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  57253. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  57254. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  57255. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  57256. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  57257. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  57258. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  57259. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  57260. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  57261. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  57262. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  57263. property onended: TEventHandler read _Getonended write _Setonended;
  57264. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  57265. property oninput: TEventHandler read _Getoninput write _Setoninput;
  57266. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  57267. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  57268. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  57269. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  57270. property onload: TEventHandler read _Getonload write _Setonload;
  57271. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  57272. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  57273. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  57274. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  57275. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  57276. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  57277. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  57278. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  57279. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  57280. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  57281. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  57282. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  57283. property onpause: TEventHandler read _Getonpause write _Setonpause;
  57284. property onplay: TEventHandler read _Getonplay write _Setonplay;
  57285. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  57286. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  57287. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  57288. property onreset: TEventHandler read _Getonreset write _Setonreset;
  57289. property onresize: TEventHandler read _Getonresize write _Setonresize;
  57290. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  57291. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  57292. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  57293. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  57294. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  57295. property onselect: TEventHandler read _Getonselect write _Setonselect;
  57296. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  57297. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  57298. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  57299. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  57300. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  57301. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  57302. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  57303. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  57304. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  57305. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  57306. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  57307. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  57308. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  57309. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  57310. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  57311. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  57312. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  57313. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  57314. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  57315. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  57316. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  57317. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  57318. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  57319. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  57320. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  57321. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  57322. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  57323. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  57324. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  57325. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  57326. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  57327. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  57328. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  57329. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  57330. property onafterprint: TEventHandler read _Getonafterprint write _Setonafterprint;
  57331. property onbeforeprint: TEventHandler read _Getonbeforeprint write _Setonbeforeprint;
  57332. property onbeforeunload: TOnBeforeUnloadEventHandler read _Getonbeforeunload write _Setonbeforeunload;
  57333. property onhashchange: TEventHandler read _Getonhashchange write _Setonhashchange;
  57334. property onlanguagechange: TEventHandler read _Getonlanguagechange write _Setonlanguagechange;
  57335. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  57336. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  57337. property onoffline: TEventHandler read _Getonoffline write _Setonoffline;
  57338. property ononline: TEventHandler read _Getononline write _Setononline;
  57339. property onpagehide: TEventHandler read _Getonpagehide write _Setonpagehide;
  57340. property onpageshow: TEventHandler read _Getonpageshow write _Setonpageshow;
  57341. property onpopstate: TEventHandler read _Getonpopstate write _Setonpopstate;
  57342. property onrejectionhandled: TEventHandler read _Getonrejectionhandled write _Setonrejectionhandled;
  57343. property onstorage: TEventHandler read _Getonstorage write _Setonstorage;
  57344. property onunhandledrejection: TEventHandler read _Getonunhandledrejection write _Setonunhandledrejection;
  57345. property onunload: TEventHandler read _Getonunload write _Setonunload;
  57346. property ongamepadconnected: TEventHandler read _Getongamepadconnected write _Setongamepadconnected;
  57347. property ongamepaddisconnected: TEventHandler read _Getongamepaddisconnected write _Setongamepaddisconnected;
  57348. property sessionStorage: IJSStorage read _GetsessionStorage;
  57349. property localStorage: IJSStorage read _GetlocalStorage;
  57350. property crypto: IJSCrypto read _Getcrypto;
  57351. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  57352. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  57353. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  57354. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  57355. property onerror: TOnErrorEventHandler read _Getonerror write _Setonerror;
  57356. property origin: UnicodeString read _Getorigin;
  57357. property crossOriginIsolated: Boolean read _GetcrossOriginIsolated;
  57358. property isSecureContext: Boolean read _GetisSecureContext;
  57359. property indexedDB: IJSIDBFactory read _GetindexedDB;
  57360. property caches: IJSCacheStorage read _Getcaches;
  57361. property scheduler: IJSScheduler read _Getscheduler;
  57362. property trustedTypes: IJSTrustedTypePolicyFactory read _GettrustedTypes;
  57363. end;
  57364. { --------------------------------------------------------------------
  57365. TJSWorker
  57366. --------------------------------------------------------------------}
  57367. IJSWorker = interface(IJSEventTarget)
  57368. ['{080D49E9-8A29-34B2-8558-B77FCBC05313}']
  57369. function _Getonmessage: TEventHandler;
  57370. function _Getonmessageerror: TEventHandler;
  57371. function _Getonerror: TEventHandler;
  57372. procedure _Setonmessage(const aValue: TEventHandler);
  57373. procedure _Setonmessageerror(const aValue: TEventHandler);
  57374. procedure _Setonerror(const aValue: TEventHandler);
  57375. procedure terminate;
  57376. procedure postMessage(const aMessage: Variant; const aTransfer: TIJSObjectDynArray);
  57377. procedure postMessage(const aMessage: Variant; const aAOptions: TJSStructuredSerializeOptions);
  57378. procedure postMessage(const aMessage: Variant);
  57379. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  57380. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  57381. property onerror: TEventHandler read _Getonerror write _Setonerror;
  57382. end;
  57383. TJSWorker = class(TJSEventTarget,IJSWorker)
  57384. Protected
  57385. function _Getonmessage: TEventHandler;
  57386. function _Getonmessageerror: TEventHandler;
  57387. function _Getonerror: TEventHandler;
  57388. procedure _Setonmessage(const aValue: TEventHandler);
  57389. procedure _Setonmessageerror(const aValue: TEventHandler);
  57390. procedure _Setonerror(const aValue: TEventHandler);
  57391. Public
  57392. constructor Create(const aScriptURL: UnicodeString; const aOptions: TJSWorkerOptions); overload;
  57393. constructor Create(const aScriptURL: UnicodeString); overload;
  57394. procedure terminate; overload;
  57395. procedure postMessage(const aMessage: Variant; const aTransfer: TIJSObjectDynArray); overload;
  57396. procedure postMessage(const aMessage: Variant; const aAOptions: TJSStructuredSerializeOptions); overload;
  57397. procedure postMessage(const aMessage: Variant); overload;
  57398. class function JSClassName: UnicodeString; override;
  57399. class function Cast(const Intf: IJSObject): IJSWorker;
  57400. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  57401. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  57402. property onerror: TEventHandler read _Getonerror write _Setonerror;
  57403. end;
  57404. { --------------------------------------------------------------------
  57405. TJSWorkerDebuggerGlobalScope
  57406. --------------------------------------------------------------------}
  57407. IJSWorkerDebuggerGlobalScope = interface(IJSEventTarget)
  57408. ['{9B1FDC46-DE15-335D-827C-588CC88FAE6D}']
  57409. function _Getglobal: IJSObject;
  57410. function _Getonmessage: TEventHandler;
  57411. function _Getonmessageerror: TEventHandler;
  57412. procedure _Setonmessage(const aValue: TEventHandler);
  57413. procedure _Setonmessageerror(const aValue: TEventHandler);
  57414. function createSandbox(const aName: UnicodeString; aPrototype: IJSObject): IJSObject;
  57415. procedure loadSubScript(const aUrl: UnicodeString; aSandbox: IJSObject);
  57416. procedure loadSubScript(const aUrl: UnicodeString);
  57417. procedure enterEventLoop;
  57418. procedure leaveEventLoop;
  57419. procedure postMessage(const aMessage: UnicodeString);
  57420. procedure setImmediate(const aHandler: TFunction);
  57421. procedure reportError(const aMessage: UnicodeString);
  57422. function retrieveConsoleEvents: TVariantDynArray;
  57423. procedure setConsoleEventHandler(const aHandler: TAnyCallback);
  57424. procedure clearConsoleEvents;
  57425. function btoa(const aBtoa: UnicodeString): UnicodeString;
  57426. function atob(const aAtob: UnicodeString): UnicodeString;
  57427. procedure dump(const aString_: UnicodeString);
  57428. procedure dump;
  57429. property global: IJSObject read _Getglobal;
  57430. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  57431. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  57432. end;
  57433. TJSWorkerDebuggerGlobalScope = class(TJSEventTarget,IJSWorkerDebuggerGlobalScope)
  57434. Protected
  57435. function _Getglobal: IJSObject;
  57436. function _Getonmessage: TEventHandler;
  57437. function _Getonmessageerror: TEventHandler;
  57438. procedure _Setonmessage(const aValue: TEventHandler);
  57439. procedure _Setonmessageerror(const aValue: TEventHandler);
  57440. Public
  57441. function createSandbox(const aName: UnicodeString; aPrototype: IJSObject): IJSObject; overload;
  57442. procedure loadSubScript(const aUrl: UnicodeString; aSandbox: IJSObject); overload;
  57443. procedure loadSubScript(const aUrl: UnicodeString); overload;
  57444. procedure enterEventLoop; overload;
  57445. procedure leaveEventLoop; overload;
  57446. procedure postMessage(const aMessage: UnicodeString); overload;
  57447. procedure setImmediate(const aHandler: TFunction); overload;
  57448. procedure reportError(const aMessage: UnicodeString); overload;
  57449. function retrieveConsoleEvents: TVariantDynArray; overload;
  57450. procedure setConsoleEventHandler(const aHandler: TAnyCallback); overload;
  57451. procedure clearConsoleEvents; overload;
  57452. function btoa(const aBtoa: UnicodeString): UnicodeString; overload;
  57453. function atob(const aAtob: UnicodeString): UnicodeString; overload;
  57454. procedure dump(const aString_: UnicodeString); overload;
  57455. procedure dump; overload;
  57456. class function JSClassName: UnicodeString; override;
  57457. class function Cast(const Intf: IJSObject): IJSWorkerDebuggerGlobalScope;
  57458. property global: IJSObject read _Getglobal;
  57459. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  57460. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  57461. end;
  57462. { --------------------------------------------------------------------
  57463. TJSWorkerGlobalScope
  57464. --------------------------------------------------------------------}
  57465. IJSWorkerGlobalScope = interface(IJSEventTarget)
  57466. ['{B251E3D4-EE2E-34E4-92E3-E077341CA161}']
  57467. function _Getself_: IJSWorkerGlobalScope;
  57468. function _Getlocation: IJSWorkerLocation;
  57469. function _Getnavigator: IJSWorkerNavigator;
  57470. function _Getonerror: TOnErrorEventHandler;
  57471. function _Getonlanguagechange: TEventHandler;
  57472. function _Getonoffline: TEventHandler;
  57473. function _Getononline: TEventHandler;
  57474. function _Getonrejectionhandled: TEventHandler;
  57475. function _Getonunhandledrejection: TEventHandler;
  57476. function _Getperformance: IJSPerformance;
  57477. function _Getcrypto: IJSCrypto;
  57478. function _Getfonts: IJSFontFaceSet;
  57479. function _Getorigin: UnicodeString;
  57480. function _GetcrossOriginIsolated: Boolean;
  57481. function _GetisSecureContext: Boolean;
  57482. function _GetindexedDB: IJSIDBFactory;
  57483. function _Getcaches: IJSCacheStorage;
  57484. function _Getscheduler: IJSScheduler;
  57485. function _GettrustedTypes: IJSTrustedTypePolicyFactory;
  57486. procedure _Setonerror(const aValue: TOnErrorEventHandler);
  57487. procedure _Setonlanguagechange(const aValue: TEventHandler);
  57488. procedure _Setonoffline(const aValue: TEventHandler);
  57489. procedure _Setononline(const aValue: TEventHandler);
  57490. procedure _Setonrejectionhandled(const aValue: TEventHandler);
  57491. procedure _Setonunhandledrejection(const aValue: TEventHandler);
  57492. procedure importScripts(const aUrls: UnicodeString){; ToDo:varargs};
  57493. procedure dump(const aStr: UnicodeString);
  57494. procedure dump;
  57495. function getJSTestingFunctions: IJSObject;
  57496. procedure reportError(const aE: Variant);
  57497. function btoa(const aBtoa: UnicodeString): UnicodeString;
  57498. function atob(const aAtob: UnicodeString): UnicodeString;
  57499. function setTimeout(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  57500. function setTimeout(const aHandler: TFunction): LongInt{; ToDo:varargs};
  57501. function setTimeout(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  57502. function setTimeout(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  57503. procedure clearTimeout(aHandle: LongInt);
  57504. procedure clearTimeout;
  57505. function setInterval(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  57506. function setInterval(const aHandler: TFunction): LongInt{; ToDo:varargs};
  57507. function setInterval(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  57508. function setInterval(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  57509. procedure clearInterval(aHandle: LongInt);
  57510. procedure clearInterval;
  57511. procedure queueMicrotask(const aCallback: TVoidFunction);
  57512. function createImageBitmap(aAImage: IJSBlob; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  57513. function createImageBitmap(const aAImage: TCanvasImageSource; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  57514. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  57515. function createImageBitmap(aAImage: IJSImageData; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  57516. function createImageBitmap(aAImage: IJSImageData): IJSPromise; // Promise<ImageBitmap>
  57517. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D): IJSPromise; // Promise<ImageBitmap>
  57518. function createImageBitmap(const aAImage: TCanvasImageSource): IJSPromise; // Promise<ImageBitmap>
  57519. function createImageBitmap(aAImage: IJSBlob): IJSPromise; // Promise<ImageBitmap>
  57520. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  57521. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  57522. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  57523. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  57524. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  57525. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  57526. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  57527. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  57528. function structuredClone(const aValue: Variant; const aOptions: TJSStructuredSerializeOptions): Variant;
  57529. function structuredClone(const aValue: Variant): Variant;
  57530. function fetch(aInput: IJSRequest; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  57531. function fetch(const aInput: UnicodeString; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  57532. function fetch(const aInput: UnicodeString): IJSPromise; // Promise<Response>
  57533. function fetch(aInput: IJSRequest): IJSPromise; // Promise<Response>
  57534. property self_: IJSWorkerGlobalScope read _Getself_;
  57535. property location: IJSWorkerLocation read _Getlocation;
  57536. property navigator: IJSWorkerNavigator read _Getnavigator;
  57537. property onerror: TOnErrorEventHandler read _Getonerror write _Setonerror;
  57538. property onlanguagechange: TEventHandler read _Getonlanguagechange write _Setonlanguagechange;
  57539. property onoffline: TEventHandler read _Getonoffline write _Setonoffline;
  57540. property ononline: TEventHandler read _Getononline write _Setononline;
  57541. property onrejectionhandled: TEventHandler read _Getonrejectionhandled write _Setonrejectionhandled;
  57542. property onunhandledrejection: TEventHandler read _Getonunhandledrejection write _Setonunhandledrejection;
  57543. property performance: IJSPerformance read _Getperformance;
  57544. property crypto: IJSCrypto read _Getcrypto;
  57545. property fonts: IJSFontFaceSet read _Getfonts;
  57546. property origin: UnicodeString read _Getorigin;
  57547. property crossOriginIsolated: Boolean read _GetcrossOriginIsolated;
  57548. property isSecureContext: Boolean read _GetisSecureContext;
  57549. property indexedDB: IJSIDBFactory read _GetindexedDB;
  57550. property caches: IJSCacheStorage read _Getcaches;
  57551. property scheduler: IJSScheduler read _Getscheduler;
  57552. property trustedTypes: IJSTrustedTypePolicyFactory read _GettrustedTypes;
  57553. end;
  57554. TJSWorkerGlobalScope = class(TJSEventTarget,IJSWorkerGlobalScope)
  57555. Protected
  57556. function _Getself_: IJSWorkerGlobalScope;
  57557. function _Getlocation: IJSWorkerLocation;
  57558. function _Getnavigator: IJSWorkerNavigator;
  57559. function _Getonerror: TOnErrorEventHandler;
  57560. function _Getonlanguagechange: TEventHandler;
  57561. function _Getonoffline: TEventHandler;
  57562. function _Getononline: TEventHandler;
  57563. function _Getonrejectionhandled: TEventHandler;
  57564. function _Getonunhandledrejection: TEventHandler;
  57565. function _Getperformance: IJSPerformance;
  57566. function _Getcrypto: IJSCrypto;
  57567. function _Getfonts: IJSFontFaceSet;
  57568. function _Getorigin: UnicodeString;
  57569. function _GetcrossOriginIsolated: Boolean;
  57570. function _GetisSecureContext: Boolean;
  57571. function _GetindexedDB: IJSIDBFactory;
  57572. function _Getcaches: IJSCacheStorage;
  57573. function _Getscheduler: IJSScheduler;
  57574. function _GettrustedTypes: IJSTrustedTypePolicyFactory;
  57575. procedure _Setonerror(const aValue: TOnErrorEventHandler);
  57576. procedure _Setonlanguagechange(const aValue: TEventHandler);
  57577. procedure _Setonoffline(const aValue: TEventHandler);
  57578. procedure _Setononline(const aValue: TEventHandler);
  57579. procedure _Setonrejectionhandled(const aValue: TEventHandler);
  57580. procedure _Setonunhandledrejection(const aValue: TEventHandler);
  57581. Public
  57582. procedure importScripts(const aUrls: UnicodeString){; ToDo:varargs}; overload;
  57583. procedure dump(const aStr: UnicodeString); overload;
  57584. procedure dump; overload;
  57585. function getJSTestingFunctions: IJSObject; overload;
  57586. procedure reportError(const aE: Variant); overload;
  57587. function btoa(const aBtoa: UnicodeString): UnicodeString; overload;
  57588. function atob(const aAtob: UnicodeString): UnicodeString; overload;
  57589. function setTimeout(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs}; overload;
  57590. function setTimeout(const aHandler: TFunction): LongInt{; ToDo:varargs}; overload;
  57591. function setTimeout(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs}; overload;
  57592. function setTimeout(const aHandler: UnicodeString): LongInt{; ToDo:varargs}; overload;
  57593. procedure clearTimeout(aHandle: LongInt); overload;
  57594. procedure clearTimeout; overload;
  57595. function setInterval(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs}; overload;
  57596. function setInterval(const aHandler: TFunction): LongInt{; ToDo:varargs}; overload;
  57597. function setInterval(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs}; overload;
  57598. function setInterval(const aHandler: UnicodeString): LongInt{; ToDo:varargs}; overload;
  57599. procedure clearInterval(aHandle: LongInt); overload;
  57600. procedure clearInterval; overload;
  57601. procedure queueMicrotask(const aCallback: TVoidFunction); overload;
  57602. function createImageBitmap(aAImage: IJSBlob; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57603. function createImageBitmap(const aAImage: TCanvasImageSource; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57604. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57605. function createImageBitmap(aAImage: IJSImageData; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57606. function createImageBitmap(aAImage: IJSImageData): IJSPromise; overload; // Promise<ImageBitmap>
  57607. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D): IJSPromise; overload; // Promise<ImageBitmap>
  57608. function createImageBitmap(const aAImage: TCanvasImageSource): IJSPromise; overload; // Promise<ImageBitmap>
  57609. function createImageBitmap(aAImage: IJSBlob): IJSPromise; overload; // Promise<ImageBitmap>
  57610. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57611. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57612. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57613. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; overload; // Promise<ImageBitmap>
  57614. function createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  57615. function createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  57616. function createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  57617. function createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; overload; // Promise<ImageBitmap>
  57618. function structuredClone(const aValue: Variant; const aOptions: TJSStructuredSerializeOptions): Variant; overload;
  57619. function structuredClone(const aValue: Variant): Variant; overload;
  57620. function fetch(aInput: IJSRequest; const aInit: TJSRequestInit): IJSPromise; overload; // Promise<Response>
  57621. function fetch(const aInput: UnicodeString; const aInit: TJSRequestInit): IJSPromise; overload; // Promise<Response>
  57622. function fetch(const aInput: UnicodeString): IJSPromise; overload; // Promise<Response>
  57623. function fetch(aInput: IJSRequest): IJSPromise; overload; // Promise<Response>
  57624. class function JSClassName: UnicodeString; override;
  57625. class function Cast(const Intf: IJSObject): IJSWorkerGlobalScope;
  57626. property self_: IJSWorkerGlobalScope read _Getself_;
  57627. property location: IJSWorkerLocation read _Getlocation;
  57628. property navigator: IJSWorkerNavigator read _Getnavigator;
  57629. property onerror: TOnErrorEventHandler read _Getonerror write _Setonerror;
  57630. property onlanguagechange: TEventHandler read _Getonlanguagechange write _Setonlanguagechange;
  57631. property onoffline: TEventHandler read _Getonoffline write _Setonoffline;
  57632. property ononline: TEventHandler read _Getononline write _Setononline;
  57633. property onrejectionhandled: TEventHandler read _Getonrejectionhandled write _Setonrejectionhandled;
  57634. property onunhandledrejection: TEventHandler read _Getonunhandledrejection write _Setonunhandledrejection;
  57635. property performance: IJSPerformance read _Getperformance;
  57636. property crypto: IJSCrypto read _Getcrypto;
  57637. property fonts: IJSFontFaceSet read _Getfonts;
  57638. property origin: UnicodeString read _Getorigin;
  57639. property crossOriginIsolated: Boolean read _GetcrossOriginIsolated;
  57640. property isSecureContext: Boolean read _GetisSecureContext;
  57641. property indexedDB: IJSIDBFactory read _GetindexedDB;
  57642. property caches: IJSCacheStorage read _Getcaches;
  57643. property scheduler: IJSScheduler read _Getscheduler;
  57644. property trustedTypes: IJSTrustedTypePolicyFactory read _GettrustedTypes;
  57645. end;
  57646. { --------------------------------------------------------------------
  57647. TJSXMLHttpRequestEventTarget
  57648. --------------------------------------------------------------------}
  57649. IJSXMLHttpRequestEventTarget = interface(IJSEventTarget)
  57650. ['{F5B4D465-1525-3757-B96D-D4E14D83A032}']
  57651. function _Getonloadstart: TEventHandler;
  57652. function _Getonprogress: TEventHandler;
  57653. function _Getonabort: TEventHandler;
  57654. function _Getonerror: TEventHandler;
  57655. function _Getonload: TEventHandler;
  57656. function _Getontimeout: TEventHandler;
  57657. function _Getonloadend: TEventHandler;
  57658. procedure _Setonloadstart(const aValue: TEventHandler);
  57659. procedure _Setonprogress(const aValue: TEventHandler);
  57660. procedure _Setonabort(const aValue: TEventHandler);
  57661. procedure _Setonerror(const aValue: TEventHandler);
  57662. procedure _Setonload(const aValue: TEventHandler);
  57663. procedure _Setontimeout(const aValue: TEventHandler);
  57664. procedure _Setonloadend(const aValue: TEventHandler);
  57665. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  57666. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  57667. property onabort: TEventHandler read _Getonabort write _Setonabort;
  57668. property onerror: TEventHandler read _Getonerror write _Setonerror;
  57669. property onload: TEventHandler read _Getonload write _Setonload;
  57670. property ontimeout: TEventHandler read _Getontimeout write _Setontimeout;
  57671. property onloadend: TEventHandler read _Getonloadend write _Setonloadend;
  57672. end;
  57673. TJSXMLHttpRequestEventTarget = class(TJSEventTarget,IJSXMLHttpRequestEventTarget)
  57674. Protected
  57675. function _Getonloadstart: TEventHandler;
  57676. function _Getonprogress: TEventHandler;
  57677. function _Getonabort: TEventHandler;
  57678. function _Getonerror: TEventHandler;
  57679. function _Getonload: TEventHandler;
  57680. function _Getontimeout: TEventHandler;
  57681. function _Getonloadend: TEventHandler;
  57682. procedure _Setonloadstart(const aValue: TEventHandler);
  57683. procedure _Setonprogress(const aValue: TEventHandler);
  57684. procedure _Setonabort(const aValue: TEventHandler);
  57685. procedure _Setonerror(const aValue: TEventHandler);
  57686. procedure _Setonload(const aValue: TEventHandler);
  57687. procedure _Setontimeout(const aValue: TEventHandler);
  57688. procedure _Setonloadend(const aValue: TEventHandler);
  57689. Public
  57690. class function JSClassName: UnicodeString; override;
  57691. class function Cast(const Intf: IJSObject): IJSXMLHttpRequestEventTarget;
  57692. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  57693. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  57694. property onabort: TEventHandler read _Getonabort write _Setonabort;
  57695. property onerror: TEventHandler read _Getonerror write _Setonerror;
  57696. property onload: TEventHandler read _Getonload write _Setonload;
  57697. property ontimeout: TEventHandler read _Getontimeout write _Setontimeout;
  57698. property onloadend: TEventHandler read _Getonloadend write _Setonloadend;
  57699. end;
  57700. { --------------------------------------------------------------------
  57701. TJSXPathEvaluator
  57702. --------------------------------------------------------------------}
  57703. IJSXPathEvaluator = interface(IJSXPathEvaluatorMixin)
  57704. ['{97C49F42-56EB-32A2-A812-88C6FED34B82}']
  57705. end;
  57706. TJSXPathEvaluator = class(TJSXPathEvaluatorMixin,IJSXPathEvaluator)
  57707. Protected
  57708. Public
  57709. constructor Create; overload;
  57710. class function JSClassName: UnicodeString; override;
  57711. class function Cast(const Intf: IJSObject): IJSXPathEvaluator;
  57712. end;
  57713. { --------------------------------------------------------------------
  57714. TJSXRInputSourceEvent
  57715. --------------------------------------------------------------------}
  57716. IJSXRInputSourceEvent = interface(IJSEvent)
  57717. ['{CCA9B281-6667-3BE1-AD03-EB4258CA6457}']
  57718. function _Getframe: IJSXRFrame;
  57719. function _GetinputSource: IJSXRInputSource;
  57720. property frame: IJSXRFrame read _Getframe;
  57721. property inputSource: IJSXRInputSource read _GetinputSource;
  57722. end;
  57723. TJSXRInputSourceEvent = class(TJSEvent,IJSXRInputSourceEvent)
  57724. Protected
  57725. function _Getframe: IJSXRFrame;
  57726. function _GetinputSource: IJSXRInputSource;
  57727. Public
  57728. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSXRInputSourceEventInit); overload;
  57729. class function JSClassName: UnicodeString; override;
  57730. class function Cast(const Intf: IJSObject): IJSXRInputSourceEvent;
  57731. property frame: IJSXRFrame read _Getframe;
  57732. property inputSource: IJSXRInputSource read _GetinputSource;
  57733. end;
  57734. { --------------------------------------------------------------------
  57735. TJSXRInputSourcesChangeEvent
  57736. --------------------------------------------------------------------}
  57737. IJSXRInputSourcesChangeEvent = interface(IJSEvent)
  57738. ['{13BBCBF9-B0B8-3C79-B719-DE4473263F4F}']
  57739. function _Getsession: IJSXRSession;
  57740. function _Getadded: TJSXRInputSourceDynArray;
  57741. function _Getremoved: TJSXRInputSourceDynArray;
  57742. property session: IJSXRSession read _Getsession;
  57743. property added: TJSXRInputSourceDynArray read _Getadded;
  57744. property removed: TJSXRInputSourceDynArray read _Getremoved;
  57745. end;
  57746. TJSXRInputSourcesChangeEvent = class(TJSEvent,IJSXRInputSourcesChangeEvent)
  57747. Protected
  57748. function _Getsession: IJSXRSession;
  57749. function _Getadded: TJSXRInputSourceDynArray;
  57750. function _Getremoved: TJSXRInputSourceDynArray;
  57751. Public
  57752. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSXRInputSourcesChangeEventInit); overload;
  57753. class function JSClassName: UnicodeString; override;
  57754. class function Cast(const Intf: IJSObject): IJSXRInputSourcesChangeEvent;
  57755. property session: IJSXRSession read _Getsession;
  57756. property added: TJSXRInputSourceDynArray read _Getadded;
  57757. property removed: TJSXRInputSourceDynArray read _Getremoved;
  57758. end;
  57759. { --------------------------------------------------------------------
  57760. TJSXRReferenceSpaceEvent
  57761. --------------------------------------------------------------------}
  57762. IJSXRReferenceSpaceEvent = interface(IJSEvent)
  57763. ['{98F05DC5-1E87-3C51-8724-8D4EE5A6D0B1}']
  57764. function _GetreferenceSpace: IJSXRReferenceSpace;
  57765. function _Gettransform: IJSXRRigidTransform;
  57766. property referenceSpace: IJSXRReferenceSpace read _GetreferenceSpace;
  57767. property transform: IJSXRRigidTransform read _Gettransform;
  57768. end;
  57769. TJSXRReferenceSpaceEvent = class(TJSEvent,IJSXRReferenceSpaceEvent)
  57770. Protected
  57771. function _GetreferenceSpace: IJSXRReferenceSpace;
  57772. function _Gettransform: IJSXRRigidTransform;
  57773. Public
  57774. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSXRReferenceSpaceEventInit); overload;
  57775. class function JSClassName: UnicodeString; override;
  57776. class function Cast(const Intf: IJSObject): IJSXRReferenceSpaceEvent;
  57777. property referenceSpace: IJSXRReferenceSpace read _GetreferenceSpace;
  57778. property transform: IJSXRRigidTransform read _Gettransform;
  57779. end;
  57780. { --------------------------------------------------------------------
  57781. TJSXRSessionEvent
  57782. --------------------------------------------------------------------}
  57783. IJSXRSessionEvent = interface(IJSEvent)
  57784. ['{9FF96507-69AC-33D7-B082-F9020C5997CE}']
  57785. function _Getsession: IJSXRSession;
  57786. property session: IJSXRSession read _Getsession;
  57787. end;
  57788. TJSXRSessionEvent = class(TJSEvent,IJSXRSessionEvent)
  57789. Protected
  57790. function _Getsession: IJSXRSession;
  57791. Public
  57792. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSXRSessionEventInit); overload;
  57793. class function JSClassName: UnicodeString; override;
  57794. class function Cast(const Intf: IJSObject): IJSXRSessionEvent;
  57795. property session: IJSXRSession read _Getsession;
  57796. end;
  57797. { --------------------------------------------------------------------
  57798. TJSAnalyserNode
  57799. --------------------------------------------------------------------}
  57800. IJSAnalyserNode = interface(IJSAudioNode)
  57801. ['{68ADF427-3AEF-3971-80E3-15ACB527DA77}']
  57802. function _GetfftSize: Cardinal;
  57803. function _GetfrequencyBinCount: Cardinal;
  57804. function _GetminDecibels: Double;
  57805. function _GetmaxDecibels: Double;
  57806. function _GetsmoothingTimeConstant: Double;
  57807. procedure _SetfftSize(const aValue: Cardinal);
  57808. procedure _SetminDecibels(const aValue: Double);
  57809. procedure _SetmaxDecibels(const aValue: Double);
  57810. procedure _SetsmoothingTimeConstant(const aValue: Double);
  57811. procedure getFloatFrequencyData(aArray_: IJSFloat32Array);
  57812. procedure getByteFrequencyData(aArray_: IJSUint8Array);
  57813. procedure getFloatTimeDomainData(aArray_: IJSFloat32Array);
  57814. procedure getByteTimeDomainData(aArray_: IJSUint8Array);
  57815. property fftSize: Cardinal read _GetfftSize write _SetfftSize;
  57816. property frequencyBinCount: Cardinal read _GetfrequencyBinCount;
  57817. property minDecibels: Double read _GetminDecibels write _SetminDecibels;
  57818. property maxDecibels: Double read _GetmaxDecibels write _SetmaxDecibels;
  57819. property smoothingTimeConstant: Double read _GetsmoothingTimeConstant write _SetsmoothingTimeConstant;
  57820. end;
  57821. TJSAnalyserNode = class(TJSAudioNode,IJSAnalyserNode)
  57822. Protected
  57823. function _GetfftSize: Cardinal;
  57824. function _GetfrequencyBinCount: Cardinal;
  57825. function _GetminDecibels: Double;
  57826. function _GetmaxDecibels: Double;
  57827. function _GetsmoothingTimeConstant: Double;
  57828. procedure _SetfftSize(const aValue: Cardinal);
  57829. procedure _SetminDecibels(const aValue: Double);
  57830. procedure _SetmaxDecibels(const aValue: Double);
  57831. procedure _SetsmoothingTimeConstant(const aValue: Double);
  57832. Public
  57833. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSAnalyserOptions); overload;
  57834. constructor Create(aContext: IJSBaseAudioContext); overload;
  57835. procedure getFloatFrequencyData(aArray_: IJSFloat32Array); overload;
  57836. procedure getByteFrequencyData(aArray_: IJSUint8Array); overload;
  57837. procedure getFloatTimeDomainData(aArray_: IJSFloat32Array); overload;
  57838. procedure getByteTimeDomainData(aArray_: IJSUint8Array); overload;
  57839. class function JSClassName: UnicodeString; override;
  57840. class function Cast(const Intf: IJSObject): IJSAnalyserNode;
  57841. property fftSize: Cardinal read _GetfftSize write _SetfftSize;
  57842. property frequencyBinCount: Cardinal read _GetfrequencyBinCount;
  57843. property minDecibels: Double read _GetminDecibels write _SetminDecibels;
  57844. property maxDecibels: Double read _GetmaxDecibels write _SetmaxDecibels;
  57845. property smoothingTimeConstant: Double read _GetsmoothingTimeConstant write _SetsmoothingTimeConstant;
  57846. end;
  57847. { --------------------------------------------------------------------
  57848. TJSAttr
  57849. --------------------------------------------------------------------}
  57850. IJSAttr = interface(IJSNode)
  57851. ['{B228055E-5C9C-353E-AEDD-5F1137194B25}']
  57852. function _GetlocalName: UnicodeString;
  57853. function _Getvalue: UnicodeString;
  57854. function _Getname: UnicodeString;
  57855. function _GetnamespaceURI: UnicodeString;
  57856. function _Getprefix: UnicodeString;
  57857. function _Getspecified: Boolean;
  57858. function _GetownerElement: IJSElement;
  57859. procedure _Setvalue(const aValue: UnicodeString);
  57860. property localName: UnicodeString read _GetlocalName;
  57861. property value: UnicodeString read _Getvalue write _Setvalue;
  57862. property name: UnicodeString read _Getname;
  57863. property namespaceURI: UnicodeString read _GetnamespaceURI;
  57864. property prefix: UnicodeString read _Getprefix;
  57865. property specified: Boolean read _Getspecified;
  57866. property ownerElement: IJSElement read _GetownerElement;
  57867. end;
  57868. TJSAttr = class(TJSNode,IJSAttr)
  57869. Protected
  57870. function _GetlocalName: UnicodeString;
  57871. function _Getvalue: UnicodeString;
  57872. function _Getname: UnicodeString;
  57873. function _GetnamespaceURI: UnicodeString;
  57874. function _Getprefix: UnicodeString;
  57875. function _Getspecified: Boolean;
  57876. function _GetownerElement: IJSElement;
  57877. procedure _Setvalue(const aValue: UnicodeString);
  57878. Public
  57879. class function JSClassName: UnicodeString; override;
  57880. class function Cast(const Intf: IJSObject): IJSAttr;
  57881. property localName: UnicodeString read _GetlocalName;
  57882. property value: UnicodeString read _Getvalue write _Setvalue;
  57883. property name: UnicodeString read _Getname;
  57884. property namespaceURI: UnicodeString read _GetnamespaceURI;
  57885. property prefix: UnicodeString read _Getprefix;
  57886. property specified: Boolean read _Getspecified;
  57887. property ownerElement: IJSElement read _GetownerElement;
  57888. end;
  57889. { --------------------------------------------------------------------
  57890. TJSAudioContext
  57891. --------------------------------------------------------------------}
  57892. IJSAudioContext = interface(IJSBaseAudioContext)
  57893. ['{30D5B735-C99B-3DB2-B739-466ECA3C886D}']
  57894. function _GetbaseLatency: Double;
  57895. function _GetoutputLatency: Double;
  57896. function getOutputTimestamp: TJSAudioTimestamp;
  57897. function suspend: IJSPromise; // Promise<undefined>
  57898. function close: IJSPromise; // Promise<undefined>
  57899. function createMediaElementSource(aMediaElement: IJSHTMLMediaElement): IJSMediaElementAudioSourceNode;
  57900. function createMediaStreamSource(aMediaStream: IJSMediaStream): IJSMediaStreamAudioSourceNode;
  57901. function createMediaStreamTrackSource(aMediaStreamTrack: IJSMediaStreamTrack): IJSMediaStreamTrackAudioSourceNode;
  57902. function createMediaStreamDestination: IJSMediaStreamAudioDestinationNode;
  57903. property baseLatency: Double read _GetbaseLatency;
  57904. property outputLatency: Double read _GetoutputLatency;
  57905. end;
  57906. TJSAudioContext = class(TJSBaseAudioContext,IJSAudioContext)
  57907. Protected
  57908. function _GetbaseLatency: Double;
  57909. function _GetoutputLatency: Double;
  57910. Public
  57911. constructor Create(const aContextOptions: TJSAudioContextOptions); overload;
  57912. constructor Create; overload;
  57913. function getOutputTimestamp: TJSAudioTimestamp; overload;
  57914. function suspend: IJSPromise; overload; // Promise<undefined>
  57915. function close: IJSPromise; overload; // Promise<undefined>
  57916. function createMediaElementSource(aMediaElement: IJSHTMLMediaElement): IJSMediaElementAudioSourceNode; overload;
  57917. function createMediaStreamSource(aMediaStream: IJSMediaStream): IJSMediaStreamAudioSourceNode; overload;
  57918. function createMediaStreamTrackSource(aMediaStreamTrack: IJSMediaStreamTrack): IJSMediaStreamTrackAudioSourceNode; overload;
  57919. function createMediaStreamDestination: IJSMediaStreamAudioDestinationNode; overload;
  57920. class function JSClassName: UnicodeString; override;
  57921. class function Cast(const Intf: IJSObject): IJSAudioContext;
  57922. property baseLatency: Double read _GetbaseLatency;
  57923. property outputLatency: Double read _GetoutputLatency;
  57924. end;
  57925. { --------------------------------------------------------------------
  57926. TJSAudioDestinationNode
  57927. --------------------------------------------------------------------}
  57928. IJSAudioDestinationNode = interface(IJSAudioNode)
  57929. ['{FDD4B4E7-124B-3B7B-B2D0-C390668A1D85}']
  57930. function _GetmaxChannelCount: Cardinal;
  57931. property maxChannelCount: Cardinal read _GetmaxChannelCount;
  57932. end;
  57933. TJSAudioDestinationNode = class(TJSAudioNode,IJSAudioDestinationNode)
  57934. Protected
  57935. function _GetmaxChannelCount: Cardinal;
  57936. Public
  57937. class function JSClassName: UnicodeString; override;
  57938. class function Cast(const Intf: IJSObject): IJSAudioDestinationNode;
  57939. property maxChannelCount: Cardinal read _GetmaxChannelCount;
  57940. end;
  57941. { --------------------------------------------------------------------
  57942. TJSAudioScheduledSourceNode
  57943. --------------------------------------------------------------------}
  57944. IJSAudioScheduledSourceNode = interface(IJSAudioNode)
  57945. ['{E60FF121-E28C-3E20-B262-C282CAA0A019}']
  57946. function _Getonended: TEventHandler;
  57947. procedure _Setonended(const aValue: TEventHandler);
  57948. procedure start(aWhen: Double);
  57949. procedure start;
  57950. procedure stop(aWhen: Double);
  57951. procedure stop;
  57952. property onended: TEventHandler read _Getonended write _Setonended;
  57953. end;
  57954. TJSAudioScheduledSourceNode = class(TJSAudioNode,IJSAudioScheduledSourceNode)
  57955. Protected
  57956. function _Getonended: TEventHandler;
  57957. procedure _Setonended(const aValue: TEventHandler);
  57958. Public
  57959. procedure start(aWhen: Double); overload;
  57960. procedure start; overload;
  57961. procedure stop(aWhen: Double); overload;
  57962. procedure stop; overload;
  57963. class function JSClassName: UnicodeString; override;
  57964. class function Cast(const Intf: IJSObject): IJSAudioScheduledSourceNode;
  57965. property onended: TEventHandler read _Getonended write _Setonended;
  57966. end;
  57967. { --------------------------------------------------------------------
  57968. TJSAudioWorkletNode
  57969. --------------------------------------------------------------------}
  57970. IJSAudioWorkletNode = interface(IJSAudioNode)
  57971. ['{69257409-3F32-3206-8AE0-B22AED56EE28}']
  57972. function _Getparameters: IJSAudioParamMap;
  57973. function _Getport: IJSMessagePort;
  57974. function _Getonprocessorerror: TEventHandler;
  57975. procedure _Setonprocessorerror(const aValue: TEventHandler);
  57976. property parameters: IJSAudioParamMap read _Getparameters;
  57977. property port: IJSMessagePort read _Getport;
  57978. property onprocessorerror: TEventHandler read _Getonprocessorerror write _Setonprocessorerror;
  57979. end;
  57980. TJSAudioWorkletNode = class(TJSAudioNode,IJSAudioWorkletNode)
  57981. Protected
  57982. function _Getparameters: IJSAudioParamMap;
  57983. function _Getport: IJSMessagePort;
  57984. function _Getonprocessorerror: TEventHandler;
  57985. procedure _Setonprocessorerror(const aValue: TEventHandler);
  57986. Public
  57987. constructor Create(aContext: IJSBaseAudioContext; const aName: UnicodeString; const aOptions: TJSAudioWorkletNodeOptions); overload;
  57988. constructor Create(aContext: IJSBaseAudioContext; const aName: UnicodeString); overload;
  57989. class function JSClassName: UnicodeString; override;
  57990. class function Cast(const Intf: IJSObject): IJSAudioWorkletNode;
  57991. property parameters: IJSAudioParamMap read _Getparameters;
  57992. property port: IJSMessagePort read _Getport;
  57993. property onprocessorerror: TEventHandler read _Getonprocessorerror write _Setonprocessorerror;
  57994. end;
  57995. { --------------------------------------------------------------------
  57996. TJSBiquadFilterNode
  57997. --------------------------------------------------------------------}
  57998. IJSBiquadFilterNode = interface(IJSAudioNode)
  57999. ['{B6DF09A9-3950-365E-86C2-4443015CDC7E}']
  58000. function _Gettype_: TBiquadFilterType;
  58001. function _Getfrequency: IJSAudioParam;
  58002. function _Getdetune: IJSAudioParam;
  58003. function _GetQ: IJSAudioParam;
  58004. function _Getgain: IJSAudioParam;
  58005. procedure _Settype_(const aValue: TBiquadFilterType);
  58006. procedure getFrequencyResponse(aFrequencyHz: IJSFloat32Array; aMagResponse: IJSFloat32Array; aPhaseResponse: IJSFloat32Array);
  58007. property type_: TBiquadFilterType read _Gettype_ write _Settype_;
  58008. property frequency: IJSAudioParam read _Getfrequency;
  58009. property detune: IJSAudioParam read _Getdetune;
  58010. property Q: IJSAudioParam read _GetQ;
  58011. property gain: IJSAudioParam read _Getgain;
  58012. end;
  58013. TJSBiquadFilterNode = class(TJSAudioNode,IJSBiquadFilterNode)
  58014. Protected
  58015. function _Gettype_: TBiquadFilterType;
  58016. function _Getfrequency: IJSAudioParam;
  58017. function _Getdetune: IJSAudioParam;
  58018. function _GetQ: IJSAudioParam;
  58019. function _Getgain: IJSAudioParam;
  58020. procedure _Settype_(const aValue: TBiquadFilterType);
  58021. Public
  58022. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSBiquadFilterOptions); overload;
  58023. constructor Create(aContext: IJSBaseAudioContext); overload;
  58024. procedure getFrequencyResponse(aFrequencyHz: IJSFloat32Array; aMagResponse: IJSFloat32Array; aPhaseResponse: IJSFloat32Array); overload;
  58025. class function JSClassName: UnicodeString; override;
  58026. class function Cast(const Intf: IJSObject): IJSBiquadFilterNode;
  58027. property type_: TBiquadFilterType read _Gettype_ write _Settype_;
  58028. property frequency: IJSAudioParam read _Getfrequency;
  58029. property detune: IJSAudioParam read _Getdetune;
  58030. property Q: IJSAudioParam read _GetQ;
  58031. property gain: IJSAudioParam read _Getgain;
  58032. end;
  58033. { --------------------------------------------------------------------
  58034. TJSCanvasCaptureMediaStream
  58035. --------------------------------------------------------------------}
  58036. IJSCanvasCaptureMediaStream = interface(IJSMediaStream)
  58037. ['{378F6437-EC4E-3E9F-A9E6-A0231380F71D}']
  58038. function _Getcanvas: IJSHTMLCanvasElement;
  58039. procedure requestFrame;
  58040. property canvas: IJSHTMLCanvasElement read _Getcanvas;
  58041. end;
  58042. TJSCanvasCaptureMediaStream = class(TJSMediaStream,IJSCanvasCaptureMediaStream)
  58043. Protected
  58044. function _Getcanvas: IJSHTMLCanvasElement;
  58045. Public
  58046. procedure requestFrame; overload;
  58047. class function JSClassName: UnicodeString; override;
  58048. class function Cast(const Intf: IJSObject): IJSCanvasCaptureMediaStream;
  58049. property canvas: IJSHTMLCanvasElement read _Getcanvas;
  58050. end;
  58051. { --------------------------------------------------------------------
  58052. TJSChannelMergerNode
  58053. --------------------------------------------------------------------}
  58054. IJSChannelMergerNode = interface(IJSAudioNode)
  58055. ['{2B7DF456-801C-31EA-919E-EF008AA4F2BB}']
  58056. end;
  58057. TJSChannelMergerNode = class(TJSAudioNode,IJSChannelMergerNode)
  58058. Protected
  58059. Public
  58060. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSChannelMergerOptions); overload;
  58061. constructor Create(aContext: IJSBaseAudioContext); overload;
  58062. class function JSClassName: UnicodeString; override;
  58063. class function Cast(const Intf: IJSObject): IJSChannelMergerNode;
  58064. end;
  58065. { --------------------------------------------------------------------
  58066. TJSChannelSplitterNode
  58067. --------------------------------------------------------------------}
  58068. IJSChannelSplitterNode = interface(IJSAudioNode)
  58069. ['{091CB9B2-5FD8-328A-872E-67393F61A8BC}']
  58070. end;
  58071. TJSChannelSplitterNode = class(TJSAudioNode,IJSChannelSplitterNode)
  58072. Protected
  58073. Public
  58074. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSChannelSplitterOptions); overload;
  58075. constructor Create(aContext: IJSBaseAudioContext); overload;
  58076. class function JSClassName: UnicodeString; override;
  58077. class function Cast(const Intf: IJSObject): IJSChannelSplitterNode;
  58078. end;
  58079. { --------------------------------------------------------------------
  58080. TJSCharacterData
  58081. --------------------------------------------------------------------}
  58082. IJSCharacterData = interface(IJSNode)
  58083. ['{A9D51760-E53A-3E9E-A2F1-668F01FC3154}']
  58084. function _Getdata: UnicodeString;
  58085. function _Getlength_: Cardinal;
  58086. function _GetpreviousElementSibling: IJSElement;
  58087. function _GetnextElementSibling: IJSElement;
  58088. procedure _Setdata(const aValue: UnicodeString);
  58089. function substringData(aOffset: Cardinal; aCount: Cardinal): UnicodeString;
  58090. procedure appendData(const aData: UnicodeString);
  58091. procedure insertData(aOffset: Cardinal; const aData: UnicodeString);
  58092. procedure deleteData(aOffset: Cardinal; aCount: Cardinal);
  58093. procedure replaceData(aOffset: Cardinal; aCount: Cardinal; const aData: UnicodeString);
  58094. procedure before(const aNodes: UnicodeString){; ToDo:varargs};
  58095. procedure before(aNodes: IJSNode){; ToDo:varargs};
  58096. procedure after(const aNodes: UnicodeString){; ToDo:varargs};
  58097. procedure after(aNodes: IJSNode){; ToDo:varargs};
  58098. procedure replaceWith(const aNodes: UnicodeString){; ToDo:varargs};
  58099. procedure replaceWith(aNodes: IJSNode){; ToDo:varargs};
  58100. procedure remove;
  58101. property data: UnicodeString read _Getdata write _Setdata;
  58102. property length_: Cardinal read _Getlength_;
  58103. property previousElementSibling: IJSElement read _GetpreviousElementSibling;
  58104. property nextElementSibling: IJSElement read _GetnextElementSibling;
  58105. end;
  58106. TJSCharacterData = class(TJSNode,IJSCharacterData)
  58107. Protected
  58108. function _Getdata: UnicodeString;
  58109. function _Getlength_: Cardinal;
  58110. function _GetpreviousElementSibling: IJSElement;
  58111. function _GetnextElementSibling: IJSElement;
  58112. procedure _Setdata(const aValue: UnicodeString);
  58113. Public
  58114. function substringData(aOffset: Cardinal; aCount: Cardinal): UnicodeString; overload;
  58115. procedure appendData(const aData: UnicodeString); overload;
  58116. procedure insertData(aOffset: Cardinal; const aData: UnicodeString); overload;
  58117. procedure deleteData(aOffset: Cardinal; aCount: Cardinal); overload;
  58118. procedure replaceData(aOffset: Cardinal; aCount: Cardinal; const aData: UnicodeString); overload;
  58119. procedure before(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  58120. procedure before(aNodes: IJSNode){; ToDo:varargs}; overload;
  58121. procedure after(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  58122. procedure after(aNodes: IJSNode){; ToDo:varargs}; overload;
  58123. procedure replaceWith(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  58124. procedure replaceWith(aNodes: IJSNode){; ToDo:varargs}; overload;
  58125. procedure remove; overload;
  58126. class function JSClassName: UnicodeString; override;
  58127. class function Cast(const Intf: IJSObject): IJSCharacterData;
  58128. property data: UnicodeString read _Getdata write _Setdata;
  58129. property length_: Cardinal read _Getlength_;
  58130. property previousElementSibling: IJSElement read _GetpreviousElementSibling;
  58131. property nextElementSibling: IJSElement read _GetnextElementSibling;
  58132. end;
  58133. { --------------------------------------------------------------------
  58134. TJSCompositionEvent
  58135. --------------------------------------------------------------------}
  58136. IJSCompositionEvent = interface(IJSUIEvent)
  58137. ['{DE527D9F-5420-3355-9B2E-A42791A7D18F}']
  58138. function _Getdata: UnicodeString;
  58139. function _Getlocale: UnicodeString;
  58140. procedure initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aDataArg: UnicodeString; const aLocaleArg: UnicodeString);
  58141. procedure initCompositionEvent(const aTypeArg: UnicodeString);
  58142. procedure initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean);
  58143. procedure initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean);
  58144. procedure initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow);
  58145. procedure initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aDataArg: UnicodeString);
  58146. property data: UnicodeString read _Getdata;
  58147. property locale: UnicodeString read _Getlocale;
  58148. end;
  58149. TJSCompositionEvent = class(TJSUIEvent,IJSCompositionEvent)
  58150. Protected
  58151. function _Getdata: UnicodeString;
  58152. function _Getlocale: UnicodeString;
  58153. Public
  58154. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSCompositionEventInit); overload;
  58155. constructor Create(const aType_: UnicodeString); overload;
  58156. procedure initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aDataArg: UnicodeString; const aLocaleArg: UnicodeString); overload;
  58157. procedure initCompositionEvent(const aTypeArg: UnicodeString); overload;
  58158. procedure initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean); overload;
  58159. procedure initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean); overload;
  58160. procedure initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow); overload;
  58161. procedure initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aDataArg: UnicodeString); overload;
  58162. class function JSClassName: UnicodeString; override;
  58163. class function Cast(const Intf: IJSObject): IJSCompositionEvent;
  58164. property data: UnicodeString read _Getdata;
  58165. property locale: UnicodeString read _Getlocale;
  58166. end;
  58167. { --------------------------------------------------------------------
  58168. TJSConvolverNode
  58169. --------------------------------------------------------------------}
  58170. IJSConvolverNode = interface(IJSAudioNode)
  58171. ['{D5FA9C0F-5CE9-3888-A88E-221591E1B64D}']
  58172. function _Getbuffer: IJSAudioBuffer;
  58173. function _Getnormalize: Boolean;
  58174. procedure _Setbuffer(const aValue: IJSAudioBuffer);
  58175. procedure _Setnormalize(const aValue: Boolean);
  58176. property buffer: IJSAudioBuffer read _Getbuffer write _Setbuffer;
  58177. property normalize: Boolean read _Getnormalize write _Setnormalize;
  58178. end;
  58179. TJSConvolverNode = class(TJSAudioNode,IJSConvolverNode)
  58180. Protected
  58181. function _Getbuffer: IJSAudioBuffer;
  58182. function _Getnormalize: Boolean;
  58183. procedure _Setbuffer(const aValue: IJSAudioBuffer);
  58184. procedure _Setnormalize(const aValue: Boolean);
  58185. Public
  58186. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSConvolverOptions); overload;
  58187. constructor Create(aContext: IJSBaseAudioContext); overload;
  58188. class function JSClassName: UnicodeString; override;
  58189. class function Cast(const Intf: IJSObject): IJSConvolverNode;
  58190. property buffer: IJSAudioBuffer read _Getbuffer write _Setbuffer;
  58191. property normalize: Boolean read _Getnormalize write _Setnormalize;
  58192. end;
  58193. { --------------------------------------------------------------------
  58194. TJSCSSAnimation
  58195. --------------------------------------------------------------------}
  58196. IJSCSSAnimation = interface(IJSAnimation)
  58197. ['{ED5F1156-BB7C-31CF-A0F3-4E1FCCA36046}']
  58198. function _GetanimationName: UnicodeString;
  58199. property animationName: UnicodeString read _GetanimationName;
  58200. end;
  58201. TJSCSSAnimation = class(TJSAnimation,IJSCSSAnimation)
  58202. Protected
  58203. function _GetanimationName: UnicodeString;
  58204. Public
  58205. class function JSClassName: UnicodeString; override;
  58206. class function Cast(const Intf: IJSObject): IJSCSSAnimation;
  58207. property animationName: UnicodeString read _GetanimationName;
  58208. end;
  58209. { --------------------------------------------------------------------
  58210. TJSCSSConditionRule
  58211. --------------------------------------------------------------------}
  58212. IJSCSSConditionRule = interface(IJSCSSGroupingRule)
  58213. ['{DA54C0D6-597B-342E-B822-64B2177E6061}']
  58214. function _GetconditionText: UTF8String;
  58215. property conditionText: UTF8String read _GetconditionText;
  58216. end;
  58217. TJSCSSConditionRule = class(TJSCSSGroupingRule,IJSCSSConditionRule)
  58218. Protected
  58219. function _GetconditionText: UTF8String;
  58220. Public
  58221. class function JSClassName: UnicodeString; override;
  58222. class function Cast(const Intf: IJSObject): IJSCSSConditionRule;
  58223. property conditionText: UTF8String read _GetconditionText;
  58224. end;
  58225. { --------------------------------------------------------------------
  58226. TJSCSSLayerBlockRule
  58227. --------------------------------------------------------------------}
  58228. IJSCSSLayerBlockRule = interface(IJSCSSGroupingRule)
  58229. ['{D13B0B1B-EE34-3880-ABD0-71D2A52A2C59}']
  58230. function _Getname: UTF8String;
  58231. property name: UTF8String read _Getname;
  58232. end;
  58233. TJSCSSLayerBlockRule = class(TJSCSSGroupingRule,IJSCSSLayerBlockRule)
  58234. Protected
  58235. function _Getname: UTF8String;
  58236. Public
  58237. class function JSClassName: UnicodeString; override;
  58238. class function Cast(const Intf: IJSObject): IJSCSSLayerBlockRule;
  58239. property name: UTF8String read _Getname;
  58240. end;
  58241. { --------------------------------------------------------------------
  58242. TJSCSSScopeRule
  58243. --------------------------------------------------------------------}
  58244. IJSCSSScopeRule = interface(IJSCSSGroupingRule)
  58245. ['{F453D24E-203D-3BC8-9A13-B651A72CCCBD}']
  58246. function _Getstart: UTF8String;
  58247. function _Getend_: UTF8String;
  58248. property start: UTF8String read _Getstart;
  58249. property end_: UTF8String read _Getend_;
  58250. end;
  58251. TJSCSSScopeRule = class(TJSCSSGroupingRule,IJSCSSScopeRule)
  58252. Protected
  58253. function _Getstart: UTF8String;
  58254. function _Getend_: UTF8String;
  58255. Public
  58256. class function JSClassName: UnicodeString; override;
  58257. class function Cast(const Intf: IJSObject): IJSCSSScopeRule;
  58258. property start: UTF8String read _Getstart;
  58259. property end_: UTF8String read _Getend_;
  58260. end;
  58261. { --------------------------------------------------------------------
  58262. TJSCSSStyleRule
  58263. --------------------------------------------------------------------}
  58264. IJSCSSStyleRule = interface(IJSCSSGroupingRule)
  58265. ['{150B048C-1186-3120-BB27-10AD05211076}']
  58266. function _GetselectorText: UTF8String;
  58267. function _Getstyle: IJSCSSStyleDeclaration;
  58268. procedure _SetselectorText(const aValue: UTF8String);
  58269. property selectorText: UTF8String read _GetselectorText write _SetselectorText;
  58270. property style: IJSCSSStyleDeclaration read _Getstyle;
  58271. end;
  58272. TJSCSSStyleRule = class(TJSCSSGroupingRule,IJSCSSStyleRule)
  58273. Protected
  58274. function _GetselectorText: UTF8String;
  58275. function _Getstyle: IJSCSSStyleDeclaration;
  58276. procedure _SetselectorText(const aValue: UTF8String);
  58277. Public
  58278. class function JSClassName: UnicodeString; override;
  58279. class function Cast(const Intf: IJSObject): IJSCSSStyleRule;
  58280. property selectorText: UTF8String read _GetselectorText write _SetselectorText;
  58281. property style: IJSCSSStyleDeclaration read _Getstyle;
  58282. end;
  58283. { --------------------------------------------------------------------
  58284. TJSCSSTransition
  58285. --------------------------------------------------------------------}
  58286. IJSCSSTransition = interface(IJSAnimation)
  58287. ['{2ED0F9FD-E6D6-38AB-8CB5-2332C26AC476}']
  58288. function _GettransitionProperty: UnicodeString;
  58289. property transitionProperty: UnicodeString read _GettransitionProperty;
  58290. end;
  58291. TJSCSSTransition = class(TJSAnimation,IJSCSSTransition)
  58292. Protected
  58293. function _GettransitionProperty: UnicodeString;
  58294. Public
  58295. class function JSClassName: UnicodeString; override;
  58296. class function Cast(const Intf: IJSObject): IJSCSSTransition;
  58297. property transitionProperty: UnicodeString read _GettransitionProperty;
  58298. end;
  58299. { --------------------------------------------------------------------
  58300. TJSDedicatedWorkerGlobalScope
  58301. --------------------------------------------------------------------}
  58302. IJSDedicatedWorkerGlobalScope = interface(IJSWorkerGlobalScope)
  58303. ['{B98E72B7-2686-34D5-A06D-E4D8C5A09250}']
  58304. function _Getname: UnicodeString;
  58305. function _Getonmessage: TEventHandler;
  58306. function _Getonmessageerror: TEventHandler;
  58307. function _Getonrtctransform: TEventHandler;
  58308. procedure _Setonmessage(const aValue: TEventHandler);
  58309. procedure _Setonmessageerror(const aValue: TEventHandler);
  58310. procedure _Setonrtctransform(const aValue: TEventHandler);
  58311. procedure postMessage(const aMessage: Variant; const aTransfer: TIJSObjectDynArray);
  58312. procedure postMessage(const aMessage: Variant; const aOptions: TJSStructuredSerializeOptions);
  58313. procedure postMessage(const aMessage: Variant);
  58314. procedure close;
  58315. function requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt;
  58316. procedure cancelAnimationFrame(aHandle: LongInt);
  58317. property name: UnicodeString read _Getname;
  58318. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  58319. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  58320. property onrtctransform: TEventHandler read _Getonrtctransform write _Setonrtctransform;
  58321. end;
  58322. TJSDedicatedWorkerGlobalScope = class(TJSWorkerGlobalScope,IJSDedicatedWorkerGlobalScope)
  58323. Protected
  58324. function _Getname: UnicodeString;
  58325. function _Getonmessage: TEventHandler;
  58326. function _Getonmessageerror: TEventHandler;
  58327. function _Getonrtctransform: TEventHandler;
  58328. procedure _Setonmessage(const aValue: TEventHandler);
  58329. procedure _Setonmessageerror(const aValue: TEventHandler);
  58330. procedure _Setonrtctransform(const aValue: TEventHandler);
  58331. Public
  58332. procedure postMessage(const aMessage: Variant; const aTransfer: TIJSObjectDynArray); overload;
  58333. procedure postMessage(const aMessage: Variant; const aOptions: TJSStructuredSerializeOptions); overload;
  58334. procedure postMessage(const aMessage: Variant); overload;
  58335. procedure close; overload;
  58336. function requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt; overload;
  58337. procedure cancelAnimationFrame(aHandle: LongInt); overload;
  58338. class function JSClassName: UnicodeString; override;
  58339. class function Cast(const Intf: IJSObject): IJSDedicatedWorkerGlobalScope;
  58340. property name: UnicodeString read _Getname;
  58341. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  58342. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  58343. property onrtctransform: TEventHandler read _Getonrtctransform write _Setonrtctransform;
  58344. end;
  58345. { --------------------------------------------------------------------
  58346. TJSDelayNode
  58347. --------------------------------------------------------------------}
  58348. IJSDelayNode = interface(IJSAudioNode)
  58349. ['{4B7B7B52-4ED5-35A1-A06B-14FAA2B30FF8}']
  58350. function _GetdelayTime: IJSAudioParam;
  58351. property delayTime: IJSAudioParam read _GetdelayTime;
  58352. end;
  58353. TJSDelayNode = class(TJSAudioNode,IJSDelayNode)
  58354. Protected
  58355. function _GetdelayTime: IJSAudioParam;
  58356. Public
  58357. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSDelayOptions); overload;
  58358. constructor Create(aContext: IJSBaseAudioContext); overload;
  58359. class function JSClassName: UnicodeString; override;
  58360. class function Cast(const Intf: IJSObject): IJSDelayNode;
  58361. property delayTime: IJSAudioParam read _GetdelayTime;
  58362. end;
  58363. { --------------------------------------------------------------------
  58364. TJSDocument
  58365. --------------------------------------------------------------------}
  58366. // Union of ElementCreationOptions, DOMString
  58367. TDocument_createElement_options_Type = Variant;
  58368. // Union of ElementCreationOptions, DOMString
  58369. TDocument_createElementNS_options_Type = Variant;
  58370. IJSDocument = interface(IJSNode)
  58371. ['{6D697D6F-D6C6-367E-A43E-D0CA88D76237}']
  58372. function _Getimplementation_: IJSDOMImplementation;
  58373. function _GetURL: UnicodeString;
  58374. function _GetdocumentURI: UnicodeString;
  58375. function _GetcompatMode: UnicodeString;
  58376. function _GetcharacterSet: UnicodeString;
  58377. function _Getcharset: UnicodeString;
  58378. function _GetinputEncoding: UnicodeString;
  58379. function _GetcontentType: UnicodeString;
  58380. function _Getdoctype: IJSDocumentType;
  58381. function _GetdocumentElement: IJSElement;
  58382. function _Getlocation: IJSLocation;
  58383. function _Getdomain: UnicodeString;
  58384. function _Getreferrer: UnicodeString;
  58385. function _Getcookie: UnicodeString;
  58386. function _GetlastModified: UnicodeString;
  58387. function _GetreadyState: UnicodeString;
  58388. function _Gettitle: UnicodeString;
  58389. function _Getdir: UnicodeString;
  58390. function _Getbody: IJSHTMLElement;
  58391. function _Gethead: IJSHTMLHeadElement;
  58392. function _Getimages: IJSHTMLCollection;
  58393. function _Getembeds: IJSHTMLCollection;
  58394. function _Getplugins: IJSHTMLCollection;
  58395. function _Getlinks: IJSHTMLCollection;
  58396. function _Getforms: IJSHTMLCollection;
  58397. function _Getscripts: IJSHTMLCollection;
  58398. function _GetdefaultView: IJSWindowProxy;
  58399. function _GetdesignMode: UnicodeString;
  58400. function _Getonreadystatechange: TEventHandler;
  58401. function _Getonbeforescriptexecute: TEventHandler;
  58402. function _Getonafterscriptexecute: TEventHandler;
  58403. function _GetmozSyntheticDocument: Boolean;
  58404. function _GetcurrentScript: IJSElement;
  58405. function _GetfgColor: UnicodeString;
  58406. function _GetlinkColor: UnicodeString;
  58407. function _GetvlinkColor: UnicodeString;
  58408. function _GetalinkColor: UnicodeString;
  58409. function _GetbgColor: UnicodeString;
  58410. function _Getanchors: IJSHTMLCollection;
  58411. function _Getapplets: IJSHTMLCollection;
  58412. function _Getall: IJSHTMLAllCollection;
  58413. function _Getfullscreen: Boolean;
  58414. function _GetmozFullScreen: Boolean;
  58415. function _GetfullscreenEnabled: Boolean;
  58416. function _GetmozFullScreenEnabled: Boolean;
  58417. function _Getonfullscreenchange: TEventHandler;
  58418. function _Getonfullscreenerror: TEventHandler;
  58419. function _Getonpointerlockchange: TEventHandler;
  58420. function _Getonpointerlockerror: TEventHandler;
  58421. function _Gethidden: Boolean;
  58422. function _GetvisibilityState: TVisibilityState;
  58423. function _Getonvisibilitychange: TEventHandler;
  58424. function _GetselectedStyleSheetSet: UnicodeString;
  58425. function _GetlastStyleSheetSet: UnicodeString;
  58426. function _GetpreferredStyleSheetSet: UnicodeString;
  58427. function _GetstyleSheetSets: IJSDOMStringList;
  58428. function _GetscrollingElement: IJSElement;
  58429. function _Gettimeline: IJSDocumentTimeline;
  58430. function _GetrootElement: IJSSVGSVGElement;
  58431. function _Getl10n: IJSObject;
  58432. function _GethasPendingL10nMutations: Boolean;
  58433. function _GetfeaturePolicy: IJSFeaturePolicy;
  58434. function _GetfragmentDirective: IJSFragmentDirective;
  58435. function _Getonabort: TEventHandler;
  58436. function _Getonblur: TEventHandler;
  58437. function _Getonfocus: TEventHandler;
  58438. function _Getoncancel: TEventHandler;
  58439. function _Getonauxclick: TEventHandler;
  58440. function _Getonbeforeinput: TEventHandler;
  58441. function _Getonbeforetoggle: TEventHandler;
  58442. function _Getoncanplay: TEventHandler;
  58443. function _Getoncanplaythrough: TEventHandler;
  58444. function _Getonchange: TEventHandler;
  58445. function _Getonclick: TEventHandler;
  58446. function _Getonclose: TEventHandler;
  58447. function _Getoncontextlost: TEventHandler;
  58448. function _Getoncontextmenu: TEventHandler;
  58449. function _Getoncontextrestored: TEventHandler;
  58450. function _Getoncopy: TEventHandler;
  58451. function _Getoncuechange: TEventHandler;
  58452. function _Getoncut: TEventHandler;
  58453. function _Getondblclick: TEventHandler;
  58454. function _Getondrag: TEventHandler;
  58455. function _Getondragend: TEventHandler;
  58456. function _Getondragenter: TEventHandler;
  58457. function _Getondragexit: TEventHandler;
  58458. function _Getondragleave: TEventHandler;
  58459. function _Getondragover: TEventHandler;
  58460. function _Getondragstart: TEventHandler;
  58461. function _Getondrop: TEventHandler;
  58462. function _Getondurationchange: TEventHandler;
  58463. function _Getonemptied: TEventHandler;
  58464. function _Getonended: TEventHandler;
  58465. function _Getonformdata: TEventHandler;
  58466. function _Getoninput: TEventHandler;
  58467. function _Getoninvalid: TEventHandler;
  58468. function _Getonkeydown: TEventHandler;
  58469. function _Getonkeypress: TEventHandler;
  58470. function _Getonkeyup: TEventHandler;
  58471. function _Getonload: TEventHandler;
  58472. function _Getonloadeddata: TEventHandler;
  58473. function _Getonloadedmetadata: TEventHandler;
  58474. function _Getonloadstart: TEventHandler;
  58475. function _Getonmousedown: TEventHandler;
  58476. function _Getonmouseenter: TEventHandler;
  58477. function _Getonmouseleave: TEventHandler;
  58478. function _Getonmousemove: TEventHandler;
  58479. function _Getonmouseout: TEventHandler;
  58480. function _Getonmouseover: TEventHandler;
  58481. function _Getonmouseup: TEventHandler;
  58482. function _Getonwheel: TEventHandler;
  58483. function _Getonpaste: TEventHandler;
  58484. function _Getonpause: TEventHandler;
  58485. function _Getonplay: TEventHandler;
  58486. function _Getonplaying: TEventHandler;
  58487. function _Getonprogress: TEventHandler;
  58488. function _Getonratechange: TEventHandler;
  58489. function _Getonreset: TEventHandler;
  58490. function _Getonresize: TEventHandler;
  58491. function _Getonscroll: TEventHandler;
  58492. function _Getonscrollend: TEventHandler;
  58493. function _Getonsecuritypolicyviolation: TEventHandler;
  58494. function _Getonseeked: TEventHandler;
  58495. function _Getonseeking: TEventHandler;
  58496. function _Getonselect: TEventHandler;
  58497. function _Getonslotchange: TEventHandler;
  58498. function _Getonstalled: TEventHandler;
  58499. function _Getonsubmit: TEventHandler;
  58500. function _Getonsuspend: TEventHandler;
  58501. function _Getontimeupdate: TEventHandler;
  58502. function _Getonvolumechange: TEventHandler;
  58503. function _Getonwaiting: TEventHandler;
  58504. function _Getonselectstart: TEventHandler;
  58505. function _Getonselectionchange: TEventHandler;
  58506. function _Getontoggle: TEventHandler;
  58507. function _Getonpointercancel: TEventHandler;
  58508. function _Getonpointerdown: TEventHandler;
  58509. function _Getonpointerup: TEventHandler;
  58510. function _Getonpointermove: TEventHandler;
  58511. function _Getonpointerout: TEventHandler;
  58512. function _Getonpointerover: TEventHandler;
  58513. function _Getonpointerenter: TEventHandler;
  58514. function _Getonpointerleave: TEventHandler;
  58515. function _Getongotpointercapture: TEventHandler;
  58516. function _Getonlostpointercapture: TEventHandler;
  58517. function _Getonmozfullscreenchange: TEventHandler;
  58518. function _Getonmozfullscreenerror: TEventHandler;
  58519. function _Getonanimationcancel: TEventHandler;
  58520. function _Getonanimationend: TEventHandler;
  58521. function _Getonanimationiteration: TEventHandler;
  58522. function _Getonanimationstart: TEventHandler;
  58523. function _Getontransitioncancel: TEventHandler;
  58524. function _Getontransitionend: TEventHandler;
  58525. function _Getontransitionrun: TEventHandler;
  58526. function _Getontransitionstart: TEventHandler;
  58527. function _Getonwebkitanimationend: TEventHandler;
  58528. function _Getonwebkitanimationiteration: TEventHandler;
  58529. function _Getonwebkitanimationstart: TEventHandler;
  58530. function _Getonwebkittransitionend: TEventHandler;
  58531. function _Getontouchstart: TEventHandler;
  58532. function _Getontouchend: TEventHandler;
  58533. function _Getontouchmove: TEventHandler;
  58534. function _Getontouchcancel: TEventHandler;
  58535. function _Getchildren: IJSHTMLCollection;
  58536. function _GetfirstElementChild: IJSElement;
  58537. function _GetlastElementChild: IJSElement;
  58538. function _GetchildElementCount: Cardinal;
  58539. function _Getonerror: TEventHandler;
  58540. function _Getfonts: IJSFontFaceSet;
  58541. function _GetactiveElement: IJSElement;
  58542. function _GetstyleSheets: IJSStyleSheetList;
  58543. function _GetpointerLockElement: IJSElement;
  58544. function _GetfullscreenElement: IJSElement;
  58545. function _GetmozFullScreenElement: IJSElement;
  58546. function _GetadoptedStyleSheets: TJSCSSStyleSheetDynArray;
  58547. procedure _Setdomain(const aValue: UnicodeString);
  58548. procedure _Setcookie(const aValue: UnicodeString);
  58549. procedure _Settitle(const aValue: UnicodeString);
  58550. procedure _Setdir(const aValue: UnicodeString);
  58551. procedure _Setbody(const aValue: IJSHTMLElement);
  58552. procedure _SetdesignMode(const aValue: UnicodeString);
  58553. procedure _Setonreadystatechange(const aValue: TEventHandler);
  58554. procedure _Setonbeforescriptexecute(const aValue: TEventHandler);
  58555. procedure _Setonafterscriptexecute(const aValue: TEventHandler);
  58556. procedure _SetfgColor(const aValue: UnicodeString);
  58557. procedure _SetlinkColor(const aValue: UnicodeString);
  58558. procedure _SetvlinkColor(const aValue: UnicodeString);
  58559. procedure _SetalinkColor(const aValue: UnicodeString);
  58560. procedure _SetbgColor(const aValue: UnicodeString);
  58561. procedure _Setonfullscreenchange(const aValue: TEventHandler);
  58562. procedure _Setonfullscreenerror(const aValue: TEventHandler);
  58563. procedure _Setonpointerlockchange(const aValue: TEventHandler);
  58564. procedure _Setonpointerlockerror(const aValue: TEventHandler);
  58565. procedure _Setonvisibilitychange(const aValue: TEventHandler);
  58566. procedure _SetselectedStyleSheetSet(const aValue: UnicodeString);
  58567. procedure _Setonabort(const aValue: TEventHandler);
  58568. procedure _Setonblur(const aValue: TEventHandler);
  58569. procedure _Setonfocus(const aValue: TEventHandler);
  58570. procedure _Setoncancel(const aValue: TEventHandler);
  58571. procedure _Setonauxclick(const aValue: TEventHandler);
  58572. procedure _Setonbeforeinput(const aValue: TEventHandler);
  58573. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  58574. procedure _Setoncanplay(const aValue: TEventHandler);
  58575. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  58576. procedure _Setonchange(const aValue: TEventHandler);
  58577. procedure _Setonclick(const aValue: TEventHandler);
  58578. procedure _Setonclose(const aValue: TEventHandler);
  58579. procedure _Setoncontextlost(const aValue: TEventHandler);
  58580. procedure _Setoncontextmenu(const aValue: TEventHandler);
  58581. procedure _Setoncontextrestored(const aValue: TEventHandler);
  58582. procedure _Setoncopy(const aValue: TEventHandler);
  58583. procedure _Setoncuechange(const aValue: TEventHandler);
  58584. procedure _Setoncut(const aValue: TEventHandler);
  58585. procedure _Setondblclick(const aValue: TEventHandler);
  58586. procedure _Setondrag(const aValue: TEventHandler);
  58587. procedure _Setondragend(const aValue: TEventHandler);
  58588. procedure _Setondragenter(const aValue: TEventHandler);
  58589. procedure _Setondragexit(const aValue: TEventHandler);
  58590. procedure _Setondragleave(const aValue: TEventHandler);
  58591. procedure _Setondragover(const aValue: TEventHandler);
  58592. procedure _Setondragstart(const aValue: TEventHandler);
  58593. procedure _Setondrop(const aValue: TEventHandler);
  58594. procedure _Setondurationchange(const aValue: TEventHandler);
  58595. procedure _Setonemptied(const aValue: TEventHandler);
  58596. procedure _Setonended(const aValue: TEventHandler);
  58597. procedure _Setonformdata(const aValue: TEventHandler);
  58598. procedure _Setoninput(const aValue: TEventHandler);
  58599. procedure _Setoninvalid(const aValue: TEventHandler);
  58600. procedure _Setonkeydown(const aValue: TEventHandler);
  58601. procedure _Setonkeypress(const aValue: TEventHandler);
  58602. procedure _Setonkeyup(const aValue: TEventHandler);
  58603. procedure _Setonload(const aValue: TEventHandler);
  58604. procedure _Setonloadeddata(const aValue: TEventHandler);
  58605. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  58606. procedure _Setonloadstart(const aValue: TEventHandler);
  58607. procedure _Setonmousedown(const aValue: TEventHandler);
  58608. procedure _Setonmouseenter(const aValue: TEventHandler);
  58609. procedure _Setonmouseleave(const aValue: TEventHandler);
  58610. procedure _Setonmousemove(const aValue: TEventHandler);
  58611. procedure _Setonmouseout(const aValue: TEventHandler);
  58612. procedure _Setonmouseover(const aValue: TEventHandler);
  58613. procedure _Setonmouseup(const aValue: TEventHandler);
  58614. procedure _Setonwheel(const aValue: TEventHandler);
  58615. procedure _Setonpaste(const aValue: TEventHandler);
  58616. procedure _Setonpause(const aValue: TEventHandler);
  58617. procedure _Setonplay(const aValue: TEventHandler);
  58618. procedure _Setonplaying(const aValue: TEventHandler);
  58619. procedure _Setonprogress(const aValue: TEventHandler);
  58620. procedure _Setonratechange(const aValue: TEventHandler);
  58621. procedure _Setonreset(const aValue: TEventHandler);
  58622. procedure _Setonresize(const aValue: TEventHandler);
  58623. procedure _Setonscroll(const aValue: TEventHandler);
  58624. procedure _Setonscrollend(const aValue: TEventHandler);
  58625. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  58626. procedure _Setonseeked(const aValue: TEventHandler);
  58627. procedure _Setonseeking(const aValue: TEventHandler);
  58628. procedure _Setonselect(const aValue: TEventHandler);
  58629. procedure _Setonslotchange(const aValue: TEventHandler);
  58630. procedure _Setonstalled(const aValue: TEventHandler);
  58631. procedure _Setonsubmit(const aValue: TEventHandler);
  58632. procedure _Setonsuspend(const aValue: TEventHandler);
  58633. procedure _Setontimeupdate(const aValue: TEventHandler);
  58634. procedure _Setonvolumechange(const aValue: TEventHandler);
  58635. procedure _Setonwaiting(const aValue: TEventHandler);
  58636. procedure _Setonselectstart(const aValue: TEventHandler);
  58637. procedure _Setonselectionchange(const aValue: TEventHandler);
  58638. procedure _Setontoggle(const aValue: TEventHandler);
  58639. procedure _Setonpointercancel(const aValue: TEventHandler);
  58640. procedure _Setonpointerdown(const aValue: TEventHandler);
  58641. procedure _Setonpointerup(const aValue: TEventHandler);
  58642. procedure _Setonpointermove(const aValue: TEventHandler);
  58643. procedure _Setonpointerout(const aValue: TEventHandler);
  58644. procedure _Setonpointerover(const aValue: TEventHandler);
  58645. procedure _Setonpointerenter(const aValue: TEventHandler);
  58646. procedure _Setonpointerleave(const aValue: TEventHandler);
  58647. procedure _Setongotpointercapture(const aValue: TEventHandler);
  58648. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  58649. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  58650. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  58651. procedure _Setonanimationcancel(const aValue: TEventHandler);
  58652. procedure _Setonanimationend(const aValue: TEventHandler);
  58653. procedure _Setonanimationiteration(const aValue: TEventHandler);
  58654. procedure _Setonanimationstart(const aValue: TEventHandler);
  58655. procedure _Setontransitioncancel(const aValue: TEventHandler);
  58656. procedure _Setontransitionend(const aValue: TEventHandler);
  58657. procedure _Setontransitionrun(const aValue: TEventHandler);
  58658. procedure _Setontransitionstart(const aValue: TEventHandler);
  58659. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  58660. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  58661. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  58662. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  58663. procedure _Setontouchstart(const aValue: TEventHandler);
  58664. procedure _Setontouchend(const aValue: TEventHandler);
  58665. procedure _Setontouchmove(const aValue: TEventHandler);
  58666. procedure _Setontouchcancel(const aValue: TEventHandler);
  58667. procedure _Setonerror(const aValue: TEventHandler);
  58668. procedure _SetadoptedStyleSheets(const aValue: TJSCSSStyleSheetDynArray);
  58669. function getElementsByTagName(const aLocalName: UnicodeString): IJSHTMLCollection;
  58670. function getElementsByTagNameNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): IJSHTMLCollection;
  58671. function getElementsByClassName(const aClassNames: UnicodeString): IJSHTMLCollection;
  58672. function createElement(const aLocalName: UnicodeString; const aOptions: UnicodeString): IJSElement;
  58673. function createElement(const aLocalName: UnicodeString): IJSElement;
  58674. function createElement(const aLocalName: UnicodeString; const aOptions: TJSElementCreationOptions): IJSElement;
  58675. function createElementNS(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString; const aOptions: UnicodeString): IJSElement;
  58676. function createElementNS(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString): IJSElement;
  58677. function createElementNS(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString; const aOptions: TJSElementCreationOptions): IJSElement;
  58678. function createDocumentFragment: IJSDocumentFragment;
  58679. function createTextNode(const aData: UnicodeString): IJSText;
  58680. function createComment(const aData: UnicodeString): IJSComment;
  58681. function createProcessingInstruction(const aTarget: UnicodeString; const aData: UnicodeString): IJSProcessingInstruction;
  58682. function importNode(aNode: IJSNode; aDeep: Boolean): IJSNode;
  58683. function importNode(aNode: IJSNode): IJSNode;
  58684. function adoptNode(aNode: IJSNode): IJSNode;
  58685. function createEvent(const aInterface_: UnicodeString): IJSEvent;
  58686. function createRange: IJSRange;
  58687. function createNodeIterator(aRoot: IJSNode; aWhatToShow: Cardinal; const aFilter: TNodeFilter): IJSNodeIterator;
  58688. function createNodeIterator(aRoot: IJSNode): IJSNodeIterator;
  58689. function createNodeIterator(aRoot: IJSNode; aWhatToShow: Cardinal): IJSNodeIterator;
  58690. function createTreeWalker(aRoot: IJSNode; aWhatToShow: Cardinal; const aFilter: TNodeFilter): IJSTreeWalker;
  58691. function createTreeWalker(aRoot: IJSNode): IJSTreeWalker;
  58692. function createTreeWalker(aRoot: IJSNode; aWhatToShow: Cardinal): IJSTreeWalker;
  58693. function createCDATASection(const aData: UnicodeString): IJSCDATASection;
  58694. function createAttribute(const aName: UnicodeString): IJSAttr;
  58695. function createAttributeNS(const aNamespace: UnicodeString; const aName: UnicodeString): IJSAttr;
  58696. function getElementsByName(const aElementName: UnicodeString): IJSNodeList;
  58697. function open(const aUnused1: UnicodeString; const aUnused2: UnicodeString): IJSDocument;
  58698. function open: IJSDocument;
  58699. function open(const aUnused1: UnicodeString): IJSDocument;
  58700. function open(const aUrl: UnicodeString; const aName: UnicodeString; const aFeatures: UnicodeString): IJSWindowProxy;
  58701. procedure close;
  58702. procedure write(const aText: UnicodeString){; ToDo:varargs};
  58703. procedure writeln(const aText: UnicodeString){; ToDo:varargs};
  58704. function hasFocus: Boolean;
  58705. function execCommand(const aCommandId: UnicodeString; aShowUI: Boolean; const aValue: UnicodeString): Boolean;
  58706. function execCommand(const aCommandId: UnicodeString): Boolean;
  58707. function execCommand(const aCommandId: UnicodeString; aShowUI: Boolean): Boolean;
  58708. function queryCommandEnabled(const aCommandId: UnicodeString): Boolean;
  58709. function queryCommandIndeterm(const aCommandId: UnicodeString): Boolean;
  58710. function queryCommandState(const aCommandId: UnicodeString): Boolean;
  58711. function queryCommandSupported(const aCommandId: UnicodeString): Boolean;
  58712. function queryCommandValue(const aCommandId: UnicodeString): UnicodeString;
  58713. procedure releaseCapture;
  58714. procedure mozSetImageElement(const aAImageElementId: UnicodeString; aAImageElement: IJSElement);
  58715. procedure clear;
  58716. procedure captureEvents;
  58717. procedure releaseEvents;
  58718. function exitFullscreen: IJSPromise; // Promise<undefined>
  58719. function mozCancelFullScreen: IJSPromise; // Promise<undefined>
  58720. procedure exitPointerLock;
  58721. function addCertException(aIsTemporary: Boolean): IJSPromise; // Promise<any>
  58722. procedure reloadWithHttpsOnlyException;
  58723. function getFailedCertSecurityInfo: TJSFailedCertSecurityInfo;
  58724. function getNetErrorInfo: TJSNetErrorInfo;
  58725. procedure enableStyleSheetsForSet(const aName: UnicodeString);
  58726. function caretPositionFromPoint(aX: Single; aY: Single): IJSCaretPosition;
  58727. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt; aRadiusY: LongInt; aRotationAngle: Single; aForce: Single): IJSTouch;
  58728. function createTouch: IJSTouch;
  58729. function createTouch(aView: IJSWindow): IJSTouch;
  58730. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget): IJSTouch;
  58731. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt): IJSTouch;
  58732. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt): IJSTouch;
  58733. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt): IJSTouch;
  58734. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt): IJSTouch;
  58735. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt): IJSTouch;
  58736. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt): IJSTouch;
  58737. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt): IJSTouch;
  58738. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt): IJSTouch;
  58739. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt; aRadiusY: LongInt): IJSTouch;
  58740. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt; aRadiusY: LongInt; aRotationAngle: Single): IJSTouch;
  58741. function createTouchList(aTouch: IJSTouch; aTouches: IJSTouch): IJSTouchList{; ToDo:varargs};
  58742. function createTouchList: IJSTouchList;
  58743. function createTouchList(const aTouches: TJSTouchDynArray): IJSTouchList;
  58744. procedure blockUnblockOnload(aBlock: Boolean);
  58745. function getSelection: IJSSelection;
  58746. function hasStorageAccess: IJSPromise; // Promise<boolean>
  58747. function requestStorageAccess: IJSPromise; // Promise<undefined>
  58748. function requestStorageAccessUnderSite(const aSerializedSite: UnicodeString): IJSPromise; // Promise<undefined>
  58749. function completeStorageAccessRequestFromSite(const aSerializedSite: UnicodeString): IJSPromise; // Promise<undefined>
  58750. function requestStorageAccessForOrigin(const aThirdPartyOrigin: UnicodeString; aRequireUserInteraction: Boolean): IJSPromise; // Promise<undefined>
  58751. function requestStorageAccessForOrigin(const aThirdPartyOrigin: UnicodeString): IJSPromise; // Promise<undefined>
  58752. function createExpression(const aExpression: UnicodeString; const aResolver: TXPathNSResolver): IJSXPathExpression;
  58753. function createExpression(const aExpression: UnicodeString): IJSXPathExpression;
  58754. function createNSResolver(aNodeResolver: IJSNode): IJSNode;
  58755. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word; aResult: IJSObject): IJSXPathResult;
  58756. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode): IJSXPathResult;
  58757. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver): IJSXPathResult;
  58758. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word): IJSXPathResult;
  58759. procedure prepend(const aNodes: UnicodeString){; ToDo:varargs};
  58760. procedure prepend(aNodes: IJSNode){; ToDo:varargs};
  58761. procedure append(const aNodes: UnicodeString){; ToDo:varargs};
  58762. procedure append(aNodes: IJSNode){; ToDo:varargs};
  58763. procedure replaceChildren(const aNodes: UnicodeString){; ToDo:varargs};
  58764. procedure replaceChildren(aNodes: IJSNode){; ToDo:varargs};
  58765. function querySelector(const aSelectors: UTF8String): IJSElement;
  58766. function querySelectorAll(const aSelectors: UTF8String): IJSNodeList;
  58767. function getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray;
  58768. function getBoxQuads: TJSDOMQuadDynArray;
  58769. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  58770. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  58771. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  58772. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad;
  58773. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad;
  58774. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad;
  58775. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  58776. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  58777. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  58778. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad;
  58779. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad;
  58780. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad;
  58781. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  58782. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  58783. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  58784. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint;
  58785. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint;
  58786. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint;
  58787. function elementFromPoint(aX: Single; aY: Single): IJSElement;
  58788. function elementsFromPoint(aX: Single; aY: Single): TJSElementDynArray;
  58789. function getAnimations: TJSAnimationDynArray;
  58790. function getElementById(const aElementId: UnicodeString): IJSElement;
  58791. property implementation_: IJSDOMImplementation read _Getimplementation_;
  58792. property URL: UnicodeString read _GetURL;
  58793. property documentURI: UnicodeString read _GetdocumentURI;
  58794. property compatMode: UnicodeString read _GetcompatMode;
  58795. property characterSet: UnicodeString read _GetcharacterSet;
  58796. property charset: UnicodeString read _Getcharset;
  58797. property inputEncoding: UnicodeString read _GetinputEncoding;
  58798. property contentType: UnicodeString read _GetcontentType;
  58799. property doctype: IJSDocumentType read _Getdoctype;
  58800. property documentElement: IJSElement read _GetdocumentElement;
  58801. property location: IJSLocation read _Getlocation;
  58802. property domain: UnicodeString read _Getdomain write _Setdomain;
  58803. property referrer: UnicodeString read _Getreferrer;
  58804. property cookie: UnicodeString read _Getcookie write _Setcookie;
  58805. property lastModified: UnicodeString read _GetlastModified;
  58806. property readyState: UnicodeString read _GetreadyState;
  58807. property title: UnicodeString read _Gettitle write _Settitle;
  58808. property dir: UnicodeString read _Getdir write _Setdir;
  58809. property body: IJSHTMLElement read _Getbody write _Setbody;
  58810. property head: IJSHTMLHeadElement read _Gethead;
  58811. property images: IJSHTMLCollection read _Getimages;
  58812. property embeds: IJSHTMLCollection read _Getembeds;
  58813. property plugins: IJSHTMLCollection read _Getplugins;
  58814. property links: IJSHTMLCollection read _Getlinks;
  58815. property forms: IJSHTMLCollection read _Getforms;
  58816. property scripts: IJSHTMLCollection read _Getscripts;
  58817. property defaultView: IJSWindowProxy read _GetdefaultView;
  58818. property designMode: UnicodeString read _GetdesignMode write _SetdesignMode;
  58819. property onreadystatechange: TEventHandler read _Getonreadystatechange write _Setonreadystatechange;
  58820. property onbeforescriptexecute: TEventHandler read _Getonbeforescriptexecute write _Setonbeforescriptexecute;
  58821. property onafterscriptexecute: TEventHandler read _Getonafterscriptexecute write _Setonafterscriptexecute;
  58822. property mozSyntheticDocument: Boolean read _GetmozSyntheticDocument;
  58823. property currentScript: IJSElement read _GetcurrentScript;
  58824. property fgColor: UnicodeString read _GetfgColor write _SetfgColor;
  58825. property linkColor: UnicodeString read _GetlinkColor write _SetlinkColor;
  58826. property vlinkColor: UnicodeString read _GetvlinkColor write _SetvlinkColor;
  58827. property alinkColor: UnicodeString read _GetalinkColor write _SetalinkColor;
  58828. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  58829. property anchors: IJSHTMLCollection read _Getanchors;
  58830. property applets: IJSHTMLCollection read _Getapplets;
  58831. property all: IJSHTMLAllCollection read _Getall;
  58832. property fullscreen: Boolean read _Getfullscreen;
  58833. property mozFullScreen: Boolean read _GetmozFullScreen;
  58834. property fullscreenEnabled: Boolean read _GetfullscreenEnabled;
  58835. property mozFullScreenEnabled: Boolean read _GetmozFullScreenEnabled;
  58836. property onfullscreenchange: TEventHandler read _Getonfullscreenchange write _Setonfullscreenchange;
  58837. property onfullscreenerror: TEventHandler read _Getonfullscreenerror write _Setonfullscreenerror;
  58838. property onpointerlockchange: TEventHandler read _Getonpointerlockchange write _Setonpointerlockchange;
  58839. property onpointerlockerror: TEventHandler read _Getonpointerlockerror write _Setonpointerlockerror;
  58840. property hidden: Boolean read _Gethidden;
  58841. property visibilityState: TVisibilityState read _GetvisibilityState;
  58842. property onvisibilitychange: TEventHandler read _Getonvisibilitychange write _Setonvisibilitychange;
  58843. property selectedStyleSheetSet: UnicodeString read _GetselectedStyleSheetSet write _SetselectedStyleSheetSet;
  58844. property lastStyleSheetSet: UnicodeString read _GetlastStyleSheetSet;
  58845. property preferredStyleSheetSet: UnicodeString read _GetpreferredStyleSheetSet;
  58846. property styleSheetSets: IJSDOMStringList read _GetstyleSheetSets;
  58847. property scrollingElement: IJSElement read _GetscrollingElement;
  58848. property timeline: IJSDocumentTimeline read _Gettimeline;
  58849. property rootElement: IJSSVGSVGElement read _GetrootElement;
  58850. property l10n: IJSObject read _Getl10n;
  58851. property hasPendingL10nMutations: Boolean read _GethasPendingL10nMutations;
  58852. property featurePolicy: IJSFeaturePolicy read _GetfeaturePolicy;
  58853. property fragmentDirective: IJSFragmentDirective read _GetfragmentDirective;
  58854. property onabort: TEventHandler read _Getonabort write _Setonabort;
  58855. property onblur: TEventHandler read _Getonblur write _Setonblur;
  58856. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  58857. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  58858. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  58859. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  58860. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  58861. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  58862. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  58863. property onchange: TEventHandler read _Getonchange write _Setonchange;
  58864. property onclick: TEventHandler read _Getonclick write _Setonclick;
  58865. property onclose: TEventHandler read _Getonclose write _Setonclose;
  58866. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  58867. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  58868. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  58869. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  58870. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  58871. property oncut: TEventHandler read _Getoncut write _Setoncut;
  58872. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  58873. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  58874. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  58875. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  58876. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  58877. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  58878. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  58879. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  58880. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  58881. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  58882. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  58883. property onended: TEventHandler read _Getonended write _Setonended;
  58884. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  58885. property oninput: TEventHandler read _Getoninput write _Setoninput;
  58886. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  58887. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  58888. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  58889. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  58890. property onload: TEventHandler read _Getonload write _Setonload;
  58891. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  58892. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  58893. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  58894. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  58895. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  58896. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  58897. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  58898. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  58899. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  58900. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  58901. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  58902. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  58903. property onpause: TEventHandler read _Getonpause write _Setonpause;
  58904. property onplay: TEventHandler read _Getonplay write _Setonplay;
  58905. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  58906. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  58907. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  58908. property onreset: TEventHandler read _Getonreset write _Setonreset;
  58909. property onresize: TEventHandler read _Getonresize write _Setonresize;
  58910. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  58911. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  58912. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  58913. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  58914. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  58915. property onselect: TEventHandler read _Getonselect write _Setonselect;
  58916. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  58917. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  58918. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  58919. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  58920. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  58921. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  58922. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  58923. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  58924. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  58925. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  58926. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  58927. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  58928. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  58929. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  58930. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  58931. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  58932. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  58933. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  58934. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  58935. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  58936. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  58937. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  58938. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  58939. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  58940. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  58941. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  58942. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  58943. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  58944. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  58945. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  58946. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  58947. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  58948. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  58949. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  58950. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  58951. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  58952. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  58953. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  58954. property children: IJSHTMLCollection read _Getchildren;
  58955. property firstElementChild: IJSElement read _GetfirstElementChild;
  58956. property lastElementChild: IJSElement read _GetlastElementChild;
  58957. property childElementCount: Cardinal read _GetchildElementCount;
  58958. property onerror: TEventHandler read _Getonerror write _Setonerror;
  58959. property fonts: IJSFontFaceSet read _Getfonts;
  58960. property activeElement: IJSElement read _GetactiveElement;
  58961. property styleSheets: IJSStyleSheetList read _GetstyleSheets;
  58962. property pointerLockElement: IJSElement read _GetpointerLockElement;
  58963. property fullscreenElement: IJSElement read _GetfullscreenElement;
  58964. property mozFullScreenElement: IJSElement read _GetmozFullScreenElement;
  58965. property adoptedStyleSheets: TJSCSSStyleSheetDynArray read _GetadoptedStyleSheets write _SetadoptedStyleSheets;
  58966. end;
  58967. TJSDocument = class(TJSNode,IJSDocument)
  58968. Protected
  58969. function _Getimplementation_: IJSDOMImplementation;
  58970. function _GetURL: UnicodeString;
  58971. function _GetdocumentURI: UnicodeString;
  58972. function _GetcompatMode: UnicodeString;
  58973. function _GetcharacterSet: UnicodeString;
  58974. function _Getcharset: UnicodeString;
  58975. function _GetinputEncoding: UnicodeString;
  58976. function _GetcontentType: UnicodeString;
  58977. function _Getdoctype: IJSDocumentType;
  58978. function _GetdocumentElement: IJSElement;
  58979. function _Getlocation: IJSLocation;
  58980. function _Getdomain: UnicodeString;
  58981. function _Getreferrer: UnicodeString;
  58982. function _Getcookie: UnicodeString;
  58983. function _GetlastModified: UnicodeString;
  58984. function _GetreadyState: UnicodeString;
  58985. function _Gettitle: UnicodeString;
  58986. function _Getdir: UnicodeString;
  58987. function _Getbody: IJSHTMLElement;
  58988. function _Gethead: IJSHTMLHeadElement;
  58989. function _Getimages: IJSHTMLCollection;
  58990. function _Getembeds: IJSHTMLCollection;
  58991. function _Getplugins: IJSHTMLCollection;
  58992. function _Getlinks: IJSHTMLCollection;
  58993. function _Getforms: IJSHTMLCollection;
  58994. function _Getscripts: IJSHTMLCollection;
  58995. function _GetdefaultView: IJSWindowProxy;
  58996. function _GetdesignMode: UnicodeString;
  58997. function _Getonreadystatechange: TEventHandler;
  58998. function _Getonbeforescriptexecute: TEventHandler;
  58999. function _Getonafterscriptexecute: TEventHandler;
  59000. function _GetmozSyntheticDocument: Boolean;
  59001. function _GetcurrentScript: IJSElement;
  59002. function _GetfgColor: UnicodeString;
  59003. function _GetlinkColor: UnicodeString;
  59004. function _GetvlinkColor: UnicodeString;
  59005. function _GetalinkColor: UnicodeString;
  59006. function _GetbgColor: UnicodeString;
  59007. function _Getanchors: IJSHTMLCollection;
  59008. function _Getapplets: IJSHTMLCollection;
  59009. function _Getall: IJSHTMLAllCollection;
  59010. function _Getfullscreen: Boolean;
  59011. function _GetmozFullScreen: Boolean;
  59012. function _GetfullscreenEnabled: Boolean;
  59013. function _GetmozFullScreenEnabled: Boolean;
  59014. function _Getonfullscreenchange: TEventHandler;
  59015. function _Getonfullscreenerror: TEventHandler;
  59016. function _Getonpointerlockchange: TEventHandler;
  59017. function _Getonpointerlockerror: TEventHandler;
  59018. function _Gethidden: Boolean;
  59019. function _GetvisibilityState: TVisibilityState;
  59020. function _Getonvisibilitychange: TEventHandler;
  59021. function _GetselectedStyleSheetSet: UnicodeString;
  59022. function _GetlastStyleSheetSet: UnicodeString;
  59023. function _GetpreferredStyleSheetSet: UnicodeString;
  59024. function _GetstyleSheetSets: IJSDOMStringList;
  59025. function _GetscrollingElement: IJSElement;
  59026. function _Gettimeline: IJSDocumentTimeline;
  59027. function _GetrootElement: IJSSVGSVGElement;
  59028. function _Getl10n: IJSObject;
  59029. function _GethasPendingL10nMutations: Boolean;
  59030. function _GetfeaturePolicy: IJSFeaturePolicy;
  59031. function _GetfragmentDirective: IJSFragmentDirective;
  59032. function _Getonabort: TEventHandler;
  59033. function _Getonblur: TEventHandler;
  59034. function _Getonfocus: TEventHandler;
  59035. function _Getoncancel: TEventHandler;
  59036. function _Getonauxclick: TEventHandler;
  59037. function _Getonbeforeinput: TEventHandler;
  59038. function _Getonbeforetoggle: TEventHandler;
  59039. function _Getoncanplay: TEventHandler;
  59040. function _Getoncanplaythrough: TEventHandler;
  59041. function _Getonchange: TEventHandler;
  59042. function _Getonclick: TEventHandler;
  59043. function _Getonclose: TEventHandler;
  59044. function _Getoncontextlost: TEventHandler;
  59045. function _Getoncontextmenu: TEventHandler;
  59046. function _Getoncontextrestored: TEventHandler;
  59047. function _Getoncopy: TEventHandler;
  59048. function _Getoncuechange: TEventHandler;
  59049. function _Getoncut: TEventHandler;
  59050. function _Getondblclick: TEventHandler;
  59051. function _Getondrag: TEventHandler;
  59052. function _Getondragend: TEventHandler;
  59053. function _Getondragenter: TEventHandler;
  59054. function _Getondragexit: TEventHandler;
  59055. function _Getondragleave: TEventHandler;
  59056. function _Getondragover: TEventHandler;
  59057. function _Getondragstart: TEventHandler;
  59058. function _Getondrop: TEventHandler;
  59059. function _Getondurationchange: TEventHandler;
  59060. function _Getonemptied: TEventHandler;
  59061. function _Getonended: TEventHandler;
  59062. function _Getonformdata: TEventHandler;
  59063. function _Getoninput: TEventHandler;
  59064. function _Getoninvalid: TEventHandler;
  59065. function _Getonkeydown: TEventHandler;
  59066. function _Getonkeypress: TEventHandler;
  59067. function _Getonkeyup: TEventHandler;
  59068. function _Getonload: TEventHandler;
  59069. function _Getonloadeddata: TEventHandler;
  59070. function _Getonloadedmetadata: TEventHandler;
  59071. function _Getonloadstart: TEventHandler;
  59072. function _Getonmousedown: TEventHandler;
  59073. function _Getonmouseenter: TEventHandler;
  59074. function _Getonmouseleave: TEventHandler;
  59075. function _Getonmousemove: TEventHandler;
  59076. function _Getonmouseout: TEventHandler;
  59077. function _Getonmouseover: TEventHandler;
  59078. function _Getonmouseup: TEventHandler;
  59079. function _Getonwheel: TEventHandler;
  59080. function _Getonpaste: TEventHandler;
  59081. function _Getonpause: TEventHandler;
  59082. function _Getonplay: TEventHandler;
  59083. function _Getonplaying: TEventHandler;
  59084. function _Getonprogress: TEventHandler;
  59085. function _Getonratechange: TEventHandler;
  59086. function _Getonreset: TEventHandler;
  59087. function _Getonresize: TEventHandler;
  59088. function _Getonscroll: TEventHandler;
  59089. function _Getonscrollend: TEventHandler;
  59090. function _Getonsecuritypolicyviolation: TEventHandler;
  59091. function _Getonseeked: TEventHandler;
  59092. function _Getonseeking: TEventHandler;
  59093. function _Getonselect: TEventHandler;
  59094. function _Getonslotchange: TEventHandler;
  59095. function _Getonstalled: TEventHandler;
  59096. function _Getonsubmit: TEventHandler;
  59097. function _Getonsuspend: TEventHandler;
  59098. function _Getontimeupdate: TEventHandler;
  59099. function _Getonvolumechange: TEventHandler;
  59100. function _Getonwaiting: TEventHandler;
  59101. function _Getonselectstart: TEventHandler;
  59102. function _Getonselectionchange: TEventHandler;
  59103. function _Getontoggle: TEventHandler;
  59104. function _Getonpointercancel: TEventHandler;
  59105. function _Getonpointerdown: TEventHandler;
  59106. function _Getonpointerup: TEventHandler;
  59107. function _Getonpointermove: TEventHandler;
  59108. function _Getonpointerout: TEventHandler;
  59109. function _Getonpointerover: TEventHandler;
  59110. function _Getonpointerenter: TEventHandler;
  59111. function _Getonpointerleave: TEventHandler;
  59112. function _Getongotpointercapture: TEventHandler;
  59113. function _Getonlostpointercapture: TEventHandler;
  59114. function _Getonmozfullscreenchange: TEventHandler;
  59115. function _Getonmozfullscreenerror: TEventHandler;
  59116. function _Getonanimationcancel: TEventHandler;
  59117. function _Getonanimationend: TEventHandler;
  59118. function _Getonanimationiteration: TEventHandler;
  59119. function _Getonanimationstart: TEventHandler;
  59120. function _Getontransitioncancel: TEventHandler;
  59121. function _Getontransitionend: TEventHandler;
  59122. function _Getontransitionrun: TEventHandler;
  59123. function _Getontransitionstart: TEventHandler;
  59124. function _Getonwebkitanimationend: TEventHandler;
  59125. function _Getonwebkitanimationiteration: TEventHandler;
  59126. function _Getonwebkitanimationstart: TEventHandler;
  59127. function _Getonwebkittransitionend: TEventHandler;
  59128. function _Getontouchstart: TEventHandler;
  59129. function _Getontouchend: TEventHandler;
  59130. function _Getontouchmove: TEventHandler;
  59131. function _Getontouchcancel: TEventHandler;
  59132. function _Getchildren: IJSHTMLCollection;
  59133. function _GetfirstElementChild: IJSElement;
  59134. function _GetlastElementChild: IJSElement;
  59135. function _GetchildElementCount: Cardinal;
  59136. function _Getonerror: TEventHandler;
  59137. function _Getfonts: IJSFontFaceSet;
  59138. function _GetactiveElement: IJSElement;
  59139. function _GetstyleSheets: IJSStyleSheetList;
  59140. function _GetpointerLockElement: IJSElement;
  59141. function _GetfullscreenElement: IJSElement;
  59142. function _GetmozFullScreenElement: IJSElement;
  59143. function _GetadoptedStyleSheets: TJSCSSStyleSheetDynArray;
  59144. procedure _Setdomain(const aValue: UnicodeString);
  59145. procedure _Setcookie(const aValue: UnicodeString);
  59146. procedure _Settitle(const aValue: UnicodeString);
  59147. procedure _Setdir(const aValue: UnicodeString);
  59148. procedure _Setbody(const aValue: IJSHTMLElement);
  59149. procedure _SetdesignMode(const aValue: UnicodeString);
  59150. procedure _Setonreadystatechange(const aValue: TEventHandler);
  59151. procedure _Setonbeforescriptexecute(const aValue: TEventHandler);
  59152. procedure _Setonafterscriptexecute(const aValue: TEventHandler);
  59153. procedure _SetfgColor(const aValue: UnicodeString);
  59154. procedure _SetlinkColor(const aValue: UnicodeString);
  59155. procedure _SetvlinkColor(const aValue: UnicodeString);
  59156. procedure _SetalinkColor(const aValue: UnicodeString);
  59157. procedure _SetbgColor(const aValue: UnicodeString);
  59158. procedure _Setonfullscreenchange(const aValue: TEventHandler);
  59159. procedure _Setonfullscreenerror(const aValue: TEventHandler);
  59160. procedure _Setonpointerlockchange(const aValue: TEventHandler);
  59161. procedure _Setonpointerlockerror(const aValue: TEventHandler);
  59162. procedure _Setonvisibilitychange(const aValue: TEventHandler);
  59163. procedure _SetselectedStyleSheetSet(const aValue: UnicodeString);
  59164. procedure _Setonabort(const aValue: TEventHandler);
  59165. procedure _Setonblur(const aValue: TEventHandler);
  59166. procedure _Setonfocus(const aValue: TEventHandler);
  59167. procedure _Setoncancel(const aValue: TEventHandler);
  59168. procedure _Setonauxclick(const aValue: TEventHandler);
  59169. procedure _Setonbeforeinput(const aValue: TEventHandler);
  59170. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  59171. procedure _Setoncanplay(const aValue: TEventHandler);
  59172. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  59173. procedure _Setonchange(const aValue: TEventHandler);
  59174. procedure _Setonclick(const aValue: TEventHandler);
  59175. procedure _Setonclose(const aValue: TEventHandler);
  59176. procedure _Setoncontextlost(const aValue: TEventHandler);
  59177. procedure _Setoncontextmenu(const aValue: TEventHandler);
  59178. procedure _Setoncontextrestored(const aValue: TEventHandler);
  59179. procedure _Setoncopy(const aValue: TEventHandler);
  59180. procedure _Setoncuechange(const aValue: TEventHandler);
  59181. procedure _Setoncut(const aValue: TEventHandler);
  59182. procedure _Setondblclick(const aValue: TEventHandler);
  59183. procedure _Setondrag(const aValue: TEventHandler);
  59184. procedure _Setondragend(const aValue: TEventHandler);
  59185. procedure _Setondragenter(const aValue: TEventHandler);
  59186. procedure _Setondragexit(const aValue: TEventHandler);
  59187. procedure _Setondragleave(const aValue: TEventHandler);
  59188. procedure _Setondragover(const aValue: TEventHandler);
  59189. procedure _Setondragstart(const aValue: TEventHandler);
  59190. procedure _Setondrop(const aValue: TEventHandler);
  59191. procedure _Setondurationchange(const aValue: TEventHandler);
  59192. procedure _Setonemptied(const aValue: TEventHandler);
  59193. procedure _Setonended(const aValue: TEventHandler);
  59194. procedure _Setonformdata(const aValue: TEventHandler);
  59195. procedure _Setoninput(const aValue: TEventHandler);
  59196. procedure _Setoninvalid(const aValue: TEventHandler);
  59197. procedure _Setonkeydown(const aValue: TEventHandler);
  59198. procedure _Setonkeypress(const aValue: TEventHandler);
  59199. procedure _Setonkeyup(const aValue: TEventHandler);
  59200. procedure _Setonload(const aValue: TEventHandler);
  59201. procedure _Setonloadeddata(const aValue: TEventHandler);
  59202. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  59203. procedure _Setonloadstart(const aValue: TEventHandler);
  59204. procedure _Setonmousedown(const aValue: TEventHandler);
  59205. procedure _Setonmouseenter(const aValue: TEventHandler);
  59206. procedure _Setonmouseleave(const aValue: TEventHandler);
  59207. procedure _Setonmousemove(const aValue: TEventHandler);
  59208. procedure _Setonmouseout(const aValue: TEventHandler);
  59209. procedure _Setonmouseover(const aValue: TEventHandler);
  59210. procedure _Setonmouseup(const aValue: TEventHandler);
  59211. procedure _Setonwheel(const aValue: TEventHandler);
  59212. procedure _Setonpaste(const aValue: TEventHandler);
  59213. procedure _Setonpause(const aValue: TEventHandler);
  59214. procedure _Setonplay(const aValue: TEventHandler);
  59215. procedure _Setonplaying(const aValue: TEventHandler);
  59216. procedure _Setonprogress(const aValue: TEventHandler);
  59217. procedure _Setonratechange(const aValue: TEventHandler);
  59218. procedure _Setonreset(const aValue: TEventHandler);
  59219. procedure _Setonresize(const aValue: TEventHandler);
  59220. procedure _Setonscroll(const aValue: TEventHandler);
  59221. procedure _Setonscrollend(const aValue: TEventHandler);
  59222. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  59223. procedure _Setonseeked(const aValue: TEventHandler);
  59224. procedure _Setonseeking(const aValue: TEventHandler);
  59225. procedure _Setonselect(const aValue: TEventHandler);
  59226. procedure _Setonslotchange(const aValue: TEventHandler);
  59227. procedure _Setonstalled(const aValue: TEventHandler);
  59228. procedure _Setonsubmit(const aValue: TEventHandler);
  59229. procedure _Setonsuspend(const aValue: TEventHandler);
  59230. procedure _Setontimeupdate(const aValue: TEventHandler);
  59231. procedure _Setonvolumechange(const aValue: TEventHandler);
  59232. procedure _Setonwaiting(const aValue: TEventHandler);
  59233. procedure _Setonselectstart(const aValue: TEventHandler);
  59234. procedure _Setonselectionchange(const aValue: TEventHandler);
  59235. procedure _Setontoggle(const aValue: TEventHandler);
  59236. procedure _Setonpointercancel(const aValue: TEventHandler);
  59237. procedure _Setonpointerdown(const aValue: TEventHandler);
  59238. procedure _Setonpointerup(const aValue: TEventHandler);
  59239. procedure _Setonpointermove(const aValue: TEventHandler);
  59240. procedure _Setonpointerout(const aValue: TEventHandler);
  59241. procedure _Setonpointerover(const aValue: TEventHandler);
  59242. procedure _Setonpointerenter(const aValue: TEventHandler);
  59243. procedure _Setonpointerleave(const aValue: TEventHandler);
  59244. procedure _Setongotpointercapture(const aValue: TEventHandler);
  59245. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  59246. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  59247. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  59248. procedure _Setonanimationcancel(const aValue: TEventHandler);
  59249. procedure _Setonanimationend(const aValue: TEventHandler);
  59250. procedure _Setonanimationiteration(const aValue: TEventHandler);
  59251. procedure _Setonanimationstart(const aValue: TEventHandler);
  59252. procedure _Setontransitioncancel(const aValue: TEventHandler);
  59253. procedure _Setontransitionend(const aValue: TEventHandler);
  59254. procedure _Setontransitionrun(const aValue: TEventHandler);
  59255. procedure _Setontransitionstart(const aValue: TEventHandler);
  59256. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  59257. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  59258. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  59259. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  59260. procedure _Setontouchstart(const aValue: TEventHandler);
  59261. procedure _Setontouchend(const aValue: TEventHandler);
  59262. procedure _Setontouchmove(const aValue: TEventHandler);
  59263. procedure _Setontouchcancel(const aValue: TEventHandler);
  59264. procedure _Setonerror(const aValue: TEventHandler);
  59265. procedure _SetadoptedStyleSheets(const aValue: TJSCSSStyleSheetDynArray);
  59266. Public
  59267. constructor Create; overload;
  59268. function getElementsByTagName(const aLocalName: UnicodeString): IJSHTMLCollection; overload;
  59269. function getElementsByTagNameNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): IJSHTMLCollection; overload;
  59270. function getElementsByClassName(const aClassNames: UnicodeString): IJSHTMLCollection; overload;
  59271. function createElement(const aLocalName: UnicodeString; const aOptions: UnicodeString): IJSElement; overload;
  59272. function createElement(const aLocalName: UnicodeString): IJSElement; overload;
  59273. function createElement(const aLocalName: UnicodeString; const aOptions: TJSElementCreationOptions): IJSElement; overload;
  59274. function createElementNS(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString; const aOptions: UnicodeString): IJSElement; overload;
  59275. function createElementNS(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString): IJSElement; overload;
  59276. function createElementNS(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString; const aOptions: TJSElementCreationOptions): IJSElement; overload;
  59277. function createDocumentFragment: IJSDocumentFragment; overload;
  59278. function createTextNode(const aData: UnicodeString): IJSText; overload;
  59279. function createComment(const aData: UnicodeString): IJSComment; overload;
  59280. function createProcessingInstruction(const aTarget: UnicodeString; const aData: UnicodeString): IJSProcessingInstruction; overload;
  59281. function importNode(aNode: IJSNode; aDeep: Boolean): IJSNode; overload;
  59282. function importNode(aNode: IJSNode): IJSNode; overload;
  59283. function adoptNode(aNode: IJSNode): IJSNode; overload;
  59284. function createEvent(const aInterface_: UnicodeString): IJSEvent; overload;
  59285. function createRange: IJSRange; overload;
  59286. function createNodeIterator(aRoot: IJSNode; aWhatToShow: Cardinal; const aFilter: TNodeFilter): IJSNodeIterator; overload;
  59287. function createNodeIterator(aRoot: IJSNode): IJSNodeIterator; overload;
  59288. function createNodeIterator(aRoot: IJSNode; aWhatToShow: Cardinal): IJSNodeIterator; overload;
  59289. function createTreeWalker(aRoot: IJSNode; aWhatToShow: Cardinal; const aFilter: TNodeFilter): IJSTreeWalker; overload;
  59290. function createTreeWalker(aRoot: IJSNode): IJSTreeWalker; overload;
  59291. function createTreeWalker(aRoot: IJSNode; aWhatToShow: Cardinal): IJSTreeWalker; overload;
  59292. function createCDATASection(const aData: UnicodeString): IJSCDATASection; overload;
  59293. function createAttribute(const aName: UnicodeString): IJSAttr; overload;
  59294. function createAttributeNS(const aNamespace: UnicodeString; const aName: UnicodeString): IJSAttr; overload;
  59295. function parseHTMLUnsafe(const aHtml: UnicodeString): IJSDocument; overload;
  59296. function getElementsByName(const aElementName: UnicodeString): IJSNodeList; overload;
  59297. function open(const aUnused1: UnicodeString; const aUnused2: UnicodeString): IJSDocument; overload;
  59298. function open: IJSDocument; overload;
  59299. function open(const aUnused1: UnicodeString): IJSDocument; overload;
  59300. function open(const aUrl: UnicodeString; const aName: UnicodeString; const aFeatures: UnicodeString): IJSWindowProxy; overload;
  59301. procedure close; overload;
  59302. procedure write(const aText: UnicodeString){; ToDo:varargs}; overload;
  59303. procedure writeln(const aText: UnicodeString){; ToDo:varargs}; overload;
  59304. function hasFocus: Boolean; overload;
  59305. function execCommand(const aCommandId: UnicodeString; aShowUI: Boolean; const aValue: UnicodeString): Boolean; overload;
  59306. function execCommand(const aCommandId: UnicodeString): Boolean; overload;
  59307. function execCommand(const aCommandId: UnicodeString; aShowUI: Boolean): Boolean; overload;
  59308. function queryCommandEnabled(const aCommandId: UnicodeString): Boolean; overload;
  59309. function queryCommandIndeterm(const aCommandId: UnicodeString): Boolean; overload;
  59310. function queryCommandState(const aCommandId: UnicodeString): Boolean; overload;
  59311. function queryCommandSupported(const aCommandId: UnicodeString): Boolean; overload;
  59312. function queryCommandValue(const aCommandId: UnicodeString): UnicodeString; overload;
  59313. procedure releaseCapture; overload;
  59314. procedure mozSetImageElement(const aAImageElementId: UnicodeString; aAImageElement: IJSElement); overload;
  59315. procedure clear; overload;
  59316. procedure captureEvents; overload;
  59317. procedure releaseEvents; overload;
  59318. function exitFullscreen: IJSPromise; overload; // Promise<undefined>
  59319. function mozCancelFullScreen: IJSPromise; overload; // Promise<undefined>
  59320. procedure exitPointerLock; overload;
  59321. function addCertException(aIsTemporary: Boolean): IJSPromise; overload; // Promise<any>
  59322. procedure reloadWithHttpsOnlyException; overload;
  59323. function getFailedCertSecurityInfo: TJSFailedCertSecurityInfo; overload;
  59324. function getNetErrorInfo: TJSNetErrorInfo; overload;
  59325. procedure enableStyleSheetsForSet(const aName: UnicodeString); overload;
  59326. function caretPositionFromPoint(aX: Single; aY: Single): IJSCaretPosition; overload;
  59327. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt; aRadiusY: LongInt; aRotationAngle: Single; aForce: Single): IJSTouch; overload;
  59328. function createTouch: IJSTouch; overload;
  59329. function createTouch(aView: IJSWindow): IJSTouch; overload;
  59330. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget): IJSTouch; overload;
  59331. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt): IJSTouch; overload;
  59332. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt): IJSTouch; overload;
  59333. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt): IJSTouch; overload;
  59334. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt): IJSTouch; overload;
  59335. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt): IJSTouch; overload;
  59336. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt): IJSTouch; overload;
  59337. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt): IJSTouch; overload;
  59338. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt): IJSTouch; overload;
  59339. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt; aRadiusY: LongInt): IJSTouch; overload;
  59340. function createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt; aRadiusY: LongInt; aRotationAngle: Single): IJSTouch; overload;
  59341. function createTouchList(aTouch: IJSTouch; aTouches: IJSTouch): IJSTouchList{; ToDo:varargs}; overload;
  59342. function createTouchList: IJSTouchList; overload;
  59343. function createTouchList(const aTouches: TJSTouchDynArray): IJSTouchList; overload;
  59344. procedure blockUnblockOnload(aBlock: Boolean); overload;
  59345. function getSelection: IJSSelection; overload;
  59346. function hasStorageAccess: IJSPromise; overload; // Promise<boolean>
  59347. function requestStorageAccess: IJSPromise; overload; // Promise<undefined>
  59348. function requestStorageAccessUnderSite(const aSerializedSite: UnicodeString): IJSPromise; overload; // Promise<undefined>
  59349. function completeStorageAccessRequestFromSite(const aSerializedSite: UnicodeString): IJSPromise; overload; // Promise<undefined>
  59350. function requestStorageAccessForOrigin(const aThirdPartyOrigin: UnicodeString; aRequireUserInteraction: Boolean): IJSPromise; overload; // Promise<undefined>
  59351. function requestStorageAccessForOrigin(const aThirdPartyOrigin: UnicodeString): IJSPromise; overload; // Promise<undefined>
  59352. function createExpression(const aExpression: UnicodeString; const aResolver: TXPathNSResolver): IJSXPathExpression; overload;
  59353. function createExpression(const aExpression: UnicodeString): IJSXPathExpression; overload;
  59354. function createNSResolver(aNodeResolver: IJSNode): IJSNode; overload;
  59355. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word; aResult: IJSObject): IJSXPathResult; overload;
  59356. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode): IJSXPathResult; overload;
  59357. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver): IJSXPathResult; overload;
  59358. function evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word): IJSXPathResult; overload;
  59359. procedure prepend(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  59360. procedure prepend(aNodes: IJSNode){; ToDo:varargs}; overload;
  59361. procedure append(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  59362. procedure append(aNodes: IJSNode){; ToDo:varargs}; overload;
  59363. procedure replaceChildren(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  59364. procedure replaceChildren(aNodes: IJSNode){; ToDo:varargs}; overload;
  59365. function querySelector(const aSelectors: UTF8String): IJSElement; overload;
  59366. function querySelectorAll(const aSelectors: UTF8String): IJSNodeList; overload;
  59367. function getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray; overload;
  59368. function getBoxQuads: TJSDOMQuadDynArray; overload;
  59369. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  59370. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  59371. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  59372. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad; overload;
  59373. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad; overload;
  59374. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad; overload;
  59375. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  59376. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  59377. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  59378. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad; overload;
  59379. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad; overload;
  59380. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad; overload;
  59381. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  59382. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  59383. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  59384. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint; overload;
  59385. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint; overload;
  59386. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint; overload;
  59387. function elementFromPoint(aX: Single; aY: Single): IJSElement; overload;
  59388. function elementsFromPoint(aX: Single; aY: Single): TJSElementDynArray; overload;
  59389. function getAnimations: TJSAnimationDynArray; overload;
  59390. function getElementById(const aElementId: UnicodeString): IJSElement; overload;
  59391. class function JSClassName: UnicodeString; override;
  59392. class function Cast(const Intf: IJSObject): IJSDocument;
  59393. property implementation_: IJSDOMImplementation read _Getimplementation_;
  59394. property URL: UnicodeString read _GetURL;
  59395. property documentURI: UnicodeString read _GetdocumentURI;
  59396. property compatMode: UnicodeString read _GetcompatMode;
  59397. property characterSet: UnicodeString read _GetcharacterSet;
  59398. property charset: UnicodeString read _Getcharset;
  59399. property inputEncoding: UnicodeString read _GetinputEncoding;
  59400. property contentType: UnicodeString read _GetcontentType;
  59401. property doctype: IJSDocumentType read _Getdoctype;
  59402. property documentElement: IJSElement read _GetdocumentElement;
  59403. property location: IJSLocation read _Getlocation;
  59404. property domain: UnicodeString read _Getdomain write _Setdomain;
  59405. property referrer: UnicodeString read _Getreferrer;
  59406. property cookie: UnicodeString read _Getcookie write _Setcookie;
  59407. property lastModified: UnicodeString read _GetlastModified;
  59408. property readyState: UnicodeString read _GetreadyState;
  59409. property title: UnicodeString read _Gettitle write _Settitle;
  59410. property dir: UnicodeString read _Getdir write _Setdir;
  59411. property body: IJSHTMLElement read _Getbody write _Setbody;
  59412. property head: IJSHTMLHeadElement read _Gethead;
  59413. property images: IJSHTMLCollection read _Getimages;
  59414. property embeds: IJSHTMLCollection read _Getembeds;
  59415. property plugins: IJSHTMLCollection read _Getplugins;
  59416. property links: IJSHTMLCollection read _Getlinks;
  59417. property forms: IJSHTMLCollection read _Getforms;
  59418. property scripts: IJSHTMLCollection read _Getscripts;
  59419. property defaultView: IJSWindowProxy read _GetdefaultView;
  59420. property designMode: UnicodeString read _GetdesignMode write _SetdesignMode;
  59421. property onreadystatechange: TEventHandler read _Getonreadystatechange write _Setonreadystatechange;
  59422. property onbeforescriptexecute: TEventHandler read _Getonbeforescriptexecute write _Setonbeforescriptexecute;
  59423. property onafterscriptexecute: TEventHandler read _Getonafterscriptexecute write _Setonafterscriptexecute;
  59424. property mozSyntheticDocument: Boolean read _GetmozSyntheticDocument;
  59425. property currentScript: IJSElement read _GetcurrentScript;
  59426. property fgColor: UnicodeString read _GetfgColor write _SetfgColor;
  59427. property linkColor: UnicodeString read _GetlinkColor write _SetlinkColor;
  59428. property vlinkColor: UnicodeString read _GetvlinkColor write _SetvlinkColor;
  59429. property alinkColor: UnicodeString read _GetalinkColor write _SetalinkColor;
  59430. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  59431. property anchors: IJSHTMLCollection read _Getanchors;
  59432. property applets: IJSHTMLCollection read _Getapplets;
  59433. property all: IJSHTMLAllCollection read _Getall;
  59434. property fullscreen: Boolean read _Getfullscreen;
  59435. property mozFullScreen: Boolean read _GetmozFullScreen;
  59436. property fullscreenEnabled: Boolean read _GetfullscreenEnabled;
  59437. property mozFullScreenEnabled: Boolean read _GetmozFullScreenEnabled;
  59438. property onfullscreenchange: TEventHandler read _Getonfullscreenchange write _Setonfullscreenchange;
  59439. property onfullscreenerror: TEventHandler read _Getonfullscreenerror write _Setonfullscreenerror;
  59440. property onpointerlockchange: TEventHandler read _Getonpointerlockchange write _Setonpointerlockchange;
  59441. property onpointerlockerror: TEventHandler read _Getonpointerlockerror write _Setonpointerlockerror;
  59442. property hidden: Boolean read _Gethidden;
  59443. property visibilityState: TVisibilityState read _GetvisibilityState;
  59444. property onvisibilitychange: TEventHandler read _Getonvisibilitychange write _Setonvisibilitychange;
  59445. property selectedStyleSheetSet: UnicodeString read _GetselectedStyleSheetSet write _SetselectedStyleSheetSet;
  59446. property lastStyleSheetSet: UnicodeString read _GetlastStyleSheetSet;
  59447. property preferredStyleSheetSet: UnicodeString read _GetpreferredStyleSheetSet;
  59448. property styleSheetSets: IJSDOMStringList read _GetstyleSheetSets;
  59449. property scrollingElement: IJSElement read _GetscrollingElement;
  59450. property timeline: IJSDocumentTimeline read _Gettimeline;
  59451. property rootElement: IJSSVGSVGElement read _GetrootElement;
  59452. property l10n: IJSObject read _Getl10n;
  59453. property hasPendingL10nMutations: Boolean read _GethasPendingL10nMutations;
  59454. property featurePolicy: IJSFeaturePolicy read _GetfeaturePolicy;
  59455. property fragmentDirective: IJSFragmentDirective read _GetfragmentDirective;
  59456. property onabort: TEventHandler read _Getonabort write _Setonabort;
  59457. property onblur: TEventHandler read _Getonblur write _Setonblur;
  59458. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  59459. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  59460. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  59461. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  59462. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  59463. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  59464. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  59465. property onchange: TEventHandler read _Getonchange write _Setonchange;
  59466. property onclick: TEventHandler read _Getonclick write _Setonclick;
  59467. property onclose: TEventHandler read _Getonclose write _Setonclose;
  59468. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  59469. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  59470. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  59471. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  59472. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  59473. property oncut: TEventHandler read _Getoncut write _Setoncut;
  59474. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  59475. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  59476. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  59477. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  59478. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  59479. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  59480. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  59481. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  59482. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  59483. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  59484. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  59485. property onended: TEventHandler read _Getonended write _Setonended;
  59486. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  59487. property oninput: TEventHandler read _Getoninput write _Setoninput;
  59488. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  59489. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  59490. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  59491. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  59492. property onload: TEventHandler read _Getonload write _Setonload;
  59493. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  59494. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  59495. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  59496. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  59497. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  59498. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  59499. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  59500. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  59501. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  59502. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  59503. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  59504. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  59505. property onpause: TEventHandler read _Getonpause write _Setonpause;
  59506. property onplay: TEventHandler read _Getonplay write _Setonplay;
  59507. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  59508. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  59509. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  59510. property onreset: TEventHandler read _Getonreset write _Setonreset;
  59511. property onresize: TEventHandler read _Getonresize write _Setonresize;
  59512. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  59513. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  59514. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  59515. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  59516. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  59517. property onselect: TEventHandler read _Getonselect write _Setonselect;
  59518. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  59519. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  59520. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  59521. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  59522. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  59523. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  59524. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  59525. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  59526. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  59527. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  59528. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  59529. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  59530. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  59531. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  59532. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  59533. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  59534. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  59535. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  59536. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  59537. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  59538. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  59539. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  59540. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  59541. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  59542. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  59543. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  59544. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  59545. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  59546. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  59547. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  59548. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  59549. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  59550. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  59551. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  59552. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  59553. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  59554. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  59555. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  59556. property children: IJSHTMLCollection read _Getchildren;
  59557. property firstElementChild: IJSElement read _GetfirstElementChild;
  59558. property lastElementChild: IJSElement read _GetlastElementChild;
  59559. property childElementCount: Cardinal read _GetchildElementCount;
  59560. property onerror: TEventHandler read _Getonerror write _Setonerror;
  59561. property fonts: IJSFontFaceSet read _Getfonts;
  59562. property activeElement: IJSElement read _GetactiveElement;
  59563. property styleSheets: IJSStyleSheetList read _GetstyleSheets;
  59564. property pointerLockElement: IJSElement read _GetpointerLockElement;
  59565. property fullscreenElement: IJSElement read _GetfullscreenElement;
  59566. property mozFullScreenElement: IJSElement read _GetmozFullScreenElement;
  59567. property adoptedStyleSheets: TJSCSSStyleSheetDynArray read _GetadoptedStyleSheets write _SetadoptedStyleSheets;
  59568. end;
  59569. { --------------------------------------------------------------------
  59570. TJSDocumentFragment
  59571. --------------------------------------------------------------------}
  59572. IJSDocumentFragment = interface(IJSNode)
  59573. ['{02E9D37B-03DC-3859-A0C2-99DB272D7EB0}']
  59574. function _Getchildren: IJSHTMLCollection;
  59575. function _GetfirstElementChild: IJSElement;
  59576. function _GetlastElementChild: IJSElement;
  59577. function _GetchildElementCount: Cardinal;
  59578. procedure prepend(const aNodes: UnicodeString){; ToDo:varargs};
  59579. procedure prepend(aNodes: IJSNode){; ToDo:varargs};
  59580. procedure append(const aNodes: UnicodeString){; ToDo:varargs};
  59581. procedure append(aNodes: IJSNode){; ToDo:varargs};
  59582. procedure replaceChildren(const aNodes: UnicodeString){; ToDo:varargs};
  59583. procedure replaceChildren(aNodes: IJSNode){; ToDo:varargs};
  59584. function querySelector(const aSelectors: UTF8String): IJSElement;
  59585. function querySelectorAll(const aSelectors: UTF8String): IJSNodeList;
  59586. function getElementById(const aElementId: UnicodeString): IJSElement;
  59587. property children: IJSHTMLCollection read _Getchildren;
  59588. property firstElementChild: IJSElement read _GetfirstElementChild;
  59589. property lastElementChild: IJSElement read _GetlastElementChild;
  59590. property childElementCount: Cardinal read _GetchildElementCount;
  59591. end;
  59592. TJSDocumentFragment = class(TJSNode,IJSDocumentFragment)
  59593. Protected
  59594. function _Getchildren: IJSHTMLCollection;
  59595. function _GetfirstElementChild: IJSElement;
  59596. function _GetlastElementChild: IJSElement;
  59597. function _GetchildElementCount: Cardinal;
  59598. Public
  59599. constructor Create; overload;
  59600. procedure prepend(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  59601. procedure prepend(aNodes: IJSNode){; ToDo:varargs}; overload;
  59602. procedure append(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  59603. procedure append(aNodes: IJSNode){; ToDo:varargs}; overload;
  59604. procedure replaceChildren(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  59605. procedure replaceChildren(aNodes: IJSNode){; ToDo:varargs}; overload;
  59606. function querySelector(const aSelectors: UTF8String): IJSElement; overload;
  59607. function querySelectorAll(const aSelectors: UTF8String): IJSNodeList; overload;
  59608. function getElementById(const aElementId: UnicodeString): IJSElement; overload;
  59609. class function JSClassName: UnicodeString; override;
  59610. class function Cast(const Intf: IJSObject): IJSDocumentFragment;
  59611. property children: IJSHTMLCollection read _Getchildren;
  59612. property firstElementChild: IJSElement read _GetfirstElementChild;
  59613. property lastElementChild: IJSElement read _GetlastElementChild;
  59614. property childElementCount: Cardinal read _GetchildElementCount;
  59615. end;
  59616. { --------------------------------------------------------------------
  59617. TJSDocumentType
  59618. --------------------------------------------------------------------}
  59619. IJSDocumentType = interface(IJSNode)
  59620. ['{E198DB92-C0D2-36FE-9BB8-E37C1EC26C85}']
  59621. function _Getname: UnicodeString;
  59622. function _GetpublicId: UnicodeString;
  59623. function _GetsystemId: UnicodeString;
  59624. procedure before(const aNodes: UnicodeString){; ToDo:varargs};
  59625. procedure before(aNodes: IJSNode){; ToDo:varargs};
  59626. procedure after(const aNodes: UnicodeString){; ToDo:varargs};
  59627. procedure after(aNodes: IJSNode){; ToDo:varargs};
  59628. procedure replaceWith(const aNodes: UnicodeString){; ToDo:varargs};
  59629. procedure replaceWith(aNodes: IJSNode){; ToDo:varargs};
  59630. procedure remove;
  59631. property name: UnicodeString read _Getname;
  59632. property publicId: UnicodeString read _GetpublicId;
  59633. property systemId: UnicodeString read _GetsystemId;
  59634. end;
  59635. TJSDocumentType = class(TJSNode,IJSDocumentType)
  59636. Protected
  59637. function _Getname: UnicodeString;
  59638. function _GetpublicId: UnicodeString;
  59639. function _GetsystemId: UnicodeString;
  59640. Public
  59641. procedure before(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  59642. procedure before(aNodes: IJSNode){; ToDo:varargs}; overload;
  59643. procedure after(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  59644. procedure after(aNodes: IJSNode){; ToDo:varargs}; overload;
  59645. procedure replaceWith(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  59646. procedure replaceWith(aNodes: IJSNode){; ToDo:varargs}; overload;
  59647. procedure remove; overload;
  59648. class function JSClassName: UnicodeString; override;
  59649. class function Cast(const Intf: IJSObject): IJSDocumentType;
  59650. property name: UnicodeString read _Getname;
  59651. property publicId: UnicodeString read _GetpublicId;
  59652. property systemId: UnicodeString read _GetsystemId;
  59653. end;
  59654. { --------------------------------------------------------------------
  59655. TJSDynamicsCompressorNode
  59656. --------------------------------------------------------------------}
  59657. IJSDynamicsCompressorNode = interface(IJSAudioNode)
  59658. ['{B0D6CF81-10B0-3763-892E-69ECB008DF04}']
  59659. function _Getthreshold: IJSAudioParam;
  59660. function _Getknee: IJSAudioParam;
  59661. function _Getratio: IJSAudioParam;
  59662. function _Getreduction: Single;
  59663. function _Getattack: IJSAudioParam;
  59664. function _Getrelease: IJSAudioParam;
  59665. property threshold: IJSAudioParam read _Getthreshold;
  59666. property knee: IJSAudioParam read _Getknee;
  59667. property ratio: IJSAudioParam read _Getratio;
  59668. property reduction: Single read _Getreduction;
  59669. property attack: IJSAudioParam read _Getattack;
  59670. property release: IJSAudioParam read _Getrelease;
  59671. end;
  59672. TJSDynamicsCompressorNode = class(TJSAudioNode,IJSDynamicsCompressorNode)
  59673. Protected
  59674. function _Getthreshold: IJSAudioParam;
  59675. function _Getknee: IJSAudioParam;
  59676. function _Getratio: IJSAudioParam;
  59677. function _Getreduction: Single;
  59678. function _Getattack: IJSAudioParam;
  59679. function _Getrelease: IJSAudioParam;
  59680. Public
  59681. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSDynamicsCompressorOptions); overload;
  59682. constructor Create(aContext: IJSBaseAudioContext); overload;
  59683. class function JSClassName: UnicodeString; override;
  59684. class function Cast(const Intf: IJSObject): IJSDynamicsCompressorNode;
  59685. property threshold: IJSAudioParam read _Getthreshold;
  59686. property knee: IJSAudioParam read _Getknee;
  59687. property ratio: IJSAudioParam read _Getratio;
  59688. property reduction: Single read _Getreduction;
  59689. property attack: IJSAudioParam read _Getattack;
  59690. property release: IJSAudioParam read _Getrelease;
  59691. end;
  59692. { --------------------------------------------------------------------
  59693. TJSElement
  59694. --------------------------------------------------------------------}
  59695. // Union of boolean, ScrollIntoViewOptions
  59696. TElement_scrollIntoView_arg_Type = Variant;
  59697. IJSElement = interface(IJSNode)
  59698. ['{0DA8F935-861E-31B0-84E1-FF9EEB366403}']
  59699. function _GetnamespaceURI: UnicodeString;
  59700. function _Getprefix: UnicodeString;
  59701. function _GetlocalName: UnicodeString;
  59702. function _GettagName: UnicodeString;
  59703. function _Getid: UnicodeString;
  59704. function _GetclassName_: UnicodeString;
  59705. function _GetclassList: IJSDOMTokenList;
  59706. function _Getpart: IJSDOMTokenList;
  59707. function _Getattributes: IJSNamedNodeMap;
  59708. function _GetscrollTop: LongInt;
  59709. function _GetscrollLeft: LongInt;
  59710. function _GetscrollWidth: LongInt;
  59711. function _GetscrollHeight: LongInt;
  59712. function _GetclientTop: LongInt;
  59713. function _GetclientLeft: LongInt;
  59714. function _GetclientWidth: LongInt;
  59715. function _GetclientHeight: LongInt;
  59716. function _GetscrollTopMax: LongInt;
  59717. function _GetscrollLeftMax: LongInt;
  59718. function _GetcurrentCSSZoom: Double;
  59719. function _GetinnerHTML: UnicodeString;
  59720. function _GetouterHTML: UnicodeString;
  59721. function _GetshadowRoot: IJSShadowRoot;
  59722. function _GetopenOrClosedShadowRoot: IJSShadowRoot;
  59723. function _GetassignedSlot: IJSHTMLSlotElement;
  59724. function _Getslot: UnicodeString;
  59725. function _Getonfullscreenchange: TEventHandler;
  59726. function _Getonfullscreenerror: TEventHandler;
  59727. function _GetpreviousElementSibling: IJSElement;
  59728. function _GetnextElementSibling: IJSElement;
  59729. function _Getchildren: IJSHTMLCollection;
  59730. function _GetfirstElementChild: IJSElement;
  59731. function _GetlastElementChild: IJSElement;
  59732. function _GetchildElementCount: Cardinal;
  59733. function _GetariaActiveDescendantElement: IJSElement;
  59734. function _Getrole: UnicodeString;
  59735. function _GetariaAtomic: UnicodeString;
  59736. function _GetariaAutoComplete: UnicodeString;
  59737. function _GetariaBrailleLabel: UnicodeString;
  59738. function _GetariaBrailleRoleDescription: UnicodeString;
  59739. function _GetariaBusy: UnicodeString;
  59740. function _GetariaChecked: UnicodeString;
  59741. function _GetariaColCount: UnicodeString;
  59742. function _GetariaColIndex: UnicodeString;
  59743. function _GetariaColIndexText: UnicodeString;
  59744. function _GetariaColSpan: UnicodeString;
  59745. function _GetariaCurrent: UnicodeString;
  59746. function _GetariaDescription: UnicodeString;
  59747. function _GetariaDisabled: UnicodeString;
  59748. function _GetariaExpanded: UnicodeString;
  59749. function _GetariaHasPopup: UnicodeString;
  59750. function _GetariaHidden: UnicodeString;
  59751. function _GetariaInvalid: UnicodeString;
  59752. function _GetariaKeyShortcuts: UnicodeString;
  59753. function _GetariaLabel: UnicodeString;
  59754. function _GetariaLevel: UnicodeString;
  59755. function _GetariaLive: UnicodeString;
  59756. function _GetariaModal: UnicodeString;
  59757. function _GetariaMultiLine: UnicodeString;
  59758. function _GetariaMultiSelectable: UnicodeString;
  59759. function _GetariaOrientation: UnicodeString;
  59760. function _GetariaPlaceholder: UnicodeString;
  59761. function _GetariaPosInSet: UnicodeString;
  59762. function _GetariaPressed: UnicodeString;
  59763. function _GetariaReadOnly: UnicodeString;
  59764. function _GetariaRelevant: UnicodeString;
  59765. function _GetariaRequired: UnicodeString;
  59766. function _GetariaRoleDescription: UnicodeString;
  59767. function _GetariaRowCount: UnicodeString;
  59768. function _GetariaRowIndex: UnicodeString;
  59769. function _GetariaRowIndexText: UnicodeString;
  59770. function _GetariaRowSpan: UnicodeString;
  59771. function _GetariaSelected: UnicodeString;
  59772. function _GetariaSetSize: UnicodeString;
  59773. function _GetariaSort: UnicodeString;
  59774. function _GetariaValueMax: UnicodeString;
  59775. function _GetariaValueMin: UnicodeString;
  59776. function _GetariaValueNow: UnicodeString;
  59777. function _GetariaValueText: UnicodeString;
  59778. procedure _Setid(const aValue: UnicodeString);
  59779. procedure _SetclassName_(const aValue: UnicodeString);
  59780. procedure _SetscrollTop(const aValue: LongInt);
  59781. procedure _SetscrollLeft(const aValue: LongInt);
  59782. procedure _SetinnerHTML(const aValue: UnicodeString);
  59783. procedure _SetouterHTML(const aValue: UnicodeString);
  59784. procedure _Setslot(const aValue: UnicodeString);
  59785. procedure _Setonfullscreenchange(const aValue: TEventHandler);
  59786. procedure _Setonfullscreenerror(const aValue: TEventHandler);
  59787. procedure _SetariaActiveDescendantElement(const aValue: IJSElement);
  59788. procedure _Setrole(const aValue: UnicodeString);
  59789. procedure _SetariaAtomic(const aValue: UnicodeString);
  59790. procedure _SetariaAutoComplete(const aValue: UnicodeString);
  59791. procedure _SetariaBrailleLabel(const aValue: UnicodeString);
  59792. procedure _SetariaBrailleRoleDescription(const aValue: UnicodeString);
  59793. procedure _SetariaBusy(const aValue: UnicodeString);
  59794. procedure _SetariaChecked(const aValue: UnicodeString);
  59795. procedure _SetariaColCount(const aValue: UnicodeString);
  59796. procedure _SetariaColIndex(const aValue: UnicodeString);
  59797. procedure _SetariaColIndexText(const aValue: UnicodeString);
  59798. procedure _SetariaColSpan(const aValue: UnicodeString);
  59799. procedure _SetariaCurrent(const aValue: UnicodeString);
  59800. procedure _SetariaDescription(const aValue: UnicodeString);
  59801. procedure _SetariaDisabled(const aValue: UnicodeString);
  59802. procedure _SetariaExpanded(const aValue: UnicodeString);
  59803. procedure _SetariaHasPopup(const aValue: UnicodeString);
  59804. procedure _SetariaHidden(const aValue: UnicodeString);
  59805. procedure _SetariaInvalid(const aValue: UnicodeString);
  59806. procedure _SetariaKeyShortcuts(const aValue: UnicodeString);
  59807. procedure _SetariaLabel(const aValue: UnicodeString);
  59808. procedure _SetariaLevel(const aValue: UnicodeString);
  59809. procedure _SetariaLive(const aValue: UnicodeString);
  59810. procedure _SetariaModal(const aValue: UnicodeString);
  59811. procedure _SetariaMultiLine(const aValue: UnicodeString);
  59812. procedure _SetariaMultiSelectable(const aValue: UnicodeString);
  59813. procedure _SetariaOrientation(const aValue: UnicodeString);
  59814. procedure _SetariaPlaceholder(const aValue: UnicodeString);
  59815. procedure _SetariaPosInSet(const aValue: UnicodeString);
  59816. procedure _SetariaPressed(const aValue: UnicodeString);
  59817. procedure _SetariaReadOnly(const aValue: UnicodeString);
  59818. procedure _SetariaRelevant(const aValue: UnicodeString);
  59819. procedure _SetariaRequired(const aValue: UnicodeString);
  59820. procedure _SetariaRoleDescription(const aValue: UnicodeString);
  59821. procedure _SetariaRowCount(const aValue: UnicodeString);
  59822. procedure _SetariaRowIndex(const aValue: UnicodeString);
  59823. procedure _SetariaRowIndexText(const aValue: UnicodeString);
  59824. procedure _SetariaRowSpan(const aValue: UnicodeString);
  59825. procedure _SetariaSelected(const aValue: UnicodeString);
  59826. procedure _SetariaSetSize(const aValue: UnicodeString);
  59827. procedure _SetariaSort(const aValue: UnicodeString);
  59828. procedure _SetariaValueMax(const aValue: UnicodeString);
  59829. procedure _SetariaValueMin(const aValue: UnicodeString);
  59830. procedure _SetariaValueNow(const aValue: UnicodeString);
  59831. procedure _SetariaValueText(const aValue: UnicodeString);
  59832. function getAttributeNames: TUnicodeStringDynArray;
  59833. function getAttribute(const aName: UnicodeString): UnicodeString;
  59834. function getAttributeNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): UnicodeString;
  59835. function toggleAttribute(const aName: UnicodeString; aForce: Boolean): Boolean;
  59836. function toggleAttribute(const aName: UnicodeString): Boolean;
  59837. procedure setAttribute(const aName: UnicodeString; const aValue: UnicodeString);
  59838. procedure setAttributeNS(const aNamespace: UnicodeString; const aName: UnicodeString; const aValue: UnicodeString);
  59839. procedure removeAttribute(const aName: UnicodeString);
  59840. procedure removeAttributeNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString);
  59841. function hasAttribute(const aName: UnicodeString): Boolean;
  59842. function hasAttributeNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): Boolean;
  59843. function hasAttributes: Boolean;
  59844. function closest(const aSelector: UTF8String): IJSElement;
  59845. function matches(const aSelector: UTF8String): Boolean;
  59846. function webkitMatchesSelector(const aSelector: UTF8String): Boolean;
  59847. function getElementsByTagName(const aLocalName: UnicodeString): IJSHTMLCollection;
  59848. function getElementsByTagNameNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): IJSHTMLCollection;
  59849. function getElementsByClassName(const aClassNames: UnicodeString): IJSHTMLCollection;
  59850. function insertAdjacentElement(const aWhere: UnicodeString; aElement: IJSElement): IJSElement;
  59851. procedure insertAdjacentText(const aWhere: UnicodeString; const aData: UnicodeString);
  59852. function mozMatchesSelector(const aSelector: UTF8String): Boolean;
  59853. procedure setPointerCapture(aPointerId: LongInt);
  59854. procedure releasePointerCapture(aPointerId: LongInt);
  59855. function hasPointerCapture(aPointerId: LongInt): Boolean;
  59856. procedure setCapture(aRetargetToElement: Boolean);
  59857. procedure setCapture;
  59858. procedure releaseCapture;
  59859. function getAttributeNode(const aName: UnicodeString): IJSAttr;
  59860. function setAttributeNode(aNewAttr: IJSAttr): IJSAttr;
  59861. function removeAttributeNode(aOldAttr: IJSAttr): IJSAttr;
  59862. function getAttributeNodeNS(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): IJSAttr;
  59863. function setAttributeNodeNS(aNewAttr: IJSAttr): IJSAttr;
  59864. function getTransformToAncestor(aAncestor: IJSElement): IJSDOMMatrixReadOnly;
  59865. function getTransformToParent: IJSDOMMatrixReadOnly;
  59866. function getTransformToViewport: IJSDOMMatrixReadOnly;
  59867. function getClientRects: IJSDOMRectList;
  59868. function getBoundingClientRect: IJSDOMRect;
  59869. function checkVisibility(const aOptions: TJSCheckVisibilityOptions): Boolean;
  59870. function checkVisibility: Boolean;
  59871. procedure scrollIntoView(aArg: Boolean);
  59872. procedure scrollIntoView;
  59873. procedure scrollIntoView(const aArg: TJSScrollIntoViewOptions);
  59874. procedure scroll(aX: Double; aY: Double);
  59875. procedure scroll(const aOptions: TJSScrollToOptions);
  59876. procedure scroll;
  59877. procedure scrollTo(aX: Double; aY: Double);
  59878. procedure scrollTo(const aOptions: TJSScrollToOptions);
  59879. procedure scrollTo;
  59880. procedure scrollBy(aX: Double; aY: Double);
  59881. procedure scrollBy(const aOptions: TJSScrollToOptions);
  59882. procedure scrollBy;
  59883. procedure insertAdjacentHTML(const aPosition: UnicodeString; const aText: UnicodeString);
  59884. function attachShadow(const aShadowRootInitDict: TJSShadowRootInit): IJSShadowRoot;
  59885. function requestFullscreen: IJSPromise; // Promise<undefined>
  59886. function mozRequestFullScreen: IJSPromise; // Promise<undefined>
  59887. procedure requestPointerLock;
  59888. procedure setHTML(const aAInnerHTML: UnicodeString; const aOptions: TJSSetHTMLOptions);
  59889. procedure setHTML(const aAInnerHTML: UnicodeString);
  59890. procedure setHTMLUnsafe(const aHtml: UnicodeString);
  59891. procedure before(const aNodes: UnicodeString){; ToDo:varargs};
  59892. procedure before(aNodes: IJSNode){; ToDo:varargs};
  59893. procedure after(const aNodes: UnicodeString){; ToDo:varargs};
  59894. procedure after(aNodes: IJSNode){; ToDo:varargs};
  59895. procedure replaceWith(const aNodes: UnicodeString){; ToDo:varargs};
  59896. procedure replaceWith(aNodes: IJSNode){; ToDo:varargs};
  59897. procedure remove;
  59898. procedure prepend(const aNodes: UnicodeString){; ToDo:varargs};
  59899. procedure prepend(aNodes: IJSNode){; ToDo:varargs};
  59900. procedure append(const aNodes: UnicodeString){; ToDo:varargs};
  59901. procedure append(aNodes: IJSNode){; ToDo:varargs};
  59902. procedure replaceChildren(const aNodes: UnicodeString){; ToDo:varargs};
  59903. procedure replaceChildren(aNodes: IJSNode){; ToDo:varargs};
  59904. function querySelector(const aSelectors: UTF8String): IJSElement;
  59905. function querySelectorAll(const aSelectors: UTF8String): IJSNodeList;
  59906. function animate(aKeyframes: IJSObject; const aOptions: TJSKeyframeAnimationOptions): IJSAnimation;
  59907. function animate(aKeyframes: IJSObject): IJSAnimation;
  59908. function animate(aKeyframes: IJSObject; aOptions: Double): IJSAnimation;
  59909. function getAnimations(const aOptions: TJSGetAnimationsOptions): TJSAnimationDynArray;
  59910. function getAnimations: TJSAnimationDynArray;
  59911. function getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray;
  59912. function getBoxQuads: TJSDOMQuadDynArray;
  59913. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  59914. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  59915. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  59916. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad;
  59917. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad;
  59918. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad;
  59919. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  59920. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  59921. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  59922. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad;
  59923. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad;
  59924. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad;
  59925. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  59926. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  59927. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  59928. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint;
  59929. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint;
  59930. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint;
  59931. property namespaceURI: UnicodeString read _GetnamespaceURI;
  59932. property prefix: UnicodeString read _Getprefix;
  59933. property localName: UnicodeString read _GetlocalName;
  59934. property tagName: UnicodeString read _GettagName;
  59935. property id: UnicodeString read _Getid write _Setid;
  59936. property className_: UnicodeString read _GetclassName_ write _SetclassName_;
  59937. property classList: IJSDOMTokenList read _GetclassList;
  59938. property part: IJSDOMTokenList read _Getpart;
  59939. property attributes: IJSNamedNodeMap read _Getattributes;
  59940. property scrollTop: LongInt read _GetscrollTop write _SetscrollTop;
  59941. property scrollLeft: LongInt read _GetscrollLeft write _SetscrollLeft;
  59942. property scrollWidth: LongInt read _GetscrollWidth;
  59943. property scrollHeight: LongInt read _GetscrollHeight;
  59944. property clientTop: LongInt read _GetclientTop;
  59945. property clientLeft: LongInt read _GetclientLeft;
  59946. property clientWidth: LongInt read _GetclientWidth;
  59947. property clientHeight: LongInt read _GetclientHeight;
  59948. property scrollTopMax: LongInt read _GetscrollTopMax;
  59949. property scrollLeftMax: LongInt read _GetscrollLeftMax;
  59950. property currentCSSZoom: Double read _GetcurrentCSSZoom;
  59951. property innerHTML: UnicodeString read _GetinnerHTML write _SetinnerHTML;
  59952. property outerHTML: UnicodeString read _GetouterHTML write _SetouterHTML;
  59953. property shadowRoot: IJSShadowRoot read _GetshadowRoot;
  59954. property openOrClosedShadowRoot: IJSShadowRoot read _GetopenOrClosedShadowRoot;
  59955. property assignedSlot: IJSHTMLSlotElement read _GetassignedSlot;
  59956. property slot: UnicodeString read _Getslot write _Setslot;
  59957. property onfullscreenchange: TEventHandler read _Getonfullscreenchange write _Setonfullscreenchange;
  59958. property onfullscreenerror: TEventHandler read _Getonfullscreenerror write _Setonfullscreenerror;
  59959. property previousElementSibling: IJSElement read _GetpreviousElementSibling;
  59960. property nextElementSibling: IJSElement read _GetnextElementSibling;
  59961. property children: IJSHTMLCollection read _Getchildren;
  59962. property firstElementChild: IJSElement read _GetfirstElementChild;
  59963. property lastElementChild: IJSElement read _GetlastElementChild;
  59964. property childElementCount: Cardinal read _GetchildElementCount;
  59965. property ariaActiveDescendantElement: IJSElement read _GetariaActiveDescendantElement write _SetariaActiveDescendantElement;
  59966. property role: UnicodeString read _Getrole write _Setrole;
  59967. property ariaAtomic: UnicodeString read _GetariaAtomic write _SetariaAtomic;
  59968. property ariaAutoComplete: UnicodeString read _GetariaAutoComplete write _SetariaAutoComplete;
  59969. property ariaBrailleLabel: UnicodeString read _GetariaBrailleLabel write _SetariaBrailleLabel;
  59970. property ariaBrailleRoleDescription: UnicodeString read _GetariaBrailleRoleDescription write _SetariaBrailleRoleDescription;
  59971. property ariaBusy: UnicodeString read _GetariaBusy write _SetariaBusy;
  59972. property ariaChecked: UnicodeString read _GetariaChecked write _SetariaChecked;
  59973. property ariaColCount: UnicodeString read _GetariaColCount write _SetariaColCount;
  59974. property ariaColIndex: UnicodeString read _GetariaColIndex write _SetariaColIndex;
  59975. property ariaColIndexText: UnicodeString read _GetariaColIndexText write _SetariaColIndexText;
  59976. property ariaColSpan: UnicodeString read _GetariaColSpan write _SetariaColSpan;
  59977. property ariaCurrent: UnicodeString read _GetariaCurrent write _SetariaCurrent;
  59978. property ariaDescription: UnicodeString read _GetariaDescription write _SetariaDescription;
  59979. property ariaDisabled: UnicodeString read _GetariaDisabled write _SetariaDisabled;
  59980. property ariaExpanded: UnicodeString read _GetariaExpanded write _SetariaExpanded;
  59981. property ariaHasPopup: UnicodeString read _GetariaHasPopup write _SetariaHasPopup;
  59982. property ariaHidden: UnicodeString read _GetariaHidden write _SetariaHidden;
  59983. property ariaInvalid: UnicodeString read _GetariaInvalid write _SetariaInvalid;
  59984. property ariaKeyShortcuts: UnicodeString read _GetariaKeyShortcuts write _SetariaKeyShortcuts;
  59985. property ariaLabel: UnicodeString read _GetariaLabel write _SetariaLabel;
  59986. property ariaLevel: UnicodeString read _GetariaLevel write _SetariaLevel;
  59987. property ariaLive: UnicodeString read _GetariaLive write _SetariaLive;
  59988. property ariaModal: UnicodeString read _GetariaModal write _SetariaModal;
  59989. property ariaMultiLine: UnicodeString read _GetariaMultiLine write _SetariaMultiLine;
  59990. property ariaMultiSelectable: UnicodeString read _GetariaMultiSelectable write _SetariaMultiSelectable;
  59991. property ariaOrientation: UnicodeString read _GetariaOrientation write _SetariaOrientation;
  59992. property ariaPlaceholder: UnicodeString read _GetariaPlaceholder write _SetariaPlaceholder;
  59993. property ariaPosInSet: UnicodeString read _GetariaPosInSet write _SetariaPosInSet;
  59994. property ariaPressed: UnicodeString read _GetariaPressed write _SetariaPressed;
  59995. property ariaReadOnly: UnicodeString read _GetariaReadOnly write _SetariaReadOnly;
  59996. property ariaRelevant: UnicodeString read _GetariaRelevant write _SetariaRelevant;
  59997. property ariaRequired: UnicodeString read _GetariaRequired write _SetariaRequired;
  59998. property ariaRoleDescription: UnicodeString read _GetariaRoleDescription write _SetariaRoleDescription;
  59999. property ariaRowCount: UnicodeString read _GetariaRowCount write _SetariaRowCount;
  60000. property ariaRowIndex: UnicodeString read _GetariaRowIndex write _SetariaRowIndex;
  60001. property ariaRowIndexText: UnicodeString read _GetariaRowIndexText write _SetariaRowIndexText;
  60002. property ariaRowSpan: UnicodeString read _GetariaRowSpan write _SetariaRowSpan;
  60003. property ariaSelected: UnicodeString read _GetariaSelected write _SetariaSelected;
  60004. property ariaSetSize: UnicodeString read _GetariaSetSize write _SetariaSetSize;
  60005. property ariaSort: UnicodeString read _GetariaSort write _SetariaSort;
  60006. property ariaValueMax: UnicodeString read _GetariaValueMax write _SetariaValueMax;
  60007. property ariaValueMin: UnicodeString read _GetariaValueMin write _SetariaValueMin;
  60008. property ariaValueNow: UnicodeString read _GetariaValueNow write _SetariaValueNow;
  60009. property ariaValueText: UnicodeString read _GetariaValueText write _SetariaValueText;
  60010. end;
  60011. TJSElement = class(TJSNode,IJSElement)
  60012. Protected
  60013. function _GetnamespaceURI: UnicodeString;
  60014. function _Getprefix: UnicodeString;
  60015. function _GetlocalName: UnicodeString;
  60016. function _GettagName: UnicodeString;
  60017. function _Getid: UnicodeString;
  60018. function _GetclassName_: UnicodeString;
  60019. function _GetclassList: IJSDOMTokenList;
  60020. function _Getpart: IJSDOMTokenList;
  60021. function _Getattributes: IJSNamedNodeMap;
  60022. function _GetscrollTop: LongInt;
  60023. function _GetscrollLeft: LongInt;
  60024. function _GetscrollWidth: LongInt;
  60025. function _GetscrollHeight: LongInt;
  60026. function _GetclientTop: LongInt;
  60027. function _GetclientLeft: LongInt;
  60028. function _GetclientWidth: LongInt;
  60029. function _GetclientHeight: LongInt;
  60030. function _GetscrollTopMax: LongInt;
  60031. function _GetscrollLeftMax: LongInt;
  60032. function _GetcurrentCSSZoom: Double;
  60033. function _GetinnerHTML: UnicodeString;
  60034. function _GetouterHTML: UnicodeString;
  60035. function _GetshadowRoot: IJSShadowRoot;
  60036. function _GetopenOrClosedShadowRoot: IJSShadowRoot;
  60037. function _GetassignedSlot: IJSHTMLSlotElement;
  60038. function _Getslot: UnicodeString;
  60039. function _Getonfullscreenchange: TEventHandler;
  60040. function _Getonfullscreenerror: TEventHandler;
  60041. function _GetpreviousElementSibling: IJSElement;
  60042. function _GetnextElementSibling: IJSElement;
  60043. function _Getchildren: IJSHTMLCollection;
  60044. function _GetfirstElementChild: IJSElement;
  60045. function _GetlastElementChild: IJSElement;
  60046. function _GetchildElementCount: Cardinal;
  60047. function _GetariaActiveDescendantElement: IJSElement;
  60048. function _Getrole: UnicodeString;
  60049. function _GetariaAtomic: UnicodeString;
  60050. function _GetariaAutoComplete: UnicodeString;
  60051. function _GetariaBrailleLabel: UnicodeString;
  60052. function _GetariaBrailleRoleDescription: UnicodeString;
  60053. function _GetariaBusy: UnicodeString;
  60054. function _GetariaChecked: UnicodeString;
  60055. function _GetariaColCount: UnicodeString;
  60056. function _GetariaColIndex: UnicodeString;
  60057. function _GetariaColIndexText: UnicodeString;
  60058. function _GetariaColSpan: UnicodeString;
  60059. function _GetariaCurrent: UnicodeString;
  60060. function _GetariaDescription: UnicodeString;
  60061. function _GetariaDisabled: UnicodeString;
  60062. function _GetariaExpanded: UnicodeString;
  60063. function _GetariaHasPopup: UnicodeString;
  60064. function _GetariaHidden: UnicodeString;
  60065. function _GetariaInvalid: UnicodeString;
  60066. function _GetariaKeyShortcuts: UnicodeString;
  60067. function _GetariaLabel: UnicodeString;
  60068. function _GetariaLevel: UnicodeString;
  60069. function _GetariaLive: UnicodeString;
  60070. function _GetariaModal: UnicodeString;
  60071. function _GetariaMultiLine: UnicodeString;
  60072. function _GetariaMultiSelectable: UnicodeString;
  60073. function _GetariaOrientation: UnicodeString;
  60074. function _GetariaPlaceholder: UnicodeString;
  60075. function _GetariaPosInSet: UnicodeString;
  60076. function _GetariaPressed: UnicodeString;
  60077. function _GetariaReadOnly: UnicodeString;
  60078. function _GetariaRelevant: UnicodeString;
  60079. function _GetariaRequired: UnicodeString;
  60080. function _GetariaRoleDescription: UnicodeString;
  60081. function _GetariaRowCount: UnicodeString;
  60082. function _GetariaRowIndex: UnicodeString;
  60083. function _GetariaRowIndexText: UnicodeString;
  60084. function _GetariaRowSpan: UnicodeString;
  60085. function _GetariaSelected: UnicodeString;
  60086. function _GetariaSetSize: UnicodeString;
  60087. function _GetariaSort: UnicodeString;
  60088. function _GetariaValueMax: UnicodeString;
  60089. function _GetariaValueMin: UnicodeString;
  60090. function _GetariaValueNow: UnicodeString;
  60091. function _GetariaValueText: UnicodeString;
  60092. procedure _Setid(const aValue: UnicodeString);
  60093. procedure _SetclassName_(const aValue: UnicodeString);
  60094. procedure _SetscrollTop(const aValue: LongInt);
  60095. procedure _SetscrollLeft(const aValue: LongInt);
  60096. procedure _SetinnerHTML(const aValue: UnicodeString);
  60097. procedure _SetouterHTML(const aValue: UnicodeString);
  60098. procedure _Setslot(const aValue: UnicodeString);
  60099. procedure _Setonfullscreenchange(const aValue: TEventHandler);
  60100. procedure _Setonfullscreenerror(const aValue: TEventHandler);
  60101. procedure _SetariaActiveDescendantElement(const aValue: IJSElement);
  60102. procedure _Setrole(const aValue: UnicodeString);
  60103. procedure _SetariaAtomic(const aValue: UnicodeString);
  60104. procedure _SetariaAutoComplete(const aValue: UnicodeString);
  60105. procedure _SetariaBrailleLabel(const aValue: UnicodeString);
  60106. procedure _SetariaBrailleRoleDescription(const aValue: UnicodeString);
  60107. procedure _SetariaBusy(const aValue: UnicodeString);
  60108. procedure _SetariaChecked(const aValue: UnicodeString);
  60109. procedure _SetariaColCount(const aValue: UnicodeString);
  60110. procedure _SetariaColIndex(const aValue: UnicodeString);
  60111. procedure _SetariaColIndexText(const aValue: UnicodeString);
  60112. procedure _SetariaColSpan(const aValue: UnicodeString);
  60113. procedure _SetariaCurrent(const aValue: UnicodeString);
  60114. procedure _SetariaDescription(const aValue: UnicodeString);
  60115. procedure _SetariaDisabled(const aValue: UnicodeString);
  60116. procedure _SetariaExpanded(const aValue: UnicodeString);
  60117. procedure _SetariaHasPopup(const aValue: UnicodeString);
  60118. procedure _SetariaHidden(const aValue: UnicodeString);
  60119. procedure _SetariaInvalid(const aValue: UnicodeString);
  60120. procedure _SetariaKeyShortcuts(const aValue: UnicodeString);
  60121. procedure _SetariaLabel(const aValue: UnicodeString);
  60122. procedure _SetariaLevel(const aValue: UnicodeString);
  60123. procedure _SetariaLive(const aValue: UnicodeString);
  60124. procedure _SetariaModal(const aValue: UnicodeString);
  60125. procedure _SetariaMultiLine(const aValue: UnicodeString);
  60126. procedure _SetariaMultiSelectable(const aValue: UnicodeString);
  60127. procedure _SetariaOrientation(const aValue: UnicodeString);
  60128. procedure _SetariaPlaceholder(const aValue: UnicodeString);
  60129. procedure _SetariaPosInSet(const aValue: UnicodeString);
  60130. procedure _SetariaPressed(const aValue: UnicodeString);
  60131. procedure _SetariaReadOnly(const aValue: UnicodeString);
  60132. procedure _SetariaRelevant(const aValue: UnicodeString);
  60133. procedure _SetariaRequired(const aValue: UnicodeString);
  60134. procedure _SetariaRoleDescription(const aValue: UnicodeString);
  60135. procedure _SetariaRowCount(const aValue: UnicodeString);
  60136. procedure _SetariaRowIndex(const aValue: UnicodeString);
  60137. procedure _SetariaRowIndexText(const aValue: UnicodeString);
  60138. procedure _SetariaRowSpan(const aValue: UnicodeString);
  60139. procedure _SetariaSelected(const aValue: UnicodeString);
  60140. procedure _SetariaSetSize(const aValue: UnicodeString);
  60141. procedure _SetariaSort(const aValue: UnicodeString);
  60142. procedure _SetariaValueMax(const aValue: UnicodeString);
  60143. procedure _SetariaValueMin(const aValue: UnicodeString);
  60144. procedure _SetariaValueNow(const aValue: UnicodeString);
  60145. procedure _SetariaValueText(const aValue: UnicodeString);
  60146. Public
  60147. function getAttributeNames: TUnicodeStringDynArray; overload;
  60148. function getAttribute(const aName: UnicodeString): UnicodeString; overload;
  60149. function getAttributeNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): UnicodeString; overload;
  60150. function toggleAttribute(const aName: UnicodeString; aForce: Boolean): Boolean; overload;
  60151. function toggleAttribute(const aName: UnicodeString): Boolean; overload;
  60152. procedure setAttribute(const aName: UnicodeString; const aValue: UnicodeString); overload;
  60153. procedure setAttributeNS(const aNamespace: UnicodeString; const aName: UnicodeString; const aValue: UnicodeString); overload;
  60154. procedure removeAttribute(const aName: UnicodeString); overload;
  60155. procedure removeAttributeNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString); overload;
  60156. function hasAttribute(const aName: UnicodeString): Boolean; overload;
  60157. function hasAttributeNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): Boolean; overload;
  60158. function hasAttributes: Boolean; overload;
  60159. function closest(const aSelector: UTF8String): IJSElement; overload;
  60160. function matches(const aSelector: UTF8String): Boolean; overload;
  60161. function webkitMatchesSelector(const aSelector: UTF8String): Boolean; overload;
  60162. function getElementsByTagName(const aLocalName: UnicodeString): IJSHTMLCollection; overload;
  60163. function getElementsByTagNameNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): IJSHTMLCollection; overload;
  60164. function getElementsByClassName(const aClassNames: UnicodeString): IJSHTMLCollection; overload;
  60165. function insertAdjacentElement(const aWhere: UnicodeString; aElement: IJSElement): IJSElement; overload;
  60166. procedure insertAdjacentText(const aWhere: UnicodeString; const aData: UnicodeString); overload;
  60167. function mozMatchesSelector(const aSelector: UTF8String): Boolean; overload;
  60168. procedure setPointerCapture(aPointerId: LongInt); overload;
  60169. procedure releasePointerCapture(aPointerId: LongInt); overload;
  60170. function hasPointerCapture(aPointerId: LongInt): Boolean; overload;
  60171. procedure setCapture(aRetargetToElement: Boolean); overload;
  60172. procedure setCapture; overload;
  60173. procedure releaseCapture; overload;
  60174. function getAttributeNode(const aName: UnicodeString): IJSAttr; overload;
  60175. function setAttributeNode(aNewAttr: IJSAttr): IJSAttr; overload;
  60176. function removeAttributeNode(aOldAttr: IJSAttr): IJSAttr; overload;
  60177. function getAttributeNodeNS(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): IJSAttr; overload;
  60178. function setAttributeNodeNS(aNewAttr: IJSAttr): IJSAttr; overload;
  60179. function getTransformToAncestor(aAncestor: IJSElement): IJSDOMMatrixReadOnly; overload;
  60180. function getTransformToParent: IJSDOMMatrixReadOnly; overload;
  60181. function getTransformToViewport: IJSDOMMatrixReadOnly; overload;
  60182. function getClientRects: IJSDOMRectList; overload;
  60183. function getBoundingClientRect: IJSDOMRect; overload;
  60184. function checkVisibility(const aOptions: TJSCheckVisibilityOptions): Boolean; overload;
  60185. function checkVisibility: Boolean; overload;
  60186. procedure scrollIntoView(aArg: Boolean); overload;
  60187. procedure scrollIntoView; overload;
  60188. procedure scrollIntoView(const aArg: TJSScrollIntoViewOptions); overload;
  60189. procedure scroll(aX: Double; aY: Double); overload;
  60190. procedure scroll(const aOptions: TJSScrollToOptions); overload;
  60191. procedure scroll; overload;
  60192. procedure scrollTo(aX: Double; aY: Double); overload;
  60193. procedure scrollTo(const aOptions: TJSScrollToOptions); overload;
  60194. procedure scrollTo; overload;
  60195. procedure scrollBy(aX: Double; aY: Double); overload;
  60196. procedure scrollBy(const aOptions: TJSScrollToOptions); overload;
  60197. procedure scrollBy; overload;
  60198. procedure insertAdjacentHTML(const aPosition: UnicodeString; const aText: UnicodeString); overload;
  60199. function attachShadow(const aShadowRootInitDict: TJSShadowRootInit): IJSShadowRoot; overload;
  60200. function requestFullscreen: IJSPromise; overload; // Promise<undefined>
  60201. function mozRequestFullScreen: IJSPromise; overload; // Promise<undefined>
  60202. procedure requestPointerLock; overload;
  60203. procedure setHTML(const aAInnerHTML: UnicodeString; const aOptions: TJSSetHTMLOptions); overload;
  60204. procedure setHTML(const aAInnerHTML: UnicodeString); overload;
  60205. procedure setHTMLUnsafe(const aHtml: UnicodeString); overload;
  60206. procedure before(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  60207. procedure before(aNodes: IJSNode){; ToDo:varargs}; overload;
  60208. procedure after(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  60209. procedure after(aNodes: IJSNode){; ToDo:varargs}; overload;
  60210. procedure replaceWith(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  60211. procedure replaceWith(aNodes: IJSNode){; ToDo:varargs}; overload;
  60212. procedure remove; overload;
  60213. procedure prepend(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  60214. procedure prepend(aNodes: IJSNode){; ToDo:varargs}; overload;
  60215. procedure append(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  60216. procedure append(aNodes: IJSNode){; ToDo:varargs}; overload;
  60217. procedure replaceChildren(const aNodes: UnicodeString){; ToDo:varargs}; overload;
  60218. procedure replaceChildren(aNodes: IJSNode){; ToDo:varargs}; overload;
  60219. function querySelector(const aSelectors: UTF8String): IJSElement; overload;
  60220. function querySelectorAll(const aSelectors: UTF8String): IJSNodeList; overload;
  60221. function animate(aKeyframes: IJSObject; const aOptions: TJSKeyframeAnimationOptions): IJSAnimation; overload;
  60222. function animate(aKeyframes: IJSObject): IJSAnimation; overload;
  60223. function animate(aKeyframes: IJSObject; aOptions: Double): IJSAnimation; overload;
  60224. function getAnimations(const aOptions: TJSGetAnimationsOptions): TJSAnimationDynArray; overload;
  60225. function getAnimations: TJSAnimationDynArray; overload;
  60226. function getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray; overload;
  60227. function getBoxQuads: TJSDOMQuadDynArray; overload;
  60228. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  60229. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  60230. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  60231. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad; overload;
  60232. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad; overload;
  60233. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad; overload;
  60234. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  60235. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  60236. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  60237. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad; overload;
  60238. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad; overload;
  60239. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad; overload;
  60240. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  60241. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  60242. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  60243. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint; overload;
  60244. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint; overload;
  60245. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint; overload;
  60246. class function JSClassName: UnicodeString; override;
  60247. class function Cast(const Intf: IJSObject): IJSElement;
  60248. property namespaceURI: UnicodeString read _GetnamespaceURI;
  60249. property prefix: UnicodeString read _Getprefix;
  60250. property localName: UnicodeString read _GetlocalName;
  60251. property tagName: UnicodeString read _GettagName;
  60252. property id: UnicodeString read _Getid write _Setid;
  60253. property className_: UnicodeString read _GetclassName_ write _SetclassName_;
  60254. property classList: IJSDOMTokenList read _GetclassList;
  60255. property part: IJSDOMTokenList read _Getpart;
  60256. property attributes: IJSNamedNodeMap read _Getattributes;
  60257. property scrollTop: LongInt read _GetscrollTop write _SetscrollTop;
  60258. property scrollLeft: LongInt read _GetscrollLeft write _SetscrollLeft;
  60259. property scrollWidth: LongInt read _GetscrollWidth;
  60260. property scrollHeight: LongInt read _GetscrollHeight;
  60261. property clientTop: LongInt read _GetclientTop;
  60262. property clientLeft: LongInt read _GetclientLeft;
  60263. property clientWidth: LongInt read _GetclientWidth;
  60264. property clientHeight: LongInt read _GetclientHeight;
  60265. property scrollTopMax: LongInt read _GetscrollTopMax;
  60266. property scrollLeftMax: LongInt read _GetscrollLeftMax;
  60267. property currentCSSZoom: Double read _GetcurrentCSSZoom;
  60268. property innerHTML: UnicodeString read _GetinnerHTML write _SetinnerHTML;
  60269. property outerHTML: UnicodeString read _GetouterHTML write _SetouterHTML;
  60270. property shadowRoot: IJSShadowRoot read _GetshadowRoot;
  60271. property openOrClosedShadowRoot: IJSShadowRoot read _GetopenOrClosedShadowRoot;
  60272. property assignedSlot: IJSHTMLSlotElement read _GetassignedSlot;
  60273. property slot: UnicodeString read _Getslot write _Setslot;
  60274. property onfullscreenchange: TEventHandler read _Getonfullscreenchange write _Setonfullscreenchange;
  60275. property onfullscreenerror: TEventHandler read _Getonfullscreenerror write _Setonfullscreenerror;
  60276. property previousElementSibling: IJSElement read _GetpreviousElementSibling;
  60277. property nextElementSibling: IJSElement read _GetnextElementSibling;
  60278. property children: IJSHTMLCollection read _Getchildren;
  60279. property firstElementChild: IJSElement read _GetfirstElementChild;
  60280. property lastElementChild: IJSElement read _GetlastElementChild;
  60281. property childElementCount: Cardinal read _GetchildElementCount;
  60282. property ariaActiveDescendantElement: IJSElement read _GetariaActiveDescendantElement write _SetariaActiveDescendantElement;
  60283. property role: UnicodeString read _Getrole write _Setrole;
  60284. property ariaAtomic: UnicodeString read _GetariaAtomic write _SetariaAtomic;
  60285. property ariaAutoComplete: UnicodeString read _GetariaAutoComplete write _SetariaAutoComplete;
  60286. property ariaBrailleLabel: UnicodeString read _GetariaBrailleLabel write _SetariaBrailleLabel;
  60287. property ariaBrailleRoleDescription: UnicodeString read _GetariaBrailleRoleDescription write _SetariaBrailleRoleDescription;
  60288. property ariaBusy: UnicodeString read _GetariaBusy write _SetariaBusy;
  60289. property ariaChecked: UnicodeString read _GetariaChecked write _SetariaChecked;
  60290. property ariaColCount: UnicodeString read _GetariaColCount write _SetariaColCount;
  60291. property ariaColIndex: UnicodeString read _GetariaColIndex write _SetariaColIndex;
  60292. property ariaColIndexText: UnicodeString read _GetariaColIndexText write _SetariaColIndexText;
  60293. property ariaColSpan: UnicodeString read _GetariaColSpan write _SetariaColSpan;
  60294. property ariaCurrent: UnicodeString read _GetariaCurrent write _SetariaCurrent;
  60295. property ariaDescription: UnicodeString read _GetariaDescription write _SetariaDescription;
  60296. property ariaDisabled: UnicodeString read _GetariaDisabled write _SetariaDisabled;
  60297. property ariaExpanded: UnicodeString read _GetariaExpanded write _SetariaExpanded;
  60298. property ariaHasPopup: UnicodeString read _GetariaHasPopup write _SetariaHasPopup;
  60299. property ariaHidden: UnicodeString read _GetariaHidden write _SetariaHidden;
  60300. property ariaInvalid: UnicodeString read _GetariaInvalid write _SetariaInvalid;
  60301. property ariaKeyShortcuts: UnicodeString read _GetariaKeyShortcuts write _SetariaKeyShortcuts;
  60302. property ariaLabel: UnicodeString read _GetariaLabel write _SetariaLabel;
  60303. property ariaLevel: UnicodeString read _GetariaLevel write _SetariaLevel;
  60304. property ariaLive: UnicodeString read _GetariaLive write _SetariaLive;
  60305. property ariaModal: UnicodeString read _GetariaModal write _SetariaModal;
  60306. property ariaMultiLine: UnicodeString read _GetariaMultiLine write _SetariaMultiLine;
  60307. property ariaMultiSelectable: UnicodeString read _GetariaMultiSelectable write _SetariaMultiSelectable;
  60308. property ariaOrientation: UnicodeString read _GetariaOrientation write _SetariaOrientation;
  60309. property ariaPlaceholder: UnicodeString read _GetariaPlaceholder write _SetariaPlaceholder;
  60310. property ariaPosInSet: UnicodeString read _GetariaPosInSet write _SetariaPosInSet;
  60311. property ariaPressed: UnicodeString read _GetariaPressed write _SetariaPressed;
  60312. property ariaReadOnly: UnicodeString read _GetariaReadOnly write _SetariaReadOnly;
  60313. property ariaRelevant: UnicodeString read _GetariaRelevant write _SetariaRelevant;
  60314. property ariaRequired: UnicodeString read _GetariaRequired write _SetariaRequired;
  60315. property ariaRoleDescription: UnicodeString read _GetariaRoleDescription write _SetariaRoleDescription;
  60316. property ariaRowCount: UnicodeString read _GetariaRowCount write _SetariaRowCount;
  60317. property ariaRowIndex: UnicodeString read _GetariaRowIndex write _SetariaRowIndex;
  60318. property ariaRowIndexText: UnicodeString read _GetariaRowIndexText write _SetariaRowIndexText;
  60319. property ariaRowSpan: UnicodeString read _GetariaRowSpan write _SetariaRowSpan;
  60320. property ariaSelected: UnicodeString read _GetariaSelected write _SetariaSelected;
  60321. property ariaSetSize: UnicodeString read _GetariaSetSize write _SetariaSetSize;
  60322. property ariaSort: UnicodeString read _GetariaSort write _SetariaSort;
  60323. property ariaValueMax: UnicodeString read _GetariaValueMax write _SetariaValueMax;
  60324. property ariaValueMin: UnicodeString read _GetariaValueMin write _SetariaValueMin;
  60325. property ariaValueNow: UnicodeString read _GetariaValueNow write _SetariaValueNow;
  60326. property ariaValueText: UnicodeString read _GetariaValueText write _SetariaValueText;
  60327. end;
  60328. { --------------------------------------------------------------------
  60329. TJSExtendableMessageEvent
  60330. --------------------------------------------------------------------}
  60331. // Union of Client, ServiceWorker, MessagePort
  60332. TExtendableMessageEvent_source_Type = Variant;
  60333. IJSExtendableMessageEvent = interface(IJSExtendableEvent)
  60334. ['{82BC921B-4A49-3C28-BD95-2B2D0E86C67A}']
  60335. function _Getdata: Variant;
  60336. function _Getorigin: UnicodeString;
  60337. function _GetlastEventId: UnicodeString;
  60338. function _Getsource: TExtendableMessageEvent_source_Type;
  60339. function _Getports: TJSMessagePortDynArray;
  60340. property data: Variant read _Getdata;
  60341. property origin: UnicodeString read _Getorigin;
  60342. property lastEventId: UnicodeString read _GetlastEventId;
  60343. property source: TExtendableMessageEvent_source_Type read _Getsource;
  60344. property ports: TJSMessagePortDynArray read _Getports;
  60345. end;
  60346. TJSExtendableMessageEvent = class(TJSExtendableEvent,IJSExtendableMessageEvent)
  60347. Protected
  60348. function _Getdata: Variant;
  60349. function _Getorigin: UnicodeString;
  60350. function _GetlastEventId: UnicodeString;
  60351. function _Getsource: TExtendableMessageEvent_source_Type;
  60352. function _Getports: TJSMessagePortDynArray;
  60353. Public
  60354. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSExtendableMessageEventInit); overload;
  60355. constructor Create(const aType_: UnicodeString); overload;
  60356. class function JSClassName: UnicodeString; override;
  60357. class function Cast(const Intf: IJSObject): IJSExtendableMessageEvent;
  60358. property data: Variant read _Getdata;
  60359. property origin: UnicodeString read _Getorigin;
  60360. property lastEventId: UnicodeString read _GetlastEventId;
  60361. property source: TExtendableMessageEvent_source_Type read _Getsource;
  60362. property ports: TJSMessagePortDynArray read _Getports;
  60363. end;
  60364. { --------------------------------------------------------------------
  60365. TJSFetchEvent
  60366. --------------------------------------------------------------------}
  60367. IJSFetchEvent = interface(IJSExtendableEvent)
  60368. ['{7CF19364-8484-3BC3-9F87-2A6BB7735363}']
  60369. function _Getrequest: IJSRequest;
  60370. function _GetpreloadResponse: IJSPromise;
  60371. function _GetclientId: UnicodeString;
  60372. function _GetresultingClientId: UnicodeString;
  60373. function _Gethandled: IJSPromise;
  60374. procedure respondWith(aR: IJSPromise);
  60375. property request: IJSRequest read _Getrequest;
  60376. property preloadResponse: IJSPromise read _GetpreloadResponse;
  60377. property clientId: UnicodeString read _GetclientId;
  60378. property resultingClientId: UnicodeString read _GetresultingClientId;
  60379. property handled: IJSPromise read _Gethandled;
  60380. end;
  60381. TJSFetchEvent = class(TJSExtendableEvent,IJSFetchEvent)
  60382. Protected
  60383. function _Getrequest: IJSRequest;
  60384. function _GetpreloadResponse: IJSPromise;
  60385. function _GetclientId: UnicodeString;
  60386. function _GetresultingClientId: UnicodeString;
  60387. function _Gethandled: IJSPromise;
  60388. Public
  60389. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSFetchEventInit); overload;
  60390. procedure respondWith(aR: IJSPromise); overload;
  60391. class function JSClassName: UnicodeString; override;
  60392. class function Cast(const Intf: IJSObject): IJSFetchEvent;
  60393. property request: IJSRequest read _Getrequest;
  60394. property preloadResponse: IJSPromise read _GetpreloadResponse;
  60395. property clientId: UnicodeString read _GetclientId;
  60396. property resultingClientId: UnicodeString read _GetresultingClientId;
  60397. property handled: IJSPromise read _Gethandled;
  60398. end;
  60399. { --------------------------------------------------------------------
  60400. TJSFocusEvent
  60401. --------------------------------------------------------------------}
  60402. IJSFocusEvent = interface(IJSUIEvent)
  60403. ['{399D8861-0EEF-3E31-BE97-C2C1C538C4E1}']
  60404. function _GetrelatedTarget: IJSEventTarget;
  60405. property relatedTarget: IJSEventTarget read _GetrelatedTarget;
  60406. end;
  60407. TJSFocusEvent = class(TJSUIEvent,IJSFocusEvent)
  60408. Protected
  60409. function _GetrelatedTarget: IJSEventTarget;
  60410. Public
  60411. constructor Create(const aTypeArg: UnicodeString; const aFocusEventInitDict: TJSFocusEventInit); overload;
  60412. constructor Create(const aTypeArg: UnicodeString); overload;
  60413. class function JSClassName: UnicodeString; override;
  60414. class function Cast(const Intf: IJSObject): IJSFocusEvent;
  60415. property relatedTarget: IJSEventTarget read _GetrelatedTarget;
  60416. end;
  60417. { --------------------------------------------------------------------
  60418. TJSGainNode
  60419. --------------------------------------------------------------------}
  60420. IJSGainNode = interface(IJSAudioNode)
  60421. ['{0CAF8B06-B950-3A07-9116-5C139295F2A4}']
  60422. function _Getgain: IJSAudioParam;
  60423. property gain: IJSAudioParam read _Getgain;
  60424. end;
  60425. TJSGainNode = class(TJSAudioNode,IJSGainNode)
  60426. Protected
  60427. function _Getgain: IJSAudioParam;
  60428. Public
  60429. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSGainOptions); overload;
  60430. constructor Create(aContext: IJSBaseAudioContext); overload;
  60431. class function JSClassName: UnicodeString; override;
  60432. class function Cast(const Intf: IJSObject): IJSGainNode;
  60433. property gain: IJSAudioParam read _Getgain;
  60434. end;
  60435. { --------------------------------------------------------------------
  60436. TJSGamepadAxisMoveEvent
  60437. --------------------------------------------------------------------}
  60438. IJSGamepadAxisMoveEvent = interface(IJSGamepadEvent)
  60439. ['{BD8C9B04-E295-3315-853D-10CCD1D035E0}']
  60440. function _Getaxis: Cardinal;
  60441. function _Getvalue: Double;
  60442. property axis: Cardinal read _Getaxis;
  60443. property value: Double read _Getvalue;
  60444. end;
  60445. TJSGamepadAxisMoveEvent = class(TJSGamepadEvent,IJSGamepadAxisMoveEvent)
  60446. Protected
  60447. function _Getaxis: Cardinal;
  60448. function _Getvalue: Double;
  60449. Public
  60450. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSGamepadAxisMoveEventInit); overload;
  60451. constructor Create(const aType_: UnicodeString); overload;
  60452. class function JSClassName: UnicodeString; override;
  60453. class function Cast(const Intf: IJSObject): IJSGamepadAxisMoveEvent;
  60454. property axis: Cardinal read _Getaxis;
  60455. property value: Double read _Getvalue;
  60456. end;
  60457. { --------------------------------------------------------------------
  60458. TJSGamepadButtonEvent
  60459. --------------------------------------------------------------------}
  60460. IJSGamepadButtonEvent = interface(IJSGamepadEvent)
  60461. ['{B9953856-3E3F-3EB9-B39C-437CA608BC6E}']
  60462. function _Getbutton: Cardinal;
  60463. property button: Cardinal read _Getbutton;
  60464. end;
  60465. TJSGamepadButtonEvent = class(TJSGamepadEvent,IJSGamepadButtonEvent)
  60466. Protected
  60467. function _Getbutton: Cardinal;
  60468. Public
  60469. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSGamepadButtonEventInit); overload;
  60470. constructor Create(const aType_: UnicodeString); overload;
  60471. class function JSClassName: UnicodeString; override;
  60472. class function Cast(const Intf: IJSObject): IJSGamepadButtonEvent;
  60473. property button: Cardinal read _Getbutton;
  60474. end;
  60475. { --------------------------------------------------------------------
  60476. TJSIDBOpenDBRequest
  60477. --------------------------------------------------------------------}
  60478. IJSIDBOpenDBRequest = interface(IJSIDBRequest)
  60479. ['{0DBA1818-2D17-39EC-8DED-D9862F6A48AD}']
  60480. function _Getonblocked: TEventHandler;
  60481. function _Getonupgradeneeded: TEventHandler;
  60482. procedure _Setonblocked(const aValue: TEventHandler);
  60483. procedure _Setonupgradeneeded(const aValue: TEventHandler);
  60484. property onblocked: TEventHandler read _Getonblocked write _Setonblocked;
  60485. property onupgradeneeded: TEventHandler read _Getonupgradeneeded write _Setonupgradeneeded;
  60486. end;
  60487. TJSIDBOpenDBRequest = class(TJSIDBRequest,IJSIDBOpenDBRequest)
  60488. Protected
  60489. function _Getonblocked: TEventHandler;
  60490. function _Getonupgradeneeded: TEventHandler;
  60491. procedure _Setonblocked(const aValue: TEventHandler);
  60492. procedure _Setonupgradeneeded(const aValue: TEventHandler);
  60493. Public
  60494. class function JSClassName: UnicodeString; override;
  60495. class function Cast(const Intf: IJSObject): IJSIDBOpenDBRequest;
  60496. property onblocked: TEventHandler read _Getonblocked write _Setonblocked;
  60497. property onupgradeneeded: TEventHandler read _Getonupgradeneeded write _Setonupgradeneeded;
  60498. end;
  60499. { --------------------------------------------------------------------
  60500. TJSIIRFilterNode
  60501. --------------------------------------------------------------------}
  60502. IJSIIRFilterNode = interface(IJSAudioNode)
  60503. ['{4A1BA371-A164-3CD2-BF69-30477D4F92C9}']
  60504. procedure getFrequencyResponse(aFrequencyHz: IJSFloat32Array; aMagResponse: IJSFloat32Array; aPhaseResponse: IJSFloat32Array);
  60505. end;
  60506. TJSIIRFilterNode = class(TJSAudioNode,IJSIIRFilterNode)
  60507. Protected
  60508. Public
  60509. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSIIRFilterOptions); overload;
  60510. procedure getFrequencyResponse(aFrequencyHz: IJSFloat32Array; aMagResponse: IJSFloat32Array; aPhaseResponse: IJSFloat32Array); overload;
  60511. class function JSClassName: UnicodeString; override;
  60512. class function Cast(const Intf: IJSObject): IJSIIRFilterNode;
  60513. end;
  60514. { --------------------------------------------------------------------
  60515. TJSInputEvent
  60516. --------------------------------------------------------------------}
  60517. IJSInputEvent = interface(IJSUIEvent)
  60518. ['{6279D641-0389-311C-AE46-8A9C8B0B3167}']
  60519. function _GetisComposing: Boolean;
  60520. function _GetinputType: UnicodeString;
  60521. function _Getdata: UnicodeString;
  60522. function _GetdataTransfer: IJSDataTransfer;
  60523. function getTargetRanges: TJSStaticRangeDynArray;
  60524. property isComposing: Boolean read _GetisComposing;
  60525. property inputType: UnicodeString read _GetinputType;
  60526. property data: UnicodeString read _Getdata;
  60527. property dataTransfer: IJSDataTransfer read _GetdataTransfer;
  60528. end;
  60529. TJSInputEvent = class(TJSUIEvent,IJSInputEvent)
  60530. Protected
  60531. function _GetisComposing: Boolean;
  60532. function _GetinputType: UnicodeString;
  60533. function _Getdata: UnicodeString;
  60534. function _GetdataTransfer: IJSDataTransfer;
  60535. Public
  60536. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSInputEventInit); overload;
  60537. constructor Create(const aType_: UnicodeString); overload;
  60538. function getTargetRanges: TJSStaticRangeDynArray; overload;
  60539. class function JSClassName: UnicodeString; override;
  60540. class function Cast(const Intf: IJSObject): IJSInputEvent;
  60541. property isComposing: Boolean read _GetisComposing;
  60542. property inputType: UnicodeString read _GetinputType;
  60543. property data: UnicodeString read _Getdata;
  60544. property dataTransfer: IJSDataTransfer read _GetdataTransfer;
  60545. end;
  60546. { --------------------------------------------------------------------
  60547. TJSKeyboardEvent
  60548. --------------------------------------------------------------------}
  60549. IJSKeyboardEvent = interface(IJSUIEvent)
  60550. ['{16C5A887-84EC-3434-AC5F-722E057F1FF8}']
  60551. function _GetcharCode: Cardinal;
  60552. function _GetkeyCode: Cardinal;
  60553. function _GetaltKey: Boolean;
  60554. function _GetctrlKey: Boolean;
  60555. function _GetshiftKey: Boolean;
  60556. function _GetmetaKey: Boolean;
  60557. function _Getlocation: Cardinal;
  60558. function _Getrepeat_: Boolean;
  60559. function _GetisComposing: Boolean;
  60560. function _Getkey: UnicodeString;
  60561. function _Getcode: UnicodeString;
  60562. function getModifierState(const aKey: UnicodeString): Boolean;
  60563. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean);
  60564. procedure initKeyboardEvent(const aTypeArg: UnicodeString);
  60565. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean);
  60566. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean);
  60567. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow);
  60568. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString);
  60569. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal);
  60570. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean);
  60571. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean; aAltKey: Boolean);
  60572. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean);
  60573. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal; aCharCode: Cardinal);
  60574. procedure initKeyEvent(const aType_: UnicodeString);
  60575. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  60576. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  60577. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow);
  60578. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean);
  60579. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean);
  60580. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean);
  60581. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean);
  60582. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal);
  60583. property charCode: Cardinal read _GetcharCode;
  60584. property keyCode: Cardinal read _GetkeyCode;
  60585. property altKey: Boolean read _GetaltKey;
  60586. property ctrlKey: Boolean read _GetctrlKey;
  60587. property shiftKey: Boolean read _GetshiftKey;
  60588. property metaKey: Boolean read _GetmetaKey;
  60589. property location: Cardinal read _Getlocation;
  60590. property repeat_: Boolean read _Getrepeat_;
  60591. property isComposing: Boolean read _GetisComposing;
  60592. property key: UnicodeString read _Getkey;
  60593. property code: UnicodeString read _Getcode;
  60594. end;
  60595. TJSKeyboardEvent = class(TJSUIEvent,IJSKeyboardEvent)
  60596. Protected
  60597. function _GetcharCode: Cardinal;
  60598. function _GetkeyCode: Cardinal;
  60599. function _GetaltKey: Boolean;
  60600. function _GetctrlKey: Boolean;
  60601. function _GetshiftKey: Boolean;
  60602. function _GetmetaKey: Boolean;
  60603. function _Getlocation: Cardinal;
  60604. function _Getrepeat_: Boolean;
  60605. function _GetisComposing: Boolean;
  60606. function _Getkey: UnicodeString;
  60607. function _Getcode: UnicodeString;
  60608. Public
  60609. Const
  60610. DOM_KEY_LOCATION_STANDARD = $00;
  60611. DOM_KEY_LOCATION_LEFT = $01;
  60612. DOM_KEY_LOCATION_RIGHT = $02;
  60613. DOM_KEY_LOCATION_NUMPAD = $03;
  60614. DOM_VK_CANCEL = $03;
  60615. DOM_VK_HELP = $06;
  60616. DOM_VK_BACK_SPACE = $08;
  60617. DOM_VK_TAB = $09;
  60618. DOM_VK_CLEAR = $0C;
  60619. DOM_VK_RETURN = $0D;
  60620. DOM_VK_SHIFT = $10;
  60621. DOM_VK_CONTROL = $11;
  60622. DOM_VK_ALT = $12;
  60623. DOM_VK_PAUSE = $13;
  60624. DOM_VK_CAPS_LOCK = $14;
  60625. DOM_VK_KANA = $15;
  60626. DOM_VK_HANGUL = $15;
  60627. DOM_VK_EISU = $16;
  60628. DOM_VK_JUNJA = $17;
  60629. DOM_VK_FINAL = $18;
  60630. DOM_VK_HANJA = $19;
  60631. DOM_VK_KANJI = $19;
  60632. DOM_VK_ESCAPE = $1B;
  60633. DOM_VK_CONVERT = $1C;
  60634. DOM_VK_NONCONVERT = $1D;
  60635. DOM_VK_ACCEPT = $1E;
  60636. DOM_VK_MODECHANGE = $1F;
  60637. DOM_VK_SPACE = $20;
  60638. DOM_VK_PAGE_UP = $21;
  60639. DOM_VK_PAGE_DOWN = $22;
  60640. DOM_VK_END = $23;
  60641. DOM_VK_HOME = $24;
  60642. DOM_VK_LEFT = $25;
  60643. DOM_VK_UP = $26;
  60644. DOM_VK_RIGHT = $27;
  60645. DOM_VK_DOWN = $28;
  60646. DOM_VK_SELECT = $29;
  60647. DOM_VK_PRINT = $2A;
  60648. DOM_VK_EXECUTE = $2B;
  60649. DOM_VK_PRINTSCREEN = $2C;
  60650. DOM_VK_INSERT = $2D;
  60651. DOM_VK_DELETE = $2E;
  60652. DOM_VK_0 = $30;
  60653. DOM_VK_1 = $31;
  60654. DOM_VK_2 = $32;
  60655. DOM_VK_3 = $33;
  60656. DOM_VK_4 = $34;
  60657. DOM_VK_5 = $35;
  60658. DOM_VK_6 = $36;
  60659. DOM_VK_7 = $37;
  60660. DOM_VK_8 = $38;
  60661. DOM_VK_9 = $39;
  60662. DOM_VK_COLON = $3A;
  60663. DOM_VK_SEMICOLON = $3B;
  60664. DOM_VK_LESS_THAN = $3C;
  60665. DOM_VK_EQUALS = $3D;
  60666. DOM_VK_GREATER_THAN = $3E;
  60667. DOM_VK_QUESTION_MARK = $3F;
  60668. DOM_VK_AT = $40;
  60669. DOM_VK_A = $41;
  60670. DOM_VK_B = $42;
  60671. DOM_VK_C = $43;
  60672. DOM_VK_D = $44;
  60673. DOM_VK_E = $45;
  60674. DOM_VK_F = $46;
  60675. DOM_VK_G = $47;
  60676. DOM_VK_H = $48;
  60677. DOM_VK_I = $49;
  60678. DOM_VK_J = $4A;
  60679. DOM_VK_K = $4B;
  60680. DOM_VK_L = $4C;
  60681. DOM_VK_M = $4D;
  60682. DOM_VK_N = $4E;
  60683. DOM_VK_O = $4F;
  60684. DOM_VK_P = $50;
  60685. DOM_VK_Q = $51;
  60686. DOM_VK_R = $52;
  60687. DOM_VK_S = $53;
  60688. DOM_VK_T = $54;
  60689. DOM_VK_U = $55;
  60690. DOM_VK_V = $56;
  60691. DOM_VK_W = $57;
  60692. DOM_VK_X = $58;
  60693. DOM_VK_Y = $59;
  60694. DOM_VK_Z = $5A;
  60695. DOM_VK_WIN = $5B;
  60696. DOM_VK_CONTEXT_MENU = $5D;
  60697. DOM_VK_SLEEP = $5F;
  60698. DOM_VK_NUMPAD0 = $60;
  60699. DOM_VK_NUMPAD1 = $61;
  60700. DOM_VK_NUMPAD2 = $62;
  60701. DOM_VK_NUMPAD3 = $63;
  60702. DOM_VK_NUMPAD4 = $64;
  60703. DOM_VK_NUMPAD5 = $65;
  60704. DOM_VK_NUMPAD6 = $66;
  60705. DOM_VK_NUMPAD7 = $67;
  60706. DOM_VK_NUMPAD8 = $68;
  60707. DOM_VK_NUMPAD9 = $69;
  60708. DOM_VK_MULTIPLY = $6A;
  60709. DOM_VK_ADD = $6B;
  60710. DOM_VK_SEPARATOR = $6C;
  60711. DOM_VK_SUBTRACT = $6D;
  60712. DOM_VK_DECIMAL = $6E;
  60713. DOM_VK_DIVIDE = $6F;
  60714. DOM_VK_F1 = $70;
  60715. DOM_VK_F2 = $71;
  60716. DOM_VK_F3 = $72;
  60717. DOM_VK_F4 = $73;
  60718. DOM_VK_F5 = $74;
  60719. DOM_VK_F6 = $75;
  60720. DOM_VK_F7 = $76;
  60721. DOM_VK_F8 = $77;
  60722. DOM_VK_F9 = $78;
  60723. DOM_VK_F10 = $79;
  60724. DOM_VK_F11 = $7A;
  60725. DOM_VK_F12 = $7B;
  60726. DOM_VK_F13 = $7C;
  60727. DOM_VK_F14 = $7D;
  60728. DOM_VK_F15 = $7E;
  60729. DOM_VK_F16 = $7F;
  60730. DOM_VK_F17 = $80;
  60731. DOM_VK_F18 = $81;
  60732. DOM_VK_F19 = $82;
  60733. DOM_VK_F20 = $83;
  60734. DOM_VK_F21 = $84;
  60735. DOM_VK_F22 = $85;
  60736. DOM_VK_F23 = $86;
  60737. DOM_VK_F24 = $87;
  60738. DOM_VK_NUM_LOCK = $90;
  60739. DOM_VK_SCROLL_LOCK = $91;
  60740. DOM_VK_WIN_OEM_FJ_JISHO = $92;
  60741. DOM_VK_WIN_OEM_FJ_MASSHOU = $93;
  60742. DOM_VK_WIN_OEM_FJ_TOUROKU = $94;
  60743. DOM_VK_WIN_OEM_FJ_LOYA = $95;
  60744. DOM_VK_WIN_OEM_FJ_ROYA = $96;
  60745. DOM_VK_CIRCUMFLEX = $A0;
  60746. DOM_VK_EXCLAMATION = $A1;
  60747. DOM_VK_DOUBLE_QUOTE = $A2;
  60748. DOM_VK_HASH = $A3;
  60749. DOM_VK_DOLLAR = $A4;
  60750. DOM_VK_PERCENT = $A5;
  60751. DOM_VK_AMPERSAND = $A6;
  60752. DOM_VK_UNDERSCORE = $A7;
  60753. DOM_VK_OPEN_PAREN = $A8;
  60754. DOM_VK_CLOSE_PAREN = $A9;
  60755. DOM_VK_ASTERISK = $AA;
  60756. DOM_VK_PLUS = $AB;
  60757. DOM_VK_PIPE = $AC;
  60758. DOM_VK_HYPHEN_MINUS = $AD;
  60759. DOM_VK_OPEN_CURLY_BRACKET = $AE;
  60760. DOM_VK_CLOSE_CURLY_BRACKET = $AF;
  60761. DOM_VK_TILDE = $B0;
  60762. DOM_VK_VOLUME_MUTE = $B5;
  60763. DOM_VK_VOLUME_DOWN = $B6;
  60764. DOM_VK_VOLUME_UP = $B7;
  60765. DOM_VK_COMMA = $BC;
  60766. DOM_VK_PERIOD = $BE;
  60767. DOM_VK_SLASH = $BF;
  60768. DOM_VK_BACK_QUOTE = $C0;
  60769. DOM_VK_OPEN_BRACKET = $DB;
  60770. DOM_VK_BACK_SLASH = $DC;
  60771. DOM_VK_CLOSE_BRACKET = $DD;
  60772. DOM_VK_QUOTE = $DE;
  60773. DOM_VK_META = $E0;
  60774. DOM_VK_ALTGR = $E1;
  60775. DOM_VK_WIN_ICO_HELP = $E3;
  60776. DOM_VK_WIN_ICO_00 = $E4;
  60777. DOM_VK_PROCESSKEY = $E5;
  60778. DOM_VK_WIN_ICO_CLEAR = $E6;
  60779. DOM_VK_WIN_OEM_RESET = $E9;
  60780. DOM_VK_WIN_OEM_JUMP = $EA;
  60781. DOM_VK_WIN_OEM_PA1 = $EB;
  60782. DOM_VK_WIN_OEM_PA2 = $EC;
  60783. DOM_VK_WIN_OEM_PA3 = $ED;
  60784. DOM_VK_WIN_OEM_WSCTRL = $EE;
  60785. DOM_VK_WIN_OEM_CUSEL = $EF;
  60786. DOM_VK_WIN_OEM_ATTN = $F0;
  60787. DOM_VK_WIN_OEM_FINISH = $F1;
  60788. DOM_VK_WIN_OEM_COPY = $F2;
  60789. DOM_VK_WIN_OEM_AUTO = $F3;
  60790. DOM_VK_WIN_OEM_ENLW = $F4;
  60791. DOM_VK_WIN_OEM_BACKTAB = $F5;
  60792. DOM_VK_ATTN = $F6;
  60793. DOM_VK_CRSEL = $F7;
  60794. DOM_VK_EXSEL = $F8;
  60795. DOM_VK_EREOF = $F9;
  60796. DOM_VK_PLAY = $FA;
  60797. DOM_VK_ZOOM = $FB;
  60798. DOM_VK_PA1 = $FD;
  60799. DOM_VK_WIN_OEM_CLEAR = $FE;
  60800. Public
  60801. constructor Create(const aTypeArg: UnicodeString; const aKeyboardEventInitDict: TJSKeyboardEventInit); overload;
  60802. constructor Create(const aTypeArg: UnicodeString); overload;
  60803. function getModifierState(const aKey: UnicodeString): Boolean; overload;
  60804. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean); overload;
  60805. procedure initKeyboardEvent(const aTypeArg: UnicodeString); overload;
  60806. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean); overload;
  60807. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean); overload;
  60808. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow); overload;
  60809. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString); overload;
  60810. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal); overload;
  60811. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean); overload;
  60812. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean; aAltKey: Boolean); overload;
  60813. procedure initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean); overload;
  60814. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal; aCharCode: Cardinal); overload;
  60815. procedure initKeyEvent(const aType_: UnicodeString); overload;
  60816. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean); overload;
  60817. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean); overload;
  60818. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow); overload;
  60819. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean); overload;
  60820. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean); overload;
  60821. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean); overload;
  60822. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean); overload;
  60823. procedure initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal); overload;
  60824. class function JSClassName: UnicodeString; override;
  60825. class function Cast(const Intf: IJSObject): IJSKeyboardEvent;
  60826. property charCode: Cardinal read _GetcharCode;
  60827. property keyCode: Cardinal read _GetkeyCode;
  60828. property altKey: Boolean read _GetaltKey;
  60829. property ctrlKey: Boolean read _GetctrlKey;
  60830. property shiftKey: Boolean read _GetshiftKey;
  60831. property metaKey: Boolean read _GetmetaKey;
  60832. property location: Cardinal read _Getlocation;
  60833. property repeat_: Boolean read _Getrepeat_;
  60834. property isComposing: Boolean read _GetisComposing;
  60835. property key: UnicodeString read _Getkey;
  60836. property code: UnicodeString read _Getcode;
  60837. end;
  60838. { --------------------------------------------------------------------
  60839. TJSMediaElementAudioSourceNode
  60840. --------------------------------------------------------------------}
  60841. IJSMediaElementAudioSourceNode = interface(IJSAudioNode)
  60842. ['{AB164B88-8FF0-3E46-910B-6F37AF7D537F}']
  60843. function _GetmediaElement: IJSHTMLMediaElement;
  60844. property mediaElement: IJSHTMLMediaElement read _GetmediaElement;
  60845. end;
  60846. TJSMediaElementAudioSourceNode = class(TJSAudioNode,IJSMediaElementAudioSourceNode)
  60847. Protected
  60848. function _GetmediaElement: IJSHTMLMediaElement;
  60849. Public
  60850. constructor Create(aContext: IJSAudioContext; const aOptions: TJSMediaElementAudioSourceOptions); overload;
  60851. class function JSClassName: UnicodeString; override;
  60852. class function Cast(const Intf: IJSObject): IJSMediaElementAudioSourceNode;
  60853. property mediaElement: IJSHTMLMediaElement read _GetmediaElement;
  60854. end;
  60855. { --------------------------------------------------------------------
  60856. TJSMediaStreamAudioDestinationNode
  60857. --------------------------------------------------------------------}
  60858. IJSMediaStreamAudioDestinationNode = interface(IJSAudioNode)
  60859. ['{19771BE6-56DF-3356-B3C6-050318865F45}']
  60860. function _Getstream: IJSMediaStream;
  60861. property stream: IJSMediaStream read _Getstream;
  60862. end;
  60863. TJSMediaStreamAudioDestinationNode = class(TJSAudioNode,IJSMediaStreamAudioDestinationNode)
  60864. Protected
  60865. function _Getstream: IJSMediaStream;
  60866. Public
  60867. constructor Create(aContext: IJSAudioContext; const aOptions: TJSAudioNodeOptions); overload;
  60868. constructor Create(aContext: IJSAudioContext); overload;
  60869. class function JSClassName: UnicodeString; override;
  60870. class function Cast(const Intf: IJSObject): IJSMediaStreamAudioDestinationNode;
  60871. property stream: IJSMediaStream read _Getstream;
  60872. end;
  60873. { --------------------------------------------------------------------
  60874. TJSMediaStreamAudioSourceNode
  60875. --------------------------------------------------------------------}
  60876. IJSMediaStreamAudioSourceNode = interface(IJSAudioNode)
  60877. ['{0EC2C8AB-7B64-34A5-8028-1E75E72B19B7}']
  60878. function _GetmediaStream: IJSMediaStream;
  60879. property mediaStream: IJSMediaStream read _GetmediaStream;
  60880. end;
  60881. TJSMediaStreamAudioSourceNode = class(TJSAudioNode,IJSMediaStreamAudioSourceNode)
  60882. Protected
  60883. function _GetmediaStream: IJSMediaStream;
  60884. Public
  60885. constructor Create(aContext: IJSAudioContext; const aOptions: TJSMediaStreamAudioSourceOptions); overload;
  60886. class function JSClassName: UnicodeString; override;
  60887. class function Cast(const Intf: IJSObject): IJSMediaStreamAudioSourceNode;
  60888. property mediaStream: IJSMediaStream read _GetmediaStream;
  60889. end;
  60890. { --------------------------------------------------------------------
  60891. TJSMediaStreamTrackAudioSourceNode
  60892. --------------------------------------------------------------------}
  60893. IJSMediaStreamTrackAudioSourceNode = interface(IJSAudioNode)
  60894. ['{81DBE0AD-CDDF-3356-B51C-BC314B12A5A1}']
  60895. end;
  60896. TJSMediaStreamTrackAudioSourceNode = class(TJSAudioNode,IJSMediaStreamTrackAudioSourceNode)
  60897. Protected
  60898. Public
  60899. constructor Create(aContext: IJSAudioContext; const aOptions: TJSMediaStreamTrackAudioSourceOptions); overload;
  60900. class function JSClassName: UnicodeString; override;
  60901. class function Cast(const Intf: IJSObject): IJSMediaStreamTrackAudioSourceNode;
  60902. end;
  60903. { --------------------------------------------------------------------
  60904. TJSMIDIInput
  60905. --------------------------------------------------------------------}
  60906. IJSMIDIInput = interface(IJSMIDIPort)
  60907. ['{A0A4C6EF-9B7F-336B-B7F4-A64594A37566}']
  60908. function _Getonmidimessage: TEventHandler;
  60909. procedure _Setonmidimessage(const aValue: TEventHandler);
  60910. property onmidimessage: TEventHandler read _Getonmidimessage write _Setonmidimessage;
  60911. end;
  60912. TJSMIDIInput = class(TJSMIDIPort,IJSMIDIInput)
  60913. Protected
  60914. function _Getonmidimessage: TEventHandler;
  60915. procedure _Setonmidimessage(const aValue: TEventHandler);
  60916. Public
  60917. class function JSClassName: UnicodeString; override;
  60918. class function Cast(const Intf: IJSObject): IJSMIDIInput;
  60919. property onmidimessage: TEventHandler read _Getonmidimessage write _Setonmidimessage;
  60920. end;
  60921. { --------------------------------------------------------------------
  60922. TJSMIDIOutput
  60923. --------------------------------------------------------------------}
  60924. TByteDynArray = IJSArray; // array of octet
  60925. IJSMIDIOutput = interface(IJSMIDIPort)
  60926. ['{F0F4B1FD-CBAB-3134-B3F3-33B748690C32}']
  60927. procedure send(const aData: TByteDynArray; aTimestamp: TDOMHighResTimeStamp);
  60928. procedure send(const aData: TByteDynArray);
  60929. procedure clear;
  60930. end;
  60931. TJSMIDIOutput = class(TJSMIDIPort,IJSMIDIOutput)
  60932. Protected
  60933. Public
  60934. procedure send(const aData: TByteDynArray; aTimestamp: TDOMHighResTimeStamp); overload;
  60935. procedure send(const aData: TByteDynArray); overload;
  60936. procedure clear; overload;
  60937. class function JSClassName: UnicodeString; override;
  60938. class function Cast(const Intf: IJSObject): IJSMIDIOutput;
  60939. end;
  60940. { --------------------------------------------------------------------
  60941. TJSMouseEvent
  60942. --------------------------------------------------------------------}
  60943. IJSMouseEvent = interface(IJSUIEvent)
  60944. ['{5C2254A3-0C96-357D-9BB5-F0D18B1D1525}']
  60945. function _GetscreenX: LongInt;
  60946. function _GetscreenY: LongInt;
  60947. function _GetpageX: LongInt;
  60948. function _GetpageY: LongInt;
  60949. function _GetclientX: LongInt;
  60950. function _GetclientY: LongInt;
  60951. function _Getx: LongInt;
  60952. function _Gety: LongInt;
  60953. function _GetoffsetX: LongInt;
  60954. function _GetoffsetY: LongInt;
  60955. function _GetctrlKey: Boolean;
  60956. function _GetshiftKey: Boolean;
  60957. function _GetaltKey: Boolean;
  60958. function _GetmetaKey: Boolean;
  60959. function _Getbutton: SmallInt;
  60960. function _Getbuttons: Word;
  60961. function _GetrelatedTarget: IJSEventTarget;
  60962. function _GetmovementX: LongInt;
  60963. function _GetmovementY: LongInt;
  60964. function _GetmozPressure: Single;
  60965. function _GetmozInputSource: Word;
  60966. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget);
  60967. procedure initMouseEvent(const aTypeArg: UnicodeString);
  60968. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean);
  60969. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean);
  60970. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow);
  60971. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt);
  60972. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt);
  60973. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt);
  60974. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt);
  60975. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt);
  60976. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean);
  60977. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean);
  60978. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean);
  60979. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean);
  60980. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt);
  60981. function getModifierState(const aKeyArg: UnicodeString): Boolean;
  60982. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget; aPressure: Single; aInputSourceArg: Word);
  60983. procedure initNSMouseEvent(const aTypeArg: UnicodeString);
  60984. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean);
  60985. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean);
  60986. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow);
  60987. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt);
  60988. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt);
  60989. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt);
  60990. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt);
  60991. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt);
  60992. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean);
  60993. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean);
  60994. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean);
  60995. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean);
  60996. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt);
  60997. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget);
  60998. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget; aPressure: Single);
  60999. property screenX: LongInt read _GetscreenX;
  61000. property screenY: LongInt read _GetscreenY;
  61001. property pageX: LongInt read _GetpageX;
  61002. property pageY: LongInt read _GetpageY;
  61003. property clientX: LongInt read _GetclientX;
  61004. property clientY: LongInt read _GetclientY;
  61005. property x: LongInt read _Getx;
  61006. property y: LongInt read _Gety;
  61007. property offsetX: LongInt read _GetoffsetX;
  61008. property offsetY: LongInt read _GetoffsetY;
  61009. property ctrlKey: Boolean read _GetctrlKey;
  61010. property shiftKey: Boolean read _GetshiftKey;
  61011. property altKey: Boolean read _GetaltKey;
  61012. property metaKey: Boolean read _GetmetaKey;
  61013. property button: SmallInt read _Getbutton;
  61014. property buttons: Word read _Getbuttons;
  61015. property relatedTarget: IJSEventTarget read _GetrelatedTarget;
  61016. property movementX: LongInt read _GetmovementX;
  61017. property movementY: LongInt read _GetmovementY;
  61018. property mozPressure: Single read _GetmozPressure;
  61019. property mozInputSource: Word read _GetmozInputSource;
  61020. end;
  61021. TJSMouseEvent = class(TJSUIEvent,IJSMouseEvent)
  61022. Protected
  61023. function _GetscreenX: LongInt;
  61024. function _GetscreenY: LongInt;
  61025. function _GetpageX: LongInt;
  61026. function _GetpageY: LongInt;
  61027. function _GetclientX: LongInt;
  61028. function _GetclientY: LongInt;
  61029. function _Getx: LongInt;
  61030. function _Gety: LongInt;
  61031. function _GetoffsetX: LongInt;
  61032. function _GetoffsetY: LongInt;
  61033. function _GetctrlKey: Boolean;
  61034. function _GetshiftKey: Boolean;
  61035. function _GetaltKey: Boolean;
  61036. function _GetmetaKey: Boolean;
  61037. function _Getbutton: SmallInt;
  61038. function _Getbuttons: Word;
  61039. function _GetrelatedTarget: IJSEventTarget;
  61040. function _GetmovementX: LongInt;
  61041. function _GetmovementY: LongInt;
  61042. function _GetmozPressure: Single;
  61043. function _GetmozInputSource: Word;
  61044. Public
  61045. Const
  61046. MOZ_SOURCE_UNKNOWN = 0;
  61047. MOZ_SOURCE_MOUSE = 1;
  61048. MOZ_SOURCE_PEN = 2;
  61049. MOZ_SOURCE_ERASER = 3;
  61050. MOZ_SOURCE_CURSOR = 4;
  61051. MOZ_SOURCE_TOUCH = 5;
  61052. MOZ_SOURCE_KEYBOARD = 6;
  61053. Public
  61054. constructor Create(const aTypeArg: UnicodeString; const aMouseEventInitDict: TJSMouseEventInit); overload;
  61055. constructor Create(const aTypeArg: UnicodeString); overload;
  61056. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget); overload;
  61057. procedure initMouseEvent(const aTypeArg: UnicodeString); overload;
  61058. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean); overload;
  61059. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean); overload;
  61060. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow); overload;
  61061. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt); overload;
  61062. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt); overload;
  61063. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt); overload;
  61064. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt); overload;
  61065. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt); overload;
  61066. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean); overload;
  61067. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean); overload;
  61068. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean); overload;
  61069. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean); overload;
  61070. procedure initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt); overload;
  61071. function getModifierState(const aKeyArg: UnicodeString): Boolean; overload;
  61072. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget; aPressure: Single; aInputSourceArg: Word); overload;
  61073. procedure initNSMouseEvent(const aTypeArg: UnicodeString); overload;
  61074. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean); overload;
  61075. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean); overload;
  61076. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow); overload;
  61077. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt); overload;
  61078. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt); overload;
  61079. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt); overload;
  61080. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt); overload;
  61081. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt); overload;
  61082. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean); overload;
  61083. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean); overload;
  61084. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean); overload;
  61085. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean); overload;
  61086. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt); overload;
  61087. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget); overload;
  61088. procedure initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget; aPressure: Single); overload;
  61089. class function JSClassName: UnicodeString; override;
  61090. class function Cast(const Intf: IJSObject): IJSMouseEvent;
  61091. property screenX: LongInt read _GetscreenX;
  61092. property screenY: LongInt read _GetscreenY;
  61093. property pageX: LongInt read _GetpageX;
  61094. property pageY: LongInt read _GetpageY;
  61095. property clientX: LongInt read _GetclientX;
  61096. property clientY: LongInt read _GetclientY;
  61097. property x: LongInt read _Getx;
  61098. property y: LongInt read _Gety;
  61099. property offsetX: LongInt read _GetoffsetX;
  61100. property offsetY: LongInt read _GetoffsetY;
  61101. property ctrlKey: Boolean read _GetctrlKey;
  61102. property shiftKey: Boolean read _GetshiftKey;
  61103. property altKey: Boolean read _GetaltKey;
  61104. property metaKey: Boolean read _GetmetaKey;
  61105. property button: SmallInt read _Getbutton;
  61106. property buttons: Word read _Getbuttons;
  61107. property relatedTarget: IJSEventTarget read _GetrelatedTarget;
  61108. property movementX: LongInt read _GetmovementX;
  61109. property movementY: LongInt read _GetmovementY;
  61110. property mozPressure: Single read _GetmozPressure;
  61111. property mozInputSource: Word read _GetmozInputSource;
  61112. end;
  61113. { --------------------------------------------------------------------
  61114. TJSNotificationEvent
  61115. --------------------------------------------------------------------}
  61116. IJSNotificationEvent = interface(IJSExtendableEvent)
  61117. ['{E9CB3081-BB63-3C0B-9EBD-58B97BA3868C}']
  61118. function _Getnotification: IJSNotification;
  61119. property notification: IJSNotification read _Getnotification;
  61120. end;
  61121. TJSNotificationEvent = class(TJSExtendableEvent,IJSNotificationEvent)
  61122. Protected
  61123. function _Getnotification: IJSNotification;
  61124. Public
  61125. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSNotificationEventInit); overload;
  61126. class function JSClassName: UnicodeString; override;
  61127. class function Cast(const Intf: IJSObject): IJSNotificationEvent;
  61128. property notification: IJSNotification read _Getnotification;
  61129. end;
  61130. { --------------------------------------------------------------------
  61131. TJSOfflineAudioContext
  61132. --------------------------------------------------------------------}
  61133. IJSOfflineAudioContext = interface(IJSBaseAudioContext)
  61134. ['{A41F666D-3343-3DB0-89BB-A7C345B53C74}']
  61135. function _Getlength_: Cardinal;
  61136. function _Getoncomplete: TEventHandler;
  61137. procedure _Setoncomplete(const aValue: TEventHandler);
  61138. function startRendering: IJSPromise; // Promise<AudioBuffer>
  61139. property length_: Cardinal read _Getlength_;
  61140. property oncomplete: TEventHandler read _Getoncomplete write _Setoncomplete;
  61141. end;
  61142. TJSOfflineAudioContext = class(TJSBaseAudioContext,IJSOfflineAudioContext)
  61143. Protected
  61144. function _Getlength_: Cardinal;
  61145. function _Getoncomplete: TEventHandler;
  61146. procedure _Setoncomplete(const aValue: TEventHandler);
  61147. Public
  61148. constructor Create(const aContextOptions: TJSOfflineAudioContextOptions); overload;
  61149. constructor Create(aNumberOfChannels: Cardinal; aLength_: Cardinal; aSampleRate: Single); overload;
  61150. function startRendering: IJSPromise; overload; // Promise<AudioBuffer>
  61151. class function JSClassName: UnicodeString; override;
  61152. class function Cast(const Intf: IJSObject): IJSOfflineAudioContext;
  61153. property length_: Cardinal read _Getlength_;
  61154. property oncomplete: TEventHandler read _Getoncomplete write _Setoncomplete;
  61155. end;
  61156. { --------------------------------------------------------------------
  61157. TJSPannerNode
  61158. --------------------------------------------------------------------}
  61159. IJSPannerNode = interface(IJSAudioNode)
  61160. ['{BA4DE1ED-1AFC-31CD-B96F-8660AFBAF9CE}']
  61161. function _GetpanningModel: TPanningModelType;
  61162. function _GetpositionX: IJSAudioParam;
  61163. function _GetpositionY: IJSAudioParam;
  61164. function _GetpositionZ: IJSAudioParam;
  61165. function _GetorientationX: IJSAudioParam;
  61166. function _GetorientationY: IJSAudioParam;
  61167. function _GetorientationZ: IJSAudioParam;
  61168. function _GetdistanceModel: TDistanceModelType;
  61169. function _GetrefDistance: Double;
  61170. function _GetmaxDistance: Double;
  61171. function _GetrolloffFactor: Double;
  61172. function _GetconeInnerAngle: Double;
  61173. function _GetconeOuterAngle: Double;
  61174. function _GetconeOuterGain: Double;
  61175. procedure _SetpanningModel(const aValue: TPanningModelType);
  61176. procedure _SetdistanceModel(const aValue: TDistanceModelType);
  61177. procedure _SetrefDistance(const aValue: Double);
  61178. procedure _SetmaxDistance(const aValue: Double);
  61179. procedure _SetrolloffFactor(const aValue: Double);
  61180. procedure _SetconeInnerAngle(const aValue: Double);
  61181. procedure _SetconeOuterAngle(const aValue: Double);
  61182. procedure _SetconeOuterGain(const aValue: Double);
  61183. procedure setPosition(aX: Double; aY: Double; aZ: Double);
  61184. procedure setOrientation(aX: Double; aY: Double; aZ: Double);
  61185. property panningModel: TPanningModelType read _GetpanningModel write _SetpanningModel;
  61186. property positionX: IJSAudioParam read _GetpositionX;
  61187. property positionY: IJSAudioParam read _GetpositionY;
  61188. property positionZ: IJSAudioParam read _GetpositionZ;
  61189. property orientationX: IJSAudioParam read _GetorientationX;
  61190. property orientationY: IJSAudioParam read _GetorientationY;
  61191. property orientationZ: IJSAudioParam read _GetorientationZ;
  61192. property distanceModel: TDistanceModelType read _GetdistanceModel write _SetdistanceModel;
  61193. property refDistance: Double read _GetrefDistance write _SetrefDistance;
  61194. property maxDistance: Double read _GetmaxDistance write _SetmaxDistance;
  61195. property rolloffFactor: Double read _GetrolloffFactor write _SetrolloffFactor;
  61196. property coneInnerAngle: Double read _GetconeInnerAngle write _SetconeInnerAngle;
  61197. property coneOuterAngle: Double read _GetconeOuterAngle write _SetconeOuterAngle;
  61198. property coneOuterGain: Double read _GetconeOuterGain write _SetconeOuterGain;
  61199. end;
  61200. TJSPannerNode = class(TJSAudioNode,IJSPannerNode)
  61201. Protected
  61202. function _GetpanningModel: TPanningModelType;
  61203. function _GetpositionX: IJSAudioParam;
  61204. function _GetpositionY: IJSAudioParam;
  61205. function _GetpositionZ: IJSAudioParam;
  61206. function _GetorientationX: IJSAudioParam;
  61207. function _GetorientationY: IJSAudioParam;
  61208. function _GetorientationZ: IJSAudioParam;
  61209. function _GetdistanceModel: TDistanceModelType;
  61210. function _GetrefDistance: Double;
  61211. function _GetmaxDistance: Double;
  61212. function _GetrolloffFactor: Double;
  61213. function _GetconeInnerAngle: Double;
  61214. function _GetconeOuterAngle: Double;
  61215. function _GetconeOuterGain: Double;
  61216. procedure _SetpanningModel(const aValue: TPanningModelType);
  61217. procedure _SetdistanceModel(const aValue: TDistanceModelType);
  61218. procedure _SetrefDistance(const aValue: Double);
  61219. procedure _SetmaxDistance(const aValue: Double);
  61220. procedure _SetrolloffFactor(const aValue: Double);
  61221. procedure _SetconeInnerAngle(const aValue: Double);
  61222. procedure _SetconeOuterAngle(const aValue: Double);
  61223. procedure _SetconeOuterGain(const aValue: Double);
  61224. Public
  61225. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSPannerOptions); overload;
  61226. constructor Create(aContext: IJSBaseAudioContext); overload;
  61227. procedure setPosition(aX: Double; aY: Double; aZ: Double); overload;
  61228. procedure setOrientation(aX: Double; aY: Double; aZ: Double); overload;
  61229. class function JSClassName: UnicodeString; override;
  61230. class function Cast(const Intf: IJSObject): IJSPannerNode;
  61231. property panningModel: TPanningModelType read _GetpanningModel write _SetpanningModel;
  61232. property positionX: IJSAudioParam read _GetpositionX;
  61233. property positionY: IJSAudioParam read _GetpositionY;
  61234. property positionZ: IJSAudioParam read _GetpositionZ;
  61235. property orientationX: IJSAudioParam read _GetorientationX;
  61236. property orientationY: IJSAudioParam read _GetorientationY;
  61237. property orientationZ: IJSAudioParam read _GetorientationZ;
  61238. property distanceModel: TDistanceModelType read _GetdistanceModel write _SetdistanceModel;
  61239. property refDistance: Double read _GetrefDistance write _SetrefDistance;
  61240. property maxDistance: Double read _GetmaxDistance write _SetmaxDistance;
  61241. property rolloffFactor: Double read _GetrolloffFactor write _SetrolloffFactor;
  61242. property coneInnerAngle: Double read _GetconeInnerAngle write _SetconeInnerAngle;
  61243. property coneOuterAngle: Double read _GetconeOuterAngle write _SetconeOuterAngle;
  61244. property coneOuterGain: Double read _GetconeOuterGain write _SetconeOuterGain;
  61245. end;
  61246. { --------------------------------------------------------------------
  61247. TJSPaymentMethodChangeEvent
  61248. --------------------------------------------------------------------}
  61249. IJSPaymentMethodChangeEvent = interface(IJSPaymentRequestUpdateEvent)
  61250. ['{ED48604D-E317-3C1A-99B8-D4160208C02B}']
  61251. function _GetmethodName: UnicodeString;
  61252. function _GetmethodDetails: IJSObject;
  61253. property methodName: UnicodeString read _GetmethodName;
  61254. property methodDetails: IJSObject read _GetmethodDetails;
  61255. end;
  61256. TJSPaymentMethodChangeEvent = class(TJSPaymentRequestUpdateEvent,IJSPaymentMethodChangeEvent)
  61257. Protected
  61258. function _GetmethodName: UnicodeString;
  61259. function _GetmethodDetails: IJSObject;
  61260. Public
  61261. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSPaymentMethodChangeEventInit); overload;
  61262. constructor Create(const aType_: UnicodeString); overload;
  61263. class function JSClassName: UnicodeString; override;
  61264. class function Cast(const Intf: IJSObject): IJSPaymentMethodChangeEvent;
  61265. property methodName: UnicodeString read _GetmethodName;
  61266. property methodDetails: IJSObject read _GetmethodDetails;
  61267. end;
  61268. { --------------------------------------------------------------------
  61269. TJSPerformanceNavigationTiming
  61270. --------------------------------------------------------------------}
  61271. IJSPerformanceNavigationTiming = interface(IJSPerformanceResourceTiming)
  61272. ['{33F6F397-FE93-3120-AD86-B03110857310}']
  61273. function _GetunloadEventStart: TDOMHighResTimeStamp;
  61274. function _GetunloadEventEnd: TDOMHighResTimeStamp;
  61275. function _GetdomInteractive: TDOMHighResTimeStamp;
  61276. function _GetdomContentLoadedEventStart: TDOMHighResTimeStamp;
  61277. function _GetdomContentLoadedEventEnd: TDOMHighResTimeStamp;
  61278. function _GetdomComplete: TDOMHighResTimeStamp;
  61279. function _GetloadEventStart: TDOMHighResTimeStamp;
  61280. function _GetloadEventEnd: TDOMHighResTimeStamp;
  61281. function _Gettype_: TNavigationType;
  61282. function _GetredirectCount: Word;
  61283. function toJSON: IJSObject;
  61284. property unloadEventStart: TDOMHighResTimeStamp read _GetunloadEventStart;
  61285. property unloadEventEnd: TDOMHighResTimeStamp read _GetunloadEventEnd;
  61286. property domInteractive: TDOMHighResTimeStamp read _GetdomInteractive;
  61287. property domContentLoadedEventStart: TDOMHighResTimeStamp read _GetdomContentLoadedEventStart;
  61288. property domContentLoadedEventEnd: TDOMHighResTimeStamp read _GetdomContentLoadedEventEnd;
  61289. property domComplete: TDOMHighResTimeStamp read _GetdomComplete;
  61290. property loadEventStart: TDOMHighResTimeStamp read _GetloadEventStart;
  61291. property loadEventEnd: TDOMHighResTimeStamp read _GetloadEventEnd;
  61292. property type_: TNavigationType read _Gettype_;
  61293. property redirectCount: Word read _GetredirectCount;
  61294. end;
  61295. TJSPerformanceNavigationTiming = class(TJSPerformanceResourceTiming,IJSPerformanceNavigationTiming)
  61296. Protected
  61297. function _GetunloadEventStart: TDOMHighResTimeStamp;
  61298. function _GetunloadEventEnd: TDOMHighResTimeStamp;
  61299. function _GetdomInteractive: TDOMHighResTimeStamp;
  61300. function _GetdomContentLoadedEventStart: TDOMHighResTimeStamp;
  61301. function _GetdomContentLoadedEventEnd: TDOMHighResTimeStamp;
  61302. function _GetdomComplete: TDOMHighResTimeStamp;
  61303. function _GetloadEventStart: TDOMHighResTimeStamp;
  61304. function _GetloadEventEnd: TDOMHighResTimeStamp;
  61305. function _Gettype_: TNavigationType;
  61306. function _GetredirectCount: Word;
  61307. Public
  61308. function toJSON: IJSObject; overload;
  61309. class function JSClassName: UnicodeString; override;
  61310. class function Cast(const Intf: IJSObject): IJSPerformanceNavigationTiming;
  61311. property unloadEventStart: TDOMHighResTimeStamp read _GetunloadEventStart;
  61312. property unloadEventEnd: TDOMHighResTimeStamp read _GetunloadEventEnd;
  61313. property domInteractive: TDOMHighResTimeStamp read _GetdomInteractive;
  61314. property domContentLoadedEventStart: TDOMHighResTimeStamp read _GetdomContentLoadedEventStart;
  61315. property domContentLoadedEventEnd: TDOMHighResTimeStamp read _GetdomContentLoadedEventEnd;
  61316. property domComplete: TDOMHighResTimeStamp read _GetdomComplete;
  61317. property loadEventStart: TDOMHighResTimeStamp read _GetloadEventStart;
  61318. property loadEventEnd: TDOMHighResTimeStamp read _GetloadEventEnd;
  61319. property type_: TNavigationType read _Gettype_;
  61320. property redirectCount: Word read _GetredirectCount;
  61321. end;
  61322. { --------------------------------------------------------------------
  61323. TJSPushEvent
  61324. --------------------------------------------------------------------}
  61325. IJSPushEvent = interface(IJSExtendableEvent)
  61326. ['{6DD6F583-7AD4-36CE-864A-0AD310717D0B}']
  61327. function _Getdata: IJSPushMessageData;
  61328. property data: IJSPushMessageData read _Getdata;
  61329. end;
  61330. TJSPushEvent = class(TJSExtendableEvent,IJSPushEvent)
  61331. Protected
  61332. function _Getdata: IJSPushMessageData;
  61333. Public
  61334. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSPushEventInit); overload;
  61335. constructor Create(const aType_: UnicodeString); overload;
  61336. class function JSClassName: UnicodeString; override;
  61337. class function Cast(const Intf: IJSObject): IJSPushEvent;
  61338. property data: IJSPushMessageData read _Getdata;
  61339. end;
  61340. { --------------------------------------------------------------------
  61341. TJSScriptProcessorNode
  61342. --------------------------------------------------------------------}
  61343. IJSScriptProcessorNode = interface(IJSAudioNode)
  61344. ['{2964F484-BF90-3E4C-997B-85FADD644CD0}']
  61345. function _Getonaudioprocess: TEventHandler;
  61346. function _GetbufferSize: LongInt;
  61347. procedure _Setonaudioprocess(const aValue: TEventHandler);
  61348. property onaudioprocess: TEventHandler read _Getonaudioprocess write _Setonaudioprocess;
  61349. property bufferSize: LongInt read _GetbufferSize;
  61350. end;
  61351. TJSScriptProcessorNode = class(TJSAudioNode,IJSScriptProcessorNode)
  61352. Protected
  61353. function _Getonaudioprocess: TEventHandler;
  61354. function _GetbufferSize: LongInt;
  61355. procedure _Setonaudioprocess(const aValue: TEventHandler);
  61356. Public
  61357. class function JSClassName: UnicodeString; override;
  61358. class function Cast(const Intf: IJSObject): IJSScriptProcessorNode;
  61359. property onaudioprocess: TEventHandler read _Getonaudioprocess write _Setonaudioprocess;
  61360. property bufferSize: LongInt read _GetbufferSize;
  61361. end;
  61362. { --------------------------------------------------------------------
  61363. TJSScrollAreaEvent
  61364. --------------------------------------------------------------------}
  61365. IJSScrollAreaEvent = interface(IJSUIEvent)
  61366. ['{BFB8C893-6A70-3A35-BE41-396B64BC4ADD}']
  61367. function _Getx: Single;
  61368. function _Gety: Single;
  61369. function _Getwidth: Single;
  61370. function _Getheight: Single;
  61371. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single; aY: Single; aWidth: Single; aHeight: Single);
  61372. procedure initScrollAreaEvent(const aType_: UnicodeString);
  61373. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  61374. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  61375. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow);
  61376. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt);
  61377. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single);
  61378. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single; aY: Single);
  61379. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single; aY: Single; aWidth: Single);
  61380. property x: Single read _Getx;
  61381. property y: Single read _Gety;
  61382. property width: Single read _Getwidth;
  61383. property height: Single read _Getheight;
  61384. end;
  61385. TJSScrollAreaEvent = class(TJSUIEvent,IJSScrollAreaEvent)
  61386. Protected
  61387. function _Getx: Single;
  61388. function _Gety: Single;
  61389. function _Getwidth: Single;
  61390. function _Getheight: Single;
  61391. Public
  61392. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single; aY: Single; aWidth: Single; aHeight: Single); overload;
  61393. procedure initScrollAreaEvent(const aType_: UnicodeString); overload;
  61394. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean); overload;
  61395. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean); overload;
  61396. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow); overload;
  61397. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt); overload;
  61398. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single); overload;
  61399. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single; aY: Single); overload;
  61400. procedure initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single; aY: Single; aWidth: Single); overload;
  61401. class function JSClassName: UnicodeString; override;
  61402. class function Cast(const Intf: IJSObject): IJSScrollAreaEvent;
  61403. property x: Single read _Getx;
  61404. property y: Single read _Gety;
  61405. property width: Single read _Getwidth;
  61406. property height: Single read _Getheight;
  61407. end;
  61408. { --------------------------------------------------------------------
  61409. TJSServiceWorkerGlobalScope
  61410. --------------------------------------------------------------------}
  61411. IJSServiceWorkerGlobalScope = interface(IJSWorkerGlobalScope)
  61412. ['{3C8CEC54-C62C-3A9A-8FA5-89873B69A3BD}']
  61413. function _Getclients: IJSClients;
  61414. function _Getregistration: IJSServiceWorkerRegistration;
  61415. function _Getoninstall: TEventHandler;
  61416. function _Getonactivate: TEventHandler;
  61417. function _Getonfetch: TEventHandler;
  61418. function _Getonmessage: TEventHandler;
  61419. function _Getonmessageerror: TEventHandler;
  61420. function _Getonpush: TEventHandler;
  61421. function _Getonpushsubscriptionchange: TEventHandler;
  61422. function _Getonnotificationclick: TEventHandler;
  61423. function _Getonnotificationclose: TEventHandler;
  61424. function _Getbrowser: IJSExtensionBrowser;
  61425. procedure _Setoninstall(const aValue: TEventHandler);
  61426. procedure _Setonactivate(const aValue: TEventHandler);
  61427. procedure _Setonfetch(const aValue: TEventHandler);
  61428. procedure _Setonmessage(const aValue: TEventHandler);
  61429. procedure _Setonmessageerror(const aValue: TEventHandler);
  61430. procedure _Setonpush(const aValue: TEventHandler);
  61431. procedure _Setonpushsubscriptionchange(const aValue: TEventHandler);
  61432. procedure _Setonnotificationclick(const aValue: TEventHandler);
  61433. procedure _Setonnotificationclose(const aValue: TEventHandler);
  61434. function skipWaiting: IJSPromise; // Promise<undefined>
  61435. property clients: IJSClients read _Getclients;
  61436. property registration: IJSServiceWorkerRegistration read _Getregistration;
  61437. property oninstall: TEventHandler read _Getoninstall write _Setoninstall;
  61438. property onactivate: TEventHandler read _Getonactivate write _Setonactivate;
  61439. property onfetch: TEventHandler read _Getonfetch write _Setonfetch;
  61440. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  61441. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  61442. property onpush: TEventHandler read _Getonpush write _Setonpush;
  61443. property onpushsubscriptionchange: TEventHandler read _Getonpushsubscriptionchange write _Setonpushsubscriptionchange;
  61444. property onnotificationclick: TEventHandler read _Getonnotificationclick write _Setonnotificationclick;
  61445. property onnotificationclose: TEventHandler read _Getonnotificationclose write _Setonnotificationclose;
  61446. property browser: IJSExtensionBrowser read _Getbrowser;
  61447. end;
  61448. TJSServiceWorkerGlobalScope = class(TJSWorkerGlobalScope,IJSServiceWorkerGlobalScope)
  61449. Protected
  61450. function _Getclients: IJSClients;
  61451. function _Getregistration: IJSServiceWorkerRegistration;
  61452. function _Getoninstall: TEventHandler;
  61453. function _Getonactivate: TEventHandler;
  61454. function _Getonfetch: TEventHandler;
  61455. function _Getonmessage: TEventHandler;
  61456. function _Getonmessageerror: TEventHandler;
  61457. function _Getonpush: TEventHandler;
  61458. function _Getonpushsubscriptionchange: TEventHandler;
  61459. function _Getonnotificationclick: TEventHandler;
  61460. function _Getonnotificationclose: TEventHandler;
  61461. function _Getbrowser: IJSExtensionBrowser;
  61462. procedure _Setoninstall(const aValue: TEventHandler);
  61463. procedure _Setonactivate(const aValue: TEventHandler);
  61464. procedure _Setonfetch(const aValue: TEventHandler);
  61465. procedure _Setonmessage(const aValue: TEventHandler);
  61466. procedure _Setonmessageerror(const aValue: TEventHandler);
  61467. procedure _Setonpush(const aValue: TEventHandler);
  61468. procedure _Setonpushsubscriptionchange(const aValue: TEventHandler);
  61469. procedure _Setonnotificationclick(const aValue: TEventHandler);
  61470. procedure _Setonnotificationclose(const aValue: TEventHandler);
  61471. Public
  61472. function skipWaiting: IJSPromise; overload; // Promise<undefined>
  61473. class function JSClassName: UnicodeString; override;
  61474. class function Cast(const Intf: IJSObject): IJSServiceWorkerGlobalScope;
  61475. property clients: IJSClients read _Getclients;
  61476. property registration: IJSServiceWorkerRegistration read _Getregistration;
  61477. property oninstall: TEventHandler read _Getoninstall write _Setoninstall;
  61478. property onactivate: TEventHandler read _Getonactivate write _Setonactivate;
  61479. property onfetch: TEventHandler read _Getonfetch write _Setonfetch;
  61480. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  61481. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  61482. property onpush: TEventHandler read _Getonpush write _Setonpush;
  61483. property onpushsubscriptionchange: TEventHandler read _Getonpushsubscriptionchange write _Setonpushsubscriptionchange;
  61484. property onnotificationclick: TEventHandler read _Getonnotificationclick write _Setonnotificationclick;
  61485. property onnotificationclose: TEventHandler read _Getonnotificationclose write _Setonnotificationclose;
  61486. property browser: IJSExtensionBrowser read _Getbrowser;
  61487. end;
  61488. { --------------------------------------------------------------------
  61489. TJSSharedWorkerGlobalScope
  61490. --------------------------------------------------------------------}
  61491. IJSSharedWorkerGlobalScope = interface(IJSWorkerGlobalScope)
  61492. ['{707E6379-DDC7-30C3-8DD6-0A6A90E10C14}']
  61493. function _Getname: UnicodeString;
  61494. function _Getonconnect: TEventHandler;
  61495. procedure _Setonconnect(const aValue: TEventHandler);
  61496. procedure close;
  61497. property name: UnicodeString read _Getname;
  61498. property onconnect: TEventHandler read _Getonconnect write _Setonconnect;
  61499. end;
  61500. TJSSharedWorkerGlobalScope = class(TJSWorkerGlobalScope,IJSSharedWorkerGlobalScope)
  61501. Protected
  61502. function _Getname: UnicodeString;
  61503. function _Getonconnect: TEventHandler;
  61504. procedure _Setonconnect(const aValue: TEventHandler);
  61505. Public
  61506. procedure close; overload;
  61507. class function JSClassName: UnicodeString; override;
  61508. class function Cast(const Intf: IJSObject): IJSSharedWorkerGlobalScope;
  61509. property name: UnicodeString read _Getname;
  61510. property onconnect: TEventHandler read _Getonconnect write _Setonconnect;
  61511. end;
  61512. { --------------------------------------------------------------------
  61513. TJSSpeechSynthesisErrorEvent
  61514. --------------------------------------------------------------------}
  61515. IJSSpeechSynthesisErrorEvent = interface(IJSSpeechSynthesisEvent)
  61516. ['{5DABA92A-6D09-3024-AFEC-E0C42B56E979}']
  61517. function _Geterror: TSpeechSynthesisErrorCode;
  61518. property error: TSpeechSynthesisErrorCode read _Geterror;
  61519. end;
  61520. TJSSpeechSynthesisErrorEvent = class(TJSSpeechSynthesisEvent,IJSSpeechSynthesisErrorEvent)
  61521. Protected
  61522. function _Geterror: TSpeechSynthesisErrorCode;
  61523. Public
  61524. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSSpeechSynthesisErrorEventInit); overload;
  61525. class function JSClassName: UnicodeString; override;
  61526. class function Cast(const Intf: IJSObject): IJSSpeechSynthesisErrorEvent;
  61527. property error: TSpeechSynthesisErrorCode read _Geterror;
  61528. end;
  61529. { --------------------------------------------------------------------
  61530. TJSStereoPannerNode
  61531. --------------------------------------------------------------------}
  61532. IJSStereoPannerNode = interface(IJSAudioNode)
  61533. ['{AAA997FB-20CE-34D5-A400-69863B87857C}']
  61534. function _Getpan: IJSAudioParam;
  61535. property pan: IJSAudioParam read _Getpan;
  61536. end;
  61537. TJSStereoPannerNode = class(TJSAudioNode,IJSStereoPannerNode)
  61538. Protected
  61539. function _Getpan: IJSAudioParam;
  61540. Public
  61541. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSStereoPannerOptions); overload;
  61542. constructor Create(aContext: IJSBaseAudioContext); overload;
  61543. class function JSClassName: UnicodeString; override;
  61544. class function Cast(const Intf: IJSObject): IJSStereoPannerNode;
  61545. property pan: IJSAudioParam read _Getpan;
  61546. end;
  61547. { --------------------------------------------------------------------
  61548. TJSTouchEvent
  61549. --------------------------------------------------------------------}
  61550. IJSTouchEvent = interface(IJSUIEvent)
  61551. ['{75A7D314-62C5-3796-B79D-BB2B7D166E40}']
  61552. function _Gettouches: IJSTouchList;
  61553. function _GettargetTouches: IJSTouchList;
  61554. function _GetchangedTouches: IJSTouchList;
  61555. function _GetaltKey: Boolean;
  61556. function _GetmetaKey: Boolean;
  61557. function _GetctrlKey: Boolean;
  61558. function _GetshiftKey: Boolean;
  61559. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aTouches: IJSTouchList; aTargetTouches: IJSTouchList; aChangedTouches: IJSTouchList);
  61560. procedure initTouchEvent(const aType_: UnicodeString);
  61561. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  61562. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  61563. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow);
  61564. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt);
  61565. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean);
  61566. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean);
  61567. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean);
  61568. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean);
  61569. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aTouches: IJSTouchList);
  61570. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aTouches: IJSTouchList; aTargetTouches: IJSTouchList);
  61571. property touches: IJSTouchList read _Gettouches;
  61572. property targetTouches: IJSTouchList read _GettargetTouches;
  61573. property changedTouches: IJSTouchList read _GetchangedTouches;
  61574. property altKey: Boolean read _GetaltKey;
  61575. property metaKey: Boolean read _GetmetaKey;
  61576. property ctrlKey: Boolean read _GetctrlKey;
  61577. property shiftKey: Boolean read _GetshiftKey;
  61578. end;
  61579. TJSTouchEvent = class(TJSUIEvent,IJSTouchEvent)
  61580. Protected
  61581. function _Gettouches: IJSTouchList;
  61582. function _GettargetTouches: IJSTouchList;
  61583. function _GetchangedTouches: IJSTouchList;
  61584. function _GetaltKey: Boolean;
  61585. function _GetmetaKey: Boolean;
  61586. function _GetctrlKey: Boolean;
  61587. function _GetshiftKey: Boolean;
  61588. Public
  61589. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSTouchEventInit); overload;
  61590. constructor Create(const aType_: UnicodeString); overload;
  61591. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aTouches: IJSTouchList; aTargetTouches: IJSTouchList; aChangedTouches: IJSTouchList); overload;
  61592. procedure initTouchEvent(const aType_: UnicodeString); overload;
  61593. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean); overload;
  61594. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean); overload;
  61595. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow); overload;
  61596. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt); overload;
  61597. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean); overload;
  61598. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean); overload;
  61599. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean); overload;
  61600. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean); overload;
  61601. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aTouches: IJSTouchList); overload;
  61602. procedure initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aTouches: IJSTouchList; aTargetTouches: IJSTouchList); overload;
  61603. class function JSClassName: UnicodeString; override;
  61604. class function Cast(const Intf: IJSObject): IJSTouchEvent;
  61605. property touches: IJSTouchList read _Gettouches;
  61606. property targetTouches: IJSTouchList read _GettargetTouches;
  61607. property changedTouches: IJSTouchList read _GetchangedTouches;
  61608. property altKey: Boolean read _GetaltKey;
  61609. property metaKey: Boolean read _GetmetaKey;
  61610. property ctrlKey: Boolean read _GetctrlKey;
  61611. property shiftKey: Boolean read _GetshiftKey;
  61612. end;
  61613. { --------------------------------------------------------------------
  61614. TJSVTTCue
  61615. --------------------------------------------------------------------}
  61616. // Union of double, AutoKeyword
  61617. TVTTCue_line_Type = Variant;
  61618. // Union of double, AutoKeyword
  61619. TVTTCue_position_Type = Variant;
  61620. IJSVTTCue = interface(IJSTextTrackCue)
  61621. ['{D3666E9A-3307-32C0-8003-1A3BE7F5B82B}']
  61622. function _Getregion: IJSVTTRegion;
  61623. function _Getvertical: TDirectionSetting;
  61624. function _GetsnapToLines: Boolean;
  61625. function _Getline: TVTTCue_line_Type;
  61626. function _GetlineAlign: TLineAlignSetting;
  61627. function _Getposition: TVTTCue_position_Type;
  61628. function _GetpositionAlign: TPositionAlignSetting;
  61629. function _Getsize: Double;
  61630. function _Getalign: TAlignSetting;
  61631. function _Gettext: UnicodeString;
  61632. procedure _Setregion(const aValue: IJSVTTRegion);
  61633. procedure _Setvertical(const aValue: TDirectionSetting);
  61634. procedure _SetsnapToLines(const aValue: Boolean);
  61635. procedure _Setline(const aValue: TVTTCue_line_Type);
  61636. procedure _SetlineAlign(const aValue: TLineAlignSetting);
  61637. procedure _Setposition(const aValue: TVTTCue_position_Type);
  61638. procedure _SetpositionAlign(const aValue: TPositionAlignSetting);
  61639. procedure _Setsize(const aValue: Double);
  61640. procedure _Setalign(const aValue: TAlignSetting);
  61641. procedure _Settext(const aValue: UnicodeString);
  61642. function getCueAsHTML: IJSDocumentFragment;
  61643. property region: IJSVTTRegion read _Getregion write _Setregion;
  61644. property vertical: TDirectionSetting read _Getvertical write _Setvertical;
  61645. property snapToLines: Boolean read _GetsnapToLines write _SetsnapToLines;
  61646. property line: TVTTCue_line_Type read _Getline write _Setline;
  61647. property lineAlign: TLineAlignSetting read _GetlineAlign write _SetlineAlign;
  61648. property position: TVTTCue_position_Type read _Getposition write _Setposition;
  61649. property positionAlign: TPositionAlignSetting read _GetpositionAlign write _SetpositionAlign;
  61650. property size: Double read _Getsize write _Setsize;
  61651. property align: TAlignSetting read _Getalign write _Setalign;
  61652. property text: UnicodeString read _Gettext write _Settext;
  61653. end;
  61654. TJSVTTCue = class(TJSTextTrackCue,IJSVTTCue)
  61655. Protected
  61656. function _Getregion: IJSVTTRegion;
  61657. function _Getvertical: TDirectionSetting;
  61658. function _GetsnapToLines: Boolean;
  61659. function _Getline: TVTTCue_line_Type;
  61660. function _GetlineAlign: TLineAlignSetting;
  61661. function _Getposition: TVTTCue_position_Type;
  61662. function _GetpositionAlign: TPositionAlignSetting;
  61663. function _Getsize: Double;
  61664. function _Getalign: TAlignSetting;
  61665. function _Gettext: UnicodeString;
  61666. procedure _Setregion(const aValue: IJSVTTRegion);
  61667. procedure _Setvertical(const aValue: TDirectionSetting);
  61668. procedure _SetsnapToLines(const aValue: Boolean);
  61669. procedure _Setline(const aValue: TVTTCue_line_Type);
  61670. procedure _SetlineAlign(const aValue: TLineAlignSetting);
  61671. procedure _Setposition(const aValue: TVTTCue_position_Type);
  61672. procedure _SetpositionAlign(const aValue: TPositionAlignSetting);
  61673. procedure _Setsize(const aValue: Double);
  61674. procedure _Setalign(const aValue: TAlignSetting);
  61675. procedure _Settext(const aValue: UnicodeString);
  61676. Public
  61677. constructor Create(aStartTime: Double; aEndTime: Double; const aText: UnicodeString); overload;
  61678. function getCueAsHTML: IJSDocumentFragment; overload;
  61679. class function JSClassName: UnicodeString; override;
  61680. class function Cast(const Intf: IJSObject): IJSVTTCue;
  61681. property region: IJSVTTRegion read _Getregion write _Setregion;
  61682. property vertical: TDirectionSetting read _Getvertical write _Setvertical;
  61683. property snapToLines: Boolean read _GetsnapToLines write _SetsnapToLines;
  61684. property line: TVTTCue_line_Type read _Getline write _Setline;
  61685. property lineAlign: TLineAlignSetting read _GetlineAlign write _SetlineAlign;
  61686. property position: TVTTCue_position_Type read _Getposition write _Setposition;
  61687. property positionAlign: TPositionAlignSetting read _GetpositionAlign write _SetpositionAlign;
  61688. property size: Double read _Getsize write _Setsize;
  61689. property align: TAlignSetting read _Getalign write _Setalign;
  61690. property text: UnicodeString read _Gettext write _Settext;
  61691. end;
  61692. { --------------------------------------------------------------------
  61693. TJSWaveShaperNode
  61694. --------------------------------------------------------------------}
  61695. IJSWaveShaperNode = interface(IJSAudioNode)
  61696. ['{DA3371C3-4124-3A58-B6E1-FA1894778863}']
  61697. function _Getcurve: IJSFloat32Array;
  61698. function _Getoversample: TOverSampleType;
  61699. procedure _Setcurve(const aValue: IJSFloat32Array);
  61700. procedure _Setoversample(const aValue: TOverSampleType);
  61701. property curve: IJSFloat32Array read _Getcurve write _Setcurve;
  61702. property oversample: TOverSampleType read _Getoversample write _Setoversample;
  61703. end;
  61704. TJSWaveShaperNode = class(TJSAudioNode,IJSWaveShaperNode)
  61705. Protected
  61706. function _Getcurve: IJSFloat32Array;
  61707. function _Getoversample: TOverSampleType;
  61708. procedure _Setcurve(const aValue: IJSFloat32Array);
  61709. procedure _Setoversample(const aValue: TOverSampleType);
  61710. Public
  61711. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSWaveShaperOptions); overload;
  61712. constructor Create(aContext: IJSBaseAudioContext); overload;
  61713. class function JSClassName: UnicodeString; override;
  61714. class function Cast(const Intf: IJSObject): IJSWaveShaperNode;
  61715. property curve: IJSFloat32Array read _Getcurve write _Setcurve;
  61716. property oversample: TOverSampleType read _Getoversample write _Setoversample;
  61717. end;
  61718. { --------------------------------------------------------------------
  61719. TJSTaskSignal
  61720. --------------------------------------------------------------------}
  61721. IJSTaskSignal = interface(IJSAbortSignal)
  61722. ['{C2A138C0-3706-3CFC-B0A6-B85169C90253}']
  61723. function _Getpriority: TTaskPriority;
  61724. function _Getonprioritychange: TEventHandler;
  61725. procedure _Setonprioritychange(const aValue: TEventHandler);
  61726. property priority: TTaskPriority read _Getpriority;
  61727. property onprioritychange: TEventHandler read _Getonprioritychange write _Setonprioritychange;
  61728. end;
  61729. TJSTaskSignal = class(TJSAbortSignal,IJSTaskSignal)
  61730. Protected
  61731. function _Getpriority: TTaskPriority;
  61732. function _Getonprioritychange: TEventHandler;
  61733. procedure _Setonprioritychange(const aValue: TEventHandler);
  61734. Public
  61735. class function JSClassName: UnicodeString; override;
  61736. class function Cast(const Intf: IJSObject): IJSTaskSignal;
  61737. property priority: TTaskPriority read _Getpriority;
  61738. property onprioritychange: TEventHandler read _Getonprioritychange write _Setonprioritychange;
  61739. end;
  61740. { --------------------------------------------------------------------
  61741. TJSWebTransportError
  61742. --------------------------------------------------------------------}
  61743. IJSWebTransportError = interface(IJSDOMException)
  61744. ['{4B2BE296-D19D-366A-A97B-DA28F297C0B8}']
  61745. function _Getsource: TWebTransportErrorSource;
  61746. function _GetstreamErrorCode: Byte;
  61747. property source: TWebTransportErrorSource read _Getsource;
  61748. property streamErrorCode: Byte read _GetstreamErrorCode;
  61749. end;
  61750. TJSWebTransportError = class(TJSDOMException,IJSWebTransportError)
  61751. Protected
  61752. function _Getsource: TWebTransportErrorSource;
  61753. function _GetstreamErrorCode: Byte;
  61754. Public
  61755. constructor Create(const aInit: TJSWebTransportErrorInit); overload;
  61756. constructor Create; overload;
  61757. class function JSClassName: UnicodeString; override;
  61758. class function Cast(const Intf: IJSObject): IJSWebTransportError;
  61759. property source: TWebTransportErrorSource read _Getsource;
  61760. property streamErrorCode: Byte read _GetstreamErrorCode;
  61761. end;
  61762. { --------------------------------------------------------------------
  61763. TJSXRReferenceSpace
  61764. --------------------------------------------------------------------}
  61765. IJSXRReferenceSpace = interface(IJSXRSpace)
  61766. ['{093CF3FB-D194-37EE-970E-1B2CF865B169}']
  61767. function _Getonreset: TEventHandler;
  61768. procedure _Setonreset(const aValue: TEventHandler);
  61769. function getOffsetReferenceSpace(aOriginOffset: IJSXRRigidTransform): IJSXRReferenceSpace;
  61770. property onreset: TEventHandler read _Getonreset write _Setonreset;
  61771. end;
  61772. TJSXRReferenceSpace = class(TJSXRSpace,IJSXRReferenceSpace)
  61773. Protected
  61774. function _Getonreset: TEventHandler;
  61775. procedure _Setonreset(const aValue: TEventHandler);
  61776. Public
  61777. function getOffsetReferenceSpace(aOriginOffset: IJSXRRigidTransform): IJSXRReferenceSpace; overload;
  61778. class function JSClassName: UnicodeString; override;
  61779. class function Cast(const Intf: IJSObject): IJSXRReferenceSpace;
  61780. property onreset: TEventHandler read _Getonreset write _Setonreset;
  61781. end;
  61782. { --------------------------------------------------------------------
  61783. TJSChromeWorker
  61784. --------------------------------------------------------------------}
  61785. IJSChromeWorker = interface(IJSWorker)
  61786. ['{E6CE178C-E199-3EFE-8EEA-1ED81AA2A621}']
  61787. end;
  61788. TJSChromeWorker = class(TJSWorker,IJSChromeWorker)
  61789. Protected
  61790. Public
  61791. constructor Create(const aScriptURL: UnicodeString; const aOptions: TJSWorkerOptions); overload;
  61792. constructor Create(const aScriptURL: UnicodeString); overload;
  61793. class function JSClassName: UnicodeString; override;
  61794. class function Cast(const Intf: IJSObject): IJSChromeWorker;
  61795. end;
  61796. { --------------------------------------------------------------------
  61797. TJSXMLHttpRequest
  61798. --------------------------------------------------------------------}
  61799. // Union of Document, XMLHttpRequestBodyInit
  61800. TXMLHttpRequest_send_body_Type = Variant;
  61801. IJSXMLHttpRequest = interface(IJSXMLHttpRequestEventTarget)
  61802. ['{EEA3FB69-E5CF-3082-A97E-949C15D3BC06}']
  61803. function _Getonreadystatechange: TEventHandler;
  61804. function _GetreadyState: Word;
  61805. function _Gettimeout: Cardinal;
  61806. function _GetwithCredentials: Boolean;
  61807. function _Getupload: IJSXMLHttpRequestUpload;
  61808. function _GetresponseURL: UnicodeString;
  61809. function _Getstatus: Word;
  61810. function _GetstatusText: UnicodeString;
  61811. function _GetresponseType: TXMLHttpRequestResponseType;
  61812. function _Getresponse: Variant;
  61813. function _GetresponseText: UnicodeString;
  61814. function _GetresponseXML: IJSDocument;
  61815. function _GetmozAnon: Boolean;
  61816. function _GetmozSystem: Boolean;
  61817. procedure _Setonreadystatechange(const aValue: TEventHandler);
  61818. procedure _Settimeout(const aValue: Cardinal);
  61819. procedure _SetwithCredentials(const aValue: Boolean);
  61820. procedure _SetresponseType(const aValue: TXMLHttpRequestResponseType);
  61821. procedure open(const aMethod: UnicodeString; const aUrl: UnicodeString);
  61822. procedure open(const aMethod: UnicodeString; const aUrl: UnicodeString; aAsync: Boolean; const aUser: UnicodeString; const aPassword: UnicodeString);
  61823. procedure open(const aMethod: UnicodeString; const aUrl: UnicodeString; aAsync: Boolean);
  61824. procedure open(const aMethod: UnicodeString; const aUrl: UnicodeString; aAsync: Boolean; const aUser: UnicodeString);
  61825. procedure setRequestHeader(const aHeader: UnicodeString; const aValue: UnicodeString);
  61826. procedure send(aBody: IJSDocument);
  61827. procedure send;
  61828. procedure send(const aBody: TXMLHttpRequestBodyInit);
  61829. procedure abort;
  61830. function getResponseHeader(const aHeader: UnicodeString): UnicodeString;
  61831. function getAllResponseHeaders: UnicodeString;
  61832. procedure overrideMimeType(const aMime: UnicodeString);
  61833. property onreadystatechange: TEventHandler read _Getonreadystatechange write _Setonreadystatechange;
  61834. property readyState: Word read _GetreadyState;
  61835. property timeout: Cardinal read _Gettimeout write _Settimeout;
  61836. property withCredentials: Boolean read _GetwithCredentials write _SetwithCredentials;
  61837. property upload: IJSXMLHttpRequestUpload read _Getupload;
  61838. property responseURL: UnicodeString read _GetresponseURL;
  61839. property status: Word read _Getstatus;
  61840. property statusText: UnicodeString read _GetstatusText;
  61841. property responseType: TXMLHttpRequestResponseType read _GetresponseType write _SetresponseType;
  61842. property response: Variant read _Getresponse;
  61843. property responseText: UnicodeString read _GetresponseText;
  61844. property responseXML: IJSDocument read _GetresponseXML;
  61845. property mozAnon: Boolean read _GetmozAnon;
  61846. property mozSystem: Boolean read _GetmozSystem;
  61847. end;
  61848. TJSXMLHttpRequest = class(TJSXMLHttpRequestEventTarget,IJSXMLHttpRequest)
  61849. Protected
  61850. function _Getonreadystatechange: TEventHandler;
  61851. function _GetreadyState: Word;
  61852. function _Gettimeout: Cardinal;
  61853. function _GetwithCredentials: Boolean;
  61854. function _Getupload: IJSXMLHttpRequestUpload;
  61855. function _GetresponseURL: UnicodeString;
  61856. function _Getstatus: Word;
  61857. function _GetstatusText: UnicodeString;
  61858. function _GetresponseType: TXMLHttpRequestResponseType;
  61859. function _Getresponse: Variant;
  61860. function _GetresponseText: UnicodeString;
  61861. function _GetresponseXML: IJSDocument;
  61862. function _GetmozAnon: Boolean;
  61863. function _GetmozSystem: Boolean;
  61864. procedure _Setonreadystatechange(const aValue: TEventHandler);
  61865. procedure _Settimeout(const aValue: Cardinal);
  61866. procedure _SetwithCredentials(const aValue: Boolean);
  61867. procedure _SetresponseType(const aValue: TXMLHttpRequestResponseType);
  61868. Public
  61869. Const
  61870. UNSENT = 0;
  61871. OPENED = 1;
  61872. HEADERS_RECEIVED = 2;
  61873. LOADING = 3;
  61874. DONE = 4;
  61875. Public
  61876. constructor Create(const aParams: TJSMozXMLHttpRequestParameters); overload;
  61877. constructor Create; overload;
  61878. constructor Create(const aIgnored: UnicodeString); overload;
  61879. procedure open(const aMethod: UnicodeString; const aUrl: UnicodeString); overload;
  61880. procedure open(const aMethod: UnicodeString; const aUrl: UnicodeString; aAsync: Boolean; const aUser: UnicodeString; const aPassword: UnicodeString); overload;
  61881. procedure open(const aMethod: UnicodeString; const aUrl: UnicodeString; aAsync: Boolean); overload;
  61882. procedure open(const aMethod: UnicodeString; const aUrl: UnicodeString; aAsync: Boolean; const aUser: UnicodeString); overload;
  61883. procedure setRequestHeader(const aHeader: UnicodeString; const aValue: UnicodeString); overload;
  61884. procedure send(aBody: IJSDocument); overload;
  61885. procedure send; overload;
  61886. procedure send(const aBody: TXMLHttpRequestBodyInit); overload;
  61887. procedure abort; overload;
  61888. function getResponseHeader(const aHeader: UnicodeString): UnicodeString; overload;
  61889. function getAllResponseHeaders: UnicodeString; overload;
  61890. procedure overrideMimeType(const aMime: UnicodeString); overload;
  61891. class function JSClassName: UnicodeString; override;
  61892. class function Cast(const Intf: IJSObject): IJSXMLHttpRequest;
  61893. property onreadystatechange: TEventHandler read _Getonreadystatechange write _Setonreadystatechange;
  61894. property readyState: Word read _GetreadyState;
  61895. property timeout: Cardinal read _Gettimeout write _Settimeout;
  61896. property withCredentials: Boolean read _GetwithCredentials write _SetwithCredentials;
  61897. property upload: IJSXMLHttpRequestUpload read _Getupload;
  61898. property responseURL: UnicodeString read _GetresponseURL;
  61899. property status: Word read _Getstatus;
  61900. property statusText: UnicodeString read _GetstatusText;
  61901. property responseType: TXMLHttpRequestResponseType read _GetresponseType write _SetresponseType;
  61902. property response: Variant read _Getresponse;
  61903. property responseText: UnicodeString read _GetresponseText;
  61904. property responseXML: IJSDocument read _GetresponseXML;
  61905. property mozAnon: Boolean read _GetmozAnon;
  61906. property mozSystem: Boolean read _GetmozSystem;
  61907. end;
  61908. { --------------------------------------------------------------------
  61909. TJSXMLHttpRequestUpload
  61910. --------------------------------------------------------------------}
  61911. IJSXMLHttpRequestUpload = interface(IJSXMLHttpRequestEventTarget)
  61912. ['{9D686DEC-4392-374E-AB8E-4CA0C1B54601}']
  61913. end;
  61914. TJSXMLHttpRequestUpload = class(TJSXMLHttpRequestEventTarget,IJSXMLHttpRequestUpload)
  61915. Protected
  61916. Public
  61917. class function JSClassName: UnicodeString; override;
  61918. class function Cast(const Intf: IJSObject): IJSXMLHttpRequestUpload;
  61919. end;
  61920. { --------------------------------------------------------------------
  61921. TJSAudioBufferSourceNode
  61922. --------------------------------------------------------------------}
  61923. IJSAudioBufferSourceNode = interface(IJSAudioScheduledSourceNode)
  61924. ['{AAB3C3D5-3006-358A-B82F-3DFD0EC30D2D}']
  61925. function _Getbuffer: IJSAudioBuffer;
  61926. function _GetplaybackRate: IJSAudioParam;
  61927. function _Getdetune: IJSAudioParam;
  61928. function _Getloop: Boolean;
  61929. function _GetloopStart: Double;
  61930. function _GetloopEnd: Double;
  61931. procedure _Setbuffer(const aValue: IJSAudioBuffer);
  61932. procedure _Setloop(const aValue: Boolean);
  61933. procedure _SetloopStart(const aValue: Double);
  61934. procedure _SetloopEnd(const aValue: Double);
  61935. procedure start(aWhen: Double; aGrainOffset: Double; aGrainDuration: Double);
  61936. procedure start;
  61937. procedure start(aWhen: Double);
  61938. procedure start(aWhen: Double; aGrainOffset: Double);
  61939. property buffer: IJSAudioBuffer read _Getbuffer write _Setbuffer;
  61940. property playbackRate: IJSAudioParam read _GetplaybackRate;
  61941. property detune: IJSAudioParam read _Getdetune;
  61942. property loop: Boolean read _Getloop write _Setloop;
  61943. property loopStart: Double read _GetloopStart write _SetloopStart;
  61944. property loopEnd: Double read _GetloopEnd write _SetloopEnd;
  61945. end;
  61946. TJSAudioBufferSourceNode = class(TJSAudioScheduledSourceNode,IJSAudioBufferSourceNode)
  61947. Protected
  61948. function _Getbuffer: IJSAudioBuffer;
  61949. function _GetplaybackRate: IJSAudioParam;
  61950. function _Getdetune: IJSAudioParam;
  61951. function _Getloop: Boolean;
  61952. function _GetloopStart: Double;
  61953. function _GetloopEnd: Double;
  61954. procedure _Setbuffer(const aValue: IJSAudioBuffer);
  61955. procedure _Setloop(const aValue: Boolean);
  61956. procedure _SetloopStart(const aValue: Double);
  61957. procedure _SetloopEnd(const aValue: Double);
  61958. Public
  61959. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSAudioBufferSourceOptions); overload;
  61960. constructor Create(aContext: IJSBaseAudioContext); overload;
  61961. procedure start(aWhen: Double; aGrainOffset: Double; aGrainDuration: Double); overload;
  61962. procedure start; overload;
  61963. procedure start(aWhen: Double); overload;
  61964. procedure start(aWhen: Double; aGrainOffset: Double); overload;
  61965. class function JSClassName: UnicodeString; override;
  61966. class function Cast(const Intf: IJSObject): IJSAudioBufferSourceNode;
  61967. property buffer: IJSAudioBuffer read _Getbuffer write _Setbuffer;
  61968. property playbackRate: IJSAudioParam read _GetplaybackRate;
  61969. property detune: IJSAudioParam read _Getdetune;
  61970. property loop: Boolean read _Getloop write _Setloop;
  61971. property loopStart: Double read _GetloopStart write _SetloopStart;
  61972. property loopEnd: Double read _GetloopEnd write _SetloopEnd;
  61973. end;
  61974. { --------------------------------------------------------------------
  61975. TJSComment
  61976. --------------------------------------------------------------------}
  61977. IJSComment = interface(IJSCharacterData)
  61978. ['{A6DABBC4-BEB5-343C-BA9F-E6DDC1194965}']
  61979. end;
  61980. TJSComment = class(TJSCharacterData,IJSComment)
  61981. Protected
  61982. Public
  61983. constructor Create(const aData: UnicodeString); overload;
  61984. constructor Create; overload;
  61985. class function JSClassName: UnicodeString; override;
  61986. class function Cast(const Intf: IJSObject): IJSComment;
  61987. end;
  61988. { --------------------------------------------------------------------
  61989. TJSConstantSourceNode
  61990. --------------------------------------------------------------------}
  61991. IJSConstantSourceNode = interface(IJSAudioScheduledSourceNode)
  61992. ['{4DA4462E-B0AC-30A6-AF37-9FEC4541B1BA}']
  61993. function _Getoffset: IJSAudioParam;
  61994. property offset: IJSAudioParam read _Getoffset;
  61995. end;
  61996. TJSConstantSourceNode = class(TJSAudioScheduledSourceNode,IJSConstantSourceNode)
  61997. Protected
  61998. function _Getoffset: IJSAudioParam;
  61999. Public
  62000. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSConstantSourceOptions); overload;
  62001. constructor Create(aContext: IJSBaseAudioContext); overload;
  62002. class function JSClassName: UnicodeString; override;
  62003. class function Cast(const Intf: IJSObject): IJSConstantSourceNode;
  62004. property offset: IJSAudioParam read _Getoffset;
  62005. end;
  62006. { --------------------------------------------------------------------
  62007. TJSCSSContainerRule
  62008. --------------------------------------------------------------------}
  62009. IJSCSSContainerRule = interface(IJSCSSConditionRule)
  62010. ['{F2D60421-2492-3398-AC28-5FA21D81B5FF}']
  62011. function _GetcontainerName: UTF8String;
  62012. function _GetcontainerQuery: UTF8String;
  62013. property containerName: UTF8String read _GetcontainerName;
  62014. property containerQuery: UTF8String read _GetcontainerQuery;
  62015. end;
  62016. TJSCSSContainerRule = class(TJSCSSConditionRule,IJSCSSContainerRule)
  62017. Protected
  62018. function _GetcontainerName: UTF8String;
  62019. function _GetcontainerQuery: UTF8String;
  62020. Public
  62021. class function JSClassName: UnicodeString; override;
  62022. class function Cast(const Intf: IJSObject): IJSCSSContainerRule;
  62023. property containerName: UTF8String read _GetcontainerName;
  62024. property containerQuery: UTF8String read _GetcontainerQuery;
  62025. end;
  62026. { --------------------------------------------------------------------
  62027. TJSCSSMediaRule
  62028. --------------------------------------------------------------------}
  62029. IJSCSSMediaRule = interface(IJSCSSConditionRule)
  62030. ['{687E66F9-C046-3C8A-B024-9132576B1102}']
  62031. function _Getmedia: IJSMediaList;
  62032. property media: IJSMediaList read _Getmedia;
  62033. end;
  62034. TJSCSSMediaRule = class(TJSCSSConditionRule,IJSCSSMediaRule)
  62035. Protected
  62036. function _Getmedia: IJSMediaList;
  62037. Public
  62038. class function JSClassName: UnicodeString; override;
  62039. class function Cast(const Intf: IJSObject): IJSCSSMediaRule;
  62040. property media: IJSMediaList read _Getmedia;
  62041. end;
  62042. { --------------------------------------------------------------------
  62043. TJSCSSMozDocumentRule
  62044. --------------------------------------------------------------------}
  62045. IJSCSSMozDocumentRule = interface(IJSCSSConditionRule)
  62046. ['{BBDD7D58-4178-3D00-B342-56E54F9644D4}']
  62047. end;
  62048. TJSCSSMozDocumentRule = class(TJSCSSConditionRule,IJSCSSMozDocumentRule)
  62049. Protected
  62050. Public
  62051. class function JSClassName: UnicodeString; override;
  62052. class function Cast(const Intf: IJSObject): IJSCSSMozDocumentRule;
  62053. end;
  62054. { --------------------------------------------------------------------
  62055. TJSCSSSupportsRule
  62056. --------------------------------------------------------------------}
  62057. IJSCSSSupportsRule = interface(IJSCSSConditionRule)
  62058. ['{6C6B721F-3AE8-3EF4-A4EF-A84B2266ADD9}']
  62059. end;
  62060. TJSCSSSupportsRule = class(TJSCSSConditionRule,IJSCSSSupportsRule)
  62061. Protected
  62062. Public
  62063. class function JSClassName: UnicodeString; override;
  62064. class function Cast(const Intf: IJSObject): IJSCSSSupportsRule;
  62065. end;
  62066. { --------------------------------------------------------------------
  62067. TJSDragEvent
  62068. --------------------------------------------------------------------}
  62069. IJSDragEvent = interface(IJSMouseEvent)
  62070. ['{5EA518AC-BF4C-30EC-89C0-1EF3F5D9656F}']
  62071. function _GetdataTransfer: IJSDataTransfer;
  62072. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean; aAButton: Word; aARelatedTarget: IJSEventTarget; aADataTransfer: IJSDataTransfer);
  62073. procedure initDragEvent(const aType_: UnicodeString);
  62074. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  62075. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  62076. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow);
  62077. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt);
  62078. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt);
  62079. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt);
  62080. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt);
  62081. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt);
  62082. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean);
  62083. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean);
  62084. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean);
  62085. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean);
  62086. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean; aAButton: Word);
  62087. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean; aAButton: Word; aARelatedTarget: IJSEventTarget);
  62088. property dataTransfer: IJSDataTransfer read _GetdataTransfer;
  62089. end;
  62090. TJSDragEvent = class(TJSMouseEvent,IJSDragEvent)
  62091. Protected
  62092. function _GetdataTransfer: IJSDataTransfer;
  62093. Public
  62094. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSDragEventInit); overload;
  62095. constructor Create(const aType_: UnicodeString); overload;
  62096. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean; aAButton: Word; aARelatedTarget: IJSEventTarget; aADataTransfer: IJSDataTransfer); overload;
  62097. procedure initDragEvent(const aType_: UnicodeString); overload;
  62098. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean); overload;
  62099. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean); overload;
  62100. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow); overload;
  62101. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt); overload;
  62102. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt); overload;
  62103. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt); overload;
  62104. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt); overload;
  62105. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt); overload;
  62106. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean); overload;
  62107. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean); overload;
  62108. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean); overload;
  62109. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean); overload;
  62110. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean; aAButton: Word); overload;
  62111. procedure initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean; aAButton: Word; aARelatedTarget: IJSEventTarget); overload;
  62112. class function JSClassName: UnicodeString; override;
  62113. class function Cast(const Intf: IJSObject): IJSDragEvent;
  62114. property dataTransfer: IJSDataTransfer read _GetdataTransfer;
  62115. end;
  62116. { --------------------------------------------------------------------
  62117. TJSHTMLDocument
  62118. --------------------------------------------------------------------}
  62119. IJSHTMLDocument = interface(IJSDocument)
  62120. ['{E6CF5CE1-5541-3248-AF00-F0D81AA2A621}']
  62121. function GetDefault(const aName: UnicodeString): IJSObject;
  62122. end;
  62123. TJSHTMLDocument = class(TJSDocument,IJSHTMLDocument)
  62124. Protected
  62125. Public
  62126. function GetDefault(const aName: UnicodeString): IJSObject; overload;
  62127. class function JSClassName: UnicodeString; override;
  62128. class function Cast(const Intf: IJSObject): IJSHTMLDocument;
  62129. end;
  62130. { --------------------------------------------------------------------
  62131. TJSHTMLElement
  62132. --------------------------------------------------------------------}
  62133. IJSHTMLElement = interface(IJSElement)
  62134. ['{242E0E7D-6856-3974-BED3-8025D30051D5}']
  62135. function _Gettitle: UnicodeString;
  62136. function _Getlang: UnicodeString;
  62137. function _Gettranslate: Boolean;
  62138. function _Getdir: UnicodeString;
  62139. function _GetinnerText: UnicodeString;
  62140. function _GetouterText: UnicodeString;
  62141. function _Gethidden: Boolean;
  62142. function _Getinert: Boolean;
  62143. function _GetaccessKey: UnicodeString;
  62144. function _GetaccessKeyLabel: UnicodeString;
  62145. function _Getdraggable: Boolean;
  62146. function _GetcontentEditable: UnicodeString;
  62147. function _GetisContentEditable: Boolean;
  62148. function _Getpopover: UnicodeString;
  62149. function _Getspellcheck: Boolean;
  62150. function _GetinputMode: UnicodeString;
  62151. function _GetenterKeyHint: UnicodeString;
  62152. function _Getautocapitalize: UnicodeString;
  62153. function _Getnonce: UnicodeString;
  62154. function _GetoffsetParent: IJSElement;
  62155. function _GetoffsetTop: LongInt;
  62156. function _GetoffsetLeft: LongInt;
  62157. function _GetoffsetWidth: LongInt;
  62158. function _GetoffsetHeight: LongInt;
  62159. function _Getonabort: TEventHandler;
  62160. function _Getonblur: TEventHandler;
  62161. function _Getonfocus: TEventHandler;
  62162. function _Getoncancel: TEventHandler;
  62163. function _Getonauxclick: TEventHandler;
  62164. function _Getonbeforeinput: TEventHandler;
  62165. function _Getonbeforetoggle: TEventHandler;
  62166. function _Getoncanplay: TEventHandler;
  62167. function _Getoncanplaythrough: TEventHandler;
  62168. function _Getonchange: TEventHandler;
  62169. function _Getonclick: TEventHandler;
  62170. function _Getonclose: TEventHandler;
  62171. function _Getoncontextlost: TEventHandler;
  62172. function _Getoncontextmenu: TEventHandler;
  62173. function _Getoncontextrestored: TEventHandler;
  62174. function _Getoncopy: TEventHandler;
  62175. function _Getoncuechange: TEventHandler;
  62176. function _Getoncut: TEventHandler;
  62177. function _Getondblclick: TEventHandler;
  62178. function _Getondrag: TEventHandler;
  62179. function _Getondragend: TEventHandler;
  62180. function _Getondragenter: TEventHandler;
  62181. function _Getondragexit: TEventHandler;
  62182. function _Getondragleave: TEventHandler;
  62183. function _Getondragover: TEventHandler;
  62184. function _Getondragstart: TEventHandler;
  62185. function _Getondrop: TEventHandler;
  62186. function _Getondurationchange: TEventHandler;
  62187. function _Getonemptied: TEventHandler;
  62188. function _Getonended: TEventHandler;
  62189. function _Getonformdata: TEventHandler;
  62190. function _Getoninput: TEventHandler;
  62191. function _Getoninvalid: TEventHandler;
  62192. function _Getonkeydown: TEventHandler;
  62193. function _Getonkeypress: TEventHandler;
  62194. function _Getonkeyup: TEventHandler;
  62195. function _Getonload: TEventHandler;
  62196. function _Getonloadeddata: TEventHandler;
  62197. function _Getonloadedmetadata: TEventHandler;
  62198. function _Getonloadstart: TEventHandler;
  62199. function _Getonmousedown: TEventHandler;
  62200. function _Getonmouseenter: TEventHandler;
  62201. function _Getonmouseleave: TEventHandler;
  62202. function _Getonmousemove: TEventHandler;
  62203. function _Getonmouseout: TEventHandler;
  62204. function _Getonmouseover: TEventHandler;
  62205. function _Getonmouseup: TEventHandler;
  62206. function _Getonwheel: TEventHandler;
  62207. function _Getonpaste: TEventHandler;
  62208. function _Getonpause: TEventHandler;
  62209. function _Getonplay: TEventHandler;
  62210. function _Getonplaying: TEventHandler;
  62211. function _Getonprogress: TEventHandler;
  62212. function _Getonratechange: TEventHandler;
  62213. function _Getonreset: TEventHandler;
  62214. function _Getonresize: TEventHandler;
  62215. function _Getonscroll: TEventHandler;
  62216. function _Getonscrollend: TEventHandler;
  62217. function _Getonsecuritypolicyviolation: TEventHandler;
  62218. function _Getonseeked: TEventHandler;
  62219. function _Getonseeking: TEventHandler;
  62220. function _Getonselect: TEventHandler;
  62221. function _Getonslotchange: TEventHandler;
  62222. function _Getonstalled: TEventHandler;
  62223. function _Getonsubmit: TEventHandler;
  62224. function _Getonsuspend: TEventHandler;
  62225. function _Getontimeupdate: TEventHandler;
  62226. function _Getonvolumechange: TEventHandler;
  62227. function _Getonwaiting: TEventHandler;
  62228. function _Getonselectstart: TEventHandler;
  62229. function _Getonselectionchange: TEventHandler;
  62230. function _Getontoggle: TEventHandler;
  62231. function _Getonpointercancel: TEventHandler;
  62232. function _Getonpointerdown: TEventHandler;
  62233. function _Getonpointerup: TEventHandler;
  62234. function _Getonpointermove: TEventHandler;
  62235. function _Getonpointerout: TEventHandler;
  62236. function _Getonpointerover: TEventHandler;
  62237. function _Getonpointerenter: TEventHandler;
  62238. function _Getonpointerleave: TEventHandler;
  62239. function _Getongotpointercapture: TEventHandler;
  62240. function _Getonlostpointercapture: TEventHandler;
  62241. function _Getonmozfullscreenchange: TEventHandler;
  62242. function _Getonmozfullscreenerror: TEventHandler;
  62243. function _Getonanimationcancel: TEventHandler;
  62244. function _Getonanimationend: TEventHandler;
  62245. function _Getonanimationiteration: TEventHandler;
  62246. function _Getonanimationstart: TEventHandler;
  62247. function _Getontransitioncancel: TEventHandler;
  62248. function _Getontransitionend: TEventHandler;
  62249. function _Getontransitionrun: TEventHandler;
  62250. function _Getontransitionstart: TEventHandler;
  62251. function _Getonwebkitanimationend: TEventHandler;
  62252. function _Getonwebkitanimationiteration: TEventHandler;
  62253. function _Getonwebkitanimationstart: TEventHandler;
  62254. function _Getonwebkittransitionend: TEventHandler;
  62255. function _Getdataset: IJSDOMStringMap;
  62256. function _Getautofocus: Boolean;
  62257. function _GettabIndex: LongInt;
  62258. function _Getstyle: IJSCSSStyleDeclaration;
  62259. function _Getontouchstart: TEventHandler;
  62260. function _Getontouchend: TEventHandler;
  62261. function _Getontouchmove: TEventHandler;
  62262. function _Getontouchcancel: TEventHandler;
  62263. function _Getonerror: TEventHandler;
  62264. procedure _Settitle(const aValue: UnicodeString);
  62265. procedure _Setlang(const aValue: UnicodeString);
  62266. procedure _Settranslate(const aValue: Boolean);
  62267. procedure _Setdir(const aValue: UnicodeString);
  62268. procedure _SetinnerText(const aValue: UnicodeString);
  62269. procedure _SetouterText(const aValue: UnicodeString);
  62270. procedure _Sethidden(const aValue: Boolean);
  62271. procedure _Setinert(const aValue: Boolean);
  62272. procedure _SetaccessKey(const aValue: UnicodeString);
  62273. procedure _Setdraggable(const aValue: Boolean);
  62274. procedure _SetcontentEditable(const aValue: UnicodeString);
  62275. procedure _Setpopover(const aValue: UnicodeString);
  62276. procedure _Setspellcheck(const aValue: Boolean);
  62277. procedure _SetinputMode(const aValue: UnicodeString);
  62278. procedure _SetenterKeyHint(const aValue: UnicodeString);
  62279. procedure _Setautocapitalize(const aValue: UnicodeString);
  62280. procedure _Setnonce(const aValue: UnicodeString);
  62281. procedure _Setonabort(const aValue: TEventHandler);
  62282. procedure _Setonblur(const aValue: TEventHandler);
  62283. procedure _Setonfocus(const aValue: TEventHandler);
  62284. procedure _Setoncancel(const aValue: TEventHandler);
  62285. procedure _Setonauxclick(const aValue: TEventHandler);
  62286. procedure _Setonbeforeinput(const aValue: TEventHandler);
  62287. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  62288. procedure _Setoncanplay(const aValue: TEventHandler);
  62289. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  62290. procedure _Setonchange(const aValue: TEventHandler);
  62291. procedure _Setonclick(const aValue: TEventHandler);
  62292. procedure _Setonclose(const aValue: TEventHandler);
  62293. procedure _Setoncontextlost(const aValue: TEventHandler);
  62294. procedure _Setoncontextmenu(const aValue: TEventHandler);
  62295. procedure _Setoncontextrestored(const aValue: TEventHandler);
  62296. procedure _Setoncopy(const aValue: TEventHandler);
  62297. procedure _Setoncuechange(const aValue: TEventHandler);
  62298. procedure _Setoncut(const aValue: TEventHandler);
  62299. procedure _Setondblclick(const aValue: TEventHandler);
  62300. procedure _Setondrag(const aValue: TEventHandler);
  62301. procedure _Setondragend(const aValue: TEventHandler);
  62302. procedure _Setondragenter(const aValue: TEventHandler);
  62303. procedure _Setondragexit(const aValue: TEventHandler);
  62304. procedure _Setondragleave(const aValue: TEventHandler);
  62305. procedure _Setondragover(const aValue: TEventHandler);
  62306. procedure _Setondragstart(const aValue: TEventHandler);
  62307. procedure _Setondrop(const aValue: TEventHandler);
  62308. procedure _Setondurationchange(const aValue: TEventHandler);
  62309. procedure _Setonemptied(const aValue: TEventHandler);
  62310. procedure _Setonended(const aValue: TEventHandler);
  62311. procedure _Setonformdata(const aValue: TEventHandler);
  62312. procedure _Setoninput(const aValue: TEventHandler);
  62313. procedure _Setoninvalid(const aValue: TEventHandler);
  62314. procedure _Setonkeydown(const aValue: TEventHandler);
  62315. procedure _Setonkeypress(const aValue: TEventHandler);
  62316. procedure _Setonkeyup(const aValue: TEventHandler);
  62317. procedure _Setonload(const aValue: TEventHandler);
  62318. procedure _Setonloadeddata(const aValue: TEventHandler);
  62319. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  62320. procedure _Setonloadstart(const aValue: TEventHandler);
  62321. procedure _Setonmousedown(const aValue: TEventHandler);
  62322. procedure _Setonmouseenter(const aValue: TEventHandler);
  62323. procedure _Setonmouseleave(const aValue: TEventHandler);
  62324. procedure _Setonmousemove(const aValue: TEventHandler);
  62325. procedure _Setonmouseout(const aValue: TEventHandler);
  62326. procedure _Setonmouseover(const aValue: TEventHandler);
  62327. procedure _Setonmouseup(const aValue: TEventHandler);
  62328. procedure _Setonwheel(const aValue: TEventHandler);
  62329. procedure _Setonpaste(const aValue: TEventHandler);
  62330. procedure _Setonpause(const aValue: TEventHandler);
  62331. procedure _Setonplay(const aValue: TEventHandler);
  62332. procedure _Setonplaying(const aValue: TEventHandler);
  62333. procedure _Setonprogress(const aValue: TEventHandler);
  62334. procedure _Setonratechange(const aValue: TEventHandler);
  62335. procedure _Setonreset(const aValue: TEventHandler);
  62336. procedure _Setonresize(const aValue: TEventHandler);
  62337. procedure _Setonscroll(const aValue: TEventHandler);
  62338. procedure _Setonscrollend(const aValue: TEventHandler);
  62339. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  62340. procedure _Setonseeked(const aValue: TEventHandler);
  62341. procedure _Setonseeking(const aValue: TEventHandler);
  62342. procedure _Setonselect(const aValue: TEventHandler);
  62343. procedure _Setonslotchange(const aValue: TEventHandler);
  62344. procedure _Setonstalled(const aValue: TEventHandler);
  62345. procedure _Setonsubmit(const aValue: TEventHandler);
  62346. procedure _Setonsuspend(const aValue: TEventHandler);
  62347. procedure _Setontimeupdate(const aValue: TEventHandler);
  62348. procedure _Setonvolumechange(const aValue: TEventHandler);
  62349. procedure _Setonwaiting(const aValue: TEventHandler);
  62350. procedure _Setonselectstart(const aValue: TEventHandler);
  62351. procedure _Setonselectionchange(const aValue: TEventHandler);
  62352. procedure _Setontoggle(const aValue: TEventHandler);
  62353. procedure _Setonpointercancel(const aValue: TEventHandler);
  62354. procedure _Setonpointerdown(const aValue: TEventHandler);
  62355. procedure _Setonpointerup(const aValue: TEventHandler);
  62356. procedure _Setonpointermove(const aValue: TEventHandler);
  62357. procedure _Setonpointerout(const aValue: TEventHandler);
  62358. procedure _Setonpointerover(const aValue: TEventHandler);
  62359. procedure _Setonpointerenter(const aValue: TEventHandler);
  62360. procedure _Setonpointerleave(const aValue: TEventHandler);
  62361. procedure _Setongotpointercapture(const aValue: TEventHandler);
  62362. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  62363. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  62364. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  62365. procedure _Setonanimationcancel(const aValue: TEventHandler);
  62366. procedure _Setonanimationend(const aValue: TEventHandler);
  62367. procedure _Setonanimationiteration(const aValue: TEventHandler);
  62368. procedure _Setonanimationstart(const aValue: TEventHandler);
  62369. procedure _Setontransitioncancel(const aValue: TEventHandler);
  62370. procedure _Setontransitionend(const aValue: TEventHandler);
  62371. procedure _Setontransitionrun(const aValue: TEventHandler);
  62372. procedure _Setontransitionstart(const aValue: TEventHandler);
  62373. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  62374. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  62375. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  62376. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  62377. procedure _Setautofocus(const aValue: Boolean);
  62378. procedure _SettabIndex(const aValue: LongInt);
  62379. procedure _Setontouchstart(const aValue: TEventHandler);
  62380. procedure _Setontouchend(const aValue: TEventHandler);
  62381. procedure _Setontouchmove(const aValue: TEventHandler);
  62382. procedure _Setontouchcancel(const aValue: TEventHandler);
  62383. procedure _Setonerror(const aValue: TEventHandler);
  62384. procedure click;
  62385. function attachInternals: IJSElementInternals;
  62386. procedure showPopover;
  62387. procedure hidePopover;
  62388. function togglePopover(aForce: Boolean): Boolean;
  62389. function togglePopover: Boolean;
  62390. procedure focus(const aOptions: TJSFocusOptions);
  62391. procedure focus;
  62392. procedure blur;
  62393. property title: UnicodeString read _Gettitle write _Settitle;
  62394. property lang: UnicodeString read _Getlang write _Setlang;
  62395. property translate: Boolean read _Gettranslate write _Settranslate;
  62396. property dir: UnicodeString read _Getdir write _Setdir;
  62397. property innerText: UnicodeString read _GetinnerText write _SetinnerText;
  62398. property outerText: UnicodeString read _GetouterText write _SetouterText;
  62399. property hidden: Boolean read _Gethidden write _Sethidden;
  62400. property inert: Boolean read _Getinert write _Setinert;
  62401. property accessKey: UnicodeString read _GetaccessKey write _SetaccessKey;
  62402. property accessKeyLabel: UnicodeString read _GetaccessKeyLabel;
  62403. property draggable: Boolean read _Getdraggable write _Setdraggable;
  62404. property contentEditable: UnicodeString read _GetcontentEditable write _SetcontentEditable;
  62405. property isContentEditable: Boolean read _GetisContentEditable;
  62406. property popover: UnicodeString read _Getpopover write _Setpopover;
  62407. property spellcheck: Boolean read _Getspellcheck write _Setspellcheck;
  62408. property inputMode: UnicodeString read _GetinputMode write _SetinputMode;
  62409. property enterKeyHint: UnicodeString read _GetenterKeyHint write _SetenterKeyHint;
  62410. property autocapitalize: UnicodeString read _Getautocapitalize write _Setautocapitalize;
  62411. property nonce: UnicodeString read _Getnonce write _Setnonce;
  62412. property offsetParent: IJSElement read _GetoffsetParent;
  62413. property offsetTop: LongInt read _GetoffsetTop;
  62414. property offsetLeft: LongInt read _GetoffsetLeft;
  62415. property offsetWidth: LongInt read _GetoffsetWidth;
  62416. property offsetHeight: LongInt read _GetoffsetHeight;
  62417. property onabort: TEventHandler read _Getonabort write _Setonabort;
  62418. property onblur: TEventHandler read _Getonblur write _Setonblur;
  62419. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  62420. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  62421. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  62422. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  62423. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  62424. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  62425. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  62426. property onchange: TEventHandler read _Getonchange write _Setonchange;
  62427. property onclick: TEventHandler read _Getonclick write _Setonclick;
  62428. property onclose: TEventHandler read _Getonclose write _Setonclose;
  62429. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  62430. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  62431. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  62432. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  62433. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  62434. property oncut: TEventHandler read _Getoncut write _Setoncut;
  62435. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  62436. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  62437. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  62438. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  62439. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  62440. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  62441. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  62442. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  62443. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  62444. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  62445. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  62446. property onended: TEventHandler read _Getonended write _Setonended;
  62447. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  62448. property oninput: TEventHandler read _Getoninput write _Setoninput;
  62449. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  62450. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  62451. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  62452. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  62453. property onload: TEventHandler read _Getonload write _Setonload;
  62454. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  62455. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  62456. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  62457. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  62458. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  62459. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  62460. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  62461. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  62462. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  62463. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  62464. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  62465. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  62466. property onpause: TEventHandler read _Getonpause write _Setonpause;
  62467. property onplay: TEventHandler read _Getonplay write _Setonplay;
  62468. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  62469. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  62470. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  62471. property onreset: TEventHandler read _Getonreset write _Setonreset;
  62472. property onresize: TEventHandler read _Getonresize write _Setonresize;
  62473. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  62474. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  62475. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  62476. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  62477. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  62478. property onselect: TEventHandler read _Getonselect write _Setonselect;
  62479. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  62480. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  62481. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  62482. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  62483. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  62484. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  62485. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  62486. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  62487. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  62488. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  62489. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  62490. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  62491. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  62492. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  62493. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  62494. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  62495. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  62496. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  62497. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  62498. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  62499. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  62500. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  62501. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  62502. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  62503. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  62504. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  62505. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  62506. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  62507. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  62508. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  62509. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  62510. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  62511. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  62512. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  62513. property dataset: IJSDOMStringMap read _Getdataset;
  62514. property autofocus: Boolean read _Getautofocus write _Setautofocus;
  62515. property tabIndex: LongInt read _GettabIndex write _SettabIndex;
  62516. property style: IJSCSSStyleDeclaration read _Getstyle;
  62517. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  62518. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  62519. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  62520. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  62521. property onerror: TEventHandler read _Getonerror write _Setonerror;
  62522. end;
  62523. TJSHTMLElement = class(TJSElement,IJSHTMLElement)
  62524. Protected
  62525. function _Gettitle: UnicodeString;
  62526. function _Getlang: UnicodeString;
  62527. function _Gettranslate: Boolean;
  62528. function _Getdir: UnicodeString;
  62529. function _GetinnerText: UnicodeString;
  62530. function _GetouterText: UnicodeString;
  62531. function _Gethidden: Boolean;
  62532. function _Getinert: Boolean;
  62533. function _GetaccessKey: UnicodeString;
  62534. function _GetaccessKeyLabel: UnicodeString;
  62535. function _Getdraggable: Boolean;
  62536. function _GetcontentEditable: UnicodeString;
  62537. function _GetisContentEditable: Boolean;
  62538. function _Getpopover: UnicodeString;
  62539. function _Getspellcheck: Boolean;
  62540. function _GetinputMode: UnicodeString;
  62541. function _GetenterKeyHint: UnicodeString;
  62542. function _Getautocapitalize: UnicodeString;
  62543. function _Getnonce: UnicodeString;
  62544. function _GetoffsetParent: IJSElement;
  62545. function _GetoffsetTop: LongInt;
  62546. function _GetoffsetLeft: LongInt;
  62547. function _GetoffsetWidth: LongInt;
  62548. function _GetoffsetHeight: LongInt;
  62549. function _Getonabort: TEventHandler;
  62550. function _Getonblur: TEventHandler;
  62551. function _Getonfocus: TEventHandler;
  62552. function _Getoncancel: TEventHandler;
  62553. function _Getonauxclick: TEventHandler;
  62554. function _Getonbeforeinput: TEventHandler;
  62555. function _Getonbeforetoggle: TEventHandler;
  62556. function _Getoncanplay: TEventHandler;
  62557. function _Getoncanplaythrough: TEventHandler;
  62558. function _Getonchange: TEventHandler;
  62559. function _Getonclick: TEventHandler;
  62560. function _Getonclose: TEventHandler;
  62561. function _Getoncontextlost: TEventHandler;
  62562. function _Getoncontextmenu: TEventHandler;
  62563. function _Getoncontextrestored: TEventHandler;
  62564. function _Getoncopy: TEventHandler;
  62565. function _Getoncuechange: TEventHandler;
  62566. function _Getoncut: TEventHandler;
  62567. function _Getondblclick: TEventHandler;
  62568. function _Getondrag: TEventHandler;
  62569. function _Getondragend: TEventHandler;
  62570. function _Getondragenter: TEventHandler;
  62571. function _Getondragexit: TEventHandler;
  62572. function _Getondragleave: TEventHandler;
  62573. function _Getondragover: TEventHandler;
  62574. function _Getondragstart: TEventHandler;
  62575. function _Getondrop: TEventHandler;
  62576. function _Getondurationchange: TEventHandler;
  62577. function _Getonemptied: TEventHandler;
  62578. function _Getonended: TEventHandler;
  62579. function _Getonformdata: TEventHandler;
  62580. function _Getoninput: TEventHandler;
  62581. function _Getoninvalid: TEventHandler;
  62582. function _Getonkeydown: TEventHandler;
  62583. function _Getonkeypress: TEventHandler;
  62584. function _Getonkeyup: TEventHandler;
  62585. function _Getonload: TEventHandler;
  62586. function _Getonloadeddata: TEventHandler;
  62587. function _Getonloadedmetadata: TEventHandler;
  62588. function _Getonloadstart: TEventHandler;
  62589. function _Getonmousedown: TEventHandler;
  62590. function _Getonmouseenter: TEventHandler;
  62591. function _Getonmouseleave: TEventHandler;
  62592. function _Getonmousemove: TEventHandler;
  62593. function _Getonmouseout: TEventHandler;
  62594. function _Getonmouseover: TEventHandler;
  62595. function _Getonmouseup: TEventHandler;
  62596. function _Getonwheel: TEventHandler;
  62597. function _Getonpaste: TEventHandler;
  62598. function _Getonpause: TEventHandler;
  62599. function _Getonplay: TEventHandler;
  62600. function _Getonplaying: TEventHandler;
  62601. function _Getonprogress: TEventHandler;
  62602. function _Getonratechange: TEventHandler;
  62603. function _Getonreset: TEventHandler;
  62604. function _Getonresize: TEventHandler;
  62605. function _Getonscroll: TEventHandler;
  62606. function _Getonscrollend: TEventHandler;
  62607. function _Getonsecuritypolicyviolation: TEventHandler;
  62608. function _Getonseeked: TEventHandler;
  62609. function _Getonseeking: TEventHandler;
  62610. function _Getonselect: TEventHandler;
  62611. function _Getonslotchange: TEventHandler;
  62612. function _Getonstalled: TEventHandler;
  62613. function _Getonsubmit: TEventHandler;
  62614. function _Getonsuspend: TEventHandler;
  62615. function _Getontimeupdate: TEventHandler;
  62616. function _Getonvolumechange: TEventHandler;
  62617. function _Getonwaiting: TEventHandler;
  62618. function _Getonselectstart: TEventHandler;
  62619. function _Getonselectionchange: TEventHandler;
  62620. function _Getontoggle: TEventHandler;
  62621. function _Getonpointercancel: TEventHandler;
  62622. function _Getonpointerdown: TEventHandler;
  62623. function _Getonpointerup: TEventHandler;
  62624. function _Getonpointermove: TEventHandler;
  62625. function _Getonpointerout: TEventHandler;
  62626. function _Getonpointerover: TEventHandler;
  62627. function _Getonpointerenter: TEventHandler;
  62628. function _Getonpointerleave: TEventHandler;
  62629. function _Getongotpointercapture: TEventHandler;
  62630. function _Getonlostpointercapture: TEventHandler;
  62631. function _Getonmozfullscreenchange: TEventHandler;
  62632. function _Getonmozfullscreenerror: TEventHandler;
  62633. function _Getonanimationcancel: TEventHandler;
  62634. function _Getonanimationend: TEventHandler;
  62635. function _Getonanimationiteration: TEventHandler;
  62636. function _Getonanimationstart: TEventHandler;
  62637. function _Getontransitioncancel: TEventHandler;
  62638. function _Getontransitionend: TEventHandler;
  62639. function _Getontransitionrun: TEventHandler;
  62640. function _Getontransitionstart: TEventHandler;
  62641. function _Getonwebkitanimationend: TEventHandler;
  62642. function _Getonwebkitanimationiteration: TEventHandler;
  62643. function _Getonwebkitanimationstart: TEventHandler;
  62644. function _Getonwebkittransitionend: TEventHandler;
  62645. function _Getdataset: IJSDOMStringMap;
  62646. function _Getautofocus: Boolean;
  62647. function _GettabIndex: LongInt;
  62648. function _Getstyle: IJSCSSStyleDeclaration;
  62649. function _Getontouchstart: TEventHandler;
  62650. function _Getontouchend: TEventHandler;
  62651. function _Getontouchmove: TEventHandler;
  62652. function _Getontouchcancel: TEventHandler;
  62653. function _Getonerror: TEventHandler;
  62654. procedure _Settitle(const aValue: UnicodeString);
  62655. procedure _Setlang(const aValue: UnicodeString);
  62656. procedure _Settranslate(const aValue: Boolean);
  62657. procedure _Setdir(const aValue: UnicodeString);
  62658. procedure _SetinnerText(const aValue: UnicodeString);
  62659. procedure _SetouterText(const aValue: UnicodeString);
  62660. procedure _Sethidden(const aValue: Boolean);
  62661. procedure _Setinert(const aValue: Boolean);
  62662. procedure _SetaccessKey(const aValue: UnicodeString);
  62663. procedure _Setdraggable(const aValue: Boolean);
  62664. procedure _SetcontentEditable(const aValue: UnicodeString);
  62665. procedure _Setpopover(const aValue: UnicodeString);
  62666. procedure _Setspellcheck(const aValue: Boolean);
  62667. procedure _SetinputMode(const aValue: UnicodeString);
  62668. procedure _SetenterKeyHint(const aValue: UnicodeString);
  62669. procedure _Setautocapitalize(const aValue: UnicodeString);
  62670. procedure _Setnonce(const aValue: UnicodeString);
  62671. procedure _Setonabort(const aValue: TEventHandler);
  62672. procedure _Setonblur(const aValue: TEventHandler);
  62673. procedure _Setonfocus(const aValue: TEventHandler);
  62674. procedure _Setoncancel(const aValue: TEventHandler);
  62675. procedure _Setonauxclick(const aValue: TEventHandler);
  62676. procedure _Setonbeforeinput(const aValue: TEventHandler);
  62677. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  62678. procedure _Setoncanplay(const aValue: TEventHandler);
  62679. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  62680. procedure _Setonchange(const aValue: TEventHandler);
  62681. procedure _Setonclick(const aValue: TEventHandler);
  62682. procedure _Setonclose(const aValue: TEventHandler);
  62683. procedure _Setoncontextlost(const aValue: TEventHandler);
  62684. procedure _Setoncontextmenu(const aValue: TEventHandler);
  62685. procedure _Setoncontextrestored(const aValue: TEventHandler);
  62686. procedure _Setoncopy(const aValue: TEventHandler);
  62687. procedure _Setoncuechange(const aValue: TEventHandler);
  62688. procedure _Setoncut(const aValue: TEventHandler);
  62689. procedure _Setondblclick(const aValue: TEventHandler);
  62690. procedure _Setondrag(const aValue: TEventHandler);
  62691. procedure _Setondragend(const aValue: TEventHandler);
  62692. procedure _Setondragenter(const aValue: TEventHandler);
  62693. procedure _Setondragexit(const aValue: TEventHandler);
  62694. procedure _Setondragleave(const aValue: TEventHandler);
  62695. procedure _Setondragover(const aValue: TEventHandler);
  62696. procedure _Setondragstart(const aValue: TEventHandler);
  62697. procedure _Setondrop(const aValue: TEventHandler);
  62698. procedure _Setondurationchange(const aValue: TEventHandler);
  62699. procedure _Setonemptied(const aValue: TEventHandler);
  62700. procedure _Setonended(const aValue: TEventHandler);
  62701. procedure _Setonformdata(const aValue: TEventHandler);
  62702. procedure _Setoninput(const aValue: TEventHandler);
  62703. procedure _Setoninvalid(const aValue: TEventHandler);
  62704. procedure _Setonkeydown(const aValue: TEventHandler);
  62705. procedure _Setonkeypress(const aValue: TEventHandler);
  62706. procedure _Setonkeyup(const aValue: TEventHandler);
  62707. procedure _Setonload(const aValue: TEventHandler);
  62708. procedure _Setonloadeddata(const aValue: TEventHandler);
  62709. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  62710. procedure _Setonloadstart(const aValue: TEventHandler);
  62711. procedure _Setonmousedown(const aValue: TEventHandler);
  62712. procedure _Setonmouseenter(const aValue: TEventHandler);
  62713. procedure _Setonmouseleave(const aValue: TEventHandler);
  62714. procedure _Setonmousemove(const aValue: TEventHandler);
  62715. procedure _Setonmouseout(const aValue: TEventHandler);
  62716. procedure _Setonmouseover(const aValue: TEventHandler);
  62717. procedure _Setonmouseup(const aValue: TEventHandler);
  62718. procedure _Setonwheel(const aValue: TEventHandler);
  62719. procedure _Setonpaste(const aValue: TEventHandler);
  62720. procedure _Setonpause(const aValue: TEventHandler);
  62721. procedure _Setonplay(const aValue: TEventHandler);
  62722. procedure _Setonplaying(const aValue: TEventHandler);
  62723. procedure _Setonprogress(const aValue: TEventHandler);
  62724. procedure _Setonratechange(const aValue: TEventHandler);
  62725. procedure _Setonreset(const aValue: TEventHandler);
  62726. procedure _Setonresize(const aValue: TEventHandler);
  62727. procedure _Setonscroll(const aValue: TEventHandler);
  62728. procedure _Setonscrollend(const aValue: TEventHandler);
  62729. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  62730. procedure _Setonseeked(const aValue: TEventHandler);
  62731. procedure _Setonseeking(const aValue: TEventHandler);
  62732. procedure _Setonselect(const aValue: TEventHandler);
  62733. procedure _Setonslotchange(const aValue: TEventHandler);
  62734. procedure _Setonstalled(const aValue: TEventHandler);
  62735. procedure _Setonsubmit(const aValue: TEventHandler);
  62736. procedure _Setonsuspend(const aValue: TEventHandler);
  62737. procedure _Setontimeupdate(const aValue: TEventHandler);
  62738. procedure _Setonvolumechange(const aValue: TEventHandler);
  62739. procedure _Setonwaiting(const aValue: TEventHandler);
  62740. procedure _Setonselectstart(const aValue: TEventHandler);
  62741. procedure _Setonselectionchange(const aValue: TEventHandler);
  62742. procedure _Setontoggle(const aValue: TEventHandler);
  62743. procedure _Setonpointercancel(const aValue: TEventHandler);
  62744. procedure _Setonpointerdown(const aValue: TEventHandler);
  62745. procedure _Setonpointerup(const aValue: TEventHandler);
  62746. procedure _Setonpointermove(const aValue: TEventHandler);
  62747. procedure _Setonpointerout(const aValue: TEventHandler);
  62748. procedure _Setonpointerover(const aValue: TEventHandler);
  62749. procedure _Setonpointerenter(const aValue: TEventHandler);
  62750. procedure _Setonpointerleave(const aValue: TEventHandler);
  62751. procedure _Setongotpointercapture(const aValue: TEventHandler);
  62752. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  62753. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  62754. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  62755. procedure _Setonanimationcancel(const aValue: TEventHandler);
  62756. procedure _Setonanimationend(const aValue: TEventHandler);
  62757. procedure _Setonanimationiteration(const aValue: TEventHandler);
  62758. procedure _Setonanimationstart(const aValue: TEventHandler);
  62759. procedure _Setontransitioncancel(const aValue: TEventHandler);
  62760. procedure _Setontransitionend(const aValue: TEventHandler);
  62761. procedure _Setontransitionrun(const aValue: TEventHandler);
  62762. procedure _Setontransitionstart(const aValue: TEventHandler);
  62763. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  62764. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  62765. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  62766. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  62767. procedure _Setautofocus(const aValue: Boolean);
  62768. procedure _SettabIndex(const aValue: LongInt);
  62769. procedure _Setontouchstart(const aValue: TEventHandler);
  62770. procedure _Setontouchend(const aValue: TEventHandler);
  62771. procedure _Setontouchmove(const aValue: TEventHandler);
  62772. procedure _Setontouchcancel(const aValue: TEventHandler);
  62773. procedure _Setonerror(const aValue: TEventHandler);
  62774. Public
  62775. constructor Create; overload;
  62776. procedure click; overload;
  62777. function attachInternals: IJSElementInternals; overload;
  62778. procedure showPopover; overload;
  62779. procedure hidePopover; overload;
  62780. function togglePopover(aForce: Boolean): Boolean; overload;
  62781. function togglePopover: Boolean; overload;
  62782. procedure focus(const aOptions: TJSFocusOptions); overload;
  62783. procedure focus; overload;
  62784. procedure blur; overload;
  62785. class function JSClassName: UnicodeString; override;
  62786. class function Cast(const Intf: IJSObject): IJSHTMLElement;
  62787. property title: UnicodeString read _Gettitle write _Settitle;
  62788. property lang: UnicodeString read _Getlang write _Setlang;
  62789. property translate: Boolean read _Gettranslate write _Settranslate;
  62790. property dir: UnicodeString read _Getdir write _Setdir;
  62791. property innerText: UnicodeString read _GetinnerText write _SetinnerText;
  62792. property outerText: UnicodeString read _GetouterText write _SetouterText;
  62793. property hidden: Boolean read _Gethidden write _Sethidden;
  62794. property inert: Boolean read _Getinert write _Setinert;
  62795. property accessKey: UnicodeString read _GetaccessKey write _SetaccessKey;
  62796. property accessKeyLabel: UnicodeString read _GetaccessKeyLabel;
  62797. property draggable: Boolean read _Getdraggable write _Setdraggable;
  62798. property contentEditable: UnicodeString read _GetcontentEditable write _SetcontentEditable;
  62799. property isContentEditable: Boolean read _GetisContentEditable;
  62800. property popover: UnicodeString read _Getpopover write _Setpopover;
  62801. property spellcheck: Boolean read _Getspellcheck write _Setspellcheck;
  62802. property inputMode: UnicodeString read _GetinputMode write _SetinputMode;
  62803. property enterKeyHint: UnicodeString read _GetenterKeyHint write _SetenterKeyHint;
  62804. property autocapitalize: UnicodeString read _Getautocapitalize write _Setautocapitalize;
  62805. property nonce: UnicodeString read _Getnonce write _Setnonce;
  62806. property offsetParent: IJSElement read _GetoffsetParent;
  62807. property offsetTop: LongInt read _GetoffsetTop;
  62808. property offsetLeft: LongInt read _GetoffsetLeft;
  62809. property offsetWidth: LongInt read _GetoffsetWidth;
  62810. property offsetHeight: LongInt read _GetoffsetHeight;
  62811. property onabort: TEventHandler read _Getonabort write _Setonabort;
  62812. property onblur: TEventHandler read _Getonblur write _Setonblur;
  62813. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  62814. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  62815. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  62816. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  62817. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  62818. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  62819. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  62820. property onchange: TEventHandler read _Getonchange write _Setonchange;
  62821. property onclick: TEventHandler read _Getonclick write _Setonclick;
  62822. property onclose: TEventHandler read _Getonclose write _Setonclose;
  62823. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  62824. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  62825. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  62826. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  62827. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  62828. property oncut: TEventHandler read _Getoncut write _Setoncut;
  62829. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  62830. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  62831. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  62832. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  62833. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  62834. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  62835. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  62836. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  62837. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  62838. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  62839. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  62840. property onended: TEventHandler read _Getonended write _Setonended;
  62841. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  62842. property oninput: TEventHandler read _Getoninput write _Setoninput;
  62843. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  62844. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  62845. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  62846. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  62847. property onload: TEventHandler read _Getonload write _Setonload;
  62848. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  62849. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  62850. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  62851. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  62852. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  62853. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  62854. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  62855. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  62856. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  62857. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  62858. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  62859. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  62860. property onpause: TEventHandler read _Getonpause write _Setonpause;
  62861. property onplay: TEventHandler read _Getonplay write _Setonplay;
  62862. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  62863. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  62864. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  62865. property onreset: TEventHandler read _Getonreset write _Setonreset;
  62866. property onresize: TEventHandler read _Getonresize write _Setonresize;
  62867. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  62868. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  62869. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  62870. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  62871. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  62872. property onselect: TEventHandler read _Getonselect write _Setonselect;
  62873. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  62874. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  62875. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  62876. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  62877. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  62878. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  62879. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  62880. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  62881. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  62882. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  62883. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  62884. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  62885. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  62886. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  62887. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  62888. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  62889. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  62890. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  62891. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  62892. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  62893. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  62894. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  62895. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  62896. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  62897. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  62898. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  62899. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  62900. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  62901. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  62902. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  62903. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  62904. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  62905. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  62906. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  62907. property dataset: IJSDOMStringMap read _Getdataset;
  62908. property autofocus: Boolean read _Getautofocus write _Setautofocus;
  62909. property tabIndex: LongInt read _GettabIndex write _SettabIndex;
  62910. property style: IJSCSSStyleDeclaration read _Getstyle;
  62911. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  62912. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  62913. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  62914. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  62915. property onerror: TEventHandler read _Getonerror write _Setonerror;
  62916. end;
  62917. { --------------------------------------------------------------------
  62918. TJSMathMLElement
  62919. --------------------------------------------------------------------}
  62920. IJSMathMLElement = interface(IJSElement)
  62921. ['{83AF2FD7-C29D-36C9-82CC-192B38D9F4FC}']
  62922. function _Getonabort: TEventHandler;
  62923. function _Getonblur: TEventHandler;
  62924. function _Getonfocus: TEventHandler;
  62925. function _Getoncancel: TEventHandler;
  62926. function _Getonauxclick: TEventHandler;
  62927. function _Getonbeforeinput: TEventHandler;
  62928. function _Getonbeforetoggle: TEventHandler;
  62929. function _Getoncanplay: TEventHandler;
  62930. function _Getoncanplaythrough: TEventHandler;
  62931. function _Getonchange: TEventHandler;
  62932. function _Getonclick: TEventHandler;
  62933. function _Getonclose: TEventHandler;
  62934. function _Getoncontextlost: TEventHandler;
  62935. function _Getoncontextmenu: TEventHandler;
  62936. function _Getoncontextrestored: TEventHandler;
  62937. function _Getoncopy: TEventHandler;
  62938. function _Getoncuechange: TEventHandler;
  62939. function _Getoncut: TEventHandler;
  62940. function _Getondblclick: TEventHandler;
  62941. function _Getondrag: TEventHandler;
  62942. function _Getondragend: TEventHandler;
  62943. function _Getondragenter: TEventHandler;
  62944. function _Getondragexit: TEventHandler;
  62945. function _Getondragleave: TEventHandler;
  62946. function _Getondragover: TEventHandler;
  62947. function _Getondragstart: TEventHandler;
  62948. function _Getondrop: TEventHandler;
  62949. function _Getondurationchange: TEventHandler;
  62950. function _Getonemptied: TEventHandler;
  62951. function _Getonended: TEventHandler;
  62952. function _Getonformdata: TEventHandler;
  62953. function _Getoninput: TEventHandler;
  62954. function _Getoninvalid: TEventHandler;
  62955. function _Getonkeydown: TEventHandler;
  62956. function _Getonkeypress: TEventHandler;
  62957. function _Getonkeyup: TEventHandler;
  62958. function _Getonload: TEventHandler;
  62959. function _Getonloadeddata: TEventHandler;
  62960. function _Getonloadedmetadata: TEventHandler;
  62961. function _Getonloadstart: TEventHandler;
  62962. function _Getonmousedown: TEventHandler;
  62963. function _Getonmouseenter: TEventHandler;
  62964. function _Getonmouseleave: TEventHandler;
  62965. function _Getonmousemove: TEventHandler;
  62966. function _Getonmouseout: TEventHandler;
  62967. function _Getonmouseover: TEventHandler;
  62968. function _Getonmouseup: TEventHandler;
  62969. function _Getonwheel: TEventHandler;
  62970. function _Getonpaste: TEventHandler;
  62971. function _Getonpause: TEventHandler;
  62972. function _Getonplay: TEventHandler;
  62973. function _Getonplaying: TEventHandler;
  62974. function _Getonprogress: TEventHandler;
  62975. function _Getonratechange: TEventHandler;
  62976. function _Getonreset: TEventHandler;
  62977. function _Getonresize: TEventHandler;
  62978. function _Getonscroll: TEventHandler;
  62979. function _Getonscrollend: TEventHandler;
  62980. function _Getonsecuritypolicyviolation: TEventHandler;
  62981. function _Getonseeked: TEventHandler;
  62982. function _Getonseeking: TEventHandler;
  62983. function _Getonselect: TEventHandler;
  62984. function _Getonslotchange: TEventHandler;
  62985. function _Getonstalled: TEventHandler;
  62986. function _Getonsubmit: TEventHandler;
  62987. function _Getonsuspend: TEventHandler;
  62988. function _Getontimeupdate: TEventHandler;
  62989. function _Getonvolumechange: TEventHandler;
  62990. function _Getonwaiting: TEventHandler;
  62991. function _Getonselectstart: TEventHandler;
  62992. function _Getonselectionchange: TEventHandler;
  62993. function _Getontoggle: TEventHandler;
  62994. function _Getonpointercancel: TEventHandler;
  62995. function _Getonpointerdown: TEventHandler;
  62996. function _Getonpointerup: TEventHandler;
  62997. function _Getonpointermove: TEventHandler;
  62998. function _Getonpointerout: TEventHandler;
  62999. function _Getonpointerover: TEventHandler;
  63000. function _Getonpointerenter: TEventHandler;
  63001. function _Getonpointerleave: TEventHandler;
  63002. function _Getongotpointercapture: TEventHandler;
  63003. function _Getonlostpointercapture: TEventHandler;
  63004. function _Getonmozfullscreenchange: TEventHandler;
  63005. function _Getonmozfullscreenerror: TEventHandler;
  63006. function _Getonanimationcancel: TEventHandler;
  63007. function _Getonanimationend: TEventHandler;
  63008. function _Getonanimationiteration: TEventHandler;
  63009. function _Getonanimationstart: TEventHandler;
  63010. function _Getontransitioncancel: TEventHandler;
  63011. function _Getontransitionend: TEventHandler;
  63012. function _Getontransitionrun: TEventHandler;
  63013. function _Getontransitionstart: TEventHandler;
  63014. function _Getonwebkitanimationend: TEventHandler;
  63015. function _Getonwebkitanimationiteration: TEventHandler;
  63016. function _Getonwebkitanimationstart: TEventHandler;
  63017. function _Getonwebkittransitionend: TEventHandler;
  63018. function _Getdataset: IJSDOMStringMap;
  63019. function _Getautofocus: Boolean;
  63020. function _GettabIndex: LongInt;
  63021. function _Getstyle: IJSCSSStyleDeclaration;
  63022. function _Getontouchstart: TEventHandler;
  63023. function _Getontouchend: TEventHandler;
  63024. function _Getontouchmove: TEventHandler;
  63025. function _Getontouchcancel: TEventHandler;
  63026. function _Getonerror: TEventHandler;
  63027. procedure _Setonabort(const aValue: TEventHandler);
  63028. procedure _Setonblur(const aValue: TEventHandler);
  63029. procedure _Setonfocus(const aValue: TEventHandler);
  63030. procedure _Setoncancel(const aValue: TEventHandler);
  63031. procedure _Setonauxclick(const aValue: TEventHandler);
  63032. procedure _Setonbeforeinput(const aValue: TEventHandler);
  63033. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  63034. procedure _Setoncanplay(const aValue: TEventHandler);
  63035. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  63036. procedure _Setonchange(const aValue: TEventHandler);
  63037. procedure _Setonclick(const aValue: TEventHandler);
  63038. procedure _Setonclose(const aValue: TEventHandler);
  63039. procedure _Setoncontextlost(const aValue: TEventHandler);
  63040. procedure _Setoncontextmenu(const aValue: TEventHandler);
  63041. procedure _Setoncontextrestored(const aValue: TEventHandler);
  63042. procedure _Setoncopy(const aValue: TEventHandler);
  63043. procedure _Setoncuechange(const aValue: TEventHandler);
  63044. procedure _Setoncut(const aValue: TEventHandler);
  63045. procedure _Setondblclick(const aValue: TEventHandler);
  63046. procedure _Setondrag(const aValue: TEventHandler);
  63047. procedure _Setondragend(const aValue: TEventHandler);
  63048. procedure _Setondragenter(const aValue: TEventHandler);
  63049. procedure _Setondragexit(const aValue: TEventHandler);
  63050. procedure _Setondragleave(const aValue: TEventHandler);
  63051. procedure _Setondragover(const aValue: TEventHandler);
  63052. procedure _Setondragstart(const aValue: TEventHandler);
  63053. procedure _Setondrop(const aValue: TEventHandler);
  63054. procedure _Setondurationchange(const aValue: TEventHandler);
  63055. procedure _Setonemptied(const aValue: TEventHandler);
  63056. procedure _Setonended(const aValue: TEventHandler);
  63057. procedure _Setonformdata(const aValue: TEventHandler);
  63058. procedure _Setoninput(const aValue: TEventHandler);
  63059. procedure _Setoninvalid(const aValue: TEventHandler);
  63060. procedure _Setonkeydown(const aValue: TEventHandler);
  63061. procedure _Setonkeypress(const aValue: TEventHandler);
  63062. procedure _Setonkeyup(const aValue: TEventHandler);
  63063. procedure _Setonload(const aValue: TEventHandler);
  63064. procedure _Setonloadeddata(const aValue: TEventHandler);
  63065. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  63066. procedure _Setonloadstart(const aValue: TEventHandler);
  63067. procedure _Setonmousedown(const aValue: TEventHandler);
  63068. procedure _Setonmouseenter(const aValue: TEventHandler);
  63069. procedure _Setonmouseleave(const aValue: TEventHandler);
  63070. procedure _Setonmousemove(const aValue: TEventHandler);
  63071. procedure _Setonmouseout(const aValue: TEventHandler);
  63072. procedure _Setonmouseover(const aValue: TEventHandler);
  63073. procedure _Setonmouseup(const aValue: TEventHandler);
  63074. procedure _Setonwheel(const aValue: TEventHandler);
  63075. procedure _Setonpaste(const aValue: TEventHandler);
  63076. procedure _Setonpause(const aValue: TEventHandler);
  63077. procedure _Setonplay(const aValue: TEventHandler);
  63078. procedure _Setonplaying(const aValue: TEventHandler);
  63079. procedure _Setonprogress(const aValue: TEventHandler);
  63080. procedure _Setonratechange(const aValue: TEventHandler);
  63081. procedure _Setonreset(const aValue: TEventHandler);
  63082. procedure _Setonresize(const aValue: TEventHandler);
  63083. procedure _Setonscroll(const aValue: TEventHandler);
  63084. procedure _Setonscrollend(const aValue: TEventHandler);
  63085. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  63086. procedure _Setonseeked(const aValue: TEventHandler);
  63087. procedure _Setonseeking(const aValue: TEventHandler);
  63088. procedure _Setonselect(const aValue: TEventHandler);
  63089. procedure _Setonslotchange(const aValue: TEventHandler);
  63090. procedure _Setonstalled(const aValue: TEventHandler);
  63091. procedure _Setonsubmit(const aValue: TEventHandler);
  63092. procedure _Setonsuspend(const aValue: TEventHandler);
  63093. procedure _Setontimeupdate(const aValue: TEventHandler);
  63094. procedure _Setonvolumechange(const aValue: TEventHandler);
  63095. procedure _Setonwaiting(const aValue: TEventHandler);
  63096. procedure _Setonselectstart(const aValue: TEventHandler);
  63097. procedure _Setonselectionchange(const aValue: TEventHandler);
  63098. procedure _Setontoggle(const aValue: TEventHandler);
  63099. procedure _Setonpointercancel(const aValue: TEventHandler);
  63100. procedure _Setonpointerdown(const aValue: TEventHandler);
  63101. procedure _Setonpointerup(const aValue: TEventHandler);
  63102. procedure _Setonpointermove(const aValue: TEventHandler);
  63103. procedure _Setonpointerout(const aValue: TEventHandler);
  63104. procedure _Setonpointerover(const aValue: TEventHandler);
  63105. procedure _Setonpointerenter(const aValue: TEventHandler);
  63106. procedure _Setonpointerleave(const aValue: TEventHandler);
  63107. procedure _Setongotpointercapture(const aValue: TEventHandler);
  63108. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  63109. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  63110. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  63111. procedure _Setonanimationcancel(const aValue: TEventHandler);
  63112. procedure _Setonanimationend(const aValue: TEventHandler);
  63113. procedure _Setonanimationiteration(const aValue: TEventHandler);
  63114. procedure _Setonanimationstart(const aValue: TEventHandler);
  63115. procedure _Setontransitioncancel(const aValue: TEventHandler);
  63116. procedure _Setontransitionend(const aValue: TEventHandler);
  63117. procedure _Setontransitionrun(const aValue: TEventHandler);
  63118. procedure _Setontransitionstart(const aValue: TEventHandler);
  63119. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  63120. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  63121. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  63122. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  63123. procedure _Setautofocus(const aValue: Boolean);
  63124. procedure _SettabIndex(const aValue: LongInt);
  63125. procedure _Setontouchstart(const aValue: TEventHandler);
  63126. procedure _Setontouchend(const aValue: TEventHandler);
  63127. procedure _Setontouchmove(const aValue: TEventHandler);
  63128. procedure _Setontouchcancel(const aValue: TEventHandler);
  63129. procedure _Setonerror(const aValue: TEventHandler);
  63130. procedure focus(const aOptions: TJSFocusOptions);
  63131. procedure focus;
  63132. procedure blur;
  63133. property onabort: TEventHandler read _Getonabort write _Setonabort;
  63134. property onblur: TEventHandler read _Getonblur write _Setonblur;
  63135. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  63136. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  63137. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  63138. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  63139. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  63140. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  63141. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  63142. property onchange: TEventHandler read _Getonchange write _Setonchange;
  63143. property onclick: TEventHandler read _Getonclick write _Setonclick;
  63144. property onclose: TEventHandler read _Getonclose write _Setonclose;
  63145. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  63146. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  63147. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  63148. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  63149. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  63150. property oncut: TEventHandler read _Getoncut write _Setoncut;
  63151. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  63152. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  63153. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  63154. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  63155. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  63156. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  63157. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  63158. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  63159. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  63160. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  63161. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  63162. property onended: TEventHandler read _Getonended write _Setonended;
  63163. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  63164. property oninput: TEventHandler read _Getoninput write _Setoninput;
  63165. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  63166. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  63167. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  63168. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  63169. property onload: TEventHandler read _Getonload write _Setonload;
  63170. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  63171. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  63172. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  63173. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  63174. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  63175. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  63176. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  63177. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  63178. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  63179. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  63180. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  63181. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  63182. property onpause: TEventHandler read _Getonpause write _Setonpause;
  63183. property onplay: TEventHandler read _Getonplay write _Setonplay;
  63184. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  63185. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  63186. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  63187. property onreset: TEventHandler read _Getonreset write _Setonreset;
  63188. property onresize: TEventHandler read _Getonresize write _Setonresize;
  63189. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  63190. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  63191. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  63192. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  63193. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  63194. property onselect: TEventHandler read _Getonselect write _Setonselect;
  63195. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  63196. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  63197. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  63198. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  63199. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  63200. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  63201. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  63202. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  63203. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  63204. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  63205. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  63206. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  63207. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  63208. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  63209. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  63210. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  63211. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  63212. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  63213. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  63214. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  63215. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  63216. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  63217. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  63218. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  63219. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  63220. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  63221. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  63222. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  63223. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  63224. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  63225. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  63226. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  63227. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  63228. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  63229. property dataset: IJSDOMStringMap read _Getdataset;
  63230. property autofocus: Boolean read _Getautofocus write _Setautofocus;
  63231. property tabIndex: LongInt read _GettabIndex write _SettabIndex;
  63232. property style: IJSCSSStyleDeclaration read _Getstyle;
  63233. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  63234. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  63235. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  63236. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  63237. property onerror: TEventHandler read _Getonerror write _Setonerror;
  63238. end;
  63239. TJSMathMLElement = class(TJSElement,IJSMathMLElement)
  63240. Protected
  63241. function _Getonabort: TEventHandler;
  63242. function _Getonblur: TEventHandler;
  63243. function _Getonfocus: TEventHandler;
  63244. function _Getoncancel: TEventHandler;
  63245. function _Getonauxclick: TEventHandler;
  63246. function _Getonbeforeinput: TEventHandler;
  63247. function _Getonbeforetoggle: TEventHandler;
  63248. function _Getoncanplay: TEventHandler;
  63249. function _Getoncanplaythrough: TEventHandler;
  63250. function _Getonchange: TEventHandler;
  63251. function _Getonclick: TEventHandler;
  63252. function _Getonclose: TEventHandler;
  63253. function _Getoncontextlost: TEventHandler;
  63254. function _Getoncontextmenu: TEventHandler;
  63255. function _Getoncontextrestored: TEventHandler;
  63256. function _Getoncopy: TEventHandler;
  63257. function _Getoncuechange: TEventHandler;
  63258. function _Getoncut: TEventHandler;
  63259. function _Getondblclick: TEventHandler;
  63260. function _Getondrag: TEventHandler;
  63261. function _Getondragend: TEventHandler;
  63262. function _Getondragenter: TEventHandler;
  63263. function _Getondragexit: TEventHandler;
  63264. function _Getondragleave: TEventHandler;
  63265. function _Getondragover: TEventHandler;
  63266. function _Getondragstart: TEventHandler;
  63267. function _Getondrop: TEventHandler;
  63268. function _Getondurationchange: TEventHandler;
  63269. function _Getonemptied: TEventHandler;
  63270. function _Getonended: TEventHandler;
  63271. function _Getonformdata: TEventHandler;
  63272. function _Getoninput: TEventHandler;
  63273. function _Getoninvalid: TEventHandler;
  63274. function _Getonkeydown: TEventHandler;
  63275. function _Getonkeypress: TEventHandler;
  63276. function _Getonkeyup: TEventHandler;
  63277. function _Getonload: TEventHandler;
  63278. function _Getonloadeddata: TEventHandler;
  63279. function _Getonloadedmetadata: TEventHandler;
  63280. function _Getonloadstart: TEventHandler;
  63281. function _Getonmousedown: TEventHandler;
  63282. function _Getonmouseenter: TEventHandler;
  63283. function _Getonmouseleave: TEventHandler;
  63284. function _Getonmousemove: TEventHandler;
  63285. function _Getonmouseout: TEventHandler;
  63286. function _Getonmouseover: TEventHandler;
  63287. function _Getonmouseup: TEventHandler;
  63288. function _Getonwheel: TEventHandler;
  63289. function _Getonpaste: TEventHandler;
  63290. function _Getonpause: TEventHandler;
  63291. function _Getonplay: TEventHandler;
  63292. function _Getonplaying: TEventHandler;
  63293. function _Getonprogress: TEventHandler;
  63294. function _Getonratechange: TEventHandler;
  63295. function _Getonreset: TEventHandler;
  63296. function _Getonresize: TEventHandler;
  63297. function _Getonscroll: TEventHandler;
  63298. function _Getonscrollend: TEventHandler;
  63299. function _Getonsecuritypolicyviolation: TEventHandler;
  63300. function _Getonseeked: TEventHandler;
  63301. function _Getonseeking: TEventHandler;
  63302. function _Getonselect: TEventHandler;
  63303. function _Getonslotchange: TEventHandler;
  63304. function _Getonstalled: TEventHandler;
  63305. function _Getonsubmit: TEventHandler;
  63306. function _Getonsuspend: TEventHandler;
  63307. function _Getontimeupdate: TEventHandler;
  63308. function _Getonvolumechange: TEventHandler;
  63309. function _Getonwaiting: TEventHandler;
  63310. function _Getonselectstart: TEventHandler;
  63311. function _Getonselectionchange: TEventHandler;
  63312. function _Getontoggle: TEventHandler;
  63313. function _Getonpointercancel: TEventHandler;
  63314. function _Getonpointerdown: TEventHandler;
  63315. function _Getonpointerup: TEventHandler;
  63316. function _Getonpointermove: TEventHandler;
  63317. function _Getonpointerout: TEventHandler;
  63318. function _Getonpointerover: TEventHandler;
  63319. function _Getonpointerenter: TEventHandler;
  63320. function _Getonpointerleave: TEventHandler;
  63321. function _Getongotpointercapture: TEventHandler;
  63322. function _Getonlostpointercapture: TEventHandler;
  63323. function _Getonmozfullscreenchange: TEventHandler;
  63324. function _Getonmozfullscreenerror: TEventHandler;
  63325. function _Getonanimationcancel: TEventHandler;
  63326. function _Getonanimationend: TEventHandler;
  63327. function _Getonanimationiteration: TEventHandler;
  63328. function _Getonanimationstart: TEventHandler;
  63329. function _Getontransitioncancel: TEventHandler;
  63330. function _Getontransitionend: TEventHandler;
  63331. function _Getontransitionrun: TEventHandler;
  63332. function _Getontransitionstart: TEventHandler;
  63333. function _Getonwebkitanimationend: TEventHandler;
  63334. function _Getonwebkitanimationiteration: TEventHandler;
  63335. function _Getonwebkitanimationstart: TEventHandler;
  63336. function _Getonwebkittransitionend: TEventHandler;
  63337. function _Getdataset: IJSDOMStringMap;
  63338. function _Getautofocus: Boolean;
  63339. function _GettabIndex: LongInt;
  63340. function _Getstyle: IJSCSSStyleDeclaration;
  63341. function _Getontouchstart: TEventHandler;
  63342. function _Getontouchend: TEventHandler;
  63343. function _Getontouchmove: TEventHandler;
  63344. function _Getontouchcancel: TEventHandler;
  63345. function _Getonerror: TEventHandler;
  63346. procedure _Setonabort(const aValue: TEventHandler);
  63347. procedure _Setonblur(const aValue: TEventHandler);
  63348. procedure _Setonfocus(const aValue: TEventHandler);
  63349. procedure _Setoncancel(const aValue: TEventHandler);
  63350. procedure _Setonauxclick(const aValue: TEventHandler);
  63351. procedure _Setonbeforeinput(const aValue: TEventHandler);
  63352. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  63353. procedure _Setoncanplay(const aValue: TEventHandler);
  63354. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  63355. procedure _Setonchange(const aValue: TEventHandler);
  63356. procedure _Setonclick(const aValue: TEventHandler);
  63357. procedure _Setonclose(const aValue: TEventHandler);
  63358. procedure _Setoncontextlost(const aValue: TEventHandler);
  63359. procedure _Setoncontextmenu(const aValue: TEventHandler);
  63360. procedure _Setoncontextrestored(const aValue: TEventHandler);
  63361. procedure _Setoncopy(const aValue: TEventHandler);
  63362. procedure _Setoncuechange(const aValue: TEventHandler);
  63363. procedure _Setoncut(const aValue: TEventHandler);
  63364. procedure _Setondblclick(const aValue: TEventHandler);
  63365. procedure _Setondrag(const aValue: TEventHandler);
  63366. procedure _Setondragend(const aValue: TEventHandler);
  63367. procedure _Setondragenter(const aValue: TEventHandler);
  63368. procedure _Setondragexit(const aValue: TEventHandler);
  63369. procedure _Setondragleave(const aValue: TEventHandler);
  63370. procedure _Setondragover(const aValue: TEventHandler);
  63371. procedure _Setondragstart(const aValue: TEventHandler);
  63372. procedure _Setondrop(const aValue: TEventHandler);
  63373. procedure _Setondurationchange(const aValue: TEventHandler);
  63374. procedure _Setonemptied(const aValue: TEventHandler);
  63375. procedure _Setonended(const aValue: TEventHandler);
  63376. procedure _Setonformdata(const aValue: TEventHandler);
  63377. procedure _Setoninput(const aValue: TEventHandler);
  63378. procedure _Setoninvalid(const aValue: TEventHandler);
  63379. procedure _Setonkeydown(const aValue: TEventHandler);
  63380. procedure _Setonkeypress(const aValue: TEventHandler);
  63381. procedure _Setonkeyup(const aValue: TEventHandler);
  63382. procedure _Setonload(const aValue: TEventHandler);
  63383. procedure _Setonloadeddata(const aValue: TEventHandler);
  63384. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  63385. procedure _Setonloadstart(const aValue: TEventHandler);
  63386. procedure _Setonmousedown(const aValue: TEventHandler);
  63387. procedure _Setonmouseenter(const aValue: TEventHandler);
  63388. procedure _Setonmouseleave(const aValue: TEventHandler);
  63389. procedure _Setonmousemove(const aValue: TEventHandler);
  63390. procedure _Setonmouseout(const aValue: TEventHandler);
  63391. procedure _Setonmouseover(const aValue: TEventHandler);
  63392. procedure _Setonmouseup(const aValue: TEventHandler);
  63393. procedure _Setonwheel(const aValue: TEventHandler);
  63394. procedure _Setonpaste(const aValue: TEventHandler);
  63395. procedure _Setonpause(const aValue: TEventHandler);
  63396. procedure _Setonplay(const aValue: TEventHandler);
  63397. procedure _Setonplaying(const aValue: TEventHandler);
  63398. procedure _Setonprogress(const aValue: TEventHandler);
  63399. procedure _Setonratechange(const aValue: TEventHandler);
  63400. procedure _Setonreset(const aValue: TEventHandler);
  63401. procedure _Setonresize(const aValue: TEventHandler);
  63402. procedure _Setonscroll(const aValue: TEventHandler);
  63403. procedure _Setonscrollend(const aValue: TEventHandler);
  63404. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  63405. procedure _Setonseeked(const aValue: TEventHandler);
  63406. procedure _Setonseeking(const aValue: TEventHandler);
  63407. procedure _Setonselect(const aValue: TEventHandler);
  63408. procedure _Setonslotchange(const aValue: TEventHandler);
  63409. procedure _Setonstalled(const aValue: TEventHandler);
  63410. procedure _Setonsubmit(const aValue: TEventHandler);
  63411. procedure _Setonsuspend(const aValue: TEventHandler);
  63412. procedure _Setontimeupdate(const aValue: TEventHandler);
  63413. procedure _Setonvolumechange(const aValue: TEventHandler);
  63414. procedure _Setonwaiting(const aValue: TEventHandler);
  63415. procedure _Setonselectstart(const aValue: TEventHandler);
  63416. procedure _Setonselectionchange(const aValue: TEventHandler);
  63417. procedure _Setontoggle(const aValue: TEventHandler);
  63418. procedure _Setonpointercancel(const aValue: TEventHandler);
  63419. procedure _Setonpointerdown(const aValue: TEventHandler);
  63420. procedure _Setonpointerup(const aValue: TEventHandler);
  63421. procedure _Setonpointermove(const aValue: TEventHandler);
  63422. procedure _Setonpointerout(const aValue: TEventHandler);
  63423. procedure _Setonpointerover(const aValue: TEventHandler);
  63424. procedure _Setonpointerenter(const aValue: TEventHandler);
  63425. procedure _Setonpointerleave(const aValue: TEventHandler);
  63426. procedure _Setongotpointercapture(const aValue: TEventHandler);
  63427. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  63428. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  63429. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  63430. procedure _Setonanimationcancel(const aValue: TEventHandler);
  63431. procedure _Setonanimationend(const aValue: TEventHandler);
  63432. procedure _Setonanimationiteration(const aValue: TEventHandler);
  63433. procedure _Setonanimationstart(const aValue: TEventHandler);
  63434. procedure _Setontransitioncancel(const aValue: TEventHandler);
  63435. procedure _Setontransitionend(const aValue: TEventHandler);
  63436. procedure _Setontransitionrun(const aValue: TEventHandler);
  63437. procedure _Setontransitionstart(const aValue: TEventHandler);
  63438. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  63439. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  63440. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  63441. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  63442. procedure _Setautofocus(const aValue: Boolean);
  63443. procedure _SettabIndex(const aValue: LongInt);
  63444. procedure _Setontouchstart(const aValue: TEventHandler);
  63445. procedure _Setontouchend(const aValue: TEventHandler);
  63446. procedure _Setontouchmove(const aValue: TEventHandler);
  63447. procedure _Setontouchcancel(const aValue: TEventHandler);
  63448. procedure _Setonerror(const aValue: TEventHandler);
  63449. Public
  63450. procedure focus(const aOptions: TJSFocusOptions); overload;
  63451. procedure focus; overload;
  63452. procedure blur; overload;
  63453. class function JSClassName: UnicodeString; override;
  63454. class function Cast(const Intf: IJSObject): IJSMathMLElement;
  63455. property onabort: TEventHandler read _Getonabort write _Setonabort;
  63456. property onblur: TEventHandler read _Getonblur write _Setonblur;
  63457. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  63458. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  63459. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  63460. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  63461. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  63462. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  63463. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  63464. property onchange: TEventHandler read _Getonchange write _Setonchange;
  63465. property onclick: TEventHandler read _Getonclick write _Setonclick;
  63466. property onclose: TEventHandler read _Getonclose write _Setonclose;
  63467. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  63468. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  63469. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  63470. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  63471. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  63472. property oncut: TEventHandler read _Getoncut write _Setoncut;
  63473. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  63474. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  63475. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  63476. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  63477. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  63478. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  63479. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  63480. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  63481. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  63482. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  63483. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  63484. property onended: TEventHandler read _Getonended write _Setonended;
  63485. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  63486. property oninput: TEventHandler read _Getoninput write _Setoninput;
  63487. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  63488. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  63489. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  63490. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  63491. property onload: TEventHandler read _Getonload write _Setonload;
  63492. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  63493. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  63494. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  63495. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  63496. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  63497. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  63498. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  63499. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  63500. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  63501. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  63502. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  63503. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  63504. property onpause: TEventHandler read _Getonpause write _Setonpause;
  63505. property onplay: TEventHandler read _Getonplay write _Setonplay;
  63506. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  63507. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  63508. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  63509. property onreset: TEventHandler read _Getonreset write _Setonreset;
  63510. property onresize: TEventHandler read _Getonresize write _Setonresize;
  63511. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  63512. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  63513. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  63514. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  63515. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  63516. property onselect: TEventHandler read _Getonselect write _Setonselect;
  63517. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  63518. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  63519. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  63520. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  63521. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  63522. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  63523. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  63524. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  63525. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  63526. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  63527. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  63528. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  63529. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  63530. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  63531. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  63532. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  63533. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  63534. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  63535. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  63536. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  63537. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  63538. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  63539. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  63540. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  63541. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  63542. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  63543. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  63544. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  63545. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  63546. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  63547. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  63548. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  63549. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  63550. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  63551. property dataset: IJSDOMStringMap read _Getdataset;
  63552. property autofocus: Boolean read _Getautofocus write _Setautofocus;
  63553. property tabIndex: LongInt read _GettabIndex write _SettabIndex;
  63554. property style: IJSCSSStyleDeclaration read _Getstyle;
  63555. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  63556. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  63557. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  63558. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  63559. property onerror: TEventHandler read _Getonerror write _Setonerror;
  63560. end;
  63561. { --------------------------------------------------------------------
  63562. TJSMouseScrollEvent
  63563. --------------------------------------------------------------------}
  63564. IJSMouseScrollEvent = interface(IJSMouseEvent)
  63565. ['{0AA5CB2C-174A-3C89-B569-59E94C893F34}']
  63566. function _Getaxis: LongInt;
  63567. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aButton: SmallInt; aRelatedTarget: IJSEventTarget; aAxis: LongInt);
  63568. procedure initMouseScrollEvent(const aType_: UnicodeString);
  63569. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  63570. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  63571. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow);
  63572. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt);
  63573. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt);
  63574. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt);
  63575. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt);
  63576. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt);
  63577. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean);
  63578. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean);
  63579. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean);
  63580. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean);
  63581. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aButton: SmallInt);
  63582. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aButton: SmallInt; aRelatedTarget: IJSEventTarget);
  63583. property axis: LongInt read _Getaxis;
  63584. end;
  63585. TJSMouseScrollEvent = class(TJSMouseEvent,IJSMouseScrollEvent)
  63586. Protected
  63587. function _Getaxis: LongInt;
  63588. Public
  63589. Const
  63590. HORIZONTAL_AXIS = 1;
  63591. VERTICAL_AXIS = 2;
  63592. Public
  63593. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aButton: SmallInt; aRelatedTarget: IJSEventTarget; aAxis: LongInt); overload;
  63594. procedure initMouseScrollEvent(const aType_: UnicodeString); overload;
  63595. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean); overload;
  63596. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean); overload;
  63597. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow); overload;
  63598. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt); overload;
  63599. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt); overload;
  63600. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt); overload;
  63601. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt); overload;
  63602. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt); overload;
  63603. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean); overload;
  63604. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean); overload;
  63605. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean); overload;
  63606. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean); overload;
  63607. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aButton: SmallInt); overload;
  63608. procedure initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aButton: SmallInt; aRelatedTarget: IJSEventTarget); overload;
  63609. class function JSClassName: UnicodeString; override;
  63610. class function Cast(const Intf: IJSObject): IJSMouseScrollEvent;
  63611. property axis: LongInt read _Getaxis;
  63612. end;
  63613. { --------------------------------------------------------------------
  63614. TJSOscillatorNode
  63615. --------------------------------------------------------------------}
  63616. IJSOscillatorNode = interface(IJSAudioScheduledSourceNode)
  63617. ['{0C958E71-6D54-3F80-8340-CF612B6DA474}']
  63618. function _Gettype_: TOscillatorType;
  63619. function _Getfrequency: IJSAudioParam;
  63620. function _Getdetune: IJSAudioParam;
  63621. procedure _Settype_(const aValue: TOscillatorType);
  63622. procedure setPeriodicWave(aPeriodicWave: IJSPeriodicWave);
  63623. property type_: TOscillatorType read _Gettype_ write _Settype_;
  63624. property frequency: IJSAudioParam read _Getfrequency;
  63625. property detune: IJSAudioParam read _Getdetune;
  63626. end;
  63627. TJSOscillatorNode = class(TJSAudioScheduledSourceNode,IJSOscillatorNode)
  63628. Protected
  63629. function _Gettype_: TOscillatorType;
  63630. function _Getfrequency: IJSAudioParam;
  63631. function _Getdetune: IJSAudioParam;
  63632. procedure _Settype_(const aValue: TOscillatorType);
  63633. Public
  63634. constructor Create(aContext: IJSBaseAudioContext; const aOptions: TJSOscillatorOptions); overload;
  63635. constructor Create(aContext: IJSBaseAudioContext); overload;
  63636. procedure setPeriodicWave(aPeriodicWave: IJSPeriodicWave); overload;
  63637. class function JSClassName: UnicodeString; override;
  63638. class function Cast(const Intf: IJSObject): IJSOscillatorNode;
  63639. property type_: TOscillatorType read _Gettype_ write _Settype_;
  63640. property frequency: IJSAudioParam read _Getfrequency;
  63641. property detune: IJSAudioParam read _Getdetune;
  63642. end;
  63643. { --------------------------------------------------------------------
  63644. TJSPointerEvent
  63645. --------------------------------------------------------------------}
  63646. IJSPointerEvent = interface(IJSMouseEvent)
  63647. ['{1EBB15A9-FD6D-3839-A941-0F79345C940C}']
  63648. function _GetpointerId: LongInt;
  63649. function _Getwidth: LongInt;
  63650. function _Getheight: LongInt;
  63651. function _Getpressure: Single;
  63652. function _GettangentialPressure: Single;
  63653. function _GettiltX: LongInt;
  63654. function _GettiltY: LongInt;
  63655. function _Gettwist: LongInt;
  63656. function _GetpointerType: UnicodeString;
  63657. function _GetisPrimary: Boolean;
  63658. function getCoalescedEvents: TJSPointerEventDynArray;
  63659. function getPredictedEvents: TJSPointerEventDynArray;
  63660. property pointerId: LongInt read _GetpointerId;
  63661. property width: LongInt read _Getwidth;
  63662. property height: LongInt read _Getheight;
  63663. property pressure: Single read _Getpressure;
  63664. property tangentialPressure: Single read _GettangentialPressure;
  63665. property tiltX: LongInt read _GettiltX;
  63666. property tiltY: LongInt read _GettiltY;
  63667. property twist: LongInt read _Gettwist;
  63668. property pointerType: UnicodeString read _GetpointerType;
  63669. property isPrimary: Boolean read _GetisPrimary;
  63670. end;
  63671. TJSPointerEvent = class(TJSMouseEvent,IJSPointerEvent)
  63672. Protected
  63673. function _GetpointerId: LongInt;
  63674. function _Getwidth: LongInt;
  63675. function _Getheight: LongInt;
  63676. function _Getpressure: Single;
  63677. function _GettangentialPressure: Single;
  63678. function _GettiltX: LongInt;
  63679. function _GettiltY: LongInt;
  63680. function _Gettwist: LongInt;
  63681. function _GetpointerType: UnicodeString;
  63682. function _GetisPrimary: Boolean;
  63683. Public
  63684. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSPointerEventInit); overload;
  63685. constructor Create(const aType_: UnicodeString); overload;
  63686. function getCoalescedEvents: TJSPointerEventDynArray; overload;
  63687. function getPredictedEvents: TJSPointerEventDynArray; overload;
  63688. class function JSClassName: UnicodeString; override;
  63689. class function Cast(const Intf: IJSObject): IJSPointerEvent;
  63690. property pointerId: LongInt read _GetpointerId;
  63691. property width: LongInt read _Getwidth;
  63692. property height: LongInt read _Getheight;
  63693. property pressure: Single read _Getpressure;
  63694. property tangentialPressure: Single read _GettangentialPressure;
  63695. property tiltX: LongInt read _GettiltX;
  63696. property tiltY: LongInt read _GettiltY;
  63697. property twist: LongInt read _Gettwist;
  63698. property pointerType: UnicodeString read _GetpointerType;
  63699. property isPrimary: Boolean read _GetisPrimary;
  63700. end;
  63701. { --------------------------------------------------------------------
  63702. TJSProcessingInstruction
  63703. --------------------------------------------------------------------}
  63704. IJSProcessingInstruction = interface(IJSCharacterData)
  63705. ['{73D5F6EC-4820-3C4C-A734-E9619913B82C}']
  63706. function _Gettarget: UnicodeString;
  63707. function _Getsheet: IJSStyleSheet;
  63708. property target: UnicodeString read _Gettarget;
  63709. property sheet: IJSStyleSheet read _Getsheet;
  63710. end;
  63711. TJSProcessingInstruction = class(TJSCharacterData,IJSProcessingInstruction)
  63712. Protected
  63713. function _Gettarget: UnicodeString;
  63714. function _Getsheet: IJSStyleSheet;
  63715. Public
  63716. class function JSClassName: UnicodeString; override;
  63717. class function Cast(const Intf: IJSObject): IJSProcessingInstruction;
  63718. property target: UnicodeString read _Gettarget;
  63719. property sheet: IJSStyleSheet read _Getsheet;
  63720. end;
  63721. { --------------------------------------------------------------------
  63722. TJSShadowRoot
  63723. --------------------------------------------------------------------}
  63724. IJSShadowRoot = interface(IJSDocumentFragment)
  63725. ['{DE1D6D95-9EE6-3AC9-9056-F48730FACE38}']
  63726. function _Getmode: TShadowRootMode;
  63727. function _GetdelegatesFocus: Boolean;
  63728. function _GetslotAssignment: TSlotAssignmentMode;
  63729. function _Getclonable: Boolean;
  63730. function _Gethost: IJSElement;
  63731. function _Getonslotchange: TEventHandler;
  63732. function _GetinnerHTML: UnicodeString;
  63733. function _GetactiveElement: IJSElement;
  63734. function _GetstyleSheets: IJSStyleSheetList;
  63735. function _GetpointerLockElement: IJSElement;
  63736. function _GetfullscreenElement: IJSElement;
  63737. function _GetmozFullScreenElement: IJSElement;
  63738. function _GetadoptedStyleSheets: TJSCSSStyleSheetDynArray;
  63739. procedure _Setonslotchange(const aValue: TEventHandler);
  63740. procedure _SetinnerHTML(const aValue: UnicodeString);
  63741. procedure _SetadoptedStyleSheets(const aValue: TJSCSSStyleSheetDynArray);
  63742. function getElementById(const aElementId: UnicodeString): IJSElement;
  63743. function importNodeAndAppendChildAt(aParentNode: IJSNode; aNode: IJSNode; aDeep: Boolean): IJSNode;
  63744. function importNodeAndAppendChildAt(aParentNode: IJSNode; aNode: IJSNode): IJSNode;
  63745. function createElementAndAppendChildAt(aParentNode: IJSNode; const aLocalName: UnicodeString): IJSNode;
  63746. procedure setHTMLUnsafe(const aHtml: UnicodeString);
  63747. function elementFromPoint(aX: Single; aY: Single): IJSElement;
  63748. function elementsFromPoint(aX: Single; aY: Single): TJSElementDynArray;
  63749. function getAnimations: TJSAnimationDynArray;
  63750. property mode: TShadowRootMode read _Getmode;
  63751. property delegatesFocus: Boolean read _GetdelegatesFocus;
  63752. property slotAssignment: TSlotAssignmentMode read _GetslotAssignment;
  63753. property clonable: Boolean read _Getclonable;
  63754. property host: IJSElement read _Gethost;
  63755. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  63756. property innerHTML: UnicodeString read _GetinnerHTML write _SetinnerHTML;
  63757. property activeElement: IJSElement read _GetactiveElement;
  63758. property styleSheets: IJSStyleSheetList read _GetstyleSheets;
  63759. property pointerLockElement: IJSElement read _GetpointerLockElement;
  63760. property fullscreenElement: IJSElement read _GetfullscreenElement;
  63761. property mozFullScreenElement: IJSElement read _GetmozFullScreenElement;
  63762. property adoptedStyleSheets: TJSCSSStyleSheetDynArray read _GetadoptedStyleSheets write _SetadoptedStyleSheets;
  63763. end;
  63764. TJSShadowRoot = class(TJSDocumentFragment,IJSShadowRoot)
  63765. Protected
  63766. function _Getmode: TShadowRootMode;
  63767. function _GetdelegatesFocus: Boolean;
  63768. function _GetslotAssignment: TSlotAssignmentMode;
  63769. function _Getclonable: Boolean;
  63770. function _Gethost: IJSElement;
  63771. function _Getonslotchange: TEventHandler;
  63772. function _GetinnerHTML: UnicodeString;
  63773. function _GetactiveElement: IJSElement;
  63774. function _GetstyleSheets: IJSStyleSheetList;
  63775. function _GetpointerLockElement: IJSElement;
  63776. function _GetfullscreenElement: IJSElement;
  63777. function _GetmozFullScreenElement: IJSElement;
  63778. function _GetadoptedStyleSheets: TJSCSSStyleSheetDynArray;
  63779. procedure _Setonslotchange(const aValue: TEventHandler);
  63780. procedure _SetinnerHTML(const aValue: UnicodeString);
  63781. procedure _SetadoptedStyleSheets(const aValue: TJSCSSStyleSheetDynArray);
  63782. Public
  63783. function getElementById(const aElementId: UnicodeString): IJSElement; overload;
  63784. function importNodeAndAppendChildAt(aParentNode: IJSNode; aNode: IJSNode; aDeep: Boolean): IJSNode; overload;
  63785. function importNodeAndAppendChildAt(aParentNode: IJSNode; aNode: IJSNode): IJSNode; overload;
  63786. function createElementAndAppendChildAt(aParentNode: IJSNode; const aLocalName: UnicodeString): IJSNode; overload;
  63787. procedure setHTMLUnsafe(const aHtml: UnicodeString); overload;
  63788. function elementFromPoint(aX: Single; aY: Single): IJSElement; overload;
  63789. function elementsFromPoint(aX: Single; aY: Single): TJSElementDynArray; overload;
  63790. function getAnimations: TJSAnimationDynArray; overload;
  63791. class function JSClassName: UnicodeString; override;
  63792. class function Cast(const Intf: IJSObject): IJSShadowRoot;
  63793. property mode: TShadowRootMode read _Getmode;
  63794. property delegatesFocus: Boolean read _GetdelegatesFocus;
  63795. property slotAssignment: TSlotAssignmentMode read _GetslotAssignment;
  63796. property clonable: Boolean read _Getclonable;
  63797. property host: IJSElement read _Gethost;
  63798. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  63799. property innerHTML: UnicodeString read _GetinnerHTML write _SetinnerHTML;
  63800. property activeElement: IJSElement read _GetactiveElement;
  63801. property styleSheets: IJSStyleSheetList read _GetstyleSheets;
  63802. property pointerLockElement: IJSElement read _GetpointerLockElement;
  63803. property fullscreenElement: IJSElement read _GetfullscreenElement;
  63804. property mozFullScreenElement: IJSElement read _GetmozFullScreenElement;
  63805. property adoptedStyleSheets: TJSCSSStyleSheetDynArray read _GetadoptedStyleSheets write _SetadoptedStyleSheets;
  63806. end;
  63807. { --------------------------------------------------------------------
  63808. TJSSVGElement
  63809. --------------------------------------------------------------------}
  63810. IJSSVGElement = interface(IJSElement)
  63811. ['{868ADAA5-CF9B-3E63-8B25-7E8C1EB87B94}']
  63812. function _Getid2: UnicodeString;
  63813. function _GetclassName_2: IJSSVGAnimatedString;
  63814. function _GetownerSVGElement: IJSSVGSVGElement;
  63815. function _GetviewportElement: IJSSVGElement;
  63816. function _Getnonce: UnicodeString;
  63817. function _Getonabort: TEventHandler;
  63818. function _Getonblur: TEventHandler;
  63819. function _Getonfocus: TEventHandler;
  63820. function _Getoncancel: TEventHandler;
  63821. function _Getonauxclick: TEventHandler;
  63822. function _Getonbeforeinput: TEventHandler;
  63823. function _Getonbeforetoggle: TEventHandler;
  63824. function _Getoncanplay: TEventHandler;
  63825. function _Getoncanplaythrough: TEventHandler;
  63826. function _Getonchange: TEventHandler;
  63827. function _Getonclick: TEventHandler;
  63828. function _Getonclose: TEventHandler;
  63829. function _Getoncontextlost: TEventHandler;
  63830. function _Getoncontextmenu: TEventHandler;
  63831. function _Getoncontextrestored: TEventHandler;
  63832. function _Getoncopy: TEventHandler;
  63833. function _Getoncuechange: TEventHandler;
  63834. function _Getoncut: TEventHandler;
  63835. function _Getondblclick: TEventHandler;
  63836. function _Getondrag: TEventHandler;
  63837. function _Getondragend: TEventHandler;
  63838. function _Getondragenter: TEventHandler;
  63839. function _Getondragexit: TEventHandler;
  63840. function _Getondragleave: TEventHandler;
  63841. function _Getondragover: TEventHandler;
  63842. function _Getondragstart: TEventHandler;
  63843. function _Getondrop: TEventHandler;
  63844. function _Getondurationchange: TEventHandler;
  63845. function _Getonemptied: TEventHandler;
  63846. function _Getonended: TEventHandler;
  63847. function _Getonformdata: TEventHandler;
  63848. function _Getoninput: TEventHandler;
  63849. function _Getoninvalid: TEventHandler;
  63850. function _Getonkeydown: TEventHandler;
  63851. function _Getonkeypress: TEventHandler;
  63852. function _Getonkeyup: TEventHandler;
  63853. function _Getonload: TEventHandler;
  63854. function _Getonloadeddata: TEventHandler;
  63855. function _Getonloadedmetadata: TEventHandler;
  63856. function _Getonloadstart: TEventHandler;
  63857. function _Getonmousedown: TEventHandler;
  63858. function _Getonmouseenter: TEventHandler;
  63859. function _Getonmouseleave: TEventHandler;
  63860. function _Getonmousemove: TEventHandler;
  63861. function _Getonmouseout: TEventHandler;
  63862. function _Getonmouseover: TEventHandler;
  63863. function _Getonmouseup: TEventHandler;
  63864. function _Getonwheel: TEventHandler;
  63865. function _Getonpaste: TEventHandler;
  63866. function _Getonpause: TEventHandler;
  63867. function _Getonplay: TEventHandler;
  63868. function _Getonplaying: TEventHandler;
  63869. function _Getonprogress: TEventHandler;
  63870. function _Getonratechange: TEventHandler;
  63871. function _Getonreset: TEventHandler;
  63872. function _Getonresize: TEventHandler;
  63873. function _Getonscroll: TEventHandler;
  63874. function _Getonscrollend: TEventHandler;
  63875. function _Getonsecuritypolicyviolation: TEventHandler;
  63876. function _Getonseeked: TEventHandler;
  63877. function _Getonseeking: TEventHandler;
  63878. function _Getonselect: TEventHandler;
  63879. function _Getonslotchange: TEventHandler;
  63880. function _Getonstalled: TEventHandler;
  63881. function _Getonsubmit: TEventHandler;
  63882. function _Getonsuspend: TEventHandler;
  63883. function _Getontimeupdate: TEventHandler;
  63884. function _Getonvolumechange: TEventHandler;
  63885. function _Getonwaiting: TEventHandler;
  63886. function _Getonselectstart: TEventHandler;
  63887. function _Getonselectionchange: TEventHandler;
  63888. function _Getontoggle: TEventHandler;
  63889. function _Getonpointercancel: TEventHandler;
  63890. function _Getonpointerdown: TEventHandler;
  63891. function _Getonpointerup: TEventHandler;
  63892. function _Getonpointermove: TEventHandler;
  63893. function _Getonpointerout: TEventHandler;
  63894. function _Getonpointerover: TEventHandler;
  63895. function _Getonpointerenter: TEventHandler;
  63896. function _Getonpointerleave: TEventHandler;
  63897. function _Getongotpointercapture: TEventHandler;
  63898. function _Getonlostpointercapture: TEventHandler;
  63899. function _Getonmozfullscreenchange: TEventHandler;
  63900. function _Getonmozfullscreenerror: TEventHandler;
  63901. function _Getonanimationcancel: TEventHandler;
  63902. function _Getonanimationend: TEventHandler;
  63903. function _Getonanimationiteration: TEventHandler;
  63904. function _Getonanimationstart: TEventHandler;
  63905. function _Getontransitioncancel: TEventHandler;
  63906. function _Getontransitionend: TEventHandler;
  63907. function _Getontransitionrun: TEventHandler;
  63908. function _Getontransitionstart: TEventHandler;
  63909. function _Getonwebkitanimationend: TEventHandler;
  63910. function _Getonwebkitanimationiteration: TEventHandler;
  63911. function _Getonwebkitanimationstart: TEventHandler;
  63912. function _Getonwebkittransitionend: TEventHandler;
  63913. function _Getdataset: IJSDOMStringMap;
  63914. function _Getautofocus: Boolean;
  63915. function _GettabIndex: LongInt;
  63916. function _Getstyle: IJSCSSStyleDeclaration;
  63917. function _Getontouchstart: TEventHandler;
  63918. function _Getontouchend: TEventHandler;
  63919. function _Getontouchmove: TEventHandler;
  63920. function _Getontouchcancel: TEventHandler;
  63921. function _Getonerror: TEventHandler;
  63922. procedure _Setid2(const aValue: UnicodeString);
  63923. procedure _Setnonce(const aValue: UnicodeString);
  63924. procedure _Setonabort(const aValue: TEventHandler);
  63925. procedure _Setonblur(const aValue: TEventHandler);
  63926. procedure _Setonfocus(const aValue: TEventHandler);
  63927. procedure _Setoncancel(const aValue: TEventHandler);
  63928. procedure _Setonauxclick(const aValue: TEventHandler);
  63929. procedure _Setonbeforeinput(const aValue: TEventHandler);
  63930. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  63931. procedure _Setoncanplay(const aValue: TEventHandler);
  63932. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  63933. procedure _Setonchange(const aValue: TEventHandler);
  63934. procedure _Setonclick(const aValue: TEventHandler);
  63935. procedure _Setonclose(const aValue: TEventHandler);
  63936. procedure _Setoncontextlost(const aValue: TEventHandler);
  63937. procedure _Setoncontextmenu(const aValue: TEventHandler);
  63938. procedure _Setoncontextrestored(const aValue: TEventHandler);
  63939. procedure _Setoncopy(const aValue: TEventHandler);
  63940. procedure _Setoncuechange(const aValue: TEventHandler);
  63941. procedure _Setoncut(const aValue: TEventHandler);
  63942. procedure _Setondblclick(const aValue: TEventHandler);
  63943. procedure _Setondrag(const aValue: TEventHandler);
  63944. procedure _Setondragend(const aValue: TEventHandler);
  63945. procedure _Setondragenter(const aValue: TEventHandler);
  63946. procedure _Setondragexit(const aValue: TEventHandler);
  63947. procedure _Setondragleave(const aValue: TEventHandler);
  63948. procedure _Setondragover(const aValue: TEventHandler);
  63949. procedure _Setondragstart(const aValue: TEventHandler);
  63950. procedure _Setondrop(const aValue: TEventHandler);
  63951. procedure _Setondurationchange(const aValue: TEventHandler);
  63952. procedure _Setonemptied(const aValue: TEventHandler);
  63953. procedure _Setonended(const aValue: TEventHandler);
  63954. procedure _Setonformdata(const aValue: TEventHandler);
  63955. procedure _Setoninput(const aValue: TEventHandler);
  63956. procedure _Setoninvalid(const aValue: TEventHandler);
  63957. procedure _Setonkeydown(const aValue: TEventHandler);
  63958. procedure _Setonkeypress(const aValue: TEventHandler);
  63959. procedure _Setonkeyup(const aValue: TEventHandler);
  63960. procedure _Setonload(const aValue: TEventHandler);
  63961. procedure _Setonloadeddata(const aValue: TEventHandler);
  63962. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  63963. procedure _Setonloadstart(const aValue: TEventHandler);
  63964. procedure _Setonmousedown(const aValue: TEventHandler);
  63965. procedure _Setonmouseenter(const aValue: TEventHandler);
  63966. procedure _Setonmouseleave(const aValue: TEventHandler);
  63967. procedure _Setonmousemove(const aValue: TEventHandler);
  63968. procedure _Setonmouseout(const aValue: TEventHandler);
  63969. procedure _Setonmouseover(const aValue: TEventHandler);
  63970. procedure _Setonmouseup(const aValue: TEventHandler);
  63971. procedure _Setonwheel(const aValue: TEventHandler);
  63972. procedure _Setonpaste(const aValue: TEventHandler);
  63973. procedure _Setonpause(const aValue: TEventHandler);
  63974. procedure _Setonplay(const aValue: TEventHandler);
  63975. procedure _Setonplaying(const aValue: TEventHandler);
  63976. procedure _Setonprogress(const aValue: TEventHandler);
  63977. procedure _Setonratechange(const aValue: TEventHandler);
  63978. procedure _Setonreset(const aValue: TEventHandler);
  63979. procedure _Setonresize(const aValue: TEventHandler);
  63980. procedure _Setonscroll(const aValue: TEventHandler);
  63981. procedure _Setonscrollend(const aValue: TEventHandler);
  63982. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  63983. procedure _Setonseeked(const aValue: TEventHandler);
  63984. procedure _Setonseeking(const aValue: TEventHandler);
  63985. procedure _Setonselect(const aValue: TEventHandler);
  63986. procedure _Setonslotchange(const aValue: TEventHandler);
  63987. procedure _Setonstalled(const aValue: TEventHandler);
  63988. procedure _Setonsubmit(const aValue: TEventHandler);
  63989. procedure _Setonsuspend(const aValue: TEventHandler);
  63990. procedure _Setontimeupdate(const aValue: TEventHandler);
  63991. procedure _Setonvolumechange(const aValue: TEventHandler);
  63992. procedure _Setonwaiting(const aValue: TEventHandler);
  63993. procedure _Setonselectstart(const aValue: TEventHandler);
  63994. procedure _Setonselectionchange(const aValue: TEventHandler);
  63995. procedure _Setontoggle(const aValue: TEventHandler);
  63996. procedure _Setonpointercancel(const aValue: TEventHandler);
  63997. procedure _Setonpointerdown(const aValue: TEventHandler);
  63998. procedure _Setonpointerup(const aValue: TEventHandler);
  63999. procedure _Setonpointermove(const aValue: TEventHandler);
  64000. procedure _Setonpointerout(const aValue: TEventHandler);
  64001. procedure _Setonpointerover(const aValue: TEventHandler);
  64002. procedure _Setonpointerenter(const aValue: TEventHandler);
  64003. procedure _Setonpointerleave(const aValue: TEventHandler);
  64004. procedure _Setongotpointercapture(const aValue: TEventHandler);
  64005. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  64006. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  64007. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  64008. procedure _Setonanimationcancel(const aValue: TEventHandler);
  64009. procedure _Setonanimationend(const aValue: TEventHandler);
  64010. procedure _Setonanimationiteration(const aValue: TEventHandler);
  64011. procedure _Setonanimationstart(const aValue: TEventHandler);
  64012. procedure _Setontransitioncancel(const aValue: TEventHandler);
  64013. procedure _Setontransitionend(const aValue: TEventHandler);
  64014. procedure _Setontransitionrun(const aValue: TEventHandler);
  64015. procedure _Setontransitionstart(const aValue: TEventHandler);
  64016. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  64017. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  64018. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  64019. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  64020. procedure _Setautofocus(const aValue: Boolean);
  64021. procedure _SettabIndex(const aValue: LongInt);
  64022. procedure _Setontouchstart(const aValue: TEventHandler);
  64023. procedure _Setontouchend(const aValue: TEventHandler);
  64024. procedure _Setontouchmove(const aValue: TEventHandler);
  64025. procedure _Setontouchcancel(const aValue: TEventHandler);
  64026. procedure _Setonerror(const aValue: TEventHandler);
  64027. procedure focus(const aOptions: TJSFocusOptions);
  64028. procedure focus;
  64029. procedure blur;
  64030. property id: UnicodeString read _Getid2 write _Setid2;
  64031. property className_: IJSSVGAnimatedString read _GetclassName_2;
  64032. property ownerSVGElement: IJSSVGSVGElement read _GetownerSVGElement;
  64033. property viewportElement: IJSSVGElement read _GetviewportElement;
  64034. property nonce: UnicodeString read _Getnonce write _Setnonce;
  64035. property onabort: TEventHandler read _Getonabort write _Setonabort;
  64036. property onblur: TEventHandler read _Getonblur write _Setonblur;
  64037. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  64038. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  64039. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  64040. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  64041. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  64042. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  64043. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  64044. property onchange: TEventHandler read _Getonchange write _Setonchange;
  64045. property onclick: TEventHandler read _Getonclick write _Setonclick;
  64046. property onclose: TEventHandler read _Getonclose write _Setonclose;
  64047. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  64048. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  64049. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  64050. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  64051. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  64052. property oncut: TEventHandler read _Getoncut write _Setoncut;
  64053. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  64054. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  64055. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  64056. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  64057. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  64058. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  64059. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  64060. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  64061. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  64062. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  64063. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  64064. property onended: TEventHandler read _Getonended write _Setonended;
  64065. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  64066. property oninput: TEventHandler read _Getoninput write _Setoninput;
  64067. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  64068. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  64069. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  64070. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  64071. property onload: TEventHandler read _Getonload write _Setonload;
  64072. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  64073. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  64074. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  64075. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  64076. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  64077. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  64078. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  64079. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  64080. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  64081. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  64082. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  64083. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  64084. property onpause: TEventHandler read _Getonpause write _Setonpause;
  64085. property onplay: TEventHandler read _Getonplay write _Setonplay;
  64086. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  64087. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  64088. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  64089. property onreset: TEventHandler read _Getonreset write _Setonreset;
  64090. property onresize: TEventHandler read _Getonresize write _Setonresize;
  64091. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  64092. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  64093. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  64094. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  64095. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  64096. property onselect: TEventHandler read _Getonselect write _Setonselect;
  64097. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  64098. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  64099. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  64100. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  64101. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  64102. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  64103. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  64104. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  64105. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  64106. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  64107. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  64108. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  64109. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  64110. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  64111. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  64112. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  64113. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  64114. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  64115. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  64116. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  64117. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  64118. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  64119. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  64120. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  64121. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  64122. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  64123. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  64124. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  64125. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  64126. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  64127. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  64128. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  64129. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  64130. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  64131. property dataset: IJSDOMStringMap read _Getdataset;
  64132. property autofocus: Boolean read _Getautofocus write _Setautofocus;
  64133. property tabIndex: LongInt read _GettabIndex write _SettabIndex;
  64134. property style: IJSCSSStyleDeclaration read _Getstyle;
  64135. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  64136. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  64137. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  64138. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  64139. property onerror: TEventHandler read _Getonerror write _Setonerror;
  64140. end;
  64141. TJSSVGElement = class(TJSElement,IJSSVGElement)
  64142. Protected
  64143. function _Getid2: UnicodeString;
  64144. function _GetclassName_2: IJSSVGAnimatedString;
  64145. function _GetownerSVGElement: IJSSVGSVGElement;
  64146. function _GetviewportElement: IJSSVGElement;
  64147. function _Getnonce: UnicodeString;
  64148. function _Getonabort: TEventHandler;
  64149. function _Getonblur: TEventHandler;
  64150. function _Getonfocus: TEventHandler;
  64151. function _Getoncancel: TEventHandler;
  64152. function _Getonauxclick: TEventHandler;
  64153. function _Getonbeforeinput: TEventHandler;
  64154. function _Getonbeforetoggle: TEventHandler;
  64155. function _Getoncanplay: TEventHandler;
  64156. function _Getoncanplaythrough: TEventHandler;
  64157. function _Getonchange: TEventHandler;
  64158. function _Getonclick: TEventHandler;
  64159. function _Getonclose: TEventHandler;
  64160. function _Getoncontextlost: TEventHandler;
  64161. function _Getoncontextmenu: TEventHandler;
  64162. function _Getoncontextrestored: TEventHandler;
  64163. function _Getoncopy: TEventHandler;
  64164. function _Getoncuechange: TEventHandler;
  64165. function _Getoncut: TEventHandler;
  64166. function _Getondblclick: TEventHandler;
  64167. function _Getondrag: TEventHandler;
  64168. function _Getondragend: TEventHandler;
  64169. function _Getondragenter: TEventHandler;
  64170. function _Getondragexit: TEventHandler;
  64171. function _Getondragleave: TEventHandler;
  64172. function _Getondragover: TEventHandler;
  64173. function _Getondragstart: TEventHandler;
  64174. function _Getondrop: TEventHandler;
  64175. function _Getondurationchange: TEventHandler;
  64176. function _Getonemptied: TEventHandler;
  64177. function _Getonended: TEventHandler;
  64178. function _Getonformdata: TEventHandler;
  64179. function _Getoninput: TEventHandler;
  64180. function _Getoninvalid: TEventHandler;
  64181. function _Getonkeydown: TEventHandler;
  64182. function _Getonkeypress: TEventHandler;
  64183. function _Getonkeyup: TEventHandler;
  64184. function _Getonload: TEventHandler;
  64185. function _Getonloadeddata: TEventHandler;
  64186. function _Getonloadedmetadata: TEventHandler;
  64187. function _Getonloadstart: TEventHandler;
  64188. function _Getonmousedown: TEventHandler;
  64189. function _Getonmouseenter: TEventHandler;
  64190. function _Getonmouseleave: TEventHandler;
  64191. function _Getonmousemove: TEventHandler;
  64192. function _Getonmouseout: TEventHandler;
  64193. function _Getonmouseover: TEventHandler;
  64194. function _Getonmouseup: TEventHandler;
  64195. function _Getonwheel: TEventHandler;
  64196. function _Getonpaste: TEventHandler;
  64197. function _Getonpause: TEventHandler;
  64198. function _Getonplay: TEventHandler;
  64199. function _Getonplaying: TEventHandler;
  64200. function _Getonprogress: TEventHandler;
  64201. function _Getonratechange: TEventHandler;
  64202. function _Getonreset: TEventHandler;
  64203. function _Getonresize: TEventHandler;
  64204. function _Getonscroll: TEventHandler;
  64205. function _Getonscrollend: TEventHandler;
  64206. function _Getonsecuritypolicyviolation: TEventHandler;
  64207. function _Getonseeked: TEventHandler;
  64208. function _Getonseeking: TEventHandler;
  64209. function _Getonselect: TEventHandler;
  64210. function _Getonslotchange: TEventHandler;
  64211. function _Getonstalled: TEventHandler;
  64212. function _Getonsubmit: TEventHandler;
  64213. function _Getonsuspend: TEventHandler;
  64214. function _Getontimeupdate: TEventHandler;
  64215. function _Getonvolumechange: TEventHandler;
  64216. function _Getonwaiting: TEventHandler;
  64217. function _Getonselectstart: TEventHandler;
  64218. function _Getonselectionchange: TEventHandler;
  64219. function _Getontoggle: TEventHandler;
  64220. function _Getonpointercancel: TEventHandler;
  64221. function _Getonpointerdown: TEventHandler;
  64222. function _Getonpointerup: TEventHandler;
  64223. function _Getonpointermove: TEventHandler;
  64224. function _Getonpointerout: TEventHandler;
  64225. function _Getonpointerover: TEventHandler;
  64226. function _Getonpointerenter: TEventHandler;
  64227. function _Getonpointerleave: TEventHandler;
  64228. function _Getongotpointercapture: TEventHandler;
  64229. function _Getonlostpointercapture: TEventHandler;
  64230. function _Getonmozfullscreenchange: TEventHandler;
  64231. function _Getonmozfullscreenerror: TEventHandler;
  64232. function _Getonanimationcancel: TEventHandler;
  64233. function _Getonanimationend: TEventHandler;
  64234. function _Getonanimationiteration: TEventHandler;
  64235. function _Getonanimationstart: TEventHandler;
  64236. function _Getontransitioncancel: TEventHandler;
  64237. function _Getontransitionend: TEventHandler;
  64238. function _Getontransitionrun: TEventHandler;
  64239. function _Getontransitionstart: TEventHandler;
  64240. function _Getonwebkitanimationend: TEventHandler;
  64241. function _Getonwebkitanimationiteration: TEventHandler;
  64242. function _Getonwebkitanimationstart: TEventHandler;
  64243. function _Getonwebkittransitionend: TEventHandler;
  64244. function _Getdataset: IJSDOMStringMap;
  64245. function _Getautofocus: Boolean;
  64246. function _GettabIndex: LongInt;
  64247. function _Getstyle: IJSCSSStyleDeclaration;
  64248. function _Getontouchstart: TEventHandler;
  64249. function _Getontouchend: TEventHandler;
  64250. function _Getontouchmove: TEventHandler;
  64251. function _Getontouchcancel: TEventHandler;
  64252. function _Getonerror: TEventHandler;
  64253. procedure _Setid2(const aValue: UnicodeString);
  64254. procedure _Setnonce(const aValue: UnicodeString);
  64255. procedure _Setonabort(const aValue: TEventHandler);
  64256. procedure _Setonblur(const aValue: TEventHandler);
  64257. procedure _Setonfocus(const aValue: TEventHandler);
  64258. procedure _Setoncancel(const aValue: TEventHandler);
  64259. procedure _Setonauxclick(const aValue: TEventHandler);
  64260. procedure _Setonbeforeinput(const aValue: TEventHandler);
  64261. procedure _Setonbeforetoggle(const aValue: TEventHandler);
  64262. procedure _Setoncanplay(const aValue: TEventHandler);
  64263. procedure _Setoncanplaythrough(const aValue: TEventHandler);
  64264. procedure _Setonchange(const aValue: TEventHandler);
  64265. procedure _Setonclick(const aValue: TEventHandler);
  64266. procedure _Setonclose(const aValue: TEventHandler);
  64267. procedure _Setoncontextlost(const aValue: TEventHandler);
  64268. procedure _Setoncontextmenu(const aValue: TEventHandler);
  64269. procedure _Setoncontextrestored(const aValue: TEventHandler);
  64270. procedure _Setoncopy(const aValue: TEventHandler);
  64271. procedure _Setoncuechange(const aValue: TEventHandler);
  64272. procedure _Setoncut(const aValue: TEventHandler);
  64273. procedure _Setondblclick(const aValue: TEventHandler);
  64274. procedure _Setondrag(const aValue: TEventHandler);
  64275. procedure _Setondragend(const aValue: TEventHandler);
  64276. procedure _Setondragenter(const aValue: TEventHandler);
  64277. procedure _Setondragexit(const aValue: TEventHandler);
  64278. procedure _Setondragleave(const aValue: TEventHandler);
  64279. procedure _Setondragover(const aValue: TEventHandler);
  64280. procedure _Setondragstart(const aValue: TEventHandler);
  64281. procedure _Setondrop(const aValue: TEventHandler);
  64282. procedure _Setondurationchange(const aValue: TEventHandler);
  64283. procedure _Setonemptied(const aValue: TEventHandler);
  64284. procedure _Setonended(const aValue: TEventHandler);
  64285. procedure _Setonformdata(const aValue: TEventHandler);
  64286. procedure _Setoninput(const aValue: TEventHandler);
  64287. procedure _Setoninvalid(const aValue: TEventHandler);
  64288. procedure _Setonkeydown(const aValue: TEventHandler);
  64289. procedure _Setonkeypress(const aValue: TEventHandler);
  64290. procedure _Setonkeyup(const aValue: TEventHandler);
  64291. procedure _Setonload(const aValue: TEventHandler);
  64292. procedure _Setonloadeddata(const aValue: TEventHandler);
  64293. procedure _Setonloadedmetadata(const aValue: TEventHandler);
  64294. procedure _Setonloadstart(const aValue: TEventHandler);
  64295. procedure _Setonmousedown(const aValue: TEventHandler);
  64296. procedure _Setonmouseenter(const aValue: TEventHandler);
  64297. procedure _Setonmouseleave(const aValue: TEventHandler);
  64298. procedure _Setonmousemove(const aValue: TEventHandler);
  64299. procedure _Setonmouseout(const aValue: TEventHandler);
  64300. procedure _Setonmouseover(const aValue: TEventHandler);
  64301. procedure _Setonmouseup(const aValue: TEventHandler);
  64302. procedure _Setonwheel(const aValue: TEventHandler);
  64303. procedure _Setonpaste(const aValue: TEventHandler);
  64304. procedure _Setonpause(const aValue: TEventHandler);
  64305. procedure _Setonplay(const aValue: TEventHandler);
  64306. procedure _Setonplaying(const aValue: TEventHandler);
  64307. procedure _Setonprogress(const aValue: TEventHandler);
  64308. procedure _Setonratechange(const aValue: TEventHandler);
  64309. procedure _Setonreset(const aValue: TEventHandler);
  64310. procedure _Setonresize(const aValue: TEventHandler);
  64311. procedure _Setonscroll(const aValue: TEventHandler);
  64312. procedure _Setonscrollend(const aValue: TEventHandler);
  64313. procedure _Setonsecuritypolicyviolation(const aValue: TEventHandler);
  64314. procedure _Setonseeked(const aValue: TEventHandler);
  64315. procedure _Setonseeking(const aValue: TEventHandler);
  64316. procedure _Setonselect(const aValue: TEventHandler);
  64317. procedure _Setonslotchange(const aValue: TEventHandler);
  64318. procedure _Setonstalled(const aValue: TEventHandler);
  64319. procedure _Setonsubmit(const aValue: TEventHandler);
  64320. procedure _Setonsuspend(const aValue: TEventHandler);
  64321. procedure _Setontimeupdate(const aValue: TEventHandler);
  64322. procedure _Setonvolumechange(const aValue: TEventHandler);
  64323. procedure _Setonwaiting(const aValue: TEventHandler);
  64324. procedure _Setonselectstart(const aValue: TEventHandler);
  64325. procedure _Setonselectionchange(const aValue: TEventHandler);
  64326. procedure _Setontoggle(const aValue: TEventHandler);
  64327. procedure _Setonpointercancel(const aValue: TEventHandler);
  64328. procedure _Setonpointerdown(const aValue: TEventHandler);
  64329. procedure _Setonpointerup(const aValue: TEventHandler);
  64330. procedure _Setonpointermove(const aValue: TEventHandler);
  64331. procedure _Setonpointerout(const aValue: TEventHandler);
  64332. procedure _Setonpointerover(const aValue: TEventHandler);
  64333. procedure _Setonpointerenter(const aValue: TEventHandler);
  64334. procedure _Setonpointerleave(const aValue: TEventHandler);
  64335. procedure _Setongotpointercapture(const aValue: TEventHandler);
  64336. procedure _Setonlostpointercapture(const aValue: TEventHandler);
  64337. procedure _Setonmozfullscreenchange(const aValue: TEventHandler);
  64338. procedure _Setonmozfullscreenerror(const aValue: TEventHandler);
  64339. procedure _Setonanimationcancel(const aValue: TEventHandler);
  64340. procedure _Setonanimationend(const aValue: TEventHandler);
  64341. procedure _Setonanimationiteration(const aValue: TEventHandler);
  64342. procedure _Setonanimationstart(const aValue: TEventHandler);
  64343. procedure _Setontransitioncancel(const aValue: TEventHandler);
  64344. procedure _Setontransitionend(const aValue: TEventHandler);
  64345. procedure _Setontransitionrun(const aValue: TEventHandler);
  64346. procedure _Setontransitionstart(const aValue: TEventHandler);
  64347. procedure _Setonwebkitanimationend(const aValue: TEventHandler);
  64348. procedure _Setonwebkitanimationiteration(const aValue: TEventHandler);
  64349. procedure _Setonwebkitanimationstart(const aValue: TEventHandler);
  64350. procedure _Setonwebkittransitionend(const aValue: TEventHandler);
  64351. procedure _Setautofocus(const aValue: Boolean);
  64352. procedure _SettabIndex(const aValue: LongInt);
  64353. procedure _Setontouchstart(const aValue: TEventHandler);
  64354. procedure _Setontouchend(const aValue: TEventHandler);
  64355. procedure _Setontouchmove(const aValue: TEventHandler);
  64356. procedure _Setontouchcancel(const aValue: TEventHandler);
  64357. procedure _Setonerror(const aValue: TEventHandler);
  64358. Public
  64359. procedure focus(const aOptions: TJSFocusOptions); overload;
  64360. procedure focus; overload;
  64361. procedure blur; overload;
  64362. class function JSClassName: UnicodeString; override;
  64363. class function Cast(const Intf: IJSObject): IJSSVGElement;
  64364. property id: UnicodeString read _Getid2 write _Setid2;
  64365. property className_: IJSSVGAnimatedString read _GetclassName_2;
  64366. property ownerSVGElement: IJSSVGSVGElement read _GetownerSVGElement;
  64367. property viewportElement: IJSSVGElement read _GetviewportElement;
  64368. property nonce: UnicodeString read _Getnonce write _Setnonce;
  64369. property onabort: TEventHandler read _Getonabort write _Setonabort;
  64370. property onblur: TEventHandler read _Getonblur write _Setonblur;
  64371. property onfocus: TEventHandler read _Getonfocus write _Setonfocus;
  64372. property oncancel: TEventHandler read _Getoncancel write _Setoncancel;
  64373. property onauxclick: TEventHandler read _Getonauxclick write _Setonauxclick;
  64374. property onbeforeinput: TEventHandler read _Getonbeforeinput write _Setonbeforeinput;
  64375. property onbeforetoggle: TEventHandler read _Getonbeforetoggle write _Setonbeforetoggle;
  64376. property oncanplay: TEventHandler read _Getoncanplay write _Setoncanplay;
  64377. property oncanplaythrough: TEventHandler read _Getoncanplaythrough write _Setoncanplaythrough;
  64378. property onchange: TEventHandler read _Getonchange write _Setonchange;
  64379. property onclick: TEventHandler read _Getonclick write _Setonclick;
  64380. property onclose: TEventHandler read _Getonclose write _Setonclose;
  64381. property oncontextlost: TEventHandler read _Getoncontextlost write _Setoncontextlost;
  64382. property oncontextmenu: TEventHandler read _Getoncontextmenu write _Setoncontextmenu;
  64383. property oncontextrestored: TEventHandler read _Getoncontextrestored write _Setoncontextrestored;
  64384. property oncopy: TEventHandler read _Getoncopy write _Setoncopy;
  64385. property oncuechange: TEventHandler read _Getoncuechange write _Setoncuechange;
  64386. property oncut: TEventHandler read _Getoncut write _Setoncut;
  64387. property ondblclick: TEventHandler read _Getondblclick write _Setondblclick;
  64388. property ondrag: TEventHandler read _Getondrag write _Setondrag;
  64389. property ondragend: TEventHandler read _Getondragend write _Setondragend;
  64390. property ondragenter: TEventHandler read _Getondragenter write _Setondragenter;
  64391. property ondragexit: TEventHandler read _Getondragexit write _Setondragexit;
  64392. property ondragleave: TEventHandler read _Getondragleave write _Setondragleave;
  64393. property ondragover: TEventHandler read _Getondragover write _Setondragover;
  64394. property ondragstart: TEventHandler read _Getondragstart write _Setondragstart;
  64395. property ondrop: TEventHandler read _Getondrop write _Setondrop;
  64396. property ondurationchange: TEventHandler read _Getondurationchange write _Setondurationchange;
  64397. property onemptied: TEventHandler read _Getonemptied write _Setonemptied;
  64398. property onended: TEventHandler read _Getonended write _Setonended;
  64399. property onformdata: TEventHandler read _Getonformdata write _Setonformdata;
  64400. property oninput: TEventHandler read _Getoninput write _Setoninput;
  64401. property oninvalid: TEventHandler read _Getoninvalid write _Setoninvalid;
  64402. property onkeydown: TEventHandler read _Getonkeydown write _Setonkeydown;
  64403. property onkeypress: TEventHandler read _Getonkeypress write _Setonkeypress;
  64404. property onkeyup: TEventHandler read _Getonkeyup write _Setonkeyup;
  64405. property onload: TEventHandler read _Getonload write _Setonload;
  64406. property onloadeddata: TEventHandler read _Getonloadeddata write _Setonloadeddata;
  64407. property onloadedmetadata: TEventHandler read _Getonloadedmetadata write _Setonloadedmetadata;
  64408. property onloadstart: TEventHandler read _Getonloadstart write _Setonloadstart;
  64409. property onmousedown: TEventHandler read _Getonmousedown write _Setonmousedown;
  64410. property onmouseenter: TEventHandler read _Getonmouseenter write _Setonmouseenter;
  64411. property onmouseleave: TEventHandler read _Getonmouseleave write _Setonmouseleave;
  64412. property onmousemove: TEventHandler read _Getonmousemove write _Setonmousemove;
  64413. property onmouseout: TEventHandler read _Getonmouseout write _Setonmouseout;
  64414. property onmouseover: TEventHandler read _Getonmouseover write _Setonmouseover;
  64415. property onmouseup: TEventHandler read _Getonmouseup write _Setonmouseup;
  64416. property onwheel: TEventHandler read _Getonwheel write _Setonwheel;
  64417. property onpaste: TEventHandler read _Getonpaste write _Setonpaste;
  64418. property onpause: TEventHandler read _Getonpause write _Setonpause;
  64419. property onplay: TEventHandler read _Getonplay write _Setonplay;
  64420. property onplaying: TEventHandler read _Getonplaying write _Setonplaying;
  64421. property onprogress: TEventHandler read _Getonprogress write _Setonprogress;
  64422. property onratechange: TEventHandler read _Getonratechange write _Setonratechange;
  64423. property onreset: TEventHandler read _Getonreset write _Setonreset;
  64424. property onresize: TEventHandler read _Getonresize write _Setonresize;
  64425. property onscroll: TEventHandler read _Getonscroll write _Setonscroll;
  64426. property onscrollend: TEventHandler read _Getonscrollend write _Setonscrollend;
  64427. property onsecuritypolicyviolation: TEventHandler read _Getonsecuritypolicyviolation write _Setonsecuritypolicyviolation;
  64428. property onseeked: TEventHandler read _Getonseeked write _Setonseeked;
  64429. property onseeking: TEventHandler read _Getonseeking write _Setonseeking;
  64430. property onselect: TEventHandler read _Getonselect write _Setonselect;
  64431. property onslotchange: TEventHandler read _Getonslotchange write _Setonslotchange;
  64432. property onstalled: TEventHandler read _Getonstalled write _Setonstalled;
  64433. property onsubmit: TEventHandler read _Getonsubmit write _Setonsubmit;
  64434. property onsuspend: TEventHandler read _Getonsuspend write _Setonsuspend;
  64435. property ontimeupdate: TEventHandler read _Getontimeupdate write _Setontimeupdate;
  64436. property onvolumechange: TEventHandler read _Getonvolumechange write _Setonvolumechange;
  64437. property onwaiting: TEventHandler read _Getonwaiting write _Setonwaiting;
  64438. property onselectstart: TEventHandler read _Getonselectstart write _Setonselectstart;
  64439. property onselectionchange: TEventHandler read _Getonselectionchange write _Setonselectionchange;
  64440. property ontoggle: TEventHandler read _Getontoggle write _Setontoggle;
  64441. property onpointercancel: TEventHandler read _Getonpointercancel write _Setonpointercancel;
  64442. property onpointerdown: TEventHandler read _Getonpointerdown write _Setonpointerdown;
  64443. property onpointerup: TEventHandler read _Getonpointerup write _Setonpointerup;
  64444. property onpointermove: TEventHandler read _Getonpointermove write _Setonpointermove;
  64445. property onpointerout: TEventHandler read _Getonpointerout write _Setonpointerout;
  64446. property onpointerover: TEventHandler read _Getonpointerover write _Setonpointerover;
  64447. property onpointerenter: TEventHandler read _Getonpointerenter write _Setonpointerenter;
  64448. property onpointerleave: TEventHandler read _Getonpointerleave write _Setonpointerleave;
  64449. property ongotpointercapture: TEventHandler read _Getongotpointercapture write _Setongotpointercapture;
  64450. property onlostpointercapture: TEventHandler read _Getonlostpointercapture write _Setonlostpointercapture;
  64451. property onmozfullscreenchange: TEventHandler read _Getonmozfullscreenchange write _Setonmozfullscreenchange;
  64452. property onmozfullscreenerror: TEventHandler read _Getonmozfullscreenerror write _Setonmozfullscreenerror;
  64453. property onanimationcancel: TEventHandler read _Getonanimationcancel write _Setonanimationcancel;
  64454. property onanimationend: TEventHandler read _Getonanimationend write _Setonanimationend;
  64455. property onanimationiteration: TEventHandler read _Getonanimationiteration write _Setonanimationiteration;
  64456. property onanimationstart: TEventHandler read _Getonanimationstart write _Setonanimationstart;
  64457. property ontransitioncancel: TEventHandler read _Getontransitioncancel write _Setontransitioncancel;
  64458. property ontransitionend: TEventHandler read _Getontransitionend write _Setontransitionend;
  64459. property ontransitionrun: TEventHandler read _Getontransitionrun write _Setontransitionrun;
  64460. property ontransitionstart: TEventHandler read _Getontransitionstart write _Setontransitionstart;
  64461. property onwebkitanimationend: TEventHandler read _Getonwebkitanimationend write _Setonwebkitanimationend;
  64462. property onwebkitanimationiteration: TEventHandler read _Getonwebkitanimationiteration write _Setonwebkitanimationiteration;
  64463. property onwebkitanimationstart: TEventHandler read _Getonwebkitanimationstart write _Setonwebkitanimationstart;
  64464. property onwebkittransitionend: TEventHandler read _Getonwebkittransitionend write _Setonwebkittransitionend;
  64465. property dataset: IJSDOMStringMap read _Getdataset;
  64466. property autofocus: Boolean read _Getautofocus write _Setautofocus;
  64467. property tabIndex: LongInt read _GettabIndex write _SettabIndex;
  64468. property style: IJSCSSStyleDeclaration read _Getstyle;
  64469. property ontouchstart: TEventHandler read _Getontouchstart write _Setontouchstart;
  64470. property ontouchend: TEventHandler read _Getontouchend write _Setontouchend;
  64471. property ontouchmove: TEventHandler read _Getontouchmove write _Setontouchmove;
  64472. property ontouchcancel: TEventHandler read _Getontouchcancel write _Setontouchcancel;
  64473. property onerror: TEventHandler read _Getonerror write _Setonerror;
  64474. end;
  64475. { --------------------------------------------------------------------
  64476. TJSText
  64477. --------------------------------------------------------------------}
  64478. IJSText = interface(IJSCharacterData)
  64479. ['{7C963D44-58D2-375D-AC19-3555C19ECEBE}']
  64480. function _GetwholeText: UnicodeString;
  64481. function _GetassignedSlot: IJSHTMLSlotElement;
  64482. function splitText(aOffset: Cardinal): IJSText;
  64483. function getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray;
  64484. function getBoxQuads: TJSDOMQuadDynArray;
  64485. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  64486. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  64487. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  64488. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad;
  64489. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad;
  64490. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad;
  64491. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  64492. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  64493. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  64494. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad;
  64495. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad;
  64496. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad;
  64497. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  64498. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  64499. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  64500. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint;
  64501. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint;
  64502. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint;
  64503. property wholeText: UnicodeString read _GetwholeText;
  64504. property assignedSlot: IJSHTMLSlotElement read _GetassignedSlot;
  64505. end;
  64506. TJSText = class(TJSCharacterData,IJSText)
  64507. Protected
  64508. function _GetwholeText: UnicodeString;
  64509. function _GetassignedSlot: IJSHTMLSlotElement;
  64510. Public
  64511. constructor Create(const aData: UnicodeString); overload;
  64512. constructor Create; overload;
  64513. function splitText(aOffset: Cardinal): IJSText; overload;
  64514. function getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray; overload;
  64515. function getBoxQuads: TJSDOMQuadDynArray; overload;
  64516. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  64517. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  64518. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  64519. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad; overload;
  64520. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad; overload;
  64521. function convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad; overload;
  64522. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  64523. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  64524. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad; overload;
  64525. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad; overload;
  64526. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad; overload;
  64527. function convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad; overload;
  64528. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  64529. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  64530. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint; overload;
  64531. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint; overload;
  64532. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint; overload;
  64533. function convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint; overload;
  64534. class function JSClassName: UnicodeString; override;
  64535. class function Cast(const Intf: IJSObject): IJSText;
  64536. property wholeText: UnicodeString read _GetwholeText;
  64537. property assignedSlot: IJSHTMLSlotElement read _GetassignedSlot;
  64538. end;
  64539. { --------------------------------------------------------------------
  64540. TJSXRBoundedReferenceSpace
  64541. --------------------------------------------------------------------}
  64542. TJSDOMPointReadOnlyDynArray = IJSArray; // array of DOMPointReadOnly
  64543. IJSXRBoundedReferenceSpace = interface(IJSXRReferenceSpace)
  64544. ['{627AFEC6-7FB1-37D7-B274-C0B408BB7F2D}']
  64545. function _GetboundsGeometry: TJSDOMPointReadOnlyDynArray;
  64546. property boundsGeometry: TJSDOMPointReadOnlyDynArray read _GetboundsGeometry;
  64547. end;
  64548. TJSXRBoundedReferenceSpace = class(TJSXRReferenceSpace,IJSXRBoundedReferenceSpace)
  64549. Protected
  64550. function _GetboundsGeometry: TJSDOMPointReadOnlyDynArray;
  64551. Public
  64552. class function JSClassName: UnicodeString; override;
  64553. class function Cast(const Intf: IJSObject): IJSXRBoundedReferenceSpace;
  64554. property boundsGeometry: TJSDOMPointReadOnlyDynArray read _GetboundsGeometry;
  64555. end;
  64556. { --------------------------------------------------------------------
  64557. TJSWheelEvent
  64558. --------------------------------------------------------------------}
  64559. IJSWheelEvent = interface(IJSMouseEvent)
  64560. ['{71889328-C9C6-356E-9EB2-F97242C0B6C1}']
  64561. function _GetwheelDeltaX: LongInt;
  64562. function _GetwheelDeltaY: LongInt;
  64563. function _GetwheelDelta: LongInt;
  64564. function _GetdeltaX: Double;
  64565. function _GetdeltaY: Double;
  64566. function _GetdeltaZ: Double;
  64567. function _GetdeltaMode: Cardinal;
  64568. property wheelDeltaX: LongInt read _GetwheelDeltaX;
  64569. property wheelDeltaY: LongInt read _GetwheelDeltaY;
  64570. property wheelDelta: LongInt read _GetwheelDelta;
  64571. property deltaX: Double read _GetdeltaX;
  64572. property deltaY: Double read _GetdeltaY;
  64573. property deltaZ: Double read _GetdeltaZ;
  64574. property deltaMode: Cardinal read _GetdeltaMode;
  64575. end;
  64576. TJSWheelEvent = class(TJSMouseEvent,IJSWheelEvent)
  64577. Protected
  64578. function _GetwheelDeltaX: LongInt;
  64579. function _GetwheelDeltaY: LongInt;
  64580. function _GetwheelDelta: LongInt;
  64581. function _GetdeltaX: Double;
  64582. function _GetdeltaY: Double;
  64583. function _GetdeltaZ: Double;
  64584. function _GetdeltaMode: Cardinal;
  64585. Public
  64586. Const
  64587. DOM_DELTA_PIXEL = $00;
  64588. DOM_DELTA_LINE = $01;
  64589. DOM_DELTA_PAGE = $02;
  64590. Public
  64591. constructor Create(const aType_: UnicodeString; const aEventInitDict: TJSWheelEventInit); overload;
  64592. constructor Create(const aType_: UnicodeString); overload;
  64593. class function JSClassName: UnicodeString; override;
  64594. class function Cast(const Intf: IJSObject): IJSWheelEvent;
  64595. property wheelDeltaX: LongInt read _GetwheelDeltaX;
  64596. property wheelDeltaY: LongInt read _GetwheelDeltaY;
  64597. property wheelDelta: LongInt read _GetwheelDelta;
  64598. property deltaX: Double read _GetdeltaX;
  64599. property deltaY: Double read _GetdeltaY;
  64600. property deltaZ: Double read _GetdeltaZ;
  64601. property deltaMode: Cardinal read _GetdeltaMode;
  64602. end;
  64603. { --------------------------------------------------------------------
  64604. TJSXMLDocument
  64605. --------------------------------------------------------------------}
  64606. IJSXMLDocument = interface(IJSDocument)
  64607. ['{EEE0FBA7-2455-375C-A03D-1A2372542131}']
  64608. end;
  64609. TJSXMLDocument = class(TJSDocument,IJSXMLDocument)
  64610. Protected
  64611. Public
  64612. class function JSClassName: UnicodeString; override;
  64613. class function Cast(const Intf: IJSObject): IJSXMLDocument;
  64614. end;
  64615. { --------------------------------------------------------------------
  64616. TJSCDATASection
  64617. --------------------------------------------------------------------}
  64618. IJSCDATASection = interface(IJSText)
  64619. ['{E6CE04C2-079B-3374-89E0-F0D81AA2A621}']
  64620. end;
  64621. TJSCDATASection = class(TJSText,IJSCDATASection)
  64622. Protected
  64623. Public
  64624. class function JSClassName: UnicodeString; override;
  64625. class function Cast(const Intf: IJSObject): IJSCDATASection;
  64626. end;
  64627. { --------------------------------------------------------------------
  64628. TJSHTMLAnchorElement
  64629. --------------------------------------------------------------------}
  64630. IJSHTMLAnchorElement = interface(IJSHTMLElement)
  64631. ['{27460C53-67B7-3076-AFA8-00B62313DDE4}']
  64632. function _Gettarget: UnicodeString;
  64633. function _Getdownload: UnicodeString;
  64634. function _Getping: UnicodeString;
  64635. function _Getrel: UnicodeString;
  64636. function _GetreferrerPolicy: UnicodeString;
  64637. function _GetrelList: IJSDOMTokenList;
  64638. function _Gethreflang: UnicodeString;
  64639. function _Gettype_: UnicodeString;
  64640. function _Gettext: UnicodeString;
  64641. function _Getcoords: UnicodeString;
  64642. function _Getcharset: UnicodeString;
  64643. function _Getname: UnicodeString;
  64644. function _Getrev: UnicodeString;
  64645. function _Getshape: UnicodeString;
  64646. function _Gethref: UnicodeString;
  64647. function _Getorigin: UnicodeString;
  64648. function _Getprotocol: UnicodeString;
  64649. function _Getusername: UnicodeString;
  64650. function _Getpassword: UnicodeString;
  64651. function _Gethost: UnicodeString;
  64652. function _Gethostname: UnicodeString;
  64653. function _Getport: UnicodeString;
  64654. function _Getpathname: UnicodeString;
  64655. function _Getsearch: UnicodeString;
  64656. function _Gethash: UnicodeString;
  64657. procedure _Settarget(const aValue: UnicodeString);
  64658. procedure _Setdownload(const aValue: UnicodeString);
  64659. procedure _Setping(const aValue: UnicodeString);
  64660. procedure _Setrel(const aValue: UnicodeString);
  64661. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  64662. procedure _Sethreflang(const aValue: UnicodeString);
  64663. procedure _Settype_(const aValue: UnicodeString);
  64664. procedure _Settext(const aValue: UnicodeString);
  64665. procedure _Setcoords(const aValue: UnicodeString);
  64666. procedure _Setcharset(const aValue: UnicodeString);
  64667. procedure _Setname(const aValue: UnicodeString);
  64668. procedure _Setrev(const aValue: UnicodeString);
  64669. procedure _Setshape(const aValue: UnicodeString);
  64670. procedure _Setprotocol(const aValue: UnicodeString);
  64671. procedure _Setusername(const aValue: UnicodeString);
  64672. procedure _Setpassword(const aValue: UnicodeString);
  64673. procedure _Sethost(const aValue: UnicodeString);
  64674. procedure _Sethostname(const aValue: UnicodeString);
  64675. procedure _Setport(const aValue: UnicodeString);
  64676. procedure _Setpathname(const aValue: UnicodeString);
  64677. procedure _Setsearch(const aValue: UnicodeString);
  64678. procedure _Sethash(const aValue: UnicodeString);
  64679. property target: UnicodeString read _Gettarget write _Settarget;
  64680. property download: UnicodeString read _Getdownload write _Setdownload;
  64681. property ping: UnicodeString read _Getping write _Setping;
  64682. property rel: UnicodeString read _Getrel write _Setrel;
  64683. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  64684. property relList: IJSDOMTokenList read _GetrelList;
  64685. property hreflang: UnicodeString read _Gethreflang write _Sethreflang;
  64686. property type_: UnicodeString read _Gettype_ write _Settype_;
  64687. property text: UnicodeString read _Gettext write _Settext;
  64688. property coords: UnicodeString read _Getcoords write _Setcoords;
  64689. property charset: UnicodeString read _Getcharset write _Setcharset;
  64690. property name: UnicodeString read _Getname write _Setname;
  64691. property rev: UnicodeString read _Getrev write _Setrev;
  64692. property shape: UnicodeString read _Getshape write _Setshape;
  64693. property href: UnicodeString read _Gethref;
  64694. property origin: UnicodeString read _Getorigin;
  64695. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  64696. property username: UnicodeString read _Getusername write _Setusername;
  64697. property password: UnicodeString read _Getpassword write _Setpassword;
  64698. property host: UnicodeString read _Gethost write _Sethost;
  64699. property hostname: UnicodeString read _Gethostname write _Sethostname;
  64700. property port: UnicodeString read _Getport write _Setport;
  64701. property pathname: UnicodeString read _Getpathname write _Setpathname;
  64702. property search: UnicodeString read _Getsearch write _Setsearch;
  64703. property hash: UnicodeString read _Gethash write _Sethash;
  64704. end;
  64705. TJSHTMLAnchorElement = class(TJSHTMLElement,IJSHTMLAnchorElement)
  64706. Protected
  64707. function _Gettarget: UnicodeString;
  64708. function _Getdownload: UnicodeString;
  64709. function _Getping: UnicodeString;
  64710. function _Getrel: UnicodeString;
  64711. function _GetreferrerPolicy: UnicodeString;
  64712. function _GetrelList: IJSDOMTokenList;
  64713. function _Gethreflang: UnicodeString;
  64714. function _Gettype_: UnicodeString;
  64715. function _Gettext: UnicodeString;
  64716. function _Getcoords: UnicodeString;
  64717. function _Getcharset: UnicodeString;
  64718. function _Getname: UnicodeString;
  64719. function _Getrev: UnicodeString;
  64720. function _Getshape: UnicodeString;
  64721. function _Gethref: UnicodeString;
  64722. function _Getorigin: UnicodeString;
  64723. function _Getprotocol: UnicodeString;
  64724. function _Getusername: UnicodeString;
  64725. function _Getpassword: UnicodeString;
  64726. function _Gethost: UnicodeString;
  64727. function _Gethostname: UnicodeString;
  64728. function _Getport: UnicodeString;
  64729. function _Getpathname: UnicodeString;
  64730. function _Getsearch: UnicodeString;
  64731. function _Gethash: UnicodeString;
  64732. procedure _Settarget(const aValue: UnicodeString);
  64733. procedure _Setdownload(const aValue: UnicodeString);
  64734. procedure _Setping(const aValue: UnicodeString);
  64735. procedure _Setrel(const aValue: UnicodeString);
  64736. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  64737. procedure _Sethreflang(const aValue: UnicodeString);
  64738. procedure _Settype_(const aValue: UnicodeString);
  64739. procedure _Settext(const aValue: UnicodeString);
  64740. procedure _Setcoords(const aValue: UnicodeString);
  64741. procedure _Setcharset(const aValue: UnicodeString);
  64742. procedure _Setname(const aValue: UnicodeString);
  64743. procedure _Setrev(const aValue: UnicodeString);
  64744. procedure _Setshape(const aValue: UnicodeString);
  64745. procedure _Setprotocol(const aValue: UnicodeString);
  64746. procedure _Setusername(const aValue: UnicodeString);
  64747. procedure _Setpassword(const aValue: UnicodeString);
  64748. procedure _Sethost(const aValue: UnicodeString);
  64749. procedure _Sethostname(const aValue: UnicodeString);
  64750. procedure _Setport(const aValue: UnicodeString);
  64751. procedure _Setpathname(const aValue: UnicodeString);
  64752. procedure _Setsearch(const aValue: UnicodeString);
  64753. procedure _Sethash(const aValue: UnicodeString);
  64754. Public
  64755. constructor Create; overload;
  64756. class function JSClassName: UnicodeString; override;
  64757. class function Cast(const Intf: IJSObject): IJSHTMLAnchorElement;
  64758. property target: UnicodeString read _Gettarget write _Settarget;
  64759. property download: UnicodeString read _Getdownload write _Setdownload;
  64760. property ping: UnicodeString read _Getping write _Setping;
  64761. property rel: UnicodeString read _Getrel write _Setrel;
  64762. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  64763. property relList: IJSDOMTokenList read _GetrelList;
  64764. property hreflang: UnicodeString read _Gethreflang write _Sethreflang;
  64765. property type_: UnicodeString read _Gettype_ write _Settype_;
  64766. property text: UnicodeString read _Gettext write _Settext;
  64767. property coords: UnicodeString read _Getcoords write _Setcoords;
  64768. property charset: UnicodeString read _Getcharset write _Setcharset;
  64769. property name: UnicodeString read _Getname write _Setname;
  64770. property rev: UnicodeString read _Getrev write _Setrev;
  64771. property shape: UnicodeString read _Getshape write _Setshape;
  64772. property href: UnicodeString read _Gethref;
  64773. property origin: UnicodeString read _Getorigin;
  64774. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  64775. property username: UnicodeString read _Getusername write _Setusername;
  64776. property password: UnicodeString read _Getpassword write _Setpassword;
  64777. property host: UnicodeString read _Gethost write _Sethost;
  64778. property hostname: UnicodeString read _Gethostname write _Sethostname;
  64779. property port: UnicodeString read _Getport write _Setport;
  64780. property pathname: UnicodeString read _Getpathname write _Setpathname;
  64781. property search: UnicodeString read _Getsearch write _Setsearch;
  64782. property hash: UnicodeString read _Gethash write _Sethash;
  64783. end;
  64784. { --------------------------------------------------------------------
  64785. TJSHTMLAreaElement
  64786. --------------------------------------------------------------------}
  64787. IJSHTMLAreaElement = interface(IJSHTMLElement)
  64788. ['{F0404CDF-964E-341A-82E6-9923B0150B97}']
  64789. function _Getalt: UnicodeString;
  64790. function _Getcoords: UnicodeString;
  64791. function _Getshape: UnicodeString;
  64792. function _Gettarget: UnicodeString;
  64793. function _Getdownload: UnicodeString;
  64794. function _Getping: UnicodeString;
  64795. function _Getrel: UnicodeString;
  64796. function _GetreferrerPolicy: UnicodeString;
  64797. function _GetrelList: IJSDOMTokenList;
  64798. function _GetnoHref: Boolean;
  64799. function _Gethref: UnicodeString;
  64800. function _Getorigin: UnicodeString;
  64801. function _Getprotocol: UnicodeString;
  64802. function _Getusername: UnicodeString;
  64803. function _Getpassword: UnicodeString;
  64804. function _Gethost: UnicodeString;
  64805. function _Gethostname: UnicodeString;
  64806. function _Getport: UnicodeString;
  64807. function _Getpathname: UnicodeString;
  64808. function _Getsearch: UnicodeString;
  64809. function _Gethash: UnicodeString;
  64810. procedure _Setalt(const aValue: UnicodeString);
  64811. procedure _Setcoords(const aValue: UnicodeString);
  64812. procedure _Setshape(const aValue: UnicodeString);
  64813. procedure _Settarget(const aValue: UnicodeString);
  64814. procedure _Setdownload(const aValue: UnicodeString);
  64815. procedure _Setping(const aValue: UnicodeString);
  64816. procedure _Setrel(const aValue: UnicodeString);
  64817. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  64818. procedure _SetnoHref(const aValue: Boolean);
  64819. procedure _Setprotocol(const aValue: UnicodeString);
  64820. procedure _Setusername(const aValue: UnicodeString);
  64821. procedure _Setpassword(const aValue: UnicodeString);
  64822. procedure _Sethost(const aValue: UnicodeString);
  64823. procedure _Sethostname(const aValue: UnicodeString);
  64824. procedure _Setport(const aValue: UnicodeString);
  64825. procedure _Setpathname(const aValue: UnicodeString);
  64826. procedure _Setsearch(const aValue: UnicodeString);
  64827. procedure _Sethash(const aValue: UnicodeString);
  64828. property alt: UnicodeString read _Getalt write _Setalt;
  64829. property coords: UnicodeString read _Getcoords write _Setcoords;
  64830. property shape: UnicodeString read _Getshape write _Setshape;
  64831. property target: UnicodeString read _Gettarget write _Settarget;
  64832. property download: UnicodeString read _Getdownload write _Setdownload;
  64833. property ping: UnicodeString read _Getping write _Setping;
  64834. property rel: UnicodeString read _Getrel write _Setrel;
  64835. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  64836. property relList: IJSDOMTokenList read _GetrelList;
  64837. property noHref: Boolean read _GetnoHref write _SetnoHref;
  64838. property href: UnicodeString read _Gethref;
  64839. property origin: UnicodeString read _Getorigin;
  64840. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  64841. property username: UnicodeString read _Getusername write _Setusername;
  64842. property password: UnicodeString read _Getpassword write _Setpassword;
  64843. property host: UnicodeString read _Gethost write _Sethost;
  64844. property hostname: UnicodeString read _Gethostname write _Sethostname;
  64845. property port: UnicodeString read _Getport write _Setport;
  64846. property pathname: UnicodeString read _Getpathname write _Setpathname;
  64847. property search: UnicodeString read _Getsearch write _Setsearch;
  64848. property hash: UnicodeString read _Gethash write _Sethash;
  64849. end;
  64850. TJSHTMLAreaElement = class(TJSHTMLElement,IJSHTMLAreaElement)
  64851. Protected
  64852. function _Getalt: UnicodeString;
  64853. function _Getcoords: UnicodeString;
  64854. function _Getshape: UnicodeString;
  64855. function _Gettarget: UnicodeString;
  64856. function _Getdownload: UnicodeString;
  64857. function _Getping: UnicodeString;
  64858. function _Getrel: UnicodeString;
  64859. function _GetreferrerPolicy: UnicodeString;
  64860. function _GetrelList: IJSDOMTokenList;
  64861. function _GetnoHref: Boolean;
  64862. function _Gethref: UnicodeString;
  64863. function _Getorigin: UnicodeString;
  64864. function _Getprotocol: UnicodeString;
  64865. function _Getusername: UnicodeString;
  64866. function _Getpassword: UnicodeString;
  64867. function _Gethost: UnicodeString;
  64868. function _Gethostname: UnicodeString;
  64869. function _Getport: UnicodeString;
  64870. function _Getpathname: UnicodeString;
  64871. function _Getsearch: UnicodeString;
  64872. function _Gethash: UnicodeString;
  64873. procedure _Setalt(const aValue: UnicodeString);
  64874. procedure _Setcoords(const aValue: UnicodeString);
  64875. procedure _Setshape(const aValue: UnicodeString);
  64876. procedure _Settarget(const aValue: UnicodeString);
  64877. procedure _Setdownload(const aValue: UnicodeString);
  64878. procedure _Setping(const aValue: UnicodeString);
  64879. procedure _Setrel(const aValue: UnicodeString);
  64880. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  64881. procedure _SetnoHref(const aValue: Boolean);
  64882. procedure _Setprotocol(const aValue: UnicodeString);
  64883. procedure _Setusername(const aValue: UnicodeString);
  64884. procedure _Setpassword(const aValue: UnicodeString);
  64885. procedure _Sethost(const aValue: UnicodeString);
  64886. procedure _Sethostname(const aValue: UnicodeString);
  64887. procedure _Setport(const aValue: UnicodeString);
  64888. procedure _Setpathname(const aValue: UnicodeString);
  64889. procedure _Setsearch(const aValue: UnicodeString);
  64890. procedure _Sethash(const aValue: UnicodeString);
  64891. Public
  64892. constructor Create; overload;
  64893. class function JSClassName: UnicodeString; override;
  64894. class function Cast(const Intf: IJSObject): IJSHTMLAreaElement;
  64895. property alt: UnicodeString read _Getalt write _Setalt;
  64896. property coords: UnicodeString read _Getcoords write _Setcoords;
  64897. property shape: UnicodeString read _Getshape write _Setshape;
  64898. property target: UnicodeString read _Gettarget write _Settarget;
  64899. property download: UnicodeString read _Getdownload write _Setdownload;
  64900. property ping: UnicodeString read _Getping write _Setping;
  64901. property rel: UnicodeString read _Getrel write _Setrel;
  64902. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  64903. property relList: IJSDOMTokenList read _GetrelList;
  64904. property noHref: Boolean read _GetnoHref write _SetnoHref;
  64905. property href: UnicodeString read _Gethref;
  64906. property origin: UnicodeString read _Getorigin;
  64907. property protocol: UnicodeString read _Getprotocol write _Setprotocol;
  64908. property username: UnicodeString read _Getusername write _Setusername;
  64909. property password: UnicodeString read _Getpassword write _Setpassword;
  64910. property host: UnicodeString read _Gethost write _Sethost;
  64911. property hostname: UnicodeString read _Gethostname write _Sethostname;
  64912. property port: UnicodeString read _Getport write _Setport;
  64913. property pathname: UnicodeString read _Getpathname write _Setpathname;
  64914. property search: UnicodeString read _Getsearch write _Setsearch;
  64915. property hash: UnicodeString read _Gethash write _Sethash;
  64916. end;
  64917. { --------------------------------------------------------------------
  64918. TJSHTMLBaseElement
  64919. --------------------------------------------------------------------}
  64920. IJSHTMLBaseElement = interface(IJSHTMLElement)
  64921. ['{04785389-1140-360D-B367-0EB2CF0C9DAB}']
  64922. function _Gethref: UnicodeString;
  64923. function _Gettarget: UnicodeString;
  64924. procedure _Sethref(const aValue: UnicodeString);
  64925. procedure _Settarget(const aValue: UnicodeString);
  64926. property href: UnicodeString read _Gethref write _Sethref;
  64927. property target: UnicodeString read _Gettarget write _Settarget;
  64928. end;
  64929. TJSHTMLBaseElement = class(TJSHTMLElement,IJSHTMLBaseElement)
  64930. Protected
  64931. function _Gethref: UnicodeString;
  64932. function _Gettarget: UnicodeString;
  64933. procedure _Sethref(const aValue: UnicodeString);
  64934. procedure _Settarget(const aValue: UnicodeString);
  64935. Public
  64936. constructor Create; overload;
  64937. class function JSClassName: UnicodeString; override;
  64938. class function Cast(const Intf: IJSObject): IJSHTMLBaseElement;
  64939. property href: UnicodeString read _Gethref write _Sethref;
  64940. property target: UnicodeString read _Gettarget write _Settarget;
  64941. end;
  64942. { --------------------------------------------------------------------
  64943. TJSHTMLBodyElement
  64944. --------------------------------------------------------------------}
  64945. IJSHTMLBodyElement = interface(IJSHTMLElement)
  64946. ['{C3C32F61-38B4-3DCC-899F-799D5A738889}']
  64947. function _Gettext: UnicodeString;
  64948. function _Getlink: UnicodeString;
  64949. function _GetvLink: UnicodeString;
  64950. function _GetaLink: UnicodeString;
  64951. function _GetbgColor: UnicodeString;
  64952. function _Getbackground: UnicodeString;
  64953. function _Getonafterprint: TEventHandler;
  64954. function _Getonbeforeprint: TEventHandler;
  64955. function _Getonbeforeunload: TOnBeforeUnloadEventHandler;
  64956. function _Getonhashchange: TEventHandler;
  64957. function _Getonlanguagechange: TEventHandler;
  64958. function _Getonmessage: TEventHandler;
  64959. function _Getonmessageerror: TEventHandler;
  64960. function _Getonoffline: TEventHandler;
  64961. function _Getononline: TEventHandler;
  64962. function _Getonpagehide: TEventHandler;
  64963. function _Getonpageshow: TEventHandler;
  64964. function _Getonpopstate: TEventHandler;
  64965. function _Getonrejectionhandled: TEventHandler;
  64966. function _Getonstorage: TEventHandler;
  64967. function _Getonunhandledrejection: TEventHandler;
  64968. function _Getonunload: TEventHandler;
  64969. function _Getongamepadconnected: TEventHandler;
  64970. function _Getongamepaddisconnected: TEventHandler;
  64971. procedure _Settext(const aValue: UnicodeString);
  64972. procedure _Setlink(const aValue: UnicodeString);
  64973. procedure _SetvLink(const aValue: UnicodeString);
  64974. procedure _SetaLink(const aValue: UnicodeString);
  64975. procedure _SetbgColor(const aValue: UnicodeString);
  64976. procedure _Setbackground(const aValue: UnicodeString);
  64977. procedure _Setonafterprint(const aValue: TEventHandler);
  64978. procedure _Setonbeforeprint(const aValue: TEventHandler);
  64979. procedure _Setonbeforeunload(const aValue: TOnBeforeUnloadEventHandler);
  64980. procedure _Setonhashchange(const aValue: TEventHandler);
  64981. procedure _Setonlanguagechange(const aValue: TEventHandler);
  64982. procedure _Setonmessage(const aValue: TEventHandler);
  64983. procedure _Setonmessageerror(const aValue: TEventHandler);
  64984. procedure _Setonoffline(const aValue: TEventHandler);
  64985. procedure _Setononline(const aValue: TEventHandler);
  64986. procedure _Setonpagehide(const aValue: TEventHandler);
  64987. procedure _Setonpageshow(const aValue: TEventHandler);
  64988. procedure _Setonpopstate(const aValue: TEventHandler);
  64989. procedure _Setonrejectionhandled(const aValue: TEventHandler);
  64990. procedure _Setonstorage(const aValue: TEventHandler);
  64991. procedure _Setonunhandledrejection(const aValue: TEventHandler);
  64992. procedure _Setonunload(const aValue: TEventHandler);
  64993. procedure _Setongamepadconnected(const aValue: TEventHandler);
  64994. procedure _Setongamepaddisconnected(const aValue: TEventHandler);
  64995. property text: UnicodeString read _Gettext write _Settext;
  64996. property link: UnicodeString read _Getlink write _Setlink;
  64997. property vLink: UnicodeString read _GetvLink write _SetvLink;
  64998. property aLink: UnicodeString read _GetaLink write _SetaLink;
  64999. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  65000. property background: UnicodeString read _Getbackground write _Setbackground;
  65001. property onafterprint: TEventHandler read _Getonafterprint write _Setonafterprint;
  65002. property onbeforeprint: TEventHandler read _Getonbeforeprint write _Setonbeforeprint;
  65003. property onbeforeunload: TOnBeforeUnloadEventHandler read _Getonbeforeunload write _Setonbeforeunload;
  65004. property onhashchange: TEventHandler read _Getonhashchange write _Setonhashchange;
  65005. property onlanguagechange: TEventHandler read _Getonlanguagechange write _Setonlanguagechange;
  65006. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  65007. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  65008. property onoffline: TEventHandler read _Getonoffline write _Setonoffline;
  65009. property ononline: TEventHandler read _Getononline write _Setononline;
  65010. property onpagehide: TEventHandler read _Getonpagehide write _Setonpagehide;
  65011. property onpageshow: TEventHandler read _Getonpageshow write _Setonpageshow;
  65012. property onpopstate: TEventHandler read _Getonpopstate write _Setonpopstate;
  65013. property onrejectionhandled: TEventHandler read _Getonrejectionhandled write _Setonrejectionhandled;
  65014. property onstorage: TEventHandler read _Getonstorage write _Setonstorage;
  65015. property onunhandledrejection: TEventHandler read _Getonunhandledrejection write _Setonunhandledrejection;
  65016. property onunload: TEventHandler read _Getonunload write _Setonunload;
  65017. property ongamepadconnected: TEventHandler read _Getongamepadconnected write _Setongamepadconnected;
  65018. property ongamepaddisconnected: TEventHandler read _Getongamepaddisconnected write _Setongamepaddisconnected;
  65019. end;
  65020. TJSHTMLBodyElement = class(TJSHTMLElement,IJSHTMLBodyElement)
  65021. Protected
  65022. function _Gettext: UnicodeString;
  65023. function _Getlink: UnicodeString;
  65024. function _GetvLink: UnicodeString;
  65025. function _GetaLink: UnicodeString;
  65026. function _GetbgColor: UnicodeString;
  65027. function _Getbackground: UnicodeString;
  65028. function _Getonafterprint: TEventHandler;
  65029. function _Getonbeforeprint: TEventHandler;
  65030. function _Getonbeforeunload: TOnBeforeUnloadEventHandler;
  65031. function _Getonhashchange: TEventHandler;
  65032. function _Getonlanguagechange: TEventHandler;
  65033. function _Getonmessage: TEventHandler;
  65034. function _Getonmessageerror: TEventHandler;
  65035. function _Getonoffline: TEventHandler;
  65036. function _Getononline: TEventHandler;
  65037. function _Getonpagehide: TEventHandler;
  65038. function _Getonpageshow: TEventHandler;
  65039. function _Getonpopstate: TEventHandler;
  65040. function _Getonrejectionhandled: TEventHandler;
  65041. function _Getonstorage: TEventHandler;
  65042. function _Getonunhandledrejection: TEventHandler;
  65043. function _Getonunload: TEventHandler;
  65044. function _Getongamepadconnected: TEventHandler;
  65045. function _Getongamepaddisconnected: TEventHandler;
  65046. procedure _Settext(const aValue: UnicodeString);
  65047. procedure _Setlink(const aValue: UnicodeString);
  65048. procedure _SetvLink(const aValue: UnicodeString);
  65049. procedure _SetaLink(const aValue: UnicodeString);
  65050. procedure _SetbgColor(const aValue: UnicodeString);
  65051. procedure _Setbackground(const aValue: UnicodeString);
  65052. procedure _Setonafterprint(const aValue: TEventHandler);
  65053. procedure _Setonbeforeprint(const aValue: TEventHandler);
  65054. procedure _Setonbeforeunload(const aValue: TOnBeforeUnloadEventHandler);
  65055. procedure _Setonhashchange(const aValue: TEventHandler);
  65056. procedure _Setonlanguagechange(const aValue: TEventHandler);
  65057. procedure _Setonmessage(const aValue: TEventHandler);
  65058. procedure _Setonmessageerror(const aValue: TEventHandler);
  65059. procedure _Setonoffline(const aValue: TEventHandler);
  65060. procedure _Setononline(const aValue: TEventHandler);
  65061. procedure _Setonpagehide(const aValue: TEventHandler);
  65062. procedure _Setonpageshow(const aValue: TEventHandler);
  65063. procedure _Setonpopstate(const aValue: TEventHandler);
  65064. procedure _Setonrejectionhandled(const aValue: TEventHandler);
  65065. procedure _Setonstorage(const aValue: TEventHandler);
  65066. procedure _Setonunhandledrejection(const aValue: TEventHandler);
  65067. procedure _Setonunload(const aValue: TEventHandler);
  65068. procedure _Setongamepadconnected(const aValue: TEventHandler);
  65069. procedure _Setongamepaddisconnected(const aValue: TEventHandler);
  65070. Public
  65071. constructor Create; overload;
  65072. class function JSClassName: UnicodeString; override;
  65073. class function Cast(const Intf: IJSObject): IJSHTMLBodyElement;
  65074. property text: UnicodeString read _Gettext write _Settext;
  65075. property link: UnicodeString read _Getlink write _Setlink;
  65076. property vLink: UnicodeString read _GetvLink write _SetvLink;
  65077. property aLink: UnicodeString read _GetaLink write _SetaLink;
  65078. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  65079. property background: UnicodeString read _Getbackground write _Setbackground;
  65080. property onafterprint: TEventHandler read _Getonafterprint write _Setonafterprint;
  65081. property onbeforeprint: TEventHandler read _Getonbeforeprint write _Setonbeforeprint;
  65082. property onbeforeunload: TOnBeforeUnloadEventHandler read _Getonbeforeunload write _Setonbeforeunload;
  65083. property onhashchange: TEventHandler read _Getonhashchange write _Setonhashchange;
  65084. property onlanguagechange: TEventHandler read _Getonlanguagechange write _Setonlanguagechange;
  65085. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  65086. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  65087. property onoffline: TEventHandler read _Getonoffline write _Setonoffline;
  65088. property ononline: TEventHandler read _Getononline write _Setononline;
  65089. property onpagehide: TEventHandler read _Getonpagehide write _Setonpagehide;
  65090. property onpageshow: TEventHandler read _Getonpageshow write _Setonpageshow;
  65091. property onpopstate: TEventHandler read _Getonpopstate write _Setonpopstate;
  65092. property onrejectionhandled: TEventHandler read _Getonrejectionhandled write _Setonrejectionhandled;
  65093. property onstorage: TEventHandler read _Getonstorage write _Setonstorage;
  65094. property onunhandledrejection: TEventHandler read _Getonunhandledrejection write _Setonunhandledrejection;
  65095. property onunload: TEventHandler read _Getonunload write _Setonunload;
  65096. property ongamepadconnected: TEventHandler read _Getongamepadconnected write _Setongamepadconnected;
  65097. property ongamepaddisconnected: TEventHandler read _Getongamepaddisconnected write _Setongamepaddisconnected;
  65098. end;
  65099. { --------------------------------------------------------------------
  65100. TJSHTMLBRElement
  65101. --------------------------------------------------------------------}
  65102. IJSHTMLBRElement = interface(IJSHTMLElement)
  65103. ['{B7FB15C3-78B2-3295-8B11-8530E73DE9A8}']
  65104. function _Getclear: UnicodeString;
  65105. procedure _Setclear(const aValue: UnicodeString);
  65106. property clear: UnicodeString read _Getclear write _Setclear;
  65107. end;
  65108. TJSHTMLBRElement = class(TJSHTMLElement,IJSHTMLBRElement)
  65109. Protected
  65110. function _Getclear: UnicodeString;
  65111. procedure _Setclear(const aValue: UnicodeString);
  65112. Public
  65113. constructor Create; overload;
  65114. class function JSClassName: UnicodeString; override;
  65115. class function Cast(const Intf: IJSObject): IJSHTMLBRElement;
  65116. property clear: UnicodeString read _Getclear write _Setclear;
  65117. end;
  65118. { --------------------------------------------------------------------
  65119. TJSHTMLButtonElement
  65120. --------------------------------------------------------------------}
  65121. IJSHTMLButtonElement = interface(IJSHTMLElement)
  65122. ['{CE0264C7-04EC-30C5-B048-4D7EEDAAEE9B}']
  65123. function _Getdisabled: Boolean;
  65124. function _Getform: IJSHTMLFormElement;
  65125. function _GetformAction: UnicodeString;
  65126. function _GetformEnctype: UnicodeString;
  65127. function _GetformMethod: UnicodeString;
  65128. function _GetformNoValidate: Boolean;
  65129. function _GetformTarget: UnicodeString;
  65130. function _Getname: UnicodeString;
  65131. function _Gettype_: UnicodeString;
  65132. function _Getvalue: UnicodeString;
  65133. function _GetwillValidate: Boolean;
  65134. function _Getvalidity: IJSValidityState;
  65135. function _GetvalidationMessage: UnicodeString;
  65136. function _Getlabels: IJSNodeList;
  65137. function _GetpopoverTargetElement: IJSElement;
  65138. function _GetpopoverTargetAction: UnicodeString;
  65139. function _GetinvokeTargetElement: IJSElement;
  65140. function _GetinvokeAction: UnicodeString;
  65141. procedure _Setdisabled(const aValue: Boolean);
  65142. procedure _SetformAction(const aValue: UnicodeString);
  65143. procedure _SetformEnctype(const aValue: UnicodeString);
  65144. procedure _SetformMethod(const aValue: UnicodeString);
  65145. procedure _SetformNoValidate(const aValue: Boolean);
  65146. procedure _SetformTarget(const aValue: UnicodeString);
  65147. procedure _Setname(const aValue: UnicodeString);
  65148. procedure _Settype_(const aValue: UnicodeString);
  65149. procedure _Setvalue(const aValue: UnicodeString);
  65150. procedure _SetpopoverTargetElement(const aValue: IJSElement);
  65151. procedure _SetpopoverTargetAction(const aValue: UnicodeString);
  65152. procedure _SetinvokeTargetElement(const aValue: IJSElement);
  65153. procedure _SetinvokeAction(const aValue: UnicodeString);
  65154. function checkValidity: Boolean;
  65155. function reportValidity: Boolean;
  65156. procedure setCustomValidity(const aError: UnicodeString);
  65157. property disabled: Boolean read _Getdisabled write _Setdisabled;
  65158. property form: IJSHTMLFormElement read _Getform;
  65159. property formAction: UnicodeString read _GetformAction write _SetformAction;
  65160. property formEnctype: UnicodeString read _GetformEnctype write _SetformEnctype;
  65161. property formMethod: UnicodeString read _GetformMethod write _SetformMethod;
  65162. property formNoValidate: Boolean read _GetformNoValidate write _SetformNoValidate;
  65163. property formTarget: UnicodeString read _GetformTarget write _SetformTarget;
  65164. property name: UnicodeString read _Getname write _Setname;
  65165. property type_: UnicodeString read _Gettype_ write _Settype_;
  65166. property value: UnicodeString read _Getvalue write _Setvalue;
  65167. property willValidate: Boolean read _GetwillValidate;
  65168. property validity: IJSValidityState read _Getvalidity;
  65169. property validationMessage: UnicodeString read _GetvalidationMessage;
  65170. property labels: IJSNodeList read _Getlabels;
  65171. property popoverTargetElement: IJSElement read _GetpopoverTargetElement write _SetpopoverTargetElement;
  65172. property popoverTargetAction: UnicodeString read _GetpopoverTargetAction write _SetpopoverTargetAction;
  65173. property invokeTargetElement: IJSElement read _GetinvokeTargetElement write _SetinvokeTargetElement;
  65174. property invokeAction: UnicodeString read _GetinvokeAction write _SetinvokeAction;
  65175. end;
  65176. TJSHTMLButtonElement = class(TJSHTMLElement,IJSHTMLButtonElement)
  65177. Protected
  65178. function _Getdisabled: Boolean;
  65179. function _Getform: IJSHTMLFormElement;
  65180. function _GetformAction: UnicodeString;
  65181. function _GetformEnctype: UnicodeString;
  65182. function _GetformMethod: UnicodeString;
  65183. function _GetformNoValidate: Boolean;
  65184. function _GetformTarget: UnicodeString;
  65185. function _Getname: UnicodeString;
  65186. function _Gettype_: UnicodeString;
  65187. function _Getvalue: UnicodeString;
  65188. function _GetwillValidate: Boolean;
  65189. function _Getvalidity: IJSValidityState;
  65190. function _GetvalidationMessage: UnicodeString;
  65191. function _Getlabels: IJSNodeList;
  65192. function _GetpopoverTargetElement: IJSElement;
  65193. function _GetpopoverTargetAction: UnicodeString;
  65194. function _GetinvokeTargetElement: IJSElement;
  65195. function _GetinvokeAction: UnicodeString;
  65196. procedure _Setdisabled(const aValue: Boolean);
  65197. procedure _SetformAction(const aValue: UnicodeString);
  65198. procedure _SetformEnctype(const aValue: UnicodeString);
  65199. procedure _SetformMethod(const aValue: UnicodeString);
  65200. procedure _SetformNoValidate(const aValue: Boolean);
  65201. procedure _SetformTarget(const aValue: UnicodeString);
  65202. procedure _Setname(const aValue: UnicodeString);
  65203. procedure _Settype_(const aValue: UnicodeString);
  65204. procedure _Setvalue(const aValue: UnicodeString);
  65205. procedure _SetpopoverTargetElement(const aValue: IJSElement);
  65206. procedure _SetpopoverTargetAction(const aValue: UnicodeString);
  65207. procedure _SetinvokeTargetElement(const aValue: IJSElement);
  65208. procedure _SetinvokeAction(const aValue: UnicodeString);
  65209. Public
  65210. constructor Create; overload;
  65211. function checkValidity: Boolean; overload;
  65212. function reportValidity: Boolean; overload;
  65213. procedure setCustomValidity(const aError: UnicodeString); overload;
  65214. class function JSClassName: UnicodeString; override;
  65215. class function Cast(const Intf: IJSObject): IJSHTMLButtonElement;
  65216. property disabled: Boolean read _Getdisabled write _Setdisabled;
  65217. property form: IJSHTMLFormElement read _Getform;
  65218. property formAction: UnicodeString read _GetformAction write _SetformAction;
  65219. property formEnctype: UnicodeString read _GetformEnctype write _SetformEnctype;
  65220. property formMethod: UnicodeString read _GetformMethod write _SetformMethod;
  65221. property formNoValidate: Boolean read _GetformNoValidate write _SetformNoValidate;
  65222. property formTarget: UnicodeString read _GetformTarget write _SetformTarget;
  65223. property name: UnicodeString read _Getname write _Setname;
  65224. property type_: UnicodeString read _Gettype_ write _Settype_;
  65225. property value: UnicodeString read _Getvalue write _Setvalue;
  65226. property willValidate: Boolean read _GetwillValidate;
  65227. property validity: IJSValidityState read _Getvalidity;
  65228. property validationMessage: UnicodeString read _GetvalidationMessage;
  65229. property labels: IJSNodeList read _Getlabels;
  65230. property popoverTargetElement: IJSElement read _GetpopoverTargetElement write _SetpopoverTargetElement;
  65231. property popoverTargetAction: UnicodeString read _GetpopoverTargetAction write _SetpopoverTargetAction;
  65232. property invokeTargetElement: IJSElement read _GetinvokeTargetElement write _SetinvokeTargetElement;
  65233. property invokeAction: UnicodeString read _GetinvokeAction write _SetinvokeAction;
  65234. end;
  65235. { --------------------------------------------------------------------
  65236. TJSHTMLCanvasElement
  65237. --------------------------------------------------------------------}
  65238. IJSHTMLCanvasElement = interface(IJSHTMLElement)
  65239. ['{B80BEE54-E309-364F-9221-FF8F17B65E4C}']
  65240. function _Getwidth: Cardinal;
  65241. function _Getheight: Cardinal;
  65242. function _GetmozOpaque: Boolean;
  65243. procedure _Setwidth(const aValue: Cardinal);
  65244. procedure _Setheight(const aValue: Cardinal);
  65245. procedure _SetmozOpaque(const aValue: Boolean);
  65246. function getContext(const aContextId: UnicodeString; const aContextOptions: Variant): IJSnsISupports;
  65247. function getContext(const aContextId: UnicodeString): IJSnsISupports;
  65248. function toDataURL(const aType_: UnicodeString; const aEncoderOptions: Variant): UnicodeString;
  65249. function toDataURL: UnicodeString;
  65250. function toDataURL(const aType_: UnicodeString): UnicodeString;
  65251. procedure toBlob(const aCallback: TBlobCallback; const aType_: UnicodeString; const aEncoderOptions: Variant);
  65252. procedure toBlob(const aCallback: TBlobCallback);
  65253. procedure toBlob(const aCallback: TBlobCallback; const aType_: UnicodeString);
  65254. function captureStream(aFrameRate: Double): IJSCanvasCaptureMediaStream;
  65255. function captureStream: IJSCanvasCaptureMediaStream;
  65256. function transferControlToOffscreen: IJSOffscreenCanvas;
  65257. property width: Cardinal read _Getwidth write _Setwidth;
  65258. property height: Cardinal read _Getheight write _Setheight;
  65259. property mozOpaque: Boolean read _GetmozOpaque write _SetmozOpaque;
  65260. end;
  65261. TJSHTMLCanvasElement = class(TJSHTMLElement,IJSHTMLCanvasElement)
  65262. Protected
  65263. function _Getwidth: Cardinal;
  65264. function _Getheight: Cardinal;
  65265. function _GetmozOpaque: Boolean;
  65266. procedure _Setwidth(const aValue: Cardinal);
  65267. procedure _Setheight(const aValue: Cardinal);
  65268. procedure _SetmozOpaque(const aValue: Boolean);
  65269. Public
  65270. constructor Create; overload;
  65271. function getContext(const aContextId: UnicodeString; const aContextOptions: Variant): IJSnsISupports; overload;
  65272. function getContext(const aContextId: UnicodeString): IJSnsISupports; overload;
  65273. function toDataURL(const aType_: UnicodeString; const aEncoderOptions: Variant): UnicodeString; overload;
  65274. function toDataURL: UnicodeString; overload;
  65275. function toDataURL(const aType_: UnicodeString): UnicodeString; overload;
  65276. procedure toBlob(const aCallback: TBlobCallback; const aType_: UnicodeString; const aEncoderOptions: Variant); overload;
  65277. procedure toBlob(const aCallback: TBlobCallback); overload;
  65278. procedure toBlob(const aCallback: TBlobCallback; const aType_: UnicodeString); overload;
  65279. function captureStream(aFrameRate: Double): IJSCanvasCaptureMediaStream; overload;
  65280. function captureStream: IJSCanvasCaptureMediaStream; overload;
  65281. function transferControlToOffscreen: IJSOffscreenCanvas; overload;
  65282. class function JSClassName: UnicodeString; override;
  65283. class function Cast(const Intf: IJSObject): IJSHTMLCanvasElement;
  65284. property width: Cardinal read _Getwidth write _Setwidth;
  65285. property height: Cardinal read _Getheight write _Setheight;
  65286. property mozOpaque: Boolean read _GetmozOpaque write _SetmozOpaque;
  65287. end;
  65288. { --------------------------------------------------------------------
  65289. TJSHTMLDataElement
  65290. --------------------------------------------------------------------}
  65291. IJSHTMLDataElement = interface(IJSHTMLElement)
  65292. ['{A7FEB8BC-3591-3731-9096-9E5D8A5DBD75}']
  65293. function _Getvalue: UnicodeString;
  65294. procedure _Setvalue(const aValue: UnicodeString);
  65295. property value: UnicodeString read _Getvalue write _Setvalue;
  65296. end;
  65297. TJSHTMLDataElement = class(TJSHTMLElement,IJSHTMLDataElement)
  65298. Protected
  65299. function _Getvalue: UnicodeString;
  65300. procedure _Setvalue(const aValue: UnicodeString);
  65301. Public
  65302. constructor Create; overload;
  65303. class function JSClassName: UnicodeString; override;
  65304. class function Cast(const Intf: IJSObject): IJSHTMLDataElement;
  65305. property value: UnicodeString read _Getvalue write _Setvalue;
  65306. end;
  65307. { --------------------------------------------------------------------
  65308. TJSHTMLDataListElement
  65309. --------------------------------------------------------------------}
  65310. IJSHTMLDataListElement = interface(IJSHTMLElement)
  65311. ['{9C400AF2-E481-31E3-83DE-EA5DB423967C}']
  65312. function _Getoptions: IJSHTMLCollection;
  65313. property options: IJSHTMLCollection read _Getoptions;
  65314. end;
  65315. TJSHTMLDataListElement = class(TJSHTMLElement,IJSHTMLDataListElement)
  65316. Protected
  65317. function _Getoptions: IJSHTMLCollection;
  65318. Public
  65319. constructor Create; overload;
  65320. class function JSClassName: UnicodeString; override;
  65321. class function Cast(const Intf: IJSObject): IJSHTMLDataListElement;
  65322. property options: IJSHTMLCollection read _Getoptions;
  65323. end;
  65324. { --------------------------------------------------------------------
  65325. TJSHTMLDetailsElement
  65326. --------------------------------------------------------------------}
  65327. IJSHTMLDetailsElement = interface(IJSHTMLElement)
  65328. ['{DB143D5A-16AD-3CBD-A199-61963CBB13C0}']
  65329. function _Getopen: Boolean;
  65330. procedure _Setopen(const aValue: Boolean);
  65331. property open: Boolean read _Getopen write _Setopen;
  65332. end;
  65333. TJSHTMLDetailsElement = class(TJSHTMLElement,IJSHTMLDetailsElement)
  65334. Protected
  65335. function _Getopen: Boolean;
  65336. procedure _Setopen(const aValue: Boolean);
  65337. Public
  65338. constructor Create; overload;
  65339. class function JSClassName: UnicodeString; override;
  65340. class function Cast(const Intf: IJSObject): IJSHTMLDetailsElement;
  65341. property open: Boolean read _Getopen write _Setopen;
  65342. end;
  65343. { --------------------------------------------------------------------
  65344. TJSHTMLDialogElement
  65345. --------------------------------------------------------------------}
  65346. IJSHTMLDialogElement = interface(IJSHTMLElement)
  65347. ['{CF6EB7C1-B34A-3C40-A054-19B880CE1F01}']
  65348. function _Getopen: Boolean;
  65349. function _GetreturnValue: UnicodeString;
  65350. procedure _Setopen(const aValue: Boolean);
  65351. procedure _SetreturnValue(const aValue: UnicodeString);
  65352. procedure show;
  65353. procedure showModal;
  65354. procedure close(const aReturnValue: UnicodeString);
  65355. procedure close;
  65356. property open: Boolean read _Getopen write _Setopen;
  65357. property returnValue: UnicodeString read _GetreturnValue write _SetreturnValue;
  65358. end;
  65359. TJSHTMLDialogElement = class(TJSHTMLElement,IJSHTMLDialogElement)
  65360. Protected
  65361. function _Getopen: Boolean;
  65362. function _GetreturnValue: UnicodeString;
  65363. procedure _Setopen(const aValue: Boolean);
  65364. procedure _SetreturnValue(const aValue: UnicodeString);
  65365. Public
  65366. constructor Create; overload;
  65367. procedure show; overload;
  65368. procedure showModal; overload;
  65369. procedure close(const aReturnValue: UnicodeString); overload;
  65370. procedure close; overload;
  65371. class function JSClassName: UnicodeString; override;
  65372. class function Cast(const Intf: IJSObject): IJSHTMLDialogElement;
  65373. property open: Boolean read _Getopen write _Setopen;
  65374. property returnValue: UnicodeString read _GetreturnValue write _SetreturnValue;
  65375. end;
  65376. { --------------------------------------------------------------------
  65377. TJSHTMLDirectoryElement
  65378. --------------------------------------------------------------------}
  65379. IJSHTMLDirectoryElement = interface(IJSHTMLElement)
  65380. ['{09DE997C-F34D-396C-AB75-169BBA4B2D44}']
  65381. function _Getcompact: Boolean;
  65382. procedure _Setcompact(const aValue: Boolean);
  65383. property compact: Boolean read _Getcompact write _Setcompact;
  65384. end;
  65385. TJSHTMLDirectoryElement = class(TJSHTMLElement,IJSHTMLDirectoryElement)
  65386. Protected
  65387. function _Getcompact: Boolean;
  65388. procedure _Setcompact(const aValue: Boolean);
  65389. Public
  65390. constructor Create; overload;
  65391. class function JSClassName: UnicodeString; override;
  65392. class function Cast(const Intf: IJSObject): IJSHTMLDirectoryElement;
  65393. property compact: Boolean read _Getcompact write _Setcompact;
  65394. end;
  65395. { --------------------------------------------------------------------
  65396. TJSHTMLDivElement
  65397. --------------------------------------------------------------------}
  65398. IJSHTMLDivElement = interface(IJSHTMLElement)
  65399. ['{9FA7005C-58D8-37E1-AB4F-CBD069275FBE}']
  65400. function _Getalign: UnicodeString;
  65401. procedure _Setalign(const aValue: UnicodeString);
  65402. property align: UnicodeString read _Getalign write _Setalign;
  65403. end;
  65404. TJSHTMLDivElement = class(TJSHTMLElement,IJSHTMLDivElement)
  65405. Protected
  65406. function _Getalign: UnicodeString;
  65407. procedure _Setalign(const aValue: UnicodeString);
  65408. Public
  65409. constructor Create; overload;
  65410. class function JSClassName: UnicodeString; override;
  65411. class function Cast(const Intf: IJSObject): IJSHTMLDivElement;
  65412. property align: UnicodeString read _Getalign write _Setalign;
  65413. end;
  65414. { --------------------------------------------------------------------
  65415. TJSHTMLDListElement
  65416. --------------------------------------------------------------------}
  65417. IJSHTMLDListElement = interface(IJSHTMLElement)
  65418. ['{8C4C96ED-83CA-372D-B5D7-D3F1F359075E}']
  65419. function _Getcompact: Boolean;
  65420. procedure _Setcompact(const aValue: Boolean);
  65421. property compact: Boolean read _Getcompact write _Setcompact;
  65422. end;
  65423. TJSHTMLDListElement = class(TJSHTMLElement,IJSHTMLDListElement)
  65424. Protected
  65425. function _Getcompact: Boolean;
  65426. procedure _Setcompact(const aValue: Boolean);
  65427. Public
  65428. constructor Create; overload;
  65429. class function JSClassName: UnicodeString; override;
  65430. class function Cast(const Intf: IJSObject): IJSHTMLDListElement;
  65431. property compact: Boolean read _Getcompact write _Setcompact;
  65432. end;
  65433. { --------------------------------------------------------------------
  65434. TJSHTMLUnknownElement
  65435. --------------------------------------------------------------------}
  65436. IJSHTMLUnknownElement = interface(IJSHTMLElement)
  65437. ['{C8B34EC0-0721-3BD5-8D7D-61963CBB1363}']
  65438. end;
  65439. TJSHTMLUnknownElement = class(TJSHTMLElement,IJSHTMLUnknownElement)
  65440. Protected
  65441. Public
  65442. class function JSClassName: UnicodeString; override;
  65443. class function Cast(const Intf: IJSObject): IJSHTMLUnknownElement;
  65444. end;
  65445. { --------------------------------------------------------------------
  65446. TJSHTMLEmbedElement
  65447. --------------------------------------------------------------------}
  65448. IJSHTMLEmbedElement = interface(IJSHTMLElement)
  65449. ['{3CE87BFA-DA96-3E30-BC35-73B2E8BDF7A5}']
  65450. function _Getsrc: UnicodeString;
  65451. function _Gettype_: UnicodeString;
  65452. function _Getwidth: UnicodeString;
  65453. function _Getheight: UnicodeString;
  65454. function _Getalign: UnicodeString;
  65455. function _Getname: UnicodeString;
  65456. procedure _Setsrc(const aValue: UnicodeString);
  65457. procedure _Settype_(const aValue: UnicodeString);
  65458. procedure _Setwidth(const aValue: UnicodeString);
  65459. procedure _Setheight(const aValue: UnicodeString);
  65460. procedure _Setalign(const aValue: UnicodeString);
  65461. procedure _Setname(const aValue: UnicodeString);
  65462. function getSVGDocument: IJSDocument;
  65463. property src: UnicodeString read _Getsrc write _Setsrc;
  65464. property type_: UnicodeString read _Gettype_ write _Settype_;
  65465. property width: UnicodeString read _Getwidth write _Setwidth;
  65466. property height: UnicodeString read _Getheight write _Setheight;
  65467. property align: UnicodeString read _Getalign write _Setalign;
  65468. property name: UnicodeString read _Getname write _Setname;
  65469. end;
  65470. TJSHTMLEmbedElement = class(TJSHTMLElement,IJSHTMLEmbedElement)
  65471. Protected
  65472. function _Getsrc: UnicodeString;
  65473. function _Gettype_: UnicodeString;
  65474. function _Getwidth: UnicodeString;
  65475. function _Getheight: UnicodeString;
  65476. function _Getalign: UnicodeString;
  65477. function _Getname: UnicodeString;
  65478. procedure _Setsrc(const aValue: UnicodeString);
  65479. procedure _Settype_(const aValue: UnicodeString);
  65480. procedure _Setwidth(const aValue: UnicodeString);
  65481. procedure _Setheight(const aValue: UnicodeString);
  65482. procedure _Setalign(const aValue: UnicodeString);
  65483. procedure _Setname(const aValue: UnicodeString);
  65484. Public
  65485. constructor Create; overload;
  65486. function getSVGDocument: IJSDocument; overload;
  65487. class function JSClassName: UnicodeString; override;
  65488. class function Cast(const Intf: IJSObject): IJSHTMLEmbedElement;
  65489. property src: UnicodeString read _Getsrc write _Setsrc;
  65490. property type_: UnicodeString read _Gettype_ write _Settype_;
  65491. property width: UnicodeString read _Getwidth write _Setwidth;
  65492. property height: UnicodeString read _Getheight write _Setheight;
  65493. property align: UnicodeString read _Getalign write _Setalign;
  65494. property name: UnicodeString read _Getname write _Setname;
  65495. end;
  65496. { --------------------------------------------------------------------
  65497. TJSHTMLFieldSetElement
  65498. --------------------------------------------------------------------}
  65499. IJSHTMLFieldSetElement = interface(IJSHTMLElement)
  65500. ['{C0DD1BF1-C237-3F86-AF4B-37B161D94EE4}']
  65501. function _Getdisabled: Boolean;
  65502. function _Getform: IJSHTMLFormElement;
  65503. function _Getname: UnicodeString;
  65504. function _Gettype_: UnicodeString;
  65505. function _Getelements: IJSHTMLCollection;
  65506. function _GetwillValidate: Boolean;
  65507. function _Getvalidity: IJSValidityState;
  65508. function _GetvalidationMessage: UnicodeString;
  65509. procedure _Setdisabled(const aValue: Boolean);
  65510. procedure _Setname(const aValue: UnicodeString);
  65511. function checkValidity: Boolean;
  65512. function reportValidity: Boolean;
  65513. procedure setCustomValidity(const aError: UnicodeString);
  65514. property disabled: Boolean read _Getdisabled write _Setdisabled;
  65515. property form: IJSHTMLFormElement read _Getform;
  65516. property name: UnicodeString read _Getname write _Setname;
  65517. property type_: UnicodeString read _Gettype_;
  65518. property elements: IJSHTMLCollection read _Getelements;
  65519. property willValidate: Boolean read _GetwillValidate;
  65520. property validity: IJSValidityState read _Getvalidity;
  65521. property validationMessage: UnicodeString read _GetvalidationMessage;
  65522. end;
  65523. TJSHTMLFieldSetElement = class(TJSHTMLElement,IJSHTMLFieldSetElement)
  65524. Protected
  65525. function _Getdisabled: Boolean;
  65526. function _Getform: IJSHTMLFormElement;
  65527. function _Getname: UnicodeString;
  65528. function _Gettype_: UnicodeString;
  65529. function _Getelements: IJSHTMLCollection;
  65530. function _GetwillValidate: Boolean;
  65531. function _Getvalidity: IJSValidityState;
  65532. function _GetvalidationMessage: UnicodeString;
  65533. procedure _Setdisabled(const aValue: Boolean);
  65534. procedure _Setname(const aValue: UnicodeString);
  65535. Public
  65536. constructor Create; overload;
  65537. function checkValidity: Boolean; overload;
  65538. function reportValidity: Boolean; overload;
  65539. procedure setCustomValidity(const aError: UnicodeString); overload;
  65540. class function JSClassName: UnicodeString; override;
  65541. class function Cast(const Intf: IJSObject): IJSHTMLFieldSetElement;
  65542. property disabled: Boolean read _Getdisabled write _Setdisabled;
  65543. property form: IJSHTMLFormElement read _Getform;
  65544. property name: UnicodeString read _Getname write _Setname;
  65545. property type_: UnicodeString read _Gettype_;
  65546. property elements: IJSHTMLCollection read _Getelements;
  65547. property willValidate: Boolean read _GetwillValidate;
  65548. property validity: IJSValidityState read _Getvalidity;
  65549. property validationMessage: UnicodeString read _GetvalidationMessage;
  65550. end;
  65551. { --------------------------------------------------------------------
  65552. TJSHTMLFontElement
  65553. --------------------------------------------------------------------}
  65554. IJSHTMLFontElement = interface(IJSHTMLElement)
  65555. ['{762BD722-3FB1-327F-94BE-E005EF1253AA}']
  65556. function _Getcolor: UnicodeString;
  65557. function _Getface: UnicodeString;
  65558. function _Getsize: UnicodeString;
  65559. procedure _Setcolor(const aValue: UnicodeString);
  65560. procedure _Setface(const aValue: UnicodeString);
  65561. procedure _Setsize(const aValue: UnicodeString);
  65562. property color: UnicodeString read _Getcolor write _Setcolor;
  65563. property face: UnicodeString read _Getface write _Setface;
  65564. property size: UnicodeString read _Getsize write _Setsize;
  65565. end;
  65566. TJSHTMLFontElement = class(TJSHTMLElement,IJSHTMLFontElement)
  65567. Protected
  65568. function _Getcolor: UnicodeString;
  65569. function _Getface: UnicodeString;
  65570. function _Getsize: UnicodeString;
  65571. procedure _Setcolor(const aValue: UnicodeString);
  65572. procedure _Setface(const aValue: UnicodeString);
  65573. procedure _Setsize(const aValue: UnicodeString);
  65574. Public
  65575. constructor Create; overload;
  65576. class function JSClassName: UnicodeString; override;
  65577. class function Cast(const Intf: IJSObject): IJSHTMLFontElement;
  65578. property color: UnicodeString read _Getcolor write _Setcolor;
  65579. property face: UnicodeString read _Getface write _Setface;
  65580. property size: UnicodeString read _Getsize write _Setsize;
  65581. end;
  65582. { --------------------------------------------------------------------
  65583. TJSHTMLFormElement
  65584. --------------------------------------------------------------------}
  65585. IJSHTMLFormElement = interface(IJSHTMLElement)
  65586. ['{CA72448A-0E51-3627-ABA0-F83067164747}']
  65587. function _GetacceptCharset: UnicodeString;
  65588. function _Getaction: UnicodeString;
  65589. function _Getautocomplete: UnicodeString;
  65590. function _Getenctype: UnicodeString;
  65591. function _Getencoding: UnicodeString;
  65592. function _Getmethod: UnicodeString;
  65593. function _Getname: UnicodeString;
  65594. function _GetnoValidate: Boolean;
  65595. function _Gettarget: UnicodeString;
  65596. function _Getrel: UnicodeString;
  65597. function _GetrelList: IJSDOMTokenList;
  65598. function _Getelements: IJSHTMLFormControlsCollection;
  65599. function _Getlength_: LongInt;
  65600. procedure _SetacceptCharset(const aValue: UnicodeString);
  65601. procedure _Setaction(const aValue: UnicodeString);
  65602. procedure _Setautocomplete(const aValue: UnicodeString);
  65603. procedure _Setenctype(const aValue: UnicodeString);
  65604. procedure _Setencoding(const aValue: UnicodeString);
  65605. procedure _Setmethod(const aValue: UnicodeString);
  65606. procedure _Setname(const aValue: UnicodeString);
  65607. procedure _SetnoValidate(const aValue: Boolean);
  65608. procedure _Settarget(const aValue: UnicodeString);
  65609. procedure _Setrel(const aValue: UnicodeString);
  65610. function GetDefault(aIndex: Cardinal): IJSElement;
  65611. function GetDefault(const aName: UnicodeString): IJSnsISupports;
  65612. procedure submit;
  65613. procedure requestSubmit(aSubmitter: IJSHTMLElement);
  65614. procedure requestSubmit;
  65615. procedure reset;
  65616. function checkValidity: Boolean;
  65617. function reportValidity: Boolean;
  65618. property acceptCharset: UnicodeString read _GetacceptCharset write _SetacceptCharset;
  65619. property action: UnicodeString read _Getaction write _Setaction;
  65620. property autocomplete: UnicodeString read _Getautocomplete write _Setautocomplete;
  65621. property enctype: UnicodeString read _Getenctype write _Setenctype;
  65622. property encoding: UnicodeString read _Getencoding write _Setencoding;
  65623. property method: UnicodeString read _Getmethod write _Setmethod;
  65624. property name: UnicodeString read _Getname write _Setname;
  65625. property noValidate: Boolean read _GetnoValidate write _SetnoValidate;
  65626. property target: UnicodeString read _Gettarget write _Settarget;
  65627. property rel: UnicodeString read _Getrel write _Setrel;
  65628. property relList: IJSDOMTokenList read _GetrelList;
  65629. property elements: IJSHTMLFormControlsCollection read _Getelements;
  65630. property length_: LongInt read _Getlength_;
  65631. end;
  65632. TJSHTMLFormElement = class(TJSHTMLElement,IJSHTMLFormElement)
  65633. Protected
  65634. function _GetacceptCharset: UnicodeString;
  65635. function _Getaction: UnicodeString;
  65636. function _Getautocomplete: UnicodeString;
  65637. function _Getenctype: UnicodeString;
  65638. function _Getencoding: UnicodeString;
  65639. function _Getmethod: UnicodeString;
  65640. function _Getname: UnicodeString;
  65641. function _GetnoValidate: Boolean;
  65642. function _Gettarget: UnicodeString;
  65643. function _Getrel: UnicodeString;
  65644. function _GetrelList: IJSDOMTokenList;
  65645. function _Getelements: IJSHTMLFormControlsCollection;
  65646. function _Getlength_: LongInt;
  65647. procedure _SetacceptCharset(const aValue: UnicodeString);
  65648. procedure _Setaction(const aValue: UnicodeString);
  65649. procedure _Setautocomplete(const aValue: UnicodeString);
  65650. procedure _Setenctype(const aValue: UnicodeString);
  65651. procedure _Setencoding(const aValue: UnicodeString);
  65652. procedure _Setmethod(const aValue: UnicodeString);
  65653. procedure _Setname(const aValue: UnicodeString);
  65654. procedure _SetnoValidate(const aValue: Boolean);
  65655. procedure _Settarget(const aValue: UnicodeString);
  65656. procedure _Setrel(const aValue: UnicodeString);
  65657. Public
  65658. constructor Create; overload;
  65659. function GetDefault(aIndex: Cardinal): IJSElement; overload;
  65660. function GetDefault(const aName: UnicodeString): IJSnsISupports; overload;
  65661. procedure submit; overload;
  65662. procedure requestSubmit(aSubmitter: IJSHTMLElement); overload;
  65663. procedure requestSubmit; overload;
  65664. procedure reset; overload;
  65665. function checkValidity: Boolean; overload;
  65666. function reportValidity: Boolean; overload;
  65667. class function JSClassName: UnicodeString; override;
  65668. class function Cast(const Intf: IJSObject): IJSHTMLFormElement;
  65669. property acceptCharset: UnicodeString read _GetacceptCharset write _SetacceptCharset;
  65670. property action: UnicodeString read _Getaction write _Setaction;
  65671. property autocomplete: UnicodeString read _Getautocomplete write _Setautocomplete;
  65672. property enctype: UnicodeString read _Getenctype write _Setenctype;
  65673. property encoding: UnicodeString read _Getencoding write _Setencoding;
  65674. property method: UnicodeString read _Getmethod write _Setmethod;
  65675. property name: UnicodeString read _Getname write _Setname;
  65676. property noValidate: Boolean read _GetnoValidate write _SetnoValidate;
  65677. property target: UnicodeString read _Gettarget write _Settarget;
  65678. property rel: UnicodeString read _Getrel write _Setrel;
  65679. property relList: IJSDOMTokenList read _GetrelList;
  65680. property elements: IJSHTMLFormControlsCollection read _Getelements;
  65681. property length_: LongInt read _Getlength_;
  65682. end;
  65683. { --------------------------------------------------------------------
  65684. TJSHTMLFrameElement
  65685. --------------------------------------------------------------------}
  65686. IJSHTMLFrameElement = interface(IJSHTMLElement)
  65687. ['{FF9B10CF-28C8-3204-9FD1-8C65652741D7}']
  65688. function _Getname: UnicodeString;
  65689. function _Getscrolling: UnicodeString;
  65690. function _Getsrc: UnicodeString;
  65691. function _GetframeBorder: UnicodeString;
  65692. function _GetlongDesc: UnicodeString;
  65693. function _GetnoResize: Boolean;
  65694. function _GetcontentDocument: IJSDocument;
  65695. function _GetcontentWindow: IJSWindowProxy;
  65696. function _GetmarginHeight: UnicodeString;
  65697. function _GetmarginWidth: UnicodeString;
  65698. procedure _Setname(const aValue: UnicodeString);
  65699. procedure _Setscrolling(const aValue: UnicodeString);
  65700. procedure _Setsrc(const aValue: UnicodeString);
  65701. procedure _SetframeBorder(const aValue: UnicodeString);
  65702. procedure _SetlongDesc(const aValue: UnicodeString);
  65703. procedure _SetnoResize(const aValue: Boolean);
  65704. procedure _SetmarginHeight(const aValue: UnicodeString);
  65705. procedure _SetmarginWidth(const aValue: UnicodeString);
  65706. property name: UnicodeString read _Getname write _Setname;
  65707. property scrolling: UnicodeString read _Getscrolling write _Setscrolling;
  65708. property src: UnicodeString read _Getsrc write _Setsrc;
  65709. property frameBorder: UnicodeString read _GetframeBorder write _SetframeBorder;
  65710. property longDesc: UnicodeString read _GetlongDesc write _SetlongDesc;
  65711. property noResize: Boolean read _GetnoResize write _SetnoResize;
  65712. property contentDocument: IJSDocument read _GetcontentDocument;
  65713. property contentWindow: IJSWindowProxy read _GetcontentWindow;
  65714. property marginHeight: UnicodeString read _GetmarginHeight write _SetmarginHeight;
  65715. property marginWidth: UnicodeString read _GetmarginWidth write _SetmarginWidth;
  65716. end;
  65717. TJSHTMLFrameElement = class(TJSHTMLElement,IJSHTMLFrameElement)
  65718. Protected
  65719. function _Getname: UnicodeString;
  65720. function _Getscrolling: UnicodeString;
  65721. function _Getsrc: UnicodeString;
  65722. function _GetframeBorder: UnicodeString;
  65723. function _GetlongDesc: UnicodeString;
  65724. function _GetnoResize: Boolean;
  65725. function _GetcontentDocument: IJSDocument;
  65726. function _GetcontentWindow: IJSWindowProxy;
  65727. function _GetmarginHeight: UnicodeString;
  65728. function _GetmarginWidth: UnicodeString;
  65729. procedure _Setname(const aValue: UnicodeString);
  65730. procedure _Setscrolling(const aValue: UnicodeString);
  65731. procedure _Setsrc(const aValue: UnicodeString);
  65732. procedure _SetframeBorder(const aValue: UnicodeString);
  65733. procedure _SetlongDesc(const aValue: UnicodeString);
  65734. procedure _SetnoResize(const aValue: Boolean);
  65735. procedure _SetmarginHeight(const aValue: UnicodeString);
  65736. procedure _SetmarginWidth(const aValue: UnicodeString);
  65737. Public
  65738. constructor Create; overload;
  65739. class function JSClassName: UnicodeString; override;
  65740. class function Cast(const Intf: IJSObject): IJSHTMLFrameElement;
  65741. property name: UnicodeString read _Getname write _Setname;
  65742. property scrolling: UnicodeString read _Getscrolling write _Setscrolling;
  65743. property src: UnicodeString read _Getsrc write _Setsrc;
  65744. property frameBorder: UnicodeString read _GetframeBorder write _SetframeBorder;
  65745. property longDesc: UnicodeString read _GetlongDesc write _SetlongDesc;
  65746. property noResize: Boolean read _GetnoResize write _SetnoResize;
  65747. property contentDocument: IJSDocument read _GetcontentDocument;
  65748. property contentWindow: IJSWindowProxy read _GetcontentWindow;
  65749. property marginHeight: UnicodeString read _GetmarginHeight write _SetmarginHeight;
  65750. property marginWidth: UnicodeString read _GetmarginWidth write _SetmarginWidth;
  65751. end;
  65752. { --------------------------------------------------------------------
  65753. TJSHTMLFrameSetElement
  65754. --------------------------------------------------------------------}
  65755. IJSHTMLFrameSetElement = interface(IJSHTMLElement)
  65756. ['{F680FDF8-0B73-3AB6-90B8-EB602730338D}']
  65757. function _Getcols: UnicodeString;
  65758. function _Getrows: UnicodeString;
  65759. function _Getonafterprint: TEventHandler;
  65760. function _Getonbeforeprint: TEventHandler;
  65761. function _Getonbeforeunload: TOnBeforeUnloadEventHandler;
  65762. function _Getonhashchange: TEventHandler;
  65763. function _Getonlanguagechange: TEventHandler;
  65764. function _Getonmessage: TEventHandler;
  65765. function _Getonmessageerror: TEventHandler;
  65766. function _Getonoffline: TEventHandler;
  65767. function _Getononline: TEventHandler;
  65768. function _Getonpagehide: TEventHandler;
  65769. function _Getonpageshow: TEventHandler;
  65770. function _Getonpopstate: TEventHandler;
  65771. function _Getonrejectionhandled: TEventHandler;
  65772. function _Getonstorage: TEventHandler;
  65773. function _Getonunhandledrejection: TEventHandler;
  65774. function _Getonunload: TEventHandler;
  65775. function _Getongamepadconnected: TEventHandler;
  65776. function _Getongamepaddisconnected: TEventHandler;
  65777. procedure _Setcols(const aValue: UnicodeString);
  65778. procedure _Setrows(const aValue: UnicodeString);
  65779. procedure _Setonafterprint(const aValue: TEventHandler);
  65780. procedure _Setonbeforeprint(const aValue: TEventHandler);
  65781. procedure _Setonbeforeunload(const aValue: TOnBeforeUnloadEventHandler);
  65782. procedure _Setonhashchange(const aValue: TEventHandler);
  65783. procedure _Setonlanguagechange(const aValue: TEventHandler);
  65784. procedure _Setonmessage(const aValue: TEventHandler);
  65785. procedure _Setonmessageerror(const aValue: TEventHandler);
  65786. procedure _Setonoffline(const aValue: TEventHandler);
  65787. procedure _Setononline(const aValue: TEventHandler);
  65788. procedure _Setonpagehide(const aValue: TEventHandler);
  65789. procedure _Setonpageshow(const aValue: TEventHandler);
  65790. procedure _Setonpopstate(const aValue: TEventHandler);
  65791. procedure _Setonrejectionhandled(const aValue: TEventHandler);
  65792. procedure _Setonstorage(const aValue: TEventHandler);
  65793. procedure _Setonunhandledrejection(const aValue: TEventHandler);
  65794. procedure _Setonunload(const aValue: TEventHandler);
  65795. procedure _Setongamepadconnected(const aValue: TEventHandler);
  65796. procedure _Setongamepaddisconnected(const aValue: TEventHandler);
  65797. property cols: UnicodeString read _Getcols write _Setcols;
  65798. property rows: UnicodeString read _Getrows write _Setrows;
  65799. property onafterprint: TEventHandler read _Getonafterprint write _Setonafterprint;
  65800. property onbeforeprint: TEventHandler read _Getonbeforeprint write _Setonbeforeprint;
  65801. property onbeforeunload: TOnBeforeUnloadEventHandler read _Getonbeforeunload write _Setonbeforeunload;
  65802. property onhashchange: TEventHandler read _Getonhashchange write _Setonhashchange;
  65803. property onlanguagechange: TEventHandler read _Getonlanguagechange write _Setonlanguagechange;
  65804. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  65805. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  65806. property onoffline: TEventHandler read _Getonoffline write _Setonoffline;
  65807. property ononline: TEventHandler read _Getononline write _Setononline;
  65808. property onpagehide: TEventHandler read _Getonpagehide write _Setonpagehide;
  65809. property onpageshow: TEventHandler read _Getonpageshow write _Setonpageshow;
  65810. property onpopstate: TEventHandler read _Getonpopstate write _Setonpopstate;
  65811. property onrejectionhandled: TEventHandler read _Getonrejectionhandled write _Setonrejectionhandled;
  65812. property onstorage: TEventHandler read _Getonstorage write _Setonstorage;
  65813. property onunhandledrejection: TEventHandler read _Getonunhandledrejection write _Setonunhandledrejection;
  65814. property onunload: TEventHandler read _Getonunload write _Setonunload;
  65815. property ongamepadconnected: TEventHandler read _Getongamepadconnected write _Setongamepadconnected;
  65816. property ongamepaddisconnected: TEventHandler read _Getongamepaddisconnected write _Setongamepaddisconnected;
  65817. end;
  65818. TJSHTMLFrameSetElement = class(TJSHTMLElement,IJSHTMLFrameSetElement)
  65819. Protected
  65820. function _Getcols: UnicodeString;
  65821. function _Getrows: UnicodeString;
  65822. function _Getonafterprint: TEventHandler;
  65823. function _Getonbeforeprint: TEventHandler;
  65824. function _Getonbeforeunload: TOnBeforeUnloadEventHandler;
  65825. function _Getonhashchange: TEventHandler;
  65826. function _Getonlanguagechange: TEventHandler;
  65827. function _Getonmessage: TEventHandler;
  65828. function _Getonmessageerror: TEventHandler;
  65829. function _Getonoffline: TEventHandler;
  65830. function _Getononline: TEventHandler;
  65831. function _Getonpagehide: TEventHandler;
  65832. function _Getonpageshow: TEventHandler;
  65833. function _Getonpopstate: TEventHandler;
  65834. function _Getonrejectionhandled: TEventHandler;
  65835. function _Getonstorage: TEventHandler;
  65836. function _Getonunhandledrejection: TEventHandler;
  65837. function _Getonunload: TEventHandler;
  65838. function _Getongamepadconnected: TEventHandler;
  65839. function _Getongamepaddisconnected: TEventHandler;
  65840. procedure _Setcols(const aValue: UnicodeString);
  65841. procedure _Setrows(const aValue: UnicodeString);
  65842. procedure _Setonafterprint(const aValue: TEventHandler);
  65843. procedure _Setonbeforeprint(const aValue: TEventHandler);
  65844. procedure _Setonbeforeunload(const aValue: TOnBeforeUnloadEventHandler);
  65845. procedure _Setonhashchange(const aValue: TEventHandler);
  65846. procedure _Setonlanguagechange(const aValue: TEventHandler);
  65847. procedure _Setonmessage(const aValue: TEventHandler);
  65848. procedure _Setonmessageerror(const aValue: TEventHandler);
  65849. procedure _Setonoffline(const aValue: TEventHandler);
  65850. procedure _Setononline(const aValue: TEventHandler);
  65851. procedure _Setonpagehide(const aValue: TEventHandler);
  65852. procedure _Setonpageshow(const aValue: TEventHandler);
  65853. procedure _Setonpopstate(const aValue: TEventHandler);
  65854. procedure _Setonrejectionhandled(const aValue: TEventHandler);
  65855. procedure _Setonstorage(const aValue: TEventHandler);
  65856. procedure _Setonunhandledrejection(const aValue: TEventHandler);
  65857. procedure _Setonunload(const aValue: TEventHandler);
  65858. procedure _Setongamepadconnected(const aValue: TEventHandler);
  65859. procedure _Setongamepaddisconnected(const aValue: TEventHandler);
  65860. Public
  65861. constructor Create; overload;
  65862. class function JSClassName: UnicodeString; override;
  65863. class function Cast(const Intf: IJSObject): IJSHTMLFrameSetElement;
  65864. property cols: UnicodeString read _Getcols write _Setcols;
  65865. property rows: UnicodeString read _Getrows write _Setrows;
  65866. property onafterprint: TEventHandler read _Getonafterprint write _Setonafterprint;
  65867. property onbeforeprint: TEventHandler read _Getonbeforeprint write _Setonbeforeprint;
  65868. property onbeforeunload: TOnBeforeUnloadEventHandler read _Getonbeforeunload write _Setonbeforeunload;
  65869. property onhashchange: TEventHandler read _Getonhashchange write _Setonhashchange;
  65870. property onlanguagechange: TEventHandler read _Getonlanguagechange write _Setonlanguagechange;
  65871. property onmessage: TEventHandler read _Getonmessage write _Setonmessage;
  65872. property onmessageerror: TEventHandler read _Getonmessageerror write _Setonmessageerror;
  65873. property onoffline: TEventHandler read _Getonoffline write _Setonoffline;
  65874. property ononline: TEventHandler read _Getononline write _Setononline;
  65875. property onpagehide: TEventHandler read _Getonpagehide write _Setonpagehide;
  65876. property onpageshow: TEventHandler read _Getonpageshow write _Setonpageshow;
  65877. property onpopstate: TEventHandler read _Getonpopstate write _Setonpopstate;
  65878. property onrejectionhandled: TEventHandler read _Getonrejectionhandled write _Setonrejectionhandled;
  65879. property onstorage: TEventHandler read _Getonstorage write _Setonstorage;
  65880. property onunhandledrejection: TEventHandler read _Getonunhandledrejection write _Setonunhandledrejection;
  65881. property onunload: TEventHandler read _Getonunload write _Setonunload;
  65882. property ongamepadconnected: TEventHandler read _Getongamepadconnected write _Setongamepadconnected;
  65883. property ongamepaddisconnected: TEventHandler read _Getongamepaddisconnected write _Setongamepaddisconnected;
  65884. end;
  65885. { --------------------------------------------------------------------
  65886. TJSHTMLHeadElement
  65887. --------------------------------------------------------------------}
  65888. IJSHTMLHeadElement = interface(IJSHTMLElement)
  65889. ['{AC6CC386-2D95-333F-AD48-9E5D8A5DBD72}']
  65890. end;
  65891. TJSHTMLHeadElement = class(TJSHTMLElement,IJSHTMLHeadElement)
  65892. Protected
  65893. Public
  65894. constructor Create; overload;
  65895. class function JSClassName: UnicodeString; override;
  65896. class function Cast(const Intf: IJSObject): IJSHTMLHeadElement;
  65897. end;
  65898. { --------------------------------------------------------------------
  65899. TJSHTMLHeadingElement
  65900. --------------------------------------------------------------------}
  65901. IJSHTMLHeadingElement = interface(IJSHTMLElement)
  65902. ['{0E649CA1-9DD0-361B-BB9A-74F23CBB13C1}']
  65903. function _Getalign: UnicodeString;
  65904. procedure _Setalign(const aValue: UnicodeString);
  65905. property align: UnicodeString read _Getalign write _Setalign;
  65906. end;
  65907. TJSHTMLHeadingElement = class(TJSHTMLElement,IJSHTMLHeadingElement)
  65908. Protected
  65909. function _Getalign: UnicodeString;
  65910. procedure _Setalign(const aValue: UnicodeString);
  65911. Public
  65912. constructor Create; overload;
  65913. class function JSClassName: UnicodeString; override;
  65914. class function Cast(const Intf: IJSObject): IJSHTMLHeadingElement;
  65915. property align: UnicodeString read _Getalign write _Setalign;
  65916. end;
  65917. { --------------------------------------------------------------------
  65918. TJSHTMLHRElement
  65919. --------------------------------------------------------------------}
  65920. IJSHTMLHRElement = interface(IJSHTMLElement)
  65921. ['{E6847AE8-41A5-3061-AFED-FDFFDE8A4CBD}']
  65922. function _Getalign: UnicodeString;
  65923. function _Getcolor: UnicodeString;
  65924. function _GetnoShade: Boolean;
  65925. function _Getsize: UnicodeString;
  65926. function _Getwidth: UnicodeString;
  65927. procedure _Setalign(const aValue: UnicodeString);
  65928. procedure _Setcolor(const aValue: UnicodeString);
  65929. procedure _SetnoShade(const aValue: Boolean);
  65930. procedure _Setsize(const aValue: UnicodeString);
  65931. procedure _Setwidth(const aValue: UnicodeString);
  65932. property align: UnicodeString read _Getalign write _Setalign;
  65933. property color: UnicodeString read _Getcolor write _Setcolor;
  65934. property noShade: Boolean read _GetnoShade write _SetnoShade;
  65935. property size: UnicodeString read _Getsize write _Setsize;
  65936. property width: UnicodeString read _Getwidth write _Setwidth;
  65937. end;
  65938. TJSHTMLHRElement = class(TJSHTMLElement,IJSHTMLHRElement)
  65939. Protected
  65940. function _Getalign: UnicodeString;
  65941. function _Getcolor: UnicodeString;
  65942. function _GetnoShade: Boolean;
  65943. function _Getsize: UnicodeString;
  65944. function _Getwidth: UnicodeString;
  65945. procedure _Setalign(const aValue: UnicodeString);
  65946. procedure _Setcolor(const aValue: UnicodeString);
  65947. procedure _SetnoShade(const aValue: Boolean);
  65948. procedure _Setsize(const aValue: UnicodeString);
  65949. procedure _Setwidth(const aValue: UnicodeString);
  65950. Public
  65951. constructor Create; overload;
  65952. class function JSClassName: UnicodeString; override;
  65953. class function Cast(const Intf: IJSObject): IJSHTMLHRElement;
  65954. property align: UnicodeString read _Getalign write _Setalign;
  65955. property color: UnicodeString read _Getcolor write _Setcolor;
  65956. property noShade: Boolean read _GetnoShade write _SetnoShade;
  65957. property size: UnicodeString read _Getsize write _Setsize;
  65958. property width: UnicodeString read _Getwidth write _Setwidth;
  65959. end;
  65960. { --------------------------------------------------------------------
  65961. TJSHTMLHtmlElement
  65962. --------------------------------------------------------------------}
  65963. IJSHTMLHtmlElement = interface(IJSHTMLElement)
  65964. ['{A70F76E9-CCD2-3832-A9A1-B1DD8A5DBD75}']
  65965. function _Getversion: UnicodeString;
  65966. procedure _Setversion(const aValue: UnicodeString);
  65967. property version: UnicodeString read _Getversion write _Setversion;
  65968. end;
  65969. TJSHTMLHtmlElement = class(TJSHTMLElement,IJSHTMLHtmlElement)
  65970. Protected
  65971. function _Getversion: UnicodeString;
  65972. procedure _Setversion(const aValue: UnicodeString);
  65973. Public
  65974. constructor Create; overload;
  65975. class function JSClassName: UnicodeString; override;
  65976. class function Cast(const Intf: IJSObject): IJSHTMLHtmlElement;
  65977. property version: UnicodeString read _Getversion write _Setversion;
  65978. end;
  65979. { --------------------------------------------------------------------
  65980. TJSHTMLIFrameElement
  65981. --------------------------------------------------------------------}
  65982. IJSHTMLIFrameElement = interface(IJSHTMLElement)
  65983. ['{794010ED-8164-3773-A1F6-636B181355BD}']
  65984. function _Getsrc: UnicodeString;
  65985. function _Getsrcdoc: UnicodeString;
  65986. function _Getname: UnicodeString;
  65987. function _Getsandbox: IJSDOMTokenList;
  65988. function _GetallowFullscreen: Boolean;
  65989. function _Getwidth: UnicodeString;
  65990. function _Getheight: UnicodeString;
  65991. function _GetreferrerPolicy: UnicodeString;
  65992. function _Getloading: UnicodeString;
  65993. function _GetcontentDocument: IJSDocument;
  65994. function _GetcontentWindow: IJSWindowProxy;
  65995. function _Getalign: UnicodeString;
  65996. function _Getscrolling: UnicodeString;
  65997. function _GetframeBorder: UnicodeString;
  65998. function _GetlongDesc: UnicodeString;
  65999. function _GetmarginHeight: UnicodeString;
  66000. function _GetmarginWidth: UnicodeString;
  66001. function _GetfeaturePolicy: IJSFeaturePolicy;
  66002. function _Getallow: UnicodeString;
  66003. procedure _Setsrc(const aValue: UnicodeString);
  66004. procedure _Setsrcdoc(const aValue: UnicodeString);
  66005. procedure _Setname(const aValue: UnicodeString);
  66006. procedure _SetallowFullscreen(const aValue: Boolean);
  66007. procedure _Setwidth(const aValue: UnicodeString);
  66008. procedure _Setheight(const aValue: UnicodeString);
  66009. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  66010. procedure _Setloading(const aValue: UnicodeString);
  66011. procedure _Setalign(const aValue: UnicodeString);
  66012. procedure _Setscrolling(const aValue: UnicodeString);
  66013. procedure _SetframeBorder(const aValue: UnicodeString);
  66014. procedure _SetlongDesc(const aValue: UnicodeString);
  66015. procedure _SetmarginHeight(const aValue: UnicodeString);
  66016. procedure _SetmarginWidth(const aValue: UnicodeString);
  66017. procedure _Setallow(const aValue: UnicodeString);
  66018. function getSVGDocument: IJSDocument;
  66019. property src: UnicodeString read _Getsrc write _Setsrc;
  66020. property srcdoc: UnicodeString read _Getsrcdoc write _Setsrcdoc;
  66021. property name: UnicodeString read _Getname write _Setname;
  66022. property sandbox: IJSDOMTokenList read _Getsandbox;
  66023. property allowFullscreen: Boolean read _GetallowFullscreen write _SetallowFullscreen;
  66024. property width: UnicodeString read _Getwidth write _Setwidth;
  66025. property height: UnicodeString read _Getheight write _Setheight;
  66026. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  66027. property loading: UnicodeString read _Getloading write _Setloading;
  66028. property contentDocument: IJSDocument read _GetcontentDocument;
  66029. property contentWindow: IJSWindowProxy read _GetcontentWindow;
  66030. property align: UnicodeString read _Getalign write _Setalign;
  66031. property scrolling: UnicodeString read _Getscrolling write _Setscrolling;
  66032. property frameBorder: UnicodeString read _GetframeBorder write _SetframeBorder;
  66033. property longDesc: UnicodeString read _GetlongDesc write _SetlongDesc;
  66034. property marginHeight: UnicodeString read _GetmarginHeight write _SetmarginHeight;
  66035. property marginWidth: UnicodeString read _GetmarginWidth write _SetmarginWidth;
  66036. property featurePolicy: IJSFeaturePolicy read _GetfeaturePolicy;
  66037. property allow: UnicodeString read _Getallow write _Setallow;
  66038. end;
  66039. TJSHTMLIFrameElement = class(TJSHTMLElement,IJSHTMLIFrameElement)
  66040. Protected
  66041. function _Getsrc: UnicodeString;
  66042. function _Getsrcdoc: UnicodeString;
  66043. function _Getname: UnicodeString;
  66044. function _Getsandbox: IJSDOMTokenList;
  66045. function _GetallowFullscreen: Boolean;
  66046. function _Getwidth: UnicodeString;
  66047. function _Getheight: UnicodeString;
  66048. function _GetreferrerPolicy: UnicodeString;
  66049. function _Getloading: UnicodeString;
  66050. function _GetcontentDocument: IJSDocument;
  66051. function _GetcontentWindow: IJSWindowProxy;
  66052. function _Getalign: UnicodeString;
  66053. function _Getscrolling: UnicodeString;
  66054. function _GetframeBorder: UnicodeString;
  66055. function _GetlongDesc: UnicodeString;
  66056. function _GetmarginHeight: UnicodeString;
  66057. function _GetmarginWidth: UnicodeString;
  66058. function _GetfeaturePolicy: IJSFeaturePolicy;
  66059. function _Getallow: UnicodeString;
  66060. procedure _Setsrc(const aValue: UnicodeString);
  66061. procedure _Setsrcdoc(const aValue: UnicodeString);
  66062. procedure _Setname(const aValue: UnicodeString);
  66063. procedure _SetallowFullscreen(const aValue: Boolean);
  66064. procedure _Setwidth(const aValue: UnicodeString);
  66065. procedure _Setheight(const aValue: UnicodeString);
  66066. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  66067. procedure _Setloading(const aValue: UnicodeString);
  66068. procedure _Setalign(const aValue: UnicodeString);
  66069. procedure _Setscrolling(const aValue: UnicodeString);
  66070. procedure _SetframeBorder(const aValue: UnicodeString);
  66071. procedure _SetlongDesc(const aValue: UnicodeString);
  66072. procedure _SetmarginHeight(const aValue: UnicodeString);
  66073. procedure _SetmarginWidth(const aValue: UnicodeString);
  66074. procedure _Setallow(const aValue: UnicodeString);
  66075. Public
  66076. constructor Create; overload;
  66077. function getSVGDocument: IJSDocument; overload;
  66078. class function JSClassName: UnicodeString; override;
  66079. class function Cast(const Intf: IJSObject): IJSHTMLIFrameElement;
  66080. property src: UnicodeString read _Getsrc write _Setsrc;
  66081. property srcdoc: UnicodeString read _Getsrcdoc write _Setsrcdoc;
  66082. property name: UnicodeString read _Getname write _Setname;
  66083. property sandbox: IJSDOMTokenList read _Getsandbox;
  66084. property allowFullscreen: Boolean read _GetallowFullscreen write _SetallowFullscreen;
  66085. property width: UnicodeString read _Getwidth write _Setwidth;
  66086. property height: UnicodeString read _Getheight write _Setheight;
  66087. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  66088. property loading: UnicodeString read _Getloading write _Setloading;
  66089. property contentDocument: IJSDocument read _GetcontentDocument;
  66090. property contentWindow: IJSWindowProxy read _GetcontentWindow;
  66091. property align: UnicodeString read _Getalign write _Setalign;
  66092. property scrolling: UnicodeString read _Getscrolling write _Setscrolling;
  66093. property frameBorder: UnicodeString read _GetframeBorder write _SetframeBorder;
  66094. property longDesc: UnicodeString read _GetlongDesc write _SetlongDesc;
  66095. property marginHeight: UnicodeString read _GetmarginHeight write _SetmarginHeight;
  66096. property marginWidth: UnicodeString read _GetmarginWidth write _SetmarginWidth;
  66097. property featurePolicy: IJSFeaturePolicy read _GetfeaturePolicy;
  66098. property allow: UnicodeString read _Getallow write _Setallow;
  66099. end;
  66100. { --------------------------------------------------------------------
  66101. TJSHTMLImageElement
  66102. --------------------------------------------------------------------}
  66103. IJSHTMLImageElement = interface(IJSHTMLElement)
  66104. ['{C3D04BC7-A826-3FA6-AB5E-F55DD6840CF2}']
  66105. function _Getalt: UnicodeString;
  66106. function _Getsrc: UnicodeString;
  66107. function _Getsrcset: UnicodeString;
  66108. function _GetcrossOrigin: UnicodeString;
  66109. function _GetuseMap: UnicodeString;
  66110. function _GetreferrerPolicy: UnicodeString;
  66111. function _GetisMap: Boolean;
  66112. function _Getwidth: Cardinal;
  66113. function _Getheight: Cardinal;
  66114. function _Getdecoding: UnicodeString;
  66115. function _Getloading: UnicodeString;
  66116. function _GetfetchPriority: UnicodeString;
  66117. function _GetnaturalWidth: Cardinal;
  66118. function _GetnaturalHeight: Cardinal;
  66119. function _Getcomplete: Boolean;
  66120. function _Getname: UnicodeString;
  66121. function _Getalign: UnicodeString;
  66122. function _Gethspace: Cardinal;
  66123. function _Getvspace: Cardinal;
  66124. function _GetlongDesc: UnicodeString;
  66125. function _Getborder: UnicodeString;
  66126. function _Getsizes: UnicodeString;
  66127. function _GetcurrentSrc: UnicodeString;
  66128. function _Getlowsrc: UnicodeString;
  66129. function _Getx: LongInt;
  66130. function _Gety: LongInt;
  66131. procedure _Setalt(const aValue: UnicodeString);
  66132. procedure _Setsrc(const aValue: UnicodeString);
  66133. procedure _Setsrcset(const aValue: UnicodeString);
  66134. procedure _SetcrossOrigin(const aValue: UnicodeString);
  66135. procedure _SetuseMap(const aValue: UnicodeString);
  66136. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  66137. procedure _SetisMap(const aValue: Boolean);
  66138. procedure _Setwidth(const aValue: Cardinal);
  66139. procedure _Setheight(const aValue: Cardinal);
  66140. procedure _Setdecoding(const aValue: UnicodeString);
  66141. procedure _Setloading(const aValue: UnicodeString);
  66142. procedure _SetfetchPriority(const aValue: UnicodeString);
  66143. procedure _Setname(const aValue: UnicodeString);
  66144. procedure _Setalign(const aValue: UnicodeString);
  66145. procedure _Sethspace(const aValue: Cardinal);
  66146. procedure _Setvspace(const aValue: Cardinal);
  66147. procedure _SetlongDesc(const aValue: UnicodeString);
  66148. procedure _Setborder(const aValue: UnicodeString);
  66149. procedure _Setsizes(const aValue: UnicodeString);
  66150. procedure _Setlowsrc(const aValue: UnicodeString);
  66151. function decode: IJSPromise; // Promise<undefined>
  66152. property alt: UnicodeString read _Getalt write _Setalt;
  66153. property src: UnicodeString read _Getsrc write _Setsrc;
  66154. property srcset: UnicodeString read _Getsrcset write _Setsrcset;
  66155. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  66156. property useMap: UnicodeString read _GetuseMap write _SetuseMap;
  66157. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  66158. property isMap: Boolean read _GetisMap write _SetisMap;
  66159. property width: Cardinal read _Getwidth write _Setwidth;
  66160. property height: Cardinal read _Getheight write _Setheight;
  66161. property decoding: UnicodeString read _Getdecoding write _Setdecoding;
  66162. property loading: UnicodeString read _Getloading write _Setloading;
  66163. property fetchPriority: UnicodeString read _GetfetchPriority write _SetfetchPriority;
  66164. property naturalWidth: Cardinal read _GetnaturalWidth;
  66165. property naturalHeight: Cardinal read _GetnaturalHeight;
  66166. property complete: Boolean read _Getcomplete;
  66167. property name: UnicodeString read _Getname write _Setname;
  66168. property align: UnicodeString read _Getalign write _Setalign;
  66169. property hspace: Cardinal read _Gethspace write _Sethspace;
  66170. property vspace: Cardinal read _Getvspace write _Setvspace;
  66171. property longDesc: UnicodeString read _GetlongDesc write _SetlongDesc;
  66172. property border: UnicodeString read _Getborder write _Setborder;
  66173. property sizes: UnicodeString read _Getsizes write _Setsizes;
  66174. property currentSrc: UnicodeString read _GetcurrentSrc;
  66175. property lowsrc: UnicodeString read _Getlowsrc write _Setlowsrc;
  66176. property x: LongInt read _Getx;
  66177. property y: LongInt read _Gety;
  66178. end;
  66179. TJSHTMLImageElement = class(TJSHTMLElement,IJSHTMLImageElement)
  66180. Protected
  66181. function _Getalt: UnicodeString;
  66182. function _Getsrc: UnicodeString;
  66183. function _Getsrcset: UnicodeString;
  66184. function _GetcrossOrigin: UnicodeString;
  66185. function _GetuseMap: UnicodeString;
  66186. function _GetreferrerPolicy: UnicodeString;
  66187. function _GetisMap: Boolean;
  66188. function _Getwidth: Cardinal;
  66189. function _Getheight: Cardinal;
  66190. function _Getdecoding: UnicodeString;
  66191. function _Getloading: UnicodeString;
  66192. function _GetfetchPriority: UnicodeString;
  66193. function _GetnaturalWidth: Cardinal;
  66194. function _GetnaturalHeight: Cardinal;
  66195. function _Getcomplete: Boolean;
  66196. function _Getname: UnicodeString;
  66197. function _Getalign: UnicodeString;
  66198. function _Gethspace: Cardinal;
  66199. function _Getvspace: Cardinal;
  66200. function _GetlongDesc: UnicodeString;
  66201. function _Getborder: UnicodeString;
  66202. function _Getsizes: UnicodeString;
  66203. function _GetcurrentSrc: UnicodeString;
  66204. function _Getlowsrc: UnicodeString;
  66205. function _Getx: LongInt;
  66206. function _Gety: LongInt;
  66207. procedure _Setalt(const aValue: UnicodeString);
  66208. procedure _Setsrc(const aValue: UnicodeString);
  66209. procedure _Setsrcset(const aValue: UnicodeString);
  66210. procedure _SetcrossOrigin(const aValue: UnicodeString);
  66211. procedure _SetuseMap(const aValue: UnicodeString);
  66212. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  66213. procedure _SetisMap(const aValue: Boolean);
  66214. procedure _Setwidth(const aValue: Cardinal);
  66215. procedure _Setheight(const aValue: Cardinal);
  66216. procedure _Setdecoding(const aValue: UnicodeString);
  66217. procedure _Setloading(const aValue: UnicodeString);
  66218. procedure _SetfetchPriority(const aValue: UnicodeString);
  66219. procedure _Setname(const aValue: UnicodeString);
  66220. procedure _Setalign(const aValue: UnicodeString);
  66221. procedure _Sethspace(const aValue: Cardinal);
  66222. procedure _Setvspace(const aValue: Cardinal);
  66223. procedure _SetlongDesc(const aValue: UnicodeString);
  66224. procedure _Setborder(const aValue: UnicodeString);
  66225. procedure _Setsizes(const aValue: UnicodeString);
  66226. procedure _Setlowsrc(const aValue: UnicodeString);
  66227. Public
  66228. constructor Create; overload;
  66229. function decode: IJSPromise; overload; // Promise<undefined>
  66230. class function JSClassName: UnicodeString; override;
  66231. class function Cast(const Intf: IJSObject): IJSHTMLImageElement;
  66232. property alt: UnicodeString read _Getalt write _Setalt;
  66233. property src: UnicodeString read _Getsrc write _Setsrc;
  66234. property srcset: UnicodeString read _Getsrcset write _Setsrcset;
  66235. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  66236. property useMap: UnicodeString read _GetuseMap write _SetuseMap;
  66237. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  66238. property isMap: Boolean read _GetisMap write _SetisMap;
  66239. property width: Cardinal read _Getwidth write _Setwidth;
  66240. property height: Cardinal read _Getheight write _Setheight;
  66241. property decoding: UnicodeString read _Getdecoding write _Setdecoding;
  66242. property loading: UnicodeString read _Getloading write _Setloading;
  66243. property fetchPriority: UnicodeString read _GetfetchPriority write _SetfetchPriority;
  66244. property naturalWidth: Cardinal read _GetnaturalWidth;
  66245. property naturalHeight: Cardinal read _GetnaturalHeight;
  66246. property complete: Boolean read _Getcomplete;
  66247. property name: UnicodeString read _Getname write _Setname;
  66248. property align: UnicodeString read _Getalign write _Setalign;
  66249. property hspace: Cardinal read _Gethspace write _Sethspace;
  66250. property vspace: Cardinal read _Getvspace write _Setvspace;
  66251. property longDesc: UnicodeString read _GetlongDesc write _SetlongDesc;
  66252. property border: UnicodeString read _Getborder write _Setborder;
  66253. property sizes: UnicodeString read _Getsizes write _Setsizes;
  66254. property currentSrc: UnicodeString read _GetcurrentSrc;
  66255. property lowsrc: UnicodeString read _Getlowsrc write _Setlowsrc;
  66256. property x: LongInt read _Getx;
  66257. property y: LongInt read _Gety;
  66258. end;
  66259. { --------------------------------------------------------------------
  66260. TJSHTMLInputElement
  66261. --------------------------------------------------------------------}
  66262. IJSHTMLInputElement = interface(IJSHTMLElement)
  66263. ['{86DAED69-5AF5-3F10-BEC0-863D573D9F14}']
  66264. function _Getaccept: UnicodeString;
  66265. function _Getalt: UnicodeString;
  66266. function _Getautocomplete: UnicodeString;
  66267. function _Getcapture: UnicodeString;
  66268. function _GetdefaultChecked: Boolean;
  66269. function _Getchecked: Boolean;
  66270. function _GetdirName: UnicodeString;
  66271. function _Getdisabled: Boolean;
  66272. function _Getform: IJSHTMLFormElement;
  66273. function _Getfiles: IJSFileList;
  66274. function _GetformAction: UnicodeString;
  66275. function _GetformEnctype: UnicodeString;
  66276. function _GetformMethod: UnicodeString;
  66277. function _GetformNoValidate: Boolean;
  66278. function _GetformTarget: UnicodeString;
  66279. function _Getheight: Cardinal;
  66280. function _Getindeterminate: Boolean;
  66281. function _Getlist: IJSHTMLDataListElement;
  66282. function _Getmax: UnicodeString;
  66283. function _GetmaxLength: LongInt;
  66284. function _Getmin: UnicodeString;
  66285. function _GetminLength: LongInt;
  66286. function _Getmultiple: Boolean;
  66287. function _Getname: UnicodeString;
  66288. function _Getpattern: UnicodeString;
  66289. function _Getplaceholder: UnicodeString;
  66290. function _GetreadOnly: Boolean;
  66291. function _Getrequired: Boolean;
  66292. function _Getsize: Cardinal;
  66293. function _Getsrc: UnicodeString;
  66294. function _Getstep: UnicodeString;
  66295. function _Gettype_: UnicodeString;
  66296. function _GetdefaultValue: UnicodeString;
  66297. function _Getvalue: UnicodeString;
  66298. function _GetvalueAsDate: IJSObject;
  66299. function _GetvalueAsNumber: Double;
  66300. function _Getwidth: Cardinal;
  66301. function _GetwillValidate: Boolean;
  66302. function _Getvalidity: IJSValidityState;
  66303. function _GetvalidationMessage: UnicodeString;
  66304. function _Getlabels: IJSNodeList;
  66305. function _GetselectionStart: Cardinal;
  66306. function _GetselectionEnd: Cardinal;
  66307. function _GetselectionDirection: UnicodeString;
  66308. function _Getalign: UnicodeString;
  66309. function _GetuseMap: UnicodeString;
  66310. function _GettextLength: LongInt;
  66311. function _GetwebkitEntries: TJSFileSystemEntryDynArray;
  66312. function _Getwebkitdirectory: Boolean;
  66313. function _GetpopoverTargetElement: IJSElement;
  66314. function _GetpopoverTargetAction: UnicodeString;
  66315. function _GetinvokeTargetElement: IJSElement;
  66316. function _GetinvokeAction: UnicodeString;
  66317. procedure _Setaccept(const aValue: UnicodeString);
  66318. procedure _Setalt(const aValue: UnicodeString);
  66319. procedure _Setautocomplete(const aValue: UnicodeString);
  66320. procedure _Setcapture(const aValue: UnicodeString);
  66321. procedure _SetdefaultChecked(const aValue: Boolean);
  66322. procedure _Setchecked(const aValue: Boolean);
  66323. procedure _SetdirName(const aValue: UnicodeString);
  66324. procedure _Setdisabled(const aValue: Boolean);
  66325. procedure _Setfiles(const aValue: IJSFileList);
  66326. procedure _SetformAction(const aValue: UnicodeString);
  66327. procedure _SetformEnctype(const aValue: UnicodeString);
  66328. procedure _SetformMethod(const aValue: UnicodeString);
  66329. procedure _SetformNoValidate(const aValue: Boolean);
  66330. procedure _SetformTarget(const aValue: UnicodeString);
  66331. procedure _Setheight(const aValue: Cardinal);
  66332. procedure _Setindeterminate(const aValue: Boolean);
  66333. procedure _Setmax(const aValue: UnicodeString);
  66334. procedure _SetmaxLength(const aValue: LongInt);
  66335. procedure _Setmin(const aValue: UnicodeString);
  66336. procedure _SetminLength(const aValue: LongInt);
  66337. procedure _Setmultiple(const aValue: Boolean);
  66338. procedure _Setname(const aValue: UnicodeString);
  66339. procedure _Setpattern(const aValue: UnicodeString);
  66340. procedure _Setplaceholder(const aValue: UnicodeString);
  66341. procedure _SetreadOnly(const aValue: Boolean);
  66342. procedure _Setrequired(const aValue: Boolean);
  66343. procedure _Setsize(const aValue: Cardinal);
  66344. procedure _Setsrc(const aValue: UnicodeString);
  66345. procedure _Setstep(const aValue: UnicodeString);
  66346. procedure _Settype_(const aValue: UnicodeString);
  66347. procedure _SetdefaultValue(const aValue: UnicodeString);
  66348. procedure _Setvalue(const aValue: UnicodeString);
  66349. procedure _SetvalueAsDate(const aValue: IJSObject);
  66350. procedure _SetvalueAsNumber(const aValue: Double);
  66351. procedure _Setwidth(const aValue: Cardinal);
  66352. procedure _SetselectionStart(const aValue: Cardinal);
  66353. procedure _SetselectionEnd(const aValue: Cardinal);
  66354. procedure _SetselectionDirection(const aValue: UnicodeString);
  66355. procedure _Setalign(const aValue: UnicodeString);
  66356. procedure _SetuseMap(const aValue: UnicodeString);
  66357. procedure _Setwebkitdirectory(const aValue: Boolean);
  66358. procedure _SetpopoverTargetElement(const aValue: IJSElement);
  66359. procedure _SetpopoverTargetAction(const aValue: UnicodeString);
  66360. procedure _SetinvokeTargetElement(const aValue: IJSElement);
  66361. procedure _SetinvokeAction(const aValue: UnicodeString);
  66362. procedure stepUp(aN: LongInt);
  66363. procedure stepUp;
  66364. procedure stepDown(aN: LongInt);
  66365. procedure stepDown;
  66366. function checkValidity: Boolean;
  66367. function reportValidity: Boolean;
  66368. procedure setCustomValidity(const aError: UnicodeString);
  66369. procedure select;
  66370. procedure setRangeText(const aReplacement: UnicodeString);
  66371. procedure setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal; aSelectionMode: TSelectionMode);
  66372. procedure setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal);
  66373. procedure setSelectionRange(aStart: Cardinal; aEnd_: Cardinal; const aDirection: UnicodeString);
  66374. procedure setSelectionRange(aStart: Cardinal; aEnd_: Cardinal);
  66375. procedure showPicker;
  66376. function mozIsTextField(aAExcludePassword: Boolean): Boolean;
  66377. procedure openDateTimePicker(const aInitialValue: TJSDateTimeValue);
  66378. procedure openDateTimePicker;
  66379. procedure updateDateTimePicker(const aValue: TJSDateTimeValue);
  66380. procedure updateDateTimePicker;
  66381. procedure closeDateTimePicker;
  66382. procedure setFocusState(aAIsFocused: Boolean);
  66383. procedure updateValidityState;
  66384. function getStep: Double;
  66385. function getStepBase: Double;
  66386. procedure setUserInput(const aInput: UnicodeString);
  66387. property accept: UnicodeString read _Getaccept write _Setaccept;
  66388. property alt: UnicodeString read _Getalt write _Setalt;
  66389. property autocomplete: UnicodeString read _Getautocomplete write _Setautocomplete;
  66390. property capture: UnicodeString read _Getcapture write _Setcapture;
  66391. property defaultChecked: Boolean read _GetdefaultChecked write _SetdefaultChecked;
  66392. property checked: Boolean read _Getchecked write _Setchecked;
  66393. property dirName: UnicodeString read _GetdirName write _SetdirName;
  66394. property disabled: Boolean read _Getdisabled write _Setdisabled;
  66395. property form: IJSHTMLFormElement read _Getform;
  66396. property files: IJSFileList read _Getfiles write _Setfiles;
  66397. property formAction: UnicodeString read _GetformAction write _SetformAction;
  66398. property formEnctype: UnicodeString read _GetformEnctype write _SetformEnctype;
  66399. property formMethod: UnicodeString read _GetformMethod write _SetformMethod;
  66400. property formNoValidate: Boolean read _GetformNoValidate write _SetformNoValidate;
  66401. property formTarget: UnicodeString read _GetformTarget write _SetformTarget;
  66402. property height: Cardinal read _Getheight write _Setheight;
  66403. property indeterminate: Boolean read _Getindeterminate write _Setindeterminate;
  66404. property list: IJSHTMLDataListElement read _Getlist;
  66405. property max: UnicodeString read _Getmax write _Setmax;
  66406. property maxLength: LongInt read _GetmaxLength write _SetmaxLength;
  66407. property min: UnicodeString read _Getmin write _Setmin;
  66408. property minLength: LongInt read _GetminLength write _SetminLength;
  66409. property multiple: Boolean read _Getmultiple write _Setmultiple;
  66410. property name: UnicodeString read _Getname write _Setname;
  66411. property pattern: UnicodeString read _Getpattern write _Setpattern;
  66412. property placeholder: UnicodeString read _Getplaceholder write _Setplaceholder;
  66413. property readOnly: Boolean read _GetreadOnly write _SetreadOnly;
  66414. property required: Boolean read _Getrequired write _Setrequired;
  66415. property size: Cardinal read _Getsize write _Setsize;
  66416. property src: UnicodeString read _Getsrc write _Setsrc;
  66417. property step: UnicodeString read _Getstep write _Setstep;
  66418. property type_: UnicodeString read _Gettype_ write _Settype_;
  66419. property defaultValue: UnicodeString read _GetdefaultValue write _SetdefaultValue;
  66420. property value: UnicodeString read _Getvalue write _Setvalue;
  66421. property valueAsDate: IJSObject read _GetvalueAsDate write _SetvalueAsDate;
  66422. property valueAsNumber: Double read _GetvalueAsNumber write _SetvalueAsNumber;
  66423. property width: Cardinal read _Getwidth write _Setwidth;
  66424. property willValidate: Boolean read _GetwillValidate;
  66425. property validity: IJSValidityState read _Getvalidity;
  66426. property validationMessage: UnicodeString read _GetvalidationMessage;
  66427. property labels: IJSNodeList read _Getlabels;
  66428. property selectionStart: Cardinal read _GetselectionStart write _SetselectionStart;
  66429. property selectionEnd: Cardinal read _GetselectionEnd write _SetselectionEnd;
  66430. property selectionDirection: UnicodeString read _GetselectionDirection write _SetselectionDirection;
  66431. property align: UnicodeString read _Getalign write _Setalign;
  66432. property useMap: UnicodeString read _GetuseMap write _SetuseMap;
  66433. property textLength: LongInt read _GettextLength;
  66434. property webkitEntries: TJSFileSystemEntryDynArray read _GetwebkitEntries;
  66435. property webkitdirectory: Boolean read _Getwebkitdirectory write _Setwebkitdirectory;
  66436. property popoverTargetElement: IJSElement read _GetpopoverTargetElement write _SetpopoverTargetElement;
  66437. property popoverTargetAction: UnicodeString read _GetpopoverTargetAction write _SetpopoverTargetAction;
  66438. property invokeTargetElement: IJSElement read _GetinvokeTargetElement write _SetinvokeTargetElement;
  66439. property invokeAction: UnicodeString read _GetinvokeAction write _SetinvokeAction;
  66440. end;
  66441. TJSHTMLInputElement = class(TJSHTMLElement,IJSHTMLInputElement)
  66442. Protected
  66443. function _Getaccept: UnicodeString;
  66444. function _Getalt: UnicodeString;
  66445. function _Getautocomplete: UnicodeString;
  66446. function _Getcapture: UnicodeString;
  66447. function _GetdefaultChecked: Boolean;
  66448. function _Getchecked: Boolean;
  66449. function _GetdirName: UnicodeString;
  66450. function _Getdisabled: Boolean;
  66451. function _Getform: IJSHTMLFormElement;
  66452. function _Getfiles: IJSFileList;
  66453. function _GetformAction: UnicodeString;
  66454. function _GetformEnctype: UnicodeString;
  66455. function _GetformMethod: UnicodeString;
  66456. function _GetformNoValidate: Boolean;
  66457. function _GetformTarget: UnicodeString;
  66458. function _Getheight: Cardinal;
  66459. function _Getindeterminate: Boolean;
  66460. function _Getlist: IJSHTMLDataListElement;
  66461. function _Getmax: UnicodeString;
  66462. function _GetmaxLength: LongInt;
  66463. function _Getmin: UnicodeString;
  66464. function _GetminLength: LongInt;
  66465. function _Getmultiple: Boolean;
  66466. function _Getname: UnicodeString;
  66467. function _Getpattern: UnicodeString;
  66468. function _Getplaceholder: UnicodeString;
  66469. function _GetreadOnly: Boolean;
  66470. function _Getrequired: Boolean;
  66471. function _Getsize: Cardinal;
  66472. function _Getsrc: UnicodeString;
  66473. function _Getstep: UnicodeString;
  66474. function _Gettype_: UnicodeString;
  66475. function _GetdefaultValue: UnicodeString;
  66476. function _Getvalue: UnicodeString;
  66477. function _GetvalueAsDate: IJSObject;
  66478. function _GetvalueAsNumber: Double;
  66479. function _Getwidth: Cardinal;
  66480. function _GetwillValidate: Boolean;
  66481. function _Getvalidity: IJSValidityState;
  66482. function _GetvalidationMessage: UnicodeString;
  66483. function _Getlabels: IJSNodeList;
  66484. function _GetselectionStart: Cardinal;
  66485. function _GetselectionEnd: Cardinal;
  66486. function _GetselectionDirection: UnicodeString;
  66487. function _Getalign: UnicodeString;
  66488. function _GetuseMap: UnicodeString;
  66489. function _GettextLength: LongInt;
  66490. function _GetwebkitEntries: TJSFileSystemEntryDynArray;
  66491. function _Getwebkitdirectory: Boolean;
  66492. function _GetpopoverTargetElement: IJSElement;
  66493. function _GetpopoverTargetAction: UnicodeString;
  66494. function _GetinvokeTargetElement: IJSElement;
  66495. function _GetinvokeAction: UnicodeString;
  66496. procedure _Setaccept(const aValue: UnicodeString);
  66497. procedure _Setalt(const aValue: UnicodeString);
  66498. procedure _Setautocomplete(const aValue: UnicodeString);
  66499. procedure _Setcapture(const aValue: UnicodeString);
  66500. procedure _SetdefaultChecked(const aValue: Boolean);
  66501. procedure _Setchecked(const aValue: Boolean);
  66502. procedure _SetdirName(const aValue: UnicodeString);
  66503. procedure _Setdisabled(const aValue: Boolean);
  66504. procedure _Setfiles(const aValue: IJSFileList);
  66505. procedure _SetformAction(const aValue: UnicodeString);
  66506. procedure _SetformEnctype(const aValue: UnicodeString);
  66507. procedure _SetformMethod(const aValue: UnicodeString);
  66508. procedure _SetformNoValidate(const aValue: Boolean);
  66509. procedure _SetformTarget(const aValue: UnicodeString);
  66510. procedure _Setheight(const aValue: Cardinal);
  66511. procedure _Setindeterminate(const aValue: Boolean);
  66512. procedure _Setmax(const aValue: UnicodeString);
  66513. procedure _SetmaxLength(const aValue: LongInt);
  66514. procedure _Setmin(const aValue: UnicodeString);
  66515. procedure _SetminLength(const aValue: LongInt);
  66516. procedure _Setmultiple(const aValue: Boolean);
  66517. procedure _Setname(const aValue: UnicodeString);
  66518. procedure _Setpattern(const aValue: UnicodeString);
  66519. procedure _Setplaceholder(const aValue: UnicodeString);
  66520. procedure _SetreadOnly(const aValue: Boolean);
  66521. procedure _Setrequired(const aValue: Boolean);
  66522. procedure _Setsize(const aValue: Cardinal);
  66523. procedure _Setsrc(const aValue: UnicodeString);
  66524. procedure _Setstep(const aValue: UnicodeString);
  66525. procedure _Settype_(const aValue: UnicodeString);
  66526. procedure _SetdefaultValue(const aValue: UnicodeString);
  66527. procedure _Setvalue(const aValue: UnicodeString);
  66528. procedure _SetvalueAsDate(const aValue: IJSObject);
  66529. procedure _SetvalueAsNumber(const aValue: Double);
  66530. procedure _Setwidth(const aValue: Cardinal);
  66531. procedure _SetselectionStart(const aValue: Cardinal);
  66532. procedure _SetselectionEnd(const aValue: Cardinal);
  66533. procedure _SetselectionDirection(const aValue: UnicodeString);
  66534. procedure _Setalign(const aValue: UnicodeString);
  66535. procedure _SetuseMap(const aValue: UnicodeString);
  66536. procedure _Setwebkitdirectory(const aValue: Boolean);
  66537. procedure _SetpopoverTargetElement(const aValue: IJSElement);
  66538. procedure _SetpopoverTargetAction(const aValue: UnicodeString);
  66539. procedure _SetinvokeTargetElement(const aValue: IJSElement);
  66540. procedure _SetinvokeAction(const aValue: UnicodeString);
  66541. Public
  66542. constructor Create; overload;
  66543. procedure stepUp(aN: LongInt); overload;
  66544. procedure stepUp; overload;
  66545. procedure stepDown(aN: LongInt); overload;
  66546. procedure stepDown; overload;
  66547. function checkValidity: Boolean; overload;
  66548. function reportValidity: Boolean; overload;
  66549. procedure setCustomValidity(const aError: UnicodeString); overload;
  66550. procedure select; overload;
  66551. procedure setRangeText(const aReplacement: UnicodeString); overload;
  66552. procedure setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal; aSelectionMode: TSelectionMode); overload;
  66553. procedure setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal); overload;
  66554. procedure setSelectionRange(aStart: Cardinal; aEnd_: Cardinal; const aDirection: UnicodeString); overload;
  66555. procedure setSelectionRange(aStart: Cardinal; aEnd_: Cardinal); overload;
  66556. procedure showPicker; overload;
  66557. function mozIsTextField(aAExcludePassword: Boolean): Boolean; overload;
  66558. procedure openDateTimePicker(const aInitialValue: TJSDateTimeValue); overload;
  66559. procedure openDateTimePicker; overload;
  66560. procedure updateDateTimePicker(const aValue: TJSDateTimeValue); overload;
  66561. procedure updateDateTimePicker; overload;
  66562. procedure closeDateTimePicker; overload;
  66563. procedure setFocusState(aAIsFocused: Boolean); overload;
  66564. procedure updateValidityState; overload;
  66565. function getStep: Double; overload;
  66566. function getStepBase: Double; overload;
  66567. procedure setUserInput(const aInput: UnicodeString); overload;
  66568. class function JSClassName: UnicodeString; override;
  66569. class function Cast(const Intf: IJSObject): IJSHTMLInputElement;
  66570. property accept: UnicodeString read _Getaccept write _Setaccept;
  66571. property alt: UnicodeString read _Getalt write _Setalt;
  66572. property autocomplete: UnicodeString read _Getautocomplete write _Setautocomplete;
  66573. property capture: UnicodeString read _Getcapture write _Setcapture;
  66574. property defaultChecked: Boolean read _GetdefaultChecked write _SetdefaultChecked;
  66575. property checked: Boolean read _Getchecked write _Setchecked;
  66576. property dirName: UnicodeString read _GetdirName write _SetdirName;
  66577. property disabled: Boolean read _Getdisabled write _Setdisabled;
  66578. property form: IJSHTMLFormElement read _Getform;
  66579. property files: IJSFileList read _Getfiles write _Setfiles;
  66580. property formAction: UnicodeString read _GetformAction write _SetformAction;
  66581. property formEnctype: UnicodeString read _GetformEnctype write _SetformEnctype;
  66582. property formMethod: UnicodeString read _GetformMethod write _SetformMethod;
  66583. property formNoValidate: Boolean read _GetformNoValidate write _SetformNoValidate;
  66584. property formTarget: UnicodeString read _GetformTarget write _SetformTarget;
  66585. property height: Cardinal read _Getheight write _Setheight;
  66586. property indeterminate: Boolean read _Getindeterminate write _Setindeterminate;
  66587. property list: IJSHTMLDataListElement read _Getlist;
  66588. property max: UnicodeString read _Getmax write _Setmax;
  66589. property maxLength: LongInt read _GetmaxLength write _SetmaxLength;
  66590. property min: UnicodeString read _Getmin write _Setmin;
  66591. property minLength: LongInt read _GetminLength write _SetminLength;
  66592. property multiple: Boolean read _Getmultiple write _Setmultiple;
  66593. property name: UnicodeString read _Getname write _Setname;
  66594. property pattern: UnicodeString read _Getpattern write _Setpattern;
  66595. property placeholder: UnicodeString read _Getplaceholder write _Setplaceholder;
  66596. property readOnly: Boolean read _GetreadOnly write _SetreadOnly;
  66597. property required: Boolean read _Getrequired write _Setrequired;
  66598. property size: Cardinal read _Getsize write _Setsize;
  66599. property src: UnicodeString read _Getsrc write _Setsrc;
  66600. property step: UnicodeString read _Getstep write _Setstep;
  66601. property type_: UnicodeString read _Gettype_ write _Settype_;
  66602. property defaultValue: UnicodeString read _GetdefaultValue write _SetdefaultValue;
  66603. property value: UnicodeString read _Getvalue write _Setvalue;
  66604. property valueAsDate: IJSObject read _GetvalueAsDate write _SetvalueAsDate;
  66605. property valueAsNumber: Double read _GetvalueAsNumber write _SetvalueAsNumber;
  66606. property width: Cardinal read _Getwidth write _Setwidth;
  66607. property willValidate: Boolean read _GetwillValidate;
  66608. property validity: IJSValidityState read _Getvalidity;
  66609. property validationMessage: UnicodeString read _GetvalidationMessage;
  66610. property labels: IJSNodeList read _Getlabels;
  66611. property selectionStart: Cardinal read _GetselectionStart write _SetselectionStart;
  66612. property selectionEnd: Cardinal read _GetselectionEnd write _SetselectionEnd;
  66613. property selectionDirection: UnicodeString read _GetselectionDirection write _SetselectionDirection;
  66614. property align: UnicodeString read _Getalign write _Setalign;
  66615. property useMap: UnicodeString read _GetuseMap write _SetuseMap;
  66616. property textLength: LongInt read _GettextLength;
  66617. property webkitEntries: TJSFileSystemEntryDynArray read _GetwebkitEntries;
  66618. property webkitdirectory: Boolean read _Getwebkitdirectory write _Setwebkitdirectory;
  66619. property popoverTargetElement: IJSElement read _GetpopoverTargetElement write _SetpopoverTargetElement;
  66620. property popoverTargetAction: UnicodeString read _GetpopoverTargetAction write _SetpopoverTargetAction;
  66621. property invokeTargetElement: IJSElement read _GetinvokeTargetElement write _SetinvokeTargetElement;
  66622. property invokeAction: UnicodeString read _GetinvokeAction write _SetinvokeAction;
  66623. end;
  66624. { --------------------------------------------------------------------
  66625. TJSHTMLLabelElement
  66626. --------------------------------------------------------------------}
  66627. IJSHTMLLabelElement = interface(IJSHTMLElement)
  66628. ['{49240B9F-6860-39AF-9920-F2C6E4DC339F}']
  66629. function _Getform: IJSHTMLFormElement;
  66630. function _GethtmlFor: UnicodeString;
  66631. function _Getcontrol: IJSHTMLElement;
  66632. procedure _SethtmlFor(const aValue: UnicodeString);
  66633. property form: IJSHTMLFormElement read _Getform;
  66634. property htmlFor: UnicodeString read _GethtmlFor write _SethtmlFor;
  66635. property control: IJSHTMLElement read _Getcontrol;
  66636. end;
  66637. TJSHTMLLabelElement = class(TJSHTMLElement,IJSHTMLLabelElement)
  66638. Protected
  66639. function _Getform: IJSHTMLFormElement;
  66640. function _GethtmlFor: UnicodeString;
  66641. function _Getcontrol: IJSHTMLElement;
  66642. procedure _SethtmlFor(const aValue: UnicodeString);
  66643. Public
  66644. constructor Create; overload;
  66645. class function JSClassName: UnicodeString; override;
  66646. class function Cast(const Intf: IJSObject): IJSHTMLLabelElement;
  66647. property form: IJSHTMLFormElement read _Getform;
  66648. property htmlFor: UnicodeString read _GethtmlFor write _SethtmlFor;
  66649. property control: IJSHTMLElement read _Getcontrol;
  66650. end;
  66651. { --------------------------------------------------------------------
  66652. TJSHTMLLegendElement
  66653. --------------------------------------------------------------------}
  66654. IJSHTMLLegendElement = interface(IJSHTMLElement)
  66655. ['{758BAD55-045A-373F-90FB-7AE01F55B0EC}']
  66656. function _Getform: IJSHTMLFormElement;
  66657. function _Getalign: UnicodeString;
  66658. procedure _Setalign(const aValue: UnicodeString);
  66659. property form: IJSHTMLFormElement read _Getform;
  66660. property align: UnicodeString read _Getalign write _Setalign;
  66661. end;
  66662. TJSHTMLLegendElement = class(TJSHTMLElement,IJSHTMLLegendElement)
  66663. Protected
  66664. function _Getform: IJSHTMLFormElement;
  66665. function _Getalign: UnicodeString;
  66666. procedure _Setalign(const aValue: UnicodeString);
  66667. Public
  66668. constructor Create; overload;
  66669. class function JSClassName: UnicodeString; override;
  66670. class function Cast(const Intf: IJSObject): IJSHTMLLegendElement;
  66671. property form: IJSHTMLFormElement read _Getform;
  66672. property align: UnicodeString read _Getalign write _Setalign;
  66673. end;
  66674. { --------------------------------------------------------------------
  66675. TJSHTMLLIElement
  66676. --------------------------------------------------------------------}
  66677. IJSHTMLLIElement = interface(IJSHTMLElement)
  66678. ['{2E2A5B5B-0F70-33E9-ABC0-74472D952337}']
  66679. function _Getvalue: LongInt;
  66680. function _Gettype_: UnicodeString;
  66681. procedure _Setvalue(const aValue: LongInt);
  66682. procedure _Settype_(const aValue: UnicodeString);
  66683. property value: LongInt read _Getvalue write _Setvalue;
  66684. property type_: UnicodeString read _Gettype_ write _Settype_;
  66685. end;
  66686. TJSHTMLLIElement = class(TJSHTMLElement,IJSHTMLLIElement)
  66687. Protected
  66688. function _Getvalue: LongInt;
  66689. function _Gettype_: UnicodeString;
  66690. procedure _Setvalue(const aValue: LongInt);
  66691. procedure _Settype_(const aValue: UnicodeString);
  66692. Public
  66693. constructor Create; overload;
  66694. class function JSClassName: UnicodeString; override;
  66695. class function Cast(const Intf: IJSObject): IJSHTMLLIElement;
  66696. property value: LongInt read _Getvalue write _Setvalue;
  66697. property type_: UnicodeString read _Gettype_ write _Settype_;
  66698. end;
  66699. { --------------------------------------------------------------------
  66700. TJSHTMLLinkElement
  66701. --------------------------------------------------------------------}
  66702. IJSHTMLLinkElement = interface(IJSHTMLElement)
  66703. ['{8471557F-1379-393F-98D4-5A3645C5F286}']
  66704. function _Getdisabled: Boolean;
  66705. function _Gethref: UnicodeString;
  66706. function _GetcrossOrigin: UnicodeString;
  66707. function _Getrel: UnicodeString;
  66708. function _GetrelList: IJSDOMTokenList;
  66709. function _Getmedia: UnicodeString;
  66710. function _Gethreflang: UnicodeString;
  66711. function _Gettype_: UnicodeString;
  66712. function _GetreferrerPolicy: UnicodeString;
  66713. function _Getsizes: IJSDOMTokenList;
  66714. function _GetimageSrcset: UnicodeString;
  66715. function _GetimageSizes: UnicodeString;
  66716. function _Getblocking: IJSDOMTokenList;
  66717. function _GetfetchPriority: UnicodeString;
  66718. function _Getcharset: UnicodeString;
  66719. function _Getrev: UnicodeString;
  66720. function _Gettarget: UnicodeString;
  66721. function _Getintegrity: UnicodeString;
  66722. function _Getas_: UnicodeString;
  66723. function _Getsheet: IJSStyleSheet;
  66724. procedure _Setdisabled(const aValue: Boolean);
  66725. procedure _Sethref(const aValue: UnicodeString);
  66726. procedure _SetcrossOrigin(const aValue: UnicodeString);
  66727. procedure _Setrel(const aValue: UnicodeString);
  66728. procedure _Setmedia(const aValue: UnicodeString);
  66729. procedure _Sethreflang(const aValue: UnicodeString);
  66730. procedure _Settype_(const aValue: UnicodeString);
  66731. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  66732. procedure _SetimageSrcset(const aValue: UnicodeString);
  66733. procedure _SetimageSizes(const aValue: UnicodeString);
  66734. procedure _SetfetchPriority(const aValue: UnicodeString);
  66735. procedure _Setcharset(const aValue: UnicodeString);
  66736. procedure _Setrev(const aValue: UnicodeString);
  66737. procedure _Settarget(const aValue: UnicodeString);
  66738. procedure _Setintegrity(const aValue: UnicodeString);
  66739. procedure _Setas_(const aValue: UnicodeString);
  66740. property disabled: Boolean read _Getdisabled write _Setdisabled;
  66741. property href: UnicodeString read _Gethref write _Sethref;
  66742. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  66743. property rel: UnicodeString read _Getrel write _Setrel;
  66744. property relList: IJSDOMTokenList read _GetrelList;
  66745. property media: UnicodeString read _Getmedia write _Setmedia;
  66746. property hreflang: UnicodeString read _Gethreflang write _Sethreflang;
  66747. property type_: UnicodeString read _Gettype_ write _Settype_;
  66748. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  66749. property sizes: IJSDOMTokenList read _Getsizes;
  66750. property imageSrcset: UnicodeString read _GetimageSrcset write _SetimageSrcset;
  66751. property imageSizes: UnicodeString read _GetimageSizes write _SetimageSizes;
  66752. property blocking: IJSDOMTokenList read _Getblocking;
  66753. property fetchPriority: UnicodeString read _GetfetchPriority write _SetfetchPriority;
  66754. property charset: UnicodeString read _Getcharset write _Setcharset;
  66755. property rev: UnicodeString read _Getrev write _Setrev;
  66756. property target: UnicodeString read _Gettarget write _Settarget;
  66757. property integrity: UnicodeString read _Getintegrity write _Setintegrity;
  66758. property as_: UnicodeString read _Getas_ write _Setas_;
  66759. property sheet: IJSStyleSheet read _Getsheet;
  66760. end;
  66761. TJSHTMLLinkElement = class(TJSHTMLElement,IJSHTMLLinkElement)
  66762. Protected
  66763. function _Getdisabled: Boolean;
  66764. function _Gethref: UnicodeString;
  66765. function _GetcrossOrigin: UnicodeString;
  66766. function _Getrel: UnicodeString;
  66767. function _GetrelList: IJSDOMTokenList;
  66768. function _Getmedia: UnicodeString;
  66769. function _Gethreflang: UnicodeString;
  66770. function _Gettype_: UnicodeString;
  66771. function _GetreferrerPolicy: UnicodeString;
  66772. function _Getsizes: IJSDOMTokenList;
  66773. function _GetimageSrcset: UnicodeString;
  66774. function _GetimageSizes: UnicodeString;
  66775. function _Getblocking: IJSDOMTokenList;
  66776. function _GetfetchPriority: UnicodeString;
  66777. function _Getcharset: UnicodeString;
  66778. function _Getrev: UnicodeString;
  66779. function _Gettarget: UnicodeString;
  66780. function _Getintegrity: UnicodeString;
  66781. function _Getas_: UnicodeString;
  66782. function _Getsheet: IJSStyleSheet;
  66783. procedure _Setdisabled(const aValue: Boolean);
  66784. procedure _Sethref(const aValue: UnicodeString);
  66785. procedure _SetcrossOrigin(const aValue: UnicodeString);
  66786. procedure _Setrel(const aValue: UnicodeString);
  66787. procedure _Setmedia(const aValue: UnicodeString);
  66788. procedure _Sethreflang(const aValue: UnicodeString);
  66789. procedure _Settype_(const aValue: UnicodeString);
  66790. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  66791. procedure _SetimageSrcset(const aValue: UnicodeString);
  66792. procedure _SetimageSizes(const aValue: UnicodeString);
  66793. procedure _SetfetchPriority(const aValue: UnicodeString);
  66794. procedure _Setcharset(const aValue: UnicodeString);
  66795. procedure _Setrev(const aValue: UnicodeString);
  66796. procedure _Settarget(const aValue: UnicodeString);
  66797. procedure _Setintegrity(const aValue: UnicodeString);
  66798. procedure _Setas_(const aValue: UnicodeString);
  66799. Public
  66800. constructor Create; overload;
  66801. class function JSClassName: UnicodeString; override;
  66802. class function Cast(const Intf: IJSObject): IJSHTMLLinkElement;
  66803. property disabled: Boolean read _Getdisabled write _Setdisabled;
  66804. property href: UnicodeString read _Gethref write _Sethref;
  66805. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  66806. property rel: UnicodeString read _Getrel write _Setrel;
  66807. property relList: IJSDOMTokenList read _GetrelList;
  66808. property media: UnicodeString read _Getmedia write _Setmedia;
  66809. property hreflang: UnicodeString read _Gethreflang write _Sethreflang;
  66810. property type_: UnicodeString read _Gettype_ write _Settype_;
  66811. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  66812. property sizes: IJSDOMTokenList read _Getsizes;
  66813. property imageSrcset: UnicodeString read _GetimageSrcset write _SetimageSrcset;
  66814. property imageSizes: UnicodeString read _GetimageSizes write _SetimageSizes;
  66815. property blocking: IJSDOMTokenList read _Getblocking;
  66816. property fetchPriority: UnicodeString read _GetfetchPriority write _SetfetchPriority;
  66817. property charset: UnicodeString read _Getcharset write _Setcharset;
  66818. property rev: UnicodeString read _Getrev write _Setrev;
  66819. property target: UnicodeString read _Gettarget write _Settarget;
  66820. property integrity: UnicodeString read _Getintegrity write _Setintegrity;
  66821. property as_: UnicodeString read _Getas_ write _Setas_;
  66822. property sheet: IJSStyleSheet read _Getsheet;
  66823. end;
  66824. { --------------------------------------------------------------------
  66825. TJSHTMLMapElement
  66826. --------------------------------------------------------------------}
  66827. IJSHTMLMapElement = interface(IJSHTMLElement)
  66828. ['{4D612934-2F23-36E7-892E-C2626E0831AC}']
  66829. function _Getname: UnicodeString;
  66830. function _Getareas: IJSHTMLCollection;
  66831. procedure _Setname(const aValue: UnicodeString);
  66832. property name: UnicodeString read _Getname write _Setname;
  66833. property areas: IJSHTMLCollection read _Getareas;
  66834. end;
  66835. TJSHTMLMapElement = class(TJSHTMLElement,IJSHTMLMapElement)
  66836. Protected
  66837. function _Getname: UnicodeString;
  66838. function _Getareas: IJSHTMLCollection;
  66839. procedure _Setname(const aValue: UnicodeString);
  66840. Public
  66841. constructor Create; overload;
  66842. class function JSClassName: UnicodeString; override;
  66843. class function Cast(const Intf: IJSObject): IJSHTMLMapElement;
  66844. property name: UnicodeString read _Getname write _Setname;
  66845. property areas: IJSHTMLCollection read _Getareas;
  66846. end;
  66847. { --------------------------------------------------------------------
  66848. TJSHTMLMarqueeElement
  66849. --------------------------------------------------------------------}
  66850. IJSHTMLMarqueeElement = interface(IJSHTMLElement)
  66851. ['{6D3F34B2-7231-339E-881A-352ADF1D4C61}']
  66852. function _Getbehavior: UnicodeString;
  66853. function _GetbgColor: UnicodeString;
  66854. function _Getdirection: UnicodeString;
  66855. function _Getheight: UnicodeString;
  66856. function _Gethspace: Cardinal;
  66857. function _Getloop: LongInt;
  66858. function _GetscrollAmount: Cardinal;
  66859. function _GetscrollDelay: Cardinal;
  66860. function _GettrueSpeed: Boolean;
  66861. function _Getvspace: Cardinal;
  66862. function _Getwidth: UnicodeString;
  66863. function _Getonbounce: TEventHandler;
  66864. function _Getonfinish: TEventHandler;
  66865. function _Getonstart: TEventHandler;
  66866. procedure _Setbehavior(const aValue: UnicodeString);
  66867. procedure _SetbgColor(const aValue: UnicodeString);
  66868. procedure _Setdirection(const aValue: UnicodeString);
  66869. procedure _Setheight(const aValue: UnicodeString);
  66870. procedure _Sethspace(const aValue: Cardinal);
  66871. procedure _Setloop(const aValue: LongInt);
  66872. procedure _SetscrollAmount(const aValue: Cardinal);
  66873. procedure _SetscrollDelay(const aValue: Cardinal);
  66874. procedure _SettrueSpeed(const aValue: Boolean);
  66875. procedure _Setvspace(const aValue: Cardinal);
  66876. procedure _Setwidth(const aValue: UnicodeString);
  66877. procedure _Setonbounce(const aValue: TEventHandler);
  66878. procedure _Setonfinish(const aValue: TEventHandler);
  66879. procedure _Setonstart(const aValue: TEventHandler);
  66880. procedure start;
  66881. procedure stop;
  66882. property behavior: UnicodeString read _Getbehavior write _Setbehavior;
  66883. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  66884. property direction: UnicodeString read _Getdirection write _Setdirection;
  66885. property height: UnicodeString read _Getheight write _Setheight;
  66886. property hspace: Cardinal read _Gethspace write _Sethspace;
  66887. property loop: LongInt read _Getloop write _Setloop;
  66888. property scrollAmount: Cardinal read _GetscrollAmount write _SetscrollAmount;
  66889. property scrollDelay: Cardinal read _GetscrollDelay write _SetscrollDelay;
  66890. property trueSpeed: Boolean read _GettrueSpeed write _SettrueSpeed;
  66891. property vspace: Cardinal read _Getvspace write _Setvspace;
  66892. property width: UnicodeString read _Getwidth write _Setwidth;
  66893. property onbounce: TEventHandler read _Getonbounce write _Setonbounce;
  66894. property onfinish: TEventHandler read _Getonfinish write _Setonfinish;
  66895. property onstart: TEventHandler read _Getonstart write _Setonstart;
  66896. end;
  66897. TJSHTMLMarqueeElement = class(TJSHTMLElement,IJSHTMLMarqueeElement)
  66898. Protected
  66899. function _Getbehavior: UnicodeString;
  66900. function _GetbgColor: UnicodeString;
  66901. function _Getdirection: UnicodeString;
  66902. function _Getheight: UnicodeString;
  66903. function _Gethspace: Cardinal;
  66904. function _Getloop: LongInt;
  66905. function _GetscrollAmount: Cardinal;
  66906. function _GetscrollDelay: Cardinal;
  66907. function _GettrueSpeed: Boolean;
  66908. function _Getvspace: Cardinal;
  66909. function _Getwidth: UnicodeString;
  66910. function _Getonbounce: TEventHandler;
  66911. function _Getonfinish: TEventHandler;
  66912. function _Getonstart: TEventHandler;
  66913. procedure _Setbehavior(const aValue: UnicodeString);
  66914. procedure _SetbgColor(const aValue: UnicodeString);
  66915. procedure _Setdirection(const aValue: UnicodeString);
  66916. procedure _Setheight(const aValue: UnicodeString);
  66917. procedure _Sethspace(const aValue: Cardinal);
  66918. procedure _Setloop(const aValue: LongInt);
  66919. procedure _SetscrollAmount(const aValue: Cardinal);
  66920. procedure _SetscrollDelay(const aValue: Cardinal);
  66921. procedure _SettrueSpeed(const aValue: Boolean);
  66922. procedure _Setvspace(const aValue: Cardinal);
  66923. procedure _Setwidth(const aValue: UnicodeString);
  66924. procedure _Setonbounce(const aValue: TEventHandler);
  66925. procedure _Setonfinish(const aValue: TEventHandler);
  66926. procedure _Setonstart(const aValue: TEventHandler);
  66927. Public
  66928. constructor Create; overload;
  66929. procedure start; overload;
  66930. procedure stop; overload;
  66931. class function JSClassName: UnicodeString; override;
  66932. class function Cast(const Intf: IJSObject): IJSHTMLMarqueeElement;
  66933. property behavior: UnicodeString read _Getbehavior write _Setbehavior;
  66934. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  66935. property direction: UnicodeString read _Getdirection write _Setdirection;
  66936. property height: UnicodeString read _Getheight write _Setheight;
  66937. property hspace: Cardinal read _Gethspace write _Sethspace;
  66938. property loop: LongInt read _Getloop write _Setloop;
  66939. property scrollAmount: Cardinal read _GetscrollAmount write _SetscrollAmount;
  66940. property scrollDelay: Cardinal read _GetscrollDelay write _SetscrollDelay;
  66941. property trueSpeed: Boolean read _GettrueSpeed write _SettrueSpeed;
  66942. property vspace: Cardinal read _Getvspace write _Setvspace;
  66943. property width: UnicodeString read _Getwidth write _Setwidth;
  66944. property onbounce: TEventHandler read _Getonbounce write _Setonbounce;
  66945. property onfinish: TEventHandler read _Getonfinish write _Setonfinish;
  66946. property onstart: TEventHandler read _Getonstart write _Setonstart;
  66947. end;
  66948. { --------------------------------------------------------------------
  66949. TJSHTMLMediaElement
  66950. --------------------------------------------------------------------}
  66951. IJSHTMLMediaElement = interface(IJSHTMLElement)
  66952. ['{3E069718-1467-3BE7-B488-60605EBEB9DB}']
  66953. function _Geterror: IJSMediaError;
  66954. function _Getsrc: UnicodeString;
  66955. function _GetcurrentSrc: UnicodeString;
  66956. function _GetcrossOrigin: UnicodeString;
  66957. function _GetnetworkState: Word;
  66958. function _Getpreload: UnicodeString;
  66959. function _Getbuffered: IJSTimeRanges;
  66960. function _GetreadyState: Word;
  66961. function _Getseeking: Boolean;
  66962. function _GetcurrentTime: Double;
  66963. function _Getduration: Double;
  66964. function _Getpaused: Boolean;
  66965. function _GetdefaultPlaybackRate: Double;
  66966. function _GetplaybackRate: Double;
  66967. function _Getplayed: IJSTimeRanges;
  66968. function _Getseekable: IJSTimeRanges;
  66969. function _Getended: Boolean;
  66970. function _Getautoplay: Boolean;
  66971. function _Getloop: Boolean;
  66972. function _Getcontrols: Boolean;
  66973. function _Getvolume: Double;
  66974. function _Getmuted: Boolean;
  66975. function _GetdefaultMuted: Boolean;
  66976. function _GetaudioTracks: IJSAudioTrackList;
  66977. function _GetvideoTracks: IJSVideoTrackList;
  66978. function _GettextTracks: IJSTextTrackList;
  66979. function _GetmozMediaSourceObject: IJSMediaSource;
  66980. function _GetsrcObject: IJSMediaStream;
  66981. function _GetpreservesPitch: Boolean;
  66982. function _GetmozAllowCasting: Boolean;
  66983. function _GetmozIsCasting: Boolean;
  66984. function _GetmozAudioCaptured: Boolean;
  66985. function _GetmozFragmentEnd: Double;
  66986. function _GetmediaKeys: IJSMediaKeys;
  66987. function _Getonencrypted: TEventHandler;
  66988. function _Getonwaitingforkey: TEventHandler;
  66989. function _GetcomputedVolume: Double;
  66990. function _GetcomputedMuted: Boolean;
  66991. function _GetsinkId: UnicodeString;
  66992. function _GetallowedToPlay: Boolean;
  66993. procedure _Setsrc(const aValue: UnicodeString);
  66994. procedure _SetcrossOrigin(const aValue: UnicodeString);
  66995. procedure _Setpreload(const aValue: UnicodeString);
  66996. procedure _SetcurrentTime(const aValue: Double);
  66997. procedure _SetdefaultPlaybackRate(const aValue: Double);
  66998. procedure _SetplaybackRate(const aValue: Double);
  66999. procedure _Setautoplay(const aValue: Boolean);
  67000. procedure _Setloop(const aValue: Boolean);
  67001. procedure _Setcontrols(const aValue: Boolean);
  67002. procedure _Setvolume(const aValue: Double);
  67003. procedure _Setmuted(const aValue: Boolean);
  67004. procedure _SetdefaultMuted(const aValue: Boolean);
  67005. procedure _SetsrcObject(const aValue: IJSMediaStream);
  67006. procedure _SetpreservesPitch(const aValue: Boolean);
  67007. procedure _SetmozAllowCasting(const aValue: Boolean);
  67008. procedure _SetmozIsCasting(const aValue: Boolean);
  67009. procedure _Setonencrypted(const aValue: TEventHandler);
  67010. procedure _Setonwaitingforkey(const aValue: TEventHandler);
  67011. procedure load;
  67012. function canPlayType(const aType_: UnicodeString): UnicodeString;
  67013. procedure fastSeek(aTime: Double);
  67014. function play: IJSPromise; // Promise<undefined>
  67015. procedure pause;
  67016. function addTextTrack(aKind: TTextTrackKind; const aLabel_: UnicodeString; const aLanguage: UnicodeString): IJSTextTrack;
  67017. function addTextTrack(aKind: TTextTrackKind): IJSTextTrack;
  67018. function addTextTrack(aKind: TTextTrackKind; const aLabel_: UnicodeString): IJSTextTrack;
  67019. function mozRequestDebugInfo: IJSPromise; // Promise<HTMLMediaElementDebugInfo>
  67020. function mozRequestDebugLog: IJSPromise; // Promise<DOMString>
  67021. function mozCaptureStream: IJSMediaStream;
  67022. function mozCaptureStreamUntilEnded: IJSMediaStream;
  67023. function mozGetMetadata: IJSObject;
  67024. function setMediaKeys(aMediaKeys: IJSMediaKeys): IJSPromise; // Promise<undefined>
  67025. function seekToNextFrame: IJSPromise; // Promise<undefined>
  67026. procedure setVisible(aAVisible: Boolean);
  67027. function hasSuspendTaint: Boolean;
  67028. function setSinkId(const aSinkId: UnicodeString): IJSPromise; // Promise<undefined>
  67029. property error: IJSMediaError read _Geterror;
  67030. property src: UnicodeString read _Getsrc write _Setsrc;
  67031. property currentSrc: UnicodeString read _GetcurrentSrc;
  67032. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  67033. property networkState: Word read _GetnetworkState;
  67034. property preload: UnicodeString read _Getpreload write _Setpreload;
  67035. property buffered: IJSTimeRanges read _Getbuffered;
  67036. property readyState: Word read _GetreadyState;
  67037. property seeking: Boolean read _Getseeking;
  67038. property currentTime: Double read _GetcurrentTime write _SetcurrentTime;
  67039. property duration: Double read _Getduration;
  67040. property paused: Boolean read _Getpaused;
  67041. property defaultPlaybackRate: Double read _GetdefaultPlaybackRate write _SetdefaultPlaybackRate;
  67042. property playbackRate: Double read _GetplaybackRate write _SetplaybackRate;
  67043. property played: IJSTimeRanges read _Getplayed;
  67044. property seekable: IJSTimeRanges read _Getseekable;
  67045. property ended: Boolean read _Getended;
  67046. property autoplay: Boolean read _Getautoplay write _Setautoplay;
  67047. property loop: Boolean read _Getloop write _Setloop;
  67048. property controls: Boolean read _Getcontrols write _Setcontrols;
  67049. property volume: Double read _Getvolume write _Setvolume;
  67050. property muted: Boolean read _Getmuted write _Setmuted;
  67051. property defaultMuted: Boolean read _GetdefaultMuted write _SetdefaultMuted;
  67052. property audioTracks: IJSAudioTrackList read _GetaudioTracks;
  67053. property videoTracks: IJSVideoTrackList read _GetvideoTracks;
  67054. property textTracks: IJSTextTrackList read _GettextTracks;
  67055. property mozMediaSourceObject: IJSMediaSource read _GetmozMediaSourceObject;
  67056. property srcObject: IJSMediaStream read _GetsrcObject write _SetsrcObject;
  67057. property preservesPitch: Boolean read _GetpreservesPitch write _SetpreservesPitch;
  67058. property mozAllowCasting: Boolean read _GetmozAllowCasting write _SetmozAllowCasting;
  67059. property mozIsCasting: Boolean read _GetmozIsCasting write _SetmozIsCasting;
  67060. property mozAudioCaptured: Boolean read _GetmozAudioCaptured;
  67061. property mozFragmentEnd: Double read _GetmozFragmentEnd;
  67062. property mediaKeys: IJSMediaKeys read _GetmediaKeys;
  67063. property onencrypted: TEventHandler read _Getonencrypted write _Setonencrypted;
  67064. property onwaitingforkey: TEventHandler read _Getonwaitingforkey write _Setonwaitingforkey;
  67065. property computedVolume: Double read _GetcomputedVolume;
  67066. property computedMuted: Boolean read _GetcomputedMuted;
  67067. property sinkId: UnicodeString read _GetsinkId;
  67068. property allowedToPlay: Boolean read _GetallowedToPlay;
  67069. end;
  67070. TJSHTMLMediaElement = class(TJSHTMLElement,IJSHTMLMediaElement)
  67071. Protected
  67072. function _Geterror: IJSMediaError;
  67073. function _Getsrc: UnicodeString;
  67074. function _GetcurrentSrc: UnicodeString;
  67075. function _GetcrossOrigin: UnicodeString;
  67076. function _GetnetworkState: Word;
  67077. function _Getpreload: UnicodeString;
  67078. function _Getbuffered: IJSTimeRanges;
  67079. function _GetreadyState: Word;
  67080. function _Getseeking: Boolean;
  67081. function _GetcurrentTime: Double;
  67082. function _Getduration: Double;
  67083. function _Getpaused: Boolean;
  67084. function _GetdefaultPlaybackRate: Double;
  67085. function _GetplaybackRate: Double;
  67086. function _Getplayed: IJSTimeRanges;
  67087. function _Getseekable: IJSTimeRanges;
  67088. function _Getended: Boolean;
  67089. function _Getautoplay: Boolean;
  67090. function _Getloop: Boolean;
  67091. function _Getcontrols: Boolean;
  67092. function _Getvolume: Double;
  67093. function _Getmuted: Boolean;
  67094. function _GetdefaultMuted: Boolean;
  67095. function _GetaudioTracks: IJSAudioTrackList;
  67096. function _GetvideoTracks: IJSVideoTrackList;
  67097. function _GettextTracks: IJSTextTrackList;
  67098. function _GetmozMediaSourceObject: IJSMediaSource;
  67099. function _GetsrcObject: IJSMediaStream;
  67100. function _GetpreservesPitch: Boolean;
  67101. function _GetmozAllowCasting: Boolean;
  67102. function _GetmozIsCasting: Boolean;
  67103. function _GetmozAudioCaptured: Boolean;
  67104. function _GetmozFragmentEnd: Double;
  67105. function _GetmediaKeys: IJSMediaKeys;
  67106. function _Getonencrypted: TEventHandler;
  67107. function _Getonwaitingforkey: TEventHandler;
  67108. function _GetcomputedVolume: Double;
  67109. function _GetcomputedMuted: Boolean;
  67110. function _GetsinkId: UnicodeString;
  67111. function _GetallowedToPlay: Boolean;
  67112. procedure _Setsrc(const aValue: UnicodeString);
  67113. procedure _SetcrossOrigin(const aValue: UnicodeString);
  67114. procedure _Setpreload(const aValue: UnicodeString);
  67115. procedure _SetcurrentTime(const aValue: Double);
  67116. procedure _SetdefaultPlaybackRate(const aValue: Double);
  67117. procedure _SetplaybackRate(const aValue: Double);
  67118. procedure _Setautoplay(const aValue: Boolean);
  67119. procedure _Setloop(const aValue: Boolean);
  67120. procedure _Setcontrols(const aValue: Boolean);
  67121. procedure _Setvolume(const aValue: Double);
  67122. procedure _Setmuted(const aValue: Boolean);
  67123. procedure _SetdefaultMuted(const aValue: Boolean);
  67124. procedure _SetsrcObject(const aValue: IJSMediaStream);
  67125. procedure _SetpreservesPitch(const aValue: Boolean);
  67126. procedure _SetmozAllowCasting(const aValue: Boolean);
  67127. procedure _SetmozIsCasting(const aValue: Boolean);
  67128. procedure _Setonencrypted(const aValue: TEventHandler);
  67129. procedure _Setonwaitingforkey(const aValue: TEventHandler);
  67130. Public
  67131. Const
  67132. NETWORK_EMPTY = 0;
  67133. NETWORK_IDLE = 1;
  67134. NETWORK_LOADING = 2;
  67135. NETWORK_NO_SOURCE = 3;
  67136. HAVE_NOTHING = 0;
  67137. HAVE_METADATA = 1;
  67138. HAVE_CURRENT_DATA = 2;
  67139. HAVE_FUTURE_DATA = 3;
  67140. HAVE_ENOUGH_DATA = 4;
  67141. Public
  67142. procedure load; overload;
  67143. function canPlayType(const aType_: UnicodeString): UnicodeString; overload;
  67144. procedure fastSeek(aTime: Double); overload;
  67145. function play: IJSPromise; overload; // Promise<undefined>
  67146. procedure pause; overload;
  67147. function addTextTrack(aKind: TTextTrackKind; const aLabel_: UnicodeString; const aLanguage: UnicodeString): IJSTextTrack; overload;
  67148. function addTextTrack(aKind: TTextTrackKind): IJSTextTrack; overload;
  67149. function addTextTrack(aKind: TTextTrackKind; const aLabel_: UnicodeString): IJSTextTrack; overload;
  67150. function mozRequestDebugInfo: IJSPromise; overload; // Promise<HTMLMediaElementDebugInfo>
  67151. procedure mozEnableDebugLog; overload;
  67152. function mozRequestDebugLog: IJSPromise; overload; // Promise<DOMString>
  67153. function mozCaptureStream: IJSMediaStream; overload;
  67154. function mozCaptureStreamUntilEnded: IJSMediaStream; overload;
  67155. function mozGetMetadata: IJSObject; overload;
  67156. function setMediaKeys(aMediaKeys: IJSMediaKeys): IJSPromise; overload; // Promise<undefined>
  67157. function seekToNextFrame: IJSPromise; overload; // Promise<undefined>
  67158. procedure setVisible(aAVisible: Boolean); overload;
  67159. function hasSuspendTaint: Boolean; overload;
  67160. function setSinkId(const aSinkId: UnicodeString): IJSPromise; overload; // Promise<undefined>
  67161. class function JSClassName: UnicodeString; override;
  67162. class function Cast(const Intf: IJSObject): IJSHTMLMediaElement;
  67163. property error: IJSMediaError read _Geterror;
  67164. property src: UnicodeString read _Getsrc write _Setsrc;
  67165. property currentSrc: UnicodeString read _GetcurrentSrc;
  67166. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  67167. property networkState: Word read _GetnetworkState;
  67168. property preload: UnicodeString read _Getpreload write _Setpreload;
  67169. property buffered: IJSTimeRanges read _Getbuffered;
  67170. property readyState: Word read _GetreadyState;
  67171. property seeking: Boolean read _Getseeking;
  67172. property currentTime: Double read _GetcurrentTime write _SetcurrentTime;
  67173. property duration: Double read _Getduration;
  67174. property paused: Boolean read _Getpaused;
  67175. property defaultPlaybackRate: Double read _GetdefaultPlaybackRate write _SetdefaultPlaybackRate;
  67176. property playbackRate: Double read _GetplaybackRate write _SetplaybackRate;
  67177. property played: IJSTimeRanges read _Getplayed;
  67178. property seekable: IJSTimeRanges read _Getseekable;
  67179. property ended: Boolean read _Getended;
  67180. property autoplay: Boolean read _Getautoplay write _Setautoplay;
  67181. property loop: Boolean read _Getloop write _Setloop;
  67182. property controls: Boolean read _Getcontrols write _Setcontrols;
  67183. property volume: Double read _Getvolume write _Setvolume;
  67184. property muted: Boolean read _Getmuted write _Setmuted;
  67185. property defaultMuted: Boolean read _GetdefaultMuted write _SetdefaultMuted;
  67186. property audioTracks: IJSAudioTrackList read _GetaudioTracks;
  67187. property videoTracks: IJSVideoTrackList read _GetvideoTracks;
  67188. property textTracks: IJSTextTrackList read _GettextTracks;
  67189. property mozMediaSourceObject: IJSMediaSource read _GetmozMediaSourceObject;
  67190. property srcObject: IJSMediaStream read _GetsrcObject write _SetsrcObject;
  67191. property preservesPitch: Boolean read _GetpreservesPitch write _SetpreservesPitch;
  67192. property mozAllowCasting: Boolean read _GetmozAllowCasting write _SetmozAllowCasting;
  67193. property mozIsCasting: Boolean read _GetmozIsCasting write _SetmozIsCasting;
  67194. property mozAudioCaptured: Boolean read _GetmozAudioCaptured;
  67195. property mozFragmentEnd: Double read _GetmozFragmentEnd;
  67196. property mediaKeys: IJSMediaKeys read _GetmediaKeys;
  67197. property onencrypted: TEventHandler read _Getonencrypted write _Setonencrypted;
  67198. property onwaitingforkey: TEventHandler read _Getonwaitingforkey write _Setonwaitingforkey;
  67199. property computedVolume: Double read _GetcomputedVolume;
  67200. property computedMuted: Boolean read _GetcomputedMuted;
  67201. property sinkId: UnicodeString read _GetsinkId;
  67202. property allowedToPlay: Boolean read _GetallowedToPlay;
  67203. end;
  67204. { --------------------------------------------------------------------
  67205. TJSHTMLMenuElement
  67206. --------------------------------------------------------------------}
  67207. IJSHTMLMenuElement = interface(IJSHTMLElement)
  67208. ['{DC877DB1-D78B-362B-B676-9E5D8A5D68E5}']
  67209. function _Getcompact: Boolean;
  67210. procedure _Setcompact(const aValue: Boolean);
  67211. property compact: Boolean read _Getcompact write _Setcompact;
  67212. end;
  67213. TJSHTMLMenuElement = class(TJSHTMLElement,IJSHTMLMenuElement)
  67214. Protected
  67215. function _Getcompact: Boolean;
  67216. procedure _Setcompact(const aValue: Boolean);
  67217. Public
  67218. constructor Create; overload;
  67219. class function JSClassName: UnicodeString; override;
  67220. class function Cast(const Intf: IJSObject): IJSHTMLMenuElement;
  67221. property compact: Boolean read _Getcompact write _Setcompact;
  67222. end;
  67223. { --------------------------------------------------------------------
  67224. TJSHTMLMetaElement
  67225. --------------------------------------------------------------------}
  67226. IJSHTMLMetaElement = interface(IJSHTMLElement)
  67227. ['{B8875C4F-F04E-312B-BB25-7496E32BEDC1}']
  67228. function _Getname: UnicodeString;
  67229. function _GethttpEquiv: UnicodeString;
  67230. function _Getcontent: UnicodeString;
  67231. function _Getmedia: UnicodeString;
  67232. function _Getscheme: UnicodeString;
  67233. procedure _Setname(const aValue: UnicodeString);
  67234. procedure _SethttpEquiv(const aValue: UnicodeString);
  67235. procedure _Setcontent(const aValue: UnicodeString);
  67236. procedure _Setmedia(const aValue: UnicodeString);
  67237. procedure _Setscheme(const aValue: UnicodeString);
  67238. property name: UnicodeString read _Getname write _Setname;
  67239. property httpEquiv: UnicodeString read _GethttpEquiv write _SethttpEquiv;
  67240. property content: UnicodeString read _Getcontent write _Setcontent;
  67241. property media: UnicodeString read _Getmedia write _Setmedia;
  67242. property scheme: UnicodeString read _Getscheme write _Setscheme;
  67243. end;
  67244. TJSHTMLMetaElement = class(TJSHTMLElement,IJSHTMLMetaElement)
  67245. Protected
  67246. function _Getname: UnicodeString;
  67247. function _GethttpEquiv: UnicodeString;
  67248. function _Getcontent: UnicodeString;
  67249. function _Getmedia: UnicodeString;
  67250. function _Getscheme: UnicodeString;
  67251. procedure _Setname(const aValue: UnicodeString);
  67252. procedure _SethttpEquiv(const aValue: UnicodeString);
  67253. procedure _Setcontent(const aValue: UnicodeString);
  67254. procedure _Setmedia(const aValue: UnicodeString);
  67255. procedure _Setscheme(const aValue: UnicodeString);
  67256. Public
  67257. constructor Create; overload;
  67258. class function JSClassName: UnicodeString; override;
  67259. class function Cast(const Intf: IJSObject): IJSHTMLMetaElement;
  67260. property name: UnicodeString read _Getname write _Setname;
  67261. property httpEquiv: UnicodeString read _GethttpEquiv write _SethttpEquiv;
  67262. property content: UnicodeString read _Getcontent write _Setcontent;
  67263. property media: UnicodeString read _Getmedia write _Setmedia;
  67264. property scheme: UnicodeString read _Getscheme write _Setscheme;
  67265. end;
  67266. { --------------------------------------------------------------------
  67267. TJSHTMLMeterElement
  67268. --------------------------------------------------------------------}
  67269. IJSHTMLMeterElement = interface(IJSHTMLElement)
  67270. ['{08E5A0B7-E44D-3159-B2F4-0A32A19C4F0C}']
  67271. function _Getvalue: Double;
  67272. function _Getmin: Double;
  67273. function _Getmax: Double;
  67274. function _Getlow: Double;
  67275. function _Gethigh: Double;
  67276. function _Getoptimum: Double;
  67277. function _Getlabels: IJSNodeList;
  67278. procedure _Setvalue(const aValue: Double);
  67279. procedure _Setmin(const aValue: Double);
  67280. procedure _Setmax(const aValue: Double);
  67281. procedure _Setlow(const aValue: Double);
  67282. procedure _Sethigh(const aValue: Double);
  67283. procedure _Setoptimum(const aValue: Double);
  67284. property value: Double read _Getvalue write _Setvalue;
  67285. property min: Double read _Getmin write _Setmin;
  67286. property max: Double read _Getmax write _Setmax;
  67287. property low: Double read _Getlow write _Setlow;
  67288. property high: Double read _Gethigh write _Sethigh;
  67289. property optimum: Double read _Getoptimum write _Setoptimum;
  67290. property labels: IJSNodeList read _Getlabels;
  67291. end;
  67292. TJSHTMLMeterElement = class(TJSHTMLElement,IJSHTMLMeterElement)
  67293. Protected
  67294. function _Getvalue: Double;
  67295. function _Getmin: Double;
  67296. function _Getmax: Double;
  67297. function _Getlow: Double;
  67298. function _Gethigh: Double;
  67299. function _Getoptimum: Double;
  67300. function _Getlabels: IJSNodeList;
  67301. procedure _Setvalue(const aValue: Double);
  67302. procedure _Setmin(const aValue: Double);
  67303. procedure _Setmax(const aValue: Double);
  67304. procedure _Setlow(const aValue: Double);
  67305. procedure _Sethigh(const aValue: Double);
  67306. procedure _Setoptimum(const aValue: Double);
  67307. Public
  67308. constructor Create; overload;
  67309. class function JSClassName: UnicodeString; override;
  67310. class function Cast(const Intf: IJSObject): IJSHTMLMeterElement;
  67311. property value: Double read _Getvalue write _Setvalue;
  67312. property min: Double read _Getmin write _Setmin;
  67313. property max: Double read _Getmax write _Setmax;
  67314. property low: Double read _Getlow write _Setlow;
  67315. property high: Double read _Gethigh write _Sethigh;
  67316. property optimum: Double read _Getoptimum write _Setoptimum;
  67317. property labels: IJSNodeList read _Getlabels;
  67318. end;
  67319. { --------------------------------------------------------------------
  67320. TJSHTMLModElement
  67321. --------------------------------------------------------------------}
  67322. IJSHTMLModElement = interface(IJSHTMLElement)
  67323. ['{16FA39B5-4052-32F4-9E7E-92EBEDB437F0}']
  67324. function _Getcite: UnicodeString;
  67325. function _GetdateTime: UnicodeString;
  67326. procedure _Setcite(const aValue: UnicodeString);
  67327. procedure _SetdateTime(const aValue: UnicodeString);
  67328. property cite: UnicodeString read _Getcite write _Setcite;
  67329. property dateTime: UnicodeString read _GetdateTime write _SetdateTime;
  67330. end;
  67331. TJSHTMLModElement = class(TJSHTMLElement,IJSHTMLModElement)
  67332. Protected
  67333. function _Getcite: UnicodeString;
  67334. function _GetdateTime: UnicodeString;
  67335. procedure _Setcite(const aValue: UnicodeString);
  67336. procedure _SetdateTime(const aValue: UnicodeString);
  67337. Public
  67338. constructor Create; overload;
  67339. class function JSClassName: UnicodeString; override;
  67340. class function Cast(const Intf: IJSObject): IJSHTMLModElement;
  67341. property cite: UnicodeString read _Getcite write _Setcite;
  67342. property dateTime: UnicodeString read _GetdateTime write _SetdateTime;
  67343. end;
  67344. { --------------------------------------------------------------------
  67345. TJSHTMLObjectElement
  67346. --------------------------------------------------------------------}
  67347. IJSHTMLObjectElement = interface(IJSHTMLElement)
  67348. ['{248CCAFD-8785-3F53-A4CC-0B6E4C1FF43D}']
  67349. function _Getdata: UnicodeString;
  67350. function _Gettype_: UnicodeString;
  67351. function _Getname: UnicodeString;
  67352. function _GetuseMap: UnicodeString;
  67353. function _Getform: IJSHTMLFormElement;
  67354. function _Getwidth: UnicodeString;
  67355. function _Getheight: UnicodeString;
  67356. function _GetcontentDocument: IJSDocument;
  67357. function _GetcontentWindow: IJSWindowProxy;
  67358. function _GetwillValidate: Boolean;
  67359. function _Getvalidity: IJSValidityState;
  67360. function _GetvalidationMessage: UnicodeString;
  67361. function _Getalign: UnicodeString;
  67362. function _Getarchive: UnicodeString;
  67363. function _Getcode: UnicodeString;
  67364. function _Getdeclare: Boolean;
  67365. function _Gethspace: Cardinal;
  67366. function _Getstandby: UnicodeString;
  67367. function _Getvspace: Cardinal;
  67368. function _GetcodeBase: UnicodeString;
  67369. function _GetcodeType: UnicodeString;
  67370. function _Getborder: UnicodeString;
  67371. procedure _Setdata(const aValue: UnicodeString);
  67372. procedure _Settype_(const aValue: UnicodeString);
  67373. procedure _Setname(const aValue: UnicodeString);
  67374. procedure _SetuseMap(const aValue: UnicodeString);
  67375. procedure _Setwidth(const aValue: UnicodeString);
  67376. procedure _Setheight(const aValue: UnicodeString);
  67377. procedure _Setalign(const aValue: UnicodeString);
  67378. procedure _Setarchive(const aValue: UnicodeString);
  67379. procedure _Setcode(const aValue: UnicodeString);
  67380. procedure _Setdeclare(const aValue: Boolean);
  67381. procedure _Sethspace(const aValue: Cardinal);
  67382. procedure _Setstandby(const aValue: UnicodeString);
  67383. procedure _Setvspace(const aValue: Cardinal);
  67384. procedure _SetcodeBase(const aValue: UnicodeString);
  67385. procedure _SetcodeType(const aValue: UnicodeString);
  67386. procedure _Setborder(const aValue: UnicodeString);
  67387. function checkValidity: Boolean;
  67388. function reportValidity: Boolean;
  67389. procedure setCustomValidity(const aError: UnicodeString);
  67390. function getSVGDocument: IJSDocument;
  67391. property data: UnicodeString read _Getdata write _Setdata;
  67392. property type_: UnicodeString read _Gettype_ write _Settype_;
  67393. property name: UnicodeString read _Getname write _Setname;
  67394. property useMap: UnicodeString read _GetuseMap write _SetuseMap;
  67395. property form: IJSHTMLFormElement read _Getform;
  67396. property width: UnicodeString read _Getwidth write _Setwidth;
  67397. property height: UnicodeString read _Getheight write _Setheight;
  67398. property contentDocument: IJSDocument read _GetcontentDocument;
  67399. property contentWindow: IJSWindowProxy read _GetcontentWindow;
  67400. property willValidate: Boolean read _GetwillValidate;
  67401. property validity: IJSValidityState read _Getvalidity;
  67402. property validationMessage: UnicodeString read _GetvalidationMessage;
  67403. property align: UnicodeString read _Getalign write _Setalign;
  67404. property archive: UnicodeString read _Getarchive write _Setarchive;
  67405. property code: UnicodeString read _Getcode write _Setcode;
  67406. property declare: Boolean read _Getdeclare write _Setdeclare;
  67407. property hspace: Cardinal read _Gethspace write _Sethspace;
  67408. property standby: UnicodeString read _Getstandby write _Setstandby;
  67409. property vspace: Cardinal read _Getvspace write _Setvspace;
  67410. property codeBase: UnicodeString read _GetcodeBase write _SetcodeBase;
  67411. property codeType: UnicodeString read _GetcodeType write _SetcodeType;
  67412. property border: UnicodeString read _Getborder write _Setborder;
  67413. end;
  67414. TJSHTMLObjectElement = class(TJSHTMLElement,IJSHTMLObjectElement)
  67415. Protected
  67416. function _Getdata: UnicodeString;
  67417. function _Gettype_: UnicodeString;
  67418. function _Getname: UnicodeString;
  67419. function _GetuseMap: UnicodeString;
  67420. function _Getform: IJSHTMLFormElement;
  67421. function _Getwidth: UnicodeString;
  67422. function _Getheight: UnicodeString;
  67423. function _GetcontentDocument: IJSDocument;
  67424. function _GetcontentWindow: IJSWindowProxy;
  67425. function _GetwillValidate: Boolean;
  67426. function _Getvalidity: IJSValidityState;
  67427. function _GetvalidationMessage: UnicodeString;
  67428. function _Getalign: UnicodeString;
  67429. function _Getarchive: UnicodeString;
  67430. function _Getcode: UnicodeString;
  67431. function _Getdeclare: Boolean;
  67432. function _Gethspace: Cardinal;
  67433. function _Getstandby: UnicodeString;
  67434. function _Getvspace: Cardinal;
  67435. function _GetcodeBase: UnicodeString;
  67436. function _GetcodeType: UnicodeString;
  67437. function _Getborder: UnicodeString;
  67438. procedure _Setdata(const aValue: UnicodeString);
  67439. procedure _Settype_(const aValue: UnicodeString);
  67440. procedure _Setname(const aValue: UnicodeString);
  67441. procedure _SetuseMap(const aValue: UnicodeString);
  67442. procedure _Setwidth(const aValue: UnicodeString);
  67443. procedure _Setheight(const aValue: UnicodeString);
  67444. procedure _Setalign(const aValue: UnicodeString);
  67445. procedure _Setarchive(const aValue: UnicodeString);
  67446. procedure _Setcode(const aValue: UnicodeString);
  67447. procedure _Setdeclare(const aValue: Boolean);
  67448. procedure _Sethspace(const aValue: Cardinal);
  67449. procedure _Setstandby(const aValue: UnicodeString);
  67450. procedure _Setvspace(const aValue: Cardinal);
  67451. procedure _SetcodeBase(const aValue: UnicodeString);
  67452. procedure _SetcodeType(const aValue: UnicodeString);
  67453. procedure _Setborder(const aValue: UnicodeString);
  67454. Public
  67455. constructor Create; overload;
  67456. function checkValidity: Boolean; overload;
  67457. function reportValidity: Boolean; overload;
  67458. procedure setCustomValidity(const aError: UnicodeString); overload;
  67459. function getSVGDocument: IJSDocument; overload;
  67460. class function JSClassName: UnicodeString; override;
  67461. class function Cast(const Intf: IJSObject): IJSHTMLObjectElement;
  67462. property data: UnicodeString read _Getdata write _Setdata;
  67463. property type_: UnicodeString read _Gettype_ write _Settype_;
  67464. property name: UnicodeString read _Getname write _Setname;
  67465. property useMap: UnicodeString read _GetuseMap write _SetuseMap;
  67466. property form: IJSHTMLFormElement read _Getform;
  67467. property width: UnicodeString read _Getwidth write _Setwidth;
  67468. property height: UnicodeString read _Getheight write _Setheight;
  67469. property contentDocument: IJSDocument read _GetcontentDocument;
  67470. property contentWindow: IJSWindowProxy read _GetcontentWindow;
  67471. property willValidate: Boolean read _GetwillValidate;
  67472. property validity: IJSValidityState read _Getvalidity;
  67473. property validationMessage: UnicodeString read _GetvalidationMessage;
  67474. property align: UnicodeString read _Getalign write _Setalign;
  67475. property archive: UnicodeString read _Getarchive write _Setarchive;
  67476. property code: UnicodeString read _Getcode write _Setcode;
  67477. property declare: Boolean read _Getdeclare write _Setdeclare;
  67478. property hspace: Cardinal read _Gethspace write _Sethspace;
  67479. property standby: UnicodeString read _Getstandby write _Setstandby;
  67480. property vspace: Cardinal read _Getvspace write _Setvspace;
  67481. property codeBase: UnicodeString read _GetcodeBase write _SetcodeBase;
  67482. property codeType: UnicodeString read _GetcodeType write _SetcodeType;
  67483. property border: UnicodeString read _Getborder write _Setborder;
  67484. end;
  67485. { --------------------------------------------------------------------
  67486. TJSHTMLOListElement
  67487. --------------------------------------------------------------------}
  67488. IJSHTMLOListElement = interface(IJSHTMLElement)
  67489. ['{4F77D812-1A68-3B51-A1AD-B3ED8696A651}']
  67490. function _Getreversed: Boolean;
  67491. function _Getstart: LongInt;
  67492. function _Gettype_: UnicodeString;
  67493. function _Getcompact: Boolean;
  67494. procedure _Setreversed(const aValue: Boolean);
  67495. procedure _Setstart(const aValue: LongInt);
  67496. procedure _Settype_(const aValue: UnicodeString);
  67497. procedure _Setcompact(const aValue: Boolean);
  67498. property reversed: Boolean read _Getreversed write _Setreversed;
  67499. property start: LongInt read _Getstart write _Setstart;
  67500. property type_: UnicodeString read _Gettype_ write _Settype_;
  67501. property compact: Boolean read _Getcompact write _Setcompact;
  67502. end;
  67503. TJSHTMLOListElement = class(TJSHTMLElement,IJSHTMLOListElement)
  67504. Protected
  67505. function _Getreversed: Boolean;
  67506. function _Getstart: LongInt;
  67507. function _Gettype_: UnicodeString;
  67508. function _Getcompact: Boolean;
  67509. procedure _Setreversed(const aValue: Boolean);
  67510. procedure _Setstart(const aValue: LongInt);
  67511. procedure _Settype_(const aValue: UnicodeString);
  67512. procedure _Setcompact(const aValue: Boolean);
  67513. Public
  67514. constructor Create; overload;
  67515. class function JSClassName: UnicodeString; override;
  67516. class function Cast(const Intf: IJSObject): IJSHTMLOListElement;
  67517. property reversed: Boolean read _Getreversed write _Setreversed;
  67518. property start: LongInt read _Getstart write _Setstart;
  67519. property type_: UnicodeString read _Gettype_ write _Settype_;
  67520. property compact: Boolean read _Getcompact write _Setcompact;
  67521. end;
  67522. { --------------------------------------------------------------------
  67523. TJSHTMLOptGroupElement
  67524. --------------------------------------------------------------------}
  67525. IJSHTMLOptGroupElement = interface(IJSHTMLElement)
  67526. ['{2D2469AC-56D4-37FB-B0C8-FFCF4A255F1C}']
  67527. function _Getdisabled: Boolean;
  67528. function _Getlabel_: UnicodeString;
  67529. procedure _Setdisabled(const aValue: Boolean);
  67530. procedure _Setlabel_(const aValue: UnicodeString);
  67531. property disabled: Boolean read _Getdisabled write _Setdisabled;
  67532. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  67533. end;
  67534. TJSHTMLOptGroupElement = class(TJSHTMLElement,IJSHTMLOptGroupElement)
  67535. Protected
  67536. function _Getdisabled: Boolean;
  67537. function _Getlabel_: UnicodeString;
  67538. procedure _Setdisabled(const aValue: Boolean);
  67539. procedure _Setlabel_(const aValue: UnicodeString);
  67540. Public
  67541. constructor Create; overload;
  67542. class function JSClassName: UnicodeString; override;
  67543. class function Cast(const Intf: IJSObject): IJSHTMLOptGroupElement;
  67544. property disabled: Boolean read _Getdisabled write _Setdisabled;
  67545. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  67546. end;
  67547. { --------------------------------------------------------------------
  67548. TJSHTMLOptionElement
  67549. --------------------------------------------------------------------}
  67550. IJSHTMLOptionElement = interface(IJSHTMLElement)
  67551. ['{5EAD9031-9DE6-3602-B3A8-EB5D17437718}']
  67552. function _Getdisabled: Boolean;
  67553. function _Getform: IJSHTMLFormElement;
  67554. function _Getlabel_: UnicodeString;
  67555. function _GetdefaultSelected: Boolean;
  67556. function _Getselected: Boolean;
  67557. function _Getvalue: UnicodeString;
  67558. function _Gettext: UnicodeString;
  67559. function _Getindex: LongInt;
  67560. procedure _Setdisabled(const aValue: Boolean);
  67561. procedure _Setlabel_(const aValue: UnicodeString);
  67562. procedure _SetdefaultSelected(const aValue: Boolean);
  67563. procedure _Setselected(const aValue: Boolean);
  67564. procedure _Setvalue(const aValue: UnicodeString);
  67565. procedure _Settext(const aValue: UnicodeString);
  67566. property disabled: Boolean read _Getdisabled write _Setdisabled;
  67567. property form: IJSHTMLFormElement read _Getform;
  67568. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  67569. property defaultSelected: Boolean read _GetdefaultSelected write _SetdefaultSelected;
  67570. property selected: Boolean read _Getselected write _Setselected;
  67571. property value: UnicodeString read _Getvalue write _Setvalue;
  67572. property text: UnicodeString read _Gettext write _Settext;
  67573. property index: LongInt read _Getindex;
  67574. end;
  67575. TJSHTMLOptionElement = class(TJSHTMLElement,IJSHTMLOptionElement)
  67576. Protected
  67577. function _Getdisabled: Boolean;
  67578. function _Getform: IJSHTMLFormElement;
  67579. function _Getlabel_: UnicodeString;
  67580. function _GetdefaultSelected: Boolean;
  67581. function _Getselected: Boolean;
  67582. function _Getvalue: UnicodeString;
  67583. function _Gettext: UnicodeString;
  67584. function _Getindex: LongInt;
  67585. procedure _Setdisabled(const aValue: Boolean);
  67586. procedure _Setlabel_(const aValue: UnicodeString);
  67587. procedure _SetdefaultSelected(const aValue: Boolean);
  67588. procedure _Setselected(const aValue: Boolean);
  67589. procedure _Setvalue(const aValue: UnicodeString);
  67590. procedure _Settext(const aValue: UnicodeString);
  67591. Public
  67592. constructor Create; overload;
  67593. class function JSClassName: UnicodeString; override;
  67594. class function Cast(const Intf: IJSObject): IJSHTMLOptionElement;
  67595. property disabled: Boolean read _Getdisabled write _Setdisabled;
  67596. property form: IJSHTMLFormElement read _Getform;
  67597. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  67598. property defaultSelected: Boolean read _GetdefaultSelected write _SetdefaultSelected;
  67599. property selected: Boolean read _Getselected write _Setselected;
  67600. property value: UnicodeString read _Getvalue write _Setvalue;
  67601. property text: UnicodeString read _Gettext write _Settext;
  67602. property index: LongInt read _Getindex;
  67603. end;
  67604. { --------------------------------------------------------------------
  67605. TJSHTMLOutputElement
  67606. --------------------------------------------------------------------}
  67607. IJSHTMLOutputElement = interface(IJSHTMLElement)
  67608. ['{F32A14C7-0108-39FB-98DC-C8275124B971}']
  67609. function _GethtmlFor: IJSDOMTokenList;
  67610. function _Getform: IJSHTMLFormElement;
  67611. function _Getname: UnicodeString;
  67612. function _Gettype_: UnicodeString;
  67613. function _GetdefaultValue: UnicodeString;
  67614. function _Getvalue: UnicodeString;
  67615. function _GetwillValidate: Boolean;
  67616. function _Getvalidity: IJSValidityState;
  67617. function _GetvalidationMessage: UnicodeString;
  67618. function _Getlabels: IJSNodeList;
  67619. procedure _Setname(const aValue: UnicodeString);
  67620. procedure _SetdefaultValue(const aValue: UnicodeString);
  67621. procedure _Setvalue(const aValue: UnicodeString);
  67622. function checkValidity: Boolean;
  67623. function reportValidity: Boolean;
  67624. procedure setCustomValidity(const aError: UnicodeString);
  67625. property htmlFor: IJSDOMTokenList read _GethtmlFor;
  67626. property form: IJSHTMLFormElement read _Getform;
  67627. property name: UnicodeString read _Getname write _Setname;
  67628. property type_: UnicodeString read _Gettype_;
  67629. property defaultValue: UnicodeString read _GetdefaultValue write _SetdefaultValue;
  67630. property value: UnicodeString read _Getvalue write _Setvalue;
  67631. property willValidate: Boolean read _GetwillValidate;
  67632. property validity: IJSValidityState read _Getvalidity;
  67633. property validationMessage: UnicodeString read _GetvalidationMessage;
  67634. property labels: IJSNodeList read _Getlabels;
  67635. end;
  67636. TJSHTMLOutputElement = class(TJSHTMLElement,IJSHTMLOutputElement)
  67637. Protected
  67638. function _GethtmlFor: IJSDOMTokenList;
  67639. function _Getform: IJSHTMLFormElement;
  67640. function _Getname: UnicodeString;
  67641. function _Gettype_: UnicodeString;
  67642. function _GetdefaultValue: UnicodeString;
  67643. function _Getvalue: UnicodeString;
  67644. function _GetwillValidate: Boolean;
  67645. function _Getvalidity: IJSValidityState;
  67646. function _GetvalidationMessage: UnicodeString;
  67647. function _Getlabels: IJSNodeList;
  67648. procedure _Setname(const aValue: UnicodeString);
  67649. procedure _SetdefaultValue(const aValue: UnicodeString);
  67650. procedure _Setvalue(const aValue: UnicodeString);
  67651. Public
  67652. constructor Create; overload;
  67653. function checkValidity: Boolean; overload;
  67654. function reportValidity: Boolean; overload;
  67655. procedure setCustomValidity(const aError: UnicodeString); overload;
  67656. class function JSClassName: UnicodeString; override;
  67657. class function Cast(const Intf: IJSObject): IJSHTMLOutputElement;
  67658. property htmlFor: IJSDOMTokenList read _GethtmlFor;
  67659. property form: IJSHTMLFormElement read _Getform;
  67660. property name: UnicodeString read _Getname write _Setname;
  67661. property type_: UnicodeString read _Gettype_;
  67662. property defaultValue: UnicodeString read _GetdefaultValue write _SetdefaultValue;
  67663. property value: UnicodeString read _Getvalue write _Setvalue;
  67664. property willValidate: Boolean read _GetwillValidate;
  67665. property validity: IJSValidityState read _Getvalidity;
  67666. property validationMessage: UnicodeString read _GetvalidationMessage;
  67667. property labels: IJSNodeList read _Getlabels;
  67668. end;
  67669. { --------------------------------------------------------------------
  67670. TJSHTMLParagraphElement
  67671. --------------------------------------------------------------------}
  67672. IJSHTMLParagraphElement = interface(IJSHTMLElement)
  67673. ['{09D53537-E818-3B2F-A43D-A69BBA4B2D44}']
  67674. function _Getalign: UnicodeString;
  67675. procedure _Setalign(const aValue: UnicodeString);
  67676. property align: UnicodeString read _Getalign write _Setalign;
  67677. end;
  67678. TJSHTMLParagraphElement = class(TJSHTMLElement,IJSHTMLParagraphElement)
  67679. Protected
  67680. function _Getalign: UnicodeString;
  67681. procedure _Setalign(const aValue: UnicodeString);
  67682. Public
  67683. constructor Create; overload;
  67684. class function JSClassName: UnicodeString; override;
  67685. class function Cast(const Intf: IJSObject): IJSHTMLParagraphElement;
  67686. property align: UnicodeString read _Getalign write _Setalign;
  67687. end;
  67688. { --------------------------------------------------------------------
  67689. TJSHTMLParamElement
  67690. --------------------------------------------------------------------}
  67691. IJSHTMLParamElement = interface(IJSHTMLElement)
  67692. ['{EA93410E-840E-3106-B44C-BC8CE15A3D3B}']
  67693. function _Getname: UnicodeString;
  67694. function _Getvalue: UnicodeString;
  67695. function _Gettype_: UnicodeString;
  67696. function _GetvalueType: UnicodeString;
  67697. procedure _Setname(const aValue: UnicodeString);
  67698. procedure _Setvalue(const aValue: UnicodeString);
  67699. procedure _Settype_(const aValue: UnicodeString);
  67700. procedure _SetvalueType(const aValue: UnicodeString);
  67701. property name: UnicodeString read _Getname write _Setname;
  67702. property value: UnicodeString read _Getvalue write _Setvalue;
  67703. property type_: UnicodeString read _Gettype_ write _Settype_;
  67704. property valueType: UnicodeString read _GetvalueType write _SetvalueType;
  67705. end;
  67706. TJSHTMLParamElement = class(TJSHTMLElement,IJSHTMLParamElement)
  67707. Protected
  67708. function _Getname: UnicodeString;
  67709. function _Getvalue: UnicodeString;
  67710. function _Gettype_: UnicodeString;
  67711. function _GetvalueType: UnicodeString;
  67712. procedure _Setname(const aValue: UnicodeString);
  67713. procedure _Setvalue(const aValue: UnicodeString);
  67714. procedure _Settype_(const aValue: UnicodeString);
  67715. procedure _SetvalueType(const aValue: UnicodeString);
  67716. Public
  67717. constructor Create; overload;
  67718. class function JSClassName: UnicodeString; override;
  67719. class function Cast(const Intf: IJSObject): IJSHTMLParamElement;
  67720. property name: UnicodeString read _Getname write _Setname;
  67721. property value: UnicodeString read _Getvalue write _Setvalue;
  67722. property type_: UnicodeString read _Gettype_ write _Settype_;
  67723. property valueType: UnicodeString read _GetvalueType write _SetvalueType;
  67724. end;
  67725. { --------------------------------------------------------------------
  67726. TJSHTMLPictureElement
  67727. --------------------------------------------------------------------}
  67728. IJSHTMLPictureElement = interface(IJSHTMLElement)
  67729. ['{DB0F4EC0-02F7-3934-A97D-61963CBB13C0}']
  67730. end;
  67731. TJSHTMLPictureElement = class(TJSHTMLElement,IJSHTMLPictureElement)
  67732. Protected
  67733. Public
  67734. constructor Create; overload;
  67735. class function JSClassName: UnicodeString; override;
  67736. class function Cast(const Intf: IJSObject): IJSHTMLPictureElement;
  67737. end;
  67738. { --------------------------------------------------------------------
  67739. TJSHTMLPreElement
  67740. --------------------------------------------------------------------}
  67741. IJSHTMLPreElement = interface(IJSHTMLElement)
  67742. ['{47ACBB92-5F6A-3613-A58F-CBD069142BC9}']
  67743. function _Getwidth: LongInt;
  67744. procedure _Setwidth(const aValue: LongInt);
  67745. property width: LongInt read _Getwidth write _Setwidth;
  67746. end;
  67747. TJSHTMLPreElement = class(TJSHTMLElement,IJSHTMLPreElement)
  67748. Protected
  67749. function _Getwidth: LongInt;
  67750. procedure _Setwidth(const aValue: LongInt);
  67751. Public
  67752. constructor Create; overload;
  67753. class function JSClassName: UnicodeString; override;
  67754. class function Cast(const Intf: IJSObject): IJSHTMLPreElement;
  67755. property width: LongInt read _Getwidth write _Setwidth;
  67756. end;
  67757. { --------------------------------------------------------------------
  67758. TJSHTMLProgressElement
  67759. --------------------------------------------------------------------}
  67760. IJSHTMLProgressElement = interface(IJSHTMLElement)
  67761. ['{11E5CF7A-2E50-3BF6-B29C-C9287BBD2749}']
  67762. function _Getvalue: Double;
  67763. function _Getmax: Double;
  67764. function _Getposition: Double;
  67765. function _Getlabels: IJSNodeList;
  67766. procedure _Setvalue(const aValue: Double);
  67767. procedure _Setmax(const aValue: Double);
  67768. property value: Double read _Getvalue write _Setvalue;
  67769. property max: Double read _Getmax write _Setmax;
  67770. property position: Double read _Getposition;
  67771. property labels: IJSNodeList read _Getlabels;
  67772. end;
  67773. TJSHTMLProgressElement = class(TJSHTMLElement,IJSHTMLProgressElement)
  67774. Protected
  67775. function _Getvalue: Double;
  67776. function _Getmax: Double;
  67777. function _Getposition: Double;
  67778. function _Getlabels: IJSNodeList;
  67779. procedure _Setvalue(const aValue: Double);
  67780. procedure _Setmax(const aValue: Double);
  67781. Public
  67782. constructor Create; overload;
  67783. class function JSClassName: UnicodeString; override;
  67784. class function Cast(const Intf: IJSObject): IJSHTMLProgressElement;
  67785. property value: Double read _Getvalue write _Setvalue;
  67786. property max: Double read _Getmax write _Setmax;
  67787. property position: Double read _Getposition;
  67788. property labels: IJSNodeList read _Getlabels;
  67789. end;
  67790. { --------------------------------------------------------------------
  67791. TJSHTMLQuoteElement
  67792. --------------------------------------------------------------------}
  67793. IJSHTMLQuoteElement = interface(IJSHTMLElement)
  67794. ['{F72C9181-DC42-3DBB-8AB4-63F1F3590752}']
  67795. function _Getcite: UnicodeString;
  67796. procedure _Setcite(const aValue: UnicodeString);
  67797. property cite: UnicodeString read _Getcite write _Setcite;
  67798. end;
  67799. TJSHTMLQuoteElement = class(TJSHTMLElement,IJSHTMLQuoteElement)
  67800. Protected
  67801. function _Getcite: UnicodeString;
  67802. procedure _Setcite(const aValue: UnicodeString);
  67803. Public
  67804. constructor Create; overload;
  67805. class function JSClassName: UnicodeString; override;
  67806. class function Cast(const Intf: IJSObject): IJSHTMLQuoteElement;
  67807. property cite: UnicodeString read _Getcite write _Setcite;
  67808. end;
  67809. { --------------------------------------------------------------------
  67810. TJSHTMLScriptElement
  67811. --------------------------------------------------------------------}
  67812. IJSHTMLScriptElement = interface(IJSHTMLElement)
  67813. ['{C667082B-612B-3098-8FF6-4B72C0FDD741}']
  67814. function _Getsrc: UnicodeString;
  67815. function _Gettype_: UnicodeString;
  67816. function _GetnoModule: Boolean;
  67817. function _Getcharset: UnicodeString;
  67818. function _Getasync: Boolean;
  67819. function _Getdefer: Boolean;
  67820. function _GetcrossOrigin: UnicodeString;
  67821. function _GetreferrerPolicy: UnicodeString;
  67822. function _Gettext: UnicodeString;
  67823. function _Getblocking: IJSDOMTokenList;
  67824. function _GetfetchPriority: UnicodeString;
  67825. function _Getevent: UnicodeString;
  67826. function _GethtmlFor: UnicodeString;
  67827. function _Getintegrity: UnicodeString;
  67828. procedure _Setsrc(const aValue: UnicodeString);
  67829. procedure _Settype_(const aValue: UnicodeString);
  67830. procedure _SetnoModule(const aValue: Boolean);
  67831. procedure _Setcharset(const aValue: UnicodeString);
  67832. procedure _Setasync(const aValue: Boolean);
  67833. procedure _Setdefer(const aValue: Boolean);
  67834. procedure _SetcrossOrigin(const aValue: UnicodeString);
  67835. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  67836. procedure _Settext(const aValue: UnicodeString);
  67837. procedure _SetfetchPriority(const aValue: UnicodeString);
  67838. procedure _Setevent(const aValue: UnicodeString);
  67839. procedure _SethtmlFor(const aValue: UnicodeString);
  67840. procedure _Setintegrity(const aValue: UnicodeString);
  67841. property src: UnicodeString read _Getsrc write _Setsrc;
  67842. property type_: UnicodeString read _Gettype_ write _Settype_;
  67843. property noModule: Boolean read _GetnoModule write _SetnoModule;
  67844. property charset: UnicodeString read _Getcharset write _Setcharset;
  67845. property async: Boolean read _Getasync write _Setasync;
  67846. property defer: Boolean read _Getdefer write _Setdefer;
  67847. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  67848. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  67849. property text: UnicodeString read _Gettext write _Settext;
  67850. property blocking: IJSDOMTokenList read _Getblocking;
  67851. property fetchPriority: UnicodeString read _GetfetchPriority write _SetfetchPriority;
  67852. property event: UnicodeString read _Getevent write _Setevent;
  67853. property htmlFor: UnicodeString read _GethtmlFor write _SethtmlFor;
  67854. property integrity: UnicodeString read _Getintegrity write _Setintegrity;
  67855. end;
  67856. TJSHTMLScriptElement = class(TJSHTMLElement,IJSHTMLScriptElement)
  67857. Protected
  67858. function _Getsrc: UnicodeString;
  67859. function _Gettype_: UnicodeString;
  67860. function _GetnoModule: Boolean;
  67861. function _Getcharset: UnicodeString;
  67862. function _Getasync: Boolean;
  67863. function _Getdefer: Boolean;
  67864. function _GetcrossOrigin: UnicodeString;
  67865. function _GetreferrerPolicy: UnicodeString;
  67866. function _Gettext: UnicodeString;
  67867. function _Getblocking: IJSDOMTokenList;
  67868. function _GetfetchPriority: UnicodeString;
  67869. function _Getevent: UnicodeString;
  67870. function _GethtmlFor: UnicodeString;
  67871. function _Getintegrity: UnicodeString;
  67872. procedure _Setsrc(const aValue: UnicodeString);
  67873. procedure _Settype_(const aValue: UnicodeString);
  67874. procedure _SetnoModule(const aValue: Boolean);
  67875. procedure _Setcharset(const aValue: UnicodeString);
  67876. procedure _Setasync(const aValue: Boolean);
  67877. procedure _Setdefer(const aValue: Boolean);
  67878. procedure _SetcrossOrigin(const aValue: UnicodeString);
  67879. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  67880. procedure _Settext(const aValue: UnicodeString);
  67881. procedure _SetfetchPriority(const aValue: UnicodeString);
  67882. procedure _Setevent(const aValue: UnicodeString);
  67883. procedure _SethtmlFor(const aValue: UnicodeString);
  67884. procedure _Setintegrity(const aValue: UnicodeString);
  67885. Public
  67886. constructor Create; overload;
  67887. function supports(const aType_: UnicodeString): Boolean; overload;
  67888. class function JSClassName: UnicodeString; override;
  67889. class function Cast(const Intf: IJSObject): IJSHTMLScriptElement;
  67890. property src: UnicodeString read _Getsrc write _Setsrc;
  67891. property type_: UnicodeString read _Gettype_ write _Settype_;
  67892. property noModule: Boolean read _GetnoModule write _SetnoModule;
  67893. property charset: UnicodeString read _Getcharset write _Setcharset;
  67894. property async: Boolean read _Getasync write _Setasync;
  67895. property defer: Boolean read _Getdefer write _Setdefer;
  67896. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  67897. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  67898. property text: UnicodeString read _Gettext write _Settext;
  67899. property blocking: IJSDOMTokenList read _Getblocking;
  67900. property fetchPriority: UnicodeString read _GetfetchPriority write _SetfetchPriority;
  67901. property event: UnicodeString read _Getevent write _Setevent;
  67902. property htmlFor: UnicodeString read _GethtmlFor write _SethtmlFor;
  67903. property integrity: UnicodeString read _Getintegrity write _Setintegrity;
  67904. end;
  67905. { --------------------------------------------------------------------
  67906. TJSHTMLSelectElement
  67907. --------------------------------------------------------------------}
  67908. // Union of HTMLOptionElement, HTMLOptGroupElement
  67909. THTMLSelectElement_add_element_Type = Variant;
  67910. // Union of HTMLElement, long
  67911. THTMLSelectElement_add_before_Type = Variant;
  67912. IJSHTMLSelectElement = interface(IJSHTMLElement)
  67913. ['{1E0EE654-3378-33AC-9B79-25F697A5A548}']
  67914. function _Getautocomplete: UnicodeString;
  67915. function _Getdisabled: Boolean;
  67916. function _Getform: IJSHTMLFormElement;
  67917. function _Getmultiple: Boolean;
  67918. function _Getname: UnicodeString;
  67919. function _Getrequired: Boolean;
  67920. function _Getsize: Cardinal;
  67921. function _Gettype_: UnicodeString;
  67922. function _Getoptions: IJSHTMLOptionsCollection;
  67923. function _Getlength_: Cardinal;
  67924. function _GetselectedOptions: IJSHTMLCollection;
  67925. function _GetselectedIndex: LongInt;
  67926. function _Getvalue: UnicodeString;
  67927. function _GetwillValidate: Boolean;
  67928. function _Getvalidity: IJSValidityState;
  67929. function _GetvalidationMessage: UnicodeString;
  67930. function _Getlabels: IJSNodeList;
  67931. procedure _Setautocomplete(const aValue: UnicodeString);
  67932. procedure _Setdisabled(const aValue: Boolean);
  67933. procedure _Setmultiple(const aValue: Boolean);
  67934. procedure _Setname(const aValue: UnicodeString);
  67935. procedure _Setrequired(const aValue: Boolean);
  67936. procedure _Setsize(const aValue: Cardinal);
  67937. procedure _Setlength_(const aValue: Cardinal);
  67938. procedure _SetselectedIndex(const aValue: LongInt);
  67939. procedure _Setvalue(const aValue: UnicodeString);
  67940. function item(aIndex: Cardinal): IJSElement;
  67941. function namedItem(const aName: UnicodeString): IJSHTMLOptionElement;
  67942. procedure add(aElement: IJSHTMLOptGroupElement; aBefore: IJSHTMLElement);
  67943. procedure add(aElement: IJSHTMLOptionElement; aBefore: IJSHTMLElement);
  67944. procedure add(aElement: IJSHTMLOptionElement);
  67945. procedure add(aElement: IJSHTMLOptGroupElement);
  67946. procedure add(aElement: IJSHTMLOptionElement; aBefore: LongInt);
  67947. procedure add(aElement: IJSHTMLOptGroupElement; aBefore: LongInt);
  67948. procedure remove(aIndex: LongInt);
  67949. procedure SetDefault(aIndex: Cardinal; aOption: IJSHTMLOptionElement);
  67950. function checkValidity: Boolean;
  67951. function reportValidity: Boolean;
  67952. procedure setCustomValidity(const aError: UnicodeString);
  67953. procedure showPicker;
  67954. procedure remove;
  67955. property autocomplete: UnicodeString read _Getautocomplete write _Setautocomplete;
  67956. property disabled: Boolean read _Getdisabled write _Setdisabled;
  67957. property form: IJSHTMLFormElement read _Getform;
  67958. property multiple: Boolean read _Getmultiple write _Setmultiple;
  67959. property name: UnicodeString read _Getname write _Setname;
  67960. property required: Boolean read _Getrequired write _Setrequired;
  67961. property size: Cardinal read _Getsize write _Setsize;
  67962. property type_: UnicodeString read _Gettype_;
  67963. property options: IJSHTMLOptionsCollection read _Getoptions;
  67964. property length_: Cardinal read _Getlength_ write _Setlength_;
  67965. property selectedOptions: IJSHTMLCollection read _GetselectedOptions;
  67966. property selectedIndex: LongInt read _GetselectedIndex write _SetselectedIndex;
  67967. property value: UnicodeString read _Getvalue write _Setvalue;
  67968. property willValidate: Boolean read _GetwillValidate;
  67969. property validity: IJSValidityState read _Getvalidity;
  67970. property validationMessage: UnicodeString read _GetvalidationMessage;
  67971. property labels: IJSNodeList read _Getlabels;
  67972. end;
  67973. TJSHTMLSelectElement = class(TJSHTMLElement,IJSHTMLSelectElement)
  67974. Protected
  67975. function _Getautocomplete: UnicodeString;
  67976. function _Getdisabled: Boolean;
  67977. function _Getform: IJSHTMLFormElement;
  67978. function _Getmultiple: Boolean;
  67979. function _Getname: UnicodeString;
  67980. function _Getrequired: Boolean;
  67981. function _Getsize: Cardinal;
  67982. function _Gettype_: UnicodeString;
  67983. function _Getoptions: IJSHTMLOptionsCollection;
  67984. function _Getlength_: Cardinal;
  67985. function _GetselectedOptions: IJSHTMLCollection;
  67986. function _GetselectedIndex: LongInt;
  67987. function _Getvalue: UnicodeString;
  67988. function _GetwillValidate: Boolean;
  67989. function _Getvalidity: IJSValidityState;
  67990. function _GetvalidationMessage: UnicodeString;
  67991. function _Getlabels: IJSNodeList;
  67992. procedure _Setautocomplete(const aValue: UnicodeString);
  67993. procedure _Setdisabled(const aValue: Boolean);
  67994. procedure _Setmultiple(const aValue: Boolean);
  67995. procedure _Setname(const aValue: UnicodeString);
  67996. procedure _Setrequired(const aValue: Boolean);
  67997. procedure _Setsize(const aValue: Cardinal);
  67998. procedure _Setlength_(const aValue: Cardinal);
  67999. procedure _SetselectedIndex(const aValue: LongInt);
  68000. procedure _Setvalue(const aValue: UnicodeString);
  68001. Public
  68002. constructor Create; overload;
  68003. function item(aIndex: Cardinal): IJSElement; overload;
  68004. function namedItem(const aName: UnicodeString): IJSHTMLOptionElement; overload;
  68005. procedure add(aElement: IJSHTMLOptGroupElement; aBefore: IJSHTMLElement); overload;
  68006. procedure add(aElement: IJSHTMLOptionElement; aBefore: IJSHTMLElement); overload;
  68007. procedure add(aElement: IJSHTMLOptionElement); overload;
  68008. procedure add(aElement: IJSHTMLOptGroupElement); overload;
  68009. procedure add(aElement: IJSHTMLOptionElement; aBefore: LongInt); overload;
  68010. procedure add(aElement: IJSHTMLOptGroupElement; aBefore: LongInt); overload;
  68011. procedure remove(aIndex: LongInt); overload;
  68012. procedure SetDefault(aIndex: Cardinal; aOption: IJSHTMLOptionElement); overload;
  68013. function checkValidity: Boolean; overload;
  68014. function reportValidity: Boolean; overload;
  68015. procedure setCustomValidity(const aError: UnicodeString); overload;
  68016. procedure showPicker; overload;
  68017. procedure remove; overload;
  68018. class function JSClassName: UnicodeString; override;
  68019. class function Cast(const Intf: IJSObject): IJSHTMLSelectElement;
  68020. property autocomplete: UnicodeString read _Getautocomplete write _Setautocomplete;
  68021. property disabled: Boolean read _Getdisabled write _Setdisabled;
  68022. property form: IJSHTMLFormElement read _Getform;
  68023. property multiple: Boolean read _Getmultiple write _Setmultiple;
  68024. property name: UnicodeString read _Getname write _Setname;
  68025. property required: Boolean read _Getrequired write _Setrequired;
  68026. property size: Cardinal read _Getsize write _Setsize;
  68027. property type_: UnicodeString read _Gettype_;
  68028. property options: IJSHTMLOptionsCollection read _Getoptions;
  68029. property length_: Cardinal read _Getlength_ write _Setlength_;
  68030. property selectedOptions: IJSHTMLCollection read _GetselectedOptions;
  68031. property selectedIndex: LongInt read _GetselectedIndex write _SetselectedIndex;
  68032. property value: UnicodeString read _Getvalue write _Setvalue;
  68033. property willValidate: Boolean read _GetwillValidate;
  68034. property validity: IJSValidityState read _Getvalidity;
  68035. property validationMessage: UnicodeString read _GetvalidationMessage;
  68036. property labels: IJSNodeList read _Getlabels;
  68037. end;
  68038. { --------------------------------------------------------------------
  68039. TJSHTMLSlotElement
  68040. --------------------------------------------------------------------}
  68041. // Union of Element, Text
  68042. THTMLSlotElement_assign_nodes_Type = Variant;
  68043. IJSHTMLSlotElement = interface(IJSHTMLElement)
  68044. ['{CBAE2FC9-5AB5-3485-9ECF-E30FC0A48CF9}']
  68045. function _Getname: UnicodeString;
  68046. procedure _Setname(const aValue: UnicodeString);
  68047. function assignedNodes(const aOptions: TJSAssignedNodesOptions): TIJSNodeDynArray;
  68048. function assignedNodes: TIJSNodeDynArray;
  68049. function assignedElements(const aOptions: TJSAssignedNodesOptions): TJSElementDynArray;
  68050. function assignedElements: TJSElementDynArray;
  68051. procedure assign(aNodes: IJSElement){; ToDo:varargs};
  68052. procedure assign(aNodes: IJSText){; ToDo:varargs};
  68053. property name: UnicodeString read _Getname write _Setname;
  68054. end;
  68055. TJSHTMLSlotElement = class(TJSHTMLElement,IJSHTMLSlotElement)
  68056. Protected
  68057. function _Getname: UnicodeString;
  68058. procedure _Setname(const aValue: UnicodeString);
  68059. Public
  68060. constructor Create; overload;
  68061. function assignedNodes(const aOptions: TJSAssignedNodesOptions): TIJSNodeDynArray; overload;
  68062. function assignedNodes: TIJSNodeDynArray; overload;
  68063. function assignedElements(const aOptions: TJSAssignedNodesOptions): TJSElementDynArray; overload;
  68064. function assignedElements: TJSElementDynArray; overload;
  68065. procedure assign(aNodes: IJSElement){; ToDo:varargs}; overload;
  68066. procedure assign(aNodes: IJSText){; ToDo:varargs}; overload;
  68067. class function JSClassName: UnicodeString; override;
  68068. class function Cast(const Intf: IJSObject): IJSHTMLSlotElement;
  68069. property name: UnicodeString read _Getname write _Setname;
  68070. end;
  68071. { --------------------------------------------------------------------
  68072. TJSHTMLSourceElement
  68073. --------------------------------------------------------------------}
  68074. IJSHTMLSourceElement = interface(IJSHTMLElement)
  68075. ['{3E3694CC-BCD4-377E-881D-41B488A1F027}']
  68076. function _Getsrc: UnicodeString;
  68077. function _Gettype_: UnicodeString;
  68078. function _Getsrcset: UnicodeString;
  68079. function _Getsizes: UnicodeString;
  68080. function _Getmedia: UnicodeString;
  68081. function _Getwidth: Cardinal;
  68082. function _Getheight: Cardinal;
  68083. procedure _Setsrc(const aValue: UnicodeString);
  68084. procedure _Settype_(const aValue: UnicodeString);
  68085. procedure _Setsrcset(const aValue: UnicodeString);
  68086. procedure _Setsizes(const aValue: UnicodeString);
  68087. procedure _Setmedia(const aValue: UnicodeString);
  68088. procedure _Setwidth(const aValue: Cardinal);
  68089. procedure _Setheight(const aValue: Cardinal);
  68090. property src: UnicodeString read _Getsrc write _Setsrc;
  68091. property type_: UnicodeString read _Gettype_ write _Settype_;
  68092. property srcset: UnicodeString read _Getsrcset write _Setsrcset;
  68093. property sizes: UnicodeString read _Getsizes write _Setsizes;
  68094. property media: UnicodeString read _Getmedia write _Setmedia;
  68095. property width: Cardinal read _Getwidth write _Setwidth;
  68096. property height: Cardinal read _Getheight write _Setheight;
  68097. end;
  68098. TJSHTMLSourceElement = class(TJSHTMLElement,IJSHTMLSourceElement)
  68099. Protected
  68100. function _Getsrc: UnicodeString;
  68101. function _Gettype_: UnicodeString;
  68102. function _Getsrcset: UnicodeString;
  68103. function _Getsizes: UnicodeString;
  68104. function _Getmedia: UnicodeString;
  68105. function _Getwidth: Cardinal;
  68106. function _Getheight: Cardinal;
  68107. procedure _Setsrc(const aValue: UnicodeString);
  68108. procedure _Settype_(const aValue: UnicodeString);
  68109. procedure _Setsrcset(const aValue: UnicodeString);
  68110. procedure _Setsizes(const aValue: UnicodeString);
  68111. procedure _Setmedia(const aValue: UnicodeString);
  68112. procedure _Setwidth(const aValue: Cardinal);
  68113. procedure _Setheight(const aValue: Cardinal);
  68114. Public
  68115. constructor Create; overload;
  68116. class function JSClassName: UnicodeString; override;
  68117. class function Cast(const Intf: IJSObject): IJSHTMLSourceElement;
  68118. property src: UnicodeString read _Getsrc write _Setsrc;
  68119. property type_: UnicodeString read _Gettype_ write _Settype_;
  68120. property srcset: UnicodeString read _Getsrcset write _Setsrcset;
  68121. property sizes: UnicodeString read _Getsizes write _Setsizes;
  68122. property media: UnicodeString read _Getmedia write _Setmedia;
  68123. property width: Cardinal read _Getwidth write _Setwidth;
  68124. property height: Cardinal read _Getheight write _Setheight;
  68125. end;
  68126. { --------------------------------------------------------------------
  68127. TJSHTMLSpanElement
  68128. --------------------------------------------------------------------}
  68129. IJSHTMLSpanElement = interface(IJSHTMLElement)
  68130. ['{AC6CC386-38ED-373F-AD48-9E5D8A5DBD72}']
  68131. end;
  68132. TJSHTMLSpanElement = class(TJSHTMLElement,IJSHTMLSpanElement)
  68133. Protected
  68134. Public
  68135. constructor Create; overload;
  68136. class function JSClassName: UnicodeString; override;
  68137. class function Cast(const Intf: IJSObject): IJSHTMLSpanElement;
  68138. end;
  68139. { --------------------------------------------------------------------
  68140. TJSHTMLStyleElement
  68141. --------------------------------------------------------------------}
  68142. IJSHTMLStyleElement = interface(IJSHTMLElement)
  68143. ['{8614A593-0CF1-387E-A8B1-A5ACA821F177}']
  68144. function _Getdisabled: Boolean;
  68145. function _Getmedia: UnicodeString;
  68146. function _Gettype_: UnicodeString;
  68147. function _Getblocking: IJSDOMTokenList;
  68148. function _Getsheet: IJSStyleSheet;
  68149. procedure _Setdisabled(const aValue: Boolean);
  68150. procedure _Setmedia(const aValue: UnicodeString);
  68151. procedure _Settype_(const aValue: UnicodeString);
  68152. property disabled: Boolean read _Getdisabled write _Setdisabled;
  68153. property media: UnicodeString read _Getmedia write _Setmedia;
  68154. property type_: UnicodeString read _Gettype_ write _Settype_;
  68155. property blocking: IJSDOMTokenList read _Getblocking;
  68156. property sheet: IJSStyleSheet read _Getsheet;
  68157. end;
  68158. TJSHTMLStyleElement = class(TJSHTMLElement,IJSHTMLStyleElement)
  68159. Protected
  68160. function _Getdisabled: Boolean;
  68161. function _Getmedia: UnicodeString;
  68162. function _Gettype_: UnicodeString;
  68163. function _Getblocking: IJSDOMTokenList;
  68164. function _Getsheet: IJSStyleSheet;
  68165. procedure _Setdisabled(const aValue: Boolean);
  68166. procedure _Setmedia(const aValue: UnicodeString);
  68167. procedure _Settype_(const aValue: UnicodeString);
  68168. Public
  68169. constructor Create; overload;
  68170. class function JSClassName: UnicodeString; override;
  68171. class function Cast(const Intf: IJSObject): IJSHTMLStyleElement;
  68172. property disabled: Boolean read _Getdisabled write _Setdisabled;
  68173. property media: UnicodeString read _Getmedia write _Setmedia;
  68174. property type_: UnicodeString read _Gettype_ write _Settype_;
  68175. property blocking: IJSDOMTokenList read _Getblocking;
  68176. property sheet: IJSStyleSheet read _Getsheet;
  68177. end;
  68178. { --------------------------------------------------------------------
  68179. TJSHTMLTableCaptionElement
  68180. --------------------------------------------------------------------}
  68181. IJSHTMLTableCaptionElement = interface(IJSHTMLElement)
  68182. ['{B7B30794-F019-3059-9888-0C4C4B36769E}']
  68183. function _Getalign: UnicodeString;
  68184. procedure _Setalign(const aValue: UnicodeString);
  68185. property align: UnicodeString read _Getalign write _Setalign;
  68186. end;
  68187. TJSHTMLTableCaptionElement = class(TJSHTMLElement,IJSHTMLTableCaptionElement)
  68188. Protected
  68189. function _Getalign: UnicodeString;
  68190. procedure _Setalign(const aValue: UnicodeString);
  68191. Public
  68192. constructor Create; overload;
  68193. class function JSClassName: UnicodeString; override;
  68194. class function Cast(const Intf: IJSObject): IJSHTMLTableCaptionElement;
  68195. property align: UnicodeString read _Getalign write _Setalign;
  68196. end;
  68197. { --------------------------------------------------------------------
  68198. TJSHTMLTableCellElement
  68199. --------------------------------------------------------------------}
  68200. IJSHTMLTableCellElement = interface(IJSHTMLElement)
  68201. ['{EC2E4E59-C419-3598-93E9-961F1E930620}']
  68202. function _GetcolSpan: Cardinal;
  68203. function _GetrowSpan: Cardinal;
  68204. function _Getheaders: UnicodeString;
  68205. function _GetcellIndex: LongInt;
  68206. function _Getabbr: UnicodeString;
  68207. function _Getscope: UnicodeString;
  68208. function _Getalign: UnicodeString;
  68209. function _Getaxis: UnicodeString;
  68210. function _Getheight: UnicodeString;
  68211. function _Getwidth: UnicodeString;
  68212. function _Getch: UnicodeString;
  68213. function _GetchOff: UnicodeString;
  68214. function _GetnoWrap: Boolean;
  68215. function _GetvAlign: UnicodeString;
  68216. function _GetbgColor: UnicodeString;
  68217. procedure _SetcolSpan(const aValue: Cardinal);
  68218. procedure _SetrowSpan(const aValue: Cardinal);
  68219. procedure _Setheaders(const aValue: UnicodeString);
  68220. procedure _Setabbr(const aValue: UnicodeString);
  68221. procedure _Setscope(const aValue: UnicodeString);
  68222. procedure _Setalign(const aValue: UnicodeString);
  68223. procedure _Setaxis(const aValue: UnicodeString);
  68224. procedure _Setheight(const aValue: UnicodeString);
  68225. procedure _Setwidth(const aValue: UnicodeString);
  68226. procedure _Setch(const aValue: UnicodeString);
  68227. procedure _SetchOff(const aValue: UnicodeString);
  68228. procedure _SetnoWrap(const aValue: Boolean);
  68229. procedure _SetvAlign(const aValue: UnicodeString);
  68230. procedure _SetbgColor(const aValue: UnicodeString);
  68231. property colSpan: Cardinal read _GetcolSpan write _SetcolSpan;
  68232. property rowSpan: Cardinal read _GetrowSpan write _SetrowSpan;
  68233. property headers: UnicodeString read _Getheaders write _Setheaders;
  68234. property cellIndex: LongInt read _GetcellIndex;
  68235. property abbr: UnicodeString read _Getabbr write _Setabbr;
  68236. property scope: UnicodeString read _Getscope write _Setscope;
  68237. property align: UnicodeString read _Getalign write _Setalign;
  68238. property axis: UnicodeString read _Getaxis write _Setaxis;
  68239. property height: UnicodeString read _Getheight write _Setheight;
  68240. property width: UnicodeString read _Getwidth write _Setwidth;
  68241. property ch: UnicodeString read _Getch write _Setch;
  68242. property chOff: UnicodeString read _GetchOff write _SetchOff;
  68243. property noWrap: Boolean read _GetnoWrap write _SetnoWrap;
  68244. property vAlign: UnicodeString read _GetvAlign write _SetvAlign;
  68245. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  68246. end;
  68247. TJSHTMLTableCellElement = class(TJSHTMLElement,IJSHTMLTableCellElement)
  68248. Protected
  68249. function _GetcolSpan: Cardinal;
  68250. function _GetrowSpan: Cardinal;
  68251. function _Getheaders: UnicodeString;
  68252. function _GetcellIndex: LongInt;
  68253. function _Getabbr: UnicodeString;
  68254. function _Getscope: UnicodeString;
  68255. function _Getalign: UnicodeString;
  68256. function _Getaxis: UnicodeString;
  68257. function _Getheight: UnicodeString;
  68258. function _Getwidth: UnicodeString;
  68259. function _Getch: UnicodeString;
  68260. function _GetchOff: UnicodeString;
  68261. function _GetnoWrap: Boolean;
  68262. function _GetvAlign: UnicodeString;
  68263. function _GetbgColor: UnicodeString;
  68264. procedure _SetcolSpan(const aValue: Cardinal);
  68265. procedure _SetrowSpan(const aValue: Cardinal);
  68266. procedure _Setheaders(const aValue: UnicodeString);
  68267. procedure _Setabbr(const aValue: UnicodeString);
  68268. procedure _Setscope(const aValue: UnicodeString);
  68269. procedure _Setalign(const aValue: UnicodeString);
  68270. procedure _Setaxis(const aValue: UnicodeString);
  68271. procedure _Setheight(const aValue: UnicodeString);
  68272. procedure _Setwidth(const aValue: UnicodeString);
  68273. procedure _Setch(const aValue: UnicodeString);
  68274. procedure _SetchOff(const aValue: UnicodeString);
  68275. procedure _SetnoWrap(const aValue: Boolean);
  68276. procedure _SetvAlign(const aValue: UnicodeString);
  68277. procedure _SetbgColor(const aValue: UnicodeString);
  68278. Public
  68279. constructor Create; overload;
  68280. class function JSClassName: UnicodeString; override;
  68281. class function Cast(const Intf: IJSObject): IJSHTMLTableCellElement;
  68282. property colSpan: Cardinal read _GetcolSpan write _SetcolSpan;
  68283. property rowSpan: Cardinal read _GetrowSpan write _SetrowSpan;
  68284. property headers: UnicodeString read _Getheaders write _Setheaders;
  68285. property cellIndex: LongInt read _GetcellIndex;
  68286. property abbr: UnicodeString read _Getabbr write _Setabbr;
  68287. property scope: UnicodeString read _Getscope write _Setscope;
  68288. property align: UnicodeString read _Getalign write _Setalign;
  68289. property axis: UnicodeString read _Getaxis write _Setaxis;
  68290. property height: UnicodeString read _Getheight write _Setheight;
  68291. property width: UnicodeString read _Getwidth write _Setwidth;
  68292. property ch: UnicodeString read _Getch write _Setch;
  68293. property chOff: UnicodeString read _GetchOff write _SetchOff;
  68294. property noWrap: Boolean read _GetnoWrap write _SetnoWrap;
  68295. property vAlign: UnicodeString read _GetvAlign write _SetvAlign;
  68296. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  68297. end;
  68298. { --------------------------------------------------------------------
  68299. TJSHTMLTableColElement
  68300. --------------------------------------------------------------------}
  68301. IJSHTMLTableColElement = interface(IJSHTMLElement)
  68302. ['{0C6EE83C-8D36-3B04-8BD2-42105735C08C}']
  68303. function _Getspan: Cardinal;
  68304. function _Getalign: UnicodeString;
  68305. function _Getch: UnicodeString;
  68306. function _GetchOff: UnicodeString;
  68307. function _GetvAlign: UnicodeString;
  68308. function _Getwidth: UnicodeString;
  68309. procedure _Setspan(const aValue: Cardinal);
  68310. procedure _Setalign(const aValue: UnicodeString);
  68311. procedure _Setch(const aValue: UnicodeString);
  68312. procedure _SetchOff(const aValue: UnicodeString);
  68313. procedure _SetvAlign(const aValue: UnicodeString);
  68314. procedure _Setwidth(const aValue: UnicodeString);
  68315. property span: Cardinal read _Getspan write _Setspan;
  68316. property align: UnicodeString read _Getalign write _Setalign;
  68317. property ch: UnicodeString read _Getch write _Setch;
  68318. property chOff: UnicodeString read _GetchOff write _SetchOff;
  68319. property vAlign: UnicodeString read _GetvAlign write _SetvAlign;
  68320. property width: UnicodeString read _Getwidth write _Setwidth;
  68321. end;
  68322. TJSHTMLTableColElement = class(TJSHTMLElement,IJSHTMLTableColElement)
  68323. Protected
  68324. function _Getspan: Cardinal;
  68325. function _Getalign: UnicodeString;
  68326. function _Getch: UnicodeString;
  68327. function _GetchOff: UnicodeString;
  68328. function _GetvAlign: UnicodeString;
  68329. function _Getwidth: UnicodeString;
  68330. procedure _Setspan(const aValue: Cardinal);
  68331. procedure _Setalign(const aValue: UnicodeString);
  68332. procedure _Setch(const aValue: UnicodeString);
  68333. procedure _SetchOff(const aValue: UnicodeString);
  68334. procedure _SetvAlign(const aValue: UnicodeString);
  68335. procedure _Setwidth(const aValue: UnicodeString);
  68336. Public
  68337. constructor Create; overload;
  68338. class function JSClassName: UnicodeString; override;
  68339. class function Cast(const Intf: IJSObject): IJSHTMLTableColElement;
  68340. property span: Cardinal read _Getspan write _Setspan;
  68341. property align: UnicodeString read _Getalign write _Setalign;
  68342. property ch: UnicodeString read _Getch write _Setch;
  68343. property chOff: UnicodeString read _GetchOff write _SetchOff;
  68344. property vAlign: UnicodeString read _GetvAlign write _SetvAlign;
  68345. property width: UnicodeString read _Getwidth write _Setwidth;
  68346. end;
  68347. { --------------------------------------------------------------------
  68348. TJSHTMLTableElement
  68349. --------------------------------------------------------------------}
  68350. IJSHTMLTableElement = interface(IJSHTMLElement)
  68351. ['{E1253BAF-AB48-3B11-936B-53857E089475}']
  68352. function _Getcaption: IJSHTMLTableCaptionElement;
  68353. function _GettHead: IJSHTMLTableSectionElement;
  68354. function _GettFoot: IJSHTMLTableSectionElement;
  68355. function _GettBodies: IJSHTMLCollection;
  68356. function _Getrows: IJSHTMLCollection;
  68357. function _Getalign: UnicodeString;
  68358. function _Getborder: UnicodeString;
  68359. function _Getframe: UnicodeString;
  68360. function _Getrules: UnicodeString;
  68361. function _Getsummary: UnicodeString;
  68362. function _Getwidth: UnicodeString;
  68363. function _GetbgColor: UnicodeString;
  68364. function _GetcellPadding: UnicodeString;
  68365. function _GetcellSpacing: UnicodeString;
  68366. procedure _Setcaption(const aValue: IJSHTMLTableCaptionElement);
  68367. procedure _SettHead(const aValue: IJSHTMLTableSectionElement);
  68368. procedure _SettFoot(const aValue: IJSHTMLTableSectionElement);
  68369. procedure _Setalign(const aValue: UnicodeString);
  68370. procedure _Setborder(const aValue: UnicodeString);
  68371. procedure _Setframe(const aValue: UnicodeString);
  68372. procedure _Setrules(const aValue: UnicodeString);
  68373. procedure _Setsummary(const aValue: UnicodeString);
  68374. procedure _Setwidth(const aValue: UnicodeString);
  68375. procedure _SetbgColor(const aValue: UnicodeString);
  68376. procedure _SetcellPadding(const aValue: UnicodeString);
  68377. procedure _SetcellSpacing(const aValue: UnicodeString);
  68378. function createCaption: IJSHTMLElement;
  68379. procedure deleteCaption;
  68380. function createTHead: IJSHTMLElement;
  68381. procedure deleteTHead;
  68382. function createTFoot: IJSHTMLElement;
  68383. procedure deleteTFoot;
  68384. function createTBody: IJSHTMLElement;
  68385. function insertRow(aIndex: LongInt): IJSHTMLElement;
  68386. function insertRow: IJSHTMLElement;
  68387. procedure deleteRow(aIndex: LongInt);
  68388. property caption: IJSHTMLTableCaptionElement read _Getcaption write _Setcaption;
  68389. property tHead: IJSHTMLTableSectionElement read _GettHead write _SettHead;
  68390. property tFoot: IJSHTMLTableSectionElement read _GettFoot write _SettFoot;
  68391. property tBodies: IJSHTMLCollection read _GettBodies;
  68392. property rows: IJSHTMLCollection read _Getrows;
  68393. property align: UnicodeString read _Getalign write _Setalign;
  68394. property border: UnicodeString read _Getborder write _Setborder;
  68395. property frame: UnicodeString read _Getframe write _Setframe;
  68396. property rules: UnicodeString read _Getrules write _Setrules;
  68397. property summary: UnicodeString read _Getsummary write _Setsummary;
  68398. property width: UnicodeString read _Getwidth write _Setwidth;
  68399. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  68400. property cellPadding: UnicodeString read _GetcellPadding write _SetcellPadding;
  68401. property cellSpacing: UnicodeString read _GetcellSpacing write _SetcellSpacing;
  68402. end;
  68403. TJSHTMLTableElement = class(TJSHTMLElement,IJSHTMLTableElement)
  68404. Protected
  68405. function _Getcaption: IJSHTMLTableCaptionElement;
  68406. function _GettHead: IJSHTMLTableSectionElement;
  68407. function _GettFoot: IJSHTMLTableSectionElement;
  68408. function _GettBodies: IJSHTMLCollection;
  68409. function _Getrows: IJSHTMLCollection;
  68410. function _Getalign: UnicodeString;
  68411. function _Getborder: UnicodeString;
  68412. function _Getframe: UnicodeString;
  68413. function _Getrules: UnicodeString;
  68414. function _Getsummary: UnicodeString;
  68415. function _Getwidth: UnicodeString;
  68416. function _GetbgColor: UnicodeString;
  68417. function _GetcellPadding: UnicodeString;
  68418. function _GetcellSpacing: UnicodeString;
  68419. procedure _Setcaption(const aValue: IJSHTMLTableCaptionElement);
  68420. procedure _SettHead(const aValue: IJSHTMLTableSectionElement);
  68421. procedure _SettFoot(const aValue: IJSHTMLTableSectionElement);
  68422. procedure _Setalign(const aValue: UnicodeString);
  68423. procedure _Setborder(const aValue: UnicodeString);
  68424. procedure _Setframe(const aValue: UnicodeString);
  68425. procedure _Setrules(const aValue: UnicodeString);
  68426. procedure _Setsummary(const aValue: UnicodeString);
  68427. procedure _Setwidth(const aValue: UnicodeString);
  68428. procedure _SetbgColor(const aValue: UnicodeString);
  68429. procedure _SetcellPadding(const aValue: UnicodeString);
  68430. procedure _SetcellSpacing(const aValue: UnicodeString);
  68431. Public
  68432. constructor Create; overload;
  68433. function createCaption: IJSHTMLElement; overload;
  68434. procedure deleteCaption; overload;
  68435. function createTHead: IJSHTMLElement; overload;
  68436. procedure deleteTHead; overload;
  68437. function createTFoot: IJSHTMLElement; overload;
  68438. procedure deleteTFoot; overload;
  68439. function createTBody: IJSHTMLElement; overload;
  68440. function insertRow(aIndex: LongInt): IJSHTMLElement; overload;
  68441. function insertRow: IJSHTMLElement; overload;
  68442. procedure deleteRow(aIndex: LongInt); overload;
  68443. class function JSClassName: UnicodeString; override;
  68444. class function Cast(const Intf: IJSObject): IJSHTMLTableElement;
  68445. property caption: IJSHTMLTableCaptionElement read _Getcaption write _Setcaption;
  68446. property tHead: IJSHTMLTableSectionElement read _GettHead write _SettHead;
  68447. property tFoot: IJSHTMLTableSectionElement read _GettFoot write _SettFoot;
  68448. property tBodies: IJSHTMLCollection read _GettBodies;
  68449. property rows: IJSHTMLCollection read _Getrows;
  68450. property align: UnicodeString read _Getalign write _Setalign;
  68451. property border: UnicodeString read _Getborder write _Setborder;
  68452. property frame: UnicodeString read _Getframe write _Setframe;
  68453. property rules: UnicodeString read _Getrules write _Setrules;
  68454. property summary: UnicodeString read _Getsummary write _Setsummary;
  68455. property width: UnicodeString read _Getwidth write _Setwidth;
  68456. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  68457. property cellPadding: UnicodeString read _GetcellPadding write _SetcellPadding;
  68458. property cellSpacing: UnicodeString read _GetcellSpacing write _SetcellSpacing;
  68459. end;
  68460. { --------------------------------------------------------------------
  68461. TJSHTMLTableRowElement
  68462. --------------------------------------------------------------------}
  68463. IJSHTMLTableRowElement = interface(IJSHTMLElement)
  68464. ['{6342FEF0-518C-3C60-BDA6-DB0C08D6D4E0}']
  68465. function _GetrowIndex: LongInt;
  68466. function _GetsectionRowIndex: LongInt;
  68467. function _Getcells: IJSHTMLCollection;
  68468. function _Getalign: UnicodeString;
  68469. function _Getch: UnicodeString;
  68470. function _GetchOff: UnicodeString;
  68471. function _GetvAlign: UnicodeString;
  68472. function _GetbgColor: UnicodeString;
  68473. procedure _Setalign(const aValue: UnicodeString);
  68474. procedure _Setch(const aValue: UnicodeString);
  68475. procedure _SetchOff(const aValue: UnicodeString);
  68476. procedure _SetvAlign(const aValue: UnicodeString);
  68477. procedure _SetbgColor(const aValue: UnicodeString);
  68478. function insertCell(aIndex: LongInt): IJSHTMLElement;
  68479. function insertCell: IJSHTMLElement;
  68480. procedure deleteCell(aIndex: LongInt);
  68481. property rowIndex: LongInt read _GetrowIndex;
  68482. property sectionRowIndex: LongInt read _GetsectionRowIndex;
  68483. property cells: IJSHTMLCollection read _Getcells;
  68484. property align: UnicodeString read _Getalign write _Setalign;
  68485. property ch: UnicodeString read _Getch write _Setch;
  68486. property chOff: UnicodeString read _GetchOff write _SetchOff;
  68487. property vAlign: UnicodeString read _GetvAlign write _SetvAlign;
  68488. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  68489. end;
  68490. TJSHTMLTableRowElement = class(TJSHTMLElement,IJSHTMLTableRowElement)
  68491. Protected
  68492. function _GetrowIndex: LongInt;
  68493. function _GetsectionRowIndex: LongInt;
  68494. function _Getcells: IJSHTMLCollection;
  68495. function _Getalign: UnicodeString;
  68496. function _Getch: UnicodeString;
  68497. function _GetchOff: UnicodeString;
  68498. function _GetvAlign: UnicodeString;
  68499. function _GetbgColor: UnicodeString;
  68500. procedure _Setalign(const aValue: UnicodeString);
  68501. procedure _Setch(const aValue: UnicodeString);
  68502. procedure _SetchOff(const aValue: UnicodeString);
  68503. procedure _SetvAlign(const aValue: UnicodeString);
  68504. procedure _SetbgColor(const aValue: UnicodeString);
  68505. Public
  68506. constructor Create; overload;
  68507. function insertCell(aIndex: LongInt): IJSHTMLElement; overload;
  68508. function insertCell: IJSHTMLElement; overload;
  68509. procedure deleteCell(aIndex: LongInt); overload;
  68510. class function JSClassName: UnicodeString; override;
  68511. class function Cast(const Intf: IJSObject): IJSHTMLTableRowElement;
  68512. property rowIndex: LongInt read _GetrowIndex;
  68513. property sectionRowIndex: LongInt read _GetsectionRowIndex;
  68514. property cells: IJSHTMLCollection read _Getcells;
  68515. property align: UnicodeString read _Getalign write _Setalign;
  68516. property ch: UnicodeString read _Getch write _Setch;
  68517. property chOff: UnicodeString read _GetchOff write _SetchOff;
  68518. property vAlign: UnicodeString read _GetvAlign write _SetvAlign;
  68519. property bgColor: UnicodeString read _GetbgColor write _SetbgColor;
  68520. end;
  68521. { --------------------------------------------------------------------
  68522. TJSHTMLTableSectionElement
  68523. --------------------------------------------------------------------}
  68524. IJSHTMLTableSectionElement = interface(IJSHTMLElement)
  68525. ['{894BBB55-DF16-3CA6-AAF3-9F9D3CB1162D}']
  68526. function _Getrows: IJSHTMLCollection;
  68527. function _Getalign: UnicodeString;
  68528. function _Getch: UnicodeString;
  68529. function _GetchOff: UnicodeString;
  68530. function _GetvAlign: UnicodeString;
  68531. procedure _Setalign(const aValue: UnicodeString);
  68532. procedure _Setch(const aValue: UnicodeString);
  68533. procedure _SetchOff(const aValue: UnicodeString);
  68534. procedure _SetvAlign(const aValue: UnicodeString);
  68535. function insertRow(aIndex: LongInt): IJSHTMLElement;
  68536. function insertRow: IJSHTMLElement;
  68537. procedure deleteRow(aIndex: LongInt);
  68538. property rows: IJSHTMLCollection read _Getrows;
  68539. property align: UnicodeString read _Getalign write _Setalign;
  68540. property ch: UnicodeString read _Getch write _Setch;
  68541. property chOff: UnicodeString read _GetchOff write _SetchOff;
  68542. property vAlign: UnicodeString read _GetvAlign write _SetvAlign;
  68543. end;
  68544. TJSHTMLTableSectionElement = class(TJSHTMLElement,IJSHTMLTableSectionElement)
  68545. Protected
  68546. function _Getrows: IJSHTMLCollection;
  68547. function _Getalign: UnicodeString;
  68548. function _Getch: UnicodeString;
  68549. function _GetchOff: UnicodeString;
  68550. function _GetvAlign: UnicodeString;
  68551. procedure _Setalign(const aValue: UnicodeString);
  68552. procedure _Setch(const aValue: UnicodeString);
  68553. procedure _SetchOff(const aValue: UnicodeString);
  68554. procedure _SetvAlign(const aValue: UnicodeString);
  68555. Public
  68556. constructor Create; overload;
  68557. function insertRow(aIndex: LongInt): IJSHTMLElement; overload;
  68558. function insertRow: IJSHTMLElement; overload;
  68559. procedure deleteRow(aIndex: LongInt); overload;
  68560. class function JSClassName: UnicodeString; override;
  68561. class function Cast(const Intf: IJSObject): IJSHTMLTableSectionElement;
  68562. property rows: IJSHTMLCollection read _Getrows;
  68563. property align: UnicodeString read _Getalign write _Setalign;
  68564. property ch: UnicodeString read _Getch write _Setch;
  68565. property chOff: UnicodeString read _GetchOff write _SetchOff;
  68566. property vAlign: UnicodeString read _GetvAlign write _SetvAlign;
  68567. end;
  68568. { --------------------------------------------------------------------
  68569. TJSHTMLTemplateElement
  68570. --------------------------------------------------------------------}
  68571. IJSHTMLTemplateElement = interface(IJSHTMLElement)
  68572. ['{5EB160BA-EABA-368E-9EA2-5734E5C54B0C}']
  68573. function _Getcontent: IJSDocumentFragment;
  68574. function _GetshadowRootMode: UnicodeString;
  68575. function _GetshadowRootDelegatesFocus: Boolean;
  68576. function _GetshadowRootClonable: Boolean;
  68577. procedure _SetshadowRootMode(const aValue: UnicodeString);
  68578. procedure _SetshadowRootDelegatesFocus(const aValue: Boolean);
  68579. procedure _SetshadowRootClonable(const aValue: Boolean);
  68580. property content: IJSDocumentFragment read _Getcontent;
  68581. property shadowRootMode: UnicodeString read _GetshadowRootMode write _SetshadowRootMode;
  68582. property shadowRootDelegatesFocus: Boolean read _GetshadowRootDelegatesFocus write _SetshadowRootDelegatesFocus;
  68583. property shadowRootClonable: Boolean read _GetshadowRootClonable write _SetshadowRootClonable;
  68584. end;
  68585. TJSHTMLTemplateElement = class(TJSHTMLElement,IJSHTMLTemplateElement)
  68586. Protected
  68587. function _Getcontent: IJSDocumentFragment;
  68588. function _GetshadowRootMode: UnicodeString;
  68589. function _GetshadowRootDelegatesFocus: Boolean;
  68590. function _GetshadowRootClonable: Boolean;
  68591. procedure _SetshadowRootMode(const aValue: UnicodeString);
  68592. procedure _SetshadowRootDelegatesFocus(const aValue: Boolean);
  68593. procedure _SetshadowRootClonable(const aValue: Boolean);
  68594. Public
  68595. constructor Create; overload;
  68596. class function JSClassName: UnicodeString; override;
  68597. class function Cast(const Intf: IJSObject): IJSHTMLTemplateElement;
  68598. property content: IJSDocumentFragment read _Getcontent;
  68599. property shadowRootMode: UnicodeString read _GetshadowRootMode write _SetshadowRootMode;
  68600. property shadowRootDelegatesFocus: Boolean read _GetshadowRootDelegatesFocus write _SetshadowRootDelegatesFocus;
  68601. property shadowRootClonable: Boolean read _GetshadowRootClonable write _SetshadowRootClonable;
  68602. end;
  68603. { --------------------------------------------------------------------
  68604. TJSHTMLTextAreaElement
  68605. --------------------------------------------------------------------}
  68606. IJSHTMLTextAreaElement = interface(IJSHTMLElement)
  68607. ['{0D3D0186-09D1-3B18-9619-8C32E86F11BD}']
  68608. function _Getautocomplete: UnicodeString;
  68609. function _Getcols: Cardinal;
  68610. function _GetdirName: UnicodeString;
  68611. function _Getdisabled: Boolean;
  68612. function _Getform: IJSHTMLFormElement;
  68613. function _GetmaxLength: LongInt;
  68614. function _GetminLength: LongInt;
  68615. function _Getname: UnicodeString;
  68616. function _Getplaceholder: UnicodeString;
  68617. function _GetreadOnly: Boolean;
  68618. function _Getrequired: Boolean;
  68619. function _Getrows: Cardinal;
  68620. function _Getwrap: UnicodeString;
  68621. function _Gettype_: UnicodeString;
  68622. function _GetdefaultValue: UnicodeString;
  68623. function _Getvalue: UnicodeString;
  68624. function _GettextLength: Cardinal;
  68625. function _GetwillValidate: Boolean;
  68626. function _Getvalidity: IJSValidityState;
  68627. function _GetvalidationMessage: UnicodeString;
  68628. function _Getlabels: IJSNodeList;
  68629. function _GetselectionStart: Cardinal;
  68630. function _GetselectionEnd: Cardinal;
  68631. function _GetselectionDirection: UnicodeString;
  68632. procedure _Setautocomplete(const aValue: UnicodeString);
  68633. procedure _Setcols(const aValue: Cardinal);
  68634. procedure _SetdirName(const aValue: UnicodeString);
  68635. procedure _Setdisabled(const aValue: Boolean);
  68636. procedure _SetmaxLength(const aValue: LongInt);
  68637. procedure _SetminLength(const aValue: LongInt);
  68638. procedure _Setname(const aValue: UnicodeString);
  68639. procedure _Setplaceholder(const aValue: UnicodeString);
  68640. procedure _SetreadOnly(const aValue: Boolean);
  68641. procedure _Setrequired(const aValue: Boolean);
  68642. procedure _Setrows(const aValue: Cardinal);
  68643. procedure _Setwrap(const aValue: UnicodeString);
  68644. procedure _SetdefaultValue(const aValue: UnicodeString);
  68645. procedure _Setvalue(const aValue: UnicodeString);
  68646. procedure _SetselectionStart(const aValue: Cardinal);
  68647. procedure _SetselectionEnd(const aValue: Cardinal);
  68648. procedure _SetselectionDirection(const aValue: UnicodeString);
  68649. function checkValidity: Boolean;
  68650. function reportValidity: Boolean;
  68651. procedure setCustomValidity(const aError: UnicodeString);
  68652. procedure select;
  68653. procedure setRangeText(const aReplacement: UnicodeString);
  68654. procedure setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal; aSelectionMode: TSelectionMode);
  68655. procedure setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal);
  68656. procedure setSelectionRange(aStart: Cardinal; aEnd_: Cardinal; const aDirection: UnicodeString);
  68657. procedure setSelectionRange(aStart: Cardinal; aEnd_: Cardinal);
  68658. procedure setUserInput(const aInput: UnicodeString);
  68659. property autocomplete: UnicodeString read _Getautocomplete write _Setautocomplete;
  68660. property cols: Cardinal read _Getcols write _Setcols;
  68661. property dirName: UnicodeString read _GetdirName write _SetdirName;
  68662. property disabled: Boolean read _Getdisabled write _Setdisabled;
  68663. property form: IJSHTMLFormElement read _Getform;
  68664. property maxLength: LongInt read _GetmaxLength write _SetmaxLength;
  68665. property minLength: LongInt read _GetminLength write _SetminLength;
  68666. property name: UnicodeString read _Getname write _Setname;
  68667. property placeholder: UnicodeString read _Getplaceholder write _Setplaceholder;
  68668. property readOnly: Boolean read _GetreadOnly write _SetreadOnly;
  68669. property required: Boolean read _Getrequired write _Setrequired;
  68670. property rows: Cardinal read _Getrows write _Setrows;
  68671. property wrap: UnicodeString read _Getwrap write _Setwrap;
  68672. property type_: UnicodeString read _Gettype_;
  68673. property defaultValue: UnicodeString read _GetdefaultValue write _SetdefaultValue;
  68674. property value: UnicodeString read _Getvalue write _Setvalue;
  68675. property textLength: Cardinal read _GettextLength;
  68676. property willValidate: Boolean read _GetwillValidate;
  68677. property validity: IJSValidityState read _Getvalidity;
  68678. property validationMessage: UnicodeString read _GetvalidationMessage;
  68679. property labels: IJSNodeList read _Getlabels;
  68680. property selectionStart: Cardinal read _GetselectionStart write _SetselectionStart;
  68681. property selectionEnd: Cardinal read _GetselectionEnd write _SetselectionEnd;
  68682. property selectionDirection: UnicodeString read _GetselectionDirection write _SetselectionDirection;
  68683. end;
  68684. TJSHTMLTextAreaElement = class(TJSHTMLElement,IJSHTMLTextAreaElement)
  68685. Protected
  68686. function _Getautocomplete: UnicodeString;
  68687. function _Getcols: Cardinal;
  68688. function _GetdirName: UnicodeString;
  68689. function _Getdisabled: Boolean;
  68690. function _Getform: IJSHTMLFormElement;
  68691. function _GetmaxLength: LongInt;
  68692. function _GetminLength: LongInt;
  68693. function _Getname: UnicodeString;
  68694. function _Getplaceholder: UnicodeString;
  68695. function _GetreadOnly: Boolean;
  68696. function _Getrequired: Boolean;
  68697. function _Getrows: Cardinal;
  68698. function _Getwrap: UnicodeString;
  68699. function _Gettype_: UnicodeString;
  68700. function _GetdefaultValue: UnicodeString;
  68701. function _Getvalue: UnicodeString;
  68702. function _GettextLength: Cardinal;
  68703. function _GetwillValidate: Boolean;
  68704. function _Getvalidity: IJSValidityState;
  68705. function _GetvalidationMessage: UnicodeString;
  68706. function _Getlabels: IJSNodeList;
  68707. function _GetselectionStart: Cardinal;
  68708. function _GetselectionEnd: Cardinal;
  68709. function _GetselectionDirection: UnicodeString;
  68710. procedure _Setautocomplete(const aValue: UnicodeString);
  68711. procedure _Setcols(const aValue: Cardinal);
  68712. procedure _SetdirName(const aValue: UnicodeString);
  68713. procedure _Setdisabled(const aValue: Boolean);
  68714. procedure _SetmaxLength(const aValue: LongInt);
  68715. procedure _SetminLength(const aValue: LongInt);
  68716. procedure _Setname(const aValue: UnicodeString);
  68717. procedure _Setplaceholder(const aValue: UnicodeString);
  68718. procedure _SetreadOnly(const aValue: Boolean);
  68719. procedure _Setrequired(const aValue: Boolean);
  68720. procedure _Setrows(const aValue: Cardinal);
  68721. procedure _Setwrap(const aValue: UnicodeString);
  68722. procedure _SetdefaultValue(const aValue: UnicodeString);
  68723. procedure _Setvalue(const aValue: UnicodeString);
  68724. procedure _SetselectionStart(const aValue: Cardinal);
  68725. procedure _SetselectionEnd(const aValue: Cardinal);
  68726. procedure _SetselectionDirection(const aValue: UnicodeString);
  68727. Public
  68728. constructor Create; overload;
  68729. function checkValidity: Boolean; overload;
  68730. function reportValidity: Boolean; overload;
  68731. procedure setCustomValidity(const aError: UnicodeString); overload;
  68732. procedure select; overload;
  68733. procedure setRangeText(const aReplacement: UnicodeString); overload;
  68734. procedure setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal; aSelectionMode: TSelectionMode); overload;
  68735. procedure setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal); overload;
  68736. procedure setSelectionRange(aStart: Cardinal; aEnd_: Cardinal; const aDirection: UnicodeString); overload;
  68737. procedure setSelectionRange(aStart: Cardinal; aEnd_: Cardinal); overload;
  68738. procedure setUserInput(const aInput: UnicodeString); overload;
  68739. class function JSClassName: UnicodeString; override;
  68740. class function Cast(const Intf: IJSObject): IJSHTMLTextAreaElement;
  68741. property autocomplete: UnicodeString read _Getautocomplete write _Setautocomplete;
  68742. property cols: Cardinal read _Getcols write _Setcols;
  68743. property dirName: UnicodeString read _GetdirName write _SetdirName;
  68744. property disabled: Boolean read _Getdisabled write _Setdisabled;
  68745. property form: IJSHTMLFormElement read _Getform;
  68746. property maxLength: LongInt read _GetmaxLength write _SetmaxLength;
  68747. property minLength: LongInt read _GetminLength write _SetminLength;
  68748. property name: UnicodeString read _Getname write _Setname;
  68749. property placeholder: UnicodeString read _Getplaceholder write _Setplaceholder;
  68750. property readOnly: Boolean read _GetreadOnly write _SetreadOnly;
  68751. property required: Boolean read _Getrequired write _Setrequired;
  68752. property rows: Cardinal read _Getrows write _Setrows;
  68753. property wrap: UnicodeString read _Getwrap write _Setwrap;
  68754. property type_: UnicodeString read _Gettype_;
  68755. property defaultValue: UnicodeString read _GetdefaultValue write _SetdefaultValue;
  68756. property value: UnicodeString read _Getvalue write _Setvalue;
  68757. property textLength: Cardinal read _GettextLength;
  68758. property willValidate: Boolean read _GetwillValidate;
  68759. property validity: IJSValidityState read _Getvalidity;
  68760. property validationMessage: UnicodeString read _GetvalidationMessage;
  68761. property labels: IJSNodeList read _Getlabels;
  68762. property selectionStart: Cardinal read _GetselectionStart write _SetselectionStart;
  68763. property selectionEnd: Cardinal read _GetselectionEnd write _SetselectionEnd;
  68764. property selectionDirection: UnicodeString read _GetselectionDirection write _SetselectionDirection;
  68765. end;
  68766. { --------------------------------------------------------------------
  68767. TJSHTMLTimeElement
  68768. --------------------------------------------------------------------}
  68769. IJSHTMLTimeElement = interface(IJSHTMLElement)
  68770. ['{261EC867-DCB1-33E8-B765-B0B98A5D6C72}']
  68771. function _GetdateTime: UnicodeString;
  68772. procedure _SetdateTime(const aValue: UnicodeString);
  68773. property dateTime: UnicodeString read _GetdateTime write _SetdateTime;
  68774. end;
  68775. TJSHTMLTimeElement = class(TJSHTMLElement,IJSHTMLTimeElement)
  68776. Protected
  68777. function _GetdateTime: UnicodeString;
  68778. procedure _SetdateTime(const aValue: UnicodeString);
  68779. Public
  68780. constructor Create; overload;
  68781. class function JSClassName: UnicodeString; override;
  68782. class function Cast(const Intf: IJSObject): IJSHTMLTimeElement;
  68783. property dateTime: UnicodeString read _GetdateTime write _SetdateTime;
  68784. end;
  68785. { --------------------------------------------------------------------
  68786. TJSHTMLTitleElement
  68787. --------------------------------------------------------------------}
  68788. IJSHTMLTitleElement = interface(IJSHTMLElement)
  68789. ['{0A98DAB3-3BA7-33A1-A5D4-63F1F359020A}']
  68790. function _Gettext: UnicodeString;
  68791. procedure _Settext(const aValue: UnicodeString);
  68792. property text: UnicodeString read _Gettext write _Settext;
  68793. end;
  68794. TJSHTMLTitleElement = class(TJSHTMLElement,IJSHTMLTitleElement)
  68795. Protected
  68796. function _Gettext: UnicodeString;
  68797. procedure _Settext(const aValue: UnicodeString);
  68798. Public
  68799. constructor Create; overload;
  68800. class function JSClassName: UnicodeString; override;
  68801. class function Cast(const Intf: IJSObject): IJSHTMLTitleElement;
  68802. property text: UnicodeString read _Gettext write _Settext;
  68803. end;
  68804. { --------------------------------------------------------------------
  68805. TJSHTMLTrackElement
  68806. --------------------------------------------------------------------}
  68807. IJSHTMLTrackElement = interface(IJSHTMLElement)
  68808. ['{E827BCDF-CB02-322D-AD7E-4840443DCD8C}']
  68809. function _Getkind: UnicodeString;
  68810. function _Getsrc: UnicodeString;
  68811. function _Getsrclang: UnicodeString;
  68812. function _Getlabel_: UnicodeString;
  68813. function _Getdefault: Boolean;
  68814. function _GetreadyState: Word;
  68815. function _Gettrack: IJSTextTrack;
  68816. procedure _Setkind(const aValue: UnicodeString);
  68817. procedure _Setsrc(const aValue: UnicodeString);
  68818. procedure _Setsrclang(const aValue: UnicodeString);
  68819. procedure _Setlabel_(const aValue: UnicodeString);
  68820. procedure _Setdefault(const aValue: Boolean);
  68821. property kind: UnicodeString read _Getkind write _Setkind;
  68822. property src: UnicodeString read _Getsrc write _Setsrc;
  68823. property srclang: UnicodeString read _Getsrclang write _Setsrclang;
  68824. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  68825. property default: Boolean read _Getdefault write _Setdefault;
  68826. property readyState: Word read _GetreadyState;
  68827. property track: IJSTextTrack read _Gettrack;
  68828. end;
  68829. TJSHTMLTrackElement = class(TJSHTMLElement,IJSHTMLTrackElement)
  68830. Protected
  68831. function _Getkind: UnicodeString;
  68832. function _Getsrc: UnicodeString;
  68833. function _Getsrclang: UnicodeString;
  68834. function _Getlabel_: UnicodeString;
  68835. function _Getdefault: Boolean;
  68836. function _GetreadyState: Word;
  68837. function _Gettrack: IJSTextTrack;
  68838. procedure _Setkind(const aValue: UnicodeString);
  68839. procedure _Setsrc(const aValue: UnicodeString);
  68840. procedure _Setsrclang(const aValue: UnicodeString);
  68841. procedure _Setlabel_(const aValue: UnicodeString);
  68842. procedure _Setdefault(const aValue: Boolean);
  68843. Public
  68844. Const
  68845. NONE = 0;
  68846. LOADING = 1;
  68847. LOADED = 2;
  68848. ERROR = 3;
  68849. Public
  68850. constructor Create; overload;
  68851. class function JSClassName: UnicodeString; override;
  68852. class function Cast(const Intf: IJSObject): IJSHTMLTrackElement;
  68853. property kind: UnicodeString read _Getkind write _Setkind;
  68854. property src: UnicodeString read _Getsrc write _Setsrc;
  68855. property srclang: UnicodeString read _Getsrclang write _Setsrclang;
  68856. property label_: UnicodeString read _Getlabel_ write _Setlabel_;
  68857. property default: Boolean read _Getdefault write _Setdefault;
  68858. property readyState: Word read _GetreadyState;
  68859. property track: IJSTextTrack read _Gettrack;
  68860. end;
  68861. { --------------------------------------------------------------------
  68862. TJSHTMLUListElement
  68863. --------------------------------------------------------------------}
  68864. IJSHTMLUListElement = interface(IJSHTMLElement)
  68865. ['{663EFA3B-94CA-372D-B5D7-E9D1838F1475}']
  68866. function _Getcompact: Boolean;
  68867. function _Gettype_: UnicodeString;
  68868. procedure _Setcompact(const aValue: Boolean);
  68869. procedure _Settype_(const aValue: UnicodeString);
  68870. property compact: Boolean read _Getcompact write _Setcompact;
  68871. property type_: UnicodeString read _Gettype_ write _Settype_;
  68872. end;
  68873. TJSHTMLUListElement = class(TJSHTMLElement,IJSHTMLUListElement)
  68874. Protected
  68875. function _Getcompact: Boolean;
  68876. function _Gettype_: UnicodeString;
  68877. procedure _Setcompact(const aValue: Boolean);
  68878. procedure _Settype_(const aValue: UnicodeString);
  68879. Public
  68880. constructor Create; overload;
  68881. class function JSClassName: UnicodeString; override;
  68882. class function Cast(const Intf: IJSObject): IJSHTMLUListElement;
  68883. property compact: Boolean read _Getcompact write _Setcompact;
  68884. property type_: UnicodeString read _Gettype_ write _Settype_;
  68885. end;
  68886. { --------------------------------------------------------------------
  68887. TJSSVGAnimationElement
  68888. --------------------------------------------------------------------}
  68889. IJSSVGAnimationElement = interface(IJSSVGElement)
  68890. ['{F0DC9E39-CEE0-385F-BD43-DC9F4C092D44}']
  68891. function _GettargetElement: IJSSVGElement;
  68892. function _Getonbegin: TEventHandler;
  68893. function _Getonend: TEventHandler;
  68894. function _Getonrepeat: TEventHandler;
  68895. function _GetrequiredExtensions: IJSSVGStringList;
  68896. function _GetsystemLanguage: IJSSVGStringList;
  68897. procedure _Setonbegin(const aValue: TEventHandler);
  68898. procedure _Setonend(const aValue: TEventHandler);
  68899. procedure _Setonrepeat(const aValue: TEventHandler);
  68900. function getStartTime: Single;
  68901. function getCurrentTime: Single;
  68902. function getSimpleDuration: Single;
  68903. procedure beginElement;
  68904. procedure beginElementAt(aOffset: Single);
  68905. procedure endElement;
  68906. procedure endElementAt(aOffset: Single);
  68907. property targetElement: IJSSVGElement read _GettargetElement;
  68908. property onbegin: TEventHandler read _Getonbegin write _Setonbegin;
  68909. property onend: TEventHandler read _Getonend write _Setonend;
  68910. property onrepeat: TEventHandler read _Getonrepeat write _Setonrepeat;
  68911. property requiredExtensions: IJSSVGStringList read _GetrequiredExtensions;
  68912. property systemLanguage: IJSSVGStringList read _GetsystemLanguage;
  68913. end;
  68914. TJSSVGAnimationElement = class(TJSSVGElement,IJSSVGAnimationElement)
  68915. Protected
  68916. function _GettargetElement: IJSSVGElement;
  68917. function _Getonbegin: TEventHandler;
  68918. function _Getonend: TEventHandler;
  68919. function _Getonrepeat: TEventHandler;
  68920. function _GetrequiredExtensions: IJSSVGStringList;
  68921. function _GetsystemLanguage: IJSSVGStringList;
  68922. procedure _Setonbegin(const aValue: TEventHandler);
  68923. procedure _Setonend(const aValue: TEventHandler);
  68924. procedure _Setonrepeat(const aValue: TEventHandler);
  68925. Public
  68926. function getStartTime: Single; overload;
  68927. function getCurrentTime: Single; overload;
  68928. function getSimpleDuration: Single; overload;
  68929. procedure beginElement; overload;
  68930. procedure beginElementAt(aOffset: Single); overload;
  68931. procedure endElement; overload;
  68932. procedure endElementAt(aOffset: Single); overload;
  68933. class function JSClassName: UnicodeString; override;
  68934. class function Cast(const Intf: IJSObject): IJSSVGAnimationElement;
  68935. property targetElement: IJSSVGElement read _GettargetElement;
  68936. property onbegin: TEventHandler read _Getonbegin write _Setonbegin;
  68937. property onend: TEventHandler read _Getonend write _Setonend;
  68938. property onrepeat: TEventHandler read _Getonrepeat write _Setonrepeat;
  68939. property requiredExtensions: IJSSVGStringList read _GetrequiredExtensions;
  68940. property systemLanguage: IJSSVGStringList read _GetsystemLanguage;
  68941. end;
  68942. { --------------------------------------------------------------------
  68943. TJSSVGClipPathElement
  68944. --------------------------------------------------------------------}
  68945. IJSSVGClipPathElement = interface(IJSSVGElement)
  68946. ['{2C28D8FA-4ADB-32C8-9681-B8114759C8FC}']
  68947. function _GetclipPathUnits: IJSSVGAnimatedEnumeration;
  68948. function _Gettransform: IJSSVGAnimatedTransformList;
  68949. property clipPathUnits: IJSSVGAnimatedEnumeration read _GetclipPathUnits;
  68950. property transform: IJSSVGAnimatedTransformList read _Gettransform;
  68951. end;
  68952. TJSSVGClipPathElement = class(TJSSVGElement,IJSSVGClipPathElement)
  68953. Protected
  68954. function _GetclipPathUnits: IJSSVGAnimatedEnumeration;
  68955. function _Gettransform: IJSSVGAnimatedTransformList;
  68956. Public
  68957. class function JSClassName: UnicodeString; override;
  68958. class function Cast(const Intf: IJSObject): IJSSVGClipPathElement;
  68959. property clipPathUnits: IJSSVGAnimatedEnumeration read _GetclipPathUnits;
  68960. property transform: IJSSVGAnimatedTransformList read _Gettransform;
  68961. end;
  68962. { --------------------------------------------------------------------
  68963. TJSSVGComponentTransferFunctionElement
  68964. --------------------------------------------------------------------}
  68965. IJSSVGComponentTransferFunctionElement = interface(IJSSVGElement)
  68966. ['{97A55B15-BADC-39CE-8401-12196C8C4C06}']
  68967. function _Gettype_: IJSSVGAnimatedEnumeration;
  68968. function _GettableValues: IJSSVGAnimatedNumberList;
  68969. function _Getslope: IJSSVGAnimatedNumber;
  68970. function _Getintercept: IJSSVGAnimatedNumber;
  68971. function _Getamplitude: IJSSVGAnimatedNumber;
  68972. function _Getexponent: IJSSVGAnimatedNumber;
  68973. function _Getoffset: IJSSVGAnimatedNumber;
  68974. property type_: IJSSVGAnimatedEnumeration read _Gettype_;
  68975. property tableValues: IJSSVGAnimatedNumberList read _GettableValues;
  68976. property slope: IJSSVGAnimatedNumber read _Getslope;
  68977. property intercept: IJSSVGAnimatedNumber read _Getintercept;
  68978. property amplitude: IJSSVGAnimatedNumber read _Getamplitude;
  68979. property exponent: IJSSVGAnimatedNumber read _Getexponent;
  68980. property offset: IJSSVGAnimatedNumber read _Getoffset;
  68981. end;
  68982. TJSSVGComponentTransferFunctionElement = class(TJSSVGElement,IJSSVGComponentTransferFunctionElement)
  68983. Protected
  68984. function _Gettype_: IJSSVGAnimatedEnumeration;
  68985. function _GettableValues: IJSSVGAnimatedNumberList;
  68986. function _Getslope: IJSSVGAnimatedNumber;
  68987. function _Getintercept: IJSSVGAnimatedNumber;
  68988. function _Getamplitude: IJSSVGAnimatedNumber;
  68989. function _Getexponent: IJSSVGAnimatedNumber;
  68990. function _Getoffset: IJSSVGAnimatedNumber;
  68991. Public
  68992. Const
  68993. SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0;
  68994. SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1;
  68995. SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2;
  68996. SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3;
  68997. SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4;
  68998. SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5;
  68999. Public
  69000. class function JSClassName: UnicodeString; override;
  69001. class function Cast(const Intf: IJSObject): IJSSVGComponentTransferFunctionElement;
  69002. property type_: IJSSVGAnimatedEnumeration read _Gettype_;
  69003. property tableValues: IJSSVGAnimatedNumberList read _GettableValues;
  69004. property slope: IJSSVGAnimatedNumber read _Getslope;
  69005. property intercept: IJSSVGAnimatedNumber read _Getintercept;
  69006. property amplitude: IJSSVGAnimatedNumber read _Getamplitude;
  69007. property exponent: IJSSVGAnimatedNumber read _Getexponent;
  69008. property offset: IJSSVGAnimatedNumber read _Getoffset;
  69009. end;
  69010. { --------------------------------------------------------------------
  69011. TJSSVGDescElement
  69012. --------------------------------------------------------------------}
  69013. IJSSVGDescElement = interface(IJSSVGElement)
  69014. ['{A28D848E-9220-332E-8D52-13223446E5A9}']
  69015. end;
  69016. TJSSVGDescElement = class(TJSSVGElement,IJSSVGDescElement)
  69017. Protected
  69018. Public
  69019. class function JSClassName: UnicodeString; override;
  69020. class function Cast(const Intf: IJSObject): IJSSVGDescElement;
  69021. end;
  69022. { --------------------------------------------------------------------
  69023. TJSSVGFEBlendElement
  69024. --------------------------------------------------------------------}
  69025. IJSSVGFEBlendElement = interface(IJSSVGElement)
  69026. ['{C3D0F6F7-AF23-3CBF-B4A0-467186A6AD4C}']
  69027. function _Getin1: IJSSVGAnimatedString;
  69028. function _Getin2: IJSSVGAnimatedString;
  69029. function _Getmode: IJSSVGAnimatedEnumeration;
  69030. function _Getx: IJSSVGAnimatedLength;
  69031. function _Gety: IJSSVGAnimatedLength;
  69032. function _Getwidth: IJSSVGAnimatedLength;
  69033. function _Getheight: IJSSVGAnimatedLength;
  69034. function _Getresult: IJSSVGAnimatedString;
  69035. property in1: IJSSVGAnimatedString read _Getin1;
  69036. property in2: IJSSVGAnimatedString read _Getin2;
  69037. property mode: IJSSVGAnimatedEnumeration read _Getmode;
  69038. property x: IJSSVGAnimatedLength read _Getx;
  69039. property y: IJSSVGAnimatedLength read _Gety;
  69040. property width: IJSSVGAnimatedLength read _Getwidth;
  69041. property height: IJSSVGAnimatedLength read _Getheight;
  69042. property result: IJSSVGAnimatedString read _Getresult;
  69043. end;
  69044. TJSSVGFEBlendElement = class(TJSSVGElement,IJSSVGFEBlendElement)
  69045. Protected
  69046. function _Getin1: IJSSVGAnimatedString;
  69047. function _Getin2: IJSSVGAnimatedString;
  69048. function _Getmode: IJSSVGAnimatedEnumeration;
  69049. function _Getx: IJSSVGAnimatedLength;
  69050. function _Gety: IJSSVGAnimatedLength;
  69051. function _Getwidth: IJSSVGAnimatedLength;
  69052. function _Getheight: IJSSVGAnimatedLength;
  69053. function _Getresult: IJSSVGAnimatedString;
  69054. Public
  69055. Const
  69056. SVG_FEBLEND_MODE_UNKNOWN = 0;
  69057. SVG_FEBLEND_MODE_NORMAL = 1;
  69058. SVG_FEBLEND_MODE_MULTIPLY = 2;
  69059. SVG_FEBLEND_MODE_SCREEN = 3;
  69060. SVG_FEBLEND_MODE_DARKEN = 4;
  69061. SVG_FEBLEND_MODE_LIGHTEN = 5;
  69062. SVG_FEBLEND_MODE_OVERLAY = 6;
  69063. SVG_FEBLEND_MODE_COLOR_DODGE = 7;
  69064. SVG_FEBLEND_MODE_COLOR_BURN = 8;
  69065. SVG_FEBLEND_MODE_HARD_LIGHT = 9;
  69066. SVG_FEBLEND_MODE_SOFT_LIGHT = 10;
  69067. SVG_FEBLEND_MODE_DIFFERENCE = 11;
  69068. SVG_FEBLEND_MODE_EXCLUSION = 12;
  69069. SVG_FEBLEND_MODE_HUE = 13;
  69070. SVG_FEBLEND_MODE_SATURATION = 14;
  69071. SVG_FEBLEND_MODE_COLOR = 15;
  69072. SVG_FEBLEND_MODE_LUMINOSITY = 16;
  69073. Public
  69074. class function JSClassName: UnicodeString; override;
  69075. class function Cast(const Intf: IJSObject): IJSSVGFEBlendElement;
  69076. property in1: IJSSVGAnimatedString read _Getin1;
  69077. property in2: IJSSVGAnimatedString read _Getin2;
  69078. property mode: IJSSVGAnimatedEnumeration read _Getmode;
  69079. property x: IJSSVGAnimatedLength read _Getx;
  69080. property y: IJSSVGAnimatedLength read _Gety;
  69081. property width: IJSSVGAnimatedLength read _Getwidth;
  69082. property height: IJSSVGAnimatedLength read _Getheight;
  69083. property result: IJSSVGAnimatedString read _Getresult;
  69084. end;
  69085. { --------------------------------------------------------------------
  69086. TJSSVGFEColorMatrixElement
  69087. --------------------------------------------------------------------}
  69088. IJSSVGFEColorMatrixElement = interface(IJSSVGElement)
  69089. ['{64D70434-58D3-39D6-BF73-A9892EFC1512}']
  69090. function _Getin1: IJSSVGAnimatedString;
  69091. function _Gettype_: IJSSVGAnimatedEnumeration;
  69092. function _Getvalues: IJSSVGAnimatedNumberList;
  69093. function _Getx: IJSSVGAnimatedLength;
  69094. function _Gety: IJSSVGAnimatedLength;
  69095. function _Getwidth: IJSSVGAnimatedLength;
  69096. function _Getheight: IJSSVGAnimatedLength;
  69097. function _Getresult: IJSSVGAnimatedString;
  69098. property in1: IJSSVGAnimatedString read _Getin1;
  69099. property type_: IJSSVGAnimatedEnumeration read _Gettype_;
  69100. property values: IJSSVGAnimatedNumberList read _Getvalues;
  69101. property x: IJSSVGAnimatedLength read _Getx;
  69102. property y: IJSSVGAnimatedLength read _Gety;
  69103. property width: IJSSVGAnimatedLength read _Getwidth;
  69104. property height: IJSSVGAnimatedLength read _Getheight;
  69105. property result: IJSSVGAnimatedString read _Getresult;
  69106. end;
  69107. TJSSVGFEColorMatrixElement = class(TJSSVGElement,IJSSVGFEColorMatrixElement)
  69108. Protected
  69109. function _Getin1: IJSSVGAnimatedString;
  69110. function _Gettype_: IJSSVGAnimatedEnumeration;
  69111. function _Getvalues: IJSSVGAnimatedNumberList;
  69112. function _Getx: IJSSVGAnimatedLength;
  69113. function _Gety: IJSSVGAnimatedLength;
  69114. function _Getwidth: IJSSVGAnimatedLength;
  69115. function _Getheight: IJSSVGAnimatedLength;
  69116. function _Getresult: IJSSVGAnimatedString;
  69117. Public
  69118. Const
  69119. SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0;
  69120. SVG_FECOLORMATRIX_TYPE_MATRIX = 1;
  69121. SVG_FECOLORMATRIX_TYPE_SATURATE = 2;
  69122. SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3;
  69123. SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4;
  69124. Public
  69125. class function JSClassName: UnicodeString; override;
  69126. class function Cast(const Intf: IJSObject): IJSSVGFEColorMatrixElement;
  69127. property in1: IJSSVGAnimatedString read _Getin1;
  69128. property type_: IJSSVGAnimatedEnumeration read _Gettype_;
  69129. property values: IJSSVGAnimatedNumberList read _Getvalues;
  69130. property x: IJSSVGAnimatedLength read _Getx;
  69131. property y: IJSSVGAnimatedLength read _Gety;
  69132. property width: IJSSVGAnimatedLength read _Getwidth;
  69133. property height: IJSSVGAnimatedLength read _Getheight;
  69134. property result: IJSSVGAnimatedString read _Getresult;
  69135. end;
  69136. { --------------------------------------------------------------------
  69137. TJSSVGFEComponentTransferElement
  69138. --------------------------------------------------------------------}
  69139. IJSSVGFEComponentTransferElement = interface(IJSSVGElement)
  69140. ['{445F1013-CE98-37AD-B168-2C4B3E99F26F}']
  69141. function _Getin1: IJSSVGAnimatedString;
  69142. function _Getx: IJSSVGAnimatedLength;
  69143. function _Gety: IJSSVGAnimatedLength;
  69144. function _Getwidth: IJSSVGAnimatedLength;
  69145. function _Getheight: IJSSVGAnimatedLength;
  69146. function _Getresult: IJSSVGAnimatedString;
  69147. property in1: IJSSVGAnimatedString read _Getin1;
  69148. property x: IJSSVGAnimatedLength read _Getx;
  69149. property y: IJSSVGAnimatedLength read _Gety;
  69150. property width: IJSSVGAnimatedLength read _Getwidth;
  69151. property height: IJSSVGAnimatedLength read _Getheight;
  69152. property result: IJSSVGAnimatedString read _Getresult;
  69153. end;
  69154. TJSSVGFEComponentTransferElement = class(TJSSVGElement,IJSSVGFEComponentTransferElement)
  69155. Protected
  69156. function _Getin1: IJSSVGAnimatedString;
  69157. function _Getx: IJSSVGAnimatedLength;
  69158. function _Gety: IJSSVGAnimatedLength;
  69159. function _Getwidth: IJSSVGAnimatedLength;
  69160. function _Getheight: IJSSVGAnimatedLength;
  69161. function _Getresult: IJSSVGAnimatedString;
  69162. Public
  69163. class function JSClassName: UnicodeString; override;
  69164. class function Cast(const Intf: IJSObject): IJSSVGFEComponentTransferElement;
  69165. property in1: IJSSVGAnimatedString read _Getin1;
  69166. property x: IJSSVGAnimatedLength read _Getx;
  69167. property y: IJSSVGAnimatedLength read _Gety;
  69168. property width: IJSSVGAnimatedLength read _Getwidth;
  69169. property height: IJSSVGAnimatedLength read _Getheight;
  69170. property result: IJSSVGAnimatedString read _Getresult;
  69171. end;
  69172. { --------------------------------------------------------------------
  69173. TJSSVGFECompositeElement
  69174. --------------------------------------------------------------------}
  69175. IJSSVGFECompositeElement = interface(IJSSVGElement)
  69176. ['{C296CF04-3EDE-342A-B74E-A7A14CC8D253}']
  69177. function _Getin1: IJSSVGAnimatedString;
  69178. function _Getin2: IJSSVGAnimatedString;
  69179. function _Getoperator_: IJSSVGAnimatedEnumeration;
  69180. function _Getk1: IJSSVGAnimatedNumber;
  69181. function _Getk2: IJSSVGAnimatedNumber;
  69182. function _Getk3: IJSSVGAnimatedNumber;
  69183. function _Getk4: IJSSVGAnimatedNumber;
  69184. function _Getx: IJSSVGAnimatedLength;
  69185. function _Gety: IJSSVGAnimatedLength;
  69186. function _Getwidth: IJSSVGAnimatedLength;
  69187. function _Getheight: IJSSVGAnimatedLength;
  69188. function _Getresult: IJSSVGAnimatedString;
  69189. property in1: IJSSVGAnimatedString read _Getin1;
  69190. property in2: IJSSVGAnimatedString read _Getin2;
  69191. property operator_: IJSSVGAnimatedEnumeration read _Getoperator_;
  69192. property k1: IJSSVGAnimatedNumber read _Getk1;
  69193. property k2: IJSSVGAnimatedNumber read _Getk2;
  69194. property k3: IJSSVGAnimatedNumber read _Getk3;
  69195. property k4: IJSSVGAnimatedNumber read _Getk4;
  69196. property x: IJSSVGAnimatedLength read _Getx;
  69197. property y: IJSSVGAnimatedLength read _Gety;
  69198. property width: IJSSVGAnimatedLength read _Getwidth;
  69199. property height: IJSSVGAnimatedLength read _Getheight;
  69200. property result: IJSSVGAnimatedString read _Getresult;
  69201. end;
  69202. TJSSVGFECompositeElement = class(TJSSVGElement,IJSSVGFECompositeElement)
  69203. Protected
  69204. function _Getin1: IJSSVGAnimatedString;
  69205. function _Getin2: IJSSVGAnimatedString;
  69206. function _Getoperator_: IJSSVGAnimatedEnumeration;
  69207. function _Getk1: IJSSVGAnimatedNumber;
  69208. function _Getk2: IJSSVGAnimatedNumber;
  69209. function _Getk3: IJSSVGAnimatedNumber;
  69210. function _Getk4: IJSSVGAnimatedNumber;
  69211. function _Getx: IJSSVGAnimatedLength;
  69212. function _Gety: IJSSVGAnimatedLength;
  69213. function _Getwidth: IJSSVGAnimatedLength;
  69214. function _Getheight: IJSSVGAnimatedLength;
  69215. function _Getresult: IJSSVGAnimatedString;
  69216. Public
  69217. Const
  69218. SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0;
  69219. SVG_FECOMPOSITE_OPERATOR_OVER = 1;
  69220. SVG_FECOMPOSITE_OPERATOR_IN = 2;
  69221. SVG_FECOMPOSITE_OPERATOR_OUT = 3;
  69222. SVG_FECOMPOSITE_OPERATOR_ATOP = 4;
  69223. SVG_FECOMPOSITE_OPERATOR_XOR = 5;
  69224. SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6;
  69225. SVG_FECOMPOSITE_OPERATOR_LIGHTER = 7;
  69226. Public
  69227. class function JSClassName: UnicodeString; override;
  69228. class function Cast(const Intf: IJSObject): IJSSVGFECompositeElement;
  69229. property in1: IJSSVGAnimatedString read _Getin1;
  69230. property in2: IJSSVGAnimatedString read _Getin2;
  69231. property operator_: IJSSVGAnimatedEnumeration read _Getoperator_;
  69232. property k1: IJSSVGAnimatedNumber read _Getk1;
  69233. property k2: IJSSVGAnimatedNumber read _Getk2;
  69234. property k3: IJSSVGAnimatedNumber read _Getk3;
  69235. property k4: IJSSVGAnimatedNumber read _Getk4;
  69236. property x: IJSSVGAnimatedLength read _Getx;
  69237. property y: IJSSVGAnimatedLength read _Gety;
  69238. property width: IJSSVGAnimatedLength read _Getwidth;
  69239. property height: IJSSVGAnimatedLength read _Getheight;
  69240. property result: IJSSVGAnimatedString read _Getresult;
  69241. end;
  69242. { --------------------------------------------------------------------
  69243. TJSSVGFEConvolveMatrixElement
  69244. --------------------------------------------------------------------}
  69245. IJSSVGFEConvolveMatrixElement = interface(IJSSVGElement)
  69246. ['{D8A9A7DF-EC48-3A61-BEB9-928610CFE79A}']
  69247. function _Getin1: IJSSVGAnimatedString;
  69248. function _GetorderX: IJSSVGAnimatedInteger;
  69249. function _GetorderY: IJSSVGAnimatedInteger;
  69250. function _GetkernelMatrix: IJSSVGAnimatedNumberList;
  69251. function _Getdivisor: IJSSVGAnimatedNumber;
  69252. function _Getbias: IJSSVGAnimatedNumber;
  69253. function _GettargetX: IJSSVGAnimatedInteger;
  69254. function _GettargetY: IJSSVGAnimatedInteger;
  69255. function _GetedgeMode: IJSSVGAnimatedEnumeration;
  69256. function _GetkernelUnitLengthX: IJSSVGAnimatedNumber;
  69257. function _GetkernelUnitLengthY: IJSSVGAnimatedNumber;
  69258. function _GetpreserveAlpha: IJSSVGAnimatedBoolean;
  69259. function _Getx: IJSSVGAnimatedLength;
  69260. function _Gety: IJSSVGAnimatedLength;
  69261. function _Getwidth: IJSSVGAnimatedLength;
  69262. function _Getheight: IJSSVGAnimatedLength;
  69263. function _Getresult: IJSSVGAnimatedString;
  69264. property in1: IJSSVGAnimatedString read _Getin1;
  69265. property orderX: IJSSVGAnimatedInteger read _GetorderX;
  69266. property orderY: IJSSVGAnimatedInteger read _GetorderY;
  69267. property kernelMatrix: IJSSVGAnimatedNumberList read _GetkernelMatrix;
  69268. property divisor: IJSSVGAnimatedNumber read _Getdivisor;
  69269. property bias: IJSSVGAnimatedNumber read _Getbias;
  69270. property targetX: IJSSVGAnimatedInteger read _GettargetX;
  69271. property targetY: IJSSVGAnimatedInteger read _GettargetY;
  69272. property edgeMode: IJSSVGAnimatedEnumeration read _GetedgeMode;
  69273. property kernelUnitLengthX: IJSSVGAnimatedNumber read _GetkernelUnitLengthX;
  69274. property kernelUnitLengthY: IJSSVGAnimatedNumber read _GetkernelUnitLengthY;
  69275. property preserveAlpha: IJSSVGAnimatedBoolean read _GetpreserveAlpha;
  69276. property x: IJSSVGAnimatedLength read _Getx;
  69277. property y: IJSSVGAnimatedLength read _Gety;
  69278. property width: IJSSVGAnimatedLength read _Getwidth;
  69279. property height: IJSSVGAnimatedLength read _Getheight;
  69280. property result: IJSSVGAnimatedString read _Getresult;
  69281. end;
  69282. TJSSVGFEConvolveMatrixElement = class(TJSSVGElement,IJSSVGFEConvolveMatrixElement)
  69283. Protected
  69284. function _Getin1: IJSSVGAnimatedString;
  69285. function _GetorderX: IJSSVGAnimatedInteger;
  69286. function _GetorderY: IJSSVGAnimatedInteger;
  69287. function _GetkernelMatrix: IJSSVGAnimatedNumberList;
  69288. function _Getdivisor: IJSSVGAnimatedNumber;
  69289. function _Getbias: IJSSVGAnimatedNumber;
  69290. function _GettargetX: IJSSVGAnimatedInteger;
  69291. function _GettargetY: IJSSVGAnimatedInteger;
  69292. function _GetedgeMode: IJSSVGAnimatedEnumeration;
  69293. function _GetkernelUnitLengthX: IJSSVGAnimatedNumber;
  69294. function _GetkernelUnitLengthY: IJSSVGAnimatedNumber;
  69295. function _GetpreserveAlpha: IJSSVGAnimatedBoolean;
  69296. function _Getx: IJSSVGAnimatedLength;
  69297. function _Gety: IJSSVGAnimatedLength;
  69298. function _Getwidth: IJSSVGAnimatedLength;
  69299. function _Getheight: IJSSVGAnimatedLength;
  69300. function _Getresult: IJSSVGAnimatedString;
  69301. Public
  69302. Const
  69303. SVG_EDGEMODE_UNKNOWN = 0;
  69304. SVG_EDGEMODE_DUPLICATE = 1;
  69305. SVG_EDGEMODE_WRAP = 2;
  69306. SVG_EDGEMODE_NONE = 3;
  69307. Public
  69308. class function JSClassName: UnicodeString; override;
  69309. class function Cast(const Intf: IJSObject): IJSSVGFEConvolveMatrixElement;
  69310. property in1: IJSSVGAnimatedString read _Getin1;
  69311. property orderX: IJSSVGAnimatedInteger read _GetorderX;
  69312. property orderY: IJSSVGAnimatedInteger read _GetorderY;
  69313. property kernelMatrix: IJSSVGAnimatedNumberList read _GetkernelMatrix;
  69314. property divisor: IJSSVGAnimatedNumber read _Getdivisor;
  69315. property bias: IJSSVGAnimatedNumber read _Getbias;
  69316. property targetX: IJSSVGAnimatedInteger read _GettargetX;
  69317. property targetY: IJSSVGAnimatedInteger read _GettargetY;
  69318. property edgeMode: IJSSVGAnimatedEnumeration read _GetedgeMode;
  69319. property kernelUnitLengthX: IJSSVGAnimatedNumber read _GetkernelUnitLengthX;
  69320. property kernelUnitLengthY: IJSSVGAnimatedNumber read _GetkernelUnitLengthY;
  69321. property preserveAlpha: IJSSVGAnimatedBoolean read _GetpreserveAlpha;
  69322. property x: IJSSVGAnimatedLength read _Getx;
  69323. property y: IJSSVGAnimatedLength read _Gety;
  69324. property width: IJSSVGAnimatedLength read _Getwidth;
  69325. property height: IJSSVGAnimatedLength read _Getheight;
  69326. property result: IJSSVGAnimatedString read _Getresult;
  69327. end;
  69328. { --------------------------------------------------------------------
  69329. TJSSVGFEDiffuseLightingElement
  69330. --------------------------------------------------------------------}
  69331. IJSSVGFEDiffuseLightingElement = interface(IJSSVGElement)
  69332. ['{64C69F55-CAF8-378A-A8C8-32FC3A95F8C8}']
  69333. function _Getin1: IJSSVGAnimatedString;
  69334. function _GetsurfaceScale: IJSSVGAnimatedNumber;
  69335. function _GetdiffuseConstant: IJSSVGAnimatedNumber;
  69336. function _GetkernelUnitLengthX: IJSSVGAnimatedNumber;
  69337. function _GetkernelUnitLengthY: IJSSVGAnimatedNumber;
  69338. function _Getx: IJSSVGAnimatedLength;
  69339. function _Gety: IJSSVGAnimatedLength;
  69340. function _Getwidth: IJSSVGAnimatedLength;
  69341. function _Getheight: IJSSVGAnimatedLength;
  69342. function _Getresult: IJSSVGAnimatedString;
  69343. property in1: IJSSVGAnimatedString read _Getin1;
  69344. property surfaceScale: IJSSVGAnimatedNumber read _GetsurfaceScale;
  69345. property diffuseConstant: IJSSVGAnimatedNumber read _GetdiffuseConstant;
  69346. property kernelUnitLengthX: IJSSVGAnimatedNumber read _GetkernelUnitLengthX;
  69347. property kernelUnitLengthY: IJSSVGAnimatedNumber read _GetkernelUnitLengthY;
  69348. property x: IJSSVGAnimatedLength read _Getx;
  69349. property y: IJSSVGAnimatedLength read _Gety;
  69350. property width: IJSSVGAnimatedLength read _Getwidth;
  69351. property height: IJSSVGAnimatedLength read _Getheight;
  69352. property result: IJSSVGAnimatedString read _Getresult;
  69353. end;
  69354. TJSSVGFEDiffuseLightingElement = class(TJSSVGElement,IJSSVGFEDiffuseLightingElement)
  69355. Protected
  69356. function _Getin1: IJSSVGAnimatedString;
  69357. function _GetsurfaceScale: IJSSVGAnimatedNumber;
  69358. function _GetdiffuseConstant: IJSSVGAnimatedNumber;
  69359. function _GetkernelUnitLengthX: IJSSVGAnimatedNumber;
  69360. function _GetkernelUnitLengthY: IJSSVGAnimatedNumber;
  69361. function _Getx: IJSSVGAnimatedLength;
  69362. function _Gety: IJSSVGAnimatedLength;
  69363. function _Getwidth: IJSSVGAnimatedLength;
  69364. function _Getheight: IJSSVGAnimatedLength;
  69365. function _Getresult: IJSSVGAnimatedString;
  69366. Public
  69367. class function JSClassName: UnicodeString; override;
  69368. class function Cast(const Intf: IJSObject): IJSSVGFEDiffuseLightingElement;
  69369. property in1: IJSSVGAnimatedString read _Getin1;
  69370. property surfaceScale: IJSSVGAnimatedNumber read _GetsurfaceScale;
  69371. property diffuseConstant: IJSSVGAnimatedNumber read _GetdiffuseConstant;
  69372. property kernelUnitLengthX: IJSSVGAnimatedNumber read _GetkernelUnitLengthX;
  69373. property kernelUnitLengthY: IJSSVGAnimatedNumber read _GetkernelUnitLengthY;
  69374. property x: IJSSVGAnimatedLength read _Getx;
  69375. property y: IJSSVGAnimatedLength read _Gety;
  69376. property width: IJSSVGAnimatedLength read _Getwidth;
  69377. property height: IJSSVGAnimatedLength read _Getheight;
  69378. property result: IJSSVGAnimatedString read _Getresult;
  69379. end;
  69380. { --------------------------------------------------------------------
  69381. TJSSVGFEDisplacementMapElement
  69382. --------------------------------------------------------------------}
  69383. IJSSVGFEDisplacementMapElement = interface(IJSSVGElement)
  69384. ['{CAE55E19-E0F1-301C-8E00-023668818FCB}']
  69385. function _Getin1: IJSSVGAnimatedString;
  69386. function _Getin2: IJSSVGAnimatedString;
  69387. function _Getscale: IJSSVGAnimatedNumber;
  69388. function _GetxChannelSelector: IJSSVGAnimatedEnumeration;
  69389. function _GetyChannelSelector: IJSSVGAnimatedEnumeration;
  69390. function _Getx: IJSSVGAnimatedLength;
  69391. function _Gety: IJSSVGAnimatedLength;
  69392. function _Getwidth: IJSSVGAnimatedLength;
  69393. function _Getheight: IJSSVGAnimatedLength;
  69394. function _Getresult: IJSSVGAnimatedString;
  69395. property in1: IJSSVGAnimatedString read _Getin1;
  69396. property in2: IJSSVGAnimatedString read _Getin2;
  69397. property scale: IJSSVGAnimatedNumber read _Getscale;
  69398. property xChannelSelector: IJSSVGAnimatedEnumeration read _GetxChannelSelector;
  69399. property yChannelSelector: IJSSVGAnimatedEnumeration read _GetyChannelSelector;
  69400. property x: IJSSVGAnimatedLength read _Getx;
  69401. property y: IJSSVGAnimatedLength read _Gety;
  69402. property width: IJSSVGAnimatedLength read _Getwidth;
  69403. property height: IJSSVGAnimatedLength read _Getheight;
  69404. property result: IJSSVGAnimatedString read _Getresult;
  69405. end;
  69406. TJSSVGFEDisplacementMapElement = class(TJSSVGElement,IJSSVGFEDisplacementMapElement)
  69407. Protected
  69408. function _Getin1: IJSSVGAnimatedString;
  69409. function _Getin2: IJSSVGAnimatedString;
  69410. function _Getscale: IJSSVGAnimatedNumber;
  69411. function _GetxChannelSelector: IJSSVGAnimatedEnumeration;
  69412. function _GetyChannelSelector: IJSSVGAnimatedEnumeration;
  69413. function _Getx: IJSSVGAnimatedLength;
  69414. function _Gety: IJSSVGAnimatedLength;
  69415. function _Getwidth: IJSSVGAnimatedLength;
  69416. function _Getheight: IJSSVGAnimatedLength;
  69417. function _Getresult: IJSSVGAnimatedString;
  69418. Public
  69419. Const
  69420. SVG_CHANNEL_UNKNOWN = 0;
  69421. SVG_CHANNEL_R = 1;
  69422. SVG_CHANNEL_G = 2;
  69423. SVG_CHANNEL_B = 3;
  69424. SVG_CHANNEL_A = 4;
  69425. Public
  69426. class function JSClassName: UnicodeString; override;
  69427. class function Cast(const Intf: IJSObject): IJSSVGFEDisplacementMapElement;
  69428. property in1: IJSSVGAnimatedString read _Getin1;
  69429. property in2: IJSSVGAnimatedString read _Getin2;
  69430. property scale: IJSSVGAnimatedNumber read _Getscale;
  69431. property xChannelSelector: IJSSVGAnimatedEnumeration read _GetxChannelSelector;
  69432. property yChannelSelector: IJSSVGAnimatedEnumeration read _GetyChannelSelector;
  69433. property x: IJSSVGAnimatedLength read _Getx;
  69434. property y: IJSSVGAnimatedLength read _Gety;
  69435. property width: IJSSVGAnimatedLength read _Getwidth;
  69436. property height: IJSSVGAnimatedLength read _Getheight;
  69437. property result: IJSSVGAnimatedString read _Getresult;
  69438. end;
  69439. { --------------------------------------------------------------------
  69440. TJSSVGFEDistantLightElement
  69441. --------------------------------------------------------------------}
  69442. IJSSVGFEDistantLightElement = interface(IJSSVGElement)
  69443. ['{ED5AB932-09D3-3E26-9A02-B4C51121A70F}']
  69444. function _Getazimuth: IJSSVGAnimatedNumber;
  69445. function _Getelevation: IJSSVGAnimatedNumber;
  69446. property azimuth: IJSSVGAnimatedNumber read _Getazimuth;
  69447. property elevation: IJSSVGAnimatedNumber read _Getelevation;
  69448. end;
  69449. TJSSVGFEDistantLightElement = class(TJSSVGElement,IJSSVGFEDistantLightElement)
  69450. Protected
  69451. function _Getazimuth: IJSSVGAnimatedNumber;
  69452. function _Getelevation: IJSSVGAnimatedNumber;
  69453. Public
  69454. class function JSClassName: UnicodeString; override;
  69455. class function Cast(const Intf: IJSObject): IJSSVGFEDistantLightElement;
  69456. property azimuth: IJSSVGAnimatedNumber read _Getazimuth;
  69457. property elevation: IJSSVGAnimatedNumber read _Getelevation;
  69458. end;
  69459. { --------------------------------------------------------------------
  69460. TJSSVGFEDropShadowElement
  69461. --------------------------------------------------------------------}
  69462. IJSSVGFEDropShadowElement = interface(IJSSVGElement)
  69463. ['{902A8271-761F-33EA-BAFD-36FC51052AFF}']
  69464. function _Getin1: IJSSVGAnimatedString;
  69465. function _Getdx: IJSSVGAnimatedNumber;
  69466. function _Getdy: IJSSVGAnimatedNumber;
  69467. function _GetstdDeviationX: IJSSVGAnimatedNumber;
  69468. function _GetstdDeviationY: IJSSVGAnimatedNumber;
  69469. function _Getx: IJSSVGAnimatedLength;
  69470. function _Gety: IJSSVGAnimatedLength;
  69471. function _Getwidth: IJSSVGAnimatedLength;
  69472. function _Getheight: IJSSVGAnimatedLength;
  69473. function _Getresult: IJSSVGAnimatedString;
  69474. procedure setStdDeviation(aStdDeviationX: Single; aStdDeviationY: Single);
  69475. property in1: IJSSVGAnimatedString read _Getin1;
  69476. property dx: IJSSVGAnimatedNumber read _Getdx;
  69477. property dy: IJSSVGAnimatedNumber read _Getdy;
  69478. property stdDeviationX: IJSSVGAnimatedNumber read _GetstdDeviationX;
  69479. property stdDeviationY: IJSSVGAnimatedNumber read _GetstdDeviationY;
  69480. property x: IJSSVGAnimatedLength read _Getx;
  69481. property y: IJSSVGAnimatedLength read _Gety;
  69482. property width: IJSSVGAnimatedLength read _Getwidth;
  69483. property height: IJSSVGAnimatedLength read _Getheight;
  69484. property result: IJSSVGAnimatedString read _Getresult;
  69485. end;
  69486. TJSSVGFEDropShadowElement = class(TJSSVGElement,IJSSVGFEDropShadowElement)
  69487. Protected
  69488. function _Getin1: IJSSVGAnimatedString;
  69489. function _Getdx: IJSSVGAnimatedNumber;
  69490. function _Getdy: IJSSVGAnimatedNumber;
  69491. function _GetstdDeviationX: IJSSVGAnimatedNumber;
  69492. function _GetstdDeviationY: IJSSVGAnimatedNumber;
  69493. function _Getx: IJSSVGAnimatedLength;
  69494. function _Gety: IJSSVGAnimatedLength;
  69495. function _Getwidth: IJSSVGAnimatedLength;
  69496. function _Getheight: IJSSVGAnimatedLength;
  69497. function _Getresult: IJSSVGAnimatedString;
  69498. Public
  69499. procedure setStdDeviation(aStdDeviationX: Single; aStdDeviationY: Single); overload;
  69500. class function JSClassName: UnicodeString; override;
  69501. class function Cast(const Intf: IJSObject): IJSSVGFEDropShadowElement;
  69502. property in1: IJSSVGAnimatedString read _Getin1;
  69503. property dx: IJSSVGAnimatedNumber read _Getdx;
  69504. property dy: IJSSVGAnimatedNumber read _Getdy;
  69505. property stdDeviationX: IJSSVGAnimatedNumber read _GetstdDeviationX;
  69506. property stdDeviationY: IJSSVGAnimatedNumber read _GetstdDeviationY;
  69507. property x: IJSSVGAnimatedLength read _Getx;
  69508. property y: IJSSVGAnimatedLength read _Gety;
  69509. property width: IJSSVGAnimatedLength read _Getwidth;
  69510. property height: IJSSVGAnimatedLength read _Getheight;
  69511. property result: IJSSVGAnimatedString read _Getresult;
  69512. end;
  69513. { --------------------------------------------------------------------
  69514. TJSSVGFEFloodElement
  69515. --------------------------------------------------------------------}
  69516. IJSSVGFEFloodElement = interface(IJSSVGElement)
  69517. ['{2D459D1A-FCB8-33A4-9A70-FFC2F4915531}']
  69518. function _Getx: IJSSVGAnimatedLength;
  69519. function _Gety: IJSSVGAnimatedLength;
  69520. function _Getwidth: IJSSVGAnimatedLength;
  69521. function _Getheight: IJSSVGAnimatedLength;
  69522. function _Getresult: IJSSVGAnimatedString;
  69523. property x: IJSSVGAnimatedLength read _Getx;
  69524. property y: IJSSVGAnimatedLength read _Gety;
  69525. property width: IJSSVGAnimatedLength read _Getwidth;
  69526. property height: IJSSVGAnimatedLength read _Getheight;
  69527. property result: IJSSVGAnimatedString read _Getresult;
  69528. end;
  69529. TJSSVGFEFloodElement = class(TJSSVGElement,IJSSVGFEFloodElement)
  69530. Protected
  69531. function _Getx: IJSSVGAnimatedLength;
  69532. function _Gety: IJSSVGAnimatedLength;
  69533. function _Getwidth: IJSSVGAnimatedLength;
  69534. function _Getheight: IJSSVGAnimatedLength;
  69535. function _Getresult: IJSSVGAnimatedString;
  69536. Public
  69537. class function JSClassName: UnicodeString; override;
  69538. class function Cast(const Intf: IJSObject): IJSSVGFEFloodElement;
  69539. property x: IJSSVGAnimatedLength read _Getx;
  69540. property y: IJSSVGAnimatedLength read _Gety;
  69541. property width: IJSSVGAnimatedLength read _Getwidth;
  69542. property height: IJSSVGAnimatedLength read _Getheight;
  69543. property result: IJSSVGAnimatedString read _Getresult;
  69544. end;
  69545. { --------------------------------------------------------------------
  69546. TJSSVGFEGaussianBlurElement
  69547. --------------------------------------------------------------------}
  69548. IJSSVGFEGaussianBlurElement = interface(IJSSVGElement)
  69549. ['{DA1AE0D2-3174-3121-928A-BBDE5E9C2523}']
  69550. function _Getin1: IJSSVGAnimatedString;
  69551. function _GetstdDeviationX: IJSSVGAnimatedNumber;
  69552. function _GetstdDeviationY: IJSSVGAnimatedNumber;
  69553. function _Getx: IJSSVGAnimatedLength;
  69554. function _Gety: IJSSVGAnimatedLength;
  69555. function _Getwidth: IJSSVGAnimatedLength;
  69556. function _Getheight: IJSSVGAnimatedLength;
  69557. function _Getresult: IJSSVGAnimatedString;
  69558. procedure setStdDeviation(aStdDeviationX: Single; aStdDeviationY: Single);
  69559. property in1: IJSSVGAnimatedString read _Getin1;
  69560. property stdDeviationX: IJSSVGAnimatedNumber read _GetstdDeviationX;
  69561. property stdDeviationY: IJSSVGAnimatedNumber read _GetstdDeviationY;
  69562. property x: IJSSVGAnimatedLength read _Getx;
  69563. property y: IJSSVGAnimatedLength read _Gety;
  69564. property width: IJSSVGAnimatedLength read _Getwidth;
  69565. property height: IJSSVGAnimatedLength read _Getheight;
  69566. property result: IJSSVGAnimatedString read _Getresult;
  69567. end;
  69568. TJSSVGFEGaussianBlurElement = class(TJSSVGElement,IJSSVGFEGaussianBlurElement)
  69569. Protected
  69570. function _Getin1: IJSSVGAnimatedString;
  69571. function _GetstdDeviationX: IJSSVGAnimatedNumber;
  69572. function _GetstdDeviationY: IJSSVGAnimatedNumber;
  69573. function _Getx: IJSSVGAnimatedLength;
  69574. function _Gety: IJSSVGAnimatedLength;
  69575. function _Getwidth: IJSSVGAnimatedLength;
  69576. function _Getheight: IJSSVGAnimatedLength;
  69577. function _Getresult: IJSSVGAnimatedString;
  69578. Public
  69579. procedure setStdDeviation(aStdDeviationX: Single; aStdDeviationY: Single); overload;
  69580. class function JSClassName: UnicodeString; override;
  69581. class function Cast(const Intf: IJSObject): IJSSVGFEGaussianBlurElement;
  69582. property in1: IJSSVGAnimatedString read _Getin1;
  69583. property stdDeviationX: IJSSVGAnimatedNumber read _GetstdDeviationX;
  69584. property stdDeviationY: IJSSVGAnimatedNumber read _GetstdDeviationY;
  69585. property x: IJSSVGAnimatedLength read _Getx;
  69586. property y: IJSSVGAnimatedLength read _Gety;
  69587. property width: IJSSVGAnimatedLength read _Getwidth;
  69588. property height: IJSSVGAnimatedLength read _Getheight;
  69589. property result: IJSSVGAnimatedString read _Getresult;
  69590. end;
  69591. { --------------------------------------------------------------------
  69592. TJSSVGFEImageElement
  69593. --------------------------------------------------------------------}
  69594. IJSSVGFEImageElement = interface(IJSSVGElement)
  69595. ['{2726B8F5-1BC3-318D-9A11-8BFC4612C1F3}']
  69596. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  69597. function _GetcrossOrigin: UnicodeString;
  69598. function _Getx: IJSSVGAnimatedLength;
  69599. function _Gety: IJSSVGAnimatedLength;
  69600. function _Getwidth: IJSSVGAnimatedLength;
  69601. function _Getheight: IJSSVGAnimatedLength;
  69602. function _Getresult: IJSSVGAnimatedString;
  69603. function _Gethref: IJSSVGAnimatedString;
  69604. procedure _SetcrossOrigin(const aValue: UnicodeString);
  69605. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  69606. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  69607. property x: IJSSVGAnimatedLength read _Getx;
  69608. property y: IJSSVGAnimatedLength read _Gety;
  69609. property width: IJSSVGAnimatedLength read _Getwidth;
  69610. property height: IJSSVGAnimatedLength read _Getheight;
  69611. property result: IJSSVGAnimatedString read _Getresult;
  69612. property href: IJSSVGAnimatedString read _Gethref;
  69613. end;
  69614. TJSSVGFEImageElement = class(TJSSVGElement,IJSSVGFEImageElement)
  69615. Protected
  69616. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  69617. function _GetcrossOrigin: UnicodeString;
  69618. function _Getx: IJSSVGAnimatedLength;
  69619. function _Gety: IJSSVGAnimatedLength;
  69620. function _Getwidth: IJSSVGAnimatedLength;
  69621. function _Getheight: IJSSVGAnimatedLength;
  69622. function _Getresult: IJSSVGAnimatedString;
  69623. function _Gethref: IJSSVGAnimatedString;
  69624. procedure _SetcrossOrigin(const aValue: UnicodeString);
  69625. Public
  69626. class function JSClassName: UnicodeString; override;
  69627. class function Cast(const Intf: IJSObject): IJSSVGFEImageElement;
  69628. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  69629. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  69630. property x: IJSSVGAnimatedLength read _Getx;
  69631. property y: IJSSVGAnimatedLength read _Gety;
  69632. property width: IJSSVGAnimatedLength read _Getwidth;
  69633. property height: IJSSVGAnimatedLength read _Getheight;
  69634. property result: IJSSVGAnimatedString read _Getresult;
  69635. property href: IJSSVGAnimatedString read _Gethref;
  69636. end;
  69637. { --------------------------------------------------------------------
  69638. TJSSVGFEMergeElement
  69639. --------------------------------------------------------------------}
  69640. IJSSVGFEMergeElement = interface(IJSSVGElement)
  69641. ['{2D459D1A-FEED-3A23-9A70-FFC2F4915531}']
  69642. function _Getx: IJSSVGAnimatedLength;
  69643. function _Gety: IJSSVGAnimatedLength;
  69644. function _Getwidth: IJSSVGAnimatedLength;
  69645. function _Getheight: IJSSVGAnimatedLength;
  69646. function _Getresult: IJSSVGAnimatedString;
  69647. property x: IJSSVGAnimatedLength read _Getx;
  69648. property y: IJSSVGAnimatedLength read _Gety;
  69649. property width: IJSSVGAnimatedLength read _Getwidth;
  69650. property height: IJSSVGAnimatedLength read _Getheight;
  69651. property result: IJSSVGAnimatedString read _Getresult;
  69652. end;
  69653. TJSSVGFEMergeElement = class(TJSSVGElement,IJSSVGFEMergeElement)
  69654. Protected
  69655. function _Getx: IJSSVGAnimatedLength;
  69656. function _Gety: IJSSVGAnimatedLength;
  69657. function _Getwidth: IJSSVGAnimatedLength;
  69658. function _Getheight: IJSSVGAnimatedLength;
  69659. function _Getresult: IJSSVGAnimatedString;
  69660. Public
  69661. class function JSClassName: UnicodeString; override;
  69662. class function Cast(const Intf: IJSObject): IJSSVGFEMergeElement;
  69663. property x: IJSSVGAnimatedLength read _Getx;
  69664. property y: IJSSVGAnimatedLength read _Gety;
  69665. property width: IJSSVGAnimatedLength read _Getwidth;
  69666. property height: IJSSVGAnimatedLength read _Getheight;
  69667. property result: IJSSVGAnimatedString read _Getresult;
  69668. end;
  69669. { --------------------------------------------------------------------
  69670. TJSSVGFEMergeNodeElement
  69671. --------------------------------------------------------------------}
  69672. IJSSVGFEMergeNodeElement = interface(IJSSVGElement)
  69673. ['{B6A3281B-BD1E-335D-BDC1-B502D0B08164}']
  69674. function _Getin1: IJSSVGAnimatedString;
  69675. property in1: IJSSVGAnimatedString read _Getin1;
  69676. end;
  69677. TJSSVGFEMergeNodeElement = class(TJSSVGElement,IJSSVGFEMergeNodeElement)
  69678. Protected
  69679. function _Getin1: IJSSVGAnimatedString;
  69680. Public
  69681. class function JSClassName: UnicodeString; override;
  69682. class function Cast(const Intf: IJSObject): IJSSVGFEMergeNodeElement;
  69683. property in1: IJSSVGAnimatedString read _Getin1;
  69684. end;
  69685. { --------------------------------------------------------------------
  69686. TJSSVGFEMorphologyElement
  69687. --------------------------------------------------------------------}
  69688. IJSSVGFEMorphologyElement = interface(IJSSVGElement)
  69689. ['{A0F92B98-EA27-36E2-994F-15F9BF6AA8B7}']
  69690. function _Getin1: IJSSVGAnimatedString;
  69691. function _Getoperator_: IJSSVGAnimatedEnumeration;
  69692. function _GetradiusX: IJSSVGAnimatedNumber;
  69693. function _GetradiusY: IJSSVGAnimatedNumber;
  69694. function _Getx: IJSSVGAnimatedLength;
  69695. function _Gety: IJSSVGAnimatedLength;
  69696. function _Getwidth: IJSSVGAnimatedLength;
  69697. function _Getheight: IJSSVGAnimatedLength;
  69698. function _Getresult: IJSSVGAnimatedString;
  69699. property in1: IJSSVGAnimatedString read _Getin1;
  69700. property operator_: IJSSVGAnimatedEnumeration read _Getoperator_;
  69701. property radiusX: IJSSVGAnimatedNumber read _GetradiusX;
  69702. property radiusY: IJSSVGAnimatedNumber read _GetradiusY;
  69703. property x: IJSSVGAnimatedLength read _Getx;
  69704. property y: IJSSVGAnimatedLength read _Gety;
  69705. property width: IJSSVGAnimatedLength read _Getwidth;
  69706. property height: IJSSVGAnimatedLength read _Getheight;
  69707. property result: IJSSVGAnimatedString read _Getresult;
  69708. end;
  69709. TJSSVGFEMorphologyElement = class(TJSSVGElement,IJSSVGFEMorphologyElement)
  69710. Protected
  69711. function _Getin1: IJSSVGAnimatedString;
  69712. function _Getoperator_: IJSSVGAnimatedEnumeration;
  69713. function _GetradiusX: IJSSVGAnimatedNumber;
  69714. function _GetradiusY: IJSSVGAnimatedNumber;
  69715. function _Getx: IJSSVGAnimatedLength;
  69716. function _Gety: IJSSVGAnimatedLength;
  69717. function _Getwidth: IJSSVGAnimatedLength;
  69718. function _Getheight: IJSSVGAnimatedLength;
  69719. function _Getresult: IJSSVGAnimatedString;
  69720. Public
  69721. Const
  69722. SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0;
  69723. SVG_MORPHOLOGY_OPERATOR_ERODE = 1;
  69724. SVG_MORPHOLOGY_OPERATOR_DILATE = 2;
  69725. Public
  69726. class function JSClassName: UnicodeString; override;
  69727. class function Cast(const Intf: IJSObject): IJSSVGFEMorphologyElement;
  69728. property in1: IJSSVGAnimatedString read _Getin1;
  69729. property operator_: IJSSVGAnimatedEnumeration read _Getoperator_;
  69730. property radiusX: IJSSVGAnimatedNumber read _GetradiusX;
  69731. property radiusY: IJSSVGAnimatedNumber read _GetradiusY;
  69732. property x: IJSSVGAnimatedLength read _Getx;
  69733. property y: IJSSVGAnimatedLength read _Gety;
  69734. property width: IJSSVGAnimatedLength read _Getwidth;
  69735. property height: IJSSVGAnimatedLength read _Getheight;
  69736. property result: IJSSVGAnimatedString read _Getresult;
  69737. end;
  69738. { --------------------------------------------------------------------
  69739. TJSSVGFEOffsetElement
  69740. --------------------------------------------------------------------}
  69741. IJSSVGFEOffsetElement = interface(IJSSVGElement)
  69742. ['{B651393A-8CB9-34CE-AD14-D59A61CE702A}']
  69743. function _Getin1: IJSSVGAnimatedString;
  69744. function _Getdx: IJSSVGAnimatedNumber;
  69745. function _Getdy: IJSSVGAnimatedNumber;
  69746. function _Getx: IJSSVGAnimatedLength;
  69747. function _Gety: IJSSVGAnimatedLength;
  69748. function _Getwidth: IJSSVGAnimatedLength;
  69749. function _Getheight: IJSSVGAnimatedLength;
  69750. function _Getresult: IJSSVGAnimatedString;
  69751. property in1: IJSSVGAnimatedString read _Getin1;
  69752. property dx: IJSSVGAnimatedNumber read _Getdx;
  69753. property dy: IJSSVGAnimatedNumber read _Getdy;
  69754. property x: IJSSVGAnimatedLength read _Getx;
  69755. property y: IJSSVGAnimatedLength read _Gety;
  69756. property width: IJSSVGAnimatedLength read _Getwidth;
  69757. property height: IJSSVGAnimatedLength read _Getheight;
  69758. property result: IJSSVGAnimatedString read _Getresult;
  69759. end;
  69760. TJSSVGFEOffsetElement = class(TJSSVGElement,IJSSVGFEOffsetElement)
  69761. Protected
  69762. function _Getin1: IJSSVGAnimatedString;
  69763. function _Getdx: IJSSVGAnimatedNumber;
  69764. function _Getdy: IJSSVGAnimatedNumber;
  69765. function _Getx: IJSSVGAnimatedLength;
  69766. function _Gety: IJSSVGAnimatedLength;
  69767. function _Getwidth: IJSSVGAnimatedLength;
  69768. function _Getheight: IJSSVGAnimatedLength;
  69769. function _Getresult: IJSSVGAnimatedString;
  69770. Public
  69771. class function JSClassName: UnicodeString; override;
  69772. class function Cast(const Intf: IJSObject): IJSSVGFEOffsetElement;
  69773. property in1: IJSSVGAnimatedString read _Getin1;
  69774. property dx: IJSSVGAnimatedNumber read _Getdx;
  69775. property dy: IJSSVGAnimatedNumber read _Getdy;
  69776. property x: IJSSVGAnimatedLength read _Getx;
  69777. property y: IJSSVGAnimatedLength read _Gety;
  69778. property width: IJSSVGAnimatedLength read _Getwidth;
  69779. property height: IJSSVGAnimatedLength read _Getheight;
  69780. property result: IJSSVGAnimatedString read _Getresult;
  69781. end;
  69782. { --------------------------------------------------------------------
  69783. TJSSVGFEPointLightElement
  69784. --------------------------------------------------------------------}
  69785. IJSSVGFEPointLightElement = interface(IJSSVGElement)
  69786. ['{5DF872F1-4C70-3907-AACA-A7DD81FA8E8D}']
  69787. function _Getx: IJSSVGAnimatedNumber;
  69788. function _Gety: IJSSVGAnimatedNumber;
  69789. function _Getz: IJSSVGAnimatedNumber;
  69790. property x: IJSSVGAnimatedNumber read _Getx;
  69791. property y: IJSSVGAnimatedNumber read _Gety;
  69792. property z: IJSSVGAnimatedNumber read _Getz;
  69793. end;
  69794. TJSSVGFEPointLightElement = class(TJSSVGElement,IJSSVGFEPointLightElement)
  69795. Protected
  69796. function _Getx: IJSSVGAnimatedNumber;
  69797. function _Gety: IJSSVGAnimatedNumber;
  69798. function _Getz: IJSSVGAnimatedNumber;
  69799. Public
  69800. class function JSClassName: UnicodeString; override;
  69801. class function Cast(const Intf: IJSObject): IJSSVGFEPointLightElement;
  69802. property x: IJSSVGAnimatedNumber read _Getx;
  69803. property y: IJSSVGAnimatedNumber read _Gety;
  69804. property z: IJSSVGAnimatedNumber read _Getz;
  69805. end;
  69806. { --------------------------------------------------------------------
  69807. TJSSVGFESpecularLightingElement
  69808. --------------------------------------------------------------------}
  69809. IJSSVGFESpecularLightingElement = interface(IJSSVGElement)
  69810. ['{E1011916-452D-3599-8141-D978A0E5467B}']
  69811. function _Getin1: IJSSVGAnimatedString;
  69812. function _GetsurfaceScale: IJSSVGAnimatedNumber;
  69813. function _GetspecularConstant: IJSSVGAnimatedNumber;
  69814. function _GetspecularExponent: IJSSVGAnimatedNumber;
  69815. function _GetkernelUnitLengthX: IJSSVGAnimatedNumber;
  69816. function _GetkernelUnitLengthY: IJSSVGAnimatedNumber;
  69817. function _Getx: IJSSVGAnimatedLength;
  69818. function _Gety: IJSSVGAnimatedLength;
  69819. function _Getwidth: IJSSVGAnimatedLength;
  69820. function _Getheight: IJSSVGAnimatedLength;
  69821. function _Getresult: IJSSVGAnimatedString;
  69822. property in1: IJSSVGAnimatedString read _Getin1;
  69823. property surfaceScale: IJSSVGAnimatedNumber read _GetsurfaceScale;
  69824. property specularConstant: IJSSVGAnimatedNumber read _GetspecularConstant;
  69825. property specularExponent: IJSSVGAnimatedNumber read _GetspecularExponent;
  69826. property kernelUnitLengthX: IJSSVGAnimatedNumber read _GetkernelUnitLengthX;
  69827. property kernelUnitLengthY: IJSSVGAnimatedNumber read _GetkernelUnitLengthY;
  69828. property x: IJSSVGAnimatedLength read _Getx;
  69829. property y: IJSSVGAnimatedLength read _Gety;
  69830. property width: IJSSVGAnimatedLength read _Getwidth;
  69831. property height: IJSSVGAnimatedLength read _Getheight;
  69832. property result: IJSSVGAnimatedString read _Getresult;
  69833. end;
  69834. TJSSVGFESpecularLightingElement = class(TJSSVGElement,IJSSVGFESpecularLightingElement)
  69835. Protected
  69836. function _Getin1: IJSSVGAnimatedString;
  69837. function _GetsurfaceScale: IJSSVGAnimatedNumber;
  69838. function _GetspecularConstant: IJSSVGAnimatedNumber;
  69839. function _GetspecularExponent: IJSSVGAnimatedNumber;
  69840. function _GetkernelUnitLengthX: IJSSVGAnimatedNumber;
  69841. function _GetkernelUnitLengthY: IJSSVGAnimatedNumber;
  69842. function _Getx: IJSSVGAnimatedLength;
  69843. function _Gety: IJSSVGAnimatedLength;
  69844. function _Getwidth: IJSSVGAnimatedLength;
  69845. function _Getheight: IJSSVGAnimatedLength;
  69846. function _Getresult: IJSSVGAnimatedString;
  69847. Public
  69848. class function JSClassName: UnicodeString; override;
  69849. class function Cast(const Intf: IJSObject): IJSSVGFESpecularLightingElement;
  69850. property in1: IJSSVGAnimatedString read _Getin1;
  69851. property surfaceScale: IJSSVGAnimatedNumber read _GetsurfaceScale;
  69852. property specularConstant: IJSSVGAnimatedNumber read _GetspecularConstant;
  69853. property specularExponent: IJSSVGAnimatedNumber read _GetspecularExponent;
  69854. property kernelUnitLengthX: IJSSVGAnimatedNumber read _GetkernelUnitLengthX;
  69855. property kernelUnitLengthY: IJSSVGAnimatedNumber read _GetkernelUnitLengthY;
  69856. property x: IJSSVGAnimatedLength read _Getx;
  69857. property y: IJSSVGAnimatedLength read _Gety;
  69858. property width: IJSSVGAnimatedLength read _Getwidth;
  69859. property height: IJSSVGAnimatedLength read _Getheight;
  69860. property result: IJSSVGAnimatedString read _Getresult;
  69861. end;
  69862. { --------------------------------------------------------------------
  69863. TJSSVGFESpotLightElement
  69864. --------------------------------------------------------------------}
  69865. IJSSVGFESpotLightElement = interface(IJSSVGElement)
  69866. ['{614E2A4C-B223-3DF6-9786-D78534CCA5A1}']
  69867. function _Getx: IJSSVGAnimatedNumber;
  69868. function _Gety: IJSSVGAnimatedNumber;
  69869. function _Getz: IJSSVGAnimatedNumber;
  69870. function _GetpointsAtX: IJSSVGAnimatedNumber;
  69871. function _GetpointsAtY: IJSSVGAnimatedNumber;
  69872. function _GetpointsAtZ: IJSSVGAnimatedNumber;
  69873. function _GetspecularExponent: IJSSVGAnimatedNumber;
  69874. function _GetlimitingConeAngle: IJSSVGAnimatedNumber;
  69875. property x: IJSSVGAnimatedNumber read _Getx;
  69876. property y: IJSSVGAnimatedNumber read _Gety;
  69877. property z: IJSSVGAnimatedNumber read _Getz;
  69878. property pointsAtX: IJSSVGAnimatedNumber read _GetpointsAtX;
  69879. property pointsAtY: IJSSVGAnimatedNumber read _GetpointsAtY;
  69880. property pointsAtZ: IJSSVGAnimatedNumber read _GetpointsAtZ;
  69881. property specularExponent: IJSSVGAnimatedNumber read _GetspecularExponent;
  69882. property limitingConeAngle: IJSSVGAnimatedNumber read _GetlimitingConeAngle;
  69883. end;
  69884. TJSSVGFESpotLightElement = class(TJSSVGElement,IJSSVGFESpotLightElement)
  69885. Protected
  69886. function _Getx: IJSSVGAnimatedNumber;
  69887. function _Gety: IJSSVGAnimatedNumber;
  69888. function _Getz: IJSSVGAnimatedNumber;
  69889. function _GetpointsAtX: IJSSVGAnimatedNumber;
  69890. function _GetpointsAtY: IJSSVGAnimatedNumber;
  69891. function _GetpointsAtZ: IJSSVGAnimatedNumber;
  69892. function _GetspecularExponent: IJSSVGAnimatedNumber;
  69893. function _GetlimitingConeAngle: IJSSVGAnimatedNumber;
  69894. Public
  69895. class function JSClassName: UnicodeString; override;
  69896. class function Cast(const Intf: IJSObject): IJSSVGFESpotLightElement;
  69897. property x: IJSSVGAnimatedNumber read _Getx;
  69898. property y: IJSSVGAnimatedNumber read _Gety;
  69899. property z: IJSSVGAnimatedNumber read _Getz;
  69900. property pointsAtX: IJSSVGAnimatedNumber read _GetpointsAtX;
  69901. property pointsAtY: IJSSVGAnimatedNumber read _GetpointsAtY;
  69902. property pointsAtZ: IJSSVGAnimatedNumber read _GetpointsAtZ;
  69903. property specularExponent: IJSSVGAnimatedNumber read _GetspecularExponent;
  69904. property limitingConeAngle: IJSSVGAnimatedNumber read _GetlimitingConeAngle;
  69905. end;
  69906. { --------------------------------------------------------------------
  69907. TJSSVGFETileElement
  69908. --------------------------------------------------------------------}
  69909. IJSSVGFETileElement = interface(IJSSVGElement)
  69910. ['{C0E250EF-F641-3014-9C6E-79E699CF4FF7}']
  69911. function _Getin1: IJSSVGAnimatedString;
  69912. function _Getx: IJSSVGAnimatedLength;
  69913. function _Gety: IJSSVGAnimatedLength;
  69914. function _Getwidth: IJSSVGAnimatedLength;
  69915. function _Getheight: IJSSVGAnimatedLength;
  69916. function _Getresult: IJSSVGAnimatedString;
  69917. property in1: IJSSVGAnimatedString read _Getin1;
  69918. property x: IJSSVGAnimatedLength read _Getx;
  69919. property y: IJSSVGAnimatedLength read _Gety;
  69920. property width: IJSSVGAnimatedLength read _Getwidth;
  69921. property height: IJSSVGAnimatedLength read _Getheight;
  69922. property result: IJSSVGAnimatedString read _Getresult;
  69923. end;
  69924. TJSSVGFETileElement = class(TJSSVGElement,IJSSVGFETileElement)
  69925. Protected
  69926. function _Getin1: IJSSVGAnimatedString;
  69927. function _Getx: IJSSVGAnimatedLength;
  69928. function _Gety: IJSSVGAnimatedLength;
  69929. function _Getwidth: IJSSVGAnimatedLength;
  69930. function _Getheight: IJSSVGAnimatedLength;
  69931. function _Getresult: IJSSVGAnimatedString;
  69932. Public
  69933. class function JSClassName: UnicodeString; override;
  69934. class function Cast(const Intf: IJSObject): IJSSVGFETileElement;
  69935. property in1: IJSSVGAnimatedString read _Getin1;
  69936. property x: IJSSVGAnimatedLength read _Getx;
  69937. property y: IJSSVGAnimatedLength read _Gety;
  69938. property width: IJSSVGAnimatedLength read _Getwidth;
  69939. property height: IJSSVGAnimatedLength read _Getheight;
  69940. property result: IJSSVGAnimatedString read _Getresult;
  69941. end;
  69942. { --------------------------------------------------------------------
  69943. TJSSVGFETurbulenceElement
  69944. --------------------------------------------------------------------}
  69945. IJSSVGFETurbulenceElement = interface(IJSSVGElement)
  69946. ['{FDA993FC-8BDB-3916-AE38-8865EB1A8B3E}']
  69947. function _GetbaseFrequencyX: IJSSVGAnimatedNumber;
  69948. function _GetbaseFrequencyY: IJSSVGAnimatedNumber;
  69949. function _GetnumOctaves: IJSSVGAnimatedInteger;
  69950. function _Getseed: IJSSVGAnimatedNumber;
  69951. function _GetstitchTiles: IJSSVGAnimatedEnumeration;
  69952. function _Gettype_: IJSSVGAnimatedEnumeration;
  69953. function _Getx: IJSSVGAnimatedLength;
  69954. function _Gety: IJSSVGAnimatedLength;
  69955. function _Getwidth: IJSSVGAnimatedLength;
  69956. function _Getheight: IJSSVGAnimatedLength;
  69957. function _Getresult: IJSSVGAnimatedString;
  69958. property baseFrequencyX: IJSSVGAnimatedNumber read _GetbaseFrequencyX;
  69959. property baseFrequencyY: IJSSVGAnimatedNumber read _GetbaseFrequencyY;
  69960. property numOctaves: IJSSVGAnimatedInteger read _GetnumOctaves;
  69961. property seed: IJSSVGAnimatedNumber read _Getseed;
  69962. property stitchTiles: IJSSVGAnimatedEnumeration read _GetstitchTiles;
  69963. property type_: IJSSVGAnimatedEnumeration read _Gettype_;
  69964. property x: IJSSVGAnimatedLength read _Getx;
  69965. property y: IJSSVGAnimatedLength read _Gety;
  69966. property width: IJSSVGAnimatedLength read _Getwidth;
  69967. property height: IJSSVGAnimatedLength read _Getheight;
  69968. property result: IJSSVGAnimatedString read _Getresult;
  69969. end;
  69970. TJSSVGFETurbulenceElement = class(TJSSVGElement,IJSSVGFETurbulenceElement)
  69971. Protected
  69972. function _GetbaseFrequencyX: IJSSVGAnimatedNumber;
  69973. function _GetbaseFrequencyY: IJSSVGAnimatedNumber;
  69974. function _GetnumOctaves: IJSSVGAnimatedInteger;
  69975. function _Getseed: IJSSVGAnimatedNumber;
  69976. function _GetstitchTiles: IJSSVGAnimatedEnumeration;
  69977. function _Gettype_: IJSSVGAnimatedEnumeration;
  69978. function _Getx: IJSSVGAnimatedLength;
  69979. function _Gety: IJSSVGAnimatedLength;
  69980. function _Getwidth: IJSSVGAnimatedLength;
  69981. function _Getheight: IJSSVGAnimatedLength;
  69982. function _Getresult: IJSSVGAnimatedString;
  69983. Public
  69984. Const
  69985. SVG_TURBULENCE_TYPE_UNKNOWN = 0;
  69986. SVG_TURBULENCE_TYPE_FRACTALNOISE = 1;
  69987. SVG_TURBULENCE_TYPE_TURBULENCE = 2;
  69988. SVG_STITCHTYPE_UNKNOWN = 0;
  69989. SVG_STITCHTYPE_STITCH = 1;
  69990. SVG_STITCHTYPE_NOSTITCH = 2;
  69991. Public
  69992. class function JSClassName: UnicodeString; override;
  69993. class function Cast(const Intf: IJSObject): IJSSVGFETurbulenceElement;
  69994. property baseFrequencyX: IJSSVGAnimatedNumber read _GetbaseFrequencyX;
  69995. property baseFrequencyY: IJSSVGAnimatedNumber read _GetbaseFrequencyY;
  69996. property numOctaves: IJSSVGAnimatedInteger read _GetnumOctaves;
  69997. property seed: IJSSVGAnimatedNumber read _Getseed;
  69998. property stitchTiles: IJSSVGAnimatedEnumeration read _GetstitchTiles;
  69999. property type_: IJSSVGAnimatedEnumeration read _Gettype_;
  70000. property x: IJSSVGAnimatedLength read _Getx;
  70001. property y: IJSSVGAnimatedLength read _Gety;
  70002. property width: IJSSVGAnimatedLength read _Getwidth;
  70003. property height: IJSSVGAnimatedLength read _Getheight;
  70004. property result: IJSSVGAnimatedString read _Getresult;
  70005. end;
  70006. { --------------------------------------------------------------------
  70007. TJSSVGFilterElement
  70008. --------------------------------------------------------------------}
  70009. IJSSVGFilterElement = interface(IJSSVGElement)
  70010. ['{65125FF9-B2FE-337E-A8D9-95D1D607542C}']
  70011. function _GetfilterUnits: IJSSVGAnimatedEnumeration;
  70012. function _GetprimitiveUnits: IJSSVGAnimatedEnumeration;
  70013. function _Getx: IJSSVGAnimatedLength;
  70014. function _Gety: IJSSVGAnimatedLength;
  70015. function _Getwidth: IJSSVGAnimatedLength;
  70016. function _Getheight: IJSSVGAnimatedLength;
  70017. function _Gethref: IJSSVGAnimatedString;
  70018. property filterUnits: IJSSVGAnimatedEnumeration read _GetfilterUnits;
  70019. property primitiveUnits: IJSSVGAnimatedEnumeration read _GetprimitiveUnits;
  70020. property x: IJSSVGAnimatedLength read _Getx;
  70021. property y: IJSSVGAnimatedLength read _Gety;
  70022. property width: IJSSVGAnimatedLength read _Getwidth;
  70023. property height: IJSSVGAnimatedLength read _Getheight;
  70024. property href: IJSSVGAnimatedString read _Gethref;
  70025. end;
  70026. TJSSVGFilterElement = class(TJSSVGElement,IJSSVGFilterElement)
  70027. Protected
  70028. function _GetfilterUnits: IJSSVGAnimatedEnumeration;
  70029. function _GetprimitiveUnits: IJSSVGAnimatedEnumeration;
  70030. function _Getx: IJSSVGAnimatedLength;
  70031. function _Gety: IJSSVGAnimatedLength;
  70032. function _Getwidth: IJSSVGAnimatedLength;
  70033. function _Getheight: IJSSVGAnimatedLength;
  70034. function _Gethref: IJSSVGAnimatedString;
  70035. Public
  70036. class function JSClassName: UnicodeString; override;
  70037. class function Cast(const Intf: IJSObject): IJSSVGFilterElement;
  70038. property filterUnits: IJSSVGAnimatedEnumeration read _GetfilterUnits;
  70039. property primitiveUnits: IJSSVGAnimatedEnumeration read _GetprimitiveUnits;
  70040. property x: IJSSVGAnimatedLength read _Getx;
  70041. property y: IJSSVGAnimatedLength read _Gety;
  70042. property width: IJSSVGAnimatedLength read _Getwidth;
  70043. property height: IJSSVGAnimatedLength read _Getheight;
  70044. property href: IJSSVGAnimatedString read _Gethref;
  70045. end;
  70046. { --------------------------------------------------------------------
  70047. TJSSVGGradientElement
  70048. --------------------------------------------------------------------}
  70049. IJSSVGGradientElement = interface(IJSSVGElement)
  70050. ['{507B4D87-96C0-3C95-89F5-21C1188CBF99}']
  70051. function _GetgradientUnits: IJSSVGAnimatedEnumeration;
  70052. function _GetgradientTransform: IJSSVGAnimatedTransformList;
  70053. function _GetspreadMethod: IJSSVGAnimatedEnumeration;
  70054. function _Gethref: IJSSVGAnimatedString;
  70055. property gradientUnits: IJSSVGAnimatedEnumeration read _GetgradientUnits;
  70056. property gradientTransform: IJSSVGAnimatedTransformList read _GetgradientTransform;
  70057. property spreadMethod: IJSSVGAnimatedEnumeration read _GetspreadMethod;
  70058. property href: IJSSVGAnimatedString read _Gethref;
  70059. end;
  70060. TJSSVGGradientElement = class(TJSSVGElement,IJSSVGGradientElement)
  70061. Protected
  70062. function _GetgradientUnits: IJSSVGAnimatedEnumeration;
  70063. function _GetgradientTransform: IJSSVGAnimatedTransformList;
  70064. function _GetspreadMethod: IJSSVGAnimatedEnumeration;
  70065. function _Gethref: IJSSVGAnimatedString;
  70066. Public
  70067. Const
  70068. SVG_SPREADMETHOD_UNKNOWN = 0;
  70069. SVG_SPREADMETHOD_PAD = 1;
  70070. SVG_SPREADMETHOD_REFLECT = 2;
  70071. SVG_SPREADMETHOD_REPEAT = 3;
  70072. Public
  70073. class function JSClassName: UnicodeString; override;
  70074. class function Cast(const Intf: IJSObject): IJSSVGGradientElement;
  70075. property gradientUnits: IJSSVGAnimatedEnumeration read _GetgradientUnits;
  70076. property gradientTransform: IJSSVGAnimatedTransformList read _GetgradientTransform;
  70077. property spreadMethod: IJSSVGAnimatedEnumeration read _GetspreadMethod;
  70078. property href: IJSSVGAnimatedString read _Gethref;
  70079. end;
  70080. { --------------------------------------------------------------------
  70081. TJSSVGGraphicsElement
  70082. --------------------------------------------------------------------}
  70083. IJSSVGGraphicsElement = interface(IJSSVGElement)
  70084. ['{7271D01F-8AD2-33C3-987D-3C997B541795}']
  70085. function _Gettransform: IJSSVGAnimatedTransformList;
  70086. function _GetnearestViewportElement: IJSSVGElement;
  70087. function _GetfarthestViewportElement: IJSSVGElement;
  70088. function _GetrequiredExtensions: IJSSVGStringList;
  70089. function _GetsystemLanguage: IJSSVGStringList;
  70090. function getBBox(const aAOptions: TJSSVGBoundingBoxOptions): IJSSVGRect;
  70091. function getBBox: IJSSVGRect;
  70092. function getCTM: IJSSVGMatrix;
  70093. function getScreenCTM: IJSSVGMatrix;
  70094. property transform: IJSSVGAnimatedTransformList read _Gettransform;
  70095. property nearestViewportElement: IJSSVGElement read _GetnearestViewportElement;
  70096. property farthestViewportElement: IJSSVGElement read _GetfarthestViewportElement;
  70097. property requiredExtensions: IJSSVGStringList read _GetrequiredExtensions;
  70098. property systemLanguage: IJSSVGStringList read _GetsystemLanguage;
  70099. end;
  70100. TJSSVGGraphicsElement = class(TJSSVGElement,IJSSVGGraphicsElement)
  70101. Protected
  70102. function _Gettransform: IJSSVGAnimatedTransformList;
  70103. function _GetnearestViewportElement: IJSSVGElement;
  70104. function _GetfarthestViewportElement: IJSSVGElement;
  70105. function _GetrequiredExtensions: IJSSVGStringList;
  70106. function _GetsystemLanguage: IJSSVGStringList;
  70107. Public
  70108. function getBBox(const aAOptions: TJSSVGBoundingBoxOptions): IJSSVGRect; overload;
  70109. function getBBox: IJSSVGRect; overload;
  70110. function getCTM: IJSSVGMatrix; overload;
  70111. function getScreenCTM: IJSSVGMatrix; overload;
  70112. class function JSClassName: UnicodeString; override;
  70113. class function Cast(const Intf: IJSObject): IJSSVGGraphicsElement;
  70114. property transform: IJSSVGAnimatedTransformList read _Gettransform;
  70115. property nearestViewportElement: IJSSVGElement read _GetnearestViewportElement;
  70116. property farthestViewportElement: IJSSVGElement read _GetfarthestViewportElement;
  70117. property requiredExtensions: IJSSVGStringList read _GetrequiredExtensions;
  70118. property systemLanguage: IJSSVGStringList read _GetsystemLanguage;
  70119. end;
  70120. { --------------------------------------------------------------------
  70121. TJSSVGMarkerElement
  70122. --------------------------------------------------------------------}
  70123. IJSSVGMarkerElement = interface(IJSSVGElement)
  70124. ['{ECA18AC6-5EA1-3D01-8758-D49D6A5D0493}']
  70125. function _GetrefX: IJSSVGAnimatedLength;
  70126. function _GetrefY: IJSSVGAnimatedLength;
  70127. function _GetmarkerUnits: IJSSVGAnimatedEnumeration;
  70128. function _GetmarkerWidth: IJSSVGAnimatedLength;
  70129. function _GetmarkerHeight: IJSSVGAnimatedLength;
  70130. function _GetorientType: IJSSVGAnimatedEnumeration;
  70131. function _GetorientAngle: IJSSVGAnimatedAngle;
  70132. function _GetviewBox: IJSSVGAnimatedRect;
  70133. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70134. procedure setOrientToAuto;
  70135. procedure setOrientToAngle(aAngle: IJSSVGAngle);
  70136. property refX: IJSSVGAnimatedLength read _GetrefX;
  70137. property refY: IJSSVGAnimatedLength read _GetrefY;
  70138. property markerUnits: IJSSVGAnimatedEnumeration read _GetmarkerUnits;
  70139. property markerWidth: IJSSVGAnimatedLength read _GetmarkerWidth;
  70140. property markerHeight: IJSSVGAnimatedLength read _GetmarkerHeight;
  70141. property orientType: IJSSVGAnimatedEnumeration read _GetorientType;
  70142. property orientAngle: IJSSVGAnimatedAngle read _GetorientAngle;
  70143. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  70144. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  70145. end;
  70146. TJSSVGMarkerElement = class(TJSSVGElement,IJSSVGMarkerElement)
  70147. Protected
  70148. function _GetrefX: IJSSVGAnimatedLength;
  70149. function _GetrefY: IJSSVGAnimatedLength;
  70150. function _GetmarkerUnits: IJSSVGAnimatedEnumeration;
  70151. function _GetmarkerWidth: IJSSVGAnimatedLength;
  70152. function _GetmarkerHeight: IJSSVGAnimatedLength;
  70153. function _GetorientType: IJSSVGAnimatedEnumeration;
  70154. function _GetorientAngle: IJSSVGAnimatedAngle;
  70155. function _GetviewBox: IJSSVGAnimatedRect;
  70156. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70157. Public
  70158. Const
  70159. SVG_MARKERUNITS_UNKNOWN = 0;
  70160. SVG_MARKERUNITS_USERSPACEONUSE = 1;
  70161. SVG_MARKERUNITS_STROKEWIDTH = 2;
  70162. SVG_MARKER_ORIENT_UNKNOWN = 0;
  70163. SVG_MARKER_ORIENT_AUTO = 1;
  70164. SVG_MARKER_ORIENT_ANGLE = 2;
  70165. SVG_MARKER_ORIENT_AUTO_START_REVERSE = 3;
  70166. Public
  70167. procedure setOrientToAuto; overload;
  70168. procedure setOrientToAngle(aAngle: IJSSVGAngle); overload;
  70169. class function JSClassName: UnicodeString; override;
  70170. class function Cast(const Intf: IJSObject): IJSSVGMarkerElement;
  70171. property refX: IJSSVGAnimatedLength read _GetrefX;
  70172. property refY: IJSSVGAnimatedLength read _GetrefY;
  70173. property markerUnits: IJSSVGAnimatedEnumeration read _GetmarkerUnits;
  70174. property markerWidth: IJSSVGAnimatedLength read _GetmarkerWidth;
  70175. property markerHeight: IJSSVGAnimatedLength read _GetmarkerHeight;
  70176. property orientType: IJSSVGAnimatedEnumeration read _GetorientType;
  70177. property orientAngle: IJSSVGAnimatedAngle read _GetorientAngle;
  70178. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  70179. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  70180. end;
  70181. { --------------------------------------------------------------------
  70182. TJSSVGMaskElement
  70183. --------------------------------------------------------------------}
  70184. IJSSVGMaskElement = interface(IJSSVGElement)
  70185. ['{AAD095AE-24F4-3AE9-9616-A8EB2D0B4F5B}']
  70186. function _GetmaskUnits: IJSSVGAnimatedEnumeration;
  70187. function _GetmaskContentUnits: IJSSVGAnimatedEnumeration;
  70188. function _Getx: IJSSVGAnimatedLength;
  70189. function _Gety: IJSSVGAnimatedLength;
  70190. function _Getwidth: IJSSVGAnimatedLength;
  70191. function _Getheight: IJSSVGAnimatedLength;
  70192. property maskUnits: IJSSVGAnimatedEnumeration read _GetmaskUnits;
  70193. property maskContentUnits: IJSSVGAnimatedEnumeration read _GetmaskContentUnits;
  70194. property x: IJSSVGAnimatedLength read _Getx;
  70195. property y: IJSSVGAnimatedLength read _Gety;
  70196. property width: IJSSVGAnimatedLength read _Getwidth;
  70197. property height: IJSSVGAnimatedLength read _Getheight;
  70198. end;
  70199. TJSSVGMaskElement = class(TJSSVGElement,IJSSVGMaskElement)
  70200. Protected
  70201. function _GetmaskUnits: IJSSVGAnimatedEnumeration;
  70202. function _GetmaskContentUnits: IJSSVGAnimatedEnumeration;
  70203. function _Getx: IJSSVGAnimatedLength;
  70204. function _Gety: IJSSVGAnimatedLength;
  70205. function _Getwidth: IJSSVGAnimatedLength;
  70206. function _Getheight: IJSSVGAnimatedLength;
  70207. Public
  70208. Const
  70209. SVG_MASKTYPE_LUMINANCE = 0;
  70210. SVG_MASKTYPE_ALPHA = 1;
  70211. Public
  70212. class function JSClassName: UnicodeString; override;
  70213. class function Cast(const Intf: IJSObject): IJSSVGMaskElement;
  70214. property maskUnits: IJSSVGAnimatedEnumeration read _GetmaskUnits;
  70215. property maskContentUnits: IJSSVGAnimatedEnumeration read _GetmaskContentUnits;
  70216. property x: IJSSVGAnimatedLength read _Getx;
  70217. property y: IJSSVGAnimatedLength read _Gety;
  70218. property width: IJSSVGAnimatedLength read _Getwidth;
  70219. property height: IJSSVGAnimatedLength read _Getheight;
  70220. end;
  70221. { --------------------------------------------------------------------
  70222. TJSSVGMetadataElement
  70223. --------------------------------------------------------------------}
  70224. IJSSVGMetadataElement = interface(IJSSVGElement)
  70225. ['{C8B4FFA8-374E-3721-934F-131261302063}']
  70226. end;
  70227. TJSSVGMetadataElement = class(TJSSVGElement,IJSSVGMetadataElement)
  70228. Protected
  70229. Public
  70230. class function JSClassName: UnicodeString; override;
  70231. class function Cast(const Intf: IJSObject): IJSSVGMetadataElement;
  70232. end;
  70233. { --------------------------------------------------------------------
  70234. TJSSVGMPathElement
  70235. --------------------------------------------------------------------}
  70236. IJSSVGMPathElement = interface(IJSSVGElement)
  70237. ['{754D95F8-74DB-38FB-83DF-C4181699DD54}']
  70238. function _Gethref: IJSSVGAnimatedString;
  70239. property href: IJSSVGAnimatedString read _Gethref;
  70240. end;
  70241. TJSSVGMPathElement = class(TJSSVGElement,IJSSVGMPathElement)
  70242. Protected
  70243. function _Gethref: IJSSVGAnimatedString;
  70244. Public
  70245. class function JSClassName: UnicodeString; override;
  70246. class function Cast(const Intf: IJSObject): IJSSVGMPathElement;
  70247. property href: IJSSVGAnimatedString read _Gethref;
  70248. end;
  70249. { --------------------------------------------------------------------
  70250. TJSSVGPatternElement
  70251. --------------------------------------------------------------------}
  70252. IJSSVGPatternElement = interface(IJSSVGElement)
  70253. ['{AE74AAA7-EE08-36A9-AD86-E2060DC759F6}']
  70254. function _GetpatternUnits: IJSSVGAnimatedEnumeration;
  70255. function _GetpatternContentUnits: IJSSVGAnimatedEnumeration;
  70256. function _GetpatternTransform: IJSSVGAnimatedTransformList;
  70257. function _Getx: IJSSVGAnimatedLength;
  70258. function _Gety: IJSSVGAnimatedLength;
  70259. function _Getwidth: IJSSVGAnimatedLength;
  70260. function _Getheight: IJSSVGAnimatedLength;
  70261. function _GetviewBox: IJSSVGAnimatedRect;
  70262. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70263. function _Gethref: IJSSVGAnimatedString;
  70264. property patternUnits: IJSSVGAnimatedEnumeration read _GetpatternUnits;
  70265. property patternContentUnits: IJSSVGAnimatedEnumeration read _GetpatternContentUnits;
  70266. property patternTransform: IJSSVGAnimatedTransformList read _GetpatternTransform;
  70267. property x: IJSSVGAnimatedLength read _Getx;
  70268. property y: IJSSVGAnimatedLength read _Gety;
  70269. property width: IJSSVGAnimatedLength read _Getwidth;
  70270. property height: IJSSVGAnimatedLength read _Getheight;
  70271. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  70272. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  70273. property href: IJSSVGAnimatedString read _Gethref;
  70274. end;
  70275. TJSSVGPatternElement = class(TJSSVGElement,IJSSVGPatternElement)
  70276. Protected
  70277. function _GetpatternUnits: IJSSVGAnimatedEnumeration;
  70278. function _GetpatternContentUnits: IJSSVGAnimatedEnumeration;
  70279. function _GetpatternTransform: IJSSVGAnimatedTransformList;
  70280. function _Getx: IJSSVGAnimatedLength;
  70281. function _Gety: IJSSVGAnimatedLength;
  70282. function _Getwidth: IJSSVGAnimatedLength;
  70283. function _Getheight: IJSSVGAnimatedLength;
  70284. function _GetviewBox: IJSSVGAnimatedRect;
  70285. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70286. function _Gethref: IJSSVGAnimatedString;
  70287. Public
  70288. class function JSClassName: UnicodeString; override;
  70289. class function Cast(const Intf: IJSObject): IJSSVGPatternElement;
  70290. property patternUnits: IJSSVGAnimatedEnumeration read _GetpatternUnits;
  70291. property patternContentUnits: IJSSVGAnimatedEnumeration read _GetpatternContentUnits;
  70292. property patternTransform: IJSSVGAnimatedTransformList read _GetpatternTransform;
  70293. property x: IJSSVGAnimatedLength read _Getx;
  70294. property y: IJSSVGAnimatedLength read _Gety;
  70295. property width: IJSSVGAnimatedLength read _Getwidth;
  70296. property height: IJSSVGAnimatedLength read _Getheight;
  70297. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  70298. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  70299. property href: IJSSVGAnimatedString read _Gethref;
  70300. end;
  70301. { --------------------------------------------------------------------
  70302. TJSSVGScriptElement
  70303. --------------------------------------------------------------------}
  70304. IJSSVGScriptElement = interface(IJSSVGElement)
  70305. ['{8092242C-0050-34A4-A1D4-E0B384418477}']
  70306. function _Gettype_: UnicodeString;
  70307. function _Getasync: Boolean;
  70308. function _Getdefer: Boolean;
  70309. function _GetcrossOrigin: UnicodeString;
  70310. function _Gethref: IJSSVGAnimatedString;
  70311. procedure _Settype_(const aValue: UnicodeString);
  70312. procedure _Setasync(const aValue: Boolean);
  70313. procedure _Setdefer(const aValue: Boolean);
  70314. procedure _SetcrossOrigin(const aValue: UnicodeString);
  70315. property type_: UnicodeString read _Gettype_ write _Settype_;
  70316. property async: Boolean read _Getasync write _Setasync;
  70317. property defer: Boolean read _Getdefer write _Setdefer;
  70318. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  70319. property href: IJSSVGAnimatedString read _Gethref;
  70320. end;
  70321. TJSSVGScriptElement = class(TJSSVGElement,IJSSVGScriptElement)
  70322. Protected
  70323. function _Gettype_: UnicodeString;
  70324. function _Getasync: Boolean;
  70325. function _Getdefer: Boolean;
  70326. function _GetcrossOrigin: UnicodeString;
  70327. function _Gethref: IJSSVGAnimatedString;
  70328. procedure _Settype_(const aValue: UnicodeString);
  70329. procedure _Setasync(const aValue: Boolean);
  70330. procedure _Setdefer(const aValue: Boolean);
  70331. procedure _SetcrossOrigin(const aValue: UnicodeString);
  70332. Public
  70333. class function JSClassName: UnicodeString; override;
  70334. class function Cast(const Intf: IJSObject): IJSSVGScriptElement;
  70335. property type_: UnicodeString read _Gettype_ write _Settype_;
  70336. property async: Boolean read _Getasync write _Setasync;
  70337. property defer: Boolean read _Getdefer write _Setdefer;
  70338. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  70339. property href: IJSSVGAnimatedString read _Gethref;
  70340. end;
  70341. { --------------------------------------------------------------------
  70342. TJSSVGStopElement
  70343. --------------------------------------------------------------------}
  70344. IJSSVGStopElement = interface(IJSSVGElement)
  70345. ['{FFE48BB4-D905-3F32-9A72-656AF28C323A}']
  70346. function _Getoffset: IJSSVGAnimatedNumber;
  70347. property offset: IJSSVGAnimatedNumber read _Getoffset;
  70348. end;
  70349. TJSSVGStopElement = class(TJSSVGElement,IJSSVGStopElement)
  70350. Protected
  70351. function _Getoffset: IJSSVGAnimatedNumber;
  70352. Public
  70353. class function JSClassName: UnicodeString; override;
  70354. class function Cast(const Intf: IJSObject): IJSSVGStopElement;
  70355. property offset: IJSSVGAnimatedNumber read _Getoffset;
  70356. end;
  70357. { --------------------------------------------------------------------
  70358. TJSSVGStyleElement
  70359. --------------------------------------------------------------------}
  70360. IJSSVGStyleElement = interface(IJSSVGElement)
  70361. ['{CAA4CDE4-195A-34F0-8969-E0991240039B}']
  70362. function _Getdisabled: Boolean;
  70363. function _Gettype_: UnicodeString;
  70364. function _Getmedia: UnicodeString;
  70365. function _Gettitle: UnicodeString;
  70366. function _Getsheet: IJSStyleSheet;
  70367. procedure _Setdisabled(const aValue: Boolean);
  70368. procedure _Settype_(const aValue: UnicodeString);
  70369. procedure _Setmedia(const aValue: UnicodeString);
  70370. procedure _Settitle(const aValue: UnicodeString);
  70371. property disabled: Boolean read _Getdisabled write _Setdisabled;
  70372. property type_: UnicodeString read _Gettype_ write _Settype_;
  70373. property media: UnicodeString read _Getmedia write _Setmedia;
  70374. property title: UnicodeString read _Gettitle write _Settitle;
  70375. property sheet: IJSStyleSheet read _Getsheet;
  70376. end;
  70377. TJSSVGStyleElement = class(TJSSVGElement,IJSSVGStyleElement)
  70378. Protected
  70379. function _Getdisabled: Boolean;
  70380. function _Gettype_: UnicodeString;
  70381. function _Getmedia: UnicodeString;
  70382. function _Gettitle: UnicodeString;
  70383. function _Getsheet: IJSStyleSheet;
  70384. procedure _Setdisabled(const aValue: Boolean);
  70385. procedure _Settype_(const aValue: UnicodeString);
  70386. procedure _Setmedia(const aValue: UnicodeString);
  70387. procedure _Settitle(const aValue: UnicodeString);
  70388. Public
  70389. class function JSClassName: UnicodeString; override;
  70390. class function Cast(const Intf: IJSObject): IJSSVGStyleElement;
  70391. property disabled: Boolean read _Getdisabled write _Setdisabled;
  70392. property type_: UnicodeString read _Gettype_ write _Settype_;
  70393. property media: UnicodeString read _Getmedia write _Setmedia;
  70394. property title: UnicodeString read _Gettitle write _Settitle;
  70395. property sheet: IJSStyleSheet read _Getsheet;
  70396. end;
  70397. { --------------------------------------------------------------------
  70398. TJSSVGSymbolElement
  70399. --------------------------------------------------------------------}
  70400. IJSSVGSymbolElement = interface(IJSSVGElement)
  70401. ['{806DCD11-90BA-365D-AE33-E9909B6BDB4E}']
  70402. function _GetviewBox: IJSSVGAnimatedRect;
  70403. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70404. function _GetrequiredExtensions: IJSSVGStringList;
  70405. function _GetsystemLanguage: IJSSVGStringList;
  70406. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  70407. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  70408. property requiredExtensions: IJSSVGStringList read _GetrequiredExtensions;
  70409. property systemLanguage: IJSSVGStringList read _GetsystemLanguage;
  70410. end;
  70411. TJSSVGSymbolElement = class(TJSSVGElement,IJSSVGSymbolElement)
  70412. Protected
  70413. function _GetviewBox: IJSSVGAnimatedRect;
  70414. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70415. function _GetrequiredExtensions: IJSSVGStringList;
  70416. function _GetsystemLanguage: IJSSVGStringList;
  70417. Public
  70418. class function JSClassName: UnicodeString; override;
  70419. class function Cast(const Intf: IJSObject): IJSSVGSymbolElement;
  70420. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  70421. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  70422. property requiredExtensions: IJSSVGStringList read _GetrequiredExtensions;
  70423. property systemLanguage: IJSSVGStringList read _GetsystemLanguage;
  70424. end;
  70425. { --------------------------------------------------------------------
  70426. TJSSVGTitleElement
  70427. --------------------------------------------------------------------}
  70428. IJSSVGTitleElement = interface(IJSSVGElement)
  70429. ['{AC6C746F-4E27-3228-8686-B09810B13444}']
  70430. end;
  70431. TJSSVGTitleElement = class(TJSSVGElement,IJSSVGTitleElement)
  70432. Protected
  70433. Public
  70434. class function JSClassName: UnicodeString; override;
  70435. class function Cast(const Intf: IJSObject): IJSSVGTitleElement;
  70436. end;
  70437. { --------------------------------------------------------------------
  70438. TJSSVGViewElement
  70439. --------------------------------------------------------------------}
  70440. IJSSVGViewElement = interface(IJSSVGElement)
  70441. ['{2AC25D90-23CD-3D62-96E9-DEEDEB2D8AE2}']
  70442. function _GetviewBox: IJSSVGAnimatedRect;
  70443. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70444. function _GetzoomAndPan: Word;
  70445. procedure _SetzoomAndPan(const aValue: Word);
  70446. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  70447. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  70448. property zoomAndPan: Word read _GetzoomAndPan write _SetzoomAndPan;
  70449. end;
  70450. TJSSVGViewElement = class(TJSSVGElement,IJSSVGViewElement)
  70451. Protected
  70452. function _GetviewBox: IJSSVGAnimatedRect;
  70453. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70454. function _GetzoomAndPan: Word;
  70455. procedure _SetzoomAndPan(const aValue: Word);
  70456. Public
  70457. Const
  70458. SVG_ZOOMANDPAN_UNKNOWN = 0;
  70459. SVG_ZOOMANDPAN_DISABLE = 1;
  70460. SVG_ZOOMANDPAN_MAGNIFY = 2;
  70461. Public
  70462. class function JSClassName: UnicodeString; override;
  70463. class function Cast(const Intf: IJSObject): IJSSVGViewElement;
  70464. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  70465. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  70466. property zoomAndPan: Word read _GetzoomAndPan write _SetzoomAndPan;
  70467. end;
  70468. { --------------------------------------------------------------------
  70469. TJSHTMLAudioElement
  70470. --------------------------------------------------------------------}
  70471. IJSHTMLAudioElement = interface(IJSHTMLMediaElement)
  70472. ['{2A75E7BD-1CEC-324F-894E-1B9C5A1AD224}']
  70473. end;
  70474. TJSHTMLAudioElement = class(TJSHTMLMediaElement,IJSHTMLAudioElement)
  70475. Protected
  70476. Public
  70477. constructor Create; overload;
  70478. class function JSClassName: UnicodeString; override;
  70479. class function Cast(const Intf: IJSObject): IJSHTMLAudioElement;
  70480. end;
  70481. { --------------------------------------------------------------------
  70482. TJSHTMLVideoElement
  70483. --------------------------------------------------------------------}
  70484. IJSHTMLVideoElement = interface(IJSHTMLMediaElement)
  70485. ['{77665993-54F8-32EE-B7B3-AF5234B37D21}']
  70486. function _Getwidth: Cardinal;
  70487. function _Getheight: Cardinal;
  70488. function _GetvideoWidth: Cardinal;
  70489. function _GetvideoHeight: Cardinal;
  70490. function _Getposter: UnicodeString;
  70491. function _GetmozParsedFrames: Cardinal;
  70492. function _GetmozDecodedFrames: Cardinal;
  70493. function _GetmozPresentedFrames: Cardinal;
  70494. function _GetmozPaintedFrames: Cardinal;
  70495. function _GetmozFrameDelay: Double;
  70496. function _GetmozHasAudio: Boolean;
  70497. function _GetisCloningElementVisually: Boolean;
  70498. function _GetdisablePictureInPicture: Boolean;
  70499. procedure _Setwidth(const aValue: Cardinal);
  70500. procedure _Setheight(const aValue: Cardinal);
  70501. procedure _Setposter(const aValue: UnicodeString);
  70502. procedure _SetdisablePictureInPicture(const aValue: Boolean);
  70503. function cloneElementVisually(aTarget: IJSHTMLVideoElement): IJSPromise; // Promise<undefined>
  70504. procedure stopCloningElementVisually;
  70505. function getVideoPlaybackQuality: IJSVideoPlaybackQuality;
  70506. property width: Cardinal read _Getwidth write _Setwidth;
  70507. property height: Cardinal read _Getheight write _Setheight;
  70508. property videoWidth: Cardinal read _GetvideoWidth;
  70509. property videoHeight: Cardinal read _GetvideoHeight;
  70510. property poster: UnicodeString read _Getposter write _Setposter;
  70511. property mozParsedFrames: Cardinal read _GetmozParsedFrames;
  70512. property mozDecodedFrames: Cardinal read _GetmozDecodedFrames;
  70513. property mozPresentedFrames: Cardinal read _GetmozPresentedFrames;
  70514. property mozPaintedFrames: Cardinal read _GetmozPaintedFrames;
  70515. property mozFrameDelay: Double read _GetmozFrameDelay;
  70516. property mozHasAudio: Boolean read _GetmozHasAudio;
  70517. property isCloningElementVisually: Boolean read _GetisCloningElementVisually;
  70518. property disablePictureInPicture: Boolean read _GetdisablePictureInPicture write _SetdisablePictureInPicture;
  70519. end;
  70520. TJSHTMLVideoElement = class(TJSHTMLMediaElement,IJSHTMLVideoElement)
  70521. Protected
  70522. function _Getwidth: Cardinal;
  70523. function _Getheight: Cardinal;
  70524. function _GetvideoWidth: Cardinal;
  70525. function _GetvideoHeight: Cardinal;
  70526. function _Getposter: UnicodeString;
  70527. function _GetmozParsedFrames: Cardinal;
  70528. function _GetmozDecodedFrames: Cardinal;
  70529. function _GetmozPresentedFrames: Cardinal;
  70530. function _GetmozPaintedFrames: Cardinal;
  70531. function _GetmozFrameDelay: Double;
  70532. function _GetmozHasAudio: Boolean;
  70533. function _GetisCloningElementVisually: Boolean;
  70534. function _GetdisablePictureInPicture: Boolean;
  70535. procedure _Setwidth(const aValue: Cardinal);
  70536. procedure _Setheight(const aValue: Cardinal);
  70537. procedure _Setposter(const aValue: UnicodeString);
  70538. procedure _SetdisablePictureInPicture(const aValue: Boolean);
  70539. Public
  70540. constructor Create; overload;
  70541. function cloneElementVisually(aTarget: IJSHTMLVideoElement): IJSPromise; overload; // Promise<undefined>
  70542. procedure stopCloningElementVisually; overload;
  70543. function getVideoPlaybackQuality: IJSVideoPlaybackQuality; overload;
  70544. class function JSClassName: UnicodeString; override;
  70545. class function Cast(const Intf: IJSObject): IJSHTMLVideoElement;
  70546. property width: Cardinal read _Getwidth write _Setwidth;
  70547. property height: Cardinal read _Getheight write _Setheight;
  70548. property videoWidth: Cardinal read _GetvideoWidth;
  70549. property videoHeight: Cardinal read _GetvideoHeight;
  70550. property poster: UnicodeString read _Getposter write _Setposter;
  70551. property mozParsedFrames: Cardinal read _GetmozParsedFrames;
  70552. property mozDecodedFrames: Cardinal read _GetmozDecodedFrames;
  70553. property mozPresentedFrames: Cardinal read _GetmozPresentedFrames;
  70554. property mozPaintedFrames: Cardinal read _GetmozPaintedFrames;
  70555. property mozFrameDelay: Double read _GetmozFrameDelay;
  70556. property mozHasAudio: Boolean read _GetmozHasAudio;
  70557. property isCloningElementVisually: Boolean read _GetisCloningElementVisually;
  70558. property disablePictureInPicture: Boolean read _GetdisablePictureInPicture write _SetdisablePictureInPicture;
  70559. end;
  70560. { --------------------------------------------------------------------
  70561. TJSSVGAElement
  70562. --------------------------------------------------------------------}
  70563. IJSSVGAElement = interface(IJSSVGGraphicsElement)
  70564. ['{CDD139CB-ED99-39C4-AA45-6194340D56AB}']
  70565. function _Gettarget: IJSSVGAnimatedString;
  70566. function _Getdownload: UnicodeString;
  70567. function _Getping: UnicodeString;
  70568. function _Getrel: UnicodeString;
  70569. function _GetreferrerPolicy: UnicodeString;
  70570. function _GetrelList: IJSDOMTokenList;
  70571. function _Gethreflang: UnicodeString;
  70572. function _Gettype_: UnicodeString;
  70573. function _Gettext: UnicodeString;
  70574. function _Gethref: IJSSVGAnimatedString;
  70575. procedure _Setdownload(const aValue: UnicodeString);
  70576. procedure _Setping(const aValue: UnicodeString);
  70577. procedure _Setrel(const aValue: UnicodeString);
  70578. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  70579. procedure _Sethreflang(const aValue: UnicodeString);
  70580. procedure _Settype_(const aValue: UnicodeString);
  70581. procedure _Settext(const aValue: UnicodeString);
  70582. property target: IJSSVGAnimatedString read _Gettarget;
  70583. property download: UnicodeString read _Getdownload write _Setdownload;
  70584. property ping: UnicodeString read _Getping write _Setping;
  70585. property rel: UnicodeString read _Getrel write _Setrel;
  70586. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  70587. property relList: IJSDOMTokenList read _GetrelList;
  70588. property hreflang: UnicodeString read _Gethreflang write _Sethreflang;
  70589. property type_: UnicodeString read _Gettype_ write _Settype_;
  70590. property text: UnicodeString read _Gettext write _Settext;
  70591. property href: IJSSVGAnimatedString read _Gethref;
  70592. end;
  70593. TJSSVGAElement = class(TJSSVGGraphicsElement,IJSSVGAElement)
  70594. Protected
  70595. function _Gettarget: IJSSVGAnimatedString;
  70596. function _Getdownload: UnicodeString;
  70597. function _Getping: UnicodeString;
  70598. function _Getrel: UnicodeString;
  70599. function _GetreferrerPolicy: UnicodeString;
  70600. function _GetrelList: IJSDOMTokenList;
  70601. function _Gethreflang: UnicodeString;
  70602. function _Gettype_: UnicodeString;
  70603. function _Gettext: UnicodeString;
  70604. function _Gethref: IJSSVGAnimatedString;
  70605. procedure _Setdownload(const aValue: UnicodeString);
  70606. procedure _Setping(const aValue: UnicodeString);
  70607. procedure _Setrel(const aValue: UnicodeString);
  70608. procedure _SetreferrerPolicy(const aValue: UnicodeString);
  70609. procedure _Sethreflang(const aValue: UnicodeString);
  70610. procedure _Settype_(const aValue: UnicodeString);
  70611. procedure _Settext(const aValue: UnicodeString);
  70612. Public
  70613. class function JSClassName: UnicodeString; override;
  70614. class function Cast(const Intf: IJSObject): IJSSVGAElement;
  70615. property target: IJSSVGAnimatedString read _Gettarget;
  70616. property download: UnicodeString read _Getdownload write _Setdownload;
  70617. property ping: UnicodeString read _Getping write _Setping;
  70618. property rel: UnicodeString read _Getrel write _Setrel;
  70619. property referrerPolicy: UnicodeString read _GetreferrerPolicy write _SetreferrerPolicy;
  70620. property relList: IJSDOMTokenList read _GetrelList;
  70621. property hreflang: UnicodeString read _Gethreflang write _Sethreflang;
  70622. property type_: UnicodeString read _Gettype_ write _Settype_;
  70623. property text: UnicodeString read _Gettext write _Settext;
  70624. property href: IJSSVGAnimatedString read _Gethref;
  70625. end;
  70626. { --------------------------------------------------------------------
  70627. TJSSVGAnimateElement
  70628. --------------------------------------------------------------------}
  70629. IJSSVGAnimateElement = interface(IJSSVGAnimationElement)
  70630. ['{2DC59449-E03C-3253-826F-A16D0246AC5D}']
  70631. end;
  70632. TJSSVGAnimateElement = class(TJSSVGAnimationElement,IJSSVGAnimateElement)
  70633. Protected
  70634. Public
  70635. class function JSClassName: UnicodeString; override;
  70636. class function Cast(const Intf: IJSObject): IJSSVGAnimateElement;
  70637. end;
  70638. { --------------------------------------------------------------------
  70639. TJSSVGAnimateMotionElement
  70640. --------------------------------------------------------------------}
  70641. IJSSVGAnimateMotionElement = interface(IJSSVGAnimationElement)
  70642. ['{644B189C-E3CF-340B-8AB9-CF2418CA85BC}']
  70643. end;
  70644. TJSSVGAnimateMotionElement = class(TJSSVGAnimationElement,IJSSVGAnimateMotionElement)
  70645. Protected
  70646. Public
  70647. class function JSClassName: UnicodeString; override;
  70648. class function Cast(const Intf: IJSObject): IJSSVGAnimateMotionElement;
  70649. end;
  70650. { --------------------------------------------------------------------
  70651. TJSSVGAnimateTransformElement
  70652. --------------------------------------------------------------------}
  70653. IJSSVGAnimateTransformElement = interface(IJSSVGAnimationElement)
  70654. ['{6BA37166-1058-334A-B4D3-235B00C32F9C}']
  70655. end;
  70656. TJSSVGAnimateTransformElement = class(TJSSVGAnimationElement,IJSSVGAnimateTransformElement)
  70657. Protected
  70658. Public
  70659. class function JSClassName: UnicodeString; override;
  70660. class function Cast(const Intf: IJSObject): IJSSVGAnimateTransformElement;
  70661. end;
  70662. { --------------------------------------------------------------------
  70663. TJSSVGDefsElement
  70664. --------------------------------------------------------------------}
  70665. IJSSVGDefsElement = interface(IJSSVGGraphicsElement)
  70666. ['{488D848E-92BC-3446-9068-B5CE70532914}']
  70667. end;
  70668. TJSSVGDefsElement = class(TJSSVGGraphicsElement,IJSSVGDefsElement)
  70669. Protected
  70670. Public
  70671. class function JSClassName: UnicodeString; override;
  70672. class function Cast(const Intf: IJSObject): IJSSVGDefsElement;
  70673. end;
  70674. { --------------------------------------------------------------------
  70675. TJSSVGFEFuncAElement
  70676. --------------------------------------------------------------------}
  70677. IJSSVGFEFuncAElement = interface(IJSSVGComponentTransferFunctionElement)
  70678. ['{44A3FD36-7990-3D7F-8749-AA919B8C26D6}']
  70679. end;
  70680. TJSSVGFEFuncAElement = class(TJSSVGComponentTransferFunctionElement,IJSSVGFEFuncAElement)
  70681. Protected
  70682. Public
  70683. class function JSClassName: UnicodeString; override;
  70684. class function Cast(const Intf: IJSObject): IJSSVGFEFuncAElement;
  70685. end;
  70686. { --------------------------------------------------------------------
  70687. TJSSVGFEFuncBElement
  70688. --------------------------------------------------------------------}
  70689. IJSSVGFEFuncBElement = interface(IJSSVGComponentTransferFunctionElement)
  70690. ['{44A3FD36-7990-3D80-8749-AA919B8C26D6}']
  70691. end;
  70692. TJSSVGFEFuncBElement = class(TJSSVGComponentTransferFunctionElement,IJSSVGFEFuncBElement)
  70693. Protected
  70694. Public
  70695. class function JSClassName: UnicodeString; override;
  70696. class function Cast(const Intf: IJSObject): IJSSVGFEFuncBElement;
  70697. end;
  70698. { --------------------------------------------------------------------
  70699. TJSSVGFEFuncGElement
  70700. --------------------------------------------------------------------}
  70701. IJSSVGFEFuncGElement = interface(IJSSVGComponentTransferFunctionElement)
  70702. ['{44A3FD36-7990-3D82-8749-AA919B8C26D6}']
  70703. end;
  70704. TJSSVGFEFuncGElement = class(TJSSVGComponentTransferFunctionElement,IJSSVGFEFuncGElement)
  70705. Protected
  70706. Public
  70707. class function JSClassName: UnicodeString; override;
  70708. class function Cast(const Intf: IJSObject): IJSSVGFEFuncGElement;
  70709. end;
  70710. { --------------------------------------------------------------------
  70711. TJSSVGFEFuncRElement
  70712. --------------------------------------------------------------------}
  70713. IJSSVGFEFuncRElement = interface(IJSSVGComponentTransferFunctionElement)
  70714. ['{44A3FD36-7990-3D88-8749-AA919B8C26D6}']
  70715. end;
  70716. TJSSVGFEFuncRElement = class(TJSSVGComponentTransferFunctionElement,IJSSVGFEFuncRElement)
  70717. Protected
  70718. Public
  70719. class function JSClassName: UnicodeString; override;
  70720. class function Cast(const Intf: IJSObject): IJSSVGFEFuncRElement;
  70721. end;
  70722. { --------------------------------------------------------------------
  70723. TJSSVGForeignObjectElement
  70724. --------------------------------------------------------------------}
  70725. IJSSVGForeignObjectElement = interface(IJSSVGGraphicsElement)
  70726. ['{5397F230-BE20-3D6D-B80F-B4296F8CC34B}']
  70727. function _Getx: IJSSVGAnimatedLength;
  70728. function _Gety: IJSSVGAnimatedLength;
  70729. function _Getwidth: IJSSVGAnimatedLength;
  70730. function _Getheight: IJSSVGAnimatedLength;
  70731. property x: IJSSVGAnimatedLength read _Getx;
  70732. property y: IJSSVGAnimatedLength read _Gety;
  70733. property width: IJSSVGAnimatedLength read _Getwidth;
  70734. property height: IJSSVGAnimatedLength read _Getheight;
  70735. end;
  70736. TJSSVGForeignObjectElement = class(TJSSVGGraphicsElement,IJSSVGForeignObjectElement)
  70737. Protected
  70738. function _Getx: IJSSVGAnimatedLength;
  70739. function _Gety: IJSSVGAnimatedLength;
  70740. function _Getwidth: IJSSVGAnimatedLength;
  70741. function _Getheight: IJSSVGAnimatedLength;
  70742. Public
  70743. class function JSClassName: UnicodeString; override;
  70744. class function Cast(const Intf: IJSObject): IJSSVGForeignObjectElement;
  70745. property x: IJSSVGAnimatedLength read _Getx;
  70746. property y: IJSSVGAnimatedLength read _Gety;
  70747. property width: IJSSVGAnimatedLength read _Getwidth;
  70748. property height: IJSSVGAnimatedLength read _Getheight;
  70749. end;
  70750. { --------------------------------------------------------------------
  70751. TJSSVGGElement
  70752. --------------------------------------------------------------------}
  70753. IJSSVGGElement = interface(IJSSVGGraphicsElement)
  70754. ['{EEE0B1DA-6F23-3834-97E6-38A994887431}']
  70755. end;
  70756. TJSSVGGElement = class(TJSSVGGraphicsElement,IJSSVGGElement)
  70757. Protected
  70758. Public
  70759. class function JSClassName: UnicodeString; override;
  70760. class function Cast(const Intf: IJSObject): IJSSVGGElement;
  70761. end;
  70762. { --------------------------------------------------------------------
  70763. TJSSVGGeometryElement
  70764. --------------------------------------------------------------------}
  70765. IJSSVGGeometryElement = interface(IJSSVGGraphicsElement)
  70766. ['{8CC82277-1324-3A06-8BAF-085DF1DA973B}']
  70767. function _GetpathLength: IJSSVGAnimatedNumber;
  70768. function isPointInFill(const aPoint: TJSDOMPointInit): Boolean;
  70769. function isPointInFill: Boolean;
  70770. function isPointInStroke(const aPoint: TJSDOMPointInit): Boolean;
  70771. function isPointInStroke: Boolean;
  70772. function getTotalLength: Single;
  70773. function getPointAtLength(aDistance: Single): IJSSVGPoint;
  70774. property pathLength: IJSSVGAnimatedNumber read _GetpathLength;
  70775. end;
  70776. TJSSVGGeometryElement = class(TJSSVGGraphicsElement,IJSSVGGeometryElement)
  70777. Protected
  70778. function _GetpathLength: IJSSVGAnimatedNumber;
  70779. Public
  70780. function isPointInFill(const aPoint: TJSDOMPointInit): Boolean; overload;
  70781. function isPointInFill: Boolean; overload;
  70782. function isPointInStroke(const aPoint: TJSDOMPointInit): Boolean; overload;
  70783. function isPointInStroke: Boolean; overload;
  70784. function getTotalLength: Single; overload;
  70785. function getPointAtLength(aDistance: Single): IJSSVGPoint; overload;
  70786. class function JSClassName: UnicodeString; override;
  70787. class function Cast(const Intf: IJSObject): IJSSVGGeometryElement;
  70788. property pathLength: IJSSVGAnimatedNumber read _GetpathLength;
  70789. end;
  70790. { --------------------------------------------------------------------
  70791. TJSSVGImageElement
  70792. --------------------------------------------------------------------}
  70793. IJSSVGImageElement = interface(IJSSVGGraphicsElement)
  70794. ['{2A32A24E-8DB9-3377-A58F-2DD2D654DA9E}']
  70795. function _Getx: IJSSVGAnimatedLength;
  70796. function _Gety: IJSSVGAnimatedLength;
  70797. function _Getwidth: IJSSVGAnimatedLength;
  70798. function _Getheight: IJSSVGAnimatedLength;
  70799. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70800. function _GetcrossOrigin: UnicodeString;
  70801. function _Getdecoding: UnicodeString;
  70802. function _Gethref: IJSSVGAnimatedString;
  70803. procedure _SetcrossOrigin(const aValue: UnicodeString);
  70804. procedure _Setdecoding(const aValue: UnicodeString);
  70805. function decode: IJSPromise; // Promise<undefined>
  70806. property x: IJSSVGAnimatedLength read _Getx;
  70807. property y: IJSSVGAnimatedLength read _Gety;
  70808. property width: IJSSVGAnimatedLength read _Getwidth;
  70809. property height: IJSSVGAnimatedLength read _Getheight;
  70810. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  70811. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  70812. property decoding: UnicodeString read _Getdecoding write _Setdecoding;
  70813. property href: IJSSVGAnimatedString read _Gethref;
  70814. end;
  70815. TJSSVGImageElement = class(TJSSVGGraphicsElement,IJSSVGImageElement)
  70816. Protected
  70817. function _Getx: IJSSVGAnimatedLength;
  70818. function _Gety: IJSSVGAnimatedLength;
  70819. function _Getwidth: IJSSVGAnimatedLength;
  70820. function _Getheight: IJSSVGAnimatedLength;
  70821. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70822. function _GetcrossOrigin: UnicodeString;
  70823. function _Getdecoding: UnicodeString;
  70824. function _Gethref: IJSSVGAnimatedString;
  70825. procedure _SetcrossOrigin(const aValue: UnicodeString);
  70826. procedure _Setdecoding(const aValue: UnicodeString);
  70827. Public
  70828. function decode: IJSPromise; overload; // Promise<undefined>
  70829. class function JSClassName: UnicodeString; override;
  70830. class function Cast(const Intf: IJSObject): IJSSVGImageElement;
  70831. property x: IJSSVGAnimatedLength read _Getx;
  70832. property y: IJSSVGAnimatedLength read _Gety;
  70833. property width: IJSSVGAnimatedLength read _Getwidth;
  70834. property height: IJSSVGAnimatedLength read _Getheight;
  70835. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  70836. property crossOrigin: UnicodeString read _GetcrossOrigin write _SetcrossOrigin;
  70837. property decoding: UnicodeString read _Getdecoding write _Setdecoding;
  70838. property href: IJSSVGAnimatedString read _Gethref;
  70839. end;
  70840. { --------------------------------------------------------------------
  70841. TJSSVGLinearGradientElement
  70842. --------------------------------------------------------------------}
  70843. IJSSVGLinearGradientElement = interface(IJSSVGGradientElement)
  70844. ['{567E7764-C93B-3E90-B849-F2EDF2A7D0CC}']
  70845. function _Getx1: IJSSVGAnimatedLength;
  70846. function _Gety1: IJSSVGAnimatedLength;
  70847. function _Getx2: IJSSVGAnimatedLength;
  70848. function _Gety2: IJSSVGAnimatedLength;
  70849. property x1: IJSSVGAnimatedLength read _Getx1;
  70850. property y1: IJSSVGAnimatedLength read _Gety1;
  70851. property x2: IJSSVGAnimatedLength read _Getx2;
  70852. property y2: IJSSVGAnimatedLength read _Gety2;
  70853. end;
  70854. TJSSVGLinearGradientElement = class(TJSSVGGradientElement,IJSSVGLinearGradientElement)
  70855. Protected
  70856. function _Getx1: IJSSVGAnimatedLength;
  70857. function _Gety1: IJSSVGAnimatedLength;
  70858. function _Getx2: IJSSVGAnimatedLength;
  70859. function _Gety2: IJSSVGAnimatedLength;
  70860. Public
  70861. class function JSClassName: UnicodeString; override;
  70862. class function Cast(const Intf: IJSObject): IJSSVGLinearGradientElement;
  70863. property x1: IJSSVGAnimatedLength read _Getx1;
  70864. property y1: IJSSVGAnimatedLength read _Gety1;
  70865. property x2: IJSSVGAnimatedLength read _Getx2;
  70866. property y2: IJSSVGAnimatedLength read _Gety2;
  70867. end;
  70868. { --------------------------------------------------------------------
  70869. TJSSVGRadialGradientElement
  70870. --------------------------------------------------------------------}
  70871. IJSSVGRadialGradientElement = interface(IJSSVGGradientElement)
  70872. ['{42AC7A92-6FC0-35DA-8A86-EC4B0921C685}']
  70873. function _Getcx: IJSSVGAnimatedLength;
  70874. function _Getcy: IJSSVGAnimatedLength;
  70875. function _Getr: IJSSVGAnimatedLength;
  70876. function _Getfx: IJSSVGAnimatedLength;
  70877. function _Getfy: IJSSVGAnimatedLength;
  70878. function _Getfr: IJSSVGAnimatedLength;
  70879. property cx: IJSSVGAnimatedLength read _Getcx;
  70880. property cy: IJSSVGAnimatedLength read _Getcy;
  70881. property r: IJSSVGAnimatedLength read _Getr;
  70882. property fx: IJSSVGAnimatedLength read _Getfx;
  70883. property fy: IJSSVGAnimatedLength read _Getfy;
  70884. property fr: IJSSVGAnimatedLength read _Getfr;
  70885. end;
  70886. TJSSVGRadialGradientElement = class(TJSSVGGradientElement,IJSSVGRadialGradientElement)
  70887. Protected
  70888. function _Getcx: IJSSVGAnimatedLength;
  70889. function _Getcy: IJSSVGAnimatedLength;
  70890. function _Getr: IJSSVGAnimatedLength;
  70891. function _Getfx: IJSSVGAnimatedLength;
  70892. function _Getfy: IJSSVGAnimatedLength;
  70893. function _Getfr: IJSSVGAnimatedLength;
  70894. Public
  70895. class function JSClassName: UnicodeString; override;
  70896. class function Cast(const Intf: IJSObject): IJSSVGRadialGradientElement;
  70897. property cx: IJSSVGAnimatedLength read _Getcx;
  70898. property cy: IJSSVGAnimatedLength read _Getcy;
  70899. property r: IJSSVGAnimatedLength read _Getr;
  70900. property fx: IJSSVGAnimatedLength read _Getfx;
  70901. property fy: IJSSVGAnimatedLength read _Getfy;
  70902. property fr: IJSSVGAnimatedLength read _Getfr;
  70903. end;
  70904. { --------------------------------------------------------------------
  70905. TJSSVGSetElement
  70906. --------------------------------------------------------------------}
  70907. IJSSVGSetElement = interface(IJSSVGAnimationElement)
  70908. ['{0C8F88B9-73C3-3537-A2EE-348904E955B2}']
  70909. end;
  70910. TJSSVGSetElement = class(TJSSVGAnimationElement,IJSSVGSetElement)
  70911. Protected
  70912. Public
  70913. class function JSClassName: UnicodeString; override;
  70914. class function Cast(const Intf: IJSObject): IJSSVGSetElement;
  70915. end;
  70916. { --------------------------------------------------------------------
  70917. TJSSVGSVGElement
  70918. --------------------------------------------------------------------}
  70919. IJSSVGSVGElement = interface(IJSSVGGraphicsElement)
  70920. ['{F01D36DB-00D7-3525-B575-E27DF20F4068}']
  70921. function _Getx: IJSSVGAnimatedLength;
  70922. function _Gety: IJSSVGAnimatedLength;
  70923. function _Getwidth: IJSSVGAnimatedLength;
  70924. function _Getheight: IJSSVGAnimatedLength;
  70925. function _GetcurrentScale: Single;
  70926. function _GetcurrentTranslate: IJSSVGPoint;
  70927. function _GetviewBox: IJSSVGAnimatedRect;
  70928. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70929. function _GetzoomAndPan: Word;
  70930. procedure _SetcurrentScale(const aValue: Single);
  70931. procedure _SetzoomAndPan(const aValue: Word);
  70932. function suspendRedraw(aMaxWaitMilliseconds: Cardinal): Cardinal;
  70933. procedure unsuspendRedraw(aSuspendHandleID: Cardinal);
  70934. procedure unsuspendRedrawAll;
  70935. procedure forceRedraw;
  70936. procedure pauseAnimations;
  70937. procedure unpauseAnimations;
  70938. function animationsPaused: Boolean;
  70939. function getCurrentTime: Single;
  70940. procedure setCurrentTime(aSeconds: Single);
  70941. procedure deselectAll;
  70942. function createSVGNumber: IJSSVGNumber;
  70943. function createSVGLength: IJSSVGLength;
  70944. function createSVGAngle: IJSSVGAngle;
  70945. function createSVGPoint: IJSSVGPoint;
  70946. function createSVGMatrix: IJSSVGMatrix;
  70947. function createSVGRect: IJSSVGRect;
  70948. function createSVGTransform: IJSSVGTransform;
  70949. function createSVGTransformFromMatrix(const aMatrix: TJSDOMMatrix2DInit): IJSSVGTransform;
  70950. function createSVGTransformFromMatrix: IJSSVGTransform;
  70951. function getElementById(const aElementId: UnicodeString): IJSElement;
  70952. property x: IJSSVGAnimatedLength read _Getx;
  70953. property y: IJSSVGAnimatedLength read _Gety;
  70954. property width: IJSSVGAnimatedLength read _Getwidth;
  70955. property height: IJSSVGAnimatedLength read _Getheight;
  70956. property currentScale: Single read _GetcurrentScale write _SetcurrentScale;
  70957. property currentTranslate: IJSSVGPoint read _GetcurrentTranslate;
  70958. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  70959. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  70960. property zoomAndPan: Word read _GetzoomAndPan write _SetzoomAndPan;
  70961. end;
  70962. TJSSVGSVGElement = class(TJSSVGGraphicsElement,IJSSVGSVGElement)
  70963. Protected
  70964. function _Getx: IJSSVGAnimatedLength;
  70965. function _Gety: IJSSVGAnimatedLength;
  70966. function _Getwidth: IJSSVGAnimatedLength;
  70967. function _Getheight: IJSSVGAnimatedLength;
  70968. function _GetcurrentScale: Single;
  70969. function _GetcurrentTranslate: IJSSVGPoint;
  70970. function _GetviewBox: IJSSVGAnimatedRect;
  70971. function _GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  70972. function _GetzoomAndPan: Word;
  70973. procedure _SetcurrentScale(const aValue: Single);
  70974. procedure _SetzoomAndPan(const aValue: Word);
  70975. Public
  70976. Const
  70977. SVG_ZOOMANDPAN_UNKNOWN = 0;
  70978. SVG_ZOOMANDPAN_DISABLE = 1;
  70979. SVG_ZOOMANDPAN_MAGNIFY = 2;
  70980. Public
  70981. function suspendRedraw(aMaxWaitMilliseconds: Cardinal): Cardinal; overload;
  70982. procedure unsuspendRedraw(aSuspendHandleID: Cardinal); overload;
  70983. procedure unsuspendRedrawAll; overload;
  70984. procedure forceRedraw; overload;
  70985. procedure pauseAnimations; overload;
  70986. procedure unpauseAnimations; overload;
  70987. function animationsPaused: Boolean; overload;
  70988. function getCurrentTime: Single; overload;
  70989. procedure setCurrentTime(aSeconds: Single); overload;
  70990. procedure deselectAll; overload;
  70991. function createSVGNumber: IJSSVGNumber; overload;
  70992. function createSVGLength: IJSSVGLength; overload;
  70993. function createSVGAngle: IJSSVGAngle; overload;
  70994. function createSVGPoint: IJSSVGPoint; overload;
  70995. function createSVGMatrix: IJSSVGMatrix; overload;
  70996. function createSVGRect: IJSSVGRect; overload;
  70997. function createSVGTransform: IJSSVGTransform; overload;
  70998. function createSVGTransformFromMatrix(const aMatrix: TJSDOMMatrix2DInit): IJSSVGTransform; overload;
  70999. function createSVGTransformFromMatrix: IJSSVGTransform; overload;
  71000. function getElementById(const aElementId: UnicodeString): IJSElement; overload;
  71001. class function JSClassName: UnicodeString; override;
  71002. class function Cast(const Intf: IJSObject): IJSSVGSVGElement;
  71003. property x: IJSSVGAnimatedLength read _Getx;
  71004. property y: IJSSVGAnimatedLength read _Gety;
  71005. property width: IJSSVGAnimatedLength read _Getwidth;
  71006. property height: IJSSVGAnimatedLength read _Getheight;
  71007. property currentScale: Single read _GetcurrentScale write _SetcurrentScale;
  71008. property currentTranslate: IJSSVGPoint read _GetcurrentTranslate;
  71009. property viewBox: IJSSVGAnimatedRect read _GetviewBox;
  71010. property preserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio read _GetpreserveAspectRatio;
  71011. property zoomAndPan: Word read _GetzoomAndPan write _SetzoomAndPan;
  71012. end;
  71013. { --------------------------------------------------------------------
  71014. TJSSVGSwitchElement
  71015. --------------------------------------------------------------------}
  71016. IJSSVGSwitchElement = interface(IJSSVGGraphicsElement)
  71017. ['{9E64F3EE-3190-37C7-8E31-192B7219D1CA}']
  71018. end;
  71019. TJSSVGSwitchElement = class(TJSSVGGraphicsElement,IJSSVGSwitchElement)
  71020. Protected
  71021. Public
  71022. class function JSClassName: UnicodeString; override;
  71023. class function Cast(const Intf: IJSObject): IJSSVGSwitchElement;
  71024. end;
  71025. { --------------------------------------------------------------------
  71026. TJSSVGTextContentElement
  71027. --------------------------------------------------------------------}
  71028. IJSSVGTextContentElement = interface(IJSSVGGraphicsElement)
  71029. ['{93C94DAC-A776-34D6-9088-8F7F8F46031C}']
  71030. function _GettextLength: IJSSVGAnimatedLength;
  71031. function _GetlengthAdjust: IJSSVGAnimatedEnumeration;
  71032. function getNumberOfChars: LongInt;
  71033. function getComputedTextLength: Single;
  71034. function getSubStringLength(aCharnum: Cardinal; aNchars: Cardinal): Single;
  71035. function getStartPositionOfChar(aCharnum: Cardinal): IJSSVGPoint;
  71036. function getEndPositionOfChar(aCharnum: Cardinal): IJSSVGPoint;
  71037. function getExtentOfChar(aCharnum: Cardinal): IJSSVGRect;
  71038. function getRotationOfChar(aCharnum: Cardinal): Single;
  71039. function getCharNumAtPosition(const aPoint: TJSDOMPointInit): LongInt;
  71040. function getCharNumAtPosition: LongInt;
  71041. procedure selectSubString(aCharnum: Cardinal; aNchars: Cardinal);
  71042. property textLength: IJSSVGAnimatedLength read _GettextLength;
  71043. property lengthAdjust: IJSSVGAnimatedEnumeration read _GetlengthAdjust;
  71044. end;
  71045. TJSSVGTextContentElement = class(TJSSVGGraphicsElement,IJSSVGTextContentElement)
  71046. Protected
  71047. function _GettextLength: IJSSVGAnimatedLength;
  71048. function _GetlengthAdjust: IJSSVGAnimatedEnumeration;
  71049. Public
  71050. Const
  71051. LENGTHADJUST_UNKNOWN = 0;
  71052. LENGTHADJUST_SPACING = 1;
  71053. LENGTHADJUST_SPACINGANDGLYPHS = 2;
  71054. Public
  71055. function getNumberOfChars: LongInt; overload;
  71056. function getComputedTextLength: Single; overload;
  71057. function getSubStringLength(aCharnum: Cardinal; aNchars: Cardinal): Single; overload;
  71058. function getStartPositionOfChar(aCharnum: Cardinal): IJSSVGPoint; overload;
  71059. function getEndPositionOfChar(aCharnum: Cardinal): IJSSVGPoint; overload;
  71060. function getExtentOfChar(aCharnum: Cardinal): IJSSVGRect; overload;
  71061. function getRotationOfChar(aCharnum: Cardinal): Single; overload;
  71062. function getCharNumAtPosition(const aPoint: TJSDOMPointInit): LongInt; overload;
  71063. function getCharNumAtPosition: LongInt; overload;
  71064. procedure selectSubString(aCharnum: Cardinal; aNchars: Cardinal); overload;
  71065. class function JSClassName: UnicodeString; override;
  71066. class function Cast(const Intf: IJSObject): IJSSVGTextContentElement;
  71067. property textLength: IJSSVGAnimatedLength read _GettextLength;
  71068. property lengthAdjust: IJSSVGAnimatedEnumeration read _GetlengthAdjust;
  71069. end;
  71070. { --------------------------------------------------------------------
  71071. TJSSVGUseElement
  71072. --------------------------------------------------------------------}
  71073. IJSSVGUseElement = interface(IJSSVGGraphicsElement)
  71074. ['{48237984-47B6-362C-B827-81C3E802F0F1}']
  71075. function _Getx: IJSSVGAnimatedLength;
  71076. function _Gety: IJSSVGAnimatedLength;
  71077. function _Getwidth: IJSSVGAnimatedLength;
  71078. function _Getheight: IJSSVGAnimatedLength;
  71079. function _Gethref: IJSSVGAnimatedString;
  71080. property x: IJSSVGAnimatedLength read _Getx;
  71081. property y: IJSSVGAnimatedLength read _Gety;
  71082. property width: IJSSVGAnimatedLength read _Getwidth;
  71083. property height: IJSSVGAnimatedLength read _Getheight;
  71084. property href: IJSSVGAnimatedString read _Gethref;
  71085. end;
  71086. TJSSVGUseElement = class(TJSSVGGraphicsElement,IJSSVGUseElement)
  71087. Protected
  71088. function _Getx: IJSSVGAnimatedLength;
  71089. function _Gety: IJSSVGAnimatedLength;
  71090. function _Getwidth: IJSSVGAnimatedLength;
  71091. function _Getheight: IJSSVGAnimatedLength;
  71092. function _Gethref: IJSSVGAnimatedString;
  71093. Public
  71094. class function JSClassName: UnicodeString; override;
  71095. class function Cast(const Intf: IJSObject): IJSSVGUseElement;
  71096. property x: IJSSVGAnimatedLength read _Getx;
  71097. property y: IJSSVGAnimatedLength read _Gety;
  71098. property width: IJSSVGAnimatedLength read _Getwidth;
  71099. property height: IJSSVGAnimatedLength read _Getheight;
  71100. property href: IJSSVGAnimatedString read _Gethref;
  71101. end;
  71102. { --------------------------------------------------------------------
  71103. TJSSVGCircleElement
  71104. --------------------------------------------------------------------}
  71105. IJSSVGCircleElement = interface(IJSSVGGeometryElement)
  71106. ['{5A49EC7E-86AB-3235-A59C-0C503A8B4941}']
  71107. function _Getcx: IJSSVGAnimatedLength;
  71108. function _Getcy: IJSSVGAnimatedLength;
  71109. function _Getr: IJSSVGAnimatedLength;
  71110. property cx: IJSSVGAnimatedLength read _Getcx;
  71111. property cy: IJSSVGAnimatedLength read _Getcy;
  71112. property r: IJSSVGAnimatedLength read _Getr;
  71113. end;
  71114. TJSSVGCircleElement = class(TJSSVGGeometryElement,IJSSVGCircleElement)
  71115. Protected
  71116. function _Getcx: IJSSVGAnimatedLength;
  71117. function _Getcy: IJSSVGAnimatedLength;
  71118. function _Getr: IJSSVGAnimatedLength;
  71119. Public
  71120. class function JSClassName: UnicodeString; override;
  71121. class function Cast(const Intf: IJSObject): IJSSVGCircleElement;
  71122. property cx: IJSSVGAnimatedLength read _Getcx;
  71123. property cy: IJSSVGAnimatedLength read _Getcy;
  71124. property r: IJSSVGAnimatedLength read _Getr;
  71125. end;
  71126. { --------------------------------------------------------------------
  71127. TJSSVGEllipseElement
  71128. --------------------------------------------------------------------}
  71129. IJSSVGEllipseElement = interface(IJSSVGGeometryElement)
  71130. ['{877EB2B3-98D0-3FDA-B60C-3922675BB7A1}']
  71131. function _Getcx: IJSSVGAnimatedLength;
  71132. function _Getcy: IJSSVGAnimatedLength;
  71133. function _Getrx: IJSSVGAnimatedLength;
  71134. function _Getry: IJSSVGAnimatedLength;
  71135. property cx: IJSSVGAnimatedLength read _Getcx;
  71136. property cy: IJSSVGAnimatedLength read _Getcy;
  71137. property rx: IJSSVGAnimatedLength read _Getrx;
  71138. property ry: IJSSVGAnimatedLength read _Getry;
  71139. end;
  71140. TJSSVGEllipseElement = class(TJSSVGGeometryElement,IJSSVGEllipseElement)
  71141. Protected
  71142. function _Getcx: IJSSVGAnimatedLength;
  71143. function _Getcy: IJSSVGAnimatedLength;
  71144. function _Getrx: IJSSVGAnimatedLength;
  71145. function _Getry: IJSSVGAnimatedLength;
  71146. Public
  71147. class function JSClassName: UnicodeString; override;
  71148. class function Cast(const Intf: IJSObject): IJSSVGEllipseElement;
  71149. property cx: IJSSVGAnimatedLength read _Getcx;
  71150. property cy: IJSSVGAnimatedLength read _Getcy;
  71151. property rx: IJSSVGAnimatedLength read _Getrx;
  71152. property ry: IJSSVGAnimatedLength read _Getry;
  71153. end;
  71154. { --------------------------------------------------------------------
  71155. TJSSVGLineElement
  71156. --------------------------------------------------------------------}
  71157. IJSSVGLineElement = interface(IJSSVGGeometryElement)
  71158. ['{8172F84E-3CC2-3883-9921-D1A97D0D95D2}']
  71159. function _Getx1: IJSSVGAnimatedLength;
  71160. function _Gety1: IJSSVGAnimatedLength;
  71161. function _Getx2: IJSSVGAnimatedLength;
  71162. function _Gety2: IJSSVGAnimatedLength;
  71163. property x1: IJSSVGAnimatedLength read _Getx1;
  71164. property y1: IJSSVGAnimatedLength read _Gety1;
  71165. property x2: IJSSVGAnimatedLength read _Getx2;
  71166. property y2: IJSSVGAnimatedLength read _Gety2;
  71167. end;
  71168. TJSSVGLineElement = class(TJSSVGGeometryElement,IJSSVGLineElement)
  71169. Protected
  71170. function _Getx1: IJSSVGAnimatedLength;
  71171. function _Gety1: IJSSVGAnimatedLength;
  71172. function _Getx2: IJSSVGAnimatedLength;
  71173. function _Gety2: IJSSVGAnimatedLength;
  71174. Public
  71175. class function JSClassName: UnicodeString; override;
  71176. class function Cast(const Intf: IJSObject): IJSSVGLineElement;
  71177. property x1: IJSSVGAnimatedLength read _Getx1;
  71178. property y1: IJSSVGAnimatedLength read _Gety1;
  71179. property x2: IJSSVGAnimatedLength read _Getx2;
  71180. property y2: IJSSVGAnimatedLength read _Gety2;
  71181. end;
  71182. { --------------------------------------------------------------------
  71183. TJSSVGPathElement
  71184. --------------------------------------------------------------------}
  71185. IJSSVGPathElement = interface(IJSSVGGeometryElement)
  71186. ['{639003CB-3F37-3402-8DC2-6481C744FB26}']
  71187. function _GetpathSegList: IJSSVGPathSegList;
  71188. function _GetanimatedPathSegList: IJSSVGPathSegList;
  71189. function getPathSegAtLength(aDistance: Single): Cardinal;
  71190. property pathSegList: IJSSVGPathSegList read _GetpathSegList;
  71191. property animatedPathSegList: IJSSVGPathSegList read _GetanimatedPathSegList;
  71192. end;
  71193. TJSSVGPathElement = class(TJSSVGGeometryElement,IJSSVGPathElement)
  71194. Protected
  71195. function _GetpathSegList: IJSSVGPathSegList;
  71196. function _GetanimatedPathSegList: IJSSVGPathSegList;
  71197. Public
  71198. function getPathSegAtLength(aDistance: Single): Cardinal; overload;
  71199. class function JSClassName: UnicodeString; override;
  71200. class function Cast(const Intf: IJSObject): IJSSVGPathElement;
  71201. property pathSegList: IJSSVGPathSegList read _GetpathSegList;
  71202. property animatedPathSegList: IJSSVGPathSegList read _GetanimatedPathSegList;
  71203. end;
  71204. { --------------------------------------------------------------------
  71205. TJSSVGPolygonElement
  71206. --------------------------------------------------------------------}
  71207. IJSSVGPolygonElement = interface(IJSSVGGeometryElement)
  71208. ['{B888B192-39EB-387A-A5D7-C9BB542F5B98}']
  71209. function _Getpoints: IJSSVGPointList;
  71210. function _GetanimatedPoints: IJSSVGPointList;
  71211. property points: IJSSVGPointList read _Getpoints;
  71212. property animatedPoints: IJSSVGPointList read _GetanimatedPoints;
  71213. end;
  71214. TJSSVGPolygonElement = class(TJSSVGGeometryElement,IJSSVGPolygonElement)
  71215. Protected
  71216. function _Getpoints: IJSSVGPointList;
  71217. function _GetanimatedPoints: IJSSVGPointList;
  71218. Public
  71219. class function JSClassName: UnicodeString; override;
  71220. class function Cast(const Intf: IJSObject): IJSSVGPolygonElement;
  71221. property points: IJSSVGPointList read _Getpoints;
  71222. property animatedPoints: IJSSVGPointList read _GetanimatedPoints;
  71223. end;
  71224. { --------------------------------------------------------------------
  71225. TJSSVGPolylineElement
  71226. --------------------------------------------------------------------}
  71227. IJSSVGPolylineElement = interface(IJSSVGGeometryElement)
  71228. ['{28295BED-D3E7-3796-9351-E25F06BD8D09}']
  71229. function _Getpoints: IJSSVGPointList;
  71230. function _GetanimatedPoints: IJSSVGPointList;
  71231. property points: IJSSVGPointList read _Getpoints;
  71232. property animatedPoints: IJSSVGPointList read _GetanimatedPoints;
  71233. end;
  71234. TJSSVGPolylineElement = class(TJSSVGGeometryElement,IJSSVGPolylineElement)
  71235. Protected
  71236. function _Getpoints: IJSSVGPointList;
  71237. function _GetanimatedPoints: IJSSVGPointList;
  71238. Public
  71239. class function JSClassName: UnicodeString; override;
  71240. class function Cast(const Intf: IJSObject): IJSSVGPolylineElement;
  71241. property points: IJSSVGPointList read _Getpoints;
  71242. property animatedPoints: IJSSVGPointList read _GetanimatedPoints;
  71243. end;
  71244. { --------------------------------------------------------------------
  71245. TJSSVGRectElement
  71246. --------------------------------------------------------------------}
  71247. IJSSVGRectElement = interface(IJSSVGGeometryElement)
  71248. ['{D2621557-C919-38AC-A382-80A5FCD2BA3E}']
  71249. function _Getx: IJSSVGAnimatedLength;
  71250. function _Gety: IJSSVGAnimatedLength;
  71251. function _Getwidth: IJSSVGAnimatedLength;
  71252. function _Getheight: IJSSVGAnimatedLength;
  71253. function _Getrx: IJSSVGAnimatedLength;
  71254. function _Getry: IJSSVGAnimatedLength;
  71255. property x: IJSSVGAnimatedLength read _Getx;
  71256. property y: IJSSVGAnimatedLength read _Gety;
  71257. property width: IJSSVGAnimatedLength read _Getwidth;
  71258. property height: IJSSVGAnimatedLength read _Getheight;
  71259. property rx: IJSSVGAnimatedLength read _Getrx;
  71260. property ry: IJSSVGAnimatedLength read _Getry;
  71261. end;
  71262. TJSSVGRectElement = class(TJSSVGGeometryElement,IJSSVGRectElement)
  71263. Protected
  71264. function _Getx: IJSSVGAnimatedLength;
  71265. function _Gety: IJSSVGAnimatedLength;
  71266. function _Getwidth: IJSSVGAnimatedLength;
  71267. function _Getheight: IJSSVGAnimatedLength;
  71268. function _Getrx: IJSSVGAnimatedLength;
  71269. function _Getry: IJSSVGAnimatedLength;
  71270. Public
  71271. class function JSClassName: UnicodeString; override;
  71272. class function Cast(const Intf: IJSObject): IJSSVGRectElement;
  71273. property x: IJSSVGAnimatedLength read _Getx;
  71274. property y: IJSSVGAnimatedLength read _Gety;
  71275. property width: IJSSVGAnimatedLength read _Getwidth;
  71276. property height: IJSSVGAnimatedLength read _Getheight;
  71277. property rx: IJSSVGAnimatedLength read _Getrx;
  71278. property ry: IJSSVGAnimatedLength read _Getry;
  71279. end;
  71280. { --------------------------------------------------------------------
  71281. TJSSVGTextPathElement
  71282. --------------------------------------------------------------------}
  71283. IJSSVGTextPathElement = interface(IJSSVGTextContentElement)
  71284. ['{4A52B5A8-39B3-3B38-B6AF-B78419E1DE6E}']
  71285. function _GetstartOffset: IJSSVGAnimatedLength;
  71286. function _Getmethod: IJSSVGAnimatedEnumeration;
  71287. function _Getspacing: IJSSVGAnimatedEnumeration;
  71288. function _Gethref: IJSSVGAnimatedString;
  71289. property startOffset: IJSSVGAnimatedLength read _GetstartOffset;
  71290. property method: IJSSVGAnimatedEnumeration read _Getmethod;
  71291. property spacing: IJSSVGAnimatedEnumeration read _Getspacing;
  71292. property href: IJSSVGAnimatedString read _Gethref;
  71293. end;
  71294. TJSSVGTextPathElement = class(TJSSVGTextContentElement,IJSSVGTextPathElement)
  71295. Protected
  71296. function _GetstartOffset: IJSSVGAnimatedLength;
  71297. function _Getmethod: IJSSVGAnimatedEnumeration;
  71298. function _Getspacing: IJSSVGAnimatedEnumeration;
  71299. function _Gethref: IJSSVGAnimatedString;
  71300. Public
  71301. Const
  71302. TEXTPATH_METHODTYPE_UNKNOWN = 0;
  71303. TEXTPATH_METHODTYPE_ALIGN = 1;
  71304. TEXTPATH_METHODTYPE_STRETCH = 2;
  71305. TEXTPATH_SPACINGTYPE_UNKNOWN = 0;
  71306. TEXTPATH_SPACINGTYPE_AUTO = 1;
  71307. TEXTPATH_SPACINGTYPE_EXACT = 2;
  71308. Public
  71309. class function JSClassName: UnicodeString; override;
  71310. class function Cast(const Intf: IJSObject): IJSSVGTextPathElement;
  71311. property startOffset: IJSSVGAnimatedLength read _GetstartOffset;
  71312. property method: IJSSVGAnimatedEnumeration read _Getmethod;
  71313. property spacing: IJSSVGAnimatedEnumeration read _Getspacing;
  71314. property href: IJSSVGAnimatedString read _Gethref;
  71315. end;
  71316. { --------------------------------------------------------------------
  71317. TJSSVGTextPositioningElement
  71318. --------------------------------------------------------------------}
  71319. IJSSVGTextPositioningElement = interface(IJSSVGTextContentElement)
  71320. ['{A1C5E787-6EF9-38FF-A989-C0B757723BB6}']
  71321. function _Getx: IJSSVGAnimatedLengthList;
  71322. function _Gety: IJSSVGAnimatedLengthList;
  71323. function _Getdx: IJSSVGAnimatedLengthList;
  71324. function _Getdy: IJSSVGAnimatedLengthList;
  71325. function _Getrotate: IJSSVGAnimatedNumberList;
  71326. property x: IJSSVGAnimatedLengthList read _Getx;
  71327. property y: IJSSVGAnimatedLengthList read _Gety;
  71328. property dx: IJSSVGAnimatedLengthList read _Getdx;
  71329. property dy: IJSSVGAnimatedLengthList read _Getdy;
  71330. property rotate: IJSSVGAnimatedNumberList read _Getrotate;
  71331. end;
  71332. TJSSVGTextPositioningElement = class(TJSSVGTextContentElement,IJSSVGTextPositioningElement)
  71333. Protected
  71334. function _Getx: IJSSVGAnimatedLengthList;
  71335. function _Gety: IJSSVGAnimatedLengthList;
  71336. function _Getdx: IJSSVGAnimatedLengthList;
  71337. function _Getdy: IJSSVGAnimatedLengthList;
  71338. function _Getrotate: IJSSVGAnimatedNumberList;
  71339. Public
  71340. class function JSClassName: UnicodeString; override;
  71341. class function Cast(const Intf: IJSObject): IJSSVGTextPositioningElement;
  71342. property x: IJSSVGAnimatedLengthList read _Getx;
  71343. property y: IJSSVGAnimatedLengthList read _Gety;
  71344. property dx: IJSSVGAnimatedLengthList read _Getdx;
  71345. property dy: IJSSVGAnimatedLengthList read _Getdy;
  71346. property rotate: IJSSVGAnimatedNumberList read _Getrotate;
  71347. end;
  71348. { --------------------------------------------------------------------
  71349. TJSSVGTextElement
  71350. --------------------------------------------------------------------}
  71351. IJSSVGTextElement = interface(IJSSVGTextPositioningElement)
  71352. ['{282F891D-E70E-3A95-B4AA-5546E69449FB}']
  71353. end;
  71354. TJSSVGTextElement = class(TJSSVGTextPositioningElement,IJSSVGTextElement)
  71355. Protected
  71356. Public
  71357. class function JSClassName: UnicodeString; override;
  71358. class function Cast(const Intf: IJSObject): IJSSVGTextElement;
  71359. end;
  71360. { --------------------------------------------------------------------
  71361. TJSSVGTSpanElement
  71362. --------------------------------------------------------------------}
  71363. IJSSVGTSpanElement = interface(IJSSVGTextPositioningElement)
  71364. ['{3EA981B2-A2A9-3463-B9B9-72A83D40BE67}']
  71365. end;
  71366. TJSSVGTSpanElement = class(TJSSVGTextPositioningElement,IJSSVGTSpanElement)
  71367. Protected
  71368. Public
  71369. class function JSClassName: UnicodeString; override;
  71370. class function Cast(const Intf: IJSObject): IJSSVGTSpanElement;
  71371. end;
  71372. { --------------------------------------------------------------------
  71373. TJSAPZHitResultFlags
  71374. --------------------------------------------------------------------}
  71375. IJSAPZHitResultFlags = interface(IJSObject)
  71376. ['{91386298-DC46-3314-B59D-C8A3FC8F8DA7}']
  71377. end;
  71378. TJSAPZHitResultFlags = class(TJSObject,IJSAPZHitResultFlags)
  71379. Protected
  71380. Public
  71381. Const
  71382. INVISIBLE = 0;
  71383. VISIBLE = $0001;
  71384. IRREGULAR_AREA = $0002;
  71385. APZ_AWARE_LISTENERS = $0004;
  71386. INACTIVE_SCROLLFRAME = $0008;
  71387. PAN_X_DISABLED = $0010;
  71388. PAN_Y_DISABLED = $0020;
  71389. PINCH_ZOOM_DISABLED = $0040;
  71390. DOUBLE_TAP_ZOOM_DISABLED = $0080;
  71391. SCROLLBAR = $0100;
  71392. SCROLLBAR_THUMB = $0200;
  71393. SCROLLBAR_VERTICAL = $0400;
  71394. REQUIRES_TARGET_CONFIRMATION = $0800;
  71395. Public
  71396. class function JSClassName: UnicodeString; override;
  71397. class function Cast(const Intf: IJSObject): IJSAPZHitResultFlags;
  71398. end;
  71399. { --------------------------------------------------------------------
  71400. TJSconsole
  71401. --------------------------------------------------------------------}
  71402. IJSconsole = interface(IJSObject)
  71403. ['{78F09AC8-33CB-3693-94DC-A6DEC66C9D25}']
  71404. procedure assert(aCondition: Boolean; const aData: Variant){; ToDo:varargs};
  71405. procedure assert{; ToDo:varargs};
  71406. procedure clear;
  71407. procedure count(const aLabel_: UnicodeString);
  71408. procedure count;
  71409. procedure countReset(const aLabel_: UnicodeString);
  71410. procedure countReset;
  71411. procedure debug(const aData: Variant){; ToDo:varargs};
  71412. procedure error(const aData: Variant){; ToDo:varargs};
  71413. procedure info(const aData: Variant){; ToDo:varargs};
  71414. procedure log(const aData: Variant){; ToDo:varargs};
  71415. procedure table(const aData: Variant){; ToDo:varargs};
  71416. procedure trace(const aData: Variant){; ToDo:varargs};
  71417. procedure warn(const aData: Variant){; ToDo:varargs};
  71418. procedure dir(const aData: Variant){; ToDo:varargs};
  71419. procedure dirxml(const aData: Variant){; ToDo:varargs};
  71420. procedure group(const aData: Variant){; ToDo:varargs};
  71421. procedure groupCollapsed(const aData: Variant){; ToDo:varargs};
  71422. procedure groupEnd;
  71423. procedure time(const aLabel_: UnicodeString);
  71424. procedure time;
  71425. procedure timeLog(const aLabel_: UnicodeString; const aData: Variant){; ToDo:varargs};
  71426. procedure timeLog{; ToDo:varargs};
  71427. procedure timeEnd(const aLabel_: UnicodeString);
  71428. procedure timeEnd;
  71429. procedure exception(const aData: Variant){; ToDo:varargs};
  71430. procedure timeStamp(const aData: Variant);
  71431. procedure timeStamp;
  71432. procedure profile(const aData: Variant){; ToDo:varargs};
  71433. procedure profileEnd(const aData: Variant){; ToDo:varargs};
  71434. end;
  71435. TJSconsole = class(TJSObject,IJSconsole)
  71436. Protected
  71437. Public
  71438. procedure assert(aCondition: Boolean; const aData: Variant){; ToDo:varargs}; overload;
  71439. procedure assert{; ToDo:varargs}; overload;
  71440. procedure clear; overload;
  71441. procedure count(const aLabel_: UnicodeString); overload;
  71442. procedure count; overload;
  71443. procedure countReset(const aLabel_: UnicodeString); overload;
  71444. procedure countReset; overload;
  71445. procedure debug(const aData: Variant){; ToDo:varargs}; overload;
  71446. procedure error(const aData: Variant){; ToDo:varargs}; overload;
  71447. procedure info(const aData: Variant){; ToDo:varargs}; overload;
  71448. procedure log(const aData: Variant){; ToDo:varargs}; overload;
  71449. procedure table(const aData: Variant){; ToDo:varargs}; overload;
  71450. procedure trace(const aData: Variant){; ToDo:varargs}; overload;
  71451. procedure warn(const aData: Variant){; ToDo:varargs}; overload;
  71452. procedure dir(const aData: Variant){; ToDo:varargs}; overload;
  71453. procedure dirxml(const aData: Variant){; ToDo:varargs}; overload;
  71454. procedure group(const aData: Variant){; ToDo:varargs}; overload;
  71455. procedure groupCollapsed(const aData: Variant){; ToDo:varargs}; overload;
  71456. procedure groupEnd; overload;
  71457. procedure time(const aLabel_: UnicodeString); overload;
  71458. procedure time; overload;
  71459. procedure timeLog(const aLabel_: UnicodeString; const aData: Variant){; ToDo:varargs}; overload;
  71460. procedure timeLog{; ToDo:varargs}; overload;
  71461. procedure timeEnd(const aLabel_: UnicodeString); overload;
  71462. procedure timeEnd; overload;
  71463. procedure exception(const aData: Variant){; ToDo:varargs}; overload;
  71464. procedure timeStamp(const aData: Variant); overload;
  71465. procedure timeStamp; overload;
  71466. procedure profile(const aData: Variant){; ToDo:varargs}; overload;
  71467. procedure profileEnd(const aData: Variant){; ToDo:varargs}; overload;
  71468. class function JSClassName: UnicodeString; override;
  71469. class function Cast(const Intf: IJSObject): IJSconsole;
  71470. end;
  71471. { --------------------------------------------------------------------
  71472. TJSCSS
  71473. --------------------------------------------------------------------}
  71474. IJSCSS = interface(IJSObject)
  71475. ['{D5A0C307-9088-3817-9A58-3D9211ACC6FA}']
  71476. function _Gethighlights: IJSHighlightRegistry;
  71477. function supports(const aProperty_: UTF8String; const aValue: UTF8String): Boolean;
  71478. function supports(const aConditionText: UTF8String): Boolean;
  71479. function escape(const aIdent: UnicodeString): UnicodeString;
  71480. procedure registerProperty(const aDefinition: TJSPropertyDefinition);
  71481. property highlights: IJSHighlightRegistry read _Gethighlights;
  71482. end;
  71483. TJSCSS = class(TJSObject,IJSCSS)
  71484. Protected
  71485. function _Gethighlights: IJSHighlightRegistry;
  71486. Public
  71487. function supports(const aProperty_: UTF8String; const aValue: UTF8String): Boolean; overload;
  71488. function supports(const aConditionText: UTF8String): Boolean; overload;
  71489. function escape(const aIdent: UnicodeString): UnicodeString; overload;
  71490. procedure registerProperty(const aDefinition: TJSPropertyDefinition); overload;
  71491. class function JSClassName: UnicodeString; override;
  71492. class function Cast(const Intf: IJSObject): IJSCSS;
  71493. property highlights: IJSHighlightRegistry read _Gethighlights;
  71494. end;
  71495. { --------------------------------------------------------------------
  71496. TJSFuzzingFunctions
  71497. --------------------------------------------------------------------}
  71498. IJSFuzzingFunctions = interface(IJSObject)
  71499. ['{131F30D4-9CE0-3D46-968E-6E8DF400A2AC}']
  71500. procedure garbageCollect;
  71501. procedure garbageCollectCompacting;
  71502. procedure crash(const aReason: UnicodeString);
  71503. procedure crash;
  71504. procedure cycleCollect;
  71505. procedure memoryPressure;
  71506. procedure enableAccessibility;
  71507. procedure signalIPCReady;
  71508. procedure synthesizeKeyboardEvents(const aAKeyValue: UnicodeString; const aADictionary: TJSKeyboardEventInit);
  71509. procedure synthesizeKeyboardEvents(const aAKeyValue: UnicodeString);
  71510. end;
  71511. TJSFuzzingFunctions = class(TJSObject,IJSFuzzingFunctions)
  71512. Protected
  71513. Public
  71514. procedure garbageCollect; overload;
  71515. procedure garbageCollectCompacting; overload;
  71516. procedure crash(const aReason: UnicodeString); overload;
  71517. procedure crash; overload;
  71518. procedure cycleCollect; overload;
  71519. procedure memoryPressure; overload;
  71520. procedure enableAccessibility; overload;
  71521. procedure signalIPCReady; overload;
  71522. procedure synthesizeKeyboardEvents(const aAKeyValue: UnicodeString; const aADictionary: TJSKeyboardEventInit); overload;
  71523. procedure synthesizeKeyboardEvents(const aAKeyValue: UnicodeString); overload;
  71524. class function JSClassName: UnicodeString; override;
  71525. class function Cast(const Intf: IJSObject): IJSFuzzingFunctions;
  71526. end;
  71527. { --------------------------------------------------------------------
  71528. TJSTestUtils
  71529. --------------------------------------------------------------------}
  71530. IJSTestUtils = interface(IJSObject)
  71531. ['{338287FF-0A0E-35E9-9869-8DD15390C552}']
  71532. function gc: IJSPromise; // Promise<undefined>
  71533. end;
  71534. TJSTestUtils = class(TJSObject,IJSTestUtils)
  71535. Protected
  71536. Public
  71537. function gc: IJSPromise; overload; // Promise<undefined>
  71538. class function JSClassName: UnicodeString; override;
  71539. class function Cast(const Intf: IJSObject): IJSTestUtils;
  71540. end;
  71541. { --------------------------------------------------------------------
  71542. TJSWorkerTestUtils
  71543. --------------------------------------------------------------------}
  71544. IJSWorkerTestUtils = interface(IJSObject)
  71545. ['{72904EE2-D8D0-3BEF-BF54-DA6E3656C1F3}']
  71546. function currentTimerNestingLevel: Cardinal;
  71547. end;
  71548. TJSWorkerTestUtils = class(TJSObject,IJSWorkerTestUtils)
  71549. Protected
  71550. Public
  71551. function currentTimerNestingLevel: Cardinal; overload;
  71552. class function JSClassName: UnicodeString; override;
  71553. class function Cast(const Intf: IJSObject): IJSWorkerTestUtils;
  71554. end;
  71555. var
  71556. JSDocument: TJSDocument;
  71557. JSWindow: TJSWindow;
  71558. // Namespaces
  71559. APZHitResultFlags: IJSAPZHitResultFlags;
  71560. console: IJSconsole;
  71561. CSS: IJSCSS;
  71562. FuzzingFunctions: IJSFuzzingFunctions;
  71563. TestUtils: IJSTestUtils;
  71564. WorkerTestUtils: IJSWorkerTestUtils;
  71565. implementation
  71566. function JOBCallFrameRequestCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71567. var
  71568. time: TDOMHighResTimeStamp;
  71569. begin
  71570. time:=H.GetDouble;
  71571. TFrameRequestCallback(aMethod)(time);
  71572. Result:=H.AllocUndefined;
  71573. end;
  71574. function JOBCallAudioDataOutputCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71575. var
  71576. output: IJSAudioData;
  71577. begin
  71578. output:=H.GetObject(TJSAudioData) as IJSAudioData;
  71579. TAudioDataOutputCallback(aMethod)(output);
  71580. Result:=H.AllocUndefined;
  71581. end;
  71582. function JOBCallEncodedAudioChunkOutputCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71583. var
  71584. output: IJSEncodedAudioChunk;
  71585. metadata: TJSEncodedAudioChunkMetadata;
  71586. begin
  71587. output:=H.GetObject(TJSEncodedAudioChunk) as IJSEncodedAudioChunk;
  71588. metadata:=H.GetObject(TJSObject) as TJSEncodedAudioChunkMetadata;
  71589. TEncodedAudioChunkOutputCallback(aMethod)(output,metadata);
  71590. Result:=H.AllocUndefined;
  71591. end;
  71592. function JOBCallAudioWorkletProcessorConstructor(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71593. var
  71594. options: IJSObject;
  71595. begin
  71596. options:=H.GetObject(TJSObject) as IJSObject;
  71597. Result:=H.AllocIntf(TAudioWorkletProcessorConstructor(aMethod)(options));
  71598. end;
  71599. function JOBCallDecodeSuccessCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71600. var
  71601. decodedData: IJSAudioBuffer;
  71602. begin
  71603. decodedData:=H.GetObject(TJSAudioBuffer) as IJSAudioBuffer;
  71604. TDecodeSuccessCallback(aMethod)(decodedData);
  71605. Result:=H.AllocUndefined;
  71606. end;
  71607. function JOBCallDecodeErrorCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71608. var
  71609. error: IJSError;
  71610. begin
  71611. error:=H.GetObject(TJSDOMException) as IJSError;
  71612. TDecodeErrorCallback(aMethod)(error);
  71613. Result:=H.AllocUndefined;
  71614. end;
  71615. function JOBCallCustomElementConstructor(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71616. begin
  71617. Result:=H.AllocVariant(TCustomElementConstructor(aMethod)());
  71618. end;
  71619. function JOBCallCustomElementCreationCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71620. var
  71621. name: UnicodeString;
  71622. begin
  71623. name:=H.GetString;
  71624. TCustomElementCreationCallback(aMethod)(name);
  71625. Result:=H.AllocUndefined;
  71626. end;
  71627. function JOBCallLifecycleConnectedCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71628. begin
  71629. TLifecycleConnectedCallback(aMethod)();
  71630. Result:=H.AllocUndefined;
  71631. end;
  71632. function JOBCallLifecycleDisconnectedCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71633. begin
  71634. TLifecycleDisconnectedCallback(aMethod)();
  71635. Result:=H.AllocUndefined;
  71636. end;
  71637. function JOBCallLifecycleAdoptedCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71638. var
  71639. oldDocument: IJSDocument;
  71640. newDocment: IJSDocument;
  71641. begin
  71642. oldDocument:=H.GetObject(TJSDocument) as IJSDocument;
  71643. newDocment:=H.GetObject(TJSDocument) as IJSDocument;
  71644. TLifecycleAdoptedCallback(aMethod)(oldDocument,newDocment);
  71645. Result:=H.AllocUndefined;
  71646. end;
  71647. function JOBCallLifecycleAttributeChangedCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71648. var
  71649. attrName: UnicodeString;
  71650. oldValue: UnicodeString;
  71651. newValue: UnicodeString;
  71652. namespaceURI: UnicodeString;
  71653. begin
  71654. attrName:=H.GetString;
  71655. oldValue:=H.GetString;
  71656. newValue:=H.GetString;
  71657. namespaceURI:=H.GetString;
  71658. TLifecycleAttributeChangedCallback(aMethod)(attrName,oldValue,newValue,namespaceURI);
  71659. Result:=H.AllocUndefined;
  71660. end;
  71661. function JOBCallLifecycleFormAssociatedCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71662. var
  71663. form: IJSHTMLFormElement;
  71664. begin
  71665. form:=H.GetObject(TJSHTMLFormElement) as IJSHTMLFormElement;
  71666. TLifecycleFormAssociatedCallback(aMethod)(form);
  71667. Result:=H.AllocUndefined;
  71668. end;
  71669. function JOBCallLifecycleFormResetCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71670. begin
  71671. TLifecycleFormResetCallback(aMethod)();
  71672. Result:=H.AllocUndefined;
  71673. end;
  71674. function JOBCallLifecycleFormDisabledCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71675. var
  71676. disabled: Boolean;
  71677. begin
  71678. disabled:=H.GetBoolean;
  71679. TLifecycleFormDisabledCallback(aMethod)(disabled);
  71680. Result:=H.AllocUndefined;
  71681. end;
  71682. function JOBCallLifecycleFormStateRestoreCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71683. var
  71684. state: TLifecycleFormStateRestoreCallback_state_Type;
  71685. reason: TRestoreReason;
  71686. begin
  71687. state:=H.GetVariant;
  71688. reason:=H.GetString;
  71689. TLifecycleFormStateRestoreCallback(aMethod)(state,reason);
  71690. Result:=H.AllocUndefined;
  71691. end;
  71692. function JOBCallLifecycleGetCustomInterfaceCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71693. var
  71694. iid: Variant;
  71695. begin
  71696. iid:=H.GetVariant;
  71697. Result:=H.AllocIntf(TLifecycleGetCustomInterfaceCallback(aMethod)(iid));
  71698. end;
  71699. function JOBCallFunctionStringCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71700. var
  71701. data: UnicodeString;
  71702. begin
  71703. data:=H.GetString;
  71704. TFunctionStringCallback(aMethod)(data);
  71705. Result:=H.AllocUndefined;
  71706. end;
  71707. function JOBCallEventHandlerNonNull(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71708. var
  71709. event: IJSEvent;
  71710. begin
  71711. event:=H.GetObject(TJSEvent) as IJSEvent;
  71712. Result:=H.AllocVariant(TEventHandlerNonNull(aMethod)(event));
  71713. end;
  71714. function JOBCallOnBeforeUnloadEventHandlerNonNull(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71715. var
  71716. event: IJSEvent;
  71717. begin
  71718. event:=H.GetObject(TJSEvent) as IJSEvent;
  71719. Result:=H.AllocString(TOnBeforeUnloadEventHandlerNonNull(aMethod)(event));
  71720. end;
  71721. function JOBCallOnErrorEventHandlerNonNull(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71722. var
  71723. event: TOnErrorEventHandlerNonNull_event_Type;
  71724. source: UnicodeString;
  71725. lineno: Cardinal;
  71726. column: Cardinal;
  71727. error: Variant;
  71728. begin
  71729. event:=H.GetVariant;
  71730. source:=H.GetString;
  71731. lineno:=H.GetMaxInt;
  71732. column:=H.GetMaxInt;
  71733. error:=H.GetVariant;
  71734. Result:=H.AllocVariant(TOnErrorEventHandlerNonNull(aMethod)(event,source,lineno,column,error));
  71735. end;
  71736. function JOBCallFileSystemEntryCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71737. var
  71738. entry: IJSFileSystemEntry;
  71739. begin
  71740. entry:=H.GetObject(TJSFileSystemEntry) as IJSFileSystemEntry;
  71741. TFileSystemEntryCallback(aMethod)(entry);
  71742. Result:=H.AllocUndefined;
  71743. end;
  71744. function JOBCallErrorCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71745. var
  71746. err: IJSError;
  71747. begin
  71748. err:=H.GetObject(TJSDOMException) as IJSError;
  71749. TErrorCallback(aMethod)(err);
  71750. Result:=H.AllocUndefined;
  71751. end;
  71752. function JOBCallFileSystemEntriesCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71753. var
  71754. entries: TJSFileSystemEntryDynArray;
  71755. begin
  71756. entries:=H.GetObject(TJSArray) as IJSArray;
  71757. TFileSystemEntriesCallback(aMethod)(entries);
  71758. Result:=H.AllocUndefined;
  71759. end;
  71760. function JOBCallFileCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71761. var
  71762. file_: IJSFile;
  71763. begin
  71764. file_:=H.GetObject(TJSFile) as IJSFile;
  71765. TFileCallback(aMethod)(file_);
  71766. Result:=H.AllocUndefined;
  71767. end;
  71768. function JOBCallFinalizationRegistryCleanupCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71769. begin
  71770. TFinalizationRegistryCleanupCallback(aMethod)();
  71771. Result:=H.AllocUndefined;
  71772. end;
  71773. function JOBCallFontFaceSetForEachCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71774. var
  71775. value: IJSFontFace;
  71776. key: IJSFontFace;
  71777. set_: IJSFontFaceSet;
  71778. begin
  71779. value:=H.GetObject(TJSFontFace) as IJSFontFace;
  71780. key:=H.GetObject(TJSFontFace) as IJSFontFace;
  71781. set_:=H.GetObject(TJSFontFaceSet) as IJSFontFaceSet;
  71782. TFontFaceSetForEachCallback(aMethod)(value,key,set_);
  71783. Result:=H.AllocUndefined;
  71784. end;
  71785. function JOBCallFunction_(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71786. var
  71787. arguments: Variant;
  71788. begin
  71789. arguments:=H.GetVariant;
  71790. Result:=H.AllocVariant(TFunction(aMethod)(arguments));
  71791. end;
  71792. function JOBCallVoidFunction(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71793. begin
  71794. TVoidFunction(aMethod)();
  71795. Result:=H.AllocUndefined;
  71796. end;
  71797. function JOBCallPositionCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71798. var
  71799. position: IJSGeolocationPosition;
  71800. begin
  71801. position:=H.GetObject(TJSGeolocationPosition) as IJSGeolocationPosition;
  71802. TPositionCallback(aMethod)(position);
  71803. Result:=H.AllocUndefined;
  71804. end;
  71805. function JOBCallPositionErrorCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71806. var
  71807. positionError: IJSGeolocationPositionError;
  71808. begin
  71809. positionError:=H.GetObject(TJSGeolocationPositionError) as IJSGeolocationPositionError;
  71810. TPositionErrorCallback(aMethod)(positionError);
  71811. Result:=H.AllocUndefined;
  71812. end;
  71813. function JOBCallBlobCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71814. var
  71815. blob: IJSBlob;
  71816. begin
  71817. blob:=H.GetObject(TJSBlob) as IJSBlob;
  71818. TBlobCallback(aMethod)(blob);
  71819. Result:=H.AllocUndefined;
  71820. end;
  71821. function JOBCallInstallTriggerCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71822. var
  71823. url: UnicodeString;
  71824. status: SmallInt;
  71825. begin
  71826. url:=H.GetString;
  71827. status:=H.GetLongInt;
  71828. TInstallTriggerCallback(aMethod)(url,status);
  71829. Result:=H.AllocUndefined;
  71830. end;
  71831. function JOBCallIntersectionCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71832. var
  71833. entries: TJSIntersectionObserverEntryDynArray;
  71834. observer: IJSIntersectionObserver;
  71835. begin
  71836. entries:=H.GetObject(TJSArray) as IJSArray;
  71837. observer:=H.GetObject(TJSIntersectionObserver) as IJSIntersectionObserver;
  71838. TIntersectionCallback(aMethod)(entries,observer);
  71839. Result:=H.AllocUndefined;
  71840. end;
  71841. function JOBCallLockGrantedCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71842. var
  71843. lock: IJSLock;
  71844. begin
  71845. lock:=H.GetObject(TJSLock) as IJSLock;
  71846. Result:=H.AllocIntf(TLockGrantedCallback(aMethod)(lock));
  71847. end;
  71848. function JOBCallMediaSessionActionHandler(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71849. var
  71850. details: TJSMediaSessionActionDetails;
  71851. begin
  71852. details:=H.GetObject(TJSObject) as TJSMediaSessionActionDetails;
  71853. TMediaSessionActionHandler(aMethod)(details);
  71854. Result:=H.AllocUndefined;
  71855. end;
  71856. function JOBCallMutationCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71857. var
  71858. mutations: TJSMutationRecordDynArray;
  71859. observer: IJSMutationObserver;
  71860. begin
  71861. mutations:=H.GetObject(TJSArray) as IJSArray;
  71862. observer:=H.GetObject(TJSMutationObserver) as IJSMutationObserver;
  71863. TMutationCallback(aMethod)(mutations,observer);
  71864. Result:=H.AllocUndefined;
  71865. end;
  71866. function JOBCallNavigatorUserMediaSuccessCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71867. var
  71868. stream: IJSMediaStream;
  71869. begin
  71870. stream:=H.GetObject(TJSMediaStream) as IJSMediaStream;
  71871. TNavigatorUserMediaSuccessCallback(aMethod)(stream);
  71872. Result:=H.AllocUndefined;
  71873. end;
  71874. function JOBCallNavigatorUserMediaErrorCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71875. var
  71876. error: IJSMediaStreamError;
  71877. begin
  71878. error:=H.GetObject(TJSMediaStreamError) as IJSMediaStreamError;
  71879. TNavigatorUserMediaErrorCallback(aMethod)(error);
  71880. Result:=H.AllocUndefined;
  71881. end;
  71882. function JOBCallNotificationPermissionCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71883. var
  71884. permission: TNotificationPermission;
  71885. begin
  71886. permission:=H.GetString;
  71887. TNotificationPermissionCallback(aMethod)(permission);
  71888. Result:=H.AllocUndefined;
  71889. end;
  71890. function JOBCallChainedOperation(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71891. begin
  71892. Result:=H.AllocIntf(TChainedOperation(aMethod)());
  71893. end;
  71894. function JOBCallPerformanceObserverCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71895. var
  71896. entries: IJSPerformanceObserverEntryList;
  71897. observer: IJSPerformanceObserver;
  71898. begin
  71899. entries:=H.GetObject(TJSPerformanceObserverEntryList) as IJSPerformanceObserverEntryList;
  71900. observer:=H.GetObject(TJSPerformanceObserver) as IJSPerformanceObserver;
  71901. TPerformanceObserverCallback(aMethod)(entries,observer);
  71902. Result:=H.AllocUndefined;
  71903. end;
  71904. function JOBCallPromiseJobCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71905. begin
  71906. TPromiseJobCallback(aMethod)();
  71907. Result:=H.AllocUndefined;
  71908. end;
  71909. function JOBCallAnyCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71910. var
  71911. value: Variant;
  71912. begin
  71913. value:=H.GetVariant;
  71914. Result:=H.AllocVariant(TAnyCallback(aMethod)(value));
  71915. end;
  71916. function JOBCallQueuingStrategySize(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71917. var
  71918. chunk: Variant;
  71919. begin
  71920. chunk:=H.GetVariant;
  71921. Result:=H.AllocDouble(TQueuingStrategySize(aMethod)(chunk));
  71922. end;
  71923. function JOBCallReportingObserverCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71924. var
  71925. reports: TJSReportDynArray;
  71926. observer: IJSReportingObserver;
  71927. begin
  71928. reports:=H.GetObject(TJSArray) as IJSArray;
  71929. observer:=H.GetObject(TJSReportingObserver) as IJSReportingObserver;
  71930. TReportingObserverCallback(aMethod)(reports,observer);
  71931. Result:=H.AllocUndefined;
  71932. end;
  71933. function JOBCallResizeObserverCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71934. var
  71935. entries: TJSResizeObserverEntryDynArray;
  71936. observer: IJSResizeObserver;
  71937. begin
  71938. entries:=H.GetObject(TJSArray) as IJSArray;
  71939. observer:=H.GetObject(TJSResizeObserver) as IJSResizeObserver;
  71940. TResizeObserverCallback(aMethod)(entries,observer);
  71941. Result:=H.AllocUndefined;
  71942. end;
  71943. function JOBCallGenerateAssertionCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71944. var
  71945. contents: UnicodeString;
  71946. origin: UnicodeString;
  71947. options: TJSRTCIdentityProviderOptions;
  71948. begin
  71949. contents:=H.GetString;
  71950. origin:=H.GetString;
  71951. options:=H.GetObject(TJSObject) as TJSRTCIdentityProviderOptions;
  71952. Result:=H.AllocIntf(TGenerateAssertionCallback(aMethod)(contents,origin,options));
  71953. end;
  71954. function JOBCallValidateAssertionCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71955. var
  71956. assertion: UnicodeString;
  71957. origin: UnicodeString;
  71958. begin
  71959. assertion:=H.GetString;
  71960. origin:=H.GetString;
  71961. Result:=H.AllocIntf(TValidateAssertionCallback(aMethod)(assertion,origin));
  71962. end;
  71963. function JOBCallRTCSessionDescriptionCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71964. var
  71965. description: TJSRTCSessionDescriptionInit;
  71966. begin
  71967. description:=H.GetObject(TJSObject) as TJSRTCSessionDescriptionInit;
  71968. TRTCSessionDescriptionCallback(aMethod)(description);
  71969. Result:=H.AllocUndefined;
  71970. end;
  71971. function JOBCallRTCPeerConnectionErrorCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71972. var
  71973. error: IJSError;
  71974. begin
  71975. error:=H.GetObject(TJSDOMException) as IJSError;
  71976. TRTCPeerConnectionErrorCallback(aMethod)(error);
  71977. Result:=H.AllocUndefined;
  71978. end;
  71979. function JOBCallRTCStatsCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71980. var
  71981. report: IJSRTCStatsReport;
  71982. begin
  71983. report:=H.GetObject(TJSRTCStatsReport) as IJSRTCStatsReport;
  71984. TRTCStatsCallback(aMethod)(report);
  71985. Result:=H.AllocUndefined;
  71986. end;
  71987. function JOBCallmozPacketCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  71988. var
  71989. level: Cardinal;
  71990. type_: TmozPacketDumpType;
  71991. sending: Boolean;
  71992. packet: IJSArrayBuffer;
  71993. begin
  71994. level:=H.GetMaxInt;
  71995. type_:=H.GetString;
  71996. sending:=H.GetBoolean;
  71997. packet:=H.GetObject(TJSArrayBuffer) as IJSArrayBuffer;
  71998. TmozPacketCallback(aMethod)(level,type_,sending,packet);
  71999. Result:=H.AllocUndefined;
  72000. end;
  72001. function JOBCallPeerConnectionLifecycleCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72002. var
  72003. pc: IJSRTCPeerConnection;
  72004. windowId: QWord;
  72005. eventType: TRTCLifecycleEvent;
  72006. begin
  72007. pc:=H.GetObject(TJSRTCPeerConnection) as IJSRTCPeerConnection;
  72008. windowId:=H.GetMaxInt;
  72009. eventType:=H.GetString;
  72010. TPeerConnectionLifecycleCallback(aMethod)(pc,windowId,eventType);
  72011. Result:=H.AllocUndefined;
  72012. end;
  72013. function JOBCallPromiseReturner(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72014. begin
  72015. Result:=H.AllocIntf(TPromiseReturner(aMethod)());
  72016. end;
  72017. function JOBCallPromiseReturner2(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72018. var
  72019. arg: Variant;
  72020. arg2: UnicodeString;
  72021. begin
  72022. arg:=H.GetVariant;
  72023. arg2:=H.GetString;
  72024. Result:=H.AllocIntf(TPromiseReturner2(aMethod)(arg,arg2));
  72025. end;
  72026. function JOBCallTestThrowingCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72027. begin
  72028. TTestThrowingCallback(aMethod)();
  72029. Result:=H.AllocUndefined;
  72030. end;
  72031. function JOBCallSetDeleteObjectCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72032. var
  72033. value: IJSObject;
  72034. index: Cardinal;
  72035. begin
  72036. value:=H.GetObject(TJSObject) as IJSObject;
  72037. index:=H.GetMaxInt;
  72038. TSetDeleteObjectCallback(aMethod)(value,index);
  72039. Result:=H.AllocUndefined;
  72040. end;
  72041. function JOBCallSetDeleteBooleanCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72042. var
  72043. value: Boolean;
  72044. index: Cardinal;
  72045. begin
  72046. value:=H.GetBoolean;
  72047. index:=H.GetMaxInt;
  72048. TSetDeleteBooleanCallback(aMethod)(value,index);
  72049. Result:=H.AllocUndefined;
  72050. end;
  72051. function JOBCallSetDeleteInterfaceCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72052. var
  72053. value: IJSTestInterfaceObservableArray;
  72054. index: Cardinal;
  72055. begin
  72056. value:=H.GetObject(TJSTestInterfaceObservableArray) as IJSTestInterfaceObservableArray;
  72057. index:=H.GetMaxInt;
  72058. TSetDeleteInterfaceCallback(aMethod)(value,index);
  72059. Result:=H.AllocUndefined;
  72060. end;
  72061. function JOBCallTransformerStartCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72062. var
  72063. controller: IJSTransformStreamDefaultController;
  72064. begin
  72065. controller:=H.GetObject(TJSTransformStreamDefaultController) as IJSTransformStreamDefaultController;
  72066. Result:=H.AllocVariant(TTransformerStartCallback(aMethod)(controller));
  72067. end;
  72068. function JOBCallTransformerFlushCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72069. var
  72070. controller: IJSTransformStreamDefaultController;
  72071. begin
  72072. controller:=H.GetObject(TJSTransformStreamDefaultController) as IJSTransformStreamDefaultController;
  72073. Result:=H.AllocIntf(TTransformerFlushCallback(aMethod)(controller));
  72074. end;
  72075. function JOBCallTransformerTransformCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72076. var
  72077. chunk: Variant;
  72078. controller: IJSTransformStreamDefaultController;
  72079. begin
  72080. chunk:=H.GetVariant;
  72081. controller:=H.GetObject(TJSTransformStreamDefaultController) as IJSTransformStreamDefaultController;
  72082. Result:=H.AllocIntf(TTransformerTransformCallback(aMethod)(chunk,controller));
  72083. end;
  72084. function JOBCallCreateHTMLCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72085. var
  72086. input: UnicodeString;
  72087. arguments: Variant;
  72088. begin
  72089. input:=H.GetString;
  72090. arguments:=H.GetVariant;
  72091. Result:=H.AllocString(TCreateHTMLCallback(aMethod)(input,arguments));
  72092. end;
  72093. function JOBCallCreateScriptCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72094. var
  72095. input: UnicodeString;
  72096. arguments: Variant;
  72097. begin
  72098. input:=H.GetString;
  72099. arguments:=H.GetVariant;
  72100. Result:=H.AllocString(TCreateScriptCallback(aMethod)(input,arguments));
  72101. end;
  72102. function JOBCallCreateScriptURLCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72103. var
  72104. input: UnicodeString;
  72105. arguments: Variant;
  72106. begin
  72107. input:=H.GetString;
  72108. arguments:=H.GetVariant;
  72109. Result:=H.AllocString(TCreateScriptURLCallback(aMethod)(input,arguments));
  72110. end;
  72111. function JOBCallUnderlyingSinkStartCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72112. var
  72113. controller: IJSWritableStreamDefaultController;
  72114. begin
  72115. controller:=H.GetObject(TJSWritableStreamDefaultController) as IJSWritableStreamDefaultController;
  72116. Result:=H.AllocVariant(TUnderlyingSinkStartCallback(aMethod)(controller));
  72117. end;
  72118. function JOBCallUnderlyingSinkWriteCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72119. var
  72120. chunk: Variant;
  72121. controller: IJSWritableStreamDefaultController;
  72122. begin
  72123. chunk:=H.GetVariant;
  72124. controller:=H.GetObject(TJSWritableStreamDefaultController) as IJSWritableStreamDefaultController;
  72125. Result:=H.AllocIntf(TUnderlyingSinkWriteCallback(aMethod)(chunk,controller));
  72126. end;
  72127. function JOBCallUnderlyingSinkCloseCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72128. begin
  72129. Result:=H.AllocIntf(TUnderlyingSinkCloseCallback(aMethod)());
  72130. end;
  72131. function JOBCallUnderlyingSinkAbortCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72132. var
  72133. reason: Variant;
  72134. begin
  72135. reason:=H.GetVariant;
  72136. Result:=H.AllocIntf(TUnderlyingSinkAbortCallback(aMethod)(reason));
  72137. end;
  72138. function JOBCallUnderlyingSourceStartCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72139. var
  72140. controller: TReadableStreamController;
  72141. begin
  72142. controller:=H.GetVariant;
  72143. Result:=H.AllocVariant(TUnderlyingSourceStartCallback(aMethod)(controller));
  72144. end;
  72145. function JOBCallUnderlyingSourcePullCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72146. var
  72147. controller: TReadableStreamController;
  72148. begin
  72149. controller:=H.GetVariant;
  72150. Result:=H.AllocIntf(TUnderlyingSourcePullCallback(aMethod)(controller));
  72151. end;
  72152. function JOBCallUnderlyingSourceCancelCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72153. var
  72154. reason: Variant;
  72155. begin
  72156. reason:=H.GetVariant;
  72157. Result:=H.AllocIntf(TUnderlyingSourceCancelCallback(aMethod)(reason));
  72158. end;
  72159. function JOBCallVideoFrameOutputCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72160. var
  72161. output: IJSVideoFrame;
  72162. begin
  72163. output:=H.GetObject(TJSVideoFrame) as IJSVideoFrame;
  72164. TVideoFrameOutputCallback(aMethod)(output);
  72165. Result:=H.AllocUndefined;
  72166. end;
  72167. function JOBCallWebCodecsErrorCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72168. var
  72169. error: IJSError;
  72170. begin
  72171. error:=H.GetObject(TJSDOMException) as IJSError;
  72172. TWebCodecsErrorCallback(aMethod)(error);
  72173. Result:=H.AllocUndefined;
  72174. end;
  72175. function JOBCallEncodedVideoChunkOutputCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72176. var
  72177. chunk: IJSEncodedVideoChunk;
  72178. metadata: TJSEncodedVideoChunkMetadata;
  72179. begin
  72180. chunk:=H.GetObject(TJSEncodedVideoChunk) as IJSEncodedVideoChunk;
  72181. metadata:=H.GetObject(TJSObject) as TJSEncodedVideoChunkMetadata;
  72182. TEncodedVideoChunkOutputCallback(aMethod)(chunk,metadata);
  72183. Result:=H.AllocUndefined;
  72184. end;
  72185. function JOBCallWebrtcGlobalStatisticsCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72186. var
  72187. reports: TJSWebrtcGlobalStatisticsReport;
  72188. begin
  72189. reports:=H.GetObject(TJSObject) as TJSWebrtcGlobalStatisticsReport;
  72190. TWebrtcGlobalStatisticsCallback(aMethod)(reports);
  72191. Result:=H.AllocUndefined;
  72192. end;
  72193. function JOBCallWebrtcGlobalStatisticsHistoryPcIdsCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72194. var
  72195. pcIds: TUnicodeStringDynArray;
  72196. begin
  72197. pcIds:=H.GetObject(TJSArray) as IJSArray;
  72198. TWebrtcGlobalStatisticsHistoryPcIdsCallback(aMethod)(pcIds);
  72199. Result:=H.AllocUndefined;
  72200. end;
  72201. function JOBCallWebrtcGlobalStatisticsHistoryCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72202. var
  72203. reports: TJSWebrtcGlobalStatisticsReport;
  72204. begin
  72205. reports:=H.GetObject(TJSObject) as TJSWebrtcGlobalStatisticsReport;
  72206. TWebrtcGlobalStatisticsHistoryCallback(aMethod)(reports);
  72207. Result:=H.AllocUndefined;
  72208. end;
  72209. function JOBCallWebrtcGlobalLoggingCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72210. var
  72211. logMessages: TUnicodeStringDynArray;
  72212. begin
  72213. logMessages:=H.GetObject(TJSArray) as IJSArray;
  72214. TWebrtcGlobalLoggingCallback(aMethod)(logMessages);
  72215. Result:=H.AllocUndefined;
  72216. end;
  72217. function JOBCallSchedulerPostTaskCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72218. begin
  72219. Result:=H.AllocVariant(TSchedulerPostTaskCallback(aMethod)());
  72220. end;
  72221. function JOBCallXRFrameRequestCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72222. var
  72223. time: TDOMHighResTimeStamp;
  72224. frame: IJSXRFrame;
  72225. begin
  72226. time:=H.GetDouble;
  72227. frame:=H.GetObject(TJSXRFrame) as IJSXRFrame;
  72228. TXRFrameRequestCallback(aMethod)(time,frame);
  72229. Result:=H.AllocUndefined;
  72230. end;
  72231. function JOBCallPromiseDocumentFlushedCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72232. begin
  72233. Result:=H.AllocVariant(TPromiseDocumentFlushedCallback(aMethod)());
  72234. end;
  72235. function JOBCallIdleRequestCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72236. var
  72237. deadline: IJSIdleDeadline;
  72238. begin
  72239. deadline:=H.GetObject(TJSIdleDeadline) as IJSIdleDeadline;
  72240. TIdleRequestCallback(aMethod)(deadline);
  72241. Result:=H.AllocUndefined;
  72242. end;
  72243. function JOBCallEventListener(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72244. var
  72245. event: IJSEvent;
  72246. begin
  72247. event:=H.GetObject(TJSEvent) as IJSEvent;
  72248. TEventListener(aMethod)(event);
  72249. Result:=H.AllocUndefined;
  72250. end;
  72251. function JOBCallObserverCallback(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72252. var
  72253. observer: IJSFetchObserver;
  72254. begin
  72255. observer:=H.GetObject(TJSFetchObserver) as IJSFetchObserver;
  72256. TObserverCallback(aMethod)(observer);
  72257. Result:=H.AllocUndefined;
  72258. end;
  72259. function JOBCallNodeFilter(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72260. var
  72261. node: IJSNode;
  72262. begin
  72263. node:=H.GetObject(TJSNode) as IJSNode;
  72264. Result:=H.AllocLongInt(TNodeFilter(aMethod)(node));
  72265. end;
  72266. function JOBCallXPathNSResolver(const aMethod: TMethod; var H: TJOBCallbackHelper): PByte;
  72267. var
  72268. prefix: UnicodeString;
  72269. begin
  72270. prefix:=H.GetString;
  72271. Result:=H.AllocString(TXPathNSResolver(aMethod)(prefix));
  72272. end;
  72273. function TJSAbortController._Getsignal: IJSAbortSignal;
  72274. begin
  72275. Result:=ReadJSPropertyObject('signal',TJSAbortSignal) as IJSAbortSignal;
  72276. end;
  72277. constructor TJSAbortController.Create;
  72278. begin
  72279. JOBCreate([]);
  72280. end;
  72281. procedure TJSAbortController.abort(const aReason: Variant);
  72282. begin
  72283. InvokeJSNoResult('abort',[aReason]);
  72284. end;
  72285. procedure TJSAbortController.abort;
  72286. begin
  72287. InvokeJSNoResult('abort',[]);
  72288. end;
  72289. class function TJSAbortController.JSClassName: UnicodeString;
  72290. begin
  72291. Result:='AbortController';
  72292. end;
  72293. class function TJSAbortController.Cast(const Intf: IJSObject): IJSAbortController;
  72294. begin
  72295. Result:=TJSAbortController.JOBCast(Intf);
  72296. end;
  72297. function TJSAbortSignal._Getaborted: Boolean;
  72298. begin
  72299. Result:=ReadJSPropertyBoolean('aborted');
  72300. end;
  72301. function TJSAbortSignal._Getreason: Variant;
  72302. begin
  72303. Result:=ReadJSPropertyVariant('reason');
  72304. end;
  72305. function TJSAbortSignal._Getonabort: TEventHandler;
  72306. begin
  72307. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  72308. end;
  72309. procedure TJSAbortSignal._Setonabort(const aValue : TEventHandler);
  72310. begin
  72311. WriteJSPropertyMethod('onabort',TMethod(aValue));
  72312. end;
  72313. function TJSAbortSignal.abort(const aReason: Variant): IJSAbortSignal;
  72314. begin
  72315. Result:=InvokeJSObjectResult('abort',[aReason],TJSAbortSignal) as IJSAbortSignal;
  72316. end;
  72317. function TJSAbortSignal.abort: IJSAbortSignal;
  72318. begin
  72319. Result:=InvokeJSObjectResult('abort',[],TJSAbortSignal) as IJSAbortSignal;
  72320. end;
  72321. function TJSAbortSignal.timeout(aMilliseconds: QWord): IJSAbortSignal;
  72322. begin
  72323. Result:=InvokeJSObjectResult('timeout',[aMilliseconds],TJSAbortSignal) as IJSAbortSignal;
  72324. end;
  72325. function TJSAbortSignal.any(const aSignals: TJSAbortSignalDynArray): IJSAbortSignal;
  72326. begin
  72327. Result:=InvokeJSObjectResult('any',[aSignals],TJSAbortSignal) as IJSAbortSignal;
  72328. end;
  72329. procedure TJSAbortSignal.throwIfAborted;
  72330. begin
  72331. InvokeJSNoResult('throwIfAborted',[]);
  72332. end;
  72333. class function TJSAbortSignal.JSClassName: UnicodeString;
  72334. begin
  72335. Result:='AbortSignal';
  72336. end;
  72337. class function TJSAbortSignal.Cast(const Intf: IJSObject): IJSAbortSignal;
  72338. begin
  72339. Result:=TJSAbortSignal.JOBCast(Intf);
  72340. end;
  72341. function TJSAbstractRange._GetstartContainer: IJSNode;
  72342. begin
  72343. Result:=ReadJSPropertyObject('startContainer',TJSNode) as IJSNode;
  72344. end;
  72345. function TJSAbstractRange._GetstartOffset: Cardinal;
  72346. begin
  72347. Result:=ReadJSPropertyInt64('startOffset');
  72348. end;
  72349. function TJSAbstractRange._GetendContainer: IJSNode;
  72350. begin
  72351. Result:=ReadJSPropertyObject('endContainer',TJSNode) as IJSNode;
  72352. end;
  72353. function TJSAbstractRange._GetendOffset: Cardinal;
  72354. begin
  72355. Result:=ReadJSPropertyInt64('endOffset');
  72356. end;
  72357. function TJSAbstractRange._Getcollapsed: Boolean;
  72358. begin
  72359. Result:=ReadJSPropertyBoolean('collapsed');
  72360. end;
  72361. class function TJSAbstractRange.JSClassName: UnicodeString;
  72362. begin
  72363. Result:='AbstractRange';
  72364. end;
  72365. class function TJSAbstractRange.Cast(const Intf: IJSObject): IJSAbstractRange;
  72366. begin
  72367. Result:=TJSAbstractRange.JOBCast(Intf);
  72368. end;
  72369. function TJSAbstractWorker._Getonerror: TEventHandler;
  72370. begin
  72371. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  72372. end;
  72373. procedure TJSAbstractWorker._Setonerror(const aValue : TEventHandler);
  72374. begin
  72375. WriteJSPropertyMethod('onerror',TMethod(aValue));
  72376. end;
  72377. class function TJSAbstractWorker.JSClassName: UnicodeString;
  72378. begin
  72379. Result:='AbstractWorker';
  72380. end;
  72381. class function TJSAbstractWorker.Cast(const Intf: IJSObject): IJSAbstractWorker;
  72382. begin
  72383. Result:=TJSAbstractWorker.JOBCast(Intf);
  72384. end;
  72385. function TJSAccessibleNode._GetcomputedRole: UnicodeString;
  72386. begin
  72387. Result:=ReadJSPropertyUnicodeString('computedRole');
  72388. end;
  72389. function TJSAccessibleNode._Getstates: TUnicodeStringDynArray;
  72390. begin
  72391. Result:=ReadJSPropertyObject('states',TJSArray) as TUnicodeStringDynArray;
  72392. end;
  72393. function TJSAccessibleNode._Getattributes: TUnicodeStringDynArray;
  72394. begin
  72395. Result:=ReadJSPropertyObject('attributes',TJSArray) as TUnicodeStringDynArray;
  72396. end;
  72397. function TJSAccessibleNode._GetDOMNode: IJSNode;
  72398. begin
  72399. Result:=ReadJSPropertyObject('DOMNode',TJSNode) as IJSNode;
  72400. end;
  72401. function TJSAccessibleNode._Getrole: UnicodeString;
  72402. begin
  72403. Result:=ReadJSPropertyUnicodeString('role');
  72404. end;
  72405. function TJSAccessibleNode._GetroleDescription: UnicodeString;
  72406. begin
  72407. Result:=ReadJSPropertyUnicodeString('roleDescription');
  72408. end;
  72409. function TJSAccessibleNode._Getlabel_: UnicodeString;
  72410. begin
  72411. Result:=ReadJSPropertyUnicodeString('label');
  72412. end;
  72413. function TJSAccessibleNode._Getcurrent: UnicodeString;
  72414. begin
  72415. Result:=ReadJSPropertyUnicodeString('current');
  72416. end;
  72417. function TJSAccessibleNode._Getautocomplete: UnicodeString;
  72418. begin
  72419. Result:=ReadJSPropertyUnicodeString('autocomplete');
  72420. end;
  72421. function TJSAccessibleNode._GetkeyShortcuts: UnicodeString;
  72422. begin
  72423. Result:=ReadJSPropertyUnicodeString('keyShortcuts');
  72424. end;
  72425. function TJSAccessibleNode._Getmodal: Boolean;
  72426. begin
  72427. Result:=ReadJSPropertyBoolean('modal');
  72428. end;
  72429. function TJSAccessibleNode._Getmultiline: Boolean;
  72430. begin
  72431. Result:=ReadJSPropertyBoolean('multiline');
  72432. end;
  72433. function TJSAccessibleNode._Getmultiselectable: Boolean;
  72434. begin
  72435. Result:=ReadJSPropertyBoolean('multiselectable');
  72436. end;
  72437. function TJSAccessibleNode._Getorientation: UnicodeString;
  72438. begin
  72439. Result:=ReadJSPropertyUnicodeString('orientation');
  72440. end;
  72441. function TJSAccessibleNode._GetreadOnly: Boolean;
  72442. begin
  72443. Result:=ReadJSPropertyBoolean('readOnly');
  72444. end;
  72445. function TJSAccessibleNode._Getrequired: Boolean;
  72446. begin
  72447. Result:=ReadJSPropertyBoolean('required');
  72448. end;
  72449. function TJSAccessibleNode._Getsort: UnicodeString;
  72450. begin
  72451. Result:=ReadJSPropertyUnicodeString('sort');
  72452. end;
  72453. function TJSAccessibleNode._Getplaceholder: UnicodeString;
  72454. begin
  72455. Result:=ReadJSPropertyUnicodeString('placeholder');
  72456. end;
  72457. function TJSAccessibleNode._GetvalueMax: Double;
  72458. begin
  72459. Result:=ReadJSPropertyDouble('valueMax');
  72460. end;
  72461. function TJSAccessibleNode._GetvalueMin: Double;
  72462. begin
  72463. Result:=ReadJSPropertyDouble('valueMin');
  72464. end;
  72465. function TJSAccessibleNode._GetvalueNow: Double;
  72466. begin
  72467. Result:=ReadJSPropertyDouble('valueNow');
  72468. end;
  72469. function TJSAccessibleNode._GetvalueText: UnicodeString;
  72470. begin
  72471. Result:=ReadJSPropertyUnicodeString('valueText');
  72472. end;
  72473. function TJSAccessibleNode._Getchecked: UnicodeString;
  72474. begin
  72475. Result:=ReadJSPropertyUnicodeString('checked');
  72476. end;
  72477. function TJSAccessibleNode._Getdisabled: Boolean;
  72478. begin
  72479. Result:=ReadJSPropertyBoolean('disabled');
  72480. end;
  72481. function TJSAccessibleNode._Getexpanded: Boolean;
  72482. begin
  72483. Result:=ReadJSPropertyBoolean('expanded');
  72484. end;
  72485. function TJSAccessibleNode._GethasPopUp: UnicodeString;
  72486. begin
  72487. Result:=ReadJSPropertyUnicodeString('hasPopUp');
  72488. end;
  72489. function TJSAccessibleNode._Gethidden: Boolean;
  72490. begin
  72491. Result:=ReadJSPropertyBoolean('hidden');
  72492. end;
  72493. function TJSAccessibleNode._Getinvalid: UnicodeString;
  72494. begin
  72495. Result:=ReadJSPropertyUnicodeString('invalid');
  72496. end;
  72497. function TJSAccessibleNode._Getpressed: UnicodeString;
  72498. begin
  72499. Result:=ReadJSPropertyUnicodeString('pressed');
  72500. end;
  72501. function TJSAccessibleNode._Getselected: Boolean;
  72502. begin
  72503. Result:=ReadJSPropertyBoolean('selected');
  72504. end;
  72505. function TJSAccessibleNode._Getatomic: Boolean;
  72506. begin
  72507. Result:=ReadJSPropertyBoolean('atomic');
  72508. end;
  72509. function TJSAccessibleNode._Getbusy: Boolean;
  72510. begin
  72511. Result:=ReadJSPropertyBoolean('busy');
  72512. end;
  72513. function TJSAccessibleNode._Getlive: UnicodeString;
  72514. begin
  72515. Result:=ReadJSPropertyUnicodeString('live');
  72516. end;
  72517. function TJSAccessibleNode._Getrelevant: UnicodeString;
  72518. begin
  72519. Result:=ReadJSPropertyUnicodeString('relevant');
  72520. end;
  72521. function TJSAccessibleNode._GetactiveDescendant: IJSAccessibleNode;
  72522. begin
  72523. Result:=ReadJSPropertyObject('activeDescendant',TJSAccessibleNode) as IJSAccessibleNode;
  72524. end;
  72525. function TJSAccessibleNode._Getdetails: IJSAccessibleNode;
  72526. begin
  72527. Result:=ReadJSPropertyObject('details',TJSAccessibleNode) as IJSAccessibleNode;
  72528. end;
  72529. function TJSAccessibleNode._GeterrorMessage: IJSAccessibleNode;
  72530. begin
  72531. Result:=ReadJSPropertyObject('errorMessage',TJSAccessibleNode) as IJSAccessibleNode;
  72532. end;
  72533. function TJSAccessibleNode._GetcolCount: LongInt;
  72534. begin
  72535. Result:=ReadJSPropertyLongInt('colCount');
  72536. end;
  72537. function TJSAccessibleNode._GetcolIndex: Cardinal;
  72538. begin
  72539. Result:=ReadJSPropertyInt64('colIndex');
  72540. end;
  72541. function TJSAccessibleNode._GetcolSpan: Cardinal;
  72542. begin
  72543. Result:=ReadJSPropertyInt64('colSpan');
  72544. end;
  72545. function TJSAccessibleNode._Getlevel: Cardinal;
  72546. begin
  72547. Result:=ReadJSPropertyInt64('level');
  72548. end;
  72549. function TJSAccessibleNode._GetposInSet: Cardinal;
  72550. begin
  72551. Result:=ReadJSPropertyInt64('posInSet');
  72552. end;
  72553. function TJSAccessibleNode._GetrowCount: LongInt;
  72554. begin
  72555. Result:=ReadJSPropertyLongInt('rowCount');
  72556. end;
  72557. function TJSAccessibleNode._GetrowIndex: Cardinal;
  72558. begin
  72559. Result:=ReadJSPropertyInt64('rowIndex');
  72560. end;
  72561. function TJSAccessibleNode._GetrowSpan: Cardinal;
  72562. begin
  72563. Result:=ReadJSPropertyInt64('rowSpan');
  72564. end;
  72565. function TJSAccessibleNode._GetsetSize: LongInt;
  72566. begin
  72567. Result:=ReadJSPropertyLongInt('setSize');
  72568. end;
  72569. procedure TJSAccessibleNode._Setrole(const aValue : UnicodeString);
  72570. begin
  72571. WriteJSPropertyUnicodeString('role',aValue);
  72572. end;
  72573. procedure TJSAccessibleNode._SetroleDescription(const aValue : UnicodeString);
  72574. begin
  72575. WriteJSPropertyUnicodeString('roleDescription',aValue);
  72576. end;
  72577. procedure TJSAccessibleNode._Setlabel_(const aValue : UnicodeString);
  72578. begin
  72579. WriteJSPropertyUnicodeString('label',aValue);
  72580. end;
  72581. procedure TJSAccessibleNode._Setcurrent(const aValue : UnicodeString);
  72582. begin
  72583. WriteJSPropertyUnicodeString('current',aValue);
  72584. end;
  72585. procedure TJSAccessibleNode._Setautocomplete(const aValue : UnicodeString);
  72586. begin
  72587. WriteJSPropertyUnicodeString('autocomplete',aValue);
  72588. end;
  72589. procedure TJSAccessibleNode._SetkeyShortcuts(const aValue : UnicodeString);
  72590. begin
  72591. WriteJSPropertyUnicodeString('keyShortcuts',aValue);
  72592. end;
  72593. procedure TJSAccessibleNode._Setmodal(const aValue : Boolean);
  72594. begin
  72595. WriteJSPropertyBoolean('modal',aValue);
  72596. end;
  72597. procedure TJSAccessibleNode._Setmultiline(const aValue : Boolean);
  72598. begin
  72599. WriteJSPropertyBoolean('multiline',aValue);
  72600. end;
  72601. procedure TJSAccessibleNode._Setmultiselectable(const aValue : Boolean);
  72602. begin
  72603. WriteJSPropertyBoolean('multiselectable',aValue);
  72604. end;
  72605. procedure TJSAccessibleNode._Setorientation(const aValue : UnicodeString);
  72606. begin
  72607. WriteJSPropertyUnicodeString('orientation',aValue);
  72608. end;
  72609. procedure TJSAccessibleNode._SetreadOnly(const aValue : Boolean);
  72610. begin
  72611. WriteJSPropertyBoolean('readOnly',aValue);
  72612. end;
  72613. procedure TJSAccessibleNode._Setrequired(const aValue : Boolean);
  72614. begin
  72615. WriteJSPropertyBoolean('required',aValue);
  72616. end;
  72617. procedure TJSAccessibleNode._Setsort(const aValue : UnicodeString);
  72618. begin
  72619. WriteJSPropertyUnicodeString('sort',aValue);
  72620. end;
  72621. procedure TJSAccessibleNode._Setplaceholder(const aValue : UnicodeString);
  72622. begin
  72623. WriteJSPropertyUnicodeString('placeholder',aValue);
  72624. end;
  72625. procedure TJSAccessibleNode._SetvalueMax(const aValue : Double);
  72626. begin
  72627. WriteJSPropertyDouble('valueMax',aValue);
  72628. end;
  72629. procedure TJSAccessibleNode._SetvalueMin(const aValue : Double);
  72630. begin
  72631. WriteJSPropertyDouble('valueMin',aValue);
  72632. end;
  72633. procedure TJSAccessibleNode._SetvalueNow(const aValue : Double);
  72634. begin
  72635. WriteJSPropertyDouble('valueNow',aValue);
  72636. end;
  72637. procedure TJSAccessibleNode._SetvalueText(const aValue : UnicodeString);
  72638. begin
  72639. WriteJSPropertyUnicodeString('valueText',aValue);
  72640. end;
  72641. procedure TJSAccessibleNode._Setchecked(const aValue : UnicodeString);
  72642. begin
  72643. WriteJSPropertyUnicodeString('checked',aValue);
  72644. end;
  72645. procedure TJSAccessibleNode._Setdisabled(const aValue : Boolean);
  72646. begin
  72647. WriteJSPropertyBoolean('disabled',aValue);
  72648. end;
  72649. procedure TJSAccessibleNode._Setexpanded(const aValue : Boolean);
  72650. begin
  72651. WriteJSPropertyBoolean('expanded',aValue);
  72652. end;
  72653. procedure TJSAccessibleNode._SethasPopUp(const aValue : UnicodeString);
  72654. begin
  72655. WriteJSPropertyUnicodeString('hasPopUp',aValue);
  72656. end;
  72657. procedure TJSAccessibleNode._Sethidden(const aValue : Boolean);
  72658. begin
  72659. WriteJSPropertyBoolean('hidden',aValue);
  72660. end;
  72661. procedure TJSAccessibleNode._Setinvalid(const aValue : UnicodeString);
  72662. begin
  72663. WriteJSPropertyUnicodeString('invalid',aValue);
  72664. end;
  72665. procedure TJSAccessibleNode._Setpressed(const aValue : UnicodeString);
  72666. begin
  72667. WriteJSPropertyUnicodeString('pressed',aValue);
  72668. end;
  72669. procedure TJSAccessibleNode._Setselected(const aValue : Boolean);
  72670. begin
  72671. WriteJSPropertyBoolean('selected',aValue);
  72672. end;
  72673. procedure TJSAccessibleNode._Setatomic(const aValue : Boolean);
  72674. begin
  72675. WriteJSPropertyBoolean('atomic',aValue);
  72676. end;
  72677. procedure TJSAccessibleNode._Setbusy(const aValue : Boolean);
  72678. begin
  72679. WriteJSPropertyBoolean('busy',aValue);
  72680. end;
  72681. procedure TJSAccessibleNode._Setlive(const aValue : UnicodeString);
  72682. begin
  72683. WriteJSPropertyUnicodeString('live',aValue);
  72684. end;
  72685. procedure TJSAccessibleNode._Setrelevant(const aValue : UnicodeString);
  72686. begin
  72687. WriteJSPropertyUnicodeString('relevant',aValue);
  72688. end;
  72689. procedure TJSAccessibleNode._SetactiveDescendant(const aValue : IJSAccessibleNode);
  72690. begin
  72691. WriteJSPropertyObject('activeDescendant',aValue);
  72692. end;
  72693. procedure TJSAccessibleNode._Setdetails(const aValue : IJSAccessibleNode);
  72694. begin
  72695. WriteJSPropertyObject('details',aValue);
  72696. end;
  72697. procedure TJSAccessibleNode._SeterrorMessage(const aValue : IJSAccessibleNode);
  72698. begin
  72699. WriteJSPropertyObject('errorMessage',aValue);
  72700. end;
  72701. procedure TJSAccessibleNode._SetcolCount(const aValue : LongInt);
  72702. begin
  72703. WriteJSPropertyLongInt('colCount',aValue);
  72704. end;
  72705. procedure TJSAccessibleNode._SetcolIndex(const aValue : Cardinal);
  72706. begin
  72707. WriteJSPropertyDouble('colIndex',aValue);
  72708. end;
  72709. procedure TJSAccessibleNode._SetcolSpan(const aValue : Cardinal);
  72710. begin
  72711. WriteJSPropertyDouble('colSpan',aValue);
  72712. end;
  72713. procedure TJSAccessibleNode._Setlevel(const aValue : Cardinal);
  72714. begin
  72715. WriteJSPropertyDouble('level',aValue);
  72716. end;
  72717. procedure TJSAccessibleNode._SetposInSet(const aValue : Cardinal);
  72718. begin
  72719. WriteJSPropertyDouble('posInSet',aValue);
  72720. end;
  72721. procedure TJSAccessibleNode._SetrowCount(const aValue : LongInt);
  72722. begin
  72723. WriteJSPropertyLongInt('rowCount',aValue);
  72724. end;
  72725. procedure TJSAccessibleNode._SetrowIndex(const aValue : Cardinal);
  72726. begin
  72727. WriteJSPropertyDouble('rowIndex',aValue);
  72728. end;
  72729. procedure TJSAccessibleNode._SetrowSpan(const aValue : Cardinal);
  72730. begin
  72731. WriteJSPropertyDouble('rowSpan',aValue);
  72732. end;
  72733. procedure TJSAccessibleNode._SetsetSize(const aValue : LongInt);
  72734. begin
  72735. WriteJSPropertyLongInt('setSize',aValue);
  72736. end;
  72737. function TJSAccessibleNode.is_(const aStates: UnicodeString): Boolean{; ToDo:varargs};
  72738. begin
  72739. Result:=InvokeJSBooleanResult('is',[aStates]);
  72740. end;
  72741. function TJSAccessibleNode.has(const aAttributes: UnicodeString): Boolean{; ToDo:varargs};
  72742. begin
  72743. Result:=InvokeJSBooleanResult('has',[aAttributes]);
  72744. end;
  72745. function TJSAccessibleNode.get(const aAttribute: UnicodeString): Variant;
  72746. begin
  72747. Result:=InvokeJSVariantResult('get',[aAttribute]);
  72748. end;
  72749. class function TJSAccessibleNode.JSClassName: UnicodeString;
  72750. begin
  72751. Result:='AccessibleNode';
  72752. end;
  72753. class function TJSAccessibleNode.Cast(const Intf: IJSObject): IJSAccessibleNode;
  72754. begin
  72755. Result:=TJSAccessibleNode.JOBCast(Intf);
  72756. end;
  72757. function TJSAddonEvent._Getid: UnicodeString;
  72758. begin
  72759. Result:=ReadJSPropertyUnicodeString('id');
  72760. end;
  72761. constructor TJSAddonEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSAddonEventInit);
  72762. begin
  72763. JOBCreate([aType_,aEventInitDict]);
  72764. end;
  72765. class function TJSAddonEvent.JSClassName: UnicodeString;
  72766. begin
  72767. Result:='AddonEvent';
  72768. end;
  72769. class function TJSAddonEvent.Cast(const Intf: IJSObject): IJSAddonEvent;
  72770. begin
  72771. Result:=TJSAddonEvent.JOBCast(Intf);
  72772. end;
  72773. function TJSAddonEventInit._Getid: UnicodeString;
  72774. begin
  72775. Result:=ReadJSPropertyUnicodeString('id');
  72776. end;
  72777. procedure TJSAddonEventInit._Setid(const aValue : UnicodeString);
  72778. begin
  72779. WriteJSPropertyUnicodeString('id',aValue);
  72780. end;
  72781. class function TJSAddonEventInit.JSClassName: UnicodeString;
  72782. begin
  72783. Result:='Object';
  72784. end;
  72785. class function TJSAddonEventInit.Cast(const Intf: IJSObject): IJSAddonEventInit;
  72786. begin
  72787. Result:=TJSAddonEventInit.JOBCast(Intf);
  72788. end;
  72789. function TJSaddonInstallOptions._Geturl: UnicodeString;
  72790. begin
  72791. Result:=ReadJSPropertyUnicodeString('url');
  72792. end;
  72793. function TJSaddonInstallOptions._Gethash: UnicodeString;
  72794. begin
  72795. Result:=ReadJSPropertyUnicodeString('hash');
  72796. end;
  72797. procedure TJSaddonInstallOptions._Seturl(const aValue : UnicodeString);
  72798. begin
  72799. WriteJSPropertyUnicodeString('url',aValue);
  72800. end;
  72801. procedure TJSaddonInstallOptions._Sethash(const aValue : UnicodeString);
  72802. begin
  72803. WriteJSPropertyUnicodeString('hash',aValue);
  72804. end;
  72805. class function TJSaddonInstallOptions.JSClassName: UnicodeString;
  72806. begin
  72807. Result:='Object';
  72808. end;
  72809. class function TJSaddonInstallOptions.Cast(const Intf: IJSObject): IJSaddonInstallOptions;
  72810. begin
  72811. Result:=TJSaddonInstallOptions.JOBCast(Intf);
  72812. end;
  72813. function TJSAddonManager._GetabuseReportPanelEnabled: Boolean;
  72814. begin
  72815. Result:=ReadJSPropertyBoolean('abuseReportPanelEnabled');
  72816. end;
  72817. function TJSAddonManager.getAddonByID(const aId: UnicodeString): IJSPromise; // Promise<Addon>
  72818. begin
  72819. Result:=InvokeJSObjectResult('getAddonByID',[aId],TJSPromise) as IJSPromise;
  72820. end;
  72821. function TJSAddonManager.createInstall(const aOptions: TJSaddonInstallOptions): IJSPromise; // Promise<AddonInstall>
  72822. begin
  72823. Result:=InvokeJSObjectResult('createInstall',[aOptions],TJSPromise) as IJSPromise;
  72824. end;
  72825. function TJSAddonManager.createInstall: IJSPromise; // Promise<AddonInstall>
  72826. begin
  72827. Result:=InvokeJSObjectResult('createInstall',[],TJSPromise) as IJSPromise;
  72828. end;
  72829. function TJSAddonManager.reportAbuse(const aId: UnicodeString): IJSPromise; // Promise<boolean>
  72830. begin
  72831. Result:=InvokeJSObjectResult('reportAbuse',[aId],TJSPromise) as IJSPromise;
  72832. end;
  72833. class function TJSAddonManager.JSClassName: UnicodeString;
  72834. begin
  72835. Result:='AddonManager';
  72836. end;
  72837. class function TJSAddonManager.Cast(const Intf: IJSObject): IJSAddonManager;
  72838. begin
  72839. Result:=TJSAddonManager.JOBCast(Intf);
  72840. end;
  72841. function TJSAnalyserOptions._GetfftSize: Cardinal;
  72842. begin
  72843. Result:=ReadJSPropertyInt64('fftSize');
  72844. end;
  72845. function TJSAnalyserOptions._GetmaxDecibels: Double;
  72846. begin
  72847. Result:=ReadJSPropertyDouble('maxDecibels');
  72848. end;
  72849. function TJSAnalyserOptions._GetminDecibels: Double;
  72850. begin
  72851. Result:=ReadJSPropertyDouble('minDecibels');
  72852. end;
  72853. function TJSAnalyserOptions._GetsmoothingTimeConstant: Double;
  72854. begin
  72855. Result:=ReadJSPropertyDouble('smoothingTimeConstant');
  72856. end;
  72857. procedure TJSAnalyserOptions._SetfftSize(const aValue : Cardinal);
  72858. begin
  72859. WriteJSPropertyDouble('fftSize',aValue);
  72860. end;
  72861. procedure TJSAnalyserOptions._SetmaxDecibels(const aValue : Double);
  72862. begin
  72863. WriteJSPropertyDouble('maxDecibels',aValue);
  72864. end;
  72865. procedure TJSAnalyserOptions._SetminDecibels(const aValue : Double);
  72866. begin
  72867. WriteJSPropertyDouble('minDecibels',aValue);
  72868. end;
  72869. procedure TJSAnalyserOptions._SetsmoothingTimeConstant(const aValue : Double);
  72870. begin
  72871. WriteJSPropertyDouble('smoothingTimeConstant',aValue);
  72872. end;
  72873. class function TJSAnalyserOptions.JSClassName: UnicodeString;
  72874. begin
  72875. Result:='Object';
  72876. end;
  72877. class function TJSAnalyserOptions.Cast(const Intf: IJSObject): IJSAnalyserOptions;
  72878. begin
  72879. Result:=TJSAnalyserOptions.JOBCast(Intf);
  72880. end;
  72881. function TJSAnalyserNode._GetfftSize: Cardinal;
  72882. begin
  72883. Result:=ReadJSPropertyInt64('fftSize');
  72884. end;
  72885. function TJSAnalyserNode._GetfrequencyBinCount: Cardinal;
  72886. begin
  72887. Result:=ReadJSPropertyInt64('frequencyBinCount');
  72888. end;
  72889. function TJSAnalyserNode._GetminDecibels: Double;
  72890. begin
  72891. Result:=ReadJSPropertyDouble('minDecibels');
  72892. end;
  72893. function TJSAnalyserNode._GetmaxDecibels: Double;
  72894. begin
  72895. Result:=ReadJSPropertyDouble('maxDecibels');
  72896. end;
  72897. function TJSAnalyserNode._GetsmoothingTimeConstant: Double;
  72898. begin
  72899. Result:=ReadJSPropertyDouble('smoothingTimeConstant');
  72900. end;
  72901. procedure TJSAnalyserNode._SetfftSize(const aValue : Cardinal);
  72902. begin
  72903. WriteJSPropertyDouble('fftSize',aValue);
  72904. end;
  72905. procedure TJSAnalyserNode._SetminDecibels(const aValue : Double);
  72906. begin
  72907. WriteJSPropertyDouble('minDecibels',aValue);
  72908. end;
  72909. procedure TJSAnalyserNode._SetmaxDecibels(const aValue : Double);
  72910. begin
  72911. WriteJSPropertyDouble('maxDecibels',aValue);
  72912. end;
  72913. procedure TJSAnalyserNode._SetsmoothingTimeConstant(const aValue : Double);
  72914. begin
  72915. WriteJSPropertyDouble('smoothingTimeConstant',aValue);
  72916. end;
  72917. constructor TJSAnalyserNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSAnalyserOptions);
  72918. begin
  72919. JOBCreate([aContext,aOptions]);
  72920. end;
  72921. constructor TJSAnalyserNode.Create(aContext: IJSBaseAudioContext);
  72922. begin
  72923. JOBCreate([aContext]);
  72924. end;
  72925. procedure TJSAnalyserNode.getFloatFrequencyData(aArray_: IJSFloat32Array);
  72926. begin
  72927. InvokeJSNoResult('getFloatFrequencyData',[aArray_]);
  72928. end;
  72929. procedure TJSAnalyserNode.getByteFrequencyData(aArray_: IJSUint8Array);
  72930. begin
  72931. InvokeJSNoResult('getByteFrequencyData',[aArray_]);
  72932. end;
  72933. procedure TJSAnalyserNode.getFloatTimeDomainData(aArray_: IJSFloat32Array);
  72934. begin
  72935. InvokeJSNoResult('getFloatTimeDomainData',[aArray_]);
  72936. end;
  72937. procedure TJSAnalyserNode.getByteTimeDomainData(aArray_: IJSUint8Array);
  72938. begin
  72939. InvokeJSNoResult('getByteTimeDomainData',[aArray_]);
  72940. end;
  72941. class function TJSAnalyserNode.JSClassName: UnicodeString;
  72942. begin
  72943. Result:='AnalyserNode';
  72944. end;
  72945. class function TJSAnalyserNode.Cast(const Intf: IJSObject): IJSAnalyserNode;
  72946. begin
  72947. Result:=TJSAnalyserNode.JOBCast(Intf);
  72948. end;
  72949. function TJSKeyframeAnimationOptions._Getid: UnicodeString;
  72950. begin
  72951. Result:=ReadJSPropertyUnicodeString('id');
  72952. end;
  72953. procedure TJSKeyframeAnimationOptions._Setid(const aValue : UnicodeString);
  72954. begin
  72955. WriteJSPropertyUnicodeString('id',aValue);
  72956. end;
  72957. class function TJSKeyframeAnimationOptions.JSClassName: UnicodeString;
  72958. begin
  72959. Result:='Object';
  72960. end;
  72961. class function TJSKeyframeAnimationOptions.Cast(const Intf: IJSObject): IJSKeyframeAnimationOptions;
  72962. begin
  72963. Result:=TJSKeyframeAnimationOptions.JOBCast(Intf);
  72964. end;
  72965. function TJSGetAnimationsOptions._Getsubtree: Boolean;
  72966. begin
  72967. Result:=ReadJSPropertyBoolean('subtree');
  72968. end;
  72969. procedure TJSGetAnimationsOptions._Setsubtree(const aValue : Boolean);
  72970. begin
  72971. WriteJSPropertyBoolean('subtree',aValue);
  72972. end;
  72973. class function TJSGetAnimationsOptions.JSClassName: UnicodeString;
  72974. begin
  72975. Result:='Object';
  72976. end;
  72977. class function TJSGetAnimationsOptions.Cast(const Intf: IJSObject): IJSGetAnimationsOptions;
  72978. begin
  72979. Result:=TJSGetAnimationsOptions.JOBCast(Intf);
  72980. end;
  72981. function TJSAnimatable.animate(aKeyframes: IJSObject; const aOptions: TJSKeyframeAnimationOptions): IJSAnimation;
  72982. begin
  72983. Result:=InvokeJSObjectResult('animate',[aKeyframes,aOptions],TJSAnimation) as IJSAnimation;
  72984. end;
  72985. function TJSAnimatable.animate(aKeyframes: IJSObject): IJSAnimation;
  72986. begin
  72987. Result:=InvokeJSObjectResult('animate',[aKeyframes],TJSAnimation) as IJSAnimation;
  72988. end;
  72989. function TJSAnimatable.animate(aKeyframes: IJSObject; aOptions: Double): IJSAnimation;
  72990. begin
  72991. Result:=InvokeJSObjectResult('animate',[aKeyframes,aOptions],TJSAnimation) as IJSAnimation;
  72992. end;
  72993. function TJSAnimatable.getAnimations(const aOptions: TJSGetAnimationsOptions): TJSAnimationDynArray;
  72994. begin
  72995. Result:=InvokeJSObjectResult('getAnimations',[aOptions],TJSArray) as TJSAnimationDynArray;
  72996. end;
  72997. function TJSAnimatable.getAnimations: TJSAnimationDynArray;
  72998. begin
  72999. Result:=InvokeJSObjectResult('getAnimations',[],TJSArray) as TJSAnimationDynArray;
  73000. end;
  73001. class function TJSAnimatable.JSClassName: UnicodeString;
  73002. begin
  73003. Result:='Animatable';
  73004. end;
  73005. class function TJSAnimatable.Cast(const Intf: IJSObject): IJSAnimatable;
  73006. begin
  73007. Result:=TJSAnimatable.JOBCast(Intf);
  73008. end;
  73009. function TJSAnimation._Getid: UnicodeString;
  73010. begin
  73011. Result:=ReadJSPropertyUnicodeString('id');
  73012. end;
  73013. function TJSAnimation._Geteffect: IJSAnimationEffect;
  73014. begin
  73015. Result:=ReadJSPropertyObject('effect',TJSAnimationEffect) as IJSAnimationEffect;
  73016. end;
  73017. function TJSAnimation._Gettimeline: IJSAnimationTimeline;
  73018. begin
  73019. Result:=ReadJSPropertyObject('timeline',TJSAnimationTimeline) as IJSAnimationTimeline;
  73020. end;
  73021. function TJSAnimation._GetstartTime: Double;
  73022. begin
  73023. Result:=ReadJSPropertyDouble('startTime');
  73024. end;
  73025. function TJSAnimation._GetcurrentTime: Double;
  73026. begin
  73027. Result:=ReadJSPropertyDouble('currentTime');
  73028. end;
  73029. function TJSAnimation._GetplaybackRate: Double;
  73030. begin
  73031. Result:=ReadJSPropertyDouble('playbackRate');
  73032. end;
  73033. function TJSAnimation._GetplayState: TAnimationPlayState;
  73034. begin
  73035. Result:=ReadJSPropertyUnicodeString('playState');
  73036. end;
  73037. function TJSAnimation._Getpending: Boolean;
  73038. begin
  73039. Result:=ReadJSPropertyBoolean('pending');
  73040. end;
  73041. function TJSAnimation._GetreplaceState: TAnimationReplaceState;
  73042. begin
  73043. Result:=ReadJSPropertyUnicodeString('replaceState');
  73044. end;
  73045. function TJSAnimation._Getready: IJSPromise;
  73046. begin
  73047. Result:=ReadJSPropertyObject('ready',TJSPromise) as IJSPromise;
  73048. end;
  73049. function TJSAnimation._Getfinished: IJSPromise;
  73050. begin
  73051. Result:=ReadJSPropertyObject('finished',TJSPromise) as IJSPromise;
  73052. end;
  73053. function TJSAnimation._Getonfinish: TEventHandler;
  73054. begin
  73055. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfinish')));
  73056. end;
  73057. function TJSAnimation._Getoncancel: TEventHandler;
  73058. begin
  73059. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncancel')));
  73060. end;
  73061. function TJSAnimation._Getonremove: TEventHandler;
  73062. begin
  73063. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onremove')));
  73064. end;
  73065. procedure TJSAnimation._Setid(const aValue : UnicodeString);
  73066. begin
  73067. WriteJSPropertyUnicodeString('id',aValue);
  73068. end;
  73069. procedure TJSAnimation._Seteffect(const aValue : IJSAnimationEffect);
  73070. begin
  73071. WriteJSPropertyObject('effect',aValue);
  73072. end;
  73073. procedure TJSAnimation._Settimeline(const aValue : IJSAnimationTimeline);
  73074. begin
  73075. WriteJSPropertyObject('timeline',aValue);
  73076. end;
  73077. procedure TJSAnimation._SetstartTime(const aValue : Double);
  73078. begin
  73079. WriteJSPropertyDouble('startTime',aValue);
  73080. end;
  73081. procedure TJSAnimation._SetcurrentTime(const aValue : Double);
  73082. begin
  73083. WriteJSPropertyDouble('currentTime',aValue);
  73084. end;
  73085. procedure TJSAnimation._SetplaybackRate(const aValue : Double);
  73086. begin
  73087. WriteJSPropertyDouble('playbackRate',aValue);
  73088. end;
  73089. procedure TJSAnimation._Setonfinish(const aValue : TEventHandler);
  73090. begin
  73091. WriteJSPropertyMethod('onfinish',TMethod(aValue));
  73092. end;
  73093. procedure TJSAnimation._Setoncancel(const aValue : TEventHandler);
  73094. begin
  73095. WriteJSPropertyMethod('oncancel',TMethod(aValue));
  73096. end;
  73097. procedure TJSAnimation._Setonremove(const aValue : TEventHandler);
  73098. begin
  73099. WriteJSPropertyMethod('onremove',TMethod(aValue));
  73100. end;
  73101. constructor TJSAnimation.Create(aEffect: IJSAnimationEffect; aTimeline: IJSAnimationTimeline);
  73102. begin
  73103. JOBCreate([aEffect,aTimeline]);
  73104. end;
  73105. constructor TJSAnimation.Create;
  73106. begin
  73107. JOBCreate([]);
  73108. end;
  73109. constructor TJSAnimation.Create(aEffect: IJSAnimationEffect);
  73110. begin
  73111. JOBCreate([aEffect]);
  73112. end;
  73113. procedure TJSAnimation.cancel;
  73114. begin
  73115. InvokeJSNoResult('cancel',[]);
  73116. end;
  73117. procedure TJSAnimation.finish;
  73118. begin
  73119. InvokeJSNoResult('finish',[]);
  73120. end;
  73121. procedure TJSAnimation.play;
  73122. begin
  73123. InvokeJSNoResult('play',[]);
  73124. end;
  73125. procedure TJSAnimation.pause;
  73126. begin
  73127. InvokeJSNoResult('pause',[]);
  73128. end;
  73129. procedure TJSAnimation.updatePlaybackRate(aPlaybackRate: Double);
  73130. begin
  73131. InvokeJSNoResult('updatePlaybackRate',[aPlaybackRate]);
  73132. end;
  73133. procedure TJSAnimation.reverse;
  73134. begin
  73135. InvokeJSNoResult('reverse',[]);
  73136. end;
  73137. procedure TJSAnimation.persist;
  73138. begin
  73139. InvokeJSNoResult('persist',[]);
  73140. end;
  73141. procedure TJSAnimation.commitStyles;
  73142. begin
  73143. InvokeJSNoResult('commitStyles',[]);
  73144. end;
  73145. class function TJSAnimation.JSClassName: UnicodeString;
  73146. begin
  73147. Result:='Animation';
  73148. end;
  73149. class function TJSAnimation.Cast(const Intf: IJSObject): IJSAnimation;
  73150. begin
  73151. Result:=TJSAnimation.JOBCast(Intf);
  73152. end;
  73153. function TJSEffectTiming._Getdelay: Double;
  73154. begin
  73155. Result:=ReadJSPropertyDouble('delay');
  73156. end;
  73157. function TJSEffectTiming._GetendDelay: Double;
  73158. begin
  73159. Result:=ReadJSPropertyDouble('endDelay');
  73160. end;
  73161. function TJSEffectTiming._Getfill: TFillMode;
  73162. begin
  73163. Result:=ReadJSPropertyUnicodeString('fill');
  73164. end;
  73165. function TJSEffectTiming._GetiterationStart: Double;
  73166. begin
  73167. Result:=ReadJSPropertyDouble('iterationStart');
  73168. end;
  73169. function TJSEffectTiming._Getiterations: Double;
  73170. begin
  73171. Result:=ReadJSPropertyDouble('iterations');
  73172. end;
  73173. function TJSEffectTiming._Getduration: TEffectTiming_duration_Type;
  73174. begin
  73175. Result:=ReadJSPropertyVariant('duration');
  73176. end;
  73177. function TJSEffectTiming._Getdirection: TPlaybackDirection;
  73178. begin
  73179. Result:=ReadJSPropertyUnicodeString('direction');
  73180. end;
  73181. function TJSEffectTiming._Geteasing: UTF8String;
  73182. begin
  73183. Result:=ReadJSPropertyUTF8String('easing');
  73184. end;
  73185. procedure TJSEffectTiming._Setdelay(const aValue : Double);
  73186. begin
  73187. WriteJSPropertyDouble('delay',aValue);
  73188. end;
  73189. procedure TJSEffectTiming._SetendDelay(const aValue : Double);
  73190. begin
  73191. WriteJSPropertyDouble('endDelay',aValue);
  73192. end;
  73193. procedure TJSEffectTiming._Setfill(const aValue : TFillMode);
  73194. begin
  73195. WriteJSPropertyUnicodeString('fill',aValue);
  73196. end;
  73197. procedure TJSEffectTiming._SetiterationStart(const aValue : Double);
  73198. begin
  73199. WriteJSPropertyDouble('iterationStart',aValue);
  73200. end;
  73201. procedure TJSEffectTiming._Setiterations(const aValue : Double);
  73202. begin
  73203. WriteJSPropertyDouble('iterations',aValue);
  73204. end;
  73205. procedure TJSEffectTiming._Setduration(const aValue : TEffectTiming_duration_Type);
  73206. begin
  73207. WriteJSPropertyVariant('duration',aValue);
  73208. end;
  73209. procedure TJSEffectTiming._Setdirection(const aValue : TPlaybackDirection);
  73210. begin
  73211. WriteJSPropertyUnicodeString('direction',aValue);
  73212. end;
  73213. procedure TJSEffectTiming._Seteasing(const aValue : UTF8String);
  73214. begin
  73215. WriteJSPropertyUTF8String('easing',aValue);
  73216. end;
  73217. class function TJSEffectTiming.JSClassName: UnicodeString;
  73218. begin
  73219. Result:='Object';
  73220. end;
  73221. class function TJSEffectTiming.Cast(const Intf: IJSObject): IJSEffectTiming;
  73222. begin
  73223. Result:=TJSEffectTiming.JOBCast(Intf);
  73224. end;
  73225. function TJSOptionalEffectTiming._Getdelay: Double;
  73226. begin
  73227. Result:=ReadJSPropertyDouble('delay');
  73228. end;
  73229. function TJSOptionalEffectTiming._GetendDelay: Double;
  73230. begin
  73231. Result:=ReadJSPropertyDouble('endDelay');
  73232. end;
  73233. function TJSOptionalEffectTiming._Getfill: TFillMode;
  73234. begin
  73235. Result:=ReadJSPropertyUnicodeString('fill');
  73236. end;
  73237. function TJSOptionalEffectTiming._GetiterationStart: Double;
  73238. begin
  73239. Result:=ReadJSPropertyDouble('iterationStart');
  73240. end;
  73241. function TJSOptionalEffectTiming._Getiterations: Double;
  73242. begin
  73243. Result:=ReadJSPropertyDouble('iterations');
  73244. end;
  73245. function TJSOptionalEffectTiming._Getduration: TOptionalEffectTiming_duration_Type;
  73246. begin
  73247. Result:=ReadJSPropertyVariant('duration');
  73248. end;
  73249. function TJSOptionalEffectTiming._Getdirection: TPlaybackDirection;
  73250. begin
  73251. Result:=ReadJSPropertyUnicodeString('direction');
  73252. end;
  73253. function TJSOptionalEffectTiming._Geteasing: UTF8String;
  73254. begin
  73255. Result:=ReadJSPropertyUTF8String('easing');
  73256. end;
  73257. procedure TJSOptionalEffectTiming._Setdelay(const aValue : Double);
  73258. begin
  73259. WriteJSPropertyDouble('delay',aValue);
  73260. end;
  73261. procedure TJSOptionalEffectTiming._SetendDelay(const aValue : Double);
  73262. begin
  73263. WriteJSPropertyDouble('endDelay',aValue);
  73264. end;
  73265. procedure TJSOptionalEffectTiming._Setfill(const aValue : TFillMode);
  73266. begin
  73267. WriteJSPropertyUnicodeString('fill',aValue);
  73268. end;
  73269. procedure TJSOptionalEffectTiming._SetiterationStart(const aValue : Double);
  73270. begin
  73271. WriteJSPropertyDouble('iterationStart',aValue);
  73272. end;
  73273. procedure TJSOptionalEffectTiming._Setiterations(const aValue : Double);
  73274. begin
  73275. WriteJSPropertyDouble('iterations',aValue);
  73276. end;
  73277. procedure TJSOptionalEffectTiming._Setduration(const aValue : TOptionalEffectTiming_duration_Type);
  73278. begin
  73279. WriteJSPropertyVariant('duration',aValue);
  73280. end;
  73281. procedure TJSOptionalEffectTiming._Setdirection(const aValue : TPlaybackDirection);
  73282. begin
  73283. WriteJSPropertyUnicodeString('direction',aValue);
  73284. end;
  73285. procedure TJSOptionalEffectTiming._Seteasing(const aValue : UTF8String);
  73286. begin
  73287. WriteJSPropertyUTF8String('easing',aValue);
  73288. end;
  73289. class function TJSOptionalEffectTiming.JSClassName: UnicodeString;
  73290. begin
  73291. Result:='Object';
  73292. end;
  73293. class function TJSOptionalEffectTiming.Cast(const Intf: IJSObject): IJSOptionalEffectTiming;
  73294. begin
  73295. Result:=TJSOptionalEffectTiming.JOBCast(Intf);
  73296. end;
  73297. function TJSComputedEffectTiming._GetendTime: Double;
  73298. begin
  73299. Result:=ReadJSPropertyDouble('endTime');
  73300. end;
  73301. function TJSComputedEffectTiming._GetactiveDuration: Double;
  73302. begin
  73303. Result:=ReadJSPropertyDouble('activeDuration');
  73304. end;
  73305. function TJSComputedEffectTiming._GetlocalTime: Double;
  73306. begin
  73307. Result:=ReadJSPropertyDouble('localTime');
  73308. end;
  73309. function TJSComputedEffectTiming._Getprogress: Double;
  73310. begin
  73311. Result:=ReadJSPropertyDouble('progress');
  73312. end;
  73313. function TJSComputedEffectTiming._GetcurrentIteration: Double;
  73314. begin
  73315. Result:=ReadJSPropertyDouble('currentIteration');
  73316. end;
  73317. procedure TJSComputedEffectTiming._SetendTime(const aValue : Double);
  73318. begin
  73319. WriteJSPropertyDouble('endTime',aValue);
  73320. end;
  73321. procedure TJSComputedEffectTiming._SetactiveDuration(const aValue : Double);
  73322. begin
  73323. WriteJSPropertyDouble('activeDuration',aValue);
  73324. end;
  73325. procedure TJSComputedEffectTiming._SetlocalTime(const aValue : Double);
  73326. begin
  73327. WriteJSPropertyDouble('localTime',aValue);
  73328. end;
  73329. procedure TJSComputedEffectTiming._Setprogress(const aValue : Double);
  73330. begin
  73331. WriteJSPropertyDouble('progress',aValue);
  73332. end;
  73333. procedure TJSComputedEffectTiming._SetcurrentIteration(const aValue : Double);
  73334. begin
  73335. WriteJSPropertyDouble('currentIteration',aValue);
  73336. end;
  73337. class function TJSComputedEffectTiming.JSClassName: UnicodeString;
  73338. begin
  73339. Result:='Object';
  73340. end;
  73341. class function TJSComputedEffectTiming.Cast(const Intf: IJSObject): IJSComputedEffectTiming;
  73342. begin
  73343. Result:=TJSComputedEffectTiming.JOBCast(Intf);
  73344. end;
  73345. function TJSAnimationEffect.getTiming: TJSEffectTiming;
  73346. begin
  73347. Result:=InvokeJSObjectResult('getTiming',[],TJSEffectTiming) as TJSEffectTiming;
  73348. end;
  73349. function TJSAnimationEffect.getComputedTiming: TJSComputedEffectTiming;
  73350. begin
  73351. Result:=InvokeJSObjectResult('getComputedTiming',[],TJSComputedEffectTiming) as TJSComputedEffectTiming;
  73352. end;
  73353. procedure TJSAnimationEffect.updateTiming(const aTiming: TJSOptionalEffectTiming);
  73354. begin
  73355. InvokeJSNoResult('updateTiming',[aTiming]);
  73356. end;
  73357. procedure TJSAnimationEffect.updateTiming;
  73358. begin
  73359. InvokeJSNoResult('updateTiming',[]);
  73360. end;
  73361. class function TJSAnimationEffect.JSClassName: UnicodeString;
  73362. begin
  73363. Result:='AnimationEffect';
  73364. end;
  73365. class function TJSAnimationEffect.Cast(const Intf: IJSObject): IJSAnimationEffect;
  73366. begin
  73367. Result:=TJSAnimationEffect.JOBCast(Intf);
  73368. end;
  73369. function TJSAnimationEvent._GetanimationName: UnicodeString;
  73370. begin
  73371. Result:=ReadJSPropertyUnicodeString('animationName');
  73372. end;
  73373. function TJSAnimationEvent._GetelapsedTime: Single;
  73374. begin
  73375. Result:=ReadJSPropertyDouble('elapsedTime');
  73376. end;
  73377. function TJSAnimationEvent._GetpseudoElement: UnicodeString;
  73378. begin
  73379. Result:=ReadJSPropertyUnicodeString('pseudoElement');
  73380. end;
  73381. constructor TJSAnimationEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSAnimationEventInit);
  73382. begin
  73383. JOBCreate([aType_,aEventInitDict]);
  73384. end;
  73385. constructor TJSAnimationEvent.Create(const aType_: UnicodeString);
  73386. begin
  73387. JOBCreate([aType_]);
  73388. end;
  73389. class function TJSAnimationEvent.JSClassName: UnicodeString;
  73390. begin
  73391. Result:='AnimationEvent';
  73392. end;
  73393. class function TJSAnimationEvent.Cast(const Intf: IJSObject): IJSAnimationEvent;
  73394. begin
  73395. Result:=TJSAnimationEvent.JOBCast(Intf);
  73396. end;
  73397. function TJSAnimationEventInit._GetanimationName: UnicodeString;
  73398. begin
  73399. Result:=ReadJSPropertyUnicodeString('animationName');
  73400. end;
  73401. function TJSAnimationEventInit._GetelapsedTime: Single;
  73402. begin
  73403. Result:=ReadJSPropertyDouble('elapsedTime');
  73404. end;
  73405. function TJSAnimationEventInit._GetpseudoElement: UnicodeString;
  73406. begin
  73407. Result:=ReadJSPropertyUnicodeString('pseudoElement');
  73408. end;
  73409. procedure TJSAnimationEventInit._SetanimationName(const aValue : UnicodeString);
  73410. begin
  73411. WriteJSPropertyUnicodeString('animationName',aValue);
  73412. end;
  73413. procedure TJSAnimationEventInit._SetelapsedTime(const aValue : Single);
  73414. begin
  73415. WriteJSPropertyDouble('elapsedTime',aValue);
  73416. end;
  73417. procedure TJSAnimationEventInit._SetpseudoElement(const aValue : UnicodeString);
  73418. begin
  73419. WriteJSPropertyUnicodeString('pseudoElement',aValue);
  73420. end;
  73421. class function TJSAnimationEventInit.JSClassName: UnicodeString;
  73422. begin
  73423. Result:='Object';
  73424. end;
  73425. class function TJSAnimationEventInit.Cast(const Intf: IJSObject): IJSAnimationEventInit;
  73426. begin
  73427. Result:=TJSAnimationEventInit.JOBCast(Intf);
  73428. end;
  73429. function TJSAnimationFrameProvider.requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt;
  73430. var
  73431. m: TJOB_Method;
  73432. begin
  73433. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFrameRequestCallback);
  73434. try
  73435. Result:=InvokeJSLongIntResult('requestAnimationFrame',[m]);
  73436. finally
  73437. m.free;
  73438. end;
  73439. end;
  73440. procedure TJSAnimationFrameProvider.cancelAnimationFrame(aHandle: LongInt);
  73441. begin
  73442. InvokeJSNoResult('cancelAnimationFrame',[aHandle]);
  73443. end;
  73444. class function TJSAnimationFrameProvider.JSClassName: UnicodeString;
  73445. begin
  73446. Result:='AnimationFrameProvider';
  73447. end;
  73448. class function TJSAnimationFrameProvider.Cast(const Intf: IJSObject): IJSAnimationFrameProvider;
  73449. begin
  73450. Result:=TJSAnimationFrameProvider.JOBCast(Intf);
  73451. end;
  73452. function TJSAnimationPlaybackEvent._GetcurrentTime: Double;
  73453. begin
  73454. Result:=ReadJSPropertyDouble('currentTime');
  73455. end;
  73456. function TJSAnimationPlaybackEvent._GettimelineTime: Double;
  73457. begin
  73458. Result:=ReadJSPropertyDouble('timelineTime');
  73459. end;
  73460. constructor TJSAnimationPlaybackEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSAnimationPlaybackEventInit);
  73461. begin
  73462. JOBCreate([aType_,aEventInitDict]);
  73463. end;
  73464. constructor TJSAnimationPlaybackEvent.Create(const aType_: UnicodeString);
  73465. begin
  73466. JOBCreate([aType_]);
  73467. end;
  73468. class function TJSAnimationPlaybackEvent.JSClassName: UnicodeString;
  73469. begin
  73470. Result:='AnimationPlaybackEvent';
  73471. end;
  73472. class function TJSAnimationPlaybackEvent.Cast(const Intf: IJSObject): IJSAnimationPlaybackEvent;
  73473. begin
  73474. Result:=TJSAnimationPlaybackEvent.JOBCast(Intf);
  73475. end;
  73476. function TJSAnimationPlaybackEventInit._GetcurrentTime: Double;
  73477. begin
  73478. Result:=ReadJSPropertyDouble('currentTime');
  73479. end;
  73480. function TJSAnimationPlaybackEventInit._GettimelineTime: Double;
  73481. begin
  73482. Result:=ReadJSPropertyDouble('timelineTime');
  73483. end;
  73484. procedure TJSAnimationPlaybackEventInit._SetcurrentTime(const aValue : Double);
  73485. begin
  73486. WriteJSPropertyDouble('currentTime',aValue);
  73487. end;
  73488. procedure TJSAnimationPlaybackEventInit._SettimelineTime(const aValue : Double);
  73489. begin
  73490. WriteJSPropertyDouble('timelineTime',aValue);
  73491. end;
  73492. class function TJSAnimationPlaybackEventInit.JSClassName: UnicodeString;
  73493. begin
  73494. Result:='Object';
  73495. end;
  73496. class function TJSAnimationPlaybackEventInit.Cast(const Intf: IJSObject): IJSAnimationPlaybackEventInit;
  73497. begin
  73498. Result:=TJSAnimationPlaybackEventInit.JOBCast(Intf);
  73499. end;
  73500. function TJSAnimationTimeline._GetcurrentTime: Double;
  73501. begin
  73502. Result:=ReadJSPropertyDouble('currentTime');
  73503. end;
  73504. class function TJSAnimationTimeline.JSClassName: UnicodeString;
  73505. begin
  73506. Result:='AnimationTimeline';
  73507. end;
  73508. class function TJSAnimationTimeline.Cast(const Intf: IJSObject): IJSAnimationTimeline;
  73509. begin
  73510. Result:=TJSAnimationTimeline.JOBCast(Intf);
  73511. end;
  73512. function TJSAppInfo._Getpath: UnicodeString;
  73513. begin
  73514. Result:=ReadJSPropertyUnicodeString('path');
  73515. end;
  73516. function TJSAppInfo._GetisCoreApp: Boolean;
  73517. begin
  73518. Result:=ReadJSPropertyBoolean('isCoreApp');
  73519. end;
  73520. procedure TJSAppInfo._Setpath(const aValue : UnicodeString);
  73521. begin
  73522. WriteJSPropertyUnicodeString('path',aValue);
  73523. end;
  73524. procedure TJSAppInfo._SetisCoreApp(const aValue : Boolean);
  73525. begin
  73526. WriteJSPropertyBoolean('isCoreApp',aValue);
  73527. end;
  73528. class function TJSAppInfo.JSClassName: UnicodeString;
  73529. begin
  73530. Result:='Object';
  73531. end;
  73532. class function TJSAppInfo.Cast(const Intf: IJSObject): IJSAppInfo;
  73533. begin
  73534. Result:=TJSAppInfo.JOBCast(Intf);
  73535. end;
  73536. class function TJSMozObserver.JSClassName: UnicodeString;
  73537. begin
  73538. Result:='MozObserver';
  73539. end;
  73540. class function TJSMozObserver.Cast(const Intf: IJSObject): IJSMozObserver;
  73541. begin
  73542. Result:=TJSMozObserver.JOBCast(Intf);
  73543. end;
  73544. function TJSAppNotificationServiceOptions._GettextClickable: Boolean;
  73545. begin
  73546. Result:=ReadJSPropertyBoolean('textClickable');
  73547. end;
  73548. function TJSAppNotificationServiceOptions._GetmanifestURL: UnicodeString;
  73549. begin
  73550. Result:=ReadJSPropertyUnicodeString('manifestURL');
  73551. end;
  73552. function TJSAppNotificationServiceOptions._Getid: UnicodeString;
  73553. begin
  73554. Result:=ReadJSPropertyUnicodeString('id');
  73555. end;
  73556. function TJSAppNotificationServiceOptions._GetdbId: UnicodeString;
  73557. begin
  73558. Result:=ReadJSPropertyUnicodeString('dbId');
  73559. end;
  73560. function TJSAppNotificationServiceOptions._Getdir: UnicodeString;
  73561. begin
  73562. Result:=ReadJSPropertyUnicodeString('dir');
  73563. end;
  73564. function TJSAppNotificationServiceOptions._Getlang: UnicodeString;
  73565. begin
  73566. Result:=ReadJSPropertyUnicodeString('lang');
  73567. end;
  73568. function TJSAppNotificationServiceOptions._Gettag: UnicodeString;
  73569. begin
  73570. Result:=ReadJSPropertyUnicodeString('tag');
  73571. end;
  73572. function TJSAppNotificationServiceOptions._Getdata: UnicodeString;
  73573. begin
  73574. Result:=ReadJSPropertyUnicodeString('data');
  73575. end;
  73576. function TJSAppNotificationServiceOptions._Getmozbehavior: TJSNotificationBehavior;
  73577. begin
  73578. Result:=ReadJSPropertyObject('mozbehavior',TJSNotificationBehavior) as TJSNotificationBehavior;
  73579. end;
  73580. procedure TJSAppNotificationServiceOptions._SettextClickable(const aValue : Boolean);
  73581. begin
  73582. WriteJSPropertyBoolean('textClickable',aValue);
  73583. end;
  73584. procedure TJSAppNotificationServiceOptions._SetmanifestURL(const aValue : UnicodeString);
  73585. begin
  73586. WriteJSPropertyUnicodeString('manifestURL',aValue);
  73587. end;
  73588. procedure TJSAppNotificationServiceOptions._Setid(const aValue : UnicodeString);
  73589. begin
  73590. WriteJSPropertyUnicodeString('id',aValue);
  73591. end;
  73592. procedure TJSAppNotificationServiceOptions._SetdbId(const aValue : UnicodeString);
  73593. begin
  73594. WriteJSPropertyUnicodeString('dbId',aValue);
  73595. end;
  73596. procedure TJSAppNotificationServiceOptions._Setdir(const aValue : UnicodeString);
  73597. begin
  73598. WriteJSPropertyUnicodeString('dir',aValue);
  73599. end;
  73600. procedure TJSAppNotificationServiceOptions._Setlang(const aValue : UnicodeString);
  73601. begin
  73602. WriteJSPropertyUnicodeString('lang',aValue);
  73603. end;
  73604. procedure TJSAppNotificationServiceOptions._Settag(const aValue : UnicodeString);
  73605. begin
  73606. WriteJSPropertyUnicodeString('tag',aValue);
  73607. end;
  73608. procedure TJSAppNotificationServiceOptions._Setdata(const aValue : UnicodeString);
  73609. begin
  73610. WriteJSPropertyUnicodeString('data',aValue);
  73611. end;
  73612. procedure TJSAppNotificationServiceOptions._Setmozbehavior(const aValue : TJSNotificationBehavior);
  73613. begin
  73614. WriteJSPropertyObject('mozbehavior',aValue);
  73615. end;
  73616. class function TJSAppNotificationServiceOptions.JSClassName: UnicodeString;
  73617. begin
  73618. Result:='Object';
  73619. end;
  73620. class function TJSAppNotificationServiceOptions.Cast(const Intf: IJSObject): IJSAppNotificationServiceOptions;
  73621. begin
  73622. Result:=TJSAppNotificationServiceOptions.JOBCast(Intf);
  73623. end;
  73624. function TJSScrollFrameDataEntry._Getkey: UnicodeString;
  73625. begin
  73626. Result:=ReadJSPropertyUnicodeString('key');
  73627. end;
  73628. function TJSScrollFrameDataEntry._Getvalue: UnicodeString;
  73629. begin
  73630. Result:=ReadJSPropertyUnicodeString('value');
  73631. end;
  73632. procedure TJSScrollFrameDataEntry._Setkey(const aValue : UnicodeString);
  73633. begin
  73634. WriteJSPropertyUnicodeString('key',aValue);
  73635. end;
  73636. procedure TJSScrollFrameDataEntry._Setvalue(const aValue : UnicodeString);
  73637. begin
  73638. WriteJSPropertyUnicodeString('value',aValue);
  73639. end;
  73640. class function TJSScrollFrameDataEntry.JSClassName: UnicodeString;
  73641. begin
  73642. Result:='Object';
  73643. end;
  73644. class function TJSScrollFrameDataEntry.Cast(const Intf: IJSObject): IJSScrollFrameDataEntry;
  73645. begin
  73646. Result:=TJSScrollFrameDataEntry.JOBCast(Intf);
  73647. end;
  73648. function TJSScrollFrameData._GetscrollId: QWord;
  73649. begin
  73650. Result:=ReadJSPropertyInt64('scrollId');
  73651. end;
  73652. function TJSScrollFrameData._Getentries: TJSScrollFrameDataEntryDynArray;
  73653. begin
  73654. Result:=ReadJSPropertyObject('entries',TJSArray) as TJSScrollFrameDataEntryDynArray;
  73655. end;
  73656. procedure TJSScrollFrameData._SetscrollId(const aValue : QWord);
  73657. begin
  73658. WriteJSPropertyDouble('scrollId',aValue);
  73659. end;
  73660. procedure TJSScrollFrameData._Setentries(const aValue : TJSScrollFrameDataEntryDynArray);
  73661. begin
  73662. WriteJSPropertyObject('entries',aValue);
  73663. end;
  73664. class function TJSScrollFrameData.JSClassName: UnicodeString;
  73665. begin
  73666. Result:='Object';
  73667. end;
  73668. class function TJSScrollFrameData.Cast(const Intf: IJSObject): IJSScrollFrameData;
  73669. begin
  73670. Result:=TJSScrollFrameData.JOBCast(Intf);
  73671. end;
  73672. function TJSAPZBucket._GetsequenceNumber: Cardinal;
  73673. begin
  73674. Result:=ReadJSPropertyInt64('sequenceNumber');
  73675. end;
  73676. function TJSAPZBucket._GetscrollFrames: TJSScrollFrameDataDynArray;
  73677. begin
  73678. Result:=ReadJSPropertyObject('scrollFrames',TJSArray) as TJSScrollFrameDataDynArray;
  73679. end;
  73680. procedure TJSAPZBucket._SetsequenceNumber(const aValue : Cardinal);
  73681. begin
  73682. WriteJSPropertyDouble('sequenceNumber',aValue);
  73683. end;
  73684. procedure TJSAPZBucket._SetscrollFrames(const aValue : TJSScrollFrameDataDynArray);
  73685. begin
  73686. WriteJSPropertyObject('scrollFrames',aValue);
  73687. end;
  73688. class function TJSAPZBucket.JSClassName: UnicodeString;
  73689. begin
  73690. Result:='Object';
  73691. end;
  73692. class function TJSAPZBucket.Cast(const Intf: IJSObject): IJSAPZBucket;
  73693. begin
  73694. Result:=TJSAPZBucket.JOBCast(Intf);
  73695. end;
  73696. class function TJSAPZHitResultFlags.JSClassName: UnicodeString;
  73697. begin
  73698. Result:='APZHitResultFlags';
  73699. end;
  73700. class function TJSAPZHitResultFlags.Cast(const Intf: IJSObject): IJSAPZHitResultFlags;
  73701. begin
  73702. Result:=TJSAPZHitResultFlags.JOBCast(Intf);
  73703. end;
  73704. function TJSAPZHitResult._GetscreenX: Single;
  73705. begin
  73706. Result:=ReadJSPropertyDouble('screenX');
  73707. end;
  73708. function TJSAPZHitResult._GetscreenY: Single;
  73709. begin
  73710. Result:=ReadJSPropertyDouble('screenY');
  73711. end;
  73712. function TJSAPZHitResult._GethitResult: Word;
  73713. begin
  73714. Result:=ReadJSPropertyLongInt('hitResult');
  73715. end;
  73716. function TJSAPZHitResult._GetlayersId: QWord;
  73717. begin
  73718. Result:=ReadJSPropertyInt64('layersId');
  73719. end;
  73720. function TJSAPZHitResult._GetscrollId: QWord;
  73721. begin
  73722. Result:=ReadJSPropertyInt64('scrollId');
  73723. end;
  73724. procedure TJSAPZHitResult._SetscreenX(const aValue : Single);
  73725. begin
  73726. WriteJSPropertyDouble('screenX',aValue);
  73727. end;
  73728. procedure TJSAPZHitResult._SetscreenY(const aValue : Single);
  73729. begin
  73730. WriteJSPropertyDouble('screenY',aValue);
  73731. end;
  73732. procedure TJSAPZHitResult._SethitResult(const aValue : Word);
  73733. begin
  73734. WriteJSPropertyLongInt('hitResult',aValue);
  73735. end;
  73736. procedure TJSAPZHitResult._SetlayersId(const aValue : QWord);
  73737. begin
  73738. WriteJSPropertyDouble('layersId',aValue);
  73739. end;
  73740. procedure TJSAPZHitResult._SetscrollId(const aValue : QWord);
  73741. begin
  73742. WriteJSPropertyDouble('scrollId',aValue);
  73743. end;
  73744. class function TJSAPZHitResult.JSClassName: UnicodeString;
  73745. begin
  73746. Result:='Object';
  73747. end;
  73748. class function TJSAPZHitResult.Cast(const Intf: IJSObject): IJSAPZHitResult;
  73749. begin
  73750. Result:=TJSAPZHitResult.JOBCast(Intf);
  73751. end;
  73752. function TJSAPZSampledResult._GetscrollOffsetX: Single;
  73753. begin
  73754. Result:=ReadJSPropertyDouble('scrollOffsetX');
  73755. end;
  73756. function TJSAPZSampledResult._GetscrollOffsetY: Single;
  73757. begin
  73758. Result:=ReadJSPropertyDouble('scrollOffsetY');
  73759. end;
  73760. function TJSAPZSampledResult._GetsampledTimeStamp: TDOMHighResTimeStamp;
  73761. begin
  73762. Result:=ReadJSPropertyDouble('sampledTimeStamp');
  73763. end;
  73764. function TJSAPZSampledResult._GetlayersId: QWord;
  73765. begin
  73766. Result:=ReadJSPropertyInt64('layersId');
  73767. end;
  73768. function TJSAPZSampledResult._GetscrollId: QWord;
  73769. begin
  73770. Result:=ReadJSPropertyInt64('scrollId');
  73771. end;
  73772. procedure TJSAPZSampledResult._SetscrollOffsetX(const aValue : Single);
  73773. begin
  73774. WriteJSPropertyDouble('scrollOffsetX',aValue);
  73775. end;
  73776. procedure TJSAPZSampledResult._SetscrollOffsetY(const aValue : Single);
  73777. begin
  73778. WriteJSPropertyDouble('scrollOffsetY',aValue);
  73779. end;
  73780. procedure TJSAPZSampledResult._SetsampledTimeStamp(const aValue : TDOMHighResTimeStamp);
  73781. begin
  73782. WriteJSPropertyDouble('sampledTimeStamp',aValue);
  73783. end;
  73784. procedure TJSAPZSampledResult._SetlayersId(const aValue : QWord);
  73785. begin
  73786. WriteJSPropertyDouble('layersId',aValue);
  73787. end;
  73788. procedure TJSAPZSampledResult._SetscrollId(const aValue : QWord);
  73789. begin
  73790. WriteJSPropertyDouble('scrollId',aValue);
  73791. end;
  73792. class function TJSAPZSampledResult.JSClassName: UnicodeString;
  73793. begin
  73794. Result:='Object';
  73795. end;
  73796. class function TJSAPZSampledResult.Cast(const Intf: IJSObject): IJSAPZSampledResult;
  73797. begin
  73798. Result:=TJSAPZSampledResult.JOBCast(Intf);
  73799. end;
  73800. function TJSAdditionalDataEntry._Getkey: UnicodeString;
  73801. begin
  73802. Result:=ReadJSPropertyUnicodeString('key');
  73803. end;
  73804. function TJSAdditionalDataEntry._Getvalue: UnicodeString;
  73805. begin
  73806. Result:=ReadJSPropertyUnicodeString('value');
  73807. end;
  73808. procedure TJSAdditionalDataEntry._Setkey(const aValue : UnicodeString);
  73809. begin
  73810. WriteJSPropertyUnicodeString('key',aValue);
  73811. end;
  73812. procedure TJSAdditionalDataEntry._Setvalue(const aValue : UnicodeString);
  73813. begin
  73814. WriteJSPropertyUnicodeString('value',aValue);
  73815. end;
  73816. class function TJSAdditionalDataEntry.JSClassName: UnicodeString;
  73817. begin
  73818. Result:='Object';
  73819. end;
  73820. class function TJSAdditionalDataEntry.Cast(const Intf: IJSObject): IJSAdditionalDataEntry;
  73821. begin
  73822. Result:=TJSAdditionalDataEntry.JOBCast(Intf);
  73823. end;
  73824. function TJSAPZTestData._Getpaints: TJSAPZBucketDynArray;
  73825. begin
  73826. Result:=ReadJSPropertyObject('paints',TJSArray) as TJSAPZBucketDynArray;
  73827. end;
  73828. function TJSAPZTestData._GetrepaintRequests: TJSAPZBucketDynArray;
  73829. begin
  73830. Result:=ReadJSPropertyObject('repaintRequests',TJSArray) as TJSAPZBucketDynArray;
  73831. end;
  73832. function TJSAPZTestData._GethitResults: TJSAPZHitResultDynArray;
  73833. begin
  73834. Result:=ReadJSPropertyObject('hitResults',TJSArray) as TJSAPZHitResultDynArray;
  73835. end;
  73836. function TJSAPZTestData._GetsampledResults: TJSAPZSampledResultDynArray;
  73837. begin
  73838. Result:=ReadJSPropertyObject('sampledResults',TJSArray) as TJSAPZSampledResultDynArray;
  73839. end;
  73840. function TJSAPZTestData._GetadditionalData: TJSAdditionalDataEntryDynArray;
  73841. begin
  73842. Result:=ReadJSPropertyObject('additionalData',TJSArray) as TJSAdditionalDataEntryDynArray;
  73843. end;
  73844. procedure TJSAPZTestData._Setpaints(const aValue : TJSAPZBucketDynArray);
  73845. begin
  73846. WriteJSPropertyObject('paints',aValue);
  73847. end;
  73848. procedure TJSAPZTestData._SetrepaintRequests(const aValue : TJSAPZBucketDynArray);
  73849. begin
  73850. WriteJSPropertyObject('repaintRequests',aValue);
  73851. end;
  73852. procedure TJSAPZTestData._SethitResults(const aValue : TJSAPZHitResultDynArray);
  73853. begin
  73854. WriteJSPropertyObject('hitResults',aValue);
  73855. end;
  73856. procedure TJSAPZTestData._SetsampledResults(const aValue : TJSAPZSampledResultDynArray);
  73857. begin
  73858. WriteJSPropertyObject('sampledResults',aValue);
  73859. end;
  73860. procedure TJSAPZTestData._SetadditionalData(const aValue : TJSAdditionalDataEntryDynArray);
  73861. begin
  73862. WriteJSPropertyObject('additionalData',aValue);
  73863. end;
  73864. class function TJSAPZTestData.JSClassName: UnicodeString;
  73865. begin
  73866. Result:='Object';
  73867. end;
  73868. class function TJSAPZTestData.Cast(const Intf: IJSObject): IJSAPZTestData;
  73869. begin
  73870. Result:=TJSAPZTestData.JOBCast(Intf);
  73871. end;
  73872. function TJSFrameUniformity._GetlayerAddress: Cardinal;
  73873. begin
  73874. Result:=ReadJSPropertyInt64('layerAddress');
  73875. end;
  73876. function TJSFrameUniformity._GetframeUniformity: Single;
  73877. begin
  73878. Result:=ReadJSPropertyDouble('frameUniformity');
  73879. end;
  73880. procedure TJSFrameUniformity._SetlayerAddress(const aValue : Cardinal);
  73881. begin
  73882. WriteJSPropertyDouble('layerAddress',aValue);
  73883. end;
  73884. procedure TJSFrameUniformity._SetframeUniformity(const aValue : Single);
  73885. begin
  73886. WriteJSPropertyDouble('frameUniformity',aValue);
  73887. end;
  73888. class function TJSFrameUniformity.JSClassName: UnicodeString;
  73889. begin
  73890. Result:='Object';
  73891. end;
  73892. class function TJSFrameUniformity.Cast(const Intf: IJSObject): IJSFrameUniformity;
  73893. begin
  73894. Result:=TJSFrameUniformity.JOBCast(Intf);
  73895. end;
  73896. function TJSFrameUniformityResults._GetlayerUniformities: TJSFrameUniformityDynArray;
  73897. begin
  73898. Result:=ReadJSPropertyObject('layerUniformities',TJSArray) as TJSFrameUniformityDynArray;
  73899. end;
  73900. procedure TJSFrameUniformityResults._SetlayerUniformities(const aValue : TJSFrameUniformityDynArray);
  73901. begin
  73902. WriteJSPropertyObject('layerUniformities',aValue);
  73903. end;
  73904. class function TJSFrameUniformityResults.JSClassName: UnicodeString;
  73905. begin
  73906. Result:='Object';
  73907. end;
  73908. class function TJSFrameUniformityResults.Cast(const Intf: IJSObject): IJSFrameUniformityResults;
  73909. begin
  73910. Result:=TJSFrameUniformityResults.JOBCast(Intf);
  73911. end;
  73912. function TJSARIAMixin._GetariaActiveDescendantElement: IJSElement;
  73913. begin
  73914. Result:=ReadJSPropertyObject('ariaActiveDescendantElement',TJSElement) as IJSElement;
  73915. end;
  73916. function TJSARIAMixin._Getrole: UnicodeString;
  73917. begin
  73918. Result:=ReadJSPropertyUnicodeString('role');
  73919. end;
  73920. function TJSARIAMixin._GetariaAtomic: UnicodeString;
  73921. begin
  73922. Result:=ReadJSPropertyUnicodeString('ariaAtomic');
  73923. end;
  73924. function TJSARIAMixin._GetariaAutoComplete: UnicodeString;
  73925. begin
  73926. Result:=ReadJSPropertyUnicodeString('ariaAutoComplete');
  73927. end;
  73928. function TJSARIAMixin._GetariaBrailleLabel: UnicodeString;
  73929. begin
  73930. Result:=ReadJSPropertyUnicodeString('ariaBrailleLabel');
  73931. end;
  73932. function TJSARIAMixin._GetariaBrailleRoleDescription: UnicodeString;
  73933. begin
  73934. Result:=ReadJSPropertyUnicodeString('ariaBrailleRoleDescription');
  73935. end;
  73936. function TJSARIAMixin._GetariaBusy: UnicodeString;
  73937. begin
  73938. Result:=ReadJSPropertyUnicodeString('ariaBusy');
  73939. end;
  73940. function TJSARIAMixin._GetariaChecked: UnicodeString;
  73941. begin
  73942. Result:=ReadJSPropertyUnicodeString('ariaChecked');
  73943. end;
  73944. function TJSARIAMixin._GetariaColCount: UnicodeString;
  73945. begin
  73946. Result:=ReadJSPropertyUnicodeString('ariaColCount');
  73947. end;
  73948. function TJSARIAMixin._GetariaColIndex: UnicodeString;
  73949. begin
  73950. Result:=ReadJSPropertyUnicodeString('ariaColIndex');
  73951. end;
  73952. function TJSARIAMixin._GetariaColIndexText: UnicodeString;
  73953. begin
  73954. Result:=ReadJSPropertyUnicodeString('ariaColIndexText');
  73955. end;
  73956. function TJSARIAMixin._GetariaColSpan: UnicodeString;
  73957. begin
  73958. Result:=ReadJSPropertyUnicodeString('ariaColSpan');
  73959. end;
  73960. function TJSARIAMixin._GetariaCurrent: UnicodeString;
  73961. begin
  73962. Result:=ReadJSPropertyUnicodeString('ariaCurrent');
  73963. end;
  73964. function TJSARIAMixin._GetariaDescription: UnicodeString;
  73965. begin
  73966. Result:=ReadJSPropertyUnicodeString('ariaDescription');
  73967. end;
  73968. function TJSARIAMixin._GetariaDisabled: UnicodeString;
  73969. begin
  73970. Result:=ReadJSPropertyUnicodeString('ariaDisabled');
  73971. end;
  73972. function TJSARIAMixin._GetariaExpanded: UnicodeString;
  73973. begin
  73974. Result:=ReadJSPropertyUnicodeString('ariaExpanded');
  73975. end;
  73976. function TJSARIAMixin._GetariaHasPopup: UnicodeString;
  73977. begin
  73978. Result:=ReadJSPropertyUnicodeString('ariaHasPopup');
  73979. end;
  73980. function TJSARIAMixin._GetariaHidden: UnicodeString;
  73981. begin
  73982. Result:=ReadJSPropertyUnicodeString('ariaHidden');
  73983. end;
  73984. function TJSARIAMixin._GetariaInvalid: UnicodeString;
  73985. begin
  73986. Result:=ReadJSPropertyUnicodeString('ariaInvalid');
  73987. end;
  73988. function TJSARIAMixin._GetariaKeyShortcuts: UnicodeString;
  73989. begin
  73990. Result:=ReadJSPropertyUnicodeString('ariaKeyShortcuts');
  73991. end;
  73992. function TJSARIAMixin._GetariaLabel: UnicodeString;
  73993. begin
  73994. Result:=ReadJSPropertyUnicodeString('ariaLabel');
  73995. end;
  73996. function TJSARIAMixin._GetariaLevel: UnicodeString;
  73997. begin
  73998. Result:=ReadJSPropertyUnicodeString('ariaLevel');
  73999. end;
  74000. function TJSARIAMixin._GetariaLive: UnicodeString;
  74001. begin
  74002. Result:=ReadJSPropertyUnicodeString('ariaLive');
  74003. end;
  74004. function TJSARIAMixin._GetariaModal: UnicodeString;
  74005. begin
  74006. Result:=ReadJSPropertyUnicodeString('ariaModal');
  74007. end;
  74008. function TJSARIAMixin._GetariaMultiLine: UnicodeString;
  74009. begin
  74010. Result:=ReadJSPropertyUnicodeString('ariaMultiLine');
  74011. end;
  74012. function TJSARIAMixin._GetariaMultiSelectable: UnicodeString;
  74013. begin
  74014. Result:=ReadJSPropertyUnicodeString('ariaMultiSelectable');
  74015. end;
  74016. function TJSARIAMixin._GetariaOrientation: UnicodeString;
  74017. begin
  74018. Result:=ReadJSPropertyUnicodeString('ariaOrientation');
  74019. end;
  74020. function TJSARIAMixin._GetariaPlaceholder: UnicodeString;
  74021. begin
  74022. Result:=ReadJSPropertyUnicodeString('ariaPlaceholder');
  74023. end;
  74024. function TJSARIAMixin._GetariaPosInSet: UnicodeString;
  74025. begin
  74026. Result:=ReadJSPropertyUnicodeString('ariaPosInSet');
  74027. end;
  74028. function TJSARIAMixin._GetariaPressed: UnicodeString;
  74029. begin
  74030. Result:=ReadJSPropertyUnicodeString('ariaPressed');
  74031. end;
  74032. function TJSARIAMixin._GetariaReadOnly: UnicodeString;
  74033. begin
  74034. Result:=ReadJSPropertyUnicodeString('ariaReadOnly');
  74035. end;
  74036. function TJSARIAMixin._GetariaRelevant: UnicodeString;
  74037. begin
  74038. Result:=ReadJSPropertyUnicodeString('ariaRelevant');
  74039. end;
  74040. function TJSARIAMixin._GetariaRequired: UnicodeString;
  74041. begin
  74042. Result:=ReadJSPropertyUnicodeString('ariaRequired');
  74043. end;
  74044. function TJSARIAMixin._GetariaRoleDescription: UnicodeString;
  74045. begin
  74046. Result:=ReadJSPropertyUnicodeString('ariaRoleDescription');
  74047. end;
  74048. function TJSARIAMixin._GetariaRowCount: UnicodeString;
  74049. begin
  74050. Result:=ReadJSPropertyUnicodeString('ariaRowCount');
  74051. end;
  74052. function TJSARIAMixin._GetariaRowIndex: UnicodeString;
  74053. begin
  74054. Result:=ReadJSPropertyUnicodeString('ariaRowIndex');
  74055. end;
  74056. function TJSARIAMixin._GetariaRowIndexText: UnicodeString;
  74057. begin
  74058. Result:=ReadJSPropertyUnicodeString('ariaRowIndexText');
  74059. end;
  74060. function TJSARIAMixin._GetariaRowSpan: UnicodeString;
  74061. begin
  74062. Result:=ReadJSPropertyUnicodeString('ariaRowSpan');
  74063. end;
  74064. function TJSARIAMixin._GetariaSelected: UnicodeString;
  74065. begin
  74066. Result:=ReadJSPropertyUnicodeString('ariaSelected');
  74067. end;
  74068. function TJSARIAMixin._GetariaSetSize: UnicodeString;
  74069. begin
  74070. Result:=ReadJSPropertyUnicodeString('ariaSetSize');
  74071. end;
  74072. function TJSARIAMixin._GetariaSort: UnicodeString;
  74073. begin
  74074. Result:=ReadJSPropertyUnicodeString('ariaSort');
  74075. end;
  74076. function TJSARIAMixin._GetariaValueMax: UnicodeString;
  74077. begin
  74078. Result:=ReadJSPropertyUnicodeString('ariaValueMax');
  74079. end;
  74080. function TJSARIAMixin._GetariaValueMin: UnicodeString;
  74081. begin
  74082. Result:=ReadJSPropertyUnicodeString('ariaValueMin');
  74083. end;
  74084. function TJSARIAMixin._GetariaValueNow: UnicodeString;
  74085. begin
  74086. Result:=ReadJSPropertyUnicodeString('ariaValueNow');
  74087. end;
  74088. function TJSARIAMixin._GetariaValueText: UnicodeString;
  74089. begin
  74090. Result:=ReadJSPropertyUnicodeString('ariaValueText');
  74091. end;
  74092. procedure TJSARIAMixin._SetariaActiveDescendantElement(const aValue : IJSElement);
  74093. begin
  74094. WriteJSPropertyObject('ariaActiveDescendantElement',aValue);
  74095. end;
  74096. procedure TJSARIAMixin._Setrole(const aValue : UnicodeString);
  74097. begin
  74098. WriteJSPropertyUnicodeString('role',aValue);
  74099. end;
  74100. procedure TJSARIAMixin._SetariaAtomic(const aValue : UnicodeString);
  74101. begin
  74102. WriteJSPropertyUnicodeString('ariaAtomic',aValue);
  74103. end;
  74104. procedure TJSARIAMixin._SetariaAutoComplete(const aValue : UnicodeString);
  74105. begin
  74106. WriteJSPropertyUnicodeString('ariaAutoComplete',aValue);
  74107. end;
  74108. procedure TJSARIAMixin._SetariaBrailleLabel(const aValue : UnicodeString);
  74109. begin
  74110. WriteJSPropertyUnicodeString('ariaBrailleLabel',aValue);
  74111. end;
  74112. procedure TJSARIAMixin._SetariaBrailleRoleDescription(const aValue : UnicodeString);
  74113. begin
  74114. WriteJSPropertyUnicodeString('ariaBrailleRoleDescription',aValue);
  74115. end;
  74116. procedure TJSARIAMixin._SetariaBusy(const aValue : UnicodeString);
  74117. begin
  74118. WriteJSPropertyUnicodeString('ariaBusy',aValue);
  74119. end;
  74120. procedure TJSARIAMixin._SetariaChecked(const aValue : UnicodeString);
  74121. begin
  74122. WriteJSPropertyUnicodeString('ariaChecked',aValue);
  74123. end;
  74124. procedure TJSARIAMixin._SetariaColCount(const aValue : UnicodeString);
  74125. begin
  74126. WriteJSPropertyUnicodeString('ariaColCount',aValue);
  74127. end;
  74128. procedure TJSARIAMixin._SetariaColIndex(const aValue : UnicodeString);
  74129. begin
  74130. WriteJSPropertyUnicodeString('ariaColIndex',aValue);
  74131. end;
  74132. procedure TJSARIAMixin._SetariaColIndexText(const aValue : UnicodeString);
  74133. begin
  74134. WriteJSPropertyUnicodeString('ariaColIndexText',aValue);
  74135. end;
  74136. procedure TJSARIAMixin._SetariaColSpan(const aValue : UnicodeString);
  74137. begin
  74138. WriteJSPropertyUnicodeString('ariaColSpan',aValue);
  74139. end;
  74140. procedure TJSARIAMixin._SetariaCurrent(const aValue : UnicodeString);
  74141. begin
  74142. WriteJSPropertyUnicodeString('ariaCurrent',aValue);
  74143. end;
  74144. procedure TJSARIAMixin._SetariaDescription(const aValue : UnicodeString);
  74145. begin
  74146. WriteJSPropertyUnicodeString('ariaDescription',aValue);
  74147. end;
  74148. procedure TJSARIAMixin._SetariaDisabled(const aValue : UnicodeString);
  74149. begin
  74150. WriteJSPropertyUnicodeString('ariaDisabled',aValue);
  74151. end;
  74152. procedure TJSARIAMixin._SetariaExpanded(const aValue : UnicodeString);
  74153. begin
  74154. WriteJSPropertyUnicodeString('ariaExpanded',aValue);
  74155. end;
  74156. procedure TJSARIAMixin._SetariaHasPopup(const aValue : UnicodeString);
  74157. begin
  74158. WriteJSPropertyUnicodeString('ariaHasPopup',aValue);
  74159. end;
  74160. procedure TJSARIAMixin._SetariaHidden(const aValue : UnicodeString);
  74161. begin
  74162. WriteJSPropertyUnicodeString('ariaHidden',aValue);
  74163. end;
  74164. procedure TJSARIAMixin._SetariaInvalid(const aValue : UnicodeString);
  74165. begin
  74166. WriteJSPropertyUnicodeString('ariaInvalid',aValue);
  74167. end;
  74168. procedure TJSARIAMixin._SetariaKeyShortcuts(const aValue : UnicodeString);
  74169. begin
  74170. WriteJSPropertyUnicodeString('ariaKeyShortcuts',aValue);
  74171. end;
  74172. procedure TJSARIAMixin._SetariaLabel(const aValue : UnicodeString);
  74173. begin
  74174. WriteJSPropertyUnicodeString('ariaLabel',aValue);
  74175. end;
  74176. procedure TJSARIAMixin._SetariaLevel(const aValue : UnicodeString);
  74177. begin
  74178. WriteJSPropertyUnicodeString('ariaLevel',aValue);
  74179. end;
  74180. procedure TJSARIAMixin._SetariaLive(const aValue : UnicodeString);
  74181. begin
  74182. WriteJSPropertyUnicodeString('ariaLive',aValue);
  74183. end;
  74184. procedure TJSARIAMixin._SetariaModal(const aValue : UnicodeString);
  74185. begin
  74186. WriteJSPropertyUnicodeString('ariaModal',aValue);
  74187. end;
  74188. procedure TJSARIAMixin._SetariaMultiLine(const aValue : UnicodeString);
  74189. begin
  74190. WriteJSPropertyUnicodeString('ariaMultiLine',aValue);
  74191. end;
  74192. procedure TJSARIAMixin._SetariaMultiSelectable(const aValue : UnicodeString);
  74193. begin
  74194. WriteJSPropertyUnicodeString('ariaMultiSelectable',aValue);
  74195. end;
  74196. procedure TJSARIAMixin._SetariaOrientation(const aValue : UnicodeString);
  74197. begin
  74198. WriteJSPropertyUnicodeString('ariaOrientation',aValue);
  74199. end;
  74200. procedure TJSARIAMixin._SetariaPlaceholder(const aValue : UnicodeString);
  74201. begin
  74202. WriteJSPropertyUnicodeString('ariaPlaceholder',aValue);
  74203. end;
  74204. procedure TJSARIAMixin._SetariaPosInSet(const aValue : UnicodeString);
  74205. begin
  74206. WriteJSPropertyUnicodeString('ariaPosInSet',aValue);
  74207. end;
  74208. procedure TJSARIAMixin._SetariaPressed(const aValue : UnicodeString);
  74209. begin
  74210. WriteJSPropertyUnicodeString('ariaPressed',aValue);
  74211. end;
  74212. procedure TJSARIAMixin._SetariaReadOnly(const aValue : UnicodeString);
  74213. begin
  74214. WriteJSPropertyUnicodeString('ariaReadOnly',aValue);
  74215. end;
  74216. procedure TJSARIAMixin._SetariaRelevant(const aValue : UnicodeString);
  74217. begin
  74218. WriteJSPropertyUnicodeString('ariaRelevant',aValue);
  74219. end;
  74220. procedure TJSARIAMixin._SetariaRequired(const aValue : UnicodeString);
  74221. begin
  74222. WriteJSPropertyUnicodeString('ariaRequired',aValue);
  74223. end;
  74224. procedure TJSARIAMixin._SetariaRoleDescription(const aValue : UnicodeString);
  74225. begin
  74226. WriteJSPropertyUnicodeString('ariaRoleDescription',aValue);
  74227. end;
  74228. procedure TJSARIAMixin._SetariaRowCount(const aValue : UnicodeString);
  74229. begin
  74230. WriteJSPropertyUnicodeString('ariaRowCount',aValue);
  74231. end;
  74232. procedure TJSARIAMixin._SetariaRowIndex(const aValue : UnicodeString);
  74233. begin
  74234. WriteJSPropertyUnicodeString('ariaRowIndex',aValue);
  74235. end;
  74236. procedure TJSARIAMixin._SetariaRowIndexText(const aValue : UnicodeString);
  74237. begin
  74238. WriteJSPropertyUnicodeString('ariaRowIndexText',aValue);
  74239. end;
  74240. procedure TJSARIAMixin._SetariaRowSpan(const aValue : UnicodeString);
  74241. begin
  74242. WriteJSPropertyUnicodeString('ariaRowSpan',aValue);
  74243. end;
  74244. procedure TJSARIAMixin._SetariaSelected(const aValue : UnicodeString);
  74245. begin
  74246. WriteJSPropertyUnicodeString('ariaSelected',aValue);
  74247. end;
  74248. procedure TJSARIAMixin._SetariaSetSize(const aValue : UnicodeString);
  74249. begin
  74250. WriteJSPropertyUnicodeString('ariaSetSize',aValue);
  74251. end;
  74252. procedure TJSARIAMixin._SetariaSort(const aValue : UnicodeString);
  74253. begin
  74254. WriteJSPropertyUnicodeString('ariaSort',aValue);
  74255. end;
  74256. procedure TJSARIAMixin._SetariaValueMax(const aValue : UnicodeString);
  74257. begin
  74258. WriteJSPropertyUnicodeString('ariaValueMax',aValue);
  74259. end;
  74260. procedure TJSARIAMixin._SetariaValueMin(const aValue : UnicodeString);
  74261. begin
  74262. WriteJSPropertyUnicodeString('ariaValueMin',aValue);
  74263. end;
  74264. procedure TJSARIAMixin._SetariaValueNow(const aValue : UnicodeString);
  74265. begin
  74266. WriteJSPropertyUnicodeString('ariaValueNow',aValue);
  74267. end;
  74268. procedure TJSARIAMixin._SetariaValueText(const aValue : UnicodeString);
  74269. begin
  74270. WriteJSPropertyUnicodeString('ariaValueText',aValue);
  74271. end;
  74272. class function TJSARIAMixin.JSClassName: UnicodeString;
  74273. begin
  74274. Result:='ARIAMixin';
  74275. end;
  74276. class function TJSARIAMixin.Cast(const Intf: IJSObject): IJSARIAMixin;
  74277. begin
  74278. Result:=TJSARIAMixin.JOBCast(Intf);
  74279. end;
  74280. function TJSAttr._GetlocalName: UnicodeString;
  74281. begin
  74282. Result:=ReadJSPropertyUnicodeString('localName');
  74283. end;
  74284. function TJSAttr._Getvalue: UnicodeString;
  74285. begin
  74286. Result:=ReadJSPropertyUnicodeString('value');
  74287. end;
  74288. function TJSAttr._Getname: UnicodeString;
  74289. begin
  74290. Result:=ReadJSPropertyUnicodeString('name');
  74291. end;
  74292. function TJSAttr._GetnamespaceURI: UnicodeString;
  74293. begin
  74294. Result:=ReadJSPropertyUnicodeString('namespaceURI');
  74295. end;
  74296. function TJSAttr._Getprefix: UnicodeString;
  74297. begin
  74298. Result:=ReadJSPropertyUnicodeString('prefix');
  74299. end;
  74300. function TJSAttr._Getspecified: Boolean;
  74301. begin
  74302. Result:=ReadJSPropertyBoolean('specified');
  74303. end;
  74304. function TJSAttr._GetownerElement: IJSElement;
  74305. begin
  74306. Result:=ReadJSPropertyObject('ownerElement',TJSElement) as IJSElement;
  74307. end;
  74308. procedure TJSAttr._Setvalue(const aValue : UnicodeString);
  74309. begin
  74310. WriteJSPropertyUnicodeString('value',aValue);
  74311. end;
  74312. class function TJSAttr.JSClassName: UnicodeString;
  74313. begin
  74314. Result:='Attr';
  74315. end;
  74316. class function TJSAttr.Cast(const Intf: IJSObject): IJSAttr;
  74317. begin
  74318. Result:=TJSAttr.JOBCast(Intf);
  74319. end;
  74320. function TJSAudioBufferOptions._GetnumberOfChannels: Cardinal;
  74321. begin
  74322. Result:=ReadJSPropertyInt64('numberOfChannels');
  74323. end;
  74324. function TJSAudioBufferOptions._Getlength_: Cardinal;
  74325. begin
  74326. Result:=ReadJSPropertyInt64('length');
  74327. end;
  74328. function TJSAudioBufferOptions._GetsampleRate: Single;
  74329. begin
  74330. Result:=ReadJSPropertyDouble('sampleRate');
  74331. end;
  74332. procedure TJSAudioBufferOptions._SetnumberOfChannels(const aValue : Cardinal);
  74333. begin
  74334. WriteJSPropertyDouble('numberOfChannels',aValue);
  74335. end;
  74336. procedure TJSAudioBufferOptions._Setlength_(const aValue : Cardinal);
  74337. begin
  74338. WriteJSPropertyDouble('length',aValue);
  74339. end;
  74340. procedure TJSAudioBufferOptions._SetsampleRate(const aValue : Single);
  74341. begin
  74342. WriteJSPropertyDouble('sampleRate',aValue);
  74343. end;
  74344. class function TJSAudioBufferOptions.JSClassName: UnicodeString;
  74345. begin
  74346. Result:='Object';
  74347. end;
  74348. class function TJSAudioBufferOptions.Cast(const Intf: IJSObject): IJSAudioBufferOptions;
  74349. begin
  74350. Result:=TJSAudioBufferOptions.JOBCast(Intf);
  74351. end;
  74352. function TJSAudioBuffer._GetsampleRate: Single;
  74353. begin
  74354. Result:=ReadJSPropertyDouble('sampleRate');
  74355. end;
  74356. function TJSAudioBuffer._Getlength_: Cardinal;
  74357. begin
  74358. Result:=ReadJSPropertyInt64('length');
  74359. end;
  74360. function TJSAudioBuffer._Getduration: Double;
  74361. begin
  74362. Result:=ReadJSPropertyDouble('duration');
  74363. end;
  74364. function TJSAudioBuffer._GetnumberOfChannels: Cardinal;
  74365. begin
  74366. Result:=ReadJSPropertyInt64('numberOfChannels');
  74367. end;
  74368. constructor TJSAudioBuffer.Create(const aOptions: TJSAudioBufferOptions);
  74369. begin
  74370. JOBCreate([aOptions]);
  74371. end;
  74372. function TJSAudioBuffer.getChannelData(aChannel: Cardinal): IJSFloat32Array;
  74373. begin
  74374. Result:=InvokeJSObjectResult('getChannelData',[aChannel],TJSArray) as IJSFloat32Array;
  74375. end;
  74376. procedure TJSAudioBuffer.copyFromChannel(aDestination: IJSFloat32Array; aChannelNumber: Cardinal; aStartInChannel: Cardinal);
  74377. begin
  74378. InvokeJSNoResult('copyFromChannel',[aDestination,aChannelNumber,aStartInChannel]);
  74379. end;
  74380. procedure TJSAudioBuffer.copyFromChannel(aDestination: IJSFloat32Array; aChannelNumber: Cardinal);
  74381. begin
  74382. InvokeJSNoResult('copyFromChannel',[aDestination,aChannelNumber]);
  74383. end;
  74384. procedure TJSAudioBuffer.copyToChannel(aSource: IJSFloat32Array; aChannelNumber: Cardinal; aStartInChannel: Cardinal);
  74385. begin
  74386. InvokeJSNoResult('copyToChannel',[aSource,aChannelNumber,aStartInChannel]);
  74387. end;
  74388. procedure TJSAudioBuffer.copyToChannel(aSource: IJSFloat32Array; aChannelNumber: Cardinal);
  74389. begin
  74390. InvokeJSNoResult('copyToChannel',[aSource,aChannelNumber]);
  74391. end;
  74392. class function TJSAudioBuffer.JSClassName: UnicodeString;
  74393. begin
  74394. Result:='AudioBuffer';
  74395. end;
  74396. class function TJSAudioBuffer.Cast(const Intf: IJSObject): IJSAudioBuffer;
  74397. begin
  74398. Result:=TJSAudioBuffer.JOBCast(Intf);
  74399. end;
  74400. function TJSAudioBufferSourceOptions._Getbuffer: IJSAudioBuffer;
  74401. begin
  74402. Result:=ReadJSPropertyObject('buffer',TJSAudioBuffer) as IJSAudioBuffer;
  74403. end;
  74404. function TJSAudioBufferSourceOptions._Getdetune: Single;
  74405. begin
  74406. Result:=ReadJSPropertyDouble('detune');
  74407. end;
  74408. function TJSAudioBufferSourceOptions._Getloop: Boolean;
  74409. begin
  74410. Result:=ReadJSPropertyBoolean('loop');
  74411. end;
  74412. function TJSAudioBufferSourceOptions._GetloopEnd: Double;
  74413. begin
  74414. Result:=ReadJSPropertyDouble('loopEnd');
  74415. end;
  74416. function TJSAudioBufferSourceOptions._GetloopStart: Double;
  74417. begin
  74418. Result:=ReadJSPropertyDouble('loopStart');
  74419. end;
  74420. function TJSAudioBufferSourceOptions._GetplaybackRate: Single;
  74421. begin
  74422. Result:=ReadJSPropertyDouble('playbackRate');
  74423. end;
  74424. procedure TJSAudioBufferSourceOptions._Setbuffer(const aValue : IJSAudioBuffer);
  74425. begin
  74426. WriteJSPropertyObject('buffer',aValue);
  74427. end;
  74428. procedure TJSAudioBufferSourceOptions._Setdetune(const aValue : Single);
  74429. begin
  74430. WriteJSPropertyDouble('detune',aValue);
  74431. end;
  74432. procedure TJSAudioBufferSourceOptions._Setloop(const aValue : Boolean);
  74433. begin
  74434. WriteJSPropertyBoolean('loop',aValue);
  74435. end;
  74436. procedure TJSAudioBufferSourceOptions._SetloopEnd(const aValue : Double);
  74437. begin
  74438. WriteJSPropertyDouble('loopEnd',aValue);
  74439. end;
  74440. procedure TJSAudioBufferSourceOptions._SetloopStart(const aValue : Double);
  74441. begin
  74442. WriteJSPropertyDouble('loopStart',aValue);
  74443. end;
  74444. procedure TJSAudioBufferSourceOptions._SetplaybackRate(const aValue : Single);
  74445. begin
  74446. WriteJSPropertyDouble('playbackRate',aValue);
  74447. end;
  74448. class function TJSAudioBufferSourceOptions.JSClassName: UnicodeString;
  74449. begin
  74450. Result:='Object';
  74451. end;
  74452. class function TJSAudioBufferSourceOptions.Cast(const Intf: IJSObject): IJSAudioBufferSourceOptions;
  74453. begin
  74454. Result:=TJSAudioBufferSourceOptions.JOBCast(Intf);
  74455. end;
  74456. function TJSAudioBufferSourceNode._Getbuffer: IJSAudioBuffer;
  74457. begin
  74458. Result:=ReadJSPropertyObject('buffer',TJSAudioBuffer) as IJSAudioBuffer;
  74459. end;
  74460. function TJSAudioBufferSourceNode._GetplaybackRate: IJSAudioParam;
  74461. begin
  74462. Result:=ReadJSPropertyObject('playbackRate',TJSAudioParam) as IJSAudioParam;
  74463. end;
  74464. function TJSAudioBufferSourceNode._Getdetune: IJSAudioParam;
  74465. begin
  74466. Result:=ReadJSPropertyObject('detune',TJSAudioParam) as IJSAudioParam;
  74467. end;
  74468. function TJSAudioBufferSourceNode._Getloop: Boolean;
  74469. begin
  74470. Result:=ReadJSPropertyBoolean('loop');
  74471. end;
  74472. function TJSAudioBufferSourceNode._GetloopStart: Double;
  74473. begin
  74474. Result:=ReadJSPropertyDouble('loopStart');
  74475. end;
  74476. function TJSAudioBufferSourceNode._GetloopEnd: Double;
  74477. begin
  74478. Result:=ReadJSPropertyDouble('loopEnd');
  74479. end;
  74480. procedure TJSAudioBufferSourceNode._Setbuffer(const aValue : IJSAudioBuffer);
  74481. begin
  74482. WriteJSPropertyObject('buffer',aValue);
  74483. end;
  74484. procedure TJSAudioBufferSourceNode._Setloop(const aValue : Boolean);
  74485. begin
  74486. WriteJSPropertyBoolean('loop',aValue);
  74487. end;
  74488. procedure TJSAudioBufferSourceNode._SetloopStart(const aValue : Double);
  74489. begin
  74490. WriteJSPropertyDouble('loopStart',aValue);
  74491. end;
  74492. procedure TJSAudioBufferSourceNode._SetloopEnd(const aValue : Double);
  74493. begin
  74494. WriteJSPropertyDouble('loopEnd',aValue);
  74495. end;
  74496. constructor TJSAudioBufferSourceNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSAudioBufferSourceOptions);
  74497. begin
  74498. JOBCreate([aContext,aOptions]);
  74499. end;
  74500. constructor TJSAudioBufferSourceNode.Create(aContext: IJSBaseAudioContext);
  74501. begin
  74502. JOBCreate([aContext]);
  74503. end;
  74504. procedure TJSAudioBufferSourceNode.start(aWhen: Double; aGrainOffset: Double; aGrainDuration: Double);
  74505. begin
  74506. InvokeJSNoResult('start',[aWhen,aGrainOffset,aGrainDuration]);
  74507. end;
  74508. procedure TJSAudioBufferSourceNode.start;
  74509. begin
  74510. InvokeJSNoResult('start',[]);
  74511. end;
  74512. procedure TJSAudioBufferSourceNode.start(aWhen: Double);
  74513. begin
  74514. InvokeJSNoResult('start',[aWhen]);
  74515. end;
  74516. procedure TJSAudioBufferSourceNode.start(aWhen: Double; aGrainOffset: Double);
  74517. begin
  74518. InvokeJSNoResult('start',[aWhen,aGrainOffset]);
  74519. end;
  74520. class function TJSAudioBufferSourceNode.JSClassName: UnicodeString;
  74521. begin
  74522. Result:='AudioBufferSourceNode';
  74523. end;
  74524. class function TJSAudioBufferSourceNode.Cast(const Intf: IJSObject): IJSAudioBufferSourceNode;
  74525. begin
  74526. Result:=TJSAudioBufferSourceNode.JOBCast(Intf);
  74527. end;
  74528. function TJSAudioContextOptions._GetsampleRate: Single;
  74529. begin
  74530. Result:=ReadJSPropertyDouble('sampleRate');
  74531. end;
  74532. procedure TJSAudioContextOptions._SetsampleRate(const aValue : Single);
  74533. begin
  74534. WriteJSPropertyDouble('sampleRate',aValue);
  74535. end;
  74536. class function TJSAudioContextOptions.JSClassName: UnicodeString;
  74537. begin
  74538. Result:='Object';
  74539. end;
  74540. class function TJSAudioContextOptions.Cast(const Intf: IJSObject): IJSAudioContextOptions;
  74541. begin
  74542. Result:=TJSAudioContextOptions.JOBCast(Intf);
  74543. end;
  74544. function TJSAudioTimestamp._GetcontextTime: Double;
  74545. begin
  74546. Result:=ReadJSPropertyDouble('contextTime');
  74547. end;
  74548. function TJSAudioTimestamp._GetperformanceTime: TDOMHighResTimeStamp;
  74549. begin
  74550. Result:=ReadJSPropertyDouble('performanceTime');
  74551. end;
  74552. procedure TJSAudioTimestamp._SetcontextTime(const aValue : Double);
  74553. begin
  74554. WriteJSPropertyDouble('contextTime',aValue);
  74555. end;
  74556. procedure TJSAudioTimestamp._SetperformanceTime(const aValue : TDOMHighResTimeStamp);
  74557. begin
  74558. WriteJSPropertyDouble('performanceTime',aValue);
  74559. end;
  74560. class function TJSAudioTimestamp.JSClassName: UnicodeString;
  74561. begin
  74562. Result:='Object';
  74563. end;
  74564. class function TJSAudioTimestamp.Cast(const Intf: IJSObject): IJSAudioTimestamp;
  74565. begin
  74566. Result:=TJSAudioTimestamp.JOBCast(Intf);
  74567. end;
  74568. function TJSAudioContext._GetbaseLatency: Double;
  74569. begin
  74570. Result:=ReadJSPropertyDouble('baseLatency');
  74571. end;
  74572. function TJSAudioContext._GetoutputLatency: Double;
  74573. begin
  74574. Result:=ReadJSPropertyDouble('outputLatency');
  74575. end;
  74576. constructor TJSAudioContext.Create(const aContextOptions: TJSAudioContextOptions);
  74577. begin
  74578. JOBCreate([aContextOptions]);
  74579. end;
  74580. constructor TJSAudioContext.Create;
  74581. begin
  74582. JOBCreate([]);
  74583. end;
  74584. function TJSAudioContext.getOutputTimestamp: TJSAudioTimestamp;
  74585. begin
  74586. Result:=InvokeJSObjectResult('getOutputTimestamp',[],TJSAudioTimestamp) as TJSAudioTimestamp;
  74587. end;
  74588. function TJSAudioContext.suspend: IJSPromise; // Promise<undefined>
  74589. begin
  74590. Result:=InvokeJSObjectResult('suspend',[],TJSPromise) as IJSPromise;
  74591. end;
  74592. function TJSAudioContext.close: IJSPromise; // Promise<undefined>
  74593. begin
  74594. Result:=InvokeJSObjectResult('close',[],TJSPromise) as IJSPromise;
  74595. end;
  74596. function TJSAudioContext.createMediaElementSource(aMediaElement: IJSHTMLMediaElement): IJSMediaElementAudioSourceNode;
  74597. begin
  74598. Result:=InvokeJSObjectResult('createMediaElementSource',[aMediaElement],TJSMediaElementAudioSourceNode) as IJSMediaElementAudioSourceNode;
  74599. end;
  74600. function TJSAudioContext.createMediaStreamSource(aMediaStream: IJSMediaStream): IJSMediaStreamAudioSourceNode;
  74601. begin
  74602. Result:=InvokeJSObjectResult('createMediaStreamSource',[aMediaStream],TJSMediaStreamAudioSourceNode) as IJSMediaStreamAudioSourceNode;
  74603. end;
  74604. function TJSAudioContext.createMediaStreamTrackSource(aMediaStreamTrack: IJSMediaStreamTrack): IJSMediaStreamTrackAudioSourceNode;
  74605. begin
  74606. Result:=InvokeJSObjectResult('createMediaStreamTrackSource',[aMediaStreamTrack],TJSMediaStreamTrackAudioSourceNode) as IJSMediaStreamTrackAudioSourceNode;
  74607. end;
  74608. function TJSAudioContext.createMediaStreamDestination: IJSMediaStreamAudioDestinationNode;
  74609. begin
  74610. Result:=InvokeJSObjectResult('createMediaStreamDestination',[],TJSMediaStreamAudioDestinationNode) as IJSMediaStreamAudioDestinationNode;
  74611. end;
  74612. class function TJSAudioContext.JSClassName: UnicodeString;
  74613. begin
  74614. Result:='AudioContext';
  74615. end;
  74616. class function TJSAudioContext.Cast(const Intf: IJSObject): IJSAudioContext;
  74617. begin
  74618. Result:=TJSAudioContext.JOBCast(Intf);
  74619. end;
  74620. function TJSAudioData._Getformat: TAudioSampleFormat;
  74621. begin
  74622. Result:=ReadJSPropertyUnicodeString('format');
  74623. end;
  74624. function TJSAudioData._GetsampleRate: Single;
  74625. begin
  74626. Result:=ReadJSPropertyDouble('sampleRate');
  74627. end;
  74628. function TJSAudioData._GetnumberOfFrames: Cardinal;
  74629. begin
  74630. Result:=ReadJSPropertyInt64('numberOfFrames');
  74631. end;
  74632. function TJSAudioData._GetnumberOfChannels: Cardinal;
  74633. begin
  74634. Result:=ReadJSPropertyInt64('numberOfChannels');
  74635. end;
  74636. function TJSAudioData._Getduration: QWord;
  74637. begin
  74638. Result:=ReadJSPropertyInt64('duration');
  74639. end;
  74640. function TJSAudioData._Gettimestamp: Int64;
  74641. begin
  74642. Result:=ReadJSPropertyInt64('timestamp');
  74643. end;
  74644. constructor TJSAudioData.Create(const aInit: TJSAudioDataInit);
  74645. begin
  74646. JOBCreate([aInit]);
  74647. end;
  74648. function TJSAudioData.allocationSize(const aOptions: TJSAudioDataCopyToOptions): Cardinal;
  74649. begin
  74650. Result:=InvokeJSLongIntResult('allocationSize',[aOptions]);
  74651. end;
  74652. procedure TJSAudioData.copyTo(aDestination: IJSArrayBuffer; const aOptions: TJSAudioDataCopyToOptions);
  74653. begin
  74654. InvokeJSNoResult('copyTo',[aDestination,aOptions]);
  74655. end;
  74656. procedure TJSAudioData.copyTo(aDestination: IJSArrayBufferView; const aOptions: TJSAudioDataCopyToOptions);
  74657. begin
  74658. InvokeJSNoResult('copyTo',[aDestination,aOptions]);
  74659. end;
  74660. function TJSAudioData.clone: IJSAudioData;
  74661. begin
  74662. Result:=InvokeJSObjectResult('clone',[],TJSAudioData) as IJSAudioData;
  74663. end;
  74664. procedure TJSAudioData.close;
  74665. begin
  74666. InvokeJSNoResult('close',[]);
  74667. end;
  74668. class function TJSAudioData.JSClassName: UnicodeString;
  74669. begin
  74670. Result:='AudioData';
  74671. end;
  74672. class function TJSAudioData.Cast(const Intf: IJSObject): IJSAudioData;
  74673. begin
  74674. Result:=TJSAudioData.JOBCast(Intf);
  74675. end;
  74676. function TJSAudioDataInit._Getformat: TAudioSampleFormat;
  74677. begin
  74678. Result:=ReadJSPropertyUnicodeString('format');
  74679. end;
  74680. function TJSAudioDataInit._GetsampleRate: Single;
  74681. begin
  74682. Result:=ReadJSPropertyDouble('sampleRate');
  74683. end;
  74684. function TJSAudioDataInit._GetnumberOfFrames: Cardinal;
  74685. begin
  74686. Result:=ReadJSPropertyInt64('numberOfFrames');
  74687. end;
  74688. function TJSAudioDataInit._GetnumberOfChannels: Cardinal;
  74689. begin
  74690. Result:=ReadJSPropertyInt64('numberOfChannels');
  74691. end;
  74692. function TJSAudioDataInit._Gettimestamp: Int64;
  74693. begin
  74694. Result:=ReadJSPropertyInt64('timestamp');
  74695. end;
  74696. function TJSAudioDataInit._Getdata: TAudioDataInit_data_Type;
  74697. begin
  74698. Result:=ReadJSPropertyVariant('data');
  74699. end;
  74700. function TJSAudioDataInit._Gettransfer: TIJSArrayBufferDynArray;
  74701. begin
  74702. Result:=ReadJSPropertyObject('transfer',TJSArray) as TIJSArrayBufferDynArray;
  74703. end;
  74704. procedure TJSAudioDataInit._Setformat(const aValue : TAudioSampleFormat);
  74705. begin
  74706. WriteJSPropertyUnicodeString('format',aValue);
  74707. end;
  74708. procedure TJSAudioDataInit._SetsampleRate(const aValue : Single);
  74709. begin
  74710. WriteJSPropertyDouble('sampleRate',aValue);
  74711. end;
  74712. procedure TJSAudioDataInit._SetnumberOfFrames(const aValue : Cardinal);
  74713. begin
  74714. WriteJSPropertyDouble('numberOfFrames',aValue);
  74715. end;
  74716. procedure TJSAudioDataInit._SetnumberOfChannels(const aValue : Cardinal);
  74717. begin
  74718. WriteJSPropertyDouble('numberOfChannels',aValue);
  74719. end;
  74720. procedure TJSAudioDataInit._Settimestamp(const aValue : Int64);
  74721. begin
  74722. WriteJSPropertyDouble('timestamp',aValue);
  74723. end;
  74724. procedure TJSAudioDataInit._Setdata(const aValue : TAudioDataInit_data_Type);
  74725. begin
  74726. WriteJSPropertyVariant('data',aValue);
  74727. end;
  74728. procedure TJSAudioDataInit._Settransfer(const aValue : TIJSArrayBufferDynArray);
  74729. begin
  74730. WriteJSPropertyObject('transfer',aValue);
  74731. end;
  74732. class function TJSAudioDataInit.JSClassName: UnicodeString;
  74733. begin
  74734. Result:='Object';
  74735. end;
  74736. class function TJSAudioDataInit.Cast(const Intf: IJSObject): IJSAudioDataInit;
  74737. begin
  74738. Result:=TJSAudioDataInit.JOBCast(Intf);
  74739. end;
  74740. function TJSAudioDataCopyToOptions._GetplaneIndex: Cardinal;
  74741. begin
  74742. Result:=ReadJSPropertyInt64('planeIndex');
  74743. end;
  74744. function TJSAudioDataCopyToOptions._GetframeOffset: Cardinal;
  74745. begin
  74746. Result:=ReadJSPropertyInt64('frameOffset');
  74747. end;
  74748. function TJSAudioDataCopyToOptions._GetframeCount: Cardinal;
  74749. begin
  74750. Result:=ReadJSPropertyInt64('frameCount');
  74751. end;
  74752. function TJSAudioDataCopyToOptions._Getformat: TAudioSampleFormat;
  74753. begin
  74754. Result:=ReadJSPropertyUnicodeString('format');
  74755. end;
  74756. procedure TJSAudioDataCopyToOptions._SetplaneIndex(const aValue : Cardinal);
  74757. begin
  74758. WriteJSPropertyDouble('planeIndex',aValue);
  74759. end;
  74760. procedure TJSAudioDataCopyToOptions._SetframeOffset(const aValue : Cardinal);
  74761. begin
  74762. WriteJSPropertyDouble('frameOffset',aValue);
  74763. end;
  74764. procedure TJSAudioDataCopyToOptions._SetframeCount(const aValue : Cardinal);
  74765. begin
  74766. WriteJSPropertyDouble('frameCount',aValue);
  74767. end;
  74768. procedure TJSAudioDataCopyToOptions._Setformat(const aValue : TAudioSampleFormat);
  74769. begin
  74770. WriteJSPropertyUnicodeString('format',aValue);
  74771. end;
  74772. class function TJSAudioDataCopyToOptions.JSClassName: UnicodeString;
  74773. begin
  74774. Result:='Object';
  74775. end;
  74776. class function TJSAudioDataCopyToOptions.Cast(const Intf: IJSObject): IJSAudioDataCopyToOptions;
  74777. begin
  74778. Result:=TJSAudioDataCopyToOptions.JOBCast(Intf);
  74779. end;
  74780. function TJSAudioDecoder._Getstate: TCodecState;
  74781. begin
  74782. Result:=ReadJSPropertyUnicodeString('state');
  74783. end;
  74784. function TJSAudioDecoder._GetdecodeQueueSize: Cardinal;
  74785. begin
  74786. Result:=ReadJSPropertyInt64('decodeQueueSize');
  74787. end;
  74788. function TJSAudioDecoder._Getondequeue: TEventHandler;
  74789. begin
  74790. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondequeue')));
  74791. end;
  74792. procedure TJSAudioDecoder._Setondequeue(const aValue : TEventHandler);
  74793. begin
  74794. WriteJSPropertyMethod('ondequeue',TMethod(aValue));
  74795. end;
  74796. constructor TJSAudioDecoder.Create(const aInit: TJSAudioDecoderInit);
  74797. begin
  74798. JOBCreate([aInit]);
  74799. end;
  74800. procedure TJSAudioDecoder.configure(const aConfig: TJSAudioDecoderConfig);
  74801. begin
  74802. InvokeJSNoResult('configure',[aConfig]);
  74803. end;
  74804. procedure TJSAudioDecoder.decode(aChunk: IJSEncodedAudioChunk);
  74805. begin
  74806. InvokeJSNoResult('decode',[aChunk]);
  74807. end;
  74808. function TJSAudioDecoder.flush: IJSPromise; // Promise<undefined>
  74809. begin
  74810. Result:=InvokeJSObjectResult('flush',[],TJSPromise) as IJSPromise;
  74811. end;
  74812. procedure TJSAudioDecoder.reset;
  74813. begin
  74814. InvokeJSNoResult('reset',[]);
  74815. end;
  74816. procedure TJSAudioDecoder.close;
  74817. begin
  74818. InvokeJSNoResult('close',[]);
  74819. end;
  74820. function TJSAudioDecoder.isConfigSupported(const aConfig: TJSAudioDecoderConfig): IJSPromise; // Promise<AudioDecoderSupport>
  74821. begin
  74822. Result:=InvokeJSObjectResult('isConfigSupported',[aConfig],TJSPromise) as IJSPromise;
  74823. end;
  74824. class function TJSAudioDecoder.JSClassName: UnicodeString;
  74825. begin
  74826. Result:='AudioDecoder';
  74827. end;
  74828. class function TJSAudioDecoder.Cast(const Intf: IJSObject): IJSAudioDecoder;
  74829. begin
  74830. Result:=TJSAudioDecoder.JOBCast(Intf);
  74831. end;
  74832. function TJSAudioDecoderInit._Getoutput: TAudioDataOutputCallback;
  74833. begin
  74834. Result:=(TAudioDataOutputCallback(ReadJSPropertyMethod('output')));
  74835. end;
  74836. function TJSAudioDecoderInit._Geterror: TWebCodecsErrorCallback;
  74837. begin
  74838. Result:=(TWebCodecsErrorCallback(ReadJSPropertyMethod('error')));
  74839. end;
  74840. procedure TJSAudioDecoderInit._Setoutput(const aValue : TAudioDataOutputCallback);
  74841. begin
  74842. WriteJSPropertyMethod('output',TMethod(aValue));
  74843. end;
  74844. procedure TJSAudioDecoderInit._Seterror(const aValue : TWebCodecsErrorCallback);
  74845. begin
  74846. WriteJSPropertyMethod('error',TMethod(aValue));
  74847. end;
  74848. class function TJSAudioDecoderInit.JSClassName: UnicodeString;
  74849. begin
  74850. Result:='Object';
  74851. end;
  74852. class function TJSAudioDecoderInit.Cast(const Intf: IJSObject): IJSAudioDecoderInit;
  74853. begin
  74854. Result:=TJSAudioDecoderInit.JOBCast(Intf);
  74855. end;
  74856. function TJSAudioDecoderSupport._Getsupported: Boolean;
  74857. begin
  74858. Result:=ReadJSPropertyBoolean('supported');
  74859. end;
  74860. function TJSAudioDecoderSupport._Getconfig: TJSAudioDecoderConfig;
  74861. begin
  74862. Result:=ReadJSPropertyObject('config',TJSAudioDecoderConfig) as TJSAudioDecoderConfig;
  74863. end;
  74864. procedure TJSAudioDecoderSupport._Setsupported(const aValue : Boolean);
  74865. begin
  74866. WriteJSPropertyBoolean('supported',aValue);
  74867. end;
  74868. procedure TJSAudioDecoderSupport._Setconfig(const aValue : TJSAudioDecoderConfig);
  74869. begin
  74870. WriteJSPropertyObject('config',aValue);
  74871. end;
  74872. class function TJSAudioDecoderSupport.JSClassName: UnicodeString;
  74873. begin
  74874. Result:='Object';
  74875. end;
  74876. class function TJSAudioDecoderSupport.Cast(const Intf: IJSObject): IJSAudioDecoderSupport;
  74877. begin
  74878. Result:=TJSAudioDecoderSupport.JOBCast(Intf);
  74879. end;
  74880. function TJSAudioDecoderConfig._Getcodec: UnicodeString;
  74881. begin
  74882. Result:=ReadJSPropertyUnicodeString('codec');
  74883. end;
  74884. function TJSAudioDecoderConfig._GetsampleRate: Cardinal;
  74885. begin
  74886. Result:=ReadJSPropertyInt64('sampleRate');
  74887. end;
  74888. function TJSAudioDecoderConfig._GetnumberOfChannels: Cardinal;
  74889. begin
  74890. Result:=ReadJSPropertyInt64('numberOfChannels');
  74891. end;
  74892. function TJSAudioDecoderConfig._Getdescription: TAudioDecoderConfig_description_Type;
  74893. begin
  74894. Result:=ReadJSPropertyVariant('description');
  74895. end;
  74896. procedure TJSAudioDecoderConfig._Setcodec(const aValue : UnicodeString);
  74897. begin
  74898. WriteJSPropertyUnicodeString('codec',aValue);
  74899. end;
  74900. procedure TJSAudioDecoderConfig._SetsampleRate(const aValue : Cardinal);
  74901. begin
  74902. WriteJSPropertyDouble('sampleRate',aValue);
  74903. end;
  74904. procedure TJSAudioDecoderConfig._SetnumberOfChannels(const aValue : Cardinal);
  74905. begin
  74906. WriteJSPropertyDouble('numberOfChannels',aValue);
  74907. end;
  74908. procedure TJSAudioDecoderConfig._Setdescription(const aValue : TAudioDecoderConfig_description_Type);
  74909. begin
  74910. WriteJSPropertyVariant('description',aValue);
  74911. end;
  74912. class function TJSAudioDecoderConfig.JSClassName: UnicodeString;
  74913. begin
  74914. Result:='Object';
  74915. end;
  74916. class function TJSAudioDecoderConfig.Cast(const Intf: IJSObject): IJSAudioDecoderConfig;
  74917. begin
  74918. Result:=TJSAudioDecoderConfig.JOBCast(Intf);
  74919. end;
  74920. function TJSAudioDestinationNode._GetmaxChannelCount: Cardinal;
  74921. begin
  74922. Result:=ReadJSPropertyInt64('maxChannelCount');
  74923. end;
  74924. class function TJSAudioDestinationNode.JSClassName: UnicodeString;
  74925. begin
  74926. Result:='AudioDestinationNode';
  74927. end;
  74928. class function TJSAudioDestinationNode.Cast(const Intf: IJSObject): IJSAudioDestinationNode;
  74929. begin
  74930. Result:=TJSAudioDestinationNode.JOBCast(Intf);
  74931. end;
  74932. function TJSAudioEncoderSupport._Getsupported: Boolean;
  74933. begin
  74934. Result:=ReadJSPropertyBoolean('supported');
  74935. end;
  74936. function TJSAudioEncoderSupport._Getconfig: TJSAudioEncoderConfig;
  74937. begin
  74938. Result:=ReadJSPropertyObject('config',TJSAudioEncoderConfig) as TJSAudioEncoderConfig;
  74939. end;
  74940. procedure TJSAudioEncoderSupport._Setsupported(const aValue : Boolean);
  74941. begin
  74942. WriteJSPropertyBoolean('supported',aValue);
  74943. end;
  74944. procedure TJSAudioEncoderSupport._Setconfig(const aValue : TJSAudioEncoderConfig);
  74945. begin
  74946. WriteJSPropertyObject('config',aValue);
  74947. end;
  74948. class function TJSAudioEncoderSupport.JSClassName: UnicodeString;
  74949. begin
  74950. Result:='Object';
  74951. end;
  74952. class function TJSAudioEncoderSupport.Cast(const Intf: IJSObject): IJSAudioEncoderSupport;
  74953. begin
  74954. Result:=TJSAudioEncoderSupport.JOBCast(Intf);
  74955. end;
  74956. function TJSAudioEncoderConfig._Getcodec: UnicodeString;
  74957. begin
  74958. Result:=ReadJSPropertyUnicodeString('codec');
  74959. end;
  74960. function TJSAudioEncoderConfig._GetsampleRate: Cardinal;
  74961. begin
  74962. Result:=ReadJSPropertyInt64('sampleRate');
  74963. end;
  74964. function TJSAudioEncoderConfig._GetnumberOfChannels: Cardinal;
  74965. begin
  74966. Result:=ReadJSPropertyInt64('numberOfChannels');
  74967. end;
  74968. function TJSAudioEncoderConfig._Getbitrate: QWord;
  74969. begin
  74970. Result:=ReadJSPropertyInt64('bitrate');
  74971. end;
  74972. function TJSAudioEncoderConfig._GetbitrateMode: TBitrateMode;
  74973. begin
  74974. Result:=ReadJSPropertyUnicodeString('bitrateMode');
  74975. end;
  74976. function TJSAudioEncoderConfig._Getopus: TJSOpusEncoderConfig;
  74977. begin
  74978. Result:=ReadJSPropertyObject('opus',TJSOpusEncoderConfig) as TJSOpusEncoderConfig;
  74979. end;
  74980. procedure TJSAudioEncoderConfig._Setcodec(const aValue : UnicodeString);
  74981. begin
  74982. WriteJSPropertyUnicodeString('codec',aValue);
  74983. end;
  74984. procedure TJSAudioEncoderConfig._SetsampleRate(const aValue : Cardinal);
  74985. begin
  74986. WriteJSPropertyDouble('sampleRate',aValue);
  74987. end;
  74988. procedure TJSAudioEncoderConfig._SetnumberOfChannels(const aValue : Cardinal);
  74989. begin
  74990. WriteJSPropertyDouble('numberOfChannels',aValue);
  74991. end;
  74992. procedure TJSAudioEncoderConfig._Setbitrate(const aValue : QWord);
  74993. begin
  74994. WriteJSPropertyDouble('bitrate',aValue);
  74995. end;
  74996. procedure TJSAudioEncoderConfig._SetbitrateMode(const aValue : TBitrateMode);
  74997. begin
  74998. WriteJSPropertyUnicodeString('bitrateMode',aValue);
  74999. end;
  75000. procedure TJSAudioEncoderConfig._Setopus(const aValue : TJSOpusEncoderConfig);
  75001. begin
  75002. WriteJSPropertyObject('opus',aValue);
  75003. end;
  75004. class function TJSAudioEncoderConfig.JSClassName: UnicodeString;
  75005. begin
  75006. Result:='Object';
  75007. end;
  75008. class function TJSAudioEncoderConfig.Cast(const Intf: IJSObject): IJSAudioEncoderConfig;
  75009. begin
  75010. Result:=TJSAudioEncoderConfig.JOBCast(Intf);
  75011. end;
  75012. function TJSOpusEncoderConfig._Getformat: TOpusBitstreamFormat;
  75013. begin
  75014. Result:=ReadJSPropertyUnicodeString('format');
  75015. end;
  75016. function TJSOpusEncoderConfig._GetframeDuration: QWord;
  75017. begin
  75018. Result:=ReadJSPropertyInt64('frameDuration');
  75019. end;
  75020. function TJSOpusEncoderConfig._Getcomplexity: Cardinal;
  75021. begin
  75022. Result:=ReadJSPropertyInt64('complexity');
  75023. end;
  75024. function TJSOpusEncoderConfig._Getpacketlossperc: Cardinal;
  75025. begin
  75026. Result:=ReadJSPropertyInt64('packetlossperc');
  75027. end;
  75028. function TJSOpusEncoderConfig._Getuseinbandfec: Boolean;
  75029. begin
  75030. Result:=ReadJSPropertyBoolean('useinbandfec');
  75031. end;
  75032. function TJSOpusEncoderConfig._Getusedtx: Boolean;
  75033. begin
  75034. Result:=ReadJSPropertyBoolean('usedtx');
  75035. end;
  75036. procedure TJSOpusEncoderConfig._Setformat(const aValue : TOpusBitstreamFormat);
  75037. begin
  75038. WriteJSPropertyUnicodeString('format',aValue);
  75039. end;
  75040. procedure TJSOpusEncoderConfig._SetframeDuration(const aValue : QWord);
  75041. begin
  75042. WriteJSPropertyDouble('frameDuration',aValue);
  75043. end;
  75044. procedure TJSOpusEncoderConfig._Setcomplexity(const aValue : Cardinal);
  75045. begin
  75046. WriteJSPropertyDouble('complexity',aValue);
  75047. end;
  75048. procedure TJSOpusEncoderConfig._Setpacketlossperc(const aValue : Cardinal);
  75049. begin
  75050. WriteJSPropertyDouble('packetlossperc',aValue);
  75051. end;
  75052. procedure TJSOpusEncoderConfig._Setuseinbandfec(const aValue : Boolean);
  75053. begin
  75054. WriteJSPropertyBoolean('useinbandfec',aValue);
  75055. end;
  75056. procedure TJSOpusEncoderConfig._Setusedtx(const aValue : Boolean);
  75057. begin
  75058. WriteJSPropertyBoolean('usedtx',aValue);
  75059. end;
  75060. class function TJSOpusEncoderConfig.JSClassName: UnicodeString;
  75061. begin
  75062. Result:='Object';
  75063. end;
  75064. class function TJSOpusEncoderConfig.Cast(const Intf: IJSObject): IJSOpusEncoderConfig;
  75065. begin
  75066. Result:=TJSOpusEncoderConfig.JOBCast(Intf);
  75067. end;
  75068. function TJSAudioEncoder._Getstate: TCodecState;
  75069. begin
  75070. Result:=ReadJSPropertyUnicodeString('state');
  75071. end;
  75072. function TJSAudioEncoder._GetencodeQueueSize: Cardinal;
  75073. begin
  75074. Result:=ReadJSPropertyInt64('encodeQueueSize');
  75075. end;
  75076. function TJSAudioEncoder._Getondequeue: TEventHandler;
  75077. begin
  75078. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondequeue')));
  75079. end;
  75080. procedure TJSAudioEncoder._Setondequeue(const aValue : TEventHandler);
  75081. begin
  75082. WriteJSPropertyMethod('ondequeue',TMethod(aValue));
  75083. end;
  75084. constructor TJSAudioEncoder.Create(const aInit: TJSAudioEncoderInit);
  75085. begin
  75086. JOBCreate([aInit]);
  75087. end;
  75088. procedure TJSAudioEncoder.configure(const aConfig: TJSAudioEncoderConfig);
  75089. begin
  75090. InvokeJSNoResult('configure',[aConfig]);
  75091. end;
  75092. procedure TJSAudioEncoder.encode(aData: IJSAudioData);
  75093. begin
  75094. InvokeJSNoResult('encode',[aData]);
  75095. end;
  75096. function TJSAudioEncoder.flush: IJSPromise; // Promise<undefined>
  75097. begin
  75098. Result:=InvokeJSObjectResult('flush',[],TJSPromise) as IJSPromise;
  75099. end;
  75100. procedure TJSAudioEncoder.reset;
  75101. begin
  75102. InvokeJSNoResult('reset',[]);
  75103. end;
  75104. procedure TJSAudioEncoder.close;
  75105. begin
  75106. InvokeJSNoResult('close',[]);
  75107. end;
  75108. function TJSAudioEncoder.isConfigSupported(const aConfig: TJSAudioEncoderConfig): IJSPromise; // Promise<AudioEncoderSupport>
  75109. begin
  75110. Result:=InvokeJSObjectResult('isConfigSupported',[aConfig],TJSPromise) as IJSPromise;
  75111. end;
  75112. class function TJSAudioEncoder.JSClassName: UnicodeString;
  75113. begin
  75114. Result:='AudioEncoder';
  75115. end;
  75116. class function TJSAudioEncoder.Cast(const Intf: IJSObject): IJSAudioEncoder;
  75117. begin
  75118. Result:=TJSAudioEncoder.JOBCast(Intf);
  75119. end;
  75120. function TJSAudioEncoderInit._Getoutput: TEncodedAudioChunkOutputCallback;
  75121. begin
  75122. Result:=(TEncodedAudioChunkOutputCallback(ReadJSPropertyMethod('output')));
  75123. end;
  75124. function TJSAudioEncoderInit._Geterror: TWebCodecsErrorCallback;
  75125. begin
  75126. Result:=(TWebCodecsErrorCallback(ReadJSPropertyMethod('error')));
  75127. end;
  75128. procedure TJSAudioEncoderInit._Setoutput(const aValue : TEncodedAudioChunkOutputCallback);
  75129. begin
  75130. WriteJSPropertyMethod('output',TMethod(aValue));
  75131. end;
  75132. procedure TJSAudioEncoderInit._Seterror(const aValue : TWebCodecsErrorCallback);
  75133. begin
  75134. WriteJSPropertyMethod('error',TMethod(aValue));
  75135. end;
  75136. class function TJSAudioEncoderInit.JSClassName: UnicodeString;
  75137. begin
  75138. Result:='Object';
  75139. end;
  75140. class function TJSAudioEncoderInit.Cast(const Intf: IJSObject): IJSAudioEncoderInit;
  75141. begin
  75142. Result:=TJSAudioEncoderInit.JOBCast(Intf);
  75143. end;
  75144. function TJSEncodedAudioChunkMetadata._GetdecoderConfig: TJSAudioDecoderConfig;
  75145. begin
  75146. Result:=ReadJSPropertyObject('decoderConfig',TJSAudioDecoderConfig) as TJSAudioDecoderConfig;
  75147. end;
  75148. procedure TJSEncodedAudioChunkMetadata._SetdecoderConfig(const aValue : TJSAudioDecoderConfig);
  75149. begin
  75150. WriteJSPropertyObject('decoderConfig',aValue);
  75151. end;
  75152. class function TJSEncodedAudioChunkMetadata.JSClassName: UnicodeString;
  75153. begin
  75154. Result:='Object';
  75155. end;
  75156. class function TJSEncodedAudioChunkMetadata.Cast(const Intf: IJSObject): IJSEncodedAudioChunkMetadata;
  75157. begin
  75158. Result:=TJSEncodedAudioChunkMetadata.JOBCast(Intf);
  75159. end;
  75160. procedure TJSAudioListener.setPosition(aX: Double; aY: Double; aZ: Double);
  75161. begin
  75162. InvokeJSNoResult('setPosition',[aX,aY,aZ]);
  75163. end;
  75164. procedure TJSAudioListener.setOrientation(aX: Double; aY: Double; aZ: Double; aXUp: Double; aYUp: Double; aZUp: Double);
  75165. begin
  75166. InvokeJSNoResult('setOrientation',[aX,aY,aZ,aXUp,aYUp,aZUp]);
  75167. end;
  75168. class function TJSAudioListener.JSClassName: UnicodeString;
  75169. begin
  75170. Result:='AudioListener';
  75171. end;
  75172. class function TJSAudioListener.Cast(const Intf: IJSObject): IJSAudioListener;
  75173. begin
  75174. Result:=TJSAudioListener.JOBCast(Intf);
  75175. end;
  75176. function TJSAudioNodeOptions._GetchannelCount: Cardinal;
  75177. begin
  75178. Result:=ReadJSPropertyInt64('channelCount');
  75179. end;
  75180. function TJSAudioNodeOptions._GetchannelCountMode: TChannelCountMode;
  75181. begin
  75182. Result:=ReadJSPropertyUnicodeString('channelCountMode');
  75183. end;
  75184. function TJSAudioNodeOptions._GetchannelInterpretation: TChannelInterpretation;
  75185. begin
  75186. Result:=ReadJSPropertyUnicodeString('channelInterpretation');
  75187. end;
  75188. procedure TJSAudioNodeOptions._SetchannelCount(const aValue : Cardinal);
  75189. begin
  75190. WriteJSPropertyDouble('channelCount',aValue);
  75191. end;
  75192. procedure TJSAudioNodeOptions._SetchannelCountMode(const aValue : TChannelCountMode);
  75193. begin
  75194. WriteJSPropertyUnicodeString('channelCountMode',aValue);
  75195. end;
  75196. procedure TJSAudioNodeOptions._SetchannelInterpretation(const aValue : TChannelInterpretation);
  75197. begin
  75198. WriteJSPropertyUnicodeString('channelInterpretation',aValue);
  75199. end;
  75200. class function TJSAudioNodeOptions.JSClassName: UnicodeString;
  75201. begin
  75202. Result:='Object';
  75203. end;
  75204. class function TJSAudioNodeOptions.Cast(const Intf: IJSObject): IJSAudioNodeOptions;
  75205. begin
  75206. Result:=TJSAudioNodeOptions.JOBCast(Intf);
  75207. end;
  75208. function TJSAudioNode._Getcontext: IJSBaseAudioContext;
  75209. begin
  75210. Result:=ReadJSPropertyObject('context',TJSBaseAudioContext) as IJSBaseAudioContext;
  75211. end;
  75212. function TJSAudioNode._GetnumberOfInputs: Cardinal;
  75213. begin
  75214. Result:=ReadJSPropertyInt64('numberOfInputs');
  75215. end;
  75216. function TJSAudioNode._GetnumberOfOutputs: Cardinal;
  75217. begin
  75218. Result:=ReadJSPropertyInt64('numberOfOutputs');
  75219. end;
  75220. function TJSAudioNode._GetchannelCount: Cardinal;
  75221. begin
  75222. Result:=ReadJSPropertyInt64('channelCount');
  75223. end;
  75224. function TJSAudioNode._GetchannelCountMode: TChannelCountMode;
  75225. begin
  75226. Result:=ReadJSPropertyUnicodeString('channelCountMode');
  75227. end;
  75228. function TJSAudioNode._GetchannelInterpretation: TChannelInterpretation;
  75229. begin
  75230. Result:=ReadJSPropertyUnicodeString('channelInterpretation');
  75231. end;
  75232. procedure TJSAudioNode._SetchannelCount(const aValue : Cardinal);
  75233. begin
  75234. WriteJSPropertyDouble('channelCount',aValue);
  75235. end;
  75236. procedure TJSAudioNode._SetchannelCountMode(const aValue : TChannelCountMode);
  75237. begin
  75238. WriteJSPropertyUnicodeString('channelCountMode',aValue);
  75239. end;
  75240. procedure TJSAudioNode._SetchannelInterpretation(const aValue : TChannelInterpretation);
  75241. begin
  75242. WriteJSPropertyUnicodeString('channelInterpretation',aValue);
  75243. end;
  75244. function TJSAudioNode.connect(aDestination: IJSAudioNode; aOutput: Cardinal; aInput: Cardinal): IJSAudioNode;
  75245. begin
  75246. Result:=InvokeJSObjectResult('connect',[aDestination,aOutput,aInput],TJSAudioNode) as IJSAudioNode;
  75247. end;
  75248. function TJSAudioNode.connect(aDestination: IJSAudioNode): IJSAudioNode;
  75249. begin
  75250. Result:=InvokeJSObjectResult('connect',[aDestination],TJSAudioNode) as IJSAudioNode;
  75251. end;
  75252. function TJSAudioNode.connect(aDestination: IJSAudioNode; aOutput: Cardinal): IJSAudioNode;
  75253. begin
  75254. Result:=InvokeJSObjectResult('connect',[aDestination,aOutput],TJSAudioNode) as IJSAudioNode;
  75255. end;
  75256. procedure TJSAudioNode.connect(aDestination: IJSAudioParam; aOutput: Cardinal);
  75257. begin
  75258. InvokeJSNoResult('connect',[aDestination,aOutput]);
  75259. end;
  75260. procedure TJSAudioNode.connect(aDestination: IJSAudioParam);
  75261. begin
  75262. InvokeJSNoResult('connect',[aDestination]);
  75263. end;
  75264. procedure TJSAudioNode.disconnect;
  75265. begin
  75266. InvokeJSNoResult('disconnect',[]);
  75267. end;
  75268. procedure TJSAudioNode.disconnect(aOutput: Cardinal);
  75269. begin
  75270. InvokeJSNoResult('disconnect',[aOutput]);
  75271. end;
  75272. procedure TJSAudioNode.disconnect(aDestination: IJSAudioNode);
  75273. begin
  75274. InvokeJSNoResult('disconnect',[aDestination]);
  75275. end;
  75276. procedure TJSAudioNode.disconnect(aDestination: IJSAudioNode; aOutput: Cardinal);
  75277. begin
  75278. InvokeJSNoResult('disconnect',[aDestination,aOutput]);
  75279. end;
  75280. procedure TJSAudioNode.disconnect(aDestination: IJSAudioNode; aOutput: Cardinal; aInput: Cardinal);
  75281. begin
  75282. InvokeJSNoResult('disconnect',[aDestination,aOutput,aInput]);
  75283. end;
  75284. procedure TJSAudioNode.disconnect(aDestination: IJSAudioParam);
  75285. begin
  75286. InvokeJSNoResult('disconnect',[aDestination]);
  75287. end;
  75288. procedure TJSAudioNode.disconnect(aDestination: IJSAudioParam; aOutput: Cardinal);
  75289. begin
  75290. InvokeJSNoResult('disconnect',[aDestination,aOutput]);
  75291. end;
  75292. class function TJSAudioNode.JSClassName: UnicodeString;
  75293. begin
  75294. Result:='AudioNode';
  75295. end;
  75296. class function TJSAudioNode.Cast(const Intf: IJSObject): IJSAudioNode;
  75297. begin
  75298. Result:=TJSAudioNode.JOBCast(Intf);
  75299. end;
  75300. class function TJSAudioNodePassThrough.JSClassName: UnicodeString;
  75301. begin
  75302. Result:='AudioNodePassThrough';
  75303. end;
  75304. class function TJSAudioNodePassThrough.Cast(const Intf: IJSObject): IJSAudioNodePassThrough;
  75305. begin
  75306. Result:=TJSAudioNodePassThrough.JOBCast(Intf);
  75307. end;
  75308. function TJSAudioParam._Getvalue: Single;
  75309. begin
  75310. Result:=ReadJSPropertyDouble('value');
  75311. end;
  75312. function TJSAudioParam._GetdefaultValue: Single;
  75313. begin
  75314. Result:=ReadJSPropertyDouble('defaultValue');
  75315. end;
  75316. function TJSAudioParam._GetminValue: Single;
  75317. begin
  75318. Result:=ReadJSPropertyDouble('minValue');
  75319. end;
  75320. function TJSAudioParam._GetmaxValue: Single;
  75321. begin
  75322. Result:=ReadJSPropertyDouble('maxValue');
  75323. end;
  75324. procedure TJSAudioParam._Setvalue(const aValue : Single);
  75325. begin
  75326. WriteJSPropertyDouble('value',aValue);
  75327. end;
  75328. function TJSAudioParam.setValueAtTime(aValue: Single; aStartTime: Double): IJSAudioParam;
  75329. begin
  75330. Result:=InvokeJSObjectResult('setValueAtTime',[aValue,aStartTime],TJSAudioParam) as IJSAudioParam;
  75331. end;
  75332. function TJSAudioParam.linearRampToValueAtTime(aValue: Single; aEndTime: Double): IJSAudioParam;
  75333. begin
  75334. Result:=InvokeJSObjectResult('linearRampToValueAtTime',[aValue,aEndTime],TJSAudioParam) as IJSAudioParam;
  75335. end;
  75336. function TJSAudioParam.exponentialRampToValueAtTime(aValue: Single; aEndTime: Double): IJSAudioParam;
  75337. begin
  75338. Result:=InvokeJSObjectResult('exponentialRampToValueAtTime',[aValue,aEndTime],TJSAudioParam) as IJSAudioParam;
  75339. end;
  75340. function TJSAudioParam.setTargetAtTime(aTarget: Single; aStartTime: Double; aTimeConstant: Double): IJSAudioParam;
  75341. begin
  75342. Result:=InvokeJSObjectResult('setTargetAtTime',[aTarget,aStartTime,aTimeConstant],TJSAudioParam) as IJSAudioParam;
  75343. end;
  75344. function TJSAudioParam.setValueCurveAtTime(const aValues: TSingleDynArray; aStartTime: Double; aDuration: Double): IJSAudioParam;
  75345. begin
  75346. Result:=InvokeJSObjectResult('setValueCurveAtTime',[aValues,aStartTime,aDuration],TJSAudioParam) as IJSAudioParam;
  75347. end;
  75348. function TJSAudioParam.cancelScheduledValues(aStartTime: Double): IJSAudioParam;
  75349. begin
  75350. Result:=InvokeJSObjectResult('cancelScheduledValues',[aStartTime],TJSAudioParam) as IJSAudioParam;
  75351. end;
  75352. class function TJSAudioParam.JSClassName: UnicodeString;
  75353. begin
  75354. Result:='AudioParam';
  75355. end;
  75356. class function TJSAudioParam.Cast(const Intf: IJSObject): IJSAudioParam;
  75357. begin
  75358. Result:=TJSAudioParam.JOBCast(Intf);
  75359. end;
  75360. function TJSAudioParamDescriptor._Getname: UnicodeString;
  75361. begin
  75362. Result:=ReadJSPropertyUnicodeString('name');
  75363. end;
  75364. function TJSAudioParamDescriptor._GetdefaultValue: Single;
  75365. begin
  75366. Result:=ReadJSPropertyDouble('defaultValue');
  75367. end;
  75368. function TJSAudioParamDescriptor._GetminValue: Single;
  75369. begin
  75370. Result:=ReadJSPropertyDouble('minValue');
  75371. end;
  75372. function TJSAudioParamDescriptor._GetmaxValue: Single;
  75373. begin
  75374. Result:=ReadJSPropertyDouble('maxValue');
  75375. end;
  75376. procedure TJSAudioParamDescriptor._Setname(const aValue : UnicodeString);
  75377. begin
  75378. WriteJSPropertyUnicodeString('name',aValue);
  75379. end;
  75380. procedure TJSAudioParamDescriptor._SetdefaultValue(const aValue : Single);
  75381. begin
  75382. WriteJSPropertyDouble('defaultValue',aValue);
  75383. end;
  75384. procedure TJSAudioParamDescriptor._SetminValue(const aValue : Single);
  75385. begin
  75386. WriteJSPropertyDouble('minValue',aValue);
  75387. end;
  75388. procedure TJSAudioParamDescriptor._SetmaxValue(const aValue : Single);
  75389. begin
  75390. WriteJSPropertyDouble('maxValue',aValue);
  75391. end;
  75392. class function TJSAudioParamDescriptor.JSClassName: UnicodeString;
  75393. begin
  75394. Result:='Object';
  75395. end;
  75396. class function TJSAudioParamDescriptor.Cast(const Intf: IJSObject): IJSAudioParamDescriptor;
  75397. begin
  75398. Result:=TJSAudioParamDescriptor.JOBCast(Intf);
  75399. end;
  75400. function TJSAudioParamMap._Getsize: LongInt;
  75401. begin
  75402. Result:=ReadJSPropertyLongInt('size');
  75403. end;
  75404. function TJSAudioParamMap.get(key: UnicodeString) : TJSAudioParam;
  75405. begin
  75406. Result:=InvokeJSObjectResult('get',[key],TJSAudioParam) as TJSAudioParam;
  75407. end;
  75408. function TJSAudioParamMap.has(key: UnicodeString) : Boolean;
  75409. begin
  75410. Result:=InvokeJSBooleanResult('has',[key]);
  75411. end;
  75412. function TJSAudioParamMap.entries : IJSIterator;
  75413. begin
  75414. Result:=InvokeJSObjectResult('entries',[],TJSIterator) as IJSIterator;
  75415. end;
  75416. function TJSAudioParamMap.keys : IJSIterator;
  75417. begin
  75418. Result:=InvokeJSObjectResult('keys',[],TJSIterator) as IJSIterator;
  75419. end;
  75420. function TJSAudioParamMap.values : IJSIterator;
  75421. begin
  75422. Result:=InvokeJSObjectResult('values',[],TJSIterator) as IJSIterator;
  75423. end;
  75424. class function TJSAudioParamMap.JSClassName: UnicodeString;
  75425. begin
  75426. Result:='AudioParamMap';
  75427. end;
  75428. class function TJSAudioParamMap.Cast(const Intf: IJSObject): IJSAudioParamMap;
  75429. begin
  75430. Result:=TJSAudioParamMap.JOBCast(Intf);
  75431. end;
  75432. function TJSAudioProcessingEvent._GetplaybackTime: Double;
  75433. begin
  75434. Result:=ReadJSPropertyDouble('playbackTime');
  75435. end;
  75436. function TJSAudioProcessingEvent._GetinputBuffer: IJSAudioBuffer;
  75437. begin
  75438. Result:=ReadJSPropertyObject('inputBuffer',TJSAudioBuffer) as IJSAudioBuffer;
  75439. end;
  75440. function TJSAudioProcessingEvent._GetoutputBuffer: IJSAudioBuffer;
  75441. begin
  75442. Result:=ReadJSPropertyObject('outputBuffer',TJSAudioBuffer) as IJSAudioBuffer;
  75443. end;
  75444. class function TJSAudioProcessingEvent.JSClassName: UnicodeString;
  75445. begin
  75446. Result:='AudioProcessingEvent';
  75447. end;
  75448. class function TJSAudioProcessingEvent.Cast(const Intf: IJSObject): IJSAudioProcessingEvent;
  75449. begin
  75450. Result:=TJSAudioProcessingEvent.JOBCast(Intf);
  75451. end;
  75452. function TJSAudioScheduledSourceNode._Getonended: TEventHandler;
  75453. begin
  75454. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onended')));
  75455. end;
  75456. procedure TJSAudioScheduledSourceNode._Setonended(const aValue : TEventHandler);
  75457. begin
  75458. WriteJSPropertyMethod('onended',TMethod(aValue));
  75459. end;
  75460. procedure TJSAudioScheduledSourceNode.start(aWhen: Double);
  75461. begin
  75462. InvokeJSNoResult('start',[aWhen]);
  75463. end;
  75464. procedure TJSAudioScheduledSourceNode.start;
  75465. begin
  75466. InvokeJSNoResult('start',[]);
  75467. end;
  75468. procedure TJSAudioScheduledSourceNode.stop(aWhen: Double);
  75469. begin
  75470. InvokeJSNoResult('stop',[aWhen]);
  75471. end;
  75472. procedure TJSAudioScheduledSourceNode.stop;
  75473. begin
  75474. InvokeJSNoResult('stop',[]);
  75475. end;
  75476. class function TJSAudioScheduledSourceNode.JSClassName: UnicodeString;
  75477. begin
  75478. Result:='AudioScheduledSourceNode';
  75479. end;
  75480. class function TJSAudioScheduledSourceNode.Cast(const Intf: IJSObject): IJSAudioScheduledSourceNode;
  75481. begin
  75482. Result:=TJSAudioScheduledSourceNode.JOBCast(Intf);
  75483. end;
  75484. function TJSAudioTrack._Getid: UnicodeString;
  75485. begin
  75486. Result:=ReadJSPropertyUnicodeString('id');
  75487. end;
  75488. function TJSAudioTrack._Getkind: UnicodeString;
  75489. begin
  75490. Result:=ReadJSPropertyUnicodeString('kind');
  75491. end;
  75492. function TJSAudioTrack._Getlabel_: UnicodeString;
  75493. begin
  75494. Result:=ReadJSPropertyUnicodeString('label');
  75495. end;
  75496. function TJSAudioTrack._Getlanguage: UnicodeString;
  75497. begin
  75498. Result:=ReadJSPropertyUnicodeString('language');
  75499. end;
  75500. function TJSAudioTrack._Getenabled: Boolean;
  75501. begin
  75502. Result:=ReadJSPropertyBoolean('enabled');
  75503. end;
  75504. procedure TJSAudioTrack._Setenabled(const aValue : Boolean);
  75505. begin
  75506. WriteJSPropertyBoolean('enabled',aValue);
  75507. end;
  75508. class function TJSAudioTrack.JSClassName: UnicodeString;
  75509. begin
  75510. Result:='AudioTrack';
  75511. end;
  75512. class function TJSAudioTrack.Cast(const Intf: IJSObject): IJSAudioTrack;
  75513. begin
  75514. Result:=TJSAudioTrack.JOBCast(Intf);
  75515. end;
  75516. function TJSAudioTrackList._Getlength_: Cardinal;
  75517. begin
  75518. Result:=ReadJSPropertyInt64('length');
  75519. end;
  75520. function TJSAudioTrackList._Getonchange: TEventHandler;
  75521. begin
  75522. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  75523. end;
  75524. function TJSAudioTrackList._Getonaddtrack: TEventHandler;
  75525. begin
  75526. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onaddtrack')));
  75527. end;
  75528. function TJSAudioTrackList._Getonremovetrack: TEventHandler;
  75529. begin
  75530. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onremovetrack')));
  75531. end;
  75532. procedure TJSAudioTrackList._Setonchange(const aValue : TEventHandler);
  75533. begin
  75534. WriteJSPropertyMethod('onchange',TMethod(aValue));
  75535. end;
  75536. procedure TJSAudioTrackList._Setonaddtrack(const aValue : TEventHandler);
  75537. begin
  75538. WriteJSPropertyMethod('onaddtrack',TMethod(aValue));
  75539. end;
  75540. procedure TJSAudioTrackList._Setonremovetrack(const aValue : TEventHandler);
  75541. begin
  75542. WriteJSPropertyMethod('onremovetrack',TMethod(aValue));
  75543. end;
  75544. function TJSAudioTrackList.GetDefault(aIndex: Cardinal): IJSAudioTrack;
  75545. begin
  75546. Result:=InvokeJSObjectResult('',[aIndex],TJSAudioTrack) as IJSAudioTrack;
  75547. end;
  75548. function TJSAudioTrackList.getTrackById(const aId: UnicodeString): IJSAudioTrack;
  75549. begin
  75550. Result:=InvokeJSObjectResult('getTrackById',[aId],TJSAudioTrack) as IJSAudioTrack;
  75551. end;
  75552. class function TJSAudioTrackList.JSClassName: UnicodeString;
  75553. begin
  75554. Result:='AudioTrackList';
  75555. end;
  75556. class function TJSAudioTrackList.Cast(const Intf: IJSObject): IJSAudioTrackList;
  75557. begin
  75558. Result:=TJSAudioTrackList.JOBCast(Intf);
  75559. end;
  75560. class function TJSAudioWorklet.JSClassName: UnicodeString;
  75561. begin
  75562. Result:='AudioWorklet';
  75563. end;
  75564. class function TJSAudioWorklet.Cast(const Intf: IJSObject): IJSAudioWorklet;
  75565. begin
  75566. Result:=TJSAudioWorklet.JOBCast(Intf);
  75567. end;
  75568. function TJSAudioWorkletGlobalScope._GetcurrentFrame: QWord;
  75569. begin
  75570. Result:=ReadJSPropertyInt64('currentFrame');
  75571. end;
  75572. function TJSAudioWorkletGlobalScope._GetcurrentTime: Double;
  75573. begin
  75574. Result:=ReadJSPropertyDouble('currentTime');
  75575. end;
  75576. function TJSAudioWorkletGlobalScope._GetsampleRate: Single;
  75577. begin
  75578. Result:=ReadJSPropertyDouble('sampleRate');
  75579. end;
  75580. procedure TJSAudioWorkletGlobalScope.registerProcessor(const aName: UnicodeString; const aProcessorCtor: TAudioWorkletProcessorConstructor);
  75581. var
  75582. m: TJOB_Method;
  75583. begin
  75584. m:=TJOB_Method.Create(TMethod(aProcessorCtor),@JOBCallAudioWorkletProcessorConstructor);
  75585. try
  75586. InvokeJSNoResult('registerProcessor',[aName,m]);
  75587. finally
  75588. m.free;
  75589. end;
  75590. end;
  75591. class function TJSAudioWorkletGlobalScope.JSClassName: UnicodeString;
  75592. begin
  75593. Result:='AudioWorkletGlobalScope';
  75594. end;
  75595. class function TJSAudioWorkletGlobalScope.Cast(const Intf: IJSObject): IJSAudioWorkletGlobalScope;
  75596. begin
  75597. Result:=TJSAudioWorkletGlobalScope.JOBCast(Intf);
  75598. end;
  75599. function TJSAudioWorkletNodeOptions._GetnumberOfInputs: Cardinal;
  75600. begin
  75601. Result:=ReadJSPropertyInt64('numberOfInputs');
  75602. end;
  75603. function TJSAudioWorkletNodeOptions._GetnumberOfOutputs: Cardinal;
  75604. begin
  75605. Result:=ReadJSPropertyInt64('numberOfOutputs');
  75606. end;
  75607. function TJSAudioWorkletNodeOptions._GetoutputChannelCount: TCardinalDynArray;
  75608. begin
  75609. Result:=ReadJSPropertyObject('outputChannelCount',TJSArray) as TCardinalDynArray;
  75610. end;
  75611. function TJSAudioWorkletNodeOptions._GetparameterData: IJSObject;
  75612. begin
  75613. Result:=ReadJSPropertyObject('parameterData',TJSObject) as IJSObject;
  75614. end;
  75615. function TJSAudioWorkletNodeOptions._GetprocessorOptions: IJSObject;
  75616. begin
  75617. Result:=ReadJSPropertyObject('processorOptions',TJSObject) as IJSObject;
  75618. end;
  75619. procedure TJSAudioWorkletNodeOptions._SetnumberOfInputs(const aValue : Cardinal);
  75620. begin
  75621. WriteJSPropertyDouble('numberOfInputs',aValue);
  75622. end;
  75623. procedure TJSAudioWorkletNodeOptions._SetnumberOfOutputs(const aValue : Cardinal);
  75624. begin
  75625. WriteJSPropertyDouble('numberOfOutputs',aValue);
  75626. end;
  75627. procedure TJSAudioWorkletNodeOptions._SetoutputChannelCount(const aValue : TCardinalDynArray);
  75628. begin
  75629. WriteJSPropertyObject('outputChannelCount',aValue);
  75630. end;
  75631. procedure TJSAudioWorkletNodeOptions._SetparameterData(const aValue : IJSObject);
  75632. begin
  75633. WriteJSPropertyObject('parameterData',aValue);
  75634. end;
  75635. procedure TJSAudioWorkletNodeOptions._SetprocessorOptions(const aValue : IJSObject);
  75636. begin
  75637. WriteJSPropertyObject('processorOptions',aValue);
  75638. end;
  75639. class function TJSAudioWorkletNodeOptions.JSClassName: UnicodeString;
  75640. begin
  75641. Result:='Object';
  75642. end;
  75643. class function TJSAudioWorkletNodeOptions.Cast(const Intf: IJSObject): IJSAudioWorkletNodeOptions;
  75644. begin
  75645. Result:=TJSAudioWorkletNodeOptions.JOBCast(Intf);
  75646. end;
  75647. function TJSAudioWorkletNode._Getparameters: IJSAudioParamMap;
  75648. begin
  75649. Result:=ReadJSPropertyObject('parameters',TJSAudioParamMap) as IJSAudioParamMap;
  75650. end;
  75651. function TJSAudioWorkletNode._Getport: IJSMessagePort;
  75652. begin
  75653. Result:=ReadJSPropertyObject('port',TJSMessagePort) as IJSMessagePort;
  75654. end;
  75655. function TJSAudioWorkletNode._Getonprocessorerror: TEventHandler;
  75656. begin
  75657. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onprocessorerror')));
  75658. end;
  75659. procedure TJSAudioWorkletNode._Setonprocessorerror(const aValue : TEventHandler);
  75660. begin
  75661. WriteJSPropertyMethod('onprocessorerror',TMethod(aValue));
  75662. end;
  75663. constructor TJSAudioWorkletNode.Create(aContext: IJSBaseAudioContext; const aName: UnicodeString; const aOptions: TJSAudioWorkletNodeOptions);
  75664. begin
  75665. JOBCreate([aContext,aName,aOptions]);
  75666. end;
  75667. constructor TJSAudioWorkletNode.Create(aContext: IJSBaseAudioContext; const aName: UnicodeString);
  75668. begin
  75669. JOBCreate([aContext,aName]);
  75670. end;
  75671. class function TJSAudioWorkletNode.JSClassName: UnicodeString;
  75672. begin
  75673. Result:='AudioWorkletNode';
  75674. end;
  75675. class function TJSAudioWorkletNode.Cast(const Intf: IJSObject): IJSAudioWorkletNode;
  75676. begin
  75677. Result:=TJSAudioWorkletNode.JOBCast(Intf);
  75678. end;
  75679. function TJSAudioWorkletProcessor._Getport: IJSMessagePort;
  75680. begin
  75681. Result:=ReadJSPropertyObject('port',TJSMessagePort) as IJSMessagePort;
  75682. end;
  75683. constructor TJSAudioWorkletProcessor.Create;
  75684. begin
  75685. JOBCreate([]);
  75686. end;
  75687. class function TJSAudioWorkletProcessor.JSClassName: UnicodeString;
  75688. begin
  75689. Result:='AudioWorkletProcessor';
  75690. end;
  75691. class function TJSAudioWorkletProcessor.Cast(const Intf: IJSObject): IJSAudioWorkletProcessor;
  75692. begin
  75693. Result:=TJSAudioWorkletProcessor.JOBCast(Intf);
  75694. end;
  75695. function TJSAutocompleteInfo._Getsection: UnicodeString;
  75696. begin
  75697. Result:=ReadJSPropertyUnicodeString('section');
  75698. end;
  75699. function TJSAutocompleteInfo._GetaddressType: UnicodeString;
  75700. begin
  75701. Result:=ReadJSPropertyUnicodeString('addressType');
  75702. end;
  75703. function TJSAutocompleteInfo._GetcontactType: UnicodeString;
  75704. begin
  75705. Result:=ReadJSPropertyUnicodeString('contactType');
  75706. end;
  75707. function TJSAutocompleteInfo._GetfieldName: UnicodeString;
  75708. begin
  75709. Result:=ReadJSPropertyUnicodeString('fieldName');
  75710. end;
  75711. function TJSAutocompleteInfo._GetcredentialType: UnicodeString;
  75712. begin
  75713. Result:=ReadJSPropertyUnicodeString('credentialType');
  75714. end;
  75715. function TJSAutocompleteInfo._GetcanAutomaticallyPersist: Boolean;
  75716. begin
  75717. Result:=ReadJSPropertyBoolean('canAutomaticallyPersist');
  75718. end;
  75719. procedure TJSAutocompleteInfo._Setsection(const aValue : UnicodeString);
  75720. begin
  75721. WriteJSPropertyUnicodeString('section',aValue);
  75722. end;
  75723. procedure TJSAutocompleteInfo._SetaddressType(const aValue : UnicodeString);
  75724. begin
  75725. WriteJSPropertyUnicodeString('addressType',aValue);
  75726. end;
  75727. procedure TJSAutocompleteInfo._SetcontactType(const aValue : UnicodeString);
  75728. begin
  75729. WriteJSPropertyUnicodeString('contactType',aValue);
  75730. end;
  75731. procedure TJSAutocompleteInfo._SetfieldName(const aValue : UnicodeString);
  75732. begin
  75733. WriteJSPropertyUnicodeString('fieldName',aValue);
  75734. end;
  75735. procedure TJSAutocompleteInfo._SetcredentialType(const aValue : UnicodeString);
  75736. begin
  75737. WriteJSPropertyUnicodeString('credentialType',aValue);
  75738. end;
  75739. procedure TJSAutocompleteInfo._SetcanAutomaticallyPersist(const aValue : Boolean);
  75740. begin
  75741. WriteJSPropertyBoolean('canAutomaticallyPersist',aValue);
  75742. end;
  75743. class function TJSAutocompleteInfo.JSClassName: UnicodeString;
  75744. begin
  75745. Result:='Object';
  75746. end;
  75747. class function TJSAutocompleteInfo.Cast(const Intf: IJSObject): IJSAutocompleteInfo;
  75748. begin
  75749. Result:=TJSAutocompleteInfo.JOBCast(Intf);
  75750. end;
  75751. function TJSBarProp._Getvisible: Boolean;
  75752. begin
  75753. Result:=ReadJSPropertyBoolean('visible');
  75754. end;
  75755. procedure TJSBarProp._Setvisible(const aValue : Boolean);
  75756. begin
  75757. WriteJSPropertyBoolean('visible',aValue);
  75758. end;
  75759. class function TJSBarProp.JSClassName: UnicodeString;
  75760. begin
  75761. Result:='BarProp';
  75762. end;
  75763. class function TJSBarProp.Cast(const Intf: IJSObject): IJSBarProp;
  75764. begin
  75765. Result:=TJSBarProp.JOBCast(Intf);
  75766. end;
  75767. function TJSBaseAudioContext._Getdestination: IJSAudioDestinationNode;
  75768. begin
  75769. Result:=ReadJSPropertyObject('destination',TJSAudioDestinationNode) as IJSAudioDestinationNode;
  75770. end;
  75771. function TJSBaseAudioContext._GetsampleRate: Single;
  75772. begin
  75773. Result:=ReadJSPropertyDouble('sampleRate');
  75774. end;
  75775. function TJSBaseAudioContext._GetcurrentTime: Double;
  75776. begin
  75777. Result:=ReadJSPropertyDouble('currentTime');
  75778. end;
  75779. function TJSBaseAudioContext._Getlistener: IJSAudioListener;
  75780. begin
  75781. Result:=ReadJSPropertyObject('listener',TJSAudioListener) as IJSAudioListener;
  75782. end;
  75783. function TJSBaseAudioContext._Getstate: TAudioContextState;
  75784. begin
  75785. Result:=ReadJSPropertyUnicodeString('state');
  75786. end;
  75787. function TJSBaseAudioContext._GetaudioWorklet: IJSAudioWorklet;
  75788. begin
  75789. Result:=ReadJSPropertyObject('audioWorklet',TJSAudioWorklet) as IJSAudioWorklet;
  75790. end;
  75791. function TJSBaseAudioContext._Getonstatechange: TEventHandler;
  75792. begin
  75793. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstatechange')));
  75794. end;
  75795. procedure TJSBaseAudioContext._Setonstatechange(const aValue : TEventHandler);
  75796. begin
  75797. WriteJSPropertyMethod('onstatechange',TMethod(aValue));
  75798. end;
  75799. function TJSBaseAudioContext.resume: IJSPromise; // Promise<undefined>
  75800. begin
  75801. Result:=InvokeJSObjectResult('resume',[],TJSPromise) as IJSPromise;
  75802. end;
  75803. function TJSBaseAudioContext.createBuffer(aNumberOfChannels: Cardinal; aLength_: Cardinal; aSampleRate: Single): IJSAudioBuffer;
  75804. begin
  75805. Result:=InvokeJSObjectResult('createBuffer',[aNumberOfChannels,aLength_,aSampleRate],TJSAudioBuffer) as IJSAudioBuffer;
  75806. end;
  75807. function TJSBaseAudioContext.decodeAudioData(aAudioData: IJSArrayBuffer; const aSuccessCallback: TDecodeSuccessCallback; const aErrorCallback: TDecodeErrorCallback): IJSPromise; // Promise<AudioBuffer>
  75808. var
  75809. m: TJOB_Method;
  75810. m2: TJOB_Method;
  75811. begin
  75812. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallDecodeSuccessCallback);
  75813. m2:=TJOB_Method.Create(TMethod(aErrorCallback),@JOBCallDecodeErrorCallback);
  75814. try
  75815. Result:=InvokeJSObjectResult('decodeAudioData',[aAudioData,m,m2],TJSPromise) as IJSPromise;
  75816. finally
  75817. m.free;
  75818. m2.free;
  75819. end;
  75820. end;
  75821. function TJSBaseAudioContext.decodeAudioData(aAudioData: IJSArrayBuffer): IJSPromise; // Promise<AudioBuffer>
  75822. begin
  75823. Result:=InvokeJSObjectResult('decodeAudioData',[aAudioData],TJSPromise) as IJSPromise;
  75824. end;
  75825. function TJSBaseAudioContext.decodeAudioData(aAudioData: IJSArrayBuffer; const aSuccessCallback: TDecodeSuccessCallback): IJSPromise; // Promise<AudioBuffer>
  75826. var
  75827. m: TJOB_Method;
  75828. begin
  75829. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallDecodeSuccessCallback);
  75830. try
  75831. Result:=InvokeJSObjectResult('decodeAudioData',[aAudioData,m],TJSPromise) as IJSPromise;
  75832. finally
  75833. m.free;
  75834. end;
  75835. end;
  75836. function TJSBaseAudioContext.createBufferSource: IJSAudioBufferSourceNode;
  75837. begin
  75838. Result:=InvokeJSObjectResult('createBufferSource',[],TJSAudioBufferSourceNode) as IJSAudioBufferSourceNode;
  75839. end;
  75840. function TJSBaseAudioContext.createConstantSource: IJSConstantSourceNode;
  75841. begin
  75842. Result:=InvokeJSObjectResult('createConstantSource',[],TJSConstantSourceNode) as IJSConstantSourceNode;
  75843. end;
  75844. function TJSBaseAudioContext.createScriptProcessor(aBufferSize: Cardinal; aNumberOfInputChannels: Cardinal; aNumberOfOutputChannels: Cardinal): IJSScriptProcessorNode;
  75845. begin
  75846. Result:=InvokeJSObjectResult('createScriptProcessor',[aBufferSize,aNumberOfInputChannels,aNumberOfOutputChannels],TJSScriptProcessorNode) as IJSScriptProcessorNode;
  75847. end;
  75848. function TJSBaseAudioContext.createScriptProcessor: IJSScriptProcessorNode;
  75849. begin
  75850. Result:=InvokeJSObjectResult('createScriptProcessor',[],TJSScriptProcessorNode) as IJSScriptProcessorNode;
  75851. end;
  75852. function TJSBaseAudioContext.createScriptProcessor(aBufferSize: Cardinal): IJSScriptProcessorNode;
  75853. begin
  75854. Result:=InvokeJSObjectResult('createScriptProcessor',[aBufferSize],TJSScriptProcessorNode) as IJSScriptProcessorNode;
  75855. end;
  75856. function TJSBaseAudioContext.createScriptProcessor(aBufferSize: Cardinal; aNumberOfInputChannels: Cardinal): IJSScriptProcessorNode;
  75857. begin
  75858. Result:=InvokeJSObjectResult('createScriptProcessor',[aBufferSize,aNumberOfInputChannels],TJSScriptProcessorNode) as IJSScriptProcessorNode;
  75859. end;
  75860. function TJSBaseAudioContext.createAnalyser: IJSAnalyserNode;
  75861. begin
  75862. Result:=InvokeJSObjectResult('createAnalyser',[],TJSAnalyserNode) as IJSAnalyserNode;
  75863. end;
  75864. function TJSBaseAudioContext.createGain: IJSGainNode;
  75865. begin
  75866. Result:=InvokeJSObjectResult('createGain',[],TJSGainNode) as IJSGainNode;
  75867. end;
  75868. function TJSBaseAudioContext.createDelay(aMaxDelayTime: Double): IJSDelayNode;
  75869. begin
  75870. Result:=InvokeJSObjectResult('createDelay',[aMaxDelayTime],TJSDelayNode) as IJSDelayNode;
  75871. end;
  75872. function TJSBaseAudioContext.createDelay: IJSDelayNode;
  75873. begin
  75874. Result:=InvokeJSObjectResult('createDelay',[],TJSDelayNode) as IJSDelayNode;
  75875. end;
  75876. function TJSBaseAudioContext.createBiquadFilter: IJSBiquadFilterNode;
  75877. begin
  75878. Result:=InvokeJSObjectResult('createBiquadFilter',[],TJSBiquadFilterNode) as IJSBiquadFilterNode;
  75879. end;
  75880. function TJSBaseAudioContext.createIIRFilter(const aFeedforward: TDoubleDynArray; const aFeedback: TDoubleDynArray): IJSIIRFilterNode;
  75881. begin
  75882. Result:=InvokeJSObjectResult('createIIRFilter',[aFeedforward,aFeedback],TJSIIRFilterNode) as IJSIIRFilterNode;
  75883. end;
  75884. function TJSBaseAudioContext.createWaveShaper: IJSWaveShaperNode;
  75885. begin
  75886. Result:=InvokeJSObjectResult('createWaveShaper',[],TJSWaveShaperNode) as IJSWaveShaperNode;
  75887. end;
  75888. function TJSBaseAudioContext.createPanner: IJSPannerNode;
  75889. begin
  75890. Result:=InvokeJSObjectResult('createPanner',[],TJSPannerNode) as IJSPannerNode;
  75891. end;
  75892. function TJSBaseAudioContext.createStereoPanner: IJSStereoPannerNode;
  75893. begin
  75894. Result:=InvokeJSObjectResult('createStereoPanner',[],TJSStereoPannerNode) as IJSStereoPannerNode;
  75895. end;
  75896. function TJSBaseAudioContext.createConvolver: IJSConvolverNode;
  75897. begin
  75898. Result:=InvokeJSObjectResult('createConvolver',[],TJSConvolverNode) as IJSConvolverNode;
  75899. end;
  75900. function TJSBaseAudioContext.createChannelSplitter(aNumberOfOutputs: Cardinal): IJSChannelSplitterNode;
  75901. begin
  75902. Result:=InvokeJSObjectResult('createChannelSplitter',[aNumberOfOutputs],TJSChannelSplitterNode) as IJSChannelSplitterNode;
  75903. end;
  75904. function TJSBaseAudioContext.createChannelSplitter: IJSChannelSplitterNode;
  75905. begin
  75906. Result:=InvokeJSObjectResult('createChannelSplitter',[],TJSChannelSplitterNode) as IJSChannelSplitterNode;
  75907. end;
  75908. function TJSBaseAudioContext.createChannelMerger(aNumberOfInputs: Cardinal): IJSChannelMergerNode;
  75909. begin
  75910. Result:=InvokeJSObjectResult('createChannelMerger',[aNumberOfInputs],TJSChannelMergerNode) as IJSChannelMergerNode;
  75911. end;
  75912. function TJSBaseAudioContext.createChannelMerger: IJSChannelMergerNode;
  75913. begin
  75914. Result:=InvokeJSObjectResult('createChannelMerger',[],TJSChannelMergerNode) as IJSChannelMergerNode;
  75915. end;
  75916. function TJSBaseAudioContext.createDynamicsCompressor: IJSDynamicsCompressorNode;
  75917. begin
  75918. Result:=InvokeJSObjectResult('createDynamicsCompressor',[],TJSDynamicsCompressorNode) as IJSDynamicsCompressorNode;
  75919. end;
  75920. function TJSBaseAudioContext.createOscillator: IJSOscillatorNode;
  75921. begin
  75922. Result:=InvokeJSObjectResult('createOscillator',[],TJSOscillatorNode) as IJSOscillatorNode;
  75923. end;
  75924. function TJSBaseAudioContext.createPeriodicWave(const aReal: TSingleDynArray; const aImag: TSingleDynArray; const aConstraints: TJSPeriodicWaveConstraints): IJSPeriodicWave;
  75925. begin
  75926. Result:=InvokeJSObjectResult('createPeriodicWave',[aReal,aImag,aConstraints],TJSPeriodicWave) as IJSPeriodicWave;
  75927. end;
  75928. function TJSBaseAudioContext.createPeriodicWave(const aReal: TSingleDynArray; const aImag: TSingleDynArray): IJSPeriodicWave;
  75929. begin
  75930. Result:=InvokeJSObjectResult('createPeriodicWave',[aReal,aImag],TJSPeriodicWave) as IJSPeriodicWave;
  75931. end;
  75932. class function TJSBaseAudioContext.JSClassName: UnicodeString;
  75933. begin
  75934. Result:='BaseAudioContext';
  75935. end;
  75936. class function TJSBaseAudioContext.Cast(const Intf: IJSObject): IJSBaseAudioContext;
  75937. begin
  75938. Result:=TJSBaseAudioContext.JOBCast(Intf);
  75939. end;
  75940. function TJSBasePropertyIndexedKeyframe._Getoffset: TBasePropertyIndexedKeyframe_offset_Type;
  75941. begin
  75942. Result:=ReadJSPropertyVariant('offset');
  75943. end;
  75944. function TJSBasePropertyIndexedKeyframe._Geteasing: TBasePropertyIndexedKeyframe_easing_Type;
  75945. begin
  75946. Result:=ReadJSPropertyVariant('easing');
  75947. end;
  75948. function TJSBasePropertyIndexedKeyframe._Getcomposite: TBasePropertyIndexedKeyframe_composite_Type;
  75949. begin
  75950. Result:=ReadJSPropertyVariant('composite');
  75951. end;
  75952. procedure TJSBasePropertyIndexedKeyframe._Setoffset(const aValue : TBasePropertyIndexedKeyframe_offset_Type);
  75953. begin
  75954. WriteJSPropertyVariant('offset',aValue);
  75955. end;
  75956. procedure TJSBasePropertyIndexedKeyframe._Seteasing(const aValue : TBasePropertyIndexedKeyframe_easing_Type);
  75957. begin
  75958. WriteJSPropertyVariant('easing',aValue);
  75959. end;
  75960. procedure TJSBasePropertyIndexedKeyframe._Setcomposite(const aValue : TBasePropertyIndexedKeyframe_composite_Type);
  75961. begin
  75962. WriteJSPropertyVariant('composite',aValue);
  75963. end;
  75964. class function TJSBasePropertyIndexedKeyframe.JSClassName: UnicodeString;
  75965. begin
  75966. Result:='Object';
  75967. end;
  75968. class function TJSBasePropertyIndexedKeyframe.Cast(const Intf: IJSObject): IJSBasePropertyIndexedKeyframe;
  75969. begin
  75970. Result:=TJSBasePropertyIndexedKeyframe.JOBCast(Intf);
  75971. end;
  75972. function TJSBaseKeyframe._Getoffset: Double;
  75973. begin
  75974. Result:=ReadJSPropertyDouble('offset');
  75975. end;
  75976. function TJSBaseKeyframe._Geteasing: UTF8String;
  75977. begin
  75978. Result:=ReadJSPropertyUTF8String('easing');
  75979. end;
  75980. function TJSBaseKeyframe._Getcomposite: TCompositeOperationOrAuto;
  75981. begin
  75982. Result:=ReadJSPropertyUnicodeString('composite');
  75983. end;
  75984. procedure TJSBaseKeyframe._Setoffset(const aValue : Double);
  75985. begin
  75986. WriteJSPropertyDouble('offset',aValue);
  75987. end;
  75988. procedure TJSBaseKeyframe._Seteasing(const aValue : UTF8String);
  75989. begin
  75990. WriteJSPropertyUTF8String('easing',aValue);
  75991. end;
  75992. procedure TJSBaseKeyframe._Setcomposite(const aValue : TCompositeOperationOrAuto);
  75993. begin
  75994. WriteJSPropertyUnicodeString('composite',aValue);
  75995. end;
  75996. class function TJSBaseKeyframe.JSClassName: UnicodeString;
  75997. begin
  75998. Result:='Object';
  75999. end;
  76000. class function TJSBaseKeyframe.Cast(const Intf: IJSObject): IJSBaseKeyframe;
  76001. begin
  76002. Result:=TJSBaseKeyframe.JOBCast(Intf);
  76003. end;
  76004. function TJSBaseComputedKeyframe._GetcomputedOffset: Double;
  76005. begin
  76006. Result:=ReadJSPropertyDouble('computedOffset');
  76007. end;
  76008. procedure TJSBaseComputedKeyframe._SetcomputedOffset(const aValue : Double);
  76009. begin
  76010. WriteJSPropertyDouble('computedOffset',aValue);
  76011. end;
  76012. class function TJSBaseComputedKeyframe.JSClassName: UnicodeString;
  76013. begin
  76014. Result:='Object';
  76015. end;
  76016. class function TJSBaseComputedKeyframe.Cast(const Intf: IJSObject): IJSBaseComputedKeyframe;
  76017. begin
  76018. Result:=TJSBaseComputedKeyframe.JOBCast(Intf);
  76019. end;
  76020. function TJSBasicCardRequest._GetsupportedNetworks: TUnicodeStringDynArray;
  76021. begin
  76022. Result:=ReadJSPropertyObject('supportedNetworks',TJSArray) as TUnicodeStringDynArray;
  76023. end;
  76024. function TJSBasicCardRequest._GetrequestSecurityCode: Boolean;
  76025. begin
  76026. Result:=ReadJSPropertyBoolean('requestSecurityCode');
  76027. end;
  76028. procedure TJSBasicCardRequest._SetsupportedNetworks(const aValue : TUnicodeStringDynArray);
  76029. begin
  76030. WriteJSPropertyObject('supportedNetworks',aValue);
  76031. end;
  76032. procedure TJSBasicCardRequest._SetrequestSecurityCode(const aValue : Boolean);
  76033. begin
  76034. WriteJSPropertyBoolean('requestSecurityCode',aValue);
  76035. end;
  76036. class function TJSBasicCardRequest.JSClassName: UnicodeString;
  76037. begin
  76038. Result:='Object';
  76039. end;
  76040. class function TJSBasicCardRequest.Cast(const Intf: IJSObject): IJSBasicCardRequest;
  76041. begin
  76042. Result:=TJSBasicCardRequest.JOBCast(Intf);
  76043. end;
  76044. function TJSBasicCardResponse._GetcardholderName: UnicodeString;
  76045. begin
  76046. Result:=ReadJSPropertyUnicodeString('cardholderName');
  76047. end;
  76048. function TJSBasicCardResponse._GetcardNumber: UnicodeString;
  76049. begin
  76050. Result:=ReadJSPropertyUnicodeString('cardNumber');
  76051. end;
  76052. function TJSBasicCardResponse._GetexpiryMonth: UnicodeString;
  76053. begin
  76054. Result:=ReadJSPropertyUnicodeString('expiryMonth');
  76055. end;
  76056. function TJSBasicCardResponse._GetexpiryYear: UnicodeString;
  76057. begin
  76058. Result:=ReadJSPropertyUnicodeString('expiryYear');
  76059. end;
  76060. function TJSBasicCardResponse._GetcardSecurityCode: UnicodeString;
  76061. begin
  76062. Result:=ReadJSPropertyUnicodeString('cardSecurityCode');
  76063. end;
  76064. function TJSBasicCardResponse._GetbillingAddress: IJSPaymentAddress;
  76065. begin
  76066. Result:=ReadJSPropertyObject('billingAddress',TJSPaymentAddress) as IJSPaymentAddress;
  76067. end;
  76068. procedure TJSBasicCardResponse._SetcardholderName(const aValue : UnicodeString);
  76069. begin
  76070. WriteJSPropertyUnicodeString('cardholderName',aValue);
  76071. end;
  76072. procedure TJSBasicCardResponse._SetcardNumber(const aValue : UnicodeString);
  76073. begin
  76074. WriteJSPropertyUnicodeString('cardNumber',aValue);
  76075. end;
  76076. procedure TJSBasicCardResponse._SetexpiryMonth(const aValue : UnicodeString);
  76077. begin
  76078. WriteJSPropertyUnicodeString('expiryMonth',aValue);
  76079. end;
  76080. procedure TJSBasicCardResponse._SetexpiryYear(const aValue : UnicodeString);
  76081. begin
  76082. WriteJSPropertyUnicodeString('expiryYear',aValue);
  76083. end;
  76084. procedure TJSBasicCardResponse._SetcardSecurityCode(const aValue : UnicodeString);
  76085. begin
  76086. WriteJSPropertyUnicodeString('cardSecurityCode',aValue);
  76087. end;
  76088. procedure TJSBasicCardResponse._SetbillingAddress(const aValue : IJSPaymentAddress);
  76089. begin
  76090. WriteJSPropertyObject('billingAddress',aValue);
  76091. end;
  76092. class function TJSBasicCardResponse.JSClassName: UnicodeString;
  76093. begin
  76094. Result:='Object';
  76095. end;
  76096. class function TJSBasicCardResponse.Cast(const Intf: IJSObject): IJSBasicCardResponse;
  76097. begin
  76098. Result:=TJSBasicCardResponse.JOBCast(Intf);
  76099. end;
  76100. function TJSBasicCardChangeDetails._GetbillingAddress: IJSPaymentAddress;
  76101. begin
  76102. Result:=ReadJSPropertyObject('billingAddress',TJSPaymentAddress) as IJSPaymentAddress;
  76103. end;
  76104. procedure TJSBasicCardChangeDetails._SetbillingAddress(const aValue : IJSPaymentAddress);
  76105. begin
  76106. WriteJSPropertyObject('billingAddress',aValue);
  76107. end;
  76108. class function TJSBasicCardChangeDetails.JSClassName: UnicodeString;
  76109. begin
  76110. Result:='Object';
  76111. end;
  76112. class function TJSBasicCardChangeDetails.Cast(const Intf: IJSObject): IJSBasicCardChangeDetails;
  76113. begin
  76114. Result:=TJSBasicCardChangeDetails.JOBCast(Intf);
  76115. end;
  76116. function TJSBasicCardErrors._GetcardNumber: UnicodeString;
  76117. begin
  76118. Result:=ReadJSPropertyUnicodeString('cardNumber');
  76119. end;
  76120. function TJSBasicCardErrors._GetcardholderName: UnicodeString;
  76121. begin
  76122. Result:=ReadJSPropertyUnicodeString('cardholderName');
  76123. end;
  76124. function TJSBasicCardErrors._GetcardSecurityCode: UnicodeString;
  76125. begin
  76126. Result:=ReadJSPropertyUnicodeString('cardSecurityCode');
  76127. end;
  76128. function TJSBasicCardErrors._GetexpiryMonth: UnicodeString;
  76129. begin
  76130. Result:=ReadJSPropertyUnicodeString('expiryMonth');
  76131. end;
  76132. function TJSBasicCardErrors._GetexpiryYear: UnicodeString;
  76133. begin
  76134. Result:=ReadJSPropertyUnicodeString('expiryYear');
  76135. end;
  76136. function TJSBasicCardErrors._GetbillingAddress: TJSAddressErrors;
  76137. begin
  76138. Result:=ReadJSPropertyObject('billingAddress',TJSAddressErrors) as TJSAddressErrors;
  76139. end;
  76140. procedure TJSBasicCardErrors._SetcardNumber(const aValue : UnicodeString);
  76141. begin
  76142. WriteJSPropertyUnicodeString('cardNumber',aValue);
  76143. end;
  76144. procedure TJSBasicCardErrors._SetcardholderName(const aValue : UnicodeString);
  76145. begin
  76146. WriteJSPropertyUnicodeString('cardholderName',aValue);
  76147. end;
  76148. procedure TJSBasicCardErrors._SetcardSecurityCode(const aValue : UnicodeString);
  76149. begin
  76150. WriteJSPropertyUnicodeString('cardSecurityCode',aValue);
  76151. end;
  76152. procedure TJSBasicCardErrors._SetexpiryMonth(const aValue : UnicodeString);
  76153. begin
  76154. WriteJSPropertyUnicodeString('expiryMonth',aValue);
  76155. end;
  76156. procedure TJSBasicCardErrors._SetexpiryYear(const aValue : UnicodeString);
  76157. begin
  76158. WriteJSPropertyUnicodeString('expiryYear',aValue);
  76159. end;
  76160. procedure TJSBasicCardErrors._SetbillingAddress(const aValue : TJSAddressErrors);
  76161. begin
  76162. WriteJSPropertyObject('billingAddress',aValue);
  76163. end;
  76164. class function TJSBasicCardErrors.JSClassName: UnicodeString;
  76165. begin
  76166. Result:='Object';
  76167. end;
  76168. class function TJSBasicCardErrors.Cast(const Intf: IJSObject): IJSBasicCardErrors;
  76169. begin
  76170. Result:=TJSBasicCardErrors.JOBCast(Intf);
  76171. end;
  76172. function TJSBeforeUnloadEvent._GetreturnValue2: UnicodeString;
  76173. begin
  76174. Result:=ReadJSPropertyUnicodeString('returnValue');
  76175. end;
  76176. procedure TJSBeforeUnloadEvent._SetreturnValue2(const aValue : UnicodeString);
  76177. begin
  76178. WriteJSPropertyUnicodeString('returnValue',aValue);
  76179. end;
  76180. class function TJSBeforeUnloadEvent.JSClassName: UnicodeString;
  76181. begin
  76182. Result:='BeforeUnloadEvent';
  76183. end;
  76184. class function TJSBeforeUnloadEvent.Cast(const Intf: IJSObject): IJSBeforeUnloadEvent;
  76185. begin
  76186. Result:=TJSBeforeUnloadEvent.JOBCast(Intf);
  76187. end;
  76188. function TJSBiquadFilterOptions._Gettype_: TBiquadFilterType;
  76189. begin
  76190. Result:=ReadJSPropertyUnicodeString('type');
  76191. end;
  76192. function TJSBiquadFilterOptions._GetQ: Single;
  76193. begin
  76194. Result:=ReadJSPropertyDouble('Q');
  76195. end;
  76196. function TJSBiquadFilterOptions._Getdetune: Single;
  76197. begin
  76198. Result:=ReadJSPropertyDouble('detune');
  76199. end;
  76200. function TJSBiquadFilterOptions._Getfrequency: Single;
  76201. begin
  76202. Result:=ReadJSPropertyDouble('frequency');
  76203. end;
  76204. function TJSBiquadFilterOptions._Getgain: Single;
  76205. begin
  76206. Result:=ReadJSPropertyDouble('gain');
  76207. end;
  76208. procedure TJSBiquadFilterOptions._Settype_(const aValue : TBiquadFilterType);
  76209. begin
  76210. WriteJSPropertyUnicodeString('type',aValue);
  76211. end;
  76212. procedure TJSBiquadFilterOptions._SetQ(const aValue : Single);
  76213. begin
  76214. WriteJSPropertyDouble('Q',aValue);
  76215. end;
  76216. procedure TJSBiquadFilterOptions._Setdetune(const aValue : Single);
  76217. begin
  76218. WriteJSPropertyDouble('detune',aValue);
  76219. end;
  76220. procedure TJSBiquadFilterOptions._Setfrequency(const aValue : Single);
  76221. begin
  76222. WriteJSPropertyDouble('frequency',aValue);
  76223. end;
  76224. procedure TJSBiquadFilterOptions._Setgain(const aValue : Single);
  76225. begin
  76226. WriteJSPropertyDouble('gain',aValue);
  76227. end;
  76228. class function TJSBiquadFilterOptions.JSClassName: UnicodeString;
  76229. begin
  76230. Result:='Object';
  76231. end;
  76232. class function TJSBiquadFilterOptions.Cast(const Intf: IJSObject): IJSBiquadFilterOptions;
  76233. begin
  76234. Result:=TJSBiquadFilterOptions.JOBCast(Intf);
  76235. end;
  76236. function TJSBiquadFilterNode._Gettype_: TBiquadFilterType;
  76237. begin
  76238. Result:=ReadJSPropertyUnicodeString('type');
  76239. end;
  76240. function TJSBiquadFilterNode._Getfrequency: IJSAudioParam;
  76241. begin
  76242. Result:=ReadJSPropertyObject('frequency',TJSAudioParam) as IJSAudioParam;
  76243. end;
  76244. function TJSBiquadFilterNode._Getdetune: IJSAudioParam;
  76245. begin
  76246. Result:=ReadJSPropertyObject('detune',TJSAudioParam) as IJSAudioParam;
  76247. end;
  76248. function TJSBiquadFilterNode._GetQ: IJSAudioParam;
  76249. begin
  76250. Result:=ReadJSPropertyObject('Q',TJSAudioParam) as IJSAudioParam;
  76251. end;
  76252. function TJSBiquadFilterNode._Getgain: IJSAudioParam;
  76253. begin
  76254. Result:=ReadJSPropertyObject('gain',TJSAudioParam) as IJSAudioParam;
  76255. end;
  76256. procedure TJSBiquadFilterNode._Settype_(const aValue : TBiquadFilterType);
  76257. begin
  76258. WriteJSPropertyUnicodeString('type',aValue);
  76259. end;
  76260. constructor TJSBiquadFilterNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSBiquadFilterOptions);
  76261. begin
  76262. JOBCreate([aContext,aOptions]);
  76263. end;
  76264. constructor TJSBiquadFilterNode.Create(aContext: IJSBaseAudioContext);
  76265. begin
  76266. JOBCreate([aContext]);
  76267. end;
  76268. procedure TJSBiquadFilterNode.getFrequencyResponse(aFrequencyHz: IJSFloat32Array; aMagResponse: IJSFloat32Array; aPhaseResponse: IJSFloat32Array);
  76269. begin
  76270. InvokeJSNoResult('getFrequencyResponse',[aFrequencyHz,aMagResponse,aPhaseResponse]);
  76271. end;
  76272. class function TJSBiquadFilterNode.JSClassName: UnicodeString;
  76273. begin
  76274. Result:='BiquadFilterNode';
  76275. end;
  76276. class function TJSBiquadFilterNode.Cast(const Intf: IJSObject): IJSBiquadFilterNode;
  76277. begin
  76278. Result:=TJSBiquadFilterNode.JOBCast(Intf);
  76279. end;
  76280. function TJSBlob._Getsize: QWord;
  76281. begin
  76282. Result:=ReadJSPropertyInt64('size');
  76283. end;
  76284. function TJSBlob._Gettype_: UnicodeString;
  76285. begin
  76286. Result:=ReadJSPropertyUnicodeString('type');
  76287. end;
  76288. constructor TJSBlob.Create(const aBlobParts: TBlobPartDynArray; const aOptions: TJSBlobPropertyBag);
  76289. begin
  76290. JOBCreate([aBlobParts,aOptions]);
  76291. end;
  76292. constructor TJSBlob.Create;
  76293. begin
  76294. JOBCreate([]);
  76295. end;
  76296. constructor TJSBlob.Create(const aBlobParts: TBlobPartDynArray);
  76297. begin
  76298. JOBCreate([aBlobParts]);
  76299. end;
  76300. function TJSBlob.slice(aStart: Int64; aEnd_: Int64; const aContentType: UnicodeString): IJSBlob;
  76301. begin
  76302. Result:=InvokeJSObjectResult('slice',[aStart,aEnd_,aContentType],TJSBlob) as IJSBlob;
  76303. end;
  76304. function TJSBlob.slice: IJSBlob;
  76305. begin
  76306. Result:=InvokeJSObjectResult('slice',[],TJSBlob) as IJSBlob;
  76307. end;
  76308. function TJSBlob.slice(aStart: Int64): IJSBlob;
  76309. begin
  76310. Result:=InvokeJSObjectResult('slice',[aStart],TJSBlob) as IJSBlob;
  76311. end;
  76312. function TJSBlob.slice(aStart: Int64; aEnd_: Int64): IJSBlob;
  76313. begin
  76314. Result:=InvokeJSObjectResult('slice',[aStart,aEnd_],TJSBlob) as IJSBlob;
  76315. end;
  76316. function TJSBlob.stream: IJSReadableStream;
  76317. begin
  76318. Result:=InvokeJSObjectResult('stream',[],TJSReadableStream) as IJSReadableStream;
  76319. end;
  76320. function TJSBlob.text: IJSPromise; // Promise<USVString>
  76321. begin
  76322. Result:=InvokeJSObjectResult('text',[],TJSPromise) as IJSPromise;
  76323. end;
  76324. function TJSBlob.arrayBuffer: IJSPromise; // Promise<ArrayBuffer>
  76325. begin
  76326. Result:=InvokeJSObjectResult('arrayBuffer',[],TJSPromise) as IJSPromise;
  76327. end;
  76328. class function TJSBlob.JSClassName: UnicodeString;
  76329. begin
  76330. Result:='Blob';
  76331. end;
  76332. class function TJSBlob.Cast(const Intf: IJSObject): IJSBlob;
  76333. begin
  76334. Result:=TJSBlob.JOBCast(Intf);
  76335. end;
  76336. function TJSBlobPropertyBag._Gettype_: UnicodeString;
  76337. begin
  76338. Result:=ReadJSPropertyUnicodeString('type');
  76339. end;
  76340. function TJSBlobPropertyBag._Getendings: TEndingType;
  76341. begin
  76342. Result:=ReadJSPropertyUnicodeString('endings');
  76343. end;
  76344. procedure TJSBlobPropertyBag._Settype_(const aValue : UnicodeString);
  76345. begin
  76346. WriteJSPropertyUnicodeString('type',aValue);
  76347. end;
  76348. procedure TJSBlobPropertyBag._Setendings(const aValue : TEndingType);
  76349. begin
  76350. WriteJSPropertyUnicodeString('endings',aValue);
  76351. end;
  76352. class function TJSBlobPropertyBag.JSClassName: UnicodeString;
  76353. begin
  76354. Result:='Object';
  76355. end;
  76356. class function TJSBlobPropertyBag.Cast(const Intf: IJSObject): IJSBlobPropertyBag;
  76357. begin
  76358. Result:=TJSBlobPropertyBag.JOBCast(Intf);
  76359. end;
  76360. function TJSBlobEvent._Getdata: IJSBlob;
  76361. begin
  76362. Result:=ReadJSPropertyObject('data',TJSBlob) as IJSBlob;
  76363. end;
  76364. constructor TJSBlobEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSBlobEventInit);
  76365. begin
  76366. JOBCreate([aType_,aEventInitDict]);
  76367. end;
  76368. class function TJSBlobEvent.JSClassName: UnicodeString;
  76369. begin
  76370. Result:='BlobEvent';
  76371. end;
  76372. class function TJSBlobEvent.Cast(const Intf: IJSObject): IJSBlobEvent;
  76373. begin
  76374. Result:=TJSBlobEvent.JOBCast(Intf);
  76375. end;
  76376. function TJSBlobEventInit._Getdata: IJSBlob;
  76377. begin
  76378. Result:=ReadJSPropertyObject('data',TJSBlob) as IJSBlob;
  76379. end;
  76380. procedure TJSBlobEventInit._Setdata(const aValue : IJSBlob);
  76381. begin
  76382. WriteJSPropertyObject('data',aValue);
  76383. end;
  76384. class function TJSBlobEventInit.JSClassName: UnicodeString;
  76385. begin
  76386. Result:='Object';
  76387. end;
  76388. class function TJSBlobEventInit.Cast(const Intf: IJSObject): IJSBlobEventInit;
  76389. begin
  76390. Result:=TJSBlobEventInit.JOBCast(Intf);
  76391. end;
  76392. function TJSBroadcastChannel._Getname: UnicodeString;
  76393. begin
  76394. Result:=ReadJSPropertyUnicodeString('name');
  76395. end;
  76396. function TJSBroadcastChannel._Getonmessage: TEventHandler;
  76397. begin
  76398. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  76399. end;
  76400. function TJSBroadcastChannel._Getonmessageerror: TEventHandler;
  76401. begin
  76402. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessageerror')));
  76403. end;
  76404. procedure TJSBroadcastChannel._Setonmessage(const aValue : TEventHandler);
  76405. begin
  76406. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  76407. end;
  76408. procedure TJSBroadcastChannel._Setonmessageerror(const aValue : TEventHandler);
  76409. begin
  76410. WriteJSPropertyMethod('onmessageerror',TMethod(aValue));
  76411. end;
  76412. constructor TJSBroadcastChannel.Create(const aChannel: UnicodeString);
  76413. begin
  76414. JOBCreate([aChannel]);
  76415. end;
  76416. procedure TJSBroadcastChannel.postMessage(const aMessage: Variant);
  76417. begin
  76418. InvokeJSNoResult('postMessage',[aMessage]);
  76419. end;
  76420. procedure TJSBroadcastChannel.close;
  76421. begin
  76422. InvokeJSNoResult('close',[]);
  76423. end;
  76424. class function TJSBroadcastChannel.JSClassName: UnicodeString;
  76425. begin
  76426. Result:='BroadcastChannel';
  76427. end;
  76428. class function TJSBroadcastChannel.Cast(const Intf: IJSObject): IJSBroadcastChannel;
  76429. begin
  76430. Result:=TJSBroadcastChannel.JOBCast(Intf);
  76431. end;
  76432. function TJSOpenWindowEventDetail._Geturl: UnicodeString;
  76433. begin
  76434. Result:=ReadJSPropertyUnicodeString('url');
  76435. end;
  76436. function TJSOpenWindowEventDetail._Getname: UnicodeString;
  76437. begin
  76438. Result:=ReadJSPropertyUnicodeString('name');
  76439. end;
  76440. function TJSOpenWindowEventDetail._Getfeatures: UnicodeString;
  76441. begin
  76442. Result:=ReadJSPropertyUnicodeString('features');
  76443. end;
  76444. function TJSOpenWindowEventDetail._GetframeElement: IJSNode;
  76445. begin
  76446. Result:=ReadJSPropertyObject('frameElement',TJSNode) as IJSNode;
  76447. end;
  76448. function TJSOpenWindowEventDetail._GetforceNoReferrer: Boolean;
  76449. begin
  76450. Result:=ReadJSPropertyBoolean('forceNoReferrer');
  76451. end;
  76452. procedure TJSOpenWindowEventDetail._Seturl(const aValue : UnicodeString);
  76453. begin
  76454. WriteJSPropertyUnicodeString('url',aValue);
  76455. end;
  76456. procedure TJSOpenWindowEventDetail._Setname(const aValue : UnicodeString);
  76457. begin
  76458. WriteJSPropertyUnicodeString('name',aValue);
  76459. end;
  76460. procedure TJSOpenWindowEventDetail._Setfeatures(const aValue : UnicodeString);
  76461. begin
  76462. WriteJSPropertyUnicodeString('features',aValue);
  76463. end;
  76464. procedure TJSOpenWindowEventDetail._SetframeElement(const aValue : IJSNode);
  76465. begin
  76466. WriteJSPropertyObject('frameElement',aValue);
  76467. end;
  76468. procedure TJSOpenWindowEventDetail._SetforceNoReferrer(const aValue : Boolean);
  76469. begin
  76470. WriteJSPropertyBoolean('forceNoReferrer',aValue);
  76471. end;
  76472. class function TJSOpenWindowEventDetail.JSClassName: UnicodeString;
  76473. begin
  76474. Result:='Object';
  76475. end;
  76476. class function TJSOpenWindowEventDetail.Cast(const Intf: IJSObject): IJSOpenWindowEventDetail;
  76477. begin
  76478. Result:=TJSOpenWindowEventDetail.JOBCast(Intf);
  76479. end;
  76480. function TJSDOMWindowResizeEventDetail._Getwidth: LongInt;
  76481. begin
  76482. Result:=ReadJSPropertyLongInt('width');
  76483. end;
  76484. function TJSDOMWindowResizeEventDetail._Getheight: LongInt;
  76485. begin
  76486. Result:=ReadJSPropertyLongInt('height');
  76487. end;
  76488. procedure TJSDOMWindowResizeEventDetail._Setwidth(const aValue : LongInt);
  76489. begin
  76490. WriteJSPropertyLongInt('width',aValue);
  76491. end;
  76492. procedure TJSDOMWindowResizeEventDetail._Setheight(const aValue : LongInt);
  76493. begin
  76494. WriteJSPropertyLongInt('height',aValue);
  76495. end;
  76496. class function TJSDOMWindowResizeEventDetail.JSClassName: UnicodeString;
  76497. begin
  76498. Result:='Object';
  76499. end;
  76500. class function TJSDOMWindowResizeEventDetail.Cast(const Intf: IJSObject): IJSDOMWindowResizeEventDetail;
  76501. begin
  76502. Result:=TJSDOMWindowResizeEventDetail.JOBCast(Intf);
  76503. end;
  76504. function TJSCache.match(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<Response>
  76505. begin
  76506. Result:=InvokeJSObjectResult('match',[aRequest,aOptions],TJSPromise) as IJSPromise;
  76507. end;
  76508. function TJSCache.match(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<Response>
  76509. begin
  76510. Result:=InvokeJSObjectResult('match',[aRequest,aOptions],TJSPromise) as IJSPromise;
  76511. end;
  76512. function TJSCache.match(const aRequest: UnicodeString): IJSPromise; // Promise<Response>
  76513. begin
  76514. Result:=InvokeJSObjectResult('match',[aRequest],TJSPromise) as IJSPromise;
  76515. end;
  76516. function TJSCache.match(aRequest: IJSRequest): IJSPromise; // Promise<Response>
  76517. begin
  76518. Result:=InvokeJSObjectResult('match',[aRequest],TJSPromise) as IJSPromise;
  76519. end;
  76520. function TJSCache.matchAll(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<sequence>
  76521. begin
  76522. Result:=InvokeJSObjectResult('matchAll',[aRequest,aOptions],TJSPromise) as IJSPromise;
  76523. end;
  76524. function TJSCache.matchAll: IJSPromise; // Promise<sequence>
  76525. begin
  76526. Result:=InvokeJSObjectResult('matchAll',[],TJSPromise) as IJSPromise;
  76527. end;
  76528. function TJSCache.matchAll(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<sequence>
  76529. begin
  76530. Result:=InvokeJSObjectResult('matchAll',[aRequest,aOptions],TJSPromise) as IJSPromise;
  76531. end;
  76532. function TJSCache.matchAll(const aRequest: UnicodeString): IJSPromise; // Promise<sequence>
  76533. begin
  76534. Result:=InvokeJSObjectResult('matchAll',[aRequest],TJSPromise) as IJSPromise;
  76535. end;
  76536. function TJSCache.matchAll(aRequest: IJSRequest): IJSPromise; // Promise<sequence>
  76537. begin
  76538. Result:=InvokeJSObjectResult('matchAll',[aRequest],TJSPromise) as IJSPromise;
  76539. end;
  76540. function TJSCache.add(aRequest: IJSRequest): IJSPromise; // Promise<undefined>
  76541. begin
  76542. Result:=InvokeJSObjectResult('add',[aRequest],TJSPromise) as IJSPromise;
  76543. end;
  76544. function TJSCache.add(const aRequest: UnicodeString): IJSPromise; // Promise<undefined>
  76545. begin
  76546. Result:=InvokeJSObjectResult('add',[aRequest],TJSPromise) as IJSPromise;
  76547. end;
  76548. function TJSCache.addAll(const aRequests: TRequestInfoDynArray): IJSPromise; // Promise<undefined>
  76549. begin
  76550. Result:=InvokeJSObjectResult('addAll',[aRequests],TJSPromise) as IJSPromise;
  76551. end;
  76552. function TJSCache.put(aRequest: IJSRequest; aResponse: IJSResponse): IJSPromise; // Promise<undefined>
  76553. begin
  76554. Result:=InvokeJSObjectResult('put',[aRequest,aResponse],TJSPromise) as IJSPromise;
  76555. end;
  76556. function TJSCache.put(const aRequest: UnicodeString; aResponse: IJSResponse): IJSPromise; // Promise<undefined>
  76557. begin
  76558. Result:=InvokeJSObjectResult('put',[aRequest,aResponse],TJSPromise) as IJSPromise;
  76559. end;
  76560. function TJSCache.delete(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<boolean>
  76561. begin
  76562. Result:=InvokeJSObjectResult('delete',[aRequest,aOptions],TJSPromise) as IJSPromise;
  76563. end;
  76564. function TJSCache.delete(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<boolean>
  76565. begin
  76566. Result:=InvokeJSObjectResult('delete',[aRequest,aOptions],TJSPromise) as IJSPromise;
  76567. end;
  76568. function TJSCache.delete(const aRequest: UnicodeString): IJSPromise; // Promise<boolean>
  76569. begin
  76570. Result:=InvokeJSObjectResult('delete',[aRequest],TJSPromise) as IJSPromise;
  76571. end;
  76572. function TJSCache.delete(aRequest: IJSRequest): IJSPromise; // Promise<boolean>
  76573. begin
  76574. Result:=InvokeJSObjectResult('delete',[aRequest],TJSPromise) as IJSPromise;
  76575. end;
  76576. function TJSCache.keys(aRequest: IJSRequest; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<sequence>
  76577. begin
  76578. Result:=InvokeJSObjectResult('keys',[aRequest,aOptions],TJSPromise) as IJSPromise;
  76579. end;
  76580. function TJSCache.keys: IJSPromise; // Promise<sequence>
  76581. begin
  76582. Result:=InvokeJSObjectResult('keys',[],TJSPromise) as IJSPromise;
  76583. end;
  76584. function TJSCache.keys(const aRequest: UnicodeString; const aOptions: TJSCacheQueryOptions): IJSPromise; // Promise<sequence>
  76585. begin
  76586. Result:=InvokeJSObjectResult('keys',[aRequest,aOptions],TJSPromise) as IJSPromise;
  76587. end;
  76588. function TJSCache.keys(const aRequest: UnicodeString): IJSPromise; // Promise<sequence>
  76589. begin
  76590. Result:=InvokeJSObjectResult('keys',[aRequest],TJSPromise) as IJSPromise;
  76591. end;
  76592. function TJSCache.keys(aRequest: IJSRequest): IJSPromise; // Promise<sequence>
  76593. begin
  76594. Result:=InvokeJSObjectResult('keys',[aRequest],TJSPromise) as IJSPromise;
  76595. end;
  76596. class function TJSCache.JSClassName: UnicodeString;
  76597. begin
  76598. Result:='Cache';
  76599. end;
  76600. class function TJSCache.Cast(const Intf: IJSObject): IJSCache;
  76601. begin
  76602. Result:=TJSCache.JOBCast(Intf);
  76603. end;
  76604. function TJSCacheQueryOptions._GetignoreSearch: Boolean;
  76605. begin
  76606. Result:=ReadJSPropertyBoolean('ignoreSearch');
  76607. end;
  76608. function TJSCacheQueryOptions._GetignoreMethod: Boolean;
  76609. begin
  76610. Result:=ReadJSPropertyBoolean('ignoreMethod');
  76611. end;
  76612. function TJSCacheQueryOptions._GetignoreVary: Boolean;
  76613. begin
  76614. Result:=ReadJSPropertyBoolean('ignoreVary');
  76615. end;
  76616. procedure TJSCacheQueryOptions._SetignoreSearch(const aValue : Boolean);
  76617. begin
  76618. WriteJSPropertyBoolean('ignoreSearch',aValue);
  76619. end;
  76620. procedure TJSCacheQueryOptions._SetignoreMethod(const aValue : Boolean);
  76621. begin
  76622. WriteJSPropertyBoolean('ignoreMethod',aValue);
  76623. end;
  76624. procedure TJSCacheQueryOptions._SetignoreVary(const aValue : Boolean);
  76625. begin
  76626. WriteJSPropertyBoolean('ignoreVary',aValue);
  76627. end;
  76628. class function TJSCacheQueryOptions.JSClassName: UnicodeString;
  76629. begin
  76630. Result:='Object';
  76631. end;
  76632. class function TJSCacheQueryOptions.Cast(const Intf: IJSObject): IJSCacheQueryOptions;
  76633. begin
  76634. Result:=TJSCacheQueryOptions.JOBCast(Intf);
  76635. end;
  76636. function TJSCacheBatchOperation._Gettype_: UnicodeString;
  76637. begin
  76638. Result:=ReadJSPropertyUnicodeString('type');
  76639. end;
  76640. function TJSCacheBatchOperation._Getrequest: IJSRequest;
  76641. begin
  76642. Result:=ReadJSPropertyObject('request',TJSRequest) as IJSRequest;
  76643. end;
  76644. function TJSCacheBatchOperation._Getresponse: IJSResponse;
  76645. begin
  76646. Result:=ReadJSPropertyObject('response',TJSResponse) as IJSResponse;
  76647. end;
  76648. function TJSCacheBatchOperation._Getoptions: TJSCacheQueryOptions;
  76649. begin
  76650. Result:=ReadJSPropertyObject('options',TJSCacheQueryOptions) as TJSCacheQueryOptions;
  76651. end;
  76652. procedure TJSCacheBatchOperation._Settype_(const aValue : UnicodeString);
  76653. begin
  76654. WriteJSPropertyUnicodeString('type',aValue);
  76655. end;
  76656. procedure TJSCacheBatchOperation._Setrequest(const aValue : IJSRequest);
  76657. begin
  76658. WriteJSPropertyObject('request',aValue);
  76659. end;
  76660. procedure TJSCacheBatchOperation._Setresponse(const aValue : IJSResponse);
  76661. begin
  76662. WriteJSPropertyObject('response',aValue);
  76663. end;
  76664. procedure TJSCacheBatchOperation._Setoptions(const aValue : TJSCacheQueryOptions);
  76665. begin
  76666. WriteJSPropertyObject('options',aValue);
  76667. end;
  76668. class function TJSCacheBatchOperation.JSClassName: UnicodeString;
  76669. begin
  76670. Result:='Object';
  76671. end;
  76672. class function TJSCacheBatchOperation.Cast(const Intf: IJSObject): IJSCacheBatchOperation;
  76673. begin
  76674. Result:=TJSCacheBatchOperation.JOBCast(Intf);
  76675. end;
  76676. class function TJSPrincipal.JSClassName: UnicodeString;
  76677. begin
  76678. Result:='Principal';
  76679. end;
  76680. class function TJSPrincipal.Cast(const Intf: IJSObject): IJSPrincipal;
  76681. begin
  76682. Result:=TJSPrincipal.JOBCast(Intf);
  76683. end;
  76684. function TJSCacheStorage.match(aRequest: IJSRequest; const aOptions: TJSMultiCacheQueryOptions): IJSPromise; // Promise<Response>
  76685. begin
  76686. Result:=InvokeJSObjectResult('match',[aRequest,aOptions],TJSPromise) as IJSPromise;
  76687. end;
  76688. function TJSCacheStorage.match(const aRequest: UnicodeString; const aOptions: TJSMultiCacheQueryOptions): IJSPromise; // Promise<Response>
  76689. begin
  76690. Result:=InvokeJSObjectResult('match',[aRequest,aOptions],TJSPromise) as IJSPromise;
  76691. end;
  76692. function TJSCacheStorage.match(const aRequest: UnicodeString): IJSPromise; // Promise<Response>
  76693. begin
  76694. Result:=InvokeJSObjectResult('match',[aRequest],TJSPromise) as IJSPromise;
  76695. end;
  76696. function TJSCacheStorage.match(aRequest: IJSRequest): IJSPromise; // Promise<Response>
  76697. begin
  76698. Result:=InvokeJSObjectResult('match',[aRequest],TJSPromise) as IJSPromise;
  76699. end;
  76700. function TJSCacheStorage.has(const aCacheName: UnicodeString): IJSPromise; // Promise<boolean>
  76701. begin
  76702. Result:=InvokeJSObjectResult('has',[aCacheName],TJSPromise) as IJSPromise;
  76703. end;
  76704. function TJSCacheStorage.open(const aCacheName: UnicodeString): IJSPromise; // Promise<Cache>
  76705. begin
  76706. Result:=InvokeJSObjectResult('open',[aCacheName],TJSPromise) as IJSPromise;
  76707. end;
  76708. function TJSCacheStorage.delete(const aCacheName: UnicodeString): IJSPromise; // Promise<boolean>
  76709. begin
  76710. Result:=InvokeJSObjectResult('delete',[aCacheName],TJSPromise) as IJSPromise;
  76711. end;
  76712. function TJSCacheStorage.keys: IJSPromise; // Promise<sequence>
  76713. begin
  76714. Result:=InvokeJSObjectResult('keys',[],TJSPromise) as IJSPromise;
  76715. end;
  76716. class function TJSCacheStorage.JSClassName: UnicodeString;
  76717. begin
  76718. Result:='CacheStorage';
  76719. end;
  76720. class function TJSCacheStorage.Cast(const Intf: IJSObject): IJSCacheStorage;
  76721. begin
  76722. Result:=TJSCacheStorage.JOBCast(Intf);
  76723. end;
  76724. function TJSMultiCacheQueryOptions._GetcacheName: UnicodeString;
  76725. begin
  76726. Result:=ReadJSPropertyUnicodeString('cacheName');
  76727. end;
  76728. procedure TJSMultiCacheQueryOptions._SetcacheName(const aValue : UnicodeString);
  76729. begin
  76730. WriteJSPropertyUnicodeString('cacheName',aValue);
  76731. end;
  76732. class function TJSMultiCacheQueryOptions.JSClassName: UnicodeString;
  76733. begin
  76734. Result:='Object';
  76735. end;
  76736. class function TJSMultiCacheQueryOptions.Cast(const Intf: IJSObject): IJSMultiCacheQueryOptions;
  76737. begin
  76738. Result:=TJSMultiCacheQueryOptions.JOBCast(Intf);
  76739. end;
  76740. function TJSCancelContentJSOptions._Getindex: LongInt;
  76741. begin
  76742. Result:=ReadJSPropertyLongInt('index');
  76743. end;
  76744. function TJSCancelContentJSOptions._Geturi: IJSURI;
  76745. begin
  76746. Result:=ReadJSPropertyObject('uri',TJSURI) as IJSURI;
  76747. end;
  76748. function TJSCancelContentJSOptions._Getepoch: LongInt;
  76749. begin
  76750. Result:=ReadJSPropertyLongInt('epoch');
  76751. end;
  76752. procedure TJSCancelContentJSOptions._Setindex(const aValue : LongInt);
  76753. begin
  76754. WriteJSPropertyLongInt('index',aValue);
  76755. end;
  76756. procedure TJSCancelContentJSOptions._Seturi(const aValue : IJSURI);
  76757. begin
  76758. WriteJSPropertyObject('uri',aValue);
  76759. end;
  76760. procedure TJSCancelContentJSOptions._Setepoch(const aValue : LongInt);
  76761. begin
  76762. WriteJSPropertyLongInt('epoch',aValue);
  76763. end;
  76764. class function TJSCancelContentJSOptions.JSClassName: UnicodeString;
  76765. begin
  76766. Result:='Object';
  76767. end;
  76768. class function TJSCancelContentJSOptions.Cast(const Intf: IJSObject): IJSCancelContentJSOptions;
  76769. begin
  76770. Result:=TJSCancelContentJSOptions.JOBCast(Intf);
  76771. end;
  76772. function TJSCanvasCaptureMediaStream._Getcanvas: IJSHTMLCanvasElement;
  76773. begin
  76774. Result:=ReadJSPropertyObject('canvas',TJSHTMLCanvasElement) as IJSHTMLCanvasElement;
  76775. end;
  76776. procedure TJSCanvasCaptureMediaStream.requestFrame;
  76777. begin
  76778. InvokeJSNoResult('requestFrame',[]);
  76779. end;
  76780. class function TJSCanvasCaptureMediaStream.JSClassName: UnicodeString;
  76781. begin
  76782. Result:='CanvasCaptureMediaStream';
  76783. end;
  76784. class function TJSCanvasCaptureMediaStream.Cast(const Intf: IJSObject): IJSCanvasCaptureMediaStream;
  76785. begin
  76786. Result:=TJSCanvasCaptureMediaStream.JOBCast(Intf);
  76787. end;
  76788. function TJSCanvasRenderingContext2DSettings._Getalpha: Boolean;
  76789. begin
  76790. Result:=ReadJSPropertyBoolean('alpha');
  76791. end;
  76792. function TJSCanvasRenderingContext2DSettings._Getdesynchronized: Boolean;
  76793. begin
  76794. Result:=ReadJSPropertyBoolean('desynchronized');
  76795. end;
  76796. function TJSCanvasRenderingContext2DSettings._GetcolorSpace: TPredefinedColorSpace;
  76797. begin
  76798. Result:=ReadJSPropertyUnicodeString('colorSpace');
  76799. end;
  76800. function TJSCanvasRenderingContext2DSettings._GetwillReadFrequently: Boolean;
  76801. begin
  76802. Result:=ReadJSPropertyBoolean('willReadFrequently');
  76803. end;
  76804. procedure TJSCanvasRenderingContext2DSettings._Setalpha(const aValue : Boolean);
  76805. begin
  76806. WriteJSPropertyBoolean('alpha',aValue);
  76807. end;
  76808. procedure TJSCanvasRenderingContext2DSettings._Setdesynchronized(const aValue : Boolean);
  76809. begin
  76810. WriteJSPropertyBoolean('desynchronized',aValue);
  76811. end;
  76812. procedure TJSCanvasRenderingContext2DSettings._SetcolorSpace(const aValue : TPredefinedColorSpace);
  76813. begin
  76814. WriteJSPropertyUnicodeString('colorSpace',aValue);
  76815. end;
  76816. procedure TJSCanvasRenderingContext2DSettings._SetwillReadFrequently(const aValue : Boolean);
  76817. begin
  76818. WriteJSPropertyBoolean('willReadFrequently',aValue);
  76819. end;
  76820. class function TJSCanvasRenderingContext2DSettings.JSClassName: UnicodeString;
  76821. begin
  76822. Result:='Object';
  76823. end;
  76824. class function TJSCanvasRenderingContext2DSettings.Cast(const Intf: IJSObject): IJSCanvasRenderingContext2DSettings;
  76825. begin
  76826. Result:=TJSCanvasRenderingContext2DSettings.JOBCast(Intf);
  76827. end;
  76828. function TJSHitRegionOptions._Getpath: IJSPath2D;
  76829. begin
  76830. Result:=ReadJSPropertyObject('path',TJSPath2D) as IJSPath2D;
  76831. end;
  76832. function TJSHitRegionOptions._Getid: UnicodeString;
  76833. begin
  76834. Result:=ReadJSPropertyUnicodeString('id');
  76835. end;
  76836. function TJSHitRegionOptions._Getcontrol: IJSElement;
  76837. begin
  76838. Result:=ReadJSPropertyObject('control',TJSElement) as IJSElement;
  76839. end;
  76840. procedure TJSHitRegionOptions._Setpath(const aValue : IJSPath2D);
  76841. begin
  76842. WriteJSPropertyObject('path',aValue);
  76843. end;
  76844. procedure TJSHitRegionOptions._Setid(const aValue : UnicodeString);
  76845. begin
  76846. WriteJSPropertyUnicodeString('id',aValue);
  76847. end;
  76848. procedure TJSHitRegionOptions._Setcontrol(const aValue : IJSElement);
  76849. begin
  76850. WriteJSPropertyObject('control',aValue);
  76851. end;
  76852. class function TJSHitRegionOptions.JSClassName: UnicodeString;
  76853. begin
  76854. Result:='Object';
  76855. end;
  76856. class function TJSHitRegionOptions.Cast(const Intf: IJSObject): IJSHitRegionOptions;
  76857. begin
  76858. Result:=TJSHitRegionOptions.JOBCast(Intf);
  76859. end;
  76860. function TJSCanvasRenderingContext2D._Getcanvas: IJSHTMLCanvasElement;
  76861. begin
  76862. Result:=ReadJSPropertyObject('canvas',TJSHTMLCanvasElement) as IJSHTMLCanvasElement;
  76863. end;
  76864. function TJSCanvasRenderingContext2D._GetglobalAlpha: Double;
  76865. begin
  76866. Result:=ReadJSPropertyDouble('globalAlpha');
  76867. end;
  76868. function TJSCanvasRenderingContext2D._GetglobalCompositeOperation: UnicodeString;
  76869. begin
  76870. Result:=ReadJSPropertyUnicodeString('globalCompositeOperation');
  76871. end;
  76872. function TJSCanvasRenderingContext2D._GetimageSmoothingEnabled: Boolean;
  76873. begin
  76874. Result:=ReadJSPropertyBoolean('imageSmoothingEnabled');
  76875. end;
  76876. function TJSCanvasRenderingContext2D._GetstrokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type;
  76877. begin
  76878. Result:=ReadJSPropertyVariant('strokeStyle');
  76879. end;
  76880. function TJSCanvasRenderingContext2D._GetfillStyle: TCanvasFillStrokeStyles_fillStyle_Type;
  76881. begin
  76882. Result:=ReadJSPropertyVariant('fillStyle');
  76883. end;
  76884. function TJSCanvasRenderingContext2D._GetshadowOffsetX: Double;
  76885. begin
  76886. Result:=ReadJSPropertyDouble('shadowOffsetX');
  76887. end;
  76888. function TJSCanvasRenderingContext2D._GetshadowOffsetY: Double;
  76889. begin
  76890. Result:=ReadJSPropertyDouble('shadowOffsetY');
  76891. end;
  76892. function TJSCanvasRenderingContext2D._GetshadowBlur: Double;
  76893. begin
  76894. Result:=ReadJSPropertyDouble('shadowBlur');
  76895. end;
  76896. function TJSCanvasRenderingContext2D._GetshadowColor: UTF8String;
  76897. begin
  76898. Result:=ReadJSPropertyUTF8String('shadowColor');
  76899. end;
  76900. function TJSCanvasRenderingContext2D._Getfilter: UTF8String;
  76901. begin
  76902. Result:=ReadJSPropertyUTF8String('filter');
  76903. end;
  76904. function TJSCanvasRenderingContext2D._GetlineWidth: Double;
  76905. begin
  76906. Result:=ReadJSPropertyDouble('lineWidth');
  76907. end;
  76908. function TJSCanvasRenderingContext2D._GetlineCap: TCanvasLineCap;
  76909. begin
  76910. Result:=ReadJSPropertyUnicodeString('lineCap');
  76911. end;
  76912. function TJSCanvasRenderingContext2D._GetlineJoin: TCanvasLineJoin;
  76913. begin
  76914. Result:=ReadJSPropertyUnicodeString('lineJoin');
  76915. end;
  76916. function TJSCanvasRenderingContext2D._GetmiterLimit: Double;
  76917. begin
  76918. Result:=ReadJSPropertyDouble('miterLimit');
  76919. end;
  76920. function TJSCanvasRenderingContext2D._GetlineDashOffset: Double;
  76921. begin
  76922. Result:=ReadJSPropertyDouble('lineDashOffset');
  76923. end;
  76924. function TJSCanvasRenderingContext2D._Getfont: UTF8String;
  76925. begin
  76926. Result:=ReadJSPropertyUTF8String('font');
  76927. end;
  76928. function TJSCanvasRenderingContext2D._GettextAlign: TCanvasTextAlign;
  76929. begin
  76930. Result:=ReadJSPropertyUnicodeString('textAlign');
  76931. end;
  76932. function TJSCanvasRenderingContext2D._GettextBaseline: TCanvasTextBaseline;
  76933. begin
  76934. Result:=ReadJSPropertyUnicodeString('textBaseline');
  76935. end;
  76936. function TJSCanvasRenderingContext2D._Getdirection: TCanvasDirection;
  76937. begin
  76938. Result:=ReadJSPropertyUnicodeString('direction');
  76939. end;
  76940. function TJSCanvasRenderingContext2D._GetletterSpacing: UTF8String;
  76941. begin
  76942. Result:=ReadJSPropertyUTF8String('letterSpacing');
  76943. end;
  76944. function TJSCanvasRenderingContext2D._GetfontKerning: TCanvasFontKerning;
  76945. begin
  76946. Result:=ReadJSPropertyUnicodeString('fontKerning');
  76947. end;
  76948. function TJSCanvasRenderingContext2D._GetfontStretch: TCanvasFontStretch;
  76949. begin
  76950. Result:=ReadJSPropertyUnicodeString('fontStretch');
  76951. end;
  76952. function TJSCanvasRenderingContext2D._GetfontVariantCaps: TCanvasFontVariantCaps;
  76953. begin
  76954. Result:=ReadJSPropertyUnicodeString('fontVariantCaps');
  76955. end;
  76956. function TJSCanvasRenderingContext2D._GettextRendering: TCanvasTextRendering;
  76957. begin
  76958. Result:=ReadJSPropertyUnicodeString('textRendering');
  76959. end;
  76960. function TJSCanvasRenderingContext2D._GetwordSpacing: UTF8String;
  76961. begin
  76962. Result:=ReadJSPropertyUTF8String('wordSpacing');
  76963. end;
  76964. procedure TJSCanvasRenderingContext2D._SetglobalAlpha(const aValue : Double);
  76965. begin
  76966. WriteJSPropertyDouble('globalAlpha',aValue);
  76967. end;
  76968. procedure TJSCanvasRenderingContext2D._SetglobalCompositeOperation(const aValue : UnicodeString);
  76969. begin
  76970. WriteJSPropertyUnicodeString('globalCompositeOperation',aValue);
  76971. end;
  76972. procedure TJSCanvasRenderingContext2D._SetimageSmoothingEnabled(const aValue : Boolean);
  76973. begin
  76974. WriteJSPropertyBoolean('imageSmoothingEnabled',aValue);
  76975. end;
  76976. procedure TJSCanvasRenderingContext2D._SetstrokeStyle(const aValue : TCanvasFillStrokeStyles_strokeStyle_Type);
  76977. begin
  76978. WriteJSPropertyVariant('strokeStyle',aValue);
  76979. end;
  76980. procedure TJSCanvasRenderingContext2D._SetfillStyle(const aValue : TCanvasFillStrokeStyles_fillStyle_Type);
  76981. begin
  76982. WriteJSPropertyVariant('fillStyle',aValue);
  76983. end;
  76984. procedure TJSCanvasRenderingContext2D._SetshadowOffsetX(const aValue : Double);
  76985. begin
  76986. WriteJSPropertyDouble('shadowOffsetX',aValue);
  76987. end;
  76988. procedure TJSCanvasRenderingContext2D._SetshadowOffsetY(const aValue : Double);
  76989. begin
  76990. WriteJSPropertyDouble('shadowOffsetY',aValue);
  76991. end;
  76992. procedure TJSCanvasRenderingContext2D._SetshadowBlur(const aValue : Double);
  76993. begin
  76994. WriteJSPropertyDouble('shadowBlur',aValue);
  76995. end;
  76996. procedure TJSCanvasRenderingContext2D._SetshadowColor(const aValue : UTF8String);
  76997. begin
  76998. WriteJSPropertyUTF8String('shadowColor',aValue);
  76999. end;
  77000. procedure TJSCanvasRenderingContext2D._Setfilter(const aValue : UTF8String);
  77001. begin
  77002. WriteJSPropertyUTF8String('filter',aValue);
  77003. end;
  77004. procedure TJSCanvasRenderingContext2D._SetlineWidth(const aValue : Double);
  77005. begin
  77006. WriteJSPropertyDouble('lineWidth',aValue);
  77007. end;
  77008. procedure TJSCanvasRenderingContext2D._SetlineCap(const aValue : TCanvasLineCap);
  77009. begin
  77010. WriteJSPropertyUnicodeString('lineCap',aValue);
  77011. end;
  77012. procedure TJSCanvasRenderingContext2D._SetlineJoin(const aValue : TCanvasLineJoin);
  77013. begin
  77014. WriteJSPropertyUnicodeString('lineJoin',aValue);
  77015. end;
  77016. procedure TJSCanvasRenderingContext2D._SetmiterLimit(const aValue : Double);
  77017. begin
  77018. WriteJSPropertyDouble('miterLimit',aValue);
  77019. end;
  77020. procedure TJSCanvasRenderingContext2D._SetlineDashOffset(const aValue : Double);
  77021. begin
  77022. WriteJSPropertyDouble('lineDashOffset',aValue);
  77023. end;
  77024. procedure TJSCanvasRenderingContext2D._Setfont(const aValue : UTF8String);
  77025. begin
  77026. WriteJSPropertyUTF8String('font',aValue);
  77027. end;
  77028. procedure TJSCanvasRenderingContext2D._SettextAlign(const aValue : TCanvasTextAlign);
  77029. begin
  77030. WriteJSPropertyUnicodeString('textAlign',aValue);
  77031. end;
  77032. procedure TJSCanvasRenderingContext2D._SettextBaseline(const aValue : TCanvasTextBaseline);
  77033. begin
  77034. WriteJSPropertyUnicodeString('textBaseline',aValue);
  77035. end;
  77036. procedure TJSCanvasRenderingContext2D._Setdirection(const aValue : TCanvasDirection);
  77037. begin
  77038. WriteJSPropertyUnicodeString('direction',aValue);
  77039. end;
  77040. procedure TJSCanvasRenderingContext2D._SetletterSpacing(const aValue : UTF8String);
  77041. begin
  77042. WriteJSPropertyUTF8String('letterSpacing',aValue);
  77043. end;
  77044. procedure TJSCanvasRenderingContext2D._SetfontKerning(const aValue : TCanvasFontKerning);
  77045. begin
  77046. WriteJSPropertyUnicodeString('fontKerning',aValue);
  77047. end;
  77048. procedure TJSCanvasRenderingContext2D._SetfontStretch(const aValue : TCanvasFontStretch);
  77049. begin
  77050. WriteJSPropertyUnicodeString('fontStretch',aValue);
  77051. end;
  77052. procedure TJSCanvasRenderingContext2D._SetfontVariantCaps(const aValue : TCanvasFontVariantCaps);
  77053. begin
  77054. WriteJSPropertyUnicodeString('fontVariantCaps',aValue);
  77055. end;
  77056. procedure TJSCanvasRenderingContext2D._SettextRendering(const aValue : TCanvasTextRendering);
  77057. begin
  77058. WriteJSPropertyUnicodeString('textRendering',aValue);
  77059. end;
  77060. procedure TJSCanvasRenderingContext2D._SetwordSpacing(const aValue : UTF8String);
  77061. begin
  77062. WriteJSPropertyUTF8String('wordSpacing',aValue);
  77063. end;
  77064. function TJSCanvasRenderingContext2D.getContextAttributes: TJSCanvasRenderingContext2DSettings;
  77065. begin
  77066. Result:=InvokeJSObjectResult('getContextAttributes',[],TJSCanvasRenderingContext2DSettings) as TJSCanvasRenderingContext2DSettings;
  77067. end;
  77068. procedure TJSCanvasRenderingContext2D.drawWindow(aWindow: IJSWindow; aX: Double; aY: Double; aW: Double; aH: Double; const aBgColor: UTF8String; aFlags: Cardinal);
  77069. begin
  77070. InvokeJSNoResult('drawWindow',[aWindow,aX,aY,aW,aH,aBgColor,aFlags]);
  77071. end;
  77072. procedure TJSCanvasRenderingContext2D.drawWindow(aWindow: IJSWindow; aX: Double; aY: Double; aW: Double; aH: Double; const aBgColor: UTF8String);
  77073. begin
  77074. InvokeJSNoResult('drawWindow',[aWindow,aX,aY,aW,aH,aBgColor]);
  77075. end;
  77076. procedure TJSCanvasRenderingContext2D.save;
  77077. begin
  77078. InvokeJSNoResult('save',[]);
  77079. end;
  77080. procedure TJSCanvasRenderingContext2D.restore;
  77081. begin
  77082. InvokeJSNoResult('restore',[]);
  77083. end;
  77084. procedure TJSCanvasRenderingContext2D.reset;
  77085. begin
  77086. InvokeJSNoResult('reset',[]);
  77087. end;
  77088. function TJSCanvasRenderingContext2D.isContextLost: Boolean;
  77089. begin
  77090. Result:=InvokeJSBooleanResult('isContextLost',[]);
  77091. end;
  77092. procedure TJSCanvasRenderingContext2D.scale(aX: Double; aY: Double);
  77093. begin
  77094. InvokeJSNoResult('scale',[aX,aY]);
  77095. end;
  77096. procedure TJSCanvasRenderingContext2D.rotate(aAngle: Double);
  77097. begin
  77098. InvokeJSNoResult('rotate',[aAngle]);
  77099. end;
  77100. procedure TJSCanvasRenderingContext2D.translate(aX: Double; aY: Double);
  77101. begin
  77102. InvokeJSNoResult('translate',[aX,aY]);
  77103. end;
  77104. procedure TJSCanvasRenderingContext2D.transform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  77105. begin
  77106. InvokeJSNoResult('transform',[aA,aB,aC,aD,aE,aF]);
  77107. end;
  77108. function TJSCanvasRenderingContext2D.getTransform: IJSDOMMatrix;
  77109. begin
  77110. Result:=InvokeJSObjectResult('getTransform',[],TJSDOMMatrix) as IJSDOMMatrix;
  77111. end;
  77112. procedure TJSCanvasRenderingContext2D.setTransform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  77113. begin
  77114. InvokeJSNoResult('setTransform',[aA,aB,aC,aD,aE,aF]);
  77115. end;
  77116. procedure TJSCanvasRenderingContext2D.setTransform(const aTransform: TJSDOMMatrix2DInit);
  77117. begin
  77118. InvokeJSNoResult('setTransform',[aTransform]);
  77119. end;
  77120. procedure TJSCanvasRenderingContext2D.setTransform;
  77121. begin
  77122. InvokeJSNoResult('setTransform',[]);
  77123. end;
  77124. procedure TJSCanvasRenderingContext2D.resetTransform;
  77125. begin
  77126. InvokeJSNoResult('resetTransform',[]);
  77127. end;
  77128. function TJSCanvasRenderingContext2D.createLinearGradient(aX0: Double; aY0: Double; aX1: Double; aY1: Double): IJSCanvasGradient;
  77129. begin
  77130. Result:=InvokeJSObjectResult('createLinearGradient',[aX0,aY0,aX1,aY1],TJSCanvasGradient) as IJSCanvasGradient;
  77131. end;
  77132. function TJSCanvasRenderingContext2D.createRadialGradient(aX0: Double; aY0: Double; aR0: Double; aX1: Double; aY1: Double; aR1: Double): IJSCanvasGradient;
  77133. begin
  77134. Result:=InvokeJSObjectResult('createRadialGradient',[aX0,aY0,aR0,aX1,aY1,aR1],TJSCanvasGradient) as IJSCanvasGradient;
  77135. end;
  77136. function TJSCanvasRenderingContext2D.createConicGradient(aAngle: Double; aCx: Double; aCy: Double): IJSCanvasGradient;
  77137. begin
  77138. Result:=InvokeJSObjectResult('createConicGradient',[aAngle,aCx,aCy],TJSCanvasGradient) as IJSCanvasGradient;
  77139. end;
  77140. function TJSCanvasRenderingContext2D.createPattern(aImage: IJSHTMLCanvasElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  77141. begin
  77142. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77143. end;
  77144. function TJSCanvasRenderingContext2D.createPattern(const aImage: THTMLOrSVGImageElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  77145. begin
  77146. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77147. end;
  77148. function TJSCanvasRenderingContext2D.createPattern(aImage: IJSHTMLVideoElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  77149. begin
  77150. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77151. end;
  77152. function TJSCanvasRenderingContext2D.createPattern(aImage: IJSImageBitmap; const aRepetition: UnicodeString): IJSCanvasPattern;
  77153. begin
  77154. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77155. end;
  77156. function TJSCanvasRenderingContext2D.createPattern(aImage: IJSOffscreenCanvas; const aRepetition: UnicodeString): IJSCanvasPattern;
  77157. begin
  77158. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77159. end;
  77160. function TJSCanvasRenderingContext2D.createPattern(aImage: IJSVideoFrame; const aRepetition: UnicodeString): IJSCanvasPattern;
  77161. begin
  77162. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77163. end;
  77164. procedure TJSCanvasRenderingContext2D.clearRect(aX: Double; aY: Double; aW: Double; aH: Double);
  77165. begin
  77166. InvokeJSNoResult('clearRect',[aX,aY,aW,aH]);
  77167. end;
  77168. procedure TJSCanvasRenderingContext2D.fillRect(aX: Double; aY: Double; aW: Double; aH: Double);
  77169. begin
  77170. InvokeJSNoResult('fillRect',[aX,aY,aW,aH]);
  77171. end;
  77172. procedure TJSCanvasRenderingContext2D.strokeRect(aX: Double; aY: Double; aW: Double; aH: Double);
  77173. begin
  77174. InvokeJSNoResult('strokeRect',[aX,aY,aW,aH]);
  77175. end;
  77176. procedure TJSCanvasRenderingContext2D.beginPath;
  77177. begin
  77178. InvokeJSNoResult('beginPath',[]);
  77179. end;
  77180. procedure TJSCanvasRenderingContext2D.fill(aWinding: TCanvasWindingRule);
  77181. begin
  77182. InvokeJSNoResult('fill',[aWinding]);
  77183. end;
  77184. procedure TJSCanvasRenderingContext2D.fill;
  77185. begin
  77186. InvokeJSNoResult('fill',[]);
  77187. end;
  77188. procedure TJSCanvasRenderingContext2D.fill(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  77189. begin
  77190. InvokeJSNoResult('fill',[aPath,aWinding]);
  77191. end;
  77192. procedure TJSCanvasRenderingContext2D.fill(aPath: IJSPath2D);
  77193. begin
  77194. InvokeJSNoResult('fill',[aPath]);
  77195. end;
  77196. procedure TJSCanvasRenderingContext2D.stroke;
  77197. begin
  77198. InvokeJSNoResult('stroke',[]);
  77199. end;
  77200. procedure TJSCanvasRenderingContext2D.stroke(aPath: IJSPath2D);
  77201. begin
  77202. InvokeJSNoResult('stroke',[aPath]);
  77203. end;
  77204. procedure TJSCanvasRenderingContext2D.clip(aWinding: TCanvasWindingRule);
  77205. begin
  77206. InvokeJSNoResult('clip',[aWinding]);
  77207. end;
  77208. procedure TJSCanvasRenderingContext2D.clip;
  77209. begin
  77210. InvokeJSNoResult('clip',[]);
  77211. end;
  77212. procedure TJSCanvasRenderingContext2D.clip(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  77213. begin
  77214. InvokeJSNoResult('clip',[aPath,aWinding]);
  77215. end;
  77216. procedure TJSCanvasRenderingContext2D.clip(aPath: IJSPath2D);
  77217. begin
  77218. InvokeJSNoResult('clip',[aPath]);
  77219. end;
  77220. function TJSCanvasRenderingContext2D.isPointInPath(aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  77221. begin
  77222. Result:=InvokeJSBooleanResult('isPointInPath',[aX,aY,aWinding]);
  77223. end;
  77224. function TJSCanvasRenderingContext2D.isPointInPath(aX: Double; aY: Double): Boolean;
  77225. begin
  77226. Result:=InvokeJSBooleanResult('isPointInPath',[aX,aY]);
  77227. end;
  77228. function TJSCanvasRenderingContext2D.isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  77229. begin
  77230. Result:=InvokeJSBooleanResult('isPointInPath',[aPath,aX,aY,aWinding]);
  77231. end;
  77232. function TJSCanvasRenderingContext2D.isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  77233. begin
  77234. Result:=InvokeJSBooleanResult('isPointInPath',[aPath,aX,aY]);
  77235. end;
  77236. function TJSCanvasRenderingContext2D.isPointInStroke(aX: Double; aY: Double): Boolean;
  77237. begin
  77238. Result:=InvokeJSBooleanResult('isPointInStroke',[aX,aY]);
  77239. end;
  77240. function TJSCanvasRenderingContext2D.isPointInStroke(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  77241. begin
  77242. Result:=InvokeJSBooleanResult('isPointInStroke',[aPath,aX,aY]);
  77243. end;
  77244. procedure TJSCanvasRenderingContext2D.drawFocusIfNeeded(aElement: IJSElement);
  77245. begin
  77246. InvokeJSNoResult('drawFocusIfNeeded',[aElement]);
  77247. end;
  77248. procedure TJSCanvasRenderingContext2D.fillText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  77249. begin
  77250. InvokeJSNoResult('fillText',[aText,aX,aY,aMaxWidth]);
  77251. end;
  77252. procedure TJSCanvasRenderingContext2D.fillText(const aText: UnicodeString; aX: Double; aY: Double);
  77253. begin
  77254. InvokeJSNoResult('fillText',[aText,aX,aY]);
  77255. end;
  77256. procedure TJSCanvasRenderingContext2D.strokeText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  77257. begin
  77258. InvokeJSNoResult('strokeText',[aText,aX,aY,aMaxWidth]);
  77259. end;
  77260. procedure TJSCanvasRenderingContext2D.strokeText(const aText: UnicodeString; aX: Double; aY: Double);
  77261. begin
  77262. InvokeJSNoResult('strokeText',[aText,aX,aY]);
  77263. end;
  77264. function TJSCanvasRenderingContext2D.measureText(const aText: UnicodeString): IJSTextMetrics;
  77265. begin
  77266. Result:=InvokeJSObjectResult('measureText',[aText],TJSTextMetrics) as IJSTextMetrics;
  77267. end;
  77268. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double);
  77269. begin
  77270. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77271. end;
  77272. procedure TJSCanvasRenderingContext2D.drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double);
  77273. begin
  77274. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77275. end;
  77276. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double);
  77277. begin
  77278. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77279. end;
  77280. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double);
  77281. begin
  77282. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77283. end;
  77284. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double);
  77285. begin
  77286. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77287. end;
  77288. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double);
  77289. begin
  77290. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77291. end;
  77292. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77293. begin
  77294. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77295. end;
  77296. procedure TJSCanvasRenderingContext2D.drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77297. begin
  77298. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77299. end;
  77300. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77301. begin
  77302. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77303. end;
  77304. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77305. begin
  77306. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77307. end;
  77308. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77309. begin
  77310. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77311. end;
  77312. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77313. begin
  77314. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77315. end;
  77316. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSHTMLCanvasElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77317. begin
  77318. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77319. end;
  77320. procedure TJSCanvasRenderingContext2D.drawImage(const aImage: THTMLOrSVGImageElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77321. begin
  77322. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77323. end;
  77324. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSHTMLVideoElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77325. begin
  77326. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77327. end;
  77328. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSImageBitmap; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77329. begin
  77330. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77331. end;
  77332. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSOffscreenCanvas; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77333. begin
  77334. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77335. end;
  77336. procedure TJSCanvasRenderingContext2D.drawImage(aImage: IJSVideoFrame; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77337. begin
  77338. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77339. end;
  77340. function TJSCanvasRenderingContext2D.createImageData(aSw: LongInt; aSh: LongInt): IJSImageData;
  77341. begin
  77342. Result:=InvokeJSObjectResult('createImageData',[aSw,aSh],TJSImageData) as IJSImageData;
  77343. end;
  77344. function TJSCanvasRenderingContext2D.createImageData(aImagedata: IJSImageData): IJSImageData;
  77345. begin
  77346. Result:=InvokeJSObjectResult('createImageData',[aImagedata],TJSImageData) as IJSImageData;
  77347. end;
  77348. function TJSCanvasRenderingContext2D.getImageData(aSx: LongInt; aSy: LongInt; aSw: LongInt; aSh: LongInt): IJSImageData;
  77349. begin
  77350. Result:=InvokeJSObjectResult('getImageData',[aSx,aSy,aSw,aSh],TJSImageData) as IJSImageData;
  77351. end;
  77352. procedure TJSCanvasRenderingContext2D.putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt);
  77353. begin
  77354. InvokeJSNoResult('putImageData',[aImagedata,aDx,aDy]);
  77355. end;
  77356. procedure TJSCanvasRenderingContext2D.putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt; aDirtyX: LongInt; aDirtyY: LongInt; aDirtyWidth: LongInt; aDirtyHeight: LongInt);
  77357. begin
  77358. InvokeJSNoResult('putImageData',[aImagedata,aDx,aDy,aDirtyX,aDirtyY,aDirtyWidth,aDirtyHeight]);
  77359. end;
  77360. procedure TJSCanvasRenderingContext2D.setLineDash(const aSegments: TDoubleDynArray);
  77361. begin
  77362. InvokeJSNoResult('setLineDash',[aSegments]);
  77363. end;
  77364. function TJSCanvasRenderingContext2D.getLineDash: TDoubleDynArray;
  77365. begin
  77366. Result:=InvokeJSObjectResult('getLineDash',[],TJSArray) as TDoubleDynArray;
  77367. end;
  77368. procedure TJSCanvasRenderingContext2D.closePath;
  77369. begin
  77370. InvokeJSNoResult('closePath',[]);
  77371. end;
  77372. procedure TJSCanvasRenderingContext2D.moveTo(aX: Double; aY: Double);
  77373. begin
  77374. InvokeJSNoResult('moveTo',[aX,aY]);
  77375. end;
  77376. procedure TJSCanvasRenderingContext2D.lineTo(aX: Double; aY: Double);
  77377. begin
  77378. InvokeJSNoResult('lineTo',[aX,aY]);
  77379. end;
  77380. procedure TJSCanvasRenderingContext2D.quadraticCurveTo(aCpx: Double; aCpy: Double; aX: Double; aY: Double);
  77381. begin
  77382. InvokeJSNoResult('quadraticCurveTo',[aCpx,aCpy,aX,aY]);
  77383. end;
  77384. procedure TJSCanvasRenderingContext2D.bezierCurveTo(aCp1x: Double; aCp1y: Double; aCp2x: Double; aCp2y: Double; aX: Double; aY: Double);
  77385. begin
  77386. InvokeJSNoResult('bezierCurveTo',[aCp1x,aCp1y,aCp2x,aCp2y,aX,aY]);
  77387. end;
  77388. procedure TJSCanvasRenderingContext2D.arcTo(aX1: Double; aY1: Double; aX2: Double; aY2: Double; aRadius: Double);
  77389. begin
  77390. InvokeJSNoResult('arcTo',[aX1,aY1,aX2,aY2,aRadius]);
  77391. end;
  77392. procedure TJSCanvasRenderingContext2D.rect(aX: Double; aY: Double; aW: Double; aH: Double);
  77393. begin
  77394. InvokeJSNoResult('rect',[aX,aY,aW,aH]);
  77395. end;
  77396. procedure TJSCanvasRenderingContext2D.roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TJSDOMPointInit);
  77397. begin
  77398. InvokeJSNoResult('roundRect',[aX,aY,aW,aH,aRadii]);
  77399. end;
  77400. procedure TJSCanvasRenderingContext2D.roundRect(aX: Double; aY: Double; aW: Double; aH: Double);
  77401. begin
  77402. InvokeJSNoResult('roundRect',[aX,aY,aW,aH]);
  77403. end;
  77404. procedure TJSCanvasRenderingContext2D.roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TunionDynArray);
  77405. begin
  77406. InvokeJSNoResult('roundRect',[aX,aY,aW,aH,aRadii]);
  77407. end;
  77408. procedure TJSCanvasRenderingContext2D.roundRect(aX: Double; aY: Double; aW: Double; aH: Double; aRadii: Double);
  77409. begin
  77410. InvokeJSNoResult('roundRect',[aX,aY,aW,aH,aRadii]);
  77411. end;
  77412. procedure TJSCanvasRenderingContext2D.arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  77413. begin
  77414. InvokeJSNoResult('arc',[aX,aY,aRadius,aStartAngle,aEndAngle,aAnticlockwise]);
  77415. end;
  77416. procedure TJSCanvasRenderingContext2D.arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double);
  77417. begin
  77418. InvokeJSNoResult('arc',[aX,aY,aRadius,aStartAngle,aEndAngle]);
  77419. end;
  77420. procedure TJSCanvasRenderingContext2D.ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  77421. begin
  77422. InvokeJSNoResult('ellipse',[aX,aY,aRadiusX,aRadiusY,aRotation,aStartAngle,aEndAngle,aAnticlockwise]);
  77423. end;
  77424. procedure TJSCanvasRenderingContext2D.ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double);
  77425. begin
  77426. InvokeJSNoResult('ellipse',[aX,aY,aRadiusX,aRadiusY,aRotation,aStartAngle,aEndAngle]);
  77427. end;
  77428. class function TJSCanvasRenderingContext2D.JSClassName: UnicodeString;
  77429. begin
  77430. Result:='CanvasRenderingContext2D';
  77431. end;
  77432. class function TJSCanvasRenderingContext2D.Cast(const Intf: IJSObject): IJSCanvasRenderingContext2D;
  77433. begin
  77434. Result:=TJSCanvasRenderingContext2D.JOBCast(Intf);
  77435. end;
  77436. procedure TJSCanvasState.save;
  77437. begin
  77438. InvokeJSNoResult('save',[]);
  77439. end;
  77440. procedure TJSCanvasState.restore;
  77441. begin
  77442. InvokeJSNoResult('restore',[]);
  77443. end;
  77444. procedure TJSCanvasState.reset;
  77445. begin
  77446. InvokeJSNoResult('reset',[]);
  77447. end;
  77448. function TJSCanvasState.isContextLost: Boolean;
  77449. begin
  77450. Result:=InvokeJSBooleanResult('isContextLost',[]);
  77451. end;
  77452. class function TJSCanvasState.JSClassName: UnicodeString;
  77453. begin
  77454. Result:='CanvasState';
  77455. end;
  77456. class function TJSCanvasState.Cast(const Intf: IJSObject): IJSCanvasState;
  77457. begin
  77458. Result:=TJSCanvasState.JOBCast(Intf);
  77459. end;
  77460. procedure TJSCanvasTransform.scale(aX: Double; aY: Double);
  77461. begin
  77462. InvokeJSNoResult('scale',[aX,aY]);
  77463. end;
  77464. procedure TJSCanvasTransform.rotate(aAngle: Double);
  77465. begin
  77466. InvokeJSNoResult('rotate',[aAngle]);
  77467. end;
  77468. procedure TJSCanvasTransform.translate(aX: Double; aY: Double);
  77469. begin
  77470. InvokeJSNoResult('translate',[aX,aY]);
  77471. end;
  77472. procedure TJSCanvasTransform.transform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  77473. begin
  77474. InvokeJSNoResult('transform',[aA,aB,aC,aD,aE,aF]);
  77475. end;
  77476. function TJSCanvasTransform.getTransform: IJSDOMMatrix;
  77477. begin
  77478. Result:=InvokeJSObjectResult('getTransform',[],TJSDOMMatrix) as IJSDOMMatrix;
  77479. end;
  77480. procedure TJSCanvasTransform.setTransform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  77481. begin
  77482. InvokeJSNoResult('setTransform',[aA,aB,aC,aD,aE,aF]);
  77483. end;
  77484. procedure TJSCanvasTransform.setTransform(const aTransform: TJSDOMMatrix2DInit);
  77485. begin
  77486. InvokeJSNoResult('setTransform',[aTransform]);
  77487. end;
  77488. procedure TJSCanvasTransform.setTransform;
  77489. begin
  77490. InvokeJSNoResult('setTransform',[]);
  77491. end;
  77492. procedure TJSCanvasTransform.resetTransform;
  77493. begin
  77494. InvokeJSNoResult('resetTransform',[]);
  77495. end;
  77496. class function TJSCanvasTransform.JSClassName: UnicodeString;
  77497. begin
  77498. Result:='CanvasTransform';
  77499. end;
  77500. class function TJSCanvasTransform.Cast(const Intf: IJSObject): IJSCanvasTransform;
  77501. begin
  77502. Result:=TJSCanvasTransform.JOBCast(Intf);
  77503. end;
  77504. function TJSCanvasCompositing._GetglobalAlpha: Double;
  77505. begin
  77506. Result:=ReadJSPropertyDouble('globalAlpha');
  77507. end;
  77508. function TJSCanvasCompositing._GetglobalCompositeOperation: UnicodeString;
  77509. begin
  77510. Result:=ReadJSPropertyUnicodeString('globalCompositeOperation');
  77511. end;
  77512. procedure TJSCanvasCompositing._SetglobalAlpha(const aValue : Double);
  77513. begin
  77514. WriteJSPropertyDouble('globalAlpha',aValue);
  77515. end;
  77516. procedure TJSCanvasCompositing._SetglobalCompositeOperation(const aValue : UnicodeString);
  77517. begin
  77518. WriteJSPropertyUnicodeString('globalCompositeOperation',aValue);
  77519. end;
  77520. class function TJSCanvasCompositing.JSClassName: UnicodeString;
  77521. begin
  77522. Result:='CanvasCompositing';
  77523. end;
  77524. class function TJSCanvasCompositing.Cast(const Intf: IJSObject): IJSCanvasCompositing;
  77525. begin
  77526. Result:=TJSCanvasCompositing.JOBCast(Intf);
  77527. end;
  77528. function TJSCanvasImageSmoothing._GetimageSmoothingEnabled: Boolean;
  77529. begin
  77530. Result:=ReadJSPropertyBoolean('imageSmoothingEnabled');
  77531. end;
  77532. procedure TJSCanvasImageSmoothing._SetimageSmoothingEnabled(const aValue : Boolean);
  77533. begin
  77534. WriteJSPropertyBoolean('imageSmoothingEnabled',aValue);
  77535. end;
  77536. class function TJSCanvasImageSmoothing.JSClassName: UnicodeString;
  77537. begin
  77538. Result:='CanvasImageSmoothing';
  77539. end;
  77540. class function TJSCanvasImageSmoothing.Cast(const Intf: IJSObject): IJSCanvasImageSmoothing;
  77541. begin
  77542. Result:=TJSCanvasImageSmoothing.JOBCast(Intf);
  77543. end;
  77544. function TJSCanvasFillStrokeStyles._GetstrokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type;
  77545. begin
  77546. Result:=ReadJSPropertyVariant('strokeStyle');
  77547. end;
  77548. function TJSCanvasFillStrokeStyles._GetfillStyle: TCanvasFillStrokeStyles_fillStyle_Type;
  77549. begin
  77550. Result:=ReadJSPropertyVariant('fillStyle');
  77551. end;
  77552. procedure TJSCanvasFillStrokeStyles._SetstrokeStyle(const aValue : TCanvasFillStrokeStyles_strokeStyle_Type);
  77553. begin
  77554. WriteJSPropertyVariant('strokeStyle',aValue);
  77555. end;
  77556. procedure TJSCanvasFillStrokeStyles._SetfillStyle(const aValue : TCanvasFillStrokeStyles_fillStyle_Type);
  77557. begin
  77558. WriteJSPropertyVariant('fillStyle',aValue);
  77559. end;
  77560. function TJSCanvasFillStrokeStyles.createLinearGradient(aX0: Double; aY0: Double; aX1: Double; aY1: Double): IJSCanvasGradient;
  77561. begin
  77562. Result:=InvokeJSObjectResult('createLinearGradient',[aX0,aY0,aX1,aY1],TJSCanvasGradient) as IJSCanvasGradient;
  77563. end;
  77564. function TJSCanvasFillStrokeStyles.createRadialGradient(aX0: Double; aY0: Double; aR0: Double; aX1: Double; aY1: Double; aR1: Double): IJSCanvasGradient;
  77565. begin
  77566. Result:=InvokeJSObjectResult('createRadialGradient',[aX0,aY0,aR0,aX1,aY1,aR1],TJSCanvasGradient) as IJSCanvasGradient;
  77567. end;
  77568. function TJSCanvasFillStrokeStyles.createConicGradient(aAngle: Double; aCx: Double; aCy: Double): IJSCanvasGradient;
  77569. begin
  77570. Result:=InvokeJSObjectResult('createConicGradient',[aAngle,aCx,aCy],TJSCanvasGradient) as IJSCanvasGradient;
  77571. end;
  77572. function TJSCanvasFillStrokeStyles.createPattern(aImage: IJSHTMLCanvasElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  77573. begin
  77574. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77575. end;
  77576. function TJSCanvasFillStrokeStyles.createPattern(const aImage: THTMLOrSVGImageElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  77577. begin
  77578. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77579. end;
  77580. function TJSCanvasFillStrokeStyles.createPattern(aImage: IJSHTMLVideoElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  77581. begin
  77582. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77583. end;
  77584. function TJSCanvasFillStrokeStyles.createPattern(aImage: IJSImageBitmap; const aRepetition: UnicodeString): IJSCanvasPattern;
  77585. begin
  77586. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77587. end;
  77588. function TJSCanvasFillStrokeStyles.createPattern(aImage: IJSOffscreenCanvas; const aRepetition: UnicodeString): IJSCanvasPattern;
  77589. begin
  77590. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77591. end;
  77592. function TJSCanvasFillStrokeStyles.createPattern(aImage: IJSVideoFrame; const aRepetition: UnicodeString): IJSCanvasPattern;
  77593. begin
  77594. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  77595. end;
  77596. class function TJSCanvasFillStrokeStyles.JSClassName: UnicodeString;
  77597. begin
  77598. Result:='CanvasFillStrokeStyles';
  77599. end;
  77600. class function TJSCanvasFillStrokeStyles.Cast(const Intf: IJSObject): IJSCanvasFillStrokeStyles;
  77601. begin
  77602. Result:=TJSCanvasFillStrokeStyles.JOBCast(Intf);
  77603. end;
  77604. function TJSCanvasShadowStyles._GetshadowOffsetX: Double;
  77605. begin
  77606. Result:=ReadJSPropertyDouble('shadowOffsetX');
  77607. end;
  77608. function TJSCanvasShadowStyles._GetshadowOffsetY: Double;
  77609. begin
  77610. Result:=ReadJSPropertyDouble('shadowOffsetY');
  77611. end;
  77612. function TJSCanvasShadowStyles._GetshadowBlur: Double;
  77613. begin
  77614. Result:=ReadJSPropertyDouble('shadowBlur');
  77615. end;
  77616. function TJSCanvasShadowStyles._GetshadowColor: UTF8String;
  77617. begin
  77618. Result:=ReadJSPropertyUTF8String('shadowColor');
  77619. end;
  77620. procedure TJSCanvasShadowStyles._SetshadowOffsetX(const aValue : Double);
  77621. begin
  77622. WriteJSPropertyDouble('shadowOffsetX',aValue);
  77623. end;
  77624. procedure TJSCanvasShadowStyles._SetshadowOffsetY(const aValue : Double);
  77625. begin
  77626. WriteJSPropertyDouble('shadowOffsetY',aValue);
  77627. end;
  77628. procedure TJSCanvasShadowStyles._SetshadowBlur(const aValue : Double);
  77629. begin
  77630. WriteJSPropertyDouble('shadowBlur',aValue);
  77631. end;
  77632. procedure TJSCanvasShadowStyles._SetshadowColor(const aValue : UTF8String);
  77633. begin
  77634. WriteJSPropertyUTF8String('shadowColor',aValue);
  77635. end;
  77636. class function TJSCanvasShadowStyles.JSClassName: UnicodeString;
  77637. begin
  77638. Result:='CanvasShadowStyles';
  77639. end;
  77640. class function TJSCanvasShadowStyles.Cast(const Intf: IJSObject): IJSCanvasShadowStyles;
  77641. begin
  77642. Result:=TJSCanvasShadowStyles.JOBCast(Intf);
  77643. end;
  77644. function TJSCanvasFilters._Getfilter: UTF8String;
  77645. begin
  77646. Result:=ReadJSPropertyUTF8String('filter');
  77647. end;
  77648. procedure TJSCanvasFilters._Setfilter(const aValue : UTF8String);
  77649. begin
  77650. WriteJSPropertyUTF8String('filter',aValue);
  77651. end;
  77652. class function TJSCanvasFilters.JSClassName: UnicodeString;
  77653. begin
  77654. Result:='CanvasFilters';
  77655. end;
  77656. class function TJSCanvasFilters.Cast(const Intf: IJSObject): IJSCanvasFilters;
  77657. begin
  77658. Result:=TJSCanvasFilters.JOBCast(Intf);
  77659. end;
  77660. procedure TJSCanvasRect.clearRect(aX: Double; aY: Double; aW: Double; aH: Double);
  77661. begin
  77662. InvokeJSNoResult('clearRect',[aX,aY,aW,aH]);
  77663. end;
  77664. procedure TJSCanvasRect.fillRect(aX: Double; aY: Double; aW: Double; aH: Double);
  77665. begin
  77666. InvokeJSNoResult('fillRect',[aX,aY,aW,aH]);
  77667. end;
  77668. procedure TJSCanvasRect.strokeRect(aX: Double; aY: Double; aW: Double; aH: Double);
  77669. begin
  77670. InvokeJSNoResult('strokeRect',[aX,aY,aW,aH]);
  77671. end;
  77672. class function TJSCanvasRect.JSClassName: UnicodeString;
  77673. begin
  77674. Result:='CanvasRect';
  77675. end;
  77676. class function TJSCanvasRect.Cast(const Intf: IJSObject): IJSCanvasRect;
  77677. begin
  77678. Result:=TJSCanvasRect.JOBCast(Intf);
  77679. end;
  77680. procedure TJSCanvasDrawPath.beginPath;
  77681. begin
  77682. InvokeJSNoResult('beginPath',[]);
  77683. end;
  77684. procedure TJSCanvasDrawPath.fill(aWinding: TCanvasWindingRule);
  77685. begin
  77686. InvokeJSNoResult('fill',[aWinding]);
  77687. end;
  77688. procedure TJSCanvasDrawPath.fill;
  77689. begin
  77690. InvokeJSNoResult('fill',[]);
  77691. end;
  77692. procedure TJSCanvasDrawPath.fill(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  77693. begin
  77694. InvokeJSNoResult('fill',[aPath,aWinding]);
  77695. end;
  77696. procedure TJSCanvasDrawPath.fill(aPath: IJSPath2D);
  77697. begin
  77698. InvokeJSNoResult('fill',[aPath]);
  77699. end;
  77700. procedure TJSCanvasDrawPath.stroke;
  77701. begin
  77702. InvokeJSNoResult('stroke',[]);
  77703. end;
  77704. procedure TJSCanvasDrawPath.stroke(aPath: IJSPath2D);
  77705. begin
  77706. InvokeJSNoResult('stroke',[aPath]);
  77707. end;
  77708. procedure TJSCanvasDrawPath.clip(aWinding: TCanvasWindingRule);
  77709. begin
  77710. InvokeJSNoResult('clip',[aWinding]);
  77711. end;
  77712. procedure TJSCanvasDrawPath.clip;
  77713. begin
  77714. InvokeJSNoResult('clip',[]);
  77715. end;
  77716. procedure TJSCanvasDrawPath.clip(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  77717. begin
  77718. InvokeJSNoResult('clip',[aPath,aWinding]);
  77719. end;
  77720. procedure TJSCanvasDrawPath.clip(aPath: IJSPath2D);
  77721. begin
  77722. InvokeJSNoResult('clip',[aPath]);
  77723. end;
  77724. function TJSCanvasDrawPath.isPointInPath(aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  77725. begin
  77726. Result:=InvokeJSBooleanResult('isPointInPath',[aX,aY,aWinding]);
  77727. end;
  77728. function TJSCanvasDrawPath.isPointInPath(aX: Double; aY: Double): Boolean;
  77729. begin
  77730. Result:=InvokeJSBooleanResult('isPointInPath',[aX,aY]);
  77731. end;
  77732. function TJSCanvasDrawPath.isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  77733. begin
  77734. Result:=InvokeJSBooleanResult('isPointInPath',[aPath,aX,aY,aWinding]);
  77735. end;
  77736. function TJSCanvasDrawPath.isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  77737. begin
  77738. Result:=InvokeJSBooleanResult('isPointInPath',[aPath,aX,aY]);
  77739. end;
  77740. function TJSCanvasDrawPath.isPointInStroke(aX: Double; aY: Double): Boolean;
  77741. begin
  77742. Result:=InvokeJSBooleanResult('isPointInStroke',[aX,aY]);
  77743. end;
  77744. function TJSCanvasDrawPath.isPointInStroke(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  77745. begin
  77746. Result:=InvokeJSBooleanResult('isPointInStroke',[aPath,aX,aY]);
  77747. end;
  77748. class function TJSCanvasDrawPath.JSClassName: UnicodeString;
  77749. begin
  77750. Result:='CanvasDrawPath';
  77751. end;
  77752. class function TJSCanvasDrawPath.Cast(const Intf: IJSObject): IJSCanvasDrawPath;
  77753. begin
  77754. Result:=TJSCanvasDrawPath.JOBCast(Intf);
  77755. end;
  77756. procedure TJSCanvasUserInterface.drawFocusIfNeeded(aElement: IJSElement);
  77757. begin
  77758. InvokeJSNoResult('drawFocusIfNeeded',[aElement]);
  77759. end;
  77760. class function TJSCanvasUserInterface.JSClassName: UnicodeString;
  77761. begin
  77762. Result:='CanvasUserInterface';
  77763. end;
  77764. class function TJSCanvasUserInterface.Cast(const Intf: IJSObject): IJSCanvasUserInterface;
  77765. begin
  77766. Result:=TJSCanvasUserInterface.JOBCast(Intf);
  77767. end;
  77768. procedure TJSCanvasText.fillText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  77769. begin
  77770. InvokeJSNoResult('fillText',[aText,aX,aY,aMaxWidth]);
  77771. end;
  77772. procedure TJSCanvasText.fillText(const aText: UnicodeString; aX: Double; aY: Double);
  77773. begin
  77774. InvokeJSNoResult('fillText',[aText,aX,aY]);
  77775. end;
  77776. procedure TJSCanvasText.strokeText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  77777. begin
  77778. InvokeJSNoResult('strokeText',[aText,aX,aY,aMaxWidth]);
  77779. end;
  77780. procedure TJSCanvasText.strokeText(const aText: UnicodeString; aX: Double; aY: Double);
  77781. begin
  77782. InvokeJSNoResult('strokeText',[aText,aX,aY]);
  77783. end;
  77784. function TJSCanvasText.measureText(const aText: UnicodeString): IJSTextMetrics;
  77785. begin
  77786. Result:=InvokeJSObjectResult('measureText',[aText],TJSTextMetrics) as IJSTextMetrics;
  77787. end;
  77788. class function TJSCanvasText.JSClassName: UnicodeString;
  77789. begin
  77790. Result:='CanvasText';
  77791. end;
  77792. class function TJSCanvasText.Cast(const Intf: IJSObject): IJSCanvasText;
  77793. begin
  77794. Result:=TJSCanvasText.JOBCast(Intf);
  77795. end;
  77796. procedure TJSCanvasDrawImage.drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double);
  77797. begin
  77798. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77799. end;
  77800. procedure TJSCanvasDrawImage.drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double);
  77801. begin
  77802. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77803. end;
  77804. procedure TJSCanvasDrawImage.drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double);
  77805. begin
  77806. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77807. end;
  77808. procedure TJSCanvasDrawImage.drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double);
  77809. begin
  77810. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77811. end;
  77812. procedure TJSCanvasDrawImage.drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double);
  77813. begin
  77814. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77815. end;
  77816. procedure TJSCanvasDrawImage.drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double);
  77817. begin
  77818. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  77819. end;
  77820. procedure TJSCanvasDrawImage.drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77821. begin
  77822. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77823. end;
  77824. procedure TJSCanvasDrawImage.drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77825. begin
  77826. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77827. end;
  77828. procedure TJSCanvasDrawImage.drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77829. begin
  77830. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77831. end;
  77832. procedure TJSCanvasDrawImage.drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77833. begin
  77834. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77835. end;
  77836. procedure TJSCanvasDrawImage.drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77837. begin
  77838. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77839. end;
  77840. procedure TJSCanvasDrawImage.drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77841. begin
  77842. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  77843. end;
  77844. procedure TJSCanvasDrawImage.drawImage(aImage: IJSHTMLCanvasElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77845. begin
  77846. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77847. end;
  77848. procedure TJSCanvasDrawImage.drawImage(const aImage: THTMLOrSVGImageElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77849. begin
  77850. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77851. end;
  77852. procedure TJSCanvasDrawImage.drawImage(aImage: IJSHTMLVideoElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77853. begin
  77854. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77855. end;
  77856. procedure TJSCanvasDrawImage.drawImage(aImage: IJSImageBitmap; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77857. begin
  77858. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77859. end;
  77860. procedure TJSCanvasDrawImage.drawImage(aImage: IJSOffscreenCanvas; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77861. begin
  77862. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77863. end;
  77864. procedure TJSCanvasDrawImage.drawImage(aImage: IJSVideoFrame; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  77865. begin
  77866. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  77867. end;
  77868. class function TJSCanvasDrawImage.JSClassName: UnicodeString;
  77869. begin
  77870. Result:='CanvasDrawImage';
  77871. end;
  77872. class function TJSCanvasDrawImage.Cast(const Intf: IJSObject): IJSCanvasDrawImage;
  77873. begin
  77874. Result:=TJSCanvasDrawImage.JOBCast(Intf);
  77875. end;
  77876. function TJSCanvasImageData.createImageData(aSw: LongInt; aSh: LongInt): IJSImageData;
  77877. begin
  77878. Result:=InvokeJSObjectResult('createImageData',[aSw,aSh],TJSImageData) as IJSImageData;
  77879. end;
  77880. function TJSCanvasImageData.createImageData(aImagedata: IJSImageData): IJSImageData;
  77881. begin
  77882. Result:=InvokeJSObjectResult('createImageData',[aImagedata],TJSImageData) as IJSImageData;
  77883. end;
  77884. function TJSCanvasImageData.getImageData(aSx: LongInt; aSy: LongInt; aSw: LongInt; aSh: LongInt): IJSImageData;
  77885. begin
  77886. Result:=InvokeJSObjectResult('getImageData',[aSx,aSy,aSw,aSh],TJSImageData) as IJSImageData;
  77887. end;
  77888. procedure TJSCanvasImageData.putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt);
  77889. begin
  77890. InvokeJSNoResult('putImageData',[aImagedata,aDx,aDy]);
  77891. end;
  77892. procedure TJSCanvasImageData.putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt; aDirtyX: LongInt; aDirtyY: LongInt; aDirtyWidth: LongInt; aDirtyHeight: LongInt);
  77893. begin
  77894. InvokeJSNoResult('putImageData',[aImagedata,aDx,aDy,aDirtyX,aDirtyY,aDirtyWidth,aDirtyHeight]);
  77895. end;
  77896. class function TJSCanvasImageData.JSClassName: UnicodeString;
  77897. begin
  77898. Result:='CanvasImageData';
  77899. end;
  77900. class function TJSCanvasImageData.Cast(const Intf: IJSObject): IJSCanvasImageData;
  77901. begin
  77902. Result:=TJSCanvasImageData.JOBCast(Intf);
  77903. end;
  77904. function TJSCanvasPathDrawingStyles._GetlineWidth: Double;
  77905. begin
  77906. Result:=ReadJSPropertyDouble('lineWidth');
  77907. end;
  77908. function TJSCanvasPathDrawingStyles._GetlineCap: TCanvasLineCap;
  77909. begin
  77910. Result:=ReadJSPropertyUnicodeString('lineCap');
  77911. end;
  77912. function TJSCanvasPathDrawingStyles._GetlineJoin: TCanvasLineJoin;
  77913. begin
  77914. Result:=ReadJSPropertyUnicodeString('lineJoin');
  77915. end;
  77916. function TJSCanvasPathDrawingStyles._GetmiterLimit: Double;
  77917. begin
  77918. Result:=ReadJSPropertyDouble('miterLimit');
  77919. end;
  77920. function TJSCanvasPathDrawingStyles._GetlineDashOffset: Double;
  77921. begin
  77922. Result:=ReadJSPropertyDouble('lineDashOffset');
  77923. end;
  77924. procedure TJSCanvasPathDrawingStyles._SetlineWidth(const aValue : Double);
  77925. begin
  77926. WriteJSPropertyDouble('lineWidth',aValue);
  77927. end;
  77928. procedure TJSCanvasPathDrawingStyles._SetlineCap(const aValue : TCanvasLineCap);
  77929. begin
  77930. WriteJSPropertyUnicodeString('lineCap',aValue);
  77931. end;
  77932. procedure TJSCanvasPathDrawingStyles._SetlineJoin(const aValue : TCanvasLineJoin);
  77933. begin
  77934. WriteJSPropertyUnicodeString('lineJoin',aValue);
  77935. end;
  77936. procedure TJSCanvasPathDrawingStyles._SetmiterLimit(const aValue : Double);
  77937. begin
  77938. WriteJSPropertyDouble('miterLimit',aValue);
  77939. end;
  77940. procedure TJSCanvasPathDrawingStyles._SetlineDashOffset(const aValue : Double);
  77941. begin
  77942. WriteJSPropertyDouble('lineDashOffset',aValue);
  77943. end;
  77944. procedure TJSCanvasPathDrawingStyles.setLineDash(const aSegments: TDoubleDynArray);
  77945. begin
  77946. InvokeJSNoResult('setLineDash',[aSegments]);
  77947. end;
  77948. function TJSCanvasPathDrawingStyles.getLineDash: TDoubleDynArray;
  77949. begin
  77950. Result:=InvokeJSObjectResult('getLineDash',[],TJSArray) as TDoubleDynArray;
  77951. end;
  77952. class function TJSCanvasPathDrawingStyles.JSClassName: UnicodeString;
  77953. begin
  77954. Result:='CanvasPathDrawingStyles';
  77955. end;
  77956. class function TJSCanvasPathDrawingStyles.Cast(const Intf: IJSObject): IJSCanvasPathDrawingStyles;
  77957. begin
  77958. Result:=TJSCanvasPathDrawingStyles.JOBCast(Intf);
  77959. end;
  77960. function TJSCanvasTextDrawingStyles._Getfont: UTF8String;
  77961. begin
  77962. Result:=ReadJSPropertyUTF8String('font');
  77963. end;
  77964. function TJSCanvasTextDrawingStyles._GettextAlign: TCanvasTextAlign;
  77965. begin
  77966. Result:=ReadJSPropertyUnicodeString('textAlign');
  77967. end;
  77968. function TJSCanvasTextDrawingStyles._GettextBaseline: TCanvasTextBaseline;
  77969. begin
  77970. Result:=ReadJSPropertyUnicodeString('textBaseline');
  77971. end;
  77972. function TJSCanvasTextDrawingStyles._Getdirection: TCanvasDirection;
  77973. begin
  77974. Result:=ReadJSPropertyUnicodeString('direction');
  77975. end;
  77976. function TJSCanvasTextDrawingStyles._GetletterSpacing: UTF8String;
  77977. begin
  77978. Result:=ReadJSPropertyUTF8String('letterSpacing');
  77979. end;
  77980. function TJSCanvasTextDrawingStyles._GetfontKerning: TCanvasFontKerning;
  77981. begin
  77982. Result:=ReadJSPropertyUnicodeString('fontKerning');
  77983. end;
  77984. function TJSCanvasTextDrawingStyles._GetfontStretch: TCanvasFontStretch;
  77985. begin
  77986. Result:=ReadJSPropertyUnicodeString('fontStretch');
  77987. end;
  77988. function TJSCanvasTextDrawingStyles._GetfontVariantCaps: TCanvasFontVariantCaps;
  77989. begin
  77990. Result:=ReadJSPropertyUnicodeString('fontVariantCaps');
  77991. end;
  77992. function TJSCanvasTextDrawingStyles._GettextRendering: TCanvasTextRendering;
  77993. begin
  77994. Result:=ReadJSPropertyUnicodeString('textRendering');
  77995. end;
  77996. function TJSCanvasTextDrawingStyles._GetwordSpacing: UTF8String;
  77997. begin
  77998. Result:=ReadJSPropertyUTF8String('wordSpacing');
  77999. end;
  78000. procedure TJSCanvasTextDrawingStyles._Setfont(const aValue : UTF8String);
  78001. begin
  78002. WriteJSPropertyUTF8String('font',aValue);
  78003. end;
  78004. procedure TJSCanvasTextDrawingStyles._SettextAlign(const aValue : TCanvasTextAlign);
  78005. begin
  78006. WriteJSPropertyUnicodeString('textAlign',aValue);
  78007. end;
  78008. procedure TJSCanvasTextDrawingStyles._SettextBaseline(const aValue : TCanvasTextBaseline);
  78009. begin
  78010. WriteJSPropertyUnicodeString('textBaseline',aValue);
  78011. end;
  78012. procedure TJSCanvasTextDrawingStyles._Setdirection(const aValue : TCanvasDirection);
  78013. begin
  78014. WriteJSPropertyUnicodeString('direction',aValue);
  78015. end;
  78016. procedure TJSCanvasTextDrawingStyles._SetletterSpacing(const aValue : UTF8String);
  78017. begin
  78018. WriteJSPropertyUTF8String('letterSpacing',aValue);
  78019. end;
  78020. procedure TJSCanvasTextDrawingStyles._SetfontKerning(const aValue : TCanvasFontKerning);
  78021. begin
  78022. WriteJSPropertyUnicodeString('fontKerning',aValue);
  78023. end;
  78024. procedure TJSCanvasTextDrawingStyles._SetfontStretch(const aValue : TCanvasFontStretch);
  78025. begin
  78026. WriteJSPropertyUnicodeString('fontStretch',aValue);
  78027. end;
  78028. procedure TJSCanvasTextDrawingStyles._SetfontVariantCaps(const aValue : TCanvasFontVariantCaps);
  78029. begin
  78030. WriteJSPropertyUnicodeString('fontVariantCaps',aValue);
  78031. end;
  78032. procedure TJSCanvasTextDrawingStyles._SettextRendering(const aValue : TCanvasTextRendering);
  78033. begin
  78034. WriteJSPropertyUnicodeString('textRendering',aValue);
  78035. end;
  78036. procedure TJSCanvasTextDrawingStyles._SetwordSpacing(const aValue : UTF8String);
  78037. begin
  78038. WriteJSPropertyUTF8String('wordSpacing',aValue);
  78039. end;
  78040. class function TJSCanvasTextDrawingStyles.JSClassName: UnicodeString;
  78041. begin
  78042. Result:='CanvasTextDrawingStyles';
  78043. end;
  78044. class function TJSCanvasTextDrawingStyles.Cast(const Intf: IJSObject): IJSCanvasTextDrawingStyles;
  78045. begin
  78046. Result:=TJSCanvasTextDrawingStyles.JOBCast(Intf);
  78047. end;
  78048. procedure TJSCanvasPathMethods.closePath;
  78049. begin
  78050. InvokeJSNoResult('closePath',[]);
  78051. end;
  78052. procedure TJSCanvasPathMethods.moveTo(aX: Double; aY: Double);
  78053. begin
  78054. InvokeJSNoResult('moveTo',[aX,aY]);
  78055. end;
  78056. procedure TJSCanvasPathMethods.lineTo(aX: Double; aY: Double);
  78057. begin
  78058. InvokeJSNoResult('lineTo',[aX,aY]);
  78059. end;
  78060. procedure TJSCanvasPathMethods.quadraticCurveTo(aCpx: Double; aCpy: Double; aX: Double; aY: Double);
  78061. begin
  78062. InvokeJSNoResult('quadraticCurveTo',[aCpx,aCpy,aX,aY]);
  78063. end;
  78064. procedure TJSCanvasPathMethods.bezierCurveTo(aCp1x: Double; aCp1y: Double; aCp2x: Double; aCp2y: Double; aX: Double; aY: Double);
  78065. begin
  78066. InvokeJSNoResult('bezierCurveTo',[aCp1x,aCp1y,aCp2x,aCp2y,aX,aY]);
  78067. end;
  78068. procedure TJSCanvasPathMethods.arcTo(aX1: Double; aY1: Double; aX2: Double; aY2: Double; aRadius: Double);
  78069. begin
  78070. InvokeJSNoResult('arcTo',[aX1,aY1,aX2,aY2,aRadius]);
  78071. end;
  78072. procedure TJSCanvasPathMethods.rect(aX: Double; aY: Double; aW: Double; aH: Double);
  78073. begin
  78074. InvokeJSNoResult('rect',[aX,aY,aW,aH]);
  78075. end;
  78076. procedure TJSCanvasPathMethods.roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TJSDOMPointInit);
  78077. begin
  78078. InvokeJSNoResult('roundRect',[aX,aY,aW,aH,aRadii]);
  78079. end;
  78080. procedure TJSCanvasPathMethods.roundRect(aX: Double; aY: Double; aW: Double; aH: Double);
  78081. begin
  78082. InvokeJSNoResult('roundRect',[aX,aY,aW,aH]);
  78083. end;
  78084. procedure TJSCanvasPathMethods.roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TunionDynArray);
  78085. begin
  78086. InvokeJSNoResult('roundRect',[aX,aY,aW,aH,aRadii]);
  78087. end;
  78088. procedure TJSCanvasPathMethods.roundRect(aX: Double; aY: Double; aW: Double; aH: Double; aRadii: Double);
  78089. begin
  78090. InvokeJSNoResult('roundRect',[aX,aY,aW,aH,aRadii]);
  78091. end;
  78092. procedure TJSCanvasPathMethods.arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  78093. begin
  78094. InvokeJSNoResult('arc',[aX,aY,aRadius,aStartAngle,aEndAngle,aAnticlockwise]);
  78095. end;
  78096. procedure TJSCanvasPathMethods.arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double);
  78097. begin
  78098. InvokeJSNoResult('arc',[aX,aY,aRadius,aStartAngle,aEndAngle]);
  78099. end;
  78100. procedure TJSCanvasPathMethods.ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  78101. begin
  78102. InvokeJSNoResult('ellipse',[aX,aY,aRadiusX,aRadiusY,aRotation,aStartAngle,aEndAngle,aAnticlockwise]);
  78103. end;
  78104. procedure TJSCanvasPathMethods.ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double);
  78105. begin
  78106. InvokeJSNoResult('ellipse',[aX,aY,aRadiusX,aRadiusY,aRotation,aStartAngle,aEndAngle]);
  78107. end;
  78108. class function TJSCanvasPathMethods.JSClassName: UnicodeString;
  78109. begin
  78110. Result:='CanvasPathMethods';
  78111. end;
  78112. class function TJSCanvasPathMethods.Cast(const Intf: IJSObject): IJSCanvasPathMethods;
  78113. begin
  78114. Result:=TJSCanvasPathMethods.JOBCast(Intf);
  78115. end;
  78116. procedure TJSCanvasGradient.addColorStop(aOffset: Single; const aColor: UTF8String);
  78117. begin
  78118. InvokeJSNoResult('addColorStop',[aOffset,aColor]);
  78119. end;
  78120. class function TJSCanvasGradient.JSClassName: UnicodeString;
  78121. begin
  78122. Result:='CanvasGradient';
  78123. end;
  78124. class function TJSCanvasGradient.Cast(const Intf: IJSObject): IJSCanvasGradient;
  78125. begin
  78126. Result:=TJSCanvasGradient.JOBCast(Intf);
  78127. end;
  78128. procedure TJSCanvasPattern.setTransform(const aMatrix: TJSDOMMatrix2DInit);
  78129. begin
  78130. InvokeJSNoResult('setTransform',[aMatrix]);
  78131. end;
  78132. procedure TJSCanvasPattern.setTransform;
  78133. begin
  78134. InvokeJSNoResult('setTransform',[]);
  78135. end;
  78136. class function TJSCanvasPattern.JSClassName: UnicodeString;
  78137. begin
  78138. Result:='CanvasPattern';
  78139. end;
  78140. class function TJSCanvasPattern.Cast(const Intf: IJSObject): IJSCanvasPattern;
  78141. begin
  78142. Result:=TJSCanvasPattern.JOBCast(Intf);
  78143. end;
  78144. function TJSTextMetrics._Getwidth: Double;
  78145. begin
  78146. Result:=ReadJSPropertyDouble('width');
  78147. end;
  78148. function TJSTextMetrics._GetactualBoundingBoxLeft: Double;
  78149. begin
  78150. Result:=ReadJSPropertyDouble('actualBoundingBoxLeft');
  78151. end;
  78152. function TJSTextMetrics._GetactualBoundingBoxRight: Double;
  78153. begin
  78154. Result:=ReadJSPropertyDouble('actualBoundingBoxRight');
  78155. end;
  78156. function TJSTextMetrics._GetfontBoundingBoxAscent: Double;
  78157. begin
  78158. Result:=ReadJSPropertyDouble('fontBoundingBoxAscent');
  78159. end;
  78160. function TJSTextMetrics._GetfontBoundingBoxDescent: Double;
  78161. begin
  78162. Result:=ReadJSPropertyDouble('fontBoundingBoxDescent');
  78163. end;
  78164. function TJSTextMetrics._GetactualBoundingBoxAscent: Double;
  78165. begin
  78166. Result:=ReadJSPropertyDouble('actualBoundingBoxAscent');
  78167. end;
  78168. function TJSTextMetrics._GetactualBoundingBoxDescent: Double;
  78169. begin
  78170. Result:=ReadJSPropertyDouble('actualBoundingBoxDescent');
  78171. end;
  78172. function TJSTextMetrics._GetemHeightAscent: Double;
  78173. begin
  78174. Result:=ReadJSPropertyDouble('emHeightAscent');
  78175. end;
  78176. function TJSTextMetrics._GetemHeightDescent: Double;
  78177. begin
  78178. Result:=ReadJSPropertyDouble('emHeightDescent');
  78179. end;
  78180. function TJSTextMetrics._GethangingBaseline: Double;
  78181. begin
  78182. Result:=ReadJSPropertyDouble('hangingBaseline');
  78183. end;
  78184. function TJSTextMetrics._GetalphabeticBaseline: Double;
  78185. begin
  78186. Result:=ReadJSPropertyDouble('alphabeticBaseline');
  78187. end;
  78188. function TJSTextMetrics._GetideographicBaseline: Double;
  78189. begin
  78190. Result:=ReadJSPropertyDouble('ideographicBaseline');
  78191. end;
  78192. class function TJSTextMetrics.JSClassName: UnicodeString;
  78193. begin
  78194. Result:='TextMetrics';
  78195. end;
  78196. class function TJSTextMetrics.Cast(const Intf: IJSObject): IJSTextMetrics;
  78197. begin
  78198. Result:=TJSTextMetrics.JOBCast(Intf);
  78199. end;
  78200. constructor TJSPath2D.Create;
  78201. begin
  78202. JOBCreate([]);
  78203. end;
  78204. constructor TJSPath2D.Create(aOther: IJSPath2D);
  78205. begin
  78206. JOBCreate([aOther]);
  78207. end;
  78208. constructor TJSPath2D.Create(const aPathString: UnicodeString);
  78209. begin
  78210. JOBCreate([aPathString]);
  78211. end;
  78212. procedure TJSPath2D.addPath(aPath: IJSPath2D; const aTransform: TJSDOMMatrix2DInit);
  78213. begin
  78214. InvokeJSNoResult('addPath',[aPath,aTransform]);
  78215. end;
  78216. procedure TJSPath2D.addPath(aPath: IJSPath2D);
  78217. begin
  78218. InvokeJSNoResult('addPath',[aPath]);
  78219. end;
  78220. class function TJSPath2D.JSClassName: UnicodeString;
  78221. begin
  78222. Result:='Path2D';
  78223. end;
  78224. class function TJSPath2D.Cast(const Intf: IJSObject): IJSPath2D;
  78225. begin
  78226. Result:=TJSPath2D.JOBCast(Intf);
  78227. end;
  78228. function TJSCaretPosition._GetoffsetNode: IJSNode;
  78229. begin
  78230. Result:=ReadJSPropertyObject('offsetNode',TJSNode) as IJSNode;
  78231. end;
  78232. function TJSCaretPosition._Getoffset: Cardinal;
  78233. begin
  78234. Result:=ReadJSPropertyInt64('offset');
  78235. end;
  78236. function TJSCaretPosition.getClientRect: IJSDOMRect;
  78237. begin
  78238. Result:=InvokeJSObjectResult('getClientRect',[],TJSDOMRect) as IJSDOMRect;
  78239. end;
  78240. class function TJSCaretPosition.JSClassName: UnicodeString;
  78241. begin
  78242. Result:='CaretPosition';
  78243. end;
  78244. class function TJSCaretPosition.Cast(const Intf: IJSObject): IJSCaretPosition;
  78245. begin
  78246. Result:=TJSCaretPosition.JOBCast(Intf);
  78247. end;
  78248. function TJSCaretStateChangedEventInit._Getcollapsed: Boolean;
  78249. begin
  78250. Result:=ReadJSPropertyBoolean('collapsed');
  78251. end;
  78252. function TJSCaretStateChangedEventInit._GetboundingClientRect: IJSDOMRectReadOnly;
  78253. begin
  78254. Result:=ReadJSPropertyObject('boundingClientRect',TJSDOMRectReadOnly) as IJSDOMRectReadOnly;
  78255. end;
  78256. function TJSCaretStateChangedEventInit._Getreason: TCaretChangedReason;
  78257. begin
  78258. Result:=ReadJSPropertyUnicodeString('reason');
  78259. end;
  78260. function TJSCaretStateChangedEventInit._GetcaretVisible: Boolean;
  78261. begin
  78262. Result:=ReadJSPropertyBoolean('caretVisible');
  78263. end;
  78264. function TJSCaretStateChangedEventInit._GetcaretVisuallyVisible: Boolean;
  78265. begin
  78266. Result:=ReadJSPropertyBoolean('caretVisuallyVisible');
  78267. end;
  78268. function TJSCaretStateChangedEventInit._GetselectionVisible: Boolean;
  78269. begin
  78270. Result:=ReadJSPropertyBoolean('selectionVisible');
  78271. end;
  78272. function TJSCaretStateChangedEventInit._GetselectionEditable: Boolean;
  78273. begin
  78274. Result:=ReadJSPropertyBoolean('selectionEditable');
  78275. end;
  78276. function TJSCaretStateChangedEventInit._GetselectedTextContent: UnicodeString;
  78277. begin
  78278. Result:=ReadJSPropertyUnicodeString('selectedTextContent');
  78279. end;
  78280. function TJSCaretStateChangedEventInit._GetclientX: LongInt;
  78281. begin
  78282. Result:=ReadJSPropertyLongInt('clientX');
  78283. end;
  78284. function TJSCaretStateChangedEventInit._GetclientY: LongInt;
  78285. begin
  78286. Result:=ReadJSPropertyLongInt('clientY');
  78287. end;
  78288. procedure TJSCaretStateChangedEventInit._Setcollapsed(const aValue : Boolean);
  78289. begin
  78290. WriteJSPropertyBoolean('collapsed',aValue);
  78291. end;
  78292. procedure TJSCaretStateChangedEventInit._SetboundingClientRect(const aValue : IJSDOMRectReadOnly);
  78293. begin
  78294. WriteJSPropertyObject('boundingClientRect',aValue);
  78295. end;
  78296. procedure TJSCaretStateChangedEventInit._Setreason(const aValue : TCaretChangedReason);
  78297. begin
  78298. WriteJSPropertyUnicodeString('reason',aValue);
  78299. end;
  78300. procedure TJSCaretStateChangedEventInit._SetcaretVisible(const aValue : Boolean);
  78301. begin
  78302. WriteJSPropertyBoolean('caretVisible',aValue);
  78303. end;
  78304. procedure TJSCaretStateChangedEventInit._SetcaretVisuallyVisible(const aValue : Boolean);
  78305. begin
  78306. WriteJSPropertyBoolean('caretVisuallyVisible',aValue);
  78307. end;
  78308. procedure TJSCaretStateChangedEventInit._SetselectionVisible(const aValue : Boolean);
  78309. begin
  78310. WriteJSPropertyBoolean('selectionVisible',aValue);
  78311. end;
  78312. procedure TJSCaretStateChangedEventInit._SetselectionEditable(const aValue : Boolean);
  78313. begin
  78314. WriteJSPropertyBoolean('selectionEditable',aValue);
  78315. end;
  78316. procedure TJSCaretStateChangedEventInit._SetselectedTextContent(const aValue : UnicodeString);
  78317. begin
  78318. WriteJSPropertyUnicodeString('selectedTextContent',aValue);
  78319. end;
  78320. procedure TJSCaretStateChangedEventInit._SetclientX(const aValue : LongInt);
  78321. begin
  78322. WriteJSPropertyLongInt('clientX',aValue);
  78323. end;
  78324. procedure TJSCaretStateChangedEventInit._SetclientY(const aValue : LongInt);
  78325. begin
  78326. WriteJSPropertyLongInt('clientY',aValue);
  78327. end;
  78328. class function TJSCaretStateChangedEventInit.JSClassName: UnicodeString;
  78329. begin
  78330. Result:='Object';
  78331. end;
  78332. class function TJSCaretStateChangedEventInit.Cast(const Intf: IJSObject): IJSCaretStateChangedEventInit;
  78333. begin
  78334. Result:=TJSCaretStateChangedEventInit.JOBCast(Intf);
  78335. end;
  78336. class function TJSCDATASection.JSClassName: UnicodeString;
  78337. begin
  78338. Result:='CDATASection';
  78339. end;
  78340. class function TJSCDATASection.Cast(const Intf: IJSObject): IJSCDATASection;
  78341. begin
  78342. Result:=TJSCDATASection.JOBCast(Intf);
  78343. end;
  78344. function TJSChannelMergerOptions._GetnumberOfInputs: Cardinal;
  78345. begin
  78346. Result:=ReadJSPropertyInt64('numberOfInputs');
  78347. end;
  78348. procedure TJSChannelMergerOptions._SetnumberOfInputs(const aValue : Cardinal);
  78349. begin
  78350. WriteJSPropertyDouble('numberOfInputs',aValue);
  78351. end;
  78352. class function TJSChannelMergerOptions.JSClassName: UnicodeString;
  78353. begin
  78354. Result:='Object';
  78355. end;
  78356. class function TJSChannelMergerOptions.Cast(const Intf: IJSObject): IJSChannelMergerOptions;
  78357. begin
  78358. Result:=TJSChannelMergerOptions.JOBCast(Intf);
  78359. end;
  78360. constructor TJSChannelMergerNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSChannelMergerOptions);
  78361. begin
  78362. JOBCreate([aContext,aOptions]);
  78363. end;
  78364. constructor TJSChannelMergerNode.Create(aContext: IJSBaseAudioContext);
  78365. begin
  78366. JOBCreate([aContext]);
  78367. end;
  78368. class function TJSChannelMergerNode.JSClassName: UnicodeString;
  78369. begin
  78370. Result:='ChannelMergerNode';
  78371. end;
  78372. class function TJSChannelMergerNode.Cast(const Intf: IJSObject): IJSChannelMergerNode;
  78373. begin
  78374. Result:=TJSChannelMergerNode.JOBCast(Intf);
  78375. end;
  78376. function TJSChannelSplitterOptions._GetnumberOfOutputs: Cardinal;
  78377. begin
  78378. Result:=ReadJSPropertyInt64('numberOfOutputs');
  78379. end;
  78380. procedure TJSChannelSplitterOptions._SetnumberOfOutputs(const aValue : Cardinal);
  78381. begin
  78382. WriteJSPropertyDouble('numberOfOutputs',aValue);
  78383. end;
  78384. class function TJSChannelSplitterOptions.JSClassName: UnicodeString;
  78385. begin
  78386. Result:='Object';
  78387. end;
  78388. class function TJSChannelSplitterOptions.Cast(const Intf: IJSObject): IJSChannelSplitterOptions;
  78389. begin
  78390. Result:=TJSChannelSplitterOptions.JOBCast(Intf);
  78391. end;
  78392. constructor TJSChannelSplitterNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSChannelSplitterOptions);
  78393. begin
  78394. JOBCreate([aContext,aOptions]);
  78395. end;
  78396. constructor TJSChannelSplitterNode.Create(aContext: IJSBaseAudioContext);
  78397. begin
  78398. JOBCreate([aContext]);
  78399. end;
  78400. class function TJSChannelSplitterNode.JSClassName: UnicodeString;
  78401. begin
  78402. Result:='ChannelSplitterNode';
  78403. end;
  78404. class function TJSChannelSplitterNode.Cast(const Intf: IJSObject): IJSChannelSplitterNode;
  78405. begin
  78406. Result:=TJSChannelSplitterNode.JOBCast(Intf);
  78407. end;
  78408. function TJSCharacterData._Getdata: UnicodeString;
  78409. begin
  78410. Result:=ReadJSPropertyUnicodeString('data');
  78411. end;
  78412. function TJSCharacterData._Getlength_: Cardinal;
  78413. begin
  78414. Result:=ReadJSPropertyInt64('length');
  78415. end;
  78416. function TJSCharacterData._GetpreviousElementSibling: IJSElement;
  78417. begin
  78418. Result:=ReadJSPropertyObject('previousElementSibling',TJSElement) as IJSElement;
  78419. end;
  78420. function TJSCharacterData._GetnextElementSibling: IJSElement;
  78421. begin
  78422. Result:=ReadJSPropertyObject('nextElementSibling',TJSElement) as IJSElement;
  78423. end;
  78424. procedure TJSCharacterData._Setdata(const aValue : UnicodeString);
  78425. begin
  78426. WriteJSPropertyUnicodeString('data',aValue);
  78427. end;
  78428. function TJSCharacterData.substringData(aOffset: Cardinal; aCount: Cardinal): UnicodeString;
  78429. begin
  78430. Result:=InvokeJSUnicodeStringResult('substringData',[aOffset,aCount]);
  78431. end;
  78432. procedure TJSCharacterData.appendData(const aData: UnicodeString);
  78433. begin
  78434. InvokeJSNoResult('appendData',[aData]);
  78435. end;
  78436. procedure TJSCharacterData.insertData(aOffset: Cardinal; const aData: UnicodeString);
  78437. begin
  78438. InvokeJSNoResult('insertData',[aOffset,aData]);
  78439. end;
  78440. procedure TJSCharacterData.deleteData(aOffset: Cardinal; aCount: Cardinal);
  78441. begin
  78442. InvokeJSNoResult('deleteData',[aOffset,aCount]);
  78443. end;
  78444. procedure TJSCharacterData.replaceData(aOffset: Cardinal; aCount: Cardinal; const aData: UnicodeString);
  78445. begin
  78446. InvokeJSNoResult('replaceData',[aOffset,aCount,aData]);
  78447. end;
  78448. procedure TJSCharacterData.before(const aNodes: UnicodeString){; ToDo:varargs};
  78449. begin
  78450. InvokeJSNoResult('before',[aNodes]);
  78451. end;
  78452. procedure TJSCharacterData.before(aNodes: IJSNode){; ToDo:varargs};
  78453. begin
  78454. InvokeJSNoResult('before',[aNodes]);
  78455. end;
  78456. procedure TJSCharacterData.after(const aNodes: UnicodeString){; ToDo:varargs};
  78457. begin
  78458. InvokeJSNoResult('after',[aNodes]);
  78459. end;
  78460. procedure TJSCharacterData.after(aNodes: IJSNode){; ToDo:varargs};
  78461. begin
  78462. InvokeJSNoResult('after',[aNodes]);
  78463. end;
  78464. procedure TJSCharacterData.replaceWith(const aNodes: UnicodeString){; ToDo:varargs};
  78465. begin
  78466. InvokeJSNoResult('replaceWith',[aNodes]);
  78467. end;
  78468. procedure TJSCharacterData.replaceWith(aNodes: IJSNode){; ToDo:varargs};
  78469. begin
  78470. InvokeJSNoResult('replaceWith',[aNodes]);
  78471. end;
  78472. procedure TJSCharacterData.remove;
  78473. begin
  78474. InvokeJSNoResult('remove',[]);
  78475. end;
  78476. class function TJSCharacterData.JSClassName: UnicodeString;
  78477. begin
  78478. Result:='CharacterData';
  78479. end;
  78480. class function TJSCharacterData.Cast(const Intf: IJSObject): IJSCharacterData;
  78481. begin
  78482. Result:=TJSCharacterData.JOBCast(Intf);
  78483. end;
  78484. function TJSCheckerboardReport._Getseverity: Cardinal;
  78485. begin
  78486. Result:=ReadJSPropertyInt64('severity');
  78487. end;
  78488. function TJSCheckerboardReport._Gettimestamp: TDOMTimeStamp;
  78489. begin
  78490. Result:=ReadJSPropertyInt64('timestamp');
  78491. end;
  78492. function TJSCheckerboardReport._Getlog: UnicodeString;
  78493. begin
  78494. Result:=ReadJSPropertyUnicodeString('log');
  78495. end;
  78496. function TJSCheckerboardReport._Getreason: TCheckerboardReason;
  78497. begin
  78498. Result:=ReadJSPropertyUnicodeString('reason');
  78499. end;
  78500. procedure TJSCheckerboardReport._Setseverity(const aValue : Cardinal);
  78501. begin
  78502. WriteJSPropertyDouble('severity',aValue);
  78503. end;
  78504. procedure TJSCheckerboardReport._Settimestamp(const aValue : TDOMTimeStamp);
  78505. begin
  78506. WriteJSPropertyDouble('timestamp',aValue);
  78507. end;
  78508. procedure TJSCheckerboardReport._Setlog(const aValue : UnicodeString);
  78509. begin
  78510. WriteJSPropertyUnicodeString('log',aValue);
  78511. end;
  78512. procedure TJSCheckerboardReport._Setreason(const aValue : TCheckerboardReason);
  78513. begin
  78514. WriteJSPropertyUnicodeString('reason',aValue);
  78515. end;
  78516. class function TJSCheckerboardReport.JSClassName: UnicodeString;
  78517. begin
  78518. Result:='Object';
  78519. end;
  78520. class function TJSCheckerboardReport.Cast(const Intf: IJSObject): IJSCheckerboardReport;
  78521. begin
  78522. Result:=TJSCheckerboardReport.JOBCast(Intf);
  78523. end;
  78524. constructor TJSCheckerboardReportService.Create;
  78525. begin
  78526. JOBCreate([]);
  78527. end;
  78528. function TJSCheckerboardReportService.getReports: TJSCheckerboardReportDynArray;
  78529. begin
  78530. Result:=InvokeJSObjectResult('getReports',[],TJSArray) as TJSCheckerboardReportDynArray;
  78531. end;
  78532. function TJSCheckerboardReportService.isRecordingEnabled: Boolean;
  78533. begin
  78534. Result:=InvokeJSBooleanResult('isRecordingEnabled',[]);
  78535. end;
  78536. procedure TJSCheckerboardReportService.setRecordingEnabled(aAEnabled: Boolean);
  78537. begin
  78538. InvokeJSNoResult('setRecordingEnabled',[aAEnabled]);
  78539. end;
  78540. procedure TJSCheckerboardReportService.flushActiveReports;
  78541. begin
  78542. InvokeJSNoResult('flushActiveReports',[]);
  78543. end;
  78544. class function TJSCheckerboardReportService.JSClassName: UnicodeString;
  78545. begin
  78546. Result:='CheckerboardReportService';
  78547. end;
  78548. class function TJSCheckerboardReportService.Cast(const Intf: IJSObject): IJSCheckerboardReportService;
  78549. begin
  78550. Result:=TJSCheckerboardReportService.JOBCast(Intf);
  78551. end;
  78552. procedure TJSChildNode.before(const aNodes: UnicodeString){; ToDo:varargs};
  78553. begin
  78554. InvokeJSNoResult('before',[aNodes]);
  78555. end;
  78556. procedure TJSChildNode.before(aNodes: IJSNode){; ToDo:varargs};
  78557. begin
  78558. InvokeJSNoResult('before',[aNodes]);
  78559. end;
  78560. procedure TJSChildNode.after(const aNodes: UnicodeString){; ToDo:varargs};
  78561. begin
  78562. InvokeJSNoResult('after',[aNodes]);
  78563. end;
  78564. procedure TJSChildNode.after(aNodes: IJSNode){; ToDo:varargs};
  78565. begin
  78566. InvokeJSNoResult('after',[aNodes]);
  78567. end;
  78568. procedure TJSChildNode.replaceWith(const aNodes: UnicodeString){; ToDo:varargs};
  78569. begin
  78570. InvokeJSNoResult('replaceWith',[aNodes]);
  78571. end;
  78572. procedure TJSChildNode.replaceWith(aNodes: IJSNode){; ToDo:varargs};
  78573. begin
  78574. InvokeJSNoResult('replaceWith',[aNodes]);
  78575. end;
  78576. procedure TJSChildNode.remove;
  78577. begin
  78578. InvokeJSNoResult('remove',[]);
  78579. end;
  78580. class function TJSChildNode.JSClassName: UnicodeString;
  78581. begin
  78582. Result:='ChildNode';
  78583. end;
  78584. class function TJSChildNode.Cast(const Intf: IJSObject): IJSChildNode;
  78585. begin
  78586. Result:=TJSChildNode.JOBCast(Intf);
  78587. end;
  78588. function TJSNonDocumentTypeChildNode._GetpreviousElementSibling: IJSElement;
  78589. begin
  78590. Result:=ReadJSPropertyObject('previousElementSibling',TJSElement) as IJSElement;
  78591. end;
  78592. function TJSNonDocumentTypeChildNode._GetnextElementSibling: IJSElement;
  78593. begin
  78594. Result:=ReadJSPropertyObject('nextElementSibling',TJSElement) as IJSElement;
  78595. end;
  78596. class function TJSNonDocumentTypeChildNode.JSClassName: UnicodeString;
  78597. begin
  78598. Result:='NonDocumentTypeChildNode';
  78599. end;
  78600. class function TJSNonDocumentTypeChildNode.Cast(const Intf: IJSObject): IJSNonDocumentTypeChildNode;
  78601. begin
  78602. Result:=TJSNonDocumentTypeChildNode.JOBCast(Intf);
  78603. end;
  78604. function TJSClient._Geturl: UnicodeString;
  78605. begin
  78606. Result:=ReadJSPropertyUnicodeString('url');
  78607. end;
  78608. function TJSClient._GetframeType: TFrameType;
  78609. begin
  78610. Result:=ReadJSPropertyUnicodeString('frameType');
  78611. end;
  78612. function TJSClient._Gettype_: TClientType;
  78613. begin
  78614. Result:=ReadJSPropertyUnicodeString('type');
  78615. end;
  78616. function TJSClient._Getid: UnicodeString;
  78617. begin
  78618. Result:=ReadJSPropertyUnicodeString('id');
  78619. end;
  78620. procedure TJSClient.postMessage(const aMessage: Variant; const aTransfer: TIJSObjectDynArray);
  78621. begin
  78622. InvokeJSNoResult('postMessage',[aMessage,aTransfer]);
  78623. end;
  78624. procedure TJSClient.postMessage(const aMessage: Variant; const aAOptions: TJSStructuredSerializeOptions);
  78625. begin
  78626. InvokeJSNoResult('postMessage',[aMessage,aAOptions]);
  78627. end;
  78628. procedure TJSClient.postMessage(const aMessage: Variant);
  78629. begin
  78630. InvokeJSNoResult('postMessage',[aMessage]);
  78631. end;
  78632. class function TJSClient.JSClassName: UnicodeString;
  78633. begin
  78634. Result:='Client';
  78635. end;
  78636. class function TJSClient.Cast(const Intf: IJSObject): IJSClient;
  78637. begin
  78638. Result:=TJSClient.JOBCast(Intf);
  78639. end;
  78640. function TJSWindowClient._GetvisibilityState: TVisibilityState;
  78641. begin
  78642. Result:=ReadJSPropertyUnicodeString('visibilityState');
  78643. end;
  78644. function TJSWindowClient._Getfocused: Boolean;
  78645. begin
  78646. Result:=ReadJSPropertyBoolean('focused');
  78647. end;
  78648. function TJSWindowClient.focus: IJSPromise; // Promise<WindowClient>
  78649. begin
  78650. Result:=InvokeJSObjectResult('focus',[],TJSPromise) as IJSPromise;
  78651. end;
  78652. function TJSWindowClient.navigate(const aUrl: UnicodeString): IJSPromise; // Promise<WindowClient>
  78653. begin
  78654. Result:=InvokeJSObjectResult('navigate',[aUrl],TJSPromise) as IJSPromise;
  78655. end;
  78656. class function TJSWindowClient.JSClassName: UnicodeString;
  78657. begin
  78658. Result:='WindowClient';
  78659. end;
  78660. class function TJSWindowClient.Cast(const Intf: IJSObject): IJSWindowClient;
  78661. begin
  78662. Result:=TJSWindowClient.JOBCast(Intf);
  78663. end;
  78664. function TJSClients.get(const aId: UnicodeString): IJSPromise; // Promise<union>
  78665. begin
  78666. Result:=InvokeJSObjectResult('get',[aId],TJSPromise) as IJSPromise;
  78667. end;
  78668. function TJSClients.matchAll(const aOptions: TJSClientQueryOptions): IJSPromise; // Promise<sequence>
  78669. begin
  78670. Result:=InvokeJSObjectResult('matchAll',[aOptions],TJSPromise) as IJSPromise;
  78671. end;
  78672. function TJSClients.matchAll: IJSPromise; // Promise<sequence>
  78673. begin
  78674. Result:=InvokeJSObjectResult('matchAll',[],TJSPromise) as IJSPromise;
  78675. end;
  78676. function TJSClients.openWindow(const aUrl: UnicodeString): IJSPromise; // Promise<WindowClient>
  78677. begin
  78678. Result:=InvokeJSObjectResult('openWindow',[aUrl],TJSPromise) as IJSPromise;
  78679. end;
  78680. function TJSClients.claim: IJSPromise; // Promise<undefined>
  78681. begin
  78682. Result:=InvokeJSObjectResult('claim',[],TJSPromise) as IJSPromise;
  78683. end;
  78684. class function TJSClients.JSClassName: UnicodeString;
  78685. begin
  78686. Result:='Clients';
  78687. end;
  78688. class function TJSClients.Cast(const Intf: IJSObject): IJSClients;
  78689. begin
  78690. Result:=TJSClients.JOBCast(Intf);
  78691. end;
  78692. function TJSClientQueryOptions._GetincludeUncontrolled: Boolean;
  78693. begin
  78694. Result:=ReadJSPropertyBoolean('includeUncontrolled');
  78695. end;
  78696. function TJSClientQueryOptions._Gettype_: TClientType;
  78697. begin
  78698. Result:=ReadJSPropertyUnicodeString('type');
  78699. end;
  78700. procedure TJSClientQueryOptions._SetincludeUncontrolled(const aValue : Boolean);
  78701. begin
  78702. WriteJSPropertyBoolean('includeUncontrolled',aValue);
  78703. end;
  78704. procedure TJSClientQueryOptions._Settype_(const aValue : TClientType);
  78705. begin
  78706. WriteJSPropertyUnicodeString('type',aValue);
  78707. end;
  78708. class function TJSClientQueryOptions.JSClassName: UnicodeString;
  78709. begin
  78710. Result:='Object';
  78711. end;
  78712. class function TJSClientQueryOptions.Cast(const Intf: IJSObject): IJSClientQueryOptions;
  78713. begin
  78714. Result:=TJSClientQueryOptions.JOBCast(Intf);
  78715. end;
  78716. function TJSClipboard.read: IJSPromise; // Promise<ClipboardItems>
  78717. begin
  78718. Result:=InvokeJSObjectResult('read',[],TJSPromise) as IJSPromise;
  78719. end;
  78720. function TJSClipboard.readText: IJSPromise; // Promise<DOMString>
  78721. begin
  78722. Result:=InvokeJSObjectResult('readText',[],TJSPromise) as IJSPromise;
  78723. end;
  78724. function TJSClipboard.write(const aData: TClipboardItemsDynArray): IJSPromise; // Promise<undefined>
  78725. begin
  78726. Result:=InvokeJSObjectResult('write',[aData],TJSPromise) as IJSPromise;
  78727. end;
  78728. function TJSClipboard.writeText(const aData: UnicodeString): IJSPromise; // Promise<undefined>
  78729. begin
  78730. Result:=InvokeJSObjectResult('writeText',[aData],TJSPromise) as IJSPromise;
  78731. end;
  78732. class function TJSClipboard.JSClassName: UnicodeString;
  78733. begin
  78734. Result:='Clipboard';
  78735. end;
  78736. class function TJSClipboard.Cast(const Intf: IJSObject): IJSClipboard;
  78737. begin
  78738. Result:=TJSClipboard.JOBCast(Intf);
  78739. end;
  78740. function TJSClipboardItem._GetpresentationStyle: TPresentationStyle;
  78741. begin
  78742. Result:=ReadJSPropertyUnicodeString('presentationStyle');
  78743. end;
  78744. function TJSClipboardItem._Gettypes: TUnicodeStringDynArray;
  78745. begin
  78746. Result:=ReadJSPropertyObject('types',TJSArray) as TUnicodeStringDynArray;
  78747. end;
  78748. constructor TJSClipboardItem.Create(aItems: IJSObject; const aOptions: TJSClipboardItemOptions);
  78749. begin
  78750. JOBCreate([aItems,aOptions]);
  78751. end;
  78752. constructor TJSClipboardItem.Create(aItems: IJSObject);
  78753. begin
  78754. JOBCreate([aItems]);
  78755. end;
  78756. function TJSClipboardItem.getType(const aType_: UnicodeString): IJSPromise; // Promise<Blob>
  78757. begin
  78758. Result:=InvokeJSObjectResult('getType',[aType_],TJSPromise) as IJSPromise;
  78759. end;
  78760. class function TJSClipboardItem.JSClassName: UnicodeString;
  78761. begin
  78762. Result:='ClipboardItem';
  78763. end;
  78764. class function TJSClipboardItem.Cast(const Intf: IJSObject): IJSClipboardItem;
  78765. begin
  78766. Result:=TJSClipboardItem.JOBCast(Intf);
  78767. end;
  78768. function TJSClipboardItemOptions._GetpresentationStyle: TPresentationStyle;
  78769. begin
  78770. Result:=ReadJSPropertyUnicodeString('presentationStyle');
  78771. end;
  78772. procedure TJSClipboardItemOptions._SetpresentationStyle(const aValue : TPresentationStyle);
  78773. begin
  78774. WriteJSPropertyUnicodeString('presentationStyle',aValue);
  78775. end;
  78776. class function TJSClipboardItemOptions.JSClassName: UnicodeString;
  78777. begin
  78778. Result:='Object';
  78779. end;
  78780. class function TJSClipboardItemOptions.Cast(const Intf: IJSObject): IJSClipboardItemOptions;
  78781. begin
  78782. Result:=TJSClipboardItemOptions.JOBCast(Intf);
  78783. end;
  78784. function TJSClipboardEvent._GetclipboardData: IJSDataTransfer;
  78785. begin
  78786. Result:=ReadJSPropertyObject('clipboardData',TJSDataTransfer) as IJSDataTransfer;
  78787. end;
  78788. constructor TJSClipboardEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSClipboardEventInit);
  78789. begin
  78790. JOBCreate([aType_,aEventInitDict]);
  78791. end;
  78792. constructor TJSClipboardEvent.Create(const aType_: UnicodeString);
  78793. begin
  78794. JOBCreate([aType_]);
  78795. end;
  78796. class function TJSClipboardEvent.JSClassName: UnicodeString;
  78797. begin
  78798. Result:='ClipboardEvent';
  78799. end;
  78800. class function TJSClipboardEvent.Cast(const Intf: IJSObject): IJSClipboardEvent;
  78801. begin
  78802. Result:=TJSClipboardEvent.JOBCast(Intf);
  78803. end;
  78804. function TJSClipboardEventInit._Getdata: UnicodeString;
  78805. begin
  78806. Result:=ReadJSPropertyUnicodeString('data');
  78807. end;
  78808. function TJSClipboardEventInit._GetdataType: UnicodeString;
  78809. begin
  78810. Result:=ReadJSPropertyUnicodeString('dataType');
  78811. end;
  78812. procedure TJSClipboardEventInit._Setdata(const aValue : UnicodeString);
  78813. begin
  78814. WriteJSPropertyUnicodeString('data',aValue);
  78815. end;
  78816. procedure TJSClipboardEventInit._SetdataType(const aValue : UnicodeString);
  78817. begin
  78818. WriteJSPropertyUnicodeString('dataType',aValue);
  78819. end;
  78820. class function TJSClipboardEventInit.JSClassName: UnicodeString;
  78821. begin
  78822. Result:='Object';
  78823. end;
  78824. class function TJSClipboardEventInit.Cast(const Intf: IJSObject): IJSClipboardEventInit;
  78825. begin
  78826. Result:=TJSClipboardEventInit.JOBCast(Intf);
  78827. end;
  78828. function TJSCloseEvent._GetwasClean: Boolean;
  78829. begin
  78830. Result:=ReadJSPropertyBoolean('wasClean');
  78831. end;
  78832. function TJSCloseEvent._Getcode: Word;
  78833. begin
  78834. Result:=ReadJSPropertyLongInt('code');
  78835. end;
  78836. function TJSCloseEvent._Getreason: UnicodeString;
  78837. begin
  78838. Result:=ReadJSPropertyUnicodeString('reason');
  78839. end;
  78840. constructor TJSCloseEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSCloseEventInit);
  78841. begin
  78842. JOBCreate([aType_,aEventInitDict]);
  78843. end;
  78844. constructor TJSCloseEvent.Create(const aType_: UnicodeString);
  78845. begin
  78846. JOBCreate([aType_]);
  78847. end;
  78848. class function TJSCloseEvent.JSClassName: UnicodeString;
  78849. begin
  78850. Result:='CloseEvent';
  78851. end;
  78852. class function TJSCloseEvent.Cast(const Intf: IJSObject): IJSCloseEvent;
  78853. begin
  78854. Result:=TJSCloseEvent.JOBCast(Intf);
  78855. end;
  78856. function TJSCloseEventInit._GetwasClean: Boolean;
  78857. begin
  78858. Result:=ReadJSPropertyBoolean('wasClean');
  78859. end;
  78860. function TJSCloseEventInit._Getcode: Word;
  78861. begin
  78862. Result:=ReadJSPropertyLongInt('code');
  78863. end;
  78864. function TJSCloseEventInit._Getreason: UnicodeString;
  78865. begin
  78866. Result:=ReadJSPropertyUnicodeString('reason');
  78867. end;
  78868. procedure TJSCloseEventInit._SetwasClean(const aValue : Boolean);
  78869. begin
  78870. WriteJSPropertyBoolean('wasClean',aValue);
  78871. end;
  78872. procedure TJSCloseEventInit._Setcode(const aValue : Word);
  78873. begin
  78874. WriteJSPropertyLongInt('code',aValue);
  78875. end;
  78876. procedure TJSCloseEventInit._Setreason(const aValue : UnicodeString);
  78877. begin
  78878. WriteJSPropertyUnicodeString('reason',aValue);
  78879. end;
  78880. class function TJSCloseEventInit.JSClassName: UnicodeString;
  78881. begin
  78882. Result:='Object';
  78883. end;
  78884. class function TJSCloseEventInit.Cast(const Intf: IJSObject): IJSCloseEventInit;
  78885. begin
  78886. Result:=TJSCloseEventInit.JOBCast(Intf);
  78887. end;
  78888. constructor TJSComment.Create(const aData: UnicodeString);
  78889. begin
  78890. JOBCreate([aData]);
  78891. end;
  78892. constructor TJSComment.Create;
  78893. begin
  78894. JOBCreate([]);
  78895. end;
  78896. class function TJSComment.JSClassName: UnicodeString;
  78897. begin
  78898. Result:='Comment';
  78899. end;
  78900. class function TJSComment.Cast(const Intf: IJSObject): IJSComment;
  78901. begin
  78902. Result:=TJSComment.JOBCast(Intf);
  78903. end;
  78904. function TJSCompositionEvent._Getdata: UnicodeString;
  78905. begin
  78906. Result:=ReadJSPropertyUnicodeString('data');
  78907. end;
  78908. function TJSCompositionEvent._Getlocale: UnicodeString;
  78909. begin
  78910. Result:=ReadJSPropertyUnicodeString('locale');
  78911. end;
  78912. constructor TJSCompositionEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSCompositionEventInit);
  78913. begin
  78914. JOBCreate([aType_,aEventInitDict]);
  78915. end;
  78916. constructor TJSCompositionEvent.Create(const aType_: UnicodeString);
  78917. begin
  78918. JOBCreate([aType_]);
  78919. end;
  78920. procedure TJSCompositionEvent.initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aDataArg: UnicodeString; const aLocaleArg: UnicodeString);
  78921. begin
  78922. InvokeJSNoResult('initCompositionEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDataArg,aLocaleArg]);
  78923. end;
  78924. procedure TJSCompositionEvent.initCompositionEvent(const aTypeArg: UnicodeString);
  78925. begin
  78926. InvokeJSNoResult('initCompositionEvent',[aTypeArg]);
  78927. end;
  78928. procedure TJSCompositionEvent.initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean);
  78929. begin
  78930. InvokeJSNoResult('initCompositionEvent',[aTypeArg,aCanBubbleArg]);
  78931. end;
  78932. procedure TJSCompositionEvent.initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean);
  78933. begin
  78934. InvokeJSNoResult('initCompositionEvent',[aTypeArg,aCanBubbleArg,aCancelableArg]);
  78935. end;
  78936. procedure TJSCompositionEvent.initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow);
  78937. begin
  78938. InvokeJSNoResult('initCompositionEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg]);
  78939. end;
  78940. procedure TJSCompositionEvent.initCompositionEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aDataArg: UnicodeString);
  78941. begin
  78942. InvokeJSNoResult('initCompositionEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDataArg]);
  78943. end;
  78944. class function TJSCompositionEvent.JSClassName: UnicodeString;
  78945. begin
  78946. Result:='CompositionEvent';
  78947. end;
  78948. class function TJSCompositionEvent.Cast(const Intf: IJSObject): IJSCompositionEvent;
  78949. begin
  78950. Result:=TJSCompositionEvent.JOBCast(Intf);
  78951. end;
  78952. function TJSCompositionEventInit._Getdata: UnicodeString;
  78953. begin
  78954. Result:=ReadJSPropertyUnicodeString('data');
  78955. end;
  78956. procedure TJSCompositionEventInit._Setdata(const aValue : UnicodeString);
  78957. begin
  78958. WriteJSPropertyUnicodeString('data',aValue);
  78959. end;
  78960. class function TJSCompositionEventInit.JSClassName: UnicodeString;
  78961. begin
  78962. Result:='Object';
  78963. end;
  78964. class function TJSCompositionEventInit.Cast(const Intf: IJSObject): IJSCompositionEventInit;
  78965. begin
  78966. Result:=TJSCompositionEventInit.JOBCast(Intf);
  78967. end;
  78968. constructor TJSCompressionStream.Create(aFormat: TCompressionFormat);
  78969. begin
  78970. JOBCreate([aFormat]);
  78971. end;
  78972. class function TJSCompressionStream.JSClassName: UnicodeString;
  78973. begin
  78974. Result:='CompressionStream';
  78975. end;
  78976. class function TJSCompressionStream.Cast(const Intf: IJSObject): IJSCompressionStream;
  78977. begin
  78978. Result:=TJSCompressionStream.JOBCast(Intf);
  78979. end;
  78980. procedure TJSconsole.assert(aCondition: Boolean; const aData: Variant){; ToDo:varargs};
  78981. begin
  78982. InvokeJSNoResult('assert',[aCondition,aData]);
  78983. end;
  78984. procedure TJSconsole.assert{; ToDo:varargs};
  78985. begin
  78986. InvokeJSNoResult('assert',[]);
  78987. end;
  78988. procedure TJSconsole.clear;
  78989. begin
  78990. InvokeJSNoResult('clear',[]);
  78991. end;
  78992. procedure TJSconsole.count(const aLabel_: UnicodeString);
  78993. begin
  78994. InvokeJSNoResult('count',[aLabel_]);
  78995. end;
  78996. procedure TJSconsole.count;
  78997. begin
  78998. InvokeJSNoResult('count',[]);
  78999. end;
  79000. procedure TJSconsole.countReset(const aLabel_: UnicodeString);
  79001. begin
  79002. InvokeJSNoResult('countReset',[aLabel_]);
  79003. end;
  79004. procedure TJSconsole.countReset;
  79005. begin
  79006. InvokeJSNoResult('countReset',[]);
  79007. end;
  79008. procedure TJSconsole.debug(const aData: Variant){; ToDo:varargs};
  79009. begin
  79010. InvokeJSNoResult('debug',[aData]);
  79011. end;
  79012. procedure TJSconsole.error(const aData: Variant){; ToDo:varargs};
  79013. begin
  79014. InvokeJSNoResult('error',[aData]);
  79015. end;
  79016. procedure TJSconsole.info(const aData: Variant){; ToDo:varargs};
  79017. begin
  79018. InvokeJSNoResult('info',[aData]);
  79019. end;
  79020. procedure TJSconsole.log(const aData: Variant){; ToDo:varargs};
  79021. begin
  79022. InvokeJSNoResult('log',[aData]);
  79023. end;
  79024. procedure TJSconsole.table(const aData: Variant){; ToDo:varargs};
  79025. begin
  79026. InvokeJSNoResult('table',[aData]);
  79027. end;
  79028. procedure TJSconsole.trace(const aData: Variant){; ToDo:varargs};
  79029. begin
  79030. InvokeJSNoResult('trace',[aData]);
  79031. end;
  79032. procedure TJSconsole.warn(const aData: Variant){; ToDo:varargs};
  79033. begin
  79034. InvokeJSNoResult('warn',[aData]);
  79035. end;
  79036. procedure TJSconsole.dir(const aData: Variant){; ToDo:varargs};
  79037. begin
  79038. InvokeJSNoResult('dir',[aData]);
  79039. end;
  79040. procedure TJSconsole.dirxml(const aData: Variant){; ToDo:varargs};
  79041. begin
  79042. InvokeJSNoResult('dirxml',[aData]);
  79043. end;
  79044. procedure TJSconsole.group(const aData: Variant){; ToDo:varargs};
  79045. begin
  79046. InvokeJSNoResult('group',[aData]);
  79047. end;
  79048. procedure TJSconsole.groupCollapsed(const aData: Variant){; ToDo:varargs};
  79049. begin
  79050. InvokeJSNoResult('groupCollapsed',[aData]);
  79051. end;
  79052. procedure TJSconsole.groupEnd;
  79053. begin
  79054. InvokeJSNoResult('groupEnd',[]);
  79055. end;
  79056. procedure TJSconsole.time(const aLabel_: UnicodeString);
  79057. begin
  79058. InvokeJSNoResult('time',[aLabel_]);
  79059. end;
  79060. procedure TJSconsole.time;
  79061. begin
  79062. InvokeJSNoResult('time',[]);
  79063. end;
  79064. procedure TJSconsole.timeLog(const aLabel_: UnicodeString; const aData: Variant){; ToDo:varargs};
  79065. begin
  79066. InvokeJSNoResult('timeLog',[aLabel_,aData]);
  79067. end;
  79068. procedure TJSconsole.timeLog{; ToDo:varargs};
  79069. begin
  79070. InvokeJSNoResult('timeLog',[]);
  79071. end;
  79072. procedure TJSconsole.timeEnd(const aLabel_: UnicodeString);
  79073. begin
  79074. InvokeJSNoResult('timeEnd',[aLabel_]);
  79075. end;
  79076. procedure TJSconsole.timeEnd;
  79077. begin
  79078. InvokeJSNoResult('timeEnd',[]);
  79079. end;
  79080. procedure TJSconsole.exception(const aData: Variant){; ToDo:varargs};
  79081. begin
  79082. InvokeJSNoResult('exception',[aData]);
  79083. end;
  79084. procedure TJSconsole.timeStamp(const aData: Variant);
  79085. begin
  79086. InvokeJSNoResult('timeStamp',[aData]);
  79087. end;
  79088. procedure TJSconsole.timeStamp;
  79089. begin
  79090. InvokeJSNoResult('timeStamp',[]);
  79091. end;
  79092. procedure TJSconsole.profile(const aData: Variant){; ToDo:varargs};
  79093. begin
  79094. InvokeJSNoResult('profile',[aData]);
  79095. end;
  79096. procedure TJSconsole.profileEnd(const aData: Variant){; ToDo:varargs};
  79097. begin
  79098. InvokeJSNoResult('profileEnd',[aData]);
  79099. end;
  79100. class function TJSconsole.JSClassName: UnicodeString;
  79101. begin
  79102. Result:='console';
  79103. end;
  79104. class function TJSconsole.Cast(const Intf: IJSObject): IJSconsole;
  79105. begin
  79106. Result:=TJSconsole.JOBCast(Intf);
  79107. end;
  79108. function TJSConstantSourceOptions._Getoffset: Single;
  79109. begin
  79110. Result:=ReadJSPropertyDouble('offset');
  79111. end;
  79112. procedure TJSConstantSourceOptions._Setoffset(const aValue : Single);
  79113. begin
  79114. WriteJSPropertyDouble('offset',aValue);
  79115. end;
  79116. class function TJSConstantSourceOptions.JSClassName: UnicodeString;
  79117. begin
  79118. Result:='Object';
  79119. end;
  79120. class function TJSConstantSourceOptions.Cast(const Intf: IJSObject): IJSConstantSourceOptions;
  79121. begin
  79122. Result:=TJSConstantSourceOptions.JOBCast(Intf);
  79123. end;
  79124. function TJSConstantSourceNode._Getoffset: IJSAudioParam;
  79125. begin
  79126. Result:=ReadJSPropertyObject('offset',TJSAudioParam) as IJSAudioParam;
  79127. end;
  79128. constructor TJSConstantSourceNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSConstantSourceOptions);
  79129. begin
  79130. JOBCreate([aContext,aOptions]);
  79131. end;
  79132. constructor TJSConstantSourceNode.Create(aContext: IJSBaseAudioContext);
  79133. begin
  79134. JOBCreate([aContext]);
  79135. end;
  79136. class function TJSConstantSourceNode.JSClassName: UnicodeString;
  79137. begin
  79138. Result:='ConstantSourceNode';
  79139. end;
  79140. class function TJSConstantSourceNode.Cast(const Intf: IJSObject): IJSConstantSourceNode;
  79141. begin
  79142. Result:=TJSConstantSourceNode.JOBCast(Intf);
  79143. end;
  79144. function TJSContentVisibilityAutoStateChangeEvent._Getskipped: Boolean;
  79145. begin
  79146. Result:=ReadJSPropertyBoolean('skipped');
  79147. end;
  79148. constructor TJSContentVisibilityAutoStateChangeEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSContentVisibilityAutoStateChangeEventInit);
  79149. begin
  79150. JOBCreate([aType_,aEventInitDict]);
  79151. end;
  79152. constructor TJSContentVisibilityAutoStateChangeEvent.Create(const aType_: UnicodeString);
  79153. begin
  79154. JOBCreate([aType_]);
  79155. end;
  79156. class function TJSContentVisibilityAutoStateChangeEvent.JSClassName: UnicodeString;
  79157. begin
  79158. Result:='ContentVisibilityAutoStateChangeEvent';
  79159. end;
  79160. class function TJSContentVisibilityAutoStateChangeEvent.Cast(const Intf: IJSObject): IJSContentVisibilityAutoStateChangeEvent;
  79161. begin
  79162. Result:=TJSContentVisibilityAutoStateChangeEvent.JOBCast(Intf);
  79163. end;
  79164. function TJSContentVisibilityAutoStateChangeEventInit._Getskipped: Boolean;
  79165. begin
  79166. Result:=ReadJSPropertyBoolean('skipped');
  79167. end;
  79168. procedure TJSContentVisibilityAutoStateChangeEventInit._Setskipped(const aValue : Boolean);
  79169. begin
  79170. WriteJSPropertyBoolean('skipped',aValue);
  79171. end;
  79172. class function TJSContentVisibilityAutoStateChangeEventInit.JSClassName: UnicodeString;
  79173. begin
  79174. Result:='Object';
  79175. end;
  79176. class function TJSContentVisibilityAutoStateChangeEventInit.Cast(const Intf: IJSObject): IJSContentVisibilityAutoStateChangeEventInit;
  79177. begin
  79178. Result:=TJSContentVisibilityAutoStateChangeEventInit.JOBCast(Intf);
  79179. end;
  79180. function TJSConvolverOptions._Getbuffer: IJSAudioBuffer;
  79181. begin
  79182. Result:=ReadJSPropertyObject('buffer',TJSAudioBuffer) as IJSAudioBuffer;
  79183. end;
  79184. function TJSConvolverOptions._GetdisableNormalization: Boolean;
  79185. begin
  79186. Result:=ReadJSPropertyBoolean('disableNormalization');
  79187. end;
  79188. procedure TJSConvolverOptions._Setbuffer(const aValue : IJSAudioBuffer);
  79189. begin
  79190. WriteJSPropertyObject('buffer',aValue);
  79191. end;
  79192. procedure TJSConvolverOptions._SetdisableNormalization(const aValue : Boolean);
  79193. begin
  79194. WriteJSPropertyBoolean('disableNormalization',aValue);
  79195. end;
  79196. class function TJSConvolverOptions.JSClassName: UnicodeString;
  79197. begin
  79198. Result:='Object';
  79199. end;
  79200. class function TJSConvolverOptions.Cast(const Intf: IJSObject): IJSConvolverOptions;
  79201. begin
  79202. Result:=TJSConvolverOptions.JOBCast(Intf);
  79203. end;
  79204. function TJSConvolverNode._Getbuffer: IJSAudioBuffer;
  79205. begin
  79206. Result:=ReadJSPropertyObject('buffer',TJSAudioBuffer) as IJSAudioBuffer;
  79207. end;
  79208. function TJSConvolverNode._Getnormalize: Boolean;
  79209. begin
  79210. Result:=ReadJSPropertyBoolean('normalize');
  79211. end;
  79212. procedure TJSConvolverNode._Setbuffer(const aValue : IJSAudioBuffer);
  79213. begin
  79214. WriteJSPropertyObject('buffer',aValue);
  79215. end;
  79216. procedure TJSConvolverNode._Setnormalize(const aValue : Boolean);
  79217. begin
  79218. WriteJSPropertyBoolean('normalize',aValue);
  79219. end;
  79220. constructor TJSConvolverNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSConvolverOptions);
  79221. begin
  79222. JOBCreate([aContext,aOptions]);
  79223. end;
  79224. constructor TJSConvolverNode.Create(aContext: IJSBaseAudioContext);
  79225. begin
  79226. JOBCreate([aContext]);
  79227. end;
  79228. class function TJSConvolverNode.JSClassName: UnicodeString;
  79229. begin
  79230. Result:='ConvolverNode';
  79231. end;
  79232. class function TJSConvolverNode.Cast(const Intf: IJSObject): IJSConvolverNode;
  79233. begin
  79234. Result:=TJSConvolverNode.JOBCast(Intf);
  79235. end;
  79236. function TJSCredential._Getid: UnicodeString;
  79237. begin
  79238. Result:=ReadJSPropertyUnicodeString('id');
  79239. end;
  79240. function TJSCredential._Gettype_: UnicodeString;
  79241. begin
  79242. Result:=ReadJSPropertyUnicodeString('type');
  79243. end;
  79244. class function TJSCredential.JSClassName: UnicodeString;
  79245. begin
  79246. Result:='Credential';
  79247. end;
  79248. class function TJSCredential.Cast(const Intf: IJSObject): IJSCredential;
  79249. begin
  79250. Result:=TJSCredential.JOBCast(Intf);
  79251. end;
  79252. function TJSCredentialsContainer.get(const aOptions: TJSCredentialRequestOptions): IJSPromise; // Promise<Credential>
  79253. begin
  79254. Result:=InvokeJSObjectResult('get',[aOptions],TJSPromise) as IJSPromise;
  79255. end;
  79256. function TJSCredentialsContainer.get: IJSPromise; // Promise<Credential>
  79257. begin
  79258. Result:=InvokeJSObjectResult('get',[],TJSPromise) as IJSPromise;
  79259. end;
  79260. function TJSCredentialsContainer.create(const aOptions: TJSCredentialCreationOptions): IJSPromise; // Promise<Credential>
  79261. begin
  79262. Result:=InvokeJSObjectResult('create',[aOptions],TJSPromise) as IJSPromise;
  79263. end;
  79264. function TJSCredentialsContainer.create: IJSPromise; // Promise<Credential>
  79265. begin
  79266. Result:=InvokeJSObjectResult('create',[],TJSPromise) as IJSPromise;
  79267. end;
  79268. function TJSCredentialsContainer.store(aCredential: IJSCredential): IJSPromise; // Promise<Credential>
  79269. begin
  79270. Result:=InvokeJSObjectResult('store',[aCredential],TJSPromise) as IJSPromise;
  79271. end;
  79272. function TJSCredentialsContainer.preventSilentAccess: IJSPromise; // Promise<undefined>
  79273. begin
  79274. Result:=InvokeJSObjectResult('preventSilentAccess',[],TJSPromise) as IJSPromise;
  79275. end;
  79276. class function TJSCredentialsContainer.JSClassName: UnicodeString;
  79277. begin
  79278. Result:='CredentialsContainer';
  79279. end;
  79280. class function TJSCredentialsContainer.Cast(const Intf: IJSObject): IJSCredentialsContainer;
  79281. begin
  79282. Result:=TJSCredentialsContainer.JOBCast(Intf);
  79283. end;
  79284. function TJSCredentialRequestOptions._Getmediation: TCredentialMediationRequirement;
  79285. begin
  79286. Result:=ReadJSPropertyUnicodeString('mediation');
  79287. end;
  79288. function TJSCredentialRequestOptions._Getsignal: IJSAbortSignal;
  79289. begin
  79290. Result:=ReadJSPropertyObject('signal',TJSAbortSignal) as IJSAbortSignal;
  79291. end;
  79292. function TJSCredentialRequestOptions._GetpublicKey: TJSPublicKeyCredentialRequestOptions;
  79293. begin
  79294. Result:=ReadJSPropertyObject('publicKey',TJSPublicKeyCredentialRequestOptions) as TJSPublicKeyCredentialRequestOptions;
  79295. end;
  79296. function TJSCredentialRequestOptions._Getidentity: TJSIdentityCredentialRequestOptions;
  79297. begin
  79298. Result:=ReadJSPropertyObject('identity',TJSIdentityCredentialRequestOptions) as TJSIdentityCredentialRequestOptions;
  79299. end;
  79300. procedure TJSCredentialRequestOptions._Setmediation(const aValue : TCredentialMediationRequirement);
  79301. begin
  79302. WriteJSPropertyUnicodeString('mediation',aValue);
  79303. end;
  79304. procedure TJSCredentialRequestOptions._Setsignal(const aValue : IJSAbortSignal);
  79305. begin
  79306. WriteJSPropertyObject('signal',aValue);
  79307. end;
  79308. procedure TJSCredentialRequestOptions._SetpublicKey(const aValue : TJSPublicKeyCredentialRequestOptions);
  79309. begin
  79310. WriteJSPropertyObject('publicKey',aValue);
  79311. end;
  79312. procedure TJSCredentialRequestOptions._Setidentity(const aValue : TJSIdentityCredentialRequestOptions);
  79313. begin
  79314. WriteJSPropertyObject('identity',aValue);
  79315. end;
  79316. class function TJSCredentialRequestOptions.JSClassName: UnicodeString;
  79317. begin
  79318. Result:='Object';
  79319. end;
  79320. class function TJSCredentialRequestOptions.Cast(const Intf: IJSObject): IJSCredentialRequestOptions;
  79321. begin
  79322. Result:=TJSCredentialRequestOptions.JOBCast(Intf);
  79323. end;
  79324. function TJSCredentialCreationOptions._GetpublicKey: TJSPublicKeyCredentialCreationOptions;
  79325. begin
  79326. Result:=ReadJSPropertyObject('publicKey',TJSPublicKeyCredentialCreationOptions) as TJSPublicKeyCredentialCreationOptions;
  79327. end;
  79328. function TJSCredentialCreationOptions._Getsignal: IJSAbortSignal;
  79329. begin
  79330. Result:=ReadJSPropertyObject('signal',TJSAbortSignal) as IJSAbortSignal;
  79331. end;
  79332. procedure TJSCredentialCreationOptions._SetpublicKey(const aValue : TJSPublicKeyCredentialCreationOptions);
  79333. begin
  79334. WriteJSPropertyObject('publicKey',aValue);
  79335. end;
  79336. procedure TJSCredentialCreationOptions._Setsignal(const aValue : IJSAbortSignal);
  79337. begin
  79338. WriteJSPropertyObject('signal',aValue);
  79339. end;
  79340. class function TJSCredentialCreationOptions.JSClassName: UnicodeString;
  79341. begin
  79342. Result:='Object';
  79343. end;
  79344. class function TJSCredentialCreationOptions.Cast(const Intf: IJSObject): IJSCredentialCreationOptions;
  79345. begin
  79346. Result:=TJSCredentialCreationOptions.JOBCast(Intf);
  79347. end;
  79348. function TJSGlobalCrypto._Getcrypto: IJSCrypto;
  79349. begin
  79350. Result:=ReadJSPropertyObject('crypto',TJSCrypto) as IJSCrypto;
  79351. end;
  79352. class function TJSGlobalCrypto.JSClassName: UnicodeString;
  79353. begin
  79354. Result:='GlobalCrypto';
  79355. end;
  79356. class function TJSGlobalCrypto.Cast(const Intf: IJSObject): IJSGlobalCrypto;
  79357. begin
  79358. Result:=TJSGlobalCrypto.JOBCast(Intf);
  79359. end;
  79360. function TJSCrypto._Getsubtle: IJSSubtleCrypto;
  79361. begin
  79362. Result:=ReadJSPropertyObject('subtle',TJSSubtleCrypto) as IJSSubtleCrypto;
  79363. end;
  79364. function TJSCrypto.getRandomValues(aArray_: IJSArrayBufferView): IJSArrayBufferView;
  79365. begin
  79366. Result:=InvokeJSObjectResult('getRandomValues',[aArray_],TJSArray) as IJSArrayBufferView;
  79367. end;
  79368. function TJSCrypto.randomUUID: UTF8String;
  79369. begin
  79370. Result:=InvokeJSUTF8StringResult('randomUUID',[]);
  79371. end;
  79372. class function TJSCrypto.JSClassName: UnicodeString;
  79373. begin
  79374. Result:='Crypto';
  79375. end;
  79376. class function TJSCrypto.Cast(const Intf: IJSObject): IJSCrypto;
  79377. begin
  79378. Result:=TJSCrypto.JOBCast(Intf);
  79379. end;
  79380. function TJSCSP._Getreport_only: Boolean;
  79381. begin
  79382. Result:=ReadJSPropertyBoolean('report-only');
  79383. end;
  79384. function TJSCSP._Getdefault_src: TUnicodeStringDynArray;
  79385. begin
  79386. Result:=ReadJSPropertyObject('default-src',TJSArray) as TUnicodeStringDynArray;
  79387. end;
  79388. function TJSCSP._Getscript_src: TUnicodeStringDynArray;
  79389. begin
  79390. Result:=ReadJSPropertyObject('script-src',TJSArray) as TUnicodeStringDynArray;
  79391. end;
  79392. function TJSCSP._Getobject_src: TUnicodeStringDynArray;
  79393. begin
  79394. Result:=ReadJSPropertyObject('object-src',TJSArray) as TUnicodeStringDynArray;
  79395. end;
  79396. function TJSCSP._Getstyle_src: TUnicodeStringDynArray;
  79397. begin
  79398. Result:=ReadJSPropertyObject('style-src',TJSArray) as TUnicodeStringDynArray;
  79399. end;
  79400. function TJSCSP._Getimg_src: TUnicodeStringDynArray;
  79401. begin
  79402. Result:=ReadJSPropertyObject('img-src',TJSArray) as TUnicodeStringDynArray;
  79403. end;
  79404. function TJSCSP._Getmedia_src: TUnicodeStringDynArray;
  79405. begin
  79406. Result:=ReadJSPropertyObject('media-src',TJSArray) as TUnicodeStringDynArray;
  79407. end;
  79408. function TJSCSP._Getframe_src: TUnicodeStringDynArray;
  79409. begin
  79410. Result:=ReadJSPropertyObject('frame-src',TJSArray) as TUnicodeStringDynArray;
  79411. end;
  79412. function TJSCSP._Getfont_src: TUnicodeStringDynArray;
  79413. begin
  79414. Result:=ReadJSPropertyObject('font-src',TJSArray) as TUnicodeStringDynArray;
  79415. end;
  79416. function TJSCSP._Getconnect_src: TUnicodeStringDynArray;
  79417. begin
  79418. Result:=ReadJSPropertyObject('connect-src',TJSArray) as TUnicodeStringDynArray;
  79419. end;
  79420. function TJSCSP._Getreport_uri: TUnicodeStringDynArray;
  79421. begin
  79422. Result:=ReadJSPropertyObject('report-uri',TJSArray) as TUnicodeStringDynArray;
  79423. end;
  79424. function TJSCSP._Getframe_ancestors: TUnicodeStringDynArray;
  79425. begin
  79426. Result:=ReadJSPropertyObject('frame-ancestors',TJSArray) as TUnicodeStringDynArray;
  79427. end;
  79428. function TJSCSP._Getbase_uri: TUnicodeStringDynArray;
  79429. begin
  79430. Result:=ReadJSPropertyObject('base-uri',TJSArray) as TUnicodeStringDynArray;
  79431. end;
  79432. function TJSCSP._Getform_action: TUnicodeStringDynArray;
  79433. begin
  79434. Result:=ReadJSPropertyObject('form-action',TJSArray) as TUnicodeStringDynArray;
  79435. end;
  79436. function TJSCSP._Getreferrer: TUnicodeStringDynArray;
  79437. begin
  79438. Result:=ReadJSPropertyObject('referrer',TJSArray) as TUnicodeStringDynArray;
  79439. end;
  79440. function TJSCSP._Getmanifest_src: TUnicodeStringDynArray;
  79441. begin
  79442. Result:=ReadJSPropertyObject('manifest-src',TJSArray) as TUnicodeStringDynArray;
  79443. end;
  79444. function TJSCSP._Getupgrade_insecure_requests: TUnicodeStringDynArray;
  79445. begin
  79446. Result:=ReadJSPropertyObject('upgrade-insecure-requests',TJSArray) as TUnicodeStringDynArray;
  79447. end;
  79448. function TJSCSP._Getchild_src: TUnicodeStringDynArray;
  79449. begin
  79450. Result:=ReadJSPropertyObject('child-src',TJSArray) as TUnicodeStringDynArray;
  79451. end;
  79452. function TJSCSP._Getblock_all_mixed_content: TUnicodeStringDynArray;
  79453. begin
  79454. Result:=ReadJSPropertyObject('block-all-mixed-content',TJSArray) as TUnicodeStringDynArray;
  79455. end;
  79456. function TJSCSP._Getsandbox: TUnicodeStringDynArray;
  79457. begin
  79458. Result:=ReadJSPropertyObject('sandbox',TJSArray) as TUnicodeStringDynArray;
  79459. end;
  79460. function TJSCSP._Getworker_src: TUnicodeStringDynArray;
  79461. begin
  79462. Result:=ReadJSPropertyObject('worker-src',TJSArray) as TUnicodeStringDynArray;
  79463. end;
  79464. function TJSCSP._Getscript_src_elem: TUnicodeStringDynArray;
  79465. begin
  79466. Result:=ReadJSPropertyObject('script-src-elem',TJSArray) as TUnicodeStringDynArray;
  79467. end;
  79468. function TJSCSP._Getscript_src_attr: TUnicodeStringDynArray;
  79469. begin
  79470. Result:=ReadJSPropertyObject('script-src-attr',TJSArray) as TUnicodeStringDynArray;
  79471. end;
  79472. procedure TJSCSP._Setreport_only(const aValue : Boolean);
  79473. begin
  79474. WriteJSPropertyBoolean('report-only',aValue);
  79475. end;
  79476. procedure TJSCSP._Setdefault_src(const aValue : TUnicodeStringDynArray);
  79477. begin
  79478. WriteJSPropertyObject('default-src',aValue);
  79479. end;
  79480. procedure TJSCSP._Setscript_src(const aValue : TUnicodeStringDynArray);
  79481. begin
  79482. WriteJSPropertyObject('script-src',aValue);
  79483. end;
  79484. procedure TJSCSP._Setobject_src(const aValue : TUnicodeStringDynArray);
  79485. begin
  79486. WriteJSPropertyObject('object-src',aValue);
  79487. end;
  79488. procedure TJSCSP._Setstyle_src(const aValue : TUnicodeStringDynArray);
  79489. begin
  79490. WriteJSPropertyObject('style-src',aValue);
  79491. end;
  79492. procedure TJSCSP._Setimg_src(const aValue : TUnicodeStringDynArray);
  79493. begin
  79494. WriteJSPropertyObject('img-src',aValue);
  79495. end;
  79496. procedure TJSCSP._Setmedia_src(const aValue : TUnicodeStringDynArray);
  79497. begin
  79498. WriteJSPropertyObject('media-src',aValue);
  79499. end;
  79500. procedure TJSCSP._Setframe_src(const aValue : TUnicodeStringDynArray);
  79501. begin
  79502. WriteJSPropertyObject('frame-src',aValue);
  79503. end;
  79504. procedure TJSCSP._Setfont_src(const aValue : TUnicodeStringDynArray);
  79505. begin
  79506. WriteJSPropertyObject('font-src',aValue);
  79507. end;
  79508. procedure TJSCSP._Setconnect_src(const aValue : TUnicodeStringDynArray);
  79509. begin
  79510. WriteJSPropertyObject('connect-src',aValue);
  79511. end;
  79512. procedure TJSCSP._Setreport_uri(const aValue : TUnicodeStringDynArray);
  79513. begin
  79514. WriteJSPropertyObject('report-uri',aValue);
  79515. end;
  79516. procedure TJSCSP._Setframe_ancestors(const aValue : TUnicodeStringDynArray);
  79517. begin
  79518. WriteJSPropertyObject('frame-ancestors',aValue);
  79519. end;
  79520. procedure TJSCSP._Setbase_uri(const aValue : TUnicodeStringDynArray);
  79521. begin
  79522. WriteJSPropertyObject('base-uri',aValue);
  79523. end;
  79524. procedure TJSCSP._Setform_action(const aValue : TUnicodeStringDynArray);
  79525. begin
  79526. WriteJSPropertyObject('form-action',aValue);
  79527. end;
  79528. procedure TJSCSP._Setreferrer(const aValue : TUnicodeStringDynArray);
  79529. begin
  79530. WriteJSPropertyObject('referrer',aValue);
  79531. end;
  79532. procedure TJSCSP._Setmanifest_src(const aValue : TUnicodeStringDynArray);
  79533. begin
  79534. WriteJSPropertyObject('manifest-src',aValue);
  79535. end;
  79536. procedure TJSCSP._Setupgrade_insecure_requests(const aValue : TUnicodeStringDynArray);
  79537. begin
  79538. WriteJSPropertyObject('upgrade-insecure-requests',aValue);
  79539. end;
  79540. procedure TJSCSP._Setchild_src(const aValue : TUnicodeStringDynArray);
  79541. begin
  79542. WriteJSPropertyObject('child-src',aValue);
  79543. end;
  79544. procedure TJSCSP._Setblock_all_mixed_content(const aValue : TUnicodeStringDynArray);
  79545. begin
  79546. WriteJSPropertyObject('block-all-mixed-content',aValue);
  79547. end;
  79548. procedure TJSCSP._Setsandbox(const aValue : TUnicodeStringDynArray);
  79549. begin
  79550. WriteJSPropertyObject('sandbox',aValue);
  79551. end;
  79552. procedure TJSCSP._Setworker_src(const aValue : TUnicodeStringDynArray);
  79553. begin
  79554. WriteJSPropertyObject('worker-src',aValue);
  79555. end;
  79556. procedure TJSCSP._Setscript_src_elem(const aValue : TUnicodeStringDynArray);
  79557. begin
  79558. WriteJSPropertyObject('script-src-elem',aValue);
  79559. end;
  79560. procedure TJSCSP._Setscript_src_attr(const aValue : TUnicodeStringDynArray);
  79561. begin
  79562. WriteJSPropertyObject('script-src-attr',aValue);
  79563. end;
  79564. class function TJSCSP.JSClassName: UnicodeString;
  79565. begin
  79566. Result:='Object';
  79567. end;
  79568. class function TJSCSP.Cast(const Intf: IJSObject): IJSCSP;
  79569. begin
  79570. Result:=TJSCSP.JOBCast(Intf);
  79571. end;
  79572. function TJSCSPPolicies._Getcsp_policies: TJSCSPDynArray;
  79573. begin
  79574. Result:=ReadJSPropertyObject('csp-policies',TJSArray) as TJSCSPDynArray;
  79575. end;
  79576. procedure TJSCSPPolicies._Setcsp_policies(const aValue : TJSCSPDynArray);
  79577. begin
  79578. WriteJSPropertyObject('csp-policies',aValue);
  79579. end;
  79580. class function TJSCSPPolicies.JSClassName: UnicodeString;
  79581. begin
  79582. Result:='Object';
  79583. end;
  79584. class function TJSCSPPolicies.Cast(const Intf: IJSObject): IJSCSPPolicies;
  79585. begin
  79586. Result:=TJSCSPPolicies.JOBCast(Intf);
  79587. end;
  79588. function TJSCSPReportProperties._Getdocument_uri: UnicodeString;
  79589. begin
  79590. Result:=ReadJSPropertyUnicodeString('document-uri');
  79591. end;
  79592. function TJSCSPReportProperties._Getreferrer: UnicodeString;
  79593. begin
  79594. Result:=ReadJSPropertyUnicodeString('referrer');
  79595. end;
  79596. function TJSCSPReportProperties._Getblocked_uri: UnicodeString;
  79597. begin
  79598. Result:=ReadJSPropertyUnicodeString('blocked-uri');
  79599. end;
  79600. function TJSCSPReportProperties._Geteffective_directive: UnicodeString;
  79601. begin
  79602. Result:=ReadJSPropertyUnicodeString('effective-directive');
  79603. end;
  79604. function TJSCSPReportProperties._Getviolated_directive: UnicodeString;
  79605. begin
  79606. Result:=ReadJSPropertyUnicodeString('violated-directive');
  79607. end;
  79608. function TJSCSPReportProperties._Getoriginal_policy: UnicodeString;
  79609. begin
  79610. Result:=ReadJSPropertyUnicodeString('original-policy');
  79611. end;
  79612. function TJSCSPReportProperties._Getdisposition: TSecurityPolicyViolationEventDisposition;
  79613. begin
  79614. Result:=ReadJSPropertyUnicodeString('disposition');
  79615. end;
  79616. function TJSCSPReportProperties._Getstatus_code: LongInt;
  79617. begin
  79618. Result:=ReadJSPropertyLongInt('status-code');
  79619. end;
  79620. function TJSCSPReportProperties._Getsource_file: UnicodeString;
  79621. begin
  79622. Result:=ReadJSPropertyUnicodeString('source-file');
  79623. end;
  79624. function TJSCSPReportProperties._Getscript_sample: UnicodeString;
  79625. begin
  79626. Result:=ReadJSPropertyUnicodeString('script-sample');
  79627. end;
  79628. function TJSCSPReportProperties._Getline_number: LongInt;
  79629. begin
  79630. Result:=ReadJSPropertyLongInt('line-number');
  79631. end;
  79632. function TJSCSPReportProperties._Getcolumn_number: LongInt;
  79633. begin
  79634. Result:=ReadJSPropertyLongInt('column-number');
  79635. end;
  79636. procedure TJSCSPReportProperties._Setdocument_uri(const aValue : UnicodeString);
  79637. begin
  79638. WriteJSPropertyUnicodeString('document-uri',aValue);
  79639. end;
  79640. procedure TJSCSPReportProperties._Setreferrer(const aValue : UnicodeString);
  79641. begin
  79642. WriteJSPropertyUnicodeString('referrer',aValue);
  79643. end;
  79644. procedure TJSCSPReportProperties._Setblocked_uri(const aValue : UnicodeString);
  79645. begin
  79646. WriteJSPropertyUnicodeString('blocked-uri',aValue);
  79647. end;
  79648. procedure TJSCSPReportProperties._Seteffective_directive(const aValue : UnicodeString);
  79649. begin
  79650. WriteJSPropertyUnicodeString('effective-directive',aValue);
  79651. end;
  79652. procedure TJSCSPReportProperties._Setviolated_directive(const aValue : UnicodeString);
  79653. begin
  79654. WriteJSPropertyUnicodeString('violated-directive',aValue);
  79655. end;
  79656. procedure TJSCSPReportProperties._Setoriginal_policy(const aValue : UnicodeString);
  79657. begin
  79658. WriteJSPropertyUnicodeString('original-policy',aValue);
  79659. end;
  79660. procedure TJSCSPReportProperties._Setdisposition(const aValue : TSecurityPolicyViolationEventDisposition);
  79661. begin
  79662. WriteJSPropertyUnicodeString('disposition',aValue);
  79663. end;
  79664. procedure TJSCSPReportProperties._Setstatus_code(const aValue : LongInt);
  79665. begin
  79666. WriteJSPropertyLongInt('status-code',aValue);
  79667. end;
  79668. procedure TJSCSPReportProperties._Setsource_file(const aValue : UnicodeString);
  79669. begin
  79670. WriteJSPropertyUnicodeString('source-file',aValue);
  79671. end;
  79672. procedure TJSCSPReportProperties._Setscript_sample(const aValue : UnicodeString);
  79673. begin
  79674. WriteJSPropertyUnicodeString('script-sample',aValue);
  79675. end;
  79676. procedure TJSCSPReportProperties._Setline_number(const aValue : LongInt);
  79677. begin
  79678. WriteJSPropertyLongInt('line-number',aValue);
  79679. end;
  79680. procedure TJSCSPReportProperties._Setcolumn_number(const aValue : LongInt);
  79681. begin
  79682. WriteJSPropertyLongInt('column-number',aValue);
  79683. end;
  79684. class function TJSCSPReportProperties.JSClassName: UnicodeString;
  79685. begin
  79686. Result:='Object';
  79687. end;
  79688. class function TJSCSPReportProperties.Cast(const Intf: IJSObject): IJSCSPReportProperties;
  79689. begin
  79690. Result:=TJSCSPReportProperties.JOBCast(Intf);
  79691. end;
  79692. function TJSCSPReport._Getcsp_report: TJSCSPReportProperties;
  79693. begin
  79694. Result:=ReadJSPropertyObject('csp-report',TJSCSPReportProperties) as TJSCSPReportProperties;
  79695. end;
  79696. procedure TJSCSPReport._Setcsp_report(const aValue : TJSCSPReportProperties);
  79697. begin
  79698. WriteJSPropertyObject('csp-report',aValue);
  79699. end;
  79700. class function TJSCSPReport.JSClassName: UnicodeString;
  79701. begin
  79702. Result:='Object';
  79703. end;
  79704. class function TJSCSPReport.Cast(const Intf: IJSObject): IJSCSPReport;
  79705. begin
  79706. Result:=TJSCSPReport.JOBCast(Intf);
  79707. end;
  79708. function TJSCSS._Gethighlights: IJSHighlightRegistry;
  79709. begin
  79710. Result:=ReadJSPropertyObject('highlights',TJSHighlightRegistry) as IJSHighlightRegistry;
  79711. end;
  79712. function TJSCSS.supports(const aProperty_: UTF8String; const aValue: UTF8String): Boolean;
  79713. begin
  79714. Result:=InvokeJSBooleanResult('supports',[aProperty_,aValue]);
  79715. end;
  79716. function TJSCSS.supports(const aConditionText: UTF8String): Boolean;
  79717. begin
  79718. Result:=InvokeJSBooleanResult('supports',[aConditionText]);
  79719. end;
  79720. function TJSCSS.escape(const aIdent: UnicodeString): UnicodeString;
  79721. begin
  79722. Result:=InvokeJSUnicodeStringResult('escape',[aIdent]);
  79723. end;
  79724. procedure TJSCSS.registerProperty(const aDefinition: TJSPropertyDefinition);
  79725. begin
  79726. InvokeJSNoResult('registerProperty',[aDefinition]);
  79727. end;
  79728. class function TJSCSS.JSClassName: UnicodeString;
  79729. begin
  79730. Result:='CSS';
  79731. end;
  79732. class function TJSCSS.Cast(const Intf: IJSObject): IJSCSS;
  79733. begin
  79734. Result:=TJSCSS.JOBCast(Intf);
  79735. end;
  79736. function TJSPropertyDefinition._Getname: UTF8String;
  79737. begin
  79738. Result:=ReadJSPropertyUTF8String('name');
  79739. end;
  79740. function TJSPropertyDefinition._Getsyntax: UTF8String;
  79741. begin
  79742. Result:=ReadJSPropertyUTF8String('syntax');
  79743. end;
  79744. function TJSPropertyDefinition._Getinherits: Boolean;
  79745. begin
  79746. Result:=ReadJSPropertyBoolean('inherits');
  79747. end;
  79748. function TJSPropertyDefinition._GetinitialValue: UTF8String;
  79749. begin
  79750. Result:=ReadJSPropertyUTF8String('initialValue');
  79751. end;
  79752. procedure TJSPropertyDefinition._Setname(const aValue : UTF8String);
  79753. begin
  79754. WriteJSPropertyUTF8String('name',aValue);
  79755. end;
  79756. procedure TJSPropertyDefinition._Setsyntax(const aValue : UTF8String);
  79757. begin
  79758. WriteJSPropertyUTF8String('syntax',aValue);
  79759. end;
  79760. procedure TJSPropertyDefinition._Setinherits(const aValue : Boolean);
  79761. begin
  79762. WriteJSPropertyBoolean('inherits',aValue);
  79763. end;
  79764. procedure TJSPropertyDefinition._SetinitialValue(const aValue : UTF8String);
  79765. begin
  79766. WriteJSPropertyUTF8String('initialValue',aValue);
  79767. end;
  79768. class function TJSPropertyDefinition.JSClassName: UnicodeString;
  79769. begin
  79770. Result:='Object';
  79771. end;
  79772. class function TJSPropertyDefinition.Cast(const Intf: IJSObject): IJSPropertyDefinition;
  79773. begin
  79774. Result:=TJSPropertyDefinition.JOBCast(Intf);
  79775. end;
  79776. function TJSCSSAnimation._GetanimationName: UnicodeString;
  79777. begin
  79778. Result:=ReadJSPropertyUnicodeString('animationName');
  79779. end;
  79780. class function TJSCSSAnimation.JSClassName: UnicodeString;
  79781. begin
  79782. Result:='CSSAnimation';
  79783. end;
  79784. class function TJSCSSAnimation.Cast(const Intf: IJSObject): IJSCSSAnimation;
  79785. begin
  79786. Result:=TJSCSSAnimation.JOBCast(Intf);
  79787. end;
  79788. function TJSCSSConditionRule._GetconditionText: UTF8String;
  79789. begin
  79790. Result:=ReadJSPropertyUTF8String('conditionText');
  79791. end;
  79792. class function TJSCSSConditionRule.JSClassName: UnicodeString;
  79793. begin
  79794. Result:='CSSConditionRule';
  79795. end;
  79796. class function TJSCSSConditionRule.Cast(const Intf: IJSObject): IJSCSSConditionRule;
  79797. begin
  79798. Result:=TJSCSSConditionRule.JOBCast(Intf);
  79799. end;
  79800. function TJSCSSContainerRule._GetcontainerName: UTF8String;
  79801. begin
  79802. Result:=ReadJSPropertyUTF8String('containerName');
  79803. end;
  79804. function TJSCSSContainerRule._GetcontainerQuery: UTF8String;
  79805. begin
  79806. Result:=ReadJSPropertyUTF8String('containerQuery');
  79807. end;
  79808. class function TJSCSSContainerRule.JSClassName: UnicodeString;
  79809. begin
  79810. Result:='CSSContainerRule';
  79811. end;
  79812. class function TJSCSSContainerRule.Cast(const Intf: IJSObject): IJSCSSContainerRule;
  79813. begin
  79814. Result:=TJSCSSContainerRule.JOBCast(Intf);
  79815. end;
  79816. function TJSCSSCounterStyleRule._Getname: UnicodeString;
  79817. begin
  79818. Result:=ReadJSPropertyUnicodeString('name');
  79819. end;
  79820. function TJSCSSCounterStyleRule._Getsystem: UTF8String;
  79821. begin
  79822. Result:=ReadJSPropertyUTF8String('system');
  79823. end;
  79824. function TJSCSSCounterStyleRule._Getsymbols: UTF8String;
  79825. begin
  79826. Result:=ReadJSPropertyUTF8String('symbols');
  79827. end;
  79828. function TJSCSSCounterStyleRule._GetadditiveSymbols: UTF8String;
  79829. begin
  79830. Result:=ReadJSPropertyUTF8String('additiveSymbols');
  79831. end;
  79832. function TJSCSSCounterStyleRule._Getnegative: UTF8String;
  79833. begin
  79834. Result:=ReadJSPropertyUTF8String('negative');
  79835. end;
  79836. function TJSCSSCounterStyleRule._Getprefix: UTF8String;
  79837. begin
  79838. Result:=ReadJSPropertyUTF8String('prefix');
  79839. end;
  79840. function TJSCSSCounterStyleRule._Getsuffix: UTF8String;
  79841. begin
  79842. Result:=ReadJSPropertyUTF8String('suffix');
  79843. end;
  79844. function TJSCSSCounterStyleRule._Getrange: UTF8String;
  79845. begin
  79846. Result:=ReadJSPropertyUTF8String('range');
  79847. end;
  79848. function TJSCSSCounterStyleRule._Getpad: UTF8String;
  79849. begin
  79850. Result:=ReadJSPropertyUTF8String('pad');
  79851. end;
  79852. function TJSCSSCounterStyleRule._GetspeakAs: UTF8String;
  79853. begin
  79854. Result:=ReadJSPropertyUTF8String('speakAs');
  79855. end;
  79856. function TJSCSSCounterStyleRule._Getfallback: UTF8String;
  79857. begin
  79858. Result:=ReadJSPropertyUTF8String('fallback');
  79859. end;
  79860. procedure TJSCSSCounterStyleRule._Setname(const aValue : UnicodeString);
  79861. begin
  79862. WriteJSPropertyUnicodeString('name',aValue);
  79863. end;
  79864. procedure TJSCSSCounterStyleRule._Setsystem(const aValue : UTF8String);
  79865. begin
  79866. WriteJSPropertyUTF8String('system',aValue);
  79867. end;
  79868. procedure TJSCSSCounterStyleRule._Setsymbols(const aValue : UTF8String);
  79869. begin
  79870. WriteJSPropertyUTF8String('symbols',aValue);
  79871. end;
  79872. procedure TJSCSSCounterStyleRule._SetadditiveSymbols(const aValue : UTF8String);
  79873. begin
  79874. WriteJSPropertyUTF8String('additiveSymbols',aValue);
  79875. end;
  79876. procedure TJSCSSCounterStyleRule._Setnegative(const aValue : UTF8String);
  79877. begin
  79878. WriteJSPropertyUTF8String('negative',aValue);
  79879. end;
  79880. procedure TJSCSSCounterStyleRule._Setprefix(const aValue : UTF8String);
  79881. begin
  79882. WriteJSPropertyUTF8String('prefix',aValue);
  79883. end;
  79884. procedure TJSCSSCounterStyleRule._Setsuffix(const aValue : UTF8String);
  79885. begin
  79886. WriteJSPropertyUTF8String('suffix',aValue);
  79887. end;
  79888. procedure TJSCSSCounterStyleRule._Setrange(const aValue : UTF8String);
  79889. begin
  79890. WriteJSPropertyUTF8String('range',aValue);
  79891. end;
  79892. procedure TJSCSSCounterStyleRule._Setpad(const aValue : UTF8String);
  79893. begin
  79894. WriteJSPropertyUTF8String('pad',aValue);
  79895. end;
  79896. procedure TJSCSSCounterStyleRule._SetspeakAs(const aValue : UTF8String);
  79897. begin
  79898. WriteJSPropertyUTF8String('speakAs',aValue);
  79899. end;
  79900. procedure TJSCSSCounterStyleRule._Setfallback(const aValue : UTF8String);
  79901. begin
  79902. WriteJSPropertyUTF8String('fallback',aValue);
  79903. end;
  79904. class function TJSCSSCounterStyleRule.JSClassName: UnicodeString;
  79905. begin
  79906. Result:='CSSCounterStyleRule';
  79907. end;
  79908. class function TJSCSSCounterStyleRule.Cast(const Intf: IJSObject): IJSCSSCounterStyleRule;
  79909. begin
  79910. Result:=TJSCSSCounterStyleRule.JOBCast(Intf);
  79911. end;
  79912. function TJSCSSFontFaceRule._Getstyle: IJSCSSStyleDeclaration;
  79913. begin
  79914. Result:=ReadJSPropertyObject('style',TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  79915. end;
  79916. class function TJSCSSFontFaceRule.JSClassName: UnicodeString;
  79917. begin
  79918. Result:='CSSFontFaceRule';
  79919. end;
  79920. class function TJSCSSFontFaceRule.Cast(const Intf: IJSObject): IJSCSSFontFaceRule;
  79921. begin
  79922. Result:=TJSCSSFontFaceRule.JOBCast(Intf);
  79923. end;
  79924. function TJSCSSFontFeatureValuesRule._GetfontFamily: UTF8String;
  79925. begin
  79926. Result:=ReadJSPropertyUTF8String('fontFamily');
  79927. end;
  79928. function TJSCSSFontFeatureValuesRule._GetvalueText: UTF8String;
  79929. begin
  79930. Result:=ReadJSPropertyUTF8String('valueText');
  79931. end;
  79932. procedure TJSCSSFontFeatureValuesRule._SetfontFamily(const aValue : UTF8String);
  79933. begin
  79934. WriteJSPropertyUTF8String('fontFamily',aValue);
  79935. end;
  79936. procedure TJSCSSFontFeatureValuesRule._SetvalueText(const aValue : UTF8String);
  79937. begin
  79938. WriteJSPropertyUTF8String('valueText',aValue);
  79939. end;
  79940. class function TJSCSSFontFeatureValuesRule.JSClassName: UnicodeString;
  79941. begin
  79942. Result:='CSSFontFeatureValuesRule';
  79943. end;
  79944. class function TJSCSSFontFeatureValuesRule.Cast(const Intf: IJSObject): IJSCSSFontFeatureValuesRule;
  79945. begin
  79946. Result:=TJSCSSFontFeatureValuesRule.JOBCast(Intf);
  79947. end;
  79948. function TJSCSSFontPaletteValuesRule._Getname: UTF8String;
  79949. begin
  79950. Result:=ReadJSPropertyUTF8String('name');
  79951. end;
  79952. function TJSCSSFontPaletteValuesRule._GetfontFamily: UTF8String;
  79953. begin
  79954. Result:=ReadJSPropertyUTF8String('fontFamily');
  79955. end;
  79956. function TJSCSSFontPaletteValuesRule._GetbasePalette: UTF8String;
  79957. begin
  79958. Result:=ReadJSPropertyUTF8String('basePalette');
  79959. end;
  79960. function TJSCSSFontPaletteValuesRule._GetoverrideColors: UTF8String;
  79961. begin
  79962. Result:=ReadJSPropertyUTF8String('overrideColors');
  79963. end;
  79964. class function TJSCSSFontPaletteValuesRule.JSClassName: UnicodeString;
  79965. begin
  79966. Result:='CSSFontPaletteValuesRule';
  79967. end;
  79968. class function TJSCSSFontPaletteValuesRule.Cast(const Intf: IJSObject): IJSCSSFontPaletteValuesRule;
  79969. begin
  79970. Result:=TJSCSSFontPaletteValuesRule.JOBCast(Intf);
  79971. end;
  79972. function TJSCSSGroupingRule._GetcssRules: IJSCSSRuleList;
  79973. begin
  79974. Result:=ReadJSPropertyObject('cssRules',TJSCSSRuleList) as IJSCSSRuleList;
  79975. end;
  79976. function TJSCSSGroupingRule.insertRule(const aRule: UTF8String; aIndex: Cardinal): Cardinal;
  79977. begin
  79978. Result:=InvokeJSLongIntResult('insertRule',[aRule,aIndex]);
  79979. end;
  79980. function TJSCSSGroupingRule.insertRule(const aRule: UTF8String): Cardinal;
  79981. begin
  79982. Result:=InvokeJSLongIntResult('insertRule',[aRule]);
  79983. end;
  79984. procedure TJSCSSGroupingRule.deleteRule(aIndex: Cardinal);
  79985. begin
  79986. InvokeJSNoResult('deleteRule',[aIndex]);
  79987. end;
  79988. class function TJSCSSGroupingRule.JSClassName: UnicodeString;
  79989. begin
  79990. Result:='CSSGroupingRule';
  79991. end;
  79992. class function TJSCSSGroupingRule.Cast(const Intf: IJSObject): IJSCSSGroupingRule;
  79993. begin
  79994. Result:=TJSCSSGroupingRule.JOBCast(Intf);
  79995. end;
  79996. function TJSCSSImportRule._Gethref: UnicodeString;
  79997. begin
  79998. Result:=ReadJSPropertyUnicodeString('href');
  79999. end;
  80000. function TJSCSSImportRule._Getmedia: IJSMediaList;
  80001. begin
  80002. Result:=ReadJSPropertyObject('media',TJSMediaList) as IJSMediaList;
  80003. end;
  80004. function TJSCSSImportRule._GetstyleSheet: IJSCSSStyleSheet;
  80005. begin
  80006. Result:=ReadJSPropertyObject('styleSheet',TJSCSSStyleSheet) as IJSCSSStyleSheet;
  80007. end;
  80008. function TJSCSSImportRule._GetlayerName: UTF8String;
  80009. begin
  80010. Result:=ReadJSPropertyUTF8String('layerName');
  80011. end;
  80012. function TJSCSSImportRule._GetsupportsText: UTF8String;
  80013. begin
  80014. Result:=ReadJSPropertyUTF8String('supportsText');
  80015. end;
  80016. class function TJSCSSImportRule.JSClassName: UnicodeString;
  80017. begin
  80018. Result:='CSSImportRule';
  80019. end;
  80020. class function TJSCSSImportRule.Cast(const Intf: IJSObject): IJSCSSImportRule;
  80021. begin
  80022. Result:=TJSCSSImportRule.JOBCast(Intf);
  80023. end;
  80024. function TJSCSSKeyframeRule._GetkeyText: UTF8String;
  80025. begin
  80026. Result:=ReadJSPropertyUTF8String('keyText');
  80027. end;
  80028. function TJSCSSKeyframeRule._Getstyle: IJSCSSStyleDeclaration;
  80029. begin
  80030. Result:=ReadJSPropertyObject('style',TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  80031. end;
  80032. procedure TJSCSSKeyframeRule._SetkeyText(const aValue : UTF8String);
  80033. begin
  80034. WriteJSPropertyUTF8String('keyText',aValue);
  80035. end;
  80036. class function TJSCSSKeyframeRule.JSClassName: UnicodeString;
  80037. begin
  80038. Result:='CSSKeyframeRule';
  80039. end;
  80040. class function TJSCSSKeyframeRule.Cast(const Intf: IJSObject): IJSCSSKeyframeRule;
  80041. begin
  80042. Result:=TJSCSSKeyframeRule.JOBCast(Intf);
  80043. end;
  80044. function TJSCSSKeyframesRule._Getname: UnicodeString;
  80045. begin
  80046. Result:=ReadJSPropertyUnicodeString('name');
  80047. end;
  80048. function TJSCSSKeyframesRule._GetcssRules: IJSCSSRuleList;
  80049. begin
  80050. Result:=ReadJSPropertyObject('cssRules',TJSCSSRuleList) as IJSCSSRuleList;
  80051. end;
  80052. function TJSCSSKeyframesRule._Getlength_: Cardinal;
  80053. begin
  80054. Result:=ReadJSPropertyInt64('length');
  80055. end;
  80056. procedure TJSCSSKeyframesRule._Setname(const aValue : UnicodeString);
  80057. begin
  80058. WriteJSPropertyUnicodeString('name',aValue);
  80059. end;
  80060. function TJSCSSKeyframesRule.GetDefault(aIndex: Cardinal): IJSCSSKeyframeRule;
  80061. begin
  80062. Result:=InvokeJSObjectResult('',[aIndex],TJSCSSKeyframeRule) as IJSCSSKeyframeRule;
  80063. end;
  80064. procedure TJSCSSKeyframesRule.appendRule(const aRule: UnicodeString);
  80065. begin
  80066. InvokeJSNoResult('appendRule',[aRule]);
  80067. end;
  80068. procedure TJSCSSKeyframesRule.deleteRule(const aSelect: UnicodeString);
  80069. begin
  80070. InvokeJSNoResult('deleteRule',[aSelect]);
  80071. end;
  80072. function TJSCSSKeyframesRule.findRule(const aSelect: UnicodeString): IJSCSSKeyframeRule;
  80073. begin
  80074. Result:=InvokeJSObjectResult('findRule',[aSelect],TJSCSSKeyframeRule) as IJSCSSKeyframeRule;
  80075. end;
  80076. class function TJSCSSKeyframesRule.JSClassName: UnicodeString;
  80077. begin
  80078. Result:='CSSKeyframesRule';
  80079. end;
  80080. class function TJSCSSKeyframesRule.Cast(const Intf: IJSObject): IJSCSSKeyframesRule;
  80081. begin
  80082. Result:=TJSCSSKeyframesRule.JOBCast(Intf);
  80083. end;
  80084. function TJSCSSLayerBlockRule._Getname: UTF8String;
  80085. begin
  80086. Result:=ReadJSPropertyUTF8String('name');
  80087. end;
  80088. class function TJSCSSLayerBlockRule.JSClassName: UnicodeString;
  80089. begin
  80090. Result:='CSSLayerBlockRule';
  80091. end;
  80092. class function TJSCSSLayerBlockRule.Cast(const Intf: IJSObject): IJSCSSLayerBlockRule;
  80093. begin
  80094. Result:=TJSCSSLayerBlockRule.JOBCast(Intf);
  80095. end;
  80096. function TJSCSSLayerStatementRule._GetnameList: TUTF8StringDynArray;
  80097. begin
  80098. Result:=ReadJSPropertyObject('nameList',TJSArray) as TUTF8StringDynArray;
  80099. end;
  80100. class function TJSCSSLayerStatementRule.JSClassName: UnicodeString;
  80101. begin
  80102. Result:='CSSLayerStatementRule';
  80103. end;
  80104. class function TJSCSSLayerStatementRule.Cast(const Intf: IJSObject): IJSCSSLayerStatementRule;
  80105. begin
  80106. Result:=TJSCSSLayerStatementRule.JOBCast(Intf);
  80107. end;
  80108. function TJSCSSMediaRule._Getmedia: IJSMediaList;
  80109. begin
  80110. Result:=ReadJSPropertyObject('media',TJSMediaList) as IJSMediaList;
  80111. end;
  80112. class function TJSCSSMediaRule.JSClassName: UnicodeString;
  80113. begin
  80114. Result:='CSSMediaRule';
  80115. end;
  80116. class function TJSCSSMediaRule.Cast(const Intf: IJSObject): IJSCSSMediaRule;
  80117. begin
  80118. Result:=TJSCSSMediaRule.JOBCast(Intf);
  80119. end;
  80120. class function TJSCSSMozDocumentRule.JSClassName: UnicodeString;
  80121. begin
  80122. Result:='CSSMozDocumentRule';
  80123. end;
  80124. class function TJSCSSMozDocumentRule.Cast(const Intf: IJSObject): IJSCSSMozDocumentRule;
  80125. begin
  80126. Result:=TJSCSSMozDocumentRule.JOBCast(Intf);
  80127. end;
  80128. function TJSCSSNamespaceRule._GetnamespaceURI: UnicodeString;
  80129. begin
  80130. Result:=ReadJSPropertyUnicodeString('namespaceURI');
  80131. end;
  80132. function TJSCSSNamespaceRule._Getprefix: UnicodeString;
  80133. begin
  80134. Result:=ReadJSPropertyUnicodeString('prefix');
  80135. end;
  80136. class function TJSCSSNamespaceRule.JSClassName: UnicodeString;
  80137. begin
  80138. Result:='CSSNamespaceRule';
  80139. end;
  80140. class function TJSCSSNamespaceRule.Cast(const Intf: IJSObject): IJSCSSNamespaceRule;
  80141. begin
  80142. Result:=TJSCSSNamespaceRule.JOBCast(Intf);
  80143. end;
  80144. function TJSCSSPageRule._GetselectorText: UTF8String;
  80145. begin
  80146. Result:=ReadJSPropertyUTF8String('selectorText');
  80147. end;
  80148. function TJSCSSPageRule._Getstyle: IJSCSSStyleDeclaration;
  80149. begin
  80150. Result:=ReadJSPropertyObject('style',TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  80151. end;
  80152. procedure TJSCSSPageRule._SetselectorText(const aValue : UTF8String);
  80153. begin
  80154. WriteJSPropertyUTF8String('selectorText',aValue);
  80155. end;
  80156. class function TJSCSSPageRule.JSClassName: UnicodeString;
  80157. begin
  80158. Result:='CSSPageRule';
  80159. end;
  80160. class function TJSCSSPageRule.Cast(const Intf: IJSObject): IJSCSSPageRule;
  80161. begin
  80162. Result:=TJSCSSPageRule.JOBCast(Intf);
  80163. end;
  80164. function TJSCSSPropertyRule._Getname: UTF8String;
  80165. begin
  80166. Result:=ReadJSPropertyUTF8String('name');
  80167. end;
  80168. function TJSCSSPropertyRule._Getsyntax: UTF8String;
  80169. begin
  80170. Result:=ReadJSPropertyUTF8String('syntax');
  80171. end;
  80172. function TJSCSSPropertyRule._Getinherits: Boolean;
  80173. begin
  80174. Result:=ReadJSPropertyBoolean('inherits');
  80175. end;
  80176. function TJSCSSPropertyRule._GetinitialValue: UTF8String;
  80177. begin
  80178. Result:=ReadJSPropertyUTF8String('initialValue');
  80179. end;
  80180. class function TJSCSSPropertyRule.JSClassName: UnicodeString;
  80181. begin
  80182. Result:='CSSPropertyRule';
  80183. end;
  80184. class function TJSCSSPropertyRule.Cast(const Intf: IJSObject): IJSCSSPropertyRule;
  80185. begin
  80186. Result:=TJSCSSPropertyRule.JOBCast(Intf);
  80187. end;
  80188. function TJSCSSPseudoElement._Gettype_: UnicodeString;
  80189. begin
  80190. Result:=ReadJSPropertyUnicodeString('type');
  80191. end;
  80192. function TJSCSSPseudoElement._Getelement: IJSElement;
  80193. begin
  80194. Result:=ReadJSPropertyObject('element',TJSElement) as IJSElement;
  80195. end;
  80196. class function TJSCSSPseudoElement.JSClassName: UnicodeString;
  80197. begin
  80198. Result:='CSSPseudoElement';
  80199. end;
  80200. class function TJSCSSPseudoElement.Cast(const Intf: IJSObject): IJSCSSPseudoElement;
  80201. begin
  80202. Result:=TJSCSSPseudoElement.JOBCast(Intf);
  80203. end;
  80204. function TJSCSSRule._Gettype_: Word;
  80205. begin
  80206. Result:=ReadJSPropertyLongInt('type');
  80207. end;
  80208. function TJSCSSRule._GetcssText: UTF8String;
  80209. begin
  80210. Result:=ReadJSPropertyUTF8String('cssText');
  80211. end;
  80212. function TJSCSSRule._GetparentRule: IJSCSSRule;
  80213. begin
  80214. Result:=ReadJSPropertyObject('parentRule',TJSCSSRule) as IJSCSSRule;
  80215. end;
  80216. function TJSCSSRule._GetparentStyleSheet: IJSCSSStyleSheet;
  80217. begin
  80218. Result:=ReadJSPropertyObject('parentStyleSheet',TJSCSSStyleSheet) as IJSCSSStyleSheet;
  80219. end;
  80220. procedure TJSCSSRule._SetcssText(const aValue : UTF8String);
  80221. begin
  80222. WriteJSPropertyUTF8String('cssText',aValue);
  80223. end;
  80224. class function TJSCSSRule.JSClassName: UnicodeString;
  80225. begin
  80226. Result:='CSSRule';
  80227. end;
  80228. class function TJSCSSRule.Cast(const Intf: IJSObject): IJSCSSRule;
  80229. begin
  80230. Result:=TJSCSSRule.JOBCast(Intf);
  80231. end;
  80232. function TJSCSSRuleList._Getlength_: Cardinal;
  80233. begin
  80234. Result:=ReadJSPropertyInt64('length');
  80235. end;
  80236. function TJSCSSRuleList.item(aIndex: Cardinal): IJSCSSRule;
  80237. begin
  80238. Result:=InvokeJSObjectResult('item',[aIndex],TJSCSSRule) as IJSCSSRule;
  80239. end;
  80240. class function TJSCSSRuleList.JSClassName: UnicodeString;
  80241. begin
  80242. Result:='CSSRuleList';
  80243. end;
  80244. class function TJSCSSRuleList.Cast(const Intf: IJSObject): IJSCSSRuleList;
  80245. begin
  80246. Result:=TJSCSSRuleList.JOBCast(Intf);
  80247. end;
  80248. function TJSCSSScopeRule._Getstart: UTF8String;
  80249. begin
  80250. Result:=ReadJSPropertyUTF8String('start');
  80251. end;
  80252. function TJSCSSScopeRule._Getend_: UTF8String;
  80253. begin
  80254. Result:=ReadJSPropertyUTF8String('end');
  80255. end;
  80256. class function TJSCSSScopeRule.JSClassName: UnicodeString;
  80257. begin
  80258. Result:='CSSScopeRule';
  80259. end;
  80260. class function TJSCSSScopeRule.Cast(const Intf: IJSObject): IJSCSSScopeRule;
  80261. begin
  80262. Result:=TJSCSSScopeRule.JOBCast(Intf);
  80263. end;
  80264. function TJSCSSStyleDeclaration._GetcssText: UTF8String;
  80265. begin
  80266. Result:=ReadJSPropertyUTF8String('cssText');
  80267. end;
  80268. function TJSCSSStyleDeclaration._Getlength_: Cardinal;
  80269. begin
  80270. Result:=ReadJSPropertyInt64('length');
  80271. end;
  80272. function TJSCSSStyleDeclaration._GetparentRule: IJSCSSRule;
  80273. begin
  80274. Result:=ReadJSPropertyObject('parentRule',TJSCSSRule) as IJSCSSRule;
  80275. end;
  80276. procedure TJSCSSStyleDeclaration._SetcssText(const aValue : UTF8String);
  80277. begin
  80278. WriteJSPropertyUTF8String('cssText',aValue);
  80279. end;
  80280. function TJSCSSStyleDeclaration.item(aIndex: Cardinal): UTF8String;
  80281. begin
  80282. Result:=InvokeJSUTF8StringResult('item',[aIndex]);
  80283. end;
  80284. function TJSCSSStyleDeclaration.getPropertyValue(const aProperty_: UTF8String): UTF8String;
  80285. begin
  80286. Result:=InvokeJSUTF8StringResult('getPropertyValue',[aProperty_]);
  80287. end;
  80288. function TJSCSSStyleDeclaration.getPropertyPriority(const aProperty_: UTF8String): UTF8String;
  80289. begin
  80290. Result:=InvokeJSUTF8StringResult('getPropertyPriority',[aProperty_]);
  80291. end;
  80292. procedure TJSCSSStyleDeclaration.setProperty(const aProperty_: UTF8String; const aValue: UTF8String; const aPriority: UTF8String);
  80293. begin
  80294. InvokeJSNoResult('setProperty',[aProperty_,aValue,aPriority]);
  80295. end;
  80296. procedure TJSCSSStyleDeclaration.setProperty(const aProperty_: UTF8String; const aValue: UTF8String);
  80297. begin
  80298. InvokeJSNoResult('setProperty',[aProperty_,aValue]);
  80299. end;
  80300. function TJSCSSStyleDeclaration.removeProperty(const aProperty_: UTF8String): UTF8String;
  80301. begin
  80302. Result:=InvokeJSUTF8StringResult('removeProperty',[aProperty_]);
  80303. end;
  80304. class function TJSCSSStyleDeclaration.JSClassName: UnicodeString;
  80305. begin
  80306. Result:='CSSStyleDeclaration';
  80307. end;
  80308. class function TJSCSSStyleDeclaration.Cast(const Intf: IJSObject): IJSCSSStyleDeclaration;
  80309. begin
  80310. Result:=TJSCSSStyleDeclaration.JOBCast(Intf);
  80311. end;
  80312. function TJSCSSStyleRule._GetselectorText: UTF8String;
  80313. begin
  80314. Result:=ReadJSPropertyUTF8String('selectorText');
  80315. end;
  80316. function TJSCSSStyleRule._Getstyle: IJSCSSStyleDeclaration;
  80317. begin
  80318. Result:=ReadJSPropertyObject('style',TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  80319. end;
  80320. procedure TJSCSSStyleRule._SetselectorText(const aValue : UTF8String);
  80321. begin
  80322. WriteJSPropertyUTF8String('selectorText',aValue);
  80323. end;
  80324. class function TJSCSSStyleRule.JSClassName: UnicodeString;
  80325. begin
  80326. Result:='CSSStyleRule';
  80327. end;
  80328. class function TJSCSSStyleRule.Cast(const Intf: IJSObject): IJSCSSStyleRule;
  80329. begin
  80330. Result:=TJSCSSStyleRule.JOBCast(Intf);
  80331. end;
  80332. function TJSSelectorWarning._Getindex: Cardinal;
  80333. begin
  80334. Result:=ReadJSPropertyInt64('index');
  80335. end;
  80336. function TJSSelectorWarning._Getkind: TSelectorWarningKind;
  80337. begin
  80338. Result:=ReadJSPropertyUnicodeString('kind');
  80339. end;
  80340. procedure TJSSelectorWarning._Setindex(const aValue : Cardinal);
  80341. begin
  80342. WriteJSPropertyDouble('index',aValue);
  80343. end;
  80344. procedure TJSSelectorWarning._Setkind(const aValue : TSelectorWarningKind);
  80345. begin
  80346. WriteJSPropertyUnicodeString('kind',aValue);
  80347. end;
  80348. class function TJSSelectorWarning.JSClassName: UnicodeString;
  80349. begin
  80350. Result:='Object';
  80351. end;
  80352. class function TJSSelectorWarning.Cast(const Intf: IJSObject): IJSSelectorWarning;
  80353. begin
  80354. Result:=TJSSelectorWarning.JOBCast(Intf);
  80355. end;
  80356. function TJSCSSStyleSheetInit._Getmedia: TCSSStyleSheetInit_media_Type;
  80357. begin
  80358. Result:=ReadJSPropertyVariant('media');
  80359. end;
  80360. function TJSCSSStyleSheetInit._Getdisabled: Boolean;
  80361. begin
  80362. Result:=ReadJSPropertyBoolean('disabled');
  80363. end;
  80364. function TJSCSSStyleSheetInit._GetbaseURL: UTF8String;
  80365. begin
  80366. Result:=ReadJSPropertyUTF8String('baseURL');
  80367. end;
  80368. procedure TJSCSSStyleSheetInit._Setmedia(const aValue : TCSSStyleSheetInit_media_Type);
  80369. begin
  80370. WriteJSPropertyVariant('media',aValue);
  80371. end;
  80372. procedure TJSCSSStyleSheetInit._Setdisabled(const aValue : Boolean);
  80373. begin
  80374. WriteJSPropertyBoolean('disabled',aValue);
  80375. end;
  80376. procedure TJSCSSStyleSheetInit._SetbaseURL(const aValue : UTF8String);
  80377. begin
  80378. WriteJSPropertyUTF8String('baseURL',aValue);
  80379. end;
  80380. class function TJSCSSStyleSheetInit.JSClassName: UnicodeString;
  80381. begin
  80382. Result:='Object';
  80383. end;
  80384. class function TJSCSSStyleSheetInit.Cast(const Intf: IJSObject): IJSCSSStyleSheetInit;
  80385. begin
  80386. Result:=TJSCSSStyleSheetInit.JOBCast(Intf);
  80387. end;
  80388. function TJSCSSStyleSheet._GetownerRule: IJSCSSRule;
  80389. begin
  80390. Result:=ReadJSPropertyObject('ownerRule',TJSCSSRule) as IJSCSSRule;
  80391. end;
  80392. function TJSCSSStyleSheet._GetcssRules: IJSCSSRuleList;
  80393. begin
  80394. Result:=ReadJSPropertyObject('cssRules',TJSCSSRuleList) as IJSCSSRuleList;
  80395. end;
  80396. function TJSCSSStyleSheet._Getrules: IJSCSSRuleList;
  80397. begin
  80398. Result:=ReadJSPropertyObject('rules',TJSCSSRuleList) as IJSCSSRuleList;
  80399. end;
  80400. constructor TJSCSSStyleSheet.Create(const aOptions: TJSCSSStyleSheetInit);
  80401. begin
  80402. JOBCreate([aOptions]);
  80403. end;
  80404. constructor TJSCSSStyleSheet.Create;
  80405. begin
  80406. JOBCreate([]);
  80407. end;
  80408. function TJSCSSStyleSheet.insertRule(const aRule: UTF8String; aIndex: Cardinal): Cardinal;
  80409. begin
  80410. Result:=InvokeJSLongIntResult('insertRule',[aRule,aIndex]);
  80411. end;
  80412. function TJSCSSStyleSheet.insertRule(const aRule: UTF8String): Cardinal;
  80413. begin
  80414. Result:=InvokeJSLongIntResult('insertRule',[aRule]);
  80415. end;
  80416. procedure TJSCSSStyleSheet.deleteRule(aIndex: Cardinal);
  80417. begin
  80418. InvokeJSNoResult('deleteRule',[aIndex]);
  80419. end;
  80420. function TJSCSSStyleSheet.replace(const aText: UTF8String): IJSPromise; // Promise<CSSStyleSheet>
  80421. begin
  80422. Result:=InvokeJSObjectResult('replace',[aText],TJSPromise) as IJSPromise;
  80423. end;
  80424. procedure TJSCSSStyleSheet.replaceSync(const aText: UTF8String);
  80425. begin
  80426. InvokeJSNoResult('replaceSync',[aText]);
  80427. end;
  80428. procedure TJSCSSStyleSheet.removeRule(aIndex: Cardinal);
  80429. begin
  80430. InvokeJSNoResult('removeRule',[aIndex]);
  80431. end;
  80432. procedure TJSCSSStyleSheet.removeRule;
  80433. begin
  80434. InvokeJSNoResult('removeRule',[]);
  80435. end;
  80436. function TJSCSSStyleSheet.addRule(const aSelector: UTF8String; const aStyle: UTF8String; aIndex: Cardinal): LongInt;
  80437. begin
  80438. Result:=InvokeJSLongIntResult('addRule',[aSelector,aStyle,aIndex]);
  80439. end;
  80440. function TJSCSSStyleSheet.addRule: LongInt;
  80441. begin
  80442. Result:=InvokeJSLongIntResult('addRule',[]);
  80443. end;
  80444. function TJSCSSStyleSheet.addRule(const aSelector: UTF8String): LongInt;
  80445. begin
  80446. Result:=InvokeJSLongIntResult('addRule',[aSelector]);
  80447. end;
  80448. function TJSCSSStyleSheet.addRule(const aSelector: UTF8String; const aStyle: UTF8String): LongInt;
  80449. begin
  80450. Result:=InvokeJSLongIntResult('addRule',[aSelector,aStyle]);
  80451. end;
  80452. class function TJSCSSStyleSheet.JSClassName: UnicodeString;
  80453. begin
  80454. Result:='CSSStyleSheet';
  80455. end;
  80456. class function TJSCSSStyleSheet.Cast(const Intf: IJSObject): IJSCSSStyleSheet;
  80457. begin
  80458. Result:=TJSCSSStyleSheet.JOBCast(Intf);
  80459. end;
  80460. class function TJSCSSSupportsRule.JSClassName: UnicodeString;
  80461. begin
  80462. Result:='CSSSupportsRule';
  80463. end;
  80464. class function TJSCSSSupportsRule.Cast(const Intf: IJSObject): IJSCSSSupportsRule;
  80465. begin
  80466. Result:=TJSCSSSupportsRule.JOBCast(Intf);
  80467. end;
  80468. function TJSCSSTransition._GettransitionProperty: UnicodeString;
  80469. begin
  80470. Result:=ReadJSPropertyUnicodeString('transitionProperty');
  80471. end;
  80472. class function TJSCSSTransition.JSClassName: UnicodeString;
  80473. begin
  80474. Result:='CSSTransition';
  80475. end;
  80476. class function TJSCSSTransition.Cast(const Intf: IJSObject): IJSCSSTransition;
  80477. begin
  80478. Result:=TJSCSSTransition.JOBCast(Intf);
  80479. end;
  80480. procedure TJSCustomElementRegistry.define(const aName: UnicodeString; const aConstructor_: TCustomElementConstructor; const aOptions: TJSElementDefinitionOptions);
  80481. var
  80482. m: TJOB_Method;
  80483. begin
  80484. m:=TJOB_Method.Create(TMethod(aConstructor_),@JOBCallCustomElementConstructor);
  80485. try
  80486. InvokeJSNoResult('define',[aName,m,aOptions]);
  80487. finally
  80488. m.free;
  80489. end;
  80490. end;
  80491. procedure TJSCustomElementRegistry.define(const aName: UnicodeString; const aConstructor_: TCustomElementConstructor);
  80492. var
  80493. m: TJOB_Method;
  80494. begin
  80495. m:=TJOB_Method.Create(TMethod(aConstructor_),@JOBCallCustomElementConstructor);
  80496. try
  80497. InvokeJSNoResult('define',[aName,m]);
  80498. finally
  80499. m.free;
  80500. end;
  80501. end;
  80502. function TJSCustomElementRegistry.get(const aName: UnicodeString): TCustomElementRegistry_get_Type;
  80503. begin
  80504. Result:=InvokeJSVariantResult('get',[aName]);
  80505. end;
  80506. function TJSCustomElementRegistry.getName(const aConstructor_: TCustomElementConstructor): UnicodeString;
  80507. var
  80508. m: TJOB_Method;
  80509. begin
  80510. m:=TJOB_Method.Create(TMethod(aConstructor_),@JOBCallCustomElementConstructor);
  80511. try
  80512. Result:=InvokeJSUnicodeStringResult('getName',[m]);
  80513. finally
  80514. m.free;
  80515. end;
  80516. end;
  80517. function TJSCustomElementRegistry.whenDefined(const aName: UnicodeString): IJSPromise; // Promise<CustomElementConstructor>
  80518. begin
  80519. Result:=InvokeJSObjectResult('whenDefined',[aName],TJSPromise) as IJSPromise;
  80520. end;
  80521. procedure TJSCustomElementRegistry.upgrade(aRoot: IJSNode);
  80522. begin
  80523. InvokeJSNoResult('upgrade',[aRoot]);
  80524. end;
  80525. class function TJSCustomElementRegistry.JSClassName: UnicodeString;
  80526. begin
  80527. Result:='CustomElementRegistry';
  80528. end;
  80529. class function TJSCustomElementRegistry.Cast(const Intf: IJSObject): IJSCustomElementRegistry;
  80530. begin
  80531. Result:=TJSCustomElementRegistry.JOBCast(Intf);
  80532. end;
  80533. function TJSElementDefinitionOptions._Getextends: UnicodeString;
  80534. begin
  80535. Result:=ReadJSPropertyUnicodeString('extends');
  80536. end;
  80537. procedure TJSElementDefinitionOptions._Setextends(const aValue : UnicodeString);
  80538. begin
  80539. WriteJSPropertyUnicodeString('extends',aValue);
  80540. end;
  80541. class function TJSElementDefinitionOptions.JSClassName: UnicodeString;
  80542. begin
  80543. Result:='Object';
  80544. end;
  80545. class function TJSElementDefinitionOptions.Cast(const Intf: IJSObject): IJSElementDefinitionOptions;
  80546. begin
  80547. Result:=TJSElementDefinitionOptions.JOBCast(Intf);
  80548. end;
  80549. function TJSLifecycleCallbacks._GetconnectedCallback: TLifecycleConnectedCallback;
  80550. begin
  80551. Result:=(TLifecycleConnectedCallback(ReadJSPropertyMethod('connectedCallback')));
  80552. end;
  80553. function TJSLifecycleCallbacks._GetdisconnectedCallback: TLifecycleDisconnectedCallback;
  80554. begin
  80555. Result:=(TLifecycleDisconnectedCallback(ReadJSPropertyMethod('disconnectedCallback')));
  80556. end;
  80557. function TJSLifecycleCallbacks._GetadoptedCallback: TLifecycleAdoptedCallback;
  80558. begin
  80559. Result:=(TLifecycleAdoptedCallback(ReadJSPropertyMethod('adoptedCallback')));
  80560. end;
  80561. function TJSLifecycleCallbacks._GetattributeChangedCallback: TLifecycleAttributeChangedCallback;
  80562. begin
  80563. Result:=(TLifecycleAttributeChangedCallback(ReadJSPropertyMethod('attributeChangedCallback')));
  80564. end;
  80565. procedure TJSLifecycleCallbacks._SetconnectedCallback(const aValue : TLifecycleConnectedCallback);
  80566. begin
  80567. WriteJSPropertyMethod('connectedCallback',TMethod(aValue));
  80568. end;
  80569. procedure TJSLifecycleCallbacks._SetdisconnectedCallback(const aValue : TLifecycleDisconnectedCallback);
  80570. begin
  80571. WriteJSPropertyMethod('disconnectedCallback',TMethod(aValue));
  80572. end;
  80573. procedure TJSLifecycleCallbacks._SetadoptedCallback(const aValue : TLifecycleAdoptedCallback);
  80574. begin
  80575. WriteJSPropertyMethod('adoptedCallback',TMethod(aValue));
  80576. end;
  80577. procedure TJSLifecycleCallbacks._SetattributeChangedCallback(const aValue : TLifecycleAttributeChangedCallback);
  80578. begin
  80579. WriteJSPropertyMethod('attributeChangedCallback',TMethod(aValue));
  80580. end;
  80581. class function TJSLifecycleCallbacks.JSClassName: UnicodeString;
  80582. begin
  80583. Result:='Object';
  80584. end;
  80585. class function TJSLifecycleCallbacks.Cast(const Intf: IJSObject): IJSLifecycleCallbacks;
  80586. begin
  80587. Result:=TJSLifecycleCallbacks.JOBCast(Intf);
  80588. end;
  80589. function TJSFormAssociatedLifecycleCallbacks._GetformAssociatedCallback: TLifecycleFormAssociatedCallback;
  80590. begin
  80591. Result:=(TLifecycleFormAssociatedCallback(ReadJSPropertyMethod('formAssociatedCallback')));
  80592. end;
  80593. function TJSFormAssociatedLifecycleCallbacks._GetformResetCallback: TLifecycleFormResetCallback;
  80594. begin
  80595. Result:=(TLifecycleFormResetCallback(ReadJSPropertyMethod('formResetCallback')));
  80596. end;
  80597. function TJSFormAssociatedLifecycleCallbacks._GetformDisabledCallback: TLifecycleFormDisabledCallback;
  80598. begin
  80599. Result:=(TLifecycleFormDisabledCallback(ReadJSPropertyMethod('formDisabledCallback')));
  80600. end;
  80601. function TJSFormAssociatedLifecycleCallbacks._GetformStateRestoreCallback: TLifecycleFormStateRestoreCallback;
  80602. begin
  80603. Result:=(TLifecycleFormStateRestoreCallback(ReadJSPropertyMethod('formStateRestoreCallback')));
  80604. end;
  80605. procedure TJSFormAssociatedLifecycleCallbacks._SetformAssociatedCallback(const aValue : TLifecycleFormAssociatedCallback);
  80606. begin
  80607. WriteJSPropertyMethod('formAssociatedCallback',TMethod(aValue));
  80608. end;
  80609. procedure TJSFormAssociatedLifecycleCallbacks._SetformResetCallback(const aValue : TLifecycleFormResetCallback);
  80610. begin
  80611. WriteJSPropertyMethod('formResetCallback',TMethod(aValue));
  80612. end;
  80613. procedure TJSFormAssociatedLifecycleCallbacks._SetformDisabledCallback(const aValue : TLifecycleFormDisabledCallback);
  80614. begin
  80615. WriteJSPropertyMethod('formDisabledCallback',TMethod(aValue));
  80616. end;
  80617. procedure TJSFormAssociatedLifecycleCallbacks._SetformStateRestoreCallback(const aValue : TLifecycleFormStateRestoreCallback);
  80618. begin
  80619. WriteJSPropertyMethod('formStateRestoreCallback',TMethod(aValue));
  80620. end;
  80621. class function TJSFormAssociatedLifecycleCallbacks.JSClassName: UnicodeString;
  80622. begin
  80623. Result:='Object';
  80624. end;
  80625. class function TJSFormAssociatedLifecycleCallbacks.Cast(const Intf: IJSObject): IJSFormAssociatedLifecycleCallbacks;
  80626. begin
  80627. Result:=TJSFormAssociatedLifecycleCallbacks.JOBCast(Intf);
  80628. end;
  80629. function TJSCustomEvent._Getdetail: Variant;
  80630. begin
  80631. Result:=ReadJSPropertyVariant('detail');
  80632. end;
  80633. constructor TJSCustomEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSCustomEventInit);
  80634. begin
  80635. JOBCreate([aType_,aEventInitDict]);
  80636. end;
  80637. constructor TJSCustomEvent.Create(const aType_: UnicodeString);
  80638. begin
  80639. JOBCreate([aType_]);
  80640. end;
  80641. procedure TJSCustomEvent.initCustomEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aDetail: Variant);
  80642. begin
  80643. InvokeJSNoResult('initCustomEvent',[aType_,aCanBubble,aCancelable,aDetail]);
  80644. end;
  80645. procedure TJSCustomEvent.initCustomEvent(const aType_: UnicodeString);
  80646. begin
  80647. InvokeJSNoResult('initCustomEvent',[aType_]);
  80648. end;
  80649. procedure TJSCustomEvent.initCustomEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  80650. begin
  80651. InvokeJSNoResult('initCustomEvent',[aType_,aCanBubble]);
  80652. end;
  80653. procedure TJSCustomEvent.initCustomEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  80654. begin
  80655. InvokeJSNoResult('initCustomEvent',[aType_,aCanBubble,aCancelable]);
  80656. end;
  80657. class function TJSCustomEvent.JSClassName: UnicodeString;
  80658. begin
  80659. Result:='CustomEvent';
  80660. end;
  80661. class function TJSCustomEvent.Cast(const Intf: IJSObject): IJSCustomEvent;
  80662. begin
  80663. Result:=TJSCustomEvent.JOBCast(Intf);
  80664. end;
  80665. function TJSCustomEventInit._Getdetail: Variant;
  80666. begin
  80667. Result:=ReadJSPropertyVariant('detail');
  80668. end;
  80669. procedure TJSCustomEventInit._Setdetail(const aValue : Variant);
  80670. begin
  80671. WriteJSPropertyVariant('detail',aValue);
  80672. end;
  80673. class function TJSCustomEventInit.JSClassName: UnicodeString;
  80674. begin
  80675. Result:='Object';
  80676. end;
  80677. class function TJSCustomEventInit.Cast(const Intf: IJSObject): IJSCustomEventInit;
  80678. begin
  80679. Result:=TJSCustomEventInit.JOBCast(Intf);
  80680. end;
  80681. class function TJSContentSecurityPolicy.JSClassName: UnicodeString;
  80682. begin
  80683. Result:='ContentSecurityPolicy';
  80684. end;
  80685. class function TJSContentSecurityPolicy.Cast(const Intf: IJSObject): IJSContentSecurityPolicy;
  80686. begin
  80687. Result:=TJSContentSecurityPolicy.JOBCast(Intf);
  80688. end;
  80689. function TJSDataTransfer._GetdropEffect: UnicodeString;
  80690. begin
  80691. Result:=ReadJSPropertyUnicodeString('dropEffect');
  80692. end;
  80693. function TJSDataTransfer._GeteffectAllowed: UnicodeString;
  80694. begin
  80695. Result:=ReadJSPropertyUnicodeString('effectAllowed');
  80696. end;
  80697. function TJSDataTransfer._Getitems: IJSDataTransferItemList;
  80698. begin
  80699. Result:=ReadJSPropertyObject('items',TJSDataTransferItemList) as IJSDataTransferItemList;
  80700. end;
  80701. function TJSDataTransfer._Gettypes: TUnicodeStringDynArray;
  80702. begin
  80703. Result:=ReadJSPropertyObject('types',TJSArray) as TUnicodeStringDynArray;
  80704. end;
  80705. function TJSDataTransfer._Getfiles: IJSFileList;
  80706. begin
  80707. Result:=ReadJSPropertyObject('files',TJSFileList) as IJSFileList;
  80708. end;
  80709. function TJSDataTransfer._GetmozCursor: UnicodeString;
  80710. begin
  80711. Result:=ReadJSPropertyUnicodeString('mozCursor');
  80712. end;
  80713. function TJSDataTransfer._GetmozUserCancelled: Boolean;
  80714. begin
  80715. Result:=ReadJSPropertyBoolean('mozUserCancelled');
  80716. end;
  80717. function TJSDataTransfer._GetmozSourceNode: IJSNode;
  80718. begin
  80719. Result:=ReadJSPropertyObject('mozSourceNode',TJSNode) as IJSNode;
  80720. end;
  80721. procedure TJSDataTransfer._SetdropEffect(const aValue : UnicodeString);
  80722. begin
  80723. WriteJSPropertyUnicodeString('dropEffect',aValue);
  80724. end;
  80725. procedure TJSDataTransfer._SeteffectAllowed(const aValue : UnicodeString);
  80726. begin
  80727. WriteJSPropertyUnicodeString('effectAllowed',aValue);
  80728. end;
  80729. procedure TJSDataTransfer._SetmozCursor(const aValue : UnicodeString);
  80730. begin
  80731. WriteJSPropertyUnicodeString('mozCursor',aValue);
  80732. end;
  80733. constructor TJSDataTransfer.Create;
  80734. begin
  80735. JOBCreate([]);
  80736. end;
  80737. procedure TJSDataTransfer.setDragImage(aImage: IJSElement; aX: LongInt; aY: LongInt);
  80738. begin
  80739. InvokeJSNoResult('setDragImage',[aImage,aX,aY]);
  80740. end;
  80741. function TJSDataTransfer.getData(const aFormat: UnicodeString): UnicodeString;
  80742. begin
  80743. Result:=InvokeJSUnicodeStringResult('getData',[aFormat]);
  80744. end;
  80745. procedure TJSDataTransfer.setData(const aFormat: UnicodeString; const aData: UnicodeString);
  80746. begin
  80747. InvokeJSNoResult('setData',[aFormat,aData]);
  80748. end;
  80749. procedure TJSDataTransfer.clearData(const aFormat: UnicodeString);
  80750. begin
  80751. InvokeJSNoResult('clearData',[aFormat]);
  80752. end;
  80753. procedure TJSDataTransfer.clearData;
  80754. begin
  80755. InvokeJSNoResult('clearData',[]);
  80756. end;
  80757. procedure TJSDataTransfer.addElement(aElement: IJSElement);
  80758. begin
  80759. InvokeJSNoResult('addElement',[aElement]);
  80760. end;
  80761. class function TJSDataTransfer.JSClassName: UnicodeString;
  80762. begin
  80763. Result:='DataTransfer';
  80764. end;
  80765. class function TJSDataTransfer.Cast(const Intf: IJSObject): IJSDataTransfer;
  80766. begin
  80767. Result:=TJSDataTransfer.JOBCast(Intf);
  80768. end;
  80769. function TJSDataTransferItem._Getkind: UnicodeString;
  80770. begin
  80771. Result:=ReadJSPropertyUnicodeString('kind');
  80772. end;
  80773. function TJSDataTransferItem._Gettype_: UnicodeString;
  80774. begin
  80775. Result:=ReadJSPropertyUnicodeString('type');
  80776. end;
  80777. procedure TJSDataTransferItem.getAsString(const aCallback: TFunctionStringCallback);
  80778. var
  80779. m: TJOB_Method;
  80780. begin
  80781. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunctionStringCallback);
  80782. try
  80783. InvokeJSNoResult('getAsString',[m]);
  80784. finally
  80785. m.free;
  80786. end;
  80787. end;
  80788. function TJSDataTransferItem.getAsFile: IJSFile;
  80789. begin
  80790. Result:=InvokeJSObjectResult('getAsFile',[],TJSFile) as IJSFile;
  80791. end;
  80792. function TJSDataTransferItem.webkitGetAsEntry: IJSFileSystemEntry;
  80793. begin
  80794. Result:=InvokeJSObjectResult('webkitGetAsEntry',[],TJSFileSystemEntry) as IJSFileSystemEntry;
  80795. end;
  80796. class function TJSDataTransferItem.JSClassName: UnicodeString;
  80797. begin
  80798. Result:='DataTransferItem';
  80799. end;
  80800. class function TJSDataTransferItem.Cast(const Intf: IJSObject): IJSDataTransferItem;
  80801. begin
  80802. Result:=TJSDataTransferItem.JOBCast(Intf);
  80803. end;
  80804. function TJSDataTransferItemList._Getlength_: Cardinal;
  80805. begin
  80806. Result:=ReadJSPropertyInt64('length');
  80807. end;
  80808. function TJSDataTransferItemList.GetDefault(aIndex: Cardinal): IJSDataTransferItem;
  80809. begin
  80810. Result:=InvokeJSObjectResult('',[aIndex],TJSDataTransferItem) as IJSDataTransferItem;
  80811. end;
  80812. function TJSDataTransferItemList.add(const aData: UnicodeString; const aType_: UnicodeString): IJSDataTransferItem;
  80813. begin
  80814. Result:=InvokeJSObjectResult('add',[aData,aType_],TJSDataTransferItem) as IJSDataTransferItem;
  80815. end;
  80816. function TJSDataTransferItemList.add(aData: IJSFile): IJSDataTransferItem;
  80817. begin
  80818. Result:=InvokeJSObjectResult('add',[aData],TJSDataTransferItem) as IJSDataTransferItem;
  80819. end;
  80820. procedure TJSDataTransferItemList.remove(aIndex: Cardinal);
  80821. begin
  80822. InvokeJSNoResult('remove',[aIndex]);
  80823. end;
  80824. procedure TJSDataTransferItemList.clear;
  80825. begin
  80826. InvokeJSNoResult('clear',[]);
  80827. end;
  80828. class function TJSDataTransferItemList.JSClassName: UnicodeString;
  80829. begin
  80830. Result:='DataTransferItemList';
  80831. end;
  80832. class function TJSDataTransferItemList.Cast(const Intf: IJSObject): IJSDataTransferItemList;
  80833. begin
  80834. Result:=TJSDataTransferItemList.JOBCast(Intf);
  80835. end;
  80836. function TJSDecoderDoctorNotification._Gettype_: TDecoderDoctorNotificationType;
  80837. begin
  80838. Result:=ReadJSPropertyUnicodeString('type');
  80839. end;
  80840. function TJSDecoderDoctorNotification._GetisSolved: Boolean;
  80841. begin
  80842. Result:=ReadJSPropertyBoolean('isSolved');
  80843. end;
  80844. function TJSDecoderDoctorNotification._GetdecoderDoctorReportId: UnicodeString;
  80845. begin
  80846. Result:=ReadJSPropertyUnicodeString('decoderDoctorReportId');
  80847. end;
  80848. function TJSDecoderDoctorNotification._Getformats: UnicodeString;
  80849. begin
  80850. Result:=ReadJSPropertyUnicodeString('formats');
  80851. end;
  80852. function TJSDecoderDoctorNotification._GetdecodeIssue: UnicodeString;
  80853. begin
  80854. Result:=ReadJSPropertyUnicodeString('decodeIssue');
  80855. end;
  80856. function TJSDecoderDoctorNotification._GetdocURL: UnicodeString;
  80857. begin
  80858. Result:=ReadJSPropertyUnicodeString('docURL');
  80859. end;
  80860. function TJSDecoderDoctorNotification._GetresourceURL: UnicodeString;
  80861. begin
  80862. Result:=ReadJSPropertyUnicodeString('resourceURL');
  80863. end;
  80864. procedure TJSDecoderDoctorNotification._Settype_(const aValue : TDecoderDoctorNotificationType);
  80865. begin
  80866. WriteJSPropertyUnicodeString('type',aValue);
  80867. end;
  80868. procedure TJSDecoderDoctorNotification._SetisSolved(const aValue : Boolean);
  80869. begin
  80870. WriteJSPropertyBoolean('isSolved',aValue);
  80871. end;
  80872. procedure TJSDecoderDoctorNotification._SetdecoderDoctorReportId(const aValue : UnicodeString);
  80873. begin
  80874. WriteJSPropertyUnicodeString('decoderDoctorReportId',aValue);
  80875. end;
  80876. procedure TJSDecoderDoctorNotification._Setformats(const aValue : UnicodeString);
  80877. begin
  80878. WriteJSPropertyUnicodeString('formats',aValue);
  80879. end;
  80880. procedure TJSDecoderDoctorNotification._SetdecodeIssue(const aValue : UnicodeString);
  80881. begin
  80882. WriteJSPropertyUnicodeString('decodeIssue',aValue);
  80883. end;
  80884. procedure TJSDecoderDoctorNotification._SetdocURL(const aValue : UnicodeString);
  80885. begin
  80886. WriteJSPropertyUnicodeString('docURL',aValue);
  80887. end;
  80888. procedure TJSDecoderDoctorNotification._SetresourceURL(const aValue : UnicodeString);
  80889. begin
  80890. WriteJSPropertyUnicodeString('resourceURL',aValue);
  80891. end;
  80892. class function TJSDecoderDoctorNotification.JSClassName: UnicodeString;
  80893. begin
  80894. Result:='Object';
  80895. end;
  80896. class function TJSDecoderDoctorNotification.Cast(const Intf: IJSObject): IJSDecoderDoctorNotification;
  80897. begin
  80898. Result:=TJSDecoderDoctorNotification.JOBCast(Intf);
  80899. end;
  80900. constructor TJSDecompressionStream.Create(aFormat: TCompressionFormat);
  80901. begin
  80902. JOBCreate([aFormat]);
  80903. end;
  80904. class function TJSDecompressionStream.JSClassName: UnicodeString;
  80905. begin
  80906. Result:='DecompressionStream';
  80907. end;
  80908. class function TJSDecompressionStream.Cast(const Intf: IJSObject): IJSDecompressionStream;
  80909. begin
  80910. Result:=TJSDecompressionStream.JOBCast(Intf);
  80911. end;
  80912. function TJSDedicatedWorkerGlobalScope._Getname: UnicodeString;
  80913. begin
  80914. Result:=ReadJSPropertyUnicodeString('name');
  80915. end;
  80916. function TJSDedicatedWorkerGlobalScope._Getonmessage: TEventHandler;
  80917. begin
  80918. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  80919. end;
  80920. function TJSDedicatedWorkerGlobalScope._Getonmessageerror: TEventHandler;
  80921. begin
  80922. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessageerror')));
  80923. end;
  80924. function TJSDedicatedWorkerGlobalScope._Getonrtctransform: TEventHandler;
  80925. begin
  80926. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onrtctransform')));
  80927. end;
  80928. procedure TJSDedicatedWorkerGlobalScope._Setonmessage(const aValue : TEventHandler);
  80929. begin
  80930. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  80931. end;
  80932. procedure TJSDedicatedWorkerGlobalScope._Setonmessageerror(const aValue : TEventHandler);
  80933. begin
  80934. WriteJSPropertyMethod('onmessageerror',TMethod(aValue));
  80935. end;
  80936. procedure TJSDedicatedWorkerGlobalScope._Setonrtctransform(const aValue : TEventHandler);
  80937. begin
  80938. WriteJSPropertyMethod('onrtctransform',TMethod(aValue));
  80939. end;
  80940. procedure TJSDedicatedWorkerGlobalScope.postMessage(const aMessage: Variant; const aTransfer: TIJSObjectDynArray);
  80941. begin
  80942. InvokeJSNoResult('postMessage',[aMessage,aTransfer]);
  80943. end;
  80944. procedure TJSDedicatedWorkerGlobalScope.postMessage(const aMessage: Variant; const aOptions: TJSStructuredSerializeOptions);
  80945. begin
  80946. InvokeJSNoResult('postMessage',[aMessage,aOptions]);
  80947. end;
  80948. procedure TJSDedicatedWorkerGlobalScope.postMessage(const aMessage: Variant);
  80949. begin
  80950. InvokeJSNoResult('postMessage',[aMessage]);
  80951. end;
  80952. procedure TJSDedicatedWorkerGlobalScope.close;
  80953. begin
  80954. InvokeJSNoResult('close',[]);
  80955. end;
  80956. function TJSDedicatedWorkerGlobalScope.requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt;
  80957. var
  80958. m: TJOB_Method;
  80959. begin
  80960. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFrameRequestCallback);
  80961. try
  80962. Result:=InvokeJSLongIntResult('requestAnimationFrame',[m]);
  80963. finally
  80964. m.free;
  80965. end;
  80966. end;
  80967. procedure TJSDedicatedWorkerGlobalScope.cancelAnimationFrame(aHandle: LongInt);
  80968. begin
  80969. InvokeJSNoResult('cancelAnimationFrame',[aHandle]);
  80970. end;
  80971. class function TJSDedicatedWorkerGlobalScope.JSClassName: UnicodeString;
  80972. begin
  80973. Result:='DedicatedWorkerGlobalScope';
  80974. end;
  80975. class function TJSDedicatedWorkerGlobalScope.Cast(const Intf: IJSObject): IJSDedicatedWorkerGlobalScope;
  80976. begin
  80977. Result:=TJSDedicatedWorkerGlobalScope.JOBCast(Intf);
  80978. end;
  80979. function TJSDelayOptions._GetmaxDelayTime: Double;
  80980. begin
  80981. Result:=ReadJSPropertyDouble('maxDelayTime');
  80982. end;
  80983. function TJSDelayOptions._GetdelayTime: Double;
  80984. begin
  80985. Result:=ReadJSPropertyDouble('delayTime');
  80986. end;
  80987. procedure TJSDelayOptions._SetmaxDelayTime(const aValue : Double);
  80988. begin
  80989. WriteJSPropertyDouble('maxDelayTime',aValue);
  80990. end;
  80991. procedure TJSDelayOptions._SetdelayTime(const aValue : Double);
  80992. begin
  80993. WriteJSPropertyDouble('delayTime',aValue);
  80994. end;
  80995. class function TJSDelayOptions.JSClassName: UnicodeString;
  80996. begin
  80997. Result:='Object';
  80998. end;
  80999. class function TJSDelayOptions.Cast(const Intf: IJSObject): IJSDelayOptions;
  81000. begin
  81001. Result:=TJSDelayOptions.JOBCast(Intf);
  81002. end;
  81003. function TJSDelayNode._GetdelayTime: IJSAudioParam;
  81004. begin
  81005. Result:=ReadJSPropertyObject('delayTime',TJSAudioParam) as IJSAudioParam;
  81006. end;
  81007. constructor TJSDelayNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSDelayOptions);
  81008. begin
  81009. JOBCreate([aContext,aOptions]);
  81010. end;
  81011. constructor TJSDelayNode.Create(aContext: IJSBaseAudioContext);
  81012. begin
  81013. JOBCreate([aContext]);
  81014. end;
  81015. class function TJSDelayNode.JSClassName: UnicodeString;
  81016. begin
  81017. Result:='DelayNode';
  81018. end;
  81019. class function TJSDelayNode.Cast(const Intf: IJSObject): IJSDelayNode;
  81020. begin
  81021. Result:=TJSDelayNode.JOBCast(Intf);
  81022. end;
  81023. function TJSDeviceLightEvent._Getvalue: Double;
  81024. begin
  81025. Result:=ReadJSPropertyDouble('value');
  81026. end;
  81027. constructor TJSDeviceLightEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSDeviceLightEventInit);
  81028. begin
  81029. JOBCreate([aType_,aEventInitDict]);
  81030. end;
  81031. constructor TJSDeviceLightEvent.Create(const aType_: UnicodeString);
  81032. begin
  81033. JOBCreate([aType_]);
  81034. end;
  81035. class function TJSDeviceLightEvent.JSClassName: UnicodeString;
  81036. begin
  81037. Result:='DeviceLightEvent';
  81038. end;
  81039. class function TJSDeviceLightEvent.Cast(const Intf: IJSObject): IJSDeviceLightEvent;
  81040. begin
  81041. Result:=TJSDeviceLightEvent.JOBCast(Intf);
  81042. end;
  81043. function TJSDeviceLightEventInit._Getvalue: Double;
  81044. begin
  81045. Result:=ReadJSPropertyDouble('value');
  81046. end;
  81047. procedure TJSDeviceLightEventInit._Setvalue(const aValue : Double);
  81048. begin
  81049. WriteJSPropertyDouble('value',aValue);
  81050. end;
  81051. class function TJSDeviceLightEventInit.JSClassName: UnicodeString;
  81052. begin
  81053. Result:='Object';
  81054. end;
  81055. class function TJSDeviceLightEventInit.Cast(const Intf: IJSObject): IJSDeviceLightEventInit;
  81056. begin
  81057. Result:=TJSDeviceLightEventInit.JOBCast(Intf);
  81058. end;
  81059. function TJSDeviceAcceleration._Getx: Double;
  81060. begin
  81061. Result:=ReadJSPropertyDouble('x');
  81062. end;
  81063. function TJSDeviceAcceleration._Gety: Double;
  81064. begin
  81065. Result:=ReadJSPropertyDouble('y');
  81066. end;
  81067. function TJSDeviceAcceleration._Getz: Double;
  81068. begin
  81069. Result:=ReadJSPropertyDouble('z');
  81070. end;
  81071. class function TJSDeviceAcceleration.JSClassName: UnicodeString;
  81072. begin
  81073. Result:='DeviceAcceleration';
  81074. end;
  81075. class function TJSDeviceAcceleration.Cast(const Intf: IJSObject): IJSDeviceAcceleration;
  81076. begin
  81077. Result:=TJSDeviceAcceleration.JOBCast(Intf);
  81078. end;
  81079. function TJSDeviceRotationRate._Getalpha: Double;
  81080. begin
  81081. Result:=ReadJSPropertyDouble('alpha');
  81082. end;
  81083. function TJSDeviceRotationRate._Getbeta: Double;
  81084. begin
  81085. Result:=ReadJSPropertyDouble('beta');
  81086. end;
  81087. function TJSDeviceRotationRate._Getgamma: Double;
  81088. begin
  81089. Result:=ReadJSPropertyDouble('gamma');
  81090. end;
  81091. class function TJSDeviceRotationRate.JSClassName: UnicodeString;
  81092. begin
  81093. Result:='DeviceRotationRate';
  81094. end;
  81095. class function TJSDeviceRotationRate.Cast(const Intf: IJSObject): IJSDeviceRotationRate;
  81096. begin
  81097. Result:=TJSDeviceRotationRate.JOBCast(Intf);
  81098. end;
  81099. function TJSDeviceMotionEvent._Getacceleration: IJSDeviceAcceleration;
  81100. begin
  81101. Result:=ReadJSPropertyObject('acceleration',TJSDeviceAcceleration) as IJSDeviceAcceleration;
  81102. end;
  81103. function TJSDeviceMotionEvent._GetaccelerationIncludingGravity: IJSDeviceAcceleration;
  81104. begin
  81105. Result:=ReadJSPropertyObject('accelerationIncludingGravity',TJSDeviceAcceleration) as IJSDeviceAcceleration;
  81106. end;
  81107. function TJSDeviceMotionEvent._GetrotationRate: IJSDeviceRotationRate;
  81108. begin
  81109. Result:=ReadJSPropertyObject('rotationRate',TJSDeviceRotationRate) as IJSDeviceRotationRate;
  81110. end;
  81111. function TJSDeviceMotionEvent._Getinterval: Double;
  81112. begin
  81113. Result:=ReadJSPropertyDouble('interval');
  81114. end;
  81115. constructor TJSDeviceMotionEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSDeviceMotionEventInit);
  81116. begin
  81117. JOBCreate([aType_,aEventInitDict]);
  81118. end;
  81119. constructor TJSDeviceMotionEvent.Create(const aType_: UnicodeString);
  81120. begin
  81121. JOBCreate([aType_]);
  81122. end;
  81123. procedure TJSDeviceMotionEvent.initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit; const aAccelerationIncludingGravity: TJSDeviceAccelerationInit; const aRotationRate: TJSDeviceRotationRateInit; aInterval: Double);
  81124. begin
  81125. InvokeJSNoResult('initDeviceMotionEvent',[aType_,aCanBubble,aCancelable,aAcceleration,aAccelerationIncludingGravity,aRotationRate,aInterval]);
  81126. end;
  81127. procedure TJSDeviceMotionEvent.initDeviceMotionEvent(const aType_: UnicodeString);
  81128. begin
  81129. InvokeJSNoResult('initDeviceMotionEvent',[aType_]);
  81130. end;
  81131. procedure TJSDeviceMotionEvent.initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  81132. begin
  81133. InvokeJSNoResult('initDeviceMotionEvent',[aType_,aCanBubble]);
  81134. end;
  81135. procedure TJSDeviceMotionEvent.initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  81136. begin
  81137. InvokeJSNoResult('initDeviceMotionEvent',[aType_,aCanBubble,aCancelable]);
  81138. end;
  81139. procedure TJSDeviceMotionEvent.initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit);
  81140. begin
  81141. InvokeJSNoResult('initDeviceMotionEvent',[aType_,aCanBubble,aCancelable,aAcceleration]);
  81142. end;
  81143. procedure TJSDeviceMotionEvent.initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit; const aAccelerationIncludingGravity: TJSDeviceAccelerationInit);
  81144. begin
  81145. InvokeJSNoResult('initDeviceMotionEvent',[aType_,aCanBubble,aCancelable,aAcceleration,aAccelerationIncludingGravity]);
  81146. end;
  81147. procedure TJSDeviceMotionEvent.initDeviceMotionEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aAcceleration: TJSDeviceAccelerationInit; const aAccelerationIncludingGravity: TJSDeviceAccelerationInit; const aRotationRate: TJSDeviceRotationRateInit);
  81148. begin
  81149. InvokeJSNoResult('initDeviceMotionEvent',[aType_,aCanBubble,aCancelable,aAcceleration,aAccelerationIncludingGravity,aRotationRate]);
  81150. end;
  81151. class function TJSDeviceMotionEvent.JSClassName: UnicodeString;
  81152. begin
  81153. Result:='DeviceMotionEvent';
  81154. end;
  81155. class function TJSDeviceMotionEvent.Cast(const Intf: IJSObject): IJSDeviceMotionEvent;
  81156. begin
  81157. Result:=TJSDeviceMotionEvent.JOBCast(Intf);
  81158. end;
  81159. function TJSDeviceAccelerationInit._Getx: Double;
  81160. begin
  81161. Result:=ReadJSPropertyDouble('x');
  81162. end;
  81163. function TJSDeviceAccelerationInit._Gety: Double;
  81164. begin
  81165. Result:=ReadJSPropertyDouble('y');
  81166. end;
  81167. function TJSDeviceAccelerationInit._Getz: Double;
  81168. begin
  81169. Result:=ReadJSPropertyDouble('z');
  81170. end;
  81171. procedure TJSDeviceAccelerationInit._Setx(const aValue : Double);
  81172. begin
  81173. WriteJSPropertyDouble('x',aValue);
  81174. end;
  81175. procedure TJSDeviceAccelerationInit._Sety(const aValue : Double);
  81176. begin
  81177. WriteJSPropertyDouble('y',aValue);
  81178. end;
  81179. procedure TJSDeviceAccelerationInit._Setz(const aValue : Double);
  81180. begin
  81181. WriteJSPropertyDouble('z',aValue);
  81182. end;
  81183. class function TJSDeviceAccelerationInit.JSClassName: UnicodeString;
  81184. begin
  81185. Result:='Object';
  81186. end;
  81187. class function TJSDeviceAccelerationInit.Cast(const Intf: IJSObject): IJSDeviceAccelerationInit;
  81188. begin
  81189. Result:=TJSDeviceAccelerationInit.JOBCast(Intf);
  81190. end;
  81191. function TJSDeviceRotationRateInit._Getalpha: Double;
  81192. begin
  81193. Result:=ReadJSPropertyDouble('alpha');
  81194. end;
  81195. function TJSDeviceRotationRateInit._Getbeta: Double;
  81196. begin
  81197. Result:=ReadJSPropertyDouble('beta');
  81198. end;
  81199. function TJSDeviceRotationRateInit._Getgamma: Double;
  81200. begin
  81201. Result:=ReadJSPropertyDouble('gamma');
  81202. end;
  81203. procedure TJSDeviceRotationRateInit._Setalpha(const aValue : Double);
  81204. begin
  81205. WriteJSPropertyDouble('alpha',aValue);
  81206. end;
  81207. procedure TJSDeviceRotationRateInit._Setbeta(const aValue : Double);
  81208. begin
  81209. WriteJSPropertyDouble('beta',aValue);
  81210. end;
  81211. procedure TJSDeviceRotationRateInit._Setgamma(const aValue : Double);
  81212. begin
  81213. WriteJSPropertyDouble('gamma',aValue);
  81214. end;
  81215. class function TJSDeviceRotationRateInit.JSClassName: UnicodeString;
  81216. begin
  81217. Result:='Object';
  81218. end;
  81219. class function TJSDeviceRotationRateInit.Cast(const Intf: IJSObject): IJSDeviceRotationRateInit;
  81220. begin
  81221. Result:=TJSDeviceRotationRateInit.JOBCast(Intf);
  81222. end;
  81223. function TJSDeviceMotionEventInit._Getacceleration: TJSDeviceAccelerationInit;
  81224. begin
  81225. Result:=ReadJSPropertyObject('acceleration',TJSDeviceAccelerationInit) as TJSDeviceAccelerationInit;
  81226. end;
  81227. function TJSDeviceMotionEventInit._GetaccelerationIncludingGravity: TJSDeviceAccelerationInit;
  81228. begin
  81229. Result:=ReadJSPropertyObject('accelerationIncludingGravity',TJSDeviceAccelerationInit) as TJSDeviceAccelerationInit;
  81230. end;
  81231. function TJSDeviceMotionEventInit._GetrotationRate: TJSDeviceRotationRateInit;
  81232. begin
  81233. Result:=ReadJSPropertyObject('rotationRate',TJSDeviceRotationRateInit) as TJSDeviceRotationRateInit;
  81234. end;
  81235. function TJSDeviceMotionEventInit._Getinterval: Double;
  81236. begin
  81237. Result:=ReadJSPropertyDouble('interval');
  81238. end;
  81239. procedure TJSDeviceMotionEventInit._Setacceleration(const aValue : TJSDeviceAccelerationInit);
  81240. begin
  81241. WriteJSPropertyObject('acceleration',aValue);
  81242. end;
  81243. procedure TJSDeviceMotionEventInit._SetaccelerationIncludingGravity(const aValue : TJSDeviceAccelerationInit);
  81244. begin
  81245. WriteJSPropertyObject('accelerationIncludingGravity',aValue);
  81246. end;
  81247. procedure TJSDeviceMotionEventInit._SetrotationRate(const aValue : TJSDeviceRotationRateInit);
  81248. begin
  81249. WriteJSPropertyObject('rotationRate',aValue);
  81250. end;
  81251. procedure TJSDeviceMotionEventInit._Setinterval(const aValue : Double);
  81252. begin
  81253. WriteJSPropertyDouble('interval',aValue);
  81254. end;
  81255. class function TJSDeviceMotionEventInit.JSClassName: UnicodeString;
  81256. begin
  81257. Result:='Object';
  81258. end;
  81259. class function TJSDeviceMotionEventInit.Cast(const Intf: IJSObject): IJSDeviceMotionEventInit;
  81260. begin
  81261. Result:=TJSDeviceMotionEventInit.JOBCast(Intf);
  81262. end;
  81263. function TJSDeviceOrientationEvent._Getalpha: Double;
  81264. begin
  81265. Result:=ReadJSPropertyDouble('alpha');
  81266. end;
  81267. function TJSDeviceOrientationEvent._Getbeta: Double;
  81268. begin
  81269. Result:=ReadJSPropertyDouble('beta');
  81270. end;
  81271. function TJSDeviceOrientationEvent._Getgamma: Double;
  81272. begin
  81273. Result:=ReadJSPropertyDouble('gamma');
  81274. end;
  81275. function TJSDeviceOrientationEvent._Getabsolute_: Boolean;
  81276. begin
  81277. Result:=ReadJSPropertyBoolean('absolute');
  81278. end;
  81279. constructor TJSDeviceOrientationEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSDeviceOrientationEventInit);
  81280. begin
  81281. JOBCreate([aType_,aEventInitDict]);
  81282. end;
  81283. constructor TJSDeviceOrientationEvent.Create(const aType_: UnicodeString);
  81284. begin
  81285. JOBCreate([aType_]);
  81286. end;
  81287. procedure TJSDeviceOrientationEvent.initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double; aBeta: Double; aGamma: Double; aAbsolute_: Boolean);
  81288. begin
  81289. InvokeJSNoResult('initDeviceOrientationEvent',[aType_,aCanBubble,aCancelable,aAlpha,aBeta,aGamma,aAbsolute_]);
  81290. end;
  81291. procedure TJSDeviceOrientationEvent.initDeviceOrientationEvent(const aType_: UnicodeString);
  81292. begin
  81293. InvokeJSNoResult('initDeviceOrientationEvent',[aType_]);
  81294. end;
  81295. procedure TJSDeviceOrientationEvent.initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  81296. begin
  81297. InvokeJSNoResult('initDeviceOrientationEvent',[aType_,aCanBubble]);
  81298. end;
  81299. procedure TJSDeviceOrientationEvent.initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  81300. begin
  81301. InvokeJSNoResult('initDeviceOrientationEvent',[aType_,aCanBubble,aCancelable]);
  81302. end;
  81303. procedure TJSDeviceOrientationEvent.initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double);
  81304. begin
  81305. InvokeJSNoResult('initDeviceOrientationEvent',[aType_,aCanBubble,aCancelable,aAlpha]);
  81306. end;
  81307. procedure TJSDeviceOrientationEvent.initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double; aBeta: Double);
  81308. begin
  81309. InvokeJSNoResult('initDeviceOrientationEvent',[aType_,aCanBubble,aCancelable,aAlpha,aBeta]);
  81310. end;
  81311. procedure TJSDeviceOrientationEvent.initDeviceOrientationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAlpha: Double; aBeta: Double; aGamma: Double);
  81312. begin
  81313. InvokeJSNoResult('initDeviceOrientationEvent',[aType_,aCanBubble,aCancelable,aAlpha,aBeta,aGamma]);
  81314. end;
  81315. class function TJSDeviceOrientationEvent.JSClassName: UnicodeString;
  81316. begin
  81317. Result:='DeviceOrientationEvent';
  81318. end;
  81319. class function TJSDeviceOrientationEvent.Cast(const Intf: IJSObject): IJSDeviceOrientationEvent;
  81320. begin
  81321. Result:=TJSDeviceOrientationEvent.JOBCast(Intf);
  81322. end;
  81323. function TJSDeviceOrientationEventInit._Getalpha: Double;
  81324. begin
  81325. Result:=ReadJSPropertyDouble('alpha');
  81326. end;
  81327. function TJSDeviceOrientationEventInit._Getbeta: Double;
  81328. begin
  81329. Result:=ReadJSPropertyDouble('beta');
  81330. end;
  81331. function TJSDeviceOrientationEventInit._Getgamma: Double;
  81332. begin
  81333. Result:=ReadJSPropertyDouble('gamma');
  81334. end;
  81335. function TJSDeviceOrientationEventInit._Getabsolute_: Boolean;
  81336. begin
  81337. Result:=ReadJSPropertyBoolean('absolute');
  81338. end;
  81339. procedure TJSDeviceOrientationEventInit._Setalpha(const aValue : Double);
  81340. begin
  81341. WriteJSPropertyDouble('alpha',aValue);
  81342. end;
  81343. procedure TJSDeviceOrientationEventInit._Setbeta(const aValue : Double);
  81344. begin
  81345. WriteJSPropertyDouble('beta',aValue);
  81346. end;
  81347. procedure TJSDeviceOrientationEventInit._Setgamma(const aValue : Double);
  81348. begin
  81349. WriteJSPropertyDouble('gamma',aValue);
  81350. end;
  81351. procedure TJSDeviceOrientationEventInit._Setabsolute_(const aValue : Boolean);
  81352. begin
  81353. WriteJSPropertyBoolean('absolute',aValue);
  81354. end;
  81355. class function TJSDeviceOrientationEventInit.JSClassName: UnicodeString;
  81356. begin
  81357. Result:='Object';
  81358. end;
  81359. class function TJSDeviceOrientationEventInit.Cast(const Intf: IJSObject): IJSDeviceOrientationEventInit;
  81360. begin
  81361. Result:=TJSDeviceOrientationEventInit.JOBCast(Intf);
  81362. end;
  81363. function TJSDirectory._Getname: UnicodeString;
  81364. begin
  81365. Result:=ReadJSPropertyUnicodeString('name');
  81366. end;
  81367. function TJSDirectory._Getpath: UnicodeString;
  81368. begin
  81369. Result:=ReadJSPropertyUnicodeString('path');
  81370. end;
  81371. function TJSDirectory.getFilesAndDirectories: IJSPromise; // Promise<sequence>
  81372. begin
  81373. Result:=InvokeJSObjectResult('getFilesAndDirectories',[],TJSPromise) as IJSPromise;
  81374. end;
  81375. function TJSDirectory.getFiles(aRecursiveFlag: Boolean): IJSPromise; // Promise<sequence>
  81376. begin
  81377. Result:=InvokeJSObjectResult('getFiles',[aRecursiveFlag],TJSPromise) as IJSPromise;
  81378. end;
  81379. function TJSDirectory.getFiles: IJSPromise; // Promise<sequence>
  81380. begin
  81381. Result:=InvokeJSObjectResult('getFiles',[],TJSPromise) as IJSPromise;
  81382. end;
  81383. class function TJSDirectory.JSClassName: UnicodeString;
  81384. begin
  81385. Result:='Directory';
  81386. end;
  81387. class function TJSDirectory.Cast(const Intf: IJSObject): IJSDirectory;
  81388. begin
  81389. Result:=TJSDirectory.JOBCast(Intf);
  81390. end;
  81391. class function TJSWindowProxy.JSClassName: UnicodeString;
  81392. begin
  81393. Result:='WindowProxy';
  81394. end;
  81395. class function TJSWindowProxy.Cast(const Intf: IJSObject): IJSWindowProxy;
  81396. begin
  81397. Result:=TJSWindowProxy.JOBCast(Intf);
  81398. end;
  81399. class function TJSnsISupports.JSClassName: UnicodeString;
  81400. begin
  81401. Result:='nsISupports';
  81402. end;
  81403. class function TJSnsISupports.Cast(const Intf: IJSObject): IJSnsISupports;
  81404. begin
  81405. Result:=TJSnsISupports.JOBCast(Intf);
  81406. end;
  81407. class function TJSURI.JSClassName: UnicodeString;
  81408. begin
  81409. Result:='URI';
  81410. end;
  81411. class function TJSURI.Cast(const Intf: IJSObject): IJSURI;
  81412. begin
  81413. Result:=TJSURI.JOBCast(Intf);
  81414. end;
  81415. class function TJSnsIDocShell.JSClassName: UnicodeString;
  81416. begin
  81417. Result:='nsIDocShell';
  81418. end;
  81419. class function TJSnsIDocShell.Cast(const Intf: IJSObject): IJSnsIDocShell;
  81420. begin
  81421. Result:=TJSnsIDocShell.JOBCast(Intf);
  81422. end;
  81423. class function TJSnsILoadGroup.JSClassName: UnicodeString;
  81424. begin
  81425. Result:='nsILoadGroup';
  81426. end;
  81427. class function TJSnsILoadGroup.Cast(const Intf: IJSObject): IJSnsILoadGroup;
  81428. begin
  81429. Result:=TJSnsILoadGroup.JOBCast(Intf);
  81430. end;
  81431. class function TJSnsIReferrerInfo.JSClassName: UnicodeString;
  81432. begin
  81433. Result:='nsIReferrerInfo';
  81434. end;
  81435. class function TJSnsIReferrerInfo.Cast(const Intf: IJSObject): IJSnsIReferrerInfo;
  81436. begin
  81437. Result:=TJSnsIReferrerInfo.JOBCast(Intf);
  81438. end;
  81439. class function TJSnsICookieJarSettings.JSClassName: UnicodeString;
  81440. begin
  81441. Result:='nsICookieJarSettings';
  81442. end;
  81443. class function TJSnsICookieJarSettings.Cast(const Intf: IJSObject): IJSnsICookieJarSettings;
  81444. begin
  81445. Result:=TJSnsICookieJarSettings.JOBCast(Intf);
  81446. end;
  81447. class function TJSnsIPermissionDelegateHandler.JSClassName: UnicodeString;
  81448. begin
  81449. Result:='nsIPermissionDelegateHandler';
  81450. end;
  81451. class function TJSnsIPermissionDelegateHandler.Cast(const Intf: IJSObject): IJSnsIPermissionDelegateHandler;
  81452. begin
  81453. Result:=TJSnsIPermissionDelegateHandler.JOBCast(Intf);
  81454. end;
  81455. class function TJSXULCommandDispatcher.JSClassName: UnicodeString;
  81456. begin
  81457. Result:='XULCommandDispatcher';
  81458. end;
  81459. class function TJSXULCommandDispatcher.Cast(const Intf: IJSObject): IJSXULCommandDispatcher;
  81460. begin
  81461. Result:=TJSXULCommandDispatcher.JOBCast(Intf);
  81462. end;
  81463. function TJSElementCreationOptions._Getis_: UnicodeString;
  81464. begin
  81465. Result:=ReadJSPropertyUnicodeString('is');
  81466. end;
  81467. procedure TJSElementCreationOptions._Setis_(const aValue : UnicodeString);
  81468. begin
  81469. WriteJSPropertyUnicodeString('is',aValue);
  81470. end;
  81471. class function TJSElementCreationOptions.JSClassName: UnicodeString;
  81472. begin
  81473. Result:='Object';
  81474. end;
  81475. class function TJSElementCreationOptions.Cast(const Intf: IJSObject): IJSElementCreationOptions;
  81476. begin
  81477. Result:=TJSElementCreationOptions.JOBCast(Intf);
  81478. end;
  81479. function TJSDocument._Getimplementation_: IJSDOMImplementation;
  81480. begin
  81481. Result:=ReadJSPropertyObject('implementation',TJSDOMImplementation) as IJSDOMImplementation;
  81482. end;
  81483. function TJSDocument._GetURL: UnicodeString;
  81484. begin
  81485. Result:=ReadJSPropertyUnicodeString('URL');
  81486. end;
  81487. function TJSDocument._GetdocumentURI: UnicodeString;
  81488. begin
  81489. Result:=ReadJSPropertyUnicodeString('documentURI');
  81490. end;
  81491. function TJSDocument._GetcompatMode: UnicodeString;
  81492. begin
  81493. Result:=ReadJSPropertyUnicodeString('compatMode');
  81494. end;
  81495. function TJSDocument._GetcharacterSet: UnicodeString;
  81496. begin
  81497. Result:=ReadJSPropertyUnicodeString('characterSet');
  81498. end;
  81499. function TJSDocument._Getcharset: UnicodeString;
  81500. begin
  81501. Result:=ReadJSPropertyUnicodeString('charset');
  81502. end;
  81503. function TJSDocument._GetinputEncoding: UnicodeString;
  81504. begin
  81505. Result:=ReadJSPropertyUnicodeString('inputEncoding');
  81506. end;
  81507. function TJSDocument._GetcontentType: UnicodeString;
  81508. begin
  81509. Result:=ReadJSPropertyUnicodeString('contentType');
  81510. end;
  81511. function TJSDocument._Getdoctype: IJSDocumentType;
  81512. begin
  81513. Result:=ReadJSPropertyObject('doctype',TJSDocumentType) as IJSDocumentType;
  81514. end;
  81515. function TJSDocument._GetdocumentElement: IJSElement;
  81516. begin
  81517. Result:=ReadJSPropertyObject('documentElement',TJSElement) as IJSElement;
  81518. end;
  81519. function TJSDocument._Getlocation: IJSLocation;
  81520. begin
  81521. Result:=ReadJSPropertyObject('location',TJSLocation) as IJSLocation;
  81522. end;
  81523. function TJSDocument._Getdomain: UnicodeString;
  81524. begin
  81525. Result:=ReadJSPropertyUnicodeString('domain');
  81526. end;
  81527. function TJSDocument._Getreferrer: UnicodeString;
  81528. begin
  81529. Result:=ReadJSPropertyUnicodeString('referrer');
  81530. end;
  81531. function TJSDocument._Getcookie: UnicodeString;
  81532. begin
  81533. Result:=ReadJSPropertyUnicodeString('cookie');
  81534. end;
  81535. function TJSDocument._GetlastModified: UnicodeString;
  81536. begin
  81537. Result:=ReadJSPropertyUnicodeString('lastModified');
  81538. end;
  81539. function TJSDocument._GetreadyState: UnicodeString;
  81540. begin
  81541. Result:=ReadJSPropertyUnicodeString('readyState');
  81542. end;
  81543. function TJSDocument._Gettitle: UnicodeString;
  81544. begin
  81545. Result:=ReadJSPropertyUnicodeString('title');
  81546. end;
  81547. function TJSDocument._Getdir: UnicodeString;
  81548. begin
  81549. Result:=ReadJSPropertyUnicodeString('dir');
  81550. end;
  81551. function TJSDocument._Getbody: IJSHTMLElement;
  81552. begin
  81553. Result:=ReadJSPropertyObject('body',TJSHTMLElement) as IJSHTMLElement;
  81554. end;
  81555. function TJSDocument._Gethead: IJSHTMLHeadElement;
  81556. begin
  81557. Result:=ReadJSPropertyObject('head',TJSHTMLHeadElement) as IJSHTMLHeadElement;
  81558. end;
  81559. function TJSDocument._Getimages: IJSHTMLCollection;
  81560. begin
  81561. Result:=ReadJSPropertyObject('images',TJSHTMLCollection) as IJSHTMLCollection;
  81562. end;
  81563. function TJSDocument._Getembeds: IJSHTMLCollection;
  81564. begin
  81565. Result:=ReadJSPropertyObject('embeds',TJSHTMLCollection) as IJSHTMLCollection;
  81566. end;
  81567. function TJSDocument._Getplugins: IJSHTMLCollection;
  81568. begin
  81569. Result:=ReadJSPropertyObject('plugins',TJSHTMLCollection) as IJSHTMLCollection;
  81570. end;
  81571. function TJSDocument._Getlinks: IJSHTMLCollection;
  81572. begin
  81573. Result:=ReadJSPropertyObject('links',TJSHTMLCollection) as IJSHTMLCollection;
  81574. end;
  81575. function TJSDocument._Getforms: IJSHTMLCollection;
  81576. begin
  81577. Result:=ReadJSPropertyObject('forms',TJSHTMLCollection) as IJSHTMLCollection;
  81578. end;
  81579. function TJSDocument._Getscripts: IJSHTMLCollection;
  81580. begin
  81581. Result:=ReadJSPropertyObject('scripts',TJSHTMLCollection) as IJSHTMLCollection;
  81582. end;
  81583. function TJSDocument._GetdefaultView: IJSWindowProxy;
  81584. begin
  81585. Result:=ReadJSPropertyObject('defaultView',TJSWindowProxy) as IJSWindowProxy;
  81586. end;
  81587. function TJSDocument._GetdesignMode: UnicodeString;
  81588. begin
  81589. Result:=ReadJSPropertyUnicodeString('designMode');
  81590. end;
  81591. function TJSDocument._Getonreadystatechange: TEventHandler;
  81592. begin
  81593. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onreadystatechange')));
  81594. end;
  81595. function TJSDocument._Getonbeforescriptexecute: TEventHandler;
  81596. begin
  81597. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforescriptexecute')));
  81598. end;
  81599. function TJSDocument._Getonafterscriptexecute: TEventHandler;
  81600. begin
  81601. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onafterscriptexecute')));
  81602. end;
  81603. function TJSDocument._GetmozSyntheticDocument: Boolean;
  81604. begin
  81605. Result:=ReadJSPropertyBoolean('mozSyntheticDocument');
  81606. end;
  81607. function TJSDocument._GetcurrentScript: IJSElement;
  81608. begin
  81609. Result:=ReadJSPropertyObject('currentScript',TJSElement) as IJSElement;
  81610. end;
  81611. function TJSDocument._GetfgColor: UnicodeString;
  81612. begin
  81613. Result:=ReadJSPropertyUnicodeString('fgColor');
  81614. end;
  81615. function TJSDocument._GetlinkColor: UnicodeString;
  81616. begin
  81617. Result:=ReadJSPropertyUnicodeString('linkColor');
  81618. end;
  81619. function TJSDocument._GetvlinkColor: UnicodeString;
  81620. begin
  81621. Result:=ReadJSPropertyUnicodeString('vlinkColor');
  81622. end;
  81623. function TJSDocument._GetalinkColor: UnicodeString;
  81624. begin
  81625. Result:=ReadJSPropertyUnicodeString('alinkColor');
  81626. end;
  81627. function TJSDocument._GetbgColor: UnicodeString;
  81628. begin
  81629. Result:=ReadJSPropertyUnicodeString('bgColor');
  81630. end;
  81631. function TJSDocument._Getanchors: IJSHTMLCollection;
  81632. begin
  81633. Result:=ReadJSPropertyObject('anchors',TJSHTMLCollection) as IJSHTMLCollection;
  81634. end;
  81635. function TJSDocument._Getapplets: IJSHTMLCollection;
  81636. begin
  81637. Result:=ReadJSPropertyObject('applets',TJSHTMLCollection) as IJSHTMLCollection;
  81638. end;
  81639. function TJSDocument._Getall: IJSHTMLAllCollection;
  81640. begin
  81641. Result:=ReadJSPropertyObject('all',TJSHTMLAllCollection) as IJSHTMLAllCollection;
  81642. end;
  81643. function TJSDocument._Getfullscreen: Boolean;
  81644. begin
  81645. Result:=ReadJSPropertyBoolean('fullscreen');
  81646. end;
  81647. function TJSDocument._GetmozFullScreen: Boolean;
  81648. begin
  81649. Result:=ReadJSPropertyBoolean('mozFullScreen');
  81650. end;
  81651. function TJSDocument._GetfullscreenEnabled: Boolean;
  81652. begin
  81653. Result:=ReadJSPropertyBoolean('fullscreenEnabled');
  81654. end;
  81655. function TJSDocument._GetmozFullScreenEnabled: Boolean;
  81656. begin
  81657. Result:=ReadJSPropertyBoolean('mozFullScreenEnabled');
  81658. end;
  81659. function TJSDocument._Getonfullscreenchange: TEventHandler;
  81660. begin
  81661. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfullscreenchange')));
  81662. end;
  81663. function TJSDocument._Getonfullscreenerror: TEventHandler;
  81664. begin
  81665. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfullscreenerror')));
  81666. end;
  81667. function TJSDocument._Getonpointerlockchange: TEventHandler;
  81668. begin
  81669. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerlockchange')));
  81670. end;
  81671. function TJSDocument._Getonpointerlockerror: TEventHandler;
  81672. begin
  81673. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerlockerror')));
  81674. end;
  81675. function TJSDocument._Gethidden: Boolean;
  81676. begin
  81677. Result:=ReadJSPropertyBoolean('hidden');
  81678. end;
  81679. function TJSDocument._GetvisibilityState: TVisibilityState;
  81680. begin
  81681. Result:=ReadJSPropertyUnicodeString('visibilityState');
  81682. end;
  81683. function TJSDocument._Getonvisibilitychange: TEventHandler;
  81684. begin
  81685. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvisibilitychange')));
  81686. end;
  81687. function TJSDocument._GetselectedStyleSheetSet: UnicodeString;
  81688. begin
  81689. Result:=ReadJSPropertyUnicodeString('selectedStyleSheetSet');
  81690. end;
  81691. function TJSDocument._GetlastStyleSheetSet: UnicodeString;
  81692. begin
  81693. Result:=ReadJSPropertyUnicodeString('lastStyleSheetSet');
  81694. end;
  81695. function TJSDocument._GetpreferredStyleSheetSet: UnicodeString;
  81696. begin
  81697. Result:=ReadJSPropertyUnicodeString('preferredStyleSheetSet');
  81698. end;
  81699. function TJSDocument._GetstyleSheetSets: IJSDOMStringList;
  81700. begin
  81701. Result:=ReadJSPropertyObject('styleSheetSets',TJSDOMStringList) as IJSDOMStringList;
  81702. end;
  81703. function TJSDocument._GetscrollingElement: IJSElement;
  81704. begin
  81705. Result:=ReadJSPropertyObject('scrollingElement',TJSElement) as IJSElement;
  81706. end;
  81707. function TJSDocument._Gettimeline: IJSDocumentTimeline;
  81708. begin
  81709. Result:=ReadJSPropertyObject('timeline',TJSDocumentTimeline) as IJSDocumentTimeline;
  81710. end;
  81711. function TJSDocument._GetrootElement: IJSSVGSVGElement;
  81712. begin
  81713. Result:=ReadJSPropertyObject('rootElement',TJSSVGSVGElement) as IJSSVGSVGElement;
  81714. end;
  81715. function TJSDocument._Getl10n: IJSObject;
  81716. begin
  81717. Result:=ReadJSPropertyObject('l10n',TJSObject) as IJSObject;
  81718. end;
  81719. function TJSDocument._GethasPendingL10nMutations: Boolean;
  81720. begin
  81721. Result:=ReadJSPropertyBoolean('hasPendingL10nMutations');
  81722. end;
  81723. function TJSDocument._GetfeaturePolicy: IJSFeaturePolicy;
  81724. begin
  81725. Result:=ReadJSPropertyObject('featurePolicy',TJSFeaturePolicy) as IJSFeaturePolicy;
  81726. end;
  81727. function TJSDocument._GetfragmentDirective: IJSFragmentDirective;
  81728. begin
  81729. Result:=ReadJSPropertyObject('fragmentDirective',TJSFragmentDirective) as IJSFragmentDirective;
  81730. end;
  81731. function TJSDocument._Getonabort: TEventHandler;
  81732. begin
  81733. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  81734. end;
  81735. function TJSDocument._Getonblur: TEventHandler;
  81736. begin
  81737. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onblur')));
  81738. end;
  81739. function TJSDocument._Getonfocus: TEventHandler;
  81740. begin
  81741. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfocus')));
  81742. end;
  81743. function TJSDocument._Getoncancel: TEventHandler;
  81744. begin
  81745. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncancel')));
  81746. end;
  81747. function TJSDocument._Getonauxclick: TEventHandler;
  81748. begin
  81749. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onauxclick')));
  81750. end;
  81751. function TJSDocument._Getonbeforeinput: TEventHandler;
  81752. begin
  81753. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforeinput')));
  81754. end;
  81755. function TJSDocument._Getonbeforetoggle: TEventHandler;
  81756. begin
  81757. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforetoggle')));
  81758. end;
  81759. function TJSDocument._Getoncanplay: TEventHandler;
  81760. begin
  81761. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplay')));
  81762. end;
  81763. function TJSDocument._Getoncanplaythrough: TEventHandler;
  81764. begin
  81765. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplaythrough')));
  81766. end;
  81767. function TJSDocument._Getonchange: TEventHandler;
  81768. begin
  81769. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  81770. end;
  81771. function TJSDocument._Getonclick: TEventHandler;
  81772. begin
  81773. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclick')));
  81774. end;
  81775. function TJSDocument._Getonclose: TEventHandler;
  81776. begin
  81777. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclose')));
  81778. end;
  81779. function TJSDocument._Getoncontextlost: TEventHandler;
  81780. begin
  81781. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextlost')));
  81782. end;
  81783. function TJSDocument._Getoncontextmenu: TEventHandler;
  81784. begin
  81785. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextmenu')));
  81786. end;
  81787. function TJSDocument._Getoncontextrestored: TEventHandler;
  81788. begin
  81789. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextrestored')));
  81790. end;
  81791. function TJSDocument._Getoncopy: TEventHandler;
  81792. begin
  81793. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncopy')));
  81794. end;
  81795. function TJSDocument._Getoncuechange: TEventHandler;
  81796. begin
  81797. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncuechange')));
  81798. end;
  81799. function TJSDocument._Getoncut: TEventHandler;
  81800. begin
  81801. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncut')));
  81802. end;
  81803. function TJSDocument._Getondblclick: TEventHandler;
  81804. begin
  81805. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondblclick')));
  81806. end;
  81807. function TJSDocument._Getondrag: TEventHandler;
  81808. begin
  81809. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrag')));
  81810. end;
  81811. function TJSDocument._Getondragend: TEventHandler;
  81812. begin
  81813. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragend')));
  81814. end;
  81815. function TJSDocument._Getondragenter: TEventHandler;
  81816. begin
  81817. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragenter')));
  81818. end;
  81819. function TJSDocument._Getondragexit: TEventHandler;
  81820. begin
  81821. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragexit')));
  81822. end;
  81823. function TJSDocument._Getondragleave: TEventHandler;
  81824. begin
  81825. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragleave')));
  81826. end;
  81827. function TJSDocument._Getondragover: TEventHandler;
  81828. begin
  81829. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragover')));
  81830. end;
  81831. function TJSDocument._Getondragstart: TEventHandler;
  81832. begin
  81833. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragstart')));
  81834. end;
  81835. function TJSDocument._Getondrop: TEventHandler;
  81836. begin
  81837. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrop')));
  81838. end;
  81839. function TJSDocument._Getondurationchange: TEventHandler;
  81840. begin
  81841. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondurationchange')));
  81842. end;
  81843. function TJSDocument._Getonemptied: TEventHandler;
  81844. begin
  81845. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onemptied')));
  81846. end;
  81847. function TJSDocument._Getonended: TEventHandler;
  81848. begin
  81849. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onended')));
  81850. end;
  81851. function TJSDocument._Getonformdata: TEventHandler;
  81852. begin
  81853. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onformdata')));
  81854. end;
  81855. function TJSDocument._Getoninput: TEventHandler;
  81856. begin
  81857. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninput')));
  81858. end;
  81859. function TJSDocument._Getoninvalid: TEventHandler;
  81860. begin
  81861. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninvalid')));
  81862. end;
  81863. function TJSDocument._Getonkeydown: TEventHandler;
  81864. begin
  81865. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeydown')));
  81866. end;
  81867. function TJSDocument._Getonkeypress: TEventHandler;
  81868. begin
  81869. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeypress')));
  81870. end;
  81871. function TJSDocument._Getonkeyup: TEventHandler;
  81872. begin
  81873. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeyup')));
  81874. end;
  81875. function TJSDocument._Getonload: TEventHandler;
  81876. begin
  81877. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onload')));
  81878. end;
  81879. function TJSDocument._Getonloadeddata: TEventHandler;
  81880. begin
  81881. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadeddata')));
  81882. end;
  81883. function TJSDocument._Getonloadedmetadata: TEventHandler;
  81884. begin
  81885. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadedmetadata')));
  81886. end;
  81887. function TJSDocument._Getonloadstart: TEventHandler;
  81888. begin
  81889. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadstart')));
  81890. end;
  81891. function TJSDocument._Getonmousedown: TEventHandler;
  81892. begin
  81893. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousedown')));
  81894. end;
  81895. function TJSDocument._Getonmouseenter: TEventHandler;
  81896. begin
  81897. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseenter')));
  81898. end;
  81899. function TJSDocument._Getonmouseleave: TEventHandler;
  81900. begin
  81901. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseleave')));
  81902. end;
  81903. function TJSDocument._Getonmousemove: TEventHandler;
  81904. begin
  81905. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousemove')));
  81906. end;
  81907. function TJSDocument._Getonmouseout: TEventHandler;
  81908. begin
  81909. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseout')));
  81910. end;
  81911. function TJSDocument._Getonmouseover: TEventHandler;
  81912. begin
  81913. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseover')));
  81914. end;
  81915. function TJSDocument._Getonmouseup: TEventHandler;
  81916. begin
  81917. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseup')));
  81918. end;
  81919. function TJSDocument._Getonwheel: TEventHandler;
  81920. begin
  81921. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwheel')));
  81922. end;
  81923. function TJSDocument._Getonpaste: TEventHandler;
  81924. begin
  81925. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpaste')));
  81926. end;
  81927. function TJSDocument._Getonpause: TEventHandler;
  81928. begin
  81929. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpause')));
  81930. end;
  81931. function TJSDocument._Getonplay: TEventHandler;
  81932. begin
  81933. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplay')));
  81934. end;
  81935. function TJSDocument._Getonplaying: TEventHandler;
  81936. begin
  81937. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplaying')));
  81938. end;
  81939. function TJSDocument._Getonprogress: TEventHandler;
  81940. begin
  81941. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onprogress')));
  81942. end;
  81943. function TJSDocument._Getonratechange: TEventHandler;
  81944. begin
  81945. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onratechange')));
  81946. end;
  81947. function TJSDocument._Getonreset: TEventHandler;
  81948. begin
  81949. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onreset')));
  81950. end;
  81951. function TJSDocument._Getonresize: TEventHandler;
  81952. begin
  81953. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresize')));
  81954. end;
  81955. function TJSDocument._Getonscroll: TEventHandler;
  81956. begin
  81957. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscroll')));
  81958. end;
  81959. function TJSDocument._Getonscrollend: TEventHandler;
  81960. begin
  81961. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscrollend')));
  81962. end;
  81963. function TJSDocument._Getonsecuritypolicyviolation: TEventHandler;
  81964. begin
  81965. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsecuritypolicyviolation')));
  81966. end;
  81967. function TJSDocument._Getonseeked: TEventHandler;
  81968. begin
  81969. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeked')));
  81970. end;
  81971. function TJSDocument._Getonseeking: TEventHandler;
  81972. begin
  81973. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeking')));
  81974. end;
  81975. function TJSDocument._Getonselect: TEventHandler;
  81976. begin
  81977. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselect')));
  81978. end;
  81979. function TJSDocument._Getonslotchange: TEventHandler;
  81980. begin
  81981. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onslotchange')));
  81982. end;
  81983. function TJSDocument._Getonstalled: TEventHandler;
  81984. begin
  81985. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstalled')));
  81986. end;
  81987. function TJSDocument._Getonsubmit: TEventHandler;
  81988. begin
  81989. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsubmit')));
  81990. end;
  81991. function TJSDocument._Getonsuspend: TEventHandler;
  81992. begin
  81993. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsuspend')));
  81994. end;
  81995. function TJSDocument._Getontimeupdate: TEventHandler;
  81996. begin
  81997. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontimeupdate')));
  81998. end;
  81999. function TJSDocument._Getonvolumechange: TEventHandler;
  82000. begin
  82001. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvolumechange')));
  82002. end;
  82003. function TJSDocument._Getonwaiting: TEventHandler;
  82004. begin
  82005. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwaiting')));
  82006. end;
  82007. function TJSDocument._Getonselectstart: TEventHandler;
  82008. begin
  82009. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectstart')));
  82010. end;
  82011. function TJSDocument._Getonselectionchange: TEventHandler;
  82012. begin
  82013. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectionchange')));
  82014. end;
  82015. function TJSDocument._Getontoggle: TEventHandler;
  82016. begin
  82017. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontoggle')));
  82018. end;
  82019. function TJSDocument._Getonpointercancel: TEventHandler;
  82020. begin
  82021. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointercancel')));
  82022. end;
  82023. function TJSDocument._Getonpointerdown: TEventHandler;
  82024. begin
  82025. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerdown')));
  82026. end;
  82027. function TJSDocument._Getonpointerup: TEventHandler;
  82028. begin
  82029. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerup')));
  82030. end;
  82031. function TJSDocument._Getonpointermove: TEventHandler;
  82032. begin
  82033. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointermove')));
  82034. end;
  82035. function TJSDocument._Getonpointerout: TEventHandler;
  82036. begin
  82037. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerout')));
  82038. end;
  82039. function TJSDocument._Getonpointerover: TEventHandler;
  82040. begin
  82041. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerover')));
  82042. end;
  82043. function TJSDocument._Getonpointerenter: TEventHandler;
  82044. begin
  82045. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerenter')));
  82046. end;
  82047. function TJSDocument._Getonpointerleave: TEventHandler;
  82048. begin
  82049. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerleave')));
  82050. end;
  82051. function TJSDocument._Getongotpointercapture: TEventHandler;
  82052. begin
  82053. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongotpointercapture')));
  82054. end;
  82055. function TJSDocument._Getonlostpointercapture: TEventHandler;
  82056. begin
  82057. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onlostpointercapture')));
  82058. end;
  82059. function TJSDocument._Getonmozfullscreenchange: TEventHandler;
  82060. begin
  82061. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenchange')));
  82062. end;
  82063. function TJSDocument._Getonmozfullscreenerror: TEventHandler;
  82064. begin
  82065. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenerror')));
  82066. end;
  82067. function TJSDocument._Getonanimationcancel: TEventHandler;
  82068. begin
  82069. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationcancel')));
  82070. end;
  82071. function TJSDocument._Getonanimationend: TEventHandler;
  82072. begin
  82073. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationend')));
  82074. end;
  82075. function TJSDocument._Getonanimationiteration: TEventHandler;
  82076. begin
  82077. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationiteration')));
  82078. end;
  82079. function TJSDocument._Getonanimationstart: TEventHandler;
  82080. begin
  82081. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationstart')));
  82082. end;
  82083. function TJSDocument._Getontransitioncancel: TEventHandler;
  82084. begin
  82085. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitioncancel')));
  82086. end;
  82087. function TJSDocument._Getontransitionend: TEventHandler;
  82088. begin
  82089. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionend')));
  82090. end;
  82091. function TJSDocument._Getontransitionrun: TEventHandler;
  82092. begin
  82093. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionrun')));
  82094. end;
  82095. function TJSDocument._Getontransitionstart: TEventHandler;
  82096. begin
  82097. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionstart')));
  82098. end;
  82099. function TJSDocument._Getonwebkitanimationend: TEventHandler;
  82100. begin
  82101. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationend')));
  82102. end;
  82103. function TJSDocument._Getonwebkitanimationiteration: TEventHandler;
  82104. begin
  82105. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationiteration')));
  82106. end;
  82107. function TJSDocument._Getonwebkitanimationstart: TEventHandler;
  82108. begin
  82109. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationstart')));
  82110. end;
  82111. function TJSDocument._Getonwebkittransitionend: TEventHandler;
  82112. begin
  82113. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkittransitionend')));
  82114. end;
  82115. function TJSDocument._Getontouchstart: TEventHandler;
  82116. begin
  82117. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchstart')));
  82118. end;
  82119. function TJSDocument._Getontouchend: TEventHandler;
  82120. begin
  82121. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchend')));
  82122. end;
  82123. function TJSDocument._Getontouchmove: TEventHandler;
  82124. begin
  82125. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchmove')));
  82126. end;
  82127. function TJSDocument._Getontouchcancel: TEventHandler;
  82128. begin
  82129. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchcancel')));
  82130. end;
  82131. function TJSDocument._Getchildren: IJSHTMLCollection;
  82132. begin
  82133. Result:=ReadJSPropertyObject('children',TJSHTMLCollection) as IJSHTMLCollection;
  82134. end;
  82135. function TJSDocument._GetfirstElementChild: IJSElement;
  82136. begin
  82137. Result:=ReadJSPropertyObject('firstElementChild',TJSElement) as IJSElement;
  82138. end;
  82139. function TJSDocument._GetlastElementChild: IJSElement;
  82140. begin
  82141. Result:=ReadJSPropertyObject('lastElementChild',TJSElement) as IJSElement;
  82142. end;
  82143. function TJSDocument._GetchildElementCount: Cardinal;
  82144. begin
  82145. Result:=ReadJSPropertyInt64('childElementCount');
  82146. end;
  82147. function TJSDocument._Getonerror: TEventHandler;
  82148. begin
  82149. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  82150. end;
  82151. function TJSDocument._Getfonts: IJSFontFaceSet;
  82152. begin
  82153. Result:=ReadJSPropertyObject('fonts',TJSFontFaceSet) as IJSFontFaceSet;
  82154. end;
  82155. function TJSDocument._GetactiveElement: IJSElement;
  82156. begin
  82157. Result:=ReadJSPropertyObject('activeElement',TJSElement) as IJSElement;
  82158. end;
  82159. function TJSDocument._GetstyleSheets: IJSStyleSheetList;
  82160. begin
  82161. Result:=ReadJSPropertyObject('styleSheets',TJSStyleSheetList) as IJSStyleSheetList;
  82162. end;
  82163. function TJSDocument._GetpointerLockElement: IJSElement;
  82164. begin
  82165. Result:=ReadJSPropertyObject('pointerLockElement',TJSElement) as IJSElement;
  82166. end;
  82167. function TJSDocument._GetfullscreenElement: IJSElement;
  82168. begin
  82169. Result:=ReadJSPropertyObject('fullscreenElement',TJSElement) as IJSElement;
  82170. end;
  82171. function TJSDocument._GetmozFullScreenElement: IJSElement;
  82172. begin
  82173. Result:=ReadJSPropertyObject('mozFullScreenElement',TJSElement) as IJSElement;
  82174. end;
  82175. function TJSDocument._GetadoptedStyleSheets: TJSCSSStyleSheetDynArray;
  82176. begin
  82177. Result:=ReadJSPropertyObject('adoptedStyleSheets',TJSArray) as TJSCSSStyleSheetDynArray;
  82178. end;
  82179. procedure TJSDocument._Setdomain(const aValue : UnicodeString);
  82180. begin
  82181. WriteJSPropertyUnicodeString('domain',aValue);
  82182. end;
  82183. procedure TJSDocument._Setcookie(const aValue : UnicodeString);
  82184. begin
  82185. WriteJSPropertyUnicodeString('cookie',aValue);
  82186. end;
  82187. procedure TJSDocument._Settitle(const aValue : UnicodeString);
  82188. begin
  82189. WriteJSPropertyUnicodeString('title',aValue);
  82190. end;
  82191. procedure TJSDocument._Setdir(const aValue : UnicodeString);
  82192. begin
  82193. WriteJSPropertyUnicodeString('dir',aValue);
  82194. end;
  82195. procedure TJSDocument._Setbody(const aValue : IJSHTMLElement);
  82196. begin
  82197. WriteJSPropertyObject('body',aValue);
  82198. end;
  82199. procedure TJSDocument._SetdesignMode(const aValue : UnicodeString);
  82200. begin
  82201. WriteJSPropertyUnicodeString('designMode',aValue);
  82202. end;
  82203. procedure TJSDocument._Setonreadystatechange(const aValue : TEventHandler);
  82204. begin
  82205. WriteJSPropertyMethod('onreadystatechange',TMethod(aValue));
  82206. end;
  82207. procedure TJSDocument._Setonbeforescriptexecute(const aValue : TEventHandler);
  82208. begin
  82209. WriteJSPropertyMethod('onbeforescriptexecute',TMethod(aValue));
  82210. end;
  82211. procedure TJSDocument._Setonafterscriptexecute(const aValue : TEventHandler);
  82212. begin
  82213. WriteJSPropertyMethod('onafterscriptexecute',TMethod(aValue));
  82214. end;
  82215. procedure TJSDocument._SetfgColor(const aValue : UnicodeString);
  82216. begin
  82217. WriteJSPropertyUnicodeString('fgColor',aValue);
  82218. end;
  82219. procedure TJSDocument._SetlinkColor(const aValue : UnicodeString);
  82220. begin
  82221. WriteJSPropertyUnicodeString('linkColor',aValue);
  82222. end;
  82223. procedure TJSDocument._SetvlinkColor(const aValue : UnicodeString);
  82224. begin
  82225. WriteJSPropertyUnicodeString('vlinkColor',aValue);
  82226. end;
  82227. procedure TJSDocument._SetalinkColor(const aValue : UnicodeString);
  82228. begin
  82229. WriteJSPropertyUnicodeString('alinkColor',aValue);
  82230. end;
  82231. procedure TJSDocument._SetbgColor(const aValue : UnicodeString);
  82232. begin
  82233. WriteJSPropertyUnicodeString('bgColor',aValue);
  82234. end;
  82235. procedure TJSDocument._Setonfullscreenchange(const aValue : TEventHandler);
  82236. begin
  82237. WriteJSPropertyMethod('onfullscreenchange',TMethod(aValue));
  82238. end;
  82239. procedure TJSDocument._Setonfullscreenerror(const aValue : TEventHandler);
  82240. begin
  82241. WriteJSPropertyMethod('onfullscreenerror',TMethod(aValue));
  82242. end;
  82243. procedure TJSDocument._Setonpointerlockchange(const aValue : TEventHandler);
  82244. begin
  82245. WriteJSPropertyMethod('onpointerlockchange',TMethod(aValue));
  82246. end;
  82247. procedure TJSDocument._Setonpointerlockerror(const aValue : TEventHandler);
  82248. begin
  82249. WriteJSPropertyMethod('onpointerlockerror',TMethod(aValue));
  82250. end;
  82251. procedure TJSDocument._Setonvisibilitychange(const aValue : TEventHandler);
  82252. begin
  82253. WriteJSPropertyMethod('onvisibilitychange',TMethod(aValue));
  82254. end;
  82255. procedure TJSDocument._SetselectedStyleSheetSet(const aValue : UnicodeString);
  82256. begin
  82257. WriteJSPropertyUnicodeString('selectedStyleSheetSet',aValue);
  82258. end;
  82259. procedure TJSDocument._Setonabort(const aValue : TEventHandler);
  82260. begin
  82261. WriteJSPropertyMethod('onabort',TMethod(aValue));
  82262. end;
  82263. procedure TJSDocument._Setonblur(const aValue : TEventHandler);
  82264. begin
  82265. WriteJSPropertyMethod('onblur',TMethod(aValue));
  82266. end;
  82267. procedure TJSDocument._Setonfocus(const aValue : TEventHandler);
  82268. begin
  82269. WriteJSPropertyMethod('onfocus',TMethod(aValue));
  82270. end;
  82271. procedure TJSDocument._Setoncancel(const aValue : TEventHandler);
  82272. begin
  82273. WriteJSPropertyMethod('oncancel',TMethod(aValue));
  82274. end;
  82275. procedure TJSDocument._Setonauxclick(const aValue : TEventHandler);
  82276. begin
  82277. WriteJSPropertyMethod('onauxclick',TMethod(aValue));
  82278. end;
  82279. procedure TJSDocument._Setonbeforeinput(const aValue : TEventHandler);
  82280. begin
  82281. WriteJSPropertyMethod('onbeforeinput',TMethod(aValue));
  82282. end;
  82283. procedure TJSDocument._Setonbeforetoggle(const aValue : TEventHandler);
  82284. begin
  82285. WriteJSPropertyMethod('onbeforetoggle',TMethod(aValue));
  82286. end;
  82287. procedure TJSDocument._Setoncanplay(const aValue : TEventHandler);
  82288. begin
  82289. WriteJSPropertyMethod('oncanplay',TMethod(aValue));
  82290. end;
  82291. procedure TJSDocument._Setoncanplaythrough(const aValue : TEventHandler);
  82292. begin
  82293. WriteJSPropertyMethod('oncanplaythrough',TMethod(aValue));
  82294. end;
  82295. procedure TJSDocument._Setonchange(const aValue : TEventHandler);
  82296. begin
  82297. WriteJSPropertyMethod('onchange',TMethod(aValue));
  82298. end;
  82299. procedure TJSDocument._Setonclick(const aValue : TEventHandler);
  82300. begin
  82301. WriteJSPropertyMethod('onclick',TMethod(aValue));
  82302. end;
  82303. procedure TJSDocument._Setonclose(const aValue : TEventHandler);
  82304. begin
  82305. WriteJSPropertyMethod('onclose',TMethod(aValue));
  82306. end;
  82307. procedure TJSDocument._Setoncontextlost(const aValue : TEventHandler);
  82308. begin
  82309. WriteJSPropertyMethod('oncontextlost',TMethod(aValue));
  82310. end;
  82311. procedure TJSDocument._Setoncontextmenu(const aValue : TEventHandler);
  82312. begin
  82313. WriteJSPropertyMethod('oncontextmenu',TMethod(aValue));
  82314. end;
  82315. procedure TJSDocument._Setoncontextrestored(const aValue : TEventHandler);
  82316. begin
  82317. WriteJSPropertyMethod('oncontextrestored',TMethod(aValue));
  82318. end;
  82319. procedure TJSDocument._Setoncopy(const aValue : TEventHandler);
  82320. begin
  82321. WriteJSPropertyMethod('oncopy',TMethod(aValue));
  82322. end;
  82323. procedure TJSDocument._Setoncuechange(const aValue : TEventHandler);
  82324. begin
  82325. WriteJSPropertyMethod('oncuechange',TMethod(aValue));
  82326. end;
  82327. procedure TJSDocument._Setoncut(const aValue : TEventHandler);
  82328. begin
  82329. WriteJSPropertyMethod('oncut',TMethod(aValue));
  82330. end;
  82331. procedure TJSDocument._Setondblclick(const aValue : TEventHandler);
  82332. begin
  82333. WriteJSPropertyMethod('ondblclick',TMethod(aValue));
  82334. end;
  82335. procedure TJSDocument._Setondrag(const aValue : TEventHandler);
  82336. begin
  82337. WriteJSPropertyMethod('ondrag',TMethod(aValue));
  82338. end;
  82339. procedure TJSDocument._Setondragend(const aValue : TEventHandler);
  82340. begin
  82341. WriteJSPropertyMethod('ondragend',TMethod(aValue));
  82342. end;
  82343. procedure TJSDocument._Setondragenter(const aValue : TEventHandler);
  82344. begin
  82345. WriteJSPropertyMethod('ondragenter',TMethod(aValue));
  82346. end;
  82347. procedure TJSDocument._Setondragexit(const aValue : TEventHandler);
  82348. begin
  82349. WriteJSPropertyMethod('ondragexit',TMethod(aValue));
  82350. end;
  82351. procedure TJSDocument._Setondragleave(const aValue : TEventHandler);
  82352. begin
  82353. WriteJSPropertyMethod('ondragleave',TMethod(aValue));
  82354. end;
  82355. procedure TJSDocument._Setondragover(const aValue : TEventHandler);
  82356. begin
  82357. WriteJSPropertyMethod('ondragover',TMethod(aValue));
  82358. end;
  82359. procedure TJSDocument._Setondragstart(const aValue : TEventHandler);
  82360. begin
  82361. WriteJSPropertyMethod('ondragstart',TMethod(aValue));
  82362. end;
  82363. procedure TJSDocument._Setondrop(const aValue : TEventHandler);
  82364. begin
  82365. WriteJSPropertyMethod('ondrop',TMethod(aValue));
  82366. end;
  82367. procedure TJSDocument._Setondurationchange(const aValue : TEventHandler);
  82368. begin
  82369. WriteJSPropertyMethod('ondurationchange',TMethod(aValue));
  82370. end;
  82371. procedure TJSDocument._Setonemptied(const aValue : TEventHandler);
  82372. begin
  82373. WriteJSPropertyMethod('onemptied',TMethod(aValue));
  82374. end;
  82375. procedure TJSDocument._Setonended(const aValue : TEventHandler);
  82376. begin
  82377. WriteJSPropertyMethod('onended',TMethod(aValue));
  82378. end;
  82379. procedure TJSDocument._Setonformdata(const aValue : TEventHandler);
  82380. begin
  82381. WriteJSPropertyMethod('onformdata',TMethod(aValue));
  82382. end;
  82383. procedure TJSDocument._Setoninput(const aValue : TEventHandler);
  82384. begin
  82385. WriteJSPropertyMethod('oninput',TMethod(aValue));
  82386. end;
  82387. procedure TJSDocument._Setoninvalid(const aValue : TEventHandler);
  82388. begin
  82389. WriteJSPropertyMethod('oninvalid',TMethod(aValue));
  82390. end;
  82391. procedure TJSDocument._Setonkeydown(const aValue : TEventHandler);
  82392. begin
  82393. WriteJSPropertyMethod('onkeydown',TMethod(aValue));
  82394. end;
  82395. procedure TJSDocument._Setonkeypress(const aValue : TEventHandler);
  82396. begin
  82397. WriteJSPropertyMethod('onkeypress',TMethod(aValue));
  82398. end;
  82399. procedure TJSDocument._Setonkeyup(const aValue : TEventHandler);
  82400. begin
  82401. WriteJSPropertyMethod('onkeyup',TMethod(aValue));
  82402. end;
  82403. procedure TJSDocument._Setonload(const aValue : TEventHandler);
  82404. begin
  82405. WriteJSPropertyMethod('onload',TMethod(aValue));
  82406. end;
  82407. procedure TJSDocument._Setonloadeddata(const aValue : TEventHandler);
  82408. begin
  82409. WriteJSPropertyMethod('onloadeddata',TMethod(aValue));
  82410. end;
  82411. procedure TJSDocument._Setonloadedmetadata(const aValue : TEventHandler);
  82412. begin
  82413. WriteJSPropertyMethod('onloadedmetadata',TMethod(aValue));
  82414. end;
  82415. procedure TJSDocument._Setonloadstart(const aValue : TEventHandler);
  82416. begin
  82417. WriteJSPropertyMethod('onloadstart',TMethod(aValue));
  82418. end;
  82419. procedure TJSDocument._Setonmousedown(const aValue : TEventHandler);
  82420. begin
  82421. WriteJSPropertyMethod('onmousedown',TMethod(aValue));
  82422. end;
  82423. procedure TJSDocument._Setonmouseenter(const aValue : TEventHandler);
  82424. begin
  82425. WriteJSPropertyMethod('onmouseenter',TMethod(aValue));
  82426. end;
  82427. procedure TJSDocument._Setonmouseleave(const aValue : TEventHandler);
  82428. begin
  82429. WriteJSPropertyMethod('onmouseleave',TMethod(aValue));
  82430. end;
  82431. procedure TJSDocument._Setonmousemove(const aValue : TEventHandler);
  82432. begin
  82433. WriteJSPropertyMethod('onmousemove',TMethod(aValue));
  82434. end;
  82435. procedure TJSDocument._Setonmouseout(const aValue : TEventHandler);
  82436. begin
  82437. WriteJSPropertyMethod('onmouseout',TMethod(aValue));
  82438. end;
  82439. procedure TJSDocument._Setonmouseover(const aValue : TEventHandler);
  82440. begin
  82441. WriteJSPropertyMethod('onmouseover',TMethod(aValue));
  82442. end;
  82443. procedure TJSDocument._Setonmouseup(const aValue : TEventHandler);
  82444. begin
  82445. WriteJSPropertyMethod('onmouseup',TMethod(aValue));
  82446. end;
  82447. procedure TJSDocument._Setonwheel(const aValue : TEventHandler);
  82448. begin
  82449. WriteJSPropertyMethod('onwheel',TMethod(aValue));
  82450. end;
  82451. procedure TJSDocument._Setonpaste(const aValue : TEventHandler);
  82452. begin
  82453. WriteJSPropertyMethod('onpaste',TMethod(aValue));
  82454. end;
  82455. procedure TJSDocument._Setonpause(const aValue : TEventHandler);
  82456. begin
  82457. WriteJSPropertyMethod('onpause',TMethod(aValue));
  82458. end;
  82459. procedure TJSDocument._Setonplay(const aValue : TEventHandler);
  82460. begin
  82461. WriteJSPropertyMethod('onplay',TMethod(aValue));
  82462. end;
  82463. procedure TJSDocument._Setonplaying(const aValue : TEventHandler);
  82464. begin
  82465. WriteJSPropertyMethod('onplaying',TMethod(aValue));
  82466. end;
  82467. procedure TJSDocument._Setonprogress(const aValue : TEventHandler);
  82468. begin
  82469. WriteJSPropertyMethod('onprogress',TMethod(aValue));
  82470. end;
  82471. procedure TJSDocument._Setonratechange(const aValue : TEventHandler);
  82472. begin
  82473. WriteJSPropertyMethod('onratechange',TMethod(aValue));
  82474. end;
  82475. procedure TJSDocument._Setonreset(const aValue : TEventHandler);
  82476. begin
  82477. WriteJSPropertyMethod('onreset',TMethod(aValue));
  82478. end;
  82479. procedure TJSDocument._Setonresize(const aValue : TEventHandler);
  82480. begin
  82481. WriteJSPropertyMethod('onresize',TMethod(aValue));
  82482. end;
  82483. procedure TJSDocument._Setonscroll(const aValue : TEventHandler);
  82484. begin
  82485. WriteJSPropertyMethod('onscroll',TMethod(aValue));
  82486. end;
  82487. procedure TJSDocument._Setonscrollend(const aValue : TEventHandler);
  82488. begin
  82489. WriteJSPropertyMethod('onscrollend',TMethod(aValue));
  82490. end;
  82491. procedure TJSDocument._Setonsecuritypolicyviolation(const aValue : TEventHandler);
  82492. begin
  82493. WriteJSPropertyMethod('onsecuritypolicyviolation',TMethod(aValue));
  82494. end;
  82495. procedure TJSDocument._Setonseeked(const aValue : TEventHandler);
  82496. begin
  82497. WriteJSPropertyMethod('onseeked',TMethod(aValue));
  82498. end;
  82499. procedure TJSDocument._Setonseeking(const aValue : TEventHandler);
  82500. begin
  82501. WriteJSPropertyMethod('onseeking',TMethod(aValue));
  82502. end;
  82503. procedure TJSDocument._Setonselect(const aValue : TEventHandler);
  82504. begin
  82505. WriteJSPropertyMethod('onselect',TMethod(aValue));
  82506. end;
  82507. procedure TJSDocument._Setonslotchange(const aValue : TEventHandler);
  82508. begin
  82509. WriteJSPropertyMethod('onslotchange',TMethod(aValue));
  82510. end;
  82511. procedure TJSDocument._Setonstalled(const aValue : TEventHandler);
  82512. begin
  82513. WriteJSPropertyMethod('onstalled',TMethod(aValue));
  82514. end;
  82515. procedure TJSDocument._Setonsubmit(const aValue : TEventHandler);
  82516. begin
  82517. WriteJSPropertyMethod('onsubmit',TMethod(aValue));
  82518. end;
  82519. procedure TJSDocument._Setonsuspend(const aValue : TEventHandler);
  82520. begin
  82521. WriteJSPropertyMethod('onsuspend',TMethod(aValue));
  82522. end;
  82523. procedure TJSDocument._Setontimeupdate(const aValue : TEventHandler);
  82524. begin
  82525. WriteJSPropertyMethod('ontimeupdate',TMethod(aValue));
  82526. end;
  82527. procedure TJSDocument._Setonvolumechange(const aValue : TEventHandler);
  82528. begin
  82529. WriteJSPropertyMethod('onvolumechange',TMethod(aValue));
  82530. end;
  82531. procedure TJSDocument._Setonwaiting(const aValue : TEventHandler);
  82532. begin
  82533. WriteJSPropertyMethod('onwaiting',TMethod(aValue));
  82534. end;
  82535. procedure TJSDocument._Setonselectstart(const aValue : TEventHandler);
  82536. begin
  82537. WriteJSPropertyMethod('onselectstart',TMethod(aValue));
  82538. end;
  82539. procedure TJSDocument._Setonselectionchange(const aValue : TEventHandler);
  82540. begin
  82541. WriteJSPropertyMethod('onselectionchange',TMethod(aValue));
  82542. end;
  82543. procedure TJSDocument._Setontoggle(const aValue : TEventHandler);
  82544. begin
  82545. WriteJSPropertyMethod('ontoggle',TMethod(aValue));
  82546. end;
  82547. procedure TJSDocument._Setonpointercancel(const aValue : TEventHandler);
  82548. begin
  82549. WriteJSPropertyMethod('onpointercancel',TMethod(aValue));
  82550. end;
  82551. procedure TJSDocument._Setonpointerdown(const aValue : TEventHandler);
  82552. begin
  82553. WriteJSPropertyMethod('onpointerdown',TMethod(aValue));
  82554. end;
  82555. procedure TJSDocument._Setonpointerup(const aValue : TEventHandler);
  82556. begin
  82557. WriteJSPropertyMethod('onpointerup',TMethod(aValue));
  82558. end;
  82559. procedure TJSDocument._Setonpointermove(const aValue : TEventHandler);
  82560. begin
  82561. WriteJSPropertyMethod('onpointermove',TMethod(aValue));
  82562. end;
  82563. procedure TJSDocument._Setonpointerout(const aValue : TEventHandler);
  82564. begin
  82565. WriteJSPropertyMethod('onpointerout',TMethod(aValue));
  82566. end;
  82567. procedure TJSDocument._Setonpointerover(const aValue : TEventHandler);
  82568. begin
  82569. WriteJSPropertyMethod('onpointerover',TMethod(aValue));
  82570. end;
  82571. procedure TJSDocument._Setonpointerenter(const aValue : TEventHandler);
  82572. begin
  82573. WriteJSPropertyMethod('onpointerenter',TMethod(aValue));
  82574. end;
  82575. procedure TJSDocument._Setonpointerleave(const aValue : TEventHandler);
  82576. begin
  82577. WriteJSPropertyMethod('onpointerleave',TMethod(aValue));
  82578. end;
  82579. procedure TJSDocument._Setongotpointercapture(const aValue : TEventHandler);
  82580. begin
  82581. WriteJSPropertyMethod('ongotpointercapture',TMethod(aValue));
  82582. end;
  82583. procedure TJSDocument._Setonlostpointercapture(const aValue : TEventHandler);
  82584. begin
  82585. WriteJSPropertyMethod('onlostpointercapture',TMethod(aValue));
  82586. end;
  82587. procedure TJSDocument._Setonmozfullscreenchange(const aValue : TEventHandler);
  82588. begin
  82589. WriteJSPropertyMethod('onmozfullscreenchange',TMethod(aValue));
  82590. end;
  82591. procedure TJSDocument._Setonmozfullscreenerror(const aValue : TEventHandler);
  82592. begin
  82593. WriteJSPropertyMethod('onmozfullscreenerror',TMethod(aValue));
  82594. end;
  82595. procedure TJSDocument._Setonanimationcancel(const aValue : TEventHandler);
  82596. begin
  82597. WriteJSPropertyMethod('onanimationcancel',TMethod(aValue));
  82598. end;
  82599. procedure TJSDocument._Setonanimationend(const aValue : TEventHandler);
  82600. begin
  82601. WriteJSPropertyMethod('onanimationend',TMethod(aValue));
  82602. end;
  82603. procedure TJSDocument._Setonanimationiteration(const aValue : TEventHandler);
  82604. begin
  82605. WriteJSPropertyMethod('onanimationiteration',TMethod(aValue));
  82606. end;
  82607. procedure TJSDocument._Setonanimationstart(const aValue : TEventHandler);
  82608. begin
  82609. WriteJSPropertyMethod('onanimationstart',TMethod(aValue));
  82610. end;
  82611. procedure TJSDocument._Setontransitioncancel(const aValue : TEventHandler);
  82612. begin
  82613. WriteJSPropertyMethod('ontransitioncancel',TMethod(aValue));
  82614. end;
  82615. procedure TJSDocument._Setontransitionend(const aValue : TEventHandler);
  82616. begin
  82617. WriteJSPropertyMethod('ontransitionend',TMethod(aValue));
  82618. end;
  82619. procedure TJSDocument._Setontransitionrun(const aValue : TEventHandler);
  82620. begin
  82621. WriteJSPropertyMethod('ontransitionrun',TMethod(aValue));
  82622. end;
  82623. procedure TJSDocument._Setontransitionstart(const aValue : TEventHandler);
  82624. begin
  82625. WriteJSPropertyMethod('ontransitionstart',TMethod(aValue));
  82626. end;
  82627. procedure TJSDocument._Setonwebkitanimationend(const aValue : TEventHandler);
  82628. begin
  82629. WriteJSPropertyMethod('onwebkitanimationend',TMethod(aValue));
  82630. end;
  82631. procedure TJSDocument._Setonwebkitanimationiteration(const aValue : TEventHandler);
  82632. begin
  82633. WriteJSPropertyMethod('onwebkitanimationiteration',TMethod(aValue));
  82634. end;
  82635. procedure TJSDocument._Setonwebkitanimationstart(const aValue : TEventHandler);
  82636. begin
  82637. WriteJSPropertyMethod('onwebkitanimationstart',TMethod(aValue));
  82638. end;
  82639. procedure TJSDocument._Setonwebkittransitionend(const aValue : TEventHandler);
  82640. begin
  82641. WriteJSPropertyMethod('onwebkittransitionend',TMethod(aValue));
  82642. end;
  82643. procedure TJSDocument._Setontouchstart(const aValue : TEventHandler);
  82644. begin
  82645. WriteJSPropertyMethod('ontouchstart',TMethod(aValue));
  82646. end;
  82647. procedure TJSDocument._Setontouchend(const aValue : TEventHandler);
  82648. begin
  82649. WriteJSPropertyMethod('ontouchend',TMethod(aValue));
  82650. end;
  82651. procedure TJSDocument._Setontouchmove(const aValue : TEventHandler);
  82652. begin
  82653. WriteJSPropertyMethod('ontouchmove',TMethod(aValue));
  82654. end;
  82655. procedure TJSDocument._Setontouchcancel(const aValue : TEventHandler);
  82656. begin
  82657. WriteJSPropertyMethod('ontouchcancel',TMethod(aValue));
  82658. end;
  82659. procedure TJSDocument._Setonerror(const aValue : TEventHandler);
  82660. begin
  82661. WriteJSPropertyMethod('onerror',TMethod(aValue));
  82662. end;
  82663. procedure TJSDocument._SetadoptedStyleSheets(const aValue : TJSCSSStyleSheetDynArray);
  82664. begin
  82665. WriteJSPropertyObject('adoptedStyleSheets',aValue);
  82666. end;
  82667. constructor TJSDocument.Create;
  82668. begin
  82669. JOBCreate([]);
  82670. end;
  82671. function TJSDocument.getElementsByTagName(const aLocalName: UnicodeString): IJSHTMLCollection;
  82672. begin
  82673. Result:=InvokeJSObjectResult('getElementsByTagName',[aLocalName],TJSHTMLCollection) as IJSHTMLCollection;
  82674. end;
  82675. function TJSDocument.getElementsByTagNameNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): IJSHTMLCollection;
  82676. begin
  82677. Result:=InvokeJSObjectResult('getElementsByTagNameNS',[aNamespace,aLocalName],TJSHTMLCollection) as IJSHTMLCollection;
  82678. end;
  82679. function TJSDocument.getElementsByClassName(const aClassNames: UnicodeString): IJSHTMLCollection;
  82680. begin
  82681. Result:=InvokeJSObjectResult('getElementsByClassName',[aClassNames],TJSHTMLCollection) as IJSHTMLCollection;
  82682. end;
  82683. function TJSDocument.createElement(const aLocalName: UnicodeString; const aOptions: UnicodeString): IJSElement;
  82684. begin
  82685. Result:=InvokeJSObjectResult('createElement',[aLocalName,aOptions],TJSElement) as IJSElement;
  82686. end;
  82687. function TJSDocument.createElement(const aLocalName: UnicodeString): IJSElement;
  82688. begin
  82689. Result:=InvokeJSObjectResult('createElement',[aLocalName],TJSElement) as IJSElement;
  82690. end;
  82691. function TJSDocument.createElement(const aLocalName: UnicodeString; const aOptions: TJSElementCreationOptions): IJSElement;
  82692. begin
  82693. Result:=InvokeJSObjectResult('createElement',[aLocalName,aOptions],TJSElement) as IJSElement;
  82694. end;
  82695. function TJSDocument.createElementNS(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString; const aOptions: UnicodeString): IJSElement;
  82696. begin
  82697. Result:=InvokeJSObjectResult('createElementNS',[aNamespace,aQualifiedName,aOptions],TJSElement) as IJSElement;
  82698. end;
  82699. function TJSDocument.createElementNS(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString): IJSElement;
  82700. begin
  82701. Result:=InvokeJSObjectResult('createElementNS',[aNamespace,aQualifiedName],TJSElement) as IJSElement;
  82702. end;
  82703. function TJSDocument.createElementNS(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString; const aOptions: TJSElementCreationOptions): IJSElement;
  82704. begin
  82705. Result:=InvokeJSObjectResult('createElementNS',[aNamespace,aQualifiedName,aOptions],TJSElement) as IJSElement;
  82706. end;
  82707. function TJSDocument.createDocumentFragment: IJSDocumentFragment;
  82708. begin
  82709. Result:=InvokeJSObjectResult('createDocumentFragment',[],TJSDocumentFragment) as IJSDocumentFragment;
  82710. end;
  82711. function TJSDocument.createTextNode(const aData: UnicodeString): IJSText;
  82712. begin
  82713. Result:=InvokeJSObjectResult('createTextNode',[aData],TJSText) as IJSText;
  82714. end;
  82715. function TJSDocument.createComment(const aData: UnicodeString): IJSComment;
  82716. begin
  82717. Result:=InvokeJSObjectResult('createComment',[aData],TJSComment) as IJSComment;
  82718. end;
  82719. function TJSDocument.createProcessingInstruction(const aTarget: UnicodeString; const aData: UnicodeString): IJSProcessingInstruction;
  82720. begin
  82721. Result:=InvokeJSObjectResult('createProcessingInstruction',[aTarget,aData],TJSProcessingInstruction) as IJSProcessingInstruction;
  82722. end;
  82723. function TJSDocument.importNode(aNode: IJSNode; aDeep: Boolean): IJSNode;
  82724. begin
  82725. Result:=InvokeJSObjectResult('importNode',[aNode,aDeep],TJSNode) as IJSNode;
  82726. end;
  82727. function TJSDocument.importNode(aNode: IJSNode): IJSNode;
  82728. begin
  82729. Result:=InvokeJSObjectResult('importNode',[aNode],TJSNode) as IJSNode;
  82730. end;
  82731. function TJSDocument.adoptNode(aNode: IJSNode): IJSNode;
  82732. begin
  82733. Result:=InvokeJSObjectResult('adoptNode',[aNode],TJSNode) as IJSNode;
  82734. end;
  82735. function TJSDocument.createEvent(const aInterface_: UnicodeString): IJSEvent;
  82736. begin
  82737. Result:=InvokeJSObjectResult('createEvent',[aInterface_],TJSEvent) as IJSEvent;
  82738. end;
  82739. function TJSDocument.createRange: IJSRange;
  82740. begin
  82741. Result:=InvokeJSObjectResult('createRange',[],TJSRange) as IJSRange;
  82742. end;
  82743. function TJSDocument.createNodeIterator(aRoot: IJSNode; aWhatToShow: Cardinal; const aFilter: TNodeFilter): IJSNodeIterator;
  82744. var
  82745. m: TJOB_Method;
  82746. begin
  82747. m:=TJOB_Method.Create(TMethod(aFilter),@JOBCallNodeFilter);
  82748. try
  82749. Result:=InvokeJSObjectResult('createNodeIterator',[aRoot,aWhatToShow,m],TJSNodeIterator) as IJSNodeIterator;
  82750. finally
  82751. m.free;
  82752. end;
  82753. end;
  82754. function TJSDocument.createNodeIterator(aRoot: IJSNode): IJSNodeIterator;
  82755. begin
  82756. Result:=InvokeJSObjectResult('createNodeIterator',[aRoot],TJSNodeIterator) as IJSNodeIterator;
  82757. end;
  82758. function TJSDocument.createNodeIterator(aRoot: IJSNode; aWhatToShow: Cardinal): IJSNodeIterator;
  82759. begin
  82760. Result:=InvokeJSObjectResult('createNodeIterator',[aRoot,aWhatToShow],TJSNodeIterator) as IJSNodeIterator;
  82761. end;
  82762. function TJSDocument.createTreeWalker(aRoot: IJSNode; aWhatToShow: Cardinal; const aFilter: TNodeFilter): IJSTreeWalker;
  82763. var
  82764. m: TJOB_Method;
  82765. begin
  82766. m:=TJOB_Method.Create(TMethod(aFilter),@JOBCallNodeFilter);
  82767. try
  82768. Result:=InvokeJSObjectResult('createTreeWalker',[aRoot,aWhatToShow,m],TJSTreeWalker) as IJSTreeWalker;
  82769. finally
  82770. m.free;
  82771. end;
  82772. end;
  82773. function TJSDocument.createTreeWalker(aRoot: IJSNode): IJSTreeWalker;
  82774. begin
  82775. Result:=InvokeJSObjectResult('createTreeWalker',[aRoot],TJSTreeWalker) as IJSTreeWalker;
  82776. end;
  82777. function TJSDocument.createTreeWalker(aRoot: IJSNode; aWhatToShow: Cardinal): IJSTreeWalker;
  82778. begin
  82779. Result:=InvokeJSObjectResult('createTreeWalker',[aRoot,aWhatToShow],TJSTreeWalker) as IJSTreeWalker;
  82780. end;
  82781. function TJSDocument.createCDATASection(const aData: UnicodeString): IJSCDATASection;
  82782. begin
  82783. Result:=InvokeJSObjectResult('createCDATASection',[aData],TJSCDATASection) as IJSCDATASection;
  82784. end;
  82785. function TJSDocument.createAttribute(const aName: UnicodeString): IJSAttr;
  82786. begin
  82787. Result:=InvokeJSObjectResult('createAttribute',[aName],TJSAttr) as IJSAttr;
  82788. end;
  82789. function TJSDocument.createAttributeNS(const aNamespace: UnicodeString; const aName: UnicodeString): IJSAttr;
  82790. begin
  82791. Result:=InvokeJSObjectResult('createAttributeNS',[aNamespace,aName],TJSAttr) as IJSAttr;
  82792. end;
  82793. function TJSDocument.parseHTMLUnsafe(const aHtml: UnicodeString): IJSDocument;
  82794. begin
  82795. Result:=InvokeJSObjectResult('parseHTMLUnsafe',[aHtml],TJSDocument) as IJSDocument;
  82796. end;
  82797. function TJSDocument.getElementsByName(const aElementName: UnicodeString): IJSNodeList;
  82798. begin
  82799. Result:=InvokeJSObjectResult('getElementsByName',[aElementName],TJSNodeList) as IJSNodeList;
  82800. end;
  82801. function TJSDocument.open(const aUnused1: UnicodeString; const aUnused2: UnicodeString): IJSDocument;
  82802. begin
  82803. Result:=InvokeJSObjectResult('open',[aUnused1,aUnused2],TJSDocument) as IJSDocument;
  82804. end;
  82805. function TJSDocument.open: IJSDocument;
  82806. begin
  82807. Result:=InvokeJSObjectResult('open',[],TJSDocument) as IJSDocument;
  82808. end;
  82809. function TJSDocument.open(const aUnused1: UnicodeString): IJSDocument;
  82810. begin
  82811. Result:=InvokeJSObjectResult('open',[aUnused1],TJSDocument) as IJSDocument;
  82812. end;
  82813. function TJSDocument.open(const aUrl: UnicodeString; const aName: UnicodeString; const aFeatures: UnicodeString): IJSWindowProxy;
  82814. begin
  82815. Result:=InvokeJSObjectResult('open',[aUrl,aName,aFeatures],TJSWindowProxy) as IJSWindowProxy;
  82816. end;
  82817. procedure TJSDocument.close;
  82818. begin
  82819. InvokeJSNoResult('close',[]);
  82820. end;
  82821. procedure TJSDocument.write(const aText: UnicodeString){; ToDo:varargs};
  82822. begin
  82823. InvokeJSNoResult('write',[aText]);
  82824. end;
  82825. procedure TJSDocument.writeln(const aText: UnicodeString){; ToDo:varargs};
  82826. begin
  82827. InvokeJSNoResult('writeln',[aText]);
  82828. end;
  82829. function TJSDocument.hasFocus: Boolean;
  82830. begin
  82831. Result:=InvokeJSBooleanResult('hasFocus',[]);
  82832. end;
  82833. function TJSDocument.execCommand(const aCommandId: UnicodeString; aShowUI: Boolean; const aValue: UnicodeString): Boolean;
  82834. begin
  82835. Result:=InvokeJSBooleanResult('execCommand',[aCommandId,aShowUI,aValue]);
  82836. end;
  82837. function TJSDocument.execCommand(const aCommandId: UnicodeString): Boolean;
  82838. begin
  82839. Result:=InvokeJSBooleanResult('execCommand',[aCommandId]);
  82840. end;
  82841. function TJSDocument.execCommand(const aCommandId: UnicodeString; aShowUI: Boolean): Boolean;
  82842. begin
  82843. Result:=InvokeJSBooleanResult('execCommand',[aCommandId,aShowUI]);
  82844. end;
  82845. function TJSDocument.queryCommandEnabled(const aCommandId: UnicodeString): Boolean;
  82846. begin
  82847. Result:=InvokeJSBooleanResult('queryCommandEnabled',[aCommandId]);
  82848. end;
  82849. function TJSDocument.queryCommandIndeterm(const aCommandId: UnicodeString): Boolean;
  82850. begin
  82851. Result:=InvokeJSBooleanResult('queryCommandIndeterm',[aCommandId]);
  82852. end;
  82853. function TJSDocument.queryCommandState(const aCommandId: UnicodeString): Boolean;
  82854. begin
  82855. Result:=InvokeJSBooleanResult('queryCommandState',[aCommandId]);
  82856. end;
  82857. function TJSDocument.queryCommandSupported(const aCommandId: UnicodeString): Boolean;
  82858. begin
  82859. Result:=InvokeJSBooleanResult('queryCommandSupported',[aCommandId]);
  82860. end;
  82861. function TJSDocument.queryCommandValue(const aCommandId: UnicodeString): UnicodeString;
  82862. begin
  82863. Result:=InvokeJSUnicodeStringResult('queryCommandValue',[aCommandId]);
  82864. end;
  82865. procedure TJSDocument.releaseCapture;
  82866. begin
  82867. InvokeJSNoResult('releaseCapture',[]);
  82868. end;
  82869. procedure TJSDocument.mozSetImageElement(const aAImageElementId: UnicodeString; aAImageElement: IJSElement);
  82870. begin
  82871. InvokeJSNoResult('mozSetImageElement',[aAImageElementId,aAImageElement]);
  82872. end;
  82873. procedure TJSDocument.clear;
  82874. begin
  82875. InvokeJSNoResult('clear',[]);
  82876. end;
  82877. procedure TJSDocument.captureEvents;
  82878. begin
  82879. InvokeJSNoResult('captureEvents',[]);
  82880. end;
  82881. procedure TJSDocument.releaseEvents;
  82882. begin
  82883. InvokeJSNoResult('releaseEvents',[]);
  82884. end;
  82885. function TJSDocument.exitFullscreen: IJSPromise; // Promise<undefined>
  82886. begin
  82887. Result:=InvokeJSObjectResult('exitFullscreen',[],TJSPromise) as IJSPromise;
  82888. end;
  82889. function TJSDocument.mozCancelFullScreen: IJSPromise; // Promise<undefined>
  82890. begin
  82891. Result:=InvokeJSObjectResult('mozCancelFullScreen',[],TJSPromise) as IJSPromise;
  82892. end;
  82893. procedure TJSDocument.exitPointerLock;
  82894. begin
  82895. InvokeJSNoResult('exitPointerLock',[]);
  82896. end;
  82897. function TJSDocument.addCertException(aIsTemporary: Boolean): IJSPromise; // Promise<any>
  82898. begin
  82899. Result:=InvokeJSObjectResult('addCertException',[aIsTemporary],TJSPromise) as IJSPromise;
  82900. end;
  82901. procedure TJSDocument.reloadWithHttpsOnlyException;
  82902. begin
  82903. InvokeJSNoResult('reloadWithHttpsOnlyException',[]);
  82904. end;
  82905. function TJSDocument.getFailedCertSecurityInfo: TJSFailedCertSecurityInfo;
  82906. begin
  82907. Result:=InvokeJSObjectResult('getFailedCertSecurityInfo',[],TJSFailedCertSecurityInfo) as TJSFailedCertSecurityInfo;
  82908. end;
  82909. function TJSDocument.getNetErrorInfo: TJSNetErrorInfo;
  82910. begin
  82911. Result:=InvokeJSObjectResult('getNetErrorInfo',[],TJSNetErrorInfo) as TJSNetErrorInfo;
  82912. end;
  82913. procedure TJSDocument.enableStyleSheetsForSet(const aName: UnicodeString);
  82914. begin
  82915. InvokeJSNoResult('enableStyleSheetsForSet',[aName]);
  82916. end;
  82917. function TJSDocument.caretPositionFromPoint(aX: Single; aY: Single): IJSCaretPosition;
  82918. begin
  82919. Result:=InvokeJSObjectResult('caretPositionFromPoint',[aX,aY],TJSCaretPosition) as IJSCaretPosition;
  82920. end;
  82921. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt; aRadiusY: LongInt; aRotationAngle: Single; aForce: Single): IJSTouch;
  82922. begin
  82923. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget,aIdentifier,aPageX,aPageY,aScreenX,aScreenY,aClientX,aClientY,aRadiusX,aRadiusY,aRotationAngle,aForce],TJSTouch) as IJSTouch;
  82924. end;
  82925. function TJSDocument.createTouch: IJSTouch;
  82926. begin
  82927. Result:=InvokeJSObjectResult('createTouch',[],TJSTouch) as IJSTouch;
  82928. end;
  82929. function TJSDocument.createTouch(aView: IJSWindow): IJSTouch;
  82930. begin
  82931. Result:=InvokeJSObjectResult('createTouch',[aView],TJSTouch) as IJSTouch;
  82932. end;
  82933. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget): IJSTouch;
  82934. begin
  82935. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget],TJSTouch) as IJSTouch;
  82936. end;
  82937. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt): IJSTouch;
  82938. begin
  82939. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget,aIdentifier],TJSTouch) as IJSTouch;
  82940. end;
  82941. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt): IJSTouch;
  82942. begin
  82943. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget,aIdentifier,aPageX],TJSTouch) as IJSTouch;
  82944. end;
  82945. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt): IJSTouch;
  82946. begin
  82947. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget,aIdentifier,aPageX,aPageY],TJSTouch) as IJSTouch;
  82948. end;
  82949. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt): IJSTouch;
  82950. begin
  82951. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget,aIdentifier,aPageX,aPageY,aScreenX],TJSTouch) as IJSTouch;
  82952. end;
  82953. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt): IJSTouch;
  82954. begin
  82955. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget,aIdentifier,aPageX,aPageY,aScreenX,aScreenY],TJSTouch) as IJSTouch;
  82956. end;
  82957. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt): IJSTouch;
  82958. begin
  82959. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget,aIdentifier,aPageX,aPageY,aScreenX,aScreenY,aClientX],TJSTouch) as IJSTouch;
  82960. end;
  82961. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt): IJSTouch;
  82962. begin
  82963. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget,aIdentifier,aPageX,aPageY,aScreenX,aScreenY,aClientX,aClientY],TJSTouch) as IJSTouch;
  82964. end;
  82965. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt): IJSTouch;
  82966. begin
  82967. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget,aIdentifier,aPageX,aPageY,aScreenX,aScreenY,aClientX,aClientY,aRadiusX],TJSTouch) as IJSTouch;
  82968. end;
  82969. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt; aRadiusY: LongInt): IJSTouch;
  82970. begin
  82971. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget,aIdentifier,aPageX,aPageY,aScreenX,aScreenY,aClientX,aClientY,aRadiusX,aRadiusY],TJSTouch) as IJSTouch;
  82972. end;
  82973. function TJSDocument.createTouch(aView: IJSWindow; aTarget: IJSEventTarget; aIdentifier: LongInt; aPageX: LongInt; aPageY: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aRadiusX: LongInt; aRadiusY: LongInt; aRotationAngle: Single): IJSTouch;
  82974. begin
  82975. Result:=InvokeJSObjectResult('createTouch',[aView,aTarget,aIdentifier,aPageX,aPageY,aScreenX,aScreenY,aClientX,aClientY,aRadiusX,aRadiusY,aRotationAngle],TJSTouch) as IJSTouch;
  82976. end;
  82977. function TJSDocument.createTouchList(aTouch: IJSTouch; aTouches: IJSTouch): IJSTouchList{; ToDo:varargs};
  82978. begin
  82979. Result:=InvokeJSObjectResult('createTouchList',[aTouch,aTouches],TJSTouchList) as IJSTouchList;
  82980. end;
  82981. function TJSDocument.createTouchList: IJSTouchList;
  82982. begin
  82983. Result:=InvokeJSObjectResult('createTouchList',[],TJSTouchList) as IJSTouchList;
  82984. end;
  82985. function TJSDocument.createTouchList(const aTouches: TJSTouchDynArray): IJSTouchList;
  82986. begin
  82987. Result:=InvokeJSObjectResult('createTouchList',[aTouches],TJSTouchList) as IJSTouchList;
  82988. end;
  82989. procedure TJSDocument.blockUnblockOnload(aBlock: Boolean);
  82990. begin
  82991. InvokeJSNoResult('blockUnblockOnload',[aBlock]);
  82992. end;
  82993. function TJSDocument.getSelection: IJSSelection;
  82994. begin
  82995. Result:=InvokeJSObjectResult('getSelection',[],TJSSelection) as IJSSelection;
  82996. end;
  82997. function TJSDocument.hasStorageAccess: IJSPromise; // Promise<boolean>
  82998. begin
  82999. Result:=InvokeJSObjectResult('hasStorageAccess',[],TJSPromise) as IJSPromise;
  83000. end;
  83001. function TJSDocument.requestStorageAccess: IJSPromise; // Promise<undefined>
  83002. begin
  83003. Result:=InvokeJSObjectResult('requestStorageAccess',[],TJSPromise) as IJSPromise;
  83004. end;
  83005. function TJSDocument.requestStorageAccessUnderSite(const aSerializedSite: UnicodeString): IJSPromise; // Promise<undefined>
  83006. begin
  83007. Result:=InvokeJSObjectResult('requestStorageAccessUnderSite',[aSerializedSite],TJSPromise) as IJSPromise;
  83008. end;
  83009. function TJSDocument.completeStorageAccessRequestFromSite(const aSerializedSite: UnicodeString): IJSPromise; // Promise<undefined>
  83010. begin
  83011. Result:=InvokeJSObjectResult('completeStorageAccessRequestFromSite',[aSerializedSite],TJSPromise) as IJSPromise;
  83012. end;
  83013. function TJSDocument.requestStorageAccessForOrigin(const aThirdPartyOrigin: UnicodeString; aRequireUserInteraction: Boolean): IJSPromise; // Promise<undefined>
  83014. begin
  83015. Result:=InvokeJSObjectResult('requestStorageAccessForOrigin',[aThirdPartyOrigin,aRequireUserInteraction],TJSPromise) as IJSPromise;
  83016. end;
  83017. function TJSDocument.requestStorageAccessForOrigin(const aThirdPartyOrigin: UnicodeString): IJSPromise; // Promise<undefined>
  83018. begin
  83019. Result:=InvokeJSObjectResult('requestStorageAccessForOrigin',[aThirdPartyOrigin],TJSPromise) as IJSPromise;
  83020. end;
  83021. function TJSDocument.createExpression(const aExpression: UnicodeString; const aResolver: TXPathNSResolver): IJSXPathExpression;
  83022. var
  83023. m: TJOB_Method;
  83024. begin
  83025. m:=TJOB_Method.Create(TMethod(aResolver),@JOBCallXPathNSResolver);
  83026. try
  83027. Result:=InvokeJSObjectResult('createExpression',[aExpression,m],TJSXPathExpression) as IJSXPathExpression;
  83028. finally
  83029. m.free;
  83030. end;
  83031. end;
  83032. function TJSDocument.createExpression(const aExpression: UnicodeString): IJSXPathExpression;
  83033. begin
  83034. Result:=InvokeJSObjectResult('createExpression',[aExpression],TJSXPathExpression) as IJSXPathExpression;
  83035. end;
  83036. function TJSDocument.createNSResolver(aNodeResolver: IJSNode): IJSNode;
  83037. begin
  83038. Result:=InvokeJSObjectResult('createNSResolver',[aNodeResolver],TJSNode) as IJSNode;
  83039. end;
  83040. function TJSDocument.evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word; aResult: IJSObject): IJSXPathResult;
  83041. var
  83042. m: TJOB_Method;
  83043. begin
  83044. m:=TJOB_Method.Create(TMethod(aResolver),@JOBCallXPathNSResolver);
  83045. try
  83046. Result:=InvokeJSObjectResult('evaluate',[aExpression,aContextNode,m,aType_,aResult],TJSXPathResult) as IJSXPathResult;
  83047. finally
  83048. m.free;
  83049. end;
  83050. end;
  83051. function TJSDocument.evaluate(const aExpression: UnicodeString; aContextNode: IJSNode): IJSXPathResult;
  83052. begin
  83053. Result:=InvokeJSObjectResult('evaluate',[aExpression,aContextNode],TJSXPathResult) as IJSXPathResult;
  83054. end;
  83055. function TJSDocument.evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver): IJSXPathResult;
  83056. var
  83057. m: TJOB_Method;
  83058. begin
  83059. m:=TJOB_Method.Create(TMethod(aResolver),@JOBCallXPathNSResolver);
  83060. try
  83061. Result:=InvokeJSObjectResult('evaluate',[aExpression,aContextNode,m],TJSXPathResult) as IJSXPathResult;
  83062. finally
  83063. m.free;
  83064. end;
  83065. end;
  83066. function TJSDocument.evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word): IJSXPathResult;
  83067. var
  83068. m: TJOB_Method;
  83069. begin
  83070. m:=TJOB_Method.Create(TMethod(aResolver),@JOBCallXPathNSResolver);
  83071. try
  83072. Result:=InvokeJSObjectResult('evaluate',[aExpression,aContextNode,m,aType_],TJSXPathResult) as IJSXPathResult;
  83073. finally
  83074. m.free;
  83075. end;
  83076. end;
  83077. procedure TJSDocument.prepend(const aNodes: UnicodeString){; ToDo:varargs};
  83078. begin
  83079. InvokeJSNoResult('prepend',[aNodes]);
  83080. end;
  83081. procedure TJSDocument.prepend(aNodes: IJSNode){; ToDo:varargs};
  83082. begin
  83083. InvokeJSNoResult('prepend',[aNodes]);
  83084. end;
  83085. procedure TJSDocument.append(const aNodes: UnicodeString){; ToDo:varargs};
  83086. begin
  83087. InvokeJSNoResult('append',[aNodes]);
  83088. end;
  83089. procedure TJSDocument.append(aNodes: IJSNode){; ToDo:varargs};
  83090. begin
  83091. InvokeJSNoResult('append',[aNodes]);
  83092. end;
  83093. procedure TJSDocument.replaceChildren(const aNodes: UnicodeString){; ToDo:varargs};
  83094. begin
  83095. InvokeJSNoResult('replaceChildren',[aNodes]);
  83096. end;
  83097. procedure TJSDocument.replaceChildren(aNodes: IJSNode){; ToDo:varargs};
  83098. begin
  83099. InvokeJSNoResult('replaceChildren',[aNodes]);
  83100. end;
  83101. function TJSDocument.querySelector(const aSelectors: UTF8String): IJSElement;
  83102. begin
  83103. Result:=InvokeJSObjectResult('querySelector',[aSelectors],TJSElement) as IJSElement;
  83104. end;
  83105. function TJSDocument.querySelectorAll(const aSelectors: UTF8String): IJSNodeList;
  83106. begin
  83107. Result:=InvokeJSObjectResult('querySelectorAll',[aSelectors],TJSNodeList) as IJSNodeList;
  83108. end;
  83109. function TJSDocument.getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray;
  83110. begin
  83111. Result:=InvokeJSObjectResult('getBoxQuads',[aOptions],TJSArray) as TJSDOMQuadDynArray;
  83112. end;
  83113. function TJSDocument.getBoxQuads: TJSDOMQuadDynArray;
  83114. begin
  83115. Result:=InvokeJSObjectResult('getBoxQuads',[],TJSArray) as TJSDOMQuadDynArray;
  83116. end;
  83117. function TJSDocument.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  83118. begin
  83119. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  83120. end;
  83121. function TJSDocument.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  83122. begin
  83123. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  83124. end;
  83125. function TJSDocument.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  83126. begin
  83127. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  83128. end;
  83129. function TJSDocument.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad;
  83130. begin
  83131. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  83132. end;
  83133. function TJSDocument.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad;
  83134. begin
  83135. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  83136. end;
  83137. function TJSDocument.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad;
  83138. begin
  83139. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  83140. end;
  83141. function TJSDocument.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  83142. begin
  83143. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  83144. end;
  83145. function TJSDocument.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  83146. begin
  83147. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  83148. end;
  83149. function TJSDocument.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  83150. begin
  83151. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  83152. end;
  83153. function TJSDocument.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad;
  83154. begin
  83155. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  83156. end;
  83157. function TJSDocument.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad;
  83158. begin
  83159. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  83160. end;
  83161. function TJSDocument.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad;
  83162. begin
  83163. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  83164. end;
  83165. function TJSDocument.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  83166. begin
  83167. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  83168. end;
  83169. function TJSDocument.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  83170. begin
  83171. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  83172. end;
  83173. function TJSDocument.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  83174. begin
  83175. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  83176. end;
  83177. function TJSDocument.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint;
  83178. begin
  83179. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  83180. end;
  83181. function TJSDocument.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint;
  83182. begin
  83183. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  83184. end;
  83185. function TJSDocument.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint;
  83186. begin
  83187. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  83188. end;
  83189. function TJSDocument.elementFromPoint(aX: Single; aY: Single): IJSElement;
  83190. begin
  83191. Result:=InvokeJSObjectResult('elementFromPoint',[aX,aY],TJSElement) as IJSElement;
  83192. end;
  83193. function TJSDocument.elementsFromPoint(aX: Single; aY: Single): TJSElementDynArray;
  83194. begin
  83195. Result:=InvokeJSObjectResult('elementsFromPoint',[aX,aY],TJSArray) as TJSElementDynArray;
  83196. end;
  83197. function TJSDocument.getAnimations: TJSAnimationDynArray;
  83198. begin
  83199. Result:=InvokeJSObjectResult('getAnimations',[],TJSArray) as TJSAnimationDynArray;
  83200. end;
  83201. function TJSDocument.getElementById(const aElementId: UnicodeString): IJSElement;
  83202. begin
  83203. Result:=InvokeJSObjectResult('getElementById',[aElementId],TJSElement) as IJSElement;
  83204. end;
  83205. class function TJSDocument.JSClassName: UnicodeString;
  83206. begin
  83207. Result:='Document';
  83208. end;
  83209. class function TJSDocument.Cast(const Intf: IJSObject): IJSDocument;
  83210. begin
  83211. Result:=TJSDocument.JOBCast(Intf);
  83212. end;
  83213. function TJSBlockParsingOptions._GetblockScriptCreated: Boolean;
  83214. begin
  83215. Result:=ReadJSPropertyBoolean('blockScriptCreated');
  83216. end;
  83217. procedure TJSBlockParsingOptions._SetblockScriptCreated(const aValue : Boolean);
  83218. begin
  83219. WriteJSPropertyBoolean('blockScriptCreated',aValue);
  83220. end;
  83221. class function TJSBlockParsingOptions.JSClassName: UnicodeString;
  83222. begin
  83223. Result:='Object';
  83224. end;
  83225. class function TJSBlockParsingOptions.Cast(const Intf: IJSObject): IJSBlockParsingOptions;
  83226. begin
  83227. Result:=TJSBlockParsingOptions.JOBCast(Intf);
  83228. end;
  83229. function TJSWireframeTaggedRect._Getx: Double;
  83230. begin
  83231. Result:=ReadJSPropertyDouble('x');
  83232. end;
  83233. function TJSWireframeTaggedRect._Gety: Double;
  83234. begin
  83235. Result:=ReadJSPropertyDouble('y');
  83236. end;
  83237. function TJSWireframeTaggedRect._Getwidth: Double;
  83238. begin
  83239. Result:=ReadJSPropertyDouble('width');
  83240. end;
  83241. function TJSWireframeTaggedRect._Getheight: Double;
  83242. begin
  83243. Result:=ReadJSPropertyDouble('height');
  83244. end;
  83245. function TJSWireframeTaggedRect._Getcolor: Cardinal;
  83246. begin
  83247. Result:=ReadJSPropertyInt64('color');
  83248. end;
  83249. function TJSWireframeTaggedRect._Gettype_: TWireframeRectType;
  83250. begin
  83251. Result:=ReadJSPropertyUnicodeString('type');
  83252. end;
  83253. function TJSWireframeTaggedRect._Getnode: IJSNode;
  83254. begin
  83255. Result:=ReadJSPropertyObject('node',TJSNode) as IJSNode;
  83256. end;
  83257. procedure TJSWireframeTaggedRect._Setx(const aValue : Double);
  83258. begin
  83259. WriteJSPropertyDouble('x',aValue);
  83260. end;
  83261. procedure TJSWireframeTaggedRect._Sety(const aValue : Double);
  83262. begin
  83263. WriteJSPropertyDouble('y',aValue);
  83264. end;
  83265. procedure TJSWireframeTaggedRect._Setwidth(const aValue : Double);
  83266. begin
  83267. WriteJSPropertyDouble('width',aValue);
  83268. end;
  83269. procedure TJSWireframeTaggedRect._Setheight(const aValue : Double);
  83270. begin
  83271. WriteJSPropertyDouble('height',aValue);
  83272. end;
  83273. procedure TJSWireframeTaggedRect._Setcolor(const aValue : Cardinal);
  83274. begin
  83275. WriteJSPropertyDouble('color',aValue);
  83276. end;
  83277. procedure TJSWireframeTaggedRect._Settype_(const aValue : TWireframeRectType);
  83278. begin
  83279. WriteJSPropertyUnicodeString('type',aValue);
  83280. end;
  83281. procedure TJSWireframeTaggedRect._Setnode(const aValue : IJSNode);
  83282. begin
  83283. WriteJSPropertyObject('node',aValue);
  83284. end;
  83285. class function TJSWireframeTaggedRect.JSClassName: UnicodeString;
  83286. begin
  83287. Result:='Object';
  83288. end;
  83289. class function TJSWireframeTaggedRect.Cast(const Intf: IJSObject): IJSWireframeTaggedRect;
  83290. begin
  83291. Result:=TJSWireframeTaggedRect.JOBCast(Intf);
  83292. end;
  83293. function TJSWireframe._GetcanvasBackground: Cardinal;
  83294. begin
  83295. Result:=ReadJSPropertyInt64('canvasBackground');
  83296. end;
  83297. function TJSWireframe._Getrects: TJSWireframeTaggedRectDynArray;
  83298. begin
  83299. Result:=ReadJSPropertyObject('rects',TJSArray) as TJSWireframeTaggedRectDynArray;
  83300. end;
  83301. function TJSWireframe._Getversion: Cardinal;
  83302. begin
  83303. Result:=ReadJSPropertyInt64('version');
  83304. end;
  83305. procedure TJSWireframe._SetcanvasBackground(const aValue : Cardinal);
  83306. begin
  83307. WriteJSPropertyDouble('canvasBackground',aValue);
  83308. end;
  83309. procedure TJSWireframe._Setrects(const aValue : TJSWireframeTaggedRectDynArray);
  83310. begin
  83311. WriteJSPropertyObject('rects',aValue);
  83312. end;
  83313. procedure TJSWireframe._Setversion(const aValue : Cardinal);
  83314. begin
  83315. WriteJSPropertyDouble('version',aValue);
  83316. end;
  83317. class function TJSWireframe.JSClassName: UnicodeString;
  83318. begin
  83319. Result:='Object';
  83320. end;
  83321. class function TJSWireframe.Cast(const Intf: IJSObject): IJSWireframe;
  83322. begin
  83323. Result:=TJSWireframe.JOBCast(Intf);
  83324. end;
  83325. function TJSDocumentFragment._Getchildren: IJSHTMLCollection;
  83326. begin
  83327. Result:=ReadJSPropertyObject('children',TJSHTMLCollection) as IJSHTMLCollection;
  83328. end;
  83329. function TJSDocumentFragment._GetfirstElementChild: IJSElement;
  83330. begin
  83331. Result:=ReadJSPropertyObject('firstElementChild',TJSElement) as IJSElement;
  83332. end;
  83333. function TJSDocumentFragment._GetlastElementChild: IJSElement;
  83334. begin
  83335. Result:=ReadJSPropertyObject('lastElementChild',TJSElement) as IJSElement;
  83336. end;
  83337. function TJSDocumentFragment._GetchildElementCount: Cardinal;
  83338. begin
  83339. Result:=ReadJSPropertyInt64('childElementCount');
  83340. end;
  83341. constructor TJSDocumentFragment.Create;
  83342. begin
  83343. JOBCreate([]);
  83344. end;
  83345. procedure TJSDocumentFragment.prepend(const aNodes: UnicodeString){; ToDo:varargs};
  83346. begin
  83347. InvokeJSNoResult('prepend',[aNodes]);
  83348. end;
  83349. procedure TJSDocumentFragment.prepend(aNodes: IJSNode){; ToDo:varargs};
  83350. begin
  83351. InvokeJSNoResult('prepend',[aNodes]);
  83352. end;
  83353. procedure TJSDocumentFragment.append(const aNodes: UnicodeString){; ToDo:varargs};
  83354. begin
  83355. InvokeJSNoResult('append',[aNodes]);
  83356. end;
  83357. procedure TJSDocumentFragment.append(aNodes: IJSNode){; ToDo:varargs};
  83358. begin
  83359. InvokeJSNoResult('append',[aNodes]);
  83360. end;
  83361. procedure TJSDocumentFragment.replaceChildren(const aNodes: UnicodeString){; ToDo:varargs};
  83362. begin
  83363. InvokeJSNoResult('replaceChildren',[aNodes]);
  83364. end;
  83365. procedure TJSDocumentFragment.replaceChildren(aNodes: IJSNode){; ToDo:varargs};
  83366. begin
  83367. InvokeJSNoResult('replaceChildren',[aNodes]);
  83368. end;
  83369. function TJSDocumentFragment.querySelector(const aSelectors: UTF8String): IJSElement;
  83370. begin
  83371. Result:=InvokeJSObjectResult('querySelector',[aSelectors],TJSElement) as IJSElement;
  83372. end;
  83373. function TJSDocumentFragment.querySelectorAll(const aSelectors: UTF8String): IJSNodeList;
  83374. begin
  83375. Result:=InvokeJSObjectResult('querySelectorAll',[aSelectors],TJSNodeList) as IJSNodeList;
  83376. end;
  83377. function TJSDocumentFragment.getElementById(const aElementId: UnicodeString): IJSElement;
  83378. begin
  83379. Result:=InvokeJSObjectResult('getElementById',[aElementId],TJSElement) as IJSElement;
  83380. end;
  83381. class function TJSDocumentFragment.JSClassName: UnicodeString;
  83382. begin
  83383. Result:='DocumentFragment';
  83384. end;
  83385. class function TJSDocumentFragment.Cast(const Intf: IJSObject): IJSDocumentFragment;
  83386. begin
  83387. Result:=TJSDocumentFragment.JOBCast(Intf);
  83388. end;
  83389. function TJSDocumentOrShadowRoot._GetactiveElement: IJSElement;
  83390. begin
  83391. Result:=ReadJSPropertyObject('activeElement',TJSElement) as IJSElement;
  83392. end;
  83393. function TJSDocumentOrShadowRoot._GetstyleSheets: IJSStyleSheetList;
  83394. begin
  83395. Result:=ReadJSPropertyObject('styleSheets',TJSStyleSheetList) as IJSStyleSheetList;
  83396. end;
  83397. function TJSDocumentOrShadowRoot._GetpointerLockElement: IJSElement;
  83398. begin
  83399. Result:=ReadJSPropertyObject('pointerLockElement',TJSElement) as IJSElement;
  83400. end;
  83401. function TJSDocumentOrShadowRoot._GetfullscreenElement: IJSElement;
  83402. begin
  83403. Result:=ReadJSPropertyObject('fullscreenElement',TJSElement) as IJSElement;
  83404. end;
  83405. function TJSDocumentOrShadowRoot._GetmozFullScreenElement: IJSElement;
  83406. begin
  83407. Result:=ReadJSPropertyObject('mozFullScreenElement',TJSElement) as IJSElement;
  83408. end;
  83409. function TJSDocumentOrShadowRoot._GetadoptedStyleSheets: TJSCSSStyleSheetDynArray;
  83410. begin
  83411. Result:=ReadJSPropertyObject('adoptedStyleSheets',TJSArray) as TJSCSSStyleSheetDynArray;
  83412. end;
  83413. procedure TJSDocumentOrShadowRoot._SetadoptedStyleSheets(const aValue : TJSCSSStyleSheetDynArray);
  83414. begin
  83415. WriteJSPropertyObject('adoptedStyleSheets',aValue);
  83416. end;
  83417. function TJSDocumentOrShadowRoot.elementFromPoint(aX: Single; aY: Single): IJSElement;
  83418. begin
  83419. Result:=InvokeJSObjectResult('elementFromPoint',[aX,aY],TJSElement) as IJSElement;
  83420. end;
  83421. function TJSDocumentOrShadowRoot.elementsFromPoint(aX: Single; aY: Single): TJSElementDynArray;
  83422. begin
  83423. Result:=InvokeJSObjectResult('elementsFromPoint',[aX,aY],TJSArray) as TJSElementDynArray;
  83424. end;
  83425. function TJSDocumentOrShadowRoot.getAnimations: TJSAnimationDynArray;
  83426. begin
  83427. Result:=InvokeJSObjectResult('getAnimations',[],TJSArray) as TJSAnimationDynArray;
  83428. end;
  83429. class function TJSDocumentOrShadowRoot.JSClassName: UnicodeString;
  83430. begin
  83431. Result:='DocumentOrShadowRoot';
  83432. end;
  83433. class function TJSDocumentOrShadowRoot.Cast(const Intf: IJSObject): IJSDocumentOrShadowRoot;
  83434. begin
  83435. Result:=TJSDocumentOrShadowRoot.JOBCast(Intf);
  83436. end;
  83437. function TJSDocumentTimelineOptions._GetoriginTime: TDOMHighResTimeStamp;
  83438. begin
  83439. Result:=ReadJSPropertyDouble('originTime');
  83440. end;
  83441. procedure TJSDocumentTimelineOptions._SetoriginTime(const aValue : TDOMHighResTimeStamp);
  83442. begin
  83443. WriteJSPropertyDouble('originTime',aValue);
  83444. end;
  83445. class function TJSDocumentTimelineOptions.JSClassName: UnicodeString;
  83446. begin
  83447. Result:='Object';
  83448. end;
  83449. class function TJSDocumentTimelineOptions.Cast(const Intf: IJSObject): IJSDocumentTimelineOptions;
  83450. begin
  83451. Result:=TJSDocumentTimelineOptions.JOBCast(Intf);
  83452. end;
  83453. constructor TJSDocumentTimeline.Create(const aOptions: TJSDocumentTimelineOptions);
  83454. begin
  83455. JOBCreate([aOptions]);
  83456. end;
  83457. constructor TJSDocumentTimeline.Create;
  83458. begin
  83459. JOBCreate([]);
  83460. end;
  83461. class function TJSDocumentTimeline.JSClassName: UnicodeString;
  83462. begin
  83463. Result:='DocumentTimeline';
  83464. end;
  83465. class function TJSDocumentTimeline.Cast(const Intf: IJSObject): IJSDocumentTimeline;
  83466. begin
  83467. Result:=TJSDocumentTimeline.JOBCast(Intf);
  83468. end;
  83469. function TJSDocumentType._Getname: UnicodeString;
  83470. begin
  83471. Result:=ReadJSPropertyUnicodeString('name');
  83472. end;
  83473. function TJSDocumentType._GetpublicId: UnicodeString;
  83474. begin
  83475. Result:=ReadJSPropertyUnicodeString('publicId');
  83476. end;
  83477. function TJSDocumentType._GetsystemId: UnicodeString;
  83478. begin
  83479. Result:=ReadJSPropertyUnicodeString('systemId');
  83480. end;
  83481. procedure TJSDocumentType.before(const aNodes: UnicodeString){; ToDo:varargs};
  83482. begin
  83483. InvokeJSNoResult('before',[aNodes]);
  83484. end;
  83485. procedure TJSDocumentType.before(aNodes: IJSNode){; ToDo:varargs};
  83486. begin
  83487. InvokeJSNoResult('before',[aNodes]);
  83488. end;
  83489. procedure TJSDocumentType.after(const aNodes: UnicodeString){; ToDo:varargs};
  83490. begin
  83491. InvokeJSNoResult('after',[aNodes]);
  83492. end;
  83493. procedure TJSDocumentType.after(aNodes: IJSNode){; ToDo:varargs};
  83494. begin
  83495. InvokeJSNoResult('after',[aNodes]);
  83496. end;
  83497. procedure TJSDocumentType.replaceWith(const aNodes: UnicodeString){; ToDo:varargs};
  83498. begin
  83499. InvokeJSNoResult('replaceWith',[aNodes]);
  83500. end;
  83501. procedure TJSDocumentType.replaceWith(aNodes: IJSNode){; ToDo:varargs};
  83502. begin
  83503. InvokeJSNoResult('replaceWith',[aNodes]);
  83504. end;
  83505. procedure TJSDocumentType.remove;
  83506. begin
  83507. InvokeJSNoResult('remove',[]);
  83508. end;
  83509. class function TJSDocumentType.JSClassName: UnicodeString;
  83510. begin
  83511. Result:='DocumentType';
  83512. end;
  83513. class function TJSDocumentType.Cast(const Intf: IJSObject): IJSDocumentType;
  83514. begin
  83515. Result:=TJSDocumentType.JOBCast(Intf);
  83516. end;
  83517. class function TJSStackFrame.JSClassName: UnicodeString;
  83518. begin
  83519. Result:='StackFrame';
  83520. end;
  83521. class function TJSStackFrame.Cast(const Intf: IJSObject): IJSStackFrame;
  83522. begin
  83523. Result:=TJSStackFrame.JOBCast(Intf);
  83524. end;
  83525. function TJSExceptionMembers._Getresult: Cardinal;
  83526. begin
  83527. Result:=ReadJSPropertyInt64('result');
  83528. end;
  83529. function TJSExceptionMembers._Getfilename: UnicodeString;
  83530. begin
  83531. Result:=ReadJSPropertyUnicodeString('filename');
  83532. end;
  83533. function TJSExceptionMembers._GetlineNumber: Cardinal;
  83534. begin
  83535. Result:=ReadJSPropertyInt64('lineNumber');
  83536. end;
  83537. function TJSExceptionMembers._GetcolumnNumber: Cardinal;
  83538. begin
  83539. Result:=ReadJSPropertyInt64('columnNumber');
  83540. end;
  83541. function TJSExceptionMembers._Getdata: IJSnsISupports;
  83542. begin
  83543. Result:=ReadJSPropertyObject('data',TJSnsISupports) as IJSnsISupports;
  83544. end;
  83545. function TJSExceptionMembers._Getstack: UnicodeString;
  83546. begin
  83547. Result:=ReadJSPropertyUnicodeString('stack');
  83548. end;
  83549. class function TJSExceptionMembers.JSClassName: UnicodeString;
  83550. begin
  83551. Result:='ExceptionMembers';
  83552. end;
  83553. class function TJSExceptionMembers.Cast(const Intf: IJSObject): IJSExceptionMembers;
  83554. begin
  83555. Result:=TJSExceptionMembers.JOBCast(Intf);
  83556. end;
  83557. function TJSException._Getname: UnicodeString;
  83558. begin
  83559. Result:=ReadJSPropertyUnicodeString('name');
  83560. end;
  83561. function TJSException._Getmessage: UnicodeString;
  83562. begin
  83563. Result:=ReadJSPropertyUnicodeString('message');
  83564. end;
  83565. class function TJSException.JSClassName: UnicodeString;
  83566. begin
  83567. Result:='Exception';
  83568. end;
  83569. class function TJSException.Cast(const Intf: IJSObject): IJSException;
  83570. begin
  83571. Result:=TJSException.JOBCast(Intf);
  83572. end;
  83573. function TJSDOMException._Getname: UnicodeString;
  83574. begin
  83575. Result:=ReadJSPropertyUnicodeString('name');
  83576. end;
  83577. function TJSDOMException._Getmessage: UnicodeString;
  83578. begin
  83579. Result:=ReadJSPropertyUnicodeString('message');
  83580. end;
  83581. function TJSDOMException._Getcode: Word;
  83582. begin
  83583. Result:=ReadJSPropertyLongInt('code');
  83584. end;
  83585. constructor TJSDOMException.Create(const aMessage: UnicodeString; const aName: UnicodeString);
  83586. begin
  83587. JOBCreate([aMessage,aName]);
  83588. end;
  83589. constructor TJSDOMException.Create;
  83590. begin
  83591. JOBCreate([]);
  83592. end;
  83593. constructor TJSDOMException.Create(const aMessage: UnicodeString);
  83594. begin
  83595. JOBCreate([aMessage]);
  83596. end;
  83597. class function TJSDOMException.JSClassName: UnicodeString;
  83598. begin
  83599. Result:='DOMException';
  83600. end;
  83601. class function TJSDOMException.Cast(const Intf: IJSObject): IJSDOMException;
  83602. begin
  83603. Result:=TJSDOMException.JOBCast(Intf);
  83604. end;
  83605. function TJSDOMImplementation.hasFeature: Boolean;
  83606. begin
  83607. Result:=InvokeJSBooleanResult('hasFeature',[]);
  83608. end;
  83609. function TJSDOMImplementation.createDocumentType(const aQualifiedName: UnicodeString; const aPublicId: UnicodeString; const aSystemId: UnicodeString): IJSDocumentType;
  83610. begin
  83611. Result:=InvokeJSObjectResult('createDocumentType',[aQualifiedName,aPublicId,aSystemId],TJSDocumentType) as IJSDocumentType;
  83612. end;
  83613. function TJSDOMImplementation.createDocument(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString; aDoctype: IJSDocumentType): IJSDocument;
  83614. begin
  83615. Result:=InvokeJSObjectResult('createDocument',[aNamespace,aQualifiedName,aDoctype],TJSDocument) as IJSDocument;
  83616. end;
  83617. function TJSDOMImplementation.createDocument(const aNamespace: UnicodeString; const aQualifiedName: UnicodeString): IJSDocument;
  83618. begin
  83619. Result:=InvokeJSObjectResult('createDocument',[aNamespace,aQualifiedName],TJSDocument) as IJSDocument;
  83620. end;
  83621. function TJSDOMImplementation.createHTMLDocument(const aTitle: UnicodeString): IJSDocument;
  83622. begin
  83623. Result:=InvokeJSObjectResult('createHTMLDocument',[aTitle],TJSDocument) as IJSDocument;
  83624. end;
  83625. function TJSDOMImplementation.createHTMLDocument: IJSDocument;
  83626. begin
  83627. Result:=InvokeJSObjectResult('createHTMLDocument',[],TJSDocument) as IJSDocument;
  83628. end;
  83629. class function TJSDOMImplementation.JSClassName: UnicodeString;
  83630. begin
  83631. Result:='DOMImplementation';
  83632. end;
  83633. class function TJSDOMImplementation.Cast(const Intf: IJSObject): IJSDOMImplementation;
  83634. begin
  83635. Result:=TJSDOMImplementation.JOBCast(Intf);
  83636. end;
  83637. constructor TJSDOMLocalization.Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean; aARegistry: IJSObject; const aALocales: TUTF8StringDynArray);
  83638. begin
  83639. JOBCreate([aAResourceIds,aASync,aARegistry,aALocales]);
  83640. end;
  83641. constructor TJSDOMLocalization.Create(const aAResourceIds: TDOMStringDynArray);
  83642. begin
  83643. JOBCreate([aAResourceIds]);
  83644. end;
  83645. constructor TJSDOMLocalization.Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean);
  83646. begin
  83647. JOBCreate([aAResourceIds,aASync]);
  83648. end;
  83649. constructor TJSDOMLocalization.Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean; aARegistry: IJSObject);
  83650. begin
  83651. JOBCreate([aAResourceIds,aASync,aARegistry]);
  83652. end;
  83653. procedure TJSDOMLocalization.connectRoot(aAElement: IJSNode);
  83654. begin
  83655. InvokeJSNoResult('connectRoot',[aAElement]);
  83656. end;
  83657. procedure TJSDOMLocalization.disconnectRoot(aAElement: IJSNode);
  83658. begin
  83659. InvokeJSNoResult('disconnectRoot',[aAElement]);
  83660. end;
  83661. procedure TJSDOMLocalization.pauseObserving;
  83662. begin
  83663. InvokeJSNoResult('pauseObserving',[]);
  83664. end;
  83665. procedure TJSDOMLocalization.resumeObserving;
  83666. begin
  83667. InvokeJSNoResult('resumeObserving',[]);
  83668. end;
  83669. procedure TJSDOMLocalization.setAttributes(aAElement: IJSElement; const aAId: UnicodeString; aAArgs: IJSObject);
  83670. begin
  83671. InvokeJSNoResult('setAttributes',[aAElement,aAId,aAArgs]);
  83672. end;
  83673. procedure TJSDOMLocalization.setAttributes(aAElement: IJSElement; const aAId: UnicodeString);
  83674. begin
  83675. InvokeJSNoResult('setAttributes',[aAElement,aAId]);
  83676. end;
  83677. function TJSDOMLocalization.getAttributes(aAElement: IJSElement): TJSL10nIdArgs;
  83678. begin
  83679. Result:=InvokeJSObjectResult('getAttributes',[aAElement],TJSL10nIdArgs) as TJSL10nIdArgs;
  83680. end;
  83681. procedure TJSDOMLocalization.setArgs(aAElement: IJSElement; aAArgs: IJSObject);
  83682. begin
  83683. InvokeJSNoResult('setArgs',[aAElement,aAArgs]);
  83684. end;
  83685. procedure TJSDOMLocalization.setArgs(aAElement: IJSElement);
  83686. begin
  83687. InvokeJSNoResult('setArgs',[aAElement]);
  83688. end;
  83689. function TJSDOMLocalization.translateFragment(aANode: IJSNode): IJSPromise; // Promise<any>
  83690. begin
  83691. Result:=InvokeJSObjectResult('translateFragment',[aANode],TJSPromise) as IJSPromise;
  83692. end;
  83693. function TJSDOMLocalization.translateElements(const aAElements: TJSElementDynArray): IJSPromise; // Promise<undefined>
  83694. begin
  83695. Result:=InvokeJSObjectResult('translateElements',[aAElements],TJSPromise) as IJSPromise;
  83696. end;
  83697. function TJSDOMLocalization.translateRoots: IJSPromise; // Promise<undefined>
  83698. begin
  83699. Result:=InvokeJSObjectResult('translateRoots',[],TJSPromise) as IJSPromise;
  83700. end;
  83701. class function TJSDOMLocalization.JSClassName: UnicodeString;
  83702. begin
  83703. Result:='DOMLocalization';
  83704. end;
  83705. class function TJSDOMLocalization.Cast(const Intf: IJSObject): IJSDOMLocalization;
  83706. begin
  83707. Result:=TJSDOMLocalization.JOBCast(Intf);
  83708. end;
  83709. function TJSDOMMatrixReadOnly._Geta: Double;
  83710. begin
  83711. Result:=ReadJSPropertyDouble('a');
  83712. end;
  83713. function TJSDOMMatrixReadOnly._Getb: Double;
  83714. begin
  83715. Result:=ReadJSPropertyDouble('b');
  83716. end;
  83717. function TJSDOMMatrixReadOnly._Getc: Double;
  83718. begin
  83719. Result:=ReadJSPropertyDouble('c');
  83720. end;
  83721. function TJSDOMMatrixReadOnly._Getd: Double;
  83722. begin
  83723. Result:=ReadJSPropertyDouble('d');
  83724. end;
  83725. function TJSDOMMatrixReadOnly._Gete: Double;
  83726. begin
  83727. Result:=ReadJSPropertyDouble('e');
  83728. end;
  83729. function TJSDOMMatrixReadOnly._Getf: Double;
  83730. begin
  83731. Result:=ReadJSPropertyDouble('f');
  83732. end;
  83733. function TJSDOMMatrixReadOnly._Getm11: Double;
  83734. begin
  83735. Result:=ReadJSPropertyDouble('m11');
  83736. end;
  83737. function TJSDOMMatrixReadOnly._Getm12: Double;
  83738. begin
  83739. Result:=ReadJSPropertyDouble('m12');
  83740. end;
  83741. function TJSDOMMatrixReadOnly._Getm13: Double;
  83742. begin
  83743. Result:=ReadJSPropertyDouble('m13');
  83744. end;
  83745. function TJSDOMMatrixReadOnly._Getm14: Double;
  83746. begin
  83747. Result:=ReadJSPropertyDouble('m14');
  83748. end;
  83749. function TJSDOMMatrixReadOnly._Getm21: Double;
  83750. begin
  83751. Result:=ReadJSPropertyDouble('m21');
  83752. end;
  83753. function TJSDOMMatrixReadOnly._Getm22: Double;
  83754. begin
  83755. Result:=ReadJSPropertyDouble('m22');
  83756. end;
  83757. function TJSDOMMatrixReadOnly._Getm23: Double;
  83758. begin
  83759. Result:=ReadJSPropertyDouble('m23');
  83760. end;
  83761. function TJSDOMMatrixReadOnly._Getm24: Double;
  83762. begin
  83763. Result:=ReadJSPropertyDouble('m24');
  83764. end;
  83765. function TJSDOMMatrixReadOnly._Getm31: Double;
  83766. begin
  83767. Result:=ReadJSPropertyDouble('m31');
  83768. end;
  83769. function TJSDOMMatrixReadOnly._Getm32: Double;
  83770. begin
  83771. Result:=ReadJSPropertyDouble('m32');
  83772. end;
  83773. function TJSDOMMatrixReadOnly._Getm33: Double;
  83774. begin
  83775. Result:=ReadJSPropertyDouble('m33');
  83776. end;
  83777. function TJSDOMMatrixReadOnly._Getm34: Double;
  83778. begin
  83779. Result:=ReadJSPropertyDouble('m34');
  83780. end;
  83781. function TJSDOMMatrixReadOnly._Getm41: Double;
  83782. begin
  83783. Result:=ReadJSPropertyDouble('m41');
  83784. end;
  83785. function TJSDOMMatrixReadOnly._Getm42: Double;
  83786. begin
  83787. Result:=ReadJSPropertyDouble('m42');
  83788. end;
  83789. function TJSDOMMatrixReadOnly._Getm43: Double;
  83790. begin
  83791. Result:=ReadJSPropertyDouble('m43');
  83792. end;
  83793. function TJSDOMMatrixReadOnly._Getm44: Double;
  83794. begin
  83795. Result:=ReadJSPropertyDouble('m44');
  83796. end;
  83797. function TJSDOMMatrixReadOnly._Getis2D: Boolean;
  83798. begin
  83799. Result:=ReadJSPropertyBoolean('is2D');
  83800. end;
  83801. function TJSDOMMatrixReadOnly._GetisIdentity: Boolean;
  83802. begin
  83803. Result:=ReadJSPropertyBoolean('isIdentity');
  83804. end;
  83805. constructor TJSDOMMatrixReadOnly.Create(aInit: IJSDOMMatrixReadOnly);
  83806. begin
  83807. JOBCreate([aInit]);
  83808. end;
  83809. constructor TJSDOMMatrixReadOnly.Create;
  83810. begin
  83811. JOBCreate([]);
  83812. end;
  83813. constructor TJSDOMMatrixReadOnly.Create(const aInit: TDoubleDynArray);
  83814. begin
  83815. JOBCreate([aInit]);
  83816. end;
  83817. constructor TJSDOMMatrixReadOnly.Create(const aInit: UTF8String);
  83818. begin
  83819. JOBCreate([aInit]);
  83820. end;
  83821. function TJSDOMMatrixReadOnly.fromMatrix(const aOther: TJSDOMMatrixInit): IJSDOMMatrixReadOnly;
  83822. begin
  83823. Result:=InvokeJSObjectResult('fromMatrix',[aOther],TJSDOMMatrixReadOnly) as IJSDOMMatrixReadOnly;
  83824. end;
  83825. function TJSDOMMatrixReadOnly.fromMatrix: IJSDOMMatrixReadOnly;
  83826. begin
  83827. Result:=InvokeJSObjectResult('fromMatrix',[],TJSDOMMatrixReadOnly) as IJSDOMMatrixReadOnly;
  83828. end;
  83829. function TJSDOMMatrixReadOnly.fromFloat32Array(aArray32: IJSFloat32Array): IJSDOMMatrixReadOnly;
  83830. begin
  83831. Result:=InvokeJSObjectResult('fromFloat32Array',[aArray32],TJSDOMMatrixReadOnly) as IJSDOMMatrixReadOnly;
  83832. end;
  83833. function TJSDOMMatrixReadOnly.fromFloat64Array(aArray64: IJSFloat64Array): IJSDOMMatrixReadOnly;
  83834. begin
  83835. Result:=InvokeJSObjectResult('fromFloat64Array',[aArray64],TJSDOMMatrixReadOnly) as IJSDOMMatrixReadOnly;
  83836. end;
  83837. function TJSDOMMatrixReadOnly.translate(aTx: Double; aTy: Double; aTz: Double): IJSDOMMatrix;
  83838. begin
  83839. Result:=InvokeJSObjectResult('translate',[aTx,aTy,aTz],TJSDOMMatrix) as IJSDOMMatrix;
  83840. end;
  83841. function TJSDOMMatrixReadOnly.translate: IJSDOMMatrix;
  83842. begin
  83843. Result:=InvokeJSObjectResult('translate',[],TJSDOMMatrix) as IJSDOMMatrix;
  83844. end;
  83845. function TJSDOMMatrixReadOnly.translate(aTx: Double): IJSDOMMatrix;
  83846. begin
  83847. Result:=InvokeJSObjectResult('translate',[aTx],TJSDOMMatrix) as IJSDOMMatrix;
  83848. end;
  83849. function TJSDOMMatrixReadOnly.translate(aTx: Double; aTy: Double): IJSDOMMatrix;
  83850. begin
  83851. Result:=InvokeJSObjectResult('translate',[aTx,aTy],TJSDOMMatrix) as IJSDOMMatrix;
  83852. end;
  83853. function TJSDOMMatrixReadOnly.scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix;
  83854. begin
  83855. Result:=InvokeJSObjectResult('scale',[aScaleX,aScaleY,aScaleZ,aOriginX,aOriginY,aOriginZ],TJSDOMMatrix) as IJSDOMMatrix;
  83856. end;
  83857. function TJSDOMMatrixReadOnly.scale: IJSDOMMatrix;
  83858. begin
  83859. Result:=InvokeJSObjectResult('scale',[],TJSDOMMatrix) as IJSDOMMatrix;
  83860. end;
  83861. function TJSDOMMatrixReadOnly.scale(aScaleX: Double): IJSDOMMatrix;
  83862. begin
  83863. Result:=InvokeJSObjectResult('scale',[aScaleX],TJSDOMMatrix) as IJSDOMMatrix;
  83864. end;
  83865. function TJSDOMMatrixReadOnly.scale(aScaleX: Double; aScaleY: Double): IJSDOMMatrix;
  83866. begin
  83867. Result:=InvokeJSObjectResult('scale',[aScaleX,aScaleY],TJSDOMMatrix) as IJSDOMMatrix;
  83868. end;
  83869. function TJSDOMMatrixReadOnly.scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double): IJSDOMMatrix;
  83870. begin
  83871. Result:=InvokeJSObjectResult('scale',[aScaleX,aScaleY,aScaleZ],TJSDOMMatrix) as IJSDOMMatrix;
  83872. end;
  83873. function TJSDOMMatrixReadOnly.scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double): IJSDOMMatrix;
  83874. begin
  83875. Result:=InvokeJSObjectResult('scale',[aScaleX,aScaleY,aScaleZ,aOriginX],TJSDOMMatrix) as IJSDOMMatrix;
  83876. end;
  83877. function TJSDOMMatrixReadOnly.scale(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix;
  83878. begin
  83879. Result:=InvokeJSObjectResult('scale',[aScaleX,aScaleY,aScaleZ,aOriginX,aOriginY],TJSDOMMatrix) as IJSDOMMatrix;
  83880. end;
  83881. function TJSDOMMatrixReadOnly.scaleNonUniform(aScaleX: Double; aScaleY: Double): IJSDOMMatrix;
  83882. begin
  83883. Result:=InvokeJSObjectResult('scaleNonUniform',[aScaleX,aScaleY],TJSDOMMatrix) as IJSDOMMatrix;
  83884. end;
  83885. function TJSDOMMatrixReadOnly.scaleNonUniform: IJSDOMMatrix;
  83886. begin
  83887. Result:=InvokeJSObjectResult('scaleNonUniform',[],TJSDOMMatrix) as IJSDOMMatrix;
  83888. end;
  83889. function TJSDOMMatrixReadOnly.scaleNonUniform(aScaleX: Double): IJSDOMMatrix;
  83890. begin
  83891. Result:=InvokeJSObjectResult('scaleNonUniform',[aScaleX],TJSDOMMatrix) as IJSDOMMatrix;
  83892. end;
  83893. function TJSDOMMatrixReadOnly.scale3d(aScale: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix;
  83894. begin
  83895. Result:=InvokeJSObjectResult('scale3d',[aScale,aOriginX,aOriginY,aOriginZ],TJSDOMMatrix) as IJSDOMMatrix;
  83896. end;
  83897. function TJSDOMMatrixReadOnly.scale3d: IJSDOMMatrix;
  83898. begin
  83899. Result:=InvokeJSObjectResult('scale3d',[],TJSDOMMatrix) as IJSDOMMatrix;
  83900. end;
  83901. function TJSDOMMatrixReadOnly.scale3d(aScale: Double): IJSDOMMatrix;
  83902. begin
  83903. Result:=InvokeJSObjectResult('scale3d',[aScale],TJSDOMMatrix) as IJSDOMMatrix;
  83904. end;
  83905. function TJSDOMMatrixReadOnly.scale3d(aScale: Double; aOriginX: Double): IJSDOMMatrix;
  83906. begin
  83907. Result:=InvokeJSObjectResult('scale3d',[aScale,aOriginX],TJSDOMMatrix) as IJSDOMMatrix;
  83908. end;
  83909. function TJSDOMMatrixReadOnly.scale3d(aScale: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix;
  83910. begin
  83911. Result:=InvokeJSObjectResult('scale3d',[aScale,aOriginX,aOriginY],TJSDOMMatrix) as IJSDOMMatrix;
  83912. end;
  83913. function TJSDOMMatrixReadOnly.rotate(aRotX: Double; aRotY: Double; aRotZ: Double): IJSDOMMatrix;
  83914. begin
  83915. Result:=InvokeJSObjectResult('rotate',[aRotX,aRotY,aRotZ],TJSDOMMatrix) as IJSDOMMatrix;
  83916. end;
  83917. function TJSDOMMatrixReadOnly.rotate: IJSDOMMatrix;
  83918. begin
  83919. Result:=InvokeJSObjectResult('rotate',[],TJSDOMMatrix) as IJSDOMMatrix;
  83920. end;
  83921. function TJSDOMMatrixReadOnly.rotate(aRotX: Double): IJSDOMMatrix;
  83922. begin
  83923. Result:=InvokeJSObjectResult('rotate',[aRotX],TJSDOMMatrix) as IJSDOMMatrix;
  83924. end;
  83925. function TJSDOMMatrixReadOnly.rotate(aRotX: Double; aRotY: Double): IJSDOMMatrix;
  83926. begin
  83927. Result:=InvokeJSObjectResult('rotate',[aRotX,aRotY],TJSDOMMatrix) as IJSDOMMatrix;
  83928. end;
  83929. function TJSDOMMatrixReadOnly.rotateFromVector(aX: Double; aY: Double): IJSDOMMatrix;
  83930. begin
  83931. Result:=InvokeJSObjectResult('rotateFromVector',[aX,aY],TJSDOMMatrix) as IJSDOMMatrix;
  83932. end;
  83933. function TJSDOMMatrixReadOnly.rotateFromVector: IJSDOMMatrix;
  83934. begin
  83935. Result:=InvokeJSObjectResult('rotateFromVector',[],TJSDOMMatrix) as IJSDOMMatrix;
  83936. end;
  83937. function TJSDOMMatrixReadOnly.rotateFromVector(aX: Double): IJSDOMMatrix;
  83938. begin
  83939. Result:=InvokeJSObjectResult('rotateFromVector',[aX],TJSDOMMatrix) as IJSDOMMatrix;
  83940. end;
  83941. function TJSDOMMatrixReadOnly.rotateAxisAngle(aX: Double; aY: Double; aZ: Double; aAngle: Double): IJSDOMMatrix;
  83942. begin
  83943. Result:=InvokeJSObjectResult('rotateAxisAngle',[aX,aY,aZ,aAngle],TJSDOMMatrix) as IJSDOMMatrix;
  83944. end;
  83945. function TJSDOMMatrixReadOnly.rotateAxisAngle: IJSDOMMatrix;
  83946. begin
  83947. Result:=InvokeJSObjectResult('rotateAxisAngle',[],TJSDOMMatrix) as IJSDOMMatrix;
  83948. end;
  83949. function TJSDOMMatrixReadOnly.rotateAxisAngle(aX: Double): IJSDOMMatrix;
  83950. begin
  83951. Result:=InvokeJSObjectResult('rotateAxisAngle',[aX],TJSDOMMatrix) as IJSDOMMatrix;
  83952. end;
  83953. function TJSDOMMatrixReadOnly.rotateAxisAngle(aX: Double; aY: Double): IJSDOMMatrix;
  83954. begin
  83955. Result:=InvokeJSObjectResult('rotateAxisAngle',[aX,aY],TJSDOMMatrix) as IJSDOMMatrix;
  83956. end;
  83957. function TJSDOMMatrixReadOnly.rotateAxisAngle(aX: Double; aY: Double; aZ: Double): IJSDOMMatrix;
  83958. begin
  83959. Result:=InvokeJSObjectResult('rotateAxisAngle',[aX,aY,aZ],TJSDOMMatrix) as IJSDOMMatrix;
  83960. end;
  83961. function TJSDOMMatrixReadOnly.skewX(aSx: Double): IJSDOMMatrix;
  83962. begin
  83963. Result:=InvokeJSObjectResult('skewX',[aSx],TJSDOMMatrix) as IJSDOMMatrix;
  83964. end;
  83965. function TJSDOMMatrixReadOnly.skewX: IJSDOMMatrix;
  83966. begin
  83967. Result:=InvokeJSObjectResult('skewX',[],TJSDOMMatrix) as IJSDOMMatrix;
  83968. end;
  83969. function TJSDOMMatrixReadOnly.skewY(aSy: Double): IJSDOMMatrix;
  83970. begin
  83971. Result:=InvokeJSObjectResult('skewY',[aSy],TJSDOMMatrix) as IJSDOMMatrix;
  83972. end;
  83973. function TJSDOMMatrixReadOnly.skewY: IJSDOMMatrix;
  83974. begin
  83975. Result:=InvokeJSObjectResult('skewY',[],TJSDOMMatrix) as IJSDOMMatrix;
  83976. end;
  83977. function TJSDOMMatrixReadOnly.multiply(const aOther: TJSDOMMatrixInit): IJSDOMMatrix;
  83978. begin
  83979. Result:=InvokeJSObjectResult('multiply',[aOther],TJSDOMMatrix) as IJSDOMMatrix;
  83980. end;
  83981. function TJSDOMMatrixReadOnly.multiply: IJSDOMMatrix;
  83982. begin
  83983. Result:=InvokeJSObjectResult('multiply',[],TJSDOMMatrix) as IJSDOMMatrix;
  83984. end;
  83985. function TJSDOMMatrixReadOnly.flipX: IJSDOMMatrix;
  83986. begin
  83987. Result:=InvokeJSObjectResult('flipX',[],TJSDOMMatrix) as IJSDOMMatrix;
  83988. end;
  83989. function TJSDOMMatrixReadOnly.flipY: IJSDOMMatrix;
  83990. begin
  83991. Result:=InvokeJSObjectResult('flipY',[],TJSDOMMatrix) as IJSDOMMatrix;
  83992. end;
  83993. function TJSDOMMatrixReadOnly.inverse: IJSDOMMatrix;
  83994. begin
  83995. Result:=InvokeJSObjectResult('inverse',[],TJSDOMMatrix) as IJSDOMMatrix;
  83996. end;
  83997. function TJSDOMMatrixReadOnly.transformPoint(const aPoint: TJSDOMPointInit): IJSDOMPoint;
  83998. begin
  83999. Result:=InvokeJSObjectResult('transformPoint',[aPoint],TJSDOMPoint) as IJSDOMPoint;
  84000. end;
  84001. function TJSDOMMatrixReadOnly.transformPoint: IJSDOMPoint;
  84002. begin
  84003. Result:=InvokeJSObjectResult('transformPoint',[],TJSDOMPoint) as IJSDOMPoint;
  84004. end;
  84005. function TJSDOMMatrixReadOnly.toFloat32Array: IJSFloat32Array;
  84006. begin
  84007. Result:=InvokeJSObjectResult('toFloat32Array',[],TJSArray) as IJSFloat32Array;
  84008. end;
  84009. function TJSDOMMatrixReadOnly.toFloat64Array: IJSFloat64Array;
  84010. begin
  84011. Result:=InvokeJSObjectResult('toFloat64Array',[],TJSArray) as IJSFloat64Array;
  84012. end;
  84013. function TJSDOMMatrixReadOnly.toJSON: IJSObject;
  84014. begin
  84015. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  84016. end;
  84017. class function TJSDOMMatrixReadOnly.JSClassName: UnicodeString;
  84018. begin
  84019. Result:='DOMMatrixReadOnly';
  84020. end;
  84021. class function TJSDOMMatrixReadOnly.Cast(const Intf: IJSObject): IJSDOMMatrixReadOnly;
  84022. begin
  84023. Result:=TJSDOMMatrixReadOnly.JOBCast(Intf);
  84024. end;
  84025. function TJSDOMMatrix._Geta2: Double;
  84026. begin
  84027. Result:=ReadJSPropertyDouble('a');
  84028. end;
  84029. function TJSDOMMatrix._Getb2: Double;
  84030. begin
  84031. Result:=ReadJSPropertyDouble('b');
  84032. end;
  84033. function TJSDOMMatrix._Getc2: Double;
  84034. begin
  84035. Result:=ReadJSPropertyDouble('c');
  84036. end;
  84037. function TJSDOMMatrix._Getd2: Double;
  84038. begin
  84039. Result:=ReadJSPropertyDouble('d');
  84040. end;
  84041. function TJSDOMMatrix._Gete2: Double;
  84042. begin
  84043. Result:=ReadJSPropertyDouble('e');
  84044. end;
  84045. function TJSDOMMatrix._Getf2: Double;
  84046. begin
  84047. Result:=ReadJSPropertyDouble('f');
  84048. end;
  84049. function TJSDOMMatrix._Getm112: Double;
  84050. begin
  84051. Result:=ReadJSPropertyDouble('m11');
  84052. end;
  84053. function TJSDOMMatrix._Getm122: Double;
  84054. begin
  84055. Result:=ReadJSPropertyDouble('m12');
  84056. end;
  84057. function TJSDOMMatrix._Getm132: Double;
  84058. begin
  84059. Result:=ReadJSPropertyDouble('m13');
  84060. end;
  84061. function TJSDOMMatrix._Getm142: Double;
  84062. begin
  84063. Result:=ReadJSPropertyDouble('m14');
  84064. end;
  84065. function TJSDOMMatrix._Getm212: Double;
  84066. begin
  84067. Result:=ReadJSPropertyDouble('m21');
  84068. end;
  84069. function TJSDOMMatrix._Getm222: Double;
  84070. begin
  84071. Result:=ReadJSPropertyDouble('m22');
  84072. end;
  84073. function TJSDOMMatrix._Getm232: Double;
  84074. begin
  84075. Result:=ReadJSPropertyDouble('m23');
  84076. end;
  84077. function TJSDOMMatrix._Getm242: Double;
  84078. begin
  84079. Result:=ReadJSPropertyDouble('m24');
  84080. end;
  84081. function TJSDOMMatrix._Getm312: Double;
  84082. begin
  84083. Result:=ReadJSPropertyDouble('m31');
  84084. end;
  84085. function TJSDOMMatrix._Getm322: Double;
  84086. begin
  84087. Result:=ReadJSPropertyDouble('m32');
  84088. end;
  84089. function TJSDOMMatrix._Getm332: Double;
  84090. begin
  84091. Result:=ReadJSPropertyDouble('m33');
  84092. end;
  84093. function TJSDOMMatrix._Getm342: Double;
  84094. begin
  84095. Result:=ReadJSPropertyDouble('m34');
  84096. end;
  84097. function TJSDOMMatrix._Getm412: Double;
  84098. begin
  84099. Result:=ReadJSPropertyDouble('m41');
  84100. end;
  84101. function TJSDOMMatrix._Getm422: Double;
  84102. begin
  84103. Result:=ReadJSPropertyDouble('m42');
  84104. end;
  84105. function TJSDOMMatrix._Getm432: Double;
  84106. begin
  84107. Result:=ReadJSPropertyDouble('m43');
  84108. end;
  84109. function TJSDOMMatrix._Getm442: Double;
  84110. begin
  84111. Result:=ReadJSPropertyDouble('m44');
  84112. end;
  84113. procedure TJSDOMMatrix._Seta2(const aValue : Double);
  84114. begin
  84115. WriteJSPropertyDouble('a',aValue);
  84116. end;
  84117. procedure TJSDOMMatrix._Setb2(const aValue : Double);
  84118. begin
  84119. WriteJSPropertyDouble('b',aValue);
  84120. end;
  84121. procedure TJSDOMMatrix._Setc2(const aValue : Double);
  84122. begin
  84123. WriteJSPropertyDouble('c',aValue);
  84124. end;
  84125. procedure TJSDOMMatrix._Setd2(const aValue : Double);
  84126. begin
  84127. WriteJSPropertyDouble('d',aValue);
  84128. end;
  84129. procedure TJSDOMMatrix._Sete2(const aValue : Double);
  84130. begin
  84131. WriteJSPropertyDouble('e',aValue);
  84132. end;
  84133. procedure TJSDOMMatrix._Setf2(const aValue : Double);
  84134. begin
  84135. WriteJSPropertyDouble('f',aValue);
  84136. end;
  84137. procedure TJSDOMMatrix._Setm112(const aValue : Double);
  84138. begin
  84139. WriteJSPropertyDouble('m11',aValue);
  84140. end;
  84141. procedure TJSDOMMatrix._Setm122(const aValue : Double);
  84142. begin
  84143. WriteJSPropertyDouble('m12',aValue);
  84144. end;
  84145. procedure TJSDOMMatrix._Setm132(const aValue : Double);
  84146. begin
  84147. WriteJSPropertyDouble('m13',aValue);
  84148. end;
  84149. procedure TJSDOMMatrix._Setm142(const aValue : Double);
  84150. begin
  84151. WriteJSPropertyDouble('m14',aValue);
  84152. end;
  84153. procedure TJSDOMMatrix._Setm212(const aValue : Double);
  84154. begin
  84155. WriteJSPropertyDouble('m21',aValue);
  84156. end;
  84157. procedure TJSDOMMatrix._Setm222(const aValue : Double);
  84158. begin
  84159. WriteJSPropertyDouble('m22',aValue);
  84160. end;
  84161. procedure TJSDOMMatrix._Setm232(const aValue : Double);
  84162. begin
  84163. WriteJSPropertyDouble('m23',aValue);
  84164. end;
  84165. procedure TJSDOMMatrix._Setm242(const aValue : Double);
  84166. begin
  84167. WriteJSPropertyDouble('m24',aValue);
  84168. end;
  84169. procedure TJSDOMMatrix._Setm312(const aValue : Double);
  84170. begin
  84171. WriteJSPropertyDouble('m31',aValue);
  84172. end;
  84173. procedure TJSDOMMatrix._Setm322(const aValue : Double);
  84174. begin
  84175. WriteJSPropertyDouble('m32',aValue);
  84176. end;
  84177. procedure TJSDOMMatrix._Setm332(const aValue : Double);
  84178. begin
  84179. WriteJSPropertyDouble('m33',aValue);
  84180. end;
  84181. procedure TJSDOMMatrix._Setm342(const aValue : Double);
  84182. begin
  84183. WriteJSPropertyDouble('m34',aValue);
  84184. end;
  84185. procedure TJSDOMMatrix._Setm412(const aValue : Double);
  84186. begin
  84187. WriteJSPropertyDouble('m41',aValue);
  84188. end;
  84189. procedure TJSDOMMatrix._Setm422(const aValue : Double);
  84190. begin
  84191. WriteJSPropertyDouble('m42',aValue);
  84192. end;
  84193. procedure TJSDOMMatrix._Setm432(const aValue : Double);
  84194. begin
  84195. WriteJSPropertyDouble('m43',aValue);
  84196. end;
  84197. procedure TJSDOMMatrix._Setm442(const aValue : Double);
  84198. begin
  84199. WriteJSPropertyDouble('m44',aValue);
  84200. end;
  84201. constructor TJSDOMMatrix.Create(aInit: IJSDOMMatrixReadOnly);
  84202. begin
  84203. JOBCreate([aInit]);
  84204. end;
  84205. constructor TJSDOMMatrix.Create;
  84206. begin
  84207. JOBCreate([]);
  84208. end;
  84209. constructor TJSDOMMatrix.Create(const aInit: TDoubleDynArray);
  84210. begin
  84211. JOBCreate([aInit]);
  84212. end;
  84213. constructor TJSDOMMatrix.Create(const aInit: UTF8String);
  84214. begin
  84215. JOBCreate([aInit]);
  84216. end;
  84217. function TJSDOMMatrix.fromMatrix(const aOther: TJSDOMMatrixInit): IJSDOMMatrix;
  84218. begin
  84219. Result:=InvokeJSObjectResult('fromMatrix',[aOther],TJSDOMMatrix) as IJSDOMMatrix;
  84220. end;
  84221. function TJSDOMMatrix.fromMatrix: IJSDOMMatrix;
  84222. begin
  84223. Result:=InvokeJSObjectResult('fromMatrix',[],TJSDOMMatrix) as IJSDOMMatrix;
  84224. end;
  84225. function TJSDOMMatrix.fromFloat32Array(aArray32: IJSFloat32Array): IJSDOMMatrix;
  84226. begin
  84227. Result:=InvokeJSObjectResult('fromFloat32Array',[aArray32],TJSDOMMatrix) as IJSDOMMatrix;
  84228. end;
  84229. function TJSDOMMatrix.fromFloat64Array(aArray64: IJSFloat64Array): IJSDOMMatrix;
  84230. begin
  84231. Result:=InvokeJSObjectResult('fromFloat64Array',[aArray64],TJSDOMMatrix) as IJSDOMMatrix;
  84232. end;
  84233. function TJSDOMMatrix.multiplySelf(const aOther: TJSDOMMatrixInit): IJSDOMMatrix;
  84234. begin
  84235. Result:=InvokeJSObjectResult('multiplySelf',[aOther],TJSDOMMatrix) as IJSDOMMatrix;
  84236. end;
  84237. function TJSDOMMatrix.multiplySelf: IJSDOMMatrix;
  84238. begin
  84239. Result:=InvokeJSObjectResult('multiplySelf',[],TJSDOMMatrix) as IJSDOMMatrix;
  84240. end;
  84241. function TJSDOMMatrix.preMultiplySelf(const aOther: TJSDOMMatrixInit): IJSDOMMatrix;
  84242. begin
  84243. Result:=InvokeJSObjectResult('preMultiplySelf',[aOther],TJSDOMMatrix) as IJSDOMMatrix;
  84244. end;
  84245. function TJSDOMMatrix.preMultiplySelf: IJSDOMMatrix;
  84246. begin
  84247. Result:=InvokeJSObjectResult('preMultiplySelf',[],TJSDOMMatrix) as IJSDOMMatrix;
  84248. end;
  84249. function TJSDOMMatrix.translateSelf(aTx: Double; aTy: Double; aTz: Double): IJSDOMMatrix;
  84250. begin
  84251. Result:=InvokeJSObjectResult('translateSelf',[aTx,aTy,aTz],TJSDOMMatrix) as IJSDOMMatrix;
  84252. end;
  84253. function TJSDOMMatrix.translateSelf: IJSDOMMatrix;
  84254. begin
  84255. Result:=InvokeJSObjectResult('translateSelf',[],TJSDOMMatrix) as IJSDOMMatrix;
  84256. end;
  84257. function TJSDOMMatrix.translateSelf(aTx: Double): IJSDOMMatrix;
  84258. begin
  84259. Result:=InvokeJSObjectResult('translateSelf',[aTx],TJSDOMMatrix) as IJSDOMMatrix;
  84260. end;
  84261. function TJSDOMMatrix.translateSelf(aTx: Double; aTy: Double): IJSDOMMatrix;
  84262. begin
  84263. Result:=InvokeJSObjectResult('translateSelf',[aTx,aTy],TJSDOMMatrix) as IJSDOMMatrix;
  84264. end;
  84265. function TJSDOMMatrix.scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix;
  84266. begin
  84267. Result:=InvokeJSObjectResult('scaleSelf',[aScaleX,aScaleY,aScaleZ,aOriginX,aOriginY,aOriginZ],TJSDOMMatrix) as IJSDOMMatrix;
  84268. end;
  84269. function TJSDOMMatrix.scaleSelf: IJSDOMMatrix;
  84270. begin
  84271. Result:=InvokeJSObjectResult('scaleSelf',[],TJSDOMMatrix) as IJSDOMMatrix;
  84272. end;
  84273. function TJSDOMMatrix.scaleSelf(aScaleX: Double): IJSDOMMatrix;
  84274. begin
  84275. Result:=InvokeJSObjectResult('scaleSelf',[aScaleX],TJSDOMMatrix) as IJSDOMMatrix;
  84276. end;
  84277. function TJSDOMMatrix.scaleSelf(aScaleX: Double; aScaleY: Double): IJSDOMMatrix;
  84278. begin
  84279. Result:=InvokeJSObjectResult('scaleSelf',[aScaleX,aScaleY],TJSDOMMatrix) as IJSDOMMatrix;
  84280. end;
  84281. function TJSDOMMatrix.scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double): IJSDOMMatrix;
  84282. begin
  84283. Result:=InvokeJSObjectResult('scaleSelf',[aScaleX,aScaleY,aScaleZ],TJSDOMMatrix) as IJSDOMMatrix;
  84284. end;
  84285. function TJSDOMMatrix.scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double): IJSDOMMatrix;
  84286. begin
  84287. Result:=InvokeJSObjectResult('scaleSelf',[aScaleX,aScaleY,aScaleZ,aOriginX],TJSDOMMatrix) as IJSDOMMatrix;
  84288. end;
  84289. function TJSDOMMatrix.scaleSelf(aScaleX: Double; aScaleY: Double; aScaleZ: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix;
  84290. begin
  84291. Result:=InvokeJSObjectResult('scaleSelf',[aScaleX,aScaleY,aScaleZ,aOriginX,aOriginY],TJSDOMMatrix) as IJSDOMMatrix;
  84292. end;
  84293. function TJSDOMMatrix.scale3dSelf(aScale: Double; aOriginX: Double; aOriginY: Double; aOriginZ: Double): IJSDOMMatrix;
  84294. begin
  84295. Result:=InvokeJSObjectResult('scale3dSelf',[aScale,aOriginX,aOriginY,aOriginZ],TJSDOMMatrix) as IJSDOMMatrix;
  84296. end;
  84297. function TJSDOMMatrix.scale3dSelf: IJSDOMMatrix;
  84298. begin
  84299. Result:=InvokeJSObjectResult('scale3dSelf',[],TJSDOMMatrix) as IJSDOMMatrix;
  84300. end;
  84301. function TJSDOMMatrix.scale3dSelf(aScale: Double): IJSDOMMatrix;
  84302. begin
  84303. Result:=InvokeJSObjectResult('scale3dSelf',[aScale],TJSDOMMatrix) as IJSDOMMatrix;
  84304. end;
  84305. function TJSDOMMatrix.scale3dSelf(aScale: Double; aOriginX: Double): IJSDOMMatrix;
  84306. begin
  84307. Result:=InvokeJSObjectResult('scale3dSelf',[aScale,aOriginX],TJSDOMMatrix) as IJSDOMMatrix;
  84308. end;
  84309. function TJSDOMMatrix.scale3dSelf(aScale: Double; aOriginX: Double; aOriginY: Double): IJSDOMMatrix;
  84310. begin
  84311. Result:=InvokeJSObjectResult('scale3dSelf',[aScale,aOriginX,aOriginY],TJSDOMMatrix) as IJSDOMMatrix;
  84312. end;
  84313. function TJSDOMMatrix.rotateSelf(aRotX: Double; aRotY: Double; aRotZ: Double): IJSDOMMatrix;
  84314. begin
  84315. Result:=InvokeJSObjectResult('rotateSelf',[aRotX,aRotY,aRotZ],TJSDOMMatrix) as IJSDOMMatrix;
  84316. end;
  84317. function TJSDOMMatrix.rotateSelf: IJSDOMMatrix;
  84318. begin
  84319. Result:=InvokeJSObjectResult('rotateSelf',[],TJSDOMMatrix) as IJSDOMMatrix;
  84320. end;
  84321. function TJSDOMMatrix.rotateSelf(aRotX: Double): IJSDOMMatrix;
  84322. begin
  84323. Result:=InvokeJSObjectResult('rotateSelf',[aRotX],TJSDOMMatrix) as IJSDOMMatrix;
  84324. end;
  84325. function TJSDOMMatrix.rotateSelf(aRotX: Double; aRotY: Double): IJSDOMMatrix;
  84326. begin
  84327. Result:=InvokeJSObjectResult('rotateSelf',[aRotX,aRotY],TJSDOMMatrix) as IJSDOMMatrix;
  84328. end;
  84329. function TJSDOMMatrix.rotateFromVectorSelf(aX: Double; aY: Double): IJSDOMMatrix;
  84330. begin
  84331. Result:=InvokeJSObjectResult('rotateFromVectorSelf',[aX,aY],TJSDOMMatrix) as IJSDOMMatrix;
  84332. end;
  84333. function TJSDOMMatrix.rotateFromVectorSelf: IJSDOMMatrix;
  84334. begin
  84335. Result:=InvokeJSObjectResult('rotateFromVectorSelf',[],TJSDOMMatrix) as IJSDOMMatrix;
  84336. end;
  84337. function TJSDOMMatrix.rotateFromVectorSelf(aX: Double): IJSDOMMatrix;
  84338. begin
  84339. Result:=InvokeJSObjectResult('rotateFromVectorSelf',[aX],TJSDOMMatrix) as IJSDOMMatrix;
  84340. end;
  84341. function TJSDOMMatrix.rotateAxisAngleSelf(aX: Double; aY: Double; aZ: Double; aAngle: Double): IJSDOMMatrix;
  84342. begin
  84343. Result:=InvokeJSObjectResult('rotateAxisAngleSelf',[aX,aY,aZ,aAngle],TJSDOMMatrix) as IJSDOMMatrix;
  84344. end;
  84345. function TJSDOMMatrix.rotateAxisAngleSelf: IJSDOMMatrix;
  84346. begin
  84347. Result:=InvokeJSObjectResult('rotateAxisAngleSelf',[],TJSDOMMatrix) as IJSDOMMatrix;
  84348. end;
  84349. function TJSDOMMatrix.rotateAxisAngleSelf(aX: Double): IJSDOMMatrix;
  84350. begin
  84351. Result:=InvokeJSObjectResult('rotateAxisAngleSelf',[aX],TJSDOMMatrix) as IJSDOMMatrix;
  84352. end;
  84353. function TJSDOMMatrix.rotateAxisAngleSelf(aX: Double; aY: Double): IJSDOMMatrix;
  84354. begin
  84355. Result:=InvokeJSObjectResult('rotateAxisAngleSelf',[aX,aY],TJSDOMMatrix) as IJSDOMMatrix;
  84356. end;
  84357. function TJSDOMMatrix.rotateAxisAngleSelf(aX: Double; aY: Double; aZ: Double): IJSDOMMatrix;
  84358. begin
  84359. Result:=InvokeJSObjectResult('rotateAxisAngleSelf',[aX,aY,aZ],TJSDOMMatrix) as IJSDOMMatrix;
  84360. end;
  84361. function TJSDOMMatrix.skewXSelf(aSx: Double): IJSDOMMatrix;
  84362. begin
  84363. Result:=InvokeJSObjectResult('skewXSelf',[aSx],TJSDOMMatrix) as IJSDOMMatrix;
  84364. end;
  84365. function TJSDOMMatrix.skewXSelf: IJSDOMMatrix;
  84366. begin
  84367. Result:=InvokeJSObjectResult('skewXSelf',[],TJSDOMMatrix) as IJSDOMMatrix;
  84368. end;
  84369. function TJSDOMMatrix.skewYSelf(aSy: Double): IJSDOMMatrix;
  84370. begin
  84371. Result:=InvokeJSObjectResult('skewYSelf',[aSy],TJSDOMMatrix) as IJSDOMMatrix;
  84372. end;
  84373. function TJSDOMMatrix.skewYSelf: IJSDOMMatrix;
  84374. begin
  84375. Result:=InvokeJSObjectResult('skewYSelf',[],TJSDOMMatrix) as IJSDOMMatrix;
  84376. end;
  84377. function TJSDOMMatrix.invertSelf: IJSDOMMatrix;
  84378. begin
  84379. Result:=InvokeJSObjectResult('invertSelf',[],TJSDOMMatrix) as IJSDOMMatrix;
  84380. end;
  84381. function TJSDOMMatrix.setMatrixValue(const aTransformList: UTF8String): IJSDOMMatrix;
  84382. begin
  84383. Result:=InvokeJSObjectResult('setMatrixValue',[aTransformList],TJSDOMMatrix) as IJSDOMMatrix;
  84384. end;
  84385. class function TJSDOMMatrix.JSClassName: UnicodeString;
  84386. begin
  84387. Result:='DOMMatrix';
  84388. end;
  84389. class function TJSDOMMatrix.Cast(const Intf: IJSObject): IJSDOMMatrix;
  84390. begin
  84391. Result:=TJSDOMMatrix.JOBCast(Intf);
  84392. end;
  84393. function TJSDOMMatrix2DInit._Geta: Double;
  84394. begin
  84395. Result:=ReadJSPropertyDouble('a');
  84396. end;
  84397. function TJSDOMMatrix2DInit._Getb: Double;
  84398. begin
  84399. Result:=ReadJSPropertyDouble('b');
  84400. end;
  84401. function TJSDOMMatrix2DInit._Getc: Double;
  84402. begin
  84403. Result:=ReadJSPropertyDouble('c');
  84404. end;
  84405. function TJSDOMMatrix2DInit._Getd: Double;
  84406. begin
  84407. Result:=ReadJSPropertyDouble('d');
  84408. end;
  84409. function TJSDOMMatrix2DInit._Gete: Double;
  84410. begin
  84411. Result:=ReadJSPropertyDouble('e');
  84412. end;
  84413. function TJSDOMMatrix2DInit._Getf: Double;
  84414. begin
  84415. Result:=ReadJSPropertyDouble('f');
  84416. end;
  84417. function TJSDOMMatrix2DInit._Getm11: Double;
  84418. begin
  84419. Result:=ReadJSPropertyDouble('m11');
  84420. end;
  84421. function TJSDOMMatrix2DInit._Getm12: Double;
  84422. begin
  84423. Result:=ReadJSPropertyDouble('m12');
  84424. end;
  84425. function TJSDOMMatrix2DInit._Getm21: Double;
  84426. begin
  84427. Result:=ReadJSPropertyDouble('m21');
  84428. end;
  84429. function TJSDOMMatrix2DInit._Getm22: Double;
  84430. begin
  84431. Result:=ReadJSPropertyDouble('m22');
  84432. end;
  84433. function TJSDOMMatrix2DInit._Getm41: Double;
  84434. begin
  84435. Result:=ReadJSPropertyDouble('m41');
  84436. end;
  84437. function TJSDOMMatrix2DInit._Getm42: Double;
  84438. begin
  84439. Result:=ReadJSPropertyDouble('m42');
  84440. end;
  84441. procedure TJSDOMMatrix2DInit._Seta(const aValue : Double);
  84442. begin
  84443. WriteJSPropertyDouble('a',aValue);
  84444. end;
  84445. procedure TJSDOMMatrix2DInit._Setb(const aValue : Double);
  84446. begin
  84447. WriteJSPropertyDouble('b',aValue);
  84448. end;
  84449. procedure TJSDOMMatrix2DInit._Setc(const aValue : Double);
  84450. begin
  84451. WriteJSPropertyDouble('c',aValue);
  84452. end;
  84453. procedure TJSDOMMatrix2DInit._Setd(const aValue : Double);
  84454. begin
  84455. WriteJSPropertyDouble('d',aValue);
  84456. end;
  84457. procedure TJSDOMMatrix2DInit._Sete(const aValue : Double);
  84458. begin
  84459. WriteJSPropertyDouble('e',aValue);
  84460. end;
  84461. procedure TJSDOMMatrix2DInit._Setf(const aValue : Double);
  84462. begin
  84463. WriteJSPropertyDouble('f',aValue);
  84464. end;
  84465. procedure TJSDOMMatrix2DInit._Setm11(const aValue : Double);
  84466. begin
  84467. WriteJSPropertyDouble('m11',aValue);
  84468. end;
  84469. procedure TJSDOMMatrix2DInit._Setm12(const aValue : Double);
  84470. begin
  84471. WriteJSPropertyDouble('m12',aValue);
  84472. end;
  84473. procedure TJSDOMMatrix2DInit._Setm21(const aValue : Double);
  84474. begin
  84475. WriteJSPropertyDouble('m21',aValue);
  84476. end;
  84477. procedure TJSDOMMatrix2DInit._Setm22(const aValue : Double);
  84478. begin
  84479. WriteJSPropertyDouble('m22',aValue);
  84480. end;
  84481. procedure TJSDOMMatrix2DInit._Setm41(const aValue : Double);
  84482. begin
  84483. WriteJSPropertyDouble('m41',aValue);
  84484. end;
  84485. procedure TJSDOMMatrix2DInit._Setm42(const aValue : Double);
  84486. begin
  84487. WriteJSPropertyDouble('m42',aValue);
  84488. end;
  84489. class function TJSDOMMatrix2DInit.JSClassName: UnicodeString;
  84490. begin
  84491. Result:='Object';
  84492. end;
  84493. class function TJSDOMMatrix2DInit.Cast(const Intf: IJSObject): IJSDOMMatrix2DInit;
  84494. begin
  84495. Result:=TJSDOMMatrix2DInit.JOBCast(Intf);
  84496. end;
  84497. function TJSDOMMatrixInit._Getm13: Double;
  84498. begin
  84499. Result:=ReadJSPropertyDouble('m13');
  84500. end;
  84501. function TJSDOMMatrixInit._Getm14: Double;
  84502. begin
  84503. Result:=ReadJSPropertyDouble('m14');
  84504. end;
  84505. function TJSDOMMatrixInit._Getm23: Double;
  84506. begin
  84507. Result:=ReadJSPropertyDouble('m23');
  84508. end;
  84509. function TJSDOMMatrixInit._Getm24: Double;
  84510. begin
  84511. Result:=ReadJSPropertyDouble('m24');
  84512. end;
  84513. function TJSDOMMatrixInit._Getm31: Double;
  84514. begin
  84515. Result:=ReadJSPropertyDouble('m31');
  84516. end;
  84517. function TJSDOMMatrixInit._Getm32: Double;
  84518. begin
  84519. Result:=ReadJSPropertyDouble('m32');
  84520. end;
  84521. function TJSDOMMatrixInit._Getm33: Double;
  84522. begin
  84523. Result:=ReadJSPropertyDouble('m33');
  84524. end;
  84525. function TJSDOMMatrixInit._Getm34: Double;
  84526. begin
  84527. Result:=ReadJSPropertyDouble('m34');
  84528. end;
  84529. function TJSDOMMatrixInit._Getm43: Double;
  84530. begin
  84531. Result:=ReadJSPropertyDouble('m43');
  84532. end;
  84533. function TJSDOMMatrixInit._Getm44: Double;
  84534. begin
  84535. Result:=ReadJSPropertyDouble('m44');
  84536. end;
  84537. function TJSDOMMatrixInit._Getis2D: Boolean;
  84538. begin
  84539. Result:=ReadJSPropertyBoolean('is2D');
  84540. end;
  84541. procedure TJSDOMMatrixInit._Setm13(const aValue : Double);
  84542. begin
  84543. WriteJSPropertyDouble('m13',aValue);
  84544. end;
  84545. procedure TJSDOMMatrixInit._Setm14(const aValue : Double);
  84546. begin
  84547. WriteJSPropertyDouble('m14',aValue);
  84548. end;
  84549. procedure TJSDOMMatrixInit._Setm23(const aValue : Double);
  84550. begin
  84551. WriteJSPropertyDouble('m23',aValue);
  84552. end;
  84553. procedure TJSDOMMatrixInit._Setm24(const aValue : Double);
  84554. begin
  84555. WriteJSPropertyDouble('m24',aValue);
  84556. end;
  84557. procedure TJSDOMMatrixInit._Setm31(const aValue : Double);
  84558. begin
  84559. WriteJSPropertyDouble('m31',aValue);
  84560. end;
  84561. procedure TJSDOMMatrixInit._Setm32(const aValue : Double);
  84562. begin
  84563. WriteJSPropertyDouble('m32',aValue);
  84564. end;
  84565. procedure TJSDOMMatrixInit._Setm33(const aValue : Double);
  84566. begin
  84567. WriteJSPropertyDouble('m33',aValue);
  84568. end;
  84569. procedure TJSDOMMatrixInit._Setm34(const aValue : Double);
  84570. begin
  84571. WriteJSPropertyDouble('m34',aValue);
  84572. end;
  84573. procedure TJSDOMMatrixInit._Setm43(const aValue : Double);
  84574. begin
  84575. WriteJSPropertyDouble('m43',aValue);
  84576. end;
  84577. procedure TJSDOMMatrixInit._Setm44(const aValue : Double);
  84578. begin
  84579. WriteJSPropertyDouble('m44',aValue);
  84580. end;
  84581. procedure TJSDOMMatrixInit._Setis2D(const aValue : Boolean);
  84582. begin
  84583. WriteJSPropertyBoolean('is2D',aValue);
  84584. end;
  84585. class function TJSDOMMatrixInit.JSClassName: UnicodeString;
  84586. begin
  84587. Result:='Object';
  84588. end;
  84589. class function TJSDOMMatrixInit.Cast(const Intf: IJSObject): IJSDOMMatrixInit;
  84590. begin
  84591. Result:=TJSDOMMatrixInit.JOBCast(Intf);
  84592. end;
  84593. class function TJSInputStream.JSClassName: UnicodeString;
  84594. begin
  84595. Result:='InputStream';
  84596. end;
  84597. class function TJSInputStream.Cast(const Intf: IJSObject): IJSInputStream;
  84598. begin
  84599. Result:=TJSInputStream.JOBCast(Intf);
  84600. end;
  84601. constructor TJSDOMParser.Create;
  84602. begin
  84603. JOBCreate([]);
  84604. end;
  84605. function TJSDOMParser.parseFromString(const aStr: UnicodeString; aType_: TSupportedType): IJSDocument;
  84606. begin
  84607. Result:=InvokeJSObjectResult('parseFromString',[aStr,aType_],TJSDocument) as IJSDocument;
  84608. end;
  84609. procedure TJSDOMParser.forceEnableDTD;
  84610. begin
  84611. InvokeJSNoResult('forceEnableDTD',[]);
  84612. end;
  84613. class function TJSDOMParser.JSClassName: UnicodeString;
  84614. begin
  84615. Result:='DOMParser';
  84616. end;
  84617. class function TJSDOMParser.Cast(const Intf: IJSObject): IJSDOMParser;
  84618. begin
  84619. Result:=TJSDOMParser.JOBCast(Intf);
  84620. end;
  84621. function TJSDOMPointReadOnly._Getx: Double;
  84622. begin
  84623. Result:=ReadJSPropertyDouble('x');
  84624. end;
  84625. function TJSDOMPointReadOnly._Gety: Double;
  84626. begin
  84627. Result:=ReadJSPropertyDouble('y');
  84628. end;
  84629. function TJSDOMPointReadOnly._Getz: Double;
  84630. begin
  84631. Result:=ReadJSPropertyDouble('z');
  84632. end;
  84633. function TJSDOMPointReadOnly._Getw: Double;
  84634. begin
  84635. Result:=ReadJSPropertyDouble('w');
  84636. end;
  84637. constructor TJSDOMPointReadOnly.Create(aX: Double; aY: Double; aZ: Double; aW: Double);
  84638. begin
  84639. JOBCreate([aX,aY,aZ,aW]);
  84640. end;
  84641. constructor TJSDOMPointReadOnly.Create;
  84642. begin
  84643. JOBCreate([]);
  84644. end;
  84645. constructor TJSDOMPointReadOnly.Create(aX: Double);
  84646. begin
  84647. JOBCreate([aX]);
  84648. end;
  84649. constructor TJSDOMPointReadOnly.Create(aX: Double; aY: Double);
  84650. begin
  84651. JOBCreate([aX,aY]);
  84652. end;
  84653. constructor TJSDOMPointReadOnly.Create(aX: Double; aY: Double; aZ: Double);
  84654. begin
  84655. JOBCreate([aX,aY,aZ]);
  84656. end;
  84657. function TJSDOMPointReadOnly.fromPoint(const aOther: TJSDOMPointInit): IJSDOMPointReadOnly;
  84658. begin
  84659. Result:=InvokeJSObjectResult('fromPoint',[aOther],TJSDOMPointReadOnly) as IJSDOMPointReadOnly;
  84660. end;
  84661. function TJSDOMPointReadOnly.fromPoint: IJSDOMPointReadOnly;
  84662. begin
  84663. Result:=InvokeJSObjectResult('fromPoint',[],TJSDOMPointReadOnly) as IJSDOMPointReadOnly;
  84664. end;
  84665. function TJSDOMPointReadOnly.matrixTransform(const aMatrix: TJSDOMMatrixInit): IJSDOMPoint;
  84666. begin
  84667. Result:=InvokeJSObjectResult('matrixTransform',[aMatrix],TJSDOMPoint) as IJSDOMPoint;
  84668. end;
  84669. function TJSDOMPointReadOnly.matrixTransform: IJSDOMPoint;
  84670. begin
  84671. Result:=InvokeJSObjectResult('matrixTransform',[],TJSDOMPoint) as IJSDOMPoint;
  84672. end;
  84673. function TJSDOMPointReadOnly.toJSON: IJSObject;
  84674. begin
  84675. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  84676. end;
  84677. class function TJSDOMPointReadOnly.JSClassName: UnicodeString;
  84678. begin
  84679. Result:='DOMPointReadOnly';
  84680. end;
  84681. class function TJSDOMPointReadOnly.Cast(const Intf: IJSObject): IJSDOMPointReadOnly;
  84682. begin
  84683. Result:=TJSDOMPointReadOnly.JOBCast(Intf);
  84684. end;
  84685. function TJSDOMPoint._Getx2: Double;
  84686. begin
  84687. Result:=ReadJSPropertyDouble('x');
  84688. end;
  84689. function TJSDOMPoint._Gety2: Double;
  84690. begin
  84691. Result:=ReadJSPropertyDouble('y');
  84692. end;
  84693. function TJSDOMPoint._Getz2: Double;
  84694. begin
  84695. Result:=ReadJSPropertyDouble('z');
  84696. end;
  84697. function TJSDOMPoint._Getw2: Double;
  84698. begin
  84699. Result:=ReadJSPropertyDouble('w');
  84700. end;
  84701. procedure TJSDOMPoint._Setx2(const aValue : Double);
  84702. begin
  84703. WriteJSPropertyDouble('x',aValue);
  84704. end;
  84705. procedure TJSDOMPoint._Sety2(const aValue : Double);
  84706. begin
  84707. WriteJSPropertyDouble('y',aValue);
  84708. end;
  84709. procedure TJSDOMPoint._Setz2(const aValue : Double);
  84710. begin
  84711. WriteJSPropertyDouble('z',aValue);
  84712. end;
  84713. procedure TJSDOMPoint._Setw2(const aValue : Double);
  84714. begin
  84715. WriteJSPropertyDouble('w',aValue);
  84716. end;
  84717. constructor TJSDOMPoint.Create(aX: Double; aY: Double; aZ: Double; aW: Double);
  84718. begin
  84719. JOBCreate([aX,aY,aZ,aW]);
  84720. end;
  84721. constructor TJSDOMPoint.Create;
  84722. begin
  84723. JOBCreate([]);
  84724. end;
  84725. constructor TJSDOMPoint.Create(aX: Double);
  84726. begin
  84727. JOBCreate([aX]);
  84728. end;
  84729. constructor TJSDOMPoint.Create(aX: Double; aY: Double);
  84730. begin
  84731. JOBCreate([aX,aY]);
  84732. end;
  84733. constructor TJSDOMPoint.Create(aX: Double; aY: Double; aZ: Double);
  84734. begin
  84735. JOBCreate([aX,aY,aZ]);
  84736. end;
  84737. function TJSDOMPoint.fromPoint(const aOther: TJSDOMPointInit): IJSDOMPoint;
  84738. begin
  84739. Result:=InvokeJSObjectResult('fromPoint',[aOther],TJSDOMPoint) as IJSDOMPoint;
  84740. end;
  84741. function TJSDOMPoint.fromPoint: IJSDOMPoint;
  84742. begin
  84743. Result:=InvokeJSObjectResult('fromPoint',[],TJSDOMPoint) as IJSDOMPoint;
  84744. end;
  84745. class function TJSDOMPoint.JSClassName: UnicodeString;
  84746. begin
  84747. Result:='DOMPoint';
  84748. end;
  84749. class function TJSDOMPoint.Cast(const Intf: IJSObject): IJSDOMPoint;
  84750. begin
  84751. Result:=TJSDOMPoint.JOBCast(Intf);
  84752. end;
  84753. function TJSDOMPointInit._Getx: Double;
  84754. begin
  84755. Result:=ReadJSPropertyDouble('x');
  84756. end;
  84757. function TJSDOMPointInit._Gety: Double;
  84758. begin
  84759. Result:=ReadJSPropertyDouble('y');
  84760. end;
  84761. function TJSDOMPointInit._Getz: Double;
  84762. begin
  84763. Result:=ReadJSPropertyDouble('z');
  84764. end;
  84765. function TJSDOMPointInit._Getw: Double;
  84766. begin
  84767. Result:=ReadJSPropertyDouble('w');
  84768. end;
  84769. procedure TJSDOMPointInit._Setx(const aValue : Double);
  84770. begin
  84771. WriteJSPropertyDouble('x',aValue);
  84772. end;
  84773. procedure TJSDOMPointInit._Sety(const aValue : Double);
  84774. begin
  84775. WriteJSPropertyDouble('y',aValue);
  84776. end;
  84777. procedure TJSDOMPointInit._Setz(const aValue : Double);
  84778. begin
  84779. WriteJSPropertyDouble('z',aValue);
  84780. end;
  84781. procedure TJSDOMPointInit._Setw(const aValue : Double);
  84782. begin
  84783. WriteJSPropertyDouble('w',aValue);
  84784. end;
  84785. class function TJSDOMPointInit.JSClassName: UnicodeString;
  84786. begin
  84787. Result:='Object';
  84788. end;
  84789. class function TJSDOMPointInit.Cast(const Intf: IJSObject): IJSDOMPointInit;
  84790. begin
  84791. Result:=TJSDOMPointInit.JOBCast(Intf);
  84792. end;
  84793. function TJSDOMQuad._Getp1: IJSDOMPoint;
  84794. begin
  84795. Result:=ReadJSPropertyObject('p1',TJSDOMPoint) as IJSDOMPoint;
  84796. end;
  84797. function TJSDOMQuad._Getp2: IJSDOMPoint;
  84798. begin
  84799. Result:=ReadJSPropertyObject('p2',TJSDOMPoint) as IJSDOMPoint;
  84800. end;
  84801. function TJSDOMQuad._Getp3: IJSDOMPoint;
  84802. begin
  84803. Result:=ReadJSPropertyObject('p3',TJSDOMPoint) as IJSDOMPoint;
  84804. end;
  84805. function TJSDOMQuad._Getp4: IJSDOMPoint;
  84806. begin
  84807. Result:=ReadJSPropertyObject('p4',TJSDOMPoint) as IJSDOMPoint;
  84808. end;
  84809. constructor TJSDOMQuad.Create(const aP1: TJSDOMPointInit; const aP2: TJSDOMPointInit; const aP3: TJSDOMPointInit; const aP4: TJSDOMPointInit);
  84810. begin
  84811. JOBCreate([aP1,aP2,aP3,aP4]);
  84812. end;
  84813. constructor TJSDOMQuad.Create;
  84814. begin
  84815. JOBCreate([]);
  84816. end;
  84817. constructor TJSDOMQuad.Create(const aP1: TJSDOMPointInit);
  84818. begin
  84819. JOBCreate([aP1]);
  84820. end;
  84821. constructor TJSDOMQuad.Create(const aP1: TJSDOMPointInit; const aP2: TJSDOMPointInit);
  84822. begin
  84823. JOBCreate([aP1,aP2]);
  84824. end;
  84825. constructor TJSDOMQuad.Create(const aP1: TJSDOMPointInit; const aP2: TJSDOMPointInit; const aP3: TJSDOMPointInit);
  84826. begin
  84827. JOBCreate([aP1,aP2,aP3]);
  84828. end;
  84829. constructor TJSDOMQuad.Create(aRect: IJSDOMRectReadOnly);
  84830. begin
  84831. JOBCreate([aRect]);
  84832. end;
  84833. function TJSDOMQuad.fromRect(const aOther: TJSDOMRectInit): IJSDOMQuad;
  84834. begin
  84835. Result:=InvokeJSObjectResult('fromRect',[aOther],TJSDOMQuad) as IJSDOMQuad;
  84836. end;
  84837. function TJSDOMQuad.fromRect: IJSDOMQuad;
  84838. begin
  84839. Result:=InvokeJSObjectResult('fromRect',[],TJSDOMQuad) as IJSDOMQuad;
  84840. end;
  84841. function TJSDOMQuad.fromQuad(const aOther: TJSDOMQuadInit): IJSDOMQuad;
  84842. begin
  84843. Result:=InvokeJSObjectResult('fromQuad',[aOther],TJSDOMQuad) as IJSDOMQuad;
  84844. end;
  84845. function TJSDOMQuad.fromQuad: IJSDOMQuad;
  84846. begin
  84847. Result:=InvokeJSObjectResult('fromQuad',[],TJSDOMQuad) as IJSDOMQuad;
  84848. end;
  84849. function TJSDOMQuad.getBounds: IJSDOMRectReadOnly;
  84850. begin
  84851. Result:=InvokeJSObjectResult('getBounds',[],TJSDOMRectReadOnly) as IJSDOMRectReadOnly;
  84852. end;
  84853. function TJSDOMQuad.toJSON: IJSObject;
  84854. begin
  84855. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  84856. end;
  84857. class function TJSDOMQuad.JSClassName: UnicodeString;
  84858. begin
  84859. Result:='DOMQuad';
  84860. end;
  84861. class function TJSDOMQuad.Cast(const Intf: IJSObject): IJSDOMQuad;
  84862. begin
  84863. Result:=TJSDOMQuad.JOBCast(Intf);
  84864. end;
  84865. function TJSDOMQuadInit._Getp1: TJSDOMPointInit;
  84866. begin
  84867. Result:=ReadJSPropertyObject('p1',TJSDOMPointInit) as TJSDOMPointInit;
  84868. end;
  84869. function TJSDOMQuadInit._Getp2: TJSDOMPointInit;
  84870. begin
  84871. Result:=ReadJSPropertyObject('p2',TJSDOMPointInit) as TJSDOMPointInit;
  84872. end;
  84873. function TJSDOMQuadInit._Getp3: TJSDOMPointInit;
  84874. begin
  84875. Result:=ReadJSPropertyObject('p3',TJSDOMPointInit) as TJSDOMPointInit;
  84876. end;
  84877. function TJSDOMQuadInit._Getp4: TJSDOMPointInit;
  84878. begin
  84879. Result:=ReadJSPropertyObject('p4',TJSDOMPointInit) as TJSDOMPointInit;
  84880. end;
  84881. procedure TJSDOMQuadInit._Setp1(const aValue : TJSDOMPointInit);
  84882. begin
  84883. WriteJSPropertyObject('p1',aValue);
  84884. end;
  84885. procedure TJSDOMQuadInit._Setp2(const aValue : TJSDOMPointInit);
  84886. begin
  84887. WriteJSPropertyObject('p2',aValue);
  84888. end;
  84889. procedure TJSDOMQuadInit._Setp3(const aValue : TJSDOMPointInit);
  84890. begin
  84891. WriteJSPropertyObject('p3',aValue);
  84892. end;
  84893. procedure TJSDOMQuadInit._Setp4(const aValue : TJSDOMPointInit);
  84894. begin
  84895. WriteJSPropertyObject('p4',aValue);
  84896. end;
  84897. class function TJSDOMQuadInit.JSClassName: UnicodeString;
  84898. begin
  84899. Result:='Object';
  84900. end;
  84901. class function TJSDOMQuadInit.Cast(const Intf: IJSObject): IJSDOMQuadInit;
  84902. begin
  84903. Result:=TJSDOMQuadInit.JOBCast(Intf);
  84904. end;
  84905. function TJSDOMRect._Getx2: Double;
  84906. begin
  84907. Result:=ReadJSPropertyDouble('x');
  84908. end;
  84909. function TJSDOMRect._Gety2: Double;
  84910. begin
  84911. Result:=ReadJSPropertyDouble('y');
  84912. end;
  84913. function TJSDOMRect._Getwidth2: Double;
  84914. begin
  84915. Result:=ReadJSPropertyDouble('width');
  84916. end;
  84917. function TJSDOMRect._Getheight2: Double;
  84918. begin
  84919. Result:=ReadJSPropertyDouble('height');
  84920. end;
  84921. procedure TJSDOMRect._Setx2(const aValue : Double);
  84922. begin
  84923. WriteJSPropertyDouble('x',aValue);
  84924. end;
  84925. procedure TJSDOMRect._Sety2(const aValue : Double);
  84926. begin
  84927. WriteJSPropertyDouble('y',aValue);
  84928. end;
  84929. procedure TJSDOMRect._Setwidth2(const aValue : Double);
  84930. begin
  84931. WriteJSPropertyDouble('width',aValue);
  84932. end;
  84933. procedure TJSDOMRect._Setheight2(const aValue : Double);
  84934. begin
  84935. WriteJSPropertyDouble('height',aValue);
  84936. end;
  84937. constructor TJSDOMRect.Create(aX: Double; aY: Double; aWidth: Double; aHeight: Double);
  84938. begin
  84939. JOBCreate([aX,aY,aWidth,aHeight]);
  84940. end;
  84941. constructor TJSDOMRect.Create;
  84942. begin
  84943. JOBCreate([]);
  84944. end;
  84945. constructor TJSDOMRect.Create(aX: Double);
  84946. begin
  84947. JOBCreate([aX]);
  84948. end;
  84949. constructor TJSDOMRect.Create(aX: Double; aY: Double);
  84950. begin
  84951. JOBCreate([aX,aY]);
  84952. end;
  84953. constructor TJSDOMRect.Create(aX: Double; aY: Double; aWidth: Double);
  84954. begin
  84955. JOBCreate([aX,aY,aWidth]);
  84956. end;
  84957. function TJSDOMRect.fromRect(const aOther: TJSDOMRectInit): IJSDOMRect;
  84958. begin
  84959. Result:=InvokeJSObjectResult('fromRect',[aOther],TJSDOMRect) as IJSDOMRect;
  84960. end;
  84961. function TJSDOMRect.fromRect: IJSDOMRect;
  84962. begin
  84963. Result:=InvokeJSObjectResult('fromRect',[],TJSDOMRect) as IJSDOMRect;
  84964. end;
  84965. class function TJSDOMRect.JSClassName: UnicodeString;
  84966. begin
  84967. Result:='DOMRect';
  84968. end;
  84969. class function TJSDOMRect.Cast(const Intf: IJSObject): IJSDOMRect;
  84970. begin
  84971. Result:=TJSDOMRect.JOBCast(Intf);
  84972. end;
  84973. function TJSDOMRectReadOnly._Getx: Double;
  84974. begin
  84975. Result:=ReadJSPropertyDouble('x');
  84976. end;
  84977. function TJSDOMRectReadOnly._Gety: Double;
  84978. begin
  84979. Result:=ReadJSPropertyDouble('y');
  84980. end;
  84981. function TJSDOMRectReadOnly._Getwidth: Double;
  84982. begin
  84983. Result:=ReadJSPropertyDouble('width');
  84984. end;
  84985. function TJSDOMRectReadOnly._Getheight: Double;
  84986. begin
  84987. Result:=ReadJSPropertyDouble('height');
  84988. end;
  84989. function TJSDOMRectReadOnly._Gettop: Double;
  84990. begin
  84991. Result:=ReadJSPropertyDouble('top');
  84992. end;
  84993. function TJSDOMRectReadOnly._Getright: Double;
  84994. begin
  84995. Result:=ReadJSPropertyDouble('right');
  84996. end;
  84997. function TJSDOMRectReadOnly._Getbottom: Double;
  84998. begin
  84999. Result:=ReadJSPropertyDouble('bottom');
  85000. end;
  85001. function TJSDOMRectReadOnly._Getleft: Double;
  85002. begin
  85003. Result:=ReadJSPropertyDouble('left');
  85004. end;
  85005. constructor TJSDOMRectReadOnly.Create(aX: Double; aY: Double; aWidth: Double; aHeight: Double);
  85006. begin
  85007. JOBCreate([aX,aY,aWidth,aHeight]);
  85008. end;
  85009. constructor TJSDOMRectReadOnly.Create;
  85010. begin
  85011. JOBCreate([]);
  85012. end;
  85013. constructor TJSDOMRectReadOnly.Create(aX: Double);
  85014. begin
  85015. JOBCreate([aX]);
  85016. end;
  85017. constructor TJSDOMRectReadOnly.Create(aX: Double; aY: Double);
  85018. begin
  85019. JOBCreate([aX,aY]);
  85020. end;
  85021. constructor TJSDOMRectReadOnly.Create(aX: Double; aY: Double; aWidth: Double);
  85022. begin
  85023. JOBCreate([aX,aY,aWidth]);
  85024. end;
  85025. function TJSDOMRectReadOnly.fromRect(const aOther: TJSDOMRectInit): IJSDOMRectReadOnly;
  85026. begin
  85027. Result:=InvokeJSObjectResult('fromRect',[aOther],TJSDOMRectReadOnly) as IJSDOMRectReadOnly;
  85028. end;
  85029. function TJSDOMRectReadOnly.fromRect: IJSDOMRectReadOnly;
  85030. begin
  85031. Result:=InvokeJSObjectResult('fromRect',[],TJSDOMRectReadOnly) as IJSDOMRectReadOnly;
  85032. end;
  85033. function TJSDOMRectReadOnly.toJSON: IJSObject;
  85034. begin
  85035. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  85036. end;
  85037. class function TJSDOMRectReadOnly.JSClassName: UnicodeString;
  85038. begin
  85039. Result:='DOMRectReadOnly';
  85040. end;
  85041. class function TJSDOMRectReadOnly.Cast(const Intf: IJSObject): IJSDOMRectReadOnly;
  85042. begin
  85043. Result:=TJSDOMRectReadOnly.JOBCast(Intf);
  85044. end;
  85045. function TJSDOMRectInit._Getx: Double;
  85046. begin
  85047. Result:=ReadJSPropertyDouble('x');
  85048. end;
  85049. function TJSDOMRectInit._Gety: Double;
  85050. begin
  85051. Result:=ReadJSPropertyDouble('y');
  85052. end;
  85053. function TJSDOMRectInit._Getwidth: Double;
  85054. begin
  85055. Result:=ReadJSPropertyDouble('width');
  85056. end;
  85057. function TJSDOMRectInit._Getheight: Double;
  85058. begin
  85059. Result:=ReadJSPropertyDouble('height');
  85060. end;
  85061. procedure TJSDOMRectInit._Setx(const aValue : Double);
  85062. begin
  85063. WriteJSPropertyDouble('x',aValue);
  85064. end;
  85065. procedure TJSDOMRectInit._Sety(const aValue : Double);
  85066. begin
  85067. WriteJSPropertyDouble('y',aValue);
  85068. end;
  85069. procedure TJSDOMRectInit._Setwidth(const aValue : Double);
  85070. begin
  85071. WriteJSPropertyDouble('width',aValue);
  85072. end;
  85073. procedure TJSDOMRectInit._Setheight(const aValue : Double);
  85074. begin
  85075. WriteJSPropertyDouble('height',aValue);
  85076. end;
  85077. class function TJSDOMRectInit.JSClassName: UnicodeString;
  85078. begin
  85079. Result:='Object';
  85080. end;
  85081. class function TJSDOMRectInit.Cast(const Intf: IJSObject): IJSDOMRectInit;
  85082. begin
  85083. Result:=TJSDOMRectInit.JOBCast(Intf);
  85084. end;
  85085. function TJSDOMRectList._Getlength_: Cardinal;
  85086. begin
  85087. Result:=ReadJSPropertyInt64('length');
  85088. end;
  85089. function TJSDOMRectList.item(aIndex: Cardinal): IJSDOMRect;
  85090. begin
  85091. Result:=InvokeJSObjectResult('item',[aIndex],TJSDOMRect) as IJSDOMRect;
  85092. end;
  85093. class function TJSDOMRectList.JSClassName: UnicodeString;
  85094. begin
  85095. Result:='DOMRectList';
  85096. end;
  85097. class function TJSDOMRectList.Cast(const Intf: IJSObject): IJSDOMRectList;
  85098. begin
  85099. Result:=TJSDOMRectList.JOBCast(Intf);
  85100. end;
  85101. function TJSDOMStringList._Getlength_: Cardinal;
  85102. begin
  85103. Result:=ReadJSPropertyInt64('length');
  85104. end;
  85105. function TJSDOMStringList.item(aIndex: Cardinal): UnicodeString;
  85106. begin
  85107. Result:=InvokeJSUnicodeStringResult('item',[aIndex]);
  85108. end;
  85109. function TJSDOMStringList.contains(const aString_: UnicodeString): Boolean;
  85110. begin
  85111. Result:=InvokeJSBooleanResult('contains',[aString_]);
  85112. end;
  85113. class function TJSDOMStringList.JSClassName: UnicodeString;
  85114. begin
  85115. Result:='DOMStringList';
  85116. end;
  85117. class function TJSDOMStringList.Cast(const Intf: IJSObject): IJSDOMStringList;
  85118. begin
  85119. Result:=TJSDOMStringList.JOBCast(Intf);
  85120. end;
  85121. function TJSDOMStringMap.GetDefault(const aName: UnicodeString): UnicodeString;
  85122. begin
  85123. Result:=InvokeJSUnicodeStringResult('',[aName]);
  85124. end;
  85125. procedure TJSDOMStringMap.SetDefault(const aName: UnicodeString; const aValue: UnicodeString);
  85126. begin
  85127. InvokeJSNoResult('',[aName,aValue]);
  85128. end;
  85129. procedure TJSDOMStringMap.DOMStringMapType(const aName: UnicodeString);
  85130. begin
  85131. InvokeJSNoResult('',[aName]);
  85132. end;
  85133. class function TJSDOMStringMap.JSClassName: UnicodeString;
  85134. begin
  85135. Result:='DOMStringMap';
  85136. end;
  85137. class function TJSDOMStringMap.Cast(const Intf: IJSObject): IJSDOMStringMap;
  85138. begin
  85139. Result:=TJSDOMStringMap.JOBCast(Intf);
  85140. end;
  85141. function TJSDOMTokenList._Getlength_: Cardinal;
  85142. begin
  85143. Result:=ReadJSPropertyInt64('length');
  85144. end;
  85145. function TJSDOMTokenList._Getvalue: UnicodeString;
  85146. begin
  85147. Result:=ReadJSPropertyUnicodeString('value');
  85148. end;
  85149. function TJSDOMTokenList.item(aIndex: Cardinal): UnicodeString;
  85150. begin
  85151. Result:=InvokeJSUnicodeStringResult('item',[aIndex]);
  85152. end;
  85153. function TJSDOMTokenList.contains(const aToken: UnicodeString): Boolean;
  85154. begin
  85155. Result:=InvokeJSBooleanResult('contains',[aToken]);
  85156. end;
  85157. procedure TJSDOMTokenList.add(const aTokens: UnicodeString){; ToDo:varargs};
  85158. begin
  85159. InvokeJSNoResult('add',[aTokens]);
  85160. end;
  85161. procedure TJSDOMTokenList.remove(const aTokens: UnicodeString){; ToDo:varargs};
  85162. begin
  85163. InvokeJSNoResult('remove',[aTokens]);
  85164. end;
  85165. function TJSDOMTokenList.replace(const aToken: UnicodeString; const aNewToken: UnicodeString): Boolean;
  85166. begin
  85167. Result:=InvokeJSBooleanResult('replace',[aToken,aNewToken]);
  85168. end;
  85169. function TJSDOMTokenList.toggle(const aToken: UnicodeString; aForce: Boolean): Boolean;
  85170. begin
  85171. Result:=InvokeJSBooleanResult('toggle',[aToken,aForce]);
  85172. end;
  85173. function TJSDOMTokenList.toggle(const aToken: UnicodeString): Boolean;
  85174. begin
  85175. Result:=InvokeJSBooleanResult('toggle',[aToken]);
  85176. end;
  85177. function TJSDOMTokenList.supports(const aToken: UnicodeString): Boolean;
  85178. begin
  85179. Result:=InvokeJSBooleanResult('supports',[aToken]);
  85180. end;
  85181. class function TJSDOMTokenList.JSClassName: UnicodeString;
  85182. begin
  85183. Result:='DOMTokenList';
  85184. end;
  85185. class function TJSDOMTokenList.Cast(const Intf: IJSObject): IJSDOMTokenList;
  85186. begin
  85187. Result:=TJSDOMTokenList.JOBCast(Intf);
  85188. end;
  85189. function TJSDragEvent._GetdataTransfer: IJSDataTransfer;
  85190. begin
  85191. Result:=ReadJSPropertyObject('dataTransfer',TJSDataTransfer) as IJSDataTransfer;
  85192. end;
  85193. constructor TJSDragEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSDragEventInit);
  85194. begin
  85195. JOBCreate([aType_,aEventInitDict]);
  85196. end;
  85197. constructor TJSDragEvent.Create(const aType_: UnicodeString);
  85198. begin
  85199. JOBCreate([aType_]);
  85200. end;
  85201. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean; aAButton: Word; aARelatedTarget: IJSEventTarget; aADataTransfer: IJSDataTransfer);
  85202. begin
  85203. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail,aAScreenX,aAScreenY,aAClientX,aAClientY,aACtrlKey,aAAltKey,aAShiftKey,aAMetaKey,aAButton,aARelatedTarget,aADataTransfer]);
  85204. end;
  85205. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString);
  85206. begin
  85207. InvokeJSNoResult('initDragEvent',[aType_]);
  85208. end;
  85209. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  85210. begin
  85211. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble]);
  85212. end;
  85213. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  85214. begin
  85215. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable]);
  85216. end;
  85217. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow);
  85218. begin
  85219. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView]);
  85220. end;
  85221. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt);
  85222. begin
  85223. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail]);
  85224. end;
  85225. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt);
  85226. begin
  85227. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail,aAScreenX]);
  85228. end;
  85229. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt);
  85230. begin
  85231. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail,aAScreenX,aAScreenY]);
  85232. end;
  85233. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt);
  85234. begin
  85235. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail,aAScreenX,aAScreenY,aAClientX]);
  85236. end;
  85237. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt);
  85238. begin
  85239. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail,aAScreenX,aAScreenY,aAClientX,aAClientY]);
  85240. end;
  85241. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean);
  85242. begin
  85243. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail,aAScreenX,aAScreenY,aAClientX,aAClientY,aACtrlKey]);
  85244. end;
  85245. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean);
  85246. begin
  85247. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail,aAScreenX,aAScreenY,aAClientX,aAClientY,aACtrlKey,aAAltKey]);
  85248. end;
  85249. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean);
  85250. begin
  85251. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail,aAScreenX,aAScreenY,aAClientX,aAClientY,aACtrlKey,aAAltKey,aAShiftKey]);
  85252. end;
  85253. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean);
  85254. begin
  85255. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail,aAScreenX,aAScreenY,aAClientX,aAClientY,aACtrlKey,aAAltKey,aAShiftKey,aAMetaKey]);
  85256. end;
  85257. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean; aAButton: Word);
  85258. begin
  85259. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail,aAScreenX,aAScreenY,aAClientX,aAClientY,aACtrlKey,aAAltKey,aAShiftKey,aAMetaKey,aAButton]);
  85260. end;
  85261. procedure TJSDragEvent.initDragEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aAView: IJSWindow; aADetail: LongInt; aAScreenX: LongInt; aAScreenY: LongInt; aAClientX: LongInt; aAClientY: LongInt; aACtrlKey: Boolean; aAAltKey: Boolean; aAShiftKey: Boolean; aAMetaKey: Boolean; aAButton: Word; aARelatedTarget: IJSEventTarget);
  85262. begin
  85263. InvokeJSNoResult('initDragEvent',[aType_,aCanBubble,aCancelable,aAView,aADetail,aAScreenX,aAScreenY,aAClientX,aAClientY,aACtrlKey,aAAltKey,aAShiftKey,aAMetaKey,aAButton,aARelatedTarget]);
  85264. end;
  85265. class function TJSDragEvent.JSClassName: UnicodeString;
  85266. begin
  85267. Result:='DragEvent';
  85268. end;
  85269. class function TJSDragEvent.Cast(const Intf: IJSObject): IJSDragEvent;
  85270. begin
  85271. Result:=TJSDragEvent.JOBCast(Intf);
  85272. end;
  85273. function TJSDragEventInit._GetdataTransfer: IJSDataTransfer;
  85274. begin
  85275. Result:=ReadJSPropertyObject('dataTransfer',TJSDataTransfer) as IJSDataTransfer;
  85276. end;
  85277. procedure TJSDragEventInit._SetdataTransfer(const aValue : IJSDataTransfer);
  85278. begin
  85279. WriteJSPropertyObject('dataTransfer',aValue);
  85280. end;
  85281. class function TJSDragEventInit.JSClassName: UnicodeString;
  85282. begin
  85283. Result:='Object';
  85284. end;
  85285. class function TJSDragEventInit.Cast(const Intf: IJSObject): IJSDragEventInit;
  85286. begin
  85287. Result:=TJSDragEventInit.JOBCast(Intf);
  85288. end;
  85289. function TJSDynamicsCompressorOptions._Getattack: Single;
  85290. begin
  85291. Result:=ReadJSPropertyDouble('attack');
  85292. end;
  85293. function TJSDynamicsCompressorOptions._Getknee: Single;
  85294. begin
  85295. Result:=ReadJSPropertyDouble('knee');
  85296. end;
  85297. function TJSDynamicsCompressorOptions._Getratio: Single;
  85298. begin
  85299. Result:=ReadJSPropertyDouble('ratio');
  85300. end;
  85301. function TJSDynamicsCompressorOptions._Getrelease: Single;
  85302. begin
  85303. Result:=ReadJSPropertyDouble('release');
  85304. end;
  85305. function TJSDynamicsCompressorOptions._Getthreshold: Single;
  85306. begin
  85307. Result:=ReadJSPropertyDouble('threshold');
  85308. end;
  85309. procedure TJSDynamicsCompressorOptions._Setattack(const aValue : Single);
  85310. begin
  85311. WriteJSPropertyDouble('attack',aValue);
  85312. end;
  85313. procedure TJSDynamicsCompressorOptions._Setknee(const aValue : Single);
  85314. begin
  85315. WriteJSPropertyDouble('knee',aValue);
  85316. end;
  85317. procedure TJSDynamicsCompressorOptions._Setratio(const aValue : Single);
  85318. begin
  85319. WriteJSPropertyDouble('ratio',aValue);
  85320. end;
  85321. procedure TJSDynamicsCompressorOptions._Setrelease(const aValue : Single);
  85322. begin
  85323. WriteJSPropertyDouble('release',aValue);
  85324. end;
  85325. procedure TJSDynamicsCompressorOptions._Setthreshold(const aValue : Single);
  85326. begin
  85327. WriteJSPropertyDouble('threshold',aValue);
  85328. end;
  85329. class function TJSDynamicsCompressorOptions.JSClassName: UnicodeString;
  85330. begin
  85331. Result:='Object';
  85332. end;
  85333. class function TJSDynamicsCompressorOptions.Cast(const Intf: IJSObject): IJSDynamicsCompressorOptions;
  85334. begin
  85335. Result:=TJSDynamicsCompressorOptions.JOBCast(Intf);
  85336. end;
  85337. function TJSDynamicsCompressorNode._Getthreshold: IJSAudioParam;
  85338. begin
  85339. Result:=ReadJSPropertyObject('threshold',TJSAudioParam) as IJSAudioParam;
  85340. end;
  85341. function TJSDynamicsCompressorNode._Getknee: IJSAudioParam;
  85342. begin
  85343. Result:=ReadJSPropertyObject('knee',TJSAudioParam) as IJSAudioParam;
  85344. end;
  85345. function TJSDynamicsCompressorNode._Getratio: IJSAudioParam;
  85346. begin
  85347. Result:=ReadJSPropertyObject('ratio',TJSAudioParam) as IJSAudioParam;
  85348. end;
  85349. function TJSDynamicsCompressorNode._Getreduction: Single;
  85350. begin
  85351. Result:=ReadJSPropertyDouble('reduction');
  85352. end;
  85353. function TJSDynamicsCompressorNode._Getattack: IJSAudioParam;
  85354. begin
  85355. Result:=ReadJSPropertyObject('attack',TJSAudioParam) as IJSAudioParam;
  85356. end;
  85357. function TJSDynamicsCompressorNode._Getrelease: IJSAudioParam;
  85358. begin
  85359. Result:=ReadJSPropertyObject('release',TJSAudioParam) as IJSAudioParam;
  85360. end;
  85361. constructor TJSDynamicsCompressorNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSDynamicsCompressorOptions);
  85362. begin
  85363. JOBCreate([aContext,aOptions]);
  85364. end;
  85365. constructor TJSDynamicsCompressorNode.Create(aContext: IJSBaseAudioContext);
  85366. begin
  85367. JOBCreate([aContext]);
  85368. end;
  85369. class function TJSDynamicsCompressorNode.JSClassName: UnicodeString;
  85370. begin
  85371. Result:='DynamicsCompressorNode';
  85372. end;
  85373. class function TJSDynamicsCompressorNode.Cast(const Intf: IJSObject): IJSDynamicsCompressorNode;
  85374. begin
  85375. Result:=TJSDynamicsCompressorNode.JOBCast(Intf);
  85376. end;
  85377. class function TJSnsIScreen.JSClassName: UnicodeString;
  85378. begin
  85379. Result:='nsIScreen';
  85380. end;
  85381. class function TJSnsIScreen.Cast(const Intf: IJSObject): IJSnsIScreen;
  85382. begin
  85383. Result:=TJSnsIScreen.JOBCast(Intf);
  85384. end;
  85385. function TJSElement._GetnamespaceURI: UnicodeString;
  85386. begin
  85387. Result:=ReadJSPropertyUnicodeString('namespaceURI');
  85388. end;
  85389. function TJSElement._Getprefix: UnicodeString;
  85390. begin
  85391. Result:=ReadJSPropertyUnicodeString('prefix');
  85392. end;
  85393. function TJSElement._GetlocalName: UnicodeString;
  85394. begin
  85395. Result:=ReadJSPropertyUnicodeString('localName');
  85396. end;
  85397. function TJSElement._GettagName: UnicodeString;
  85398. begin
  85399. Result:=ReadJSPropertyUnicodeString('tagName');
  85400. end;
  85401. function TJSElement._Getid: UnicodeString;
  85402. begin
  85403. Result:=ReadJSPropertyUnicodeString('id');
  85404. end;
  85405. function TJSElement._GetclassName_: UnicodeString;
  85406. begin
  85407. Result:=ReadJSPropertyUnicodeString('className');
  85408. end;
  85409. function TJSElement._GetclassList: IJSDOMTokenList;
  85410. begin
  85411. Result:=ReadJSPropertyObject('classList',TJSDOMTokenList) as IJSDOMTokenList;
  85412. end;
  85413. function TJSElement._Getpart: IJSDOMTokenList;
  85414. begin
  85415. Result:=ReadJSPropertyObject('part',TJSDOMTokenList) as IJSDOMTokenList;
  85416. end;
  85417. function TJSElement._Getattributes: IJSNamedNodeMap;
  85418. begin
  85419. Result:=ReadJSPropertyObject('attributes',TJSNamedNodeMap) as IJSNamedNodeMap;
  85420. end;
  85421. function TJSElement._GetscrollTop: LongInt;
  85422. begin
  85423. Result:=ReadJSPropertyLongInt('scrollTop');
  85424. end;
  85425. function TJSElement._GetscrollLeft: LongInt;
  85426. begin
  85427. Result:=ReadJSPropertyLongInt('scrollLeft');
  85428. end;
  85429. function TJSElement._GetscrollWidth: LongInt;
  85430. begin
  85431. Result:=ReadJSPropertyLongInt('scrollWidth');
  85432. end;
  85433. function TJSElement._GetscrollHeight: LongInt;
  85434. begin
  85435. Result:=ReadJSPropertyLongInt('scrollHeight');
  85436. end;
  85437. function TJSElement._GetclientTop: LongInt;
  85438. begin
  85439. Result:=ReadJSPropertyLongInt('clientTop');
  85440. end;
  85441. function TJSElement._GetclientLeft: LongInt;
  85442. begin
  85443. Result:=ReadJSPropertyLongInt('clientLeft');
  85444. end;
  85445. function TJSElement._GetclientWidth: LongInt;
  85446. begin
  85447. Result:=ReadJSPropertyLongInt('clientWidth');
  85448. end;
  85449. function TJSElement._GetclientHeight: LongInt;
  85450. begin
  85451. Result:=ReadJSPropertyLongInt('clientHeight');
  85452. end;
  85453. function TJSElement._GetscrollTopMax: LongInt;
  85454. begin
  85455. Result:=ReadJSPropertyLongInt('scrollTopMax');
  85456. end;
  85457. function TJSElement._GetscrollLeftMax: LongInt;
  85458. begin
  85459. Result:=ReadJSPropertyLongInt('scrollLeftMax');
  85460. end;
  85461. function TJSElement._GetcurrentCSSZoom: Double;
  85462. begin
  85463. Result:=ReadJSPropertyDouble('currentCSSZoom');
  85464. end;
  85465. function TJSElement._GetinnerHTML: UnicodeString;
  85466. begin
  85467. Result:=ReadJSPropertyUnicodeString('innerHTML');
  85468. end;
  85469. function TJSElement._GetouterHTML: UnicodeString;
  85470. begin
  85471. Result:=ReadJSPropertyUnicodeString('outerHTML');
  85472. end;
  85473. function TJSElement._GetshadowRoot: IJSShadowRoot;
  85474. begin
  85475. Result:=ReadJSPropertyObject('shadowRoot',TJSShadowRoot) as IJSShadowRoot;
  85476. end;
  85477. function TJSElement._GetopenOrClosedShadowRoot: IJSShadowRoot;
  85478. begin
  85479. Result:=ReadJSPropertyObject('openOrClosedShadowRoot',TJSShadowRoot) as IJSShadowRoot;
  85480. end;
  85481. function TJSElement._GetassignedSlot: IJSHTMLSlotElement;
  85482. begin
  85483. Result:=ReadJSPropertyObject('assignedSlot',TJSHTMLSlotElement) as IJSHTMLSlotElement;
  85484. end;
  85485. function TJSElement._Getslot: UnicodeString;
  85486. begin
  85487. Result:=ReadJSPropertyUnicodeString('slot');
  85488. end;
  85489. function TJSElement._Getonfullscreenchange: TEventHandler;
  85490. begin
  85491. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfullscreenchange')));
  85492. end;
  85493. function TJSElement._Getonfullscreenerror: TEventHandler;
  85494. begin
  85495. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfullscreenerror')));
  85496. end;
  85497. function TJSElement._GetpreviousElementSibling: IJSElement;
  85498. begin
  85499. Result:=ReadJSPropertyObject('previousElementSibling',TJSElement) as IJSElement;
  85500. end;
  85501. function TJSElement._GetnextElementSibling: IJSElement;
  85502. begin
  85503. Result:=ReadJSPropertyObject('nextElementSibling',TJSElement) as IJSElement;
  85504. end;
  85505. function TJSElement._Getchildren: IJSHTMLCollection;
  85506. begin
  85507. Result:=ReadJSPropertyObject('children',TJSHTMLCollection) as IJSHTMLCollection;
  85508. end;
  85509. function TJSElement._GetfirstElementChild: IJSElement;
  85510. begin
  85511. Result:=ReadJSPropertyObject('firstElementChild',TJSElement) as IJSElement;
  85512. end;
  85513. function TJSElement._GetlastElementChild: IJSElement;
  85514. begin
  85515. Result:=ReadJSPropertyObject('lastElementChild',TJSElement) as IJSElement;
  85516. end;
  85517. function TJSElement._GetchildElementCount: Cardinal;
  85518. begin
  85519. Result:=ReadJSPropertyInt64('childElementCount');
  85520. end;
  85521. function TJSElement._GetariaActiveDescendantElement: IJSElement;
  85522. begin
  85523. Result:=ReadJSPropertyObject('ariaActiveDescendantElement',TJSElement) as IJSElement;
  85524. end;
  85525. function TJSElement._Getrole: UnicodeString;
  85526. begin
  85527. Result:=ReadJSPropertyUnicodeString('role');
  85528. end;
  85529. function TJSElement._GetariaAtomic: UnicodeString;
  85530. begin
  85531. Result:=ReadJSPropertyUnicodeString('ariaAtomic');
  85532. end;
  85533. function TJSElement._GetariaAutoComplete: UnicodeString;
  85534. begin
  85535. Result:=ReadJSPropertyUnicodeString('ariaAutoComplete');
  85536. end;
  85537. function TJSElement._GetariaBrailleLabel: UnicodeString;
  85538. begin
  85539. Result:=ReadJSPropertyUnicodeString('ariaBrailleLabel');
  85540. end;
  85541. function TJSElement._GetariaBrailleRoleDescription: UnicodeString;
  85542. begin
  85543. Result:=ReadJSPropertyUnicodeString('ariaBrailleRoleDescription');
  85544. end;
  85545. function TJSElement._GetariaBusy: UnicodeString;
  85546. begin
  85547. Result:=ReadJSPropertyUnicodeString('ariaBusy');
  85548. end;
  85549. function TJSElement._GetariaChecked: UnicodeString;
  85550. begin
  85551. Result:=ReadJSPropertyUnicodeString('ariaChecked');
  85552. end;
  85553. function TJSElement._GetariaColCount: UnicodeString;
  85554. begin
  85555. Result:=ReadJSPropertyUnicodeString('ariaColCount');
  85556. end;
  85557. function TJSElement._GetariaColIndex: UnicodeString;
  85558. begin
  85559. Result:=ReadJSPropertyUnicodeString('ariaColIndex');
  85560. end;
  85561. function TJSElement._GetariaColIndexText: UnicodeString;
  85562. begin
  85563. Result:=ReadJSPropertyUnicodeString('ariaColIndexText');
  85564. end;
  85565. function TJSElement._GetariaColSpan: UnicodeString;
  85566. begin
  85567. Result:=ReadJSPropertyUnicodeString('ariaColSpan');
  85568. end;
  85569. function TJSElement._GetariaCurrent: UnicodeString;
  85570. begin
  85571. Result:=ReadJSPropertyUnicodeString('ariaCurrent');
  85572. end;
  85573. function TJSElement._GetariaDescription: UnicodeString;
  85574. begin
  85575. Result:=ReadJSPropertyUnicodeString('ariaDescription');
  85576. end;
  85577. function TJSElement._GetariaDisabled: UnicodeString;
  85578. begin
  85579. Result:=ReadJSPropertyUnicodeString('ariaDisabled');
  85580. end;
  85581. function TJSElement._GetariaExpanded: UnicodeString;
  85582. begin
  85583. Result:=ReadJSPropertyUnicodeString('ariaExpanded');
  85584. end;
  85585. function TJSElement._GetariaHasPopup: UnicodeString;
  85586. begin
  85587. Result:=ReadJSPropertyUnicodeString('ariaHasPopup');
  85588. end;
  85589. function TJSElement._GetariaHidden: UnicodeString;
  85590. begin
  85591. Result:=ReadJSPropertyUnicodeString('ariaHidden');
  85592. end;
  85593. function TJSElement._GetariaInvalid: UnicodeString;
  85594. begin
  85595. Result:=ReadJSPropertyUnicodeString('ariaInvalid');
  85596. end;
  85597. function TJSElement._GetariaKeyShortcuts: UnicodeString;
  85598. begin
  85599. Result:=ReadJSPropertyUnicodeString('ariaKeyShortcuts');
  85600. end;
  85601. function TJSElement._GetariaLabel: UnicodeString;
  85602. begin
  85603. Result:=ReadJSPropertyUnicodeString('ariaLabel');
  85604. end;
  85605. function TJSElement._GetariaLevel: UnicodeString;
  85606. begin
  85607. Result:=ReadJSPropertyUnicodeString('ariaLevel');
  85608. end;
  85609. function TJSElement._GetariaLive: UnicodeString;
  85610. begin
  85611. Result:=ReadJSPropertyUnicodeString('ariaLive');
  85612. end;
  85613. function TJSElement._GetariaModal: UnicodeString;
  85614. begin
  85615. Result:=ReadJSPropertyUnicodeString('ariaModal');
  85616. end;
  85617. function TJSElement._GetariaMultiLine: UnicodeString;
  85618. begin
  85619. Result:=ReadJSPropertyUnicodeString('ariaMultiLine');
  85620. end;
  85621. function TJSElement._GetariaMultiSelectable: UnicodeString;
  85622. begin
  85623. Result:=ReadJSPropertyUnicodeString('ariaMultiSelectable');
  85624. end;
  85625. function TJSElement._GetariaOrientation: UnicodeString;
  85626. begin
  85627. Result:=ReadJSPropertyUnicodeString('ariaOrientation');
  85628. end;
  85629. function TJSElement._GetariaPlaceholder: UnicodeString;
  85630. begin
  85631. Result:=ReadJSPropertyUnicodeString('ariaPlaceholder');
  85632. end;
  85633. function TJSElement._GetariaPosInSet: UnicodeString;
  85634. begin
  85635. Result:=ReadJSPropertyUnicodeString('ariaPosInSet');
  85636. end;
  85637. function TJSElement._GetariaPressed: UnicodeString;
  85638. begin
  85639. Result:=ReadJSPropertyUnicodeString('ariaPressed');
  85640. end;
  85641. function TJSElement._GetariaReadOnly: UnicodeString;
  85642. begin
  85643. Result:=ReadJSPropertyUnicodeString('ariaReadOnly');
  85644. end;
  85645. function TJSElement._GetariaRelevant: UnicodeString;
  85646. begin
  85647. Result:=ReadJSPropertyUnicodeString('ariaRelevant');
  85648. end;
  85649. function TJSElement._GetariaRequired: UnicodeString;
  85650. begin
  85651. Result:=ReadJSPropertyUnicodeString('ariaRequired');
  85652. end;
  85653. function TJSElement._GetariaRoleDescription: UnicodeString;
  85654. begin
  85655. Result:=ReadJSPropertyUnicodeString('ariaRoleDescription');
  85656. end;
  85657. function TJSElement._GetariaRowCount: UnicodeString;
  85658. begin
  85659. Result:=ReadJSPropertyUnicodeString('ariaRowCount');
  85660. end;
  85661. function TJSElement._GetariaRowIndex: UnicodeString;
  85662. begin
  85663. Result:=ReadJSPropertyUnicodeString('ariaRowIndex');
  85664. end;
  85665. function TJSElement._GetariaRowIndexText: UnicodeString;
  85666. begin
  85667. Result:=ReadJSPropertyUnicodeString('ariaRowIndexText');
  85668. end;
  85669. function TJSElement._GetariaRowSpan: UnicodeString;
  85670. begin
  85671. Result:=ReadJSPropertyUnicodeString('ariaRowSpan');
  85672. end;
  85673. function TJSElement._GetariaSelected: UnicodeString;
  85674. begin
  85675. Result:=ReadJSPropertyUnicodeString('ariaSelected');
  85676. end;
  85677. function TJSElement._GetariaSetSize: UnicodeString;
  85678. begin
  85679. Result:=ReadJSPropertyUnicodeString('ariaSetSize');
  85680. end;
  85681. function TJSElement._GetariaSort: UnicodeString;
  85682. begin
  85683. Result:=ReadJSPropertyUnicodeString('ariaSort');
  85684. end;
  85685. function TJSElement._GetariaValueMax: UnicodeString;
  85686. begin
  85687. Result:=ReadJSPropertyUnicodeString('ariaValueMax');
  85688. end;
  85689. function TJSElement._GetariaValueMin: UnicodeString;
  85690. begin
  85691. Result:=ReadJSPropertyUnicodeString('ariaValueMin');
  85692. end;
  85693. function TJSElement._GetariaValueNow: UnicodeString;
  85694. begin
  85695. Result:=ReadJSPropertyUnicodeString('ariaValueNow');
  85696. end;
  85697. function TJSElement._GetariaValueText: UnicodeString;
  85698. begin
  85699. Result:=ReadJSPropertyUnicodeString('ariaValueText');
  85700. end;
  85701. procedure TJSElement._Setid(const aValue : UnicodeString);
  85702. begin
  85703. WriteJSPropertyUnicodeString('id',aValue);
  85704. end;
  85705. procedure TJSElement._SetclassName_(const aValue : UnicodeString);
  85706. begin
  85707. WriteJSPropertyUnicodeString('className',aValue);
  85708. end;
  85709. procedure TJSElement._SetscrollTop(const aValue : LongInt);
  85710. begin
  85711. WriteJSPropertyLongInt('scrollTop',aValue);
  85712. end;
  85713. procedure TJSElement._SetscrollLeft(const aValue : LongInt);
  85714. begin
  85715. WriteJSPropertyLongInt('scrollLeft',aValue);
  85716. end;
  85717. procedure TJSElement._SetinnerHTML(const aValue : UnicodeString);
  85718. begin
  85719. WriteJSPropertyUnicodeString('innerHTML',aValue);
  85720. end;
  85721. procedure TJSElement._SetouterHTML(const aValue : UnicodeString);
  85722. begin
  85723. WriteJSPropertyUnicodeString('outerHTML',aValue);
  85724. end;
  85725. procedure TJSElement._Setslot(const aValue : UnicodeString);
  85726. begin
  85727. WriteJSPropertyUnicodeString('slot',aValue);
  85728. end;
  85729. procedure TJSElement._Setonfullscreenchange(const aValue : TEventHandler);
  85730. begin
  85731. WriteJSPropertyMethod('onfullscreenchange',TMethod(aValue));
  85732. end;
  85733. procedure TJSElement._Setonfullscreenerror(const aValue : TEventHandler);
  85734. begin
  85735. WriteJSPropertyMethod('onfullscreenerror',TMethod(aValue));
  85736. end;
  85737. procedure TJSElement._SetariaActiveDescendantElement(const aValue : IJSElement);
  85738. begin
  85739. WriteJSPropertyObject('ariaActiveDescendantElement',aValue);
  85740. end;
  85741. procedure TJSElement._Setrole(const aValue : UnicodeString);
  85742. begin
  85743. WriteJSPropertyUnicodeString('role',aValue);
  85744. end;
  85745. procedure TJSElement._SetariaAtomic(const aValue : UnicodeString);
  85746. begin
  85747. WriteJSPropertyUnicodeString('ariaAtomic',aValue);
  85748. end;
  85749. procedure TJSElement._SetariaAutoComplete(const aValue : UnicodeString);
  85750. begin
  85751. WriteJSPropertyUnicodeString('ariaAutoComplete',aValue);
  85752. end;
  85753. procedure TJSElement._SetariaBrailleLabel(const aValue : UnicodeString);
  85754. begin
  85755. WriteJSPropertyUnicodeString('ariaBrailleLabel',aValue);
  85756. end;
  85757. procedure TJSElement._SetariaBrailleRoleDescription(const aValue : UnicodeString);
  85758. begin
  85759. WriteJSPropertyUnicodeString('ariaBrailleRoleDescription',aValue);
  85760. end;
  85761. procedure TJSElement._SetariaBusy(const aValue : UnicodeString);
  85762. begin
  85763. WriteJSPropertyUnicodeString('ariaBusy',aValue);
  85764. end;
  85765. procedure TJSElement._SetariaChecked(const aValue : UnicodeString);
  85766. begin
  85767. WriteJSPropertyUnicodeString('ariaChecked',aValue);
  85768. end;
  85769. procedure TJSElement._SetariaColCount(const aValue : UnicodeString);
  85770. begin
  85771. WriteJSPropertyUnicodeString('ariaColCount',aValue);
  85772. end;
  85773. procedure TJSElement._SetariaColIndex(const aValue : UnicodeString);
  85774. begin
  85775. WriteJSPropertyUnicodeString('ariaColIndex',aValue);
  85776. end;
  85777. procedure TJSElement._SetariaColIndexText(const aValue : UnicodeString);
  85778. begin
  85779. WriteJSPropertyUnicodeString('ariaColIndexText',aValue);
  85780. end;
  85781. procedure TJSElement._SetariaColSpan(const aValue : UnicodeString);
  85782. begin
  85783. WriteJSPropertyUnicodeString('ariaColSpan',aValue);
  85784. end;
  85785. procedure TJSElement._SetariaCurrent(const aValue : UnicodeString);
  85786. begin
  85787. WriteJSPropertyUnicodeString('ariaCurrent',aValue);
  85788. end;
  85789. procedure TJSElement._SetariaDescription(const aValue : UnicodeString);
  85790. begin
  85791. WriteJSPropertyUnicodeString('ariaDescription',aValue);
  85792. end;
  85793. procedure TJSElement._SetariaDisabled(const aValue : UnicodeString);
  85794. begin
  85795. WriteJSPropertyUnicodeString('ariaDisabled',aValue);
  85796. end;
  85797. procedure TJSElement._SetariaExpanded(const aValue : UnicodeString);
  85798. begin
  85799. WriteJSPropertyUnicodeString('ariaExpanded',aValue);
  85800. end;
  85801. procedure TJSElement._SetariaHasPopup(const aValue : UnicodeString);
  85802. begin
  85803. WriteJSPropertyUnicodeString('ariaHasPopup',aValue);
  85804. end;
  85805. procedure TJSElement._SetariaHidden(const aValue : UnicodeString);
  85806. begin
  85807. WriteJSPropertyUnicodeString('ariaHidden',aValue);
  85808. end;
  85809. procedure TJSElement._SetariaInvalid(const aValue : UnicodeString);
  85810. begin
  85811. WriteJSPropertyUnicodeString('ariaInvalid',aValue);
  85812. end;
  85813. procedure TJSElement._SetariaKeyShortcuts(const aValue : UnicodeString);
  85814. begin
  85815. WriteJSPropertyUnicodeString('ariaKeyShortcuts',aValue);
  85816. end;
  85817. procedure TJSElement._SetariaLabel(const aValue : UnicodeString);
  85818. begin
  85819. WriteJSPropertyUnicodeString('ariaLabel',aValue);
  85820. end;
  85821. procedure TJSElement._SetariaLevel(const aValue : UnicodeString);
  85822. begin
  85823. WriteJSPropertyUnicodeString('ariaLevel',aValue);
  85824. end;
  85825. procedure TJSElement._SetariaLive(const aValue : UnicodeString);
  85826. begin
  85827. WriteJSPropertyUnicodeString('ariaLive',aValue);
  85828. end;
  85829. procedure TJSElement._SetariaModal(const aValue : UnicodeString);
  85830. begin
  85831. WriteJSPropertyUnicodeString('ariaModal',aValue);
  85832. end;
  85833. procedure TJSElement._SetariaMultiLine(const aValue : UnicodeString);
  85834. begin
  85835. WriteJSPropertyUnicodeString('ariaMultiLine',aValue);
  85836. end;
  85837. procedure TJSElement._SetariaMultiSelectable(const aValue : UnicodeString);
  85838. begin
  85839. WriteJSPropertyUnicodeString('ariaMultiSelectable',aValue);
  85840. end;
  85841. procedure TJSElement._SetariaOrientation(const aValue : UnicodeString);
  85842. begin
  85843. WriteJSPropertyUnicodeString('ariaOrientation',aValue);
  85844. end;
  85845. procedure TJSElement._SetariaPlaceholder(const aValue : UnicodeString);
  85846. begin
  85847. WriteJSPropertyUnicodeString('ariaPlaceholder',aValue);
  85848. end;
  85849. procedure TJSElement._SetariaPosInSet(const aValue : UnicodeString);
  85850. begin
  85851. WriteJSPropertyUnicodeString('ariaPosInSet',aValue);
  85852. end;
  85853. procedure TJSElement._SetariaPressed(const aValue : UnicodeString);
  85854. begin
  85855. WriteJSPropertyUnicodeString('ariaPressed',aValue);
  85856. end;
  85857. procedure TJSElement._SetariaReadOnly(const aValue : UnicodeString);
  85858. begin
  85859. WriteJSPropertyUnicodeString('ariaReadOnly',aValue);
  85860. end;
  85861. procedure TJSElement._SetariaRelevant(const aValue : UnicodeString);
  85862. begin
  85863. WriteJSPropertyUnicodeString('ariaRelevant',aValue);
  85864. end;
  85865. procedure TJSElement._SetariaRequired(const aValue : UnicodeString);
  85866. begin
  85867. WriteJSPropertyUnicodeString('ariaRequired',aValue);
  85868. end;
  85869. procedure TJSElement._SetariaRoleDescription(const aValue : UnicodeString);
  85870. begin
  85871. WriteJSPropertyUnicodeString('ariaRoleDescription',aValue);
  85872. end;
  85873. procedure TJSElement._SetariaRowCount(const aValue : UnicodeString);
  85874. begin
  85875. WriteJSPropertyUnicodeString('ariaRowCount',aValue);
  85876. end;
  85877. procedure TJSElement._SetariaRowIndex(const aValue : UnicodeString);
  85878. begin
  85879. WriteJSPropertyUnicodeString('ariaRowIndex',aValue);
  85880. end;
  85881. procedure TJSElement._SetariaRowIndexText(const aValue : UnicodeString);
  85882. begin
  85883. WriteJSPropertyUnicodeString('ariaRowIndexText',aValue);
  85884. end;
  85885. procedure TJSElement._SetariaRowSpan(const aValue : UnicodeString);
  85886. begin
  85887. WriteJSPropertyUnicodeString('ariaRowSpan',aValue);
  85888. end;
  85889. procedure TJSElement._SetariaSelected(const aValue : UnicodeString);
  85890. begin
  85891. WriteJSPropertyUnicodeString('ariaSelected',aValue);
  85892. end;
  85893. procedure TJSElement._SetariaSetSize(const aValue : UnicodeString);
  85894. begin
  85895. WriteJSPropertyUnicodeString('ariaSetSize',aValue);
  85896. end;
  85897. procedure TJSElement._SetariaSort(const aValue : UnicodeString);
  85898. begin
  85899. WriteJSPropertyUnicodeString('ariaSort',aValue);
  85900. end;
  85901. procedure TJSElement._SetariaValueMax(const aValue : UnicodeString);
  85902. begin
  85903. WriteJSPropertyUnicodeString('ariaValueMax',aValue);
  85904. end;
  85905. procedure TJSElement._SetariaValueMin(const aValue : UnicodeString);
  85906. begin
  85907. WriteJSPropertyUnicodeString('ariaValueMin',aValue);
  85908. end;
  85909. procedure TJSElement._SetariaValueNow(const aValue : UnicodeString);
  85910. begin
  85911. WriteJSPropertyUnicodeString('ariaValueNow',aValue);
  85912. end;
  85913. procedure TJSElement._SetariaValueText(const aValue : UnicodeString);
  85914. begin
  85915. WriteJSPropertyUnicodeString('ariaValueText',aValue);
  85916. end;
  85917. function TJSElement.getAttributeNames: TUnicodeStringDynArray;
  85918. begin
  85919. Result:=InvokeJSObjectResult('getAttributeNames',[],TJSArray) as TUnicodeStringDynArray;
  85920. end;
  85921. function TJSElement.getAttribute(const aName: UnicodeString): UnicodeString;
  85922. begin
  85923. Result:=InvokeJSUnicodeStringResult('getAttribute',[aName]);
  85924. end;
  85925. function TJSElement.getAttributeNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): UnicodeString;
  85926. begin
  85927. Result:=InvokeJSUnicodeStringResult('getAttributeNS',[aNamespace,aLocalName]);
  85928. end;
  85929. function TJSElement.toggleAttribute(const aName: UnicodeString; aForce: Boolean): Boolean;
  85930. begin
  85931. Result:=InvokeJSBooleanResult('toggleAttribute',[aName,aForce]);
  85932. end;
  85933. function TJSElement.toggleAttribute(const aName: UnicodeString): Boolean;
  85934. begin
  85935. Result:=InvokeJSBooleanResult('toggleAttribute',[aName]);
  85936. end;
  85937. procedure TJSElement.setAttribute(const aName: UnicodeString; const aValue: UnicodeString);
  85938. begin
  85939. InvokeJSNoResult('setAttribute',[aName,aValue]);
  85940. end;
  85941. procedure TJSElement.setAttributeNS(const aNamespace: UnicodeString; const aName: UnicodeString; const aValue: UnicodeString);
  85942. begin
  85943. InvokeJSNoResult('setAttributeNS',[aNamespace,aName,aValue]);
  85944. end;
  85945. procedure TJSElement.removeAttribute(const aName: UnicodeString);
  85946. begin
  85947. InvokeJSNoResult('removeAttribute',[aName]);
  85948. end;
  85949. procedure TJSElement.removeAttributeNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString);
  85950. begin
  85951. InvokeJSNoResult('removeAttributeNS',[aNamespace,aLocalName]);
  85952. end;
  85953. function TJSElement.hasAttribute(const aName: UnicodeString): Boolean;
  85954. begin
  85955. Result:=InvokeJSBooleanResult('hasAttribute',[aName]);
  85956. end;
  85957. function TJSElement.hasAttributeNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): Boolean;
  85958. begin
  85959. Result:=InvokeJSBooleanResult('hasAttributeNS',[aNamespace,aLocalName]);
  85960. end;
  85961. function TJSElement.hasAttributes: Boolean;
  85962. begin
  85963. Result:=InvokeJSBooleanResult('hasAttributes',[]);
  85964. end;
  85965. function TJSElement.closest(const aSelector: UTF8String): IJSElement;
  85966. begin
  85967. Result:=InvokeJSObjectResult('closest',[aSelector],TJSElement) as IJSElement;
  85968. end;
  85969. function TJSElement.matches(const aSelector: UTF8String): Boolean;
  85970. begin
  85971. Result:=InvokeJSBooleanResult('matches',[aSelector]);
  85972. end;
  85973. function TJSElement.webkitMatchesSelector(const aSelector: UTF8String): Boolean;
  85974. begin
  85975. Result:=InvokeJSBooleanResult('webkitMatchesSelector',[aSelector]);
  85976. end;
  85977. function TJSElement.getElementsByTagName(const aLocalName: UnicodeString): IJSHTMLCollection;
  85978. begin
  85979. Result:=InvokeJSObjectResult('getElementsByTagName',[aLocalName],TJSHTMLCollection) as IJSHTMLCollection;
  85980. end;
  85981. function TJSElement.getElementsByTagNameNS(const aNamespace: UnicodeString; const aLocalName: UnicodeString): IJSHTMLCollection;
  85982. begin
  85983. Result:=InvokeJSObjectResult('getElementsByTagNameNS',[aNamespace,aLocalName],TJSHTMLCollection) as IJSHTMLCollection;
  85984. end;
  85985. function TJSElement.getElementsByClassName(const aClassNames: UnicodeString): IJSHTMLCollection;
  85986. begin
  85987. Result:=InvokeJSObjectResult('getElementsByClassName',[aClassNames],TJSHTMLCollection) as IJSHTMLCollection;
  85988. end;
  85989. function TJSElement.insertAdjacentElement(const aWhere: UnicodeString; aElement: IJSElement): IJSElement;
  85990. begin
  85991. Result:=InvokeJSObjectResult('insertAdjacentElement',[aWhere,aElement],TJSElement) as IJSElement;
  85992. end;
  85993. procedure TJSElement.insertAdjacentText(const aWhere: UnicodeString; const aData: UnicodeString);
  85994. begin
  85995. InvokeJSNoResult('insertAdjacentText',[aWhere,aData]);
  85996. end;
  85997. function TJSElement.mozMatchesSelector(const aSelector: UTF8String): Boolean;
  85998. begin
  85999. Result:=InvokeJSBooleanResult('mozMatchesSelector',[aSelector]);
  86000. end;
  86001. procedure TJSElement.setPointerCapture(aPointerId: LongInt);
  86002. begin
  86003. InvokeJSNoResult('setPointerCapture',[aPointerId]);
  86004. end;
  86005. procedure TJSElement.releasePointerCapture(aPointerId: LongInt);
  86006. begin
  86007. InvokeJSNoResult('releasePointerCapture',[aPointerId]);
  86008. end;
  86009. function TJSElement.hasPointerCapture(aPointerId: LongInt): Boolean;
  86010. begin
  86011. Result:=InvokeJSBooleanResult('hasPointerCapture',[aPointerId]);
  86012. end;
  86013. procedure TJSElement.setCapture(aRetargetToElement: Boolean);
  86014. begin
  86015. InvokeJSNoResult('setCapture',[aRetargetToElement]);
  86016. end;
  86017. procedure TJSElement.setCapture;
  86018. begin
  86019. InvokeJSNoResult('setCapture',[]);
  86020. end;
  86021. procedure TJSElement.releaseCapture;
  86022. begin
  86023. InvokeJSNoResult('releaseCapture',[]);
  86024. end;
  86025. function TJSElement.getAttributeNode(const aName: UnicodeString): IJSAttr;
  86026. begin
  86027. Result:=InvokeJSObjectResult('getAttributeNode',[aName],TJSAttr) as IJSAttr;
  86028. end;
  86029. function TJSElement.setAttributeNode(aNewAttr: IJSAttr): IJSAttr;
  86030. begin
  86031. Result:=InvokeJSObjectResult('setAttributeNode',[aNewAttr],TJSAttr) as IJSAttr;
  86032. end;
  86033. function TJSElement.removeAttributeNode(aOldAttr: IJSAttr): IJSAttr;
  86034. begin
  86035. Result:=InvokeJSObjectResult('removeAttributeNode',[aOldAttr],TJSAttr) as IJSAttr;
  86036. end;
  86037. function TJSElement.getAttributeNodeNS(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): IJSAttr;
  86038. begin
  86039. Result:=InvokeJSObjectResult('getAttributeNodeNS',[aNamespaceURI,aLocalName],TJSAttr) as IJSAttr;
  86040. end;
  86041. function TJSElement.setAttributeNodeNS(aNewAttr: IJSAttr): IJSAttr;
  86042. begin
  86043. Result:=InvokeJSObjectResult('setAttributeNodeNS',[aNewAttr],TJSAttr) as IJSAttr;
  86044. end;
  86045. function TJSElement.getTransformToAncestor(aAncestor: IJSElement): IJSDOMMatrixReadOnly;
  86046. begin
  86047. Result:=InvokeJSObjectResult('getTransformToAncestor',[aAncestor],TJSDOMMatrixReadOnly) as IJSDOMMatrixReadOnly;
  86048. end;
  86049. function TJSElement.getTransformToParent: IJSDOMMatrixReadOnly;
  86050. begin
  86051. Result:=InvokeJSObjectResult('getTransformToParent',[],TJSDOMMatrixReadOnly) as IJSDOMMatrixReadOnly;
  86052. end;
  86053. function TJSElement.getTransformToViewport: IJSDOMMatrixReadOnly;
  86054. begin
  86055. Result:=InvokeJSObjectResult('getTransformToViewport',[],TJSDOMMatrixReadOnly) as IJSDOMMatrixReadOnly;
  86056. end;
  86057. function TJSElement.getClientRects: IJSDOMRectList;
  86058. begin
  86059. Result:=InvokeJSObjectResult('getClientRects',[],TJSDOMRectList) as IJSDOMRectList;
  86060. end;
  86061. function TJSElement.getBoundingClientRect: IJSDOMRect;
  86062. begin
  86063. Result:=InvokeJSObjectResult('getBoundingClientRect',[],TJSDOMRect) as IJSDOMRect;
  86064. end;
  86065. function TJSElement.checkVisibility(const aOptions: TJSCheckVisibilityOptions): Boolean;
  86066. begin
  86067. Result:=InvokeJSBooleanResult('checkVisibility',[aOptions]);
  86068. end;
  86069. function TJSElement.checkVisibility: Boolean;
  86070. begin
  86071. Result:=InvokeJSBooleanResult('checkVisibility',[]);
  86072. end;
  86073. procedure TJSElement.scrollIntoView(aArg: Boolean);
  86074. begin
  86075. InvokeJSNoResult('scrollIntoView',[aArg]);
  86076. end;
  86077. procedure TJSElement.scrollIntoView;
  86078. begin
  86079. InvokeJSNoResult('scrollIntoView',[]);
  86080. end;
  86081. procedure TJSElement.scrollIntoView(const aArg: TJSScrollIntoViewOptions);
  86082. begin
  86083. InvokeJSNoResult('scrollIntoView',[aArg]);
  86084. end;
  86085. procedure TJSElement.scroll(aX: Double; aY: Double);
  86086. begin
  86087. InvokeJSNoResult('scroll',[aX,aY]);
  86088. end;
  86089. procedure TJSElement.scroll(const aOptions: TJSScrollToOptions);
  86090. begin
  86091. InvokeJSNoResult('scroll',[aOptions]);
  86092. end;
  86093. procedure TJSElement.scroll;
  86094. begin
  86095. InvokeJSNoResult('scroll',[]);
  86096. end;
  86097. procedure TJSElement.scrollTo(aX: Double; aY: Double);
  86098. begin
  86099. InvokeJSNoResult('scrollTo',[aX,aY]);
  86100. end;
  86101. procedure TJSElement.scrollTo(const aOptions: TJSScrollToOptions);
  86102. begin
  86103. InvokeJSNoResult('scrollTo',[aOptions]);
  86104. end;
  86105. procedure TJSElement.scrollTo;
  86106. begin
  86107. InvokeJSNoResult('scrollTo',[]);
  86108. end;
  86109. procedure TJSElement.scrollBy(aX: Double; aY: Double);
  86110. begin
  86111. InvokeJSNoResult('scrollBy',[aX,aY]);
  86112. end;
  86113. procedure TJSElement.scrollBy(const aOptions: TJSScrollToOptions);
  86114. begin
  86115. InvokeJSNoResult('scrollBy',[aOptions]);
  86116. end;
  86117. procedure TJSElement.scrollBy;
  86118. begin
  86119. InvokeJSNoResult('scrollBy',[]);
  86120. end;
  86121. procedure TJSElement.insertAdjacentHTML(const aPosition: UnicodeString; const aText: UnicodeString);
  86122. begin
  86123. InvokeJSNoResult('insertAdjacentHTML',[aPosition,aText]);
  86124. end;
  86125. function TJSElement.attachShadow(const aShadowRootInitDict: TJSShadowRootInit): IJSShadowRoot;
  86126. begin
  86127. Result:=InvokeJSObjectResult('attachShadow',[aShadowRootInitDict],TJSShadowRoot) as IJSShadowRoot;
  86128. end;
  86129. function TJSElement.requestFullscreen: IJSPromise; // Promise<undefined>
  86130. begin
  86131. Result:=InvokeJSObjectResult('requestFullscreen',[],TJSPromise) as IJSPromise;
  86132. end;
  86133. function TJSElement.mozRequestFullScreen: IJSPromise; // Promise<undefined>
  86134. begin
  86135. Result:=InvokeJSObjectResult('mozRequestFullScreen',[],TJSPromise) as IJSPromise;
  86136. end;
  86137. procedure TJSElement.requestPointerLock;
  86138. begin
  86139. InvokeJSNoResult('requestPointerLock',[]);
  86140. end;
  86141. procedure TJSElement.setHTML(const aAInnerHTML: UnicodeString; const aOptions: TJSSetHTMLOptions);
  86142. begin
  86143. InvokeJSNoResult('setHTML',[aAInnerHTML,aOptions]);
  86144. end;
  86145. procedure TJSElement.setHTML(const aAInnerHTML: UnicodeString);
  86146. begin
  86147. InvokeJSNoResult('setHTML',[aAInnerHTML]);
  86148. end;
  86149. procedure TJSElement.setHTMLUnsafe(const aHtml: UnicodeString);
  86150. begin
  86151. InvokeJSNoResult('setHTMLUnsafe',[aHtml]);
  86152. end;
  86153. procedure TJSElement.before(const aNodes: UnicodeString){; ToDo:varargs};
  86154. begin
  86155. InvokeJSNoResult('before',[aNodes]);
  86156. end;
  86157. procedure TJSElement.before(aNodes: IJSNode){; ToDo:varargs};
  86158. begin
  86159. InvokeJSNoResult('before',[aNodes]);
  86160. end;
  86161. procedure TJSElement.after(const aNodes: UnicodeString){; ToDo:varargs};
  86162. begin
  86163. InvokeJSNoResult('after',[aNodes]);
  86164. end;
  86165. procedure TJSElement.after(aNodes: IJSNode){; ToDo:varargs};
  86166. begin
  86167. InvokeJSNoResult('after',[aNodes]);
  86168. end;
  86169. procedure TJSElement.replaceWith(const aNodes: UnicodeString){; ToDo:varargs};
  86170. begin
  86171. InvokeJSNoResult('replaceWith',[aNodes]);
  86172. end;
  86173. procedure TJSElement.replaceWith(aNodes: IJSNode){; ToDo:varargs};
  86174. begin
  86175. InvokeJSNoResult('replaceWith',[aNodes]);
  86176. end;
  86177. procedure TJSElement.remove;
  86178. begin
  86179. InvokeJSNoResult('remove',[]);
  86180. end;
  86181. procedure TJSElement.prepend(const aNodes: UnicodeString){; ToDo:varargs};
  86182. begin
  86183. InvokeJSNoResult('prepend',[aNodes]);
  86184. end;
  86185. procedure TJSElement.prepend(aNodes: IJSNode){; ToDo:varargs};
  86186. begin
  86187. InvokeJSNoResult('prepend',[aNodes]);
  86188. end;
  86189. procedure TJSElement.append(const aNodes: UnicodeString){; ToDo:varargs};
  86190. begin
  86191. InvokeJSNoResult('append',[aNodes]);
  86192. end;
  86193. procedure TJSElement.append(aNodes: IJSNode){; ToDo:varargs};
  86194. begin
  86195. InvokeJSNoResult('append',[aNodes]);
  86196. end;
  86197. procedure TJSElement.replaceChildren(const aNodes: UnicodeString){; ToDo:varargs};
  86198. begin
  86199. InvokeJSNoResult('replaceChildren',[aNodes]);
  86200. end;
  86201. procedure TJSElement.replaceChildren(aNodes: IJSNode){; ToDo:varargs};
  86202. begin
  86203. InvokeJSNoResult('replaceChildren',[aNodes]);
  86204. end;
  86205. function TJSElement.querySelector(const aSelectors: UTF8String): IJSElement;
  86206. begin
  86207. Result:=InvokeJSObjectResult('querySelector',[aSelectors],TJSElement) as IJSElement;
  86208. end;
  86209. function TJSElement.querySelectorAll(const aSelectors: UTF8String): IJSNodeList;
  86210. begin
  86211. Result:=InvokeJSObjectResult('querySelectorAll',[aSelectors],TJSNodeList) as IJSNodeList;
  86212. end;
  86213. function TJSElement.animate(aKeyframes: IJSObject; const aOptions: TJSKeyframeAnimationOptions): IJSAnimation;
  86214. begin
  86215. Result:=InvokeJSObjectResult('animate',[aKeyframes,aOptions],TJSAnimation) as IJSAnimation;
  86216. end;
  86217. function TJSElement.animate(aKeyframes: IJSObject): IJSAnimation;
  86218. begin
  86219. Result:=InvokeJSObjectResult('animate',[aKeyframes],TJSAnimation) as IJSAnimation;
  86220. end;
  86221. function TJSElement.animate(aKeyframes: IJSObject; aOptions: Double): IJSAnimation;
  86222. begin
  86223. Result:=InvokeJSObjectResult('animate',[aKeyframes,aOptions],TJSAnimation) as IJSAnimation;
  86224. end;
  86225. function TJSElement.getAnimations(const aOptions: TJSGetAnimationsOptions): TJSAnimationDynArray;
  86226. begin
  86227. Result:=InvokeJSObjectResult('getAnimations',[aOptions],TJSArray) as TJSAnimationDynArray;
  86228. end;
  86229. function TJSElement.getAnimations: TJSAnimationDynArray;
  86230. begin
  86231. Result:=InvokeJSObjectResult('getAnimations',[],TJSArray) as TJSAnimationDynArray;
  86232. end;
  86233. function TJSElement.getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray;
  86234. begin
  86235. Result:=InvokeJSObjectResult('getBoxQuads',[aOptions],TJSArray) as TJSDOMQuadDynArray;
  86236. end;
  86237. function TJSElement.getBoxQuads: TJSDOMQuadDynArray;
  86238. begin
  86239. Result:=InvokeJSObjectResult('getBoxQuads',[],TJSArray) as TJSDOMQuadDynArray;
  86240. end;
  86241. function TJSElement.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  86242. begin
  86243. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  86244. end;
  86245. function TJSElement.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  86246. begin
  86247. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  86248. end;
  86249. function TJSElement.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  86250. begin
  86251. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  86252. end;
  86253. function TJSElement.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad;
  86254. begin
  86255. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  86256. end;
  86257. function TJSElement.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad;
  86258. begin
  86259. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  86260. end;
  86261. function TJSElement.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad;
  86262. begin
  86263. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  86264. end;
  86265. function TJSElement.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  86266. begin
  86267. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  86268. end;
  86269. function TJSElement.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  86270. begin
  86271. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  86272. end;
  86273. function TJSElement.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  86274. begin
  86275. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  86276. end;
  86277. function TJSElement.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad;
  86278. begin
  86279. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  86280. end;
  86281. function TJSElement.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad;
  86282. begin
  86283. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  86284. end;
  86285. function TJSElement.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad;
  86286. begin
  86287. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  86288. end;
  86289. function TJSElement.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  86290. begin
  86291. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  86292. end;
  86293. function TJSElement.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  86294. begin
  86295. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  86296. end;
  86297. function TJSElement.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  86298. begin
  86299. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  86300. end;
  86301. function TJSElement.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint;
  86302. begin
  86303. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  86304. end;
  86305. function TJSElement.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint;
  86306. begin
  86307. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  86308. end;
  86309. function TJSElement.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint;
  86310. begin
  86311. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  86312. end;
  86313. class function TJSElement.JSClassName: UnicodeString;
  86314. begin
  86315. Result:='Element';
  86316. end;
  86317. class function TJSElement.Cast(const Intf: IJSObject): IJSElement;
  86318. begin
  86319. Result:=TJSElement.JOBCast(Intf);
  86320. end;
  86321. function TJSFocusOptions._GetpreventScroll: Boolean;
  86322. begin
  86323. Result:=ReadJSPropertyBoolean('preventScroll');
  86324. end;
  86325. function TJSFocusOptions._GetfocusVisible: Boolean;
  86326. begin
  86327. Result:=ReadJSPropertyBoolean('focusVisible');
  86328. end;
  86329. procedure TJSFocusOptions._SetpreventScroll(const aValue : Boolean);
  86330. begin
  86331. WriteJSPropertyBoolean('preventScroll',aValue);
  86332. end;
  86333. procedure TJSFocusOptions._SetfocusVisible(const aValue : Boolean);
  86334. begin
  86335. WriteJSPropertyBoolean('focusVisible',aValue);
  86336. end;
  86337. class function TJSFocusOptions.JSClassName: UnicodeString;
  86338. begin
  86339. Result:='Object';
  86340. end;
  86341. class function TJSFocusOptions.Cast(const Intf: IJSObject): IJSFocusOptions;
  86342. begin
  86343. Result:=TJSFocusOptions.JOBCast(Intf);
  86344. end;
  86345. function TJSHTMLOrForeignElement._Getdataset: IJSDOMStringMap;
  86346. begin
  86347. Result:=ReadJSPropertyObject('dataset',TJSDOMStringMap) as IJSDOMStringMap;
  86348. end;
  86349. function TJSHTMLOrForeignElement._Getautofocus: Boolean;
  86350. begin
  86351. Result:=ReadJSPropertyBoolean('autofocus');
  86352. end;
  86353. function TJSHTMLOrForeignElement._GettabIndex: LongInt;
  86354. begin
  86355. Result:=ReadJSPropertyLongInt('tabIndex');
  86356. end;
  86357. procedure TJSHTMLOrForeignElement._Setautofocus(const aValue : Boolean);
  86358. begin
  86359. WriteJSPropertyBoolean('autofocus',aValue);
  86360. end;
  86361. procedure TJSHTMLOrForeignElement._SettabIndex(const aValue : LongInt);
  86362. begin
  86363. WriteJSPropertyLongInt('tabIndex',aValue);
  86364. end;
  86365. procedure TJSHTMLOrForeignElement.focus(const aOptions: TJSFocusOptions);
  86366. begin
  86367. InvokeJSNoResult('focus',[aOptions]);
  86368. end;
  86369. procedure TJSHTMLOrForeignElement.focus;
  86370. begin
  86371. InvokeJSNoResult('focus',[]);
  86372. end;
  86373. procedure TJSHTMLOrForeignElement.blur;
  86374. begin
  86375. InvokeJSNoResult('blur',[]);
  86376. end;
  86377. class function TJSHTMLOrForeignElement.JSClassName: UnicodeString;
  86378. begin
  86379. Result:='HTMLOrForeignElement';
  86380. end;
  86381. class function TJSHTMLOrForeignElement.Cast(const Intf: IJSObject): IJSHTMLOrForeignElement;
  86382. begin
  86383. Result:=TJSHTMLOrForeignElement.JOBCast(Intf);
  86384. end;
  86385. function TJSElementCSSInlineStyle._Getstyle: IJSCSSStyleDeclaration;
  86386. begin
  86387. Result:=ReadJSPropertyObject('style',TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  86388. end;
  86389. class function TJSElementCSSInlineStyle.JSClassName: UnicodeString;
  86390. begin
  86391. Result:='ElementCSSInlineStyle';
  86392. end;
  86393. class function TJSElementCSSInlineStyle.Cast(const Intf: IJSObject): IJSElementCSSInlineStyle;
  86394. begin
  86395. Result:=TJSElementCSSInlineStyle.JOBCast(Intf);
  86396. end;
  86397. function TJSScrollIntoViewOptions._Getblock: TScrollLogicalPosition;
  86398. begin
  86399. Result:=ReadJSPropertyUnicodeString('block');
  86400. end;
  86401. function TJSScrollIntoViewOptions._Getinline_: TScrollLogicalPosition;
  86402. begin
  86403. Result:=ReadJSPropertyUnicodeString('inline');
  86404. end;
  86405. procedure TJSScrollIntoViewOptions._Setblock(const aValue : TScrollLogicalPosition);
  86406. begin
  86407. WriteJSPropertyUnicodeString('block',aValue);
  86408. end;
  86409. procedure TJSScrollIntoViewOptions._Setinline_(const aValue : TScrollLogicalPosition);
  86410. begin
  86411. WriteJSPropertyUnicodeString('inline',aValue);
  86412. end;
  86413. class function TJSScrollIntoViewOptions.JSClassName: UnicodeString;
  86414. begin
  86415. Result:='Object';
  86416. end;
  86417. class function TJSScrollIntoViewOptions.Cast(const Intf: IJSObject): IJSScrollIntoViewOptions;
  86418. begin
  86419. Result:=TJSScrollIntoViewOptions.JOBCast(Intf);
  86420. end;
  86421. function TJSCheckVisibilityOptions._GetcheckOpacity: Boolean;
  86422. begin
  86423. Result:=ReadJSPropertyBoolean('checkOpacity');
  86424. end;
  86425. function TJSCheckVisibilityOptions._GetcheckVisibilityCSS: Boolean;
  86426. begin
  86427. Result:=ReadJSPropertyBoolean('checkVisibilityCSS');
  86428. end;
  86429. function TJSCheckVisibilityOptions._GetcontentVisibilityAuto: Boolean;
  86430. begin
  86431. Result:=ReadJSPropertyBoolean('contentVisibilityAuto');
  86432. end;
  86433. function TJSCheckVisibilityOptions._GetopacityProperty: Boolean;
  86434. begin
  86435. Result:=ReadJSPropertyBoolean('opacityProperty');
  86436. end;
  86437. function TJSCheckVisibilityOptions._GetvisibilityProperty: Boolean;
  86438. begin
  86439. Result:=ReadJSPropertyBoolean('visibilityProperty');
  86440. end;
  86441. procedure TJSCheckVisibilityOptions._SetcheckOpacity(const aValue : Boolean);
  86442. begin
  86443. WriteJSPropertyBoolean('checkOpacity',aValue);
  86444. end;
  86445. procedure TJSCheckVisibilityOptions._SetcheckVisibilityCSS(const aValue : Boolean);
  86446. begin
  86447. WriteJSPropertyBoolean('checkVisibilityCSS',aValue);
  86448. end;
  86449. procedure TJSCheckVisibilityOptions._SetcontentVisibilityAuto(const aValue : Boolean);
  86450. begin
  86451. WriteJSPropertyBoolean('contentVisibilityAuto',aValue);
  86452. end;
  86453. procedure TJSCheckVisibilityOptions._SetopacityProperty(const aValue : Boolean);
  86454. begin
  86455. WriteJSPropertyBoolean('opacityProperty',aValue);
  86456. end;
  86457. procedure TJSCheckVisibilityOptions._SetvisibilityProperty(const aValue : Boolean);
  86458. begin
  86459. WriteJSPropertyBoolean('visibilityProperty',aValue);
  86460. end;
  86461. class function TJSCheckVisibilityOptions.JSClassName: UnicodeString;
  86462. begin
  86463. Result:='Object';
  86464. end;
  86465. class function TJSCheckVisibilityOptions.Cast(const Intf: IJSObject): IJSCheckVisibilityOptions;
  86466. begin
  86467. Result:=TJSCheckVisibilityOptions.JOBCast(Intf);
  86468. end;
  86469. function TJSShadowRootInit._Getmode: TShadowRootMode;
  86470. begin
  86471. Result:=ReadJSPropertyUnicodeString('mode');
  86472. end;
  86473. function TJSShadowRootInit._GetdelegatesFocus: Boolean;
  86474. begin
  86475. Result:=ReadJSPropertyBoolean('delegatesFocus');
  86476. end;
  86477. function TJSShadowRootInit._GetslotAssignment: TSlotAssignmentMode;
  86478. begin
  86479. Result:=ReadJSPropertyUnicodeString('slotAssignment');
  86480. end;
  86481. function TJSShadowRootInit._Getclonable: Boolean;
  86482. begin
  86483. Result:=ReadJSPropertyBoolean('clonable');
  86484. end;
  86485. procedure TJSShadowRootInit._Setmode(const aValue : TShadowRootMode);
  86486. begin
  86487. WriteJSPropertyUnicodeString('mode',aValue);
  86488. end;
  86489. procedure TJSShadowRootInit._SetdelegatesFocus(const aValue : Boolean);
  86490. begin
  86491. WriteJSPropertyBoolean('delegatesFocus',aValue);
  86492. end;
  86493. procedure TJSShadowRootInit._SetslotAssignment(const aValue : TSlotAssignmentMode);
  86494. begin
  86495. WriteJSPropertyUnicodeString('slotAssignment',aValue);
  86496. end;
  86497. procedure TJSShadowRootInit._Setclonable(const aValue : Boolean);
  86498. begin
  86499. WriteJSPropertyBoolean('clonable',aValue);
  86500. end;
  86501. class function TJSShadowRootInit.JSClassName: UnicodeString;
  86502. begin
  86503. Result:='Object';
  86504. end;
  86505. class function TJSShadowRootInit.Cast(const Intf: IJSObject): IJSShadowRootInit;
  86506. begin
  86507. Result:=TJSShadowRootInit.JOBCast(Intf);
  86508. end;
  86509. function TJSSetHTMLOptions._Getsanitizer: TJSSanitizerConfig;
  86510. begin
  86511. Result:=ReadJSPropertyObject('sanitizer',TJSSanitizerConfig) as TJSSanitizerConfig;
  86512. end;
  86513. procedure TJSSetHTMLOptions._Setsanitizer(const aValue : TJSSanitizerConfig);
  86514. begin
  86515. WriteJSPropertyObject('sanitizer',aValue);
  86516. end;
  86517. class function TJSSetHTMLOptions.JSClassName: UnicodeString;
  86518. begin
  86519. Result:='Object';
  86520. end;
  86521. class function TJSSetHTMLOptions.Cast(const Intf: IJSObject): IJSSetHTMLOptions;
  86522. begin
  86523. Result:=TJSSetHTMLOptions.JOBCast(Intf);
  86524. end;
  86525. function TJSElementInternals._GetshadowRoot: IJSShadowRoot;
  86526. begin
  86527. Result:=ReadJSPropertyObject('shadowRoot',TJSShadowRoot) as IJSShadowRoot;
  86528. end;
  86529. function TJSElementInternals._Getform: IJSHTMLFormElement;
  86530. begin
  86531. Result:=ReadJSPropertyObject('form',TJSHTMLFormElement) as IJSHTMLFormElement;
  86532. end;
  86533. function TJSElementInternals._GetwillValidate: Boolean;
  86534. begin
  86535. Result:=ReadJSPropertyBoolean('willValidate');
  86536. end;
  86537. function TJSElementInternals._Getvalidity: IJSValidityState;
  86538. begin
  86539. Result:=ReadJSPropertyObject('validity',TJSValidityState) as IJSValidityState;
  86540. end;
  86541. function TJSElementInternals._GetvalidationMessage: UnicodeString;
  86542. begin
  86543. Result:=ReadJSPropertyUnicodeString('validationMessage');
  86544. end;
  86545. function TJSElementInternals._Getlabels: IJSNodeList;
  86546. begin
  86547. Result:=ReadJSPropertyObject('labels',TJSNodeList) as IJSNodeList;
  86548. end;
  86549. function TJSElementInternals._Getstates: IJSCustomStateSet;
  86550. begin
  86551. Result:=ReadJSPropertyObject('states',TJSCustomStateSet) as IJSCustomStateSet;
  86552. end;
  86553. function TJSElementInternals._GetariaActiveDescendantElement: IJSElement;
  86554. begin
  86555. Result:=ReadJSPropertyObject('ariaActiveDescendantElement',TJSElement) as IJSElement;
  86556. end;
  86557. function TJSElementInternals._Getrole: UnicodeString;
  86558. begin
  86559. Result:=ReadJSPropertyUnicodeString('role');
  86560. end;
  86561. function TJSElementInternals._GetariaAtomic: UnicodeString;
  86562. begin
  86563. Result:=ReadJSPropertyUnicodeString('ariaAtomic');
  86564. end;
  86565. function TJSElementInternals._GetariaAutoComplete: UnicodeString;
  86566. begin
  86567. Result:=ReadJSPropertyUnicodeString('ariaAutoComplete');
  86568. end;
  86569. function TJSElementInternals._GetariaBrailleLabel: UnicodeString;
  86570. begin
  86571. Result:=ReadJSPropertyUnicodeString('ariaBrailleLabel');
  86572. end;
  86573. function TJSElementInternals._GetariaBrailleRoleDescription: UnicodeString;
  86574. begin
  86575. Result:=ReadJSPropertyUnicodeString('ariaBrailleRoleDescription');
  86576. end;
  86577. function TJSElementInternals._GetariaBusy: UnicodeString;
  86578. begin
  86579. Result:=ReadJSPropertyUnicodeString('ariaBusy');
  86580. end;
  86581. function TJSElementInternals._GetariaChecked: UnicodeString;
  86582. begin
  86583. Result:=ReadJSPropertyUnicodeString('ariaChecked');
  86584. end;
  86585. function TJSElementInternals._GetariaColCount: UnicodeString;
  86586. begin
  86587. Result:=ReadJSPropertyUnicodeString('ariaColCount');
  86588. end;
  86589. function TJSElementInternals._GetariaColIndex: UnicodeString;
  86590. begin
  86591. Result:=ReadJSPropertyUnicodeString('ariaColIndex');
  86592. end;
  86593. function TJSElementInternals._GetariaColIndexText: UnicodeString;
  86594. begin
  86595. Result:=ReadJSPropertyUnicodeString('ariaColIndexText');
  86596. end;
  86597. function TJSElementInternals._GetariaColSpan: UnicodeString;
  86598. begin
  86599. Result:=ReadJSPropertyUnicodeString('ariaColSpan');
  86600. end;
  86601. function TJSElementInternals._GetariaCurrent: UnicodeString;
  86602. begin
  86603. Result:=ReadJSPropertyUnicodeString('ariaCurrent');
  86604. end;
  86605. function TJSElementInternals._GetariaDescription: UnicodeString;
  86606. begin
  86607. Result:=ReadJSPropertyUnicodeString('ariaDescription');
  86608. end;
  86609. function TJSElementInternals._GetariaDisabled: UnicodeString;
  86610. begin
  86611. Result:=ReadJSPropertyUnicodeString('ariaDisabled');
  86612. end;
  86613. function TJSElementInternals._GetariaExpanded: UnicodeString;
  86614. begin
  86615. Result:=ReadJSPropertyUnicodeString('ariaExpanded');
  86616. end;
  86617. function TJSElementInternals._GetariaHasPopup: UnicodeString;
  86618. begin
  86619. Result:=ReadJSPropertyUnicodeString('ariaHasPopup');
  86620. end;
  86621. function TJSElementInternals._GetariaHidden: UnicodeString;
  86622. begin
  86623. Result:=ReadJSPropertyUnicodeString('ariaHidden');
  86624. end;
  86625. function TJSElementInternals._GetariaInvalid: UnicodeString;
  86626. begin
  86627. Result:=ReadJSPropertyUnicodeString('ariaInvalid');
  86628. end;
  86629. function TJSElementInternals._GetariaKeyShortcuts: UnicodeString;
  86630. begin
  86631. Result:=ReadJSPropertyUnicodeString('ariaKeyShortcuts');
  86632. end;
  86633. function TJSElementInternals._GetariaLabel: UnicodeString;
  86634. begin
  86635. Result:=ReadJSPropertyUnicodeString('ariaLabel');
  86636. end;
  86637. function TJSElementInternals._GetariaLevel: UnicodeString;
  86638. begin
  86639. Result:=ReadJSPropertyUnicodeString('ariaLevel');
  86640. end;
  86641. function TJSElementInternals._GetariaLive: UnicodeString;
  86642. begin
  86643. Result:=ReadJSPropertyUnicodeString('ariaLive');
  86644. end;
  86645. function TJSElementInternals._GetariaModal: UnicodeString;
  86646. begin
  86647. Result:=ReadJSPropertyUnicodeString('ariaModal');
  86648. end;
  86649. function TJSElementInternals._GetariaMultiLine: UnicodeString;
  86650. begin
  86651. Result:=ReadJSPropertyUnicodeString('ariaMultiLine');
  86652. end;
  86653. function TJSElementInternals._GetariaMultiSelectable: UnicodeString;
  86654. begin
  86655. Result:=ReadJSPropertyUnicodeString('ariaMultiSelectable');
  86656. end;
  86657. function TJSElementInternals._GetariaOrientation: UnicodeString;
  86658. begin
  86659. Result:=ReadJSPropertyUnicodeString('ariaOrientation');
  86660. end;
  86661. function TJSElementInternals._GetariaPlaceholder: UnicodeString;
  86662. begin
  86663. Result:=ReadJSPropertyUnicodeString('ariaPlaceholder');
  86664. end;
  86665. function TJSElementInternals._GetariaPosInSet: UnicodeString;
  86666. begin
  86667. Result:=ReadJSPropertyUnicodeString('ariaPosInSet');
  86668. end;
  86669. function TJSElementInternals._GetariaPressed: UnicodeString;
  86670. begin
  86671. Result:=ReadJSPropertyUnicodeString('ariaPressed');
  86672. end;
  86673. function TJSElementInternals._GetariaReadOnly: UnicodeString;
  86674. begin
  86675. Result:=ReadJSPropertyUnicodeString('ariaReadOnly');
  86676. end;
  86677. function TJSElementInternals._GetariaRelevant: UnicodeString;
  86678. begin
  86679. Result:=ReadJSPropertyUnicodeString('ariaRelevant');
  86680. end;
  86681. function TJSElementInternals._GetariaRequired: UnicodeString;
  86682. begin
  86683. Result:=ReadJSPropertyUnicodeString('ariaRequired');
  86684. end;
  86685. function TJSElementInternals._GetariaRoleDescription: UnicodeString;
  86686. begin
  86687. Result:=ReadJSPropertyUnicodeString('ariaRoleDescription');
  86688. end;
  86689. function TJSElementInternals._GetariaRowCount: UnicodeString;
  86690. begin
  86691. Result:=ReadJSPropertyUnicodeString('ariaRowCount');
  86692. end;
  86693. function TJSElementInternals._GetariaRowIndex: UnicodeString;
  86694. begin
  86695. Result:=ReadJSPropertyUnicodeString('ariaRowIndex');
  86696. end;
  86697. function TJSElementInternals._GetariaRowIndexText: UnicodeString;
  86698. begin
  86699. Result:=ReadJSPropertyUnicodeString('ariaRowIndexText');
  86700. end;
  86701. function TJSElementInternals._GetariaRowSpan: UnicodeString;
  86702. begin
  86703. Result:=ReadJSPropertyUnicodeString('ariaRowSpan');
  86704. end;
  86705. function TJSElementInternals._GetariaSelected: UnicodeString;
  86706. begin
  86707. Result:=ReadJSPropertyUnicodeString('ariaSelected');
  86708. end;
  86709. function TJSElementInternals._GetariaSetSize: UnicodeString;
  86710. begin
  86711. Result:=ReadJSPropertyUnicodeString('ariaSetSize');
  86712. end;
  86713. function TJSElementInternals._GetariaSort: UnicodeString;
  86714. begin
  86715. Result:=ReadJSPropertyUnicodeString('ariaSort');
  86716. end;
  86717. function TJSElementInternals._GetariaValueMax: UnicodeString;
  86718. begin
  86719. Result:=ReadJSPropertyUnicodeString('ariaValueMax');
  86720. end;
  86721. function TJSElementInternals._GetariaValueMin: UnicodeString;
  86722. begin
  86723. Result:=ReadJSPropertyUnicodeString('ariaValueMin');
  86724. end;
  86725. function TJSElementInternals._GetariaValueNow: UnicodeString;
  86726. begin
  86727. Result:=ReadJSPropertyUnicodeString('ariaValueNow');
  86728. end;
  86729. function TJSElementInternals._GetariaValueText: UnicodeString;
  86730. begin
  86731. Result:=ReadJSPropertyUnicodeString('ariaValueText');
  86732. end;
  86733. procedure TJSElementInternals._SetariaActiveDescendantElement(const aValue : IJSElement);
  86734. begin
  86735. WriteJSPropertyObject('ariaActiveDescendantElement',aValue);
  86736. end;
  86737. procedure TJSElementInternals._Setrole(const aValue : UnicodeString);
  86738. begin
  86739. WriteJSPropertyUnicodeString('role',aValue);
  86740. end;
  86741. procedure TJSElementInternals._SetariaAtomic(const aValue : UnicodeString);
  86742. begin
  86743. WriteJSPropertyUnicodeString('ariaAtomic',aValue);
  86744. end;
  86745. procedure TJSElementInternals._SetariaAutoComplete(const aValue : UnicodeString);
  86746. begin
  86747. WriteJSPropertyUnicodeString('ariaAutoComplete',aValue);
  86748. end;
  86749. procedure TJSElementInternals._SetariaBrailleLabel(const aValue : UnicodeString);
  86750. begin
  86751. WriteJSPropertyUnicodeString('ariaBrailleLabel',aValue);
  86752. end;
  86753. procedure TJSElementInternals._SetariaBrailleRoleDescription(const aValue : UnicodeString);
  86754. begin
  86755. WriteJSPropertyUnicodeString('ariaBrailleRoleDescription',aValue);
  86756. end;
  86757. procedure TJSElementInternals._SetariaBusy(const aValue : UnicodeString);
  86758. begin
  86759. WriteJSPropertyUnicodeString('ariaBusy',aValue);
  86760. end;
  86761. procedure TJSElementInternals._SetariaChecked(const aValue : UnicodeString);
  86762. begin
  86763. WriteJSPropertyUnicodeString('ariaChecked',aValue);
  86764. end;
  86765. procedure TJSElementInternals._SetariaColCount(const aValue : UnicodeString);
  86766. begin
  86767. WriteJSPropertyUnicodeString('ariaColCount',aValue);
  86768. end;
  86769. procedure TJSElementInternals._SetariaColIndex(const aValue : UnicodeString);
  86770. begin
  86771. WriteJSPropertyUnicodeString('ariaColIndex',aValue);
  86772. end;
  86773. procedure TJSElementInternals._SetariaColIndexText(const aValue : UnicodeString);
  86774. begin
  86775. WriteJSPropertyUnicodeString('ariaColIndexText',aValue);
  86776. end;
  86777. procedure TJSElementInternals._SetariaColSpan(const aValue : UnicodeString);
  86778. begin
  86779. WriteJSPropertyUnicodeString('ariaColSpan',aValue);
  86780. end;
  86781. procedure TJSElementInternals._SetariaCurrent(const aValue : UnicodeString);
  86782. begin
  86783. WriteJSPropertyUnicodeString('ariaCurrent',aValue);
  86784. end;
  86785. procedure TJSElementInternals._SetariaDescription(const aValue : UnicodeString);
  86786. begin
  86787. WriteJSPropertyUnicodeString('ariaDescription',aValue);
  86788. end;
  86789. procedure TJSElementInternals._SetariaDisabled(const aValue : UnicodeString);
  86790. begin
  86791. WriteJSPropertyUnicodeString('ariaDisabled',aValue);
  86792. end;
  86793. procedure TJSElementInternals._SetariaExpanded(const aValue : UnicodeString);
  86794. begin
  86795. WriteJSPropertyUnicodeString('ariaExpanded',aValue);
  86796. end;
  86797. procedure TJSElementInternals._SetariaHasPopup(const aValue : UnicodeString);
  86798. begin
  86799. WriteJSPropertyUnicodeString('ariaHasPopup',aValue);
  86800. end;
  86801. procedure TJSElementInternals._SetariaHidden(const aValue : UnicodeString);
  86802. begin
  86803. WriteJSPropertyUnicodeString('ariaHidden',aValue);
  86804. end;
  86805. procedure TJSElementInternals._SetariaInvalid(const aValue : UnicodeString);
  86806. begin
  86807. WriteJSPropertyUnicodeString('ariaInvalid',aValue);
  86808. end;
  86809. procedure TJSElementInternals._SetariaKeyShortcuts(const aValue : UnicodeString);
  86810. begin
  86811. WriteJSPropertyUnicodeString('ariaKeyShortcuts',aValue);
  86812. end;
  86813. procedure TJSElementInternals._SetariaLabel(const aValue : UnicodeString);
  86814. begin
  86815. WriteJSPropertyUnicodeString('ariaLabel',aValue);
  86816. end;
  86817. procedure TJSElementInternals._SetariaLevel(const aValue : UnicodeString);
  86818. begin
  86819. WriteJSPropertyUnicodeString('ariaLevel',aValue);
  86820. end;
  86821. procedure TJSElementInternals._SetariaLive(const aValue : UnicodeString);
  86822. begin
  86823. WriteJSPropertyUnicodeString('ariaLive',aValue);
  86824. end;
  86825. procedure TJSElementInternals._SetariaModal(const aValue : UnicodeString);
  86826. begin
  86827. WriteJSPropertyUnicodeString('ariaModal',aValue);
  86828. end;
  86829. procedure TJSElementInternals._SetariaMultiLine(const aValue : UnicodeString);
  86830. begin
  86831. WriteJSPropertyUnicodeString('ariaMultiLine',aValue);
  86832. end;
  86833. procedure TJSElementInternals._SetariaMultiSelectable(const aValue : UnicodeString);
  86834. begin
  86835. WriteJSPropertyUnicodeString('ariaMultiSelectable',aValue);
  86836. end;
  86837. procedure TJSElementInternals._SetariaOrientation(const aValue : UnicodeString);
  86838. begin
  86839. WriteJSPropertyUnicodeString('ariaOrientation',aValue);
  86840. end;
  86841. procedure TJSElementInternals._SetariaPlaceholder(const aValue : UnicodeString);
  86842. begin
  86843. WriteJSPropertyUnicodeString('ariaPlaceholder',aValue);
  86844. end;
  86845. procedure TJSElementInternals._SetariaPosInSet(const aValue : UnicodeString);
  86846. begin
  86847. WriteJSPropertyUnicodeString('ariaPosInSet',aValue);
  86848. end;
  86849. procedure TJSElementInternals._SetariaPressed(const aValue : UnicodeString);
  86850. begin
  86851. WriteJSPropertyUnicodeString('ariaPressed',aValue);
  86852. end;
  86853. procedure TJSElementInternals._SetariaReadOnly(const aValue : UnicodeString);
  86854. begin
  86855. WriteJSPropertyUnicodeString('ariaReadOnly',aValue);
  86856. end;
  86857. procedure TJSElementInternals._SetariaRelevant(const aValue : UnicodeString);
  86858. begin
  86859. WriteJSPropertyUnicodeString('ariaRelevant',aValue);
  86860. end;
  86861. procedure TJSElementInternals._SetariaRequired(const aValue : UnicodeString);
  86862. begin
  86863. WriteJSPropertyUnicodeString('ariaRequired',aValue);
  86864. end;
  86865. procedure TJSElementInternals._SetariaRoleDescription(const aValue : UnicodeString);
  86866. begin
  86867. WriteJSPropertyUnicodeString('ariaRoleDescription',aValue);
  86868. end;
  86869. procedure TJSElementInternals._SetariaRowCount(const aValue : UnicodeString);
  86870. begin
  86871. WriteJSPropertyUnicodeString('ariaRowCount',aValue);
  86872. end;
  86873. procedure TJSElementInternals._SetariaRowIndex(const aValue : UnicodeString);
  86874. begin
  86875. WriteJSPropertyUnicodeString('ariaRowIndex',aValue);
  86876. end;
  86877. procedure TJSElementInternals._SetariaRowIndexText(const aValue : UnicodeString);
  86878. begin
  86879. WriteJSPropertyUnicodeString('ariaRowIndexText',aValue);
  86880. end;
  86881. procedure TJSElementInternals._SetariaRowSpan(const aValue : UnicodeString);
  86882. begin
  86883. WriteJSPropertyUnicodeString('ariaRowSpan',aValue);
  86884. end;
  86885. procedure TJSElementInternals._SetariaSelected(const aValue : UnicodeString);
  86886. begin
  86887. WriteJSPropertyUnicodeString('ariaSelected',aValue);
  86888. end;
  86889. procedure TJSElementInternals._SetariaSetSize(const aValue : UnicodeString);
  86890. begin
  86891. WriteJSPropertyUnicodeString('ariaSetSize',aValue);
  86892. end;
  86893. procedure TJSElementInternals._SetariaSort(const aValue : UnicodeString);
  86894. begin
  86895. WriteJSPropertyUnicodeString('ariaSort',aValue);
  86896. end;
  86897. procedure TJSElementInternals._SetariaValueMax(const aValue : UnicodeString);
  86898. begin
  86899. WriteJSPropertyUnicodeString('ariaValueMax',aValue);
  86900. end;
  86901. procedure TJSElementInternals._SetariaValueMin(const aValue : UnicodeString);
  86902. begin
  86903. WriteJSPropertyUnicodeString('ariaValueMin',aValue);
  86904. end;
  86905. procedure TJSElementInternals._SetariaValueNow(const aValue : UnicodeString);
  86906. begin
  86907. WriteJSPropertyUnicodeString('ariaValueNow',aValue);
  86908. end;
  86909. procedure TJSElementInternals._SetariaValueText(const aValue : UnicodeString);
  86910. begin
  86911. WriteJSPropertyUnicodeString('ariaValueText',aValue);
  86912. end;
  86913. procedure TJSElementInternals.setFormValue(aValue: IJSFile; aState: IJSFile);
  86914. begin
  86915. InvokeJSNoResult('setFormValue',[aValue,aState]);
  86916. end;
  86917. procedure TJSElementInternals.setFormValue(aValue: IJSFormData; aState: IJSFile);
  86918. begin
  86919. InvokeJSNoResult('setFormValue',[aValue,aState]);
  86920. end;
  86921. procedure TJSElementInternals.setFormValue(const aValue: UnicodeString; aState: IJSFile);
  86922. begin
  86923. InvokeJSNoResult('setFormValue',[aValue,aState]);
  86924. end;
  86925. procedure TJSElementInternals.setFormValue(const aValue: UnicodeString);
  86926. begin
  86927. InvokeJSNoResult('setFormValue',[aValue]);
  86928. end;
  86929. procedure TJSElementInternals.setFormValue(aValue: IJSFormData);
  86930. begin
  86931. InvokeJSNoResult('setFormValue',[aValue]);
  86932. end;
  86933. procedure TJSElementInternals.setFormValue(aValue: IJSFile);
  86934. begin
  86935. InvokeJSNoResult('setFormValue',[aValue]);
  86936. end;
  86937. procedure TJSElementInternals.setFormValue(const aValue: UnicodeString; aState: IJSFormData);
  86938. begin
  86939. InvokeJSNoResult('setFormValue',[aValue,aState]);
  86940. end;
  86941. procedure TJSElementInternals.setFormValue(aValue: IJSFormData; aState: IJSFormData);
  86942. begin
  86943. InvokeJSNoResult('setFormValue',[aValue,aState]);
  86944. end;
  86945. procedure TJSElementInternals.setFormValue(aValue: IJSFile; aState: IJSFormData);
  86946. begin
  86947. InvokeJSNoResult('setFormValue',[aValue,aState]);
  86948. end;
  86949. procedure TJSElementInternals.setFormValue(const aValue: UnicodeString; const aState: UnicodeString);
  86950. begin
  86951. InvokeJSNoResult('setFormValue',[aValue,aState]);
  86952. end;
  86953. procedure TJSElementInternals.setFormValue(aValue: IJSFormData; const aState: UnicodeString);
  86954. begin
  86955. InvokeJSNoResult('setFormValue',[aValue,aState]);
  86956. end;
  86957. procedure TJSElementInternals.setFormValue(aValue: IJSFile; const aState: UnicodeString);
  86958. begin
  86959. InvokeJSNoResult('setFormValue',[aValue,aState]);
  86960. end;
  86961. procedure TJSElementInternals.setValidity(const aFlags: TJSValidityStateFlags; const aMessage: UnicodeString; aAnchor: IJSHTMLElement);
  86962. begin
  86963. InvokeJSNoResult('setValidity',[aFlags,aMessage,aAnchor]);
  86964. end;
  86965. procedure TJSElementInternals.setValidity;
  86966. begin
  86967. InvokeJSNoResult('setValidity',[]);
  86968. end;
  86969. procedure TJSElementInternals.setValidity(const aFlags: TJSValidityStateFlags);
  86970. begin
  86971. InvokeJSNoResult('setValidity',[aFlags]);
  86972. end;
  86973. procedure TJSElementInternals.setValidity(const aFlags: TJSValidityStateFlags; const aMessage: UnicodeString);
  86974. begin
  86975. InvokeJSNoResult('setValidity',[aFlags,aMessage]);
  86976. end;
  86977. function TJSElementInternals.checkValidity: Boolean;
  86978. begin
  86979. Result:=InvokeJSBooleanResult('checkValidity',[]);
  86980. end;
  86981. function TJSElementInternals.reportValidity: Boolean;
  86982. begin
  86983. Result:=InvokeJSBooleanResult('reportValidity',[]);
  86984. end;
  86985. class function TJSElementInternals.JSClassName: UnicodeString;
  86986. begin
  86987. Result:='ElementInternals';
  86988. end;
  86989. class function TJSElementInternals.Cast(const Intf: IJSObject): IJSElementInternals;
  86990. begin
  86991. Result:=TJSElementInternals.JOBCast(Intf);
  86992. end;
  86993. procedure TJSCustomStateSet.add(const aState: UnicodeString);
  86994. begin
  86995. InvokeJSNoResult('add',[aState]);
  86996. end;
  86997. function TJSCustomStateSet.delete(const aState: UnicodeString): Boolean;
  86998. begin
  86999. Result:=InvokeJSBooleanResult('delete',[aState]);
  87000. end;
  87001. procedure TJSCustomStateSet.clear;
  87002. begin
  87003. InvokeJSNoResult('clear',[]);
  87004. end;
  87005. class function TJSCustomStateSet.JSClassName: UnicodeString;
  87006. begin
  87007. Result:='CustomStateSet';
  87008. end;
  87009. class function TJSCustomStateSet.Cast(const Intf: IJSObject): IJSCustomStateSet;
  87010. begin
  87011. Result:=TJSCustomStateSet.JOBCast(Intf);
  87012. end;
  87013. function TJSValidityStateFlags._GetvalueMissing: Boolean;
  87014. begin
  87015. Result:=ReadJSPropertyBoolean('valueMissing');
  87016. end;
  87017. function TJSValidityStateFlags._GettypeMismatch: Boolean;
  87018. begin
  87019. Result:=ReadJSPropertyBoolean('typeMismatch');
  87020. end;
  87021. function TJSValidityStateFlags._GetpatternMismatch: Boolean;
  87022. begin
  87023. Result:=ReadJSPropertyBoolean('patternMismatch');
  87024. end;
  87025. function TJSValidityStateFlags._GettooLong: Boolean;
  87026. begin
  87027. Result:=ReadJSPropertyBoolean('tooLong');
  87028. end;
  87029. function TJSValidityStateFlags._GettooShort: Boolean;
  87030. begin
  87031. Result:=ReadJSPropertyBoolean('tooShort');
  87032. end;
  87033. function TJSValidityStateFlags._GetrangeUnderflow: Boolean;
  87034. begin
  87035. Result:=ReadJSPropertyBoolean('rangeUnderflow');
  87036. end;
  87037. function TJSValidityStateFlags._GetrangeOverflow: Boolean;
  87038. begin
  87039. Result:=ReadJSPropertyBoolean('rangeOverflow');
  87040. end;
  87041. function TJSValidityStateFlags._GetstepMismatch: Boolean;
  87042. begin
  87043. Result:=ReadJSPropertyBoolean('stepMismatch');
  87044. end;
  87045. function TJSValidityStateFlags._GetbadInput: Boolean;
  87046. begin
  87047. Result:=ReadJSPropertyBoolean('badInput');
  87048. end;
  87049. function TJSValidityStateFlags._GetcustomError: Boolean;
  87050. begin
  87051. Result:=ReadJSPropertyBoolean('customError');
  87052. end;
  87053. procedure TJSValidityStateFlags._SetvalueMissing(const aValue : Boolean);
  87054. begin
  87055. WriteJSPropertyBoolean('valueMissing',aValue);
  87056. end;
  87057. procedure TJSValidityStateFlags._SettypeMismatch(const aValue : Boolean);
  87058. begin
  87059. WriteJSPropertyBoolean('typeMismatch',aValue);
  87060. end;
  87061. procedure TJSValidityStateFlags._SetpatternMismatch(const aValue : Boolean);
  87062. begin
  87063. WriteJSPropertyBoolean('patternMismatch',aValue);
  87064. end;
  87065. procedure TJSValidityStateFlags._SettooLong(const aValue : Boolean);
  87066. begin
  87067. WriteJSPropertyBoolean('tooLong',aValue);
  87068. end;
  87069. procedure TJSValidityStateFlags._SettooShort(const aValue : Boolean);
  87070. begin
  87071. WriteJSPropertyBoolean('tooShort',aValue);
  87072. end;
  87073. procedure TJSValidityStateFlags._SetrangeUnderflow(const aValue : Boolean);
  87074. begin
  87075. WriteJSPropertyBoolean('rangeUnderflow',aValue);
  87076. end;
  87077. procedure TJSValidityStateFlags._SetrangeOverflow(const aValue : Boolean);
  87078. begin
  87079. WriteJSPropertyBoolean('rangeOverflow',aValue);
  87080. end;
  87081. procedure TJSValidityStateFlags._SetstepMismatch(const aValue : Boolean);
  87082. begin
  87083. WriteJSPropertyBoolean('stepMismatch',aValue);
  87084. end;
  87085. procedure TJSValidityStateFlags._SetbadInput(const aValue : Boolean);
  87086. begin
  87087. WriteJSPropertyBoolean('badInput',aValue);
  87088. end;
  87089. procedure TJSValidityStateFlags._SetcustomError(const aValue : Boolean);
  87090. begin
  87091. WriteJSPropertyBoolean('customError',aValue);
  87092. end;
  87093. class function TJSValidityStateFlags.JSClassName: UnicodeString;
  87094. begin
  87095. Result:='Object';
  87096. end;
  87097. class function TJSValidityStateFlags.Cast(const Intf: IJSObject): IJSValidityStateFlags;
  87098. begin
  87099. Result:=TJSValidityStateFlags.JOBCast(Intf);
  87100. end;
  87101. function TJSEncodedAudioChunk._Gettype_: TEncodedAudioChunkType;
  87102. begin
  87103. Result:=ReadJSPropertyUnicodeString('type');
  87104. end;
  87105. function TJSEncodedAudioChunk._Gettimestamp: Int64;
  87106. begin
  87107. Result:=ReadJSPropertyInt64('timestamp');
  87108. end;
  87109. function TJSEncodedAudioChunk._Getduration: QWord;
  87110. begin
  87111. Result:=ReadJSPropertyInt64('duration');
  87112. end;
  87113. function TJSEncodedAudioChunk._GetbyteLength: Cardinal;
  87114. begin
  87115. Result:=ReadJSPropertyInt64('byteLength');
  87116. end;
  87117. constructor TJSEncodedAudioChunk.Create(const aInit: TJSEncodedAudioChunkInit);
  87118. begin
  87119. JOBCreate([aInit]);
  87120. end;
  87121. procedure TJSEncodedAudioChunk.copyTo(aDestination: IJSArrayBuffer);
  87122. begin
  87123. InvokeJSNoResult('copyTo',[aDestination]);
  87124. end;
  87125. procedure TJSEncodedAudioChunk.copyTo(aDestination: IJSArrayBufferView);
  87126. begin
  87127. InvokeJSNoResult('copyTo',[aDestination]);
  87128. end;
  87129. class function TJSEncodedAudioChunk.JSClassName: UnicodeString;
  87130. begin
  87131. Result:='EncodedAudioChunk';
  87132. end;
  87133. class function TJSEncodedAudioChunk.Cast(const Intf: IJSObject): IJSEncodedAudioChunk;
  87134. begin
  87135. Result:=TJSEncodedAudioChunk.JOBCast(Intf);
  87136. end;
  87137. function TJSEncodedAudioChunkInit._Gettype_: TEncodedAudioChunkType;
  87138. begin
  87139. Result:=ReadJSPropertyUnicodeString('type');
  87140. end;
  87141. function TJSEncodedAudioChunkInit._Gettimestamp: Int64;
  87142. begin
  87143. Result:=ReadJSPropertyInt64('timestamp');
  87144. end;
  87145. function TJSEncodedAudioChunkInit._Getduration: QWord;
  87146. begin
  87147. Result:=ReadJSPropertyInt64('duration');
  87148. end;
  87149. function TJSEncodedAudioChunkInit._Getdata: TEncodedAudioChunkInit_data_Type;
  87150. begin
  87151. Result:=ReadJSPropertyVariant('data');
  87152. end;
  87153. function TJSEncodedAudioChunkInit._Gettransfer: TIJSArrayBufferDynArray;
  87154. begin
  87155. Result:=ReadJSPropertyObject('transfer',TJSArray) as TIJSArrayBufferDynArray;
  87156. end;
  87157. procedure TJSEncodedAudioChunkInit._Settype_(const aValue : TEncodedAudioChunkType);
  87158. begin
  87159. WriteJSPropertyUnicodeString('type',aValue);
  87160. end;
  87161. procedure TJSEncodedAudioChunkInit._Settimestamp(const aValue : Int64);
  87162. begin
  87163. WriteJSPropertyDouble('timestamp',aValue);
  87164. end;
  87165. procedure TJSEncodedAudioChunkInit._Setduration(const aValue : QWord);
  87166. begin
  87167. WriteJSPropertyDouble('duration',aValue);
  87168. end;
  87169. procedure TJSEncodedAudioChunkInit._Setdata(const aValue : TEncodedAudioChunkInit_data_Type);
  87170. begin
  87171. WriteJSPropertyVariant('data',aValue);
  87172. end;
  87173. procedure TJSEncodedAudioChunkInit._Settransfer(const aValue : TIJSArrayBufferDynArray);
  87174. begin
  87175. WriteJSPropertyObject('transfer',aValue);
  87176. end;
  87177. class function TJSEncodedAudioChunkInit.JSClassName: UnicodeString;
  87178. begin
  87179. Result:='Object';
  87180. end;
  87181. class function TJSEncodedAudioChunkInit.Cast(const Intf: IJSObject): IJSEncodedAudioChunkInit;
  87182. begin
  87183. Result:=TJSEncodedAudioChunkInit.JOBCast(Intf);
  87184. end;
  87185. function TJSEncodedVideoChunk._Gettype_: TEncodedVideoChunkType;
  87186. begin
  87187. Result:=ReadJSPropertyUnicodeString('type');
  87188. end;
  87189. function TJSEncodedVideoChunk._Gettimestamp: Int64;
  87190. begin
  87191. Result:=ReadJSPropertyInt64('timestamp');
  87192. end;
  87193. function TJSEncodedVideoChunk._Getduration: QWord;
  87194. begin
  87195. Result:=ReadJSPropertyInt64('duration');
  87196. end;
  87197. function TJSEncodedVideoChunk._GetbyteLength: Cardinal;
  87198. begin
  87199. Result:=ReadJSPropertyInt64('byteLength');
  87200. end;
  87201. constructor TJSEncodedVideoChunk.Create(const aInit: TJSEncodedVideoChunkInit);
  87202. begin
  87203. JOBCreate([aInit]);
  87204. end;
  87205. procedure TJSEncodedVideoChunk.copyTo(aDestination: IJSArrayBuffer);
  87206. begin
  87207. InvokeJSNoResult('copyTo',[aDestination]);
  87208. end;
  87209. procedure TJSEncodedVideoChunk.copyTo(aDestination: IJSArrayBufferView);
  87210. begin
  87211. InvokeJSNoResult('copyTo',[aDestination]);
  87212. end;
  87213. class function TJSEncodedVideoChunk.JSClassName: UnicodeString;
  87214. begin
  87215. Result:='EncodedVideoChunk';
  87216. end;
  87217. class function TJSEncodedVideoChunk.Cast(const Intf: IJSObject): IJSEncodedVideoChunk;
  87218. begin
  87219. Result:=TJSEncodedVideoChunk.JOBCast(Intf);
  87220. end;
  87221. function TJSEncodedVideoChunkInit._Gettype_: TEncodedVideoChunkType;
  87222. begin
  87223. Result:=ReadJSPropertyUnicodeString('type');
  87224. end;
  87225. function TJSEncodedVideoChunkInit._Gettimestamp: Int64;
  87226. begin
  87227. Result:=ReadJSPropertyInt64('timestamp');
  87228. end;
  87229. function TJSEncodedVideoChunkInit._Getduration: QWord;
  87230. begin
  87231. Result:=ReadJSPropertyInt64('duration');
  87232. end;
  87233. function TJSEncodedVideoChunkInit._Getdata: TEncodedVideoChunkInit_data_Type;
  87234. begin
  87235. Result:=ReadJSPropertyVariant('data');
  87236. end;
  87237. procedure TJSEncodedVideoChunkInit._Settype_(const aValue : TEncodedVideoChunkType);
  87238. begin
  87239. WriteJSPropertyUnicodeString('type',aValue);
  87240. end;
  87241. procedure TJSEncodedVideoChunkInit._Settimestamp(const aValue : Int64);
  87242. begin
  87243. WriteJSPropertyDouble('timestamp',aValue);
  87244. end;
  87245. procedure TJSEncodedVideoChunkInit._Setduration(const aValue : QWord);
  87246. begin
  87247. WriteJSPropertyDouble('duration',aValue);
  87248. end;
  87249. procedure TJSEncodedVideoChunkInit._Setdata(const aValue : TEncodedVideoChunkInit_data_Type);
  87250. begin
  87251. WriteJSPropertyVariant('data',aValue);
  87252. end;
  87253. class function TJSEncodedVideoChunkInit.JSClassName: UnicodeString;
  87254. begin
  87255. Result:='Object';
  87256. end;
  87257. class function TJSEncodedVideoChunkInit.Cast(const Intf: IJSObject): IJSEncodedVideoChunkInit;
  87258. begin
  87259. Result:=TJSEncodedVideoChunkInit.JOBCast(Intf);
  87260. end;
  87261. function TJSErrorEvent._Getmessage: UnicodeString;
  87262. begin
  87263. Result:=ReadJSPropertyUnicodeString('message');
  87264. end;
  87265. function TJSErrorEvent._Getfilename: UnicodeString;
  87266. begin
  87267. Result:=ReadJSPropertyUnicodeString('filename');
  87268. end;
  87269. function TJSErrorEvent._Getlineno: Cardinal;
  87270. begin
  87271. Result:=ReadJSPropertyInt64('lineno');
  87272. end;
  87273. function TJSErrorEvent._Getcolno: Cardinal;
  87274. begin
  87275. Result:=ReadJSPropertyInt64('colno');
  87276. end;
  87277. function TJSErrorEvent._Geterror: Variant;
  87278. begin
  87279. Result:=ReadJSPropertyVariant('error');
  87280. end;
  87281. constructor TJSErrorEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSErrorEventInit);
  87282. begin
  87283. JOBCreate([aType_,aEventInitDict]);
  87284. end;
  87285. constructor TJSErrorEvent.Create(const aType_: UnicodeString);
  87286. begin
  87287. JOBCreate([aType_]);
  87288. end;
  87289. class function TJSErrorEvent.JSClassName: UnicodeString;
  87290. begin
  87291. Result:='ErrorEvent';
  87292. end;
  87293. class function TJSErrorEvent.Cast(const Intf: IJSObject): IJSErrorEvent;
  87294. begin
  87295. Result:=TJSErrorEvent.JOBCast(Intf);
  87296. end;
  87297. function TJSErrorEventInit._Getmessage: UnicodeString;
  87298. begin
  87299. Result:=ReadJSPropertyUnicodeString('message');
  87300. end;
  87301. function TJSErrorEventInit._Getfilename: UnicodeString;
  87302. begin
  87303. Result:=ReadJSPropertyUnicodeString('filename');
  87304. end;
  87305. function TJSErrorEventInit._Getlineno: Cardinal;
  87306. begin
  87307. Result:=ReadJSPropertyInt64('lineno');
  87308. end;
  87309. function TJSErrorEventInit._Getcolno: Cardinal;
  87310. begin
  87311. Result:=ReadJSPropertyInt64('colno');
  87312. end;
  87313. function TJSErrorEventInit._Geterror: Variant;
  87314. begin
  87315. Result:=ReadJSPropertyVariant('error');
  87316. end;
  87317. procedure TJSErrorEventInit._Setmessage(const aValue : UnicodeString);
  87318. begin
  87319. WriteJSPropertyUnicodeString('message',aValue);
  87320. end;
  87321. procedure TJSErrorEventInit._Setfilename(const aValue : UnicodeString);
  87322. begin
  87323. WriteJSPropertyUnicodeString('filename',aValue);
  87324. end;
  87325. procedure TJSErrorEventInit._Setlineno(const aValue : Cardinal);
  87326. begin
  87327. WriteJSPropertyDouble('lineno',aValue);
  87328. end;
  87329. procedure TJSErrorEventInit._Setcolno(const aValue : Cardinal);
  87330. begin
  87331. WriteJSPropertyDouble('colno',aValue);
  87332. end;
  87333. procedure TJSErrorEventInit._Seterror(const aValue : Variant);
  87334. begin
  87335. WriteJSPropertyVariant('error',aValue);
  87336. end;
  87337. class function TJSErrorEventInit.JSClassName: UnicodeString;
  87338. begin
  87339. Result:='Object';
  87340. end;
  87341. class function TJSErrorEventInit.Cast(const Intf: IJSObject): IJSErrorEventInit;
  87342. begin
  87343. Result:=TJSErrorEventInit.JOBCast(Intf);
  87344. end;
  87345. function TJSEvent._Gettype_: UnicodeString;
  87346. begin
  87347. Result:=ReadJSPropertyUnicodeString('type');
  87348. end;
  87349. function TJSEvent._Gettarget: IJSEventTarget;
  87350. begin
  87351. Result:=ReadJSPropertyObject('target',TJSEventTarget) as IJSEventTarget;
  87352. end;
  87353. function TJSEvent._GetcurrentTarget: IJSEventTarget;
  87354. begin
  87355. Result:=ReadJSPropertyObject('currentTarget',TJSEventTarget) as IJSEventTarget;
  87356. end;
  87357. function TJSEvent._GeteventPhase: Word;
  87358. begin
  87359. Result:=ReadJSPropertyLongInt('eventPhase');
  87360. end;
  87361. function TJSEvent._Getbubbles: Boolean;
  87362. begin
  87363. Result:=ReadJSPropertyBoolean('bubbles');
  87364. end;
  87365. function TJSEvent._Getcancelable: Boolean;
  87366. begin
  87367. Result:=ReadJSPropertyBoolean('cancelable');
  87368. end;
  87369. function TJSEvent._GetreturnValue: Boolean;
  87370. begin
  87371. Result:=ReadJSPropertyBoolean('returnValue');
  87372. end;
  87373. function TJSEvent._GetdefaultPrevented: Boolean;
  87374. begin
  87375. Result:=ReadJSPropertyBoolean('defaultPrevented');
  87376. end;
  87377. function TJSEvent._Getcomposed: Boolean;
  87378. begin
  87379. Result:=ReadJSPropertyBoolean('composed');
  87380. end;
  87381. function TJSEvent._GetisTrusted: Boolean;
  87382. begin
  87383. Result:=ReadJSPropertyBoolean('isTrusted');
  87384. end;
  87385. function TJSEvent._GettimeStamp: TDOMHighResTimeStamp;
  87386. begin
  87387. Result:=ReadJSPropertyDouble('timeStamp');
  87388. end;
  87389. function TJSEvent._GetcancelBubble: Boolean;
  87390. begin
  87391. Result:=ReadJSPropertyBoolean('cancelBubble');
  87392. end;
  87393. function TJSEvent._GetoriginalTarget: IJSEventTarget;
  87394. begin
  87395. Result:=ReadJSPropertyObject('originalTarget',TJSEventTarget) as IJSEventTarget;
  87396. end;
  87397. function TJSEvent._GetexplicitOriginalTarget: IJSEventTarget;
  87398. begin
  87399. Result:=ReadJSPropertyObject('explicitOriginalTarget',TJSEventTarget) as IJSEventTarget;
  87400. end;
  87401. procedure TJSEvent._SetreturnValue(const aValue : Boolean);
  87402. begin
  87403. WriteJSPropertyBoolean('returnValue',aValue);
  87404. end;
  87405. procedure TJSEvent._SetcancelBubble(const aValue : Boolean);
  87406. begin
  87407. WriteJSPropertyBoolean('cancelBubble',aValue);
  87408. end;
  87409. constructor TJSEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSEventInit);
  87410. begin
  87411. JOBCreate([aType_,aEventInitDict]);
  87412. end;
  87413. constructor TJSEvent.Create(const aType_: UnicodeString);
  87414. begin
  87415. JOBCreate([aType_]);
  87416. end;
  87417. function TJSEvent.composedPath: TJSEventTargetDynArray;
  87418. begin
  87419. Result:=InvokeJSObjectResult('composedPath',[],TJSArray) as TJSEventTargetDynArray;
  87420. end;
  87421. procedure TJSEvent.stopPropagation;
  87422. begin
  87423. InvokeJSNoResult('stopPropagation',[]);
  87424. end;
  87425. procedure TJSEvent.stopImmediatePropagation;
  87426. begin
  87427. InvokeJSNoResult('stopImmediatePropagation',[]);
  87428. end;
  87429. procedure TJSEvent.preventDefault;
  87430. begin
  87431. InvokeJSNoResult('preventDefault',[]);
  87432. end;
  87433. procedure TJSEvent.initEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean);
  87434. begin
  87435. InvokeJSNoResult('initEvent',[aType_,aBubbles,aCancelable]);
  87436. end;
  87437. procedure TJSEvent.initEvent(const aType_: UnicodeString);
  87438. begin
  87439. InvokeJSNoResult('initEvent',[aType_]);
  87440. end;
  87441. procedure TJSEvent.initEvent(const aType_: UnicodeString; aBubbles: Boolean);
  87442. begin
  87443. InvokeJSNoResult('initEvent',[aType_,aBubbles]);
  87444. end;
  87445. class function TJSEvent.JSClassName: UnicodeString;
  87446. begin
  87447. Result:='Event';
  87448. end;
  87449. class function TJSEvent.Cast(const Intf: IJSObject): IJSEvent;
  87450. begin
  87451. Result:=TJSEvent.JOBCast(Intf);
  87452. end;
  87453. function TJSEventInit._Getbubbles: Boolean;
  87454. begin
  87455. Result:=ReadJSPropertyBoolean('bubbles');
  87456. end;
  87457. function TJSEventInit._Getcancelable: Boolean;
  87458. begin
  87459. Result:=ReadJSPropertyBoolean('cancelable');
  87460. end;
  87461. function TJSEventInit._Getcomposed: Boolean;
  87462. begin
  87463. Result:=ReadJSPropertyBoolean('composed');
  87464. end;
  87465. procedure TJSEventInit._Setbubbles(const aValue : Boolean);
  87466. begin
  87467. WriteJSPropertyBoolean('bubbles',aValue);
  87468. end;
  87469. procedure TJSEventInit._Setcancelable(const aValue : Boolean);
  87470. begin
  87471. WriteJSPropertyBoolean('cancelable',aValue);
  87472. end;
  87473. procedure TJSEventInit._Setcomposed(const aValue : Boolean);
  87474. begin
  87475. WriteJSPropertyBoolean('composed',aValue);
  87476. end;
  87477. class function TJSEventInit.JSClassName: UnicodeString;
  87478. begin
  87479. Result:='Object';
  87480. end;
  87481. class function TJSEventInit.Cast(const Intf: IJSObject): IJSEventInit;
  87482. begin
  87483. Result:=TJSEventInit.JOBCast(Intf);
  87484. end;
  87485. function TJSGlobalEventHandlers._Getonabort: TEventHandler;
  87486. begin
  87487. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  87488. end;
  87489. function TJSGlobalEventHandlers._Getonblur: TEventHandler;
  87490. begin
  87491. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onblur')));
  87492. end;
  87493. function TJSGlobalEventHandlers._Getonfocus: TEventHandler;
  87494. begin
  87495. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfocus')));
  87496. end;
  87497. function TJSGlobalEventHandlers._Getoncancel: TEventHandler;
  87498. begin
  87499. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncancel')));
  87500. end;
  87501. function TJSGlobalEventHandlers._Getonauxclick: TEventHandler;
  87502. begin
  87503. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onauxclick')));
  87504. end;
  87505. function TJSGlobalEventHandlers._Getonbeforeinput: TEventHandler;
  87506. begin
  87507. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforeinput')));
  87508. end;
  87509. function TJSGlobalEventHandlers._Getonbeforetoggle: TEventHandler;
  87510. begin
  87511. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforetoggle')));
  87512. end;
  87513. function TJSGlobalEventHandlers._Getoncanplay: TEventHandler;
  87514. begin
  87515. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplay')));
  87516. end;
  87517. function TJSGlobalEventHandlers._Getoncanplaythrough: TEventHandler;
  87518. begin
  87519. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplaythrough')));
  87520. end;
  87521. function TJSGlobalEventHandlers._Getonchange: TEventHandler;
  87522. begin
  87523. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  87524. end;
  87525. function TJSGlobalEventHandlers._Getonclick: TEventHandler;
  87526. begin
  87527. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclick')));
  87528. end;
  87529. function TJSGlobalEventHandlers._Getonclose: TEventHandler;
  87530. begin
  87531. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclose')));
  87532. end;
  87533. function TJSGlobalEventHandlers._Getoncontextlost: TEventHandler;
  87534. begin
  87535. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextlost')));
  87536. end;
  87537. function TJSGlobalEventHandlers._Getoncontextmenu: TEventHandler;
  87538. begin
  87539. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextmenu')));
  87540. end;
  87541. function TJSGlobalEventHandlers._Getoncontextrestored: TEventHandler;
  87542. begin
  87543. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextrestored')));
  87544. end;
  87545. function TJSGlobalEventHandlers._Getoncopy: TEventHandler;
  87546. begin
  87547. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncopy')));
  87548. end;
  87549. function TJSGlobalEventHandlers._Getoncuechange: TEventHandler;
  87550. begin
  87551. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncuechange')));
  87552. end;
  87553. function TJSGlobalEventHandlers._Getoncut: TEventHandler;
  87554. begin
  87555. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncut')));
  87556. end;
  87557. function TJSGlobalEventHandlers._Getondblclick: TEventHandler;
  87558. begin
  87559. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondblclick')));
  87560. end;
  87561. function TJSGlobalEventHandlers._Getondrag: TEventHandler;
  87562. begin
  87563. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrag')));
  87564. end;
  87565. function TJSGlobalEventHandlers._Getondragend: TEventHandler;
  87566. begin
  87567. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragend')));
  87568. end;
  87569. function TJSGlobalEventHandlers._Getondragenter: TEventHandler;
  87570. begin
  87571. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragenter')));
  87572. end;
  87573. function TJSGlobalEventHandlers._Getondragexit: TEventHandler;
  87574. begin
  87575. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragexit')));
  87576. end;
  87577. function TJSGlobalEventHandlers._Getondragleave: TEventHandler;
  87578. begin
  87579. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragleave')));
  87580. end;
  87581. function TJSGlobalEventHandlers._Getondragover: TEventHandler;
  87582. begin
  87583. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragover')));
  87584. end;
  87585. function TJSGlobalEventHandlers._Getondragstart: TEventHandler;
  87586. begin
  87587. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragstart')));
  87588. end;
  87589. function TJSGlobalEventHandlers._Getondrop: TEventHandler;
  87590. begin
  87591. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrop')));
  87592. end;
  87593. function TJSGlobalEventHandlers._Getondurationchange: TEventHandler;
  87594. begin
  87595. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondurationchange')));
  87596. end;
  87597. function TJSGlobalEventHandlers._Getonemptied: TEventHandler;
  87598. begin
  87599. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onemptied')));
  87600. end;
  87601. function TJSGlobalEventHandlers._Getonended: TEventHandler;
  87602. begin
  87603. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onended')));
  87604. end;
  87605. function TJSGlobalEventHandlers._Getonformdata: TEventHandler;
  87606. begin
  87607. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onformdata')));
  87608. end;
  87609. function TJSGlobalEventHandlers._Getoninput: TEventHandler;
  87610. begin
  87611. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninput')));
  87612. end;
  87613. function TJSGlobalEventHandlers._Getoninvalid: TEventHandler;
  87614. begin
  87615. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninvalid')));
  87616. end;
  87617. function TJSGlobalEventHandlers._Getonkeydown: TEventHandler;
  87618. begin
  87619. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeydown')));
  87620. end;
  87621. function TJSGlobalEventHandlers._Getonkeypress: TEventHandler;
  87622. begin
  87623. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeypress')));
  87624. end;
  87625. function TJSGlobalEventHandlers._Getonkeyup: TEventHandler;
  87626. begin
  87627. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeyup')));
  87628. end;
  87629. function TJSGlobalEventHandlers._Getonload: TEventHandler;
  87630. begin
  87631. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onload')));
  87632. end;
  87633. function TJSGlobalEventHandlers._Getonloadeddata: TEventHandler;
  87634. begin
  87635. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadeddata')));
  87636. end;
  87637. function TJSGlobalEventHandlers._Getonloadedmetadata: TEventHandler;
  87638. begin
  87639. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadedmetadata')));
  87640. end;
  87641. function TJSGlobalEventHandlers._Getonloadstart: TEventHandler;
  87642. begin
  87643. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadstart')));
  87644. end;
  87645. function TJSGlobalEventHandlers._Getonmousedown: TEventHandler;
  87646. begin
  87647. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousedown')));
  87648. end;
  87649. function TJSGlobalEventHandlers._Getonmouseenter: TEventHandler;
  87650. begin
  87651. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseenter')));
  87652. end;
  87653. function TJSGlobalEventHandlers._Getonmouseleave: TEventHandler;
  87654. begin
  87655. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseleave')));
  87656. end;
  87657. function TJSGlobalEventHandlers._Getonmousemove: TEventHandler;
  87658. begin
  87659. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousemove')));
  87660. end;
  87661. function TJSGlobalEventHandlers._Getonmouseout: TEventHandler;
  87662. begin
  87663. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseout')));
  87664. end;
  87665. function TJSGlobalEventHandlers._Getonmouseover: TEventHandler;
  87666. begin
  87667. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseover')));
  87668. end;
  87669. function TJSGlobalEventHandlers._Getonmouseup: TEventHandler;
  87670. begin
  87671. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseup')));
  87672. end;
  87673. function TJSGlobalEventHandlers._Getonwheel: TEventHandler;
  87674. begin
  87675. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwheel')));
  87676. end;
  87677. function TJSGlobalEventHandlers._Getonpaste: TEventHandler;
  87678. begin
  87679. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpaste')));
  87680. end;
  87681. function TJSGlobalEventHandlers._Getonpause: TEventHandler;
  87682. begin
  87683. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpause')));
  87684. end;
  87685. function TJSGlobalEventHandlers._Getonplay: TEventHandler;
  87686. begin
  87687. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplay')));
  87688. end;
  87689. function TJSGlobalEventHandlers._Getonplaying: TEventHandler;
  87690. begin
  87691. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplaying')));
  87692. end;
  87693. function TJSGlobalEventHandlers._Getonprogress: TEventHandler;
  87694. begin
  87695. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onprogress')));
  87696. end;
  87697. function TJSGlobalEventHandlers._Getonratechange: TEventHandler;
  87698. begin
  87699. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onratechange')));
  87700. end;
  87701. function TJSGlobalEventHandlers._Getonreset: TEventHandler;
  87702. begin
  87703. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onreset')));
  87704. end;
  87705. function TJSGlobalEventHandlers._Getonresize: TEventHandler;
  87706. begin
  87707. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresize')));
  87708. end;
  87709. function TJSGlobalEventHandlers._Getonscroll: TEventHandler;
  87710. begin
  87711. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscroll')));
  87712. end;
  87713. function TJSGlobalEventHandlers._Getonscrollend: TEventHandler;
  87714. begin
  87715. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscrollend')));
  87716. end;
  87717. function TJSGlobalEventHandlers._Getonsecuritypolicyviolation: TEventHandler;
  87718. begin
  87719. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsecuritypolicyviolation')));
  87720. end;
  87721. function TJSGlobalEventHandlers._Getonseeked: TEventHandler;
  87722. begin
  87723. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeked')));
  87724. end;
  87725. function TJSGlobalEventHandlers._Getonseeking: TEventHandler;
  87726. begin
  87727. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeking')));
  87728. end;
  87729. function TJSGlobalEventHandlers._Getonselect: TEventHandler;
  87730. begin
  87731. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselect')));
  87732. end;
  87733. function TJSGlobalEventHandlers._Getonslotchange: TEventHandler;
  87734. begin
  87735. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onslotchange')));
  87736. end;
  87737. function TJSGlobalEventHandlers._Getonstalled: TEventHandler;
  87738. begin
  87739. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstalled')));
  87740. end;
  87741. function TJSGlobalEventHandlers._Getonsubmit: TEventHandler;
  87742. begin
  87743. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsubmit')));
  87744. end;
  87745. function TJSGlobalEventHandlers._Getonsuspend: TEventHandler;
  87746. begin
  87747. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsuspend')));
  87748. end;
  87749. function TJSGlobalEventHandlers._Getontimeupdate: TEventHandler;
  87750. begin
  87751. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontimeupdate')));
  87752. end;
  87753. function TJSGlobalEventHandlers._Getonvolumechange: TEventHandler;
  87754. begin
  87755. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvolumechange')));
  87756. end;
  87757. function TJSGlobalEventHandlers._Getonwaiting: TEventHandler;
  87758. begin
  87759. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwaiting')));
  87760. end;
  87761. function TJSGlobalEventHandlers._Getonselectstart: TEventHandler;
  87762. begin
  87763. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectstart')));
  87764. end;
  87765. function TJSGlobalEventHandlers._Getonselectionchange: TEventHandler;
  87766. begin
  87767. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectionchange')));
  87768. end;
  87769. function TJSGlobalEventHandlers._Getontoggle: TEventHandler;
  87770. begin
  87771. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontoggle')));
  87772. end;
  87773. function TJSGlobalEventHandlers._Getonpointercancel: TEventHandler;
  87774. begin
  87775. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointercancel')));
  87776. end;
  87777. function TJSGlobalEventHandlers._Getonpointerdown: TEventHandler;
  87778. begin
  87779. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerdown')));
  87780. end;
  87781. function TJSGlobalEventHandlers._Getonpointerup: TEventHandler;
  87782. begin
  87783. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerup')));
  87784. end;
  87785. function TJSGlobalEventHandlers._Getonpointermove: TEventHandler;
  87786. begin
  87787. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointermove')));
  87788. end;
  87789. function TJSGlobalEventHandlers._Getonpointerout: TEventHandler;
  87790. begin
  87791. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerout')));
  87792. end;
  87793. function TJSGlobalEventHandlers._Getonpointerover: TEventHandler;
  87794. begin
  87795. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerover')));
  87796. end;
  87797. function TJSGlobalEventHandlers._Getonpointerenter: TEventHandler;
  87798. begin
  87799. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerenter')));
  87800. end;
  87801. function TJSGlobalEventHandlers._Getonpointerleave: TEventHandler;
  87802. begin
  87803. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerleave')));
  87804. end;
  87805. function TJSGlobalEventHandlers._Getongotpointercapture: TEventHandler;
  87806. begin
  87807. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongotpointercapture')));
  87808. end;
  87809. function TJSGlobalEventHandlers._Getonlostpointercapture: TEventHandler;
  87810. begin
  87811. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onlostpointercapture')));
  87812. end;
  87813. function TJSGlobalEventHandlers._Getonmozfullscreenchange: TEventHandler;
  87814. begin
  87815. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenchange')));
  87816. end;
  87817. function TJSGlobalEventHandlers._Getonmozfullscreenerror: TEventHandler;
  87818. begin
  87819. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenerror')));
  87820. end;
  87821. function TJSGlobalEventHandlers._Getonanimationcancel: TEventHandler;
  87822. begin
  87823. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationcancel')));
  87824. end;
  87825. function TJSGlobalEventHandlers._Getonanimationend: TEventHandler;
  87826. begin
  87827. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationend')));
  87828. end;
  87829. function TJSGlobalEventHandlers._Getonanimationiteration: TEventHandler;
  87830. begin
  87831. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationiteration')));
  87832. end;
  87833. function TJSGlobalEventHandlers._Getonanimationstart: TEventHandler;
  87834. begin
  87835. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationstart')));
  87836. end;
  87837. function TJSGlobalEventHandlers._Getontransitioncancel: TEventHandler;
  87838. begin
  87839. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitioncancel')));
  87840. end;
  87841. function TJSGlobalEventHandlers._Getontransitionend: TEventHandler;
  87842. begin
  87843. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionend')));
  87844. end;
  87845. function TJSGlobalEventHandlers._Getontransitionrun: TEventHandler;
  87846. begin
  87847. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionrun')));
  87848. end;
  87849. function TJSGlobalEventHandlers._Getontransitionstart: TEventHandler;
  87850. begin
  87851. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionstart')));
  87852. end;
  87853. function TJSGlobalEventHandlers._Getonwebkitanimationend: TEventHandler;
  87854. begin
  87855. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationend')));
  87856. end;
  87857. function TJSGlobalEventHandlers._Getonwebkitanimationiteration: TEventHandler;
  87858. begin
  87859. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationiteration')));
  87860. end;
  87861. function TJSGlobalEventHandlers._Getonwebkitanimationstart: TEventHandler;
  87862. begin
  87863. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationstart')));
  87864. end;
  87865. function TJSGlobalEventHandlers._Getonwebkittransitionend: TEventHandler;
  87866. begin
  87867. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkittransitionend')));
  87868. end;
  87869. procedure TJSGlobalEventHandlers._Setonabort(const aValue : TEventHandler);
  87870. begin
  87871. WriteJSPropertyMethod('onabort',TMethod(aValue));
  87872. end;
  87873. procedure TJSGlobalEventHandlers._Setonblur(const aValue : TEventHandler);
  87874. begin
  87875. WriteJSPropertyMethod('onblur',TMethod(aValue));
  87876. end;
  87877. procedure TJSGlobalEventHandlers._Setonfocus(const aValue : TEventHandler);
  87878. begin
  87879. WriteJSPropertyMethod('onfocus',TMethod(aValue));
  87880. end;
  87881. procedure TJSGlobalEventHandlers._Setoncancel(const aValue : TEventHandler);
  87882. begin
  87883. WriteJSPropertyMethod('oncancel',TMethod(aValue));
  87884. end;
  87885. procedure TJSGlobalEventHandlers._Setonauxclick(const aValue : TEventHandler);
  87886. begin
  87887. WriteJSPropertyMethod('onauxclick',TMethod(aValue));
  87888. end;
  87889. procedure TJSGlobalEventHandlers._Setonbeforeinput(const aValue : TEventHandler);
  87890. begin
  87891. WriteJSPropertyMethod('onbeforeinput',TMethod(aValue));
  87892. end;
  87893. procedure TJSGlobalEventHandlers._Setonbeforetoggle(const aValue : TEventHandler);
  87894. begin
  87895. WriteJSPropertyMethod('onbeforetoggle',TMethod(aValue));
  87896. end;
  87897. procedure TJSGlobalEventHandlers._Setoncanplay(const aValue : TEventHandler);
  87898. begin
  87899. WriteJSPropertyMethod('oncanplay',TMethod(aValue));
  87900. end;
  87901. procedure TJSGlobalEventHandlers._Setoncanplaythrough(const aValue : TEventHandler);
  87902. begin
  87903. WriteJSPropertyMethod('oncanplaythrough',TMethod(aValue));
  87904. end;
  87905. procedure TJSGlobalEventHandlers._Setonchange(const aValue : TEventHandler);
  87906. begin
  87907. WriteJSPropertyMethod('onchange',TMethod(aValue));
  87908. end;
  87909. procedure TJSGlobalEventHandlers._Setonclick(const aValue : TEventHandler);
  87910. begin
  87911. WriteJSPropertyMethod('onclick',TMethod(aValue));
  87912. end;
  87913. procedure TJSGlobalEventHandlers._Setonclose(const aValue : TEventHandler);
  87914. begin
  87915. WriteJSPropertyMethod('onclose',TMethod(aValue));
  87916. end;
  87917. procedure TJSGlobalEventHandlers._Setoncontextlost(const aValue : TEventHandler);
  87918. begin
  87919. WriteJSPropertyMethod('oncontextlost',TMethod(aValue));
  87920. end;
  87921. procedure TJSGlobalEventHandlers._Setoncontextmenu(const aValue : TEventHandler);
  87922. begin
  87923. WriteJSPropertyMethod('oncontextmenu',TMethod(aValue));
  87924. end;
  87925. procedure TJSGlobalEventHandlers._Setoncontextrestored(const aValue : TEventHandler);
  87926. begin
  87927. WriteJSPropertyMethod('oncontextrestored',TMethod(aValue));
  87928. end;
  87929. procedure TJSGlobalEventHandlers._Setoncopy(const aValue : TEventHandler);
  87930. begin
  87931. WriteJSPropertyMethod('oncopy',TMethod(aValue));
  87932. end;
  87933. procedure TJSGlobalEventHandlers._Setoncuechange(const aValue : TEventHandler);
  87934. begin
  87935. WriteJSPropertyMethod('oncuechange',TMethod(aValue));
  87936. end;
  87937. procedure TJSGlobalEventHandlers._Setoncut(const aValue : TEventHandler);
  87938. begin
  87939. WriteJSPropertyMethod('oncut',TMethod(aValue));
  87940. end;
  87941. procedure TJSGlobalEventHandlers._Setondblclick(const aValue : TEventHandler);
  87942. begin
  87943. WriteJSPropertyMethod('ondblclick',TMethod(aValue));
  87944. end;
  87945. procedure TJSGlobalEventHandlers._Setondrag(const aValue : TEventHandler);
  87946. begin
  87947. WriteJSPropertyMethod('ondrag',TMethod(aValue));
  87948. end;
  87949. procedure TJSGlobalEventHandlers._Setondragend(const aValue : TEventHandler);
  87950. begin
  87951. WriteJSPropertyMethod('ondragend',TMethod(aValue));
  87952. end;
  87953. procedure TJSGlobalEventHandlers._Setondragenter(const aValue : TEventHandler);
  87954. begin
  87955. WriteJSPropertyMethod('ondragenter',TMethod(aValue));
  87956. end;
  87957. procedure TJSGlobalEventHandlers._Setondragexit(const aValue : TEventHandler);
  87958. begin
  87959. WriteJSPropertyMethod('ondragexit',TMethod(aValue));
  87960. end;
  87961. procedure TJSGlobalEventHandlers._Setondragleave(const aValue : TEventHandler);
  87962. begin
  87963. WriteJSPropertyMethod('ondragleave',TMethod(aValue));
  87964. end;
  87965. procedure TJSGlobalEventHandlers._Setondragover(const aValue : TEventHandler);
  87966. begin
  87967. WriteJSPropertyMethod('ondragover',TMethod(aValue));
  87968. end;
  87969. procedure TJSGlobalEventHandlers._Setondragstart(const aValue : TEventHandler);
  87970. begin
  87971. WriteJSPropertyMethod('ondragstart',TMethod(aValue));
  87972. end;
  87973. procedure TJSGlobalEventHandlers._Setondrop(const aValue : TEventHandler);
  87974. begin
  87975. WriteJSPropertyMethod('ondrop',TMethod(aValue));
  87976. end;
  87977. procedure TJSGlobalEventHandlers._Setondurationchange(const aValue : TEventHandler);
  87978. begin
  87979. WriteJSPropertyMethod('ondurationchange',TMethod(aValue));
  87980. end;
  87981. procedure TJSGlobalEventHandlers._Setonemptied(const aValue : TEventHandler);
  87982. begin
  87983. WriteJSPropertyMethod('onemptied',TMethod(aValue));
  87984. end;
  87985. procedure TJSGlobalEventHandlers._Setonended(const aValue : TEventHandler);
  87986. begin
  87987. WriteJSPropertyMethod('onended',TMethod(aValue));
  87988. end;
  87989. procedure TJSGlobalEventHandlers._Setonformdata(const aValue : TEventHandler);
  87990. begin
  87991. WriteJSPropertyMethod('onformdata',TMethod(aValue));
  87992. end;
  87993. procedure TJSGlobalEventHandlers._Setoninput(const aValue : TEventHandler);
  87994. begin
  87995. WriteJSPropertyMethod('oninput',TMethod(aValue));
  87996. end;
  87997. procedure TJSGlobalEventHandlers._Setoninvalid(const aValue : TEventHandler);
  87998. begin
  87999. WriteJSPropertyMethod('oninvalid',TMethod(aValue));
  88000. end;
  88001. procedure TJSGlobalEventHandlers._Setonkeydown(const aValue : TEventHandler);
  88002. begin
  88003. WriteJSPropertyMethod('onkeydown',TMethod(aValue));
  88004. end;
  88005. procedure TJSGlobalEventHandlers._Setonkeypress(const aValue : TEventHandler);
  88006. begin
  88007. WriteJSPropertyMethod('onkeypress',TMethod(aValue));
  88008. end;
  88009. procedure TJSGlobalEventHandlers._Setonkeyup(const aValue : TEventHandler);
  88010. begin
  88011. WriteJSPropertyMethod('onkeyup',TMethod(aValue));
  88012. end;
  88013. procedure TJSGlobalEventHandlers._Setonload(const aValue : TEventHandler);
  88014. begin
  88015. WriteJSPropertyMethod('onload',TMethod(aValue));
  88016. end;
  88017. procedure TJSGlobalEventHandlers._Setonloadeddata(const aValue : TEventHandler);
  88018. begin
  88019. WriteJSPropertyMethod('onloadeddata',TMethod(aValue));
  88020. end;
  88021. procedure TJSGlobalEventHandlers._Setonloadedmetadata(const aValue : TEventHandler);
  88022. begin
  88023. WriteJSPropertyMethod('onloadedmetadata',TMethod(aValue));
  88024. end;
  88025. procedure TJSGlobalEventHandlers._Setonloadstart(const aValue : TEventHandler);
  88026. begin
  88027. WriteJSPropertyMethod('onloadstart',TMethod(aValue));
  88028. end;
  88029. procedure TJSGlobalEventHandlers._Setonmousedown(const aValue : TEventHandler);
  88030. begin
  88031. WriteJSPropertyMethod('onmousedown',TMethod(aValue));
  88032. end;
  88033. procedure TJSGlobalEventHandlers._Setonmouseenter(const aValue : TEventHandler);
  88034. begin
  88035. WriteJSPropertyMethod('onmouseenter',TMethod(aValue));
  88036. end;
  88037. procedure TJSGlobalEventHandlers._Setonmouseleave(const aValue : TEventHandler);
  88038. begin
  88039. WriteJSPropertyMethod('onmouseleave',TMethod(aValue));
  88040. end;
  88041. procedure TJSGlobalEventHandlers._Setonmousemove(const aValue : TEventHandler);
  88042. begin
  88043. WriteJSPropertyMethod('onmousemove',TMethod(aValue));
  88044. end;
  88045. procedure TJSGlobalEventHandlers._Setonmouseout(const aValue : TEventHandler);
  88046. begin
  88047. WriteJSPropertyMethod('onmouseout',TMethod(aValue));
  88048. end;
  88049. procedure TJSGlobalEventHandlers._Setonmouseover(const aValue : TEventHandler);
  88050. begin
  88051. WriteJSPropertyMethod('onmouseover',TMethod(aValue));
  88052. end;
  88053. procedure TJSGlobalEventHandlers._Setonmouseup(const aValue : TEventHandler);
  88054. begin
  88055. WriteJSPropertyMethod('onmouseup',TMethod(aValue));
  88056. end;
  88057. procedure TJSGlobalEventHandlers._Setonwheel(const aValue : TEventHandler);
  88058. begin
  88059. WriteJSPropertyMethod('onwheel',TMethod(aValue));
  88060. end;
  88061. procedure TJSGlobalEventHandlers._Setonpaste(const aValue : TEventHandler);
  88062. begin
  88063. WriteJSPropertyMethod('onpaste',TMethod(aValue));
  88064. end;
  88065. procedure TJSGlobalEventHandlers._Setonpause(const aValue : TEventHandler);
  88066. begin
  88067. WriteJSPropertyMethod('onpause',TMethod(aValue));
  88068. end;
  88069. procedure TJSGlobalEventHandlers._Setonplay(const aValue : TEventHandler);
  88070. begin
  88071. WriteJSPropertyMethod('onplay',TMethod(aValue));
  88072. end;
  88073. procedure TJSGlobalEventHandlers._Setonplaying(const aValue : TEventHandler);
  88074. begin
  88075. WriteJSPropertyMethod('onplaying',TMethod(aValue));
  88076. end;
  88077. procedure TJSGlobalEventHandlers._Setonprogress(const aValue : TEventHandler);
  88078. begin
  88079. WriteJSPropertyMethod('onprogress',TMethod(aValue));
  88080. end;
  88081. procedure TJSGlobalEventHandlers._Setonratechange(const aValue : TEventHandler);
  88082. begin
  88083. WriteJSPropertyMethod('onratechange',TMethod(aValue));
  88084. end;
  88085. procedure TJSGlobalEventHandlers._Setonreset(const aValue : TEventHandler);
  88086. begin
  88087. WriteJSPropertyMethod('onreset',TMethod(aValue));
  88088. end;
  88089. procedure TJSGlobalEventHandlers._Setonresize(const aValue : TEventHandler);
  88090. begin
  88091. WriteJSPropertyMethod('onresize',TMethod(aValue));
  88092. end;
  88093. procedure TJSGlobalEventHandlers._Setonscroll(const aValue : TEventHandler);
  88094. begin
  88095. WriteJSPropertyMethod('onscroll',TMethod(aValue));
  88096. end;
  88097. procedure TJSGlobalEventHandlers._Setonscrollend(const aValue : TEventHandler);
  88098. begin
  88099. WriteJSPropertyMethod('onscrollend',TMethod(aValue));
  88100. end;
  88101. procedure TJSGlobalEventHandlers._Setonsecuritypolicyviolation(const aValue : TEventHandler);
  88102. begin
  88103. WriteJSPropertyMethod('onsecuritypolicyviolation',TMethod(aValue));
  88104. end;
  88105. procedure TJSGlobalEventHandlers._Setonseeked(const aValue : TEventHandler);
  88106. begin
  88107. WriteJSPropertyMethod('onseeked',TMethod(aValue));
  88108. end;
  88109. procedure TJSGlobalEventHandlers._Setonseeking(const aValue : TEventHandler);
  88110. begin
  88111. WriteJSPropertyMethod('onseeking',TMethod(aValue));
  88112. end;
  88113. procedure TJSGlobalEventHandlers._Setonselect(const aValue : TEventHandler);
  88114. begin
  88115. WriteJSPropertyMethod('onselect',TMethod(aValue));
  88116. end;
  88117. procedure TJSGlobalEventHandlers._Setonslotchange(const aValue : TEventHandler);
  88118. begin
  88119. WriteJSPropertyMethod('onslotchange',TMethod(aValue));
  88120. end;
  88121. procedure TJSGlobalEventHandlers._Setonstalled(const aValue : TEventHandler);
  88122. begin
  88123. WriteJSPropertyMethod('onstalled',TMethod(aValue));
  88124. end;
  88125. procedure TJSGlobalEventHandlers._Setonsubmit(const aValue : TEventHandler);
  88126. begin
  88127. WriteJSPropertyMethod('onsubmit',TMethod(aValue));
  88128. end;
  88129. procedure TJSGlobalEventHandlers._Setonsuspend(const aValue : TEventHandler);
  88130. begin
  88131. WriteJSPropertyMethod('onsuspend',TMethod(aValue));
  88132. end;
  88133. procedure TJSGlobalEventHandlers._Setontimeupdate(const aValue : TEventHandler);
  88134. begin
  88135. WriteJSPropertyMethod('ontimeupdate',TMethod(aValue));
  88136. end;
  88137. procedure TJSGlobalEventHandlers._Setonvolumechange(const aValue : TEventHandler);
  88138. begin
  88139. WriteJSPropertyMethod('onvolumechange',TMethod(aValue));
  88140. end;
  88141. procedure TJSGlobalEventHandlers._Setonwaiting(const aValue : TEventHandler);
  88142. begin
  88143. WriteJSPropertyMethod('onwaiting',TMethod(aValue));
  88144. end;
  88145. procedure TJSGlobalEventHandlers._Setonselectstart(const aValue : TEventHandler);
  88146. begin
  88147. WriteJSPropertyMethod('onselectstart',TMethod(aValue));
  88148. end;
  88149. procedure TJSGlobalEventHandlers._Setonselectionchange(const aValue : TEventHandler);
  88150. begin
  88151. WriteJSPropertyMethod('onselectionchange',TMethod(aValue));
  88152. end;
  88153. procedure TJSGlobalEventHandlers._Setontoggle(const aValue : TEventHandler);
  88154. begin
  88155. WriteJSPropertyMethod('ontoggle',TMethod(aValue));
  88156. end;
  88157. procedure TJSGlobalEventHandlers._Setonpointercancel(const aValue : TEventHandler);
  88158. begin
  88159. WriteJSPropertyMethod('onpointercancel',TMethod(aValue));
  88160. end;
  88161. procedure TJSGlobalEventHandlers._Setonpointerdown(const aValue : TEventHandler);
  88162. begin
  88163. WriteJSPropertyMethod('onpointerdown',TMethod(aValue));
  88164. end;
  88165. procedure TJSGlobalEventHandlers._Setonpointerup(const aValue : TEventHandler);
  88166. begin
  88167. WriteJSPropertyMethod('onpointerup',TMethod(aValue));
  88168. end;
  88169. procedure TJSGlobalEventHandlers._Setonpointermove(const aValue : TEventHandler);
  88170. begin
  88171. WriteJSPropertyMethod('onpointermove',TMethod(aValue));
  88172. end;
  88173. procedure TJSGlobalEventHandlers._Setonpointerout(const aValue : TEventHandler);
  88174. begin
  88175. WriteJSPropertyMethod('onpointerout',TMethod(aValue));
  88176. end;
  88177. procedure TJSGlobalEventHandlers._Setonpointerover(const aValue : TEventHandler);
  88178. begin
  88179. WriteJSPropertyMethod('onpointerover',TMethod(aValue));
  88180. end;
  88181. procedure TJSGlobalEventHandlers._Setonpointerenter(const aValue : TEventHandler);
  88182. begin
  88183. WriteJSPropertyMethod('onpointerenter',TMethod(aValue));
  88184. end;
  88185. procedure TJSGlobalEventHandlers._Setonpointerleave(const aValue : TEventHandler);
  88186. begin
  88187. WriteJSPropertyMethod('onpointerleave',TMethod(aValue));
  88188. end;
  88189. procedure TJSGlobalEventHandlers._Setongotpointercapture(const aValue : TEventHandler);
  88190. begin
  88191. WriteJSPropertyMethod('ongotpointercapture',TMethod(aValue));
  88192. end;
  88193. procedure TJSGlobalEventHandlers._Setonlostpointercapture(const aValue : TEventHandler);
  88194. begin
  88195. WriteJSPropertyMethod('onlostpointercapture',TMethod(aValue));
  88196. end;
  88197. procedure TJSGlobalEventHandlers._Setonmozfullscreenchange(const aValue : TEventHandler);
  88198. begin
  88199. WriteJSPropertyMethod('onmozfullscreenchange',TMethod(aValue));
  88200. end;
  88201. procedure TJSGlobalEventHandlers._Setonmozfullscreenerror(const aValue : TEventHandler);
  88202. begin
  88203. WriteJSPropertyMethod('onmozfullscreenerror',TMethod(aValue));
  88204. end;
  88205. procedure TJSGlobalEventHandlers._Setonanimationcancel(const aValue : TEventHandler);
  88206. begin
  88207. WriteJSPropertyMethod('onanimationcancel',TMethod(aValue));
  88208. end;
  88209. procedure TJSGlobalEventHandlers._Setonanimationend(const aValue : TEventHandler);
  88210. begin
  88211. WriteJSPropertyMethod('onanimationend',TMethod(aValue));
  88212. end;
  88213. procedure TJSGlobalEventHandlers._Setonanimationiteration(const aValue : TEventHandler);
  88214. begin
  88215. WriteJSPropertyMethod('onanimationiteration',TMethod(aValue));
  88216. end;
  88217. procedure TJSGlobalEventHandlers._Setonanimationstart(const aValue : TEventHandler);
  88218. begin
  88219. WriteJSPropertyMethod('onanimationstart',TMethod(aValue));
  88220. end;
  88221. procedure TJSGlobalEventHandlers._Setontransitioncancel(const aValue : TEventHandler);
  88222. begin
  88223. WriteJSPropertyMethod('ontransitioncancel',TMethod(aValue));
  88224. end;
  88225. procedure TJSGlobalEventHandlers._Setontransitionend(const aValue : TEventHandler);
  88226. begin
  88227. WriteJSPropertyMethod('ontransitionend',TMethod(aValue));
  88228. end;
  88229. procedure TJSGlobalEventHandlers._Setontransitionrun(const aValue : TEventHandler);
  88230. begin
  88231. WriteJSPropertyMethod('ontransitionrun',TMethod(aValue));
  88232. end;
  88233. procedure TJSGlobalEventHandlers._Setontransitionstart(const aValue : TEventHandler);
  88234. begin
  88235. WriteJSPropertyMethod('ontransitionstart',TMethod(aValue));
  88236. end;
  88237. procedure TJSGlobalEventHandlers._Setonwebkitanimationend(const aValue : TEventHandler);
  88238. begin
  88239. WriteJSPropertyMethod('onwebkitanimationend',TMethod(aValue));
  88240. end;
  88241. procedure TJSGlobalEventHandlers._Setonwebkitanimationiteration(const aValue : TEventHandler);
  88242. begin
  88243. WriteJSPropertyMethod('onwebkitanimationiteration',TMethod(aValue));
  88244. end;
  88245. procedure TJSGlobalEventHandlers._Setonwebkitanimationstart(const aValue : TEventHandler);
  88246. begin
  88247. WriteJSPropertyMethod('onwebkitanimationstart',TMethod(aValue));
  88248. end;
  88249. procedure TJSGlobalEventHandlers._Setonwebkittransitionend(const aValue : TEventHandler);
  88250. begin
  88251. WriteJSPropertyMethod('onwebkittransitionend',TMethod(aValue));
  88252. end;
  88253. class function TJSGlobalEventHandlers.JSClassName: UnicodeString;
  88254. begin
  88255. Result:='GlobalEventHandlers';
  88256. end;
  88257. class function TJSGlobalEventHandlers.Cast(const Intf: IJSObject): IJSGlobalEventHandlers;
  88258. begin
  88259. Result:=TJSGlobalEventHandlers.JOBCast(Intf);
  88260. end;
  88261. function TJSWindowEventHandlers._Getonafterprint: TEventHandler;
  88262. begin
  88263. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onafterprint')));
  88264. end;
  88265. function TJSWindowEventHandlers._Getonbeforeprint: TEventHandler;
  88266. begin
  88267. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforeprint')));
  88268. end;
  88269. function TJSWindowEventHandlers._Getonbeforeunload: TOnBeforeUnloadEventHandler;
  88270. begin
  88271. Result:=(TOnBeforeUnloadEventHandlerNonNull(ReadJSPropertyMethod('onbeforeunload')));
  88272. end;
  88273. function TJSWindowEventHandlers._Getonhashchange: TEventHandler;
  88274. begin
  88275. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onhashchange')));
  88276. end;
  88277. function TJSWindowEventHandlers._Getonlanguagechange: TEventHandler;
  88278. begin
  88279. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onlanguagechange')));
  88280. end;
  88281. function TJSWindowEventHandlers._Getonmessage: TEventHandler;
  88282. begin
  88283. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  88284. end;
  88285. function TJSWindowEventHandlers._Getonmessageerror: TEventHandler;
  88286. begin
  88287. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessageerror')));
  88288. end;
  88289. function TJSWindowEventHandlers._Getonoffline: TEventHandler;
  88290. begin
  88291. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onoffline')));
  88292. end;
  88293. function TJSWindowEventHandlers._Getononline: TEventHandler;
  88294. begin
  88295. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ononline')));
  88296. end;
  88297. function TJSWindowEventHandlers._Getonpagehide: TEventHandler;
  88298. begin
  88299. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpagehide')));
  88300. end;
  88301. function TJSWindowEventHandlers._Getonpageshow: TEventHandler;
  88302. begin
  88303. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpageshow')));
  88304. end;
  88305. function TJSWindowEventHandlers._Getonpopstate: TEventHandler;
  88306. begin
  88307. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpopstate')));
  88308. end;
  88309. function TJSWindowEventHandlers._Getonrejectionhandled: TEventHandler;
  88310. begin
  88311. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onrejectionhandled')));
  88312. end;
  88313. function TJSWindowEventHandlers._Getonstorage: TEventHandler;
  88314. begin
  88315. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstorage')));
  88316. end;
  88317. function TJSWindowEventHandlers._Getonunhandledrejection: TEventHandler;
  88318. begin
  88319. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onunhandledrejection')));
  88320. end;
  88321. function TJSWindowEventHandlers._Getonunload: TEventHandler;
  88322. begin
  88323. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onunload')));
  88324. end;
  88325. function TJSWindowEventHandlers._Getongamepadconnected: TEventHandler;
  88326. begin
  88327. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongamepadconnected')));
  88328. end;
  88329. function TJSWindowEventHandlers._Getongamepaddisconnected: TEventHandler;
  88330. begin
  88331. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongamepaddisconnected')));
  88332. end;
  88333. procedure TJSWindowEventHandlers._Setonafterprint(const aValue : TEventHandler);
  88334. begin
  88335. WriteJSPropertyMethod('onafterprint',TMethod(aValue));
  88336. end;
  88337. procedure TJSWindowEventHandlers._Setonbeforeprint(const aValue : TEventHandler);
  88338. begin
  88339. WriteJSPropertyMethod('onbeforeprint',TMethod(aValue));
  88340. end;
  88341. procedure TJSWindowEventHandlers._Setonbeforeunload(const aValue : TOnBeforeUnloadEventHandler);
  88342. begin
  88343. WriteJSPropertyMethod('onbeforeunload',TMethod(aValue));
  88344. end;
  88345. procedure TJSWindowEventHandlers._Setonhashchange(const aValue : TEventHandler);
  88346. begin
  88347. WriteJSPropertyMethod('onhashchange',TMethod(aValue));
  88348. end;
  88349. procedure TJSWindowEventHandlers._Setonlanguagechange(const aValue : TEventHandler);
  88350. begin
  88351. WriteJSPropertyMethod('onlanguagechange',TMethod(aValue));
  88352. end;
  88353. procedure TJSWindowEventHandlers._Setonmessage(const aValue : TEventHandler);
  88354. begin
  88355. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  88356. end;
  88357. procedure TJSWindowEventHandlers._Setonmessageerror(const aValue : TEventHandler);
  88358. begin
  88359. WriteJSPropertyMethod('onmessageerror',TMethod(aValue));
  88360. end;
  88361. procedure TJSWindowEventHandlers._Setonoffline(const aValue : TEventHandler);
  88362. begin
  88363. WriteJSPropertyMethod('onoffline',TMethod(aValue));
  88364. end;
  88365. procedure TJSWindowEventHandlers._Setononline(const aValue : TEventHandler);
  88366. begin
  88367. WriteJSPropertyMethod('ononline',TMethod(aValue));
  88368. end;
  88369. procedure TJSWindowEventHandlers._Setonpagehide(const aValue : TEventHandler);
  88370. begin
  88371. WriteJSPropertyMethod('onpagehide',TMethod(aValue));
  88372. end;
  88373. procedure TJSWindowEventHandlers._Setonpageshow(const aValue : TEventHandler);
  88374. begin
  88375. WriteJSPropertyMethod('onpageshow',TMethod(aValue));
  88376. end;
  88377. procedure TJSWindowEventHandlers._Setonpopstate(const aValue : TEventHandler);
  88378. begin
  88379. WriteJSPropertyMethod('onpopstate',TMethod(aValue));
  88380. end;
  88381. procedure TJSWindowEventHandlers._Setonrejectionhandled(const aValue : TEventHandler);
  88382. begin
  88383. WriteJSPropertyMethod('onrejectionhandled',TMethod(aValue));
  88384. end;
  88385. procedure TJSWindowEventHandlers._Setonstorage(const aValue : TEventHandler);
  88386. begin
  88387. WriteJSPropertyMethod('onstorage',TMethod(aValue));
  88388. end;
  88389. procedure TJSWindowEventHandlers._Setonunhandledrejection(const aValue : TEventHandler);
  88390. begin
  88391. WriteJSPropertyMethod('onunhandledrejection',TMethod(aValue));
  88392. end;
  88393. procedure TJSWindowEventHandlers._Setonunload(const aValue : TEventHandler);
  88394. begin
  88395. WriteJSPropertyMethod('onunload',TMethod(aValue));
  88396. end;
  88397. procedure TJSWindowEventHandlers._Setongamepadconnected(const aValue : TEventHandler);
  88398. begin
  88399. WriteJSPropertyMethod('ongamepadconnected',TMethod(aValue));
  88400. end;
  88401. procedure TJSWindowEventHandlers._Setongamepaddisconnected(const aValue : TEventHandler);
  88402. begin
  88403. WriteJSPropertyMethod('ongamepaddisconnected',TMethod(aValue));
  88404. end;
  88405. class function TJSWindowEventHandlers.JSClassName: UnicodeString;
  88406. begin
  88407. Result:='WindowEventHandlers';
  88408. end;
  88409. class function TJSWindowEventHandlers.Cast(const Intf: IJSObject): IJSWindowEventHandlers;
  88410. begin
  88411. Result:=TJSWindowEventHandlers.JOBCast(Intf);
  88412. end;
  88413. function TJSOnErrorEventHandlerForNodes._Getonerror: TEventHandler;
  88414. begin
  88415. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  88416. end;
  88417. procedure TJSOnErrorEventHandlerForNodes._Setonerror(const aValue : TEventHandler);
  88418. begin
  88419. WriteJSPropertyMethod('onerror',TMethod(aValue));
  88420. end;
  88421. class function TJSOnErrorEventHandlerForNodes.JSClassName: UnicodeString;
  88422. begin
  88423. Result:='OnErrorEventHandlerForNodes';
  88424. end;
  88425. class function TJSOnErrorEventHandlerForNodes.Cast(const Intf: IJSObject): IJSOnErrorEventHandlerForNodes;
  88426. begin
  88427. Result:=TJSOnErrorEventHandlerForNodes.JOBCast(Intf);
  88428. end;
  88429. function TJSOnErrorEventHandlerForWindow._Getonerror: TOnErrorEventHandler;
  88430. begin
  88431. Result:=(TOnErrorEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  88432. end;
  88433. procedure TJSOnErrorEventHandlerForWindow._Setonerror(const aValue : TOnErrorEventHandler);
  88434. begin
  88435. WriteJSPropertyMethod('onerror',TMethod(aValue));
  88436. end;
  88437. class function TJSOnErrorEventHandlerForWindow.JSClassName: UnicodeString;
  88438. begin
  88439. Result:='OnErrorEventHandlerForWindow';
  88440. end;
  88441. class function TJSOnErrorEventHandlerForWindow.Cast(const Intf: IJSObject): IJSOnErrorEventHandlerForWindow;
  88442. begin
  88443. Result:=TJSOnErrorEventHandlerForWindow.JOBCast(Intf);
  88444. end;
  88445. function TJSEventSource._Geturl: UnicodeString;
  88446. begin
  88447. Result:=ReadJSPropertyUnicodeString('url');
  88448. end;
  88449. function TJSEventSource._GetwithCredentials: Boolean;
  88450. begin
  88451. Result:=ReadJSPropertyBoolean('withCredentials');
  88452. end;
  88453. function TJSEventSource._GetreadyState: Word;
  88454. begin
  88455. Result:=ReadJSPropertyLongInt('readyState');
  88456. end;
  88457. function TJSEventSource._Getonopen: TEventHandler;
  88458. begin
  88459. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onopen')));
  88460. end;
  88461. function TJSEventSource._Getonmessage: TEventHandler;
  88462. begin
  88463. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  88464. end;
  88465. function TJSEventSource._Getonerror: TEventHandler;
  88466. begin
  88467. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  88468. end;
  88469. procedure TJSEventSource._Setonopen(const aValue : TEventHandler);
  88470. begin
  88471. WriteJSPropertyMethod('onopen',TMethod(aValue));
  88472. end;
  88473. procedure TJSEventSource._Setonmessage(const aValue : TEventHandler);
  88474. begin
  88475. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  88476. end;
  88477. procedure TJSEventSource._Setonerror(const aValue : TEventHandler);
  88478. begin
  88479. WriteJSPropertyMethod('onerror',TMethod(aValue));
  88480. end;
  88481. constructor TJSEventSource.Create(const aUrl: UnicodeString; const aEventSourceInitDict: TJSEventSourceInit);
  88482. begin
  88483. JOBCreate([aUrl,aEventSourceInitDict]);
  88484. end;
  88485. constructor TJSEventSource.Create(const aUrl: UnicodeString);
  88486. begin
  88487. JOBCreate([aUrl]);
  88488. end;
  88489. procedure TJSEventSource.close;
  88490. begin
  88491. InvokeJSNoResult('close',[]);
  88492. end;
  88493. class function TJSEventSource.JSClassName: UnicodeString;
  88494. begin
  88495. Result:='EventSource';
  88496. end;
  88497. class function TJSEventSource.Cast(const Intf: IJSObject): IJSEventSource;
  88498. begin
  88499. Result:=TJSEventSource.JOBCast(Intf);
  88500. end;
  88501. function TJSEventSourceInit._GetwithCredentials: Boolean;
  88502. begin
  88503. Result:=ReadJSPropertyBoolean('withCredentials');
  88504. end;
  88505. procedure TJSEventSourceInit._SetwithCredentials(const aValue : Boolean);
  88506. begin
  88507. WriteJSPropertyBoolean('withCredentials',aValue);
  88508. end;
  88509. class function TJSEventSourceInit.JSClassName: UnicodeString;
  88510. begin
  88511. Result:='Object';
  88512. end;
  88513. class function TJSEventSourceInit.Cast(const Intf: IJSObject): IJSEventSourceInit;
  88514. begin
  88515. Result:=TJSEventSourceInit.JOBCast(Intf);
  88516. end;
  88517. function TJSEventListenerOptions._Getcapture: Boolean;
  88518. begin
  88519. Result:=ReadJSPropertyBoolean('capture');
  88520. end;
  88521. function TJSEventListenerOptions._GetmozSystemGroup: Boolean;
  88522. begin
  88523. Result:=ReadJSPropertyBoolean('mozSystemGroup');
  88524. end;
  88525. procedure TJSEventListenerOptions._Setcapture(const aValue : Boolean);
  88526. begin
  88527. WriteJSPropertyBoolean('capture',aValue);
  88528. end;
  88529. procedure TJSEventListenerOptions._SetmozSystemGroup(const aValue : Boolean);
  88530. begin
  88531. WriteJSPropertyBoolean('mozSystemGroup',aValue);
  88532. end;
  88533. class function TJSEventListenerOptions.JSClassName: UnicodeString;
  88534. begin
  88535. Result:='Object';
  88536. end;
  88537. class function TJSEventListenerOptions.Cast(const Intf: IJSObject): IJSEventListenerOptions;
  88538. begin
  88539. Result:=TJSEventListenerOptions.JOBCast(Intf);
  88540. end;
  88541. function TJSAddEventListenerOptions._Getpassive: Boolean;
  88542. begin
  88543. Result:=ReadJSPropertyBoolean('passive');
  88544. end;
  88545. function TJSAddEventListenerOptions._Getonce: Boolean;
  88546. begin
  88547. Result:=ReadJSPropertyBoolean('once');
  88548. end;
  88549. function TJSAddEventListenerOptions._Getsignal: IJSAbortSignal;
  88550. begin
  88551. Result:=ReadJSPropertyObject('signal',TJSAbortSignal) as IJSAbortSignal;
  88552. end;
  88553. procedure TJSAddEventListenerOptions._Setpassive(const aValue : Boolean);
  88554. begin
  88555. WriteJSPropertyBoolean('passive',aValue);
  88556. end;
  88557. procedure TJSAddEventListenerOptions._Setonce(const aValue : Boolean);
  88558. begin
  88559. WriteJSPropertyBoolean('once',aValue);
  88560. end;
  88561. procedure TJSAddEventListenerOptions._Setsignal(const aValue : IJSAbortSignal);
  88562. begin
  88563. WriteJSPropertyObject('signal',aValue);
  88564. end;
  88565. class function TJSAddEventListenerOptions.JSClassName: UnicodeString;
  88566. begin
  88567. Result:='Object';
  88568. end;
  88569. class function TJSAddEventListenerOptions.Cast(const Intf: IJSObject): IJSAddEventListenerOptions;
  88570. begin
  88571. Result:=TJSAddEventListenerOptions.JOBCast(Intf);
  88572. end;
  88573. constructor TJSEventTarget.Create;
  88574. begin
  88575. JOBCreate([]);
  88576. end;
  88577. procedure TJSEventTarget.addEventListener(const aType_: UnicodeString; const aListener: TEventListener; const aOptions: TJSAddEventListenerOptions; aWantsUntrusted: Boolean);
  88578. var
  88579. m: TJOB_Method;
  88580. begin
  88581. m:=TJOB_Method.Create(TMethod(aListener),@JOBCallEventListener);
  88582. try
  88583. InvokeJSNoResult('addEventListener',[aType_,m,aOptions,aWantsUntrusted]);
  88584. finally
  88585. m.free;
  88586. end;
  88587. end;
  88588. procedure TJSEventTarget.addEventListener(const aType_: UnicodeString; const aListener: TEventListener);
  88589. var
  88590. m: TJOB_Method;
  88591. begin
  88592. m:=TJOB_Method.Create(TMethod(aListener),@JOBCallEventListener);
  88593. try
  88594. InvokeJSNoResult('addEventListener',[aType_,m]);
  88595. finally
  88596. m.free;
  88597. end;
  88598. end;
  88599. procedure TJSEventTarget.addEventListener(const aType_: UnicodeString; const aListener: TEventListener; aOptions: Boolean; aWantsUntrusted: Boolean);
  88600. var
  88601. m: TJOB_Method;
  88602. begin
  88603. m:=TJOB_Method.Create(TMethod(aListener),@JOBCallEventListener);
  88604. try
  88605. InvokeJSNoResult('addEventListener',[aType_,m,aOptions,aWantsUntrusted]);
  88606. finally
  88607. m.free;
  88608. end;
  88609. end;
  88610. procedure TJSEventTarget.addEventListener(const aType_: UnicodeString; const aListener: TEventListener; aOptions: Boolean);
  88611. var
  88612. m: TJOB_Method;
  88613. begin
  88614. m:=TJOB_Method.Create(TMethod(aListener),@JOBCallEventListener);
  88615. try
  88616. InvokeJSNoResult('addEventListener',[aType_,m,aOptions]);
  88617. finally
  88618. m.free;
  88619. end;
  88620. end;
  88621. procedure TJSEventTarget.addEventListener(const aType_: UnicodeString; const aListener: TEventListener; const aOptions: TJSAddEventListenerOptions);
  88622. var
  88623. m: TJOB_Method;
  88624. begin
  88625. m:=TJOB_Method.Create(TMethod(aListener),@JOBCallEventListener);
  88626. try
  88627. InvokeJSNoResult('addEventListener',[aType_,m,aOptions]);
  88628. finally
  88629. m.free;
  88630. end;
  88631. end;
  88632. procedure TJSEventTarget.removeEventListener(const aType_: UnicodeString; const aListener: TEventListener; aOptions: Boolean);
  88633. var
  88634. m: TJOB_Method;
  88635. begin
  88636. m:=TJOB_Method.Create(TMethod(aListener),@JOBCallEventListener);
  88637. try
  88638. InvokeJSNoResult('removeEventListener',[aType_,m,aOptions]);
  88639. finally
  88640. m.free;
  88641. end;
  88642. end;
  88643. procedure TJSEventTarget.removeEventListener(const aType_: UnicodeString; const aListener: TEventListener);
  88644. var
  88645. m: TJOB_Method;
  88646. begin
  88647. m:=TJOB_Method.Create(TMethod(aListener),@JOBCallEventListener);
  88648. try
  88649. InvokeJSNoResult('removeEventListener',[aType_,m]);
  88650. finally
  88651. m.free;
  88652. end;
  88653. end;
  88654. procedure TJSEventTarget.removeEventListener(const aType_: UnicodeString; const aListener: TEventListener; const aOptions: TJSEventListenerOptions);
  88655. var
  88656. m: TJOB_Method;
  88657. begin
  88658. m:=TJOB_Method.Create(TMethod(aListener),@JOBCallEventListener);
  88659. try
  88660. InvokeJSNoResult('removeEventListener',[aType_,m,aOptions]);
  88661. finally
  88662. m.free;
  88663. end;
  88664. end;
  88665. function TJSEventTarget.dispatchEvent(aEvent: IJSEvent): Boolean;
  88666. begin
  88667. Result:=InvokeJSBooleanResult('dispatchEvent',[aEvent]);
  88668. end;
  88669. class function TJSEventTarget.JSClassName: UnicodeString;
  88670. begin
  88671. Result:='EventTarget';
  88672. end;
  88673. class function TJSEventTarget.Cast(const Intf: IJSObject): IJSEventTarget;
  88674. begin
  88675. Result:=TJSEventTarget.JOBCast(Intf);
  88676. end;
  88677. constructor TJSExtendableEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSExtendableEventInit);
  88678. begin
  88679. JOBCreate([aType_,aEventInitDict]);
  88680. end;
  88681. constructor TJSExtendableEvent.Create(const aType_: UnicodeString);
  88682. begin
  88683. JOBCreate([aType_]);
  88684. end;
  88685. procedure TJSExtendableEvent.waitUntil(aP: IJSPromise);
  88686. begin
  88687. InvokeJSNoResult('waitUntil',[aP]);
  88688. end;
  88689. class function TJSExtendableEvent.JSClassName: UnicodeString;
  88690. begin
  88691. Result:='ExtendableEvent';
  88692. end;
  88693. class function TJSExtendableEvent.Cast(const Intf: IJSObject): IJSExtendableEvent;
  88694. begin
  88695. Result:=TJSExtendableEvent.JOBCast(Intf);
  88696. end;
  88697. class function TJSExtendableEventInit.JSClassName: UnicodeString;
  88698. begin
  88699. Result:='Object';
  88700. end;
  88701. class function TJSExtendableEventInit.Cast(const Intf: IJSObject): IJSExtendableEventInit;
  88702. begin
  88703. Result:=TJSExtendableEventInit.JOBCast(Intf);
  88704. end;
  88705. function TJSExtendableMessageEvent._Getdata: Variant;
  88706. begin
  88707. Result:=ReadJSPropertyVariant('data');
  88708. end;
  88709. function TJSExtendableMessageEvent._Getorigin: UnicodeString;
  88710. begin
  88711. Result:=ReadJSPropertyUnicodeString('origin');
  88712. end;
  88713. function TJSExtendableMessageEvent._GetlastEventId: UnicodeString;
  88714. begin
  88715. Result:=ReadJSPropertyUnicodeString('lastEventId');
  88716. end;
  88717. function TJSExtendableMessageEvent._Getsource: TExtendableMessageEvent_source_Type;
  88718. begin
  88719. Result:=ReadJSPropertyVariant('source');
  88720. end;
  88721. function TJSExtendableMessageEvent._Getports: TJSMessagePortDynArray;
  88722. begin
  88723. Result:=ReadJSPropertyObject('ports',TJSArray) as TJSMessagePortDynArray;
  88724. end;
  88725. constructor TJSExtendableMessageEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSExtendableMessageEventInit);
  88726. begin
  88727. JOBCreate([aType_,aEventInitDict]);
  88728. end;
  88729. constructor TJSExtendableMessageEvent.Create(const aType_: UnicodeString);
  88730. begin
  88731. JOBCreate([aType_]);
  88732. end;
  88733. class function TJSExtendableMessageEvent.JSClassName: UnicodeString;
  88734. begin
  88735. Result:='ExtendableMessageEvent';
  88736. end;
  88737. class function TJSExtendableMessageEvent.Cast(const Intf: IJSObject): IJSExtendableMessageEvent;
  88738. begin
  88739. Result:=TJSExtendableMessageEvent.JOBCast(Intf);
  88740. end;
  88741. function TJSExtendableMessageEventInit._Getdata: Variant;
  88742. begin
  88743. Result:=ReadJSPropertyVariant('data');
  88744. end;
  88745. function TJSExtendableMessageEventInit._Getorigin: UnicodeString;
  88746. begin
  88747. Result:=ReadJSPropertyUnicodeString('origin');
  88748. end;
  88749. function TJSExtendableMessageEventInit._GetlastEventId: UnicodeString;
  88750. begin
  88751. Result:=ReadJSPropertyUnicodeString('lastEventId');
  88752. end;
  88753. function TJSExtendableMessageEventInit._Getsource: TExtendableMessageEventInit_source_Type;
  88754. begin
  88755. Result:=ReadJSPropertyVariant('source');
  88756. end;
  88757. function TJSExtendableMessageEventInit._Getports: TJSMessagePortDynArray;
  88758. begin
  88759. Result:=ReadJSPropertyObject('ports',TJSArray) as TJSMessagePortDynArray;
  88760. end;
  88761. procedure TJSExtendableMessageEventInit._Setdata(const aValue : Variant);
  88762. begin
  88763. WriteJSPropertyVariant('data',aValue);
  88764. end;
  88765. procedure TJSExtendableMessageEventInit._Setorigin(const aValue : UnicodeString);
  88766. begin
  88767. WriteJSPropertyUnicodeString('origin',aValue);
  88768. end;
  88769. procedure TJSExtendableMessageEventInit._SetlastEventId(const aValue : UnicodeString);
  88770. begin
  88771. WriteJSPropertyUnicodeString('lastEventId',aValue);
  88772. end;
  88773. procedure TJSExtendableMessageEventInit._Setsource(const aValue : TExtendableMessageEventInit_source_Type);
  88774. begin
  88775. WriteJSPropertyVariant('source',aValue);
  88776. end;
  88777. procedure TJSExtendableMessageEventInit._Setports(const aValue : TJSMessagePortDynArray);
  88778. begin
  88779. WriteJSPropertyObject('ports',aValue);
  88780. end;
  88781. class function TJSExtendableMessageEventInit.JSClassName: UnicodeString;
  88782. begin
  88783. Result:='Object';
  88784. end;
  88785. class function TJSExtendableMessageEventInit.Cast(const Intf: IJSObject): IJSExtendableMessageEventInit;
  88786. begin
  88787. Result:=TJSExtendableMessageEventInit.JOBCast(Intf);
  88788. end;
  88789. function TJSExtensionAlarms._GetonAlarm: IJSExtensionEventManager;
  88790. begin
  88791. Result:=ReadJSPropertyObject('onAlarm',TJSExtensionEventManager) as IJSExtensionEventManager;
  88792. end;
  88793. procedure TJSExtensionAlarms.create(const aName: UnicodeString; const aAlarmInfo: Variant);
  88794. begin
  88795. InvokeJSNoResult('create',[aName,aAlarmInfo]);
  88796. end;
  88797. procedure TJSExtensionAlarms.create(const aAlarmInfo: Variant);
  88798. begin
  88799. InvokeJSNoResult('create',[aAlarmInfo]);
  88800. end;
  88801. function TJSExtensionAlarms.get(const aName: UnicodeString; const aCallback: TFunction): Variant;
  88802. var
  88803. m: TJOB_Method;
  88804. begin
  88805. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  88806. try
  88807. Result:=InvokeJSVariantResult('get',[aName,m]);
  88808. finally
  88809. m.free;
  88810. end;
  88811. end;
  88812. function TJSExtensionAlarms.get(const aName: UnicodeString): Variant;
  88813. begin
  88814. Result:=InvokeJSVariantResult('get',[aName]);
  88815. end;
  88816. function TJSExtensionAlarms.get(const aCallback: TFunction): Variant;
  88817. var
  88818. m: TJOB_Method;
  88819. begin
  88820. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  88821. try
  88822. Result:=InvokeJSVariantResult('get',[m]);
  88823. finally
  88824. m.free;
  88825. end;
  88826. end;
  88827. function TJSExtensionAlarms.get: Variant;
  88828. begin
  88829. Result:=InvokeJSVariantResult('get',[]);
  88830. end;
  88831. function TJSExtensionAlarms.getAll(const aCallback: TFunction): Variant;
  88832. var
  88833. m: TJOB_Method;
  88834. begin
  88835. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  88836. try
  88837. Result:=InvokeJSVariantResult('getAll',[m]);
  88838. finally
  88839. m.free;
  88840. end;
  88841. end;
  88842. function TJSExtensionAlarms.getAll: Variant;
  88843. begin
  88844. Result:=InvokeJSVariantResult('getAll',[]);
  88845. end;
  88846. function TJSExtensionAlarms.clear(const aName: UnicodeString; const aCallback: TFunction): Variant;
  88847. var
  88848. m: TJOB_Method;
  88849. begin
  88850. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  88851. try
  88852. Result:=InvokeJSVariantResult('clear',[aName,m]);
  88853. finally
  88854. m.free;
  88855. end;
  88856. end;
  88857. function TJSExtensionAlarms.clear(const aName: UnicodeString): Variant;
  88858. begin
  88859. Result:=InvokeJSVariantResult('clear',[aName]);
  88860. end;
  88861. function TJSExtensionAlarms.clear(const aCallback: TFunction): Variant;
  88862. var
  88863. m: TJOB_Method;
  88864. begin
  88865. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  88866. try
  88867. Result:=InvokeJSVariantResult('clear',[m]);
  88868. finally
  88869. m.free;
  88870. end;
  88871. end;
  88872. function TJSExtensionAlarms.clear: Variant;
  88873. begin
  88874. Result:=InvokeJSVariantResult('clear',[]);
  88875. end;
  88876. function TJSExtensionAlarms.clearAll(const aCallback: TFunction): Variant;
  88877. var
  88878. m: TJOB_Method;
  88879. begin
  88880. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  88881. try
  88882. Result:=InvokeJSVariantResult('clearAll',[m]);
  88883. finally
  88884. m.free;
  88885. end;
  88886. end;
  88887. function TJSExtensionAlarms.clearAll: Variant;
  88888. begin
  88889. Result:=InvokeJSVariantResult('clearAll',[]);
  88890. end;
  88891. class function TJSExtensionAlarms.JSClassName: UnicodeString;
  88892. begin
  88893. Result:='ExtensionAlarms';
  88894. end;
  88895. class function TJSExtensionAlarms.Cast(const Intf: IJSObject): IJSExtensionAlarms;
  88896. begin
  88897. Result:=TJSExtensionAlarms.JOBCast(Intf);
  88898. end;
  88899. function TJSExtensionGlobalsMixin._Getbrowser: IJSExtensionBrowser;
  88900. begin
  88901. Result:=ReadJSPropertyObject('browser',TJSExtensionBrowser) as IJSExtensionBrowser;
  88902. end;
  88903. class function TJSExtensionGlobalsMixin.JSClassName: UnicodeString;
  88904. begin
  88905. Result:='ExtensionGlobalsMixin';
  88906. end;
  88907. class function TJSExtensionGlobalsMixin.Cast(const Intf: IJSObject): IJSExtensionGlobalsMixin;
  88908. begin
  88909. Result:=TJSExtensionGlobalsMixin.JOBCast(Intf);
  88910. end;
  88911. function TJSExtensionBrowser._GetmockExtensionAPI: IJSExtensionMockAPI;
  88912. begin
  88913. Result:=ReadJSPropertyObject('mockExtensionAPI',TJSExtensionMockAPI) as IJSExtensionMockAPI;
  88914. end;
  88915. function TJSExtensionBrowser._Getalarms: IJSExtensionAlarms;
  88916. begin
  88917. Result:=ReadJSPropertyObject('alarms',TJSExtensionAlarms) as IJSExtensionAlarms;
  88918. end;
  88919. function TJSExtensionBrowser._GetbrowserSettings: IJSExtensionBrowserSettings;
  88920. begin
  88921. Result:=ReadJSPropertyObject('browserSettings',TJSExtensionBrowserSettings) as IJSExtensionBrowserSettings;
  88922. end;
  88923. function TJSExtensionBrowser._Getdns: IJSExtensionDns;
  88924. begin
  88925. Result:=ReadJSPropertyObject('dns',TJSExtensionDns) as IJSExtensionDns;
  88926. end;
  88927. function TJSExtensionBrowser._Getproxy: IJSExtensionProxy;
  88928. begin
  88929. Result:=ReadJSPropertyObject('proxy',TJSExtensionProxy) as IJSExtensionProxy;
  88930. end;
  88931. function TJSExtensionBrowser._Getruntime: IJSExtensionRuntime;
  88932. begin
  88933. Result:=ReadJSPropertyObject('runtime',TJSExtensionRuntime) as IJSExtensionRuntime;
  88934. end;
  88935. function TJSExtensionBrowser._Getscripting: IJSExtensionScripting;
  88936. begin
  88937. Result:=ReadJSPropertyObject('scripting',TJSExtensionScripting) as IJSExtensionScripting;
  88938. end;
  88939. function TJSExtensionBrowser._Gettest: IJSExtensionTest;
  88940. begin
  88941. Result:=ReadJSPropertyObject('test',TJSExtensionTest) as IJSExtensionTest;
  88942. end;
  88943. class function TJSExtensionBrowser.JSClassName: UnicodeString;
  88944. begin
  88945. Result:='ExtensionBrowser';
  88946. end;
  88947. class function TJSExtensionBrowser.Cast(const Intf: IJSObject): IJSExtensionBrowser;
  88948. begin
  88949. Result:=TJSExtensionBrowser.JOBCast(Intf);
  88950. end;
  88951. function TJSExtensionBrowserSettings._GetallowPopupsForUserEvents: IJSExtensionSetting;
  88952. begin
  88953. Result:=ReadJSPropertyObject('allowPopupsForUserEvents',TJSExtensionSetting) as IJSExtensionSetting;
  88954. end;
  88955. function TJSExtensionBrowserSettings._GetcacheEnabled: IJSExtensionSetting;
  88956. begin
  88957. Result:=ReadJSPropertyObject('cacheEnabled',TJSExtensionSetting) as IJSExtensionSetting;
  88958. end;
  88959. function TJSExtensionBrowserSettings._GetcloseTabsByDoubleClick: IJSExtensionSetting;
  88960. begin
  88961. Result:=ReadJSPropertyObject('closeTabsByDoubleClick',TJSExtensionSetting) as IJSExtensionSetting;
  88962. end;
  88963. function TJSExtensionBrowserSettings._GetcontextMenuShowEvent: IJSExtensionSetting;
  88964. begin
  88965. Result:=ReadJSPropertyObject('contextMenuShowEvent',TJSExtensionSetting) as IJSExtensionSetting;
  88966. end;
  88967. function TJSExtensionBrowserSettings._GetftpProtocolEnabled: IJSExtensionSetting;
  88968. begin
  88969. Result:=ReadJSPropertyObject('ftpProtocolEnabled',TJSExtensionSetting) as IJSExtensionSetting;
  88970. end;
  88971. function TJSExtensionBrowserSettings._GethomepageOverride: IJSExtensionSetting;
  88972. begin
  88973. Result:=ReadJSPropertyObject('homepageOverride',TJSExtensionSetting) as IJSExtensionSetting;
  88974. end;
  88975. function TJSExtensionBrowserSettings._GetimageAnimationBehavior: IJSExtensionSetting;
  88976. begin
  88977. Result:=ReadJSPropertyObject('imageAnimationBehavior',TJSExtensionSetting) as IJSExtensionSetting;
  88978. end;
  88979. function TJSExtensionBrowserSettings._GetnewTabPageOverride: IJSExtensionSetting;
  88980. begin
  88981. Result:=ReadJSPropertyObject('newTabPageOverride',TJSExtensionSetting) as IJSExtensionSetting;
  88982. end;
  88983. function TJSExtensionBrowserSettings._GetnewTabPosition: IJSExtensionSetting;
  88984. begin
  88985. Result:=ReadJSPropertyObject('newTabPosition',TJSExtensionSetting) as IJSExtensionSetting;
  88986. end;
  88987. function TJSExtensionBrowserSettings._GetopenBookmarksInNewTabs: IJSExtensionSetting;
  88988. begin
  88989. Result:=ReadJSPropertyObject('openBookmarksInNewTabs',TJSExtensionSetting) as IJSExtensionSetting;
  88990. end;
  88991. function TJSExtensionBrowserSettings._GetopenSearchResultsInNewTabs: IJSExtensionSetting;
  88992. begin
  88993. Result:=ReadJSPropertyObject('openSearchResultsInNewTabs',TJSExtensionSetting) as IJSExtensionSetting;
  88994. end;
  88995. function TJSExtensionBrowserSettings._GetopenUrlbarResultsInNewTabs: IJSExtensionSetting;
  88996. begin
  88997. Result:=ReadJSPropertyObject('openUrlbarResultsInNewTabs',TJSExtensionSetting) as IJSExtensionSetting;
  88998. end;
  88999. function TJSExtensionBrowserSettings._GetwebNotificationsDisabled: IJSExtensionSetting;
  89000. begin
  89001. Result:=ReadJSPropertyObject('webNotificationsDisabled',TJSExtensionSetting) as IJSExtensionSetting;
  89002. end;
  89003. function TJSExtensionBrowserSettings._GetoverrideDocumentColors: IJSExtensionSetting;
  89004. begin
  89005. Result:=ReadJSPropertyObject('overrideDocumentColors',TJSExtensionSetting) as IJSExtensionSetting;
  89006. end;
  89007. function TJSExtensionBrowserSettings._GetoverrideContentColorScheme: IJSExtensionSetting;
  89008. begin
  89009. Result:=ReadJSPropertyObject('overrideContentColorScheme',TJSExtensionSetting) as IJSExtensionSetting;
  89010. end;
  89011. function TJSExtensionBrowserSettings._GetuseDocumentFonts: IJSExtensionSetting;
  89012. begin
  89013. Result:=ReadJSPropertyObject('useDocumentFonts',TJSExtensionSetting) as IJSExtensionSetting;
  89014. end;
  89015. function TJSExtensionBrowserSettings._GetzoomFullPage: IJSExtensionSetting;
  89016. begin
  89017. Result:=ReadJSPropertyObject('zoomFullPage',TJSExtensionSetting) as IJSExtensionSetting;
  89018. end;
  89019. function TJSExtensionBrowserSettings._GetzoomSiteSpecific: IJSExtensionSetting;
  89020. begin
  89021. Result:=ReadJSPropertyObject('zoomSiteSpecific',TJSExtensionSetting) as IJSExtensionSetting;
  89022. end;
  89023. function TJSExtensionBrowserSettings._GetcolorManagement: IJSExtensionBrowserSettingsColorManagement;
  89024. begin
  89025. Result:=ReadJSPropertyObject('colorManagement',TJSExtensionBrowserSettingsColorManagement) as IJSExtensionBrowserSettingsColorManagement;
  89026. end;
  89027. class function TJSExtensionBrowserSettings.JSClassName: UnicodeString;
  89028. begin
  89029. Result:='ExtensionBrowserSettings';
  89030. end;
  89031. class function TJSExtensionBrowserSettings.Cast(const Intf: IJSObject): IJSExtensionBrowserSettings;
  89032. begin
  89033. Result:=TJSExtensionBrowserSettings.JOBCast(Intf);
  89034. end;
  89035. function TJSExtensionBrowserSettingsColorManagement._Getmode: IJSExtensionSetting;
  89036. begin
  89037. Result:=ReadJSPropertyObject('mode',TJSExtensionSetting) as IJSExtensionSetting;
  89038. end;
  89039. function TJSExtensionBrowserSettingsColorManagement._GetuseNativeSRGB: IJSExtensionSetting;
  89040. begin
  89041. Result:=ReadJSPropertyObject('useNativeSRGB',TJSExtensionSetting) as IJSExtensionSetting;
  89042. end;
  89043. function TJSExtensionBrowserSettingsColorManagement._GetuseWebRenderCompositor: IJSExtensionSetting;
  89044. begin
  89045. Result:=ReadJSPropertyObject('useWebRenderCompositor',TJSExtensionSetting) as IJSExtensionSetting;
  89046. end;
  89047. class function TJSExtensionBrowserSettingsColorManagement.JSClassName: UnicodeString;
  89048. begin
  89049. Result:='ExtensionBrowserSettingsColorManagement';
  89050. end;
  89051. class function TJSExtensionBrowserSettingsColorManagement.Cast(const Intf: IJSObject): IJSExtensionBrowserSettingsColorManagement;
  89052. begin
  89053. Result:=TJSExtensionBrowserSettingsColorManagement.JOBCast(Intf);
  89054. end;
  89055. function TJSExtensionDns.resolve(const aArgs: Variant): Variant{; ToDo:varargs};
  89056. begin
  89057. Result:=InvokeJSVariantResult('resolve',[aArgs]);
  89058. end;
  89059. class function TJSExtensionDns.JSClassName: UnicodeString;
  89060. begin
  89061. Result:='ExtensionDns';
  89062. end;
  89063. class function TJSExtensionDns.Cast(const Intf: IJSObject): IJSExtensionDns;
  89064. begin
  89065. Result:=TJSExtensionDns.JOBCast(Intf);
  89066. end;
  89067. procedure TJSExtensionEventManager.addListener(const aCallback: TFunction; aListenerOptions: IJSObject);
  89068. var
  89069. m: TJOB_Method;
  89070. begin
  89071. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89072. try
  89073. InvokeJSNoResult('addListener',[m,aListenerOptions]);
  89074. finally
  89075. m.free;
  89076. end;
  89077. end;
  89078. procedure TJSExtensionEventManager.addListener(const aCallback: TFunction);
  89079. var
  89080. m: TJOB_Method;
  89081. begin
  89082. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89083. try
  89084. InvokeJSNoResult('addListener',[m]);
  89085. finally
  89086. m.free;
  89087. end;
  89088. end;
  89089. procedure TJSExtensionEventManager.removeListener(const aCallback: TFunction);
  89090. var
  89091. m: TJOB_Method;
  89092. begin
  89093. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89094. try
  89095. InvokeJSNoResult('removeListener',[m]);
  89096. finally
  89097. m.free;
  89098. end;
  89099. end;
  89100. function TJSExtensionEventManager.hasListener(const aCallback: TFunction): Boolean;
  89101. var
  89102. m: TJOB_Method;
  89103. begin
  89104. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89105. try
  89106. Result:=InvokeJSBooleanResult('hasListener',[m]);
  89107. finally
  89108. m.free;
  89109. end;
  89110. end;
  89111. function TJSExtensionEventManager.hasListeners: Boolean;
  89112. begin
  89113. Result:=InvokeJSBooleanResult('hasListeners',[]);
  89114. end;
  89115. class function TJSExtensionEventManager.JSClassName: UnicodeString;
  89116. begin
  89117. Result:='ExtensionEventManager';
  89118. end;
  89119. class function TJSExtensionEventManager.Cast(const Intf: IJSObject): IJSExtensionEventManager;
  89120. begin
  89121. Result:=TJSExtensionEventManager.JOBCast(Intf);
  89122. end;
  89123. function TJSExtensionMockAPI._GetpropertyAsErrorObject: Variant;
  89124. begin
  89125. Result:=ReadJSPropertyVariant('propertyAsErrorObject');
  89126. end;
  89127. function TJSExtensionMockAPI._GetpropertyAsString: UnicodeString;
  89128. begin
  89129. Result:=ReadJSPropertyUnicodeString('propertyAsString');
  89130. end;
  89131. function TJSExtensionMockAPI._GetonTestEvent: IJSExtensionEventManager;
  89132. begin
  89133. Result:=ReadJSPropertyObject('onTestEvent',TJSExtensionEventManager) as IJSExtensionEventManager;
  89134. end;
  89135. function TJSExtensionMockAPI.methodSyncWithReturn(const aArgs: Variant): Variant{; ToDo:varargs};
  89136. begin
  89137. Result:=InvokeJSVariantResult('methodSyncWithReturn',[aArgs]);
  89138. end;
  89139. procedure TJSExtensionMockAPI.methodNoReturn(const aArgs: Variant){; ToDo:varargs};
  89140. begin
  89141. InvokeJSNoResult('methodNoReturn',[aArgs]);
  89142. end;
  89143. function TJSExtensionMockAPI.methodAsync(const aArg0: Variant; const aCb: TFunction): Variant;
  89144. var
  89145. m: TJOB_Method;
  89146. begin
  89147. m:=TJOB_Method.Create(TMethod(aCb),@JOBCallFunction_);
  89148. try
  89149. Result:=InvokeJSVariantResult('methodAsync',[aArg0,m]);
  89150. finally
  89151. m.free;
  89152. end;
  89153. end;
  89154. function TJSExtensionMockAPI.methodAsync(const aArg0: Variant): Variant;
  89155. begin
  89156. Result:=InvokeJSVariantResult('methodAsync',[aArg0]);
  89157. end;
  89158. function TJSExtensionMockAPI.methodAmbiguousArgsAsync(const aArgs: Variant): Variant{; ToDo:varargs};
  89159. begin
  89160. Result:=InvokeJSVariantResult('methodAmbiguousArgsAsync',[aArgs]);
  89161. end;
  89162. function TJSExtensionMockAPI.methodReturnsPort(const aTestName: UnicodeString): IJSExtensionPort;
  89163. begin
  89164. Result:=InvokeJSObjectResult('methodReturnsPort',[aTestName],TJSExtensionPort) as IJSExtensionPort;
  89165. end;
  89166. class function TJSExtensionMockAPI.JSClassName: UnicodeString;
  89167. begin
  89168. Result:='ExtensionMockAPI';
  89169. end;
  89170. class function TJSExtensionMockAPI.Cast(const Intf: IJSObject): IJSExtensionMockAPI;
  89171. begin
  89172. Result:=TJSExtensionMockAPI.JOBCast(Intf);
  89173. end;
  89174. function TJSExtensionPort._Getname: UnicodeString;
  89175. begin
  89176. Result:=ReadJSPropertyUnicodeString('name');
  89177. end;
  89178. function TJSExtensionPort._Getsender: Variant;
  89179. begin
  89180. Result:=ReadJSPropertyVariant('sender');
  89181. end;
  89182. function TJSExtensionPort._Geterror: Variant;
  89183. begin
  89184. Result:=ReadJSPropertyVariant('error');
  89185. end;
  89186. function TJSExtensionPort._GetonDisconnect: IJSExtensionEventManager;
  89187. begin
  89188. Result:=ReadJSPropertyObject('onDisconnect',TJSExtensionEventManager) as IJSExtensionEventManager;
  89189. end;
  89190. function TJSExtensionPort._GetonMessage: IJSExtensionEventManager;
  89191. begin
  89192. Result:=ReadJSPropertyObject('onMessage',TJSExtensionEventManager) as IJSExtensionEventManager;
  89193. end;
  89194. procedure TJSExtensionPort.disconnect;
  89195. begin
  89196. InvokeJSNoResult('disconnect',[]);
  89197. end;
  89198. procedure TJSExtensionPort.postMessage(const aMessage: Variant);
  89199. begin
  89200. InvokeJSNoResult('postMessage',[aMessage]);
  89201. end;
  89202. class function TJSExtensionPort.JSClassName: UnicodeString;
  89203. begin
  89204. Result:='ExtensionPort';
  89205. end;
  89206. class function TJSExtensionPort.Cast(const Intf: IJSObject): IJSExtensionPort;
  89207. begin
  89208. Result:=TJSExtensionPort.JOBCast(Intf);
  89209. end;
  89210. function TJSExtensionPortDescriptor._GetportId: UnicodeString;
  89211. begin
  89212. Result:=ReadJSPropertyUnicodeString('portId');
  89213. end;
  89214. function TJSExtensionPortDescriptor._Getname: UnicodeString;
  89215. begin
  89216. Result:=ReadJSPropertyUnicodeString('name');
  89217. end;
  89218. procedure TJSExtensionPortDescriptor._SetportId(const aValue : UnicodeString);
  89219. begin
  89220. WriteJSPropertyUnicodeString('portId',aValue);
  89221. end;
  89222. procedure TJSExtensionPortDescriptor._Setname(const aValue : UnicodeString);
  89223. begin
  89224. WriteJSPropertyUnicodeString('name',aValue);
  89225. end;
  89226. class function TJSExtensionPortDescriptor.JSClassName: UnicodeString;
  89227. begin
  89228. Result:='Object';
  89229. end;
  89230. class function TJSExtensionPortDescriptor.Cast(const Intf: IJSObject): IJSExtensionPortDescriptor;
  89231. begin
  89232. Result:=TJSExtensionPortDescriptor.JOBCast(Intf);
  89233. end;
  89234. function TJSExtensionProxy._GetonRequest: IJSExtensionEventManager;
  89235. begin
  89236. Result:=ReadJSPropertyObject('onRequest',TJSExtensionEventManager) as IJSExtensionEventManager;
  89237. end;
  89238. function TJSExtensionProxy._GetonError: IJSExtensionEventManager;
  89239. begin
  89240. Result:=ReadJSPropertyObject('onError',TJSExtensionEventManager) as IJSExtensionEventManager;
  89241. end;
  89242. function TJSExtensionProxy._Getsettings: IJSExtensionSetting;
  89243. begin
  89244. Result:=ReadJSPropertyObject('settings',TJSExtensionSetting) as IJSExtensionSetting;
  89245. end;
  89246. class function TJSExtensionProxy.JSClassName: UnicodeString;
  89247. begin
  89248. Result:='ExtensionProxy';
  89249. end;
  89250. class function TJSExtensionProxy.Cast(const Intf: IJSObject): IJSExtensionProxy;
  89251. begin
  89252. Result:=TJSExtensionProxy.JOBCast(Intf);
  89253. end;
  89254. function TJSExtensionRuntime._GetonStartup: IJSExtensionEventManager;
  89255. begin
  89256. Result:=ReadJSPropertyObject('onStartup',TJSExtensionEventManager) as IJSExtensionEventManager;
  89257. end;
  89258. function TJSExtensionRuntime._GetonInstalled: IJSExtensionEventManager;
  89259. begin
  89260. Result:=ReadJSPropertyObject('onInstalled',TJSExtensionEventManager) as IJSExtensionEventManager;
  89261. end;
  89262. function TJSExtensionRuntime._GetonUpdateAvailable: IJSExtensionEventManager;
  89263. begin
  89264. Result:=ReadJSPropertyObject('onUpdateAvailable',TJSExtensionEventManager) as IJSExtensionEventManager;
  89265. end;
  89266. function TJSExtensionRuntime._GetonConnect: IJSExtensionEventManager;
  89267. begin
  89268. Result:=ReadJSPropertyObject('onConnect',TJSExtensionEventManager) as IJSExtensionEventManager;
  89269. end;
  89270. function TJSExtensionRuntime._GetonConnectExternal: IJSExtensionEventManager;
  89271. begin
  89272. Result:=ReadJSPropertyObject('onConnectExternal',TJSExtensionEventManager) as IJSExtensionEventManager;
  89273. end;
  89274. function TJSExtensionRuntime._GetonMessage: IJSExtensionEventManager;
  89275. begin
  89276. Result:=ReadJSPropertyObject('onMessage',TJSExtensionEventManager) as IJSExtensionEventManager;
  89277. end;
  89278. function TJSExtensionRuntime._GetonMessageExternal: IJSExtensionEventManager;
  89279. begin
  89280. Result:=ReadJSPropertyObject('onMessageExternal',TJSExtensionEventManager) as IJSExtensionEventManager;
  89281. end;
  89282. function TJSExtensionRuntime._GetlastError: Variant;
  89283. begin
  89284. Result:=ReadJSPropertyVariant('lastError');
  89285. end;
  89286. function TJSExtensionRuntime._Getid: UnicodeString;
  89287. begin
  89288. Result:=ReadJSPropertyUnicodeString('id');
  89289. end;
  89290. function TJSExtensionRuntime.openOptionsPage(const aCallback: TFunction): Variant;
  89291. var
  89292. m: TJOB_Method;
  89293. begin
  89294. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89295. try
  89296. Result:=InvokeJSVariantResult('openOptionsPage',[m]);
  89297. finally
  89298. m.free;
  89299. end;
  89300. end;
  89301. function TJSExtensionRuntime.openOptionsPage: Variant;
  89302. begin
  89303. Result:=InvokeJSVariantResult('openOptionsPage',[]);
  89304. end;
  89305. function TJSExtensionRuntime.getManifest: Variant;
  89306. begin
  89307. Result:=InvokeJSVariantResult('getManifest',[]);
  89308. end;
  89309. function TJSExtensionRuntime.getURL(const aPath: UnicodeString): UnicodeString;
  89310. begin
  89311. Result:=InvokeJSUnicodeStringResult('getURL',[aPath]);
  89312. end;
  89313. function TJSExtensionRuntime.setUninstallURL(const aUrl: UnicodeString; const aCallback: TFunction): Variant;
  89314. var
  89315. m: TJOB_Method;
  89316. begin
  89317. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89318. try
  89319. Result:=InvokeJSVariantResult('setUninstallURL',[aUrl,m]);
  89320. finally
  89321. m.free;
  89322. end;
  89323. end;
  89324. function TJSExtensionRuntime.setUninstallURL(const aUrl: UnicodeString): Variant;
  89325. begin
  89326. Result:=InvokeJSVariantResult('setUninstallURL',[aUrl]);
  89327. end;
  89328. function TJSExtensionRuntime.setUninstallURL(const aCallback: TFunction): Variant;
  89329. var
  89330. m: TJOB_Method;
  89331. begin
  89332. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89333. try
  89334. Result:=InvokeJSVariantResult('setUninstallURL',[m]);
  89335. finally
  89336. m.free;
  89337. end;
  89338. end;
  89339. function TJSExtensionRuntime.setUninstallURL: Variant;
  89340. begin
  89341. Result:=InvokeJSVariantResult('setUninstallURL',[]);
  89342. end;
  89343. procedure TJSExtensionRuntime.reload;
  89344. begin
  89345. InvokeJSNoResult('reload',[]);
  89346. end;
  89347. function TJSExtensionRuntime.connect(const aExtensionId: UnicodeString; const aConnectInfo: Variant): IJSExtensionPort;
  89348. begin
  89349. Result:=InvokeJSObjectResult('connect',[aExtensionId,aConnectInfo],TJSExtensionPort) as IJSExtensionPort;
  89350. end;
  89351. function TJSExtensionRuntime.connect(const aConnectInfo: Variant): IJSExtensionPort;
  89352. begin
  89353. Result:=InvokeJSObjectResult('connect',[aConnectInfo],TJSExtensionPort) as IJSExtensionPort;
  89354. end;
  89355. function TJSExtensionRuntime.connect: IJSExtensionPort;
  89356. begin
  89357. Result:=InvokeJSObjectResult('connect',[],TJSExtensionPort) as IJSExtensionPort;
  89358. end;
  89359. function TJSExtensionRuntime.connectNative(const aApplication: UnicodeString): IJSExtensionPort;
  89360. begin
  89361. Result:=InvokeJSObjectResult('connectNative',[aApplication],TJSExtensionPort) as IJSExtensionPort;
  89362. end;
  89363. function TJSExtensionRuntime.sendMessage(const aArgs: Variant): Variant{; ToDo:varargs};
  89364. begin
  89365. Result:=InvokeJSVariantResult('sendMessage',[aArgs]);
  89366. end;
  89367. function TJSExtensionRuntime.sendNativeMessage(const aApplication: UnicodeString; const aMessage: Variant; const aResponseCallback: TFunction): Variant;
  89368. var
  89369. m: TJOB_Method;
  89370. begin
  89371. m:=TJOB_Method.Create(TMethod(aResponseCallback),@JOBCallFunction_);
  89372. try
  89373. Result:=InvokeJSVariantResult('sendNativeMessage',[aApplication,aMessage,m]);
  89374. finally
  89375. m.free;
  89376. end;
  89377. end;
  89378. function TJSExtensionRuntime.sendNativeMessage(const aApplication: UnicodeString; const aMessage: Variant): Variant;
  89379. begin
  89380. Result:=InvokeJSVariantResult('sendNativeMessage',[aApplication,aMessage]);
  89381. end;
  89382. function TJSExtensionRuntime.getBrowserInfo(const aCallback: TFunction): Variant;
  89383. var
  89384. m: TJOB_Method;
  89385. begin
  89386. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89387. try
  89388. Result:=InvokeJSVariantResult('getBrowserInfo',[m]);
  89389. finally
  89390. m.free;
  89391. end;
  89392. end;
  89393. function TJSExtensionRuntime.getBrowserInfo: Variant;
  89394. begin
  89395. Result:=InvokeJSVariantResult('getBrowserInfo',[]);
  89396. end;
  89397. function TJSExtensionRuntime.getPlatformInfo(const aCallback: TFunction): Variant;
  89398. var
  89399. m: TJOB_Method;
  89400. begin
  89401. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89402. try
  89403. Result:=InvokeJSVariantResult('getPlatformInfo',[m]);
  89404. finally
  89405. m.free;
  89406. end;
  89407. end;
  89408. function TJSExtensionRuntime.getPlatformInfo: Variant;
  89409. begin
  89410. Result:=InvokeJSVariantResult('getPlatformInfo',[]);
  89411. end;
  89412. class function TJSExtensionRuntime.JSClassName: UnicodeString;
  89413. begin
  89414. Result:='ExtensionRuntime';
  89415. end;
  89416. class function TJSExtensionRuntime.Cast(const Intf: IJSObject): IJSExtensionRuntime;
  89417. begin
  89418. Result:=TJSExtensionRuntime.JOBCast(Intf);
  89419. end;
  89420. function TJSExtensionScripting.executeScript(const aInjection: Variant; const aCallback: TFunction): Variant;
  89421. var
  89422. m: TJOB_Method;
  89423. begin
  89424. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89425. try
  89426. Result:=InvokeJSVariantResult('executeScript',[aInjection,m]);
  89427. finally
  89428. m.free;
  89429. end;
  89430. end;
  89431. function TJSExtensionScripting.executeScript(const aInjection: Variant): Variant;
  89432. begin
  89433. Result:=InvokeJSVariantResult('executeScript',[aInjection]);
  89434. end;
  89435. function TJSExtensionScripting.insertCSS(const aInjection: Variant; const aCallback: TFunction): Variant;
  89436. var
  89437. m: TJOB_Method;
  89438. begin
  89439. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89440. try
  89441. Result:=InvokeJSVariantResult('insertCSS',[aInjection,m]);
  89442. finally
  89443. m.free;
  89444. end;
  89445. end;
  89446. function TJSExtensionScripting.insertCSS(const aInjection: Variant): Variant;
  89447. begin
  89448. Result:=InvokeJSVariantResult('insertCSS',[aInjection]);
  89449. end;
  89450. function TJSExtensionScripting.removeCSS(const aInjection: Variant; const aCallback: TFunction): Variant;
  89451. var
  89452. m: TJOB_Method;
  89453. begin
  89454. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89455. try
  89456. Result:=InvokeJSVariantResult('removeCSS',[aInjection,m]);
  89457. finally
  89458. m.free;
  89459. end;
  89460. end;
  89461. function TJSExtensionScripting.removeCSS(const aInjection: Variant): Variant;
  89462. begin
  89463. Result:=InvokeJSVariantResult('removeCSS',[aInjection]);
  89464. end;
  89465. function TJSExtensionScripting.registerContentScripts(const aScripts: Variant; const aCallback: TFunction): Variant;
  89466. var
  89467. m: TJOB_Method;
  89468. begin
  89469. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89470. try
  89471. Result:=InvokeJSVariantResult('registerContentScripts',[aScripts,m]);
  89472. finally
  89473. m.free;
  89474. end;
  89475. end;
  89476. function TJSExtensionScripting.registerContentScripts(const aScripts: Variant): Variant;
  89477. begin
  89478. Result:=InvokeJSVariantResult('registerContentScripts',[aScripts]);
  89479. end;
  89480. function TJSExtensionScripting.getRegisteredContentScripts(const aArgs: Variant): Variant{; ToDo:varargs};
  89481. begin
  89482. Result:=InvokeJSVariantResult('getRegisteredContentScripts',[aArgs]);
  89483. end;
  89484. function TJSExtensionScripting.unregisterContentScripts(const aArgs: Variant): Variant{; ToDo:varargs};
  89485. begin
  89486. Result:=InvokeJSVariantResult('unregisterContentScripts',[aArgs]);
  89487. end;
  89488. function TJSExtensionScripting.updateContentScripts(const aScripts: Variant; const aCallback: TFunction): Variant;
  89489. var
  89490. m: TJOB_Method;
  89491. begin
  89492. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89493. try
  89494. Result:=InvokeJSVariantResult('updateContentScripts',[aScripts,m]);
  89495. finally
  89496. m.free;
  89497. end;
  89498. end;
  89499. function TJSExtensionScripting.updateContentScripts(const aScripts: Variant): Variant;
  89500. begin
  89501. Result:=InvokeJSVariantResult('updateContentScripts',[aScripts]);
  89502. end;
  89503. class function TJSExtensionScripting.JSClassName: UnicodeString;
  89504. begin
  89505. Result:='ExtensionScripting';
  89506. end;
  89507. class function TJSExtensionScripting.Cast(const Intf: IJSObject): IJSExtensionScripting;
  89508. begin
  89509. Result:=TJSExtensionScripting.JOBCast(Intf);
  89510. end;
  89511. function TJSExtensionSetting._GetonChange: IJSExtensionEventManager;
  89512. begin
  89513. Result:=ReadJSPropertyObject('onChange',TJSExtensionEventManager) as IJSExtensionEventManager;
  89514. end;
  89515. function TJSExtensionSetting.get(aDetails: IJSObject; const aCallback: TFunction): Variant;
  89516. var
  89517. m: TJOB_Method;
  89518. begin
  89519. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89520. try
  89521. Result:=InvokeJSVariantResult('get',[aDetails,m]);
  89522. finally
  89523. m.free;
  89524. end;
  89525. end;
  89526. function TJSExtensionSetting.get(aDetails: IJSObject): Variant;
  89527. begin
  89528. Result:=InvokeJSVariantResult('get',[aDetails]);
  89529. end;
  89530. function TJSExtensionSetting.set_(aDetails: IJSObject; const aCallback: TFunction): Variant;
  89531. var
  89532. m: TJOB_Method;
  89533. begin
  89534. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89535. try
  89536. Result:=InvokeJSVariantResult('set',[aDetails,m]);
  89537. finally
  89538. m.free;
  89539. end;
  89540. end;
  89541. function TJSExtensionSetting.set_(aDetails: IJSObject): Variant;
  89542. begin
  89543. Result:=InvokeJSVariantResult('set',[aDetails]);
  89544. end;
  89545. function TJSExtensionSetting.clear(aDetails: IJSObject; const aCallback: TFunction): Variant;
  89546. var
  89547. m: TJOB_Method;
  89548. begin
  89549. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89550. try
  89551. Result:=InvokeJSVariantResult('clear',[aDetails,m]);
  89552. finally
  89553. m.free;
  89554. end;
  89555. end;
  89556. function TJSExtensionSetting.clear(aDetails: IJSObject): Variant;
  89557. begin
  89558. Result:=InvokeJSVariantResult('clear',[aDetails]);
  89559. end;
  89560. class function TJSExtensionSetting.JSClassName: UnicodeString;
  89561. begin
  89562. Result:='ExtensionSetting';
  89563. end;
  89564. class function TJSExtensionSetting.Cast(const Intf: IJSObject): IJSExtensionSetting;
  89565. begin
  89566. Result:=TJSExtensionSetting.JOBCast(Intf);
  89567. end;
  89568. function TJSExtensionTest._GetonMessage: IJSExtensionEventManager;
  89569. begin
  89570. Result:=ReadJSPropertyObject('onMessage',TJSExtensionEventManager) as IJSExtensionEventManager;
  89571. end;
  89572. procedure TJSExtensionTest.withHandlingUserInput(const aCallback: TFunction);
  89573. var
  89574. m: TJOB_Method;
  89575. begin
  89576. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89577. try
  89578. InvokeJSNoResult('withHandlingUserInput',[m]);
  89579. finally
  89580. m.free;
  89581. end;
  89582. end;
  89583. procedure TJSExtensionTest.notifyFail(const aMessage: UnicodeString);
  89584. begin
  89585. InvokeJSNoResult('notifyFail',[aMessage]);
  89586. end;
  89587. procedure TJSExtensionTest.notifyPass(const aMessage: UnicodeString);
  89588. begin
  89589. InvokeJSNoResult('notifyPass',[aMessage]);
  89590. end;
  89591. procedure TJSExtensionTest.notifyPass;
  89592. begin
  89593. InvokeJSNoResult('notifyPass',[]);
  89594. end;
  89595. procedure TJSExtensionTest.log(const aMessage: UnicodeString);
  89596. begin
  89597. InvokeJSNoResult('log',[aMessage]);
  89598. end;
  89599. procedure TJSExtensionTest.sendMessage(const aArgs: Variant){; ToDo:varargs};
  89600. begin
  89601. InvokeJSNoResult('sendMessage',[aArgs]);
  89602. end;
  89603. procedure TJSExtensionTest.fail(const aMessage: Variant);
  89604. begin
  89605. InvokeJSNoResult('fail',[aMessage]);
  89606. end;
  89607. procedure TJSExtensionTest.fail;
  89608. begin
  89609. InvokeJSNoResult('fail',[]);
  89610. end;
  89611. procedure TJSExtensionTest.succeed(const aMessage: Variant);
  89612. begin
  89613. InvokeJSNoResult('succeed',[aMessage]);
  89614. end;
  89615. procedure TJSExtensionTest.succeed;
  89616. begin
  89617. InvokeJSNoResult('succeed',[]);
  89618. end;
  89619. procedure TJSExtensionTest.assertTrue(const aArgs: Variant){; ToDo:varargs};
  89620. begin
  89621. InvokeJSNoResult('assertTrue',[aArgs]);
  89622. end;
  89623. procedure TJSExtensionTest.assertFalse(const aArgs: Variant){; ToDo:varargs};
  89624. begin
  89625. InvokeJSNoResult('assertFalse',[aArgs]);
  89626. end;
  89627. procedure TJSExtensionTest.assertDeepEq(const aArgs: Variant){; ToDo:varargs};
  89628. begin
  89629. InvokeJSNoResult('assertDeepEq',[aArgs]);
  89630. end;
  89631. procedure TJSExtensionTest.assertEq(const aArgs: Variant){; ToDo:varargs};
  89632. begin
  89633. InvokeJSNoResult('assertEq',[aArgs]);
  89634. end;
  89635. function TJSExtensionTest.assertRejects(aPromise: IJSPromise; const aExpectedError: Variant; const aMessage: UnicodeString; const aCallback: TFunction): Variant;
  89636. var
  89637. m: TJOB_Method;
  89638. begin
  89639. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89640. try
  89641. Result:=InvokeJSVariantResult('assertRejects',[aPromise,aExpectedError,aMessage,m]);
  89642. finally
  89643. m.free;
  89644. end;
  89645. end;
  89646. function TJSExtensionTest.assertRejects(aPromise: IJSPromise; const aExpectedError: Variant; const aMessage: UnicodeString): Variant;
  89647. begin
  89648. Result:=InvokeJSVariantResult('assertRejects',[aPromise,aExpectedError,aMessage]);
  89649. end;
  89650. function TJSExtensionTest.assertRejects(aPromise: IJSPromise; const aExpectedError: Variant; const aCallback: TFunction): Variant;
  89651. var
  89652. m: TJOB_Method;
  89653. begin
  89654. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  89655. try
  89656. Result:=InvokeJSVariantResult('assertRejects',[aPromise,aExpectedError,m]);
  89657. finally
  89658. m.free;
  89659. end;
  89660. end;
  89661. function TJSExtensionTest.assertRejects(aPromise: IJSPromise; const aExpectedError: Variant): Variant;
  89662. begin
  89663. Result:=InvokeJSVariantResult('assertRejects',[aPromise,aExpectedError]);
  89664. end;
  89665. procedure TJSExtensionTest.assertThrows(const aFunc: TFunction; const aExpectedError: Variant; const aMessage: UnicodeString);
  89666. var
  89667. m: TJOB_Method;
  89668. begin
  89669. m:=TJOB_Method.Create(TMethod(aFunc),@JOBCallFunction_);
  89670. try
  89671. InvokeJSNoResult('assertThrows',[m,aExpectedError,aMessage]);
  89672. finally
  89673. m.free;
  89674. end;
  89675. end;
  89676. procedure TJSExtensionTest.assertThrows(const aFunc: TFunction; const aExpectedError: Variant);
  89677. var
  89678. m: TJOB_Method;
  89679. begin
  89680. m:=TJOB_Method.Create(TMethod(aFunc),@JOBCallFunction_);
  89681. try
  89682. InvokeJSNoResult('assertThrows',[m,aExpectedError]);
  89683. finally
  89684. m.free;
  89685. end;
  89686. end;
  89687. class function TJSExtensionTest.JSClassName: UnicodeString;
  89688. begin
  89689. Result:='ExtensionTest';
  89690. end;
  89691. class function TJSExtensionTest.Cast(const Intf: IJSObject): IJSExtensionTest;
  89692. begin
  89693. Result:=TJSExtensionTest.JOBCast(Intf);
  89694. end;
  89695. procedure TJSExternal.AddSearchProvider;
  89696. begin
  89697. InvokeJSNoResult('AddSearchProvider',[]);
  89698. end;
  89699. procedure TJSExternal.IsSearchProviderInstalled;
  89700. begin
  89701. InvokeJSNoResult('IsSearchProviderInstalled',[]);
  89702. end;
  89703. class function TJSExternal.JSClassName: UnicodeString;
  89704. begin
  89705. Result:='External';
  89706. end;
  89707. class function TJSExternal.Cast(const Intf: IJSObject): IJSExternal;
  89708. begin
  89709. Result:=TJSExternal.JOBCast(Intf);
  89710. end;
  89711. function TJSFailedCertSecurityInfo._GeterrorCodeString: UnicodeString;
  89712. begin
  89713. Result:=ReadJSPropertyUnicodeString('errorCodeString');
  89714. end;
  89715. function TJSFailedCertSecurityInfo._GetoverridableErrorCategory: TOverridableErrorCategory;
  89716. begin
  89717. Result:=ReadJSPropertyUnicodeString('overridableErrorCategory');
  89718. end;
  89719. function TJSFailedCertSecurityInfo._GetvalidNotBefore: TDOMTimeStamp;
  89720. begin
  89721. Result:=ReadJSPropertyInt64('validNotBefore');
  89722. end;
  89723. function TJSFailedCertSecurityInfo._GetvalidNotAfter: TDOMTimeStamp;
  89724. begin
  89725. Result:=ReadJSPropertyInt64('validNotAfter');
  89726. end;
  89727. function TJSFailedCertSecurityInfo._GetissuerCommonName: UnicodeString;
  89728. begin
  89729. Result:=ReadJSPropertyUnicodeString('issuerCommonName');
  89730. end;
  89731. function TJSFailedCertSecurityInfo._GetcertValidityRangeNotAfter: TDOMTimeStamp;
  89732. begin
  89733. Result:=ReadJSPropertyInt64('certValidityRangeNotAfter');
  89734. end;
  89735. function TJSFailedCertSecurityInfo._GetcertValidityRangeNotBefore: TDOMTimeStamp;
  89736. begin
  89737. Result:=ReadJSPropertyInt64('certValidityRangeNotBefore');
  89738. end;
  89739. function TJSFailedCertSecurityInfo._GeterrorMessage: UnicodeString;
  89740. begin
  89741. Result:=ReadJSPropertyUnicodeString('errorMessage');
  89742. end;
  89743. function TJSFailedCertSecurityInfo._GethasHSTS: Boolean;
  89744. begin
  89745. Result:=ReadJSPropertyBoolean('hasHSTS');
  89746. end;
  89747. function TJSFailedCertSecurityInfo._GethasHPKP: Boolean;
  89748. begin
  89749. Result:=ReadJSPropertyBoolean('hasHPKP');
  89750. end;
  89751. function TJSFailedCertSecurityInfo._GetcertChainStrings: TUnicodeStringDynArray;
  89752. begin
  89753. Result:=ReadJSPropertyObject('certChainStrings',TJSArray) as TUnicodeStringDynArray;
  89754. end;
  89755. procedure TJSFailedCertSecurityInfo._SeterrorCodeString(const aValue : UnicodeString);
  89756. begin
  89757. WriteJSPropertyUnicodeString('errorCodeString',aValue);
  89758. end;
  89759. procedure TJSFailedCertSecurityInfo._SetoverridableErrorCategory(const aValue : TOverridableErrorCategory);
  89760. begin
  89761. WriteJSPropertyUnicodeString('overridableErrorCategory',aValue);
  89762. end;
  89763. procedure TJSFailedCertSecurityInfo._SetvalidNotBefore(const aValue : TDOMTimeStamp);
  89764. begin
  89765. WriteJSPropertyDouble('validNotBefore',aValue);
  89766. end;
  89767. procedure TJSFailedCertSecurityInfo._SetvalidNotAfter(const aValue : TDOMTimeStamp);
  89768. begin
  89769. WriteJSPropertyDouble('validNotAfter',aValue);
  89770. end;
  89771. procedure TJSFailedCertSecurityInfo._SetissuerCommonName(const aValue : UnicodeString);
  89772. begin
  89773. WriteJSPropertyUnicodeString('issuerCommonName',aValue);
  89774. end;
  89775. procedure TJSFailedCertSecurityInfo._SetcertValidityRangeNotAfter(const aValue : TDOMTimeStamp);
  89776. begin
  89777. WriteJSPropertyDouble('certValidityRangeNotAfter',aValue);
  89778. end;
  89779. procedure TJSFailedCertSecurityInfo._SetcertValidityRangeNotBefore(const aValue : TDOMTimeStamp);
  89780. begin
  89781. WriteJSPropertyDouble('certValidityRangeNotBefore',aValue);
  89782. end;
  89783. procedure TJSFailedCertSecurityInfo._SeterrorMessage(const aValue : UnicodeString);
  89784. begin
  89785. WriteJSPropertyUnicodeString('errorMessage',aValue);
  89786. end;
  89787. procedure TJSFailedCertSecurityInfo._SethasHSTS(const aValue : Boolean);
  89788. begin
  89789. WriteJSPropertyBoolean('hasHSTS',aValue);
  89790. end;
  89791. procedure TJSFailedCertSecurityInfo._SethasHPKP(const aValue : Boolean);
  89792. begin
  89793. WriteJSPropertyBoolean('hasHPKP',aValue);
  89794. end;
  89795. procedure TJSFailedCertSecurityInfo._SetcertChainStrings(const aValue : TUnicodeStringDynArray);
  89796. begin
  89797. WriteJSPropertyObject('certChainStrings',aValue);
  89798. end;
  89799. class function TJSFailedCertSecurityInfo.JSClassName: UnicodeString;
  89800. begin
  89801. Result:='Object';
  89802. end;
  89803. class function TJSFailedCertSecurityInfo.Cast(const Intf: IJSObject): IJSFailedCertSecurityInfo;
  89804. begin
  89805. Result:=TJSFailedCertSecurityInfo.JOBCast(Intf);
  89806. end;
  89807. function TJSFakePluginTagInit._GethandlerURI: UnicodeString;
  89808. begin
  89809. Result:=ReadJSPropertyUnicodeString('handlerURI');
  89810. end;
  89811. function TJSFakePluginTagInit._GetmimeEntries: TJSFakePluginMimeEntryDynArray;
  89812. begin
  89813. Result:=ReadJSPropertyObject('mimeEntries',TJSArray) as TJSFakePluginMimeEntryDynArray;
  89814. end;
  89815. function TJSFakePluginTagInit._GetniceName: UnicodeString;
  89816. begin
  89817. Result:=ReadJSPropertyUnicodeString('niceName');
  89818. end;
  89819. function TJSFakePluginTagInit._GetfullPath: UnicodeString;
  89820. begin
  89821. Result:=ReadJSPropertyUnicodeString('fullPath');
  89822. end;
  89823. function TJSFakePluginTagInit._Getname: UnicodeString;
  89824. begin
  89825. Result:=ReadJSPropertyUnicodeString('name');
  89826. end;
  89827. function TJSFakePluginTagInit._Getdescription: UnicodeString;
  89828. begin
  89829. Result:=ReadJSPropertyUnicodeString('description');
  89830. end;
  89831. function TJSFakePluginTagInit._GetfileName: UnicodeString;
  89832. begin
  89833. Result:=ReadJSPropertyUnicodeString('fileName');
  89834. end;
  89835. function TJSFakePluginTagInit._Getversion: UnicodeString;
  89836. begin
  89837. Result:=ReadJSPropertyUnicodeString('version');
  89838. end;
  89839. function TJSFakePluginTagInit._GetsandboxScript: UnicodeString;
  89840. begin
  89841. Result:=ReadJSPropertyUnicodeString('sandboxScript');
  89842. end;
  89843. procedure TJSFakePluginTagInit._SethandlerURI(const aValue : UnicodeString);
  89844. begin
  89845. WriteJSPropertyUnicodeString('handlerURI',aValue);
  89846. end;
  89847. procedure TJSFakePluginTagInit._SetmimeEntries(const aValue : TJSFakePluginMimeEntryDynArray);
  89848. begin
  89849. WriteJSPropertyObject('mimeEntries',aValue);
  89850. end;
  89851. procedure TJSFakePluginTagInit._SetniceName(const aValue : UnicodeString);
  89852. begin
  89853. WriteJSPropertyUnicodeString('niceName',aValue);
  89854. end;
  89855. procedure TJSFakePluginTagInit._SetfullPath(const aValue : UnicodeString);
  89856. begin
  89857. WriteJSPropertyUnicodeString('fullPath',aValue);
  89858. end;
  89859. procedure TJSFakePluginTagInit._Setname(const aValue : UnicodeString);
  89860. begin
  89861. WriteJSPropertyUnicodeString('name',aValue);
  89862. end;
  89863. procedure TJSFakePluginTagInit._Setdescription(const aValue : UnicodeString);
  89864. begin
  89865. WriteJSPropertyUnicodeString('description',aValue);
  89866. end;
  89867. procedure TJSFakePluginTagInit._SetfileName(const aValue : UnicodeString);
  89868. begin
  89869. WriteJSPropertyUnicodeString('fileName',aValue);
  89870. end;
  89871. procedure TJSFakePluginTagInit._Setversion(const aValue : UnicodeString);
  89872. begin
  89873. WriteJSPropertyUnicodeString('version',aValue);
  89874. end;
  89875. procedure TJSFakePluginTagInit._SetsandboxScript(const aValue : UnicodeString);
  89876. begin
  89877. WriteJSPropertyUnicodeString('sandboxScript',aValue);
  89878. end;
  89879. class function TJSFakePluginTagInit.JSClassName: UnicodeString;
  89880. begin
  89881. Result:='Object';
  89882. end;
  89883. class function TJSFakePluginTagInit.Cast(const Intf: IJSObject): IJSFakePluginTagInit;
  89884. begin
  89885. Result:=TJSFakePluginTagInit.JOBCast(Intf);
  89886. end;
  89887. function TJSFakePluginMimeEntry._Gettype_: UnicodeString;
  89888. begin
  89889. Result:=ReadJSPropertyUnicodeString('type');
  89890. end;
  89891. function TJSFakePluginMimeEntry._Getdescription: UnicodeString;
  89892. begin
  89893. Result:=ReadJSPropertyUnicodeString('description');
  89894. end;
  89895. function TJSFakePluginMimeEntry._Getextension: UnicodeString;
  89896. begin
  89897. Result:=ReadJSPropertyUnicodeString('extension');
  89898. end;
  89899. procedure TJSFakePluginMimeEntry._Settype_(const aValue : UnicodeString);
  89900. begin
  89901. WriteJSPropertyUnicodeString('type',aValue);
  89902. end;
  89903. procedure TJSFakePluginMimeEntry._Setdescription(const aValue : UnicodeString);
  89904. begin
  89905. WriteJSPropertyUnicodeString('description',aValue);
  89906. end;
  89907. procedure TJSFakePluginMimeEntry._Setextension(const aValue : UnicodeString);
  89908. begin
  89909. WriteJSPropertyUnicodeString('extension',aValue);
  89910. end;
  89911. class function TJSFakePluginMimeEntry.JSClassName: UnicodeString;
  89912. begin
  89913. Result:='Object';
  89914. end;
  89915. class function TJSFakePluginMimeEntry.Cast(const Intf: IJSObject): IJSFakePluginMimeEntry;
  89916. begin
  89917. Result:=TJSFakePluginMimeEntry.JOBCast(Intf);
  89918. end;
  89919. function TJSFeaturePolicy.allowsFeature(const aFeature: UnicodeString; const aOrigin: UnicodeString): Boolean;
  89920. begin
  89921. Result:=InvokeJSBooleanResult('allowsFeature',[aFeature,aOrigin]);
  89922. end;
  89923. function TJSFeaturePolicy.allowsFeature(const aFeature: UnicodeString): Boolean;
  89924. begin
  89925. Result:=InvokeJSBooleanResult('allowsFeature',[aFeature]);
  89926. end;
  89927. function TJSFeaturePolicy.features: TUnicodeStringDynArray;
  89928. begin
  89929. Result:=InvokeJSObjectResult('features',[],TJSArray) as TUnicodeStringDynArray;
  89930. end;
  89931. function TJSFeaturePolicy.allowedFeatures: TUnicodeStringDynArray;
  89932. begin
  89933. Result:=InvokeJSObjectResult('allowedFeatures',[],TJSArray) as TUnicodeStringDynArray;
  89934. end;
  89935. function TJSFeaturePolicy.getAllowlistForFeature(const aFeature: UnicodeString): TUnicodeStringDynArray;
  89936. begin
  89937. Result:=InvokeJSObjectResult('getAllowlistForFeature',[aFeature],TJSArray) as TUnicodeStringDynArray;
  89938. end;
  89939. class function TJSFeaturePolicy.JSClassName: UnicodeString;
  89940. begin
  89941. Result:='FeaturePolicy';
  89942. end;
  89943. class function TJSFeaturePolicy.Cast(const Intf: IJSObject): IJSFeaturePolicy;
  89944. begin
  89945. Result:=TJSFeaturePolicy.JOBCast(Intf);
  89946. end;
  89947. function TJSFeaturePolicyViolationReportBody._GetfeatureId: UnicodeString;
  89948. begin
  89949. Result:=ReadJSPropertyUnicodeString('featureId');
  89950. end;
  89951. function TJSFeaturePolicyViolationReportBody._GetsourceFile: UnicodeString;
  89952. begin
  89953. Result:=ReadJSPropertyUnicodeString('sourceFile');
  89954. end;
  89955. function TJSFeaturePolicyViolationReportBody._GetlineNumber: LongInt;
  89956. begin
  89957. Result:=ReadJSPropertyLongInt('lineNumber');
  89958. end;
  89959. function TJSFeaturePolicyViolationReportBody._GetcolumnNumber: LongInt;
  89960. begin
  89961. Result:=ReadJSPropertyLongInt('columnNumber');
  89962. end;
  89963. function TJSFeaturePolicyViolationReportBody._Getdisposition: UnicodeString;
  89964. begin
  89965. Result:=ReadJSPropertyUnicodeString('disposition');
  89966. end;
  89967. class function TJSFeaturePolicyViolationReportBody.JSClassName: UnicodeString;
  89968. begin
  89969. Result:='FeaturePolicyViolationReportBody';
  89970. end;
  89971. class function TJSFeaturePolicyViolationReportBody.Cast(const Intf: IJSObject): IJSFeaturePolicyViolationReportBody;
  89972. begin
  89973. Result:=TJSFeaturePolicyViolationReportBody.JOBCast(Intf);
  89974. end;
  89975. function TJSBody._GetbodyUsed: Boolean;
  89976. begin
  89977. Result:=ReadJSPropertyBoolean('bodyUsed');
  89978. end;
  89979. function TJSBody.arrayBuffer: IJSPromise; // Promise<ArrayBuffer>
  89980. begin
  89981. Result:=InvokeJSObjectResult('arrayBuffer',[],TJSPromise) as IJSPromise;
  89982. end;
  89983. function TJSBody.blob: IJSPromise; // Promise<Blob>
  89984. begin
  89985. Result:=InvokeJSObjectResult('blob',[],TJSPromise) as IJSPromise;
  89986. end;
  89987. function TJSBody.formData: IJSPromise; // Promise<FormData>
  89988. begin
  89989. Result:=InvokeJSObjectResult('formData',[],TJSPromise) as IJSPromise;
  89990. end;
  89991. function TJSBody.json: IJSPromise; // Promise<JSON>
  89992. begin
  89993. Result:=InvokeJSObjectResult('json',[],TJSPromise) as IJSPromise;
  89994. end;
  89995. function TJSBody.text: IJSPromise; // Promise<USVString>
  89996. begin
  89997. Result:=InvokeJSObjectResult('text',[],TJSPromise) as IJSPromise;
  89998. end;
  89999. class function TJSBody.JSClassName: UnicodeString;
  90000. begin
  90001. Result:='Body';
  90002. end;
  90003. class function TJSBody.Cast(const Intf: IJSObject): IJSBody;
  90004. begin
  90005. Result:=TJSBody.JOBCast(Intf);
  90006. end;
  90007. function TJSFetchReadableStreamReadDataDone._Getdone: Boolean;
  90008. begin
  90009. Result:=ReadJSPropertyBoolean('done');
  90010. end;
  90011. procedure TJSFetchReadableStreamReadDataDone._Setdone(const aValue : Boolean);
  90012. begin
  90013. WriteJSPropertyBoolean('done',aValue);
  90014. end;
  90015. class function TJSFetchReadableStreamReadDataDone.JSClassName: UnicodeString;
  90016. begin
  90017. Result:='Object';
  90018. end;
  90019. class function TJSFetchReadableStreamReadDataDone.Cast(const Intf: IJSObject): IJSFetchReadableStreamReadDataDone;
  90020. begin
  90021. Result:=TJSFetchReadableStreamReadDataDone.JOBCast(Intf);
  90022. end;
  90023. function TJSFetchReadableStreamReadDataArray._Getvalue: IJSUint8Array;
  90024. begin
  90025. Result:=ReadJSPropertyObject('value',TJSUint8Array) as IJSUint8Array;
  90026. end;
  90027. procedure TJSFetchReadableStreamReadDataArray._Setvalue(const aValue : IJSUint8Array);
  90028. begin
  90029. WriteJSPropertyObject('value',aValue);
  90030. end;
  90031. class function TJSFetchReadableStreamReadDataArray.JSClassName: UnicodeString;
  90032. begin
  90033. Result:='Object';
  90034. end;
  90035. class function TJSFetchReadableStreamReadDataArray.Cast(const Intf: IJSObject): IJSFetchReadableStreamReadDataArray;
  90036. begin
  90037. Result:=TJSFetchReadableStreamReadDataArray.JOBCast(Intf);
  90038. end;
  90039. function TJSFetchEvent._Getrequest: IJSRequest;
  90040. begin
  90041. Result:=ReadJSPropertyObject('request',TJSRequest) as IJSRequest;
  90042. end;
  90043. function TJSFetchEvent._GetpreloadResponse: IJSPromise;
  90044. begin
  90045. Result:=ReadJSPropertyObject('preloadResponse',TJSPromise) as IJSPromise;
  90046. end;
  90047. function TJSFetchEvent._GetclientId: UnicodeString;
  90048. begin
  90049. Result:=ReadJSPropertyUnicodeString('clientId');
  90050. end;
  90051. function TJSFetchEvent._GetresultingClientId: UnicodeString;
  90052. begin
  90053. Result:=ReadJSPropertyUnicodeString('resultingClientId');
  90054. end;
  90055. function TJSFetchEvent._Gethandled: IJSPromise;
  90056. begin
  90057. Result:=ReadJSPropertyObject('handled',TJSPromise) as IJSPromise;
  90058. end;
  90059. constructor TJSFetchEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSFetchEventInit);
  90060. begin
  90061. JOBCreate([aType_,aEventInitDict]);
  90062. end;
  90063. procedure TJSFetchEvent.respondWith(aR: IJSPromise);
  90064. begin
  90065. InvokeJSNoResult('respondWith',[aR]);
  90066. end;
  90067. class function TJSFetchEvent.JSClassName: UnicodeString;
  90068. begin
  90069. Result:='FetchEvent';
  90070. end;
  90071. class function TJSFetchEvent.Cast(const Intf: IJSObject): IJSFetchEvent;
  90072. begin
  90073. Result:=TJSFetchEvent.JOBCast(Intf);
  90074. end;
  90075. function TJSFetchEventInit._Getrequest: IJSRequest;
  90076. begin
  90077. Result:=ReadJSPropertyObject('request',TJSRequest) as IJSRequest;
  90078. end;
  90079. function TJSFetchEventInit._GetclientId: UnicodeString;
  90080. begin
  90081. Result:=ReadJSPropertyUnicodeString('clientId');
  90082. end;
  90083. function TJSFetchEventInit._GetresultingClientId: UnicodeString;
  90084. begin
  90085. Result:=ReadJSPropertyUnicodeString('resultingClientId');
  90086. end;
  90087. procedure TJSFetchEventInit._Setrequest(const aValue : IJSRequest);
  90088. begin
  90089. WriteJSPropertyObject('request',aValue);
  90090. end;
  90091. procedure TJSFetchEventInit._SetclientId(const aValue : UnicodeString);
  90092. begin
  90093. WriteJSPropertyUnicodeString('clientId',aValue);
  90094. end;
  90095. procedure TJSFetchEventInit._SetresultingClientId(const aValue : UnicodeString);
  90096. begin
  90097. WriteJSPropertyUnicodeString('resultingClientId',aValue);
  90098. end;
  90099. class function TJSFetchEventInit.JSClassName: UnicodeString;
  90100. begin
  90101. Result:='Object';
  90102. end;
  90103. class function TJSFetchEventInit.Cast(const Intf: IJSObject): IJSFetchEventInit;
  90104. begin
  90105. Result:=TJSFetchEventInit.JOBCast(Intf);
  90106. end;
  90107. function TJSFetchObserver._Getstate: TFetchState;
  90108. begin
  90109. Result:=ReadJSPropertyUnicodeString('state');
  90110. end;
  90111. function TJSFetchObserver._Getonstatechange: TEventHandler;
  90112. begin
  90113. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstatechange')));
  90114. end;
  90115. function TJSFetchObserver._Getonrequestprogress: TEventHandler;
  90116. begin
  90117. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onrequestprogress')));
  90118. end;
  90119. function TJSFetchObserver._Getonresponseprogress: TEventHandler;
  90120. begin
  90121. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresponseprogress')));
  90122. end;
  90123. procedure TJSFetchObserver._Setonstatechange(const aValue : TEventHandler);
  90124. begin
  90125. WriteJSPropertyMethod('onstatechange',TMethod(aValue));
  90126. end;
  90127. procedure TJSFetchObserver._Setonrequestprogress(const aValue : TEventHandler);
  90128. begin
  90129. WriteJSPropertyMethod('onrequestprogress',TMethod(aValue));
  90130. end;
  90131. procedure TJSFetchObserver._Setonresponseprogress(const aValue : TEventHandler);
  90132. begin
  90133. WriteJSPropertyMethod('onresponseprogress',TMethod(aValue));
  90134. end;
  90135. class function TJSFetchObserver.JSClassName: UnicodeString;
  90136. begin
  90137. Result:='FetchObserver';
  90138. end;
  90139. class function TJSFetchObserver.Cast(const Intf: IJSObject): IJSFetchObserver;
  90140. begin
  90141. Result:=TJSFetchObserver.JOBCast(Intf);
  90142. end;
  90143. class function TJSnsIFile.JSClassName: UnicodeString;
  90144. begin
  90145. Result:='nsIFile';
  90146. end;
  90147. class function TJSnsIFile.Cast(const Intf: IJSObject): IJSnsIFile;
  90148. begin
  90149. Result:=TJSnsIFile.JOBCast(Intf);
  90150. end;
  90151. function TJSFile._Getname: UnicodeString;
  90152. begin
  90153. Result:=ReadJSPropertyUnicodeString('name');
  90154. end;
  90155. function TJSFile._GetlastModified: Int64;
  90156. begin
  90157. Result:=ReadJSPropertyInt64('lastModified');
  90158. end;
  90159. function TJSFile._GetwebkitRelativePath: UnicodeString;
  90160. begin
  90161. Result:=ReadJSPropertyUnicodeString('webkitRelativePath');
  90162. end;
  90163. constructor TJSFile.Create(const aFileBits: TBlobPartDynArray; const aFileName: UnicodeString; const aOptions: TJSFilePropertyBag);
  90164. begin
  90165. JOBCreate([aFileBits,aFileName,aOptions]);
  90166. end;
  90167. constructor TJSFile.Create(const aFileBits: TBlobPartDynArray; const aFileName: UnicodeString);
  90168. begin
  90169. JOBCreate([aFileBits,aFileName]);
  90170. end;
  90171. class function TJSFile.JSClassName: UnicodeString;
  90172. begin
  90173. Result:='File';
  90174. end;
  90175. class function TJSFile.Cast(const Intf: IJSObject): IJSFile;
  90176. begin
  90177. Result:=TJSFile.JOBCast(Intf);
  90178. end;
  90179. function TJSFilePropertyBag._GetlastModified: Int64;
  90180. begin
  90181. Result:=ReadJSPropertyInt64('lastModified');
  90182. end;
  90183. procedure TJSFilePropertyBag._SetlastModified(const aValue : Int64);
  90184. begin
  90185. WriteJSPropertyDouble('lastModified',aValue);
  90186. end;
  90187. class function TJSFilePropertyBag.JSClassName: UnicodeString;
  90188. begin
  90189. Result:='Object';
  90190. end;
  90191. class function TJSFilePropertyBag.Cast(const Intf: IJSObject): IJSFilePropertyBag;
  90192. begin
  90193. Result:=TJSFilePropertyBag.JOBCast(Intf);
  90194. end;
  90195. function TJSChromeFilePropertyBag._Getname: UnicodeString;
  90196. begin
  90197. Result:=ReadJSPropertyUnicodeString('name');
  90198. end;
  90199. function TJSChromeFilePropertyBag._GetexistenceCheck: Boolean;
  90200. begin
  90201. Result:=ReadJSPropertyBoolean('existenceCheck');
  90202. end;
  90203. procedure TJSChromeFilePropertyBag._Setname(const aValue : UnicodeString);
  90204. begin
  90205. WriteJSPropertyUnicodeString('name',aValue);
  90206. end;
  90207. procedure TJSChromeFilePropertyBag._SetexistenceCheck(const aValue : Boolean);
  90208. begin
  90209. WriteJSPropertyBoolean('existenceCheck',aValue);
  90210. end;
  90211. class function TJSChromeFilePropertyBag.JSClassName: UnicodeString;
  90212. begin
  90213. Result:='Object';
  90214. end;
  90215. class function TJSChromeFilePropertyBag.Cast(const Intf: IJSObject): IJSChromeFilePropertyBag;
  90216. begin
  90217. Result:=TJSChromeFilePropertyBag.JOBCast(Intf);
  90218. end;
  90219. function TJSFileList._Getlength_: Cardinal;
  90220. begin
  90221. Result:=ReadJSPropertyInt64('length');
  90222. end;
  90223. function TJSFileList.item(aIndex: Cardinal): IJSFile;
  90224. begin
  90225. Result:=InvokeJSObjectResult('item',[aIndex],TJSFile) as IJSFile;
  90226. end;
  90227. class function TJSFileList.JSClassName: UnicodeString;
  90228. begin
  90229. Result:='FileList';
  90230. end;
  90231. class function TJSFileList.Cast(const Intf: IJSObject): IJSFileList;
  90232. begin
  90233. Result:=TJSFileList.JOBCast(Intf);
  90234. end;
  90235. function TJSFileReader._GetreadyState: Word;
  90236. begin
  90237. Result:=ReadJSPropertyLongInt('readyState');
  90238. end;
  90239. function TJSFileReader._Getresult: TFileReader_result_Type;
  90240. begin
  90241. Result:=ReadJSPropertyVariant('result');
  90242. end;
  90243. function TJSFileReader._Geterror: IJSDOMException;
  90244. begin
  90245. Result:=ReadJSPropertyObject('error',TJSDOMException) as IJSDOMException;
  90246. end;
  90247. function TJSFileReader._Getonloadstart: TEventHandler;
  90248. begin
  90249. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadstart')));
  90250. end;
  90251. function TJSFileReader._Getonprogress: TEventHandler;
  90252. begin
  90253. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onprogress')));
  90254. end;
  90255. function TJSFileReader._Getonload: TEventHandler;
  90256. begin
  90257. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onload')));
  90258. end;
  90259. function TJSFileReader._Getonabort: TEventHandler;
  90260. begin
  90261. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  90262. end;
  90263. function TJSFileReader._Getonerror: TEventHandler;
  90264. begin
  90265. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  90266. end;
  90267. function TJSFileReader._Getonloadend: TEventHandler;
  90268. begin
  90269. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadend')));
  90270. end;
  90271. procedure TJSFileReader._Setonloadstart(const aValue : TEventHandler);
  90272. begin
  90273. WriteJSPropertyMethod('onloadstart',TMethod(aValue));
  90274. end;
  90275. procedure TJSFileReader._Setonprogress(const aValue : TEventHandler);
  90276. begin
  90277. WriteJSPropertyMethod('onprogress',TMethod(aValue));
  90278. end;
  90279. procedure TJSFileReader._Setonload(const aValue : TEventHandler);
  90280. begin
  90281. WriteJSPropertyMethod('onload',TMethod(aValue));
  90282. end;
  90283. procedure TJSFileReader._Setonabort(const aValue : TEventHandler);
  90284. begin
  90285. WriteJSPropertyMethod('onabort',TMethod(aValue));
  90286. end;
  90287. procedure TJSFileReader._Setonerror(const aValue : TEventHandler);
  90288. begin
  90289. WriteJSPropertyMethod('onerror',TMethod(aValue));
  90290. end;
  90291. procedure TJSFileReader._Setonloadend(const aValue : TEventHandler);
  90292. begin
  90293. WriteJSPropertyMethod('onloadend',TMethod(aValue));
  90294. end;
  90295. constructor TJSFileReader.Create;
  90296. begin
  90297. JOBCreate([]);
  90298. end;
  90299. procedure TJSFileReader.readAsArrayBuffer(aBlob: IJSBlob);
  90300. begin
  90301. InvokeJSNoResult('readAsArrayBuffer',[aBlob]);
  90302. end;
  90303. procedure TJSFileReader.readAsBinaryString(aFiledata: IJSBlob);
  90304. begin
  90305. InvokeJSNoResult('readAsBinaryString',[aFiledata]);
  90306. end;
  90307. procedure TJSFileReader.readAsText(aBlob: IJSBlob; const aLabel_: UnicodeString);
  90308. begin
  90309. InvokeJSNoResult('readAsText',[aBlob,aLabel_]);
  90310. end;
  90311. procedure TJSFileReader.readAsText(aBlob: IJSBlob);
  90312. begin
  90313. InvokeJSNoResult('readAsText',[aBlob]);
  90314. end;
  90315. procedure TJSFileReader.readAsDataURL(aBlob: IJSBlob);
  90316. begin
  90317. InvokeJSNoResult('readAsDataURL',[aBlob]);
  90318. end;
  90319. procedure TJSFileReader.abort;
  90320. begin
  90321. InvokeJSNoResult('abort',[]);
  90322. end;
  90323. class function TJSFileReader.JSClassName: UnicodeString;
  90324. begin
  90325. Result:='FileReader';
  90326. end;
  90327. class function TJSFileReader.Cast(const Intf: IJSObject): IJSFileReader;
  90328. begin
  90329. Result:=TJSFileReader.JOBCast(Intf);
  90330. end;
  90331. constructor TJSFileReaderSync.Create;
  90332. begin
  90333. JOBCreate([]);
  90334. end;
  90335. function TJSFileReaderSync.readAsArrayBuffer(aBlob: IJSBlob): IJSArrayBuffer;
  90336. begin
  90337. Result:=InvokeJSObjectResult('readAsArrayBuffer',[aBlob],TJSArray) as IJSArrayBuffer;
  90338. end;
  90339. function TJSFileReaderSync.readAsBinaryString(aBlob: IJSBlob): UnicodeString;
  90340. begin
  90341. Result:=InvokeJSUnicodeStringResult('readAsBinaryString',[aBlob]);
  90342. end;
  90343. function TJSFileReaderSync.readAsText(aBlob: IJSBlob; const aEncoding: UnicodeString): UnicodeString;
  90344. begin
  90345. Result:=InvokeJSUnicodeStringResult('readAsText',[aBlob,aEncoding]);
  90346. end;
  90347. function TJSFileReaderSync.readAsText(aBlob: IJSBlob): UnicodeString;
  90348. begin
  90349. Result:=InvokeJSUnicodeStringResult('readAsText',[aBlob]);
  90350. end;
  90351. function TJSFileReaderSync.readAsDataURL(aBlob: IJSBlob): UnicodeString;
  90352. begin
  90353. Result:=InvokeJSUnicodeStringResult('readAsDataURL',[aBlob]);
  90354. end;
  90355. class function TJSFileReaderSync.JSClassName: UnicodeString;
  90356. begin
  90357. Result:='FileReaderSync';
  90358. end;
  90359. class function TJSFileReaderSync.Cast(const Intf: IJSObject): IJSFileReaderSync;
  90360. begin
  90361. Result:=TJSFileReaderSync.JOBCast(Intf);
  90362. end;
  90363. function TJSFileSystemFlags._Getcreate: Boolean;
  90364. begin
  90365. Result:=ReadJSPropertyBoolean('create');
  90366. end;
  90367. function TJSFileSystemFlags._Getexclusive: Boolean;
  90368. begin
  90369. Result:=ReadJSPropertyBoolean('exclusive');
  90370. end;
  90371. procedure TJSFileSystemFlags._Setcreate(const aValue : Boolean);
  90372. begin
  90373. WriteJSPropertyBoolean('create',aValue);
  90374. end;
  90375. procedure TJSFileSystemFlags._Setexclusive(const aValue : Boolean);
  90376. begin
  90377. WriteJSPropertyBoolean('exclusive',aValue);
  90378. end;
  90379. class function TJSFileSystemFlags.JSClassName: UnicodeString;
  90380. begin
  90381. Result:='Object';
  90382. end;
  90383. class function TJSFileSystemFlags.Cast(const Intf: IJSObject): IJSFileSystemFlags;
  90384. begin
  90385. Result:=TJSFileSystemFlags.JOBCast(Intf);
  90386. end;
  90387. function TJSFileSystem._Getname: UnicodeString;
  90388. begin
  90389. Result:=ReadJSPropertyUnicodeString('name');
  90390. end;
  90391. function TJSFileSystem._Getroot: IJSFileSystemDirectoryEntry;
  90392. begin
  90393. Result:=ReadJSPropertyObject('root',TJSFileSystemDirectoryEntry) as IJSFileSystemDirectoryEntry;
  90394. end;
  90395. class function TJSFileSystem.JSClassName: UnicodeString;
  90396. begin
  90397. Result:='FileSystem';
  90398. end;
  90399. class function TJSFileSystem.Cast(const Intf: IJSObject): IJSFileSystem;
  90400. begin
  90401. Result:=TJSFileSystem.JOBCast(Intf);
  90402. end;
  90403. function TJSFileSystemDirectoryEntry.createReader: IJSFileSystemDirectoryReader;
  90404. begin
  90405. Result:=InvokeJSObjectResult('createReader',[],TJSFileSystemDirectoryReader) as IJSFileSystemDirectoryReader;
  90406. end;
  90407. procedure TJSFileSystemDirectoryEntry.getFile(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback; const aErrorCallback: TErrorCallback);
  90408. var
  90409. m: TJOB_Method;
  90410. m2: TJOB_Method;
  90411. begin
  90412. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallFileSystemEntryCallback);
  90413. m2:=TJOB_Method.Create(TMethod(aErrorCallback),@JOBCallErrorCallback);
  90414. try
  90415. InvokeJSNoResult('getFile',[aPath,aOptions,m,m2]);
  90416. finally
  90417. m.free;
  90418. m2.free;
  90419. end;
  90420. end;
  90421. procedure TJSFileSystemDirectoryEntry.getFile;
  90422. begin
  90423. InvokeJSNoResult('getFile',[]);
  90424. end;
  90425. procedure TJSFileSystemDirectoryEntry.getFile(const aPath: UnicodeString);
  90426. begin
  90427. InvokeJSNoResult('getFile',[aPath]);
  90428. end;
  90429. procedure TJSFileSystemDirectoryEntry.getFile(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags);
  90430. begin
  90431. InvokeJSNoResult('getFile',[aPath,aOptions]);
  90432. end;
  90433. procedure TJSFileSystemDirectoryEntry.getFile(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback);
  90434. var
  90435. m: TJOB_Method;
  90436. begin
  90437. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallFileSystemEntryCallback);
  90438. try
  90439. InvokeJSNoResult('getFile',[aPath,aOptions,m]);
  90440. finally
  90441. m.free;
  90442. end;
  90443. end;
  90444. procedure TJSFileSystemDirectoryEntry.getDirectory(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback; const aErrorCallback: TErrorCallback);
  90445. var
  90446. m: TJOB_Method;
  90447. m2: TJOB_Method;
  90448. begin
  90449. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallFileSystemEntryCallback);
  90450. m2:=TJOB_Method.Create(TMethod(aErrorCallback),@JOBCallErrorCallback);
  90451. try
  90452. InvokeJSNoResult('getDirectory',[aPath,aOptions,m,m2]);
  90453. finally
  90454. m.free;
  90455. m2.free;
  90456. end;
  90457. end;
  90458. procedure TJSFileSystemDirectoryEntry.getDirectory;
  90459. begin
  90460. InvokeJSNoResult('getDirectory',[]);
  90461. end;
  90462. procedure TJSFileSystemDirectoryEntry.getDirectory(const aPath: UnicodeString);
  90463. begin
  90464. InvokeJSNoResult('getDirectory',[aPath]);
  90465. end;
  90466. procedure TJSFileSystemDirectoryEntry.getDirectory(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags);
  90467. begin
  90468. InvokeJSNoResult('getDirectory',[aPath,aOptions]);
  90469. end;
  90470. procedure TJSFileSystemDirectoryEntry.getDirectory(const aPath: UnicodeString; const aOptions: TJSFileSystemFlags; const aSuccessCallback: TFileSystemEntryCallback);
  90471. var
  90472. m: TJOB_Method;
  90473. begin
  90474. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallFileSystemEntryCallback);
  90475. try
  90476. InvokeJSNoResult('getDirectory',[aPath,aOptions,m]);
  90477. finally
  90478. m.free;
  90479. end;
  90480. end;
  90481. class function TJSFileSystemDirectoryEntry.JSClassName: UnicodeString;
  90482. begin
  90483. Result:='FileSystemDirectoryEntry';
  90484. end;
  90485. class function TJSFileSystemDirectoryEntry.Cast(const Intf: IJSObject): IJSFileSystemDirectoryEntry;
  90486. begin
  90487. Result:=TJSFileSystemDirectoryEntry.JOBCast(Intf);
  90488. end;
  90489. function TJSFileSystemGetFileOptions._Getcreate: Boolean;
  90490. begin
  90491. Result:=ReadJSPropertyBoolean('create');
  90492. end;
  90493. procedure TJSFileSystemGetFileOptions._Setcreate(const aValue : Boolean);
  90494. begin
  90495. WriteJSPropertyBoolean('create',aValue);
  90496. end;
  90497. class function TJSFileSystemGetFileOptions.JSClassName: UnicodeString;
  90498. begin
  90499. Result:='Object';
  90500. end;
  90501. class function TJSFileSystemGetFileOptions.Cast(const Intf: IJSObject): IJSFileSystemGetFileOptions;
  90502. begin
  90503. Result:=TJSFileSystemGetFileOptions.JOBCast(Intf);
  90504. end;
  90505. function TJSFileSystemGetDirectoryOptions._Getcreate: Boolean;
  90506. begin
  90507. Result:=ReadJSPropertyBoolean('create');
  90508. end;
  90509. procedure TJSFileSystemGetDirectoryOptions._Setcreate(const aValue : Boolean);
  90510. begin
  90511. WriteJSPropertyBoolean('create',aValue);
  90512. end;
  90513. class function TJSFileSystemGetDirectoryOptions.JSClassName: UnicodeString;
  90514. begin
  90515. Result:='Object';
  90516. end;
  90517. class function TJSFileSystemGetDirectoryOptions.Cast(const Intf: IJSObject): IJSFileSystemGetDirectoryOptions;
  90518. begin
  90519. Result:=TJSFileSystemGetDirectoryOptions.JOBCast(Intf);
  90520. end;
  90521. function TJSFileSystemRemoveOptions._Getrecursive: Boolean;
  90522. begin
  90523. Result:=ReadJSPropertyBoolean('recursive');
  90524. end;
  90525. procedure TJSFileSystemRemoveOptions._Setrecursive(const aValue : Boolean);
  90526. begin
  90527. WriteJSPropertyBoolean('recursive',aValue);
  90528. end;
  90529. class function TJSFileSystemRemoveOptions.JSClassName: UnicodeString;
  90530. begin
  90531. Result:='Object';
  90532. end;
  90533. class function TJSFileSystemRemoveOptions.Cast(const Intf: IJSObject): IJSFileSystemRemoveOptions;
  90534. begin
  90535. Result:=TJSFileSystemRemoveOptions.JOBCast(Intf);
  90536. end;
  90537. function TJSFileSystemDirectoryHandle.getFileHandle(const aName: UnicodeString; const aOptions: TJSFileSystemGetFileOptions): IJSPromise; // Promise<FileSystemFileHandle>
  90538. begin
  90539. Result:=InvokeJSObjectResult('getFileHandle',[aName,aOptions],TJSPromise) as IJSPromise;
  90540. end;
  90541. function TJSFileSystemDirectoryHandle.getFileHandle(const aName: UnicodeString): IJSPromise; // Promise<FileSystemFileHandle>
  90542. begin
  90543. Result:=InvokeJSObjectResult('getFileHandle',[aName],TJSPromise) as IJSPromise;
  90544. end;
  90545. function TJSFileSystemDirectoryHandle.getDirectoryHandle(const aName: UnicodeString; const aOptions: TJSFileSystemGetDirectoryOptions): IJSPromise; // Promise<FileSystemDirectoryHandle>
  90546. begin
  90547. Result:=InvokeJSObjectResult('getDirectoryHandle',[aName,aOptions],TJSPromise) as IJSPromise;
  90548. end;
  90549. function TJSFileSystemDirectoryHandle.getDirectoryHandle(const aName: UnicodeString): IJSPromise; // Promise<FileSystemDirectoryHandle>
  90550. begin
  90551. Result:=InvokeJSObjectResult('getDirectoryHandle',[aName],TJSPromise) as IJSPromise;
  90552. end;
  90553. function TJSFileSystemDirectoryHandle.removeEntry(const aName: UnicodeString; const aOptions: TJSFileSystemRemoveOptions): IJSPromise; // Promise<undefined>
  90554. begin
  90555. Result:=InvokeJSObjectResult('removeEntry',[aName,aOptions],TJSPromise) as IJSPromise;
  90556. end;
  90557. function TJSFileSystemDirectoryHandle.removeEntry(const aName: UnicodeString): IJSPromise; // Promise<undefined>
  90558. begin
  90559. Result:=InvokeJSObjectResult('removeEntry',[aName],TJSPromise) as IJSPromise;
  90560. end;
  90561. function TJSFileSystemDirectoryHandle.resolve(aPossibleDescendant: IJSFileSystemHandle): IJSPromise; // Promise<sequence>
  90562. begin
  90563. Result:=InvokeJSObjectResult('resolve',[aPossibleDescendant],TJSPromise) as IJSPromise;
  90564. end;
  90565. class function TJSFileSystemDirectoryHandle.JSClassName: UnicodeString;
  90566. begin
  90567. Result:='FileSystemDirectoryHandle';
  90568. end;
  90569. class function TJSFileSystemDirectoryHandle.Cast(const Intf: IJSObject): IJSFileSystemDirectoryHandle;
  90570. begin
  90571. Result:=TJSFileSystemDirectoryHandle.JOBCast(Intf);
  90572. end;
  90573. function TJSFileSystemDirectoryIterator.next: IJSPromise; // Promise<any>
  90574. begin
  90575. Result:=InvokeJSObjectResult('next',[],TJSPromise) as IJSPromise;
  90576. end;
  90577. class function TJSFileSystemDirectoryIterator.JSClassName: UnicodeString;
  90578. begin
  90579. Result:='FileSystemDirectoryIterator';
  90580. end;
  90581. class function TJSFileSystemDirectoryIterator.Cast(const Intf: IJSObject): IJSFileSystemDirectoryIterator;
  90582. begin
  90583. Result:=TJSFileSystemDirectoryIterator.JOBCast(Intf);
  90584. end;
  90585. procedure TJSFileSystemDirectoryReader.readEntries(const aSuccessCallback: TFileSystemEntriesCallback; const aErrorCallback: TErrorCallback);
  90586. var
  90587. m: TJOB_Method;
  90588. m2: TJOB_Method;
  90589. begin
  90590. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallFileSystemEntriesCallback);
  90591. m2:=TJOB_Method.Create(TMethod(aErrorCallback),@JOBCallErrorCallback);
  90592. try
  90593. InvokeJSNoResult('readEntries',[m,m2]);
  90594. finally
  90595. m.free;
  90596. m2.free;
  90597. end;
  90598. end;
  90599. procedure TJSFileSystemDirectoryReader.readEntries(const aSuccessCallback: TFileSystemEntriesCallback);
  90600. var
  90601. m: TJOB_Method;
  90602. begin
  90603. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallFileSystemEntriesCallback);
  90604. try
  90605. InvokeJSNoResult('readEntries',[m]);
  90606. finally
  90607. m.free;
  90608. end;
  90609. end;
  90610. class function TJSFileSystemDirectoryReader.JSClassName: UnicodeString;
  90611. begin
  90612. Result:='FileSystemDirectoryReader';
  90613. end;
  90614. class function TJSFileSystemDirectoryReader.Cast(const Intf: IJSObject): IJSFileSystemDirectoryReader;
  90615. begin
  90616. Result:=TJSFileSystemDirectoryReader.JOBCast(Intf);
  90617. end;
  90618. function TJSFileSystemEntry._GetisFile: Boolean;
  90619. begin
  90620. Result:=ReadJSPropertyBoolean('isFile');
  90621. end;
  90622. function TJSFileSystemEntry._GetisDirectory: Boolean;
  90623. begin
  90624. Result:=ReadJSPropertyBoolean('isDirectory');
  90625. end;
  90626. function TJSFileSystemEntry._Getname: UnicodeString;
  90627. begin
  90628. Result:=ReadJSPropertyUnicodeString('name');
  90629. end;
  90630. function TJSFileSystemEntry._GetfullPath: UnicodeString;
  90631. begin
  90632. Result:=ReadJSPropertyUnicodeString('fullPath');
  90633. end;
  90634. function TJSFileSystemEntry._Getfilesystem: IJSFileSystem;
  90635. begin
  90636. Result:=ReadJSPropertyObject('filesystem',TJSFileSystem) as IJSFileSystem;
  90637. end;
  90638. procedure TJSFileSystemEntry.getParent(const aSuccessCallback: TFileSystemEntryCallback; const aErrorCallback: TErrorCallback);
  90639. var
  90640. m: TJOB_Method;
  90641. m2: TJOB_Method;
  90642. begin
  90643. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallFileSystemEntryCallback);
  90644. m2:=TJOB_Method.Create(TMethod(aErrorCallback),@JOBCallErrorCallback);
  90645. try
  90646. InvokeJSNoResult('getParent',[m,m2]);
  90647. finally
  90648. m.free;
  90649. m2.free;
  90650. end;
  90651. end;
  90652. procedure TJSFileSystemEntry.getParent;
  90653. begin
  90654. InvokeJSNoResult('getParent',[]);
  90655. end;
  90656. procedure TJSFileSystemEntry.getParent(const aSuccessCallback: TFileSystemEntryCallback);
  90657. var
  90658. m: TJOB_Method;
  90659. begin
  90660. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallFileSystemEntryCallback);
  90661. try
  90662. InvokeJSNoResult('getParent',[m]);
  90663. finally
  90664. m.free;
  90665. end;
  90666. end;
  90667. class function TJSFileSystemEntry.JSClassName: UnicodeString;
  90668. begin
  90669. Result:='FileSystemEntry';
  90670. end;
  90671. class function TJSFileSystemEntry.Cast(const Intf: IJSObject): IJSFileSystemEntry;
  90672. begin
  90673. Result:=TJSFileSystemEntry.JOBCast(Intf);
  90674. end;
  90675. procedure TJSFileSystemFileEntry.file_(const aSuccessCallback: TFileCallback; const aErrorCallback: TErrorCallback);
  90676. var
  90677. m: TJOB_Method;
  90678. m2: TJOB_Method;
  90679. begin
  90680. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallFileCallback);
  90681. m2:=TJOB_Method.Create(TMethod(aErrorCallback),@JOBCallErrorCallback);
  90682. try
  90683. InvokeJSNoResult('file',[m,m2]);
  90684. finally
  90685. m.free;
  90686. m2.free;
  90687. end;
  90688. end;
  90689. procedure TJSFileSystemFileEntry.file_(const aSuccessCallback: TFileCallback);
  90690. var
  90691. m: TJOB_Method;
  90692. begin
  90693. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallFileCallback);
  90694. try
  90695. InvokeJSNoResult('file',[m]);
  90696. finally
  90697. m.free;
  90698. end;
  90699. end;
  90700. class function TJSFileSystemFileEntry.JSClassName: UnicodeString;
  90701. begin
  90702. Result:='FileSystemFileEntry';
  90703. end;
  90704. class function TJSFileSystemFileEntry.Cast(const Intf: IJSObject): IJSFileSystemFileEntry;
  90705. begin
  90706. Result:=TJSFileSystemFileEntry.JOBCast(Intf);
  90707. end;
  90708. function TJSFileSystemCreateWritableOptions._GetkeepExistingData: Boolean;
  90709. begin
  90710. Result:=ReadJSPropertyBoolean('keepExistingData');
  90711. end;
  90712. procedure TJSFileSystemCreateWritableOptions._SetkeepExistingData(const aValue : Boolean);
  90713. begin
  90714. WriteJSPropertyBoolean('keepExistingData',aValue);
  90715. end;
  90716. class function TJSFileSystemCreateWritableOptions.JSClassName: UnicodeString;
  90717. begin
  90718. Result:='Object';
  90719. end;
  90720. class function TJSFileSystemCreateWritableOptions.Cast(const Intf: IJSObject): IJSFileSystemCreateWritableOptions;
  90721. begin
  90722. Result:=TJSFileSystemCreateWritableOptions.JOBCast(Intf);
  90723. end;
  90724. function TJSFileSystemFileHandle.getFile: IJSPromise; // Promise<File>
  90725. begin
  90726. Result:=InvokeJSObjectResult('getFile',[],TJSPromise) as IJSPromise;
  90727. end;
  90728. function TJSFileSystemFileHandle.createWritable(const aOptions: TJSFileSystemCreateWritableOptions): IJSPromise; // Promise<FileSystemWritableFileStream>
  90729. begin
  90730. Result:=InvokeJSObjectResult('createWritable',[aOptions],TJSPromise) as IJSPromise;
  90731. end;
  90732. function TJSFileSystemFileHandle.createWritable: IJSPromise; // Promise<FileSystemWritableFileStream>
  90733. begin
  90734. Result:=InvokeJSObjectResult('createWritable',[],TJSPromise) as IJSPromise;
  90735. end;
  90736. function TJSFileSystemFileHandle.createSyncAccessHandle: IJSPromise; // Promise<FileSystemSyncAccessHandle>
  90737. begin
  90738. Result:=InvokeJSObjectResult('createSyncAccessHandle',[],TJSPromise) as IJSPromise;
  90739. end;
  90740. class function TJSFileSystemFileHandle.JSClassName: UnicodeString;
  90741. begin
  90742. Result:='FileSystemFileHandle';
  90743. end;
  90744. class function TJSFileSystemFileHandle.Cast(const Intf: IJSObject): IJSFileSystemFileHandle;
  90745. begin
  90746. Result:=TJSFileSystemFileHandle.JOBCast(Intf);
  90747. end;
  90748. function TJSFileSystemHandle._Getkind: TFileSystemHandleKind;
  90749. begin
  90750. Result:=ReadJSPropertyUnicodeString('kind');
  90751. end;
  90752. function TJSFileSystemHandle._Getname: UnicodeString;
  90753. begin
  90754. Result:=ReadJSPropertyUnicodeString('name');
  90755. end;
  90756. function TJSFileSystemHandle.move(const aName: UnicodeString): IJSPromise; // Promise<undefined>
  90757. begin
  90758. Result:=InvokeJSObjectResult('move',[aName],TJSPromise) as IJSPromise;
  90759. end;
  90760. function TJSFileSystemHandle.move(aParent: IJSFileSystemDirectoryHandle): IJSPromise; // Promise<undefined>
  90761. begin
  90762. Result:=InvokeJSObjectResult('move',[aParent],TJSPromise) as IJSPromise;
  90763. end;
  90764. function TJSFileSystemHandle.move(aParent: IJSFileSystemDirectoryHandle; const aName: UnicodeString): IJSPromise; // Promise<undefined>
  90765. begin
  90766. Result:=InvokeJSObjectResult('move',[aParent,aName],TJSPromise) as IJSPromise;
  90767. end;
  90768. function TJSFileSystemHandle.isSameEntry(aOther: IJSFileSystemHandle): IJSPromise; // Promise<boolean>
  90769. begin
  90770. Result:=InvokeJSObjectResult('isSameEntry',[aOther],TJSPromise) as IJSPromise;
  90771. end;
  90772. class function TJSFileSystemHandle.JSClassName: UnicodeString;
  90773. begin
  90774. Result:='FileSystemHandle';
  90775. end;
  90776. class function TJSFileSystemHandle.Cast(const Intf: IJSObject): IJSFileSystemHandle;
  90777. begin
  90778. Result:=TJSFileSystemHandle.JOBCast(Intf);
  90779. end;
  90780. function TJSFileSystemReadWriteOptions._Getat: QWord;
  90781. begin
  90782. Result:=ReadJSPropertyInt64('at');
  90783. end;
  90784. procedure TJSFileSystemReadWriteOptions._Setat(const aValue : QWord);
  90785. begin
  90786. WriteJSPropertyDouble('at',aValue);
  90787. end;
  90788. class function TJSFileSystemReadWriteOptions.JSClassName: UnicodeString;
  90789. begin
  90790. Result:='Object';
  90791. end;
  90792. class function TJSFileSystemReadWriteOptions.Cast(const Intf: IJSObject): IJSFileSystemReadWriteOptions;
  90793. begin
  90794. Result:=TJSFileSystemReadWriteOptions.JOBCast(Intf);
  90795. end;
  90796. function TJSFileSystemSyncAccessHandle.read(aBuffer: IJSArrayBuffer; const aOptions: TJSFileSystemReadWriteOptions): QWord;
  90797. begin
  90798. Result:=InvokeJSMaxIntResult('read',[aBuffer,aOptions]);
  90799. end;
  90800. function TJSFileSystemSyncAccessHandle.read(aBuffer: IJSArrayBufferView; const aOptions: TJSFileSystemReadWriteOptions): QWord;
  90801. begin
  90802. Result:=InvokeJSMaxIntResult('read',[aBuffer,aOptions]);
  90803. end;
  90804. function TJSFileSystemSyncAccessHandle.read(aBuffer: IJSArrayBufferView): QWord;
  90805. begin
  90806. Result:=InvokeJSMaxIntResult('read',[aBuffer]);
  90807. end;
  90808. function TJSFileSystemSyncAccessHandle.read(aBuffer: IJSArrayBuffer): QWord;
  90809. begin
  90810. Result:=InvokeJSMaxIntResult('read',[aBuffer]);
  90811. end;
  90812. function TJSFileSystemSyncAccessHandle.write(aBuffer: IJSArrayBuffer; const aOptions: TJSFileSystemReadWriteOptions): QWord;
  90813. begin
  90814. Result:=InvokeJSMaxIntResult('write',[aBuffer,aOptions]);
  90815. end;
  90816. function TJSFileSystemSyncAccessHandle.write(aBuffer: IJSArrayBufferView; const aOptions: TJSFileSystemReadWriteOptions): QWord;
  90817. begin
  90818. Result:=InvokeJSMaxIntResult('write',[aBuffer,aOptions]);
  90819. end;
  90820. function TJSFileSystemSyncAccessHandle.write(aBuffer: IJSArrayBufferView): QWord;
  90821. begin
  90822. Result:=InvokeJSMaxIntResult('write',[aBuffer]);
  90823. end;
  90824. function TJSFileSystemSyncAccessHandle.write(aBuffer: IJSArrayBuffer): QWord;
  90825. begin
  90826. Result:=InvokeJSMaxIntResult('write',[aBuffer]);
  90827. end;
  90828. procedure TJSFileSystemSyncAccessHandle.truncate(aSize: QWord);
  90829. begin
  90830. InvokeJSNoResult('truncate',[aSize]);
  90831. end;
  90832. function TJSFileSystemSyncAccessHandle.getSize: QWord;
  90833. begin
  90834. Result:=InvokeJSMaxIntResult('getSize',[]);
  90835. end;
  90836. procedure TJSFileSystemSyncAccessHandle.flush;
  90837. begin
  90838. InvokeJSNoResult('flush',[]);
  90839. end;
  90840. procedure TJSFileSystemSyncAccessHandle.close;
  90841. begin
  90842. InvokeJSNoResult('close',[]);
  90843. end;
  90844. class function TJSFileSystemSyncAccessHandle.JSClassName: UnicodeString;
  90845. begin
  90846. Result:='FileSystemSyncAccessHandle';
  90847. end;
  90848. class function TJSFileSystemSyncAccessHandle.Cast(const Intf: IJSObject): IJSFileSystemSyncAccessHandle;
  90849. begin
  90850. Result:=TJSFileSystemSyncAccessHandle.JOBCast(Intf);
  90851. end;
  90852. function TJSWriteParams._Gettype_: TWriteCommandType;
  90853. begin
  90854. Result:=ReadJSPropertyUnicodeString('type');
  90855. end;
  90856. function TJSWriteParams._Getsize: QWord;
  90857. begin
  90858. Result:=ReadJSPropertyInt64('size');
  90859. end;
  90860. function TJSWriteParams._Getposition: QWord;
  90861. begin
  90862. Result:=ReadJSPropertyInt64('position');
  90863. end;
  90864. function TJSWriteParams._Getdata: TWriteParams_data_Type;
  90865. begin
  90866. Result:=ReadJSPropertyVariant('data');
  90867. end;
  90868. procedure TJSWriteParams._Settype_(const aValue : TWriteCommandType);
  90869. begin
  90870. WriteJSPropertyUnicodeString('type',aValue);
  90871. end;
  90872. procedure TJSWriteParams._Setsize(const aValue : QWord);
  90873. begin
  90874. WriteJSPropertyDouble('size',aValue);
  90875. end;
  90876. procedure TJSWriteParams._Setposition(const aValue : QWord);
  90877. begin
  90878. WriteJSPropertyDouble('position',aValue);
  90879. end;
  90880. procedure TJSWriteParams._Setdata(const aValue : TWriteParams_data_Type);
  90881. begin
  90882. WriteJSPropertyVariant('data',aValue);
  90883. end;
  90884. class function TJSWriteParams.JSClassName: UnicodeString;
  90885. begin
  90886. Result:='Object';
  90887. end;
  90888. class function TJSWriteParams.Cast(const Intf: IJSObject): IJSWriteParams;
  90889. begin
  90890. Result:=TJSWriteParams.JOBCast(Intf);
  90891. end;
  90892. function TJSFileSystemWritableFileStream.write(aData: IJSBlob): IJSPromise; // Promise<undefined>
  90893. begin
  90894. Result:=InvokeJSObjectResult('write',[aData],TJSPromise) as IJSPromise;
  90895. end;
  90896. function TJSFileSystemWritableFileStream.write(aData: IJSBufferSource): IJSPromise; // Promise<undefined>
  90897. begin
  90898. Result:=InvokeJSObjectResult('write',[aData],TJSPromise) as IJSPromise;
  90899. end;
  90900. function TJSFileSystemWritableFileStream.write(const aData: UTF8String): IJSPromise; // Promise<undefined>
  90901. begin
  90902. Result:=InvokeJSObjectResult('write',[aData],TJSPromise) as IJSPromise;
  90903. end;
  90904. function TJSFileSystemWritableFileStream.write(const aData: TJSWriteParams): IJSPromise; // Promise<undefined>
  90905. begin
  90906. Result:=InvokeJSObjectResult('write',[aData],TJSPromise) as IJSPromise;
  90907. end;
  90908. function TJSFileSystemWritableFileStream.seek(aPosition: QWord): IJSPromise; // Promise<undefined>
  90909. begin
  90910. Result:=InvokeJSObjectResult('seek',[aPosition],TJSPromise) as IJSPromise;
  90911. end;
  90912. function TJSFileSystemWritableFileStream.truncate(aSize: QWord): IJSPromise; // Promise<undefined>
  90913. begin
  90914. Result:=InvokeJSObjectResult('truncate',[aSize],TJSPromise) as IJSPromise;
  90915. end;
  90916. class function TJSFileSystemWritableFileStream.JSClassName: UnicodeString;
  90917. begin
  90918. Result:='FileSystemWritableFileStream';
  90919. end;
  90920. class function TJSFileSystemWritableFileStream.Cast(const Intf: IJSObject): IJSFileSystemWritableFileStream;
  90921. begin
  90922. Result:=TJSFileSystemWritableFileStream.JOBCast(Intf);
  90923. end;
  90924. function TJSFocusEvent._GetrelatedTarget: IJSEventTarget;
  90925. begin
  90926. Result:=ReadJSPropertyObject('relatedTarget',TJSEventTarget) as IJSEventTarget;
  90927. end;
  90928. constructor TJSFocusEvent.Create(const aTypeArg: UnicodeString; const aFocusEventInitDict: TJSFocusEventInit);
  90929. begin
  90930. JOBCreate([aTypeArg,aFocusEventInitDict]);
  90931. end;
  90932. constructor TJSFocusEvent.Create(const aTypeArg: UnicodeString);
  90933. begin
  90934. JOBCreate([aTypeArg]);
  90935. end;
  90936. class function TJSFocusEvent.JSClassName: UnicodeString;
  90937. begin
  90938. Result:='FocusEvent';
  90939. end;
  90940. class function TJSFocusEvent.Cast(const Intf: IJSObject): IJSFocusEvent;
  90941. begin
  90942. Result:=TJSFocusEvent.JOBCast(Intf);
  90943. end;
  90944. function TJSFocusEventInit._GetrelatedTarget: IJSEventTarget;
  90945. begin
  90946. Result:=ReadJSPropertyObject('relatedTarget',TJSEventTarget) as IJSEventTarget;
  90947. end;
  90948. procedure TJSFocusEventInit._SetrelatedTarget(const aValue : IJSEventTarget);
  90949. begin
  90950. WriteJSPropertyObject('relatedTarget',aValue);
  90951. end;
  90952. class function TJSFocusEventInit.JSClassName: UnicodeString;
  90953. begin
  90954. Result:='Object';
  90955. end;
  90956. class function TJSFocusEventInit.Cast(const Intf: IJSObject): IJSFocusEventInit;
  90957. begin
  90958. Result:=TJSFocusEventInit.JOBCast(Intf);
  90959. end;
  90960. function TJSFontFaceDescriptors._Getstyle: UTF8String;
  90961. begin
  90962. Result:=ReadJSPropertyUTF8String('style');
  90963. end;
  90964. function TJSFontFaceDescriptors._Getweight: UTF8String;
  90965. begin
  90966. Result:=ReadJSPropertyUTF8String('weight');
  90967. end;
  90968. function TJSFontFaceDescriptors._Getstretch: UTF8String;
  90969. begin
  90970. Result:=ReadJSPropertyUTF8String('stretch');
  90971. end;
  90972. function TJSFontFaceDescriptors._GetunicodeRange: UTF8String;
  90973. begin
  90974. Result:=ReadJSPropertyUTF8String('unicodeRange');
  90975. end;
  90976. function TJSFontFaceDescriptors._Getvariant: UTF8String;
  90977. begin
  90978. Result:=ReadJSPropertyUTF8String('variant');
  90979. end;
  90980. function TJSFontFaceDescriptors._GetfeatureSettings: UTF8String;
  90981. begin
  90982. Result:=ReadJSPropertyUTF8String('featureSettings');
  90983. end;
  90984. function TJSFontFaceDescriptors._GetvariationSettings: UTF8String;
  90985. begin
  90986. Result:=ReadJSPropertyUTF8String('variationSettings');
  90987. end;
  90988. function TJSFontFaceDescriptors._Getdisplay: UTF8String;
  90989. begin
  90990. Result:=ReadJSPropertyUTF8String('display');
  90991. end;
  90992. function TJSFontFaceDescriptors._GetascentOverride: UTF8String;
  90993. begin
  90994. Result:=ReadJSPropertyUTF8String('ascentOverride');
  90995. end;
  90996. function TJSFontFaceDescriptors._GetdescentOverride: UTF8String;
  90997. begin
  90998. Result:=ReadJSPropertyUTF8String('descentOverride');
  90999. end;
  91000. function TJSFontFaceDescriptors._GetlineGapOverride: UTF8String;
  91001. begin
  91002. Result:=ReadJSPropertyUTF8String('lineGapOverride');
  91003. end;
  91004. function TJSFontFaceDescriptors._GetsizeAdjust: UTF8String;
  91005. begin
  91006. Result:=ReadJSPropertyUTF8String('sizeAdjust');
  91007. end;
  91008. procedure TJSFontFaceDescriptors._Setstyle(const aValue : UTF8String);
  91009. begin
  91010. WriteJSPropertyUTF8String('style',aValue);
  91011. end;
  91012. procedure TJSFontFaceDescriptors._Setweight(const aValue : UTF8String);
  91013. begin
  91014. WriteJSPropertyUTF8String('weight',aValue);
  91015. end;
  91016. procedure TJSFontFaceDescriptors._Setstretch(const aValue : UTF8String);
  91017. begin
  91018. WriteJSPropertyUTF8String('stretch',aValue);
  91019. end;
  91020. procedure TJSFontFaceDescriptors._SetunicodeRange(const aValue : UTF8String);
  91021. begin
  91022. WriteJSPropertyUTF8String('unicodeRange',aValue);
  91023. end;
  91024. procedure TJSFontFaceDescriptors._Setvariant(const aValue : UTF8String);
  91025. begin
  91026. WriteJSPropertyUTF8String('variant',aValue);
  91027. end;
  91028. procedure TJSFontFaceDescriptors._SetfeatureSettings(const aValue : UTF8String);
  91029. begin
  91030. WriteJSPropertyUTF8String('featureSettings',aValue);
  91031. end;
  91032. procedure TJSFontFaceDescriptors._SetvariationSettings(const aValue : UTF8String);
  91033. begin
  91034. WriteJSPropertyUTF8String('variationSettings',aValue);
  91035. end;
  91036. procedure TJSFontFaceDescriptors._Setdisplay(const aValue : UTF8String);
  91037. begin
  91038. WriteJSPropertyUTF8String('display',aValue);
  91039. end;
  91040. procedure TJSFontFaceDescriptors._SetascentOverride(const aValue : UTF8String);
  91041. begin
  91042. WriteJSPropertyUTF8String('ascentOverride',aValue);
  91043. end;
  91044. procedure TJSFontFaceDescriptors._SetdescentOverride(const aValue : UTF8String);
  91045. begin
  91046. WriteJSPropertyUTF8String('descentOverride',aValue);
  91047. end;
  91048. procedure TJSFontFaceDescriptors._SetlineGapOverride(const aValue : UTF8String);
  91049. begin
  91050. WriteJSPropertyUTF8String('lineGapOverride',aValue);
  91051. end;
  91052. procedure TJSFontFaceDescriptors._SetsizeAdjust(const aValue : UTF8String);
  91053. begin
  91054. WriteJSPropertyUTF8String('sizeAdjust',aValue);
  91055. end;
  91056. class function TJSFontFaceDescriptors.JSClassName: UnicodeString;
  91057. begin
  91058. Result:='Object';
  91059. end;
  91060. class function TJSFontFaceDescriptors.Cast(const Intf: IJSObject): IJSFontFaceDescriptors;
  91061. begin
  91062. Result:=TJSFontFaceDescriptors.JOBCast(Intf);
  91063. end;
  91064. function TJSFontFace._Getfamily: UTF8String;
  91065. begin
  91066. Result:=ReadJSPropertyUTF8String('family');
  91067. end;
  91068. function TJSFontFace._Getstyle: UTF8String;
  91069. begin
  91070. Result:=ReadJSPropertyUTF8String('style');
  91071. end;
  91072. function TJSFontFace._Getweight: UTF8String;
  91073. begin
  91074. Result:=ReadJSPropertyUTF8String('weight');
  91075. end;
  91076. function TJSFontFace._Getstretch: UTF8String;
  91077. begin
  91078. Result:=ReadJSPropertyUTF8String('stretch');
  91079. end;
  91080. function TJSFontFace._GetunicodeRange: UTF8String;
  91081. begin
  91082. Result:=ReadJSPropertyUTF8String('unicodeRange');
  91083. end;
  91084. function TJSFontFace._Getvariant: UTF8String;
  91085. begin
  91086. Result:=ReadJSPropertyUTF8String('variant');
  91087. end;
  91088. function TJSFontFace._GetfeatureSettings: UTF8String;
  91089. begin
  91090. Result:=ReadJSPropertyUTF8String('featureSettings');
  91091. end;
  91092. function TJSFontFace._GetvariationSettings: UTF8String;
  91093. begin
  91094. Result:=ReadJSPropertyUTF8String('variationSettings');
  91095. end;
  91096. function TJSFontFace._Getdisplay: UTF8String;
  91097. begin
  91098. Result:=ReadJSPropertyUTF8String('display');
  91099. end;
  91100. function TJSFontFace._GetascentOverride: UTF8String;
  91101. begin
  91102. Result:=ReadJSPropertyUTF8String('ascentOverride');
  91103. end;
  91104. function TJSFontFace._GetdescentOverride: UTF8String;
  91105. begin
  91106. Result:=ReadJSPropertyUTF8String('descentOverride');
  91107. end;
  91108. function TJSFontFace._GetlineGapOverride: UTF8String;
  91109. begin
  91110. Result:=ReadJSPropertyUTF8String('lineGapOverride');
  91111. end;
  91112. function TJSFontFace._GetsizeAdjust: UTF8String;
  91113. begin
  91114. Result:=ReadJSPropertyUTF8String('sizeAdjust');
  91115. end;
  91116. function TJSFontFace._Getstatus: TFontFaceLoadStatus;
  91117. begin
  91118. Result:=ReadJSPropertyUnicodeString('status');
  91119. end;
  91120. function TJSFontFace._Getloaded: IJSPromise;
  91121. begin
  91122. Result:=ReadJSPropertyObject('loaded',TJSPromise) as IJSPromise;
  91123. end;
  91124. procedure TJSFontFace._Setfamily(const aValue : UTF8String);
  91125. begin
  91126. WriteJSPropertyUTF8String('family',aValue);
  91127. end;
  91128. procedure TJSFontFace._Setstyle(const aValue : UTF8String);
  91129. begin
  91130. WriteJSPropertyUTF8String('style',aValue);
  91131. end;
  91132. procedure TJSFontFace._Setweight(const aValue : UTF8String);
  91133. begin
  91134. WriteJSPropertyUTF8String('weight',aValue);
  91135. end;
  91136. procedure TJSFontFace._Setstretch(const aValue : UTF8String);
  91137. begin
  91138. WriteJSPropertyUTF8String('stretch',aValue);
  91139. end;
  91140. procedure TJSFontFace._SetunicodeRange(const aValue : UTF8String);
  91141. begin
  91142. WriteJSPropertyUTF8String('unicodeRange',aValue);
  91143. end;
  91144. procedure TJSFontFace._Setvariant(const aValue : UTF8String);
  91145. begin
  91146. WriteJSPropertyUTF8String('variant',aValue);
  91147. end;
  91148. procedure TJSFontFace._SetfeatureSettings(const aValue : UTF8String);
  91149. begin
  91150. WriteJSPropertyUTF8String('featureSettings',aValue);
  91151. end;
  91152. procedure TJSFontFace._SetvariationSettings(const aValue : UTF8String);
  91153. begin
  91154. WriteJSPropertyUTF8String('variationSettings',aValue);
  91155. end;
  91156. procedure TJSFontFace._Setdisplay(const aValue : UTF8String);
  91157. begin
  91158. WriteJSPropertyUTF8String('display',aValue);
  91159. end;
  91160. procedure TJSFontFace._SetascentOverride(const aValue : UTF8String);
  91161. begin
  91162. WriteJSPropertyUTF8String('ascentOverride',aValue);
  91163. end;
  91164. procedure TJSFontFace._SetdescentOverride(const aValue : UTF8String);
  91165. begin
  91166. WriteJSPropertyUTF8String('descentOverride',aValue);
  91167. end;
  91168. procedure TJSFontFace._SetlineGapOverride(const aValue : UTF8String);
  91169. begin
  91170. WriteJSPropertyUTF8String('lineGapOverride',aValue);
  91171. end;
  91172. procedure TJSFontFace._SetsizeAdjust(const aValue : UTF8String);
  91173. begin
  91174. WriteJSPropertyUTF8String('sizeAdjust',aValue);
  91175. end;
  91176. constructor TJSFontFace.Create(const aFamily: UTF8String; const aSource: TBinaryData; const aDescriptors: TJSFontFaceDescriptors);
  91177. begin
  91178. JOBCreate([aFamily,aSource,aDescriptors]);
  91179. end;
  91180. constructor TJSFontFace.Create(const aFamily: UTF8String; const aSource: UTF8String; const aDescriptors: TJSFontFaceDescriptors);
  91181. begin
  91182. JOBCreate([aFamily,aSource,aDescriptors]);
  91183. end;
  91184. constructor TJSFontFace.Create(const aFamily: UTF8String; const aSource: UTF8String);
  91185. begin
  91186. JOBCreate([aFamily,aSource]);
  91187. end;
  91188. constructor TJSFontFace.Create(const aFamily: UTF8String; const aSource: TBinaryData);
  91189. begin
  91190. JOBCreate([aFamily,aSource]);
  91191. end;
  91192. function TJSFontFace.load: IJSPromise; // Promise<FontFace>
  91193. begin
  91194. Result:=InvokeJSObjectResult('load',[],TJSPromise) as IJSPromise;
  91195. end;
  91196. class function TJSFontFace.JSClassName: UnicodeString;
  91197. begin
  91198. Result:='FontFace';
  91199. end;
  91200. class function TJSFontFace.Cast(const Intf: IJSObject): IJSFontFace;
  91201. begin
  91202. Result:=TJSFontFace.JOBCast(Intf);
  91203. end;
  91204. function TJSFontFaceSetIteratorResult._Getvalue: Variant;
  91205. begin
  91206. Result:=ReadJSPropertyVariant('value');
  91207. end;
  91208. function TJSFontFaceSetIteratorResult._Getdone: Boolean;
  91209. begin
  91210. Result:=ReadJSPropertyBoolean('done');
  91211. end;
  91212. procedure TJSFontFaceSetIteratorResult._Setvalue(const aValue : Variant);
  91213. begin
  91214. WriteJSPropertyVariant('value',aValue);
  91215. end;
  91216. procedure TJSFontFaceSetIteratorResult._Setdone(const aValue : Boolean);
  91217. begin
  91218. WriteJSPropertyBoolean('done',aValue);
  91219. end;
  91220. class function TJSFontFaceSetIteratorResult.JSClassName: UnicodeString;
  91221. begin
  91222. Result:='Object';
  91223. end;
  91224. class function TJSFontFaceSetIteratorResult.Cast(const Intf: IJSObject): IJSFontFaceSetIteratorResult;
  91225. begin
  91226. Result:=TJSFontFaceSetIteratorResult.JOBCast(Intf);
  91227. end;
  91228. function TJSFontFaceSetIterator.next: TJSFontFaceSetIteratorResult;
  91229. begin
  91230. Result:=InvokeJSObjectResult('next',[],TJSFontFaceSetIteratorResult) as TJSFontFaceSetIteratorResult;
  91231. end;
  91232. class function TJSFontFaceSetIterator.JSClassName: UnicodeString;
  91233. begin
  91234. Result:='FontFaceSetIterator';
  91235. end;
  91236. class function TJSFontFaceSetIterator.Cast(const Intf: IJSObject): IJSFontFaceSetIterator;
  91237. begin
  91238. Result:=TJSFontFaceSetIterator.JOBCast(Intf);
  91239. end;
  91240. function TJSFontFaceSet._Getsize: Cardinal;
  91241. begin
  91242. Result:=ReadJSPropertyInt64('size');
  91243. end;
  91244. function TJSFontFaceSet._Getonloading: TEventHandler;
  91245. begin
  91246. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloading')));
  91247. end;
  91248. function TJSFontFaceSet._Getonloadingdone: TEventHandler;
  91249. begin
  91250. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadingdone')));
  91251. end;
  91252. function TJSFontFaceSet._Getonloadingerror: TEventHandler;
  91253. begin
  91254. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadingerror')));
  91255. end;
  91256. function TJSFontFaceSet._Getready: IJSPromise;
  91257. begin
  91258. Result:=ReadJSPropertyObject('ready',TJSPromise) as IJSPromise;
  91259. end;
  91260. function TJSFontFaceSet._Getstatus: TFontFaceSetLoadStatus;
  91261. begin
  91262. Result:=ReadJSPropertyUnicodeString('status');
  91263. end;
  91264. procedure TJSFontFaceSet._Setonloading(const aValue : TEventHandler);
  91265. begin
  91266. WriteJSPropertyMethod('onloading',TMethod(aValue));
  91267. end;
  91268. procedure TJSFontFaceSet._Setonloadingdone(const aValue : TEventHandler);
  91269. begin
  91270. WriteJSPropertyMethod('onloadingdone',TMethod(aValue));
  91271. end;
  91272. procedure TJSFontFaceSet._Setonloadingerror(const aValue : TEventHandler);
  91273. begin
  91274. WriteJSPropertyMethod('onloadingerror',TMethod(aValue));
  91275. end;
  91276. procedure TJSFontFaceSet.add(aFont: IJSFontFace);
  91277. begin
  91278. InvokeJSNoResult('add',[aFont]);
  91279. end;
  91280. function TJSFontFaceSet.has(aFont: IJSFontFace): Boolean;
  91281. begin
  91282. Result:=InvokeJSBooleanResult('has',[aFont]);
  91283. end;
  91284. function TJSFontFaceSet.delete(aFont: IJSFontFace): Boolean;
  91285. begin
  91286. Result:=InvokeJSBooleanResult('delete',[aFont]);
  91287. end;
  91288. procedure TJSFontFaceSet.clear;
  91289. begin
  91290. InvokeJSNoResult('clear',[]);
  91291. end;
  91292. function TJSFontFaceSet.entries: IJSFontFaceSetIterator;
  91293. begin
  91294. Result:=InvokeJSObjectResult('entries',[],TJSFontFaceSetIterator) as IJSFontFaceSetIterator;
  91295. end;
  91296. function TJSFontFaceSet.values: IJSFontFaceSetIterator;
  91297. begin
  91298. Result:=InvokeJSObjectResult('values',[],TJSFontFaceSetIterator) as IJSFontFaceSetIterator;
  91299. end;
  91300. procedure TJSFontFaceSet.forEach(const aCb: TFontFaceSetForEachCallback; const aThisArg: Variant);
  91301. var
  91302. m: TJOB_Method;
  91303. begin
  91304. m:=TJOB_Method.Create(TMethod(aCb),@JOBCallFontFaceSetForEachCallback);
  91305. try
  91306. InvokeJSNoResult('forEach',[m,aThisArg]);
  91307. finally
  91308. m.free;
  91309. end;
  91310. end;
  91311. procedure TJSFontFaceSet.forEach(const aCb: TFontFaceSetForEachCallback);
  91312. var
  91313. m: TJOB_Method;
  91314. begin
  91315. m:=TJOB_Method.Create(TMethod(aCb),@JOBCallFontFaceSetForEachCallback);
  91316. try
  91317. InvokeJSNoResult('forEach',[m]);
  91318. finally
  91319. m.free;
  91320. end;
  91321. end;
  91322. function TJSFontFaceSet.load(const aFont: UTF8String; const aText: UnicodeString): IJSPromise; // Promise<sequence>
  91323. begin
  91324. Result:=InvokeJSObjectResult('load',[aFont,aText],TJSPromise) as IJSPromise;
  91325. end;
  91326. function TJSFontFaceSet.load(const aFont: UTF8String): IJSPromise; // Promise<sequence>
  91327. begin
  91328. Result:=InvokeJSObjectResult('load',[aFont],TJSPromise) as IJSPromise;
  91329. end;
  91330. function TJSFontFaceSet.check(const aFont: UTF8String; const aText: UnicodeString): Boolean;
  91331. begin
  91332. Result:=InvokeJSBooleanResult('check',[aFont,aText]);
  91333. end;
  91334. function TJSFontFaceSet.check(const aFont: UTF8String): Boolean;
  91335. begin
  91336. Result:=InvokeJSBooleanResult('check',[aFont]);
  91337. end;
  91338. class function TJSFontFaceSet.JSClassName: UnicodeString;
  91339. begin
  91340. Result:='FontFaceSet';
  91341. end;
  91342. class function TJSFontFaceSet.Cast(const Intf: IJSObject): IJSFontFaceSet;
  91343. begin
  91344. Result:=TJSFontFaceSet.JOBCast(Intf);
  91345. end;
  91346. function TJSFontFaceSetLoadEventInit._Getfontfaces: TJSFontFaceDynArray;
  91347. begin
  91348. Result:=ReadJSPropertyObject('fontfaces',TJSArray) as TJSFontFaceDynArray;
  91349. end;
  91350. procedure TJSFontFaceSetLoadEventInit._Setfontfaces(const aValue : TJSFontFaceDynArray);
  91351. begin
  91352. WriteJSPropertyObject('fontfaces',aValue);
  91353. end;
  91354. class function TJSFontFaceSetLoadEventInit.JSClassName: UnicodeString;
  91355. begin
  91356. Result:='Object';
  91357. end;
  91358. class function TJSFontFaceSetLoadEventInit.Cast(const Intf: IJSObject): IJSFontFaceSetLoadEventInit;
  91359. begin
  91360. Result:=TJSFontFaceSetLoadEventInit.JOBCast(Intf);
  91361. end;
  91362. function TJSFontFaceSetLoadEvent._Getfontfaces: TJSFontFaceDynArray;
  91363. begin
  91364. Result:=ReadJSPropertyObject('fontfaces',TJSArray) as TJSFontFaceDynArray;
  91365. end;
  91366. constructor TJSFontFaceSetLoadEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSFontFaceSetLoadEventInit);
  91367. begin
  91368. JOBCreate([aType_,aEventInitDict]);
  91369. end;
  91370. constructor TJSFontFaceSetLoadEvent.Create(const aType_: UnicodeString);
  91371. begin
  91372. JOBCreate([aType_]);
  91373. end;
  91374. class function TJSFontFaceSetLoadEvent.JSClassName: UnicodeString;
  91375. begin
  91376. Result:='FontFaceSetLoadEvent';
  91377. end;
  91378. class function TJSFontFaceSetLoadEvent.Cast(const Intf: IJSObject): IJSFontFaceSetLoadEvent;
  91379. begin
  91380. Result:=TJSFontFaceSetLoadEvent.JOBCast(Intf);
  91381. end;
  91382. function TJSFontFaceSource._Getfonts: IJSFontFaceSet;
  91383. begin
  91384. Result:=ReadJSPropertyObject('fonts',TJSFontFaceSet) as IJSFontFaceSet;
  91385. end;
  91386. class function TJSFontFaceSource.JSClassName: UnicodeString;
  91387. begin
  91388. Result:='FontFaceSource';
  91389. end;
  91390. class function TJSFontFaceSource.Cast(const Intf: IJSObject): IJSFontFaceSource;
  91391. begin
  91392. Result:=TJSFontFaceSource.JOBCast(Intf);
  91393. end;
  91394. constructor TJSFormData.Create(aForm: IJSHTMLFormElement; aSubmitter: IJSHTMLElement);
  91395. begin
  91396. JOBCreate([aForm,aSubmitter]);
  91397. end;
  91398. constructor TJSFormData.Create;
  91399. begin
  91400. JOBCreate([]);
  91401. end;
  91402. constructor TJSFormData.Create(aForm: IJSHTMLFormElement);
  91403. begin
  91404. JOBCreate([aForm]);
  91405. end;
  91406. procedure TJSFormData.append(const aName: UnicodeString; aValue: IJSBlob; const aFilename: UnicodeString);
  91407. begin
  91408. InvokeJSNoResult('append',[aName,aValue,aFilename]);
  91409. end;
  91410. procedure TJSFormData.append(const aName: UnicodeString; aValue: IJSBlob);
  91411. begin
  91412. InvokeJSNoResult('append',[aName,aValue]);
  91413. end;
  91414. procedure TJSFormData.append(const aName: UnicodeString; const aValue: UnicodeString);
  91415. begin
  91416. InvokeJSNoResult('append',[aName,aValue]);
  91417. end;
  91418. procedure TJSFormData.delete(const aName: UnicodeString);
  91419. begin
  91420. InvokeJSNoResult('delete',[aName]);
  91421. end;
  91422. function TJSFormData.get(const aName: UnicodeString): TFormDataEntryValue;
  91423. begin
  91424. Result:=InvokeJSVariantResult('get',[aName]);
  91425. end;
  91426. function TJSFormData.getAll(const aName: UnicodeString): TFormDataEntryValueDynArray;
  91427. begin
  91428. Result:=InvokeJSObjectResult('getAll',[aName],TJSArray) as TFormDataEntryValueDynArray;
  91429. end;
  91430. function TJSFormData.has(const aName: UnicodeString): Boolean;
  91431. begin
  91432. Result:=InvokeJSBooleanResult('has',[aName]);
  91433. end;
  91434. procedure TJSFormData.set_(const aName: UnicodeString; aValue: IJSBlob; const aFilename: UnicodeString);
  91435. begin
  91436. InvokeJSNoResult('set',[aName,aValue,aFilename]);
  91437. end;
  91438. procedure TJSFormData.set_(const aName: UnicodeString; aValue: IJSBlob);
  91439. begin
  91440. InvokeJSNoResult('set',[aName,aValue]);
  91441. end;
  91442. procedure TJSFormData.set_(const aName: UnicodeString; const aValue: UnicodeString);
  91443. begin
  91444. InvokeJSNoResult('set',[aName,aValue]);
  91445. end;
  91446. class function TJSFormData.JSClassName: UnicodeString;
  91447. begin
  91448. Result:='FormData';
  91449. end;
  91450. class function TJSFormData.Cast(const Intf: IJSObject): IJSFormData;
  91451. begin
  91452. Result:=TJSFormData.JOBCast(Intf);
  91453. end;
  91454. function TJSFormDataEvent._GetformData: IJSFormData;
  91455. begin
  91456. Result:=ReadJSPropertyObject('formData',TJSFormData) as IJSFormData;
  91457. end;
  91458. constructor TJSFormDataEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSFormDataEventInit);
  91459. begin
  91460. JOBCreate([aType_,aEventInitDict]);
  91461. end;
  91462. constructor TJSFormDataEvent.Create(const aType_: UnicodeString);
  91463. begin
  91464. JOBCreate([aType_]);
  91465. end;
  91466. class function TJSFormDataEvent.JSClassName: UnicodeString;
  91467. begin
  91468. Result:='FormDataEvent';
  91469. end;
  91470. class function TJSFormDataEvent.Cast(const Intf: IJSObject): IJSFormDataEvent;
  91471. begin
  91472. Result:=TJSFormDataEvent.JOBCast(Intf);
  91473. end;
  91474. function TJSFormDataEventInit._GetformData: IJSFormData;
  91475. begin
  91476. Result:=ReadJSPropertyObject('formData',TJSFormData) as IJSFormData;
  91477. end;
  91478. procedure TJSFormDataEventInit._SetformData(const aValue : IJSFormData);
  91479. begin
  91480. WriteJSPropertyObject('formData',aValue);
  91481. end;
  91482. class function TJSFormDataEventInit.JSClassName: UnicodeString;
  91483. begin
  91484. Result:='Object';
  91485. end;
  91486. class function TJSFormDataEventInit.Cast(const Intf: IJSObject): IJSFormDataEventInit;
  91487. begin
  91488. Result:=TJSFormDataEventInit.JOBCast(Intf);
  91489. end;
  91490. class function TJSFragmentDirective.JSClassName: UnicodeString;
  91491. begin
  91492. Result:='FragmentDirective';
  91493. end;
  91494. class function TJSFragmentDirective.Cast(const Intf: IJSObject): IJSFragmentDirective;
  91495. begin
  91496. Result:=TJSFragmentDirective.JOBCast(Intf);
  91497. end;
  91498. function TJSFrameCrashedEventInit._GetbrowsingContextId: QWord;
  91499. begin
  91500. Result:=ReadJSPropertyInt64('browsingContextId');
  91501. end;
  91502. function TJSFrameCrashedEventInit._GetisTopFrame: Boolean;
  91503. begin
  91504. Result:=ReadJSPropertyBoolean('isTopFrame');
  91505. end;
  91506. function TJSFrameCrashedEventInit._GetchildID: QWord;
  91507. begin
  91508. Result:=ReadJSPropertyInt64('childID');
  91509. end;
  91510. procedure TJSFrameCrashedEventInit._SetbrowsingContextId(const aValue : QWord);
  91511. begin
  91512. WriteJSPropertyDouble('browsingContextId',aValue);
  91513. end;
  91514. procedure TJSFrameCrashedEventInit._SetisTopFrame(const aValue : Boolean);
  91515. begin
  91516. WriteJSPropertyBoolean('isTopFrame',aValue);
  91517. end;
  91518. procedure TJSFrameCrashedEventInit._SetchildID(const aValue : QWord);
  91519. begin
  91520. WriteJSPropertyDouble('childID',aValue);
  91521. end;
  91522. class function TJSFrameCrashedEventInit.JSClassName: UnicodeString;
  91523. begin
  91524. Result:='Object';
  91525. end;
  91526. class function TJSFrameCrashedEventInit.Cast(const Intf: IJSObject): IJSFrameCrashedEventInit;
  91527. begin
  91528. Result:=TJSFrameCrashedEventInit.JOBCast(Intf);
  91529. end;
  91530. procedure TJSFuzzingFunctions.garbageCollect;
  91531. begin
  91532. InvokeJSNoResult('garbageCollect',[]);
  91533. end;
  91534. procedure TJSFuzzingFunctions.garbageCollectCompacting;
  91535. begin
  91536. InvokeJSNoResult('garbageCollectCompacting',[]);
  91537. end;
  91538. procedure TJSFuzzingFunctions.crash(const aReason: UnicodeString);
  91539. begin
  91540. InvokeJSNoResult('crash',[aReason]);
  91541. end;
  91542. procedure TJSFuzzingFunctions.crash;
  91543. begin
  91544. InvokeJSNoResult('crash',[]);
  91545. end;
  91546. procedure TJSFuzzingFunctions.cycleCollect;
  91547. begin
  91548. InvokeJSNoResult('cycleCollect',[]);
  91549. end;
  91550. procedure TJSFuzzingFunctions.memoryPressure;
  91551. begin
  91552. InvokeJSNoResult('memoryPressure',[]);
  91553. end;
  91554. procedure TJSFuzzingFunctions.enableAccessibility;
  91555. begin
  91556. InvokeJSNoResult('enableAccessibility',[]);
  91557. end;
  91558. procedure TJSFuzzingFunctions.signalIPCReady;
  91559. begin
  91560. InvokeJSNoResult('signalIPCReady',[]);
  91561. end;
  91562. procedure TJSFuzzingFunctions.synthesizeKeyboardEvents(const aAKeyValue: UnicodeString; const aADictionary: TJSKeyboardEventInit);
  91563. begin
  91564. InvokeJSNoResult('synthesizeKeyboardEvents',[aAKeyValue,aADictionary]);
  91565. end;
  91566. procedure TJSFuzzingFunctions.synthesizeKeyboardEvents(const aAKeyValue: UnicodeString);
  91567. begin
  91568. InvokeJSNoResult('synthesizeKeyboardEvents',[aAKeyValue]);
  91569. end;
  91570. class function TJSFuzzingFunctions.JSClassName: UnicodeString;
  91571. begin
  91572. Result:='FuzzingFunctions';
  91573. end;
  91574. class function TJSFuzzingFunctions.Cast(const Intf: IJSObject): IJSFuzzingFunctions;
  91575. begin
  91576. Result:=TJSFuzzingFunctions.JOBCast(Intf);
  91577. end;
  91578. function TJSGainOptions._Getgain: Single;
  91579. begin
  91580. Result:=ReadJSPropertyDouble('gain');
  91581. end;
  91582. procedure TJSGainOptions._Setgain(const aValue : Single);
  91583. begin
  91584. WriteJSPropertyDouble('gain',aValue);
  91585. end;
  91586. class function TJSGainOptions.JSClassName: UnicodeString;
  91587. begin
  91588. Result:='Object';
  91589. end;
  91590. class function TJSGainOptions.Cast(const Intf: IJSObject): IJSGainOptions;
  91591. begin
  91592. Result:=TJSGainOptions.JOBCast(Intf);
  91593. end;
  91594. function TJSGainNode._Getgain: IJSAudioParam;
  91595. begin
  91596. Result:=ReadJSPropertyObject('gain',TJSAudioParam) as IJSAudioParam;
  91597. end;
  91598. constructor TJSGainNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSGainOptions);
  91599. begin
  91600. JOBCreate([aContext,aOptions]);
  91601. end;
  91602. constructor TJSGainNode.Create(aContext: IJSBaseAudioContext);
  91603. begin
  91604. JOBCreate([aContext]);
  91605. end;
  91606. class function TJSGainNode.JSClassName: UnicodeString;
  91607. begin
  91608. Result:='GainNode';
  91609. end;
  91610. class function TJSGainNode.Cast(const Intf: IJSObject): IJSGainNode;
  91611. begin
  91612. Result:=TJSGainNode.JOBCast(Intf);
  91613. end;
  91614. function TJSGamepadButton._Getpressed: Boolean;
  91615. begin
  91616. Result:=ReadJSPropertyBoolean('pressed');
  91617. end;
  91618. function TJSGamepadButton._Gettouched: Boolean;
  91619. begin
  91620. Result:=ReadJSPropertyBoolean('touched');
  91621. end;
  91622. function TJSGamepadButton._Getvalue: Double;
  91623. begin
  91624. Result:=ReadJSPropertyDouble('value');
  91625. end;
  91626. class function TJSGamepadButton.JSClassName: UnicodeString;
  91627. begin
  91628. Result:='GamepadButton';
  91629. end;
  91630. class function TJSGamepadButton.Cast(const Intf: IJSObject): IJSGamepadButton;
  91631. begin
  91632. Result:=TJSGamepadButton.JOBCast(Intf);
  91633. end;
  91634. function TJSGamepad._Getid: UnicodeString;
  91635. begin
  91636. Result:=ReadJSPropertyUnicodeString('id');
  91637. end;
  91638. function TJSGamepad._Getindex: LongInt;
  91639. begin
  91640. Result:=ReadJSPropertyLongInt('index');
  91641. end;
  91642. function TJSGamepad._Getmapping: TGamepadMappingType;
  91643. begin
  91644. Result:=ReadJSPropertyUnicodeString('mapping');
  91645. end;
  91646. function TJSGamepad._Gethand: TGamepadHand;
  91647. begin
  91648. Result:=ReadJSPropertyUnicodeString('hand');
  91649. end;
  91650. function TJSGamepad._GetdisplayId: Cardinal;
  91651. begin
  91652. Result:=ReadJSPropertyInt64('displayId');
  91653. end;
  91654. function TJSGamepad._Getconnected: Boolean;
  91655. begin
  91656. Result:=ReadJSPropertyBoolean('connected');
  91657. end;
  91658. function TJSGamepad._Getbuttons: TJSGamepadButtonDynArray;
  91659. begin
  91660. Result:=ReadJSPropertyObject('buttons',TJSArray) as TJSGamepadButtonDynArray;
  91661. end;
  91662. function TJSGamepad._Getaxes: TDoubleDynArray;
  91663. begin
  91664. Result:=ReadJSPropertyObject('axes',TJSArray) as TDoubleDynArray;
  91665. end;
  91666. function TJSGamepad._Gettimestamp: TDOMHighResTimeStamp;
  91667. begin
  91668. Result:=ReadJSPropertyDouble('timestamp');
  91669. end;
  91670. function TJSGamepad._Getpose: IJSGamepadPose;
  91671. begin
  91672. Result:=ReadJSPropertyObject('pose',TJSGamepadPose) as IJSGamepadPose;
  91673. end;
  91674. function TJSGamepad._GethapticActuators: TJSGamepadHapticActuatorDynArray;
  91675. begin
  91676. Result:=ReadJSPropertyObject('hapticActuators',TJSArray) as TJSGamepadHapticActuatorDynArray;
  91677. end;
  91678. function TJSGamepad._GetlightIndicators: TJSGamepadLightIndicatorDynArray;
  91679. begin
  91680. Result:=ReadJSPropertyObject('lightIndicators',TJSArray) as TJSGamepadLightIndicatorDynArray;
  91681. end;
  91682. function TJSGamepad._GettouchEvents: TJSGamepadTouchDynArray;
  91683. begin
  91684. Result:=ReadJSPropertyObject('touchEvents',TJSArray) as TJSGamepadTouchDynArray;
  91685. end;
  91686. class function TJSGamepad.JSClassName: UnicodeString;
  91687. begin
  91688. Result:='Gamepad';
  91689. end;
  91690. class function TJSGamepad.Cast(const Intf: IJSObject): IJSGamepad;
  91691. begin
  91692. Result:=TJSGamepad.JOBCast(Intf);
  91693. end;
  91694. function TJSGamepadAxisMoveEvent._Getaxis: Cardinal;
  91695. begin
  91696. Result:=ReadJSPropertyInt64('axis');
  91697. end;
  91698. function TJSGamepadAxisMoveEvent._Getvalue: Double;
  91699. begin
  91700. Result:=ReadJSPropertyDouble('value');
  91701. end;
  91702. constructor TJSGamepadAxisMoveEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSGamepadAxisMoveEventInit);
  91703. begin
  91704. JOBCreate([aType_,aEventInitDict]);
  91705. end;
  91706. constructor TJSGamepadAxisMoveEvent.Create(const aType_: UnicodeString);
  91707. begin
  91708. JOBCreate([aType_]);
  91709. end;
  91710. class function TJSGamepadAxisMoveEvent.JSClassName: UnicodeString;
  91711. begin
  91712. Result:='GamepadAxisMoveEvent';
  91713. end;
  91714. class function TJSGamepadAxisMoveEvent.Cast(const Intf: IJSObject): IJSGamepadAxisMoveEvent;
  91715. begin
  91716. Result:=TJSGamepadAxisMoveEvent.JOBCast(Intf);
  91717. end;
  91718. function TJSGamepadAxisMoveEventInit._Getaxis: Cardinal;
  91719. begin
  91720. Result:=ReadJSPropertyInt64('axis');
  91721. end;
  91722. function TJSGamepadAxisMoveEventInit._Getvalue: Double;
  91723. begin
  91724. Result:=ReadJSPropertyDouble('value');
  91725. end;
  91726. procedure TJSGamepadAxisMoveEventInit._Setaxis(const aValue : Cardinal);
  91727. begin
  91728. WriteJSPropertyDouble('axis',aValue);
  91729. end;
  91730. procedure TJSGamepadAxisMoveEventInit._Setvalue(const aValue : Double);
  91731. begin
  91732. WriteJSPropertyDouble('value',aValue);
  91733. end;
  91734. class function TJSGamepadAxisMoveEventInit.JSClassName: UnicodeString;
  91735. begin
  91736. Result:='Object';
  91737. end;
  91738. class function TJSGamepadAxisMoveEventInit.Cast(const Intf: IJSObject): IJSGamepadAxisMoveEventInit;
  91739. begin
  91740. Result:=TJSGamepadAxisMoveEventInit.JOBCast(Intf);
  91741. end;
  91742. function TJSGamepadButtonEvent._Getbutton: Cardinal;
  91743. begin
  91744. Result:=ReadJSPropertyInt64('button');
  91745. end;
  91746. constructor TJSGamepadButtonEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSGamepadButtonEventInit);
  91747. begin
  91748. JOBCreate([aType_,aEventInitDict]);
  91749. end;
  91750. constructor TJSGamepadButtonEvent.Create(const aType_: UnicodeString);
  91751. begin
  91752. JOBCreate([aType_]);
  91753. end;
  91754. class function TJSGamepadButtonEvent.JSClassName: UnicodeString;
  91755. begin
  91756. Result:='GamepadButtonEvent';
  91757. end;
  91758. class function TJSGamepadButtonEvent.Cast(const Intf: IJSObject): IJSGamepadButtonEvent;
  91759. begin
  91760. Result:=TJSGamepadButtonEvent.JOBCast(Intf);
  91761. end;
  91762. function TJSGamepadButtonEventInit._Getbutton: Cardinal;
  91763. begin
  91764. Result:=ReadJSPropertyInt64('button');
  91765. end;
  91766. procedure TJSGamepadButtonEventInit._Setbutton(const aValue : Cardinal);
  91767. begin
  91768. WriteJSPropertyDouble('button',aValue);
  91769. end;
  91770. class function TJSGamepadButtonEventInit.JSClassName: UnicodeString;
  91771. begin
  91772. Result:='Object';
  91773. end;
  91774. class function TJSGamepadButtonEventInit.Cast(const Intf: IJSObject): IJSGamepadButtonEventInit;
  91775. begin
  91776. Result:=TJSGamepadButtonEventInit.JOBCast(Intf);
  91777. end;
  91778. function TJSGamepadEvent._Getgamepad: IJSGamepad;
  91779. begin
  91780. Result:=ReadJSPropertyObject('gamepad',TJSGamepad) as IJSGamepad;
  91781. end;
  91782. constructor TJSGamepadEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSGamepadEventInit);
  91783. begin
  91784. JOBCreate([aType_,aEventInitDict]);
  91785. end;
  91786. constructor TJSGamepadEvent.Create(const aType_: UnicodeString);
  91787. begin
  91788. JOBCreate([aType_]);
  91789. end;
  91790. class function TJSGamepadEvent.JSClassName: UnicodeString;
  91791. begin
  91792. Result:='GamepadEvent';
  91793. end;
  91794. class function TJSGamepadEvent.Cast(const Intf: IJSObject): IJSGamepadEvent;
  91795. begin
  91796. Result:=TJSGamepadEvent.JOBCast(Intf);
  91797. end;
  91798. function TJSGamepadEventInit._Getgamepad: IJSGamepad;
  91799. begin
  91800. Result:=ReadJSPropertyObject('gamepad',TJSGamepad) as IJSGamepad;
  91801. end;
  91802. procedure TJSGamepadEventInit._Setgamepad(const aValue : IJSGamepad);
  91803. begin
  91804. WriteJSPropertyObject('gamepad',aValue);
  91805. end;
  91806. class function TJSGamepadEventInit.JSClassName: UnicodeString;
  91807. begin
  91808. Result:='Object';
  91809. end;
  91810. class function TJSGamepadEventInit.Cast(const Intf: IJSObject): IJSGamepadEventInit;
  91811. begin
  91812. Result:=TJSGamepadEventInit.JOBCast(Intf);
  91813. end;
  91814. function TJSGamepadHapticActuator._Gettype_: TGamepadHapticActuatorType;
  91815. begin
  91816. Result:=ReadJSPropertyUnicodeString('type');
  91817. end;
  91818. function TJSGamepadHapticActuator.pulse(aValue: Double; aDuration: Double): IJSPromise; // Promise<boolean>
  91819. begin
  91820. Result:=InvokeJSObjectResult('pulse',[aValue,aDuration],TJSPromise) as IJSPromise;
  91821. end;
  91822. class function TJSGamepadHapticActuator.JSClassName: UnicodeString;
  91823. begin
  91824. Result:='GamepadHapticActuator';
  91825. end;
  91826. class function TJSGamepadHapticActuator.Cast(const Intf: IJSObject): IJSGamepadHapticActuator;
  91827. begin
  91828. Result:=TJSGamepadHapticActuator.JOBCast(Intf);
  91829. end;
  91830. function TJSGamepadLightColor._Getred: Byte;
  91831. begin
  91832. Result:=ReadJSPropertyLongInt('red');
  91833. end;
  91834. function TJSGamepadLightColor._Getgreen: Byte;
  91835. begin
  91836. Result:=ReadJSPropertyLongInt('green');
  91837. end;
  91838. function TJSGamepadLightColor._Getblue: Byte;
  91839. begin
  91840. Result:=ReadJSPropertyLongInt('blue');
  91841. end;
  91842. procedure TJSGamepadLightColor._Setred(const aValue : Byte);
  91843. begin
  91844. WriteJSPropertyLongInt('red',aValue);
  91845. end;
  91846. procedure TJSGamepadLightColor._Setgreen(const aValue : Byte);
  91847. begin
  91848. WriteJSPropertyLongInt('green',aValue);
  91849. end;
  91850. procedure TJSGamepadLightColor._Setblue(const aValue : Byte);
  91851. begin
  91852. WriteJSPropertyLongInt('blue',aValue);
  91853. end;
  91854. class function TJSGamepadLightColor.JSClassName: UnicodeString;
  91855. begin
  91856. Result:='Object';
  91857. end;
  91858. class function TJSGamepadLightColor.Cast(const Intf: IJSObject): IJSGamepadLightColor;
  91859. begin
  91860. Result:=TJSGamepadLightColor.JOBCast(Intf);
  91861. end;
  91862. function TJSGamepadLightIndicator._Gettype_: TGamepadLightIndicatorType;
  91863. begin
  91864. Result:=ReadJSPropertyUnicodeString('type');
  91865. end;
  91866. function TJSGamepadLightIndicator.setColor(const aColor: TJSGamepadLightColor): IJSPromise; // Promise<boolean>
  91867. begin
  91868. Result:=InvokeJSObjectResult('setColor',[aColor],TJSPromise) as IJSPromise;
  91869. end;
  91870. class function TJSGamepadLightIndicator.JSClassName: UnicodeString;
  91871. begin
  91872. Result:='GamepadLightIndicator';
  91873. end;
  91874. class function TJSGamepadLightIndicator.Cast(const Intf: IJSObject): IJSGamepadLightIndicator;
  91875. begin
  91876. Result:=TJSGamepadLightIndicator.JOBCast(Intf);
  91877. end;
  91878. function TJSGamepadPose._GethasOrientation: Boolean;
  91879. begin
  91880. Result:=ReadJSPropertyBoolean('hasOrientation');
  91881. end;
  91882. function TJSGamepadPose._GethasPosition: Boolean;
  91883. begin
  91884. Result:=ReadJSPropertyBoolean('hasPosition');
  91885. end;
  91886. function TJSGamepadPose._Getposition: IJSFloat32Array;
  91887. begin
  91888. Result:=ReadJSPropertyObject('position',TJSFloat32Array) as IJSFloat32Array;
  91889. end;
  91890. function TJSGamepadPose._GetlinearVelocity: IJSFloat32Array;
  91891. begin
  91892. Result:=ReadJSPropertyObject('linearVelocity',TJSFloat32Array) as IJSFloat32Array;
  91893. end;
  91894. function TJSGamepadPose._GetlinearAcceleration: IJSFloat32Array;
  91895. begin
  91896. Result:=ReadJSPropertyObject('linearAcceleration',TJSFloat32Array) as IJSFloat32Array;
  91897. end;
  91898. function TJSGamepadPose._Getorientation: IJSFloat32Array;
  91899. begin
  91900. Result:=ReadJSPropertyObject('orientation',TJSFloat32Array) as IJSFloat32Array;
  91901. end;
  91902. function TJSGamepadPose._GetangularVelocity: IJSFloat32Array;
  91903. begin
  91904. Result:=ReadJSPropertyObject('angularVelocity',TJSFloat32Array) as IJSFloat32Array;
  91905. end;
  91906. function TJSGamepadPose._GetangularAcceleration: IJSFloat32Array;
  91907. begin
  91908. Result:=ReadJSPropertyObject('angularAcceleration',TJSFloat32Array) as IJSFloat32Array;
  91909. end;
  91910. class function TJSGamepadPose.JSClassName: UnicodeString;
  91911. begin
  91912. Result:='GamepadPose';
  91913. end;
  91914. class function TJSGamepadPose.Cast(const Intf: IJSObject): IJSGamepadPose;
  91915. begin
  91916. Result:=TJSGamepadPose.JOBCast(Intf);
  91917. end;
  91918. function TJSGamepadServiceTest._GetnoMapping: TGamepadMappingType;
  91919. begin
  91920. Result:=ReadJSPropertyUnicodeString('noMapping');
  91921. end;
  91922. function TJSGamepadServiceTest._GetstandardMapping: TGamepadMappingType;
  91923. begin
  91924. Result:=ReadJSPropertyUnicodeString('standardMapping');
  91925. end;
  91926. function TJSGamepadServiceTest._GetnoHand: TGamepadHand;
  91927. begin
  91928. Result:=ReadJSPropertyUnicodeString('noHand');
  91929. end;
  91930. function TJSGamepadServiceTest._GetleftHand: TGamepadHand;
  91931. begin
  91932. Result:=ReadJSPropertyUnicodeString('leftHand');
  91933. end;
  91934. function TJSGamepadServiceTest._GetrightHand: TGamepadHand;
  91935. begin
  91936. Result:=ReadJSPropertyUnicodeString('rightHand');
  91937. end;
  91938. function TJSGamepadServiceTest.addGamepad(const aId: UnicodeString; aMapping: TGamepadMappingType; aHand: TGamepadHand; aNumButtons: Cardinal; aNumAxes: Cardinal; aNumHaptics: Cardinal; aNumLightIndicator: Cardinal; aNumTouchEvents: Cardinal): IJSPromise; // Promise<unsigned long>
  91939. begin
  91940. Result:=InvokeJSObjectResult('addGamepad',[aId,aMapping,aHand,aNumButtons,aNumAxes,aNumHaptics,aNumLightIndicator,aNumTouchEvents],TJSPromise) as IJSPromise;
  91941. end;
  91942. function TJSGamepadServiceTest.removeGamepad(aIndex: Cardinal): IJSPromise; // Promise<unsigned long>
  91943. begin
  91944. Result:=InvokeJSObjectResult('removeGamepad',[aIndex],TJSPromise) as IJSPromise;
  91945. end;
  91946. function TJSGamepadServiceTest.newButtonEvent(aIndex: Cardinal; aButton: Cardinal; aPressed: Boolean; aTouched: Boolean): IJSPromise; // Promise<unsigned long>
  91947. begin
  91948. Result:=InvokeJSObjectResult('newButtonEvent',[aIndex,aButton,aPressed,aTouched],TJSPromise) as IJSPromise;
  91949. end;
  91950. function TJSGamepadServiceTest.newButtonValueEvent(aIndex: Cardinal; aButton: Cardinal; aPressed: Boolean; aTouched: Boolean; aValue: Double): IJSPromise; // Promise<unsigned long>
  91951. begin
  91952. Result:=InvokeJSObjectResult('newButtonValueEvent',[aIndex,aButton,aPressed,aTouched,aValue],TJSPromise) as IJSPromise;
  91953. end;
  91954. function TJSGamepadServiceTest.newAxisMoveEvent(aIndex: Cardinal; aAxis: Cardinal; aValue: Double): IJSPromise; // Promise<unsigned long>
  91955. begin
  91956. Result:=InvokeJSObjectResult('newAxisMoveEvent',[aIndex,aAxis,aValue],TJSPromise) as IJSPromise;
  91957. end;
  91958. function TJSGamepadServiceTest.newPoseMove(aIndex: Cardinal; aOrient: IJSFloat32Array; aPos: IJSFloat32Array; aAngVelocity: IJSFloat32Array; aAngAcceleration: IJSFloat32Array; aLinVelocity: IJSFloat32Array; aLinAcceleration: IJSFloat32Array): IJSPromise; // Promise<unsigned long>
  91959. begin
  91960. Result:=InvokeJSObjectResult('newPoseMove',[aIndex,aOrient,aPos,aAngVelocity,aAngAcceleration,aLinVelocity,aLinAcceleration],TJSPromise) as IJSPromise;
  91961. end;
  91962. function TJSGamepadServiceTest.newTouch(aIndex: Cardinal; aATouchArrayIndex: Cardinal; aTouchId: Cardinal; aSurfaceId: Byte; aPosition: IJSFloat32Array; aSurfaceDimension: IJSFloat32Array): IJSPromise; // Promise<unsigned long>
  91963. begin
  91964. Result:=InvokeJSObjectResult('newTouch',[aIndex,aATouchArrayIndex,aTouchId,aSurfaceId,aPosition,aSurfaceDimension],TJSPromise) as IJSPromise;
  91965. end;
  91966. class function TJSGamepadServiceTest.JSClassName: UnicodeString;
  91967. begin
  91968. Result:='GamepadServiceTest';
  91969. end;
  91970. class function TJSGamepadServiceTest.Cast(const Intf: IJSObject): IJSGamepadServiceTest;
  91971. begin
  91972. Result:=TJSGamepadServiceTest.JOBCast(Intf);
  91973. end;
  91974. function TJSGamepadTouch._GettouchId: Cardinal;
  91975. begin
  91976. Result:=ReadJSPropertyInt64('touchId');
  91977. end;
  91978. function TJSGamepadTouch._GetsurfaceId: Byte;
  91979. begin
  91980. Result:=ReadJSPropertyLongInt('surfaceId');
  91981. end;
  91982. function TJSGamepadTouch._Getposition: IJSFloat32Array;
  91983. begin
  91984. Result:=ReadJSPropertyObject('position',TJSFloat32Array) as IJSFloat32Array;
  91985. end;
  91986. function TJSGamepadTouch._GetsurfaceDimensions: IJSUint32Array;
  91987. begin
  91988. Result:=ReadJSPropertyObject('surfaceDimensions',TJSUint32Array) as IJSUint32Array;
  91989. end;
  91990. class function TJSGamepadTouch.JSClassName: UnicodeString;
  91991. begin
  91992. Result:='GamepadTouch';
  91993. end;
  91994. class function TJSGamepadTouch.Cast(const Intf: IJSObject): IJSGamepadTouch;
  91995. begin
  91996. Result:=TJSGamepadTouch.JOBCast(Intf);
  91997. end;
  91998. function TJSGenericTransformStream._Getreadable: IJSReadableStream;
  91999. begin
  92000. Result:=ReadJSPropertyObject('readable',TJSReadableStream) as IJSReadableStream;
  92001. end;
  92002. function TJSGenericTransformStream._Getwritable: IJSWritableStream;
  92003. begin
  92004. Result:=ReadJSPropertyObject('writable',TJSWritableStream) as IJSWritableStream;
  92005. end;
  92006. class function TJSGenericTransformStream.JSClassName: UnicodeString;
  92007. begin
  92008. Result:='GenericTransformStream';
  92009. end;
  92010. class function TJSGenericTransformStream.Cast(const Intf: IJSObject): IJSGenericTransformStream;
  92011. begin
  92012. Result:=TJSGenericTransformStream.JOBCast(Intf);
  92013. end;
  92014. function TJSPositionOptions._GetenableHighAccuracy: Boolean;
  92015. begin
  92016. Result:=ReadJSPropertyBoolean('enableHighAccuracy');
  92017. end;
  92018. function TJSPositionOptions._Gettimeout: Cardinal;
  92019. begin
  92020. Result:=ReadJSPropertyInt64('timeout');
  92021. end;
  92022. function TJSPositionOptions._GetmaximumAge: Cardinal;
  92023. begin
  92024. Result:=ReadJSPropertyInt64('maximumAge');
  92025. end;
  92026. procedure TJSPositionOptions._SetenableHighAccuracy(const aValue : Boolean);
  92027. begin
  92028. WriteJSPropertyBoolean('enableHighAccuracy',aValue);
  92029. end;
  92030. procedure TJSPositionOptions._Settimeout(const aValue : Cardinal);
  92031. begin
  92032. WriteJSPropertyDouble('timeout',aValue);
  92033. end;
  92034. procedure TJSPositionOptions._SetmaximumAge(const aValue : Cardinal);
  92035. begin
  92036. WriteJSPropertyDouble('maximumAge',aValue);
  92037. end;
  92038. class function TJSPositionOptions.JSClassName: UnicodeString;
  92039. begin
  92040. Result:='Object';
  92041. end;
  92042. class function TJSPositionOptions.Cast(const Intf: IJSObject): IJSPositionOptions;
  92043. begin
  92044. Result:=TJSPositionOptions.JOBCast(Intf);
  92045. end;
  92046. procedure TJSGeolocation.getCurrentPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback; const aOptions: TJSPositionOptions);
  92047. var
  92048. m: TJOB_Method;
  92049. m2: TJOB_Method;
  92050. begin
  92051. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallPositionCallback);
  92052. m2:=TJOB_Method.Create(TMethod(aErrorCallback),@JOBCallPositionErrorCallback);
  92053. try
  92054. InvokeJSNoResult('getCurrentPosition',[m,m2,aOptions]);
  92055. finally
  92056. m.free;
  92057. m2.free;
  92058. end;
  92059. end;
  92060. procedure TJSGeolocation.getCurrentPosition(const aSuccessCallback: TPositionCallback);
  92061. var
  92062. m: TJOB_Method;
  92063. begin
  92064. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallPositionCallback);
  92065. try
  92066. InvokeJSNoResult('getCurrentPosition',[m]);
  92067. finally
  92068. m.free;
  92069. end;
  92070. end;
  92071. procedure TJSGeolocation.getCurrentPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback);
  92072. var
  92073. m: TJOB_Method;
  92074. m2: TJOB_Method;
  92075. begin
  92076. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallPositionCallback);
  92077. m2:=TJOB_Method.Create(TMethod(aErrorCallback),@JOBCallPositionErrorCallback);
  92078. try
  92079. InvokeJSNoResult('getCurrentPosition',[m,m2]);
  92080. finally
  92081. m.free;
  92082. m2.free;
  92083. end;
  92084. end;
  92085. function TJSGeolocation.watchPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback; const aOptions: TJSPositionOptions): LongInt;
  92086. var
  92087. m: TJOB_Method;
  92088. m2: TJOB_Method;
  92089. begin
  92090. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallPositionCallback);
  92091. m2:=TJOB_Method.Create(TMethod(aErrorCallback),@JOBCallPositionErrorCallback);
  92092. try
  92093. Result:=InvokeJSLongIntResult('watchPosition',[m,m2,aOptions]);
  92094. finally
  92095. m.free;
  92096. m2.free;
  92097. end;
  92098. end;
  92099. function TJSGeolocation.watchPosition(const aSuccessCallback: TPositionCallback): LongInt;
  92100. var
  92101. m: TJOB_Method;
  92102. begin
  92103. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallPositionCallback);
  92104. try
  92105. Result:=InvokeJSLongIntResult('watchPosition',[m]);
  92106. finally
  92107. m.free;
  92108. end;
  92109. end;
  92110. function TJSGeolocation.watchPosition(const aSuccessCallback: TPositionCallback; const aErrorCallback: TPositionErrorCallback): LongInt;
  92111. var
  92112. m: TJOB_Method;
  92113. m2: TJOB_Method;
  92114. begin
  92115. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallPositionCallback);
  92116. m2:=TJOB_Method.Create(TMethod(aErrorCallback),@JOBCallPositionErrorCallback);
  92117. try
  92118. Result:=InvokeJSLongIntResult('watchPosition',[m,m2]);
  92119. finally
  92120. m.free;
  92121. m2.free;
  92122. end;
  92123. end;
  92124. procedure TJSGeolocation.clearWatch(aWatchId: LongInt);
  92125. begin
  92126. InvokeJSNoResult('clearWatch',[aWatchId]);
  92127. end;
  92128. class function TJSGeolocation.JSClassName: UnicodeString;
  92129. begin
  92130. Result:='Geolocation';
  92131. end;
  92132. class function TJSGeolocation.Cast(const Intf: IJSObject): IJSGeolocation;
  92133. begin
  92134. Result:=TJSGeolocation.JOBCast(Intf);
  92135. end;
  92136. function TJSGeolocationCoordinates._Getlatitude: Double;
  92137. begin
  92138. Result:=ReadJSPropertyDouble('latitude');
  92139. end;
  92140. function TJSGeolocationCoordinates._Getlongitude: Double;
  92141. begin
  92142. Result:=ReadJSPropertyDouble('longitude');
  92143. end;
  92144. function TJSGeolocationCoordinates._Getaltitude: Double;
  92145. begin
  92146. Result:=ReadJSPropertyDouble('altitude');
  92147. end;
  92148. function TJSGeolocationCoordinates._Getaccuracy: Double;
  92149. begin
  92150. Result:=ReadJSPropertyDouble('accuracy');
  92151. end;
  92152. function TJSGeolocationCoordinates._GetaltitudeAccuracy: Double;
  92153. begin
  92154. Result:=ReadJSPropertyDouble('altitudeAccuracy');
  92155. end;
  92156. function TJSGeolocationCoordinates._Getheading: Double;
  92157. begin
  92158. Result:=ReadJSPropertyDouble('heading');
  92159. end;
  92160. function TJSGeolocationCoordinates._Getspeed: Double;
  92161. begin
  92162. Result:=ReadJSPropertyDouble('speed');
  92163. end;
  92164. class function TJSGeolocationCoordinates.JSClassName: UnicodeString;
  92165. begin
  92166. Result:='GeolocationCoordinates';
  92167. end;
  92168. class function TJSGeolocationCoordinates.Cast(const Intf: IJSObject): IJSGeolocationCoordinates;
  92169. begin
  92170. Result:=TJSGeolocationCoordinates.JOBCast(Intf);
  92171. end;
  92172. function TJSGeolocationPosition._Getcoords: IJSGeolocationCoordinates;
  92173. begin
  92174. Result:=ReadJSPropertyObject('coords',TJSGeolocationCoordinates) as IJSGeolocationCoordinates;
  92175. end;
  92176. function TJSGeolocationPosition._Gettimestamp: TEpochTimeStamp;
  92177. begin
  92178. Result:=ReadJSPropertyInt64('timestamp');
  92179. end;
  92180. class function TJSGeolocationPosition.JSClassName: UnicodeString;
  92181. begin
  92182. Result:='GeolocationPosition';
  92183. end;
  92184. class function TJSGeolocationPosition.Cast(const Intf: IJSObject): IJSGeolocationPosition;
  92185. begin
  92186. Result:=TJSGeolocationPosition.JOBCast(Intf);
  92187. end;
  92188. function TJSGeolocationPositionError._Getcode: Word;
  92189. begin
  92190. Result:=ReadJSPropertyLongInt('code');
  92191. end;
  92192. function TJSGeolocationPositionError._Getmessage: UnicodeString;
  92193. begin
  92194. Result:=ReadJSPropertyUnicodeString('message');
  92195. end;
  92196. class function TJSGeolocationPositionError.JSClassName: UnicodeString;
  92197. begin
  92198. Result:='GeolocationPositionError';
  92199. end;
  92200. class function TJSGeolocationPositionError.Cast(const Intf: IJSObject): IJSGeolocationPositionError;
  92201. begin
  92202. Result:=TJSGeolocationPositionError.JOBCast(Intf);
  92203. end;
  92204. function TJSBoxQuadOptions._Getbox: TCSSBoxType;
  92205. begin
  92206. Result:=ReadJSPropertyUnicodeString('box');
  92207. end;
  92208. function TJSBoxQuadOptions._GetrelativeTo: TGeometryNode;
  92209. begin
  92210. Result:=ReadJSPropertyVariant('relativeTo');
  92211. end;
  92212. procedure TJSBoxQuadOptions._Setbox(const aValue : TCSSBoxType);
  92213. begin
  92214. WriteJSPropertyUnicodeString('box',aValue);
  92215. end;
  92216. procedure TJSBoxQuadOptions._SetrelativeTo(const aValue : TGeometryNode);
  92217. begin
  92218. WriteJSPropertyVariant('relativeTo',aValue);
  92219. end;
  92220. class function TJSBoxQuadOptions.JSClassName: UnicodeString;
  92221. begin
  92222. Result:='Object';
  92223. end;
  92224. class function TJSBoxQuadOptions.Cast(const Intf: IJSObject): IJSBoxQuadOptions;
  92225. begin
  92226. Result:=TJSBoxQuadOptions.JOBCast(Intf);
  92227. end;
  92228. function TJSConvertCoordinateOptions._GetfromBox: TCSSBoxType;
  92229. begin
  92230. Result:=ReadJSPropertyUnicodeString('fromBox');
  92231. end;
  92232. function TJSConvertCoordinateOptions._GettoBox: TCSSBoxType;
  92233. begin
  92234. Result:=ReadJSPropertyUnicodeString('toBox');
  92235. end;
  92236. procedure TJSConvertCoordinateOptions._SetfromBox(const aValue : TCSSBoxType);
  92237. begin
  92238. WriteJSPropertyUnicodeString('fromBox',aValue);
  92239. end;
  92240. procedure TJSConvertCoordinateOptions._SettoBox(const aValue : TCSSBoxType);
  92241. begin
  92242. WriteJSPropertyUnicodeString('toBox',aValue);
  92243. end;
  92244. class function TJSConvertCoordinateOptions.JSClassName: UnicodeString;
  92245. begin
  92246. Result:='Object';
  92247. end;
  92248. class function TJSConvertCoordinateOptions.Cast(const Intf: IJSObject): IJSConvertCoordinateOptions;
  92249. begin
  92250. Result:=TJSConvertCoordinateOptions.JOBCast(Intf);
  92251. end;
  92252. function TJSGeometryUtils.getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray;
  92253. begin
  92254. Result:=InvokeJSObjectResult('getBoxQuads',[aOptions],TJSArray) as TJSDOMQuadDynArray;
  92255. end;
  92256. function TJSGeometryUtils.getBoxQuads: TJSDOMQuadDynArray;
  92257. begin
  92258. Result:=InvokeJSObjectResult('getBoxQuads',[],TJSArray) as TJSDOMQuadDynArray;
  92259. end;
  92260. function TJSGeometryUtils.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  92261. begin
  92262. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  92263. end;
  92264. function TJSGeometryUtils.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  92265. begin
  92266. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  92267. end;
  92268. function TJSGeometryUtils.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  92269. begin
  92270. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  92271. end;
  92272. function TJSGeometryUtils.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad;
  92273. begin
  92274. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  92275. end;
  92276. function TJSGeometryUtils.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad;
  92277. begin
  92278. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  92279. end;
  92280. function TJSGeometryUtils.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad;
  92281. begin
  92282. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  92283. end;
  92284. function TJSGeometryUtils.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  92285. begin
  92286. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  92287. end;
  92288. function TJSGeometryUtils.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  92289. begin
  92290. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  92291. end;
  92292. function TJSGeometryUtils.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  92293. begin
  92294. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  92295. end;
  92296. function TJSGeometryUtils.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad;
  92297. begin
  92298. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  92299. end;
  92300. function TJSGeometryUtils.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad;
  92301. begin
  92302. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  92303. end;
  92304. function TJSGeometryUtils.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad;
  92305. begin
  92306. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  92307. end;
  92308. function TJSGeometryUtils.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  92309. begin
  92310. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  92311. end;
  92312. function TJSGeometryUtils.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  92313. begin
  92314. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  92315. end;
  92316. function TJSGeometryUtils.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  92317. begin
  92318. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  92319. end;
  92320. function TJSGeometryUtils.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint;
  92321. begin
  92322. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  92323. end;
  92324. function TJSGeometryUtils.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint;
  92325. begin
  92326. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  92327. end;
  92328. function TJSGeometryUtils.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint;
  92329. begin
  92330. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  92331. end;
  92332. class function TJSGeometryUtils.JSClassName: UnicodeString;
  92333. begin
  92334. Result:='GeometryUtils';
  92335. end;
  92336. class function TJSGeometryUtils.Cast(const Intf: IJSObject): IJSGeometryUtils;
  92337. begin
  92338. Result:=TJSGeometryUtils.JOBCast(Intf);
  92339. end;
  92340. class function TJSnsIMediaDevice.JSClassName: UnicodeString;
  92341. begin
  92342. Result:='nsIMediaDevice';
  92343. end;
  92344. class function TJSnsIMediaDevice.Cast(const Intf: IJSObject): IJSnsIMediaDevice;
  92345. begin
  92346. Result:=TJSnsIMediaDevice.JOBCast(Intf);
  92347. end;
  92348. function TJSGetUserMediaRequest._Gettype_: TGetUserMediaRequestType;
  92349. begin
  92350. Result:=ReadJSPropertyUnicodeString('type');
  92351. end;
  92352. function TJSGetUserMediaRequest._GetwindowID: QWord;
  92353. begin
  92354. Result:=ReadJSPropertyInt64('windowID');
  92355. end;
  92356. function TJSGetUserMediaRequest._GetinnerWindowID: QWord;
  92357. begin
  92358. Result:=ReadJSPropertyInt64('innerWindowID');
  92359. end;
  92360. function TJSGetUserMediaRequest._GetcallID: UnicodeString;
  92361. begin
  92362. Result:=ReadJSPropertyUnicodeString('callID');
  92363. end;
  92364. function TJSGetUserMediaRequest._GetrawID: UnicodeString;
  92365. begin
  92366. Result:=ReadJSPropertyUnicodeString('rawID');
  92367. end;
  92368. function TJSGetUserMediaRequest._GetmediaSource: UnicodeString;
  92369. begin
  92370. Result:=ReadJSPropertyUnicodeString('mediaSource');
  92371. end;
  92372. function TJSGetUserMediaRequest._Getdevices: TJSnsIMediaDeviceDynArray;
  92373. begin
  92374. Result:=ReadJSPropertyObject('devices',TJSArray) as TJSnsIMediaDeviceDynArray;
  92375. end;
  92376. function TJSGetUserMediaRequest._GetisSecure: Boolean;
  92377. begin
  92378. Result:=ReadJSPropertyBoolean('isSecure');
  92379. end;
  92380. function TJSGetUserMediaRequest._GetisHandlingUserInput: Boolean;
  92381. begin
  92382. Result:=ReadJSPropertyBoolean('isHandlingUserInput');
  92383. end;
  92384. function TJSGetUserMediaRequest.getConstraints: TJSMediaStreamConstraints;
  92385. begin
  92386. Result:=InvokeJSObjectResult('getConstraints',[],TJSMediaStreamConstraints) as TJSMediaStreamConstraints;
  92387. end;
  92388. function TJSGetUserMediaRequest.getAudioOutputOptions: TJSAudioOutputOptions;
  92389. begin
  92390. Result:=InvokeJSObjectResult('getAudioOutputOptions',[],TJSAudioOutputOptions) as TJSAudioOutputOptions;
  92391. end;
  92392. class function TJSGetUserMediaRequest.JSClassName: UnicodeString;
  92393. begin
  92394. Result:='GetUserMediaRequest';
  92395. end;
  92396. class function TJSGetUserMediaRequest.Cast(const Intf: IJSObject): IJSGetUserMediaRequest;
  92397. begin
  92398. Result:=TJSGetUserMediaRequest.JOBCast(Intf);
  92399. end;
  92400. function TJSGleanCategory.GetDefault(const aIdentifier: UnicodeString): IJSGleanMetric;
  92401. begin
  92402. Result:=InvokeJSObjectResult('',[aIdentifier],TJSGleanMetric) as IJSGleanMetric;
  92403. end;
  92404. class function TJSGleanCategory.JSClassName: UnicodeString;
  92405. begin
  92406. Result:='GleanCategory';
  92407. end;
  92408. class function TJSGleanCategory.Cast(const Intf: IJSObject): IJSGleanCategory;
  92409. begin
  92410. Result:=TJSGleanCategory.JOBCast(Intf);
  92411. end;
  92412. function TJSGleanImpl.GetDefault(const aIdentifier: UnicodeString): IJSGleanCategory;
  92413. begin
  92414. Result:=InvokeJSObjectResult('',[aIdentifier],TJSGleanCategory) as IJSGleanCategory;
  92415. end;
  92416. class function TJSGleanImpl.JSClassName: UnicodeString;
  92417. begin
  92418. Result:='GleanImpl';
  92419. end;
  92420. class function TJSGleanImpl.Cast(const Intf: IJSObject): IJSGleanImpl;
  92421. begin
  92422. Result:=TJSGleanImpl.JOBCast(Intf);
  92423. end;
  92424. function TJSGleanLabeled.GetDefault(const aIdentifier: UnicodeString): IJSGleanMetric;
  92425. begin
  92426. Result:=InvokeJSObjectResult('',[aIdentifier],TJSGleanMetric) as IJSGleanMetric;
  92427. end;
  92428. class function TJSGleanLabeled.JSClassName: UnicodeString;
  92429. begin
  92430. Result:='GleanLabeled';
  92431. end;
  92432. class function TJSGleanLabeled.Cast(const Intf: IJSObject): IJSGleanLabeled;
  92433. begin
  92434. Result:=TJSGleanLabeled.JOBCast(Intf);
  92435. end;
  92436. class function TJSGleanMetric.JSClassName: UnicodeString;
  92437. begin
  92438. Result:='GleanMetric';
  92439. end;
  92440. class function TJSGleanMetric.Cast(const Intf: IJSObject): IJSGleanMetric;
  92441. begin
  92442. Result:=TJSGleanMetric.JOBCast(Intf);
  92443. end;
  92444. procedure TJSGleanBoolean.set_(aValue: Boolean);
  92445. begin
  92446. InvokeJSNoResult('set',[aValue]);
  92447. end;
  92448. class function TJSGleanBoolean.JSClassName: UnicodeString;
  92449. begin
  92450. Result:='GleanBoolean';
  92451. end;
  92452. class function TJSGleanBoolean.Cast(const Intf: IJSObject): IJSGleanBoolean;
  92453. begin
  92454. Result:=TJSGleanBoolean.JOBCast(Intf);
  92455. end;
  92456. procedure TJSGleanDatetime.set_(aAValue: Int64);
  92457. begin
  92458. InvokeJSNoResult('set',[aAValue]);
  92459. end;
  92460. procedure TJSGleanDatetime.set_;
  92461. begin
  92462. InvokeJSNoResult('set',[]);
  92463. end;
  92464. class function TJSGleanDatetime.JSClassName: UnicodeString;
  92465. begin
  92466. Result:='GleanDatetime';
  92467. end;
  92468. class function TJSGleanDatetime.Cast(const Intf: IJSObject): IJSGleanDatetime;
  92469. begin
  92470. Result:=TJSGleanDatetime.JOBCast(Intf);
  92471. end;
  92472. procedure TJSGleanCounter.add(aAAmount: LongInt);
  92473. begin
  92474. InvokeJSNoResult('add',[aAAmount]);
  92475. end;
  92476. procedure TJSGleanCounter.add;
  92477. begin
  92478. InvokeJSNoResult('add',[]);
  92479. end;
  92480. class function TJSGleanCounter.JSClassName: UnicodeString;
  92481. begin
  92482. Result:='GleanCounter';
  92483. end;
  92484. class function TJSGleanCounter.Cast(const Intf: IJSObject): IJSGleanCounter;
  92485. begin
  92486. Result:=TJSGleanCounter.JOBCast(Intf);
  92487. end;
  92488. function TJSGleanDistributionData._Getsum: QWord;
  92489. begin
  92490. Result:=ReadJSPropertyInt64('sum');
  92491. end;
  92492. function TJSGleanDistributionData._Getcount: QWord;
  92493. begin
  92494. Result:=ReadJSPropertyInt64('count');
  92495. end;
  92496. function TJSGleanDistributionData._Getvalues: IJSObject;
  92497. begin
  92498. Result:=ReadJSPropertyObject('values',TJSObject) as IJSObject;
  92499. end;
  92500. procedure TJSGleanDistributionData._Setsum(const aValue : QWord);
  92501. begin
  92502. WriteJSPropertyDouble('sum',aValue);
  92503. end;
  92504. procedure TJSGleanDistributionData._Setcount(const aValue : QWord);
  92505. begin
  92506. WriteJSPropertyDouble('count',aValue);
  92507. end;
  92508. procedure TJSGleanDistributionData._Setvalues(const aValue : IJSObject);
  92509. begin
  92510. WriteJSPropertyObject('values',aValue);
  92511. end;
  92512. class function TJSGleanDistributionData.JSClassName: UnicodeString;
  92513. begin
  92514. Result:='Object';
  92515. end;
  92516. class function TJSGleanDistributionData.Cast(const Intf: IJSObject): IJSGleanDistributionData;
  92517. begin
  92518. Result:=TJSGleanDistributionData.JOBCast(Intf);
  92519. end;
  92520. function TJSGleanTimingDistribution.start: QWord;
  92521. begin
  92522. Result:=InvokeJSMaxIntResult('start',[]);
  92523. end;
  92524. procedure TJSGleanTimingDistribution.stopAndAccumulate(aAId: QWord);
  92525. begin
  92526. InvokeJSNoResult('stopAndAccumulate',[aAId]);
  92527. end;
  92528. procedure TJSGleanTimingDistribution.cancel(aAId: QWord);
  92529. begin
  92530. InvokeJSNoResult('cancel',[aAId]);
  92531. end;
  92532. class function TJSGleanTimingDistribution.JSClassName: UnicodeString;
  92533. begin
  92534. Result:='GleanTimingDistribution';
  92535. end;
  92536. class function TJSGleanTimingDistribution.Cast(const Intf: IJSObject): IJSGleanTimingDistribution;
  92537. begin
  92538. Result:=TJSGleanTimingDistribution.JOBCast(Intf);
  92539. end;
  92540. procedure TJSGleanMemoryDistribution.accumulate(aASample: QWord);
  92541. begin
  92542. InvokeJSNoResult('accumulate',[aASample]);
  92543. end;
  92544. class function TJSGleanMemoryDistribution.JSClassName: UnicodeString;
  92545. begin
  92546. Result:='GleanMemoryDistribution';
  92547. end;
  92548. class function TJSGleanMemoryDistribution.Cast(const Intf: IJSObject): IJSGleanMemoryDistribution;
  92549. begin
  92550. Result:=TJSGleanMemoryDistribution.JOBCast(Intf);
  92551. end;
  92552. procedure TJSGleanCustomDistribution.accumulateSamples(const aASamples: TInt64DynArray);
  92553. begin
  92554. InvokeJSNoResult('accumulateSamples',[aASamples]);
  92555. end;
  92556. procedure TJSGleanCustomDistribution.accumulateSingleSample(aASample: Int64);
  92557. begin
  92558. InvokeJSNoResult('accumulateSingleSample',[aASample]);
  92559. end;
  92560. class function TJSGleanCustomDistribution.JSClassName: UnicodeString;
  92561. begin
  92562. Result:='GleanCustomDistribution';
  92563. end;
  92564. class function TJSGleanCustomDistribution.Cast(const Intf: IJSObject): IJSGleanCustomDistribution;
  92565. begin
  92566. Result:=TJSGleanCustomDistribution.JOBCast(Intf);
  92567. end;
  92568. procedure TJSGleanString.set_(const aAValue: UTF8String);
  92569. begin
  92570. InvokeJSNoResult('set',[aAValue]);
  92571. end;
  92572. class function TJSGleanString.JSClassName: UnicodeString;
  92573. begin
  92574. Result:='GleanString';
  92575. end;
  92576. class function TJSGleanString.Cast(const Intf: IJSObject): IJSGleanString;
  92577. begin
  92578. Result:=TJSGleanString.JOBCast(Intf);
  92579. end;
  92580. procedure TJSGleanStringList.add(const aValue: UTF8String);
  92581. begin
  92582. InvokeJSNoResult('add',[aValue]);
  92583. end;
  92584. procedure TJSGleanStringList.set_(const aAValue: TUTF8StringDynArray);
  92585. begin
  92586. InvokeJSNoResult('set',[aAValue]);
  92587. end;
  92588. class function TJSGleanStringList.JSClassName: UnicodeString;
  92589. begin
  92590. Result:='GleanStringList';
  92591. end;
  92592. class function TJSGleanStringList.Cast(const Intf: IJSObject): IJSGleanStringList;
  92593. begin
  92594. Result:=TJSGleanStringList.JOBCast(Intf);
  92595. end;
  92596. procedure TJSGleanTimespan.start;
  92597. begin
  92598. InvokeJSNoResult('start',[]);
  92599. end;
  92600. procedure TJSGleanTimespan.stop;
  92601. begin
  92602. InvokeJSNoResult('stop',[]);
  92603. end;
  92604. procedure TJSGleanTimespan.cancel;
  92605. begin
  92606. InvokeJSNoResult('cancel',[]);
  92607. end;
  92608. procedure TJSGleanTimespan.setRaw(aADuration: Cardinal);
  92609. begin
  92610. InvokeJSNoResult('setRaw',[aADuration]);
  92611. end;
  92612. class function TJSGleanTimespan.JSClassName: UnicodeString;
  92613. begin
  92614. Result:='GleanTimespan';
  92615. end;
  92616. class function TJSGleanTimespan.Cast(const Intf: IJSObject): IJSGleanTimespan;
  92617. begin
  92618. Result:=TJSGleanTimespan.JOBCast(Intf);
  92619. end;
  92620. procedure TJSGleanUuid.set_(const aAValue: UTF8String);
  92621. begin
  92622. InvokeJSNoResult('set',[aAValue]);
  92623. end;
  92624. procedure TJSGleanUuid.generateAndSet;
  92625. begin
  92626. InvokeJSNoResult('generateAndSet',[]);
  92627. end;
  92628. class function TJSGleanUuid.JSClassName: UnicodeString;
  92629. begin
  92630. Result:='GleanUuid';
  92631. end;
  92632. class function TJSGleanUuid.Cast(const Intf: IJSObject): IJSGleanUuid;
  92633. begin
  92634. Result:=TJSGleanUuid.JOBCast(Intf);
  92635. end;
  92636. function TJSGleanEventRecord._Gettimestamp: QWord;
  92637. begin
  92638. Result:=ReadJSPropertyInt64('timestamp');
  92639. end;
  92640. function TJSGleanEventRecord._Getcategory: UTF8String;
  92641. begin
  92642. Result:=ReadJSPropertyUTF8String('category');
  92643. end;
  92644. function TJSGleanEventRecord._Getname: UTF8String;
  92645. begin
  92646. Result:=ReadJSPropertyUTF8String('name');
  92647. end;
  92648. function TJSGleanEventRecord._Getextra: IJSObject;
  92649. begin
  92650. Result:=ReadJSPropertyObject('extra',TJSObject) as IJSObject;
  92651. end;
  92652. procedure TJSGleanEventRecord._Settimestamp(const aValue : QWord);
  92653. begin
  92654. WriteJSPropertyDouble('timestamp',aValue);
  92655. end;
  92656. procedure TJSGleanEventRecord._Setcategory(const aValue : UTF8String);
  92657. begin
  92658. WriteJSPropertyUTF8String('category',aValue);
  92659. end;
  92660. procedure TJSGleanEventRecord._Setname(const aValue : UTF8String);
  92661. begin
  92662. WriteJSPropertyUTF8String('name',aValue);
  92663. end;
  92664. procedure TJSGleanEventRecord._Setextra(const aValue : IJSObject);
  92665. begin
  92666. WriteJSPropertyObject('extra',aValue);
  92667. end;
  92668. class function TJSGleanEventRecord.JSClassName: UnicodeString;
  92669. begin
  92670. Result:='Object';
  92671. end;
  92672. class function TJSGleanEventRecord.Cast(const Intf: IJSObject): IJSGleanEventRecord;
  92673. begin
  92674. Result:=TJSGleanEventRecord.JOBCast(Intf);
  92675. end;
  92676. procedure TJSGleanEvent.record_(aAExtra: IJSObject);
  92677. begin
  92678. InvokeJSNoResult('record',[aAExtra]);
  92679. end;
  92680. procedure TJSGleanEvent.record_;
  92681. begin
  92682. InvokeJSNoResult('record',[]);
  92683. end;
  92684. class function TJSGleanEvent.JSClassName: UnicodeString;
  92685. begin
  92686. Result:='GleanEvent';
  92687. end;
  92688. class function TJSGleanEvent.Cast(const Intf: IJSObject): IJSGleanEvent;
  92689. begin
  92690. Result:=TJSGleanEvent.JOBCast(Intf);
  92691. end;
  92692. procedure TJSGleanQuantity.set_(aAValue: Int64);
  92693. begin
  92694. InvokeJSNoResult('set',[aAValue]);
  92695. end;
  92696. class function TJSGleanQuantity.JSClassName: UnicodeString;
  92697. begin
  92698. Result:='GleanQuantity';
  92699. end;
  92700. class function TJSGleanQuantity.Cast(const Intf: IJSObject): IJSGleanQuantity;
  92701. begin
  92702. Result:=TJSGleanQuantity.JOBCast(Intf);
  92703. end;
  92704. procedure TJSGleanDenominator.add(aAAmount: LongInt);
  92705. begin
  92706. InvokeJSNoResult('add',[aAAmount]);
  92707. end;
  92708. procedure TJSGleanDenominator.add;
  92709. begin
  92710. InvokeJSNoResult('add',[]);
  92711. end;
  92712. class function TJSGleanDenominator.JSClassName: UnicodeString;
  92713. begin
  92714. Result:='GleanDenominator';
  92715. end;
  92716. class function TJSGleanDenominator.Cast(const Intf: IJSObject): IJSGleanDenominator;
  92717. begin
  92718. Result:=TJSGleanDenominator.JOBCast(Intf);
  92719. end;
  92720. function TJSGleanRateData._Getnumerator: LongInt;
  92721. begin
  92722. Result:=ReadJSPropertyLongInt('numerator');
  92723. end;
  92724. function TJSGleanRateData._Getdenominator: LongInt;
  92725. begin
  92726. Result:=ReadJSPropertyLongInt('denominator');
  92727. end;
  92728. procedure TJSGleanRateData._Setnumerator(const aValue : LongInt);
  92729. begin
  92730. WriteJSPropertyLongInt('numerator',aValue);
  92731. end;
  92732. procedure TJSGleanRateData._Setdenominator(const aValue : LongInt);
  92733. begin
  92734. WriteJSPropertyLongInt('denominator',aValue);
  92735. end;
  92736. class function TJSGleanRateData.JSClassName: UnicodeString;
  92737. begin
  92738. Result:='Object';
  92739. end;
  92740. class function TJSGleanRateData.Cast(const Intf: IJSObject): IJSGleanRateData;
  92741. begin
  92742. Result:=TJSGleanRateData.JOBCast(Intf);
  92743. end;
  92744. procedure TJSGleanNumerator.addToNumerator(aAAmount: LongInt);
  92745. begin
  92746. InvokeJSNoResult('addToNumerator',[aAAmount]);
  92747. end;
  92748. procedure TJSGleanNumerator.addToNumerator;
  92749. begin
  92750. InvokeJSNoResult('addToNumerator',[]);
  92751. end;
  92752. class function TJSGleanNumerator.JSClassName: UnicodeString;
  92753. begin
  92754. Result:='GleanNumerator';
  92755. end;
  92756. class function TJSGleanNumerator.Cast(const Intf: IJSObject): IJSGleanNumerator;
  92757. begin
  92758. Result:=TJSGleanNumerator.JOBCast(Intf);
  92759. end;
  92760. procedure TJSGleanRate.addToNumerator(aAAmount: LongInt);
  92761. begin
  92762. InvokeJSNoResult('addToNumerator',[aAAmount]);
  92763. end;
  92764. procedure TJSGleanRate.addToNumerator;
  92765. begin
  92766. InvokeJSNoResult('addToNumerator',[]);
  92767. end;
  92768. procedure TJSGleanRate.addToDenominator(aAAmount: LongInt);
  92769. begin
  92770. InvokeJSNoResult('addToDenominator',[aAAmount]);
  92771. end;
  92772. procedure TJSGleanRate.addToDenominator;
  92773. begin
  92774. InvokeJSNoResult('addToDenominator',[]);
  92775. end;
  92776. class function TJSGleanRate.JSClassName: UnicodeString;
  92777. begin
  92778. Result:='GleanRate';
  92779. end;
  92780. class function TJSGleanRate.Cast(const Intf: IJSObject): IJSGleanRate;
  92781. begin
  92782. Result:=TJSGleanRate.JOBCast(Intf);
  92783. end;
  92784. procedure TJSGleanUrl.set_(const aAValue: UTF8String);
  92785. begin
  92786. InvokeJSNoResult('set',[aAValue]);
  92787. end;
  92788. class function TJSGleanUrl.JSClassName: UnicodeString;
  92789. begin
  92790. Result:='GleanUrl';
  92791. end;
  92792. class function TJSGleanUrl.Cast(const Intf: IJSObject): IJSGleanUrl;
  92793. begin
  92794. Result:=TJSGleanUrl.JOBCast(Intf);
  92795. end;
  92796. procedure TJSGleanText.set_(const aAValue: UTF8String);
  92797. begin
  92798. InvokeJSNoResult('set',[aAValue]);
  92799. end;
  92800. class function TJSGleanText.JSClassName: UnicodeString;
  92801. begin
  92802. Result:='GleanText';
  92803. end;
  92804. class function TJSGleanText.Cast(const Intf: IJSObject): IJSGleanText;
  92805. begin
  92806. Result:=TJSGleanText.JOBCast(Intf);
  92807. end;
  92808. procedure TJSGleanObject.set_(aValue: IJSObject);
  92809. begin
  92810. InvokeJSNoResult('set',[aValue]);
  92811. end;
  92812. class function TJSGleanObject.JSClassName: UnicodeString;
  92813. begin
  92814. Result:='GleanObject';
  92815. end;
  92816. class function TJSGleanObject.Cast(const Intf: IJSObject): IJSGleanObject;
  92817. begin
  92818. Result:=TJSGleanObject.JOBCast(Intf);
  92819. end;
  92820. class function TJSnsIGleanPing.JSClassName: UnicodeString;
  92821. begin
  92822. Result:='nsIGleanPing';
  92823. end;
  92824. class function TJSnsIGleanPing.Cast(const Intf: IJSObject): IJSnsIGleanPing;
  92825. begin
  92826. Result:=TJSnsIGleanPing.JOBCast(Intf);
  92827. end;
  92828. function TJSGleanPingsImpl.GetDefault(const aIdentifier: UnicodeString): IJSnsIGleanPing;
  92829. begin
  92830. Result:=InvokeJSObjectResult('',[aIdentifier],TJSnsIGleanPing) as IJSnsIGleanPing;
  92831. end;
  92832. class function TJSGleanPingsImpl.JSClassName: UnicodeString;
  92833. begin
  92834. Result:='GleanPingsImpl';
  92835. end;
  92836. class function TJSGleanPingsImpl.Cast(const Intf: IJSObject): IJSGleanPingsImpl;
  92837. begin
  92838. Result:=TJSGleanPingsImpl.JOBCast(Intf);
  92839. end;
  92840. function TJSGPUUncapturedErrorEventInit._Geterror: IJSGPUError;
  92841. begin
  92842. Result:=ReadJSPropertyObject('error',TJSGPUError) as IJSGPUError;
  92843. end;
  92844. procedure TJSGPUUncapturedErrorEventInit._Seterror(const aValue : IJSGPUError);
  92845. begin
  92846. WriteJSPropertyObject('error',aValue);
  92847. end;
  92848. class function TJSGPUUncapturedErrorEventInit.JSClassName: UnicodeString;
  92849. begin
  92850. Result:='Object';
  92851. end;
  92852. class function TJSGPUUncapturedErrorEventInit.Cast(const Intf: IJSObject): IJSGPUUncapturedErrorEventInit;
  92853. begin
  92854. Result:=TJSGPUUncapturedErrorEventInit.JOBCast(Intf);
  92855. end;
  92856. function TJSGPUUncapturedErrorEvent._Geterror: IJSGPUError;
  92857. begin
  92858. Result:=ReadJSPropertyObject('error',TJSGPUError) as IJSGPUError;
  92859. end;
  92860. constructor TJSGPUUncapturedErrorEvent.Create(const aType_: UnicodeString; const aGpuUncapturedErrorEventInitDict: TJSGPUUncapturedErrorEventInit);
  92861. begin
  92862. JOBCreate([aType_,aGpuUncapturedErrorEventInitDict]);
  92863. end;
  92864. class function TJSGPUUncapturedErrorEvent.JSClassName: UnicodeString;
  92865. begin
  92866. Result:='GPUUncapturedErrorEvent';
  92867. end;
  92868. class function TJSGPUUncapturedErrorEvent.Cast(const Intf: IJSObject): IJSGPUUncapturedErrorEvent;
  92869. begin
  92870. Result:=TJSGPUUncapturedErrorEvent.JOBCast(Intf);
  92871. end;
  92872. function TJSHashChangeEvent._GetoldURL: UnicodeString;
  92873. begin
  92874. Result:=ReadJSPropertyUnicodeString('oldURL');
  92875. end;
  92876. function TJSHashChangeEvent._GetnewURL: UnicodeString;
  92877. begin
  92878. Result:=ReadJSPropertyUnicodeString('newURL');
  92879. end;
  92880. constructor TJSHashChangeEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSHashChangeEventInit);
  92881. begin
  92882. JOBCreate([aType_,aEventInitDict]);
  92883. end;
  92884. constructor TJSHashChangeEvent.Create(const aType_: UnicodeString);
  92885. begin
  92886. JOBCreate([aType_]);
  92887. end;
  92888. procedure TJSHashChangeEvent.initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; const aOldURLArg: UnicodeString; const aNewURLArg: UnicodeString);
  92889. begin
  92890. InvokeJSNoResult('initHashChangeEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aOldURLArg,aNewURLArg]);
  92891. end;
  92892. procedure TJSHashChangeEvent.initHashChangeEvent(const aTypeArg: UnicodeString);
  92893. begin
  92894. InvokeJSNoResult('initHashChangeEvent',[aTypeArg]);
  92895. end;
  92896. procedure TJSHashChangeEvent.initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean);
  92897. begin
  92898. InvokeJSNoResult('initHashChangeEvent',[aTypeArg,aCanBubbleArg]);
  92899. end;
  92900. procedure TJSHashChangeEvent.initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean);
  92901. begin
  92902. InvokeJSNoResult('initHashChangeEvent',[aTypeArg,aCanBubbleArg,aCancelableArg]);
  92903. end;
  92904. procedure TJSHashChangeEvent.initHashChangeEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; const aOldURLArg: UnicodeString);
  92905. begin
  92906. InvokeJSNoResult('initHashChangeEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aOldURLArg]);
  92907. end;
  92908. class function TJSHashChangeEvent.JSClassName: UnicodeString;
  92909. begin
  92910. Result:='HashChangeEvent';
  92911. end;
  92912. class function TJSHashChangeEvent.Cast(const Intf: IJSObject): IJSHashChangeEvent;
  92913. begin
  92914. Result:=TJSHashChangeEvent.JOBCast(Intf);
  92915. end;
  92916. function TJSHashChangeEventInit._GetoldURL: UnicodeString;
  92917. begin
  92918. Result:=ReadJSPropertyUnicodeString('oldURL');
  92919. end;
  92920. function TJSHashChangeEventInit._GetnewURL: UnicodeString;
  92921. begin
  92922. Result:=ReadJSPropertyUnicodeString('newURL');
  92923. end;
  92924. procedure TJSHashChangeEventInit._SetoldURL(const aValue : UnicodeString);
  92925. begin
  92926. WriteJSPropertyUnicodeString('oldURL',aValue);
  92927. end;
  92928. procedure TJSHashChangeEventInit._SetnewURL(const aValue : UnicodeString);
  92929. begin
  92930. WriteJSPropertyUnicodeString('newURL',aValue);
  92931. end;
  92932. class function TJSHashChangeEventInit.JSClassName: UnicodeString;
  92933. begin
  92934. Result:='Object';
  92935. end;
  92936. class function TJSHashChangeEventInit.Cast(const Intf: IJSObject): IJSHashChangeEventInit;
  92937. begin
  92938. Result:=TJSHashChangeEventInit.JOBCast(Intf);
  92939. end;
  92940. constructor TJSHeaders.Create(aInit: IJSObject);
  92941. begin
  92942. JOBCreate([aInit]);
  92943. end;
  92944. constructor TJSHeaders.Create;
  92945. begin
  92946. JOBCreate([]);
  92947. end;
  92948. constructor TJSHeaders.Create(const aInit: TsequenceDynArrayDynArray);
  92949. begin
  92950. JOBCreate([aInit]);
  92951. end;
  92952. procedure TJSHeaders.append(const aName: UnicodeString; const aValue: UnicodeString);
  92953. begin
  92954. InvokeJSNoResult('append',[aName,aValue]);
  92955. end;
  92956. procedure TJSHeaders.delete(const aName: UnicodeString);
  92957. begin
  92958. InvokeJSNoResult('delete',[aName]);
  92959. end;
  92960. function TJSHeaders.get(const aName: UnicodeString): UnicodeString;
  92961. begin
  92962. Result:=InvokeJSUnicodeStringResult('get',[aName]);
  92963. end;
  92964. function TJSHeaders.getSetCookie: TUnicodeStringDynArray;
  92965. begin
  92966. Result:=InvokeJSObjectResult('getSetCookie',[],TJSArray) as TUnicodeStringDynArray;
  92967. end;
  92968. function TJSHeaders.has(const aName: UnicodeString): Boolean;
  92969. begin
  92970. Result:=InvokeJSBooleanResult('has',[aName]);
  92971. end;
  92972. procedure TJSHeaders.set_(const aName: UnicodeString; const aValue: UnicodeString);
  92973. begin
  92974. InvokeJSNoResult('set',[aName,aValue]);
  92975. end;
  92976. class function TJSHeaders.JSClassName: UnicodeString;
  92977. begin
  92978. Result:='Headers';
  92979. end;
  92980. class function TJSHeaders.Cast(const Intf: IJSObject): IJSHeaders;
  92981. begin
  92982. Result:=TJSHeaders.JOBCast(Intf);
  92983. end;
  92984. function TJSHighlight._Getpriority: LongInt;
  92985. begin
  92986. Result:=ReadJSPropertyLongInt('priority');
  92987. end;
  92988. function TJSHighlight._Gettype_: THighlightType;
  92989. begin
  92990. Result:=ReadJSPropertyUnicodeString('type');
  92991. end;
  92992. procedure TJSHighlight._Setpriority(const aValue : LongInt);
  92993. begin
  92994. WriteJSPropertyLongInt('priority',aValue);
  92995. end;
  92996. procedure TJSHighlight._Settype_(const aValue : THighlightType);
  92997. begin
  92998. WriteJSPropertyUnicodeString('type',aValue);
  92999. end;
  93000. constructor TJSHighlight.Create(aInitialRanges: IJSAbstractRange){; ToDo:varargs};
  93001. begin
  93002. JOBCreate([aInitialRanges]);
  93003. end;
  93004. procedure TJSHighlight.add(aRange: IJSAbstractRange);
  93005. begin
  93006. InvokeJSNoResult('add',[aRange]);
  93007. end;
  93008. procedure TJSHighlight.clear;
  93009. begin
  93010. InvokeJSNoResult('clear',[]);
  93011. end;
  93012. function TJSHighlight.delete(aRange: IJSAbstractRange): Boolean;
  93013. begin
  93014. Result:=InvokeJSBooleanResult('delete',[aRange]);
  93015. end;
  93016. class function TJSHighlight.JSClassName: UnicodeString;
  93017. begin
  93018. Result:='Highlight';
  93019. end;
  93020. class function TJSHighlight.Cast(const Intf: IJSObject): IJSHighlight;
  93021. begin
  93022. Result:=TJSHighlight.JOBCast(Intf);
  93023. end;
  93024. function TJSHighlightRegistry._Getsize: LongInt;
  93025. begin
  93026. Result:=ReadJSPropertyLongInt('size');
  93027. end;
  93028. function TJSHighlightRegistry.get(key: UnicodeString) : TJSHighlight;
  93029. begin
  93030. Result:=InvokeJSObjectResult('get',[key],TJSHighlight) as TJSHighlight;
  93031. end;
  93032. function TJSHighlightRegistry.has(key: UnicodeString) : Boolean;
  93033. begin
  93034. Result:=InvokeJSBooleanResult('has',[key]);
  93035. end;
  93036. function TJSHighlightRegistry.entries : IJSIterator;
  93037. begin
  93038. Result:=InvokeJSObjectResult('entries',[],TJSIterator) as IJSIterator;
  93039. end;
  93040. function TJSHighlightRegistry.keys : IJSIterator;
  93041. begin
  93042. Result:=InvokeJSObjectResult('keys',[],TJSIterator) as IJSIterator;
  93043. end;
  93044. function TJSHighlightRegistry.values : IJSIterator;
  93045. begin
  93046. Result:=InvokeJSObjectResult('values',[],TJSIterator) as IJSIterator;
  93047. end;
  93048. procedure TJSHighlightRegistry.set_(const aKey: UnicodeString; aValue: IJSHighlight);
  93049. begin
  93050. InvokeJSNoResult('set',[aKey,aValue]);
  93051. end;
  93052. procedure TJSHighlightRegistry.clear;
  93053. begin
  93054. InvokeJSNoResult('clear',[]);
  93055. end;
  93056. function TJSHighlightRegistry.delete(const aKey: UnicodeString): Boolean;
  93057. begin
  93058. Result:=InvokeJSBooleanResult('delete',[aKey]);
  93059. end;
  93060. class function TJSHighlightRegistry.JSClassName: UnicodeString;
  93061. begin
  93062. Result:='HighlightRegistry';
  93063. end;
  93064. class function TJSHighlightRegistry.Cast(const Intf: IJSObject): IJSHighlightRegistry;
  93065. begin
  93066. Result:=TJSHighlightRegistry.JOBCast(Intf);
  93067. end;
  93068. function TJSHistory._Getlength_: Cardinal;
  93069. begin
  93070. Result:=ReadJSPropertyInt64('length');
  93071. end;
  93072. function TJSHistory._GetscrollRestoration: TScrollRestoration;
  93073. begin
  93074. Result:=ReadJSPropertyUnicodeString('scrollRestoration');
  93075. end;
  93076. function TJSHistory._Getstate: Variant;
  93077. begin
  93078. Result:=ReadJSPropertyVariant('state');
  93079. end;
  93080. procedure TJSHistory._SetscrollRestoration(const aValue : TScrollRestoration);
  93081. begin
  93082. WriteJSPropertyUnicodeString('scrollRestoration',aValue);
  93083. end;
  93084. procedure TJSHistory.go(aDelta: LongInt);
  93085. begin
  93086. InvokeJSNoResult('go',[aDelta]);
  93087. end;
  93088. procedure TJSHistory.go;
  93089. begin
  93090. InvokeJSNoResult('go',[]);
  93091. end;
  93092. procedure TJSHistory.back;
  93093. begin
  93094. InvokeJSNoResult('back',[]);
  93095. end;
  93096. procedure TJSHistory.forward;
  93097. begin
  93098. InvokeJSNoResult('forward',[]);
  93099. end;
  93100. procedure TJSHistory.pushState(const aData: Variant; const aTitle: UnicodeString; const aUrl: UnicodeString);
  93101. begin
  93102. InvokeJSNoResult('pushState',[aData,aTitle,aUrl]);
  93103. end;
  93104. procedure TJSHistory.pushState(const aData: Variant; const aTitle: UnicodeString);
  93105. begin
  93106. InvokeJSNoResult('pushState',[aData,aTitle]);
  93107. end;
  93108. procedure TJSHistory.replaceState(const aData: Variant; const aTitle: UnicodeString; const aUrl: UnicodeString);
  93109. begin
  93110. InvokeJSNoResult('replaceState',[aData,aTitle,aUrl]);
  93111. end;
  93112. procedure TJSHistory.replaceState(const aData: Variant; const aTitle: UnicodeString);
  93113. begin
  93114. InvokeJSNoResult('replaceState',[aData,aTitle]);
  93115. end;
  93116. class function TJSHistory.JSClassName: UnicodeString;
  93117. begin
  93118. Result:='History';
  93119. end;
  93120. class function TJSHistory.Cast(const Intf: IJSObject): IJSHistory;
  93121. begin
  93122. Result:=TJSHistory.JOBCast(Intf);
  93123. end;
  93124. function TJSHTMLAllCollection._Getlength_: Cardinal;
  93125. begin
  93126. Result:=ReadJSPropertyInt64('length');
  93127. end;
  93128. function TJSHTMLAllCollection.GetDefault(aIndex: Cardinal): IJSElement;
  93129. begin
  93130. Result:=InvokeJSObjectResult('',[aIndex],TJSElement) as IJSElement;
  93131. end;
  93132. function TJSHTMLAllCollection.namedItem(const aName: UnicodeString): THTMLAllCollection_namedItem_Type;
  93133. begin
  93134. Result:=InvokeJSVariantResult('namedItem',[aName]);
  93135. end;
  93136. function TJSHTMLAllCollection.item(const aNameOrIndex: UnicodeString): THTMLAllCollection_item_Type;
  93137. begin
  93138. Result:=InvokeJSVariantResult('item',[aNameOrIndex]);
  93139. end;
  93140. function TJSHTMLAllCollection.item: THTMLAllCollection_item_Type;
  93141. begin
  93142. Result:=InvokeJSVariantResult('item',[]);
  93143. end;
  93144. function TJSHTMLAllCollection.HTMLAllCollectionType(const aNameOrIndex: UnicodeString): THTMLAllCollection_Type;
  93145. begin
  93146. Result:=InvokeJSVariantResult('',[aNameOrIndex]);
  93147. end;
  93148. function TJSHTMLAllCollection.HTMLAllCollectionType: THTMLAllCollection_Type;
  93149. begin
  93150. Result:=InvokeJSVariantResult('',[]);
  93151. end;
  93152. class function TJSHTMLAllCollection.JSClassName: UnicodeString;
  93153. begin
  93154. Result:='HTMLAllCollection';
  93155. end;
  93156. class function TJSHTMLAllCollection.Cast(const Intf: IJSObject): IJSHTMLAllCollection;
  93157. begin
  93158. Result:=TJSHTMLAllCollection.JOBCast(Intf);
  93159. end;
  93160. function TJSHTMLAnchorElement._Gettarget: UnicodeString;
  93161. begin
  93162. Result:=ReadJSPropertyUnicodeString('target');
  93163. end;
  93164. function TJSHTMLAnchorElement._Getdownload: UnicodeString;
  93165. begin
  93166. Result:=ReadJSPropertyUnicodeString('download');
  93167. end;
  93168. function TJSHTMLAnchorElement._Getping: UnicodeString;
  93169. begin
  93170. Result:=ReadJSPropertyUnicodeString('ping');
  93171. end;
  93172. function TJSHTMLAnchorElement._Getrel: UnicodeString;
  93173. begin
  93174. Result:=ReadJSPropertyUnicodeString('rel');
  93175. end;
  93176. function TJSHTMLAnchorElement._GetreferrerPolicy: UnicodeString;
  93177. begin
  93178. Result:=ReadJSPropertyUnicodeString('referrerPolicy');
  93179. end;
  93180. function TJSHTMLAnchorElement._GetrelList: IJSDOMTokenList;
  93181. begin
  93182. Result:=ReadJSPropertyObject('relList',TJSDOMTokenList) as IJSDOMTokenList;
  93183. end;
  93184. function TJSHTMLAnchorElement._Gethreflang: UnicodeString;
  93185. begin
  93186. Result:=ReadJSPropertyUnicodeString('hreflang');
  93187. end;
  93188. function TJSHTMLAnchorElement._Gettype_: UnicodeString;
  93189. begin
  93190. Result:=ReadJSPropertyUnicodeString('type');
  93191. end;
  93192. function TJSHTMLAnchorElement._Gettext: UnicodeString;
  93193. begin
  93194. Result:=ReadJSPropertyUnicodeString('text');
  93195. end;
  93196. function TJSHTMLAnchorElement._Getcoords: UnicodeString;
  93197. begin
  93198. Result:=ReadJSPropertyUnicodeString('coords');
  93199. end;
  93200. function TJSHTMLAnchorElement._Getcharset: UnicodeString;
  93201. begin
  93202. Result:=ReadJSPropertyUnicodeString('charset');
  93203. end;
  93204. function TJSHTMLAnchorElement._Getname: UnicodeString;
  93205. begin
  93206. Result:=ReadJSPropertyUnicodeString('name');
  93207. end;
  93208. function TJSHTMLAnchorElement._Getrev: UnicodeString;
  93209. begin
  93210. Result:=ReadJSPropertyUnicodeString('rev');
  93211. end;
  93212. function TJSHTMLAnchorElement._Getshape: UnicodeString;
  93213. begin
  93214. Result:=ReadJSPropertyUnicodeString('shape');
  93215. end;
  93216. function TJSHTMLAnchorElement._Gethref: UnicodeString;
  93217. begin
  93218. Result:=ReadJSPropertyUnicodeString('href');
  93219. end;
  93220. function TJSHTMLAnchorElement._Getorigin: UnicodeString;
  93221. begin
  93222. Result:=ReadJSPropertyUnicodeString('origin');
  93223. end;
  93224. function TJSHTMLAnchorElement._Getprotocol: UnicodeString;
  93225. begin
  93226. Result:=ReadJSPropertyUnicodeString('protocol');
  93227. end;
  93228. function TJSHTMLAnchorElement._Getusername: UnicodeString;
  93229. begin
  93230. Result:=ReadJSPropertyUnicodeString('username');
  93231. end;
  93232. function TJSHTMLAnchorElement._Getpassword: UnicodeString;
  93233. begin
  93234. Result:=ReadJSPropertyUnicodeString('password');
  93235. end;
  93236. function TJSHTMLAnchorElement._Gethost: UnicodeString;
  93237. begin
  93238. Result:=ReadJSPropertyUnicodeString('host');
  93239. end;
  93240. function TJSHTMLAnchorElement._Gethostname: UnicodeString;
  93241. begin
  93242. Result:=ReadJSPropertyUnicodeString('hostname');
  93243. end;
  93244. function TJSHTMLAnchorElement._Getport: UnicodeString;
  93245. begin
  93246. Result:=ReadJSPropertyUnicodeString('port');
  93247. end;
  93248. function TJSHTMLAnchorElement._Getpathname: UnicodeString;
  93249. begin
  93250. Result:=ReadJSPropertyUnicodeString('pathname');
  93251. end;
  93252. function TJSHTMLAnchorElement._Getsearch: UnicodeString;
  93253. begin
  93254. Result:=ReadJSPropertyUnicodeString('search');
  93255. end;
  93256. function TJSHTMLAnchorElement._Gethash: UnicodeString;
  93257. begin
  93258. Result:=ReadJSPropertyUnicodeString('hash');
  93259. end;
  93260. procedure TJSHTMLAnchorElement._Settarget(const aValue : UnicodeString);
  93261. begin
  93262. WriteJSPropertyUnicodeString('target',aValue);
  93263. end;
  93264. procedure TJSHTMLAnchorElement._Setdownload(const aValue : UnicodeString);
  93265. begin
  93266. WriteJSPropertyUnicodeString('download',aValue);
  93267. end;
  93268. procedure TJSHTMLAnchorElement._Setping(const aValue : UnicodeString);
  93269. begin
  93270. WriteJSPropertyUnicodeString('ping',aValue);
  93271. end;
  93272. procedure TJSHTMLAnchorElement._Setrel(const aValue : UnicodeString);
  93273. begin
  93274. WriteJSPropertyUnicodeString('rel',aValue);
  93275. end;
  93276. procedure TJSHTMLAnchorElement._SetreferrerPolicy(const aValue : UnicodeString);
  93277. begin
  93278. WriteJSPropertyUnicodeString('referrerPolicy',aValue);
  93279. end;
  93280. procedure TJSHTMLAnchorElement._Sethreflang(const aValue : UnicodeString);
  93281. begin
  93282. WriteJSPropertyUnicodeString('hreflang',aValue);
  93283. end;
  93284. procedure TJSHTMLAnchorElement._Settype_(const aValue : UnicodeString);
  93285. begin
  93286. WriteJSPropertyUnicodeString('type',aValue);
  93287. end;
  93288. procedure TJSHTMLAnchorElement._Settext(const aValue : UnicodeString);
  93289. begin
  93290. WriteJSPropertyUnicodeString('text',aValue);
  93291. end;
  93292. procedure TJSHTMLAnchorElement._Setcoords(const aValue : UnicodeString);
  93293. begin
  93294. WriteJSPropertyUnicodeString('coords',aValue);
  93295. end;
  93296. procedure TJSHTMLAnchorElement._Setcharset(const aValue : UnicodeString);
  93297. begin
  93298. WriteJSPropertyUnicodeString('charset',aValue);
  93299. end;
  93300. procedure TJSHTMLAnchorElement._Setname(const aValue : UnicodeString);
  93301. begin
  93302. WriteJSPropertyUnicodeString('name',aValue);
  93303. end;
  93304. procedure TJSHTMLAnchorElement._Setrev(const aValue : UnicodeString);
  93305. begin
  93306. WriteJSPropertyUnicodeString('rev',aValue);
  93307. end;
  93308. procedure TJSHTMLAnchorElement._Setshape(const aValue : UnicodeString);
  93309. begin
  93310. WriteJSPropertyUnicodeString('shape',aValue);
  93311. end;
  93312. procedure TJSHTMLAnchorElement._Setprotocol(const aValue : UnicodeString);
  93313. begin
  93314. WriteJSPropertyUnicodeString('protocol',aValue);
  93315. end;
  93316. procedure TJSHTMLAnchorElement._Setusername(const aValue : UnicodeString);
  93317. begin
  93318. WriteJSPropertyUnicodeString('username',aValue);
  93319. end;
  93320. procedure TJSHTMLAnchorElement._Setpassword(const aValue : UnicodeString);
  93321. begin
  93322. WriteJSPropertyUnicodeString('password',aValue);
  93323. end;
  93324. procedure TJSHTMLAnchorElement._Sethost(const aValue : UnicodeString);
  93325. begin
  93326. WriteJSPropertyUnicodeString('host',aValue);
  93327. end;
  93328. procedure TJSHTMLAnchorElement._Sethostname(const aValue : UnicodeString);
  93329. begin
  93330. WriteJSPropertyUnicodeString('hostname',aValue);
  93331. end;
  93332. procedure TJSHTMLAnchorElement._Setport(const aValue : UnicodeString);
  93333. begin
  93334. WriteJSPropertyUnicodeString('port',aValue);
  93335. end;
  93336. procedure TJSHTMLAnchorElement._Setpathname(const aValue : UnicodeString);
  93337. begin
  93338. WriteJSPropertyUnicodeString('pathname',aValue);
  93339. end;
  93340. procedure TJSHTMLAnchorElement._Setsearch(const aValue : UnicodeString);
  93341. begin
  93342. WriteJSPropertyUnicodeString('search',aValue);
  93343. end;
  93344. procedure TJSHTMLAnchorElement._Sethash(const aValue : UnicodeString);
  93345. begin
  93346. WriteJSPropertyUnicodeString('hash',aValue);
  93347. end;
  93348. constructor TJSHTMLAnchorElement.Create;
  93349. begin
  93350. JOBCreate([]);
  93351. end;
  93352. class function TJSHTMLAnchorElement.JSClassName: UnicodeString;
  93353. begin
  93354. Result:='HTMLAnchorElement';
  93355. end;
  93356. class function TJSHTMLAnchorElement.Cast(const Intf: IJSObject): IJSHTMLAnchorElement;
  93357. begin
  93358. Result:=TJSHTMLAnchorElement.JOBCast(Intf);
  93359. end;
  93360. function TJSHTMLAreaElement._Getalt: UnicodeString;
  93361. begin
  93362. Result:=ReadJSPropertyUnicodeString('alt');
  93363. end;
  93364. function TJSHTMLAreaElement._Getcoords: UnicodeString;
  93365. begin
  93366. Result:=ReadJSPropertyUnicodeString('coords');
  93367. end;
  93368. function TJSHTMLAreaElement._Getshape: UnicodeString;
  93369. begin
  93370. Result:=ReadJSPropertyUnicodeString('shape');
  93371. end;
  93372. function TJSHTMLAreaElement._Gettarget: UnicodeString;
  93373. begin
  93374. Result:=ReadJSPropertyUnicodeString('target');
  93375. end;
  93376. function TJSHTMLAreaElement._Getdownload: UnicodeString;
  93377. begin
  93378. Result:=ReadJSPropertyUnicodeString('download');
  93379. end;
  93380. function TJSHTMLAreaElement._Getping: UnicodeString;
  93381. begin
  93382. Result:=ReadJSPropertyUnicodeString('ping');
  93383. end;
  93384. function TJSHTMLAreaElement._Getrel: UnicodeString;
  93385. begin
  93386. Result:=ReadJSPropertyUnicodeString('rel');
  93387. end;
  93388. function TJSHTMLAreaElement._GetreferrerPolicy: UnicodeString;
  93389. begin
  93390. Result:=ReadJSPropertyUnicodeString('referrerPolicy');
  93391. end;
  93392. function TJSHTMLAreaElement._GetrelList: IJSDOMTokenList;
  93393. begin
  93394. Result:=ReadJSPropertyObject('relList',TJSDOMTokenList) as IJSDOMTokenList;
  93395. end;
  93396. function TJSHTMLAreaElement._GetnoHref: Boolean;
  93397. begin
  93398. Result:=ReadJSPropertyBoolean('noHref');
  93399. end;
  93400. function TJSHTMLAreaElement._Gethref: UnicodeString;
  93401. begin
  93402. Result:=ReadJSPropertyUnicodeString('href');
  93403. end;
  93404. function TJSHTMLAreaElement._Getorigin: UnicodeString;
  93405. begin
  93406. Result:=ReadJSPropertyUnicodeString('origin');
  93407. end;
  93408. function TJSHTMLAreaElement._Getprotocol: UnicodeString;
  93409. begin
  93410. Result:=ReadJSPropertyUnicodeString('protocol');
  93411. end;
  93412. function TJSHTMLAreaElement._Getusername: UnicodeString;
  93413. begin
  93414. Result:=ReadJSPropertyUnicodeString('username');
  93415. end;
  93416. function TJSHTMLAreaElement._Getpassword: UnicodeString;
  93417. begin
  93418. Result:=ReadJSPropertyUnicodeString('password');
  93419. end;
  93420. function TJSHTMLAreaElement._Gethost: UnicodeString;
  93421. begin
  93422. Result:=ReadJSPropertyUnicodeString('host');
  93423. end;
  93424. function TJSHTMLAreaElement._Gethostname: UnicodeString;
  93425. begin
  93426. Result:=ReadJSPropertyUnicodeString('hostname');
  93427. end;
  93428. function TJSHTMLAreaElement._Getport: UnicodeString;
  93429. begin
  93430. Result:=ReadJSPropertyUnicodeString('port');
  93431. end;
  93432. function TJSHTMLAreaElement._Getpathname: UnicodeString;
  93433. begin
  93434. Result:=ReadJSPropertyUnicodeString('pathname');
  93435. end;
  93436. function TJSHTMLAreaElement._Getsearch: UnicodeString;
  93437. begin
  93438. Result:=ReadJSPropertyUnicodeString('search');
  93439. end;
  93440. function TJSHTMLAreaElement._Gethash: UnicodeString;
  93441. begin
  93442. Result:=ReadJSPropertyUnicodeString('hash');
  93443. end;
  93444. procedure TJSHTMLAreaElement._Setalt(const aValue : UnicodeString);
  93445. begin
  93446. WriteJSPropertyUnicodeString('alt',aValue);
  93447. end;
  93448. procedure TJSHTMLAreaElement._Setcoords(const aValue : UnicodeString);
  93449. begin
  93450. WriteJSPropertyUnicodeString('coords',aValue);
  93451. end;
  93452. procedure TJSHTMLAreaElement._Setshape(const aValue : UnicodeString);
  93453. begin
  93454. WriteJSPropertyUnicodeString('shape',aValue);
  93455. end;
  93456. procedure TJSHTMLAreaElement._Settarget(const aValue : UnicodeString);
  93457. begin
  93458. WriteJSPropertyUnicodeString('target',aValue);
  93459. end;
  93460. procedure TJSHTMLAreaElement._Setdownload(const aValue : UnicodeString);
  93461. begin
  93462. WriteJSPropertyUnicodeString('download',aValue);
  93463. end;
  93464. procedure TJSHTMLAreaElement._Setping(const aValue : UnicodeString);
  93465. begin
  93466. WriteJSPropertyUnicodeString('ping',aValue);
  93467. end;
  93468. procedure TJSHTMLAreaElement._Setrel(const aValue : UnicodeString);
  93469. begin
  93470. WriteJSPropertyUnicodeString('rel',aValue);
  93471. end;
  93472. procedure TJSHTMLAreaElement._SetreferrerPolicy(const aValue : UnicodeString);
  93473. begin
  93474. WriteJSPropertyUnicodeString('referrerPolicy',aValue);
  93475. end;
  93476. procedure TJSHTMLAreaElement._SetnoHref(const aValue : Boolean);
  93477. begin
  93478. WriteJSPropertyBoolean('noHref',aValue);
  93479. end;
  93480. procedure TJSHTMLAreaElement._Setprotocol(const aValue : UnicodeString);
  93481. begin
  93482. WriteJSPropertyUnicodeString('protocol',aValue);
  93483. end;
  93484. procedure TJSHTMLAreaElement._Setusername(const aValue : UnicodeString);
  93485. begin
  93486. WriteJSPropertyUnicodeString('username',aValue);
  93487. end;
  93488. procedure TJSHTMLAreaElement._Setpassword(const aValue : UnicodeString);
  93489. begin
  93490. WriteJSPropertyUnicodeString('password',aValue);
  93491. end;
  93492. procedure TJSHTMLAreaElement._Sethost(const aValue : UnicodeString);
  93493. begin
  93494. WriteJSPropertyUnicodeString('host',aValue);
  93495. end;
  93496. procedure TJSHTMLAreaElement._Sethostname(const aValue : UnicodeString);
  93497. begin
  93498. WriteJSPropertyUnicodeString('hostname',aValue);
  93499. end;
  93500. procedure TJSHTMLAreaElement._Setport(const aValue : UnicodeString);
  93501. begin
  93502. WriteJSPropertyUnicodeString('port',aValue);
  93503. end;
  93504. procedure TJSHTMLAreaElement._Setpathname(const aValue : UnicodeString);
  93505. begin
  93506. WriteJSPropertyUnicodeString('pathname',aValue);
  93507. end;
  93508. procedure TJSHTMLAreaElement._Setsearch(const aValue : UnicodeString);
  93509. begin
  93510. WriteJSPropertyUnicodeString('search',aValue);
  93511. end;
  93512. procedure TJSHTMLAreaElement._Sethash(const aValue : UnicodeString);
  93513. begin
  93514. WriteJSPropertyUnicodeString('hash',aValue);
  93515. end;
  93516. constructor TJSHTMLAreaElement.Create;
  93517. begin
  93518. JOBCreate([]);
  93519. end;
  93520. class function TJSHTMLAreaElement.JSClassName: UnicodeString;
  93521. begin
  93522. Result:='HTMLAreaElement';
  93523. end;
  93524. class function TJSHTMLAreaElement.Cast(const Intf: IJSObject): IJSHTMLAreaElement;
  93525. begin
  93526. Result:=TJSHTMLAreaElement.JOBCast(Intf);
  93527. end;
  93528. constructor TJSHTMLAudioElement.Create;
  93529. begin
  93530. JOBCreate([]);
  93531. end;
  93532. class function TJSHTMLAudioElement.JSClassName: UnicodeString;
  93533. begin
  93534. Result:='HTMLAudioElement';
  93535. end;
  93536. class function TJSHTMLAudioElement.Cast(const Intf: IJSObject): IJSHTMLAudioElement;
  93537. begin
  93538. Result:=TJSHTMLAudioElement.JOBCast(Intf);
  93539. end;
  93540. function TJSHTMLBaseElement._Gethref: UnicodeString;
  93541. begin
  93542. Result:=ReadJSPropertyUnicodeString('href');
  93543. end;
  93544. function TJSHTMLBaseElement._Gettarget: UnicodeString;
  93545. begin
  93546. Result:=ReadJSPropertyUnicodeString('target');
  93547. end;
  93548. procedure TJSHTMLBaseElement._Sethref(const aValue : UnicodeString);
  93549. begin
  93550. WriteJSPropertyUnicodeString('href',aValue);
  93551. end;
  93552. procedure TJSHTMLBaseElement._Settarget(const aValue : UnicodeString);
  93553. begin
  93554. WriteJSPropertyUnicodeString('target',aValue);
  93555. end;
  93556. constructor TJSHTMLBaseElement.Create;
  93557. begin
  93558. JOBCreate([]);
  93559. end;
  93560. class function TJSHTMLBaseElement.JSClassName: UnicodeString;
  93561. begin
  93562. Result:='HTMLBaseElement';
  93563. end;
  93564. class function TJSHTMLBaseElement.Cast(const Intf: IJSObject): IJSHTMLBaseElement;
  93565. begin
  93566. Result:=TJSHTMLBaseElement.JOBCast(Intf);
  93567. end;
  93568. function TJSHTMLBodyElement._Gettext: UnicodeString;
  93569. begin
  93570. Result:=ReadJSPropertyUnicodeString('text');
  93571. end;
  93572. function TJSHTMLBodyElement._Getlink: UnicodeString;
  93573. begin
  93574. Result:=ReadJSPropertyUnicodeString('link');
  93575. end;
  93576. function TJSHTMLBodyElement._GetvLink: UnicodeString;
  93577. begin
  93578. Result:=ReadJSPropertyUnicodeString('vLink');
  93579. end;
  93580. function TJSHTMLBodyElement._GetaLink: UnicodeString;
  93581. begin
  93582. Result:=ReadJSPropertyUnicodeString('aLink');
  93583. end;
  93584. function TJSHTMLBodyElement._GetbgColor: UnicodeString;
  93585. begin
  93586. Result:=ReadJSPropertyUnicodeString('bgColor');
  93587. end;
  93588. function TJSHTMLBodyElement._Getbackground: UnicodeString;
  93589. begin
  93590. Result:=ReadJSPropertyUnicodeString('background');
  93591. end;
  93592. function TJSHTMLBodyElement._Getonafterprint: TEventHandler;
  93593. begin
  93594. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onafterprint')));
  93595. end;
  93596. function TJSHTMLBodyElement._Getonbeforeprint: TEventHandler;
  93597. begin
  93598. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforeprint')));
  93599. end;
  93600. function TJSHTMLBodyElement._Getonbeforeunload: TOnBeforeUnloadEventHandler;
  93601. begin
  93602. Result:=(TOnBeforeUnloadEventHandlerNonNull(ReadJSPropertyMethod('onbeforeunload')));
  93603. end;
  93604. function TJSHTMLBodyElement._Getonhashchange: TEventHandler;
  93605. begin
  93606. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onhashchange')));
  93607. end;
  93608. function TJSHTMLBodyElement._Getonlanguagechange: TEventHandler;
  93609. begin
  93610. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onlanguagechange')));
  93611. end;
  93612. function TJSHTMLBodyElement._Getonmessage: TEventHandler;
  93613. begin
  93614. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  93615. end;
  93616. function TJSHTMLBodyElement._Getonmessageerror: TEventHandler;
  93617. begin
  93618. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessageerror')));
  93619. end;
  93620. function TJSHTMLBodyElement._Getonoffline: TEventHandler;
  93621. begin
  93622. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onoffline')));
  93623. end;
  93624. function TJSHTMLBodyElement._Getononline: TEventHandler;
  93625. begin
  93626. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ononline')));
  93627. end;
  93628. function TJSHTMLBodyElement._Getonpagehide: TEventHandler;
  93629. begin
  93630. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpagehide')));
  93631. end;
  93632. function TJSHTMLBodyElement._Getonpageshow: TEventHandler;
  93633. begin
  93634. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpageshow')));
  93635. end;
  93636. function TJSHTMLBodyElement._Getonpopstate: TEventHandler;
  93637. begin
  93638. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpopstate')));
  93639. end;
  93640. function TJSHTMLBodyElement._Getonrejectionhandled: TEventHandler;
  93641. begin
  93642. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onrejectionhandled')));
  93643. end;
  93644. function TJSHTMLBodyElement._Getonstorage: TEventHandler;
  93645. begin
  93646. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstorage')));
  93647. end;
  93648. function TJSHTMLBodyElement._Getonunhandledrejection: TEventHandler;
  93649. begin
  93650. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onunhandledrejection')));
  93651. end;
  93652. function TJSHTMLBodyElement._Getonunload: TEventHandler;
  93653. begin
  93654. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onunload')));
  93655. end;
  93656. function TJSHTMLBodyElement._Getongamepadconnected: TEventHandler;
  93657. begin
  93658. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongamepadconnected')));
  93659. end;
  93660. function TJSHTMLBodyElement._Getongamepaddisconnected: TEventHandler;
  93661. begin
  93662. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongamepaddisconnected')));
  93663. end;
  93664. procedure TJSHTMLBodyElement._Settext(const aValue : UnicodeString);
  93665. begin
  93666. WriteJSPropertyUnicodeString('text',aValue);
  93667. end;
  93668. procedure TJSHTMLBodyElement._Setlink(const aValue : UnicodeString);
  93669. begin
  93670. WriteJSPropertyUnicodeString('link',aValue);
  93671. end;
  93672. procedure TJSHTMLBodyElement._SetvLink(const aValue : UnicodeString);
  93673. begin
  93674. WriteJSPropertyUnicodeString('vLink',aValue);
  93675. end;
  93676. procedure TJSHTMLBodyElement._SetaLink(const aValue : UnicodeString);
  93677. begin
  93678. WriteJSPropertyUnicodeString('aLink',aValue);
  93679. end;
  93680. procedure TJSHTMLBodyElement._SetbgColor(const aValue : UnicodeString);
  93681. begin
  93682. WriteJSPropertyUnicodeString('bgColor',aValue);
  93683. end;
  93684. procedure TJSHTMLBodyElement._Setbackground(const aValue : UnicodeString);
  93685. begin
  93686. WriteJSPropertyUnicodeString('background',aValue);
  93687. end;
  93688. procedure TJSHTMLBodyElement._Setonafterprint(const aValue : TEventHandler);
  93689. begin
  93690. WriteJSPropertyMethod('onafterprint',TMethod(aValue));
  93691. end;
  93692. procedure TJSHTMLBodyElement._Setonbeforeprint(const aValue : TEventHandler);
  93693. begin
  93694. WriteJSPropertyMethod('onbeforeprint',TMethod(aValue));
  93695. end;
  93696. procedure TJSHTMLBodyElement._Setonbeforeunload(const aValue : TOnBeforeUnloadEventHandler);
  93697. begin
  93698. WriteJSPropertyMethod('onbeforeunload',TMethod(aValue));
  93699. end;
  93700. procedure TJSHTMLBodyElement._Setonhashchange(const aValue : TEventHandler);
  93701. begin
  93702. WriteJSPropertyMethod('onhashchange',TMethod(aValue));
  93703. end;
  93704. procedure TJSHTMLBodyElement._Setonlanguagechange(const aValue : TEventHandler);
  93705. begin
  93706. WriteJSPropertyMethod('onlanguagechange',TMethod(aValue));
  93707. end;
  93708. procedure TJSHTMLBodyElement._Setonmessage(const aValue : TEventHandler);
  93709. begin
  93710. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  93711. end;
  93712. procedure TJSHTMLBodyElement._Setonmessageerror(const aValue : TEventHandler);
  93713. begin
  93714. WriteJSPropertyMethod('onmessageerror',TMethod(aValue));
  93715. end;
  93716. procedure TJSHTMLBodyElement._Setonoffline(const aValue : TEventHandler);
  93717. begin
  93718. WriteJSPropertyMethod('onoffline',TMethod(aValue));
  93719. end;
  93720. procedure TJSHTMLBodyElement._Setononline(const aValue : TEventHandler);
  93721. begin
  93722. WriteJSPropertyMethod('ononline',TMethod(aValue));
  93723. end;
  93724. procedure TJSHTMLBodyElement._Setonpagehide(const aValue : TEventHandler);
  93725. begin
  93726. WriteJSPropertyMethod('onpagehide',TMethod(aValue));
  93727. end;
  93728. procedure TJSHTMLBodyElement._Setonpageshow(const aValue : TEventHandler);
  93729. begin
  93730. WriteJSPropertyMethod('onpageshow',TMethod(aValue));
  93731. end;
  93732. procedure TJSHTMLBodyElement._Setonpopstate(const aValue : TEventHandler);
  93733. begin
  93734. WriteJSPropertyMethod('onpopstate',TMethod(aValue));
  93735. end;
  93736. procedure TJSHTMLBodyElement._Setonrejectionhandled(const aValue : TEventHandler);
  93737. begin
  93738. WriteJSPropertyMethod('onrejectionhandled',TMethod(aValue));
  93739. end;
  93740. procedure TJSHTMLBodyElement._Setonstorage(const aValue : TEventHandler);
  93741. begin
  93742. WriteJSPropertyMethod('onstorage',TMethod(aValue));
  93743. end;
  93744. procedure TJSHTMLBodyElement._Setonunhandledrejection(const aValue : TEventHandler);
  93745. begin
  93746. WriteJSPropertyMethod('onunhandledrejection',TMethod(aValue));
  93747. end;
  93748. procedure TJSHTMLBodyElement._Setonunload(const aValue : TEventHandler);
  93749. begin
  93750. WriteJSPropertyMethod('onunload',TMethod(aValue));
  93751. end;
  93752. procedure TJSHTMLBodyElement._Setongamepadconnected(const aValue : TEventHandler);
  93753. begin
  93754. WriteJSPropertyMethod('ongamepadconnected',TMethod(aValue));
  93755. end;
  93756. procedure TJSHTMLBodyElement._Setongamepaddisconnected(const aValue : TEventHandler);
  93757. begin
  93758. WriteJSPropertyMethod('ongamepaddisconnected',TMethod(aValue));
  93759. end;
  93760. constructor TJSHTMLBodyElement.Create;
  93761. begin
  93762. JOBCreate([]);
  93763. end;
  93764. class function TJSHTMLBodyElement.JSClassName: UnicodeString;
  93765. begin
  93766. Result:='HTMLBodyElement';
  93767. end;
  93768. class function TJSHTMLBodyElement.Cast(const Intf: IJSObject): IJSHTMLBodyElement;
  93769. begin
  93770. Result:=TJSHTMLBodyElement.JOBCast(Intf);
  93771. end;
  93772. function TJSHTMLBRElement._Getclear: UnicodeString;
  93773. begin
  93774. Result:=ReadJSPropertyUnicodeString('clear');
  93775. end;
  93776. procedure TJSHTMLBRElement._Setclear(const aValue : UnicodeString);
  93777. begin
  93778. WriteJSPropertyUnicodeString('clear',aValue);
  93779. end;
  93780. constructor TJSHTMLBRElement.Create;
  93781. begin
  93782. JOBCreate([]);
  93783. end;
  93784. class function TJSHTMLBRElement.JSClassName: UnicodeString;
  93785. begin
  93786. Result:='HTMLBRElement';
  93787. end;
  93788. class function TJSHTMLBRElement.Cast(const Intf: IJSObject): IJSHTMLBRElement;
  93789. begin
  93790. Result:=TJSHTMLBRElement.JOBCast(Intf);
  93791. end;
  93792. function TJSHTMLButtonElement._Getdisabled: Boolean;
  93793. begin
  93794. Result:=ReadJSPropertyBoolean('disabled');
  93795. end;
  93796. function TJSHTMLButtonElement._Getform: IJSHTMLFormElement;
  93797. begin
  93798. Result:=ReadJSPropertyObject('form',TJSHTMLFormElement) as IJSHTMLFormElement;
  93799. end;
  93800. function TJSHTMLButtonElement._GetformAction: UnicodeString;
  93801. begin
  93802. Result:=ReadJSPropertyUnicodeString('formAction');
  93803. end;
  93804. function TJSHTMLButtonElement._GetformEnctype: UnicodeString;
  93805. begin
  93806. Result:=ReadJSPropertyUnicodeString('formEnctype');
  93807. end;
  93808. function TJSHTMLButtonElement._GetformMethod: UnicodeString;
  93809. begin
  93810. Result:=ReadJSPropertyUnicodeString('formMethod');
  93811. end;
  93812. function TJSHTMLButtonElement._GetformNoValidate: Boolean;
  93813. begin
  93814. Result:=ReadJSPropertyBoolean('formNoValidate');
  93815. end;
  93816. function TJSHTMLButtonElement._GetformTarget: UnicodeString;
  93817. begin
  93818. Result:=ReadJSPropertyUnicodeString('formTarget');
  93819. end;
  93820. function TJSHTMLButtonElement._Getname: UnicodeString;
  93821. begin
  93822. Result:=ReadJSPropertyUnicodeString('name');
  93823. end;
  93824. function TJSHTMLButtonElement._Gettype_: UnicodeString;
  93825. begin
  93826. Result:=ReadJSPropertyUnicodeString('type');
  93827. end;
  93828. function TJSHTMLButtonElement._Getvalue: UnicodeString;
  93829. begin
  93830. Result:=ReadJSPropertyUnicodeString('value');
  93831. end;
  93832. function TJSHTMLButtonElement._GetwillValidate: Boolean;
  93833. begin
  93834. Result:=ReadJSPropertyBoolean('willValidate');
  93835. end;
  93836. function TJSHTMLButtonElement._Getvalidity: IJSValidityState;
  93837. begin
  93838. Result:=ReadJSPropertyObject('validity',TJSValidityState) as IJSValidityState;
  93839. end;
  93840. function TJSHTMLButtonElement._GetvalidationMessage: UnicodeString;
  93841. begin
  93842. Result:=ReadJSPropertyUnicodeString('validationMessage');
  93843. end;
  93844. function TJSHTMLButtonElement._Getlabels: IJSNodeList;
  93845. begin
  93846. Result:=ReadJSPropertyObject('labels',TJSNodeList) as IJSNodeList;
  93847. end;
  93848. function TJSHTMLButtonElement._GetpopoverTargetElement: IJSElement;
  93849. begin
  93850. Result:=ReadJSPropertyObject('popoverTargetElement',TJSElement) as IJSElement;
  93851. end;
  93852. function TJSHTMLButtonElement._GetpopoverTargetAction: UnicodeString;
  93853. begin
  93854. Result:=ReadJSPropertyUnicodeString('popoverTargetAction');
  93855. end;
  93856. function TJSHTMLButtonElement._GetinvokeTargetElement: IJSElement;
  93857. begin
  93858. Result:=ReadJSPropertyObject('invokeTargetElement',TJSElement) as IJSElement;
  93859. end;
  93860. function TJSHTMLButtonElement._GetinvokeAction: UnicodeString;
  93861. begin
  93862. Result:=ReadJSPropertyUnicodeString('invokeAction');
  93863. end;
  93864. procedure TJSHTMLButtonElement._Setdisabled(const aValue : Boolean);
  93865. begin
  93866. WriteJSPropertyBoolean('disabled',aValue);
  93867. end;
  93868. procedure TJSHTMLButtonElement._SetformAction(const aValue : UnicodeString);
  93869. begin
  93870. WriteJSPropertyUnicodeString('formAction',aValue);
  93871. end;
  93872. procedure TJSHTMLButtonElement._SetformEnctype(const aValue : UnicodeString);
  93873. begin
  93874. WriteJSPropertyUnicodeString('formEnctype',aValue);
  93875. end;
  93876. procedure TJSHTMLButtonElement._SetformMethod(const aValue : UnicodeString);
  93877. begin
  93878. WriteJSPropertyUnicodeString('formMethod',aValue);
  93879. end;
  93880. procedure TJSHTMLButtonElement._SetformNoValidate(const aValue : Boolean);
  93881. begin
  93882. WriteJSPropertyBoolean('formNoValidate',aValue);
  93883. end;
  93884. procedure TJSHTMLButtonElement._SetformTarget(const aValue : UnicodeString);
  93885. begin
  93886. WriteJSPropertyUnicodeString('formTarget',aValue);
  93887. end;
  93888. procedure TJSHTMLButtonElement._Setname(const aValue : UnicodeString);
  93889. begin
  93890. WriteJSPropertyUnicodeString('name',aValue);
  93891. end;
  93892. procedure TJSHTMLButtonElement._Settype_(const aValue : UnicodeString);
  93893. begin
  93894. WriteJSPropertyUnicodeString('type',aValue);
  93895. end;
  93896. procedure TJSHTMLButtonElement._Setvalue(const aValue : UnicodeString);
  93897. begin
  93898. WriteJSPropertyUnicodeString('value',aValue);
  93899. end;
  93900. procedure TJSHTMLButtonElement._SetpopoverTargetElement(const aValue : IJSElement);
  93901. begin
  93902. WriteJSPropertyObject('popoverTargetElement',aValue);
  93903. end;
  93904. procedure TJSHTMLButtonElement._SetpopoverTargetAction(const aValue : UnicodeString);
  93905. begin
  93906. WriteJSPropertyUnicodeString('popoverTargetAction',aValue);
  93907. end;
  93908. procedure TJSHTMLButtonElement._SetinvokeTargetElement(const aValue : IJSElement);
  93909. begin
  93910. WriteJSPropertyObject('invokeTargetElement',aValue);
  93911. end;
  93912. procedure TJSHTMLButtonElement._SetinvokeAction(const aValue : UnicodeString);
  93913. begin
  93914. WriteJSPropertyUnicodeString('invokeAction',aValue);
  93915. end;
  93916. constructor TJSHTMLButtonElement.Create;
  93917. begin
  93918. JOBCreate([]);
  93919. end;
  93920. function TJSHTMLButtonElement.checkValidity: Boolean;
  93921. begin
  93922. Result:=InvokeJSBooleanResult('checkValidity',[]);
  93923. end;
  93924. function TJSHTMLButtonElement.reportValidity: Boolean;
  93925. begin
  93926. Result:=InvokeJSBooleanResult('reportValidity',[]);
  93927. end;
  93928. procedure TJSHTMLButtonElement.setCustomValidity(const aError: UnicodeString);
  93929. begin
  93930. InvokeJSNoResult('setCustomValidity',[aError]);
  93931. end;
  93932. class function TJSHTMLButtonElement.JSClassName: UnicodeString;
  93933. begin
  93934. Result:='HTMLButtonElement';
  93935. end;
  93936. class function TJSHTMLButtonElement.Cast(const Intf: IJSObject): IJSHTMLButtonElement;
  93937. begin
  93938. Result:=TJSHTMLButtonElement.JOBCast(Intf);
  93939. end;
  93940. function TJSHTMLCanvasElement._Getwidth: Cardinal;
  93941. begin
  93942. Result:=ReadJSPropertyInt64('width');
  93943. end;
  93944. function TJSHTMLCanvasElement._Getheight: Cardinal;
  93945. begin
  93946. Result:=ReadJSPropertyInt64('height');
  93947. end;
  93948. function TJSHTMLCanvasElement._GetmozOpaque: Boolean;
  93949. begin
  93950. Result:=ReadJSPropertyBoolean('mozOpaque');
  93951. end;
  93952. procedure TJSHTMLCanvasElement._Setwidth(const aValue : Cardinal);
  93953. begin
  93954. WriteJSPropertyDouble('width',aValue);
  93955. end;
  93956. procedure TJSHTMLCanvasElement._Setheight(const aValue : Cardinal);
  93957. begin
  93958. WriteJSPropertyDouble('height',aValue);
  93959. end;
  93960. procedure TJSHTMLCanvasElement._SetmozOpaque(const aValue : Boolean);
  93961. begin
  93962. WriteJSPropertyBoolean('mozOpaque',aValue);
  93963. end;
  93964. constructor TJSHTMLCanvasElement.Create;
  93965. begin
  93966. JOBCreate([]);
  93967. end;
  93968. function TJSHTMLCanvasElement.getContext(const aContextId: UnicodeString; const aContextOptions: Variant): IJSnsISupports;
  93969. begin
  93970. Result:=InvokeJSObjectResult('getContext',[aContextId,aContextOptions],TJSnsISupports) as IJSnsISupports;
  93971. end;
  93972. function TJSHTMLCanvasElement.getContext(const aContextId: UnicodeString): IJSnsISupports;
  93973. begin
  93974. Result:=InvokeJSObjectResult('getContext',[aContextId],TJSnsISupports) as IJSnsISupports;
  93975. end;
  93976. function TJSHTMLCanvasElement.toDataURL(const aType_: UnicodeString; const aEncoderOptions: Variant): UnicodeString;
  93977. begin
  93978. Result:=InvokeJSUnicodeStringResult('toDataURL',[aType_,aEncoderOptions]);
  93979. end;
  93980. function TJSHTMLCanvasElement.toDataURL: UnicodeString;
  93981. begin
  93982. Result:=InvokeJSUnicodeStringResult('toDataURL',[]);
  93983. end;
  93984. function TJSHTMLCanvasElement.toDataURL(const aType_: UnicodeString): UnicodeString;
  93985. begin
  93986. Result:=InvokeJSUnicodeStringResult('toDataURL',[aType_]);
  93987. end;
  93988. procedure TJSHTMLCanvasElement.toBlob(const aCallback: TBlobCallback; const aType_: UnicodeString; const aEncoderOptions: Variant);
  93989. var
  93990. m: TJOB_Method;
  93991. begin
  93992. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallBlobCallback);
  93993. try
  93994. InvokeJSNoResult('toBlob',[m,aType_,aEncoderOptions]);
  93995. finally
  93996. m.free;
  93997. end;
  93998. end;
  93999. procedure TJSHTMLCanvasElement.toBlob(const aCallback: TBlobCallback);
  94000. var
  94001. m: TJOB_Method;
  94002. begin
  94003. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallBlobCallback);
  94004. try
  94005. InvokeJSNoResult('toBlob',[m]);
  94006. finally
  94007. m.free;
  94008. end;
  94009. end;
  94010. procedure TJSHTMLCanvasElement.toBlob(const aCallback: TBlobCallback; const aType_: UnicodeString);
  94011. var
  94012. m: TJOB_Method;
  94013. begin
  94014. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallBlobCallback);
  94015. try
  94016. InvokeJSNoResult('toBlob',[m,aType_]);
  94017. finally
  94018. m.free;
  94019. end;
  94020. end;
  94021. function TJSHTMLCanvasElement.captureStream(aFrameRate: Double): IJSCanvasCaptureMediaStream;
  94022. begin
  94023. Result:=InvokeJSObjectResult('captureStream',[aFrameRate],TJSCanvasCaptureMediaStream) as IJSCanvasCaptureMediaStream;
  94024. end;
  94025. function TJSHTMLCanvasElement.captureStream: IJSCanvasCaptureMediaStream;
  94026. begin
  94027. Result:=InvokeJSObjectResult('captureStream',[],TJSCanvasCaptureMediaStream) as IJSCanvasCaptureMediaStream;
  94028. end;
  94029. function TJSHTMLCanvasElement.transferControlToOffscreen: IJSOffscreenCanvas;
  94030. begin
  94031. Result:=InvokeJSObjectResult('transferControlToOffscreen',[],TJSOffscreenCanvas) as IJSOffscreenCanvas;
  94032. end;
  94033. class function TJSHTMLCanvasElement.JSClassName: UnicodeString;
  94034. begin
  94035. Result:='HTMLCanvasElement';
  94036. end;
  94037. class function TJSHTMLCanvasElement.Cast(const Intf: IJSObject): IJSHTMLCanvasElement;
  94038. begin
  94039. Result:=TJSHTMLCanvasElement.JOBCast(Intf);
  94040. end;
  94041. function TJSHTMLCollection._Getlength_: Cardinal;
  94042. begin
  94043. Result:=ReadJSPropertyInt64('length');
  94044. end;
  94045. function TJSHTMLCollection.item(aIndex: Cardinal): IJSElement;
  94046. begin
  94047. Result:=InvokeJSObjectResult('item',[aIndex],TJSElement) as IJSElement;
  94048. end;
  94049. function TJSHTMLCollection.namedItem(const aName: UnicodeString): IJSElement;
  94050. begin
  94051. Result:=InvokeJSObjectResult('namedItem',[aName],TJSElement) as IJSElement;
  94052. end;
  94053. class function TJSHTMLCollection.JSClassName: UnicodeString;
  94054. begin
  94055. Result:='HTMLCollection';
  94056. end;
  94057. class function TJSHTMLCollection.Cast(const Intf: IJSObject): IJSHTMLCollection;
  94058. begin
  94059. Result:=TJSHTMLCollection.JOBCast(Intf);
  94060. end;
  94061. function TJSHTMLDataElement._Getvalue: UnicodeString;
  94062. begin
  94063. Result:=ReadJSPropertyUnicodeString('value');
  94064. end;
  94065. procedure TJSHTMLDataElement._Setvalue(const aValue : UnicodeString);
  94066. begin
  94067. WriteJSPropertyUnicodeString('value',aValue);
  94068. end;
  94069. constructor TJSHTMLDataElement.Create;
  94070. begin
  94071. JOBCreate([]);
  94072. end;
  94073. class function TJSHTMLDataElement.JSClassName: UnicodeString;
  94074. begin
  94075. Result:='HTMLDataElement';
  94076. end;
  94077. class function TJSHTMLDataElement.Cast(const Intf: IJSObject): IJSHTMLDataElement;
  94078. begin
  94079. Result:=TJSHTMLDataElement.JOBCast(Intf);
  94080. end;
  94081. function TJSHTMLDataListElement._Getoptions: IJSHTMLCollection;
  94082. begin
  94083. Result:=ReadJSPropertyObject('options',TJSHTMLCollection) as IJSHTMLCollection;
  94084. end;
  94085. constructor TJSHTMLDataListElement.Create;
  94086. begin
  94087. JOBCreate([]);
  94088. end;
  94089. class function TJSHTMLDataListElement.JSClassName: UnicodeString;
  94090. begin
  94091. Result:='HTMLDataListElement';
  94092. end;
  94093. class function TJSHTMLDataListElement.Cast(const Intf: IJSObject): IJSHTMLDataListElement;
  94094. begin
  94095. Result:=TJSHTMLDataListElement.JOBCast(Intf);
  94096. end;
  94097. function TJSHTMLDetailsElement._Getopen: Boolean;
  94098. begin
  94099. Result:=ReadJSPropertyBoolean('open');
  94100. end;
  94101. procedure TJSHTMLDetailsElement._Setopen(const aValue : Boolean);
  94102. begin
  94103. WriteJSPropertyBoolean('open',aValue);
  94104. end;
  94105. constructor TJSHTMLDetailsElement.Create;
  94106. begin
  94107. JOBCreate([]);
  94108. end;
  94109. class function TJSHTMLDetailsElement.JSClassName: UnicodeString;
  94110. begin
  94111. Result:='HTMLDetailsElement';
  94112. end;
  94113. class function TJSHTMLDetailsElement.Cast(const Intf: IJSObject): IJSHTMLDetailsElement;
  94114. begin
  94115. Result:=TJSHTMLDetailsElement.JOBCast(Intf);
  94116. end;
  94117. function TJSHTMLDialogElement._Getopen: Boolean;
  94118. begin
  94119. Result:=ReadJSPropertyBoolean('open');
  94120. end;
  94121. function TJSHTMLDialogElement._GetreturnValue: UnicodeString;
  94122. begin
  94123. Result:=ReadJSPropertyUnicodeString('returnValue');
  94124. end;
  94125. procedure TJSHTMLDialogElement._Setopen(const aValue : Boolean);
  94126. begin
  94127. WriteJSPropertyBoolean('open',aValue);
  94128. end;
  94129. procedure TJSHTMLDialogElement._SetreturnValue(const aValue : UnicodeString);
  94130. begin
  94131. WriteJSPropertyUnicodeString('returnValue',aValue);
  94132. end;
  94133. constructor TJSHTMLDialogElement.Create;
  94134. begin
  94135. JOBCreate([]);
  94136. end;
  94137. procedure TJSHTMLDialogElement.show;
  94138. begin
  94139. InvokeJSNoResult('show',[]);
  94140. end;
  94141. procedure TJSHTMLDialogElement.showModal;
  94142. begin
  94143. InvokeJSNoResult('showModal',[]);
  94144. end;
  94145. procedure TJSHTMLDialogElement.close(const aReturnValue: UnicodeString);
  94146. begin
  94147. InvokeJSNoResult('close',[aReturnValue]);
  94148. end;
  94149. procedure TJSHTMLDialogElement.close;
  94150. begin
  94151. InvokeJSNoResult('close',[]);
  94152. end;
  94153. class function TJSHTMLDialogElement.JSClassName: UnicodeString;
  94154. begin
  94155. Result:='HTMLDialogElement';
  94156. end;
  94157. class function TJSHTMLDialogElement.Cast(const Intf: IJSObject): IJSHTMLDialogElement;
  94158. begin
  94159. Result:=TJSHTMLDialogElement.JOBCast(Intf);
  94160. end;
  94161. function TJSHTMLDirectoryElement._Getcompact: Boolean;
  94162. begin
  94163. Result:=ReadJSPropertyBoolean('compact');
  94164. end;
  94165. procedure TJSHTMLDirectoryElement._Setcompact(const aValue : Boolean);
  94166. begin
  94167. WriteJSPropertyBoolean('compact',aValue);
  94168. end;
  94169. constructor TJSHTMLDirectoryElement.Create;
  94170. begin
  94171. JOBCreate([]);
  94172. end;
  94173. class function TJSHTMLDirectoryElement.JSClassName: UnicodeString;
  94174. begin
  94175. Result:='HTMLDirectoryElement';
  94176. end;
  94177. class function TJSHTMLDirectoryElement.Cast(const Intf: IJSObject): IJSHTMLDirectoryElement;
  94178. begin
  94179. Result:=TJSHTMLDirectoryElement.JOBCast(Intf);
  94180. end;
  94181. function TJSHTMLDivElement._Getalign: UnicodeString;
  94182. begin
  94183. Result:=ReadJSPropertyUnicodeString('align');
  94184. end;
  94185. procedure TJSHTMLDivElement._Setalign(const aValue : UnicodeString);
  94186. begin
  94187. WriteJSPropertyUnicodeString('align',aValue);
  94188. end;
  94189. constructor TJSHTMLDivElement.Create;
  94190. begin
  94191. JOBCreate([]);
  94192. end;
  94193. class function TJSHTMLDivElement.JSClassName: UnicodeString;
  94194. begin
  94195. Result:='HTMLDivElement';
  94196. end;
  94197. class function TJSHTMLDivElement.Cast(const Intf: IJSObject): IJSHTMLDivElement;
  94198. begin
  94199. Result:=TJSHTMLDivElement.JOBCast(Intf);
  94200. end;
  94201. function TJSHTMLDListElement._Getcompact: Boolean;
  94202. begin
  94203. Result:=ReadJSPropertyBoolean('compact');
  94204. end;
  94205. procedure TJSHTMLDListElement._Setcompact(const aValue : Boolean);
  94206. begin
  94207. WriteJSPropertyBoolean('compact',aValue);
  94208. end;
  94209. constructor TJSHTMLDListElement.Create;
  94210. begin
  94211. JOBCreate([]);
  94212. end;
  94213. class function TJSHTMLDListElement.JSClassName: UnicodeString;
  94214. begin
  94215. Result:='HTMLDListElement';
  94216. end;
  94217. class function TJSHTMLDListElement.Cast(const Intf: IJSObject): IJSHTMLDListElement;
  94218. begin
  94219. Result:=TJSHTMLDListElement.JOBCast(Intf);
  94220. end;
  94221. function TJSHTMLDocument.GetDefault(const aName: UnicodeString): IJSObject;
  94222. begin
  94223. Result:=InvokeJSObjectResult('',[aName],TJSObject) as IJSObject;
  94224. end;
  94225. class function TJSHTMLDocument.JSClassName: UnicodeString;
  94226. begin
  94227. Result:='HTMLDocument';
  94228. end;
  94229. class function TJSHTMLDocument.Cast(const Intf: IJSObject): IJSHTMLDocument;
  94230. begin
  94231. Result:=TJSHTMLDocument.JOBCast(Intf);
  94232. end;
  94233. function TJSHTMLElement._Gettitle: UnicodeString;
  94234. begin
  94235. Result:=ReadJSPropertyUnicodeString('title');
  94236. end;
  94237. function TJSHTMLElement._Getlang: UnicodeString;
  94238. begin
  94239. Result:=ReadJSPropertyUnicodeString('lang');
  94240. end;
  94241. function TJSHTMLElement._Gettranslate: Boolean;
  94242. begin
  94243. Result:=ReadJSPropertyBoolean('translate');
  94244. end;
  94245. function TJSHTMLElement._Getdir: UnicodeString;
  94246. begin
  94247. Result:=ReadJSPropertyUnicodeString('dir');
  94248. end;
  94249. function TJSHTMLElement._GetinnerText: UnicodeString;
  94250. begin
  94251. Result:=ReadJSPropertyUnicodeString('innerText');
  94252. end;
  94253. function TJSHTMLElement._GetouterText: UnicodeString;
  94254. begin
  94255. Result:=ReadJSPropertyUnicodeString('outerText');
  94256. end;
  94257. function TJSHTMLElement._Gethidden: Boolean;
  94258. begin
  94259. Result:=ReadJSPropertyBoolean('hidden');
  94260. end;
  94261. function TJSHTMLElement._Getinert: Boolean;
  94262. begin
  94263. Result:=ReadJSPropertyBoolean('inert');
  94264. end;
  94265. function TJSHTMLElement._GetaccessKey: UnicodeString;
  94266. begin
  94267. Result:=ReadJSPropertyUnicodeString('accessKey');
  94268. end;
  94269. function TJSHTMLElement._GetaccessKeyLabel: UnicodeString;
  94270. begin
  94271. Result:=ReadJSPropertyUnicodeString('accessKeyLabel');
  94272. end;
  94273. function TJSHTMLElement._Getdraggable: Boolean;
  94274. begin
  94275. Result:=ReadJSPropertyBoolean('draggable');
  94276. end;
  94277. function TJSHTMLElement._GetcontentEditable: UnicodeString;
  94278. begin
  94279. Result:=ReadJSPropertyUnicodeString('contentEditable');
  94280. end;
  94281. function TJSHTMLElement._GetisContentEditable: Boolean;
  94282. begin
  94283. Result:=ReadJSPropertyBoolean('isContentEditable');
  94284. end;
  94285. function TJSHTMLElement._Getpopover: UnicodeString;
  94286. begin
  94287. Result:=ReadJSPropertyUnicodeString('popover');
  94288. end;
  94289. function TJSHTMLElement._Getspellcheck: Boolean;
  94290. begin
  94291. Result:=ReadJSPropertyBoolean('spellcheck');
  94292. end;
  94293. function TJSHTMLElement._GetinputMode: UnicodeString;
  94294. begin
  94295. Result:=ReadJSPropertyUnicodeString('inputMode');
  94296. end;
  94297. function TJSHTMLElement._GetenterKeyHint: UnicodeString;
  94298. begin
  94299. Result:=ReadJSPropertyUnicodeString('enterKeyHint');
  94300. end;
  94301. function TJSHTMLElement._Getautocapitalize: UnicodeString;
  94302. begin
  94303. Result:=ReadJSPropertyUnicodeString('autocapitalize');
  94304. end;
  94305. function TJSHTMLElement._Getnonce: UnicodeString;
  94306. begin
  94307. Result:=ReadJSPropertyUnicodeString('nonce');
  94308. end;
  94309. function TJSHTMLElement._GetoffsetParent: IJSElement;
  94310. begin
  94311. Result:=ReadJSPropertyObject('offsetParent',TJSElement) as IJSElement;
  94312. end;
  94313. function TJSHTMLElement._GetoffsetTop: LongInt;
  94314. begin
  94315. Result:=ReadJSPropertyLongInt('offsetTop');
  94316. end;
  94317. function TJSHTMLElement._GetoffsetLeft: LongInt;
  94318. begin
  94319. Result:=ReadJSPropertyLongInt('offsetLeft');
  94320. end;
  94321. function TJSHTMLElement._GetoffsetWidth: LongInt;
  94322. begin
  94323. Result:=ReadJSPropertyLongInt('offsetWidth');
  94324. end;
  94325. function TJSHTMLElement._GetoffsetHeight: LongInt;
  94326. begin
  94327. Result:=ReadJSPropertyLongInt('offsetHeight');
  94328. end;
  94329. function TJSHTMLElement._Getonabort: TEventHandler;
  94330. begin
  94331. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  94332. end;
  94333. function TJSHTMLElement._Getonblur: TEventHandler;
  94334. begin
  94335. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onblur')));
  94336. end;
  94337. function TJSHTMLElement._Getonfocus: TEventHandler;
  94338. begin
  94339. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfocus')));
  94340. end;
  94341. function TJSHTMLElement._Getoncancel: TEventHandler;
  94342. begin
  94343. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncancel')));
  94344. end;
  94345. function TJSHTMLElement._Getonauxclick: TEventHandler;
  94346. begin
  94347. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onauxclick')));
  94348. end;
  94349. function TJSHTMLElement._Getonbeforeinput: TEventHandler;
  94350. begin
  94351. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforeinput')));
  94352. end;
  94353. function TJSHTMLElement._Getonbeforetoggle: TEventHandler;
  94354. begin
  94355. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforetoggle')));
  94356. end;
  94357. function TJSHTMLElement._Getoncanplay: TEventHandler;
  94358. begin
  94359. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplay')));
  94360. end;
  94361. function TJSHTMLElement._Getoncanplaythrough: TEventHandler;
  94362. begin
  94363. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplaythrough')));
  94364. end;
  94365. function TJSHTMLElement._Getonchange: TEventHandler;
  94366. begin
  94367. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  94368. end;
  94369. function TJSHTMLElement._Getonclick: TEventHandler;
  94370. begin
  94371. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclick')));
  94372. end;
  94373. function TJSHTMLElement._Getonclose: TEventHandler;
  94374. begin
  94375. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclose')));
  94376. end;
  94377. function TJSHTMLElement._Getoncontextlost: TEventHandler;
  94378. begin
  94379. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextlost')));
  94380. end;
  94381. function TJSHTMLElement._Getoncontextmenu: TEventHandler;
  94382. begin
  94383. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextmenu')));
  94384. end;
  94385. function TJSHTMLElement._Getoncontextrestored: TEventHandler;
  94386. begin
  94387. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextrestored')));
  94388. end;
  94389. function TJSHTMLElement._Getoncopy: TEventHandler;
  94390. begin
  94391. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncopy')));
  94392. end;
  94393. function TJSHTMLElement._Getoncuechange: TEventHandler;
  94394. begin
  94395. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncuechange')));
  94396. end;
  94397. function TJSHTMLElement._Getoncut: TEventHandler;
  94398. begin
  94399. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncut')));
  94400. end;
  94401. function TJSHTMLElement._Getondblclick: TEventHandler;
  94402. begin
  94403. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondblclick')));
  94404. end;
  94405. function TJSHTMLElement._Getondrag: TEventHandler;
  94406. begin
  94407. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrag')));
  94408. end;
  94409. function TJSHTMLElement._Getondragend: TEventHandler;
  94410. begin
  94411. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragend')));
  94412. end;
  94413. function TJSHTMLElement._Getondragenter: TEventHandler;
  94414. begin
  94415. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragenter')));
  94416. end;
  94417. function TJSHTMLElement._Getondragexit: TEventHandler;
  94418. begin
  94419. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragexit')));
  94420. end;
  94421. function TJSHTMLElement._Getondragleave: TEventHandler;
  94422. begin
  94423. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragleave')));
  94424. end;
  94425. function TJSHTMLElement._Getondragover: TEventHandler;
  94426. begin
  94427. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragover')));
  94428. end;
  94429. function TJSHTMLElement._Getondragstart: TEventHandler;
  94430. begin
  94431. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragstart')));
  94432. end;
  94433. function TJSHTMLElement._Getondrop: TEventHandler;
  94434. begin
  94435. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrop')));
  94436. end;
  94437. function TJSHTMLElement._Getondurationchange: TEventHandler;
  94438. begin
  94439. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondurationchange')));
  94440. end;
  94441. function TJSHTMLElement._Getonemptied: TEventHandler;
  94442. begin
  94443. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onemptied')));
  94444. end;
  94445. function TJSHTMLElement._Getonended: TEventHandler;
  94446. begin
  94447. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onended')));
  94448. end;
  94449. function TJSHTMLElement._Getonformdata: TEventHandler;
  94450. begin
  94451. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onformdata')));
  94452. end;
  94453. function TJSHTMLElement._Getoninput: TEventHandler;
  94454. begin
  94455. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninput')));
  94456. end;
  94457. function TJSHTMLElement._Getoninvalid: TEventHandler;
  94458. begin
  94459. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninvalid')));
  94460. end;
  94461. function TJSHTMLElement._Getonkeydown: TEventHandler;
  94462. begin
  94463. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeydown')));
  94464. end;
  94465. function TJSHTMLElement._Getonkeypress: TEventHandler;
  94466. begin
  94467. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeypress')));
  94468. end;
  94469. function TJSHTMLElement._Getonkeyup: TEventHandler;
  94470. begin
  94471. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeyup')));
  94472. end;
  94473. function TJSHTMLElement._Getonload: TEventHandler;
  94474. begin
  94475. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onload')));
  94476. end;
  94477. function TJSHTMLElement._Getonloadeddata: TEventHandler;
  94478. begin
  94479. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadeddata')));
  94480. end;
  94481. function TJSHTMLElement._Getonloadedmetadata: TEventHandler;
  94482. begin
  94483. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadedmetadata')));
  94484. end;
  94485. function TJSHTMLElement._Getonloadstart: TEventHandler;
  94486. begin
  94487. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadstart')));
  94488. end;
  94489. function TJSHTMLElement._Getonmousedown: TEventHandler;
  94490. begin
  94491. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousedown')));
  94492. end;
  94493. function TJSHTMLElement._Getonmouseenter: TEventHandler;
  94494. begin
  94495. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseenter')));
  94496. end;
  94497. function TJSHTMLElement._Getonmouseleave: TEventHandler;
  94498. begin
  94499. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseleave')));
  94500. end;
  94501. function TJSHTMLElement._Getonmousemove: TEventHandler;
  94502. begin
  94503. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousemove')));
  94504. end;
  94505. function TJSHTMLElement._Getonmouseout: TEventHandler;
  94506. begin
  94507. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseout')));
  94508. end;
  94509. function TJSHTMLElement._Getonmouseover: TEventHandler;
  94510. begin
  94511. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseover')));
  94512. end;
  94513. function TJSHTMLElement._Getonmouseup: TEventHandler;
  94514. begin
  94515. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseup')));
  94516. end;
  94517. function TJSHTMLElement._Getonwheel: TEventHandler;
  94518. begin
  94519. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwheel')));
  94520. end;
  94521. function TJSHTMLElement._Getonpaste: TEventHandler;
  94522. begin
  94523. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpaste')));
  94524. end;
  94525. function TJSHTMLElement._Getonpause: TEventHandler;
  94526. begin
  94527. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpause')));
  94528. end;
  94529. function TJSHTMLElement._Getonplay: TEventHandler;
  94530. begin
  94531. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplay')));
  94532. end;
  94533. function TJSHTMLElement._Getonplaying: TEventHandler;
  94534. begin
  94535. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplaying')));
  94536. end;
  94537. function TJSHTMLElement._Getonprogress: TEventHandler;
  94538. begin
  94539. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onprogress')));
  94540. end;
  94541. function TJSHTMLElement._Getonratechange: TEventHandler;
  94542. begin
  94543. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onratechange')));
  94544. end;
  94545. function TJSHTMLElement._Getonreset: TEventHandler;
  94546. begin
  94547. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onreset')));
  94548. end;
  94549. function TJSHTMLElement._Getonresize: TEventHandler;
  94550. begin
  94551. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresize')));
  94552. end;
  94553. function TJSHTMLElement._Getonscroll: TEventHandler;
  94554. begin
  94555. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscroll')));
  94556. end;
  94557. function TJSHTMLElement._Getonscrollend: TEventHandler;
  94558. begin
  94559. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscrollend')));
  94560. end;
  94561. function TJSHTMLElement._Getonsecuritypolicyviolation: TEventHandler;
  94562. begin
  94563. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsecuritypolicyviolation')));
  94564. end;
  94565. function TJSHTMLElement._Getonseeked: TEventHandler;
  94566. begin
  94567. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeked')));
  94568. end;
  94569. function TJSHTMLElement._Getonseeking: TEventHandler;
  94570. begin
  94571. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeking')));
  94572. end;
  94573. function TJSHTMLElement._Getonselect: TEventHandler;
  94574. begin
  94575. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselect')));
  94576. end;
  94577. function TJSHTMLElement._Getonslotchange: TEventHandler;
  94578. begin
  94579. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onslotchange')));
  94580. end;
  94581. function TJSHTMLElement._Getonstalled: TEventHandler;
  94582. begin
  94583. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstalled')));
  94584. end;
  94585. function TJSHTMLElement._Getonsubmit: TEventHandler;
  94586. begin
  94587. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsubmit')));
  94588. end;
  94589. function TJSHTMLElement._Getonsuspend: TEventHandler;
  94590. begin
  94591. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsuspend')));
  94592. end;
  94593. function TJSHTMLElement._Getontimeupdate: TEventHandler;
  94594. begin
  94595. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontimeupdate')));
  94596. end;
  94597. function TJSHTMLElement._Getonvolumechange: TEventHandler;
  94598. begin
  94599. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvolumechange')));
  94600. end;
  94601. function TJSHTMLElement._Getonwaiting: TEventHandler;
  94602. begin
  94603. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwaiting')));
  94604. end;
  94605. function TJSHTMLElement._Getonselectstart: TEventHandler;
  94606. begin
  94607. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectstart')));
  94608. end;
  94609. function TJSHTMLElement._Getonselectionchange: TEventHandler;
  94610. begin
  94611. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectionchange')));
  94612. end;
  94613. function TJSHTMLElement._Getontoggle: TEventHandler;
  94614. begin
  94615. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontoggle')));
  94616. end;
  94617. function TJSHTMLElement._Getonpointercancel: TEventHandler;
  94618. begin
  94619. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointercancel')));
  94620. end;
  94621. function TJSHTMLElement._Getonpointerdown: TEventHandler;
  94622. begin
  94623. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerdown')));
  94624. end;
  94625. function TJSHTMLElement._Getonpointerup: TEventHandler;
  94626. begin
  94627. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerup')));
  94628. end;
  94629. function TJSHTMLElement._Getonpointermove: TEventHandler;
  94630. begin
  94631. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointermove')));
  94632. end;
  94633. function TJSHTMLElement._Getonpointerout: TEventHandler;
  94634. begin
  94635. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerout')));
  94636. end;
  94637. function TJSHTMLElement._Getonpointerover: TEventHandler;
  94638. begin
  94639. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerover')));
  94640. end;
  94641. function TJSHTMLElement._Getonpointerenter: TEventHandler;
  94642. begin
  94643. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerenter')));
  94644. end;
  94645. function TJSHTMLElement._Getonpointerleave: TEventHandler;
  94646. begin
  94647. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerleave')));
  94648. end;
  94649. function TJSHTMLElement._Getongotpointercapture: TEventHandler;
  94650. begin
  94651. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongotpointercapture')));
  94652. end;
  94653. function TJSHTMLElement._Getonlostpointercapture: TEventHandler;
  94654. begin
  94655. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onlostpointercapture')));
  94656. end;
  94657. function TJSHTMLElement._Getonmozfullscreenchange: TEventHandler;
  94658. begin
  94659. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenchange')));
  94660. end;
  94661. function TJSHTMLElement._Getonmozfullscreenerror: TEventHandler;
  94662. begin
  94663. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenerror')));
  94664. end;
  94665. function TJSHTMLElement._Getonanimationcancel: TEventHandler;
  94666. begin
  94667. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationcancel')));
  94668. end;
  94669. function TJSHTMLElement._Getonanimationend: TEventHandler;
  94670. begin
  94671. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationend')));
  94672. end;
  94673. function TJSHTMLElement._Getonanimationiteration: TEventHandler;
  94674. begin
  94675. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationiteration')));
  94676. end;
  94677. function TJSHTMLElement._Getonanimationstart: TEventHandler;
  94678. begin
  94679. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationstart')));
  94680. end;
  94681. function TJSHTMLElement._Getontransitioncancel: TEventHandler;
  94682. begin
  94683. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitioncancel')));
  94684. end;
  94685. function TJSHTMLElement._Getontransitionend: TEventHandler;
  94686. begin
  94687. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionend')));
  94688. end;
  94689. function TJSHTMLElement._Getontransitionrun: TEventHandler;
  94690. begin
  94691. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionrun')));
  94692. end;
  94693. function TJSHTMLElement._Getontransitionstart: TEventHandler;
  94694. begin
  94695. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionstart')));
  94696. end;
  94697. function TJSHTMLElement._Getonwebkitanimationend: TEventHandler;
  94698. begin
  94699. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationend')));
  94700. end;
  94701. function TJSHTMLElement._Getonwebkitanimationiteration: TEventHandler;
  94702. begin
  94703. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationiteration')));
  94704. end;
  94705. function TJSHTMLElement._Getonwebkitanimationstart: TEventHandler;
  94706. begin
  94707. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationstart')));
  94708. end;
  94709. function TJSHTMLElement._Getonwebkittransitionend: TEventHandler;
  94710. begin
  94711. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkittransitionend')));
  94712. end;
  94713. function TJSHTMLElement._Getdataset: IJSDOMStringMap;
  94714. begin
  94715. Result:=ReadJSPropertyObject('dataset',TJSDOMStringMap) as IJSDOMStringMap;
  94716. end;
  94717. function TJSHTMLElement._Getautofocus: Boolean;
  94718. begin
  94719. Result:=ReadJSPropertyBoolean('autofocus');
  94720. end;
  94721. function TJSHTMLElement._GettabIndex: LongInt;
  94722. begin
  94723. Result:=ReadJSPropertyLongInt('tabIndex');
  94724. end;
  94725. function TJSHTMLElement._Getstyle: IJSCSSStyleDeclaration;
  94726. begin
  94727. Result:=ReadJSPropertyObject('style',TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  94728. end;
  94729. function TJSHTMLElement._Getontouchstart: TEventHandler;
  94730. begin
  94731. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchstart')));
  94732. end;
  94733. function TJSHTMLElement._Getontouchend: TEventHandler;
  94734. begin
  94735. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchend')));
  94736. end;
  94737. function TJSHTMLElement._Getontouchmove: TEventHandler;
  94738. begin
  94739. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchmove')));
  94740. end;
  94741. function TJSHTMLElement._Getontouchcancel: TEventHandler;
  94742. begin
  94743. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchcancel')));
  94744. end;
  94745. function TJSHTMLElement._Getonerror: TEventHandler;
  94746. begin
  94747. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  94748. end;
  94749. procedure TJSHTMLElement._Settitle(const aValue : UnicodeString);
  94750. begin
  94751. WriteJSPropertyUnicodeString('title',aValue);
  94752. end;
  94753. procedure TJSHTMLElement._Setlang(const aValue : UnicodeString);
  94754. begin
  94755. WriteJSPropertyUnicodeString('lang',aValue);
  94756. end;
  94757. procedure TJSHTMLElement._Settranslate(const aValue : Boolean);
  94758. begin
  94759. WriteJSPropertyBoolean('translate',aValue);
  94760. end;
  94761. procedure TJSHTMLElement._Setdir(const aValue : UnicodeString);
  94762. begin
  94763. WriteJSPropertyUnicodeString('dir',aValue);
  94764. end;
  94765. procedure TJSHTMLElement._SetinnerText(const aValue : UnicodeString);
  94766. begin
  94767. WriteJSPropertyUnicodeString('innerText',aValue);
  94768. end;
  94769. procedure TJSHTMLElement._SetouterText(const aValue : UnicodeString);
  94770. begin
  94771. WriteJSPropertyUnicodeString('outerText',aValue);
  94772. end;
  94773. procedure TJSHTMLElement._Sethidden(const aValue : Boolean);
  94774. begin
  94775. WriteJSPropertyBoolean('hidden',aValue);
  94776. end;
  94777. procedure TJSHTMLElement._Setinert(const aValue : Boolean);
  94778. begin
  94779. WriteJSPropertyBoolean('inert',aValue);
  94780. end;
  94781. procedure TJSHTMLElement._SetaccessKey(const aValue : UnicodeString);
  94782. begin
  94783. WriteJSPropertyUnicodeString('accessKey',aValue);
  94784. end;
  94785. procedure TJSHTMLElement._Setdraggable(const aValue : Boolean);
  94786. begin
  94787. WriteJSPropertyBoolean('draggable',aValue);
  94788. end;
  94789. procedure TJSHTMLElement._SetcontentEditable(const aValue : UnicodeString);
  94790. begin
  94791. WriteJSPropertyUnicodeString('contentEditable',aValue);
  94792. end;
  94793. procedure TJSHTMLElement._Setpopover(const aValue : UnicodeString);
  94794. begin
  94795. WriteJSPropertyUnicodeString('popover',aValue);
  94796. end;
  94797. procedure TJSHTMLElement._Setspellcheck(const aValue : Boolean);
  94798. begin
  94799. WriteJSPropertyBoolean('spellcheck',aValue);
  94800. end;
  94801. procedure TJSHTMLElement._SetinputMode(const aValue : UnicodeString);
  94802. begin
  94803. WriteJSPropertyUnicodeString('inputMode',aValue);
  94804. end;
  94805. procedure TJSHTMLElement._SetenterKeyHint(const aValue : UnicodeString);
  94806. begin
  94807. WriteJSPropertyUnicodeString('enterKeyHint',aValue);
  94808. end;
  94809. procedure TJSHTMLElement._Setautocapitalize(const aValue : UnicodeString);
  94810. begin
  94811. WriteJSPropertyUnicodeString('autocapitalize',aValue);
  94812. end;
  94813. procedure TJSHTMLElement._Setnonce(const aValue : UnicodeString);
  94814. begin
  94815. WriteJSPropertyUnicodeString('nonce',aValue);
  94816. end;
  94817. procedure TJSHTMLElement._Setonabort(const aValue : TEventHandler);
  94818. begin
  94819. WriteJSPropertyMethod('onabort',TMethod(aValue));
  94820. end;
  94821. procedure TJSHTMLElement._Setonblur(const aValue : TEventHandler);
  94822. begin
  94823. WriteJSPropertyMethod('onblur',TMethod(aValue));
  94824. end;
  94825. procedure TJSHTMLElement._Setonfocus(const aValue : TEventHandler);
  94826. begin
  94827. WriteJSPropertyMethod('onfocus',TMethod(aValue));
  94828. end;
  94829. procedure TJSHTMLElement._Setoncancel(const aValue : TEventHandler);
  94830. begin
  94831. WriteJSPropertyMethod('oncancel',TMethod(aValue));
  94832. end;
  94833. procedure TJSHTMLElement._Setonauxclick(const aValue : TEventHandler);
  94834. begin
  94835. WriteJSPropertyMethod('onauxclick',TMethod(aValue));
  94836. end;
  94837. procedure TJSHTMLElement._Setonbeforeinput(const aValue : TEventHandler);
  94838. begin
  94839. WriteJSPropertyMethod('onbeforeinput',TMethod(aValue));
  94840. end;
  94841. procedure TJSHTMLElement._Setonbeforetoggle(const aValue : TEventHandler);
  94842. begin
  94843. WriteJSPropertyMethod('onbeforetoggle',TMethod(aValue));
  94844. end;
  94845. procedure TJSHTMLElement._Setoncanplay(const aValue : TEventHandler);
  94846. begin
  94847. WriteJSPropertyMethod('oncanplay',TMethod(aValue));
  94848. end;
  94849. procedure TJSHTMLElement._Setoncanplaythrough(const aValue : TEventHandler);
  94850. begin
  94851. WriteJSPropertyMethod('oncanplaythrough',TMethod(aValue));
  94852. end;
  94853. procedure TJSHTMLElement._Setonchange(const aValue : TEventHandler);
  94854. begin
  94855. WriteJSPropertyMethod('onchange',TMethod(aValue));
  94856. end;
  94857. procedure TJSHTMLElement._Setonclick(const aValue : TEventHandler);
  94858. begin
  94859. WriteJSPropertyMethod('onclick',TMethod(aValue));
  94860. end;
  94861. procedure TJSHTMLElement._Setonclose(const aValue : TEventHandler);
  94862. begin
  94863. WriteJSPropertyMethod('onclose',TMethod(aValue));
  94864. end;
  94865. procedure TJSHTMLElement._Setoncontextlost(const aValue : TEventHandler);
  94866. begin
  94867. WriteJSPropertyMethod('oncontextlost',TMethod(aValue));
  94868. end;
  94869. procedure TJSHTMLElement._Setoncontextmenu(const aValue : TEventHandler);
  94870. begin
  94871. WriteJSPropertyMethod('oncontextmenu',TMethod(aValue));
  94872. end;
  94873. procedure TJSHTMLElement._Setoncontextrestored(const aValue : TEventHandler);
  94874. begin
  94875. WriteJSPropertyMethod('oncontextrestored',TMethod(aValue));
  94876. end;
  94877. procedure TJSHTMLElement._Setoncopy(const aValue : TEventHandler);
  94878. begin
  94879. WriteJSPropertyMethod('oncopy',TMethod(aValue));
  94880. end;
  94881. procedure TJSHTMLElement._Setoncuechange(const aValue : TEventHandler);
  94882. begin
  94883. WriteJSPropertyMethod('oncuechange',TMethod(aValue));
  94884. end;
  94885. procedure TJSHTMLElement._Setoncut(const aValue : TEventHandler);
  94886. begin
  94887. WriteJSPropertyMethod('oncut',TMethod(aValue));
  94888. end;
  94889. procedure TJSHTMLElement._Setondblclick(const aValue : TEventHandler);
  94890. begin
  94891. WriteJSPropertyMethod('ondblclick',TMethod(aValue));
  94892. end;
  94893. procedure TJSHTMLElement._Setondrag(const aValue : TEventHandler);
  94894. begin
  94895. WriteJSPropertyMethod('ondrag',TMethod(aValue));
  94896. end;
  94897. procedure TJSHTMLElement._Setondragend(const aValue : TEventHandler);
  94898. begin
  94899. WriteJSPropertyMethod('ondragend',TMethod(aValue));
  94900. end;
  94901. procedure TJSHTMLElement._Setondragenter(const aValue : TEventHandler);
  94902. begin
  94903. WriteJSPropertyMethod('ondragenter',TMethod(aValue));
  94904. end;
  94905. procedure TJSHTMLElement._Setondragexit(const aValue : TEventHandler);
  94906. begin
  94907. WriteJSPropertyMethod('ondragexit',TMethod(aValue));
  94908. end;
  94909. procedure TJSHTMLElement._Setondragleave(const aValue : TEventHandler);
  94910. begin
  94911. WriteJSPropertyMethod('ondragleave',TMethod(aValue));
  94912. end;
  94913. procedure TJSHTMLElement._Setondragover(const aValue : TEventHandler);
  94914. begin
  94915. WriteJSPropertyMethod('ondragover',TMethod(aValue));
  94916. end;
  94917. procedure TJSHTMLElement._Setondragstart(const aValue : TEventHandler);
  94918. begin
  94919. WriteJSPropertyMethod('ondragstart',TMethod(aValue));
  94920. end;
  94921. procedure TJSHTMLElement._Setondrop(const aValue : TEventHandler);
  94922. begin
  94923. WriteJSPropertyMethod('ondrop',TMethod(aValue));
  94924. end;
  94925. procedure TJSHTMLElement._Setondurationchange(const aValue : TEventHandler);
  94926. begin
  94927. WriteJSPropertyMethod('ondurationchange',TMethod(aValue));
  94928. end;
  94929. procedure TJSHTMLElement._Setonemptied(const aValue : TEventHandler);
  94930. begin
  94931. WriteJSPropertyMethod('onemptied',TMethod(aValue));
  94932. end;
  94933. procedure TJSHTMLElement._Setonended(const aValue : TEventHandler);
  94934. begin
  94935. WriteJSPropertyMethod('onended',TMethod(aValue));
  94936. end;
  94937. procedure TJSHTMLElement._Setonformdata(const aValue : TEventHandler);
  94938. begin
  94939. WriteJSPropertyMethod('onformdata',TMethod(aValue));
  94940. end;
  94941. procedure TJSHTMLElement._Setoninput(const aValue : TEventHandler);
  94942. begin
  94943. WriteJSPropertyMethod('oninput',TMethod(aValue));
  94944. end;
  94945. procedure TJSHTMLElement._Setoninvalid(const aValue : TEventHandler);
  94946. begin
  94947. WriteJSPropertyMethod('oninvalid',TMethod(aValue));
  94948. end;
  94949. procedure TJSHTMLElement._Setonkeydown(const aValue : TEventHandler);
  94950. begin
  94951. WriteJSPropertyMethod('onkeydown',TMethod(aValue));
  94952. end;
  94953. procedure TJSHTMLElement._Setonkeypress(const aValue : TEventHandler);
  94954. begin
  94955. WriteJSPropertyMethod('onkeypress',TMethod(aValue));
  94956. end;
  94957. procedure TJSHTMLElement._Setonkeyup(const aValue : TEventHandler);
  94958. begin
  94959. WriteJSPropertyMethod('onkeyup',TMethod(aValue));
  94960. end;
  94961. procedure TJSHTMLElement._Setonload(const aValue : TEventHandler);
  94962. begin
  94963. WriteJSPropertyMethod('onload',TMethod(aValue));
  94964. end;
  94965. procedure TJSHTMLElement._Setonloadeddata(const aValue : TEventHandler);
  94966. begin
  94967. WriteJSPropertyMethod('onloadeddata',TMethod(aValue));
  94968. end;
  94969. procedure TJSHTMLElement._Setonloadedmetadata(const aValue : TEventHandler);
  94970. begin
  94971. WriteJSPropertyMethod('onloadedmetadata',TMethod(aValue));
  94972. end;
  94973. procedure TJSHTMLElement._Setonloadstart(const aValue : TEventHandler);
  94974. begin
  94975. WriteJSPropertyMethod('onloadstart',TMethod(aValue));
  94976. end;
  94977. procedure TJSHTMLElement._Setonmousedown(const aValue : TEventHandler);
  94978. begin
  94979. WriteJSPropertyMethod('onmousedown',TMethod(aValue));
  94980. end;
  94981. procedure TJSHTMLElement._Setonmouseenter(const aValue : TEventHandler);
  94982. begin
  94983. WriteJSPropertyMethod('onmouseenter',TMethod(aValue));
  94984. end;
  94985. procedure TJSHTMLElement._Setonmouseleave(const aValue : TEventHandler);
  94986. begin
  94987. WriteJSPropertyMethod('onmouseleave',TMethod(aValue));
  94988. end;
  94989. procedure TJSHTMLElement._Setonmousemove(const aValue : TEventHandler);
  94990. begin
  94991. WriteJSPropertyMethod('onmousemove',TMethod(aValue));
  94992. end;
  94993. procedure TJSHTMLElement._Setonmouseout(const aValue : TEventHandler);
  94994. begin
  94995. WriteJSPropertyMethod('onmouseout',TMethod(aValue));
  94996. end;
  94997. procedure TJSHTMLElement._Setonmouseover(const aValue : TEventHandler);
  94998. begin
  94999. WriteJSPropertyMethod('onmouseover',TMethod(aValue));
  95000. end;
  95001. procedure TJSHTMLElement._Setonmouseup(const aValue : TEventHandler);
  95002. begin
  95003. WriteJSPropertyMethod('onmouseup',TMethod(aValue));
  95004. end;
  95005. procedure TJSHTMLElement._Setonwheel(const aValue : TEventHandler);
  95006. begin
  95007. WriteJSPropertyMethod('onwheel',TMethod(aValue));
  95008. end;
  95009. procedure TJSHTMLElement._Setonpaste(const aValue : TEventHandler);
  95010. begin
  95011. WriteJSPropertyMethod('onpaste',TMethod(aValue));
  95012. end;
  95013. procedure TJSHTMLElement._Setonpause(const aValue : TEventHandler);
  95014. begin
  95015. WriteJSPropertyMethod('onpause',TMethod(aValue));
  95016. end;
  95017. procedure TJSHTMLElement._Setonplay(const aValue : TEventHandler);
  95018. begin
  95019. WriteJSPropertyMethod('onplay',TMethod(aValue));
  95020. end;
  95021. procedure TJSHTMLElement._Setonplaying(const aValue : TEventHandler);
  95022. begin
  95023. WriteJSPropertyMethod('onplaying',TMethod(aValue));
  95024. end;
  95025. procedure TJSHTMLElement._Setonprogress(const aValue : TEventHandler);
  95026. begin
  95027. WriteJSPropertyMethod('onprogress',TMethod(aValue));
  95028. end;
  95029. procedure TJSHTMLElement._Setonratechange(const aValue : TEventHandler);
  95030. begin
  95031. WriteJSPropertyMethod('onratechange',TMethod(aValue));
  95032. end;
  95033. procedure TJSHTMLElement._Setonreset(const aValue : TEventHandler);
  95034. begin
  95035. WriteJSPropertyMethod('onreset',TMethod(aValue));
  95036. end;
  95037. procedure TJSHTMLElement._Setonresize(const aValue : TEventHandler);
  95038. begin
  95039. WriteJSPropertyMethod('onresize',TMethod(aValue));
  95040. end;
  95041. procedure TJSHTMLElement._Setonscroll(const aValue : TEventHandler);
  95042. begin
  95043. WriteJSPropertyMethod('onscroll',TMethod(aValue));
  95044. end;
  95045. procedure TJSHTMLElement._Setonscrollend(const aValue : TEventHandler);
  95046. begin
  95047. WriteJSPropertyMethod('onscrollend',TMethod(aValue));
  95048. end;
  95049. procedure TJSHTMLElement._Setonsecuritypolicyviolation(const aValue : TEventHandler);
  95050. begin
  95051. WriteJSPropertyMethod('onsecuritypolicyviolation',TMethod(aValue));
  95052. end;
  95053. procedure TJSHTMLElement._Setonseeked(const aValue : TEventHandler);
  95054. begin
  95055. WriteJSPropertyMethod('onseeked',TMethod(aValue));
  95056. end;
  95057. procedure TJSHTMLElement._Setonseeking(const aValue : TEventHandler);
  95058. begin
  95059. WriteJSPropertyMethod('onseeking',TMethod(aValue));
  95060. end;
  95061. procedure TJSHTMLElement._Setonselect(const aValue : TEventHandler);
  95062. begin
  95063. WriteJSPropertyMethod('onselect',TMethod(aValue));
  95064. end;
  95065. procedure TJSHTMLElement._Setonslotchange(const aValue : TEventHandler);
  95066. begin
  95067. WriteJSPropertyMethod('onslotchange',TMethod(aValue));
  95068. end;
  95069. procedure TJSHTMLElement._Setonstalled(const aValue : TEventHandler);
  95070. begin
  95071. WriteJSPropertyMethod('onstalled',TMethod(aValue));
  95072. end;
  95073. procedure TJSHTMLElement._Setonsubmit(const aValue : TEventHandler);
  95074. begin
  95075. WriteJSPropertyMethod('onsubmit',TMethod(aValue));
  95076. end;
  95077. procedure TJSHTMLElement._Setonsuspend(const aValue : TEventHandler);
  95078. begin
  95079. WriteJSPropertyMethod('onsuspend',TMethod(aValue));
  95080. end;
  95081. procedure TJSHTMLElement._Setontimeupdate(const aValue : TEventHandler);
  95082. begin
  95083. WriteJSPropertyMethod('ontimeupdate',TMethod(aValue));
  95084. end;
  95085. procedure TJSHTMLElement._Setonvolumechange(const aValue : TEventHandler);
  95086. begin
  95087. WriteJSPropertyMethod('onvolumechange',TMethod(aValue));
  95088. end;
  95089. procedure TJSHTMLElement._Setonwaiting(const aValue : TEventHandler);
  95090. begin
  95091. WriteJSPropertyMethod('onwaiting',TMethod(aValue));
  95092. end;
  95093. procedure TJSHTMLElement._Setonselectstart(const aValue : TEventHandler);
  95094. begin
  95095. WriteJSPropertyMethod('onselectstart',TMethod(aValue));
  95096. end;
  95097. procedure TJSHTMLElement._Setonselectionchange(const aValue : TEventHandler);
  95098. begin
  95099. WriteJSPropertyMethod('onselectionchange',TMethod(aValue));
  95100. end;
  95101. procedure TJSHTMLElement._Setontoggle(const aValue : TEventHandler);
  95102. begin
  95103. WriteJSPropertyMethod('ontoggle',TMethod(aValue));
  95104. end;
  95105. procedure TJSHTMLElement._Setonpointercancel(const aValue : TEventHandler);
  95106. begin
  95107. WriteJSPropertyMethod('onpointercancel',TMethod(aValue));
  95108. end;
  95109. procedure TJSHTMLElement._Setonpointerdown(const aValue : TEventHandler);
  95110. begin
  95111. WriteJSPropertyMethod('onpointerdown',TMethod(aValue));
  95112. end;
  95113. procedure TJSHTMLElement._Setonpointerup(const aValue : TEventHandler);
  95114. begin
  95115. WriteJSPropertyMethod('onpointerup',TMethod(aValue));
  95116. end;
  95117. procedure TJSHTMLElement._Setonpointermove(const aValue : TEventHandler);
  95118. begin
  95119. WriteJSPropertyMethod('onpointermove',TMethod(aValue));
  95120. end;
  95121. procedure TJSHTMLElement._Setonpointerout(const aValue : TEventHandler);
  95122. begin
  95123. WriteJSPropertyMethod('onpointerout',TMethod(aValue));
  95124. end;
  95125. procedure TJSHTMLElement._Setonpointerover(const aValue : TEventHandler);
  95126. begin
  95127. WriteJSPropertyMethod('onpointerover',TMethod(aValue));
  95128. end;
  95129. procedure TJSHTMLElement._Setonpointerenter(const aValue : TEventHandler);
  95130. begin
  95131. WriteJSPropertyMethod('onpointerenter',TMethod(aValue));
  95132. end;
  95133. procedure TJSHTMLElement._Setonpointerleave(const aValue : TEventHandler);
  95134. begin
  95135. WriteJSPropertyMethod('onpointerleave',TMethod(aValue));
  95136. end;
  95137. procedure TJSHTMLElement._Setongotpointercapture(const aValue : TEventHandler);
  95138. begin
  95139. WriteJSPropertyMethod('ongotpointercapture',TMethod(aValue));
  95140. end;
  95141. procedure TJSHTMLElement._Setonlostpointercapture(const aValue : TEventHandler);
  95142. begin
  95143. WriteJSPropertyMethod('onlostpointercapture',TMethod(aValue));
  95144. end;
  95145. procedure TJSHTMLElement._Setonmozfullscreenchange(const aValue : TEventHandler);
  95146. begin
  95147. WriteJSPropertyMethod('onmozfullscreenchange',TMethod(aValue));
  95148. end;
  95149. procedure TJSHTMLElement._Setonmozfullscreenerror(const aValue : TEventHandler);
  95150. begin
  95151. WriteJSPropertyMethod('onmozfullscreenerror',TMethod(aValue));
  95152. end;
  95153. procedure TJSHTMLElement._Setonanimationcancel(const aValue : TEventHandler);
  95154. begin
  95155. WriteJSPropertyMethod('onanimationcancel',TMethod(aValue));
  95156. end;
  95157. procedure TJSHTMLElement._Setonanimationend(const aValue : TEventHandler);
  95158. begin
  95159. WriteJSPropertyMethod('onanimationend',TMethod(aValue));
  95160. end;
  95161. procedure TJSHTMLElement._Setonanimationiteration(const aValue : TEventHandler);
  95162. begin
  95163. WriteJSPropertyMethod('onanimationiteration',TMethod(aValue));
  95164. end;
  95165. procedure TJSHTMLElement._Setonanimationstart(const aValue : TEventHandler);
  95166. begin
  95167. WriteJSPropertyMethod('onanimationstart',TMethod(aValue));
  95168. end;
  95169. procedure TJSHTMLElement._Setontransitioncancel(const aValue : TEventHandler);
  95170. begin
  95171. WriteJSPropertyMethod('ontransitioncancel',TMethod(aValue));
  95172. end;
  95173. procedure TJSHTMLElement._Setontransitionend(const aValue : TEventHandler);
  95174. begin
  95175. WriteJSPropertyMethod('ontransitionend',TMethod(aValue));
  95176. end;
  95177. procedure TJSHTMLElement._Setontransitionrun(const aValue : TEventHandler);
  95178. begin
  95179. WriteJSPropertyMethod('ontransitionrun',TMethod(aValue));
  95180. end;
  95181. procedure TJSHTMLElement._Setontransitionstart(const aValue : TEventHandler);
  95182. begin
  95183. WriteJSPropertyMethod('ontransitionstart',TMethod(aValue));
  95184. end;
  95185. procedure TJSHTMLElement._Setonwebkitanimationend(const aValue : TEventHandler);
  95186. begin
  95187. WriteJSPropertyMethod('onwebkitanimationend',TMethod(aValue));
  95188. end;
  95189. procedure TJSHTMLElement._Setonwebkitanimationiteration(const aValue : TEventHandler);
  95190. begin
  95191. WriteJSPropertyMethod('onwebkitanimationiteration',TMethod(aValue));
  95192. end;
  95193. procedure TJSHTMLElement._Setonwebkitanimationstart(const aValue : TEventHandler);
  95194. begin
  95195. WriteJSPropertyMethod('onwebkitanimationstart',TMethod(aValue));
  95196. end;
  95197. procedure TJSHTMLElement._Setonwebkittransitionend(const aValue : TEventHandler);
  95198. begin
  95199. WriteJSPropertyMethod('onwebkittransitionend',TMethod(aValue));
  95200. end;
  95201. procedure TJSHTMLElement._Setautofocus(const aValue : Boolean);
  95202. begin
  95203. WriteJSPropertyBoolean('autofocus',aValue);
  95204. end;
  95205. procedure TJSHTMLElement._SettabIndex(const aValue : LongInt);
  95206. begin
  95207. WriteJSPropertyLongInt('tabIndex',aValue);
  95208. end;
  95209. procedure TJSHTMLElement._Setontouchstart(const aValue : TEventHandler);
  95210. begin
  95211. WriteJSPropertyMethod('ontouchstart',TMethod(aValue));
  95212. end;
  95213. procedure TJSHTMLElement._Setontouchend(const aValue : TEventHandler);
  95214. begin
  95215. WriteJSPropertyMethod('ontouchend',TMethod(aValue));
  95216. end;
  95217. procedure TJSHTMLElement._Setontouchmove(const aValue : TEventHandler);
  95218. begin
  95219. WriteJSPropertyMethod('ontouchmove',TMethod(aValue));
  95220. end;
  95221. procedure TJSHTMLElement._Setontouchcancel(const aValue : TEventHandler);
  95222. begin
  95223. WriteJSPropertyMethod('ontouchcancel',TMethod(aValue));
  95224. end;
  95225. procedure TJSHTMLElement._Setonerror(const aValue : TEventHandler);
  95226. begin
  95227. WriteJSPropertyMethod('onerror',TMethod(aValue));
  95228. end;
  95229. constructor TJSHTMLElement.Create;
  95230. begin
  95231. JOBCreate([]);
  95232. end;
  95233. procedure TJSHTMLElement.click;
  95234. begin
  95235. InvokeJSNoResult('click',[]);
  95236. end;
  95237. function TJSHTMLElement.attachInternals: IJSElementInternals;
  95238. begin
  95239. Result:=InvokeJSObjectResult('attachInternals',[],TJSElementInternals) as IJSElementInternals;
  95240. end;
  95241. procedure TJSHTMLElement.showPopover;
  95242. begin
  95243. InvokeJSNoResult('showPopover',[]);
  95244. end;
  95245. procedure TJSHTMLElement.hidePopover;
  95246. begin
  95247. InvokeJSNoResult('hidePopover',[]);
  95248. end;
  95249. function TJSHTMLElement.togglePopover(aForce: Boolean): Boolean;
  95250. begin
  95251. Result:=InvokeJSBooleanResult('togglePopover',[aForce]);
  95252. end;
  95253. function TJSHTMLElement.togglePopover: Boolean;
  95254. begin
  95255. Result:=InvokeJSBooleanResult('togglePopover',[]);
  95256. end;
  95257. procedure TJSHTMLElement.focus(const aOptions: TJSFocusOptions);
  95258. begin
  95259. InvokeJSNoResult('focus',[aOptions]);
  95260. end;
  95261. procedure TJSHTMLElement.focus;
  95262. begin
  95263. InvokeJSNoResult('focus',[]);
  95264. end;
  95265. procedure TJSHTMLElement.blur;
  95266. begin
  95267. InvokeJSNoResult('blur',[]);
  95268. end;
  95269. class function TJSHTMLElement.JSClassName: UnicodeString;
  95270. begin
  95271. Result:='HTMLElement';
  95272. end;
  95273. class function TJSHTMLElement.Cast(const Intf: IJSObject): IJSHTMLElement;
  95274. begin
  95275. Result:=TJSHTMLElement.JOBCast(Intf);
  95276. end;
  95277. function TJSTouchEventHandlers._Getontouchstart: TEventHandler;
  95278. begin
  95279. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchstart')));
  95280. end;
  95281. function TJSTouchEventHandlers._Getontouchend: TEventHandler;
  95282. begin
  95283. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchend')));
  95284. end;
  95285. function TJSTouchEventHandlers._Getontouchmove: TEventHandler;
  95286. begin
  95287. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchmove')));
  95288. end;
  95289. function TJSTouchEventHandlers._Getontouchcancel: TEventHandler;
  95290. begin
  95291. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchcancel')));
  95292. end;
  95293. procedure TJSTouchEventHandlers._Setontouchstart(const aValue : TEventHandler);
  95294. begin
  95295. WriteJSPropertyMethod('ontouchstart',TMethod(aValue));
  95296. end;
  95297. procedure TJSTouchEventHandlers._Setontouchend(const aValue : TEventHandler);
  95298. begin
  95299. WriteJSPropertyMethod('ontouchend',TMethod(aValue));
  95300. end;
  95301. procedure TJSTouchEventHandlers._Setontouchmove(const aValue : TEventHandler);
  95302. begin
  95303. WriteJSPropertyMethod('ontouchmove',TMethod(aValue));
  95304. end;
  95305. procedure TJSTouchEventHandlers._Setontouchcancel(const aValue : TEventHandler);
  95306. begin
  95307. WriteJSPropertyMethod('ontouchcancel',TMethod(aValue));
  95308. end;
  95309. class function TJSTouchEventHandlers.JSClassName: UnicodeString;
  95310. begin
  95311. Result:='TouchEventHandlers';
  95312. end;
  95313. class function TJSTouchEventHandlers.Cast(const Intf: IJSObject): IJSTouchEventHandlers;
  95314. begin
  95315. Result:=TJSTouchEventHandlers.JOBCast(Intf);
  95316. end;
  95317. class function TJSHTMLUnknownElement.JSClassName: UnicodeString;
  95318. begin
  95319. Result:='HTMLUnknownElement';
  95320. end;
  95321. class function TJSHTMLUnknownElement.Cast(const Intf: IJSObject): IJSHTMLUnknownElement;
  95322. begin
  95323. Result:=TJSHTMLUnknownElement.JOBCast(Intf);
  95324. end;
  95325. function TJSHTMLEmbedElement._Getsrc: UnicodeString;
  95326. begin
  95327. Result:=ReadJSPropertyUnicodeString('src');
  95328. end;
  95329. function TJSHTMLEmbedElement._Gettype_: UnicodeString;
  95330. begin
  95331. Result:=ReadJSPropertyUnicodeString('type');
  95332. end;
  95333. function TJSHTMLEmbedElement._Getwidth: UnicodeString;
  95334. begin
  95335. Result:=ReadJSPropertyUnicodeString('width');
  95336. end;
  95337. function TJSHTMLEmbedElement._Getheight: UnicodeString;
  95338. begin
  95339. Result:=ReadJSPropertyUnicodeString('height');
  95340. end;
  95341. function TJSHTMLEmbedElement._Getalign: UnicodeString;
  95342. begin
  95343. Result:=ReadJSPropertyUnicodeString('align');
  95344. end;
  95345. function TJSHTMLEmbedElement._Getname: UnicodeString;
  95346. begin
  95347. Result:=ReadJSPropertyUnicodeString('name');
  95348. end;
  95349. procedure TJSHTMLEmbedElement._Setsrc(const aValue : UnicodeString);
  95350. begin
  95351. WriteJSPropertyUnicodeString('src',aValue);
  95352. end;
  95353. procedure TJSHTMLEmbedElement._Settype_(const aValue : UnicodeString);
  95354. begin
  95355. WriteJSPropertyUnicodeString('type',aValue);
  95356. end;
  95357. procedure TJSHTMLEmbedElement._Setwidth(const aValue : UnicodeString);
  95358. begin
  95359. WriteJSPropertyUnicodeString('width',aValue);
  95360. end;
  95361. procedure TJSHTMLEmbedElement._Setheight(const aValue : UnicodeString);
  95362. begin
  95363. WriteJSPropertyUnicodeString('height',aValue);
  95364. end;
  95365. procedure TJSHTMLEmbedElement._Setalign(const aValue : UnicodeString);
  95366. begin
  95367. WriteJSPropertyUnicodeString('align',aValue);
  95368. end;
  95369. procedure TJSHTMLEmbedElement._Setname(const aValue : UnicodeString);
  95370. begin
  95371. WriteJSPropertyUnicodeString('name',aValue);
  95372. end;
  95373. constructor TJSHTMLEmbedElement.Create;
  95374. begin
  95375. JOBCreate([]);
  95376. end;
  95377. function TJSHTMLEmbedElement.getSVGDocument: IJSDocument;
  95378. begin
  95379. Result:=InvokeJSObjectResult('getSVGDocument',[],TJSDocument) as IJSDocument;
  95380. end;
  95381. class function TJSHTMLEmbedElement.JSClassName: UnicodeString;
  95382. begin
  95383. Result:='HTMLEmbedElement';
  95384. end;
  95385. class function TJSHTMLEmbedElement.Cast(const Intf: IJSObject): IJSHTMLEmbedElement;
  95386. begin
  95387. Result:=TJSHTMLEmbedElement.JOBCast(Intf);
  95388. end;
  95389. function TJSHTMLFieldSetElement._Getdisabled: Boolean;
  95390. begin
  95391. Result:=ReadJSPropertyBoolean('disabled');
  95392. end;
  95393. function TJSHTMLFieldSetElement._Getform: IJSHTMLFormElement;
  95394. begin
  95395. Result:=ReadJSPropertyObject('form',TJSHTMLFormElement) as IJSHTMLFormElement;
  95396. end;
  95397. function TJSHTMLFieldSetElement._Getname: UnicodeString;
  95398. begin
  95399. Result:=ReadJSPropertyUnicodeString('name');
  95400. end;
  95401. function TJSHTMLFieldSetElement._Gettype_: UnicodeString;
  95402. begin
  95403. Result:=ReadJSPropertyUnicodeString('type');
  95404. end;
  95405. function TJSHTMLFieldSetElement._Getelements: IJSHTMLCollection;
  95406. begin
  95407. Result:=ReadJSPropertyObject('elements',TJSHTMLCollection) as IJSHTMLCollection;
  95408. end;
  95409. function TJSHTMLFieldSetElement._GetwillValidate: Boolean;
  95410. begin
  95411. Result:=ReadJSPropertyBoolean('willValidate');
  95412. end;
  95413. function TJSHTMLFieldSetElement._Getvalidity: IJSValidityState;
  95414. begin
  95415. Result:=ReadJSPropertyObject('validity',TJSValidityState) as IJSValidityState;
  95416. end;
  95417. function TJSHTMLFieldSetElement._GetvalidationMessage: UnicodeString;
  95418. begin
  95419. Result:=ReadJSPropertyUnicodeString('validationMessage');
  95420. end;
  95421. procedure TJSHTMLFieldSetElement._Setdisabled(const aValue : Boolean);
  95422. begin
  95423. WriteJSPropertyBoolean('disabled',aValue);
  95424. end;
  95425. procedure TJSHTMLFieldSetElement._Setname(const aValue : UnicodeString);
  95426. begin
  95427. WriteJSPropertyUnicodeString('name',aValue);
  95428. end;
  95429. constructor TJSHTMLFieldSetElement.Create;
  95430. begin
  95431. JOBCreate([]);
  95432. end;
  95433. function TJSHTMLFieldSetElement.checkValidity: Boolean;
  95434. begin
  95435. Result:=InvokeJSBooleanResult('checkValidity',[]);
  95436. end;
  95437. function TJSHTMLFieldSetElement.reportValidity: Boolean;
  95438. begin
  95439. Result:=InvokeJSBooleanResult('reportValidity',[]);
  95440. end;
  95441. procedure TJSHTMLFieldSetElement.setCustomValidity(const aError: UnicodeString);
  95442. begin
  95443. InvokeJSNoResult('setCustomValidity',[aError]);
  95444. end;
  95445. class function TJSHTMLFieldSetElement.JSClassName: UnicodeString;
  95446. begin
  95447. Result:='HTMLFieldSetElement';
  95448. end;
  95449. class function TJSHTMLFieldSetElement.Cast(const Intf: IJSObject): IJSHTMLFieldSetElement;
  95450. begin
  95451. Result:=TJSHTMLFieldSetElement.JOBCast(Intf);
  95452. end;
  95453. function TJSHTMLFontElement._Getcolor: UnicodeString;
  95454. begin
  95455. Result:=ReadJSPropertyUnicodeString('color');
  95456. end;
  95457. function TJSHTMLFontElement._Getface: UnicodeString;
  95458. begin
  95459. Result:=ReadJSPropertyUnicodeString('face');
  95460. end;
  95461. function TJSHTMLFontElement._Getsize: UnicodeString;
  95462. begin
  95463. Result:=ReadJSPropertyUnicodeString('size');
  95464. end;
  95465. procedure TJSHTMLFontElement._Setcolor(const aValue : UnicodeString);
  95466. begin
  95467. WriteJSPropertyUnicodeString('color',aValue);
  95468. end;
  95469. procedure TJSHTMLFontElement._Setface(const aValue : UnicodeString);
  95470. begin
  95471. WriteJSPropertyUnicodeString('face',aValue);
  95472. end;
  95473. procedure TJSHTMLFontElement._Setsize(const aValue : UnicodeString);
  95474. begin
  95475. WriteJSPropertyUnicodeString('size',aValue);
  95476. end;
  95477. constructor TJSHTMLFontElement.Create;
  95478. begin
  95479. JOBCreate([]);
  95480. end;
  95481. class function TJSHTMLFontElement.JSClassName: UnicodeString;
  95482. begin
  95483. Result:='HTMLFontElement';
  95484. end;
  95485. class function TJSHTMLFontElement.Cast(const Intf: IJSObject): IJSHTMLFontElement;
  95486. begin
  95487. Result:=TJSHTMLFontElement.JOBCast(Intf);
  95488. end;
  95489. function TJSHTMLFormControlsCollection.namedItem(const aName: UnicodeString): THTMLFormControlsCollection_namedItem_Type;
  95490. begin
  95491. Result:=InvokeJSVariantResult('namedItem',[aName]);
  95492. end;
  95493. class function TJSHTMLFormControlsCollection.JSClassName: UnicodeString;
  95494. begin
  95495. Result:='HTMLFormControlsCollection';
  95496. end;
  95497. class function TJSHTMLFormControlsCollection.Cast(const Intf: IJSObject): IJSHTMLFormControlsCollection;
  95498. begin
  95499. Result:=TJSHTMLFormControlsCollection.JOBCast(Intf);
  95500. end;
  95501. function TJSHTMLFormElement._GetacceptCharset: UnicodeString;
  95502. begin
  95503. Result:=ReadJSPropertyUnicodeString('acceptCharset');
  95504. end;
  95505. function TJSHTMLFormElement._Getaction: UnicodeString;
  95506. begin
  95507. Result:=ReadJSPropertyUnicodeString('action');
  95508. end;
  95509. function TJSHTMLFormElement._Getautocomplete: UnicodeString;
  95510. begin
  95511. Result:=ReadJSPropertyUnicodeString('autocomplete');
  95512. end;
  95513. function TJSHTMLFormElement._Getenctype: UnicodeString;
  95514. begin
  95515. Result:=ReadJSPropertyUnicodeString('enctype');
  95516. end;
  95517. function TJSHTMLFormElement._Getencoding: UnicodeString;
  95518. begin
  95519. Result:=ReadJSPropertyUnicodeString('encoding');
  95520. end;
  95521. function TJSHTMLFormElement._Getmethod: UnicodeString;
  95522. begin
  95523. Result:=ReadJSPropertyUnicodeString('method');
  95524. end;
  95525. function TJSHTMLFormElement._Getname: UnicodeString;
  95526. begin
  95527. Result:=ReadJSPropertyUnicodeString('name');
  95528. end;
  95529. function TJSHTMLFormElement._GetnoValidate: Boolean;
  95530. begin
  95531. Result:=ReadJSPropertyBoolean('noValidate');
  95532. end;
  95533. function TJSHTMLFormElement._Gettarget: UnicodeString;
  95534. begin
  95535. Result:=ReadJSPropertyUnicodeString('target');
  95536. end;
  95537. function TJSHTMLFormElement._Getrel: UnicodeString;
  95538. begin
  95539. Result:=ReadJSPropertyUnicodeString('rel');
  95540. end;
  95541. function TJSHTMLFormElement._GetrelList: IJSDOMTokenList;
  95542. begin
  95543. Result:=ReadJSPropertyObject('relList',TJSDOMTokenList) as IJSDOMTokenList;
  95544. end;
  95545. function TJSHTMLFormElement._Getelements: IJSHTMLFormControlsCollection;
  95546. begin
  95547. Result:=ReadJSPropertyObject('elements',TJSHTMLFormControlsCollection) as IJSHTMLFormControlsCollection;
  95548. end;
  95549. function TJSHTMLFormElement._Getlength_: LongInt;
  95550. begin
  95551. Result:=ReadJSPropertyLongInt('length');
  95552. end;
  95553. procedure TJSHTMLFormElement._SetacceptCharset(const aValue : UnicodeString);
  95554. begin
  95555. WriteJSPropertyUnicodeString('acceptCharset',aValue);
  95556. end;
  95557. procedure TJSHTMLFormElement._Setaction(const aValue : UnicodeString);
  95558. begin
  95559. WriteJSPropertyUnicodeString('action',aValue);
  95560. end;
  95561. procedure TJSHTMLFormElement._Setautocomplete(const aValue : UnicodeString);
  95562. begin
  95563. WriteJSPropertyUnicodeString('autocomplete',aValue);
  95564. end;
  95565. procedure TJSHTMLFormElement._Setenctype(const aValue : UnicodeString);
  95566. begin
  95567. WriteJSPropertyUnicodeString('enctype',aValue);
  95568. end;
  95569. procedure TJSHTMLFormElement._Setencoding(const aValue : UnicodeString);
  95570. begin
  95571. WriteJSPropertyUnicodeString('encoding',aValue);
  95572. end;
  95573. procedure TJSHTMLFormElement._Setmethod(const aValue : UnicodeString);
  95574. begin
  95575. WriteJSPropertyUnicodeString('method',aValue);
  95576. end;
  95577. procedure TJSHTMLFormElement._Setname(const aValue : UnicodeString);
  95578. begin
  95579. WriteJSPropertyUnicodeString('name',aValue);
  95580. end;
  95581. procedure TJSHTMLFormElement._SetnoValidate(const aValue : Boolean);
  95582. begin
  95583. WriteJSPropertyBoolean('noValidate',aValue);
  95584. end;
  95585. procedure TJSHTMLFormElement._Settarget(const aValue : UnicodeString);
  95586. begin
  95587. WriteJSPropertyUnicodeString('target',aValue);
  95588. end;
  95589. procedure TJSHTMLFormElement._Setrel(const aValue : UnicodeString);
  95590. begin
  95591. WriteJSPropertyUnicodeString('rel',aValue);
  95592. end;
  95593. constructor TJSHTMLFormElement.Create;
  95594. begin
  95595. JOBCreate([]);
  95596. end;
  95597. function TJSHTMLFormElement.GetDefault(aIndex: Cardinal): IJSElement;
  95598. begin
  95599. Result:=InvokeJSObjectResult('',[aIndex],TJSElement) as IJSElement;
  95600. end;
  95601. function TJSHTMLFormElement.GetDefault(const aName: UnicodeString): IJSnsISupports;
  95602. begin
  95603. Result:=InvokeJSObjectResult('',[aName],TJSnsISupports) as IJSnsISupports;
  95604. end;
  95605. procedure TJSHTMLFormElement.submit;
  95606. begin
  95607. InvokeJSNoResult('submit',[]);
  95608. end;
  95609. procedure TJSHTMLFormElement.requestSubmit(aSubmitter: IJSHTMLElement);
  95610. begin
  95611. InvokeJSNoResult('requestSubmit',[aSubmitter]);
  95612. end;
  95613. procedure TJSHTMLFormElement.requestSubmit;
  95614. begin
  95615. InvokeJSNoResult('requestSubmit',[]);
  95616. end;
  95617. procedure TJSHTMLFormElement.reset;
  95618. begin
  95619. InvokeJSNoResult('reset',[]);
  95620. end;
  95621. function TJSHTMLFormElement.checkValidity: Boolean;
  95622. begin
  95623. Result:=InvokeJSBooleanResult('checkValidity',[]);
  95624. end;
  95625. function TJSHTMLFormElement.reportValidity: Boolean;
  95626. begin
  95627. Result:=InvokeJSBooleanResult('reportValidity',[]);
  95628. end;
  95629. class function TJSHTMLFormElement.JSClassName: UnicodeString;
  95630. begin
  95631. Result:='HTMLFormElement';
  95632. end;
  95633. class function TJSHTMLFormElement.Cast(const Intf: IJSObject): IJSHTMLFormElement;
  95634. begin
  95635. Result:=TJSHTMLFormElement.JOBCast(Intf);
  95636. end;
  95637. function TJSHTMLFrameElement._Getname: UnicodeString;
  95638. begin
  95639. Result:=ReadJSPropertyUnicodeString('name');
  95640. end;
  95641. function TJSHTMLFrameElement._Getscrolling: UnicodeString;
  95642. begin
  95643. Result:=ReadJSPropertyUnicodeString('scrolling');
  95644. end;
  95645. function TJSHTMLFrameElement._Getsrc: UnicodeString;
  95646. begin
  95647. Result:=ReadJSPropertyUnicodeString('src');
  95648. end;
  95649. function TJSHTMLFrameElement._GetframeBorder: UnicodeString;
  95650. begin
  95651. Result:=ReadJSPropertyUnicodeString('frameBorder');
  95652. end;
  95653. function TJSHTMLFrameElement._GetlongDesc: UnicodeString;
  95654. begin
  95655. Result:=ReadJSPropertyUnicodeString('longDesc');
  95656. end;
  95657. function TJSHTMLFrameElement._GetnoResize: Boolean;
  95658. begin
  95659. Result:=ReadJSPropertyBoolean('noResize');
  95660. end;
  95661. function TJSHTMLFrameElement._GetcontentDocument: IJSDocument;
  95662. begin
  95663. Result:=ReadJSPropertyObject('contentDocument',TJSDocument) as IJSDocument;
  95664. end;
  95665. function TJSHTMLFrameElement._GetcontentWindow: IJSWindowProxy;
  95666. begin
  95667. Result:=ReadJSPropertyObject('contentWindow',TJSWindowProxy) as IJSWindowProxy;
  95668. end;
  95669. function TJSHTMLFrameElement._GetmarginHeight: UnicodeString;
  95670. begin
  95671. Result:=ReadJSPropertyUnicodeString('marginHeight');
  95672. end;
  95673. function TJSHTMLFrameElement._GetmarginWidth: UnicodeString;
  95674. begin
  95675. Result:=ReadJSPropertyUnicodeString('marginWidth');
  95676. end;
  95677. procedure TJSHTMLFrameElement._Setname(const aValue : UnicodeString);
  95678. begin
  95679. WriteJSPropertyUnicodeString('name',aValue);
  95680. end;
  95681. procedure TJSHTMLFrameElement._Setscrolling(const aValue : UnicodeString);
  95682. begin
  95683. WriteJSPropertyUnicodeString('scrolling',aValue);
  95684. end;
  95685. procedure TJSHTMLFrameElement._Setsrc(const aValue : UnicodeString);
  95686. begin
  95687. WriteJSPropertyUnicodeString('src',aValue);
  95688. end;
  95689. procedure TJSHTMLFrameElement._SetframeBorder(const aValue : UnicodeString);
  95690. begin
  95691. WriteJSPropertyUnicodeString('frameBorder',aValue);
  95692. end;
  95693. procedure TJSHTMLFrameElement._SetlongDesc(const aValue : UnicodeString);
  95694. begin
  95695. WriteJSPropertyUnicodeString('longDesc',aValue);
  95696. end;
  95697. procedure TJSHTMLFrameElement._SetnoResize(const aValue : Boolean);
  95698. begin
  95699. WriteJSPropertyBoolean('noResize',aValue);
  95700. end;
  95701. procedure TJSHTMLFrameElement._SetmarginHeight(const aValue : UnicodeString);
  95702. begin
  95703. WriteJSPropertyUnicodeString('marginHeight',aValue);
  95704. end;
  95705. procedure TJSHTMLFrameElement._SetmarginWidth(const aValue : UnicodeString);
  95706. begin
  95707. WriteJSPropertyUnicodeString('marginWidth',aValue);
  95708. end;
  95709. constructor TJSHTMLFrameElement.Create;
  95710. begin
  95711. JOBCreate([]);
  95712. end;
  95713. class function TJSHTMLFrameElement.JSClassName: UnicodeString;
  95714. begin
  95715. Result:='HTMLFrameElement';
  95716. end;
  95717. class function TJSHTMLFrameElement.Cast(const Intf: IJSObject): IJSHTMLFrameElement;
  95718. begin
  95719. Result:=TJSHTMLFrameElement.JOBCast(Intf);
  95720. end;
  95721. function TJSHTMLFrameSetElement._Getcols: UnicodeString;
  95722. begin
  95723. Result:=ReadJSPropertyUnicodeString('cols');
  95724. end;
  95725. function TJSHTMLFrameSetElement._Getrows: UnicodeString;
  95726. begin
  95727. Result:=ReadJSPropertyUnicodeString('rows');
  95728. end;
  95729. function TJSHTMLFrameSetElement._Getonafterprint: TEventHandler;
  95730. begin
  95731. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onafterprint')));
  95732. end;
  95733. function TJSHTMLFrameSetElement._Getonbeforeprint: TEventHandler;
  95734. begin
  95735. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforeprint')));
  95736. end;
  95737. function TJSHTMLFrameSetElement._Getonbeforeunload: TOnBeforeUnloadEventHandler;
  95738. begin
  95739. Result:=(TOnBeforeUnloadEventHandlerNonNull(ReadJSPropertyMethod('onbeforeunload')));
  95740. end;
  95741. function TJSHTMLFrameSetElement._Getonhashchange: TEventHandler;
  95742. begin
  95743. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onhashchange')));
  95744. end;
  95745. function TJSHTMLFrameSetElement._Getonlanguagechange: TEventHandler;
  95746. begin
  95747. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onlanguagechange')));
  95748. end;
  95749. function TJSHTMLFrameSetElement._Getonmessage: TEventHandler;
  95750. begin
  95751. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  95752. end;
  95753. function TJSHTMLFrameSetElement._Getonmessageerror: TEventHandler;
  95754. begin
  95755. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessageerror')));
  95756. end;
  95757. function TJSHTMLFrameSetElement._Getonoffline: TEventHandler;
  95758. begin
  95759. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onoffline')));
  95760. end;
  95761. function TJSHTMLFrameSetElement._Getononline: TEventHandler;
  95762. begin
  95763. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ononline')));
  95764. end;
  95765. function TJSHTMLFrameSetElement._Getonpagehide: TEventHandler;
  95766. begin
  95767. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpagehide')));
  95768. end;
  95769. function TJSHTMLFrameSetElement._Getonpageshow: TEventHandler;
  95770. begin
  95771. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpageshow')));
  95772. end;
  95773. function TJSHTMLFrameSetElement._Getonpopstate: TEventHandler;
  95774. begin
  95775. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpopstate')));
  95776. end;
  95777. function TJSHTMLFrameSetElement._Getonrejectionhandled: TEventHandler;
  95778. begin
  95779. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onrejectionhandled')));
  95780. end;
  95781. function TJSHTMLFrameSetElement._Getonstorage: TEventHandler;
  95782. begin
  95783. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstorage')));
  95784. end;
  95785. function TJSHTMLFrameSetElement._Getonunhandledrejection: TEventHandler;
  95786. begin
  95787. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onunhandledrejection')));
  95788. end;
  95789. function TJSHTMLFrameSetElement._Getonunload: TEventHandler;
  95790. begin
  95791. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onunload')));
  95792. end;
  95793. function TJSHTMLFrameSetElement._Getongamepadconnected: TEventHandler;
  95794. begin
  95795. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongamepadconnected')));
  95796. end;
  95797. function TJSHTMLFrameSetElement._Getongamepaddisconnected: TEventHandler;
  95798. begin
  95799. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongamepaddisconnected')));
  95800. end;
  95801. procedure TJSHTMLFrameSetElement._Setcols(const aValue : UnicodeString);
  95802. begin
  95803. WriteJSPropertyUnicodeString('cols',aValue);
  95804. end;
  95805. procedure TJSHTMLFrameSetElement._Setrows(const aValue : UnicodeString);
  95806. begin
  95807. WriteJSPropertyUnicodeString('rows',aValue);
  95808. end;
  95809. procedure TJSHTMLFrameSetElement._Setonafterprint(const aValue : TEventHandler);
  95810. begin
  95811. WriteJSPropertyMethod('onafterprint',TMethod(aValue));
  95812. end;
  95813. procedure TJSHTMLFrameSetElement._Setonbeforeprint(const aValue : TEventHandler);
  95814. begin
  95815. WriteJSPropertyMethod('onbeforeprint',TMethod(aValue));
  95816. end;
  95817. procedure TJSHTMLFrameSetElement._Setonbeforeunload(const aValue : TOnBeforeUnloadEventHandler);
  95818. begin
  95819. WriteJSPropertyMethod('onbeforeunload',TMethod(aValue));
  95820. end;
  95821. procedure TJSHTMLFrameSetElement._Setonhashchange(const aValue : TEventHandler);
  95822. begin
  95823. WriteJSPropertyMethod('onhashchange',TMethod(aValue));
  95824. end;
  95825. procedure TJSHTMLFrameSetElement._Setonlanguagechange(const aValue : TEventHandler);
  95826. begin
  95827. WriteJSPropertyMethod('onlanguagechange',TMethod(aValue));
  95828. end;
  95829. procedure TJSHTMLFrameSetElement._Setonmessage(const aValue : TEventHandler);
  95830. begin
  95831. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  95832. end;
  95833. procedure TJSHTMLFrameSetElement._Setonmessageerror(const aValue : TEventHandler);
  95834. begin
  95835. WriteJSPropertyMethod('onmessageerror',TMethod(aValue));
  95836. end;
  95837. procedure TJSHTMLFrameSetElement._Setonoffline(const aValue : TEventHandler);
  95838. begin
  95839. WriteJSPropertyMethod('onoffline',TMethod(aValue));
  95840. end;
  95841. procedure TJSHTMLFrameSetElement._Setononline(const aValue : TEventHandler);
  95842. begin
  95843. WriteJSPropertyMethod('ononline',TMethod(aValue));
  95844. end;
  95845. procedure TJSHTMLFrameSetElement._Setonpagehide(const aValue : TEventHandler);
  95846. begin
  95847. WriteJSPropertyMethod('onpagehide',TMethod(aValue));
  95848. end;
  95849. procedure TJSHTMLFrameSetElement._Setonpageshow(const aValue : TEventHandler);
  95850. begin
  95851. WriteJSPropertyMethod('onpageshow',TMethod(aValue));
  95852. end;
  95853. procedure TJSHTMLFrameSetElement._Setonpopstate(const aValue : TEventHandler);
  95854. begin
  95855. WriteJSPropertyMethod('onpopstate',TMethod(aValue));
  95856. end;
  95857. procedure TJSHTMLFrameSetElement._Setonrejectionhandled(const aValue : TEventHandler);
  95858. begin
  95859. WriteJSPropertyMethod('onrejectionhandled',TMethod(aValue));
  95860. end;
  95861. procedure TJSHTMLFrameSetElement._Setonstorage(const aValue : TEventHandler);
  95862. begin
  95863. WriteJSPropertyMethod('onstorage',TMethod(aValue));
  95864. end;
  95865. procedure TJSHTMLFrameSetElement._Setonunhandledrejection(const aValue : TEventHandler);
  95866. begin
  95867. WriteJSPropertyMethod('onunhandledrejection',TMethod(aValue));
  95868. end;
  95869. procedure TJSHTMLFrameSetElement._Setonunload(const aValue : TEventHandler);
  95870. begin
  95871. WriteJSPropertyMethod('onunload',TMethod(aValue));
  95872. end;
  95873. procedure TJSHTMLFrameSetElement._Setongamepadconnected(const aValue : TEventHandler);
  95874. begin
  95875. WriteJSPropertyMethod('ongamepadconnected',TMethod(aValue));
  95876. end;
  95877. procedure TJSHTMLFrameSetElement._Setongamepaddisconnected(const aValue : TEventHandler);
  95878. begin
  95879. WriteJSPropertyMethod('ongamepaddisconnected',TMethod(aValue));
  95880. end;
  95881. constructor TJSHTMLFrameSetElement.Create;
  95882. begin
  95883. JOBCreate([]);
  95884. end;
  95885. class function TJSHTMLFrameSetElement.JSClassName: UnicodeString;
  95886. begin
  95887. Result:='HTMLFrameSetElement';
  95888. end;
  95889. class function TJSHTMLFrameSetElement.Cast(const Intf: IJSObject): IJSHTMLFrameSetElement;
  95890. begin
  95891. Result:=TJSHTMLFrameSetElement.JOBCast(Intf);
  95892. end;
  95893. constructor TJSHTMLHeadElement.Create;
  95894. begin
  95895. JOBCreate([]);
  95896. end;
  95897. class function TJSHTMLHeadElement.JSClassName: UnicodeString;
  95898. begin
  95899. Result:='HTMLHeadElement';
  95900. end;
  95901. class function TJSHTMLHeadElement.Cast(const Intf: IJSObject): IJSHTMLHeadElement;
  95902. begin
  95903. Result:=TJSHTMLHeadElement.JOBCast(Intf);
  95904. end;
  95905. function TJSHTMLHeadingElement._Getalign: UnicodeString;
  95906. begin
  95907. Result:=ReadJSPropertyUnicodeString('align');
  95908. end;
  95909. procedure TJSHTMLHeadingElement._Setalign(const aValue : UnicodeString);
  95910. begin
  95911. WriteJSPropertyUnicodeString('align',aValue);
  95912. end;
  95913. constructor TJSHTMLHeadingElement.Create;
  95914. begin
  95915. JOBCreate([]);
  95916. end;
  95917. class function TJSHTMLHeadingElement.JSClassName: UnicodeString;
  95918. begin
  95919. Result:='HTMLHeadingElement';
  95920. end;
  95921. class function TJSHTMLHeadingElement.Cast(const Intf: IJSObject): IJSHTMLHeadingElement;
  95922. begin
  95923. Result:=TJSHTMLHeadingElement.JOBCast(Intf);
  95924. end;
  95925. function TJSHTMLHRElement._Getalign: UnicodeString;
  95926. begin
  95927. Result:=ReadJSPropertyUnicodeString('align');
  95928. end;
  95929. function TJSHTMLHRElement._Getcolor: UnicodeString;
  95930. begin
  95931. Result:=ReadJSPropertyUnicodeString('color');
  95932. end;
  95933. function TJSHTMLHRElement._GetnoShade: Boolean;
  95934. begin
  95935. Result:=ReadJSPropertyBoolean('noShade');
  95936. end;
  95937. function TJSHTMLHRElement._Getsize: UnicodeString;
  95938. begin
  95939. Result:=ReadJSPropertyUnicodeString('size');
  95940. end;
  95941. function TJSHTMLHRElement._Getwidth: UnicodeString;
  95942. begin
  95943. Result:=ReadJSPropertyUnicodeString('width');
  95944. end;
  95945. procedure TJSHTMLHRElement._Setalign(const aValue : UnicodeString);
  95946. begin
  95947. WriteJSPropertyUnicodeString('align',aValue);
  95948. end;
  95949. procedure TJSHTMLHRElement._Setcolor(const aValue : UnicodeString);
  95950. begin
  95951. WriteJSPropertyUnicodeString('color',aValue);
  95952. end;
  95953. procedure TJSHTMLHRElement._SetnoShade(const aValue : Boolean);
  95954. begin
  95955. WriteJSPropertyBoolean('noShade',aValue);
  95956. end;
  95957. procedure TJSHTMLHRElement._Setsize(const aValue : UnicodeString);
  95958. begin
  95959. WriteJSPropertyUnicodeString('size',aValue);
  95960. end;
  95961. procedure TJSHTMLHRElement._Setwidth(const aValue : UnicodeString);
  95962. begin
  95963. WriteJSPropertyUnicodeString('width',aValue);
  95964. end;
  95965. constructor TJSHTMLHRElement.Create;
  95966. begin
  95967. JOBCreate([]);
  95968. end;
  95969. class function TJSHTMLHRElement.JSClassName: UnicodeString;
  95970. begin
  95971. Result:='HTMLHRElement';
  95972. end;
  95973. class function TJSHTMLHRElement.Cast(const Intf: IJSObject): IJSHTMLHRElement;
  95974. begin
  95975. Result:=TJSHTMLHRElement.JOBCast(Intf);
  95976. end;
  95977. function TJSHTMLHtmlElement._Getversion: UnicodeString;
  95978. begin
  95979. Result:=ReadJSPropertyUnicodeString('version');
  95980. end;
  95981. procedure TJSHTMLHtmlElement._Setversion(const aValue : UnicodeString);
  95982. begin
  95983. WriteJSPropertyUnicodeString('version',aValue);
  95984. end;
  95985. constructor TJSHTMLHtmlElement.Create;
  95986. begin
  95987. JOBCreate([]);
  95988. end;
  95989. class function TJSHTMLHtmlElement.JSClassName: UnicodeString;
  95990. begin
  95991. Result:='HTMLHtmlElement';
  95992. end;
  95993. class function TJSHTMLHtmlElement.Cast(const Intf: IJSObject): IJSHTMLHtmlElement;
  95994. begin
  95995. Result:=TJSHTMLHtmlElement.JOBCast(Intf);
  95996. end;
  95997. function TJSHTMLHyperlinkElementUtils._Gethref: UnicodeString;
  95998. begin
  95999. Result:=ReadJSPropertyUnicodeString('href');
  96000. end;
  96001. function TJSHTMLHyperlinkElementUtils._Getorigin: UnicodeString;
  96002. begin
  96003. Result:=ReadJSPropertyUnicodeString('origin');
  96004. end;
  96005. function TJSHTMLHyperlinkElementUtils._Getprotocol: UnicodeString;
  96006. begin
  96007. Result:=ReadJSPropertyUnicodeString('protocol');
  96008. end;
  96009. function TJSHTMLHyperlinkElementUtils._Getusername: UnicodeString;
  96010. begin
  96011. Result:=ReadJSPropertyUnicodeString('username');
  96012. end;
  96013. function TJSHTMLHyperlinkElementUtils._Getpassword: UnicodeString;
  96014. begin
  96015. Result:=ReadJSPropertyUnicodeString('password');
  96016. end;
  96017. function TJSHTMLHyperlinkElementUtils._Gethost: UnicodeString;
  96018. begin
  96019. Result:=ReadJSPropertyUnicodeString('host');
  96020. end;
  96021. function TJSHTMLHyperlinkElementUtils._Gethostname: UnicodeString;
  96022. begin
  96023. Result:=ReadJSPropertyUnicodeString('hostname');
  96024. end;
  96025. function TJSHTMLHyperlinkElementUtils._Getport: UnicodeString;
  96026. begin
  96027. Result:=ReadJSPropertyUnicodeString('port');
  96028. end;
  96029. function TJSHTMLHyperlinkElementUtils._Getpathname: UnicodeString;
  96030. begin
  96031. Result:=ReadJSPropertyUnicodeString('pathname');
  96032. end;
  96033. function TJSHTMLHyperlinkElementUtils._Getsearch: UnicodeString;
  96034. begin
  96035. Result:=ReadJSPropertyUnicodeString('search');
  96036. end;
  96037. function TJSHTMLHyperlinkElementUtils._Gethash: UnicodeString;
  96038. begin
  96039. Result:=ReadJSPropertyUnicodeString('hash');
  96040. end;
  96041. procedure TJSHTMLHyperlinkElementUtils._Setprotocol(const aValue : UnicodeString);
  96042. begin
  96043. WriteJSPropertyUnicodeString('protocol',aValue);
  96044. end;
  96045. procedure TJSHTMLHyperlinkElementUtils._Setusername(const aValue : UnicodeString);
  96046. begin
  96047. WriteJSPropertyUnicodeString('username',aValue);
  96048. end;
  96049. procedure TJSHTMLHyperlinkElementUtils._Setpassword(const aValue : UnicodeString);
  96050. begin
  96051. WriteJSPropertyUnicodeString('password',aValue);
  96052. end;
  96053. procedure TJSHTMLHyperlinkElementUtils._Sethost(const aValue : UnicodeString);
  96054. begin
  96055. WriteJSPropertyUnicodeString('host',aValue);
  96056. end;
  96057. procedure TJSHTMLHyperlinkElementUtils._Sethostname(const aValue : UnicodeString);
  96058. begin
  96059. WriteJSPropertyUnicodeString('hostname',aValue);
  96060. end;
  96061. procedure TJSHTMLHyperlinkElementUtils._Setport(const aValue : UnicodeString);
  96062. begin
  96063. WriteJSPropertyUnicodeString('port',aValue);
  96064. end;
  96065. procedure TJSHTMLHyperlinkElementUtils._Setpathname(const aValue : UnicodeString);
  96066. begin
  96067. WriteJSPropertyUnicodeString('pathname',aValue);
  96068. end;
  96069. procedure TJSHTMLHyperlinkElementUtils._Setsearch(const aValue : UnicodeString);
  96070. begin
  96071. WriteJSPropertyUnicodeString('search',aValue);
  96072. end;
  96073. procedure TJSHTMLHyperlinkElementUtils._Sethash(const aValue : UnicodeString);
  96074. begin
  96075. WriteJSPropertyUnicodeString('hash',aValue);
  96076. end;
  96077. class function TJSHTMLHyperlinkElementUtils.JSClassName: UnicodeString;
  96078. begin
  96079. Result:='HTMLHyperlinkElementUtils';
  96080. end;
  96081. class function TJSHTMLHyperlinkElementUtils.Cast(const Intf: IJSObject): IJSHTMLHyperlinkElementUtils;
  96082. begin
  96083. Result:=TJSHTMLHyperlinkElementUtils.JOBCast(Intf);
  96084. end;
  96085. function TJSHTMLIFrameElement._Getsrc: UnicodeString;
  96086. begin
  96087. Result:=ReadJSPropertyUnicodeString('src');
  96088. end;
  96089. function TJSHTMLIFrameElement._Getsrcdoc: UnicodeString;
  96090. begin
  96091. Result:=ReadJSPropertyUnicodeString('srcdoc');
  96092. end;
  96093. function TJSHTMLIFrameElement._Getname: UnicodeString;
  96094. begin
  96095. Result:=ReadJSPropertyUnicodeString('name');
  96096. end;
  96097. function TJSHTMLIFrameElement._Getsandbox: IJSDOMTokenList;
  96098. begin
  96099. Result:=ReadJSPropertyObject('sandbox',TJSDOMTokenList) as IJSDOMTokenList;
  96100. end;
  96101. function TJSHTMLIFrameElement._GetallowFullscreen: Boolean;
  96102. begin
  96103. Result:=ReadJSPropertyBoolean('allowFullscreen');
  96104. end;
  96105. function TJSHTMLIFrameElement._Getwidth: UnicodeString;
  96106. begin
  96107. Result:=ReadJSPropertyUnicodeString('width');
  96108. end;
  96109. function TJSHTMLIFrameElement._Getheight: UnicodeString;
  96110. begin
  96111. Result:=ReadJSPropertyUnicodeString('height');
  96112. end;
  96113. function TJSHTMLIFrameElement._GetreferrerPolicy: UnicodeString;
  96114. begin
  96115. Result:=ReadJSPropertyUnicodeString('referrerPolicy');
  96116. end;
  96117. function TJSHTMLIFrameElement._Getloading: UnicodeString;
  96118. begin
  96119. Result:=ReadJSPropertyUnicodeString('loading');
  96120. end;
  96121. function TJSHTMLIFrameElement._GetcontentDocument: IJSDocument;
  96122. begin
  96123. Result:=ReadJSPropertyObject('contentDocument',TJSDocument) as IJSDocument;
  96124. end;
  96125. function TJSHTMLIFrameElement._GetcontentWindow: IJSWindowProxy;
  96126. begin
  96127. Result:=ReadJSPropertyObject('contentWindow',TJSWindowProxy) as IJSWindowProxy;
  96128. end;
  96129. function TJSHTMLIFrameElement._Getalign: UnicodeString;
  96130. begin
  96131. Result:=ReadJSPropertyUnicodeString('align');
  96132. end;
  96133. function TJSHTMLIFrameElement._Getscrolling: UnicodeString;
  96134. begin
  96135. Result:=ReadJSPropertyUnicodeString('scrolling');
  96136. end;
  96137. function TJSHTMLIFrameElement._GetframeBorder: UnicodeString;
  96138. begin
  96139. Result:=ReadJSPropertyUnicodeString('frameBorder');
  96140. end;
  96141. function TJSHTMLIFrameElement._GetlongDesc: UnicodeString;
  96142. begin
  96143. Result:=ReadJSPropertyUnicodeString('longDesc');
  96144. end;
  96145. function TJSHTMLIFrameElement._GetmarginHeight: UnicodeString;
  96146. begin
  96147. Result:=ReadJSPropertyUnicodeString('marginHeight');
  96148. end;
  96149. function TJSHTMLIFrameElement._GetmarginWidth: UnicodeString;
  96150. begin
  96151. Result:=ReadJSPropertyUnicodeString('marginWidth');
  96152. end;
  96153. function TJSHTMLIFrameElement._GetfeaturePolicy: IJSFeaturePolicy;
  96154. begin
  96155. Result:=ReadJSPropertyObject('featurePolicy',TJSFeaturePolicy) as IJSFeaturePolicy;
  96156. end;
  96157. function TJSHTMLIFrameElement._Getallow: UnicodeString;
  96158. begin
  96159. Result:=ReadJSPropertyUnicodeString('allow');
  96160. end;
  96161. procedure TJSHTMLIFrameElement._Setsrc(const aValue : UnicodeString);
  96162. begin
  96163. WriteJSPropertyUnicodeString('src',aValue);
  96164. end;
  96165. procedure TJSHTMLIFrameElement._Setsrcdoc(const aValue : UnicodeString);
  96166. begin
  96167. WriteJSPropertyUnicodeString('srcdoc',aValue);
  96168. end;
  96169. procedure TJSHTMLIFrameElement._Setname(const aValue : UnicodeString);
  96170. begin
  96171. WriteJSPropertyUnicodeString('name',aValue);
  96172. end;
  96173. procedure TJSHTMLIFrameElement._SetallowFullscreen(const aValue : Boolean);
  96174. begin
  96175. WriteJSPropertyBoolean('allowFullscreen',aValue);
  96176. end;
  96177. procedure TJSHTMLIFrameElement._Setwidth(const aValue : UnicodeString);
  96178. begin
  96179. WriteJSPropertyUnicodeString('width',aValue);
  96180. end;
  96181. procedure TJSHTMLIFrameElement._Setheight(const aValue : UnicodeString);
  96182. begin
  96183. WriteJSPropertyUnicodeString('height',aValue);
  96184. end;
  96185. procedure TJSHTMLIFrameElement._SetreferrerPolicy(const aValue : UnicodeString);
  96186. begin
  96187. WriteJSPropertyUnicodeString('referrerPolicy',aValue);
  96188. end;
  96189. procedure TJSHTMLIFrameElement._Setloading(const aValue : UnicodeString);
  96190. begin
  96191. WriteJSPropertyUnicodeString('loading',aValue);
  96192. end;
  96193. procedure TJSHTMLIFrameElement._Setalign(const aValue : UnicodeString);
  96194. begin
  96195. WriteJSPropertyUnicodeString('align',aValue);
  96196. end;
  96197. procedure TJSHTMLIFrameElement._Setscrolling(const aValue : UnicodeString);
  96198. begin
  96199. WriteJSPropertyUnicodeString('scrolling',aValue);
  96200. end;
  96201. procedure TJSHTMLIFrameElement._SetframeBorder(const aValue : UnicodeString);
  96202. begin
  96203. WriteJSPropertyUnicodeString('frameBorder',aValue);
  96204. end;
  96205. procedure TJSHTMLIFrameElement._SetlongDesc(const aValue : UnicodeString);
  96206. begin
  96207. WriteJSPropertyUnicodeString('longDesc',aValue);
  96208. end;
  96209. procedure TJSHTMLIFrameElement._SetmarginHeight(const aValue : UnicodeString);
  96210. begin
  96211. WriteJSPropertyUnicodeString('marginHeight',aValue);
  96212. end;
  96213. procedure TJSHTMLIFrameElement._SetmarginWidth(const aValue : UnicodeString);
  96214. begin
  96215. WriteJSPropertyUnicodeString('marginWidth',aValue);
  96216. end;
  96217. procedure TJSHTMLIFrameElement._Setallow(const aValue : UnicodeString);
  96218. begin
  96219. WriteJSPropertyUnicodeString('allow',aValue);
  96220. end;
  96221. constructor TJSHTMLIFrameElement.Create;
  96222. begin
  96223. JOBCreate([]);
  96224. end;
  96225. function TJSHTMLIFrameElement.getSVGDocument: IJSDocument;
  96226. begin
  96227. Result:=InvokeJSObjectResult('getSVGDocument',[],TJSDocument) as IJSDocument;
  96228. end;
  96229. class function TJSHTMLIFrameElement.JSClassName: UnicodeString;
  96230. begin
  96231. Result:='HTMLIFrameElement';
  96232. end;
  96233. class function TJSHTMLIFrameElement.Cast(const Intf: IJSObject): IJSHTMLIFrameElement;
  96234. begin
  96235. Result:=TJSHTMLIFrameElement.JOBCast(Intf);
  96236. end;
  96237. class function TJSimgINotificationObserver.JSClassName: UnicodeString;
  96238. begin
  96239. Result:='imgINotificationObserver';
  96240. end;
  96241. class function TJSimgINotificationObserver.Cast(const Intf: IJSObject): IJSimgINotificationObserver;
  96242. begin
  96243. Result:=TJSimgINotificationObserver.JOBCast(Intf);
  96244. end;
  96245. class function TJSimgIRequest.JSClassName: UnicodeString;
  96246. begin
  96247. Result:='imgIRequest';
  96248. end;
  96249. class function TJSimgIRequest.Cast(const Intf: IJSObject): IJSimgIRequest;
  96250. begin
  96251. Result:=TJSimgIRequest.JOBCast(Intf);
  96252. end;
  96253. class function TJSnsIStreamListener.JSClassName: UnicodeString;
  96254. begin
  96255. Result:='nsIStreamListener';
  96256. end;
  96257. class function TJSnsIStreamListener.Cast(const Intf: IJSObject): IJSnsIStreamListener;
  96258. begin
  96259. Result:=TJSnsIStreamListener.JOBCast(Intf);
  96260. end;
  96261. function TJSHTMLImageElement._Getalt: UnicodeString;
  96262. begin
  96263. Result:=ReadJSPropertyUnicodeString('alt');
  96264. end;
  96265. function TJSHTMLImageElement._Getsrc: UnicodeString;
  96266. begin
  96267. Result:=ReadJSPropertyUnicodeString('src');
  96268. end;
  96269. function TJSHTMLImageElement._Getsrcset: UnicodeString;
  96270. begin
  96271. Result:=ReadJSPropertyUnicodeString('srcset');
  96272. end;
  96273. function TJSHTMLImageElement._GetcrossOrigin: UnicodeString;
  96274. begin
  96275. Result:=ReadJSPropertyUnicodeString('crossOrigin');
  96276. end;
  96277. function TJSHTMLImageElement._GetuseMap: UnicodeString;
  96278. begin
  96279. Result:=ReadJSPropertyUnicodeString('useMap');
  96280. end;
  96281. function TJSHTMLImageElement._GetreferrerPolicy: UnicodeString;
  96282. begin
  96283. Result:=ReadJSPropertyUnicodeString('referrerPolicy');
  96284. end;
  96285. function TJSHTMLImageElement._GetisMap: Boolean;
  96286. begin
  96287. Result:=ReadJSPropertyBoolean('isMap');
  96288. end;
  96289. function TJSHTMLImageElement._Getwidth: Cardinal;
  96290. begin
  96291. Result:=ReadJSPropertyInt64('width');
  96292. end;
  96293. function TJSHTMLImageElement._Getheight: Cardinal;
  96294. begin
  96295. Result:=ReadJSPropertyInt64('height');
  96296. end;
  96297. function TJSHTMLImageElement._Getdecoding: UnicodeString;
  96298. begin
  96299. Result:=ReadJSPropertyUnicodeString('decoding');
  96300. end;
  96301. function TJSHTMLImageElement._Getloading: UnicodeString;
  96302. begin
  96303. Result:=ReadJSPropertyUnicodeString('loading');
  96304. end;
  96305. function TJSHTMLImageElement._GetfetchPriority: UnicodeString;
  96306. begin
  96307. Result:=ReadJSPropertyUnicodeString('fetchPriority');
  96308. end;
  96309. function TJSHTMLImageElement._GetnaturalWidth: Cardinal;
  96310. begin
  96311. Result:=ReadJSPropertyInt64('naturalWidth');
  96312. end;
  96313. function TJSHTMLImageElement._GetnaturalHeight: Cardinal;
  96314. begin
  96315. Result:=ReadJSPropertyInt64('naturalHeight');
  96316. end;
  96317. function TJSHTMLImageElement._Getcomplete: Boolean;
  96318. begin
  96319. Result:=ReadJSPropertyBoolean('complete');
  96320. end;
  96321. function TJSHTMLImageElement._Getname: UnicodeString;
  96322. begin
  96323. Result:=ReadJSPropertyUnicodeString('name');
  96324. end;
  96325. function TJSHTMLImageElement._Getalign: UnicodeString;
  96326. begin
  96327. Result:=ReadJSPropertyUnicodeString('align');
  96328. end;
  96329. function TJSHTMLImageElement._Gethspace: Cardinal;
  96330. begin
  96331. Result:=ReadJSPropertyInt64('hspace');
  96332. end;
  96333. function TJSHTMLImageElement._Getvspace: Cardinal;
  96334. begin
  96335. Result:=ReadJSPropertyInt64('vspace');
  96336. end;
  96337. function TJSHTMLImageElement._GetlongDesc: UnicodeString;
  96338. begin
  96339. Result:=ReadJSPropertyUnicodeString('longDesc');
  96340. end;
  96341. function TJSHTMLImageElement._Getborder: UnicodeString;
  96342. begin
  96343. Result:=ReadJSPropertyUnicodeString('border');
  96344. end;
  96345. function TJSHTMLImageElement._Getsizes: UnicodeString;
  96346. begin
  96347. Result:=ReadJSPropertyUnicodeString('sizes');
  96348. end;
  96349. function TJSHTMLImageElement._GetcurrentSrc: UnicodeString;
  96350. begin
  96351. Result:=ReadJSPropertyUnicodeString('currentSrc');
  96352. end;
  96353. function TJSHTMLImageElement._Getlowsrc: UnicodeString;
  96354. begin
  96355. Result:=ReadJSPropertyUnicodeString('lowsrc');
  96356. end;
  96357. function TJSHTMLImageElement._Getx: LongInt;
  96358. begin
  96359. Result:=ReadJSPropertyLongInt('x');
  96360. end;
  96361. function TJSHTMLImageElement._Gety: LongInt;
  96362. begin
  96363. Result:=ReadJSPropertyLongInt('y');
  96364. end;
  96365. procedure TJSHTMLImageElement._Setalt(const aValue : UnicodeString);
  96366. begin
  96367. WriteJSPropertyUnicodeString('alt',aValue);
  96368. end;
  96369. procedure TJSHTMLImageElement._Setsrc(const aValue : UnicodeString);
  96370. begin
  96371. WriteJSPropertyUnicodeString('src',aValue);
  96372. end;
  96373. procedure TJSHTMLImageElement._Setsrcset(const aValue : UnicodeString);
  96374. begin
  96375. WriteJSPropertyUnicodeString('srcset',aValue);
  96376. end;
  96377. procedure TJSHTMLImageElement._SetcrossOrigin(const aValue : UnicodeString);
  96378. begin
  96379. WriteJSPropertyUnicodeString('crossOrigin',aValue);
  96380. end;
  96381. procedure TJSHTMLImageElement._SetuseMap(const aValue : UnicodeString);
  96382. begin
  96383. WriteJSPropertyUnicodeString('useMap',aValue);
  96384. end;
  96385. procedure TJSHTMLImageElement._SetreferrerPolicy(const aValue : UnicodeString);
  96386. begin
  96387. WriteJSPropertyUnicodeString('referrerPolicy',aValue);
  96388. end;
  96389. procedure TJSHTMLImageElement._SetisMap(const aValue : Boolean);
  96390. begin
  96391. WriteJSPropertyBoolean('isMap',aValue);
  96392. end;
  96393. procedure TJSHTMLImageElement._Setwidth(const aValue : Cardinal);
  96394. begin
  96395. WriteJSPropertyDouble('width',aValue);
  96396. end;
  96397. procedure TJSHTMLImageElement._Setheight(const aValue : Cardinal);
  96398. begin
  96399. WriteJSPropertyDouble('height',aValue);
  96400. end;
  96401. procedure TJSHTMLImageElement._Setdecoding(const aValue : UnicodeString);
  96402. begin
  96403. WriteJSPropertyUnicodeString('decoding',aValue);
  96404. end;
  96405. procedure TJSHTMLImageElement._Setloading(const aValue : UnicodeString);
  96406. begin
  96407. WriteJSPropertyUnicodeString('loading',aValue);
  96408. end;
  96409. procedure TJSHTMLImageElement._SetfetchPriority(const aValue : UnicodeString);
  96410. begin
  96411. WriteJSPropertyUnicodeString('fetchPriority',aValue);
  96412. end;
  96413. procedure TJSHTMLImageElement._Setname(const aValue : UnicodeString);
  96414. begin
  96415. WriteJSPropertyUnicodeString('name',aValue);
  96416. end;
  96417. procedure TJSHTMLImageElement._Setalign(const aValue : UnicodeString);
  96418. begin
  96419. WriteJSPropertyUnicodeString('align',aValue);
  96420. end;
  96421. procedure TJSHTMLImageElement._Sethspace(const aValue : Cardinal);
  96422. begin
  96423. WriteJSPropertyDouble('hspace',aValue);
  96424. end;
  96425. procedure TJSHTMLImageElement._Setvspace(const aValue : Cardinal);
  96426. begin
  96427. WriteJSPropertyDouble('vspace',aValue);
  96428. end;
  96429. procedure TJSHTMLImageElement._SetlongDesc(const aValue : UnicodeString);
  96430. begin
  96431. WriteJSPropertyUnicodeString('longDesc',aValue);
  96432. end;
  96433. procedure TJSHTMLImageElement._Setborder(const aValue : UnicodeString);
  96434. begin
  96435. WriteJSPropertyUnicodeString('border',aValue);
  96436. end;
  96437. procedure TJSHTMLImageElement._Setsizes(const aValue : UnicodeString);
  96438. begin
  96439. WriteJSPropertyUnicodeString('sizes',aValue);
  96440. end;
  96441. procedure TJSHTMLImageElement._Setlowsrc(const aValue : UnicodeString);
  96442. begin
  96443. WriteJSPropertyUnicodeString('lowsrc',aValue);
  96444. end;
  96445. constructor TJSHTMLImageElement.Create;
  96446. begin
  96447. JOBCreate([]);
  96448. end;
  96449. function TJSHTMLImageElement.decode: IJSPromise; // Promise<undefined>
  96450. begin
  96451. Result:=InvokeJSObjectResult('decode',[],TJSPromise) as IJSPromise;
  96452. end;
  96453. class function TJSHTMLImageElement.JSClassName: UnicodeString;
  96454. begin
  96455. Result:='HTMLImageElement';
  96456. end;
  96457. class function TJSHTMLImageElement.Cast(const Intf: IJSObject): IJSHTMLImageElement;
  96458. begin
  96459. Result:=TJSHTMLImageElement.JOBCast(Intf);
  96460. end;
  96461. class function TJSMozImageLoadingContent.JSClassName: UnicodeString;
  96462. begin
  96463. Result:='MozImageLoadingContent';
  96464. end;
  96465. class function TJSMozImageLoadingContent.Cast(const Intf: IJSObject): IJSMozImageLoadingContent;
  96466. begin
  96467. Result:=TJSMozImageLoadingContent.JOBCast(Intf);
  96468. end;
  96469. class function TJSXULControllers.JSClassName: UnicodeString;
  96470. begin
  96471. Result:='XULControllers';
  96472. end;
  96473. class function TJSXULControllers.Cast(const Intf: IJSObject): IJSXULControllers;
  96474. begin
  96475. Result:=TJSXULControllers.JOBCast(Intf);
  96476. end;
  96477. function TJSHTMLInputElement._Getaccept: UnicodeString;
  96478. begin
  96479. Result:=ReadJSPropertyUnicodeString('accept');
  96480. end;
  96481. function TJSHTMLInputElement._Getalt: UnicodeString;
  96482. begin
  96483. Result:=ReadJSPropertyUnicodeString('alt');
  96484. end;
  96485. function TJSHTMLInputElement._Getautocomplete: UnicodeString;
  96486. begin
  96487. Result:=ReadJSPropertyUnicodeString('autocomplete');
  96488. end;
  96489. function TJSHTMLInputElement._Getcapture: UnicodeString;
  96490. begin
  96491. Result:=ReadJSPropertyUnicodeString('capture');
  96492. end;
  96493. function TJSHTMLInputElement._GetdefaultChecked: Boolean;
  96494. begin
  96495. Result:=ReadJSPropertyBoolean('defaultChecked');
  96496. end;
  96497. function TJSHTMLInputElement._Getchecked: Boolean;
  96498. begin
  96499. Result:=ReadJSPropertyBoolean('checked');
  96500. end;
  96501. function TJSHTMLInputElement._GetdirName: UnicodeString;
  96502. begin
  96503. Result:=ReadJSPropertyUnicodeString('dirName');
  96504. end;
  96505. function TJSHTMLInputElement._Getdisabled: Boolean;
  96506. begin
  96507. Result:=ReadJSPropertyBoolean('disabled');
  96508. end;
  96509. function TJSHTMLInputElement._Getform: IJSHTMLFormElement;
  96510. begin
  96511. Result:=ReadJSPropertyObject('form',TJSHTMLFormElement) as IJSHTMLFormElement;
  96512. end;
  96513. function TJSHTMLInputElement._Getfiles: IJSFileList;
  96514. begin
  96515. Result:=ReadJSPropertyObject('files',TJSFileList) as IJSFileList;
  96516. end;
  96517. function TJSHTMLInputElement._GetformAction: UnicodeString;
  96518. begin
  96519. Result:=ReadJSPropertyUnicodeString('formAction');
  96520. end;
  96521. function TJSHTMLInputElement._GetformEnctype: UnicodeString;
  96522. begin
  96523. Result:=ReadJSPropertyUnicodeString('formEnctype');
  96524. end;
  96525. function TJSHTMLInputElement._GetformMethod: UnicodeString;
  96526. begin
  96527. Result:=ReadJSPropertyUnicodeString('formMethod');
  96528. end;
  96529. function TJSHTMLInputElement._GetformNoValidate: Boolean;
  96530. begin
  96531. Result:=ReadJSPropertyBoolean('formNoValidate');
  96532. end;
  96533. function TJSHTMLInputElement._GetformTarget: UnicodeString;
  96534. begin
  96535. Result:=ReadJSPropertyUnicodeString('formTarget');
  96536. end;
  96537. function TJSHTMLInputElement._Getheight: Cardinal;
  96538. begin
  96539. Result:=ReadJSPropertyInt64('height');
  96540. end;
  96541. function TJSHTMLInputElement._Getindeterminate: Boolean;
  96542. begin
  96543. Result:=ReadJSPropertyBoolean('indeterminate');
  96544. end;
  96545. function TJSHTMLInputElement._Getlist: IJSHTMLDataListElement;
  96546. begin
  96547. Result:=ReadJSPropertyObject('list',TJSHTMLDataListElement) as IJSHTMLDataListElement;
  96548. end;
  96549. function TJSHTMLInputElement._Getmax: UnicodeString;
  96550. begin
  96551. Result:=ReadJSPropertyUnicodeString('max');
  96552. end;
  96553. function TJSHTMLInputElement._GetmaxLength: LongInt;
  96554. begin
  96555. Result:=ReadJSPropertyLongInt('maxLength');
  96556. end;
  96557. function TJSHTMLInputElement._Getmin: UnicodeString;
  96558. begin
  96559. Result:=ReadJSPropertyUnicodeString('min');
  96560. end;
  96561. function TJSHTMLInputElement._GetminLength: LongInt;
  96562. begin
  96563. Result:=ReadJSPropertyLongInt('minLength');
  96564. end;
  96565. function TJSHTMLInputElement._Getmultiple: Boolean;
  96566. begin
  96567. Result:=ReadJSPropertyBoolean('multiple');
  96568. end;
  96569. function TJSHTMLInputElement._Getname: UnicodeString;
  96570. begin
  96571. Result:=ReadJSPropertyUnicodeString('name');
  96572. end;
  96573. function TJSHTMLInputElement._Getpattern: UnicodeString;
  96574. begin
  96575. Result:=ReadJSPropertyUnicodeString('pattern');
  96576. end;
  96577. function TJSHTMLInputElement._Getplaceholder: UnicodeString;
  96578. begin
  96579. Result:=ReadJSPropertyUnicodeString('placeholder');
  96580. end;
  96581. function TJSHTMLInputElement._GetreadOnly: Boolean;
  96582. begin
  96583. Result:=ReadJSPropertyBoolean('readOnly');
  96584. end;
  96585. function TJSHTMLInputElement._Getrequired: Boolean;
  96586. begin
  96587. Result:=ReadJSPropertyBoolean('required');
  96588. end;
  96589. function TJSHTMLInputElement._Getsize: Cardinal;
  96590. begin
  96591. Result:=ReadJSPropertyInt64('size');
  96592. end;
  96593. function TJSHTMLInputElement._Getsrc: UnicodeString;
  96594. begin
  96595. Result:=ReadJSPropertyUnicodeString('src');
  96596. end;
  96597. function TJSHTMLInputElement._Getstep: UnicodeString;
  96598. begin
  96599. Result:=ReadJSPropertyUnicodeString('step');
  96600. end;
  96601. function TJSHTMLInputElement._Gettype_: UnicodeString;
  96602. begin
  96603. Result:=ReadJSPropertyUnicodeString('type');
  96604. end;
  96605. function TJSHTMLInputElement._GetdefaultValue: UnicodeString;
  96606. begin
  96607. Result:=ReadJSPropertyUnicodeString('defaultValue');
  96608. end;
  96609. function TJSHTMLInputElement._Getvalue: UnicodeString;
  96610. begin
  96611. Result:=ReadJSPropertyUnicodeString('value');
  96612. end;
  96613. function TJSHTMLInputElement._GetvalueAsDate: IJSObject;
  96614. begin
  96615. Result:=ReadJSPropertyObject('valueAsDate',TJSObject) as IJSObject;
  96616. end;
  96617. function TJSHTMLInputElement._GetvalueAsNumber: Double;
  96618. begin
  96619. Result:=ReadJSPropertyDouble('valueAsNumber');
  96620. end;
  96621. function TJSHTMLInputElement._Getwidth: Cardinal;
  96622. begin
  96623. Result:=ReadJSPropertyInt64('width');
  96624. end;
  96625. function TJSHTMLInputElement._GetwillValidate: Boolean;
  96626. begin
  96627. Result:=ReadJSPropertyBoolean('willValidate');
  96628. end;
  96629. function TJSHTMLInputElement._Getvalidity: IJSValidityState;
  96630. begin
  96631. Result:=ReadJSPropertyObject('validity',TJSValidityState) as IJSValidityState;
  96632. end;
  96633. function TJSHTMLInputElement._GetvalidationMessage: UnicodeString;
  96634. begin
  96635. Result:=ReadJSPropertyUnicodeString('validationMessage');
  96636. end;
  96637. function TJSHTMLInputElement._Getlabels: IJSNodeList;
  96638. begin
  96639. Result:=ReadJSPropertyObject('labels',TJSNodeList) as IJSNodeList;
  96640. end;
  96641. function TJSHTMLInputElement._GetselectionStart: Cardinal;
  96642. begin
  96643. Result:=ReadJSPropertyInt64('selectionStart');
  96644. end;
  96645. function TJSHTMLInputElement._GetselectionEnd: Cardinal;
  96646. begin
  96647. Result:=ReadJSPropertyInt64('selectionEnd');
  96648. end;
  96649. function TJSHTMLInputElement._GetselectionDirection: UnicodeString;
  96650. begin
  96651. Result:=ReadJSPropertyUnicodeString('selectionDirection');
  96652. end;
  96653. function TJSHTMLInputElement._Getalign: UnicodeString;
  96654. begin
  96655. Result:=ReadJSPropertyUnicodeString('align');
  96656. end;
  96657. function TJSHTMLInputElement._GetuseMap: UnicodeString;
  96658. begin
  96659. Result:=ReadJSPropertyUnicodeString('useMap');
  96660. end;
  96661. function TJSHTMLInputElement._GettextLength: LongInt;
  96662. begin
  96663. Result:=ReadJSPropertyLongInt('textLength');
  96664. end;
  96665. function TJSHTMLInputElement._GetwebkitEntries: TJSFileSystemEntryDynArray;
  96666. begin
  96667. Result:=ReadJSPropertyObject('webkitEntries',TJSArray) as TJSFileSystemEntryDynArray;
  96668. end;
  96669. function TJSHTMLInputElement._Getwebkitdirectory: Boolean;
  96670. begin
  96671. Result:=ReadJSPropertyBoolean('webkitdirectory');
  96672. end;
  96673. function TJSHTMLInputElement._GetpopoverTargetElement: IJSElement;
  96674. begin
  96675. Result:=ReadJSPropertyObject('popoverTargetElement',TJSElement) as IJSElement;
  96676. end;
  96677. function TJSHTMLInputElement._GetpopoverTargetAction: UnicodeString;
  96678. begin
  96679. Result:=ReadJSPropertyUnicodeString('popoverTargetAction');
  96680. end;
  96681. function TJSHTMLInputElement._GetinvokeTargetElement: IJSElement;
  96682. begin
  96683. Result:=ReadJSPropertyObject('invokeTargetElement',TJSElement) as IJSElement;
  96684. end;
  96685. function TJSHTMLInputElement._GetinvokeAction: UnicodeString;
  96686. begin
  96687. Result:=ReadJSPropertyUnicodeString('invokeAction');
  96688. end;
  96689. procedure TJSHTMLInputElement._Setaccept(const aValue : UnicodeString);
  96690. begin
  96691. WriteJSPropertyUnicodeString('accept',aValue);
  96692. end;
  96693. procedure TJSHTMLInputElement._Setalt(const aValue : UnicodeString);
  96694. begin
  96695. WriteJSPropertyUnicodeString('alt',aValue);
  96696. end;
  96697. procedure TJSHTMLInputElement._Setautocomplete(const aValue : UnicodeString);
  96698. begin
  96699. WriteJSPropertyUnicodeString('autocomplete',aValue);
  96700. end;
  96701. procedure TJSHTMLInputElement._Setcapture(const aValue : UnicodeString);
  96702. begin
  96703. WriteJSPropertyUnicodeString('capture',aValue);
  96704. end;
  96705. procedure TJSHTMLInputElement._SetdefaultChecked(const aValue : Boolean);
  96706. begin
  96707. WriteJSPropertyBoolean('defaultChecked',aValue);
  96708. end;
  96709. procedure TJSHTMLInputElement._Setchecked(const aValue : Boolean);
  96710. begin
  96711. WriteJSPropertyBoolean('checked',aValue);
  96712. end;
  96713. procedure TJSHTMLInputElement._SetdirName(const aValue : UnicodeString);
  96714. begin
  96715. WriteJSPropertyUnicodeString('dirName',aValue);
  96716. end;
  96717. procedure TJSHTMLInputElement._Setdisabled(const aValue : Boolean);
  96718. begin
  96719. WriteJSPropertyBoolean('disabled',aValue);
  96720. end;
  96721. procedure TJSHTMLInputElement._Setfiles(const aValue : IJSFileList);
  96722. begin
  96723. WriteJSPropertyObject('files',aValue);
  96724. end;
  96725. procedure TJSHTMLInputElement._SetformAction(const aValue : UnicodeString);
  96726. begin
  96727. WriteJSPropertyUnicodeString('formAction',aValue);
  96728. end;
  96729. procedure TJSHTMLInputElement._SetformEnctype(const aValue : UnicodeString);
  96730. begin
  96731. WriteJSPropertyUnicodeString('formEnctype',aValue);
  96732. end;
  96733. procedure TJSHTMLInputElement._SetformMethod(const aValue : UnicodeString);
  96734. begin
  96735. WriteJSPropertyUnicodeString('formMethod',aValue);
  96736. end;
  96737. procedure TJSHTMLInputElement._SetformNoValidate(const aValue : Boolean);
  96738. begin
  96739. WriteJSPropertyBoolean('formNoValidate',aValue);
  96740. end;
  96741. procedure TJSHTMLInputElement._SetformTarget(const aValue : UnicodeString);
  96742. begin
  96743. WriteJSPropertyUnicodeString('formTarget',aValue);
  96744. end;
  96745. procedure TJSHTMLInputElement._Setheight(const aValue : Cardinal);
  96746. begin
  96747. WriteJSPropertyDouble('height',aValue);
  96748. end;
  96749. procedure TJSHTMLInputElement._Setindeterminate(const aValue : Boolean);
  96750. begin
  96751. WriteJSPropertyBoolean('indeterminate',aValue);
  96752. end;
  96753. procedure TJSHTMLInputElement._Setmax(const aValue : UnicodeString);
  96754. begin
  96755. WriteJSPropertyUnicodeString('max',aValue);
  96756. end;
  96757. procedure TJSHTMLInputElement._SetmaxLength(const aValue : LongInt);
  96758. begin
  96759. WriteJSPropertyLongInt('maxLength',aValue);
  96760. end;
  96761. procedure TJSHTMLInputElement._Setmin(const aValue : UnicodeString);
  96762. begin
  96763. WriteJSPropertyUnicodeString('min',aValue);
  96764. end;
  96765. procedure TJSHTMLInputElement._SetminLength(const aValue : LongInt);
  96766. begin
  96767. WriteJSPropertyLongInt('minLength',aValue);
  96768. end;
  96769. procedure TJSHTMLInputElement._Setmultiple(const aValue : Boolean);
  96770. begin
  96771. WriteJSPropertyBoolean('multiple',aValue);
  96772. end;
  96773. procedure TJSHTMLInputElement._Setname(const aValue : UnicodeString);
  96774. begin
  96775. WriteJSPropertyUnicodeString('name',aValue);
  96776. end;
  96777. procedure TJSHTMLInputElement._Setpattern(const aValue : UnicodeString);
  96778. begin
  96779. WriteJSPropertyUnicodeString('pattern',aValue);
  96780. end;
  96781. procedure TJSHTMLInputElement._Setplaceholder(const aValue : UnicodeString);
  96782. begin
  96783. WriteJSPropertyUnicodeString('placeholder',aValue);
  96784. end;
  96785. procedure TJSHTMLInputElement._SetreadOnly(const aValue : Boolean);
  96786. begin
  96787. WriteJSPropertyBoolean('readOnly',aValue);
  96788. end;
  96789. procedure TJSHTMLInputElement._Setrequired(const aValue : Boolean);
  96790. begin
  96791. WriteJSPropertyBoolean('required',aValue);
  96792. end;
  96793. procedure TJSHTMLInputElement._Setsize(const aValue : Cardinal);
  96794. begin
  96795. WriteJSPropertyDouble('size',aValue);
  96796. end;
  96797. procedure TJSHTMLInputElement._Setsrc(const aValue : UnicodeString);
  96798. begin
  96799. WriteJSPropertyUnicodeString('src',aValue);
  96800. end;
  96801. procedure TJSHTMLInputElement._Setstep(const aValue : UnicodeString);
  96802. begin
  96803. WriteJSPropertyUnicodeString('step',aValue);
  96804. end;
  96805. procedure TJSHTMLInputElement._Settype_(const aValue : UnicodeString);
  96806. begin
  96807. WriteJSPropertyUnicodeString('type',aValue);
  96808. end;
  96809. procedure TJSHTMLInputElement._SetdefaultValue(const aValue : UnicodeString);
  96810. begin
  96811. WriteJSPropertyUnicodeString('defaultValue',aValue);
  96812. end;
  96813. procedure TJSHTMLInputElement._Setvalue(const aValue : UnicodeString);
  96814. begin
  96815. WriteJSPropertyUnicodeString('value',aValue);
  96816. end;
  96817. procedure TJSHTMLInputElement._SetvalueAsDate(const aValue : IJSObject);
  96818. begin
  96819. WriteJSPropertyObject('valueAsDate',aValue);
  96820. end;
  96821. procedure TJSHTMLInputElement._SetvalueAsNumber(const aValue : Double);
  96822. begin
  96823. WriteJSPropertyDouble('valueAsNumber',aValue);
  96824. end;
  96825. procedure TJSHTMLInputElement._Setwidth(const aValue : Cardinal);
  96826. begin
  96827. WriteJSPropertyDouble('width',aValue);
  96828. end;
  96829. procedure TJSHTMLInputElement._SetselectionStart(const aValue : Cardinal);
  96830. begin
  96831. WriteJSPropertyDouble('selectionStart',aValue);
  96832. end;
  96833. procedure TJSHTMLInputElement._SetselectionEnd(const aValue : Cardinal);
  96834. begin
  96835. WriteJSPropertyDouble('selectionEnd',aValue);
  96836. end;
  96837. procedure TJSHTMLInputElement._SetselectionDirection(const aValue : UnicodeString);
  96838. begin
  96839. WriteJSPropertyUnicodeString('selectionDirection',aValue);
  96840. end;
  96841. procedure TJSHTMLInputElement._Setalign(const aValue : UnicodeString);
  96842. begin
  96843. WriteJSPropertyUnicodeString('align',aValue);
  96844. end;
  96845. procedure TJSHTMLInputElement._SetuseMap(const aValue : UnicodeString);
  96846. begin
  96847. WriteJSPropertyUnicodeString('useMap',aValue);
  96848. end;
  96849. procedure TJSHTMLInputElement._Setwebkitdirectory(const aValue : Boolean);
  96850. begin
  96851. WriteJSPropertyBoolean('webkitdirectory',aValue);
  96852. end;
  96853. procedure TJSHTMLInputElement._SetpopoverTargetElement(const aValue : IJSElement);
  96854. begin
  96855. WriteJSPropertyObject('popoverTargetElement',aValue);
  96856. end;
  96857. procedure TJSHTMLInputElement._SetpopoverTargetAction(const aValue : UnicodeString);
  96858. begin
  96859. WriteJSPropertyUnicodeString('popoverTargetAction',aValue);
  96860. end;
  96861. procedure TJSHTMLInputElement._SetinvokeTargetElement(const aValue : IJSElement);
  96862. begin
  96863. WriteJSPropertyObject('invokeTargetElement',aValue);
  96864. end;
  96865. procedure TJSHTMLInputElement._SetinvokeAction(const aValue : UnicodeString);
  96866. begin
  96867. WriteJSPropertyUnicodeString('invokeAction',aValue);
  96868. end;
  96869. constructor TJSHTMLInputElement.Create;
  96870. begin
  96871. JOBCreate([]);
  96872. end;
  96873. procedure TJSHTMLInputElement.stepUp(aN: LongInt);
  96874. begin
  96875. InvokeJSNoResult('stepUp',[aN]);
  96876. end;
  96877. procedure TJSHTMLInputElement.stepUp;
  96878. begin
  96879. InvokeJSNoResult('stepUp',[]);
  96880. end;
  96881. procedure TJSHTMLInputElement.stepDown(aN: LongInt);
  96882. begin
  96883. InvokeJSNoResult('stepDown',[aN]);
  96884. end;
  96885. procedure TJSHTMLInputElement.stepDown;
  96886. begin
  96887. InvokeJSNoResult('stepDown',[]);
  96888. end;
  96889. function TJSHTMLInputElement.checkValidity: Boolean;
  96890. begin
  96891. Result:=InvokeJSBooleanResult('checkValidity',[]);
  96892. end;
  96893. function TJSHTMLInputElement.reportValidity: Boolean;
  96894. begin
  96895. Result:=InvokeJSBooleanResult('reportValidity',[]);
  96896. end;
  96897. procedure TJSHTMLInputElement.setCustomValidity(const aError: UnicodeString);
  96898. begin
  96899. InvokeJSNoResult('setCustomValidity',[aError]);
  96900. end;
  96901. procedure TJSHTMLInputElement.select;
  96902. begin
  96903. InvokeJSNoResult('select',[]);
  96904. end;
  96905. procedure TJSHTMLInputElement.setRangeText(const aReplacement: UnicodeString);
  96906. begin
  96907. InvokeJSNoResult('setRangeText',[aReplacement]);
  96908. end;
  96909. procedure TJSHTMLInputElement.setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal; aSelectionMode: TSelectionMode);
  96910. begin
  96911. InvokeJSNoResult('setRangeText',[aReplacement,aStart,aEnd_,aSelectionMode]);
  96912. end;
  96913. procedure TJSHTMLInputElement.setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal);
  96914. begin
  96915. InvokeJSNoResult('setRangeText',[aReplacement,aStart,aEnd_]);
  96916. end;
  96917. procedure TJSHTMLInputElement.setSelectionRange(aStart: Cardinal; aEnd_: Cardinal; const aDirection: UnicodeString);
  96918. begin
  96919. InvokeJSNoResult('setSelectionRange',[aStart,aEnd_,aDirection]);
  96920. end;
  96921. procedure TJSHTMLInputElement.setSelectionRange(aStart: Cardinal; aEnd_: Cardinal);
  96922. begin
  96923. InvokeJSNoResult('setSelectionRange',[aStart,aEnd_]);
  96924. end;
  96925. procedure TJSHTMLInputElement.showPicker;
  96926. begin
  96927. InvokeJSNoResult('showPicker',[]);
  96928. end;
  96929. function TJSHTMLInputElement.mozIsTextField(aAExcludePassword: Boolean): Boolean;
  96930. begin
  96931. Result:=InvokeJSBooleanResult('mozIsTextField',[aAExcludePassword]);
  96932. end;
  96933. procedure TJSHTMLInputElement.openDateTimePicker(const aInitialValue: TJSDateTimeValue);
  96934. begin
  96935. InvokeJSNoResult('openDateTimePicker',[aInitialValue]);
  96936. end;
  96937. procedure TJSHTMLInputElement.openDateTimePicker;
  96938. begin
  96939. InvokeJSNoResult('openDateTimePicker',[]);
  96940. end;
  96941. procedure TJSHTMLInputElement.updateDateTimePicker(const aValue: TJSDateTimeValue);
  96942. begin
  96943. InvokeJSNoResult('updateDateTimePicker',[aValue]);
  96944. end;
  96945. procedure TJSHTMLInputElement.updateDateTimePicker;
  96946. begin
  96947. InvokeJSNoResult('updateDateTimePicker',[]);
  96948. end;
  96949. procedure TJSHTMLInputElement.closeDateTimePicker;
  96950. begin
  96951. InvokeJSNoResult('closeDateTimePicker',[]);
  96952. end;
  96953. procedure TJSHTMLInputElement.setFocusState(aAIsFocused: Boolean);
  96954. begin
  96955. InvokeJSNoResult('setFocusState',[aAIsFocused]);
  96956. end;
  96957. procedure TJSHTMLInputElement.updateValidityState;
  96958. begin
  96959. InvokeJSNoResult('updateValidityState',[]);
  96960. end;
  96961. function TJSHTMLInputElement.getStep: Double;
  96962. begin
  96963. Result:=InvokeJSDoubleResult('getStep',[]);
  96964. end;
  96965. function TJSHTMLInputElement.getStepBase: Double;
  96966. begin
  96967. Result:=InvokeJSDoubleResult('getStepBase',[]);
  96968. end;
  96969. procedure TJSHTMLInputElement.setUserInput(const aInput: UnicodeString);
  96970. begin
  96971. InvokeJSNoResult('setUserInput',[aInput]);
  96972. end;
  96973. class function TJSHTMLInputElement.JSClassName: UnicodeString;
  96974. begin
  96975. Result:='HTMLInputElement';
  96976. end;
  96977. class function TJSHTMLInputElement.Cast(const Intf: IJSObject): IJSHTMLInputElement;
  96978. begin
  96979. Result:=TJSHTMLInputElement.JOBCast(Intf);
  96980. end;
  96981. procedure TJSMozEditableElement.setUserInput(const aInput: UnicodeString);
  96982. begin
  96983. InvokeJSNoResult('setUserInput',[aInput]);
  96984. end;
  96985. class function TJSMozEditableElement.JSClassName: UnicodeString;
  96986. begin
  96987. Result:='MozEditableElement';
  96988. end;
  96989. class function TJSMozEditableElement.Cast(const Intf: IJSObject): IJSMozEditableElement;
  96990. begin
  96991. Result:=TJSMozEditableElement.JOBCast(Intf);
  96992. end;
  96993. function TJSDateTimeValue._Gethour: LongInt;
  96994. begin
  96995. Result:=ReadJSPropertyLongInt('hour');
  96996. end;
  96997. function TJSDateTimeValue._Getminute: LongInt;
  96998. begin
  96999. Result:=ReadJSPropertyLongInt('minute');
  97000. end;
  97001. function TJSDateTimeValue._Getyear: LongInt;
  97002. begin
  97003. Result:=ReadJSPropertyLongInt('year');
  97004. end;
  97005. function TJSDateTimeValue._Getmonth: LongInt;
  97006. begin
  97007. Result:=ReadJSPropertyLongInt('month');
  97008. end;
  97009. function TJSDateTimeValue._Getday: LongInt;
  97010. begin
  97011. Result:=ReadJSPropertyLongInt('day');
  97012. end;
  97013. procedure TJSDateTimeValue._Sethour(const aValue : LongInt);
  97014. begin
  97015. WriteJSPropertyLongInt('hour',aValue);
  97016. end;
  97017. procedure TJSDateTimeValue._Setminute(const aValue : LongInt);
  97018. begin
  97019. WriteJSPropertyLongInt('minute',aValue);
  97020. end;
  97021. procedure TJSDateTimeValue._Setyear(const aValue : LongInt);
  97022. begin
  97023. WriteJSPropertyLongInt('year',aValue);
  97024. end;
  97025. procedure TJSDateTimeValue._Setmonth(const aValue : LongInt);
  97026. begin
  97027. WriteJSPropertyLongInt('month',aValue);
  97028. end;
  97029. procedure TJSDateTimeValue._Setday(const aValue : LongInt);
  97030. begin
  97031. WriteJSPropertyLongInt('day',aValue);
  97032. end;
  97033. class function TJSDateTimeValue.JSClassName: UnicodeString;
  97034. begin
  97035. Result:='Object';
  97036. end;
  97037. class function TJSDateTimeValue.Cast(const Intf: IJSObject): IJSDateTimeValue;
  97038. begin
  97039. Result:=TJSDateTimeValue.JOBCast(Intf);
  97040. end;
  97041. function TJSHTMLLabelElement._Getform: IJSHTMLFormElement;
  97042. begin
  97043. Result:=ReadJSPropertyObject('form',TJSHTMLFormElement) as IJSHTMLFormElement;
  97044. end;
  97045. function TJSHTMLLabelElement._GethtmlFor: UnicodeString;
  97046. begin
  97047. Result:=ReadJSPropertyUnicodeString('htmlFor');
  97048. end;
  97049. function TJSHTMLLabelElement._Getcontrol: IJSHTMLElement;
  97050. begin
  97051. Result:=ReadJSPropertyObject('control',TJSHTMLElement) as IJSHTMLElement;
  97052. end;
  97053. procedure TJSHTMLLabelElement._SethtmlFor(const aValue : UnicodeString);
  97054. begin
  97055. WriteJSPropertyUnicodeString('htmlFor',aValue);
  97056. end;
  97057. constructor TJSHTMLLabelElement.Create;
  97058. begin
  97059. JOBCreate([]);
  97060. end;
  97061. class function TJSHTMLLabelElement.JSClassName: UnicodeString;
  97062. begin
  97063. Result:='HTMLLabelElement';
  97064. end;
  97065. class function TJSHTMLLabelElement.Cast(const Intf: IJSObject): IJSHTMLLabelElement;
  97066. begin
  97067. Result:=TJSHTMLLabelElement.JOBCast(Intf);
  97068. end;
  97069. function TJSHTMLLegendElement._Getform: IJSHTMLFormElement;
  97070. begin
  97071. Result:=ReadJSPropertyObject('form',TJSHTMLFormElement) as IJSHTMLFormElement;
  97072. end;
  97073. function TJSHTMLLegendElement._Getalign: UnicodeString;
  97074. begin
  97075. Result:=ReadJSPropertyUnicodeString('align');
  97076. end;
  97077. procedure TJSHTMLLegendElement._Setalign(const aValue : UnicodeString);
  97078. begin
  97079. WriteJSPropertyUnicodeString('align',aValue);
  97080. end;
  97081. constructor TJSHTMLLegendElement.Create;
  97082. begin
  97083. JOBCreate([]);
  97084. end;
  97085. class function TJSHTMLLegendElement.JSClassName: UnicodeString;
  97086. begin
  97087. Result:='HTMLLegendElement';
  97088. end;
  97089. class function TJSHTMLLegendElement.Cast(const Intf: IJSObject): IJSHTMLLegendElement;
  97090. begin
  97091. Result:=TJSHTMLLegendElement.JOBCast(Intf);
  97092. end;
  97093. function TJSHTMLLIElement._Getvalue: LongInt;
  97094. begin
  97095. Result:=ReadJSPropertyLongInt('value');
  97096. end;
  97097. function TJSHTMLLIElement._Gettype_: UnicodeString;
  97098. begin
  97099. Result:=ReadJSPropertyUnicodeString('type');
  97100. end;
  97101. procedure TJSHTMLLIElement._Setvalue(const aValue : LongInt);
  97102. begin
  97103. WriteJSPropertyLongInt('value',aValue);
  97104. end;
  97105. procedure TJSHTMLLIElement._Settype_(const aValue : UnicodeString);
  97106. begin
  97107. WriteJSPropertyUnicodeString('type',aValue);
  97108. end;
  97109. constructor TJSHTMLLIElement.Create;
  97110. begin
  97111. JOBCreate([]);
  97112. end;
  97113. class function TJSHTMLLIElement.JSClassName: UnicodeString;
  97114. begin
  97115. Result:='HTMLLIElement';
  97116. end;
  97117. class function TJSHTMLLIElement.Cast(const Intf: IJSObject): IJSHTMLLIElement;
  97118. begin
  97119. Result:=TJSHTMLLIElement.JOBCast(Intf);
  97120. end;
  97121. function TJSHTMLLinkElement._Getdisabled: Boolean;
  97122. begin
  97123. Result:=ReadJSPropertyBoolean('disabled');
  97124. end;
  97125. function TJSHTMLLinkElement._Gethref: UnicodeString;
  97126. begin
  97127. Result:=ReadJSPropertyUnicodeString('href');
  97128. end;
  97129. function TJSHTMLLinkElement._GetcrossOrigin: UnicodeString;
  97130. begin
  97131. Result:=ReadJSPropertyUnicodeString('crossOrigin');
  97132. end;
  97133. function TJSHTMLLinkElement._Getrel: UnicodeString;
  97134. begin
  97135. Result:=ReadJSPropertyUnicodeString('rel');
  97136. end;
  97137. function TJSHTMLLinkElement._GetrelList: IJSDOMTokenList;
  97138. begin
  97139. Result:=ReadJSPropertyObject('relList',TJSDOMTokenList) as IJSDOMTokenList;
  97140. end;
  97141. function TJSHTMLLinkElement._Getmedia: UnicodeString;
  97142. begin
  97143. Result:=ReadJSPropertyUnicodeString('media');
  97144. end;
  97145. function TJSHTMLLinkElement._Gethreflang: UnicodeString;
  97146. begin
  97147. Result:=ReadJSPropertyUnicodeString('hreflang');
  97148. end;
  97149. function TJSHTMLLinkElement._Gettype_: UnicodeString;
  97150. begin
  97151. Result:=ReadJSPropertyUnicodeString('type');
  97152. end;
  97153. function TJSHTMLLinkElement._GetreferrerPolicy: UnicodeString;
  97154. begin
  97155. Result:=ReadJSPropertyUnicodeString('referrerPolicy');
  97156. end;
  97157. function TJSHTMLLinkElement._Getsizes: IJSDOMTokenList;
  97158. begin
  97159. Result:=ReadJSPropertyObject('sizes',TJSDOMTokenList) as IJSDOMTokenList;
  97160. end;
  97161. function TJSHTMLLinkElement._GetimageSrcset: UnicodeString;
  97162. begin
  97163. Result:=ReadJSPropertyUnicodeString('imageSrcset');
  97164. end;
  97165. function TJSHTMLLinkElement._GetimageSizes: UnicodeString;
  97166. begin
  97167. Result:=ReadJSPropertyUnicodeString('imageSizes');
  97168. end;
  97169. function TJSHTMLLinkElement._Getblocking: IJSDOMTokenList;
  97170. begin
  97171. Result:=ReadJSPropertyObject('blocking',TJSDOMTokenList) as IJSDOMTokenList;
  97172. end;
  97173. function TJSHTMLLinkElement._GetfetchPriority: UnicodeString;
  97174. begin
  97175. Result:=ReadJSPropertyUnicodeString('fetchPriority');
  97176. end;
  97177. function TJSHTMLLinkElement._Getcharset: UnicodeString;
  97178. begin
  97179. Result:=ReadJSPropertyUnicodeString('charset');
  97180. end;
  97181. function TJSHTMLLinkElement._Getrev: UnicodeString;
  97182. begin
  97183. Result:=ReadJSPropertyUnicodeString('rev');
  97184. end;
  97185. function TJSHTMLLinkElement._Gettarget: UnicodeString;
  97186. begin
  97187. Result:=ReadJSPropertyUnicodeString('target');
  97188. end;
  97189. function TJSHTMLLinkElement._Getintegrity: UnicodeString;
  97190. begin
  97191. Result:=ReadJSPropertyUnicodeString('integrity');
  97192. end;
  97193. function TJSHTMLLinkElement._Getas_: UnicodeString;
  97194. begin
  97195. Result:=ReadJSPropertyUnicodeString('as');
  97196. end;
  97197. function TJSHTMLLinkElement._Getsheet: IJSStyleSheet;
  97198. begin
  97199. Result:=ReadJSPropertyObject('sheet',TJSStyleSheet) as IJSStyleSheet;
  97200. end;
  97201. procedure TJSHTMLLinkElement._Setdisabled(const aValue : Boolean);
  97202. begin
  97203. WriteJSPropertyBoolean('disabled',aValue);
  97204. end;
  97205. procedure TJSHTMLLinkElement._Sethref(const aValue : UnicodeString);
  97206. begin
  97207. WriteJSPropertyUnicodeString('href',aValue);
  97208. end;
  97209. procedure TJSHTMLLinkElement._SetcrossOrigin(const aValue : UnicodeString);
  97210. begin
  97211. WriteJSPropertyUnicodeString('crossOrigin',aValue);
  97212. end;
  97213. procedure TJSHTMLLinkElement._Setrel(const aValue : UnicodeString);
  97214. begin
  97215. WriteJSPropertyUnicodeString('rel',aValue);
  97216. end;
  97217. procedure TJSHTMLLinkElement._Setmedia(const aValue : UnicodeString);
  97218. begin
  97219. WriteJSPropertyUnicodeString('media',aValue);
  97220. end;
  97221. procedure TJSHTMLLinkElement._Sethreflang(const aValue : UnicodeString);
  97222. begin
  97223. WriteJSPropertyUnicodeString('hreflang',aValue);
  97224. end;
  97225. procedure TJSHTMLLinkElement._Settype_(const aValue : UnicodeString);
  97226. begin
  97227. WriteJSPropertyUnicodeString('type',aValue);
  97228. end;
  97229. procedure TJSHTMLLinkElement._SetreferrerPolicy(const aValue : UnicodeString);
  97230. begin
  97231. WriteJSPropertyUnicodeString('referrerPolicy',aValue);
  97232. end;
  97233. procedure TJSHTMLLinkElement._SetimageSrcset(const aValue : UnicodeString);
  97234. begin
  97235. WriteJSPropertyUnicodeString('imageSrcset',aValue);
  97236. end;
  97237. procedure TJSHTMLLinkElement._SetimageSizes(const aValue : UnicodeString);
  97238. begin
  97239. WriteJSPropertyUnicodeString('imageSizes',aValue);
  97240. end;
  97241. procedure TJSHTMLLinkElement._SetfetchPriority(const aValue : UnicodeString);
  97242. begin
  97243. WriteJSPropertyUnicodeString('fetchPriority',aValue);
  97244. end;
  97245. procedure TJSHTMLLinkElement._Setcharset(const aValue : UnicodeString);
  97246. begin
  97247. WriteJSPropertyUnicodeString('charset',aValue);
  97248. end;
  97249. procedure TJSHTMLLinkElement._Setrev(const aValue : UnicodeString);
  97250. begin
  97251. WriteJSPropertyUnicodeString('rev',aValue);
  97252. end;
  97253. procedure TJSHTMLLinkElement._Settarget(const aValue : UnicodeString);
  97254. begin
  97255. WriteJSPropertyUnicodeString('target',aValue);
  97256. end;
  97257. procedure TJSHTMLLinkElement._Setintegrity(const aValue : UnicodeString);
  97258. begin
  97259. WriteJSPropertyUnicodeString('integrity',aValue);
  97260. end;
  97261. procedure TJSHTMLLinkElement._Setas_(const aValue : UnicodeString);
  97262. begin
  97263. WriteJSPropertyUnicodeString('as',aValue);
  97264. end;
  97265. constructor TJSHTMLLinkElement.Create;
  97266. begin
  97267. JOBCreate([]);
  97268. end;
  97269. class function TJSHTMLLinkElement.JSClassName: UnicodeString;
  97270. begin
  97271. Result:='HTMLLinkElement';
  97272. end;
  97273. class function TJSHTMLLinkElement.Cast(const Intf: IJSObject): IJSHTMLLinkElement;
  97274. begin
  97275. Result:=TJSHTMLLinkElement.JOBCast(Intf);
  97276. end;
  97277. function TJSHTMLMapElement._Getname: UnicodeString;
  97278. begin
  97279. Result:=ReadJSPropertyUnicodeString('name');
  97280. end;
  97281. function TJSHTMLMapElement._Getareas: IJSHTMLCollection;
  97282. begin
  97283. Result:=ReadJSPropertyObject('areas',TJSHTMLCollection) as IJSHTMLCollection;
  97284. end;
  97285. procedure TJSHTMLMapElement._Setname(const aValue : UnicodeString);
  97286. begin
  97287. WriteJSPropertyUnicodeString('name',aValue);
  97288. end;
  97289. constructor TJSHTMLMapElement.Create;
  97290. begin
  97291. JOBCreate([]);
  97292. end;
  97293. class function TJSHTMLMapElement.JSClassName: UnicodeString;
  97294. begin
  97295. Result:='HTMLMapElement';
  97296. end;
  97297. class function TJSHTMLMapElement.Cast(const Intf: IJSObject): IJSHTMLMapElement;
  97298. begin
  97299. Result:=TJSHTMLMapElement.JOBCast(Intf);
  97300. end;
  97301. function TJSHTMLMarqueeElement._Getbehavior: UnicodeString;
  97302. begin
  97303. Result:=ReadJSPropertyUnicodeString('behavior');
  97304. end;
  97305. function TJSHTMLMarqueeElement._GetbgColor: UnicodeString;
  97306. begin
  97307. Result:=ReadJSPropertyUnicodeString('bgColor');
  97308. end;
  97309. function TJSHTMLMarqueeElement._Getdirection: UnicodeString;
  97310. begin
  97311. Result:=ReadJSPropertyUnicodeString('direction');
  97312. end;
  97313. function TJSHTMLMarqueeElement._Getheight: UnicodeString;
  97314. begin
  97315. Result:=ReadJSPropertyUnicodeString('height');
  97316. end;
  97317. function TJSHTMLMarqueeElement._Gethspace: Cardinal;
  97318. begin
  97319. Result:=ReadJSPropertyInt64('hspace');
  97320. end;
  97321. function TJSHTMLMarqueeElement._Getloop: LongInt;
  97322. begin
  97323. Result:=ReadJSPropertyLongInt('loop');
  97324. end;
  97325. function TJSHTMLMarqueeElement._GetscrollAmount: Cardinal;
  97326. begin
  97327. Result:=ReadJSPropertyInt64('scrollAmount');
  97328. end;
  97329. function TJSHTMLMarqueeElement._GetscrollDelay: Cardinal;
  97330. begin
  97331. Result:=ReadJSPropertyInt64('scrollDelay');
  97332. end;
  97333. function TJSHTMLMarqueeElement._GettrueSpeed: Boolean;
  97334. begin
  97335. Result:=ReadJSPropertyBoolean('trueSpeed');
  97336. end;
  97337. function TJSHTMLMarqueeElement._Getvspace: Cardinal;
  97338. begin
  97339. Result:=ReadJSPropertyInt64('vspace');
  97340. end;
  97341. function TJSHTMLMarqueeElement._Getwidth: UnicodeString;
  97342. begin
  97343. Result:=ReadJSPropertyUnicodeString('width');
  97344. end;
  97345. function TJSHTMLMarqueeElement._Getonbounce: TEventHandler;
  97346. begin
  97347. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbounce')));
  97348. end;
  97349. function TJSHTMLMarqueeElement._Getonfinish: TEventHandler;
  97350. begin
  97351. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfinish')));
  97352. end;
  97353. function TJSHTMLMarqueeElement._Getonstart: TEventHandler;
  97354. begin
  97355. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstart')));
  97356. end;
  97357. procedure TJSHTMLMarqueeElement._Setbehavior(const aValue : UnicodeString);
  97358. begin
  97359. WriteJSPropertyUnicodeString('behavior',aValue);
  97360. end;
  97361. procedure TJSHTMLMarqueeElement._SetbgColor(const aValue : UnicodeString);
  97362. begin
  97363. WriteJSPropertyUnicodeString('bgColor',aValue);
  97364. end;
  97365. procedure TJSHTMLMarqueeElement._Setdirection(const aValue : UnicodeString);
  97366. begin
  97367. WriteJSPropertyUnicodeString('direction',aValue);
  97368. end;
  97369. procedure TJSHTMLMarqueeElement._Setheight(const aValue : UnicodeString);
  97370. begin
  97371. WriteJSPropertyUnicodeString('height',aValue);
  97372. end;
  97373. procedure TJSHTMLMarqueeElement._Sethspace(const aValue : Cardinal);
  97374. begin
  97375. WriteJSPropertyDouble('hspace',aValue);
  97376. end;
  97377. procedure TJSHTMLMarqueeElement._Setloop(const aValue : LongInt);
  97378. begin
  97379. WriteJSPropertyLongInt('loop',aValue);
  97380. end;
  97381. procedure TJSHTMLMarqueeElement._SetscrollAmount(const aValue : Cardinal);
  97382. begin
  97383. WriteJSPropertyDouble('scrollAmount',aValue);
  97384. end;
  97385. procedure TJSHTMLMarqueeElement._SetscrollDelay(const aValue : Cardinal);
  97386. begin
  97387. WriteJSPropertyDouble('scrollDelay',aValue);
  97388. end;
  97389. procedure TJSHTMLMarqueeElement._SettrueSpeed(const aValue : Boolean);
  97390. begin
  97391. WriteJSPropertyBoolean('trueSpeed',aValue);
  97392. end;
  97393. procedure TJSHTMLMarqueeElement._Setvspace(const aValue : Cardinal);
  97394. begin
  97395. WriteJSPropertyDouble('vspace',aValue);
  97396. end;
  97397. procedure TJSHTMLMarqueeElement._Setwidth(const aValue : UnicodeString);
  97398. begin
  97399. WriteJSPropertyUnicodeString('width',aValue);
  97400. end;
  97401. procedure TJSHTMLMarqueeElement._Setonbounce(const aValue : TEventHandler);
  97402. begin
  97403. WriteJSPropertyMethod('onbounce',TMethod(aValue));
  97404. end;
  97405. procedure TJSHTMLMarqueeElement._Setonfinish(const aValue : TEventHandler);
  97406. begin
  97407. WriteJSPropertyMethod('onfinish',TMethod(aValue));
  97408. end;
  97409. procedure TJSHTMLMarqueeElement._Setonstart(const aValue : TEventHandler);
  97410. begin
  97411. WriteJSPropertyMethod('onstart',TMethod(aValue));
  97412. end;
  97413. constructor TJSHTMLMarqueeElement.Create;
  97414. begin
  97415. JOBCreate([]);
  97416. end;
  97417. procedure TJSHTMLMarqueeElement.start;
  97418. begin
  97419. InvokeJSNoResult('start',[]);
  97420. end;
  97421. procedure TJSHTMLMarqueeElement.stop;
  97422. begin
  97423. InvokeJSNoResult('stop',[]);
  97424. end;
  97425. class function TJSHTMLMarqueeElement.JSClassName: UnicodeString;
  97426. begin
  97427. Result:='HTMLMarqueeElement';
  97428. end;
  97429. class function TJSHTMLMarqueeElement.Cast(const Intf: IJSObject): IJSHTMLMarqueeElement;
  97430. begin
  97431. Result:=TJSHTMLMarqueeElement.JOBCast(Intf);
  97432. end;
  97433. function TJSHTMLMediaElement._Geterror: IJSMediaError;
  97434. begin
  97435. Result:=ReadJSPropertyObject('error',TJSMediaError) as IJSMediaError;
  97436. end;
  97437. function TJSHTMLMediaElement._Getsrc: UnicodeString;
  97438. begin
  97439. Result:=ReadJSPropertyUnicodeString('src');
  97440. end;
  97441. function TJSHTMLMediaElement._GetcurrentSrc: UnicodeString;
  97442. begin
  97443. Result:=ReadJSPropertyUnicodeString('currentSrc');
  97444. end;
  97445. function TJSHTMLMediaElement._GetcrossOrigin: UnicodeString;
  97446. begin
  97447. Result:=ReadJSPropertyUnicodeString('crossOrigin');
  97448. end;
  97449. function TJSHTMLMediaElement._GetnetworkState: Word;
  97450. begin
  97451. Result:=ReadJSPropertyLongInt('networkState');
  97452. end;
  97453. function TJSHTMLMediaElement._Getpreload: UnicodeString;
  97454. begin
  97455. Result:=ReadJSPropertyUnicodeString('preload');
  97456. end;
  97457. function TJSHTMLMediaElement._Getbuffered: IJSTimeRanges;
  97458. begin
  97459. Result:=ReadJSPropertyObject('buffered',TJSTimeRanges) as IJSTimeRanges;
  97460. end;
  97461. function TJSHTMLMediaElement._GetreadyState: Word;
  97462. begin
  97463. Result:=ReadJSPropertyLongInt('readyState');
  97464. end;
  97465. function TJSHTMLMediaElement._Getseeking: Boolean;
  97466. begin
  97467. Result:=ReadJSPropertyBoolean('seeking');
  97468. end;
  97469. function TJSHTMLMediaElement._GetcurrentTime: Double;
  97470. begin
  97471. Result:=ReadJSPropertyDouble('currentTime');
  97472. end;
  97473. function TJSHTMLMediaElement._Getduration: Double;
  97474. begin
  97475. Result:=ReadJSPropertyDouble('duration');
  97476. end;
  97477. function TJSHTMLMediaElement._Getpaused: Boolean;
  97478. begin
  97479. Result:=ReadJSPropertyBoolean('paused');
  97480. end;
  97481. function TJSHTMLMediaElement._GetdefaultPlaybackRate: Double;
  97482. begin
  97483. Result:=ReadJSPropertyDouble('defaultPlaybackRate');
  97484. end;
  97485. function TJSHTMLMediaElement._GetplaybackRate: Double;
  97486. begin
  97487. Result:=ReadJSPropertyDouble('playbackRate');
  97488. end;
  97489. function TJSHTMLMediaElement._Getplayed: IJSTimeRanges;
  97490. begin
  97491. Result:=ReadJSPropertyObject('played',TJSTimeRanges) as IJSTimeRanges;
  97492. end;
  97493. function TJSHTMLMediaElement._Getseekable: IJSTimeRanges;
  97494. begin
  97495. Result:=ReadJSPropertyObject('seekable',TJSTimeRanges) as IJSTimeRanges;
  97496. end;
  97497. function TJSHTMLMediaElement._Getended: Boolean;
  97498. begin
  97499. Result:=ReadJSPropertyBoolean('ended');
  97500. end;
  97501. function TJSHTMLMediaElement._Getautoplay: Boolean;
  97502. begin
  97503. Result:=ReadJSPropertyBoolean('autoplay');
  97504. end;
  97505. function TJSHTMLMediaElement._Getloop: Boolean;
  97506. begin
  97507. Result:=ReadJSPropertyBoolean('loop');
  97508. end;
  97509. function TJSHTMLMediaElement._Getcontrols: Boolean;
  97510. begin
  97511. Result:=ReadJSPropertyBoolean('controls');
  97512. end;
  97513. function TJSHTMLMediaElement._Getvolume: Double;
  97514. begin
  97515. Result:=ReadJSPropertyDouble('volume');
  97516. end;
  97517. function TJSHTMLMediaElement._Getmuted: Boolean;
  97518. begin
  97519. Result:=ReadJSPropertyBoolean('muted');
  97520. end;
  97521. function TJSHTMLMediaElement._GetdefaultMuted: Boolean;
  97522. begin
  97523. Result:=ReadJSPropertyBoolean('defaultMuted');
  97524. end;
  97525. function TJSHTMLMediaElement._GetaudioTracks: IJSAudioTrackList;
  97526. begin
  97527. Result:=ReadJSPropertyObject('audioTracks',TJSAudioTrackList) as IJSAudioTrackList;
  97528. end;
  97529. function TJSHTMLMediaElement._GetvideoTracks: IJSVideoTrackList;
  97530. begin
  97531. Result:=ReadJSPropertyObject('videoTracks',TJSVideoTrackList) as IJSVideoTrackList;
  97532. end;
  97533. function TJSHTMLMediaElement._GettextTracks: IJSTextTrackList;
  97534. begin
  97535. Result:=ReadJSPropertyObject('textTracks',TJSTextTrackList) as IJSTextTrackList;
  97536. end;
  97537. function TJSHTMLMediaElement._GetmozMediaSourceObject: IJSMediaSource;
  97538. begin
  97539. Result:=ReadJSPropertyObject('mozMediaSourceObject',TJSMediaSource) as IJSMediaSource;
  97540. end;
  97541. function TJSHTMLMediaElement._GetsrcObject: IJSMediaStream;
  97542. begin
  97543. Result:=ReadJSPropertyObject('srcObject',TJSMediaStream) as IJSMediaStream;
  97544. end;
  97545. function TJSHTMLMediaElement._GetpreservesPitch: Boolean;
  97546. begin
  97547. Result:=ReadJSPropertyBoolean('preservesPitch');
  97548. end;
  97549. function TJSHTMLMediaElement._GetmozAllowCasting: Boolean;
  97550. begin
  97551. Result:=ReadJSPropertyBoolean('mozAllowCasting');
  97552. end;
  97553. function TJSHTMLMediaElement._GetmozIsCasting: Boolean;
  97554. begin
  97555. Result:=ReadJSPropertyBoolean('mozIsCasting');
  97556. end;
  97557. function TJSHTMLMediaElement._GetmozAudioCaptured: Boolean;
  97558. begin
  97559. Result:=ReadJSPropertyBoolean('mozAudioCaptured');
  97560. end;
  97561. function TJSHTMLMediaElement._GetmozFragmentEnd: Double;
  97562. begin
  97563. Result:=ReadJSPropertyDouble('mozFragmentEnd');
  97564. end;
  97565. function TJSHTMLMediaElement._GetmediaKeys: IJSMediaKeys;
  97566. begin
  97567. Result:=ReadJSPropertyObject('mediaKeys',TJSMediaKeys) as IJSMediaKeys;
  97568. end;
  97569. function TJSHTMLMediaElement._Getonencrypted: TEventHandler;
  97570. begin
  97571. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onencrypted')));
  97572. end;
  97573. function TJSHTMLMediaElement._Getonwaitingforkey: TEventHandler;
  97574. begin
  97575. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwaitingforkey')));
  97576. end;
  97577. function TJSHTMLMediaElement._GetcomputedVolume: Double;
  97578. begin
  97579. Result:=ReadJSPropertyDouble('computedVolume');
  97580. end;
  97581. function TJSHTMLMediaElement._GetcomputedMuted: Boolean;
  97582. begin
  97583. Result:=ReadJSPropertyBoolean('computedMuted');
  97584. end;
  97585. function TJSHTMLMediaElement._GetsinkId: UnicodeString;
  97586. begin
  97587. Result:=ReadJSPropertyUnicodeString('sinkId');
  97588. end;
  97589. function TJSHTMLMediaElement._GetallowedToPlay: Boolean;
  97590. begin
  97591. Result:=ReadJSPropertyBoolean('allowedToPlay');
  97592. end;
  97593. procedure TJSHTMLMediaElement._Setsrc(const aValue : UnicodeString);
  97594. begin
  97595. WriteJSPropertyUnicodeString('src',aValue);
  97596. end;
  97597. procedure TJSHTMLMediaElement._SetcrossOrigin(const aValue : UnicodeString);
  97598. begin
  97599. WriteJSPropertyUnicodeString('crossOrigin',aValue);
  97600. end;
  97601. procedure TJSHTMLMediaElement._Setpreload(const aValue : UnicodeString);
  97602. begin
  97603. WriteJSPropertyUnicodeString('preload',aValue);
  97604. end;
  97605. procedure TJSHTMLMediaElement._SetcurrentTime(const aValue : Double);
  97606. begin
  97607. WriteJSPropertyDouble('currentTime',aValue);
  97608. end;
  97609. procedure TJSHTMLMediaElement._SetdefaultPlaybackRate(const aValue : Double);
  97610. begin
  97611. WriteJSPropertyDouble('defaultPlaybackRate',aValue);
  97612. end;
  97613. procedure TJSHTMLMediaElement._SetplaybackRate(const aValue : Double);
  97614. begin
  97615. WriteJSPropertyDouble('playbackRate',aValue);
  97616. end;
  97617. procedure TJSHTMLMediaElement._Setautoplay(const aValue : Boolean);
  97618. begin
  97619. WriteJSPropertyBoolean('autoplay',aValue);
  97620. end;
  97621. procedure TJSHTMLMediaElement._Setloop(const aValue : Boolean);
  97622. begin
  97623. WriteJSPropertyBoolean('loop',aValue);
  97624. end;
  97625. procedure TJSHTMLMediaElement._Setcontrols(const aValue : Boolean);
  97626. begin
  97627. WriteJSPropertyBoolean('controls',aValue);
  97628. end;
  97629. procedure TJSHTMLMediaElement._Setvolume(const aValue : Double);
  97630. begin
  97631. WriteJSPropertyDouble('volume',aValue);
  97632. end;
  97633. procedure TJSHTMLMediaElement._Setmuted(const aValue : Boolean);
  97634. begin
  97635. WriteJSPropertyBoolean('muted',aValue);
  97636. end;
  97637. procedure TJSHTMLMediaElement._SetdefaultMuted(const aValue : Boolean);
  97638. begin
  97639. WriteJSPropertyBoolean('defaultMuted',aValue);
  97640. end;
  97641. procedure TJSHTMLMediaElement._SetsrcObject(const aValue : IJSMediaStream);
  97642. begin
  97643. WriteJSPropertyObject('srcObject',aValue);
  97644. end;
  97645. procedure TJSHTMLMediaElement._SetpreservesPitch(const aValue : Boolean);
  97646. begin
  97647. WriteJSPropertyBoolean('preservesPitch',aValue);
  97648. end;
  97649. procedure TJSHTMLMediaElement._SetmozAllowCasting(const aValue : Boolean);
  97650. begin
  97651. WriteJSPropertyBoolean('mozAllowCasting',aValue);
  97652. end;
  97653. procedure TJSHTMLMediaElement._SetmozIsCasting(const aValue : Boolean);
  97654. begin
  97655. WriteJSPropertyBoolean('mozIsCasting',aValue);
  97656. end;
  97657. procedure TJSHTMLMediaElement._Setonencrypted(const aValue : TEventHandler);
  97658. begin
  97659. WriteJSPropertyMethod('onencrypted',TMethod(aValue));
  97660. end;
  97661. procedure TJSHTMLMediaElement._Setonwaitingforkey(const aValue : TEventHandler);
  97662. begin
  97663. WriteJSPropertyMethod('onwaitingforkey',TMethod(aValue));
  97664. end;
  97665. procedure TJSHTMLMediaElement.load;
  97666. begin
  97667. InvokeJSNoResult('load',[]);
  97668. end;
  97669. function TJSHTMLMediaElement.canPlayType(const aType_: UnicodeString): UnicodeString;
  97670. begin
  97671. Result:=InvokeJSUnicodeStringResult('canPlayType',[aType_]);
  97672. end;
  97673. procedure TJSHTMLMediaElement.fastSeek(aTime: Double);
  97674. begin
  97675. InvokeJSNoResult('fastSeek',[aTime]);
  97676. end;
  97677. function TJSHTMLMediaElement.play: IJSPromise; // Promise<undefined>
  97678. begin
  97679. Result:=InvokeJSObjectResult('play',[],TJSPromise) as IJSPromise;
  97680. end;
  97681. procedure TJSHTMLMediaElement.pause;
  97682. begin
  97683. InvokeJSNoResult('pause',[]);
  97684. end;
  97685. function TJSHTMLMediaElement.addTextTrack(aKind: TTextTrackKind; const aLabel_: UnicodeString; const aLanguage: UnicodeString): IJSTextTrack;
  97686. begin
  97687. Result:=InvokeJSObjectResult('addTextTrack',[aKind,aLabel_,aLanguage],TJSTextTrack) as IJSTextTrack;
  97688. end;
  97689. function TJSHTMLMediaElement.addTextTrack(aKind: TTextTrackKind): IJSTextTrack;
  97690. begin
  97691. Result:=InvokeJSObjectResult('addTextTrack',[aKind],TJSTextTrack) as IJSTextTrack;
  97692. end;
  97693. function TJSHTMLMediaElement.addTextTrack(aKind: TTextTrackKind; const aLabel_: UnicodeString): IJSTextTrack;
  97694. begin
  97695. Result:=InvokeJSObjectResult('addTextTrack',[aKind,aLabel_],TJSTextTrack) as IJSTextTrack;
  97696. end;
  97697. function TJSHTMLMediaElement.mozRequestDebugInfo: IJSPromise; // Promise<HTMLMediaElementDebugInfo>
  97698. begin
  97699. Result:=InvokeJSObjectResult('mozRequestDebugInfo',[],TJSPromise) as IJSPromise;
  97700. end;
  97701. procedure TJSHTMLMediaElement.mozEnableDebugLog;
  97702. begin
  97703. InvokeJSNoResult('mozEnableDebugLog',[]);
  97704. end;
  97705. function TJSHTMLMediaElement.mozRequestDebugLog: IJSPromise; // Promise<DOMString>
  97706. begin
  97707. Result:=InvokeJSObjectResult('mozRequestDebugLog',[],TJSPromise) as IJSPromise;
  97708. end;
  97709. function TJSHTMLMediaElement.mozCaptureStream: IJSMediaStream;
  97710. begin
  97711. Result:=InvokeJSObjectResult('mozCaptureStream',[],TJSMediaStream) as IJSMediaStream;
  97712. end;
  97713. function TJSHTMLMediaElement.mozCaptureStreamUntilEnded: IJSMediaStream;
  97714. begin
  97715. Result:=InvokeJSObjectResult('mozCaptureStreamUntilEnded',[],TJSMediaStream) as IJSMediaStream;
  97716. end;
  97717. function TJSHTMLMediaElement.mozGetMetadata: IJSObject;
  97718. begin
  97719. Result:=InvokeJSObjectResult('mozGetMetadata',[],TJSObject) as IJSObject;
  97720. end;
  97721. function TJSHTMLMediaElement.setMediaKeys(aMediaKeys: IJSMediaKeys): IJSPromise; // Promise<undefined>
  97722. begin
  97723. Result:=InvokeJSObjectResult('setMediaKeys',[aMediaKeys],TJSPromise) as IJSPromise;
  97724. end;
  97725. function TJSHTMLMediaElement.seekToNextFrame: IJSPromise; // Promise<undefined>
  97726. begin
  97727. Result:=InvokeJSObjectResult('seekToNextFrame',[],TJSPromise) as IJSPromise;
  97728. end;
  97729. procedure TJSHTMLMediaElement.setVisible(aAVisible: Boolean);
  97730. begin
  97731. InvokeJSNoResult('setVisible',[aAVisible]);
  97732. end;
  97733. function TJSHTMLMediaElement.hasSuspendTaint: Boolean;
  97734. begin
  97735. Result:=InvokeJSBooleanResult('hasSuspendTaint',[]);
  97736. end;
  97737. function TJSHTMLMediaElement.setSinkId(const aSinkId: UnicodeString): IJSPromise; // Promise<undefined>
  97738. begin
  97739. Result:=InvokeJSObjectResult('setSinkId',[aSinkId],TJSPromise) as IJSPromise;
  97740. end;
  97741. class function TJSHTMLMediaElement.JSClassName: UnicodeString;
  97742. begin
  97743. Result:='HTMLMediaElement';
  97744. end;
  97745. class function TJSHTMLMediaElement.Cast(const Intf: IJSObject): IJSHTMLMediaElement;
  97746. begin
  97747. Result:=TJSHTMLMediaElement.JOBCast(Intf);
  97748. end;
  97749. function TJSHTMLMenuElement._Getcompact: Boolean;
  97750. begin
  97751. Result:=ReadJSPropertyBoolean('compact');
  97752. end;
  97753. procedure TJSHTMLMenuElement._Setcompact(const aValue : Boolean);
  97754. begin
  97755. WriteJSPropertyBoolean('compact',aValue);
  97756. end;
  97757. constructor TJSHTMLMenuElement.Create;
  97758. begin
  97759. JOBCreate([]);
  97760. end;
  97761. class function TJSHTMLMenuElement.JSClassName: UnicodeString;
  97762. begin
  97763. Result:='HTMLMenuElement';
  97764. end;
  97765. class function TJSHTMLMenuElement.Cast(const Intf: IJSObject): IJSHTMLMenuElement;
  97766. begin
  97767. Result:=TJSHTMLMenuElement.JOBCast(Intf);
  97768. end;
  97769. function TJSHTMLMetaElement._Getname: UnicodeString;
  97770. begin
  97771. Result:=ReadJSPropertyUnicodeString('name');
  97772. end;
  97773. function TJSHTMLMetaElement._GethttpEquiv: UnicodeString;
  97774. begin
  97775. Result:=ReadJSPropertyUnicodeString('httpEquiv');
  97776. end;
  97777. function TJSHTMLMetaElement._Getcontent: UnicodeString;
  97778. begin
  97779. Result:=ReadJSPropertyUnicodeString('content');
  97780. end;
  97781. function TJSHTMLMetaElement._Getmedia: UnicodeString;
  97782. begin
  97783. Result:=ReadJSPropertyUnicodeString('media');
  97784. end;
  97785. function TJSHTMLMetaElement._Getscheme: UnicodeString;
  97786. begin
  97787. Result:=ReadJSPropertyUnicodeString('scheme');
  97788. end;
  97789. procedure TJSHTMLMetaElement._Setname(const aValue : UnicodeString);
  97790. begin
  97791. WriteJSPropertyUnicodeString('name',aValue);
  97792. end;
  97793. procedure TJSHTMLMetaElement._SethttpEquiv(const aValue : UnicodeString);
  97794. begin
  97795. WriteJSPropertyUnicodeString('httpEquiv',aValue);
  97796. end;
  97797. procedure TJSHTMLMetaElement._Setcontent(const aValue : UnicodeString);
  97798. begin
  97799. WriteJSPropertyUnicodeString('content',aValue);
  97800. end;
  97801. procedure TJSHTMLMetaElement._Setmedia(const aValue : UnicodeString);
  97802. begin
  97803. WriteJSPropertyUnicodeString('media',aValue);
  97804. end;
  97805. procedure TJSHTMLMetaElement._Setscheme(const aValue : UnicodeString);
  97806. begin
  97807. WriteJSPropertyUnicodeString('scheme',aValue);
  97808. end;
  97809. constructor TJSHTMLMetaElement.Create;
  97810. begin
  97811. JOBCreate([]);
  97812. end;
  97813. class function TJSHTMLMetaElement.JSClassName: UnicodeString;
  97814. begin
  97815. Result:='HTMLMetaElement';
  97816. end;
  97817. class function TJSHTMLMetaElement.Cast(const Intf: IJSObject): IJSHTMLMetaElement;
  97818. begin
  97819. Result:=TJSHTMLMetaElement.JOBCast(Intf);
  97820. end;
  97821. function TJSHTMLMeterElement._Getvalue: Double;
  97822. begin
  97823. Result:=ReadJSPropertyDouble('value');
  97824. end;
  97825. function TJSHTMLMeterElement._Getmin: Double;
  97826. begin
  97827. Result:=ReadJSPropertyDouble('min');
  97828. end;
  97829. function TJSHTMLMeterElement._Getmax: Double;
  97830. begin
  97831. Result:=ReadJSPropertyDouble('max');
  97832. end;
  97833. function TJSHTMLMeterElement._Getlow: Double;
  97834. begin
  97835. Result:=ReadJSPropertyDouble('low');
  97836. end;
  97837. function TJSHTMLMeterElement._Gethigh: Double;
  97838. begin
  97839. Result:=ReadJSPropertyDouble('high');
  97840. end;
  97841. function TJSHTMLMeterElement._Getoptimum: Double;
  97842. begin
  97843. Result:=ReadJSPropertyDouble('optimum');
  97844. end;
  97845. function TJSHTMLMeterElement._Getlabels: IJSNodeList;
  97846. begin
  97847. Result:=ReadJSPropertyObject('labels',TJSNodeList) as IJSNodeList;
  97848. end;
  97849. procedure TJSHTMLMeterElement._Setvalue(const aValue : Double);
  97850. begin
  97851. WriteJSPropertyDouble('value',aValue);
  97852. end;
  97853. procedure TJSHTMLMeterElement._Setmin(const aValue : Double);
  97854. begin
  97855. WriteJSPropertyDouble('min',aValue);
  97856. end;
  97857. procedure TJSHTMLMeterElement._Setmax(const aValue : Double);
  97858. begin
  97859. WriteJSPropertyDouble('max',aValue);
  97860. end;
  97861. procedure TJSHTMLMeterElement._Setlow(const aValue : Double);
  97862. begin
  97863. WriteJSPropertyDouble('low',aValue);
  97864. end;
  97865. procedure TJSHTMLMeterElement._Sethigh(const aValue : Double);
  97866. begin
  97867. WriteJSPropertyDouble('high',aValue);
  97868. end;
  97869. procedure TJSHTMLMeterElement._Setoptimum(const aValue : Double);
  97870. begin
  97871. WriteJSPropertyDouble('optimum',aValue);
  97872. end;
  97873. constructor TJSHTMLMeterElement.Create;
  97874. begin
  97875. JOBCreate([]);
  97876. end;
  97877. class function TJSHTMLMeterElement.JSClassName: UnicodeString;
  97878. begin
  97879. Result:='HTMLMeterElement';
  97880. end;
  97881. class function TJSHTMLMeterElement.Cast(const Intf: IJSObject): IJSHTMLMeterElement;
  97882. begin
  97883. Result:=TJSHTMLMeterElement.JOBCast(Intf);
  97884. end;
  97885. function TJSHTMLModElement._Getcite: UnicodeString;
  97886. begin
  97887. Result:=ReadJSPropertyUnicodeString('cite');
  97888. end;
  97889. function TJSHTMLModElement._GetdateTime: UnicodeString;
  97890. begin
  97891. Result:=ReadJSPropertyUnicodeString('dateTime');
  97892. end;
  97893. procedure TJSHTMLModElement._Setcite(const aValue : UnicodeString);
  97894. begin
  97895. WriteJSPropertyUnicodeString('cite',aValue);
  97896. end;
  97897. procedure TJSHTMLModElement._SetdateTime(const aValue : UnicodeString);
  97898. begin
  97899. WriteJSPropertyUnicodeString('dateTime',aValue);
  97900. end;
  97901. constructor TJSHTMLModElement.Create;
  97902. begin
  97903. JOBCreate([]);
  97904. end;
  97905. class function TJSHTMLModElement.JSClassName: UnicodeString;
  97906. begin
  97907. Result:='HTMLModElement';
  97908. end;
  97909. class function TJSHTMLModElement.Cast(const Intf: IJSObject): IJSHTMLModElement;
  97910. begin
  97911. Result:=TJSHTMLModElement.JOBCast(Intf);
  97912. end;
  97913. function TJSHTMLObjectElement._Getdata: UnicodeString;
  97914. begin
  97915. Result:=ReadJSPropertyUnicodeString('data');
  97916. end;
  97917. function TJSHTMLObjectElement._Gettype_: UnicodeString;
  97918. begin
  97919. Result:=ReadJSPropertyUnicodeString('type');
  97920. end;
  97921. function TJSHTMLObjectElement._Getname: UnicodeString;
  97922. begin
  97923. Result:=ReadJSPropertyUnicodeString('name');
  97924. end;
  97925. function TJSHTMLObjectElement._GetuseMap: UnicodeString;
  97926. begin
  97927. Result:=ReadJSPropertyUnicodeString('useMap');
  97928. end;
  97929. function TJSHTMLObjectElement._Getform: IJSHTMLFormElement;
  97930. begin
  97931. Result:=ReadJSPropertyObject('form',TJSHTMLFormElement) as IJSHTMLFormElement;
  97932. end;
  97933. function TJSHTMLObjectElement._Getwidth: UnicodeString;
  97934. begin
  97935. Result:=ReadJSPropertyUnicodeString('width');
  97936. end;
  97937. function TJSHTMLObjectElement._Getheight: UnicodeString;
  97938. begin
  97939. Result:=ReadJSPropertyUnicodeString('height');
  97940. end;
  97941. function TJSHTMLObjectElement._GetcontentDocument: IJSDocument;
  97942. begin
  97943. Result:=ReadJSPropertyObject('contentDocument',TJSDocument) as IJSDocument;
  97944. end;
  97945. function TJSHTMLObjectElement._GetcontentWindow: IJSWindowProxy;
  97946. begin
  97947. Result:=ReadJSPropertyObject('contentWindow',TJSWindowProxy) as IJSWindowProxy;
  97948. end;
  97949. function TJSHTMLObjectElement._GetwillValidate: Boolean;
  97950. begin
  97951. Result:=ReadJSPropertyBoolean('willValidate');
  97952. end;
  97953. function TJSHTMLObjectElement._Getvalidity: IJSValidityState;
  97954. begin
  97955. Result:=ReadJSPropertyObject('validity',TJSValidityState) as IJSValidityState;
  97956. end;
  97957. function TJSHTMLObjectElement._GetvalidationMessage: UnicodeString;
  97958. begin
  97959. Result:=ReadJSPropertyUnicodeString('validationMessage');
  97960. end;
  97961. function TJSHTMLObjectElement._Getalign: UnicodeString;
  97962. begin
  97963. Result:=ReadJSPropertyUnicodeString('align');
  97964. end;
  97965. function TJSHTMLObjectElement._Getarchive: UnicodeString;
  97966. begin
  97967. Result:=ReadJSPropertyUnicodeString('archive');
  97968. end;
  97969. function TJSHTMLObjectElement._Getcode: UnicodeString;
  97970. begin
  97971. Result:=ReadJSPropertyUnicodeString('code');
  97972. end;
  97973. function TJSHTMLObjectElement._Getdeclare: Boolean;
  97974. begin
  97975. Result:=ReadJSPropertyBoolean('declare');
  97976. end;
  97977. function TJSHTMLObjectElement._Gethspace: Cardinal;
  97978. begin
  97979. Result:=ReadJSPropertyInt64('hspace');
  97980. end;
  97981. function TJSHTMLObjectElement._Getstandby: UnicodeString;
  97982. begin
  97983. Result:=ReadJSPropertyUnicodeString('standby');
  97984. end;
  97985. function TJSHTMLObjectElement._Getvspace: Cardinal;
  97986. begin
  97987. Result:=ReadJSPropertyInt64('vspace');
  97988. end;
  97989. function TJSHTMLObjectElement._GetcodeBase: UnicodeString;
  97990. begin
  97991. Result:=ReadJSPropertyUnicodeString('codeBase');
  97992. end;
  97993. function TJSHTMLObjectElement._GetcodeType: UnicodeString;
  97994. begin
  97995. Result:=ReadJSPropertyUnicodeString('codeType');
  97996. end;
  97997. function TJSHTMLObjectElement._Getborder: UnicodeString;
  97998. begin
  97999. Result:=ReadJSPropertyUnicodeString('border');
  98000. end;
  98001. procedure TJSHTMLObjectElement._Setdata(const aValue : UnicodeString);
  98002. begin
  98003. WriteJSPropertyUnicodeString('data',aValue);
  98004. end;
  98005. procedure TJSHTMLObjectElement._Settype_(const aValue : UnicodeString);
  98006. begin
  98007. WriteJSPropertyUnicodeString('type',aValue);
  98008. end;
  98009. procedure TJSHTMLObjectElement._Setname(const aValue : UnicodeString);
  98010. begin
  98011. WriteJSPropertyUnicodeString('name',aValue);
  98012. end;
  98013. procedure TJSHTMLObjectElement._SetuseMap(const aValue : UnicodeString);
  98014. begin
  98015. WriteJSPropertyUnicodeString('useMap',aValue);
  98016. end;
  98017. procedure TJSHTMLObjectElement._Setwidth(const aValue : UnicodeString);
  98018. begin
  98019. WriteJSPropertyUnicodeString('width',aValue);
  98020. end;
  98021. procedure TJSHTMLObjectElement._Setheight(const aValue : UnicodeString);
  98022. begin
  98023. WriteJSPropertyUnicodeString('height',aValue);
  98024. end;
  98025. procedure TJSHTMLObjectElement._Setalign(const aValue : UnicodeString);
  98026. begin
  98027. WriteJSPropertyUnicodeString('align',aValue);
  98028. end;
  98029. procedure TJSHTMLObjectElement._Setarchive(const aValue : UnicodeString);
  98030. begin
  98031. WriteJSPropertyUnicodeString('archive',aValue);
  98032. end;
  98033. procedure TJSHTMLObjectElement._Setcode(const aValue : UnicodeString);
  98034. begin
  98035. WriteJSPropertyUnicodeString('code',aValue);
  98036. end;
  98037. procedure TJSHTMLObjectElement._Setdeclare(const aValue : Boolean);
  98038. begin
  98039. WriteJSPropertyBoolean('declare',aValue);
  98040. end;
  98041. procedure TJSHTMLObjectElement._Sethspace(const aValue : Cardinal);
  98042. begin
  98043. WriteJSPropertyDouble('hspace',aValue);
  98044. end;
  98045. procedure TJSHTMLObjectElement._Setstandby(const aValue : UnicodeString);
  98046. begin
  98047. WriteJSPropertyUnicodeString('standby',aValue);
  98048. end;
  98049. procedure TJSHTMLObjectElement._Setvspace(const aValue : Cardinal);
  98050. begin
  98051. WriteJSPropertyDouble('vspace',aValue);
  98052. end;
  98053. procedure TJSHTMLObjectElement._SetcodeBase(const aValue : UnicodeString);
  98054. begin
  98055. WriteJSPropertyUnicodeString('codeBase',aValue);
  98056. end;
  98057. procedure TJSHTMLObjectElement._SetcodeType(const aValue : UnicodeString);
  98058. begin
  98059. WriteJSPropertyUnicodeString('codeType',aValue);
  98060. end;
  98061. procedure TJSHTMLObjectElement._Setborder(const aValue : UnicodeString);
  98062. begin
  98063. WriteJSPropertyUnicodeString('border',aValue);
  98064. end;
  98065. constructor TJSHTMLObjectElement.Create;
  98066. begin
  98067. JOBCreate([]);
  98068. end;
  98069. function TJSHTMLObjectElement.checkValidity: Boolean;
  98070. begin
  98071. Result:=InvokeJSBooleanResult('checkValidity',[]);
  98072. end;
  98073. function TJSHTMLObjectElement.reportValidity: Boolean;
  98074. begin
  98075. Result:=InvokeJSBooleanResult('reportValidity',[]);
  98076. end;
  98077. procedure TJSHTMLObjectElement.setCustomValidity(const aError: UnicodeString);
  98078. begin
  98079. InvokeJSNoResult('setCustomValidity',[aError]);
  98080. end;
  98081. function TJSHTMLObjectElement.getSVGDocument: IJSDocument;
  98082. begin
  98083. Result:=InvokeJSObjectResult('getSVGDocument',[],TJSDocument) as IJSDocument;
  98084. end;
  98085. class function TJSHTMLObjectElement.JSClassName: UnicodeString;
  98086. begin
  98087. Result:='HTMLObjectElement';
  98088. end;
  98089. class function TJSHTMLObjectElement.Cast(const Intf: IJSObject): IJSHTMLObjectElement;
  98090. begin
  98091. Result:=TJSHTMLObjectElement.JOBCast(Intf);
  98092. end;
  98093. class function TJSMozObjectLoadingContent.JSClassName: UnicodeString;
  98094. begin
  98095. Result:='MozObjectLoadingContent';
  98096. end;
  98097. class function TJSMozObjectLoadingContent.Cast(const Intf: IJSObject): IJSMozObjectLoadingContent;
  98098. begin
  98099. Result:=TJSMozObjectLoadingContent.JOBCast(Intf);
  98100. end;
  98101. function TJSHTMLOListElement._Getreversed: Boolean;
  98102. begin
  98103. Result:=ReadJSPropertyBoolean('reversed');
  98104. end;
  98105. function TJSHTMLOListElement._Getstart: LongInt;
  98106. begin
  98107. Result:=ReadJSPropertyLongInt('start');
  98108. end;
  98109. function TJSHTMLOListElement._Gettype_: UnicodeString;
  98110. begin
  98111. Result:=ReadJSPropertyUnicodeString('type');
  98112. end;
  98113. function TJSHTMLOListElement._Getcompact: Boolean;
  98114. begin
  98115. Result:=ReadJSPropertyBoolean('compact');
  98116. end;
  98117. procedure TJSHTMLOListElement._Setreversed(const aValue : Boolean);
  98118. begin
  98119. WriteJSPropertyBoolean('reversed',aValue);
  98120. end;
  98121. procedure TJSHTMLOListElement._Setstart(const aValue : LongInt);
  98122. begin
  98123. WriteJSPropertyLongInt('start',aValue);
  98124. end;
  98125. procedure TJSHTMLOListElement._Settype_(const aValue : UnicodeString);
  98126. begin
  98127. WriteJSPropertyUnicodeString('type',aValue);
  98128. end;
  98129. procedure TJSHTMLOListElement._Setcompact(const aValue : Boolean);
  98130. begin
  98131. WriteJSPropertyBoolean('compact',aValue);
  98132. end;
  98133. constructor TJSHTMLOListElement.Create;
  98134. begin
  98135. JOBCreate([]);
  98136. end;
  98137. class function TJSHTMLOListElement.JSClassName: UnicodeString;
  98138. begin
  98139. Result:='HTMLOListElement';
  98140. end;
  98141. class function TJSHTMLOListElement.Cast(const Intf: IJSObject): IJSHTMLOListElement;
  98142. begin
  98143. Result:=TJSHTMLOListElement.JOBCast(Intf);
  98144. end;
  98145. function TJSHTMLOptGroupElement._Getdisabled: Boolean;
  98146. begin
  98147. Result:=ReadJSPropertyBoolean('disabled');
  98148. end;
  98149. function TJSHTMLOptGroupElement._Getlabel_: UnicodeString;
  98150. begin
  98151. Result:=ReadJSPropertyUnicodeString('label');
  98152. end;
  98153. procedure TJSHTMLOptGroupElement._Setdisabled(const aValue : Boolean);
  98154. begin
  98155. WriteJSPropertyBoolean('disabled',aValue);
  98156. end;
  98157. procedure TJSHTMLOptGroupElement._Setlabel_(const aValue : UnicodeString);
  98158. begin
  98159. WriteJSPropertyUnicodeString('label',aValue);
  98160. end;
  98161. constructor TJSHTMLOptGroupElement.Create;
  98162. begin
  98163. JOBCreate([]);
  98164. end;
  98165. class function TJSHTMLOptGroupElement.JSClassName: UnicodeString;
  98166. begin
  98167. Result:='HTMLOptGroupElement';
  98168. end;
  98169. class function TJSHTMLOptGroupElement.Cast(const Intf: IJSObject): IJSHTMLOptGroupElement;
  98170. begin
  98171. Result:=TJSHTMLOptGroupElement.JOBCast(Intf);
  98172. end;
  98173. function TJSHTMLOptionElement._Getdisabled: Boolean;
  98174. begin
  98175. Result:=ReadJSPropertyBoolean('disabled');
  98176. end;
  98177. function TJSHTMLOptionElement._Getform: IJSHTMLFormElement;
  98178. begin
  98179. Result:=ReadJSPropertyObject('form',TJSHTMLFormElement) as IJSHTMLFormElement;
  98180. end;
  98181. function TJSHTMLOptionElement._Getlabel_: UnicodeString;
  98182. begin
  98183. Result:=ReadJSPropertyUnicodeString('label');
  98184. end;
  98185. function TJSHTMLOptionElement._GetdefaultSelected: Boolean;
  98186. begin
  98187. Result:=ReadJSPropertyBoolean('defaultSelected');
  98188. end;
  98189. function TJSHTMLOptionElement._Getselected: Boolean;
  98190. begin
  98191. Result:=ReadJSPropertyBoolean('selected');
  98192. end;
  98193. function TJSHTMLOptionElement._Getvalue: UnicodeString;
  98194. begin
  98195. Result:=ReadJSPropertyUnicodeString('value');
  98196. end;
  98197. function TJSHTMLOptionElement._Gettext: UnicodeString;
  98198. begin
  98199. Result:=ReadJSPropertyUnicodeString('text');
  98200. end;
  98201. function TJSHTMLOptionElement._Getindex: LongInt;
  98202. begin
  98203. Result:=ReadJSPropertyLongInt('index');
  98204. end;
  98205. procedure TJSHTMLOptionElement._Setdisabled(const aValue : Boolean);
  98206. begin
  98207. WriteJSPropertyBoolean('disabled',aValue);
  98208. end;
  98209. procedure TJSHTMLOptionElement._Setlabel_(const aValue : UnicodeString);
  98210. begin
  98211. WriteJSPropertyUnicodeString('label',aValue);
  98212. end;
  98213. procedure TJSHTMLOptionElement._SetdefaultSelected(const aValue : Boolean);
  98214. begin
  98215. WriteJSPropertyBoolean('defaultSelected',aValue);
  98216. end;
  98217. procedure TJSHTMLOptionElement._Setselected(const aValue : Boolean);
  98218. begin
  98219. WriteJSPropertyBoolean('selected',aValue);
  98220. end;
  98221. procedure TJSHTMLOptionElement._Setvalue(const aValue : UnicodeString);
  98222. begin
  98223. WriteJSPropertyUnicodeString('value',aValue);
  98224. end;
  98225. procedure TJSHTMLOptionElement._Settext(const aValue : UnicodeString);
  98226. begin
  98227. WriteJSPropertyUnicodeString('text',aValue);
  98228. end;
  98229. constructor TJSHTMLOptionElement.Create;
  98230. begin
  98231. JOBCreate([]);
  98232. end;
  98233. class function TJSHTMLOptionElement.JSClassName: UnicodeString;
  98234. begin
  98235. Result:='HTMLOptionElement';
  98236. end;
  98237. class function TJSHTMLOptionElement.Cast(const Intf: IJSObject): IJSHTMLOptionElement;
  98238. begin
  98239. Result:=TJSHTMLOptionElement.JOBCast(Intf);
  98240. end;
  98241. function TJSHTMLOptionsCollection._Getlength_2: Cardinal;
  98242. begin
  98243. Result:=ReadJSPropertyInt64('length');
  98244. end;
  98245. function TJSHTMLOptionsCollection._GetselectedIndex: LongInt;
  98246. begin
  98247. Result:=ReadJSPropertyLongInt('selectedIndex');
  98248. end;
  98249. procedure TJSHTMLOptionsCollection._Setlength_2(const aValue : Cardinal);
  98250. begin
  98251. WriteJSPropertyDouble('length',aValue);
  98252. end;
  98253. procedure TJSHTMLOptionsCollection._SetselectedIndex(const aValue : LongInt);
  98254. begin
  98255. WriteJSPropertyLongInt('selectedIndex',aValue);
  98256. end;
  98257. procedure TJSHTMLOptionsCollection.SetDefault(aIndex: Cardinal; aOption: IJSHTMLOptionElement);
  98258. begin
  98259. InvokeJSNoResult('',[aIndex,aOption]);
  98260. end;
  98261. procedure TJSHTMLOptionsCollection.add(aElement: IJSHTMLOptGroupElement; aBefore: IJSHTMLElement);
  98262. begin
  98263. InvokeJSNoResult('add',[aElement,aBefore]);
  98264. end;
  98265. procedure TJSHTMLOptionsCollection.add(aElement: IJSHTMLOptionElement; aBefore: IJSHTMLElement);
  98266. begin
  98267. InvokeJSNoResult('add',[aElement,aBefore]);
  98268. end;
  98269. procedure TJSHTMLOptionsCollection.add(aElement: IJSHTMLOptionElement);
  98270. begin
  98271. InvokeJSNoResult('add',[aElement]);
  98272. end;
  98273. procedure TJSHTMLOptionsCollection.add(aElement: IJSHTMLOptGroupElement);
  98274. begin
  98275. InvokeJSNoResult('add',[aElement]);
  98276. end;
  98277. procedure TJSHTMLOptionsCollection.add(aElement: IJSHTMLOptionElement; aBefore: LongInt);
  98278. begin
  98279. InvokeJSNoResult('add',[aElement,aBefore]);
  98280. end;
  98281. procedure TJSHTMLOptionsCollection.add(aElement: IJSHTMLOptGroupElement; aBefore: LongInt);
  98282. begin
  98283. InvokeJSNoResult('add',[aElement,aBefore]);
  98284. end;
  98285. procedure TJSHTMLOptionsCollection.remove(aIndex: LongInt);
  98286. begin
  98287. InvokeJSNoResult('remove',[aIndex]);
  98288. end;
  98289. class function TJSHTMLOptionsCollection.JSClassName: UnicodeString;
  98290. begin
  98291. Result:='HTMLOptionsCollection';
  98292. end;
  98293. class function TJSHTMLOptionsCollection.Cast(const Intf: IJSObject): IJSHTMLOptionsCollection;
  98294. begin
  98295. Result:=TJSHTMLOptionsCollection.JOBCast(Intf);
  98296. end;
  98297. function TJSHTMLOutputElement._GethtmlFor: IJSDOMTokenList;
  98298. begin
  98299. Result:=ReadJSPropertyObject('htmlFor',TJSDOMTokenList) as IJSDOMTokenList;
  98300. end;
  98301. function TJSHTMLOutputElement._Getform: IJSHTMLFormElement;
  98302. begin
  98303. Result:=ReadJSPropertyObject('form',TJSHTMLFormElement) as IJSHTMLFormElement;
  98304. end;
  98305. function TJSHTMLOutputElement._Getname: UnicodeString;
  98306. begin
  98307. Result:=ReadJSPropertyUnicodeString('name');
  98308. end;
  98309. function TJSHTMLOutputElement._Gettype_: UnicodeString;
  98310. begin
  98311. Result:=ReadJSPropertyUnicodeString('type');
  98312. end;
  98313. function TJSHTMLOutputElement._GetdefaultValue: UnicodeString;
  98314. begin
  98315. Result:=ReadJSPropertyUnicodeString('defaultValue');
  98316. end;
  98317. function TJSHTMLOutputElement._Getvalue: UnicodeString;
  98318. begin
  98319. Result:=ReadJSPropertyUnicodeString('value');
  98320. end;
  98321. function TJSHTMLOutputElement._GetwillValidate: Boolean;
  98322. begin
  98323. Result:=ReadJSPropertyBoolean('willValidate');
  98324. end;
  98325. function TJSHTMLOutputElement._Getvalidity: IJSValidityState;
  98326. begin
  98327. Result:=ReadJSPropertyObject('validity',TJSValidityState) as IJSValidityState;
  98328. end;
  98329. function TJSHTMLOutputElement._GetvalidationMessage: UnicodeString;
  98330. begin
  98331. Result:=ReadJSPropertyUnicodeString('validationMessage');
  98332. end;
  98333. function TJSHTMLOutputElement._Getlabels: IJSNodeList;
  98334. begin
  98335. Result:=ReadJSPropertyObject('labels',TJSNodeList) as IJSNodeList;
  98336. end;
  98337. procedure TJSHTMLOutputElement._Setname(const aValue : UnicodeString);
  98338. begin
  98339. WriteJSPropertyUnicodeString('name',aValue);
  98340. end;
  98341. procedure TJSHTMLOutputElement._SetdefaultValue(const aValue : UnicodeString);
  98342. begin
  98343. WriteJSPropertyUnicodeString('defaultValue',aValue);
  98344. end;
  98345. procedure TJSHTMLOutputElement._Setvalue(const aValue : UnicodeString);
  98346. begin
  98347. WriteJSPropertyUnicodeString('value',aValue);
  98348. end;
  98349. constructor TJSHTMLOutputElement.Create;
  98350. begin
  98351. JOBCreate([]);
  98352. end;
  98353. function TJSHTMLOutputElement.checkValidity: Boolean;
  98354. begin
  98355. Result:=InvokeJSBooleanResult('checkValidity',[]);
  98356. end;
  98357. function TJSHTMLOutputElement.reportValidity: Boolean;
  98358. begin
  98359. Result:=InvokeJSBooleanResult('reportValidity',[]);
  98360. end;
  98361. procedure TJSHTMLOutputElement.setCustomValidity(const aError: UnicodeString);
  98362. begin
  98363. InvokeJSNoResult('setCustomValidity',[aError]);
  98364. end;
  98365. class function TJSHTMLOutputElement.JSClassName: UnicodeString;
  98366. begin
  98367. Result:='HTMLOutputElement';
  98368. end;
  98369. class function TJSHTMLOutputElement.Cast(const Intf: IJSObject): IJSHTMLOutputElement;
  98370. begin
  98371. Result:=TJSHTMLOutputElement.JOBCast(Intf);
  98372. end;
  98373. function TJSHTMLParagraphElement._Getalign: UnicodeString;
  98374. begin
  98375. Result:=ReadJSPropertyUnicodeString('align');
  98376. end;
  98377. procedure TJSHTMLParagraphElement._Setalign(const aValue : UnicodeString);
  98378. begin
  98379. WriteJSPropertyUnicodeString('align',aValue);
  98380. end;
  98381. constructor TJSHTMLParagraphElement.Create;
  98382. begin
  98383. JOBCreate([]);
  98384. end;
  98385. class function TJSHTMLParagraphElement.JSClassName: UnicodeString;
  98386. begin
  98387. Result:='HTMLParagraphElement';
  98388. end;
  98389. class function TJSHTMLParagraphElement.Cast(const Intf: IJSObject): IJSHTMLParagraphElement;
  98390. begin
  98391. Result:=TJSHTMLParagraphElement.JOBCast(Intf);
  98392. end;
  98393. function TJSHTMLParamElement._Getname: UnicodeString;
  98394. begin
  98395. Result:=ReadJSPropertyUnicodeString('name');
  98396. end;
  98397. function TJSHTMLParamElement._Getvalue: UnicodeString;
  98398. begin
  98399. Result:=ReadJSPropertyUnicodeString('value');
  98400. end;
  98401. function TJSHTMLParamElement._Gettype_: UnicodeString;
  98402. begin
  98403. Result:=ReadJSPropertyUnicodeString('type');
  98404. end;
  98405. function TJSHTMLParamElement._GetvalueType: UnicodeString;
  98406. begin
  98407. Result:=ReadJSPropertyUnicodeString('valueType');
  98408. end;
  98409. procedure TJSHTMLParamElement._Setname(const aValue : UnicodeString);
  98410. begin
  98411. WriteJSPropertyUnicodeString('name',aValue);
  98412. end;
  98413. procedure TJSHTMLParamElement._Setvalue(const aValue : UnicodeString);
  98414. begin
  98415. WriteJSPropertyUnicodeString('value',aValue);
  98416. end;
  98417. procedure TJSHTMLParamElement._Settype_(const aValue : UnicodeString);
  98418. begin
  98419. WriteJSPropertyUnicodeString('type',aValue);
  98420. end;
  98421. procedure TJSHTMLParamElement._SetvalueType(const aValue : UnicodeString);
  98422. begin
  98423. WriteJSPropertyUnicodeString('valueType',aValue);
  98424. end;
  98425. constructor TJSHTMLParamElement.Create;
  98426. begin
  98427. JOBCreate([]);
  98428. end;
  98429. class function TJSHTMLParamElement.JSClassName: UnicodeString;
  98430. begin
  98431. Result:='HTMLParamElement';
  98432. end;
  98433. class function TJSHTMLParamElement.Cast(const Intf: IJSObject): IJSHTMLParamElement;
  98434. begin
  98435. Result:=TJSHTMLParamElement.JOBCast(Intf);
  98436. end;
  98437. constructor TJSHTMLPictureElement.Create;
  98438. begin
  98439. JOBCreate([]);
  98440. end;
  98441. class function TJSHTMLPictureElement.JSClassName: UnicodeString;
  98442. begin
  98443. Result:='HTMLPictureElement';
  98444. end;
  98445. class function TJSHTMLPictureElement.Cast(const Intf: IJSObject): IJSHTMLPictureElement;
  98446. begin
  98447. Result:=TJSHTMLPictureElement.JOBCast(Intf);
  98448. end;
  98449. function TJSHTMLPreElement._Getwidth: LongInt;
  98450. begin
  98451. Result:=ReadJSPropertyLongInt('width');
  98452. end;
  98453. procedure TJSHTMLPreElement._Setwidth(const aValue : LongInt);
  98454. begin
  98455. WriteJSPropertyLongInt('width',aValue);
  98456. end;
  98457. constructor TJSHTMLPreElement.Create;
  98458. begin
  98459. JOBCreate([]);
  98460. end;
  98461. class function TJSHTMLPreElement.JSClassName: UnicodeString;
  98462. begin
  98463. Result:='HTMLPreElement';
  98464. end;
  98465. class function TJSHTMLPreElement.Cast(const Intf: IJSObject): IJSHTMLPreElement;
  98466. begin
  98467. Result:=TJSHTMLPreElement.JOBCast(Intf);
  98468. end;
  98469. function TJSHTMLProgressElement._Getvalue: Double;
  98470. begin
  98471. Result:=ReadJSPropertyDouble('value');
  98472. end;
  98473. function TJSHTMLProgressElement._Getmax: Double;
  98474. begin
  98475. Result:=ReadJSPropertyDouble('max');
  98476. end;
  98477. function TJSHTMLProgressElement._Getposition: Double;
  98478. begin
  98479. Result:=ReadJSPropertyDouble('position');
  98480. end;
  98481. function TJSHTMLProgressElement._Getlabels: IJSNodeList;
  98482. begin
  98483. Result:=ReadJSPropertyObject('labels',TJSNodeList) as IJSNodeList;
  98484. end;
  98485. procedure TJSHTMLProgressElement._Setvalue(const aValue : Double);
  98486. begin
  98487. WriteJSPropertyDouble('value',aValue);
  98488. end;
  98489. procedure TJSHTMLProgressElement._Setmax(const aValue : Double);
  98490. begin
  98491. WriteJSPropertyDouble('max',aValue);
  98492. end;
  98493. constructor TJSHTMLProgressElement.Create;
  98494. begin
  98495. JOBCreate([]);
  98496. end;
  98497. class function TJSHTMLProgressElement.JSClassName: UnicodeString;
  98498. begin
  98499. Result:='HTMLProgressElement';
  98500. end;
  98501. class function TJSHTMLProgressElement.Cast(const Intf: IJSObject): IJSHTMLProgressElement;
  98502. begin
  98503. Result:=TJSHTMLProgressElement.JOBCast(Intf);
  98504. end;
  98505. function TJSHTMLQuoteElement._Getcite: UnicodeString;
  98506. begin
  98507. Result:=ReadJSPropertyUnicodeString('cite');
  98508. end;
  98509. procedure TJSHTMLQuoteElement._Setcite(const aValue : UnicodeString);
  98510. begin
  98511. WriteJSPropertyUnicodeString('cite',aValue);
  98512. end;
  98513. constructor TJSHTMLQuoteElement.Create;
  98514. begin
  98515. JOBCreate([]);
  98516. end;
  98517. class function TJSHTMLQuoteElement.JSClassName: UnicodeString;
  98518. begin
  98519. Result:='HTMLQuoteElement';
  98520. end;
  98521. class function TJSHTMLQuoteElement.Cast(const Intf: IJSObject): IJSHTMLQuoteElement;
  98522. begin
  98523. Result:=TJSHTMLQuoteElement.JOBCast(Intf);
  98524. end;
  98525. function TJSHTMLScriptElement._Getsrc: UnicodeString;
  98526. begin
  98527. Result:=ReadJSPropertyUnicodeString('src');
  98528. end;
  98529. function TJSHTMLScriptElement._Gettype_: UnicodeString;
  98530. begin
  98531. Result:=ReadJSPropertyUnicodeString('type');
  98532. end;
  98533. function TJSHTMLScriptElement._GetnoModule: Boolean;
  98534. begin
  98535. Result:=ReadJSPropertyBoolean('noModule');
  98536. end;
  98537. function TJSHTMLScriptElement._Getcharset: UnicodeString;
  98538. begin
  98539. Result:=ReadJSPropertyUnicodeString('charset');
  98540. end;
  98541. function TJSHTMLScriptElement._Getasync: Boolean;
  98542. begin
  98543. Result:=ReadJSPropertyBoolean('async');
  98544. end;
  98545. function TJSHTMLScriptElement._Getdefer: Boolean;
  98546. begin
  98547. Result:=ReadJSPropertyBoolean('defer');
  98548. end;
  98549. function TJSHTMLScriptElement._GetcrossOrigin: UnicodeString;
  98550. begin
  98551. Result:=ReadJSPropertyUnicodeString('crossOrigin');
  98552. end;
  98553. function TJSHTMLScriptElement._GetreferrerPolicy: UnicodeString;
  98554. begin
  98555. Result:=ReadJSPropertyUnicodeString('referrerPolicy');
  98556. end;
  98557. function TJSHTMLScriptElement._Gettext: UnicodeString;
  98558. begin
  98559. Result:=ReadJSPropertyUnicodeString('text');
  98560. end;
  98561. function TJSHTMLScriptElement._Getblocking: IJSDOMTokenList;
  98562. begin
  98563. Result:=ReadJSPropertyObject('blocking',TJSDOMTokenList) as IJSDOMTokenList;
  98564. end;
  98565. function TJSHTMLScriptElement._GetfetchPriority: UnicodeString;
  98566. begin
  98567. Result:=ReadJSPropertyUnicodeString('fetchPriority');
  98568. end;
  98569. function TJSHTMLScriptElement._Getevent: UnicodeString;
  98570. begin
  98571. Result:=ReadJSPropertyUnicodeString('event');
  98572. end;
  98573. function TJSHTMLScriptElement._GethtmlFor: UnicodeString;
  98574. begin
  98575. Result:=ReadJSPropertyUnicodeString('htmlFor');
  98576. end;
  98577. function TJSHTMLScriptElement._Getintegrity: UnicodeString;
  98578. begin
  98579. Result:=ReadJSPropertyUnicodeString('integrity');
  98580. end;
  98581. procedure TJSHTMLScriptElement._Setsrc(const aValue : UnicodeString);
  98582. begin
  98583. WriteJSPropertyUnicodeString('src',aValue);
  98584. end;
  98585. procedure TJSHTMLScriptElement._Settype_(const aValue : UnicodeString);
  98586. begin
  98587. WriteJSPropertyUnicodeString('type',aValue);
  98588. end;
  98589. procedure TJSHTMLScriptElement._SetnoModule(const aValue : Boolean);
  98590. begin
  98591. WriteJSPropertyBoolean('noModule',aValue);
  98592. end;
  98593. procedure TJSHTMLScriptElement._Setcharset(const aValue : UnicodeString);
  98594. begin
  98595. WriteJSPropertyUnicodeString('charset',aValue);
  98596. end;
  98597. procedure TJSHTMLScriptElement._Setasync(const aValue : Boolean);
  98598. begin
  98599. WriteJSPropertyBoolean('async',aValue);
  98600. end;
  98601. procedure TJSHTMLScriptElement._Setdefer(const aValue : Boolean);
  98602. begin
  98603. WriteJSPropertyBoolean('defer',aValue);
  98604. end;
  98605. procedure TJSHTMLScriptElement._SetcrossOrigin(const aValue : UnicodeString);
  98606. begin
  98607. WriteJSPropertyUnicodeString('crossOrigin',aValue);
  98608. end;
  98609. procedure TJSHTMLScriptElement._SetreferrerPolicy(const aValue : UnicodeString);
  98610. begin
  98611. WriteJSPropertyUnicodeString('referrerPolicy',aValue);
  98612. end;
  98613. procedure TJSHTMLScriptElement._Settext(const aValue : UnicodeString);
  98614. begin
  98615. WriteJSPropertyUnicodeString('text',aValue);
  98616. end;
  98617. procedure TJSHTMLScriptElement._SetfetchPriority(const aValue : UnicodeString);
  98618. begin
  98619. WriteJSPropertyUnicodeString('fetchPriority',aValue);
  98620. end;
  98621. procedure TJSHTMLScriptElement._Setevent(const aValue : UnicodeString);
  98622. begin
  98623. WriteJSPropertyUnicodeString('event',aValue);
  98624. end;
  98625. procedure TJSHTMLScriptElement._SethtmlFor(const aValue : UnicodeString);
  98626. begin
  98627. WriteJSPropertyUnicodeString('htmlFor',aValue);
  98628. end;
  98629. procedure TJSHTMLScriptElement._Setintegrity(const aValue : UnicodeString);
  98630. begin
  98631. WriteJSPropertyUnicodeString('integrity',aValue);
  98632. end;
  98633. constructor TJSHTMLScriptElement.Create;
  98634. begin
  98635. JOBCreate([]);
  98636. end;
  98637. function TJSHTMLScriptElement.supports(const aType_: UnicodeString): Boolean;
  98638. begin
  98639. Result:=InvokeJSBooleanResult('supports',[aType_]);
  98640. end;
  98641. class function TJSHTMLScriptElement.JSClassName: UnicodeString;
  98642. begin
  98643. Result:='HTMLScriptElement';
  98644. end;
  98645. class function TJSHTMLScriptElement.Cast(const Intf: IJSObject): IJSHTMLScriptElement;
  98646. begin
  98647. Result:=TJSHTMLScriptElement.JOBCast(Intf);
  98648. end;
  98649. function TJSHTMLSelectElement._Getautocomplete: UnicodeString;
  98650. begin
  98651. Result:=ReadJSPropertyUnicodeString('autocomplete');
  98652. end;
  98653. function TJSHTMLSelectElement._Getdisabled: Boolean;
  98654. begin
  98655. Result:=ReadJSPropertyBoolean('disabled');
  98656. end;
  98657. function TJSHTMLSelectElement._Getform: IJSHTMLFormElement;
  98658. begin
  98659. Result:=ReadJSPropertyObject('form',TJSHTMLFormElement) as IJSHTMLFormElement;
  98660. end;
  98661. function TJSHTMLSelectElement._Getmultiple: Boolean;
  98662. begin
  98663. Result:=ReadJSPropertyBoolean('multiple');
  98664. end;
  98665. function TJSHTMLSelectElement._Getname: UnicodeString;
  98666. begin
  98667. Result:=ReadJSPropertyUnicodeString('name');
  98668. end;
  98669. function TJSHTMLSelectElement._Getrequired: Boolean;
  98670. begin
  98671. Result:=ReadJSPropertyBoolean('required');
  98672. end;
  98673. function TJSHTMLSelectElement._Getsize: Cardinal;
  98674. begin
  98675. Result:=ReadJSPropertyInt64('size');
  98676. end;
  98677. function TJSHTMLSelectElement._Gettype_: UnicodeString;
  98678. begin
  98679. Result:=ReadJSPropertyUnicodeString('type');
  98680. end;
  98681. function TJSHTMLSelectElement._Getoptions: IJSHTMLOptionsCollection;
  98682. begin
  98683. Result:=ReadJSPropertyObject('options',TJSHTMLOptionsCollection) as IJSHTMLOptionsCollection;
  98684. end;
  98685. function TJSHTMLSelectElement._Getlength_: Cardinal;
  98686. begin
  98687. Result:=ReadJSPropertyInt64('length');
  98688. end;
  98689. function TJSHTMLSelectElement._GetselectedOptions: IJSHTMLCollection;
  98690. begin
  98691. Result:=ReadJSPropertyObject('selectedOptions',TJSHTMLCollection) as IJSHTMLCollection;
  98692. end;
  98693. function TJSHTMLSelectElement._GetselectedIndex: LongInt;
  98694. begin
  98695. Result:=ReadJSPropertyLongInt('selectedIndex');
  98696. end;
  98697. function TJSHTMLSelectElement._Getvalue: UnicodeString;
  98698. begin
  98699. Result:=ReadJSPropertyUnicodeString('value');
  98700. end;
  98701. function TJSHTMLSelectElement._GetwillValidate: Boolean;
  98702. begin
  98703. Result:=ReadJSPropertyBoolean('willValidate');
  98704. end;
  98705. function TJSHTMLSelectElement._Getvalidity: IJSValidityState;
  98706. begin
  98707. Result:=ReadJSPropertyObject('validity',TJSValidityState) as IJSValidityState;
  98708. end;
  98709. function TJSHTMLSelectElement._GetvalidationMessage: UnicodeString;
  98710. begin
  98711. Result:=ReadJSPropertyUnicodeString('validationMessage');
  98712. end;
  98713. function TJSHTMLSelectElement._Getlabels: IJSNodeList;
  98714. begin
  98715. Result:=ReadJSPropertyObject('labels',TJSNodeList) as IJSNodeList;
  98716. end;
  98717. procedure TJSHTMLSelectElement._Setautocomplete(const aValue : UnicodeString);
  98718. begin
  98719. WriteJSPropertyUnicodeString('autocomplete',aValue);
  98720. end;
  98721. procedure TJSHTMLSelectElement._Setdisabled(const aValue : Boolean);
  98722. begin
  98723. WriteJSPropertyBoolean('disabled',aValue);
  98724. end;
  98725. procedure TJSHTMLSelectElement._Setmultiple(const aValue : Boolean);
  98726. begin
  98727. WriteJSPropertyBoolean('multiple',aValue);
  98728. end;
  98729. procedure TJSHTMLSelectElement._Setname(const aValue : UnicodeString);
  98730. begin
  98731. WriteJSPropertyUnicodeString('name',aValue);
  98732. end;
  98733. procedure TJSHTMLSelectElement._Setrequired(const aValue : Boolean);
  98734. begin
  98735. WriteJSPropertyBoolean('required',aValue);
  98736. end;
  98737. procedure TJSHTMLSelectElement._Setsize(const aValue : Cardinal);
  98738. begin
  98739. WriteJSPropertyDouble('size',aValue);
  98740. end;
  98741. procedure TJSHTMLSelectElement._Setlength_(const aValue : Cardinal);
  98742. begin
  98743. WriteJSPropertyDouble('length',aValue);
  98744. end;
  98745. procedure TJSHTMLSelectElement._SetselectedIndex(const aValue : LongInt);
  98746. begin
  98747. WriteJSPropertyLongInt('selectedIndex',aValue);
  98748. end;
  98749. procedure TJSHTMLSelectElement._Setvalue(const aValue : UnicodeString);
  98750. begin
  98751. WriteJSPropertyUnicodeString('value',aValue);
  98752. end;
  98753. constructor TJSHTMLSelectElement.Create;
  98754. begin
  98755. JOBCreate([]);
  98756. end;
  98757. function TJSHTMLSelectElement.item(aIndex: Cardinal): IJSElement;
  98758. begin
  98759. Result:=InvokeJSObjectResult('item',[aIndex],TJSElement) as IJSElement;
  98760. end;
  98761. function TJSHTMLSelectElement.namedItem(const aName: UnicodeString): IJSHTMLOptionElement;
  98762. begin
  98763. Result:=InvokeJSObjectResult('namedItem',[aName],TJSHTMLOptionElement) as IJSHTMLOptionElement;
  98764. end;
  98765. procedure TJSHTMLSelectElement.add(aElement: IJSHTMLOptGroupElement; aBefore: IJSHTMLElement);
  98766. begin
  98767. InvokeJSNoResult('add',[aElement,aBefore]);
  98768. end;
  98769. procedure TJSHTMLSelectElement.add(aElement: IJSHTMLOptionElement; aBefore: IJSHTMLElement);
  98770. begin
  98771. InvokeJSNoResult('add',[aElement,aBefore]);
  98772. end;
  98773. procedure TJSHTMLSelectElement.add(aElement: IJSHTMLOptionElement);
  98774. begin
  98775. InvokeJSNoResult('add',[aElement]);
  98776. end;
  98777. procedure TJSHTMLSelectElement.add(aElement: IJSHTMLOptGroupElement);
  98778. begin
  98779. InvokeJSNoResult('add',[aElement]);
  98780. end;
  98781. procedure TJSHTMLSelectElement.add(aElement: IJSHTMLOptionElement; aBefore: LongInt);
  98782. begin
  98783. InvokeJSNoResult('add',[aElement,aBefore]);
  98784. end;
  98785. procedure TJSHTMLSelectElement.add(aElement: IJSHTMLOptGroupElement; aBefore: LongInt);
  98786. begin
  98787. InvokeJSNoResult('add',[aElement,aBefore]);
  98788. end;
  98789. procedure TJSHTMLSelectElement.remove(aIndex: LongInt);
  98790. begin
  98791. InvokeJSNoResult('remove',[aIndex]);
  98792. end;
  98793. procedure TJSHTMLSelectElement.SetDefault(aIndex: Cardinal; aOption: IJSHTMLOptionElement);
  98794. begin
  98795. InvokeJSNoResult('',[aIndex,aOption]);
  98796. end;
  98797. function TJSHTMLSelectElement.checkValidity: Boolean;
  98798. begin
  98799. Result:=InvokeJSBooleanResult('checkValidity',[]);
  98800. end;
  98801. function TJSHTMLSelectElement.reportValidity: Boolean;
  98802. begin
  98803. Result:=InvokeJSBooleanResult('reportValidity',[]);
  98804. end;
  98805. procedure TJSHTMLSelectElement.setCustomValidity(const aError: UnicodeString);
  98806. begin
  98807. InvokeJSNoResult('setCustomValidity',[aError]);
  98808. end;
  98809. procedure TJSHTMLSelectElement.showPicker;
  98810. begin
  98811. InvokeJSNoResult('showPicker',[]);
  98812. end;
  98813. procedure TJSHTMLSelectElement.remove;
  98814. begin
  98815. InvokeJSNoResult('remove',[]);
  98816. end;
  98817. class function TJSHTMLSelectElement.JSClassName: UnicodeString;
  98818. begin
  98819. Result:='HTMLSelectElement';
  98820. end;
  98821. class function TJSHTMLSelectElement.Cast(const Intf: IJSObject): IJSHTMLSelectElement;
  98822. begin
  98823. Result:=TJSHTMLSelectElement.JOBCast(Intf);
  98824. end;
  98825. function TJSHTMLSlotElement._Getname: UnicodeString;
  98826. begin
  98827. Result:=ReadJSPropertyUnicodeString('name');
  98828. end;
  98829. procedure TJSHTMLSlotElement._Setname(const aValue : UnicodeString);
  98830. begin
  98831. WriteJSPropertyUnicodeString('name',aValue);
  98832. end;
  98833. constructor TJSHTMLSlotElement.Create;
  98834. begin
  98835. JOBCreate([]);
  98836. end;
  98837. function TJSHTMLSlotElement.assignedNodes(const aOptions: TJSAssignedNodesOptions): TIJSNodeDynArray;
  98838. begin
  98839. Result:=InvokeJSObjectResult('assignedNodes',[aOptions],TJSArray) as TIJSNodeDynArray;
  98840. end;
  98841. function TJSHTMLSlotElement.assignedNodes: TIJSNodeDynArray;
  98842. begin
  98843. Result:=InvokeJSObjectResult('assignedNodes',[],TJSArray) as TIJSNodeDynArray;
  98844. end;
  98845. function TJSHTMLSlotElement.assignedElements(const aOptions: TJSAssignedNodesOptions): TJSElementDynArray;
  98846. begin
  98847. Result:=InvokeJSObjectResult('assignedElements',[aOptions],TJSArray) as TJSElementDynArray;
  98848. end;
  98849. function TJSHTMLSlotElement.assignedElements: TJSElementDynArray;
  98850. begin
  98851. Result:=InvokeJSObjectResult('assignedElements',[],TJSArray) as TJSElementDynArray;
  98852. end;
  98853. procedure TJSHTMLSlotElement.assign(aNodes: IJSElement){; ToDo:varargs};
  98854. begin
  98855. InvokeJSNoResult('assign',[aNodes]);
  98856. end;
  98857. procedure TJSHTMLSlotElement.assign(aNodes: IJSText){; ToDo:varargs};
  98858. begin
  98859. InvokeJSNoResult('assign',[aNodes]);
  98860. end;
  98861. class function TJSHTMLSlotElement.JSClassName: UnicodeString;
  98862. begin
  98863. Result:='HTMLSlotElement';
  98864. end;
  98865. class function TJSHTMLSlotElement.Cast(const Intf: IJSObject): IJSHTMLSlotElement;
  98866. begin
  98867. Result:=TJSHTMLSlotElement.JOBCast(Intf);
  98868. end;
  98869. function TJSAssignedNodesOptions._Getflatten: Boolean;
  98870. begin
  98871. Result:=ReadJSPropertyBoolean('flatten');
  98872. end;
  98873. procedure TJSAssignedNodesOptions._Setflatten(const aValue : Boolean);
  98874. begin
  98875. WriteJSPropertyBoolean('flatten',aValue);
  98876. end;
  98877. class function TJSAssignedNodesOptions.JSClassName: UnicodeString;
  98878. begin
  98879. Result:='Object';
  98880. end;
  98881. class function TJSAssignedNodesOptions.Cast(const Intf: IJSObject): IJSAssignedNodesOptions;
  98882. begin
  98883. Result:=TJSAssignedNodesOptions.JOBCast(Intf);
  98884. end;
  98885. function TJSHTMLSourceElement._Getsrc: UnicodeString;
  98886. begin
  98887. Result:=ReadJSPropertyUnicodeString('src');
  98888. end;
  98889. function TJSHTMLSourceElement._Gettype_: UnicodeString;
  98890. begin
  98891. Result:=ReadJSPropertyUnicodeString('type');
  98892. end;
  98893. function TJSHTMLSourceElement._Getsrcset: UnicodeString;
  98894. begin
  98895. Result:=ReadJSPropertyUnicodeString('srcset');
  98896. end;
  98897. function TJSHTMLSourceElement._Getsizes: UnicodeString;
  98898. begin
  98899. Result:=ReadJSPropertyUnicodeString('sizes');
  98900. end;
  98901. function TJSHTMLSourceElement._Getmedia: UnicodeString;
  98902. begin
  98903. Result:=ReadJSPropertyUnicodeString('media');
  98904. end;
  98905. function TJSHTMLSourceElement._Getwidth: Cardinal;
  98906. begin
  98907. Result:=ReadJSPropertyInt64('width');
  98908. end;
  98909. function TJSHTMLSourceElement._Getheight: Cardinal;
  98910. begin
  98911. Result:=ReadJSPropertyInt64('height');
  98912. end;
  98913. procedure TJSHTMLSourceElement._Setsrc(const aValue : UnicodeString);
  98914. begin
  98915. WriteJSPropertyUnicodeString('src',aValue);
  98916. end;
  98917. procedure TJSHTMLSourceElement._Settype_(const aValue : UnicodeString);
  98918. begin
  98919. WriteJSPropertyUnicodeString('type',aValue);
  98920. end;
  98921. procedure TJSHTMLSourceElement._Setsrcset(const aValue : UnicodeString);
  98922. begin
  98923. WriteJSPropertyUnicodeString('srcset',aValue);
  98924. end;
  98925. procedure TJSHTMLSourceElement._Setsizes(const aValue : UnicodeString);
  98926. begin
  98927. WriteJSPropertyUnicodeString('sizes',aValue);
  98928. end;
  98929. procedure TJSHTMLSourceElement._Setmedia(const aValue : UnicodeString);
  98930. begin
  98931. WriteJSPropertyUnicodeString('media',aValue);
  98932. end;
  98933. procedure TJSHTMLSourceElement._Setwidth(const aValue : Cardinal);
  98934. begin
  98935. WriteJSPropertyDouble('width',aValue);
  98936. end;
  98937. procedure TJSHTMLSourceElement._Setheight(const aValue : Cardinal);
  98938. begin
  98939. WriteJSPropertyDouble('height',aValue);
  98940. end;
  98941. constructor TJSHTMLSourceElement.Create;
  98942. begin
  98943. JOBCreate([]);
  98944. end;
  98945. class function TJSHTMLSourceElement.JSClassName: UnicodeString;
  98946. begin
  98947. Result:='HTMLSourceElement';
  98948. end;
  98949. class function TJSHTMLSourceElement.Cast(const Intf: IJSObject): IJSHTMLSourceElement;
  98950. begin
  98951. Result:=TJSHTMLSourceElement.JOBCast(Intf);
  98952. end;
  98953. constructor TJSHTMLSpanElement.Create;
  98954. begin
  98955. JOBCreate([]);
  98956. end;
  98957. class function TJSHTMLSpanElement.JSClassName: UnicodeString;
  98958. begin
  98959. Result:='HTMLSpanElement';
  98960. end;
  98961. class function TJSHTMLSpanElement.Cast(const Intf: IJSObject): IJSHTMLSpanElement;
  98962. begin
  98963. Result:=TJSHTMLSpanElement.JOBCast(Intf);
  98964. end;
  98965. function TJSHTMLStyleElement._Getdisabled: Boolean;
  98966. begin
  98967. Result:=ReadJSPropertyBoolean('disabled');
  98968. end;
  98969. function TJSHTMLStyleElement._Getmedia: UnicodeString;
  98970. begin
  98971. Result:=ReadJSPropertyUnicodeString('media');
  98972. end;
  98973. function TJSHTMLStyleElement._Gettype_: UnicodeString;
  98974. begin
  98975. Result:=ReadJSPropertyUnicodeString('type');
  98976. end;
  98977. function TJSHTMLStyleElement._Getblocking: IJSDOMTokenList;
  98978. begin
  98979. Result:=ReadJSPropertyObject('blocking',TJSDOMTokenList) as IJSDOMTokenList;
  98980. end;
  98981. function TJSHTMLStyleElement._Getsheet: IJSStyleSheet;
  98982. begin
  98983. Result:=ReadJSPropertyObject('sheet',TJSStyleSheet) as IJSStyleSheet;
  98984. end;
  98985. procedure TJSHTMLStyleElement._Setdisabled(const aValue : Boolean);
  98986. begin
  98987. WriteJSPropertyBoolean('disabled',aValue);
  98988. end;
  98989. procedure TJSHTMLStyleElement._Setmedia(const aValue : UnicodeString);
  98990. begin
  98991. WriteJSPropertyUnicodeString('media',aValue);
  98992. end;
  98993. procedure TJSHTMLStyleElement._Settype_(const aValue : UnicodeString);
  98994. begin
  98995. WriteJSPropertyUnicodeString('type',aValue);
  98996. end;
  98997. constructor TJSHTMLStyleElement.Create;
  98998. begin
  98999. JOBCreate([]);
  99000. end;
  99001. class function TJSHTMLStyleElement.JSClassName: UnicodeString;
  99002. begin
  99003. Result:='HTMLStyleElement';
  99004. end;
  99005. class function TJSHTMLStyleElement.Cast(const Intf: IJSObject): IJSHTMLStyleElement;
  99006. begin
  99007. Result:=TJSHTMLStyleElement.JOBCast(Intf);
  99008. end;
  99009. function TJSHTMLTableCaptionElement._Getalign: UnicodeString;
  99010. begin
  99011. Result:=ReadJSPropertyUnicodeString('align');
  99012. end;
  99013. procedure TJSHTMLTableCaptionElement._Setalign(const aValue : UnicodeString);
  99014. begin
  99015. WriteJSPropertyUnicodeString('align',aValue);
  99016. end;
  99017. constructor TJSHTMLTableCaptionElement.Create;
  99018. begin
  99019. JOBCreate([]);
  99020. end;
  99021. class function TJSHTMLTableCaptionElement.JSClassName: UnicodeString;
  99022. begin
  99023. Result:='HTMLTableCaptionElement';
  99024. end;
  99025. class function TJSHTMLTableCaptionElement.Cast(const Intf: IJSObject): IJSHTMLTableCaptionElement;
  99026. begin
  99027. Result:=TJSHTMLTableCaptionElement.JOBCast(Intf);
  99028. end;
  99029. function TJSHTMLTableCellElement._GetcolSpan: Cardinal;
  99030. begin
  99031. Result:=ReadJSPropertyInt64('colSpan');
  99032. end;
  99033. function TJSHTMLTableCellElement._GetrowSpan: Cardinal;
  99034. begin
  99035. Result:=ReadJSPropertyInt64('rowSpan');
  99036. end;
  99037. function TJSHTMLTableCellElement._Getheaders: UnicodeString;
  99038. begin
  99039. Result:=ReadJSPropertyUnicodeString('headers');
  99040. end;
  99041. function TJSHTMLTableCellElement._GetcellIndex: LongInt;
  99042. begin
  99043. Result:=ReadJSPropertyLongInt('cellIndex');
  99044. end;
  99045. function TJSHTMLTableCellElement._Getabbr: UnicodeString;
  99046. begin
  99047. Result:=ReadJSPropertyUnicodeString('abbr');
  99048. end;
  99049. function TJSHTMLTableCellElement._Getscope: UnicodeString;
  99050. begin
  99051. Result:=ReadJSPropertyUnicodeString('scope');
  99052. end;
  99053. function TJSHTMLTableCellElement._Getalign: UnicodeString;
  99054. begin
  99055. Result:=ReadJSPropertyUnicodeString('align');
  99056. end;
  99057. function TJSHTMLTableCellElement._Getaxis: UnicodeString;
  99058. begin
  99059. Result:=ReadJSPropertyUnicodeString('axis');
  99060. end;
  99061. function TJSHTMLTableCellElement._Getheight: UnicodeString;
  99062. begin
  99063. Result:=ReadJSPropertyUnicodeString('height');
  99064. end;
  99065. function TJSHTMLTableCellElement._Getwidth: UnicodeString;
  99066. begin
  99067. Result:=ReadJSPropertyUnicodeString('width');
  99068. end;
  99069. function TJSHTMLTableCellElement._Getch: UnicodeString;
  99070. begin
  99071. Result:=ReadJSPropertyUnicodeString('ch');
  99072. end;
  99073. function TJSHTMLTableCellElement._GetchOff: UnicodeString;
  99074. begin
  99075. Result:=ReadJSPropertyUnicodeString('chOff');
  99076. end;
  99077. function TJSHTMLTableCellElement._GetnoWrap: Boolean;
  99078. begin
  99079. Result:=ReadJSPropertyBoolean('noWrap');
  99080. end;
  99081. function TJSHTMLTableCellElement._GetvAlign: UnicodeString;
  99082. begin
  99083. Result:=ReadJSPropertyUnicodeString('vAlign');
  99084. end;
  99085. function TJSHTMLTableCellElement._GetbgColor: UnicodeString;
  99086. begin
  99087. Result:=ReadJSPropertyUnicodeString('bgColor');
  99088. end;
  99089. procedure TJSHTMLTableCellElement._SetcolSpan(const aValue : Cardinal);
  99090. begin
  99091. WriteJSPropertyDouble('colSpan',aValue);
  99092. end;
  99093. procedure TJSHTMLTableCellElement._SetrowSpan(const aValue : Cardinal);
  99094. begin
  99095. WriteJSPropertyDouble('rowSpan',aValue);
  99096. end;
  99097. procedure TJSHTMLTableCellElement._Setheaders(const aValue : UnicodeString);
  99098. begin
  99099. WriteJSPropertyUnicodeString('headers',aValue);
  99100. end;
  99101. procedure TJSHTMLTableCellElement._Setabbr(const aValue : UnicodeString);
  99102. begin
  99103. WriteJSPropertyUnicodeString('abbr',aValue);
  99104. end;
  99105. procedure TJSHTMLTableCellElement._Setscope(const aValue : UnicodeString);
  99106. begin
  99107. WriteJSPropertyUnicodeString('scope',aValue);
  99108. end;
  99109. procedure TJSHTMLTableCellElement._Setalign(const aValue : UnicodeString);
  99110. begin
  99111. WriteJSPropertyUnicodeString('align',aValue);
  99112. end;
  99113. procedure TJSHTMLTableCellElement._Setaxis(const aValue : UnicodeString);
  99114. begin
  99115. WriteJSPropertyUnicodeString('axis',aValue);
  99116. end;
  99117. procedure TJSHTMLTableCellElement._Setheight(const aValue : UnicodeString);
  99118. begin
  99119. WriteJSPropertyUnicodeString('height',aValue);
  99120. end;
  99121. procedure TJSHTMLTableCellElement._Setwidth(const aValue : UnicodeString);
  99122. begin
  99123. WriteJSPropertyUnicodeString('width',aValue);
  99124. end;
  99125. procedure TJSHTMLTableCellElement._Setch(const aValue : UnicodeString);
  99126. begin
  99127. WriteJSPropertyUnicodeString('ch',aValue);
  99128. end;
  99129. procedure TJSHTMLTableCellElement._SetchOff(const aValue : UnicodeString);
  99130. begin
  99131. WriteJSPropertyUnicodeString('chOff',aValue);
  99132. end;
  99133. procedure TJSHTMLTableCellElement._SetnoWrap(const aValue : Boolean);
  99134. begin
  99135. WriteJSPropertyBoolean('noWrap',aValue);
  99136. end;
  99137. procedure TJSHTMLTableCellElement._SetvAlign(const aValue : UnicodeString);
  99138. begin
  99139. WriteJSPropertyUnicodeString('vAlign',aValue);
  99140. end;
  99141. procedure TJSHTMLTableCellElement._SetbgColor(const aValue : UnicodeString);
  99142. begin
  99143. WriteJSPropertyUnicodeString('bgColor',aValue);
  99144. end;
  99145. constructor TJSHTMLTableCellElement.Create;
  99146. begin
  99147. JOBCreate([]);
  99148. end;
  99149. class function TJSHTMLTableCellElement.JSClassName: UnicodeString;
  99150. begin
  99151. Result:='HTMLTableCellElement';
  99152. end;
  99153. class function TJSHTMLTableCellElement.Cast(const Intf: IJSObject): IJSHTMLTableCellElement;
  99154. begin
  99155. Result:=TJSHTMLTableCellElement.JOBCast(Intf);
  99156. end;
  99157. function TJSHTMLTableColElement._Getspan: Cardinal;
  99158. begin
  99159. Result:=ReadJSPropertyInt64('span');
  99160. end;
  99161. function TJSHTMLTableColElement._Getalign: UnicodeString;
  99162. begin
  99163. Result:=ReadJSPropertyUnicodeString('align');
  99164. end;
  99165. function TJSHTMLTableColElement._Getch: UnicodeString;
  99166. begin
  99167. Result:=ReadJSPropertyUnicodeString('ch');
  99168. end;
  99169. function TJSHTMLTableColElement._GetchOff: UnicodeString;
  99170. begin
  99171. Result:=ReadJSPropertyUnicodeString('chOff');
  99172. end;
  99173. function TJSHTMLTableColElement._GetvAlign: UnicodeString;
  99174. begin
  99175. Result:=ReadJSPropertyUnicodeString('vAlign');
  99176. end;
  99177. function TJSHTMLTableColElement._Getwidth: UnicodeString;
  99178. begin
  99179. Result:=ReadJSPropertyUnicodeString('width');
  99180. end;
  99181. procedure TJSHTMLTableColElement._Setspan(const aValue : Cardinal);
  99182. begin
  99183. WriteJSPropertyDouble('span',aValue);
  99184. end;
  99185. procedure TJSHTMLTableColElement._Setalign(const aValue : UnicodeString);
  99186. begin
  99187. WriteJSPropertyUnicodeString('align',aValue);
  99188. end;
  99189. procedure TJSHTMLTableColElement._Setch(const aValue : UnicodeString);
  99190. begin
  99191. WriteJSPropertyUnicodeString('ch',aValue);
  99192. end;
  99193. procedure TJSHTMLTableColElement._SetchOff(const aValue : UnicodeString);
  99194. begin
  99195. WriteJSPropertyUnicodeString('chOff',aValue);
  99196. end;
  99197. procedure TJSHTMLTableColElement._SetvAlign(const aValue : UnicodeString);
  99198. begin
  99199. WriteJSPropertyUnicodeString('vAlign',aValue);
  99200. end;
  99201. procedure TJSHTMLTableColElement._Setwidth(const aValue : UnicodeString);
  99202. begin
  99203. WriteJSPropertyUnicodeString('width',aValue);
  99204. end;
  99205. constructor TJSHTMLTableColElement.Create;
  99206. begin
  99207. JOBCreate([]);
  99208. end;
  99209. class function TJSHTMLTableColElement.JSClassName: UnicodeString;
  99210. begin
  99211. Result:='HTMLTableColElement';
  99212. end;
  99213. class function TJSHTMLTableColElement.Cast(const Intf: IJSObject): IJSHTMLTableColElement;
  99214. begin
  99215. Result:=TJSHTMLTableColElement.JOBCast(Intf);
  99216. end;
  99217. function TJSHTMLTableElement._Getcaption: IJSHTMLTableCaptionElement;
  99218. begin
  99219. Result:=ReadJSPropertyObject('caption',TJSHTMLTableCaptionElement) as IJSHTMLTableCaptionElement;
  99220. end;
  99221. function TJSHTMLTableElement._GettHead: IJSHTMLTableSectionElement;
  99222. begin
  99223. Result:=ReadJSPropertyObject('tHead',TJSHTMLTableSectionElement) as IJSHTMLTableSectionElement;
  99224. end;
  99225. function TJSHTMLTableElement._GettFoot: IJSHTMLTableSectionElement;
  99226. begin
  99227. Result:=ReadJSPropertyObject('tFoot',TJSHTMLTableSectionElement) as IJSHTMLTableSectionElement;
  99228. end;
  99229. function TJSHTMLTableElement._GettBodies: IJSHTMLCollection;
  99230. begin
  99231. Result:=ReadJSPropertyObject('tBodies',TJSHTMLCollection) as IJSHTMLCollection;
  99232. end;
  99233. function TJSHTMLTableElement._Getrows: IJSHTMLCollection;
  99234. begin
  99235. Result:=ReadJSPropertyObject('rows',TJSHTMLCollection) as IJSHTMLCollection;
  99236. end;
  99237. function TJSHTMLTableElement._Getalign: UnicodeString;
  99238. begin
  99239. Result:=ReadJSPropertyUnicodeString('align');
  99240. end;
  99241. function TJSHTMLTableElement._Getborder: UnicodeString;
  99242. begin
  99243. Result:=ReadJSPropertyUnicodeString('border');
  99244. end;
  99245. function TJSHTMLTableElement._Getframe: UnicodeString;
  99246. begin
  99247. Result:=ReadJSPropertyUnicodeString('frame');
  99248. end;
  99249. function TJSHTMLTableElement._Getrules: UnicodeString;
  99250. begin
  99251. Result:=ReadJSPropertyUnicodeString('rules');
  99252. end;
  99253. function TJSHTMLTableElement._Getsummary: UnicodeString;
  99254. begin
  99255. Result:=ReadJSPropertyUnicodeString('summary');
  99256. end;
  99257. function TJSHTMLTableElement._Getwidth: UnicodeString;
  99258. begin
  99259. Result:=ReadJSPropertyUnicodeString('width');
  99260. end;
  99261. function TJSHTMLTableElement._GetbgColor: UnicodeString;
  99262. begin
  99263. Result:=ReadJSPropertyUnicodeString('bgColor');
  99264. end;
  99265. function TJSHTMLTableElement._GetcellPadding: UnicodeString;
  99266. begin
  99267. Result:=ReadJSPropertyUnicodeString('cellPadding');
  99268. end;
  99269. function TJSHTMLTableElement._GetcellSpacing: UnicodeString;
  99270. begin
  99271. Result:=ReadJSPropertyUnicodeString('cellSpacing');
  99272. end;
  99273. procedure TJSHTMLTableElement._Setcaption(const aValue : IJSHTMLTableCaptionElement);
  99274. begin
  99275. WriteJSPropertyObject('caption',aValue);
  99276. end;
  99277. procedure TJSHTMLTableElement._SettHead(const aValue : IJSHTMLTableSectionElement);
  99278. begin
  99279. WriteJSPropertyObject('tHead',aValue);
  99280. end;
  99281. procedure TJSHTMLTableElement._SettFoot(const aValue : IJSHTMLTableSectionElement);
  99282. begin
  99283. WriteJSPropertyObject('tFoot',aValue);
  99284. end;
  99285. procedure TJSHTMLTableElement._Setalign(const aValue : UnicodeString);
  99286. begin
  99287. WriteJSPropertyUnicodeString('align',aValue);
  99288. end;
  99289. procedure TJSHTMLTableElement._Setborder(const aValue : UnicodeString);
  99290. begin
  99291. WriteJSPropertyUnicodeString('border',aValue);
  99292. end;
  99293. procedure TJSHTMLTableElement._Setframe(const aValue : UnicodeString);
  99294. begin
  99295. WriteJSPropertyUnicodeString('frame',aValue);
  99296. end;
  99297. procedure TJSHTMLTableElement._Setrules(const aValue : UnicodeString);
  99298. begin
  99299. WriteJSPropertyUnicodeString('rules',aValue);
  99300. end;
  99301. procedure TJSHTMLTableElement._Setsummary(const aValue : UnicodeString);
  99302. begin
  99303. WriteJSPropertyUnicodeString('summary',aValue);
  99304. end;
  99305. procedure TJSHTMLTableElement._Setwidth(const aValue : UnicodeString);
  99306. begin
  99307. WriteJSPropertyUnicodeString('width',aValue);
  99308. end;
  99309. procedure TJSHTMLTableElement._SetbgColor(const aValue : UnicodeString);
  99310. begin
  99311. WriteJSPropertyUnicodeString('bgColor',aValue);
  99312. end;
  99313. procedure TJSHTMLTableElement._SetcellPadding(const aValue : UnicodeString);
  99314. begin
  99315. WriteJSPropertyUnicodeString('cellPadding',aValue);
  99316. end;
  99317. procedure TJSHTMLTableElement._SetcellSpacing(const aValue : UnicodeString);
  99318. begin
  99319. WriteJSPropertyUnicodeString('cellSpacing',aValue);
  99320. end;
  99321. constructor TJSHTMLTableElement.Create;
  99322. begin
  99323. JOBCreate([]);
  99324. end;
  99325. function TJSHTMLTableElement.createCaption: IJSHTMLElement;
  99326. begin
  99327. Result:=InvokeJSObjectResult('createCaption',[],TJSHTMLElement) as IJSHTMLElement;
  99328. end;
  99329. procedure TJSHTMLTableElement.deleteCaption;
  99330. begin
  99331. InvokeJSNoResult('deleteCaption',[]);
  99332. end;
  99333. function TJSHTMLTableElement.createTHead: IJSHTMLElement;
  99334. begin
  99335. Result:=InvokeJSObjectResult('createTHead',[],TJSHTMLElement) as IJSHTMLElement;
  99336. end;
  99337. procedure TJSHTMLTableElement.deleteTHead;
  99338. begin
  99339. InvokeJSNoResult('deleteTHead',[]);
  99340. end;
  99341. function TJSHTMLTableElement.createTFoot: IJSHTMLElement;
  99342. begin
  99343. Result:=InvokeJSObjectResult('createTFoot',[],TJSHTMLElement) as IJSHTMLElement;
  99344. end;
  99345. procedure TJSHTMLTableElement.deleteTFoot;
  99346. begin
  99347. InvokeJSNoResult('deleteTFoot',[]);
  99348. end;
  99349. function TJSHTMLTableElement.createTBody: IJSHTMLElement;
  99350. begin
  99351. Result:=InvokeJSObjectResult('createTBody',[],TJSHTMLElement) as IJSHTMLElement;
  99352. end;
  99353. function TJSHTMLTableElement.insertRow(aIndex: LongInt): IJSHTMLElement;
  99354. begin
  99355. Result:=InvokeJSObjectResult('insertRow',[aIndex],TJSHTMLElement) as IJSHTMLElement;
  99356. end;
  99357. function TJSHTMLTableElement.insertRow: IJSHTMLElement;
  99358. begin
  99359. Result:=InvokeJSObjectResult('insertRow',[],TJSHTMLElement) as IJSHTMLElement;
  99360. end;
  99361. procedure TJSHTMLTableElement.deleteRow(aIndex: LongInt);
  99362. begin
  99363. InvokeJSNoResult('deleteRow',[aIndex]);
  99364. end;
  99365. class function TJSHTMLTableElement.JSClassName: UnicodeString;
  99366. begin
  99367. Result:='HTMLTableElement';
  99368. end;
  99369. class function TJSHTMLTableElement.Cast(const Intf: IJSObject): IJSHTMLTableElement;
  99370. begin
  99371. Result:=TJSHTMLTableElement.JOBCast(Intf);
  99372. end;
  99373. function TJSHTMLTableRowElement._GetrowIndex: LongInt;
  99374. begin
  99375. Result:=ReadJSPropertyLongInt('rowIndex');
  99376. end;
  99377. function TJSHTMLTableRowElement._GetsectionRowIndex: LongInt;
  99378. begin
  99379. Result:=ReadJSPropertyLongInt('sectionRowIndex');
  99380. end;
  99381. function TJSHTMLTableRowElement._Getcells: IJSHTMLCollection;
  99382. begin
  99383. Result:=ReadJSPropertyObject('cells',TJSHTMLCollection) as IJSHTMLCollection;
  99384. end;
  99385. function TJSHTMLTableRowElement._Getalign: UnicodeString;
  99386. begin
  99387. Result:=ReadJSPropertyUnicodeString('align');
  99388. end;
  99389. function TJSHTMLTableRowElement._Getch: UnicodeString;
  99390. begin
  99391. Result:=ReadJSPropertyUnicodeString('ch');
  99392. end;
  99393. function TJSHTMLTableRowElement._GetchOff: UnicodeString;
  99394. begin
  99395. Result:=ReadJSPropertyUnicodeString('chOff');
  99396. end;
  99397. function TJSHTMLTableRowElement._GetvAlign: UnicodeString;
  99398. begin
  99399. Result:=ReadJSPropertyUnicodeString('vAlign');
  99400. end;
  99401. function TJSHTMLTableRowElement._GetbgColor: UnicodeString;
  99402. begin
  99403. Result:=ReadJSPropertyUnicodeString('bgColor');
  99404. end;
  99405. procedure TJSHTMLTableRowElement._Setalign(const aValue : UnicodeString);
  99406. begin
  99407. WriteJSPropertyUnicodeString('align',aValue);
  99408. end;
  99409. procedure TJSHTMLTableRowElement._Setch(const aValue : UnicodeString);
  99410. begin
  99411. WriteJSPropertyUnicodeString('ch',aValue);
  99412. end;
  99413. procedure TJSHTMLTableRowElement._SetchOff(const aValue : UnicodeString);
  99414. begin
  99415. WriteJSPropertyUnicodeString('chOff',aValue);
  99416. end;
  99417. procedure TJSHTMLTableRowElement._SetvAlign(const aValue : UnicodeString);
  99418. begin
  99419. WriteJSPropertyUnicodeString('vAlign',aValue);
  99420. end;
  99421. procedure TJSHTMLTableRowElement._SetbgColor(const aValue : UnicodeString);
  99422. begin
  99423. WriteJSPropertyUnicodeString('bgColor',aValue);
  99424. end;
  99425. constructor TJSHTMLTableRowElement.Create;
  99426. begin
  99427. JOBCreate([]);
  99428. end;
  99429. function TJSHTMLTableRowElement.insertCell(aIndex: LongInt): IJSHTMLElement;
  99430. begin
  99431. Result:=InvokeJSObjectResult('insertCell',[aIndex],TJSHTMLElement) as IJSHTMLElement;
  99432. end;
  99433. function TJSHTMLTableRowElement.insertCell: IJSHTMLElement;
  99434. begin
  99435. Result:=InvokeJSObjectResult('insertCell',[],TJSHTMLElement) as IJSHTMLElement;
  99436. end;
  99437. procedure TJSHTMLTableRowElement.deleteCell(aIndex: LongInt);
  99438. begin
  99439. InvokeJSNoResult('deleteCell',[aIndex]);
  99440. end;
  99441. class function TJSHTMLTableRowElement.JSClassName: UnicodeString;
  99442. begin
  99443. Result:='HTMLTableRowElement';
  99444. end;
  99445. class function TJSHTMLTableRowElement.Cast(const Intf: IJSObject): IJSHTMLTableRowElement;
  99446. begin
  99447. Result:=TJSHTMLTableRowElement.JOBCast(Intf);
  99448. end;
  99449. function TJSHTMLTableSectionElement._Getrows: IJSHTMLCollection;
  99450. begin
  99451. Result:=ReadJSPropertyObject('rows',TJSHTMLCollection) as IJSHTMLCollection;
  99452. end;
  99453. function TJSHTMLTableSectionElement._Getalign: UnicodeString;
  99454. begin
  99455. Result:=ReadJSPropertyUnicodeString('align');
  99456. end;
  99457. function TJSHTMLTableSectionElement._Getch: UnicodeString;
  99458. begin
  99459. Result:=ReadJSPropertyUnicodeString('ch');
  99460. end;
  99461. function TJSHTMLTableSectionElement._GetchOff: UnicodeString;
  99462. begin
  99463. Result:=ReadJSPropertyUnicodeString('chOff');
  99464. end;
  99465. function TJSHTMLTableSectionElement._GetvAlign: UnicodeString;
  99466. begin
  99467. Result:=ReadJSPropertyUnicodeString('vAlign');
  99468. end;
  99469. procedure TJSHTMLTableSectionElement._Setalign(const aValue : UnicodeString);
  99470. begin
  99471. WriteJSPropertyUnicodeString('align',aValue);
  99472. end;
  99473. procedure TJSHTMLTableSectionElement._Setch(const aValue : UnicodeString);
  99474. begin
  99475. WriteJSPropertyUnicodeString('ch',aValue);
  99476. end;
  99477. procedure TJSHTMLTableSectionElement._SetchOff(const aValue : UnicodeString);
  99478. begin
  99479. WriteJSPropertyUnicodeString('chOff',aValue);
  99480. end;
  99481. procedure TJSHTMLTableSectionElement._SetvAlign(const aValue : UnicodeString);
  99482. begin
  99483. WriteJSPropertyUnicodeString('vAlign',aValue);
  99484. end;
  99485. constructor TJSHTMLTableSectionElement.Create;
  99486. begin
  99487. JOBCreate([]);
  99488. end;
  99489. function TJSHTMLTableSectionElement.insertRow(aIndex: LongInt): IJSHTMLElement;
  99490. begin
  99491. Result:=InvokeJSObjectResult('insertRow',[aIndex],TJSHTMLElement) as IJSHTMLElement;
  99492. end;
  99493. function TJSHTMLTableSectionElement.insertRow: IJSHTMLElement;
  99494. begin
  99495. Result:=InvokeJSObjectResult('insertRow',[],TJSHTMLElement) as IJSHTMLElement;
  99496. end;
  99497. procedure TJSHTMLTableSectionElement.deleteRow(aIndex: LongInt);
  99498. begin
  99499. InvokeJSNoResult('deleteRow',[aIndex]);
  99500. end;
  99501. class function TJSHTMLTableSectionElement.JSClassName: UnicodeString;
  99502. begin
  99503. Result:='HTMLTableSectionElement';
  99504. end;
  99505. class function TJSHTMLTableSectionElement.Cast(const Intf: IJSObject): IJSHTMLTableSectionElement;
  99506. begin
  99507. Result:=TJSHTMLTableSectionElement.JOBCast(Intf);
  99508. end;
  99509. function TJSHTMLTemplateElement._Getcontent: IJSDocumentFragment;
  99510. begin
  99511. Result:=ReadJSPropertyObject('content',TJSDocumentFragment) as IJSDocumentFragment;
  99512. end;
  99513. function TJSHTMLTemplateElement._GetshadowRootMode: UnicodeString;
  99514. begin
  99515. Result:=ReadJSPropertyUnicodeString('shadowRootMode');
  99516. end;
  99517. function TJSHTMLTemplateElement._GetshadowRootDelegatesFocus: Boolean;
  99518. begin
  99519. Result:=ReadJSPropertyBoolean('shadowRootDelegatesFocus');
  99520. end;
  99521. function TJSHTMLTemplateElement._GetshadowRootClonable: Boolean;
  99522. begin
  99523. Result:=ReadJSPropertyBoolean('shadowRootClonable');
  99524. end;
  99525. procedure TJSHTMLTemplateElement._SetshadowRootMode(const aValue : UnicodeString);
  99526. begin
  99527. WriteJSPropertyUnicodeString('shadowRootMode',aValue);
  99528. end;
  99529. procedure TJSHTMLTemplateElement._SetshadowRootDelegatesFocus(const aValue : Boolean);
  99530. begin
  99531. WriteJSPropertyBoolean('shadowRootDelegatesFocus',aValue);
  99532. end;
  99533. procedure TJSHTMLTemplateElement._SetshadowRootClonable(const aValue : Boolean);
  99534. begin
  99535. WriteJSPropertyBoolean('shadowRootClonable',aValue);
  99536. end;
  99537. constructor TJSHTMLTemplateElement.Create;
  99538. begin
  99539. JOBCreate([]);
  99540. end;
  99541. class function TJSHTMLTemplateElement.JSClassName: UnicodeString;
  99542. begin
  99543. Result:='HTMLTemplateElement';
  99544. end;
  99545. class function TJSHTMLTemplateElement.Cast(const Intf: IJSObject): IJSHTMLTemplateElement;
  99546. begin
  99547. Result:=TJSHTMLTemplateElement.JOBCast(Intf);
  99548. end;
  99549. class function TJSnsIEditor.JSClassName: UnicodeString;
  99550. begin
  99551. Result:='nsIEditor';
  99552. end;
  99553. class function TJSnsIEditor.Cast(const Intf: IJSObject): IJSnsIEditor;
  99554. begin
  99555. Result:=TJSnsIEditor.JOBCast(Intf);
  99556. end;
  99557. function TJSHTMLTextAreaElement._Getautocomplete: UnicodeString;
  99558. begin
  99559. Result:=ReadJSPropertyUnicodeString('autocomplete');
  99560. end;
  99561. function TJSHTMLTextAreaElement._Getcols: Cardinal;
  99562. begin
  99563. Result:=ReadJSPropertyInt64('cols');
  99564. end;
  99565. function TJSHTMLTextAreaElement._GetdirName: UnicodeString;
  99566. begin
  99567. Result:=ReadJSPropertyUnicodeString('dirName');
  99568. end;
  99569. function TJSHTMLTextAreaElement._Getdisabled: Boolean;
  99570. begin
  99571. Result:=ReadJSPropertyBoolean('disabled');
  99572. end;
  99573. function TJSHTMLTextAreaElement._Getform: IJSHTMLFormElement;
  99574. begin
  99575. Result:=ReadJSPropertyObject('form',TJSHTMLFormElement) as IJSHTMLFormElement;
  99576. end;
  99577. function TJSHTMLTextAreaElement._GetmaxLength: LongInt;
  99578. begin
  99579. Result:=ReadJSPropertyLongInt('maxLength');
  99580. end;
  99581. function TJSHTMLTextAreaElement._GetminLength: LongInt;
  99582. begin
  99583. Result:=ReadJSPropertyLongInt('minLength');
  99584. end;
  99585. function TJSHTMLTextAreaElement._Getname: UnicodeString;
  99586. begin
  99587. Result:=ReadJSPropertyUnicodeString('name');
  99588. end;
  99589. function TJSHTMLTextAreaElement._Getplaceholder: UnicodeString;
  99590. begin
  99591. Result:=ReadJSPropertyUnicodeString('placeholder');
  99592. end;
  99593. function TJSHTMLTextAreaElement._GetreadOnly: Boolean;
  99594. begin
  99595. Result:=ReadJSPropertyBoolean('readOnly');
  99596. end;
  99597. function TJSHTMLTextAreaElement._Getrequired: Boolean;
  99598. begin
  99599. Result:=ReadJSPropertyBoolean('required');
  99600. end;
  99601. function TJSHTMLTextAreaElement._Getrows: Cardinal;
  99602. begin
  99603. Result:=ReadJSPropertyInt64('rows');
  99604. end;
  99605. function TJSHTMLTextAreaElement._Getwrap: UnicodeString;
  99606. begin
  99607. Result:=ReadJSPropertyUnicodeString('wrap');
  99608. end;
  99609. function TJSHTMLTextAreaElement._Gettype_: UnicodeString;
  99610. begin
  99611. Result:=ReadJSPropertyUnicodeString('type');
  99612. end;
  99613. function TJSHTMLTextAreaElement._GetdefaultValue: UnicodeString;
  99614. begin
  99615. Result:=ReadJSPropertyUnicodeString('defaultValue');
  99616. end;
  99617. function TJSHTMLTextAreaElement._Getvalue: UnicodeString;
  99618. begin
  99619. Result:=ReadJSPropertyUnicodeString('value');
  99620. end;
  99621. function TJSHTMLTextAreaElement._GettextLength: Cardinal;
  99622. begin
  99623. Result:=ReadJSPropertyInt64('textLength');
  99624. end;
  99625. function TJSHTMLTextAreaElement._GetwillValidate: Boolean;
  99626. begin
  99627. Result:=ReadJSPropertyBoolean('willValidate');
  99628. end;
  99629. function TJSHTMLTextAreaElement._Getvalidity: IJSValidityState;
  99630. begin
  99631. Result:=ReadJSPropertyObject('validity',TJSValidityState) as IJSValidityState;
  99632. end;
  99633. function TJSHTMLTextAreaElement._GetvalidationMessage: UnicodeString;
  99634. begin
  99635. Result:=ReadJSPropertyUnicodeString('validationMessage');
  99636. end;
  99637. function TJSHTMLTextAreaElement._Getlabels: IJSNodeList;
  99638. begin
  99639. Result:=ReadJSPropertyObject('labels',TJSNodeList) as IJSNodeList;
  99640. end;
  99641. function TJSHTMLTextAreaElement._GetselectionStart: Cardinal;
  99642. begin
  99643. Result:=ReadJSPropertyInt64('selectionStart');
  99644. end;
  99645. function TJSHTMLTextAreaElement._GetselectionEnd: Cardinal;
  99646. begin
  99647. Result:=ReadJSPropertyInt64('selectionEnd');
  99648. end;
  99649. function TJSHTMLTextAreaElement._GetselectionDirection: UnicodeString;
  99650. begin
  99651. Result:=ReadJSPropertyUnicodeString('selectionDirection');
  99652. end;
  99653. procedure TJSHTMLTextAreaElement._Setautocomplete(const aValue : UnicodeString);
  99654. begin
  99655. WriteJSPropertyUnicodeString('autocomplete',aValue);
  99656. end;
  99657. procedure TJSHTMLTextAreaElement._Setcols(const aValue : Cardinal);
  99658. begin
  99659. WriteJSPropertyDouble('cols',aValue);
  99660. end;
  99661. procedure TJSHTMLTextAreaElement._SetdirName(const aValue : UnicodeString);
  99662. begin
  99663. WriteJSPropertyUnicodeString('dirName',aValue);
  99664. end;
  99665. procedure TJSHTMLTextAreaElement._Setdisabled(const aValue : Boolean);
  99666. begin
  99667. WriteJSPropertyBoolean('disabled',aValue);
  99668. end;
  99669. procedure TJSHTMLTextAreaElement._SetmaxLength(const aValue : LongInt);
  99670. begin
  99671. WriteJSPropertyLongInt('maxLength',aValue);
  99672. end;
  99673. procedure TJSHTMLTextAreaElement._SetminLength(const aValue : LongInt);
  99674. begin
  99675. WriteJSPropertyLongInt('minLength',aValue);
  99676. end;
  99677. procedure TJSHTMLTextAreaElement._Setname(const aValue : UnicodeString);
  99678. begin
  99679. WriteJSPropertyUnicodeString('name',aValue);
  99680. end;
  99681. procedure TJSHTMLTextAreaElement._Setplaceholder(const aValue : UnicodeString);
  99682. begin
  99683. WriteJSPropertyUnicodeString('placeholder',aValue);
  99684. end;
  99685. procedure TJSHTMLTextAreaElement._SetreadOnly(const aValue : Boolean);
  99686. begin
  99687. WriteJSPropertyBoolean('readOnly',aValue);
  99688. end;
  99689. procedure TJSHTMLTextAreaElement._Setrequired(const aValue : Boolean);
  99690. begin
  99691. WriteJSPropertyBoolean('required',aValue);
  99692. end;
  99693. procedure TJSHTMLTextAreaElement._Setrows(const aValue : Cardinal);
  99694. begin
  99695. WriteJSPropertyDouble('rows',aValue);
  99696. end;
  99697. procedure TJSHTMLTextAreaElement._Setwrap(const aValue : UnicodeString);
  99698. begin
  99699. WriteJSPropertyUnicodeString('wrap',aValue);
  99700. end;
  99701. procedure TJSHTMLTextAreaElement._SetdefaultValue(const aValue : UnicodeString);
  99702. begin
  99703. WriteJSPropertyUnicodeString('defaultValue',aValue);
  99704. end;
  99705. procedure TJSHTMLTextAreaElement._Setvalue(const aValue : UnicodeString);
  99706. begin
  99707. WriteJSPropertyUnicodeString('value',aValue);
  99708. end;
  99709. procedure TJSHTMLTextAreaElement._SetselectionStart(const aValue : Cardinal);
  99710. begin
  99711. WriteJSPropertyDouble('selectionStart',aValue);
  99712. end;
  99713. procedure TJSHTMLTextAreaElement._SetselectionEnd(const aValue : Cardinal);
  99714. begin
  99715. WriteJSPropertyDouble('selectionEnd',aValue);
  99716. end;
  99717. procedure TJSHTMLTextAreaElement._SetselectionDirection(const aValue : UnicodeString);
  99718. begin
  99719. WriteJSPropertyUnicodeString('selectionDirection',aValue);
  99720. end;
  99721. constructor TJSHTMLTextAreaElement.Create;
  99722. begin
  99723. JOBCreate([]);
  99724. end;
  99725. function TJSHTMLTextAreaElement.checkValidity: Boolean;
  99726. begin
  99727. Result:=InvokeJSBooleanResult('checkValidity',[]);
  99728. end;
  99729. function TJSHTMLTextAreaElement.reportValidity: Boolean;
  99730. begin
  99731. Result:=InvokeJSBooleanResult('reportValidity',[]);
  99732. end;
  99733. procedure TJSHTMLTextAreaElement.setCustomValidity(const aError: UnicodeString);
  99734. begin
  99735. InvokeJSNoResult('setCustomValidity',[aError]);
  99736. end;
  99737. procedure TJSHTMLTextAreaElement.select;
  99738. begin
  99739. InvokeJSNoResult('select',[]);
  99740. end;
  99741. procedure TJSHTMLTextAreaElement.setRangeText(const aReplacement: UnicodeString);
  99742. begin
  99743. InvokeJSNoResult('setRangeText',[aReplacement]);
  99744. end;
  99745. procedure TJSHTMLTextAreaElement.setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal; aSelectionMode: TSelectionMode);
  99746. begin
  99747. InvokeJSNoResult('setRangeText',[aReplacement,aStart,aEnd_,aSelectionMode]);
  99748. end;
  99749. procedure TJSHTMLTextAreaElement.setRangeText(const aReplacement: UnicodeString; aStart: Cardinal; aEnd_: Cardinal);
  99750. begin
  99751. InvokeJSNoResult('setRangeText',[aReplacement,aStart,aEnd_]);
  99752. end;
  99753. procedure TJSHTMLTextAreaElement.setSelectionRange(aStart: Cardinal; aEnd_: Cardinal; const aDirection: UnicodeString);
  99754. begin
  99755. InvokeJSNoResult('setSelectionRange',[aStart,aEnd_,aDirection]);
  99756. end;
  99757. procedure TJSHTMLTextAreaElement.setSelectionRange(aStart: Cardinal; aEnd_: Cardinal);
  99758. begin
  99759. InvokeJSNoResult('setSelectionRange',[aStart,aEnd_]);
  99760. end;
  99761. procedure TJSHTMLTextAreaElement.setUserInput(const aInput: UnicodeString);
  99762. begin
  99763. InvokeJSNoResult('setUserInput',[aInput]);
  99764. end;
  99765. class function TJSHTMLTextAreaElement.JSClassName: UnicodeString;
  99766. begin
  99767. Result:='HTMLTextAreaElement';
  99768. end;
  99769. class function TJSHTMLTextAreaElement.Cast(const Intf: IJSObject): IJSHTMLTextAreaElement;
  99770. begin
  99771. Result:=TJSHTMLTextAreaElement.JOBCast(Intf);
  99772. end;
  99773. function TJSHTMLTimeElement._GetdateTime: UnicodeString;
  99774. begin
  99775. Result:=ReadJSPropertyUnicodeString('dateTime');
  99776. end;
  99777. procedure TJSHTMLTimeElement._SetdateTime(const aValue : UnicodeString);
  99778. begin
  99779. WriteJSPropertyUnicodeString('dateTime',aValue);
  99780. end;
  99781. constructor TJSHTMLTimeElement.Create;
  99782. begin
  99783. JOBCreate([]);
  99784. end;
  99785. class function TJSHTMLTimeElement.JSClassName: UnicodeString;
  99786. begin
  99787. Result:='HTMLTimeElement';
  99788. end;
  99789. class function TJSHTMLTimeElement.Cast(const Intf: IJSObject): IJSHTMLTimeElement;
  99790. begin
  99791. Result:=TJSHTMLTimeElement.JOBCast(Intf);
  99792. end;
  99793. function TJSHTMLTitleElement._Gettext: UnicodeString;
  99794. begin
  99795. Result:=ReadJSPropertyUnicodeString('text');
  99796. end;
  99797. procedure TJSHTMLTitleElement._Settext(const aValue : UnicodeString);
  99798. begin
  99799. WriteJSPropertyUnicodeString('text',aValue);
  99800. end;
  99801. constructor TJSHTMLTitleElement.Create;
  99802. begin
  99803. JOBCreate([]);
  99804. end;
  99805. class function TJSHTMLTitleElement.JSClassName: UnicodeString;
  99806. begin
  99807. Result:='HTMLTitleElement';
  99808. end;
  99809. class function TJSHTMLTitleElement.Cast(const Intf: IJSObject): IJSHTMLTitleElement;
  99810. begin
  99811. Result:=TJSHTMLTitleElement.JOBCast(Intf);
  99812. end;
  99813. function TJSHTMLTrackElement._Getkind: UnicodeString;
  99814. begin
  99815. Result:=ReadJSPropertyUnicodeString('kind');
  99816. end;
  99817. function TJSHTMLTrackElement._Getsrc: UnicodeString;
  99818. begin
  99819. Result:=ReadJSPropertyUnicodeString('src');
  99820. end;
  99821. function TJSHTMLTrackElement._Getsrclang: UnicodeString;
  99822. begin
  99823. Result:=ReadJSPropertyUnicodeString('srclang');
  99824. end;
  99825. function TJSHTMLTrackElement._Getlabel_: UnicodeString;
  99826. begin
  99827. Result:=ReadJSPropertyUnicodeString('label');
  99828. end;
  99829. function TJSHTMLTrackElement._Getdefault: Boolean;
  99830. begin
  99831. Result:=ReadJSPropertyBoolean('default');
  99832. end;
  99833. function TJSHTMLTrackElement._GetreadyState: Word;
  99834. begin
  99835. Result:=ReadJSPropertyLongInt('readyState');
  99836. end;
  99837. function TJSHTMLTrackElement._Gettrack: IJSTextTrack;
  99838. begin
  99839. Result:=ReadJSPropertyObject('track',TJSTextTrack) as IJSTextTrack;
  99840. end;
  99841. procedure TJSHTMLTrackElement._Setkind(const aValue : UnicodeString);
  99842. begin
  99843. WriteJSPropertyUnicodeString('kind',aValue);
  99844. end;
  99845. procedure TJSHTMLTrackElement._Setsrc(const aValue : UnicodeString);
  99846. begin
  99847. WriteJSPropertyUnicodeString('src',aValue);
  99848. end;
  99849. procedure TJSHTMLTrackElement._Setsrclang(const aValue : UnicodeString);
  99850. begin
  99851. WriteJSPropertyUnicodeString('srclang',aValue);
  99852. end;
  99853. procedure TJSHTMLTrackElement._Setlabel_(const aValue : UnicodeString);
  99854. begin
  99855. WriteJSPropertyUnicodeString('label',aValue);
  99856. end;
  99857. procedure TJSHTMLTrackElement._Setdefault(const aValue : Boolean);
  99858. begin
  99859. WriteJSPropertyBoolean('default',aValue);
  99860. end;
  99861. constructor TJSHTMLTrackElement.Create;
  99862. begin
  99863. JOBCreate([]);
  99864. end;
  99865. class function TJSHTMLTrackElement.JSClassName: UnicodeString;
  99866. begin
  99867. Result:='HTMLTrackElement';
  99868. end;
  99869. class function TJSHTMLTrackElement.Cast(const Intf: IJSObject): IJSHTMLTrackElement;
  99870. begin
  99871. Result:=TJSHTMLTrackElement.JOBCast(Intf);
  99872. end;
  99873. function TJSHTMLUListElement._Getcompact: Boolean;
  99874. begin
  99875. Result:=ReadJSPropertyBoolean('compact');
  99876. end;
  99877. function TJSHTMLUListElement._Gettype_: UnicodeString;
  99878. begin
  99879. Result:=ReadJSPropertyUnicodeString('type');
  99880. end;
  99881. procedure TJSHTMLUListElement._Setcompact(const aValue : Boolean);
  99882. begin
  99883. WriteJSPropertyBoolean('compact',aValue);
  99884. end;
  99885. procedure TJSHTMLUListElement._Settype_(const aValue : UnicodeString);
  99886. begin
  99887. WriteJSPropertyUnicodeString('type',aValue);
  99888. end;
  99889. constructor TJSHTMLUListElement.Create;
  99890. begin
  99891. JOBCreate([]);
  99892. end;
  99893. class function TJSHTMLUListElement.JSClassName: UnicodeString;
  99894. begin
  99895. Result:='HTMLUListElement';
  99896. end;
  99897. class function TJSHTMLUListElement.Cast(const Intf: IJSObject): IJSHTMLUListElement;
  99898. begin
  99899. Result:=TJSHTMLUListElement.JOBCast(Intf);
  99900. end;
  99901. function TJSHTMLVideoElement._Getwidth: Cardinal;
  99902. begin
  99903. Result:=ReadJSPropertyInt64('width');
  99904. end;
  99905. function TJSHTMLVideoElement._Getheight: Cardinal;
  99906. begin
  99907. Result:=ReadJSPropertyInt64('height');
  99908. end;
  99909. function TJSHTMLVideoElement._GetvideoWidth: Cardinal;
  99910. begin
  99911. Result:=ReadJSPropertyInt64('videoWidth');
  99912. end;
  99913. function TJSHTMLVideoElement._GetvideoHeight: Cardinal;
  99914. begin
  99915. Result:=ReadJSPropertyInt64('videoHeight');
  99916. end;
  99917. function TJSHTMLVideoElement._Getposter: UnicodeString;
  99918. begin
  99919. Result:=ReadJSPropertyUnicodeString('poster');
  99920. end;
  99921. function TJSHTMLVideoElement._GetmozParsedFrames: Cardinal;
  99922. begin
  99923. Result:=ReadJSPropertyInt64('mozParsedFrames');
  99924. end;
  99925. function TJSHTMLVideoElement._GetmozDecodedFrames: Cardinal;
  99926. begin
  99927. Result:=ReadJSPropertyInt64('mozDecodedFrames');
  99928. end;
  99929. function TJSHTMLVideoElement._GetmozPresentedFrames: Cardinal;
  99930. begin
  99931. Result:=ReadJSPropertyInt64('mozPresentedFrames');
  99932. end;
  99933. function TJSHTMLVideoElement._GetmozPaintedFrames: Cardinal;
  99934. begin
  99935. Result:=ReadJSPropertyInt64('mozPaintedFrames');
  99936. end;
  99937. function TJSHTMLVideoElement._GetmozFrameDelay: Double;
  99938. begin
  99939. Result:=ReadJSPropertyDouble('mozFrameDelay');
  99940. end;
  99941. function TJSHTMLVideoElement._GetmozHasAudio: Boolean;
  99942. begin
  99943. Result:=ReadJSPropertyBoolean('mozHasAudio');
  99944. end;
  99945. function TJSHTMLVideoElement._GetisCloningElementVisually: Boolean;
  99946. begin
  99947. Result:=ReadJSPropertyBoolean('isCloningElementVisually');
  99948. end;
  99949. function TJSHTMLVideoElement._GetdisablePictureInPicture: Boolean;
  99950. begin
  99951. Result:=ReadJSPropertyBoolean('disablePictureInPicture');
  99952. end;
  99953. procedure TJSHTMLVideoElement._Setwidth(const aValue : Cardinal);
  99954. begin
  99955. WriteJSPropertyDouble('width',aValue);
  99956. end;
  99957. procedure TJSHTMLVideoElement._Setheight(const aValue : Cardinal);
  99958. begin
  99959. WriteJSPropertyDouble('height',aValue);
  99960. end;
  99961. procedure TJSHTMLVideoElement._Setposter(const aValue : UnicodeString);
  99962. begin
  99963. WriteJSPropertyUnicodeString('poster',aValue);
  99964. end;
  99965. procedure TJSHTMLVideoElement._SetdisablePictureInPicture(const aValue : Boolean);
  99966. begin
  99967. WriteJSPropertyBoolean('disablePictureInPicture',aValue);
  99968. end;
  99969. constructor TJSHTMLVideoElement.Create;
  99970. begin
  99971. JOBCreate([]);
  99972. end;
  99973. function TJSHTMLVideoElement.cloneElementVisually(aTarget: IJSHTMLVideoElement): IJSPromise; // Promise<undefined>
  99974. begin
  99975. Result:=InvokeJSObjectResult('cloneElementVisually',[aTarget],TJSPromise) as IJSPromise;
  99976. end;
  99977. procedure TJSHTMLVideoElement.stopCloningElementVisually;
  99978. begin
  99979. InvokeJSNoResult('stopCloningElementVisually',[]);
  99980. end;
  99981. function TJSHTMLVideoElement.getVideoPlaybackQuality: IJSVideoPlaybackQuality;
  99982. begin
  99983. Result:=InvokeJSObjectResult('getVideoPlaybackQuality',[],TJSVideoPlaybackQuality) as IJSVideoPlaybackQuality;
  99984. end;
  99985. class function TJSHTMLVideoElement.JSClassName: UnicodeString;
  99986. begin
  99987. Result:='HTMLVideoElement';
  99988. end;
  99989. class function TJSHTMLVideoElement.Cast(const Intf: IJSObject): IJSHTMLVideoElement;
  99990. begin
  99991. Result:=TJSHTMLVideoElement.JOBCast(Intf);
  99992. end;
  99993. function TJSIDBCursor._Getsource: TIDBCursor_source_Type;
  99994. begin
  99995. Result:=ReadJSPropertyVariant('source');
  99996. end;
  99997. function TJSIDBCursor._Getdirection: TIDBCursorDirection;
  99998. begin
  99999. Result:=ReadJSPropertyUnicodeString('direction');
  100000. end;
  100001. function TJSIDBCursor._Getkey: Variant;
  100002. begin
  100003. Result:=ReadJSPropertyVariant('key');
  100004. end;
  100005. function TJSIDBCursor._GetprimaryKey: Variant;
  100006. begin
  100007. Result:=ReadJSPropertyVariant('primaryKey');
  100008. end;
  100009. function TJSIDBCursor._Getrequest: IJSIDBRequest;
  100010. begin
  100011. Result:=ReadJSPropertyObject('request',TJSIDBRequest) as IJSIDBRequest;
  100012. end;
  100013. procedure TJSIDBCursor.advance(aCount: Cardinal);
  100014. begin
  100015. InvokeJSNoResult('advance',[aCount]);
  100016. end;
  100017. procedure TJSIDBCursor.continue(const aKey: Variant);
  100018. begin
  100019. InvokeJSNoResult('continue',[aKey]);
  100020. end;
  100021. procedure TJSIDBCursor.continue;
  100022. begin
  100023. InvokeJSNoResult('continue',[]);
  100024. end;
  100025. procedure TJSIDBCursor.continuePrimaryKey(const aKey: Variant; const aPrimaryKey: Variant);
  100026. begin
  100027. InvokeJSNoResult('continuePrimaryKey',[aKey,aPrimaryKey]);
  100028. end;
  100029. function TJSIDBCursor.update(const aValue: Variant): IJSIDBRequest;
  100030. begin
  100031. Result:=InvokeJSObjectResult('update',[aValue],TJSIDBRequest) as IJSIDBRequest;
  100032. end;
  100033. function TJSIDBCursor.delete: IJSIDBRequest;
  100034. begin
  100035. Result:=InvokeJSObjectResult('delete',[],TJSIDBRequest) as IJSIDBRequest;
  100036. end;
  100037. class function TJSIDBCursor.JSClassName: UnicodeString;
  100038. begin
  100039. Result:='IDBCursor';
  100040. end;
  100041. class function TJSIDBCursor.Cast(const Intf: IJSObject): IJSIDBCursor;
  100042. begin
  100043. Result:=TJSIDBCursor.JOBCast(Intf);
  100044. end;
  100045. function TJSIDBCursorWithValue._Getvalue: Variant;
  100046. begin
  100047. Result:=ReadJSPropertyVariant('value');
  100048. end;
  100049. class function TJSIDBCursorWithValue.JSClassName: UnicodeString;
  100050. begin
  100051. Result:='IDBCursorWithValue';
  100052. end;
  100053. class function TJSIDBCursorWithValue.Cast(const Intf: IJSObject): IJSIDBCursorWithValue;
  100054. begin
  100055. Result:=TJSIDBCursorWithValue.JOBCast(Intf);
  100056. end;
  100057. function TJSIDBTransactionOptions._Getdurability: TIDBTransactionDurability;
  100058. begin
  100059. Result:=ReadJSPropertyUnicodeString('durability');
  100060. end;
  100061. procedure TJSIDBTransactionOptions._Setdurability(const aValue : TIDBTransactionDurability);
  100062. begin
  100063. WriteJSPropertyUnicodeString('durability',aValue);
  100064. end;
  100065. class function TJSIDBTransactionOptions.JSClassName: UnicodeString;
  100066. begin
  100067. Result:='Object';
  100068. end;
  100069. class function TJSIDBTransactionOptions.Cast(const Intf: IJSObject): IJSIDBTransactionOptions;
  100070. begin
  100071. Result:=TJSIDBTransactionOptions.JOBCast(Intf);
  100072. end;
  100073. function TJSIDBDatabase._Getname: UnicodeString;
  100074. begin
  100075. Result:=ReadJSPropertyUnicodeString('name');
  100076. end;
  100077. function TJSIDBDatabase._Getversion: QWord;
  100078. begin
  100079. Result:=ReadJSPropertyInt64('version');
  100080. end;
  100081. function TJSIDBDatabase._GetobjectStoreNames: IJSDOMStringList;
  100082. begin
  100083. Result:=ReadJSPropertyObject('objectStoreNames',TJSDOMStringList) as IJSDOMStringList;
  100084. end;
  100085. function TJSIDBDatabase._Getonabort: TEventHandler;
  100086. begin
  100087. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  100088. end;
  100089. function TJSIDBDatabase._Getonclose: TEventHandler;
  100090. begin
  100091. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclose')));
  100092. end;
  100093. function TJSIDBDatabase._Getonerror: TEventHandler;
  100094. begin
  100095. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  100096. end;
  100097. function TJSIDBDatabase._Getonversionchange: TEventHandler;
  100098. begin
  100099. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onversionchange')));
  100100. end;
  100101. procedure TJSIDBDatabase._Setonabort(const aValue : TEventHandler);
  100102. begin
  100103. WriteJSPropertyMethod('onabort',TMethod(aValue));
  100104. end;
  100105. procedure TJSIDBDatabase._Setonclose(const aValue : TEventHandler);
  100106. begin
  100107. WriteJSPropertyMethod('onclose',TMethod(aValue));
  100108. end;
  100109. procedure TJSIDBDatabase._Setonerror(const aValue : TEventHandler);
  100110. begin
  100111. WriteJSPropertyMethod('onerror',TMethod(aValue));
  100112. end;
  100113. procedure TJSIDBDatabase._Setonversionchange(const aValue : TEventHandler);
  100114. begin
  100115. WriteJSPropertyMethod('onversionchange',TMethod(aValue));
  100116. end;
  100117. function TJSIDBDatabase.transaction(const aStoreNames: UnicodeString; aMode: TIDBTransactionMode; const aOptions: TJSIDBTransactionOptions): IJSIDBTransaction;
  100118. begin
  100119. Result:=InvokeJSObjectResult('transaction',[aStoreNames,aMode,aOptions],TJSIDBTransaction) as IJSIDBTransaction;
  100120. end;
  100121. function TJSIDBDatabase.transaction(const aStoreNames: TUnicodeStringDynArray; aMode: TIDBTransactionMode; const aOptions: TJSIDBTransactionOptions): IJSIDBTransaction;
  100122. begin
  100123. Result:=InvokeJSObjectResult('transaction',[aStoreNames,aMode,aOptions],TJSIDBTransaction) as IJSIDBTransaction;
  100124. end;
  100125. function TJSIDBDatabase.transaction(const aStoreNames: TUnicodeStringDynArray): IJSIDBTransaction;
  100126. begin
  100127. Result:=InvokeJSObjectResult('transaction',[aStoreNames],TJSIDBTransaction) as IJSIDBTransaction;
  100128. end;
  100129. function TJSIDBDatabase.transaction(const aStoreNames: UnicodeString): IJSIDBTransaction;
  100130. begin
  100131. Result:=InvokeJSObjectResult('transaction',[aStoreNames],TJSIDBTransaction) as IJSIDBTransaction;
  100132. end;
  100133. function TJSIDBDatabase.transaction(const aStoreNames: TUnicodeStringDynArray; aMode: TIDBTransactionMode): IJSIDBTransaction;
  100134. begin
  100135. Result:=InvokeJSObjectResult('transaction',[aStoreNames,aMode],TJSIDBTransaction) as IJSIDBTransaction;
  100136. end;
  100137. function TJSIDBDatabase.transaction(const aStoreNames: UnicodeString; aMode: TIDBTransactionMode): IJSIDBTransaction;
  100138. begin
  100139. Result:=InvokeJSObjectResult('transaction',[aStoreNames,aMode],TJSIDBTransaction) as IJSIDBTransaction;
  100140. end;
  100141. function TJSIDBDatabase.createObjectStore(const aName: UnicodeString; const aOptions: TJSIDBObjectStoreParameters): IJSIDBObjectStore;
  100142. begin
  100143. Result:=InvokeJSObjectResult('createObjectStore',[aName,aOptions],TJSIDBObjectStore) as IJSIDBObjectStore;
  100144. end;
  100145. function TJSIDBDatabase.createObjectStore(const aName: UnicodeString): IJSIDBObjectStore;
  100146. begin
  100147. Result:=InvokeJSObjectResult('createObjectStore',[aName],TJSIDBObjectStore) as IJSIDBObjectStore;
  100148. end;
  100149. procedure TJSIDBDatabase.deleteObjectStore(const aName: UnicodeString);
  100150. begin
  100151. InvokeJSNoResult('deleteObjectStore',[aName]);
  100152. end;
  100153. procedure TJSIDBDatabase.close;
  100154. begin
  100155. InvokeJSNoResult('close',[]);
  100156. end;
  100157. class function TJSIDBDatabase.JSClassName: UnicodeString;
  100158. begin
  100159. Result:='IDBDatabase';
  100160. end;
  100161. class function TJSIDBDatabase.Cast(const Intf: IJSObject): IJSIDBDatabase;
  100162. begin
  100163. Result:=TJSIDBDatabase.JOBCast(Intf);
  100164. end;
  100165. function TJSIDBOpenDBOptions._Getversion: QWord;
  100166. begin
  100167. Result:=ReadJSPropertyInt64('version');
  100168. end;
  100169. procedure TJSIDBOpenDBOptions._Setversion(const aValue : QWord);
  100170. begin
  100171. WriteJSPropertyDouble('version',aValue);
  100172. end;
  100173. class function TJSIDBOpenDBOptions.JSClassName: UnicodeString;
  100174. begin
  100175. Result:='Object';
  100176. end;
  100177. class function TJSIDBOpenDBOptions.Cast(const Intf: IJSObject): IJSIDBOpenDBOptions;
  100178. begin
  100179. Result:=TJSIDBOpenDBOptions.JOBCast(Intf);
  100180. end;
  100181. function TJSIDBFactory.open(const aName: UnicodeString; aVersion: QWord): IJSIDBOpenDBRequest;
  100182. begin
  100183. Result:=InvokeJSObjectResult('open',[aName,aVersion],TJSIDBOpenDBRequest) as IJSIDBOpenDBRequest;
  100184. end;
  100185. function TJSIDBFactory.open(const aName: UnicodeString; const aOptions: TJSIDBOpenDBOptions): IJSIDBOpenDBRequest;
  100186. begin
  100187. Result:=InvokeJSObjectResult('open',[aName,aOptions],TJSIDBOpenDBRequest) as IJSIDBOpenDBRequest;
  100188. end;
  100189. function TJSIDBFactory.open(const aName: UnicodeString): IJSIDBOpenDBRequest;
  100190. begin
  100191. Result:=InvokeJSObjectResult('open',[aName],TJSIDBOpenDBRequest) as IJSIDBOpenDBRequest;
  100192. end;
  100193. function TJSIDBFactory.deleteDatabase(const aName: UnicodeString; const aOptions: TJSIDBOpenDBOptions): IJSIDBOpenDBRequest;
  100194. begin
  100195. Result:=InvokeJSObjectResult('deleteDatabase',[aName,aOptions],TJSIDBOpenDBRequest) as IJSIDBOpenDBRequest;
  100196. end;
  100197. function TJSIDBFactory.deleteDatabase(const aName: UnicodeString): IJSIDBOpenDBRequest;
  100198. begin
  100199. Result:=InvokeJSObjectResult('deleteDatabase',[aName],TJSIDBOpenDBRequest) as IJSIDBOpenDBRequest;
  100200. end;
  100201. function TJSIDBFactory.databases: IJSPromise; // Promise<sequence>
  100202. begin
  100203. Result:=InvokeJSObjectResult('databases',[],TJSPromise) as IJSPromise;
  100204. end;
  100205. function TJSIDBFactory.cmp(const aFirst: Variant; const aSecond: Variant): SmallInt;
  100206. begin
  100207. Result:=InvokeJSLongIntResult('cmp',[aFirst,aSecond]);
  100208. end;
  100209. class function TJSIDBFactory.JSClassName: UnicodeString;
  100210. begin
  100211. Result:='IDBFactory';
  100212. end;
  100213. class function TJSIDBFactory.Cast(const Intf: IJSObject): IJSIDBFactory;
  100214. begin
  100215. Result:=TJSIDBFactory.JOBCast(Intf);
  100216. end;
  100217. function TJSIDBDatabaseInfo._Getname: UnicodeString;
  100218. begin
  100219. Result:=ReadJSPropertyUnicodeString('name');
  100220. end;
  100221. function TJSIDBDatabaseInfo._Getversion: QWord;
  100222. begin
  100223. Result:=ReadJSPropertyInt64('version');
  100224. end;
  100225. procedure TJSIDBDatabaseInfo._Setname(const aValue : UnicodeString);
  100226. begin
  100227. WriteJSPropertyUnicodeString('name',aValue);
  100228. end;
  100229. procedure TJSIDBDatabaseInfo._Setversion(const aValue : QWord);
  100230. begin
  100231. WriteJSPropertyDouble('version',aValue);
  100232. end;
  100233. class function TJSIDBDatabaseInfo.JSClassName: UnicodeString;
  100234. begin
  100235. Result:='Object';
  100236. end;
  100237. class function TJSIDBDatabaseInfo.Cast(const Intf: IJSObject): IJSIDBDatabaseInfo;
  100238. begin
  100239. Result:=TJSIDBDatabaseInfo.JOBCast(Intf);
  100240. end;
  100241. function TJSIDBIndexParameters._Getunique: Boolean;
  100242. begin
  100243. Result:=ReadJSPropertyBoolean('unique');
  100244. end;
  100245. function TJSIDBIndexParameters._GetmultiEntry: Boolean;
  100246. begin
  100247. Result:=ReadJSPropertyBoolean('multiEntry');
  100248. end;
  100249. function TJSIDBIndexParameters._Getlocale: UnicodeString;
  100250. begin
  100251. Result:=ReadJSPropertyUnicodeString('locale');
  100252. end;
  100253. procedure TJSIDBIndexParameters._Setunique(const aValue : Boolean);
  100254. begin
  100255. WriteJSPropertyBoolean('unique',aValue);
  100256. end;
  100257. procedure TJSIDBIndexParameters._SetmultiEntry(const aValue : Boolean);
  100258. begin
  100259. WriteJSPropertyBoolean('multiEntry',aValue);
  100260. end;
  100261. procedure TJSIDBIndexParameters._Setlocale(const aValue : UnicodeString);
  100262. begin
  100263. WriteJSPropertyUnicodeString('locale',aValue);
  100264. end;
  100265. class function TJSIDBIndexParameters.JSClassName: UnicodeString;
  100266. begin
  100267. Result:='Object';
  100268. end;
  100269. class function TJSIDBIndexParameters.Cast(const Intf: IJSObject): IJSIDBIndexParameters;
  100270. begin
  100271. Result:=TJSIDBIndexParameters.JOBCast(Intf);
  100272. end;
  100273. function TJSIDBIndex._Getname: UnicodeString;
  100274. begin
  100275. Result:=ReadJSPropertyUnicodeString('name');
  100276. end;
  100277. function TJSIDBIndex._GetobjectStore: IJSIDBObjectStore;
  100278. begin
  100279. Result:=ReadJSPropertyObject('objectStore',TJSIDBObjectStore) as IJSIDBObjectStore;
  100280. end;
  100281. function TJSIDBIndex._GetkeyPath: Variant;
  100282. begin
  100283. Result:=ReadJSPropertyVariant('keyPath');
  100284. end;
  100285. function TJSIDBIndex._GetmultiEntry: Boolean;
  100286. begin
  100287. Result:=ReadJSPropertyBoolean('multiEntry');
  100288. end;
  100289. function TJSIDBIndex._Getunique: Boolean;
  100290. begin
  100291. Result:=ReadJSPropertyBoolean('unique');
  100292. end;
  100293. function TJSIDBIndex._Getlocale: UnicodeString;
  100294. begin
  100295. Result:=ReadJSPropertyUnicodeString('locale');
  100296. end;
  100297. function TJSIDBIndex._GetisAutoLocale: Boolean;
  100298. begin
  100299. Result:=ReadJSPropertyBoolean('isAutoLocale');
  100300. end;
  100301. procedure TJSIDBIndex._Setname(const aValue : UnicodeString);
  100302. begin
  100303. WriteJSPropertyUnicodeString('name',aValue);
  100304. end;
  100305. function TJSIDBIndex.get(const aQuery: Variant): IJSIDBRequest;
  100306. begin
  100307. Result:=InvokeJSObjectResult('get',[aQuery],TJSIDBRequest) as IJSIDBRequest;
  100308. end;
  100309. function TJSIDBIndex.getKey(const aQuery: Variant): IJSIDBRequest;
  100310. begin
  100311. Result:=InvokeJSObjectResult('getKey',[aQuery],TJSIDBRequest) as IJSIDBRequest;
  100312. end;
  100313. function TJSIDBIndex.getAll(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest;
  100314. begin
  100315. Result:=InvokeJSObjectResult('getAll',[aQuery,aCount],TJSIDBRequest) as IJSIDBRequest;
  100316. end;
  100317. function TJSIDBIndex.getAll: IJSIDBRequest;
  100318. begin
  100319. Result:=InvokeJSObjectResult('getAll',[],TJSIDBRequest) as IJSIDBRequest;
  100320. end;
  100321. function TJSIDBIndex.getAll(const aQuery: Variant): IJSIDBRequest;
  100322. begin
  100323. Result:=InvokeJSObjectResult('getAll',[aQuery],TJSIDBRequest) as IJSIDBRequest;
  100324. end;
  100325. function TJSIDBIndex.getAllKeys(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest;
  100326. begin
  100327. Result:=InvokeJSObjectResult('getAllKeys',[aQuery,aCount],TJSIDBRequest) as IJSIDBRequest;
  100328. end;
  100329. function TJSIDBIndex.getAllKeys: IJSIDBRequest;
  100330. begin
  100331. Result:=InvokeJSObjectResult('getAllKeys',[],TJSIDBRequest) as IJSIDBRequest;
  100332. end;
  100333. function TJSIDBIndex.getAllKeys(const aQuery: Variant): IJSIDBRequest;
  100334. begin
  100335. Result:=InvokeJSObjectResult('getAllKeys',[aQuery],TJSIDBRequest) as IJSIDBRequest;
  100336. end;
  100337. function TJSIDBIndex.count(const aQuery: Variant): IJSIDBRequest;
  100338. begin
  100339. Result:=InvokeJSObjectResult('count',[aQuery],TJSIDBRequest) as IJSIDBRequest;
  100340. end;
  100341. function TJSIDBIndex.count: IJSIDBRequest;
  100342. begin
  100343. Result:=InvokeJSObjectResult('count',[],TJSIDBRequest) as IJSIDBRequest;
  100344. end;
  100345. function TJSIDBIndex.openCursor(const aQuery: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest;
  100346. begin
  100347. Result:=InvokeJSObjectResult('openCursor',[aQuery,aDirection],TJSIDBRequest) as IJSIDBRequest;
  100348. end;
  100349. function TJSIDBIndex.openCursor: IJSIDBRequest;
  100350. begin
  100351. Result:=InvokeJSObjectResult('openCursor',[],TJSIDBRequest) as IJSIDBRequest;
  100352. end;
  100353. function TJSIDBIndex.openCursor(const aQuery: Variant): IJSIDBRequest;
  100354. begin
  100355. Result:=InvokeJSObjectResult('openCursor',[aQuery],TJSIDBRequest) as IJSIDBRequest;
  100356. end;
  100357. function TJSIDBIndex.openKeyCursor(const aQuery: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest;
  100358. begin
  100359. Result:=InvokeJSObjectResult('openKeyCursor',[aQuery,aDirection],TJSIDBRequest) as IJSIDBRequest;
  100360. end;
  100361. function TJSIDBIndex.openKeyCursor: IJSIDBRequest;
  100362. begin
  100363. Result:=InvokeJSObjectResult('openKeyCursor',[],TJSIDBRequest) as IJSIDBRequest;
  100364. end;
  100365. function TJSIDBIndex.openKeyCursor(const aQuery: Variant): IJSIDBRequest;
  100366. begin
  100367. Result:=InvokeJSObjectResult('openKeyCursor',[aQuery],TJSIDBRequest) as IJSIDBRequest;
  100368. end;
  100369. class function TJSIDBIndex.JSClassName: UnicodeString;
  100370. begin
  100371. Result:='IDBIndex';
  100372. end;
  100373. class function TJSIDBIndex.Cast(const Intf: IJSObject): IJSIDBIndex;
  100374. begin
  100375. Result:=TJSIDBIndex.JOBCast(Intf);
  100376. end;
  100377. function TJSIDBKeyRange._Getlower: Variant;
  100378. begin
  100379. Result:=ReadJSPropertyVariant('lower');
  100380. end;
  100381. function TJSIDBKeyRange._Getupper: Variant;
  100382. begin
  100383. Result:=ReadJSPropertyVariant('upper');
  100384. end;
  100385. function TJSIDBKeyRange._GetlowerOpen: Boolean;
  100386. begin
  100387. Result:=ReadJSPropertyBoolean('lowerOpen');
  100388. end;
  100389. function TJSIDBKeyRange._GetupperOpen: Boolean;
  100390. begin
  100391. Result:=ReadJSPropertyBoolean('upperOpen');
  100392. end;
  100393. function TJSIDBKeyRange.includes(const aKey: Variant): Boolean;
  100394. begin
  100395. Result:=InvokeJSBooleanResult('includes',[aKey]);
  100396. end;
  100397. function TJSIDBKeyRange.only(const aValue: Variant): IJSIDBKeyRange;
  100398. begin
  100399. Result:=InvokeJSObjectResult('only',[aValue],TJSIDBKeyRange) as IJSIDBKeyRange;
  100400. end;
  100401. function TJSIDBKeyRange.lowerBound(const aLower: Variant; aOpen: Boolean): IJSIDBKeyRange;
  100402. begin
  100403. Result:=InvokeJSObjectResult('lowerBound',[aLower,aOpen],TJSIDBKeyRange) as IJSIDBKeyRange;
  100404. end;
  100405. function TJSIDBKeyRange.lowerBound(const aLower: Variant): IJSIDBKeyRange;
  100406. begin
  100407. Result:=InvokeJSObjectResult('lowerBound',[aLower],TJSIDBKeyRange) as IJSIDBKeyRange;
  100408. end;
  100409. function TJSIDBKeyRange.upperBound(const aUpper: Variant; aOpen: Boolean): IJSIDBKeyRange;
  100410. begin
  100411. Result:=InvokeJSObjectResult('upperBound',[aUpper,aOpen],TJSIDBKeyRange) as IJSIDBKeyRange;
  100412. end;
  100413. function TJSIDBKeyRange.upperBound(const aUpper: Variant): IJSIDBKeyRange;
  100414. begin
  100415. Result:=InvokeJSObjectResult('upperBound',[aUpper],TJSIDBKeyRange) as IJSIDBKeyRange;
  100416. end;
  100417. function TJSIDBKeyRange.bound(const aLower: Variant; const aUpper: Variant; aLowerOpen: Boolean; aUpperOpen: Boolean): IJSIDBKeyRange;
  100418. begin
  100419. Result:=InvokeJSObjectResult('bound',[aLower,aUpper,aLowerOpen,aUpperOpen],TJSIDBKeyRange) as IJSIDBKeyRange;
  100420. end;
  100421. function TJSIDBKeyRange.bound(const aLower: Variant; const aUpper: Variant): IJSIDBKeyRange;
  100422. begin
  100423. Result:=InvokeJSObjectResult('bound',[aLower,aUpper],TJSIDBKeyRange) as IJSIDBKeyRange;
  100424. end;
  100425. function TJSIDBKeyRange.bound(const aLower: Variant; const aUpper: Variant; aLowerOpen: Boolean): IJSIDBKeyRange;
  100426. begin
  100427. Result:=InvokeJSObjectResult('bound',[aLower,aUpper,aLowerOpen],TJSIDBKeyRange) as IJSIDBKeyRange;
  100428. end;
  100429. class function TJSIDBKeyRange.JSClassName: UnicodeString;
  100430. begin
  100431. Result:='IDBKeyRange';
  100432. end;
  100433. class function TJSIDBKeyRange.Cast(const Intf: IJSObject): IJSIDBKeyRange;
  100434. begin
  100435. Result:=TJSIDBKeyRange.JOBCast(Intf);
  100436. end;
  100437. function TJSIDBObjectStoreParameters._GetkeyPath: TIDBObjectStoreParameters_keyPath_Type;
  100438. begin
  100439. Result:=ReadJSPropertyVariant('keyPath');
  100440. end;
  100441. function TJSIDBObjectStoreParameters._GetautoIncrement: Boolean;
  100442. begin
  100443. Result:=ReadJSPropertyBoolean('autoIncrement');
  100444. end;
  100445. procedure TJSIDBObjectStoreParameters._SetkeyPath(const aValue : TIDBObjectStoreParameters_keyPath_Type);
  100446. begin
  100447. WriteJSPropertyVariant('keyPath',aValue);
  100448. end;
  100449. procedure TJSIDBObjectStoreParameters._SetautoIncrement(const aValue : Boolean);
  100450. begin
  100451. WriteJSPropertyBoolean('autoIncrement',aValue);
  100452. end;
  100453. class function TJSIDBObjectStoreParameters.JSClassName: UnicodeString;
  100454. begin
  100455. Result:='Object';
  100456. end;
  100457. class function TJSIDBObjectStoreParameters.Cast(const Intf: IJSObject): IJSIDBObjectStoreParameters;
  100458. begin
  100459. Result:=TJSIDBObjectStoreParameters.JOBCast(Intf);
  100460. end;
  100461. function TJSIDBObjectStore._Getname: UnicodeString;
  100462. begin
  100463. Result:=ReadJSPropertyUnicodeString('name');
  100464. end;
  100465. function TJSIDBObjectStore._GetkeyPath: Variant;
  100466. begin
  100467. Result:=ReadJSPropertyVariant('keyPath');
  100468. end;
  100469. function TJSIDBObjectStore._GetindexNames: IJSDOMStringList;
  100470. begin
  100471. Result:=ReadJSPropertyObject('indexNames',TJSDOMStringList) as IJSDOMStringList;
  100472. end;
  100473. function TJSIDBObjectStore._Gettransaction: IJSIDBTransaction;
  100474. begin
  100475. Result:=ReadJSPropertyObject('transaction',TJSIDBTransaction) as IJSIDBTransaction;
  100476. end;
  100477. function TJSIDBObjectStore._GetautoIncrement: Boolean;
  100478. begin
  100479. Result:=ReadJSPropertyBoolean('autoIncrement');
  100480. end;
  100481. procedure TJSIDBObjectStore._Setname(const aValue : UnicodeString);
  100482. begin
  100483. WriteJSPropertyUnicodeString('name',aValue);
  100484. end;
  100485. function TJSIDBObjectStore.put(const aValue: Variant; const aKey: Variant): IJSIDBRequest;
  100486. begin
  100487. Result:=InvokeJSObjectResult('put',[aValue,aKey],TJSIDBRequest) as IJSIDBRequest;
  100488. end;
  100489. function TJSIDBObjectStore.put(const aValue: Variant): IJSIDBRequest;
  100490. begin
  100491. Result:=InvokeJSObjectResult('put',[aValue],TJSIDBRequest) as IJSIDBRequest;
  100492. end;
  100493. function TJSIDBObjectStore.add(const aValue: Variant; const aKey: Variant): IJSIDBRequest;
  100494. begin
  100495. Result:=InvokeJSObjectResult('add',[aValue,aKey],TJSIDBRequest) as IJSIDBRequest;
  100496. end;
  100497. function TJSIDBObjectStore.add(const aValue: Variant): IJSIDBRequest;
  100498. begin
  100499. Result:=InvokeJSObjectResult('add',[aValue],TJSIDBRequest) as IJSIDBRequest;
  100500. end;
  100501. function TJSIDBObjectStore.delete(const aKey: Variant): IJSIDBRequest;
  100502. begin
  100503. Result:=InvokeJSObjectResult('delete',[aKey],TJSIDBRequest) as IJSIDBRequest;
  100504. end;
  100505. function TJSIDBObjectStore.clear: IJSIDBRequest;
  100506. begin
  100507. Result:=InvokeJSObjectResult('clear',[],TJSIDBRequest) as IJSIDBRequest;
  100508. end;
  100509. function TJSIDBObjectStore.get(const aKey: Variant): IJSIDBRequest;
  100510. begin
  100511. Result:=InvokeJSObjectResult('get',[aKey],TJSIDBRequest) as IJSIDBRequest;
  100512. end;
  100513. function TJSIDBObjectStore.getKey(const aKey: Variant): IJSIDBRequest;
  100514. begin
  100515. Result:=InvokeJSObjectResult('getKey',[aKey],TJSIDBRequest) as IJSIDBRequest;
  100516. end;
  100517. function TJSIDBObjectStore.getAll(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest;
  100518. begin
  100519. Result:=InvokeJSObjectResult('getAll',[aQuery,aCount],TJSIDBRequest) as IJSIDBRequest;
  100520. end;
  100521. function TJSIDBObjectStore.getAll: IJSIDBRequest;
  100522. begin
  100523. Result:=InvokeJSObjectResult('getAll',[],TJSIDBRequest) as IJSIDBRequest;
  100524. end;
  100525. function TJSIDBObjectStore.getAll(const aQuery: Variant): IJSIDBRequest;
  100526. begin
  100527. Result:=InvokeJSObjectResult('getAll',[aQuery],TJSIDBRequest) as IJSIDBRequest;
  100528. end;
  100529. function TJSIDBObjectStore.getAllKeys(const aQuery: Variant; aCount: Cardinal): IJSIDBRequest;
  100530. begin
  100531. Result:=InvokeJSObjectResult('getAllKeys',[aQuery,aCount],TJSIDBRequest) as IJSIDBRequest;
  100532. end;
  100533. function TJSIDBObjectStore.getAllKeys: IJSIDBRequest;
  100534. begin
  100535. Result:=InvokeJSObjectResult('getAllKeys',[],TJSIDBRequest) as IJSIDBRequest;
  100536. end;
  100537. function TJSIDBObjectStore.getAllKeys(const aQuery: Variant): IJSIDBRequest;
  100538. begin
  100539. Result:=InvokeJSObjectResult('getAllKeys',[aQuery],TJSIDBRequest) as IJSIDBRequest;
  100540. end;
  100541. function TJSIDBObjectStore.count(const aKey: Variant): IJSIDBRequest;
  100542. begin
  100543. Result:=InvokeJSObjectResult('count',[aKey],TJSIDBRequest) as IJSIDBRequest;
  100544. end;
  100545. function TJSIDBObjectStore.count: IJSIDBRequest;
  100546. begin
  100547. Result:=InvokeJSObjectResult('count',[],TJSIDBRequest) as IJSIDBRequest;
  100548. end;
  100549. function TJSIDBObjectStore.openCursor(const aRange: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest;
  100550. begin
  100551. Result:=InvokeJSObjectResult('openCursor',[aRange,aDirection],TJSIDBRequest) as IJSIDBRequest;
  100552. end;
  100553. function TJSIDBObjectStore.openCursor: IJSIDBRequest;
  100554. begin
  100555. Result:=InvokeJSObjectResult('openCursor',[],TJSIDBRequest) as IJSIDBRequest;
  100556. end;
  100557. function TJSIDBObjectStore.openCursor(const aRange: Variant): IJSIDBRequest;
  100558. begin
  100559. Result:=InvokeJSObjectResult('openCursor',[aRange],TJSIDBRequest) as IJSIDBRequest;
  100560. end;
  100561. function TJSIDBObjectStore.openKeyCursor(const aQuery: Variant; aDirection: TIDBCursorDirection): IJSIDBRequest;
  100562. begin
  100563. Result:=InvokeJSObjectResult('openKeyCursor',[aQuery,aDirection],TJSIDBRequest) as IJSIDBRequest;
  100564. end;
  100565. function TJSIDBObjectStore.openKeyCursor: IJSIDBRequest;
  100566. begin
  100567. Result:=InvokeJSObjectResult('openKeyCursor',[],TJSIDBRequest) as IJSIDBRequest;
  100568. end;
  100569. function TJSIDBObjectStore.openKeyCursor(const aQuery: Variant): IJSIDBRequest;
  100570. begin
  100571. Result:=InvokeJSObjectResult('openKeyCursor',[aQuery],TJSIDBRequest) as IJSIDBRequest;
  100572. end;
  100573. function TJSIDBObjectStore.createIndex(const aName: UnicodeString; const aKeyPath: UnicodeString; const aOptionalParameters: TJSIDBIndexParameters): IJSIDBIndex;
  100574. begin
  100575. Result:=InvokeJSObjectResult('createIndex',[aName,aKeyPath,aOptionalParameters],TJSIDBIndex) as IJSIDBIndex;
  100576. end;
  100577. function TJSIDBObjectStore.createIndex(const aName: UnicodeString; const aKeyPath: TUnicodeStringDynArray; const aOptionalParameters: TJSIDBIndexParameters): IJSIDBIndex;
  100578. begin
  100579. Result:=InvokeJSObjectResult('createIndex',[aName,aKeyPath,aOptionalParameters],TJSIDBIndex) as IJSIDBIndex;
  100580. end;
  100581. function TJSIDBObjectStore.createIndex(const aName: UnicodeString; const aKeyPath: TUnicodeStringDynArray): IJSIDBIndex;
  100582. begin
  100583. Result:=InvokeJSObjectResult('createIndex',[aName,aKeyPath],TJSIDBIndex) as IJSIDBIndex;
  100584. end;
  100585. function TJSIDBObjectStore.createIndex(const aName: UnicodeString; const aKeyPath: UnicodeString): IJSIDBIndex;
  100586. begin
  100587. Result:=InvokeJSObjectResult('createIndex',[aName,aKeyPath],TJSIDBIndex) as IJSIDBIndex;
  100588. end;
  100589. function TJSIDBObjectStore.index(const aName: UnicodeString): IJSIDBIndex;
  100590. begin
  100591. Result:=InvokeJSObjectResult('index',[aName],TJSIDBIndex) as IJSIDBIndex;
  100592. end;
  100593. procedure TJSIDBObjectStore.deleteIndex(const aIndexName: UnicodeString);
  100594. begin
  100595. InvokeJSNoResult('deleteIndex',[aIndexName]);
  100596. end;
  100597. class function TJSIDBObjectStore.JSClassName: UnicodeString;
  100598. begin
  100599. Result:='IDBObjectStore';
  100600. end;
  100601. class function TJSIDBObjectStore.Cast(const Intf: IJSObject): IJSIDBObjectStore;
  100602. begin
  100603. Result:=TJSIDBObjectStore.JOBCast(Intf);
  100604. end;
  100605. function TJSIDBOpenDBRequest._Getonblocked: TEventHandler;
  100606. begin
  100607. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onblocked')));
  100608. end;
  100609. function TJSIDBOpenDBRequest._Getonupgradeneeded: TEventHandler;
  100610. begin
  100611. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onupgradeneeded')));
  100612. end;
  100613. procedure TJSIDBOpenDBRequest._Setonblocked(const aValue : TEventHandler);
  100614. begin
  100615. WriteJSPropertyMethod('onblocked',TMethod(aValue));
  100616. end;
  100617. procedure TJSIDBOpenDBRequest._Setonupgradeneeded(const aValue : TEventHandler);
  100618. begin
  100619. WriteJSPropertyMethod('onupgradeneeded',TMethod(aValue));
  100620. end;
  100621. class function TJSIDBOpenDBRequest.JSClassName: UnicodeString;
  100622. begin
  100623. Result:='IDBOpenDBRequest';
  100624. end;
  100625. class function TJSIDBOpenDBRequest.Cast(const Intf: IJSObject): IJSIDBOpenDBRequest;
  100626. begin
  100627. Result:=TJSIDBOpenDBRequest.JOBCast(Intf);
  100628. end;
  100629. function TJSIDBRequest._Getresult: Variant;
  100630. begin
  100631. Result:=ReadJSPropertyVariant('result');
  100632. end;
  100633. function TJSIDBRequest._Geterror: IJSDOMException;
  100634. begin
  100635. Result:=ReadJSPropertyObject('error',TJSDOMException) as IJSDOMException;
  100636. end;
  100637. function TJSIDBRequest._Getsource: TIDBRequest_source_Type;
  100638. begin
  100639. Result:=ReadJSPropertyVariant('source');
  100640. end;
  100641. function TJSIDBRequest._Gettransaction: IJSIDBTransaction;
  100642. begin
  100643. Result:=ReadJSPropertyObject('transaction',TJSIDBTransaction) as IJSIDBTransaction;
  100644. end;
  100645. function TJSIDBRequest._GetreadyState: TIDBRequestReadyState;
  100646. begin
  100647. Result:=ReadJSPropertyUnicodeString('readyState');
  100648. end;
  100649. function TJSIDBRequest._Getonsuccess: TEventHandler;
  100650. begin
  100651. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsuccess')));
  100652. end;
  100653. function TJSIDBRequest._Getonerror: TEventHandler;
  100654. begin
  100655. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  100656. end;
  100657. procedure TJSIDBRequest._Setonsuccess(const aValue : TEventHandler);
  100658. begin
  100659. WriteJSPropertyMethod('onsuccess',TMethod(aValue));
  100660. end;
  100661. procedure TJSIDBRequest._Setonerror(const aValue : TEventHandler);
  100662. begin
  100663. WriteJSPropertyMethod('onerror',TMethod(aValue));
  100664. end;
  100665. class function TJSIDBRequest.JSClassName: UnicodeString;
  100666. begin
  100667. Result:='IDBRequest';
  100668. end;
  100669. class function TJSIDBRequest.Cast(const Intf: IJSObject): IJSIDBRequest;
  100670. begin
  100671. Result:=TJSIDBRequest.JOBCast(Intf);
  100672. end;
  100673. function TJSIDBTransaction._Getmode: TIDBTransactionMode;
  100674. begin
  100675. Result:=ReadJSPropertyUnicodeString('mode');
  100676. end;
  100677. function TJSIDBTransaction._Getdurability: TIDBTransactionDurability;
  100678. begin
  100679. Result:=ReadJSPropertyUnicodeString('durability');
  100680. end;
  100681. function TJSIDBTransaction._Getdb: IJSIDBDatabase;
  100682. begin
  100683. Result:=ReadJSPropertyObject('db',TJSIDBDatabase) as IJSIDBDatabase;
  100684. end;
  100685. function TJSIDBTransaction._Geterror: IJSDOMException;
  100686. begin
  100687. Result:=ReadJSPropertyObject('error',TJSDOMException) as IJSDOMException;
  100688. end;
  100689. function TJSIDBTransaction._Getonabort: TEventHandler;
  100690. begin
  100691. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  100692. end;
  100693. function TJSIDBTransaction._Getoncomplete: TEventHandler;
  100694. begin
  100695. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncomplete')));
  100696. end;
  100697. function TJSIDBTransaction._Getonerror: TEventHandler;
  100698. begin
  100699. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  100700. end;
  100701. function TJSIDBTransaction._GetobjectStoreNames: IJSDOMStringList;
  100702. begin
  100703. Result:=ReadJSPropertyObject('objectStoreNames',TJSDOMStringList) as IJSDOMStringList;
  100704. end;
  100705. procedure TJSIDBTransaction._Setonabort(const aValue : TEventHandler);
  100706. begin
  100707. WriteJSPropertyMethod('onabort',TMethod(aValue));
  100708. end;
  100709. procedure TJSIDBTransaction._Setoncomplete(const aValue : TEventHandler);
  100710. begin
  100711. WriteJSPropertyMethod('oncomplete',TMethod(aValue));
  100712. end;
  100713. procedure TJSIDBTransaction._Setonerror(const aValue : TEventHandler);
  100714. begin
  100715. WriteJSPropertyMethod('onerror',TMethod(aValue));
  100716. end;
  100717. function TJSIDBTransaction.objectStore(const aName: UnicodeString): IJSIDBObjectStore;
  100718. begin
  100719. Result:=InvokeJSObjectResult('objectStore',[aName],TJSIDBObjectStore) as IJSIDBObjectStore;
  100720. end;
  100721. procedure TJSIDBTransaction.commit;
  100722. begin
  100723. InvokeJSNoResult('commit',[]);
  100724. end;
  100725. procedure TJSIDBTransaction.abort;
  100726. begin
  100727. InvokeJSNoResult('abort',[]);
  100728. end;
  100729. class function TJSIDBTransaction.JSClassName: UnicodeString;
  100730. begin
  100731. Result:='IDBTransaction';
  100732. end;
  100733. class function TJSIDBTransaction.Cast(const Intf: IJSObject): IJSIDBTransaction;
  100734. begin
  100735. Result:=TJSIDBTransaction.JOBCast(Intf);
  100736. end;
  100737. function TJSIDBVersionChangeEventInit._GetoldVersion: QWord;
  100738. begin
  100739. Result:=ReadJSPropertyInt64('oldVersion');
  100740. end;
  100741. function TJSIDBVersionChangeEventInit._GetnewVersion: QWord;
  100742. begin
  100743. Result:=ReadJSPropertyInt64('newVersion');
  100744. end;
  100745. procedure TJSIDBVersionChangeEventInit._SetoldVersion(const aValue : QWord);
  100746. begin
  100747. WriteJSPropertyDouble('oldVersion',aValue);
  100748. end;
  100749. procedure TJSIDBVersionChangeEventInit._SetnewVersion(const aValue : QWord);
  100750. begin
  100751. WriteJSPropertyDouble('newVersion',aValue);
  100752. end;
  100753. class function TJSIDBVersionChangeEventInit.JSClassName: UnicodeString;
  100754. begin
  100755. Result:='Object';
  100756. end;
  100757. class function TJSIDBVersionChangeEventInit.Cast(const Intf: IJSObject): IJSIDBVersionChangeEventInit;
  100758. begin
  100759. Result:=TJSIDBVersionChangeEventInit.JOBCast(Intf);
  100760. end;
  100761. function TJSIDBVersionChangeEvent._GetoldVersion: QWord;
  100762. begin
  100763. Result:=ReadJSPropertyInt64('oldVersion');
  100764. end;
  100765. function TJSIDBVersionChangeEvent._GetnewVersion: QWord;
  100766. begin
  100767. Result:=ReadJSPropertyInt64('newVersion');
  100768. end;
  100769. constructor TJSIDBVersionChangeEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSIDBVersionChangeEventInit);
  100770. begin
  100771. JOBCreate([aType_,aEventInitDict]);
  100772. end;
  100773. constructor TJSIDBVersionChangeEvent.Create(const aType_: UnicodeString);
  100774. begin
  100775. JOBCreate([aType_]);
  100776. end;
  100777. class function TJSIDBVersionChangeEvent.JSClassName: UnicodeString;
  100778. begin
  100779. Result:='IDBVersionChangeEvent';
  100780. end;
  100781. class function TJSIDBVersionChangeEvent.Cast(const Intf: IJSObject): IJSIDBVersionChangeEvent;
  100782. begin
  100783. Result:=TJSIDBVersionChangeEvent.JOBCast(Intf);
  100784. end;
  100785. function TJSIdentityCredential._Gettoken: UnicodeString;
  100786. begin
  100787. Result:=ReadJSPropertyUnicodeString('token');
  100788. end;
  100789. function TJSIdentityCredential.logoutRPs(const aLogoutRequests: TJSIdentityCredentialLogoutRPsRequestDynArray): IJSPromise; // Promise<undefined>
  100790. begin
  100791. Result:=InvokeJSObjectResult('logoutRPs',[aLogoutRequests],TJSPromise) as IJSPromise;
  100792. end;
  100793. class function TJSIdentityCredential.JSClassName: UnicodeString;
  100794. begin
  100795. Result:='IdentityCredential';
  100796. end;
  100797. class function TJSIdentityCredential.Cast(const Intf: IJSObject): IJSIdentityCredential;
  100798. begin
  100799. Result:=TJSIdentityCredential.JOBCast(Intf);
  100800. end;
  100801. function TJSIdentityCredentialRequestOptions._Getproviders: TJSIdentityProviderConfigDynArray;
  100802. begin
  100803. Result:=ReadJSPropertyObject('providers',TJSArray) as TJSIdentityProviderConfigDynArray;
  100804. end;
  100805. procedure TJSIdentityCredentialRequestOptions._Setproviders(const aValue : TJSIdentityProviderConfigDynArray);
  100806. begin
  100807. WriteJSPropertyObject('providers',aValue);
  100808. end;
  100809. class function TJSIdentityCredentialRequestOptions.JSClassName: UnicodeString;
  100810. begin
  100811. Result:='Object';
  100812. end;
  100813. class function TJSIdentityCredentialRequestOptions.Cast(const Intf: IJSObject): IJSIdentityCredentialRequestOptions;
  100814. begin
  100815. Result:=TJSIdentityCredentialRequestOptions.JOBCast(Intf);
  100816. end;
  100817. function TJSIdentityProviderConfig._GetconfigURL: UTF8String;
  100818. begin
  100819. Result:=ReadJSPropertyUTF8String('configURL');
  100820. end;
  100821. function TJSIdentityProviderConfig._GetclientId: UnicodeString;
  100822. begin
  100823. Result:=ReadJSPropertyUnicodeString('clientId');
  100824. end;
  100825. function TJSIdentityProviderConfig._Getnonce: UnicodeString;
  100826. begin
  100827. Result:=ReadJSPropertyUnicodeString('nonce');
  100828. end;
  100829. procedure TJSIdentityProviderConfig._SetconfigURL(const aValue : UTF8String);
  100830. begin
  100831. WriteJSPropertyUTF8String('configURL',aValue);
  100832. end;
  100833. procedure TJSIdentityProviderConfig._SetclientId(const aValue : UnicodeString);
  100834. begin
  100835. WriteJSPropertyUnicodeString('clientId',aValue);
  100836. end;
  100837. procedure TJSIdentityProviderConfig._Setnonce(const aValue : UnicodeString);
  100838. begin
  100839. WriteJSPropertyUnicodeString('nonce',aValue);
  100840. end;
  100841. class function TJSIdentityProviderConfig.JSClassName: UnicodeString;
  100842. begin
  100843. Result:='Object';
  100844. end;
  100845. class function TJSIdentityProviderConfig.Cast(const Intf: IJSObject): IJSIdentityProviderConfig;
  100846. begin
  100847. Result:=TJSIdentityProviderConfig.JOBCast(Intf);
  100848. end;
  100849. function TJSIdentityProviderWellKnown._Getprovider_urls: TUTF8StringDynArray;
  100850. begin
  100851. Result:=ReadJSPropertyObject('provider_urls',TJSArray) as TUTF8StringDynArray;
  100852. end;
  100853. procedure TJSIdentityProviderWellKnown._Setprovider_urls(const aValue : TUTF8StringDynArray);
  100854. begin
  100855. WriteJSPropertyObject('provider_urls',aValue);
  100856. end;
  100857. class function TJSIdentityProviderWellKnown.JSClassName: UnicodeString;
  100858. begin
  100859. Result:='Object';
  100860. end;
  100861. class function TJSIdentityProviderWellKnown.Cast(const Intf: IJSObject): IJSIdentityProviderWellKnown;
  100862. begin
  100863. Result:=TJSIdentityProviderWellKnown.JOBCast(Intf);
  100864. end;
  100865. function TJSIdentityProviderIcon._Geturl: UnicodeString;
  100866. begin
  100867. Result:=ReadJSPropertyUnicodeString('url');
  100868. end;
  100869. function TJSIdentityProviderIcon._Getsize: Cardinal;
  100870. begin
  100871. Result:=ReadJSPropertyInt64('size');
  100872. end;
  100873. procedure TJSIdentityProviderIcon._Seturl(const aValue : UnicodeString);
  100874. begin
  100875. WriteJSPropertyUnicodeString('url',aValue);
  100876. end;
  100877. procedure TJSIdentityProviderIcon._Setsize(const aValue : Cardinal);
  100878. begin
  100879. WriteJSPropertyDouble('size',aValue);
  100880. end;
  100881. class function TJSIdentityProviderIcon.JSClassName: UnicodeString;
  100882. begin
  100883. Result:='Object';
  100884. end;
  100885. class function TJSIdentityProviderIcon.Cast(const Intf: IJSObject): IJSIdentityProviderIcon;
  100886. begin
  100887. Result:=TJSIdentityProviderIcon.JOBCast(Intf);
  100888. end;
  100889. function TJSIdentityProviderBranding._Getbackground_color: UnicodeString;
  100890. begin
  100891. Result:=ReadJSPropertyUnicodeString('background_color');
  100892. end;
  100893. function TJSIdentityProviderBranding._Getcolor: UnicodeString;
  100894. begin
  100895. Result:=ReadJSPropertyUnicodeString('color');
  100896. end;
  100897. function TJSIdentityProviderBranding._Geticons: TJSIdentityProviderIconDynArray;
  100898. begin
  100899. Result:=ReadJSPropertyObject('icons',TJSArray) as TJSIdentityProviderIconDynArray;
  100900. end;
  100901. function TJSIdentityProviderBranding._Getname: UnicodeString;
  100902. begin
  100903. Result:=ReadJSPropertyUnicodeString('name');
  100904. end;
  100905. procedure TJSIdentityProviderBranding._Setbackground_color(const aValue : UnicodeString);
  100906. begin
  100907. WriteJSPropertyUnicodeString('background_color',aValue);
  100908. end;
  100909. procedure TJSIdentityProviderBranding._Setcolor(const aValue : UnicodeString);
  100910. begin
  100911. WriteJSPropertyUnicodeString('color',aValue);
  100912. end;
  100913. procedure TJSIdentityProviderBranding._Seticons(const aValue : TJSIdentityProviderIconDynArray);
  100914. begin
  100915. WriteJSPropertyObject('icons',aValue);
  100916. end;
  100917. procedure TJSIdentityProviderBranding._Setname(const aValue : UnicodeString);
  100918. begin
  100919. WriteJSPropertyUnicodeString('name',aValue);
  100920. end;
  100921. class function TJSIdentityProviderBranding.JSClassName: UnicodeString;
  100922. begin
  100923. Result:='Object';
  100924. end;
  100925. class function TJSIdentityProviderBranding.Cast(const Intf: IJSObject): IJSIdentityProviderBranding;
  100926. begin
  100927. Result:=TJSIdentityProviderBranding.JOBCast(Intf);
  100928. end;
  100929. function TJSIdentityProviderAPIConfig._Getaccounts_endpoint: UTF8String;
  100930. begin
  100931. Result:=ReadJSPropertyUTF8String('accounts_endpoint');
  100932. end;
  100933. function TJSIdentityProviderAPIConfig._Getclient_metadata_endpoint: UTF8String;
  100934. begin
  100935. Result:=ReadJSPropertyUTF8String('client_metadata_endpoint');
  100936. end;
  100937. function TJSIdentityProviderAPIConfig._Getid_assertion_endpoint: UTF8String;
  100938. begin
  100939. Result:=ReadJSPropertyUTF8String('id_assertion_endpoint');
  100940. end;
  100941. function TJSIdentityProviderAPIConfig._Getbranding: TJSIdentityProviderBranding;
  100942. begin
  100943. Result:=ReadJSPropertyObject('branding',TJSIdentityProviderBranding) as TJSIdentityProviderBranding;
  100944. end;
  100945. procedure TJSIdentityProviderAPIConfig._Setaccounts_endpoint(const aValue : UTF8String);
  100946. begin
  100947. WriteJSPropertyUTF8String('accounts_endpoint',aValue);
  100948. end;
  100949. procedure TJSIdentityProviderAPIConfig._Setclient_metadata_endpoint(const aValue : UTF8String);
  100950. begin
  100951. WriteJSPropertyUTF8String('client_metadata_endpoint',aValue);
  100952. end;
  100953. procedure TJSIdentityProviderAPIConfig._Setid_assertion_endpoint(const aValue : UTF8String);
  100954. begin
  100955. WriteJSPropertyUTF8String('id_assertion_endpoint',aValue);
  100956. end;
  100957. procedure TJSIdentityProviderAPIConfig._Setbranding(const aValue : TJSIdentityProviderBranding);
  100958. begin
  100959. WriteJSPropertyObject('branding',aValue);
  100960. end;
  100961. class function TJSIdentityProviderAPIConfig.JSClassName: UnicodeString;
  100962. begin
  100963. Result:='Object';
  100964. end;
  100965. class function TJSIdentityProviderAPIConfig.Cast(const Intf: IJSObject): IJSIdentityProviderAPIConfig;
  100966. begin
  100967. Result:=TJSIdentityProviderAPIConfig.JOBCast(Intf);
  100968. end;
  100969. function TJSIdentityProviderAccount._Getid: UnicodeString;
  100970. begin
  100971. Result:=ReadJSPropertyUnicodeString('id');
  100972. end;
  100973. function TJSIdentityProviderAccount._Getname: UnicodeString;
  100974. begin
  100975. Result:=ReadJSPropertyUnicodeString('name');
  100976. end;
  100977. function TJSIdentityProviderAccount._Getemail: UnicodeString;
  100978. begin
  100979. Result:=ReadJSPropertyUnicodeString('email');
  100980. end;
  100981. function TJSIdentityProviderAccount._Getgiven_name: UnicodeString;
  100982. begin
  100983. Result:=ReadJSPropertyUnicodeString('given_name');
  100984. end;
  100985. function TJSIdentityProviderAccount._Getpicture: UnicodeString;
  100986. begin
  100987. Result:=ReadJSPropertyUnicodeString('picture');
  100988. end;
  100989. function TJSIdentityProviderAccount._Getapproved_clients: TUnicodeStringDynArray;
  100990. begin
  100991. Result:=ReadJSPropertyObject('approved_clients',TJSArray) as TUnicodeStringDynArray;
  100992. end;
  100993. procedure TJSIdentityProviderAccount._Setid(const aValue : UnicodeString);
  100994. begin
  100995. WriteJSPropertyUnicodeString('id',aValue);
  100996. end;
  100997. procedure TJSIdentityProviderAccount._Setname(const aValue : UnicodeString);
  100998. begin
  100999. WriteJSPropertyUnicodeString('name',aValue);
  101000. end;
  101001. procedure TJSIdentityProviderAccount._Setemail(const aValue : UnicodeString);
  101002. begin
  101003. WriteJSPropertyUnicodeString('email',aValue);
  101004. end;
  101005. procedure TJSIdentityProviderAccount._Setgiven_name(const aValue : UnicodeString);
  101006. begin
  101007. WriteJSPropertyUnicodeString('given_name',aValue);
  101008. end;
  101009. procedure TJSIdentityProviderAccount._Setpicture(const aValue : UnicodeString);
  101010. begin
  101011. WriteJSPropertyUnicodeString('picture',aValue);
  101012. end;
  101013. procedure TJSIdentityProviderAccount._Setapproved_clients(const aValue : TUnicodeStringDynArray);
  101014. begin
  101015. WriteJSPropertyObject('approved_clients',aValue);
  101016. end;
  101017. class function TJSIdentityProviderAccount.JSClassName: UnicodeString;
  101018. begin
  101019. Result:='Object';
  101020. end;
  101021. class function TJSIdentityProviderAccount.Cast(const Intf: IJSObject): IJSIdentityProviderAccount;
  101022. begin
  101023. Result:=TJSIdentityProviderAccount.JOBCast(Intf);
  101024. end;
  101025. function TJSIdentityProviderAccountList._Getaccounts: TJSIdentityProviderAccountDynArray;
  101026. begin
  101027. Result:=ReadJSPropertyObject('accounts',TJSArray) as TJSIdentityProviderAccountDynArray;
  101028. end;
  101029. procedure TJSIdentityProviderAccountList._Setaccounts(const aValue : TJSIdentityProviderAccountDynArray);
  101030. begin
  101031. WriteJSPropertyObject('accounts',aValue);
  101032. end;
  101033. class function TJSIdentityProviderAccountList.JSClassName: UnicodeString;
  101034. begin
  101035. Result:='Object';
  101036. end;
  101037. class function TJSIdentityProviderAccountList.Cast(const Intf: IJSObject): IJSIdentityProviderAccountList;
  101038. begin
  101039. Result:=TJSIdentityProviderAccountList.JOBCast(Intf);
  101040. end;
  101041. function TJSIdentityProviderClientMetadata._Getprivacy_policy_url: UnicodeString;
  101042. begin
  101043. Result:=ReadJSPropertyUnicodeString('privacy_policy_url');
  101044. end;
  101045. function TJSIdentityProviderClientMetadata._Getterms_of_service_url: UnicodeString;
  101046. begin
  101047. Result:=ReadJSPropertyUnicodeString('terms_of_service_url');
  101048. end;
  101049. procedure TJSIdentityProviderClientMetadata._Setprivacy_policy_url(const aValue : UnicodeString);
  101050. begin
  101051. WriteJSPropertyUnicodeString('privacy_policy_url',aValue);
  101052. end;
  101053. procedure TJSIdentityProviderClientMetadata._Setterms_of_service_url(const aValue : UnicodeString);
  101054. begin
  101055. WriteJSPropertyUnicodeString('terms_of_service_url',aValue);
  101056. end;
  101057. class function TJSIdentityProviderClientMetadata.JSClassName: UnicodeString;
  101058. begin
  101059. Result:='Object';
  101060. end;
  101061. class function TJSIdentityProviderClientMetadata.Cast(const Intf: IJSObject): IJSIdentityProviderClientMetadata;
  101062. begin
  101063. Result:=TJSIdentityProviderClientMetadata.JOBCast(Intf);
  101064. end;
  101065. function TJSIdentityProviderToken._Gettoken: UnicodeString;
  101066. begin
  101067. Result:=ReadJSPropertyUnicodeString('token');
  101068. end;
  101069. procedure TJSIdentityProviderToken._Settoken(const aValue : UnicodeString);
  101070. begin
  101071. WriteJSPropertyUnicodeString('token',aValue);
  101072. end;
  101073. class function TJSIdentityProviderToken.JSClassName: UnicodeString;
  101074. begin
  101075. Result:='Object';
  101076. end;
  101077. class function TJSIdentityProviderToken.Cast(const Intf: IJSObject): IJSIdentityProviderToken;
  101078. begin
  101079. Result:=TJSIdentityProviderToken.JOBCast(Intf);
  101080. end;
  101081. function TJSIdentityCredentialLogoutRPsRequest._Geturl: UTF8String;
  101082. begin
  101083. Result:=ReadJSPropertyUTF8String('url');
  101084. end;
  101085. function TJSIdentityCredentialLogoutRPsRequest._GetaccountId: UTF8String;
  101086. begin
  101087. Result:=ReadJSPropertyUTF8String('accountId');
  101088. end;
  101089. procedure TJSIdentityCredentialLogoutRPsRequest._Seturl(const aValue : UTF8String);
  101090. begin
  101091. WriteJSPropertyUTF8String('url',aValue);
  101092. end;
  101093. procedure TJSIdentityCredentialLogoutRPsRequest._SetaccountId(const aValue : UTF8String);
  101094. begin
  101095. WriteJSPropertyUTF8String('accountId',aValue);
  101096. end;
  101097. class function TJSIdentityCredentialLogoutRPsRequest.JSClassName: UnicodeString;
  101098. begin
  101099. Result:='Object';
  101100. end;
  101101. class function TJSIdentityCredentialLogoutRPsRequest.Cast(const Intf: IJSObject): IJSIdentityCredentialLogoutRPsRequest;
  101102. begin
  101103. Result:=TJSIdentityCredentialLogoutRPsRequest.JOBCast(Intf);
  101104. end;
  101105. function TJSIdleDeadline._GetdidTimeout: Boolean;
  101106. begin
  101107. Result:=ReadJSPropertyBoolean('didTimeout');
  101108. end;
  101109. function TJSIdleDeadline.timeRemaining: TDOMHighResTimeStamp;
  101110. begin
  101111. Result:=InvokeJSDoubleResult('timeRemaining',[]);
  101112. end;
  101113. class function TJSIdleDeadline.JSClassName: UnicodeString;
  101114. begin
  101115. Result:='IdleDeadline';
  101116. end;
  101117. class function TJSIdleDeadline.Cast(const Intf: IJSObject): IJSIdleDeadline;
  101118. begin
  101119. Result:=TJSIdleDeadline.JOBCast(Intf);
  101120. end;
  101121. function TJSIIRFilterOptions._Getfeedforward: TDoubleDynArray;
  101122. begin
  101123. Result:=ReadJSPropertyObject('feedforward',TJSArray) as TDoubleDynArray;
  101124. end;
  101125. function TJSIIRFilterOptions._Getfeedback: TDoubleDynArray;
  101126. begin
  101127. Result:=ReadJSPropertyObject('feedback',TJSArray) as TDoubleDynArray;
  101128. end;
  101129. procedure TJSIIRFilterOptions._Setfeedforward(const aValue : TDoubleDynArray);
  101130. begin
  101131. WriteJSPropertyObject('feedforward',aValue);
  101132. end;
  101133. procedure TJSIIRFilterOptions._Setfeedback(const aValue : TDoubleDynArray);
  101134. begin
  101135. WriteJSPropertyObject('feedback',aValue);
  101136. end;
  101137. class function TJSIIRFilterOptions.JSClassName: UnicodeString;
  101138. begin
  101139. Result:='Object';
  101140. end;
  101141. class function TJSIIRFilterOptions.Cast(const Intf: IJSObject): IJSIIRFilterOptions;
  101142. begin
  101143. Result:=TJSIIRFilterOptions.JOBCast(Intf);
  101144. end;
  101145. constructor TJSIIRFilterNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSIIRFilterOptions);
  101146. begin
  101147. JOBCreate([aContext,aOptions]);
  101148. end;
  101149. procedure TJSIIRFilterNode.getFrequencyResponse(aFrequencyHz: IJSFloat32Array; aMagResponse: IJSFloat32Array; aPhaseResponse: IJSFloat32Array);
  101150. begin
  101151. InvokeJSNoResult('getFrequencyResponse',[aFrequencyHz,aMagResponse,aPhaseResponse]);
  101152. end;
  101153. class function TJSIIRFilterNode.JSClassName: UnicodeString;
  101154. begin
  101155. Result:='IIRFilterNode';
  101156. end;
  101157. class function TJSIIRFilterNode.Cast(const Intf: IJSObject): IJSIIRFilterNode;
  101158. begin
  101159. Result:=TJSIIRFilterNode.JOBCast(Intf);
  101160. end;
  101161. function TJSImageBitmap._Getwidth: Cardinal;
  101162. begin
  101163. Result:=ReadJSPropertyInt64('width');
  101164. end;
  101165. function TJSImageBitmap._Getheight: Cardinal;
  101166. begin
  101167. Result:=ReadJSPropertyInt64('height');
  101168. end;
  101169. procedure TJSImageBitmap.close;
  101170. begin
  101171. InvokeJSNoResult('close',[]);
  101172. end;
  101173. class function TJSImageBitmap.JSClassName: UnicodeString;
  101174. begin
  101175. Result:='ImageBitmap';
  101176. end;
  101177. class function TJSImageBitmap.Cast(const Intf: IJSObject): IJSImageBitmap;
  101178. begin
  101179. Result:=TJSImageBitmap.JOBCast(Intf);
  101180. end;
  101181. function TJSChannelPixelLayout._Getoffset: Cardinal;
  101182. begin
  101183. Result:=ReadJSPropertyInt64('offset');
  101184. end;
  101185. function TJSChannelPixelLayout._Getwidth: Cardinal;
  101186. begin
  101187. Result:=ReadJSPropertyInt64('width');
  101188. end;
  101189. function TJSChannelPixelLayout._Getheight: Cardinal;
  101190. begin
  101191. Result:=ReadJSPropertyInt64('height');
  101192. end;
  101193. function TJSChannelPixelLayout._GetdataType: TChannelPixelLayoutDataType;
  101194. begin
  101195. Result:=ReadJSPropertyUnicodeString('dataType');
  101196. end;
  101197. function TJSChannelPixelLayout._Getstride: Cardinal;
  101198. begin
  101199. Result:=ReadJSPropertyInt64('stride');
  101200. end;
  101201. function TJSChannelPixelLayout._Getskip: Cardinal;
  101202. begin
  101203. Result:=ReadJSPropertyInt64('skip');
  101204. end;
  101205. procedure TJSChannelPixelLayout._Setoffset(const aValue : Cardinal);
  101206. begin
  101207. WriteJSPropertyDouble('offset',aValue);
  101208. end;
  101209. procedure TJSChannelPixelLayout._Setwidth(const aValue : Cardinal);
  101210. begin
  101211. WriteJSPropertyDouble('width',aValue);
  101212. end;
  101213. procedure TJSChannelPixelLayout._Setheight(const aValue : Cardinal);
  101214. begin
  101215. WriteJSPropertyDouble('height',aValue);
  101216. end;
  101217. procedure TJSChannelPixelLayout._SetdataType(const aValue : TChannelPixelLayoutDataType);
  101218. begin
  101219. WriteJSPropertyUnicodeString('dataType',aValue);
  101220. end;
  101221. procedure TJSChannelPixelLayout._Setstride(const aValue : Cardinal);
  101222. begin
  101223. WriteJSPropertyDouble('stride',aValue);
  101224. end;
  101225. procedure TJSChannelPixelLayout._Setskip(const aValue : Cardinal);
  101226. begin
  101227. WriteJSPropertyDouble('skip',aValue);
  101228. end;
  101229. class function TJSChannelPixelLayout.JSClassName: UnicodeString;
  101230. begin
  101231. Result:='Object';
  101232. end;
  101233. class function TJSChannelPixelLayout.Cast(const Intf: IJSObject): IJSChannelPixelLayout;
  101234. begin
  101235. Result:=TJSChannelPixelLayout.JOBCast(Intf);
  101236. end;
  101237. function TJSImageBitmapOptions._GetimageOrientation: TImageOrientation;
  101238. begin
  101239. Result:=ReadJSPropertyUnicodeString('imageOrientation');
  101240. end;
  101241. function TJSImageBitmapOptions._GetpremultiplyAlpha: TPremultiplyAlpha;
  101242. begin
  101243. Result:=ReadJSPropertyUnicodeString('premultiplyAlpha');
  101244. end;
  101245. function TJSImageBitmapOptions._GetcolorSpaceConversion: TColorSpaceConversion;
  101246. begin
  101247. Result:=ReadJSPropertyUnicodeString('colorSpaceConversion');
  101248. end;
  101249. function TJSImageBitmapOptions._GetresizeWidth: Cardinal;
  101250. begin
  101251. Result:=ReadJSPropertyInt64('resizeWidth');
  101252. end;
  101253. function TJSImageBitmapOptions._GetresizeHeight: Cardinal;
  101254. begin
  101255. Result:=ReadJSPropertyInt64('resizeHeight');
  101256. end;
  101257. procedure TJSImageBitmapOptions._SetimageOrientation(const aValue : TImageOrientation);
  101258. begin
  101259. WriteJSPropertyUnicodeString('imageOrientation',aValue);
  101260. end;
  101261. procedure TJSImageBitmapOptions._SetpremultiplyAlpha(const aValue : TPremultiplyAlpha);
  101262. begin
  101263. WriteJSPropertyUnicodeString('premultiplyAlpha',aValue);
  101264. end;
  101265. procedure TJSImageBitmapOptions._SetcolorSpaceConversion(const aValue : TColorSpaceConversion);
  101266. begin
  101267. WriteJSPropertyUnicodeString('colorSpaceConversion',aValue);
  101268. end;
  101269. procedure TJSImageBitmapOptions._SetresizeWidth(const aValue : Cardinal);
  101270. begin
  101271. WriteJSPropertyDouble('resizeWidth',aValue);
  101272. end;
  101273. procedure TJSImageBitmapOptions._SetresizeHeight(const aValue : Cardinal);
  101274. begin
  101275. WriteJSPropertyDouble('resizeHeight',aValue);
  101276. end;
  101277. class function TJSImageBitmapOptions.JSClassName: UnicodeString;
  101278. begin
  101279. Result:='Object';
  101280. end;
  101281. class function TJSImageBitmapOptions.Cast(const Intf: IJSObject): IJSImageBitmapOptions;
  101282. begin
  101283. Result:=TJSImageBitmapOptions.JOBCast(Intf);
  101284. end;
  101285. function TJSImageBitmapRenderingContext._Getcanvas: TCanvasSource;
  101286. begin
  101287. Result:=ReadJSPropertyVariant('canvas');
  101288. end;
  101289. procedure TJSImageBitmapRenderingContext.transferFromImageBitmap(aBitmap: IJSImageBitmap);
  101290. begin
  101291. InvokeJSNoResult('transferFromImageBitmap',[aBitmap]);
  101292. end;
  101293. procedure TJSImageBitmapRenderingContext.transferImageBitmap(aBitmap: IJSImageBitmap);
  101294. begin
  101295. InvokeJSNoResult('transferImageBitmap',[aBitmap]);
  101296. end;
  101297. class function TJSImageBitmapRenderingContext.JSClassName: UnicodeString;
  101298. begin
  101299. Result:='ImageBitmapRenderingContext';
  101300. end;
  101301. class function TJSImageBitmapRenderingContext.Cast(const Intf: IJSObject): IJSImageBitmapRenderingContext;
  101302. begin
  101303. Result:=TJSImageBitmapRenderingContext.JOBCast(Intf);
  101304. end;
  101305. function TJSImageCapture._GetvideoStreamTrack: IJSMediaStreamTrack;
  101306. begin
  101307. Result:=ReadJSPropertyObject('videoStreamTrack',TJSMediaStreamTrack) as IJSMediaStreamTrack;
  101308. end;
  101309. function TJSImageCapture._Getonphoto: TEventHandler;
  101310. begin
  101311. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onphoto')));
  101312. end;
  101313. function TJSImageCapture._Getonerror: TEventHandler;
  101314. begin
  101315. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  101316. end;
  101317. procedure TJSImageCapture._Setonphoto(const aValue : TEventHandler);
  101318. begin
  101319. WriteJSPropertyMethod('onphoto',TMethod(aValue));
  101320. end;
  101321. procedure TJSImageCapture._Setonerror(const aValue : TEventHandler);
  101322. begin
  101323. WriteJSPropertyMethod('onerror',TMethod(aValue));
  101324. end;
  101325. constructor TJSImageCapture.Create(aTrack: IJSMediaStreamTrack);
  101326. begin
  101327. JOBCreate([aTrack]);
  101328. end;
  101329. procedure TJSImageCapture.takePhoto;
  101330. begin
  101331. InvokeJSNoResult('takePhoto',[]);
  101332. end;
  101333. class function TJSImageCapture.JSClassName: UnicodeString;
  101334. begin
  101335. Result:='ImageCapture';
  101336. end;
  101337. class function TJSImageCapture.Cast(const Intf: IJSObject): IJSImageCapture;
  101338. begin
  101339. Result:=TJSImageCapture.JOBCast(Intf);
  101340. end;
  101341. function TJSImageCaptureErrorEvent._GetimageCaptureError: IJSImageCaptureError;
  101342. begin
  101343. Result:=ReadJSPropertyObject('imageCaptureError',TJSImageCaptureError) as IJSImageCaptureError;
  101344. end;
  101345. constructor TJSImageCaptureErrorEvent.Create(const aType_: UnicodeString; const aImageCaptureErrorInitDict: TJSImageCaptureErrorEventInit);
  101346. begin
  101347. JOBCreate([aType_,aImageCaptureErrorInitDict]);
  101348. end;
  101349. constructor TJSImageCaptureErrorEvent.Create(const aType_: UnicodeString);
  101350. begin
  101351. JOBCreate([aType_]);
  101352. end;
  101353. class function TJSImageCaptureErrorEvent.JSClassName: UnicodeString;
  101354. begin
  101355. Result:='ImageCaptureErrorEvent';
  101356. end;
  101357. class function TJSImageCaptureErrorEvent.Cast(const Intf: IJSObject): IJSImageCaptureErrorEvent;
  101358. begin
  101359. Result:=TJSImageCaptureErrorEvent.JOBCast(Intf);
  101360. end;
  101361. function TJSImageCaptureErrorEventInit._GetimageCaptureError: IJSImageCaptureError;
  101362. begin
  101363. Result:=ReadJSPropertyObject('imageCaptureError',TJSImageCaptureError) as IJSImageCaptureError;
  101364. end;
  101365. procedure TJSImageCaptureErrorEventInit._SetimageCaptureError(const aValue : IJSImageCaptureError);
  101366. begin
  101367. WriteJSPropertyObject('imageCaptureError',aValue);
  101368. end;
  101369. class function TJSImageCaptureErrorEventInit.JSClassName: UnicodeString;
  101370. begin
  101371. Result:='Object';
  101372. end;
  101373. class function TJSImageCaptureErrorEventInit.Cast(const Intf: IJSObject): IJSImageCaptureErrorEventInit;
  101374. begin
  101375. Result:=TJSImageCaptureErrorEventInit.JOBCast(Intf);
  101376. end;
  101377. function TJSImageCaptureError._Getcode: Word;
  101378. begin
  101379. Result:=ReadJSPropertyLongInt('code');
  101380. end;
  101381. function TJSImageCaptureError._Getmessage: UnicodeString;
  101382. begin
  101383. Result:=ReadJSPropertyUnicodeString('message');
  101384. end;
  101385. class function TJSImageCaptureError.JSClassName: UnicodeString;
  101386. begin
  101387. Result:='ImageCaptureError';
  101388. end;
  101389. class function TJSImageCaptureError.Cast(const Intf: IJSObject): IJSImageCaptureError;
  101390. begin
  101391. Result:=TJSImageCaptureError.JOBCast(Intf);
  101392. end;
  101393. function TJSImageData._Getwidth: Cardinal;
  101394. begin
  101395. Result:=ReadJSPropertyInt64('width');
  101396. end;
  101397. function TJSImageData._Getheight: Cardinal;
  101398. begin
  101399. Result:=ReadJSPropertyInt64('height');
  101400. end;
  101401. function TJSImageData._Getdata: IJSUint8ClampedArray;
  101402. begin
  101403. Result:=ReadJSPropertyObject('data',TJSUint8ClampedArray) as IJSUint8ClampedArray;
  101404. end;
  101405. constructor TJSImageData.Create(aSw: Cardinal; aSh: Cardinal);
  101406. begin
  101407. JOBCreate([aSw,aSh]);
  101408. end;
  101409. constructor TJSImageData.Create(aData: IJSUint8ClampedArray; aSw: Cardinal; aSh: Cardinal);
  101410. begin
  101411. JOBCreate([aData,aSw,aSh]);
  101412. end;
  101413. constructor TJSImageData.Create(aData: IJSUint8ClampedArray; aSw: Cardinal);
  101414. begin
  101415. JOBCreate([aData,aSw]);
  101416. end;
  101417. class function TJSImageData.JSClassName: UnicodeString;
  101418. begin
  101419. Result:='ImageData';
  101420. end;
  101421. class function TJSImageData.Cast(const Intf: IJSObject): IJSImageData;
  101422. begin
  101423. Result:=TJSImageData.JOBCast(Intf);
  101424. end;
  101425. function TJSInputEvent._GetisComposing: Boolean;
  101426. begin
  101427. Result:=ReadJSPropertyBoolean('isComposing');
  101428. end;
  101429. function TJSInputEvent._GetinputType: UnicodeString;
  101430. begin
  101431. Result:=ReadJSPropertyUnicodeString('inputType');
  101432. end;
  101433. function TJSInputEvent._Getdata: UnicodeString;
  101434. begin
  101435. Result:=ReadJSPropertyUnicodeString('data');
  101436. end;
  101437. function TJSInputEvent._GetdataTransfer: IJSDataTransfer;
  101438. begin
  101439. Result:=ReadJSPropertyObject('dataTransfer',TJSDataTransfer) as IJSDataTransfer;
  101440. end;
  101441. constructor TJSInputEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSInputEventInit);
  101442. begin
  101443. JOBCreate([aType_,aEventInitDict]);
  101444. end;
  101445. constructor TJSInputEvent.Create(const aType_: UnicodeString);
  101446. begin
  101447. JOBCreate([aType_]);
  101448. end;
  101449. function TJSInputEvent.getTargetRanges: TJSStaticRangeDynArray;
  101450. begin
  101451. Result:=InvokeJSObjectResult('getTargetRanges',[],TJSArray) as TJSStaticRangeDynArray;
  101452. end;
  101453. class function TJSInputEvent.JSClassName: UnicodeString;
  101454. begin
  101455. Result:='InputEvent';
  101456. end;
  101457. class function TJSInputEvent.Cast(const Intf: IJSObject): IJSInputEvent;
  101458. begin
  101459. Result:=TJSInputEvent.JOBCast(Intf);
  101460. end;
  101461. function TJSInputEventInit._GetisComposing: Boolean;
  101462. begin
  101463. Result:=ReadJSPropertyBoolean('isComposing');
  101464. end;
  101465. function TJSInputEventInit._GetinputType: UnicodeString;
  101466. begin
  101467. Result:=ReadJSPropertyUnicodeString('inputType');
  101468. end;
  101469. function TJSInputEventInit._Getdata: UnicodeString;
  101470. begin
  101471. Result:=ReadJSPropertyUnicodeString('data');
  101472. end;
  101473. function TJSInputEventInit._GetdataTransfer: IJSDataTransfer;
  101474. begin
  101475. Result:=ReadJSPropertyObject('dataTransfer',TJSDataTransfer) as IJSDataTransfer;
  101476. end;
  101477. function TJSInputEventInit._GettargetRanges: TJSStaticRangeDynArray;
  101478. begin
  101479. Result:=ReadJSPropertyObject('targetRanges',TJSArray) as TJSStaticRangeDynArray;
  101480. end;
  101481. procedure TJSInputEventInit._SetisComposing(const aValue : Boolean);
  101482. begin
  101483. WriteJSPropertyBoolean('isComposing',aValue);
  101484. end;
  101485. procedure TJSInputEventInit._SetinputType(const aValue : UnicodeString);
  101486. begin
  101487. WriteJSPropertyUnicodeString('inputType',aValue);
  101488. end;
  101489. procedure TJSInputEventInit._Setdata(const aValue : UnicodeString);
  101490. begin
  101491. WriteJSPropertyUnicodeString('data',aValue);
  101492. end;
  101493. procedure TJSInputEventInit._SetdataTransfer(const aValue : IJSDataTransfer);
  101494. begin
  101495. WriteJSPropertyObject('dataTransfer',aValue);
  101496. end;
  101497. procedure TJSInputEventInit._SettargetRanges(const aValue : TJSStaticRangeDynArray);
  101498. begin
  101499. WriteJSPropertyObject('targetRanges',aValue);
  101500. end;
  101501. class function TJSInputEventInit.JSClassName: UnicodeString;
  101502. begin
  101503. Result:='Object';
  101504. end;
  101505. class function TJSInputEventInit.Cast(const Intf: IJSObject): IJSInputEventInit;
  101506. begin
  101507. Result:=TJSInputEventInit.JOBCast(Intf);
  101508. end;
  101509. function TJSInstallTriggerData._GetURL: UnicodeString;
  101510. begin
  101511. Result:=ReadJSPropertyUnicodeString('URL');
  101512. end;
  101513. function TJSInstallTriggerData._GetIconURL: UnicodeString;
  101514. begin
  101515. Result:=ReadJSPropertyUnicodeString('IconURL');
  101516. end;
  101517. function TJSInstallTriggerData._GetHash: UnicodeString;
  101518. begin
  101519. Result:=ReadJSPropertyUnicodeString('Hash');
  101520. end;
  101521. procedure TJSInstallTriggerData._SetURL(const aValue : UnicodeString);
  101522. begin
  101523. WriteJSPropertyUnicodeString('URL',aValue);
  101524. end;
  101525. procedure TJSInstallTriggerData._SetIconURL(const aValue : UnicodeString);
  101526. begin
  101527. WriteJSPropertyUnicodeString('IconURL',aValue);
  101528. end;
  101529. procedure TJSInstallTriggerData._SetHash(const aValue : UnicodeString);
  101530. begin
  101531. WriteJSPropertyUnicodeString('Hash',aValue);
  101532. end;
  101533. class function TJSInstallTriggerData.JSClassName: UnicodeString;
  101534. begin
  101535. Result:='Object';
  101536. end;
  101537. class function TJSInstallTriggerData.Cast(const Intf: IJSObject): IJSInstallTriggerData;
  101538. begin
  101539. Result:=TJSInstallTriggerData.JOBCast(Intf);
  101540. end;
  101541. function TJSIntersectionObserverEntry._Gettime: TDOMHighResTimeStamp;
  101542. begin
  101543. Result:=ReadJSPropertyDouble('time');
  101544. end;
  101545. function TJSIntersectionObserverEntry._GetrootBounds: IJSDOMRectReadOnly;
  101546. begin
  101547. Result:=ReadJSPropertyObject('rootBounds',TJSDOMRectReadOnly) as IJSDOMRectReadOnly;
  101548. end;
  101549. function TJSIntersectionObserverEntry._GetboundingClientRect: IJSDOMRectReadOnly;
  101550. begin
  101551. Result:=ReadJSPropertyObject('boundingClientRect',TJSDOMRectReadOnly) as IJSDOMRectReadOnly;
  101552. end;
  101553. function TJSIntersectionObserverEntry._GetintersectionRect: IJSDOMRectReadOnly;
  101554. begin
  101555. Result:=ReadJSPropertyObject('intersectionRect',TJSDOMRectReadOnly) as IJSDOMRectReadOnly;
  101556. end;
  101557. function TJSIntersectionObserverEntry._GetisIntersecting: Boolean;
  101558. begin
  101559. Result:=ReadJSPropertyBoolean('isIntersecting');
  101560. end;
  101561. function TJSIntersectionObserverEntry._GetintersectionRatio: Double;
  101562. begin
  101563. Result:=ReadJSPropertyDouble('intersectionRatio');
  101564. end;
  101565. function TJSIntersectionObserverEntry._Gettarget: IJSElement;
  101566. begin
  101567. Result:=ReadJSPropertyObject('target',TJSElement) as IJSElement;
  101568. end;
  101569. class function TJSIntersectionObserverEntry.JSClassName: UnicodeString;
  101570. begin
  101571. Result:='IntersectionObserverEntry';
  101572. end;
  101573. class function TJSIntersectionObserverEntry.Cast(const Intf: IJSObject): IJSIntersectionObserverEntry;
  101574. begin
  101575. Result:=TJSIntersectionObserverEntry.JOBCast(Intf);
  101576. end;
  101577. function TJSIntersectionObserver._Getroot: IJSNode;
  101578. begin
  101579. Result:=ReadJSPropertyObject('root',TJSNode) as IJSNode;
  101580. end;
  101581. function TJSIntersectionObserver._GetrootMargin: UTF8String;
  101582. begin
  101583. Result:=ReadJSPropertyUTF8String('rootMargin');
  101584. end;
  101585. function TJSIntersectionObserver._Getthresholds: TDoubleDynArray;
  101586. begin
  101587. Result:=ReadJSPropertyObject('thresholds',TJSArray) as TDoubleDynArray;
  101588. end;
  101589. constructor TJSIntersectionObserver.Create(const aIntersectionCallback: TIntersectionCallback; const aOptions: TJSIntersectionObserverInit);
  101590. var
  101591. m: TJOB_Method;
  101592. begin
  101593. m:=TJOB_Method.Create(TMethod(aIntersectionCallback),@JOBCallIntersectionCallback);
  101594. try
  101595. JOBCreate([m,aOptions]);
  101596. finally
  101597. m.free;
  101598. end;
  101599. end;
  101600. constructor TJSIntersectionObserver.Create(const aIntersectionCallback: TIntersectionCallback);
  101601. var
  101602. m: TJOB_Method;
  101603. begin
  101604. m:=TJOB_Method.Create(TMethod(aIntersectionCallback),@JOBCallIntersectionCallback);
  101605. try
  101606. JOBCreate([m]);
  101607. finally
  101608. m.free;
  101609. end;
  101610. end;
  101611. procedure TJSIntersectionObserver.observe(aTarget: IJSElement);
  101612. begin
  101613. InvokeJSNoResult('observe',[aTarget]);
  101614. end;
  101615. procedure TJSIntersectionObserver.unobserve(aTarget: IJSElement);
  101616. begin
  101617. InvokeJSNoResult('unobserve',[aTarget]);
  101618. end;
  101619. procedure TJSIntersectionObserver.disconnect;
  101620. begin
  101621. InvokeJSNoResult('disconnect',[]);
  101622. end;
  101623. function TJSIntersectionObserver.takeRecords: TJSIntersectionObserverEntryDynArray;
  101624. begin
  101625. Result:=InvokeJSObjectResult('takeRecords',[],TJSArray) as TJSIntersectionObserverEntryDynArray;
  101626. end;
  101627. class function TJSIntersectionObserver.JSClassName: UnicodeString;
  101628. begin
  101629. Result:='IntersectionObserver';
  101630. end;
  101631. class function TJSIntersectionObserver.Cast(const Intf: IJSObject): IJSIntersectionObserver;
  101632. begin
  101633. Result:=TJSIntersectionObserver.JOBCast(Intf);
  101634. end;
  101635. function TJSIntersectionObserverEntryInit._Gettime: TDOMHighResTimeStamp;
  101636. begin
  101637. Result:=ReadJSPropertyDouble('time');
  101638. end;
  101639. function TJSIntersectionObserverEntryInit._GetrootBounds: TJSDOMRectInit;
  101640. begin
  101641. Result:=ReadJSPropertyObject('rootBounds',TJSDOMRectInit) as TJSDOMRectInit;
  101642. end;
  101643. function TJSIntersectionObserverEntryInit._GetboundingClientRect: TJSDOMRectInit;
  101644. begin
  101645. Result:=ReadJSPropertyObject('boundingClientRect',TJSDOMRectInit) as TJSDOMRectInit;
  101646. end;
  101647. function TJSIntersectionObserverEntryInit._GetintersectionRect: TJSDOMRectInit;
  101648. begin
  101649. Result:=ReadJSPropertyObject('intersectionRect',TJSDOMRectInit) as TJSDOMRectInit;
  101650. end;
  101651. function TJSIntersectionObserverEntryInit._Gettarget: IJSElement;
  101652. begin
  101653. Result:=ReadJSPropertyObject('target',TJSElement) as IJSElement;
  101654. end;
  101655. procedure TJSIntersectionObserverEntryInit._Settime(const aValue : TDOMHighResTimeStamp);
  101656. begin
  101657. WriteJSPropertyDouble('time',aValue);
  101658. end;
  101659. procedure TJSIntersectionObserverEntryInit._SetrootBounds(const aValue : TJSDOMRectInit);
  101660. begin
  101661. WriteJSPropertyObject('rootBounds',aValue);
  101662. end;
  101663. procedure TJSIntersectionObserverEntryInit._SetboundingClientRect(const aValue : TJSDOMRectInit);
  101664. begin
  101665. WriteJSPropertyObject('boundingClientRect',aValue);
  101666. end;
  101667. procedure TJSIntersectionObserverEntryInit._SetintersectionRect(const aValue : TJSDOMRectInit);
  101668. begin
  101669. WriteJSPropertyObject('intersectionRect',aValue);
  101670. end;
  101671. procedure TJSIntersectionObserverEntryInit._Settarget(const aValue : IJSElement);
  101672. begin
  101673. WriteJSPropertyObject('target',aValue);
  101674. end;
  101675. class function TJSIntersectionObserverEntryInit.JSClassName: UnicodeString;
  101676. begin
  101677. Result:='Object';
  101678. end;
  101679. class function TJSIntersectionObserverEntryInit.Cast(const Intf: IJSObject): IJSIntersectionObserverEntryInit;
  101680. begin
  101681. Result:=TJSIntersectionObserverEntryInit.JOBCast(Intf);
  101682. end;
  101683. function TJSIntersectionObserverInit._Getroot: TIntersectionObserverInit_root_Type;
  101684. begin
  101685. Result:=ReadJSPropertyVariant('root');
  101686. end;
  101687. function TJSIntersectionObserverInit._GetrootMargin: UTF8String;
  101688. begin
  101689. Result:=ReadJSPropertyUTF8String('rootMargin');
  101690. end;
  101691. function TJSIntersectionObserverInit._Getthreshold: TIntersectionObserverInit_threshold_Type;
  101692. begin
  101693. Result:=ReadJSPropertyVariant('threshold');
  101694. end;
  101695. procedure TJSIntersectionObserverInit._Setroot(const aValue : TIntersectionObserverInit_root_Type);
  101696. begin
  101697. WriteJSPropertyVariant('root',aValue);
  101698. end;
  101699. procedure TJSIntersectionObserverInit._SetrootMargin(const aValue : UTF8String);
  101700. begin
  101701. WriteJSPropertyUTF8String('rootMargin',aValue);
  101702. end;
  101703. procedure TJSIntersectionObserverInit._Setthreshold(const aValue : TIntersectionObserverInit_threshold_Type);
  101704. begin
  101705. WriteJSPropertyVariant('threshold',aValue);
  101706. end;
  101707. class function TJSIntersectionObserverInit.JSClassName: UnicodeString;
  101708. begin
  101709. Result:='Object';
  101710. end;
  101711. class function TJSIntersectionObserverInit.Cast(const Intf: IJSObject): IJSIntersectionObserverInit;
  101712. begin
  101713. Result:=TJSIntersectionObserverInit.JOBCast(Intf);
  101714. end;
  101715. function TJSDisplayNameOptions._Gettype_: UnicodeString;
  101716. begin
  101717. Result:=ReadJSPropertyUnicodeString('type');
  101718. end;
  101719. function TJSDisplayNameOptions._Getstyle: UnicodeString;
  101720. begin
  101721. Result:=ReadJSPropertyUnicodeString('style');
  101722. end;
  101723. function TJSDisplayNameOptions._Getcalendar: UnicodeString;
  101724. begin
  101725. Result:=ReadJSPropertyUnicodeString('calendar');
  101726. end;
  101727. function TJSDisplayNameOptions._Getkeys: TUnicodeStringDynArray;
  101728. begin
  101729. Result:=ReadJSPropertyObject('keys',TJSArray) as TUnicodeStringDynArray;
  101730. end;
  101731. procedure TJSDisplayNameOptions._Settype_(const aValue : UnicodeString);
  101732. begin
  101733. WriteJSPropertyUnicodeString('type',aValue);
  101734. end;
  101735. procedure TJSDisplayNameOptions._Setstyle(const aValue : UnicodeString);
  101736. begin
  101737. WriteJSPropertyUnicodeString('style',aValue);
  101738. end;
  101739. procedure TJSDisplayNameOptions._Setcalendar(const aValue : UnicodeString);
  101740. begin
  101741. WriteJSPropertyUnicodeString('calendar',aValue);
  101742. end;
  101743. procedure TJSDisplayNameOptions._Setkeys(const aValue : TUnicodeStringDynArray);
  101744. begin
  101745. WriteJSPropertyObject('keys',aValue);
  101746. end;
  101747. class function TJSDisplayNameOptions.JSClassName: UnicodeString;
  101748. begin
  101749. Result:='Object';
  101750. end;
  101751. class function TJSDisplayNameOptions.Cast(const Intf: IJSObject): IJSDisplayNameOptions;
  101752. begin
  101753. Result:=TJSDisplayNameOptions.JOBCast(Intf);
  101754. end;
  101755. function TJSDisplayNameResult._Getlocale: UnicodeString;
  101756. begin
  101757. Result:=ReadJSPropertyUnicodeString('locale');
  101758. end;
  101759. function TJSDisplayNameResult._Gettype_: UnicodeString;
  101760. begin
  101761. Result:=ReadJSPropertyUnicodeString('type');
  101762. end;
  101763. function TJSDisplayNameResult._Getstyle: UnicodeString;
  101764. begin
  101765. Result:=ReadJSPropertyUnicodeString('style');
  101766. end;
  101767. function TJSDisplayNameResult._Getcalendar: UnicodeString;
  101768. begin
  101769. Result:=ReadJSPropertyUnicodeString('calendar');
  101770. end;
  101771. function TJSDisplayNameResult._Getvalues: TUnicodeStringDynArray;
  101772. begin
  101773. Result:=ReadJSPropertyObject('values',TJSArray) as TUnicodeStringDynArray;
  101774. end;
  101775. procedure TJSDisplayNameResult._Setlocale(const aValue : UnicodeString);
  101776. begin
  101777. WriteJSPropertyUnicodeString('locale',aValue);
  101778. end;
  101779. procedure TJSDisplayNameResult._Settype_(const aValue : UnicodeString);
  101780. begin
  101781. WriteJSPropertyUnicodeString('type',aValue);
  101782. end;
  101783. procedure TJSDisplayNameResult._Setstyle(const aValue : UnicodeString);
  101784. begin
  101785. WriteJSPropertyUnicodeString('style',aValue);
  101786. end;
  101787. procedure TJSDisplayNameResult._Setcalendar(const aValue : UnicodeString);
  101788. begin
  101789. WriteJSPropertyUnicodeString('calendar',aValue);
  101790. end;
  101791. procedure TJSDisplayNameResult._Setvalues(const aValue : TUnicodeStringDynArray);
  101792. begin
  101793. WriteJSPropertyObject('values',aValue);
  101794. end;
  101795. class function TJSDisplayNameResult.JSClassName: UnicodeString;
  101796. begin
  101797. Result:='Object';
  101798. end;
  101799. class function TJSDisplayNameResult.Cast(const Intf: IJSObject): IJSDisplayNameResult;
  101800. begin
  101801. Result:=TJSDisplayNameResult.JOBCast(Intf);
  101802. end;
  101803. function TJSLocaleInfo._Getlocale: UnicodeString;
  101804. begin
  101805. Result:=ReadJSPropertyUnicodeString('locale');
  101806. end;
  101807. function TJSLocaleInfo._Getdirection: UnicodeString;
  101808. begin
  101809. Result:=ReadJSPropertyUnicodeString('direction');
  101810. end;
  101811. procedure TJSLocaleInfo._Setlocale(const aValue : UnicodeString);
  101812. begin
  101813. WriteJSPropertyUnicodeString('locale',aValue);
  101814. end;
  101815. procedure TJSLocaleInfo._Setdirection(const aValue : UnicodeString);
  101816. begin
  101817. WriteJSPropertyUnicodeString('direction',aValue);
  101818. end;
  101819. class function TJSLocaleInfo.JSClassName: UnicodeString;
  101820. begin
  101821. Result:='Object';
  101822. end;
  101823. class function TJSLocaleInfo.Cast(const Intf: IJSObject): IJSLocaleInfo;
  101824. begin
  101825. Result:=TJSLocaleInfo.JOBCast(Intf);
  101826. end;
  101827. function TJSIntlUtils.getDisplayNames(const aLocales: TUnicodeStringDynArray; const aOptions: TJSDisplayNameOptions): TJSDisplayNameResult;
  101828. begin
  101829. Result:=InvokeJSObjectResult('getDisplayNames',[aLocales,aOptions],TJSDisplayNameResult) as TJSDisplayNameResult;
  101830. end;
  101831. function TJSIntlUtils.getDisplayNames(const aLocales: TUnicodeStringDynArray): TJSDisplayNameResult;
  101832. begin
  101833. Result:=InvokeJSObjectResult('getDisplayNames',[aLocales],TJSDisplayNameResult) as TJSDisplayNameResult;
  101834. end;
  101835. function TJSIntlUtils.isAppLocaleRTL: Boolean;
  101836. begin
  101837. Result:=InvokeJSBooleanResult('isAppLocaleRTL',[]);
  101838. end;
  101839. class function TJSIntlUtils.JSClassName: UnicodeString;
  101840. begin
  101841. Result:='IntlUtils';
  101842. end;
  101843. class function TJSIntlUtils.Cast(const Intf: IJSObject): IJSIntlUtils;
  101844. begin
  101845. Result:=TJSIntlUtils.JOBCast(Intf);
  101846. end;
  101847. function TJSInvokeEvent._Getinvoker: IJSElement;
  101848. begin
  101849. Result:=ReadJSPropertyObject('invoker',TJSElement) as IJSElement;
  101850. end;
  101851. function TJSInvokeEvent._Getaction: UnicodeString;
  101852. begin
  101853. Result:=ReadJSPropertyUnicodeString('action');
  101854. end;
  101855. constructor TJSInvokeEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSInvokeEventInit);
  101856. begin
  101857. JOBCreate([aType_,aEventInitDict]);
  101858. end;
  101859. constructor TJSInvokeEvent.Create(const aType_: UnicodeString);
  101860. begin
  101861. JOBCreate([aType_]);
  101862. end;
  101863. class function TJSInvokeEvent.JSClassName: UnicodeString;
  101864. begin
  101865. Result:='InvokeEvent';
  101866. end;
  101867. class function TJSInvokeEvent.Cast(const Intf: IJSObject): IJSInvokeEvent;
  101868. begin
  101869. Result:=TJSInvokeEvent.JOBCast(Intf);
  101870. end;
  101871. function TJSInvokeEventInit._Getinvoker: IJSElement;
  101872. begin
  101873. Result:=ReadJSPropertyObject('invoker',TJSElement) as IJSElement;
  101874. end;
  101875. function TJSInvokeEventInit._Getaction: UnicodeString;
  101876. begin
  101877. Result:=ReadJSPropertyUnicodeString('action');
  101878. end;
  101879. procedure TJSInvokeEventInit._Setinvoker(const aValue : IJSElement);
  101880. begin
  101881. WriteJSPropertyObject('invoker',aValue);
  101882. end;
  101883. procedure TJSInvokeEventInit._Setaction(const aValue : UnicodeString);
  101884. begin
  101885. WriteJSPropertyUnicodeString('action',aValue);
  101886. end;
  101887. class function TJSInvokeEventInit.JSClassName: UnicodeString;
  101888. begin
  101889. Result:='Object';
  101890. end;
  101891. class function TJSInvokeEventInit.Cast(const Intf: IJSObject): IJSInvokeEventInit;
  101892. begin
  101893. Result:=TJSInvokeEventInit.JOBCast(Intf);
  101894. end;
  101895. function TJSInvokerElement._GetinvokeTargetElement: IJSElement;
  101896. begin
  101897. Result:=ReadJSPropertyObject('invokeTargetElement',TJSElement) as IJSElement;
  101898. end;
  101899. function TJSInvokerElement._GetinvokeAction: UnicodeString;
  101900. begin
  101901. Result:=ReadJSPropertyUnicodeString('invokeAction');
  101902. end;
  101903. procedure TJSInvokerElement._SetinvokeTargetElement(const aValue : IJSElement);
  101904. begin
  101905. WriteJSPropertyObject('invokeTargetElement',aValue);
  101906. end;
  101907. procedure TJSInvokerElement._SetinvokeAction(const aValue : UnicodeString);
  101908. begin
  101909. WriteJSPropertyUnicodeString('invokeAction',aValue);
  101910. end;
  101911. class function TJSInvokerElement.JSClassName: UnicodeString;
  101912. begin
  101913. Result:='InvokerElement';
  101914. end;
  101915. class function TJSInvokerElement.Cast(const Intf: IJSObject): IJSInvokerElement;
  101916. begin
  101917. Result:=TJSInvokerElement.JOBCast(Intf);
  101918. end;
  101919. function TJSIterableKeyOrValueResult._Getvalue: Variant;
  101920. begin
  101921. Result:=ReadJSPropertyVariant('value');
  101922. end;
  101923. function TJSIterableKeyOrValueResult._Getdone: Boolean;
  101924. begin
  101925. Result:=ReadJSPropertyBoolean('done');
  101926. end;
  101927. procedure TJSIterableKeyOrValueResult._Setvalue(const aValue : Variant);
  101928. begin
  101929. WriteJSPropertyVariant('value',aValue);
  101930. end;
  101931. procedure TJSIterableKeyOrValueResult._Setdone(const aValue : Boolean);
  101932. begin
  101933. WriteJSPropertyBoolean('done',aValue);
  101934. end;
  101935. class function TJSIterableKeyOrValueResult.JSClassName: UnicodeString;
  101936. begin
  101937. Result:='Object';
  101938. end;
  101939. class function TJSIterableKeyOrValueResult.Cast(const Intf: IJSObject): IJSIterableKeyOrValueResult;
  101940. begin
  101941. Result:=TJSIterableKeyOrValueResult.JOBCast(Intf);
  101942. end;
  101943. function TJSIterableKeyAndValueResult._Getvalue: TVariantDynArray;
  101944. begin
  101945. Result:=ReadJSPropertyObject('value',TJSArray) as TVariantDynArray;
  101946. end;
  101947. function TJSIterableKeyAndValueResult._Getdone: Boolean;
  101948. begin
  101949. Result:=ReadJSPropertyBoolean('done');
  101950. end;
  101951. procedure TJSIterableKeyAndValueResult._Setvalue(const aValue : TVariantDynArray);
  101952. begin
  101953. WriteJSPropertyObject('value',aValue);
  101954. end;
  101955. procedure TJSIterableKeyAndValueResult._Setdone(const aValue : Boolean);
  101956. begin
  101957. WriteJSPropertyBoolean('done',aValue);
  101958. end;
  101959. class function TJSIterableKeyAndValueResult.JSClassName: UnicodeString;
  101960. begin
  101961. Result:='Object';
  101962. end;
  101963. class function TJSIterableKeyAndValueResult.Cast(const Intf: IJSObject): IJSIterableKeyAndValueResult;
  101964. begin
  101965. Result:=TJSIterableKeyAndValueResult.JOBCast(Intf);
  101966. end;
  101967. function TJSKeyAlgorithm._Getname: UnicodeString;
  101968. begin
  101969. Result:=ReadJSPropertyUnicodeString('name');
  101970. end;
  101971. procedure TJSKeyAlgorithm._Setname(const aValue : UnicodeString);
  101972. begin
  101973. WriteJSPropertyUnicodeString('name',aValue);
  101974. end;
  101975. class function TJSKeyAlgorithm.JSClassName: UnicodeString;
  101976. begin
  101977. Result:='Object';
  101978. end;
  101979. class function TJSKeyAlgorithm.Cast(const Intf: IJSObject): IJSKeyAlgorithm;
  101980. begin
  101981. Result:=TJSKeyAlgorithm.JOBCast(Intf);
  101982. end;
  101983. function TJSAesKeyAlgorithm._Getlength_: Word;
  101984. begin
  101985. Result:=ReadJSPropertyLongInt('length');
  101986. end;
  101987. procedure TJSAesKeyAlgorithm._Setlength_(const aValue : Word);
  101988. begin
  101989. WriteJSPropertyLongInt('length',aValue);
  101990. end;
  101991. class function TJSAesKeyAlgorithm.JSClassName: UnicodeString;
  101992. begin
  101993. Result:='Object';
  101994. end;
  101995. class function TJSAesKeyAlgorithm.Cast(const Intf: IJSObject): IJSAesKeyAlgorithm;
  101996. begin
  101997. Result:=TJSAesKeyAlgorithm.JOBCast(Intf);
  101998. end;
  101999. function TJSEcKeyAlgorithm._GetnamedCurve: UnicodeString;
  102000. begin
  102001. Result:=ReadJSPropertyUnicodeString('namedCurve');
  102002. end;
  102003. procedure TJSEcKeyAlgorithm._SetnamedCurve(const aValue : UnicodeString);
  102004. begin
  102005. WriteJSPropertyUnicodeString('namedCurve',aValue);
  102006. end;
  102007. class function TJSEcKeyAlgorithm.JSClassName: UnicodeString;
  102008. begin
  102009. Result:='Object';
  102010. end;
  102011. class function TJSEcKeyAlgorithm.Cast(const Intf: IJSObject): IJSEcKeyAlgorithm;
  102012. begin
  102013. Result:=TJSEcKeyAlgorithm.JOBCast(Intf);
  102014. end;
  102015. function TJSHmacKeyAlgorithm._Gethash: TJSKeyAlgorithm;
  102016. begin
  102017. Result:=ReadJSPropertyObject('hash',TJSKeyAlgorithm) as TJSKeyAlgorithm;
  102018. end;
  102019. function TJSHmacKeyAlgorithm._Getlength_: Cardinal;
  102020. begin
  102021. Result:=ReadJSPropertyInt64('length');
  102022. end;
  102023. procedure TJSHmacKeyAlgorithm._Sethash(const aValue : TJSKeyAlgorithm);
  102024. begin
  102025. WriteJSPropertyObject('hash',aValue);
  102026. end;
  102027. procedure TJSHmacKeyAlgorithm._Setlength_(const aValue : Cardinal);
  102028. begin
  102029. WriteJSPropertyDouble('length',aValue);
  102030. end;
  102031. class function TJSHmacKeyAlgorithm.JSClassName: UnicodeString;
  102032. begin
  102033. Result:='Object';
  102034. end;
  102035. class function TJSHmacKeyAlgorithm.Cast(const Intf: IJSObject): IJSHmacKeyAlgorithm;
  102036. begin
  102037. Result:=TJSHmacKeyAlgorithm.JOBCast(Intf);
  102038. end;
  102039. function TJSRsaHashedKeyAlgorithm._GetmodulusLength: Word;
  102040. begin
  102041. Result:=ReadJSPropertyLongInt('modulusLength');
  102042. end;
  102043. function TJSRsaHashedKeyAlgorithm._GetpublicExponent: IJSUint8Array;
  102044. begin
  102045. Result:=ReadJSPropertyObject('publicExponent',TJSUint8Array) as IJSUint8Array;
  102046. end;
  102047. function TJSRsaHashedKeyAlgorithm._Gethash: TJSKeyAlgorithm;
  102048. begin
  102049. Result:=ReadJSPropertyObject('hash',TJSKeyAlgorithm) as TJSKeyAlgorithm;
  102050. end;
  102051. procedure TJSRsaHashedKeyAlgorithm._SetmodulusLength(const aValue : Word);
  102052. begin
  102053. WriteJSPropertyLongInt('modulusLength',aValue);
  102054. end;
  102055. procedure TJSRsaHashedKeyAlgorithm._SetpublicExponent(const aValue : IJSUint8Array);
  102056. begin
  102057. WriteJSPropertyObject('publicExponent',aValue);
  102058. end;
  102059. procedure TJSRsaHashedKeyAlgorithm._Sethash(const aValue : TJSKeyAlgorithm);
  102060. begin
  102061. WriteJSPropertyObject('hash',aValue);
  102062. end;
  102063. class function TJSRsaHashedKeyAlgorithm.JSClassName: UnicodeString;
  102064. begin
  102065. Result:='Object';
  102066. end;
  102067. class function TJSRsaHashedKeyAlgorithm.Cast(const Intf: IJSObject): IJSRsaHashedKeyAlgorithm;
  102068. begin
  102069. Result:=TJSRsaHashedKeyAlgorithm.JOBCast(Intf);
  102070. end;
  102071. function TJSDhKeyAlgorithm._Getprime: IJSUint8Array;
  102072. begin
  102073. Result:=ReadJSPropertyObject('prime',TJSUint8Array) as IJSUint8Array;
  102074. end;
  102075. function TJSDhKeyAlgorithm._Getgenerator: IJSUint8Array;
  102076. begin
  102077. Result:=ReadJSPropertyObject('generator',TJSUint8Array) as IJSUint8Array;
  102078. end;
  102079. procedure TJSDhKeyAlgorithm._Setprime(const aValue : IJSUint8Array);
  102080. begin
  102081. WriteJSPropertyObject('prime',aValue);
  102082. end;
  102083. procedure TJSDhKeyAlgorithm._Setgenerator(const aValue : IJSUint8Array);
  102084. begin
  102085. WriteJSPropertyObject('generator',aValue);
  102086. end;
  102087. class function TJSDhKeyAlgorithm.JSClassName: UnicodeString;
  102088. begin
  102089. Result:='Object';
  102090. end;
  102091. class function TJSDhKeyAlgorithm.Cast(const Intf: IJSObject): IJSDhKeyAlgorithm;
  102092. begin
  102093. Result:=TJSDhKeyAlgorithm.JOBCast(Intf);
  102094. end;
  102095. function TJSKeyboardEvent._GetcharCode: Cardinal;
  102096. begin
  102097. Result:=ReadJSPropertyInt64('charCode');
  102098. end;
  102099. function TJSKeyboardEvent._GetkeyCode: Cardinal;
  102100. begin
  102101. Result:=ReadJSPropertyInt64('keyCode');
  102102. end;
  102103. function TJSKeyboardEvent._GetaltKey: Boolean;
  102104. begin
  102105. Result:=ReadJSPropertyBoolean('altKey');
  102106. end;
  102107. function TJSKeyboardEvent._GetctrlKey: Boolean;
  102108. begin
  102109. Result:=ReadJSPropertyBoolean('ctrlKey');
  102110. end;
  102111. function TJSKeyboardEvent._GetshiftKey: Boolean;
  102112. begin
  102113. Result:=ReadJSPropertyBoolean('shiftKey');
  102114. end;
  102115. function TJSKeyboardEvent._GetmetaKey: Boolean;
  102116. begin
  102117. Result:=ReadJSPropertyBoolean('metaKey');
  102118. end;
  102119. function TJSKeyboardEvent._Getlocation: Cardinal;
  102120. begin
  102121. Result:=ReadJSPropertyInt64('location');
  102122. end;
  102123. function TJSKeyboardEvent._Getrepeat_: Boolean;
  102124. begin
  102125. Result:=ReadJSPropertyBoolean('repeat');
  102126. end;
  102127. function TJSKeyboardEvent._GetisComposing: Boolean;
  102128. begin
  102129. Result:=ReadJSPropertyBoolean('isComposing');
  102130. end;
  102131. function TJSKeyboardEvent._Getkey: UnicodeString;
  102132. begin
  102133. Result:=ReadJSPropertyUnicodeString('key');
  102134. end;
  102135. function TJSKeyboardEvent._Getcode: UnicodeString;
  102136. begin
  102137. Result:=ReadJSPropertyUnicodeString('code');
  102138. end;
  102139. constructor TJSKeyboardEvent.Create(const aTypeArg: UnicodeString; const aKeyboardEventInitDict: TJSKeyboardEventInit);
  102140. begin
  102141. JOBCreate([aTypeArg,aKeyboardEventInitDict]);
  102142. end;
  102143. constructor TJSKeyboardEvent.Create(const aTypeArg: UnicodeString);
  102144. begin
  102145. JOBCreate([aTypeArg]);
  102146. end;
  102147. function TJSKeyboardEvent.getModifierState(const aKey: UnicodeString): Boolean;
  102148. begin
  102149. Result:=InvokeJSBooleanResult('getModifierState',[aKey]);
  102150. end;
  102151. procedure TJSKeyboardEvent.initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean);
  102152. begin
  102153. InvokeJSNoResult('initKeyboardEvent',[aTypeArg,aBubblesArg,aCancelableArg,aViewArg,aKeyArg,aLocationArg,aCtrlKey,aAltKey,aShiftKey,aMetaKey]);
  102154. end;
  102155. procedure TJSKeyboardEvent.initKeyboardEvent(const aTypeArg: UnicodeString);
  102156. begin
  102157. InvokeJSNoResult('initKeyboardEvent',[aTypeArg]);
  102158. end;
  102159. procedure TJSKeyboardEvent.initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean);
  102160. begin
  102161. InvokeJSNoResult('initKeyboardEvent',[aTypeArg,aBubblesArg]);
  102162. end;
  102163. procedure TJSKeyboardEvent.initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean);
  102164. begin
  102165. InvokeJSNoResult('initKeyboardEvent',[aTypeArg,aBubblesArg,aCancelableArg]);
  102166. end;
  102167. procedure TJSKeyboardEvent.initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow);
  102168. begin
  102169. InvokeJSNoResult('initKeyboardEvent',[aTypeArg,aBubblesArg,aCancelableArg,aViewArg]);
  102170. end;
  102171. procedure TJSKeyboardEvent.initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString);
  102172. begin
  102173. InvokeJSNoResult('initKeyboardEvent',[aTypeArg,aBubblesArg,aCancelableArg,aViewArg,aKeyArg]);
  102174. end;
  102175. procedure TJSKeyboardEvent.initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal);
  102176. begin
  102177. InvokeJSNoResult('initKeyboardEvent',[aTypeArg,aBubblesArg,aCancelableArg,aViewArg,aKeyArg,aLocationArg]);
  102178. end;
  102179. procedure TJSKeyboardEvent.initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean);
  102180. begin
  102181. InvokeJSNoResult('initKeyboardEvent',[aTypeArg,aBubblesArg,aCancelableArg,aViewArg,aKeyArg,aLocationArg,aCtrlKey]);
  102182. end;
  102183. procedure TJSKeyboardEvent.initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean; aAltKey: Boolean);
  102184. begin
  102185. InvokeJSNoResult('initKeyboardEvent',[aTypeArg,aBubblesArg,aCancelableArg,aViewArg,aKeyArg,aLocationArg,aCtrlKey,aAltKey]);
  102186. end;
  102187. procedure TJSKeyboardEvent.initKeyboardEvent(const aTypeArg: UnicodeString; aBubblesArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; const aKeyArg: UnicodeString; aLocationArg: Cardinal; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean);
  102188. begin
  102189. InvokeJSNoResult('initKeyboardEvent',[aTypeArg,aBubblesArg,aCancelableArg,aViewArg,aKeyArg,aLocationArg,aCtrlKey,aAltKey,aShiftKey]);
  102190. end;
  102191. procedure TJSKeyboardEvent.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal; aCharCode: Cardinal);
  102192. begin
  102193. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey,aAltKey,aShiftKey,aMetaKey,aKeyCode,aCharCode]);
  102194. end;
  102195. procedure TJSKeyboardEvent.initKeyEvent(const aType_: UnicodeString);
  102196. begin
  102197. InvokeJSNoResult('initKeyEvent',[aType_]);
  102198. end;
  102199. procedure TJSKeyboardEvent.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  102200. begin
  102201. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble]);
  102202. end;
  102203. procedure TJSKeyboardEvent.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  102204. begin
  102205. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable]);
  102206. end;
  102207. procedure TJSKeyboardEvent.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow);
  102208. begin
  102209. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView]);
  102210. end;
  102211. procedure TJSKeyboardEvent.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean);
  102212. begin
  102213. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey]);
  102214. end;
  102215. procedure TJSKeyboardEvent.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean);
  102216. begin
  102217. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey,aAltKey]);
  102218. end;
  102219. procedure TJSKeyboardEvent.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean);
  102220. begin
  102221. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey,aAltKey,aShiftKey]);
  102222. end;
  102223. procedure TJSKeyboardEvent.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean);
  102224. begin
  102225. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey,aAltKey,aShiftKey,aMetaKey]);
  102226. end;
  102227. procedure TJSKeyboardEvent.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal);
  102228. begin
  102229. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey,aAltKey,aShiftKey,aMetaKey,aKeyCode]);
  102230. end;
  102231. class function TJSKeyboardEvent.JSClassName: UnicodeString;
  102232. begin
  102233. Result:='KeyboardEvent';
  102234. end;
  102235. class function TJSKeyboardEvent.Cast(const Intf: IJSObject): IJSKeyboardEvent;
  102236. begin
  102237. Result:=TJSKeyboardEvent.JOBCast(Intf);
  102238. end;
  102239. function TJSKeyboardEventInit._Getkey: UnicodeString;
  102240. begin
  102241. Result:=ReadJSPropertyUnicodeString('key');
  102242. end;
  102243. function TJSKeyboardEventInit._Getcode: UnicodeString;
  102244. begin
  102245. Result:=ReadJSPropertyUnicodeString('code');
  102246. end;
  102247. function TJSKeyboardEventInit._Getlocation: Cardinal;
  102248. begin
  102249. Result:=ReadJSPropertyInt64('location');
  102250. end;
  102251. function TJSKeyboardEventInit._Getrepeat_: Boolean;
  102252. begin
  102253. Result:=ReadJSPropertyBoolean('repeat');
  102254. end;
  102255. function TJSKeyboardEventInit._GetisComposing: Boolean;
  102256. begin
  102257. Result:=ReadJSPropertyBoolean('isComposing');
  102258. end;
  102259. function TJSKeyboardEventInit._GetcharCode: Cardinal;
  102260. begin
  102261. Result:=ReadJSPropertyInt64('charCode');
  102262. end;
  102263. function TJSKeyboardEventInit._GetkeyCode: Cardinal;
  102264. begin
  102265. Result:=ReadJSPropertyInt64('keyCode');
  102266. end;
  102267. function TJSKeyboardEventInit._Getwhich: Cardinal;
  102268. begin
  102269. Result:=ReadJSPropertyInt64('which');
  102270. end;
  102271. procedure TJSKeyboardEventInit._Setkey(const aValue : UnicodeString);
  102272. begin
  102273. WriteJSPropertyUnicodeString('key',aValue);
  102274. end;
  102275. procedure TJSKeyboardEventInit._Setcode(const aValue : UnicodeString);
  102276. begin
  102277. WriteJSPropertyUnicodeString('code',aValue);
  102278. end;
  102279. procedure TJSKeyboardEventInit._Setlocation(const aValue : Cardinal);
  102280. begin
  102281. WriteJSPropertyDouble('location',aValue);
  102282. end;
  102283. procedure TJSKeyboardEventInit._Setrepeat_(const aValue : Boolean);
  102284. begin
  102285. WriteJSPropertyBoolean('repeat',aValue);
  102286. end;
  102287. procedure TJSKeyboardEventInit._SetisComposing(const aValue : Boolean);
  102288. begin
  102289. WriteJSPropertyBoolean('isComposing',aValue);
  102290. end;
  102291. procedure TJSKeyboardEventInit._SetcharCode(const aValue : Cardinal);
  102292. begin
  102293. WriteJSPropertyDouble('charCode',aValue);
  102294. end;
  102295. procedure TJSKeyboardEventInit._SetkeyCode(const aValue : Cardinal);
  102296. begin
  102297. WriteJSPropertyDouble('keyCode',aValue);
  102298. end;
  102299. procedure TJSKeyboardEventInit._Setwhich(const aValue : Cardinal);
  102300. begin
  102301. WriteJSPropertyDouble('which',aValue);
  102302. end;
  102303. class function TJSKeyboardEventInit.JSClassName: UnicodeString;
  102304. begin
  102305. Result:='Object';
  102306. end;
  102307. class function TJSKeyboardEventInit.Cast(const Intf: IJSObject): IJSKeyboardEventInit;
  102308. begin
  102309. Result:=TJSKeyboardEventInit.JOBCast(Intf);
  102310. end;
  102311. class function TJSKeyEvent.JSClassName: UnicodeString;
  102312. begin
  102313. Result:='KeyEvent';
  102314. end;
  102315. class function TJSKeyEvent.Cast(const Intf: IJSObject): IJSKeyEvent;
  102316. begin
  102317. Result:=TJSKeyEvent.JOBCast(Intf);
  102318. end;
  102319. procedure TJSKeyEventMixin.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal; aCharCode: Cardinal);
  102320. begin
  102321. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey,aAltKey,aShiftKey,aMetaKey,aKeyCode,aCharCode]);
  102322. end;
  102323. procedure TJSKeyEventMixin.initKeyEvent(const aType_: UnicodeString);
  102324. begin
  102325. InvokeJSNoResult('initKeyEvent',[aType_]);
  102326. end;
  102327. procedure TJSKeyEventMixin.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  102328. begin
  102329. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble]);
  102330. end;
  102331. procedure TJSKeyEventMixin.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  102332. begin
  102333. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable]);
  102334. end;
  102335. procedure TJSKeyEventMixin.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow);
  102336. begin
  102337. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView]);
  102338. end;
  102339. procedure TJSKeyEventMixin.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean);
  102340. begin
  102341. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey]);
  102342. end;
  102343. procedure TJSKeyEventMixin.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean);
  102344. begin
  102345. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey,aAltKey]);
  102346. end;
  102347. procedure TJSKeyEventMixin.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean);
  102348. begin
  102349. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey,aAltKey,aShiftKey]);
  102350. end;
  102351. procedure TJSKeyEventMixin.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean);
  102352. begin
  102353. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey,aAltKey,aShiftKey,aMetaKey]);
  102354. end;
  102355. procedure TJSKeyEventMixin.initKeyEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aKeyCode: Cardinal);
  102356. begin
  102357. InvokeJSNoResult('initKeyEvent',[aType_,aCanBubble,aCancelable,aView,aCtrlKey,aAltKey,aShiftKey,aMetaKey,aKeyCode]);
  102358. end;
  102359. class function TJSKeyEventMixin.JSClassName: UnicodeString;
  102360. begin
  102361. Result:='KeyEventMixin';
  102362. end;
  102363. class function TJSKeyEventMixin.Cast(const Intf: IJSObject): IJSKeyEventMixin;
  102364. begin
  102365. Result:=TJSKeyEventMixin.JOBCast(Intf);
  102366. end;
  102367. function TJSKeyframeEffectOptions._GetiterationComposite: TIterationCompositeOperation;
  102368. begin
  102369. Result:=ReadJSPropertyUnicodeString('iterationComposite');
  102370. end;
  102371. function TJSKeyframeEffectOptions._Getcomposite: TCompositeOperation;
  102372. begin
  102373. Result:=ReadJSPropertyUnicodeString('composite');
  102374. end;
  102375. function TJSKeyframeEffectOptions._GetpseudoElement: UnicodeString;
  102376. begin
  102377. Result:=ReadJSPropertyUnicodeString('pseudoElement');
  102378. end;
  102379. procedure TJSKeyframeEffectOptions._SetiterationComposite(const aValue : TIterationCompositeOperation);
  102380. begin
  102381. WriteJSPropertyUnicodeString('iterationComposite',aValue);
  102382. end;
  102383. procedure TJSKeyframeEffectOptions._Setcomposite(const aValue : TCompositeOperation);
  102384. begin
  102385. WriteJSPropertyUnicodeString('composite',aValue);
  102386. end;
  102387. procedure TJSKeyframeEffectOptions._SetpseudoElement(const aValue : UnicodeString);
  102388. begin
  102389. WriteJSPropertyUnicodeString('pseudoElement',aValue);
  102390. end;
  102391. class function TJSKeyframeEffectOptions.JSClassName: UnicodeString;
  102392. begin
  102393. Result:='Object';
  102394. end;
  102395. class function TJSKeyframeEffectOptions.Cast(const Intf: IJSObject): IJSKeyframeEffectOptions;
  102396. begin
  102397. Result:=TJSKeyframeEffectOptions.JOBCast(Intf);
  102398. end;
  102399. function TJSKeyframeEffect._Gettarget: IJSElement;
  102400. begin
  102401. Result:=ReadJSPropertyObject('target',TJSElement) as IJSElement;
  102402. end;
  102403. function TJSKeyframeEffect._GetpseudoElement: UnicodeString;
  102404. begin
  102405. Result:=ReadJSPropertyUnicodeString('pseudoElement');
  102406. end;
  102407. function TJSKeyframeEffect._GetiterationComposite: TIterationCompositeOperation;
  102408. begin
  102409. Result:=ReadJSPropertyUnicodeString('iterationComposite');
  102410. end;
  102411. function TJSKeyframeEffect._Getcomposite: TCompositeOperation;
  102412. begin
  102413. Result:=ReadJSPropertyUnicodeString('composite');
  102414. end;
  102415. procedure TJSKeyframeEffect._Settarget(const aValue : IJSElement);
  102416. begin
  102417. WriteJSPropertyObject('target',aValue);
  102418. end;
  102419. procedure TJSKeyframeEffect._SetpseudoElement(const aValue : UnicodeString);
  102420. begin
  102421. WriteJSPropertyUnicodeString('pseudoElement',aValue);
  102422. end;
  102423. procedure TJSKeyframeEffect._SetiterationComposite(const aValue : TIterationCompositeOperation);
  102424. begin
  102425. WriteJSPropertyUnicodeString('iterationComposite',aValue);
  102426. end;
  102427. procedure TJSKeyframeEffect._Setcomposite(const aValue : TCompositeOperation);
  102428. begin
  102429. WriteJSPropertyUnicodeString('composite',aValue);
  102430. end;
  102431. constructor TJSKeyframeEffect.Create(aTarget: IJSElement; aKeyframes: IJSObject; const aOptions: TJSKeyframeEffectOptions);
  102432. begin
  102433. JOBCreate([aTarget,aKeyframes,aOptions]);
  102434. end;
  102435. constructor TJSKeyframeEffect.Create(aTarget: IJSElement; aKeyframes: IJSObject);
  102436. begin
  102437. JOBCreate([aTarget,aKeyframes]);
  102438. end;
  102439. constructor TJSKeyframeEffect.Create(aTarget: IJSElement; aKeyframes: IJSObject; aOptions: Double);
  102440. begin
  102441. JOBCreate([aTarget,aKeyframes,aOptions]);
  102442. end;
  102443. constructor TJSKeyframeEffect.Create(aSource: IJSKeyframeEffect);
  102444. begin
  102445. JOBCreate([aSource]);
  102446. end;
  102447. function TJSKeyframeEffect.getKeyframes: TIJSObjectDynArray;
  102448. begin
  102449. Result:=InvokeJSObjectResult('getKeyframes',[],TJSArray) as TIJSObjectDynArray;
  102450. end;
  102451. procedure TJSKeyframeEffect.setKeyframes(aKeyframes: IJSObject);
  102452. begin
  102453. InvokeJSNoResult('setKeyframes',[aKeyframes]);
  102454. end;
  102455. class function TJSKeyframeEffect.JSClassName: UnicodeString;
  102456. begin
  102457. Result:='KeyframeEffect';
  102458. end;
  102459. class function TJSKeyframeEffect.Cast(const Intf: IJSObject): IJSKeyframeEffect;
  102460. begin
  102461. Result:=TJSKeyframeEffect.JOBCast(Intf);
  102462. end;
  102463. function TJSAnimationPropertyValueDetails._Getoffset: Double;
  102464. begin
  102465. Result:=ReadJSPropertyDouble('offset');
  102466. end;
  102467. function TJSAnimationPropertyValueDetails._Getvalue: UTF8String;
  102468. begin
  102469. Result:=ReadJSPropertyUTF8String('value');
  102470. end;
  102471. function TJSAnimationPropertyValueDetails._Geteasing: UTF8String;
  102472. begin
  102473. Result:=ReadJSPropertyUTF8String('easing');
  102474. end;
  102475. function TJSAnimationPropertyValueDetails._Getcomposite: TCompositeOperation;
  102476. begin
  102477. Result:=ReadJSPropertyUnicodeString('composite');
  102478. end;
  102479. procedure TJSAnimationPropertyValueDetails._Setoffset(const aValue : Double);
  102480. begin
  102481. WriteJSPropertyDouble('offset',aValue);
  102482. end;
  102483. procedure TJSAnimationPropertyValueDetails._Setvalue(const aValue : UTF8String);
  102484. begin
  102485. WriteJSPropertyUTF8String('value',aValue);
  102486. end;
  102487. procedure TJSAnimationPropertyValueDetails._Seteasing(const aValue : UTF8String);
  102488. begin
  102489. WriteJSPropertyUTF8String('easing',aValue);
  102490. end;
  102491. procedure TJSAnimationPropertyValueDetails._Setcomposite(const aValue : TCompositeOperation);
  102492. begin
  102493. WriteJSPropertyUnicodeString('composite',aValue);
  102494. end;
  102495. class function TJSAnimationPropertyValueDetails.JSClassName: UnicodeString;
  102496. begin
  102497. Result:='Object';
  102498. end;
  102499. class function TJSAnimationPropertyValueDetails.Cast(const Intf: IJSObject): IJSAnimationPropertyValueDetails;
  102500. begin
  102501. Result:=TJSAnimationPropertyValueDetails.JOBCast(Intf);
  102502. end;
  102503. function TJSAnimationPropertyDetails._Getproperty_: UnicodeString;
  102504. begin
  102505. Result:=ReadJSPropertyUnicodeString('property');
  102506. end;
  102507. function TJSAnimationPropertyDetails._GetrunningOnCompositor: Boolean;
  102508. begin
  102509. Result:=ReadJSPropertyBoolean('runningOnCompositor');
  102510. end;
  102511. function TJSAnimationPropertyDetails._Getwarning: UnicodeString;
  102512. begin
  102513. Result:=ReadJSPropertyUnicodeString('warning');
  102514. end;
  102515. function TJSAnimationPropertyDetails._Getvalues: TJSAnimationPropertyValueDetailsDynArray;
  102516. begin
  102517. Result:=ReadJSPropertyObject('values',TJSArray) as TJSAnimationPropertyValueDetailsDynArray;
  102518. end;
  102519. procedure TJSAnimationPropertyDetails._Setproperty_(const aValue : UnicodeString);
  102520. begin
  102521. WriteJSPropertyUnicodeString('property',aValue);
  102522. end;
  102523. procedure TJSAnimationPropertyDetails._SetrunningOnCompositor(const aValue : Boolean);
  102524. begin
  102525. WriteJSPropertyBoolean('runningOnCompositor',aValue);
  102526. end;
  102527. procedure TJSAnimationPropertyDetails._Setwarning(const aValue : UnicodeString);
  102528. begin
  102529. WriteJSPropertyUnicodeString('warning',aValue);
  102530. end;
  102531. procedure TJSAnimationPropertyDetails._Setvalues(const aValue : TJSAnimationPropertyValueDetailsDynArray);
  102532. begin
  102533. WriteJSPropertyObject('values',aValue);
  102534. end;
  102535. class function TJSAnimationPropertyDetails.JSClassName: UnicodeString;
  102536. begin
  102537. Result:='Object';
  102538. end;
  102539. class function TJSAnimationPropertyDetails.Cast(const Intf: IJSObject): IJSAnimationPropertyDetails;
  102540. begin
  102541. Result:=TJSAnimationPropertyDetails.JOBCast(Intf);
  102542. end;
  102543. function TJSKeyIdsInitData._Getkids: TUnicodeStringDynArray;
  102544. begin
  102545. Result:=ReadJSPropertyObject('kids',TJSArray) as TUnicodeStringDynArray;
  102546. end;
  102547. procedure TJSKeyIdsInitData._Setkids(const aValue : TUnicodeStringDynArray);
  102548. begin
  102549. WriteJSPropertyObject('kids',aValue);
  102550. end;
  102551. class function TJSKeyIdsInitData.JSClassName: UnicodeString;
  102552. begin
  102553. Result:='Object';
  102554. end;
  102555. class function TJSKeyIdsInitData.Cast(const Intf: IJSObject): IJSKeyIdsInitData;
  102556. begin
  102557. Result:=TJSKeyIdsInitData.JOBCast(Intf);
  102558. end;
  102559. function TJSLinkStyle._Getsheet: IJSStyleSheet;
  102560. begin
  102561. Result:=ReadJSPropertyObject('sheet',TJSStyleSheet) as IJSStyleSheet;
  102562. end;
  102563. class function TJSLinkStyle.JSClassName: UnicodeString;
  102564. begin
  102565. Result:='LinkStyle';
  102566. end;
  102567. class function TJSLinkStyle.Cast(const Intf: IJSObject): IJSLinkStyle;
  102568. begin
  102569. Result:=TJSLinkStyle.JOBCast(Intf);
  102570. end;
  102571. function TJSL10nIdArgs._Getid: UTF8String;
  102572. begin
  102573. Result:=ReadJSPropertyUTF8String('id');
  102574. end;
  102575. function TJSL10nIdArgs._Getargs: IJSArray;
  102576. begin
  102577. Result:=ReadJSPropertyObject('args',TJSArray) as IJSArray;
  102578. end;
  102579. procedure TJSL10nIdArgs._Setid(const aValue : UTF8String);
  102580. begin
  102581. WriteJSPropertyUTF8String('id',aValue);
  102582. end;
  102583. procedure TJSL10nIdArgs._Setargs(const aValue : IJSArray);
  102584. begin
  102585. WriteJSPropertyObject('args',aValue);
  102586. end;
  102587. class function TJSL10nIdArgs.JSClassName: UnicodeString;
  102588. begin
  102589. Result:='Object';
  102590. end;
  102591. class function TJSL10nIdArgs.Cast(const Intf: IJSObject): IJSL10nIdArgs;
  102592. begin
  102593. Result:=TJSL10nIdArgs.JOBCast(Intf);
  102594. end;
  102595. function TJSAttributeNameValue._Getname: UTF8String;
  102596. begin
  102597. Result:=ReadJSPropertyUTF8String('name');
  102598. end;
  102599. function TJSAttributeNameValue._Getvalue: UTF8String;
  102600. begin
  102601. Result:=ReadJSPropertyUTF8String('value');
  102602. end;
  102603. procedure TJSAttributeNameValue._Setname(const aValue : UTF8String);
  102604. begin
  102605. WriteJSPropertyUTF8String('name',aValue);
  102606. end;
  102607. procedure TJSAttributeNameValue._Setvalue(const aValue : UTF8String);
  102608. begin
  102609. WriteJSPropertyUTF8String('value',aValue);
  102610. end;
  102611. class function TJSAttributeNameValue.JSClassName: UnicodeString;
  102612. begin
  102613. Result:='Object';
  102614. end;
  102615. class function TJSAttributeNameValue.Cast(const Intf: IJSObject): IJSAttributeNameValue;
  102616. begin
  102617. Result:=TJSAttributeNameValue.JOBCast(Intf);
  102618. end;
  102619. function TJSL10nMessage._Getvalue: UTF8String;
  102620. begin
  102621. Result:=ReadJSPropertyUTF8String('value');
  102622. end;
  102623. function TJSL10nMessage._Getattributes: TJSAttributeNameValueDynArray;
  102624. begin
  102625. Result:=ReadJSPropertyObject('attributes',TJSArray) as TJSAttributeNameValueDynArray;
  102626. end;
  102627. procedure TJSL10nMessage._Setvalue(const aValue : UTF8String);
  102628. begin
  102629. WriteJSPropertyUTF8String('value',aValue);
  102630. end;
  102631. procedure TJSL10nMessage._Setattributes(const aValue : TJSAttributeNameValueDynArray);
  102632. begin
  102633. WriteJSPropertyObject('attributes',aValue);
  102634. end;
  102635. class function TJSL10nMessage.JSClassName: UnicodeString;
  102636. begin
  102637. Result:='Object';
  102638. end;
  102639. class function TJSL10nMessage.Cast(const Intf: IJSObject): IJSL10nMessage;
  102640. begin
  102641. Result:=TJSL10nMessage.JOBCast(Intf);
  102642. end;
  102643. constructor TJSLocalization.Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean; aARegistry: IJSObject; const aALocales: TUTF8StringDynArray);
  102644. begin
  102645. JOBCreate([aAResourceIds,aASync,aARegistry,aALocales]);
  102646. end;
  102647. constructor TJSLocalization.Create(const aAResourceIds: TDOMStringDynArray);
  102648. begin
  102649. JOBCreate([aAResourceIds]);
  102650. end;
  102651. constructor TJSLocalization.Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean);
  102652. begin
  102653. JOBCreate([aAResourceIds,aASync]);
  102654. end;
  102655. constructor TJSLocalization.Create(const aAResourceIds: TDOMStringDynArray; aASync: Boolean; aARegistry: IJSObject);
  102656. begin
  102657. JOBCreate([aAResourceIds,aASync,aARegistry]);
  102658. end;
  102659. procedure TJSLocalization.addResourceIds(const aAResourceIds: TDOMStringDynArray);
  102660. begin
  102661. InvokeJSNoResult('addResourceIds',[aAResourceIds]);
  102662. end;
  102663. function TJSLocalization.removeResourceIds(const aAResourceIds: TDOMStringDynArray): Cardinal;
  102664. begin
  102665. Result:=InvokeJSLongIntResult('removeResourceIds',[aAResourceIds]);
  102666. end;
  102667. function TJSLocalization.formatValue(const aAId: UTF8String; aAArgs: IJSArray): IJSPromise; // Promise<UTF8String>
  102668. begin
  102669. Result:=InvokeJSObjectResult('formatValue',[aAId,aAArgs],TJSPromise) as IJSPromise;
  102670. end;
  102671. function TJSLocalization.formatValue(const aAId: UTF8String): IJSPromise; // Promise<UTF8String>
  102672. begin
  102673. Result:=InvokeJSObjectResult('formatValue',[aAId],TJSPromise) as IJSPromise;
  102674. end;
  102675. function TJSLocalization.formatValues(const aAKeys: TL10nKeyDynArray): IJSPromise; // Promise<sequence>
  102676. begin
  102677. Result:=InvokeJSObjectResult('formatValues',[aAKeys],TJSPromise) as IJSPromise;
  102678. end;
  102679. function TJSLocalization.formatMessages(const aAKeys: TL10nKeyDynArray): IJSPromise; // Promise<sequence>
  102680. begin
  102681. Result:=InvokeJSObjectResult('formatMessages',[aAKeys],TJSPromise) as IJSPromise;
  102682. end;
  102683. procedure TJSLocalization.setAsync;
  102684. begin
  102685. InvokeJSNoResult('setAsync',[]);
  102686. end;
  102687. function TJSLocalization.formatValueSync(const aAId: UTF8String; aAArgs: IJSArray): UTF8String;
  102688. begin
  102689. Result:=InvokeJSUTF8StringResult('formatValueSync',[aAId,aAArgs]);
  102690. end;
  102691. function TJSLocalization.formatValueSync(const aAId: UTF8String): UTF8String;
  102692. begin
  102693. Result:=InvokeJSUTF8StringResult('formatValueSync',[aAId]);
  102694. end;
  102695. function TJSLocalization.formatValuesSync(const aAKeys: TL10nKeyDynArray): TUTF8StringDynArray;
  102696. begin
  102697. Result:=InvokeJSObjectResult('formatValuesSync',[aAKeys],TJSArray) as TUTF8StringDynArray;
  102698. end;
  102699. function TJSLocalization.formatMessagesSync(const aAKeys: TL10nKeyDynArray): TJSL10nMessageDynArray;
  102700. begin
  102701. Result:=InvokeJSObjectResult('formatMessagesSync',[aAKeys],TJSArray) as TJSL10nMessageDynArray;
  102702. end;
  102703. class function TJSLocalization.JSClassName: UnicodeString;
  102704. begin
  102705. Result:='Localization';
  102706. end;
  102707. class function TJSLocalization.Cast(const Intf: IJSObject): IJSLocalization;
  102708. begin
  102709. Result:=TJSLocalization.JOBCast(Intf);
  102710. end;
  102711. function TJSL10nArgsHelperDict._Getargs: IJSArray;
  102712. begin
  102713. Result:=ReadJSPropertyObject('args',TJSArray) as IJSArray;
  102714. end;
  102715. procedure TJSL10nArgsHelperDict._Setargs(const aValue : IJSArray);
  102716. begin
  102717. WriteJSPropertyObject('args',aValue);
  102718. end;
  102719. class function TJSL10nArgsHelperDict.JSClassName: UnicodeString;
  102720. begin
  102721. Result:='Object';
  102722. end;
  102723. class function TJSL10nArgsHelperDict.Cast(const Intf: IJSObject): IJSL10nArgsHelperDict;
  102724. begin
  102725. Result:=TJSL10nArgsHelperDict.JOBCast(Intf);
  102726. end;
  102727. function TJSLocation._Gethref: UnicodeString;
  102728. begin
  102729. Result:=ReadJSPropertyUnicodeString('href');
  102730. end;
  102731. function TJSLocation._Getorigin: UnicodeString;
  102732. begin
  102733. Result:=ReadJSPropertyUnicodeString('origin');
  102734. end;
  102735. function TJSLocation._Getprotocol: UnicodeString;
  102736. begin
  102737. Result:=ReadJSPropertyUnicodeString('protocol');
  102738. end;
  102739. function TJSLocation._Gethost: UnicodeString;
  102740. begin
  102741. Result:=ReadJSPropertyUnicodeString('host');
  102742. end;
  102743. function TJSLocation._Gethostname: UnicodeString;
  102744. begin
  102745. Result:=ReadJSPropertyUnicodeString('hostname');
  102746. end;
  102747. function TJSLocation._Getport: UnicodeString;
  102748. begin
  102749. Result:=ReadJSPropertyUnicodeString('port');
  102750. end;
  102751. function TJSLocation._Getpathname: UnicodeString;
  102752. begin
  102753. Result:=ReadJSPropertyUnicodeString('pathname');
  102754. end;
  102755. function TJSLocation._Getsearch: UnicodeString;
  102756. begin
  102757. Result:=ReadJSPropertyUnicodeString('search');
  102758. end;
  102759. function TJSLocation._Gethash: UnicodeString;
  102760. begin
  102761. Result:=ReadJSPropertyUnicodeString('hash');
  102762. end;
  102763. procedure TJSLocation._Setprotocol(const aValue : UnicodeString);
  102764. begin
  102765. WriteJSPropertyUnicodeString('protocol',aValue);
  102766. end;
  102767. procedure TJSLocation._Sethost(const aValue : UnicodeString);
  102768. begin
  102769. WriteJSPropertyUnicodeString('host',aValue);
  102770. end;
  102771. procedure TJSLocation._Sethostname(const aValue : UnicodeString);
  102772. begin
  102773. WriteJSPropertyUnicodeString('hostname',aValue);
  102774. end;
  102775. procedure TJSLocation._Setport(const aValue : UnicodeString);
  102776. begin
  102777. WriteJSPropertyUnicodeString('port',aValue);
  102778. end;
  102779. procedure TJSLocation._Setpathname(const aValue : UnicodeString);
  102780. begin
  102781. WriteJSPropertyUnicodeString('pathname',aValue);
  102782. end;
  102783. procedure TJSLocation._Setsearch(const aValue : UnicodeString);
  102784. begin
  102785. WriteJSPropertyUnicodeString('search',aValue);
  102786. end;
  102787. procedure TJSLocation._Sethash(const aValue : UnicodeString);
  102788. begin
  102789. WriteJSPropertyUnicodeString('hash',aValue);
  102790. end;
  102791. procedure TJSLocation.assign(const aUrl: UnicodeString);
  102792. begin
  102793. InvokeJSNoResult('assign',[aUrl]);
  102794. end;
  102795. procedure TJSLocation.replace(const aUrl: UnicodeString);
  102796. begin
  102797. InvokeJSNoResult('replace',[aUrl]);
  102798. end;
  102799. procedure TJSLocation.reload(aForceget: Boolean);
  102800. begin
  102801. InvokeJSNoResult('reload',[aForceget]);
  102802. end;
  102803. procedure TJSLocation.reload;
  102804. begin
  102805. InvokeJSNoResult('reload',[]);
  102806. end;
  102807. class function TJSLocation.JSClassName: UnicodeString;
  102808. begin
  102809. Result:='Location';
  102810. end;
  102811. class function TJSLocation.Cast(const Intf: IJSObject): IJSLocation;
  102812. begin
  102813. Result:=TJSLocation.JOBCast(Intf);
  102814. end;
  102815. function TJSLock._Getname: UnicodeString;
  102816. begin
  102817. Result:=ReadJSPropertyUnicodeString('name');
  102818. end;
  102819. function TJSLock._Getmode: TLockMode;
  102820. begin
  102821. Result:=ReadJSPropertyUnicodeString('mode');
  102822. end;
  102823. class function TJSLock.JSClassName: UnicodeString;
  102824. begin
  102825. Result:='Lock';
  102826. end;
  102827. class function TJSLock.Cast(const Intf: IJSObject): IJSLock;
  102828. begin
  102829. Result:=TJSLock.JOBCast(Intf);
  102830. end;
  102831. function TJSLockManager.request(const aName: UnicodeString; const aCallback: TLockGrantedCallback): IJSPromise; // Promise<any>
  102832. var
  102833. m: TJOB_Method;
  102834. begin
  102835. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallLockGrantedCallback);
  102836. try
  102837. Result:=InvokeJSObjectResult('request',[aName,m],TJSPromise) as IJSPromise;
  102838. finally
  102839. m.free;
  102840. end;
  102841. end;
  102842. function TJSLockManager.request(const aName: UnicodeString; const aOptions: TJSLockOptions; const aCallback: TLockGrantedCallback): IJSPromise; // Promise<any>
  102843. var
  102844. m: TJOB_Method;
  102845. begin
  102846. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallLockGrantedCallback);
  102847. try
  102848. Result:=InvokeJSObjectResult('request',[aName,aOptions,m],TJSPromise) as IJSPromise;
  102849. finally
  102850. m.free;
  102851. end;
  102852. end;
  102853. function TJSLockManager.query: IJSPromise; // Promise<LockManagerSnapshot>
  102854. begin
  102855. Result:=InvokeJSObjectResult('query',[],TJSPromise) as IJSPromise;
  102856. end;
  102857. class function TJSLockManager.JSClassName: UnicodeString;
  102858. begin
  102859. Result:='LockManager';
  102860. end;
  102861. class function TJSLockManager.Cast(const Intf: IJSObject): IJSLockManager;
  102862. begin
  102863. Result:=TJSLockManager.JOBCast(Intf);
  102864. end;
  102865. function TJSLockOptions._Getmode: TLockMode;
  102866. begin
  102867. Result:=ReadJSPropertyUnicodeString('mode');
  102868. end;
  102869. function TJSLockOptions._GetifAvailable: Boolean;
  102870. begin
  102871. Result:=ReadJSPropertyBoolean('ifAvailable');
  102872. end;
  102873. function TJSLockOptions._Getsteal: Boolean;
  102874. begin
  102875. Result:=ReadJSPropertyBoolean('steal');
  102876. end;
  102877. function TJSLockOptions._Getsignal: IJSAbortSignal;
  102878. begin
  102879. Result:=ReadJSPropertyObject('signal',TJSAbortSignal) as IJSAbortSignal;
  102880. end;
  102881. procedure TJSLockOptions._Setmode(const aValue : TLockMode);
  102882. begin
  102883. WriteJSPropertyUnicodeString('mode',aValue);
  102884. end;
  102885. procedure TJSLockOptions._SetifAvailable(const aValue : Boolean);
  102886. begin
  102887. WriteJSPropertyBoolean('ifAvailable',aValue);
  102888. end;
  102889. procedure TJSLockOptions._Setsteal(const aValue : Boolean);
  102890. begin
  102891. WriteJSPropertyBoolean('steal',aValue);
  102892. end;
  102893. procedure TJSLockOptions._Setsignal(const aValue : IJSAbortSignal);
  102894. begin
  102895. WriteJSPropertyObject('signal',aValue);
  102896. end;
  102897. class function TJSLockOptions.JSClassName: UnicodeString;
  102898. begin
  102899. Result:='Object';
  102900. end;
  102901. class function TJSLockOptions.Cast(const Intf: IJSObject): IJSLockOptions;
  102902. begin
  102903. Result:=TJSLockOptions.JOBCast(Intf);
  102904. end;
  102905. function TJSLockManagerSnapshot._Getheld: TJSLockInfoDynArray;
  102906. begin
  102907. Result:=ReadJSPropertyObject('held',TJSArray) as TJSLockInfoDynArray;
  102908. end;
  102909. function TJSLockManagerSnapshot._Getpending: TJSLockInfoDynArray;
  102910. begin
  102911. Result:=ReadJSPropertyObject('pending',TJSArray) as TJSLockInfoDynArray;
  102912. end;
  102913. procedure TJSLockManagerSnapshot._Setheld(const aValue : TJSLockInfoDynArray);
  102914. begin
  102915. WriteJSPropertyObject('held',aValue);
  102916. end;
  102917. procedure TJSLockManagerSnapshot._Setpending(const aValue : TJSLockInfoDynArray);
  102918. begin
  102919. WriteJSPropertyObject('pending',aValue);
  102920. end;
  102921. class function TJSLockManagerSnapshot.JSClassName: UnicodeString;
  102922. begin
  102923. Result:='Object';
  102924. end;
  102925. class function TJSLockManagerSnapshot.Cast(const Intf: IJSObject): IJSLockManagerSnapshot;
  102926. begin
  102927. Result:=TJSLockManagerSnapshot.JOBCast(Intf);
  102928. end;
  102929. function TJSLockInfo._Getname: UnicodeString;
  102930. begin
  102931. Result:=ReadJSPropertyUnicodeString('name');
  102932. end;
  102933. function TJSLockInfo._Getmode: TLockMode;
  102934. begin
  102935. Result:=ReadJSPropertyUnicodeString('mode');
  102936. end;
  102937. function TJSLockInfo._GetclientId: UnicodeString;
  102938. begin
  102939. Result:=ReadJSPropertyUnicodeString('clientId');
  102940. end;
  102941. procedure TJSLockInfo._Setname(const aValue : UnicodeString);
  102942. begin
  102943. WriteJSPropertyUnicodeString('name',aValue);
  102944. end;
  102945. procedure TJSLockInfo._Setmode(const aValue : TLockMode);
  102946. begin
  102947. WriteJSPropertyUnicodeString('mode',aValue);
  102948. end;
  102949. procedure TJSLockInfo._SetclientId(const aValue : UnicodeString);
  102950. begin
  102951. WriteJSPropertyUnicodeString('clientId',aValue);
  102952. end;
  102953. class function TJSLockInfo.JSClassName: UnicodeString;
  102954. begin
  102955. Result:='Object';
  102956. end;
  102957. class function TJSLockInfo.Cast(const Intf: IJSObject): IJSLockInfo;
  102958. begin
  102959. Result:=TJSLockInfo.JOBCast(Intf);
  102960. end;
  102961. function TJSMathMLElement._Getonabort: TEventHandler;
  102962. begin
  102963. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  102964. end;
  102965. function TJSMathMLElement._Getonblur: TEventHandler;
  102966. begin
  102967. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onblur')));
  102968. end;
  102969. function TJSMathMLElement._Getonfocus: TEventHandler;
  102970. begin
  102971. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfocus')));
  102972. end;
  102973. function TJSMathMLElement._Getoncancel: TEventHandler;
  102974. begin
  102975. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncancel')));
  102976. end;
  102977. function TJSMathMLElement._Getonauxclick: TEventHandler;
  102978. begin
  102979. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onauxclick')));
  102980. end;
  102981. function TJSMathMLElement._Getonbeforeinput: TEventHandler;
  102982. begin
  102983. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforeinput')));
  102984. end;
  102985. function TJSMathMLElement._Getonbeforetoggle: TEventHandler;
  102986. begin
  102987. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforetoggle')));
  102988. end;
  102989. function TJSMathMLElement._Getoncanplay: TEventHandler;
  102990. begin
  102991. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplay')));
  102992. end;
  102993. function TJSMathMLElement._Getoncanplaythrough: TEventHandler;
  102994. begin
  102995. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplaythrough')));
  102996. end;
  102997. function TJSMathMLElement._Getonchange: TEventHandler;
  102998. begin
  102999. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  103000. end;
  103001. function TJSMathMLElement._Getonclick: TEventHandler;
  103002. begin
  103003. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclick')));
  103004. end;
  103005. function TJSMathMLElement._Getonclose: TEventHandler;
  103006. begin
  103007. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclose')));
  103008. end;
  103009. function TJSMathMLElement._Getoncontextlost: TEventHandler;
  103010. begin
  103011. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextlost')));
  103012. end;
  103013. function TJSMathMLElement._Getoncontextmenu: TEventHandler;
  103014. begin
  103015. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextmenu')));
  103016. end;
  103017. function TJSMathMLElement._Getoncontextrestored: TEventHandler;
  103018. begin
  103019. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextrestored')));
  103020. end;
  103021. function TJSMathMLElement._Getoncopy: TEventHandler;
  103022. begin
  103023. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncopy')));
  103024. end;
  103025. function TJSMathMLElement._Getoncuechange: TEventHandler;
  103026. begin
  103027. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncuechange')));
  103028. end;
  103029. function TJSMathMLElement._Getoncut: TEventHandler;
  103030. begin
  103031. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncut')));
  103032. end;
  103033. function TJSMathMLElement._Getondblclick: TEventHandler;
  103034. begin
  103035. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondblclick')));
  103036. end;
  103037. function TJSMathMLElement._Getondrag: TEventHandler;
  103038. begin
  103039. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrag')));
  103040. end;
  103041. function TJSMathMLElement._Getondragend: TEventHandler;
  103042. begin
  103043. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragend')));
  103044. end;
  103045. function TJSMathMLElement._Getondragenter: TEventHandler;
  103046. begin
  103047. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragenter')));
  103048. end;
  103049. function TJSMathMLElement._Getondragexit: TEventHandler;
  103050. begin
  103051. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragexit')));
  103052. end;
  103053. function TJSMathMLElement._Getondragleave: TEventHandler;
  103054. begin
  103055. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragleave')));
  103056. end;
  103057. function TJSMathMLElement._Getondragover: TEventHandler;
  103058. begin
  103059. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragover')));
  103060. end;
  103061. function TJSMathMLElement._Getondragstart: TEventHandler;
  103062. begin
  103063. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragstart')));
  103064. end;
  103065. function TJSMathMLElement._Getondrop: TEventHandler;
  103066. begin
  103067. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrop')));
  103068. end;
  103069. function TJSMathMLElement._Getondurationchange: TEventHandler;
  103070. begin
  103071. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondurationchange')));
  103072. end;
  103073. function TJSMathMLElement._Getonemptied: TEventHandler;
  103074. begin
  103075. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onemptied')));
  103076. end;
  103077. function TJSMathMLElement._Getonended: TEventHandler;
  103078. begin
  103079. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onended')));
  103080. end;
  103081. function TJSMathMLElement._Getonformdata: TEventHandler;
  103082. begin
  103083. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onformdata')));
  103084. end;
  103085. function TJSMathMLElement._Getoninput: TEventHandler;
  103086. begin
  103087. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninput')));
  103088. end;
  103089. function TJSMathMLElement._Getoninvalid: TEventHandler;
  103090. begin
  103091. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninvalid')));
  103092. end;
  103093. function TJSMathMLElement._Getonkeydown: TEventHandler;
  103094. begin
  103095. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeydown')));
  103096. end;
  103097. function TJSMathMLElement._Getonkeypress: TEventHandler;
  103098. begin
  103099. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeypress')));
  103100. end;
  103101. function TJSMathMLElement._Getonkeyup: TEventHandler;
  103102. begin
  103103. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeyup')));
  103104. end;
  103105. function TJSMathMLElement._Getonload: TEventHandler;
  103106. begin
  103107. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onload')));
  103108. end;
  103109. function TJSMathMLElement._Getonloadeddata: TEventHandler;
  103110. begin
  103111. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadeddata')));
  103112. end;
  103113. function TJSMathMLElement._Getonloadedmetadata: TEventHandler;
  103114. begin
  103115. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadedmetadata')));
  103116. end;
  103117. function TJSMathMLElement._Getonloadstart: TEventHandler;
  103118. begin
  103119. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadstart')));
  103120. end;
  103121. function TJSMathMLElement._Getonmousedown: TEventHandler;
  103122. begin
  103123. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousedown')));
  103124. end;
  103125. function TJSMathMLElement._Getonmouseenter: TEventHandler;
  103126. begin
  103127. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseenter')));
  103128. end;
  103129. function TJSMathMLElement._Getonmouseleave: TEventHandler;
  103130. begin
  103131. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseleave')));
  103132. end;
  103133. function TJSMathMLElement._Getonmousemove: TEventHandler;
  103134. begin
  103135. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousemove')));
  103136. end;
  103137. function TJSMathMLElement._Getonmouseout: TEventHandler;
  103138. begin
  103139. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseout')));
  103140. end;
  103141. function TJSMathMLElement._Getonmouseover: TEventHandler;
  103142. begin
  103143. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseover')));
  103144. end;
  103145. function TJSMathMLElement._Getonmouseup: TEventHandler;
  103146. begin
  103147. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseup')));
  103148. end;
  103149. function TJSMathMLElement._Getonwheel: TEventHandler;
  103150. begin
  103151. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwheel')));
  103152. end;
  103153. function TJSMathMLElement._Getonpaste: TEventHandler;
  103154. begin
  103155. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpaste')));
  103156. end;
  103157. function TJSMathMLElement._Getonpause: TEventHandler;
  103158. begin
  103159. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpause')));
  103160. end;
  103161. function TJSMathMLElement._Getonplay: TEventHandler;
  103162. begin
  103163. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplay')));
  103164. end;
  103165. function TJSMathMLElement._Getonplaying: TEventHandler;
  103166. begin
  103167. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplaying')));
  103168. end;
  103169. function TJSMathMLElement._Getonprogress: TEventHandler;
  103170. begin
  103171. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onprogress')));
  103172. end;
  103173. function TJSMathMLElement._Getonratechange: TEventHandler;
  103174. begin
  103175. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onratechange')));
  103176. end;
  103177. function TJSMathMLElement._Getonreset: TEventHandler;
  103178. begin
  103179. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onreset')));
  103180. end;
  103181. function TJSMathMLElement._Getonresize: TEventHandler;
  103182. begin
  103183. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresize')));
  103184. end;
  103185. function TJSMathMLElement._Getonscroll: TEventHandler;
  103186. begin
  103187. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscroll')));
  103188. end;
  103189. function TJSMathMLElement._Getonscrollend: TEventHandler;
  103190. begin
  103191. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscrollend')));
  103192. end;
  103193. function TJSMathMLElement._Getonsecuritypolicyviolation: TEventHandler;
  103194. begin
  103195. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsecuritypolicyviolation')));
  103196. end;
  103197. function TJSMathMLElement._Getonseeked: TEventHandler;
  103198. begin
  103199. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeked')));
  103200. end;
  103201. function TJSMathMLElement._Getonseeking: TEventHandler;
  103202. begin
  103203. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeking')));
  103204. end;
  103205. function TJSMathMLElement._Getonselect: TEventHandler;
  103206. begin
  103207. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselect')));
  103208. end;
  103209. function TJSMathMLElement._Getonslotchange: TEventHandler;
  103210. begin
  103211. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onslotchange')));
  103212. end;
  103213. function TJSMathMLElement._Getonstalled: TEventHandler;
  103214. begin
  103215. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstalled')));
  103216. end;
  103217. function TJSMathMLElement._Getonsubmit: TEventHandler;
  103218. begin
  103219. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsubmit')));
  103220. end;
  103221. function TJSMathMLElement._Getonsuspend: TEventHandler;
  103222. begin
  103223. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsuspend')));
  103224. end;
  103225. function TJSMathMLElement._Getontimeupdate: TEventHandler;
  103226. begin
  103227. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontimeupdate')));
  103228. end;
  103229. function TJSMathMLElement._Getonvolumechange: TEventHandler;
  103230. begin
  103231. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvolumechange')));
  103232. end;
  103233. function TJSMathMLElement._Getonwaiting: TEventHandler;
  103234. begin
  103235. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwaiting')));
  103236. end;
  103237. function TJSMathMLElement._Getonselectstart: TEventHandler;
  103238. begin
  103239. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectstart')));
  103240. end;
  103241. function TJSMathMLElement._Getonselectionchange: TEventHandler;
  103242. begin
  103243. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectionchange')));
  103244. end;
  103245. function TJSMathMLElement._Getontoggle: TEventHandler;
  103246. begin
  103247. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontoggle')));
  103248. end;
  103249. function TJSMathMLElement._Getonpointercancel: TEventHandler;
  103250. begin
  103251. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointercancel')));
  103252. end;
  103253. function TJSMathMLElement._Getonpointerdown: TEventHandler;
  103254. begin
  103255. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerdown')));
  103256. end;
  103257. function TJSMathMLElement._Getonpointerup: TEventHandler;
  103258. begin
  103259. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerup')));
  103260. end;
  103261. function TJSMathMLElement._Getonpointermove: TEventHandler;
  103262. begin
  103263. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointermove')));
  103264. end;
  103265. function TJSMathMLElement._Getonpointerout: TEventHandler;
  103266. begin
  103267. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerout')));
  103268. end;
  103269. function TJSMathMLElement._Getonpointerover: TEventHandler;
  103270. begin
  103271. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerover')));
  103272. end;
  103273. function TJSMathMLElement._Getonpointerenter: TEventHandler;
  103274. begin
  103275. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerenter')));
  103276. end;
  103277. function TJSMathMLElement._Getonpointerleave: TEventHandler;
  103278. begin
  103279. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerleave')));
  103280. end;
  103281. function TJSMathMLElement._Getongotpointercapture: TEventHandler;
  103282. begin
  103283. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongotpointercapture')));
  103284. end;
  103285. function TJSMathMLElement._Getonlostpointercapture: TEventHandler;
  103286. begin
  103287. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onlostpointercapture')));
  103288. end;
  103289. function TJSMathMLElement._Getonmozfullscreenchange: TEventHandler;
  103290. begin
  103291. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenchange')));
  103292. end;
  103293. function TJSMathMLElement._Getonmozfullscreenerror: TEventHandler;
  103294. begin
  103295. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenerror')));
  103296. end;
  103297. function TJSMathMLElement._Getonanimationcancel: TEventHandler;
  103298. begin
  103299. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationcancel')));
  103300. end;
  103301. function TJSMathMLElement._Getonanimationend: TEventHandler;
  103302. begin
  103303. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationend')));
  103304. end;
  103305. function TJSMathMLElement._Getonanimationiteration: TEventHandler;
  103306. begin
  103307. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationiteration')));
  103308. end;
  103309. function TJSMathMLElement._Getonanimationstart: TEventHandler;
  103310. begin
  103311. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationstart')));
  103312. end;
  103313. function TJSMathMLElement._Getontransitioncancel: TEventHandler;
  103314. begin
  103315. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitioncancel')));
  103316. end;
  103317. function TJSMathMLElement._Getontransitionend: TEventHandler;
  103318. begin
  103319. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionend')));
  103320. end;
  103321. function TJSMathMLElement._Getontransitionrun: TEventHandler;
  103322. begin
  103323. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionrun')));
  103324. end;
  103325. function TJSMathMLElement._Getontransitionstart: TEventHandler;
  103326. begin
  103327. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionstart')));
  103328. end;
  103329. function TJSMathMLElement._Getonwebkitanimationend: TEventHandler;
  103330. begin
  103331. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationend')));
  103332. end;
  103333. function TJSMathMLElement._Getonwebkitanimationiteration: TEventHandler;
  103334. begin
  103335. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationiteration')));
  103336. end;
  103337. function TJSMathMLElement._Getonwebkitanimationstart: TEventHandler;
  103338. begin
  103339. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationstart')));
  103340. end;
  103341. function TJSMathMLElement._Getonwebkittransitionend: TEventHandler;
  103342. begin
  103343. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkittransitionend')));
  103344. end;
  103345. function TJSMathMLElement._Getdataset: IJSDOMStringMap;
  103346. begin
  103347. Result:=ReadJSPropertyObject('dataset',TJSDOMStringMap) as IJSDOMStringMap;
  103348. end;
  103349. function TJSMathMLElement._Getautofocus: Boolean;
  103350. begin
  103351. Result:=ReadJSPropertyBoolean('autofocus');
  103352. end;
  103353. function TJSMathMLElement._GettabIndex: LongInt;
  103354. begin
  103355. Result:=ReadJSPropertyLongInt('tabIndex');
  103356. end;
  103357. function TJSMathMLElement._Getstyle: IJSCSSStyleDeclaration;
  103358. begin
  103359. Result:=ReadJSPropertyObject('style',TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  103360. end;
  103361. function TJSMathMLElement._Getontouchstart: TEventHandler;
  103362. begin
  103363. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchstart')));
  103364. end;
  103365. function TJSMathMLElement._Getontouchend: TEventHandler;
  103366. begin
  103367. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchend')));
  103368. end;
  103369. function TJSMathMLElement._Getontouchmove: TEventHandler;
  103370. begin
  103371. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchmove')));
  103372. end;
  103373. function TJSMathMLElement._Getontouchcancel: TEventHandler;
  103374. begin
  103375. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchcancel')));
  103376. end;
  103377. function TJSMathMLElement._Getonerror: TEventHandler;
  103378. begin
  103379. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  103380. end;
  103381. procedure TJSMathMLElement._Setonabort(const aValue : TEventHandler);
  103382. begin
  103383. WriteJSPropertyMethod('onabort',TMethod(aValue));
  103384. end;
  103385. procedure TJSMathMLElement._Setonblur(const aValue : TEventHandler);
  103386. begin
  103387. WriteJSPropertyMethod('onblur',TMethod(aValue));
  103388. end;
  103389. procedure TJSMathMLElement._Setonfocus(const aValue : TEventHandler);
  103390. begin
  103391. WriteJSPropertyMethod('onfocus',TMethod(aValue));
  103392. end;
  103393. procedure TJSMathMLElement._Setoncancel(const aValue : TEventHandler);
  103394. begin
  103395. WriteJSPropertyMethod('oncancel',TMethod(aValue));
  103396. end;
  103397. procedure TJSMathMLElement._Setonauxclick(const aValue : TEventHandler);
  103398. begin
  103399. WriteJSPropertyMethod('onauxclick',TMethod(aValue));
  103400. end;
  103401. procedure TJSMathMLElement._Setonbeforeinput(const aValue : TEventHandler);
  103402. begin
  103403. WriteJSPropertyMethod('onbeforeinput',TMethod(aValue));
  103404. end;
  103405. procedure TJSMathMLElement._Setonbeforetoggle(const aValue : TEventHandler);
  103406. begin
  103407. WriteJSPropertyMethod('onbeforetoggle',TMethod(aValue));
  103408. end;
  103409. procedure TJSMathMLElement._Setoncanplay(const aValue : TEventHandler);
  103410. begin
  103411. WriteJSPropertyMethod('oncanplay',TMethod(aValue));
  103412. end;
  103413. procedure TJSMathMLElement._Setoncanplaythrough(const aValue : TEventHandler);
  103414. begin
  103415. WriteJSPropertyMethod('oncanplaythrough',TMethod(aValue));
  103416. end;
  103417. procedure TJSMathMLElement._Setonchange(const aValue : TEventHandler);
  103418. begin
  103419. WriteJSPropertyMethod('onchange',TMethod(aValue));
  103420. end;
  103421. procedure TJSMathMLElement._Setonclick(const aValue : TEventHandler);
  103422. begin
  103423. WriteJSPropertyMethod('onclick',TMethod(aValue));
  103424. end;
  103425. procedure TJSMathMLElement._Setonclose(const aValue : TEventHandler);
  103426. begin
  103427. WriteJSPropertyMethod('onclose',TMethod(aValue));
  103428. end;
  103429. procedure TJSMathMLElement._Setoncontextlost(const aValue : TEventHandler);
  103430. begin
  103431. WriteJSPropertyMethod('oncontextlost',TMethod(aValue));
  103432. end;
  103433. procedure TJSMathMLElement._Setoncontextmenu(const aValue : TEventHandler);
  103434. begin
  103435. WriteJSPropertyMethod('oncontextmenu',TMethod(aValue));
  103436. end;
  103437. procedure TJSMathMLElement._Setoncontextrestored(const aValue : TEventHandler);
  103438. begin
  103439. WriteJSPropertyMethod('oncontextrestored',TMethod(aValue));
  103440. end;
  103441. procedure TJSMathMLElement._Setoncopy(const aValue : TEventHandler);
  103442. begin
  103443. WriteJSPropertyMethod('oncopy',TMethod(aValue));
  103444. end;
  103445. procedure TJSMathMLElement._Setoncuechange(const aValue : TEventHandler);
  103446. begin
  103447. WriteJSPropertyMethod('oncuechange',TMethod(aValue));
  103448. end;
  103449. procedure TJSMathMLElement._Setoncut(const aValue : TEventHandler);
  103450. begin
  103451. WriteJSPropertyMethod('oncut',TMethod(aValue));
  103452. end;
  103453. procedure TJSMathMLElement._Setondblclick(const aValue : TEventHandler);
  103454. begin
  103455. WriteJSPropertyMethod('ondblclick',TMethod(aValue));
  103456. end;
  103457. procedure TJSMathMLElement._Setondrag(const aValue : TEventHandler);
  103458. begin
  103459. WriteJSPropertyMethod('ondrag',TMethod(aValue));
  103460. end;
  103461. procedure TJSMathMLElement._Setondragend(const aValue : TEventHandler);
  103462. begin
  103463. WriteJSPropertyMethod('ondragend',TMethod(aValue));
  103464. end;
  103465. procedure TJSMathMLElement._Setondragenter(const aValue : TEventHandler);
  103466. begin
  103467. WriteJSPropertyMethod('ondragenter',TMethod(aValue));
  103468. end;
  103469. procedure TJSMathMLElement._Setondragexit(const aValue : TEventHandler);
  103470. begin
  103471. WriteJSPropertyMethod('ondragexit',TMethod(aValue));
  103472. end;
  103473. procedure TJSMathMLElement._Setondragleave(const aValue : TEventHandler);
  103474. begin
  103475. WriteJSPropertyMethod('ondragleave',TMethod(aValue));
  103476. end;
  103477. procedure TJSMathMLElement._Setondragover(const aValue : TEventHandler);
  103478. begin
  103479. WriteJSPropertyMethod('ondragover',TMethod(aValue));
  103480. end;
  103481. procedure TJSMathMLElement._Setondragstart(const aValue : TEventHandler);
  103482. begin
  103483. WriteJSPropertyMethod('ondragstart',TMethod(aValue));
  103484. end;
  103485. procedure TJSMathMLElement._Setondrop(const aValue : TEventHandler);
  103486. begin
  103487. WriteJSPropertyMethod('ondrop',TMethod(aValue));
  103488. end;
  103489. procedure TJSMathMLElement._Setondurationchange(const aValue : TEventHandler);
  103490. begin
  103491. WriteJSPropertyMethod('ondurationchange',TMethod(aValue));
  103492. end;
  103493. procedure TJSMathMLElement._Setonemptied(const aValue : TEventHandler);
  103494. begin
  103495. WriteJSPropertyMethod('onemptied',TMethod(aValue));
  103496. end;
  103497. procedure TJSMathMLElement._Setonended(const aValue : TEventHandler);
  103498. begin
  103499. WriteJSPropertyMethod('onended',TMethod(aValue));
  103500. end;
  103501. procedure TJSMathMLElement._Setonformdata(const aValue : TEventHandler);
  103502. begin
  103503. WriteJSPropertyMethod('onformdata',TMethod(aValue));
  103504. end;
  103505. procedure TJSMathMLElement._Setoninput(const aValue : TEventHandler);
  103506. begin
  103507. WriteJSPropertyMethod('oninput',TMethod(aValue));
  103508. end;
  103509. procedure TJSMathMLElement._Setoninvalid(const aValue : TEventHandler);
  103510. begin
  103511. WriteJSPropertyMethod('oninvalid',TMethod(aValue));
  103512. end;
  103513. procedure TJSMathMLElement._Setonkeydown(const aValue : TEventHandler);
  103514. begin
  103515. WriteJSPropertyMethod('onkeydown',TMethod(aValue));
  103516. end;
  103517. procedure TJSMathMLElement._Setonkeypress(const aValue : TEventHandler);
  103518. begin
  103519. WriteJSPropertyMethod('onkeypress',TMethod(aValue));
  103520. end;
  103521. procedure TJSMathMLElement._Setonkeyup(const aValue : TEventHandler);
  103522. begin
  103523. WriteJSPropertyMethod('onkeyup',TMethod(aValue));
  103524. end;
  103525. procedure TJSMathMLElement._Setonload(const aValue : TEventHandler);
  103526. begin
  103527. WriteJSPropertyMethod('onload',TMethod(aValue));
  103528. end;
  103529. procedure TJSMathMLElement._Setonloadeddata(const aValue : TEventHandler);
  103530. begin
  103531. WriteJSPropertyMethod('onloadeddata',TMethod(aValue));
  103532. end;
  103533. procedure TJSMathMLElement._Setonloadedmetadata(const aValue : TEventHandler);
  103534. begin
  103535. WriteJSPropertyMethod('onloadedmetadata',TMethod(aValue));
  103536. end;
  103537. procedure TJSMathMLElement._Setonloadstart(const aValue : TEventHandler);
  103538. begin
  103539. WriteJSPropertyMethod('onloadstart',TMethod(aValue));
  103540. end;
  103541. procedure TJSMathMLElement._Setonmousedown(const aValue : TEventHandler);
  103542. begin
  103543. WriteJSPropertyMethod('onmousedown',TMethod(aValue));
  103544. end;
  103545. procedure TJSMathMLElement._Setonmouseenter(const aValue : TEventHandler);
  103546. begin
  103547. WriteJSPropertyMethod('onmouseenter',TMethod(aValue));
  103548. end;
  103549. procedure TJSMathMLElement._Setonmouseleave(const aValue : TEventHandler);
  103550. begin
  103551. WriteJSPropertyMethod('onmouseleave',TMethod(aValue));
  103552. end;
  103553. procedure TJSMathMLElement._Setonmousemove(const aValue : TEventHandler);
  103554. begin
  103555. WriteJSPropertyMethod('onmousemove',TMethod(aValue));
  103556. end;
  103557. procedure TJSMathMLElement._Setonmouseout(const aValue : TEventHandler);
  103558. begin
  103559. WriteJSPropertyMethod('onmouseout',TMethod(aValue));
  103560. end;
  103561. procedure TJSMathMLElement._Setonmouseover(const aValue : TEventHandler);
  103562. begin
  103563. WriteJSPropertyMethod('onmouseover',TMethod(aValue));
  103564. end;
  103565. procedure TJSMathMLElement._Setonmouseup(const aValue : TEventHandler);
  103566. begin
  103567. WriteJSPropertyMethod('onmouseup',TMethod(aValue));
  103568. end;
  103569. procedure TJSMathMLElement._Setonwheel(const aValue : TEventHandler);
  103570. begin
  103571. WriteJSPropertyMethod('onwheel',TMethod(aValue));
  103572. end;
  103573. procedure TJSMathMLElement._Setonpaste(const aValue : TEventHandler);
  103574. begin
  103575. WriteJSPropertyMethod('onpaste',TMethod(aValue));
  103576. end;
  103577. procedure TJSMathMLElement._Setonpause(const aValue : TEventHandler);
  103578. begin
  103579. WriteJSPropertyMethod('onpause',TMethod(aValue));
  103580. end;
  103581. procedure TJSMathMLElement._Setonplay(const aValue : TEventHandler);
  103582. begin
  103583. WriteJSPropertyMethod('onplay',TMethod(aValue));
  103584. end;
  103585. procedure TJSMathMLElement._Setonplaying(const aValue : TEventHandler);
  103586. begin
  103587. WriteJSPropertyMethod('onplaying',TMethod(aValue));
  103588. end;
  103589. procedure TJSMathMLElement._Setonprogress(const aValue : TEventHandler);
  103590. begin
  103591. WriteJSPropertyMethod('onprogress',TMethod(aValue));
  103592. end;
  103593. procedure TJSMathMLElement._Setonratechange(const aValue : TEventHandler);
  103594. begin
  103595. WriteJSPropertyMethod('onratechange',TMethod(aValue));
  103596. end;
  103597. procedure TJSMathMLElement._Setonreset(const aValue : TEventHandler);
  103598. begin
  103599. WriteJSPropertyMethod('onreset',TMethod(aValue));
  103600. end;
  103601. procedure TJSMathMLElement._Setonresize(const aValue : TEventHandler);
  103602. begin
  103603. WriteJSPropertyMethod('onresize',TMethod(aValue));
  103604. end;
  103605. procedure TJSMathMLElement._Setonscroll(const aValue : TEventHandler);
  103606. begin
  103607. WriteJSPropertyMethod('onscroll',TMethod(aValue));
  103608. end;
  103609. procedure TJSMathMLElement._Setonscrollend(const aValue : TEventHandler);
  103610. begin
  103611. WriteJSPropertyMethod('onscrollend',TMethod(aValue));
  103612. end;
  103613. procedure TJSMathMLElement._Setonsecuritypolicyviolation(const aValue : TEventHandler);
  103614. begin
  103615. WriteJSPropertyMethod('onsecuritypolicyviolation',TMethod(aValue));
  103616. end;
  103617. procedure TJSMathMLElement._Setonseeked(const aValue : TEventHandler);
  103618. begin
  103619. WriteJSPropertyMethod('onseeked',TMethod(aValue));
  103620. end;
  103621. procedure TJSMathMLElement._Setonseeking(const aValue : TEventHandler);
  103622. begin
  103623. WriteJSPropertyMethod('onseeking',TMethod(aValue));
  103624. end;
  103625. procedure TJSMathMLElement._Setonselect(const aValue : TEventHandler);
  103626. begin
  103627. WriteJSPropertyMethod('onselect',TMethod(aValue));
  103628. end;
  103629. procedure TJSMathMLElement._Setonslotchange(const aValue : TEventHandler);
  103630. begin
  103631. WriteJSPropertyMethod('onslotchange',TMethod(aValue));
  103632. end;
  103633. procedure TJSMathMLElement._Setonstalled(const aValue : TEventHandler);
  103634. begin
  103635. WriteJSPropertyMethod('onstalled',TMethod(aValue));
  103636. end;
  103637. procedure TJSMathMLElement._Setonsubmit(const aValue : TEventHandler);
  103638. begin
  103639. WriteJSPropertyMethod('onsubmit',TMethod(aValue));
  103640. end;
  103641. procedure TJSMathMLElement._Setonsuspend(const aValue : TEventHandler);
  103642. begin
  103643. WriteJSPropertyMethod('onsuspend',TMethod(aValue));
  103644. end;
  103645. procedure TJSMathMLElement._Setontimeupdate(const aValue : TEventHandler);
  103646. begin
  103647. WriteJSPropertyMethod('ontimeupdate',TMethod(aValue));
  103648. end;
  103649. procedure TJSMathMLElement._Setonvolumechange(const aValue : TEventHandler);
  103650. begin
  103651. WriteJSPropertyMethod('onvolumechange',TMethod(aValue));
  103652. end;
  103653. procedure TJSMathMLElement._Setonwaiting(const aValue : TEventHandler);
  103654. begin
  103655. WriteJSPropertyMethod('onwaiting',TMethod(aValue));
  103656. end;
  103657. procedure TJSMathMLElement._Setonselectstart(const aValue : TEventHandler);
  103658. begin
  103659. WriteJSPropertyMethod('onselectstart',TMethod(aValue));
  103660. end;
  103661. procedure TJSMathMLElement._Setonselectionchange(const aValue : TEventHandler);
  103662. begin
  103663. WriteJSPropertyMethod('onselectionchange',TMethod(aValue));
  103664. end;
  103665. procedure TJSMathMLElement._Setontoggle(const aValue : TEventHandler);
  103666. begin
  103667. WriteJSPropertyMethod('ontoggle',TMethod(aValue));
  103668. end;
  103669. procedure TJSMathMLElement._Setonpointercancel(const aValue : TEventHandler);
  103670. begin
  103671. WriteJSPropertyMethod('onpointercancel',TMethod(aValue));
  103672. end;
  103673. procedure TJSMathMLElement._Setonpointerdown(const aValue : TEventHandler);
  103674. begin
  103675. WriteJSPropertyMethod('onpointerdown',TMethod(aValue));
  103676. end;
  103677. procedure TJSMathMLElement._Setonpointerup(const aValue : TEventHandler);
  103678. begin
  103679. WriteJSPropertyMethod('onpointerup',TMethod(aValue));
  103680. end;
  103681. procedure TJSMathMLElement._Setonpointermove(const aValue : TEventHandler);
  103682. begin
  103683. WriteJSPropertyMethod('onpointermove',TMethod(aValue));
  103684. end;
  103685. procedure TJSMathMLElement._Setonpointerout(const aValue : TEventHandler);
  103686. begin
  103687. WriteJSPropertyMethod('onpointerout',TMethod(aValue));
  103688. end;
  103689. procedure TJSMathMLElement._Setonpointerover(const aValue : TEventHandler);
  103690. begin
  103691. WriteJSPropertyMethod('onpointerover',TMethod(aValue));
  103692. end;
  103693. procedure TJSMathMLElement._Setonpointerenter(const aValue : TEventHandler);
  103694. begin
  103695. WriteJSPropertyMethod('onpointerenter',TMethod(aValue));
  103696. end;
  103697. procedure TJSMathMLElement._Setonpointerleave(const aValue : TEventHandler);
  103698. begin
  103699. WriteJSPropertyMethod('onpointerleave',TMethod(aValue));
  103700. end;
  103701. procedure TJSMathMLElement._Setongotpointercapture(const aValue : TEventHandler);
  103702. begin
  103703. WriteJSPropertyMethod('ongotpointercapture',TMethod(aValue));
  103704. end;
  103705. procedure TJSMathMLElement._Setonlostpointercapture(const aValue : TEventHandler);
  103706. begin
  103707. WriteJSPropertyMethod('onlostpointercapture',TMethod(aValue));
  103708. end;
  103709. procedure TJSMathMLElement._Setonmozfullscreenchange(const aValue : TEventHandler);
  103710. begin
  103711. WriteJSPropertyMethod('onmozfullscreenchange',TMethod(aValue));
  103712. end;
  103713. procedure TJSMathMLElement._Setonmozfullscreenerror(const aValue : TEventHandler);
  103714. begin
  103715. WriteJSPropertyMethod('onmozfullscreenerror',TMethod(aValue));
  103716. end;
  103717. procedure TJSMathMLElement._Setonanimationcancel(const aValue : TEventHandler);
  103718. begin
  103719. WriteJSPropertyMethod('onanimationcancel',TMethod(aValue));
  103720. end;
  103721. procedure TJSMathMLElement._Setonanimationend(const aValue : TEventHandler);
  103722. begin
  103723. WriteJSPropertyMethod('onanimationend',TMethod(aValue));
  103724. end;
  103725. procedure TJSMathMLElement._Setonanimationiteration(const aValue : TEventHandler);
  103726. begin
  103727. WriteJSPropertyMethod('onanimationiteration',TMethod(aValue));
  103728. end;
  103729. procedure TJSMathMLElement._Setonanimationstart(const aValue : TEventHandler);
  103730. begin
  103731. WriteJSPropertyMethod('onanimationstart',TMethod(aValue));
  103732. end;
  103733. procedure TJSMathMLElement._Setontransitioncancel(const aValue : TEventHandler);
  103734. begin
  103735. WriteJSPropertyMethod('ontransitioncancel',TMethod(aValue));
  103736. end;
  103737. procedure TJSMathMLElement._Setontransitionend(const aValue : TEventHandler);
  103738. begin
  103739. WriteJSPropertyMethod('ontransitionend',TMethod(aValue));
  103740. end;
  103741. procedure TJSMathMLElement._Setontransitionrun(const aValue : TEventHandler);
  103742. begin
  103743. WriteJSPropertyMethod('ontransitionrun',TMethod(aValue));
  103744. end;
  103745. procedure TJSMathMLElement._Setontransitionstart(const aValue : TEventHandler);
  103746. begin
  103747. WriteJSPropertyMethod('ontransitionstart',TMethod(aValue));
  103748. end;
  103749. procedure TJSMathMLElement._Setonwebkitanimationend(const aValue : TEventHandler);
  103750. begin
  103751. WriteJSPropertyMethod('onwebkitanimationend',TMethod(aValue));
  103752. end;
  103753. procedure TJSMathMLElement._Setonwebkitanimationiteration(const aValue : TEventHandler);
  103754. begin
  103755. WriteJSPropertyMethod('onwebkitanimationiteration',TMethod(aValue));
  103756. end;
  103757. procedure TJSMathMLElement._Setonwebkitanimationstart(const aValue : TEventHandler);
  103758. begin
  103759. WriteJSPropertyMethod('onwebkitanimationstart',TMethod(aValue));
  103760. end;
  103761. procedure TJSMathMLElement._Setonwebkittransitionend(const aValue : TEventHandler);
  103762. begin
  103763. WriteJSPropertyMethod('onwebkittransitionend',TMethod(aValue));
  103764. end;
  103765. procedure TJSMathMLElement._Setautofocus(const aValue : Boolean);
  103766. begin
  103767. WriteJSPropertyBoolean('autofocus',aValue);
  103768. end;
  103769. procedure TJSMathMLElement._SettabIndex(const aValue : LongInt);
  103770. begin
  103771. WriteJSPropertyLongInt('tabIndex',aValue);
  103772. end;
  103773. procedure TJSMathMLElement._Setontouchstart(const aValue : TEventHandler);
  103774. begin
  103775. WriteJSPropertyMethod('ontouchstart',TMethod(aValue));
  103776. end;
  103777. procedure TJSMathMLElement._Setontouchend(const aValue : TEventHandler);
  103778. begin
  103779. WriteJSPropertyMethod('ontouchend',TMethod(aValue));
  103780. end;
  103781. procedure TJSMathMLElement._Setontouchmove(const aValue : TEventHandler);
  103782. begin
  103783. WriteJSPropertyMethod('ontouchmove',TMethod(aValue));
  103784. end;
  103785. procedure TJSMathMLElement._Setontouchcancel(const aValue : TEventHandler);
  103786. begin
  103787. WriteJSPropertyMethod('ontouchcancel',TMethod(aValue));
  103788. end;
  103789. procedure TJSMathMLElement._Setonerror(const aValue : TEventHandler);
  103790. begin
  103791. WriteJSPropertyMethod('onerror',TMethod(aValue));
  103792. end;
  103793. procedure TJSMathMLElement.focus(const aOptions: TJSFocusOptions);
  103794. begin
  103795. InvokeJSNoResult('focus',[aOptions]);
  103796. end;
  103797. procedure TJSMathMLElement.focus;
  103798. begin
  103799. InvokeJSNoResult('focus',[]);
  103800. end;
  103801. procedure TJSMathMLElement.blur;
  103802. begin
  103803. InvokeJSNoResult('blur',[]);
  103804. end;
  103805. class function TJSMathMLElement.JSClassName: UnicodeString;
  103806. begin
  103807. Result:='MathMLElement';
  103808. end;
  103809. class function TJSMathMLElement.Cast(const Intf: IJSObject): IJSMathMLElement;
  103810. begin
  103811. Result:=TJSMathMLElement.JOBCast(Intf);
  103812. end;
  103813. function TJSMediaConfiguration._Getvideo: TJSVideoConfiguration;
  103814. begin
  103815. Result:=ReadJSPropertyObject('video',TJSVideoConfiguration) as TJSVideoConfiguration;
  103816. end;
  103817. function TJSMediaConfiguration._Getaudio: TJSAudioConfiguration;
  103818. begin
  103819. Result:=ReadJSPropertyObject('audio',TJSAudioConfiguration) as TJSAudioConfiguration;
  103820. end;
  103821. procedure TJSMediaConfiguration._Setvideo(const aValue : TJSVideoConfiguration);
  103822. begin
  103823. WriteJSPropertyObject('video',aValue);
  103824. end;
  103825. procedure TJSMediaConfiguration._Setaudio(const aValue : TJSAudioConfiguration);
  103826. begin
  103827. WriteJSPropertyObject('audio',aValue);
  103828. end;
  103829. class function TJSMediaConfiguration.JSClassName: UnicodeString;
  103830. begin
  103831. Result:='Object';
  103832. end;
  103833. class function TJSMediaConfiguration.Cast(const Intf: IJSObject): IJSMediaConfiguration;
  103834. begin
  103835. Result:=TJSMediaConfiguration.JOBCast(Intf);
  103836. end;
  103837. function TJSMediaDecodingConfiguration._Gettype_: TMediaDecodingType;
  103838. begin
  103839. Result:=ReadJSPropertyUnicodeString('type');
  103840. end;
  103841. procedure TJSMediaDecodingConfiguration._Settype_(const aValue : TMediaDecodingType);
  103842. begin
  103843. WriteJSPropertyUnicodeString('type',aValue);
  103844. end;
  103845. class function TJSMediaDecodingConfiguration.JSClassName: UnicodeString;
  103846. begin
  103847. Result:='Object';
  103848. end;
  103849. class function TJSMediaDecodingConfiguration.Cast(const Intf: IJSObject): IJSMediaDecodingConfiguration;
  103850. begin
  103851. Result:=TJSMediaDecodingConfiguration.JOBCast(Intf);
  103852. end;
  103853. function TJSMediaEncodingConfiguration._Gettype_: TMediaEncodingType;
  103854. begin
  103855. Result:=ReadJSPropertyUnicodeString('type');
  103856. end;
  103857. procedure TJSMediaEncodingConfiguration._Settype_(const aValue : TMediaEncodingType);
  103858. begin
  103859. WriteJSPropertyUnicodeString('type',aValue);
  103860. end;
  103861. class function TJSMediaEncodingConfiguration.JSClassName: UnicodeString;
  103862. begin
  103863. Result:='Object';
  103864. end;
  103865. class function TJSMediaEncodingConfiguration.Cast(const Intf: IJSObject): IJSMediaEncodingConfiguration;
  103866. begin
  103867. Result:=TJSMediaEncodingConfiguration.JOBCast(Intf);
  103868. end;
  103869. function TJSVideoConfiguration._GetcontentType: UnicodeString;
  103870. begin
  103871. Result:=ReadJSPropertyUnicodeString('contentType');
  103872. end;
  103873. function TJSVideoConfiguration._Getwidth: Cardinal;
  103874. begin
  103875. Result:=ReadJSPropertyInt64('width');
  103876. end;
  103877. function TJSVideoConfiguration._Getheight: Cardinal;
  103878. begin
  103879. Result:=ReadJSPropertyInt64('height');
  103880. end;
  103881. function TJSVideoConfiguration._Getbitrate: QWord;
  103882. begin
  103883. Result:=ReadJSPropertyInt64('bitrate');
  103884. end;
  103885. function TJSVideoConfiguration._Getframerate: Double;
  103886. begin
  103887. Result:=ReadJSPropertyDouble('framerate');
  103888. end;
  103889. function TJSVideoConfiguration._GethasAlphaChannel: Boolean;
  103890. begin
  103891. Result:=ReadJSPropertyBoolean('hasAlphaChannel');
  103892. end;
  103893. function TJSVideoConfiguration._GethdrMetadataType: THdrMetadataType;
  103894. begin
  103895. Result:=ReadJSPropertyUnicodeString('hdrMetadataType');
  103896. end;
  103897. function TJSVideoConfiguration._GetcolorGamut: TColorGamut;
  103898. begin
  103899. Result:=ReadJSPropertyUnicodeString('colorGamut');
  103900. end;
  103901. function TJSVideoConfiguration._GettransferFunction: TTransferFunction;
  103902. begin
  103903. Result:=ReadJSPropertyUnicodeString('transferFunction');
  103904. end;
  103905. function TJSVideoConfiguration._GetscalabilityMode: UnicodeString;
  103906. begin
  103907. Result:=ReadJSPropertyUnicodeString('scalabilityMode');
  103908. end;
  103909. procedure TJSVideoConfiguration._SetcontentType(const aValue : UnicodeString);
  103910. begin
  103911. WriteJSPropertyUnicodeString('contentType',aValue);
  103912. end;
  103913. procedure TJSVideoConfiguration._Setwidth(const aValue : Cardinal);
  103914. begin
  103915. WriteJSPropertyDouble('width',aValue);
  103916. end;
  103917. procedure TJSVideoConfiguration._Setheight(const aValue : Cardinal);
  103918. begin
  103919. WriteJSPropertyDouble('height',aValue);
  103920. end;
  103921. procedure TJSVideoConfiguration._Setbitrate(const aValue : QWord);
  103922. begin
  103923. WriteJSPropertyDouble('bitrate',aValue);
  103924. end;
  103925. procedure TJSVideoConfiguration._Setframerate(const aValue : Double);
  103926. begin
  103927. WriteJSPropertyDouble('framerate',aValue);
  103928. end;
  103929. procedure TJSVideoConfiguration._SethasAlphaChannel(const aValue : Boolean);
  103930. begin
  103931. WriteJSPropertyBoolean('hasAlphaChannel',aValue);
  103932. end;
  103933. procedure TJSVideoConfiguration._SethdrMetadataType(const aValue : THdrMetadataType);
  103934. begin
  103935. WriteJSPropertyUnicodeString('hdrMetadataType',aValue);
  103936. end;
  103937. procedure TJSVideoConfiguration._SetcolorGamut(const aValue : TColorGamut);
  103938. begin
  103939. WriteJSPropertyUnicodeString('colorGamut',aValue);
  103940. end;
  103941. procedure TJSVideoConfiguration._SettransferFunction(const aValue : TTransferFunction);
  103942. begin
  103943. WriteJSPropertyUnicodeString('transferFunction',aValue);
  103944. end;
  103945. procedure TJSVideoConfiguration._SetscalabilityMode(const aValue : UnicodeString);
  103946. begin
  103947. WriteJSPropertyUnicodeString('scalabilityMode',aValue);
  103948. end;
  103949. class function TJSVideoConfiguration.JSClassName: UnicodeString;
  103950. begin
  103951. Result:='Object';
  103952. end;
  103953. class function TJSVideoConfiguration.Cast(const Intf: IJSObject): IJSVideoConfiguration;
  103954. begin
  103955. Result:=TJSVideoConfiguration.JOBCast(Intf);
  103956. end;
  103957. function TJSAudioConfiguration._GetcontentType: UnicodeString;
  103958. begin
  103959. Result:=ReadJSPropertyUnicodeString('contentType');
  103960. end;
  103961. function TJSAudioConfiguration._Getchannels: UnicodeString;
  103962. begin
  103963. Result:=ReadJSPropertyUnicodeString('channels');
  103964. end;
  103965. function TJSAudioConfiguration._Getbitrate: QWord;
  103966. begin
  103967. Result:=ReadJSPropertyInt64('bitrate');
  103968. end;
  103969. function TJSAudioConfiguration._Getsamplerate: Cardinal;
  103970. begin
  103971. Result:=ReadJSPropertyInt64('samplerate');
  103972. end;
  103973. procedure TJSAudioConfiguration._SetcontentType(const aValue : UnicodeString);
  103974. begin
  103975. WriteJSPropertyUnicodeString('contentType',aValue);
  103976. end;
  103977. procedure TJSAudioConfiguration._Setchannels(const aValue : UnicodeString);
  103978. begin
  103979. WriteJSPropertyUnicodeString('channels',aValue);
  103980. end;
  103981. procedure TJSAudioConfiguration._Setbitrate(const aValue : QWord);
  103982. begin
  103983. WriteJSPropertyDouble('bitrate',aValue);
  103984. end;
  103985. procedure TJSAudioConfiguration._Setsamplerate(const aValue : Cardinal);
  103986. begin
  103987. WriteJSPropertyDouble('samplerate',aValue);
  103988. end;
  103989. class function TJSAudioConfiguration.JSClassName: UnicodeString;
  103990. begin
  103991. Result:='Object';
  103992. end;
  103993. class function TJSAudioConfiguration.Cast(const Intf: IJSObject): IJSAudioConfiguration;
  103994. begin
  103995. Result:=TJSAudioConfiguration.JOBCast(Intf);
  103996. end;
  103997. function TJSMediaCapabilitiesInfo._Getsupported: Boolean;
  103998. begin
  103999. Result:=ReadJSPropertyBoolean('supported');
  104000. end;
  104001. function TJSMediaCapabilitiesInfo._Getsmooth: Boolean;
  104002. begin
  104003. Result:=ReadJSPropertyBoolean('smooth');
  104004. end;
  104005. function TJSMediaCapabilitiesInfo._GetpowerEfficient: Boolean;
  104006. begin
  104007. Result:=ReadJSPropertyBoolean('powerEfficient');
  104008. end;
  104009. class function TJSMediaCapabilitiesInfo.JSClassName: UnicodeString;
  104010. begin
  104011. Result:='MediaCapabilitiesInfo';
  104012. end;
  104013. class function TJSMediaCapabilitiesInfo.Cast(const Intf: IJSObject): IJSMediaCapabilitiesInfo;
  104014. begin
  104015. Result:=TJSMediaCapabilitiesInfo.JOBCast(Intf);
  104016. end;
  104017. function TJSMediaCapabilities.decodingInfo(const aConfiguration: TJSMediaDecodingConfiguration): IJSPromise; // Promise<MediaCapabilitiesInfo>
  104018. begin
  104019. Result:=InvokeJSObjectResult('decodingInfo',[aConfiguration],TJSPromise) as IJSPromise;
  104020. end;
  104021. function TJSMediaCapabilities.encodingInfo(const aConfiguration: TJSMediaEncodingConfiguration): IJSPromise; // Promise<MediaCapabilitiesInfo>
  104022. begin
  104023. Result:=InvokeJSObjectResult('encodingInfo',[aConfiguration],TJSPromise) as IJSPromise;
  104024. end;
  104025. class function TJSMediaCapabilities.JSClassName: UnicodeString;
  104026. begin
  104027. Result:='MediaCapabilities';
  104028. end;
  104029. class function TJSMediaCapabilities.Cast(const Intf: IJSObject): IJSMediaCapabilities;
  104030. begin
  104031. Result:=TJSMediaCapabilities.JOBCast(Intf);
  104032. end;
  104033. function TJSMediaCacheStreamDebugInfo._GetstreamLength: Int64;
  104034. begin
  104035. Result:=ReadJSPropertyInt64('streamLength');
  104036. end;
  104037. function TJSMediaCacheStreamDebugInfo._GetchannelOffset: Int64;
  104038. begin
  104039. Result:=ReadJSPropertyInt64('channelOffset');
  104040. end;
  104041. function TJSMediaCacheStreamDebugInfo._GetcacheSuspended: Boolean;
  104042. begin
  104043. Result:=ReadJSPropertyBoolean('cacheSuspended');
  104044. end;
  104045. function TJSMediaCacheStreamDebugInfo._GetchannelEnded: Boolean;
  104046. begin
  104047. Result:=ReadJSPropertyBoolean('channelEnded');
  104048. end;
  104049. function TJSMediaCacheStreamDebugInfo._GetloadID: LongInt;
  104050. begin
  104051. Result:=ReadJSPropertyLongInt('loadID');
  104052. end;
  104053. procedure TJSMediaCacheStreamDebugInfo._SetstreamLength(const aValue : Int64);
  104054. begin
  104055. WriteJSPropertyDouble('streamLength',aValue);
  104056. end;
  104057. procedure TJSMediaCacheStreamDebugInfo._SetchannelOffset(const aValue : Int64);
  104058. begin
  104059. WriteJSPropertyDouble('channelOffset',aValue);
  104060. end;
  104061. procedure TJSMediaCacheStreamDebugInfo._SetcacheSuspended(const aValue : Boolean);
  104062. begin
  104063. WriteJSPropertyBoolean('cacheSuspended',aValue);
  104064. end;
  104065. procedure TJSMediaCacheStreamDebugInfo._SetchannelEnded(const aValue : Boolean);
  104066. begin
  104067. WriteJSPropertyBoolean('channelEnded',aValue);
  104068. end;
  104069. procedure TJSMediaCacheStreamDebugInfo._SetloadID(const aValue : LongInt);
  104070. begin
  104071. WriteJSPropertyLongInt('loadID',aValue);
  104072. end;
  104073. class function TJSMediaCacheStreamDebugInfo.JSClassName: UnicodeString;
  104074. begin
  104075. Result:='Object';
  104076. end;
  104077. class function TJSMediaCacheStreamDebugInfo.Cast(const Intf: IJSObject): IJSMediaCacheStreamDebugInfo;
  104078. begin
  104079. Result:=TJSMediaCacheStreamDebugInfo.JOBCast(Intf);
  104080. end;
  104081. function TJSMediaResourceDebugInfo._GetcacheStream: TJSMediaCacheStreamDebugInfo;
  104082. begin
  104083. Result:=ReadJSPropertyObject('cacheStream',TJSMediaCacheStreamDebugInfo) as TJSMediaCacheStreamDebugInfo;
  104084. end;
  104085. procedure TJSMediaResourceDebugInfo._SetcacheStream(const aValue : TJSMediaCacheStreamDebugInfo);
  104086. begin
  104087. WriteJSPropertyObject('cacheStream',aValue);
  104088. end;
  104089. class function TJSMediaResourceDebugInfo.JSClassName: UnicodeString;
  104090. begin
  104091. Result:='Object';
  104092. end;
  104093. class function TJSMediaResourceDebugInfo.Cast(const Intf: IJSObject): IJSMediaResourceDebugInfo;
  104094. begin
  104095. Result:=TJSMediaResourceDebugInfo.JOBCast(Intf);
  104096. end;
  104097. function TJSMediaDecoderDebugInfo._Getinstance: UnicodeString;
  104098. begin
  104099. Result:=ReadJSPropertyUnicodeString('instance');
  104100. end;
  104101. function TJSMediaDecoderDebugInfo._Getchannels: Cardinal;
  104102. begin
  104103. Result:=ReadJSPropertyInt64('channels');
  104104. end;
  104105. function TJSMediaDecoderDebugInfo._Getrate: Cardinal;
  104106. begin
  104107. Result:=ReadJSPropertyInt64('rate');
  104108. end;
  104109. function TJSMediaDecoderDebugInfo._GethasAudio: Boolean;
  104110. begin
  104111. Result:=ReadJSPropertyBoolean('hasAudio');
  104112. end;
  104113. function TJSMediaDecoderDebugInfo._GethasVideo: Boolean;
  104114. begin
  104115. Result:=ReadJSPropertyBoolean('hasVideo');
  104116. end;
  104117. function TJSMediaDecoderDebugInfo._GetPlayState: UnicodeString;
  104118. begin
  104119. Result:=ReadJSPropertyUnicodeString('PlayState');
  104120. end;
  104121. function TJSMediaDecoderDebugInfo._GetcontainerType: UnicodeString;
  104122. begin
  104123. Result:=ReadJSPropertyUnicodeString('containerType');
  104124. end;
  104125. function TJSMediaDecoderDebugInfo._Getreader: TJSMediaFormatReaderDebugInfo;
  104126. begin
  104127. Result:=ReadJSPropertyObject('reader',TJSMediaFormatReaderDebugInfo) as TJSMediaFormatReaderDebugInfo;
  104128. end;
  104129. function TJSMediaDecoderDebugInfo._GetstateMachine: TJSMediaDecoderStateMachineDebugInfo;
  104130. begin
  104131. Result:=ReadJSPropertyObject('stateMachine',TJSMediaDecoderStateMachineDebugInfo) as TJSMediaDecoderStateMachineDebugInfo;
  104132. end;
  104133. function TJSMediaDecoderDebugInfo._Getresource: TJSMediaResourceDebugInfo;
  104134. begin
  104135. Result:=ReadJSPropertyObject('resource',TJSMediaResourceDebugInfo) as TJSMediaResourceDebugInfo;
  104136. end;
  104137. procedure TJSMediaDecoderDebugInfo._Setinstance(const aValue : UnicodeString);
  104138. begin
  104139. WriteJSPropertyUnicodeString('instance',aValue);
  104140. end;
  104141. procedure TJSMediaDecoderDebugInfo._Setchannels(const aValue : Cardinal);
  104142. begin
  104143. WriteJSPropertyDouble('channels',aValue);
  104144. end;
  104145. procedure TJSMediaDecoderDebugInfo._Setrate(const aValue : Cardinal);
  104146. begin
  104147. WriteJSPropertyDouble('rate',aValue);
  104148. end;
  104149. procedure TJSMediaDecoderDebugInfo._SethasAudio(const aValue : Boolean);
  104150. begin
  104151. WriteJSPropertyBoolean('hasAudio',aValue);
  104152. end;
  104153. procedure TJSMediaDecoderDebugInfo._SethasVideo(const aValue : Boolean);
  104154. begin
  104155. WriteJSPropertyBoolean('hasVideo',aValue);
  104156. end;
  104157. procedure TJSMediaDecoderDebugInfo._SetPlayState(const aValue : UnicodeString);
  104158. begin
  104159. WriteJSPropertyUnicodeString('PlayState',aValue);
  104160. end;
  104161. procedure TJSMediaDecoderDebugInfo._SetcontainerType(const aValue : UnicodeString);
  104162. begin
  104163. WriteJSPropertyUnicodeString('containerType',aValue);
  104164. end;
  104165. procedure TJSMediaDecoderDebugInfo._Setreader(const aValue : TJSMediaFormatReaderDebugInfo);
  104166. begin
  104167. WriteJSPropertyObject('reader',aValue);
  104168. end;
  104169. procedure TJSMediaDecoderDebugInfo._SetstateMachine(const aValue : TJSMediaDecoderStateMachineDebugInfo);
  104170. begin
  104171. WriteJSPropertyObject('stateMachine',aValue);
  104172. end;
  104173. procedure TJSMediaDecoderDebugInfo._Setresource(const aValue : TJSMediaResourceDebugInfo);
  104174. begin
  104175. WriteJSPropertyObject('resource',aValue);
  104176. end;
  104177. class function TJSMediaDecoderDebugInfo.JSClassName: UnicodeString;
  104178. begin
  104179. Result:='Object';
  104180. end;
  104181. class function TJSMediaDecoderDebugInfo.Cast(const Intf: IJSObject): IJSMediaDecoderDebugInfo;
  104182. begin
  104183. Result:=TJSMediaDecoderDebugInfo.JOBCast(Intf);
  104184. end;
  104185. function TJSAudioSinkDebugInfo._GetstartTime: Int64;
  104186. begin
  104187. Result:=ReadJSPropertyInt64('startTime');
  104188. end;
  104189. function TJSAudioSinkDebugInfo._GetlastGoodPosition: Int64;
  104190. begin
  104191. Result:=ReadJSPropertyInt64('lastGoodPosition');
  104192. end;
  104193. function TJSAudioSinkDebugInfo._GetisPlaying: Boolean;
  104194. begin
  104195. Result:=ReadJSPropertyBoolean('isPlaying');
  104196. end;
  104197. function TJSAudioSinkDebugInfo._GetisStarted: Boolean;
  104198. begin
  104199. Result:=ReadJSPropertyBoolean('isStarted');
  104200. end;
  104201. function TJSAudioSinkDebugInfo._GetaudioEnded: Boolean;
  104202. begin
  104203. Result:=ReadJSPropertyBoolean('audioEnded');
  104204. end;
  104205. function TJSAudioSinkDebugInfo._GetoutputRate: Cardinal;
  104206. begin
  104207. Result:=ReadJSPropertyInt64('outputRate');
  104208. end;
  104209. function TJSAudioSinkDebugInfo._Getwritten: Int64;
  104210. begin
  104211. Result:=ReadJSPropertyInt64('written');
  104212. end;
  104213. function TJSAudioSinkDebugInfo._GethasErrored: Boolean;
  104214. begin
  104215. Result:=ReadJSPropertyBoolean('hasErrored');
  104216. end;
  104217. function TJSAudioSinkDebugInfo._GetplaybackComplete: Boolean;
  104218. begin
  104219. Result:=ReadJSPropertyBoolean('playbackComplete');
  104220. end;
  104221. procedure TJSAudioSinkDebugInfo._SetstartTime(const aValue : Int64);
  104222. begin
  104223. WriteJSPropertyDouble('startTime',aValue);
  104224. end;
  104225. procedure TJSAudioSinkDebugInfo._SetlastGoodPosition(const aValue : Int64);
  104226. begin
  104227. WriteJSPropertyDouble('lastGoodPosition',aValue);
  104228. end;
  104229. procedure TJSAudioSinkDebugInfo._SetisPlaying(const aValue : Boolean);
  104230. begin
  104231. WriteJSPropertyBoolean('isPlaying',aValue);
  104232. end;
  104233. procedure TJSAudioSinkDebugInfo._SetisStarted(const aValue : Boolean);
  104234. begin
  104235. WriteJSPropertyBoolean('isStarted',aValue);
  104236. end;
  104237. procedure TJSAudioSinkDebugInfo._SetaudioEnded(const aValue : Boolean);
  104238. begin
  104239. WriteJSPropertyBoolean('audioEnded',aValue);
  104240. end;
  104241. procedure TJSAudioSinkDebugInfo._SetoutputRate(const aValue : Cardinal);
  104242. begin
  104243. WriteJSPropertyDouble('outputRate',aValue);
  104244. end;
  104245. procedure TJSAudioSinkDebugInfo._Setwritten(const aValue : Int64);
  104246. begin
  104247. WriteJSPropertyDouble('written',aValue);
  104248. end;
  104249. procedure TJSAudioSinkDebugInfo._SethasErrored(const aValue : Boolean);
  104250. begin
  104251. WriteJSPropertyBoolean('hasErrored',aValue);
  104252. end;
  104253. procedure TJSAudioSinkDebugInfo._SetplaybackComplete(const aValue : Boolean);
  104254. begin
  104255. WriteJSPropertyBoolean('playbackComplete',aValue);
  104256. end;
  104257. class function TJSAudioSinkDebugInfo.JSClassName: UnicodeString;
  104258. begin
  104259. Result:='Object';
  104260. end;
  104261. class function TJSAudioSinkDebugInfo.Cast(const Intf: IJSObject): IJSAudioSinkDebugInfo;
  104262. begin
  104263. Result:=TJSAudioSinkDebugInfo.JOBCast(Intf);
  104264. end;
  104265. function TJSAudioSinkWrapperDebugInfo._GetisPlaying: Boolean;
  104266. begin
  104267. Result:=ReadJSPropertyBoolean('isPlaying');
  104268. end;
  104269. function TJSAudioSinkWrapperDebugInfo._GetisStarted: Boolean;
  104270. begin
  104271. Result:=ReadJSPropertyBoolean('isStarted');
  104272. end;
  104273. function TJSAudioSinkWrapperDebugInfo._GetaudioEnded: Boolean;
  104274. begin
  104275. Result:=ReadJSPropertyBoolean('audioEnded');
  104276. end;
  104277. function TJSAudioSinkWrapperDebugInfo._GetaudioSink: TJSAudioSinkDebugInfo;
  104278. begin
  104279. Result:=ReadJSPropertyObject('audioSink',TJSAudioSinkDebugInfo) as TJSAudioSinkDebugInfo;
  104280. end;
  104281. procedure TJSAudioSinkWrapperDebugInfo._SetisPlaying(const aValue : Boolean);
  104282. begin
  104283. WriteJSPropertyBoolean('isPlaying',aValue);
  104284. end;
  104285. procedure TJSAudioSinkWrapperDebugInfo._SetisStarted(const aValue : Boolean);
  104286. begin
  104287. WriteJSPropertyBoolean('isStarted',aValue);
  104288. end;
  104289. procedure TJSAudioSinkWrapperDebugInfo._SetaudioEnded(const aValue : Boolean);
  104290. begin
  104291. WriteJSPropertyBoolean('audioEnded',aValue);
  104292. end;
  104293. procedure TJSAudioSinkWrapperDebugInfo._SetaudioSink(const aValue : TJSAudioSinkDebugInfo);
  104294. begin
  104295. WriteJSPropertyObject('audioSink',aValue);
  104296. end;
  104297. class function TJSAudioSinkWrapperDebugInfo.JSClassName: UnicodeString;
  104298. begin
  104299. Result:='Object';
  104300. end;
  104301. class function TJSAudioSinkWrapperDebugInfo.Cast(const Intf: IJSObject): IJSAudioSinkWrapperDebugInfo;
  104302. begin
  104303. Result:=TJSAudioSinkWrapperDebugInfo.JOBCast(Intf);
  104304. end;
  104305. function TJSVideoSinkDebugInfo._GetisStarted: Boolean;
  104306. begin
  104307. Result:=ReadJSPropertyBoolean('isStarted');
  104308. end;
  104309. function TJSVideoSinkDebugInfo._GetisPlaying: Boolean;
  104310. begin
  104311. Result:=ReadJSPropertyBoolean('isPlaying');
  104312. end;
  104313. function TJSVideoSinkDebugInfo._Getfinished: Boolean;
  104314. begin
  104315. Result:=ReadJSPropertyBoolean('finished');
  104316. end;
  104317. function TJSVideoSinkDebugInfo._Getsize: LongInt;
  104318. begin
  104319. Result:=ReadJSPropertyLongInt('size');
  104320. end;
  104321. function TJSVideoSinkDebugInfo._GetvideoFrameEndTime: Int64;
  104322. begin
  104323. Result:=ReadJSPropertyInt64('videoFrameEndTime');
  104324. end;
  104325. function TJSVideoSinkDebugInfo._GethasVideo: Boolean;
  104326. begin
  104327. Result:=ReadJSPropertyBoolean('hasVideo');
  104328. end;
  104329. function TJSVideoSinkDebugInfo._GetvideoSinkEndRequestExists: Boolean;
  104330. begin
  104331. Result:=ReadJSPropertyBoolean('videoSinkEndRequestExists');
  104332. end;
  104333. function TJSVideoSinkDebugInfo._GetendPromiseHolderIsEmpty: Boolean;
  104334. begin
  104335. Result:=ReadJSPropertyBoolean('endPromiseHolderIsEmpty');
  104336. end;
  104337. procedure TJSVideoSinkDebugInfo._SetisStarted(const aValue : Boolean);
  104338. begin
  104339. WriteJSPropertyBoolean('isStarted',aValue);
  104340. end;
  104341. procedure TJSVideoSinkDebugInfo._SetisPlaying(const aValue : Boolean);
  104342. begin
  104343. WriteJSPropertyBoolean('isPlaying',aValue);
  104344. end;
  104345. procedure TJSVideoSinkDebugInfo._Setfinished(const aValue : Boolean);
  104346. begin
  104347. WriteJSPropertyBoolean('finished',aValue);
  104348. end;
  104349. procedure TJSVideoSinkDebugInfo._Setsize(const aValue : LongInt);
  104350. begin
  104351. WriteJSPropertyLongInt('size',aValue);
  104352. end;
  104353. procedure TJSVideoSinkDebugInfo._SetvideoFrameEndTime(const aValue : Int64);
  104354. begin
  104355. WriteJSPropertyDouble('videoFrameEndTime',aValue);
  104356. end;
  104357. procedure TJSVideoSinkDebugInfo._SethasVideo(const aValue : Boolean);
  104358. begin
  104359. WriteJSPropertyBoolean('hasVideo',aValue);
  104360. end;
  104361. procedure TJSVideoSinkDebugInfo._SetvideoSinkEndRequestExists(const aValue : Boolean);
  104362. begin
  104363. WriteJSPropertyBoolean('videoSinkEndRequestExists',aValue);
  104364. end;
  104365. procedure TJSVideoSinkDebugInfo._SetendPromiseHolderIsEmpty(const aValue : Boolean);
  104366. begin
  104367. WriteJSPropertyBoolean('endPromiseHolderIsEmpty',aValue);
  104368. end;
  104369. class function TJSVideoSinkDebugInfo.JSClassName: UnicodeString;
  104370. begin
  104371. Result:='Object';
  104372. end;
  104373. class function TJSVideoSinkDebugInfo.Cast(const Intf: IJSObject): IJSVideoSinkDebugInfo;
  104374. begin
  104375. Result:=TJSVideoSinkDebugInfo.JOBCast(Intf);
  104376. end;
  104377. function TJSDecodedStreamDataDebugInfo._Getinstance: UnicodeString;
  104378. begin
  104379. Result:=ReadJSPropertyUnicodeString('instance');
  104380. end;
  104381. function TJSDecodedStreamDataDebugInfo._GetaudioFramesWritten: Int64;
  104382. begin
  104383. Result:=ReadJSPropertyInt64('audioFramesWritten');
  104384. end;
  104385. function TJSDecodedStreamDataDebugInfo._GetstreamAudioWritten: Int64;
  104386. begin
  104387. Result:=ReadJSPropertyInt64('streamAudioWritten');
  104388. end;
  104389. function TJSDecodedStreamDataDebugInfo._GetstreamVideoWritten: Int64;
  104390. begin
  104391. Result:=ReadJSPropertyInt64('streamVideoWritten');
  104392. end;
  104393. function TJSDecodedStreamDataDebugInfo._GetnextAudioTime: Int64;
  104394. begin
  104395. Result:=ReadJSPropertyInt64('nextAudioTime');
  104396. end;
  104397. function TJSDecodedStreamDataDebugInfo._GetlastVideoStartTime: Int64;
  104398. begin
  104399. Result:=ReadJSPropertyInt64('lastVideoStartTime');
  104400. end;
  104401. function TJSDecodedStreamDataDebugInfo._GetlastVideoEndTime: Int64;
  104402. begin
  104403. Result:=ReadJSPropertyInt64('lastVideoEndTime');
  104404. end;
  104405. function TJSDecodedStreamDataDebugInfo._GethaveSentFinishAudio: Boolean;
  104406. begin
  104407. Result:=ReadJSPropertyBoolean('haveSentFinishAudio');
  104408. end;
  104409. function TJSDecodedStreamDataDebugInfo._GethaveSentFinishVideo: Boolean;
  104410. begin
  104411. Result:=ReadJSPropertyBoolean('haveSentFinishVideo');
  104412. end;
  104413. procedure TJSDecodedStreamDataDebugInfo._Setinstance(const aValue : UnicodeString);
  104414. begin
  104415. WriteJSPropertyUnicodeString('instance',aValue);
  104416. end;
  104417. procedure TJSDecodedStreamDataDebugInfo._SetaudioFramesWritten(const aValue : Int64);
  104418. begin
  104419. WriteJSPropertyDouble('audioFramesWritten',aValue);
  104420. end;
  104421. procedure TJSDecodedStreamDataDebugInfo._SetstreamAudioWritten(const aValue : Int64);
  104422. begin
  104423. WriteJSPropertyDouble('streamAudioWritten',aValue);
  104424. end;
  104425. procedure TJSDecodedStreamDataDebugInfo._SetstreamVideoWritten(const aValue : Int64);
  104426. begin
  104427. WriteJSPropertyDouble('streamVideoWritten',aValue);
  104428. end;
  104429. procedure TJSDecodedStreamDataDebugInfo._SetnextAudioTime(const aValue : Int64);
  104430. begin
  104431. WriteJSPropertyDouble('nextAudioTime',aValue);
  104432. end;
  104433. procedure TJSDecodedStreamDataDebugInfo._SetlastVideoStartTime(const aValue : Int64);
  104434. begin
  104435. WriteJSPropertyDouble('lastVideoStartTime',aValue);
  104436. end;
  104437. procedure TJSDecodedStreamDataDebugInfo._SetlastVideoEndTime(const aValue : Int64);
  104438. begin
  104439. WriteJSPropertyDouble('lastVideoEndTime',aValue);
  104440. end;
  104441. procedure TJSDecodedStreamDataDebugInfo._SethaveSentFinishAudio(const aValue : Boolean);
  104442. begin
  104443. WriteJSPropertyBoolean('haveSentFinishAudio',aValue);
  104444. end;
  104445. procedure TJSDecodedStreamDataDebugInfo._SethaveSentFinishVideo(const aValue : Boolean);
  104446. begin
  104447. WriteJSPropertyBoolean('haveSentFinishVideo',aValue);
  104448. end;
  104449. class function TJSDecodedStreamDataDebugInfo.JSClassName: UnicodeString;
  104450. begin
  104451. Result:='Object';
  104452. end;
  104453. class function TJSDecodedStreamDataDebugInfo.Cast(const Intf: IJSObject): IJSDecodedStreamDataDebugInfo;
  104454. begin
  104455. Result:=TJSDecodedStreamDataDebugInfo.JOBCast(Intf);
  104456. end;
  104457. function TJSDecodedStreamDebugInfo._Getinstance: UnicodeString;
  104458. begin
  104459. Result:=ReadJSPropertyUnicodeString('instance');
  104460. end;
  104461. function TJSDecodedStreamDebugInfo._GetstartTime: Int64;
  104462. begin
  104463. Result:=ReadJSPropertyInt64('startTime');
  104464. end;
  104465. function TJSDecodedStreamDebugInfo._GetlastOutputTime: Int64;
  104466. begin
  104467. Result:=ReadJSPropertyInt64('lastOutputTime');
  104468. end;
  104469. function TJSDecodedStreamDebugInfo._Getplaying: LongInt;
  104470. begin
  104471. Result:=ReadJSPropertyLongInt('playing');
  104472. end;
  104473. function TJSDecodedStreamDebugInfo._GetlastAudio: Int64;
  104474. begin
  104475. Result:=ReadJSPropertyInt64('lastAudio');
  104476. end;
  104477. function TJSDecodedStreamDebugInfo._GetaudioQueueFinished: Boolean;
  104478. begin
  104479. Result:=ReadJSPropertyBoolean('audioQueueFinished');
  104480. end;
  104481. function TJSDecodedStreamDebugInfo._GetaudioQueueSize: LongInt;
  104482. begin
  104483. Result:=ReadJSPropertyLongInt('audioQueueSize');
  104484. end;
  104485. function TJSDecodedStreamDebugInfo._Getdata: TJSDecodedStreamDataDebugInfo;
  104486. begin
  104487. Result:=ReadJSPropertyObject('data',TJSDecodedStreamDataDebugInfo) as TJSDecodedStreamDataDebugInfo;
  104488. end;
  104489. procedure TJSDecodedStreamDebugInfo._Setinstance(const aValue : UnicodeString);
  104490. begin
  104491. WriteJSPropertyUnicodeString('instance',aValue);
  104492. end;
  104493. procedure TJSDecodedStreamDebugInfo._SetstartTime(const aValue : Int64);
  104494. begin
  104495. WriteJSPropertyDouble('startTime',aValue);
  104496. end;
  104497. procedure TJSDecodedStreamDebugInfo._SetlastOutputTime(const aValue : Int64);
  104498. begin
  104499. WriteJSPropertyDouble('lastOutputTime',aValue);
  104500. end;
  104501. procedure TJSDecodedStreamDebugInfo._Setplaying(const aValue : LongInt);
  104502. begin
  104503. WriteJSPropertyLongInt('playing',aValue);
  104504. end;
  104505. procedure TJSDecodedStreamDebugInfo._SetlastAudio(const aValue : Int64);
  104506. begin
  104507. WriteJSPropertyDouble('lastAudio',aValue);
  104508. end;
  104509. procedure TJSDecodedStreamDebugInfo._SetaudioQueueFinished(const aValue : Boolean);
  104510. begin
  104511. WriteJSPropertyBoolean('audioQueueFinished',aValue);
  104512. end;
  104513. procedure TJSDecodedStreamDebugInfo._SetaudioQueueSize(const aValue : LongInt);
  104514. begin
  104515. WriteJSPropertyLongInt('audioQueueSize',aValue);
  104516. end;
  104517. procedure TJSDecodedStreamDebugInfo._Setdata(const aValue : TJSDecodedStreamDataDebugInfo);
  104518. begin
  104519. WriteJSPropertyObject('data',aValue);
  104520. end;
  104521. class function TJSDecodedStreamDebugInfo.JSClassName: UnicodeString;
  104522. begin
  104523. Result:='Object';
  104524. end;
  104525. class function TJSDecodedStreamDebugInfo.Cast(const Intf: IJSObject): IJSDecodedStreamDebugInfo;
  104526. begin
  104527. Result:=TJSDecodedStreamDebugInfo.JOBCast(Intf);
  104528. end;
  104529. function TJSMediaSinkDebugInfo._GetaudioSinkWrapper: TJSAudioSinkWrapperDebugInfo;
  104530. begin
  104531. Result:=ReadJSPropertyObject('audioSinkWrapper',TJSAudioSinkWrapperDebugInfo) as TJSAudioSinkWrapperDebugInfo;
  104532. end;
  104533. function TJSMediaSinkDebugInfo._GetvideoSink: TJSVideoSinkDebugInfo;
  104534. begin
  104535. Result:=ReadJSPropertyObject('videoSink',TJSVideoSinkDebugInfo) as TJSVideoSinkDebugInfo;
  104536. end;
  104537. function TJSMediaSinkDebugInfo._GetdecodedStream: TJSDecodedStreamDebugInfo;
  104538. begin
  104539. Result:=ReadJSPropertyObject('decodedStream',TJSDecodedStreamDebugInfo) as TJSDecodedStreamDebugInfo;
  104540. end;
  104541. procedure TJSMediaSinkDebugInfo._SetaudioSinkWrapper(const aValue : TJSAudioSinkWrapperDebugInfo);
  104542. begin
  104543. WriteJSPropertyObject('audioSinkWrapper',aValue);
  104544. end;
  104545. procedure TJSMediaSinkDebugInfo._SetvideoSink(const aValue : TJSVideoSinkDebugInfo);
  104546. begin
  104547. WriteJSPropertyObject('videoSink',aValue);
  104548. end;
  104549. procedure TJSMediaSinkDebugInfo._SetdecodedStream(const aValue : TJSDecodedStreamDebugInfo);
  104550. begin
  104551. WriteJSPropertyObject('decodedStream',aValue);
  104552. end;
  104553. class function TJSMediaSinkDebugInfo.JSClassName: UnicodeString;
  104554. begin
  104555. Result:='Object';
  104556. end;
  104557. class function TJSMediaSinkDebugInfo.Cast(const Intf: IJSObject): IJSMediaSinkDebugInfo;
  104558. begin
  104559. Result:=TJSMediaSinkDebugInfo.JOBCast(Intf);
  104560. end;
  104561. function TJSMediaDecoderStateMachineDecodingStateDebugInfo._GetisPrerolling: Boolean;
  104562. begin
  104563. Result:=ReadJSPropertyBoolean('isPrerolling');
  104564. end;
  104565. procedure TJSMediaDecoderStateMachineDecodingStateDebugInfo._SetisPrerolling(const aValue : Boolean);
  104566. begin
  104567. WriteJSPropertyBoolean('isPrerolling',aValue);
  104568. end;
  104569. class function TJSMediaDecoderStateMachineDecodingStateDebugInfo.JSClassName: UnicodeString;
  104570. begin
  104571. Result:='Object';
  104572. end;
  104573. class function TJSMediaDecoderStateMachineDecodingStateDebugInfo.Cast(const Intf: IJSObject): IJSMediaDecoderStateMachineDecodingStateDebugInfo;
  104574. begin
  104575. Result:=TJSMediaDecoderStateMachineDecodingStateDebugInfo.JOBCast(Intf);
  104576. end;
  104577. function TJSMediaDecoderStateMachineDebugInfo._Getduration: Int64;
  104578. begin
  104579. Result:=ReadJSPropertyInt64('duration');
  104580. end;
  104581. function TJSMediaDecoderStateMachineDebugInfo._GetmediaTime: Int64;
  104582. begin
  104583. Result:=ReadJSPropertyInt64('mediaTime');
  104584. end;
  104585. function TJSMediaDecoderStateMachineDebugInfo._Getclock: Int64;
  104586. begin
  104587. Result:=ReadJSPropertyInt64('clock');
  104588. end;
  104589. function TJSMediaDecoderStateMachineDebugInfo._Getstate: UnicodeString;
  104590. begin
  104591. Result:=ReadJSPropertyUnicodeString('state');
  104592. end;
  104593. function TJSMediaDecoderStateMachineDebugInfo._GetplayState: LongInt;
  104594. begin
  104595. Result:=ReadJSPropertyLongInt('playState');
  104596. end;
  104597. function TJSMediaDecoderStateMachineDebugInfo._GetsentFirstFrameLoadedEvent: Boolean;
  104598. begin
  104599. Result:=ReadJSPropertyBoolean('sentFirstFrameLoadedEvent');
  104600. end;
  104601. function TJSMediaDecoderStateMachineDebugInfo._GetisPlaying: Boolean;
  104602. begin
  104603. Result:=ReadJSPropertyBoolean('isPlaying');
  104604. end;
  104605. function TJSMediaDecoderStateMachineDebugInfo._GetaudioRequestStatus: UnicodeString;
  104606. begin
  104607. Result:=ReadJSPropertyUnicodeString('audioRequestStatus');
  104608. end;
  104609. function TJSMediaDecoderStateMachineDebugInfo._GetvideoRequestStatus: UnicodeString;
  104610. begin
  104611. Result:=ReadJSPropertyUnicodeString('videoRequestStatus');
  104612. end;
  104613. function TJSMediaDecoderStateMachineDebugInfo._GetdecodedAudioEndTime: Int64;
  104614. begin
  104615. Result:=ReadJSPropertyInt64('decodedAudioEndTime');
  104616. end;
  104617. function TJSMediaDecoderStateMachineDebugInfo._GetdecodedVideoEndTime: Int64;
  104618. begin
  104619. Result:=ReadJSPropertyInt64('decodedVideoEndTime');
  104620. end;
  104621. function TJSMediaDecoderStateMachineDebugInfo._GetaudioCompleted: Boolean;
  104622. begin
  104623. Result:=ReadJSPropertyBoolean('audioCompleted');
  104624. end;
  104625. function TJSMediaDecoderStateMachineDebugInfo._GetvideoCompleted: Boolean;
  104626. begin
  104627. Result:=ReadJSPropertyBoolean('videoCompleted');
  104628. end;
  104629. function TJSMediaDecoderStateMachineDebugInfo._GetstateObj: TJSMediaDecoderStateMachineDecodingStateDebugInfo;
  104630. begin
  104631. Result:=ReadJSPropertyObject('stateObj',TJSMediaDecoderStateMachineDecodingStateDebugInfo) as TJSMediaDecoderStateMachineDecodingStateDebugInfo;
  104632. end;
  104633. function TJSMediaDecoderStateMachineDebugInfo._GetmediaSink: TJSMediaSinkDebugInfo;
  104634. begin
  104635. Result:=ReadJSPropertyObject('mediaSink',TJSMediaSinkDebugInfo) as TJSMediaSinkDebugInfo;
  104636. end;
  104637. function TJSMediaDecoderStateMachineDebugInfo._GettotalBufferingTimeMs: Double;
  104638. begin
  104639. Result:=ReadJSPropertyDouble('totalBufferingTimeMs');
  104640. end;
  104641. procedure TJSMediaDecoderStateMachineDebugInfo._Setduration(const aValue : Int64);
  104642. begin
  104643. WriteJSPropertyDouble('duration',aValue);
  104644. end;
  104645. procedure TJSMediaDecoderStateMachineDebugInfo._SetmediaTime(const aValue : Int64);
  104646. begin
  104647. WriteJSPropertyDouble('mediaTime',aValue);
  104648. end;
  104649. procedure TJSMediaDecoderStateMachineDebugInfo._Setclock(const aValue : Int64);
  104650. begin
  104651. WriteJSPropertyDouble('clock',aValue);
  104652. end;
  104653. procedure TJSMediaDecoderStateMachineDebugInfo._Setstate(const aValue : UnicodeString);
  104654. begin
  104655. WriteJSPropertyUnicodeString('state',aValue);
  104656. end;
  104657. procedure TJSMediaDecoderStateMachineDebugInfo._SetplayState(const aValue : LongInt);
  104658. begin
  104659. WriteJSPropertyLongInt('playState',aValue);
  104660. end;
  104661. procedure TJSMediaDecoderStateMachineDebugInfo._SetsentFirstFrameLoadedEvent(const aValue : Boolean);
  104662. begin
  104663. WriteJSPropertyBoolean('sentFirstFrameLoadedEvent',aValue);
  104664. end;
  104665. procedure TJSMediaDecoderStateMachineDebugInfo._SetisPlaying(const aValue : Boolean);
  104666. begin
  104667. WriteJSPropertyBoolean('isPlaying',aValue);
  104668. end;
  104669. procedure TJSMediaDecoderStateMachineDebugInfo._SetaudioRequestStatus(const aValue : UnicodeString);
  104670. begin
  104671. WriteJSPropertyUnicodeString('audioRequestStatus',aValue);
  104672. end;
  104673. procedure TJSMediaDecoderStateMachineDebugInfo._SetvideoRequestStatus(const aValue : UnicodeString);
  104674. begin
  104675. WriteJSPropertyUnicodeString('videoRequestStatus',aValue);
  104676. end;
  104677. procedure TJSMediaDecoderStateMachineDebugInfo._SetdecodedAudioEndTime(const aValue : Int64);
  104678. begin
  104679. WriteJSPropertyDouble('decodedAudioEndTime',aValue);
  104680. end;
  104681. procedure TJSMediaDecoderStateMachineDebugInfo._SetdecodedVideoEndTime(const aValue : Int64);
  104682. begin
  104683. WriteJSPropertyDouble('decodedVideoEndTime',aValue);
  104684. end;
  104685. procedure TJSMediaDecoderStateMachineDebugInfo._SetaudioCompleted(const aValue : Boolean);
  104686. begin
  104687. WriteJSPropertyBoolean('audioCompleted',aValue);
  104688. end;
  104689. procedure TJSMediaDecoderStateMachineDebugInfo._SetvideoCompleted(const aValue : Boolean);
  104690. begin
  104691. WriteJSPropertyBoolean('videoCompleted',aValue);
  104692. end;
  104693. procedure TJSMediaDecoderStateMachineDebugInfo._SetstateObj(const aValue : TJSMediaDecoderStateMachineDecodingStateDebugInfo);
  104694. begin
  104695. WriteJSPropertyObject('stateObj',aValue);
  104696. end;
  104697. procedure TJSMediaDecoderStateMachineDebugInfo._SetmediaSink(const aValue : TJSMediaSinkDebugInfo);
  104698. begin
  104699. WriteJSPropertyObject('mediaSink',aValue);
  104700. end;
  104701. procedure TJSMediaDecoderStateMachineDebugInfo._SettotalBufferingTimeMs(const aValue : Double);
  104702. begin
  104703. WriteJSPropertyDouble('totalBufferingTimeMs',aValue);
  104704. end;
  104705. class function TJSMediaDecoderStateMachineDebugInfo.JSClassName: UnicodeString;
  104706. begin
  104707. Result:='Object';
  104708. end;
  104709. class function TJSMediaDecoderStateMachineDebugInfo.Cast(const Intf: IJSObject): IJSMediaDecoderStateMachineDebugInfo;
  104710. begin
  104711. Result:=TJSMediaDecoderStateMachineDebugInfo.JOBCast(Intf);
  104712. end;
  104713. function TJSMediaStateDebugInfo._GetneedInput: Boolean;
  104714. begin
  104715. Result:=ReadJSPropertyBoolean('needInput');
  104716. end;
  104717. function TJSMediaStateDebugInfo._GethasPromise: Boolean;
  104718. begin
  104719. Result:=ReadJSPropertyBoolean('hasPromise');
  104720. end;
  104721. function TJSMediaStateDebugInfo._GetwaitingPromise: Boolean;
  104722. begin
  104723. Result:=ReadJSPropertyBoolean('waitingPromise');
  104724. end;
  104725. function TJSMediaStateDebugInfo._GethasDemuxRequest: Boolean;
  104726. begin
  104727. Result:=ReadJSPropertyBoolean('hasDemuxRequest');
  104728. end;
  104729. function TJSMediaStateDebugInfo._GetdemuxQueueSize: LongInt;
  104730. begin
  104731. Result:=ReadJSPropertyLongInt('demuxQueueSize');
  104732. end;
  104733. function TJSMediaStateDebugInfo._GethasDecoder: Boolean;
  104734. begin
  104735. Result:=ReadJSPropertyBoolean('hasDecoder');
  104736. end;
  104737. function TJSMediaStateDebugInfo._GettimeTreshold: Double;
  104738. begin
  104739. Result:=ReadJSPropertyDouble('timeTreshold');
  104740. end;
  104741. function TJSMediaStateDebugInfo._GettimeTresholdHasSeeked: Boolean;
  104742. begin
  104743. Result:=ReadJSPropertyBoolean('timeTresholdHasSeeked');
  104744. end;
  104745. function TJSMediaStateDebugInfo._GetnumSamplesInput: Int64;
  104746. begin
  104747. Result:=ReadJSPropertyInt64('numSamplesInput');
  104748. end;
  104749. function TJSMediaStateDebugInfo._GetnumSamplesOutput: Int64;
  104750. begin
  104751. Result:=ReadJSPropertyInt64('numSamplesOutput');
  104752. end;
  104753. function TJSMediaStateDebugInfo._GetqueueSize: LongInt;
  104754. begin
  104755. Result:=ReadJSPropertyLongInt('queueSize');
  104756. end;
  104757. function TJSMediaStateDebugInfo._Getpending: LongInt;
  104758. begin
  104759. Result:=ReadJSPropertyLongInt('pending');
  104760. end;
  104761. function TJSMediaStateDebugInfo._GetwaitingForData: Boolean;
  104762. begin
  104763. Result:=ReadJSPropertyBoolean('waitingForData');
  104764. end;
  104765. function TJSMediaStateDebugInfo._GetdemuxEOS: LongInt;
  104766. begin
  104767. Result:=ReadJSPropertyLongInt('demuxEOS');
  104768. end;
  104769. function TJSMediaStateDebugInfo._GetdrainState: LongInt;
  104770. begin
  104771. Result:=ReadJSPropertyLongInt('drainState');
  104772. end;
  104773. function TJSMediaStateDebugInfo._GetwaitingForKey: Boolean;
  104774. begin
  104775. Result:=ReadJSPropertyBoolean('waitingForKey');
  104776. end;
  104777. function TJSMediaStateDebugInfo._GetlastStreamSourceID: Int64;
  104778. begin
  104779. Result:=ReadJSPropertyInt64('lastStreamSourceID');
  104780. end;
  104781. procedure TJSMediaStateDebugInfo._SetneedInput(const aValue : Boolean);
  104782. begin
  104783. WriteJSPropertyBoolean('needInput',aValue);
  104784. end;
  104785. procedure TJSMediaStateDebugInfo._SethasPromise(const aValue : Boolean);
  104786. begin
  104787. WriteJSPropertyBoolean('hasPromise',aValue);
  104788. end;
  104789. procedure TJSMediaStateDebugInfo._SetwaitingPromise(const aValue : Boolean);
  104790. begin
  104791. WriteJSPropertyBoolean('waitingPromise',aValue);
  104792. end;
  104793. procedure TJSMediaStateDebugInfo._SethasDemuxRequest(const aValue : Boolean);
  104794. begin
  104795. WriteJSPropertyBoolean('hasDemuxRequest',aValue);
  104796. end;
  104797. procedure TJSMediaStateDebugInfo._SetdemuxQueueSize(const aValue : LongInt);
  104798. begin
  104799. WriteJSPropertyLongInt('demuxQueueSize',aValue);
  104800. end;
  104801. procedure TJSMediaStateDebugInfo._SethasDecoder(const aValue : Boolean);
  104802. begin
  104803. WriteJSPropertyBoolean('hasDecoder',aValue);
  104804. end;
  104805. procedure TJSMediaStateDebugInfo._SettimeTreshold(const aValue : Double);
  104806. begin
  104807. WriteJSPropertyDouble('timeTreshold',aValue);
  104808. end;
  104809. procedure TJSMediaStateDebugInfo._SettimeTresholdHasSeeked(const aValue : Boolean);
  104810. begin
  104811. WriteJSPropertyBoolean('timeTresholdHasSeeked',aValue);
  104812. end;
  104813. procedure TJSMediaStateDebugInfo._SetnumSamplesInput(const aValue : Int64);
  104814. begin
  104815. WriteJSPropertyDouble('numSamplesInput',aValue);
  104816. end;
  104817. procedure TJSMediaStateDebugInfo._SetnumSamplesOutput(const aValue : Int64);
  104818. begin
  104819. WriteJSPropertyDouble('numSamplesOutput',aValue);
  104820. end;
  104821. procedure TJSMediaStateDebugInfo._SetqueueSize(const aValue : LongInt);
  104822. begin
  104823. WriteJSPropertyLongInt('queueSize',aValue);
  104824. end;
  104825. procedure TJSMediaStateDebugInfo._Setpending(const aValue : LongInt);
  104826. begin
  104827. WriteJSPropertyLongInt('pending',aValue);
  104828. end;
  104829. procedure TJSMediaStateDebugInfo._SetwaitingForData(const aValue : Boolean);
  104830. begin
  104831. WriteJSPropertyBoolean('waitingForData',aValue);
  104832. end;
  104833. procedure TJSMediaStateDebugInfo._SetdemuxEOS(const aValue : LongInt);
  104834. begin
  104835. WriteJSPropertyLongInt('demuxEOS',aValue);
  104836. end;
  104837. procedure TJSMediaStateDebugInfo._SetdrainState(const aValue : LongInt);
  104838. begin
  104839. WriteJSPropertyLongInt('drainState',aValue);
  104840. end;
  104841. procedure TJSMediaStateDebugInfo._SetwaitingForKey(const aValue : Boolean);
  104842. begin
  104843. WriteJSPropertyBoolean('waitingForKey',aValue);
  104844. end;
  104845. procedure TJSMediaStateDebugInfo._SetlastStreamSourceID(const aValue : Int64);
  104846. begin
  104847. WriteJSPropertyDouble('lastStreamSourceID',aValue);
  104848. end;
  104849. class function TJSMediaStateDebugInfo.JSClassName: UnicodeString;
  104850. begin
  104851. Result:='Object';
  104852. end;
  104853. class function TJSMediaStateDebugInfo.Cast(const Intf: IJSObject): IJSMediaStateDebugInfo;
  104854. begin
  104855. Result:=TJSMediaStateDebugInfo.JOBCast(Intf);
  104856. end;
  104857. function TJSMediaFrameStats._GetdroppedDecodedFrames: Int64;
  104858. begin
  104859. Result:=ReadJSPropertyInt64('droppedDecodedFrames');
  104860. end;
  104861. function TJSMediaFrameStats._GetdroppedSinkFrames: Int64;
  104862. begin
  104863. Result:=ReadJSPropertyInt64('droppedSinkFrames');
  104864. end;
  104865. function TJSMediaFrameStats._GetdroppedCompositorFrames: Int64;
  104866. begin
  104867. Result:=ReadJSPropertyInt64('droppedCompositorFrames');
  104868. end;
  104869. procedure TJSMediaFrameStats._SetdroppedDecodedFrames(const aValue : Int64);
  104870. begin
  104871. WriteJSPropertyDouble('droppedDecodedFrames',aValue);
  104872. end;
  104873. procedure TJSMediaFrameStats._SetdroppedSinkFrames(const aValue : Int64);
  104874. begin
  104875. WriteJSPropertyDouble('droppedSinkFrames',aValue);
  104876. end;
  104877. procedure TJSMediaFrameStats._SetdroppedCompositorFrames(const aValue : Int64);
  104878. begin
  104879. WriteJSPropertyDouble('droppedCompositorFrames',aValue);
  104880. end;
  104881. class function TJSMediaFrameStats.JSClassName: UnicodeString;
  104882. begin
  104883. Result:='Object';
  104884. end;
  104885. class function TJSMediaFrameStats.Cast(const Intf: IJSObject): IJSMediaFrameStats;
  104886. begin
  104887. Result:=TJSMediaFrameStats.JOBCast(Intf);
  104888. end;
  104889. function TJSMediaFormatReaderDebugInfo._GetvideoType: UnicodeString;
  104890. begin
  104891. Result:=ReadJSPropertyUnicodeString('videoType');
  104892. end;
  104893. function TJSMediaFormatReaderDebugInfo._GetvideoDecoderName: UnicodeString;
  104894. begin
  104895. Result:=ReadJSPropertyUnicodeString('videoDecoderName');
  104896. end;
  104897. function TJSMediaFormatReaderDebugInfo._GetvideoWidth: LongInt;
  104898. begin
  104899. Result:=ReadJSPropertyLongInt('videoWidth');
  104900. end;
  104901. function TJSMediaFormatReaderDebugInfo._GetvideoHeight: LongInt;
  104902. begin
  104903. Result:=ReadJSPropertyLongInt('videoHeight');
  104904. end;
  104905. function TJSMediaFormatReaderDebugInfo._GetvideoRate: Double;
  104906. begin
  104907. Result:=ReadJSPropertyDouble('videoRate');
  104908. end;
  104909. function TJSMediaFormatReaderDebugInfo._GetaudioType: UnicodeString;
  104910. begin
  104911. Result:=ReadJSPropertyUnicodeString('audioType');
  104912. end;
  104913. function TJSMediaFormatReaderDebugInfo._GetaudioDecoderName: UnicodeString;
  104914. begin
  104915. Result:=ReadJSPropertyUnicodeString('audioDecoderName');
  104916. end;
  104917. function TJSMediaFormatReaderDebugInfo._GetvideoHardwareAccelerated: Boolean;
  104918. begin
  104919. Result:=ReadJSPropertyBoolean('videoHardwareAccelerated');
  104920. end;
  104921. function TJSMediaFormatReaderDebugInfo._GetvideoNumSamplesOutputTotal: Int64;
  104922. begin
  104923. Result:=ReadJSPropertyInt64('videoNumSamplesOutputTotal');
  104924. end;
  104925. function TJSMediaFormatReaderDebugInfo._GetvideoNumSamplesSkippedTotal: Int64;
  104926. begin
  104927. Result:=ReadJSPropertyInt64('videoNumSamplesSkippedTotal');
  104928. end;
  104929. function TJSMediaFormatReaderDebugInfo._GetaudioChannels: LongInt;
  104930. begin
  104931. Result:=ReadJSPropertyLongInt('audioChannels');
  104932. end;
  104933. function TJSMediaFormatReaderDebugInfo._GetaudioRate: Double;
  104934. begin
  104935. Result:=ReadJSPropertyDouble('audioRate');
  104936. end;
  104937. function TJSMediaFormatReaderDebugInfo._GetaudioFramesDecoded: Int64;
  104938. begin
  104939. Result:=ReadJSPropertyInt64('audioFramesDecoded');
  104940. end;
  104941. function TJSMediaFormatReaderDebugInfo._GetaudioState: TJSMediaStateDebugInfo;
  104942. begin
  104943. Result:=ReadJSPropertyObject('audioState',TJSMediaStateDebugInfo) as TJSMediaStateDebugInfo;
  104944. end;
  104945. function TJSMediaFormatReaderDebugInfo._GetvideoState: TJSMediaStateDebugInfo;
  104946. begin
  104947. Result:=ReadJSPropertyObject('videoState',TJSMediaStateDebugInfo) as TJSMediaStateDebugInfo;
  104948. end;
  104949. function TJSMediaFormatReaderDebugInfo._GetframeStats: TJSMediaFrameStats;
  104950. begin
  104951. Result:=ReadJSPropertyObject('frameStats',TJSMediaFrameStats) as TJSMediaFrameStats;
  104952. end;
  104953. function TJSMediaFormatReaderDebugInfo._GettotalReadMetadataTimeMs: Double;
  104954. begin
  104955. Result:=ReadJSPropertyDouble('totalReadMetadataTimeMs');
  104956. end;
  104957. function TJSMediaFormatReaderDebugInfo._GettotalWaitingForVideoDataTimeMs: Double;
  104958. begin
  104959. Result:=ReadJSPropertyDouble('totalWaitingForVideoDataTimeMs');
  104960. end;
  104961. procedure TJSMediaFormatReaderDebugInfo._SetvideoType(const aValue : UnicodeString);
  104962. begin
  104963. WriteJSPropertyUnicodeString('videoType',aValue);
  104964. end;
  104965. procedure TJSMediaFormatReaderDebugInfo._SetvideoDecoderName(const aValue : UnicodeString);
  104966. begin
  104967. WriteJSPropertyUnicodeString('videoDecoderName',aValue);
  104968. end;
  104969. procedure TJSMediaFormatReaderDebugInfo._SetvideoWidth(const aValue : LongInt);
  104970. begin
  104971. WriteJSPropertyLongInt('videoWidth',aValue);
  104972. end;
  104973. procedure TJSMediaFormatReaderDebugInfo._SetvideoHeight(const aValue : LongInt);
  104974. begin
  104975. WriteJSPropertyLongInt('videoHeight',aValue);
  104976. end;
  104977. procedure TJSMediaFormatReaderDebugInfo._SetvideoRate(const aValue : Double);
  104978. begin
  104979. WriteJSPropertyDouble('videoRate',aValue);
  104980. end;
  104981. procedure TJSMediaFormatReaderDebugInfo._SetaudioType(const aValue : UnicodeString);
  104982. begin
  104983. WriteJSPropertyUnicodeString('audioType',aValue);
  104984. end;
  104985. procedure TJSMediaFormatReaderDebugInfo._SetaudioDecoderName(const aValue : UnicodeString);
  104986. begin
  104987. WriteJSPropertyUnicodeString('audioDecoderName',aValue);
  104988. end;
  104989. procedure TJSMediaFormatReaderDebugInfo._SetvideoHardwareAccelerated(const aValue : Boolean);
  104990. begin
  104991. WriteJSPropertyBoolean('videoHardwareAccelerated',aValue);
  104992. end;
  104993. procedure TJSMediaFormatReaderDebugInfo._SetvideoNumSamplesOutputTotal(const aValue : Int64);
  104994. begin
  104995. WriteJSPropertyDouble('videoNumSamplesOutputTotal',aValue);
  104996. end;
  104997. procedure TJSMediaFormatReaderDebugInfo._SetvideoNumSamplesSkippedTotal(const aValue : Int64);
  104998. begin
  104999. WriteJSPropertyDouble('videoNumSamplesSkippedTotal',aValue);
  105000. end;
  105001. procedure TJSMediaFormatReaderDebugInfo._SetaudioChannels(const aValue : LongInt);
  105002. begin
  105003. WriteJSPropertyLongInt('audioChannels',aValue);
  105004. end;
  105005. procedure TJSMediaFormatReaderDebugInfo._SetaudioRate(const aValue : Double);
  105006. begin
  105007. WriteJSPropertyDouble('audioRate',aValue);
  105008. end;
  105009. procedure TJSMediaFormatReaderDebugInfo._SetaudioFramesDecoded(const aValue : Int64);
  105010. begin
  105011. WriteJSPropertyDouble('audioFramesDecoded',aValue);
  105012. end;
  105013. procedure TJSMediaFormatReaderDebugInfo._SetaudioState(const aValue : TJSMediaStateDebugInfo);
  105014. begin
  105015. WriteJSPropertyObject('audioState',aValue);
  105016. end;
  105017. procedure TJSMediaFormatReaderDebugInfo._SetvideoState(const aValue : TJSMediaStateDebugInfo);
  105018. begin
  105019. WriteJSPropertyObject('videoState',aValue);
  105020. end;
  105021. procedure TJSMediaFormatReaderDebugInfo._SetframeStats(const aValue : TJSMediaFrameStats);
  105022. begin
  105023. WriteJSPropertyObject('frameStats',aValue);
  105024. end;
  105025. procedure TJSMediaFormatReaderDebugInfo._SettotalReadMetadataTimeMs(const aValue : Double);
  105026. begin
  105027. WriteJSPropertyDouble('totalReadMetadataTimeMs',aValue);
  105028. end;
  105029. procedure TJSMediaFormatReaderDebugInfo._SettotalWaitingForVideoDataTimeMs(const aValue : Double);
  105030. begin
  105031. WriteJSPropertyDouble('totalWaitingForVideoDataTimeMs',aValue);
  105032. end;
  105033. class function TJSMediaFormatReaderDebugInfo.JSClassName: UnicodeString;
  105034. begin
  105035. Result:='Object';
  105036. end;
  105037. class function TJSMediaFormatReaderDebugInfo.Cast(const Intf: IJSObject): IJSMediaFormatReaderDebugInfo;
  105038. begin
  105039. Result:=TJSMediaFormatReaderDebugInfo.JOBCast(Intf);
  105040. end;
  105041. function TJSBufferRange._Getstart: Double;
  105042. begin
  105043. Result:=ReadJSPropertyDouble('start');
  105044. end;
  105045. function TJSBufferRange._Getend_: Double;
  105046. begin
  105047. Result:=ReadJSPropertyDouble('end');
  105048. end;
  105049. procedure TJSBufferRange._Setstart(const aValue : Double);
  105050. begin
  105051. WriteJSPropertyDouble('start',aValue);
  105052. end;
  105053. procedure TJSBufferRange._Setend_(const aValue : Double);
  105054. begin
  105055. WriteJSPropertyDouble('end',aValue);
  105056. end;
  105057. class function TJSBufferRange.JSClassName: UnicodeString;
  105058. begin
  105059. Result:='Object';
  105060. end;
  105061. class function TJSBufferRange.Cast(const Intf: IJSObject): IJSBufferRange;
  105062. begin
  105063. Result:=TJSBufferRange.JOBCast(Intf);
  105064. end;
  105065. function TJSTrackBuffersManagerDebugInfo._Gettype_: UnicodeString;
  105066. begin
  105067. Result:=ReadJSPropertyUnicodeString('type');
  105068. end;
  105069. function TJSTrackBuffersManagerDebugInfo._GetnextSampleTime: Double;
  105070. begin
  105071. Result:=ReadJSPropertyDouble('nextSampleTime');
  105072. end;
  105073. function TJSTrackBuffersManagerDebugInfo._GetnumSamples: LongInt;
  105074. begin
  105075. Result:=ReadJSPropertyLongInt('numSamples');
  105076. end;
  105077. function TJSTrackBuffersManagerDebugInfo._GetbufferSize: LongInt;
  105078. begin
  105079. Result:=ReadJSPropertyLongInt('bufferSize');
  105080. end;
  105081. function TJSTrackBuffersManagerDebugInfo._Getevictable: LongInt;
  105082. begin
  105083. Result:=ReadJSPropertyLongInt('evictable');
  105084. end;
  105085. function TJSTrackBuffersManagerDebugInfo._GetnextGetSampleIndex: LongInt;
  105086. begin
  105087. Result:=ReadJSPropertyLongInt('nextGetSampleIndex');
  105088. end;
  105089. function TJSTrackBuffersManagerDebugInfo._GetnextInsertionIndex: LongInt;
  105090. begin
  105091. Result:=ReadJSPropertyLongInt('nextInsertionIndex');
  105092. end;
  105093. function TJSTrackBuffersManagerDebugInfo._Getranges: TJSBufferRangeDynArray;
  105094. begin
  105095. Result:=ReadJSPropertyObject('ranges',TJSArray) as TJSBufferRangeDynArray;
  105096. end;
  105097. procedure TJSTrackBuffersManagerDebugInfo._Settype_(const aValue : UnicodeString);
  105098. begin
  105099. WriteJSPropertyUnicodeString('type',aValue);
  105100. end;
  105101. procedure TJSTrackBuffersManagerDebugInfo._SetnextSampleTime(const aValue : Double);
  105102. begin
  105103. WriteJSPropertyDouble('nextSampleTime',aValue);
  105104. end;
  105105. procedure TJSTrackBuffersManagerDebugInfo._SetnumSamples(const aValue : LongInt);
  105106. begin
  105107. WriteJSPropertyLongInt('numSamples',aValue);
  105108. end;
  105109. procedure TJSTrackBuffersManagerDebugInfo._SetbufferSize(const aValue : LongInt);
  105110. begin
  105111. WriteJSPropertyLongInt('bufferSize',aValue);
  105112. end;
  105113. procedure TJSTrackBuffersManagerDebugInfo._Setevictable(const aValue : LongInt);
  105114. begin
  105115. WriteJSPropertyLongInt('evictable',aValue);
  105116. end;
  105117. procedure TJSTrackBuffersManagerDebugInfo._SetnextGetSampleIndex(const aValue : LongInt);
  105118. begin
  105119. WriteJSPropertyLongInt('nextGetSampleIndex',aValue);
  105120. end;
  105121. procedure TJSTrackBuffersManagerDebugInfo._SetnextInsertionIndex(const aValue : LongInt);
  105122. begin
  105123. WriteJSPropertyLongInt('nextInsertionIndex',aValue);
  105124. end;
  105125. procedure TJSTrackBuffersManagerDebugInfo._Setranges(const aValue : TJSBufferRangeDynArray);
  105126. begin
  105127. WriteJSPropertyObject('ranges',aValue);
  105128. end;
  105129. class function TJSTrackBuffersManagerDebugInfo.JSClassName: UnicodeString;
  105130. begin
  105131. Result:='Object';
  105132. end;
  105133. class function TJSTrackBuffersManagerDebugInfo.Cast(const Intf: IJSObject): IJSTrackBuffersManagerDebugInfo;
  105134. begin
  105135. Result:=TJSTrackBuffersManagerDebugInfo.JOBCast(Intf);
  105136. end;
  105137. function TJSMediaSourceDemuxerDebugInfo._GetaudioTrack: TJSTrackBuffersManagerDebugInfo;
  105138. begin
  105139. Result:=ReadJSPropertyObject('audioTrack',TJSTrackBuffersManagerDebugInfo) as TJSTrackBuffersManagerDebugInfo;
  105140. end;
  105141. function TJSMediaSourceDemuxerDebugInfo._GetvideoTrack: TJSTrackBuffersManagerDebugInfo;
  105142. begin
  105143. Result:=ReadJSPropertyObject('videoTrack',TJSTrackBuffersManagerDebugInfo) as TJSTrackBuffersManagerDebugInfo;
  105144. end;
  105145. procedure TJSMediaSourceDemuxerDebugInfo._SetaudioTrack(const aValue : TJSTrackBuffersManagerDebugInfo);
  105146. begin
  105147. WriteJSPropertyObject('audioTrack',aValue);
  105148. end;
  105149. procedure TJSMediaSourceDemuxerDebugInfo._SetvideoTrack(const aValue : TJSTrackBuffersManagerDebugInfo);
  105150. begin
  105151. WriteJSPropertyObject('videoTrack',aValue);
  105152. end;
  105153. class function TJSMediaSourceDemuxerDebugInfo.JSClassName: UnicodeString;
  105154. begin
  105155. Result:='Object';
  105156. end;
  105157. class function TJSMediaSourceDemuxerDebugInfo.Cast(const Intf: IJSObject): IJSMediaSourceDemuxerDebugInfo;
  105158. begin
  105159. Result:=TJSMediaSourceDemuxerDebugInfo.JOBCast(Intf);
  105160. end;
  105161. function TJSMediaSourceDecoderDebugInfo._Getreader: TJSMediaFormatReaderDebugInfo;
  105162. begin
  105163. Result:=ReadJSPropertyObject('reader',TJSMediaFormatReaderDebugInfo) as TJSMediaFormatReaderDebugInfo;
  105164. end;
  105165. function TJSMediaSourceDecoderDebugInfo._Getdemuxer: TJSMediaSourceDemuxerDebugInfo;
  105166. begin
  105167. Result:=ReadJSPropertyObject('demuxer',TJSMediaSourceDemuxerDebugInfo) as TJSMediaSourceDemuxerDebugInfo;
  105168. end;
  105169. procedure TJSMediaSourceDecoderDebugInfo._Setreader(const aValue : TJSMediaFormatReaderDebugInfo);
  105170. begin
  105171. WriteJSPropertyObject('reader',aValue);
  105172. end;
  105173. procedure TJSMediaSourceDecoderDebugInfo._Setdemuxer(const aValue : TJSMediaSourceDemuxerDebugInfo);
  105174. begin
  105175. WriteJSPropertyObject('demuxer',aValue);
  105176. end;
  105177. class function TJSMediaSourceDecoderDebugInfo.JSClassName: UnicodeString;
  105178. begin
  105179. Result:='Object';
  105180. end;
  105181. class function TJSMediaSourceDecoderDebugInfo.Cast(const Intf: IJSObject): IJSMediaSourceDecoderDebugInfo;
  105182. begin
  105183. Result:=TJSMediaSourceDecoderDebugInfo.JOBCast(Intf);
  105184. end;
  105185. function TJSEMEDebugInfo._GetkeySystem: UnicodeString;
  105186. begin
  105187. Result:=ReadJSPropertyUnicodeString('keySystem');
  105188. end;
  105189. function TJSEMEDebugInfo._GetsessionsInfo: UnicodeString;
  105190. begin
  105191. Result:=ReadJSPropertyUnicodeString('sessionsInfo');
  105192. end;
  105193. procedure TJSEMEDebugInfo._SetkeySystem(const aValue : UnicodeString);
  105194. begin
  105195. WriteJSPropertyUnicodeString('keySystem',aValue);
  105196. end;
  105197. procedure TJSEMEDebugInfo._SetsessionsInfo(const aValue : UnicodeString);
  105198. begin
  105199. WriteJSPropertyUnicodeString('sessionsInfo',aValue);
  105200. end;
  105201. class function TJSEMEDebugInfo.JSClassName: UnicodeString;
  105202. begin
  105203. Result:='Object';
  105204. end;
  105205. class function TJSEMEDebugInfo.Cast(const Intf: IJSObject): IJSEMEDebugInfo;
  105206. begin
  105207. Result:=TJSEMEDebugInfo.JOBCast(Intf);
  105208. end;
  105209. function TJSHTMLMediaElementDebugInfo._GetcompositorDroppedFrames: Cardinal;
  105210. begin
  105211. Result:=ReadJSPropertyInt64('compositorDroppedFrames');
  105212. end;
  105213. function TJSHTMLMediaElementDebugInfo._GetEMEInfo: TJSEMEDebugInfo;
  105214. begin
  105215. Result:=ReadJSPropertyObject('EMEInfo',TJSEMEDebugInfo) as TJSEMEDebugInfo;
  105216. end;
  105217. function TJSHTMLMediaElementDebugInfo._Getdecoder: TJSMediaDecoderDebugInfo;
  105218. begin
  105219. Result:=ReadJSPropertyObject('decoder',TJSMediaDecoderDebugInfo) as TJSMediaDecoderDebugInfo;
  105220. end;
  105221. procedure TJSHTMLMediaElementDebugInfo._SetcompositorDroppedFrames(const aValue : Cardinal);
  105222. begin
  105223. WriteJSPropertyDouble('compositorDroppedFrames',aValue);
  105224. end;
  105225. procedure TJSHTMLMediaElementDebugInfo._SetEMEInfo(const aValue : TJSEMEDebugInfo);
  105226. begin
  105227. WriteJSPropertyObject('EMEInfo',aValue);
  105228. end;
  105229. procedure TJSHTMLMediaElementDebugInfo._Setdecoder(const aValue : TJSMediaDecoderDebugInfo);
  105230. begin
  105231. WriteJSPropertyObject('decoder',aValue);
  105232. end;
  105233. class function TJSHTMLMediaElementDebugInfo.JSClassName: UnicodeString;
  105234. begin
  105235. Result:='Object';
  105236. end;
  105237. class function TJSHTMLMediaElementDebugInfo.Cast(const Intf: IJSObject): IJSHTMLMediaElementDebugInfo;
  105238. begin
  105239. Result:=TJSHTMLMediaElementDebugInfo.JOBCast(Intf);
  105240. end;
  105241. function TJSMediaDeviceInfo._GetdeviceId: UnicodeString;
  105242. begin
  105243. Result:=ReadJSPropertyUnicodeString('deviceId');
  105244. end;
  105245. function TJSMediaDeviceInfo._Getkind: TMediaDeviceKind;
  105246. begin
  105247. Result:=ReadJSPropertyUnicodeString('kind');
  105248. end;
  105249. function TJSMediaDeviceInfo._Getlabel_: UnicodeString;
  105250. begin
  105251. Result:=ReadJSPropertyUnicodeString('label');
  105252. end;
  105253. function TJSMediaDeviceInfo._GetgroupId: UnicodeString;
  105254. begin
  105255. Result:=ReadJSPropertyUnicodeString('groupId');
  105256. end;
  105257. function TJSMediaDeviceInfo.toJSON: IJSObject;
  105258. begin
  105259. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  105260. end;
  105261. class function TJSMediaDeviceInfo.JSClassName: UnicodeString;
  105262. begin
  105263. Result:='MediaDeviceInfo';
  105264. end;
  105265. class function TJSMediaDeviceInfo.Cast(const Intf: IJSObject): IJSMediaDeviceInfo;
  105266. begin
  105267. Result:=TJSMediaDeviceInfo.JOBCast(Intf);
  105268. end;
  105269. function TJSMediaDevices._Getondevicechange: TEventHandler;
  105270. begin
  105271. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondevicechange')));
  105272. end;
  105273. procedure TJSMediaDevices._Setondevicechange(const aValue : TEventHandler);
  105274. begin
  105275. WriteJSPropertyMethod('ondevicechange',TMethod(aValue));
  105276. end;
  105277. function TJSMediaDevices.getSupportedConstraints: TJSMediaTrackSupportedConstraints;
  105278. begin
  105279. Result:=InvokeJSObjectResult('getSupportedConstraints',[],TJSMediaTrackSupportedConstraints) as TJSMediaTrackSupportedConstraints;
  105280. end;
  105281. function TJSMediaDevices.enumerateDevices: IJSPromise; // Promise<sequence>
  105282. begin
  105283. Result:=InvokeJSObjectResult('enumerateDevices',[],TJSPromise) as IJSPromise;
  105284. end;
  105285. function TJSMediaDevices.getUserMedia(const aConstraints: TJSMediaStreamConstraints): IJSPromise; // Promise<MediaStream>
  105286. begin
  105287. Result:=InvokeJSObjectResult('getUserMedia',[aConstraints],TJSPromise) as IJSPromise;
  105288. end;
  105289. function TJSMediaDevices.getUserMedia: IJSPromise; // Promise<MediaStream>
  105290. begin
  105291. Result:=InvokeJSObjectResult('getUserMedia',[],TJSPromise) as IJSPromise;
  105292. end;
  105293. function TJSMediaDevices.getDisplayMedia(const aConstraints: TJSDisplayMediaStreamConstraints): IJSPromise; // Promise<MediaStream>
  105294. begin
  105295. Result:=InvokeJSObjectResult('getDisplayMedia',[aConstraints],TJSPromise) as IJSPromise;
  105296. end;
  105297. function TJSMediaDevices.getDisplayMedia: IJSPromise; // Promise<MediaStream>
  105298. begin
  105299. Result:=InvokeJSObjectResult('getDisplayMedia',[],TJSPromise) as IJSPromise;
  105300. end;
  105301. function TJSMediaDevices.selectAudioOutput(const aOptions: TJSAudioOutputOptions): IJSPromise; // Promise<MediaDeviceInfo>
  105302. begin
  105303. Result:=InvokeJSObjectResult('selectAudioOutput',[aOptions],TJSPromise) as IJSPromise;
  105304. end;
  105305. function TJSMediaDevices.selectAudioOutput: IJSPromise; // Promise<MediaDeviceInfo>
  105306. begin
  105307. Result:=InvokeJSObjectResult('selectAudioOutput',[],TJSPromise) as IJSPromise;
  105308. end;
  105309. class function TJSMediaDevices.JSClassName: UnicodeString;
  105310. begin
  105311. Result:='MediaDevices';
  105312. end;
  105313. class function TJSMediaDevices.Cast(const Intf: IJSObject): IJSMediaDevices;
  105314. begin
  105315. Result:=TJSMediaDevices.JOBCast(Intf);
  105316. end;
  105317. function TJSAudioOutputOptions._GetdeviceId: UnicodeString;
  105318. begin
  105319. Result:=ReadJSPropertyUnicodeString('deviceId');
  105320. end;
  105321. procedure TJSAudioOutputOptions._SetdeviceId(const aValue : UnicodeString);
  105322. begin
  105323. WriteJSPropertyUnicodeString('deviceId',aValue);
  105324. end;
  105325. class function TJSAudioOutputOptions.JSClassName: UnicodeString;
  105326. begin
  105327. Result:='Object';
  105328. end;
  105329. class function TJSAudioOutputOptions.Cast(const Intf: IJSObject): IJSAudioOutputOptions;
  105330. begin
  105331. Result:=TJSAudioOutputOptions.JOBCast(Intf);
  105332. end;
  105333. function TJSMediaElementAudioSourceOptions._GetmediaElement: IJSHTMLMediaElement;
  105334. begin
  105335. Result:=ReadJSPropertyObject('mediaElement',TJSHTMLMediaElement) as IJSHTMLMediaElement;
  105336. end;
  105337. procedure TJSMediaElementAudioSourceOptions._SetmediaElement(const aValue : IJSHTMLMediaElement);
  105338. begin
  105339. WriteJSPropertyObject('mediaElement',aValue);
  105340. end;
  105341. class function TJSMediaElementAudioSourceOptions.JSClassName: UnicodeString;
  105342. begin
  105343. Result:='Object';
  105344. end;
  105345. class function TJSMediaElementAudioSourceOptions.Cast(const Intf: IJSObject): IJSMediaElementAudioSourceOptions;
  105346. begin
  105347. Result:=TJSMediaElementAudioSourceOptions.JOBCast(Intf);
  105348. end;
  105349. function TJSMediaElementAudioSourceNode._GetmediaElement: IJSHTMLMediaElement;
  105350. begin
  105351. Result:=ReadJSPropertyObject('mediaElement',TJSHTMLMediaElement) as IJSHTMLMediaElement;
  105352. end;
  105353. constructor TJSMediaElementAudioSourceNode.Create(aContext: IJSAudioContext; const aOptions: TJSMediaElementAudioSourceOptions);
  105354. begin
  105355. JOBCreate([aContext,aOptions]);
  105356. end;
  105357. class function TJSMediaElementAudioSourceNode.JSClassName: UnicodeString;
  105358. begin
  105359. Result:='MediaElementAudioSourceNode';
  105360. end;
  105361. class function TJSMediaElementAudioSourceNode.Cast(const Intf: IJSObject): IJSMediaElementAudioSourceNode;
  105362. begin
  105363. Result:=TJSMediaElementAudioSourceNode.JOBCast(Intf);
  105364. end;
  105365. function TJSMediaEncryptedEvent._GetinitDataType: UnicodeString;
  105366. begin
  105367. Result:=ReadJSPropertyUnicodeString('initDataType');
  105368. end;
  105369. function TJSMediaEncryptedEvent._GetinitData: IJSArrayBuffer;
  105370. begin
  105371. Result:=ReadJSPropertyObject('initData',TJSArrayBuffer) as IJSArrayBuffer;
  105372. end;
  105373. constructor TJSMediaEncryptedEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaKeyNeededEventInit);
  105374. begin
  105375. JOBCreate([aType_,aEventInitDict]);
  105376. end;
  105377. constructor TJSMediaEncryptedEvent.Create(const aType_: UnicodeString);
  105378. begin
  105379. JOBCreate([aType_]);
  105380. end;
  105381. class function TJSMediaEncryptedEvent.JSClassName: UnicodeString;
  105382. begin
  105383. Result:='MediaEncryptedEvent';
  105384. end;
  105385. class function TJSMediaEncryptedEvent.Cast(const Intf: IJSObject): IJSMediaEncryptedEvent;
  105386. begin
  105387. Result:=TJSMediaEncryptedEvent.JOBCast(Intf);
  105388. end;
  105389. function TJSMediaKeyNeededEventInit._GetinitDataType: UnicodeString;
  105390. begin
  105391. Result:=ReadJSPropertyUnicodeString('initDataType');
  105392. end;
  105393. function TJSMediaKeyNeededEventInit._GetinitData: IJSArrayBuffer;
  105394. begin
  105395. Result:=ReadJSPropertyObject('initData',TJSArrayBuffer) as IJSArrayBuffer;
  105396. end;
  105397. procedure TJSMediaKeyNeededEventInit._SetinitDataType(const aValue : UnicodeString);
  105398. begin
  105399. WriteJSPropertyUnicodeString('initDataType',aValue);
  105400. end;
  105401. procedure TJSMediaKeyNeededEventInit._SetinitData(const aValue : IJSArrayBuffer);
  105402. begin
  105403. WriteJSPropertyObject('initData',aValue);
  105404. end;
  105405. class function TJSMediaKeyNeededEventInit.JSClassName: UnicodeString;
  105406. begin
  105407. Result:='Object';
  105408. end;
  105409. class function TJSMediaKeyNeededEventInit.Cast(const Intf: IJSObject): IJSMediaKeyNeededEventInit;
  105410. begin
  105411. Result:=TJSMediaKeyNeededEventInit.JOBCast(Intf);
  105412. end;
  105413. function TJSMediaError._Getcode: Word;
  105414. begin
  105415. Result:=ReadJSPropertyLongInt('code');
  105416. end;
  105417. function TJSMediaError._Getmessage: UnicodeString;
  105418. begin
  105419. Result:=ReadJSPropertyUnicodeString('message');
  105420. end;
  105421. class function TJSMediaError.JSClassName: UnicodeString;
  105422. begin
  105423. Result:='MediaError';
  105424. end;
  105425. class function TJSMediaError.Cast(const Intf: IJSObject): IJSMediaError;
  105426. begin
  105427. Result:=TJSMediaError.JOBCast(Intf);
  105428. end;
  105429. function TJSMediaKeyError._GetsystemCode: Cardinal;
  105430. begin
  105431. Result:=ReadJSPropertyInt64('systemCode');
  105432. end;
  105433. class function TJSMediaKeyError.JSClassName: UnicodeString;
  105434. begin
  105435. Result:='MediaKeyError';
  105436. end;
  105437. class function TJSMediaKeyError.Cast(const Intf: IJSObject): IJSMediaKeyError;
  105438. begin
  105439. Result:=TJSMediaKeyError.JOBCast(Intf);
  105440. end;
  105441. function TJSMediaKeyMessageEvent._GetmessageType: TMediaKeyMessageType;
  105442. begin
  105443. Result:=ReadJSPropertyUnicodeString('messageType');
  105444. end;
  105445. function TJSMediaKeyMessageEvent._Getmessage: IJSArrayBuffer;
  105446. begin
  105447. Result:=ReadJSPropertyObject('message',TJSArrayBuffer) as IJSArrayBuffer;
  105448. end;
  105449. constructor TJSMediaKeyMessageEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaKeyMessageEventInit);
  105450. begin
  105451. JOBCreate([aType_,aEventInitDict]);
  105452. end;
  105453. class function TJSMediaKeyMessageEvent.JSClassName: UnicodeString;
  105454. begin
  105455. Result:='MediaKeyMessageEvent';
  105456. end;
  105457. class function TJSMediaKeyMessageEvent.Cast(const Intf: IJSObject): IJSMediaKeyMessageEvent;
  105458. begin
  105459. Result:=TJSMediaKeyMessageEvent.JOBCast(Intf);
  105460. end;
  105461. function TJSMediaKeyMessageEventInit._GetmessageType: TMediaKeyMessageType;
  105462. begin
  105463. Result:=ReadJSPropertyUnicodeString('messageType');
  105464. end;
  105465. function TJSMediaKeyMessageEventInit._Getmessage: IJSArrayBuffer;
  105466. begin
  105467. Result:=ReadJSPropertyObject('message',TJSArrayBuffer) as IJSArrayBuffer;
  105468. end;
  105469. procedure TJSMediaKeyMessageEventInit._SetmessageType(const aValue : TMediaKeyMessageType);
  105470. begin
  105471. WriteJSPropertyUnicodeString('messageType',aValue);
  105472. end;
  105473. procedure TJSMediaKeyMessageEventInit._Setmessage(const aValue : IJSArrayBuffer);
  105474. begin
  105475. WriteJSPropertyObject('message',aValue);
  105476. end;
  105477. class function TJSMediaKeyMessageEventInit.JSClassName: UnicodeString;
  105478. begin
  105479. Result:='Object';
  105480. end;
  105481. class function TJSMediaKeyMessageEventInit.Cast(const Intf: IJSObject): IJSMediaKeyMessageEventInit;
  105482. begin
  105483. Result:=TJSMediaKeyMessageEventInit.JOBCast(Intf);
  105484. end;
  105485. function TJSMediaKeysPolicy._GetminHdcpVersion: THDCPVersion;
  105486. begin
  105487. Result:=ReadJSPropertyUnicodeString('minHdcpVersion');
  105488. end;
  105489. procedure TJSMediaKeysPolicy._SetminHdcpVersion(const aValue : THDCPVersion);
  105490. begin
  105491. WriteJSPropertyUnicodeString('minHdcpVersion',aValue);
  105492. end;
  105493. class function TJSMediaKeysPolicy.JSClassName: UnicodeString;
  105494. begin
  105495. Result:='Object';
  105496. end;
  105497. class function TJSMediaKeysPolicy.Cast(const Intf: IJSObject): IJSMediaKeysPolicy;
  105498. begin
  105499. Result:=TJSMediaKeysPolicy.JOBCast(Intf);
  105500. end;
  105501. function TJSMediaKeys._GetkeySystem: UnicodeString;
  105502. begin
  105503. Result:=ReadJSPropertyUnicodeString('keySystem');
  105504. end;
  105505. function TJSMediaKeys.createSession(aSessionType: TMediaKeySessionType): IJSMediaKeySession;
  105506. begin
  105507. Result:=InvokeJSObjectResult('createSession',[aSessionType],TJSMediaKeySession) as IJSMediaKeySession;
  105508. end;
  105509. function TJSMediaKeys.createSession: IJSMediaKeySession;
  105510. begin
  105511. Result:=InvokeJSObjectResult('createSession',[],TJSMediaKeySession) as IJSMediaKeySession;
  105512. end;
  105513. function TJSMediaKeys.setServerCertificate(aServerCertificate: IJSBufferSource): IJSPromise; // Promise<undefined>
  105514. begin
  105515. Result:=InvokeJSObjectResult('setServerCertificate',[aServerCertificate],TJSPromise) as IJSPromise;
  105516. end;
  105517. function TJSMediaKeys.getStatusForPolicy(const aPolicy: TJSMediaKeysPolicy): IJSPromise; // Promise<MediaKeyStatus>
  105518. begin
  105519. Result:=InvokeJSObjectResult('getStatusForPolicy',[aPolicy],TJSPromise) as IJSPromise;
  105520. end;
  105521. function TJSMediaKeys.getStatusForPolicy: IJSPromise; // Promise<MediaKeyStatus>
  105522. begin
  105523. Result:=InvokeJSObjectResult('getStatusForPolicy',[],TJSPromise) as IJSPromise;
  105524. end;
  105525. class function TJSMediaKeys.JSClassName: UnicodeString;
  105526. begin
  105527. Result:='MediaKeys';
  105528. end;
  105529. class function TJSMediaKeys.Cast(const Intf: IJSObject): IJSMediaKeys;
  105530. begin
  105531. Result:=TJSMediaKeys.JOBCast(Intf);
  105532. end;
  105533. function TJSMediaKeySession._Geterror: IJSMediaKeyError;
  105534. begin
  105535. Result:=ReadJSPropertyObject('error',TJSMediaKeyError) as IJSMediaKeyError;
  105536. end;
  105537. function TJSMediaKeySession._GetsessionId: UnicodeString;
  105538. begin
  105539. Result:=ReadJSPropertyUnicodeString('sessionId');
  105540. end;
  105541. function TJSMediaKeySession._Getexpiration: Double;
  105542. begin
  105543. Result:=ReadJSPropertyDouble('expiration');
  105544. end;
  105545. function TJSMediaKeySession._Getclosed: IJSPromise;
  105546. begin
  105547. Result:=ReadJSPropertyObject('closed',TJSPromise) as IJSPromise;
  105548. end;
  105549. function TJSMediaKeySession._GetkeyStatuses: IJSMediaKeyStatusMap;
  105550. begin
  105551. Result:=ReadJSPropertyObject('keyStatuses',TJSMediaKeyStatusMap) as IJSMediaKeyStatusMap;
  105552. end;
  105553. function TJSMediaKeySession._Getonkeystatuseschange: TEventHandler;
  105554. begin
  105555. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeystatuseschange')));
  105556. end;
  105557. function TJSMediaKeySession._Getonmessage: TEventHandler;
  105558. begin
  105559. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  105560. end;
  105561. procedure TJSMediaKeySession._Setonkeystatuseschange(const aValue : TEventHandler);
  105562. begin
  105563. WriteJSPropertyMethod('onkeystatuseschange',TMethod(aValue));
  105564. end;
  105565. procedure TJSMediaKeySession._Setonmessage(const aValue : TEventHandler);
  105566. begin
  105567. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  105568. end;
  105569. function TJSMediaKeySession.generateRequest(const aInitDataType: UnicodeString; aInitData: IJSBufferSource): IJSPromise; // Promise<undefined>
  105570. begin
  105571. Result:=InvokeJSObjectResult('generateRequest',[aInitDataType,aInitData],TJSPromise) as IJSPromise;
  105572. end;
  105573. function TJSMediaKeySession.load(const aSessionId: UnicodeString): IJSPromise; // Promise<boolean>
  105574. begin
  105575. Result:=InvokeJSObjectResult('load',[aSessionId],TJSPromise) as IJSPromise;
  105576. end;
  105577. function TJSMediaKeySession.update(aResponse: IJSBufferSource): IJSPromise; // Promise<undefined>
  105578. begin
  105579. Result:=InvokeJSObjectResult('update',[aResponse],TJSPromise) as IJSPromise;
  105580. end;
  105581. function TJSMediaKeySession.close: IJSPromise; // Promise<undefined>
  105582. begin
  105583. Result:=InvokeJSObjectResult('close',[],TJSPromise) as IJSPromise;
  105584. end;
  105585. function TJSMediaKeySession.remove: IJSPromise; // Promise<undefined>
  105586. begin
  105587. Result:=InvokeJSObjectResult('remove',[],TJSPromise) as IJSPromise;
  105588. end;
  105589. class function TJSMediaKeySession.JSClassName: UnicodeString;
  105590. begin
  105591. Result:='MediaKeySession';
  105592. end;
  105593. class function TJSMediaKeySession.Cast(const Intf: IJSObject): IJSMediaKeySession;
  105594. begin
  105595. Result:=TJSMediaKeySession.JOBCast(Intf);
  105596. end;
  105597. function TJSRequestMediaKeySystemAccessNotification._GetkeySystem: UnicodeString;
  105598. begin
  105599. Result:=ReadJSPropertyUnicodeString('keySystem');
  105600. end;
  105601. function TJSRequestMediaKeySystemAccessNotification._Getstatus: TMediaKeySystemStatus;
  105602. begin
  105603. Result:=ReadJSPropertyUnicodeString('status');
  105604. end;
  105605. procedure TJSRequestMediaKeySystemAccessNotification._SetkeySystem(const aValue : UnicodeString);
  105606. begin
  105607. WriteJSPropertyUnicodeString('keySystem',aValue);
  105608. end;
  105609. procedure TJSRequestMediaKeySystemAccessNotification._Setstatus(const aValue : TMediaKeySystemStatus);
  105610. begin
  105611. WriteJSPropertyUnicodeString('status',aValue);
  105612. end;
  105613. class function TJSRequestMediaKeySystemAccessNotification.JSClassName: UnicodeString;
  105614. begin
  105615. Result:='Object';
  105616. end;
  105617. class function TJSRequestMediaKeySystemAccessNotification.Cast(const Intf: IJSObject): IJSRequestMediaKeySystemAccessNotification;
  105618. begin
  105619. Result:=TJSRequestMediaKeySystemAccessNotification.JOBCast(Intf);
  105620. end;
  105621. function TJSMediaKeyStatusMap._Getsize: Cardinal;
  105622. begin
  105623. Result:=ReadJSPropertyInt64('size');
  105624. end;
  105625. function TJSMediaKeyStatusMap.has(aKeyId: IJSBufferSource): Boolean;
  105626. begin
  105627. Result:=InvokeJSBooleanResult('has',[aKeyId]);
  105628. end;
  105629. function TJSMediaKeyStatusMap.get(aKeyId: IJSBufferSource): TMediaKeyStatusMap_get_Type;
  105630. begin
  105631. Result:=InvokeJSVariantResult('get',[aKeyId]);
  105632. end;
  105633. class function TJSMediaKeyStatusMap.JSClassName: UnicodeString;
  105634. begin
  105635. Result:='MediaKeyStatusMap';
  105636. end;
  105637. class function TJSMediaKeyStatusMap.Cast(const Intf: IJSObject): IJSMediaKeyStatusMap;
  105638. begin
  105639. Result:=TJSMediaKeyStatusMap.JOBCast(Intf);
  105640. end;
  105641. function TJSMediaKeySystemMediaCapability._GetcontentType: UnicodeString;
  105642. begin
  105643. Result:=ReadJSPropertyUnicodeString('contentType');
  105644. end;
  105645. function TJSMediaKeySystemMediaCapability._Getrobustness: UnicodeString;
  105646. begin
  105647. Result:=ReadJSPropertyUnicodeString('robustness');
  105648. end;
  105649. function TJSMediaKeySystemMediaCapability._GetencryptionScheme: UnicodeString;
  105650. begin
  105651. Result:=ReadJSPropertyUnicodeString('encryptionScheme');
  105652. end;
  105653. procedure TJSMediaKeySystemMediaCapability._SetcontentType(const aValue : UnicodeString);
  105654. begin
  105655. WriteJSPropertyUnicodeString('contentType',aValue);
  105656. end;
  105657. procedure TJSMediaKeySystemMediaCapability._Setrobustness(const aValue : UnicodeString);
  105658. begin
  105659. WriteJSPropertyUnicodeString('robustness',aValue);
  105660. end;
  105661. procedure TJSMediaKeySystemMediaCapability._SetencryptionScheme(const aValue : UnicodeString);
  105662. begin
  105663. WriteJSPropertyUnicodeString('encryptionScheme',aValue);
  105664. end;
  105665. class function TJSMediaKeySystemMediaCapability.JSClassName: UnicodeString;
  105666. begin
  105667. Result:='Object';
  105668. end;
  105669. class function TJSMediaKeySystemMediaCapability.Cast(const Intf: IJSObject): IJSMediaKeySystemMediaCapability;
  105670. begin
  105671. Result:=TJSMediaKeySystemMediaCapability.JOBCast(Intf);
  105672. end;
  105673. function TJSMediaKeySystemConfiguration._Getlabel_: UnicodeString;
  105674. begin
  105675. Result:=ReadJSPropertyUnicodeString('label');
  105676. end;
  105677. function TJSMediaKeySystemConfiguration._GetinitDataTypes: TUnicodeStringDynArray;
  105678. begin
  105679. Result:=ReadJSPropertyObject('initDataTypes',TJSArray) as TUnicodeStringDynArray;
  105680. end;
  105681. function TJSMediaKeySystemConfiguration._GetaudioCapabilities: TJSMediaKeySystemMediaCapabilityDynArray;
  105682. begin
  105683. Result:=ReadJSPropertyObject('audioCapabilities',TJSArray) as TJSMediaKeySystemMediaCapabilityDynArray;
  105684. end;
  105685. function TJSMediaKeySystemConfiguration._GetvideoCapabilities: TJSMediaKeySystemMediaCapabilityDynArray;
  105686. begin
  105687. Result:=ReadJSPropertyObject('videoCapabilities',TJSArray) as TJSMediaKeySystemMediaCapabilityDynArray;
  105688. end;
  105689. function TJSMediaKeySystemConfiguration._GetdistinctiveIdentifier: TMediaKeysRequirement;
  105690. begin
  105691. Result:=ReadJSPropertyUnicodeString('distinctiveIdentifier');
  105692. end;
  105693. function TJSMediaKeySystemConfiguration._GetpersistentState: TMediaKeysRequirement;
  105694. begin
  105695. Result:=ReadJSPropertyUnicodeString('persistentState');
  105696. end;
  105697. function TJSMediaKeySystemConfiguration._GetsessionTypes: TUnicodeStringDynArray;
  105698. begin
  105699. Result:=ReadJSPropertyObject('sessionTypes',TJSArray) as TUnicodeStringDynArray;
  105700. end;
  105701. procedure TJSMediaKeySystemConfiguration._Setlabel_(const aValue : UnicodeString);
  105702. begin
  105703. WriteJSPropertyUnicodeString('label',aValue);
  105704. end;
  105705. procedure TJSMediaKeySystemConfiguration._SetinitDataTypes(const aValue : TUnicodeStringDynArray);
  105706. begin
  105707. WriteJSPropertyObject('initDataTypes',aValue);
  105708. end;
  105709. procedure TJSMediaKeySystemConfiguration._SetaudioCapabilities(const aValue : TJSMediaKeySystemMediaCapabilityDynArray);
  105710. begin
  105711. WriteJSPropertyObject('audioCapabilities',aValue);
  105712. end;
  105713. procedure TJSMediaKeySystemConfiguration._SetvideoCapabilities(const aValue : TJSMediaKeySystemMediaCapabilityDynArray);
  105714. begin
  105715. WriteJSPropertyObject('videoCapabilities',aValue);
  105716. end;
  105717. procedure TJSMediaKeySystemConfiguration._SetdistinctiveIdentifier(const aValue : TMediaKeysRequirement);
  105718. begin
  105719. WriteJSPropertyUnicodeString('distinctiveIdentifier',aValue);
  105720. end;
  105721. procedure TJSMediaKeySystemConfiguration._SetpersistentState(const aValue : TMediaKeysRequirement);
  105722. begin
  105723. WriteJSPropertyUnicodeString('persistentState',aValue);
  105724. end;
  105725. procedure TJSMediaKeySystemConfiguration._SetsessionTypes(const aValue : TUnicodeStringDynArray);
  105726. begin
  105727. WriteJSPropertyObject('sessionTypes',aValue);
  105728. end;
  105729. class function TJSMediaKeySystemConfiguration.JSClassName: UnicodeString;
  105730. begin
  105731. Result:='Object';
  105732. end;
  105733. class function TJSMediaKeySystemConfiguration.Cast(const Intf: IJSObject): IJSMediaKeySystemConfiguration;
  105734. begin
  105735. Result:=TJSMediaKeySystemConfiguration.JOBCast(Intf);
  105736. end;
  105737. function TJSMediaKeySystemAccess._GetkeySystem: UnicodeString;
  105738. begin
  105739. Result:=ReadJSPropertyUnicodeString('keySystem');
  105740. end;
  105741. function TJSMediaKeySystemAccess.getConfiguration: TJSMediaKeySystemConfiguration;
  105742. begin
  105743. Result:=InvokeJSObjectResult('getConfiguration',[],TJSMediaKeySystemConfiguration) as TJSMediaKeySystemConfiguration;
  105744. end;
  105745. function TJSMediaKeySystemAccess.createMediaKeys: IJSPromise; // Promise<MediaKeys>
  105746. begin
  105747. Result:=InvokeJSObjectResult('createMediaKeys',[],TJSPromise) as IJSPromise;
  105748. end;
  105749. class function TJSMediaKeySystemAccess.JSClassName: UnicodeString;
  105750. begin
  105751. Result:='MediaKeySystemAccess';
  105752. end;
  105753. class function TJSMediaKeySystemAccess.Cast(const Intf: IJSObject): IJSMediaKeySystemAccess;
  105754. begin
  105755. Result:=TJSMediaKeySystemAccess.JOBCast(Intf);
  105756. end;
  105757. function TJSMediaList._GetmediaText: UTF8String;
  105758. begin
  105759. Result:=ReadJSPropertyUTF8String('mediaText');
  105760. end;
  105761. function TJSMediaList._Getlength_: Cardinal;
  105762. begin
  105763. Result:=ReadJSPropertyInt64('length');
  105764. end;
  105765. function TJSMediaList.item(aIndex: Cardinal): UTF8String;
  105766. begin
  105767. Result:=InvokeJSUTF8StringResult('item',[aIndex]);
  105768. end;
  105769. procedure TJSMediaList.deleteMedium(const aOldMedium: UTF8String);
  105770. begin
  105771. InvokeJSNoResult('deleteMedium',[aOldMedium]);
  105772. end;
  105773. procedure TJSMediaList.appendMedium(const aNewMedium: UTF8String);
  105774. begin
  105775. InvokeJSNoResult('appendMedium',[aNewMedium]);
  105776. end;
  105777. class function TJSMediaList.JSClassName: UnicodeString;
  105778. begin
  105779. Result:='MediaList';
  105780. end;
  105781. class function TJSMediaList.Cast(const Intf: IJSObject): IJSMediaList;
  105782. begin
  105783. Result:=TJSMediaList.JOBCast(Intf);
  105784. end;
  105785. function TJSMediaQueryList._Getmedia: UTF8String;
  105786. begin
  105787. Result:=ReadJSPropertyUTF8String('media');
  105788. end;
  105789. function TJSMediaQueryList._Getmatches: Boolean;
  105790. begin
  105791. Result:=ReadJSPropertyBoolean('matches');
  105792. end;
  105793. function TJSMediaQueryList._Getonchange: TEventHandler;
  105794. begin
  105795. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  105796. end;
  105797. procedure TJSMediaQueryList._Setonchange(const aValue : TEventHandler);
  105798. begin
  105799. WriteJSPropertyMethod('onchange',TMethod(aValue));
  105800. end;
  105801. procedure TJSMediaQueryList.addListener(const aListener: TEventListener);
  105802. var
  105803. m: TJOB_Method;
  105804. begin
  105805. m:=TJOB_Method.Create(TMethod(aListener),@JOBCallEventListener);
  105806. try
  105807. InvokeJSNoResult('addListener',[m]);
  105808. finally
  105809. m.free;
  105810. end;
  105811. end;
  105812. procedure TJSMediaQueryList.removeListener(const aListener: TEventListener);
  105813. var
  105814. m: TJOB_Method;
  105815. begin
  105816. m:=TJOB_Method.Create(TMethod(aListener),@JOBCallEventListener);
  105817. try
  105818. InvokeJSNoResult('removeListener',[m]);
  105819. finally
  105820. m.free;
  105821. end;
  105822. end;
  105823. class function TJSMediaQueryList.JSClassName: UnicodeString;
  105824. begin
  105825. Result:='MediaQueryList';
  105826. end;
  105827. class function TJSMediaQueryList.Cast(const Intf: IJSObject): IJSMediaQueryList;
  105828. begin
  105829. Result:=TJSMediaQueryList.JOBCast(Intf);
  105830. end;
  105831. function TJSMediaQueryListEvent._Getmedia: UTF8String;
  105832. begin
  105833. Result:=ReadJSPropertyUTF8String('media');
  105834. end;
  105835. function TJSMediaQueryListEvent._Getmatches: Boolean;
  105836. begin
  105837. Result:=ReadJSPropertyBoolean('matches');
  105838. end;
  105839. constructor TJSMediaQueryListEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaQueryListEventInit);
  105840. begin
  105841. JOBCreate([aType_,aEventInitDict]);
  105842. end;
  105843. constructor TJSMediaQueryListEvent.Create(const aType_: UnicodeString);
  105844. begin
  105845. JOBCreate([aType_]);
  105846. end;
  105847. class function TJSMediaQueryListEvent.JSClassName: UnicodeString;
  105848. begin
  105849. Result:='MediaQueryListEvent';
  105850. end;
  105851. class function TJSMediaQueryListEvent.Cast(const Intf: IJSObject): IJSMediaQueryListEvent;
  105852. begin
  105853. Result:=TJSMediaQueryListEvent.JOBCast(Intf);
  105854. end;
  105855. function TJSMediaQueryListEventInit._Getmedia: UTF8String;
  105856. begin
  105857. Result:=ReadJSPropertyUTF8String('media');
  105858. end;
  105859. function TJSMediaQueryListEventInit._Getmatches: Boolean;
  105860. begin
  105861. Result:=ReadJSPropertyBoolean('matches');
  105862. end;
  105863. procedure TJSMediaQueryListEventInit._Setmedia(const aValue : UTF8String);
  105864. begin
  105865. WriteJSPropertyUTF8String('media',aValue);
  105866. end;
  105867. procedure TJSMediaQueryListEventInit._Setmatches(const aValue : Boolean);
  105868. begin
  105869. WriteJSPropertyBoolean('matches',aValue);
  105870. end;
  105871. class function TJSMediaQueryListEventInit.JSClassName: UnicodeString;
  105872. begin
  105873. Result:='Object';
  105874. end;
  105875. class function TJSMediaQueryListEventInit.Cast(const Intf: IJSObject): IJSMediaQueryListEventInit;
  105876. begin
  105877. Result:=TJSMediaQueryListEventInit.JOBCast(Intf);
  105878. end;
  105879. function TJSMediaRecorder._Getstream: IJSMediaStream;
  105880. begin
  105881. Result:=ReadJSPropertyObject('stream',TJSMediaStream) as IJSMediaStream;
  105882. end;
  105883. function TJSMediaRecorder._GetmimeType: UnicodeString;
  105884. begin
  105885. Result:=ReadJSPropertyUnicodeString('mimeType');
  105886. end;
  105887. function TJSMediaRecorder._Getstate: TRecordingState;
  105888. begin
  105889. Result:=ReadJSPropertyUnicodeString('state');
  105890. end;
  105891. function TJSMediaRecorder._Getonstart: TEventHandler;
  105892. begin
  105893. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstart')));
  105894. end;
  105895. function TJSMediaRecorder._Getonstop: TEventHandler;
  105896. begin
  105897. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstop')));
  105898. end;
  105899. function TJSMediaRecorder._Getondataavailable: TEventHandler;
  105900. begin
  105901. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondataavailable')));
  105902. end;
  105903. function TJSMediaRecorder._Getonpause: TEventHandler;
  105904. begin
  105905. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpause')));
  105906. end;
  105907. function TJSMediaRecorder._Getonresume: TEventHandler;
  105908. begin
  105909. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresume')));
  105910. end;
  105911. function TJSMediaRecorder._Getonerror: TEventHandler;
  105912. begin
  105913. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  105914. end;
  105915. function TJSMediaRecorder._GetvideoBitsPerSecond: Cardinal;
  105916. begin
  105917. Result:=ReadJSPropertyInt64('videoBitsPerSecond');
  105918. end;
  105919. function TJSMediaRecorder._GetaudioBitsPerSecond: Cardinal;
  105920. begin
  105921. Result:=ReadJSPropertyInt64('audioBitsPerSecond');
  105922. end;
  105923. procedure TJSMediaRecorder._Setonstart(const aValue : TEventHandler);
  105924. begin
  105925. WriteJSPropertyMethod('onstart',TMethod(aValue));
  105926. end;
  105927. procedure TJSMediaRecorder._Setonstop(const aValue : TEventHandler);
  105928. begin
  105929. WriteJSPropertyMethod('onstop',TMethod(aValue));
  105930. end;
  105931. procedure TJSMediaRecorder._Setondataavailable(const aValue : TEventHandler);
  105932. begin
  105933. WriteJSPropertyMethod('ondataavailable',TMethod(aValue));
  105934. end;
  105935. procedure TJSMediaRecorder._Setonpause(const aValue : TEventHandler);
  105936. begin
  105937. WriteJSPropertyMethod('onpause',TMethod(aValue));
  105938. end;
  105939. procedure TJSMediaRecorder._Setonresume(const aValue : TEventHandler);
  105940. begin
  105941. WriteJSPropertyMethod('onresume',TMethod(aValue));
  105942. end;
  105943. procedure TJSMediaRecorder._Setonerror(const aValue : TEventHandler);
  105944. begin
  105945. WriteJSPropertyMethod('onerror',TMethod(aValue));
  105946. end;
  105947. constructor TJSMediaRecorder.Create(aStream: IJSMediaStream; const aOptions: TJSMediaRecorderOptions);
  105948. begin
  105949. JOBCreate([aStream,aOptions]);
  105950. end;
  105951. constructor TJSMediaRecorder.Create(aStream: IJSMediaStream);
  105952. begin
  105953. JOBCreate([aStream]);
  105954. end;
  105955. constructor TJSMediaRecorder.Create(aNode: IJSAudioNode; aOutput: Cardinal; const aOptions: TJSMediaRecorderOptions);
  105956. begin
  105957. JOBCreate([aNode,aOutput,aOptions]);
  105958. end;
  105959. constructor TJSMediaRecorder.Create(aNode: IJSAudioNode);
  105960. begin
  105961. JOBCreate([aNode]);
  105962. end;
  105963. constructor TJSMediaRecorder.Create(aNode: IJSAudioNode; aOutput: Cardinal);
  105964. begin
  105965. JOBCreate([aNode,aOutput]);
  105966. end;
  105967. procedure TJSMediaRecorder.start(aTimeslice: Cardinal);
  105968. begin
  105969. InvokeJSNoResult('start',[aTimeslice]);
  105970. end;
  105971. procedure TJSMediaRecorder.start;
  105972. begin
  105973. InvokeJSNoResult('start',[]);
  105974. end;
  105975. procedure TJSMediaRecorder.stop;
  105976. begin
  105977. InvokeJSNoResult('stop',[]);
  105978. end;
  105979. procedure TJSMediaRecorder.pause;
  105980. begin
  105981. InvokeJSNoResult('pause',[]);
  105982. end;
  105983. procedure TJSMediaRecorder.resume;
  105984. begin
  105985. InvokeJSNoResult('resume',[]);
  105986. end;
  105987. procedure TJSMediaRecorder.requestData;
  105988. begin
  105989. InvokeJSNoResult('requestData',[]);
  105990. end;
  105991. function TJSMediaRecorder.isTypeSupported(const aType_: UnicodeString): Boolean;
  105992. begin
  105993. Result:=InvokeJSBooleanResult('isTypeSupported',[aType_]);
  105994. end;
  105995. class function TJSMediaRecorder.JSClassName: UnicodeString;
  105996. begin
  105997. Result:='MediaRecorder';
  105998. end;
  105999. class function TJSMediaRecorder.Cast(const Intf: IJSObject): IJSMediaRecorder;
  106000. begin
  106001. Result:=TJSMediaRecorder.JOBCast(Intf);
  106002. end;
  106003. function TJSMediaRecorderOptions._GetmimeType: UnicodeString;
  106004. begin
  106005. Result:=ReadJSPropertyUnicodeString('mimeType');
  106006. end;
  106007. function TJSMediaRecorderOptions._GetaudioBitsPerSecond: Cardinal;
  106008. begin
  106009. Result:=ReadJSPropertyInt64('audioBitsPerSecond');
  106010. end;
  106011. function TJSMediaRecorderOptions._GetvideoBitsPerSecond: Cardinal;
  106012. begin
  106013. Result:=ReadJSPropertyInt64('videoBitsPerSecond');
  106014. end;
  106015. function TJSMediaRecorderOptions._GetbitsPerSecond: Cardinal;
  106016. begin
  106017. Result:=ReadJSPropertyInt64('bitsPerSecond');
  106018. end;
  106019. procedure TJSMediaRecorderOptions._SetmimeType(const aValue : UnicodeString);
  106020. begin
  106021. WriteJSPropertyUnicodeString('mimeType',aValue);
  106022. end;
  106023. procedure TJSMediaRecorderOptions._SetaudioBitsPerSecond(const aValue : Cardinal);
  106024. begin
  106025. WriteJSPropertyDouble('audioBitsPerSecond',aValue);
  106026. end;
  106027. procedure TJSMediaRecorderOptions._SetvideoBitsPerSecond(const aValue : Cardinal);
  106028. begin
  106029. WriteJSPropertyDouble('videoBitsPerSecond',aValue);
  106030. end;
  106031. procedure TJSMediaRecorderOptions._SetbitsPerSecond(const aValue : Cardinal);
  106032. begin
  106033. WriteJSPropertyDouble('bitsPerSecond',aValue);
  106034. end;
  106035. class function TJSMediaRecorderOptions.JSClassName: UnicodeString;
  106036. begin
  106037. Result:='Object';
  106038. end;
  106039. class function TJSMediaRecorderOptions.Cast(const Intf: IJSObject): IJSMediaRecorderOptions;
  106040. begin
  106041. Result:=TJSMediaRecorderOptions.JOBCast(Intf);
  106042. end;
  106043. function TJSMediaRecorderErrorEventInit._Geterror: IJSDOMException;
  106044. begin
  106045. Result:=ReadJSPropertyObject('error',TJSDOMException) as IJSDOMException;
  106046. end;
  106047. procedure TJSMediaRecorderErrorEventInit._Seterror(const aValue : IJSDOMException);
  106048. begin
  106049. WriteJSPropertyObject('error',aValue);
  106050. end;
  106051. class function TJSMediaRecorderErrorEventInit.JSClassName: UnicodeString;
  106052. begin
  106053. Result:='Object';
  106054. end;
  106055. class function TJSMediaRecorderErrorEventInit.Cast(const Intf: IJSObject): IJSMediaRecorderErrorEventInit;
  106056. begin
  106057. Result:=TJSMediaRecorderErrorEventInit.JOBCast(Intf);
  106058. end;
  106059. function TJSMediaRecorderErrorEvent._Geterror: IJSDOMException;
  106060. begin
  106061. Result:=ReadJSPropertyObject('error',TJSDOMException) as IJSDOMException;
  106062. end;
  106063. constructor TJSMediaRecorderErrorEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaRecorderErrorEventInit);
  106064. begin
  106065. JOBCreate([aType_,aEventInitDict]);
  106066. end;
  106067. class function TJSMediaRecorderErrorEvent.JSClassName: UnicodeString;
  106068. begin
  106069. Result:='MediaRecorderErrorEvent';
  106070. end;
  106071. class function TJSMediaRecorderErrorEvent.Cast(const Intf: IJSObject): IJSMediaRecorderErrorEvent;
  106072. begin
  106073. Result:=TJSMediaRecorderErrorEvent.JOBCast(Intf);
  106074. end;
  106075. function TJSMediaSession._Getmetadata: IJSMediaMetadata;
  106076. begin
  106077. Result:=ReadJSPropertyObject('metadata',TJSMediaMetadata) as IJSMediaMetadata;
  106078. end;
  106079. function TJSMediaSession._GetplaybackState: TMediaSessionPlaybackState;
  106080. begin
  106081. Result:=ReadJSPropertyUnicodeString('playbackState');
  106082. end;
  106083. procedure TJSMediaSession._Setmetadata(const aValue : IJSMediaMetadata);
  106084. begin
  106085. WriteJSPropertyObject('metadata',aValue);
  106086. end;
  106087. procedure TJSMediaSession._SetplaybackState(const aValue : TMediaSessionPlaybackState);
  106088. begin
  106089. WriteJSPropertyUnicodeString('playbackState',aValue);
  106090. end;
  106091. procedure TJSMediaSession.setActionHandler(aAction: TMediaSessionAction; const aHandler: TMediaSessionActionHandler);
  106092. var
  106093. m: TJOB_Method;
  106094. begin
  106095. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallMediaSessionActionHandler);
  106096. try
  106097. InvokeJSNoResult('setActionHandler',[aAction,m]);
  106098. finally
  106099. m.free;
  106100. end;
  106101. end;
  106102. procedure TJSMediaSession.setPositionState(const aState: TJSMediaPositionState);
  106103. begin
  106104. InvokeJSNoResult('setPositionState',[aState]);
  106105. end;
  106106. procedure TJSMediaSession.setPositionState;
  106107. begin
  106108. InvokeJSNoResult('setPositionState',[]);
  106109. end;
  106110. class function TJSMediaSession.JSClassName: UnicodeString;
  106111. begin
  106112. Result:='MediaSession';
  106113. end;
  106114. class function TJSMediaSession.Cast(const Intf: IJSObject): IJSMediaSession;
  106115. begin
  106116. Result:=TJSMediaSession.JOBCast(Intf);
  106117. end;
  106118. function TJSMediaMetadata._Gettitle: UnicodeString;
  106119. begin
  106120. Result:=ReadJSPropertyUnicodeString('title');
  106121. end;
  106122. function TJSMediaMetadata._Getartist: UnicodeString;
  106123. begin
  106124. Result:=ReadJSPropertyUnicodeString('artist');
  106125. end;
  106126. function TJSMediaMetadata._Getalbum: UnicodeString;
  106127. begin
  106128. Result:=ReadJSPropertyUnicodeString('album');
  106129. end;
  106130. function TJSMediaMetadata._Getartwork: TIJSObjectDynArray;
  106131. begin
  106132. Result:=ReadJSPropertyObject('artwork',TJSArray) as TIJSObjectDynArray;
  106133. end;
  106134. procedure TJSMediaMetadata._Settitle(const aValue : UnicodeString);
  106135. begin
  106136. WriteJSPropertyUnicodeString('title',aValue);
  106137. end;
  106138. procedure TJSMediaMetadata._Setartist(const aValue : UnicodeString);
  106139. begin
  106140. WriteJSPropertyUnicodeString('artist',aValue);
  106141. end;
  106142. procedure TJSMediaMetadata._Setalbum(const aValue : UnicodeString);
  106143. begin
  106144. WriteJSPropertyUnicodeString('album',aValue);
  106145. end;
  106146. procedure TJSMediaMetadata._Setartwork(const aValue : TIJSObjectDynArray);
  106147. begin
  106148. WriteJSPropertyObject('artwork',aValue);
  106149. end;
  106150. constructor TJSMediaMetadata.Create(const aInit: TJSMediaMetadataInit);
  106151. begin
  106152. JOBCreate([aInit]);
  106153. end;
  106154. constructor TJSMediaMetadata.Create;
  106155. begin
  106156. JOBCreate([]);
  106157. end;
  106158. class function TJSMediaMetadata.JSClassName: UnicodeString;
  106159. begin
  106160. Result:='MediaMetadata';
  106161. end;
  106162. class function TJSMediaMetadata.Cast(const Intf: IJSObject): IJSMediaMetadata;
  106163. begin
  106164. Result:=TJSMediaMetadata.JOBCast(Intf);
  106165. end;
  106166. function TJSMediaMetadataInit._Gettitle: UnicodeString;
  106167. begin
  106168. Result:=ReadJSPropertyUnicodeString('title');
  106169. end;
  106170. function TJSMediaMetadataInit._Getartist: UnicodeString;
  106171. begin
  106172. Result:=ReadJSPropertyUnicodeString('artist');
  106173. end;
  106174. function TJSMediaMetadataInit._Getalbum: UnicodeString;
  106175. begin
  106176. Result:=ReadJSPropertyUnicodeString('album');
  106177. end;
  106178. function TJSMediaMetadataInit._Getartwork: TJSMediaImageDynArray;
  106179. begin
  106180. Result:=ReadJSPropertyObject('artwork',TJSArray) as TJSMediaImageDynArray;
  106181. end;
  106182. procedure TJSMediaMetadataInit._Settitle(const aValue : UnicodeString);
  106183. begin
  106184. WriteJSPropertyUnicodeString('title',aValue);
  106185. end;
  106186. procedure TJSMediaMetadataInit._Setartist(const aValue : UnicodeString);
  106187. begin
  106188. WriteJSPropertyUnicodeString('artist',aValue);
  106189. end;
  106190. procedure TJSMediaMetadataInit._Setalbum(const aValue : UnicodeString);
  106191. begin
  106192. WriteJSPropertyUnicodeString('album',aValue);
  106193. end;
  106194. procedure TJSMediaMetadataInit._Setartwork(const aValue : TJSMediaImageDynArray);
  106195. begin
  106196. WriteJSPropertyObject('artwork',aValue);
  106197. end;
  106198. class function TJSMediaMetadataInit.JSClassName: UnicodeString;
  106199. begin
  106200. Result:='Object';
  106201. end;
  106202. class function TJSMediaMetadataInit.Cast(const Intf: IJSObject): IJSMediaMetadataInit;
  106203. begin
  106204. Result:=TJSMediaMetadataInit.JOBCast(Intf);
  106205. end;
  106206. function TJSMediaImage._Getsrc: UnicodeString;
  106207. begin
  106208. Result:=ReadJSPropertyUnicodeString('src');
  106209. end;
  106210. function TJSMediaImage._Getsizes: UnicodeString;
  106211. begin
  106212. Result:=ReadJSPropertyUnicodeString('sizes');
  106213. end;
  106214. function TJSMediaImage._Gettype_: UnicodeString;
  106215. begin
  106216. Result:=ReadJSPropertyUnicodeString('type');
  106217. end;
  106218. procedure TJSMediaImage._Setsrc(const aValue : UnicodeString);
  106219. begin
  106220. WriteJSPropertyUnicodeString('src',aValue);
  106221. end;
  106222. procedure TJSMediaImage._Setsizes(const aValue : UnicodeString);
  106223. begin
  106224. WriteJSPropertyUnicodeString('sizes',aValue);
  106225. end;
  106226. procedure TJSMediaImage._Settype_(const aValue : UnicodeString);
  106227. begin
  106228. WriteJSPropertyUnicodeString('type',aValue);
  106229. end;
  106230. class function TJSMediaImage.JSClassName: UnicodeString;
  106231. begin
  106232. Result:='Object';
  106233. end;
  106234. class function TJSMediaImage.Cast(const Intf: IJSObject): IJSMediaImage;
  106235. begin
  106236. Result:=TJSMediaImage.JOBCast(Intf);
  106237. end;
  106238. function TJSMediaSessionActionDetails._Getaction: TMediaSessionAction;
  106239. begin
  106240. Result:=ReadJSPropertyUnicodeString('action');
  106241. end;
  106242. function TJSMediaSessionActionDetails._GetseekOffset: Double;
  106243. begin
  106244. Result:=ReadJSPropertyDouble('seekOffset');
  106245. end;
  106246. function TJSMediaSessionActionDetails._GetseekTime: Double;
  106247. begin
  106248. Result:=ReadJSPropertyDouble('seekTime');
  106249. end;
  106250. function TJSMediaSessionActionDetails._GetfastSeek: Boolean;
  106251. begin
  106252. Result:=ReadJSPropertyBoolean('fastSeek');
  106253. end;
  106254. procedure TJSMediaSessionActionDetails._Setaction(const aValue : TMediaSessionAction);
  106255. begin
  106256. WriteJSPropertyUnicodeString('action',aValue);
  106257. end;
  106258. procedure TJSMediaSessionActionDetails._SetseekOffset(const aValue : Double);
  106259. begin
  106260. WriteJSPropertyDouble('seekOffset',aValue);
  106261. end;
  106262. procedure TJSMediaSessionActionDetails._SetseekTime(const aValue : Double);
  106263. begin
  106264. WriteJSPropertyDouble('seekTime',aValue);
  106265. end;
  106266. procedure TJSMediaSessionActionDetails._SetfastSeek(const aValue : Boolean);
  106267. begin
  106268. WriteJSPropertyBoolean('fastSeek',aValue);
  106269. end;
  106270. class function TJSMediaSessionActionDetails.JSClassName: UnicodeString;
  106271. begin
  106272. Result:='Object';
  106273. end;
  106274. class function TJSMediaSessionActionDetails.Cast(const Intf: IJSObject): IJSMediaSessionActionDetails;
  106275. begin
  106276. Result:=TJSMediaSessionActionDetails.JOBCast(Intf);
  106277. end;
  106278. function TJSMediaPositionState._Getduration: Double;
  106279. begin
  106280. Result:=ReadJSPropertyDouble('duration');
  106281. end;
  106282. function TJSMediaPositionState._GetplaybackRate: Double;
  106283. begin
  106284. Result:=ReadJSPropertyDouble('playbackRate');
  106285. end;
  106286. function TJSMediaPositionState._Getposition: Double;
  106287. begin
  106288. Result:=ReadJSPropertyDouble('position');
  106289. end;
  106290. procedure TJSMediaPositionState._Setduration(const aValue : Double);
  106291. begin
  106292. WriteJSPropertyDouble('duration',aValue);
  106293. end;
  106294. procedure TJSMediaPositionState._SetplaybackRate(const aValue : Double);
  106295. begin
  106296. WriteJSPropertyDouble('playbackRate',aValue);
  106297. end;
  106298. procedure TJSMediaPositionState._Setposition(const aValue : Double);
  106299. begin
  106300. WriteJSPropertyDouble('position',aValue);
  106301. end;
  106302. class function TJSMediaPositionState.JSClassName: UnicodeString;
  106303. begin
  106304. Result:='Object';
  106305. end;
  106306. class function TJSMediaPositionState.Cast(const Intf: IJSObject): IJSMediaPositionState;
  106307. begin
  106308. Result:=TJSMediaPositionState.JOBCast(Intf);
  106309. end;
  106310. function TJSMediaSource._GetsourceBuffers: IJSSourceBufferList;
  106311. begin
  106312. Result:=ReadJSPropertyObject('sourceBuffers',TJSSourceBufferList) as IJSSourceBufferList;
  106313. end;
  106314. function TJSMediaSource._GetactiveSourceBuffers: IJSSourceBufferList;
  106315. begin
  106316. Result:=ReadJSPropertyObject('activeSourceBuffers',TJSSourceBufferList) as IJSSourceBufferList;
  106317. end;
  106318. function TJSMediaSource._GetreadyState: TMediaSourceReadyState;
  106319. begin
  106320. Result:=ReadJSPropertyUnicodeString('readyState');
  106321. end;
  106322. function TJSMediaSource._Getduration: Double;
  106323. begin
  106324. Result:=ReadJSPropertyDouble('duration');
  106325. end;
  106326. function TJSMediaSource._Getonsourceopen: TEventHandler;
  106327. begin
  106328. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsourceopen')));
  106329. end;
  106330. function TJSMediaSource._Getonsourceended: TEventHandler;
  106331. begin
  106332. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsourceended')));
  106333. end;
  106334. function TJSMediaSource._Getonsourceclose: TEventHandler;
  106335. begin
  106336. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsourceclose')));
  106337. end;
  106338. procedure TJSMediaSource._Setduration(const aValue : Double);
  106339. begin
  106340. WriteJSPropertyDouble('duration',aValue);
  106341. end;
  106342. procedure TJSMediaSource._Setonsourceopen(const aValue : TEventHandler);
  106343. begin
  106344. WriteJSPropertyMethod('onsourceopen',TMethod(aValue));
  106345. end;
  106346. procedure TJSMediaSource._Setonsourceended(const aValue : TEventHandler);
  106347. begin
  106348. WriteJSPropertyMethod('onsourceended',TMethod(aValue));
  106349. end;
  106350. procedure TJSMediaSource._Setonsourceclose(const aValue : TEventHandler);
  106351. begin
  106352. WriteJSPropertyMethod('onsourceclose',TMethod(aValue));
  106353. end;
  106354. constructor TJSMediaSource.Create;
  106355. begin
  106356. JOBCreate([]);
  106357. end;
  106358. function TJSMediaSource.addSourceBuffer(const aType_: UnicodeString): IJSSourceBuffer;
  106359. begin
  106360. Result:=InvokeJSObjectResult('addSourceBuffer',[aType_],TJSSourceBuffer) as IJSSourceBuffer;
  106361. end;
  106362. procedure TJSMediaSource.removeSourceBuffer(aSourceBuffer: IJSSourceBuffer);
  106363. begin
  106364. InvokeJSNoResult('removeSourceBuffer',[aSourceBuffer]);
  106365. end;
  106366. procedure TJSMediaSource.endOfStream(aError: TMediaSourceEndOfStreamError);
  106367. begin
  106368. InvokeJSNoResult('endOfStream',[aError]);
  106369. end;
  106370. procedure TJSMediaSource.endOfStream;
  106371. begin
  106372. InvokeJSNoResult('endOfStream',[]);
  106373. end;
  106374. procedure TJSMediaSource.setLiveSeekableRange(aStart: Double; aEnd_: Double);
  106375. begin
  106376. InvokeJSNoResult('setLiveSeekableRange',[aStart,aEnd_]);
  106377. end;
  106378. procedure TJSMediaSource.clearLiveSeekableRange;
  106379. begin
  106380. InvokeJSNoResult('clearLiveSeekableRange',[]);
  106381. end;
  106382. function TJSMediaSource.isTypeSupported(const aType_: UnicodeString): Boolean;
  106383. begin
  106384. Result:=InvokeJSBooleanResult('isTypeSupported',[aType_]);
  106385. end;
  106386. class function TJSMediaSource.JSClassName: UnicodeString;
  106387. begin
  106388. Result:='MediaSource';
  106389. end;
  106390. class function TJSMediaSource.Cast(const Intf: IJSObject): IJSMediaSource;
  106391. begin
  106392. Result:=TJSMediaSource.JOBCast(Intf);
  106393. end;
  106394. function TJSMediaStreamConstraints._Getaudio: TMediaStreamConstraints_audio_Type;
  106395. begin
  106396. Result:=ReadJSPropertyVariant('audio');
  106397. end;
  106398. function TJSMediaStreamConstraints._Getvideo: TMediaStreamConstraints_video_Type;
  106399. begin
  106400. Result:=ReadJSPropertyVariant('video');
  106401. end;
  106402. function TJSMediaStreamConstraints._Getpicture: Boolean;
  106403. begin
  106404. Result:=ReadJSPropertyBoolean('picture');
  106405. end;
  106406. function TJSMediaStreamConstraints._Getfake: Boolean;
  106407. begin
  106408. Result:=ReadJSPropertyBoolean('fake');
  106409. end;
  106410. function TJSMediaStreamConstraints._GetpeerIdentity: UnicodeString;
  106411. begin
  106412. Result:=ReadJSPropertyUnicodeString('peerIdentity');
  106413. end;
  106414. procedure TJSMediaStreamConstraints._Setaudio(const aValue : TMediaStreamConstraints_audio_Type);
  106415. begin
  106416. WriteJSPropertyVariant('audio',aValue);
  106417. end;
  106418. procedure TJSMediaStreamConstraints._Setvideo(const aValue : TMediaStreamConstraints_video_Type);
  106419. begin
  106420. WriteJSPropertyVariant('video',aValue);
  106421. end;
  106422. procedure TJSMediaStreamConstraints._Setpicture(const aValue : Boolean);
  106423. begin
  106424. WriteJSPropertyBoolean('picture',aValue);
  106425. end;
  106426. procedure TJSMediaStreamConstraints._Setfake(const aValue : Boolean);
  106427. begin
  106428. WriteJSPropertyBoolean('fake',aValue);
  106429. end;
  106430. procedure TJSMediaStreamConstraints._SetpeerIdentity(const aValue : UnicodeString);
  106431. begin
  106432. WriteJSPropertyUnicodeString('peerIdentity',aValue);
  106433. end;
  106434. class function TJSMediaStreamConstraints.JSClassName: UnicodeString;
  106435. begin
  106436. Result:='Object';
  106437. end;
  106438. class function TJSMediaStreamConstraints.Cast(const Intf: IJSObject): IJSMediaStreamConstraints;
  106439. begin
  106440. Result:=TJSMediaStreamConstraints.JOBCast(Intf);
  106441. end;
  106442. function TJSDisplayMediaStreamConstraints._Getvideo: TDisplayMediaStreamConstraints_video_Type;
  106443. begin
  106444. Result:=ReadJSPropertyVariant('video');
  106445. end;
  106446. function TJSDisplayMediaStreamConstraints._Getaudio: TDisplayMediaStreamConstraints_audio_Type;
  106447. begin
  106448. Result:=ReadJSPropertyVariant('audio');
  106449. end;
  106450. procedure TJSDisplayMediaStreamConstraints._Setvideo(const aValue : TDisplayMediaStreamConstraints_video_Type);
  106451. begin
  106452. WriteJSPropertyVariant('video',aValue);
  106453. end;
  106454. procedure TJSDisplayMediaStreamConstraints._Setaudio(const aValue : TDisplayMediaStreamConstraints_audio_Type);
  106455. begin
  106456. WriteJSPropertyVariant('audio',aValue);
  106457. end;
  106458. class function TJSDisplayMediaStreamConstraints.JSClassName: UnicodeString;
  106459. begin
  106460. Result:='Object';
  106461. end;
  106462. class function TJSDisplayMediaStreamConstraints.Cast(const Intf: IJSObject): IJSDisplayMediaStreamConstraints;
  106463. begin
  106464. Result:=TJSDisplayMediaStreamConstraints.JOBCast(Intf);
  106465. end;
  106466. function TJSMediaStream._Getid: UnicodeString;
  106467. begin
  106468. Result:=ReadJSPropertyUnicodeString('id');
  106469. end;
  106470. function TJSMediaStream._Getactive: Boolean;
  106471. begin
  106472. Result:=ReadJSPropertyBoolean('active');
  106473. end;
  106474. function TJSMediaStream._Getonaddtrack: TEventHandler;
  106475. begin
  106476. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onaddtrack')));
  106477. end;
  106478. function TJSMediaStream._Getonremovetrack: TEventHandler;
  106479. begin
  106480. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onremovetrack')));
  106481. end;
  106482. procedure TJSMediaStream._Setonaddtrack(const aValue : TEventHandler);
  106483. begin
  106484. WriteJSPropertyMethod('onaddtrack',TMethod(aValue));
  106485. end;
  106486. procedure TJSMediaStream._Setonremovetrack(const aValue : TEventHandler);
  106487. begin
  106488. WriteJSPropertyMethod('onremovetrack',TMethod(aValue));
  106489. end;
  106490. constructor TJSMediaStream.Create;
  106491. begin
  106492. JOBCreate([]);
  106493. end;
  106494. constructor TJSMediaStream.Create(aStream: IJSMediaStream);
  106495. begin
  106496. JOBCreate([aStream]);
  106497. end;
  106498. constructor TJSMediaStream.Create(const aTracks: TJSMediaStreamTrackDynArray);
  106499. begin
  106500. JOBCreate([aTracks]);
  106501. end;
  106502. function TJSMediaStream.getAudioTracks: TJSMediaStreamTrackDynArray;
  106503. begin
  106504. Result:=InvokeJSObjectResult('getAudioTracks',[],TJSArray) as TJSMediaStreamTrackDynArray;
  106505. end;
  106506. function TJSMediaStream.getVideoTracks: TJSMediaStreamTrackDynArray;
  106507. begin
  106508. Result:=InvokeJSObjectResult('getVideoTracks',[],TJSArray) as TJSMediaStreamTrackDynArray;
  106509. end;
  106510. function TJSMediaStream.getTracks: TJSMediaStreamTrackDynArray;
  106511. begin
  106512. Result:=InvokeJSObjectResult('getTracks',[],TJSArray) as TJSMediaStreamTrackDynArray;
  106513. end;
  106514. function TJSMediaStream.getTrackById(const aTrackId: UnicodeString): IJSMediaStreamTrack;
  106515. begin
  106516. Result:=InvokeJSObjectResult('getTrackById',[aTrackId],TJSMediaStreamTrack) as IJSMediaStreamTrack;
  106517. end;
  106518. procedure TJSMediaStream.addTrack(aTrack: IJSMediaStreamTrack);
  106519. begin
  106520. InvokeJSNoResult('addTrack',[aTrack]);
  106521. end;
  106522. procedure TJSMediaStream.removeTrack(aTrack: IJSMediaStreamTrack);
  106523. begin
  106524. InvokeJSNoResult('removeTrack',[aTrack]);
  106525. end;
  106526. function TJSMediaStream.clone: IJSMediaStream;
  106527. begin
  106528. Result:=InvokeJSObjectResult('clone',[],TJSMediaStream) as IJSMediaStream;
  106529. end;
  106530. class function TJSMediaStream.JSClassName: UnicodeString;
  106531. begin
  106532. Result:='MediaStream';
  106533. end;
  106534. class function TJSMediaStream.Cast(const Intf: IJSObject): IJSMediaStream;
  106535. begin
  106536. Result:=TJSMediaStream.JOBCast(Intf);
  106537. end;
  106538. function TJSMediaStreamAudioDestinationNode._Getstream: IJSMediaStream;
  106539. begin
  106540. Result:=ReadJSPropertyObject('stream',TJSMediaStream) as IJSMediaStream;
  106541. end;
  106542. constructor TJSMediaStreamAudioDestinationNode.Create(aContext: IJSAudioContext; const aOptions: TJSAudioNodeOptions);
  106543. begin
  106544. JOBCreate([aContext,aOptions]);
  106545. end;
  106546. constructor TJSMediaStreamAudioDestinationNode.Create(aContext: IJSAudioContext);
  106547. begin
  106548. JOBCreate([aContext]);
  106549. end;
  106550. class function TJSMediaStreamAudioDestinationNode.JSClassName: UnicodeString;
  106551. begin
  106552. Result:='MediaStreamAudioDestinationNode';
  106553. end;
  106554. class function TJSMediaStreamAudioDestinationNode.Cast(const Intf: IJSObject): IJSMediaStreamAudioDestinationNode;
  106555. begin
  106556. Result:=TJSMediaStreamAudioDestinationNode.JOBCast(Intf);
  106557. end;
  106558. function TJSMediaStreamAudioSourceOptions._GetmediaStream: IJSMediaStream;
  106559. begin
  106560. Result:=ReadJSPropertyObject('mediaStream',TJSMediaStream) as IJSMediaStream;
  106561. end;
  106562. procedure TJSMediaStreamAudioSourceOptions._SetmediaStream(const aValue : IJSMediaStream);
  106563. begin
  106564. WriteJSPropertyObject('mediaStream',aValue);
  106565. end;
  106566. class function TJSMediaStreamAudioSourceOptions.JSClassName: UnicodeString;
  106567. begin
  106568. Result:='Object';
  106569. end;
  106570. class function TJSMediaStreamAudioSourceOptions.Cast(const Intf: IJSObject): IJSMediaStreamAudioSourceOptions;
  106571. begin
  106572. Result:=TJSMediaStreamAudioSourceOptions.JOBCast(Intf);
  106573. end;
  106574. function TJSMediaStreamAudioSourceNode._GetmediaStream: IJSMediaStream;
  106575. begin
  106576. Result:=ReadJSPropertyObject('mediaStream',TJSMediaStream) as IJSMediaStream;
  106577. end;
  106578. constructor TJSMediaStreamAudioSourceNode.Create(aContext: IJSAudioContext; const aOptions: TJSMediaStreamAudioSourceOptions);
  106579. begin
  106580. JOBCreate([aContext,aOptions]);
  106581. end;
  106582. class function TJSMediaStreamAudioSourceNode.JSClassName: UnicodeString;
  106583. begin
  106584. Result:='MediaStreamAudioSourceNode';
  106585. end;
  106586. class function TJSMediaStreamAudioSourceNode.Cast(const Intf: IJSObject): IJSMediaStreamAudioSourceNode;
  106587. begin
  106588. Result:=TJSMediaStreamAudioSourceNode.JOBCast(Intf);
  106589. end;
  106590. function TJSMediaStreamError._Getname: UnicodeString;
  106591. begin
  106592. Result:=ReadJSPropertyUnicodeString('name');
  106593. end;
  106594. function TJSMediaStreamError._Getmessage: UnicodeString;
  106595. begin
  106596. Result:=ReadJSPropertyUnicodeString('message');
  106597. end;
  106598. function TJSMediaStreamError._Getconstraint: UnicodeString;
  106599. begin
  106600. Result:=ReadJSPropertyUnicodeString('constraint');
  106601. end;
  106602. class function TJSMediaStreamError.JSClassName: UnicodeString;
  106603. begin
  106604. Result:='MediaStreamError';
  106605. end;
  106606. class function TJSMediaStreamError.Cast(const Intf: IJSObject): IJSMediaStreamError;
  106607. begin
  106608. Result:=TJSMediaStreamError.JOBCast(Intf);
  106609. end;
  106610. function TJSMediaStreamEventInit._Getstream: IJSMediaStream;
  106611. begin
  106612. Result:=ReadJSPropertyObject('stream',TJSMediaStream) as IJSMediaStream;
  106613. end;
  106614. procedure TJSMediaStreamEventInit._Setstream(const aValue : IJSMediaStream);
  106615. begin
  106616. WriteJSPropertyObject('stream',aValue);
  106617. end;
  106618. class function TJSMediaStreamEventInit.JSClassName: UnicodeString;
  106619. begin
  106620. Result:='Object';
  106621. end;
  106622. class function TJSMediaStreamEventInit.Cast(const Intf: IJSObject): IJSMediaStreamEventInit;
  106623. begin
  106624. Result:=TJSMediaStreamEventInit.JOBCast(Intf);
  106625. end;
  106626. function TJSMediaStreamEvent._Getstream: IJSMediaStream;
  106627. begin
  106628. Result:=ReadJSPropertyObject('stream',TJSMediaStream) as IJSMediaStream;
  106629. end;
  106630. constructor TJSMediaStreamEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaStreamEventInit);
  106631. begin
  106632. JOBCreate([aType_,aEventInitDict]);
  106633. end;
  106634. constructor TJSMediaStreamEvent.Create(const aType_: UnicodeString);
  106635. begin
  106636. JOBCreate([aType_]);
  106637. end;
  106638. class function TJSMediaStreamEvent.JSClassName: UnicodeString;
  106639. begin
  106640. Result:='MediaStreamEvent';
  106641. end;
  106642. class function TJSMediaStreamEvent.Cast(const Intf: IJSObject): IJSMediaStreamEvent;
  106643. begin
  106644. Result:=TJSMediaStreamEvent.JOBCast(Intf);
  106645. end;
  106646. function TJSConstrainLongRange._Getmin: LongInt;
  106647. begin
  106648. Result:=ReadJSPropertyLongInt('min');
  106649. end;
  106650. function TJSConstrainLongRange._Getmax: LongInt;
  106651. begin
  106652. Result:=ReadJSPropertyLongInt('max');
  106653. end;
  106654. function TJSConstrainLongRange._Getexact: LongInt;
  106655. begin
  106656. Result:=ReadJSPropertyLongInt('exact');
  106657. end;
  106658. function TJSConstrainLongRange._Getideal: LongInt;
  106659. begin
  106660. Result:=ReadJSPropertyLongInt('ideal');
  106661. end;
  106662. procedure TJSConstrainLongRange._Setmin(const aValue : LongInt);
  106663. begin
  106664. WriteJSPropertyLongInt('min',aValue);
  106665. end;
  106666. procedure TJSConstrainLongRange._Setmax(const aValue : LongInt);
  106667. begin
  106668. WriteJSPropertyLongInt('max',aValue);
  106669. end;
  106670. procedure TJSConstrainLongRange._Setexact(const aValue : LongInt);
  106671. begin
  106672. WriteJSPropertyLongInt('exact',aValue);
  106673. end;
  106674. procedure TJSConstrainLongRange._Setideal(const aValue : LongInt);
  106675. begin
  106676. WriteJSPropertyLongInt('ideal',aValue);
  106677. end;
  106678. class function TJSConstrainLongRange.JSClassName: UnicodeString;
  106679. begin
  106680. Result:='Object';
  106681. end;
  106682. class function TJSConstrainLongRange.Cast(const Intf: IJSObject): IJSConstrainLongRange;
  106683. begin
  106684. Result:=TJSConstrainLongRange.JOBCast(Intf);
  106685. end;
  106686. function TJSConstrainDoubleRange._Getmin: Double;
  106687. begin
  106688. Result:=ReadJSPropertyDouble('min');
  106689. end;
  106690. function TJSConstrainDoubleRange._Getmax: Double;
  106691. begin
  106692. Result:=ReadJSPropertyDouble('max');
  106693. end;
  106694. function TJSConstrainDoubleRange._Getexact: Double;
  106695. begin
  106696. Result:=ReadJSPropertyDouble('exact');
  106697. end;
  106698. function TJSConstrainDoubleRange._Getideal: Double;
  106699. begin
  106700. Result:=ReadJSPropertyDouble('ideal');
  106701. end;
  106702. procedure TJSConstrainDoubleRange._Setmin(const aValue : Double);
  106703. begin
  106704. WriteJSPropertyDouble('min',aValue);
  106705. end;
  106706. procedure TJSConstrainDoubleRange._Setmax(const aValue : Double);
  106707. begin
  106708. WriteJSPropertyDouble('max',aValue);
  106709. end;
  106710. procedure TJSConstrainDoubleRange._Setexact(const aValue : Double);
  106711. begin
  106712. WriteJSPropertyDouble('exact',aValue);
  106713. end;
  106714. procedure TJSConstrainDoubleRange._Setideal(const aValue : Double);
  106715. begin
  106716. WriteJSPropertyDouble('ideal',aValue);
  106717. end;
  106718. class function TJSConstrainDoubleRange.JSClassName: UnicodeString;
  106719. begin
  106720. Result:='Object';
  106721. end;
  106722. class function TJSConstrainDoubleRange.Cast(const Intf: IJSObject): IJSConstrainDoubleRange;
  106723. begin
  106724. Result:=TJSConstrainDoubleRange.JOBCast(Intf);
  106725. end;
  106726. function TJSConstrainBooleanParameters._Getexact: Boolean;
  106727. begin
  106728. Result:=ReadJSPropertyBoolean('exact');
  106729. end;
  106730. function TJSConstrainBooleanParameters._Getideal: Boolean;
  106731. begin
  106732. Result:=ReadJSPropertyBoolean('ideal');
  106733. end;
  106734. procedure TJSConstrainBooleanParameters._Setexact(const aValue : Boolean);
  106735. begin
  106736. WriteJSPropertyBoolean('exact',aValue);
  106737. end;
  106738. procedure TJSConstrainBooleanParameters._Setideal(const aValue : Boolean);
  106739. begin
  106740. WriteJSPropertyBoolean('ideal',aValue);
  106741. end;
  106742. class function TJSConstrainBooleanParameters.JSClassName: UnicodeString;
  106743. begin
  106744. Result:='Object';
  106745. end;
  106746. class function TJSConstrainBooleanParameters.Cast(const Intf: IJSObject): IJSConstrainBooleanParameters;
  106747. begin
  106748. Result:=TJSConstrainBooleanParameters.JOBCast(Intf);
  106749. end;
  106750. function TJSConstrainDOMStringParameters._Getexact: TConstrainDOMStringParameters_exact_Type;
  106751. begin
  106752. Result:=ReadJSPropertyVariant('exact');
  106753. end;
  106754. function TJSConstrainDOMStringParameters._Getideal: TConstrainDOMStringParameters_ideal_Type;
  106755. begin
  106756. Result:=ReadJSPropertyVariant('ideal');
  106757. end;
  106758. procedure TJSConstrainDOMStringParameters._Setexact(const aValue : TConstrainDOMStringParameters_exact_Type);
  106759. begin
  106760. WriteJSPropertyVariant('exact',aValue);
  106761. end;
  106762. procedure TJSConstrainDOMStringParameters._Setideal(const aValue : TConstrainDOMStringParameters_ideal_Type);
  106763. begin
  106764. WriteJSPropertyVariant('ideal',aValue);
  106765. end;
  106766. class function TJSConstrainDOMStringParameters.JSClassName: UnicodeString;
  106767. begin
  106768. Result:='Object';
  106769. end;
  106770. class function TJSConstrainDOMStringParameters.Cast(const Intf: IJSObject): IJSConstrainDOMStringParameters;
  106771. begin
  106772. Result:=TJSConstrainDOMStringParameters.JOBCast(Intf);
  106773. end;
  106774. function TJSMediaTrackConstraintSet._Getwidth: TConstrainLong;
  106775. begin
  106776. Result:=ReadJSPropertyVariant('width');
  106777. end;
  106778. function TJSMediaTrackConstraintSet._Getheight: TConstrainLong;
  106779. begin
  106780. Result:=ReadJSPropertyVariant('height');
  106781. end;
  106782. function TJSMediaTrackConstraintSet._GetframeRate: TConstrainDouble;
  106783. begin
  106784. Result:=ReadJSPropertyVariant('frameRate');
  106785. end;
  106786. function TJSMediaTrackConstraintSet._GetfacingMode: TConstrainDOMString;
  106787. begin
  106788. Result:=ReadJSPropertyVariant('facingMode');
  106789. end;
  106790. function TJSMediaTrackConstraintSet._GetmediaSource: UnicodeString;
  106791. begin
  106792. Result:=ReadJSPropertyUnicodeString('mediaSource');
  106793. end;
  106794. function TJSMediaTrackConstraintSet._GetbrowserWindow: Int64;
  106795. begin
  106796. Result:=ReadJSPropertyInt64('browserWindow');
  106797. end;
  106798. function TJSMediaTrackConstraintSet._GetscrollWithPage: Boolean;
  106799. begin
  106800. Result:=ReadJSPropertyBoolean('scrollWithPage');
  106801. end;
  106802. function TJSMediaTrackConstraintSet._GetdeviceId: TConstrainDOMString;
  106803. begin
  106804. Result:=ReadJSPropertyVariant('deviceId');
  106805. end;
  106806. function TJSMediaTrackConstraintSet._GetgroupId: TConstrainDOMString;
  106807. begin
  106808. Result:=ReadJSPropertyVariant('groupId');
  106809. end;
  106810. function TJSMediaTrackConstraintSet._GetviewportOffsetX: TConstrainLong;
  106811. begin
  106812. Result:=ReadJSPropertyVariant('viewportOffsetX');
  106813. end;
  106814. function TJSMediaTrackConstraintSet._GetviewportOffsetY: TConstrainLong;
  106815. begin
  106816. Result:=ReadJSPropertyVariant('viewportOffsetY');
  106817. end;
  106818. function TJSMediaTrackConstraintSet._GetviewportWidth: TConstrainLong;
  106819. begin
  106820. Result:=ReadJSPropertyVariant('viewportWidth');
  106821. end;
  106822. function TJSMediaTrackConstraintSet._GetviewportHeight: TConstrainLong;
  106823. begin
  106824. Result:=ReadJSPropertyVariant('viewportHeight');
  106825. end;
  106826. function TJSMediaTrackConstraintSet._GetechoCancellation: TConstrainBoolean;
  106827. begin
  106828. Result:=ReadJSPropertyVariant('echoCancellation');
  106829. end;
  106830. function TJSMediaTrackConstraintSet._GetnoiseSuppression: TConstrainBoolean;
  106831. begin
  106832. Result:=ReadJSPropertyVariant('noiseSuppression');
  106833. end;
  106834. function TJSMediaTrackConstraintSet._GetautoGainControl: TConstrainBoolean;
  106835. begin
  106836. Result:=ReadJSPropertyVariant('autoGainControl');
  106837. end;
  106838. function TJSMediaTrackConstraintSet._GetchannelCount: TConstrainLong;
  106839. begin
  106840. Result:=ReadJSPropertyVariant('channelCount');
  106841. end;
  106842. procedure TJSMediaTrackConstraintSet._Setwidth(const aValue : TConstrainLong);
  106843. begin
  106844. WriteJSPropertyVariant('width',aValue);
  106845. end;
  106846. procedure TJSMediaTrackConstraintSet._Setheight(const aValue : TConstrainLong);
  106847. begin
  106848. WriteJSPropertyVariant('height',aValue);
  106849. end;
  106850. procedure TJSMediaTrackConstraintSet._SetframeRate(const aValue : TConstrainDouble);
  106851. begin
  106852. WriteJSPropertyVariant('frameRate',aValue);
  106853. end;
  106854. procedure TJSMediaTrackConstraintSet._SetfacingMode(const aValue : TConstrainDOMString);
  106855. begin
  106856. WriteJSPropertyVariant('facingMode',aValue);
  106857. end;
  106858. procedure TJSMediaTrackConstraintSet._SetmediaSource(const aValue : UnicodeString);
  106859. begin
  106860. WriteJSPropertyUnicodeString('mediaSource',aValue);
  106861. end;
  106862. procedure TJSMediaTrackConstraintSet._SetbrowserWindow(const aValue : Int64);
  106863. begin
  106864. WriteJSPropertyDouble('browserWindow',aValue);
  106865. end;
  106866. procedure TJSMediaTrackConstraintSet._SetscrollWithPage(const aValue : Boolean);
  106867. begin
  106868. WriteJSPropertyBoolean('scrollWithPage',aValue);
  106869. end;
  106870. procedure TJSMediaTrackConstraintSet._SetdeviceId(const aValue : TConstrainDOMString);
  106871. begin
  106872. WriteJSPropertyVariant('deviceId',aValue);
  106873. end;
  106874. procedure TJSMediaTrackConstraintSet._SetgroupId(const aValue : TConstrainDOMString);
  106875. begin
  106876. WriteJSPropertyVariant('groupId',aValue);
  106877. end;
  106878. procedure TJSMediaTrackConstraintSet._SetviewportOffsetX(const aValue : TConstrainLong);
  106879. begin
  106880. WriteJSPropertyVariant('viewportOffsetX',aValue);
  106881. end;
  106882. procedure TJSMediaTrackConstraintSet._SetviewportOffsetY(const aValue : TConstrainLong);
  106883. begin
  106884. WriteJSPropertyVariant('viewportOffsetY',aValue);
  106885. end;
  106886. procedure TJSMediaTrackConstraintSet._SetviewportWidth(const aValue : TConstrainLong);
  106887. begin
  106888. WriteJSPropertyVariant('viewportWidth',aValue);
  106889. end;
  106890. procedure TJSMediaTrackConstraintSet._SetviewportHeight(const aValue : TConstrainLong);
  106891. begin
  106892. WriteJSPropertyVariant('viewportHeight',aValue);
  106893. end;
  106894. procedure TJSMediaTrackConstraintSet._SetechoCancellation(const aValue : TConstrainBoolean);
  106895. begin
  106896. WriteJSPropertyVariant('echoCancellation',aValue);
  106897. end;
  106898. procedure TJSMediaTrackConstraintSet._SetnoiseSuppression(const aValue : TConstrainBoolean);
  106899. begin
  106900. WriteJSPropertyVariant('noiseSuppression',aValue);
  106901. end;
  106902. procedure TJSMediaTrackConstraintSet._SetautoGainControl(const aValue : TConstrainBoolean);
  106903. begin
  106904. WriteJSPropertyVariant('autoGainControl',aValue);
  106905. end;
  106906. procedure TJSMediaTrackConstraintSet._SetchannelCount(const aValue : TConstrainLong);
  106907. begin
  106908. WriteJSPropertyVariant('channelCount',aValue);
  106909. end;
  106910. class function TJSMediaTrackConstraintSet.JSClassName: UnicodeString;
  106911. begin
  106912. Result:='Object';
  106913. end;
  106914. class function TJSMediaTrackConstraintSet.Cast(const Intf: IJSObject): IJSMediaTrackConstraintSet;
  106915. begin
  106916. Result:=TJSMediaTrackConstraintSet.JOBCast(Intf);
  106917. end;
  106918. function TJSMediaTrackConstraints._Getadvanced: TJSMediaTrackConstraintSetDynArray;
  106919. begin
  106920. Result:=ReadJSPropertyObject('advanced',TJSArray) as TJSMediaTrackConstraintSetDynArray;
  106921. end;
  106922. procedure TJSMediaTrackConstraints._Setadvanced(const aValue : TJSMediaTrackConstraintSetDynArray);
  106923. begin
  106924. WriteJSPropertyObject('advanced',aValue);
  106925. end;
  106926. class function TJSMediaTrackConstraints.JSClassName: UnicodeString;
  106927. begin
  106928. Result:='Object';
  106929. end;
  106930. class function TJSMediaTrackConstraints.Cast(const Intf: IJSObject): IJSMediaTrackConstraints;
  106931. begin
  106932. Result:=TJSMediaTrackConstraints.JOBCast(Intf);
  106933. end;
  106934. function TJSMediaStreamTrack._Getkind: UnicodeString;
  106935. begin
  106936. Result:=ReadJSPropertyUnicodeString('kind');
  106937. end;
  106938. function TJSMediaStreamTrack._Getid: UnicodeString;
  106939. begin
  106940. Result:=ReadJSPropertyUnicodeString('id');
  106941. end;
  106942. function TJSMediaStreamTrack._Getlabel_: UnicodeString;
  106943. begin
  106944. Result:=ReadJSPropertyUnicodeString('label');
  106945. end;
  106946. function TJSMediaStreamTrack._Getenabled: Boolean;
  106947. begin
  106948. Result:=ReadJSPropertyBoolean('enabled');
  106949. end;
  106950. function TJSMediaStreamTrack._Getmuted: Boolean;
  106951. begin
  106952. Result:=ReadJSPropertyBoolean('muted');
  106953. end;
  106954. function TJSMediaStreamTrack._Getonmute: TEventHandler;
  106955. begin
  106956. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmute')));
  106957. end;
  106958. function TJSMediaStreamTrack._Getonunmute: TEventHandler;
  106959. begin
  106960. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onunmute')));
  106961. end;
  106962. function TJSMediaStreamTrack._GetreadyState: TMediaStreamTrackState;
  106963. begin
  106964. Result:=ReadJSPropertyUnicodeString('readyState');
  106965. end;
  106966. function TJSMediaStreamTrack._Getonended: TEventHandler;
  106967. begin
  106968. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onended')));
  106969. end;
  106970. procedure TJSMediaStreamTrack._Setenabled(const aValue : Boolean);
  106971. begin
  106972. WriteJSPropertyBoolean('enabled',aValue);
  106973. end;
  106974. procedure TJSMediaStreamTrack._Setonmute(const aValue : TEventHandler);
  106975. begin
  106976. WriteJSPropertyMethod('onmute',TMethod(aValue));
  106977. end;
  106978. procedure TJSMediaStreamTrack._Setonunmute(const aValue : TEventHandler);
  106979. begin
  106980. WriteJSPropertyMethod('onunmute',TMethod(aValue));
  106981. end;
  106982. procedure TJSMediaStreamTrack._Setonended(const aValue : TEventHandler);
  106983. begin
  106984. WriteJSPropertyMethod('onended',TMethod(aValue));
  106985. end;
  106986. function TJSMediaStreamTrack.clone: IJSMediaStreamTrack;
  106987. begin
  106988. Result:=InvokeJSObjectResult('clone',[],TJSMediaStreamTrack) as IJSMediaStreamTrack;
  106989. end;
  106990. procedure TJSMediaStreamTrack.stop;
  106991. begin
  106992. InvokeJSNoResult('stop',[]);
  106993. end;
  106994. function TJSMediaStreamTrack.getConstraints: TJSMediaTrackConstraints;
  106995. begin
  106996. Result:=InvokeJSObjectResult('getConstraints',[],TJSMediaTrackConstraints) as TJSMediaTrackConstraints;
  106997. end;
  106998. function TJSMediaStreamTrack.getSettings: TJSMediaTrackSettings;
  106999. begin
  107000. Result:=InvokeJSObjectResult('getSettings',[],TJSMediaTrackSettings) as TJSMediaTrackSettings;
  107001. end;
  107002. function TJSMediaStreamTrack.applyConstraints(const aConstraints: TJSMediaTrackConstraints): IJSPromise; // Promise<undefined>
  107003. begin
  107004. Result:=InvokeJSObjectResult('applyConstraints',[aConstraints],TJSPromise) as IJSPromise;
  107005. end;
  107006. function TJSMediaStreamTrack.applyConstraints: IJSPromise; // Promise<undefined>
  107007. begin
  107008. Result:=InvokeJSObjectResult('applyConstraints',[],TJSPromise) as IJSPromise;
  107009. end;
  107010. class function TJSMediaStreamTrack.JSClassName: UnicodeString;
  107011. begin
  107012. Result:='MediaStreamTrack';
  107013. end;
  107014. class function TJSMediaStreamTrack.Cast(const Intf: IJSObject): IJSMediaStreamTrack;
  107015. begin
  107016. Result:=TJSMediaStreamTrack.JOBCast(Intf);
  107017. end;
  107018. function TJSMediaStreamTrackAudioSourceOptions._GetmediaStreamTrack: IJSMediaStreamTrack;
  107019. begin
  107020. Result:=ReadJSPropertyObject('mediaStreamTrack',TJSMediaStreamTrack) as IJSMediaStreamTrack;
  107021. end;
  107022. procedure TJSMediaStreamTrackAudioSourceOptions._SetmediaStreamTrack(const aValue : IJSMediaStreamTrack);
  107023. begin
  107024. WriteJSPropertyObject('mediaStreamTrack',aValue);
  107025. end;
  107026. class function TJSMediaStreamTrackAudioSourceOptions.JSClassName: UnicodeString;
  107027. begin
  107028. Result:='Object';
  107029. end;
  107030. class function TJSMediaStreamTrackAudioSourceOptions.Cast(const Intf: IJSObject): IJSMediaStreamTrackAudioSourceOptions;
  107031. begin
  107032. Result:=TJSMediaStreamTrackAudioSourceOptions.JOBCast(Intf);
  107033. end;
  107034. constructor TJSMediaStreamTrackAudioSourceNode.Create(aContext: IJSAudioContext; const aOptions: TJSMediaStreamTrackAudioSourceOptions);
  107035. begin
  107036. JOBCreate([aContext,aOptions]);
  107037. end;
  107038. class function TJSMediaStreamTrackAudioSourceNode.JSClassName: UnicodeString;
  107039. begin
  107040. Result:='MediaStreamTrackAudioSourceNode';
  107041. end;
  107042. class function TJSMediaStreamTrackAudioSourceNode.Cast(const Intf: IJSObject): IJSMediaStreamTrackAudioSourceNode;
  107043. begin
  107044. Result:=TJSMediaStreamTrackAudioSourceNode.JOBCast(Intf);
  107045. end;
  107046. function TJSMediaStreamTrackEventInit._Gettrack: IJSMediaStreamTrack;
  107047. begin
  107048. Result:=ReadJSPropertyObject('track',TJSMediaStreamTrack) as IJSMediaStreamTrack;
  107049. end;
  107050. procedure TJSMediaStreamTrackEventInit._Settrack(const aValue : IJSMediaStreamTrack);
  107051. begin
  107052. WriteJSPropertyObject('track',aValue);
  107053. end;
  107054. class function TJSMediaStreamTrackEventInit.JSClassName: UnicodeString;
  107055. begin
  107056. Result:='Object';
  107057. end;
  107058. class function TJSMediaStreamTrackEventInit.Cast(const Intf: IJSObject): IJSMediaStreamTrackEventInit;
  107059. begin
  107060. Result:=TJSMediaStreamTrackEventInit.JOBCast(Intf);
  107061. end;
  107062. function TJSMediaStreamTrackEvent._Gettrack: IJSMediaStreamTrack;
  107063. begin
  107064. Result:=ReadJSPropertyObject('track',TJSMediaStreamTrack) as IJSMediaStreamTrack;
  107065. end;
  107066. constructor TJSMediaStreamTrackEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSMediaStreamTrackEventInit);
  107067. begin
  107068. JOBCreate([aType_,aEventInitDict]);
  107069. end;
  107070. class function TJSMediaStreamTrackEvent.JSClassName: UnicodeString;
  107071. begin
  107072. Result:='MediaStreamTrackEvent';
  107073. end;
  107074. class function TJSMediaStreamTrackEvent.Cast(const Intf: IJSObject): IJSMediaStreamTrackEvent;
  107075. begin
  107076. Result:=TJSMediaStreamTrackEvent.JOBCast(Intf);
  107077. end;
  107078. function TJSMediaTrackSettings._Getwidth: LongInt;
  107079. begin
  107080. Result:=ReadJSPropertyLongInt('width');
  107081. end;
  107082. function TJSMediaTrackSettings._Getheight: LongInt;
  107083. begin
  107084. Result:=ReadJSPropertyLongInt('height');
  107085. end;
  107086. function TJSMediaTrackSettings._GetframeRate: Double;
  107087. begin
  107088. Result:=ReadJSPropertyDouble('frameRate');
  107089. end;
  107090. function TJSMediaTrackSettings._GetfacingMode: UnicodeString;
  107091. begin
  107092. Result:=ReadJSPropertyUnicodeString('facingMode');
  107093. end;
  107094. function TJSMediaTrackSettings._GetechoCancellation: Boolean;
  107095. begin
  107096. Result:=ReadJSPropertyBoolean('echoCancellation');
  107097. end;
  107098. function TJSMediaTrackSettings._GetautoGainControl: Boolean;
  107099. begin
  107100. Result:=ReadJSPropertyBoolean('autoGainControl');
  107101. end;
  107102. function TJSMediaTrackSettings._GetnoiseSuppression: Boolean;
  107103. begin
  107104. Result:=ReadJSPropertyBoolean('noiseSuppression');
  107105. end;
  107106. function TJSMediaTrackSettings._GetchannelCount: LongInt;
  107107. begin
  107108. Result:=ReadJSPropertyLongInt('channelCount');
  107109. end;
  107110. function TJSMediaTrackSettings._GetdeviceId: UnicodeString;
  107111. begin
  107112. Result:=ReadJSPropertyUnicodeString('deviceId');
  107113. end;
  107114. function TJSMediaTrackSettings._GetgroupId: UnicodeString;
  107115. begin
  107116. Result:=ReadJSPropertyUnicodeString('groupId');
  107117. end;
  107118. function TJSMediaTrackSettings._GetmediaSource: UnicodeString;
  107119. begin
  107120. Result:=ReadJSPropertyUnicodeString('mediaSource');
  107121. end;
  107122. function TJSMediaTrackSettings._GetbrowserWindow: Int64;
  107123. begin
  107124. Result:=ReadJSPropertyInt64('browserWindow');
  107125. end;
  107126. function TJSMediaTrackSettings._GetscrollWithPage: Boolean;
  107127. begin
  107128. Result:=ReadJSPropertyBoolean('scrollWithPage');
  107129. end;
  107130. function TJSMediaTrackSettings._GetviewportOffsetX: LongInt;
  107131. begin
  107132. Result:=ReadJSPropertyLongInt('viewportOffsetX');
  107133. end;
  107134. function TJSMediaTrackSettings._GetviewportOffsetY: LongInt;
  107135. begin
  107136. Result:=ReadJSPropertyLongInt('viewportOffsetY');
  107137. end;
  107138. function TJSMediaTrackSettings._GetviewportWidth: LongInt;
  107139. begin
  107140. Result:=ReadJSPropertyLongInt('viewportWidth');
  107141. end;
  107142. function TJSMediaTrackSettings._GetviewportHeight: LongInt;
  107143. begin
  107144. Result:=ReadJSPropertyLongInt('viewportHeight');
  107145. end;
  107146. procedure TJSMediaTrackSettings._Setwidth(const aValue : LongInt);
  107147. begin
  107148. WriteJSPropertyLongInt('width',aValue);
  107149. end;
  107150. procedure TJSMediaTrackSettings._Setheight(const aValue : LongInt);
  107151. begin
  107152. WriteJSPropertyLongInt('height',aValue);
  107153. end;
  107154. procedure TJSMediaTrackSettings._SetframeRate(const aValue : Double);
  107155. begin
  107156. WriteJSPropertyDouble('frameRate',aValue);
  107157. end;
  107158. procedure TJSMediaTrackSettings._SetfacingMode(const aValue : UnicodeString);
  107159. begin
  107160. WriteJSPropertyUnicodeString('facingMode',aValue);
  107161. end;
  107162. procedure TJSMediaTrackSettings._SetechoCancellation(const aValue : Boolean);
  107163. begin
  107164. WriteJSPropertyBoolean('echoCancellation',aValue);
  107165. end;
  107166. procedure TJSMediaTrackSettings._SetautoGainControl(const aValue : Boolean);
  107167. begin
  107168. WriteJSPropertyBoolean('autoGainControl',aValue);
  107169. end;
  107170. procedure TJSMediaTrackSettings._SetnoiseSuppression(const aValue : Boolean);
  107171. begin
  107172. WriteJSPropertyBoolean('noiseSuppression',aValue);
  107173. end;
  107174. procedure TJSMediaTrackSettings._SetchannelCount(const aValue : LongInt);
  107175. begin
  107176. WriteJSPropertyLongInt('channelCount',aValue);
  107177. end;
  107178. procedure TJSMediaTrackSettings._SetdeviceId(const aValue : UnicodeString);
  107179. begin
  107180. WriteJSPropertyUnicodeString('deviceId',aValue);
  107181. end;
  107182. procedure TJSMediaTrackSettings._SetgroupId(const aValue : UnicodeString);
  107183. begin
  107184. WriteJSPropertyUnicodeString('groupId',aValue);
  107185. end;
  107186. procedure TJSMediaTrackSettings._SetmediaSource(const aValue : UnicodeString);
  107187. begin
  107188. WriteJSPropertyUnicodeString('mediaSource',aValue);
  107189. end;
  107190. procedure TJSMediaTrackSettings._SetbrowserWindow(const aValue : Int64);
  107191. begin
  107192. WriteJSPropertyDouble('browserWindow',aValue);
  107193. end;
  107194. procedure TJSMediaTrackSettings._SetscrollWithPage(const aValue : Boolean);
  107195. begin
  107196. WriteJSPropertyBoolean('scrollWithPage',aValue);
  107197. end;
  107198. procedure TJSMediaTrackSettings._SetviewportOffsetX(const aValue : LongInt);
  107199. begin
  107200. WriteJSPropertyLongInt('viewportOffsetX',aValue);
  107201. end;
  107202. procedure TJSMediaTrackSettings._SetviewportOffsetY(const aValue : LongInt);
  107203. begin
  107204. WriteJSPropertyLongInt('viewportOffsetY',aValue);
  107205. end;
  107206. procedure TJSMediaTrackSettings._SetviewportWidth(const aValue : LongInt);
  107207. begin
  107208. WriteJSPropertyLongInt('viewportWidth',aValue);
  107209. end;
  107210. procedure TJSMediaTrackSettings._SetviewportHeight(const aValue : LongInt);
  107211. begin
  107212. WriteJSPropertyLongInt('viewportHeight',aValue);
  107213. end;
  107214. class function TJSMediaTrackSettings.JSClassName: UnicodeString;
  107215. begin
  107216. Result:='Object';
  107217. end;
  107218. class function TJSMediaTrackSettings.Cast(const Intf: IJSObject): IJSMediaTrackSettings;
  107219. begin
  107220. Result:=TJSMediaTrackSettings.JOBCast(Intf);
  107221. end;
  107222. function TJSMediaTrackSupportedConstraints._Getwidth: Boolean;
  107223. begin
  107224. Result:=ReadJSPropertyBoolean('width');
  107225. end;
  107226. function TJSMediaTrackSupportedConstraints._Getheight: Boolean;
  107227. begin
  107228. Result:=ReadJSPropertyBoolean('height');
  107229. end;
  107230. function TJSMediaTrackSupportedConstraints._GetaspectRatio: Boolean;
  107231. begin
  107232. Result:=ReadJSPropertyBoolean('aspectRatio');
  107233. end;
  107234. function TJSMediaTrackSupportedConstraints._GetframeRate: Boolean;
  107235. begin
  107236. Result:=ReadJSPropertyBoolean('frameRate');
  107237. end;
  107238. function TJSMediaTrackSupportedConstraints._GetfacingMode: Boolean;
  107239. begin
  107240. Result:=ReadJSPropertyBoolean('facingMode');
  107241. end;
  107242. function TJSMediaTrackSupportedConstraints._Getvolume: Boolean;
  107243. begin
  107244. Result:=ReadJSPropertyBoolean('volume');
  107245. end;
  107246. function TJSMediaTrackSupportedConstraints._GetsampleRate: Boolean;
  107247. begin
  107248. Result:=ReadJSPropertyBoolean('sampleRate');
  107249. end;
  107250. function TJSMediaTrackSupportedConstraints._GetsampleSize: Boolean;
  107251. begin
  107252. Result:=ReadJSPropertyBoolean('sampleSize');
  107253. end;
  107254. function TJSMediaTrackSupportedConstraints._GetechoCancellation: Boolean;
  107255. begin
  107256. Result:=ReadJSPropertyBoolean('echoCancellation');
  107257. end;
  107258. function TJSMediaTrackSupportedConstraints._GetnoiseSuppression: Boolean;
  107259. begin
  107260. Result:=ReadJSPropertyBoolean('noiseSuppression');
  107261. end;
  107262. function TJSMediaTrackSupportedConstraints._GetautoGainControl: Boolean;
  107263. begin
  107264. Result:=ReadJSPropertyBoolean('autoGainControl');
  107265. end;
  107266. function TJSMediaTrackSupportedConstraints._Getlatency: Boolean;
  107267. begin
  107268. Result:=ReadJSPropertyBoolean('latency');
  107269. end;
  107270. function TJSMediaTrackSupportedConstraints._GetchannelCount: Boolean;
  107271. begin
  107272. Result:=ReadJSPropertyBoolean('channelCount');
  107273. end;
  107274. function TJSMediaTrackSupportedConstraints._GetdeviceId: Boolean;
  107275. begin
  107276. Result:=ReadJSPropertyBoolean('deviceId');
  107277. end;
  107278. function TJSMediaTrackSupportedConstraints._GetgroupId: Boolean;
  107279. begin
  107280. Result:=ReadJSPropertyBoolean('groupId');
  107281. end;
  107282. function TJSMediaTrackSupportedConstraints._GetmediaSource: Boolean;
  107283. begin
  107284. Result:=ReadJSPropertyBoolean('mediaSource');
  107285. end;
  107286. function TJSMediaTrackSupportedConstraints._GetbrowserWindow: Boolean;
  107287. begin
  107288. Result:=ReadJSPropertyBoolean('browserWindow');
  107289. end;
  107290. function TJSMediaTrackSupportedConstraints._GetscrollWithPage: Boolean;
  107291. begin
  107292. Result:=ReadJSPropertyBoolean('scrollWithPage');
  107293. end;
  107294. function TJSMediaTrackSupportedConstraints._GetviewportOffsetX: Boolean;
  107295. begin
  107296. Result:=ReadJSPropertyBoolean('viewportOffsetX');
  107297. end;
  107298. function TJSMediaTrackSupportedConstraints._GetviewportOffsetY: Boolean;
  107299. begin
  107300. Result:=ReadJSPropertyBoolean('viewportOffsetY');
  107301. end;
  107302. function TJSMediaTrackSupportedConstraints._GetviewportWidth: Boolean;
  107303. begin
  107304. Result:=ReadJSPropertyBoolean('viewportWidth');
  107305. end;
  107306. function TJSMediaTrackSupportedConstraints._GetviewportHeight: Boolean;
  107307. begin
  107308. Result:=ReadJSPropertyBoolean('viewportHeight');
  107309. end;
  107310. procedure TJSMediaTrackSupportedConstraints._Setwidth(const aValue : Boolean);
  107311. begin
  107312. WriteJSPropertyBoolean('width',aValue);
  107313. end;
  107314. procedure TJSMediaTrackSupportedConstraints._Setheight(const aValue : Boolean);
  107315. begin
  107316. WriteJSPropertyBoolean('height',aValue);
  107317. end;
  107318. procedure TJSMediaTrackSupportedConstraints._SetaspectRatio(const aValue : Boolean);
  107319. begin
  107320. WriteJSPropertyBoolean('aspectRatio',aValue);
  107321. end;
  107322. procedure TJSMediaTrackSupportedConstraints._SetframeRate(const aValue : Boolean);
  107323. begin
  107324. WriteJSPropertyBoolean('frameRate',aValue);
  107325. end;
  107326. procedure TJSMediaTrackSupportedConstraints._SetfacingMode(const aValue : Boolean);
  107327. begin
  107328. WriteJSPropertyBoolean('facingMode',aValue);
  107329. end;
  107330. procedure TJSMediaTrackSupportedConstraints._Setvolume(const aValue : Boolean);
  107331. begin
  107332. WriteJSPropertyBoolean('volume',aValue);
  107333. end;
  107334. procedure TJSMediaTrackSupportedConstraints._SetsampleRate(const aValue : Boolean);
  107335. begin
  107336. WriteJSPropertyBoolean('sampleRate',aValue);
  107337. end;
  107338. procedure TJSMediaTrackSupportedConstraints._SetsampleSize(const aValue : Boolean);
  107339. begin
  107340. WriteJSPropertyBoolean('sampleSize',aValue);
  107341. end;
  107342. procedure TJSMediaTrackSupportedConstraints._SetechoCancellation(const aValue : Boolean);
  107343. begin
  107344. WriteJSPropertyBoolean('echoCancellation',aValue);
  107345. end;
  107346. procedure TJSMediaTrackSupportedConstraints._SetnoiseSuppression(const aValue : Boolean);
  107347. begin
  107348. WriteJSPropertyBoolean('noiseSuppression',aValue);
  107349. end;
  107350. procedure TJSMediaTrackSupportedConstraints._SetautoGainControl(const aValue : Boolean);
  107351. begin
  107352. WriteJSPropertyBoolean('autoGainControl',aValue);
  107353. end;
  107354. procedure TJSMediaTrackSupportedConstraints._Setlatency(const aValue : Boolean);
  107355. begin
  107356. WriteJSPropertyBoolean('latency',aValue);
  107357. end;
  107358. procedure TJSMediaTrackSupportedConstraints._SetchannelCount(const aValue : Boolean);
  107359. begin
  107360. WriteJSPropertyBoolean('channelCount',aValue);
  107361. end;
  107362. procedure TJSMediaTrackSupportedConstraints._SetdeviceId(const aValue : Boolean);
  107363. begin
  107364. WriteJSPropertyBoolean('deviceId',aValue);
  107365. end;
  107366. procedure TJSMediaTrackSupportedConstraints._SetgroupId(const aValue : Boolean);
  107367. begin
  107368. WriteJSPropertyBoolean('groupId',aValue);
  107369. end;
  107370. procedure TJSMediaTrackSupportedConstraints._SetmediaSource(const aValue : Boolean);
  107371. begin
  107372. WriteJSPropertyBoolean('mediaSource',aValue);
  107373. end;
  107374. procedure TJSMediaTrackSupportedConstraints._SetbrowserWindow(const aValue : Boolean);
  107375. begin
  107376. WriteJSPropertyBoolean('browserWindow',aValue);
  107377. end;
  107378. procedure TJSMediaTrackSupportedConstraints._SetscrollWithPage(const aValue : Boolean);
  107379. begin
  107380. WriteJSPropertyBoolean('scrollWithPage',aValue);
  107381. end;
  107382. procedure TJSMediaTrackSupportedConstraints._SetviewportOffsetX(const aValue : Boolean);
  107383. begin
  107384. WriteJSPropertyBoolean('viewportOffsetX',aValue);
  107385. end;
  107386. procedure TJSMediaTrackSupportedConstraints._SetviewportOffsetY(const aValue : Boolean);
  107387. begin
  107388. WriteJSPropertyBoolean('viewportOffsetY',aValue);
  107389. end;
  107390. procedure TJSMediaTrackSupportedConstraints._SetviewportWidth(const aValue : Boolean);
  107391. begin
  107392. WriteJSPropertyBoolean('viewportWidth',aValue);
  107393. end;
  107394. procedure TJSMediaTrackSupportedConstraints._SetviewportHeight(const aValue : Boolean);
  107395. begin
  107396. WriteJSPropertyBoolean('viewportHeight',aValue);
  107397. end;
  107398. class function TJSMediaTrackSupportedConstraints.JSClassName: UnicodeString;
  107399. begin
  107400. Result:='Object';
  107401. end;
  107402. class function TJSMediaTrackSupportedConstraints.Cast(const Intf: IJSObject): IJSMediaTrackSupportedConstraints;
  107403. begin
  107404. Result:=TJSMediaTrackSupportedConstraints.JOBCast(Intf);
  107405. end;
  107406. function TJSMerchantValidationEvent._GetmethodName: UnicodeString;
  107407. begin
  107408. Result:=ReadJSPropertyUnicodeString('methodName');
  107409. end;
  107410. function TJSMerchantValidationEvent._GetvalidationURL: UnicodeString;
  107411. begin
  107412. Result:=ReadJSPropertyUnicodeString('validationURL');
  107413. end;
  107414. constructor TJSMerchantValidationEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSMerchantValidationEventInit);
  107415. begin
  107416. JOBCreate([aType_,aEventInitDict]);
  107417. end;
  107418. constructor TJSMerchantValidationEvent.Create(const aType_: UnicodeString);
  107419. begin
  107420. JOBCreate([aType_]);
  107421. end;
  107422. procedure TJSMerchantValidationEvent.complete(aMerchantSessionPromise: IJSPromise);
  107423. begin
  107424. InvokeJSNoResult('complete',[aMerchantSessionPromise]);
  107425. end;
  107426. class function TJSMerchantValidationEvent.JSClassName: UnicodeString;
  107427. begin
  107428. Result:='MerchantValidationEvent';
  107429. end;
  107430. class function TJSMerchantValidationEvent.Cast(const Intf: IJSObject): IJSMerchantValidationEvent;
  107431. begin
  107432. Result:=TJSMerchantValidationEvent.JOBCast(Intf);
  107433. end;
  107434. function TJSMerchantValidationEventInit._GetmethodName: UnicodeString;
  107435. begin
  107436. Result:=ReadJSPropertyUnicodeString('methodName');
  107437. end;
  107438. function TJSMerchantValidationEventInit._GetvalidationURL: UnicodeString;
  107439. begin
  107440. Result:=ReadJSPropertyUnicodeString('validationURL');
  107441. end;
  107442. procedure TJSMerchantValidationEventInit._SetmethodName(const aValue : UnicodeString);
  107443. begin
  107444. WriteJSPropertyUnicodeString('methodName',aValue);
  107445. end;
  107446. procedure TJSMerchantValidationEventInit._SetvalidationURL(const aValue : UnicodeString);
  107447. begin
  107448. WriteJSPropertyUnicodeString('validationURL',aValue);
  107449. end;
  107450. class function TJSMerchantValidationEventInit.JSClassName: UnicodeString;
  107451. begin
  107452. Result:='Object';
  107453. end;
  107454. class function TJSMerchantValidationEventInit.Cast(const Intf: IJSObject): IJSMerchantValidationEventInit;
  107455. begin
  107456. Result:=TJSMerchantValidationEventInit.JOBCast(Intf);
  107457. end;
  107458. function TJSMessageChannel._Getport1: IJSMessagePort;
  107459. begin
  107460. Result:=ReadJSPropertyObject('port1',TJSMessagePort) as IJSMessagePort;
  107461. end;
  107462. function TJSMessageChannel._Getport2: IJSMessagePort;
  107463. begin
  107464. Result:=ReadJSPropertyObject('port2',TJSMessagePort) as IJSMessagePort;
  107465. end;
  107466. constructor TJSMessageChannel.Create;
  107467. begin
  107468. JOBCreate([]);
  107469. end;
  107470. class function TJSMessageChannel.JSClassName: UnicodeString;
  107471. begin
  107472. Result:='MessageChannel';
  107473. end;
  107474. class function TJSMessageChannel.Cast(const Intf: IJSObject): IJSMessageChannel;
  107475. begin
  107476. Result:=TJSMessageChannel.JOBCast(Intf);
  107477. end;
  107478. function TJSMessageEvent._Getdata: Variant;
  107479. begin
  107480. Result:=ReadJSPropertyVariant('data');
  107481. end;
  107482. function TJSMessageEvent._Getorigin: UnicodeString;
  107483. begin
  107484. Result:=ReadJSPropertyUnicodeString('origin');
  107485. end;
  107486. function TJSMessageEvent._GetlastEventId: UnicodeString;
  107487. begin
  107488. Result:=ReadJSPropertyUnicodeString('lastEventId');
  107489. end;
  107490. function TJSMessageEvent._Getsource: TMessageEventSource;
  107491. begin
  107492. Result:=ReadJSPropertyVariant('source');
  107493. end;
  107494. function TJSMessageEvent._Getports: TJSMessagePortDynArray;
  107495. begin
  107496. Result:=ReadJSPropertyObject('ports',TJSArray) as TJSMessagePortDynArray;
  107497. end;
  107498. constructor TJSMessageEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSMessageEventInit);
  107499. begin
  107500. JOBCreate([aType_,aEventInitDict]);
  107501. end;
  107502. constructor TJSMessageEvent.Create(const aType_: UnicodeString);
  107503. begin
  107504. JOBCreate([aType_]);
  107505. end;
  107506. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSMessagePort; const aPorts: TJSMessagePortDynArray);
  107507. begin
  107508. InvokeJSNoResult('initMessageEvent',[aType_,aBubbles,aCancelable,aData,aOrigin,aLastEventId,aSource,aPorts]);
  107509. end;
  107510. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString);
  107511. begin
  107512. InvokeJSNoResult('initMessageEvent',[aType_]);
  107513. end;
  107514. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean);
  107515. begin
  107516. InvokeJSNoResult('initMessageEvent',[aType_,aBubbles]);
  107517. end;
  107518. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean);
  107519. begin
  107520. InvokeJSNoResult('initMessageEvent',[aType_,aBubbles,aCancelable]);
  107521. end;
  107522. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant);
  107523. begin
  107524. InvokeJSNoResult('initMessageEvent',[aType_,aBubbles,aCancelable,aData]);
  107525. end;
  107526. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString);
  107527. begin
  107528. InvokeJSNoResult('initMessageEvent',[aType_,aBubbles,aCancelable,aData,aOrigin]);
  107529. end;
  107530. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString);
  107531. begin
  107532. InvokeJSNoResult('initMessageEvent',[aType_,aBubbles,aCancelable,aData,aOrigin,aLastEventId]);
  107533. end;
  107534. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSServiceWorker; const aPorts: TJSMessagePortDynArray);
  107535. begin
  107536. InvokeJSNoResult('initMessageEvent',[aType_,aBubbles,aCancelable,aData,aOrigin,aLastEventId,aSource,aPorts]);
  107537. end;
  107538. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSWindowProxy; const aPorts: TJSMessagePortDynArray);
  107539. begin
  107540. InvokeJSNoResult('initMessageEvent',[aType_,aBubbles,aCancelable,aData,aOrigin,aLastEventId,aSource,aPorts]);
  107541. end;
  107542. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSWindowProxy);
  107543. begin
  107544. InvokeJSNoResult('initMessageEvent',[aType_,aBubbles,aCancelable,aData,aOrigin,aLastEventId,aSource]);
  107545. end;
  107546. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSServiceWorker);
  107547. begin
  107548. InvokeJSNoResult('initMessageEvent',[aType_,aBubbles,aCancelable,aData,aOrigin,aLastEventId,aSource]);
  107549. end;
  107550. procedure TJSMessageEvent.initMessageEvent(const aType_: UnicodeString; aBubbles: Boolean; aCancelable: Boolean; const aData: Variant; const aOrigin: UnicodeString; const aLastEventId: UnicodeString; aSource: IJSMessagePort);
  107551. begin
  107552. InvokeJSNoResult('initMessageEvent',[aType_,aBubbles,aCancelable,aData,aOrigin,aLastEventId,aSource]);
  107553. end;
  107554. class function TJSMessageEvent.JSClassName: UnicodeString;
  107555. begin
  107556. Result:='MessageEvent';
  107557. end;
  107558. class function TJSMessageEvent.Cast(const Intf: IJSObject): IJSMessageEvent;
  107559. begin
  107560. Result:=TJSMessageEvent.JOBCast(Intf);
  107561. end;
  107562. function TJSMessageEventInit._Getdata: Variant;
  107563. begin
  107564. Result:=ReadJSPropertyVariant('data');
  107565. end;
  107566. function TJSMessageEventInit._Getorigin: UnicodeString;
  107567. begin
  107568. Result:=ReadJSPropertyUnicodeString('origin');
  107569. end;
  107570. function TJSMessageEventInit._GetlastEventId: UnicodeString;
  107571. begin
  107572. Result:=ReadJSPropertyUnicodeString('lastEventId');
  107573. end;
  107574. function TJSMessageEventInit._Getsource: TMessageEventSource;
  107575. begin
  107576. Result:=ReadJSPropertyVariant('source');
  107577. end;
  107578. function TJSMessageEventInit._Getports: TJSMessagePortDynArray;
  107579. begin
  107580. Result:=ReadJSPropertyObject('ports',TJSArray) as TJSMessagePortDynArray;
  107581. end;
  107582. procedure TJSMessageEventInit._Setdata(const aValue : Variant);
  107583. begin
  107584. WriteJSPropertyVariant('data',aValue);
  107585. end;
  107586. procedure TJSMessageEventInit._Setorigin(const aValue : UnicodeString);
  107587. begin
  107588. WriteJSPropertyUnicodeString('origin',aValue);
  107589. end;
  107590. procedure TJSMessageEventInit._SetlastEventId(const aValue : UnicodeString);
  107591. begin
  107592. WriteJSPropertyUnicodeString('lastEventId',aValue);
  107593. end;
  107594. procedure TJSMessageEventInit._Setsource(const aValue : TMessageEventSource);
  107595. begin
  107596. WriteJSPropertyVariant('source',aValue);
  107597. end;
  107598. procedure TJSMessageEventInit._Setports(const aValue : TJSMessagePortDynArray);
  107599. begin
  107600. WriteJSPropertyObject('ports',aValue);
  107601. end;
  107602. class function TJSMessageEventInit.JSClassName: UnicodeString;
  107603. begin
  107604. Result:='Object';
  107605. end;
  107606. class function TJSMessageEventInit.Cast(const Intf: IJSObject): IJSMessageEventInit;
  107607. begin
  107608. Result:=TJSMessageEventInit.JOBCast(Intf);
  107609. end;
  107610. function TJSMessagePort._Getonmessage: TEventHandler;
  107611. begin
  107612. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  107613. end;
  107614. function TJSMessagePort._Getonmessageerror: TEventHandler;
  107615. begin
  107616. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessageerror')));
  107617. end;
  107618. procedure TJSMessagePort._Setonmessage(const aValue : TEventHandler);
  107619. begin
  107620. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  107621. end;
  107622. procedure TJSMessagePort._Setonmessageerror(const aValue : TEventHandler);
  107623. begin
  107624. WriteJSPropertyMethod('onmessageerror',TMethod(aValue));
  107625. end;
  107626. procedure TJSMessagePort.postMessage(const aMessage: Variant; const aTransferable: TIJSObjectDynArray);
  107627. begin
  107628. InvokeJSNoResult('postMessage',[aMessage,aTransferable]);
  107629. end;
  107630. procedure TJSMessagePort.postMessage(const aMessage: Variant; const aOptions: TJSStructuredSerializeOptions);
  107631. begin
  107632. InvokeJSNoResult('postMessage',[aMessage,aOptions]);
  107633. end;
  107634. procedure TJSMessagePort.postMessage(const aMessage: Variant);
  107635. begin
  107636. InvokeJSNoResult('postMessage',[aMessage]);
  107637. end;
  107638. procedure TJSMessagePort.start;
  107639. begin
  107640. InvokeJSNoResult('start',[]);
  107641. end;
  107642. procedure TJSMessagePort.close;
  107643. begin
  107644. InvokeJSNoResult('close',[]);
  107645. end;
  107646. class function TJSMessagePort.JSClassName: UnicodeString;
  107647. begin
  107648. Result:='MessagePort';
  107649. end;
  107650. class function TJSMessagePort.Cast(const Intf: IJSObject): IJSMessagePort;
  107651. begin
  107652. Result:=TJSMessagePort.JOBCast(Intf);
  107653. end;
  107654. function TJSStructuredSerializeOptions._Gettransfer: TIJSObjectDynArray;
  107655. begin
  107656. Result:=ReadJSPropertyObject('transfer',TJSArray) as TIJSObjectDynArray;
  107657. end;
  107658. procedure TJSStructuredSerializeOptions._Settransfer(const aValue : TIJSObjectDynArray);
  107659. begin
  107660. WriteJSPropertyObject('transfer',aValue);
  107661. end;
  107662. class function TJSStructuredSerializeOptions.JSClassName: UnicodeString;
  107663. begin
  107664. Result:='Object';
  107665. end;
  107666. class function TJSStructuredSerializeOptions.Cast(const Intf: IJSObject): IJSStructuredSerializeOptions;
  107667. begin
  107668. Result:=TJSStructuredSerializeOptions.JOBCast(Intf);
  107669. end;
  107670. function TJSMIDIAccess._Getinputs: IJSMIDIInputMap;
  107671. begin
  107672. Result:=ReadJSPropertyObject('inputs',TJSMIDIInputMap) as IJSMIDIInputMap;
  107673. end;
  107674. function TJSMIDIAccess._Getoutputs: IJSMIDIOutputMap;
  107675. begin
  107676. Result:=ReadJSPropertyObject('outputs',TJSMIDIOutputMap) as IJSMIDIOutputMap;
  107677. end;
  107678. function TJSMIDIAccess._Getonstatechange: TEventHandler;
  107679. begin
  107680. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstatechange')));
  107681. end;
  107682. function TJSMIDIAccess._GetsysexEnabled: Boolean;
  107683. begin
  107684. Result:=ReadJSPropertyBoolean('sysexEnabled');
  107685. end;
  107686. procedure TJSMIDIAccess._Setonstatechange(const aValue : TEventHandler);
  107687. begin
  107688. WriteJSPropertyMethod('onstatechange',TMethod(aValue));
  107689. end;
  107690. class function TJSMIDIAccess.JSClassName: UnicodeString;
  107691. begin
  107692. Result:='MIDIAccess';
  107693. end;
  107694. class function TJSMIDIAccess.Cast(const Intf: IJSObject): IJSMIDIAccess;
  107695. begin
  107696. Result:=TJSMIDIAccess.JOBCast(Intf);
  107697. end;
  107698. function TJSMIDIConnectionEvent._Getport: IJSMIDIPort;
  107699. begin
  107700. Result:=ReadJSPropertyObject('port',TJSMIDIPort) as IJSMIDIPort;
  107701. end;
  107702. constructor TJSMIDIConnectionEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSMIDIConnectionEventInit);
  107703. begin
  107704. JOBCreate([aType_,aEventInitDict]);
  107705. end;
  107706. constructor TJSMIDIConnectionEvent.Create(const aType_: UnicodeString);
  107707. begin
  107708. JOBCreate([aType_]);
  107709. end;
  107710. class function TJSMIDIConnectionEvent.JSClassName: UnicodeString;
  107711. begin
  107712. Result:='MIDIConnectionEvent';
  107713. end;
  107714. class function TJSMIDIConnectionEvent.Cast(const Intf: IJSObject): IJSMIDIConnectionEvent;
  107715. begin
  107716. Result:=TJSMIDIConnectionEvent.JOBCast(Intf);
  107717. end;
  107718. function TJSMIDIConnectionEventInit._Getport: IJSMIDIPort;
  107719. begin
  107720. Result:=ReadJSPropertyObject('port',TJSMIDIPort) as IJSMIDIPort;
  107721. end;
  107722. procedure TJSMIDIConnectionEventInit._Setport(const aValue : IJSMIDIPort);
  107723. begin
  107724. WriteJSPropertyObject('port',aValue);
  107725. end;
  107726. class function TJSMIDIConnectionEventInit.JSClassName: UnicodeString;
  107727. begin
  107728. Result:='Object';
  107729. end;
  107730. class function TJSMIDIConnectionEventInit.Cast(const Intf: IJSObject): IJSMIDIConnectionEventInit;
  107731. begin
  107732. Result:=TJSMIDIConnectionEventInit.JOBCast(Intf);
  107733. end;
  107734. function TJSMIDIInput._Getonmidimessage: TEventHandler;
  107735. begin
  107736. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmidimessage')));
  107737. end;
  107738. procedure TJSMIDIInput._Setonmidimessage(const aValue : TEventHandler);
  107739. begin
  107740. WriteJSPropertyMethod('onmidimessage',TMethod(aValue));
  107741. end;
  107742. class function TJSMIDIInput.JSClassName: UnicodeString;
  107743. begin
  107744. Result:='MIDIInput';
  107745. end;
  107746. class function TJSMIDIInput.Cast(const Intf: IJSObject): IJSMIDIInput;
  107747. begin
  107748. Result:=TJSMIDIInput.JOBCast(Intf);
  107749. end;
  107750. function TJSMIDIInputMap._Getsize: LongInt;
  107751. begin
  107752. Result:=ReadJSPropertyLongInt('size');
  107753. end;
  107754. function TJSMIDIInputMap.get(key: UnicodeString) : TJSMIDIInput;
  107755. begin
  107756. Result:=InvokeJSObjectResult('get',[key],TJSMIDIInput) as TJSMIDIInput;
  107757. end;
  107758. function TJSMIDIInputMap.has(key: UnicodeString) : Boolean;
  107759. begin
  107760. Result:=InvokeJSBooleanResult('has',[key]);
  107761. end;
  107762. function TJSMIDIInputMap.entries : IJSIterator;
  107763. begin
  107764. Result:=InvokeJSObjectResult('entries',[],TJSIterator) as IJSIterator;
  107765. end;
  107766. function TJSMIDIInputMap.keys : IJSIterator;
  107767. begin
  107768. Result:=InvokeJSObjectResult('keys',[],TJSIterator) as IJSIterator;
  107769. end;
  107770. function TJSMIDIInputMap.values : IJSIterator;
  107771. begin
  107772. Result:=InvokeJSObjectResult('values',[],TJSIterator) as IJSIterator;
  107773. end;
  107774. class function TJSMIDIInputMap.JSClassName: UnicodeString;
  107775. begin
  107776. Result:='MIDIInputMap';
  107777. end;
  107778. class function TJSMIDIInputMap.Cast(const Intf: IJSObject): IJSMIDIInputMap;
  107779. begin
  107780. Result:=TJSMIDIInputMap.JOBCast(Intf);
  107781. end;
  107782. function TJSMIDIMessageEvent._Getdata: IJSUint8Array;
  107783. begin
  107784. Result:=ReadJSPropertyObject('data',TJSUint8Array) as IJSUint8Array;
  107785. end;
  107786. constructor TJSMIDIMessageEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSMIDIMessageEventInit);
  107787. begin
  107788. JOBCreate([aType_,aEventInitDict]);
  107789. end;
  107790. constructor TJSMIDIMessageEvent.Create(const aType_: UnicodeString);
  107791. begin
  107792. JOBCreate([aType_]);
  107793. end;
  107794. class function TJSMIDIMessageEvent.JSClassName: UnicodeString;
  107795. begin
  107796. Result:='MIDIMessageEvent';
  107797. end;
  107798. class function TJSMIDIMessageEvent.Cast(const Intf: IJSObject): IJSMIDIMessageEvent;
  107799. begin
  107800. Result:=TJSMIDIMessageEvent.JOBCast(Intf);
  107801. end;
  107802. function TJSMIDIMessageEventInit._Getdata: IJSUint8Array;
  107803. begin
  107804. Result:=ReadJSPropertyObject('data',TJSUint8Array) as IJSUint8Array;
  107805. end;
  107806. procedure TJSMIDIMessageEventInit._Setdata(const aValue : IJSUint8Array);
  107807. begin
  107808. WriteJSPropertyObject('data',aValue);
  107809. end;
  107810. class function TJSMIDIMessageEventInit.JSClassName: UnicodeString;
  107811. begin
  107812. Result:='Object';
  107813. end;
  107814. class function TJSMIDIMessageEventInit.Cast(const Intf: IJSObject): IJSMIDIMessageEventInit;
  107815. begin
  107816. Result:=TJSMIDIMessageEventInit.JOBCast(Intf);
  107817. end;
  107818. function TJSMIDIOptions._Getsysex: Boolean;
  107819. begin
  107820. Result:=ReadJSPropertyBoolean('sysex');
  107821. end;
  107822. function TJSMIDIOptions._Getsoftware: Boolean;
  107823. begin
  107824. Result:=ReadJSPropertyBoolean('software');
  107825. end;
  107826. procedure TJSMIDIOptions._Setsysex(const aValue : Boolean);
  107827. begin
  107828. WriteJSPropertyBoolean('sysex',aValue);
  107829. end;
  107830. procedure TJSMIDIOptions._Setsoftware(const aValue : Boolean);
  107831. begin
  107832. WriteJSPropertyBoolean('software',aValue);
  107833. end;
  107834. class function TJSMIDIOptions.JSClassName: UnicodeString;
  107835. begin
  107836. Result:='Object';
  107837. end;
  107838. class function TJSMIDIOptions.Cast(const Intf: IJSObject): IJSMIDIOptions;
  107839. begin
  107840. Result:=TJSMIDIOptions.JOBCast(Intf);
  107841. end;
  107842. procedure TJSMIDIOutput.send(const aData: TByteDynArray; aTimestamp: TDOMHighResTimeStamp);
  107843. begin
  107844. InvokeJSNoResult('send',[aData,aTimestamp]);
  107845. end;
  107846. procedure TJSMIDIOutput.send(const aData: TByteDynArray);
  107847. begin
  107848. InvokeJSNoResult('send',[aData]);
  107849. end;
  107850. procedure TJSMIDIOutput.clear;
  107851. begin
  107852. InvokeJSNoResult('clear',[]);
  107853. end;
  107854. class function TJSMIDIOutput.JSClassName: UnicodeString;
  107855. begin
  107856. Result:='MIDIOutput';
  107857. end;
  107858. class function TJSMIDIOutput.Cast(const Intf: IJSObject): IJSMIDIOutput;
  107859. begin
  107860. Result:=TJSMIDIOutput.JOBCast(Intf);
  107861. end;
  107862. function TJSMIDIOutputMap._Getsize: LongInt;
  107863. begin
  107864. Result:=ReadJSPropertyLongInt('size');
  107865. end;
  107866. function TJSMIDIOutputMap.get(key: UnicodeString) : TJSMIDIOutput;
  107867. begin
  107868. Result:=InvokeJSObjectResult('get',[key],TJSMIDIOutput) as TJSMIDIOutput;
  107869. end;
  107870. function TJSMIDIOutputMap.has(key: UnicodeString) : Boolean;
  107871. begin
  107872. Result:=InvokeJSBooleanResult('has',[key]);
  107873. end;
  107874. function TJSMIDIOutputMap.entries : IJSIterator;
  107875. begin
  107876. Result:=InvokeJSObjectResult('entries',[],TJSIterator) as IJSIterator;
  107877. end;
  107878. function TJSMIDIOutputMap.keys : IJSIterator;
  107879. begin
  107880. Result:=InvokeJSObjectResult('keys',[],TJSIterator) as IJSIterator;
  107881. end;
  107882. function TJSMIDIOutputMap.values : IJSIterator;
  107883. begin
  107884. Result:=InvokeJSObjectResult('values',[],TJSIterator) as IJSIterator;
  107885. end;
  107886. class function TJSMIDIOutputMap.JSClassName: UnicodeString;
  107887. begin
  107888. Result:='MIDIOutputMap';
  107889. end;
  107890. class function TJSMIDIOutputMap.Cast(const Intf: IJSObject): IJSMIDIOutputMap;
  107891. begin
  107892. Result:=TJSMIDIOutputMap.JOBCast(Intf);
  107893. end;
  107894. function TJSMIDIPort._Getid: UnicodeString;
  107895. begin
  107896. Result:=ReadJSPropertyUnicodeString('id');
  107897. end;
  107898. function TJSMIDIPort._Getmanufacturer: UnicodeString;
  107899. begin
  107900. Result:=ReadJSPropertyUnicodeString('manufacturer');
  107901. end;
  107902. function TJSMIDIPort._Getname: UnicodeString;
  107903. begin
  107904. Result:=ReadJSPropertyUnicodeString('name');
  107905. end;
  107906. function TJSMIDIPort._Getversion: UnicodeString;
  107907. begin
  107908. Result:=ReadJSPropertyUnicodeString('version');
  107909. end;
  107910. function TJSMIDIPort._Gettype_: TMIDIPortType;
  107911. begin
  107912. Result:=ReadJSPropertyUnicodeString('type');
  107913. end;
  107914. function TJSMIDIPort._Getstate: TMIDIPortDeviceState;
  107915. begin
  107916. Result:=ReadJSPropertyUnicodeString('state');
  107917. end;
  107918. function TJSMIDIPort._Getconnection: TMIDIPortConnectionState;
  107919. begin
  107920. Result:=ReadJSPropertyUnicodeString('connection');
  107921. end;
  107922. function TJSMIDIPort._Getonstatechange: TEventHandler;
  107923. begin
  107924. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstatechange')));
  107925. end;
  107926. procedure TJSMIDIPort._Setonstatechange(const aValue : TEventHandler);
  107927. begin
  107928. WriteJSPropertyMethod('onstatechange',TMethod(aValue));
  107929. end;
  107930. function TJSMIDIPort.open: IJSPromise; // Promise<MIDIPort>
  107931. begin
  107932. Result:=InvokeJSObjectResult('open',[],TJSPromise) as IJSPromise;
  107933. end;
  107934. function TJSMIDIPort.close: IJSPromise; // Promise<MIDIPort>
  107935. begin
  107936. Result:=InvokeJSObjectResult('close',[],TJSPromise) as IJSPromise;
  107937. end;
  107938. class function TJSMIDIPort.JSClassName: UnicodeString;
  107939. begin
  107940. Result:='MIDIPort';
  107941. end;
  107942. class function TJSMIDIPort.Cast(const Intf: IJSObject): IJSMIDIPort;
  107943. begin
  107944. Result:=TJSMIDIPort.JOBCast(Intf);
  107945. end;
  107946. function TJSMimeType._Gettype_: UnicodeString;
  107947. begin
  107948. Result:=ReadJSPropertyUnicodeString('type');
  107949. end;
  107950. function TJSMimeType._Getdescription: UnicodeString;
  107951. begin
  107952. Result:=ReadJSPropertyUnicodeString('description');
  107953. end;
  107954. function TJSMimeType._Getsuffixes: UnicodeString;
  107955. begin
  107956. Result:=ReadJSPropertyUnicodeString('suffixes');
  107957. end;
  107958. function TJSMimeType._GetenabledPlugin: IJSPlugin;
  107959. begin
  107960. Result:=ReadJSPropertyObject('enabledPlugin',TJSPlugin) as IJSPlugin;
  107961. end;
  107962. class function TJSMimeType.JSClassName: UnicodeString;
  107963. begin
  107964. Result:='MimeType';
  107965. end;
  107966. class function TJSMimeType.Cast(const Intf: IJSObject): IJSMimeType;
  107967. begin
  107968. Result:=TJSMimeType.JOBCast(Intf);
  107969. end;
  107970. function TJSMimeTypeArray._Getlength_: Cardinal;
  107971. begin
  107972. Result:=ReadJSPropertyInt64('length');
  107973. end;
  107974. function TJSMimeTypeArray.item(aIndex: Cardinal): IJSMimeType;
  107975. begin
  107976. Result:=InvokeJSObjectResult('item',[aIndex],TJSMimeType) as IJSMimeType;
  107977. end;
  107978. function TJSMimeTypeArray.namedItem(const aName: UnicodeString): IJSMimeType;
  107979. begin
  107980. Result:=InvokeJSObjectResult('namedItem',[aName],TJSMimeType) as IJSMimeType;
  107981. end;
  107982. class function TJSMimeTypeArray.JSClassName: UnicodeString;
  107983. begin
  107984. Result:='MimeTypeArray';
  107985. end;
  107986. class function TJSMimeTypeArray.Cast(const Intf: IJSObject): IJSMimeTypeArray;
  107987. begin
  107988. Result:=TJSMimeTypeArray.JOBCast(Intf);
  107989. end;
  107990. function TJSMouseEvent._GetscreenX: LongInt;
  107991. begin
  107992. Result:=ReadJSPropertyLongInt('screenX');
  107993. end;
  107994. function TJSMouseEvent._GetscreenY: LongInt;
  107995. begin
  107996. Result:=ReadJSPropertyLongInt('screenY');
  107997. end;
  107998. function TJSMouseEvent._GetpageX: LongInt;
  107999. begin
  108000. Result:=ReadJSPropertyLongInt('pageX');
  108001. end;
  108002. function TJSMouseEvent._GetpageY: LongInt;
  108003. begin
  108004. Result:=ReadJSPropertyLongInt('pageY');
  108005. end;
  108006. function TJSMouseEvent._GetclientX: LongInt;
  108007. begin
  108008. Result:=ReadJSPropertyLongInt('clientX');
  108009. end;
  108010. function TJSMouseEvent._GetclientY: LongInt;
  108011. begin
  108012. Result:=ReadJSPropertyLongInt('clientY');
  108013. end;
  108014. function TJSMouseEvent._Getx: LongInt;
  108015. begin
  108016. Result:=ReadJSPropertyLongInt('x');
  108017. end;
  108018. function TJSMouseEvent._Gety: LongInt;
  108019. begin
  108020. Result:=ReadJSPropertyLongInt('y');
  108021. end;
  108022. function TJSMouseEvent._GetoffsetX: LongInt;
  108023. begin
  108024. Result:=ReadJSPropertyLongInt('offsetX');
  108025. end;
  108026. function TJSMouseEvent._GetoffsetY: LongInt;
  108027. begin
  108028. Result:=ReadJSPropertyLongInt('offsetY');
  108029. end;
  108030. function TJSMouseEvent._GetctrlKey: Boolean;
  108031. begin
  108032. Result:=ReadJSPropertyBoolean('ctrlKey');
  108033. end;
  108034. function TJSMouseEvent._GetshiftKey: Boolean;
  108035. begin
  108036. Result:=ReadJSPropertyBoolean('shiftKey');
  108037. end;
  108038. function TJSMouseEvent._GetaltKey: Boolean;
  108039. begin
  108040. Result:=ReadJSPropertyBoolean('altKey');
  108041. end;
  108042. function TJSMouseEvent._GetmetaKey: Boolean;
  108043. begin
  108044. Result:=ReadJSPropertyBoolean('metaKey');
  108045. end;
  108046. function TJSMouseEvent._Getbutton: SmallInt;
  108047. begin
  108048. Result:=ReadJSPropertyLongInt('button');
  108049. end;
  108050. function TJSMouseEvent._Getbuttons: Word;
  108051. begin
  108052. Result:=ReadJSPropertyLongInt('buttons');
  108053. end;
  108054. function TJSMouseEvent._GetrelatedTarget: IJSEventTarget;
  108055. begin
  108056. Result:=ReadJSPropertyObject('relatedTarget',TJSEventTarget) as IJSEventTarget;
  108057. end;
  108058. function TJSMouseEvent._GetmovementX: LongInt;
  108059. begin
  108060. Result:=ReadJSPropertyLongInt('movementX');
  108061. end;
  108062. function TJSMouseEvent._GetmovementY: LongInt;
  108063. begin
  108064. Result:=ReadJSPropertyLongInt('movementY');
  108065. end;
  108066. function TJSMouseEvent._GetmozPressure: Single;
  108067. begin
  108068. Result:=ReadJSPropertyDouble('mozPressure');
  108069. end;
  108070. function TJSMouseEvent._GetmozInputSource: Word;
  108071. begin
  108072. Result:=ReadJSPropertyLongInt('mozInputSource');
  108073. end;
  108074. constructor TJSMouseEvent.Create(const aTypeArg: UnicodeString; const aMouseEventInitDict: TJSMouseEventInit);
  108075. begin
  108076. JOBCreate([aTypeArg,aMouseEventInitDict]);
  108077. end;
  108078. constructor TJSMouseEvent.Create(const aTypeArg: UnicodeString);
  108079. begin
  108080. JOBCreate([aTypeArg]);
  108081. end;
  108082. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget);
  108083. begin
  108084. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg,aShiftKeyArg,aMetaKeyArg,aButtonArg,aRelatedTargetArg]);
  108085. end;
  108086. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString);
  108087. begin
  108088. InvokeJSNoResult('initMouseEvent',[aTypeArg]);
  108089. end;
  108090. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean);
  108091. begin
  108092. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg]);
  108093. end;
  108094. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean);
  108095. begin
  108096. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg]);
  108097. end;
  108098. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow);
  108099. begin
  108100. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg]);
  108101. end;
  108102. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt);
  108103. begin
  108104. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg]);
  108105. end;
  108106. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt);
  108107. begin
  108108. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg]);
  108109. end;
  108110. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt);
  108111. begin
  108112. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg]);
  108113. end;
  108114. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt);
  108115. begin
  108116. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg]);
  108117. end;
  108118. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt);
  108119. begin
  108120. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg]);
  108121. end;
  108122. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean);
  108123. begin
  108124. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg]);
  108125. end;
  108126. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean);
  108127. begin
  108128. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg]);
  108129. end;
  108130. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean);
  108131. begin
  108132. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg,aShiftKeyArg]);
  108133. end;
  108134. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean);
  108135. begin
  108136. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg,aShiftKeyArg,aMetaKeyArg]);
  108137. end;
  108138. procedure TJSMouseEvent.initMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt);
  108139. begin
  108140. InvokeJSNoResult('initMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg,aShiftKeyArg,aMetaKeyArg,aButtonArg]);
  108141. end;
  108142. function TJSMouseEvent.getModifierState(const aKeyArg: UnicodeString): Boolean;
  108143. begin
  108144. Result:=InvokeJSBooleanResult('getModifierState',[aKeyArg]);
  108145. end;
  108146. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget; aPressure: Single; aInputSourceArg: Word);
  108147. begin
  108148. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg,aShiftKeyArg,aMetaKeyArg,aButtonArg,aRelatedTargetArg,aPressure,aInputSourceArg]);
  108149. end;
  108150. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString);
  108151. begin
  108152. InvokeJSNoResult('initNSMouseEvent',[aTypeArg]);
  108153. end;
  108154. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean);
  108155. begin
  108156. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg]);
  108157. end;
  108158. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean);
  108159. begin
  108160. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg]);
  108161. end;
  108162. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow);
  108163. begin
  108164. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg]);
  108165. end;
  108166. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt);
  108167. begin
  108168. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg]);
  108169. end;
  108170. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt);
  108171. begin
  108172. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg]);
  108173. end;
  108174. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt);
  108175. begin
  108176. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg]);
  108177. end;
  108178. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt);
  108179. begin
  108180. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg]);
  108181. end;
  108182. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt);
  108183. begin
  108184. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg]);
  108185. end;
  108186. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean);
  108187. begin
  108188. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg]);
  108189. end;
  108190. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean);
  108191. begin
  108192. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg]);
  108193. end;
  108194. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean);
  108195. begin
  108196. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg,aShiftKeyArg]);
  108197. end;
  108198. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean);
  108199. begin
  108200. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg,aShiftKeyArg,aMetaKeyArg]);
  108201. end;
  108202. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt);
  108203. begin
  108204. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg,aShiftKeyArg,aMetaKeyArg,aButtonArg]);
  108205. end;
  108206. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget);
  108207. begin
  108208. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg,aShiftKeyArg,aMetaKeyArg,aButtonArg,aRelatedTargetArg]);
  108209. end;
  108210. procedure TJSMouseEvent.initNSMouseEvent(const aTypeArg: UnicodeString; aCanBubbleArg: Boolean; aCancelableArg: Boolean; aViewArg: IJSWindow; aDetailArg: LongInt; aScreenXArg: LongInt; aScreenYArg: LongInt; aClientXArg: LongInt; aClientYArg: LongInt; aCtrlKeyArg: Boolean; aAltKeyArg: Boolean; aShiftKeyArg: Boolean; aMetaKeyArg: Boolean; aButtonArg: SmallInt; aRelatedTargetArg: IJSEventTarget; aPressure: Single);
  108211. begin
  108212. InvokeJSNoResult('initNSMouseEvent',[aTypeArg,aCanBubbleArg,aCancelableArg,aViewArg,aDetailArg,aScreenXArg,aScreenYArg,aClientXArg,aClientYArg,aCtrlKeyArg,aAltKeyArg,aShiftKeyArg,aMetaKeyArg,aButtonArg,aRelatedTargetArg,aPressure]);
  108213. end;
  108214. class function TJSMouseEvent.JSClassName: UnicodeString;
  108215. begin
  108216. Result:='MouseEvent';
  108217. end;
  108218. class function TJSMouseEvent.Cast(const Intf: IJSObject): IJSMouseEvent;
  108219. begin
  108220. Result:=TJSMouseEvent.JOBCast(Intf);
  108221. end;
  108222. function TJSMouseEventInit._GetscreenX: LongInt;
  108223. begin
  108224. Result:=ReadJSPropertyLongInt('screenX');
  108225. end;
  108226. function TJSMouseEventInit._GetscreenY: LongInt;
  108227. begin
  108228. Result:=ReadJSPropertyLongInt('screenY');
  108229. end;
  108230. function TJSMouseEventInit._GetclientX: LongInt;
  108231. begin
  108232. Result:=ReadJSPropertyLongInt('clientX');
  108233. end;
  108234. function TJSMouseEventInit._GetclientY: LongInt;
  108235. begin
  108236. Result:=ReadJSPropertyLongInt('clientY');
  108237. end;
  108238. function TJSMouseEventInit._Getbutton: SmallInt;
  108239. begin
  108240. Result:=ReadJSPropertyLongInt('button');
  108241. end;
  108242. function TJSMouseEventInit._Getbuttons: Word;
  108243. begin
  108244. Result:=ReadJSPropertyLongInt('buttons');
  108245. end;
  108246. function TJSMouseEventInit._GetrelatedTarget: IJSEventTarget;
  108247. begin
  108248. Result:=ReadJSPropertyObject('relatedTarget',TJSEventTarget) as IJSEventTarget;
  108249. end;
  108250. function TJSMouseEventInit._GetmovementX: LongInt;
  108251. begin
  108252. Result:=ReadJSPropertyLongInt('movementX');
  108253. end;
  108254. function TJSMouseEventInit._GetmovementY: LongInt;
  108255. begin
  108256. Result:=ReadJSPropertyLongInt('movementY');
  108257. end;
  108258. procedure TJSMouseEventInit._SetscreenX(const aValue : LongInt);
  108259. begin
  108260. WriteJSPropertyLongInt('screenX',aValue);
  108261. end;
  108262. procedure TJSMouseEventInit._SetscreenY(const aValue : LongInt);
  108263. begin
  108264. WriteJSPropertyLongInt('screenY',aValue);
  108265. end;
  108266. procedure TJSMouseEventInit._SetclientX(const aValue : LongInt);
  108267. begin
  108268. WriteJSPropertyLongInt('clientX',aValue);
  108269. end;
  108270. procedure TJSMouseEventInit._SetclientY(const aValue : LongInt);
  108271. begin
  108272. WriteJSPropertyLongInt('clientY',aValue);
  108273. end;
  108274. procedure TJSMouseEventInit._Setbutton(const aValue : SmallInt);
  108275. begin
  108276. WriteJSPropertyLongInt('button',aValue);
  108277. end;
  108278. procedure TJSMouseEventInit._Setbuttons(const aValue : Word);
  108279. begin
  108280. WriteJSPropertyLongInt('buttons',aValue);
  108281. end;
  108282. procedure TJSMouseEventInit._SetrelatedTarget(const aValue : IJSEventTarget);
  108283. begin
  108284. WriteJSPropertyObject('relatedTarget',aValue);
  108285. end;
  108286. procedure TJSMouseEventInit._SetmovementX(const aValue : LongInt);
  108287. begin
  108288. WriteJSPropertyLongInt('movementX',aValue);
  108289. end;
  108290. procedure TJSMouseEventInit._SetmovementY(const aValue : LongInt);
  108291. begin
  108292. WriteJSPropertyLongInt('movementY',aValue);
  108293. end;
  108294. class function TJSMouseEventInit.JSClassName: UnicodeString;
  108295. begin
  108296. Result:='Object';
  108297. end;
  108298. class function TJSMouseEventInit.Cast(const Intf: IJSObject): IJSMouseEventInit;
  108299. begin
  108300. Result:=TJSMouseEventInit.JOBCast(Intf);
  108301. end;
  108302. function TJSMouseScrollEvent._Getaxis: LongInt;
  108303. begin
  108304. Result:=ReadJSPropertyLongInt('axis');
  108305. end;
  108306. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aButton: SmallInt; aRelatedTarget: IJSEventTarget; aAxis: LongInt);
  108307. begin
  108308. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aScreenX,aScreenY,aClientX,aClientY,aCtrlKey,aAltKey,aShiftKey,aMetaKey,aButton,aRelatedTarget,aAxis]);
  108309. end;
  108310. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString);
  108311. begin
  108312. InvokeJSNoResult('initMouseScrollEvent',[aType_]);
  108313. end;
  108314. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  108315. begin
  108316. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble]);
  108317. end;
  108318. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  108319. begin
  108320. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable]);
  108321. end;
  108322. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow);
  108323. begin
  108324. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView]);
  108325. end;
  108326. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt);
  108327. begin
  108328. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail]);
  108329. end;
  108330. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt);
  108331. begin
  108332. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aScreenX]);
  108333. end;
  108334. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt);
  108335. begin
  108336. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aScreenX,aScreenY]);
  108337. end;
  108338. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt);
  108339. begin
  108340. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aScreenX,aScreenY,aClientX]);
  108341. end;
  108342. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt);
  108343. begin
  108344. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aScreenX,aScreenY,aClientX,aClientY]);
  108345. end;
  108346. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean);
  108347. begin
  108348. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aScreenX,aScreenY,aClientX,aClientY,aCtrlKey]);
  108349. end;
  108350. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean);
  108351. begin
  108352. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aScreenX,aScreenY,aClientX,aClientY,aCtrlKey,aAltKey]);
  108353. end;
  108354. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean);
  108355. begin
  108356. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aScreenX,aScreenY,aClientX,aClientY,aCtrlKey,aAltKey,aShiftKey]);
  108357. end;
  108358. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean);
  108359. begin
  108360. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aScreenX,aScreenY,aClientX,aClientY,aCtrlKey,aAltKey,aShiftKey,aMetaKey]);
  108361. end;
  108362. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aButton: SmallInt);
  108363. begin
  108364. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aScreenX,aScreenY,aClientX,aClientY,aCtrlKey,aAltKey,aShiftKey,aMetaKey,aButton]);
  108365. end;
  108366. procedure TJSMouseScrollEvent.initMouseScrollEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aScreenX: LongInt; aScreenY: LongInt; aClientX: LongInt; aClientY: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aButton: SmallInt; aRelatedTarget: IJSEventTarget);
  108367. begin
  108368. InvokeJSNoResult('initMouseScrollEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aScreenX,aScreenY,aClientX,aClientY,aCtrlKey,aAltKey,aShiftKey,aMetaKey,aButton,aRelatedTarget]);
  108369. end;
  108370. class function TJSMouseScrollEvent.JSClassName: UnicodeString;
  108371. begin
  108372. Result:='MouseScrollEvent';
  108373. end;
  108374. class function TJSMouseScrollEvent.Cast(const Intf: IJSObject): IJSMouseScrollEvent;
  108375. begin
  108376. Result:=TJSMouseScrollEvent.JOBCast(Intf);
  108377. end;
  108378. function TJSMozApplicationEventInit._Getapplication: IJSObject;
  108379. begin
  108380. Result:=ReadJSPropertyObject('application',TJSObject) as IJSObject;
  108381. end;
  108382. procedure TJSMozApplicationEventInit._Setapplication(const aValue : IJSObject);
  108383. begin
  108384. WriteJSPropertyObject('application',aValue);
  108385. end;
  108386. class function TJSMozApplicationEventInit.JSClassName: UnicodeString;
  108387. begin
  108388. Result:='Object';
  108389. end;
  108390. class function TJSMozApplicationEventInit.Cast(const Intf: IJSObject): IJSMozApplicationEventInit;
  108391. begin
  108392. Result:=TJSMozApplicationEventInit.JOBCast(Intf);
  108393. end;
  108394. function TJSRemotenessOptions._GetremoteType: UTF8String;
  108395. begin
  108396. Result:=ReadJSPropertyUTF8String('remoteType');
  108397. end;
  108398. function TJSRemotenessOptions._GetpendingSwitchID: QWord;
  108399. begin
  108400. Result:=ReadJSPropertyInt64('pendingSwitchID');
  108401. end;
  108402. function TJSRemotenessOptions._GetswitchingInProgressLoad: Boolean;
  108403. begin
  108404. Result:=ReadJSPropertyBoolean('switchingInProgressLoad');
  108405. end;
  108406. procedure TJSRemotenessOptions._SetremoteType(const aValue : UTF8String);
  108407. begin
  108408. WriteJSPropertyUTF8String('remoteType',aValue);
  108409. end;
  108410. procedure TJSRemotenessOptions._SetpendingSwitchID(const aValue : QWord);
  108411. begin
  108412. WriteJSPropertyDouble('pendingSwitchID',aValue);
  108413. end;
  108414. procedure TJSRemotenessOptions._SetswitchingInProgressLoad(const aValue : Boolean);
  108415. begin
  108416. WriteJSPropertyBoolean('switchingInProgressLoad',aValue);
  108417. end;
  108418. class function TJSRemotenessOptions.JSClassName: UnicodeString;
  108419. begin
  108420. Result:='Object';
  108421. end;
  108422. class function TJSRemotenessOptions.Cast(const Intf: IJSObject): IJSRemotenessOptions;
  108423. begin
  108424. Result:=TJSRemotenessOptions.JOBCast(Intf);
  108425. end;
  108426. class function TJSMozFrameLoaderOwner.JSClassName: UnicodeString;
  108427. begin
  108428. Result:='MozFrameLoaderOwner';
  108429. end;
  108430. class function TJSMozFrameLoaderOwner.Cast(const Intf: IJSObject): IJSMozFrameLoaderOwner;
  108431. begin
  108432. Result:=TJSMozFrameLoaderOwner.JOBCast(Intf);
  108433. end;
  108434. function TJSMutationEvent._GetrelatedNode: IJSNode;
  108435. begin
  108436. Result:=ReadJSPropertyObject('relatedNode',TJSNode) as IJSNode;
  108437. end;
  108438. function TJSMutationEvent._GetprevValue: UnicodeString;
  108439. begin
  108440. Result:=ReadJSPropertyUnicodeString('prevValue');
  108441. end;
  108442. function TJSMutationEvent._GetnewValue: UnicodeString;
  108443. begin
  108444. Result:=ReadJSPropertyUnicodeString('newValue');
  108445. end;
  108446. function TJSMutationEvent._GetattrName: UnicodeString;
  108447. begin
  108448. Result:=ReadJSPropertyUnicodeString('attrName');
  108449. end;
  108450. function TJSMutationEvent._GetattrChange: Word;
  108451. begin
  108452. Result:=ReadJSPropertyLongInt('attrChange');
  108453. end;
  108454. procedure TJSMutationEvent.initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString; const aNewValue: UnicodeString; const aAttrName: UnicodeString; aAttrChange: Word);
  108455. begin
  108456. InvokeJSNoResult('initMutationEvent',[aType_,aCanBubble,aCancelable,aRelatedNode,aPrevValue,aNewValue,aAttrName,aAttrChange]);
  108457. end;
  108458. procedure TJSMutationEvent.initMutationEvent(const aType_: UnicodeString);
  108459. begin
  108460. InvokeJSNoResult('initMutationEvent',[aType_]);
  108461. end;
  108462. procedure TJSMutationEvent.initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  108463. begin
  108464. InvokeJSNoResult('initMutationEvent',[aType_,aCanBubble]);
  108465. end;
  108466. procedure TJSMutationEvent.initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  108467. begin
  108468. InvokeJSNoResult('initMutationEvent',[aType_,aCanBubble,aCancelable]);
  108469. end;
  108470. procedure TJSMutationEvent.initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode);
  108471. begin
  108472. InvokeJSNoResult('initMutationEvent',[aType_,aCanBubble,aCancelable,aRelatedNode]);
  108473. end;
  108474. procedure TJSMutationEvent.initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString);
  108475. begin
  108476. InvokeJSNoResult('initMutationEvent',[aType_,aCanBubble,aCancelable,aRelatedNode,aPrevValue]);
  108477. end;
  108478. procedure TJSMutationEvent.initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString; const aNewValue: UnicodeString);
  108479. begin
  108480. InvokeJSNoResult('initMutationEvent',[aType_,aCanBubble,aCancelable,aRelatedNode,aPrevValue,aNewValue]);
  108481. end;
  108482. procedure TJSMutationEvent.initMutationEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aRelatedNode: IJSNode; const aPrevValue: UnicodeString; const aNewValue: UnicodeString; const aAttrName: UnicodeString);
  108483. begin
  108484. InvokeJSNoResult('initMutationEvent',[aType_,aCanBubble,aCancelable,aRelatedNode,aPrevValue,aNewValue,aAttrName]);
  108485. end;
  108486. class function TJSMutationEvent.JSClassName: UnicodeString;
  108487. begin
  108488. Result:='MutationEvent';
  108489. end;
  108490. class function TJSMutationEvent.Cast(const Intf: IJSObject): IJSMutationEvent;
  108491. begin
  108492. Result:=TJSMutationEvent.JOBCast(Intf);
  108493. end;
  108494. function TJSMutationRecord._Gettype_: UnicodeString;
  108495. begin
  108496. Result:=ReadJSPropertyUnicodeString('type');
  108497. end;
  108498. function TJSMutationRecord._Gettarget: IJSNode;
  108499. begin
  108500. Result:=ReadJSPropertyObject('target',TJSNode) as IJSNode;
  108501. end;
  108502. function TJSMutationRecord._GetaddedNodes: IJSNodeList;
  108503. begin
  108504. Result:=ReadJSPropertyObject('addedNodes',TJSNodeList) as IJSNodeList;
  108505. end;
  108506. function TJSMutationRecord._GetremovedNodes: IJSNodeList;
  108507. begin
  108508. Result:=ReadJSPropertyObject('removedNodes',TJSNodeList) as IJSNodeList;
  108509. end;
  108510. function TJSMutationRecord._GetpreviousSibling: IJSNode;
  108511. begin
  108512. Result:=ReadJSPropertyObject('previousSibling',TJSNode) as IJSNode;
  108513. end;
  108514. function TJSMutationRecord._GetnextSibling: IJSNode;
  108515. begin
  108516. Result:=ReadJSPropertyObject('nextSibling',TJSNode) as IJSNode;
  108517. end;
  108518. function TJSMutationRecord._GetattributeName: UnicodeString;
  108519. begin
  108520. Result:=ReadJSPropertyUnicodeString('attributeName');
  108521. end;
  108522. function TJSMutationRecord._GetattributeNamespace: UnicodeString;
  108523. begin
  108524. Result:=ReadJSPropertyUnicodeString('attributeNamespace');
  108525. end;
  108526. function TJSMutationRecord._GetoldValue: UnicodeString;
  108527. begin
  108528. Result:=ReadJSPropertyUnicodeString('oldValue');
  108529. end;
  108530. class function TJSMutationRecord.JSClassName: UnicodeString;
  108531. begin
  108532. Result:='MutationRecord';
  108533. end;
  108534. class function TJSMutationRecord.Cast(const Intf: IJSObject): IJSMutationRecord;
  108535. begin
  108536. Result:=TJSMutationRecord.JOBCast(Intf);
  108537. end;
  108538. constructor TJSMutationObserver.Create(const aMutationCallback: TMutationCallback);
  108539. var
  108540. m: TJOB_Method;
  108541. begin
  108542. m:=TJOB_Method.Create(TMethod(aMutationCallback),@JOBCallMutationCallback);
  108543. try
  108544. JOBCreate([m]);
  108545. finally
  108546. m.free;
  108547. end;
  108548. end;
  108549. procedure TJSMutationObserver.observe(aTarget: IJSNode; const aOptions: TJSMutationObserverInit);
  108550. begin
  108551. InvokeJSNoResult('observe',[aTarget,aOptions]);
  108552. end;
  108553. procedure TJSMutationObserver.observe(aTarget: IJSNode);
  108554. begin
  108555. InvokeJSNoResult('observe',[aTarget]);
  108556. end;
  108557. procedure TJSMutationObserver.disconnect;
  108558. begin
  108559. InvokeJSNoResult('disconnect',[]);
  108560. end;
  108561. function TJSMutationObserver.takeRecords: TJSMutationRecordDynArray;
  108562. begin
  108563. Result:=InvokeJSObjectResult('takeRecords',[],TJSArray) as TJSMutationRecordDynArray;
  108564. end;
  108565. class function TJSMutationObserver.JSClassName: UnicodeString;
  108566. begin
  108567. Result:='MutationObserver';
  108568. end;
  108569. class function TJSMutationObserver.Cast(const Intf: IJSObject): IJSMutationObserver;
  108570. begin
  108571. Result:=TJSMutationObserver.JOBCast(Intf);
  108572. end;
  108573. function TJSMutationObserverInit._GetchildList: Boolean;
  108574. begin
  108575. Result:=ReadJSPropertyBoolean('childList');
  108576. end;
  108577. function TJSMutationObserverInit._Getattributes: Boolean;
  108578. begin
  108579. Result:=ReadJSPropertyBoolean('attributes');
  108580. end;
  108581. function TJSMutationObserverInit._GetcharacterData: Boolean;
  108582. begin
  108583. Result:=ReadJSPropertyBoolean('characterData');
  108584. end;
  108585. function TJSMutationObserverInit._Getsubtree: Boolean;
  108586. begin
  108587. Result:=ReadJSPropertyBoolean('subtree');
  108588. end;
  108589. function TJSMutationObserverInit._GetattributeOldValue: Boolean;
  108590. begin
  108591. Result:=ReadJSPropertyBoolean('attributeOldValue');
  108592. end;
  108593. function TJSMutationObserverInit._GetcharacterDataOldValue: Boolean;
  108594. begin
  108595. Result:=ReadJSPropertyBoolean('characterDataOldValue');
  108596. end;
  108597. function TJSMutationObserverInit._GetattributeFilter: TUnicodeStringDynArray;
  108598. begin
  108599. Result:=ReadJSPropertyObject('attributeFilter',TJSArray) as TUnicodeStringDynArray;
  108600. end;
  108601. procedure TJSMutationObserverInit._SetchildList(const aValue : Boolean);
  108602. begin
  108603. WriteJSPropertyBoolean('childList',aValue);
  108604. end;
  108605. procedure TJSMutationObserverInit._Setattributes(const aValue : Boolean);
  108606. begin
  108607. WriteJSPropertyBoolean('attributes',aValue);
  108608. end;
  108609. procedure TJSMutationObserverInit._SetcharacterData(const aValue : Boolean);
  108610. begin
  108611. WriteJSPropertyBoolean('characterData',aValue);
  108612. end;
  108613. procedure TJSMutationObserverInit._Setsubtree(const aValue : Boolean);
  108614. begin
  108615. WriteJSPropertyBoolean('subtree',aValue);
  108616. end;
  108617. procedure TJSMutationObserverInit._SetattributeOldValue(const aValue : Boolean);
  108618. begin
  108619. WriteJSPropertyBoolean('attributeOldValue',aValue);
  108620. end;
  108621. procedure TJSMutationObserverInit._SetcharacterDataOldValue(const aValue : Boolean);
  108622. begin
  108623. WriteJSPropertyBoolean('characterDataOldValue',aValue);
  108624. end;
  108625. procedure TJSMutationObserverInit._SetattributeFilter(const aValue : TUnicodeStringDynArray);
  108626. begin
  108627. WriteJSPropertyObject('attributeFilter',aValue);
  108628. end;
  108629. class function TJSMutationObserverInit.JSClassName: UnicodeString;
  108630. begin
  108631. Result:='Object';
  108632. end;
  108633. class function TJSMutationObserverInit.Cast(const Intf: IJSObject): IJSMutationObserverInit;
  108634. begin
  108635. Result:=TJSMutationObserverInit.JOBCast(Intf);
  108636. end;
  108637. function TJSMutationObservingInfo._GetobservedNode: IJSNode;
  108638. begin
  108639. Result:=ReadJSPropertyObject('observedNode',TJSNode) as IJSNode;
  108640. end;
  108641. procedure TJSMutationObservingInfo._SetobservedNode(const aValue : IJSNode);
  108642. begin
  108643. WriteJSPropertyObject('observedNode',aValue);
  108644. end;
  108645. class function TJSMutationObservingInfo.JSClassName: UnicodeString;
  108646. begin
  108647. Result:='Object';
  108648. end;
  108649. class function TJSMutationObservingInfo.Cast(const Intf: IJSObject): IJSMutationObservingInfo;
  108650. begin
  108651. Result:=TJSMutationObservingInfo.JOBCast(Intf);
  108652. end;
  108653. function TJSNamedNodeMap._Getlength_: Cardinal;
  108654. begin
  108655. Result:=ReadJSPropertyInt64('length');
  108656. end;
  108657. function TJSNamedNodeMap.getNamedItem(const aName: UnicodeString): IJSAttr;
  108658. begin
  108659. Result:=InvokeJSObjectResult('getNamedItem',[aName],TJSAttr) as IJSAttr;
  108660. end;
  108661. function TJSNamedNodeMap.setNamedItem(aArg: IJSAttr): IJSAttr;
  108662. begin
  108663. Result:=InvokeJSObjectResult('setNamedItem',[aArg],TJSAttr) as IJSAttr;
  108664. end;
  108665. function TJSNamedNodeMap.removeNamedItem(const aName: UnicodeString): IJSAttr;
  108666. begin
  108667. Result:=InvokeJSObjectResult('removeNamedItem',[aName],TJSAttr) as IJSAttr;
  108668. end;
  108669. function TJSNamedNodeMap.item(aIndex: Cardinal): IJSAttr;
  108670. begin
  108671. Result:=InvokeJSObjectResult('item',[aIndex],TJSAttr) as IJSAttr;
  108672. end;
  108673. function TJSNamedNodeMap.getNamedItemNS(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): IJSAttr;
  108674. begin
  108675. Result:=InvokeJSObjectResult('getNamedItemNS',[aNamespaceURI,aLocalName],TJSAttr) as IJSAttr;
  108676. end;
  108677. function TJSNamedNodeMap.setNamedItemNS(aArg: IJSAttr): IJSAttr;
  108678. begin
  108679. Result:=InvokeJSObjectResult('setNamedItemNS',[aArg],TJSAttr) as IJSAttr;
  108680. end;
  108681. function TJSNamedNodeMap.removeNamedItemNS(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): IJSAttr;
  108682. begin
  108683. Result:=InvokeJSObjectResult('removeNamedItemNS',[aNamespaceURI,aLocalName],TJSAttr) as IJSAttr;
  108684. end;
  108685. class function TJSNamedNodeMap.JSClassName: UnicodeString;
  108686. begin
  108687. Result:='NamedNodeMap';
  108688. end;
  108689. class function TJSNamedNodeMap.Cast(const Intf: IJSObject): IJSNamedNodeMap;
  108690. begin
  108691. Result:=TJSNamedNodeMap.JOBCast(Intf);
  108692. end;
  108693. function TJSNavigationPreloadManager.enable: IJSPromise; // Promise<undefined>
  108694. begin
  108695. Result:=InvokeJSObjectResult('enable',[],TJSPromise) as IJSPromise;
  108696. end;
  108697. function TJSNavigationPreloadManager.disable: IJSPromise; // Promise<undefined>
  108698. begin
  108699. Result:=InvokeJSObjectResult('disable',[],TJSPromise) as IJSPromise;
  108700. end;
  108701. function TJSNavigationPreloadManager.setHeaderValue(const aValue: UnicodeString): IJSPromise; // Promise<undefined>
  108702. begin
  108703. Result:=InvokeJSObjectResult('setHeaderValue',[aValue],TJSPromise) as IJSPromise;
  108704. end;
  108705. function TJSNavigationPreloadManager.getState: IJSPromise; // Promise<NavigationPreloadState>
  108706. begin
  108707. Result:=InvokeJSObjectResult('getState',[],TJSPromise) as IJSPromise;
  108708. end;
  108709. class function TJSNavigationPreloadManager.JSClassName: UnicodeString;
  108710. begin
  108711. Result:='NavigationPreloadManager';
  108712. end;
  108713. class function TJSNavigationPreloadManager.Cast(const Intf: IJSObject): IJSNavigationPreloadManager;
  108714. begin
  108715. Result:=TJSNavigationPreloadManager.JOBCast(Intf);
  108716. end;
  108717. function TJSNavigationPreloadState._Getenabled: Boolean;
  108718. begin
  108719. Result:=ReadJSPropertyBoolean('enabled');
  108720. end;
  108721. function TJSNavigationPreloadState._GetheaderValue: UnicodeString;
  108722. begin
  108723. Result:=ReadJSPropertyUnicodeString('headerValue');
  108724. end;
  108725. procedure TJSNavigationPreloadState._Setenabled(const aValue : Boolean);
  108726. begin
  108727. WriteJSPropertyBoolean('enabled',aValue);
  108728. end;
  108729. procedure TJSNavigationPreloadState._SetheaderValue(const aValue : UnicodeString);
  108730. begin
  108731. WriteJSPropertyUnicodeString('headerValue',aValue);
  108732. end;
  108733. class function TJSNavigationPreloadState.JSClassName: UnicodeString;
  108734. begin
  108735. Result:='Object';
  108736. end;
  108737. class function TJSNavigationPreloadState.Cast(const Intf: IJSObject): IJSNavigationPreloadState;
  108738. begin
  108739. Result:=TJSNavigationPreloadState.JOBCast(Intf);
  108740. end;
  108741. function TJSNavigator._Getpermissions: IJSPermissions;
  108742. begin
  108743. Result:=ReadJSPropertyObject('permissions',TJSPermissions) as IJSPermissions;
  108744. end;
  108745. function TJSNavigator._GetmimeTypes: IJSMimeTypeArray;
  108746. begin
  108747. Result:=ReadJSPropertyObject('mimeTypes',TJSMimeTypeArray) as IJSMimeTypeArray;
  108748. end;
  108749. function TJSNavigator._Getplugins: IJSPluginArray;
  108750. begin
  108751. Result:=ReadJSPropertyObject('plugins',TJSPluginArray) as IJSPluginArray;
  108752. end;
  108753. function TJSNavigator._GetpdfViewerEnabled: Boolean;
  108754. begin
  108755. Result:=ReadJSPropertyBoolean('pdfViewerEnabled');
  108756. end;
  108757. function TJSNavigator._GetdoNotTrack: UnicodeString;
  108758. begin
  108759. Result:=ReadJSPropertyUnicodeString('doNotTrack');
  108760. end;
  108761. function TJSNavigator._GetmaxTouchPoints: LongInt;
  108762. begin
  108763. Result:=ReadJSPropertyLongInt('maxTouchPoints');
  108764. end;
  108765. function TJSNavigator._GetmediaCapabilities: IJSMediaCapabilities;
  108766. begin
  108767. Result:=ReadJSPropertyObject('mediaCapabilities',TJSMediaCapabilities) as IJSMediaCapabilities;
  108768. end;
  108769. function TJSNavigator._Getoscpu: UnicodeString;
  108770. begin
  108771. Result:=ReadJSPropertyUnicodeString('oscpu');
  108772. end;
  108773. function TJSNavigator._Getvendor: UnicodeString;
  108774. begin
  108775. Result:=ReadJSPropertyUnicodeString('vendor');
  108776. end;
  108777. function TJSNavigator._GetvendorSub: UnicodeString;
  108778. begin
  108779. Result:=ReadJSPropertyUnicodeString('vendorSub');
  108780. end;
  108781. function TJSNavigator._GetproductSub: UnicodeString;
  108782. begin
  108783. Result:=ReadJSPropertyUnicodeString('productSub');
  108784. end;
  108785. function TJSNavigator._GetcookieEnabled: Boolean;
  108786. begin
  108787. Result:=ReadJSPropertyBoolean('cookieEnabled');
  108788. end;
  108789. function TJSNavigator._GetbuildID: UnicodeString;
  108790. begin
  108791. Result:=ReadJSPropertyUnicodeString('buildID');
  108792. end;
  108793. function TJSNavigator._GetmozAddonManager: IJSAddonManager;
  108794. begin
  108795. Result:=ReadJSPropertyObject('mozAddonManager',TJSAddonManager) as IJSAddonManager;
  108796. end;
  108797. function TJSNavigator._Getconnection: IJSNetworkInformation;
  108798. begin
  108799. Result:=ReadJSPropertyObject('connection',TJSNetworkInformation) as IJSNetworkInformation;
  108800. end;
  108801. function TJSNavigator._GetactiveVRDisplays: TJSVRDisplayDynArray;
  108802. begin
  108803. Result:=ReadJSPropertyObject('activeVRDisplays',TJSArray) as TJSVRDisplayDynArray;
  108804. end;
  108805. function TJSNavigator._Getxr: IJSXRSystem;
  108806. begin
  108807. Result:=ReadJSPropertyObject('xr',TJSXRSystem) as IJSXRSystem;
  108808. end;
  108809. function TJSNavigator._GetmediaDevices: IJSMediaDevices;
  108810. begin
  108811. Result:=ReadJSPropertyObject('mediaDevices',TJSMediaDevices) as IJSMediaDevices;
  108812. end;
  108813. function TJSNavigator._GetserviceWorker: IJSServiceWorkerContainer;
  108814. begin
  108815. Result:=ReadJSPropertyObject('serviceWorker',TJSServiceWorkerContainer) as IJSServiceWorkerContainer;
  108816. end;
  108817. function TJSNavigator._GetmozTCPSocket: IJSLegacyMozTCPSocket;
  108818. begin
  108819. Result:=ReadJSPropertyObject('mozTCPSocket',TJSLegacyMozTCPSocket) as IJSLegacyMozTCPSocket;
  108820. end;
  108821. function TJSNavigator._Getcredentials: IJSCredentialsContainer;
  108822. begin
  108823. Result:=ReadJSPropertyObject('credentials',TJSCredentialsContainer) as IJSCredentialsContainer;
  108824. end;
  108825. function TJSNavigator._Getclipboard: IJSClipboard;
  108826. begin
  108827. Result:=ReadJSPropertyObject('clipboard',TJSClipboard) as IJSClipboard;
  108828. end;
  108829. function TJSNavigator._GettestTrialGatedAttribute: Boolean;
  108830. begin
  108831. Result:=ReadJSPropertyBoolean('testTrialGatedAttribute');
  108832. end;
  108833. function TJSNavigator._GetmediaSession: IJSMediaSession;
  108834. begin
  108835. Result:=ReadJSPropertyObject('mediaSession',TJSMediaSession) as IJSMediaSession;
  108836. end;
  108837. function TJSNavigator._GetuserActivation: IJSUserActivation;
  108838. begin
  108839. Result:=ReadJSPropertyObject('userActivation',TJSUserActivation) as IJSUserActivation;
  108840. end;
  108841. function TJSNavigator._GetwakeLock: IJSWakeLock;
  108842. begin
  108843. Result:=ReadJSPropertyObject('wakeLock',TJSWakeLock) as IJSWakeLock;
  108844. end;
  108845. function TJSNavigator._GetappCodeName: UnicodeString;
  108846. begin
  108847. Result:=ReadJSPropertyUnicodeString('appCodeName');
  108848. end;
  108849. function TJSNavigator._GetappName: UnicodeString;
  108850. begin
  108851. Result:=ReadJSPropertyUnicodeString('appName');
  108852. end;
  108853. function TJSNavigator._GetappVersion: UnicodeString;
  108854. begin
  108855. Result:=ReadJSPropertyUnicodeString('appVersion');
  108856. end;
  108857. function TJSNavigator._Getplatform: UnicodeString;
  108858. begin
  108859. Result:=ReadJSPropertyUnicodeString('platform');
  108860. end;
  108861. function TJSNavigator._GetuserAgent: UnicodeString;
  108862. begin
  108863. Result:=ReadJSPropertyUnicodeString('userAgent');
  108864. end;
  108865. function TJSNavigator._Getproduct: UnicodeString;
  108866. begin
  108867. Result:=ReadJSPropertyUnicodeString('product');
  108868. end;
  108869. function TJSNavigator._Getlanguage: UnicodeString;
  108870. begin
  108871. Result:=ReadJSPropertyUnicodeString('language');
  108872. end;
  108873. function TJSNavigator._Getlanguages: TUnicodeStringDynArray;
  108874. begin
  108875. Result:=ReadJSPropertyObject('languages',TJSArray) as TUnicodeStringDynArray;
  108876. end;
  108877. function TJSNavigator._GetonLine: Boolean;
  108878. begin
  108879. Result:=ReadJSPropertyBoolean('onLine');
  108880. end;
  108881. function TJSNavigator._GethardwareConcurrency: QWord;
  108882. begin
  108883. Result:=ReadJSPropertyInt64('hardwareConcurrency');
  108884. end;
  108885. function TJSNavigator._Getstorage: IJSStorageManager;
  108886. begin
  108887. Result:=ReadJSPropertyObject('storage',TJSStorageManager) as IJSStorageManager;
  108888. end;
  108889. function TJSNavigator._Getwebdriver: Boolean;
  108890. begin
  108891. Result:=ReadJSPropertyBoolean('webdriver');
  108892. end;
  108893. function TJSNavigator._Getgpu: IJSGPU;
  108894. begin
  108895. Result:=ReadJSPropertyObject('gpu',TJSGPU) as IJSGPU;
  108896. end;
  108897. function TJSNavigator._GetglobalPrivacyControl: Boolean;
  108898. begin
  108899. Result:=ReadJSPropertyBoolean('globalPrivacyControl');
  108900. end;
  108901. function TJSNavigator._Getgeolocation: IJSGeolocation;
  108902. begin
  108903. Result:=ReadJSPropertyObject('geolocation',TJSGeolocation) as IJSGeolocation;
  108904. end;
  108905. function TJSNavigator._Getlocks: IJSLockManager;
  108906. begin
  108907. Result:=ReadJSPropertyObject('locks',TJSLockManager) as IJSLockManager;
  108908. end;
  108909. function TJSNavigator.vibrate(aDuration: Cardinal): Boolean;
  108910. begin
  108911. Result:=InvokeJSBooleanResult('vibrate',[aDuration]);
  108912. end;
  108913. function TJSNavigator.vibrate(const aPattern: TCardinalDynArray): Boolean;
  108914. begin
  108915. Result:=InvokeJSBooleanResult('vibrate',[aPattern]);
  108916. end;
  108917. function TJSNavigator.javaEnabled: Boolean;
  108918. begin
  108919. Result:=InvokeJSBooleanResult('javaEnabled',[]);
  108920. end;
  108921. function TJSNavigator.getGamepads: TJSGamepadDynArray;
  108922. begin
  108923. Result:=InvokeJSObjectResult('getGamepads',[],TJSArray) as TJSGamepadDynArray;
  108924. end;
  108925. function TJSNavigator.requestGamepadServiceTest: IJSGamepadServiceTest;
  108926. begin
  108927. Result:=InvokeJSObjectResult('requestGamepadServiceTest',[],TJSGamepadServiceTest) as IJSGamepadServiceTest;
  108928. end;
  108929. function TJSNavigator.getVRDisplays: IJSPromise; // Promise<sequence>
  108930. begin
  108931. Result:=InvokeJSObjectResult('getVRDisplays',[],TJSPromise) as IJSPromise;
  108932. end;
  108933. function TJSNavigator.requestVRServiceTest: IJSVRServiceTest;
  108934. begin
  108935. Result:=InvokeJSObjectResult('requestVRServiceTest',[],TJSVRServiceTest) as IJSVRServiceTest;
  108936. end;
  108937. function TJSNavigator.requestMIDIAccess(const aOptions: TJSMIDIOptions): IJSPromise; // Promise<MIDIAccess>
  108938. begin
  108939. Result:=InvokeJSObjectResult('requestMIDIAccess',[aOptions],TJSPromise) as IJSPromise;
  108940. end;
  108941. function TJSNavigator.requestMIDIAccess: IJSPromise; // Promise<MIDIAccess>
  108942. begin
  108943. Result:=InvokeJSObjectResult('requestMIDIAccess',[],TJSPromise) as IJSPromise;
  108944. end;
  108945. procedure TJSNavigator.mozGetUserMedia(const aConstraints: TJSMediaStreamConstraints; const aSuccessCallback: TNavigatorUserMediaSuccessCallback; const aErrorCallback: TNavigatorUserMediaErrorCallback);
  108946. var
  108947. m: TJOB_Method;
  108948. m2: TJOB_Method;
  108949. begin
  108950. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallNavigatorUserMediaSuccessCallback);
  108951. m2:=TJOB_Method.Create(TMethod(aErrorCallback),@JOBCallNavigatorUserMediaErrorCallback);
  108952. try
  108953. InvokeJSNoResult('mozGetUserMedia',[aConstraints,m,m2]);
  108954. finally
  108955. m.free;
  108956. m2.free;
  108957. end;
  108958. end;
  108959. function TJSNavigator.sendBeacon(const aUrl: UnicodeString; const aData: TBodyInit): Boolean;
  108960. begin
  108961. Result:=InvokeJSBooleanResult('sendBeacon',[aUrl,aData]);
  108962. end;
  108963. function TJSNavigator.sendBeacon(const aUrl: UnicodeString): Boolean;
  108964. begin
  108965. Result:=InvokeJSBooleanResult('sendBeacon',[aUrl]);
  108966. end;
  108967. function TJSNavigator.requestMediaKeySystemAccess(const aKeySystem: UnicodeString; const aSupportedConfigurations: TJSMediaKeySystemConfigurationDynArray): IJSPromise; // Promise<MediaKeySystemAccess>
  108968. begin
  108969. Result:=InvokeJSObjectResult('requestMediaKeySystemAccess',[aKeySystem,aSupportedConfigurations],TJSPromise) as IJSPromise;
  108970. end;
  108971. function TJSNavigator.share(const aData: TJSShareData): IJSPromise; // Promise<undefined>
  108972. begin
  108973. Result:=InvokeJSObjectResult('share',[aData],TJSPromise) as IJSPromise;
  108974. end;
  108975. function TJSNavigator.share: IJSPromise; // Promise<undefined>
  108976. begin
  108977. Result:=InvokeJSObjectResult('share',[],TJSPromise) as IJSPromise;
  108978. end;
  108979. function TJSNavigator.canShare(const aData: TJSShareData): Boolean;
  108980. begin
  108981. Result:=InvokeJSBooleanResult('canShare',[aData]);
  108982. end;
  108983. function TJSNavigator.canShare: Boolean;
  108984. begin
  108985. Result:=InvokeJSBooleanResult('canShare',[]);
  108986. end;
  108987. function TJSNavigator.getAutoplayPolicy(aType_: TAutoplayPolicyMediaType): TAutoplayPolicy;
  108988. begin
  108989. Result:=InvokeJSUnicodeStringResult('getAutoplayPolicy',[aType_]);
  108990. end;
  108991. function TJSNavigator.getAutoplayPolicy(aElement: IJSHTMLMediaElement): TAutoplayPolicy;
  108992. begin
  108993. Result:=InvokeJSUnicodeStringResult('getAutoplayPolicy',[aElement]);
  108994. end;
  108995. function TJSNavigator.getAutoplayPolicy(aContext: IJSAudioContext): TAutoplayPolicy;
  108996. begin
  108997. Result:=InvokeJSUnicodeStringResult('getAutoplayPolicy',[aContext]);
  108998. end;
  108999. function TJSNavigator.taintEnabled: Boolean;
  109000. begin
  109001. Result:=InvokeJSBooleanResult('taintEnabled',[]);
  109002. end;
  109003. procedure TJSNavigator.registerProtocolHandler(const aScheme: UnicodeString; const aUrl: UnicodeString);
  109004. begin
  109005. InvokeJSNoResult('registerProtocolHandler',[aScheme,aUrl]);
  109006. end;
  109007. class function TJSNavigator.JSClassName: UnicodeString;
  109008. begin
  109009. Result:='Navigator';
  109010. end;
  109011. class function TJSNavigator.Cast(const Intf: IJSObject): IJSNavigator;
  109012. begin
  109013. Result:=TJSNavigator.JOBCast(Intf);
  109014. end;
  109015. function TJSNavigatorID._GetappCodeName: UnicodeString;
  109016. begin
  109017. Result:=ReadJSPropertyUnicodeString('appCodeName');
  109018. end;
  109019. function TJSNavigatorID._GetappName: UnicodeString;
  109020. begin
  109021. Result:=ReadJSPropertyUnicodeString('appName');
  109022. end;
  109023. function TJSNavigatorID._GetappVersion: UnicodeString;
  109024. begin
  109025. Result:=ReadJSPropertyUnicodeString('appVersion');
  109026. end;
  109027. function TJSNavigatorID._Getplatform: UnicodeString;
  109028. begin
  109029. Result:=ReadJSPropertyUnicodeString('platform');
  109030. end;
  109031. function TJSNavigatorID._GetuserAgent: UnicodeString;
  109032. begin
  109033. Result:=ReadJSPropertyUnicodeString('userAgent');
  109034. end;
  109035. function TJSNavigatorID._Getproduct: UnicodeString;
  109036. begin
  109037. Result:=ReadJSPropertyUnicodeString('product');
  109038. end;
  109039. function TJSNavigatorID.taintEnabled: Boolean;
  109040. begin
  109041. Result:=InvokeJSBooleanResult('taintEnabled',[]);
  109042. end;
  109043. class function TJSNavigatorID.JSClassName: UnicodeString;
  109044. begin
  109045. Result:='NavigatorID';
  109046. end;
  109047. class function TJSNavigatorID.Cast(const Intf: IJSObject): IJSNavigatorID;
  109048. begin
  109049. Result:=TJSNavigatorID.JOBCast(Intf);
  109050. end;
  109051. function TJSNavigatorLanguage._Getlanguage: UnicodeString;
  109052. begin
  109053. Result:=ReadJSPropertyUnicodeString('language');
  109054. end;
  109055. function TJSNavigatorLanguage._Getlanguages: TUnicodeStringDynArray;
  109056. begin
  109057. Result:=ReadJSPropertyObject('languages',TJSArray) as TUnicodeStringDynArray;
  109058. end;
  109059. class function TJSNavigatorLanguage.JSClassName: UnicodeString;
  109060. begin
  109061. Result:='NavigatorLanguage';
  109062. end;
  109063. class function TJSNavigatorLanguage.Cast(const Intf: IJSObject): IJSNavigatorLanguage;
  109064. begin
  109065. Result:=TJSNavigatorLanguage.JOBCast(Intf);
  109066. end;
  109067. function TJSNavigatorOnLine._GetonLine: Boolean;
  109068. begin
  109069. Result:=ReadJSPropertyBoolean('onLine');
  109070. end;
  109071. class function TJSNavigatorOnLine.JSClassName: UnicodeString;
  109072. begin
  109073. Result:='NavigatorOnLine';
  109074. end;
  109075. class function TJSNavigatorOnLine.Cast(const Intf: IJSObject): IJSNavigatorOnLine;
  109076. begin
  109077. Result:=TJSNavigatorOnLine.JOBCast(Intf);
  109078. end;
  109079. procedure TJSNavigatorContentUtils.registerProtocolHandler(const aScheme: UnicodeString; const aUrl: UnicodeString);
  109080. begin
  109081. InvokeJSNoResult('registerProtocolHandler',[aScheme,aUrl]);
  109082. end;
  109083. class function TJSNavigatorContentUtils.JSClassName: UnicodeString;
  109084. begin
  109085. Result:='NavigatorContentUtils';
  109086. end;
  109087. class function TJSNavigatorContentUtils.Cast(const Intf: IJSObject): IJSNavigatorContentUtils;
  109088. begin
  109089. Result:=TJSNavigatorContentUtils.JOBCast(Intf);
  109090. end;
  109091. function TJSNavigatorStorage._Getstorage: IJSStorageManager;
  109092. begin
  109093. Result:=ReadJSPropertyObject('storage',TJSStorageManager) as IJSStorageManager;
  109094. end;
  109095. class function TJSNavigatorStorage.JSClassName: UnicodeString;
  109096. begin
  109097. Result:='NavigatorStorage';
  109098. end;
  109099. class function TJSNavigatorStorage.Cast(const Intf: IJSObject): IJSNavigatorStorage;
  109100. begin
  109101. Result:=TJSNavigatorStorage.JOBCast(Intf);
  109102. end;
  109103. class function TJSNavigatorStorageUtils.JSClassName: UnicodeString;
  109104. begin
  109105. Result:='NavigatorStorageUtils';
  109106. end;
  109107. class function TJSNavigatorStorageUtils.Cast(const Intf: IJSObject): IJSNavigatorStorageUtils;
  109108. begin
  109109. Result:=TJSNavigatorStorageUtils.JOBCast(Intf);
  109110. end;
  109111. function TJSGlobalPrivacyControl._GetglobalPrivacyControl: Boolean;
  109112. begin
  109113. Result:=ReadJSPropertyBoolean('globalPrivacyControl');
  109114. end;
  109115. class function TJSGlobalPrivacyControl.JSClassName: UnicodeString;
  109116. begin
  109117. Result:='GlobalPrivacyControl';
  109118. end;
  109119. class function TJSGlobalPrivacyControl.Cast(const Intf: IJSObject): IJSGlobalPrivacyControl;
  109120. begin
  109121. Result:=TJSGlobalPrivacyControl.JOBCast(Intf);
  109122. end;
  109123. function TJSNavigatorGeolocation._Getgeolocation: IJSGeolocation;
  109124. begin
  109125. Result:=ReadJSPropertyObject('geolocation',TJSGeolocation) as IJSGeolocation;
  109126. end;
  109127. class function TJSNavigatorGeolocation.JSClassName: UnicodeString;
  109128. begin
  109129. Result:='NavigatorGeolocation';
  109130. end;
  109131. class function TJSNavigatorGeolocation.Cast(const Intf: IJSObject): IJSNavigatorGeolocation;
  109132. begin
  109133. Result:=TJSNavigatorGeolocation.JOBCast(Intf);
  109134. end;
  109135. function TJSNavigatorConcurrentHardware._GethardwareConcurrency: QWord;
  109136. begin
  109137. Result:=ReadJSPropertyInt64('hardwareConcurrency');
  109138. end;
  109139. class function TJSNavigatorConcurrentHardware.JSClassName: UnicodeString;
  109140. begin
  109141. Result:='NavigatorConcurrentHardware';
  109142. end;
  109143. class function TJSNavigatorConcurrentHardware.Cast(const Intf: IJSObject): IJSNavigatorConcurrentHardware;
  109144. begin
  109145. Result:=TJSNavigatorConcurrentHardware.JOBCast(Intf);
  109146. end;
  109147. function TJSNavigatorAutomationInformation._Getwebdriver: Boolean;
  109148. begin
  109149. Result:=ReadJSPropertyBoolean('webdriver');
  109150. end;
  109151. class function TJSNavigatorAutomationInformation.JSClassName: UnicodeString;
  109152. begin
  109153. Result:='NavigatorAutomationInformation';
  109154. end;
  109155. class function TJSNavigatorAutomationInformation.Cast(const Intf: IJSObject): IJSNavigatorAutomationInformation;
  109156. begin
  109157. Result:=TJSNavigatorAutomationInformation.JOBCast(Intf);
  109158. end;
  109159. function TJSShareData._Gettitle: UnicodeString;
  109160. begin
  109161. Result:=ReadJSPropertyUnicodeString('title');
  109162. end;
  109163. function TJSShareData._Gettext: UnicodeString;
  109164. begin
  109165. Result:=ReadJSPropertyUnicodeString('text');
  109166. end;
  109167. function TJSShareData._Geturl: UnicodeString;
  109168. begin
  109169. Result:=ReadJSPropertyUnicodeString('url');
  109170. end;
  109171. function TJSShareData._Getfiles: TJSFileDynArray;
  109172. begin
  109173. Result:=ReadJSPropertyObject('files',TJSArray) as TJSFileDynArray;
  109174. end;
  109175. procedure TJSShareData._Settitle(const aValue : UnicodeString);
  109176. begin
  109177. WriteJSPropertyUnicodeString('title',aValue);
  109178. end;
  109179. procedure TJSShareData._Settext(const aValue : UnicodeString);
  109180. begin
  109181. WriteJSPropertyUnicodeString('text',aValue);
  109182. end;
  109183. procedure TJSShareData._Seturl(const aValue : UnicodeString);
  109184. begin
  109185. WriteJSPropertyUnicodeString('url',aValue);
  109186. end;
  109187. procedure TJSShareData._Setfiles(const aValue : TJSFileDynArray);
  109188. begin
  109189. WriteJSPropertyObject('files',aValue);
  109190. end;
  109191. class function TJSShareData.JSClassName: UnicodeString;
  109192. begin
  109193. Result:='Object';
  109194. end;
  109195. class function TJSShareData.Cast(const Intf: IJSObject): IJSShareData;
  109196. begin
  109197. Result:=TJSShareData.JOBCast(Intf);
  109198. end;
  109199. function TJSNavigatorLocks._Getlocks: IJSLockManager;
  109200. begin
  109201. Result:=ReadJSPropertyObject('locks',TJSLockManager) as IJSLockManager;
  109202. end;
  109203. class function TJSNavigatorLocks.JSClassName: UnicodeString;
  109204. begin
  109205. Result:='NavigatorLocks';
  109206. end;
  109207. class function TJSNavigatorLocks.Cast(const Intf: IJSObject): IJSNavigatorLocks;
  109208. begin
  109209. Result:=TJSNavigatorLocks.JOBCast(Intf);
  109210. end;
  109211. function TJSNetErrorInfo._GeterrorCodeString: UnicodeString;
  109212. begin
  109213. Result:=ReadJSPropertyUnicodeString('errorCodeString');
  109214. end;
  109215. procedure TJSNetErrorInfo._SeterrorCodeString(const aValue : UnicodeString);
  109216. begin
  109217. WriteJSPropertyUnicodeString('errorCodeString',aValue);
  109218. end;
  109219. class function TJSNetErrorInfo.JSClassName: UnicodeString;
  109220. begin
  109221. Result:='Object';
  109222. end;
  109223. class function TJSNetErrorInfo.Cast(const Intf: IJSObject): IJSNetErrorInfo;
  109224. begin
  109225. Result:=TJSNetErrorInfo.JOBCast(Intf);
  109226. end;
  109227. function TJSNetworkInformation._Gettype_: TConnectionType;
  109228. begin
  109229. Result:=ReadJSPropertyUnicodeString('type');
  109230. end;
  109231. function TJSNetworkInformation._Getontypechange: TEventHandler;
  109232. begin
  109233. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontypechange')));
  109234. end;
  109235. procedure TJSNetworkInformation._Setontypechange(const aValue : TEventHandler);
  109236. begin
  109237. WriteJSPropertyMethod('ontypechange',TMethod(aValue));
  109238. end;
  109239. class function TJSNetworkInformation.JSClassName: UnicodeString;
  109240. begin
  109241. Result:='NetworkInformation';
  109242. end;
  109243. class function TJSNetworkInformation.Cast(const Intf: IJSObject): IJSNetworkInformation;
  109244. begin
  109245. Result:=TJSNetworkInformation.JOBCast(Intf);
  109246. end;
  109247. function TJSNetworkCommandOptions._Getid: LongInt;
  109248. begin
  109249. Result:=ReadJSPropertyLongInt('id');
  109250. end;
  109251. function TJSNetworkCommandOptions._Getcmd: UnicodeString;
  109252. begin
  109253. Result:=ReadJSPropertyUnicodeString('cmd');
  109254. end;
  109255. function TJSNetworkCommandOptions._Getifname: UnicodeString;
  109256. begin
  109257. Result:=ReadJSPropertyUnicodeString('ifname');
  109258. end;
  109259. function TJSNetworkCommandOptions._Getip: UnicodeString;
  109260. begin
  109261. Result:=ReadJSPropertyUnicodeString('ip');
  109262. end;
  109263. function TJSNetworkCommandOptions._GetprefixLength: Cardinal;
  109264. begin
  109265. Result:=ReadJSPropertyInt64('prefixLength');
  109266. end;
  109267. function TJSNetworkCommandOptions._Getdomain: UnicodeString;
  109268. begin
  109269. Result:=ReadJSPropertyUnicodeString('domain');
  109270. end;
  109271. function TJSNetworkCommandOptions._Getdnses: TUnicodeStringDynArray;
  109272. begin
  109273. Result:=ReadJSPropertyObject('dnses',TJSArray) as TUnicodeStringDynArray;
  109274. end;
  109275. function TJSNetworkCommandOptions._Getgateway: UnicodeString;
  109276. begin
  109277. Result:=ReadJSPropertyUnicodeString('gateway');
  109278. end;
  109279. function TJSNetworkCommandOptions._Getgateways: TUnicodeStringDynArray;
  109280. begin
  109281. Result:=ReadJSPropertyObject('gateways',TJSArray) as TUnicodeStringDynArray;
  109282. end;
  109283. function TJSNetworkCommandOptions._Getmode: UnicodeString;
  109284. begin
  109285. Result:=ReadJSPropertyUnicodeString('mode');
  109286. end;
  109287. function TJSNetworkCommandOptions._Getreport: Boolean;
  109288. begin
  109289. Result:=ReadJSPropertyBoolean('report');
  109290. end;
  109291. function TJSNetworkCommandOptions._Getenabled: Boolean;
  109292. begin
  109293. Result:=ReadJSPropertyBoolean('enabled');
  109294. end;
  109295. function TJSNetworkCommandOptions._Getwifictrlinterfacename: UnicodeString;
  109296. begin
  109297. Result:=ReadJSPropertyUnicodeString('wifictrlinterfacename');
  109298. end;
  109299. function TJSNetworkCommandOptions._GetinternalIfname: UnicodeString;
  109300. begin
  109301. Result:=ReadJSPropertyUnicodeString('internalIfname');
  109302. end;
  109303. function TJSNetworkCommandOptions._GetexternalIfname: UnicodeString;
  109304. begin
  109305. Result:=ReadJSPropertyUnicodeString('externalIfname');
  109306. end;
  109307. function TJSNetworkCommandOptions._Getenable: Boolean;
  109308. begin
  109309. Result:=ReadJSPropertyBoolean('enable');
  109310. end;
  109311. function TJSNetworkCommandOptions._Getssid: UnicodeString;
  109312. begin
  109313. Result:=ReadJSPropertyUnicodeString('ssid');
  109314. end;
  109315. function TJSNetworkCommandOptions._Getsecurity: UnicodeString;
  109316. begin
  109317. Result:=ReadJSPropertyUnicodeString('security');
  109318. end;
  109319. function TJSNetworkCommandOptions._Getkey: UnicodeString;
  109320. begin
  109321. Result:=ReadJSPropertyUnicodeString('key');
  109322. end;
  109323. function TJSNetworkCommandOptions._Getprefix: UnicodeString;
  109324. begin
  109325. Result:=ReadJSPropertyUnicodeString('prefix');
  109326. end;
  109327. function TJSNetworkCommandOptions._Getlink: UnicodeString;
  109328. begin
  109329. Result:=ReadJSPropertyUnicodeString('link');
  109330. end;
  109331. function TJSNetworkCommandOptions._GetinterfaceList: TUnicodeStringDynArray;
  109332. begin
  109333. Result:=ReadJSPropertyObject('interfaceList',TJSArray) as TUnicodeStringDynArray;
  109334. end;
  109335. function TJSNetworkCommandOptions._GetwifiStartIp: UnicodeString;
  109336. begin
  109337. Result:=ReadJSPropertyUnicodeString('wifiStartIp');
  109338. end;
  109339. function TJSNetworkCommandOptions._GetwifiEndIp: UnicodeString;
  109340. begin
  109341. Result:=ReadJSPropertyUnicodeString('wifiEndIp');
  109342. end;
  109343. function TJSNetworkCommandOptions._GetusbStartIp: UnicodeString;
  109344. begin
  109345. Result:=ReadJSPropertyUnicodeString('usbStartIp');
  109346. end;
  109347. function TJSNetworkCommandOptions._GetusbEndIp: UnicodeString;
  109348. begin
  109349. Result:=ReadJSPropertyUnicodeString('usbEndIp');
  109350. end;
  109351. function TJSNetworkCommandOptions._Getdns1: UnicodeString;
  109352. begin
  109353. Result:=ReadJSPropertyUnicodeString('dns1');
  109354. end;
  109355. function TJSNetworkCommandOptions._Getdns2: UnicodeString;
  109356. begin
  109357. Result:=ReadJSPropertyUnicodeString('dns2');
  109358. end;
  109359. function TJSNetworkCommandOptions._Getthreshold: Int64;
  109360. begin
  109361. Result:=ReadJSPropertyInt64('threshold');
  109362. end;
  109363. function TJSNetworkCommandOptions._GetstartIp: UnicodeString;
  109364. begin
  109365. Result:=ReadJSPropertyUnicodeString('startIp');
  109366. end;
  109367. function TJSNetworkCommandOptions._GetendIp: UnicodeString;
  109368. begin
  109369. Result:=ReadJSPropertyUnicodeString('endIp');
  109370. end;
  109371. function TJSNetworkCommandOptions._GetserverIp: UnicodeString;
  109372. begin
  109373. Result:=ReadJSPropertyUnicodeString('serverIp');
  109374. end;
  109375. function TJSNetworkCommandOptions._GetmaskLength: UnicodeString;
  109376. begin
  109377. Result:=ReadJSPropertyUnicodeString('maskLength');
  109378. end;
  109379. function TJSNetworkCommandOptions._GetpreInternalIfname: UnicodeString;
  109380. begin
  109381. Result:=ReadJSPropertyUnicodeString('preInternalIfname');
  109382. end;
  109383. function TJSNetworkCommandOptions._GetpreExternalIfname: UnicodeString;
  109384. begin
  109385. Result:=ReadJSPropertyUnicodeString('preExternalIfname');
  109386. end;
  109387. function TJSNetworkCommandOptions._GetcurInternalIfname: UnicodeString;
  109388. begin
  109389. Result:=ReadJSPropertyUnicodeString('curInternalIfname');
  109390. end;
  109391. function TJSNetworkCommandOptions._GetcurExternalIfname: UnicodeString;
  109392. begin
  109393. Result:=ReadJSPropertyUnicodeString('curExternalIfname');
  109394. end;
  109395. function TJSNetworkCommandOptions._Getipaddr: LongInt;
  109396. begin
  109397. Result:=ReadJSPropertyLongInt('ipaddr');
  109398. end;
  109399. function TJSNetworkCommandOptions._Getmask: LongInt;
  109400. begin
  109401. Result:=ReadJSPropertyLongInt('mask');
  109402. end;
  109403. function TJSNetworkCommandOptions._Getgateway_long: LongInt;
  109404. begin
  109405. Result:=ReadJSPropertyLongInt('gateway_long');
  109406. end;
  109407. function TJSNetworkCommandOptions._Getdns1_long: LongInt;
  109408. begin
  109409. Result:=ReadJSPropertyLongInt('dns1_long');
  109410. end;
  109411. function TJSNetworkCommandOptions._Getdns2_long: LongInt;
  109412. begin
  109413. Result:=ReadJSPropertyLongInt('dns2_long');
  109414. end;
  109415. function TJSNetworkCommandOptions._Getmtu: LongInt;
  109416. begin
  109417. Result:=ReadJSPropertyLongInt('mtu');
  109418. end;
  109419. procedure TJSNetworkCommandOptions._Setid(const aValue : LongInt);
  109420. begin
  109421. WriteJSPropertyLongInt('id',aValue);
  109422. end;
  109423. procedure TJSNetworkCommandOptions._Setcmd(const aValue : UnicodeString);
  109424. begin
  109425. WriteJSPropertyUnicodeString('cmd',aValue);
  109426. end;
  109427. procedure TJSNetworkCommandOptions._Setifname(const aValue : UnicodeString);
  109428. begin
  109429. WriteJSPropertyUnicodeString('ifname',aValue);
  109430. end;
  109431. procedure TJSNetworkCommandOptions._Setip(const aValue : UnicodeString);
  109432. begin
  109433. WriteJSPropertyUnicodeString('ip',aValue);
  109434. end;
  109435. procedure TJSNetworkCommandOptions._SetprefixLength(const aValue : Cardinal);
  109436. begin
  109437. WriteJSPropertyDouble('prefixLength',aValue);
  109438. end;
  109439. procedure TJSNetworkCommandOptions._Setdomain(const aValue : UnicodeString);
  109440. begin
  109441. WriteJSPropertyUnicodeString('domain',aValue);
  109442. end;
  109443. procedure TJSNetworkCommandOptions._Setdnses(const aValue : TUnicodeStringDynArray);
  109444. begin
  109445. WriteJSPropertyObject('dnses',aValue);
  109446. end;
  109447. procedure TJSNetworkCommandOptions._Setgateway(const aValue : UnicodeString);
  109448. begin
  109449. WriteJSPropertyUnicodeString('gateway',aValue);
  109450. end;
  109451. procedure TJSNetworkCommandOptions._Setgateways(const aValue : TUnicodeStringDynArray);
  109452. begin
  109453. WriteJSPropertyObject('gateways',aValue);
  109454. end;
  109455. procedure TJSNetworkCommandOptions._Setmode(const aValue : UnicodeString);
  109456. begin
  109457. WriteJSPropertyUnicodeString('mode',aValue);
  109458. end;
  109459. procedure TJSNetworkCommandOptions._Setreport(const aValue : Boolean);
  109460. begin
  109461. WriteJSPropertyBoolean('report',aValue);
  109462. end;
  109463. procedure TJSNetworkCommandOptions._Setenabled(const aValue : Boolean);
  109464. begin
  109465. WriteJSPropertyBoolean('enabled',aValue);
  109466. end;
  109467. procedure TJSNetworkCommandOptions._Setwifictrlinterfacename(const aValue : UnicodeString);
  109468. begin
  109469. WriteJSPropertyUnicodeString('wifictrlinterfacename',aValue);
  109470. end;
  109471. procedure TJSNetworkCommandOptions._SetinternalIfname(const aValue : UnicodeString);
  109472. begin
  109473. WriteJSPropertyUnicodeString('internalIfname',aValue);
  109474. end;
  109475. procedure TJSNetworkCommandOptions._SetexternalIfname(const aValue : UnicodeString);
  109476. begin
  109477. WriteJSPropertyUnicodeString('externalIfname',aValue);
  109478. end;
  109479. procedure TJSNetworkCommandOptions._Setenable(const aValue : Boolean);
  109480. begin
  109481. WriteJSPropertyBoolean('enable',aValue);
  109482. end;
  109483. procedure TJSNetworkCommandOptions._Setssid(const aValue : UnicodeString);
  109484. begin
  109485. WriteJSPropertyUnicodeString('ssid',aValue);
  109486. end;
  109487. procedure TJSNetworkCommandOptions._Setsecurity(const aValue : UnicodeString);
  109488. begin
  109489. WriteJSPropertyUnicodeString('security',aValue);
  109490. end;
  109491. procedure TJSNetworkCommandOptions._Setkey(const aValue : UnicodeString);
  109492. begin
  109493. WriteJSPropertyUnicodeString('key',aValue);
  109494. end;
  109495. procedure TJSNetworkCommandOptions._Setprefix(const aValue : UnicodeString);
  109496. begin
  109497. WriteJSPropertyUnicodeString('prefix',aValue);
  109498. end;
  109499. procedure TJSNetworkCommandOptions._Setlink(const aValue : UnicodeString);
  109500. begin
  109501. WriteJSPropertyUnicodeString('link',aValue);
  109502. end;
  109503. procedure TJSNetworkCommandOptions._SetinterfaceList(const aValue : TUnicodeStringDynArray);
  109504. begin
  109505. WriteJSPropertyObject('interfaceList',aValue);
  109506. end;
  109507. procedure TJSNetworkCommandOptions._SetwifiStartIp(const aValue : UnicodeString);
  109508. begin
  109509. WriteJSPropertyUnicodeString('wifiStartIp',aValue);
  109510. end;
  109511. procedure TJSNetworkCommandOptions._SetwifiEndIp(const aValue : UnicodeString);
  109512. begin
  109513. WriteJSPropertyUnicodeString('wifiEndIp',aValue);
  109514. end;
  109515. procedure TJSNetworkCommandOptions._SetusbStartIp(const aValue : UnicodeString);
  109516. begin
  109517. WriteJSPropertyUnicodeString('usbStartIp',aValue);
  109518. end;
  109519. procedure TJSNetworkCommandOptions._SetusbEndIp(const aValue : UnicodeString);
  109520. begin
  109521. WriteJSPropertyUnicodeString('usbEndIp',aValue);
  109522. end;
  109523. procedure TJSNetworkCommandOptions._Setdns1(const aValue : UnicodeString);
  109524. begin
  109525. WriteJSPropertyUnicodeString('dns1',aValue);
  109526. end;
  109527. procedure TJSNetworkCommandOptions._Setdns2(const aValue : UnicodeString);
  109528. begin
  109529. WriteJSPropertyUnicodeString('dns2',aValue);
  109530. end;
  109531. procedure TJSNetworkCommandOptions._Setthreshold(const aValue : Int64);
  109532. begin
  109533. WriteJSPropertyDouble('threshold',aValue);
  109534. end;
  109535. procedure TJSNetworkCommandOptions._SetstartIp(const aValue : UnicodeString);
  109536. begin
  109537. WriteJSPropertyUnicodeString('startIp',aValue);
  109538. end;
  109539. procedure TJSNetworkCommandOptions._SetendIp(const aValue : UnicodeString);
  109540. begin
  109541. WriteJSPropertyUnicodeString('endIp',aValue);
  109542. end;
  109543. procedure TJSNetworkCommandOptions._SetserverIp(const aValue : UnicodeString);
  109544. begin
  109545. WriteJSPropertyUnicodeString('serverIp',aValue);
  109546. end;
  109547. procedure TJSNetworkCommandOptions._SetmaskLength(const aValue : UnicodeString);
  109548. begin
  109549. WriteJSPropertyUnicodeString('maskLength',aValue);
  109550. end;
  109551. procedure TJSNetworkCommandOptions._SetpreInternalIfname(const aValue : UnicodeString);
  109552. begin
  109553. WriteJSPropertyUnicodeString('preInternalIfname',aValue);
  109554. end;
  109555. procedure TJSNetworkCommandOptions._SetpreExternalIfname(const aValue : UnicodeString);
  109556. begin
  109557. WriteJSPropertyUnicodeString('preExternalIfname',aValue);
  109558. end;
  109559. procedure TJSNetworkCommandOptions._SetcurInternalIfname(const aValue : UnicodeString);
  109560. begin
  109561. WriteJSPropertyUnicodeString('curInternalIfname',aValue);
  109562. end;
  109563. procedure TJSNetworkCommandOptions._SetcurExternalIfname(const aValue : UnicodeString);
  109564. begin
  109565. WriteJSPropertyUnicodeString('curExternalIfname',aValue);
  109566. end;
  109567. procedure TJSNetworkCommandOptions._Setipaddr(const aValue : LongInt);
  109568. begin
  109569. WriteJSPropertyLongInt('ipaddr',aValue);
  109570. end;
  109571. procedure TJSNetworkCommandOptions._Setmask(const aValue : LongInt);
  109572. begin
  109573. WriteJSPropertyLongInt('mask',aValue);
  109574. end;
  109575. procedure TJSNetworkCommandOptions._Setgateway_long(const aValue : LongInt);
  109576. begin
  109577. WriteJSPropertyLongInt('gateway_long',aValue);
  109578. end;
  109579. procedure TJSNetworkCommandOptions._Setdns1_long(const aValue : LongInt);
  109580. begin
  109581. WriteJSPropertyLongInt('dns1_long',aValue);
  109582. end;
  109583. procedure TJSNetworkCommandOptions._Setdns2_long(const aValue : LongInt);
  109584. begin
  109585. WriteJSPropertyLongInt('dns2_long',aValue);
  109586. end;
  109587. procedure TJSNetworkCommandOptions._Setmtu(const aValue : LongInt);
  109588. begin
  109589. WriteJSPropertyLongInt('mtu',aValue);
  109590. end;
  109591. class function TJSNetworkCommandOptions.JSClassName: UnicodeString;
  109592. begin
  109593. Result:='Object';
  109594. end;
  109595. class function TJSNetworkCommandOptions.Cast(const Intf: IJSObject): IJSNetworkCommandOptions;
  109596. begin
  109597. Result:=TJSNetworkCommandOptions.JOBCast(Intf);
  109598. end;
  109599. function TJSNetworkResultOptions._Getid: LongInt;
  109600. begin
  109601. Result:=ReadJSPropertyLongInt('id');
  109602. end;
  109603. function TJSNetworkResultOptions._Getret: Boolean;
  109604. begin
  109605. Result:=ReadJSPropertyBoolean('ret');
  109606. end;
  109607. function TJSNetworkResultOptions._Getbroadcast: Boolean;
  109608. begin
  109609. Result:=ReadJSPropertyBoolean('broadcast');
  109610. end;
  109611. function TJSNetworkResultOptions._Gettopic: UnicodeString;
  109612. begin
  109613. Result:=ReadJSPropertyUnicodeString('topic');
  109614. end;
  109615. function TJSNetworkResultOptions._Getreason: UnicodeString;
  109616. begin
  109617. Result:=ReadJSPropertyUnicodeString('reason');
  109618. end;
  109619. function TJSNetworkResultOptions._GetresultCode: LongInt;
  109620. begin
  109621. Result:=ReadJSPropertyLongInt('resultCode');
  109622. end;
  109623. function TJSNetworkResultOptions._GetresultReason: UnicodeString;
  109624. begin
  109625. Result:=ReadJSPropertyUnicodeString('resultReason');
  109626. end;
  109627. function TJSNetworkResultOptions._Geterror: Boolean;
  109628. begin
  109629. Result:=ReadJSPropertyBoolean('error');
  109630. end;
  109631. function TJSNetworkResultOptions._Getenable: Boolean;
  109632. begin
  109633. Result:=ReadJSPropertyBoolean('enable');
  109634. end;
  109635. function TJSNetworkResultOptions._Getresult: Boolean;
  109636. begin
  109637. Result:=ReadJSPropertyBoolean('result');
  109638. end;
  109639. function TJSNetworkResultOptions._Getsuccess: Boolean;
  109640. begin
  109641. Result:=ReadJSPropertyBoolean('success');
  109642. end;
  109643. function TJSNetworkResultOptions._GetcurExternalIfname: UnicodeString;
  109644. begin
  109645. Result:=ReadJSPropertyUnicodeString('curExternalIfname');
  109646. end;
  109647. function TJSNetworkResultOptions._GetcurInternalIfname: UnicodeString;
  109648. begin
  109649. Result:=ReadJSPropertyUnicodeString('curInternalIfname');
  109650. end;
  109651. function TJSNetworkResultOptions._Getreply: UnicodeString;
  109652. begin
  109653. Result:=ReadJSPropertyUnicodeString('reply');
  109654. end;
  109655. function TJSNetworkResultOptions._Getroute: UnicodeString;
  109656. begin
  109657. Result:=ReadJSPropertyUnicodeString('route');
  109658. end;
  109659. function TJSNetworkResultOptions._Getipaddr_str: UnicodeString;
  109660. begin
  109661. Result:=ReadJSPropertyUnicodeString('ipaddr_str');
  109662. end;
  109663. function TJSNetworkResultOptions._Getgateway_str: UnicodeString;
  109664. begin
  109665. Result:=ReadJSPropertyUnicodeString('gateway_str');
  109666. end;
  109667. function TJSNetworkResultOptions._Getdns1_str: UnicodeString;
  109668. begin
  109669. Result:=ReadJSPropertyUnicodeString('dns1_str');
  109670. end;
  109671. function TJSNetworkResultOptions._Getdns2_str: UnicodeString;
  109672. begin
  109673. Result:=ReadJSPropertyUnicodeString('dns2_str');
  109674. end;
  109675. function TJSNetworkResultOptions._Getmask_str: UnicodeString;
  109676. begin
  109677. Result:=ReadJSPropertyUnicodeString('mask_str');
  109678. end;
  109679. function TJSNetworkResultOptions._Getserver_str: UnicodeString;
  109680. begin
  109681. Result:=ReadJSPropertyUnicodeString('server_str');
  109682. end;
  109683. function TJSNetworkResultOptions._Getvendor_str: UnicodeString;
  109684. begin
  109685. Result:=ReadJSPropertyUnicodeString('vendor_str');
  109686. end;
  109687. function TJSNetworkResultOptions._Getlease: LongInt;
  109688. begin
  109689. Result:=ReadJSPropertyLongInt('lease');
  109690. end;
  109691. function TJSNetworkResultOptions._GetprefixLength: LongInt;
  109692. begin
  109693. Result:=ReadJSPropertyLongInt('prefixLength');
  109694. end;
  109695. function TJSNetworkResultOptions._Getmask: LongInt;
  109696. begin
  109697. Result:=ReadJSPropertyLongInt('mask');
  109698. end;
  109699. function TJSNetworkResultOptions._Getgateway: LongInt;
  109700. begin
  109701. Result:=ReadJSPropertyLongInt('gateway');
  109702. end;
  109703. function TJSNetworkResultOptions._Getdns1: LongInt;
  109704. begin
  109705. Result:=ReadJSPropertyLongInt('dns1');
  109706. end;
  109707. function TJSNetworkResultOptions._Getdns2: LongInt;
  109708. begin
  109709. Result:=ReadJSPropertyLongInt('dns2');
  109710. end;
  109711. function TJSNetworkResultOptions._Getserver: LongInt;
  109712. begin
  109713. Result:=ReadJSPropertyLongInt('server');
  109714. end;
  109715. function TJSNetworkResultOptions._GetnetId: UnicodeString;
  109716. begin
  109717. Result:=ReadJSPropertyUnicodeString('netId');
  109718. end;
  109719. function TJSNetworkResultOptions._GetinterfaceList: TUnicodeStringDynArray;
  109720. begin
  109721. Result:=ReadJSPropertyObject('interfaceList',TJSArray) as TUnicodeStringDynArray;
  109722. end;
  109723. function TJSNetworkResultOptions._Getflag: UnicodeString;
  109724. begin
  109725. Result:=ReadJSPropertyUnicodeString('flag');
  109726. end;
  109727. function TJSNetworkResultOptions._GetmacAddr: UnicodeString;
  109728. begin
  109729. Result:=ReadJSPropertyUnicodeString('macAddr');
  109730. end;
  109731. function TJSNetworkResultOptions._GetipAddr: UnicodeString;
  109732. begin
  109733. Result:=ReadJSPropertyUnicodeString('ipAddr');
  109734. end;
  109735. procedure TJSNetworkResultOptions._Setid(const aValue : LongInt);
  109736. begin
  109737. WriteJSPropertyLongInt('id',aValue);
  109738. end;
  109739. procedure TJSNetworkResultOptions._Setret(const aValue : Boolean);
  109740. begin
  109741. WriteJSPropertyBoolean('ret',aValue);
  109742. end;
  109743. procedure TJSNetworkResultOptions._Setbroadcast(const aValue : Boolean);
  109744. begin
  109745. WriteJSPropertyBoolean('broadcast',aValue);
  109746. end;
  109747. procedure TJSNetworkResultOptions._Settopic(const aValue : UnicodeString);
  109748. begin
  109749. WriteJSPropertyUnicodeString('topic',aValue);
  109750. end;
  109751. procedure TJSNetworkResultOptions._Setreason(const aValue : UnicodeString);
  109752. begin
  109753. WriteJSPropertyUnicodeString('reason',aValue);
  109754. end;
  109755. procedure TJSNetworkResultOptions._SetresultCode(const aValue : LongInt);
  109756. begin
  109757. WriteJSPropertyLongInt('resultCode',aValue);
  109758. end;
  109759. procedure TJSNetworkResultOptions._SetresultReason(const aValue : UnicodeString);
  109760. begin
  109761. WriteJSPropertyUnicodeString('resultReason',aValue);
  109762. end;
  109763. procedure TJSNetworkResultOptions._Seterror(const aValue : Boolean);
  109764. begin
  109765. WriteJSPropertyBoolean('error',aValue);
  109766. end;
  109767. procedure TJSNetworkResultOptions._Setenable(const aValue : Boolean);
  109768. begin
  109769. WriteJSPropertyBoolean('enable',aValue);
  109770. end;
  109771. procedure TJSNetworkResultOptions._Setresult(const aValue : Boolean);
  109772. begin
  109773. WriteJSPropertyBoolean('result',aValue);
  109774. end;
  109775. procedure TJSNetworkResultOptions._Setsuccess(const aValue : Boolean);
  109776. begin
  109777. WriteJSPropertyBoolean('success',aValue);
  109778. end;
  109779. procedure TJSNetworkResultOptions._SetcurExternalIfname(const aValue : UnicodeString);
  109780. begin
  109781. WriteJSPropertyUnicodeString('curExternalIfname',aValue);
  109782. end;
  109783. procedure TJSNetworkResultOptions._SetcurInternalIfname(const aValue : UnicodeString);
  109784. begin
  109785. WriteJSPropertyUnicodeString('curInternalIfname',aValue);
  109786. end;
  109787. procedure TJSNetworkResultOptions._Setreply(const aValue : UnicodeString);
  109788. begin
  109789. WriteJSPropertyUnicodeString('reply',aValue);
  109790. end;
  109791. procedure TJSNetworkResultOptions._Setroute(const aValue : UnicodeString);
  109792. begin
  109793. WriteJSPropertyUnicodeString('route',aValue);
  109794. end;
  109795. procedure TJSNetworkResultOptions._Setipaddr_str(const aValue : UnicodeString);
  109796. begin
  109797. WriteJSPropertyUnicodeString('ipaddr_str',aValue);
  109798. end;
  109799. procedure TJSNetworkResultOptions._Setgateway_str(const aValue : UnicodeString);
  109800. begin
  109801. WriteJSPropertyUnicodeString('gateway_str',aValue);
  109802. end;
  109803. procedure TJSNetworkResultOptions._Setdns1_str(const aValue : UnicodeString);
  109804. begin
  109805. WriteJSPropertyUnicodeString('dns1_str',aValue);
  109806. end;
  109807. procedure TJSNetworkResultOptions._Setdns2_str(const aValue : UnicodeString);
  109808. begin
  109809. WriteJSPropertyUnicodeString('dns2_str',aValue);
  109810. end;
  109811. procedure TJSNetworkResultOptions._Setmask_str(const aValue : UnicodeString);
  109812. begin
  109813. WriteJSPropertyUnicodeString('mask_str',aValue);
  109814. end;
  109815. procedure TJSNetworkResultOptions._Setserver_str(const aValue : UnicodeString);
  109816. begin
  109817. WriteJSPropertyUnicodeString('server_str',aValue);
  109818. end;
  109819. procedure TJSNetworkResultOptions._Setvendor_str(const aValue : UnicodeString);
  109820. begin
  109821. WriteJSPropertyUnicodeString('vendor_str',aValue);
  109822. end;
  109823. procedure TJSNetworkResultOptions._Setlease(const aValue : LongInt);
  109824. begin
  109825. WriteJSPropertyLongInt('lease',aValue);
  109826. end;
  109827. procedure TJSNetworkResultOptions._SetprefixLength(const aValue : LongInt);
  109828. begin
  109829. WriteJSPropertyLongInt('prefixLength',aValue);
  109830. end;
  109831. procedure TJSNetworkResultOptions._Setmask(const aValue : LongInt);
  109832. begin
  109833. WriteJSPropertyLongInt('mask',aValue);
  109834. end;
  109835. procedure TJSNetworkResultOptions._Setgateway(const aValue : LongInt);
  109836. begin
  109837. WriteJSPropertyLongInt('gateway',aValue);
  109838. end;
  109839. procedure TJSNetworkResultOptions._Setdns1(const aValue : LongInt);
  109840. begin
  109841. WriteJSPropertyLongInt('dns1',aValue);
  109842. end;
  109843. procedure TJSNetworkResultOptions._Setdns2(const aValue : LongInt);
  109844. begin
  109845. WriteJSPropertyLongInt('dns2',aValue);
  109846. end;
  109847. procedure TJSNetworkResultOptions._Setserver(const aValue : LongInt);
  109848. begin
  109849. WriteJSPropertyLongInt('server',aValue);
  109850. end;
  109851. procedure TJSNetworkResultOptions._SetnetId(const aValue : UnicodeString);
  109852. begin
  109853. WriteJSPropertyUnicodeString('netId',aValue);
  109854. end;
  109855. procedure TJSNetworkResultOptions._SetinterfaceList(const aValue : TUnicodeStringDynArray);
  109856. begin
  109857. WriteJSPropertyObject('interfaceList',aValue);
  109858. end;
  109859. procedure TJSNetworkResultOptions._Setflag(const aValue : UnicodeString);
  109860. begin
  109861. WriteJSPropertyUnicodeString('flag',aValue);
  109862. end;
  109863. procedure TJSNetworkResultOptions._SetmacAddr(const aValue : UnicodeString);
  109864. begin
  109865. WriteJSPropertyUnicodeString('macAddr',aValue);
  109866. end;
  109867. procedure TJSNetworkResultOptions._SetipAddr(const aValue : UnicodeString);
  109868. begin
  109869. WriteJSPropertyUnicodeString('ipAddr',aValue);
  109870. end;
  109871. class function TJSNetworkResultOptions.JSClassName: UnicodeString;
  109872. begin
  109873. Result:='Object';
  109874. end;
  109875. class function TJSNetworkResultOptions.Cast(const Intf: IJSObject): IJSNetworkResultOptions;
  109876. begin
  109877. Result:=TJSNetworkResultOptions.JOBCast(Intf);
  109878. end;
  109879. function TJSNode._GetnodeType: Word;
  109880. begin
  109881. Result:=ReadJSPropertyLongInt('nodeType');
  109882. end;
  109883. function TJSNode._GetnodeName: UnicodeString;
  109884. begin
  109885. Result:=ReadJSPropertyUnicodeString('nodeName');
  109886. end;
  109887. function TJSNode._GetbaseURI: UnicodeString;
  109888. begin
  109889. Result:=ReadJSPropertyUnicodeString('baseURI');
  109890. end;
  109891. function TJSNode._GetisConnected: Boolean;
  109892. begin
  109893. Result:=ReadJSPropertyBoolean('isConnected');
  109894. end;
  109895. function TJSNode._GetownerDocument: IJSDocument;
  109896. begin
  109897. Result:=ReadJSPropertyObject('ownerDocument',TJSDocument) as IJSDocument;
  109898. end;
  109899. function TJSNode._GetparentNode: IJSNode;
  109900. begin
  109901. Result:=ReadJSPropertyObject('parentNode',TJSNode) as IJSNode;
  109902. end;
  109903. function TJSNode._GetparentElement: IJSElement;
  109904. begin
  109905. Result:=ReadJSPropertyObject('parentElement',TJSElement) as IJSElement;
  109906. end;
  109907. function TJSNode._GetchildNodes: IJSNodeList;
  109908. begin
  109909. Result:=ReadJSPropertyObject('childNodes',TJSNodeList) as IJSNodeList;
  109910. end;
  109911. function TJSNode._GetfirstChild: IJSNode;
  109912. begin
  109913. Result:=ReadJSPropertyObject('firstChild',TJSNode) as IJSNode;
  109914. end;
  109915. function TJSNode._GetlastChild: IJSNode;
  109916. begin
  109917. Result:=ReadJSPropertyObject('lastChild',TJSNode) as IJSNode;
  109918. end;
  109919. function TJSNode._GetpreviousSibling: IJSNode;
  109920. begin
  109921. Result:=ReadJSPropertyObject('previousSibling',TJSNode) as IJSNode;
  109922. end;
  109923. function TJSNode._GetnextSibling: IJSNode;
  109924. begin
  109925. Result:=ReadJSPropertyObject('nextSibling',TJSNode) as IJSNode;
  109926. end;
  109927. function TJSNode._GetnodeValue: UnicodeString;
  109928. begin
  109929. Result:=ReadJSPropertyUnicodeString('nodeValue');
  109930. end;
  109931. function TJSNode._GettextContent: UnicodeString;
  109932. begin
  109933. Result:=ReadJSPropertyUnicodeString('textContent');
  109934. end;
  109935. function TJSNode._GetcontainingShadowRoot: IJSShadowRoot;
  109936. begin
  109937. Result:=ReadJSPropertyObject('containingShadowRoot',TJSShadowRoot) as IJSShadowRoot;
  109938. end;
  109939. procedure TJSNode._SetnodeValue(const aValue : UnicodeString);
  109940. begin
  109941. WriteJSPropertyUnicodeString('nodeValue',aValue);
  109942. end;
  109943. procedure TJSNode._SettextContent(const aValue : UnicodeString);
  109944. begin
  109945. WriteJSPropertyUnicodeString('textContent',aValue);
  109946. end;
  109947. function TJSNode.getRootNode(const aOptions: TJSGetRootNodeOptions): IJSNode;
  109948. begin
  109949. Result:=InvokeJSObjectResult('getRootNode',[aOptions],TJSNode) as IJSNode;
  109950. end;
  109951. function TJSNode.getRootNode: IJSNode;
  109952. begin
  109953. Result:=InvokeJSObjectResult('getRootNode',[],TJSNode) as IJSNode;
  109954. end;
  109955. function TJSNode.hasChildNodes: Boolean;
  109956. begin
  109957. Result:=InvokeJSBooleanResult('hasChildNodes',[]);
  109958. end;
  109959. function TJSNode.insertBefore(aNode: IJSNode; aChild: IJSNode): IJSNode;
  109960. begin
  109961. Result:=InvokeJSObjectResult('insertBefore',[aNode,aChild],TJSNode) as IJSNode;
  109962. end;
  109963. function TJSNode.appendChild(aNode: IJSNode): IJSNode;
  109964. begin
  109965. Result:=InvokeJSObjectResult('appendChild',[aNode],TJSNode) as IJSNode;
  109966. end;
  109967. function TJSNode.replaceChild(aNode: IJSNode; aChild: IJSNode): IJSNode;
  109968. begin
  109969. Result:=InvokeJSObjectResult('replaceChild',[aNode,aChild],TJSNode) as IJSNode;
  109970. end;
  109971. function TJSNode.removeChild(aChild: IJSNode): IJSNode;
  109972. begin
  109973. Result:=InvokeJSObjectResult('removeChild',[aChild],TJSNode) as IJSNode;
  109974. end;
  109975. procedure TJSNode.normalize;
  109976. begin
  109977. InvokeJSNoResult('normalize',[]);
  109978. end;
  109979. function TJSNode.cloneNode(aDeep: Boolean): IJSNode;
  109980. begin
  109981. Result:=InvokeJSObjectResult('cloneNode',[aDeep],TJSNode) as IJSNode;
  109982. end;
  109983. function TJSNode.cloneNode: IJSNode;
  109984. begin
  109985. Result:=InvokeJSObjectResult('cloneNode',[],TJSNode) as IJSNode;
  109986. end;
  109987. function TJSNode.isSameNode(aNode: IJSNode): Boolean;
  109988. begin
  109989. Result:=InvokeJSBooleanResult('isSameNode',[aNode]);
  109990. end;
  109991. function TJSNode.isEqualNode(aNode: IJSNode): Boolean;
  109992. begin
  109993. Result:=InvokeJSBooleanResult('isEqualNode',[aNode]);
  109994. end;
  109995. function TJSNode.compareDocumentPosition(aOther: IJSNode): Word;
  109996. begin
  109997. Result:=InvokeJSLongIntResult('compareDocumentPosition',[aOther]);
  109998. end;
  109999. function TJSNode.contains(aOther: IJSNode): Boolean;
  110000. begin
  110001. Result:=InvokeJSBooleanResult('contains',[aOther]);
  110002. end;
  110003. function TJSNode.lookupPrefix(const aNamespace: UnicodeString): UnicodeString;
  110004. begin
  110005. Result:=InvokeJSUnicodeStringResult('lookupPrefix',[aNamespace]);
  110006. end;
  110007. function TJSNode.lookupNamespaceURI(const aPrefix: UnicodeString): UnicodeString;
  110008. begin
  110009. Result:=InvokeJSUnicodeStringResult('lookupNamespaceURI',[aPrefix]);
  110010. end;
  110011. function TJSNode.isDefaultNamespace(const aNamespace: UnicodeString): Boolean;
  110012. begin
  110013. Result:=InvokeJSBooleanResult('isDefaultNamespace',[aNamespace]);
  110014. end;
  110015. class function TJSNode.JSClassName: UnicodeString;
  110016. begin
  110017. Result:='Node';
  110018. end;
  110019. class function TJSNode.Cast(const Intf: IJSObject): IJSNode;
  110020. begin
  110021. Result:=TJSNode.JOBCast(Intf);
  110022. end;
  110023. function TJSGetRootNodeOptions._Getcomposed: Boolean;
  110024. begin
  110025. Result:=ReadJSPropertyBoolean('composed');
  110026. end;
  110027. procedure TJSGetRootNodeOptions._Setcomposed(const aValue : Boolean);
  110028. begin
  110029. WriteJSPropertyBoolean('composed',aValue);
  110030. end;
  110031. class function TJSGetRootNodeOptions.JSClassName: UnicodeString;
  110032. begin
  110033. Result:='Object';
  110034. end;
  110035. class function TJSGetRootNodeOptions.Cast(const Intf: IJSObject): IJSGetRootNodeOptions;
  110036. begin
  110037. Result:=TJSGetRootNodeOptions.JOBCast(Intf);
  110038. end;
  110039. function TJSNodeIterator._Getroot: IJSNode;
  110040. begin
  110041. Result:=ReadJSPropertyObject('root',TJSNode) as IJSNode;
  110042. end;
  110043. function TJSNodeIterator._GetreferenceNode: IJSNode;
  110044. begin
  110045. Result:=ReadJSPropertyObject('referenceNode',TJSNode) as IJSNode;
  110046. end;
  110047. function TJSNodeIterator._GetpointerBeforeReferenceNode: Boolean;
  110048. begin
  110049. Result:=ReadJSPropertyBoolean('pointerBeforeReferenceNode');
  110050. end;
  110051. function TJSNodeIterator._GetwhatToShow: Cardinal;
  110052. begin
  110053. Result:=ReadJSPropertyInt64('whatToShow');
  110054. end;
  110055. function TJSNodeIterator._Getfilter: TNodeFilter;
  110056. begin
  110057. Result:=(TNodeFilter(ReadJSPropertyMethod('filter')));
  110058. end;
  110059. function TJSNodeIterator.nextNode: IJSNode;
  110060. begin
  110061. Result:=InvokeJSObjectResult('nextNode',[],TJSNode) as IJSNode;
  110062. end;
  110063. function TJSNodeIterator.previousNode: IJSNode;
  110064. begin
  110065. Result:=InvokeJSObjectResult('previousNode',[],TJSNode) as IJSNode;
  110066. end;
  110067. procedure TJSNodeIterator.detach;
  110068. begin
  110069. InvokeJSNoResult('detach',[]);
  110070. end;
  110071. class function TJSNodeIterator.JSClassName: UnicodeString;
  110072. begin
  110073. Result:='NodeIterator';
  110074. end;
  110075. class function TJSNodeIterator.Cast(const Intf: IJSObject): IJSNodeIterator;
  110076. begin
  110077. Result:=TJSNodeIterator.JOBCast(Intf);
  110078. end;
  110079. function TJSNodeList._Getlength_: Cardinal;
  110080. begin
  110081. Result:=ReadJSPropertyInt64('length');
  110082. end;
  110083. function TJSNodeList.item(aIndex: Cardinal): IJSNode;
  110084. begin
  110085. Result:=InvokeJSObjectResult('item',[aIndex],TJSNode) as IJSNode;
  110086. end;
  110087. class function TJSNodeList.JSClassName: UnicodeString;
  110088. begin
  110089. Result:='NodeList';
  110090. end;
  110091. class function TJSNodeList.Cast(const Intf: IJSObject): IJSNodeList;
  110092. begin
  110093. Result:=TJSNodeList.JOBCast(Intf);
  110094. end;
  110095. function TJSNonElementParentNode.getElementById(const aElementId: UnicodeString): IJSElement;
  110096. begin
  110097. Result:=InvokeJSObjectResult('getElementById',[aElementId],TJSElement) as IJSElement;
  110098. end;
  110099. class function TJSNonElementParentNode.JSClassName: UnicodeString;
  110100. begin
  110101. Result:='NonElementParentNode';
  110102. end;
  110103. class function TJSNonElementParentNode.Cast(const Intf: IJSObject): IJSNonElementParentNode;
  110104. begin
  110105. Result:=TJSNonElementParentNode.JOBCast(Intf);
  110106. end;
  110107. function TJSNotification._Getpermission: TNotificationPermission;
  110108. begin
  110109. Result:=ReadJSPropertyUnicodeString('permission');
  110110. end;
  110111. function TJSNotification._Getonclick: TEventHandler;
  110112. begin
  110113. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclick')));
  110114. end;
  110115. function TJSNotification._Getonshow: TEventHandler;
  110116. begin
  110117. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onshow')));
  110118. end;
  110119. function TJSNotification._Getonerror: TEventHandler;
  110120. begin
  110121. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  110122. end;
  110123. function TJSNotification._Getonclose: TEventHandler;
  110124. begin
  110125. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclose')));
  110126. end;
  110127. function TJSNotification._Gettitle: UnicodeString;
  110128. begin
  110129. Result:=ReadJSPropertyUnicodeString('title');
  110130. end;
  110131. function TJSNotification._Getdir: TNotificationDirection;
  110132. begin
  110133. Result:=ReadJSPropertyUnicodeString('dir');
  110134. end;
  110135. function TJSNotification._Getlang: UnicodeString;
  110136. begin
  110137. Result:=ReadJSPropertyUnicodeString('lang');
  110138. end;
  110139. function TJSNotification._Getbody: UnicodeString;
  110140. begin
  110141. Result:=ReadJSPropertyUnicodeString('body');
  110142. end;
  110143. function TJSNotification._Gettag: UnicodeString;
  110144. begin
  110145. Result:=ReadJSPropertyUnicodeString('tag');
  110146. end;
  110147. function TJSNotification._Geticon: UnicodeString;
  110148. begin
  110149. Result:=ReadJSPropertyUnicodeString('icon');
  110150. end;
  110151. function TJSNotification._GetrequireInteraction: Boolean;
  110152. begin
  110153. Result:=ReadJSPropertyBoolean('requireInteraction');
  110154. end;
  110155. function TJSNotification._Getsilent: Boolean;
  110156. begin
  110157. Result:=ReadJSPropertyBoolean('silent');
  110158. end;
  110159. function TJSNotification._Getvibrate: TCardinalDynArray;
  110160. begin
  110161. Result:=ReadJSPropertyObject('vibrate',TJSArray) as TCardinalDynArray;
  110162. end;
  110163. function TJSNotification._Getdata: Variant;
  110164. begin
  110165. Result:=ReadJSPropertyVariant('data');
  110166. end;
  110167. procedure TJSNotification._Setonclick(const aValue : TEventHandler);
  110168. begin
  110169. WriteJSPropertyMethod('onclick',TMethod(aValue));
  110170. end;
  110171. procedure TJSNotification._Setonshow(const aValue : TEventHandler);
  110172. begin
  110173. WriteJSPropertyMethod('onshow',TMethod(aValue));
  110174. end;
  110175. procedure TJSNotification._Setonerror(const aValue : TEventHandler);
  110176. begin
  110177. WriteJSPropertyMethod('onerror',TMethod(aValue));
  110178. end;
  110179. procedure TJSNotification._Setonclose(const aValue : TEventHandler);
  110180. begin
  110181. WriteJSPropertyMethod('onclose',TMethod(aValue));
  110182. end;
  110183. constructor TJSNotification.Create(const aTitle: UnicodeString; const aOptions: TJSNotificationOptions);
  110184. begin
  110185. JOBCreate([aTitle,aOptions]);
  110186. end;
  110187. constructor TJSNotification.Create(const aTitle: UnicodeString);
  110188. begin
  110189. JOBCreate([aTitle]);
  110190. end;
  110191. function TJSNotification.requestPermission(const aPermissionCallback: TNotificationPermissionCallback): IJSPromise; // Promise<NotificationPermission>
  110192. var
  110193. m: TJOB_Method;
  110194. begin
  110195. m:=TJOB_Method.Create(TMethod(aPermissionCallback),@JOBCallNotificationPermissionCallback);
  110196. try
  110197. Result:=InvokeJSObjectResult('requestPermission',[m],TJSPromise) as IJSPromise;
  110198. finally
  110199. m.free;
  110200. end;
  110201. end;
  110202. function TJSNotification.requestPermission: IJSPromise; // Promise<NotificationPermission>
  110203. begin
  110204. Result:=InvokeJSObjectResult('requestPermission',[],TJSPromise) as IJSPromise;
  110205. end;
  110206. procedure TJSNotification.close;
  110207. begin
  110208. InvokeJSNoResult('close',[]);
  110209. end;
  110210. class function TJSNotification.JSClassName: UnicodeString;
  110211. begin
  110212. Result:='Notification';
  110213. end;
  110214. class function TJSNotification.Cast(const Intf: IJSObject): IJSNotification;
  110215. begin
  110216. Result:=TJSNotification.JOBCast(Intf);
  110217. end;
  110218. function TJSNotificationOptions._Getdir: TNotificationDirection;
  110219. begin
  110220. Result:=ReadJSPropertyUnicodeString('dir');
  110221. end;
  110222. function TJSNotificationOptions._Getlang: UnicodeString;
  110223. begin
  110224. Result:=ReadJSPropertyUnicodeString('lang');
  110225. end;
  110226. function TJSNotificationOptions._Getbody: UnicodeString;
  110227. begin
  110228. Result:=ReadJSPropertyUnicodeString('body');
  110229. end;
  110230. function TJSNotificationOptions._Gettag: UnicodeString;
  110231. begin
  110232. Result:=ReadJSPropertyUnicodeString('tag');
  110233. end;
  110234. function TJSNotificationOptions._Geticon: UnicodeString;
  110235. begin
  110236. Result:=ReadJSPropertyUnicodeString('icon');
  110237. end;
  110238. function TJSNotificationOptions._GetrequireInteraction: Boolean;
  110239. begin
  110240. Result:=ReadJSPropertyBoolean('requireInteraction');
  110241. end;
  110242. function TJSNotificationOptions._Getsilent: Boolean;
  110243. begin
  110244. Result:=ReadJSPropertyBoolean('silent');
  110245. end;
  110246. function TJSNotificationOptions._Getvibrate: TVibratePattern;
  110247. begin
  110248. Result:=ReadJSPropertyVariant('vibrate');
  110249. end;
  110250. function TJSNotificationOptions._Getdata: Variant;
  110251. begin
  110252. Result:=ReadJSPropertyVariant('data');
  110253. end;
  110254. function TJSNotificationOptions._Getmozbehavior: TJSNotificationBehavior;
  110255. begin
  110256. Result:=ReadJSPropertyObject('mozbehavior',TJSNotificationBehavior) as TJSNotificationBehavior;
  110257. end;
  110258. procedure TJSNotificationOptions._Setdir(const aValue : TNotificationDirection);
  110259. begin
  110260. WriteJSPropertyUnicodeString('dir',aValue);
  110261. end;
  110262. procedure TJSNotificationOptions._Setlang(const aValue : UnicodeString);
  110263. begin
  110264. WriteJSPropertyUnicodeString('lang',aValue);
  110265. end;
  110266. procedure TJSNotificationOptions._Setbody(const aValue : UnicodeString);
  110267. begin
  110268. WriteJSPropertyUnicodeString('body',aValue);
  110269. end;
  110270. procedure TJSNotificationOptions._Settag(const aValue : UnicodeString);
  110271. begin
  110272. WriteJSPropertyUnicodeString('tag',aValue);
  110273. end;
  110274. procedure TJSNotificationOptions._Seticon(const aValue : UnicodeString);
  110275. begin
  110276. WriteJSPropertyUnicodeString('icon',aValue);
  110277. end;
  110278. procedure TJSNotificationOptions._SetrequireInteraction(const aValue : Boolean);
  110279. begin
  110280. WriteJSPropertyBoolean('requireInteraction',aValue);
  110281. end;
  110282. procedure TJSNotificationOptions._Setsilent(const aValue : Boolean);
  110283. begin
  110284. WriteJSPropertyBoolean('silent',aValue);
  110285. end;
  110286. procedure TJSNotificationOptions._Setvibrate(const aValue : TVibratePattern);
  110287. begin
  110288. WriteJSPropertyVariant('vibrate',aValue);
  110289. end;
  110290. procedure TJSNotificationOptions._Setdata(const aValue : Variant);
  110291. begin
  110292. WriteJSPropertyVariant('data',aValue);
  110293. end;
  110294. procedure TJSNotificationOptions._Setmozbehavior(const aValue : TJSNotificationBehavior);
  110295. begin
  110296. WriteJSPropertyObject('mozbehavior',aValue);
  110297. end;
  110298. class function TJSNotificationOptions.JSClassName: UnicodeString;
  110299. begin
  110300. Result:='Object';
  110301. end;
  110302. class function TJSNotificationOptions.Cast(const Intf: IJSObject): IJSNotificationOptions;
  110303. begin
  110304. Result:=TJSNotificationOptions.JOBCast(Intf);
  110305. end;
  110306. function TJSGetNotificationOptions._Gettag: UnicodeString;
  110307. begin
  110308. Result:=ReadJSPropertyUnicodeString('tag');
  110309. end;
  110310. procedure TJSGetNotificationOptions._Settag(const aValue : UnicodeString);
  110311. begin
  110312. WriteJSPropertyUnicodeString('tag',aValue);
  110313. end;
  110314. class function TJSGetNotificationOptions.JSClassName: UnicodeString;
  110315. begin
  110316. Result:='Object';
  110317. end;
  110318. class function TJSGetNotificationOptions.Cast(const Intf: IJSObject): IJSGetNotificationOptions;
  110319. begin
  110320. Result:=TJSGetNotificationOptions.JOBCast(Intf);
  110321. end;
  110322. function TJSNotificationBehavior._Getnoscreen: Boolean;
  110323. begin
  110324. Result:=ReadJSPropertyBoolean('noscreen');
  110325. end;
  110326. function TJSNotificationBehavior._Getnoclear: Boolean;
  110327. begin
  110328. Result:=ReadJSPropertyBoolean('noclear');
  110329. end;
  110330. function TJSNotificationBehavior._GetshowOnlyOnce: Boolean;
  110331. begin
  110332. Result:=ReadJSPropertyBoolean('showOnlyOnce');
  110333. end;
  110334. function TJSNotificationBehavior._GetsoundFile: UnicodeString;
  110335. begin
  110336. Result:=ReadJSPropertyUnicodeString('soundFile');
  110337. end;
  110338. function TJSNotificationBehavior._GetvibrationPattern: TCardinalDynArray;
  110339. begin
  110340. Result:=ReadJSPropertyObject('vibrationPattern',TJSArray) as TCardinalDynArray;
  110341. end;
  110342. procedure TJSNotificationBehavior._Setnoscreen(const aValue : Boolean);
  110343. begin
  110344. WriteJSPropertyBoolean('noscreen',aValue);
  110345. end;
  110346. procedure TJSNotificationBehavior._Setnoclear(const aValue : Boolean);
  110347. begin
  110348. WriteJSPropertyBoolean('noclear',aValue);
  110349. end;
  110350. procedure TJSNotificationBehavior._SetshowOnlyOnce(const aValue : Boolean);
  110351. begin
  110352. WriteJSPropertyBoolean('showOnlyOnce',aValue);
  110353. end;
  110354. procedure TJSNotificationBehavior._SetsoundFile(const aValue : UnicodeString);
  110355. begin
  110356. WriteJSPropertyUnicodeString('soundFile',aValue);
  110357. end;
  110358. procedure TJSNotificationBehavior._SetvibrationPattern(const aValue : TCardinalDynArray);
  110359. begin
  110360. WriteJSPropertyObject('vibrationPattern',aValue);
  110361. end;
  110362. class function TJSNotificationBehavior.JSClassName: UnicodeString;
  110363. begin
  110364. Result:='Object';
  110365. end;
  110366. class function TJSNotificationBehavior.Cast(const Intf: IJSObject): IJSNotificationBehavior;
  110367. begin
  110368. Result:=TJSNotificationBehavior.JOBCast(Intf);
  110369. end;
  110370. function TJSNotificationEvent._Getnotification: IJSNotification;
  110371. begin
  110372. Result:=ReadJSPropertyObject('notification',TJSNotification) as IJSNotification;
  110373. end;
  110374. constructor TJSNotificationEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSNotificationEventInit);
  110375. begin
  110376. JOBCreate([aType_,aEventInitDict]);
  110377. end;
  110378. class function TJSNotificationEvent.JSClassName: UnicodeString;
  110379. begin
  110380. Result:='NotificationEvent';
  110381. end;
  110382. class function TJSNotificationEvent.Cast(const Intf: IJSObject): IJSNotificationEvent;
  110383. begin
  110384. Result:=TJSNotificationEvent.JOBCast(Intf);
  110385. end;
  110386. function TJSNotificationEventInit._Getnotification: IJSNotification;
  110387. begin
  110388. Result:=ReadJSPropertyObject('notification',TJSNotification) as IJSNotification;
  110389. end;
  110390. procedure TJSNotificationEventInit._Setnotification(const aValue : IJSNotification);
  110391. begin
  110392. WriteJSPropertyObject('notification',aValue);
  110393. end;
  110394. class function TJSNotificationEventInit.JSClassName: UnicodeString;
  110395. begin
  110396. Result:='Object';
  110397. end;
  110398. class function TJSNotificationEventInit.Cast(const Intf: IJSObject): IJSNotificationEventInit;
  110399. begin
  110400. Result:=TJSNotificationEventInit.JOBCast(Intf);
  110401. end;
  110402. function TJSOfflineAudioCompletionEventInit._GetrenderedBuffer: IJSAudioBuffer;
  110403. begin
  110404. Result:=ReadJSPropertyObject('renderedBuffer',TJSAudioBuffer) as IJSAudioBuffer;
  110405. end;
  110406. procedure TJSOfflineAudioCompletionEventInit._SetrenderedBuffer(const aValue : IJSAudioBuffer);
  110407. begin
  110408. WriteJSPropertyObject('renderedBuffer',aValue);
  110409. end;
  110410. class function TJSOfflineAudioCompletionEventInit.JSClassName: UnicodeString;
  110411. begin
  110412. Result:='Object';
  110413. end;
  110414. class function TJSOfflineAudioCompletionEventInit.Cast(const Intf: IJSObject): IJSOfflineAudioCompletionEventInit;
  110415. begin
  110416. Result:=TJSOfflineAudioCompletionEventInit.JOBCast(Intf);
  110417. end;
  110418. function TJSOfflineAudioCompletionEvent._GetrenderedBuffer: IJSAudioBuffer;
  110419. begin
  110420. Result:=ReadJSPropertyObject('renderedBuffer',TJSAudioBuffer) as IJSAudioBuffer;
  110421. end;
  110422. constructor TJSOfflineAudioCompletionEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSOfflineAudioCompletionEventInit);
  110423. begin
  110424. JOBCreate([aType_,aEventInitDict]);
  110425. end;
  110426. class function TJSOfflineAudioCompletionEvent.JSClassName: UnicodeString;
  110427. begin
  110428. Result:='OfflineAudioCompletionEvent';
  110429. end;
  110430. class function TJSOfflineAudioCompletionEvent.Cast(const Intf: IJSObject): IJSOfflineAudioCompletionEvent;
  110431. begin
  110432. Result:=TJSOfflineAudioCompletionEvent.JOBCast(Intf);
  110433. end;
  110434. function TJSOfflineAudioContextOptions._GetnumberOfChannels: Cardinal;
  110435. begin
  110436. Result:=ReadJSPropertyInt64('numberOfChannels');
  110437. end;
  110438. function TJSOfflineAudioContextOptions._Getlength_: Cardinal;
  110439. begin
  110440. Result:=ReadJSPropertyInt64('length');
  110441. end;
  110442. function TJSOfflineAudioContextOptions._GetsampleRate: Single;
  110443. begin
  110444. Result:=ReadJSPropertyDouble('sampleRate');
  110445. end;
  110446. procedure TJSOfflineAudioContextOptions._SetnumberOfChannels(const aValue : Cardinal);
  110447. begin
  110448. WriteJSPropertyDouble('numberOfChannels',aValue);
  110449. end;
  110450. procedure TJSOfflineAudioContextOptions._Setlength_(const aValue : Cardinal);
  110451. begin
  110452. WriteJSPropertyDouble('length',aValue);
  110453. end;
  110454. procedure TJSOfflineAudioContextOptions._SetsampleRate(const aValue : Single);
  110455. begin
  110456. WriteJSPropertyDouble('sampleRate',aValue);
  110457. end;
  110458. class function TJSOfflineAudioContextOptions.JSClassName: UnicodeString;
  110459. begin
  110460. Result:='Object';
  110461. end;
  110462. class function TJSOfflineAudioContextOptions.Cast(const Intf: IJSObject): IJSOfflineAudioContextOptions;
  110463. begin
  110464. Result:=TJSOfflineAudioContextOptions.JOBCast(Intf);
  110465. end;
  110466. function TJSOfflineAudioContext._Getlength_: Cardinal;
  110467. begin
  110468. Result:=ReadJSPropertyInt64('length');
  110469. end;
  110470. function TJSOfflineAudioContext._Getoncomplete: TEventHandler;
  110471. begin
  110472. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncomplete')));
  110473. end;
  110474. procedure TJSOfflineAudioContext._Setoncomplete(const aValue : TEventHandler);
  110475. begin
  110476. WriteJSPropertyMethod('oncomplete',TMethod(aValue));
  110477. end;
  110478. constructor TJSOfflineAudioContext.Create(const aContextOptions: TJSOfflineAudioContextOptions);
  110479. begin
  110480. JOBCreate([aContextOptions]);
  110481. end;
  110482. constructor TJSOfflineAudioContext.Create(aNumberOfChannels: Cardinal; aLength_: Cardinal; aSampleRate: Single);
  110483. begin
  110484. JOBCreate([aNumberOfChannels,aLength_,aSampleRate]);
  110485. end;
  110486. function TJSOfflineAudioContext.startRendering: IJSPromise; // Promise<AudioBuffer>
  110487. begin
  110488. Result:=InvokeJSObjectResult('startRendering',[],TJSPromise) as IJSPromise;
  110489. end;
  110490. class function TJSOfflineAudioContext.JSClassName: UnicodeString;
  110491. begin
  110492. Result:='OfflineAudioContext';
  110493. end;
  110494. class function TJSOfflineAudioContext.Cast(const Intf: IJSObject): IJSOfflineAudioContext;
  110495. begin
  110496. Result:=TJSOfflineAudioContext.JOBCast(Intf);
  110497. end;
  110498. function TJSImageEncodeOptions._Gettype_: UnicodeString;
  110499. begin
  110500. Result:=ReadJSPropertyUnicodeString('type');
  110501. end;
  110502. function TJSImageEncodeOptions._Getquality: Double;
  110503. begin
  110504. Result:=ReadJSPropertyDouble('quality');
  110505. end;
  110506. procedure TJSImageEncodeOptions._Settype_(const aValue : UnicodeString);
  110507. begin
  110508. WriteJSPropertyUnicodeString('type',aValue);
  110509. end;
  110510. procedure TJSImageEncodeOptions._Setquality(const aValue : Double);
  110511. begin
  110512. WriteJSPropertyDouble('quality',aValue);
  110513. end;
  110514. class function TJSImageEncodeOptions.JSClassName: UnicodeString;
  110515. begin
  110516. Result:='Object';
  110517. end;
  110518. class function TJSImageEncodeOptions.Cast(const Intf: IJSObject): IJSImageEncodeOptions;
  110519. begin
  110520. Result:=TJSImageEncodeOptions.JOBCast(Intf);
  110521. end;
  110522. function TJSOffscreenCanvas._Getwidth: Cardinal;
  110523. begin
  110524. Result:=ReadJSPropertyInt64('width');
  110525. end;
  110526. function TJSOffscreenCanvas._Getheight: Cardinal;
  110527. begin
  110528. Result:=ReadJSPropertyInt64('height');
  110529. end;
  110530. function TJSOffscreenCanvas._Getoncontextlost: TEventHandler;
  110531. begin
  110532. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextlost')));
  110533. end;
  110534. function TJSOffscreenCanvas._Getoncontextrestored: TEventHandler;
  110535. begin
  110536. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextrestored')));
  110537. end;
  110538. procedure TJSOffscreenCanvas._Setwidth(const aValue : Cardinal);
  110539. begin
  110540. WriteJSPropertyDouble('width',aValue);
  110541. end;
  110542. procedure TJSOffscreenCanvas._Setheight(const aValue : Cardinal);
  110543. begin
  110544. WriteJSPropertyDouble('height',aValue);
  110545. end;
  110546. procedure TJSOffscreenCanvas._Setoncontextlost(const aValue : TEventHandler);
  110547. begin
  110548. WriteJSPropertyMethod('oncontextlost',TMethod(aValue));
  110549. end;
  110550. procedure TJSOffscreenCanvas._Setoncontextrestored(const aValue : TEventHandler);
  110551. begin
  110552. WriteJSPropertyMethod('oncontextrestored',TMethod(aValue));
  110553. end;
  110554. constructor TJSOffscreenCanvas.Create(aWidth: Cardinal; aHeight: Cardinal);
  110555. begin
  110556. JOBCreate([aWidth,aHeight]);
  110557. end;
  110558. function TJSOffscreenCanvas.getContext(aContextId: TOffscreenRenderingContextId; const aContextOptions: Variant): TOffscreenRenderingContext;
  110559. begin
  110560. Result:=InvokeJSVariantResult('getContext',[aContextId,aContextOptions]);
  110561. end;
  110562. function TJSOffscreenCanvas.getContext(aContextId: TOffscreenRenderingContextId): TOffscreenRenderingContext;
  110563. begin
  110564. Result:=InvokeJSVariantResult('getContext',[aContextId]);
  110565. end;
  110566. function TJSOffscreenCanvas.transferToImageBitmap: IJSImageBitmap;
  110567. begin
  110568. Result:=InvokeJSObjectResult('transferToImageBitmap',[],TJSImageBitmap) as IJSImageBitmap;
  110569. end;
  110570. function TJSOffscreenCanvas.convertToBlob(const aOptions: TJSImageEncodeOptions): IJSPromise; // Promise<Blob>
  110571. begin
  110572. Result:=InvokeJSObjectResult('convertToBlob',[aOptions],TJSPromise) as IJSPromise;
  110573. end;
  110574. function TJSOffscreenCanvas.convertToBlob: IJSPromise; // Promise<Blob>
  110575. begin
  110576. Result:=InvokeJSObjectResult('convertToBlob',[],TJSPromise) as IJSPromise;
  110577. end;
  110578. function TJSOffscreenCanvas.toBlob(const aType_: UnicodeString; const aEncoderOptions: Variant): IJSPromise; // Promise<Blob>
  110579. begin
  110580. Result:=InvokeJSObjectResult('toBlob',[aType_,aEncoderOptions],TJSPromise) as IJSPromise;
  110581. end;
  110582. function TJSOffscreenCanvas.toBlob: IJSPromise; // Promise<Blob>
  110583. begin
  110584. Result:=InvokeJSObjectResult('toBlob',[],TJSPromise) as IJSPromise;
  110585. end;
  110586. function TJSOffscreenCanvas.toBlob(const aType_: UnicodeString): IJSPromise; // Promise<Blob>
  110587. begin
  110588. Result:=InvokeJSObjectResult('toBlob',[aType_],TJSPromise) as IJSPromise;
  110589. end;
  110590. class function TJSOffscreenCanvas.JSClassName: UnicodeString;
  110591. begin
  110592. Result:='OffscreenCanvas';
  110593. end;
  110594. class function TJSOffscreenCanvas.Cast(const Intf: IJSObject): IJSOffscreenCanvas;
  110595. begin
  110596. Result:=TJSOffscreenCanvas.JOBCast(Intf);
  110597. end;
  110598. function TJSOffscreenCanvasRenderingContext2D._Getcanvas: IJSOffscreenCanvas;
  110599. begin
  110600. Result:=ReadJSPropertyObject('canvas',TJSOffscreenCanvas) as IJSOffscreenCanvas;
  110601. end;
  110602. function TJSOffscreenCanvasRenderingContext2D._GetglobalAlpha: Double;
  110603. begin
  110604. Result:=ReadJSPropertyDouble('globalAlpha');
  110605. end;
  110606. function TJSOffscreenCanvasRenderingContext2D._GetglobalCompositeOperation: UnicodeString;
  110607. begin
  110608. Result:=ReadJSPropertyUnicodeString('globalCompositeOperation');
  110609. end;
  110610. function TJSOffscreenCanvasRenderingContext2D._GetimageSmoothingEnabled: Boolean;
  110611. begin
  110612. Result:=ReadJSPropertyBoolean('imageSmoothingEnabled');
  110613. end;
  110614. function TJSOffscreenCanvasRenderingContext2D._GetstrokeStyle: TCanvasFillStrokeStyles_strokeStyle_Type;
  110615. begin
  110616. Result:=ReadJSPropertyVariant('strokeStyle');
  110617. end;
  110618. function TJSOffscreenCanvasRenderingContext2D._GetfillStyle: TCanvasFillStrokeStyles_fillStyle_Type;
  110619. begin
  110620. Result:=ReadJSPropertyVariant('fillStyle');
  110621. end;
  110622. function TJSOffscreenCanvasRenderingContext2D._GetshadowOffsetX: Double;
  110623. begin
  110624. Result:=ReadJSPropertyDouble('shadowOffsetX');
  110625. end;
  110626. function TJSOffscreenCanvasRenderingContext2D._GetshadowOffsetY: Double;
  110627. begin
  110628. Result:=ReadJSPropertyDouble('shadowOffsetY');
  110629. end;
  110630. function TJSOffscreenCanvasRenderingContext2D._GetshadowBlur: Double;
  110631. begin
  110632. Result:=ReadJSPropertyDouble('shadowBlur');
  110633. end;
  110634. function TJSOffscreenCanvasRenderingContext2D._GetshadowColor: UTF8String;
  110635. begin
  110636. Result:=ReadJSPropertyUTF8String('shadowColor');
  110637. end;
  110638. function TJSOffscreenCanvasRenderingContext2D._Getfilter: UTF8String;
  110639. begin
  110640. Result:=ReadJSPropertyUTF8String('filter');
  110641. end;
  110642. function TJSOffscreenCanvasRenderingContext2D._GetlineWidth: Double;
  110643. begin
  110644. Result:=ReadJSPropertyDouble('lineWidth');
  110645. end;
  110646. function TJSOffscreenCanvasRenderingContext2D._GetlineCap: TCanvasLineCap;
  110647. begin
  110648. Result:=ReadJSPropertyUnicodeString('lineCap');
  110649. end;
  110650. function TJSOffscreenCanvasRenderingContext2D._GetlineJoin: TCanvasLineJoin;
  110651. begin
  110652. Result:=ReadJSPropertyUnicodeString('lineJoin');
  110653. end;
  110654. function TJSOffscreenCanvasRenderingContext2D._GetmiterLimit: Double;
  110655. begin
  110656. Result:=ReadJSPropertyDouble('miterLimit');
  110657. end;
  110658. function TJSOffscreenCanvasRenderingContext2D._GetlineDashOffset: Double;
  110659. begin
  110660. Result:=ReadJSPropertyDouble('lineDashOffset');
  110661. end;
  110662. function TJSOffscreenCanvasRenderingContext2D._Getfont: UTF8String;
  110663. begin
  110664. Result:=ReadJSPropertyUTF8String('font');
  110665. end;
  110666. function TJSOffscreenCanvasRenderingContext2D._GettextAlign: TCanvasTextAlign;
  110667. begin
  110668. Result:=ReadJSPropertyUnicodeString('textAlign');
  110669. end;
  110670. function TJSOffscreenCanvasRenderingContext2D._GettextBaseline: TCanvasTextBaseline;
  110671. begin
  110672. Result:=ReadJSPropertyUnicodeString('textBaseline');
  110673. end;
  110674. function TJSOffscreenCanvasRenderingContext2D._Getdirection: TCanvasDirection;
  110675. begin
  110676. Result:=ReadJSPropertyUnicodeString('direction');
  110677. end;
  110678. function TJSOffscreenCanvasRenderingContext2D._GetletterSpacing: UTF8String;
  110679. begin
  110680. Result:=ReadJSPropertyUTF8String('letterSpacing');
  110681. end;
  110682. function TJSOffscreenCanvasRenderingContext2D._GetfontKerning: TCanvasFontKerning;
  110683. begin
  110684. Result:=ReadJSPropertyUnicodeString('fontKerning');
  110685. end;
  110686. function TJSOffscreenCanvasRenderingContext2D._GetfontStretch: TCanvasFontStretch;
  110687. begin
  110688. Result:=ReadJSPropertyUnicodeString('fontStretch');
  110689. end;
  110690. function TJSOffscreenCanvasRenderingContext2D._GetfontVariantCaps: TCanvasFontVariantCaps;
  110691. begin
  110692. Result:=ReadJSPropertyUnicodeString('fontVariantCaps');
  110693. end;
  110694. function TJSOffscreenCanvasRenderingContext2D._GettextRendering: TCanvasTextRendering;
  110695. begin
  110696. Result:=ReadJSPropertyUnicodeString('textRendering');
  110697. end;
  110698. function TJSOffscreenCanvasRenderingContext2D._GetwordSpacing: UTF8String;
  110699. begin
  110700. Result:=ReadJSPropertyUTF8String('wordSpacing');
  110701. end;
  110702. procedure TJSOffscreenCanvasRenderingContext2D._SetglobalAlpha(const aValue : Double);
  110703. begin
  110704. WriteJSPropertyDouble('globalAlpha',aValue);
  110705. end;
  110706. procedure TJSOffscreenCanvasRenderingContext2D._SetglobalCompositeOperation(const aValue : UnicodeString);
  110707. begin
  110708. WriteJSPropertyUnicodeString('globalCompositeOperation',aValue);
  110709. end;
  110710. procedure TJSOffscreenCanvasRenderingContext2D._SetimageSmoothingEnabled(const aValue : Boolean);
  110711. begin
  110712. WriteJSPropertyBoolean('imageSmoothingEnabled',aValue);
  110713. end;
  110714. procedure TJSOffscreenCanvasRenderingContext2D._SetstrokeStyle(const aValue : TCanvasFillStrokeStyles_strokeStyle_Type);
  110715. begin
  110716. WriteJSPropertyVariant('strokeStyle',aValue);
  110717. end;
  110718. procedure TJSOffscreenCanvasRenderingContext2D._SetfillStyle(const aValue : TCanvasFillStrokeStyles_fillStyle_Type);
  110719. begin
  110720. WriteJSPropertyVariant('fillStyle',aValue);
  110721. end;
  110722. procedure TJSOffscreenCanvasRenderingContext2D._SetshadowOffsetX(const aValue : Double);
  110723. begin
  110724. WriteJSPropertyDouble('shadowOffsetX',aValue);
  110725. end;
  110726. procedure TJSOffscreenCanvasRenderingContext2D._SetshadowOffsetY(const aValue : Double);
  110727. begin
  110728. WriteJSPropertyDouble('shadowOffsetY',aValue);
  110729. end;
  110730. procedure TJSOffscreenCanvasRenderingContext2D._SetshadowBlur(const aValue : Double);
  110731. begin
  110732. WriteJSPropertyDouble('shadowBlur',aValue);
  110733. end;
  110734. procedure TJSOffscreenCanvasRenderingContext2D._SetshadowColor(const aValue : UTF8String);
  110735. begin
  110736. WriteJSPropertyUTF8String('shadowColor',aValue);
  110737. end;
  110738. procedure TJSOffscreenCanvasRenderingContext2D._Setfilter(const aValue : UTF8String);
  110739. begin
  110740. WriteJSPropertyUTF8String('filter',aValue);
  110741. end;
  110742. procedure TJSOffscreenCanvasRenderingContext2D._SetlineWidth(const aValue : Double);
  110743. begin
  110744. WriteJSPropertyDouble('lineWidth',aValue);
  110745. end;
  110746. procedure TJSOffscreenCanvasRenderingContext2D._SetlineCap(const aValue : TCanvasLineCap);
  110747. begin
  110748. WriteJSPropertyUnicodeString('lineCap',aValue);
  110749. end;
  110750. procedure TJSOffscreenCanvasRenderingContext2D._SetlineJoin(const aValue : TCanvasLineJoin);
  110751. begin
  110752. WriteJSPropertyUnicodeString('lineJoin',aValue);
  110753. end;
  110754. procedure TJSOffscreenCanvasRenderingContext2D._SetmiterLimit(const aValue : Double);
  110755. begin
  110756. WriteJSPropertyDouble('miterLimit',aValue);
  110757. end;
  110758. procedure TJSOffscreenCanvasRenderingContext2D._SetlineDashOffset(const aValue : Double);
  110759. begin
  110760. WriteJSPropertyDouble('lineDashOffset',aValue);
  110761. end;
  110762. procedure TJSOffscreenCanvasRenderingContext2D._Setfont(const aValue : UTF8String);
  110763. begin
  110764. WriteJSPropertyUTF8String('font',aValue);
  110765. end;
  110766. procedure TJSOffscreenCanvasRenderingContext2D._SettextAlign(const aValue : TCanvasTextAlign);
  110767. begin
  110768. WriteJSPropertyUnicodeString('textAlign',aValue);
  110769. end;
  110770. procedure TJSOffscreenCanvasRenderingContext2D._SettextBaseline(const aValue : TCanvasTextBaseline);
  110771. begin
  110772. WriteJSPropertyUnicodeString('textBaseline',aValue);
  110773. end;
  110774. procedure TJSOffscreenCanvasRenderingContext2D._Setdirection(const aValue : TCanvasDirection);
  110775. begin
  110776. WriteJSPropertyUnicodeString('direction',aValue);
  110777. end;
  110778. procedure TJSOffscreenCanvasRenderingContext2D._SetletterSpacing(const aValue : UTF8String);
  110779. begin
  110780. WriteJSPropertyUTF8String('letterSpacing',aValue);
  110781. end;
  110782. procedure TJSOffscreenCanvasRenderingContext2D._SetfontKerning(const aValue : TCanvasFontKerning);
  110783. begin
  110784. WriteJSPropertyUnicodeString('fontKerning',aValue);
  110785. end;
  110786. procedure TJSOffscreenCanvasRenderingContext2D._SetfontStretch(const aValue : TCanvasFontStretch);
  110787. begin
  110788. WriteJSPropertyUnicodeString('fontStretch',aValue);
  110789. end;
  110790. procedure TJSOffscreenCanvasRenderingContext2D._SetfontVariantCaps(const aValue : TCanvasFontVariantCaps);
  110791. begin
  110792. WriteJSPropertyUnicodeString('fontVariantCaps',aValue);
  110793. end;
  110794. procedure TJSOffscreenCanvasRenderingContext2D._SettextRendering(const aValue : TCanvasTextRendering);
  110795. begin
  110796. WriteJSPropertyUnicodeString('textRendering',aValue);
  110797. end;
  110798. procedure TJSOffscreenCanvasRenderingContext2D._SetwordSpacing(const aValue : UTF8String);
  110799. begin
  110800. WriteJSPropertyUTF8String('wordSpacing',aValue);
  110801. end;
  110802. procedure TJSOffscreenCanvasRenderingContext2D.commit;
  110803. begin
  110804. InvokeJSNoResult('commit',[]);
  110805. end;
  110806. procedure TJSOffscreenCanvasRenderingContext2D.save;
  110807. begin
  110808. InvokeJSNoResult('save',[]);
  110809. end;
  110810. procedure TJSOffscreenCanvasRenderingContext2D.restore;
  110811. begin
  110812. InvokeJSNoResult('restore',[]);
  110813. end;
  110814. procedure TJSOffscreenCanvasRenderingContext2D.reset;
  110815. begin
  110816. InvokeJSNoResult('reset',[]);
  110817. end;
  110818. function TJSOffscreenCanvasRenderingContext2D.isContextLost: Boolean;
  110819. begin
  110820. Result:=InvokeJSBooleanResult('isContextLost',[]);
  110821. end;
  110822. procedure TJSOffscreenCanvasRenderingContext2D.scale(aX: Double; aY: Double);
  110823. begin
  110824. InvokeJSNoResult('scale',[aX,aY]);
  110825. end;
  110826. procedure TJSOffscreenCanvasRenderingContext2D.rotate(aAngle: Double);
  110827. begin
  110828. InvokeJSNoResult('rotate',[aAngle]);
  110829. end;
  110830. procedure TJSOffscreenCanvasRenderingContext2D.translate(aX: Double; aY: Double);
  110831. begin
  110832. InvokeJSNoResult('translate',[aX,aY]);
  110833. end;
  110834. procedure TJSOffscreenCanvasRenderingContext2D.transform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  110835. begin
  110836. InvokeJSNoResult('transform',[aA,aB,aC,aD,aE,aF]);
  110837. end;
  110838. function TJSOffscreenCanvasRenderingContext2D.getTransform: IJSDOMMatrix;
  110839. begin
  110840. Result:=InvokeJSObjectResult('getTransform',[],TJSDOMMatrix) as IJSDOMMatrix;
  110841. end;
  110842. procedure TJSOffscreenCanvasRenderingContext2D.setTransform(aA: Double; aB: Double; aC: Double; aD: Double; aE: Double; aF: Double);
  110843. begin
  110844. InvokeJSNoResult('setTransform',[aA,aB,aC,aD,aE,aF]);
  110845. end;
  110846. procedure TJSOffscreenCanvasRenderingContext2D.setTransform(const aTransform: TJSDOMMatrix2DInit);
  110847. begin
  110848. InvokeJSNoResult('setTransform',[aTransform]);
  110849. end;
  110850. procedure TJSOffscreenCanvasRenderingContext2D.setTransform;
  110851. begin
  110852. InvokeJSNoResult('setTransform',[]);
  110853. end;
  110854. procedure TJSOffscreenCanvasRenderingContext2D.resetTransform;
  110855. begin
  110856. InvokeJSNoResult('resetTransform',[]);
  110857. end;
  110858. function TJSOffscreenCanvasRenderingContext2D.createLinearGradient(aX0: Double; aY0: Double; aX1: Double; aY1: Double): IJSCanvasGradient;
  110859. begin
  110860. Result:=InvokeJSObjectResult('createLinearGradient',[aX0,aY0,aX1,aY1],TJSCanvasGradient) as IJSCanvasGradient;
  110861. end;
  110862. function TJSOffscreenCanvasRenderingContext2D.createRadialGradient(aX0: Double; aY0: Double; aR0: Double; aX1: Double; aY1: Double; aR1: Double): IJSCanvasGradient;
  110863. begin
  110864. Result:=InvokeJSObjectResult('createRadialGradient',[aX0,aY0,aR0,aX1,aY1,aR1],TJSCanvasGradient) as IJSCanvasGradient;
  110865. end;
  110866. function TJSOffscreenCanvasRenderingContext2D.createConicGradient(aAngle: Double; aCx: Double; aCy: Double): IJSCanvasGradient;
  110867. begin
  110868. Result:=InvokeJSObjectResult('createConicGradient',[aAngle,aCx,aCy],TJSCanvasGradient) as IJSCanvasGradient;
  110869. end;
  110870. function TJSOffscreenCanvasRenderingContext2D.createPattern(aImage: IJSHTMLCanvasElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  110871. begin
  110872. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  110873. end;
  110874. function TJSOffscreenCanvasRenderingContext2D.createPattern(const aImage: THTMLOrSVGImageElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  110875. begin
  110876. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  110877. end;
  110878. function TJSOffscreenCanvasRenderingContext2D.createPattern(aImage: IJSHTMLVideoElement; const aRepetition: UnicodeString): IJSCanvasPattern;
  110879. begin
  110880. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  110881. end;
  110882. function TJSOffscreenCanvasRenderingContext2D.createPattern(aImage: IJSImageBitmap; const aRepetition: UnicodeString): IJSCanvasPattern;
  110883. begin
  110884. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  110885. end;
  110886. function TJSOffscreenCanvasRenderingContext2D.createPattern(aImage: IJSOffscreenCanvas; const aRepetition: UnicodeString): IJSCanvasPattern;
  110887. begin
  110888. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  110889. end;
  110890. function TJSOffscreenCanvasRenderingContext2D.createPattern(aImage: IJSVideoFrame; const aRepetition: UnicodeString): IJSCanvasPattern;
  110891. begin
  110892. Result:=InvokeJSObjectResult('createPattern',[aImage,aRepetition],TJSCanvasPattern) as IJSCanvasPattern;
  110893. end;
  110894. procedure TJSOffscreenCanvasRenderingContext2D.clearRect(aX: Double; aY: Double; aW: Double; aH: Double);
  110895. begin
  110896. InvokeJSNoResult('clearRect',[aX,aY,aW,aH]);
  110897. end;
  110898. procedure TJSOffscreenCanvasRenderingContext2D.fillRect(aX: Double; aY: Double; aW: Double; aH: Double);
  110899. begin
  110900. InvokeJSNoResult('fillRect',[aX,aY,aW,aH]);
  110901. end;
  110902. procedure TJSOffscreenCanvasRenderingContext2D.strokeRect(aX: Double; aY: Double; aW: Double; aH: Double);
  110903. begin
  110904. InvokeJSNoResult('strokeRect',[aX,aY,aW,aH]);
  110905. end;
  110906. procedure TJSOffscreenCanvasRenderingContext2D.beginPath;
  110907. begin
  110908. InvokeJSNoResult('beginPath',[]);
  110909. end;
  110910. procedure TJSOffscreenCanvasRenderingContext2D.fill(aWinding: TCanvasWindingRule);
  110911. begin
  110912. InvokeJSNoResult('fill',[aWinding]);
  110913. end;
  110914. procedure TJSOffscreenCanvasRenderingContext2D.fill;
  110915. begin
  110916. InvokeJSNoResult('fill',[]);
  110917. end;
  110918. procedure TJSOffscreenCanvasRenderingContext2D.fill(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  110919. begin
  110920. InvokeJSNoResult('fill',[aPath,aWinding]);
  110921. end;
  110922. procedure TJSOffscreenCanvasRenderingContext2D.fill(aPath: IJSPath2D);
  110923. begin
  110924. InvokeJSNoResult('fill',[aPath]);
  110925. end;
  110926. procedure TJSOffscreenCanvasRenderingContext2D.stroke;
  110927. begin
  110928. InvokeJSNoResult('stroke',[]);
  110929. end;
  110930. procedure TJSOffscreenCanvasRenderingContext2D.stroke(aPath: IJSPath2D);
  110931. begin
  110932. InvokeJSNoResult('stroke',[aPath]);
  110933. end;
  110934. procedure TJSOffscreenCanvasRenderingContext2D.clip(aWinding: TCanvasWindingRule);
  110935. begin
  110936. InvokeJSNoResult('clip',[aWinding]);
  110937. end;
  110938. procedure TJSOffscreenCanvasRenderingContext2D.clip;
  110939. begin
  110940. InvokeJSNoResult('clip',[]);
  110941. end;
  110942. procedure TJSOffscreenCanvasRenderingContext2D.clip(aPath: IJSPath2D; aWinding: TCanvasWindingRule);
  110943. begin
  110944. InvokeJSNoResult('clip',[aPath,aWinding]);
  110945. end;
  110946. procedure TJSOffscreenCanvasRenderingContext2D.clip(aPath: IJSPath2D);
  110947. begin
  110948. InvokeJSNoResult('clip',[aPath]);
  110949. end;
  110950. function TJSOffscreenCanvasRenderingContext2D.isPointInPath(aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  110951. begin
  110952. Result:=InvokeJSBooleanResult('isPointInPath',[aX,aY,aWinding]);
  110953. end;
  110954. function TJSOffscreenCanvasRenderingContext2D.isPointInPath(aX: Double; aY: Double): Boolean;
  110955. begin
  110956. Result:=InvokeJSBooleanResult('isPointInPath',[aX,aY]);
  110957. end;
  110958. function TJSOffscreenCanvasRenderingContext2D.isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double; aWinding: TCanvasWindingRule): Boolean;
  110959. begin
  110960. Result:=InvokeJSBooleanResult('isPointInPath',[aPath,aX,aY,aWinding]);
  110961. end;
  110962. function TJSOffscreenCanvasRenderingContext2D.isPointInPath(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  110963. begin
  110964. Result:=InvokeJSBooleanResult('isPointInPath',[aPath,aX,aY]);
  110965. end;
  110966. function TJSOffscreenCanvasRenderingContext2D.isPointInStroke(aX: Double; aY: Double): Boolean;
  110967. begin
  110968. Result:=InvokeJSBooleanResult('isPointInStroke',[aX,aY]);
  110969. end;
  110970. function TJSOffscreenCanvasRenderingContext2D.isPointInStroke(aPath: IJSPath2D; aX: Double; aY: Double): Boolean;
  110971. begin
  110972. Result:=InvokeJSBooleanResult('isPointInStroke',[aPath,aX,aY]);
  110973. end;
  110974. procedure TJSOffscreenCanvasRenderingContext2D.fillText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  110975. begin
  110976. InvokeJSNoResult('fillText',[aText,aX,aY,aMaxWidth]);
  110977. end;
  110978. procedure TJSOffscreenCanvasRenderingContext2D.fillText(const aText: UnicodeString; aX: Double; aY: Double);
  110979. begin
  110980. InvokeJSNoResult('fillText',[aText,aX,aY]);
  110981. end;
  110982. procedure TJSOffscreenCanvasRenderingContext2D.strokeText(const aText: UnicodeString; aX: Double; aY: Double; aMaxWidth: Double);
  110983. begin
  110984. InvokeJSNoResult('strokeText',[aText,aX,aY,aMaxWidth]);
  110985. end;
  110986. procedure TJSOffscreenCanvasRenderingContext2D.strokeText(const aText: UnicodeString; aX: Double; aY: Double);
  110987. begin
  110988. InvokeJSNoResult('strokeText',[aText,aX,aY]);
  110989. end;
  110990. function TJSOffscreenCanvasRenderingContext2D.measureText(const aText: UnicodeString): IJSTextMetrics;
  110991. begin
  110992. Result:=InvokeJSObjectResult('measureText',[aText],TJSTextMetrics) as IJSTextMetrics;
  110993. end;
  110994. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double);
  110995. begin
  110996. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  110997. end;
  110998. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double);
  110999. begin
  111000. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  111001. end;
  111002. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double);
  111003. begin
  111004. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  111005. end;
  111006. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double);
  111007. begin
  111008. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  111009. end;
  111010. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double);
  111011. begin
  111012. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  111013. end;
  111014. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double);
  111015. begin
  111016. InvokeJSNoResult('drawImage',[aImage,aDx,aDy]);
  111017. end;
  111018. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSHTMLCanvasElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111019. begin
  111020. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  111021. end;
  111022. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(const aImage: THTMLOrSVGImageElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111023. begin
  111024. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  111025. end;
  111026. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSHTMLVideoElement; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111027. begin
  111028. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  111029. end;
  111030. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSImageBitmap; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111031. begin
  111032. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  111033. end;
  111034. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSOffscreenCanvas; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111035. begin
  111036. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  111037. end;
  111038. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSVideoFrame; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111039. begin
  111040. InvokeJSNoResult('drawImage',[aImage,aDx,aDy,aDw,aDh]);
  111041. end;
  111042. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSHTMLCanvasElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111043. begin
  111044. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  111045. end;
  111046. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(const aImage: THTMLOrSVGImageElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111047. begin
  111048. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  111049. end;
  111050. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSHTMLVideoElement; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111051. begin
  111052. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  111053. end;
  111054. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSImageBitmap; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111055. begin
  111056. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  111057. end;
  111058. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSOffscreenCanvas; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111059. begin
  111060. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  111061. end;
  111062. procedure TJSOffscreenCanvasRenderingContext2D.drawImage(aImage: IJSVideoFrame; aSx: Double; aSy: Double; aSw: Double; aSh: Double; aDx: Double; aDy: Double; aDw: Double; aDh: Double);
  111063. begin
  111064. InvokeJSNoResult('drawImage',[aImage,aSx,aSy,aSw,aSh,aDx,aDy,aDw,aDh]);
  111065. end;
  111066. function TJSOffscreenCanvasRenderingContext2D.createImageData(aSw: LongInt; aSh: LongInt): IJSImageData;
  111067. begin
  111068. Result:=InvokeJSObjectResult('createImageData',[aSw,aSh],TJSImageData) as IJSImageData;
  111069. end;
  111070. function TJSOffscreenCanvasRenderingContext2D.createImageData(aImagedata: IJSImageData): IJSImageData;
  111071. begin
  111072. Result:=InvokeJSObjectResult('createImageData',[aImagedata],TJSImageData) as IJSImageData;
  111073. end;
  111074. function TJSOffscreenCanvasRenderingContext2D.getImageData(aSx: LongInt; aSy: LongInt; aSw: LongInt; aSh: LongInt): IJSImageData;
  111075. begin
  111076. Result:=InvokeJSObjectResult('getImageData',[aSx,aSy,aSw,aSh],TJSImageData) as IJSImageData;
  111077. end;
  111078. procedure TJSOffscreenCanvasRenderingContext2D.putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt);
  111079. begin
  111080. InvokeJSNoResult('putImageData',[aImagedata,aDx,aDy]);
  111081. end;
  111082. procedure TJSOffscreenCanvasRenderingContext2D.putImageData(aImagedata: IJSImageData; aDx: LongInt; aDy: LongInt; aDirtyX: LongInt; aDirtyY: LongInt; aDirtyWidth: LongInt; aDirtyHeight: LongInt);
  111083. begin
  111084. InvokeJSNoResult('putImageData',[aImagedata,aDx,aDy,aDirtyX,aDirtyY,aDirtyWidth,aDirtyHeight]);
  111085. end;
  111086. procedure TJSOffscreenCanvasRenderingContext2D.setLineDash(const aSegments: TDoubleDynArray);
  111087. begin
  111088. InvokeJSNoResult('setLineDash',[aSegments]);
  111089. end;
  111090. function TJSOffscreenCanvasRenderingContext2D.getLineDash: TDoubleDynArray;
  111091. begin
  111092. Result:=InvokeJSObjectResult('getLineDash',[],TJSArray) as TDoubleDynArray;
  111093. end;
  111094. procedure TJSOffscreenCanvasRenderingContext2D.closePath;
  111095. begin
  111096. InvokeJSNoResult('closePath',[]);
  111097. end;
  111098. procedure TJSOffscreenCanvasRenderingContext2D.moveTo(aX: Double; aY: Double);
  111099. begin
  111100. InvokeJSNoResult('moveTo',[aX,aY]);
  111101. end;
  111102. procedure TJSOffscreenCanvasRenderingContext2D.lineTo(aX: Double; aY: Double);
  111103. begin
  111104. InvokeJSNoResult('lineTo',[aX,aY]);
  111105. end;
  111106. procedure TJSOffscreenCanvasRenderingContext2D.quadraticCurveTo(aCpx: Double; aCpy: Double; aX: Double; aY: Double);
  111107. begin
  111108. InvokeJSNoResult('quadraticCurveTo',[aCpx,aCpy,aX,aY]);
  111109. end;
  111110. procedure TJSOffscreenCanvasRenderingContext2D.bezierCurveTo(aCp1x: Double; aCp1y: Double; aCp2x: Double; aCp2y: Double; aX: Double; aY: Double);
  111111. begin
  111112. InvokeJSNoResult('bezierCurveTo',[aCp1x,aCp1y,aCp2x,aCp2y,aX,aY]);
  111113. end;
  111114. procedure TJSOffscreenCanvasRenderingContext2D.arcTo(aX1: Double; aY1: Double; aX2: Double; aY2: Double; aRadius: Double);
  111115. begin
  111116. InvokeJSNoResult('arcTo',[aX1,aY1,aX2,aY2,aRadius]);
  111117. end;
  111118. procedure TJSOffscreenCanvasRenderingContext2D.rect(aX: Double; aY: Double; aW: Double; aH: Double);
  111119. begin
  111120. InvokeJSNoResult('rect',[aX,aY,aW,aH]);
  111121. end;
  111122. procedure TJSOffscreenCanvasRenderingContext2D.roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TJSDOMPointInit);
  111123. begin
  111124. InvokeJSNoResult('roundRect',[aX,aY,aW,aH,aRadii]);
  111125. end;
  111126. procedure TJSOffscreenCanvasRenderingContext2D.roundRect(aX: Double; aY: Double; aW: Double; aH: Double);
  111127. begin
  111128. InvokeJSNoResult('roundRect',[aX,aY,aW,aH]);
  111129. end;
  111130. procedure TJSOffscreenCanvasRenderingContext2D.roundRect(aX: Double; aY: Double; aW: Double; aH: Double; const aRadii: TunionDynArray);
  111131. begin
  111132. InvokeJSNoResult('roundRect',[aX,aY,aW,aH,aRadii]);
  111133. end;
  111134. procedure TJSOffscreenCanvasRenderingContext2D.roundRect(aX: Double; aY: Double; aW: Double; aH: Double; aRadii: Double);
  111135. begin
  111136. InvokeJSNoResult('roundRect',[aX,aY,aW,aH,aRadii]);
  111137. end;
  111138. procedure TJSOffscreenCanvasRenderingContext2D.arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  111139. begin
  111140. InvokeJSNoResult('arc',[aX,aY,aRadius,aStartAngle,aEndAngle,aAnticlockwise]);
  111141. end;
  111142. procedure TJSOffscreenCanvasRenderingContext2D.arc(aX: Double; aY: Double; aRadius: Double; aStartAngle: Double; aEndAngle: Double);
  111143. begin
  111144. InvokeJSNoResult('arc',[aX,aY,aRadius,aStartAngle,aEndAngle]);
  111145. end;
  111146. procedure TJSOffscreenCanvasRenderingContext2D.ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double; aAnticlockwise: Boolean);
  111147. begin
  111148. InvokeJSNoResult('ellipse',[aX,aY,aRadiusX,aRadiusY,aRotation,aStartAngle,aEndAngle,aAnticlockwise]);
  111149. end;
  111150. procedure TJSOffscreenCanvasRenderingContext2D.ellipse(aX: Double; aY: Double; aRadiusX: Double; aRadiusY: Double; aRotation: Double; aStartAngle: Double; aEndAngle: Double);
  111151. begin
  111152. InvokeJSNoResult('ellipse',[aX,aY,aRadiusX,aRadiusY,aRotation,aStartAngle,aEndAngle]);
  111153. end;
  111154. class function TJSOffscreenCanvasRenderingContext2D.JSClassName: UnicodeString;
  111155. begin
  111156. Result:='OffscreenCanvasRenderingContext2D';
  111157. end;
  111158. class function TJSOffscreenCanvasRenderingContext2D.Cast(const Intf: IJSObject): IJSOffscreenCanvasRenderingContext2D;
  111159. begin
  111160. Result:=TJSOffscreenCanvasRenderingContext2D.JOBCast(Intf);
  111161. end;
  111162. function TJSOscillatorOptions._Gettype_: TOscillatorType;
  111163. begin
  111164. Result:=ReadJSPropertyUnicodeString('type');
  111165. end;
  111166. function TJSOscillatorOptions._Getfrequency: Single;
  111167. begin
  111168. Result:=ReadJSPropertyDouble('frequency');
  111169. end;
  111170. function TJSOscillatorOptions._Getdetune: Single;
  111171. begin
  111172. Result:=ReadJSPropertyDouble('detune');
  111173. end;
  111174. function TJSOscillatorOptions._GetperiodicWave: IJSPeriodicWave;
  111175. begin
  111176. Result:=ReadJSPropertyObject('periodicWave',TJSPeriodicWave) as IJSPeriodicWave;
  111177. end;
  111178. procedure TJSOscillatorOptions._Settype_(const aValue : TOscillatorType);
  111179. begin
  111180. WriteJSPropertyUnicodeString('type',aValue);
  111181. end;
  111182. procedure TJSOscillatorOptions._Setfrequency(const aValue : Single);
  111183. begin
  111184. WriteJSPropertyDouble('frequency',aValue);
  111185. end;
  111186. procedure TJSOscillatorOptions._Setdetune(const aValue : Single);
  111187. begin
  111188. WriteJSPropertyDouble('detune',aValue);
  111189. end;
  111190. procedure TJSOscillatorOptions._SetperiodicWave(const aValue : IJSPeriodicWave);
  111191. begin
  111192. WriteJSPropertyObject('periodicWave',aValue);
  111193. end;
  111194. class function TJSOscillatorOptions.JSClassName: UnicodeString;
  111195. begin
  111196. Result:='Object';
  111197. end;
  111198. class function TJSOscillatorOptions.Cast(const Intf: IJSObject): IJSOscillatorOptions;
  111199. begin
  111200. Result:=TJSOscillatorOptions.JOBCast(Intf);
  111201. end;
  111202. function TJSOscillatorNode._Gettype_: TOscillatorType;
  111203. begin
  111204. Result:=ReadJSPropertyUnicodeString('type');
  111205. end;
  111206. function TJSOscillatorNode._Getfrequency: IJSAudioParam;
  111207. begin
  111208. Result:=ReadJSPropertyObject('frequency',TJSAudioParam) as IJSAudioParam;
  111209. end;
  111210. function TJSOscillatorNode._Getdetune: IJSAudioParam;
  111211. begin
  111212. Result:=ReadJSPropertyObject('detune',TJSAudioParam) as IJSAudioParam;
  111213. end;
  111214. procedure TJSOscillatorNode._Settype_(const aValue : TOscillatorType);
  111215. begin
  111216. WriteJSPropertyUnicodeString('type',aValue);
  111217. end;
  111218. constructor TJSOscillatorNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSOscillatorOptions);
  111219. begin
  111220. JOBCreate([aContext,aOptions]);
  111221. end;
  111222. constructor TJSOscillatorNode.Create(aContext: IJSBaseAudioContext);
  111223. begin
  111224. JOBCreate([aContext]);
  111225. end;
  111226. procedure TJSOscillatorNode.setPeriodicWave(aPeriodicWave: IJSPeriodicWave);
  111227. begin
  111228. InvokeJSNoResult('setPeriodicWave',[aPeriodicWave]);
  111229. end;
  111230. class function TJSOscillatorNode.JSClassName: UnicodeString;
  111231. begin
  111232. Result:='OscillatorNode';
  111233. end;
  111234. class function TJSOscillatorNode.Cast(const Intf: IJSObject): IJSOscillatorNode;
  111235. begin
  111236. Result:=TJSOscillatorNode.JOBCast(Intf);
  111237. end;
  111238. function TJSPageTransitionEvent._Getpersisted: Boolean;
  111239. begin
  111240. Result:=ReadJSPropertyBoolean('persisted');
  111241. end;
  111242. constructor TJSPageTransitionEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSPageTransitionEventInit);
  111243. begin
  111244. JOBCreate([aType_,aEventInitDict]);
  111245. end;
  111246. constructor TJSPageTransitionEvent.Create(const aType_: UnicodeString);
  111247. begin
  111248. JOBCreate([aType_]);
  111249. end;
  111250. class function TJSPageTransitionEvent.JSClassName: UnicodeString;
  111251. begin
  111252. Result:='PageTransitionEvent';
  111253. end;
  111254. class function TJSPageTransitionEvent.Cast(const Intf: IJSObject): IJSPageTransitionEvent;
  111255. begin
  111256. Result:=TJSPageTransitionEvent.JOBCast(Intf);
  111257. end;
  111258. function TJSPageTransitionEventInit._Getpersisted: Boolean;
  111259. begin
  111260. Result:=ReadJSPropertyBoolean('persisted');
  111261. end;
  111262. function TJSPageTransitionEventInit._GetinFrameSwap: Boolean;
  111263. begin
  111264. Result:=ReadJSPropertyBoolean('inFrameSwap');
  111265. end;
  111266. procedure TJSPageTransitionEventInit._Setpersisted(const aValue : Boolean);
  111267. begin
  111268. WriteJSPropertyBoolean('persisted',aValue);
  111269. end;
  111270. procedure TJSPageTransitionEventInit._SetinFrameSwap(const aValue : Boolean);
  111271. begin
  111272. WriteJSPropertyBoolean('inFrameSwap',aValue);
  111273. end;
  111274. class function TJSPageTransitionEventInit.JSClassName: UnicodeString;
  111275. begin
  111276. Result:='Object';
  111277. end;
  111278. class function TJSPageTransitionEventInit.Cast(const Intf: IJSObject): IJSPageTransitionEventInit;
  111279. begin
  111280. Result:=TJSPageTransitionEventInit.JOBCast(Intf);
  111281. end;
  111282. function TJSPaintRequest._GetclientRect: IJSDOMRect;
  111283. begin
  111284. Result:=ReadJSPropertyObject('clientRect',TJSDOMRect) as IJSDOMRect;
  111285. end;
  111286. function TJSPaintRequest._Getreason: UnicodeString;
  111287. begin
  111288. Result:=ReadJSPropertyUnicodeString('reason');
  111289. end;
  111290. class function TJSPaintRequest.JSClassName: UnicodeString;
  111291. begin
  111292. Result:='PaintRequest';
  111293. end;
  111294. class function TJSPaintRequest.Cast(const Intf: IJSObject): IJSPaintRequest;
  111295. begin
  111296. Result:=TJSPaintRequest.JOBCast(Intf);
  111297. end;
  111298. function TJSPaintRequestList._Getlength_: Cardinal;
  111299. begin
  111300. Result:=ReadJSPropertyInt64('length');
  111301. end;
  111302. function TJSPaintRequestList.item(aIndex: Cardinal): IJSPaintRequest;
  111303. begin
  111304. Result:=InvokeJSObjectResult('item',[aIndex],TJSPaintRequest) as IJSPaintRequest;
  111305. end;
  111306. class function TJSPaintRequestList.JSClassName: UnicodeString;
  111307. begin
  111308. Result:='PaintRequestList';
  111309. end;
  111310. class function TJSPaintRequestList.Cast(const Intf: IJSObject): IJSPaintRequestList;
  111311. begin
  111312. Result:=TJSPaintRequestList.JOBCast(Intf);
  111313. end;
  111314. procedure TJSPaintWorkletGlobalScope.registerPaint(const aName: UnicodeString; const aPaintCtor: TVoidFunction);
  111315. var
  111316. m: TJOB_Method;
  111317. begin
  111318. m:=TJOB_Method.Create(TMethod(aPaintCtor),@JOBCallVoidFunction);
  111319. try
  111320. InvokeJSNoResult('registerPaint',[aName,m]);
  111321. finally
  111322. m.free;
  111323. end;
  111324. end;
  111325. class function TJSPaintWorkletGlobalScope.JSClassName: UnicodeString;
  111326. begin
  111327. Result:='PaintWorkletGlobalScope';
  111328. end;
  111329. class function TJSPaintWorkletGlobalScope.Cast(const Intf: IJSObject): IJSPaintWorkletGlobalScope;
  111330. begin
  111331. Result:=TJSPaintWorkletGlobalScope.JOBCast(Intf);
  111332. end;
  111333. function TJSPannerOptions._GetpanningModel: TPanningModelType;
  111334. begin
  111335. Result:=ReadJSPropertyUnicodeString('panningModel');
  111336. end;
  111337. function TJSPannerOptions._GetdistanceModel: TDistanceModelType;
  111338. begin
  111339. Result:=ReadJSPropertyUnicodeString('distanceModel');
  111340. end;
  111341. function TJSPannerOptions._GetpositionX: Single;
  111342. begin
  111343. Result:=ReadJSPropertyDouble('positionX');
  111344. end;
  111345. function TJSPannerOptions._GetpositionY: Single;
  111346. begin
  111347. Result:=ReadJSPropertyDouble('positionY');
  111348. end;
  111349. function TJSPannerOptions._GetpositionZ: Single;
  111350. begin
  111351. Result:=ReadJSPropertyDouble('positionZ');
  111352. end;
  111353. function TJSPannerOptions._GetorientationX: Single;
  111354. begin
  111355. Result:=ReadJSPropertyDouble('orientationX');
  111356. end;
  111357. function TJSPannerOptions._GetorientationY: Single;
  111358. begin
  111359. Result:=ReadJSPropertyDouble('orientationY');
  111360. end;
  111361. function TJSPannerOptions._GetorientationZ: Single;
  111362. begin
  111363. Result:=ReadJSPropertyDouble('orientationZ');
  111364. end;
  111365. function TJSPannerOptions._GetrefDistance: Double;
  111366. begin
  111367. Result:=ReadJSPropertyDouble('refDistance');
  111368. end;
  111369. function TJSPannerOptions._GetmaxDistance: Double;
  111370. begin
  111371. Result:=ReadJSPropertyDouble('maxDistance');
  111372. end;
  111373. function TJSPannerOptions._GetrolloffFactor: Double;
  111374. begin
  111375. Result:=ReadJSPropertyDouble('rolloffFactor');
  111376. end;
  111377. function TJSPannerOptions._GetconeInnerAngle: Double;
  111378. begin
  111379. Result:=ReadJSPropertyDouble('coneInnerAngle');
  111380. end;
  111381. function TJSPannerOptions._GetconeOuterAngle: Double;
  111382. begin
  111383. Result:=ReadJSPropertyDouble('coneOuterAngle');
  111384. end;
  111385. function TJSPannerOptions._GetconeOuterGain: Double;
  111386. begin
  111387. Result:=ReadJSPropertyDouble('coneOuterGain');
  111388. end;
  111389. procedure TJSPannerOptions._SetpanningModel(const aValue : TPanningModelType);
  111390. begin
  111391. WriteJSPropertyUnicodeString('panningModel',aValue);
  111392. end;
  111393. procedure TJSPannerOptions._SetdistanceModel(const aValue : TDistanceModelType);
  111394. begin
  111395. WriteJSPropertyUnicodeString('distanceModel',aValue);
  111396. end;
  111397. procedure TJSPannerOptions._SetpositionX(const aValue : Single);
  111398. begin
  111399. WriteJSPropertyDouble('positionX',aValue);
  111400. end;
  111401. procedure TJSPannerOptions._SetpositionY(const aValue : Single);
  111402. begin
  111403. WriteJSPropertyDouble('positionY',aValue);
  111404. end;
  111405. procedure TJSPannerOptions._SetpositionZ(const aValue : Single);
  111406. begin
  111407. WriteJSPropertyDouble('positionZ',aValue);
  111408. end;
  111409. procedure TJSPannerOptions._SetorientationX(const aValue : Single);
  111410. begin
  111411. WriteJSPropertyDouble('orientationX',aValue);
  111412. end;
  111413. procedure TJSPannerOptions._SetorientationY(const aValue : Single);
  111414. begin
  111415. WriteJSPropertyDouble('orientationY',aValue);
  111416. end;
  111417. procedure TJSPannerOptions._SetorientationZ(const aValue : Single);
  111418. begin
  111419. WriteJSPropertyDouble('orientationZ',aValue);
  111420. end;
  111421. procedure TJSPannerOptions._SetrefDistance(const aValue : Double);
  111422. begin
  111423. WriteJSPropertyDouble('refDistance',aValue);
  111424. end;
  111425. procedure TJSPannerOptions._SetmaxDistance(const aValue : Double);
  111426. begin
  111427. WriteJSPropertyDouble('maxDistance',aValue);
  111428. end;
  111429. procedure TJSPannerOptions._SetrolloffFactor(const aValue : Double);
  111430. begin
  111431. WriteJSPropertyDouble('rolloffFactor',aValue);
  111432. end;
  111433. procedure TJSPannerOptions._SetconeInnerAngle(const aValue : Double);
  111434. begin
  111435. WriteJSPropertyDouble('coneInnerAngle',aValue);
  111436. end;
  111437. procedure TJSPannerOptions._SetconeOuterAngle(const aValue : Double);
  111438. begin
  111439. WriteJSPropertyDouble('coneOuterAngle',aValue);
  111440. end;
  111441. procedure TJSPannerOptions._SetconeOuterGain(const aValue : Double);
  111442. begin
  111443. WriteJSPropertyDouble('coneOuterGain',aValue);
  111444. end;
  111445. class function TJSPannerOptions.JSClassName: UnicodeString;
  111446. begin
  111447. Result:='Object';
  111448. end;
  111449. class function TJSPannerOptions.Cast(const Intf: IJSObject): IJSPannerOptions;
  111450. begin
  111451. Result:=TJSPannerOptions.JOBCast(Intf);
  111452. end;
  111453. function TJSPannerNode._GetpanningModel: TPanningModelType;
  111454. begin
  111455. Result:=ReadJSPropertyUnicodeString('panningModel');
  111456. end;
  111457. function TJSPannerNode._GetpositionX: IJSAudioParam;
  111458. begin
  111459. Result:=ReadJSPropertyObject('positionX',TJSAudioParam) as IJSAudioParam;
  111460. end;
  111461. function TJSPannerNode._GetpositionY: IJSAudioParam;
  111462. begin
  111463. Result:=ReadJSPropertyObject('positionY',TJSAudioParam) as IJSAudioParam;
  111464. end;
  111465. function TJSPannerNode._GetpositionZ: IJSAudioParam;
  111466. begin
  111467. Result:=ReadJSPropertyObject('positionZ',TJSAudioParam) as IJSAudioParam;
  111468. end;
  111469. function TJSPannerNode._GetorientationX: IJSAudioParam;
  111470. begin
  111471. Result:=ReadJSPropertyObject('orientationX',TJSAudioParam) as IJSAudioParam;
  111472. end;
  111473. function TJSPannerNode._GetorientationY: IJSAudioParam;
  111474. begin
  111475. Result:=ReadJSPropertyObject('orientationY',TJSAudioParam) as IJSAudioParam;
  111476. end;
  111477. function TJSPannerNode._GetorientationZ: IJSAudioParam;
  111478. begin
  111479. Result:=ReadJSPropertyObject('orientationZ',TJSAudioParam) as IJSAudioParam;
  111480. end;
  111481. function TJSPannerNode._GetdistanceModel: TDistanceModelType;
  111482. begin
  111483. Result:=ReadJSPropertyUnicodeString('distanceModel');
  111484. end;
  111485. function TJSPannerNode._GetrefDistance: Double;
  111486. begin
  111487. Result:=ReadJSPropertyDouble('refDistance');
  111488. end;
  111489. function TJSPannerNode._GetmaxDistance: Double;
  111490. begin
  111491. Result:=ReadJSPropertyDouble('maxDistance');
  111492. end;
  111493. function TJSPannerNode._GetrolloffFactor: Double;
  111494. begin
  111495. Result:=ReadJSPropertyDouble('rolloffFactor');
  111496. end;
  111497. function TJSPannerNode._GetconeInnerAngle: Double;
  111498. begin
  111499. Result:=ReadJSPropertyDouble('coneInnerAngle');
  111500. end;
  111501. function TJSPannerNode._GetconeOuterAngle: Double;
  111502. begin
  111503. Result:=ReadJSPropertyDouble('coneOuterAngle');
  111504. end;
  111505. function TJSPannerNode._GetconeOuterGain: Double;
  111506. begin
  111507. Result:=ReadJSPropertyDouble('coneOuterGain');
  111508. end;
  111509. procedure TJSPannerNode._SetpanningModel(const aValue : TPanningModelType);
  111510. begin
  111511. WriteJSPropertyUnicodeString('panningModel',aValue);
  111512. end;
  111513. procedure TJSPannerNode._SetdistanceModel(const aValue : TDistanceModelType);
  111514. begin
  111515. WriteJSPropertyUnicodeString('distanceModel',aValue);
  111516. end;
  111517. procedure TJSPannerNode._SetrefDistance(const aValue : Double);
  111518. begin
  111519. WriteJSPropertyDouble('refDistance',aValue);
  111520. end;
  111521. procedure TJSPannerNode._SetmaxDistance(const aValue : Double);
  111522. begin
  111523. WriteJSPropertyDouble('maxDistance',aValue);
  111524. end;
  111525. procedure TJSPannerNode._SetrolloffFactor(const aValue : Double);
  111526. begin
  111527. WriteJSPropertyDouble('rolloffFactor',aValue);
  111528. end;
  111529. procedure TJSPannerNode._SetconeInnerAngle(const aValue : Double);
  111530. begin
  111531. WriteJSPropertyDouble('coneInnerAngle',aValue);
  111532. end;
  111533. procedure TJSPannerNode._SetconeOuterAngle(const aValue : Double);
  111534. begin
  111535. WriteJSPropertyDouble('coneOuterAngle',aValue);
  111536. end;
  111537. procedure TJSPannerNode._SetconeOuterGain(const aValue : Double);
  111538. begin
  111539. WriteJSPropertyDouble('coneOuterGain',aValue);
  111540. end;
  111541. constructor TJSPannerNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSPannerOptions);
  111542. begin
  111543. JOBCreate([aContext,aOptions]);
  111544. end;
  111545. constructor TJSPannerNode.Create(aContext: IJSBaseAudioContext);
  111546. begin
  111547. JOBCreate([aContext]);
  111548. end;
  111549. procedure TJSPannerNode.setPosition(aX: Double; aY: Double; aZ: Double);
  111550. begin
  111551. InvokeJSNoResult('setPosition',[aX,aY,aZ]);
  111552. end;
  111553. procedure TJSPannerNode.setOrientation(aX: Double; aY: Double; aZ: Double);
  111554. begin
  111555. InvokeJSNoResult('setOrientation',[aX,aY,aZ]);
  111556. end;
  111557. class function TJSPannerNode.JSClassName: UnicodeString;
  111558. begin
  111559. Result:='PannerNode';
  111560. end;
  111561. class function TJSPannerNode.Cast(const Intf: IJSObject): IJSPannerNode;
  111562. begin
  111563. Result:=TJSPannerNode.JOBCast(Intf);
  111564. end;
  111565. function TJSParentNode._Getchildren: IJSHTMLCollection;
  111566. begin
  111567. Result:=ReadJSPropertyObject('children',TJSHTMLCollection) as IJSHTMLCollection;
  111568. end;
  111569. function TJSParentNode._GetfirstElementChild: IJSElement;
  111570. begin
  111571. Result:=ReadJSPropertyObject('firstElementChild',TJSElement) as IJSElement;
  111572. end;
  111573. function TJSParentNode._GetlastElementChild: IJSElement;
  111574. begin
  111575. Result:=ReadJSPropertyObject('lastElementChild',TJSElement) as IJSElement;
  111576. end;
  111577. function TJSParentNode._GetchildElementCount: Cardinal;
  111578. begin
  111579. Result:=ReadJSPropertyInt64('childElementCount');
  111580. end;
  111581. procedure TJSParentNode.prepend(const aNodes: UnicodeString){; ToDo:varargs};
  111582. begin
  111583. InvokeJSNoResult('prepend',[aNodes]);
  111584. end;
  111585. procedure TJSParentNode.prepend(aNodes: IJSNode){; ToDo:varargs};
  111586. begin
  111587. InvokeJSNoResult('prepend',[aNodes]);
  111588. end;
  111589. procedure TJSParentNode.append(const aNodes: UnicodeString){; ToDo:varargs};
  111590. begin
  111591. InvokeJSNoResult('append',[aNodes]);
  111592. end;
  111593. procedure TJSParentNode.append(aNodes: IJSNode){; ToDo:varargs};
  111594. begin
  111595. InvokeJSNoResult('append',[aNodes]);
  111596. end;
  111597. procedure TJSParentNode.replaceChildren(const aNodes: UnicodeString){; ToDo:varargs};
  111598. begin
  111599. InvokeJSNoResult('replaceChildren',[aNodes]);
  111600. end;
  111601. procedure TJSParentNode.replaceChildren(aNodes: IJSNode){; ToDo:varargs};
  111602. begin
  111603. InvokeJSNoResult('replaceChildren',[aNodes]);
  111604. end;
  111605. function TJSParentNode.querySelector(const aSelectors: UTF8String): IJSElement;
  111606. begin
  111607. Result:=InvokeJSObjectResult('querySelector',[aSelectors],TJSElement) as IJSElement;
  111608. end;
  111609. function TJSParentNode.querySelectorAll(const aSelectors: UTF8String): IJSNodeList;
  111610. begin
  111611. Result:=InvokeJSObjectResult('querySelectorAll',[aSelectors],TJSNodeList) as IJSNodeList;
  111612. end;
  111613. class function TJSParentNode.JSClassName: UnicodeString;
  111614. begin
  111615. Result:='ParentNode';
  111616. end;
  111617. class function TJSParentNode.Cast(const Intf: IJSObject): IJSParentNode;
  111618. begin
  111619. Result:=TJSParentNode.JOBCast(Intf);
  111620. end;
  111621. function TJSPaymentAddress._Getcountry: UnicodeString;
  111622. begin
  111623. Result:=ReadJSPropertyUnicodeString('country');
  111624. end;
  111625. function TJSPaymentAddress._GetaddressLine: TUnicodeStringDynArray;
  111626. begin
  111627. Result:=ReadJSPropertyObject('addressLine',TJSArray) as TUnicodeStringDynArray;
  111628. end;
  111629. function TJSPaymentAddress._Getregion: UnicodeString;
  111630. begin
  111631. Result:=ReadJSPropertyUnicodeString('region');
  111632. end;
  111633. function TJSPaymentAddress._GetregionCode: UnicodeString;
  111634. begin
  111635. Result:=ReadJSPropertyUnicodeString('regionCode');
  111636. end;
  111637. function TJSPaymentAddress._Getcity: UnicodeString;
  111638. begin
  111639. Result:=ReadJSPropertyUnicodeString('city');
  111640. end;
  111641. function TJSPaymentAddress._GetdependentLocality: UnicodeString;
  111642. begin
  111643. Result:=ReadJSPropertyUnicodeString('dependentLocality');
  111644. end;
  111645. function TJSPaymentAddress._GetpostalCode: UnicodeString;
  111646. begin
  111647. Result:=ReadJSPropertyUnicodeString('postalCode');
  111648. end;
  111649. function TJSPaymentAddress._GetsortingCode: UnicodeString;
  111650. begin
  111651. Result:=ReadJSPropertyUnicodeString('sortingCode');
  111652. end;
  111653. function TJSPaymentAddress._Getorganization: UnicodeString;
  111654. begin
  111655. Result:=ReadJSPropertyUnicodeString('organization');
  111656. end;
  111657. function TJSPaymentAddress._Getrecipient: UnicodeString;
  111658. begin
  111659. Result:=ReadJSPropertyUnicodeString('recipient');
  111660. end;
  111661. function TJSPaymentAddress._Getphone: UnicodeString;
  111662. begin
  111663. Result:=ReadJSPropertyUnicodeString('phone');
  111664. end;
  111665. function TJSPaymentAddress.toJSON: IJSObject;
  111666. begin
  111667. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  111668. end;
  111669. class function TJSPaymentAddress.JSClassName: UnicodeString;
  111670. begin
  111671. Result:='PaymentAddress';
  111672. end;
  111673. class function TJSPaymentAddress.Cast(const Intf: IJSObject): IJSPaymentAddress;
  111674. begin
  111675. Result:=TJSPaymentAddress.JOBCast(Intf);
  111676. end;
  111677. function TJSPaymentMethodChangeEvent._GetmethodName: UnicodeString;
  111678. begin
  111679. Result:=ReadJSPropertyUnicodeString('methodName');
  111680. end;
  111681. function TJSPaymentMethodChangeEvent._GetmethodDetails: IJSObject;
  111682. begin
  111683. Result:=ReadJSPropertyObject('methodDetails',TJSObject) as IJSObject;
  111684. end;
  111685. constructor TJSPaymentMethodChangeEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSPaymentMethodChangeEventInit);
  111686. begin
  111687. JOBCreate([aType_,aEventInitDict]);
  111688. end;
  111689. constructor TJSPaymentMethodChangeEvent.Create(const aType_: UnicodeString);
  111690. begin
  111691. JOBCreate([aType_]);
  111692. end;
  111693. class function TJSPaymentMethodChangeEvent.JSClassName: UnicodeString;
  111694. begin
  111695. Result:='PaymentMethodChangeEvent';
  111696. end;
  111697. class function TJSPaymentMethodChangeEvent.Cast(const Intf: IJSObject): IJSPaymentMethodChangeEvent;
  111698. begin
  111699. Result:=TJSPaymentMethodChangeEvent.JOBCast(Intf);
  111700. end;
  111701. function TJSPaymentMethodChangeEventInit._GetmethodName: UnicodeString;
  111702. begin
  111703. Result:=ReadJSPropertyUnicodeString('methodName');
  111704. end;
  111705. function TJSPaymentMethodChangeEventInit._GetmethodDetails: IJSObject;
  111706. begin
  111707. Result:=ReadJSPropertyObject('methodDetails',TJSObject) as IJSObject;
  111708. end;
  111709. procedure TJSPaymentMethodChangeEventInit._SetmethodName(const aValue : UnicodeString);
  111710. begin
  111711. WriteJSPropertyUnicodeString('methodName',aValue);
  111712. end;
  111713. procedure TJSPaymentMethodChangeEventInit._SetmethodDetails(const aValue : IJSObject);
  111714. begin
  111715. WriteJSPropertyObject('methodDetails',aValue);
  111716. end;
  111717. class function TJSPaymentMethodChangeEventInit.JSClassName: UnicodeString;
  111718. begin
  111719. Result:='Object';
  111720. end;
  111721. class function TJSPaymentMethodChangeEventInit.Cast(const Intf: IJSObject): IJSPaymentMethodChangeEventInit;
  111722. begin
  111723. Result:=TJSPaymentMethodChangeEventInit.JOBCast(Intf);
  111724. end;
  111725. function TJSPaymentMethodData._GetsupportedMethods: UnicodeString;
  111726. begin
  111727. Result:=ReadJSPropertyUnicodeString('supportedMethods');
  111728. end;
  111729. function TJSPaymentMethodData._Getdata: IJSObject;
  111730. begin
  111731. Result:=ReadJSPropertyObject('data',TJSObject) as IJSObject;
  111732. end;
  111733. procedure TJSPaymentMethodData._SetsupportedMethods(const aValue : UnicodeString);
  111734. begin
  111735. WriteJSPropertyUnicodeString('supportedMethods',aValue);
  111736. end;
  111737. procedure TJSPaymentMethodData._Setdata(const aValue : IJSObject);
  111738. begin
  111739. WriteJSPropertyObject('data',aValue);
  111740. end;
  111741. class function TJSPaymentMethodData.JSClassName: UnicodeString;
  111742. begin
  111743. Result:='Object';
  111744. end;
  111745. class function TJSPaymentMethodData.Cast(const Intf: IJSObject): IJSPaymentMethodData;
  111746. begin
  111747. Result:=TJSPaymentMethodData.JOBCast(Intf);
  111748. end;
  111749. function TJSPaymentCurrencyAmount._Getcurrency: UnicodeString;
  111750. begin
  111751. Result:=ReadJSPropertyUnicodeString('currency');
  111752. end;
  111753. function TJSPaymentCurrencyAmount._Getvalue: UnicodeString;
  111754. begin
  111755. Result:=ReadJSPropertyUnicodeString('value');
  111756. end;
  111757. procedure TJSPaymentCurrencyAmount._Setcurrency(const aValue : UnicodeString);
  111758. begin
  111759. WriteJSPropertyUnicodeString('currency',aValue);
  111760. end;
  111761. procedure TJSPaymentCurrencyAmount._Setvalue(const aValue : UnicodeString);
  111762. begin
  111763. WriteJSPropertyUnicodeString('value',aValue);
  111764. end;
  111765. class function TJSPaymentCurrencyAmount.JSClassName: UnicodeString;
  111766. begin
  111767. Result:='Object';
  111768. end;
  111769. class function TJSPaymentCurrencyAmount.Cast(const Intf: IJSObject): IJSPaymentCurrencyAmount;
  111770. begin
  111771. Result:=TJSPaymentCurrencyAmount.JOBCast(Intf);
  111772. end;
  111773. function TJSPaymentItem._Getlabel_: UnicodeString;
  111774. begin
  111775. Result:=ReadJSPropertyUnicodeString('label');
  111776. end;
  111777. function TJSPaymentItem._Getamount: TJSPaymentCurrencyAmount;
  111778. begin
  111779. Result:=ReadJSPropertyObject('amount',TJSPaymentCurrencyAmount) as TJSPaymentCurrencyAmount;
  111780. end;
  111781. function TJSPaymentItem._Getpending: Boolean;
  111782. begin
  111783. Result:=ReadJSPropertyBoolean('pending');
  111784. end;
  111785. procedure TJSPaymentItem._Setlabel_(const aValue : UnicodeString);
  111786. begin
  111787. WriteJSPropertyUnicodeString('label',aValue);
  111788. end;
  111789. procedure TJSPaymentItem._Setamount(const aValue : TJSPaymentCurrencyAmount);
  111790. begin
  111791. WriteJSPropertyObject('amount',aValue);
  111792. end;
  111793. procedure TJSPaymentItem._Setpending(const aValue : Boolean);
  111794. begin
  111795. WriteJSPropertyBoolean('pending',aValue);
  111796. end;
  111797. class function TJSPaymentItem.JSClassName: UnicodeString;
  111798. begin
  111799. Result:='Object';
  111800. end;
  111801. class function TJSPaymentItem.Cast(const Intf: IJSObject): IJSPaymentItem;
  111802. begin
  111803. Result:=TJSPaymentItem.JOBCast(Intf);
  111804. end;
  111805. function TJSPaymentShippingOption._Getid: UnicodeString;
  111806. begin
  111807. Result:=ReadJSPropertyUnicodeString('id');
  111808. end;
  111809. function TJSPaymentShippingOption._Getlabel_: UnicodeString;
  111810. begin
  111811. Result:=ReadJSPropertyUnicodeString('label');
  111812. end;
  111813. function TJSPaymentShippingOption._Getamount: TJSPaymentCurrencyAmount;
  111814. begin
  111815. Result:=ReadJSPropertyObject('amount',TJSPaymentCurrencyAmount) as TJSPaymentCurrencyAmount;
  111816. end;
  111817. function TJSPaymentShippingOption._Getselected: Boolean;
  111818. begin
  111819. Result:=ReadJSPropertyBoolean('selected');
  111820. end;
  111821. procedure TJSPaymentShippingOption._Setid(const aValue : UnicodeString);
  111822. begin
  111823. WriteJSPropertyUnicodeString('id',aValue);
  111824. end;
  111825. procedure TJSPaymentShippingOption._Setlabel_(const aValue : UnicodeString);
  111826. begin
  111827. WriteJSPropertyUnicodeString('label',aValue);
  111828. end;
  111829. procedure TJSPaymentShippingOption._Setamount(const aValue : TJSPaymentCurrencyAmount);
  111830. begin
  111831. WriteJSPropertyObject('amount',aValue);
  111832. end;
  111833. procedure TJSPaymentShippingOption._Setselected(const aValue : Boolean);
  111834. begin
  111835. WriteJSPropertyBoolean('selected',aValue);
  111836. end;
  111837. class function TJSPaymentShippingOption.JSClassName: UnicodeString;
  111838. begin
  111839. Result:='Object';
  111840. end;
  111841. class function TJSPaymentShippingOption.Cast(const Intf: IJSObject): IJSPaymentShippingOption;
  111842. begin
  111843. Result:=TJSPaymentShippingOption.JOBCast(Intf);
  111844. end;
  111845. function TJSPaymentDetailsModifier._GetsupportedMethods: UnicodeString;
  111846. begin
  111847. Result:=ReadJSPropertyUnicodeString('supportedMethods');
  111848. end;
  111849. function TJSPaymentDetailsModifier._Gettotal: TJSPaymentItem;
  111850. begin
  111851. Result:=ReadJSPropertyObject('total',TJSPaymentItem) as TJSPaymentItem;
  111852. end;
  111853. function TJSPaymentDetailsModifier._GetadditionalDisplayItems: TJSPaymentItemDynArray;
  111854. begin
  111855. Result:=ReadJSPropertyObject('additionalDisplayItems',TJSArray) as TJSPaymentItemDynArray;
  111856. end;
  111857. function TJSPaymentDetailsModifier._Getdata: IJSObject;
  111858. begin
  111859. Result:=ReadJSPropertyObject('data',TJSObject) as IJSObject;
  111860. end;
  111861. procedure TJSPaymentDetailsModifier._SetsupportedMethods(const aValue : UnicodeString);
  111862. begin
  111863. WriteJSPropertyUnicodeString('supportedMethods',aValue);
  111864. end;
  111865. procedure TJSPaymentDetailsModifier._Settotal(const aValue : TJSPaymentItem);
  111866. begin
  111867. WriteJSPropertyObject('total',aValue);
  111868. end;
  111869. procedure TJSPaymentDetailsModifier._SetadditionalDisplayItems(const aValue : TJSPaymentItemDynArray);
  111870. begin
  111871. WriteJSPropertyObject('additionalDisplayItems',aValue);
  111872. end;
  111873. procedure TJSPaymentDetailsModifier._Setdata(const aValue : IJSObject);
  111874. begin
  111875. WriteJSPropertyObject('data',aValue);
  111876. end;
  111877. class function TJSPaymentDetailsModifier.JSClassName: UnicodeString;
  111878. begin
  111879. Result:='Object';
  111880. end;
  111881. class function TJSPaymentDetailsModifier.Cast(const Intf: IJSObject): IJSPaymentDetailsModifier;
  111882. begin
  111883. Result:=TJSPaymentDetailsModifier.JOBCast(Intf);
  111884. end;
  111885. function TJSPaymentDetailsBase._GetdisplayItems: TJSPaymentItemDynArray;
  111886. begin
  111887. Result:=ReadJSPropertyObject('displayItems',TJSArray) as TJSPaymentItemDynArray;
  111888. end;
  111889. function TJSPaymentDetailsBase._GetshippingOptions: TJSPaymentShippingOptionDynArray;
  111890. begin
  111891. Result:=ReadJSPropertyObject('shippingOptions',TJSArray) as TJSPaymentShippingOptionDynArray;
  111892. end;
  111893. function TJSPaymentDetailsBase._Getmodifiers: TJSPaymentDetailsModifierDynArray;
  111894. begin
  111895. Result:=ReadJSPropertyObject('modifiers',TJSArray) as TJSPaymentDetailsModifierDynArray;
  111896. end;
  111897. procedure TJSPaymentDetailsBase._SetdisplayItems(const aValue : TJSPaymentItemDynArray);
  111898. begin
  111899. WriteJSPropertyObject('displayItems',aValue);
  111900. end;
  111901. procedure TJSPaymentDetailsBase._SetshippingOptions(const aValue : TJSPaymentShippingOptionDynArray);
  111902. begin
  111903. WriteJSPropertyObject('shippingOptions',aValue);
  111904. end;
  111905. procedure TJSPaymentDetailsBase._Setmodifiers(const aValue : TJSPaymentDetailsModifierDynArray);
  111906. begin
  111907. WriteJSPropertyObject('modifiers',aValue);
  111908. end;
  111909. class function TJSPaymentDetailsBase.JSClassName: UnicodeString;
  111910. begin
  111911. Result:='Object';
  111912. end;
  111913. class function TJSPaymentDetailsBase.Cast(const Intf: IJSObject): IJSPaymentDetailsBase;
  111914. begin
  111915. Result:=TJSPaymentDetailsBase.JOBCast(Intf);
  111916. end;
  111917. function TJSPaymentDetailsInit._Getid: UnicodeString;
  111918. begin
  111919. Result:=ReadJSPropertyUnicodeString('id');
  111920. end;
  111921. function TJSPaymentDetailsInit._Gettotal: TJSPaymentItem;
  111922. begin
  111923. Result:=ReadJSPropertyObject('total',TJSPaymentItem) as TJSPaymentItem;
  111924. end;
  111925. procedure TJSPaymentDetailsInit._Setid(const aValue : UnicodeString);
  111926. begin
  111927. WriteJSPropertyUnicodeString('id',aValue);
  111928. end;
  111929. procedure TJSPaymentDetailsInit._Settotal(const aValue : TJSPaymentItem);
  111930. begin
  111931. WriteJSPropertyObject('total',aValue);
  111932. end;
  111933. class function TJSPaymentDetailsInit.JSClassName: UnicodeString;
  111934. begin
  111935. Result:='Object';
  111936. end;
  111937. class function TJSPaymentDetailsInit.Cast(const Intf: IJSObject): IJSPaymentDetailsInit;
  111938. begin
  111939. Result:=TJSPaymentDetailsInit.JOBCast(Intf);
  111940. end;
  111941. function TJSAddressErrors._GetaddressLine: UnicodeString;
  111942. begin
  111943. Result:=ReadJSPropertyUnicodeString('addressLine');
  111944. end;
  111945. function TJSAddressErrors._Getcity: UnicodeString;
  111946. begin
  111947. Result:=ReadJSPropertyUnicodeString('city');
  111948. end;
  111949. function TJSAddressErrors._Getcountry: UnicodeString;
  111950. begin
  111951. Result:=ReadJSPropertyUnicodeString('country');
  111952. end;
  111953. function TJSAddressErrors._GetdependentLocality: UnicodeString;
  111954. begin
  111955. Result:=ReadJSPropertyUnicodeString('dependentLocality');
  111956. end;
  111957. function TJSAddressErrors._Getorganization: UnicodeString;
  111958. begin
  111959. Result:=ReadJSPropertyUnicodeString('organization');
  111960. end;
  111961. function TJSAddressErrors._Getphone: UnicodeString;
  111962. begin
  111963. Result:=ReadJSPropertyUnicodeString('phone');
  111964. end;
  111965. function TJSAddressErrors._GetpostalCode: UnicodeString;
  111966. begin
  111967. Result:=ReadJSPropertyUnicodeString('postalCode');
  111968. end;
  111969. function TJSAddressErrors._Getrecipient: UnicodeString;
  111970. begin
  111971. Result:=ReadJSPropertyUnicodeString('recipient');
  111972. end;
  111973. function TJSAddressErrors._Getregion: UnicodeString;
  111974. begin
  111975. Result:=ReadJSPropertyUnicodeString('region');
  111976. end;
  111977. function TJSAddressErrors._GetregionCode: UnicodeString;
  111978. begin
  111979. Result:=ReadJSPropertyUnicodeString('regionCode');
  111980. end;
  111981. function TJSAddressErrors._GetsortingCode: UnicodeString;
  111982. begin
  111983. Result:=ReadJSPropertyUnicodeString('sortingCode');
  111984. end;
  111985. procedure TJSAddressErrors._SetaddressLine(const aValue : UnicodeString);
  111986. begin
  111987. WriteJSPropertyUnicodeString('addressLine',aValue);
  111988. end;
  111989. procedure TJSAddressErrors._Setcity(const aValue : UnicodeString);
  111990. begin
  111991. WriteJSPropertyUnicodeString('city',aValue);
  111992. end;
  111993. procedure TJSAddressErrors._Setcountry(const aValue : UnicodeString);
  111994. begin
  111995. WriteJSPropertyUnicodeString('country',aValue);
  111996. end;
  111997. procedure TJSAddressErrors._SetdependentLocality(const aValue : UnicodeString);
  111998. begin
  111999. WriteJSPropertyUnicodeString('dependentLocality',aValue);
  112000. end;
  112001. procedure TJSAddressErrors._Setorganization(const aValue : UnicodeString);
  112002. begin
  112003. WriteJSPropertyUnicodeString('organization',aValue);
  112004. end;
  112005. procedure TJSAddressErrors._Setphone(const aValue : UnicodeString);
  112006. begin
  112007. WriteJSPropertyUnicodeString('phone',aValue);
  112008. end;
  112009. procedure TJSAddressErrors._SetpostalCode(const aValue : UnicodeString);
  112010. begin
  112011. WriteJSPropertyUnicodeString('postalCode',aValue);
  112012. end;
  112013. procedure TJSAddressErrors._Setrecipient(const aValue : UnicodeString);
  112014. begin
  112015. WriteJSPropertyUnicodeString('recipient',aValue);
  112016. end;
  112017. procedure TJSAddressErrors._Setregion(const aValue : UnicodeString);
  112018. begin
  112019. WriteJSPropertyUnicodeString('region',aValue);
  112020. end;
  112021. procedure TJSAddressErrors._SetregionCode(const aValue : UnicodeString);
  112022. begin
  112023. WriteJSPropertyUnicodeString('regionCode',aValue);
  112024. end;
  112025. procedure TJSAddressErrors._SetsortingCode(const aValue : UnicodeString);
  112026. begin
  112027. WriteJSPropertyUnicodeString('sortingCode',aValue);
  112028. end;
  112029. class function TJSAddressErrors.JSClassName: UnicodeString;
  112030. begin
  112031. Result:='Object';
  112032. end;
  112033. class function TJSAddressErrors.Cast(const Intf: IJSObject): IJSAddressErrors;
  112034. begin
  112035. Result:=TJSAddressErrors.JOBCast(Intf);
  112036. end;
  112037. function TJSPaymentValidationErrors._Getpayer: TJSPayerErrors;
  112038. begin
  112039. Result:=ReadJSPropertyObject('payer',TJSPayerErrors) as TJSPayerErrors;
  112040. end;
  112041. function TJSPaymentValidationErrors._GetshippingAddress: TJSAddressErrors;
  112042. begin
  112043. Result:=ReadJSPropertyObject('shippingAddress',TJSAddressErrors) as TJSAddressErrors;
  112044. end;
  112045. function TJSPaymentValidationErrors._Geterror: UnicodeString;
  112046. begin
  112047. Result:=ReadJSPropertyUnicodeString('error');
  112048. end;
  112049. function TJSPaymentValidationErrors._GetpaymentMethod: IJSObject;
  112050. begin
  112051. Result:=ReadJSPropertyObject('paymentMethod',TJSObject) as IJSObject;
  112052. end;
  112053. procedure TJSPaymentValidationErrors._Setpayer(const aValue : TJSPayerErrors);
  112054. begin
  112055. WriteJSPropertyObject('payer',aValue);
  112056. end;
  112057. procedure TJSPaymentValidationErrors._SetshippingAddress(const aValue : TJSAddressErrors);
  112058. begin
  112059. WriteJSPropertyObject('shippingAddress',aValue);
  112060. end;
  112061. procedure TJSPaymentValidationErrors._Seterror(const aValue : UnicodeString);
  112062. begin
  112063. WriteJSPropertyUnicodeString('error',aValue);
  112064. end;
  112065. procedure TJSPaymentValidationErrors._SetpaymentMethod(const aValue : IJSObject);
  112066. begin
  112067. WriteJSPropertyObject('paymentMethod',aValue);
  112068. end;
  112069. class function TJSPaymentValidationErrors.JSClassName: UnicodeString;
  112070. begin
  112071. Result:='Object';
  112072. end;
  112073. class function TJSPaymentValidationErrors.Cast(const Intf: IJSObject): IJSPaymentValidationErrors;
  112074. begin
  112075. Result:=TJSPaymentValidationErrors.JOBCast(Intf);
  112076. end;
  112077. function TJSPayerErrors._Getemail: UnicodeString;
  112078. begin
  112079. Result:=ReadJSPropertyUnicodeString('email');
  112080. end;
  112081. function TJSPayerErrors._Getname: UnicodeString;
  112082. begin
  112083. Result:=ReadJSPropertyUnicodeString('name');
  112084. end;
  112085. function TJSPayerErrors._Getphone: UnicodeString;
  112086. begin
  112087. Result:=ReadJSPropertyUnicodeString('phone');
  112088. end;
  112089. procedure TJSPayerErrors._Setemail(const aValue : UnicodeString);
  112090. begin
  112091. WriteJSPropertyUnicodeString('email',aValue);
  112092. end;
  112093. procedure TJSPayerErrors._Setname(const aValue : UnicodeString);
  112094. begin
  112095. WriteJSPropertyUnicodeString('name',aValue);
  112096. end;
  112097. procedure TJSPayerErrors._Setphone(const aValue : UnicodeString);
  112098. begin
  112099. WriteJSPropertyUnicodeString('phone',aValue);
  112100. end;
  112101. class function TJSPayerErrors.JSClassName: UnicodeString;
  112102. begin
  112103. Result:='Object';
  112104. end;
  112105. class function TJSPayerErrors.Cast(const Intf: IJSObject): IJSPayerErrors;
  112106. begin
  112107. Result:=TJSPayerErrors.JOBCast(Intf);
  112108. end;
  112109. function TJSPaymentDetailsUpdate._Geterror: UnicodeString;
  112110. begin
  112111. Result:=ReadJSPropertyUnicodeString('error');
  112112. end;
  112113. function TJSPaymentDetailsUpdate._GetshippingAddressErrors: TJSAddressErrors;
  112114. begin
  112115. Result:=ReadJSPropertyObject('shippingAddressErrors',TJSAddressErrors) as TJSAddressErrors;
  112116. end;
  112117. function TJSPaymentDetailsUpdate._GetpayerErrors: TJSPayerErrors;
  112118. begin
  112119. Result:=ReadJSPropertyObject('payerErrors',TJSPayerErrors) as TJSPayerErrors;
  112120. end;
  112121. function TJSPaymentDetailsUpdate._GetpaymentMethodErrors: IJSObject;
  112122. begin
  112123. Result:=ReadJSPropertyObject('paymentMethodErrors',TJSObject) as IJSObject;
  112124. end;
  112125. function TJSPaymentDetailsUpdate._Gettotal: TJSPaymentItem;
  112126. begin
  112127. Result:=ReadJSPropertyObject('total',TJSPaymentItem) as TJSPaymentItem;
  112128. end;
  112129. procedure TJSPaymentDetailsUpdate._Seterror(const aValue : UnicodeString);
  112130. begin
  112131. WriteJSPropertyUnicodeString('error',aValue);
  112132. end;
  112133. procedure TJSPaymentDetailsUpdate._SetshippingAddressErrors(const aValue : TJSAddressErrors);
  112134. begin
  112135. WriteJSPropertyObject('shippingAddressErrors',aValue);
  112136. end;
  112137. procedure TJSPaymentDetailsUpdate._SetpayerErrors(const aValue : TJSPayerErrors);
  112138. begin
  112139. WriteJSPropertyObject('payerErrors',aValue);
  112140. end;
  112141. procedure TJSPaymentDetailsUpdate._SetpaymentMethodErrors(const aValue : IJSObject);
  112142. begin
  112143. WriteJSPropertyObject('paymentMethodErrors',aValue);
  112144. end;
  112145. procedure TJSPaymentDetailsUpdate._Settotal(const aValue : TJSPaymentItem);
  112146. begin
  112147. WriteJSPropertyObject('total',aValue);
  112148. end;
  112149. class function TJSPaymentDetailsUpdate.JSClassName: UnicodeString;
  112150. begin
  112151. Result:='Object';
  112152. end;
  112153. class function TJSPaymentDetailsUpdate.Cast(const Intf: IJSObject): IJSPaymentDetailsUpdate;
  112154. begin
  112155. Result:=TJSPaymentDetailsUpdate.JOBCast(Intf);
  112156. end;
  112157. function TJSPaymentOptions._GetrequestPayerName: Boolean;
  112158. begin
  112159. Result:=ReadJSPropertyBoolean('requestPayerName');
  112160. end;
  112161. function TJSPaymentOptions._GetrequestPayerEmail: Boolean;
  112162. begin
  112163. Result:=ReadJSPropertyBoolean('requestPayerEmail');
  112164. end;
  112165. function TJSPaymentOptions._GetrequestPayerPhone: Boolean;
  112166. begin
  112167. Result:=ReadJSPropertyBoolean('requestPayerPhone');
  112168. end;
  112169. function TJSPaymentOptions._GetrequestShipping: Boolean;
  112170. begin
  112171. Result:=ReadJSPropertyBoolean('requestShipping');
  112172. end;
  112173. function TJSPaymentOptions._GetrequestBillingAddress: Boolean;
  112174. begin
  112175. Result:=ReadJSPropertyBoolean('requestBillingAddress');
  112176. end;
  112177. function TJSPaymentOptions._GetshippingType: TPaymentShippingType;
  112178. begin
  112179. Result:=ReadJSPropertyUnicodeString('shippingType');
  112180. end;
  112181. procedure TJSPaymentOptions._SetrequestPayerName(const aValue : Boolean);
  112182. begin
  112183. WriteJSPropertyBoolean('requestPayerName',aValue);
  112184. end;
  112185. procedure TJSPaymentOptions._SetrequestPayerEmail(const aValue : Boolean);
  112186. begin
  112187. WriteJSPropertyBoolean('requestPayerEmail',aValue);
  112188. end;
  112189. procedure TJSPaymentOptions._SetrequestPayerPhone(const aValue : Boolean);
  112190. begin
  112191. WriteJSPropertyBoolean('requestPayerPhone',aValue);
  112192. end;
  112193. procedure TJSPaymentOptions._SetrequestShipping(const aValue : Boolean);
  112194. begin
  112195. WriteJSPropertyBoolean('requestShipping',aValue);
  112196. end;
  112197. procedure TJSPaymentOptions._SetrequestBillingAddress(const aValue : Boolean);
  112198. begin
  112199. WriteJSPropertyBoolean('requestBillingAddress',aValue);
  112200. end;
  112201. procedure TJSPaymentOptions._SetshippingType(const aValue : TPaymentShippingType);
  112202. begin
  112203. WriteJSPropertyUnicodeString('shippingType',aValue);
  112204. end;
  112205. class function TJSPaymentOptions.JSClassName: UnicodeString;
  112206. begin
  112207. Result:='Object';
  112208. end;
  112209. class function TJSPaymentOptions.Cast(const Intf: IJSObject): IJSPaymentOptions;
  112210. begin
  112211. Result:=TJSPaymentOptions.JOBCast(Intf);
  112212. end;
  112213. function TJSPaymentRequest._Getid: UnicodeString;
  112214. begin
  112215. Result:=ReadJSPropertyUnicodeString('id');
  112216. end;
  112217. function TJSPaymentRequest._GetshippingAddress: IJSPaymentAddress;
  112218. begin
  112219. Result:=ReadJSPropertyObject('shippingAddress',TJSPaymentAddress) as IJSPaymentAddress;
  112220. end;
  112221. function TJSPaymentRequest._GetshippingOption: UnicodeString;
  112222. begin
  112223. Result:=ReadJSPropertyUnicodeString('shippingOption');
  112224. end;
  112225. function TJSPaymentRequest._GetshippingType: TPaymentShippingType;
  112226. begin
  112227. Result:=ReadJSPropertyUnicodeString('shippingType');
  112228. end;
  112229. function TJSPaymentRequest._Getonmerchantvalidation: TEventHandler;
  112230. begin
  112231. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmerchantvalidation')));
  112232. end;
  112233. function TJSPaymentRequest._Getonshippingaddresschange: TEventHandler;
  112234. begin
  112235. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onshippingaddresschange')));
  112236. end;
  112237. function TJSPaymentRequest._Getonshippingoptionchange: TEventHandler;
  112238. begin
  112239. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onshippingoptionchange')));
  112240. end;
  112241. function TJSPaymentRequest._Getonpaymentmethodchange: TEventHandler;
  112242. begin
  112243. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpaymentmethodchange')));
  112244. end;
  112245. procedure TJSPaymentRequest._Setonmerchantvalidation(const aValue : TEventHandler);
  112246. begin
  112247. WriteJSPropertyMethod('onmerchantvalidation',TMethod(aValue));
  112248. end;
  112249. procedure TJSPaymentRequest._Setonshippingaddresschange(const aValue : TEventHandler);
  112250. begin
  112251. WriteJSPropertyMethod('onshippingaddresschange',TMethod(aValue));
  112252. end;
  112253. procedure TJSPaymentRequest._Setonshippingoptionchange(const aValue : TEventHandler);
  112254. begin
  112255. WriteJSPropertyMethod('onshippingoptionchange',TMethod(aValue));
  112256. end;
  112257. procedure TJSPaymentRequest._Setonpaymentmethodchange(const aValue : TEventHandler);
  112258. begin
  112259. WriteJSPropertyMethod('onpaymentmethodchange',TMethod(aValue));
  112260. end;
  112261. constructor TJSPaymentRequest.Create(const aMethodData: TJSPaymentMethodDataDynArray; const aDetails: TJSPaymentDetailsInit; const aOptions: TJSPaymentOptions);
  112262. begin
  112263. JOBCreate([aMethodData,aDetails,aOptions]);
  112264. end;
  112265. constructor TJSPaymentRequest.Create(const aMethodData: TJSPaymentMethodDataDynArray; const aDetails: TJSPaymentDetailsInit);
  112266. begin
  112267. JOBCreate([aMethodData,aDetails]);
  112268. end;
  112269. function TJSPaymentRequest.show(aDetailsPromise: IJSPromise): IJSPromise; // Promise<PaymentResponse>
  112270. begin
  112271. Result:=InvokeJSObjectResult('show',[aDetailsPromise],TJSPromise) as IJSPromise;
  112272. end;
  112273. function TJSPaymentRequest.show: IJSPromise; // Promise<PaymentResponse>
  112274. begin
  112275. Result:=InvokeJSObjectResult('show',[],TJSPromise) as IJSPromise;
  112276. end;
  112277. function TJSPaymentRequest.abort: IJSPromise; // Promise<undefined>
  112278. begin
  112279. Result:=InvokeJSObjectResult('abort',[],TJSPromise) as IJSPromise;
  112280. end;
  112281. function TJSPaymentRequest.canMakePayment: IJSPromise; // Promise<boolean>
  112282. begin
  112283. Result:=InvokeJSObjectResult('canMakePayment',[],TJSPromise) as IJSPromise;
  112284. end;
  112285. class function TJSPaymentRequest.JSClassName: UnicodeString;
  112286. begin
  112287. Result:='PaymentRequest';
  112288. end;
  112289. class function TJSPaymentRequest.Cast(const Intf: IJSObject): IJSPaymentRequest;
  112290. begin
  112291. Result:=TJSPaymentRequest.JOBCast(Intf);
  112292. end;
  112293. constructor TJSPaymentRequestUpdateEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSPaymentRequestUpdateEventInit);
  112294. begin
  112295. JOBCreate([aType_,aEventInitDict]);
  112296. end;
  112297. constructor TJSPaymentRequestUpdateEvent.Create(const aType_: UnicodeString);
  112298. begin
  112299. JOBCreate([aType_]);
  112300. end;
  112301. procedure TJSPaymentRequestUpdateEvent.updateWith(aDetailsPromise: IJSPromise);
  112302. begin
  112303. InvokeJSNoResult('updateWith',[aDetailsPromise]);
  112304. end;
  112305. class function TJSPaymentRequestUpdateEvent.JSClassName: UnicodeString;
  112306. begin
  112307. Result:='PaymentRequestUpdateEvent';
  112308. end;
  112309. class function TJSPaymentRequestUpdateEvent.Cast(const Intf: IJSObject): IJSPaymentRequestUpdateEvent;
  112310. begin
  112311. Result:=TJSPaymentRequestUpdateEvent.JOBCast(Intf);
  112312. end;
  112313. class function TJSPaymentRequestUpdateEventInit.JSClassName: UnicodeString;
  112314. begin
  112315. Result:='Object';
  112316. end;
  112317. class function TJSPaymentRequestUpdateEventInit.Cast(const Intf: IJSObject): IJSPaymentRequestUpdateEventInit;
  112318. begin
  112319. Result:=TJSPaymentRequestUpdateEventInit.JOBCast(Intf);
  112320. end;
  112321. function TJSPaymentResponse._GetrequestId: UnicodeString;
  112322. begin
  112323. Result:=ReadJSPropertyUnicodeString('requestId');
  112324. end;
  112325. function TJSPaymentResponse._GetmethodName: UnicodeString;
  112326. begin
  112327. Result:=ReadJSPropertyUnicodeString('methodName');
  112328. end;
  112329. function TJSPaymentResponse._Getdetails: IJSObject;
  112330. begin
  112331. Result:=ReadJSPropertyObject('details',TJSObject) as IJSObject;
  112332. end;
  112333. function TJSPaymentResponse._GetshippingAddress: IJSPaymentAddress;
  112334. begin
  112335. Result:=ReadJSPropertyObject('shippingAddress',TJSPaymentAddress) as IJSPaymentAddress;
  112336. end;
  112337. function TJSPaymentResponse._GetshippingOption: UnicodeString;
  112338. begin
  112339. Result:=ReadJSPropertyUnicodeString('shippingOption');
  112340. end;
  112341. function TJSPaymentResponse._GetpayerName: UnicodeString;
  112342. begin
  112343. Result:=ReadJSPropertyUnicodeString('payerName');
  112344. end;
  112345. function TJSPaymentResponse._GetpayerEmail: UnicodeString;
  112346. begin
  112347. Result:=ReadJSPropertyUnicodeString('payerEmail');
  112348. end;
  112349. function TJSPaymentResponse._GetpayerPhone: UnicodeString;
  112350. begin
  112351. Result:=ReadJSPropertyUnicodeString('payerPhone');
  112352. end;
  112353. function TJSPaymentResponse._Getonpayerdetailchange: TEventHandler;
  112354. begin
  112355. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpayerdetailchange')));
  112356. end;
  112357. procedure TJSPaymentResponse._Setonpayerdetailchange(const aValue : TEventHandler);
  112358. begin
  112359. WriteJSPropertyMethod('onpayerdetailchange',TMethod(aValue));
  112360. end;
  112361. function TJSPaymentResponse.toJSON: IJSObject;
  112362. begin
  112363. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  112364. end;
  112365. function TJSPaymentResponse.complete(aResult: TPaymentComplete): IJSPromise; // Promise<undefined>
  112366. begin
  112367. Result:=InvokeJSObjectResult('complete',[aResult],TJSPromise) as IJSPromise;
  112368. end;
  112369. function TJSPaymentResponse.complete: IJSPromise; // Promise<undefined>
  112370. begin
  112371. Result:=InvokeJSObjectResult('complete',[],TJSPromise) as IJSPromise;
  112372. end;
  112373. function TJSPaymentResponse.retry(const aErrorFields: TJSPaymentValidationErrors): IJSPromise; // Promise<undefined>
  112374. begin
  112375. Result:=InvokeJSObjectResult('retry',[aErrorFields],TJSPromise) as IJSPromise;
  112376. end;
  112377. function TJSPaymentResponse.retry: IJSPromise; // Promise<undefined>
  112378. begin
  112379. Result:=InvokeJSObjectResult('retry',[],TJSPromise) as IJSPromise;
  112380. end;
  112381. class function TJSPaymentResponse.JSClassName: UnicodeString;
  112382. begin
  112383. Result:='PaymentResponse';
  112384. end;
  112385. class function TJSPaymentResponse.Cast(const Intf: IJSObject): IJSPaymentResponse;
  112386. begin
  112387. Result:=TJSPaymentResponse.JOBCast(Intf);
  112388. end;
  112389. function TJSPCErrorData._Getname: TPCError;
  112390. begin
  112391. Result:=ReadJSPropertyUnicodeString('name');
  112392. end;
  112393. function TJSPCErrorData._Getmessage: UnicodeString;
  112394. begin
  112395. Result:=ReadJSPropertyUnicodeString('message');
  112396. end;
  112397. procedure TJSPCErrorData._Setname(const aValue : TPCError);
  112398. begin
  112399. WriteJSPropertyUnicodeString('name',aValue);
  112400. end;
  112401. procedure TJSPCErrorData._Setmessage(const aValue : UnicodeString);
  112402. begin
  112403. WriteJSPropertyUnicodeString('message',aValue);
  112404. end;
  112405. class function TJSPCErrorData.JSClassName: UnicodeString;
  112406. begin
  112407. Result:='Object';
  112408. end;
  112409. class function TJSPCErrorData.Cast(const Intf: IJSObject): IJSPCErrorData;
  112410. begin
  112411. Result:=TJSPCErrorData.JOBCast(Intf);
  112412. end;
  112413. function TJSPerformance._GettimeOrigin: TDOMHighResTimeStamp;
  112414. begin
  112415. Result:=ReadJSPropertyDouble('timeOrigin');
  112416. end;
  112417. function TJSPerformance._Gettiming: IJSPerformanceTiming;
  112418. begin
  112419. Result:=ReadJSPropertyObject('timing',TJSPerformanceTiming) as IJSPerformanceTiming;
  112420. end;
  112421. function TJSPerformance._Getnavigation: IJSPerformanceNavigation;
  112422. begin
  112423. Result:=ReadJSPropertyObject('navigation',TJSPerformanceNavigation) as IJSPerformanceNavigation;
  112424. end;
  112425. function TJSPerformance._Getonresourcetimingbufferfull: TEventHandler;
  112426. begin
  112427. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresourcetimingbufferfull')));
  112428. end;
  112429. function TJSPerformance._GetmozMemory: IJSObject;
  112430. begin
  112431. Result:=ReadJSPropertyObject('mozMemory',TJSObject) as IJSObject;
  112432. end;
  112433. function TJSPerformance._GeteventCounts: IJSEventCounts;
  112434. begin
  112435. Result:=ReadJSPropertyObject('eventCounts',TJSEventCounts) as IJSEventCounts;
  112436. end;
  112437. procedure TJSPerformance._Setonresourcetimingbufferfull(const aValue : TEventHandler);
  112438. begin
  112439. WriteJSPropertyMethod('onresourcetimingbufferfull',TMethod(aValue));
  112440. end;
  112441. function TJSPerformance.now: TDOMHighResTimeStamp;
  112442. begin
  112443. Result:=InvokeJSDoubleResult('now',[]);
  112444. end;
  112445. function TJSPerformance.toJSON: IJSObject;
  112446. begin
  112447. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  112448. end;
  112449. function TJSPerformance.getEntries: TPerformanceEntryListDynArray;
  112450. begin
  112451. Result:=InvokeJSObjectResult('getEntries',[],TJSArray) as TPerformanceEntryListDynArray;
  112452. end;
  112453. function TJSPerformance.getEntriesByType(const aEntryType: UnicodeString): TPerformanceEntryListDynArray;
  112454. begin
  112455. Result:=InvokeJSObjectResult('getEntriesByType',[aEntryType],TJSArray) as TPerformanceEntryListDynArray;
  112456. end;
  112457. function TJSPerformance.getEntriesByName(const aName: UnicodeString; const aEntryType: UnicodeString): TPerformanceEntryListDynArray;
  112458. begin
  112459. Result:=InvokeJSObjectResult('getEntriesByName',[aName,aEntryType],TJSArray) as TPerformanceEntryListDynArray;
  112460. end;
  112461. function TJSPerformance.getEntriesByName(const aName: UnicodeString): TPerformanceEntryListDynArray;
  112462. begin
  112463. Result:=InvokeJSObjectResult('getEntriesByName',[aName],TJSArray) as TPerformanceEntryListDynArray;
  112464. end;
  112465. procedure TJSPerformance.clearResourceTimings;
  112466. begin
  112467. InvokeJSNoResult('clearResourceTimings',[]);
  112468. end;
  112469. procedure TJSPerformance.setResourceTimingBufferSize(aMaxSize: Cardinal);
  112470. begin
  112471. InvokeJSNoResult('setResourceTimingBufferSize',[aMaxSize]);
  112472. end;
  112473. function TJSPerformance.mark(const aMarkName: UnicodeString; const aMarkOptions: TJSPerformanceMarkOptions): IJSPerformanceMark;
  112474. begin
  112475. Result:=InvokeJSObjectResult('mark',[aMarkName,aMarkOptions],TJSPerformanceMark) as IJSPerformanceMark;
  112476. end;
  112477. function TJSPerformance.mark(const aMarkName: UnicodeString): IJSPerformanceMark;
  112478. begin
  112479. Result:=InvokeJSObjectResult('mark',[aMarkName],TJSPerformanceMark) as IJSPerformanceMark;
  112480. end;
  112481. procedure TJSPerformance.clearMarks(const aMarkName: UnicodeString);
  112482. begin
  112483. InvokeJSNoResult('clearMarks',[aMarkName]);
  112484. end;
  112485. procedure TJSPerformance.clearMarks;
  112486. begin
  112487. InvokeJSNoResult('clearMarks',[]);
  112488. end;
  112489. function TJSPerformance.measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: UnicodeString; const aEndMark: UnicodeString): IJSPerformanceMeasure;
  112490. begin
  112491. Result:=InvokeJSObjectResult('measure',[aMeasureName,aStartOrMeasureOptions,aEndMark],TJSPerformanceMeasure) as IJSPerformanceMeasure;
  112492. end;
  112493. function TJSPerformance.measure(const aMeasureName: UnicodeString): IJSPerformanceMeasure;
  112494. begin
  112495. Result:=InvokeJSObjectResult('measure',[aMeasureName],TJSPerformanceMeasure) as IJSPerformanceMeasure;
  112496. end;
  112497. function TJSPerformance.measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: TJSPerformanceMeasureOptions; const aEndMark: UnicodeString): IJSPerformanceMeasure;
  112498. begin
  112499. Result:=InvokeJSObjectResult('measure',[aMeasureName,aStartOrMeasureOptions,aEndMark],TJSPerformanceMeasure) as IJSPerformanceMeasure;
  112500. end;
  112501. function TJSPerformance.measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: TJSPerformanceMeasureOptions): IJSPerformanceMeasure;
  112502. begin
  112503. Result:=InvokeJSObjectResult('measure',[aMeasureName,aStartOrMeasureOptions],TJSPerformanceMeasure) as IJSPerformanceMeasure;
  112504. end;
  112505. function TJSPerformance.measure(const aMeasureName: UnicodeString; const aStartOrMeasureOptions: UnicodeString): IJSPerformanceMeasure;
  112506. begin
  112507. Result:=InvokeJSObjectResult('measure',[aMeasureName,aStartOrMeasureOptions],TJSPerformanceMeasure) as IJSPerformanceMeasure;
  112508. end;
  112509. procedure TJSPerformance.clearMeasures(const aMeasureName: UnicodeString);
  112510. begin
  112511. InvokeJSNoResult('clearMeasures',[aMeasureName]);
  112512. end;
  112513. procedure TJSPerformance.clearMeasures;
  112514. begin
  112515. InvokeJSNoResult('clearMeasures',[]);
  112516. end;
  112517. class function TJSPerformance.JSClassName: UnicodeString;
  112518. begin
  112519. Result:='Performance';
  112520. end;
  112521. class function TJSPerformance.Cast(const Intf: IJSObject): IJSPerformance;
  112522. begin
  112523. Result:=TJSPerformance.JOBCast(Intf);
  112524. end;
  112525. function TJSPerformanceMarkOptions._Getdetail: Variant;
  112526. begin
  112527. Result:=ReadJSPropertyVariant('detail');
  112528. end;
  112529. function TJSPerformanceMarkOptions._GetstartTime: TDOMHighResTimeStamp;
  112530. begin
  112531. Result:=ReadJSPropertyDouble('startTime');
  112532. end;
  112533. procedure TJSPerformanceMarkOptions._Setdetail(const aValue : Variant);
  112534. begin
  112535. WriteJSPropertyVariant('detail',aValue);
  112536. end;
  112537. procedure TJSPerformanceMarkOptions._SetstartTime(const aValue : TDOMHighResTimeStamp);
  112538. begin
  112539. WriteJSPropertyDouble('startTime',aValue);
  112540. end;
  112541. class function TJSPerformanceMarkOptions.JSClassName: UnicodeString;
  112542. begin
  112543. Result:='Object';
  112544. end;
  112545. class function TJSPerformanceMarkOptions.Cast(const Intf: IJSObject): IJSPerformanceMarkOptions;
  112546. begin
  112547. Result:=TJSPerformanceMarkOptions.JOBCast(Intf);
  112548. end;
  112549. function TJSPerformanceMeasureOptions._Getdetail: Variant;
  112550. begin
  112551. Result:=ReadJSPropertyVariant('detail');
  112552. end;
  112553. function TJSPerformanceMeasureOptions._Getstart: TPerformanceMeasureOptions_start_Type;
  112554. begin
  112555. Result:=ReadJSPropertyVariant('start');
  112556. end;
  112557. function TJSPerformanceMeasureOptions._Getduration: TDOMHighResTimeStamp;
  112558. begin
  112559. Result:=ReadJSPropertyDouble('duration');
  112560. end;
  112561. function TJSPerformanceMeasureOptions._Getend_: TPerformanceMeasureOptions_end_Type;
  112562. begin
  112563. Result:=ReadJSPropertyVariant('end');
  112564. end;
  112565. procedure TJSPerformanceMeasureOptions._Setdetail(const aValue : Variant);
  112566. begin
  112567. WriteJSPropertyVariant('detail',aValue);
  112568. end;
  112569. procedure TJSPerformanceMeasureOptions._Setstart(const aValue : TPerformanceMeasureOptions_start_Type);
  112570. begin
  112571. WriteJSPropertyVariant('start',aValue);
  112572. end;
  112573. procedure TJSPerformanceMeasureOptions._Setduration(const aValue : TDOMHighResTimeStamp);
  112574. begin
  112575. WriteJSPropertyDouble('duration',aValue);
  112576. end;
  112577. procedure TJSPerformanceMeasureOptions._Setend_(const aValue : TPerformanceMeasureOptions_end_Type);
  112578. begin
  112579. WriteJSPropertyVariant('end',aValue);
  112580. end;
  112581. class function TJSPerformanceMeasureOptions.JSClassName: UnicodeString;
  112582. begin
  112583. Result:='Object';
  112584. end;
  112585. class function TJSPerformanceMeasureOptions.Cast(const Intf: IJSObject): IJSPerformanceMeasureOptions;
  112586. begin
  112587. Result:=TJSPerformanceMeasureOptions.JOBCast(Intf);
  112588. end;
  112589. function TJSPerformanceEntry._Getname: UnicodeString;
  112590. begin
  112591. Result:=ReadJSPropertyUnicodeString('name');
  112592. end;
  112593. function TJSPerformanceEntry._GetentryType: UnicodeString;
  112594. begin
  112595. Result:=ReadJSPropertyUnicodeString('entryType');
  112596. end;
  112597. function TJSPerformanceEntry._GetstartTime: TDOMHighResTimeStamp;
  112598. begin
  112599. Result:=ReadJSPropertyDouble('startTime');
  112600. end;
  112601. function TJSPerformanceEntry._Getduration: TDOMHighResTimeStamp;
  112602. begin
  112603. Result:=ReadJSPropertyDouble('duration');
  112604. end;
  112605. function TJSPerformanceEntry.toJSON: IJSObject;
  112606. begin
  112607. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  112608. end;
  112609. class function TJSPerformanceEntry.JSClassName: UnicodeString;
  112610. begin
  112611. Result:='PerformanceEntry';
  112612. end;
  112613. class function TJSPerformanceEntry.Cast(const Intf: IJSObject): IJSPerformanceEntry;
  112614. begin
  112615. Result:=TJSPerformanceEntry.JOBCast(Intf);
  112616. end;
  112617. function TJSPerformanceEntryEventInit._Getname: UnicodeString;
  112618. begin
  112619. Result:=ReadJSPropertyUnicodeString('name');
  112620. end;
  112621. function TJSPerformanceEntryEventInit._GetentryType: UnicodeString;
  112622. begin
  112623. Result:=ReadJSPropertyUnicodeString('entryType');
  112624. end;
  112625. function TJSPerformanceEntryEventInit._GetstartTime: TDOMHighResTimeStamp;
  112626. begin
  112627. Result:=ReadJSPropertyDouble('startTime');
  112628. end;
  112629. function TJSPerformanceEntryEventInit._Getduration: TDOMHighResTimeStamp;
  112630. begin
  112631. Result:=ReadJSPropertyDouble('duration');
  112632. end;
  112633. function TJSPerformanceEntryEventInit._Getepoch: Double;
  112634. begin
  112635. Result:=ReadJSPropertyDouble('epoch');
  112636. end;
  112637. function TJSPerformanceEntryEventInit._Getorigin: UnicodeString;
  112638. begin
  112639. Result:=ReadJSPropertyUnicodeString('origin');
  112640. end;
  112641. procedure TJSPerformanceEntryEventInit._Setname(const aValue : UnicodeString);
  112642. begin
  112643. WriteJSPropertyUnicodeString('name',aValue);
  112644. end;
  112645. procedure TJSPerformanceEntryEventInit._SetentryType(const aValue : UnicodeString);
  112646. begin
  112647. WriteJSPropertyUnicodeString('entryType',aValue);
  112648. end;
  112649. procedure TJSPerformanceEntryEventInit._SetstartTime(const aValue : TDOMHighResTimeStamp);
  112650. begin
  112651. WriteJSPropertyDouble('startTime',aValue);
  112652. end;
  112653. procedure TJSPerformanceEntryEventInit._Setduration(const aValue : TDOMHighResTimeStamp);
  112654. begin
  112655. WriteJSPropertyDouble('duration',aValue);
  112656. end;
  112657. procedure TJSPerformanceEntryEventInit._Setepoch(const aValue : Double);
  112658. begin
  112659. WriteJSPropertyDouble('epoch',aValue);
  112660. end;
  112661. procedure TJSPerformanceEntryEventInit._Setorigin(const aValue : UnicodeString);
  112662. begin
  112663. WriteJSPropertyUnicodeString('origin',aValue);
  112664. end;
  112665. class function TJSPerformanceEntryEventInit.JSClassName: UnicodeString;
  112666. begin
  112667. Result:='Object';
  112668. end;
  112669. class function TJSPerformanceEntryEventInit.Cast(const Intf: IJSObject): IJSPerformanceEntryEventInit;
  112670. begin
  112671. Result:=TJSPerformanceEntryEventInit.JOBCast(Intf);
  112672. end;
  112673. function TJSEventCounts._Getsize: LongInt;
  112674. begin
  112675. Result:=ReadJSPropertyLongInt('size');
  112676. end;
  112677. function TJSEventCounts.get(key: UnicodeString) : QWord;
  112678. begin
  112679. Result:=InvokeJSMaxIntResult('get',[key]);
  112680. end;
  112681. function TJSEventCounts.has(key: UnicodeString) : Boolean;
  112682. begin
  112683. Result:=InvokeJSBooleanResult('has',[key]);
  112684. end;
  112685. function TJSEventCounts.entries : IJSIterator;
  112686. begin
  112687. Result:=InvokeJSObjectResult('entries',[],TJSIterator) as IJSIterator;
  112688. end;
  112689. function TJSEventCounts.keys : IJSIterator;
  112690. begin
  112691. Result:=InvokeJSObjectResult('keys',[],TJSIterator) as IJSIterator;
  112692. end;
  112693. function TJSEventCounts.values : IJSIterator;
  112694. begin
  112695. Result:=InvokeJSObjectResult('values',[],TJSIterator) as IJSIterator;
  112696. end;
  112697. class function TJSEventCounts.JSClassName: UnicodeString;
  112698. begin
  112699. Result:='EventCounts';
  112700. end;
  112701. class function TJSEventCounts.Cast(const Intf: IJSObject): IJSEventCounts;
  112702. begin
  112703. Result:=TJSEventCounts.JOBCast(Intf);
  112704. end;
  112705. function TJSPerformanceEventTiming._GetprocessingStart: TDOMHighResTimeStamp;
  112706. begin
  112707. Result:=ReadJSPropertyDouble('processingStart');
  112708. end;
  112709. function TJSPerformanceEventTiming._GetprocessingEnd: TDOMHighResTimeStamp;
  112710. begin
  112711. Result:=ReadJSPropertyDouble('processingEnd');
  112712. end;
  112713. function TJSPerformanceEventTiming._Getcancelable: Boolean;
  112714. begin
  112715. Result:=ReadJSPropertyBoolean('cancelable');
  112716. end;
  112717. function TJSPerformanceEventTiming._Gettarget: IJSNode;
  112718. begin
  112719. Result:=ReadJSPropertyObject('target',TJSNode) as IJSNode;
  112720. end;
  112721. function TJSPerformanceEventTiming.toJSON: IJSObject;
  112722. begin
  112723. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  112724. end;
  112725. class function TJSPerformanceEventTiming.JSClassName: UnicodeString;
  112726. begin
  112727. Result:='PerformanceEventTiming';
  112728. end;
  112729. class function TJSPerformanceEventTiming.Cast(const Intf: IJSObject): IJSPerformanceEventTiming;
  112730. begin
  112731. Result:=TJSPerformanceEventTiming.JOBCast(Intf);
  112732. end;
  112733. function TJSLargestContentfulPaint._GetrenderTime: TDOMHighResTimeStamp;
  112734. begin
  112735. Result:=ReadJSPropertyDouble('renderTime');
  112736. end;
  112737. function TJSLargestContentfulPaint._GetloadTime: TDOMHighResTimeStamp;
  112738. begin
  112739. Result:=ReadJSPropertyDouble('loadTime');
  112740. end;
  112741. function TJSLargestContentfulPaint._Getsize: Cardinal;
  112742. begin
  112743. Result:=ReadJSPropertyInt64('size');
  112744. end;
  112745. function TJSLargestContentfulPaint._Getid: UnicodeString;
  112746. begin
  112747. Result:=ReadJSPropertyUnicodeString('id');
  112748. end;
  112749. function TJSLargestContentfulPaint._Geturl: UnicodeString;
  112750. begin
  112751. Result:=ReadJSPropertyUnicodeString('url');
  112752. end;
  112753. function TJSLargestContentfulPaint._Getelement: IJSElement;
  112754. begin
  112755. Result:=ReadJSPropertyObject('element',TJSElement) as IJSElement;
  112756. end;
  112757. function TJSLargestContentfulPaint.toJSON: IJSObject;
  112758. begin
  112759. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  112760. end;
  112761. class function TJSLargestContentfulPaint.JSClassName: UnicodeString;
  112762. begin
  112763. Result:='LargestContentfulPaint';
  112764. end;
  112765. class function TJSLargestContentfulPaint.Cast(const Intf: IJSObject): IJSLargestContentfulPaint;
  112766. begin
  112767. Result:=TJSLargestContentfulPaint.JOBCast(Intf);
  112768. end;
  112769. function TJSPerformanceMark._Getdetail: Variant;
  112770. begin
  112771. Result:=ReadJSPropertyVariant('detail');
  112772. end;
  112773. constructor TJSPerformanceMark.Create(const aMarkName: UnicodeString; const aMarkOptions: TJSPerformanceMarkOptions);
  112774. begin
  112775. JOBCreate([aMarkName,aMarkOptions]);
  112776. end;
  112777. constructor TJSPerformanceMark.Create(const aMarkName: UnicodeString);
  112778. begin
  112779. JOBCreate([aMarkName]);
  112780. end;
  112781. class function TJSPerformanceMark.JSClassName: UnicodeString;
  112782. begin
  112783. Result:='PerformanceMark';
  112784. end;
  112785. class function TJSPerformanceMark.Cast(const Intf: IJSObject): IJSPerformanceMark;
  112786. begin
  112787. Result:=TJSPerformanceMark.JOBCast(Intf);
  112788. end;
  112789. function TJSPerformanceMeasure._Getdetail: Variant;
  112790. begin
  112791. Result:=ReadJSPropertyVariant('detail');
  112792. end;
  112793. class function TJSPerformanceMeasure.JSClassName: UnicodeString;
  112794. begin
  112795. Result:='PerformanceMeasure';
  112796. end;
  112797. class function TJSPerformanceMeasure.Cast(const Intf: IJSObject): IJSPerformanceMeasure;
  112798. begin
  112799. Result:=TJSPerformanceMeasure.JOBCast(Intf);
  112800. end;
  112801. function TJSPerformanceNavigation._Gettype_: Word;
  112802. begin
  112803. Result:=ReadJSPropertyLongInt('type');
  112804. end;
  112805. function TJSPerformanceNavigation._GetredirectCount: Word;
  112806. begin
  112807. Result:=ReadJSPropertyLongInt('redirectCount');
  112808. end;
  112809. function TJSPerformanceNavigation.toJSON: IJSObject;
  112810. begin
  112811. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  112812. end;
  112813. class function TJSPerformanceNavigation.JSClassName: UnicodeString;
  112814. begin
  112815. Result:='PerformanceNavigation';
  112816. end;
  112817. class function TJSPerformanceNavigation.Cast(const Intf: IJSObject): IJSPerformanceNavigation;
  112818. begin
  112819. Result:=TJSPerformanceNavigation.JOBCast(Intf);
  112820. end;
  112821. function TJSPerformanceNavigationTiming._GetunloadEventStart: TDOMHighResTimeStamp;
  112822. begin
  112823. Result:=ReadJSPropertyDouble('unloadEventStart');
  112824. end;
  112825. function TJSPerformanceNavigationTiming._GetunloadEventEnd: TDOMHighResTimeStamp;
  112826. begin
  112827. Result:=ReadJSPropertyDouble('unloadEventEnd');
  112828. end;
  112829. function TJSPerformanceNavigationTiming._GetdomInteractive: TDOMHighResTimeStamp;
  112830. begin
  112831. Result:=ReadJSPropertyDouble('domInteractive');
  112832. end;
  112833. function TJSPerformanceNavigationTiming._GetdomContentLoadedEventStart: TDOMHighResTimeStamp;
  112834. begin
  112835. Result:=ReadJSPropertyDouble('domContentLoadedEventStart');
  112836. end;
  112837. function TJSPerformanceNavigationTiming._GetdomContentLoadedEventEnd: TDOMHighResTimeStamp;
  112838. begin
  112839. Result:=ReadJSPropertyDouble('domContentLoadedEventEnd');
  112840. end;
  112841. function TJSPerformanceNavigationTiming._GetdomComplete: TDOMHighResTimeStamp;
  112842. begin
  112843. Result:=ReadJSPropertyDouble('domComplete');
  112844. end;
  112845. function TJSPerformanceNavigationTiming._GetloadEventStart: TDOMHighResTimeStamp;
  112846. begin
  112847. Result:=ReadJSPropertyDouble('loadEventStart');
  112848. end;
  112849. function TJSPerformanceNavigationTiming._GetloadEventEnd: TDOMHighResTimeStamp;
  112850. begin
  112851. Result:=ReadJSPropertyDouble('loadEventEnd');
  112852. end;
  112853. function TJSPerformanceNavigationTiming._Gettype_: TNavigationType;
  112854. begin
  112855. Result:=ReadJSPropertyUnicodeString('type');
  112856. end;
  112857. function TJSPerformanceNavigationTiming._GetredirectCount: Word;
  112858. begin
  112859. Result:=ReadJSPropertyLongInt('redirectCount');
  112860. end;
  112861. function TJSPerformanceNavigationTiming.toJSON: IJSObject;
  112862. begin
  112863. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  112864. end;
  112865. class function TJSPerformanceNavigationTiming.JSClassName: UnicodeString;
  112866. begin
  112867. Result:='PerformanceNavigationTiming';
  112868. end;
  112869. class function TJSPerformanceNavigationTiming.Cast(const Intf: IJSObject): IJSPerformanceNavigationTiming;
  112870. begin
  112871. Result:=TJSPerformanceNavigationTiming.JOBCast(Intf);
  112872. end;
  112873. function TJSPerformanceObserverInit._GetentryTypes: TUnicodeStringDynArray;
  112874. begin
  112875. Result:=ReadJSPropertyObject('entryTypes',TJSArray) as TUnicodeStringDynArray;
  112876. end;
  112877. function TJSPerformanceObserverInit._Gettype_: UnicodeString;
  112878. begin
  112879. Result:=ReadJSPropertyUnicodeString('type');
  112880. end;
  112881. function TJSPerformanceObserverInit._Getbuffered: Boolean;
  112882. begin
  112883. Result:=ReadJSPropertyBoolean('buffered');
  112884. end;
  112885. function TJSPerformanceObserverInit._GetdurationThreshold: TDOMHighResTimeStamp;
  112886. begin
  112887. Result:=ReadJSPropertyDouble('durationThreshold');
  112888. end;
  112889. procedure TJSPerformanceObserverInit._SetentryTypes(const aValue : TUnicodeStringDynArray);
  112890. begin
  112891. WriteJSPropertyObject('entryTypes',aValue);
  112892. end;
  112893. procedure TJSPerformanceObserverInit._Settype_(const aValue : UnicodeString);
  112894. begin
  112895. WriteJSPropertyUnicodeString('type',aValue);
  112896. end;
  112897. procedure TJSPerformanceObserverInit._Setbuffered(const aValue : Boolean);
  112898. begin
  112899. WriteJSPropertyBoolean('buffered',aValue);
  112900. end;
  112901. procedure TJSPerformanceObserverInit._SetdurationThreshold(const aValue : TDOMHighResTimeStamp);
  112902. begin
  112903. WriteJSPropertyDouble('durationThreshold',aValue);
  112904. end;
  112905. class function TJSPerformanceObserverInit.JSClassName: UnicodeString;
  112906. begin
  112907. Result:='Object';
  112908. end;
  112909. class function TJSPerformanceObserverInit.Cast(const Intf: IJSObject): IJSPerformanceObserverInit;
  112910. begin
  112911. Result:=TJSPerformanceObserverInit.JOBCast(Intf);
  112912. end;
  112913. function TJSPerformanceObserver._GetsupportedEntryTypes: IJSObject;
  112914. begin
  112915. Result:=ReadJSPropertyObject('supportedEntryTypes',TJSObject) as IJSObject;
  112916. end;
  112917. constructor TJSPerformanceObserver.Create(const aCallback: TPerformanceObserverCallback);
  112918. var
  112919. m: TJOB_Method;
  112920. begin
  112921. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallPerformanceObserverCallback);
  112922. try
  112923. JOBCreate([m]);
  112924. finally
  112925. m.free;
  112926. end;
  112927. end;
  112928. procedure TJSPerformanceObserver.observe(const aOptions: TJSPerformanceObserverInit);
  112929. begin
  112930. InvokeJSNoResult('observe',[aOptions]);
  112931. end;
  112932. procedure TJSPerformanceObserver.observe;
  112933. begin
  112934. InvokeJSNoResult('observe',[]);
  112935. end;
  112936. procedure TJSPerformanceObserver.disconnect;
  112937. begin
  112938. InvokeJSNoResult('disconnect',[]);
  112939. end;
  112940. function TJSPerformanceObserver.takeRecords: TPerformanceEntryListDynArray;
  112941. begin
  112942. Result:=InvokeJSObjectResult('takeRecords',[],TJSArray) as TPerformanceEntryListDynArray;
  112943. end;
  112944. class function TJSPerformanceObserver.JSClassName: UnicodeString;
  112945. begin
  112946. Result:='PerformanceObserver';
  112947. end;
  112948. class function TJSPerformanceObserver.Cast(const Intf: IJSObject): IJSPerformanceObserver;
  112949. begin
  112950. Result:=TJSPerformanceObserver.JOBCast(Intf);
  112951. end;
  112952. function TJSPerformanceEntryFilterOptions._Getname: UnicodeString;
  112953. begin
  112954. Result:=ReadJSPropertyUnicodeString('name');
  112955. end;
  112956. function TJSPerformanceEntryFilterOptions._GetentryType: UnicodeString;
  112957. begin
  112958. Result:=ReadJSPropertyUnicodeString('entryType');
  112959. end;
  112960. function TJSPerformanceEntryFilterOptions._GetinitiatorType: UnicodeString;
  112961. begin
  112962. Result:=ReadJSPropertyUnicodeString('initiatorType');
  112963. end;
  112964. procedure TJSPerformanceEntryFilterOptions._Setname(const aValue : UnicodeString);
  112965. begin
  112966. WriteJSPropertyUnicodeString('name',aValue);
  112967. end;
  112968. procedure TJSPerformanceEntryFilterOptions._SetentryType(const aValue : UnicodeString);
  112969. begin
  112970. WriteJSPropertyUnicodeString('entryType',aValue);
  112971. end;
  112972. procedure TJSPerformanceEntryFilterOptions._SetinitiatorType(const aValue : UnicodeString);
  112973. begin
  112974. WriteJSPropertyUnicodeString('initiatorType',aValue);
  112975. end;
  112976. class function TJSPerformanceEntryFilterOptions.JSClassName: UnicodeString;
  112977. begin
  112978. Result:='Object';
  112979. end;
  112980. class function TJSPerformanceEntryFilterOptions.Cast(const Intf: IJSObject): IJSPerformanceEntryFilterOptions;
  112981. begin
  112982. Result:=TJSPerformanceEntryFilterOptions.JOBCast(Intf);
  112983. end;
  112984. function TJSPerformanceObserverEntryList.getEntries(const aFilter: TJSPerformanceEntryFilterOptions): TPerformanceEntryListDynArray;
  112985. begin
  112986. Result:=InvokeJSObjectResult('getEntries',[aFilter],TJSArray) as TPerformanceEntryListDynArray;
  112987. end;
  112988. function TJSPerformanceObserverEntryList.getEntries: TPerformanceEntryListDynArray;
  112989. begin
  112990. Result:=InvokeJSObjectResult('getEntries',[],TJSArray) as TPerformanceEntryListDynArray;
  112991. end;
  112992. function TJSPerformanceObserverEntryList.getEntriesByType(const aEntryType: UnicodeString): TPerformanceEntryListDynArray;
  112993. begin
  112994. Result:=InvokeJSObjectResult('getEntriesByType',[aEntryType],TJSArray) as TPerformanceEntryListDynArray;
  112995. end;
  112996. function TJSPerformanceObserverEntryList.getEntriesByName(const aName: UnicodeString; const aEntryType: UnicodeString): TPerformanceEntryListDynArray;
  112997. begin
  112998. Result:=InvokeJSObjectResult('getEntriesByName',[aName,aEntryType],TJSArray) as TPerformanceEntryListDynArray;
  112999. end;
  113000. function TJSPerformanceObserverEntryList.getEntriesByName(const aName: UnicodeString): TPerformanceEntryListDynArray;
  113001. begin
  113002. Result:=InvokeJSObjectResult('getEntriesByName',[aName],TJSArray) as TPerformanceEntryListDynArray;
  113003. end;
  113004. class function TJSPerformanceObserverEntryList.JSClassName: UnicodeString;
  113005. begin
  113006. Result:='PerformanceObserverEntryList';
  113007. end;
  113008. class function TJSPerformanceObserverEntryList.Cast(const Intf: IJSObject): IJSPerformanceObserverEntryList;
  113009. begin
  113010. Result:=TJSPerformanceObserverEntryList.JOBCast(Intf);
  113011. end;
  113012. class function TJSPerformancePaintTiming.JSClassName: UnicodeString;
  113013. begin
  113014. Result:='PerformancePaintTiming';
  113015. end;
  113016. class function TJSPerformancePaintTiming.Cast(const Intf: IJSObject): IJSPerformancePaintTiming;
  113017. begin
  113018. Result:=TJSPerformancePaintTiming.JOBCast(Intf);
  113019. end;
  113020. function TJSPerformanceResourceTiming._GetinitiatorType: UnicodeString;
  113021. begin
  113022. Result:=ReadJSPropertyUnicodeString('initiatorType');
  113023. end;
  113024. function TJSPerformanceResourceTiming._GetnextHopProtocol: UnicodeString;
  113025. begin
  113026. Result:=ReadJSPropertyUnicodeString('nextHopProtocol');
  113027. end;
  113028. function TJSPerformanceResourceTiming._GetworkerStart: TDOMHighResTimeStamp;
  113029. begin
  113030. Result:=ReadJSPropertyDouble('workerStart');
  113031. end;
  113032. function TJSPerformanceResourceTiming._GetredirectStart: TDOMHighResTimeStamp;
  113033. begin
  113034. Result:=ReadJSPropertyDouble('redirectStart');
  113035. end;
  113036. function TJSPerformanceResourceTiming._GetredirectEnd: TDOMHighResTimeStamp;
  113037. begin
  113038. Result:=ReadJSPropertyDouble('redirectEnd');
  113039. end;
  113040. function TJSPerformanceResourceTiming._GetfetchStart: TDOMHighResTimeStamp;
  113041. begin
  113042. Result:=ReadJSPropertyDouble('fetchStart');
  113043. end;
  113044. function TJSPerformanceResourceTiming._GetdomainLookupStart: TDOMHighResTimeStamp;
  113045. begin
  113046. Result:=ReadJSPropertyDouble('domainLookupStart');
  113047. end;
  113048. function TJSPerformanceResourceTiming._GetdomainLookupEnd: TDOMHighResTimeStamp;
  113049. begin
  113050. Result:=ReadJSPropertyDouble('domainLookupEnd');
  113051. end;
  113052. function TJSPerformanceResourceTiming._GetconnectStart: TDOMHighResTimeStamp;
  113053. begin
  113054. Result:=ReadJSPropertyDouble('connectStart');
  113055. end;
  113056. function TJSPerformanceResourceTiming._GetconnectEnd: TDOMHighResTimeStamp;
  113057. begin
  113058. Result:=ReadJSPropertyDouble('connectEnd');
  113059. end;
  113060. function TJSPerformanceResourceTiming._GetsecureConnectionStart: TDOMHighResTimeStamp;
  113061. begin
  113062. Result:=ReadJSPropertyDouble('secureConnectionStart');
  113063. end;
  113064. function TJSPerformanceResourceTiming._GetrequestStart: TDOMHighResTimeStamp;
  113065. begin
  113066. Result:=ReadJSPropertyDouble('requestStart');
  113067. end;
  113068. function TJSPerformanceResourceTiming._GetresponseStart: TDOMHighResTimeStamp;
  113069. begin
  113070. Result:=ReadJSPropertyDouble('responseStart');
  113071. end;
  113072. function TJSPerformanceResourceTiming._GetresponseEnd: TDOMHighResTimeStamp;
  113073. begin
  113074. Result:=ReadJSPropertyDouble('responseEnd');
  113075. end;
  113076. function TJSPerformanceResourceTiming._GettransferSize: QWord;
  113077. begin
  113078. Result:=ReadJSPropertyInt64('transferSize');
  113079. end;
  113080. function TJSPerformanceResourceTiming._GetencodedBodySize: QWord;
  113081. begin
  113082. Result:=ReadJSPropertyInt64('encodedBodySize');
  113083. end;
  113084. function TJSPerformanceResourceTiming._GetdecodedBodySize: QWord;
  113085. begin
  113086. Result:=ReadJSPropertyInt64('decodedBodySize');
  113087. end;
  113088. function TJSPerformanceResourceTiming._GetserverTiming: TJSPerformanceServerTimingDynArray;
  113089. begin
  113090. Result:=ReadJSPropertyObject('serverTiming',TJSArray) as TJSPerformanceServerTimingDynArray;
  113091. end;
  113092. function TJSPerformanceResourceTiming.toJSON: IJSObject;
  113093. begin
  113094. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  113095. end;
  113096. class function TJSPerformanceResourceTiming.JSClassName: UnicodeString;
  113097. begin
  113098. Result:='PerformanceResourceTiming';
  113099. end;
  113100. class function TJSPerformanceResourceTiming.Cast(const Intf: IJSObject): IJSPerformanceResourceTiming;
  113101. begin
  113102. Result:=TJSPerformanceResourceTiming.JOBCast(Intf);
  113103. end;
  113104. function TJSPerformanceServerTiming._Getname: UnicodeString;
  113105. begin
  113106. Result:=ReadJSPropertyUnicodeString('name');
  113107. end;
  113108. function TJSPerformanceServerTiming._Getduration: TDOMHighResTimeStamp;
  113109. begin
  113110. Result:=ReadJSPropertyDouble('duration');
  113111. end;
  113112. function TJSPerformanceServerTiming._Getdescription: UnicodeString;
  113113. begin
  113114. Result:=ReadJSPropertyUnicodeString('description');
  113115. end;
  113116. function TJSPerformanceServerTiming.toJSON: IJSObject;
  113117. begin
  113118. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  113119. end;
  113120. class function TJSPerformanceServerTiming.JSClassName: UnicodeString;
  113121. begin
  113122. Result:='PerformanceServerTiming';
  113123. end;
  113124. class function TJSPerformanceServerTiming.Cast(const Intf: IJSObject): IJSPerformanceServerTiming;
  113125. begin
  113126. Result:=TJSPerformanceServerTiming.JOBCast(Intf);
  113127. end;
  113128. function TJSPerformanceTiming._GetnavigationStart: QWord;
  113129. begin
  113130. Result:=ReadJSPropertyInt64('navigationStart');
  113131. end;
  113132. function TJSPerformanceTiming._GetunloadEventStart: QWord;
  113133. begin
  113134. Result:=ReadJSPropertyInt64('unloadEventStart');
  113135. end;
  113136. function TJSPerformanceTiming._GetunloadEventEnd: QWord;
  113137. begin
  113138. Result:=ReadJSPropertyInt64('unloadEventEnd');
  113139. end;
  113140. function TJSPerformanceTiming._GetredirectStart: QWord;
  113141. begin
  113142. Result:=ReadJSPropertyInt64('redirectStart');
  113143. end;
  113144. function TJSPerformanceTiming._GetredirectEnd: QWord;
  113145. begin
  113146. Result:=ReadJSPropertyInt64('redirectEnd');
  113147. end;
  113148. function TJSPerformanceTiming._GetfetchStart: QWord;
  113149. begin
  113150. Result:=ReadJSPropertyInt64('fetchStart');
  113151. end;
  113152. function TJSPerformanceTiming._GetdomainLookupStart: QWord;
  113153. begin
  113154. Result:=ReadJSPropertyInt64('domainLookupStart');
  113155. end;
  113156. function TJSPerformanceTiming._GetdomainLookupEnd: QWord;
  113157. begin
  113158. Result:=ReadJSPropertyInt64('domainLookupEnd');
  113159. end;
  113160. function TJSPerformanceTiming._GetconnectStart: QWord;
  113161. begin
  113162. Result:=ReadJSPropertyInt64('connectStart');
  113163. end;
  113164. function TJSPerformanceTiming._GetconnectEnd: QWord;
  113165. begin
  113166. Result:=ReadJSPropertyInt64('connectEnd');
  113167. end;
  113168. function TJSPerformanceTiming._GetsecureConnectionStart: QWord;
  113169. begin
  113170. Result:=ReadJSPropertyInt64('secureConnectionStart');
  113171. end;
  113172. function TJSPerformanceTiming._GetrequestStart: QWord;
  113173. begin
  113174. Result:=ReadJSPropertyInt64('requestStart');
  113175. end;
  113176. function TJSPerformanceTiming._GetresponseStart: QWord;
  113177. begin
  113178. Result:=ReadJSPropertyInt64('responseStart');
  113179. end;
  113180. function TJSPerformanceTiming._GetresponseEnd: QWord;
  113181. begin
  113182. Result:=ReadJSPropertyInt64('responseEnd');
  113183. end;
  113184. function TJSPerformanceTiming._GetdomLoading: QWord;
  113185. begin
  113186. Result:=ReadJSPropertyInt64('domLoading');
  113187. end;
  113188. function TJSPerformanceTiming._GetdomInteractive: QWord;
  113189. begin
  113190. Result:=ReadJSPropertyInt64('domInteractive');
  113191. end;
  113192. function TJSPerformanceTiming._GetdomContentLoadedEventStart: QWord;
  113193. begin
  113194. Result:=ReadJSPropertyInt64('domContentLoadedEventStart');
  113195. end;
  113196. function TJSPerformanceTiming._GetdomContentLoadedEventEnd: QWord;
  113197. begin
  113198. Result:=ReadJSPropertyInt64('domContentLoadedEventEnd');
  113199. end;
  113200. function TJSPerformanceTiming._GetdomComplete: QWord;
  113201. begin
  113202. Result:=ReadJSPropertyInt64('domComplete');
  113203. end;
  113204. function TJSPerformanceTiming._GetloadEventStart: QWord;
  113205. begin
  113206. Result:=ReadJSPropertyInt64('loadEventStart');
  113207. end;
  113208. function TJSPerformanceTiming._GetloadEventEnd: QWord;
  113209. begin
  113210. Result:=ReadJSPropertyInt64('loadEventEnd');
  113211. end;
  113212. function TJSPerformanceTiming._GettimeToNonBlankPaint: QWord;
  113213. begin
  113214. Result:=ReadJSPropertyInt64('timeToNonBlankPaint');
  113215. end;
  113216. function TJSPerformanceTiming._GettimeToContentfulPaint: QWord;
  113217. begin
  113218. Result:=ReadJSPropertyInt64('timeToContentfulPaint');
  113219. end;
  113220. function TJSPerformanceTiming._GettimeToDOMContentFlushed: QWord;
  113221. begin
  113222. Result:=ReadJSPropertyInt64('timeToDOMContentFlushed');
  113223. end;
  113224. function TJSPerformanceTiming._GettimeToFirstInteractive: QWord;
  113225. begin
  113226. Result:=ReadJSPropertyInt64('timeToFirstInteractive');
  113227. end;
  113228. function TJSPerformanceTiming.toJSON: IJSObject;
  113229. begin
  113230. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  113231. end;
  113232. class function TJSPerformanceTiming.JSClassName: UnicodeString;
  113233. begin
  113234. Result:='PerformanceTiming';
  113235. end;
  113236. class function TJSPerformanceTiming.Cast(const Intf: IJSObject): IJSPerformanceTiming;
  113237. begin
  113238. Result:=TJSPerformanceTiming.JOBCast(Intf);
  113239. end;
  113240. function TJSPeriodicWaveConstraints._GetdisableNormalization: Boolean;
  113241. begin
  113242. Result:=ReadJSPropertyBoolean('disableNormalization');
  113243. end;
  113244. procedure TJSPeriodicWaveConstraints._SetdisableNormalization(const aValue : Boolean);
  113245. begin
  113246. WriteJSPropertyBoolean('disableNormalization',aValue);
  113247. end;
  113248. class function TJSPeriodicWaveConstraints.JSClassName: UnicodeString;
  113249. begin
  113250. Result:='Object';
  113251. end;
  113252. class function TJSPeriodicWaveConstraints.Cast(const Intf: IJSObject): IJSPeriodicWaveConstraints;
  113253. begin
  113254. Result:=TJSPeriodicWaveConstraints.JOBCast(Intf);
  113255. end;
  113256. function TJSPeriodicWaveOptions._Getreal: TSingleDynArray;
  113257. begin
  113258. Result:=ReadJSPropertyObject('real',TJSArray) as TSingleDynArray;
  113259. end;
  113260. function TJSPeriodicWaveOptions._Getimag: TSingleDynArray;
  113261. begin
  113262. Result:=ReadJSPropertyObject('imag',TJSArray) as TSingleDynArray;
  113263. end;
  113264. procedure TJSPeriodicWaveOptions._Setreal(const aValue : TSingleDynArray);
  113265. begin
  113266. WriteJSPropertyObject('real',aValue);
  113267. end;
  113268. procedure TJSPeriodicWaveOptions._Setimag(const aValue : TSingleDynArray);
  113269. begin
  113270. WriteJSPropertyObject('imag',aValue);
  113271. end;
  113272. class function TJSPeriodicWaveOptions.JSClassName: UnicodeString;
  113273. begin
  113274. Result:='Object';
  113275. end;
  113276. class function TJSPeriodicWaveOptions.Cast(const Intf: IJSObject): IJSPeriodicWaveOptions;
  113277. begin
  113278. Result:=TJSPeriodicWaveOptions.JOBCast(Intf);
  113279. end;
  113280. constructor TJSPeriodicWave.Create(aContext: IJSBaseAudioContext; const aOptions: TJSPeriodicWaveOptions);
  113281. begin
  113282. JOBCreate([aContext,aOptions]);
  113283. end;
  113284. constructor TJSPeriodicWave.Create(aContext: IJSBaseAudioContext);
  113285. begin
  113286. JOBCreate([aContext]);
  113287. end;
  113288. class function TJSPeriodicWave.JSClassName: UnicodeString;
  113289. begin
  113290. Result:='PeriodicWave';
  113291. end;
  113292. class function TJSPeriodicWave.Cast(const Intf: IJSObject): IJSPeriodicWave;
  113293. begin
  113294. Result:=TJSPeriodicWave.JOBCast(Intf);
  113295. end;
  113296. function TJSPermissionDescriptor._Getname: TPermissionName;
  113297. begin
  113298. Result:=ReadJSPropertyUnicodeString('name');
  113299. end;
  113300. procedure TJSPermissionDescriptor._Setname(const aValue : TPermissionName);
  113301. begin
  113302. WriteJSPropertyUnicodeString('name',aValue);
  113303. end;
  113304. class function TJSPermissionDescriptor.JSClassName: UnicodeString;
  113305. begin
  113306. Result:='Object';
  113307. end;
  113308. class function TJSPermissionDescriptor.Cast(const Intf: IJSObject): IJSPermissionDescriptor;
  113309. begin
  113310. Result:=TJSPermissionDescriptor.JOBCast(Intf);
  113311. end;
  113312. function TJSMidiPermissionDescriptor._Getsysex: Boolean;
  113313. begin
  113314. Result:=ReadJSPropertyBoolean('sysex');
  113315. end;
  113316. procedure TJSMidiPermissionDescriptor._Setsysex(const aValue : Boolean);
  113317. begin
  113318. WriteJSPropertyBoolean('sysex',aValue);
  113319. end;
  113320. class function TJSMidiPermissionDescriptor.JSClassName: UnicodeString;
  113321. begin
  113322. Result:='Object';
  113323. end;
  113324. class function TJSMidiPermissionDescriptor.Cast(const Intf: IJSObject): IJSMidiPermissionDescriptor;
  113325. begin
  113326. Result:=TJSMidiPermissionDescriptor.JOBCast(Intf);
  113327. end;
  113328. function TJSPermissions.query(aPermission: IJSObject): IJSPromise; // Promise<PermissionStatus>
  113329. begin
  113330. Result:=InvokeJSObjectResult('query',[aPermission],TJSPromise) as IJSPromise;
  113331. end;
  113332. class function TJSPermissions.JSClassName: UnicodeString;
  113333. begin
  113334. Result:='Permissions';
  113335. end;
  113336. class function TJSPermissions.Cast(const Intf: IJSObject): IJSPermissions;
  113337. begin
  113338. Result:=TJSPermissions.JOBCast(Intf);
  113339. end;
  113340. function TJSPermissionStatus._Getname: TPermissionName;
  113341. begin
  113342. Result:=ReadJSPropertyUnicodeString('name');
  113343. end;
  113344. function TJSPermissionStatus._Getstate: TPermissionState;
  113345. begin
  113346. Result:=ReadJSPropertyUnicodeString('state');
  113347. end;
  113348. function TJSPermissionStatus._Getonchange: TEventHandler;
  113349. begin
  113350. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  113351. end;
  113352. procedure TJSPermissionStatus._Setonchange(const aValue : TEventHandler);
  113353. begin
  113354. WriteJSPropertyMethod('onchange',TMethod(aValue));
  113355. end;
  113356. class function TJSPermissionStatus.JSClassName: UnicodeString;
  113357. begin
  113358. Result:='PermissionStatus';
  113359. end;
  113360. class function TJSPermissionStatus.Cast(const Intf: IJSObject): IJSPermissionStatus;
  113361. begin
  113362. Result:=TJSPermissionStatus.JOBCast(Intf);
  113363. end;
  113364. function TJSPlugin._Getdescription: UnicodeString;
  113365. begin
  113366. Result:=ReadJSPropertyUnicodeString('description');
  113367. end;
  113368. function TJSPlugin._Getfilename: UnicodeString;
  113369. begin
  113370. Result:=ReadJSPropertyUnicodeString('filename');
  113371. end;
  113372. function TJSPlugin._Getname: UnicodeString;
  113373. begin
  113374. Result:=ReadJSPropertyUnicodeString('name');
  113375. end;
  113376. function TJSPlugin._Getlength_: Cardinal;
  113377. begin
  113378. Result:=ReadJSPropertyInt64('length');
  113379. end;
  113380. function TJSPlugin.item(aIndex: Cardinal): IJSMimeType;
  113381. begin
  113382. Result:=InvokeJSObjectResult('item',[aIndex],TJSMimeType) as IJSMimeType;
  113383. end;
  113384. function TJSPlugin.namedItem(const aName: UnicodeString): IJSMimeType;
  113385. begin
  113386. Result:=InvokeJSObjectResult('namedItem',[aName],TJSMimeType) as IJSMimeType;
  113387. end;
  113388. class function TJSPlugin.JSClassName: UnicodeString;
  113389. begin
  113390. Result:='Plugin';
  113391. end;
  113392. class function TJSPlugin.Cast(const Intf: IJSObject): IJSPlugin;
  113393. begin
  113394. Result:=TJSPlugin.JOBCast(Intf);
  113395. end;
  113396. function TJSPluginArray._Getlength_: Cardinal;
  113397. begin
  113398. Result:=ReadJSPropertyInt64('length');
  113399. end;
  113400. procedure TJSPluginArray.refresh;
  113401. begin
  113402. InvokeJSNoResult('refresh',[]);
  113403. end;
  113404. function TJSPluginArray.item(aIndex: Cardinal): IJSPlugin;
  113405. begin
  113406. Result:=InvokeJSObjectResult('item',[aIndex],TJSPlugin) as IJSPlugin;
  113407. end;
  113408. function TJSPluginArray.namedItem(const aName: UnicodeString): IJSPlugin;
  113409. begin
  113410. Result:=InvokeJSObjectResult('namedItem',[aName],TJSPlugin) as IJSPlugin;
  113411. end;
  113412. class function TJSPluginArray.JSClassName: UnicodeString;
  113413. begin
  113414. Result:='PluginArray';
  113415. end;
  113416. class function TJSPluginArray.Cast(const Intf: IJSObject): IJSPluginArray;
  113417. begin
  113418. Result:=TJSPluginArray.JOBCast(Intf);
  113419. end;
  113420. function TJSPointerEvent._GetpointerId: LongInt;
  113421. begin
  113422. Result:=ReadJSPropertyLongInt('pointerId');
  113423. end;
  113424. function TJSPointerEvent._Getwidth: LongInt;
  113425. begin
  113426. Result:=ReadJSPropertyLongInt('width');
  113427. end;
  113428. function TJSPointerEvent._Getheight: LongInt;
  113429. begin
  113430. Result:=ReadJSPropertyLongInt('height');
  113431. end;
  113432. function TJSPointerEvent._Getpressure: Single;
  113433. begin
  113434. Result:=ReadJSPropertyDouble('pressure');
  113435. end;
  113436. function TJSPointerEvent._GettangentialPressure: Single;
  113437. begin
  113438. Result:=ReadJSPropertyDouble('tangentialPressure');
  113439. end;
  113440. function TJSPointerEvent._GettiltX: LongInt;
  113441. begin
  113442. Result:=ReadJSPropertyLongInt('tiltX');
  113443. end;
  113444. function TJSPointerEvent._GettiltY: LongInt;
  113445. begin
  113446. Result:=ReadJSPropertyLongInt('tiltY');
  113447. end;
  113448. function TJSPointerEvent._Gettwist: LongInt;
  113449. begin
  113450. Result:=ReadJSPropertyLongInt('twist');
  113451. end;
  113452. function TJSPointerEvent._GetpointerType: UnicodeString;
  113453. begin
  113454. Result:=ReadJSPropertyUnicodeString('pointerType');
  113455. end;
  113456. function TJSPointerEvent._GetisPrimary: Boolean;
  113457. begin
  113458. Result:=ReadJSPropertyBoolean('isPrimary');
  113459. end;
  113460. constructor TJSPointerEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSPointerEventInit);
  113461. begin
  113462. JOBCreate([aType_,aEventInitDict]);
  113463. end;
  113464. constructor TJSPointerEvent.Create(const aType_: UnicodeString);
  113465. begin
  113466. JOBCreate([aType_]);
  113467. end;
  113468. function TJSPointerEvent.getCoalescedEvents: TJSPointerEventDynArray;
  113469. begin
  113470. Result:=InvokeJSObjectResult('getCoalescedEvents',[],TJSArray) as TJSPointerEventDynArray;
  113471. end;
  113472. function TJSPointerEvent.getPredictedEvents: TJSPointerEventDynArray;
  113473. begin
  113474. Result:=InvokeJSObjectResult('getPredictedEvents',[],TJSArray) as TJSPointerEventDynArray;
  113475. end;
  113476. class function TJSPointerEvent.JSClassName: UnicodeString;
  113477. begin
  113478. Result:='PointerEvent';
  113479. end;
  113480. class function TJSPointerEvent.Cast(const Intf: IJSObject): IJSPointerEvent;
  113481. begin
  113482. Result:=TJSPointerEvent.JOBCast(Intf);
  113483. end;
  113484. function TJSPointerEventInit._GetpointerId: LongInt;
  113485. begin
  113486. Result:=ReadJSPropertyLongInt('pointerId');
  113487. end;
  113488. function TJSPointerEventInit._Getwidth: LongInt;
  113489. begin
  113490. Result:=ReadJSPropertyLongInt('width');
  113491. end;
  113492. function TJSPointerEventInit._Getheight: LongInt;
  113493. begin
  113494. Result:=ReadJSPropertyLongInt('height');
  113495. end;
  113496. function TJSPointerEventInit._Getpressure: Single;
  113497. begin
  113498. Result:=ReadJSPropertyDouble('pressure');
  113499. end;
  113500. function TJSPointerEventInit._GettangentialPressure: Single;
  113501. begin
  113502. Result:=ReadJSPropertyDouble('tangentialPressure');
  113503. end;
  113504. function TJSPointerEventInit._GettiltX: LongInt;
  113505. begin
  113506. Result:=ReadJSPropertyLongInt('tiltX');
  113507. end;
  113508. function TJSPointerEventInit._GettiltY: LongInt;
  113509. begin
  113510. Result:=ReadJSPropertyLongInt('tiltY');
  113511. end;
  113512. function TJSPointerEventInit._Gettwist: LongInt;
  113513. begin
  113514. Result:=ReadJSPropertyLongInt('twist');
  113515. end;
  113516. function TJSPointerEventInit._GetpointerType: UnicodeString;
  113517. begin
  113518. Result:=ReadJSPropertyUnicodeString('pointerType');
  113519. end;
  113520. function TJSPointerEventInit._GetisPrimary: Boolean;
  113521. begin
  113522. Result:=ReadJSPropertyBoolean('isPrimary');
  113523. end;
  113524. function TJSPointerEventInit._GetcoalescedEvents: TJSPointerEventDynArray;
  113525. begin
  113526. Result:=ReadJSPropertyObject('coalescedEvents',TJSArray) as TJSPointerEventDynArray;
  113527. end;
  113528. function TJSPointerEventInit._GetpredictedEvents: TJSPointerEventDynArray;
  113529. begin
  113530. Result:=ReadJSPropertyObject('predictedEvents',TJSArray) as TJSPointerEventDynArray;
  113531. end;
  113532. procedure TJSPointerEventInit._SetpointerId(const aValue : LongInt);
  113533. begin
  113534. WriteJSPropertyLongInt('pointerId',aValue);
  113535. end;
  113536. procedure TJSPointerEventInit._Setwidth(const aValue : LongInt);
  113537. begin
  113538. WriteJSPropertyLongInt('width',aValue);
  113539. end;
  113540. procedure TJSPointerEventInit._Setheight(const aValue : LongInt);
  113541. begin
  113542. WriteJSPropertyLongInt('height',aValue);
  113543. end;
  113544. procedure TJSPointerEventInit._Setpressure(const aValue : Single);
  113545. begin
  113546. WriteJSPropertyDouble('pressure',aValue);
  113547. end;
  113548. procedure TJSPointerEventInit._SettangentialPressure(const aValue : Single);
  113549. begin
  113550. WriteJSPropertyDouble('tangentialPressure',aValue);
  113551. end;
  113552. procedure TJSPointerEventInit._SettiltX(const aValue : LongInt);
  113553. begin
  113554. WriteJSPropertyLongInt('tiltX',aValue);
  113555. end;
  113556. procedure TJSPointerEventInit._SettiltY(const aValue : LongInt);
  113557. begin
  113558. WriteJSPropertyLongInt('tiltY',aValue);
  113559. end;
  113560. procedure TJSPointerEventInit._Settwist(const aValue : LongInt);
  113561. begin
  113562. WriteJSPropertyLongInt('twist',aValue);
  113563. end;
  113564. procedure TJSPointerEventInit._SetpointerType(const aValue : UnicodeString);
  113565. begin
  113566. WriteJSPropertyUnicodeString('pointerType',aValue);
  113567. end;
  113568. procedure TJSPointerEventInit._SetisPrimary(const aValue : Boolean);
  113569. begin
  113570. WriteJSPropertyBoolean('isPrimary',aValue);
  113571. end;
  113572. procedure TJSPointerEventInit._SetcoalescedEvents(const aValue : TJSPointerEventDynArray);
  113573. begin
  113574. WriteJSPropertyObject('coalescedEvents',aValue);
  113575. end;
  113576. procedure TJSPointerEventInit._SetpredictedEvents(const aValue : TJSPointerEventDynArray);
  113577. begin
  113578. WriteJSPropertyObject('predictedEvents',aValue);
  113579. end;
  113580. class function TJSPointerEventInit.JSClassName: UnicodeString;
  113581. begin
  113582. Result:='Object';
  113583. end;
  113584. class function TJSPointerEventInit.Cast(const Intf: IJSObject): IJSPointerEventInit;
  113585. begin
  113586. Result:=TJSPointerEventInit.JOBCast(Intf);
  113587. end;
  113588. function TJSPopoverInvokerElement._GetpopoverTargetElement: IJSElement;
  113589. begin
  113590. Result:=ReadJSPropertyObject('popoverTargetElement',TJSElement) as IJSElement;
  113591. end;
  113592. function TJSPopoverInvokerElement._GetpopoverTargetAction: UnicodeString;
  113593. begin
  113594. Result:=ReadJSPropertyUnicodeString('popoverTargetAction');
  113595. end;
  113596. procedure TJSPopoverInvokerElement._SetpopoverTargetElement(const aValue : IJSElement);
  113597. begin
  113598. WriteJSPropertyObject('popoverTargetElement',aValue);
  113599. end;
  113600. procedure TJSPopoverInvokerElement._SetpopoverTargetAction(const aValue : UnicodeString);
  113601. begin
  113602. WriteJSPropertyUnicodeString('popoverTargetAction',aValue);
  113603. end;
  113604. class function TJSPopoverInvokerElement.JSClassName: UnicodeString;
  113605. begin
  113606. Result:='PopoverInvokerElement';
  113607. end;
  113608. class function TJSPopoverInvokerElement.Cast(const Intf: IJSObject): IJSPopoverInvokerElement;
  113609. begin
  113610. Result:=TJSPopoverInvokerElement.JOBCast(Intf);
  113611. end;
  113612. function TJSPopStateEvent._Getstate: Variant;
  113613. begin
  113614. Result:=ReadJSPropertyVariant('state');
  113615. end;
  113616. constructor TJSPopStateEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSPopStateEventInit);
  113617. begin
  113618. JOBCreate([aType_,aEventInitDict]);
  113619. end;
  113620. constructor TJSPopStateEvent.Create(const aType_: UnicodeString);
  113621. begin
  113622. JOBCreate([aType_]);
  113623. end;
  113624. class function TJSPopStateEvent.JSClassName: UnicodeString;
  113625. begin
  113626. Result:='PopStateEvent';
  113627. end;
  113628. class function TJSPopStateEvent.Cast(const Intf: IJSObject): IJSPopStateEvent;
  113629. begin
  113630. Result:=TJSPopStateEvent.JOBCast(Intf);
  113631. end;
  113632. function TJSPopStateEventInit._Getstate: Variant;
  113633. begin
  113634. Result:=ReadJSPropertyVariant('state');
  113635. end;
  113636. procedure TJSPopStateEventInit._Setstate(const aValue : Variant);
  113637. begin
  113638. WriteJSPropertyVariant('state',aValue);
  113639. end;
  113640. class function TJSPopStateEventInit.JSClassName: UnicodeString;
  113641. begin
  113642. Result:='Object';
  113643. end;
  113644. class function TJSPopStateEventInit.Cast(const Intf: IJSObject): IJSPopStateEventInit;
  113645. begin
  113646. Result:=TJSPopStateEventInit.JOBCast(Intf);
  113647. end;
  113648. function TJSPopupBlockedEvent._GetrequestingWindow: IJSWindow;
  113649. begin
  113650. Result:=ReadJSPropertyObject('requestingWindow',TJSWindow) as IJSWindow;
  113651. end;
  113652. function TJSPopupBlockedEvent._GetpopupWindowURI: IJSURI;
  113653. begin
  113654. Result:=ReadJSPropertyObject('popupWindowURI',TJSURI) as IJSURI;
  113655. end;
  113656. function TJSPopupBlockedEvent._GetpopupWindowName: UnicodeString;
  113657. begin
  113658. Result:=ReadJSPropertyUnicodeString('popupWindowName');
  113659. end;
  113660. function TJSPopupBlockedEvent._GetpopupWindowFeatures: UnicodeString;
  113661. begin
  113662. Result:=ReadJSPropertyUnicodeString('popupWindowFeatures');
  113663. end;
  113664. constructor TJSPopupBlockedEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSPopupBlockedEventInit);
  113665. begin
  113666. JOBCreate([aType_,aEventInitDict]);
  113667. end;
  113668. constructor TJSPopupBlockedEvent.Create(const aType_: UnicodeString);
  113669. begin
  113670. JOBCreate([aType_]);
  113671. end;
  113672. class function TJSPopupBlockedEvent.JSClassName: UnicodeString;
  113673. begin
  113674. Result:='PopupBlockedEvent';
  113675. end;
  113676. class function TJSPopupBlockedEvent.Cast(const Intf: IJSObject): IJSPopupBlockedEvent;
  113677. begin
  113678. Result:=TJSPopupBlockedEvent.JOBCast(Intf);
  113679. end;
  113680. function TJSPopupBlockedEventInit._GetrequestingWindow: IJSWindow;
  113681. begin
  113682. Result:=ReadJSPropertyObject('requestingWindow',TJSWindow) as IJSWindow;
  113683. end;
  113684. function TJSPopupBlockedEventInit._GetpopupWindowURI: IJSURI;
  113685. begin
  113686. Result:=ReadJSPropertyObject('popupWindowURI',TJSURI) as IJSURI;
  113687. end;
  113688. function TJSPopupBlockedEventInit._GetpopupWindowName: UnicodeString;
  113689. begin
  113690. Result:=ReadJSPropertyUnicodeString('popupWindowName');
  113691. end;
  113692. function TJSPopupBlockedEventInit._GetpopupWindowFeatures: UnicodeString;
  113693. begin
  113694. Result:=ReadJSPropertyUnicodeString('popupWindowFeatures');
  113695. end;
  113696. procedure TJSPopupBlockedEventInit._SetrequestingWindow(const aValue : IJSWindow);
  113697. begin
  113698. WriteJSPropertyObject('requestingWindow',aValue);
  113699. end;
  113700. procedure TJSPopupBlockedEventInit._SetpopupWindowURI(const aValue : IJSURI);
  113701. begin
  113702. WriteJSPropertyObject('popupWindowURI',aValue);
  113703. end;
  113704. procedure TJSPopupBlockedEventInit._SetpopupWindowName(const aValue : UnicodeString);
  113705. begin
  113706. WriteJSPropertyUnicodeString('popupWindowName',aValue);
  113707. end;
  113708. procedure TJSPopupBlockedEventInit._SetpopupWindowFeatures(const aValue : UnicodeString);
  113709. begin
  113710. WriteJSPropertyUnicodeString('popupWindowFeatures',aValue);
  113711. end;
  113712. class function TJSPopupBlockedEventInit.JSClassName: UnicodeString;
  113713. begin
  113714. Result:='Object';
  113715. end;
  113716. class function TJSPopupBlockedEventInit.Cast(const Intf: IJSObject): IJSPopupBlockedEventInit;
  113717. begin
  113718. Result:=TJSPopupBlockedEventInit.JOBCast(Intf);
  113719. end;
  113720. function TJSPositionStateEventInit._Getduration: Double;
  113721. begin
  113722. Result:=ReadJSPropertyDouble('duration');
  113723. end;
  113724. function TJSPositionStateEventInit._GetplaybackRate: Double;
  113725. begin
  113726. Result:=ReadJSPropertyDouble('playbackRate');
  113727. end;
  113728. function TJSPositionStateEventInit._Getposition: Double;
  113729. begin
  113730. Result:=ReadJSPropertyDouble('position');
  113731. end;
  113732. procedure TJSPositionStateEventInit._Setduration(const aValue : Double);
  113733. begin
  113734. WriteJSPropertyDouble('duration',aValue);
  113735. end;
  113736. procedure TJSPositionStateEventInit._SetplaybackRate(const aValue : Double);
  113737. begin
  113738. WriteJSPropertyDouble('playbackRate',aValue);
  113739. end;
  113740. procedure TJSPositionStateEventInit._Setposition(const aValue : Double);
  113741. begin
  113742. WriteJSPropertyDouble('position',aValue);
  113743. end;
  113744. class function TJSPositionStateEventInit.JSClassName: UnicodeString;
  113745. begin
  113746. Result:='Object';
  113747. end;
  113748. class function TJSPositionStateEventInit.Cast(const Intf: IJSObject): IJSPositionStateEventInit;
  113749. begin
  113750. Result:=TJSPositionStateEventInit.JOBCast(Intf);
  113751. end;
  113752. function TJSProcessingInstruction._Gettarget: UnicodeString;
  113753. begin
  113754. Result:=ReadJSPropertyUnicodeString('target');
  113755. end;
  113756. function TJSProcessingInstruction._Getsheet: IJSStyleSheet;
  113757. begin
  113758. Result:=ReadJSPropertyObject('sheet',TJSStyleSheet) as IJSStyleSheet;
  113759. end;
  113760. class function TJSProcessingInstruction.JSClassName: UnicodeString;
  113761. begin
  113762. Result:='ProcessingInstruction';
  113763. end;
  113764. class function TJSProcessingInstruction.Cast(const Intf: IJSObject): IJSProcessingInstruction;
  113765. begin
  113766. Result:=TJSProcessingInstruction.JOBCast(Intf);
  113767. end;
  113768. function TJSProgressEvent._GetlengthComputable: Boolean;
  113769. begin
  113770. Result:=ReadJSPropertyBoolean('lengthComputable');
  113771. end;
  113772. function TJSProgressEvent._Getloaded: QWord;
  113773. begin
  113774. Result:=ReadJSPropertyInt64('loaded');
  113775. end;
  113776. function TJSProgressEvent._Gettotal: QWord;
  113777. begin
  113778. Result:=ReadJSPropertyInt64('total');
  113779. end;
  113780. constructor TJSProgressEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSProgressEventInit);
  113781. begin
  113782. JOBCreate([aType_,aEventInitDict]);
  113783. end;
  113784. constructor TJSProgressEvent.Create(const aType_: UnicodeString);
  113785. begin
  113786. JOBCreate([aType_]);
  113787. end;
  113788. class function TJSProgressEvent.JSClassName: UnicodeString;
  113789. begin
  113790. Result:='ProgressEvent';
  113791. end;
  113792. class function TJSProgressEvent.Cast(const Intf: IJSObject): IJSProgressEvent;
  113793. begin
  113794. Result:=TJSProgressEvent.JOBCast(Intf);
  113795. end;
  113796. function TJSProgressEventInit._GetlengthComputable: Boolean;
  113797. begin
  113798. Result:=ReadJSPropertyBoolean('lengthComputable');
  113799. end;
  113800. function TJSProgressEventInit._Getloaded: QWord;
  113801. begin
  113802. Result:=ReadJSPropertyInt64('loaded');
  113803. end;
  113804. function TJSProgressEventInit._Gettotal: QWord;
  113805. begin
  113806. Result:=ReadJSPropertyInt64('total');
  113807. end;
  113808. procedure TJSProgressEventInit._SetlengthComputable(const aValue : Boolean);
  113809. begin
  113810. WriteJSPropertyBoolean('lengthComputable',aValue);
  113811. end;
  113812. procedure TJSProgressEventInit._Setloaded(const aValue : QWord);
  113813. begin
  113814. WriteJSPropertyDouble('loaded',aValue);
  113815. end;
  113816. procedure TJSProgressEventInit._Settotal(const aValue : QWord);
  113817. begin
  113818. WriteJSPropertyDouble('total',aValue);
  113819. end;
  113820. class function TJSProgressEventInit.JSClassName: UnicodeString;
  113821. begin
  113822. Result:='Object';
  113823. end;
  113824. class function TJSProgressEventInit.Cast(const Intf: IJSObject): IJSProgressEventInit;
  113825. begin
  113826. Result:=TJSProgressEventInit.JOBCast(Intf);
  113827. end;
  113828. class function TJSPromiseNativeHandler.JSClassName: UnicodeString;
  113829. begin
  113830. Result:='PromiseNativeHandler';
  113831. end;
  113832. class function TJSPromiseNativeHandler.Cast(const Intf: IJSObject): IJSPromiseNativeHandler;
  113833. begin
  113834. Result:=TJSPromiseNativeHandler.JOBCast(Intf);
  113835. end;
  113836. function TJSPromiseRejectionEvent._Getpromise: IJSPromise;
  113837. begin
  113838. Result:=ReadJSPropertyObject('promise',TJSPromise) as IJSPromise;
  113839. end;
  113840. function TJSPromiseRejectionEvent._Getreason: Variant;
  113841. begin
  113842. Result:=ReadJSPropertyVariant('reason');
  113843. end;
  113844. constructor TJSPromiseRejectionEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSPromiseRejectionEventInit);
  113845. begin
  113846. JOBCreate([aType_,aEventInitDict]);
  113847. end;
  113848. class function TJSPromiseRejectionEvent.JSClassName: UnicodeString;
  113849. begin
  113850. Result:='PromiseRejectionEvent';
  113851. end;
  113852. class function TJSPromiseRejectionEvent.Cast(const Intf: IJSObject): IJSPromiseRejectionEvent;
  113853. begin
  113854. Result:=TJSPromiseRejectionEvent.JOBCast(Intf);
  113855. end;
  113856. function TJSPromiseRejectionEventInit._Getpromise: IJSPromise;
  113857. begin
  113858. Result:=ReadJSPropertyObject('promise',TJSPromise) as IJSPromise;
  113859. end;
  113860. function TJSPromiseRejectionEventInit._Getreason: Variant;
  113861. begin
  113862. Result:=ReadJSPropertyVariant('reason');
  113863. end;
  113864. procedure TJSPromiseRejectionEventInit._Setpromise(const aValue : IJSPromise);
  113865. begin
  113866. WriteJSPropertyObject('promise',aValue);
  113867. end;
  113868. procedure TJSPromiseRejectionEventInit._Setreason(const aValue : Variant);
  113869. begin
  113870. WriteJSPropertyVariant('reason',aValue);
  113871. end;
  113872. class function TJSPromiseRejectionEventInit.JSClassName: UnicodeString;
  113873. begin
  113874. Result:='Object';
  113875. end;
  113876. class function TJSPromiseRejectionEventInit.Cast(const Intf: IJSObject): IJSPromiseRejectionEventInit;
  113877. begin
  113878. Result:=TJSPromiseRejectionEventInit.JOBCast(Intf);
  113879. end;
  113880. function TJSPushEvent._Getdata: IJSPushMessageData;
  113881. begin
  113882. Result:=ReadJSPropertyObject('data',TJSPushMessageData) as IJSPushMessageData;
  113883. end;
  113884. constructor TJSPushEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSPushEventInit);
  113885. begin
  113886. JOBCreate([aType_,aEventInitDict]);
  113887. end;
  113888. constructor TJSPushEvent.Create(const aType_: UnicodeString);
  113889. begin
  113890. JOBCreate([aType_]);
  113891. end;
  113892. class function TJSPushEvent.JSClassName: UnicodeString;
  113893. begin
  113894. Result:='PushEvent';
  113895. end;
  113896. class function TJSPushEvent.Cast(const Intf: IJSObject): IJSPushEvent;
  113897. begin
  113898. Result:=TJSPushEvent.JOBCast(Intf);
  113899. end;
  113900. function TJSPushEventInit._Getdata: TPushMessageDataInit;
  113901. begin
  113902. Result:=ReadJSPropertyVariant('data');
  113903. end;
  113904. procedure TJSPushEventInit._Setdata(const aValue : TPushMessageDataInit);
  113905. begin
  113906. WriteJSPropertyVariant('data',aValue);
  113907. end;
  113908. class function TJSPushEventInit.JSClassName: UnicodeString;
  113909. begin
  113910. Result:='Object';
  113911. end;
  113912. class function TJSPushEventInit.Cast(const Intf: IJSObject): IJSPushEventInit;
  113913. begin
  113914. Result:=TJSPushEventInit.JOBCast(Intf);
  113915. end;
  113916. function TJSPushSubscriptionOptionsInit._GetapplicationServerKey: TPushSubscriptionOptionsInit_applicationServerKey_Type;
  113917. begin
  113918. Result:=ReadJSPropertyVariant('applicationServerKey');
  113919. end;
  113920. procedure TJSPushSubscriptionOptionsInit._SetapplicationServerKey(const aValue : TPushSubscriptionOptionsInit_applicationServerKey_Type);
  113921. begin
  113922. WriteJSPropertyVariant('applicationServerKey',aValue);
  113923. end;
  113924. class function TJSPushSubscriptionOptionsInit.JSClassName: UnicodeString;
  113925. begin
  113926. Result:='Object';
  113927. end;
  113928. class function TJSPushSubscriptionOptionsInit.Cast(const Intf: IJSObject): IJSPushSubscriptionOptionsInit;
  113929. begin
  113930. Result:=TJSPushSubscriptionOptionsInit.JOBCast(Intf);
  113931. end;
  113932. function TJSPushManager.subscribe(const aOptions: TJSPushSubscriptionOptionsInit): IJSPromise; // Promise<PushSubscription>
  113933. begin
  113934. Result:=InvokeJSObjectResult('subscribe',[aOptions],TJSPromise) as IJSPromise;
  113935. end;
  113936. function TJSPushManager.subscribe: IJSPromise; // Promise<PushSubscription>
  113937. begin
  113938. Result:=InvokeJSObjectResult('subscribe',[],TJSPromise) as IJSPromise;
  113939. end;
  113940. function TJSPushManager.getSubscription: IJSPromise; // Promise<PushSubscription>
  113941. begin
  113942. Result:=InvokeJSObjectResult('getSubscription',[],TJSPromise) as IJSPromise;
  113943. end;
  113944. function TJSPushManager.permissionState(const aOptions: TJSPushSubscriptionOptionsInit): IJSPromise; // Promise<PermissionState>
  113945. begin
  113946. Result:=InvokeJSObjectResult('permissionState',[aOptions],TJSPromise) as IJSPromise;
  113947. end;
  113948. function TJSPushManager.permissionState: IJSPromise; // Promise<PermissionState>
  113949. begin
  113950. Result:=InvokeJSObjectResult('permissionState',[],TJSPromise) as IJSPromise;
  113951. end;
  113952. class function TJSPushManager.JSClassName: UnicodeString;
  113953. begin
  113954. Result:='PushManager';
  113955. end;
  113956. class function TJSPushManager.Cast(const Intf: IJSObject): IJSPushManager;
  113957. begin
  113958. Result:=TJSPushManager.JOBCast(Intf);
  113959. end;
  113960. function TJSPushMessageData.arrayBuffer: IJSArrayBuffer;
  113961. begin
  113962. Result:=InvokeJSObjectResult('arrayBuffer',[],TJSArray) as IJSArrayBuffer;
  113963. end;
  113964. function TJSPushMessageData.blob: IJSBlob;
  113965. begin
  113966. Result:=InvokeJSObjectResult('blob',[],TJSBlob) as IJSBlob;
  113967. end;
  113968. function TJSPushMessageData.json: Variant;
  113969. begin
  113970. Result:=InvokeJSVariantResult('json',[]);
  113971. end;
  113972. function TJSPushMessageData.text: UnicodeString;
  113973. begin
  113974. Result:=InvokeJSUnicodeStringResult('text',[]);
  113975. end;
  113976. class function TJSPushMessageData.JSClassName: UnicodeString;
  113977. begin
  113978. Result:='PushMessageData';
  113979. end;
  113980. class function TJSPushMessageData.Cast(const Intf: IJSObject): IJSPushMessageData;
  113981. begin
  113982. Result:=TJSPushMessageData.JOBCast(Intf);
  113983. end;
  113984. function TJSPushSubscriptionKeys._Getp256dh: UnicodeString;
  113985. begin
  113986. Result:=ReadJSPropertyUnicodeString('p256dh');
  113987. end;
  113988. function TJSPushSubscriptionKeys._Getauth: UnicodeString;
  113989. begin
  113990. Result:=ReadJSPropertyUnicodeString('auth');
  113991. end;
  113992. procedure TJSPushSubscriptionKeys._Setp256dh(const aValue : UnicodeString);
  113993. begin
  113994. WriteJSPropertyUnicodeString('p256dh',aValue);
  113995. end;
  113996. procedure TJSPushSubscriptionKeys._Setauth(const aValue : UnicodeString);
  113997. begin
  113998. WriteJSPropertyUnicodeString('auth',aValue);
  113999. end;
  114000. class function TJSPushSubscriptionKeys.JSClassName: UnicodeString;
  114001. begin
  114002. Result:='Object';
  114003. end;
  114004. class function TJSPushSubscriptionKeys.Cast(const Intf: IJSObject): IJSPushSubscriptionKeys;
  114005. begin
  114006. Result:=TJSPushSubscriptionKeys.JOBCast(Intf);
  114007. end;
  114008. function TJSPushSubscriptionJSON._Getendpoint: UnicodeString;
  114009. begin
  114010. Result:=ReadJSPropertyUnicodeString('endpoint');
  114011. end;
  114012. function TJSPushSubscriptionJSON._Getkeys: TJSPushSubscriptionKeys;
  114013. begin
  114014. Result:=ReadJSPropertyObject('keys',TJSPushSubscriptionKeys) as TJSPushSubscriptionKeys;
  114015. end;
  114016. function TJSPushSubscriptionJSON._GetexpirationTime: TEpochTimeStamp;
  114017. begin
  114018. Result:=ReadJSPropertyInt64('expirationTime');
  114019. end;
  114020. procedure TJSPushSubscriptionJSON._Setendpoint(const aValue : UnicodeString);
  114021. begin
  114022. WriteJSPropertyUnicodeString('endpoint',aValue);
  114023. end;
  114024. procedure TJSPushSubscriptionJSON._Setkeys(const aValue : TJSPushSubscriptionKeys);
  114025. begin
  114026. WriteJSPropertyObject('keys',aValue);
  114027. end;
  114028. procedure TJSPushSubscriptionJSON._SetexpirationTime(const aValue : TEpochTimeStamp);
  114029. begin
  114030. WriteJSPropertyDouble('expirationTime',aValue);
  114031. end;
  114032. class function TJSPushSubscriptionJSON.JSClassName: UnicodeString;
  114033. begin
  114034. Result:='Object';
  114035. end;
  114036. class function TJSPushSubscriptionJSON.Cast(const Intf: IJSObject): IJSPushSubscriptionJSON;
  114037. begin
  114038. Result:=TJSPushSubscriptionJSON.JOBCast(Intf);
  114039. end;
  114040. function TJSPushSubscriptionInit._Getendpoint: UnicodeString;
  114041. begin
  114042. Result:=ReadJSPropertyUnicodeString('endpoint');
  114043. end;
  114044. function TJSPushSubscriptionInit._Getscope: UnicodeString;
  114045. begin
  114046. Result:=ReadJSPropertyUnicodeString('scope');
  114047. end;
  114048. function TJSPushSubscriptionInit._Getp256dhKey: IJSArrayBuffer;
  114049. begin
  114050. Result:=ReadJSPropertyObject('p256dhKey',TJSArrayBuffer) as IJSArrayBuffer;
  114051. end;
  114052. function TJSPushSubscriptionInit._GetauthSecret: IJSArrayBuffer;
  114053. begin
  114054. Result:=ReadJSPropertyObject('authSecret',TJSArrayBuffer) as IJSArrayBuffer;
  114055. end;
  114056. function TJSPushSubscriptionInit._GetappServerKey: IJSBufferSource;
  114057. begin
  114058. Result:=ReadJSPropertyObject('appServerKey',TJSBufferSource) as IJSBufferSource;
  114059. end;
  114060. function TJSPushSubscriptionInit._GetexpirationTime: TEpochTimeStamp;
  114061. begin
  114062. Result:=ReadJSPropertyInt64('expirationTime');
  114063. end;
  114064. procedure TJSPushSubscriptionInit._Setendpoint(const aValue : UnicodeString);
  114065. begin
  114066. WriteJSPropertyUnicodeString('endpoint',aValue);
  114067. end;
  114068. procedure TJSPushSubscriptionInit._Setscope(const aValue : UnicodeString);
  114069. begin
  114070. WriteJSPropertyUnicodeString('scope',aValue);
  114071. end;
  114072. procedure TJSPushSubscriptionInit._Setp256dhKey(const aValue : IJSArrayBuffer);
  114073. begin
  114074. WriteJSPropertyObject('p256dhKey',aValue);
  114075. end;
  114076. procedure TJSPushSubscriptionInit._SetauthSecret(const aValue : IJSArrayBuffer);
  114077. begin
  114078. WriteJSPropertyObject('authSecret',aValue);
  114079. end;
  114080. procedure TJSPushSubscriptionInit._SetappServerKey(const aValue : IJSBufferSource);
  114081. begin
  114082. WriteJSPropertyObject('appServerKey',aValue);
  114083. end;
  114084. procedure TJSPushSubscriptionInit._SetexpirationTime(const aValue : TEpochTimeStamp);
  114085. begin
  114086. WriteJSPropertyDouble('expirationTime',aValue);
  114087. end;
  114088. class function TJSPushSubscriptionInit.JSClassName: UnicodeString;
  114089. begin
  114090. Result:='Object';
  114091. end;
  114092. class function TJSPushSubscriptionInit.Cast(const Intf: IJSObject): IJSPushSubscriptionInit;
  114093. begin
  114094. Result:=TJSPushSubscriptionInit.JOBCast(Intf);
  114095. end;
  114096. function TJSPushSubscription._Getendpoint: UnicodeString;
  114097. begin
  114098. Result:=ReadJSPropertyUnicodeString('endpoint');
  114099. end;
  114100. function TJSPushSubscription._Getoptions: IJSPushSubscriptionOptions;
  114101. begin
  114102. Result:=ReadJSPropertyObject('options',TJSPushSubscriptionOptions) as IJSPushSubscriptionOptions;
  114103. end;
  114104. function TJSPushSubscription._GetexpirationTime: TEpochTimeStamp;
  114105. begin
  114106. Result:=ReadJSPropertyInt64('expirationTime');
  114107. end;
  114108. function TJSPushSubscription.getKey(aName: TPushEncryptionKeyName): IJSArrayBuffer;
  114109. begin
  114110. Result:=InvokeJSObjectResult('getKey',[aName],TJSArray) as IJSArrayBuffer;
  114111. end;
  114112. function TJSPushSubscription.unsubscribe: IJSPromise; // Promise<boolean>
  114113. begin
  114114. Result:=InvokeJSObjectResult('unsubscribe',[],TJSPromise) as IJSPromise;
  114115. end;
  114116. function TJSPushSubscription.toJSON: TJSPushSubscriptionJSON;
  114117. begin
  114118. Result:=InvokeJSObjectResult('toJSON',[],TJSPushSubscriptionJSON) as TJSPushSubscriptionJSON;
  114119. end;
  114120. class function TJSPushSubscription.JSClassName: UnicodeString;
  114121. begin
  114122. Result:='PushSubscription';
  114123. end;
  114124. class function TJSPushSubscription.Cast(const Intf: IJSObject): IJSPushSubscription;
  114125. begin
  114126. Result:=TJSPushSubscription.JOBCast(Intf);
  114127. end;
  114128. function TJSPushSubscriptionOptions._GetapplicationServerKey: IJSArrayBuffer;
  114129. begin
  114130. Result:=ReadJSPropertyObject('applicationServerKey',TJSArrayBuffer) as IJSArrayBuffer;
  114131. end;
  114132. class function TJSPushSubscriptionOptions.JSClassName: UnicodeString;
  114133. begin
  114134. Result:='PushSubscriptionOptions';
  114135. end;
  114136. class function TJSPushSubscriptionOptions.Cast(const Intf: IJSObject): IJSPushSubscriptionOptions;
  114137. begin
  114138. Result:=TJSPushSubscriptionOptions.JOBCast(Intf);
  114139. end;
  114140. function TJSQueuingStrategy._GethighWaterMark: Double;
  114141. begin
  114142. Result:=ReadJSPropertyDouble('highWaterMark');
  114143. end;
  114144. function TJSQueuingStrategy._Getsize: TQueuingStrategySize;
  114145. begin
  114146. Result:=(TQueuingStrategySize(ReadJSPropertyMethod('size')));
  114147. end;
  114148. procedure TJSQueuingStrategy._SethighWaterMark(const aValue : Double);
  114149. begin
  114150. WriteJSPropertyDouble('highWaterMark',aValue);
  114151. end;
  114152. procedure TJSQueuingStrategy._Setsize(const aValue : TQueuingStrategySize);
  114153. begin
  114154. WriteJSPropertyMethod('size',TMethod(aValue));
  114155. end;
  114156. class function TJSQueuingStrategy.JSClassName: UnicodeString;
  114157. begin
  114158. Result:='Object';
  114159. end;
  114160. class function TJSQueuingStrategy.Cast(const Intf: IJSObject): IJSQueuingStrategy;
  114161. begin
  114162. Result:=TJSQueuingStrategy.JOBCast(Intf);
  114163. end;
  114164. function TJSQueuingStrategyInit._GethighWaterMark: Double;
  114165. begin
  114166. Result:=ReadJSPropertyDouble('highWaterMark');
  114167. end;
  114168. procedure TJSQueuingStrategyInit._SethighWaterMark(const aValue : Double);
  114169. begin
  114170. WriteJSPropertyDouble('highWaterMark',aValue);
  114171. end;
  114172. class function TJSQueuingStrategyInit.JSClassName: UnicodeString;
  114173. begin
  114174. Result:='Object';
  114175. end;
  114176. class function TJSQueuingStrategyInit.Cast(const Intf: IJSObject): IJSQueuingStrategyInit;
  114177. begin
  114178. Result:=TJSQueuingStrategyInit.JOBCast(Intf);
  114179. end;
  114180. function TJSCountQueuingStrategy._GethighWaterMark: Double;
  114181. begin
  114182. Result:=ReadJSPropertyDouble('highWaterMark');
  114183. end;
  114184. function TJSCountQueuingStrategy._Getsize: TFunction;
  114185. begin
  114186. Result:=(TFunction(ReadJSPropertyMethod('size')));
  114187. end;
  114188. constructor TJSCountQueuingStrategy.Create(const aInit: TJSQueuingStrategyInit);
  114189. begin
  114190. JOBCreate([aInit]);
  114191. end;
  114192. class function TJSCountQueuingStrategy.JSClassName: UnicodeString;
  114193. begin
  114194. Result:='CountQueuingStrategy';
  114195. end;
  114196. class function TJSCountQueuingStrategy.Cast(const Intf: IJSObject): IJSCountQueuingStrategy;
  114197. begin
  114198. Result:=TJSCountQueuingStrategy.JOBCast(Intf);
  114199. end;
  114200. function TJSByteLengthQueuingStrategy._GethighWaterMark: Double;
  114201. begin
  114202. Result:=ReadJSPropertyDouble('highWaterMark');
  114203. end;
  114204. function TJSByteLengthQueuingStrategy._Getsize: TFunction;
  114205. begin
  114206. Result:=(TFunction(ReadJSPropertyMethod('size')));
  114207. end;
  114208. constructor TJSByteLengthQueuingStrategy.Create(const aInit: TJSQueuingStrategyInit);
  114209. begin
  114210. JOBCreate([aInit]);
  114211. end;
  114212. class function TJSByteLengthQueuingStrategy.JSClassName: UnicodeString;
  114213. begin
  114214. Result:='ByteLengthQueuingStrategy';
  114215. end;
  114216. class function TJSByteLengthQueuingStrategy.Cast(const Intf: IJSObject): IJSByteLengthQueuingStrategy;
  114217. begin
  114218. Result:=TJSByteLengthQueuingStrategy.JOBCast(Intf);
  114219. end;
  114220. function TJSRadioNodeList._Getvalue: UnicodeString;
  114221. begin
  114222. Result:=ReadJSPropertyUnicodeString('value');
  114223. end;
  114224. procedure TJSRadioNodeList._Setvalue(const aValue : UnicodeString);
  114225. begin
  114226. WriteJSPropertyUnicodeString('value',aValue);
  114227. end;
  114228. class function TJSRadioNodeList.JSClassName: UnicodeString;
  114229. begin
  114230. Result:='RadioNodeList';
  114231. end;
  114232. class function TJSRadioNodeList.Cast(const Intf: IJSObject): IJSRadioNodeList;
  114233. begin
  114234. Result:=TJSRadioNodeList.JOBCast(Intf);
  114235. end;
  114236. function TJSRange._GetcommonAncestorContainer: IJSNode;
  114237. begin
  114238. Result:=ReadJSPropertyObject('commonAncestorContainer',TJSNode) as IJSNode;
  114239. end;
  114240. constructor TJSRange.Create;
  114241. begin
  114242. JOBCreate([]);
  114243. end;
  114244. procedure TJSRange.setStart(aRefNode: IJSNode; aOffset: Cardinal);
  114245. begin
  114246. InvokeJSNoResult('setStart',[aRefNode,aOffset]);
  114247. end;
  114248. procedure TJSRange.setEnd(aRefNode: IJSNode; aOffset: Cardinal);
  114249. begin
  114250. InvokeJSNoResult('setEnd',[aRefNode,aOffset]);
  114251. end;
  114252. procedure TJSRange.setStartBefore(aRefNode: IJSNode);
  114253. begin
  114254. InvokeJSNoResult('setStartBefore',[aRefNode]);
  114255. end;
  114256. procedure TJSRange.setStartAfter(aRefNode: IJSNode);
  114257. begin
  114258. InvokeJSNoResult('setStartAfter',[aRefNode]);
  114259. end;
  114260. procedure TJSRange.setEndBefore(aRefNode: IJSNode);
  114261. begin
  114262. InvokeJSNoResult('setEndBefore',[aRefNode]);
  114263. end;
  114264. procedure TJSRange.setEndAfter(aRefNode: IJSNode);
  114265. begin
  114266. InvokeJSNoResult('setEndAfter',[aRefNode]);
  114267. end;
  114268. procedure TJSRange.collapse(aToStart: Boolean);
  114269. begin
  114270. InvokeJSNoResult('collapse',[aToStart]);
  114271. end;
  114272. procedure TJSRange.collapse;
  114273. begin
  114274. InvokeJSNoResult('collapse',[]);
  114275. end;
  114276. procedure TJSRange.selectNode(aRefNode: IJSNode);
  114277. begin
  114278. InvokeJSNoResult('selectNode',[aRefNode]);
  114279. end;
  114280. procedure TJSRange.selectNodeContents(aRefNode: IJSNode);
  114281. begin
  114282. InvokeJSNoResult('selectNodeContents',[aRefNode]);
  114283. end;
  114284. function TJSRange.compareBoundaryPoints(aHow: Word; aSourceRange: IJSRange): SmallInt;
  114285. begin
  114286. Result:=InvokeJSLongIntResult('compareBoundaryPoints',[aHow,aSourceRange]);
  114287. end;
  114288. procedure TJSRange.deleteContents;
  114289. begin
  114290. InvokeJSNoResult('deleteContents',[]);
  114291. end;
  114292. function TJSRange.extractContents: IJSDocumentFragment;
  114293. begin
  114294. Result:=InvokeJSObjectResult('extractContents',[],TJSDocumentFragment) as IJSDocumentFragment;
  114295. end;
  114296. function TJSRange.cloneContents: IJSDocumentFragment;
  114297. begin
  114298. Result:=InvokeJSObjectResult('cloneContents',[],TJSDocumentFragment) as IJSDocumentFragment;
  114299. end;
  114300. procedure TJSRange.insertNode(aNode: IJSNode);
  114301. begin
  114302. InvokeJSNoResult('insertNode',[aNode]);
  114303. end;
  114304. procedure TJSRange.surroundContents(aNewParent: IJSNode);
  114305. begin
  114306. InvokeJSNoResult('surroundContents',[aNewParent]);
  114307. end;
  114308. function TJSRange.cloneRange: IJSRange;
  114309. begin
  114310. Result:=InvokeJSObjectResult('cloneRange',[],TJSRange) as IJSRange;
  114311. end;
  114312. procedure TJSRange.detach;
  114313. begin
  114314. InvokeJSNoResult('detach',[]);
  114315. end;
  114316. function TJSRange.isPointInRange(aNode: IJSNode; aOffset: Cardinal): Boolean;
  114317. begin
  114318. Result:=InvokeJSBooleanResult('isPointInRange',[aNode,aOffset]);
  114319. end;
  114320. function TJSRange.comparePoint(aNode: IJSNode; aOffset: Cardinal): SmallInt;
  114321. begin
  114322. Result:=InvokeJSLongIntResult('comparePoint',[aNode,aOffset]);
  114323. end;
  114324. function TJSRange.intersectsNode(aNode: IJSNode): Boolean;
  114325. begin
  114326. Result:=InvokeJSBooleanResult('intersectsNode',[aNode]);
  114327. end;
  114328. function TJSRange.createContextualFragment(const aFragment: UnicodeString): IJSDocumentFragment;
  114329. begin
  114330. Result:=InvokeJSObjectResult('createContextualFragment',[aFragment],TJSDocumentFragment) as IJSDocumentFragment;
  114331. end;
  114332. function TJSRange.getClientRects: IJSDOMRectList;
  114333. begin
  114334. Result:=InvokeJSObjectResult('getClientRects',[],TJSDOMRectList) as IJSDOMRectList;
  114335. end;
  114336. function TJSRange.getBoundingClientRect: IJSDOMRect;
  114337. begin
  114338. Result:=InvokeJSObjectResult('getBoundingClientRect',[],TJSDOMRect) as IJSDOMRect;
  114339. end;
  114340. class function TJSRange.JSClassName: UnicodeString;
  114341. begin
  114342. Result:='Range';
  114343. end;
  114344. class function TJSRange.Cast(const Intf: IJSObject): IJSRange;
  114345. begin
  114346. Result:=TJSRange.JOBCast(Intf);
  114347. end;
  114348. function TJSClientRectsAndTexts._GetrectList: IJSDOMRectList;
  114349. begin
  114350. Result:=ReadJSPropertyObject('rectList',TJSDOMRectList) as IJSDOMRectList;
  114351. end;
  114352. function TJSClientRectsAndTexts._GettextList: TUnicodeStringDynArray;
  114353. begin
  114354. Result:=ReadJSPropertyObject('textList',TJSArray) as TUnicodeStringDynArray;
  114355. end;
  114356. procedure TJSClientRectsAndTexts._SetrectList(const aValue : IJSDOMRectList);
  114357. begin
  114358. WriteJSPropertyObject('rectList',aValue);
  114359. end;
  114360. procedure TJSClientRectsAndTexts._SettextList(const aValue : TUnicodeStringDynArray);
  114361. begin
  114362. WriteJSPropertyObject('textList',aValue);
  114363. end;
  114364. class function TJSClientRectsAndTexts.JSClassName: UnicodeString;
  114365. begin
  114366. Result:='Object';
  114367. end;
  114368. class function TJSClientRectsAndTexts.Cast(const Intf: IJSObject): IJSClientRectsAndTexts;
  114369. begin
  114370. Result:=TJSClientRectsAndTexts.JOBCast(Intf);
  114371. end;
  114372. function TJSReadableByteStreamController._GetbyobRequest: IJSReadableStreamBYOBRequest;
  114373. begin
  114374. Result:=ReadJSPropertyObject('byobRequest',TJSReadableStreamBYOBRequest) as IJSReadableStreamBYOBRequest;
  114375. end;
  114376. function TJSReadableByteStreamController._GetdesiredSize: Double;
  114377. begin
  114378. Result:=ReadJSPropertyDouble('desiredSize');
  114379. end;
  114380. procedure TJSReadableByteStreamController.close;
  114381. begin
  114382. InvokeJSNoResult('close',[]);
  114383. end;
  114384. procedure TJSReadableByteStreamController.enqueue(aChunk: IJSArrayBufferView);
  114385. begin
  114386. InvokeJSNoResult('enqueue',[aChunk]);
  114387. end;
  114388. procedure TJSReadableByteStreamController.error(const aE: Variant);
  114389. begin
  114390. InvokeJSNoResult('error',[aE]);
  114391. end;
  114392. procedure TJSReadableByteStreamController.error;
  114393. begin
  114394. InvokeJSNoResult('error',[]);
  114395. end;
  114396. class function TJSReadableByteStreamController.JSClassName: UnicodeString;
  114397. begin
  114398. Result:='ReadableByteStreamController';
  114399. end;
  114400. class function TJSReadableByteStreamController.Cast(const Intf: IJSObject): IJSReadableByteStreamController;
  114401. begin
  114402. Result:=TJSReadableByteStreamController.JOBCast(Intf);
  114403. end;
  114404. function TJSReadableStream._Getlocked: Boolean;
  114405. begin
  114406. Result:=ReadJSPropertyBoolean('locked');
  114407. end;
  114408. constructor TJSReadableStream.Create(aUnderlyingSource: IJSObject; const aStrategy: TJSQueuingStrategy);
  114409. begin
  114410. JOBCreate([aUnderlyingSource,aStrategy]);
  114411. end;
  114412. constructor TJSReadableStream.Create;
  114413. begin
  114414. JOBCreate([]);
  114415. end;
  114416. constructor TJSReadableStream.Create(aUnderlyingSource: IJSObject);
  114417. begin
  114418. JOBCreate([aUnderlyingSource]);
  114419. end;
  114420. function TJSReadableStream.from(const aAsyncIterable: Variant): IJSReadableStream;
  114421. begin
  114422. Result:=InvokeJSObjectResult('from',[aAsyncIterable],TJSReadableStream) as IJSReadableStream;
  114423. end;
  114424. function TJSReadableStream.cancel(const aReason: Variant): IJSPromise; // Promise<undefined>
  114425. begin
  114426. Result:=InvokeJSObjectResult('cancel',[aReason],TJSPromise) as IJSPromise;
  114427. end;
  114428. function TJSReadableStream.cancel: IJSPromise; // Promise<undefined>
  114429. begin
  114430. Result:=InvokeJSObjectResult('cancel',[],TJSPromise) as IJSPromise;
  114431. end;
  114432. function TJSReadableStream.getReader(const aOptions: TJSReadableStreamGetReaderOptions): TReadableStreamReader;
  114433. begin
  114434. Result:=InvokeJSVariantResult('getReader',[aOptions]);
  114435. end;
  114436. function TJSReadableStream.getReader: TReadableStreamReader;
  114437. begin
  114438. Result:=InvokeJSVariantResult('getReader',[]);
  114439. end;
  114440. function TJSReadableStream.pipeThrough(const aTransform: TJSReadableWritablePair; const aOptions: TJSStreamPipeOptions): IJSReadableStream;
  114441. begin
  114442. Result:=InvokeJSObjectResult('pipeThrough',[aTransform,aOptions],TJSReadableStream) as IJSReadableStream;
  114443. end;
  114444. function TJSReadableStream.pipeThrough(const aTransform: TJSReadableWritablePair): IJSReadableStream;
  114445. begin
  114446. Result:=InvokeJSObjectResult('pipeThrough',[aTransform],TJSReadableStream) as IJSReadableStream;
  114447. end;
  114448. function TJSReadableStream.pipeTo(aDestination: IJSWritableStream; const aOptions: TJSStreamPipeOptions): IJSPromise; // Promise<undefined>
  114449. begin
  114450. Result:=InvokeJSObjectResult('pipeTo',[aDestination,aOptions],TJSPromise) as IJSPromise;
  114451. end;
  114452. function TJSReadableStream.pipeTo(aDestination: IJSWritableStream): IJSPromise; // Promise<undefined>
  114453. begin
  114454. Result:=InvokeJSObjectResult('pipeTo',[aDestination],TJSPromise) as IJSPromise;
  114455. end;
  114456. function TJSReadableStream.tee: TJSReadableStreamDynArray;
  114457. begin
  114458. Result:=InvokeJSObjectResult('tee',[],TJSArray) as TJSReadableStreamDynArray;
  114459. end;
  114460. class function TJSReadableStream.JSClassName: UnicodeString;
  114461. begin
  114462. Result:='ReadableStream';
  114463. end;
  114464. class function TJSReadableStream.Cast(const Intf: IJSObject): IJSReadableStream;
  114465. begin
  114466. Result:=TJSReadableStream.JOBCast(Intf);
  114467. end;
  114468. function TJSReadableStreamGetReaderOptions._Getmode: TReadableStreamReaderMode;
  114469. begin
  114470. Result:=ReadJSPropertyUnicodeString('mode');
  114471. end;
  114472. procedure TJSReadableStreamGetReaderOptions._Setmode(const aValue : TReadableStreamReaderMode);
  114473. begin
  114474. WriteJSPropertyUnicodeString('mode',aValue);
  114475. end;
  114476. class function TJSReadableStreamGetReaderOptions.JSClassName: UnicodeString;
  114477. begin
  114478. Result:='Object';
  114479. end;
  114480. class function TJSReadableStreamGetReaderOptions.Cast(const Intf: IJSObject): IJSReadableStreamGetReaderOptions;
  114481. begin
  114482. Result:=TJSReadableStreamGetReaderOptions.JOBCast(Intf);
  114483. end;
  114484. function TJSReadableStreamIteratorOptions._GetpreventCancel: Boolean;
  114485. begin
  114486. Result:=ReadJSPropertyBoolean('preventCancel');
  114487. end;
  114488. procedure TJSReadableStreamIteratorOptions._SetpreventCancel(const aValue : Boolean);
  114489. begin
  114490. WriteJSPropertyBoolean('preventCancel',aValue);
  114491. end;
  114492. class function TJSReadableStreamIteratorOptions.JSClassName: UnicodeString;
  114493. begin
  114494. Result:='Object';
  114495. end;
  114496. class function TJSReadableStreamIteratorOptions.Cast(const Intf: IJSObject): IJSReadableStreamIteratorOptions;
  114497. begin
  114498. Result:=TJSReadableStreamIteratorOptions.JOBCast(Intf);
  114499. end;
  114500. function TJSReadableWritablePair._Getreadable: IJSReadableStream;
  114501. begin
  114502. Result:=ReadJSPropertyObject('readable',TJSReadableStream) as IJSReadableStream;
  114503. end;
  114504. function TJSReadableWritablePair._Getwritable: IJSWritableStream;
  114505. begin
  114506. Result:=ReadJSPropertyObject('writable',TJSWritableStream) as IJSWritableStream;
  114507. end;
  114508. procedure TJSReadableWritablePair._Setreadable(const aValue : IJSReadableStream);
  114509. begin
  114510. WriteJSPropertyObject('readable',aValue);
  114511. end;
  114512. procedure TJSReadableWritablePair._Setwritable(const aValue : IJSWritableStream);
  114513. begin
  114514. WriteJSPropertyObject('writable',aValue);
  114515. end;
  114516. class function TJSReadableWritablePair.JSClassName: UnicodeString;
  114517. begin
  114518. Result:='Object';
  114519. end;
  114520. class function TJSReadableWritablePair.Cast(const Intf: IJSObject): IJSReadableWritablePair;
  114521. begin
  114522. Result:=TJSReadableWritablePair.JOBCast(Intf);
  114523. end;
  114524. function TJSStreamPipeOptions._GetpreventClose: Boolean;
  114525. begin
  114526. Result:=ReadJSPropertyBoolean('preventClose');
  114527. end;
  114528. function TJSStreamPipeOptions._GetpreventAbort: Boolean;
  114529. begin
  114530. Result:=ReadJSPropertyBoolean('preventAbort');
  114531. end;
  114532. function TJSStreamPipeOptions._GetpreventCancel: Boolean;
  114533. begin
  114534. Result:=ReadJSPropertyBoolean('preventCancel');
  114535. end;
  114536. function TJSStreamPipeOptions._Getsignal: IJSAbortSignal;
  114537. begin
  114538. Result:=ReadJSPropertyObject('signal',TJSAbortSignal) as IJSAbortSignal;
  114539. end;
  114540. procedure TJSStreamPipeOptions._SetpreventClose(const aValue : Boolean);
  114541. begin
  114542. WriteJSPropertyBoolean('preventClose',aValue);
  114543. end;
  114544. procedure TJSStreamPipeOptions._SetpreventAbort(const aValue : Boolean);
  114545. begin
  114546. WriteJSPropertyBoolean('preventAbort',aValue);
  114547. end;
  114548. procedure TJSStreamPipeOptions._SetpreventCancel(const aValue : Boolean);
  114549. begin
  114550. WriteJSPropertyBoolean('preventCancel',aValue);
  114551. end;
  114552. procedure TJSStreamPipeOptions._Setsignal(const aValue : IJSAbortSignal);
  114553. begin
  114554. WriteJSPropertyObject('signal',aValue);
  114555. end;
  114556. class function TJSStreamPipeOptions.JSClassName: UnicodeString;
  114557. begin
  114558. Result:='Object';
  114559. end;
  114560. class function TJSStreamPipeOptions.Cast(const Intf: IJSObject): IJSStreamPipeOptions;
  114561. begin
  114562. Result:=TJSStreamPipeOptions.JOBCast(Intf);
  114563. end;
  114564. constructor TJSReadableStreamBYOBReader.Create(aStream: IJSReadableStream);
  114565. begin
  114566. JOBCreate([aStream]);
  114567. end;
  114568. function TJSReadableStreamBYOBReader.read(aView: IJSArrayBufferView): IJSPromise; // Promise<ReadableStreamReadResult>
  114569. begin
  114570. Result:=InvokeJSObjectResult('read',[aView],TJSPromise) as IJSPromise;
  114571. end;
  114572. procedure TJSReadableStreamBYOBReader.releaseLock;
  114573. begin
  114574. InvokeJSNoResult('releaseLock',[]);
  114575. end;
  114576. class function TJSReadableStreamBYOBReader.JSClassName: UnicodeString;
  114577. begin
  114578. Result:='ReadableStreamBYOBReader';
  114579. end;
  114580. class function TJSReadableStreamBYOBReader.Cast(const Intf: IJSObject): IJSReadableStreamBYOBReader;
  114581. begin
  114582. Result:=TJSReadableStreamBYOBReader.JOBCast(Intf);
  114583. end;
  114584. function TJSReadableStreamBYOBRequest._Getview: IJSArrayBufferView;
  114585. begin
  114586. Result:=ReadJSPropertyObject('view',TJSArrayBufferView) as IJSArrayBufferView;
  114587. end;
  114588. procedure TJSReadableStreamBYOBRequest.respond(aBytesWritten: QWord);
  114589. begin
  114590. InvokeJSNoResult('respond',[aBytesWritten]);
  114591. end;
  114592. procedure TJSReadableStreamBYOBRequest.respondWithNewView(aView: IJSArrayBufferView);
  114593. begin
  114594. InvokeJSNoResult('respondWithNewView',[aView]);
  114595. end;
  114596. class function TJSReadableStreamBYOBRequest.JSClassName: UnicodeString;
  114597. begin
  114598. Result:='ReadableStreamBYOBRequest';
  114599. end;
  114600. class function TJSReadableStreamBYOBRequest.Cast(const Intf: IJSObject): IJSReadableStreamBYOBRequest;
  114601. begin
  114602. Result:=TJSReadableStreamBYOBRequest.JOBCast(Intf);
  114603. end;
  114604. function TJSReadableStreamDefaultController._GetdesiredSize: Double;
  114605. begin
  114606. Result:=ReadJSPropertyDouble('desiredSize');
  114607. end;
  114608. procedure TJSReadableStreamDefaultController.close;
  114609. begin
  114610. InvokeJSNoResult('close',[]);
  114611. end;
  114612. procedure TJSReadableStreamDefaultController.enqueue(const aChunk: Variant);
  114613. begin
  114614. InvokeJSNoResult('enqueue',[aChunk]);
  114615. end;
  114616. procedure TJSReadableStreamDefaultController.enqueue;
  114617. begin
  114618. InvokeJSNoResult('enqueue',[]);
  114619. end;
  114620. procedure TJSReadableStreamDefaultController.error(const aE: Variant);
  114621. begin
  114622. InvokeJSNoResult('error',[aE]);
  114623. end;
  114624. procedure TJSReadableStreamDefaultController.error;
  114625. begin
  114626. InvokeJSNoResult('error',[]);
  114627. end;
  114628. class function TJSReadableStreamDefaultController.JSClassName: UnicodeString;
  114629. begin
  114630. Result:='ReadableStreamDefaultController';
  114631. end;
  114632. class function TJSReadableStreamDefaultController.Cast(const Intf: IJSObject): IJSReadableStreamDefaultController;
  114633. begin
  114634. Result:=TJSReadableStreamDefaultController.JOBCast(Intf);
  114635. end;
  114636. function TJSReadableStreamGenericReader._Getclosed: IJSPromise;
  114637. begin
  114638. Result:=ReadJSPropertyObject('closed',TJSPromise) as IJSPromise;
  114639. end;
  114640. function TJSReadableStreamGenericReader.cancel(const aReason: Variant): IJSPromise; // Promise<undefined>
  114641. begin
  114642. Result:=InvokeJSObjectResult('cancel',[aReason],TJSPromise) as IJSPromise;
  114643. end;
  114644. function TJSReadableStreamGenericReader.cancel: IJSPromise; // Promise<undefined>
  114645. begin
  114646. Result:=InvokeJSObjectResult('cancel',[],TJSPromise) as IJSPromise;
  114647. end;
  114648. class function TJSReadableStreamGenericReader.JSClassName: UnicodeString;
  114649. begin
  114650. Result:='ReadableStreamGenericReader';
  114651. end;
  114652. class function TJSReadableStreamGenericReader.Cast(const Intf: IJSObject): IJSReadableStreamGenericReader;
  114653. begin
  114654. Result:=TJSReadableStreamGenericReader.JOBCast(Intf);
  114655. end;
  114656. constructor TJSReadableStreamDefaultReader.Create(aStream: IJSReadableStream);
  114657. begin
  114658. JOBCreate([aStream]);
  114659. end;
  114660. function TJSReadableStreamDefaultReader.read: IJSPromise; // Promise<ReadableStreamReadResult>
  114661. begin
  114662. Result:=InvokeJSObjectResult('read',[],TJSPromise) as IJSPromise;
  114663. end;
  114664. procedure TJSReadableStreamDefaultReader.releaseLock;
  114665. begin
  114666. InvokeJSNoResult('releaseLock',[]);
  114667. end;
  114668. class function TJSReadableStreamDefaultReader.JSClassName: UnicodeString;
  114669. begin
  114670. Result:='ReadableStreamDefaultReader';
  114671. end;
  114672. class function TJSReadableStreamDefaultReader.Cast(const Intf: IJSObject): IJSReadableStreamDefaultReader;
  114673. begin
  114674. Result:=TJSReadableStreamDefaultReader.JOBCast(Intf);
  114675. end;
  114676. function TJSReadableStreamReadResult._Getvalue: Variant;
  114677. begin
  114678. Result:=ReadJSPropertyVariant('value');
  114679. end;
  114680. function TJSReadableStreamReadResult._Getdone: Boolean;
  114681. begin
  114682. Result:=ReadJSPropertyBoolean('done');
  114683. end;
  114684. procedure TJSReadableStreamReadResult._Setvalue(const aValue : Variant);
  114685. begin
  114686. WriteJSPropertyVariant('value',aValue);
  114687. end;
  114688. procedure TJSReadableStreamReadResult._Setdone(const aValue : Boolean);
  114689. begin
  114690. WriteJSPropertyBoolean('done',aValue);
  114691. end;
  114692. class function TJSReadableStreamReadResult.JSClassName: UnicodeString;
  114693. begin
  114694. Result:='Object';
  114695. end;
  114696. class function TJSReadableStreamReadResult.Cast(const Intf: IJSObject): IJSReadableStreamReadResult;
  114697. begin
  114698. Result:=TJSReadableStreamReadResult.JOBCast(Intf);
  114699. end;
  114700. function TJSReportBody.toJSON: IJSObject;
  114701. begin
  114702. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  114703. end;
  114704. class function TJSReportBody.JSClassName: UnicodeString;
  114705. begin
  114706. Result:='ReportBody';
  114707. end;
  114708. class function TJSReportBody.Cast(const Intf: IJSObject): IJSReportBody;
  114709. begin
  114710. Result:=TJSReportBody.JOBCast(Intf);
  114711. end;
  114712. function TJSReport._Gettype_: UnicodeString;
  114713. begin
  114714. Result:=ReadJSPropertyUnicodeString('type');
  114715. end;
  114716. function TJSReport._Geturl: UnicodeString;
  114717. begin
  114718. Result:=ReadJSPropertyUnicodeString('url');
  114719. end;
  114720. function TJSReport._Getbody: IJSReportBody;
  114721. begin
  114722. Result:=ReadJSPropertyObject('body',TJSReportBody) as IJSReportBody;
  114723. end;
  114724. function TJSReport.toJSON: IJSObject;
  114725. begin
  114726. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  114727. end;
  114728. class function TJSReport.JSClassName: UnicodeString;
  114729. begin
  114730. Result:='Report';
  114731. end;
  114732. class function TJSReport.Cast(const Intf: IJSObject): IJSReport;
  114733. begin
  114734. Result:=TJSReport.JOBCast(Intf);
  114735. end;
  114736. constructor TJSReportingObserver.Create(const aCallback: TReportingObserverCallback; const aOptions: TJSReportingObserverOptions);
  114737. var
  114738. m: TJOB_Method;
  114739. begin
  114740. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallReportingObserverCallback);
  114741. try
  114742. JOBCreate([m,aOptions]);
  114743. finally
  114744. m.free;
  114745. end;
  114746. end;
  114747. constructor TJSReportingObserver.Create(const aCallback: TReportingObserverCallback);
  114748. var
  114749. m: TJOB_Method;
  114750. begin
  114751. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallReportingObserverCallback);
  114752. try
  114753. JOBCreate([m]);
  114754. finally
  114755. m.free;
  114756. end;
  114757. end;
  114758. procedure TJSReportingObserver.observe;
  114759. begin
  114760. InvokeJSNoResult('observe',[]);
  114761. end;
  114762. procedure TJSReportingObserver.disconnect;
  114763. begin
  114764. InvokeJSNoResult('disconnect',[]);
  114765. end;
  114766. function TJSReportingObserver.takeRecords: TReportListDynArray;
  114767. begin
  114768. Result:=InvokeJSObjectResult('takeRecords',[],TJSArray) as TReportListDynArray;
  114769. end;
  114770. class function TJSReportingObserver.JSClassName: UnicodeString;
  114771. begin
  114772. Result:='ReportingObserver';
  114773. end;
  114774. class function TJSReportingObserver.Cast(const Intf: IJSObject): IJSReportingObserver;
  114775. begin
  114776. Result:=TJSReportingObserver.JOBCast(Intf);
  114777. end;
  114778. function TJSReportingObserverOptions._Gettypes: TUnicodeStringDynArray;
  114779. begin
  114780. Result:=ReadJSPropertyObject('types',TJSArray) as TUnicodeStringDynArray;
  114781. end;
  114782. function TJSReportingObserverOptions._Getbuffered: Boolean;
  114783. begin
  114784. Result:=ReadJSPropertyBoolean('buffered');
  114785. end;
  114786. procedure TJSReportingObserverOptions._Settypes(const aValue : TUnicodeStringDynArray);
  114787. begin
  114788. WriteJSPropertyObject('types',aValue);
  114789. end;
  114790. procedure TJSReportingObserverOptions._Setbuffered(const aValue : Boolean);
  114791. begin
  114792. WriteJSPropertyBoolean('buffered',aValue);
  114793. end;
  114794. class function TJSReportingObserverOptions.JSClassName: UnicodeString;
  114795. begin
  114796. Result:='Object';
  114797. end;
  114798. class function TJSReportingObserverOptions.Cast(const Intf: IJSObject): IJSReportingObserverOptions;
  114799. begin
  114800. Result:=TJSReportingObserverOptions.JOBCast(Intf);
  114801. end;
  114802. function TJSDeprecationReportBody._Getid: UnicodeString;
  114803. begin
  114804. Result:=ReadJSPropertyUnicodeString('id');
  114805. end;
  114806. function TJSDeprecationReportBody._GetanticipatedRemoval: TDOMTimeStamp;
  114807. begin
  114808. Result:=ReadJSPropertyInt64('anticipatedRemoval');
  114809. end;
  114810. function TJSDeprecationReportBody._Getmessage: UnicodeString;
  114811. begin
  114812. Result:=ReadJSPropertyUnicodeString('message');
  114813. end;
  114814. function TJSDeprecationReportBody._GetsourceFile: UnicodeString;
  114815. begin
  114816. Result:=ReadJSPropertyUnicodeString('sourceFile');
  114817. end;
  114818. function TJSDeprecationReportBody._GetlineNumber: Cardinal;
  114819. begin
  114820. Result:=ReadJSPropertyInt64('lineNumber');
  114821. end;
  114822. function TJSDeprecationReportBody._GetcolumnNumber: Cardinal;
  114823. begin
  114824. Result:=ReadJSPropertyInt64('columnNumber');
  114825. end;
  114826. class function TJSDeprecationReportBody.JSClassName: UnicodeString;
  114827. begin
  114828. Result:='DeprecationReportBody';
  114829. end;
  114830. class function TJSDeprecationReportBody.Cast(const Intf: IJSObject): IJSDeprecationReportBody;
  114831. begin
  114832. Result:=TJSDeprecationReportBody.JOBCast(Intf);
  114833. end;
  114834. function TJSTestingDeprecatedInterface._GetdeprecatedAttribute: Boolean;
  114835. begin
  114836. Result:=ReadJSPropertyBoolean('deprecatedAttribute');
  114837. end;
  114838. constructor TJSTestingDeprecatedInterface.Create;
  114839. begin
  114840. JOBCreate([]);
  114841. end;
  114842. procedure TJSTestingDeprecatedInterface.deprecatedMethod;
  114843. begin
  114844. InvokeJSNoResult('deprecatedMethod',[]);
  114845. end;
  114846. class function TJSTestingDeprecatedInterface.JSClassName: UnicodeString;
  114847. begin
  114848. Result:='TestingDeprecatedInterface';
  114849. end;
  114850. class function TJSTestingDeprecatedInterface.Cast(const Intf: IJSObject): IJSTestingDeprecatedInterface;
  114851. begin
  114852. Result:=TJSTestingDeprecatedInterface.JOBCast(Intf);
  114853. end;
  114854. function TJSReportingHeaderValue._Getitems: TJSReportingItemDynArray;
  114855. begin
  114856. Result:=ReadJSPropertyObject('items',TJSArray) as TJSReportingItemDynArray;
  114857. end;
  114858. procedure TJSReportingHeaderValue._Setitems(const aValue : TJSReportingItemDynArray);
  114859. begin
  114860. WriteJSPropertyObject('items',aValue);
  114861. end;
  114862. class function TJSReportingHeaderValue.JSClassName: UnicodeString;
  114863. begin
  114864. Result:='Object';
  114865. end;
  114866. class function TJSReportingHeaderValue.Cast(const Intf: IJSObject): IJSReportingHeaderValue;
  114867. begin
  114868. Result:=TJSReportingHeaderValue.JOBCast(Intf);
  114869. end;
  114870. function TJSReportingItem._Getmax_age: Variant;
  114871. begin
  114872. Result:=ReadJSPropertyVariant('max_age');
  114873. end;
  114874. function TJSReportingItem._Getendpoints: Variant;
  114875. begin
  114876. Result:=ReadJSPropertyVariant('endpoints');
  114877. end;
  114878. function TJSReportingItem._Getgroup: Variant;
  114879. begin
  114880. Result:=ReadJSPropertyVariant('group');
  114881. end;
  114882. function TJSReportingItem._Getinclude_subdomains: Boolean;
  114883. begin
  114884. Result:=ReadJSPropertyBoolean('include_subdomains');
  114885. end;
  114886. procedure TJSReportingItem._Setmax_age(const aValue : Variant);
  114887. begin
  114888. WriteJSPropertyVariant('max_age',aValue);
  114889. end;
  114890. procedure TJSReportingItem._Setendpoints(const aValue : Variant);
  114891. begin
  114892. WriteJSPropertyVariant('endpoints',aValue);
  114893. end;
  114894. procedure TJSReportingItem._Setgroup(const aValue : Variant);
  114895. begin
  114896. WriteJSPropertyVariant('group',aValue);
  114897. end;
  114898. procedure TJSReportingItem._Setinclude_subdomains(const aValue : Boolean);
  114899. begin
  114900. WriteJSPropertyBoolean('include_subdomains',aValue);
  114901. end;
  114902. class function TJSReportingItem.JSClassName: UnicodeString;
  114903. begin
  114904. Result:='Object';
  114905. end;
  114906. class function TJSReportingItem.Cast(const Intf: IJSObject): IJSReportingItem;
  114907. begin
  114908. Result:=TJSReportingItem.JOBCast(Intf);
  114909. end;
  114910. function TJSReportingEndpoint._Geturl: Variant;
  114911. begin
  114912. Result:=ReadJSPropertyVariant('url');
  114913. end;
  114914. function TJSReportingEndpoint._Getpriority: Variant;
  114915. begin
  114916. Result:=ReadJSPropertyVariant('priority');
  114917. end;
  114918. function TJSReportingEndpoint._Getweight: Variant;
  114919. begin
  114920. Result:=ReadJSPropertyVariant('weight');
  114921. end;
  114922. procedure TJSReportingEndpoint._Seturl(const aValue : Variant);
  114923. begin
  114924. WriteJSPropertyVariant('url',aValue);
  114925. end;
  114926. procedure TJSReportingEndpoint._Setpriority(const aValue : Variant);
  114927. begin
  114928. WriteJSPropertyVariant('priority',aValue);
  114929. end;
  114930. procedure TJSReportingEndpoint._Setweight(const aValue : Variant);
  114931. begin
  114932. WriteJSPropertyVariant('weight',aValue);
  114933. end;
  114934. class function TJSReportingEndpoint.JSClassName: UnicodeString;
  114935. begin
  114936. Result:='Object';
  114937. end;
  114938. class function TJSReportingEndpoint.Cast(const Intf: IJSObject): IJSReportingEndpoint;
  114939. begin
  114940. Result:=TJSReportingEndpoint.JOBCast(Intf);
  114941. end;
  114942. function TJSRequest._Getmethod: UnicodeString;
  114943. begin
  114944. Result:=ReadJSPropertyUnicodeString('method');
  114945. end;
  114946. function TJSRequest._Geturl: UnicodeString;
  114947. begin
  114948. Result:=ReadJSPropertyUnicodeString('url');
  114949. end;
  114950. function TJSRequest._Getheaders: IJSHeaders;
  114951. begin
  114952. Result:=ReadJSPropertyObject('headers',TJSHeaders) as IJSHeaders;
  114953. end;
  114954. function TJSRequest._Getdestination: TRequestDestination;
  114955. begin
  114956. Result:=ReadJSPropertyUnicodeString('destination');
  114957. end;
  114958. function TJSRequest._Getreferrer: UnicodeString;
  114959. begin
  114960. Result:=ReadJSPropertyUnicodeString('referrer');
  114961. end;
  114962. function TJSRequest._GetreferrerPolicy: TReferrerPolicy;
  114963. begin
  114964. Result:=ReadJSPropertyUnicodeString('referrerPolicy');
  114965. end;
  114966. function TJSRequest._Getmode: TRequestMode;
  114967. begin
  114968. Result:=ReadJSPropertyUnicodeString('mode');
  114969. end;
  114970. function TJSRequest._Getcredentials: TRequestCredentials;
  114971. begin
  114972. Result:=ReadJSPropertyUnicodeString('credentials');
  114973. end;
  114974. function TJSRequest._Getcache: TRequestCache;
  114975. begin
  114976. Result:=ReadJSPropertyUnicodeString('cache');
  114977. end;
  114978. function TJSRequest._Getredirect: TRequestRedirect;
  114979. begin
  114980. Result:=ReadJSPropertyUnicodeString('redirect');
  114981. end;
  114982. function TJSRequest._Getintegrity: UnicodeString;
  114983. begin
  114984. Result:=ReadJSPropertyUnicodeString('integrity');
  114985. end;
  114986. function TJSRequest._Getkeepalive: Boolean;
  114987. begin
  114988. Result:=ReadJSPropertyBoolean('keepalive');
  114989. end;
  114990. function TJSRequest._Getsignal: IJSAbortSignal;
  114991. begin
  114992. Result:=ReadJSPropertyObject('signal',TJSAbortSignal) as IJSAbortSignal;
  114993. end;
  114994. constructor TJSRequest.Create(aInput: IJSRequest; const aInit: TJSRequestInit);
  114995. begin
  114996. JOBCreate([aInput,aInit]);
  114997. end;
  114998. constructor TJSRequest.Create(const aInput: UnicodeString; const aInit: TJSRequestInit);
  114999. begin
  115000. JOBCreate([aInput,aInit]);
  115001. end;
  115002. constructor TJSRequest.Create(const aInput: UnicodeString);
  115003. begin
  115004. JOBCreate([aInput]);
  115005. end;
  115006. constructor TJSRequest.Create(aInput: IJSRequest);
  115007. begin
  115008. JOBCreate([aInput]);
  115009. end;
  115010. function TJSRequest.clone: IJSRequest;
  115011. begin
  115012. Result:=InvokeJSObjectResult('clone',[],TJSRequest) as IJSRequest;
  115013. end;
  115014. class function TJSRequest.JSClassName: UnicodeString;
  115015. begin
  115016. Result:='Request';
  115017. end;
  115018. class function TJSRequest.Cast(const Intf: IJSObject): IJSRequest;
  115019. begin
  115020. Result:=TJSRequest.JOBCast(Intf);
  115021. end;
  115022. function TJSRequestInit._Getmethod: UnicodeString;
  115023. begin
  115024. Result:=ReadJSPropertyUnicodeString('method');
  115025. end;
  115026. function TJSRequestInit._Getheaders: THeadersInit;
  115027. begin
  115028. Result:=ReadJSPropertyVariant('headers');
  115029. end;
  115030. function TJSRequestInit._Getbody: TBodyInit;
  115031. begin
  115032. Result:=ReadJSPropertyVariant('body');
  115033. end;
  115034. function TJSRequestInit._Getreferrer: UnicodeString;
  115035. begin
  115036. Result:=ReadJSPropertyUnicodeString('referrer');
  115037. end;
  115038. function TJSRequestInit._GetreferrerPolicy: TReferrerPolicy;
  115039. begin
  115040. Result:=ReadJSPropertyUnicodeString('referrerPolicy');
  115041. end;
  115042. function TJSRequestInit._Getmode: TRequestMode;
  115043. begin
  115044. Result:=ReadJSPropertyUnicodeString('mode');
  115045. end;
  115046. function TJSRequestInit._Getcredentials: TRequestCredentials;
  115047. begin
  115048. Result:=ReadJSPropertyUnicodeString('credentials');
  115049. end;
  115050. function TJSRequestInit._Getcache: TRequestCache;
  115051. begin
  115052. Result:=ReadJSPropertyUnicodeString('cache');
  115053. end;
  115054. function TJSRequestInit._Getredirect: TRequestRedirect;
  115055. begin
  115056. Result:=ReadJSPropertyUnicodeString('redirect');
  115057. end;
  115058. function TJSRequestInit._Getintegrity: UnicodeString;
  115059. begin
  115060. Result:=ReadJSPropertyUnicodeString('integrity');
  115061. end;
  115062. function TJSRequestInit._Getkeepalive: Boolean;
  115063. begin
  115064. Result:=ReadJSPropertyBoolean('keepalive');
  115065. end;
  115066. function TJSRequestInit._Getsignal: IJSAbortSignal;
  115067. begin
  115068. Result:=ReadJSPropertyObject('signal',TJSAbortSignal) as IJSAbortSignal;
  115069. end;
  115070. function TJSRequestInit._Getpriority: TRequestPriority;
  115071. begin
  115072. Result:=ReadJSPropertyUnicodeString('priority');
  115073. end;
  115074. function TJSRequestInit._Getobserve: TObserverCallback;
  115075. begin
  115076. Result:=(TObserverCallback(ReadJSPropertyMethod('observe')));
  115077. end;
  115078. procedure TJSRequestInit._Setmethod(const aValue : UnicodeString);
  115079. begin
  115080. WriteJSPropertyUnicodeString('method',aValue);
  115081. end;
  115082. procedure TJSRequestInit._Setheaders(const aValue : THeadersInit);
  115083. begin
  115084. WriteJSPropertyVariant('headers',aValue);
  115085. end;
  115086. procedure TJSRequestInit._Setbody(const aValue : TBodyInit);
  115087. begin
  115088. WriteJSPropertyVariant('body',aValue);
  115089. end;
  115090. procedure TJSRequestInit._Setreferrer(const aValue : UnicodeString);
  115091. begin
  115092. WriteJSPropertyUnicodeString('referrer',aValue);
  115093. end;
  115094. procedure TJSRequestInit._SetreferrerPolicy(const aValue : TReferrerPolicy);
  115095. begin
  115096. WriteJSPropertyUnicodeString('referrerPolicy',aValue);
  115097. end;
  115098. procedure TJSRequestInit._Setmode(const aValue : TRequestMode);
  115099. begin
  115100. WriteJSPropertyUnicodeString('mode',aValue);
  115101. end;
  115102. procedure TJSRequestInit._Setcredentials(const aValue : TRequestCredentials);
  115103. begin
  115104. WriteJSPropertyUnicodeString('credentials',aValue);
  115105. end;
  115106. procedure TJSRequestInit._Setcache(const aValue : TRequestCache);
  115107. begin
  115108. WriteJSPropertyUnicodeString('cache',aValue);
  115109. end;
  115110. procedure TJSRequestInit._Setredirect(const aValue : TRequestRedirect);
  115111. begin
  115112. WriteJSPropertyUnicodeString('redirect',aValue);
  115113. end;
  115114. procedure TJSRequestInit._Setintegrity(const aValue : UnicodeString);
  115115. begin
  115116. WriteJSPropertyUnicodeString('integrity',aValue);
  115117. end;
  115118. procedure TJSRequestInit._Setkeepalive(const aValue : Boolean);
  115119. begin
  115120. WriteJSPropertyBoolean('keepalive',aValue);
  115121. end;
  115122. procedure TJSRequestInit._Setsignal(const aValue : IJSAbortSignal);
  115123. begin
  115124. WriteJSPropertyObject('signal',aValue);
  115125. end;
  115126. procedure TJSRequestInit._Setpriority(const aValue : TRequestPriority);
  115127. begin
  115128. WriteJSPropertyUnicodeString('priority',aValue);
  115129. end;
  115130. procedure TJSRequestInit._Setobserve(const aValue : TObserverCallback);
  115131. begin
  115132. WriteJSPropertyMethod('observe',TMethod(aValue));
  115133. end;
  115134. class function TJSRequestInit.JSClassName: UnicodeString;
  115135. begin
  115136. Result:='Object';
  115137. end;
  115138. class function TJSRequestInit.Cast(const Intf: IJSObject): IJSRequestInit;
  115139. begin
  115140. Result:=TJSRequestInit.JOBCast(Intf);
  115141. end;
  115142. function TJSResizeObserverOptions._Getbox: TResizeObserverBoxOptions;
  115143. begin
  115144. Result:=ReadJSPropertyUnicodeString('box');
  115145. end;
  115146. procedure TJSResizeObserverOptions._Setbox(const aValue : TResizeObserverBoxOptions);
  115147. begin
  115148. WriteJSPropertyUnicodeString('box',aValue);
  115149. end;
  115150. class function TJSResizeObserverOptions.JSClassName: UnicodeString;
  115151. begin
  115152. Result:='Object';
  115153. end;
  115154. class function TJSResizeObserverOptions.Cast(const Intf: IJSObject): IJSResizeObserverOptions;
  115155. begin
  115156. Result:=TJSResizeObserverOptions.JOBCast(Intf);
  115157. end;
  115158. constructor TJSResizeObserver.Create(const aCallback: TResizeObserverCallback);
  115159. var
  115160. m: TJOB_Method;
  115161. begin
  115162. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallResizeObserverCallback);
  115163. try
  115164. JOBCreate([m]);
  115165. finally
  115166. m.free;
  115167. end;
  115168. end;
  115169. procedure TJSResizeObserver.observe(aTarget: IJSElement; const aOptions: TJSResizeObserverOptions);
  115170. begin
  115171. InvokeJSNoResult('observe',[aTarget,aOptions]);
  115172. end;
  115173. procedure TJSResizeObserver.observe(aTarget: IJSElement);
  115174. begin
  115175. InvokeJSNoResult('observe',[aTarget]);
  115176. end;
  115177. procedure TJSResizeObserver.unobserve(aTarget: IJSElement);
  115178. begin
  115179. InvokeJSNoResult('unobserve',[aTarget]);
  115180. end;
  115181. procedure TJSResizeObserver.disconnect;
  115182. begin
  115183. InvokeJSNoResult('disconnect',[]);
  115184. end;
  115185. class function TJSResizeObserver.JSClassName: UnicodeString;
  115186. begin
  115187. Result:='ResizeObserver';
  115188. end;
  115189. class function TJSResizeObserver.Cast(const Intf: IJSObject): IJSResizeObserver;
  115190. begin
  115191. Result:=TJSResizeObserver.JOBCast(Intf);
  115192. end;
  115193. function TJSResizeObserverEntry._Gettarget: IJSElement;
  115194. begin
  115195. Result:=ReadJSPropertyObject('target',TJSElement) as IJSElement;
  115196. end;
  115197. function TJSResizeObserverEntry._GetcontentRect: IJSDOMRectReadOnly;
  115198. begin
  115199. Result:=ReadJSPropertyObject('contentRect',TJSDOMRectReadOnly) as IJSDOMRectReadOnly;
  115200. end;
  115201. function TJSResizeObserverEntry._GetborderBoxSize: TJSResizeObserverSizeDynArray;
  115202. begin
  115203. Result:=ReadJSPropertyObject('borderBoxSize',TJSArray) as TJSResizeObserverSizeDynArray;
  115204. end;
  115205. function TJSResizeObserverEntry._GetcontentBoxSize: TJSResizeObserverSizeDynArray;
  115206. begin
  115207. Result:=ReadJSPropertyObject('contentBoxSize',TJSArray) as TJSResizeObserverSizeDynArray;
  115208. end;
  115209. function TJSResizeObserverEntry._GetdevicePixelContentBoxSize: TJSResizeObserverSizeDynArray;
  115210. begin
  115211. Result:=ReadJSPropertyObject('devicePixelContentBoxSize',TJSArray) as TJSResizeObserverSizeDynArray;
  115212. end;
  115213. class function TJSResizeObserverEntry.JSClassName: UnicodeString;
  115214. begin
  115215. Result:='ResizeObserverEntry';
  115216. end;
  115217. class function TJSResizeObserverEntry.Cast(const Intf: IJSObject): IJSResizeObserverEntry;
  115218. begin
  115219. Result:=TJSResizeObserverEntry.JOBCast(Intf);
  115220. end;
  115221. function TJSResizeObserverSize._GetinlineSize: Double;
  115222. begin
  115223. Result:=ReadJSPropertyDouble('inlineSize');
  115224. end;
  115225. function TJSResizeObserverSize._GetblockSize: Double;
  115226. begin
  115227. Result:=ReadJSPropertyDouble('blockSize');
  115228. end;
  115229. class function TJSResizeObserverSize.JSClassName: UnicodeString;
  115230. begin
  115231. Result:='ResizeObserverSize';
  115232. end;
  115233. class function TJSResizeObserverSize.Cast(const Intf: IJSObject): IJSResizeObserverSize;
  115234. begin
  115235. Result:=TJSResizeObserverSize.JOBCast(Intf);
  115236. end;
  115237. function TJSResponse._Gettype_: TResponseType;
  115238. begin
  115239. Result:=ReadJSPropertyUnicodeString('type');
  115240. end;
  115241. function TJSResponse._Geturl: UnicodeString;
  115242. begin
  115243. Result:=ReadJSPropertyUnicodeString('url');
  115244. end;
  115245. function TJSResponse._Getredirected: Boolean;
  115246. begin
  115247. Result:=ReadJSPropertyBoolean('redirected');
  115248. end;
  115249. function TJSResponse._Getstatus: Word;
  115250. begin
  115251. Result:=ReadJSPropertyLongInt('status');
  115252. end;
  115253. function TJSResponse._Getok: Boolean;
  115254. begin
  115255. Result:=ReadJSPropertyBoolean('ok');
  115256. end;
  115257. function TJSResponse._GetstatusText: UnicodeString;
  115258. begin
  115259. Result:=ReadJSPropertyUnicodeString('statusText');
  115260. end;
  115261. function TJSResponse._Getheaders: IJSHeaders;
  115262. begin
  115263. Result:=ReadJSPropertyObject('headers',TJSHeaders) as IJSHeaders;
  115264. end;
  115265. function TJSResponse._Getbody: IJSReadableStream;
  115266. begin
  115267. Result:=ReadJSPropertyObject('body',TJSReadableStream) as IJSReadableStream;
  115268. end;
  115269. function TJSResponse._GetbodyUsed: Boolean;
  115270. begin
  115271. Result:=ReadJSPropertyBoolean('bodyUsed');
  115272. end;
  115273. constructor TJSResponse.Create(aBody: IJSBlob; const aInit: TJSResponseInit);
  115274. begin
  115275. JOBCreate([aBody,aInit]);
  115276. end;
  115277. constructor TJSResponse.Create;
  115278. begin
  115279. JOBCreate([]);
  115280. end;
  115281. constructor TJSResponse.Create(aBody: IJSBufferSource; const aInit: TJSResponseInit);
  115282. begin
  115283. JOBCreate([aBody,aInit]);
  115284. end;
  115285. constructor TJSResponse.Create(aBody: IJSFormData; const aInit: TJSResponseInit);
  115286. begin
  115287. JOBCreate([aBody,aInit]);
  115288. end;
  115289. constructor TJSResponse.Create(aBody: IJSReadableStream; const aInit: TJSResponseInit);
  115290. begin
  115291. JOBCreate([aBody,aInit]);
  115292. end;
  115293. constructor TJSResponse.Create(aBody: IJSURLSearchParams; const aInit: TJSResponseInit);
  115294. begin
  115295. JOBCreate([aBody,aInit]);
  115296. end;
  115297. constructor TJSResponse.Create(const aBody: UnicodeString; const aInit: TJSResponseInit);
  115298. begin
  115299. JOBCreate([aBody,aInit]);
  115300. end;
  115301. constructor TJSResponse.Create(const aBody: UnicodeString);
  115302. begin
  115303. JOBCreate([aBody]);
  115304. end;
  115305. constructor TJSResponse.Create(aBody: IJSURLSearchParams);
  115306. begin
  115307. JOBCreate([aBody]);
  115308. end;
  115309. constructor TJSResponse.Create(aBody: IJSReadableStream);
  115310. begin
  115311. JOBCreate([aBody]);
  115312. end;
  115313. constructor TJSResponse.Create(aBody: IJSFormData);
  115314. begin
  115315. JOBCreate([aBody]);
  115316. end;
  115317. constructor TJSResponse.Create(aBody: IJSBufferSource);
  115318. begin
  115319. JOBCreate([aBody]);
  115320. end;
  115321. constructor TJSResponse.Create(aBody: IJSBlob);
  115322. begin
  115323. JOBCreate([aBody]);
  115324. end;
  115325. function TJSResponse.error: IJSResponse;
  115326. begin
  115327. Result:=InvokeJSObjectResult('error',[],TJSResponse) as IJSResponse;
  115328. end;
  115329. function TJSResponse.redirect(const aUrl: UnicodeString; aStatus: Word): IJSResponse;
  115330. begin
  115331. Result:=InvokeJSObjectResult('redirect',[aUrl,aStatus],TJSResponse) as IJSResponse;
  115332. end;
  115333. function TJSResponse.redirect(const aUrl: UnicodeString): IJSResponse;
  115334. begin
  115335. Result:=InvokeJSObjectResult('redirect',[aUrl],TJSResponse) as IJSResponse;
  115336. end;
  115337. function TJSResponse.json(const aData: Variant; const aInit: TJSResponseInit): IJSResponse;
  115338. begin
  115339. Result:=InvokeJSObjectResult('json',[aData,aInit],TJSResponse) as IJSResponse;
  115340. end;
  115341. function TJSResponse.json(const aData: Variant): IJSResponse;
  115342. begin
  115343. Result:=InvokeJSObjectResult('json',[aData],TJSResponse) as IJSResponse;
  115344. end;
  115345. function TJSResponse.clone: IJSResponse;
  115346. begin
  115347. Result:=InvokeJSObjectResult('clone',[],TJSResponse) as IJSResponse;
  115348. end;
  115349. function TJSResponse.arrayBuffer: IJSPromise; // Promise<ArrayBuffer>
  115350. begin
  115351. Result:=InvokeJSObjectResult('arrayBuffer',[],TJSPromise) as IJSPromise;
  115352. end;
  115353. function TJSResponse.blob: IJSPromise; // Promise<Blob>
  115354. begin
  115355. Result:=InvokeJSObjectResult('blob',[],TJSPromise) as IJSPromise;
  115356. end;
  115357. function TJSResponse.formData: IJSPromise; // Promise<FormData>
  115358. begin
  115359. Result:=InvokeJSObjectResult('formData',[],TJSPromise) as IJSPromise;
  115360. end;
  115361. function TJSResponse.json: IJSPromise; // Promise<JSON>
  115362. begin
  115363. Result:=InvokeJSObjectResult('json',[],TJSPromise) as IJSPromise;
  115364. end;
  115365. function TJSResponse.text: IJSPromise; // Promise<USVString>
  115366. begin
  115367. Result:=InvokeJSObjectResult('text',[],TJSPromise) as IJSPromise;
  115368. end;
  115369. class function TJSResponse.JSClassName: UnicodeString;
  115370. begin
  115371. Result:='Response';
  115372. end;
  115373. class function TJSResponse.Cast(const Intf: IJSObject): IJSResponse;
  115374. begin
  115375. Result:=TJSResponse.JOBCast(Intf);
  115376. end;
  115377. function TJSResponseInit._Getstatus: Word;
  115378. begin
  115379. Result:=ReadJSPropertyLongInt('status');
  115380. end;
  115381. function TJSResponseInit._GetstatusText: UnicodeString;
  115382. begin
  115383. Result:=ReadJSPropertyUnicodeString('statusText');
  115384. end;
  115385. function TJSResponseInit._Getheaders: THeadersInit;
  115386. begin
  115387. Result:=ReadJSPropertyVariant('headers');
  115388. end;
  115389. procedure TJSResponseInit._Setstatus(const aValue : Word);
  115390. begin
  115391. WriteJSPropertyLongInt('status',aValue);
  115392. end;
  115393. procedure TJSResponseInit._SetstatusText(const aValue : UnicodeString);
  115394. begin
  115395. WriteJSPropertyUnicodeString('statusText',aValue);
  115396. end;
  115397. procedure TJSResponseInit._Setheaders(const aValue : THeadersInit);
  115398. begin
  115399. WriteJSPropertyVariant('headers',aValue);
  115400. end;
  115401. class function TJSResponseInit.JSClassName: UnicodeString;
  115402. begin
  115403. Result:='Object';
  115404. end;
  115405. class function TJSResponseInit.Cast(const Intf: IJSObject): IJSResponseInit;
  115406. begin
  115407. Result:=TJSResponseInit.JOBCast(Intf);
  115408. end;
  115409. function TJSRTCCertificateExpiration._Getexpires: TDOMTimeStamp;
  115410. begin
  115411. Result:=ReadJSPropertyInt64('expires');
  115412. end;
  115413. procedure TJSRTCCertificateExpiration._Setexpires(const aValue : TDOMTimeStamp);
  115414. begin
  115415. WriteJSPropertyDouble('expires',aValue);
  115416. end;
  115417. class function TJSRTCCertificateExpiration.JSClassName: UnicodeString;
  115418. begin
  115419. Result:='Object';
  115420. end;
  115421. class function TJSRTCCertificateExpiration.Cast(const Intf: IJSObject): IJSRTCCertificateExpiration;
  115422. begin
  115423. Result:=TJSRTCCertificateExpiration.JOBCast(Intf);
  115424. end;
  115425. function TJSRTCCertificate._Getexpires: TDOMTimeStamp;
  115426. begin
  115427. Result:=ReadJSPropertyInt64('expires');
  115428. end;
  115429. class function TJSRTCCertificate.JSClassName: UnicodeString;
  115430. begin
  115431. Result:='RTCCertificate';
  115432. end;
  115433. class function TJSRTCCertificate.Cast(const Intf: IJSObject): IJSRTCCertificate;
  115434. begin
  115435. Result:=TJSRTCCertificate.JOBCast(Intf);
  115436. end;
  115437. function TJSRTCIceServer._Geturls: TRTCIceServer_urls_Type;
  115438. begin
  115439. Result:=ReadJSPropertyVariant('urls');
  115440. end;
  115441. function TJSRTCIceServer._Geturl: UnicodeString;
  115442. begin
  115443. Result:=ReadJSPropertyUnicodeString('url');
  115444. end;
  115445. function TJSRTCIceServer._Getusername: UnicodeString;
  115446. begin
  115447. Result:=ReadJSPropertyUnicodeString('username');
  115448. end;
  115449. function TJSRTCIceServer._Getcredential: UnicodeString;
  115450. begin
  115451. Result:=ReadJSPropertyUnicodeString('credential');
  115452. end;
  115453. function TJSRTCIceServer._GetcredentialType: TRTCIceCredentialType;
  115454. begin
  115455. Result:=ReadJSPropertyUnicodeString('credentialType');
  115456. end;
  115457. procedure TJSRTCIceServer._Seturls(const aValue : TRTCIceServer_urls_Type);
  115458. begin
  115459. WriteJSPropertyVariant('urls',aValue);
  115460. end;
  115461. procedure TJSRTCIceServer._Seturl(const aValue : UnicodeString);
  115462. begin
  115463. WriteJSPropertyUnicodeString('url',aValue);
  115464. end;
  115465. procedure TJSRTCIceServer._Setusername(const aValue : UnicodeString);
  115466. begin
  115467. WriteJSPropertyUnicodeString('username',aValue);
  115468. end;
  115469. procedure TJSRTCIceServer._Setcredential(const aValue : UnicodeString);
  115470. begin
  115471. WriteJSPropertyUnicodeString('credential',aValue);
  115472. end;
  115473. procedure TJSRTCIceServer._SetcredentialType(const aValue : TRTCIceCredentialType);
  115474. begin
  115475. WriteJSPropertyUnicodeString('credentialType',aValue);
  115476. end;
  115477. class function TJSRTCIceServer.JSClassName: UnicodeString;
  115478. begin
  115479. Result:='Object';
  115480. end;
  115481. class function TJSRTCIceServer.Cast(const Intf: IJSObject): IJSRTCIceServer;
  115482. begin
  115483. Result:=TJSRTCIceServer.JOBCast(Intf);
  115484. end;
  115485. function TJSRTCConfiguration._GeticeServers: TJSRTCIceServerDynArray;
  115486. begin
  115487. Result:=ReadJSPropertyObject('iceServers',TJSArray) as TJSRTCIceServerDynArray;
  115488. end;
  115489. function TJSRTCConfiguration._GeticeTransportPolicy: TRTCIceTransportPolicy;
  115490. begin
  115491. Result:=ReadJSPropertyUnicodeString('iceTransportPolicy');
  115492. end;
  115493. function TJSRTCConfiguration._GetbundlePolicy: TRTCBundlePolicy;
  115494. begin
  115495. Result:=ReadJSPropertyUnicodeString('bundlePolicy');
  115496. end;
  115497. function TJSRTCConfiguration._GetpeerIdentity: UnicodeString;
  115498. begin
  115499. Result:=ReadJSPropertyUnicodeString('peerIdentity');
  115500. end;
  115501. function TJSRTCConfiguration._Getcertificates: TJSRTCCertificateDynArray;
  115502. begin
  115503. Result:=ReadJSPropertyObject('certificates',TJSArray) as TJSRTCCertificateDynArray;
  115504. end;
  115505. function TJSRTCConfiguration._GetsdpSemantics: UnicodeString;
  115506. begin
  115507. Result:=ReadJSPropertyUnicodeString('sdpSemantics');
  115508. end;
  115509. procedure TJSRTCConfiguration._SeticeServers(const aValue : TJSRTCIceServerDynArray);
  115510. begin
  115511. WriteJSPropertyObject('iceServers',aValue);
  115512. end;
  115513. procedure TJSRTCConfiguration._SeticeTransportPolicy(const aValue : TRTCIceTransportPolicy);
  115514. begin
  115515. WriteJSPropertyUnicodeString('iceTransportPolicy',aValue);
  115516. end;
  115517. procedure TJSRTCConfiguration._SetbundlePolicy(const aValue : TRTCBundlePolicy);
  115518. begin
  115519. WriteJSPropertyUnicodeString('bundlePolicy',aValue);
  115520. end;
  115521. procedure TJSRTCConfiguration._SetpeerIdentity(const aValue : UnicodeString);
  115522. begin
  115523. WriteJSPropertyUnicodeString('peerIdentity',aValue);
  115524. end;
  115525. procedure TJSRTCConfiguration._Setcertificates(const aValue : TJSRTCCertificateDynArray);
  115526. begin
  115527. WriteJSPropertyObject('certificates',aValue);
  115528. end;
  115529. procedure TJSRTCConfiguration._SetsdpSemantics(const aValue : UnicodeString);
  115530. begin
  115531. WriteJSPropertyUnicodeString('sdpSemantics',aValue);
  115532. end;
  115533. class function TJSRTCConfiguration.JSClassName: UnicodeString;
  115534. begin
  115535. Result:='Object';
  115536. end;
  115537. class function TJSRTCConfiguration.Cast(const Intf: IJSObject): IJSRTCConfiguration;
  115538. begin
  115539. Result:=TJSRTCConfiguration.JOBCast(Intf);
  115540. end;
  115541. function TJSRTCDataChannel._Getlabel_: UnicodeString;
  115542. begin
  115543. Result:=ReadJSPropertyUnicodeString('label');
  115544. end;
  115545. function TJSRTCDataChannel._Getnegotiated: Boolean;
  115546. begin
  115547. Result:=ReadJSPropertyBoolean('negotiated');
  115548. end;
  115549. function TJSRTCDataChannel._Getordered: Boolean;
  115550. begin
  115551. Result:=ReadJSPropertyBoolean('ordered');
  115552. end;
  115553. function TJSRTCDataChannel._Getreliable: Boolean;
  115554. begin
  115555. Result:=ReadJSPropertyBoolean('reliable');
  115556. end;
  115557. function TJSRTCDataChannel._GetmaxPacketLifeTime: Word;
  115558. begin
  115559. Result:=ReadJSPropertyLongInt('maxPacketLifeTime');
  115560. end;
  115561. function TJSRTCDataChannel._GetmaxRetransmits: Word;
  115562. begin
  115563. Result:=ReadJSPropertyLongInt('maxRetransmits');
  115564. end;
  115565. function TJSRTCDataChannel._Getprotocol: UnicodeString;
  115566. begin
  115567. Result:=ReadJSPropertyUnicodeString('protocol');
  115568. end;
  115569. function TJSRTCDataChannel._Getid: Word;
  115570. begin
  115571. Result:=ReadJSPropertyLongInt('id');
  115572. end;
  115573. function TJSRTCDataChannel._GetreadyState: TRTCDataChannelState;
  115574. begin
  115575. Result:=ReadJSPropertyUnicodeString('readyState');
  115576. end;
  115577. function TJSRTCDataChannel._GetbufferedAmount: Cardinal;
  115578. begin
  115579. Result:=ReadJSPropertyInt64('bufferedAmount');
  115580. end;
  115581. function TJSRTCDataChannel._GetbufferedAmountLowThreshold: Cardinal;
  115582. begin
  115583. Result:=ReadJSPropertyInt64('bufferedAmountLowThreshold');
  115584. end;
  115585. function TJSRTCDataChannel._Getonopen: TEventHandler;
  115586. begin
  115587. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onopen')));
  115588. end;
  115589. function TJSRTCDataChannel._Getonerror: TEventHandler;
  115590. begin
  115591. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  115592. end;
  115593. function TJSRTCDataChannel._Getonclose: TEventHandler;
  115594. begin
  115595. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclose')));
  115596. end;
  115597. function TJSRTCDataChannel._Getonmessage: TEventHandler;
  115598. begin
  115599. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  115600. end;
  115601. function TJSRTCDataChannel._Getonbufferedamountlow: TEventHandler;
  115602. begin
  115603. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbufferedamountlow')));
  115604. end;
  115605. function TJSRTCDataChannel._GetbinaryType: TRTCDataChannelType;
  115606. begin
  115607. Result:=ReadJSPropertyUnicodeString('binaryType');
  115608. end;
  115609. procedure TJSRTCDataChannel._SetbufferedAmountLowThreshold(const aValue : Cardinal);
  115610. begin
  115611. WriteJSPropertyDouble('bufferedAmountLowThreshold',aValue);
  115612. end;
  115613. procedure TJSRTCDataChannel._Setonopen(const aValue : TEventHandler);
  115614. begin
  115615. WriteJSPropertyMethod('onopen',TMethod(aValue));
  115616. end;
  115617. procedure TJSRTCDataChannel._Setonerror(const aValue : TEventHandler);
  115618. begin
  115619. WriteJSPropertyMethod('onerror',TMethod(aValue));
  115620. end;
  115621. procedure TJSRTCDataChannel._Setonclose(const aValue : TEventHandler);
  115622. begin
  115623. WriteJSPropertyMethod('onclose',TMethod(aValue));
  115624. end;
  115625. procedure TJSRTCDataChannel._Setonmessage(const aValue : TEventHandler);
  115626. begin
  115627. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  115628. end;
  115629. procedure TJSRTCDataChannel._Setonbufferedamountlow(const aValue : TEventHandler);
  115630. begin
  115631. WriteJSPropertyMethod('onbufferedamountlow',TMethod(aValue));
  115632. end;
  115633. procedure TJSRTCDataChannel._SetbinaryType(const aValue : TRTCDataChannelType);
  115634. begin
  115635. WriteJSPropertyUnicodeString('binaryType',aValue);
  115636. end;
  115637. procedure TJSRTCDataChannel.close;
  115638. begin
  115639. InvokeJSNoResult('close',[]);
  115640. end;
  115641. procedure TJSRTCDataChannel.send(const aData: UnicodeString);
  115642. begin
  115643. InvokeJSNoResult('send',[aData]);
  115644. end;
  115645. procedure TJSRTCDataChannel.send(aData: IJSBlob);
  115646. begin
  115647. InvokeJSNoResult('send',[aData]);
  115648. end;
  115649. procedure TJSRTCDataChannel.send(aData: IJSArrayBuffer);
  115650. begin
  115651. InvokeJSNoResult('send',[aData]);
  115652. end;
  115653. procedure TJSRTCDataChannel.send(aData: IJSArrayBufferView);
  115654. begin
  115655. InvokeJSNoResult('send',[aData]);
  115656. end;
  115657. class function TJSRTCDataChannel.JSClassName: UnicodeString;
  115658. begin
  115659. Result:='RTCDataChannel';
  115660. end;
  115661. class function TJSRTCDataChannel.Cast(const Intf: IJSObject): IJSRTCDataChannel;
  115662. begin
  115663. Result:=TJSRTCDataChannel.JOBCast(Intf);
  115664. end;
  115665. function TJSRTCDataChannelEventInit._Getchannel: IJSRTCDataChannel;
  115666. begin
  115667. Result:=ReadJSPropertyObject('channel',TJSRTCDataChannel) as IJSRTCDataChannel;
  115668. end;
  115669. procedure TJSRTCDataChannelEventInit._Setchannel(const aValue : IJSRTCDataChannel);
  115670. begin
  115671. WriteJSPropertyObject('channel',aValue);
  115672. end;
  115673. class function TJSRTCDataChannelEventInit.JSClassName: UnicodeString;
  115674. begin
  115675. Result:='Object';
  115676. end;
  115677. class function TJSRTCDataChannelEventInit.Cast(const Intf: IJSObject): IJSRTCDataChannelEventInit;
  115678. begin
  115679. Result:=TJSRTCDataChannelEventInit.JOBCast(Intf);
  115680. end;
  115681. function TJSRTCDataChannelEvent._Getchannel: IJSRTCDataChannel;
  115682. begin
  115683. Result:=ReadJSPropertyObject('channel',TJSRTCDataChannel) as IJSRTCDataChannel;
  115684. end;
  115685. constructor TJSRTCDataChannelEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSRTCDataChannelEventInit);
  115686. begin
  115687. JOBCreate([aType_,aEventInitDict]);
  115688. end;
  115689. class function TJSRTCDataChannelEvent.JSClassName: UnicodeString;
  115690. begin
  115691. Result:='RTCDataChannelEvent';
  115692. end;
  115693. class function TJSRTCDataChannelEvent.Cast(const Intf: IJSObject): IJSRTCDataChannelEvent;
  115694. begin
  115695. Result:=TJSRTCDataChannelEvent.JOBCast(Intf);
  115696. end;
  115697. function TJSRTCDtlsTransport._GeticeTransport: IJSRTCIceTransport;
  115698. begin
  115699. Result:=ReadJSPropertyObject('iceTransport',TJSRTCIceTransport) as IJSRTCIceTransport;
  115700. end;
  115701. function TJSRTCDtlsTransport._Getstate: TRTCDtlsTransportState;
  115702. begin
  115703. Result:=ReadJSPropertyUnicodeString('state');
  115704. end;
  115705. function TJSRTCDtlsTransport._Getonstatechange: TEventHandler;
  115706. begin
  115707. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstatechange')));
  115708. end;
  115709. procedure TJSRTCDtlsTransport._Setonstatechange(const aValue : TEventHandler);
  115710. begin
  115711. WriteJSPropertyMethod('onstatechange',TMethod(aValue));
  115712. end;
  115713. class function TJSRTCDtlsTransport.JSClassName: UnicodeString;
  115714. begin
  115715. Result:='RTCDtlsTransport';
  115716. end;
  115717. class function TJSRTCDtlsTransport.Cast(const Intf: IJSObject): IJSRTCDtlsTransport;
  115718. begin
  115719. Result:=TJSRTCDtlsTransport.JOBCast(Intf);
  115720. end;
  115721. function TJSRTCDTMFSender._Getontonechange: TEventHandler;
  115722. begin
  115723. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontonechange')));
  115724. end;
  115725. function TJSRTCDTMFSender._GettoneBuffer: UnicodeString;
  115726. begin
  115727. Result:=ReadJSPropertyUnicodeString('toneBuffer');
  115728. end;
  115729. procedure TJSRTCDTMFSender._Setontonechange(const aValue : TEventHandler);
  115730. begin
  115731. WriteJSPropertyMethod('ontonechange',TMethod(aValue));
  115732. end;
  115733. procedure TJSRTCDTMFSender.insertDTMF(const aTones: UnicodeString; aDuration: Cardinal; aInterToneGap: Cardinal);
  115734. begin
  115735. InvokeJSNoResult('insertDTMF',[aTones,aDuration,aInterToneGap]);
  115736. end;
  115737. procedure TJSRTCDTMFSender.insertDTMF(const aTones: UnicodeString);
  115738. begin
  115739. InvokeJSNoResult('insertDTMF',[aTones]);
  115740. end;
  115741. procedure TJSRTCDTMFSender.insertDTMF(const aTones: UnicodeString; aDuration: Cardinal);
  115742. begin
  115743. InvokeJSNoResult('insertDTMF',[aTones,aDuration]);
  115744. end;
  115745. class function TJSRTCDTMFSender.JSClassName: UnicodeString;
  115746. begin
  115747. Result:='RTCDTMFSender';
  115748. end;
  115749. class function TJSRTCDTMFSender.Cast(const Intf: IJSObject): IJSRTCDTMFSender;
  115750. begin
  115751. Result:=TJSRTCDTMFSender.JOBCast(Intf);
  115752. end;
  115753. function TJSRTCDTMFToneChangeEvent._Gettone: UnicodeString;
  115754. begin
  115755. Result:=ReadJSPropertyUnicodeString('tone');
  115756. end;
  115757. constructor TJSRTCDTMFToneChangeEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSRTCDTMFToneChangeEventInit);
  115758. begin
  115759. JOBCreate([aType_,aEventInitDict]);
  115760. end;
  115761. constructor TJSRTCDTMFToneChangeEvent.Create(const aType_: UnicodeString);
  115762. begin
  115763. JOBCreate([aType_]);
  115764. end;
  115765. class function TJSRTCDTMFToneChangeEvent.JSClassName: UnicodeString;
  115766. begin
  115767. Result:='RTCDTMFToneChangeEvent';
  115768. end;
  115769. class function TJSRTCDTMFToneChangeEvent.Cast(const Intf: IJSObject): IJSRTCDTMFToneChangeEvent;
  115770. begin
  115771. Result:=TJSRTCDTMFToneChangeEvent.JOBCast(Intf);
  115772. end;
  115773. function TJSRTCDTMFToneChangeEventInit._Gettone: UnicodeString;
  115774. begin
  115775. Result:=ReadJSPropertyUnicodeString('tone');
  115776. end;
  115777. procedure TJSRTCDTMFToneChangeEventInit._Settone(const aValue : UnicodeString);
  115778. begin
  115779. WriteJSPropertyUnicodeString('tone',aValue);
  115780. end;
  115781. class function TJSRTCDTMFToneChangeEventInit.JSClassName: UnicodeString;
  115782. begin
  115783. Result:='Object';
  115784. end;
  115785. class function TJSRTCDTMFToneChangeEventInit.Cast(const Intf: IJSObject): IJSRTCDTMFToneChangeEventInit;
  115786. begin
  115787. Result:=TJSRTCDTMFToneChangeEventInit.JOBCast(Intf);
  115788. end;
  115789. function TJSRTCEncodedAudioFrameMetadata._GetsynchronizationSource: Cardinal;
  115790. begin
  115791. Result:=ReadJSPropertyInt64('synchronizationSource');
  115792. end;
  115793. function TJSRTCEncodedAudioFrameMetadata._GetpayloadType: Byte;
  115794. begin
  115795. Result:=ReadJSPropertyLongInt('payloadType');
  115796. end;
  115797. function TJSRTCEncodedAudioFrameMetadata._GetcontributingSources: TCardinalDynArray;
  115798. begin
  115799. Result:=ReadJSPropertyObject('contributingSources',TJSArray) as TCardinalDynArray;
  115800. end;
  115801. function TJSRTCEncodedAudioFrameMetadata._GetsequenceNumber: SmallInt;
  115802. begin
  115803. Result:=ReadJSPropertyLongInt('sequenceNumber');
  115804. end;
  115805. procedure TJSRTCEncodedAudioFrameMetadata._SetsynchronizationSource(const aValue : Cardinal);
  115806. begin
  115807. WriteJSPropertyDouble('synchronizationSource',aValue);
  115808. end;
  115809. procedure TJSRTCEncodedAudioFrameMetadata._SetpayloadType(const aValue : Byte);
  115810. begin
  115811. WriteJSPropertyLongInt('payloadType',aValue);
  115812. end;
  115813. procedure TJSRTCEncodedAudioFrameMetadata._SetcontributingSources(const aValue : TCardinalDynArray);
  115814. begin
  115815. WriteJSPropertyObject('contributingSources',aValue);
  115816. end;
  115817. procedure TJSRTCEncodedAudioFrameMetadata._SetsequenceNumber(const aValue : SmallInt);
  115818. begin
  115819. WriteJSPropertyLongInt('sequenceNumber',aValue);
  115820. end;
  115821. class function TJSRTCEncodedAudioFrameMetadata.JSClassName: UnicodeString;
  115822. begin
  115823. Result:='Object';
  115824. end;
  115825. class function TJSRTCEncodedAudioFrameMetadata.Cast(const Intf: IJSObject): IJSRTCEncodedAudioFrameMetadata;
  115826. begin
  115827. Result:=TJSRTCEncodedAudioFrameMetadata.JOBCast(Intf);
  115828. end;
  115829. function TJSRTCEncodedAudioFrame._Gettimestamp: Cardinal;
  115830. begin
  115831. Result:=ReadJSPropertyInt64('timestamp');
  115832. end;
  115833. function TJSRTCEncodedAudioFrame._Getdata: IJSArrayBuffer;
  115834. begin
  115835. Result:=ReadJSPropertyObject('data',TJSArrayBuffer) as IJSArrayBuffer;
  115836. end;
  115837. procedure TJSRTCEncodedAudioFrame._Setdata(const aValue : IJSArrayBuffer);
  115838. begin
  115839. WriteJSPropertyObject('data',aValue);
  115840. end;
  115841. function TJSRTCEncodedAudioFrame.getMetadata: TJSRTCEncodedAudioFrameMetadata;
  115842. begin
  115843. Result:=InvokeJSObjectResult('getMetadata',[],TJSRTCEncodedAudioFrameMetadata) as TJSRTCEncodedAudioFrameMetadata;
  115844. end;
  115845. class function TJSRTCEncodedAudioFrame.JSClassName: UnicodeString;
  115846. begin
  115847. Result:='RTCEncodedAudioFrame';
  115848. end;
  115849. class function TJSRTCEncodedAudioFrame.Cast(const Intf: IJSObject): IJSRTCEncodedAudioFrame;
  115850. begin
  115851. Result:=TJSRTCEncodedAudioFrame.JOBCast(Intf);
  115852. end;
  115853. function TJSRTCEncodedVideoFrameMetadata._GetframeId: QWord;
  115854. begin
  115855. Result:=ReadJSPropertyInt64('frameId');
  115856. end;
  115857. function TJSRTCEncodedVideoFrameMetadata._Getdependencies: TQWordDynArray;
  115858. begin
  115859. Result:=ReadJSPropertyObject('dependencies',TJSArray) as TQWordDynArray;
  115860. end;
  115861. function TJSRTCEncodedVideoFrameMetadata._Getwidth: Word;
  115862. begin
  115863. Result:=ReadJSPropertyLongInt('width');
  115864. end;
  115865. function TJSRTCEncodedVideoFrameMetadata._Getheight: Word;
  115866. begin
  115867. Result:=ReadJSPropertyLongInt('height');
  115868. end;
  115869. function TJSRTCEncodedVideoFrameMetadata._GetspatialIndex: Cardinal;
  115870. begin
  115871. Result:=ReadJSPropertyInt64('spatialIndex');
  115872. end;
  115873. function TJSRTCEncodedVideoFrameMetadata._GettemporalIndex: Cardinal;
  115874. begin
  115875. Result:=ReadJSPropertyInt64('temporalIndex');
  115876. end;
  115877. function TJSRTCEncodedVideoFrameMetadata._GetsynchronizationSource: Cardinal;
  115878. begin
  115879. Result:=ReadJSPropertyInt64('synchronizationSource');
  115880. end;
  115881. function TJSRTCEncodedVideoFrameMetadata._GetpayloadType: Byte;
  115882. begin
  115883. Result:=ReadJSPropertyLongInt('payloadType');
  115884. end;
  115885. function TJSRTCEncodedVideoFrameMetadata._GetcontributingSources: TCardinalDynArray;
  115886. begin
  115887. Result:=ReadJSPropertyObject('contributingSources',TJSArray) as TCardinalDynArray;
  115888. end;
  115889. function TJSRTCEncodedVideoFrameMetadata._Gettimestamp: Int64;
  115890. begin
  115891. Result:=ReadJSPropertyInt64('timestamp');
  115892. end;
  115893. procedure TJSRTCEncodedVideoFrameMetadata._SetframeId(const aValue : QWord);
  115894. begin
  115895. WriteJSPropertyDouble('frameId',aValue);
  115896. end;
  115897. procedure TJSRTCEncodedVideoFrameMetadata._Setdependencies(const aValue : TQWordDynArray);
  115898. begin
  115899. WriteJSPropertyObject('dependencies',aValue);
  115900. end;
  115901. procedure TJSRTCEncodedVideoFrameMetadata._Setwidth(const aValue : Word);
  115902. begin
  115903. WriteJSPropertyLongInt('width',aValue);
  115904. end;
  115905. procedure TJSRTCEncodedVideoFrameMetadata._Setheight(const aValue : Word);
  115906. begin
  115907. WriteJSPropertyLongInt('height',aValue);
  115908. end;
  115909. procedure TJSRTCEncodedVideoFrameMetadata._SetspatialIndex(const aValue : Cardinal);
  115910. begin
  115911. WriteJSPropertyDouble('spatialIndex',aValue);
  115912. end;
  115913. procedure TJSRTCEncodedVideoFrameMetadata._SettemporalIndex(const aValue : Cardinal);
  115914. begin
  115915. WriteJSPropertyDouble('temporalIndex',aValue);
  115916. end;
  115917. procedure TJSRTCEncodedVideoFrameMetadata._SetsynchronizationSource(const aValue : Cardinal);
  115918. begin
  115919. WriteJSPropertyDouble('synchronizationSource',aValue);
  115920. end;
  115921. procedure TJSRTCEncodedVideoFrameMetadata._SetpayloadType(const aValue : Byte);
  115922. begin
  115923. WriteJSPropertyLongInt('payloadType',aValue);
  115924. end;
  115925. procedure TJSRTCEncodedVideoFrameMetadata._SetcontributingSources(const aValue : TCardinalDynArray);
  115926. begin
  115927. WriteJSPropertyObject('contributingSources',aValue);
  115928. end;
  115929. procedure TJSRTCEncodedVideoFrameMetadata._Settimestamp(const aValue : Int64);
  115930. begin
  115931. WriteJSPropertyDouble('timestamp',aValue);
  115932. end;
  115933. class function TJSRTCEncodedVideoFrameMetadata.JSClassName: UnicodeString;
  115934. begin
  115935. Result:='Object';
  115936. end;
  115937. class function TJSRTCEncodedVideoFrameMetadata.Cast(const Intf: IJSObject): IJSRTCEncodedVideoFrameMetadata;
  115938. begin
  115939. Result:=TJSRTCEncodedVideoFrameMetadata.JOBCast(Intf);
  115940. end;
  115941. function TJSRTCEncodedVideoFrame._Gettype_: TRTCEncodedVideoFrameType;
  115942. begin
  115943. Result:=ReadJSPropertyUnicodeString('type');
  115944. end;
  115945. function TJSRTCEncodedVideoFrame._Gettimestamp: Cardinal;
  115946. begin
  115947. Result:=ReadJSPropertyInt64('timestamp');
  115948. end;
  115949. function TJSRTCEncodedVideoFrame._Getdata: IJSArrayBuffer;
  115950. begin
  115951. Result:=ReadJSPropertyObject('data',TJSArrayBuffer) as IJSArrayBuffer;
  115952. end;
  115953. procedure TJSRTCEncodedVideoFrame._Setdata(const aValue : IJSArrayBuffer);
  115954. begin
  115955. WriteJSPropertyObject('data',aValue);
  115956. end;
  115957. function TJSRTCEncodedVideoFrame.getMetadata: TJSRTCEncodedVideoFrameMetadata;
  115958. begin
  115959. Result:=InvokeJSObjectResult('getMetadata',[],TJSRTCEncodedVideoFrameMetadata) as TJSRTCEncodedVideoFrameMetadata;
  115960. end;
  115961. class function TJSRTCEncodedVideoFrame.JSClassName: UnicodeString;
  115962. begin
  115963. Result:='RTCEncodedVideoFrame';
  115964. end;
  115965. class function TJSRTCEncodedVideoFrame.Cast(const Intf: IJSObject): IJSRTCEncodedVideoFrame;
  115966. begin
  115967. Result:=TJSRTCEncodedVideoFrame.JOBCast(Intf);
  115968. end;
  115969. function TJSRTCIceCandidateInit._Getcandidate: UnicodeString;
  115970. begin
  115971. Result:=ReadJSPropertyUnicodeString('candidate');
  115972. end;
  115973. function TJSRTCIceCandidateInit._GetsdpMid: UnicodeString;
  115974. begin
  115975. Result:=ReadJSPropertyUnicodeString('sdpMid');
  115976. end;
  115977. function TJSRTCIceCandidateInit._GetsdpMLineIndex: Word;
  115978. begin
  115979. Result:=ReadJSPropertyLongInt('sdpMLineIndex');
  115980. end;
  115981. function TJSRTCIceCandidateInit._GetusernameFragment: UnicodeString;
  115982. begin
  115983. Result:=ReadJSPropertyUnicodeString('usernameFragment');
  115984. end;
  115985. procedure TJSRTCIceCandidateInit._Setcandidate(const aValue : UnicodeString);
  115986. begin
  115987. WriteJSPropertyUnicodeString('candidate',aValue);
  115988. end;
  115989. procedure TJSRTCIceCandidateInit._SetsdpMid(const aValue : UnicodeString);
  115990. begin
  115991. WriteJSPropertyUnicodeString('sdpMid',aValue);
  115992. end;
  115993. procedure TJSRTCIceCandidateInit._SetsdpMLineIndex(const aValue : Word);
  115994. begin
  115995. WriteJSPropertyLongInt('sdpMLineIndex',aValue);
  115996. end;
  115997. procedure TJSRTCIceCandidateInit._SetusernameFragment(const aValue : UnicodeString);
  115998. begin
  115999. WriteJSPropertyUnicodeString('usernameFragment',aValue);
  116000. end;
  116001. class function TJSRTCIceCandidateInit.JSClassName: UnicodeString;
  116002. begin
  116003. Result:='Object';
  116004. end;
  116005. class function TJSRTCIceCandidateInit.Cast(const Intf: IJSObject): IJSRTCIceCandidateInit;
  116006. begin
  116007. Result:=TJSRTCIceCandidateInit.JOBCast(Intf);
  116008. end;
  116009. function TJSRTCIceCandidate._Getcandidate: UnicodeString;
  116010. begin
  116011. Result:=ReadJSPropertyUnicodeString('candidate');
  116012. end;
  116013. function TJSRTCIceCandidate._GetsdpMid: UnicodeString;
  116014. begin
  116015. Result:=ReadJSPropertyUnicodeString('sdpMid');
  116016. end;
  116017. function TJSRTCIceCandidate._GetsdpMLineIndex: Word;
  116018. begin
  116019. Result:=ReadJSPropertyLongInt('sdpMLineIndex');
  116020. end;
  116021. function TJSRTCIceCandidate._Getfoundation: UnicodeString;
  116022. begin
  116023. Result:=ReadJSPropertyUnicodeString('foundation');
  116024. end;
  116025. function TJSRTCIceCandidate._Getcomponent: TRTCIceComponent;
  116026. begin
  116027. Result:=ReadJSPropertyUnicodeString('component');
  116028. end;
  116029. function TJSRTCIceCandidate._Getpriority: Cardinal;
  116030. begin
  116031. Result:=ReadJSPropertyInt64('priority');
  116032. end;
  116033. function TJSRTCIceCandidate._Getaddress: UnicodeString;
  116034. begin
  116035. Result:=ReadJSPropertyUnicodeString('address');
  116036. end;
  116037. function TJSRTCIceCandidate._Getprotocol: TRTCIceProtocol;
  116038. begin
  116039. Result:=ReadJSPropertyUnicodeString('protocol');
  116040. end;
  116041. function TJSRTCIceCandidate._Getport: Word;
  116042. begin
  116043. Result:=ReadJSPropertyLongInt('port');
  116044. end;
  116045. function TJSRTCIceCandidate._Gettype_: TRTCIceCandidateType;
  116046. begin
  116047. Result:=ReadJSPropertyUnicodeString('type');
  116048. end;
  116049. function TJSRTCIceCandidate._GettcpType: TRTCIceTcpCandidateType;
  116050. begin
  116051. Result:=ReadJSPropertyUnicodeString('tcpType');
  116052. end;
  116053. function TJSRTCIceCandidate._GetrelatedAddress: UnicodeString;
  116054. begin
  116055. Result:=ReadJSPropertyUnicodeString('relatedAddress');
  116056. end;
  116057. function TJSRTCIceCandidate._GetrelatedPort: Word;
  116058. begin
  116059. Result:=ReadJSPropertyLongInt('relatedPort');
  116060. end;
  116061. function TJSRTCIceCandidate._GetusernameFragment: UnicodeString;
  116062. begin
  116063. Result:=ReadJSPropertyUnicodeString('usernameFragment');
  116064. end;
  116065. constructor TJSRTCIceCandidate.Create(const aCandidateInitDict: TJSRTCIceCandidateInit);
  116066. begin
  116067. JOBCreate([aCandidateInitDict]);
  116068. end;
  116069. constructor TJSRTCIceCandidate.Create;
  116070. begin
  116071. JOBCreate([]);
  116072. end;
  116073. function TJSRTCIceCandidate.toJSON: TJSRTCIceCandidateInit;
  116074. begin
  116075. Result:=InvokeJSObjectResult('toJSON',[],TJSRTCIceCandidateInit) as TJSRTCIceCandidateInit;
  116076. end;
  116077. class function TJSRTCIceCandidate.JSClassName: UnicodeString;
  116078. begin
  116079. Result:='RTCIceCandidate';
  116080. end;
  116081. class function TJSRTCIceCandidate.Cast(const Intf: IJSObject): IJSRTCIceCandidate;
  116082. begin
  116083. Result:=TJSRTCIceCandidate.JOBCast(Intf);
  116084. end;
  116085. function TJSRTCIceTransport._Getstate: TRTCIceTransportState;
  116086. begin
  116087. Result:=ReadJSPropertyUnicodeString('state');
  116088. end;
  116089. function TJSRTCIceTransport._GetgatheringState: TRTCIceGathererState;
  116090. begin
  116091. Result:=ReadJSPropertyUnicodeString('gatheringState');
  116092. end;
  116093. function TJSRTCIceTransport._Getonstatechange: TEventHandler;
  116094. begin
  116095. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstatechange')));
  116096. end;
  116097. function TJSRTCIceTransport._Getongatheringstatechange: TEventHandler;
  116098. begin
  116099. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongatheringstatechange')));
  116100. end;
  116101. procedure TJSRTCIceTransport._Setonstatechange(const aValue : TEventHandler);
  116102. begin
  116103. WriteJSPropertyMethod('onstatechange',TMethod(aValue));
  116104. end;
  116105. procedure TJSRTCIceTransport._Setongatheringstatechange(const aValue : TEventHandler);
  116106. begin
  116107. WriteJSPropertyMethod('ongatheringstatechange',TMethod(aValue));
  116108. end;
  116109. class function TJSRTCIceTransport.JSClassName: UnicodeString;
  116110. begin
  116111. Result:='RTCIceTransport';
  116112. end;
  116113. class function TJSRTCIceTransport.Cast(const Intf: IJSObject): IJSRTCIceTransport;
  116114. begin
  116115. Result:=TJSRTCIceTransport.JOBCast(Intf);
  116116. end;
  116117. function TJSRTCIdentityAssertion._Getidp: UnicodeString;
  116118. begin
  116119. Result:=ReadJSPropertyUnicodeString('idp');
  116120. end;
  116121. function TJSRTCIdentityAssertion._Getname: UnicodeString;
  116122. begin
  116123. Result:=ReadJSPropertyUnicodeString('name');
  116124. end;
  116125. procedure TJSRTCIdentityAssertion._Setidp(const aValue : UnicodeString);
  116126. begin
  116127. WriteJSPropertyUnicodeString('idp',aValue);
  116128. end;
  116129. procedure TJSRTCIdentityAssertion._Setname(const aValue : UnicodeString);
  116130. begin
  116131. WriteJSPropertyUnicodeString('name',aValue);
  116132. end;
  116133. class function TJSRTCIdentityAssertion.JSClassName: UnicodeString;
  116134. begin
  116135. Result:='Object';
  116136. end;
  116137. class function TJSRTCIdentityAssertion.Cast(const Intf: IJSObject): IJSRTCIdentityAssertion;
  116138. begin
  116139. Result:=TJSRTCIdentityAssertion.JOBCast(Intf);
  116140. end;
  116141. procedure TJSRTCIdentityProviderRegistrar.register(const aIdp: TJSRTCIdentityProvider);
  116142. begin
  116143. InvokeJSNoResult('register',[aIdp]);
  116144. end;
  116145. class function TJSRTCIdentityProviderRegistrar.JSClassName: UnicodeString;
  116146. begin
  116147. Result:='RTCIdentityProviderRegistrar';
  116148. end;
  116149. class function TJSRTCIdentityProviderRegistrar.Cast(const Intf: IJSObject): IJSRTCIdentityProviderRegistrar;
  116150. begin
  116151. Result:=TJSRTCIdentityProviderRegistrar.JOBCast(Intf);
  116152. end;
  116153. function TJSRTCIdentityProvider._GetgenerateAssertion: TGenerateAssertionCallback;
  116154. begin
  116155. Result:=(TGenerateAssertionCallback(ReadJSPropertyMethod('generateAssertion')));
  116156. end;
  116157. function TJSRTCIdentityProvider._GetvalidateAssertion: TValidateAssertionCallback;
  116158. begin
  116159. Result:=(TValidateAssertionCallback(ReadJSPropertyMethod('validateAssertion')));
  116160. end;
  116161. procedure TJSRTCIdentityProvider._SetgenerateAssertion(const aValue : TGenerateAssertionCallback);
  116162. begin
  116163. WriteJSPropertyMethod('generateAssertion',TMethod(aValue));
  116164. end;
  116165. procedure TJSRTCIdentityProvider._SetvalidateAssertion(const aValue : TValidateAssertionCallback);
  116166. begin
  116167. WriteJSPropertyMethod('validateAssertion',TMethod(aValue));
  116168. end;
  116169. class function TJSRTCIdentityProvider.JSClassName: UnicodeString;
  116170. begin
  116171. Result:='Object';
  116172. end;
  116173. class function TJSRTCIdentityProvider.Cast(const Intf: IJSObject): IJSRTCIdentityProvider;
  116174. begin
  116175. Result:=TJSRTCIdentityProvider.JOBCast(Intf);
  116176. end;
  116177. function TJSRTCIdentityAssertionResult._Getidp: TJSRTCIdentityProviderDetails;
  116178. begin
  116179. Result:=ReadJSPropertyObject('idp',TJSRTCIdentityProviderDetails) as TJSRTCIdentityProviderDetails;
  116180. end;
  116181. function TJSRTCIdentityAssertionResult._Getassertion: UnicodeString;
  116182. begin
  116183. Result:=ReadJSPropertyUnicodeString('assertion');
  116184. end;
  116185. procedure TJSRTCIdentityAssertionResult._Setidp(const aValue : TJSRTCIdentityProviderDetails);
  116186. begin
  116187. WriteJSPropertyObject('idp',aValue);
  116188. end;
  116189. procedure TJSRTCIdentityAssertionResult._Setassertion(const aValue : UnicodeString);
  116190. begin
  116191. WriteJSPropertyUnicodeString('assertion',aValue);
  116192. end;
  116193. class function TJSRTCIdentityAssertionResult.JSClassName: UnicodeString;
  116194. begin
  116195. Result:='Object';
  116196. end;
  116197. class function TJSRTCIdentityAssertionResult.Cast(const Intf: IJSObject): IJSRTCIdentityAssertionResult;
  116198. begin
  116199. Result:=TJSRTCIdentityAssertionResult.JOBCast(Intf);
  116200. end;
  116201. function TJSRTCIdentityProviderDetails._Getdomain: UnicodeString;
  116202. begin
  116203. Result:=ReadJSPropertyUnicodeString('domain');
  116204. end;
  116205. function TJSRTCIdentityProviderDetails._Getprotocol: UnicodeString;
  116206. begin
  116207. Result:=ReadJSPropertyUnicodeString('protocol');
  116208. end;
  116209. procedure TJSRTCIdentityProviderDetails._Setdomain(const aValue : UnicodeString);
  116210. begin
  116211. WriteJSPropertyUnicodeString('domain',aValue);
  116212. end;
  116213. procedure TJSRTCIdentityProviderDetails._Setprotocol(const aValue : UnicodeString);
  116214. begin
  116215. WriteJSPropertyUnicodeString('protocol',aValue);
  116216. end;
  116217. class function TJSRTCIdentityProviderDetails.JSClassName: UnicodeString;
  116218. begin
  116219. Result:='Object';
  116220. end;
  116221. class function TJSRTCIdentityProviderDetails.Cast(const Intf: IJSObject): IJSRTCIdentityProviderDetails;
  116222. begin
  116223. Result:=TJSRTCIdentityProviderDetails.JOBCast(Intf);
  116224. end;
  116225. function TJSRTCIdentityValidationResult._Getidentity: UnicodeString;
  116226. begin
  116227. Result:=ReadJSPropertyUnicodeString('identity');
  116228. end;
  116229. function TJSRTCIdentityValidationResult._Getcontents: UnicodeString;
  116230. begin
  116231. Result:=ReadJSPropertyUnicodeString('contents');
  116232. end;
  116233. procedure TJSRTCIdentityValidationResult._Setidentity(const aValue : UnicodeString);
  116234. begin
  116235. WriteJSPropertyUnicodeString('identity',aValue);
  116236. end;
  116237. procedure TJSRTCIdentityValidationResult._Setcontents(const aValue : UnicodeString);
  116238. begin
  116239. WriteJSPropertyUnicodeString('contents',aValue);
  116240. end;
  116241. class function TJSRTCIdentityValidationResult.JSClassName: UnicodeString;
  116242. begin
  116243. Result:='Object';
  116244. end;
  116245. class function TJSRTCIdentityValidationResult.Cast(const Intf: IJSObject): IJSRTCIdentityValidationResult;
  116246. begin
  116247. Result:=TJSRTCIdentityValidationResult.JOBCast(Intf);
  116248. end;
  116249. function TJSRTCIdentityProviderOptions._Getprotocol: UnicodeString;
  116250. begin
  116251. Result:=ReadJSPropertyUnicodeString('protocol');
  116252. end;
  116253. function TJSRTCIdentityProviderOptions._GetusernameHint: UnicodeString;
  116254. begin
  116255. Result:=ReadJSPropertyUnicodeString('usernameHint');
  116256. end;
  116257. function TJSRTCIdentityProviderOptions._GetpeerIdentity: UnicodeString;
  116258. begin
  116259. Result:=ReadJSPropertyUnicodeString('peerIdentity');
  116260. end;
  116261. procedure TJSRTCIdentityProviderOptions._Setprotocol(const aValue : UnicodeString);
  116262. begin
  116263. WriteJSPropertyUnicodeString('protocol',aValue);
  116264. end;
  116265. procedure TJSRTCIdentityProviderOptions._SetusernameHint(const aValue : UnicodeString);
  116266. begin
  116267. WriteJSPropertyUnicodeString('usernameHint',aValue);
  116268. end;
  116269. procedure TJSRTCIdentityProviderOptions._SetpeerIdentity(const aValue : UnicodeString);
  116270. begin
  116271. WriteJSPropertyUnicodeString('peerIdentity',aValue);
  116272. end;
  116273. class function TJSRTCIdentityProviderOptions.JSClassName: UnicodeString;
  116274. begin
  116275. Result:='Object';
  116276. end;
  116277. class function TJSRTCIdentityProviderOptions.Cast(const Intf: IJSObject): IJSRTCIdentityProviderOptions;
  116278. begin
  116279. Result:=TJSRTCIdentityProviderOptions.JOBCast(Intf);
  116280. end;
  116281. function TJSRTCDataChannelInit._Getordered: Boolean;
  116282. begin
  116283. Result:=ReadJSPropertyBoolean('ordered');
  116284. end;
  116285. function TJSRTCDataChannelInit._GetmaxPacketLifeTime: Word;
  116286. begin
  116287. Result:=ReadJSPropertyLongInt('maxPacketLifeTime');
  116288. end;
  116289. function TJSRTCDataChannelInit._GetmaxRetransmits: Word;
  116290. begin
  116291. Result:=ReadJSPropertyLongInt('maxRetransmits');
  116292. end;
  116293. function TJSRTCDataChannelInit._Getprotocol: UnicodeString;
  116294. begin
  116295. Result:=ReadJSPropertyUnicodeString('protocol');
  116296. end;
  116297. function TJSRTCDataChannelInit._Getnegotiated: Boolean;
  116298. begin
  116299. Result:=ReadJSPropertyBoolean('negotiated');
  116300. end;
  116301. function TJSRTCDataChannelInit._Getid: Word;
  116302. begin
  116303. Result:=ReadJSPropertyLongInt('id');
  116304. end;
  116305. function TJSRTCDataChannelInit._GetmaxRetransmitTime: Word;
  116306. begin
  116307. Result:=ReadJSPropertyLongInt('maxRetransmitTime');
  116308. end;
  116309. procedure TJSRTCDataChannelInit._Setordered(const aValue : Boolean);
  116310. begin
  116311. WriteJSPropertyBoolean('ordered',aValue);
  116312. end;
  116313. procedure TJSRTCDataChannelInit._SetmaxPacketLifeTime(const aValue : Word);
  116314. begin
  116315. WriteJSPropertyLongInt('maxPacketLifeTime',aValue);
  116316. end;
  116317. procedure TJSRTCDataChannelInit._SetmaxRetransmits(const aValue : Word);
  116318. begin
  116319. WriteJSPropertyLongInt('maxRetransmits',aValue);
  116320. end;
  116321. procedure TJSRTCDataChannelInit._Setprotocol(const aValue : UnicodeString);
  116322. begin
  116323. WriteJSPropertyUnicodeString('protocol',aValue);
  116324. end;
  116325. procedure TJSRTCDataChannelInit._Setnegotiated(const aValue : Boolean);
  116326. begin
  116327. WriteJSPropertyBoolean('negotiated',aValue);
  116328. end;
  116329. procedure TJSRTCDataChannelInit._Setid(const aValue : Word);
  116330. begin
  116331. WriteJSPropertyLongInt('id',aValue);
  116332. end;
  116333. procedure TJSRTCDataChannelInit._SetmaxRetransmitTime(const aValue : Word);
  116334. begin
  116335. WriteJSPropertyLongInt('maxRetransmitTime',aValue);
  116336. end;
  116337. class function TJSRTCDataChannelInit.JSClassName: UnicodeString;
  116338. begin
  116339. Result:='Object';
  116340. end;
  116341. class function TJSRTCDataChannelInit.Cast(const Intf: IJSObject): IJSRTCDataChannelInit;
  116342. begin
  116343. Result:=TJSRTCDataChannelInit.JOBCast(Intf);
  116344. end;
  116345. class function TJSRTCOfferAnswerOptions.JSClassName: UnicodeString;
  116346. begin
  116347. Result:='Object';
  116348. end;
  116349. class function TJSRTCOfferAnswerOptions.Cast(const Intf: IJSObject): IJSRTCOfferAnswerOptions;
  116350. begin
  116351. Result:=TJSRTCOfferAnswerOptions.JOBCast(Intf);
  116352. end;
  116353. class function TJSRTCAnswerOptions.JSClassName: UnicodeString;
  116354. begin
  116355. Result:='Object';
  116356. end;
  116357. class function TJSRTCAnswerOptions.Cast(const Intf: IJSObject): IJSRTCAnswerOptions;
  116358. begin
  116359. Result:=TJSRTCAnswerOptions.JOBCast(Intf);
  116360. end;
  116361. function TJSRTCOfferOptions._GetofferToReceiveVideo: Boolean;
  116362. begin
  116363. Result:=ReadJSPropertyBoolean('offerToReceiveVideo');
  116364. end;
  116365. function TJSRTCOfferOptions._GetofferToReceiveAudio: Boolean;
  116366. begin
  116367. Result:=ReadJSPropertyBoolean('offerToReceiveAudio');
  116368. end;
  116369. function TJSRTCOfferOptions._GeticeRestart: Boolean;
  116370. begin
  116371. Result:=ReadJSPropertyBoolean('iceRestart');
  116372. end;
  116373. procedure TJSRTCOfferOptions._SetofferToReceiveVideo(const aValue : Boolean);
  116374. begin
  116375. WriteJSPropertyBoolean('offerToReceiveVideo',aValue);
  116376. end;
  116377. procedure TJSRTCOfferOptions._SetofferToReceiveAudio(const aValue : Boolean);
  116378. begin
  116379. WriteJSPropertyBoolean('offerToReceiveAudio',aValue);
  116380. end;
  116381. procedure TJSRTCOfferOptions._SeticeRestart(const aValue : Boolean);
  116382. begin
  116383. WriteJSPropertyBoolean('iceRestart',aValue);
  116384. end;
  116385. class function TJSRTCOfferOptions.JSClassName: UnicodeString;
  116386. begin
  116387. Result:='Object';
  116388. end;
  116389. class function TJSRTCOfferOptions.Cast(const Intf: IJSObject): IJSRTCOfferOptions;
  116390. begin
  116391. Result:=TJSRTCOfferOptions.JOBCast(Intf);
  116392. end;
  116393. function TJSRTCPeerConnection._GetlocalDescription: IJSRTCSessionDescription;
  116394. begin
  116395. Result:=ReadJSPropertyObject('localDescription',TJSRTCSessionDescription) as IJSRTCSessionDescription;
  116396. end;
  116397. function TJSRTCPeerConnection._GetcurrentLocalDescription: IJSRTCSessionDescription;
  116398. begin
  116399. Result:=ReadJSPropertyObject('currentLocalDescription',TJSRTCSessionDescription) as IJSRTCSessionDescription;
  116400. end;
  116401. function TJSRTCPeerConnection._GetpendingLocalDescription: IJSRTCSessionDescription;
  116402. begin
  116403. Result:=ReadJSPropertyObject('pendingLocalDescription',TJSRTCSessionDescription) as IJSRTCSessionDescription;
  116404. end;
  116405. function TJSRTCPeerConnection._GetremoteDescription: IJSRTCSessionDescription;
  116406. begin
  116407. Result:=ReadJSPropertyObject('remoteDescription',TJSRTCSessionDescription) as IJSRTCSessionDescription;
  116408. end;
  116409. function TJSRTCPeerConnection._GetcurrentRemoteDescription: IJSRTCSessionDescription;
  116410. begin
  116411. Result:=ReadJSPropertyObject('currentRemoteDescription',TJSRTCSessionDescription) as IJSRTCSessionDescription;
  116412. end;
  116413. function TJSRTCPeerConnection._GetpendingRemoteDescription: IJSRTCSessionDescription;
  116414. begin
  116415. Result:=ReadJSPropertyObject('pendingRemoteDescription',TJSRTCSessionDescription) as IJSRTCSessionDescription;
  116416. end;
  116417. function TJSRTCPeerConnection._GetsignalingState: TRTCSignalingState;
  116418. begin
  116419. Result:=ReadJSPropertyUnicodeString('signalingState');
  116420. end;
  116421. function TJSRTCPeerConnection._GetcanTrickleIceCandidates: Boolean;
  116422. begin
  116423. Result:=ReadJSPropertyBoolean('canTrickleIceCandidates');
  116424. end;
  116425. function TJSRTCPeerConnection._GeticeGatheringState: TRTCIceGatheringState;
  116426. begin
  116427. Result:=ReadJSPropertyUnicodeString('iceGatheringState');
  116428. end;
  116429. function TJSRTCPeerConnection._GeticeConnectionState: TRTCIceConnectionState;
  116430. begin
  116431. Result:=ReadJSPropertyUnicodeString('iceConnectionState');
  116432. end;
  116433. function TJSRTCPeerConnection._GetconnectionState: TRTCPeerConnectionState;
  116434. begin
  116435. Result:=ReadJSPropertyUnicodeString('connectionState');
  116436. end;
  116437. function TJSRTCPeerConnection._GetpeerIdentity: IJSPromise;
  116438. begin
  116439. Result:=ReadJSPropertyObject('peerIdentity',TJSPromise) as IJSPromise;
  116440. end;
  116441. function TJSRTCPeerConnection._GetidpLoginUrl: UnicodeString;
  116442. begin
  116443. Result:=ReadJSPropertyUnicodeString('idpLoginUrl');
  116444. end;
  116445. function TJSRTCPeerConnection._Getonnegotiationneeded: TEventHandler;
  116446. begin
  116447. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onnegotiationneeded')));
  116448. end;
  116449. function TJSRTCPeerConnection._Getonicecandidate: TEventHandler;
  116450. begin
  116451. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onicecandidate')));
  116452. end;
  116453. function TJSRTCPeerConnection._Getonsignalingstatechange: TEventHandler;
  116454. begin
  116455. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsignalingstatechange')));
  116456. end;
  116457. function TJSRTCPeerConnection._Getonaddstream: TEventHandler;
  116458. begin
  116459. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onaddstream')));
  116460. end;
  116461. function TJSRTCPeerConnection._Getonaddtrack: TEventHandler;
  116462. begin
  116463. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onaddtrack')));
  116464. end;
  116465. function TJSRTCPeerConnection._Getontrack: TEventHandler;
  116466. begin
  116467. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontrack')));
  116468. end;
  116469. function TJSRTCPeerConnection._Getoniceconnectionstatechange: TEventHandler;
  116470. begin
  116471. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oniceconnectionstatechange')));
  116472. end;
  116473. function TJSRTCPeerConnection._Getonicegatheringstatechange: TEventHandler;
  116474. begin
  116475. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onicegatheringstatechange')));
  116476. end;
  116477. function TJSRTCPeerConnection._Getonconnectionstatechange: TEventHandler;
  116478. begin
  116479. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onconnectionstatechange')));
  116480. end;
  116481. function TJSRTCPeerConnection._Getsctp: IJSRTCSctpTransport;
  116482. begin
  116483. Result:=ReadJSPropertyObject('sctp',TJSRTCSctpTransport) as IJSRTCSctpTransport;
  116484. end;
  116485. function TJSRTCPeerConnection._Getondatachannel: TEventHandler;
  116486. begin
  116487. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondatachannel')));
  116488. end;
  116489. procedure TJSRTCPeerConnection._Setonnegotiationneeded(const aValue : TEventHandler);
  116490. begin
  116491. WriteJSPropertyMethod('onnegotiationneeded',TMethod(aValue));
  116492. end;
  116493. procedure TJSRTCPeerConnection._Setonicecandidate(const aValue : TEventHandler);
  116494. begin
  116495. WriteJSPropertyMethod('onicecandidate',TMethod(aValue));
  116496. end;
  116497. procedure TJSRTCPeerConnection._Setonsignalingstatechange(const aValue : TEventHandler);
  116498. begin
  116499. WriteJSPropertyMethod('onsignalingstatechange',TMethod(aValue));
  116500. end;
  116501. procedure TJSRTCPeerConnection._Setonaddstream(const aValue : TEventHandler);
  116502. begin
  116503. WriteJSPropertyMethod('onaddstream',TMethod(aValue));
  116504. end;
  116505. procedure TJSRTCPeerConnection._Setonaddtrack(const aValue : TEventHandler);
  116506. begin
  116507. WriteJSPropertyMethod('onaddtrack',TMethod(aValue));
  116508. end;
  116509. procedure TJSRTCPeerConnection._Setontrack(const aValue : TEventHandler);
  116510. begin
  116511. WriteJSPropertyMethod('ontrack',TMethod(aValue));
  116512. end;
  116513. procedure TJSRTCPeerConnection._Setoniceconnectionstatechange(const aValue : TEventHandler);
  116514. begin
  116515. WriteJSPropertyMethod('oniceconnectionstatechange',TMethod(aValue));
  116516. end;
  116517. procedure TJSRTCPeerConnection._Setonicegatheringstatechange(const aValue : TEventHandler);
  116518. begin
  116519. WriteJSPropertyMethod('onicegatheringstatechange',TMethod(aValue));
  116520. end;
  116521. procedure TJSRTCPeerConnection._Setonconnectionstatechange(const aValue : TEventHandler);
  116522. begin
  116523. WriteJSPropertyMethod('onconnectionstatechange',TMethod(aValue));
  116524. end;
  116525. procedure TJSRTCPeerConnection._Setondatachannel(const aValue : TEventHandler);
  116526. begin
  116527. WriteJSPropertyMethod('ondatachannel',TMethod(aValue));
  116528. end;
  116529. constructor TJSRTCPeerConnection.Create(const aConfiguration: TJSRTCConfiguration);
  116530. begin
  116531. JOBCreate([aConfiguration]);
  116532. end;
  116533. constructor TJSRTCPeerConnection.Create;
  116534. begin
  116535. JOBCreate([]);
  116536. end;
  116537. function TJSRTCPeerConnection.generateCertificate(const aKeygenAlgorithm: UnicodeString): IJSPromise; // Promise<RTCCertificate>
  116538. begin
  116539. Result:=InvokeJSObjectResult('generateCertificate',[aKeygenAlgorithm],TJSPromise) as IJSPromise;
  116540. end;
  116541. function TJSRTCPeerConnection.generateCertificate(aKeygenAlgorithm: IJSObject): IJSPromise; // Promise<RTCCertificate>
  116542. begin
  116543. Result:=InvokeJSObjectResult('generateCertificate',[aKeygenAlgorithm],TJSPromise) as IJSPromise;
  116544. end;
  116545. procedure TJSRTCPeerConnection.setIdentityProvider(const aProvider: UnicodeString; const aOptions: TJSRTCIdentityProviderOptions);
  116546. begin
  116547. InvokeJSNoResult('setIdentityProvider',[aProvider,aOptions]);
  116548. end;
  116549. procedure TJSRTCPeerConnection.setIdentityProvider(const aProvider: UnicodeString);
  116550. begin
  116551. InvokeJSNoResult('setIdentityProvider',[aProvider]);
  116552. end;
  116553. function TJSRTCPeerConnection.getIdentityAssertion: IJSPromise; // Promise<DOMString>
  116554. begin
  116555. Result:=InvokeJSObjectResult('getIdentityAssertion',[],TJSPromise) as IJSPromise;
  116556. end;
  116557. function TJSRTCPeerConnection.createOffer(const aOptions: TJSRTCOfferOptions): IJSPromise; // Promise<RTCSessionDescriptionInit>
  116558. begin
  116559. Result:=InvokeJSObjectResult('createOffer',[aOptions],TJSPromise) as IJSPromise;
  116560. end;
  116561. function TJSRTCPeerConnection.createOffer: IJSPromise; // Promise<RTCSessionDescriptionInit>
  116562. begin
  116563. Result:=InvokeJSObjectResult('createOffer',[],TJSPromise) as IJSPromise;
  116564. end;
  116565. function TJSRTCPeerConnection.createAnswer(const aOptions: TJSRTCAnswerOptions): IJSPromise; // Promise<RTCSessionDescriptionInit>
  116566. begin
  116567. Result:=InvokeJSObjectResult('createAnswer',[aOptions],TJSPromise) as IJSPromise;
  116568. end;
  116569. function TJSRTCPeerConnection.createAnswer: IJSPromise; // Promise<RTCSessionDescriptionInit>
  116570. begin
  116571. Result:=InvokeJSObjectResult('createAnswer',[],TJSPromise) as IJSPromise;
  116572. end;
  116573. function TJSRTCPeerConnection.setLocalDescription(const aDescription: TJSRTCLocalSessionDescriptionInit): IJSPromise; // Promise<undefined>
  116574. begin
  116575. Result:=InvokeJSObjectResult('setLocalDescription',[aDescription],TJSPromise) as IJSPromise;
  116576. end;
  116577. function TJSRTCPeerConnection.setLocalDescription: IJSPromise; // Promise<undefined>
  116578. begin
  116579. Result:=InvokeJSObjectResult('setLocalDescription',[],TJSPromise) as IJSPromise;
  116580. end;
  116581. function TJSRTCPeerConnection.setRemoteDescription(const aDescription: TJSRTCSessionDescriptionInit): IJSPromise; // Promise<undefined>
  116582. begin
  116583. Result:=InvokeJSObjectResult('setRemoteDescription',[aDescription],TJSPromise) as IJSPromise;
  116584. end;
  116585. function TJSRTCPeerConnection.addIceCandidate(aCandidate: IJSRTCIceCandidate): IJSPromise; // Promise<undefined>
  116586. begin
  116587. Result:=InvokeJSObjectResult('addIceCandidate',[aCandidate],TJSPromise) as IJSPromise;
  116588. end;
  116589. function TJSRTCPeerConnection.addIceCandidate: IJSPromise; // Promise<undefined>
  116590. begin
  116591. Result:=InvokeJSObjectResult('addIceCandidate',[],TJSPromise) as IJSPromise;
  116592. end;
  116593. function TJSRTCPeerConnection.addIceCandidate(const aCandidate: TJSRTCIceCandidateInit): IJSPromise; // Promise<undefined>
  116594. begin
  116595. Result:=InvokeJSObjectResult('addIceCandidate',[aCandidate],TJSPromise) as IJSPromise;
  116596. end;
  116597. procedure TJSRTCPeerConnection.restartIce;
  116598. begin
  116599. InvokeJSNoResult('restartIce',[]);
  116600. end;
  116601. function TJSRTCPeerConnection.getConfiguration: TJSRTCConfiguration;
  116602. begin
  116603. Result:=InvokeJSObjectResult('getConfiguration',[],TJSRTCConfiguration) as TJSRTCConfiguration;
  116604. end;
  116605. procedure TJSRTCPeerConnection.setConfiguration(const aConfiguration: TJSRTCConfiguration);
  116606. begin
  116607. InvokeJSNoResult('setConfiguration',[aConfiguration]);
  116608. end;
  116609. procedure TJSRTCPeerConnection.setConfiguration;
  116610. begin
  116611. InvokeJSNoResult('setConfiguration',[]);
  116612. end;
  116613. function TJSRTCPeerConnection.getLocalStreams: TJSMediaStreamDynArray;
  116614. begin
  116615. Result:=InvokeJSObjectResult('getLocalStreams',[],TJSArray) as TJSMediaStreamDynArray;
  116616. end;
  116617. function TJSRTCPeerConnection.getRemoteStreams: TJSMediaStreamDynArray;
  116618. begin
  116619. Result:=InvokeJSObjectResult('getRemoteStreams',[],TJSArray) as TJSMediaStreamDynArray;
  116620. end;
  116621. procedure TJSRTCPeerConnection.addStream(aStream: IJSMediaStream);
  116622. begin
  116623. InvokeJSNoResult('addStream',[aStream]);
  116624. end;
  116625. function TJSRTCPeerConnection.addTrack(aTrack: IJSMediaStreamTrack; aStreams: IJSMediaStream): IJSRTCRtpSender{; ToDo:varargs};
  116626. begin
  116627. Result:=InvokeJSObjectResult('addTrack',[aTrack,aStreams],TJSRTCRtpSender) as IJSRTCRtpSender;
  116628. end;
  116629. procedure TJSRTCPeerConnection.removeTrack(aSender: IJSRTCRtpSender);
  116630. begin
  116631. InvokeJSNoResult('removeTrack',[aSender]);
  116632. end;
  116633. function TJSRTCPeerConnection.addTransceiver(const aTrackOrKind: UnicodeString; const aInit: TJSRTCRtpTransceiverInit): IJSRTCRtpTransceiver;
  116634. begin
  116635. Result:=InvokeJSObjectResult('addTransceiver',[aTrackOrKind,aInit],TJSRTCRtpTransceiver) as IJSRTCRtpTransceiver;
  116636. end;
  116637. function TJSRTCPeerConnection.addTransceiver(aTrackOrKind: IJSMediaStreamTrack; const aInit: TJSRTCRtpTransceiverInit): IJSRTCRtpTransceiver;
  116638. begin
  116639. Result:=InvokeJSObjectResult('addTransceiver',[aTrackOrKind,aInit],TJSRTCRtpTransceiver) as IJSRTCRtpTransceiver;
  116640. end;
  116641. function TJSRTCPeerConnection.addTransceiver(aTrackOrKind: IJSMediaStreamTrack): IJSRTCRtpTransceiver;
  116642. begin
  116643. Result:=InvokeJSObjectResult('addTransceiver',[aTrackOrKind],TJSRTCRtpTransceiver) as IJSRTCRtpTransceiver;
  116644. end;
  116645. function TJSRTCPeerConnection.addTransceiver(const aTrackOrKind: UnicodeString): IJSRTCRtpTransceiver;
  116646. begin
  116647. Result:=InvokeJSObjectResult('addTransceiver',[aTrackOrKind],TJSRTCRtpTransceiver) as IJSRTCRtpTransceiver;
  116648. end;
  116649. function TJSRTCPeerConnection.getSenders: TJSRTCRtpSenderDynArray;
  116650. begin
  116651. Result:=InvokeJSObjectResult('getSenders',[],TJSArray) as TJSRTCRtpSenderDynArray;
  116652. end;
  116653. function TJSRTCPeerConnection.getReceivers: TJSRTCRtpReceiverDynArray;
  116654. begin
  116655. Result:=InvokeJSObjectResult('getReceivers',[],TJSArray) as TJSRTCRtpReceiverDynArray;
  116656. end;
  116657. function TJSRTCPeerConnection.getTransceivers: TJSRTCRtpTransceiverDynArray;
  116658. begin
  116659. Result:=InvokeJSObjectResult('getTransceivers',[],TJSArray) as TJSRTCRtpTransceiverDynArray;
  116660. end;
  116661. procedure TJSRTCPeerConnection.close;
  116662. begin
  116663. InvokeJSNoResult('close',[]);
  116664. end;
  116665. function TJSRTCPeerConnection.getStats(aSelector: IJSMediaStreamTrack): IJSPromise; // Promise<RTCStatsReport>
  116666. begin
  116667. Result:=InvokeJSObjectResult('getStats',[aSelector],TJSPromise) as IJSPromise;
  116668. end;
  116669. function TJSRTCPeerConnection.getStats: IJSPromise; // Promise<RTCStatsReport>
  116670. begin
  116671. Result:=InvokeJSObjectResult('getStats',[],TJSPromise) as IJSPromise;
  116672. end;
  116673. function TJSRTCPeerConnection.createDataChannel(const aLabel_: UnicodeString; const aDataChannelDict: TJSRTCDataChannelInit): IJSRTCDataChannel;
  116674. begin
  116675. Result:=InvokeJSObjectResult('createDataChannel',[aLabel_,aDataChannelDict],TJSRTCDataChannel) as IJSRTCDataChannel;
  116676. end;
  116677. function TJSRTCPeerConnection.createDataChannel(const aLabel_: UnicodeString): IJSRTCDataChannel;
  116678. begin
  116679. Result:=InvokeJSObjectResult('createDataChannel',[aLabel_],TJSRTCDataChannel) as IJSRTCDataChannel;
  116680. end;
  116681. function TJSRTCPeerConnection.createOffer(const aSuccessCallback: TRTCSessionDescriptionCallback; const aFailureCallback: TRTCPeerConnectionErrorCallback; const aOptions: TJSRTCOfferOptions): IJSPromise; // Promise<undefined>
  116682. var
  116683. m: TJOB_Method;
  116684. m2: TJOB_Method;
  116685. begin
  116686. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallRTCSessionDescriptionCallback);
  116687. m2:=TJOB_Method.Create(TMethod(aFailureCallback),@JOBCallRTCPeerConnectionErrorCallback);
  116688. try
  116689. Result:=InvokeJSObjectResult('createOffer',[m,m2,aOptions],TJSPromise) as IJSPromise;
  116690. finally
  116691. m.free;
  116692. m2.free;
  116693. end;
  116694. end;
  116695. function TJSRTCPeerConnection.createOffer(const aSuccessCallback: TRTCSessionDescriptionCallback; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; // Promise<undefined>
  116696. var
  116697. m: TJOB_Method;
  116698. m2: TJOB_Method;
  116699. begin
  116700. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallRTCSessionDescriptionCallback);
  116701. m2:=TJOB_Method.Create(TMethod(aFailureCallback),@JOBCallRTCPeerConnectionErrorCallback);
  116702. try
  116703. Result:=InvokeJSObjectResult('createOffer',[m,m2],TJSPromise) as IJSPromise;
  116704. finally
  116705. m.free;
  116706. m2.free;
  116707. end;
  116708. end;
  116709. function TJSRTCPeerConnection.setLocalDescription(const aDescription: TJSRTCLocalSessionDescriptionInit; const aSuccessCallback: TVoidFunction; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; // Promise<undefined>
  116710. var
  116711. m: TJOB_Method;
  116712. m2: TJOB_Method;
  116713. begin
  116714. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallVoidFunction);
  116715. m2:=TJOB_Method.Create(TMethod(aFailureCallback),@JOBCallRTCPeerConnectionErrorCallback);
  116716. try
  116717. Result:=InvokeJSObjectResult('setLocalDescription',[aDescription,m,m2],TJSPromise) as IJSPromise;
  116718. finally
  116719. m.free;
  116720. m2.free;
  116721. end;
  116722. end;
  116723. function TJSRTCPeerConnection.createAnswer(const aSuccessCallback: TRTCSessionDescriptionCallback; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; // Promise<undefined>
  116724. var
  116725. m: TJOB_Method;
  116726. m2: TJOB_Method;
  116727. begin
  116728. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallRTCSessionDescriptionCallback);
  116729. m2:=TJOB_Method.Create(TMethod(aFailureCallback),@JOBCallRTCPeerConnectionErrorCallback);
  116730. try
  116731. Result:=InvokeJSObjectResult('createAnswer',[m,m2],TJSPromise) as IJSPromise;
  116732. finally
  116733. m.free;
  116734. m2.free;
  116735. end;
  116736. end;
  116737. function TJSRTCPeerConnection.setRemoteDescription(const aDescription: TJSRTCSessionDescriptionInit; const aSuccessCallback: TVoidFunction; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; // Promise<undefined>
  116738. var
  116739. m: TJOB_Method;
  116740. m2: TJOB_Method;
  116741. begin
  116742. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallVoidFunction);
  116743. m2:=TJOB_Method.Create(TMethod(aFailureCallback),@JOBCallRTCPeerConnectionErrorCallback);
  116744. try
  116745. Result:=InvokeJSObjectResult('setRemoteDescription',[aDescription,m,m2],TJSPromise) as IJSPromise;
  116746. finally
  116747. m.free;
  116748. m2.free;
  116749. end;
  116750. end;
  116751. function TJSRTCPeerConnection.addIceCandidate(const aCandidate: TJSRTCIceCandidateInit; const aSuccessCallback: TVoidFunction; const aFailureCallback: TRTCPeerConnectionErrorCallback): IJSPromise; // Promise<undefined>
  116752. var
  116753. m: TJOB_Method;
  116754. m2: TJOB_Method;
  116755. begin
  116756. m:=TJOB_Method.Create(TMethod(aSuccessCallback),@JOBCallVoidFunction);
  116757. m2:=TJOB_Method.Create(TMethod(aFailureCallback),@JOBCallRTCPeerConnectionErrorCallback);
  116758. try
  116759. Result:=InvokeJSObjectResult('addIceCandidate',[aCandidate,m,m2],TJSPromise) as IJSPromise;
  116760. finally
  116761. m.free;
  116762. m2.free;
  116763. end;
  116764. end;
  116765. class function TJSRTCPeerConnection.JSClassName: UnicodeString;
  116766. begin
  116767. Result:='RTCPeerConnection';
  116768. end;
  116769. class function TJSRTCPeerConnection.Cast(const Intf: IJSObject): IJSRTCPeerConnection;
  116770. begin
  116771. Result:=TJSRTCPeerConnection.JOBCast(Intf);
  116772. end;
  116773. function TJSRTCPeerConnectionIceEventInit._Getcandidate: IJSRTCIceCandidate;
  116774. begin
  116775. Result:=ReadJSPropertyObject('candidate',TJSRTCIceCandidate) as IJSRTCIceCandidate;
  116776. end;
  116777. procedure TJSRTCPeerConnectionIceEventInit._Setcandidate(const aValue : IJSRTCIceCandidate);
  116778. begin
  116779. WriteJSPropertyObject('candidate',aValue);
  116780. end;
  116781. class function TJSRTCPeerConnectionIceEventInit.JSClassName: UnicodeString;
  116782. begin
  116783. Result:='Object';
  116784. end;
  116785. class function TJSRTCPeerConnectionIceEventInit.Cast(const Intf: IJSObject): IJSRTCPeerConnectionIceEventInit;
  116786. begin
  116787. Result:=TJSRTCPeerConnectionIceEventInit.JOBCast(Intf);
  116788. end;
  116789. function TJSRTCPeerConnectionIceEvent._Getcandidate: IJSRTCIceCandidate;
  116790. begin
  116791. Result:=ReadJSPropertyObject('candidate',TJSRTCIceCandidate) as IJSRTCIceCandidate;
  116792. end;
  116793. constructor TJSRTCPeerConnectionIceEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSRTCPeerConnectionIceEventInit);
  116794. begin
  116795. JOBCreate([aType_,aEventInitDict]);
  116796. end;
  116797. constructor TJSRTCPeerConnectionIceEvent.Create(const aType_: UnicodeString);
  116798. begin
  116799. JOBCreate([aType_]);
  116800. end;
  116801. class function TJSRTCPeerConnectionIceEvent.JSClassName: UnicodeString;
  116802. begin
  116803. Result:='RTCPeerConnectionIceEvent';
  116804. end;
  116805. class function TJSRTCPeerConnectionIceEvent.Cast(const Intf: IJSObject): IJSRTCPeerConnectionIceEvent;
  116806. begin
  116807. Result:=TJSRTCPeerConnectionIceEvent.JOBCast(Intf);
  116808. end;
  116809. function TJSRTCRtpCapabilities._Getcodecs: TJSRTCRtpCodecCapabilityDynArray;
  116810. begin
  116811. Result:=ReadJSPropertyObject('codecs',TJSArray) as TJSRTCRtpCodecCapabilityDynArray;
  116812. end;
  116813. function TJSRTCRtpCapabilities._GetheaderExtensions: TJSRTCRtpHeaderExtensionCapabilityDynArray;
  116814. begin
  116815. Result:=ReadJSPropertyObject('headerExtensions',TJSArray) as TJSRTCRtpHeaderExtensionCapabilityDynArray;
  116816. end;
  116817. procedure TJSRTCRtpCapabilities._Setcodecs(const aValue : TJSRTCRtpCodecCapabilityDynArray);
  116818. begin
  116819. WriteJSPropertyObject('codecs',aValue);
  116820. end;
  116821. procedure TJSRTCRtpCapabilities._SetheaderExtensions(const aValue : TJSRTCRtpHeaderExtensionCapabilityDynArray);
  116822. begin
  116823. WriteJSPropertyObject('headerExtensions',aValue);
  116824. end;
  116825. class function TJSRTCRtpCapabilities.JSClassName: UnicodeString;
  116826. begin
  116827. Result:='Object';
  116828. end;
  116829. class function TJSRTCRtpCapabilities.Cast(const Intf: IJSObject): IJSRTCRtpCapabilities;
  116830. begin
  116831. Result:=TJSRTCRtpCapabilities.JOBCast(Intf);
  116832. end;
  116833. class function TJSRTCRtpCodecCapability.JSClassName: UnicodeString;
  116834. begin
  116835. Result:='Object';
  116836. end;
  116837. class function TJSRTCRtpCodecCapability.Cast(const Intf: IJSObject): IJSRTCRtpCodecCapability;
  116838. begin
  116839. Result:=TJSRTCRtpCodecCapability.JOBCast(Intf);
  116840. end;
  116841. function TJSRTCRtpCodec._GetmimeType: UnicodeString;
  116842. begin
  116843. Result:=ReadJSPropertyUnicodeString('mimeType');
  116844. end;
  116845. function TJSRTCRtpCodec._GetclockRate: Cardinal;
  116846. begin
  116847. Result:=ReadJSPropertyInt64('clockRate');
  116848. end;
  116849. function TJSRTCRtpCodec._Getchannels: Word;
  116850. begin
  116851. Result:=ReadJSPropertyLongInt('channels');
  116852. end;
  116853. function TJSRTCRtpCodec._GetsdpFmtpLine: UnicodeString;
  116854. begin
  116855. Result:=ReadJSPropertyUnicodeString('sdpFmtpLine');
  116856. end;
  116857. procedure TJSRTCRtpCodec._SetmimeType(const aValue : UnicodeString);
  116858. begin
  116859. WriteJSPropertyUnicodeString('mimeType',aValue);
  116860. end;
  116861. procedure TJSRTCRtpCodec._SetclockRate(const aValue : Cardinal);
  116862. begin
  116863. WriteJSPropertyDouble('clockRate',aValue);
  116864. end;
  116865. procedure TJSRTCRtpCodec._Setchannels(const aValue : Word);
  116866. begin
  116867. WriteJSPropertyLongInt('channels',aValue);
  116868. end;
  116869. procedure TJSRTCRtpCodec._SetsdpFmtpLine(const aValue : UnicodeString);
  116870. begin
  116871. WriteJSPropertyUnicodeString('sdpFmtpLine',aValue);
  116872. end;
  116873. class function TJSRTCRtpCodec.JSClassName: UnicodeString;
  116874. begin
  116875. Result:='Object';
  116876. end;
  116877. class function TJSRTCRtpCodec.Cast(const Intf: IJSObject): IJSRTCRtpCodec;
  116878. begin
  116879. Result:=TJSRTCRtpCodec.JOBCast(Intf);
  116880. end;
  116881. function TJSRTCRtpHeaderExtensionCapability._Geturi: UnicodeString;
  116882. begin
  116883. Result:=ReadJSPropertyUnicodeString('uri');
  116884. end;
  116885. procedure TJSRTCRtpHeaderExtensionCapability._Seturi(const aValue : UnicodeString);
  116886. begin
  116887. WriteJSPropertyUnicodeString('uri',aValue);
  116888. end;
  116889. class function TJSRTCRtpHeaderExtensionCapability.JSClassName: UnicodeString;
  116890. begin
  116891. Result:='Object';
  116892. end;
  116893. class function TJSRTCRtpHeaderExtensionCapability.Cast(const Intf: IJSObject): IJSRTCRtpHeaderExtensionCapability;
  116894. begin
  116895. Result:=TJSRTCRtpHeaderExtensionCapability.JOBCast(Intf);
  116896. end;
  116897. function TJSRTCRtpEncodingParameters._Getactive: Boolean;
  116898. begin
  116899. Result:=ReadJSPropertyBoolean('active');
  116900. end;
  116901. function TJSRTCRtpEncodingParameters._Getpriority: TRTCPriorityType;
  116902. begin
  116903. Result:=ReadJSPropertyUnicodeString('priority');
  116904. end;
  116905. function TJSRTCRtpEncodingParameters._GetmaxBitrate: Cardinal;
  116906. begin
  116907. Result:=ReadJSPropertyInt64('maxBitrate');
  116908. end;
  116909. function TJSRTCRtpEncodingParameters._Getrid: UnicodeString;
  116910. begin
  116911. Result:=ReadJSPropertyUnicodeString('rid');
  116912. end;
  116913. function TJSRTCRtpEncodingParameters._GetscaleResolutionDownBy: Double;
  116914. begin
  116915. Result:=ReadJSPropertyDouble('scaleResolutionDownBy');
  116916. end;
  116917. function TJSRTCRtpEncodingParameters._GetmaxFramerate: Double;
  116918. begin
  116919. Result:=ReadJSPropertyDouble('maxFramerate');
  116920. end;
  116921. procedure TJSRTCRtpEncodingParameters._Setactive(const aValue : Boolean);
  116922. begin
  116923. WriteJSPropertyBoolean('active',aValue);
  116924. end;
  116925. procedure TJSRTCRtpEncodingParameters._Setpriority(const aValue : TRTCPriorityType);
  116926. begin
  116927. WriteJSPropertyUnicodeString('priority',aValue);
  116928. end;
  116929. procedure TJSRTCRtpEncodingParameters._SetmaxBitrate(const aValue : Cardinal);
  116930. begin
  116931. WriteJSPropertyDouble('maxBitrate',aValue);
  116932. end;
  116933. procedure TJSRTCRtpEncodingParameters._Setrid(const aValue : UnicodeString);
  116934. begin
  116935. WriteJSPropertyUnicodeString('rid',aValue);
  116936. end;
  116937. procedure TJSRTCRtpEncodingParameters._SetscaleResolutionDownBy(const aValue : Double);
  116938. begin
  116939. WriteJSPropertyDouble('scaleResolutionDownBy',aValue);
  116940. end;
  116941. procedure TJSRTCRtpEncodingParameters._SetmaxFramerate(const aValue : Double);
  116942. begin
  116943. WriteJSPropertyDouble('maxFramerate',aValue);
  116944. end;
  116945. class function TJSRTCRtpEncodingParameters.JSClassName: UnicodeString;
  116946. begin
  116947. Result:='Object';
  116948. end;
  116949. class function TJSRTCRtpEncodingParameters.Cast(const Intf: IJSObject): IJSRTCRtpEncodingParameters;
  116950. begin
  116951. Result:=TJSRTCRtpEncodingParameters.JOBCast(Intf);
  116952. end;
  116953. function TJSRTCRtpHeaderExtensionParameters._Geturi: UnicodeString;
  116954. begin
  116955. Result:=ReadJSPropertyUnicodeString('uri');
  116956. end;
  116957. function TJSRTCRtpHeaderExtensionParameters._Getid: Word;
  116958. begin
  116959. Result:=ReadJSPropertyLongInt('id');
  116960. end;
  116961. function TJSRTCRtpHeaderExtensionParameters._Getencrypted: Boolean;
  116962. begin
  116963. Result:=ReadJSPropertyBoolean('encrypted');
  116964. end;
  116965. procedure TJSRTCRtpHeaderExtensionParameters._Seturi(const aValue : UnicodeString);
  116966. begin
  116967. WriteJSPropertyUnicodeString('uri',aValue);
  116968. end;
  116969. procedure TJSRTCRtpHeaderExtensionParameters._Setid(const aValue : Word);
  116970. begin
  116971. WriteJSPropertyLongInt('id',aValue);
  116972. end;
  116973. procedure TJSRTCRtpHeaderExtensionParameters._Setencrypted(const aValue : Boolean);
  116974. begin
  116975. WriteJSPropertyBoolean('encrypted',aValue);
  116976. end;
  116977. class function TJSRTCRtpHeaderExtensionParameters.JSClassName: UnicodeString;
  116978. begin
  116979. Result:='Object';
  116980. end;
  116981. class function TJSRTCRtpHeaderExtensionParameters.Cast(const Intf: IJSObject): IJSRTCRtpHeaderExtensionParameters;
  116982. begin
  116983. Result:=TJSRTCRtpHeaderExtensionParameters.JOBCast(Intf);
  116984. end;
  116985. function TJSRTCRtcpParameters._Getcname: UnicodeString;
  116986. begin
  116987. Result:=ReadJSPropertyUnicodeString('cname');
  116988. end;
  116989. function TJSRTCRtcpParameters._GetreducedSize: Boolean;
  116990. begin
  116991. Result:=ReadJSPropertyBoolean('reducedSize');
  116992. end;
  116993. procedure TJSRTCRtcpParameters._Setcname(const aValue : UnicodeString);
  116994. begin
  116995. WriteJSPropertyUnicodeString('cname',aValue);
  116996. end;
  116997. procedure TJSRTCRtcpParameters._SetreducedSize(const aValue : Boolean);
  116998. begin
  116999. WriteJSPropertyBoolean('reducedSize',aValue);
  117000. end;
  117001. class function TJSRTCRtcpParameters.JSClassName: UnicodeString;
  117002. begin
  117003. Result:='Object';
  117004. end;
  117005. class function TJSRTCRtcpParameters.Cast(const Intf: IJSObject): IJSRTCRtcpParameters;
  117006. begin
  117007. Result:=TJSRTCRtcpParameters.JOBCast(Intf);
  117008. end;
  117009. function TJSRTCRtpCodecParameters._GetpayloadType: Word;
  117010. begin
  117011. Result:=ReadJSPropertyLongInt('payloadType');
  117012. end;
  117013. function TJSRTCRtpCodecParameters._GetmimeType: UnicodeString;
  117014. begin
  117015. Result:=ReadJSPropertyUnicodeString('mimeType');
  117016. end;
  117017. function TJSRTCRtpCodecParameters._GetclockRate: Cardinal;
  117018. begin
  117019. Result:=ReadJSPropertyInt64('clockRate');
  117020. end;
  117021. function TJSRTCRtpCodecParameters._Getchannels: Word;
  117022. begin
  117023. Result:=ReadJSPropertyLongInt('channels');
  117024. end;
  117025. function TJSRTCRtpCodecParameters._GetsdpFmtpLine: UnicodeString;
  117026. begin
  117027. Result:=ReadJSPropertyUnicodeString('sdpFmtpLine');
  117028. end;
  117029. procedure TJSRTCRtpCodecParameters._SetpayloadType(const aValue : Word);
  117030. begin
  117031. WriteJSPropertyLongInt('payloadType',aValue);
  117032. end;
  117033. procedure TJSRTCRtpCodecParameters._SetmimeType(const aValue : UnicodeString);
  117034. begin
  117035. WriteJSPropertyUnicodeString('mimeType',aValue);
  117036. end;
  117037. procedure TJSRTCRtpCodecParameters._SetclockRate(const aValue : Cardinal);
  117038. begin
  117039. WriteJSPropertyDouble('clockRate',aValue);
  117040. end;
  117041. procedure TJSRTCRtpCodecParameters._Setchannels(const aValue : Word);
  117042. begin
  117043. WriteJSPropertyLongInt('channels',aValue);
  117044. end;
  117045. procedure TJSRTCRtpCodecParameters._SetsdpFmtpLine(const aValue : UnicodeString);
  117046. begin
  117047. WriteJSPropertyUnicodeString('sdpFmtpLine',aValue);
  117048. end;
  117049. class function TJSRTCRtpCodecParameters.JSClassName: UnicodeString;
  117050. begin
  117051. Result:='Object';
  117052. end;
  117053. class function TJSRTCRtpCodecParameters.Cast(const Intf: IJSObject): IJSRTCRtpCodecParameters;
  117054. begin
  117055. Result:=TJSRTCRtpCodecParameters.JOBCast(Intf);
  117056. end;
  117057. function TJSRTCRtpParameters._GetheaderExtensions: TJSRTCRtpHeaderExtensionParametersDynArray;
  117058. begin
  117059. Result:=ReadJSPropertyObject('headerExtensions',TJSArray) as TJSRTCRtpHeaderExtensionParametersDynArray;
  117060. end;
  117061. function TJSRTCRtpParameters._Getrtcp: TJSRTCRtcpParameters;
  117062. begin
  117063. Result:=ReadJSPropertyObject('rtcp',TJSRTCRtcpParameters) as TJSRTCRtcpParameters;
  117064. end;
  117065. function TJSRTCRtpParameters._Getcodecs: TJSRTCRtpCodecParametersDynArray;
  117066. begin
  117067. Result:=ReadJSPropertyObject('codecs',TJSArray) as TJSRTCRtpCodecParametersDynArray;
  117068. end;
  117069. procedure TJSRTCRtpParameters._SetheaderExtensions(const aValue : TJSRTCRtpHeaderExtensionParametersDynArray);
  117070. begin
  117071. WriteJSPropertyObject('headerExtensions',aValue);
  117072. end;
  117073. procedure TJSRTCRtpParameters._Setrtcp(const aValue : TJSRTCRtcpParameters);
  117074. begin
  117075. WriteJSPropertyObject('rtcp',aValue);
  117076. end;
  117077. procedure TJSRTCRtpParameters._Setcodecs(const aValue : TJSRTCRtpCodecParametersDynArray);
  117078. begin
  117079. WriteJSPropertyObject('codecs',aValue);
  117080. end;
  117081. class function TJSRTCRtpParameters.JSClassName: UnicodeString;
  117082. begin
  117083. Result:='Object';
  117084. end;
  117085. class function TJSRTCRtpParameters.Cast(const Intf: IJSObject): IJSRTCRtpParameters;
  117086. begin
  117087. Result:=TJSRTCRtpParameters.JOBCast(Intf);
  117088. end;
  117089. function TJSRTCRtpSendParameters._GettransactionId: UnicodeString;
  117090. begin
  117091. Result:=ReadJSPropertyUnicodeString('transactionId');
  117092. end;
  117093. function TJSRTCRtpSendParameters._Getencodings: TJSRTCRtpEncodingParametersDynArray;
  117094. begin
  117095. Result:=ReadJSPropertyObject('encodings',TJSArray) as TJSRTCRtpEncodingParametersDynArray;
  117096. end;
  117097. procedure TJSRTCRtpSendParameters._SettransactionId(const aValue : UnicodeString);
  117098. begin
  117099. WriteJSPropertyUnicodeString('transactionId',aValue);
  117100. end;
  117101. procedure TJSRTCRtpSendParameters._Setencodings(const aValue : TJSRTCRtpEncodingParametersDynArray);
  117102. begin
  117103. WriteJSPropertyObject('encodings',aValue);
  117104. end;
  117105. class function TJSRTCRtpSendParameters.JSClassName: UnicodeString;
  117106. begin
  117107. Result:='Object';
  117108. end;
  117109. class function TJSRTCRtpSendParameters.Cast(const Intf: IJSObject): IJSRTCRtpSendParameters;
  117110. begin
  117111. Result:=TJSRTCRtpSendParameters.JOBCast(Intf);
  117112. end;
  117113. function TJSRTCRtpReceiver._Gettrack: IJSMediaStreamTrack;
  117114. begin
  117115. Result:=ReadJSPropertyObject('track',TJSMediaStreamTrack) as IJSMediaStreamTrack;
  117116. end;
  117117. function TJSRTCRtpReceiver._Gettransport: IJSRTCDtlsTransport;
  117118. begin
  117119. Result:=ReadJSPropertyObject('transport',TJSRTCDtlsTransport) as IJSRTCDtlsTransport;
  117120. end;
  117121. function TJSRTCRtpReceiver._GetjitterBufferTarget: TDOMHighResTimeStamp;
  117122. begin
  117123. Result:=ReadJSPropertyDouble('jitterBufferTarget');
  117124. end;
  117125. function TJSRTCRtpReceiver._Gettransform: IJSRTCRtpScriptTransform;
  117126. begin
  117127. Result:=ReadJSPropertyObject('transform',TJSRTCRtpScriptTransform) as IJSRTCRtpScriptTransform;
  117128. end;
  117129. procedure TJSRTCRtpReceiver._SetjitterBufferTarget(const aValue : TDOMHighResTimeStamp);
  117130. begin
  117131. WriteJSPropertyDouble('jitterBufferTarget',aValue);
  117132. end;
  117133. procedure TJSRTCRtpReceiver._Settransform(const aValue : IJSRTCRtpScriptTransform);
  117134. begin
  117135. WriteJSPropertyObject('transform',aValue);
  117136. end;
  117137. function TJSRTCRtpReceiver.getCapabilities(const aKind: UnicodeString): TJSRTCRtpCapabilities;
  117138. begin
  117139. Result:=InvokeJSObjectResult('getCapabilities',[aKind],TJSRTCRtpCapabilities) as TJSRTCRtpCapabilities;
  117140. end;
  117141. function TJSRTCRtpReceiver.getContributingSources: TJSRTCRtpContributingSourceDynArray;
  117142. begin
  117143. Result:=InvokeJSObjectResult('getContributingSources',[],TJSArray) as TJSRTCRtpContributingSourceDynArray;
  117144. end;
  117145. function TJSRTCRtpReceiver.getSynchronizationSources: TJSRTCRtpSynchronizationSourceDynArray;
  117146. begin
  117147. Result:=InvokeJSObjectResult('getSynchronizationSources',[],TJSArray) as TJSRTCRtpSynchronizationSourceDynArray;
  117148. end;
  117149. function TJSRTCRtpReceiver.getStats: IJSPromise; // Promise<RTCStatsReport>
  117150. begin
  117151. Result:=InvokeJSObjectResult('getStats',[],TJSPromise) as IJSPromise;
  117152. end;
  117153. class function TJSRTCRtpReceiver.JSClassName: UnicodeString;
  117154. begin
  117155. Result:='RTCRtpReceiver';
  117156. end;
  117157. class function TJSRTCRtpReceiver.Cast(const Intf: IJSObject): IJSRTCRtpReceiver;
  117158. begin
  117159. Result:=TJSRTCRtpReceiver.JOBCast(Intf);
  117160. end;
  117161. constructor TJSRTCRtpScriptTransform.Create(aWorker: IJSWorker; const aOptions: Variant; const aTransfer: TIJSObjectDynArray);
  117162. begin
  117163. JOBCreate([aWorker,aOptions,aTransfer]);
  117164. end;
  117165. constructor TJSRTCRtpScriptTransform.Create(aWorker: IJSWorker);
  117166. begin
  117167. JOBCreate([aWorker]);
  117168. end;
  117169. constructor TJSRTCRtpScriptTransform.Create(aWorker: IJSWorker; const aOptions: Variant);
  117170. begin
  117171. JOBCreate([aWorker,aOptions]);
  117172. end;
  117173. class function TJSRTCRtpScriptTransform.JSClassName: UnicodeString;
  117174. begin
  117175. Result:='RTCRtpScriptTransform';
  117176. end;
  117177. class function TJSRTCRtpScriptTransform.Cast(const Intf: IJSObject): IJSRTCRtpScriptTransform;
  117178. begin
  117179. Result:=TJSRTCRtpScriptTransform.JOBCast(Intf);
  117180. end;
  117181. function TJSRTCRtpScriptTransformer._Getreadable: IJSReadableStream;
  117182. begin
  117183. Result:=ReadJSPropertyObject('readable',TJSReadableStream) as IJSReadableStream;
  117184. end;
  117185. function TJSRTCRtpScriptTransformer._Getwritable: IJSWritableStream;
  117186. begin
  117187. Result:=ReadJSPropertyObject('writable',TJSWritableStream) as IJSWritableStream;
  117188. end;
  117189. function TJSRTCRtpScriptTransformer._Getoptions: Variant;
  117190. begin
  117191. Result:=ReadJSPropertyVariant('options');
  117192. end;
  117193. function TJSRTCRtpScriptTransformer.generateKeyFrame(const aRid: UnicodeString): IJSPromise; // Promise<unsigned long long>
  117194. begin
  117195. Result:=InvokeJSObjectResult('generateKeyFrame',[aRid],TJSPromise) as IJSPromise;
  117196. end;
  117197. function TJSRTCRtpScriptTransformer.generateKeyFrame: IJSPromise; // Promise<unsigned long long>
  117198. begin
  117199. Result:=InvokeJSObjectResult('generateKeyFrame',[],TJSPromise) as IJSPromise;
  117200. end;
  117201. function TJSRTCRtpScriptTransformer.sendKeyFrameRequest: IJSPromise; // Promise<undefined>
  117202. begin
  117203. Result:=InvokeJSObjectResult('sendKeyFrameRequest',[],TJSPromise) as IJSPromise;
  117204. end;
  117205. class function TJSRTCRtpScriptTransformer.JSClassName: UnicodeString;
  117206. begin
  117207. Result:='RTCRtpScriptTransformer';
  117208. end;
  117209. class function TJSRTCRtpScriptTransformer.Cast(const Intf: IJSObject): IJSRTCRtpScriptTransformer;
  117210. begin
  117211. Result:=TJSRTCRtpScriptTransformer.JOBCast(Intf);
  117212. end;
  117213. function TJSRTCRtpSender._Gettrack: IJSMediaStreamTrack;
  117214. begin
  117215. Result:=ReadJSPropertyObject('track',TJSMediaStreamTrack) as IJSMediaStreamTrack;
  117216. end;
  117217. function TJSRTCRtpSender._Gettransport: IJSRTCDtlsTransport;
  117218. begin
  117219. Result:=ReadJSPropertyObject('transport',TJSRTCDtlsTransport) as IJSRTCDtlsTransport;
  117220. end;
  117221. function TJSRTCRtpSender._Getdtmf: IJSRTCDTMFSender;
  117222. begin
  117223. Result:=ReadJSPropertyObject('dtmf',TJSRTCDTMFSender) as IJSRTCDTMFSender;
  117224. end;
  117225. function TJSRTCRtpSender._Gettransform: IJSRTCRtpScriptTransform;
  117226. begin
  117227. Result:=ReadJSPropertyObject('transform',TJSRTCRtpScriptTransform) as IJSRTCRtpScriptTransform;
  117228. end;
  117229. procedure TJSRTCRtpSender._Settransform(const aValue : IJSRTCRtpScriptTransform);
  117230. begin
  117231. WriteJSPropertyObject('transform',aValue);
  117232. end;
  117233. function TJSRTCRtpSender.getCapabilities(const aKind: UnicodeString): TJSRTCRtpCapabilities;
  117234. begin
  117235. Result:=InvokeJSObjectResult('getCapabilities',[aKind],TJSRTCRtpCapabilities) as TJSRTCRtpCapabilities;
  117236. end;
  117237. function TJSRTCRtpSender.setParameters(const aParameters: TJSRTCRtpSendParameters): IJSPromise; // Promise<undefined>
  117238. begin
  117239. Result:=InvokeJSObjectResult('setParameters',[aParameters],TJSPromise) as IJSPromise;
  117240. end;
  117241. function TJSRTCRtpSender.getParameters: TJSRTCRtpSendParameters;
  117242. begin
  117243. Result:=InvokeJSObjectResult('getParameters',[],TJSRTCRtpSendParameters) as TJSRTCRtpSendParameters;
  117244. end;
  117245. function TJSRTCRtpSender.replaceTrack(aWithTrack: IJSMediaStreamTrack): IJSPromise; // Promise<undefined>
  117246. begin
  117247. Result:=InvokeJSObjectResult('replaceTrack',[aWithTrack],TJSPromise) as IJSPromise;
  117248. end;
  117249. procedure TJSRTCRtpSender.setStreams(aStreams: IJSMediaStream){; ToDo:varargs};
  117250. begin
  117251. InvokeJSNoResult('setStreams',[aStreams]);
  117252. end;
  117253. function TJSRTCRtpSender.getStats: IJSPromise; // Promise<RTCStatsReport>
  117254. begin
  117255. Result:=InvokeJSObjectResult('getStats',[],TJSPromise) as IJSPromise;
  117256. end;
  117257. class function TJSRTCRtpSender.JSClassName: UnicodeString;
  117258. begin
  117259. Result:='RTCRtpSender';
  117260. end;
  117261. class function TJSRTCRtpSender.Cast(const Intf: IJSObject): IJSRTCRtpSender;
  117262. begin
  117263. Result:=TJSRTCRtpSender.JOBCast(Intf);
  117264. end;
  117265. function TJSRTCRtpContributingSource._Gettimestamp: TDOMHighResTimeStamp;
  117266. begin
  117267. Result:=ReadJSPropertyDouble('timestamp');
  117268. end;
  117269. function TJSRTCRtpContributingSource._Getsource: Cardinal;
  117270. begin
  117271. Result:=ReadJSPropertyInt64('source');
  117272. end;
  117273. function TJSRTCRtpContributingSource._GetaudioLevel: Double;
  117274. begin
  117275. Result:=ReadJSPropertyDouble('audioLevel');
  117276. end;
  117277. function TJSRTCRtpContributingSource._GetrtpTimestamp: Cardinal;
  117278. begin
  117279. Result:=ReadJSPropertyInt64('rtpTimestamp');
  117280. end;
  117281. procedure TJSRTCRtpContributingSource._Settimestamp(const aValue : TDOMHighResTimeStamp);
  117282. begin
  117283. WriteJSPropertyDouble('timestamp',aValue);
  117284. end;
  117285. procedure TJSRTCRtpContributingSource._Setsource(const aValue : Cardinal);
  117286. begin
  117287. WriteJSPropertyDouble('source',aValue);
  117288. end;
  117289. procedure TJSRTCRtpContributingSource._SetaudioLevel(const aValue : Double);
  117290. begin
  117291. WriteJSPropertyDouble('audioLevel',aValue);
  117292. end;
  117293. procedure TJSRTCRtpContributingSource._SetrtpTimestamp(const aValue : Cardinal);
  117294. begin
  117295. WriteJSPropertyDouble('rtpTimestamp',aValue);
  117296. end;
  117297. class function TJSRTCRtpContributingSource.JSClassName: UnicodeString;
  117298. begin
  117299. Result:='Object';
  117300. end;
  117301. class function TJSRTCRtpContributingSource.Cast(const Intf: IJSObject): IJSRTCRtpContributingSource;
  117302. begin
  117303. Result:=TJSRTCRtpContributingSource.JOBCast(Intf);
  117304. end;
  117305. function TJSRTCRtpSynchronizationSource._GetvoiceActivityFlag: Boolean;
  117306. begin
  117307. Result:=ReadJSPropertyBoolean('voiceActivityFlag');
  117308. end;
  117309. procedure TJSRTCRtpSynchronizationSource._SetvoiceActivityFlag(const aValue : Boolean);
  117310. begin
  117311. WriteJSPropertyBoolean('voiceActivityFlag',aValue);
  117312. end;
  117313. class function TJSRTCRtpSynchronizationSource.JSClassName: UnicodeString;
  117314. begin
  117315. Result:='Object';
  117316. end;
  117317. class function TJSRTCRtpSynchronizationSource.Cast(const Intf: IJSObject): IJSRTCRtpSynchronizationSource;
  117318. begin
  117319. Result:=TJSRTCRtpSynchronizationSource.JOBCast(Intf);
  117320. end;
  117321. function TJSRTCRtpSourceEntry._GetsourceType: TRTCRtpSourceEntryType;
  117322. begin
  117323. Result:=ReadJSPropertyUnicodeString('sourceType');
  117324. end;
  117325. procedure TJSRTCRtpSourceEntry._SetsourceType(const aValue : TRTCRtpSourceEntryType);
  117326. begin
  117327. WriteJSPropertyUnicodeString('sourceType',aValue);
  117328. end;
  117329. class function TJSRTCRtpSourceEntry.JSClassName: UnicodeString;
  117330. begin
  117331. Result:='Object';
  117332. end;
  117333. class function TJSRTCRtpSourceEntry.Cast(const Intf: IJSObject): IJSRTCRtpSourceEntry;
  117334. begin
  117335. Result:=TJSRTCRtpSourceEntry.JOBCast(Intf);
  117336. end;
  117337. function TJSRTCRtpTransceiverInit._Getdirection: TRTCRtpTransceiverDirection;
  117338. begin
  117339. Result:=ReadJSPropertyUnicodeString('direction');
  117340. end;
  117341. function TJSRTCRtpTransceiverInit._Getstreams: TJSMediaStreamDynArray;
  117342. begin
  117343. Result:=ReadJSPropertyObject('streams',TJSArray) as TJSMediaStreamDynArray;
  117344. end;
  117345. function TJSRTCRtpTransceiverInit._GetsendEncodings: TJSRTCRtpEncodingParametersDynArray;
  117346. begin
  117347. Result:=ReadJSPropertyObject('sendEncodings',TJSArray) as TJSRTCRtpEncodingParametersDynArray;
  117348. end;
  117349. procedure TJSRTCRtpTransceiverInit._Setdirection(const aValue : TRTCRtpTransceiverDirection);
  117350. begin
  117351. WriteJSPropertyUnicodeString('direction',aValue);
  117352. end;
  117353. procedure TJSRTCRtpTransceiverInit._Setstreams(const aValue : TJSMediaStreamDynArray);
  117354. begin
  117355. WriteJSPropertyObject('streams',aValue);
  117356. end;
  117357. procedure TJSRTCRtpTransceiverInit._SetsendEncodings(const aValue : TJSRTCRtpEncodingParametersDynArray);
  117358. begin
  117359. WriteJSPropertyObject('sendEncodings',aValue);
  117360. end;
  117361. class function TJSRTCRtpTransceiverInit.JSClassName: UnicodeString;
  117362. begin
  117363. Result:='Object';
  117364. end;
  117365. class function TJSRTCRtpTransceiverInit.Cast(const Intf: IJSObject): IJSRTCRtpTransceiverInit;
  117366. begin
  117367. Result:=TJSRTCRtpTransceiverInit.JOBCast(Intf);
  117368. end;
  117369. function TJSRTCRtpTransceiver._Getmid: UnicodeString;
  117370. begin
  117371. Result:=ReadJSPropertyUnicodeString('mid');
  117372. end;
  117373. function TJSRTCRtpTransceiver._Getsender: IJSRTCRtpSender;
  117374. begin
  117375. Result:=ReadJSPropertyObject('sender',TJSRTCRtpSender) as IJSRTCRtpSender;
  117376. end;
  117377. function TJSRTCRtpTransceiver._Getreceiver: IJSRTCRtpReceiver;
  117378. begin
  117379. Result:=ReadJSPropertyObject('receiver',TJSRTCRtpReceiver) as IJSRTCRtpReceiver;
  117380. end;
  117381. function TJSRTCRtpTransceiver._Getstopped: Boolean;
  117382. begin
  117383. Result:=ReadJSPropertyBoolean('stopped');
  117384. end;
  117385. function TJSRTCRtpTransceiver._Getdirection: TRTCRtpTransceiverDirection;
  117386. begin
  117387. Result:=ReadJSPropertyUnicodeString('direction');
  117388. end;
  117389. function TJSRTCRtpTransceiver._GetcurrentDirection: TRTCRtpTransceiverDirection;
  117390. begin
  117391. Result:=ReadJSPropertyUnicodeString('currentDirection');
  117392. end;
  117393. procedure TJSRTCRtpTransceiver._Setdirection(const aValue : TRTCRtpTransceiverDirection);
  117394. begin
  117395. WriteJSPropertyUnicodeString('direction',aValue);
  117396. end;
  117397. procedure TJSRTCRtpTransceiver.stop;
  117398. begin
  117399. InvokeJSNoResult('stop',[]);
  117400. end;
  117401. class function TJSRTCRtpTransceiver.JSClassName: UnicodeString;
  117402. begin
  117403. Result:='RTCRtpTransceiver';
  117404. end;
  117405. class function TJSRTCRtpTransceiver.Cast(const Intf: IJSObject): IJSRTCRtpTransceiver;
  117406. begin
  117407. Result:=TJSRTCRtpTransceiver.JOBCast(Intf);
  117408. end;
  117409. function TJSRTCSctpTransport._Gettransport: IJSRTCDtlsTransport;
  117410. begin
  117411. Result:=ReadJSPropertyObject('transport',TJSRTCDtlsTransport) as IJSRTCDtlsTransport;
  117412. end;
  117413. function TJSRTCSctpTransport._Getstate: TRTCSctpTransportState;
  117414. begin
  117415. Result:=ReadJSPropertyUnicodeString('state');
  117416. end;
  117417. function TJSRTCSctpTransport._GetmaxMessageSize: Double;
  117418. begin
  117419. Result:=ReadJSPropertyDouble('maxMessageSize');
  117420. end;
  117421. function TJSRTCSctpTransport._GetmaxChannels: Word;
  117422. begin
  117423. Result:=ReadJSPropertyLongInt('maxChannels');
  117424. end;
  117425. function TJSRTCSctpTransport._Getonstatechange: TEventHandler;
  117426. begin
  117427. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstatechange')));
  117428. end;
  117429. procedure TJSRTCSctpTransport._Setonstatechange(const aValue : TEventHandler);
  117430. begin
  117431. WriteJSPropertyMethod('onstatechange',TMethod(aValue));
  117432. end;
  117433. class function TJSRTCSctpTransport.JSClassName: UnicodeString;
  117434. begin
  117435. Result:='RTCSctpTransport';
  117436. end;
  117437. class function TJSRTCSctpTransport.Cast(const Intf: IJSObject): IJSRTCSctpTransport;
  117438. begin
  117439. Result:=TJSRTCSctpTransport.JOBCast(Intf);
  117440. end;
  117441. function TJSRTCSessionDescriptionInit._Gettype_: TRTCSdpType;
  117442. begin
  117443. Result:=ReadJSPropertyUnicodeString('type');
  117444. end;
  117445. function TJSRTCSessionDescriptionInit._Getsdp: UnicodeString;
  117446. begin
  117447. Result:=ReadJSPropertyUnicodeString('sdp');
  117448. end;
  117449. procedure TJSRTCSessionDescriptionInit._Settype_(const aValue : TRTCSdpType);
  117450. begin
  117451. WriteJSPropertyUnicodeString('type',aValue);
  117452. end;
  117453. procedure TJSRTCSessionDescriptionInit._Setsdp(const aValue : UnicodeString);
  117454. begin
  117455. WriteJSPropertyUnicodeString('sdp',aValue);
  117456. end;
  117457. class function TJSRTCSessionDescriptionInit.JSClassName: UnicodeString;
  117458. begin
  117459. Result:='Object';
  117460. end;
  117461. class function TJSRTCSessionDescriptionInit.Cast(const Intf: IJSObject): IJSRTCSessionDescriptionInit;
  117462. begin
  117463. Result:=TJSRTCSessionDescriptionInit.JOBCast(Intf);
  117464. end;
  117465. function TJSRTCLocalSessionDescriptionInit._Gettype_: TRTCSdpType;
  117466. begin
  117467. Result:=ReadJSPropertyUnicodeString('type');
  117468. end;
  117469. function TJSRTCLocalSessionDescriptionInit._Getsdp: UnicodeString;
  117470. begin
  117471. Result:=ReadJSPropertyUnicodeString('sdp');
  117472. end;
  117473. procedure TJSRTCLocalSessionDescriptionInit._Settype_(const aValue : TRTCSdpType);
  117474. begin
  117475. WriteJSPropertyUnicodeString('type',aValue);
  117476. end;
  117477. procedure TJSRTCLocalSessionDescriptionInit._Setsdp(const aValue : UnicodeString);
  117478. begin
  117479. WriteJSPropertyUnicodeString('sdp',aValue);
  117480. end;
  117481. class function TJSRTCLocalSessionDescriptionInit.JSClassName: UnicodeString;
  117482. begin
  117483. Result:='Object';
  117484. end;
  117485. class function TJSRTCLocalSessionDescriptionInit.Cast(const Intf: IJSObject): IJSRTCLocalSessionDescriptionInit;
  117486. begin
  117487. Result:=TJSRTCLocalSessionDescriptionInit.JOBCast(Intf);
  117488. end;
  117489. function TJSRTCSessionDescription._Gettype_: TRTCSdpType;
  117490. begin
  117491. Result:=ReadJSPropertyUnicodeString('type');
  117492. end;
  117493. function TJSRTCSessionDescription._Getsdp: UnicodeString;
  117494. begin
  117495. Result:=ReadJSPropertyUnicodeString('sdp');
  117496. end;
  117497. procedure TJSRTCSessionDescription._Settype_(const aValue : TRTCSdpType);
  117498. begin
  117499. WriteJSPropertyUnicodeString('type',aValue);
  117500. end;
  117501. procedure TJSRTCSessionDescription._Setsdp(const aValue : UnicodeString);
  117502. begin
  117503. WriteJSPropertyUnicodeString('sdp',aValue);
  117504. end;
  117505. constructor TJSRTCSessionDescription.Create(const aDescriptionInitDict: TJSRTCSessionDescriptionInit);
  117506. begin
  117507. JOBCreate([aDescriptionInitDict]);
  117508. end;
  117509. function TJSRTCSessionDescription.toJSON: IJSObject;
  117510. begin
  117511. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  117512. end;
  117513. class function TJSRTCSessionDescription.JSClassName: UnicodeString;
  117514. begin
  117515. Result:='RTCSessionDescription';
  117516. end;
  117517. class function TJSRTCSessionDescription.Cast(const Intf: IJSObject): IJSRTCSessionDescription;
  117518. begin
  117519. Result:=TJSRTCSessionDescription.JOBCast(Intf);
  117520. end;
  117521. function TJSRTCStats._Gettimestamp: TDOMHighResTimeStamp;
  117522. begin
  117523. Result:=ReadJSPropertyDouble('timestamp');
  117524. end;
  117525. function TJSRTCStats._Gettype_: TRTCStatsType;
  117526. begin
  117527. Result:=ReadJSPropertyUnicodeString('type');
  117528. end;
  117529. function TJSRTCStats._Getid: UnicodeString;
  117530. begin
  117531. Result:=ReadJSPropertyUnicodeString('id');
  117532. end;
  117533. procedure TJSRTCStats._Settimestamp(const aValue : TDOMHighResTimeStamp);
  117534. begin
  117535. WriteJSPropertyDouble('timestamp',aValue);
  117536. end;
  117537. procedure TJSRTCStats._Settype_(const aValue : TRTCStatsType);
  117538. begin
  117539. WriteJSPropertyUnicodeString('type',aValue);
  117540. end;
  117541. procedure TJSRTCStats._Setid(const aValue : UnicodeString);
  117542. begin
  117543. WriteJSPropertyUnicodeString('id',aValue);
  117544. end;
  117545. class function TJSRTCStats.JSClassName: UnicodeString;
  117546. begin
  117547. Result:='Object';
  117548. end;
  117549. class function TJSRTCStats.Cast(const Intf: IJSObject): IJSRTCStats;
  117550. begin
  117551. Result:=TJSRTCStats.JOBCast(Intf);
  117552. end;
  117553. function TJSRTCRtpStreamStats._Getssrc: Cardinal;
  117554. begin
  117555. Result:=ReadJSPropertyInt64('ssrc');
  117556. end;
  117557. function TJSRTCRtpStreamStats._Getkind: UnicodeString;
  117558. begin
  117559. Result:=ReadJSPropertyUnicodeString('kind');
  117560. end;
  117561. function TJSRTCRtpStreamStats._GetmediaType: UnicodeString;
  117562. begin
  117563. Result:=ReadJSPropertyUnicodeString('mediaType');
  117564. end;
  117565. function TJSRTCRtpStreamStats._GettransportId: UnicodeString;
  117566. begin
  117567. Result:=ReadJSPropertyUnicodeString('transportId');
  117568. end;
  117569. function TJSRTCRtpStreamStats._GetcodecId: UnicodeString;
  117570. begin
  117571. Result:=ReadJSPropertyUnicodeString('codecId');
  117572. end;
  117573. procedure TJSRTCRtpStreamStats._Setssrc(const aValue : Cardinal);
  117574. begin
  117575. WriteJSPropertyDouble('ssrc',aValue);
  117576. end;
  117577. procedure TJSRTCRtpStreamStats._Setkind(const aValue : UnicodeString);
  117578. begin
  117579. WriteJSPropertyUnicodeString('kind',aValue);
  117580. end;
  117581. procedure TJSRTCRtpStreamStats._SetmediaType(const aValue : UnicodeString);
  117582. begin
  117583. WriteJSPropertyUnicodeString('mediaType',aValue);
  117584. end;
  117585. procedure TJSRTCRtpStreamStats._SettransportId(const aValue : UnicodeString);
  117586. begin
  117587. WriteJSPropertyUnicodeString('transportId',aValue);
  117588. end;
  117589. procedure TJSRTCRtpStreamStats._SetcodecId(const aValue : UnicodeString);
  117590. begin
  117591. WriteJSPropertyUnicodeString('codecId',aValue);
  117592. end;
  117593. class function TJSRTCRtpStreamStats.JSClassName: UnicodeString;
  117594. begin
  117595. Result:='Object';
  117596. end;
  117597. class function TJSRTCRtpStreamStats.Cast(const Intf: IJSObject): IJSRTCRtpStreamStats;
  117598. begin
  117599. Result:=TJSRTCRtpStreamStats.JOBCast(Intf);
  117600. end;
  117601. function TJSRTCCodecStats._GetpayloadType: Cardinal;
  117602. begin
  117603. Result:=ReadJSPropertyInt64('payloadType');
  117604. end;
  117605. function TJSRTCCodecStats._GetcodecType: TRTCCodecType;
  117606. begin
  117607. Result:=ReadJSPropertyUnicodeString('codecType');
  117608. end;
  117609. function TJSRTCCodecStats._GettransportId: UnicodeString;
  117610. begin
  117611. Result:=ReadJSPropertyUnicodeString('transportId');
  117612. end;
  117613. function TJSRTCCodecStats._GetmimeType: UnicodeString;
  117614. begin
  117615. Result:=ReadJSPropertyUnicodeString('mimeType');
  117616. end;
  117617. function TJSRTCCodecStats._GetclockRate: Cardinal;
  117618. begin
  117619. Result:=ReadJSPropertyInt64('clockRate');
  117620. end;
  117621. function TJSRTCCodecStats._Getchannels: Cardinal;
  117622. begin
  117623. Result:=ReadJSPropertyInt64('channels');
  117624. end;
  117625. function TJSRTCCodecStats._GetsdpFmtpLine: UnicodeString;
  117626. begin
  117627. Result:=ReadJSPropertyUnicodeString('sdpFmtpLine');
  117628. end;
  117629. procedure TJSRTCCodecStats._SetpayloadType(const aValue : Cardinal);
  117630. begin
  117631. WriteJSPropertyDouble('payloadType',aValue);
  117632. end;
  117633. procedure TJSRTCCodecStats._SetcodecType(const aValue : TRTCCodecType);
  117634. begin
  117635. WriteJSPropertyUnicodeString('codecType',aValue);
  117636. end;
  117637. procedure TJSRTCCodecStats._SettransportId(const aValue : UnicodeString);
  117638. begin
  117639. WriteJSPropertyUnicodeString('transportId',aValue);
  117640. end;
  117641. procedure TJSRTCCodecStats._SetmimeType(const aValue : UnicodeString);
  117642. begin
  117643. WriteJSPropertyUnicodeString('mimeType',aValue);
  117644. end;
  117645. procedure TJSRTCCodecStats._SetclockRate(const aValue : Cardinal);
  117646. begin
  117647. WriteJSPropertyDouble('clockRate',aValue);
  117648. end;
  117649. procedure TJSRTCCodecStats._Setchannels(const aValue : Cardinal);
  117650. begin
  117651. WriteJSPropertyDouble('channels',aValue);
  117652. end;
  117653. procedure TJSRTCCodecStats._SetsdpFmtpLine(const aValue : UnicodeString);
  117654. begin
  117655. WriteJSPropertyUnicodeString('sdpFmtpLine',aValue);
  117656. end;
  117657. class function TJSRTCCodecStats.JSClassName: UnicodeString;
  117658. begin
  117659. Result:='Object';
  117660. end;
  117661. class function TJSRTCCodecStats.Cast(const Intf: IJSObject): IJSRTCCodecStats;
  117662. begin
  117663. Result:=TJSRTCCodecStats.JOBCast(Intf);
  117664. end;
  117665. function TJSRTCReceivedRtpStreamStats._GetpacketsReceived: QWord;
  117666. begin
  117667. Result:=ReadJSPropertyInt64('packetsReceived');
  117668. end;
  117669. function TJSRTCReceivedRtpStreamStats._GetpacketsLost: Int64;
  117670. begin
  117671. Result:=ReadJSPropertyInt64('packetsLost');
  117672. end;
  117673. function TJSRTCReceivedRtpStreamStats._Getjitter: Double;
  117674. begin
  117675. Result:=ReadJSPropertyDouble('jitter');
  117676. end;
  117677. function TJSRTCReceivedRtpStreamStats._GetdiscardedPackets: Cardinal;
  117678. begin
  117679. Result:=ReadJSPropertyInt64('discardedPackets');
  117680. end;
  117681. function TJSRTCReceivedRtpStreamStats._GetpacketsDiscarded: Cardinal;
  117682. begin
  117683. Result:=ReadJSPropertyInt64('packetsDiscarded');
  117684. end;
  117685. procedure TJSRTCReceivedRtpStreamStats._SetpacketsReceived(const aValue : QWord);
  117686. begin
  117687. WriteJSPropertyDouble('packetsReceived',aValue);
  117688. end;
  117689. procedure TJSRTCReceivedRtpStreamStats._SetpacketsLost(const aValue : Int64);
  117690. begin
  117691. WriteJSPropertyDouble('packetsLost',aValue);
  117692. end;
  117693. procedure TJSRTCReceivedRtpStreamStats._Setjitter(const aValue : Double);
  117694. begin
  117695. WriteJSPropertyDouble('jitter',aValue);
  117696. end;
  117697. procedure TJSRTCReceivedRtpStreamStats._SetdiscardedPackets(const aValue : Cardinal);
  117698. begin
  117699. WriteJSPropertyDouble('discardedPackets',aValue);
  117700. end;
  117701. procedure TJSRTCReceivedRtpStreamStats._SetpacketsDiscarded(const aValue : Cardinal);
  117702. begin
  117703. WriteJSPropertyDouble('packetsDiscarded',aValue);
  117704. end;
  117705. class function TJSRTCReceivedRtpStreamStats.JSClassName: UnicodeString;
  117706. begin
  117707. Result:='Object';
  117708. end;
  117709. class function TJSRTCReceivedRtpStreamStats.Cast(const Intf: IJSObject): IJSRTCReceivedRtpStreamStats;
  117710. begin
  117711. Result:=TJSRTCReceivedRtpStreamStats.JOBCast(Intf);
  117712. end;
  117713. function TJSRTCInboundRtpStreamStats._GettrackIdentifier: UnicodeString;
  117714. begin
  117715. Result:=ReadJSPropertyUnicodeString('trackIdentifier');
  117716. end;
  117717. function TJSRTCInboundRtpStreamStats._GetremoteId: UnicodeString;
  117718. begin
  117719. Result:=ReadJSPropertyUnicodeString('remoteId');
  117720. end;
  117721. function TJSRTCInboundRtpStreamStats._GetframesDecoded: Cardinal;
  117722. begin
  117723. Result:=ReadJSPropertyInt64('framesDecoded');
  117724. end;
  117725. function TJSRTCInboundRtpStreamStats._GetframesDropped: Cardinal;
  117726. begin
  117727. Result:=ReadJSPropertyInt64('framesDropped');
  117728. end;
  117729. function TJSRTCInboundRtpStreamStats._GetframeWidth: Cardinal;
  117730. begin
  117731. Result:=ReadJSPropertyInt64('frameWidth');
  117732. end;
  117733. function TJSRTCInboundRtpStreamStats._GetframeHeight: Cardinal;
  117734. begin
  117735. Result:=ReadJSPropertyInt64('frameHeight');
  117736. end;
  117737. function TJSRTCInboundRtpStreamStats._GetframesPerSecond: Double;
  117738. begin
  117739. Result:=ReadJSPropertyDouble('framesPerSecond');
  117740. end;
  117741. function TJSRTCInboundRtpStreamStats._GetqpSum: QWord;
  117742. begin
  117743. Result:=ReadJSPropertyInt64('qpSum');
  117744. end;
  117745. function TJSRTCInboundRtpStreamStats._GettotalDecodeTime: Double;
  117746. begin
  117747. Result:=ReadJSPropertyDouble('totalDecodeTime');
  117748. end;
  117749. function TJSRTCInboundRtpStreamStats._GettotalInterFrameDelay: Double;
  117750. begin
  117751. Result:=ReadJSPropertyDouble('totalInterFrameDelay');
  117752. end;
  117753. function TJSRTCInboundRtpStreamStats._GettotalSquaredInterFrameDelay: Double;
  117754. begin
  117755. Result:=ReadJSPropertyDouble('totalSquaredInterFrameDelay');
  117756. end;
  117757. function TJSRTCInboundRtpStreamStats._GetlastPacketReceivedTimestamp: TDOMHighResTimeStamp;
  117758. begin
  117759. Result:=ReadJSPropertyDouble('lastPacketReceivedTimestamp');
  117760. end;
  117761. function TJSRTCInboundRtpStreamStats._GetheaderBytesReceived: QWord;
  117762. begin
  117763. Result:=ReadJSPropertyInt64('headerBytesReceived');
  117764. end;
  117765. function TJSRTCInboundRtpStreamStats._GetfecPacketsReceived: QWord;
  117766. begin
  117767. Result:=ReadJSPropertyInt64('fecPacketsReceived');
  117768. end;
  117769. function TJSRTCInboundRtpStreamStats._GetfecPacketsDiscarded: QWord;
  117770. begin
  117771. Result:=ReadJSPropertyInt64('fecPacketsDiscarded');
  117772. end;
  117773. function TJSRTCInboundRtpStreamStats._GetbytesReceived: QWord;
  117774. begin
  117775. Result:=ReadJSPropertyInt64('bytesReceived');
  117776. end;
  117777. function TJSRTCInboundRtpStreamStats._GetnackCount: Cardinal;
  117778. begin
  117779. Result:=ReadJSPropertyInt64('nackCount');
  117780. end;
  117781. function TJSRTCInboundRtpStreamStats._GetfirCount: Cardinal;
  117782. begin
  117783. Result:=ReadJSPropertyInt64('firCount');
  117784. end;
  117785. function TJSRTCInboundRtpStreamStats._GetpliCount: Cardinal;
  117786. begin
  117787. Result:=ReadJSPropertyInt64('pliCount');
  117788. end;
  117789. function TJSRTCInboundRtpStreamStats._GettotalProcessingDelay: Double;
  117790. begin
  117791. Result:=ReadJSPropertyDouble('totalProcessingDelay');
  117792. end;
  117793. function TJSRTCInboundRtpStreamStats._GetjitterBufferDelay: Double;
  117794. begin
  117795. Result:=ReadJSPropertyDouble('jitterBufferDelay');
  117796. end;
  117797. function TJSRTCInboundRtpStreamStats._GetjitterBufferEmittedCount: QWord;
  117798. begin
  117799. Result:=ReadJSPropertyInt64('jitterBufferEmittedCount');
  117800. end;
  117801. function TJSRTCInboundRtpStreamStats._GettotalSamplesReceived: QWord;
  117802. begin
  117803. Result:=ReadJSPropertyInt64('totalSamplesReceived');
  117804. end;
  117805. function TJSRTCInboundRtpStreamStats._GetconcealedSamples: QWord;
  117806. begin
  117807. Result:=ReadJSPropertyInt64('concealedSamples');
  117808. end;
  117809. function TJSRTCInboundRtpStreamStats._GetsilentConcealedSamples: QWord;
  117810. begin
  117811. Result:=ReadJSPropertyInt64('silentConcealedSamples');
  117812. end;
  117813. function TJSRTCInboundRtpStreamStats._GetconcealmentEvents: QWord;
  117814. begin
  117815. Result:=ReadJSPropertyInt64('concealmentEvents');
  117816. end;
  117817. function TJSRTCInboundRtpStreamStats._GetinsertedSamplesForDeceleration: QWord;
  117818. begin
  117819. Result:=ReadJSPropertyInt64('insertedSamplesForDeceleration');
  117820. end;
  117821. function TJSRTCInboundRtpStreamStats._GetremovedSamplesForAcceleration: QWord;
  117822. begin
  117823. Result:=ReadJSPropertyInt64('removedSamplesForAcceleration');
  117824. end;
  117825. function TJSRTCInboundRtpStreamStats._GetaudioLevel: Double;
  117826. begin
  117827. Result:=ReadJSPropertyDouble('audioLevel');
  117828. end;
  117829. function TJSRTCInboundRtpStreamStats._GettotalAudioEnergy: Double;
  117830. begin
  117831. Result:=ReadJSPropertyDouble('totalAudioEnergy');
  117832. end;
  117833. function TJSRTCInboundRtpStreamStats._GettotalSamplesDuration: Double;
  117834. begin
  117835. Result:=ReadJSPropertyDouble('totalSamplesDuration');
  117836. end;
  117837. function TJSRTCInboundRtpStreamStats._GetframesReceived: Cardinal;
  117838. begin
  117839. Result:=ReadJSPropertyInt64('framesReceived');
  117840. end;
  117841. procedure TJSRTCInboundRtpStreamStats._SettrackIdentifier(const aValue : UnicodeString);
  117842. begin
  117843. WriteJSPropertyUnicodeString('trackIdentifier',aValue);
  117844. end;
  117845. procedure TJSRTCInboundRtpStreamStats._SetremoteId(const aValue : UnicodeString);
  117846. begin
  117847. WriteJSPropertyUnicodeString('remoteId',aValue);
  117848. end;
  117849. procedure TJSRTCInboundRtpStreamStats._SetframesDecoded(const aValue : Cardinal);
  117850. begin
  117851. WriteJSPropertyDouble('framesDecoded',aValue);
  117852. end;
  117853. procedure TJSRTCInboundRtpStreamStats._SetframesDropped(const aValue : Cardinal);
  117854. begin
  117855. WriteJSPropertyDouble('framesDropped',aValue);
  117856. end;
  117857. procedure TJSRTCInboundRtpStreamStats._SetframeWidth(const aValue : Cardinal);
  117858. begin
  117859. WriteJSPropertyDouble('frameWidth',aValue);
  117860. end;
  117861. procedure TJSRTCInboundRtpStreamStats._SetframeHeight(const aValue : Cardinal);
  117862. begin
  117863. WriteJSPropertyDouble('frameHeight',aValue);
  117864. end;
  117865. procedure TJSRTCInboundRtpStreamStats._SetframesPerSecond(const aValue : Double);
  117866. begin
  117867. WriteJSPropertyDouble('framesPerSecond',aValue);
  117868. end;
  117869. procedure TJSRTCInboundRtpStreamStats._SetqpSum(const aValue : QWord);
  117870. begin
  117871. WriteJSPropertyDouble('qpSum',aValue);
  117872. end;
  117873. procedure TJSRTCInboundRtpStreamStats._SettotalDecodeTime(const aValue : Double);
  117874. begin
  117875. WriteJSPropertyDouble('totalDecodeTime',aValue);
  117876. end;
  117877. procedure TJSRTCInboundRtpStreamStats._SettotalInterFrameDelay(const aValue : Double);
  117878. begin
  117879. WriteJSPropertyDouble('totalInterFrameDelay',aValue);
  117880. end;
  117881. procedure TJSRTCInboundRtpStreamStats._SettotalSquaredInterFrameDelay(const aValue : Double);
  117882. begin
  117883. WriteJSPropertyDouble('totalSquaredInterFrameDelay',aValue);
  117884. end;
  117885. procedure TJSRTCInboundRtpStreamStats._SetlastPacketReceivedTimestamp(const aValue : TDOMHighResTimeStamp);
  117886. begin
  117887. WriteJSPropertyDouble('lastPacketReceivedTimestamp',aValue);
  117888. end;
  117889. procedure TJSRTCInboundRtpStreamStats._SetheaderBytesReceived(const aValue : QWord);
  117890. begin
  117891. WriteJSPropertyDouble('headerBytesReceived',aValue);
  117892. end;
  117893. procedure TJSRTCInboundRtpStreamStats._SetfecPacketsReceived(const aValue : QWord);
  117894. begin
  117895. WriteJSPropertyDouble('fecPacketsReceived',aValue);
  117896. end;
  117897. procedure TJSRTCInboundRtpStreamStats._SetfecPacketsDiscarded(const aValue : QWord);
  117898. begin
  117899. WriteJSPropertyDouble('fecPacketsDiscarded',aValue);
  117900. end;
  117901. procedure TJSRTCInboundRtpStreamStats._SetbytesReceived(const aValue : QWord);
  117902. begin
  117903. WriteJSPropertyDouble('bytesReceived',aValue);
  117904. end;
  117905. procedure TJSRTCInboundRtpStreamStats._SetnackCount(const aValue : Cardinal);
  117906. begin
  117907. WriteJSPropertyDouble('nackCount',aValue);
  117908. end;
  117909. procedure TJSRTCInboundRtpStreamStats._SetfirCount(const aValue : Cardinal);
  117910. begin
  117911. WriteJSPropertyDouble('firCount',aValue);
  117912. end;
  117913. procedure TJSRTCInboundRtpStreamStats._SetpliCount(const aValue : Cardinal);
  117914. begin
  117915. WriteJSPropertyDouble('pliCount',aValue);
  117916. end;
  117917. procedure TJSRTCInboundRtpStreamStats._SettotalProcessingDelay(const aValue : Double);
  117918. begin
  117919. WriteJSPropertyDouble('totalProcessingDelay',aValue);
  117920. end;
  117921. procedure TJSRTCInboundRtpStreamStats._SetjitterBufferDelay(const aValue : Double);
  117922. begin
  117923. WriteJSPropertyDouble('jitterBufferDelay',aValue);
  117924. end;
  117925. procedure TJSRTCInboundRtpStreamStats._SetjitterBufferEmittedCount(const aValue : QWord);
  117926. begin
  117927. WriteJSPropertyDouble('jitterBufferEmittedCount',aValue);
  117928. end;
  117929. procedure TJSRTCInboundRtpStreamStats._SettotalSamplesReceived(const aValue : QWord);
  117930. begin
  117931. WriteJSPropertyDouble('totalSamplesReceived',aValue);
  117932. end;
  117933. procedure TJSRTCInboundRtpStreamStats._SetconcealedSamples(const aValue : QWord);
  117934. begin
  117935. WriteJSPropertyDouble('concealedSamples',aValue);
  117936. end;
  117937. procedure TJSRTCInboundRtpStreamStats._SetsilentConcealedSamples(const aValue : QWord);
  117938. begin
  117939. WriteJSPropertyDouble('silentConcealedSamples',aValue);
  117940. end;
  117941. procedure TJSRTCInboundRtpStreamStats._SetconcealmentEvents(const aValue : QWord);
  117942. begin
  117943. WriteJSPropertyDouble('concealmentEvents',aValue);
  117944. end;
  117945. procedure TJSRTCInboundRtpStreamStats._SetinsertedSamplesForDeceleration(const aValue : QWord);
  117946. begin
  117947. WriteJSPropertyDouble('insertedSamplesForDeceleration',aValue);
  117948. end;
  117949. procedure TJSRTCInboundRtpStreamStats._SetremovedSamplesForAcceleration(const aValue : QWord);
  117950. begin
  117951. WriteJSPropertyDouble('removedSamplesForAcceleration',aValue);
  117952. end;
  117953. procedure TJSRTCInboundRtpStreamStats._SetaudioLevel(const aValue : Double);
  117954. begin
  117955. WriteJSPropertyDouble('audioLevel',aValue);
  117956. end;
  117957. procedure TJSRTCInboundRtpStreamStats._SettotalAudioEnergy(const aValue : Double);
  117958. begin
  117959. WriteJSPropertyDouble('totalAudioEnergy',aValue);
  117960. end;
  117961. procedure TJSRTCInboundRtpStreamStats._SettotalSamplesDuration(const aValue : Double);
  117962. begin
  117963. WriteJSPropertyDouble('totalSamplesDuration',aValue);
  117964. end;
  117965. procedure TJSRTCInboundRtpStreamStats._SetframesReceived(const aValue : Cardinal);
  117966. begin
  117967. WriteJSPropertyDouble('framesReceived',aValue);
  117968. end;
  117969. class function TJSRTCInboundRtpStreamStats.JSClassName: UnicodeString;
  117970. begin
  117971. Result:='Object';
  117972. end;
  117973. class function TJSRTCInboundRtpStreamStats.Cast(const Intf: IJSObject): IJSRTCInboundRtpStreamStats;
  117974. begin
  117975. Result:=TJSRTCInboundRtpStreamStats.JOBCast(Intf);
  117976. end;
  117977. function TJSRTCRemoteInboundRtpStreamStats._GetlocalId: UnicodeString;
  117978. begin
  117979. Result:=ReadJSPropertyUnicodeString('localId');
  117980. end;
  117981. function TJSRTCRemoteInboundRtpStreamStats._GetroundTripTime: Double;
  117982. begin
  117983. Result:=ReadJSPropertyDouble('roundTripTime');
  117984. end;
  117985. function TJSRTCRemoteInboundRtpStreamStats._GettotalRoundTripTime: Double;
  117986. begin
  117987. Result:=ReadJSPropertyDouble('totalRoundTripTime');
  117988. end;
  117989. function TJSRTCRemoteInboundRtpStreamStats._GetfractionLost: Double;
  117990. begin
  117991. Result:=ReadJSPropertyDouble('fractionLost');
  117992. end;
  117993. function TJSRTCRemoteInboundRtpStreamStats._GetroundTripTimeMeasurements: QWord;
  117994. begin
  117995. Result:=ReadJSPropertyInt64('roundTripTimeMeasurements');
  117996. end;
  117997. procedure TJSRTCRemoteInboundRtpStreamStats._SetlocalId(const aValue : UnicodeString);
  117998. begin
  117999. WriteJSPropertyUnicodeString('localId',aValue);
  118000. end;
  118001. procedure TJSRTCRemoteInboundRtpStreamStats._SetroundTripTime(const aValue : Double);
  118002. begin
  118003. WriteJSPropertyDouble('roundTripTime',aValue);
  118004. end;
  118005. procedure TJSRTCRemoteInboundRtpStreamStats._SettotalRoundTripTime(const aValue : Double);
  118006. begin
  118007. WriteJSPropertyDouble('totalRoundTripTime',aValue);
  118008. end;
  118009. procedure TJSRTCRemoteInboundRtpStreamStats._SetfractionLost(const aValue : Double);
  118010. begin
  118011. WriteJSPropertyDouble('fractionLost',aValue);
  118012. end;
  118013. procedure TJSRTCRemoteInboundRtpStreamStats._SetroundTripTimeMeasurements(const aValue : QWord);
  118014. begin
  118015. WriteJSPropertyDouble('roundTripTimeMeasurements',aValue);
  118016. end;
  118017. class function TJSRTCRemoteInboundRtpStreamStats.JSClassName: UnicodeString;
  118018. begin
  118019. Result:='Object';
  118020. end;
  118021. class function TJSRTCRemoteInboundRtpStreamStats.Cast(const Intf: IJSObject): IJSRTCRemoteInboundRtpStreamStats;
  118022. begin
  118023. Result:=TJSRTCRemoteInboundRtpStreamStats.JOBCast(Intf);
  118024. end;
  118025. function TJSRTCSentRtpStreamStats._GetpacketsSent: Cardinal;
  118026. begin
  118027. Result:=ReadJSPropertyInt64('packetsSent');
  118028. end;
  118029. function TJSRTCSentRtpStreamStats._GetbytesSent: QWord;
  118030. begin
  118031. Result:=ReadJSPropertyInt64('bytesSent');
  118032. end;
  118033. procedure TJSRTCSentRtpStreamStats._SetpacketsSent(const aValue : Cardinal);
  118034. begin
  118035. WriteJSPropertyDouble('packetsSent',aValue);
  118036. end;
  118037. procedure TJSRTCSentRtpStreamStats._SetbytesSent(const aValue : QWord);
  118038. begin
  118039. WriteJSPropertyDouble('bytesSent',aValue);
  118040. end;
  118041. class function TJSRTCSentRtpStreamStats.JSClassName: UnicodeString;
  118042. begin
  118043. Result:='Object';
  118044. end;
  118045. class function TJSRTCSentRtpStreamStats.Cast(const Intf: IJSObject): IJSRTCSentRtpStreamStats;
  118046. begin
  118047. Result:=TJSRTCSentRtpStreamStats.JOBCast(Intf);
  118048. end;
  118049. function TJSRTCOutboundRtpStreamStats._GetremoteId: UnicodeString;
  118050. begin
  118051. Result:=ReadJSPropertyUnicodeString('remoteId');
  118052. end;
  118053. function TJSRTCOutboundRtpStreamStats._GetframesEncoded: Cardinal;
  118054. begin
  118055. Result:=ReadJSPropertyInt64('framesEncoded');
  118056. end;
  118057. function TJSRTCOutboundRtpStreamStats._GetqpSum: QWord;
  118058. begin
  118059. Result:=ReadJSPropertyInt64('qpSum');
  118060. end;
  118061. function TJSRTCOutboundRtpStreamStats._GetnackCount: Cardinal;
  118062. begin
  118063. Result:=ReadJSPropertyInt64('nackCount');
  118064. end;
  118065. function TJSRTCOutboundRtpStreamStats._GetfirCount: Cardinal;
  118066. begin
  118067. Result:=ReadJSPropertyInt64('firCount');
  118068. end;
  118069. function TJSRTCOutboundRtpStreamStats._GetpliCount: Cardinal;
  118070. begin
  118071. Result:=ReadJSPropertyInt64('pliCount');
  118072. end;
  118073. function TJSRTCOutboundRtpStreamStats._GetheaderBytesSent: QWord;
  118074. begin
  118075. Result:=ReadJSPropertyInt64('headerBytesSent');
  118076. end;
  118077. function TJSRTCOutboundRtpStreamStats._GetretransmittedPacketsSent: QWord;
  118078. begin
  118079. Result:=ReadJSPropertyInt64('retransmittedPacketsSent');
  118080. end;
  118081. function TJSRTCOutboundRtpStreamStats._GetretransmittedBytesSent: QWord;
  118082. begin
  118083. Result:=ReadJSPropertyInt64('retransmittedBytesSent');
  118084. end;
  118085. function TJSRTCOutboundRtpStreamStats._GettotalEncodedBytesTarget: QWord;
  118086. begin
  118087. Result:=ReadJSPropertyInt64('totalEncodedBytesTarget');
  118088. end;
  118089. function TJSRTCOutboundRtpStreamStats._GetframeWidth: Cardinal;
  118090. begin
  118091. Result:=ReadJSPropertyInt64('frameWidth');
  118092. end;
  118093. function TJSRTCOutboundRtpStreamStats._GetframeHeight: Cardinal;
  118094. begin
  118095. Result:=ReadJSPropertyInt64('frameHeight');
  118096. end;
  118097. function TJSRTCOutboundRtpStreamStats._GetframesPerSecond: Double;
  118098. begin
  118099. Result:=ReadJSPropertyDouble('framesPerSecond');
  118100. end;
  118101. function TJSRTCOutboundRtpStreamStats._GetframesSent: Cardinal;
  118102. begin
  118103. Result:=ReadJSPropertyInt64('framesSent');
  118104. end;
  118105. function TJSRTCOutboundRtpStreamStats._GethugeFramesSent: Cardinal;
  118106. begin
  118107. Result:=ReadJSPropertyInt64('hugeFramesSent');
  118108. end;
  118109. function TJSRTCOutboundRtpStreamStats._GettotalEncodeTime: Double;
  118110. begin
  118111. Result:=ReadJSPropertyDouble('totalEncodeTime');
  118112. end;
  118113. procedure TJSRTCOutboundRtpStreamStats._SetremoteId(const aValue : UnicodeString);
  118114. begin
  118115. WriteJSPropertyUnicodeString('remoteId',aValue);
  118116. end;
  118117. procedure TJSRTCOutboundRtpStreamStats._SetframesEncoded(const aValue : Cardinal);
  118118. begin
  118119. WriteJSPropertyDouble('framesEncoded',aValue);
  118120. end;
  118121. procedure TJSRTCOutboundRtpStreamStats._SetqpSum(const aValue : QWord);
  118122. begin
  118123. WriteJSPropertyDouble('qpSum',aValue);
  118124. end;
  118125. procedure TJSRTCOutboundRtpStreamStats._SetnackCount(const aValue : Cardinal);
  118126. begin
  118127. WriteJSPropertyDouble('nackCount',aValue);
  118128. end;
  118129. procedure TJSRTCOutboundRtpStreamStats._SetfirCount(const aValue : Cardinal);
  118130. begin
  118131. WriteJSPropertyDouble('firCount',aValue);
  118132. end;
  118133. procedure TJSRTCOutboundRtpStreamStats._SetpliCount(const aValue : Cardinal);
  118134. begin
  118135. WriteJSPropertyDouble('pliCount',aValue);
  118136. end;
  118137. procedure TJSRTCOutboundRtpStreamStats._SetheaderBytesSent(const aValue : QWord);
  118138. begin
  118139. WriteJSPropertyDouble('headerBytesSent',aValue);
  118140. end;
  118141. procedure TJSRTCOutboundRtpStreamStats._SetretransmittedPacketsSent(const aValue : QWord);
  118142. begin
  118143. WriteJSPropertyDouble('retransmittedPacketsSent',aValue);
  118144. end;
  118145. procedure TJSRTCOutboundRtpStreamStats._SetretransmittedBytesSent(const aValue : QWord);
  118146. begin
  118147. WriteJSPropertyDouble('retransmittedBytesSent',aValue);
  118148. end;
  118149. procedure TJSRTCOutboundRtpStreamStats._SettotalEncodedBytesTarget(const aValue : QWord);
  118150. begin
  118151. WriteJSPropertyDouble('totalEncodedBytesTarget',aValue);
  118152. end;
  118153. procedure TJSRTCOutboundRtpStreamStats._SetframeWidth(const aValue : Cardinal);
  118154. begin
  118155. WriteJSPropertyDouble('frameWidth',aValue);
  118156. end;
  118157. procedure TJSRTCOutboundRtpStreamStats._SetframeHeight(const aValue : Cardinal);
  118158. begin
  118159. WriteJSPropertyDouble('frameHeight',aValue);
  118160. end;
  118161. procedure TJSRTCOutboundRtpStreamStats._SetframesPerSecond(const aValue : Double);
  118162. begin
  118163. WriteJSPropertyDouble('framesPerSecond',aValue);
  118164. end;
  118165. procedure TJSRTCOutboundRtpStreamStats._SetframesSent(const aValue : Cardinal);
  118166. begin
  118167. WriteJSPropertyDouble('framesSent',aValue);
  118168. end;
  118169. procedure TJSRTCOutboundRtpStreamStats._SethugeFramesSent(const aValue : Cardinal);
  118170. begin
  118171. WriteJSPropertyDouble('hugeFramesSent',aValue);
  118172. end;
  118173. procedure TJSRTCOutboundRtpStreamStats._SettotalEncodeTime(const aValue : Double);
  118174. begin
  118175. WriteJSPropertyDouble('totalEncodeTime',aValue);
  118176. end;
  118177. class function TJSRTCOutboundRtpStreamStats.JSClassName: UnicodeString;
  118178. begin
  118179. Result:='Object';
  118180. end;
  118181. class function TJSRTCOutboundRtpStreamStats.Cast(const Intf: IJSObject): IJSRTCOutboundRtpStreamStats;
  118182. begin
  118183. Result:=TJSRTCOutboundRtpStreamStats.JOBCast(Intf);
  118184. end;
  118185. function TJSRTCRemoteOutboundRtpStreamStats._GetlocalId: UnicodeString;
  118186. begin
  118187. Result:=ReadJSPropertyUnicodeString('localId');
  118188. end;
  118189. function TJSRTCRemoteOutboundRtpStreamStats._GetremoteTimestamp: TDOMHighResTimeStamp;
  118190. begin
  118191. Result:=ReadJSPropertyDouble('remoteTimestamp');
  118192. end;
  118193. procedure TJSRTCRemoteOutboundRtpStreamStats._SetlocalId(const aValue : UnicodeString);
  118194. begin
  118195. WriteJSPropertyUnicodeString('localId',aValue);
  118196. end;
  118197. procedure TJSRTCRemoteOutboundRtpStreamStats._SetremoteTimestamp(const aValue : TDOMHighResTimeStamp);
  118198. begin
  118199. WriteJSPropertyDouble('remoteTimestamp',aValue);
  118200. end;
  118201. class function TJSRTCRemoteOutboundRtpStreamStats.JSClassName: UnicodeString;
  118202. begin
  118203. Result:='Object';
  118204. end;
  118205. class function TJSRTCRemoteOutboundRtpStreamStats.Cast(const Intf: IJSObject): IJSRTCRemoteOutboundRtpStreamStats;
  118206. begin
  118207. Result:=TJSRTCRemoteOutboundRtpStreamStats.JOBCast(Intf);
  118208. end;
  118209. function TJSRTCMediaSourceStats._GettrackIdentifier: UnicodeString;
  118210. begin
  118211. Result:=ReadJSPropertyUnicodeString('trackIdentifier');
  118212. end;
  118213. function TJSRTCMediaSourceStats._Getkind: UnicodeString;
  118214. begin
  118215. Result:=ReadJSPropertyUnicodeString('kind');
  118216. end;
  118217. procedure TJSRTCMediaSourceStats._SettrackIdentifier(const aValue : UnicodeString);
  118218. begin
  118219. WriteJSPropertyUnicodeString('trackIdentifier',aValue);
  118220. end;
  118221. procedure TJSRTCMediaSourceStats._Setkind(const aValue : UnicodeString);
  118222. begin
  118223. WriteJSPropertyUnicodeString('kind',aValue);
  118224. end;
  118225. class function TJSRTCMediaSourceStats.JSClassName: UnicodeString;
  118226. begin
  118227. Result:='Object';
  118228. end;
  118229. class function TJSRTCMediaSourceStats.Cast(const Intf: IJSObject): IJSRTCMediaSourceStats;
  118230. begin
  118231. Result:=TJSRTCMediaSourceStats.JOBCast(Intf);
  118232. end;
  118233. function TJSRTCVideoSourceStats._Getwidth: Cardinal;
  118234. begin
  118235. Result:=ReadJSPropertyInt64('width');
  118236. end;
  118237. function TJSRTCVideoSourceStats._Getheight: Cardinal;
  118238. begin
  118239. Result:=ReadJSPropertyInt64('height');
  118240. end;
  118241. function TJSRTCVideoSourceStats._Getframes: Cardinal;
  118242. begin
  118243. Result:=ReadJSPropertyInt64('frames');
  118244. end;
  118245. function TJSRTCVideoSourceStats._GetframesPerSecond: Double;
  118246. begin
  118247. Result:=ReadJSPropertyDouble('framesPerSecond');
  118248. end;
  118249. procedure TJSRTCVideoSourceStats._Setwidth(const aValue : Cardinal);
  118250. begin
  118251. WriteJSPropertyDouble('width',aValue);
  118252. end;
  118253. procedure TJSRTCVideoSourceStats._Setheight(const aValue : Cardinal);
  118254. begin
  118255. WriteJSPropertyDouble('height',aValue);
  118256. end;
  118257. procedure TJSRTCVideoSourceStats._Setframes(const aValue : Cardinal);
  118258. begin
  118259. WriteJSPropertyDouble('frames',aValue);
  118260. end;
  118261. procedure TJSRTCVideoSourceStats._SetframesPerSecond(const aValue : Double);
  118262. begin
  118263. WriteJSPropertyDouble('framesPerSecond',aValue);
  118264. end;
  118265. class function TJSRTCVideoSourceStats.JSClassName: UnicodeString;
  118266. begin
  118267. Result:='Object';
  118268. end;
  118269. class function TJSRTCVideoSourceStats.Cast(const Intf: IJSObject): IJSRTCVideoSourceStats;
  118270. begin
  118271. Result:=TJSRTCVideoSourceStats.JOBCast(Intf);
  118272. end;
  118273. function TJSRTCPeerConnectionStats._GetdataChannelsOpened: Cardinal;
  118274. begin
  118275. Result:=ReadJSPropertyInt64('dataChannelsOpened');
  118276. end;
  118277. function TJSRTCPeerConnectionStats._GetdataChannelsClosed: Cardinal;
  118278. begin
  118279. Result:=ReadJSPropertyInt64('dataChannelsClosed');
  118280. end;
  118281. procedure TJSRTCPeerConnectionStats._SetdataChannelsOpened(const aValue : Cardinal);
  118282. begin
  118283. WriteJSPropertyDouble('dataChannelsOpened',aValue);
  118284. end;
  118285. procedure TJSRTCPeerConnectionStats._SetdataChannelsClosed(const aValue : Cardinal);
  118286. begin
  118287. WriteJSPropertyDouble('dataChannelsClosed',aValue);
  118288. end;
  118289. class function TJSRTCPeerConnectionStats.JSClassName: UnicodeString;
  118290. begin
  118291. Result:='Object';
  118292. end;
  118293. class function TJSRTCPeerConnectionStats.Cast(const Intf: IJSObject): IJSRTCPeerConnectionStats;
  118294. begin
  118295. Result:=TJSRTCPeerConnectionStats.JOBCast(Intf);
  118296. end;
  118297. function TJSRTCRTPContributingSourceStats._GetcontributorSsrc: Cardinal;
  118298. begin
  118299. Result:=ReadJSPropertyInt64('contributorSsrc');
  118300. end;
  118301. function TJSRTCRTPContributingSourceStats._GetinboundRtpStreamId: UnicodeString;
  118302. begin
  118303. Result:=ReadJSPropertyUnicodeString('inboundRtpStreamId');
  118304. end;
  118305. procedure TJSRTCRTPContributingSourceStats._SetcontributorSsrc(const aValue : Cardinal);
  118306. begin
  118307. WriteJSPropertyDouble('contributorSsrc',aValue);
  118308. end;
  118309. procedure TJSRTCRTPContributingSourceStats._SetinboundRtpStreamId(const aValue : UnicodeString);
  118310. begin
  118311. WriteJSPropertyUnicodeString('inboundRtpStreamId',aValue);
  118312. end;
  118313. class function TJSRTCRTPContributingSourceStats.JSClassName: UnicodeString;
  118314. begin
  118315. Result:='Object';
  118316. end;
  118317. class function TJSRTCRTPContributingSourceStats.Cast(const Intf: IJSObject): IJSRTCRTPContributingSourceStats;
  118318. begin
  118319. Result:=TJSRTCRTPContributingSourceStats.JOBCast(Intf);
  118320. end;
  118321. function TJSRTCDataChannelStats._Getlabel_: UnicodeString;
  118322. begin
  118323. Result:=ReadJSPropertyUnicodeString('label');
  118324. end;
  118325. function TJSRTCDataChannelStats._Getprotocol: UnicodeString;
  118326. begin
  118327. Result:=ReadJSPropertyUnicodeString('protocol');
  118328. end;
  118329. function TJSRTCDataChannelStats._GetdataChannelIdentifier: LongInt;
  118330. begin
  118331. Result:=ReadJSPropertyLongInt('dataChannelIdentifier');
  118332. end;
  118333. function TJSRTCDataChannelStats._Getstate: TRTCDataChannelState;
  118334. begin
  118335. Result:=ReadJSPropertyUnicodeString('state');
  118336. end;
  118337. function TJSRTCDataChannelStats._GetmessagesSent: Cardinal;
  118338. begin
  118339. Result:=ReadJSPropertyInt64('messagesSent');
  118340. end;
  118341. function TJSRTCDataChannelStats._GetbytesSent: QWord;
  118342. begin
  118343. Result:=ReadJSPropertyInt64('bytesSent');
  118344. end;
  118345. function TJSRTCDataChannelStats._GetmessagesReceived: Cardinal;
  118346. begin
  118347. Result:=ReadJSPropertyInt64('messagesReceived');
  118348. end;
  118349. function TJSRTCDataChannelStats._GetbytesReceived: QWord;
  118350. begin
  118351. Result:=ReadJSPropertyInt64('bytesReceived');
  118352. end;
  118353. procedure TJSRTCDataChannelStats._Setlabel_(const aValue : UnicodeString);
  118354. begin
  118355. WriteJSPropertyUnicodeString('label',aValue);
  118356. end;
  118357. procedure TJSRTCDataChannelStats._Setprotocol(const aValue : UnicodeString);
  118358. begin
  118359. WriteJSPropertyUnicodeString('protocol',aValue);
  118360. end;
  118361. procedure TJSRTCDataChannelStats._SetdataChannelIdentifier(const aValue : LongInt);
  118362. begin
  118363. WriteJSPropertyLongInt('dataChannelIdentifier',aValue);
  118364. end;
  118365. procedure TJSRTCDataChannelStats._Setstate(const aValue : TRTCDataChannelState);
  118366. begin
  118367. WriteJSPropertyUnicodeString('state',aValue);
  118368. end;
  118369. procedure TJSRTCDataChannelStats._SetmessagesSent(const aValue : Cardinal);
  118370. begin
  118371. WriteJSPropertyDouble('messagesSent',aValue);
  118372. end;
  118373. procedure TJSRTCDataChannelStats._SetbytesSent(const aValue : QWord);
  118374. begin
  118375. WriteJSPropertyDouble('bytesSent',aValue);
  118376. end;
  118377. procedure TJSRTCDataChannelStats._SetmessagesReceived(const aValue : Cardinal);
  118378. begin
  118379. WriteJSPropertyDouble('messagesReceived',aValue);
  118380. end;
  118381. procedure TJSRTCDataChannelStats._SetbytesReceived(const aValue : QWord);
  118382. begin
  118383. WriteJSPropertyDouble('bytesReceived',aValue);
  118384. end;
  118385. class function TJSRTCDataChannelStats.JSClassName: UnicodeString;
  118386. begin
  118387. Result:='Object';
  118388. end;
  118389. class function TJSRTCDataChannelStats.Cast(const Intf: IJSObject): IJSRTCDataChannelStats;
  118390. begin
  118391. Result:=TJSRTCDataChannelStats.JOBCast(Intf);
  118392. end;
  118393. function TJSRTCIceCandidatePairStats._GettransportId: UnicodeString;
  118394. begin
  118395. Result:=ReadJSPropertyUnicodeString('transportId');
  118396. end;
  118397. function TJSRTCIceCandidatePairStats._GetlocalCandidateId: UnicodeString;
  118398. begin
  118399. Result:=ReadJSPropertyUnicodeString('localCandidateId');
  118400. end;
  118401. function TJSRTCIceCandidatePairStats._GetremoteCandidateId: UnicodeString;
  118402. begin
  118403. Result:=ReadJSPropertyUnicodeString('remoteCandidateId');
  118404. end;
  118405. function TJSRTCIceCandidatePairStats._Getstate: TRTCStatsIceCandidatePairState;
  118406. begin
  118407. Result:=ReadJSPropertyUnicodeString('state');
  118408. end;
  118409. function TJSRTCIceCandidatePairStats._Getpriority: QWord;
  118410. begin
  118411. Result:=ReadJSPropertyInt64('priority');
  118412. end;
  118413. function TJSRTCIceCandidatePairStats._Getnominated: Boolean;
  118414. begin
  118415. Result:=ReadJSPropertyBoolean('nominated');
  118416. end;
  118417. function TJSRTCIceCandidatePairStats._Getwritable: Boolean;
  118418. begin
  118419. Result:=ReadJSPropertyBoolean('writable');
  118420. end;
  118421. function TJSRTCIceCandidatePairStats._Getreadable: Boolean;
  118422. begin
  118423. Result:=ReadJSPropertyBoolean('readable');
  118424. end;
  118425. function TJSRTCIceCandidatePairStats._GetbytesSent: QWord;
  118426. begin
  118427. Result:=ReadJSPropertyInt64('bytesSent');
  118428. end;
  118429. function TJSRTCIceCandidatePairStats._GetbytesReceived: QWord;
  118430. begin
  118431. Result:=ReadJSPropertyInt64('bytesReceived');
  118432. end;
  118433. function TJSRTCIceCandidatePairStats._GetlastPacketSentTimestamp: TDOMHighResTimeStamp;
  118434. begin
  118435. Result:=ReadJSPropertyDouble('lastPacketSentTimestamp');
  118436. end;
  118437. function TJSRTCIceCandidatePairStats._GetlastPacketReceivedTimestamp: TDOMHighResTimeStamp;
  118438. begin
  118439. Result:=ReadJSPropertyDouble('lastPacketReceivedTimestamp');
  118440. end;
  118441. function TJSRTCIceCandidatePairStats._Getselected: Boolean;
  118442. begin
  118443. Result:=ReadJSPropertyBoolean('selected');
  118444. end;
  118445. procedure TJSRTCIceCandidatePairStats._SettransportId(const aValue : UnicodeString);
  118446. begin
  118447. WriteJSPropertyUnicodeString('transportId',aValue);
  118448. end;
  118449. procedure TJSRTCIceCandidatePairStats._SetlocalCandidateId(const aValue : UnicodeString);
  118450. begin
  118451. WriteJSPropertyUnicodeString('localCandidateId',aValue);
  118452. end;
  118453. procedure TJSRTCIceCandidatePairStats._SetremoteCandidateId(const aValue : UnicodeString);
  118454. begin
  118455. WriteJSPropertyUnicodeString('remoteCandidateId',aValue);
  118456. end;
  118457. procedure TJSRTCIceCandidatePairStats._Setstate(const aValue : TRTCStatsIceCandidatePairState);
  118458. begin
  118459. WriteJSPropertyUnicodeString('state',aValue);
  118460. end;
  118461. procedure TJSRTCIceCandidatePairStats._Setpriority(const aValue : QWord);
  118462. begin
  118463. WriteJSPropertyDouble('priority',aValue);
  118464. end;
  118465. procedure TJSRTCIceCandidatePairStats._Setnominated(const aValue : Boolean);
  118466. begin
  118467. WriteJSPropertyBoolean('nominated',aValue);
  118468. end;
  118469. procedure TJSRTCIceCandidatePairStats._Setwritable(const aValue : Boolean);
  118470. begin
  118471. WriteJSPropertyBoolean('writable',aValue);
  118472. end;
  118473. procedure TJSRTCIceCandidatePairStats._Setreadable(const aValue : Boolean);
  118474. begin
  118475. WriteJSPropertyBoolean('readable',aValue);
  118476. end;
  118477. procedure TJSRTCIceCandidatePairStats._SetbytesSent(const aValue : QWord);
  118478. begin
  118479. WriteJSPropertyDouble('bytesSent',aValue);
  118480. end;
  118481. procedure TJSRTCIceCandidatePairStats._SetbytesReceived(const aValue : QWord);
  118482. begin
  118483. WriteJSPropertyDouble('bytesReceived',aValue);
  118484. end;
  118485. procedure TJSRTCIceCandidatePairStats._SetlastPacketSentTimestamp(const aValue : TDOMHighResTimeStamp);
  118486. begin
  118487. WriteJSPropertyDouble('lastPacketSentTimestamp',aValue);
  118488. end;
  118489. procedure TJSRTCIceCandidatePairStats._SetlastPacketReceivedTimestamp(const aValue : TDOMHighResTimeStamp);
  118490. begin
  118491. WriteJSPropertyDouble('lastPacketReceivedTimestamp',aValue);
  118492. end;
  118493. procedure TJSRTCIceCandidatePairStats._Setselected(const aValue : Boolean);
  118494. begin
  118495. WriteJSPropertyBoolean('selected',aValue);
  118496. end;
  118497. class function TJSRTCIceCandidatePairStats.JSClassName: UnicodeString;
  118498. begin
  118499. Result:='Object';
  118500. end;
  118501. class function TJSRTCIceCandidatePairStats.Cast(const Intf: IJSObject): IJSRTCIceCandidatePairStats;
  118502. begin
  118503. Result:=TJSRTCIceCandidatePairStats.JOBCast(Intf);
  118504. end;
  118505. function TJSRTCIceCandidateStats._Getaddress: UnicodeString;
  118506. begin
  118507. Result:=ReadJSPropertyUnicodeString('address');
  118508. end;
  118509. function TJSRTCIceCandidateStats._Getport: LongInt;
  118510. begin
  118511. Result:=ReadJSPropertyLongInt('port');
  118512. end;
  118513. function TJSRTCIceCandidateStats._Getprotocol: UnicodeString;
  118514. begin
  118515. Result:=ReadJSPropertyUnicodeString('protocol');
  118516. end;
  118517. function TJSRTCIceCandidateStats._GetcandidateType: TRTCIceCandidateType;
  118518. begin
  118519. Result:=ReadJSPropertyUnicodeString('candidateType');
  118520. end;
  118521. function TJSRTCIceCandidateStats._Getpriority: LongInt;
  118522. begin
  118523. Result:=ReadJSPropertyLongInt('priority');
  118524. end;
  118525. function TJSRTCIceCandidateStats._GetrelayProtocol: UnicodeString;
  118526. begin
  118527. Result:=ReadJSPropertyUnicodeString('relayProtocol');
  118528. end;
  118529. procedure TJSRTCIceCandidateStats._Setaddress(const aValue : UnicodeString);
  118530. begin
  118531. WriteJSPropertyUnicodeString('address',aValue);
  118532. end;
  118533. procedure TJSRTCIceCandidateStats._Setport(const aValue : LongInt);
  118534. begin
  118535. WriteJSPropertyLongInt('port',aValue);
  118536. end;
  118537. procedure TJSRTCIceCandidateStats._Setprotocol(const aValue : UnicodeString);
  118538. begin
  118539. WriteJSPropertyUnicodeString('protocol',aValue);
  118540. end;
  118541. procedure TJSRTCIceCandidateStats._SetcandidateType(const aValue : TRTCIceCandidateType);
  118542. begin
  118543. WriteJSPropertyUnicodeString('candidateType',aValue);
  118544. end;
  118545. procedure TJSRTCIceCandidateStats._Setpriority(const aValue : LongInt);
  118546. begin
  118547. WriteJSPropertyLongInt('priority',aValue);
  118548. end;
  118549. procedure TJSRTCIceCandidateStats._SetrelayProtocol(const aValue : UnicodeString);
  118550. begin
  118551. WriteJSPropertyUnicodeString('relayProtocol',aValue);
  118552. end;
  118553. class function TJSRTCIceCandidateStats.JSClassName: UnicodeString;
  118554. begin
  118555. Result:='Object';
  118556. end;
  118557. class function TJSRTCIceCandidateStats.Cast(const Intf: IJSObject): IJSRTCIceCandidateStats;
  118558. begin
  118559. Result:=TJSRTCIceCandidateStats.JOBCast(Intf);
  118560. end;
  118561. function TJSRTCVideoFrameHistoryEntryInternal._Getwidth: Cardinal;
  118562. begin
  118563. Result:=ReadJSPropertyInt64('width');
  118564. end;
  118565. function TJSRTCVideoFrameHistoryEntryInternal._Getheight: Cardinal;
  118566. begin
  118567. Result:=ReadJSPropertyInt64('height');
  118568. end;
  118569. function TJSRTCVideoFrameHistoryEntryInternal._GetrotationAngle: Cardinal;
  118570. begin
  118571. Result:=ReadJSPropertyInt64('rotationAngle');
  118572. end;
  118573. function TJSRTCVideoFrameHistoryEntryInternal._GetfirstFrameTimestamp: TDOMHighResTimeStamp;
  118574. begin
  118575. Result:=ReadJSPropertyDouble('firstFrameTimestamp');
  118576. end;
  118577. function TJSRTCVideoFrameHistoryEntryInternal._GetlastFrameTimestamp: TDOMHighResTimeStamp;
  118578. begin
  118579. Result:=ReadJSPropertyDouble('lastFrameTimestamp');
  118580. end;
  118581. function TJSRTCVideoFrameHistoryEntryInternal._GetconsecutiveFrames: QWord;
  118582. begin
  118583. Result:=ReadJSPropertyInt64('consecutiveFrames');
  118584. end;
  118585. function TJSRTCVideoFrameHistoryEntryInternal._GetlocalSsrc: Cardinal;
  118586. begin
  118587. Result:=ReadJSPropertyInt64('localSsrc');
  118588. end;
  118589. function TJSRTCVideoFrameHistoryEntryInternal._GetremoteSsrc: Cardinal;
  118590. begin
  118591. Result:=ReadJSPropertyInt64('remoteSsrc');
  118592. end;
  118593. procedure TJSRTCVideoFrameHistoryEntryInternal._Setwidth(const aValue : Cardinal);
  118594. begin
  118595. WriteJSPropertyDouble('width',aValue);
  118596. end;
  118597. procedure TJSRTCVideoFrameHistoryEntryInternal._Setheight(const aValue : Cardinal);
  118598. begin
  118599. WriteJSPropertyDouble('height',aValue);
  118600. end;
  118601. procedure TJSRTCVideoFrameHistoryEntryInternal._SetrotationAngle(const aValue : Cardinal);
  118602. begin
  118603. WriteJSPropertyDouble('rotationAngle',aValue);
  118604. end;
  118605. procedure TJSRTCVideoFrameHistoryEntryInternal._SetfirstFrameTimestamp(const aValue : TDOMHighResTimeStamp);
  118606. begin
  118607. WriteJSPropertyDouble('firstFrameTimestamp',aValue);
  118608. end;
  118609. procedure TJSRTCVideoFrameHistoryEntryInternal._SetlastFrameTimestamp(const aValue : TDOMHighResTimeStamp);
  118610. begin
  118611. WriteJSPropertyDouble('lastFrameTimestamp',aValue);
  118612. end;
  118613. procedure TJSRTCVideoFrameHistoryEntryInternal._SetconsecutiveFrames(const aValue : QWord);
  118614. begin
  118615. WriteJSPropertyDouble('consecutiveFrames',aValue);
  118616. end;
  118617. procedure TJSRTCVideoFrameHistoryEntryInternal._SetlocalSsrc(const aValue : Cardinal);
  118618. begin
  118619. WriteJSPropertyDouble('localSsrc',aValue);
  118620. end;
  118621. procedure TJSRTCVideoFrameHistoryEntryInternal._SetremoteSsrc(const aValue : Cardinal);
  118622. begin
  118623. WriteJSPropertyDouble('remoteSsrc',aValue);
  118624. end;
  118625. class function TJSRTCVideoFrameHistoryEntryInternal.JSClassName: UnicodeString;
  118626. begin
  118627. Result:='Object';
  118628. end;
  118629. class function TJSRTCVideoFrameHistoryEntryInternal.Cast(const Intf: IJSObject): IJSRTCVideoFrameHistoryEntryInternal;
  118630. begin
  118631. Result:=TJSRTCVideoFrameHistoryEntryInternal.JOBCast(Intf);
  118632. end;
  118633. function TJSRTCVideoFrameHistoryInternal._GettrackIdentifier: UnicodeString;
  118634. begin
  118635. Result:=ReadJSPropertyUnicodeString('trackIdentifier');
  118636. end;
  118637. function TJSRTCVideoFrameHistoryInternal._Getentries: TJSRTCVideoFrameHistoryEntryInternalDynArray;
  118638. begin
  118639. Result:=ReadJSPropertyObject('entries',TJSArray) as TJSRTCVideoFrameHistoryEntryInternalDynArray;
  118640. end;
  118641. procedure TJSRTCVideoFrameHistoryInternal._SettrackIdentifier(const aValue : UnicodeString);
  118642. begin
  118643. WriteJSPropertyUnicodeString('trackIdentifier',aValue);
  118644. end;
  118645. procedure TJSRTCVideoFrameHistoryInternal._Setentries(const aValue : TJSRTCVideoFrameHistoryEntryInternalDynArray);
  118646. begin
  118647. WriteJSPropertyObject('entries',aValue);
  118648. end;
  118649. class function TJSRTCVideoFrameHistoryInternal.JSClassName: UnicodeString;
  118650. begin
  118651. Result:='Object';
  118652. end;
  118653. class function TJSRTCVideoFrameHistoryInternal.Cast(const Intf: IJSObject): IJSRTCVideoFrameHistoryInternal;
  118654. begin
  118655. Result:=TJSRTCVideoFrameHistoryInternal.JOBCast(Intf);
  118656. end;
  118657. function TJSRTCBandwidthEstimationInternal._GettrackIdentifier: UnicodeString;
  118658. begin
  118659. Result:=ReadJSPropertyUnicodeString('trackIdentifier');
  118660. end;
  118661. function TJSRTCBandwidthEstimationInternal._GetsendBandwidthBps: LongInt;
  118662. begin
  118663. Result:=ReadJSPropertyLongInt('sendBandwidthBps');
  118664. end;
  118665. function TJSRTCBandwidthEstimationInternal._GetmaxPaddingBps: LongInt;
  118666. begin
  118667. Result:=ReadJSPropertyLongInt('maxPaddingBps');
  118668. end;
  118669. function TJSRTCBandwidthEstimationInternal._GetreceiveBandwidthBps: LongInt;
  118670. begin
  118671. Result:=ReadJSPropertyLongInt('receiveBandwidthBps');
  118672. end;
  118673. function TJSRTCBandwidthEstimationInternal._GetpacerDelayMs: LongInt;
  118674. begin
  118675. Result:=ReadJSPropertyLongInt('pacerDelayMs');
  118676. end;
  118677. function TJSRTCBandwidthEstimationInternal._GetrttMs: LongInt;
  118678. begin
  118679. Result:=ReadJSPropertyLongInt('rttMs');
  118680. end;
  118681. procedure TJSRTCBandwidthEstimationInternal._SettrackIdentifier(const aValue : UnicodeString);
  118682. begin
  118683. WriteJSPropertyUnicodeString('trackIdentifier',aValue);
  118684. end;
  118685. procedure TJSRTCBandwidthEstimationInternal._SetsendBandwidthBps(const aValue : LongInt);
  118686. begin
  118687. WriteJSPropertyLongInt('sendBandwidthBps',aValue);
  118688. end;
  118689. procedure TJSRTCBandwidthEstimationInternal._SetmaxPaddingBps(const aValue : LongInt);
  118690. begin
  118691. WriteJSPropertyLongInt('maxPaddingBps',aValue);
  118692. end;
  118693. procedure TJSRTCBandwidthEstimationInternal._SetreceiveBandwidthBps(const aValue : LongInt);
  118694. begin
  118695. WriteJSPropertyLongInt('receiveBandwidthBps',aValue);
  118696. end;
  118697. procedure TJSRTCBandwidthEstimationInternal._SetpacerDelayMs(const aValue : LongInt);
  118698. begin
  118699. WriteJSPropertyLongInt('pacerDelayMs',aValue);
  118700. end;
  118701. procedure TJSRTCBandwidthEstimationInternal._SetrttMs(const aValue : LongInt);
  118702. begin
  118703. WriteJSPropertyLongInt('rttMs',aValue);
  118704. end;
  118705. class function TJSRTCBandwidthEstimationInternal.JSClassName: UnicodeString;
  118706. begin
  118707. Result:='Object';
  118708. end;
  118709. class function TJSRTCBandwidthEstimationInternal.Cast(const Intf: IJSObject): IJSRTCBandwidthEstimationInternal;
  118710. begin
  118711. Result:=TJSRTCBandwidthEstimationInternal.JOBCast(Intf);
  118712. end;
  118713. function TJSRTCSdpParsingErrorInternal._GetlineNumber: Cardinal;
  118714. begin
  118715. Result:=ReadJSPropertyInt64('lineNumber');
  118716. end;
  118717. function TJSRTCSdpParsingErrorInternal._Geterror: UnicodeString;
  118718. begin
  118719. Result:=ReadJSPropertyUnicodeString('error');
  118720. end;
  118721. procedure TJSRTCSdpParsingErrorInternal._SetlineNumber(const aValue : Cardinal);
  118722. begin
  118723. WriteJSPropertyDouble('lineNumber',aValue);
  118724. end;
  118725. procedure TJSRTCSdpParsingErrorInternal._Seterror(const aValue : UnicodeString);
  118726. begin
  118727. WriteJSPropertyUnicodeString('error',aValue);
  118728. end;
  118729. class function TJSRTCSdpParsingErrorInternal.JSClassName: UnicodeString;
  118730. begin
  118731. Result:='Object';
  118732. end;
  118733. class function TJSRTCSdpParsingErrorInternal.Cast(const Intf: IJSObject): IJSRTCSdpParsingErrorInternal;
  118734. begin
  118735. Result:=TJSRTCSdpParsingErrorInternal.JOBCast(Intf);
  118736. end;
  118737. function TJSRTCSdpHistoryEntryInternal._Gettimestamp: TDOMHighResTimeStamp;
  118738. begin
  118739. Result:=ReadJSPropertyDouble('timestamp');
  118740. end;
  118741. function TJSRTCSdpHistoryEntryInternal._GetisLocal: Boolean;
  118742. begin
  118743. Result:=ReadJSPropertyBoolean('isLocal');
  118744. end;
  118745. function TJSRTCSdpHistoryEntryInternal._Getsdp: UnicodeString;
  118746. begin
  118747. Result:=ReadJSPropertyUnicodeString('sdp');
  118748. end;
  118749. function TJSRTCSdpHistoryEntryInternal._Geterrors: TJSRTCSdpParsingErrorInternalDynArray;
  118750. begin
  118751. Result:=ReadJSPropertyObject('errors',TJSArray) as TJSRTCSdpParsingErrorInternalDynArray;
  118752. end;
  118753. procedure TJSRTCSdpHistoryEntryInternal._Settimestamp(const aValue : TDOMHighResTimeStamp);
  118754. begin
  118755. WriteJSPropertyDouble('timestamp',aValue);
  118756. end;
  118757. procedure TJSRTCSdpHistoryEntryInternal._SetisLocal(const aValue : Boolean);
  118758. begin
  118759. WriteJSPropertyBoolean('isLocal',aValue);
  118760. end;
  118761. procedure TJSRTCSdpHistoryEntryInternal._Setsdp(const aValue : UnicodeString);
  118762. begin
  118763. WriteJSPropertyUnicodeString('sdp',aValue);
  118764. end;
  118765. procedure TJSRTCSdpHistoryEntryInternal._Seterrors(const aValue : TJSRTCSdpParsingErrorInternalDynArray);
  118766. begin
  118767. WriteJSPropertyObject('errors',aValue);
  118768. end;
  118769. class function TJSRTCSdpHistoryEntryInternal.JSClassName: UnicodeString;
  118770. begin
  118771. Result:='Object';
  118772. end;
  118773. class function TJSRTCSdpHistoryEntryInternal.Cast(const Intf: IJSObject): IJSRTCSdpHistoryEntryInternal;
  118774. begin
  118775. Result:=TJSRTCSdpHistoryEntryInternal.JOBCast(Intf);
  118776. end;
  118777. function TJSRTCStatsCollection._GetinboundRtpStreamStats: TJSRTCInboundRtpStreamStatsDynArray;
  118778. begin
  118779. Result:=ReadJSPropertyObject('inboundRtpStreamStats',TJSArray) as TJSRTCInboundRtpStreamStatsDynArray;
  118780. end;
  118781. function TJSRTCStatsCollection._GetoutboundRtpStreamStats: TJSRTCOutboundRtpStreamStatsDynArray;
  118782. begin
  118783. Result:=ReadJSPropertyObject('outboundRtpStreamStats',TJSArray) as TJSRTCOutboundRtpStreamStatsDynArray;
  118784. end;
  118785. function TJSRTCStatsCollection._GetremoteInboundRtpStreamStats: TJSRTCRemoteInboundRtpStreamStatsDynArray;
  118786. begin
  118787. Result:=ReadJSPropertyObject('remoteInboundRtpStreamStats',TJSArray) as TJSRTCRemoteInboundRtpStreamStatsDynArray;
  118788. end;
  118789. function TJSRTCStatsCollection._GetremoteOutboundRtpStreamStats: TJSRTCRemoteOutboundRtpStreamStatsDynArray;
  118790. begin
  118791. Result:=ReadJSPropertyObject('remoteOutboundRtpStreamStats',TJSArray) as TJSRTCRemoteOutboundRtpStreamStatsDynArray;
  118792. end;
  118793. function TJSRTCStatsCollection._GetmediaSourceStats: TJSRTCMediaSourceStatsDynArray;
  118794. begin
  118795. Result:=ReadJSPropertyObject('mediaSourceStats',TJSArray) as TJSRTCMediaSourceStatsDynArray;
  118796. end;
  118797. function TJSRTCStatsCollection._GetvideoSourceStats: TJSRTCVideoSourceStatsDynArray;
  118798. begin
  118799. Result:=ReadJSPropertyObject('videoSourceStats',TJSArray) as TJSRTCVideoSourceStatsDynArray;
  118800. end;
  118801. function TJSRTCStatsCollection._GetpeerConnectionStats: TJSRTCPeerConnectionStatsDynArray;
  118802. begin
  118803. Result:=ReadJSPropertyObject('peerConnectionStats',TJSArray) as TJSRTCPeerConnectionStatsDynArray;
  118804. end;
  118805. function TJSRTCStatsCollection._GetrtpContributingSourceStats: TJSRTCRTPContributingSourceStatsDynArray;
  118806. begin
  118807. Result:=ReadJSPropertyObject('rtpContributingSourceStats',TJSArray) as TJSRTCRTPContributingSourceStatsDynArray;
  118808. end;
  118809. function TJSRTCStatsCollection._GeticeCandidatePairStats: TJSRTCIceCandidatePairStatsDynArray;
  118810. begin
  118811. Result:=ReadJSPropertyObject('iceCandidatePairStats',TJSArray) as TJSRTCIceCandidatePairStatsDynArray;
  118812. end;
  118813. function TJSRTCStatsCollection._GeticeCandidateStats: TJSRTCIceCandidateStatsDynArray;
  118814. begin
  118815. Result:=ReadJSPropertyObject('iceCandidateStats',TJSArray) as TJSRTCIceCandidateStatsDynArray;
  118816. end;
  118817. function TJSRTCStatsCollection._GettrickledIceCandidateStats: TJSRTCIceCandidateStatsDynArray;
  118818. begin
  118819. Result:=ReadJSPropertyObject('trickledIceCandidateStats',TJSArray) as TJSRTCIceCandidateStatsDynArray;
  118820. end;
  118821. function TJSRTCStatsCollection._GetdataChannelStats: TJSRTCDataChannelStatsDynArray;
  118822. begin
  118823. Result:=ReadJSPropertyObject('dataChannelStats',TJSArray) as TJSRTCDataChannelStatsDynArray;
  118824. end;
  118825. function TJSRTCStatsCollection._GetcodecStats: TJSRTCCodecStatsDynArray;
  118826. begin
  118827. Result:=ReadJSPropertyObject('codecStats',TJSArray) as TJSRTCCodecStatsDynArray;
  118828. end;
  118829. function TJSRTCStatsCollection._GetrawLocalCandidates: TUnicodeStringDynArray;
  118830. begin
  118831. Result:=ReadJSPropertyObject('rawLocalCandidates',TJSArray) as TUnicodeStringDynArray;
  118832. end;
  118833. function TJSRTCStatsCollection._GetrawRemoteCandidates: TUnicodeStringDynArray;
  118834. begin
  118835. Result:=ReadJSPropertyObject('rawRemoteCandidates',TJSArray) as TUnicodeStringDynArray;
  118836. end;
  118837. function TJSRTCStatsCollection._GetvideoFrameHistories: TJSRTCVideoFrameHistoryInternalDynArray;
  118838. begin
  118839. Result:=ReadJSPropertyObject('videoFrameHistories',TJSArray) as TJSRTCVideoFrameHistoryInternalDynArray;
  118840. end;
  118841. function TJSRTCStatsCollection._GetbandwidthEstimations: TJSRTCBandwidthEstimationInternalDynArray;
  118842. begin
  118843. Result:=ReadJSPropertyObject('bandwidthEstimations',TJSArray) as TJSRTCBandwidthEstimationInternalDynArray;
  118844. end;
  118845. procedure TJSRTCStatsCollection._SetinboundRtpStreamStats(const aValue : TJSRTCInboundRtpStreamStatsDynArray);
  118846. begin
  118847. WriteJSPropertyObject('inboundRtpStreamStats',aValue);
  118848. end;
  118849. procedure TJSRTCStatsCollection._SetoutboundRtpStreamStats(const aValue : TJSRTCOutboundRtpStreamStatsDynArray);
  118850. begin
  118851. WriteJSPropertyObject('outboundRtpStreamStats',aValue);
  118852. end;
  118853. procedure TJSRTCStatsCollection._SetremoteInboundRtpStreamStats(const aValue : TJSRTCRemoteInboundRtpStreamStatsDynArray);
  118854. begin
  118855. WriteJSPropertyObject('remoteInboundRtpStreamStats',aValue);
  118856. end;
  118857. procedure TJSRTCStatsCollection._SetremoteOutboundRtpStreamStats(const aValue : TJSRTCRemoteOutboundRtpStreamStatsDynArray);
  118858. begin
  118859. WriteJSPropertyObject('remoteOutboundRtpStreamStats',aValue);
  118860. end;
  118861. procedure TJSRTCStatsCollection._SetmediaSourceStats(const aValue : TJSRTCMediaSourceStatsDynArray);
  118862. begin
  118863. WriteJSPropertyObject('mediaSourceStats',aValue);
  118864. end;
  118865. procedure TJSRTCStatsCollection._SetvideoSourceStats(const aValue : TJSRTCVideoSourceStatsDynArray);
  118866. begin
  118867. WriteJSPropertyObject('videoSourceStats',aValue);
  118868. end;
  118869. procedure TJSRTCStatsCollection._SetpeerConnectionStats(const aValue : TJSRTCPeerConnectionStatsDynArray);
  118870. begin
  118871. WriteJSPropertyObject('peerConnectionStats',aValue);
  118872. end;
  118873. procedure TJSRTCStatsCollection._SetrtpContributingSourceStats(const aValue : TJSRTCRTPContributingSourceStatsDynArray);
  118874. begin
  118875. WriteJSPropertyObject('rtpContributingSourceStats',aValue);
  118876. end;
  118877. procedure TJSRTCStatsCollection._SeticeCandidatePairStats(const aValue : TJSRTCIceCandidatePairStatsDynArray);
  118878. begin
  118879. WriteJSPropertyObject('iceCandidatePairStats',aValue);
  118880. end;
  118881. procedure TJSRTCStatsCollection._SeticeCandidateStats(const aValue : TJSRTCIceCandidateStatsDynArray);
  118882. begin
  118883. WriteJSPropertyObject('iceCandidateStats',aValue);
  118884. end;
  118885. procedure TJSRTCStatsCollection._SettrickledIceCandidateStats(const aValue : TJSRTCIceCandidateStatsDynArray);
  118886. begin
  118887. WriteJSPropertyObject('trickledIceCandidateStats',aValue);
  118888. end;
  118889. procedure TJSRTCStatsCollection._SetdataChannelStats(const aValue : TJSRTCDataChannelStatsDynArray);
  118890. begin
  118891. WriteJSPropertyObject('dataChannelStats',aValue);
  118892. end;
  118893. procedure TJSRTCStatsCollection._SetcodecStats(const aValue : TJSRTCCodecStatsDynArray);
  118894. begin
  118895. WriteJSPropertyObject('codecStats',aValue);
  118896. end;
  118897. procedure TJSRTCStatsCollection._SetrawLocalCandidates(const aValue : TUnicodeStringDynArray);
  118898. begin
  118899. WriteJSPropertyObject('rawLocalCandidates',aValue);
  118900. end;
  118901. procedure TJSRTCStatsCollection._SetrawRemoteCandidates(const aValue : TUnicodeStringDynArray);
  118902. begin
  118903. WriteJSPropertyObject('rawRemoteCandidates',aValue);
  118904. end;
  118905. procedure TJSRTCStatsCollection._SetvideoFrameHistories(const aValue : TJSRTCVideoFrameHistoryInternalDynArray);
  118906. begin
  118907. WriteJSPropertyObject('videoFrameHistories',aValue);
  118908. end;
  118909. procedure TJSRTCStatsCollection._SetbandwidthEstimations(const aValue : TJSRTCBandwidthEstimationInternalDynArray);
  118910. begin
  118911. WriteJSPropertyObject('bandwidthEstimations',aValue);
  118912. end;
  118913. class function TJSRTCStatsCollection.JSClassName: UnicodeString;
  118914. begin
  118915. Result:='Object';
  118916. end;
  118917. class function TJSRTCStatsCollection.Cast(const Intf: IJSObject): IJSRTCStatsCollection;
  118918. begin
  118919. Result:=TJSRTCStatsCollection.JOBCast(Intf);
  118920. end;
  118921. function TJSRTCIceServerInternal._Geturls: TUnicodeStringDynArray;
  118922. begin
  118923. Result:=ReadJSPropertyObject('urls',TJSArray) as TUnicodeStringDynArray;
  118924. end;
  118925. function TJSRTCIceServerInternal._GetcredentialProvided: Boolean;
  118926. begin
  118927. Result:=ReadJSPropertyBoolean('credentialProvided');
  118928. end;
  118929. function TJSRTCIceServerInternal._GetuserNameProvided: Boolean;
  118930. begin
  118931. Result:=ReadJSPropertyBoolean('userNameProvided');
  118932. end;
  118933. procedure TJSRTCIceServerInternal._Seturls(const aValue : TUnicodeStringDynArray);
  118934. begin
  118935. WriteJSPropertyObject('urls',aValue);
  118936. end;
  118937. procedure TJSRTCIceServerInternal._SetcredentialProvided(const aValue : Boolean);
  118938. begin
  118939. WriteJSPropertyBoolean('credentialProvided',aValue);
  118940. end;
  118941. procedure TJSRTCIceServerInternal._SetuserNameProvided(const aValue : Boolean);
  118942. begin
  118943. WriteJSPropertyBoolean('userNameProvided',aValue);
  118944. end;
  118945. class function TJSRTCIceServerInternal.JSClassName: UnicodeString;
  118946. begin
  118947. Result:='Object';
  118948. end;
  118949. class function TJSRTCIceServerInternal.Cast(const Intf: IJSObject): IJSRTCIceServerInternal;
  118950. begin
  118951. Result:=TJSRTCIceServerInternal.JOBCast(Intf);
  118952. end;
  118953. function TJSRTCConfigurationInternal._GetbundlePolicy: TRTCBundlePolicy;
  118954. begin
  118955. Result:=ReadJSPropertyUnicodeString('bundlePolicy');
  118956. end;
  118957. function TJSRTCConfigurationInternal._GetcertificatesProvided: Boolean;
  118958. begin
  118959. Result:=ReadJSPropertyBoolean('certificatesProvided');
  118960. end;
  118961. function TJSRTCConfigurationInternal._GeticeServers: TJSRTCIceServerInternalDynArray;
  118962. begin
  118963. Result:=ReadJSPropertyObject('iceServers',TJSArray) as TJSRTCIceServerInternalDynArray;
  118964. end;
  118965. function TJSRTCConfigurationInternal._GeticeTransportPolicy: TRTCIceTransportPolicy;
  118966. begin
  118967. Result:=ReadJSPropertyUnicodeString('iceTransportPolicy');
  118968. end;
  118969. function TJSRTCConfigurationInternal._GetpeerIdentityProvided: Boolean;
  118970. begin
  118971. Result:=ReadJSPropertyBoolean('peerIdentityProvided');
  118972. end;
  118973. function TJSRTCConfigurationInternal._GetsdpSemantics: UnicodeString;
  118974. begin
  118975. Result:=ReadJSPropertyUnicodeString('sdpSemantics');
  118976. end;
  118977. procedure TJSRTCConfigurationInternal._SetbundlePolicy(const aValue : TRTCBundlePolicy);
  118978. begin
  118979. WriteJSPropertyUnicodeString('bundlePolicy',aValue);
  118980. end;
  118981. procedure TJSRTCConfigurationInternal._SetcertificatesProvided(const aValue : Boolean);
  118982. begin
  118983. WriteJSPropertyBoolean('certificatesProvided',aValue);
  118984. end;
  118985. procedure TJSRTCConfigurationInternal._SeticeServers(const aValue : TJSRTCIceServerInternalDynArray);
  118986. begin
  118987. WriteJSPropertyObject('iceServers',aValue);
  118988. end;
  118989. procedure TJSRTCConfigurationInternal._SeticeTransportPolicy(const aValue : TRTCIceTransportPolicy);
  118990. begin
  118991. WriteJSPropertyUnicodeString('iceTransportPolicy',aValue);
  118992. end;
  118993. procedure TJSRTCConfigurationInternal._SetpeerIdentityProvided(const aValue : Boolean);
  118994. begin
  118995. WriteJSPropertyBoolean('peerIdentityProvided',aValue);
  118996. end;
  118997. procedure TJSRTCConfigurationInternal._SetsdpSemantics(const aValue : UnicodeString);
  118998. begin
  118999. WriteJSPropertyUnicodeString('sdpSemantics',aValue);
  119000. end;
  119001. class function TJSRTCConfigurationInternal.JSClassName: UnicodeString;
  119002. begin
  119003. Result:='Object';
  119004. end;
  119005. class function TJSRTCConfigurationInternal.Cast(const Intf: IJSObject): IJSRTCConfigurationInternal;
  119006. begin
  119007. Result:=TJSRTCConfigurationInternal.JOBCast(Intf);
  119008. end;
  119009. function TJSRTCSdpHistoryInternal._Getpcid: UnicodeString;
  119010. begin
  119011. Result:=ReadJSPropertyUnicodeString('pcid');
  119012. end;
  119013. function TJSRTCSdpHistoryInternal._GetsdpHistory: TJSRTCSdpHistoryEntryInternalDynArray;
  119014. begin
  119015. Result:=ReadJSPropertyObject('sdpHistory',TJSArray) as TJSRTCSdpHistoryEntryInternalDynArray;
  119016. end;
  119017. procedure TJSRTCSdpHistoryInternal._Setpcid(const aValue : UnicodeString);
  119018. begin
  119019. WriteJSPropertyUnicodeString('pcid',aValue);
  119020. end;
  119021. procedure TJSRTCSdpHistoryInternal._SetsdpHistory(const aValue : TJSRTCSdpHistoryEntryInternalDynArray);
  119022. begin
  119023. WriteJSPropertyObject('sdpHistory',aValue);
  119024. end;
  119025. class function TJSRTCSdpHistoryInternal.JSClassName: UnicodeString;
  119026. begin
  119027. Result:='Object';
  119028. end;
  119029. class function TJSRTCSdpHistoryInternal.Cast(const Intf: IJSObject): IJSRTCSdpHistoryInternal;
  119030. begin
  119031. Result:=TJSRTCSdpHistoryInternal.JOBCast(Intf);
  119032. end;
  119033. function TJSRTCStatsReportInternal._Getpcid: UnicodeString;
  119034. begin
  119035. Result:=ReadJSPropertyUnicodeString('pcid');
  119036. end;
  119037. function TJSRTCStatsReportInternal._GetbrowserId: Cardinal;
  119038. begin
  119039. Result:=ReadJSPropertyInt64('browserId');
  119040. end;
  119041. function TJSRTCStatsReportInternal._Getconfiguration: TJSRTCConfigurationInternal;
  119042. begin
  119043. Result:=ReadJSPropertyObject('configuration',TJSRTCConfigurationInternal) as TJSRTCConfigurationInternal;
  119044. end;
  119045. function TJSRTCStatsReportInternal._GetjsepSessionErrors: UnicodeString;
  119046. begin
  119047. Result:=ReadJSPropertyUnicodeString('jsepSessionErrors');
  119048. end;
  119049. function TJSRTCStatsReportInternal._GetsdpHistory: TJSRTCSdpHistoryEntryInternalDynArray;
  119050. begin
  119051. Result:=ReadJSPropertyObject('sdpHistory',TJSArray) as TJSRTCSdpHistoryEntryInternalDynArray;
  119052. end;
  119053. function TJSRTCStatsReportInternal._Gettimestamp: TDOMHighResTimeStamp;
  119054. begin
  119055. Result:=ReadJSPropertyDouble('timestamp');
  119056. end;
  119057. function TJSRTCStatsReportInternal._GetcallDurationMs: Double;
  119058. begin
  119059. Result:=ReadJSPropertyDouble('callDurationMs');
  119060. end;
  119061. function TJSRTCStatsReportInternal._GeticeRestarts: Cardinal;
  119062. begin
  119063. Result:=ReadJSPropertyInt64('iceRestarts');
  119064. end;
  119065. function TJSRTCStatsReportInternal._GeticeRollbacks: Cardinal;
  119066. begin
  119067. Result:=ReadJSPropertyInt64('iceRollbacks');
  119068. end;
  119069. function TJSRTCStatsReportInternal._Getofferer: Boolean;
  119070. begin
  119071. Result:=ReadJSPropertyBoolean('offerer');
  119072. end;
  119073. function TJSRTCStatsReportInternal._Getclosed: Boolean;
  119074. begin
  119075. Result:=ReadJSPropertyBoolean('closed');
  119076. end;
  119077. procedure TJSRTCStatsReportInternal._Setpcid(const aValue : UnicodeString);
  119078. begin
  119079. WriteJSPropertyUnicodeString('pcid',aValue);
  119080. end;
  119081. procedure TJSRTCStatsReportInternal._SetbrowserId(const aValue : Cardinal);
  119082. begin
  119083. WriteJSPropertyDouble('browserId',aValue);
  119084. end;
  119085. procedure TJSRTCStatsReportInternal._Setconfiguration(const aValue : TJSRTCConfigurationInternal);
  119086. begin
  119087. WriteJSPropertyObject('configuration',aValue);
  119088. end;
  119089. procedure TJSRTCStatsReportInternal._SetjsepSessionErrors(const aValue : UnicodeString);
  119090. begin
  119091. WriteJSPropertyUnicodeString('jsepSessionErrors',aValue);
  119092. end;
  119093. procedure TJSRTCStatsReportInternal._SetsdpHistory(const aValue : TJSRTCSdpHistoryEntryInternalDynArray);
  119094. begin
  119095. WriteJSPropertyObject('sdpHistory',aValue);
  119096. end;
  119097. procedure TJSRTCStatsReportInternal._Settimestamp(const aValue : TDOMHighResTimeStamp);
  119098. begin
  119099. WriteJSPropertyDouble('timestamp',aValue);
  119100. end;
  119101. procedure TJSRTCStatsReportInternal._SetcallDurationMs(const aValue : Double);
  119102. begin
  119103. WriteJSPropertyDouble('callDurationMs',aValue);
  119104. end;
  119105. procedure TJSRTCStatsReportInternal._SeticeRestarts(const aValue : Cardinal);
  119106. begin
  119107. WriteJSPropertyDouble('iceRestarts',aValue);
  119108. end;
  119109. procedure TJSRTCStatsReportInternal._SeticeRollbacks(const aValue : Cardinal);
  119110. begin
  119111. WriteJSPropertyDouble('iceRollbacks',aValue);
  119112. end;
  119113. procedure TJSRTCStatsReportInternal._Setofferer(const aValue : Boolean);
  119114. begin
  119115. WriteJSPropertyBoolean('offerer',aValue);
  119116. end;
  119117. procedure TJSRTCStatsReportInternal._Setclosed(const aValue : Boolean);
  119118. begin
  119119. WriteJSPropertyBoolean('closed',aValue);
  119120. end;
  119121. class function TJSRTCStatsReportInternal.JSClassName: UnicodeString;
  119122. begin
  119123. Result:='Object';
  119124. end;
  119125. class function TJSRTCStatsReportInternal.Cast(const Intf: IJSObject): IJSRTCStatsReportInternal;
  119126. begin
  119127. Result:=TJSRTCStatsReportInternal.JOBCast(Intf);
  119128. end;
  119129. function TJSRTCStatsReport._Getsize: LongInt;
  119130. begin
  119131. Result:=ReadJSPropertyLongInt('size');
  119132. end;
  119133. function TJSRTCStatsReport.get(key: UnicodeString) : IJSObject;
  119134. begin
  119135. Result:=InvokeJSObjectResult('get',[key],TJSObject) as IJSObject;
  119136. end;
  119137. function TJSRTCStatsReport.has(key: UnicodeString) : Boolean;
  119138. begin
  119139. Result:=InvokeJSBooleanResult('has',[key]);
  119140. end;
  119141. function TJSRTCStatsReport.entries : IJSIterator;
  119142. begin
  119143. Result:=InvokeJSObjectResult('entries',[],TJSIterator) as IJSIterator;
  119144. end;
  119145. function TJSRTCStatsReport.keys : IJSIterator;
  119146. begin
  119147. Result:=InvokeJSObjectResult('keys',[],TJSIterator) as IJSIterator;
  119148. end;
  119149. function TJSRTCStatsReport.values : IJSIterator;
  119150. begin
  119151. Result:=InvokeJSObjectResult('values',[],TJSIterator) as IJSIterator;
  119152. end;
  119153. class function TJSRTCStatsReport.JSClassName: UnicodeString;
  119154. begin
  119155. Result:='RTCStatsReport';
  119156. end;
  119157. class function TJSRTCStatsReport.Cast(const Intf: IJSObject): IJSRTCStatsReport;
  119158. begin
  119159. Result:=TJSRTCStatsReport.JOBCast(Intf);
  119160. end;
  119161. function TJSRTCTrackEventInit._Getreceiver: IJSRTCRtpReceiver;
  119162. begin
  119163. Result:=ReadJSPropertyObject('receiver',TJSRTCRtpReceiver) as IJSRTCRtpReceiver;
  119164. end;
  119165. function TJSRTCTrackEventInit._Gettrack: IJSMediaStreamTrack;
  119166. begin
  119167. Result:=ReadJSPropertyObject('track',TJSMediaStreamTrack) as IJSMediaStreamTrack;
  119168. end;
  119169. function TJSRTCTrackEventInit._Getstreams: TJSMediaStreamDynArray;
  119170. begin
  119171. Result:=ReadJSPropertyObject('streams',TJSArray) as TJSMediaStreamDynArray;
  119172. end;
  119173. function TJSRTCTrackEventInit._Gettransceiver: IJSRTCRtpTransceiver;
  119174. begin
  119175. Result:=ReadJSPropertyObject('transceiver',TJSRTCRtpTransceiver) as IJSRTCRtpTransceiver;
  119176. end;
  119177. procedure TJSRTCTrackEventInit._Setreceiver(const aValue : IJSRTCRtpReceiver);
  119178. begin
  119179. WriteJSPropertyObject('receiver',aValue);
  119180. end;
  119181. procedure TJSRTCTrackEventInit._Settrack(const aValue : IJSMediaStreamTrack);
  119182. begin
  119183. WriteJSPropertyObject('track',aValue);
  119184. end;
  119185. procedure TJSRTCTrackEventInit._Setstreams(const aValue : TJSMediaStreamDynArray);
  119186. begin
  119187. WriteJSPropertyObject('streams',aValue);
  119188. end;
  119189. procedure TJSRTCTrackEventInit._Settransceiver(const aValue : IJSRTCRtpTransceiver);
  119190. begin
  119191. WriteJSPropertyObject('transceiver',aValue);
  119192. end;
  119193. class function TJSRTCTrackEventInit.JSClassName: UnicodeString;
  119194. begin
  119195. Result:='Object';
  119196. end;
  119197. class function TJSRTCTrackEventInit.Cast(const Intf: IJSObject): IJSRTCTrackEventInit;
  119198. begin
  119199. Result:=TJSRTCTrackEventInit.JOBCast(Intf);
  119200. end;
  119201. function TJSRTCTrackEvent._Getreceiver: IJSRTCRtpReceiver;
  119202. begin
  119203. Result:=ReadJSPropertyObject('receiver',TJSRTCRtpReceiver) as IJSRTCRtpReceiver;
  119204. end;
  119205. function TJSRTCTrackEvent._Gettrack: IJSMediaStreamTrack;
  119206. begin
  119207. Result:=ReadJSPropertyObject('track',TJSMediaStreamTrack) as IJSMediaStreamTrack;
  119208. end;
  119209. function TJSRTCTrackEvent._Getstreams: TJSMediaStreamDynArray;
  119210. begin
  119211. Result:=ReadJSPropertyObject('streams',TJSArray) as TJSMediaStreamDynArray;
  119212. end;
  119213. function TJSRTCTrackEvent._Gettransceiver: IJSRTCRtpTransceiver;
  119214. begin
  119215. Result:=ReadJSPropertyObject('transceiver',TJSRTCRtpTransceiver) as IJSRTCRtpTransceiver;
  119216. end;
  119217. constructor TJSRTCTrackEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSRTCTrackEventInit);
  119218. begin
  119219. JOBCreate([aType_,aEventInitDict]);
  119220. end;
  119221. class function TJSRTCTrackEvent.JSClassName: UnicodeString;
  119222. begin
  119223. Result:='RTCTrackEvent';
  119224. end;
  119225. class function TJSRTCTrackEvent.Cast(const Intf: IJSObject): IJSRTCTrackEvent;
  119226. begin
  119227. Result:=TJSRTCTrackEvent.JOBCast(Intf);
  119228. end;
  119229. function TJSRTCTransformEvent._Gettransformer: IJSRTCRtpScriptTransformer;
  119230. begin
  119231. Result:=ReadJSPropertyObject('transformer',TJSRTCRtpScriptTransformer) as IJSRTCRtpScriptTransformer;
  119232. end;
  119233. constructor TJSRTCTransformEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSRTCTransformEventInit);
  119234. begin
  119235. JOBCreate([aType_,aEventInitDict]);
  119236. end;
  119237. class function TJSRTCTransformEvent.JSClassName: UnicodeString;
  119238. begin
  119239. Result:='RTCTransformEvent';
  119240. end;
  119241. class function TJSRTCTransformEvent.Cast(const Intf: IJSObject): IJSRTCTransformEvent;
  119242. begin
  119243. Result:=TJSRTCTransformEvent.JOBCast(Intf);
  119244. end;
  119245. function TJSRTCTransformEventInit._Gettransformer: IJSRTCRtpScriptTransformer;
  119246. begin
  119247. Result:=ReadJSPropertyObject('transformer',TJSRTCRtpScriptTransformer) as IJSRTCRtpScriptTransformer;
  119248. end;
  119249. procedure TJSRTCTransformEventInit._Settransformer(const aValue : IJSRTCRtpScriptTransformer);
  119250. begin
  119251. WriteJSPropertyObject('transformer',aValue);
  119252. end;
  119253. class function TJSRTCTransformEventInit.JSClassName: UnicodeString;
  119254. begin
  119255. Result:='Object';
  119256. end;
  119257. class function TJSRTCTransformEventInit.Cast(const Intf: IJSObject): IJSRTCTransformEventInit;
  119258. begin
  119259. Result:=TJSRTCTransformEventInit.JOBCast(Intf);
  119260. end;
  119261. function TJSSanitizerElementNamespace._Getname: UnicodeString;
  119262. begin
  119263. Result:=ReadJSPropertyUnicodeString('name');
  119264. end;
  119265. function TJSSanitizerElementNamespace._Getnamespace: UnicodeString;
  119266. begin
  119267. Result:=ReadJSPropertyUnicodeString('namespace');
  119268. end;
  119269. procedure TJSSanitizerElementNamespace._Setname(const aValue : UnicodeString);
  119270. begin
  119271. WriteJSPropertyUnicodeString('name',aValue);
  119272. end;
  119273. procedure TJSSanitizerElementNamespace._Setnamespace(const aValue : UnicodeString);
  119274. begin
  119275. WriteJSPropertyUnicodeString('namespace',aValue);
  119276. end;
  119277. class function TJSSanitizerElementNamespace.JSClassName: UnicodeString;
  119278. begin
  119279. Result:='Object';
  119280. end;
  119281. class function TJSSanitizerElementNamespace.Cast(const Intf: IJSObject): IJSSanitizerElementNamespace;
  119282. begin
  119283. Result:=TJSSanitizerElementNamespace.JOBCast(Intf);
  119284. end;
  119285. function TJSSanitizerElementNamespaceWithAttributes._Getattributes: TSanitizerAttributeDynArray;
  119286. begin
  119287. Result:=ReadJSPropertyObject('attributes',TJSArray) as TSanitizerAttributeDynArray;
  119288. end;
  119289. function TJSSanitizerElementNamespaceWithAttributes._GetremoveAttributes: TSanitizerAttributeDynArray;
  119290. begin
  119291. Result:=ReadJSPropertyObject('removeAttributes',TJSArray) as TSanitizerAttributeDynArray;
  119292. end;
  119293. procedure TJSSanitizerElementNamespaceWithAttributes._Setattributes(const aValue : TSanitizerAttributeDynArray);
  119294. begin
  119295. WriteJSPropertyObject('attributes',aValue);
  119296. end;
  119297. procedure TJSSanitizerElementNamespaceWithAttributes._SetremoveAttributes(const aValue : TSanitizerAttributeDynArray);
  119298. begin
  119299. WriteJSPropertyObject('removeAttributes',aValue);
  119300. end;
  119301. class function TJSSanitizerElementNamespaceWithAttributes.JSClassName: UnicodeString;
  119302. begin
  119303. Result:='Object';
  119304. end;
  119305. class function TJSSanitizerElementNamespaceWithAttributes.Cast(const Intf: IJSObject): IJSSanitizerElementNamespaceWithAttributes;
  119306. begin
  119307. Result:=TJSSanitizerElementNamespaceWithAttributes.JOBCast(Intf);
  119308. end;
  119309. function TJSSanitizerAttributeNamespace._Getname: UnicodeString;
  119310. begin
  119311. Result:=ReadJSPropertyUnicodeString('name');
  119312. end;
  119313. function TJSSanitizerAttributeNamespace._Getnamespace: UnicodeString;
  119314. begin
  119315. Result:=ReadJSPropertyUnicodeString('namespace');
  119316. end;
  119317. procedure TJSSanitizerAttributeNamespace._Setname(const aValue : UnicodeString);
  119318. begin
  119319. WriteJSPropertyUnicodeString('name',aValue);
  119320. end;
  119321. procedure TJSSanitizerAttributeNamespace._Setnamespace(const aValue : UnicodeString);
  119322. begin
  119323. WriteJSPropertyUnicodeString('namespace',aValue);
  119324. end;
  119325. class function TJSSanitizerAttributeNamespace.JSClassName: UnicodeString;
  119326. begin
  119327. Result:='Object';
  119328. end;
  119329. class function TJSSanitizerAttributeNamespace.Cast(const Intf: IJSObject): IJSSanitizerAttributeNamespace;
  119330. begin
  119331. Result:=TJSSanitizerAttributeNamespace.JOBCast(Intf);
  119332. end;
  119333. function TJSSanitizerConfig._Getelements: TSanitizerElementWithAttributesDynArray;
  119334. begin
  119335. Result:=ReadJSPropertyObject('elements',TJSArray) as TSanitizerElementWithAttributesDynArray;
  119336. end;
  119337. function TJSSanitizerConfig._GetremoveElements: TSanitizerElementDynArray;
  119338. begin
  119339. Result:=ReadJSPropertyObject('removeElements',TJSArray) as TSanitizerElementDynArray;
  119340. end;
  119341. function TJSSanitizerConfig._GetreplaceWithChildrenElements: TSanitizerElementDynArray;
  119342. begin
  119343. Result:=ReadJSPropertyObject('replaceWithChildrenElements',TJSArray) as TSanitizerElementDynArray;
  119344. end;
  119345. function TJSSanitizerConfig._Getattributes: TSanitizerAttributeDynArray;
  119346. begin
  119347. Result:=ReadJSPropertyObject('attributes',TJSArray) as TSanitizerAttributeDynArray;
  119348. end;
  119349. function TJSSanitizerConfig._GetremoveAttributes: TSanitizerAttributeDynArray;
  119350. begin
  119351. Result:=ReadJSPropertyObject('removeAttributes',TJSArray) as TSanitizerAttributeDynArray;
  119352. end;
  119353. function TJSSanitizerConfig._GetcustomElements: Boolean;
  119354. begin
  119355. Result:=ReadJSPropertyBoolean('customElements');
  119356. end;
  119357. function TJSSanitizerConfig._GetunknownMarkup: Boolean;
  119358. begin
  119359. Result:=ReadJSPropertyBoolean('unknownMarkup');
  119360. end;
  119361. function TJSSanitizerConfig._Getcomments: Boolean;
  119362. begin
  119363. Result:=ReadJSPropertyBoolean('comments');
  119364. end;
  119365. procedure TJSSanitizerConfig._Setelements(const aValue : TSanitizerElementWithAttributesDynArray);
  119366. begin
  119367. WriteJSPropertyObject('elements',aValue);
  119368. end;
  119369. procedure TJSSanitizerConfig._SetremoveElements(const aValue : TSanitizerElementDynArray);
  119370. begin
  119371. WriteJSPropertyObject('removeElements',aValue);
  119372. end;
  119373. procedure TJSSanitizerConfig._SetreplaceWithChildrenElements(const aValue : TSanitizerElementDynArray);
  119374. begin
  119375. WriteJSPropertyObject('replaceWithChildrenElements',aValue);
  119376. end;
  119377. procedure TJSSanitizerConfig._Setattributes(const aValue : TSanitizerAttributeDynArray);
  119378. begin
  119379. WriteJSPropertyObject('attributes',aValue);
  119380. end;
  119381. procedure TJSSanitizerConfig._SetremoveAttributes(const aValue : TSanitizerAttributeDynArray);
  119382. begin
  119383. WriteJSPropertyObject('removeAttributes',aValue);
  119384. end;
  119385. procedure TJSSanitizerConfig._SetcustomElements(const aValue : Boolean);
  119386. begin
  119387. WriteJSPropertyBoolean('customElements',aValue);
  119388. end;
  119389. procedure TJSSanitizerConfig._SetunknownMarkup(const aValue : Boolean);
  119390. begin
  119391. WriteJSPropertyBoolean('unknownMarkup',aValue);
  119392. end;
  119393. procedure TJSSanitizerConfig._Setcomments(const aValue : Boolean);
  119394. begin
  119395. WriteJSPropertyBoolean('comments',aValue);
  119396. end;
  119397. class function TJSSanitizerConfig.JSClassName: UnicodeString;
  119398. begin
  119399. Result:='Object';
  119400. end;
  119401. class function TJSSanitizerConfig.Cast(const Intf: IJSObject): IJSSanitizerConfig;
  119402. begin
  119403. Result:=TJSSanitizerConfig.JOBCast(Intf);
  119404. end;
  119405. constructor TJSSanitizer.Create(const aSanitizerConfig: TJSSanitizerConfig);
  119406. begin
  119407. JOBCreate([aSanitizerConfig]);
  119408. end;
  119409. constructor TJSSanitizer.Create;
  119410. begin
  119411. JOBCreate([]);
  119412. end;
  119413. function TJSSanitizer.sanitize(aInput: IJSDocument): IJSDocumentFragment;
  119414. begin
  119415. Result:=InvokeJSObjectResult('sanitize',[aInput],TJSDocumentFragment) as IJSDocumentFragment;
  119416. end;
  119417. function TJSSanitizer.sanitize(aInput: IJSDocumentFragment): IJSDocumentFragment;
  119418. begin
  119419. Result:=InvokeJSObjectResult('sanitize',[aInput],TJSDocumentFragment) as IJSDocumentFragment;
  119420. end;
  119421. class function TJSSanitizer.JSClassName: UnicodeString;
  119422. begin
  119423. Result:='Sanitizer';
  119424. end;
  119425. class function TJSSanitizer.Cast(const Intf: IJSObject): IJSSanitizer;
  119426. begin
  119427. Result:=TJSSanitizer.JOBCast(Intf);
  119428. end;
  119429. function TJSScreen._GetavailWidth: LongInt;
  119430. begin
  119431. Result:=ReadJSPropertyLongInt('availWidth');
  119432. end;
  119433. function TJSScreen._GetavailHeight: LongInt;
  119434. begin
  119435. Result:=ReadJSPropertyLongInt('availHeight');
  119436. end;
  119437. function TJSScreen._Getwidth: LongInt;
  119438. begin
  119439. Result:=ReadJSPropertyLongInt('width');
  119440. end;
  119441. function TJSScreen._Getheight: LongInt;
  119442. begin
  119443. Result:=ReadJSPropertyLongInt('height');
  119444. end;
  119445. function TJSScreen._GetcolorDepth: LongInt;
  119446. begin
  119447. Result:=ReadJSPropertyLongInt('colorDepth');
  119448. end;
  119449. function TJSScreen._GetpixelDepth: LongInt;
  119450. begin
  119451. Result:=ReadJSPropertyLongInt('pixelDepth');
  119452. end;
  119453. function TJSScreen._Gettop: LongInt;
  119454. begin
  119455. Result:=ReadJSPropertyLongInt('top');
  119456. end;
  119457. function TJSScreen._Getleft: LongInt;
  119458. begin
  119459. Result:=ReadJSPropertyLongInt('left');
  119460. end;
  119461. function TJSScreen._GetavailTop: LongInt;
  119462. begin
  119463. Result:=ReadJSPropertyLongInt('availTop');
  119464. end;
  119465. function TJSScreen._GetavailLeft: LongInt;
  119466. begin
  119467. Result:=ReadJSPropertyLongInt('availLeft');
  119468. end;
  119469. function TJSScreen._GetmozOrientation: UnicodeString;
  119470. begin
  119471. Result:=ReadJSPropertyUnicodeString('mozOrientation');
  119472. end;
  119473. function TJSScreen._Getonmozorientationchange: TEventHandler;
  119474. begin
  119475. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozorientationchange')));
  119476. end;
  119477. function TJSScreen._Getorientation: IJSScreenOrientation;
  119478. begin
  119479. Result:=ReadJSPropertyObject('orientation',TJSScreenOrientation) as IJSScreenOrientation;
  119480. end;
  119481. function TJSScreen._GetcolorGamut: TScreenColorGamut;
  119482. begin
  119483. Result:=ReadJSPropertyUnicodeString('colorGamut');
  119484. end;
  119485. function TJSScreen._Getluminance: IJSScreenLuminance;
  119486. begin
  119487. Result:=ReadJSPropertyObject('luminance',TJSScreenLuminance) as IJSScreenLuminance;
  119488. end;
  119489. function TJSScreen._Getonchange: TEventHandler;
  119490. begin
  119491. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  119492. end;
  119493. procedure TJSScreen._Setonmozorientationchange(const aValue : TEventHandler);
  119494. begin
  119495. WriteJSPropertyMethod('onmozorientationchange',TMethod(aValue));
  119496. end;
  119497. procedure TJSScreen._Setonchange(const aValue : TEventHandler);
  119498. begin
  119499. WriteJSPropertyMethod('onchange',TMethod(aValue));
  119500. end;
  119501. function TJSScreen.mozLockOrientation(const aOrientation: UnicodeString): Boolean;
  119502. begin
  119503. Result:=InvokeJSBooleanResult('mozLockOrientation',[aOrientation]);
  119504. end;
  119505. function TJSScreen.mozLockOrientation(const aOrientation: TUnicodeStringDynArray): Boolean;
  119506. begin
  119507. Result:=InvokeJSBooleanResult('mozLockOrientation',[aOrientation]);
  119508. end;
  119509. procedure TJSScreen.mozUnlockOrientation;
  119510. begin
  119511. InvokeJSNoResult('mozUnlockOrientation',[]);
  119512. end;
  119513. class function TJSScreen.JSClassName: UnicodeString;
  119514. begin
  119515. Result:='Screen';
  119516. end;
  119517. class function TJSScreen.Cast(const Intf: IJSObject): IJSScreen;
  119518. begin
  119519. Result:=TJSScreen.JOBCast(Intf);
  119520. end;
  119521. function TJSScreenLuminance._Getmin: Double;
  119522. begin
  119523. Result:=ReadJSPropertyDouble('min');
  119524. end;
  119525. function TJSScreenLuminance._Getmax: Double;
  119526. begin
  119527. Result:=ReadJSPropertyDouble('max');
  119528. end;
  119529. function TJSScreenLuminance._GetmaxAverage: Double;
  119530. begin
  119531. Result:=ReadJSPropertyDouble('maxAverage');
  119532. end;
  119533. class function TJSScreenLuminance.JSClassName: UnicodeString;
  119534. begin
  119535. Result:='ScreenLuminance';
  119536. end;
  119537. class function TJSScreenLuminance.Cast(const Intf: IJSObject): IJSScreenLuminance;
  119538. begin
  119539. Result:=TJSScreenLuminance.JOBCast(Intf);
  119540. end;
  119541. function TJSScreenOrientation._Gettype_: TOrientationType;
  119542. begin
  119543. Result:=ReadJSPropertyUnicodeString('type');
  119544. end;
  119545. function TJSScreenOrientation._Getangle: Word;
  119546. begin
  119547. Result:=ReadJSPropertyLongInt('angle');
  119548. end;
  119549. function TJSScreenOrientation._Getonchange: TEventHandler;
  119550. begin
  119551. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  119552. end;
  119553. procedure TJSScreenOrientation._Setonchange(const aValue : TEventHandler);
  119554. begin
  119555. WriteJSPropertyMethod('onchange',TMethod(aValue));
  119556. end;
  119557. function TJSScreenOrientation.lock(aOrientation: TOrientationLockType): IJSPromise; // Promise<undefined>
  119558. begin
  119559. Result:=InvokeJSObjectResult('lock',[aOrientation],TJSPromise) as IJSPromise;
  119560. end;
  119561. procedure TJSScreenOrientation.unlock;
  119562. begin
  119563. InvokeJSNoResult('unlock',[]);
  119564. end;
  119565. class function TJSScreenOrientation.JSClassName: UnicodeString;
  119566. begin
  119567. Result:='ScreenOrientation';
  119568. end;
  119569. class function TJSScreenOrientation.Cast(const Intf: IJSObject): IJSScreenOrientation;
  119570. begin
  119571. Result:=TJSScreenOrientation.JOBCast(Intf);
  119572. end;
  119573. function TJSScriptProcessorNode._Getonaudioprocess: TEventHandler;
  119574. begin
  119575. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onaudioprocess')));
  119576. end;
  119577. function TJSScriptProcessorNode._GetbufferSize: LongInt;
  119578. begin
  119579. Result:=ReadJSPropertyLongInt('bufferSize');
  119580. end;
  119581. procedure TJSScriptProcessorNode._Setonaudioprocess(const aValue : TEventHandler);
  119582. begin
  119583. WriteJSPropertyMethod('onaudioprocess',TMethod(aValue));
  119584. end;
  119585. class function TJSScriptProcessorNode.JSClassName: UnicodeString;
  119586. begin
  119587. Result:='ScriptProcessorNode';
  119588. end;
  119589. class function TJSScriptProcessorNode.Cast(const Intf: IJSObject): IJSScriptProcessorNode;
  119590. begin
  119591. Result:=TJSScriptProcessorNode.JOBCast(Intf);
  119592. end;
  119593. function TJSScrollAreaEvent._Getx: Single;
  119594. begin
  119595. Result:=ReadJSPropertyDouble('x');
  119596. end;
  119597. function TJSScrollAreaEvent._Gety: Single;
  119598. begin
  119599. Result:=ReadJSPropertyDouble('y');
  119600. end;
  119601. function TJSScrollAreaEvent._Getwidth: Single;
  119602. begin
  119603. Result:=ReadJSPropertyDouble('width');
  119604. end;
  119605. function TJSScrollAreaEvent._Getheight: Single;
  119606. begin
  119607. Result:=ReadJSPropertyDouble('height');
  119608. end;
  119609. procedure TJSScrollAreaEvent.initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single; aY: Single; aWidth: Single; aHeight: Single);
  119610. begin
  119611. InvokeJSNoResult('initScrollAreaEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aX,aY,aWidth,aHeight]);
  119612. end;
  119613. procedure TJSScrollAreaEvent.initScrollAreaEvent(const aType_: UnicodeString);
  119614. begin
  119615. InvokeJSNoResult('initScrollAreaEvent',[aType_]);
  119616. end;
  119617. procedure TJSScrollAreaEvent.initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  119618. begin
  119619. InvokeJSNoResult('initScrollAreaEvent',[aType_,aCanBubble]);
  119620. end;
  119621. procedure TJSScrollAreaEvent.initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  119622. begin
  119623. InvokeJSNoResult('initScrollAreaEvent',[aType_,aCanBubble,aCancelable]);
  119624. end;
  119625. procedure TJSScrollAreaEvent.initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow);
  119626. begin
  119627. InvokeJSNoResult('initScrollAreaEvent',[aType_,aCanBubble,aCancelable,aView]);
  119628. end;
  119629. procedure TJSScrollAreaEvent.initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt);
  119630. begin
  119631. InvokeJSNoResult('initScrollAreaEvent',[aType_,aCanBubble,aCancelable,aView,aDetail]);
  119632. end;
  119633. procedure TJSScrollAreaEvent.initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single);
  119634. begin
  119635. InvokeJSNoResult('initScrollAreaEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aX]);
  119636. end;
  119637. procedure TJSScrollAreaEvent.initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single; aY: Single);
  119638. begin
  119639. InvokeJSNoResult('initScrollAreaEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aX,aY]);
  119640. end;
  119641. procedure TJSScrollAreaEvent.initScrollAreaEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aX: Single; aY: Single; aWidth: Single);
  119642. begin
  119643. InvokeJSNoResult('initScrollAreaEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aX,aY,aWidth]);
  119644. end;
  119645. class function TJSScrollAreaEvent.JSClassName: UnicodeString;
  119646. begin
  119647. Result:='ScrollAreaEvent';
  119648. end;
  119649. class function TJSScrollAreaEvent.Cast(const Intf: IJSObject): IJSScrollAreaEvent;
  119650. begin
  119651. Result:=TJSScrollAreaEvent.JOBCast(Intf);
  119652. end;
  119653. function TJSScrollViewChangeEventInit._Getstate: TScrollState;
  119654. begin
  119655. Result:=ReadJSPropertyUnicodeString('state');
  119656. end;
  119657. procedure TJSScrollViewChangeEventInit._Setstate(const aValue : TScrollState);
  119658. begin
  119659. WriteJSPropertyUnicodeString('state',aValue);
  119660. end;
  119661. class function TJSScrollViewChangeEventInit.JSClassName: UnicodeString;
  119662. begin
  119663. Result:='Object';
  119664. end;
  119665. class function TJSScrollViewChangeEventInit.Cast(const Intf: IJSObject): IJSScrollViewChangeEventInit;
  119666. begin
  119667. Result:=TJSScrollViewChangeEventInit.JOBCast(Intf);
  119668. end;
  119669. function TJSSecurityPolicyViolationEvent._GetdocumentURI: UnicodeString;
  119670. begin
  119671. Result:=ReadJSPropertyUnicodeString('documentURI');
  119672. end;
  119673. function TJSSecurityPolicyViolationEvent._Getreferrer: UnicodeString;
  119674. begin
  119675. Result:=ReadJSPropertyUnicodeString('referrer');
  119676. end;
  119677. function TJSSecurityPolicyViolationEvent._GetblockedURI: UnicodeString;
  119678. begin
  119679. Result:=ReadJSPropertyUnicodeString('blockedURI');
  119680. end;
  119681. function TJSSecurityPolicyViolationEvent._GetviolatedDirective: UnicodeString;
  119682. begin
  119683. Result:=ReadJSPropertyUnicodeString('violatedDirective');
  119684. end;
  119685. function TJSSecurityPolicyViolationEvent._GeteffectiveDirective: UnicodeString;
  119686. begin
  119687. Result:=ReadJSPropertyUnicodeString('effectiveDirective');
  119688. end;
  119689. function TJSSecurityPolicyViolationEvent._GetoriginalPolicy: UnicodeString;
  119690. begin
  119691. Result:=ReadJSPropertyUnicodeString('originalPolicy');
  119692. end;
  119693. function TJSSecurityPolicyViolationEvent._GetsourceFile: UnicodeString;
  119694. begin
  119695. Result:=ReadJSPropertyUnicodeString('sourceFile');
  119696. end;
  119697. function TJSSecurityPolicyViolationEvent._Getsample: UnicodeString;
  119698. begin
  119699. Result:=ReadJSPropertyUnicodeString('sample');
  119700. end;
  119701. function TJSSecurityPolicyViolationEvent._Getdisposition: TSecurityPolicyViolationEventDisposition;
  119702. begin
  119703. Result:=ReadJSPropertyUnicodeString('disposition');
  119704. end;
  119705. function TJSSecurityPolicyViolationEvent._GetstatusCode: Word;
  119706. begin
  119707. Result:=ReadJSPropertyLongInt('statusCode');
  119708. end;
  119709. function TJSSecurityPolicyViolationEvent._GetlineNumber: Cardinal;
  119710. begin
  119711. Result:=ReadJSPropertyInt64('lineNumber');
  119712. end;
  119713. function TJSSecurityPolicyViolationEvent._GetcolumnNumber: Cardinal;
  119714. begin
  119715. Result:=ReadJSPropertyInt64('columnNumber');
  119716. end;
  119717. constructor TJSSecurityPolicyViolationEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSSecurityPolicyViolationEventInit);
  119718. begin
  119719. JOBCreate([aType_,aEventInitDict]);
  119720. end;
  119721. constructor TJSSecurityPolicyViolationEvent.Create(const aType_: UnicodeString);
  119722. begin
  119723. JOBCreate([aType_]);
  119724. end;
  119725. class function TJSSecurityPolicyViolationEvent.JSClassName: UnicodeString;
  119726. begin
  119727. Result:='SecurityPolicyViolationEvent';
  119728. end;
  119729. class function TJSSecurityPolicyViolationEvent.Cast(const Intf: IJSObject): IJSSecurityPolicyViolationEvent;
  119730. begin
  119731. Result:=TJSSecurityPolicyViolationEvent.JOBCast(Intf);
  119732. end;
  119733. function TJSSecurityPolicyViolationEventInit._GetdocumentURI: UnicodeString;
  119734. begin
  119735. Result:=ReadJSPropertyUnicodeString('documentURI');
  119736. end;
  119737. function TJSSecurityPolicyViolationEventInit._Getreferrer: UnicodeString;
  119738. begin
  119739. Result:=ReadJSPropertyUnicodeString('referrer');
  119740. end;
  119741. function TJSSecurityPolicyViolationEventInit._GetblockedURI: UnicodeString;
  119742. begin
  119743. Result:=ReadJSPropertyUnicodeString('blockedURI');
  119744. end;
  119745. function TJSSecurityPolicyViolationEventInit._GetviolatedDirective: UnicodeString;
  119746. begin
  119747. Result:=ReadJSPropertyUnicodeString('violatedDirective');
  119748. end;
  119749. function TJSSecurityPolicyViolationEventInit._GeteffectiveDirective: UnicodeString;
  119750. begin
  119751. Result:=ReadJSPropertyUnicodeString('effectiveDirective');
  119752. end;
  119753. function TJSSecurityPolicyViolationEventInit._GetoriginalPolicy: UnicodeString;
  119754. begin
  119755. Result:=ReadJSPropertyUnicodeString('originalPolicy');
  119756. end;
  119757. function TJSSecurityPolicyViolationEventInit._GetsourceFile: UnicodeString;
  119758. begin
  119759. Result:=ReadJSPropertyUnicodeString('sourceFile');
  119760. end;
  119761. function TJSSecurityPolicyViolationEventInit._Getsample: UnicodeString;
  119762. begin
  119763. Result:=ReadJSPropertyUnicodeString('sample');
  119764. end;
  119765. function TJSSecurityPolicyViolationEventInit._Getdisposition: TSecurityPolicyViolationEventDisposition;
  119766. begin
  119767. Result:=ReadJSPropertyUnicodeString('disposition');
  119768. end;
  119769. function TJSSecurityPolicyViolationEventInit._GetstatusCode: Word;
  119770. begin
  119771. Result:=ReadJSPropertyLongInt('statusCode');
  119772. end;
  119773. function TJSSecurityPolicyViolationEventInit._GetlineNumber: Cardinal;
  119774. begin
  119775. Result:=ReadJSPropertyInt64('lineNumber');
  119776. end;
  119777. function TJSSecurityPolicyViolationEventInit._GetcolumnNumber: Cardinal;
  119778. begin
  119779. Result:=ReadJSPropertyInt64('columnNumber');
  119780. end;
  119781. procedure TJSSecurityPolicyViolationEventInit._SetdocumentURI(const aValue : UnicodeString);
  119782. begin
  119783. WriteJSPropertyUnicodeString('documentURI',aValue);
  119784. end;
  119785. procedure TJSSecurityPolicyViolationEventInit._Setreferrer(const aValue : UnicodeString);
  119786. begin
  119787. WriteJSPropertyUnicodeString('referrer',aValue);
  119788. end;
  119789. procedure TJSSecurityPolicyViolationEventInit._SetblockedURI(const aValue : UnicodeString);
  119790. begin
  119791. WriteJSPropertyUnicodeString('blockedURI',aValue);
  119792. end;
  119793. procedure TJSSecurityPolicyViolationEventInit._SetviolatedDirective(const aValue : UnicodeString);
  119794. begin
  119795. WriteJSPropertyUnicodeString('violatedDirective',aValue);
  119796. end;
  119797. procedure TJSSecurityPolicyViolationEventInit._SeteffectiveDirective(const aValue : UnicodeString);
  119798. begin
  119799. WriteJSPropertyUnicodeString('effectiveDirective',aValue);
  119800. end;
  119801. procedure TJSSecurityPolicyViolationEventInit._SetoriginalPolicy(const aValue : UnicodeString);
  119802. begin
  119803. WriteJSPropertyUnicodeString('originalPolicy',aValue);
  119804. end;
  119805. procedure TJSSecurityPolicyViolationEventInit._SetsourceFile(const aValue : UnicodeString);
  119806. begin
  119807. WriteJSPropertyUnicodeString('sourceFile',aValue);
  119808. end;
  119809. procedure TJSSecurityPolicyViolationEventInit._Setsample(const aValue : UnicodeString);
  119810. begin
  119811. WriteJSPropertyUnicodeString('sample',aValue);
  119812. end;
  119813. procedure TJSSecurityPolicyViolationEventInit._Setdisposition(const aValue : TSecurityPolicyViolationEventDisposition);
  119814. begin
  119815. WriteJSPropertyUnicodeString('disposition',aValue);
  119816. end;
  119817. procedure TJSSecurityPolicyViolationEventInit._SetstatusCode(const aValue : Word);
  119818. begin
  119819. WriteJSPropertyLongInt('statusCode',aValue);
  119820. end;
  119821. procedure TJSSecurityPolicyViolationEventInit._SetlineNumber(const aValue : Cardinal);
  119822. begin
  119823. WriteJSPropertyDouble('lineNumber',aValue);
  119824. end;
  119825. procedure TJSSecurityPolicyViolationEventInit._SetcolumnNumber(const aValue : Cardinal);
  119826. begin
  119827. WriteJSPropertyDouble('columnNumber',aValue);
  119828. end;
  119829. class function TJSSecurityPolicyViolationEventInit.JSClassName: UnicodeString;
  119830. begin
  119831. Result:='Object';
  119832. end;
  119833. class function TJSSecurityPolicyViolationEventInit.Cast(const Intf: IJSObject): IJSSecurityPolicyViolationEventInit;
  119834. begin
  119835. Result:=TJSSecurityPolicyViolationEventInit.JOBCast(Intf);
  119836. end;
  119837. function TJSSelection._GetanchorNode: IJSNode;
  119838. begin
  119839. Result:=ReadJSPropertyObject('anchorNode',TJSNode) as IJSNode;
  119840. end;
  119841. function TJSSelection._GetanchorOffset: Cardinal;
  119842. begin
  119843. Result:=ReadJSPropertyInt64('anchorOffset');
  119844. end;
  119845. function TJSSelection._GetfocusNode: IJSNode;
  119846. begin
  119847. Result:=ReadJSPropertyObject('focusNode',TJSNode) as IJSNode;
  119848. end;
  119849. function TJSSelection._GetfocusOffset: Cardinal;
  119850. begin
  119851. Result:=ReadJSPropertyInt64('focusOffset');
  119852. end;
  119853. function TJSSelection._GetisCollapsed: Boolean;
  119854. begin
  119855. Result:=ReadJSPropertyBoolean('isCollapsed');
  119856. end;
  119857. function TJSSelection._GetrangeCount: Cardinal;
  119858. begin
  119859. Result:=ReadJSPropertyInt64('rangeCount');
  119860. end;
  119861. function TJSSelection._Gettype_: UnicodeString;
  119862. begin
  119863. Result:=ReadJSPropertyUnicodeString('type');
  119864. end;
  119865. function TJSSelection._Getdirection: UnicodeString;
  119866. begin
  119867. Result:=ReadJSPropertyUnicodeString('direction');
  119868. end;
  119869. function TJSSelection._GetcaretBidiLevel: SmallInt;
  119870. begin
  119871. Result:=ReadJSPropertyLongInt('caretBidiLevel');
  119872. end;
  119873. procedure TJSSelection._SetcaretBidiLevel(const aValue : SmallInt);
  119874. begin
  119875. WriteJSPropertyLongInt('caretBidiLevel',aValue);
  119876. end;
  119877. function TJSSelection.getRangeAt(aIndex: Cardinal): IJSRange;
  119878. begin
  119879. Result:=InvokeJSObjectResult('getRangeAt',[aIndex],TJSRange) as IJSRange;
  119880. end;
  119881. procedure TJSSelection.addRange(aRange: IJSRange);
  119882. begin
  119883. InvokeJSNoResult('addRange',[aRange]);
  119884. end;
  119885. procedure TJSSelection.removeRange(aRange: IJSRange);
  119886. begin
  119887. InvokeJSNoResult('removeRange',[aRange]);
  119888. end;
  119889. procedure TJSSelection.removeAllRanges;
  119890. begin
  119891. InvokeJSNoResult('removeAllRanges',[]);
  119892. end;
  119893. procedure TJSSelection.empty;
  119894. begin
  119895. InvokeJSNoResult('empty',[]);
  119896. end;
  119897. function TJSSelection.getComposedRanges(aShadowRoots: IJSShadowRoot): TJSStaticRangeDynArray{; ToDo:varargs};
  119898. begin
  119899. Result:=InvokeJSObjectResult('getComposedRanges',[aShadowRoots],TJSArray) as TJSStaticRangeDynArray;
  119900. end;
  119901. procedure TJSSelection.collapse(aNode: IJSNode; aOffset: Cardinal);
  119902. begin
  119903. InvokeJSNoResult('collapse',[aNode,aOffset]);
  119904. end;
  119905. procedure TJSSelection.collapse(aNode: IJSNode);
  119906. begin
  119907. InvokeJSNoResult('collapse',[aNode]);
  119908. end;
  119909. procedure TJSSelection.setPosition(aNode: IJSNode; aOffset: Cardinal);
  119910. begin
  119911. InvokeJSNoResult('setPosition',[aNode,aOffset]);
  119912. end;
  119913. procedure TJSSelection.setPosition(aNode: IJSNode);
  119914. begin
  119915. InvokeJSNoResult('setPosition',[aNode]);
  119916. end;
  119917. procedure TJSSelection.collapseToStart;
  119918. begin
  119919. InvokeJSNoResult('collapseToStart',[]);
  119920. end;
  119921. procedure TJSSelection.collapseToEnd;
  119922. begin
  119923. InvokeJSNoResult('collapseToEnd',[]);
  119924. end;
  119925. procedure TJSSelection.extend(aNode: IJSNode; aOffset: Cardinal);
  119926. begin
  119927. InvokeJSNoResult('extend',[aNode,aOffset]);
  119928. end;
  119929. procedure TJSSelection.extend(aNode: IJSNode);
  119930. begin
  119931. InvokeJSNoResult('extend',[aNode]);
  119932. end;
  119933. procedure TJSSelection.setBaseAndExtent(aAnchorNode: IJSNode; aAnchorOffset: Cardinal; aFocusNode: IJSNode; aFocusOffset: Cardinal);
  119934. begin
  119935. InvokeJSNoResult('setBaseAndExtent',[aAnchorNode,aAnchorOffset,aFocusNode,aFocusOffset]);
  119936. end;
  119937. procedure TJSSelection.selectAllChildren(aNode: IJSNode);
  119938. begin
  119939. InvokeJSNoResult('selectAllChildren',[aNode]);
  119940. end;
  119941. procedure TJSSelection.deleteFromDocument;
  119942. begin
  119943. InvokeJSNoResult('deleteFromDocument',[]);
  119944. end;
  119945. function TJSSelection.containsNode(aNode: IJSNode; aAllowPartialContainment: Boolean): Boolean;
  119946. begin
  119947. Result:=InvokeJSBooleanResult('containsNode',[aNode,aAllowPartialContainment]);
  119948. end;
  119949. function TJSSelection.containsNode(aNode: IJSNode): Boolean;
  119950. begin
  119951. Result:=InvokeJSBooleanResult('containsNode',[aNode]);
  119952. end;
  119953. function TJSSelection.SelectionType: UnicodeString;
  119954. begin
  119955. Result:=InvokeJSUnicodeStringResult('',[]);
  119956. end;
  119957. procedure TJSSelection.modify(const aAlter: UnicodeString; const aDirection: UnicodeString; const aGranularity: UnicodeString);
  119958. begin
  119959. InvokeJSNoResult('modify',[aAlter,aDirection,aGranularity]);
  119960. end;
  119961. class function TJSSelection.JSClassName: UnicodeString;
  119962. begin
  119963. Result:='Selection';
  119964. end;
  119965. class function TJSSelection.Cast(const Intf: IJSObject): IJSSelection;
  119966. begin
  119967. Result:=TJSSelection.JOBCast(Intf);
  119968. end;
  119969. class function TJSnsISelectionListener.JSClassName: UnicodeString;
  119970. begin
  119971. Result:='nsISelectionListener';
  119972. end;
  119973. class function TJSnsISelectionListener.Cast(const Intf: IJSObject): IJSnsISelectionListener;
  119974. begin
  119975. Result:=TJSnsISelectionListener.JOBCast(Intf);
  119976. end;
  119977. function TJSServiceWorker._GetscriptURL: UnicodeString;
  119978. begin
  119979. Result:=ReadJSPropertyUnicodeString('scriptURL');
  119980. end;
  119981. function TJSServiceWorker._Getstate: TServiceWorkerState;
  119982. begin
  119983. Result:=ReadJSPropertyUnicodeString('state');
  119984. end;
  119985. function TJSServiceWorker._Getonstatechange: TEventHandler;
  119986. begin
  119987. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstatechange')));
  119988. end;
  119989. function TJSServiceWorker._Getonerror: TEventHandler;
  119990. begin
  119991. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  119992. end;
  119993. procedure TJSServiceWorker._Setonstatechange(const aValue : TEventHandler);
  119994. begin
  119995. WriteJSPropertyMethod('onstatechange',TMethod(aValue));
  119996. end;
  119997. procedure TJSServiceWorker._Setonerror(const aValue : TEventHandler);
  119998. begin
  119999. WriteJSPropertyMethod('onerror',TMethod(aValue));
  120000. end;
  120001. procedure TJSServiceWorker.postMessage(const aMessage: Variant; const aTransferable: TIJSObjectDynArray);
  120002. begin
  120003. InvokeJSNoResult('postMessage',[aMessage,aTransferable]);
  120004. end;
  120005. procedure TJSServiceWorker.postMessage(const aMessage: Variant; const aOptions: TJSStructuredSerializeOptions);
  120006. begin
  120007. InvokeJSNoResult('postMessage',[aMessage,aOptions]);
  120008. end;
  120009. procedure TJSServiceWorker.postMessage(const aMessage: Variant);
  120010. begin
  120011. InvokeJSNoResult('postMessage',[aMessage]);
  120012. end;
  120013. class function TJSServiceWorker.JSClassName: UnicodeString;
  120014. begin
  120015. Result:='ServiceWorker';
  120016. end;
  120017. class function TJSServiceWorker.Cast(const Intf: IJSObject): IJSServiceWorker;
  120018. begin
  120019. Result:=TJSServiceWorker.JOBCast(Intf);
  120020. end;
  120021. function TJSServiceWorkerContainer._Getcontroller: IJSServiceWorker;
  120022. begin
  120023. Result:=ReadJSPropertyObject('controller',TJSServiceWorker) as IJSServiceWorker;
  120024. end;
  120025. function TJSServiceWorkerContainer._Getready: IJSPromise;
  120026. begin
  120027. Result:=ReadJSPropertyObject('ready',TJSPromise) as IJSPromise;
  120028. end;
  120029. function TJSServiceWorkerContainer._Getoncontrollerchange: TEventHandler;
  120030. begin
  120031. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontrollerchange')));
  120032. end;
  120033. function TJSServiceWorkerContainer._Getonmessage: TEventHandler;
  120034. begin
  120035. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  120036. end;
  120037. function TJSServiceWorkerContainer._Getonmessageerror: TEventHandler;
  120038. begin
  120039. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessageerror')));
  120040. end;
  120041. procedure TJSServiceWorkerContainer._Setoncontrollerchange(const aValue : TEventHandler);
  120042. begin
  120043. WriteJSPropertyMethod('oncontrollerchange',TMethod(aValue));
  120044. end;
  120045. procedure TJSServiceWorkerContainer._Setonmessage(const aValue : TEventHandler);
  120046. begin
  120047. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  120048. end;
  120049. procedure TJSServiceWorkerContainer._Setonmessageerror(const aValue : TEventHandler);
  120050. begin
  120051. WriteJSPropertyMethod('onmessageerror',TMethod(aValue));
  120052. end;
  120053. function TJSServiceWorkerContainer.register(const aScriptURL: UnicodeString; const aOptions: TJSRegistrationOptions): IJSPromise; // Promise<ServiceWorkerRegistration>
  120054. begin
  120055. Result:=InvokeJSObjectResult('register',[aScriptURL,aOptions],TJSPromise) as IJSPromise;
  120056. end;
  120057. function TJSServiceWorkerContainer.register(const aScriptURL: UnicodeString): IJSPromise; // Promise<ServiceWorkerRegistration>
  120058. begin
  120059. Result:=InvokeJSObjectResult('register',[aScriptURL],TJSPromise) as IJSPromise;
  120060. end;
  120061. function TJSServiceWorkerContainer.getRegistration(const aDocumentURL: UnicodeString): IJSPromise; // Promise<union>
  120062. begin
  120063. Result:=InvokeJSObjectResult('getRegistration',[aDocumentURL],TJSPromise) as IJSPromise;
  120064. end;
  120065. function TJSServiceWorkerContainer.getRegistration: IJSPromise; // Promise<union>
  120066. begin
  120067. Result:=InvokeJSObjectResult('getRegistration',[],TJSPromise) as IJSPromise;
  120068. end;
  120069. function TJSServiceWorkerContainer.getRegistrations: IJSPromise; // Promise<sequence>
  120070. begin
  120071. Result:=InvokeJSObjectResult('getRegistrations',[],TJSPromise) as IJSPromise;
  120072. end;
  120073. procedure TJSServiceWorkerContainer.startMessages;
  120074. begin
  120075. InvokeJSNoResult('startMessages',[]);
  120076. end;
  120077. function TJSServiceWorkerContainer.getScopeForUrl(const aUrl: UnicodeString): UnicodeString;
  120078. begin
  120079. Result:=InvokeJSUnicodeStringResult('getScopeForUrl',[aUrl]);
  120080. end;
  120081. class function TJSServiceWorkerContainer.JSClassName: UnicodeString;
  120082. begin
  120083. Result:='ServiceWorkerContainer';
  120084. end;
  120085. class function TJSServiceWorkerContainer.Cast(const Intf: IJSObject): IJSServiceWorkerContainer;
  120086. begin
  120087. Result:=TJSServiceWorkerContainer.JOBCast(Intf);
  120088. end;
  120089. function TJSRegistrationOptions._Getscope: UnicodeString;
  120090. begin
  120091. Result:=ReadJSPropertyUnicodeString('scope');
  120092. end;
  120093. function TJSRegistrationOptions._GetupdateViaCache: TServiceWorkerUpdateViaCache;
  120094. begin
  120095. Result:=ReadJSPropertyUnicodeString('updateViaCache');
  120096. end;
  120097. procedure TJSRegistrationOptions._Setscope(const aValue : UnicodeString);
  120098. begin
  120099. WriteJSPropertyUnicodeString('scope',aValue);
  120100. end;
  120101. procedure TJSRegistrationOptions._SetupdateViaCache(const aValue : TServiceWorkerUpdateViaCache);
  120102. begin
  120103. WriteJSPropertyUnicodeString('updateViaCache',aValue);
  120104. end;
  120105. class function TJSRegistrationOptions.JSClassName: UnicodeString;
  120106. begin
  120107. Result:='Object';
  120108. end;
  120109. class function TJSRegistrationOptions.Cast(const Intf: IJSObject): IJSRegistrationOptions;
  120110. begin
  120111. Result:=TJSRegistrationOptions.JOBCast(Intf);
  120112. end;
  120113. function TJSServiceWorkerGlobalScope._Getclients: IJSClients;
  120114. begin
  120115. Result:=ReadJSPropertyObject('clients',TJSClients) as IJSClients;
  120116. end;
  120117. function TJSServiceWorkerGlobalScope._Getregistration: IJSServiceWorkerRegistration;
  120118. begin
  120119. Result:=ReadJSPropertyObject('registration',TJSServiceWorkerRegistration) as IJSServiceWorkerRegistration;
  120120. end;
  120121. function TJSServiceWorkerGlobalScope._Getoninstall: TEventHandler;
  120122. begin
  120123. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninstall')));
  120124. end;
  120125. function TJSServiceWorkerGlobalScope._Getonactivate: TEventHandler;
  120126. begin
  120127. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onactivate')));
  120128. end;
  120129. function TJSServiceWorkerGlobalScope._Getonfetch: TEventHandler;
  120130. begin
  120131. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfetch')));
  120132. end;
  120133. function TJSServiceWorkerGlobalScope._Getonmessage: TEventHandler;
  120134. begin
  120135. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  120136. end;
  120137. function TJSServiceWorkerGlobalScope._Getonmessageerror: TEventHandler;
  120138. begin
  120139. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessageerror')));
  120140. end;
  120141. function TJSServiceWorkerGlobalScope._Getonpush: TEventHandler;
  120142. begin
  120143. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpush')));
  120144. end;
  120145. function TJSServiceWorkerGlobalScope._Getonpushsubscriptionchange: TEventHandler;
  120146. begin
  120147. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpushsubscriptionchange')));
  120148. end;
  120149. function TJSServiceWorkerGlobalScope._Getonnotificationclick: TEventHandler;
  120150. begin
  120151. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onnotificationclick')));
  120152. end;
  120153. function TJSServiceWorkerGlobalScope._Getonnotificationclose: TEventHandler;
  120154. begin
  120155. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onnotificationclose')));
  120156. end;
  120157. function TJSServiceWorkerGlobalScope._Getbrowser: IJSExtensionBrowser;
  120158. begin
  120159. Result:=ReadJSPropertyObject('browser',TJSExtensionBrowser) as IJSExtensionBrowser;
  120160. end;
  120161. procedure TJSServiceWorkerGlobalScope._Setoninstall(const aValue : TEventHandler);
  120162. begin
  120163. WriteJSPropertyMethod('oninstall',TMethod(aValue));
  120164. end;
  120165. procedure TJSServiceWorkerGlobalScope._Setonactivate(const aValue : TEventHandler);
  120166. begin
  120167. WriteJSPropertyMethod('onactivate',TMethod(aValue));
  120168. end;
  120169. procedure TJSServiceWorkerGlobalScope._Setonfetch(const aValue : TEventHandler);
  120170. begin
  120171. WriteJSPropertyMethod('onfetch',TMethod(aValue));
  120172. end;
  120173. procedure TJSServiceWorkerGlobalScope._Setonmessage(const aValue : TEventHandler);
  120174. begin
  120175. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  120176. end;
  120177. procedure TJSServiceWorkerGlobalScope._Setonmessageerror(const aValue : TEventHandler);
  120178. begin
  120179. WriteJSPropertyMethod('onmessageerror',TMethod(aValue));
  120180. end;
  120181. procedure TJSServiceWorkerGlobalScope._Setonpush(const aValue : TEventHandler);
  120182. begin
  120183. WriteJSPropertyMethod('onpush',TMethod(aValue));
  120184. end;
  120185. procedure TJSServiceWorkerGlobalScope._Setonpushsubscriptionchange(const aValue : TEventHandler);
  120186. begin
  120187. WriteJSPropertyMethod('onpushsubscriptionchange',TMethod(aValue));
  120188. end;
  120189. procedure TJSServiceWorkerGlobalScope._Setonnotificationclick(const aValue : TEventHandler);
  120190. begin
  120191. WriteJSPropertyMethod('onnotificationclick',TMethod(aValue));
  120192. end;
  120193. procedure TJSServiceWorkerGlobalScope._Setonnotificationclose(const aValue : TEventHandler);
  120194. begin
  120195. WriteJSPropertyMethod('onnotificationclose',TMethod(aValue));
  120196. end;
  120197. function TJSServiceWorkerGlobalScope.skipWaiting: IJSPromise; // Promise<undefined>
  120198. begin
  120199. Result:=InvokeJSObjectResult('skipWaiting',[],TJSPromise) as IJSPromise;
  120200. end;
  120201. class function TJSServiceWorkerGlobalScope.JSClassName: UnicodeString;
  120202. begin
  120203. Result:='ServiceWorkerGlobalScope';
  120204. end;
  120205. class function TJSServiceWorkerGlobalScope.Cast(const Intf: IJSObject): IJSServiceWorkerGlobalScope;
  120206. begin
  120207. Result:=TJSServiceWorkerGlobalScope.JOBCast(Intf);
  120208. end;
  120209. function TJSServiceWorkerRegistration._Getinstalling: IJSServiceWorker;
  120210. begin
  120211. Result:=ReadJSPropertyObject('installing',TJSServiceWorker) as IJSServiceWorker;
  120212. end;
  120213. function TJSServiceWorkerRegistration._Getwaiting: IJSServiceWorker;
  120214. begin
  120215. Result:=ReadJSPropertyObject('waiting',TJSServiceWorker) as IJSServiceWorker;
  120216. end;
  120217. function TJSServiceWorkerRegistration._Getactive: IJSServiceWorker;
  120218. begin
  120219. Result:=ReadJSPropertyObject('active',TJSServiceWorker) as IJSServiceWorker;
  120220. end;
  120221. function TJSServiceWorkerRegistration._GetnavigationPreload: IJSNavigationPreloadManager;
  120222. begin
  120223. Result:=ReadJSPropertyObject('navigationPreload',TJSNavigationPreloadManager) as IJSNavigationPreloadManager;
  120224. end;
  120225. function TJSServiceWorkerRegistration._Getscope: UnicodeString;
  120226. begin
  120227. Result:=ReadJSPropertyUnicodeString('scope');
  120228. end;
  120229. function TJSServiceWorkerRegistration._GetupdateViaCache: TServiceWorkerUpdateViaCache;
  120230. begin
  120231. Result:=ReadJSPropertyUnicodeString('updateViaCache');
  120232. end;
  120233. function TJSServiceWorkerRegistration._Getonupdatefound: TEventHandler;
  120234. begin
  120235. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onupdatefound')));
  120236. end;
  120237. function TJSServiceWorkerRegistration._GetpushManager: IJSPushManager;
  120238. begin
  120239. Result:=ReadJSPropertyObject('pushManager',TJSPushManager) as IJSPushManager;
  120240. end;
  120241. procedure TJSServiceWorkerRegistration._Setonupdatefound(const aValue : TEventHandler);
  120242. begin
  120243. WriteJSPropertyMethod('onupdatefound',TMethod(aValue));
  120244. end;
  120245. function TJSServiceWorkerRegistration.update: IJSPromise; // Promise<undefined>
  120246. begin
  120247. Result:=InvokeJSObjectResult('update',[],TJSPromise) as IJSPromise;
  120248. end;
  120249. function TJSServiceWorkerRegistration.unregister: IJSPromise; // Promise<boolean>
  120250. begin
  120251. Result:=InvokeJSObjectResult('unregister',[],TJSPromise) as IJSPromise;
  120252. end;
  120253. function TJSServiceWorkerRegistration.showNotification(const aTitle: UnicodeString; const aOptions: TJSNotificationOptions): IJSPromise; // Promise<undefined>
  120254. begin
  120255. Result:=InvokeJSObjectResult('showNotification',[aTitle,aOptions],TJSPromise) as IJSPromise;
  120256. end;
  120257. function TJSServiceWorkerRegistration.showNotification(const aTitle: UnicodeString): IJSPromise; // Promise<undefined>
  120258. begin
  120259. Result:=InvokeJSObjectResult('showNotification',[aTitle],TJSPromise) as IJSPromise;
  120260. end;
  120261. function TJSServiceWorkerRegistration.getNotifications(const aFilter: TJSGetNotificationOptions): IJSPromise; // Promise<sequence>
  120262. begin
  120263. Result:=InvokeJSObjectResult('getNotifications',[aFilter],TJSPromise) as IJSPromise;
  120264. end;
  120265. function TJSServiceWorkerRegistration.getNotifications: IJSPromise; // Promise<sequence>
  120266. begin
  120267. Result:=InvokeJSObjectResult('getNotifications',[],TJSPromise) as IJSPromise;
  120268. end;
  120269. class function TJSServiceWorkerRegistration.JSClassName: UnicodeString;
  120270. begin
  120271. Result:='ServiceWorkerRegistration';
  120272. end;
  120273. class function TJSServiceWorkerRegistration.Cast(const Intf: IJSObject): IJSServiceWorkerRegistration;
  120274. begin
  120275. Result:=TJSServiceWorkerRegistration.JOBCast(Intf);
  120276. end;
  120277. class function TJSShadowRealmGlobalScope.JSClassName: UnicodeString;
  120278. begin
  120279. Result:='ShadowRealmGlobalScope';
  120280. end;
  120281. class function TJSShadowRealmGlobalScope.Cast(const Intf: IJSObject): IJSShadowRealmGlobalScope;
  120282. begin
  120283. Result:=TJSShadowRealmGlobalScope.JOBCast(Intf);
  120284. end;
  120285. function TJSShadowRoot._Getmode: TShadowRootMode;
  120286. begin
  120287. Result:=ReadJSPropertyUnicodeString('mode');
  120288. end;
  120289. function TJSShadowRoot._GetdelegatesFocus: Boolean;
  120290. begin
  120291. Result:=ReadJSPropertyBoolean('delegatesFocus');
  120292. end;
  120293. function TJSShadowRoot._GetslotAssignment: TSlotAssignmentMode;
  120294. begin
  120295. Result:=ReadJSPropertyUnicodeString('slotAssignment');
  120296. end;
  120297. function TJSShadowRoot._Getclonable: Boolean;
  120298. begin
  120299. Result:=ReadJSPropertyBoolean('clonable');
  120300. end;
  120301. function TJSShadowRoot._Gethost: IJSElement;
  120302. begin
  120303. Result:=ReadJSPropertyObject('host',TJSElement) as IJSElement;
  120304. end;
  120305. function TJSShadowRoot._Getonslotchange: TEventHandler;
  120306. begin
  120307. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onslotchange')));
  120308. end;
  120309. function TJSShadowRoot._GetinnerHTML: UnicodeString;
  120310. begin
  120311. Result:=ReadJSPropertyUnicodeString('innerHTML');
  120312. end;
  120313. function TJSShadowRoot._GetactiveElement: IJSElement;
  120314. begin
  120315. Result:=ReadJSPropertyObject('activeElement',TJSElement) as IJSElement;
  120316. end;
  120317. function TJSShadowRoot._GetstyleSheets: IJSStyleSheetList;
  120318. begin
  120319. Result:=ReadJSPropertyObject('styleSheets',TJSStyleSheetList) as IJSStyleSheetList;
  120320. end;
  120321. function TJSShadowRoot._GetpointerLockElement: IJSElement;
  120322. begin
  120323. Result:=ReadJSPropertyObject('pointerLockElement',TJSElement) as IJSElement;
  120324. end;
  120325. function TJSShadowRoot._GetfullscreenElement: IJSElement;
  120326. begin
  120327. Result:=ReadJSPropertyObject('fullscreenElement',TJSElement) as IJSElement;
  120328. end;
  120329. function TJSShadowRoot._GetmozFullScreenElement: IJSElement;
  120330. begin
  120331. Result:=ReadJSPropertyObject('mozFullScreenElement',TJSElement) as IJSElement;
  120332. end;
  120333. function TJSShadowRoot._GetadoptedStyleSheets: TJSCSSStyleSheetDynArray;
  120334. begin
  120335. Result:=ReadJSPropertyObject('adoptedStyleSheets',TJSArray) as TJSCSSStyleSheetDynArray;
  120336. end;
  120337. procedure TJSShadowRoot._Setonslotchange(const aValue : TEventHandler);
  120338. begin
  120339. WriteJSPropertyMethod('onslotchange',TMethod(aValue));
  120340. end;
  120341. procedure TJSShadowRoot._SetinnerHTML(const aValue : UnicodeString);
  120342. begin
  120343. WriteJSPropertyUnicodeString('innerHTML',aValue);
  120344. end;
  120345. procedure TJSShadowRoot._SetadoptedStyleSheets(const aValue : TJSCSSStyleSheetDynArray);
  120346. begin
  120347. WriteJSPropertyObject('adoptedStyleSheets',aValue);
  120348. end;
  120349. function TJSShadowRoot.getElementById(const aElementId: UnicodeString): IJSElement;
  120350. begin
  120351. Result:=InvokeJSObjectResult('getElementById',[aElementId],TJSElement) as IJSElement;
  120352. end;
  120353. function TJSShadowRoot.importNodeAndAppendChildAt(aParentNode: IJSNode; aNode: IJSNode; aDeep: Boolean): IJSNode;
  120354. begin
  120355. Result:=InvokeJSObjectResult('importNodeAndAppendChildAt',[aParentNode,aNode,aDeep],TJSNode) as IJSNode;
  120356. end;
  120357. function TJSShadowRoot.importNodeAndAppendChildAt(aParentNode: IJSNode; aNode: IJSNode): IJSNode;
  120358. begin
  120359. Result:=InvokeJSObjectResult('importNodeAndAppendChildAt',[aParentNode,aNode],TJSNode) as IJSNode;
  120360. end;
  120361. function TJSShadowRoot.createElementAndAppendChildAt(aParentNode: IJSNode; const aLocalName: UnicodeString): IJSNode;
  120362. begin
  120363. Result:=InvokeJSObjectResult('createElementAndAppendChildAt',[aParentNode,aLocalName],TJSNode) as IJSNode;
  120364. end;
  120365. procedure TJSShadowRoot.setHTMLUnsafe(const aHtml: UnicodeString);
  120366. begin
  120367. InvokeJSNoResult('setHTMLUnsafe',[aHtml]);
  120368. end;
  120369. function TJSShadowRoot.elementFromPoint(aX: Single; aY: Single): IJSElement;
  120370. begin
  120371. Result:=InvokeJSObjectResult('elementFromPoint',[aX,aY],TJSElement) as IJSElement;
  120372. end;
  120373. function TJSShadowRoot.elementsFromPoint(aX: Single; aY: Single): TJSElementDynArray;
  120374. begin
  120375. Result:=InvokeJSObjectResult('elementsFromPoint',[aX,aY],TJSArray) as TJSElementDynArray;
  120376. end;
  120377. function TJSShadowRoot.getAnimations: TJSAnimationDynArray;
  120378. begin
  120379. Result:=InvokeJSObjectResult('getAnimations',[],TJSArray) as TJSAnimationDynArray;
  120380. end;
  120381. class function TJSShadowRoot.JSClassName: UnicodeString;
  120382. begin
  120383. Result:='ShadowRoot';
  120384. end;
  120385. class function TJSShadowRoot.Cast(const Intf: IJSObject): IJSShadowRoot;
  120386. begin
  120387. Result:=TJSShadowRoot.JOBCast(Intf);
  120388. end;
  120389. function TJSSharedWorker._Getport: IJSMessagePort;
  120390. begin
  120391. Result:=ReadJSPropertyObject('port',TJSMessagePort) as IJSMessagePort;
  120392. end;
  120393. function TJSSharedWorker._Getonerror: TEventHandler;
  120394. begin
  120395. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  120396. end;
  120397. procedure TJSSharedWorker._Setonerror(const aValue : TEventHandler);
  120398. begin
  120399. WriteJSPropertyMethod('onerror',TMethod(aValue));
  120400. end;
  120401. constructor TJSSharedWorker.Create(const aScriptURL: UnicodeString; const aOptions: UnicodeString);
  120402. begin
  120403. JOBCreate([aScriptURL,aOptions]);
  120404. end;
  120405. constructor TJSSharedWorker.Create(const aScriptURL: UnicodeString);
  120406. begin
  120407. JOBCreate([aScriptURL]);
  120408. end;
  120409. constructor TJSSharedWorker.Create(const aScriptURL: UnicodeString; const aOptions: TJSWorkerOptions);
  120410. begin
  120411. JOBCreate([aScriptURL,aOptions]);
  120412. end;
  120413. class function TJSSharedWorker.JSClassName: UnicodeString;
  120414. begin
  120415. Result:='SharedWorker';
  120416. end;
  120417. class function TJSSharedWorker.Cast(const Intf: IJSObject): IJSSharedWorker;
  120418. begin
  120419. Result:=TJSSharedWorker.JOBCast(Intf);
  120420. end;
  120421. function TJSSharedWorkerGlobalScope._Getname: UnicodeString;
  120422. begin
  120423. Result:=ReadJSPropertyUnicodeString('name');
  120424. end;
  120425. function TJSSharedWorkerGlobalScope._Getonconnect: TEventHandler;
  120426. begin
  120427. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onconnect')));
  120428. end;
  120429. procedure TJSSharedWorkerGlobalScope._Setonconnect(const aValue : TEventHandler);
  120430. begin
  120431. WriteJSPropertyMethod('onconnect',TMethod(aValue));
  120432. end;
  120433. procedure TJSSharedWorkerGlobalScope.close;
  120434. begin
  120435. InvokeJSNoResult('close',[]);
  120436. end;
  120437. class function TJSSharedWorkerGlobalScope.JSClassName: UnicodeString;
  120438. begin
  120439. Result:='SharedWorkerGlobalScope';
  120440. end;
  120441. class function TJSSharedWorkerGlobalScope.Cast(const Intf: IJSObject): IJSSharedWorkerGlobalScope;
  120442. begin
  120443. Result:=TJSSharedWorkerGlobalScope.JOBCast(Intf);
  120444. end;
  120445. function TJSSourceBuffer._Getmode: TSourceBufferAppendMode;
  120446. begin
  120447. Result:=ReadJSPropertyUnicodeString('mode');
  120448. end;
  120449. function TJSSourceBuffer._Getupdating: Boolean;
  120450. begin
  120451. Result:=ReadJSPropertyBoolean('updating');
  120452. end;
  120453. function TJSSourceBuffer._Getbuffered: IJSTimeRanges;
  120454. begin
  120455. Result:=ReadJSPropertyObject('buffered',TJSTimeRanges) as IJSTimeRanges;
  120456. end;
  120457. function TJSSourceBuffer._GettimestampOffset: Double;
  120458. begin
  120459. Result:=ReadJSPropertyDouble('timestampOffset');
  120460. end;
  120461. function TJSSourceBuffer._GetappendWindowStart: Double;
  120462. begin
  120463. Result:=ReadJSPropertyDouble('appendWindowStart');
  120464. end;
  120465. function TJSSourceBuffer._GetappendWindowEnd: Double;
  120466. begin
  120467. Result:=ReadJSPropertyDouble('appendWindowEnd');
  120468. end;
  120469. function TJSSourceBuffer._Getonupdatestart: TEventHandler;
  120470. begin
  120471. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onupdatestart')));
  120472. end;
  120473. function TJSSourceBuffer._Getonupdate: TEventHandler;
  120474. begin
  120475. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onupdate')));
  120476. end;
  120477. function TJSSourceBuffer._Getonupdateend: TEventHandler;
  120478. begin
  120479. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onupdateend')));
  120480. end;
  120481. function TJSSourceBuffer._Getonerror: TEventHandler;
  120482. begin
  120483. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  120484. end;
  120485. function TJSSourceBuffer._Getonabort: TEventHandler;
  120486. begin
  120487. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  120488. end;
  120489. procedure TJSSourceBuffer._Setmode(const aValue : TSourceBufferAppendMode);
  120490. begin
  120491. WriteJSPropertyUnicodeString('mode',aValue);
  120492. end;
  120493. procedure TJSSourceBuffer._SettimestampOffset(const aValue : Double);
  120494. begin
  120495. WriteJSPropertyDouble('timestampOffset',aValue);
  120496. end;
  120497. procedure TJSSourceBuffer._SetappendWindowStart(const aValue : Double);
  120498. begin
  120499. WriteJSPropertyDouble('appendWindowStart',aValue);
  120500. end;
  120501. procedure TJSSourceBuffer._SetappendWindowEnd(const aValue : Double);
  120502. begin
  120503. WriteJSPropertyDouble('appendWindowEnd',aValue);
  120504. end;
  120505. procedure TJSSourceBuffer._Setonupdatestart(const aValue : TEventHandler);
  120506. begin
  120507. WriteJSPropertyMethod('onupdatestart',TMethod(aValue));
  120508. end;
  120509. procedure TJSSourceBuffer._Setonupdate(const aValue : TEventHandler);
  120510. begin
  120511. WriteJSPropertyMethod('onupdate',TMethod(aValue));
  120512. end;
  120513. procedure TJSSourceBuffer._Setonupdateend(const aValue : TEventHandler);
  120514. begin
  120515. WriteJSPropertyMethod('onupdateend',TMethod(aValue));
  120516. end;
  120517. procedure TJSSourceBuffer._Setonerror(const aValue : TEventHandler);
  120518. begin
  120519. WriteJSPropertyMethod('onerror',TMethod(aValue));
  120520. end;
  120521. procedure TJSSourceBuffer._Setonabort(const aValue : TEventHandler);
  120522. begin
  120523. WriteJSPropertyMethod('onabort',TMethod(aValue));
  120524. end;
  120525. procedure TJSSourceBuffer.appendBuffer(aData: IJSArrayBuffer);
  120526. begin
  120527. InvokeJSNoResult('appendBuffer',[aData]);
  120528. end;
  120529. procedure TJSSourceBuffer.appendBuffer(aData: IJSArrayBufferView);
  120530. begin
  120531. InvokeJSNoResult('appendBuffer',[aData]);
  120532. end;
  120533. procedure TJSSourceBuffer.abort;
  120534. begin
  120535. InvokeJSNoResult('abort',[]);
  120536. end;
  120537. procedure TJSSourceBuffer.remove(aStart: Double; aEnd_: Double);
  120538. begin
  120539. InvokeJSNoResult('remove',[aStart,aEnd_]);
  120540. end;
  120541. function TJSSourceBuffer.appendBufferAsync(aData: IJSArrayBuffer): IJSPromise; // Promise<undefined>
  120542. begin
  120543. Result:=InvokeJSObjectResult('appendBufferAsync',[aData],TJSPromise) as IJSPromise;
  120544. end;
  120545. function TJSSourceBuffer.appendBufferAsync(aData: IJSArrayBufferView): IJSPromise; // Promise<undefined>
  120546. begin
  120547. Result:=InvokeJSObjectResult('appendBufferAsync',[aData],TJSPromise) as IJSPromise;
  120548. end;
  120549. function TJSSourceBuffer.removeAsync(aStart: Double; aEnd_: Double): IJSPromise; // Promise<undefined>
  120550. begin
  120551. Result:=InvokeJSObjectResult('removeAsync',[aStart,aEnd_],TJSPromise) as IJSPromise;
  120552. end;
  120553. procedure TJSSourceBuffer.changeType(const aType_: UnicodeString);
  120554. begin
  120555. InvokeJSNoResult('changeType',[aType_]);
  120556. end;
  120557. class function TJSSourceBuffer.JSClassName: UnicodeString;
  120558. begin
  120559. Result:='SourceBuffer';
  120560. end;
  120561. class function TJSSourceBuffer.Cast(const Intf: IJSObject): IJSSourceBuffer;
  120562. begin
  120563. Result:=TJSSourceBuffer.JOBCast(Intf);
  120564. end;
  120565. function TJSSourceBufferList._Getlength_: Cardinal;
  120566. begin
  120567. Result:=ReadJSPropertyInt64('length');
  120568. end;
  120569. function TJSSourceBufferList._Getonaddsourcebuffer: TEventHandler;
  120570. begin
  120571. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onaddsourcebuffer')));
  120572. end;
  120573. function TJSSourceBufferList._Getonremovesourcebuffer: TEventHandler;
  120574. begin
  120575. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onremovesourcebuffer')));
  120576. end;
  120577. procedure TJSSourceBufferList._Setonaddsourcebuffer(const aValue : TEventHandler);
  120578. begin
  120579. WriteJSPropertyMethod('onaddsourcebuffer',TMethod(aValue));
  120580. end;
  120581. procedure TJSSourceBufferList._Setonremovesourcebuffer(const aValue : TEventHandler);
  120582. begin
  120583. WriteJSPropertyMethod('onremovesourcebuffer',TMethod(aValue));
  120584. end;
  120585. function TJSSourceBufferList.GetDefault(aIndex: Cardinal): IJSSourceBuffer;
  120586. begin
  120587. Result:=InvokeJSObjectResult('',[aIndex],TJSSourceBuffer) as IJSSourceBuffer;
  120588. end;
  120589. class function TJSSourceBufferList.JSClassName: UnicodeString;
  120590. begin
  120591. Result:='SourceBufferList';
  120592. end;
  120593. class function TJSSourceBufferList.Cast(const Intf: IJSObject): IJSSourceBufferList;
  120594. begin
  120595. Result:=TJSSourceBufferList.JOBCast(Intf);
  120596. end;
  120597. function TJSSpeechGrammar._Getsrc: UnicodeString;
  120598. begin
  120599. Result:=ReadJSPropertyUnicodeString('src');
  120600. end;
  120601. function TJSSpeechGrammar._Getweight: Single;
  120602. begin
  120603. Result:=ReadJSPropertyDouble('weight');
  120604. end;
  120605. procedure TJSSpeechGrammar._Setsrc(const aValue : UnicodeString);
  120606. begin
  120607. WriteJSPropertyUnicodeString('src',aValue);
  120608. end;
  120609. procedure TJSSpeechGrammar._Setweight(const aValue : Single);
  120610. begin
  120611. WriteJSPropertyDouble('weight',aValue);
  120612. end;
  120613. constructor TJSSpeechGrammar.Create;
  120614. begin
  120615. JOBCreate([]);
  120616. end;
  120617. class function TJSSpeechGrammar.JSClassName: UnicodeString;
  120618. begin
  120619. Result:='SpeechGrammar';
  120620. end;
  120621. class function TJSSpeechGrammar.Cast(const Intf: IJSObject): IJSSpeechGrammar;
  120622. begin
  120623. Result:=TJSSpeechGrammar.JOBCast(Intf);
  120624. end;
  120625. function TJSSpeechGrammarList._Getlength_: Cardinal;
  120626. begin
  120627. Result:=ReadJSPropertyInt64('length');
  120628. end;
  120629. constructor TJSSpeechGrammarList.Create;
  120630. begin
  120631. JOBCreate([]);
  120632. end;
  120633. function TJSSpeechGrammarList.item(aIndex: Cardinal): IJSSpeechGrammar;
  120634. begin
  120635. Result:=InvokeJSObjectResult('item',[aIndex],TJSSpeechGrammar) as IJSSpeechGrammar;
  120636. end;
  120637. procedure TJSSpeechGrammarList.addFromURI(const aSrc: UnicodeString; aWeight: Single);
  120638. begin
  120639. InvokeJSNoResult('addFromURI',[aSrc,aWeight]);
  120640. end;
  120641. procedure TJSSpeechGrammarList.addFromURI(const aSrc: UnicodeString);
  120642. begin
  120643. InvokeJSNoResult('addFromURI',[aSrc]);
  120644. end;
  120645. procedure TJSSpeechGrammarList.addFromString(const aString_: UnicodeString; aWeight: Single);
  120646. begin
  120647. InvokeJSNoResult('addFromString',[aString_,aWeight]);
  120648. end;
  120649. procedure TJSSpeechGrammarList.addFromString(const aString_: UnicodeString);
  120650. begin
  120651. InvokeJSNoResult('addFromString',[aString_]);
  120652. end;
  120653. class function TJSSpeechGrammarList.JSClassName: UnicodeString;
  120654. begin
  120655. Result:='SpeechGrammarList';
  120656. end;
  120657. class function TJSSpeechGrammarList.Cast(const Intf: IJSObject): IJSSpeechGrammarList;
  120658. begin
  120659. Result:=TJSSpeechGrammarList.JOBCast(Intf);
  120660. end;
  120661. function TJSSpeechRecognition._Getgrammars: IJSSpeechGrammarList;
  120662. begin
  120663. Result:=ReadJSPropertyObject('grammars',TJSSpeechGrammarList) as IJSSpeechGrammarList;
  120664. end;
  120665. function TJSSpeechRecognition._Getlang: UnicodeString;
  120666. begin
  120667. Result:=ReadJSPropertyUnicodeString('lang');
  120668. end;
  120669. function TJSSpeechRecognition._Getcontinuous: Boolean;
  120670. begin
  120671. Result:=ReadJSPropertyBoolean('continuous');
  120672. end;
  120673. function TJSSpeechRecognition._GetinterimResults: Boolean;
  120674. begin
  120675. Result:=ReadJSPropertyBoolean('interimResults');
  120676. end;
  120677. function TJSSpeechRecognition._GetmaxAlternatives: Cardinal;
  120678. begin
  120679. Result:=ReadJSPropertyInt64('maxAlternatives');
  120680. end;
  120681. function TJSSpeechRecognition._GetserviceURI: UnicodeString;
  120682. begin
  120683. Result:=ReadJSPropertyUnicodeString('serviceURI');
  120684. end;
  120685. function TJSSpeechRecognition._Getonaudiostart: TEventHandler;
  120686. begin
  120687. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onaudiostart')));
  120688. end;
  120689. function TJSSpeechRecognition._Getonsoundstart: TEventHandler;
  120690. begin
  120691. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsoundstart')));
  120692. end;
  120693. function TJSSpeechRecognition._Getonspeechstart: TEventHandler;
  120694. begin
  120695. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onspeechstart')));
  120696. end;
  120697. function TJSSpeechRecognition._Getonspeechend: TEventHandler;
  120698. begin
  120699. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onspeechend')));
  120700. end;
  120701. function TJSSpeechRecognition._Getonsoundend: TEventHandler;
  120702. begin
  120703. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsoundend')));
  120704. end;
  120705. function TJSSpeechRecognition._Getonaudioend: TEventHandler;
  120706. begin
  120707. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onaudioend')));
  120708. end;
  120709. function TJSSpeechRecognition._Getonresult: TEventHandler;
  120710. begin
  120711. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresult')));
  120712. end;
  120713. function TJSSpeechRecognition._Getonnomatch: TEventHandler;
  120714. begin
  120715. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onnomatch')));
  120716. end;
  120717. function TJSSpeechRecognition._Getonerror: TEventHandler;
  120718. begin
  120719. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  120720. end;
  120721. function TJSSpeechRecognition._Getonstart: TEventHandler;
  120722. begin
  120723. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstart')));
  120724. end;
  120725. function TJSSpeechRecognition._Getonend: TEventHandler;
  120726. begin
  120727. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onend')));
  120728. end;
  120729. procedure TJSSpeechRecognition._Setgrammars(const aValue : IJSSpeechGrammarList);
  120730. begin
  120731. WriteJSPropertyObject('grammars',aValue);
  120732. end;
  120733. procedure TJSSpeechRecognition._Setlang(const aValue : UnicodeString);
  120734. begin
  120735. WriteJSPropertyUnicodeString('lang',aValue);
  120736. end;
  120737. procedure TJSSpeechRecognition._Setcontinuous(const aValue : Boolean);
  120738. begin
  120739. WriteJSPropertyBoolean('continuous',aValue);
  120740. end;
  120741. procedure TJSSpeechRecognition._SetinterimResults(const aValue : Boolean);
  120742. begin
  120743. WriteJSPropertyBoolean('interimResults',aValue);
  120744. end;
  120745. procedure TJSSpeechRecognition._SetmaxAlternatives(const aValue : Cardinal);
  120746. begin
  120747. WriteJSPropertyDouble('maxAlternatives',aValue);
  120748. end;
  120749. procedure TJSSpeechRecognition._SetserviceURI(const aValue : UnicodeString);
  120750. begin
  120751. WriteJSPropertyUnicodeString('serviceURI',aValue);
  120752. end;
  120753. procedure TJSSpeechRecognition._Setonaudiostart(const aValue : TEventHandler);
  120754. begin
  120755. WriteJSPropertyMethod('onaudiostart',TMethod(aValue));
  120756. end;
  120757. procedure TJSSpeechRecognition._Setonsoundstart(const aValue : TEventHandler);
  120758. begin
  120759. WriteJSPropertyMethod('onsoundstart',TMethod(aValue));
  120760. end;
  120761. procedure TJSSpeechRecognition._Setonspeechstart(const aValue : TEventHandler);
  120762. begin
  120763. WriteJSPropertyMethod('onspeechstart',TMethod(aValue));
  120764. end;
  120765. procedure TJSSpeechRecognition._Setonspeechend(const aValue : TEventHandler);
  120766. begin
  120767. WriteJSPropertyMethod('onspeechend',TMethod(aValue));
  120768. end;
  120769. procedure TJSSpeechRecognition._Setonsoundend(const aValue : TEventHandler);
  120770. begin
  120771. WriteJSPropertyMethod('onsoundend',TMethod(aValue));
  120772. end;
  120773. procedure TJSSpeechRecognition._Setonaudioend(const aValue : TEventHandler);
  120774. begin
  120775. WriteJSPropertyMethod('onaudioend',TMethod(aValue));
  120776. end;
  120777. procedure TJSSpeechRecognition._Setonresult(const aValue : TEventHandler);
  120778. begin
  120779. WriteJSPropertyMethod('onresult',TMethod(aValue));
  120780. end;
  120781. procedure TJSSpeechRecognition._Setonnomatch(const aValue : TEventHandler);
  120782. begin
  120783. WriteJSPropertyMethod('onnomatch',TMethod(aValue));
  120784. end;
  120785. procedure TJSSpeechRecognition._Setonerror(const aValue : TEventHandler);
  120786. begin
  120787. WriteJSPropertyMethod('onerror',TMethod(aValue));
  120788. end;
  120789. procedure TJSSpeechRecognition._Setonstart(const aValue : TEventHandler);
  120790. begin
  120791. WriteJSPropertyMethod('onstart',TMethod(aValue));
  120792. end;
  120793. procedure TJSSpeechRecognition._Setonend(const aValue : TEventHandler);
  120794. begin
  120795. WriteJSPropertyMethod('onend',TMethod(aValue));
  120796. end;
  120797. constructor TJSSpeechRecognition.Create;
  120798. begin
  120799. JOBCreate([]);
  120800. end;
  120801. procedure TJSSpeechRecognition.start(aStream: IJSMediaStream);
  120802. begin
  120803. InvokeJSNoResult('start',[aStream]);
  120804. end;
  120805. procedure TJSSpeechRecognition.start;
  120806. begin
  120807. InvokeJSNoResult('start',[]);
  120808. end;
  120809. procedure TJSSpeechRecognition.stop;
  120810. begin
  120811. InvokeJSNoResult('stop',[]);
  120812. end;
  120813. procedure TJSSpeechRecognition.abort;
  120814. begin
  120815. InvokeJSNoResult('abort',[]);
  120816. end;
  120817. class function TJSSpeechRecognition.JSClassName: UnicodeString;
  120818. begin
  120819. Result:='SpeechRecognition';
  120820. end;
  120821. class function TJSSpeechRecognition.Cast(const Intf: IJSObject): IJSSpeechRecognition;
  120822. begin
  120823. Result:=TJSSpeechRecognition.JOBCast(Intf);
  120824. end;
  120825. function TJSSpeechRecognitionAlternative._Gettranscript: UnicodeString;
  120826. begin
  120827. Result:=ReadJSPropertyUnicodeString('transcript');
  120828. end;
  120829. function TJSSpeechRecognitionAlternative._Getconfidence: Single;
  120830. begin
  120831. Result:=ReadJSPropertyDouble('confidence');
  120832. end;
  120833. class function TJSSpeechRecognitionAlternative.JSClassName: UnicodeString;
  120834. begin
  120835. Result:='SpeechRecognitionAlternative';
  120836. end;
  120837. class function TJSSpeechRecognitionAlternative.Cast(const Intf: IJSObject): IJSSpeechRecognitionAlternative;
  120838. begin
  120839. Result:=TJSSpeechRecognitionAlternative.JOBCast(Intf);
  120840. end;
  120841. function TJSSpeechRecognitionError._Geterror: TSpeechRecognitionErrorCode;
  120842. begin
  120843. Result:=ReadJSPropertyUnicodeString('error');
  120844. end;
  120845. function TJSSpeechRecognitionError._Getmessage: UnicodeString;
  120846. begin
  120847. Result:=ReadJSPropertyUnicodeString('message');
  120848. end;
  120849. constructor TJSSpeechRecognitionError.Create(const aType_: UnicodeString; const aEventInitDict: TJSSpeechRecognitionErrorInit);
  120850. begin
  120851. JOBCreate([aType_,aEventInitDict]);
  120852. end;
  120853. constructor TJSSpeechRecognitionError.Create(const aType_: UnicodeString);
  120854. begin
  120855. JOBCreate([aType_]);
  120856. end;
  120857. class function TJSSpeechRecognitionError.JSClassName: UnicodeString;
  120858. begin
  120859. Result:='SpeechRecognitionError';
  120860. end;
  120861. class function TJSSpeechRecognitionError.Cast(const Intf: IJSObject): IJSSpeechRecognitionError;
  120862. begin
  120863. Result:=TJSSpeechRecognitionError.JOBCast(Intf);
  120864. end;
  120865. function TJSSpeechRecognitionErrorInit._Geterror: TSpeechRecognitionErrorCode;
  120866. begin
  120867. Result:=ReadJSPropertyUnicodeString('error');
  120868. end;
  120869. function TJSSpeechRecognitionErrorInit._Getmessage: UnicodeString;
  120870. begin
  120871. Result:=ReadJSPropertyUnicodeString('message');
  120872. end;
  120873. procedure TJSSpeechRecognitionErrorInit._Seterror(const aValue : TSpeechRecognitionErrorCode);
  120874. begin
  120875. WriteJSPropertyUnicodeString('error',aValue);
  120876. end;
  120877. procedure TJSSpeechRecognitionErrorInit._Setmessage(const aValue : UnicodeString);
  120878. begin
  120879. WriteJSPropertyUnicodeString('message',aValue);
  120880. end;
  120881. class function TJSSpeechRecognitionErrorInit.JSClassName: UnicodeString;
  120882. begin
  120883. Result:='Object';
  120884. end;
  120885. class function TJSSpeechRecognitionErrorInit.Cast(const Intf: IJSObject): IJSSpeechRecognitionErrorInit;
  120886. begin
  120887. Result:=TJSSpeechRecognitionErrorInit.JOBCast(Intf);
  120888. end;
  120889. function TJSSpeechRecognitionEvent._GetresultIndex: Cardinal;
  120890. begin
  120891. Result:=ReadJSPropertyInt64('resultIndex');
  120892. end;
  120893. function TJSSpeechRecognitionEvent._Getresults: IJSSpeechRecognitionResultList;
  120894. begin
  120895. Result:=ReadJSPropertyObject('results',TJSSpeechRecognitionResultList) as IJSSpeechRecognitionResultList;
  120896. end;
  120897. function TJSSpeechRecognitionEvent._Getinterpretation: Variant;
  120898. begin
  120899. Result:=ReadJSPropertyVariant('interpretation');
  120900. end;
  120901. function TJSSpeechRecognitionEvent._Getemma: IJSDocument;
  120902. begin
  120903. Result:=ReadJSPropertyObject('emma',TJSDocument) as IJSDocument;
  120904. end;
  120905. constructor TJSSpeechRecognitionEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSSpeechRecognitionEventInit);
  120906. begin
  120907. JOBCreate([aType_,aEventInitDict]);
  120908. end;
  120909. constructor TJSSpeechRecognitionEvent.Create(const aType_: UnicodeString);
  120910. begin
  120911. JOBCreate([aType_]);
  120912. end;
  120913. class function TJSSpeechRecognitionEvent.JSClassName: UnicodeString;
  120914. begin
  120915. Result:='SpeechRecognitionEvent';
  120916. end;
  120917. class function TJSSpeechRecognitionEvent.Cast(const Intf: IJSObject): IJSSpeechRecognitionEvent;
  120918. begin
  120919. Result:=TJSSpeechRecognitionEvent.JOBCast(Intf);
  120920. end;
  120921. function TJSSpeechRecognitionEventInit._GetresultIndex: Cardinal;
  120922. begin
  120923. Result:=ReadJSPropertyInt64('resultIndex');
  120924. end;
  120925. function TJSSpeechRecognitionEventInit._Getresults: IJSSpeechRecognitionResultList;
  120926. begin
  120927. Result:=ReadJSPropertyObject('results',TJSSpeechRecognitionResultList) as IJSSpeechRecognitionResultList;
  120928. end;
  120929. function TJSSpeechRecognitionEventInit._Getinterpretation: Variant;
  120930. begin
  120931. Result:=ReadJSPropertyVariant('interpretation');
  120932. end;
  120933. function TJSSpeechRecognitionEventInit._Getemma: IJSDocument;
  120934. begin
  120935. Result:=ReadJSPropertyObject('emma',TJSDocument) as IJSDocument;
  120936. end;
  120937. procedure TJSSpeechRecognitionEventInit._SetresultIndex(const aValue : Cardinal);
  120938. begin
  120939. WriteJSPropertyDouble('resultIndex',aValue);
  120940. end;
  120941. procedure TJSSpeechRecognitionEventInit._Setresults(const aValue : IJSSpeechRecognitionResultList);
  120942. begin
  120943. WriteJSPropertyObject('results',aValue);
  120944. end;
  120945. procedure TJSSpeechRecognitionEventInit._Setinterpretation(const aValue : Variant);
  120946. begin
  120947. WriteJSPropertyVariant('interpretation',aValue);
  120948. end;
  120949. procedure TJSSpeechRecognitionEventInit._Setemma(const aValue : IJSDocument);
  120950. begin
  120951. WriteJSPropertyObject('emma',aValue);
  120952. end;
  120953. class function TJSSpeechRecognitionEventInit.JSClassName: UnicodeString;
  120954. begin
  120955. Result:='Object';
  120956. end;
  120957. class function TJSSpeechRecognitionEventInit.Cast(const Intf: IJSObject): IJSSpeechRecognitionEventInit;
  120958. begin
  120959. Result:=TJSSpeechRecognitionEventInit.JOBCast(Intf);
  120960. end;
  120961. function TJSSpeechRecognitionResult._Getlength_: Cardinal;
  120962. begin
  120963. Result:=ReadJSPropertyInt64('length');
  120964. end;
  120965. function TJSSpeechRecognitionResult._GetisFinal: Boolean;
  120966. begin
  120967. Result:=ReadJSPropertyBoolean('isFinal');
  120968. end;
  120969. function TJSSpeechRecognitionResult.item(aIndex: Cardinal): IJSSpeechRecognitionAlternative;
  120970. begin
  120971. Result:=InvokeJSObjectResult('item',[aIndex],TJSSpeechRecognitionAlternative) as IJSSpeechRecognitionAlternative;
  120972. end;
  120973. class function TJSSpeechRecognitionResult.JSClassName: UnicodeString;
  120974. begin
  120975. Result:='SpeechRecognitionResult';
  120976. end;
  120977. class function TJSSpeechRecognitionResult.Cast(const Intf: IJSObject): IJSSpeechRecognitionResult;
  120978. begin
  120979. Result:=TJSSpeechRecognitionResult.JOBCast(Intf);
  120980. end;
  120981. function TJSSpeechRecognitionResultList._Getlength_: Cardinal;
  120982. begin
  120983. Result:=ReadJSPropertyInt64('length');
  120984. end;
  120985. function TJSSpeechRecognitionResultList.item(aIndex: Cardinal): IJSSpeechRecognitionResult;
  120986. begin
  120987. Result:=InvokeJSObjectResult('item',[aIndex],TJSSpeechRecognitionResult) as IJSSpeechRecognitionResult;
  120988. end;
  120989. class function TJSSpeechRecognitionResultList.JSClassName: UnicodeString;
  120990. begin
  120991. Result:='SpeechRecognitionResultList';
  120992. end;
  120993. class function TJSSpeechRecognitionResultList.Cast(const Intf: IJSObject): IJSSpeechRecognitionResultList;
  120994. begin
  120995. Result:=TJSSpeechRecognitionResultList.JOBCast(Intf);
  120996. end;
  120997. function TJSSpeechSynthesis._Getpending: Boolean;
  120998. begin
  120999. Result:=ReadJSPropertyBoolean('pending');
  121000. end;
  121001. function TJSSpeechSynthesis._Getspeaking: Boolean;
  121002. begin
  121003. Result:=ReadJSPropertyBoolean('speaking');
  121004. end;
  121005. function TJSSpeechSynthesis._Getpaused: Boolean;
  121006. begin
  121007. Result:=ReadJSPropertyBoolean('paused');
  121008. end;
  121009. function TJSSpeechSynthesis._Getonvoiceschanged: TEventHandler;
  121010. begin
  121011. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvoiceschanged')));
  121012. end;
  121013. procedure TJSSpeechSynthesis._Setonvoiceschanged(const aValue : TEventHandler);
  121014. begin
  121015. WriteJSPropertyMethod('onvoiceschanged',TMethod(aValue));
  121016. end;
  121017. procedure TJSSpeechSynthesis.speak(aUtterance: IJSSpeechSynthesisUtterance);
  121018. begin
  121019. InvokeJSNoResult('speak',[aUtterance]);
  121020. end;
  121021. procedure TJSSpeechSynthesis.cancel;
  121022. begin
  121023. InvokeJSNoResult('cancel',[]);
  121024. end;
  121025. procedure TJSSpeechSynthesis.pause;
  121026. begin
  121027. InvokeJSNoResult('pause',[]);
  121028. end;
  121029. procedure TJSSpeechSynthesis.resume;
  121030. begin
  121031. InvokeJSNoResult('resume',[]);
  121032. end;
  121033. function TJSSpeechSynthesis.getVoices: TJSSpeechSynthesisVoiceDynArray;
  121034. begin
  121035. Result:=InvokeJSObjectResult('getVoices',[],TJSArray) as TJSSpeechSynthesisVoiceDynArray;
  121036. end;
  121037. class function TJSSpeechSynthesis.JSClassName: UnicodeString;
  121038. begin
  121039. Result:='SpeechSynthesis';
  121040. end;
  121041. class function TJSSpeechSynthesis.Cast(const Intf: IJSObject): IJSSpeechSynthesis;
  121042. begin
  121043. Result:=TJSSpeechSynthesis.JOBCast(Intf);
  121044. end;
  121045. function TJSSpeechSynthesisErrorEvent._Geterror: TSpeechSynthesisErrorCode;
  121046. begin
  121047. Result:=ReadJSPropertyUnicodeString('error');
  121048. end;
  121049. constructor TJSSpeechSynthesisErrorEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSSpeechSynthesisErrorEventInit);
  121050. begin
  121051. JOBCreate([aType_,aEventInitDict]);
  121052. end;
  121053. class function TJSSpeechSynthesisErrorEvent.JSClassName: UnicodeString;
  121054. begin
  121055. Result:='SpeechSynthesisErrorEvent';
  121056. end;
  121057. class function TJSSpeechSynthesisErrorEvent.Cast(const Intf: IJSObject): IJSSpeechSynthesisErrorEvent;
  121058. begin
  121059. Result:=TJSSpeechSynthesisErrorEvent.JOBCast(Intf);
  121060. end;
  121061. function TJSSpeechSynthesisErrorEventInit._Geterror: TSpeechSynthesisErrorCode;
  121062. begin
  121063. Result:=ReadJSPropertyUnicodeString('error');
  121064. end;
  121065. procedure TJSSpeechSynthesisErrorEventInit._Seterror(const aValue : TSpeechSynthesisErrorCode);
  121066. begin
  121067. WriteJSPropertyUnicodeString('error',aValue);
  121068. end;
  121069. class function TJSSpeechSynthesisErrorEventInit.JSClassName: UnicodeString;
  121070. begin
  121071. Result:='Object';
  121072. end;
  121073. class function TJSSpeechSynthesisErrorEventInit.Cast(const Intf: IJSObject): IJSSpeechSynthesisErrorEventInit;
  121074. begin
  121075. Result:=TJSSpeechSynthesisErrorEventInit.JOBCast(Intf);
  121076. end;
  121077. function TJSSpeechSynthesisEvent._Getutterance: IJSSpeechSynthesisUtterance;
  121078. begin
  121079. Result:=ReadJSPropertyObject('utterance',TJSSpeechSynthesisUtterance) as IJSSpeechSynthesisUtterance;
  121080. end;
  121081. function TJSSpeechSynthesisEvent._GetcharIndex: Cardinal;
  121082. begin
  121083. Result:=ReadJSPropertyInt64('charIndex');
  121084. end;
  121085. function TJSSpeechSynthesisEvent._GetcharLength: Cardinal;
  121086. begin
  121087. Result:=ReadJSPropertyInt64('charLength');
  121088. end;
  121089. function TJSSpeechSynthesisEvent._GetelapsedTime: Single;
  121090. begin
  121091. Result:=ReadJSPropertyDouble('elapsedTime');
  121092. end;
  121093. function TJSSpeechSynthesisEvent._Getname: UnicodeString;
  121094. begin
  121095. Result:=ReadJSPropertyUnicodeString('name');
  121096. end;
  121097. constructor TJSSpeechSynthesisEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSSpeechSynthesisEventInit);
  121098. begin
  121099. JOBCreate([aType_,aEventInitDict]);
  121100. end;
  121101. class function TJSSpeechSynthesisEvent.JSClassName: UnicodeString;
  121102. begin
  121103. Result:='SpeechSynthesisEvent';
  121104. end;
  121105. class function TJSSpeechSynthesisEvent.Cast(const Intf: IJSObject): IJSSpeechSynthesisEvent;
  121106. begin
  121107. Result:=TJSSpeechSynthesisEvent.JOBCast(Intf);
  121108. end;
  121109. function TJSSpeechSynthesisEventInit._Getutterance: IJSSpeechSynthesisUtterance;
  121110. begin
  121111. Result:=ReadJSPropertyObject('utterance',TJSSpeechSynthesisUtterance) as IJSSpeechSynthesisUtterance;
  121112. end;
  121113. function TJSSpeechSynthesisEventInit._GetcharIndex: Cardinal;
  121114. begin
  121115. Result:=ReadJSPropertyInt64('charIndex');
  121116. end;
  121117. function TJSSpeechSynthesisEventInit._GetcharLength: Cardinal;
  121118. begin
  121119. Result:=ReadJSPropertyInt64('charLength');
  121120. end;
  121121. function TJSSpeechSynthesisEventInit._GetelapsedTime: Single;
  121122. begin
  121123. Result:=ReadJSPropertyDouble('elapsedTime');
  121124. end;
  121125. function TJSSpeechSynthesisEventInit._Getname: UnicodeString;
  121126. begin
  121127. Result:=ReadJSPropertyUnicodeString('name');
  121128. end;
  121129. procedure TJSSpeechSynthesisEventInit._Setutterance(const aValue : IJSSpeechSynthesisUtterance);
  121130. begin
  121131. WriteJSPropertyObject('utterance',aValue);
  121132. end;
  121133. procedure TJSSpeechSynthesisEventInit._SetcharIndex(const aValue : Cardinal);
  121134. begin
  121135. WriteJSPropertyDouble('charIndex',aValue);
  121136. end;
  121137. procedure TJSSpeechSynthesisEventInit._SetcharLength(const aValue : Cardinal);
  121138. begin
  121139. WriteJSPropertyDouble('charLength',aValue);
  121140. end;
  121141. procedure TJSSpeechSynthesisEventInit._SetelapsedTime(const aValue : Single);
  121142. begin
  121143. WriteJSPropertyDouble('elapsedTime',aValue);
  121144. end;
  121145. procedure TJSSpeechSynthesisEventInit._Setname(const aValue : UnicodeString);
  121146. begin
  121147. WriteJSPropertyUnicodeString('name',aValue);
  121148. end;
  121149. class function TJSSpeechSynthesisEventInit.JSClassName: UnicodeString;
  121150. begin
  121151. Result:='Object';
  121152. end;
  121153. class function TJSSpeechSynthesisEventInit.Cast(const Intf: IJSObject): IJSSpeechSynthesisEventInit;
  121154. begin
  121155. Result:=TJSSpeechSynthesisEventInit.JOBCast(Intf);
  121156. end;
  121157. function TJSSpeechSynthesisUtterance._Gettext: UnicodeString;
  121158. begin
  121159. Result:=ReadJSPropertyUnicodeString('text');
  121160. end;
  121161. function TJSSpeechSynthesisUtterance._Getlang: UnicodeString;
  121162. begin
  121163. Result:=ReadJSPropertyUnicodeString('lang');
  121164. end;
  121165. function TJSSpeechSynthesisUtterance._Getvoice: IJSSpeechSynthesisVoice;
  121166. begin
  121167. Result:=ReadJSPropertyObject('voice',TJSSpeechSynthesisVoice) as IJSSpeechSynthesisVoice;
  121168. end;
  121169. function TJSSpeechSynthesisUtterance._Getvolume: Single;
  121170. begin
  121171. Result:=ReadJSPropertyDouble('volume');
  121172. end;
  121173. function TJSSpeechSynthesisUtterance._Getrate: Single;
  121174. begin
  121175. Result:=ReadJSPropertyDouble('rate');
  121176. end;
  121177. function TJSSpeechSynthesisUtterance._Getpitch: Single;
  121178. begin
  121179. Result:=ReadJSPropertyDouble('pitch');
  121180. end;
  121181. function TJSSpeechSynthesisUtterance._Getonstart: TEventHandler;
  121182. begin
  121183. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstart')));
  121184. end;
  121185. function TJSSpeechSynthesisUtterance._Getonend: TEventHandler;
  121186. begin
  121187. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onend')));
  121188. end;
  121189. function TJSSpeechSynthesisUtterance._Getonerror: TEventHandler;
  121190. begin
  121191. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  121192. end;
  121193. function TJSSpeechSynthesisUtterance._Getonpause: TEventHandler;
  121194. begin
  121195. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpause')));
  121196. end;
  121197. function TJSSpeechSynthesisUtterance._Getonresume: TEventHandler;
  121198. begin
  121199. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresume')));
  121200. end;
  121201. function TJSSpeechSynthesisUtterance._Getonmark: TEventHandler;
  121202. begin
  121203. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmark')));
  121204. end;
  121205. function TJSSpeechSynthesisUtterance._Getonboundary: TEventHandler;
  121206. begin
  121207. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onboundary')));
  121208. end;
  121209. procedure TJSSpeechSynthesisUtterance._Settext(const aValue : UnicodeString);
  121210. begin
  121211. WriteJSPropertyUnicodeString('text',aValue);
  121212. end;
  121213. procedure TJSSpeechSynthesisUtterance._Setlang(const aValue : UnicodeString);
  121214. begin
  121215. WriteJSPropertyUnicodeString('lang',aValue);
  121216. end;
  121217. procedure TJSSpeechSynthesisUtterance._Setvoice(const aValue : IJSSpeechSynthesisVoice);
  121218. begin
  121219. WriteJSPropertyObject('voice',aValue);
  121220. end;
  121221. procedure TJSSpeechSynthesisUtterance._Setvolume(const aValue : Single);
  121222. begin
  121223. WriteJSPropertyDouble('volume',aValue);
  121224. end;
  121225. procedure TJSSpeechSynthesisUtterance._Setrate(const aValue : Single);
  121226. begin
  121227. WriteJSPropertyDouble('rate',aValue);
  121228. end;
  121229. procedure TJSSpeechSynthesisUtterance._Setpitch(const aValue : Single);
  121230. begin
  121231. WriteJSPropertyDouble('pitch',aValue);
  121232. end;
  121233. procedure TJSSpeechSynthesisUtterance._Setonstart(const aValue : TEventHandler);
  121234. begin
  121235. WriteJSPropertyMethod('onstart',TMethod(aValue));
  121236. end;
  121237. procedure TJSSpeechSynthesisUtterance._Setonend(const aValue : TEventHandler);
  121238. begin
  121239. WriteJSPropertyMethod('onend',TMethod(aValue));
  121240. end;
  121241. procedure TJSSpeechSynthesisUtterance._Setonerror(const aValue : TEventHandler);
  121242. begin
  121243. WriteJSPropertyMethod('onerror',TMethod(aValue));
  121244. end;
  121245. procedure TJSSpeechSynthesisUtterance._Setonpause(const aValue : TEventHandler);
  121246. begin
  121247. WriteJSPropertyMethod('onpause',TMethod(aValue));
  121248. end;
  121249. procedure TJSSpeechSynthesisUtterance._Setonresume(const aValue : TEventHandler);
  121250. begin
  121251. WriteJSPropertyMethod('onresume',TMethod(aValue));
  121252. end;
  121253. procedure TJSSpeechSynthesisUtterance._Setonmark(const aValue : TEventHandler);
  121254. begin
  121255. WriteJSPropertyMethod('onmark',TMethod(aValue));
  121256. end;
  121257. procedure TJSSpeechSynthesisUtterance._Setonboundary(const aValue : TEventHandler);
  121258. begin
  121259. WriteJSPropertyMethod('onboundary',TMethod(aValue));
  121260. end;
  121261. constructor TJSSpeechSynthesisUtterance.Create;
  121262. begin
  121263. JOBCreate([]);
  121264. end;
  121265. constructor TJSSpeechSynthesisUtterance.Create(const aText: UnicodeString);
  121266. begin
  121267. JOBCreate([aText]);
  121268. end;
  121269. class function TJSSpeechSynthesisUtterance.JSClassName: UnicodeString;
  121270. begin
  121271. Result:='SpeechSynthesisUtterance';
  121272. end;
  121273. class function TJSSpeechSynthesisUtterance.Cast(const Intf: IJSObject): IJSSpeechSynthesisUtterance;
  121274. begin
  121275. Result:=TJSSpeechSynthesisUtterance.JOBCast(Intf);
  121276. end;
  121277. function TJSSpeechSynthesisVoice._GetvoiceURI: UnicodeString;
  121278. begin
  121279. Result:=ReadJSPropertyUnicodeString('voiceURI');
  121280. end;
  121281. function TJSSpeechSynthesisVoice._Getname: UnicodeString;
  121282. begin
  121283. Result:=ReadJSPropertyUnicodeString('name');
  121284. end;
  121285. function TJSSpeechSynthesisVoice._Getlang: UnicodeString;
  121286. begin
  121287. Result:=ReadJSPropertyUnicodeString('lang');
  121288. end;
  121289. function TJSSpeechSynthesisVoice._GetlocalService: Boolean;
  121290. begin
  121291. Result:=ReadJSPropertyBoolean('localService');
  121292. end;
  121293. function TJSSpeechSynthesisVoice._Getdefault: Boolean;
  121294. begin
  121295. Result:=ReadJSPropertyBoolean('default');
  121296. end;
  121297. class function TJSSpeechSynthesisVoice.JSClassName: UnicodeString;
  121298. begin
  121299. Result:='SpeechSynthesisVoice';
  121300. end;
  121301. class function TJSSpeechSynthesisVoice.Cast(const Intf: IJSObject): IJSSpeechSynthesisVoice;
  121302. begin
  121303. Result:=TJSSpeechSynthesisVoice.JOBCast(Intf);
  121304. end;
  121305. constructor TJSStaticRange.Create(const aInit: TJSStaticRangeInit);
  121306. begin
  121307. JOBCreate([aInit]);
  121308. end;
  121309. class function TJSStaticRange.JSClassName: UnicodeString;
  121310. begin
  121311. Result:='StaticRange';
  121312. end;
  121313. class function TJSStaticRange.Cast(const Intf: IJSObject): IJSStaticRange;
  121314. begin
  121315. Result:=TJSStaticRange.JOBCast(Intf);
  121316. end;
  121317. function TJSStaticRangeInit._GetstartContainer: IJSNode;
  121318. begin
  121319. Result:=ReadJSPropertyObject('startContainer',TJSNode) as IJSNode;
  121320. end;
  121321. function TJSStaticRangeInit._GetstartOffset: Cardinal;
  121322. begin
  121323. Result:=ReadJSPropertyInt64('startOffset');
  121324. end;
  121325. function TJSStaticRangeInit._GetendContainer: IJSNode;
  121326. begin
  121327. Result:=ReadJSPropertyObject('endContainer',TJSNode) as IJSNode;
  121328. end;
  121329. function TJSStaticRangeInit._GetendOffset: Cardinal;
  121330. begin
  121331. Result:=ReadJSPropertyInt64('endOffset');
  121332. end;
  121333. procedure TJSStaticRangeInit._SetstartContainer(const aValue : IJSNode);
  121334. begin
  121335. WriteJSPropertyObject('startContainer',aValue);
  121336. end;
  121337. procedure TJSStaticRangeInit._SetstartOffset(const aValue : Cardinal);
  121338. begin
  121339. WriteJSPropertyDouble('startOffset',aValue);
  121340. end;
  121341. procedure TJSStaticRangeInit._SetendContainer(const aValue : IJSNode);
  121342. begin
  121343. WriteJSPropertyObject('endContainer',aValue);
  121344. end;
  121345. procedure TJSStaticRangeInit._SetendOffset(const aValue : Cardinal);
  121346. begin
  121347. WriteJSPropertyDouble('endOffset',aValue);
  121348. end;
  121349. class function TJSStaticRangeInit.JSClassName: UnicodeString;
  121350. begin
  121351. Result:='Object';
  121352. end;
  121353. class function TJSStaticRangeInit.Cast(const Intf: IJSObject): IJSStaticRangeInit;
  121354. begin
  121355. Result:=TJSStaticRangeInit.JOBCast(Intf);
  121356. end;
  121357. function TJSStereoPannerOptions._Getpan: Single;
  121358. begin
  121359. Result:=ReadJSPropertyDouble('pan');
  121360. end;
  121361. procedure TJSStereoPannerOptions._Setpan(const aValue : Single);
  121362. begin
  121363. WriteJSPropertyDouble('pan',aValue);
  121364. end;
  121365. class function TJSStereoPannerOptions.JSClassName: UnicodeString;
  121366. begin
  121367. Result:='Object';
  121368. end;
  121369. class function TJSStereoPannerOptions.Cast(const Intf: IJSObject): IJSStereoPannerOptions;
  121370. begin
  121371. Result:=TJSStereoPannerOptions.JOBCast(Intf);
  121372. end;
  121373. function TJSStereoPannerNode._Getpan: IJSAudioParam;
  121374. begin
  121375. Result:=ReadJSPropertyObject('pan',TJSAudioParam) as IJSAudioParam;
  121376. end;
  121377. constructor TJSStereoPannerNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSStereoPannerOptions);
  121378. begin
  121379. JOBCreate([aContext,aOptions]);
  121380. end;
  121381. constructor TJSStereoPannerNode.Create(aContext: IJSBaseAudioContext);
  121382. begin
  121383. JOBCreate([aContext]);
  121384. end;
  121385. class function TJSStereoPannerNode.JSClassName: UnicodeString;
  121386. begin
  121387. Result:='StereoPannerNode';
  121388. end;
  121389. class function TJSStereoPannerNode.Cast(const Intf: IJSObject): IJSStereoPannerNode;
  121390. begin
  121391. Result:=TJSStereoPannerNode.JOBCast(Intf);
  121392. end;
  121393. function TJSStorage._Getlength_: Cardinal;
  121394. begin
  121395. Result:=ReadJSPropertyInt64('length');
  121396. end;
  121397. function TJSStorage._GethasSnapshot: Boolean;
  121398. begin
  121399. Result:=ReadJSPropertyBoolean('hasSnapshot');
  121400. end;
  121401. function TJSStorage._GetsnapshotUsage: Int64;
  121402. begin
  121403. Result:=ReadJSPropertyInt64('snapshotUsage');
  121404. end;
  121405. function TJSStorage.key(aIndex: Cardinal): UnicodeString;
  121406. begin
  121407. Result:=InvokeJSUnicodeStringResult('key',[aIndex]);
  121408. end;
  121409. function TJSStorage.getItem(const aKey: UnicodeString): UnicodeString;
  121410. begin
  121411. Result:=InvokeJSUnicodeStringResult('getItem',[aKey]);
  121412. end;
  121413. procedure TJSStorage.setItem(const aKey: UnicodeString; const aValue: UnicodeString);
  121414. begin
  121415. InvokeJSNoResult('setItem',[aKey,aValue]);
  121416. end;
  121417. procedure TJSStorage.removeItem(const aKey: UnicodeString);
  121418. begin
  121419. InvokeJSNoResult('removeItem',[aKey]);
  121420. end;
  121421. procedure TJSStorage.clear;
  121422. begin
  121423. InvokeJSNoResult('clear',[]);
  121424. end;
  121425. procedure TJSStorage.open;
  121426. begin
  121427. InvokeJSNoResult('open',[]);
  121428. end;
  121429. procedure TJSStorage.close;
  121430. begin
  121431. InvokeJSNoResult('close',[]);
  121432. end;
  121433. procedure TJSStorage.beginExplicitSnapshot;
  121434. begin
  121435. InvokeJSNoResult('beginExplicitSnapshot',[]);
  121436. end;
  121437. procedure TJSStorage.checkpointExplicitSnapshot;
  121438. begin
  121439. InvokeJSNoResult('checkpointExplicitSnapshot',[]);
  121440. end;
  121441. procedure TJSStorage.endExplicitSnapshot;
  121442. begin
  121443. InvokeJSNoResult('endExplicitSnapshot',[]);
  121444. end;
  121445. class function TJSStorage.JSClassName: UnicodeString;
  121446. begin
  121447. Result:='Storage';
  121448. end;
  121449. class function TJSStorage.Cast(const Intf: IJSObject): IJSStorage;
  121450. begin
  121451. Result:=TJSStorage.JOBCast(Intf);
  121452. end;
  121453. function TJSStorageEvent._Getkey: UnicodeString;
  121454. begin
  121455. Result:=ReadJSPropertyUnicodeString('key');
  121456. end;
  121457. function TJSStorageEvent._GetoldValue: UnicodeString;
  121458. begin
  121459. Result:=ReadJSPropertyUnicodeString('oldValue');
  121460. end;
  121461. function TJSStorageEvent._GetnewValue: UnicodeString;
  121462. begin
  121463. Result:=ReadJSPropertyUnicodeString('newValue');
  121464. end;
  121465. function TJSStorageEvent._Geturl: UnicodeString;
  121466. begin
  121467. Result:=ReadJSPropertyUnicodeString('url');
  121468. end;
  121469. function TJSStorageEvent._GetstorageArea: IJSStorage;
  121470. begin
  121471. Result:=ReadJSPropertyObject('storageArea',TJSStorage) as IJSStorage;
  121472. end;
  121473. constructor TJSStorageEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSStorageEventInit);
  121474. begin
  121475. JOBCreate([aType_,aEventInitDict]);
  121476. end;
  121477. constructor TJSStorageEvent.Create(const aType_: UnicodeString);
  121478. begin
  121479. JOBCreate([aType_]);
  121480. end;
  121481. procedure TJSStorageEvent.initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString; const aNewValue: UnicodeString; const aUrl: UnicodeString; aStorageArea: IJSStorage);
  121482. begin
  121483. InvokeJSNoResult('initStorageEvent',[aType_,aCanBubble,aCancelable,aKey,aOldValue,aNewValue,aUrl,aStorageArea]);
  121484. end;
  121485. procedure TJSStorageEvent.initStorageEvent(const aType_: UnicodeString);
  121486. begin
  121487. InvokeJSNoResult('initStorageEvent',[aType_]);
  121488. end;
  121489. procedure TJSStorageEvent.initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  121490. begin
  121491. InvokeJSNoResult('initStorageEvent',[aType_,aCanBubble]);
  121492. end;
  121493. procedure TJSStorageEvent.initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  121494. begin
  121495. InvokeJSNoResult('initStorageEvent',[aType_,aCanBubble,aCancelable]);
  121496. end;
  121497. procedure TJSStorageEvent.initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString);
  121498. begin
  121499. InvokeJSNoResult('initStorageEvent',[aType_,aCanBubble,aCancelable,aKey]);
  121500. end;
  121501. procedure TJSStorageEvent.initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString);
  121502. begin
  121503. InvokeJSNoResult('initStorageEvent',[aType_,aCanBubble,aCancelable,aKey,aOldValue]);
  121504. end;
  121505. procedure TJSStorageEvent.initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString; const aNewValue: UnicodeString);
  121506. begin
  121507. InvokeJSNoResult('initStorageEvent',[aType_,aCanBubble,aCancelable,aKey,aOldValue,aNewValue]);
  121508. end;
  121509. procedure TJSStorageEvent.initStorageEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; const aKey: UnicodeString; const aOldValue: UnicodeString; const aNewValue: UnicodeString; const aUrl: UnicodeString);
  121510. begin
  121511. InvokeJSNoResult('initStorageEvent',[aType_,aCanBubble,aCancelable,aKey,aOldValue,aNewValue,aUrl]);
  121512. end;
  121513. class function TJSStorageEvent.JSClassName: UnicodeString;
  121514. begin
  121515. Result:='StorageEvent';
  121516. end;
  121517. class function TJSStorageEvent.Cast(const Intf: IJSObject): IJSStorageEvent;
  121518. begin
  121519. Result:=TJSStorageEvent.JOBCast(Intf);
  121520. end;
  121521. function TJSStorageEventInit._Getkey: UnicodeString;
  121522. begin
  121523. Result:=ReadJSPropertyUnicodeString('key');
  121524. end;
  121525. function TJSStorageEventInit._GetoldValue: UnicodeString;
  121526. begin
  121527. Result:=ReadJSPropertyUnicodeString('oldValue');
  121528. end;
  121529. function TJSStorageEventInit._GetnewValue: UnicodeString;
  121530. begin
  121531. Result:=ReadJSPropertyUnicodeString('newValue');
  121532. end;
  121533. function TJSStorageEventInit._Geturl: UnicodeString;
  121534. begin
  121535. Result:=ReadJSPropertyUnicodeString('url');
  121536. end;
  121537. function TJSStorageEventInit._GetstorageArea: IJSStorage;
  121538. begin
  121539. Result:=ReadJSPropertyObject('storageArea',TJSStorage) as IJSStorage;
  121540. end;
  121541. procedure TJSStorageEventInit._Setkey(const aValue : UnicodeString);
  121542. begin
  121543. WriteJSPropertyUnicodeString('key',aValue);
  121544. end;
  121545. procedure TJSStorageEventInit._SetoldValue(const aValue : UnicodeString);
  121546. begin
  121547. WriteJSPropertyUnicodeString('oldValue',aValue);
  121548. end;
  121549. procedure TJSStorageEventInit._SetnewValue(const aValue : UnicodeString);
  121550. begin
  121551. WriteJSPropertyUnicodeString('newValue',aValue);
  121552. end;
  121553. procedure TJSStorageEventInit._Seturl(const aValue : UnicodeString);
  121554. begin
  121555. WriteJSPropertyUnicodeString('url',aValue);
  121556. end;
  121557. procedure TJSStorageEventInit._SetstorageArea(const aValue : IJSStorage);
  121558. begin
  121559. WriteJSPropertyObject('storageArea',aValue);
  121560. end;
  121561. class function TJSStorageEventInit.JSClassName: UnicodeString;
  121562. begin
  121563. Result:='Object';
  121564. end;
  121565. class function TJSStorageEventInit.Cast(const Intf: IJSObject): IJSStorageEventInit;
  121566. begin
  121567. Result:=TJSStorageEventInit.JOBCast(Intf);
  121568. end;
  121569. function TJSStorageManager.persisted: IJSPromise; // Promise<boolean>
  121570. begin
  121571. Result:=InvokeJSObjectResult('persisted',[],TJSPromise) as IJSPromise;
  121572. end;
  121573. function TJSStorageManager.persist: IJSPromise; // Promise<boolean>
  121574. begin
  121575. Result:=InvokeJSObjectResult('persist',[],TJSPromise) as IJSPromise;
  121576. end;
  121577. function TJSStorageManager.estimate: IJSPromise; // Promise<StorageEstimate>
  121578. begin
  121579. Result:=InvokeJSObjectResult('estimate',[],TJSPromise) as IJSPromise;
  121580. end;
  121581. function TJSStorageManager.getDirectory: IJSPromise; // Promise<FileSystemDirectoryHandle>
  121582. begin
  121583. Result:=InvokeJSObjectResult('getDirectory',[],TJSPromise) as IJSPromise;
  121584. end;
  121585. class function TJSStorageManager.JSClassName: UnicodeString;
  121586. begin
  121587. Result:='StorageManager';
  121588. end;
  121589. class function TJSStorageManager.Cast(const Intf: IJSObject): IJSStorageManager;
  121590. begin
  121591. Result:=TJSStorageManager.JOBCast(Intf);
  121592. end;
  121593. function TJSStorageEstimate._Getusage: QWord;
  121594. begin
  121595. Result:=ReadJSPropertyInt64('usage');
  121596. end;
  121597. function TJSStorageEstimate._Getquota: QWord;
  121598. begin
  121599. Result:=ReadJSPropertyInt64('quota');
  121600. end;
  121601. procedure TJSStorageEstimate._Setusage(const aValue : QWord);
  121602. begin
  121603. WriteJSPropertyDouble('usage',aValue);
  121604. end;
  121605. procedure TJSStorageEstimate._Setquota(const aValue : QWord);
  121606. begin
  121607. WriteJSPropertyDouble('quota',aValue);
  121608. end;
  121609. class function TJSStorageEstimate.JSClassName: UnicodeString;
  121610. begin
  121611. Result:='Object';
  121612. end;
  121613. class function TJSStorageEstimate.Cast(const Intf: IJSObject): IJSStorageEstimate;
  121614. begin
  121615. Result:=TJSStorageEstimate.JOBCast(Intf);
  121616. end;
  121617. function TJSStreamFilter._Getstatus: TStreamFilterStatus;
  121618. begin
  121619. Result:=ReadJSPropertyUnicodeString('status');
  121620. end;
  121621. function TJSStreamFilter._Geterror: UnicodeString;
  121622. begin
  121623. Result:=ReadJSPropertyUnicodeString('error');
  121624. end;
  121625. function TJSStreamFilter._Getondata: TEventHandler;
  121626. begin
  121627. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondata')));
  121628. end;
  121629. function TJSStreamFilter._Getonstart: TEventHandler;
  121630. begin
  121631. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstart')));
  121632. end;
  121633. function TJSStreamFilter._Getonstop: TEventHandler;
  121634. begin
  121635. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstop')));
  121636. end;
  121637. function TJSStreamFilter._Getonerror: TEventHandler;
  121638. begin
  121639. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  121640. end;
  121641. procedure TJSStreamFilter._Setondata(const aValue : TEventHandler);
  121642. begin
  121643. WriteJSPropertyMethod('ondata',TMethod(aValue));
  121644. end;
  121645. procedure TJSStreamFilter._Setonstart(const aValue : TEventHandler);
  121646. begin
  121647. WriteJSPropertyMethod('onstart',TMethod(aValue));
  121648. end;
  121649. procedure TJSStreamFilter._Setonstop(const aValue : TEventHandler);
  121650. begin
  121651. WriteJSPropertyMethod('onstop',TMethod(aValue));
  121652. end;
  121653. procedure TJSStreamFilter._Setonerror(const aValue : TEventHandler);
  121654. begin
  121655. WriteJSPropertyMethod('onerror',TMethod(aValue));
  121656. end;
  121657. procedure TJSStreamFilter.suspend;
  121658. begin
  121659. InvokeJSNoResult('suspend',[]);
  121660. end;
  121661. procedure TJSStreamFilter.resume;
  121662. begin
  121663. InvokeJSNoResult('resume',[]);
  121664. end;
  121665. procedure TJSStreamFilter.close;
  121666. begin
  121667. InvokeJSNoResult('close',[]);
  121668. end;
  121669. procedure TJSStreamFilter.disconnect;
  121670. begin
  121671. InvokeJSNoResult('disconnect',[]);
  121672. end;
  121673. procedure TJSStreamFilter.write(aData: IJSArrayBuffer);
  121674. begin
  121675. InvokeJSNoResult('write',[aData]);
  121676. end;
  121677. procedure TJSStreamFilter.write(aData: IJSUint8Array);
  121678. begin
  121679. InvokeJSNoResult('write',[aData]);
  121680. end;
  121681. class function TJSStreamFilter.JSClassName: UnicodeString;
  121682. begin
  121683. Result:='StreamFilter';
  121684. end;
  121685. class function TJSStreamFilter.Cast(const Intf: IJSObject): IJSStreamFilter;
  121686. begin
  121687. Result:=TJSStreamFilter.JOBCast(Intf);
  121688. end;
  121689. function TJSStreamFilterDataEvent._Getdata: IJSArrayBuffer;
  121690. begin
  121691. Result:=ReadJSPropertyObject('data',TJSArrayBuffer) as IJSArrayBuffer;
  121692. end;
  121693. constructor TJSStreamFilterDataEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSStreamFilterDataEventInit);
  121694. begin
  121695. JOBCreate([aType_,aEventInitDict]);
  121696. end;
  121697. constructor TJSStreamFilterDataEvent.Create(const aType_: UnicodeString);
  121698. begin
  121699. JOBCreate([aType_]);
  121700. end;
  121701. class function TJSStreamFilterDataEvent.JSClassName: UnicodeString;
  121702. begin
  121703. Result:='StreamFilterDataEvent';
  121704. end;
  121705. class function TJSStreamFilterDataEvent.Cast(const Intf: IJSObject): IJSStreamFilterDataEvent;
  121706. begin
  121707. Result:=TJSStreamFilterDataEvent.JOBCast(Intf);
  121708. end;
  121709. function TJSStreamFilterDataEventInit._Getdata: IJSArrayBuffer;
  121710. begin
  121711. Result:=ReadJSPropertyObject('data',TJSArrayBuffer) as IJSArrayBuffer;
  121712. end;
  121713. procedure TJSStreamFilterDataEventInit._Setdata(const aValue : IJSArrayBuffer);
  121714. begin
  121715. WriteJSPropertyObject('data',aValue);
  121716. end;
  121717. class function TJSStreamFilterDataEventInit.JSClassName: UnicodeString;
  121718. begin
  121719. Result:='Object';
  121720. end;
  121721. class function TJSStreamFilterDataEventInit.Cast(const Intf: IJSObject): IJSStreamFilterDataEventInit;
  121722. begin
  121723. Result:=TJSStreamFilterDataEventInit.JOBCast(Intf);
  121724. end;
  121725. function TJSStructuredCloneTester._Getserializable: Boolean;
  121726. begin
  121727. Result:=ReadJSPropertyBoolean('serializable');
  121728. end;
  121729. function TJSStructuredCloneTester._Getdeserializable: Boolean;
  121730. begin
  121731. Result:=ReadJSPropertyBoolean('deserializable');
  121732. end;
  121733. constructor TJSStructuredCloneTester.Create(aSerializable: Boolean; aDeserializable: Boolean);
  121734. begin
  121735. JOBCreate([aSerializable,aDeserializable]);
  121736. end;
  121737. class function TJSStructuredCloneTester.JSClassName: UnicodeString;
  121738. begin
  121739. Result:='StructuredCloneTester';
  121740. end;
  121741. class function TJSStructuredCloneTester.Cast(const Intf: IJSObject): IJSStructuredCloneTester;
  121742. begin
  121743. Result:=TJSStructuredCloneTester.JOBCast(Intf);
  121744. end;
  121745. function TJSStyleSheet._Gettype_: UnicodeString;
  121746. begin
  121747. Result:=ReadJSPropertyUnicodeString('type');
  121748. end;
  121749. function TJSStyleSheet._Gethref: UnicodeString;
  121750. begin
  121751. Result:=ReadJSPropertyUnicodeString('href');
  121752. end;
  121753. function TJSStyleSheet._GetownerNode: IJSNode;
  121754. begin
  121755. Result:=ReadJSPropertyObject('ownerNode',TJSNode) as IJSNode;
  121756. end;
  121757. function TJSStyleSheet._GetparentStyleSheet: IJSStyleSheet;
  121758. begin
  121759. Result:=ReadJSPropertyObject('parentStyleSheet',TJSStyleSheet) as IJSStyleSheet;
  121760. end;
  121761. function TJSStyleSheet._Gettitle: UnicodeString;
  121762. begin
  121763. Result:=ReadJSPropertyUnicodeString('title');
  121764. end;
  121765. function TJSStyleSheet._Getmedia: IJSMediaList;
  121766. begin
  121767. Result:=ReadJSPropertyObject('media',TJSMediaList) as IJSMediaList;
  121768. end;
  121769. function TJSStyleSheet._Getdisabled: Boolean;
  121770. begin
  121771. Result:=ReadJSPropertyBoolean('disabled');
  121772. end;
  121773. procedure TJSStyleSheet._Setdisabled(const aValue : Boolean);
  121774. begin
  121775. WriteJSPropertyBoolean('disabled',aValue);
  121776. end;
  121777. class function TJSStyleSheet.JSClassName: UnicodeString;
  121778. begin
  121779. Result:='StyleSheet';
  121780. end;
  121781. class function TJSStyleSheet.Cast(const Intf: IJSObject): IJSStyleSheet;
  121782. begin
  121783. Result:=TJSStyleSheet.JOBCast(Intf);
  121784. end;
  121785. function TJSStyleSheetList._Getlength_: Cardinal;
  121786. begin
  121787. Result:=ReadJSPropertyInt64('length');
  121788. end;
  121789. function TJSStyleSheetList.item(aIndex: Cardinal): IJSCSSStyleSheet;
  121790. begin
  121791. Result:=InvokeJSObjectResult('item',[aIndex],TJSCSSStyleSheet) as IJSCSSStyleSheet;
  121792. end;
  121793. class function TJSStyleSheetList.JSClassName: UnicodeString;
  121794. begin
  121795. Result:='StyleSheetList';
  121796. end;
  121797. class function TJSStyleSheetList.Cast(const Intf: IJSObject): IJSStyleSheetList;
  121798. begin
  121799. Result:=TJSStyleSheetList.JOBCast(Intf);
  121800. end;
  121801. function TJSSubmitEvent._Getsubmitter: IJSHTMLElement;
  121802. begin
  121803. Result:=ReadJSPropertyObject('submitter',TJSHTMLElement) as IJSHTMLElement;
  121804. end;
  121805. constructor TJSSubmitEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSSubmitEventInit);
  121806. begin
  121807. JOBCreate([aType_,aEventInitDict]);
  121808. end;
  121809. constructor TJSSubmitEvent.Create(const aType_: UnicodeString);
  121810. begin
  121811. JOBCreate([aType_]);
  121812. end;
  121813. class function TJSSubmitEvent.JSClassName: UnicodeString;
  121814. begin
  121815. Result:='SubmitEvent';
  121816. end;
  121817. class function TJSSubmitEvent.Cast(const Intf: IJSObject): IJSSubmitEvent;
  121818. begin
  121819. Result:=TJSSubmitEvent.JOBCast(Intf);
  121820. end;
  121821. function TJSSubmitEventInit._Getsubmitter: IJSHTMLElement;
  121822. begin
  121823. Result:=ReadJSPropertyObject('submitter',TJSHTMLElement) as IJSHTMLElement;
  121824. end;
  121825. procedure TJSSubmitEventInit._Setsubmitter(const aValue : IJSHTMLElement);
  121826. begin
  121827. WriteJSPropertyObject('submitter',aValue);
  121828. end;
  121829. class function TJSSubmitEventInit.JSClassName: UnicodeString;
  121830. begin
  121831. Result:='Object';
  121832. end;
  121833. class function TJSSubmitEventInit.Cast(const Intf: IJSObject): IJSSubmitEventInit;
  121834. begin
  121835. Result:=TJSSubmitEventInit.JOBCast(Intf);
  121836. end;
  121837. function TJSAlgorithm._Getname: UnicodeString;
  121838. begin
  121839. Result:=ReadJSPropertyUnicodeString('name');
  121840. end;
  121841. procedure TJSAlgorithm._Setname(const aValue : UnicodeString);
  121842. begin
  121843. WriteJSPropertyUnicodeString('name',aValue);
  121844. end;
  121845. class function TJSAlgorithm.JSClassName: UnicodeString;
  121846. begin
  121847. Result:='Object';
  121848. end;
  121849. class function TJSAlgorithm.Cast(const Intf: IJSObject): IJSAlgorithm;
  121850. begin
  121851. Result:=TJSAlgorithm.JOBCast(Intf);
  121852. end;
  121853. function TJSAesCbcParams._Getiv: IJSBufferSource;
  121854. begin
  121855. Result:=ReadJSPropertyObject('iv',TJSBufferSource) as IJSBufferSource;
  121856. end;
  121857. procedure TJSAesCbcParams._Setiv(const aValue : IJSBufferSource);
  121858. begin
  121859. WriteJSPropertyObject('iv',aValue);
  121860. end;
  121861. class function TJSAesCbcParams.JSClassName: UnicodeString;
  121862. begin
  121863. Result:='Object';
  121864. end;
  121865. class function TJSAesCbcParams.Cast(const Intf: IJSObject): IJSAesCbcParams;
  121866. begin
  121867. Result:=TJSAesCbcParams.JOBCast(Intf);
  121868. end;
  121869. function TJSAesCtrParams._Getcounter: IJSBufferSource;
  121870. begin
  121871. Result:=ReadJSPropertyObject('counter',TJSBufferSource) as IJSBufferSource;
  121872. end;
  121873. function TJSAesCtrParams._Getlength_: Byte;
  121874. begin
  121875. Result:=ReadJSPropertyLongInt('length');
  121876. end;
  121877. procedure TJSAesCtrParams._Setcounter(const aValue : IJSBufferSource);
  121878. begin
  121879. WriteJSPropertyObject('counter',aValue);
  121880. end;
  121881. procedure TJSAesCtrParams._Setlength_(const aValue : Byte);
  121882. begin
  121883. WriteJSPropertyLongInt('length',aValue);
  121884. end;
  121885. class function TJSAesCtrParams.JSClassName: UnicodeString;
  121886. begin
  121887. Result:='Object';
  121888. end;
  121889. class function TJSAesCtrParams.Cast(const Intf: IJSObject): IJSAesCtrParams;
  121890. begin
  121891. Result:=TJSAesCtrParams.JOBCast(Intf);
  121892. end;
  121893. function TJSAesGcmParams._Getiv: IJSBufferSource;
  121894. begin
  121895. Result:=ReadJSPropertyObject('iv',TJSBufferSource) as IJSBufferSource;
  121896. end;
  121897. function TJSAesGcmParams._GetadditionalData: IJSBufferSource;
  121898. begin
  121899. Result:=ReadJSPropertyObject('additionalData',TJSBufferSource) as IJSBufferSource;
  121900. end;
  121901. function TJSAesGcmParams._GettagLength: Byte;
  121902. begin
  121903. Result:=ReadJSPropertyLongInt('tagLength');
  121904. end;
  121905. procedure TJSAesGcmParams._Setiv(const aValue : IJSBufferSource);
  121906. begin
  121907. WriteJSPropertyObject('iv',aValue);
  121908. end;
  121909. procedure TJSAesGcmParams._SetadditionalData(const aValue : IJSBufferSource);
  121910. begin
  121911. WriteJSPropertyObject('additionalData',aValue);
  121912. end;
  121913. procedure TJSAesGcmParams._SettagLength(const aValue : Byte);
  121914. begin
  121915. WriteJSPropertyLongInt('tagLength',aValue);
  121916. end;
  121917. class function TJSAesGcmParams.JSClassName: UnicodeString;
  121918. begin
  121919. Result:='Object';
  121920. end;
  121921. class function TJSAesGcmParams.Cast(const Intf: IJSObject): IJSAesGcmParams;
  121922. begin
  121923. Result:=TJSAesGcmParams.JOBCast(Intf);
  121924. end;
  121925. function TJSHmacImportParams._Gethash: TAlgorithmIdentifier;
  121926. begin
  121927. Result:=ReadJSPropertyVariant('hash');
  121928. end;
  121929. procedure TJSHmacImportParams._Sethash(const aValue : TAlgorithmIdentifier);
  121930. begin
  121931. WriteJSPropertyVariant('hash',aValue);
  121932. end;
  121933. class function TJSHmacImportParams.JSClassName: UnicodeString;
  121934. begin
  121935. Result:='Object';
  121936. end;
  121937. class function TJSHmacImportParams.Cast(const Intf: IJSObject): IJSHmacImportParams;
  121938. begin
  121939. Result:=TJSHmacImportParams.JOBCast(Intf);
  121940. end;
  121941. function TJSPbkdf2Params._Getsalt: IJSBufferSource;
  121942. begin
  121943. Result:=ReadJSPropertyObject('salt',TJSBufferSource) as IJSBufferSource;
  121944. end;
  121945. function TJSPbkdf2Params._Getiterations: Cardinal;
  121946. begin
  121947. Result:=ReadJSPropertyInt64('iterations');
  121948. end;
  121949. function TJSPbkdf2Params._Gethash: TAlgorithmIdentifier;
  121950. begin
  121951. Result:=ReadJSPropertyVariant('hash');
  121952. end;
  121953. procedure TJSPbkdf2Params._Setsalt(const aValue : IJSBufferSource);
  121954. begin
  121955. WriteJSPropertyObject('salt',aValue);
  121956. end;
  121957. procedure TJSPbkdf2Params._Setiterations(const aValue : Cardinal);
  121958. begin
  121959. WriteJSPropertyDouble('iterations',aValue);
  121960. end;
  121961. procedure TJSPbkdf2Params._Sethash(const aValue : TAlgorithmIdentifier);
  121962. begin
  121963. WriteJSPropertyVariant('hash',aValue);
  121964. end;
  121965. class function TJSPbkdf2Params.JSClassName: UnicodeString;
  121966. begin
  121967. Result:='Object';
  121968. end;
  121969. class function TJSPbkdf2Params.Cast(const Intf: IJSObject): IJSPbkdf2Params;
  121970. begin
  121971. Result:=TJSPbkdf2Params.JOBCast(Intf);
  121972. end;
  121973. function TJSRsaHashedImportParams._Gethash: TAlgorithmIdentifier;
  121974. begin
  121975. Result:=ReadJSPropertyVariant('hash');
  121976. end;
  121977. procedure TJSRsaHashedImportParams._Sethash(const aValue : TAlgorithmIdentifier);
  121978. begin
  121979. WriteJSPropertyVariant('hash',aValue);
  121980. end;
  121981. class function TJSRsaHashedImportParams.JSClassName: UnicodeString;
  121982. begin
  121983. Result:='Object';
  121984. end;
  121985. class function TJSRsaHashedImportParams.Cast(const Intf: IJSObject): IJSRsaHashedImportParams;
  121986. begin
  121987. Result:=TJSRsaHashedImportParams.JOBCast(Intf);
  121988. end;
  121989. function TJSAesKeyGenParams._Getlength_: Word;
  121990. begin
  121991. Result:=ReadJSPropertyLongInt('length');
  121992. end;
  121993. procedure TJSAesKeyGenParams._Setlength_(const aValue : Word);
  121994. begin
  121995. WriteJSPropertyLongInt('length',aValue);
  121996. end;
  121997. class function TJSAesKeyGenParams.JSClassName: UnicodeString;
  121998. begin
  121999. Result:='Object';
  122000. end;
  122001. class function TJSAesKeyGenParams.Cast(const Intf: IJSObject): IJSAesKeyGenParams;
  122002. begin
  122003. Result:=TJSAesKeyGenParams.JOBCast(Intf);
  122004. end;
  122005. function TJSHmacKeyGenParams._Gethash: TAlgorithmIdentifier;
  122006. begin
  122007. Result:=ReadJSPropertyVariant('hash');
  122008. end;
  122009. function TJSHmacKeyGenParams._Getlength_: Cardinal;
  122010. begin
  122011. Result:=ReadJSPropertyInt64('length');
  122012. end;
  122013. procedure TJSHmacKeyGenParams._Sethash(const aValue : TAlgorithmIdentifier);
  122014. begin
  122015. WriteJSPropertyVariant('hash',aValue);
  122016. end;
  122017. procedure TJSHmacKeyGenParams._Setlength_(const aValue : Cardinal);
  122018. begin
  122019. WriteJSPropertyDouble('length',aValue);
  122020. end;
  122021. class function TJSHmacKeyGenParams.JSClassName: UnicodeString;
  122022. begin
  122023. Result:='Object';
  122024. end;
  122025. class function TJSHmacKeyGenParams.Cast(const Intf: IJSObject): IJSHmacKeyGenParams;
  122026. begin
  122027. Result:=TJSHmacKeyGenParams.JOBCast(Intf);
  122028. end;
  122029. function TJSRsaHashedKeyGenParams._GetmodulusLength: Cardinal;
  122030. begin
  122031. Result:=ReadJSPropertyInt64('modulusLength');
  122032. end;
  122033. function TJSRsaHashedKeyGenParams._GetpublicExponent: TBigInteger;
  122034. begin
  122035. Result:=ReadJSPropertyObject('publicExponent',TJSUint8Array) as TBigInteger;
  122036. end;
  122037. function TJSRsaHashedKeyGenParams._Gethash: TAlgorithmIdentifier;
  122038. begin
  122039. Result:=ReadJSPropertyVariant('hash');
  122040. end;
  122041. procedure TJSRsaHashedKeyGenParams._SetmodulusLength(const aValue : Cardinal);
  122042. begin
  122043. WriteJSPropertyDouble('modulusLength',aValue);
  122044. end;
  122045. procedure TJSRsaHashedKeyGenParams._SetpublicExponent(const aValue : TBigInteger);
  122046. begin
  122047. WriteJSPropertyObject('publicExponent',aValue);
  122048. end;
  122049. procedure TJSRsaHashedKeyGenParams._Sethash(const aValue : TAlgorithmIdentifier);
  122050. begin
  122051. WriteJSPropertyVariant('hash',aValue);
  122052. end;
  122053. class function TJSRsaHashedKeyGenParams.JSClassName: UnicodeString;
  122054. begin
  122055. Result:='Object';
  122056. end;
  122057. class function TJSRsaHashedKeyGenParams.Cast(const Intf: IJSObject): IJSRsaHashedKeyGenParams;
  122058. begin
  122059. Result:=TJSRsaHashedKeyGenParams.JOBCast(Intf);
  122060. end;
  122061. function TJSRsaOaepParams._Getlabel_: IJSBufferSource;
  122062. begin
  122063. Result:=ReadJSPropertyObject('label',TJSBufferSource) as IJSBufferSource;
  122064. end;
  122065. procedure TJSRsaOaepParams._Setlabel_(const aValue : IJSBufferSource);
  122066. begin
  122067. WriteJSPropertyObject('label',aValue);
  122068. end;
  122069. class function TJSRsaOaepParams.JSClassName: UnicodeString;
  122070. begin
  122071. Result:='Object';
  122072. end;
  122073. class function TJSRsaOaepParams.Cast(const Intf: IJSObject): IJSRsaOaepParams;
  122074. begin
  122075. Result:=TJSRsaOaepParams.JOBCast(Intf);
  122076. end;
  122077. function TJSRsaPssParams._GetsaltLength: Cardinal;
  122078. begin
  122079. Result:=ReadJSPropertyInt64('saltLength');
  122080. end;
  122081. procedure TJSRsaPssParams._SetsaltLength(const aValue : Cardinal);
  122082. begin
  122083. WriteJSPropertyDouble('saltLength',aValue);
  122084. end;
  122085. class function TJSRsaPssParams.JSClassName: UnicodeString;
  122086. begin
  122087. Result:='Object';
  122088. end;
  122089. class function TJSRsaPssParams.Cast(const Intf: IJSObject): IJSRsaPssParams;
  122090. begin
  122091. Result:=TJSRsaPssParams.JOBCast(Intf);
  122092. end;
  122093. function TJSEcKeyGenParams._GetnamedCurve: TNamedCurve;
  122094. begin
  122095. Result:=ReadJSPropertyUnicodeString('namedCurve');
  122096. end;
  122097. procedure TJSEcKeyGenParams._SetnamedCurve(const aValue : TNamedCurve);
  122098. begin
  122099. WriteJSPropertyUnicodeString('namedCurve',aValue);
  122100. end;
  122101. class function TJSEcKeyGenParams.JSClassName: UnicodeString;
  122102. begin
  122103. Result:='Object';
  122104. end;
  122105. class function TJSEcKeyGenParams.Cast(const Intf: IJSObject): IJSEcKeyGenParams;
  122106. begin
  122107. Result:=TJSEcKeyGenParams.JOBCast(Intf);
  122108. end;
  122109. function TJSAesDerivedKeyParams._Getlength_: Cardinal;
  122110. begin
  122111. Result:=ReadJSPropertyInt64('length');
  122112. end;
  122113. procedure TJSAesDerivedKeyParams._Setlength_(const aValue : Cardinal);
  122114. begin
  122115. WriteJSPropertyDouble('length',aValue);
  122116. end;
  122117. class function TJSAesDerivedKeyParams.JSClassName: UnicodeString;
  122118. begin
  122119. Result:='Object';
  122120. end;
  122121. class function TJSAesDerivedKeyParams.Cast(const Intf: IJSObject): IJSAesDerivedKeyParams;
  122122. begin
  122123. Result:=TJSAesDerivedKeyParams.JOBCast(Intf);
  122124. end;
  122125. function TJSHmacDerivedKeyParams._Getlength_: Cardinal;
  122126. begin
  122127. Result:=ReadJSPropertyInt64('length');
  122128. end;
  122129. procedure TJSHmacDerivedKeyParams._Setlength_(const aValue : Cardinal);
  122130. begin
  122131. WriteJSPropertyDouble('length',aValue);
  122132. end;
  122133. class function TJSHmacDerivedKeyParams.JSClassName: UnicodeString;
  122134. begin
  122135. Result:='Object';
  122136. end;
  122137. class function TJSHmacDerivedKeyParams.Cast(const Intf: IJSObject): IJSHmacDerivedKeyParams;
  122138. begin
  122139. Result:=TJSHmacDerivedKeyParams.JOBCast(Intf);
  122140. end;
  122141. function TJSEcdhKeyDeriveParams._Getpublic: IJSCryptoKey;
  122142. begin
  122143. Result:=ReadJSPropertyObject('public',TJSCryptoKey) as IJSCryptoKey;
  122144. end;
  122145. procedure TJSEcdhKeyDeriveParams._Setpublic(const aValue : IJSCryptoKey);
  122146. begin
  122147. WriteJSPropertyObject('public',aValue);
  122148. end;
  122149. class function TJSEcdhKeyDeriveParams.JSClassName: UnicodeString;
  122150. begin
  122151. Result:='Object';
  122152. end;
  122153. class function TJSEcdhKeyDeriveParams.Cast(const Intf: IJSObject): IJSEcdhKeyDeriveParams;
  122154. begin
  122155. Result:=TJSEcdhKeyDeriveParams.JOBCast(Intf);
  122156. end;
  122157. function TJSDhImportKeyParams._Getprime: TBigInteger;
  122158. begin
  122159. Result:=ReadJSPropertyObject('prime',TJSUint8Array) as TBigInteger;
  122160. end;
  122161. function TJSDhImportKeyParams._Getgenerator: TBigInteger;
  122162. begin
  122163. Result:=ReadJSPropertyObject('generator',TJSUint8Array) as TBigInteger;
  122164. end;
  122165. procedure TJSDhImportKeyParams._Setprime(const aValue : TBigInteger);
  122166. begin
  122167. WriteJSPropertyObject('prime',aValue);
  122168. end;
  122169. procedure TJSDhImportKeyParams._Setgenerator(const aValue : TBigInteger);
  122170. begin
  122171. WriteJSPropertyObject('generator',aValue);
  122172. end;
  122173. class function TJSDhImportKeyParams.JSClassName: UnicodeString;
  122174. begin
  122175. Result:='Object';
  122176. end;
  122177. class function TJSDhImportKeyParams.Cast(const Intf: IJSObject): IJSDhImportKeyParams;
  122178. begin
  122179. Result:=TJSDhImportKeyParams.JOBCast(Intf);
  122180. end;
  122181. function TJSEcdsaParams._Gethash: TAlgorithmIdentifier;
  122182. begin
  122183. Result:=ReadJSPropertyVariant('hash');
  122184. end;
  122185. procedure TJSEcdsaParams._Sethash(const aValue : TAlgorithmIdentifier);
  122186. begin
  122187. WriteJSPropertyVariant('hash',aValue);
  122188. end;
  122189. class function TJSEcdsaParams.JSClassName: UnicodeString;
  122190. begin
  122191. Result:='Object';
  122192. end;
  122193. class function TJSEcdsaParams.Cast(const Intf: IJSObject): IJSEcdsaParams;
  122194. begin
  122195. Result:=TJSEcdsaParams.JOBCast(Intf);
  122196. end;
  122197. function TJSEcKeyImportParams._GetnamedCurve: TNamedCurve;
  122198. begin
  122199. Result:=ReadJSPropertyUnicodeString('namedCurve');
  122200. end;
  122201. procedure TJSEcKeyImportParams._SetnamedCurve(const aValue : TNamedCurve);
  122202. begin
  122203. WriteJSPropertyUnicodeString('namedCurve',aValue);
  122204. end;
  122205. class function TJSEcKeyImportParams.JSClassName: UnicodeString;
  122206. begin
  122207. Result:='Object';
  122208. end;
  122209. class function TJSEcKeyImportParams.Cast(const Intf: IJSObject): IJSEcKeyImportParams;
  122210. begin
  122211. Result:=TJSEcKeyImportParams.JOBCast(Intf);
  122212. end;
  122213. function TJSHkdfParams._Gethash: TAlgorithmIdentifier;
  122214. begin
  122215. Result:=ReadJSPropertyVariant('hash');
  122216. end;
  122217. function TJSHkdfParams._Getsalt: IJSBufferSource;
  122218. begin
  122219. Result:=ReadJSPropertyObject('salt',TJSBufferSource) as IJSBufferSource;
  122220. end;
  122221. function TJSHkdfParams._Getinfo: IJSBufferSource;
  122222. begin
  122223. Result:=ReadJSPropertyObject('info',TJSBufferSource) as IJSBufferSource;
  122224. end;
  122225. procedure TJSHkdfParams._Sethash(const aValue : TAlgorithmIdentifier);
  122226. begin
  122227. WriteJSPropertyVariant('hash',aValue);
  122228. end;
  122229. procedure TJSHkdfParams._Setsalt(const aValue : IJSBufferSource);
  122230. begin
  122231. WriteJSPropertyObject('salt',aValue);
  122232. end;
  122233. procedure TJSHkdfParams._Setinfo(const aValue : IJSBufferSource);
  122234. begin
  122235. WriteJSPropertyObject('info',aValue);
  122236. end;
  122237. class function TJSHkdfParams.JSClassName: UnicodeString;
  122238. begin
  122239. Result:='Object';
  122240. end;
  122241. class function TJSHkdfParams.Cast(const Intf: IJSObject): IJSHkdfParams;
  122242. begin
  122243. Result:=TJSHkdfParams.JOBCast(Intf);
  122244. end;
  122245. function TJSRsaOtherPrimesInfo._Getr: UnicodeString;
  122246. begin
  122247. Result:=ReadJSPropertyUnicodeString('r');
  122248. end;
  122249. function TJSRsaOtherPrimesInfo._Getd: UnicodeString;
  122250. begin
  122251. Result:=ReadJSPropertyUnicodeString('d');
  122252. end;
  122253. function TJSRsaOtherPrimesInfo._Gett: UnicodeString;
  122254. begin
  122255. Result:=ReadJSPropertyUnicodeString('t');
  122256. end;
  122257. procedure TJSRsaOtherPrimesInfo._Setr(const aValue : UnicodeString);
  122258. begin
  122259. WriteJSPropertyUnicodeString('r',aValue);
  122260. end;
  122261. procedure TJSRsaOtherPrimesInfo._Setd(const aValue : UnicodeString);
  122262. begin
  122263. WriteJSPropertyUnicodeString('d',aValue);
  122264. end;
  122265. procedure TJSRsaOtherPrimesInfo._Sett(const aValue : UnicodeString);
  122266. begin
  122267. WriteJSPropertyUnicodeString('t',aValue);
  122268. end;
  122269. class function TJSRsaOtherPrimesInfo.JSClassName: UnicodeString;
  122270. begin
  122271. Result:='Object';
  122272. end;
  122273. class function TJSRsaOtherPrimesInfo.Cast(const Intf: IJSObject): IJSRsaOtherPrimesInfo;
  122274. begin
  122275. Result:=TJSRsaOtherPrimesInfo.JOBCast(Intf);
  122276. end;
  122277. function TJSJsonWebKey._Getkty: UnicodeString;
  122278. begin
  122279. Result:=ReadJSPropertyUnicodeString('kty');
  122280. end;
  122281. function TJSJsonWebKey._Getuse: UnicodeString;
  122282. begin
  122283. Result:=ReadJSPropertyUnicodeString('use');
  122284. end;
  122285. function TJSJsonWebKey._Getkey_ops: TUnicodeStringDynArray;
  122286. begin
  122287. Result:=ReadJSPropertyObject('key_ops',TJSArray) as TUnicodeStringDynArray;
  122288. end;
  122289. function TJSJsonWebKey._Getalg: UnicodeString;
  122290. begin
  122291. Result:=ReadJSPropertyUnicodeString('alg');
  122292. end;
  122293. function TJSJsonWebKey._Getext: Boolean;
  122294. begin
  122295. Result:=ReadJSPropertyBoolean('ext');
  122296. end;
  122297. function TJSJsonWebKey._Getcrv: UnicodeString;
  122298. begin
  122299. Result:=ReadJSPropertyUnicodeString('crv');
  122300. end;
  122301. function TJSJsonWebKey._Getx: UnicodeString;
  122302. begin
  122303. Result:=ReadJSPropertyUnicodeString('x');
  122304. end;
  122305. function TJSJsonWebKey._Gety: UnicodeString;
  122306. begin
  122307. Result:=ReadJSPropertyUnicodeString('y');
  122308. end;
  122309. function TJSJsonWebKey._Getd: UnicodeString;
  122310. begin
  122311. Result:=ReadJSPropertyUnicodeString('d');
  122312. end;
  122313. function TJSJsonWebKey._Getn: UnicodeString;
  122314. begin
  122315. Result:=ReadJSPropertyUnicodeString('n');
  122316. end;
  122317. function TJSJsonWebKey._Gete: UnicodeString;
  122318. begin
  122319. Result:=ReadJSPropertyUnicodeString('e');
  122320. end;
  122321. function TJSJsonWebKey._Getp: UnicodeString;
  122322. begin
  122323. Result:=ReadJSPropertyUnicodeString('p');
  122324. end;
  122325. function TJSJsonWebKey._Getq: UnicodeString;
  122326. begin
  122327. Result:=ReadJSPropertyUnicodeString('q');
  122328. end;
  122329. function TJSJsonWebKey._Getdp: UnicodeString;
  122330. begin
  122331. Result:=ReadJSPropertyUnicodeString('dp');
  122332. end;
  122333. function TJSJsonWebKey._Getdq: UnicodeString;
  122334. begin
  122335. Result:=ReadJSPropertyUnicodeString('dq');
  122336. end;
  122337. function TJSJsonWebKey._Getqi: UnicodeString;
  122338. begin
  122339. Result:=ReadJSPropertyUnicodeString('qi');
  122340. end;
  122341. function TJSJsonWebKey._Getoth: TJSRsaOtherPrimesInfoDynArray;
  122342. begin
  122343. Result:=ReadJSPropertyObject('oth',TJSArray) as TJSRsaOtherPrimesInfoDynArray;
  122344. end;
  122345. function TJSJsonWebKey._Getk: UnicodeString;
  122346. begin
  122347. Result:=ReadJSPropertyUnicodeString('k');
  122348. end;
  122349. procedure TJSJsonWebKey._Setkty(const aValue : UnicodeString);
  122350. begin
  122351. WriteJSPropertyUnicodeString('kty',aValue);
  122352. end;
  122353. procedure TJSJsonWebKey._Setuse(const aValue : UnicodeString);
  122354. begin
  122355. WriteJSPropertyUnicodeString('use',aValue);
  122356. end;
  122357. procedure TJSJsonWebKey._Setkey_ops(const aValue : TUnicodeStringDynArray);
  122358. begin
  122359. WriteJSPropertyObject('key_ops',aValue);
  122360. end;
  122361. procedure TJSJsonWebKey._Setalg(const aValue : UnicodeString);
  122362. begin
  122363. WriteJSPropertyUnicodeString('alg',aValue);
  122364. end;
  122365. procedure TJSJsonWebKey._Setext(const aValue : Boolean);
  122366. begin
  122367. WriteJSPropertyBoolean('ext',aValue);
  122368. end;
  122369. procedure TJSJsonWebKey._Setcrv(const aValue : UnicodeString);
  122370. begin
  122371. WriteJSPropertyUnicodeString('crv',aValue);
  122372. end;
  122373. procedure TJSJsonWebKey._Setx(const aValue : UnicodeString);
  122374. begin
  122375. WriteJSPropertyUnicodeString('x',aValue);
  122376. end;
  122377. procedure TJSJsonWebKey._Sety(const aValue : UnicodeString);
  122378. begin
  122379. WriteJSPropertyUnicodeString('y',aValue);
  122380. end;
  122381. procedure TJSJsonWebKey._Setd(const aValue : UnicodeString);
  122382. begin
  122383. WriteJSPropertyUnicodeString('d',aValue);
  122384. end;
  122385. procedure TJSJsonWebKey._Setn(const aValue : UnicodeString);
  122386. begin
  122387. WriteJSPropertyUnicodeString('n',aValue);
  122388. end;
  122389. procedure TJSJsonWebKey._Sete(const aValue : UnicodeString);
  122390. begin
  122391. WriteJSPropertyUnicodeString('e',aValue);
  122392. end;
  122393. procedure TJSJsonWebKey._Setp(const aValue : UnicodeString);
  122394. begin
  122395. WriteJSPropertyUnicodeString('p',aValue);
  122396. end;
  122397. procedure TJSJsonWebKey._Setq(const aValue : UnicodeString);
  122398. begin
  122399. WriteJSPropertyUnicodeString('q',aValue);
  122400. end;
  122401. procedure TJSJsonWebKey._Setdp(const aValue : UnicodeString);
  122402. begin
  122403. WriteJSPropertyUnicodeString('dp',aValue);
  122404. end;
  122405. procedure TJSJsonWebKey._Setdq(const aValue : UnicodeString);
  122406. begin
  122407. WriteJSPropertyUnicodeString('dq',aValue);
  122408. end;
  122409. procedure TJSJsonWebKey._Setqi(const aValue : UnicodeString);
  122410. begin
  122411. WriteJSPropertyUnicodeString('qi',aValue);
  122412. end;
  122413. procedure TJSJsonWebKey._Setoth(const aValue : TJSRsaOtherPrimesInfoDynArray);
  122414. begin
  122415. WriteJSPropertyObject('oth',aValue);
  122416. end;
  122417. procedure TJSJsonWebKey._Setk(const aValue : UnicodeString);
  122418. begin
  122419. WriteJSPropertyUnicodeString('k',aValue);
  122420. end;
  122421. class function TJSJsonWebKey.JSClassName: UnicodeString;
  122422. begin
  122423. Result:='Object';
  122424. end;
  122425. class function TJSJsonWebKey.Cast(const Intf: IJSObject): IJSJsonWebKey;
  122426. begin
  122427. Result:=TJSJsonWebKey.JOBCast(Intf);
  122428. end;
  122429. function TJSCryptoKey._Gettype_: TKeyType;
  122430. begin
  122431. Result:=ReadJSPropertyUnicodeString('type');
  122432. end;
  122433. function TJSCryptoKey._Getextractable: Boolean;
  122434. begin
  122435. Result:=ReadJSPropertyBoolean('extractable');
  122436. end;
  122437. function TJSCryptoKey._Getalgorithm: IJSObject;
  122438. begin
  122439. Result:=ReadJSPropertyObject('algorithm',TJSObject) as IJSObject;
  122440. end;
  122441. function TJSCryptoKey._Getusages: TKeyUsageDynArray;
  122442. begin
  122443. Result:=ReadJSPropertyObject('usages',TJSArray) as TKeyUsageDynArray;
  122444. end;
  122445. class function TJSCryptoKey.JSClassName: UnicodeString;
  122446. begin
  122447. Result:='CryptoKey';
  122448. end;
  122449. class function TJSCryptoKey.Cast(const Intf: IJSObject): IJSCryptoKey;
  122450. begin
  122451. Result:=TJSCryptoKey.JOBCast(Intf);
  122452. end;
  122453. function TJSCryptoKeyPair._GetpublicKey: IJSCryptoKey;
  122454. begin
  122455. Result:=ReadJSPropertyObject('publicKey',TJSCryptoKey) as IJSCryptoKey;
  122456. end;
  122457. function TJSCryptoKeyPair._GetprivateKey: IJSCryptoKey;
  122458. begin
  122459. Result:=ReadJSPropertyObject('privateKey',TJSCryptoKey) as IJSCryptoKey;
  122460. end;
  122461. procedure TJSCryptoKeyPair._SetpublicKey(const aValue : IJSCryptoKey);
  122462. begin
  122463. WriteJSPropertyObject('publicKey',aValue);
  122464. end;
  122465. procedure TJSCryptoKeyPair._SetprivateKey(const aValue : IJSCryptoKey);
  122466. begin
  122467. WriteJSPropertyObject('privateKey',aValue);
  122468. end;
  122469. class function TJSCryptoKeyPair.JSClassName: UnicodeString;
  122470. begin
  122471. Result:='Object';
  122472. end;
  122473. class function TJSCryptoKeyPair.Cast(const Intf: IJSObject): IJSCryptoKeyPair;
  122474. begin
  122475. Result:=TJSCryptoKeyPair.JOBCast(Intf);
  122476. end;
  122477. function TJSSubtleCrypto.encrypt(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  122478. begin
  122479. Result:=InvokeJSObjectResult('encrypt',[aAlgorithm,aKey,aData],TJSPromise) as IJSPromise;
  122480. end;
  122481. function TJSSubtleCrypto.encrypt(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  122482. begin
  122483. Result:=InvokeJSObjectResult('encrypt',[aAlgorithm,aKey,aData],TJSPromise) as IJSPromise;
  122484. end;
  122485. function TJSSubtleCrypto.decrypt(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  122486. begin
  122487. Result:=InvokeJSObjectResult('decrypt',[aAlgorithm,aKey,aData],TJSPromise) as IJSPromise;
  122488. end;
  122489. function TJSSubtleCrypto.decrypt(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  122490. begin
  122491. Result:=InvokeJSObjectResult('decrypt',[aAlgorithm,aKey,aData],TJSPromise) as IJSPromise;
  122492. end;
  122493. function TJSSubtleCrypto.sign(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  122494. begin
  122495. Result:=InvokeJSObjectResult('sign',[aAlgorithm,aKey,aData],TJSPromise) as IJSPromise;
  122496. end;
  122497. function TJSSubtleCrypto.sign(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aData: IJSBufferSource): IJSPromise; // Promise<any>
  122498. begin
  122499. Result:=InvokeJSObjectResult('sign',[aAlgorithm,aKey,aData],TJSPromise) as IJSPromise;
  122500. end;
  122501. function TJSSubtleCrypto.verify(const aAlgorithm: UnicodeString; aKey: IJSCryptoKey; aSignature: IJSBufferSource; aData: IJSBufferSource): IJSPromise; // Promise<any>
  122502. begin
  122503. Result:=InvokeJSObjectResult('verify',[aAlgorithm,aKey,aSignature,aData],TJSPromise) as IJSPromise;
  122504. end;
  122505. function TJSSubtleCrypto.verify(aAlgorithm: IJSObject; aKey: IJSCryptoKey; aSignature: IJSBufferSource; aData: IJSBufferSource): IJSPromise; // Promise<any>
  122506. begin
  122507. Result:=InvokeJSObjectResult('verify',[aAlgorithm,aKey,aSignature,aData],TJSPromise) as IJSPromise;
  122508. end;
  122509. function TJSSubtleCrypto.digest(const aAlgorithm: UnicodeString; aData: IJSBufferSource): IJSPromise; // Promise<any>
  122510. begin
  122511. Result:=InvokeJSObjectResult('digest',[aAlgorithm,aData],TJSPromise) as IJSPromise;
  122512. end;
  122513. function TJSSubtleCrypto.digest(aAlgorithm: IJSObject; aData: IJSBufferSource): IJSPromise; // Promise<any>
  122514. begin
  122515. Result:=InvokeJSObjectResult('digest',[aAlgorithm,aData],TJSPromise) as IJSPromise;
  122516. end;
  122517. function TJSSubtleCrypto.generateKey(const aAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122518. begin
  122519. Result:=InvokeJSObjectResult('generateKey',[aAlgorithm,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122520. end;
  122521. function TJSSubtleCrypto.generateKey(aAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122522. begin
  122523. Result:=InvokeJSObjectResult('generateKey',[aAlgorithm,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122524. end;
  122525. function TJSSubtleCrypto.deriveKey(const aAlgorithm: UnicodeString; aBaseKey: IJSCryptoKey; const aDerivedKeyType: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122526. begin
  122527. Result:=InvokeJSObjectResult('deriveKey',[aAlgorithm,aBaseKey,aDerivedKeyType,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122528. end;
  122529. function TJSSubtleCrypto.deriveKey(aAlgorithm: IJSObject; aBaseKey: IJSCryptoKey; const aDerivedKeyType: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122530. begin
  122531. Result:=InvokeJSObjectResult('deriveKey',[aAlgorithm,aBaseKey,aDerivedKeyType,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122532. end;
  122533. function TJSSubtleCrypto.deriveKey(aAlgorithm: IJSObject; aBaseKey: IJSCryptoKey; aDerivedKeyType: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122534. begin
  122535. Result:=InvokeJSObjectResult('deriveKey',[aAlgorithm,aBaseKey,aDerivedKeyType,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122536. end;
  122537. function TJSSubtleCrypto.deriveKey(const aAlgorithm: UnicodeString; aBaseKey: IJSCryptoKey; aDerivedKeyType: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122538. begin
  122539. Result:=InvokeJSObjectResult('deriveKey',[aAlgorithm,aBaseKey,aDerivedKeyType,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122540. end;
  122541. function TJSSubtleCrypto.deriveBits(const aAlgorithm: UnicodeString; aBaseKey: IJSCryptoKey; aLength_: Cardinal): IJSPromise; // Promise<any>
  122542. begin
  122543. Result:=InvokeJSObjectResult('deriveBits',[aAlgorithm,aBaseKey,aLength_],TJSPromise) as IJSPromise;
  122544. end;
  122545. function TJSSubtleCrypto.deriveBits(aAlgorithm: IJSObject; aBaseKey: IJSCryptoKey; aLength_: Cardinal): IJSPromise; // Promise<any>
  122546. begin
  122547. Result:=InvokeJSObjectResult('deriveBits',[aAlgorithm,aBaseKey,aLength_],TJSPromise) as IJSPromise;
  122548. end;
  122549. function TJSSubtleCrypto.importKey(const aFormat: TKeyFormat; aKeyData: IJSObject; const aAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122550. begin
  122551. Result:=InvokeJSObjectResult('importKey',[aFormat,aKeyData,aAlgorithm,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122552. end;
  122553. function TJSSubtleCrypto.importKey(const aFormat: TKeyFormat; aKeyData: IJSObject; aAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122554. begin
  122555. Result:=InvokeJSObjectResult('importKey',[aFormat,aKeyData,aAlgorithm,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122556. end;
  122557. function TJSSubtleCrypto.exportKey(const aFormat: TKeyFormat; aKey: IJSCryptoKey): IJSPromise; // Promise<any>
  122558. begin
  122559. Result:=InvokeJSObjectResult('exportKey',[aFormat,aKey],TJSPromise) as IJSPromise;
  122560. end;
  122561. function TJSSubtleCrypto.wrapKey(const aFormat: TKeyFormat; aKey: IJSCryptoKey; aWrappingKey: IJSCryptoKey; const aWrapAlgorithm: UnicodeString): IJSPromise; // Promise<any>
  122562. begin
  122563. Result:=InvokeJSObjectResult('wrapKey',[aFormat,aKey,aWrappingKey,aWrapAlgorithm],TJSPromise) as IJSPromise;
  122564. end;
  122565. function TJSSubtleCrypto.wrapKey(const aFormat: TKeyFormat; aKey: IJSCryptoKey; aWrappingKey: IJSCryptoKey; aWrapAlgorithm: IJSObject): IJSPromise; // Promise<any>
  122566. begin
  122567. Result:=InvokeJSObjectResult('wrapKey',[aFormat,aKey,aWrappingKey,aWrapAlgorithm],TJSPromise) as IJSPromise;
  122568. end;
  122569. function TJSSubtleCrypto.unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; const aUnwrapAlgorithm: UnicodeString; const aUnwrappedKeyAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122570. begin
  122571. Result:=InvokeJSObjectResult('unwrapKey',[aFormat,aWrappedKey,aUnwrappingKey,aUnwrapAlgorithm,aUnwrappedKeyAlgorithm,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122572. end;
  122573. function TJSSubtleCrypto.unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; aUnwrapAlgorithm: IJSObject; const aUnwrappedKeyAlgorithm: UnicodeString; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122574. begin
  122575. Result:=InvokeJSObjectResult('unwrapKey',[aFormat,aWrappedKey,aUnwrappingKey,aUnwrapAlgorithm,aUnwrappedKeyAlgorithm,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122576. end;
  122577. function TJSSubtleCrypto.unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; aUnwrapAlgorithm: IJSObject; aUnwrappedKeyAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122578. begin
  122579. Result:=InvokeJSObjectResult('unwrapKey',[aFormat,aWrappedKey,aUnwrappingKey,aUnwrapAlgorithm,aUnwrappedKeyAlgorithm,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122580. end;
  122581. function TJSSubtleCrypto.unwrapKey(const aFormat: TKeyFormat; aWrappedKey: IJSBufferSource; aUnwrappingKey: IJSCryptoKey; const aUnwrapAlgorithm: UnicodeString; aUnwrappedKeyAlgorithm: IJSObject; aExtractable: Boolean; const aKeyUsages: TKeyUsageDynArray): IJSPromise; // Promise<any>
  122582. begin
  122583. Result:=InvokeJSObjectResult('unwrapKey',[aFormat,aWrappedKey,aUnwrappingKey,aUnwrapAlgorithm,aUnwrappedKeyAlgorithm,aExtractable,aKeyUsages],TJSPromise) as IJSPromise;
  122584. end;
  122585. class function TJSSubtleCrypto.JSClassName: UnicodeString;
  122586. begin
  122587. Result:='SubtleCrypto';
  122588. end;
  122589. class function TJSSubtleCrypto.Cast(const Intf: IJSObject): IJSSubtleCrypto;
  122590. begin
  122591. Result:=TJSSubtleCrypto.JOBCast(Intf);
  122592. end;
  122593. function TJSSVGAElement._Gettarget: IJSSVGAnimatedString;
  122594. begin
  122595. Result:=ReadJSPropertyObject('target',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  122596. end;
  122597. function TJSSVGAElement._Getdownload: UnicodeString;
  122598. begin
  122599. Result:=ReadJSPropertyUnicodeString('download');
  122600. end;
  122601. function TJSSVGAElement._Getping: UnicodeString;
  122602. begin
  122603. Result:=ReadJSPropertyUnicodeString('ping');
  122604. end;
  122605. function TJSSVGAElement._Getrel: UnicodeString;
  122606. begin
  122607. Result:=ReadJSPropertyUnicodeString('rel');
  122608. end;
  122609. function TJSSVGAElement._GetreferrerPolicy: UnicodeString;
  122610. begin
  122611. Result:=ReadJSPropertyUnicodeString('referrerPolicy');
  122612. end;
  122613. function TJSSVGAElement._GetrelList: IJSDOMTokenList;
  122614. begin
  122615. Result:=ReadJSPropertyObject('relList',TJSDOMTokenList) as IJSDOMTokenList;
  122616. end;
  122617. function TJSSVGAElement._Gethreflang: UnicodeString;
  122618. begin
  122619. Result:=ReadJSPropertyUnicodeString('hreflang');
  122620. end;
  122621. function TJSSVGAElement._Gettype_: UnicodeString;
  122622. begin
  122623. Result:=ReadJSPropertyUnicodeString('type');
  122624. end;
  122625. function TJSSVGAElement._Gettext: UnicodeString;
  122626. begin
  122627. Result:=ReadJSPropertyUnicodeString('text');
  122628. end;
  122629. function TJSSVGAElement._Gethref: IJSSVGAnimatedString;
  122630. begin
  122631. Result:=ReadJSPropertyObject('href',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  122632. end;
  122633. procedure TJSSVGAElement._Setdownload(const aValue : UnicodeString);
  122634. begin
  122635. WriteJSPropertyUnicodeString('download',aValue);
  122636. end;
  122637. procedure TJSSVGAElement._Setping(const aValue : UnicodeString);
  122638. begin
  122639. WriteJSPropertyUnicodeString('ping',aValue);
  122640. end;
  122641. procedure TJSSVGAElement._Setrel(const aValue : UnicodeString);
  122642. begin
  122643. WriteJSPropertyUnicodeString('rel',aValue);
  122644. end;
  122645. procedure TJSSVGAElement._SetreferrerPolicy(const aValue : UnicodeString);
  122646. begin
  122647. WriteJSPropertyUnicodeString('referrerPolicy',aValue);
  122648. end;
  122649. procedure TJSSVGAElement._Sethreflang(const aValue : UnicodeString);
  122650. begin
  122651. WriteJSPropertyUnicodeString('hreflang',aValue);
  122652. end;
  122653. procedure TJSSVGAElement._Settype_(const aValue : UnicodeString);
  122654. begin
  122655. WriteJSPropertyUnicodeString('type',aValue);
  122656. end;
  122657. procedure TJSSVGAElement._Settext(const aValue : UnicodeString);
  122658. begin
  122659. WriteJSPropertyUnicodeString('text',aValue);
  122660. end;
  122661. class function TJSSVGAElement.JSClassName: UnicodeString;
  122662. begin
  122663. Result:='SVGAElement';
  122664. end;
  122665. class function TJSSVGAElement.Cast(const Intf: IJSObject): IJSSVGAElement;
  122666. begin
  122667. Result:=TJSSVGAElement.JOBCast(Intf);
  122668. end;
  122669. function TJSSVGAngle._GetunitType: Word;
  122670. begin
  122671. Result:=ReadJSPropertyLongInt('unitType');
  122672. end;
  122673. function TJSSVGAngle._Getvalue: Single;
  122674. begin
  122675. Result:=ReadJSPropertyDouble('value');
  122676. end;
  122677. function TJSSVGAngle._GetvalueInSpecifiedUnits: Single;
  122678. begin
  122679. Result:=ReadJSPropertyDouble('valueInSpecifiedUnits');
  122680. end;
  122681. function TJSSVGAngle._GetvalueAsString: UnicodeString;
  122682. begin
  122683. Result:=ReadJSPropertyUnicodeString('valueAsString');
  122684. end;
  122685. procedure TJSSVGAngle._Setvalue(const aValue : Single);
  122686. begin
  122687. WriteJSPropertyDouble('value',aValue);
  122688. end;
  122689. procedure TJSSVGAngle._SetvalueInSpecifiedUnits(const aValue : Single);
  122690. begin
  122691. WriteJSPropertyDouble('valueInSpecifiedUnits',aValue);
  122692. end;
  122693. procedure TJSSVGAngle._SetvalueAsString(const aValue : UnicodeString);
  122694. begin
  122695. WriteJSPropertyUnicodeString('valueAsString',aValue);
  122696. end;
  122697. procedure TJSSVGAngle.newValueSpecifiedUnits(aUnitType: Word; aValueInSpecifiedUnits: Single);
  122698. begin
  122699. InvokeJSNoResult('newValueSpecifiedUnits',[aUnitType,aValueInSpecifiedUnits]);
  122700. end;
  122701. procedure TJSSVGAngle.convertToSpecifiedUnits(aUnitType: Word);
  122702. begin
  122703. InvokeJSNoResult('convertToSpecifiedUnits',[aUnitType]);
  122704. end;
  122705. class function TJSSVGAngle.JSClassName: UnicodeString;
  122706. begin
  122707. Result:='SVGAngle';
  122708. end;
  122709. class function TJSSVGAngle.Cast(const Intf: IJSObject): IJSSVGAngle;
  122710. begin
  122711. Result:=TJSSVGAngle.JOBCast(Intf);
  122712. end;
  122713. function TJSSVGAnimatedAngle._GetbaseVal: IJSSVGAngle;
  122714. begin
  122715. Result:=ReadJSPropertyObject('baseVal',TJSSVGAngle) as IJSSVGAngle;
  122716. end;
  122717. function TJSSVGAnimatedAngle._GetanimVal: IJSSVGAngle;
  122718. begin
  122719. Result:=ReadJSPropertyObject('animVal',TJSSVGAngle) as IJSSVGAngle;
  122720. end;
  122721. class function TJSSVGAnimatedAngle.JSClassName: UnicodeString;
  122722. begin
  122723. Result:='SVGAnimatedAngle';
  122724. end;
  122725. class function TJSSVGAnimatedAngle.Cast(const Intf: IJSObject): IJSSVGAnimatedAngle;
  122726. begin
  122727. Result:=TJSSVGAnimatedAngle.JOBCast(Intf);
  122728. end;
  122729. function TJSSVGAnimatedBoolean._GetbaseVal: Boolean;
  122730. begin
  122731. Result:=ReadJSPropertyBoolean('baseVal');
  122732. end;
  122733. function TJSSVGAnimatedBoolean._GetanimVal: Boolean;
  122734. begin
  122735. Result:=ReadJSPropertyBoolean('animVal');
  122736. end;
  122737. procedure TJSSVGAnimatedBoolean._SetbaseVal(const aValue : Boolean);
  122738. begin
  122739. WriteJSPropertyBoolean('baseVal',aValue);
  122740. end;
  122741. class function TJSSVGAnimatedBoolean.JSClassName: UnicodeString;
  122742. begin
  122743. Result:='SVGAnimatedBoolean';
  122744. end;
  122745. class function TJSSVGAnimatedBoolean.Cast(const Intf: IJSObject): IJSSVGAnimatedBoolean;
  122746. begin
  122747. Result:=TJSSVGAnimatedBoolean.JOBCast(Intf);
  122748. end;
  122749. function TJSSVGAnimatedEnumeration._GetbaseVal: Word;
  122750. begin
  122751. Result:=ReadJSPropertyLongInt('baseVal');
  122752. end;
  122753. function TJSSVGAnimatedEnumeration._GetanimVal: Word;
  122754. begin
  122755. Result:=ReadJSPropertyLongInt('animVal');
  122756. end;
  122757. procedure TJSSVGAnimatedEnumeration._SetbaseVal(const aValue : Word);
  122758. begin
  122759. WriteJSPropertyLongInt('baseVal',aValue);
  122760. end;
  122761. class function TJSSVGAnimatedEnumeration.JSClassName: UnicodeString;
  122762. begin
  122763. Result:='SVGAnimatedEnumeration';
  122764. end;
  122765. class function TJSSVGAnimatedEnumeration.Cast(const Intf: IJSObject): IJSSVGAnimatedEnumeration;
  122766. begin
  122767. Result:=TJSSVGAnimatedEnumeration.JOBCast(Intf);
  122768. end;
  122769. function TJSSVGAnimatedInteger._GetbaseVal: LongInt;
  122770. begin
  122771. Result:=ReadJSPropertyLongInt('baseVal');
  122772. end;
  122773. function TJSSVGAnimatedInteger._GetanimVal: LongInt;
  122774. begin
  122775. Result:=ReadJSPropertyLongInt('animVal');
  122776. end;
  122777. procedure TJSSVGAnimatedInteger._SetbaseVal(const aValue : LongInt);
  122778. begin
  122779. WriteJSPropertyLongInt('baseVal',aValue);
  122780. end;
  122781. class function TJSSVGAnimatedInteger.JSClassName: UnicodeString;
  122782. begin
  122783. Result:='SVGAnimatedInteger';
  122784. end;
  122785. class function TJSSVGAnimatedInteger.Cast(const Intf: IJSObject): IJSSVGAnimatedInteger;
  122786. begin
  122787. Result:=TJSSVGAnimatedInteger.JOBCast(Intf);
  122788. end;
  122789. function TJSSVGAnimatedLength._GetbaseVal: IJSSVGLength;
  122790. begin
  122791. Result:=ReadJSPropertyObject('baseVal',TJSSVGLength) as IJSSVGLength;
  122792. end;
  122793. function TJSSVGAnimatedLength._GetanimVal: IJSSVGLength;
  122794. begin
  122795. Result:=ReadJSPropertyObject('animVal',TJSSVGLength) as IJSSVGLength;
  122796. end;
  122797. class function TJSSVGAnimatedLength.JSClassName: UnicodeString;
  122798. begin
  122799. Result:='SVGAnimatedLength';
  122800. end;
  122801. class function TJSSVGAnimatedLength.Cast(const Intf: IJSObject): IJSSVGAnimatedLength;
  122802. begin
  122803. Result:=TJSSVGAnimatedLength.JOBCast(Intf);
  122804. end;
  122805. function TJSSVGAnimatedLengthList._GetbaseVal: IJSSVGLengthList;
  122806. begin
  122807. Result:=ReadJSPropertyObject('baseVal',TJSSVGLengthList) as IJSSVGLengthList;
  122808. end;
  122809. function TJSSVGAnimatedLengthList._GetanimVal: IJSSVGLengthList;
  122810. begin
  122811. Result:=ReadJSPropertyObject('animVal',TJSSVGLengthList) as IJSSVGLengthList;
  122812. end;
  122813. class function TJSSVGAnimatedLengthList.JSClassName: UnicodeString;
  122814. begin
  122815. Result:='SVGAnimatedLengthList';
  122816. end;
  122817. class function TJSSVGAnimatedLengthList.Cast(const Intf: IJSObject): IJSSVGAnimatedLengthList;
  122818. begin
  122819. Result:=TJSSVGAnimatedLengthList.JOBCast(Intf);
  122820. end;
  122821. function TJSSVGAnimatedNumber._GetbaseVal: Single;
  122822. begin
  122823. Result:=ReadJSPropertyDouble('baseVal');
  122824. end;
  122825. function TJSSVGAnimatedNumber._GetanimVal: Single;
  122826. begin
  122827. Result:=ReadJSPropertyDouble('animVal');
  122828. end;
  122829. procedure TJSSVGAnimatedNumber._SetbaseVal(const aValue : Single);
  122830. begin
  122831. WriteJSPropertyDouble('baseVal',aValue);
  122832. end;
  122833. class function TJSSVGAnimatedNumber.JSClassName: UnicodeString;
  122834. begin
  122835. Result:='SVGAnimatedNumber';
  122836. end;
  122837. class function TJSSVGAnimatedNumber.Cast(const Intf: IJSObject): IJSSVGAnimatedNumber;
  122838. begin
  122839. Result:=TJSSVGAnimatedNumber.JOBCast(Intf);
  122840. end;
  122841. function TJSSVGAnimatedNumberList._GetbaseVal: IJSSVGNumberList;
  122842. begin
  122843. Result:=ReadJSPropertyObject('baseVal',TJSSVGNumberList) as IJSSVGNumberList;
  122844. end;
  122845. function TJSSVGAnimatedNumberList._GetanimVal: IJSSVGNumberList;
  122846. begin
  122847. Result:=ReadJSPropertyObject('animVal',TJSSVGNumberList) as IJSSVGNumberList;
  122848. end;
  122849. class function TJSSVGAnimatedNumberList.JSClassName: UnicodeString;
  122850. begin
  122851. Result:='SVGAnimatedNumberList';
  122852. end;
  122853. class function TJSSVGAnimatedNumberList.Cast(const Intf: IJSObject): IJSSVGAnimatedNumberList;
  122854. begin
  122855. Result:=TJSSVGAnimatedNumberList.JOBCast(Intf);
  122856. end;
  122857. function TJSSVGAnimatedPathData._GetpathSegList: IJSSVGPathSegList;
  122858. begin
  122859. Result:=ReadJSPropertyObject('pathSegList',TJSSVGPathSegList) as IJSSVGPathSegList;
  122860. end;
  122861. function TJSSVGAnimatedPathData._GetanimatedPathSegList: IJSSVGPathSegList;
  122862. begin
  122863. Result:=ReadJSPropertyObject('animatedPathSegList',TJSSVGPathSegList) as IJSSVGPathSegList;
  122864. end;
  122865. class function TJSSVGAnimatedPathData.JSClassName: UnicodeString;
  122866. begin
  122867. Result:='SVGAnimatedPathData';
  122868. end;
  122869. class function TJSSVGAnimatedPathData.Cast(const Intf: IJSObject): IJSSVGAnimatedPathData;
  122870. begin
  122871. Result:=TJSSVGAnimatedPathData.JOBCast(Intf);
  122872. end;
  122873. function TJSSVGAnimatedPoints._Getpoints: IJSSVGPointList;
  122874. begin
  122875. Result:=ReadJSPropertyObject('points',TJSSVGPointList) as IJSSVGPointList;
  122876. end;
  122877. function TJSSVGAnimatedPoints._GetanimatedPoints: IJSSVGPointList;
  122878. begin
  122879. Result:=ReadJSPropertyObject('animatedPoints',TJSSVGPointList) as IJSSVGPointList;
  122880. end;
  122881. class function TJSSVGAnimatedPoints.JSClassName: UnicodeString;
  122882. begin
  122883. Result:='SVGAnimatedPoints';
  122884. end;
  122885. class function TJSSVGAnimatedPoints.Cast(const Intf: IJSObject): IJSSVGAnimatedPoints;
  122886. begin
  122887. Result:=TJSSVGAnimatedPoints.JOBCast(Intf);
  122888. end;
  122889. function TJSSVGAnimatedPreserveAspectRatio._GetbaseVal: IJSSVGPreserveAspectRatio;
  122890. begin
  122891. Result:=ReadJSPropertyObject('baseVal',TJSSVGPreserveAspectRatio) as IJSSVGPreserveAspectRatio;
  122892. end;
  122893. function TJSSVGAnimatedPreserveAspectRatio._GetanimVal: IJSSVGPreserveAspectRatio;
  122894. begin
  122895. Result:=ReadJSPropertyObject('animVal',TJSSVGPreserveAspectRatio) as IJSSVGPreserveAspectRatio;
  122896. end;
  122897. class function TJSSVGAnimatedPreserveAspectRatio.JSClassName: UnicodeString;
  122898. begin
  122899. Result:='SVGAnimatedPreserveAspectRatio';
  122900. end;
  122901. class function TJSSVGAnimatedPreserveAspectRatio.Cast(const Intf: IJSObject): IJSSVGAnimatedPreserveAspectRatio;
  122902. begin
  122903. Result:=TJSSVGAnimatedPreserveAspectRatio.JOBCast(Intf);
  122904. end;
  122905. function TJSSVGAnimatedRect._GetbaseVal: IJSSVGRect;
  122906. begin
  122907. Result:=ReadJSPropertyObject('baseVal',TJSSVGRect) as IJSSVGRect;
  122908. end;
  122909. function TJSSVGAnimatedRect._GetanimVal: IJSSVGRect;
  122910. begin
  122911. Result:=ReadJSPropertyObject('animVal',TJSSVGRect) as IJSSVGRect;
  122912. end;
  122913. class function TJSSVGAnimatedRect.JSClassName: UnicodeString;
  122914. begin
  122915. Result:='SVGAnimatedRect';
  122916. end;
  122917. class function TJSSVGAnimatedRect.Cast(const Intf: IJSObject): IJSSVGAnimatedRect;
  122918. begin
  122919. Result:=TJSSVGAnimatedRect.JOBCast(Intf);
  122920. end;
  122921. function TJSSVGAnimatedString._GetbaseVal: UnicodeString;
  122922. begin
  122923. Result:=ReadJSPropertyUnicodeString('baseVal');
  122924. end;
  122925. function TJSSVGAnimatedString._GetanimVal: UnicodeString;
  122926. begin
  122927. Result:=ReadJSPropertyUnicodeString('animVal');
  122928. end;
  122929. procedure TJSSVGAnimatedString._SetbaseVal(const aValue : UnicodeString);
  122930. begin
  122931. WriteJSPropertyUnicodeString('baseVal',aValue);
  122932. end;
  122933. class function TJSSVGAnimatedString.JSClassName: UnicodeString;
  122934. begin
  122935. Result:='SVGAnimatedString';
  122936. end;
  122937. class function TJSSVGAnimatedString.Cast(const Intf: IJSObject): IJSSVGAnimatedString;
  122938. begin
  122939. Result:=TJSSVGAnimatedString.JOBCast(Intf);
  122940. end;
  122941. function TJSSVGAnimatedTransformList._GetbaseVal: IJSSVGTransformList;
  122942. begin
  122943. Result:=ReadJSPropertyObject('baseVal',TJSSVGTransformList) as IJSSVGTransformList;
  122944. end;
  122945. function TJSSVGAnimatedTransformList._GetanimVal: IJSSVGTransformList;
  122946. begin
  122947. Result:=ReadJSPropertyObject('animVal',TJSSVGTransformList) as IJSSVGTransformList;
  122948. end;
  122949. class function TJSSVGAnimatedTransformList.JSClassName: UnicodeString;
  122950. begin
  122951. Result:='SVGAnimatedTransformList';
  122952. end;
  122953. class function TJSSVGAnimatedTransformList.Cast(const Intf: IJSObject): IJSSVGAnimatedTransformList;
  122954. begin
  122955. Result:=TJSSVGAnimatedTransformList.JOBCast(Intf);
  122956. end;
  122957. class function TJSSVGAnimateElement.JSClassName: UnicodeString;
  122958. begin
  122959. Result:='SVGAnimateElement';
  122960. end;
  122961. class function TJSSVGAnimateElement.Cast(const Intf: IJSObject): IJSSVGAnimateElement;
  122962. begin
  122963. Result:=TJSSVGAnimateElement.JOBCast(Intf);
  122964. end;
  122965. class function TJSSVGAnimateMotionElement.JSClassName: UnicodeString;
  122966. begin
  122967. Result:='SVGAnimateMotionElement';
  122968. end;
  122969. class function TJSSVGAnimateMotionElement.Cast(const Intf: IJSObject): IJSSVGAnimateMotionElement;
  122970. begin
  122971. Result:=TJSSVGAnimateMotionElement.JOBCast(Intf);
  122972. end;
  122973. class function TJSSVGAnimateTransformElement.JSClassName: UnicodeString;
  122974. begin
  122975. Result:='SVGAnimateTransformElement';
  122976. end;
  122977. class function TJSSVGAnimateTransformElement.Cast(const Intf: IJSObject): IJSSVGAnimateTransformElement;
  122978. begin
  122979. Result:=TJSSVGAnimateTransformElement.JOBCast(Intf);
  122980. end;
  122981. function TJSSVGAnimationElement._GettargetElement: IJSSVGElement;
  122982. begin
  122983. Result:=ReadJSPropertyObject('targetElement',TJSSVGElement) as IJSSVGElement;
  122984. end;
  122985. function TJSSVGAnimationElement._Getonbegin: TEventHandler;
  122986. begin
  122987. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbegin')));
  122988. end;
  122989. function TJSSVGAnimationElement._Getonend: TEventHandler;
  122990. begin
  122991. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onend')));
  122992. end;
  122993. function TJSSVGAnimationElement._Getonrepeat: TEventHandler;
  122994. begin
  122995. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onrepeat')));
  122996. end;
  122997. function TJSSVGAnimationElement._GetrequiredExtensions: IJSSVGStringList;
  122998. begin
  122999. Result:=ReadJSPropertyObject('requiredExtensions',TJSSVGStringList) as IJSSVGStringList;
  123000. end;
  123001. function TJSSVGAnimationElement._GetsystemLanguage: IJSSVGStringList;
  123002. begin
  123003. Result:=ReadJSPropertyObject('systemLanguage',TJSSVGStringList) as IJSSVGStringList;
  123004. end;
  123005. procedure TJSSVGAnimationElement._Setonbegin(const aValue : TEventHandler);
  123006. begin
  123007. WriteJSPropertyMethod('onbegin',TMethod(aValue));
  123008. end;
  123009. procedure TJSSVGAnimationElement._Setonend(const aValue : TEventHandler);
  123010. begin
  123011. WriteJSPropertyMethod('onend',TMethod(aValue));
  123012. end;
  123013. procedure TJSSVGAnimationElement._Setonrepeat(const aValue : TEventHandler);
  123014. begin
  123015. WriteJSPropertyMethod('onrepeat',TMethod(aValue));
  123016. end;
  123017. function TJSSVGAnimationElement.getStartTime: Single;
  123018. begin
  123019. Result:=InvokeJSDoubleResult('getStartTime',[]);
  123020. end;
  123021. function TJSSVGAnimationElement.getCurrentTime: Single;
  123022. begin
  123023. Result:=InvokeJSDoubleResult('getCurrentTime',[]);
  123024. end;
  123025. function TJSSVGAnimationElement.getSimpleDuration: Single;
  123026. begin
  123027. Result:=InvokeJSDoubleResult('getSimpleDuration',[]);
  123028. end;
  123029. procedure TJSSVGAnimationElement.beginElement;
  123030. begin
  123031. InvokeJSNoResult('beginElement',[]);
  123032. end;
  123033. procedure TJSSVGAnimationElement.beginElementAt(aOffset: Single);
  123034. begin
  123035. InvokeJSNoResult('beginElementAt',[aOffset]);
  123036. end;
  123037. procedure TJSSVGAnimationElement.endElement;
  123038. begin
  123039. InvokeJSNoResult('endElement',[]);
  123040. end;
  123041. procedure TJSSVGAnimationElement.endElementAt(aOffset: Single);
  123042. begin
  123043. InvokeJSNoResult('endElementAt',[aOffset]);
  123044. end;
  123045. class function TJSSVGAnimationElement.JSClassName: UnicodeString;
  123046. begin
  123047. Result:='SVGAnimationElement';
  123048. end;
  123049. class function TJSSVGAnimationElement.Cast(const Intf: IJSObject): IJSSVGAnimationElement;
  123050. begin
  123051. Result:=TJSSVGAnimationElement.JOBCast(Intf);
  123052. end;
  123053. function TJSSVGCircleElement._Getcx: IJSSVGAnimatedLength;
  123054. begin
  123055. Result:=ReadJSPropertyObject('cx',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  123056. end;
  123057. function TJSSVGCircleElement._Getcy: IJSSVGAnimatedLength;
  123058. begin
  123059. Result:=ReadJSPropertyObject('cy',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  123060. end;
  123061. function TJSSVGCircleElement._Getr: IJSSVGAnimatedLength;
  123062. begin
  123063. Result:=ReadJSPropertyObject('r',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  123064. end;
  123065. class function TJSSVGCircleElement.JSClassName: UnicodeString;
  123066. begin
  123067. Result:='SVGCircleElement';
  123068. end;
  123069. class function TJSSVGCircleElement.Cast(const Intf: IJSObject): IJSSVGCircleElement;
  123070. begin
  123071. Result:=TJSSVGCircleElement.JOBCast(Intf);
  123072. end;
  123073. function TJSSVGClipPathElement._GetclipPathUnits: IJSSVGAnimatedEnumeration;
  123074. begin
  123075. Result:=ReadJSPropertyObject('clipPathUnits',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  123076. end;
  123077. function TJSSVGClipPathElement._Gettransform: IJSSVGAnimatedTransformList;
  123078. begin
  123079. Result:=ReadJSPropertyObject('transform',TJSSVGAnimatedTransformList) as IJSSVGAnimatedTransformList;
  123080. end;
  123081. class function TJSSVGClipPathElement.JSClassName: UnicodeString;
  123082. begin
  123083. Result:='SVGClipPathElement';
  123084. end;
  123085. class function TJSSVGClipPathElement.Cast(const Intf: IJSObject): IJSSVGClipPathElement;
  123086. begin
  123087. Result:=TJSSVGClipPathElement.JOBCast(Intf);
  123088. end;
  123089. function TJSSVGComponentTransferFunctionElement._Gettype_: IJSSVGAnimatedEnumeration;
  123090. begin
  123091. Result:=ReadJSPropertyObject('type',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  123092. end;
  123093. function TJSSVGComponentTransferFunctionElement._GettableValues: IJSSVGAnimatedNumberList;
  123094. begin
  123095. Result:=ReadJSPropertyObject('tableValues',TJSSVGAnimatedNumberList) as IJSSVGAnimatedNumberList;
  123096. end;
  123097. function TJSSVGComponentTransferFunctionElement._Getslope: IJSSVGAnimatedNumber;
  123098. begin
  123099. Result:=ReadJSPropertyObject('slope',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  123100. end;
  123101. function TJSSVGComponentTransferFunctionElement._Getintercept: IJSSVGAnimatedNumber;
  123102. begin
  123103. Result:=ReadJSPropertyObject('intercept',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  123104. end;
  123105. function TJSSVGComponentTransferFunctionElement._Getamplitude: IJSSVGAnimatedNumber;
  123106. begin
  123107. Result:=ReadJSPropertyObject('amplitude',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  123108. end;
  123109. function TJSSVGComponentTransferFunctionElement._Getexponent: IJSSVGAnimatedNumber;
  123110. begin
  123111. Result:=ReadJSPropertyObject('exponent',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  123112. end;
  123113. function TJSSVGComponentTransferFunctionElement._Getoffset: IJSSVGAnimatedNumber;
  123114. begin
  123115. Result:=ReadJSPropertyObject('offset',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  123116. end;
  123117. class function TJSSVGComponentTransferFunctionElement.JSClassName: UnicodeString;
  123118. begin
  123119. Result:='SVGComponentTransferFunctionElement';
  123120. end;
  123121. class function TJSSVGComponentTransferFunctionElement.Cast(const Intf: IJSObject): IJSSVGComponentTransferFunctionElement;
  123122. begin
  123123. Result:=TJSSVGComponentTransferFunctionElement.JOBCast(Intf);
  123124. end;
  123125. class function TJSSVGDefsElement.JSClassName: UnicodeString;
  123126. begin
  123127. Result:='SVGDefsElement';
  123128. end;
  123129. class function TJSSVGDefsElement.Cast(const Intf: IJSObject): IJSSVGDefsElement;
  123130. begin
  123131. Result:=TJSSVGDefsElement.JOBCast(Intf);
  123132. end;
  123133. class function TJSSVGDescElement.JSClassName: UnicodeString;
  123134. begin
  123135. Result:='SVGDescElement';
  123136. end;
  123137. class function TJSSVGDescElement.Cast(const Intf: IJSObject): IJSSVGDescElement;
  123138. begin
  123139. Result:=TJSSVGDescElement.JOBCast(Intf);
  123140. end;
  123141. function TJSSVGElement._Getid2: UnicodeString;
  123142. begin
  123143. Result:=ReadJSPropertyUnicodeString('id');
  123144. end;
  123145. function TJSSVGElement._GetclassName_2: IJSSVGAnimatedString;
  123146. begin
  123147. Result:=ReadJSPropertyObject('className',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  123148. end;
  123149. function TJSSVGElement._GetownerSVGElement: IJSSVGSVGElement;
  123150. begin
  123151. Result:=ReadJSPropertyObject('ownerSVGElement',TJSSVGSVGElement) as IJSSVGSVGElement;
  123152. end;
  123153. function TJSSVGElement._GetviewportElement: IJSSVGElement;
  123154. begin
  123155. Result:=ReadJSPropertyObject('viewportElement',TJSSVGElement) as IJSSVGElement;
  123156. end;
  123157. function TJSSVGElement._Getnonce: UnicodeString;
  123158. begin
  123159. Result:=ReadJSPropertyUnicodeString('nonce');
  123160. end;
  123161. function TJSSVGElement._Getonabort: TEventHandler;
  123162. begin
  123163. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  123164. end;
  123165. function TJSSVGElement._Getonblur: TEventHandler;
  123166. begin
  123167. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onblur')));
  123168. end;
  123169. function TJSSVGElement._Getonfocus: TEventHandler;
  123170. begin
  123171. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfocus')));
  123172. end;
  123173. function TJSSVGElement._Getoncancel: TEventHandler;
  123174. begin
  123175. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncancel')));
  123176. end;
  123177. function TJSSVGElement._Getonauxclick: TEventHandler;
  123178. begin
  123179. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onauxclick')));
  123180. end;
  123181. function TJSSVGElement._Getonbeforeinput: TEventHandler;
  123182. begin
  123183. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforeinput')));
  123184. end;
  123185. function TJSSVGElement._Getonbeforetoggle: TEventHandler;
  123186. begin
  123187. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforetoggle')));
  123188. end;
  123189. function TJSSVGElement._Getoncanplay: TEventHandler;
  123190. begin
  123191. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplay')));
  123192. end;
  123193. function TJSSVGElement._Getoncanplaythrough: TEventHandler;
  123194. begin
  123195. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplaythrough')));
  123196. end;
  123197. function TJSSVGElement._Getonchange: TEventHandler;
  123198. begin
  123199. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  123200. end;
  123201. function TJSSVGElement._Getonclick: TEventHandler;
  123202. begin
  123203. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclick')));
  123204. end;
  123205. function TJSSVGElement._Getonclose: TEventHandler;
  123206. begin
  123207. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclose')));
  123208. end;
  123209. function TJSSVGElement._Getoncontextlost: TEventHandler;
  123210. begin
  123211. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextlost')));
  123212. end;
  123213. function TJSSVGElement._Getoncontextmenu: TEventHandler;
  123214. begin
  123215. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextmenu')));
  123216. end;
  123217. function TJSSVGElement._Getoncontextrestored: TEventHandler;
  123218. begin
  123219. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextrestored')));
  123220. end;
  123221. function TJSSVGElement._Getoncopy: TEventHandler;
  123222. begin
  123223. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncopy')));
  123224. end;
  123225. function TJSSVGElement._Getoncuechange: TEventHandler;
  123226. begin
  123227. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncuechange')));
  123228. end;
  123229. function TJSSVGElement._Getoncut: TEventHandler;
  123230. begin
  123231. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncut')));
  123232. end;
  123233. function TJSSVGElement._Getondblclick: TEventHandler;
  123234. begin
  123235. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondblclick')));
  123236. end;
  123237. function TJSSVGElement._Getondrag: TEventHandler;
  123238. begin
  123239. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrag')));
  123240. end;
  123241. function TJSSVGElement._Getondragend: TEventHandler;
  123242. begin
  123243. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragend')));
  123244. end;
  123245. function TJSSVGElement._Getondragenter: TEventHandler;
  123246. begin
  123247. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragenter')));
  123248. end;
  123249. function TJSSVGElement._Getondragexit: TEventHandler;
  123250. begin
  123251. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragexit')));
  123252. end;
  123253. function TJSSVGElement._Getondragleave: TEventHandler;
  123254. begin
  123255. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragleave')));
  123256. end;
  123257. function TJSSVGElement._Getondragover: TEventHandler;
  123258. begin
  123259. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragover')));
  123260. end;
  123261. function TJSSVGElement._Getondragstart: TEventHandler;
  123262. begin
  123263. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragstart')));
  123264. end;
  123265. function TJSSVGElement._Getondrop: TEventHandler;
  123266. begin
  123267. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrop')));
  123268. end;
  123269. function TJSSVGElement._Getondurationchange: TEventHandler;
  123270. begin
  123271. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondurationchange')));
  123272. end;
  123273. function TJSSVGElement._Getonemptied: TEventHandler;
  123274. begin
  123275. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onemptied')));
  123276. end;
  123277. function TJSSVGElement._Getonended: TEventHandler;
  123278. begin
  123279. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onended')));
  123280. end;
  123281. function TJSSVGElement._Getonformdata: TEventHandler;
  123282. begin
  123283. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onformdata')));
  123284. end;
  123285. function TJSSVGElement._Getoninput: TEventHandler;
  123286. begin
  123287. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninput')));
  123288. end;
  123289. function TJSSVGElement._Getoninvalid: TEventHandler;
  123290. begin
  123291. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninvalid')));
  123292. end;
  123293. function TJSSVGElement._Getonkeydown: TEventHandler;
  123294. begin
  123295. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeydown')));
  123296. end;
  123297. function TJSSVGElement._Getonkeypress: TEventHandler;
  123298. begin
  123299. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeypress')));
  123300. end;
  123301. function TJSSVGElement._Getonkeyup: TEventHandler;
  123302. begin
  123303. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeyup')));
  123304. end;
  123305. function TJSSVGElement._Getonload: TEventHandler;
  123306. begin
  123307. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onload')));
  123308. end;
  123309. function TJSSVGElement._Getonloadeddata: TEventHandler;
  123310. begin
  123311. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadeddata')));
  123312. end;
  123313. function TJSSVGElement._Getonloadedmetadata: TEventHandler;
  123314. begin
  123315. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadedmetadata')));
  123316. end;
  123317. function TJSSVGElement._Getonloadstart: TEventHandler;
  123318. begin
  123319. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadstart')));
  123320. end;
  123321. function TJSSVGElement._Getonmousedown: TEventHandler;
  123322. begin
  123323. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousedown')));
  123324. end;
  123325. function TJSSVGElement._Getonmouseenter: TEventHandler;
  123326. begin
  123327. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseenter')));
  123328. end;
  123329. function TJSSVGElement._Getonmouseleave: TEventHandler;
  123330. begin
  123331. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseleave')));
  123332. end;
  123333. function TJSSVGElement._Getonmousemove: TEventHandler;
  123334. begin
  123335. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousemove')));
  123336. end;
  123337. function TJSSVGElement._Getonmouseout: TEventHandler;
  123338. begin
  123339. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseout')));
  123340. end;
  123341. function TJSSVGElement._Getonmouseover: TEventHandler;
  123342. begin
  123343. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseover')));
  123344. end;
  123345. function TJSSVGElement._Getonmouseup: TEventHandler;
  123346. begin
  123347. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseup')));
  123348. end;
  123349. function TJSSVGElement._Getonwheel: TEventHandler;
  123350. begin
  123351. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwheel')));
  123352. end;
  123353. function TJSSVGElement._Getonpaste: TEventHandler;
  123354. begin
  123355. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpaste')));
  123356. end;
  123357. function TJSSVGElement._Getonpause: TEventHandler;
  123358. begin
  123359. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpause')));
  123360. end;
  123361. function TJSSVGElement._Getonplay: TEventHandler;
  123362. begin
  123363. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplay')));
  123364. end;
  123365. function TJSSVGElement._Getonplaying: TEventHandler;
  123366. begin
  123367. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplaying')));
  123368. end;
  123369. function TJSSVGElement._Getonprogress: TEventHandler;
  123370. begin
  123371. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onprogress')));
  123372. end;
  123373. function TJSSVGElement._Getonratechange: TEventHandler;
  123374. begin
  123375. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onratechange')));
  123376. end;
  123377. function TJSSVGElement._Getonreset: TEventHandler;
  123378. begin
  123379. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onreset')));
  123380. end;
  123381. function TJSSVGElement._Getonresize: TEventHandler;
  123382. begin
  123383. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresize')));
  123384. end;
  123385. function TJSSVGElement._Getonscroll: TEventHandler;
  123386. begin
  123387. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscroll')));
  123388. end;
  123389. function TJSSVGElement._Getonscrollend: TEventHandler;
  123390. begin
  123391. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscrollend')));
  123392. end;
  123393. function TJSSVGElement._Getonsecuritypolicyviolation: TEventHandler;
  123394. begin
  123395. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsecuritypolicyviolation')));
  123396. end;
  123397. function TJSSVGElement._Getonseeked: TEventHandler;
  123398. begin
  123399. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeked')));
  123400. end;
  123401. function TJSSVGElement._Getonseeking: TEventHandler;
  123402. begin
  123403. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeking')));
  123404. end;
  123405. function TJSSVGElement._Getonselect: TEventHandler;
  123406. begin
  123407. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselect')));
  123408. end;
  123409. function TJSSVGElement._Getonslotchange: TEventHandler;
  123410. begin
  123411. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onslotchange')));
  123412. end;
  123413. function TJSSVGElement._Getonstalled: TEventHandler;
  123414. begin
  123415. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstalled')));
  123416. end;
  123417. function TJSSVGElement._Getonsubmit: TEventHandler;
  123418. begin
  123419. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsubmit')));
  123420. end;
  123421. function TJSSVGElement._Getonsuspend: TEventHandler;
  123422. begin
  123423. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsuspend')));
  123424. end;
  123425. function TJSSVGElement._Getontimeupdate: TEventHandler;
  123426. begin
  123427. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontimeupdate')));
  123428. end;
  123429. function TJSSVGElement._Getonvolumechange: TEventHandler;
  123430. begin
  123431. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvolumechange')));
  123432. end;
  123433. function TJSSVGElement._Getonwaiting: TEventHandler;
  123434. begin
  123435. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwaiting')));
  123436. end;
  123437. function TJSSVGElement._Getonselectstart: TEventHandler;
  123438. begin
  123439. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectstart')));
  123440. end;
  123441. function TJSSVGElement._Getonselectionchange: TEventHandler;
  123442. begin
  123443. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectionchange')));
  123444. end;
  123445. function TJSSVGElement._Getontoggle: TEventHandler;
  123446. begin
  123447. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontoggle')));
  123448. end;
  123449. function TJSSVGElement._Getonpointercancel: TEventHandler;
  123450. begin
  123451. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointercancel')));
  123452. end;
  123453. function TJSSVGElement._Getonpointerdown: TEventHandler;
  123454. begin
  123455. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerdown')));
  123456. end;
  123457. function TJSSVGElement._Getonpointerup: TEventHandler;
  123458. begin
  123459. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerup')));
  123460. end;
  123461. function TJSSVGElement._Getonpointermove: TEventHandler;
  123462. begin
  123463. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointermove')));
  123464. end;
  123465. function TJSSVGElement._Getonpointerout: TEventHandler;
  123466. begin
  123467. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerout')));
  123468. end;
  123469. function TJSSVGElement._Getonpointerover: TEventHandler;
  123470. begin
  123471. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerover')));
  123472. end;
  123473. function TJSSVGElement._Getonpointerenter: TEventHandler;
  123474. begin
  123475. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerenter')));
  123476. end;
  123477. function TJSSVGElement._Getonpointerleave: TEventHandler;
  123478. begin
  123479. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerleave')));
  123480. end;
  123481. function TJSSVGElement._Getongotpointercapture: TEventHandler;
  123482. begin
  123483. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongotpointercapture')));
  123484. end;
  123485. function TJSSVGElement._Getonlostpointercapture: TEventHandler;
  123486. begin
  123487. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onlostpointercapture')));
  123488. end;
  123489. function TJSSVGElement._Getonmozfullscreenchange: TEventHandler;
  123490. begin
  123491. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenchange')));
  123492. end;
  123493. function TJSSVGElement._Getonmozfullscreenerror: TEventHandler;
  123494. begin
  123495. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenerror')));
  123496. end;
  123497. function TJSSVGElement._Getonanimationcancel: TEventHandler;
  123498. begin
  123499. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationcancel')));
  123500. end;
  123501. function TJSSVGElement._Getonanimationend: TEventHandler;
  123502. begin
  123503. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationend')));
  123504. end;
  123505. function TJSSVGElement._Getonanimationiteration: TEventHandler;
  123506. begin
  123507. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationiteration')));
  123508. end;
  123509. function TJSSVGElement._Getonanimationstart: TEventHandler;
  123510. begin
  123511. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationstart')));
  123512. end;
  123513. function TJSSVGElement._Getontransitioncancel: TEventHandler;
  123514. begin
  123515. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitioncancel')));
  123516. end;
  123517. function TJSSVGElement._Getontransitionend: TEventHandler;
  123518. begin
  123519. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionend')));
  123520. end;
  123521. function TJSSVGElement._Getontransitionrun: TEventHandler;
  123522. begin
  123523. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionrun')));
  123524. end;
  123525. function TJSSVGElement._Getontransitionstart: TEventHandler;
  123526. begin
  123527. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionstart')));
  123528. end;
  123529. function TJSSVGElement._Getonwebkitanimationend: TEventHandler;
  123530. begin
  123531. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationend')));
  123532. end;
  123533. function TJSSVGElement._Getonwebkitanimationiteration: TEventHandler;
  123534. begin
  123535. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationiteration')));
  123536. end;
  123537. function TJSSVGElement._Getonwebkitanimationstart: TEventHandler;
  123538. begin
  123539. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationstart')));
  123540. end;
  123541. function TJSSVGElement._Getonwebkittransitionend: TEventHandler;
  123542. begin
  123543. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkittransitionend')));
  123544. end;
  123545. function TJSSVGElement._Getdataset: IJSDOMStringMap;
  123546. begin
  123547. Result:=ReadJSPropertyObject('dataset',TJSDOMStringMap) as IJSDOMStringMap;
  123548. end;
  123549. function TJSSVGElement._Getautofocus: Boolean;
  123550. begin
  123551. Result:=ReadJSPropertyBoolean('autofocus');
  123552. end;
  123553. function TJSSVGElement._GettabIndex: LongInt;
  123554. begin
  123555. Result:=ReadJSPropertyLongInt('tabIndex');
  123556. end;
  123557. function TJSSVGElement._Getstyle: IJSCSSStyleDeclaration;
  123558. begin
  123559. Result:=ReadJSPropertyObject('style',TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  123560. end;
  123561. function TJSSVGElement._Getontouchstart: TEventHandler;
  123562. begin
  123563. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchstart')));
  123564. end;
  123565. function TJSSVGElement._Getontouchend: TEventHandler;
  123566. begin
  123567. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchend')));
  123568. end;
  123569. function TJSSVGElement._Getontouchmove: TEventHandler;
  123570. begin
  123571. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchmove')));
  123572. end;
  123573. function TJSSVGElement._Getontouchcancel: TEventHandler;
  123574. begin
  123575. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchcancel')));
  123576. end;
  123577. function TJSSVGElement._Getonerror: TEventHandler;
  123578. begin
  123579. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  123580. end;
  123581. procedure TJSSVGElement._Setid2(const aValue : UnicodeString);
  123582. begin
  123583. WriteJSPropertyUnicodeString('id',aValue);
  123584. end;
  123585. procedure TJSSVGElement._Setnonce(const aValue : UnicodeString);
  123586. begin
  123587. WriteJSPropertyUnicodeString('nonce',aValue);
  123588. end;
  123589. procedure TJSSVGElement._Setonabort(const aValue : TEventHandler);
  123590. begin
  123591. WriteJSPropertyMethod('onabort',TMethod(aValue));
  123592. end;
  123593. procedure TJSSVGElement._Setonblur(const aValue : TEventHandler);
  123594. begin
  123595. WriteJSPropertyMethod('onblur',TMethod(aValue));
  123596. end;
  123597. procedure TJSSVGElement._Setonfocus(const aValue : TEventHandler);
  123598. begin
  123599. WriteJSPropertyMethod('onfocus',TMethod(aValue));
  123600. end;
  123601. procedure TJSSVGElement._Setoncancel(const aValue : TEventHandler);
  123602. begin
  123603. WriteJSPropertyMethod('oncancel',TMethod(aValue));
  123604. end;
  123605. procedure TJSSVGElement._Setonauxclick(const aValue : TEventHandler);
  123606. begin
  123607. WriteJSPropertyMethod('onauxclick',TMethod(aValue));
  123608. end;
  123609. procedure TJSSVGElement._Setonbeforeinput(const aValue : TEventHandler);
  123610. begin
  123611. WriteJSPropertyMethod('onbeforeinput',TMethod(aValue));
  123612. end;
  123613. procedure TJSSVGElement._Setonbeforetoggle(const aValue : TEventHandler);
  123614. begin
  123615. WriteJSPropertyMethod('onbeforetoggle',TMethod(aValue));
  123616. end;
  123617. procedure TJSSVGElement._Setoncanplay(const aValue : TEventHandler);
  123618. begin
  123619. WriteJSPropertyMethod('oncanplay',TMethod(aValue));
  123620. end;
  123621. procedure TJSSVGElement._Setoncanplaythrough(const aValue : TEventHandler);
  123622. begin
  123623. WriteJSPropertyMethod('oncanplaythrough',TMethod(aValue));
  123624. end;
  123625. procedure TJSSVGElement._Setonchange(const aValue : TEventHandler);
  123626. begin
  123627. WriteJSPropertyMethod('onchange',TMethod(aValue));
  123628. end;
  123629. procedure TJSSVGElement._Setonclick(const aValue : TEventHandler);
  123630. begin
  123631. WriteJSPropertyMethod('onclick',TMethod(aValue));
  123632. end;
  123633. procedure TJSSVGElement._Setonclose(const aValue : TEventHandler);
  123634. begin
  123635. WriteJSPropertyMethod('onclose',TMethod(aValue));
  123636. end;
  123637. procedure TJSSVGElement._Setoncontextlost(const aValue : TEventHandler);
  123638. begin
  123639. WriteJSPropertyMethod('oncontextlost',TMethod(aValue));
  123640. end;
  123641. procedure TJSSVGElement._Setoncontextmenu(const aValue : TEventHandler);
  123642. begin
  123643. WriteJSPropertyMethod('oncontextmenu',TMethod(aValue));
  123644. end;
  123645. procedure TJSSVGElement._Setoncontextrestored(const aValue : TEventHandler);
  123646. begin
  123647. WriteJSPropertyMethod('oncontextrestored',TMethod(aValue));
  123648. end;
  123649. procedure TJSSVGElement._Setoncopy(const aValue : TEventHandler);
  123650. begin
  123651. WriteJSPropertyMethod('oncopy',TMethod(aValue));
  123652. end;
  123653. procedure TJSSVGElement._Setoncuechange(const aValue : TEventHandler);
  123654. begin
  123655. WriteJSPropertyMethod('oncuechange',TMethod(aValue));
  123656. end;
  123657. procedure TJSSVGElement._Setoncut(const aValue : TEventHandler);
  123658. begin
  123659. WriteJSPropertyMethod('oncut',TMethod(aValue));
  123660. end;
  123661. procedure TJSSVGElement._Setondblclick(const aValue : TEventHandler);
  123662. begin
  123663. WriteJSPropertyMethod('ondblclick',TMethod(aValue));
  123664. end;
  123665. procedure TJSSVGElement._Setondrag(const aValue : TEventHandler);
  123666. begin
  123667. WriteJSPropertyMethod('ondrag',TMethod(aValue));
  123668. end;
  123669. procedure TJSSVGElement._Setondragend(const aValue : TEventHandler);
  123670. begin
  123671. WriteJSPropertyMethod('ondragend',TMethod(aValue));
  123672. end;
  123673. procedure TJSSVGElement._Setondragenter(const aValue : TEventHandler);
  123674. begin
  123675. WriteJSPropertyMethod('ondragenter',TMethod(aValue));
  123676. end;
  123677. procedure TJSSVGElement._Setondragexit(const aValue : TEventHandler);
  123678. begin
  123679. WriteJSPropertyMethod('ondragexit',TMethod(aValue));
  123680. end;
  123681. procedure TJSSVGElement._Setondragleave(const aValue : TEventHandler);
  123682. begin
  123683. WriteJSPropertyMethod('ondragleave',TMethod(aValue));
  123684. end;
  123685. procedure TJSSVGElement._Setondragover(const aValue : TEventHandler);
  123686. begin
  123687. WriteJSPropertyMethod('ondragover',TMethod(aValue));
  123688. end;
  123689. procedure TJSSVGElement._Setondragstart(const aValue : TEventHandler);
  123690. begin
  123691. WriteJSPropertyMethod('ondragstart',TMethod(aValue));
  123692. end;
  123693. procedure TJSSVGElement._Setondrop(const aValue : TEventHandler);
  123694. begin
  123695. WriteJSPropertyMethod('ondrop',TMethod(aValue));
  123696. end;
  123697. procedure TJSSVGElement._Setondurationchange(const aValue : TEventHandler);
  123698. begin
  123699. WriteJSPropertyMethod('ondurationchange',TMethod(aValue));
  123700. end;
  123701. procedure TJSSVGElement._Setonemptied(const aValue : TEventHandler);
  123702. begin
  123703. WriteJSPropertyMethod('onemptied',TMethod(aValue));
  123704. end;
  123705. procedure TJSSVGElement._Setonended(const aValue : TEventHandler);
  123706. begin
  123707. WriteJSPropertyMethod('onended',TMethod(aValue));
  123708. end;
  123709. procedure TJSSVGElement._Setonformdata(const aValue : TEventHandler);
  123710. begin
  123711. WriteJSPropertyMethod('onformdata',TMethod(aValue));
  123712. end;
  123713. procedure TJSSVGElement._Setoninput(const aValue : TEventHandler);
  123714. begin
  123715. WriteJSPropertyMethod('oninput',TMethod(aValue));
  123716. end;
  123717. procedure TJSSVGElement._Setoninvalid(const aValue : TEventHandler);
  123718. begin
  123719. WriteJSPropertyMethod('oninvalid',TMethod(aValue));
  123720. end;
  123721. procedure TJSSVGElement._Setonkeydown(const aValue : TEventHandler);
  123722. begin
  123723. WriteJSPropertyMethod('onkeydown',TMethod(aValue));
  123724. end;
  123725. procedure TJSSVGElement._Setonkeypress(const aValue : TEventHandler);
  123726. begin
  123727. WriteJSPropertyMethod('onkeypress',TMethod(aValue));
  123728. end;
  123729. procedure TJSSVGElement._Setonkeyup(const aValue : TEventHandler);
  123730. begin
  123731. WriteJSPropertyMethod('onkeyup',TMethod(aValue));
  123732. end;
  123733. procedure TJSSVGElement._Setonload(const aValue : TEventHandler);
  123734. begin
  123735. WriteJSPropertyMethod('onload',TMethod(aValue));
  123736. end;
  123737. procedure TJSSVGElement._Setonloadeddata(const aValue : TEventHandler);
  123738. begin
  123739. WriteJSPropertyMethod('onloadeddata',TMethod(aValue));
  123740. end;
  123741. procedure TJSSVGElement._Setonloadedmetadata(const aValue : TEventHandler);
  123742. begin
  123743. WriteJSPropertyMethod('onloadedmetadata',TMethod(aValue));
  123744. end;
  123745. procedure TJSSVGElement._Setonloadstart(const aValue : TEventHandler);
  123746. begin
  123747. WriteJSPropertyMethod('onloadstart',TMethod(aValue));
  123748. end;
  123749. procedure TJSSVGElement._Setonmousedown(const aValue : TEventHandler);
  123750. begin
  123751. WriteJSPropertyMethod('onmousedown',TMethod(aValue));
  123752. end;
  123753. procedure TJSSVGElement._Setonmouseenter(const aValue : TEventHandler);
  123754. begin
  123755. WriteJSPropertyMethod('onmouseenter',TMethod(aValue));
  123756. end;
  123757. procedure TJSSVGElement._Setonmouseleave(const aValue : TEventHandler);
  123758. begin
  123759. WriteJSPropertyMethod('onmouseleave',TMethod(aValue));
  123760. end;
  123761. procedure TJSSVGElement._Setonmousemove(const aValue : TEventHandler);
  123762. begin
  123763. WriteJSPropertyMethod('onmousemove',TMethod(aValue));
  123764. end;
  123765. procedure TJSSVGElement._Setonmouseout(const aValue : TEventHandler);
  123766. begin
  123767. WriteJSPropertyMethod('onmouseout',TMethod(aValue));
  123768. end;
  123769. procedure TJSSVGElement._Setonmouseover(const aValue : TEventHandler);
  123770. begin
  123771. WriteJSPropertyMethod('onmouseover',TMethod(aValue));
  123772. end;
  123773. procedure TJSSVGElement._Setonmouseup(const aValue : TEventHandler);
  123774. begin
  123775. WriteJSPropertyMethod('onmouseup',TMethod(aValue));
  123776. end;
  123777. procedure TJSSVGElement._Setonwheel(const aValue : TEventHandler);
  123778. begin
  123779. WriteJSPropertyMethod('onwheel',TMethod(aValue));
  123780. end;
  123781. procedure TJSSVGElement._Setonpaste(const aValue : TEventHandler);
  123782. begin
  123783. WriteJSPropertyMethod('onpaste',TMethod(aValue));
  123784. end;
  123785. procedure TJSSVGElement._Setonpause(const aValue : TEventHandler);
  123786. begin
  123787. WriteJSPropertyMethod('onpause',TMethod(aValue));
  123788. end;
  123789. procedure TJSSVGElement._Setonplay(const aValue : TEventHandler);
  123790. begin
  123791. WriteJSPropertyMethod('onplay',TMethod(aValue));
  123792. end;
  123793. procedure TJSSVGElement._Setonplaying(const aValue : TEventHandler);
  123794. begin
  123795. WriteJSPropertyMethod('onplaying',TMethod(aValue));
  123796. end;
  123797. procedure TJSSVGElement._Setonprogress(const aValue : TEventHandler);
  123798. begin
  123799. WriteJSPropertyMethod('onprogress',TMethod(aValue));
  123800. end;
  123801. procedure TJSSVGElement._Setonratechange(const aValue : TEventHandler);
  123802. begin
  123803. WriteJSPropertyMethod('onratechange',TMethod(aValue));
  123804. end;
  123805. procedure TJSSVGElement._Setonreset(const aValue : TEventHandler);
  123806. begin
  123807. WriteJSPropertyMethod('onreset',TMethod(aValue));
  123808. end;
  123809. procedure TJSSVGElement._Setonresize(const aValue : TEventHandler);
  123810. begin
  123811. WriteJSPropertyMethod('onresize',TMethod(aValue));
  123812. end;
  123813. procedure TJSSVGElement._Setonscroll(const aValue : TEventHandler);
  123814. begin
  123815. WriteJSPropertyMethod('onscroll',TMethod(aValue));
  123816. end;
  123817. procedure TJSSVGElement._Setonscrollend(const aValue : TEventHandler);
  123818. begin
  123819. WriteJSPropertyMethod('onscrollend',TMethod(aValue));
  123820. end;
  123821. procedure TJSSVGElement._Setonsecuritypolicyviolation(const aValue : TEventHandler);
  123822. begin
  123823. WriteJSPropertyMethod('onsecuritypolicyviolation',TMethod(aValue));
  123824. end;
  123825. procedure TJSSVGElement._Setonseeked(const aValue : TEventHandler);
  123826. begin
  123827. WriteJSPropertyMethod('onseeked',TMethod(aValue));
  123828. end;
  123829. procedure TJSSVGElement._Setonseeking(const aValue : TEventHandler);
  123830. begin
  123831. WriteJSPropertyMethod('onseeking',TMethod(aValue));
  123832. end;
  123833. procedure TJSSVGElement._Setonselect(const aValue : TEventHandler);
  123834. begin
  123835. WriteJSPropertyMethod('onselect',TMethod(aValue));
  123836. end;
  123837. procedure TJSSVGElement._Setonslotchange(const aValue : TEventHandler);
  123838. begin
  123839. WriteJSPropertyMethod('onslotchange',TMethod(aValue));
  123840. end;
  123841. procedure TJSSVGElement._Setonstalled(const aValue : TEventHandler);
  123842. begin
  123843. WriteJSPropertyMethod('onstalled',TMethod(aValue));
  123844. end;
  123845. procedure TJSSVGElement._Setonsubmit(const aValue : TEventHandler);
  123846. begin
  123847. WriteJSPropertyMethod('onsubmit',TMethod(aValue));
  123848. end;
  123849. procedure TJSSVGElement._Setonsuspend(const aValue : TEventHandler);
  123850. begin
  123851. WriteJSPropertyMethod('onsuspend',TMethod(aValue));
  123852. end;
  123853. procedure TJSSVGElement._Setontimeupdate(const aValue : TEventHandler);
  123854. begin
  123855. WriteJSPropertyMethod('ontimeupdate',TMethod(aValue));
  123856. end;
  123857. procedure TJSSVGElement._Setonvolumechange(const aValue : TEventHandler);
  123858. begin
  123859. WriteJSPropertyMethod('onvolumechange',TMethod(aValue));
  123860. end;
  123861. procedure TJSSVGElement._Setonwaiting(const aValue : TEventHandler);
  123862. begin
  123863. WriteJSPropertyMethod('onwaiting',TMethod(aValue));
  123864. end;
  123865. procedure TJSSVGElement._Setonselectstart(const aValue : TEventHandler);
  123866. begin
  123867. WriteJSPropertyMethod('onselectstart',TMethod(aValue));
  123868. end;
  123869. procedure TJSSVGElement._Setonselectionchange(const aValue : TEventHandler);
  123870. begin
  123871. WriteJSPropertyMethod('onselectionchange',TMethod(aValue));
  123872. end;
  123873. procedure TJSSVGElement._Setontoggle(const aValue : TEventHandler);
  123874. begin
  123875. WriteJSPropertyMethod('ontoggle',TMethod(aValue));
  123876. end;
  123877. procedure TJSSVGElement._Setonpointercancel(const aValue : TEventHandler);
  123878. begin
  123879. WriteJSPropertyMethod('onpointercancel',TMethod(aValue));
  123880. end;
  123881. procedure TJSSVGElement._Setonpointerdown(const aValue : TEventHandler);
  123882. begin
  123883. WriteJSPropertyMethod('onpointerdown',TMethod(aValue));
  123884. end;
  123885. procedure TJSSVGElement._Setonpointerup(const aValue : TEventHandler);
  123886. begin
  123887. WriteJSPropertyMethod('onpointerup',TMethod(aValue));
  123888. end;
  123889. procedure TJSSVGElement._Setonpointermove(const aValue : TEventHandler);
  123890. begin
  123891. WriteJSPropertyMethod('onpointermove',TMethod(aValue));
  123892. end;
  123893. procedure TJSSVGElement._Setonpointerout(const aValue : TEventHandler);
  123894. begin
  123895. WriteJSPropertyMethod('onpointerout',TMethod(aValue));
  123896. end;
  123897. procedure TJSSVGElement._Setonpointerover(const aValue : TEventHandler);
  123898. begin
  123899. WriteJSPropertyMethod('onpointerover',TMethod(aValue));
  123900. end;
  123901. procedure TJSSVGElement._Setonpointerenter(const aValue : TEventHandler);
  123902. begin
  123903. WriteJSPropertyMethod('onpointerenter',TMethod(aValue));
  123904. end;
  123905. procedure TJSSVGElement._Setonpointerleave(const aValue : TEventHandler);
  123906. begin
  123907. WriteJSPropertyMethod('onpointerleave',TMethod(aValue));
  123908. end;
  123909. procedure TJSSVGElement._Setongotpointercapture(const aValue : TEventHandler);
  123910. begin
  123911. WriteJSPropertyMethod('ongotpointercapture',TMethod(aValue));
  123912. end;
  123913. procedure TJSSVGElement._Setonlostpointercapture(const aValue : TEventHandler);
  123914. begin
  123915. WriteJSPropertyMethod('onlostpointercapture',TMethod(aValue));
  123916. end;
  123917. procedure TJSSVGElement._Setonmozfullscreenchange(const aValue : TEventHandler);
  123918. begin
  123919. WriteJSPropertyMethod('onmozfullscreenchange',TMethod(aValue));
  123920. end;
  123921. procedure TJSSVGElement._Setonmozfullscreenerror(const aValue : TEventHandler);
  123922. begin
  123923. WriteJSPropertyMethod('onmozfullscreenerror',TMethod(aValue));
  123924. end;
  123925. procedure TJSSVGElement._Setonanimationcancel(const aValue : TEventHandler);
  123926. begin
  123927. WriteJSPropertyMethod('onanimationcancel',TMethod(aValue));
  123928. end;
  123929. procedure TJSSVGElement._Setonanimationend(const aValue : TEventHandler);
  123930. begin
  123931. WriteJSPropertyMethod('onanimationend',TMethod(aValue));
  123932. end;
  123933. procedure TJSSVGElement._Setonanimationiteration(const aValue : TEventHandler);
  123934. begin
  123935. WriteJSPropertyMethod('onanimationiteration',TMethod(aValue));
  123936. end;
  123937. procedure TJSSVGElement._Setonanimationstart(const aValue : TEventHandler);
  123938. begin
  123939. WriteJSPropertyMethod('onanimationstart',TMethod(aValue));
  123940. end;
  123941. procedure TJSSVGElement._Setontransitioncancel(const aValue : TEventHandler);
  123942. begin
  123943. WriteJSPropertyMethod('ontransitioncancel',TMethod(aValue));
  123944. end;
  123945. procedure TJSSVGElement._Setontransitionend(const aValue : TEventHandler);
  123946. begin
  123947. WriteJSPropertyMethod('ontransitionend',TMethod(aValue));
  123948. end;
  123949. procedure TJSSVGElement._Setontransitionrun(const aValue : TEventHandler);
  123950. begin
  123951. WriteJSPropertyMethod('ontransitionrun',TMethod(aValue));
  123952. end;
  123953. procedure TJSSVGElement._Setontransitionstart(const aValue : TEventHandler);
  123954. begin
  123955. WriteJSPropertyMethod('ontransitionstart',TMethod(aValue));
  123956. end;
  123957. procedure TJSSVGElement._Setonwebkitanimationend(const aValue : TEventHandler);
  123958. begin
  123959. WriteJSPropertyMethod('onwebkitanimationend',TMethod(aValue));
  123960. end;
  123961. procedure TJSSVGElement._Setonwebkitanimationiteration(const aValue : TEventHandler);
  123962. begin
  123963. WriteJSPropertyMethod('onwebkitanimationiteration',TMethod(aValue));
  123964. end;
  123965. procedure TJSSVGElement._Setonwebkitanimationstart(const aValue : TEventHandler);
  123966. begin
  123967. WriteJSPropertyMethod('onwebkitanimationstart',TMethod(aValue));
  123968. end;
  123969. procedure TJSSVGElement._Setonwebkittransitionend(const aValue : TEventHandler);
  123970. begin
  123971. WriteJSPropertyMethod('onwebkittransitionend',TMethod(aValue));
  123972. end;
  123973. procedure TJSSVGElement._Setautofocus(const aValue : Boolean);
  123974. begin
  123975. WriteJSPropertyBoolean('autofocus',aValue);
  123976. end;
  123977. procedure TJSSVGElement._SettabIndex(const aValue : LongInt);
  123978. begin
  123979. WriteJSPropertyLongInt('tabIndex',aValue);
  123980. end;
  123981. procedure TJSSVGElement._Setontouchstart(const aValue : TEventHandler);
  123982. begin
  123983. WriteJSPropertyMethod('ontouchstart',TMethod(aValue));
  123984. end;
  123985. procedure TJSSVGElement._Setontouchend(const aValue : TEventHandler);
  123986. begin
  123987. WriteJSPropertyMethod('ontouchend',TMethod(aValue));
  123988. end;
  123989. procedure TJSSVGElement._Setontouchmove(const aValue : TEventHandler);
  123990. begin
  123991. WriteJSPropertyMethod('ontouchmove',TMethod(aValue));
  123992. end;
  123993. procedure TJSSVGElement._Setontouchcancel(const aValue : TEventHandler);
  123994. begin
  123995. WriteJSPropertyMethod('ontouchcancel',TMethod(aValue));
  123996. end;
  123997. procedure TJSSVGElement._Setonerror(const aValue : TEventHandler);
  123998. begin
  123999. WriteJSPropertyMethod('onerror',TMethod(aValue));
  124000. end;
  124001. procedure TJSSVGElement.focus(const aOptions: TJSFocusOptions);
  124002. begin
  124003. InvokeJSNoResult('focus',[aOptions]);
  124004. end;
  124005. procedure TJSSVGElement.focus;
  124006. begin
  124007. InvokeJSNoResult('focus',[]);
  124008. end;
  124009. procedure TJSSVGElement.blur;
  124010. begin
  124011. InvokeJSNoResult('blur',[]);
  124012. end;
  124013. class function TJSSVGElement.JSClassName: UnicodeString;
  124014. begin
  124015. Result:='SVGElement';
  124016. end;
  124017. class function TJSSVGElement.Cast(const Intf: IJSObject): IJSSVGElement;
  124018. begin
  124019. Result:=TJSSVGElement.JOBCast(Intf);
  124020. end;
  124021. function TJSSVGEllipseElement._Getcx: IJSSVGAnimatedLength;
  124022. begin
  124023. Result:=ReadJSPropertyObject('cx',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124024. end;
  124025. function TJSSVGEllipseElement._Getcy: IJSSVGAnimatedLength;
  124026. begin
  124027. Result:=ReadJSPropertyObject('cy',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124028. end;
  124029. function TJSSVGEllipseElement._Getrx: IJSSVGAnimatedLength;
  124030. begin
  124031. Result:=ReadJSPropertyObject('rx',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124032. end;
  124033. function TJSSVGEllipseElement._Getry: IJSSVGAnimatedLength;
  124034. begin
  124035. Result:=ReadJSPropertyObject('ry',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124036. end;
  124037. class function TJSSVGEllipseElement.JSClassName: UnicodeString;
  124038. begin
  124039. Result:='SVGEllipseElement';
  124040. end;
  124041. class function TJSSVGEllipseElement.Cast(const Intf: IJSObject): IJSSVGEllipseElement;
  124042. begin
  124043. Result:=TJSSVGEllipseElement.JOBCast(Intf);
  124044. end;
  124045. function TJSSVGFEBlendElement._Getin1: IJSSVGAnimatedString;
  124046. begin
  124047. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124048. end;
  124049. function TJSSVGFEBlendElement._Getin2: IJSSVGAnimatedString;
  124050. begin
  124051. Result:=ReadJSPropertyObject('in2',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124052. end;
  124053. function TJSSVGFEBlendElement._Getmode: IJSSVGAnimatedEnumeration;
  124054. begin
  124055. Result:=ReadJSPropertyObject('mode',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  124056. end;
  124057. function TJSSVGFEBlendElement._Getx: IJSSVGAnimatedLength;
  124058. begin
  124059. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124060. end;
  124061. function TJSSVGFEBlendElement._Gety: IJSSVGAnimatedLength;
  124062. begin
  124063. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124064. end;
  124065. function TJSSVGFEBlendElement._Getwidth: IJSSVGAnimatedLength;
  124066. begin
  124067. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124068. end;
  124069. function TJSSVGFEBlendElement._Getheight: IJSSVGAnimatedLength;
  124070. begin
  124071. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124072. end;
  124073. function TJSSVGFEBlendElement._Getresult: IJSSVGAnimatedString;
  124074. begin
  124075. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124076. end;
  124077. class function TJSSVGFEBlendElement.JSClassName: UnicodeString;
  124078. begin
  124079. Result:='SVGFEBlendElement';
  124080. end;
  124081. class function TJSSVGFEBlendElement.Cast(const Intf: IJSObject): IJSSVGFEBlendElement;
  124082. begin
  124083. Result:=TJSSVGFEBlendElement.JOBCast(Intf);
  124084. end;
  124085. function TJSSVGFEColorMatrixElement._Getin1: IJSSVGAnimatedString;
  124086. begin
  124087. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124088. end;
  124089. function TJSSVGFEColorMatrixElement._Gettype_: IJSSVGAnimatedEnumeration;
  124090. begin
  124091. Result:=ReadJSPropertyObject('type',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  124092. end;
  124093. function TJSSVGFEColorMatrixElement._Getvalues: IJSSVGAnimatedNumberList;
  124094. begin
  124095. Result:=ReadJSPropertyObject('values',TJSSVGAnimatedNumberList) as IJSSVGAnimatedNumberList;
  124096. end;
  124097. function TJSSVGFEColorMatrixElement._Getx: IJSSVGAnimatedLength;
  124098. begin
  124099. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124100. end;
  124101. function TJSSVGFEColorMatrixElement._Gety: IJSSVGAnimatedLength;
  124102. begin
  124103. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124104. end;
  124105. function TJSSVGFEColorMatrixElement._Getwidth: IJSSVGAnimatedLength;
  124106. begin
  124107. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124108. end;
  124109. function TJSSVGFEColorMatrixElement._Getheight: IJSSVGAnimatedLength;
  124110. begin
  124111. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124112. end;
  124113. function TJSSVGFEColorMatrixElement._Getresult: IJSSVGAnimatedString;
  124114. begin
  124115. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124116. end;
  124117. class function TJSSVGFEColorMatrixElement.JSClassName: UnicodeString;
  124118. begin
  124119. Result:='SVGFEColorMatrixElement';
  124120. end;
  124121. class function TJSSVGFEColorMatrixElement.Cast(const Intf: IJSObject): IJSSVGFEColorMatrixElement;
  124122. begin
  124123. Result:=TJSSVGFEColorMatrixElement.JOBCast(Intf);
  124124. end;
  124125. function TJSSVGFEComponentTransferElement._Getin1: IJSSVGAnimatedString;
  124126. begin
  124127. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124128. end;
  124129. function TJSSVGFEComponentTransferElement._Getx: IJSSVGAnimatedLength;
  124130. begin
  124131. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124132. end;
  124133. function TJSSVGFEComponentTransferElement._Gety: IJSSVGAnimatedLength;
  124134. begin
  124135. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124136. end;
  124137. function TJSSVGFEComponentTransferElement._Getwidth: IJSSVGAnimatedLength;
  124138. begin
  124139. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124140. end;
  124141. function TJSSVGFEComponentTransferElement._Getheight: IJSSVGAnimatedLength;
  124142. begin
  124143. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124144. end;
  124145. function TJSSVGFEComponentTransferElement._Getresult: IJSSVGAnimatedString;
  124146. begin
  124147. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124148. end;
  124149. class function TJSSVGFEComponentTransferElement.JSClassName: UnicodeString;
  124150. begin
  124151. Result:='SVGFEComponentTransferElement';
  124152. end;
  124153. class function TJSSVGFEComponentTransferElement.Cast(const Intf: IJSObject): IJSSVGFEComponentTransferElement;
  124154. begin
  124155. Result:=TJSSVGFEComponentTransferElement.JOBCast(Intf);
  124156. end;
  124157. function TJSSVGFECompositeElement._Getin1: IJSSVGAnimatedString;
  124158. begin
  124159. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124160. end;
  124161. function TJSSVGFECompositeElement._Getin2: IJSSVGAnimatedString;
  124162. begin
  124163. Result:=ReadJSPropertyObject('in2',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124164. end;
  124165. function TJSSVGFECompositeElement._Getoperator_: IJSSVGAnimatedEnumeration;
  124166. begin
  124167. Result:=ReadJSPropertyObject('operator',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  124168. end;
  124169. function TJSSVGFECompositeElement._Getk1: IJSSVGAnimatedNumber;
  124170. begin
  124171. Result:=ReadJSPropertyObject('k1',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124172. end;
  124173. function TJSSVGFECompositeElement._Getk2: IJSSVGAnimatedNumber;
  124174. begin
  124175. Result:=ReadJSPropertyObject('k2',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124176. end;
  124177. function TJSSVGFECompositeElement._Getk3: IJSSVGAnimatedNumber;
  124178. begin
  124179. Result:=ReadJSPropertyObject('k3',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124180. end;
  124181. function TJSSVGFECompositeElement._Getk4: IJSSVGAnimatedNumber;
  124182. begin
  124183. Result:=ReadJSPropertyObject('k4',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124184. end;
  124185. function TJSSVGFECompositeElement._Getx: IJSSVGAnimatedLength;
  124186. begin
  124187. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124188. end;
  124189. function TJSSVGFECompositeElement._Gety: IJSSVGAnimatedLength;
  124190. begin
  124191. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124192. end;
  124193. function TJSSVGFECompositeElement._Getwidth: IJSSVGAnimatedLength;
  124194. begin
  124195. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124196. end;
  124197. function TJSSVGFECompositeElement._Getheight: IJSSVGAnimatedLength;
  124198. begin
  124199. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124200. end;
  124201. function TJSSVGFECompositeElement._Getresult: IJSSVGAnimatedString;
  124202. begin
  124203. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124204. end;
  124205. class function TJSSVGFECompositeElement.JSClassName: UnicodeString;
  124206. begin
  124207. Result:='SVGFECompositeElement';
  124208. end;
  124209. class function TJSSVGFECompositeElement.Cast(const Intf: IJSObject): IJSSVGFECompositeElement;
  124210. begin
  124211. Result:=TJSSVGFECompositeElement.JOBCast(Intf);
  124212. end;
  124213. function TJSSVGFEConvolveMatrixElement._Getin1: IJSSVGAnimatedString;
  124214. begin
  124215. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124216. end;
  124217. function TJSSVGFEConvolveMatrixElement._GetorderX: IJSSVGAnimatedInteger;
  124218. begin
  124219. Result:=ReadJSPropertyObject('orderX',TJSSVGAnimatedInteger) as IJSSVGAnimatedInteger;
  124220. end;
  124221. function TJSSVGFEConvolveMatrixElement._GetorderY: IJSSVGAnimatedInteger;
  124222. begin
  124223. Result:=ReadJSPropertyObject('orderY',TJSSVGAnimatedInteger) as IJSSVGAnimatedInteger;
  124224. end;
  124225. function TJSSVGFEConvolveMatrixElement._GetkernelMatrix: IJSSVGAnimatedNumberList;
  124226. begin
  124227. Result:=ReadJSPropertyObject('kernelMatrix',TJSSVGAnimatedNumberList) as IJSSVGAnimatedNumberList;
  124228. end;
  124229. function TJSSVGFEConvolveMatrixElement._Getdivisor: IJSSVGAnimatedNumber;
  124230. begin
  124231. Result:=ReadJSPropertyObject('divisor',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124232. end;
  124233. function TJSSVGFEConvolveMatrixElement._Getbias: IJSSVGAnimatedNumber;
  124234. begin
  124235. Result:=ReadJSPropertyObject('bias',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124236. end;
  124237. function TJSSVGFEConvolveMatrixElement._GettargetX: IJSSVGAnimatedInteger;
  124238. begin
  124239. Result:=ReadJSPropertyObject('targetX',TJSSVGAnimatedInteger) as IJSSVGAnimatedInteger;
  124240. end;
  124241. function TJSSVGFEConvolveMatrixElement._GettargetY: IJSSVGAnimatedInteger;
  124242. begin
  124243. Result:=ReadJSPropertyObject('targetY',TJSSVGAnimatedInteger) as IJSSVGAnimatedInteger;
  124244. end;
  124245. function TJSSVGFEConvolveMatrixElement._GetedgeMode: IJSSVGAnimatedEnumeration;
  124246. begin
  124247. Result:=ReadJSPropertyObject('edgeMode',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  124248. end;
  124249. function TJSSVGFEConvolveMatrixElement._GetkernelUnitLengthX: IJSSVGAnimatedNumber;
  124250. begin
  124251. Result:=ReadJSPropertyObject('kernelUnitLengthX',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124252. end;
  124253. function TJSSVGFEConvolveMatrixElement._GetkernelUnitLengthY: IJSSVGAnimatedNumber;
  124254. begin
  124255. Result:=ReadJSPropertyObject('kernelUnitLengthY',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124256. end;
  124257. function TJSSVGFEConvolveMatrixElement._GetpreserveAlpha: IJSSVGAnimatedBoolean;
  124258. begin
  124259. Result:=ReadJSPropertyObject('preserveAlpha',TJSSVGAnimatedBoolean) as IJSSVGAnimatedBoolean;
  124260. end;
  124261. function TJSSVGFEConvolveMatrixElement._Getx: IJSSVGAnimatedLength;
  124262. begin
  124263. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124264. end;
  124265. function TJSSVGFEConvolveMatrixElement._Gety: IJSSVGAnimatedLength;
  124266. begin
  124267. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124268. end;
  124269. function TJSSVGFEConvolveMatrixElement._Getwidth: IJSSVGAnimatedLength;
  124270. begin
  124271. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124272. end;
  124273. function TJSSVGFEConvolveMatrixElement._Getheight: IJSSVGAnimatedLength;
  124274. begin
  124275. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124276. end;
  124277. function TJSSVGFEConvolveMatrixElement._Getresult: IJSSVGAnimatedString;
  124278. begin
  124279. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124280. end;
  124281. class function TJSSVGFEConvolveMatrixElement.JSClassName: UnicodeString;
  124282. begin
  124283. Result:='SVGFEConvolveMatrixElement';
  124284. end;
  124285. class function TJSSVGFEConvolveMatrixElement.Cast(const Intf: IJSObject): IJSSVGFEConvolveMatrixElement;
  124286. begin
  124287. Result:=TJSSVGFEConvolveMatrixElement.JOBCast(Intf);
  124288. end;
  124289. function TJSSVGFEDiffuseLightingElement._Getin1: IJSSVGAnimatedString;
  124290. begin
  124291. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124292. end;
  124293. function TJSSVGFEDiffuseLightingElement._GetsurfaceScale: IJSSVGAnimatedNumber;
  124294. begin
  124295. Result:=ReadJSPropertyObject('surfaceScale',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124296. end;
  124297. function TJSSVGFEDiffuseLightingElement._GetdiffuseConstant: IJSSVGAnimatedNumber;
  124298. begin
  124299. Result:=ReadJSPropertyObject('diffuseConstant',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124300. end;
  124301. function TJSSVGFEDiffuseLightingElement._GetkernelUnitLengthX: IJSSVGAnimatedNumber;
  124302. begin
  124303. Result:=ReadJSPropertyObject('kernelUnitLengthX',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124304. end;
  124305. function TJSSVGFEDiffuseLightingElement._GetkernelUnitLengthY: IJSSVGAnimatedNumber;
  124306. begin
  124307. Result:=ReadJSPropertyObject('kernelUnitLengthY',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124308. end;
  124309. function TJSSVGFEDiffuseLightingElement._Getx: IJSSVGAnimatedLength;
  124310. begin
  124311. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124312. end;
  124313. function TJSSVGFEDiffuseLightingElement._Gety: IJSSVGAnimatedLength;
  124314. begin
  124315. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124316. end;
  124317. function TJSSVGFEDiffuseLightingElement._Getwidth: IJSSVGAnimatedLength;
  124318. begin
  124319. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124320. end;
  124321. function TJSSVGFEDiffuseLightingElement._Getheight: IJSSVGAnimatedLength;
  124322. begin
  124323. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124324. end;
  124325. function TJSSVGFEDiffuseLightingElement._Getresult: IJSSVGAnimatedString;
  124326. begin
  124327. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124328. end;
  124329. class function TJSSVGFEDiffuseLightingElement.JSClassName: UnicodeString;
  124330. begin
  124331. Result:='SVGFEDiffuseLightingElement';
  124332. end;
  124333. class function TJSSVGFEDiffuseLightingElement.Cast(const Intf: IJSObject): IJSSVGFEDiffuseLightingElement;
  124334. begin
  124335. Result:=TJSSVGFEDiffuseLightingElement.JOBCast(Intf);
  124336. end;
  124337. function TJSSVGFEDisplacementMapElement._Getin1: IJSSVGAnimatedString;
  124338. begin
  124339. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124340. end;
  124341. function TJSSVGFEDisplacementMapElement._Getin2: IJSSVGAnimatedString;
  124342. begin
  124343. Result:=ReadJSPropertyObject('in2',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124344. end;
  124345. function TJSSVGFEDisplacementMapElement._Getscale: IJSSVGAnimatedNumber;
  124346. begin
  124347. Result:=ReadJSPropertyObject('scale',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124348. end;
  124349. function TJSSVGFEDisplacementMapElement._GetxChannelSelector: IJSSVGAnimatedEnumeration;
  124350. begin
  124351. Result:=ReadJSPropertyObject('xChannelSelector',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  124352. end;
  124353. function TJSSVGFEDisplacementMapElement._GetyChannelSelector: IJSSVGAnimatedEnumeration;
  124354. begin
  124355. Result:=ReadJSPropertyObject('yChannelSelector',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  124356. end;
  124357. function TJSSVGFEDisplacementMapElement._Getx: IJSSVGAnimatedLength;
  124358. begin
  124359. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124360. end;
  124361. function TJSSVGFEDisplacementMapElement._Gety: IJSSVGAnimatedLength;
  124362. begin
  124363. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124364. end;
  124365. function TJSSVGFEDisplacementMapElement._Getwidth: IJSSVGAnimatedLength;
  124366. begin
  124367. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124368. end;
  124369. function TJSSVGFEDisplacementMapElement._Getheight: IJSSVGAnimatedLength;
  124370. begin
  124371. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124372. end;
  124373. function TJSSVGFEDisplacementMapElement._Getresult: IJSSVGAnimatedString;
  124374. begin
  124375. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124376. end;
  124377. class function TJSSVGFEDisplacementMapElement.JSClassName: UnicodeString;
  124378. begin
  124379. Result:='SVGFEDisplacementMapElement';
  124380. end;
  124381. class function TJSSVGFEDisplacementMapElement.Cast(const Intf: IJSObject): IJSSVGFEDisplacementMapElement;
  124382. begin
  124383. Result:=TJSSVGFEDisplacementMapElement.JOBCast(Intf);
  124384. end;
  124385. function TJSSVGFEDistantLightElement._Getazimuth: IJSSVGAnimatedNumber;
  124386. begin
  124387. Result:=ReadJSPropertyObject('azimuth',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124388. end;
  124389. function TJSSVGFEDistantLightElement._Getelevation: IJSSVGAnimatedNumber;
  124390. begin
  124391. Result:=ReadJSPropertyObject('elevation',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124392. end;
  124393. class function TJSSVGFEDistantLightElement.JSClassName: UnicodeString;
  124394. begin
  124395. Result:='SVGFEDistantLightElement';
  124396. end;
  124397. class function TJSSVGFEDistantLightElement.Cast(const Intf: IJSObject): IJSSVGFEDistantLightElement;
  124398. begin
  124399. Result:=TJSSVGFEDistantLightElement.JOBCast(Intf);
  124400. end;
  124401. function TJSSVGFEDropShadowElement._Getin1: IJSSVGAnimatedString;
  124402. begin
  124403. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124404. end;
  124405. function TJSSVGFEDropShadowElement._Getdx: IJSSVGAnimatedNumber;
  124406. begin
  124407. Result:=ReadJSPropertyObject('dx',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124408. end;
  124409. function TJSSVGFEDropShadowElement._Getdy: IJSSVGAnimatedNumber;
  124410. begin
  124411. Result:=ReadJSPropertyObject('dy',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124412. end;
  124413. function TJSSVGFEDropShadowElement._GetstdDeviationX: IJSSVGAnimatedNumber;
  124414. begin
  124415. Result:=ReadJSPropertyObject('stdDeviationX',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124416. end;
  124417. function TJSSVGFEDropShadowElement._GetstdDeviationY: IJSSVGAnimatedNumber;
  124418. begin
  124419. Result:=ReadJSPropertyObject('stdDeviationY',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124420. end;
  124421. function TJSSVGFEDropShadowElement._Getx: IJSSVGAnimatedLength;
  124422. begin
  124423. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124424. end;
  124425. function TJSSVGFEDropShadowElement._Gety: IJSSVGAnimatedLength;
  124426. begin
  124427. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124428. end;
  124429. function TJSSVGFEDropShadowElement._Getwidth: IJSSVGAnimatedLength;
  124430. begin
  124431. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124432. end;
  124433. function TJSSVGFEDropShadowElement._Getheight: IJSSVGAnimatedLength;
  124434. begin
  124435. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124436. end;
  124437. function TJSSVGFEDropShadowElement._Getresult: IJSSVGAnimatedString;
  124438. begin
  124439. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124440. end;
  124441. procedure TJSSVGFEDropShadowElement.setStdDeviation(aStdDeviationX: Single; aStdDeviationY: Single);
  124442. begin
  124443. InvokeJSNoResult('setStdDeviation',[aStdDeviationX,aStdDeviationY]);
  124444. end;
  124445. class function TJSSVGFEDropShadowElement.JSClassName: UnicodeString;
  124446. begin
  124447. Result:='SVGFEDropShadowElement';
  124448. end;
  124449. class function TJSSVGFEDropShadowElement.Cast(const Intf: IJSObject): IJSSVGFEDropShadowElement;
  124450. begin
  124451. Result:=TJSSVGFEDropShadowElement.JOBCast(Intf);
  124452. end;
  124453. function TJSSVGFEFloodElement._Getx: IJSSVGAnimatedLength;
  124454. begin
  124455. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124456. end;
  124457. function TJSSVGFEFloodElement._Gety: IJSSVGAnimatedLength;
  124458. begin
  124459. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124460. end;
  124461. function TJSSVGFEFloodElement._Getwidth: IJSSVGAnimatedLength;
  124462. begin
  124463. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124464. end;
  124465. function TJSSVGFEFloodElement._Getheight: IJSSVGAnimatedLength;
  124466. begin
  124467. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124468. end;
  124469. function TJSSVGFEFloodElement._Getresult: IJSSVGAnimatedString;
  124470. begin
  124471. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124472. end;
  124473. class function TJSSVGFEFloodElement.JSClassName: UnicodeString;
  124474. begin
  124475. Result:='SVGFEFloodElement';
  124476. end;
  124477. class function TJSSVGFEFloodElement.Cast(const Intf: IJSObject): IJSSVGFEFloodElement;
  124478. begin
  124479. Result:=TJSSVGFEFloodElement.JOBCast(Intf);
  124480. end;
  124481. class function TJSSVGFEFuncAElement.JSClassName: UnicodeString;
  124482. begin
  124483. Result:='SVGFEFuncAElement';
  124484. end;
  124485. class function TJSSVGFEFuncAElement.Cast(const Intf: IJSObject): IJSSVGFEFuncAElement;
  124486. begin
  124487. Result:=TJSSVGFEFuncAElement.JOBCast(Intf);
  124488. end;
  124489. class function TJSSVGFEFuncBElement.JSClassName: UnicodeString;
  124490. begin
  124491. Result:='SVGFEFuncBElement';
  124492. end;
  124493. class function TJSSVGFEFuncBElement.Cast(const Intf: IJSObject): IJSSVGFEFuncBElement;
  124494. begin
  124495. Result:=TJSSVGFEFuncBElement.JOBCast(Intf);
  124496. end;
  124497. class function TJSSVGFEFuncGElement.JSClassName: UnicodeString;
  124498. begin
  124499. Result:='SVGFEFuncGElement';
  124500. end;
  124501. class function TJSSVGFEFuncGElement.Cast(const Intf: IJSObject): IJSSVGFEFuncGElement;
  124502. begin
  124503. Result:=TJSSVGFEFuncGElement.JOBCast(Intf);
  124504. end;
  124505. class function TJSSVGFEFuncRElement.JSClassName: UnicodeString;
  124506. begin
  124507. Result:='SVGFEFuncRElement';
  124508. end;
  124509. class function TJSSVGFEFuncRElement.Cast(const Intf: IJSObject): IJSSVGFEFuncRElement;
  124510. begin
  124511. Result:=TJSSVGFEFuncRElement.JOBCast(Intf);
  124512. end;
  124513. function TJSSVGFEGaussianBlurElement._Getin1: IJSSVGAnimatedString;
  124514. begin
  124515. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124516. end;
  124517. function TJSSVGFEGaussianBlurElement._GetstdDeviationX: IJSSVGAnimatedNumber;
  124518. begin
  124519. Result:=ReadJSPropertyObject('stdDeviationX',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124520. end;
  124521. function TJSSVGFEGaussianBlurElement._GetstdDeviationY: IJSSVGAnimatedNumber;
  124522. begin
  124523. Result:=ReadJSPropertyObject('stdDeviationY',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124524. end;
  124525. function TJSSVGFEGaussianBlurElement._Getx: IJSSVGAnimatedLength;
  124526. begin
  124527. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124528. end;
  124529. function TJSSVGFEGaussianBlurElement._Gety: IJSSVGAnimatedLength;
  124530. begin
  124531. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124532. end;
  124533. function TJSSVGFEGaussianBlurElement._Getwidth: IJSSVGAnimatedLength;
  124534. begin
  124535. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124536. end;
  124537. function TJSSVGFEGaussianBlurElement._Getheight: IJSSVGAnimatedLength;
  124538. begin
  124539. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124540. end;
  124541. function TJSSVGFEGaussianBlurElement._Getresult: IJSSVGAnimatedString;
  124542. begin
  124543. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124544. end;
  124545. procedure TJSSVGFEGaussianBlurElement.setStdDeviation(aStdDeviationX: Single; aStdDeviationY: Single);
  124546. begin
  124547. InvokeJSNoResult('setStdDeviation',[aStdDeviationX,aStdDeviationY]);
  124548. end;
  124549. class function TJSSVGFEGaussianBlurElement.JSClassName: UnicodeString;
  124550. begin
  124551. Result:='SVGFEGaussianBlurElement';
  124552. end;
  124553. class function TJSSVGFEGaussianBlurElement.Cast(const Intf: IJSObject): IJSSVGFEGaussianBlurElement;
  124554. begin
  124555. Result:=TJSSVGFEGaussianBlurElement.JOBCast(Intf);
  124556. end;
  124557. function TJSSVGFEImageElement._GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  124558. begin
  124559. Result:=ReadJSPropertyObject('preserveAspectRatio',TJSSVGAnimatedPreserveAspectRatio) as IJSSVGAnimatedPreserveAspectRatio;
  124560. end;
  124561. function TJSSVGFEImageElement._GetcrossOrigin: UnicodeString;
  124562. begin
  124563. Result:=ReadJSPropertyUnicodeString('crossOrigin');
  124564. end;
  124565. function TJSSVGFEImageElement._Getx: IJSSVGAnimatedLength;
  124566. begin
  124567. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124568. end;
  124569. function TJSSVGFEImageElement._Gety: IJSSVGAnimatedLength;
  124570. begin
  124571. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124572. end;
  124573. function TJSSVGFEImageElement._Getwidth: IJSSVGAnimatedLength;
  124574. begin
  124575. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124576. end;
  124577. function TJSSVGFEImageElement._Getheight: IJSSVGAnimatedLength;
  124578. begin
  124579. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124580. end;
  124581. function TJSSVGFEImageElement._Getresult: IJSSVGAnimatedString;
  124582. begin
  124583. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124584. end;
  124585. function TJSSVGFEImageElement._Gethref: IJSSVGAnimatedString;
  124586. begin
  124587. Result:=ReadJSPropertyObject('href',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124588. end;
  124589. procedure TJSSVGFEImageElement._SetcrossOrigin(const aValue : UnicodeString);
  124590. begin
  124591. WriteJSPropertyUnicodeString('crossOrigin',aValue);
  124592. end;
  124593. class function TJSSVGFEImageElement.JSClassName: UnicodeString;
  124594. begin
  124595. Result:='SVGFEImageElement';
  124596. end;
  124597. class function TJSSVGFEImageElement.Cast(const Intf: IJSObject): IJSSVGFEImageElement;
  124598. begin
  124599. Result:=TJSSVGFEImageElement.JOBCast(Intf);
  124600. end;
  124601. function TJSSVGFEMergeElement._Getx: IJSSVGAnimatedLength;
  124602. begin
  124603. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124604. end;
  124605. function TJSSVGFEMergeElement._Gety: IJSSVGAnimatedLength;
  124606. begin
  124607. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124608. end;
  124609. function TJSSVGFEMergeElement._Getwidth: IJSSVGAnimatedLength;
  124610. begin
  124611. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124612. end;
  124613. function TJSSVGFEMergeElement._Getheight: IJSSVGAnimatedLength;
  124614. begin
  124615. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124616. end;
  124617. function TJSSVGFEMergeElement._Getresult: IJSSVGAnimatedString;
  124618. begin
  124619. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124620. end;
  124621. class function TJSSVGFEMergeElement.JSClassName: UnicodeString;
  124622. begin
  124623. Result:='SVGFEMergeElement';
  124624. end;
  124625. class function TJSSVGFEMergeElement.Cast(const Intf: IJSObject): IJSSVGFEMergeElement;
  124626. begin
  124627. Result:=TJSSVGFEMergeElement.JOBCast(Intf);
  124628. end;
  124629. function TJSSVGFEMergeNodeElement._Getin1: IJSSVGAnimatedString;
  124630. begin
  124631. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124632. end;
  124633. class function TJSSVGFEMergeNodeElement.JSClassName: UnicodeString;
  124634. begin
  124635. Result:='SVGFEMergeNodeElement';
  124636. end;
  124637. class function TJSSVGFEMergeNodeElement.Cast(const Intf: IJSObject): IJSSVGFEMergeNodeElement;
  124638. begin
  124639. Result:=TJSSVGFEMergeNodeElement.JOBCast(Intf);
  124640. end;
  124641. function TJSSVGFEMorphologyElement._Getin1: IJSSVGAnimatedString;
  124642. begin
  124643. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124644. end;
  124645. function TJSSVGFEMorphologyElement._Getoperator_: IJSSVGAnimatedEnumeration;
  124646. begin
  124647. Result:=ReadJSPropertyObject('operator',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  124648. end;
  124649. function TJSSVGFEMorphologyElement._GetradiusX: IJSSVGAnimatedNumber;
  124650. begin
  124651. Result:=ReadJSPropertyObject('radiusX',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124652. end;
  124653. function TJSSVGFEMorphologyElement._GetradiusY: IJSSVGAnimatedNumber;
  124654. begin
  124655. Result:=ReadJSPropertyObject('radiusY',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124656. end;
  124657. function TJSSVGFEMorphologyElement._Getx: IJSSVGAnimatedLength;
  124658. begin
  124659. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124660. end;
  124661. function TJSSVGFEMorphologyElement._Gety: IJSSVGAnimatedLength;
  124662. begin
  124663. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124664. end;
  124665. function TJSSVGFEMorphologyElement._Getwidth: IJSSVGAnimatedLength;
  124666. begin
  124667. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124668. end;
  124669. function TJSSVGFEMorphologyElement._Getheight: IJSSVGAnimatedLength;
  124670. begin
  124671. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124672. end;
  124673. function TJSSVGFEMorphologyElement._Getresult: IJSSVGAnimatedString;
  124674. begin
  124675. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124676. end;
  124677. class function TJSSVGFEMorphologyElement.JSClassName: UnicodeString;
  124678. begin
  124679. Result:='SVGFEMorphologyElement';
  124680. end;
  124681. class function TJSSVGFEMorphologyElement.Cast(const Intf: IJSObject): IJSSVGFEMorphologyElement;
  124682. begin
  124683. Result:=TJSSVGFEMorphologyElement.JOBCast(Intf);
  124684. end;
  124685. function TJSSVGFEOffsetElement._Getin1: IJSSVGAnimatedString;
  124686. begin
  124687. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124688. end;
  124689. function TJSSVGFEOffsetElement._Getdx: IJSSVGAnimatedNumber;
  124690. begin
  124691. Result:=ReadJSPropertyObject('dx',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124692. end;
  124693. function TJSSVGFEOffsetElement._Getdy: IJSSVGAnimatedNumber;
  124694. begin
  124695. Result:=ReadJSPropertyObject('dy',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124696. end;
  124697. function TJSSVGFEOffsetElement._Getx: IJSSVGAnimatedLength;
  124698. begin
  124699. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124700. end;
  124701. function TJSSVGFEOffsetElement._Gety: IJSSVGAnimatedLength;
  124702. begin
  124703. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124704. end;
  124705. function TJSSVGFEOffsetElement._Getwidth: IJSSVGAnimatedLength;
  124706. begin
  124707. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124708. end;
  124709. function TJSSVGFEOffsetElement._Getheight: IJSSVGAnimatedLength;
  124710. begin
  124711. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124712. end;
  124713. function TJSSVGFEOffsetElement._Getresult: IJSSVGAnimatedString;
  124714. begin
  124715. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124716. end;
  124717. class function TJSSVGFEOffsetElement.JSClassName: UnicodeString;
  124718. begin
  124719. Result:='SVGFEOffsetElement';
  124720. end;
  124721. class function TJSSVGFEOffsetElement.Cast(const Intf: IJSObject): IJSSVGFEOffsetElement;
  124722. begin
  124723. Result:=TJSSVGFEOffsetElement.JOBCast(Intf);
  124724. end;
  124725. function TJSSVGFEPointLightElement._Getx: IJSSVGAnimatedNumber;
  124726. begin
  124727. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124728. end;
  124729. function TJSSVGFEPointLightElement._Gety: IJSSVGAnimatedNumber;
  124730. begin
  124731. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124732. end;
  124733. function TJSSVGFEPointLightElement._Getz: IJSSVGAnimatedNumber;
  124734. begin
  124735. Result:=ReadJSPropertyObject('z',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124736. end;
  124737. class function TJSSVGFEPointLightElement.JSClassName: UnicodeString;
  124738. begin
  124739. Result:='SVGFEPointLightElement';
  124740. end;
  124741. class function TJSSVGFEPointLightElement.Cast(const Intf: IJSObject): IJSSVGFEPointLightElement;
  124742. begin
  124743. Result:=TJSSVGFEPointLightElement.JOBCast(Intf);
  124744. end;
  124745. function TJSSVGFESpecularLightingElement._Getin1: IJSSVGAnimatedString;
  124746. begin
  124747. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124748. end;
  124749. function TJSSVGFESpecularLightingElement._GetsurfaceScale: IJSSVGAnimatedNumber;
  124750. begin
  124751. Result:=ReadJSPropertyObject('surfaceScale',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124752. end;
  124753. function TJSSVGFESpecularLightingElement._GetspecularConstant: IJSSVGAnimatedNumber;
  124754. begin
  124755. Result:=ReadJSPropertyObject('specularConstant',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124756. end;
  124757. function TJSSVGFESpecularLightingElement._GetspecularExponent: IJSSVGAnimatedNumber;
  124758. begin
  124759. Result:=ReadJSPropertyObject('specularExponent',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124760. end;
  124761. function TJSSVGFESpecularLightingElement._GetkernelUnitLengthX: IJSSVGAnimatedNumber;
  124762. begin
  124763. Result:=ReadJSPropertyObject('kernelUnitLengthX',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124764. end;
  124765. function TJSSVGFESpecularLightingElement._GetkernelUnitLengthY: IJSSVGAnimatedNumber;
  124766. begin
  124767. Result:=ReadJSPropertyObject('kernelUnitLengthY',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124768. end;
  124769. function TJSSVGFESpecularLightingElement._Getx: IJSSVGAnimatedLength;
  124770. begin
  124771. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124772. end;
  124773. function TJSSVGFESpecularLightingElement._Gety: IJSSVGAnimatedLength;
  124774. begin
  124775. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124776. end;
  124777. function TJSSVGFESpecularLightingElement._Getwidth: IJSSVGAnimatedLength;
  124778. begin
  124779. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124780. end;
  124781. function TJSSVGFESpecularLightingElement._Getheight: IJSSVGAnimatedLength;
  124782. begin
  124783. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124784. end;
  124785. function TJSSVGFESpecularLightingElement._Getresult: IJSSVGAnimatedString;
  124786. begin
  124787. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124788. end;
  124789. class function TJSSVGFESpecularLightingElement.JSClassName: UnicodeString;
  124790. begin
  124791. Result:='SVGFESpecularLightingElement';
  124792. end;
  124793. class function TJSSVGFESpecularLightingElement.Cast(const Intf: IJSObject): IJSSVGFESpecularLightingElement;
  124794. begin
  124795. Result:=TJSSVGFESpecularLightingElement.JOBCast(Intf);
  124796. end;
  124797. function TJSSVGFESpotLightElement._Getx: IJSSVGAnimatedNumber;
  124798. begin
  124799. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124800. end;
  124801. function TJSSVGFESpotLightElement._Gety: IJSSVGAnimatedNumber;
  124802. begin
  124803. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124804. end;
  124805. function TJSSVGFESpotLightElement._Getz: IJSSVGAnimatedNumber;
  124806. begin
  124807. Result:=ReadJSPropertyObject('z',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124808. end;
  124809. function TJSSVGFESpotLightElement._GetpointsAtX: IJSSVGAnimatedNumber;
  124810. begin
  124811. Result:=ReadJSPropertyObject('pointsAtX',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124812. end;
  124813. function TJSSVGFESpotLightElement._GetpointsAtY: IJSSVGAnimatedNumber;
  124814. begin
  124815. Result:=ReadJSPropertyObject('pointsAtY',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124816. end;
  124817. function TJSSVGFESpotLightElement._GetpointsAtZ: IJSSVGAnimatedNumber;
  124818. begin
  124819. Result:=ReadJSPropertyObject('pointsAtZ',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124820. end;
  124821. function TJSSVGFESpotLightElement._GetspecularExponent: IJSSVGAnimatedNumber;
  124822. begin
  124823. Result:=ReadJSPropertyObject('specularExponent',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124824. end;
  124825. function TJSSVGFESpotLightElement._GetlimitingConeAngle: IJSSVGAnimatedNumber;
  124826. begin
  124827. Result:=ReadJSPropertyObject('limitingConeAngle',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124828. end;
  124829. class function TJSSVGFESpotLightElement.JSClassName: UnicodeString;
  124830. begin
  124831. Result:='SVGFESpotLightElement';
  124832. end;
  124833. class function TJSSVGFESpotLightElement.Cast(const Intf: IJSObject): IJSSVGFESpotLightElement;
  124834. begin
  124835. Result:=TJSSVGFESpotLightElement.JOBCast(Intf);
  124836. end;
  124837. function TJSSVGFETileElement._Getin1: IJSSVGAnimatedString;
  124838. begin
  124839. Result:=ReadJSPropertyObject('in1',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124840. end;
  124841. function TJSSVGFETileElement._Getx: IJSSVGAnimatedLength;
  124842. begin
  124843. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124844. end;
  124845. function TJSSVGFETileElement._Gety: IJSSVGAnimatedLength;
  124846. begin
  124847. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124848. end;
  124849. function TJSSVGFETileElement._Getwidth: IJSSVGAnimatedLength;
  124850. begin
  124851. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124852. end;
  124853. function TJSSVGFETileElement._Getheight: IJSSVGAnimatedLength;
  124854. begin
  124855. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124856. end;
  124857. function TJSSVGFETileElement._Getresult: IJSSVGAnimatedString;
  124858. begin
  124859. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124860. end;
  124861. class function TJSSVGFETileElement.JSClassName: UnicodeString;
  124862. begin
  124863. Result:='SVGFETileElement';
  124864. end;
  124865. class function TJSSVGFETileElement.Cast(const Intf: IJSObject): IJSSVGFETileElement;
  124866. begin
  124867. Result:=TJSSVGFETileElement.JOBCast(Intf);
  124868. end;
  124869. function TJSSVGFETurbulenceElement._GetbaseFrequencyX: IJSSVGAnimatedNumber;
  124870. begin
  124871. Result:=ReadJSPropertyObject('baseFrequencyX',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124872. end;
  124873. function TJSSVGFETurbulenceElement._GetbaseFrequencyY: IJSSVGAnimatedNumber;
  124874. begin
  124875. Result:=ReadJSPropertyObject('baseFrequencyY',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124876. end;
  124877. function TJSSVGFETurbulenceElement._GetnumOctaves: IJSSVGAnimatedInteger;
  124878. begin
  124879. Result:=ReadJSPropertyObject('numOctaves',TJSSVGAnimatedInteger) as IJSSVGAnimatedInteger;
  124880. end;
  124881. function TJSSVGFETurbulenceElement._Getseed: IJSSVGAnimatedNumber;
  124882. begin
  124883. Result:=ReadJSPropertyObject('seed',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  124884. end;
  124885. function TJSSVGFETurbulenceElement._GetstitchTiles: IJSSVGAnimatedEnumeration;
  124886. begin
  124887. Result:=ReadJSPropertyObject('stitchTiles',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  124888. end;
  124889. function TJSSVGFETurbulenceElement._Gettype_: IJSSVGAnimatedEnumeration;
  124890. begin
  124891. Result:=ReadJSPropertyObject('type',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  124892. end;
  124893. function TJSSVGFETurbulenceElement._Getx: IJSSVGAnimatedLength;
  124894. begin
  124895. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124896. end;
  124897. function TJSSVGFETurbulenceElement._Gety: IJSSVGAnimatedLength;
  124898. begin
  124899. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124900. end;
  124901. function TJSSVGFETurbulenceElement._Getwidth: IJSSVGAnimatedLength;
  124902. begin
  124903. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124904. end;
  124905. function TJSSVGFETurbulenceElement._Getheight: IJSSVGAnimatedLength;
  124906. begin
  124907. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124908. end;
  124909. function TJSSVGFETurbulenceElement._Getresult: IJSSVGAnimatedString;
  124910. begin
  124911. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124912. end;
  124913. class function TJSSVGFETurbulenceElement.JSClassName: UnicodeString;
  124914. begin
  124915. Result:='SVGFETurbulenceElement';
  124916. end;
  124917. class function TJSSVGFETurbulenceElement.Cast(const Intf: IJSObject): IJSSVGFETurbulenceElement;
  124918. begin
  124919. Result:=TJSSVGFETurbulenceElement.JOBCast(Intf);
  124920. end;
  124921. function TJSSVGFilterElement._GetfilterUnits: IJSSVGAnimatedEnumeration;
  124922. begin
  124923. Result:=ReadJSPropertyObject('filterUnits',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  124924. end;
  124925. function TJSSVGFilterElement._GetprimitiveUnits: IJSSVGAnimatedEnumeration;
  124926. begin
  124927. Result:=ReadJSPropertyObject('primitiveUnits',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  124928. end;
  124929. function TJSSVGFilterElement._Getx: IJSSVGAnimatedLength;
  124930. begin
  124931. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124932. end;
  124933. function TJSSVGFilterElement._Gety: IJSSVGAnimatedLength;
  124934. begin
  124935. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124936. end;
  124937. function TJSSVGFilterElement._Getwidth: IJSSVGAnimatedLength;
  124938. begin
  124939. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124940. end;
  124941. function TJSSVGFilterElement._Getheight: IJSSVGAnimatedLength;
  124942. begin
  124943. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124944. end;
  124945. function TJSSVGFilterElement._Gethref: IJSSVGAnimatedString;
  124946. begin
  124947. Result:=ReadJSPropertyObject('href',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124948. end;
  124949. class function TJSSVGFilterElement.JSClassName: UnicodeString;
  124950. begin
  124951. Result:='SVGFilterElement';
  124952. end;
  124953. class function TJSSVGFilterElement.Cast(const Intf: IJSObject): IJSSVGFilterElement;
  124954. begin
  124955. Result:=TJSSVGFilterElement.JOBCast(Intf);
  124956. end;
  124957. function TJSSVGFilterPrimitiveStandardAttributes._Getx: IJSSVGAnimatedLength;
  124958. begin
  124959. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124960. end;
  124961. function TJSSVGFilterPrimitiveStandardAttributes._Gety: IJSSVGAnimatedLength;
  124962. begin
  124963. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124964. end;
  124965. function TJSSVGFilterPrimitiveStandardAttributes._Getwidth: IJSSVGAnimatedLength;
  124966. begin
  124967. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124968. end;
  124969. function TJSSVGFilterPrimitiveStandardAttributes._Getheight: IJSSVGAnimatedLength;
  124970. begin
  124971. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  124972. end;
  124973. function TJSSVGFilterPrimitiveStandardAttributes._Getresult: IJSSVGAnimatedString;
  124974. begin
  124975. Result:=ReadJSPropertyObject('result',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  124976. end;
  124977. class function TJSSVGFilterPrimitiveStandardAttributes.JSClassName: UnicodeString;
  124978. begin
  124979. Result:='SVGFilterPrimitiveStandardAttributes';
  124980. end;
  124981. class function TJSSVGFilterPrimitiveStandardAttributes.Cast(const Intf: IJSObject): IJSSVGFilterPrimitiveStandardAttributes;
  124982. begin
  124983. Result:=TJSSVGFilterPrimitiveStandardAttributes.JOBCast(Intf);
  124984. end;
  124985. function TJSSVGFitToViewBox._GetviewBox: IJSSVGAnimatedRect;
  124986. begin
  124987. Result:=ReadJSPropertyObject('viewBox',TJSSVGAnimatedRect) as IJSSVGAnimatedRect;
  124988. end;
  124989. function TJSSVGFitToViewBox._GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  124990. begin
  124991. Result:=ReadJSPropertyObject('preserveAspectRatio',TJSSVGAnimatedPreserveAspectRatio) as IJSSVGAnimatedPreserveAspectRatio;
  124992. end;
  124993. class function TJSSVGFitToViewBox.JSClassName: UnicodeString;
  124994. begin
  124995. Result:='SVGFitToViewBox';
  124996. end;
  124997. class function TJSSVGFitToViewBox.Cast(const Intf: IJSObject): IJSSVGFitToViewBox;
  124998. begin
  124999. Result:=TJSSVGFitToViewBox.JOBCast(Intf);
  125000. end;
  125001. function TJSSVGForeignObjectElement._Getx: IJSSVGAnimatedLength;
  125002. begin
  125003. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125004. end;
  125005. function TJSSVGForeignObjectElement._Gety: IJSSVGAnimatedLength;
  125006. begin
  125007. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125008. end;
  125009. function TJSSVGForeignObjectElement._Getwidth: IJSSVGAnimatedLength;
  125010. begin
  125011. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125012. end;
  125013. function TJSSVGForeignObjectElement._Getheight: IJSSVGAnimatedLength;
  125014. begin
  125015. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125016. end;
  125017. class function TJSSVGForeignObjectElement.JSClassName: UnicodeString;
  125018. begin
  125019. Result:='SVGForeignObjectElement';
  125020. end;
  125021. class function TJSSVGForeignObjectElement.Cast(const Intf: IJSObject): IJSSVGForeignObjectElement;
  125022. begin
  125023. Result:=TJSSVGForeignObjectElement.JOBCast(Intf);
  125024. end;
  125025. class function TJSSVGGElement.JSClassName: UnicodeString;
  125026. begin
  125027. Result:='SVGGElement';
  125028. end;
  125029. class function TJSSVGGElement.Cast(const Intf: IJSObject): IJSSVGGElement;
  125030. begin
  125031. Result:=TJSSVGGElement.JOBCast(Intf);
  125032. end;
  125033. function TJSSVGGeometryElement._GetpathLength: IJSSVGAnimatedNumber;
  125034. begin
  125035. Result:=ReadJSPropertyObject('pathLength',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  125036. end;
  125037. function TJSSVGGeometryElement.isPointInFill(const aPoint: TJSDOMPointInit): Boolean;
  125038. begin
  125039. Result:=InvokeJSBooleanResult('isPointInFill',[aPoint]);
  125040. end;
  125041. function TJSSVGGeometryElement.isPointInFill: Boolean;
  125042. begin
  125043. Result:=InvokeJSBooleanResult('isPointInFill',[]);
  125044. end;
  125045. function TJSSVGGeometryElement.isPointInStroke(const aPoint: TJSDOMPointInit): Boolean;
  125046. begin
  125047. Result:=InvokeJSBooleanResult('isPointInStroke',[aPoint]);
  125048. end;
  125049. function TJSSVGGeometryElement.isPointInStroke: Boolean;
  125050. begin
  125051. Result:=InvokeJSBooleanResult('isPointInStroke',[]);
  125052. end;
  125053. function TJSSVGGeometryElement.getTotalLength: Single;
  125054. begin
  125055. Result:=InvokeJSDoubleResult('getTotalLength',[]);
  125056. end;
  125057. function TJSSVGGeometryElement.getPointAtLength(aDistance: Single): IJSSVGPoint;
  125058. begin
  125059. Result:=InvokeJSObjectResult('getPointAtLength',[aDistance],TJSSVGPoint) as IJSSVGPoint;
  125060. end;
  125061. class function TJSSVGGeometryElement.JSClassName: UnicodeString;
  125062. begin
  125063. Result:='SVGGeometryElement';
  125064. end;
  125065. class function TJSSVGGeometryElement.Cast(const Intf: IJSObject): IJSSVGGeometryElement;
  125066. begin
  125067. Result:=TJSSVGGeometryElement.JOBCast(Intf);
  125068. end;
  125069. function TJSSVGGradientElement._GetgradientUnits: IJSSVGAnimatedEnumeration;
  125070. begin
  125071. Result:=ReadJSPropertyObject('gradientUnits',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  125072. end;
  125073. function TJSSVGGradientElement._GetgradientTransform: IJSSVGAnimatedTransformList;
  125074. begin
  125075. Result:=ReadJSPropertyObject('gradientTransform',TJSSVGAnimatedTransformList) as IJSSVGAnimatedTransformList;
  125076. end;
  125077. function TJSSVGGradientElement._GetspreadMethod: IJSSVGAnimatedEnumeration;
  125078. begin
  125079. Result:=ReadJSPropertyObject('spreadMethod',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  125080. end;
  125081. function TJSSVGGradientElement._Gethref: IJSSVGAnimatedString;
  125082. begin
  125083. Result:=ReadJSPropertyObject('href',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  125084. end;
  125085. class function TJSSVGGradientElement.JSClassName: UnicodeString;
  125086. begin
  125087. Result:='SVGGradientElement';
  125088. end;
  125089. class function TJSSVGGradientElement.Cast(const Intf: IJSObject): IJSSVGGradientElement;
  125090. begin
  125091. Result:=TJSSVGGradientElement.JOBCast(Intf);
  125092. end;
  125093. function TJSSVGBoundingBoxOptions._Getfill: Boolean;
  125094. begin
  125095. Result:=ReadJSPropertyBoolean('fill');
  125096. end;
  125097. function TJSSVGBoundingBoxOptions._Getstroke: Boolean;
  125098. begin
  125099. Result:=ReadJSPropertyBoolean('stroke');
  125100. end;
  125101. function TJSSVGBoundingBoxOptions._Getmarkers: Boolean;
  125102. begin
  125103. Result:=ReadJSPropertyBoolean('markers');
  125104. end;
  125105. function TJSSVGBoundingBoxOptions._Getclipped: Boolean;
  125106. begin
  125107. Result:=ReadJSPropertyBoolean('clipped');
  125108. end;
  125109. procedure TJSSVGBoundingBoxOptions._Setfill(const aValue : Boolean);
  125110. begin
  125111. WriteJSPropertyBoolean('fill',aValue);
  125112. end;
  125113. procedure TJSSVGBoundingBoxOptions._Setstroke(const aValue : Boolean);
  125114. begin
  125115. WriteJSPropertyBoolean('stroke',aValue);
  125116. end;
  125117. procedure TJSSVGBoundingBoxOptions._Setmarkers(const aValue : Boolean);
  125118. begin
  125119. WriteJSPropertyBoolean('markers',aValue);
  125120. end;
  125121. procedure TJSSVGBoundingBoxOptions._Setclipped(const aValue : Boolean);
  125122. begin
  125123. WriteJSPropertyBoolean('clipped',aValue);
  125124. end;
  125125. class function TJSSVGBoundingBoxOptions.JSClassName: UnicodeString;
  125126. begin
  125127. Result:='Object';
  125128. end;
  125129. class function TJSSVGBoundingBoxOptions.Cast(const Intf: IJSObject): IJSSVGBoundingBoxOptions;
  125130. begin
  125131. Result:=TJSSVGBoundingBoxOptions.JOBCast(Intf);
  125132. end;
  125133. function TJSSVGGraphicsElement._Gettransform: IJSSVGAnimatedTransformList;
  125134. begin
  125135. Result:=ReadJSPropertyObject('transform',TJSSVGAnimatedTransformList) as IJSSVGAnimatedTransformList;
  125136. end;
  125137. function TJSSVGGraphicsElement._GetnearestViewportElement: IJSSVGElement;
  125138. begin
  125139. Result:=ReadJSPropertyObject('nearestViewportElement',TJSSVGElement) as IJSSVGElement;
  125140. end;
  125141. function TJSSVGGraphicsElement._GetfarthestViewportElement: IJSSVGElement;
  125142. begin
  125143. Result:=ReadJSPropertyObject('farthestViewportElement',TJSSVGElement) as IJSSVGElement;
  125144. end;
  125145. function TJSSVGGraphicsElement._GetrequiredExtensions: IJSSVGStringList;
  125146. begin
  125147. Result:=ReadJSPropertyObject('requiredExtensions',TJSSVGStringList) as IJSSVGStringList;
  125148. end;
  125149. function TJSSVGGraphicsElement._GetsystemLanguage: IJSSVGStringList;
  125150. begin
  125151. Result:=ReadJSPropertyObject('systemLanguage',TJSSVGStringList) as IJSSVGStringList;
  125152. end;
  125153. function TJSSVGGraphicsElement.getBBox(const aAOptions: TJSSVGBoundingBoxOptions): IJSSVGRect;
  125154. begin
  125155. Result:=InvokeJSObjectResult('getBBox',[aAOptions],TJSSVGRect) as IJSSVGRect;
  125156. end;
  125157. function TJSSVGGraphicsElement.getBBox: IJSSVGRect;
  125158. begin
  125159. Result:=InvokeJSObjectResult('getBBox',[],TJSSVGRect) as IJSSVGRect;
  125160. end;
  125161. function TJSSVGGraphicsElement.getCTM: IJSSVGMatrix;
  125162. begin
  125163. Result:=InvokeJSObjectResult('getCTM',[],TJSSVGMatrix) as IJSSVGMatrix;
  125164. end;
  125165. function TJSSVGGraphicsElement.getScreenCTM: IJSSVGMatrix;
  125166. begin
  125167. Result:=InvokeJSObjectResult('getScreenCTM',[],TJSSVGMatrix) as IJSSVGMatrix;
  125168. end;
  125169. class function TJSSVGGraphicsElement.JSClassName: UnicodeString;
  125170. begin
  125171. Result:='SVGGraphicsElement';
  125172. end;
  125173. class function TJSSVGGraphicsElement.Cast(const Intf: IJSObject): IJSSVGGraphicsElement;
  125174. begin
  125175. Result:=TJSSVGGraphicsElement.JOBCast(Intf);
  125176. end;
  125177. function TJSSVGImageElement._Getx: IJSSVGAnimatedLength;
  125178. begin
  125179. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125180. end;
  125181. function TJSSVGImageElement._Gety: IJSSVGAnimatedLength;
  125182. begin
  125183. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125184. end;
  125185. function TJSSVGImageElement._Getwidth: IJSSVGAnimatedLength;
  125186. begin
  125187. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125188. end;
  125189. function TJSSVGImageElement._Getheight: IJSSVGAnimatedLength;
  125190. begin
  125191. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125192. end;
  125193. function TJSSVGImageElement._GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  125194. begin
  125195. Result:=ReadJSPropertyObject('preserveAspectRatio',TJSSVGAnimatedPreserveAspectRatio) as IJSSVGAnimatedPreserveAspectRatio;
  125196. end;
  125197. function TJSSVGImageElement._GetcrossOrigin: UnicodeString;
  125198. begin
  125199. Result:=ReadJSPropertyUnicodeString('crossOrigin');
  125200. end;
  125201. function TJSSVGImageElement._Getdecoding: UnicodeString;
  125202. begin
  125203. Result:=ReadJSPropertyUnicodeString('decoding');
  125204. end;
  125205. function TJSSVGImageElement._Gethref: IJSSVGAnimatedString;
  125206. begin
  125207. Result:=ReadJSPropertyObject('href',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  125208. end;
  125209. procedure TJSSVGImageElement._SetcrossOrigin(const aValue : UnicodeString);
  125210. begin
  125211. WriteJSPropertyUnicodeString('crossOrigin',aValue);
  125212. end;
  125213. procedure TJSSVGImageElement._Setdecoding(const aValue : UnicodeString);
  125214. begin
  125215. WriteJSPropertyUnicodeString('decoding',aValue);
  125216. end;
  125217. function TJSSVGImageElement.decode: IJSPromise; // Promise<undefined>
  125218. begin
  125219. Result:=InvokeJSObjectResult('decode',[],TJSPromise) as IJSPromise;
  125220. end;
  125221. class function TJSSVGImageElement.JSClassName: UnicodeString;
  125222. begin
  125223. Result:='SVGImageElement';
  125224. end;
  125225. class function TJSSVGImageElement.Cast(const Intf: IJSObject): IJSSVGImageElement;
  125226. begin
  125227. Result:=TJSSVGImageElement.JOBCast(Intf);
  125228. end;
  125229. function TJSSVGLength._GetunitType: Word;
  125230. begin
  125231. Result:=ReadJSPropertyLongInt('unitType');
  125232. end;
  125233. function TJSSVGLength._Getvalue: Single;
  125234. begin
  125235. Result:=ReadJSPropertyDouble('value');
  125236. end;
  125237. function TJSSVGLength._GetvalueInSpecifiedUnits: Single;
  125238. begin
  125239. Result:=ReadJSPropertyDouble('valueInSpecifiedUnits');
  125240. end;
  125241. function TJSSVGLength._GetvalueAsString: UnicodeString;
  125242. begin
  125243. Result:=ReadJSPropertyUnicodeString('valueAsString');
  125244. end;
  125245. procedure TJSSVGLength._Setvalue(const aValue : Single);
  125246. begin
  125247. WriteJSPropertyDouble('value',aValue);
  125248. end;
  125249. procedure TJSSVGLength._SetvalueInSpecifiedUnits(const aValue : Single);
  125250. begin
  125251. WriteJSPropertyDouble('valueInSpecifiedUnits',aValue);
  125252. end;
  125253. procedure TJSSVGLength._SetvalueAsString(const aValue : UnicodeString);
  125254. begin
  125255. WriteJSPropertyUnicodeString('valueAsString',aValue);
  125256. end;
  125257. procedure TJSSVGLength.newValueSpecifiedUnits(aUnitType: Word; aValueInSpecifiedUnits: Single);
  125258. begin
  125259. InvokeJSNoResult('newValueSpecifiedUnits',[aUnitType,aValueInSpecifiedUnits]);
  125260. end;
  125261. procedure TJSSVGLength.convertToSpecifiedUnits(aUnitType: Word);
  125262. begin
  125263. InvokeJSNoResult('convertToSpecifiedUnits',[aUnitType]);
  125264. end;
  125265. class function TJSSVGLength.JSClassName: UnicodeString;
  125266. begin
  125267. Result:='SVGLength';
  125268. end;
  125269. class function TJSSVGLength.Cast(const Intf: IJSObject): IJSSVGLength;
  125270. begin
  125271. Result:=TJSSVGLength.JOBCast(Intf);
  125272. end;
  125273. function TJSSVGLengthList._GetnumberOfItems: Cardinal;
  125274. begin
  125275. Result:=ReadJSPropertyInt64('numberOfItems');
  125276. end;
  125277. function TJSSVGLengthList._Getlength_: Cardinal;
  125278. begin
  125279. Result:=ReadJSPropertyInt64('length');
  125280. end;
  125281. procedure TJSSVGLengthList.clear;
  125282. begin
  125283. InvokeJSNoResult('clear',[]);
  125284. end;
  125285. function TJSSVGLengthList.initialize(aNewItem: IJSSVGLength): IJSSVGLength;
  125286. begin
  125287. Result:=InvokeJSObjectResult('initialize',[aNewItem],TJSSVGLength) as IJSSVGLength;
  125288. end;
  125289. function TJSSVGLengthList.getItem(aIndex: Cardinal): IJSSVGLength;
  125290. begin
  125291. Result:=InvokeJSObjectResult('getItem',[aIndex],TJSSVGLength) as IJSSVGLength;
  125292. end;
  125293. function TJSSVGLengthList.insertItemBefore(aNewItem: IJSSVGLength; aIndex: Cardinal): IJSSVGLength;
  125294. begin
  125295. Result:=InvokeJSObjectResult('insertItemBefore',[aNewItem,aIndex],TJSSVGLength) as IJSSVGLength;
  125296. end;
  125297. function TJSSVGLengthList.replaceItem(aNewItem: IJSSVGLength; aIndex: Cardinal): IJSSVGLength;
  125298. begin
  125299. Result:=InvokeJSObjectResult('replaceItem',[aNewItem,aIndex],TJSSVGLength) as IJSSVGLength;
  125300. end;
  125301. function TJSSVGLengthList.removeItem(aIndex: Cardinal): IJSSVGLength;
  125302. begin
  125303. Result:=InvokeJSObjectResult('removeItem',[aIndex],TJSSVGLength) as IJSSVGLength;
  125304. end;
  125305. function TJSSVGLengthList.appendItem(aNewItem: IJSSVGLength): IJSSVGLength;
  125306. begin
  125307. Result:=InvokeJSObjectResult('appendItem',[aNewItem],TJSSVGLength) as IJSSVGLength;
  125308. end;
  125309. procedure TJSSVGLengthList.SetDefault(aIndex: Cardinal; aNewItem: IJSSVGLength);
  125310. begin
  125311. InvokeJSNoResult('',[aIndex,aNewItem]);
  125312. end;
  125313. class function TJSSVGLengthList.JSClassName: UnicodeString;
  125314. begin
  125315. Result:='SVGLengthList';
  125316. end;
  125317. class function TJSSVGLengthList.Cast(const Intf: IJSObject): IJSSVGLengthList;
  125318. begin
  125319. Result:=TJSSVGLengthList.JOBCast(Intf);
  125320. end;
  125321. function TJSSVGLinearGradientElement._Getx1: IJSSVGAnimatedLength;
  125322. begin
  125323. Result:=ReadJSPropertyObject('x1',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125324. end;
  125325. function TJSSVGLinearGradientElement._Gety1: IJSSVGAnimatedLength;
  125326. begin
  125327. Result:=ReadJSPropertyObject('y1',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125328. end;
  125329. function TJSSVGLinearGradientElement._Getx2: IJSSVGAnimatedLength;
  125330. begin
  125331. Result:=ReadJSPropertyObject('x2',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125332. end;
  125333. function TJSSVGLinearGradientElement._Gety2: IJSSVGAnimatedLength;
  125334. begin
  125335. Result:=ReadJSPropertyObject('y2',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125336. end;
  125337. class function TJSSVGLinearGradientElement.JSClassName: UnicodeString;
  125338. begin
  125339. Result:='SVGLinearGradientElement';
  125340. end;
  125341. class function TJSSVGLinearGradientElement.Cast(const Intf: IJSObject): IJSSVGLinearGradientElement;
  125342. begin
  125343. Result:=TJSSVGLinearGradientElement.JOBCast(Intf);
  125344. end;
  125345. function TJSSVGLineElement._Getx1: IJSSVGAnimatedLength;
  125346. begin
  125347. Result:=ReadJSPropertyObject('x1',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125348. end;
  125349. function TJSSVGLineElement._Gety1: IJSSVGAnimatedLength;
  125350. begin
  125351. Result:=ReadJSPropertyObject('y1',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125352. end;
  125353. function TJSSVGLineElement._Getx2: IJSSVGAnimatedLength;
  125354. begin
  125355. Result:=ReadJSPropertyObject('x2',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125356. end;
  125357. function TJSSVGLineElement._Gety2: IJSSVGAnimatedLength;
  125358. begin
  125359. Result:=ReadJSPropertyObject('y2',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125360. end;
  125361. class function TJSSVGLineElement.JSClassName: UnicodeString;
  125362. begin
  125363. Result:='SVGLineElement';
  125364. end;
  125365. class function TJSSVGLineElement.Cast(const Intf: IJSObject): IJSSVGLineElement;
  125366. begin
  125367. Result:=TJSSVGLineElement.JOBCast(Intf);
  125368. end;
  125369. function TJSSVGMarkerElement._GetrefX: IJSSVGAnimatedLength;
  125370. begin
  125371. Result:=ReadJSPropertyObject('refX',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125372. end;
  125373. function TJSSVGMarkerElement._GetrefY: IJSSVGAnimatedLength;
  125374. begin
  125375. Result:=ReadJSPropertyObject('refY',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125376. end;
  125377. function TJSSVGMarkerElement._GetmarkerUnits: IJSSVGAnimatedEnumeration;
  125378. begin
  125379. Result:=ReadJSPropertyObject('markerUnits',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  125380. end;
  125381. function TJSSVGMarkerElement._GetmarkerWidth: IJSSVGAnimatedLength;
  125382. begin
  125383. Result:=ReadJSPropertyObject('markerWidth',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125384. end;
  125385. function TJSSVGMarkerElement._GetmarkerHeight: IJSSVGAnimatedLength;
  125386. begin
  125387. Result:=ReadJSPropertyObject('markerHeight',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125388. end;
  125389. function TJSSVGMarkerElement._GetorientType: IJSSVGAnimatedEnumeration;
  125390. begin
  125391. Result:=ReadJSPropertyObject('orientType',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  125392. end;
  125393. function TJSSVGMarkerElement._GetorientAngle: IJSSVGAnimatedAngle;
  125394. begin
  125395. Result:=ReadJSPropertyObject('orientAngle',TJSSVGAnimatedAngle) as IJSSVGAnimatedAngle;
  125396. end;
  125397. function TJSSVGMarkerElement._GetviewBox: IJSSVGAnimatedRect;
  125398. begin
  125399. Result:=ReadJSPropertyObject('viewBox',TJSSVGAnimatedRect) as IJSSVGAnimatedRect;
  125400. end;
  125401. function TJSSVGMarkerElement._GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  125402. begin
  125403. Result:=ReadJSPropertyObject('preserveAspectRatio',TJSSVGAnimatedPreserveAspectRatio) as IJSSVGAnimatedPreserveAspectRatio;
  125404. end;
  125405. procedure TJSSVGMarkerElement.setOrientToAuto;
  125406. begin
  125407. InvokeJSNoResult('setOrientToAuto',[]);
  125408. end;
  125409. procedure TJSSVGMarkerElement.setOrientToAngle(aAngle: IJSSVGAngle);
  125410. begin
  125411. InvokeJSNoResult('setOrientToAngle',[aAngle]);
  125412. end;
  125413. class function TJSSVGMarkerElement.JSClassName: UnicodeString;
  125414. begin
  125415. Result:='SVGMarkerElement';
  125416. end;
  125417. class function TJSSVGMarkerElement.Cast(const Intf: IJSObject): IJSSVGMarkerElement;
  125418. begin
  125419. Result:=TJSSVGMarkerElement.JOBCast(Intf);
  125420. end;
  125421. function TJSSVGMaskElement._GetmaskUnits: IJSSVGAnimatedEnumeration;
  125422. begin
  125423. Result:=ReadJSPropertyObject('maskUnits',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  125424. end;
  125425. function TJSSVGMaskElement._GetmaskContentUnits: IJSSVGAnimatedEnumeration;
  125426. begin
  125427. Result:=ReadJSPropertyObject('maskContentUnits',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  125428. end;
  125429. function TJSSVGMaskElement._Getx: IJSSVGAnimatedLength;
  125430. begin
  125431. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125432. end;
  125433. function TJSSVGMaskElement._Gety: IJSSVGAnimatedLength;
  125434. begin
  125435. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125436. end;
  125437. function TJSSVGMaskElement._Getwidth: IJSSVGAnimatedLength;
  125438. begin
  125439. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125440. end;
  125441. function TJSSVGMaskElement._Getheight: IJSSVGAnimatedLength;
  125442. begin
  125443. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  125444. end;
  125445. class function TJSSVGMaskElement.JSClassName: UnicodeString;
  125446. begin
  125447. Result:='SVGMaskElement';
  125448. end;
  125449. class function TJSSVGMaskElement.Cast(const Intf: IJSObject): IJSSVGMaskElement;
  125450. begin
  125451. Result:=TJSSVGMaskElement.JOBCast(Intf);
  125452. end;
  125453. function TJSSVGMatrix._Geta: Single;
  125454. begin
  125455. Result:=ReadJSPropertyDouble('a');
  125456. end;
  125457. function TJSSVGMatrix._Getb: Single;
  125458. begin
  125459. Result:=ReadJSPropertyDouble('b');
  125460. end;
  125461. function TJSSVGMatrix._Getc: Single;
  125462. begin
  125463. Result:=ReadJSPropertyDouble('c');
  125464. end;
  125465. function TJSSVGMatrix._Getd: Single;
  125466. begin
  125467. Result:=ReadJSPropertyDouble('d');
  125468. end;
  125469. function TJSSVGMatrix._Gete: Single;
  125470. begin
  125471. Result:=ReadJSPropertyDouble('e');
  125472. end;
  125473. function TJSSVGMatrix._Getf: Single;
  125474. begin
  125475. Result:=ReadJSPropertyDouble('f');
  125476. end;
  125477. procedure TJSSVGMatrix._Seta(const aValue : Single);
  125478. begin
  125479. WriteJSPropertyDouble('a',aValue);
  125480. end;
  125481. procedure TJSSVGMatrix._Setb(const aValue : Single);
  125482. begin
  125483. WriteJSPropertyDouble('b',aValue);
  125484. end;
  125485. procedure TJSSVGMatrix._Setc(const aValue : Single);
  125486. begin
  125487. WriteJSPropertyDouble('c',aValue);
  125488. end;
  125489. procedure TJSSVGMatrix._Setd(const aValue : Single);
  125490. begin
  125491. WriteJSPropertyDouble('d',aValue);
  125492. end;
  125493. procedure TJSSVGMatrix._Sete(const aValue : Single);
  125494. begin
  125495. WriteJSPropertyDouble('e',aValue);
  125496. end;
  125497. procedure TJSSVGMatrix._Setf(const aValue : Single);
  125498. begin
  125499. WriteJSPropertyDouble('f',aValue);
  125500. end;
  125501. function TJSSVGMatrix.multiply(aSecondMatrix: IJSSVGMatrix): IJSSVGMatrix;
  125502. begin
  125503. Result:=InvokeJSObjectResult('multiply',[aSecondMatrix],TJSSVGMatrix) as IJSSVGMatrix;
  125504. end;
  125505. function TJSSVGMatrix.inverse: IJSSVGMatrix;
  125506. begin
  125507. Result:=InvokeJSObjectResult('inverse',[],TJSSVGMatrix) as IJSSVGMatrix;
  125508. end;
  125509. function TJSSVGMatrix.translate(aX: Single; aY: Single): IJSSVGMatrix;
  125510. begin
  125511. Result:=InvokeJSObjectResult('translate',[aX,aY],TJSSVGMatrix) as IJSSVGMatrix;
  125512. end;
  125513. function TJSSVGMatrix.scale(aScaleFactor: Single): IJSSVGMatrix;
  125514. begin
  125515. Result:=InvokeJSObjectResult('scale',[aScaleFactor],TJSSVGMatrix) as IJSSVGMatrix;
  125516. end;
  125517. function TJSSVGMatrix.scaleNonUniform(aScaleFactorX: Single; aScaleFactorY: Single): IJSSVGMatrix;
  125518. begin
  125519. Result:=InvokeJSObjectResult('scaleNonUniform',[aScaleFactorX,aScaleFactorY],TJSSVGMatrix) as IJSSVGMatrix;
  125520. end;
  125521. function TJSSVGMatrix.rotate(aAngle: Single): IJSSVGMatrix;
  125522. begin
  125523. Result:=InvokeJSObjectResult('rotate',[aAngle],TJSSVGMatrix) as IJSSVGMatrix;
  125524. end;
  125525. function TJSSVGMatrix.rotateFromVector(aX: Single; aY: Single): IJSSVGMatrix;
  125526. begin
  125527. Result:=InvokeJSObjectResult('rotateFromVector',[aX,aY],TJSSVGMatrix) as IJSSVGMatrix;
  125528. end;
  125529. function TJSSVGMatrix.flipX: IJSSVGMatrix;
  125530. begin
  125531. Result:=InvokeJSObjectResult('flipX',[],TJSSVGMatrix) as IJSSVGMatrix;
  125532. end;
  125533. function TJSSVGMatrix.flipY: IJSSVGMatrix;
  125534. begin
  125535. Result:=InvokeJSObjectResult('flipY',[],TJSSVGMatrix) as IJSSVGMatrix;
  125536. end;
  125537. function TJSSVGMatrix.skewX(aAngle: Single): IJSSVGMatrix;
  125538. begin
  125539. Result:=InvokeJSObjectResult('skewX',[aAngle],TJSSVGMatrix) as IJSSVGMatrix;
  125540. end;
  125541. function TJSSVGMatrix.skewY(aAngle: Single): IJSSVGMatrix;
  125542. begin
  125543. Result:=InvokeJSObjectResult('skewY',[aAngle],TJSSVGMatrix) as IJSSVGMatrix;
  125544. end;
  125545. class function TJSSVGMatrix.JSClassName: UnicodeString;
  125546. begin
  125547. Result:='SVGMatrix';
  125548. end;
  125549. class function TJSSVGMatrix.Cast(const Intf: IJSObject): IJSSVGMatrix;
  125550. begin
  125551. Result:=TJSSVGMatrix.JOBCast(Intf);
  125552. end;
  125553. class function TJSSVGMetadataElement.JSClassName: UnicodeString;
  125554. begin
  125555. Result:='SVGMetadataElement';
  125556. end;
  125557. class function TJSSVGMetadataElement.Cast(const Intf: IJSObject): IJSSVGMetadataElement;
  125558. begin
  125559. Result:=TJSSVGMetadataElement.JOBCast(Intf);
  125560. end;
  125561. function TJSSVGMPathElement._Gethref: IJSSVGAnimatedString;
  125562. begin
  125563. Result:=ReadJSPropertyObject('href',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  125564. end;
  125565. class function TJSSVGMPathElement.JSClassName: UnicodeString;
  125566. begin
  125567. Result:='SVGMPathElement';
  125568. end;
  125569. class function TJSSVGMPathElement.Cast(const Intf: IJSObject): IJSSVGMPathElement;
  125570. begin
  125571. Result:=TJSSVGMPathElement.JOBCast(Intf);
  125572. end;
  125573. function TJSSVGNumber._Getvalue: Single;
  125574. begin
  125575. Result:=ReadJSPropertyDouble('value');
  125576. end;
  125577. procedure TJSSVGNumber._Setvalue(const aValue : Single);
  125578. begin
  125579. WriteJSPropertyDouble('value',aValue);
  125580. end;
  125581. class function TJSSVGNumber.JSClassName: UnicodeString;
  125582. begin
  125583. Result:='SVGNumber';
  125584. end;
  125585. class function TJSSVGNumber.Cast(const Intf: IJSObject): IJSSVGNumber;
  125586. begin
  125587. Result:=TJSSVGNumber.JOBCast(Intf);
  125588. end;
  125589. function TJSSVGNumberList._GetnumberOfItems: Cardinal;
  125590. begin
  125591. Result:=ReadJSPropertyInt64('numberOfItems');
  125592. end;
  125593. function TJSSVGNumberList._Getlength_: Cardinal;
  125594. begin
  125595. Result:=ReadJSPropertyInt64('length');
  125596. end;
  125597. procedure TJSSVGNumberList.clear;
  125598. begin
  125599. InvokeJSNoResult('clear',[]);
  125600. end;
  125601. function TJSSVGNumberList.initialize(aNewItem: IJSSVGNumber): IJSSVGNumber;
  125602. begin
  125603. Result:=InvokeJSObjectResult('initialize',[aNewItem],TJSSVGNumber) as IJSSVGNumber;
  125604. end;
  125605. function TJSSVGNumberList.getItem(aIndex: Cardinal): IJSSVGNumber;
  125606. begin
  125607. Result:=InvokeJSObjectResult('getItem',[aIndex],TJSSVGNumber) as IJSSVGNumber;
  125608. end;
  125609. function TJSSVGNumberList.insertItemBefore(aNewItem: IJSSVGNumber; aIndex: Cardinal): IJSSVGNumber;
  125610. begin
  125611. Result:=InvokeJSObjectResult('insertItemBefore',[aNewItem,aIndex],TJSSVGNumber) as IJSSVGNumber;
  125612. end;
  125613. function TJSSVGNumberList.replaceItem(aNewItem: IJSSVGNumber; aIndex: Cardinal): IJSSVGNumber;
  125614. begin
  125615. Result:=InvokeJSObjectResult('replaceItem',[aNewItem,aIndex],TJSSVGNumber) as IJSSVGNumber;
  125616. end;
  125617. function TJSSVGNumberList.removeItem(aIndex: Cardinal): IJSSVGNumber;
  125618. begin
  125619. Result:=InvokeJSObjectResult('removeItem',[aIndex],TJSSVGNumber) as IJSSVGNumber;
  125620. end;
  125621. function TJSSVGNumberList.appendItem(aNewItem: IJSSVGNumber): IJSSVGNumber;
  125622. begin
  125623. Result:=InvokeJSObjectResult('appendItem',[aNewItem],TJSSVGNumber) as IJSSVGNumber;
  125624. end;
  125625. class function TJSSVGNumberList.JSClassName: UnicodeString;
  125626. begin
  125627. Result:='SVGNumberList';
  125628. end;
  125629. class function TJSSVGNumberList.Cast(const Intf: IJSObject): IJSSVGNumberList;
  125630. begin
  125631. Result:=TJSSVGNumberList.JOBCast(Intf);
  125632. end;
  125633. function TJSSVGPathElement._GetpathSegList: IJSSVGPathSegList;
  125634. begin
  125635. Result:=ReadJSPropertyObject('pathSegList',TJSSVGPathSegList) as IJSSVGPathSegList;
  125636. end;
  125637. function TJSSVGPathElement._GetanimatedPathSegList: IJSSVGPathSegList;
  125638. begin
  125639. Result:=ReadJSPropertyObject('animatedPathSegList',TJSSVGPathSegList) as IJSSVGPathSegList;
  125640. end;
  125641. function TJSSVGPathElement.getPathSegAtLength(aDistance: Single): Cardinal;
  125642. begin
  125643. Result:=InvokeJSLongIntResult('getPathSegAtLength',[aDistance]);
  125644. end;
  125645. class function TJSSVGPathElement.JSClassName: UnicodeString;
  125646. begin
  125647. Result:='SVGPathElement';
  125648. end;
  125649. class function TJSSVGPathElement.Cast(const Intf: IJSObject): IJSSVGPathElement;
  125650. begin
  125651. Result:=TJSSVGPathElement.JOBCast(Intf);
  125652. end;
  125653. function TJSSVGPathSeg._GetpathSegType: Word;
  125654. begin
  125655. Result:=ReadJSPropertyLongInt('pathSegType');
  125656. end;
  125657. function TJSSVGPathSeg._GetpathSegTypeAsLetter: UnicodeString;
  125658. begin
  125659. Result:=ReadJSPropertyUnicodeString('pathSegTypeAsLetter');
  125660. end;
  125661. class function TJSSVGPathSeg.JSClassName: UnicodeString;
  125662. begin
  125663. Result:='SVGPathSeg';
  125664. end;
  125665. class function TJSSVGPathSeg.Cast(const Intf: IJSObject): IJSSVGPathSeg;
  125666. begin
  125667. Result:=TJSSVGPathSeg.JOBCast(Intf);
  125668. end;
  125669. class function TJSSVGPathSegClosePath.JSClassName: UnicodeString;
  125670. begin
  125671. Result:='SVGPathSegClosePath';
  125672. end;
  125673. class function TJSSVGPathSegClosePath.Cast(const Intf: IJSObject): IJSSVGPathSegClosePath;
  125674. begin
  125675. Result:=TJSSVGPathSegClosePath.JOBCast(Intf);
  125676. end;
  125677. function TJSSVGPathSegMovetoAbs._Getx: Single;
  125678. begin
  125679. Result:=ReadJSPropertyDouble('x');
  125680. end;
  125681. function TJSSVGPathSegMovetoAbs._Gety: Single;
  125682. begin
  125683. Result:=ReadJSPropertyDouble('y');
  125684. end;
  125685. procedure TJSSVGPathSegMovetoAbs._Setx(const aValue : Single);
  125686. begin
  125687. WriteJSPropertyDouble('x',aValue);
  125688. end;
  125689. procedure TJSSVGPathSegMovetoAbs._Sety(const aValue : Single);
  125690. begin
  125691. WriteJSPropertyDouble('y',aValue);
  125692. end;
  125693. class function TJSSVGPathSegMovetoAbs.JSClassName: UnicodeString;
  125694. begin
  125695. Result:='SVGPathSegMovetoAbs';
  125696. end;
  125697. class function TJSSVGPathSegMovetoAbs.Cast(const Intf: IJSObject): IJSSVGPathSegMovetoAbs;
  125698. begin
  125699. Result:=TJSSVGPathSegMovetoAbs.JOBCast(Intf);
  125700. end;
  125701. function TJSSVGPathSegMovetoRel._Getx: Single;
  125702. begin
  125703. Result:=ReadJSPropertyDouble('x');
  125704. end;
  125705. function TJSSVGPathSegMovetoRel._Gety: Single;
  125706. begin
  125707. Result:=ReadJSPropertyDouble('y');
  125708. end;
  125709. procedure TJSSVGPathSegMovetoRel._Setx(const aValue : Single);
  125710. begin
  125711. WriteJSPropertyDouble('x',aValue);
  125712. end;
  125713. procedure TJSSVGPathSegMovetoRel._Sety(const aValue : Single);
  125714. begin
  125715. WriteJSPropertyDouble('y',aValue);
  125716. end;
  125717. class function TJSSVGPathSegMovetoRel.JSClassName: UnicodeString;
  125718. begin
  125719. Result:='SVGPathSegMovetoRel';
  125720. end;
  125721. class function TJSSVGPathSegMovetoRel.Cast(const Intf: IJSObject): IJSSVGPathSegMovetoRel;
  125722. begin
  125723. Result:=TJSSVGPathSegMovetoRel.JOBCast(Intf);
  125724. end;
  125725. function TJSSVGPathSegLinetoAbs._Getx: Single;
  125726. begin
  125727. Result:=ReadJSPropertyDouble('x');
  125728. end;
  125729. function TJSSVGPathSegLinetoAbs._Gety: Single;
  125730. begin
  125731. Result:=ReadJSPropertyDouble('y');
  125732. end;
  125733. procedure TJSSVGPathSegLinetoAbs._Setx(const aValue : Single);
  125734. begin
  125735. WriteJSPropertyDouble('x',aValue);
  125736. end;
  125737. procedure TJSSVGPathSegLinetoAbs._Sety(const aValue : Single);
  125738. begin
  125739. WriteJSPropertyDouble('y',aValue);
  125740. end;
  125741. class function TJSSVGPathSegLinetoAbs.JSClassName: UnicodeString;
  125742. begin
  125743. Result:='SVGPathSegLinetoAbs';
  125744. end;
  125745. class function TJSSVGPathSegLinetoAbs.Cast(const Intf: IJSObject): IJSSVGPathSegLinetoAbs;
  125746. begin
  125747. Result:=TJSSVGPathSegLinetoAbs.JOBCast(Intf);
  125748. end;
  125749. function TJSSVGPathSegLinetoRel._Getx: Single;
  125750. begin
  125751. Result:=ReadJSPropertyDouble('x');
  125752. end;
  125753. function TJSSVGPathSegLinetoRel._Gety: Single;
  125754. begin
  125755. Result:=ReadJSPropertyDouble('y');
  125756. end;
  125757. procedure TJSSVGPathSegLinetoRel._Setx(const aValue : Single);
  125758. begin
  125759. WriteJSPropertyDouble('x',aValue);
  125760. end;
  125761. procedure TJSSVGPathSegLinetoRel._Sety(const aValue : Single);
  125762. begin
  125763. WriteJSPropertyDouble('y',aValue);
  125764. end;
  125765. class function TJSSVGPathSegLinetoRel.JSClassName: UnicodeString;
  125766. begin
  125767. Result:='SVGPathSegLinetoRel';
  125768. end;
  125769. class function TJSSVGPathSegLinetoRel.Cast(const Intf: IJSObject): IJSSVGPathSegLinetoRel;
  125770. begin
  125771. Result:=TJSSVGPathSegLinetoRel.JOBCast(Intf);
  125772. end;
  125773. function TJSSVGPathSegCurvetoCubicAbs._Getx: Single;
  125774. begin
  125775. Result:=ReadJSPropertyDouble('x');
  125776. end;
  125777. function TJSSVGPathSegCurvetoCubicAbs._Gety: Single;
  125778. begin
  125779. Result:=ReadJSPropertyDouble('y');
  125780. end;
  125781. function TJSSVGPathSegCurvetoCubicAbs._Getx1: Single;
  125782. begin
  125783. Result:=ReadJSPropertyDouble('x1');
  125784. end;
  125785. function TJSSVGPathSegCurvetoCubicAbs._Gety1: Single;
  125786. begin
  125787. Result:=ReadJSPropertyDouble('y1');
  125788. end;
  125789. function TJSSVGPathSegCurvetoCubicAbs._Getx2: Single;
  125790. begin
  125791. Result:=ReadJSPropertyDouble('x2');
  125792. end;
  125793. function TJSSVGPathSegCurvetoCubicAbs._Gety2: Single;
  125794. begin
  125795. Result:=ReadJSPropertyDouble('y2');
  125796. end;
  125797. procedure TJSSVGPathSegCurvetoCubicAbs._Setx(const aValue : Single);
  125798. begin
  125799. WriteJSPropertyDouble('x',aValue);
  125800. end;
  125801. procedure TJSSVGPathSegCurvetoCubicAbs._Sety(const aValue : Single);
  125802. begin
  125803. WriteJSPropertyDouble('y',aValue);
  125804. end;
  125805. procedure TJSSVGPathSegCurvetoCubicAbs._Setx1(const aValue : Single);
  125806. begin
  125807. WriteJSPropertyDouble('x1',aValue);
  125808. end;
  125809. procedure TJSSVGPathSegCurvetoCubicAbs._Sety1(const aValue : Single);
  125810. begin
  125811. WriteJSPropertyDouble('y1',aValue);
  125812. end;
  125813. procedure TJSSVGPathSegCurvetoCubicAbs._Setx2(const aValue : Single);
  125814. begin
  125815. WriteJSPropertyDouble('x2',aValue);
  125816. end;
  125817. procedure TJSSVGPathSegCurvetoCubicAbs._Sety2(const aValue : Single);
  125818. begin
  125819. WriteJSPropertyDouble('y2',aValue);
  125820. end;
  125821. class function TJSSVGPathSegCurvetoCubicAbs.JSClassName: UnicodeString;
  125822. begin
  125823. Result:='SVGPathSegCurvetoCubicAbs';
  125824. end;
  125825. class function TJSSVGPathSegCurvetoCubicAbs.Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoCubicAbs;
  125826. begin
  125827. Result:=TJSSVGPathSegCurvetoCubicAbs.JOBCast(Intf);
  125828. end;
  125829. function TJSSVGPathSegCurvetoCubicRel._Getx: Single;
  125830. begin
  125831. Result:=ReadJSPropertyDouble('x');
  125832. end;
  125833. function TJSSVGPathSegCurvetoCubicRel._Gety: Single;
  125834. begin
  125835. Result:=ReadJSPropertyDouble('y');
  125836. end;
  125837. function TJSSVGPathSegCurvetoCubicRel._Getx1: Single;
  125838. begin
  125839. Result:=ReadJSPropertyDouble('x1');
  125840. end;
  125841. function TJSSVGPathSegCurvetoCubicRel._Gety1: Single;
  125842. begin
  125843. Result:=ReadJSPropertyDouble('y1');
  125844. end;
  125845. function TJSSVGPathSegCurvetoCubicRel._Getx2: Single;
  125846. begin
  125847. Result:=ReadJSPropertyDouble('x2');
  125848. end;
  125849. function TJSSVGPathSegCurvetoCubicRel._Gety2: Single;
  125850. begin
  125851. Result:=ReadJSPropertyDouble('y2');
  125852. end;
  125853. procedure TJSSVGPathSegCurvetoCubicRel._Setx(const aValue : Single);
  125854. begin
  125855. WriteJSPropertyDouble('x',aValue);
  125856. end;
  125857. procedure TJSSVGPathSegCurvetoCubicRel._Sety(const aValue : Single);
  125858. begin
  125859. WriteJSPropertyDouble('y',aValue);
  125860. end;
  125861. procedure TJSSVGPathSegCurvetoCubicRel._Setx1(const aValue : Single);
  125862. begin
  125863. WriteJSPropertyDouble('x1',aValue);
  125864. end;
  125865. procedure TJSSVGPathSegCurvetoCubicRel._Sety1(const aValue : Single);
  125866. begin
  125867. WriteJSPropertyDouble('y1',aValue);
  125868. end;
  125869. procedure TJSSVGPathSegCurvetoCubicRel._Setx2(const aValue : Single);
  125870. begin
  125871. WriteJSPropertyDouble('x2',aValue);
  125872. end;
  125873. procedure TJSSVGPathSegCurvetoCubicRel._Sety2(const aValue : Single);
  125874. begin
  125875. WriteJSPropertyDouble('y2',aValue);
  125876. end;
  125877. class function TJSSVGPathSegCurvetoCubicRel.JSClassName: UnicodeString;
  125878. begin
  125879. Result:='SVGPathSegCurvetoCubicRel';
  125880. end;
  125881. class function TJSSVGPathSegCurvetoCubicRel.Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoCubicRel;
  125882. begin
  125883. Result:=TJSSVGPathSegCurvetoCubicRel.JOBCast(Intf);
  125884. end;
  125885. function TJSSVGPathSegCurvetoQuadraticAbs._Getx: Single;
  125886. begin
  125887. Result:=ReadJSPropertyDouble('x');
  125888. end;
  125889. function TJSSVGPathSegCurvetoQuadraticAbs._Gety: Single;
  125890. begin
  125891. Result:=ReadJSPropertyDouble('y');
  125892. end;
  125893. function TJSSVGPathSegCurvetoQuadraticAbs._Getx1: Single;
  125894. begin
  125895. Result:=ReadJSPropertyDouble('x1');
  125896. end;
  125897. function TJSSVGPathSegCurvetoQuadraticAbs._Gety1: Single;
  125898. begin
  125899. Result:=ReadJSPropertyDouble('y1');
  125900. end;
  125901. procedure TJSSVGPathSegCurvetoQuadraticAbs._Setx(const aValue : Single);
  125902. begin
  125903. WriteJSPropertyDouble('x',aValue);
  125904. end;
  125905. procedure TJSSVGPathSegCurvetoQuadraticAbs._Sety(const aValue : Single);
  125906. begin
  125907. WriteJSPropertyDouble('y',aValue);
  125908. end;
  125909. procedure TJSSVGPathSegCurvetoQuadraticAbs._Setx1(const aValue : Single);
  125910. begin
  125911. WriteJSPropertyDouble('x1',aValue);
  125912. end;
  125913. procedure TJSSVGPathSegCurvetoQuadraticAbs._Sety1(const aValue : Single);
  125914. begin
  125915. WriteJSPropertyDouble('y1',aValue);
  125916. end;
  125917. class function TJSSVGPathSegCurvetoQuadraticAbs.JSClassName: UnicodeString;
  125918. begin
  125919. Result:='SVGPathSegCurvetoQuadraticAbs';
  125920. end;
  125921. class function TJSSVGPathSegCurvetoQuadraticAbs.Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoQuadraticAbs;
  125922. begin
  125923. Result:=TJSSVGPathSegCurvetoQuadraticAbs.JOBCast(Intf);
  125924. end;
  125925. function TJSSVGPathSegCurvetoQuadraticRel._Getx: Single;
  125926. begin
  125927. Result:=ReadJSPropertyDouble('x');
  125928. end;
  125929. function TJSSVGPathSegCurvetoQuadraticRel._Gety: Single;
  125930. begin
  125931. Result:=ReadJSPropertyDouble('y');
  125932. end;
  125933. function TJSSVGPathSegCurvetoQuadraticRel._Getx1: Single;
  125934. begin
  125935. Result:=ReadJSPropertyDouble('x1');
  125936. end;
  125937. function TJSSVGPathSegCurvetoQuadraticRel._Gety1: Single;
  125938. begin
  125939. Result:=ReadJSPropertyDouble('y1');
  125940. end;
  125941. procedure TJSSVGPathSegCurvetoQuadraticRel._Setx(const aValue : Single);
  125942. begin
  125943. WriteJSPropertyDouble('x',aValue);
  125944. end;
  125945. procedure TJSSVGPathSegCurvetoQuadraticRel._Sety(const aValue : Single);
  125946. begin
  125947. WriteJSPropertyDouble('y',aValue);
  125948. end;
  125949. procedure TJSSVGPathSegCurvetoQuadraticRel._Setx1(const aValue : Single);
  125950. begin
  125951. WriteJSPropertyDouble('x1',aValue);
  125952. end;
  125953. procedure TJSSVGPathSegCurvetoQuadraticRel._Sety1(const aValue : Single);
  125954. begin
  125955. WriteJSPropertyDouble('y1',aValue);
  125956. end;
  125957. class function TJSSVGPathSegCurvetoQuadraticRel.JSClassName: UnicodeString;
  125958. begin
  125959. Result:='SVGPathSegCurvetoQuadraticRel';
  125960. end;
  125961. class function TJSSVGPathSegCurvetoQuadraticRel.Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoQuadraticRel;
  125962. begin
  125963. Result:=TJSSVGPathSegCurvetoQuadraticRel.JOBCast(Intf);
  125964. end;
  125965. function TJSSVGPathSegArcAbs._Getx: Single;
  125966. begin
  125967. Result:=ReadJSPropertyDouble('x');
  125968. end;
  125969. function TJSSVGPathSegArcAbs._Gety: Single;
  125970. begin
  125971. Result:=ReadJSPropertyDouble('y');
  125972. end;
  125973. function TJSSVGPathSegArcAbs._Getr1: Single;
  125974. begin
  125975. Result:=ReadJSPropertyDouble('r1');
  125976. end;
  125977. function TJSSVGPathSegArcAbs._Getr2: Single;
  125978. begin
  125979. Result:=ReadJSPropertyDouble('r2');
  125980. end;
  125981. function TJSSVGPathSegArcAbs._Getangle: Single;
  125982. begin
  125983. Result:=ReadJSPropertyDouble('angle');
  125984. end;
  125985. function TJSSVGPathSegArcAbs._GetlargeArcFlag: Boolean;
  125986. begin
  125987. Result:=ReadJSPropertyBoolean('largeArcFlag');
  125988. end;
  125989. function TJSSVGPathSegArcAbs._GetsweepFlag: Boolean;
  125990. begin
  125991. Result:=ReadJSPropertyBoolean('sweepFlag');
  125992. end;
  125993. procedure TJSSVGPathSegArcAbs._Setx(const aValue : Single);
  125994. begin
  125995. WriteJSPropertyDouble('x',aValue);
  125996. end;
  125997. procedure TJSSVGPathSegArcAbs._Sety(const aValue : Single);
  125998. begin
  125999. WriteJSPropertyDouble('y',aValue);
  126000. end;
  126001. procedure TJSSVGPathSegArcAbs._Setr1(const aValue : Single);
  126002. begin
  126003. WriteJSPropertyDouble('r1',aValue);
  126004. end;
  126005. procedure TJSSVGPathSegArcAbs._Setr2(const aValue : Single);
  126006. begin
  126007. WriteJSPropertyDouble('r2',aValue);
  126008. end;
  126009. procedure TJSSVGPathSegArcAbs._Setangle(const aValue : Single);
  126010. begin
  126011. WriteJSPropertyDouble('angle',aValue);
  126012. end;
  126013. procedure TJSSVGPathSegArcAbs._SetlargeArcFlag(const aValue : Boolean);
  126014. begin
  126015. WriteJSPropertyBoolean('largeArcFlag',aValue);
  126016. end;
  126017. procedure TJSSVGPathSegArcAbs._SetsweepFlag(const aValue : Boolean);
  126018. begin
  126019. WriteJSPropertyBoolean('sweepFlag',aValue);
  126020. end;
  126021. class function TJSSVGPathSegArcAbs.JSClassName: UnicodeString;
  126022. begin
  126023. Result:='SVGPathSegArcAbs';
  126024. end;
  126025. class function TJSSVGPathSegArcAbs.Cast(const Intf: IJSObject): IJSSVGPathSegArcAbs;
  126026. begin
  126027. Result:=TJSSVGPathSegArcAbs.JOBCast(Intf);
  126028. end;
  126029. function TJSSVGPathSegArcRel._Getx: Single;
  126030. begin
  126031. Result:=ReadJSPropertyDouble('x');
  126032. end;
  126033. function TJSSVGPathSegArcRel._Gety: Single;
  126034. begin
  126035. Result:=ReadJSPropertyDouble('y');
  126036. end;
  126037. function TJSSVGPathSegArcRel._Getr1: Single;
  126038. begin
  126039. Result:=ReadJSPropertyDouble('r1');
  126040. end;
  126041. function TJSSVGPathSegArcRel._Getr2: Single;
  126042. begin
  126043. Result:=ReadJSPropertyDouble('r2');
  126044. end;
  126045. function TJSSVGPathSegArcRel._Getangle: Single;
  126046. begin
  126047. Result:=ReadJSPropertyDouble('angle');
  126048. end;
  126049. function TJSSVGPathSegArcRel._GetlargeArcFlag: Boolean;
  126050. begin
  126051. Result:=ReadJSPropertyBoolean('largeArcFlag');
  126052. end;
  126053. function TJSSVGPathSegArcRel._GetsweepFlag: Boolean;
  126054. begin
  126055. Result:=ReadJSPropertyBoolean('sweepFlag');
  126056. end;
  126057. procedure TJSSVGPathSegArcRel._Setx(const aValue : Single);
  126058. begin
  126059. WriteJSPropertyDouble('x',aValue);
  126060. end;
  126061. procedure TJSSVGPathSegArcRel._Sety(const aValue : Single);
  126062. begin
  126063. WriteJSPropertyDouble('y',aValue);
  126064. end;
  126065. procedure TJSSVGPathSegArcRel._Setr1(const aValue : Single);
  126066. begin
  126067. WriteJSPropertyDouble('r1',aValue);
  126068. end;
  126069. procedure TJSSVGPathSegArcRel._Setr2(const aValue : Single);
  126070. begin
  126071. WriteJSPropertyDouble('r2',aValue);
  126072. end;
  126073. procedure TJSSVGPathSegArcRel._Setangle(const aValue : Single);
  126074. begin
  126075. WriteJSPropertyDouble('angle',aValue);
  126076. end;
  126077. procedure TJSSVGPathSegArcRel._SetlargeArcFlag(const aValue : Boolean);
  126078. begin
  126079. WriteJSPropertyBoolean('largeArcFlag',aValue);
  126080. end;
  126081. procedure TJSSVGPathSegArcRel._SetsweepFlag(const aValue : Boolean);
  126082. begin
  126083. WriteJSPropertyBoolean('sweepFlag',aValue);
  126084. end;
  126085. class function TJSSVGPathSegArcRel.JSClassName: UnicodeString;
  126086. begin
  126087. Result:='SVGPathSegArcRel';
  126088. end;
  126089. class function TJSSVGPathSegArcRel.Cast(const Intf: IJSObject): IJSSVGPathSegArcRel;
  126090. begin
  126091. Result:=TJSSVGPathSegArcRel.JOBCast(Intf);
  126092. end;
  126093. function TJSSVGPathSegLinetoHorizontalAbs._Getx: Single;
  126094. begin
  126095. Result:=ReadJSPropertyDouble('x');
  126096. end;
  126097. procedure TJSSVGPathSegLinetoHorizontalAbs._Setx(const aValue : Single);
  126098. begin
  126099. WriteJSPropertyDouble('x',aValue);
  126100. end;
  126101. class function TJSSVGPathSegLinetoHorizontalAbs.JSClassName: UnicodeString;
  126102. begin
  126103. Result:='SVGPathSegLinetoHorizontalAbs';
  126104. end;
  126105. class function TJSSVGPathSegLinetoHorizontalAbs.Cast(const Intf: IJSObject): IJSSVGPathSegLinetoHorizontalAbs;
  126106. begin
  126107. Result:=TJSSVGPathSegLinetoHorizontalAbs.JOBCast(Intf);
  126108. end;
  126109. function TJSSVGPathSegLinetoHorizontalRel._Getx: Single;
  126110. begin
  126111. Result:=ReadJSPropertyDouble('x');
  126112. end;
  126113. procedure TJSSVGPathSegLinetoHorizontalRel._Setx(const aValue : Single);
  126114. begin
  126115. WriteJSPropertyDouble('x',aValue);
  126116. end;
  126117. class function TJSSVGPathSegLinetoHorizontalRel.JSClassName: UnicodeString;
  126118. begin
  126119. Result:='SVGPathSegLinetoHorizontalRel';
  126120. end;
  126121. class function TJSSVGPathSegLinetoHorizontalRel.Cast(const Intf: IJSObject): IJSSVGPathSegLinetoHorizontalRel;
  126122. begin
  126123. Result:=TJSSVGPathSegLinetoHorizontalRel.JOBCast(Intf);
  126124. end;
  126125. function TJSSVGPathSegLinetoVerticalAbs._Gety: Single;
  126126. begin
  126127. Result:=ReadJSPropertyDouble('y');
  126128. end;
  126129. procedure TJSSVGPathSegLinetoVerticalAbs._Sety(const aValue : Single);
  126130. begin
  126131. WriteJSPropertyDouble('y',aValue);
  126132. end;
  126133. class function TJSSVGPathSegLinetoVerticalAbs.JSClassName: UnicodeString;
  126134. begin
  126135. Result:='SVGPathSegLinetoVerticalAbs';
  126136. end;
  126137. class function TJSSVGPathSegLinetoVerticalAbs.Cast(const Intf: IJSObject): IJSSVGPathSegLinetoVerticalAbs;
  126138. begin
  126139. Result:=TJSSVGPathSegLinetoVerticalAbs.JOBCast(Intf);
  126140. end;
  126141. function TJSSVGPathSegLinetoVerticalRel._Gety: Single;
  126142. begin
  126143. Result:=ReadJSPropertyDouble('y');
  126144. end;
  126145. procedure TJSSVGPathSegLinetoVerticalRel._Sety(const aValue : Single);
  126146. begin
  126147. WriteJSPropertyDouble('y',aValue);
  126148. end;
  126149. class function TJSSVGPathSegLinetoVerticalRel.JSClassName: UnicodeString;
  126150. begin
  126151. Result:='SVGPathSegLinetoVerticalRel';
  126152. end;
  126153. class function TJSSVGPathSegLinetoVerticalRel.Cast(const Intf: IJSObject): IJSSVGPathSegLinetoVerticalRel;
  126154. begin
  126155. Result:=TJSSVGPathSegLinetoVerticalRel.JOBCast(Intf);
  126156. end;
  126157. function TJSSVGPathSegCurvetoCubicSmoothAbs._Getx: Single;
  126158. begin
  126159. Result:=ReadJSPropertyDouble('x');
  126160. end;
  126161. function TJSSVGPathSegCurvetoCubicSmoothAbs._Gety: Single;
  126162. begin
  126163. Result:=ReadJSPropertyDouble('y');
  126164. end;
  126165. function TJSSVGPathSegCurvetoCubicSmoothAbs._Getx2: Single;
  126166. begin
  126167. Result:=ReadJSPropertyDouble('x2');
  126168. end;
  126169. function TJSSVGPathSegCurvetoCubicSmoothAbs._Gety2: Single;
  126170. begin
  126171. Result:=ReadJSPropertyDouble('y2');
  126172. end;
  126173. procedure TJSSVGPathSegCurvetoCubicSmoothAbs._Setx(const aValue : Single);
  126174. begin
  126175. WriteJSPropertyDouble('x',aValue);
  126176. end;
  126177. procedure TJSSVGPathSegCurvetoCubicSmoothAbs._Sety(const aValue : Single);
  126178. begin
  126179. WriteJSPropertyDouble('y',aValue);
  126180. end;
  126181. procedure TJSSVGPathSegCurvetoCubicSmoothAbs._Setx2(const aValue : Single);
  126182. begin
  126183. WriteJSPropertyDouble('x2',aValue);
  126184. end;
  126185. procedure TJSSVGPathSegCurvetoCubicSmoothAbs._Sety2(const aValue : Single);
  126186. begin
  126187. WriteJSPropertyDouble('y2',aValue);
  126188. end;
  126189. class function TJSSVGPathSegCurvetoCubicSmoothAbs.JSClassName: UnicodeString;
  126190. begin
  126191. Result:='SVGPathSegCurvetoCubicSmoothAbs';
  126192. end;
  126193. class function TJSSVGPathSegCurvetoCubicSmoothAbs.Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoCubicSmoothAbs;
  126194. begin
  126195. Result:=TJSSVGPathSegCurvetoCubicSmoothAbs.JOBCast(Intf);
  126196. end;
  126197. function TJSSVGPathSegCurvetoCubicSmoothRel._Getx: Single;
  126198. begin
  126199. Result:=ReadJSPropertyDouble('x');
  126200. end;
  126201. function TJSSVGPathSegCurvetoCubicSmoothRel._Gety: Single;
  126202. begin
  126203. Result:=ReadJSPropertyDouble('y');
  126204. end;
  126205. function TJSSVGPathSegCurvetoCubicSmoothRel._Getx2: Single;
  126206. begin
  126207. Result:=ReadJSPropertyDouble('x2');
  126208. end;
  126209. function TJSSVGPathSegCurvetoCubicSmoothRel._Gety2: Single;
  126210. begin
  126211. Result:=ReadJSPropertyDouble('y2');
  126212. end;
  126213. procedure TJSSVGPathSegCurvetoCubicSmoothRel._Setx(const aValue : Single);
  126214. begin
  126215. WriteJSPropertyDouble('x',aValue);
  126216. end;
  126217. procedure TJSSVGPathSegCurvetoCubicSmoothRel._Sety(const aValue : Single);
  126218. begin
  126219. WriteJSPropertyDouble('y',aValue);
  126220. end;
  126221. procedure TJSSVGPathSegCurvetoCubicSmoothRel._Setx2(const aValue : Single);
  126222. begin
  126223. WriteJSPropertyDouble('x2',aValue);
  126224. end;
  126225. procedure TJSSVGPathSegCurvetoCubicSmoothRel._Sety2(const aValue : Single);
  126226. begin
  126227. WriteJSPropertyDouble('y2',aValue);
  126228. end;
  126229. class function TJSSVGPathSegCurvetoCubicSmoothRel.JSClassName: UnicodeString;
  126230. begin
  126231. Result:='SVGPathSegCurvetoCubicSmoothRel';
  126232. end;
  126233. class function TJSSVGPathSegCurvetoCubicSmoothRel.Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoCubicSmoothRel;
  126234. begin
  126235. Result:=TJSSVGPathSegCurvetoCubicSmoothRel.JOBCast(Intf);
  126236. end;
  126237. function TJSSVGPathSegCurvetoQuadraticSmoothAbs._Getx: Single;
  126238. begin
  126239. Result:=ReadJSPropertyDouble('x');
  126240. end;
  126241. function TJSSVGPathSegCurvetoQuadraticSmoothAbs._Gety: Single;
  126242. begin
  126243. Result:=ReadJSPropertyDouble('y');
  126244. end;
  126245. procedure TJSSVGPathSegCurvetoQuadraticSmoothAbs._Setx(const aValue : Single);
  126246. begin
  126247. WriteJSPropertyDouble('x',aValue);
  126248. end;
  126249. procedure TJSSVGPathSegCurvetoQuadraticSmoothAbs._Sety(const aValue : Single);
  126250. begin
  126251. WriteJSPropertyDouble('y',aValue);
  126252. end;
  126253. class function TJSSVGPathSegCurvetoQuadraticSmoothAbs.JSClassName: UnicodeString;
  126254. begin
  126255. Result:='SVGPathSegCurvetoQuadraticSmoothAbs';
  126256. end;
  126257. class function TJSSVGPathSegCurvetoQuadraticSmoothAbs.Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoQuadraticSmoothAbs;
  126258. begin
  126259. Result:=TJSSVGPathSegCurvetoQuadraticSmoothAbs.JOBCast(Intf);
  126260. end;
  126261. function TJSSVGPathSegCurvetoQuadraticSmoothRel._Getx: Single;
  126262. begin
  126263. Result:=ReadJSPropertyDouble('x');
  126264. end;
  126265. function TJSSVGPathSegCurvetoQuadraticSmoothRel._Gety: Single;
  126266. begin
  126267. Result:=ReadJSPropertyDouble('y');
  126268. end;
  126269. procedure TJSSVGPathSegCurvetoQuadraticSmoothRel._Setx(const aValue : Single);
  126270. begin
  126271. WriteJSPropertyDouble('x',aValue);
  126272. end;
  126273. procedure TJSSVGPathSegCurvetoQuadraticSmoothRel._Sety(const aValue : Single);
  126274. begin
  126275. WriteJSPropertyDouble('y',aValue);
  126276. end;
  126277. class function TJSSVGPathSegCurvetoQuadraticSmoothRel.JSClassName: UnicodeString;
  126278. begin
  126279. Result:='SVGPathSegCurvetoQuadraticSmoothRel';
  126280. end;
  126281. class function TJSSVGPathSegCurvetoQuadraticSmoothRel.Cast(const Intf: IJSObject): IJSSVGPathSegCurvetoQuadraticSmoothRel;
  126282. begin
  126283. Result:=TJSSVGPathSegCurvetoQuadraticSmoothRel.JOBCast(Intf);
  126284. end;
  126285. function TJSSVGPathSegList._GetnumberOfItems: Cardinal;
  126286. begin
  126287. Result:=ReadJSPropertyInt64('numberOfItems');
  126288. end;
  126289. function TJSSVGPathSegList._Getlength_: Cardinal;
  126290. begin
  126291. Result:=ReadJSPropertyInt64('length');
  126292. end;
  126293. function TJSSVGPathSegList.getItem(aIndex: Cardinal): IJSSVGPathSeg;
  126294. begin
  126295. Result:=InvokeJSObjectResult('getItem',[aIndex],TJSSVGPathSeg) as IJSSVGPathSeg;
  126296. end;
  126297. class function TJSSVGPathSegList.JSClassName: UnicodeString;
  126298. begin
  126299. Result:='SVGPathSegList';
  126300. end;
  126301. class function TJSSVGPathSegList.Cast(const Intf: IJSObject): IJSSVGPathSegList;
  126302. begin
  126303. Result:=TJSSVGPathSegList.JOBCast(Intf);
  126304. end;
  126305. function TJSSVGPatternElement._GetpatternUnits: IJSSVGAnimatedEnumeration;
  126306. begin
  126307. Result:=ReadJSPropertyObject('patternUnits',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  126308. end;
  126309. function TJSSVGPatternElement._GetpatternContentUnits: IJSSVGAnimatedEnumeration;
  126310. begin
  126311. Result:=ReadJSPropertyObject('patternContentUnits',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  126312. end;
  126313. function TJSSVGPatternElement._GetpatternTransform: IJSSVGAnimatedTransformList;
  126314. begin
  126315. Result:=ReadJSPropertyObject('patternTransform',TJSSVGAnimatedTransformList) as IJSSVGAnimatedTransformList;
  126316. end;
  126317. function TJSSVGPatternElement._Getx: IJSSVGAnimatedLength;
  126318. begin
  126319. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126320. end;
  126321. function TJSSVGPatternElement._Gety: IJSSVGAnimatedLength;
  126322. begin
  126323. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126324. end;
  126325. function TJSSVGPatternElement._Getwidth: IJSSVGAnimatedLength;
  126326. begin
  126327. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126328. end;
  126329. function TJSSVGPatternElement._Getheight: IJSSVGAnimatedLength;
  126330. begin
  126331. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126332. end;
  126333. function TJSSVGPatternElement._GetviewBox: IJSSVGAnimatedRect;
  126334. begin
  126335. Result:=ReadJSPropertyObject('viewBox',TJSSVGAnimatedRect) as IJSSVGAnimatedRect;
  126336. end;
  126337. function TJSSVGPatternElement._GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  126338. begin
  126339. Result:=ReadJSPropertyObject('preserveAspectRatio',TJSSVGAnimatedPreserveAspectRatio) as IJSSVGAnimatedPreserveAspectRatio;
  126340. end;
  126341. function TJSSVGPatternElement._Gethref: IJSSVGAnimatedString;
  126342. begin
  126343. Result:=ReadJSPropertyObject('href',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  126344. end;
  126345. class function TJSSVGPatternElement.JSClassName: UnicodeString;
  126346. begin
  126347. Result:='SVGPatternElement';
  126348. end;
  126349. class function TJSSVGPatternElement.Cast(const Intf: IJSObject): IJSSVGPatternElement;
  126350. begin
  126351. Result:=TJSSVGPatternElement.JOBCast(Intf);
  126352. end;
  126353. function TJSSVGPoint._Getx: Single;
  126354. begin
  126355. Result:=ReadJSPropertyDouble('x');
  126356. end;
  126357. function TJSSVGPoint._Gety: Single;
  126358. begin
  126359. Result:=ReadJSPropertyDouble('y');
  126360. end;
  126361. procedure TJSSVGPoint._Setx(const aValue : Single);
  126362. begin
  126363. WriteJSPropertyDouble('x',aValue);
  126364. end;
  126365. procedure TJSSVGPoint._Sety(const aValue : Single);
  126366. begin
  126367. WriteJSPropertyDouble('y',aValue);
  126368. end;
  126369. function TJSSVGPoint.matrixTransform(const aMatrix: TJSDOMMatrix2DInit): IJSSVGPoint;
  126370. begin
  126371. Result:=InvokeJSObjectResult('matrixTransform',[aMatrix],TJSSVGPoint) as IJSSVGPoint;
  126372. end;
  126373. function TJSSVGPoint.matrixTransform: IJSSVGPoint;
  126374. begin
  126375. Result:=InvokeJSObjectResult('matrixTransform',[],TJSSVGPoint) as IJSSVGPoint;
  126376. end;
  126377. class function TJSSVGPoint.JSClassName: UnicodeString;
  126378. begin
  126379. Result:='SVGPoint';
  126380. end;
  126381. class function TJSSVGPoint.Cast(const Intf: IJSObject): IJSSVGPoint;
  126382. begin
  126383. Result:=TJSSVGPoint.JOBCast(Intf);
  126384. end;
  126385. function TJSSVGPointList._GetnumberOfItems: Cardinal;
  126386. begin
  126387. Result:=ReadJSPropertyInt64('numberOfItems');
  126388. end;
  126389. function TJSSVGPointList._Getlength_: Cardinal;
  126390. begin
  126391. Result:=ReadJSPropertyInt64('length');
  126392. end;
  126393. procedure TJSSVGPointList.clear;
  126394. begin
  126395. InvokeJSNoResult('clear',[]);
  126396. end;
  126397. function TJSSVGPointList.initialize(aNewItem: IJSSVGPoint): IJSSVGPoint;
  126398. begin
  126399. Result:=InvokeJSObjectResult('initialize',[aNewItem],TJSSVGPoint) as IJSSVGPoint;
  126400. end;
  126401. function TJSSVGPointList.getItem(aIndex: Cardinal): IJSSVGPoint;
  126402. begin
  126403. Result:=InvokeJSObjectResult('getItem',[aIndex],TJSSVGPoint) as IJSSVGPoint;
  126404. end;
  126405. function TJSSVGPointList.insertItemBefore(aNewItem: IJSSVGPoint; aIndex: Cardinal): IJSSVGPoint;
  126406. begin
  126407. Result:=InvokeJSObjectResult('insertItemBefore',[aNewItem,aIndex],TJSSVGPoint) as IJSSVGPoint;
  126408. end;
  126409. function TJSSVGPointList.replaceItem(aNewItem: IJSSVGPoint; aIndex: Cardinal): IJSSVGPoint;
  126410. begin
  126411. Result:=InvokeJSObjectResult('replaceItem',[aNewItem,aIndex],TJSSVGPoint) as IJSSVGPoint;
  126412. end;
  126413. function TJSSVGPointList.removeItem(aIndex: Cardinal): IJSSVGPoint;
  126414. begin
  126415. Result:=InvokeJSObjectResult('removeItem',[aIndex],TJSSVGPoint) as IJSSVGPoint;
  126416. end;
  126417. function TJSSVGPointList.appendItem(aNewItem: IJSSVGPoint): IJSSVGPoint;
  126418. begin
  126419. Result:=InvokeJSObjectResult('appendItem',[aNewItem],TJSSVGPoint) as IJSSVGPoint;
  126420. end;
  126421. class function TJSSVGPointList.JSClassName: UnicodeString;
  126422. begin
  126423. Result:='SVGPointList';
  126424. end;
  126425. class function TJSSVGPointList.Cast(const Intf: IJSObject): IJSSVGPointList;
  126426. begin
  126427. Result:=TJSSVGPointList.JOBCast(Intf);
  126428. end;
  126429. function TJSSVGPolygonElement._Getpoints: IJSSVGPointList;
  126430. begin
  126431. Result:=ReadJSPropertyObject('points',TJSSVGPointList) as IJSSVGPointList;
  126432. end;
  126433. function TJSSVGPolygonElement._GetanimatedPoints: IJSSVGPointList;
  126434. begin
  126435. Result:=ReadJSPropertyObject('animatedPoints',TJSSVGPointList) as IJSSVGPointList;
  126436. end;
  126437. class function TJSSVGPolygonElement.JSClassName: UnicodeString;
  126438. begin
  126439. Result:='SVGPolygonElement';
  126440. end;
  126441. class function TJSSVGPolygonElement.Cast(const Intf: IJSObject): IJSSVGPolygonElement;
  126442. begin
  126443. Result:=TJSSVGPolygonElement.JOBCast(Intf);
  126444. end;
  126445. function TJSSVGPolylineElement._Getpoints: IJSSVGPointList;
  126446. begin
  126447. Result:=ReadJSPropertyObject('points',TJSSVGPointList) as IJSSVGPointList;
  126448. end;
  126449. function TJSSVGPolylineElement._GetanimatedPoints: IJSSVGPointList;
  126450. begin
  126451. Result:=ReadJSPropertyObject('animatedPoints',TJSSVGPointList) as IJSSVGPointList;
  126452. end;
  126453. class function TJSSVGPolylineElement.JSClassName: UnicodeString;
  126454. begin
  126455. Result:='SVGPolylineElement';
  126456. end;
  126457. class function TJSSVGPolylineElement.Cast(const Intf: IJSObject): IJSSVGPolylineElement;
  126458. begin
  126459. Result:=TJSSVGPolylineElement.JOBCast(Intf);
  126460. end;
  126461. function TJSSVGPreserveAspectRatio._Getalign: Word;
  126462. begin
  126463. Result:=ReadJSPropertyLongInt('align');
  126464. end;
  126465. function TJSSVGPreserveAspectRatio._GetmeetOrSlice: Word;
  126466. begin
  126467. Result:=ReadJSPropertyLongInt('meetOrSlice');
  126468. end;
  126469. procedure TJSSVGPreserveAspectRatio._Setalign(const aValue : Word);
  126470. begin
  126471. WriteJSPropertyLongInt('align',aValue);
  126472. end;
  126473. procedure TJSSVGPreserveAspectRatio._SetmeetOrSlice(const aValue : Word);
  126474. begin
  126475. WriteJSPropertyLongInt('meetOrSlice',aValue);
  126476. end;
  126477. class function TJSSVGPreserveAspectRatio.JSClassName: UnicodeString;
  126478. begin
  126479. Result:='SVGPreserveAspectRatio';
  126480. end;
  126481. class function TJSSVGPreserveAspectRatio.Cast(const Intf: IJSObject): IJSSVGPreserveAspectRatio;
  126482. begin
  126483. Result:=TJSSVGPreserveAspectRatio.JOBCast(Intf);
  126484. end;
  126485. function TJSSVGRadialGradientElement._Getcx: IJSSVGAnimatedLength;
  126486. begin
  126487. Result:=ReadJSPropertyObject('cx',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126488. end;
  126489. function TJSSVGRadialGradientElement._Getcy: IJSSVGAnimatedLength;
  126490. begin
  126491. Result:=ReadJSPropertyObject('cy',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126492. end;
  126493. function TJSSVGRadialGradientElement._Getr: IJSSVGAnimatedLength;
  126494. begin
  126495. Result:=ReadJSPropertyObject('r',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126496. end;
  126497. function TJSSVGRadialGradientElement._Getfx: IJSSVGAnimatedLength;
  126498. begin
  126499. Result:=ReadJSPropertyObject('fx',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126500. end;
  126501. function TJSSVGRadialGradientElement._Getfy: IJSSVGAnimatedLength;
  126502. begin
  126503. Result:=ReadJSPropertyObject('fy',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126504. end;
  126505. function TJSSVGRadialGradientElement._Getfr: IJSSVGAnimatedLength;
  126506. begin
  126507. Result:=ReadJSPropertyObject('fr',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126508. end;
  126509. class function TJSSVGRadialGradientElement.JSClassName: UnicodeString;
  126510. begin
  126511. Result:='SVGRadialGradientElement';
  126512. end;
  126513. class function TJSSVGRadialGradientElement.Cast(const Intf: IJSObject): IJSSVGRadialGradientElement;
  126514. begin
  126515. Result:=TJSSVGRadialGradientElement.JOBCast(Intf);
  126516. end;
  126517. function TJSSVGRect._Getx: Single;
  126518. begin
  126519. Result:=ReadJSPropertyDouble('x');
  126520. end;
  126521. function TJSSVGRect._Gety: Single;
  126522. begin
  126523. Result:=ReadJSPropertyDouble('y');
  126524. end;
  126525. function TJSSVGRect._Getwidth: Single;
  126526. begin
  126527. Result:=ReadJSPropertyDouble('width');
  126528. end;
  126529. function TJSSVGRect._Getheight: Single;
  126530. begin
  126531. Result:=ReadJSPropertyDouble('height');
  126532. end;
  126533. procedure TJSSVGRect._Setx(const aValue : Single);
  126534. begin
  126535. WriteJSPropertyDouble('x',aValue);
  126536. end;
  126537. procedure TJSSVGRect._Sety(const aValue : Single);
  126538. begin
  126539. WriteJSPropertyDouble('y',aValue);
  126540. end;
  126541. procedure TJSSVGRect._Setwidth(const aValue : Single);
  126542. begin
  126543. WriteJSPropertyDouble('width',aValue);
  126544. end;
  126545. procedure TJSSVGRect._Setheight(const aValue : Single);
  126546. begin
  126547. WriteJSPropertyDouble('height',aValue);
  126548. end;
  126549. class function TJSSVGRect.JSClassName: UnicodeString;
  126550. begin
  126551. Result:='SVGRect';
  126552. end;
  126553. class function TJSSVGRect.Cast(const Intf: IJSObject): IJSSVGRect;
  126554. begin
  126555. Result:=TJSSVGRect.JOBCast(Intf);
  126556. end;
  126557. function TJSSVGRectElement._Getx: IJSSVGAnimatedLength;
  126558. begin
  126559. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126560. end;
  126561. function TJSSVGRectElement._Gety: IJSSVGAnimatedLength;
  126562. begin
  126563. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126564. end;
  126565. function TJSSVGRectElement._Getwidth: IJSSVGAnimatedLength;
  126566. begin
  126567. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126568. end;
  126569. function TJSSVGRectElement._Getheight: IJSSVGAnimatedLength;
  126570. begin
  126571. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126572. end;
  126573. function TJSSVGRectElement._Getrx: IJSSVGAnimatedLength;
  126574. begin
  126575. Result:=ReadJSPropertyObject('rx',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126576. end;
  126577. function TJSSVGRectElement._Getry: IJSSVGAnimatedLength;
  126578. begin
  126579. Result:=ReadJSPropertyObject('ry',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126580. end;
  126581. class function TJSSVGRectElement.JSClassName: UnicodeString;
  126582. begin
  126583. Result:='SVGRectElement';
  126584. end;
  126585. class function TJSSVGRectElement.Cast(const Intf: IJSObject): IJSSVGRectElement;
  126586. begin
  126587. Result:=TJSSVGRectElement.JOBCast(Intf);
  126588. end;
  126589. function TJSSVGScriptElement._Gettype_: UnicodeString;
  126590. begin
  126591. Result:=ReadJSPropertyUnicodeString('type');
  126592. end;
  126593. function TJSSVGScriptElement._Getasync: Boolean;
  126594. begin
  126595. Result:=ReadJSPropertyBoolean('async');
  126596. end;
  126597. function TJSSVGScriptElement._Getdefer: Boolean;
  126598. begin
  126599. Result:=ReadJSPropertyBoolean('defer');
  126600. end;
  126601. function TJSSVGScriptElement._GetcrossOrigin: UnicodeString;
  126602. begin
  126603. Result:=ReadJSPropertyUnicodeString('crossOrigin');
  126604. end;
  126605. function TJSSVGScriptElement._Gethref: IJSSVGAnimatedString;
  126606. begin
  126607. Result:=ReadJSPropertyObject('href',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  126608. end;
  126609. procedure TJSSVGScriptElement._Settype_(const aValue : UnicodeString);
  126610. begin
  126611. WriteJSPropertyUnicodeString('type',aValue);
  126612. end;
  126613. procedure TJSSVGScriptElement._Setasync(const aValue : Boolean);
  126614. begin
  126615. WriteJSPropertyBoolean('async',aValue);
  126616. end;
  126617. procedure TJSSVGScriptElement._Setdefer(const aValue : Boolean);
  126618. begin
  126619. WriteJSPropertyBoolean('defer',aValue);
  126620. end;
  126621. procedure TJSSVGScriptElement._SetcrossOrigin(const aValue : UnicodeString);
  126622. begin
  126623. WriteJSPropertyUnicodeString('crossOrigin',aValue);
  126624. end;
  126625. class function TJSSVGScriptElement.JSClassName: UnicodeString;
  126626. begin
  126627. Result:='SVGScriptElement';
  126628. end;
  126629. class function TJSSVGScriptElement.Cast(const Intf: IJSObject): IJSSVGScriptElement;
  126630. begin
  126631. Result:=TJSSVGScriptElement.JOBCast(Intf);
  126632. end;
  126633. class function TJSSVGSetElement.JSClassName: UnicodeString;
  126634. begin
  126635. Result:='SVGSetElement';
  126636. end;
  126637. class function TJSSVGSetElement.Cast(const Intf: IJSObject): IJSSVGSetElement;
  126638. begin
  126639. Result:=TJSSVGSetElement.JOBCast(Intf);
  126640. end;
  126641. function TJSSVGStopElement._Getoffset: IJSSVGAnimatedNumber;
  126642. begin
  126643. Result:=ReadJSPropertyObject('offset',TJSSVGAnimatedNumber) as IJSSVGAnimatedNumber;
  126644. end;
  126645. class function TJSSVGStopElement.JSClassName: UnicodeString;
  126646. begin
  126647. Result:='SVGStopElement';
  126648. end;
  126649. class function TJSSVGStopElement.Cast(const Intf: IJSObject): IJSSVGStopElement;
  126650. begin
  126651. Result:=TJSSVGStopElement.JOBCast(Intf);
  126652. end;
  126653. function TJSSVGStringList._Getlength_: Cardinal;
  126654. begin
  126655. Result:=ReadJSPropertyInt64('length');
  126656. end;
  126657. function TJSSVGStringList._GetnumberOfItems: Cardinal;
  126658. begin
  126659. Result:=ReadJSPropertyInt64('numberOfItems');
  126660. end;
  126661. procedure TJSSVGStringList.clear;
  126662. begin
  126663. InvokeJSNoResult('clear',[]);
  126664. end;
  126665. function TJSSVGStringList.initialize(const aNewItem: UnicodeString): UnicodeString;
  126666. begin
  126667. Result:=InvokeJSUnicodeStringResult('initialize',[aNewItem]);
  126668. end;
  126669. function TJSSVGStringList.getItem(aIndex: Cardinal): UnicodeString;
  126670. begin
  126671. Result:=InvokeJSUnicodeStringResult('getItem',[aIndex]);
  126672. end;
  126673. function TJSSVGStringList.GetDefault(aIndex: Cardinal): UnicodeString;
  126674. begin
  126675. Result:=InvokeJSUnicodeStringResult('',[aIndex]);
  126676. end;
  126677. function TJSSVGStringList.insertItemBefore(const aNewItem: UnicodeString; aIndex: Cardinal): UnicodeString;
  126678. begin
  126679. Result:=InvokeJSUnicodeStringResult('insertItemBefore',[aNewItem,aIndex]);
  126680. end;
  126681. function TJSSVGStringList.replaceItem(const aNewItem: UnicodeString; aIndex: Cardinal): UnicodeString;
  126682. begin
  126683. Result:=InvokeJSUnicodeStringResult('replaceItem',[aNewItem,aIndex]);
  126684. end;
  126685. function TJSSVGStringList.removeItem(aIndex: Cardinal): UnicodeString;
  126686. begin
  126687. Result:=InvokeJSUnicodeStringResult('removeItem',[aIndex]);
  126688. end;
  126689. function TJSSVGStringList.appendItem(const aNewItem: UnicodeString): UnicodeString;
  126690. begin
  126691. Result:=InvokeJSUnicodeStringResult('appendItem',[aNewItem]);
  126692. end;
  126693. class function TJSSVGStringList.JSClassName: UnicodeString;
  126694. begin
  126695. Result:='SVGStringList';
  126696. end;
  126697. class function TJSSVGStringList.Cast(const Intf: IJSObject): IJSSVGStringList;
  126698. begin
  126699. Result:=TJSSVGStringList.JOBCast(Intf);
  126700. end;
  126701. function TJSSVGStyleElement._Getdisabled: Boolean;
  126702. begin
  126703. Result:=ReadJSPropertyBoolean('disabled');
  126704. end;
  126705. function TJSSVGStyleElement._Gettype_: UnicodeString;
  126706. begin
  126707. Result:=ReadJSPropertyUnicodeString('type');
  126708. end;
  126709. function TJSSVGStyleElement._Getmedia: UnicodeString;
  126710. begin
  126711. Result:=ReadJSPropertyUnicodeString('media');
  126712. end;
  126713. function TJSSVGStyleElement._Gettitle: UnicodeString;
  126714. begin
  126715. Result:=ReadJSPropertyUnicodeString('title');
  126716. end;
  126717. function TJSSVGStyleElement._Getsheet: IJSStyleSheet;
  126718. begin
  126719. Result:=ReadJSPropertyObject('sheet',TJSStyleSheet) as IJSStyleSheet;
  126720. end;
  126721. procedure TJSSVGStyleElement._Setdisabled(const aValue : Boolean);
  126722. begin
  126723. WriteJSPropertyBoolean('disabled',aValue);
  126724. end;
  126725. procedure TJSSVGStyleElement._Settype_(const aValue : UnicodeString);
  126726. begin
  126727. WriteJSPropertyUnicodeString('type',aValue);
  126728. end;
  126729. procedure TJSSVGStyleElement._Setmedia(const aValue : UnicodeString);
  126730. begin
  126731. WriteJSPropertyUnicodeString('media',aValue);
  126732. end;
  126733. procedure TJSSVGStyleElement._Settitle(const aValue : UnicodeString);
  126734. begin
  126735. WriteJSPropertyUnicodeString('title',aValue);
  126736. end;
  126737. class function TJSSVGStyleElement.JSClassName: UnicodeString;
  126738. begin
  126739. Result:='SVGStyleElement';
  126740. end;
  126741. class function TJSSVGStyleElement.Cast(const Intf: IJSObject): IJSSVGStyleElement;
  126742. begin
  126743. Result:=TJSSVGStyleElement.JOBCast(Intf);
  126744. end;
  126745. function TJSSVGSVGElement._Getx: IJSSVGAnimatedLength;
  126746. begin
  126747. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126748. end;
  126749. function TJSSVGSVGElement._Gety: IJSSVGAnimatedLength;
  126750. begin
  126751. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126752. end;
  126753. function TJSSVGSVGElement._Getwidth: IJSSVGAnimatedLength;
  126754. begin
  126755. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126756. end;
  126757. function TJSSVGSVGElement._Getheight: IJSSVGAnimatedLength;
  126758. begin
  126759. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126760. end;
  126761. function TJSSVGSVGElement._GetcurrentScale: Single;
  126762. begin
  126763. Result:=ReadJSPropertyDouble('currentScale');
  126764. end;
  126765. function TJSSVGSVGElement._GetcurrentTranslate: IJSSVGPoint;
  126766. begin
  126767. Result:=ReadJSPropertyObject('currentTranslate',TJSSVGPoint) as IJSSVGPoint;
  126768. end;
  126769. function TJSSVGSVGElement._GetviewBox: IJSSVGAnimatedRect;
  126770. begin
  126771. Result:=ReadJSPropertyObject('viewBox',TJSSVGAnimatedRect) as IJSSVGAnimatedRect;
  126772. end;
  126773. function TJSSVGSVGElement._GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  126774. begin
  126775. Result:=ReadJSPropertyObject('preserveAspectRatio',TJSSVGAnimatedPreserveAspectRatio) as IJSSVGAnimatedPreserveAspectRatio;
  126776. end;
  126777. function TJSSVGSVGElement._GetzoomAndPan: Word;
  126778. begin
  126779. Result:=ReadJSPropertyLongInt('zoomAndPan');
  126780. end;
  126781. procedure TJSSVGSVGElement._SetcurrentScale(const aValue : Single);
  126782. begin
  126783. WriteJSPropertyDouble('currentScale',aValue);
  126784. end;
  126785. procedure TJSSVGSVGElement._SetzoomAndPan(const aValue : Word);
  126786. begin
  126787. WriteJSPropertyLongInt('zoomAndPan',aValue);
  126788. end;
  126789. function TJSSVGSVGElement.suspendRedraw(aMaxWaitMilliseconds: Cardinal): Cardinal;
  126790. begin
  126791. Result:=InvokeJSLongIntResult('suspendRedraw',[aMaxWaitMilliseconds]);
  126792. end;
  126793. procedure TJSSVGSVGElement.unsuspendRedraw(aSuspendHandleID: Cardinal);
  126794. begin
  126795. InvokeJSNoResult('unsuspendRedraw',[aSuspendHandleID]);
  126796. end;
  126797. procedure TJSSVGSVGElement.unsuspendRedrawAll;
  126798. begin
  126799. InvokeJSNoResult('unsuspendRedrawAll',[]);
  126800. end;
  126801. procedure TJSSVGSVGElement.forceRedraw;
  126802. begin
  126803. InvokeJSNoResult('forceRedraw',[]);
  126804. end;
  126805. procedure TJSSVGSVGElement.pauseAnimations;
  126806. begin
  126807. InvokeJSNoResult('pauseAnimations',[]);
  126808. end;
  126809. procedure TJSSVGSVGElement.unpauseAnimations;
  126810. begin
  126811. InvokeJSNoResult('unpauseAnimations',[]);
  126812. end;
  126813. function TJSSVGSVGElement.animationsPaused: Boolean;
  126814. begin
  126815. Result:=InvokeJSBooleanResult('animationsPaused',[]);
  126816. end;
  126817. function TJSSVGSVGElement.getCurrentTime: Single;
  126818. begin
  126819. Result:=InvokeJSDoubleResult('getCurrentTime',[]);
  126820. end;
  126821. procedure TJSSVGSVGElement.setCurrentTime(aSeconds: Single);
  126822. begin
  126823. InvokeJSNoResult('setCurrentTime',[aSeconds]);
  126824. end;
  126825. procedure TJSSVGSVGElement.deselectAll;
  126826. begin
  126827. InvokeJSNoResult('deselectAll',[]);
  126828. end;
  126829. function TJSSVGSVGElement.createSVGNumber: IJSSVGNumber;
  126830. begin
  126831. Result:=InvokeJSObjectResult('createSVGNumber',[],TJSSVGNumber) as IJSSVGNumber;
  126832. end;
  126833. function TJSSVGSVGElement.createSVGLength: IJSSVGLength;
  126834. begin
  126835. Result:=InvokeJSObjectResult('createSVGLength',[],TJSSVGLength) as IJSSVGLength;
  126836. end;
  126837. function TJSSVGSVGElement.createSVGAngle: IJSSVGAngle;
  126838. begin
  126839. Result:=InvokeJSObjectResult('createSVGAngle',[],TJSSVGAngle) as IJSSVGAngle;
  126840. end;
  126841. function TJSSVGSVGElement.createSVGPoint: IJSSVGPoint;
  126842. begin
  126843. Result:=InvokeJSObjectResult('createSVGPoint',[],TJSSVGPoint) as IJSSVGPoint;
  126844. end;
  126845. function TJSSVGSVGElement.createSVGMatrix: IJSSVGMatrix;
  126846. begin
  126847. Result:=InvokeJSObjectResult('createSVGMatrix',[],TJSSVGMatrix) as IJSSVGMatrix;
  126848. end;
  126849. function TJSSVGSVGElement.createSVGRect: IJSSVGRect;
  126850. begin
  126851. Result:=InvokeJSObjectResult('createSVGRect',[],TJSSVGRect) as IJSSVGRect;
  126852. end;
  126853. function TJSSVGSVGElement.createSVGTransform: IJSSVGTransform;
  126854. begin
  126855. Result:=InvokeJSObjectResult('createSVGTransform',[],TJSSVGTransform) as IJSSVGTransform;
  126856. end;
  126857. function TJSSVGSVGElement.createSVGTransformFromMatrix(const aMatrix: TJSDOMMatrix2DInit): IJSSVGTransform;
  126858. begin
  126859. Result:=InvokeJSObjectResult('createSVGTransformFromMatrix',[aMatrix],TJSSVGTransform) as IJSSVGTransform;
  126860. end;
  126861. function TJSSVGSVGElement.createSVGTransformFromMatrix: IJSSVGTransform;
  126862. begin
  126863. Result:=InvokeJSObjectResult('createSVGTransformFromMatrix',[],TJSSVGTransform) as IJSSVGTransform;
  126864. end;
  126865. function TJSSVGSVGElement.getElementById(const aElementId: UnicodeString): IJSElement;
  126866. begin
  126867. Result:=InvokeJSObjectResult('getElementById',[aElementId],TJSElement) as IJSElement;
  126868. end;
  126869. class function TJSSVGSVGElement.JSClassName: UnicodeString;
  126870. begin
  126871. Result:='SVGSVGElement';
  126872. end;
  126873. class function TJSSVGSVGElement.Cast(const Intf: IJSObject): IJSSVGSVGElement;
  126874. begin
  126875. Result:=TJSSVGSVGElement.JOBCast(Intf);
  126876. end;
  126877. class function TJSSVGSwitchElement.JSClassName: UnicodeString;
  126878. begin
  126879. Result:='SVGSwitchElement';
  126880. end;
  126881. class function TJSSVGSwitchElement.Cast(const Intf: IJSObject): IJSSVGSwitchElement;
  126882. begin
  126883. Result:=TJSSVGSwitchElement.JOBCast(Intf);
  126884. end;
  126885. function TJSSVGSymbolElement._GetviewBox: IJSSVGAnimatedRect;
  126886. begin
  126887. Result:=ReadJSPropertyObject('viewBox',TJSSVGAnimatedRect) as IJSSVGAnimatedRect;
  126888. end;
  126889. function TJSSVGSymbolElement._GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  126890. begin
  126891. Result:=ReadJSPropertyObject('preserveAspectRatio',TJSSVGAnimatedPreserveAspectRatio) as IJSSVGAnimatedPreserveAspectRatio;
  126892. end;
  126893. function TJSSVGSymbolElement._GetrequiredExtensions: IJSSVGStringList;
  126894. begin
  126895. Result:=ReadJSPropertyObject('requiredExtensions',TJSSVGStringList) as IJSSVGStringList;
  126896. end;
  126897. function TJSSVGSymbolElement._GetsystemLanguage: IJSSVGStringList;
  126898. begin
  126899. Result:=ReadJSPropertyObject('systemLanguage',TJSSVGStringList) as IJSSVGStringList;
  126900. end;
  126901. class function TJSSVGSymbolElement.JSClassName: UnicodeString;
  126902. begin
  126903. Result:='SVGSymbolElement';
  126904. end;
  126905. class function TJSSVGSymbolElement.Cast(const Intf: IJSObject): IJSSVGSymbolElement;
  126906. begin
  126907. Result:=TJSSVGSymbolElement.JOBCast(Intf);
  126908. end;
  126909. function TJSSVGTests._GetrequiredExtensions: IJSSVGStringList;
  126910. begin
  126911. Result:=ReadJSPropertyObject('requiredExtensions',TJSSVGStringList) as IJSSVGStringList;
  126912. end;
  126913. function TJSSVGTests._GetsystemLanguage: IJSSVGStringList;
  126914. begin
  126915. Result:=ReadJSPropertyObject('systemLanguage',TJSSVGStringList) as IJSSVGStringList;
  126916. end;
  126917. class function TJSSVGTests.JSClassName: UnicodeString;
  126918. begin
  126919. Result:='SVGTests';
  126920. end;
  126921. class function TJSSVGTests.Cast(const Intf: IJSObject): IJSSVGTests;
  126922. begin
  126923. Result:=TJSSVGTests.JOBCast(Intf);
  126924. end;
  126925. function TJSSVGTextContentElement._GettextLength: IJSSVGAnimatedLength;
  126926. begin
  126927. Result:=ReadJSPropertyObject('textLength',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126928. end;
  126929. function TJSSVGTextContentElement._GetlengthAdjust: IJSSVGAnimatedEnumeration;
  126930. begin
  126931. Result:=ReadJSPropertyObject('lengthAdjust',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  126932. end;
  126933. function TJSSVGTextContentElement.getNumberOfChars: LongInt;
  126934. begin
  126935. Result:=InvokeJSLongIntResult('getNumberOfChars',[]);
  126936. end;
  126937. function TJSSVGTextContentElement.getComputedTextLength: Single;
  126938. begin
  126939. Result:=InvokeJSDoubleResult('getComputedTextLength',[]);
  126940. end;
  126941. function TJSSVGTextContentElement.getSubStringLength(aCharnum: Cardinal; aNchars: Cardinal): Single;
  126942. begin
  126943. Result:=InvokeJSDoubleResult('getSubStringLength',[aCharnum,aNchars]);
  126944. end;
  126945. function TJSSVGTextContentElement.getStartPositionOfChar(aCharnum: Cardinal): IJSSVGPoint;
  126946. begin
  126947. Result:=InvokeJSObjectResult('getStartPositionOfChar',[aCharnum],TJSSVGPoint) as IJSSVGPoint;
  126948. end;
  126949. function TJSSVGTextContentElement.getEndPositionOfChar(aCharnum: Cardinal): IJSSVGPoint;
  126950. begin
  126951. Result:=InvokeJSObjectResult('getEndPositionOfChar',[aCharnum],TJSSVGPoint) as IJSSVGPoint;
  126952. end;
  126953. function TJSSVGTextContentElement.getExtentOfChar(aCharnum: Cardinal): IJSSVGRect;
  126954. begin
  126955. Result:=InvokeJSObjectResult('getExtentOfChar',[aCharnum],TJSSVGRect) as IJSSVGRect;
  126956. end;
  126957. function TJSSVGTextContentElement.getRotationOfChar(aCharnum: Cardinal): Single;
  126958. begin
  126959. Result:=InvokeJSDoubleResult('getRotationOfChar',[aCharnum]);
  126960. end;
  126961. function TJSSVGTextContentElement.getCharNumAtPosition(const aPoint: TJSDOMPointInit): LongInt;
  126962. begin
  126963. Result:=InvokeJSLongIntResult('getCharNumAtPosition',[aPoint]);
  126964. end;
  126965. function TJSSVGTextContentElement.getCharNumAtPosition: LongInt;
  126966. begin
  126967. Result:=InvokeJSLongIntResult('getCharNumAtPosition',[]);
  126968. end;
  126969. procedure TJSSVGTextContentElement.selectSubString(aCharnum: Cardinal; aNchars: Cardinal);
  126970. begin
  126971. InvokeJSNoResult('selectSubString',[aCharnum,aNchars]);
  126972. end;
  126973. class function TJSSVGTextContentElement.JSClassName: UnicodeString;
  126974. begin
  126975. Result:='SVGTextContentElement';
  126976. end;
  126977. class function TJSSVGTextContentElement.Cast(const Intf: IJSObject): IJSSVGTextContentElement;
  126978. begin
  126979. Result:=TJSSVGTextContentElement.JOBCast(Intf);
  126980. end;
  126981. class function TJSSVGTextElement.JSClassName: UnicodeString;
  126982. begin
  126983. Result:='SVGTextElement';
  126984. end;
  126985. class function TJSSVGTextElement.Cast(const Intf: IJSObject): IJSSVGTextElement;
  126986. begin
  126987. Result:=TJSSVGTextElement.JOBCast(Intf);
  126988. end;
  126989. function TJSSVGTextPathElement._GetstartOffset: IJSSVGAnimatedLength;
  126990. begin
  126991. Result:=ReadJSPropertyObject('startOffset',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  126992. end;
  126993. function TJSSVGTextPathElement._Getmethod: IJSSVGAnimatedEnumeration;
  126994. begin
  126995. Result:=ReadJSPropertyObject('method',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  126996. end;
  126997. function TJSSVGTextPathElement._Getspacing: IJSSVGAnimatedEnumeration;
  126998. begin
  126999. Result:=ReadJSPropertyObject('spacing',TJSSVGAnimatedEnumeration) as IJSSVGAnimatedEnumeration;
  127000. end;
  127001. function TJSSVGTextPathElement._Gethref: IJSSVGAnimatedString;
  127002. begin
  127003. Result:=ReadJSPropertyObject('href',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  127004. end;
  127005. class function TJSSVGTextPathElement.JSClassName: UnicodeString;
  127006. begin
  127007. Result:='SVGTextPathElement';
  127008. end;
  127009. class function TJSSVGTextPathElement.Cast(const Intf: IJSObject): IJSSVGTextPathElement;
  127010. begin
  127011. Result:=TJSSVGTextPathElement.JOBCast(Intf);
  127012. end;
  127013. function TJSSVGTextPositioningElement._Getx: IJSSVGAnimatedLengthList;
  127014. begin
  127015. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLengthList) as IJSSVGAnimatedLengthList;
  127016. end;
  127017. function TJSSVGTextPositioningElement._Gety: IJSSVGAnimatedLengthList;
  127018. begin
  127019. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLengthList) as IJSSVGAnimatedLengthList;
  127020. end;
  127021. function TJSSVGTextPositioningElement._Getdx: IJSSVGAnimatedLengthList;
  127022. begin
  127023. Result:=ReadJSPropertyObject('dx',TJSSVGAnimatedLengthList) as IJSSVGAnimatedLengthList;
  127024. end;
  127025. function TJSSVGTextPositioningElement._Getdy: IJSSVGAnimatedLengthList;
  127026. begin
  127027. Result:=ReadJSPropertyObject('dy',TJSSVGAnimatedLengthList) as IJSSVGAnimatedLengthList;
  127028. end;
  127029. function TJSSVGTextPositioningElement._Getrotate: IJSSVGAnimatedNumberList;
  127030. begin
  127031. Result:=ReadJSPropertyObject('rotate',TJSSVGAnimatedNumberList) as IJSSVGAnimatedNumberList;
  127032. end;
  127033. class function TJSSVGTextPositioningElement.JSClassName: UnicodeString;
  127034. begin
  127035. Result:='SVGTextPositioningElement';
  127036. end;
  127037. class function TJSSVGTextPositioningElement.Cast(const Intf: IJSObject): IJSSVGTextPositioningElement;
  127038. begin
  127039. Result:=TJSSVGTextPositioningElement.JOBCast(Intf);
  127040. end;
  127041. class function TJSSVGTitleElement.JSClassName: UnicodeString;
  127042. begin
  127043. Result:='SVGTitleElement';
  127044. end;
  127045. class function TJSSVGTitleElement.Cast(const Intf: IJSObject): IJSSVGTitleElement;
  127046. begin
  127047. Result:=TJSSVGTitleElement.JOBCast(Intf);
  127048. end;
  127049. function TJSSVGTransform._Gettype_: Word;
  127050. begin
  127051. Result:=ReadJSPropertyLongInt('type');
  127052. end;
  127053. function TJSSVGTransform._Getmatrix: IJSSVGMatrix;
  127054. begin
  127055. Result:=ReadJSPropertyObject('matrix',TJSSVGMatrix) as IJSSVGMatrix;
  127056. end;
  127057. function TJSSVGTransform._Getangle: Single;
  127058. begin
  127059. Result:=ReadJSPropertyDouble('angle');
  127060. end;
  127061. procedure TJSSVGTransform.setMatrix(const aMatrix: TJSDOMMatrix2DInit);
  127062. begin
  127063. InvokeJSNoResult('setMatrix',[aMatrix]);
  127064. end;
  127065. procedure TJSSVGTransform.setMatrix;
  127066. begin
  127067. InvokeJSNoResult('setMatrix',[]);
  127068. end;
  127069. procedure TJSSVGTransform.setTranslate(aTx: Single; aTy: Single);
  127070. begin
  127071. InvokeJSNoResult('setTranslate',[aTx,aTy]);
  127072. end;
  127073. procedure TJSSVGTransform.setScale(aSx: Single; aSy: Single);
  127074. begin
  127075. InvokeJSNoResult('setScale',[aSx,aSy]);
  127076. end;
  127077. procedure TJSSVGTransform.setRotate(aAngle: Single; aCx: Single; aCy: Single);
  127078. begin
  127079. InvokeJSNoResult('setRotate',[aAngle,aCx,aCy]);
  127080. end;
  127081. procedure TJSSVGTransform.setSkewX(aAngle: Single);
  127082. begin
  127083. InvokeJSNoResult('setSkewX',[aAngle]);
  127084. end;
  127085. procedure TJSSVGTransform.setSkewY(aAngle: Single);
  127086. begin
  127087. InvokeJSNoResult('setSkewY',[aAngle]);
  127088. end;
  127089. class function TJSSVGTransform.JSClassName: UnicodeString;
  127090. begin
  127091. Result:='SVGTransform';
  127092. end;
  127093. class function TJSSVGTransform.Cast(const Intf: IJSObject): IJSSVGTransform;
  127094. begin
  127095. Result:=TJSSVGTransform.JOBCast(Intf);
  127096. end;
  127097. function TJSSVGTransformList._GetnumberOfItems: Cardinal;
  127098. begin
  127099. Result:=ReadJSPropertyInt64('numberOfItems');
  127100. end;
  127101. function TJSSVGTransformList._Getlength_: Cardinal;
  127102. begin
  127103. Result:=ReadJSPropertyInt64('length');
  127104. end;
  127105. procedure TJSSVGTransformList.clear;
  127106. begin
  127107. InvokeJSNoResult('clear',[]);
  127108. end;
  127109. function TJSSVGTransformList.initialize(aNewItem: IJSSVGTransform): IJSSVGTransform;
  127110. begin
  127111. Result:=InvokeJSObjectResult('initialize',[aNewItem],TJSSVGTransform) as IJSSVGTransform;
  127112. end;
  127113. function TJSSVGTransformList.getItem(aIndex: Cardinal): IJSSVGTransform;
  127114. begin
  127115. Result:=InvokeJSObjectResult('getItem',[aIndex],TJSSVGTransform) as IJSSVGTransform;
  127116. end;
  127117. function TJSSVGTransformList.insertItemBefore(aNewItem: IJSSVGTransform; aIndex: Cardinal): IJSSVGTransform;
  127118. begin
  127119. Result:=InvokeJSObjectResult('insertItemBefore',[aNewItem,aIndex],TJSSVGTransform) as IJSSVGTransform;
  127120. end;
  127121. function TJSSVGTransformList.replaceItem(aNewItem: IJSSVGTransform; aIndex: Cardinal): IJSSVGTransform;
  127122. begin
  127123. Result:=InvokeJSObjectResult('replaceItem',[aNewItem,aIndex],TJSSVGTransform) as IJSSVGTransform;
  127124. end;
  127125. function TJSSVGTransformList.removeItem(aIndex: Cardinal): IJSSVGTransform;
  127126. begin
  127127. Result:=InvokeJSObjectResult('removeItem',[aIndex],TJSSVGTransform) as IJSSVGTransform;
  127128. end;
  127129. function TJSSVGTransformList.appendItem(aNewItem: IJSSVGTransform): IJSSVGTransform;
  127130. begin
  127131. Result:=InvokeJSObjectResult('appendItem',[aNewItem],TJSSVGTransform) as IJSSVGTransform;
  127132. end;
  127133. function TJSSVGTransformList.createSVGTransformFromMatrix(const aMatrix: TJSDOMMatrix2DInit): IJSSVGTransform;
  127134. begin
  127135. Result:=InvokeJSObjectResult('createSVGTransformFromMatrix',[aMatrix],TJSSVGTransform) as IJSSVGTransform;
  127136. end;
  127137. function TJSSVGTransformList.createSVGTransformFromMatrix: IJSSVGTransform;
  127138. begin
  127139. Result:=InvokeJSObjectResult('createSVGTransformFromMatrix',[],TJSSVGTransform) as IJSSVGTransform;
  127140. end;
  127141. function TJSSVGTransformList.consolidate: IJSSVGTransform;
  127142. begin
  127143. Result:=InvokeJSObjectResult('consolidate',[],TJSSVGTransform) as IJSSVGTransform;
  127144. end;
  127145. class function TJSSVGTransformList.JSClassName: UnicodeString;
  127146. begin
  127147. Result:='SVGTransformList';
  127148. end;
  127149. class function TJSSVGTransformList.Cast(const Intf: IJSObject): IJSSVGTransformList;
  127150. begin
  127151. Result:=TJSSVGTransformList.JOBCast(Intf);
  127152. end;
  127153. class function TJSSVGTSpanElement.JSClassName: UnicodeString;
  127154. begin
  127155. Result:='SVGTSpanElement';
  127156. end;
  127157. class function TJSSVGTSpanElement.Cast(const Intf: IJSObject): IJSSVGTSpanElement;
  127158. begin
  127159. Result:=TJSSVGTSpanElement.JOBCast(Intf);
  127160. end;
  127161. class function TJSSVGUnitTypes.JSClassName: UnicodeString;
  127162. begin
  127163. Result:='SVGUnitTypes';
  127164. end;
  127165. class function TJSSVGUnitTypes.Cast(const Intf: IJSObject): IJSSVGUnitTypes;
  127166. begin
  127167. Result:=TJSSVGUnitTypes.JOBCast(Intf);
  127168. end;
  127169. function TJSSVGURIReference._Gethref: IJSSVGAnimatedString;
  127170. begin
  127171. Result:=ReadJSPropertyObject('href',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  127172. end;
  127173. class function TJSSVGURIReference.JSClassName: UnicodeString;
  127174. begin
  127175. Result:='SVGURIReference';
  127176. end;
  127177. class function TJSSVGURIReference.Cast(const Intf: IJSObject): IJSSVGURIReference;
  127178. begin
  127179. Result:=TJSSVGURIReference.JOBCast(Intf);
  127180. end;
  127181. function TJSSVGUseElement._Getx: IJSSVGAnimatedLength;
  127182. begin
  127183. Result:=ReadJSPropertyObject('x',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  127184. end;
  127185. function TJSSVGUseElement._Gety: IJSSVGAnimatedLength;
  127186. begin
  127187. Result:=ReadJSPropertyObject('y',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  127188. end;
  127189. function TJSSVGUseElement._Getwidth: IJSSVGAnimatedLength;
  127190. begin
  127191. Result:=ReadJSPropertyObject('width',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  127192. end;
  127193. function TJSSVGUseElement._Getheight: IJSSVGAnimatedLength;
  127194. begin
  127195. Result:=ReadJSPropertyObject('height',TJSSVGAnimatedLength) as IJSSVGAnimatedLength;
  127196. end;
  127197. function TJSSVGUseElement._Gethref: IJSSVGAnimatedString;
  127198. begin
  127199. Result:=ReadJSPropertyObject('href',TJSSVGAnimatedString) as IJSSVGAnimatedString;
  127200. end;
  127201. class function TJSSVGUseElement.JSClassName: UnicodeString;
  127202. begin
  127203. Result:='SVGUseElement';
  127204. end;
  127205. class function TJSSVGUseElement.Cast(const Intf: IJSObject): IJSSVGUseElement;
  127206. begin
  127207. Result:=TJSSVGUseElement.JOBCast(Intf);
  127208. end;
  127209. function TJSSVGViewElement._GetviewBox: IJSSVGAnimatedRect;
  127210. begin
  127211. Result:=ReadJSPropertyObject('viewBox',TJSSVGAnimatedRect) as IJSSVGAnimatedRect;
  127212. end;
  127213. function TJSSVGViewElement._GetpreserveAspectRatio: IJSSVGAnimatedPreserveAspectRatio;
  127214. begin
  127215. Result:=ReadJSPropertyObject('preserveAspectRatio',TJSSVGAnimatedPreserveAspectRatio) as IJSSVGAnimatedPreserveAspectRatio;
  127216. end;
  127217. function TJSSVGViewElement._GetzoomAndPan: Word;
  127218. begin
  127219. Result:=ReadJSPropertyLongInt('zoomAndPan');
  127220. end;
  127221. procedure TJSSVGViewElement._SetzoomAndPan(const aValue : Word);
  127222. begin
  127223. WriteJSPropertyLongInt('zoomAndPan',aValue);
  127224. end;
  127225. class function TJSSVGViewElement.JSClassName: UnicodeString;
  127226. begin
  127227. Result:='SVGViewElement';
  127228. end;
  127229. class function TJSSVGViewElement.Cast(const Intf: IJSObject): IJSSVGViewElement;
  127230. begin
  127231. Result:=TJSSVGViewElement.JOBCast(Intf);
  127232. end;
  127233. function TJSSVGZoomAndPan._GetzoomAndPan: Word;
  127234. begin
  127235. Result:=ReadJSPropertyLongInt('zoomAndPan');
  127236. end;
  127237. procedure TJSSVGZoomAndPan._SetzoomAndPan(const aValue : Word);
  127238. begin
  127239. WriteJSPropertyLongInt('zoomAndPan',aValue);
  127240. end;
  127241. class function TJSSVGZoomAndPan.JSClassName: UnicodeString;
  127242. begin
  127243. Result:='SVGZoomAndPan';
  127244. end;
  127245. class function TJSSVGZoomAndPan.Cast(const Intf: IJSObject): IJSSVGZoomAndPan;
  127246. begin
  127247. Result:=TJSSVGZoomAndPan.JOBCast(Intf);
  127248. end;
  127249. function TJSTaskPriorityChangeEvent._GetpreviousPriority: TTaskPriority;
  127250. begin
  127251. Result:=ReadJSPropertyUnicodeString('previousPriority');
  127252. end;
  127253. constructor TJSTaskPriorityChangeEvent.Create(const aType_: UnicodeString; const aPriorityChangeEventInitDict: TJSTaskPriorityChangeEventInit);
  127254. begin
  127255. JOBCreate([aType_,aPriorityChangeEventInitDict]);
  127256. end;
  127257. class function TJSTaskPriorityChangeEvent.JSClassName: UnicodeString;
  127258. begin
  127259. Result:='TaskPriorityChangeEvent';
  127260. end;
  127261. class function TJSTaskPriorityChangeEvent.Cast(const Intf: IJSObject): IJSTaskPriorityChangeEvent;
  127262. begin
  127263. Result:=TJSTaskPriorityChangeEvent.JOBCast(Intf);
  127264. end;
  127265. function TJSTaskPriorityChangeEventInit._GetpreviousPriority: TTaskPriority;
  127266. begin
  127267. Result:=ReadJSPropertyUnicodeString('previousPriority');
  127268. end;
  127269. procedure TJSTaskPriorityChangeEventInit._SetpreviousPriority(const aValue : TTaskPriority);
  127270. begin
  127271. WriteJSPropertyUnicodeString('previousPriority',aValue);
  127272. end;
  127273. class function TJSTaskPriorityChangeEventInit.JSClassName: UnicodeString;
  127274. begin
  127275. Result:='Object';
  127276. end;
  127277. class function TJSTaskPriorityChangeEventInit.Cast(const Intf: IJSObject): IJSTaskPriorityChangeEventInit;
  127278. begin
  127279. Result:=TJSTaskPriorityChangeEventInit.JOBCast(Intf);
  127280. end;
  127281. function TJSServerSocketOptions._GetbinaryType: TTCPSocketBinaryType;
  127282. begin
  127283. Result:=ReadJSPropertyUnicodeString('binaryType');
  127284. end;
  127285. procedure TJSServerSocketOptions._SetbinaryType(const aValue : TTCPSocketBinaryType);
  127286. begin
  127287. WriteJSPropertyUnicodeString('binaryType',aValue);
  127288. end;
  127289. class function TJSServerSocketOptions.JSClassName: UnicodeString;
  127290. begin
  127291. Result:='Object';
  127292. end;
  127293. class function TJSServerSocketOptions.Cast(const Intf: IJSObject): IJSServerSocketOptions;
  127294. begin
  127295. Result:=TJSServerSocketOptions.JOBCast(Intf);
  127296. end;
  127297. function TJSTCPServerSocket._GetlocalPort: Word;
  127298. begin
  127299. Result:=ReadJSPropertyLongInt('localPort');
  127300. end;
  127301. function TJSTCPServerSocket._Getonconnect: TEventHandler;
  127302. begin
  127303. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onconnect')));
  127304. end;
  127305. function TJSTCPServerSocket._Getonerror: TEventHandler;
  127306. begin
  127307. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  127308. end;
  127309. procedure TJSTCPServerSocket._Setonconnect(const aValue : TEventHandler);
  127310. begin
  127311. WriteJSPropertyMethod('onconnect',TMethod(aValue));
  127312. end;
  127313. procedure TJSTCPServerSocket._Setonerror(const aValue : TEventHandler);
  127314. begin
  127315. WriteJSPropertyMethod('onerror',TMethod(aValue));
  127316. end;
  127317. constructor TJSTCPServerSocket.Create(aPort: Word; const aOptions: TJSServerSocketOptions; aBacklog: Word);
  127318. begin
  127319. JOBCreate([aPort,aOptions,aBacklog]);
  127320. end;
  127321. constructor TJSTCPServerSocket.Create(aPort: Word);
  127322. begin
  127323. JOBCreate([aPort]);
  127324. end;
  127325. constructor TJSTCPServerSocket.Create(aPort: Word; const aOptions: TJSServerSocketOptions);
  127326. begin
  127327. JOBCreate([aPort,aOptions]);
  127328. end;
  127329. procedure TJSTCPServerSocket.close;
  127330. begin
  127331. InvokeJSNoResult('close',[]);
  127332. end;
  127333. class function TJSTCPServerSocket.JSClassName: UnicodeString;
  127334. begin
  127335. Result:='TCPServerSocket';
  127336. end;
  127337. class function TJSTCPServerSocket.Cast(const Intf: IJSObject): IJSTCPServerSocket;
  127338. begin
  127339. Result:=TJSTCPServerSocket.JOBCast(Intf);
  127340. end;
  127341. function TJSTCPServerSocketEvent._Getsocket: IJSTCPSocket;
  127342. begin
  127343. Result:=ReadJSPropertyObject('socket',TJSTCPSocket) as IJSTCPSocket;
  127344. end;
  127345. constructor TJSTCPServerSocketEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSTCPServerSocketEventInit);
  127346. begin
  127347. JOBCreate([aType_,aEventInitDict]);
  127348. end;
  127349. constructor TJSTCPServerSocketEvent.Create(const aType_: UnicodeString);
  127350. begin
  127351. JOBCreate([aType_]);
  127352. end;
  127353. class function TJSTCPServerSocketEvent.JSClassName: UnicodeString;
  127354. begin
  127355. Result:='TCPServerSocketEvent';
  127356. end;
  127357. class function TJSTCPServerSocketEvent.Cast(const Intf: IJSObject): IJSTCPServerSocketEvent;
  127358. begin
  127359. Result:=TJSTCPServerSocketEvent.JOBCast(Intf);
  127360. end;
  127361. function TJSTCPServerSocketEventInit._Getsocket: IJSTCPSocket;
  127362. begin
  127363. Result:=ReadJSPropertyObject('socket',TJSTCPSocket) as IJSTCPSocket;
  127364. end;
  127365. procedure TJSTCPServerSocketEventInit._Setsocket(const aValue : IJSTCPSocket);
  127366. begin
  127367. WriteJSPropertyObject('socket',aValue);
  127368. end;
  127369. class function TJSTCPServerSocketEventInit.JSClassName: UnicodeString;
  127370. begin
  127371. Result:='Object';
  127372. end;
  127373. class function TJSTCPServerSocketEventInit.Cast(const Intf: IJSObject): IJSTCPServerSocketEventInit;
  127374. begin
  127375. Result:=TJSTCPServerSocketEventInit.JOBCast(Intf);
  127376. end;
  127377. class function TJSnsISocketTransport.JSClassName: UnicodeString;
  127378. begin
  127379. Result:='nsISocketTransport';
  127380. end;
  127381. class function TJSnsISocketTransport.Cast(const Intf: IJSObject): IJSnsISocketTransport;
  127382. begin
  127383. Result:=TJSnsISocketTransport.JOBCast(Intf);
  127384. end;
  127385. function TJSSocketOptions._GetuseSecureTransport: Boolean;
  127386. begin
  127387. Result:=ReadJSPropertyBoolean('useSecureTransport');
  127388. end;
  127389. function TJSSocketOptions._GetbinaryType: TTCPSocketBinaryType;
  127390. begin
  127391. Result:=ReadJSPropertyUnicodeString('binaryType');
  127392. end;
  127393. procedure TJSSocketOptions._SetuseSecureTransport(const aValue : Boolean);
  127394. begin
  127395. WriteJSPropertyBoolean('useSecureTransport',aValue);
  127396. end;
  127397. procedure TJSSocketOptions._SetbinaryType(const aValue : TTCPSocketBinaryType);
  127398. begin
  127399. WriteJSPropertyUnicodeString('binaryType',aValue);
  127400. end;
  127401. class function TJSSocketOptions.JSClassName: UnicodeString;
  127402. begin
  127403. Result:='Object';
  127404. end;
  127405. class function TJSSocketOptions.Cast(const Intf: IJSObject): IJSSocketOptions;
  127406. begin
  127407. Result:=TJSSocketOptions.JOBCast(Intf);
  127408. end;
  127409. function TJSLegacyMozTCPSocket.open(const aHost: UnicodeString; aPort: Word; const aOptions: TJSSocketOptions): IJSTCPSocket;
  127410. begin
  127411. Result:=InvokeJSObjectResult('open',[aHost,aPort,aOptions],TJSTCPSocket) as IJSTCPSocket;
  127412. end;
  127413. function TJSLegacyMozTCPSocket.open(const aHost: UnicodeString; aPort: Word): IJSTCPSocket;
  127414. begin
  127415. Result:=InvokeJSObjectResult('open',[aHost,aPort],TJSTCPSocket) as IJSTCPSocket;
  127416. end;
  127417. function TJSLegacyMozTCPSocket.listen(aPort: Word; const aOptions: TJSServerSocketOptions; aBacklog: Word): IJSTCPServerSocket;
  127418. begin
  127419. Result:=InvokeJSObjectResult('listen',[aPort,aOptions,aBacklog],TJSTCPServerSocket) as IJSTCPServerSocket;
  127420. end;
  127421. function TJSLegacyMozTCPSocket.listen(aPort: Word): IJSTCPServerSocket;
  127422. begin
  127423. Result:=InvokeJSObjectResult('listen',[aPort],TJSTCPServerSocket) as IJSTCPServerSocket;
  127424. end;
  127425. function TJSLegacyMozTCPSocket.listen(aPort: Word; const aOptions: TJSServerSocketOptions): IJSTCPServerSocket;
  127426. begin
  127427. Result:=InvokeJSObjectResult('listen',[aPort,aOptions],TJSTCPServerSocket) as IJSTCPServerSocket;
  127428. end;
  127429. class function TJSLegacyMozTCPSocket.JSClassName: UnicodeString;
  127430. begin
  127431. Result:='LegacyMozTCPSocket';
  127432. end;
  127433. class function TJSLegacyMozTCPSocket.Cast(const Intf: IJSObject): IJSLegacyMozTCPSocket;
  127434. begin
  127435. Result:=TJSLegacyMozTCPSocket.JOBCast(Intf);
  127436. end;
  127437. function TJSTCPSocket._Gettransport: IJSnsISocketTransport;
  127438. begin
  127439. Result:=ReadJSPropertyObject('transport',TJSnsISocketTransport) as IJSnsISocketTransport;
  127440. end;
  127441. function TJSTCPSocket._Gethost: UnicodeString;
  127442. begin
  127443. Result:=ReadJSPropertyUnicodeString('host');
  127444. end;
  127445. function TJSTCPSocket._Getport: Word;
  127446. begin
  127447. Result:=ReadJSPropertyLongInt('port');
  127448. end;
  127449. function TJSTCPSocket._Getssl: Boolean;
  127450. begin
  127451. Result:=ReadJSPropertyBoolean('ssl');
  127452. end;
  127453. function TJSTCPSocket._GetbufferedAmount: QWord;
  127454. begin
  127455. Result:=ReadJSPropertyInt64('bufferedAmount');
  127456. end;
  127457. function TJSTCPSocket._GetreadyState: TTCPReadyState;
  127458. begin
  127459. Result:=ReadJSPropertyUnicodeString('readyState');
  127460. end;
  127461. function TJSTCPSocket._GetbinaryType: TTCPSocketBinaryType;
  127462. begin
  127463. Result:=ReadJSPropertyUnicodeString('binaryType');
  127464. end;
  127465. function TJSTCPSocket._Getonopen: TEventHandler;
  127466. begin
  127467. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onopen')));
  127468. end;
  127469. function TJSTCPSocket._Getondrain: TEventHandler;
  127470. begin
  127471. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrain')));
  127472. end;
  127473. function TJSTCPSocket._Getondata: TEventHandler;
  127474. begin
  127475. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondata')));
  127476. end;
  127477. function TJSTCPSocket._Getonerror: TEventHandler;
  127478. begin
  127479. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  127480. end;
  127481. function TJSTCPSocket._Getonclose: TEventHandler;
  127482. begin
  127483. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclose')));
  127484. end;
  127485. procedure TJSTCPSocket._Setonopen(const aValue : TEventHandler);
  127486. begin
  127487. WriteJSPropertyMethod('onopen',TMethod(aValue));
  127488. end;
  127489. procedure TJSTCPSocket._Setondrain(const aValue : TEventHandler);
  127490. begin
  127491. WriteJSPropertyMethod('ondrain',TMethod(aValue));
  127492. end;
  127493. procedure TJSTCPSocket._Setondata(const aValue : TEventHandler);
  127494. begin
  127495. WriteJSPropertyMethod('ondata',TMethod(aValue));
  127496. end;
  127497. procedure TJSTCPSocket._Setonerror(const aValue : TEventHandler);
  127498. begin
  127499. WriteJSPropertyMethod('onerror',TMethod(aValue));
  127500. end;
  127501. procedure TJSTCPSocket._Setonclose(const aValue : TEventHandler);
  127502. begin
  127503. WriteJSPropertyMethod('onclose',TMethod(aValue));
  127504. end;
  127505. constructor TJSTCPSocket.Create(const aHost: UnicodeString; aPort: Word; const aOptions: TJSSocketOptions);
  127506. begin
  127507. JOBCreate([aHost,aPort,aOptions]);
  127508. end;
  127509. constructor TJSTCPSocket.Create(const aHost: UnicodeString; aPort: Word);
  127510. begin
  127511. JOBCreate([aHost,aPort]);
  127512. end;
  127513. procedure TJSTCPSocket.upgradeToSecure;
  127514. begin
  127515. InvokeJSNoResult('upgradeToSecure',[]);
  127516. end;
  127517. procedure TJSTCPSocket.suspend;
  127518. begin
  127519. InvokeJSNoResult('suspend',[]);
  127520. end;
  127521. procedure TJSTCPSocket.resume;
  127522. begin
  127523. InvokeJSNoResult('resume',[]);
  127524. end;
  127525. procedure TJSTCPSocket.close;
  127526. begin
  127527. InvokeJSNoResult('close',[]);
  127528. end;
  127529. function TJSTCPSocket.send(const aData: UnicodeString): Boolean;
  127530. begin
  127531. Result:=InvokeJSBooleanResult('send',[aData]);
  127532. end;
  127533. function TJSTCPSocket.send(aData: IJSArrayBuffer; aByteOffset: Cardinal; aByteLength: Cardinal): Boolean;
  127534. begin
  127535. Result:=InvokeJSBooleanResult('send',[aData,aByteOffset,aByteLength]);
  127536. end;
  127537. function TJSTCPSocket.send(aData: IJSArrayBuffer): Boolean;
  127538. begin
  127539. Result:=InvokeJSBooleanResult('send',[aData]);
  127540. end;
  127541. function TJSTCPSocket.send(aData: IJSArrayBuffer; aByteOffset: Cardinal): Boolean;
  127542. begin
  127543. Result:=InvokeJSBooleanResult('send',[aData,aByteOffset]);
  127544. end;
  127545. class function TJSTCPSocket.JSClassName: UnicodeString;
  127546. begin
  127547. Result:='TCPSocket';
  127548. end;
  127549. class function TJSTCPSocket.Cast(const Intf: IJSObject): IJSTCPSocket;
  127550. begin
  127551. Result:=TJSTCPSocket.JOBCast(Intf);
  127552. end;
  127553. function TJSTCPSocketErrorEvent._Getname: UnicodeString;
  127554. begin
  127555. Result:=ReadJSPropertyUnicodeString('name');
  127556. end;
  127557. function TJSTCPSocketErrorEvent._Getmessage: UnicodeString;
  127558. begin
  127559. Result:=ReadJSPropertyUnicodeString('message');
  127560. end;
  127561. function TJSTCPSocketErrorEvent._GeterrorCode: Cardinal;
  127562. begin
  127563. Result:=ReadJSPropertyInt64('errorCode');
  127564. end;
  127565. constructor TJSTCPSocketErrorEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSTCPSocketErrorEventInit);
  127566. begin
  127567. JOBCreate([aType_,aEventInitDict]);
  127568. end;
  127569. constructor TJSTCPSocketErrorEvent.Create(const aType_: UnicodeString);
  127570. begin
  127571. JOBCreate([aType_]);
  127572. end;
  127573. class function TJSTCPSocketErrorEvent.JSClassName: UnicodeString;
  127574. begin
  127575. Result:='TCPSocketErrorEvent';
  127576. end;
  127577. class function TJSTCPSocketErrorEvent.Cast(const Intf: IJSObject): IJSTCPSocketErrorEvent;
  127578. begin
  127579. Result:=TJSTCPSocketErrorEvent.JOBCast(Intf);
  127580. end;
  127581. function TJSTCPSocketErrorEventInit._Getname: UnicodeString;
  127582. begin
  127583. Result:=ReadJSPropertyUnicodeString('name');
  127584. end;
  127585. function TJSTCPSocketErrorEventInit._Getmessage: UnicodeString;
  127586. begin
  127587. Result:=ReadJSPropertyUnicodeString('message');
  127588. end;
  127589. function TJSTCPSocketErrorEventInit._GeterrorCode: Cardinal;
  127590. begin
  127591. Result:=ReadJSPropertyInt64('errorCode');
  127592. end;
  127593. procedure TJSTCPSocketErrorEventInit._Setname(const aValue : UnicodeString);
  127594. begin
  127595. WriteJSPropertyUnicodeString('name',aValue);
  127596. end;
  127597. procedure TJSTCPSocketErrorEventInit._Setmessage(const aValue : UnicodeString);
  127598. begin
  127599. WriteJSPropertyUnicodeString('message',aValue);
  127600. end;
  127601. procedure TJSTCPSocketErrorEventInit._SeterrorCode(const aValue : Cardinal);
  127602. begin
  127603. WriteJSPropertyDouble('errorCode',aValue);
  127604. end;
  127605. class function TJSTCPSocketErrorEventInit.JSClassName: UnicodeString;
  127606. begin
  127607. Result:='Object';
  127608. end;
  127609. class function TJSTCPSocketErrorEventInit.Cast(const Intf: IJSObject): IJSTCPSocketErrorEventInit;
  127610. begin
  127611. Result:=TJSTCPSocketErrorEventInit.JOBCast(Intf);
  127612. end;
  127613. function TJSTCPSocketEvent._Getdata: Variant;
  127614. begin
  127615. Result:=ReadJSPropertyVariant('data');
  127616. end;
  127617. constructor TJSTCPSocketEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSTCPSocketEventInit);
  127618. begin
  127619. JOBCreate([aType_,aEventInitDict]);
  127620. end;
  127621. constructor TJSTCPSocketEvent.Create(const aType_: UnicodeString);
  127622. begin
  127623. JOBCreate([aType_]);
  127624. end;
  127625. class function TJSTCPSocketEvent.JSClassName: UnicodeString;
  127626. begin
  127627. Result:='TCPSocketEvent';
  127628. end;
  127629. class function TJSTCPSocketEvent.Cast(const Intf: IJSObject): IJSTCPSocketEvent;
  127630. begin
  127631. Result:=TJSTCPSocketEvent.JOBCast(Intf);
  127632. end;
  127633. function TJSTCPSocketEventInit._Getdata: Variant;
  127634. begin
  127635. Result:=ReadJSPropertyVariant('data');
  127636. end;
  127637. procedure TJSTCPSocketEventInit._Setdata(const aValue : Variant);
  127638. begin
  127639. WriteJSPropertyVariant('data',aValue);
  127640. end;
  127641. class function TJSTCPSocketEventInit.JSClassName: UnicodeString;
  127642. begin
  127643. Result:='Object';
  127644. end;
  127645. class function TJSTCPSocketEventInit.Cast(const Intf: IJSObject): IJSTCPSocketEventInit;
  127646. begin
  127647. Result:=TJSTCPSocketEventInit.JOBCast(Intf);
  127648. end;
  127649. constructor TJSWrapperCachedNonISupportsTestInterface.Create;
  127650. begin
  127651. JOBCreate([]);
  127652. end;
  127653. class function TJSWrapperCachedNonISupportsTestInterface.JSClassName: UnicodeString;
  127654. begin
  127655. Result:='WrapperCachedNonISupportsTestInterface';
  127656. end;
  127657. class function TJSWrapperCachedNonISupportsTestInterface.Cast(const Intf: IJSObject): IJSWrapperCachedNonISupportsTestInterface;
  127658. begin
  127659. Result:=TJSWrapperCachedNonISupportsTestInterface.JOBCast(Intf);
  127660. end;
  127661. constructor TJSTestTrialInterface.Create;
  127662. begin
  127663. JOBCreate([]);
  127664. end;
  127665. class function TJSTestTrialInterface.JSClassName: UnicodeString;
  127666. begin
  127667. Result:='TestTrialInterface';
  127668. end;
  127669. class function TJSTestTrialInterface.Cast(const Intf: IJSObject): IJSTestTrialInterface;
  127670. begin
  127671. Result:=TJSTestTrialInterface.JOBCast(Intf);
  127672. end;
  127673. class function TJSTestInterfaceLength.JSClassName: UnicodeString;
  127674. begin
  127675. Result:='TestInterfaceLength';
  127676. end;
  127677. class function TJSTestInterfaceLength.Cast(const Intf: IJSObject): IJSTestInterfaceLength;
  127678. begin
  127679. Result:=TJSTestInterfaceLength.JOBCast(Intf);
  127680. end;
  127681. function TJSTestFunctions._Getone: LongInt;
  127682. begin
  127683. Result:=ReadJSPropertyLongInt('one');
  127684. end;
  127685. function TJSTestFunctions._Gettwo: LongInt;
  127686. begin
  127687. Result:=ReadJSPropertyLongInt('two');
  127688. end;
  127689. function TJSTestFunctions._GetwrapperCachedNonISupportsObject: IJSWrapperCachedNonISupportsTestInterface;
  127690. begin
  127691. Result:=ReadJSPropertyObject('wrapperCachedNonISupportsObject',TJSWrapperCachedNonISupportsTestInterface) as IJSWrapperCachedNonISupportsTestInterface;
  127692. end;
  127693. function TJSTestFunctions._GetclampedNullableOctet: Byte;
  127694. begin
  127695. Result:=ReadJSPropertyLongInt('clampedNullableOctet');
  127696. end;
  127697. function TJSTestFunctions._GetenforcedNullableOctet: Byte;
  127698. begin
  127699. Result:=ReadJSPropertyLongInt('enforcedNullableOctet');
  127700. end;
  127701. function TJSTestFunctions._GetarrayBufferView: IJSArrayBufferView;
  127702. begin
  127703. Result:=ReadJSPropertyObject('arrayBufferView',TJSArrayBufferView) as IJSArrayBufferView;
  127704. end;
  127705. function TJSTestFunctions._GetallowSharedArrayBufferView: IJSArrayBufferView;
  127706. begin
  127707. Result:=ReadJSPropertyObject('allowSharedArrayBufferView',TJSArrayBufferView) as IJSArrayBufferView;
  127708. end;
  127709. function TJSTestFunctions._GetsequenceOfArrayBufferView: TIJSArrayBufferViewDynArray;
  127710. begin
  127711. Result:=ReadJSPropertyObject('sequenceOfArrayBufferView',TJSArray) as TIJSArrayBufferViewDynArray;
  127712. end;
  127713. function TJSTestFunctions._GetsequenceOfAllowSharedArrayBufferView: TIJSArrayBufferViewDynArray;
  127714. begin
  127715. Result:=ReadJSPropertyObject('sequenceOfAllowSharedArrayBufferView',TJSArray) as TIJSArrayBufferViewDynArray;
  127716. end;
  127717. function TJSTestFunctions._GetarrayBuffer: IJSArrayBuffer;
  127718. begin
  127719. Result:=ReadJSPropertyObject('arrayBuffer',TJSArrayBuffer) as IJSArrayBuffer;
  127720. end;
  127721. function TJSTestFunctions._GetallowSharedArrayBuffer: IJSArrayBuffer;
  127722. begin
  127723. Result:=ReadJSPropertyObject('allowSharedArrayBuffer',TJSArrayBuffer) as IJSArrayBuffer;
  127724. end;
  127725. function TJSTestFunctions._GetsequenceOfArrayBuffer: TIJSArrayBufferDynArray;
  127726. begin
  127727. Result:=ReadJSPropertyObject('sequenceOfArrayBuffer',TJSArray) as TIJSArrayBufferDynArray;
  127728. end;
  127729. function TJSTestFunctions._GetsequenceOfAllowSharedArrayBuffer: TIJSArrayBufferDynArray;
  127730. begin
  127731. Result:=ReadJSPropertyObject('sequenceOfAllowSharedArrayBuffer',TJSArray) as TIJSArrayBufferDynArray;
  127732. end;
  127733. procedure TJSTestFunctions._SetclampedNullableOctet(const aValue : Byte);
  127734. begin
  127735. WriteJSPropertyLongInt('clampedNullableOctet',aValue);
  127736. end;
  127737. procedure TJSTestFunctions._SetenforcedNullableOctet(const aValue : Byte);
  127738. begin
  127739. WriteJSPropertyLongInt('enforcedNullableOctet',aValue);
  127740. end;
  127741. procedure TJSTestFunctions._SetarrayBufferView(const aValue : IJSArrayBufferView);
  127742. begin
  127743. WriteJSPropertyObject('arrayBufferView',aValue);
  127744. end;
  127745. procedure TJSTestFunctions._SetallowSharedArrayBufferView(const aValue : IJSArrayBufferView);
  127746. begin
  127747. WriteJSPropertyObject('allowSharedArrayBufferView',aValue);
  127748. end;
  127749. procedure TJSTestFunctions._SetsequenceOfArrayBufferView(const aValue : TIJSArrayBufferViewDynArray);
  127750. begin
  127751. WriteJSPropertyObject('sequenceOfArrayBufferView',aValue);
  127752. end;
  127753. procedure TJSTestFunctions._SetsequenceOfAllowSharedArrayBufferView(const aValue : TIJSArrayBufferViewDynArray);
  127754. begin
  127755. WriteJSPropertyObject('sequenceOfAllowSharedArrayBufferView',aValue);
  127756. end;
  127757. procedure TJSTestFunctions._SetarrayBuffer(const aValue : IJSArrayBuffer);
  127758. begin
  127759. WriteJSPropertyObject('arrayBuffer',aValue);
  127760. end;
  127761. procedure TJSTestFunctions._SetallowSharedArrayBuffer(const aValue : IJSArrayBuffer);
  127762. begin
  127763. WriteJSPropertyObject('allowSharedArrayBuffer',aValue);
  127764. end;
  127765. procedure TJSTestFunctions._SetsequenceOfArrayBuffer(const aValue : TIJSArrayBufferDynArray);
  127766. begin
  127767. WriteJSPropertyObject('sequenceOfArrayBuffer',aValue);
  127768. end;
  127769. procedure TJSTestFunctions._SetsequenceOfAllowSharedArrayBuffer(const aValue : TIJSArrayBufferDynArray);
  127770. begin
  127771. WriteJSPropertyObject('sequenceOfAllowSharedArrayBuffer',aValue);
  127772. end;
  127773. constructor TJSTestFunctions.Create;
  127774. begin
  127775. JOBCreate([]);
  127776. end;
  127777. procedure TJSTestFunctions.throwUncatchableException;
  127778. begin
  127779. InvokeJSNoResult('throwUncatchableException',[]);
  127780. end;
  127781. function TJSTestFunctions.passThroughPromise(aArg: IJSPromise): IJSPromise; // Promise<any>
  127782. begin
  127783. Result:=InvokeJSObjectResult('passThroughPromise',[aArg],TJSPromise) as IJSPromise;
  127784. end;
  127785. function TJSTestFunctions.passThroughCallbackPromise(const aCallback: TPromiseReturner): IJSPromise; // Promise<any>
  127786. var
  127787. m: TJOB_Method;
  127788. begin
  127789. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallPromiseReturner);
  127790. try
  127791. Result:=InvokeJSObjectResult('passThroughCallbackPromise',[m],TJSPromise) as IJSPromise;
  127792. finally
  127793. m.free;
  127794. end;
  127795. end;
  127796. procedure TJSTestFunctions.setStringData(const aArg: UnicodeString);
  127797. begin
  127798. InvokeJSNoResult('setStringData',[aArg]);
  127799. end;
  127800. function TJSTestFunctions.getStringDataAsAString: UnicodeString;
  127801. begin
  127802. Result:=InvokeJSUnicodeStringResult('getStringDataAsAString',[]);
  127803. end;
  127804. function TJSTestFunctions.getStringDataAsAString(aLength_: Cardinal): UnicodeString;
  127805. begin
  127806. Result:=InvokeJSUnicodeStringResult('getStringDataAsAString',[aLength_]);
  127807. end;
  127808. function TJSTestFunctions.getStringDataAsDOMString(aLength_: Cardinal): UnicodeString;
  127809. begin
  127810. Result:=InvokeJSUnicodeStringResult('getStringDataAsDOMString',[aLength_]);
  127811. end;
  127812. function TJSTestFunctions.getStringDataAsDOMString: UnicodeString;
  127813. begin
  127814. Result:=InvokeJSUnicodeStringResult('getStringDataAsDOMString',[]);
  127815. end;
  127816. function TJSTestFunctions.getShortLiteralString: UnicodeString;
  127817. begin
  127818. Result:=InvokeJSUnicodeStringResult('getShortLiteralString',[]);
  127819. end;
  127820. function TJSTestFunctions.getMediumLiteralString: UnicodeString;
  127821. begin
  127822. Result:=InvokeJSUnicodeStringResult('getMediumLiteralString',[]);
  127823. end;
  127824. function TJSTestFunctions.getLongLiteralString: UnicodeString;
  127825. begin
  127826. Result:=InvokeJSUnicodeStringResult('getLongLiteralString',[]);
  127827. end;
  127828. function TJSTestFunctions.getStringbufferString(const aInput: UnicodeString): UnicodeString;
  127829. begin
  127830. Result:=InvokeJSUnicodeStringResult('getStringbufferString',[aInput]);
  127831. end;
  127832. function TJSTestFunctions.getStringType(const aStr: UnicodeString): TStringType;
  127833. begin
  127834. Result:=InvokeJSUnicodeStringResult('getStringType',[aStr]);
  127835. end;
  127836. function TJSTestFunctions.stringbufferMatchesStored(const aStr: UnicodeString): Boolean;
  127837. begin
  127838. Result:=InvokeJSBooleanResult('stringbufferMatchesStored',[aStr]);
  127839. end;
  127840. procedure TJSTestFunctions.testThrowNsresult;
  127841. begin
  127842. InvokeJSNoResult('testThrowNsresult',[]);
  127843. end;
  127844. procedure TJSTestFunctions.testThrowNsresultFromNative;
  127845. begin
  127846. InvokeJSNoResult('testThrowNsresultFromNative',[]);
  127847. end;
  127848. function TJSTestFunctions.throwToRejectPromise: IJSPromise; // Promise<any>
  127849. begin
  127850. Result:=InvokeJSObjectResult('throwToRejectPromise',[],TJSPromise) as IJSPromise;
  127851. end;
  127852. function TJSTestFunctions.toJSON: IJSObject;
  127853. begin
  127854. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  127855. end;
  127856. procedure TJSTestFunctions.testNotAllowShared(aBuffer: IJSArrayBufferView);
  127857. begin
  127858. InvokeJSNoResult('testNotAllowShared',[aBuffer]);
  127859. end;
  127860. procedure TJSTestFunctions.testNotAllowShared(aBuffer: IJSArrayBuffer);
  127861. begin
  127862. InvokeJSNoResult('testNotAllowShared',[aBuffer]);
  127863. end;
  127864. procedure TJSTestFunctions.testNotAllowShared(const aBuffer: UnicodeString);
  127865. begin
  127866. InvokeJSNoResult('testNotAllowShared',[aBuffer]);
  127867. end;
  127868. procedure TJSTestFunctions.testAllowShared(aBuffer: IJSArrayBufferView);
  127869. begin
  127870. InvokeJSNoResult('testAllowShared',[aBuffer]);
  127871. end;
  127872. procedure TJSTestFunctions.testAllowShared(aBuffer: IJSArrayBuffer);
  127873. begin
  127874. InvokeJSNoResult('testAllowShared',[aBuffer]);
  127875. end;
  127876. procedure TJSTestFunctions.testDictWithAllowShared(const aBuffer: TJSDictWithAllowSharedBufferSource);
  127877. begin
  127878. InvokeJSNoResult('testDictWithAllowShared',[aBuffer]);
  127879. end;
  127880. procedure TJSTestFunctions.testDictWithAllowShared;
  127881. begin
  127882. InvokeJSNoResult('testDictWithAllowShared',[]);
  127883. end;
  127884. procedure TJSTestFunctions.testUnionOfBuffferSource(aFoo: IJSArrayBuffer);
  127885. begin
  127886. InvokeJSNoResult('testUnionOfBuffferSource',[aFoo]);
  127887. end;
  127888. procedure TJSTestFunctions.testUnionOfBuffferSource(aFoo: IJSArrayBufferView);
  127889. begin
  127890. InvokeJSNoResult('testUnionOfBuffferSource',[aFoo]);
  127891. end;
  127892. procedure TJSTestFunctions.testUnionOfBuffferSource(const aFoo: UnicodeString);
  127893. begin
  127894. InvokeJSNoResult('testUnionOfBuffferSource',[aFoo]);
  127895. end;
  127896. procedure TJSTestFunctions.testUnionOfAllowSharedBuffferSource(aFoo: IJSArrayBuffer);
  127897. begin
  127898. InvokeJSNoResult('testUnionOfAllowSharedBuffferSource',[aFoo]);
  127899. end;
  127900. procedure TJSTestFunctions.testUnionOfAllowSharedBuffferSource(aFoo: IJSArrayBufferView);
  127901. begin
  127902. InvokeJSNoResult('testUnionOfAllowSharedBuffferSource',[aFoo]);
  127903. end;
  127904. function TJSTestFunctions.staticAndNonStaticOverload(aFoo: Cardinal): Boolean;
  127905. begin
  127906. Result:=InvokeJSBooleanResult('staticAndNonStaticOverload',[aFoo]);
  127907. end;
  127908. function TJSTestFunctions.staticAndNonStaticOverload: Boolean;
  127909. begin
  127910. Result:=InvokeJSBooleanResult('staticAndNonStaticOverload',[]);
  127911. end;
  127912. class function TJSTestFunctions.JSClassName: UnicodeString;
  127913. begin
  127914. Result:='TestFunctions';
  127915. end;
  127916. class function TJSTestFunctions.Cast(const Intf: IJSObject): IJSTestFunctions;
  127917. begin
  127918. Result:=TJSTestFunctions.JOBCast(Intf);
  127919. end;
  127920. function TJSDictWithAllowSharedBufferSource._GetarrayBuffer: IJSArrayBuffer;
  127921. begin
  127922. Result:=ReadJSPropertyObject('arrayBuffer',TJSArrayBuffer) as IJSArrayBuffer;
  127923. end;
  127924. function TJSDictWithAllowSharedBufferSource._GetarrayBufferView: IJSArrayBufferView;
  127925. begin
  127926. Result:=ReadJSPropertyObject('arrayBufferView',TJSArrayBufferView) as IJSArrayBufferView;
  127927. end;
  127928. function TJSDictWithAllowSharedBufferSource._GetallowSharedArrayBuffer: IJSArrayBuffer;
  127929. begin
  127930. Result:=ReadJSPropertyObject('allowSharedArrayBuffer',TJSArrayBuffer) as IJSArrayBuffer;
  127931. end;
  127932. function TJSDictWithAllowSharedBufferSource._GetallowSharedArrayBufferView: IJSArrayBufferView;
  127933. begin
  127934. Result:=ReadJSPropertyObject('allowSharedArrayBufferView',TJSArrayBufferView) as IJSArrayBufferView;
  127935. end;
  127936. procedure TJSDictWithAllowSharedBufferSource._SetarrayBuffer(const aValue : IJSArrayBuffer);
  127937. begin
  127938. WriteJSPropertyObject('arrayBuffer',aValue);
  127939. end;
  127940. procedure TJSDictWithAllowSharedBufferSource._SetarrayBufferView(const aValue : IJSArrayBufferView);
  127941. begin
  127942. WriteJSPropertyObject('arrayBufferView',aValue);
  127943. end;
  127944. procedure TJSDictWithAllowSharedBufferSource._SetallowSharedArrayBuffer(const aValue : IJSArrayBuffer);
  127945. begin
  127946. WriteJSPropertyObject('allowSharedArrayBuffer',aValue);
  127947. end;
  127948. procedure TJSDictWithAllowSharedBufferSource._SetallowSharedArrayBufferView(const aValue : IJSArrayBufferView);
  127949. begin
  127950. WriteJSPropertyObject('allowSharedArrayBufferView',aValue);
  127951. end;
  127952. class function TJSDictWithAllowSharedBufferSource.JSClassName: UnicodeString;
  127953. begin
  127954. Result:='Object';
  127955. end;
  127956. class function TJSDictWithAllowSharedBufferSource.Cast(const Intf: IJSObject): IJSDictWithAllowSharedBufferSource;
  127957. begin
  127958. Result:=TJSDictWithAllowSharedBufferSource.JOBCast(Intf);
  127959. end;
  127960. function TJSTestInterfaceJSUnionableDictionary._GetobjectMember: IJSObject;
  127961. begin
  127962. Result:=ReadJSPropertyObject('objectMember',TJSObject) as IJSObject;
  127963. end;
  127964. function TJSTestInterfaceJSUnionableDictionary._GetanyMember: Variant;
  127965. begin
  127966. Result:=ReadJSPropertyVariant('anyMember');
  127967. end;
  127968. procedure TJSTestInterfaceJSUnionableDictionary._SetobjectMember(const aValue : IJSObject);
  127969. begin
  127970. WriteJSPropertyObject('objectMember',aValue);
  127971. end;
  127972. procedure TJSTestInterfaceJSUnionableDictionary._SetanyMember(const aValue : Variant);
  127973. begin
  127974. WriteJSPropertyVariant('anyMember',aValue);
  127975. end;
  127976. class function TJSTestInterfaceJSUnionableDictionary.JSClassName: UnicodeString;
  127977. begin
  127978. Result:='Object';
  127979. end;
  127980. class function TJSTestInterfaceJSUnionableDictionary.Cast(const Intf: IJSObject): IJSTestInterfaceJSUnionableDictionary;
  127981. begin
  127982. Result:=TJSTestInterfaceJSUnionableDictionary.JOBCast(Intf);
  127983. end;
  127984. function TJSTestInterfaceJS._GetanyArg: Variant;
  127985. begin
  127986. Result:=ReadJSPropertyVariant('anyArg');
  127987. end;
  127988. function TJSTestInterfaceJS._GetobjectArg: IJSObject;
  127989. begin
  127990. Result:=ReadJSPropertyObject('objectArg',TJSObject) as IJSObject;
  127991. end;
  127992. function TJSTestInterfaceJS._GetanyAttr: Variant;
  127993. begin
  127994. Result:=ReadJSPropertyVariant('anyAttr');
  127995. end;
  127996. function TJSTestInterfaceJS._GetobjectAttr: IJSObject;
  127997. begin
  127998. Result:=ReadJSPropertyObject('objectAttr',TJSObject) as IJSObject;
  127999. end;
  128000. function TJSTestInterfaceJS._Getonsomething: TEventHandler;
  128001. begin
  128002. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsomething')));
  128003. end;
  128004. procedure TJSTestInterfaceJS._SetanyAttr(const aValue : Variant);
  128005. begin
  128006. WriteJSPropertyVariant('anyAttr',aValue);
  128007. end;
  128008. procedure TJSTestInterfaceJS._SetobjectAttr(const aValue : IJSObject);
  128009. begin
  128010. WriteJSPropertyObject('objectAttr',aValue);
  128011. end;
  128012. procedure TJSTestInterfaceJS._Setonsomething(const aValue : TEventHandler);
  128013. begin
  128014. WriteJSPropertyMethod('onsomething',TMethod(aValue));
  128015. end;
  128016. constructor TJSTestInterfaceJS.Create(const aAnyArg: Variant; aObjectArg: IJSObject; const aDictionaryArg: TJSTestInterfaceJSDictionary);
  128017. begin
  128018. JOBCreate([aAnyArg,aObjectArg,aDictionaryArg]);
  128019. end;
  128020. constructor TJSTestInterfaceJS.Create;
  128021. begin
  128022. JOBCreate([]);
  128023. end;
  128024. constructor TJSTestInterfaceJS.Create(const aAnyArg: Variant);
  128025. begin
  128026. JOBCreate([aAnyArg]);
  128027. end;
  128028. constructor TJSTestInterfaceJS.Create(const aAnyArg: Variant; aObjectArg: IJSObject);
  128029. begin
  128030. JOBCreate([aAnyArg,aObjectArg]);
  128031. end;
  128032. function TJSTestInterfaceJS.getDictionaryArg: TJSTestInterfaceJSDictionary;
  128033. begin
  128034. Result:=InvokeJSObjectResult('getDictionaryArg',[],TJSTestInterfaceJSDictionary) as TJSTestInterfaceJSDictionary;
  128035. end;
  128036. function TJSTestInterfaceJS.getDictionaryAttr: TJSTestInterfaceJSDictionary;
  128037. begin
  128038. Result:=InvokeJSObjectResult('getDictionaryAttr',[],TJSTestInterfaceJSDictionary) as TJSTestInterfaceJSDictionary;
  128039. end;
  128040. procedure TJSTestInterfaceJS.setDictionaryAttr(const aDict: TJSTestInterfaceJSDictionary);
  128041. begin
  128042. InvokeJSNoResult('setDictionaryAttr',[aDict]);
  128043. end;
  128044. procedure TJSTestInterfaceJS.setDictionaryAttr;
  128045. begin
  128046. InvokeJSNoResult('setDictionaryAttr',[]);
  128047. end;
  128048. function TJSTestInterfaceJS.pingPongAny(const aArg: Variant): Variant;
  128049. begin
  128050. Result:=InvokeJSVariantResult('pingPongAny',[aArg]);
  128051. end;
  128052. function TJSTestInterfaceJS.pingPongObject(aObj: IJSObject): IJSObject;
  128053. begin
  128054. Result:=InvokeJSObjectResult('pingPongObject',[aObj],TJSObject) as IJSObject;
  128055. end;
  128056. function TJSTestInterfaceJS.pingPongObjectOrString(const aObjOrString: UnicodeString): Variant;
  128057. begin
  128058. Result:=InvokeJSVariantResult('pingPongObjectOrString',[aObjOrString]);
  128059. end;
  128060. function TJSTestInterfaceJS.pingPongObjectOrString(aObjOrString: IJSObject): Variant;
  128061. begin
  128062. Result:=InvokeJSVariantResult('pingPongObjectOrString',[aObjOrString]);
  128063. end;
  128064. function TJSTestInterfaceJS.pingPongDictionary(const aDict: TJSTestInterfaceJSDictionary): TJSTestInterfaceJSDictionary;
  128065. begin
  128066. Result:=InvokeJSObjectResult('pingPongDictionary',[aDict],TJSTestInterfaceJSDictionary) as TJSTestInterfaceJSDictionary;
  128067. end;
  128068. function TJSTestInterfaceJS.pingPongDictionary: TJSTestInterfaceJSDictionary;
  128069. begin
  128070. Result:=InvokeJSObjectResult('pingPongDictionary',[],TJSTestInterfaceJSDictionary) as TJSTestInterfaceJSDictionary;
  128071. end;
  128072. function TJSTestInterfaceJS.pingPongDictionaryOrLong(aDictOrLong: LongInt): LongInt;
  128073. begin
  128074. Result:=InvokeJSLongIntResult('pingPongDictionaryOrLong',[aDictOrLong]);
  128075. end;
  128076. function TJSTestInterfaceJS.pingPongDictionaryOrLong: LongInt;
  128077. begin
  128078. Result:=InvokeJSLongIntResult('pingPongDictionaryOrLong',[]);
  128079. end;
  128080. function TJSTestInterfaceJS.pingPongDictionaryOrLong(const aDictOrLong: TJSTestInterfaceJSUnionableDictionary): LongInt;
  128081. begin
  128082. Result:=InvokeJSLongIntResult('pingPongDictionaryOrLong',[aDictOrLong]);
  128083. end;
  128084. function TJSTestInterfaceJS.pingPongRecord(aRec: IJSObject): UnicodeString;
  128085. begin
  128086. Result:=InvokeJSUnicodeStringResult('pingPongRecord',[aRec]);
  128087. end;
  128088. function TJSTestInterfaceJS.objectSequenceLength(const aSeq: TIJSObjectDynArray): LongInt;
  128089. begin
  128090. Result:=InvokeJSLongIntResult('objectSequenceLength',[aSeq]);
  128091. end;
  128092. function TJSTestInterfaceJS.anySequenceLength(const aSeq: TVariantDynArray): LongInt;
  128093. begin
  128094. Result:=InvokeJSLongIntResult('anySequenceLength',[aSeq]);
  128095. end;
  128096. function TJSTestInterfaceJS.getCallerPrincipal: UnicodeString;
  128097. begin
  128098. Result:=InvokeJSUnicodeStringResult('getCallerPrincipal',[]);
  128099. end;
  128100. function TJSTestInterfaceJS.convertSVS(const aSvs: UnicodeString): UnicodeString;
  128101. begin
  128102. Result:=InvokeJSUnicodeStringResult('convertSVS',[aSvs]);
  128103. end;
  128104. function TJSTestInterfaceJS.pingPongUnion(aSomething: LongInt): TTestInterfaceJS_pingPongUnion_Type;
  128105. begin
  128106. Result:=InvokeJSVariantResult('pingPongUnion',[aSomething]);
  128107. end;
  128108. function TJSTestInterfaceJS.pingPongUnion(aSomething: IJSTestInterfaceJS): TTestInterfaceJS_pingPongUnion_Type;
  128109. begin
  128110. Result:=InvokeJSVariantResult('pingPongUnion',[aSomething]);
  128111. end;
  128112. function TJSTestInterfaceJS.pingPongUnionContainingNull(const aSomething: UnicodeString): TTestInterfaceJS_pingPongUnionContainingNull_Type;
  128113. begin
  128114. Result:=InvokeJSVariantResult('pingPongUnionContainingNull',[aSomething]);
  128115. end;
  128116. function TJSTestInterfaceJS.pingPongUnionContainingNull(aSomething: IJSTestInterfaceJS): TTestInterfaceJS_pingPongUnionContainingNull_Type;
  128117. begin
  128118. Result:=InvokeJSVariantResult('pingPongUnionContainingNull',[aSomething]);
  128119. end;
  128120. function TJSTestInterfaceJS.pingPongNullableUnion(aSomething: LongInt): TTestInterfaceJS_pingPongNullableUnion_Type;
  128121. begin
  128122. Result:=InvokeJSVariantResult('pingPongNullableUnion',[aSomething]);
  128123. end;
  128124. function TJSTestInterfaceJS.pingPongNullableUnion(aSomething: IJSTestInterfaceJS): TTestInterfaceJS_pingPongNullableUnion_Type;
  128125. begin
  128126. Result:=InvokeJSVariantResult('pingPongNullableUnion',[aSomething]);
  128127. end;
  128128. function TJSTestInterfaceJS.returnBadUnion: TTestInterfaceJS_returnBadUnion_Type;
  128129. begin
  128130. Result:=InvokeJSVariantResult('returnBadUnion',[]);
  128131. end;
  128132. procedure TJSTestInterfaceJS.testSequenceOverload(const aArg: TUnicodeStringDynArray);
  128133. begin
  128134. InvokeJSNoResult('testSequenceOverload',[aArg]);
  128135. end;
  128136. procedure TJSTestInterfaceJS.testSequenceOverload(const aArg: UnicodeString);
  128137. begin
  128138. InvokeJSNoResult('testSequenceOverload',[aArg]);
  128139. end;
  128140. procedure TJSTestInterfaceJS.testSequenceUnion(const aArg: UnicodeString);
  128141. begin
  128142. InvokeJSNoResult('testSequenceUnion',[aArg]);
  128143. end;
  128144. procedure TJSTestInterfaceJS.testSequenceUnion(const aArg: TUnicodeStringDynArray);
  128145. begin
  128146. InvokeJSNoResult('testSequenceUnion',[aArg]);
  128147. end;
  128148. procedure TJSTestInterfaceJS.testThrowError;
  128149. begin
  128150. InvokeJSNoResult('testThrowError',[]);
  128151. end;
  128152. procedure TJSTestInterfaceJS.testThrowDOMException;
  128153. begin
  128154. InvokeJSNoResult('testThrowDOMException',[]);
  128155. end;
  128156. procedure TJSTestInterfaceJS.testThrowTypeError;
  128157. begin
  128158. InvokeJSNoResult('testThrowTypeError',[]);
  128159. end;
  128160. procedure TJSTestInterfaceJS.testThrowCallbackError(const aCallback: TFunction);
  128161. var
  128162. m: TJOB_Method;
  128163. begin
  128164. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFunction_);
  128165. try
  128166. InvokeJSNoResult('testThrowCallbackError',[m]);
  128167. finally
  128168. m.free;
  128169. end;
  128170. end;
  128171. procedure TJSTestInterfaceJS.testThrowXraySelfHosted;
  128172. begin
  128173. InvokeJSNoResult('testThrowXraySelfHosted',[]);
  128174. end;
  128175. procedure TJSTestInterfaceJS.testThrowSelfHosted;
  128176. begin
  128177. InvokeJSNoResult('testThrowSelfHosted',[]);
  128178. end;
  128179. function TJSTestInterfaceJS.testPromiseWithThrowingChromePromiseInit: IJSPromise; // Promise<undefined>
  128180. begin
  128181. Result:=InvokeJSObjectResult('testPromiseWithThrowingChromePromiseInit',[],TJSPromise) as IJSPromise;
  128182. end;
  128183. function TJSTestInterfaceJS.testPromiseWithThrowingContentPromiseInit(const aFunc: TFunction): IJSPromise; // Promise<undefined>
  128184. var
  128185. m: TJOB_Method;
  128186. begin
  128187. m:=TJOB_Method.Create(TMethod(aFunc),@JOBCallFunction_);
  128188. try
  128189. Result:=InvokeJSObjectResult('testPromiseWithThrowingContentPromiseInit',[m],TJSPromise) as IJSPromise;
  128190. finally
  128191. m.free;
  128192. end;
  128193. end;
  128194. function TJSTestInterfaceJS.testPromiseWithDOMExceptionThrowingPromiseInit: IJSPromise; // Promise<undefined>
  128195. begin
  128196. Result:=InvokeJSObjectResult('testPromiseWithDOMExceptionThrowingPromiseInit',[],TJSPromise) as IJSPromise;
  128197. end;
  128198. function TJSTestInterfaceJS.testPromiseWithThrowingChromeThenFunction: IJSPromise; // Promise<undefined>
  128199. begin
  128200. Result:=InvokeJSObjectResult('testPromiseWithThrowingChromeThenFunction',[],TJSPromise) as IJSPromise;
  128201. end;
  128202. function TJSTestInterfaceJS.testPromiseWithThrowingContentThenFunction(const aFunc: TAnyCallback): IJSPromise; // Promise<undefined>
  128203. var
  128204. m: TJOB_Method;
  128205. begin
  128206. m:=TJOB_Method.Create(TMethod(aFunc),@JOBCallAnyCallback);
  128207. try
  128208. Result:=InvokeJSObjectResult('testPromiseWithThrowingContentThenFunction',[m],TJSPromise) as IJSPromise;
  128209. finally
  128210. m.free;
  128211. end;
  128212. end;
  128213. function TJSTestInterfaceJS.testPromiseWithDOMExceptionThrowingThenFunction: IJSPromise; // Promise<undefined>
  128214. begin
  128215. Result:=InvokeJSObjectResult('testPromiseWithDOMExceptionThrowingThenFunction',[],TJSPromise) as IJSPromise;
  128216. end;
  128217. function TJSTestInterfaceJS.testPromiseWithThrowingChromeThenable: IJSPromise; // Promise<undefined>
  128218. begin
  128219. Result:=InvokeJSObjectResult('testPromiseWithThrowingChromeThenable',[],TJSPromise) as IJSPromise;
  128220. end;
  128221. function TJSTestInterfaceJS.testPromiseWithThrowingContentThenable(aThenable: IJSObject): IJSPromise; // Promise<undefined>
  128222. begin
  128223. Result:=InvokeJSObjectResult('testPromiseWithThrowingContentThenable',[aThenable],TJSPromise) as IJSPromise;
  128224. end;
  128225. function TJSTestInterfaceJS.testPromiseWithDOMExceptionThrowingThenable: IJSPromise; // Promise<undefined>
  128226. begin
  128227. Result:=InvokeJSObjectResult('testPromiseWithDOMExceptionThrowingThenable',[],TJSPromise) as IJSPromise;
  128228. end;
  128229. class function TJSTestInterfaceJS.JSClassName: UnicodeString;
  128230. begin
  128231. Result:='TestInterfaceJS';
  128232. end;
  128233. class function TJSTestInterfaceJS.Cast(const Intf: IJSObject): IJSTestInterfaceJS;
  128234. begin
  128235. Result:=TJSTestInterfaceJS.JOBCast(Intf);
  128236. end;
  128237. function TJSTestInterfaceJSDictionary2._GetinnerObject: IJSObject;
  128238. begin
  128239. Result:=ReadJSPropertyObject('innerObject',TJSObject) as IJSObject;
  128240. end;
  128241. procedure TJSTestInterfaceJSDictionary2._SetinnerObject(const aValue : IJSObject);
  128242. begin
  128243. WriteJSPropertyObject('innerObject',aValue);
  128244. end;
  128245. class function TJSTestInterfaceJSDictionary2.JSClassName: UnicodeString;
  128246. begin
  128247. Result:='Object';
  128248. end;
  128249. class function TJSTestInterfaceJSDictionary2.Cast(const Intf: IJSObject): IJSTestInterfaceJSDictionary2;
  128250. begin
  128251. Result:=TJSTestInterfaceJSDictionary2.JOBCast(Intf);
  128252. end;
  128253. function TJSTestInterfaceJSDictionary._GetinnerDictionary: TJSTestInterfaceJSDictionary2;
  128254. begin
  128255. Result:=ReadJSPropertyObject('innerDictionary',TJSTestInterfaceJSDictionary2) as TJSTestInterfaceJSDictionary2;
  128256. end;
  128257. function TJSTestInterfaceJSDictionary._GetobjectMember: IJSObject;
  128258. begin
  128259. Result:=ReadJSPropertyObject('objectMember',TJSObject) as IJSObject;
  128260. end;
  128261. function TJSTestInterfaceJSDictionary._GetanyMember: Variant;
  128262. begin
  128263. Result:=ReadJSPropertyVariant('anyMember');
  128264. end;
  128265. function TJSTestInterfaceJSDictionary._GetobjectOrStringMember: TTestInterfaceJSDictionary_objectOrStringMember_Type;
  128266. begin
  128267. Result:=ReadJSPropertyVariant('objectOrStringMember');
  128268. end;
  128269. function TJSTestInterfaceJSDictionary._GetanySequenceMember: TVariantDynArray;
  128270. begin
  128271. Result:=ReadJSPropertyObject('anySequenceMember',TJSArray) as TVariantDynArray;
  128272. end;
  128273. function TJSTestInterfaceJSDictionary._GetobjectRecordMember: IJSObject;
  128274. begin
  128275. Result:=ReadJSPropertyObject('objectRecordMember',TJSObject) as IJSObject;
  128276. end;
  128277. procedure TJSTestInterfaceJSDictionary._SetinnerDictionary(const aValue : TJSTestInterfaceJSDictionary2);
  128278. begin
  128279. WriteJSPropertyObject('innerDictionary',aValue);
  128280. end;
  128281. procedure TJSTestInterfaceJSDictionary._SetobjectMember(const aValue : IJSObject);
  128282. begin
  128283. WriteJSPropertyObject('objectMember',aValue);
  128284. end;
  128285. procedure TJSTestInterfaceJSDictionary._SetanyMember(const aValue : Variant);
  128286. begin
  128287. WriteJSPropertyVariant('anyMember',aValue);
  128288. end;
  128289. procedure TJSTestInterfaceJSDictionary._SetobjectOrStringMember(const aValue : TTestInterfaceJSDictionary_objectOrStringMember_Type);
  128290. begin
  128291. WriteJSPropertyVariant('objectOrStringMember',aValue);
  128292. end;
  128293. procedure TJSTestInterfaceJSDictionary._SetanySequenceMember(const aValue : TVariantDynArray);
  128294. begin
  128295. WriteJSPropertyObject('anySequenceMember',aValue);
  128296. end;
  128297. procedure TJSTestInterfaceJSDictionary._SetobjectRecordMember(const aValue : IJSObject);
  128298. begin
  128299. WriteJSPropertyObject('objectRecordMember',aValue);
  128300. end;
  128301. class function TJSTestInterfaceJSDictionary.JSClassName: UnicodeString;
  128302. begin
  128303. Result:='Object';
  128304. end;
  128305. class function TJSTestInterfaceJSDictionary.Cast(const Intf: IJSObject): IJSTestInterfaceJSDictionary;
  128306. begin
  128307. Result:=TJSTestInterfaceJSDictionary.JOBCast(Intf);
  128308. end;
  128309. function TJSTestInterfaceMaplike._Getsize: LongInt;
  128310. begin
  128311. Result:=ReadJSPropertyLongInt('size');
  128312. end;
  128313. constructor TJSTestInterfaceMaplike.Create;
  128314. begin
  128315. JOBCreate([]);
  128316. end;
  128317. function TJSTestInterfaceMaplike.get(key: UnicodeString) : LongInt;
  128318. begin
  128319. Result:=InvokeJSLongIntResult('get',[key]);
  128320. end;
  128321. function TJSTestInterfaceMaplike.has(key: UnicodeString) : Boolean;
  128322. begin
  128323. Result:=InvokeJSBooleanResult('has',[key]);
  128324. end;
  128325. function TJSTestInterfaceMaplike.entries : IJSIterator;
  128326. begin
  128327. Result:=InvokeJSObjectResult('entries',[],TJSIterator) as IJSIterator;
  128328. end;
  128329. function TJSTestInterfaceMaplike.keys : IJSIterator;
  128330. begin
  128331. Result:=InvokeJSObjectResult('keys',[],TJSIterator) as IJSIterator;
  128332. end;
  128333. function TJSTestInterfaceMaplike.values : IJSIterator;
  128334. begin
  128335. Result:=InvokeJSObjectResult('values',[],TJSIterator) as IJSIterator;
  128336. end;
  128337. Procedure TJSTestInterfaceMaplike.set_(key: UnicodeString; value : LongInt);
  128338. begin
  128339. InvokeJSNoResult('set',[key,Value]);
  128340. end;
  128341. Procedure TJSTestInterfaceMaplike.clear;
  128342. begin
  128343. InvokeJSNoResult('clear',[]);
  128344. end;
  128345. Procedure TJSTestInterfaceMaplike.delete(key: UnicodeString);
  128346. begin
  128347. InvokeJSNoResult('delete',[key]);
  128348. end;
  128349. procedure TJSTestInterfaceMaplike.setInternal(const aAKey: UnicodeString; aAValue: LongInt);
  128350. begin
  128351. InvokeJSNoResult('setInternal',[aAKey,aAValue]);
  128352. end;
  128353. procedure TJSTestInterfaceMaplike.clearInternal;
  128354. begin
  128355. InvokeJSNoResult('clearInternal',[]);
  128356. end;
  128357. function TJSTestInterfaceMaplike.deleteInternal(const aAKey: UnicodeString): Boolean;
  128358. begin
  128359. Result:=InvokeJSBooleanResult('deleteInternal',[aAKey]);
  128360. end;
  128361. function TJSTestInterfaceMaplike.hasInternal(const aAKey: UnicodeString): Boolean;
  128362. begin
  128363. Result:=InvokeJSBooleanResult('hasInternal',[aAKey]);
  128364. end;
  128365. function TJSTestInterfaceMaplike.getInternal(const aAKey: UnicodeString): LongInt;
  128366. begin
  128367. Result:=InvokeJSLongIntResult('getInternal',[aAKey]);
  128368. end;
  128369. class function TJSTestInterfaceMaplike.JSClassName: UnicodeString;
  128370. begin
  128371. Result:='TestInterfaceMaplike';
  128372. end;
  128373. class function TJSTestInterfaceMaplike.Cast(const Intf: IJSObject): IJSTestInterfaceMaplike;
  128374. begin
  128375. Result:=TJSTestInterfaceMaplike.JOBCast(Intf);
  128376. end;
  128377. function TJSTestInterfaceMaplikeObject._Getsize: LongInt;
  128378. begin
  128379. Result:=ReadJSPropertyLongInt('size');
  128380. end;
  128381. constructor TJSTestInterfaceMaplikeObject.Create;
  128382. begin
  128383. JOBCreate([]);
  128384. end;
  128385. function TJSTestInterfaceMaplikeObject.get(key: UnicodeString) : TJSTestInterfaceMaplike;
  128386. begin
  128387. Result:=InvokeJSObjectResult('get',[key],TJSTestInterfaceMaplike) as TJSTestInterfaceMaplike;
  128388. end;
  128389. function TJSTestInterfaceMaplikeObject.has(key: UnicodeString) : Boolean;
  128390. begin
  128391. Result:=InvokeJSBooleanResult('has',[key]);
  128392. end;
  128393. function TJSTestInterfaceMaplikeObject.entries : IJSIterator;
  128394. begin
  128395. Result:=InvokeJSObjectResult('entries',[],TJSIterator) as IJSIterator;
  128396. end;
  128397. function TJSTestInterfaceMaplikeObject.keys : IJSIterator;
  128398. begin
  128399. Result:=InvokeJSObjectResult('keys',[],TJSIterator) as IJSIterator;
  128400. end;
  128401. function TJSTestInterfaceMaplikeObject.values : IJSIterator;
  128402. begin
  128403. Result:=InvokeJSObjectResult('values',[],TJSIterator) as IJSIterator;
  128404. end;
  128405. procedure TJSTestInterfaceMaplikeObject.setInternal(const aAKey: UnicodeString);
  128406. begin
  128407. InvokeJSNoResult('setInternal',[aAKey]);
  128408. end;
  128409. procedure TJSTestInterfaceMaplikeObject.clearInternal;
  128410. begin
  128411. InvokeJSNoResult('clearInternal',[]);
  128412. end;
  128413. function TJSTestInterfaceMaplikeObject.deleteInternal(const aAKey: UnicodeString): Boolean;
  128414. begin
  128415. Result:=InvokeJSBooleanResult('deleteInternal',[aAKey]);
  128416. end;
  128417. function TJSTestInterfaceMaplikeObject.hasInternal(const aAKey: UnicodeString): Boolean;
  128418. begin
  128419. Result:=InvokeJSBooleanResult('hasInternal',[aAKey]);
  128420. end;
  128421. function TJSTestInterfaceMaplikeObject.getInternal(const aAKey: UnicodeString): IJSTestInterfaceMaplike;
  128422. begin
  128423. Result:=InvokeJSObjectResult('getInternal',[aAKey],TJSTestInterfaceMaplike) as IJSTestInterfaceMaplike;
  128424. end;
  128425. class function TJSTestInterfaceMaplikeObject.JSClassName: UnicodeString;
  128426. begin
  128427. Result:='TestInterfaceMaplikeObject';
  128428. end;
  128429. class function TJSTestInterfaceMaplikeObject.Cast(const Intf: IJSObject): IJSTestInterfaceMaplikeObject;
  128430. begin
  128431. Result:=TJSTestInterfaceMaplikeObject.JOBCast(Intf);
  128432. end;
  128433. function TJSTestInterfaceMaplikeJSObject._Getsize: LongInt;
  128434. begin
  128435. Result:=ReadJSPropertyLongInt('size');
  128436. end;
  128437. constructor TJSTestInterfaceMaplikeJSObject.Create;
  128438. begin
  128439. JOBCreate([]);
  128440. end;
  128441. function TJSTestInterfaceMaplikeJSObject.get(key: UnicodeString) : IJSObject;
  128442. begin
  128443. Result:=InvokeJSObjectResult('get',[key],TJSObject) as IJSObject;
  128444. end;
  128445. function TJSTestInterfaceMaplikeJSObject.has(key: UnicodeString) : Boolean;
  128446. begin
  128447. Result:=InvokeJSBooleanResult('has',[key]);
  128448. end;
  128449. function TJSTestInterfaceMaplikeJSObject.entries : IJSIterator;
  128450. begin
  128451. Result:=InvokeJSObjectResult('entries',[],TJSIterator) as IJSIterator;
  128452. end;
  128453. function TJSTestInterfaceMaplikeJSObject.keys : IJSIterator;
  128454. begin
  128455. Result:=InvokeJSObjectResult('keys',[],TJSIterator) as IJSIterator;
  128456. end;
  128457. function TJSTestInterfaceMaplikeJSObject.values : IJSIterator;
  128458. begin
  128459. Result:=InvokeJSObjectResult('values',[],TJSIterator) as IJSIterator;
  128460. end;
  128461. procedure TJSTestInterfaceMaplikeJSObject.setInternal(const aAKey: UnicodeString; aAObject: IJSObject);
  128462. begin
  128463. InvokeJSNoResult('setInternal',[aAKey,aAObject]);
  128464. end;
  128465. procedure TJSTestInterfaceMaplikeJSObject.clearInternal;
  128466. begin
  128467. InvokeJSNoResult('clearInternal',[]);
  128468. end;
  128469. function TJSTestInterfaceMaplikeJSObject.deleteInternal(const aAKey: UnicodeString): Boolean;
  128470. begin
  128471. Result:=InvokeJSBooleanResult('deleteInternal',[aAKey]);
  128472. end;
  128473. function TJSTestInterfaceMaplikeJSObject.hasInternal(const aAKey: UnicodeString): Boolean;
  128474. begin
  128475. Result:=InvokeJSBooleanResult('hasInternal',[aAKey]);
  128476. end;
  128477. function TJSTestInterfaceMaplikeJSObject.getInternal(const aAKey: UnicodeString): IJSObject;
  128478. begin
  128479. Result:=InvokeJSObjectResult('getInternal',[aAKey],TJSObject) as IJSObject;
  128480. end;
  128481. class function TJSTestInterfaceMaplikeJSObject.JSClassName: UnicodeString;
  128482. begin
  128483. Result:='TestInterfaceMaplikeJSObject';
  128484. end;
  128485. class function TJSTestInterfaceMaplikeJSObject.Cast(const Intf: IJSObject): IJSTestInterfaceMaplikeJSObject;
  128486. begin
  128487. Result:=TJSTestInterfaceMaplikeJSObject.JOBCast(Intf);
  128488. end;
  128489. constructor TJSTestInterfaceSetlike.Create;
  128490. begin
  128491. JOBCreate([]);
  128492. end;
  128493. class function TJSTestInterfaceSetlike.JSClassName: UnicodeString;
  128494. begin
  128495. Result:='TestInterfaceSetlike';
  128496. end;
  128497. class function TJSTestInterfaceSetlike.Cast(const Intf: IJSObject): IJSTestInterfaceSetlike;
  128498. begin
  128499. Result:=TJSTestInterfaceSetlike.JOBCast(Intf);
  128500. end;
  128501. constructor TJSTestInterfaceSetlikeNode.Create;
  128502. begin
  128503. JOBCreate([]);
  128504. end;
  128505. class function TJSTestInterfaceSetlikeNode.JSClassName: UnicodeString;
  128506. begin
  128507. Result:='TestInterfaceSetlikeNode';
  128508. end;
  128509. class function TJSTestInterfaceSetlikeNode.Cast(const Intf: IJSObject): IJSTestInterfaceSetlikeNode;
  128510. begin
  128511. Result:=TJSTestInterfaceSetlikeNode.JOBCast(Intf);
  128512. end;
  128513. function TJSTestInterfaceIterableSingle._Getlength_: Cardinal;
  128514. begin
  128515. Result:=ReadJSPropertyInt64('length');
  128516. end;
  128517. constructor TJSTestInterfaceIterableSingle.Create;
  128518. begin
  128519. JOBCreate([]);
  128520. end;
  128521. function TJSTestInterfaceIterableSingle.GetDefault(aIndex: Cardinal): LongInt;
  128522. begin
  128523. Result:=InvokeJSLongIntResult('',[aIndex]);
  128524. end;
  128525. class function TJSTestInterfaceIterableSingle.JSClassName: UnicodeString;
  128526. begin
  128527. Result:='TestInterfaceIterableSingle';
  128528. end;
  128529. class function TJSTestInterfaceIterableSingle.Cast(const Intf: IJSObject): IJSTestInterfaceIterableSingle;
  128530. begin
  128531. Result:=TJSTestInterfaceIterableSingle.JOBCast(Intf);
  128532. end;
  128533. constructor TJSTestInterfaceIterableDouble.Create;
  128534. begin
  128535. JOBCreate([]);
  128536. end;
  128537. class function TJSTestInterfaceIterableDouble.JSClassName: UnicodeString;
  128538. begin
  128539. Result:='TestInterfaceIterableDouble';
  128540. end;
  128541. class function TJSTestInterfaceIterableDouble.Cast(const Intf: IJSObject): IJSTestInterfaceIterableDouble;
  128542. begin
  128543. Result:=TJSTestInterfaceIterableDouble.JOBCast(Intf);
  128544. end;
  128545. constructor TJSTestInterfaceIterableDoubleUnion.Create;
  128546. begin
  128547. JOBCreate([]);
  128548. end;
  128549. class function TJSTestInterfaceIterableDoubleUnion.JSClassName: UnicodeString;
  128550. begin
  128551. Result:='TestInterfaceIterableDoubleUnion';
  128552. end;
  128553. class function TJSTestInterfaceIterableDoubleUnion.Cast(const Intf: IJSObject): IJSTestInterfaceIterableDoubleUnion;
  128554. begin
  128555. Result:=TJSTestInterfaceIterableDoubleUnion.JOBCast(Intf);
  128556. end;
  128557. function TJSTestInterfaceAsyncIterableSingleOptions._GetfailToInit: Boolean;
  128558. begin
  128559. Result:=ReadJSPropertyBoolean('failToInit');
  128560. end;
  128561. procedure TJSTestInterfaceAsyncIterableSingleOptions._SetfailToInit(const aValue : Boolean);
  128562. begin
  128563. WriteJSPropertyBoolean('failToInit',aValue);
  128564. end;
  128565. class function TJSTestInterfaceAsyncIterableSingleOptions.JSClassName: UnicodeString;
  128566. begin
  128567. Result:='Object';
  128568. end;
  128569. class function TJSTestInterfaceAsyncIterableSingleOptions.Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIterableSingleOptions;
  128570. begin
  128571. Result:=TJSTestInterfaceAsyncIterableSingleOptions.JOBCast(Intf);
  128572. end;
  128573. constructor TJSTestInterfaceAsyncIterableSingle.Create(const aOptions: TJSTestInterfaceAsyncIterableSingleOptions);
  128574. begin
  128575. JOBCreate([aOptions]);
  128576. end;
  128577. constructor TJSTestInterfaceAsyncIterableSingle.Create;
  128578. begin
  128579. JOBCreate([]);
  128580. end;
  128581. class function TJSTestInterfaceAsyncIterableSingle.JSClassName: UnicodeString;
  128582. begin
  128583. Result:='TestInterfaceAsyncIterableSingle';
  128584. end;
  128585. class function TJSTestInterfaceAsyncIterableSingle.Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIterableSingle;
  128586. begin
  128587. Result:=TJSTestInterfaceAsyncIterableSingle.JOBCast(Intf);
  128588. end;
  128589. function TJSTestInterfaceAsyncIteratorOptions._Getmultiplier: Cardinal;
  128590. begin
  128591. Result:=ReadJSPropertyInt64('multiplier');
  128592. end;
  128593. function TJSTestInterfaceAsyncIteratorOptions._GetblockingPromises: TIJSPromiseDynArray;
  128594. begin
  128595. Result:=ReadJSPropertyObject('blockingPromises',TJSArray) as TIJSPromiseDynArray;
  128596. end;
  128597. function TJSTestInterfaceAsyncIteratorOptions._GetfailNextAfter: Cardinal;
  128598. begin
  128599. Result:=ReadJSPropertyInt64('failNextAfter');
  128600. end;
  128601. function TJSTestInterfaceAsyncIteratorOptions._GetthrowFromNext: Boolean;
  128602. begin
  128603. Result:=ReadJSPropertyBoolean('throwFromNext');
  128604. end;
  128605. function TJSTestInterfaceAsyncIteratorOptions._GetthrowFromReturn: TTestThrowingCallback;
  128606. begin
  128607. Result:=(TTestThrowingCallback(ReadJSPropertyMethod('throwFromReturn')));
  128608. end;
  128609. procedure TJSTestInterfaceAsyncIteratorOptions._Setmultiplier(const aValue : Cardinal);
  128610. begin
  128611. WriteJSPropertyDouble('multiplier',aValue);
  128612. end;
  128613. procedure TJSTestInterfaceAsyncIteratorOptions._SetblockingPromises(const aValue : TIJSPromiseDynArray);
  128614. begin
  128615. WriteJSPropertyObject('blockingPromises',aValue);
  128616. end;
  128617. procedure TJSTestInterfaceAsyncIteratorOptions._SetfailNextAfter(const aValue : Cardinal);
  128618. begin
  128619. WriteJSPropertyDouble('failNextAfter',aValue);
  128620. end;
  128621. procedure TJSTestInterfaceAsyncIteratorOptions._SetthrowFromNext(const aValue : Boolean);
  128622. begin
  128623. WriteJSPropertyBoolean('throwFromNext',aValue);
  128624. end;
  128625. procedure TJSTestInterfaceAsyncIteratorOptions._SetthrowFromReturn(const aValue : TTestThrowingCallback);
  128626. begin
  128627. WriteJSPropertyMethod('throwFromReturn',TMethod(aValue));
  128628. end;
  128629. class function TJSTestInterfaceAsyncIteratorOptions.JSClassName: UnicodeString;
  128630. begin
  128631. Result:='Object';
  128632. end;
  128633. class function TJSTestInterfaceAsyncIteratorOptions.Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIteratorOptions;
  128634. begin
  128635. Result:=TJSTestInterfaceAsyncIteratorOptions.JOBCast(Intf);
  128636. end;
  128637. function TJSTestInterfaceAsyncIterableSingleWithArgs._GetreturnCallCount: LongInt;
  128638. begin
  128639. Result:=ReadJSPropertyLongInt('returnCallCount');
  128640. end;
  128641. function TJSTestInterfaceAsyncIterableSingleWithArgs._GetreturnLastCalledWith: Variant;
  128642. begin
  128643. Result:=ReadJSPropertyVariant('returnLastCalledWith');
  128644. end;
  128645. constructor TJSTestInterfaceAsyncIterableSingleWithArgs.Create;
  128646. begin
  128647. JOBCreate([]);
  128648. end;
  128649. class function TJSTestInterfaceAsyncIterableSingleWithArgs.JSClassName: UnicodeString;
  128650. begin
  128651. Result:='TestInterfaceAsyncIterableSingleWithArgs';
  128652. end;
  128653. class function TJSTestInterfaceAsyncIterableSingleWithArgs.Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIterableSingleWithArgs;
  128654. begin
  128655. Result:=TJSTestInterfaceAsyncIterableSingleWithArgs.JOBCast(Intf);
  128656. end;
  128657. constructor TJSTestInterfaceAsyncIterableDouble.Create;
  128658. begin
  128659. JOBCreate([]);
  128660. end;
  128661. class function TJSTestInterfaceAsyncIterableDouble.JSClassName: UnicodeString;
  128662. begin
  128663. Result:='TestInterfaceAsyncIterableDouble';
  128664. end;
  128665. class function TJSTestInterfaceAsyncIterableDouble.Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIterableDouble;
  128666. begin
  128667. Result:=TJSTestInterfaceAsyncIterableDouble.JOBCast(Intf);
  128668. end;
  128669. constructor TJSTestInterfaceAsyncIterableDoubleUnion.Create;
  128670. begin
  128671. JOBCreate([]);
  128672. end;
  128673. class function TJSTestInterfaceAsyncIterableDoubleUnion.JSClassName: UnicodeString;
  128674. begin
  128675. Result:='TestInterfaceAsyncIterableDoubleUnion';
  128676. end;
  128677. class function TJSTestInterfaceAsyncIterableDoubleUnion.Cast(const Intf: IJSObject): IJSTestInterfaceAsyncIterableDoubleUnion;
  128678. begin
  128679. Result:=TJSTestInterfaceAsyncIterableDoubleUnion.JOBCast(Intf);
  128680. end;
  128681. function TJSObservableArrayCallbacks._GetsetObjectCallback: TSetDeleteObjectCallback;
  128682. begin
  128683. Result:=(TSetDeleteObjectCallback(ReadJSPropertyMethod('setObjectCallback')));
  128684. end;
  128685. function TJSObservableArrayCallbacks._GetdeleteObjectCallback: TSetDeleteObjectCallback;
  128686. begin
  128687. Result:=(TSetDeleteObjectCallback(ReadJSPropertyMethod('deleteObjectCallback')));
  128688. end;
  128689. function TJSObservableArrayCallbacks._GetsetBooleanCallback: TSetDeleteBooleanCallback;
  128690. begin
  128691. Result:=(TSetDeleteBooleanCallback(ReadJSPropertyMethod('setBooleanCallback')));
  128692. end;
  128693. function TJSObservableArrayCallbacks._GetdeleteBooleanCallback: TSetDeleteBooleanCallback;
  128694. begin
  128695. Result:=(TSetDeleteBooleanCallback(ReadJSPropertyMethod('deleteBooleanCallback')));
  128696. end;
  128697. function TJSObservableArrayCallbacks._GetsetInterfaceCallback: TSetDeleteInterfaceCallback;
  128698. begin
  128699. Result:=(TSetDeleteInterfaceCallback(ReadJSPropertyMethod('setInterfaceCallback')));
  128700. end;
  128701. function TJSObservableArrayCallbacks._GetdeleteInterfaceCallback: TSetDeleteInterfaceCallback;
  128702. begin
  128703. Result:=(TSetDeleteInterfaceCallback(ReadJSPropertyMethod('deleteInterfaceCallback')));
  128704. end;
  128705. procedure TJSObservableArrayCallbacks._SetsetObjectCallback(const aValue : TSetDeleteObjectCallback);
  128706. begin
  128707. WriteJSPropertyMethod('setObjectCallback',TMethod(aValue));
  128708. end;
  128709. procedure TJSObservableArrayCallbacks._SetdeleteObjectCallback(const aValue : TSetDeleteObjectCallback);
  128710. begin
  128711. WriteJSPropertyMethod('deleteObjectCallback',TMethod(aValue));
  128712. end;
  128713. procedure TJSObservableArrayCallbacks._SetsetBooleanCallback(const aValue : TSetDeleteBooleanCallback);
  128714. begin
  128715. WriteJSPropertyMethod('setBooleanCallback',TMethod(aValue));
  128716. end;
  128717. procedure TJSObservableArrayCallbacks._SetdeleteBooleanCallback(const aValue : TSetDeleteBooleanCallback);
  128718. begin
  128719. WriteJSPropertyMethod('deleteBooleanCallback',TMethod(aValue));
  128720. end;
  128721. procedure TJSObservableArrayCallbacks._SetsetInterfaceCallback(const aValue : TSetDeleteInterfaceCallback);
  128722. begin
  128723. WriteJSPropertyMethod('setInterfaceCallback',TMethod(aValue));
  128724. end;
  128725. procedure TJSObservableArrayCallbacks._SetdeleteInterfaceCallback(const aValue : TSetDeleteInterfaceCallback);
  128726. begin
  128727. WriteJSPropertyMethod('deleteInterfaceCallback',TMethod(aValue));
  128728. end;
  128729. class function TJSObservableArrayCallbacks.JSClassName: UnicodeString;
  128730. begin
  128731. Result:='Object';
  128732. end;
  128733. class function TJSObservableArrayCallbacks.Cast(const Intf: IJSObject): IJSObservableArrayCallbacks;
  128734. begin
  128735. Result:=TJSObservableArrayCallbacks.JOBCast(Intf);
  128736. end;
  128737. function TJSTestInterfaceObservableArray._GetobservableArrayBoolean: TBooleanDynArray;
  128738. begin
  128739. Result:=ReadJSPropertyObject('observableArrayBoolean',TJSArray) as TBooleanDynArray;
  128740. end;
  128741. function TJSTestInterfaceObservableArray._GetobservableArrayObject: TIJSObjectDynArray;
  128742. begin
  128743. Result:=ReadJSPropertyObject('observableArrayObject',TJSArray) as TIJSObjectDynArray;
  128744. end;
  128745. function TJSTestInterfaceObservableArray._GetobservableArrayInterface: TJSTestInterfaceObservableArrayDynArray;
  128746. begin
  128747. Result:=ReadJSPropertyObject('observableArrayInterface',TJSArray) as TJSTestInterfaceObservableArrayDynArray;
  128748. end;
  128749. procedure TJSTestInterfaceObservableArray._SetobservableArrayBoolean(const aValue : TBooleanDynArray);
  128750. begin
  128751. WriteJSPropertyObject('observableArrayBoolean',aValue);
  128752. end;
  128753. procedure TJSTestInterfaceObservableArray._SetobservableArrayObject(const aValue : TIJSObjectDynArray);
  128754. begin
  128755. WriteJSPropertyObject('observableArrayObject',aValue);
  128756. end;
  128757. procedure TJSTestInterfaceObservableArray._SetobservableArrayInterface(const aValue : TJSTestInterfaceObservableArrayDynArray);
  128758. begin
  128759. WriteJSPropertyObject('observableArrayInterface',aValue);
  128760. end;
  128761. constructor TJSTestInterfaceObservableArray.Create(const aCallbacks: TJSObservableArrayCallbacks);
  128762. begin
  128763. JOBCreate([aCallbacks]);
  128764. end;
  128765. constructor TJSTestInterfaceObservableArray.Create;
  128766. begin
  128767. JOBCreate([]);
  128768. end;
  128769. function TJSTestInterfaceObservableArray.booleanElementAtInternal(aIndex: Cardinal): Boolean;
  128770. begin
  128771. Result:=InvokeJSBooleanResult('booleanElementAtInternal',[aIndex]);
  128772. end;
  128773. function TJSTestInterfaceObservableArray.interfaceElementAtInternal(aIndex: Cardinal): IJSTestInterfaceObservableArray;
  128774. begin
  128775. Result:=InvokeJSObjectResult('interfaceElementAtInternal',[aIndex],TJSTestInterfaceObservableArray) as IJSTestInterfaceObservableArray;
  128776. end;
  128777. function TJSTestInterfaceObservableArray.objectElementAtInternal(aIndex: Cardinal): IJSObject;
  128778. begin
  128779. Result:=InvokeJSObjectResult('objectElementAtInternal',[aIndex],TJSObject) as IJSObject;
  128780. end;
  128781. procedure TJSTestInterfaceObservableArray.booleanReplaceElementAtInternal(aIndex: Cardinal; aValue: Boolean);
  128782. begin
  128783. InvokeJSNoResult('booleanReplaceElementAtInternal',[aIndex,aValue]);
  128784. end;
  128785. procedure TJSTestInterfaceObservableArray.interfaceReplaceElementAtInternal(aIndex: Cardinal; aValue: IJSTestInterfaceObservableArray);
  128786. begin
  128787. InvokeJSNoResult('interfaceReplaceElementAtInternal',[aIndex,aValue]);
  128788. end;
  128789. procedure TJSTestInterfaceObservableArray.objectReplaceElementAtInternal(aIndex: Cardinal; aValue: IJSObject);
  128790. begin
  128791. InvokeJSNoResult('objectReplaceElementAtInternal',[aIndex,aValue]);
  128792. end;
  128793. procedure TJSTestInterfaceObservableArray.booleanAppendElementInternal(aValue: Boolean);
  128794. begin
  128795. InvokeJSNoResult('booleanAppendElementInternal',[aValue]);
  128796. end;
  128797. procedure TJSTestInterfaceObservableArray.interfaceAppendElementInternal(aValue: IJSTestInterfaceObservableArray);
  128798. begin
  128799. InvokeJSNoResult('interfaceAppendElementInternal',[aValue]);
  128800. end;
  128801. procedure TJSTestInterfaceObservableArray.objectAppendElementInternal(aValue: IJSObject);
  128802. begin
  128803. InvokeJSNoResult('objectAppendElementInternal',[aValue]);
  128804. end;
  128805. procedure TJSTestInterfaceObservableArray.booleanRemoveLastElementInternal;
  128806. begin
  128807. InvokeJSNoResult('booleanRemoveLastElementInternal',[]);
  128808. end;
  128809. procedure TJSTestInterfaceObservableArray.interfaceRemoveLastElementInternal;
  128810. begin
  128811. InvokeJSNoResult('interfaceRemoveLastElementInternal',[]);
  128812. end;
  128813. procedure TJSTestInterfaceObservableArray.objectRemoveLastElementInternal;
  128814. begin
  128815. InvokeJSNoResult('objectRemoveLastElementInternal',[]);
  128816. end;
  128817. function TJSTestInterfaceObservableArray.booleanLengthInternal: Cardinal;
  128818. begin
  128819. Result:=InvokeJSLongIntResult('booleanLengthInternal',[]);
  128820. end;
  128821. function TJSTestInterfaceObservableArray.interfaceLengthInternal: Cardinal;
  128822. begin
  128823. Result:=InvokeJSLongIntResult('interfaceLengthInternal',[]);
  128824. end;
  128825. function TJSTestInterfaceObservableArray.objectLengthInternal: Cardinal;
  128826. begin
  128827. Result:=InvokeJSLongIntResult('objectLengthInternal',[]);
  128828. end;
  128829. class function TJSTestInterfaceObservableArray.JSClassName: UnicodeString;
  128830. begin
  128831. Result:='TestInterfaceObservableArray';
  128832. end;
  128833. class function TJSTestInterfaceObservableArray.Cast(const Intf: IJSObject): IJSTestInterfaceObservableArray;
  128834. begin
  128835. Result:=TJSTestInterfaceObservableArray.JOBCast(Intf);
  128836. end;
  128837. function TJSTestUtils.gc: IJSPromise; // Promise<undefined>
  128838. begin
  128839. Result:=InvokeJSObjectResult('gc',[],TJSPromise) as IJSPromise;
  128840. end;
  128841. class function TJSTestUtils.JSClassName: UnicodeString;
  128842. begin
  128843. Result:='TestUtils';
  128844. end;
  128845. class function TJSTestUtils.Cast(const Intf: IJSObject): IJSTestUtils;
  128846. begin
  128847. Result:=TJSTestUtils.JOBCast(Intf);
  128848. end;
  128849. function TJSText._GetwholeText: UnicodeString;
  128850. begin
  128851. Result:=ReadJSPropertyUnicodeString('wholeText');
  128852. end;
  128853. function TJSText._GetassignedSlot: IJSHTMLSlotElement;
  128854. begin
  128855. Result:=ReadJSPropertyObject('assignedSlot',TJSHTMLSlotElement) as IJSHTMLSlotElement;
  128856. end;
  128857. constructor TJSText.Create(const aData: UnicodeString);
  128858. begin
  128859. JOBCreate([aData]);
  128860. end;
  128861. constructor TJSText.Create;
  128862. begin
  128863. JOBCreate([]);
  128864. end;
  128865. function TJSText.splitText(aOffset: Cardinal): IJSText;
  128866. begin
  128867. Result:=InvokeJSObjectResult('splitText',[aOffset],TJSText) as IJSText;
  128868. end;
  128869. function TJSText.getBoxQuads(const aOptions: TJSBoxQuadOptions): TJSDOMQuadDynArray;
  128870. begin
  128871. Result:=InvokeJSObjectResult('getBoxQuads',[aOptions],TJSArray) as TJSDOMQuadDynArray;
  128872. end;
  128873. function TJSText.getBoxQuads: TJSDOMQuadDynArray;
  128874. begin
  128875. Result:=InvokeJSObjectResult('getBoxQuads',[],TJSArray) as TJSDOMQuadDynArray;
  128876. end;
  128877. function TJSText.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  128878. begin
  128879. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  128880. end;
  128881. function TJSText.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  128882. begin
  128883. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  128884. end;
  128885. function TJSText.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  128886. begin
  128887. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  128888. end;
  128889. function TJSText.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSText): IJSDOMQuad;
  128890. begin
  128891. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  128892. end;
  128893. function TJSText.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSElement): IJSDOMQuad;
  128894. begin
  128895. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  128896. end;
  128897. function TJSText.convertQuadFromNode(aQuad: IJSDOMQuad; aFrom: IJSDocument): IJSDOMQuad;
  128898. begin
  128899. Result:=InvokeJSObjectResult('convertQuadFromNode',[aQuad,aFrom],TJSDOMQuad) as IJSDOMQuad;
  128900. end;
  128901. function TJSText.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  128902. begin
  128903. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  128904. end;
  128905. function TJSText.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  128906. begin
  128907. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  128908. end;
  128909. function TJSText.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMQuad;
  128910. begin
  128911. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom,aOptions],TJSDOMQuad) as IJSDOMQuad;
  128912. end;
  128913. function TJSText.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSText): IJSDOMQuad;
  128914. begin
  128915. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  128916. end;
  128917. function TJSText.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSElement): IJSDOMQuad;
  128918. begin
  128919. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  128920. end;
  128921. function TJSText.convertRectFromNode(aRect: IJSDOMRectReadOnly; aFrom: IJSDocument): IJSDOMQuad;
  128922. begin
  128923. Result:=InvokeJSObjectResult('convertRectFromNode',[aRect,aFrom],TJSDOMQuad) as IJSDOMQuad;
  128924. end;
  128925. function TJSText.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  128926. begin
  128927. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  128928. end;
  128929. function TJSText.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  128930. begin
  128931. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  128932. end;
  128933. function TJSText.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText; const aOptions: TJSConvertCoordinateOptions): IJSDOMPoint;
  128934. begin
  128935. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom,aOptions],TJSDOMPoint) as IJSDOMPoint;
  128936. end;
  128937. function TJSText.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSText): IJSDOMPoint;
  128938. begin
  128939. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  128940. end;
  128941. function TJSText.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSElement): IJSDOMPoint;
  128942. begin
  128943. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  128944. end;
  128945. function TJSText.convertPointFromNode(const aPoint: TJSDOMPointInit; aFrom: IJSDocument): IJSDOMPoint;
  128946. begin
  128947. Result:=InvokeJSObjectResult('convertPointFromNode',[aPoint,aFrom],TJSDOMPoint) as IJSDOMPoint;
  128948. end;
  128949. class function TJSText.JSClassName: UnicodeString;
  128950. begin
  128951. Result:='Text';
  128952. end;
  128953. class function TJSText.Cast(const Intf: IJSObject): IJSText;
  128954. begin
  128955. Result:=TJSText.JOBCast(Intf);
  128956. end;
  128957. function TJSTextDecoderCommon._Getencoding: UnicodeString;
  128958. begin
  128959. Result:=ReadJSPropertyUnicodeString('encoding');
  128960. end;
  128961. function TJSTextDecoderCommon._Getfatal: Boolean;
  128962. begin
  128963. Result:=ReadJSPropertyBoolean('fatal');
  128964. end;
  128965. function TJSTextDecoderCommon._GetignoreBOM: Boolean;
  128966. begin
  128967. Result:=ReadJSPropertyBoolean('ignoreBOM');
  128968. end;
  128969. class function TJSTextDecoderCommon.JSClassName: UnicodeString;
  128970. begin
  128971. Result:='TextDecoderCommon';
  128972. end;
  128973. class function TJSTextDecoderCommon.Cast(const Intf: IJSObject): IJSTextDecoderCommon;
  128974. begin
  128975. Result:=TJSTextDecoderCommon.JOBCast(Intf);
  128976. end;
  128977. constructor TJSTextDecoder.Create(const aLabel_: UnicodeString; const aOptions: TJSTextDecoderOptions);
  128978. begin
  128979. JOBCreate([aLabel_,aOptions]);
  128980. end;
  128981. constructor TJSTextDecoder.Create;
  128982. begin
  128983. JOBCreate([]);
  128984. end;
  128985. constructor TJSTextDecoder.Create(const aLabel_: UnicodeString);
  128986. begin
  128987. JOBCreate([aLabel_]);
  128988. end;
  128989. function TJSTextDecoder.decode(aInput: IJSBufferSource; const aOptions: TJSTextDecodeOptions): UnicodeString;
  128990. begin
  128991. Result:=InvokeJSUnicodeStringResult('decode',[aInput,aOptions]);
  128992. end;
  128993. function TJSTextDecoder.decode: UnicodeString;
  128994. begin
  128995. Result:=InvokeJSUnicodeStringResult('decode',[]);
  128996. end;
  128997. function TJSTextDecoder.decode(aInput: IJSBufferSource): UnicodeString;
  128998. begin
  128999. Result:=InvokeJSUnicodeStringResult('decode',[aInput]);
  129000. end;
  129001. class function TJSTextDecoder.JSClassName: UnicodeString;
  129002. begin
  129003. Result:='TextDecoder';
  129004. end;
  129005. class function TJSTextDecoder.Cast(const Intf: IJSObject): IJSTextDecoder;
  129006. begin
  129007. Result:=TJSTextDecoder.JOBCast(Intf);
  129008. end;
  129009. function TJSTextDecoderOptions._Getfatal: Boolean;
  129010. begin
  129011. Result:=ReadJSPropertyBoolean('fatal');
  129012. end;
  129013. function TJSTextDecoderOptions._GetignoreBOM: Boolean;
  129014. begin
  129015. Result:=ReadJSPropertyBoolean('ignoreBOM');
  129016. end;
  129017. procedure TJSTextDecoderOptions._Setfatal(const aValue : Boolean);
  129018. begin
  129019. WriteJSPropertyBoolean('fatal',aValue);
  129020. end;
  129021. procedure TJSTextDecoderOptions._SetignoreBOM(const aValue : Boolean);
  129022. begin
  129023. WriteJSPropertyBoolean('ignoreBOM',aValue);
  129024. end;
  129025. class function TJSTextDecoderOptions.JSClassName: UnicodeString;
  129026. begin
  129027. Result:='Object';
  129028. end;
  129029. class function TJSTextDecoderOptions.Cast(const Intf: IJSObject): IJSTextDecoderOptions;
  129030. begin
  129031. Result:=TJSTextDecoderOptions.JOBCast(Intf);
  129032. end;
  129033. function TJSTextDecodeOptions._Getstream: Boolean;
  129034. begin
  129035. Result:=ReadJSPropertyBoolean('stream');
  129036. end;
  129037. procedure TJSTextDecodeOptions._Setstream(const aValue : Boolean);
  129038. begin
  129039. WriteJSPropertyBoolean('stream',aValue);
  129040. end;
  129041. class function TJSTextDecodeOptions.JSClassName: UnicodeString;
  129042. begin
  129043. Result:='Object';
  129044. end;
  129045. class function TJSTextDecodeOptions.Cast(const Intf: IJSObject): IJSTextDecodeOptions;
  129046. begin
  129047. Result:=TJSTextDecodeOptions.JOBCast(Intf);
  129048. end;
  129049. function TJSTextDecoderStream._Getencoding: UnicodeString;
  129050. begin
  129051. Result:=ReadJSPropertyUnicodeString('encoding');
  129052. end;
  129053. function TJSTextDecoderStream._Getfatal: Boolean;
  129054. begin
  129055. Result:=ReadJSPropertyBoolean('fatal');
  129056. end;
  129057. function TJSTextDecoderStream._GetignoreBOM: Boolean;
  129058. begin
  129059. Result:=ReadJSPropertyBoolean('ignoreBOM');
  129060. end;
  129061. function TJSTextDecoderStream._Getreadable: IJSReadableStream;
  129062. begin
  129063. Result:=ReadJSPropertyObject('readable',TJSReadableStream) as IJSReadableStream;
  129064. end;
  129065. function TJSTextDecoderStream._Getwritable: IJSWritableStream;
  129066. begin
  129067. Result:=ReadJSPropertyObject('writable',TJSWritableStream) as IJSWritableStream;
  129068. end;
  129069. constructor TJSTextDecoderStream.Create(const aLabel_: UnicodeString; const aOptions: TJSTextDecoderOptions);
  129070. begin
  129071. JOBCreate([aLabel_,aOptions]);
  129072. end;
  129073. constructor TJSTextDecoderStream.Create;
  129074. begin
  129075. JOBCreate([]);
  129076. end;
  129077. constructor TJSTextDecoderStream.Create(const aLabel_: UnicodeString);
  129078. begin
  129079. JOBCreate([aLabel_]);
  129080. end;
  129081. class function TJSTextDecoderStream.JSClassName: UnicodeString;
  129082. begin
  129083. Result:='TextDecoderStream';
  129084. end;
  129085. class function TJSTextDecoderStream.Cast(const Intf: IJSObject): IJSTextDecoderStream;
  129086. begin
  129087. Result:=TJSTextDecoderStream.JOBCast(Intf);
  129088. end;
  129089. function TJSTextEncoderCommon._Getencoding: UnicodeString;
  129090. begin
  129091. Result:=ReadJSPropertyUnicodeString('encoding');
  129092. end;
  129093. class function TJSTextEncoderCommon.JSClassName: UnicodeString;
  129094. begin
  129095. Result:='TextEncoderCommon';
  129096. end;
  129097. class function TJSTextEncoderCommon.Cast(const Intf: IJSObject): IJSTextEncoderCommon;
  129098. begin
  129099. Result:=TJSTextEncoderCommon.JOBCast(Intf);
  129100. end;
  129101. function TJSTextEncoderEncodeIntoResult._Getread: QWord;
  129102. begin
  129103. Result:=ReadJSPropertyInt64('read');
  129104. end;
  129105. function TJSTextEncoderEncodeIntoResult._Getwritten: QWord;
  129106. begin
  129107. Result:=ReadJSPropertyInt64('written');
  129108. end;
  129109. procedure TJSTextEncoderEncodeIntoResult._Setread(const aValue : QWord);
  129110. begin
  129111. WriteJSPropertyDouble('read',aValue);
  129112. end;
  129113. procedure TJSTextEncoderEncodeIntoResult._Setwritten(const aValue : QWord);
  129114. begin
  129115. WriteJSPropertyDouble('written',aValue);
  129116. end;
  129117. class function TJSTextEncoderEncodeIntoResult.JSClassName: UnicodeString;
  129118. begin
  129119. Result:='Object';
  129120. end;
  129121. class function TJSTextEncoderEncodeIntoResult.Cast(const Intf: IJSObject): IJSTextEncoderEncodeIntoResult;
  129122. begin
  129123. Result:=TJSTextEncoderEncodeIntoResult.JOBCast(Intf);
  129124. end;
  129125. constructor TJSTextEncoder.Create;
  129126. begin
  129127. JOBCreate([]);
  129128. end;
  129129. function TJSTextEncoder.encode(const aInput: UTF8String): IJSUint8Array;
  129130. begin
  129131. Result:=InvokeJSObjectResult('encode',[aInput],TJSArray) as IJSUint8Array;
  129132. end;
  129133. function TJSTextEncoder.encode: IJSUint8Array;
  129134. begin
  129135. Result:=InvokeJSObjectResult('encode',[],TJSArray) as IJSUint8Array;
  129136. end;
  129137. function TJSTextEncoder.encodeInto(aSource: IJSString; aDestination: IJSUint8Array): TJSTextEncoderEncodeIntoResult;
  129138. begin
  129139. Result:=InvokeJSObjectResult('encodeInto',[aSource,aDestination],TJSTextEncoderEncodeIntoResult) as TJSTextEncoderEncodeIntoResult;
  129140. end;
  129141. class function TJSTextEncoder.JSClassName: UnicodeString;
  129142. begin
  129143. Result:='TextEncoder';
  129144. end;
  129145. class function TJSTextEncoder.Cast(const Intf: IJSObject): IJSTextEncoder;
  129146. begin
  129147. Result:=TJSTextEncoder.JOBCast(Intf);
  129148. end;
  129149. function TJSTextEncoderStream._Getencoding: UnicodeString;
  129150. begin
  129151. Result:=ReadJSPropertyUnicodeString('encoding');
  129152. end;
  129153. function TJSTextEncoderStream._Getreadable: IJSReadableStream;
  129154. begin
  129155. Result:=ReadJSPropertyObject('readable',TJSReadableStream) as IJSReadableStream;
  129156. end;
  129157. function TJSTextEncoderStream._Getwritable: IJSWritableStream;
  129158. begin
  129159. Result:=ReadJSPropertyObject('writable',TJSWritableStream) as IJSWritableStream;
  129160. end;
  129161. constructor TJSTextEncoderStream.Create;
  129162. begin
  129163. JOBCreate([]);
  129164. end;
  129165. class function TJSTextEncoderStream.JSClassName: UnicodeString;
  129166. begin
  129167. Result:='TextEncoderStream';
  129168. end;
  129169. class function TJSTextEncoderStream.Cast(const Intf: IJSObject): IJSTextEncoderStream;
  129170. begin
  129171. Result:=TJSTextEncoderStream.JOBCast(Intf);
  129172. end;
  129173. function TJSTextTrack._Getkind: TTextTrackKind;
  129174. begin
  129175. Result:=ReadJSPropertyUnicodeString('kind');
  129176. end;
  129177. function TJSTextTrack._Getlabel_: UnicodeString;
  129178. begin
  129179. Result:=ReadJSPropertyUnicodeString('label');
  129180. end;
  129181. function TJSTextTrack._Getlanguage: UnicodeString;
  129182. begin
  129183. Result:=ReadJSPropertyUnicodeString('language');
  129184. end;
  129185. function TJSTextTrack._Getid: UnicodeString;
  129186. begin
  129187. Result:=ReadJSPropertyUnicodeString('id');
  129188. end;
  129189. function TJSTextTrack._GetinBandMetadataTrackDispatchType: UnicodeString;
  129190. begin
  129191. Result:=ReadJSPropertyUnicodeString('inBandMetadataTrackDispatchType');
  129192. end;
  129193. function TJSTextTrack._Getmode: TTextTrackMode;
  129194. begin
  129195. Result:=ReadJSPropertyUnicodeString('mode');
  129196. end;
  129197. function TJSTextTrack._Getcues: IJSTextTrackCueList;
  129198. begin
  129199. Result:=ReadJSPropertyObject('cues',TJSTextTrackCueList) as IJSTextTrackCueList;
  129200. end;
  129201. function TJSTextTrack._GetactiveCues: IJSTextTrackCueList;
  129202. begin
  129203. Result:=ReadJSPropertyObject('activeCues',TJSTextTrackCueList) as IJSTextTrackCueList;
  129204. end;
  129205. function TJSTextTrack._Getoncuechange: TEventHandler;
  129206. begin
  129207. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncuechange')));
  129208. end;
  129209. procedure TJSTextTrack._Setmode(const aValue : TTextTrackMode);
  129210. begin
  129211. WriteJSPropertyUnicodeString('mode',aValue);
  129212. end;
  129213. procedure TJSTextTrack._Setoncuechange(const aValue : TEventHandler);
  129214. begin
  129215. WriteJSPropertyMethod('oncuechange',TMethod(aValue));
  129216. end;
  129217. procedure TJSTextTrack.addCue(aCue: IJSVTTCue);
  129218. begin
  129219. InvokeJSNoResult('addCue',[aCue]);
  129220. end;
  129221. procedure TJSTextTrack.removeCue(aCue: IJSVTTCue);
  129222. begin
  129223. InvokeJSNoResult('removeCue',[aCue]);
  129224. end;
  129225. class function TJSTextTrack.JSClassName: UnicodeString;
  129226. begin
  129227. Result:='TextTrack';
  129228. end;
  129229. class function TJSTextTrack.Cast(const Intf: IJSObject): IJSTextTrack;
  129230. begin
  129231. Result:=TJSTextTrack.JOBCast(Intf);
  129232. end;
  129233. function TJSTextTrackCue._Gettrack: IJSTextTrack;
  129234. begin
  129235. Result:=ReadJSPropertyObject('track',TJSTextTrack) as IJSTextTrack;
  129236. end;
  129237. function TJSTextTrackCue._Getid: UnicodeString;
  129238. begin
  129239. Result:=ReadJSPropertyUnicodeString('id');
  129240. end;
  129241. function TJSTextTrackCue._GetstartTime: Double;
  129242. begin
  129243. Result:=ReadJSPropertyDouble('startTime');
  129244. end;
  129245. function TJSTextTrackCue._GetendTime: Double;
  129246. begin
  129247. Result:=ReadJSPropertyDouble('endTime');
  129248. end;
  129249. function TJSTextTrackCue._GetpauseOnExit: Boolean;
  129250. begin
  129251. Result:=ReadJSPropertyBoolean('pauseOnExit');
  129252. end;
  129253. function TJSTextTrackCue._Getonenter: TEventHandler;
  129254. begin
  129255. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onenter')));
  129256. end;
  129257. function TJSTextTrackCue._Getonexit: TEventHandler;
  129258. begin
  129259. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onexit')));
  129260. end;
  129261. procedure TJSTextTrackCue._Setid(const aValue : UnicodeString);
  129262. begin
  129263. WriteJSPropertyUnicodeString('id',aValue);
  129264. end;
  129265. procedure TJSTextTrackCue._SetstartTime(const aValue : Double);
  129266. begin
  129267. WriteJSPropertyDouble('startTime',aValue);
  129268. end;
  129269. procedure TJSTextTrackCue._SetendTime(const aValue : Double);
  129270. begin
  129271. WriteJSPropertyDouble('endTime',aValue);
  129272. end;
  129273. procedure TJSTextTrackCue._SetpauseOnExit(const aValue : Boolean);
  129274. begin
  129275. WriteJSPropertyBoolean('pauseOnExit',aValue);
  129276. end;
  129277. procedure TJSTextTrackCue._Setonenter(const aValue : TEventHandler);
  129278. begin
  129279. WriteJSPropertyMethod('onenter',TMethod(aValue));
  129280. end;
  129281. procedure TJSTextTrackCue._Setonexit(const aValue : TEventHandler);
  129282. begin
  129283. WriteJSPropertyMethod('onexit',TMethod(aValue));
  129284. end;
  129285. class function TJSTextTrackCue.JSClassName: UnicodeString;
  129286. begin
  129287. Result:='TextTrackCue';
  129288. end;
  129289. class function TJSTextTrackCue.Cast(const Intf: IJSObject): IJSTextTrackCue;
  129290. begin
  129291. Result:=TJSTextTrackCue.JOBCast(Intf);
  129292. end;
  129293. function TJSTextTrackCueList._Getlength_: Cardinal;
  129294. begin
  129295. Result:=ReadJSPropertyInt64('length');
  129296. end;
  129297. function TJSTextTrackCueList.GetDefault(aIndex: Cardinal): IJSVTTCue;
  129298. begin
  129299. Result:=InvokeJSObjectResult('',[aIndex],TJSVTTCue) as IJSVTTCue;
  129300. end;
  129301. function TJSTextTrackCueList.getCueById(const aId: UnicodeString): IJSVTTCue;
  129302. begin
  129303. Result:=InvokeJSObjectResult('getCueById',[aId],TJSVTTCue) as IJSVTTCue;
  129304. end;
  129305. class function TJSTextTrackCueList.JSClassName: UnicodeString;
  129306. begin
  129307. Result:='TextTrackCueList';
  129308. end;
  129309. class function TJSTextTrackCueList.Cast(const Intf: IJSObject): IJSTextTrackCueList;
  129310. begin
  129311. Result:=TJSTextTrackCueList.JOBCast(Intf);
  129312. end;
  129313. function TJSTextTrackList._Getlength_: Cardinal;
  129314. begin
  129315. Result:=ReadJSPropertyInt64('length');
  129316. end;
  129317. function TJSTextTrackList._Getonchange: TEventHandler;
  129318. begin
  129319. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  129320. end;
  129321. function TJSTextTrackList._Getonaddtrack: TEventHandler;
  129322. begin
  129323. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onaddtrack')));
  129324. end;
  129325. function TJSTextTrackList._Getonremovetrack: TEventHandler;
  129326. begin
  129327. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onremovetrack')));
  129328. end;
  129329. procedure TJSTextTrackList._Setonchange(const aValue : TEventHandler);
  129330. begin
  129331. WriteJSPropertyMethod('onchange',TMethod(aValue));
  129332. end;
  129333. procedure TJSTextTrackList._Setonaddtrack(const aValue : TEventHandler);
  129334. begin
  129335. WriteJSPropertyMethod('onaddtrack',TMethod(aValue));
  129336. end;
  129337. procedure TJSTextTrackList._Setonremovetrack(const aValue : TEventHandler);
  129338. begin
  129339. WriteJSPropertyMethod('onremovetrack',TMethod(aValue));
  129340. end;
  129341. function TJSTextTrackList.GetDefault(aIndex: Cardinal): IJSTextTrack;
  129342. begin
  129343. Result:=InvokeJSObjectResult('',[aIndex],TJSTextTrack) as IJSTextTrack;
  129344. end;
  129345. function TJSTextTrackList.getTrackById(const aId: UnicodeString): IJSTextTrack;
  129346. begin
  129347. Result:=InvokeJSObjectResult('getTrackById',[aId],TJSTextTrack) as IJSTextTrack;
  129348. end;
  129349. class function TJSTextTrackList.JSClassName: UnicodeString;
  129350. begin
  129351. Result:='TextTrackList';
  129352. end;
  129353. class function TJSTextTrackList.Cast(const Intf: IJSObject): IJSTextTrackList;
  129354. begin
  129355. Result:=TJSTextTrackList.JOBCast(Intf);
  129356. end;
  129357. function TJSTimeEvent._Getdetail: LongInt;
  129358. begin
  129359. Result:=ReadJSPropertyLongInt('detail');
  129360. end;
  129361. function TJSTimeEvent._Getview: IJSWindowProxy;
  129362. begin
  129363. Result:=ReadJSPropertyObject('view',TJSWindowProxy) as IJSWindowProxy;
  129364. end;
  129365. procedure TJSTimeEvent.initTimeEvent(const aAType: UnicodeString; aAView: IJSWindow; aADetail: LongInt);
  129366. begin
  129367. InvokeJSNoResult('initTimeEvent',[aAType,aAView,aADetail]);
  129368. end;
  129369. procedure TJSTimeEvent.initTimeEvent(const aAType: UnicodeString);
  129370. begin
  129371. InvokeJSNoResult('initTimeEvent',[aAType]);
  129372. end;
  129373. procedure TJSTimeEvent.initTimeEvent(const aAType: UnicodeString; aAView: IJSWindow);
  129374. begin
  129375. InvokeJSNoResult('initTimeEvent',[aAType,aAView]);
  129376. end;
  129377. class function TJSTimeEvent.JSClassName: UnicodeString;
  129378. begin
  129379. Result:='TimeEvent';
  129380. end;
  129381. class function TJSTimeEvent.Cast(const Intf: IJSObject): IJSTimeEvent;
  129382. begin
  129383. Result:=TJSTimeEvent.JOBCast(Intf);
  129384. end;
  129385. function TJSTimeRanges._Getlength_: Cardinal;
  129386. begin
  129387. Result:=ReadJSPropertyInt64('length');
  129388. end;
  129389. function TJSTimeRanges.start(aIndex: Cardinal): Double;
  129390. begin
  129391. Result:=InvokeJSDoubleResult('start',[aIndex]);
  129392. end;
  129393. function TJSTimeRanges.end_(aIndex: Cardinal): Double;
  129394. begin
  129395. Result:=InvokeJSDoubleResult('end',[aIndex]);
  129396. end;
  129397. class function TJSTimeRanges.JSClassName: UnicodeString;
  129398. begin
  129399. Result:='TimeRanges';
  129400. end;
  129401. class function TJSTimeRanges.Cast(const Intf: IJSObject): IJSTimeRanges;
  129402. begin
  129403. Result:=TJSTimeRanges.JOBCast(Intf);
  129404. end;
  129405. function TJSToggleEvent._GetoldState: UnicodeString;
  129406. begin
  129407. Result:=ReadJSPropertyUnicodeString('oldState');
  129408. end;
  129409. function TJSToggleEvent._GetnewState: UnicodeString;
  129410. begin
  129411. Result:=ReadJSPropertyUnicodeString('newState');
  129412. end;
  129413. constructor TJSToggleEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSToggleEventInit);
  129414. begin
  129415. JOBCreate([aType_,aEventInitDict]);
  129416. end;
  129417. constructor TJSToggleEvent.Create(const aType_: UnicodeString);
  129418. begin
  129419. JOBCreate([aType_]);
  129420. end;
  129421. class function TJSToggleEvent.JSClassName: UnicodeString;
  129422. begin
  129423. Result:='ToggleEvent';
  129424. end;
  129425. class function TJSToggleEvent.Cast(const Intf: IJSObject): IJSToggleEvent;
  129426. begin
  129427. Result:=TJSToggleEvent.JOBCast(Intf);
  129428. end;
  129429. function TJSToggleEventInit._GetoldState: UnicodeString;
  129430. begin
  129431. Result:=ReadJSPropertyUnicodeString('oldState');
  129432. end;
  129433. function TJSToggleEventInit._GetnewState: UnicodeString;
  129434. begin
  129435. Result:=ReadJSPropertyUnicodeString('newState');
  129436. end;
  129437. procedure TJSToggleEventInit._SetoldState(const aValue : UnicodeString);
  129438. begin
  129439. WriteJSPropertyUnicodeString('oldState',aValue);
  129440. end;
  129441. procedure TJSToggleEventInit._SetnewState(const aValue : UnicodeString);
  129442. begin
  129443. WriteJSPropertyUnicodeString('newState',aValue);
  129444. end;
  129445. class function TJSToggleEventInit.JSClassName: UnicodeString;
  129446. begin
  129447. Result:='Object';
  129448. end;
  129449. class function TJSToggleEventInit.Cast(const Intf: IJSObject): IJSToggleEventInit;
  129450. begin
  129451. Result:=TJSToggleEventInit.JOBCast(Intf);
  129452. end;
  129453. function TJSTouchInit._Getidentifier: LongInt;
  129454. begin
  129455. Result:=ReadJSPropertyLongInt('identifier');
  129456. end;
  129457. function TJSTouchInit._Gettarget: IJSEventTarget;
  129458. begin
  129459. Result:=ReadJSPropertyObject('target',TJSEventTarget) as IJSEventTarget;
  129460. end;
  129461. function TJSTouchInit._GetclientX: LongInt;
  129462. begin
  129463. Result:=ReadJSPropertyLongInt('clientX');
  129464. end;
  129465. function TJSTouchInit._GetclientY: LongInt;
  129466. begin
  129467. Result:=ReadJSPropertyLongInt('clientY');
  129468. end;
  129469. function TJSTouchInit._GetscreenX: LongInt;
  129470. begin
  129471. Result:=ReadJSPropertyLongInt('screenX');
  129472. end;
  129473. function TJSTouchInit._GetscreenY: LongInt;
  129474. begin
  129475. Result:=ReadJSPropertyLongInt('screenY');
  129476. end;
  129477. function TJSTouchInit._GetpageX: LongInt;
  129478. begin
  129479. Result:=ReadJSPropertyLongInt('pageX');
  129480. end;
  129481. function TJSTouchInit._GetpageY: LongInt;
  129482. begin
  129483. Result:=ReadJSPropertyLongInt('pageY');
  129484. end;
  129485. function TJSTouchInit._GetradiusX: Single;
  129486. begin
  129487. Result:=ReadJSPropertyDouble('radiusX');
  129488. end;
  129489. function TJSTouchInit._GetradiusY: Single;
  129490. begin
  129491. Result:=ReadJSPropertyDouble('radiusY');
  129492. end;
  129493. function TJSTouchInit._GetrotationAngle: Single;
  129494. begin
  129495. Result:=ReadJSPropertyDouble('rotationAngle');
  129496. end;
  129497. function TJSTouchInit._Getforce: Single;
  129498. begin
  129499. Result:=ReadJSPropertyDouble('force');
  129500. end;
  129501. procedure TJSTouchInit._Setidentifier(const aValue : LongInt);
  129502. begin
  129503. WriteJSPropertyLongInt('identifier',aValue);
  129504. end;
  129505. procedure TJSTouchInit._Settarget(const aValue : IJSEventTarget);
  129506. begin
  129507. WriteJSPropertyObject('target',aValue);
  129508. end;
  129509. procedure TJSTouchInit._SetclientX(const aValue : LongInt);
  129510. begin
  129511. WriteJSPropertyLongInt('clientX',aValue);
  129512. end;
  129513. procedure TJSTouchInit._SetclientY(const aValue : LongInt);
  129514. begin
  129515. WriteJSPropertyLongInt('clientY',aValue);
  129516. end;
  129517. procedure TJSTouchInit._SetscreenX(const aValue : LongInt);
  129518. begin
  129519. WriteJSPropertyLongInt('screenX',aValue);
  129520. end;
  129521. procedure TJSTouchInit._SetscreenY(const aValue : LongInt);
  129522. begin
  129523. WriteJSPropertyLongInt('screenY',aValue);
  129524. end;
  129525. procedure TJSTouchInit._SetpageX(const aValue : LongInt);
  129526. begin
  129527. WriteJSPropertyLongInt('pageX',aValue);
  129528. end;
  129529. procedure TJSTouchInit._SetpageY(const aValue : LongInt);
  129530. begin
  129531. WriteJSPropertyLongInt('pageY',aValue);
  129532. end;
  129533. procedure TJSTouchInit._SetradiusX(const aValue : Single);
  129534. begin
  129535. WriteJSPropertyDouble('radiusX',aValue);
  129536. end;
  129537. procedure TJSTouchInit._SetradiusY(const aValue : Single);
  129538. begin
  129539. WriteJSPropertyDouble('radiusY',aValue);
  129540. end;
  129541. procedure TJSTouchInit._SetrotationAngle(const aValue : Single);
  129542. begin
  129543. WriteJSPropertyDouble('rotationAngle',aValue);
  129544. end;
  129545. procedure TJSTouchInit._Setforce(const aValue : Single);
  129546. begin
  129547. WriteJSPropertyDouble('force',aValue);
  129548. end;
  129549. class function TJSTouchInit.JSClassName: UnicodeString;
  129550. begin
  129551. Result:='Object';
  129552. end;
  129553. class function TJSTouchInit.Cast(const Intf: IJSObject): IJSTouchInit;
  129554. begin
  129555. Result:=TJSTouchInit.JOBCast(Intf);
  129556. end;
  129557. function TJSTouch._Getidentifier: LongInt;
  129558. begin
  129559. Result:=ReadJSPropertyLongInt('identifier');
  129560. end;
  129561. function TJSTouch._Gettarget: IJSEventTarget;
  129562. begin
  129563. Result:=ReadJSPropertyObject('target',TJSEventTarget) as IJSEventTarget;
  129564. end;
  129565. function TJSTouch._GetscreenX: LongInt;
  129566. begin
  129567. Result:=ReadJSPropertyLongInt('screenX');
  129568. end;
  129569. function TJSTouch._GetscreenY: LongInt;
  129570. begin
  129571. Result:=ReadJSPropertyLongInt('screenY');
  129572. end;
  129573. function TJSTouch._GetclientX: LongInt;
  129574. begin
  129575. Result:=ReadJSPropertyLongInt('clientX');
  129576. end;
  129577. function TJSTouch._GetclientY: LongInt;
  129578. begin
  129579. Result:=ReadJSPropertyLongInt('clientY');
  129580. end;
  129581. function TJSTouch._GetpageX: LongInt;
  129582. begin
  129583. Result:=ReadJSPropertyLongInt('pageX');
  129584. end;
  129585. function TJSTouch._GetpageY: LongInt;
  129586. begin
  129587. Result:=ReadJSPropertyLongInt('pageY');
  129588. end;
  129589. function TJSTouch._GetradiusX: LongInt;
  129590. begin
  129591. Result:=ReadJSPropertyLongInt('radiusX');
  129592. end;
  129593. function TJSTouch._GetradiusY: LongInt;
  129594. begin
  129595. Result:=ReadJSPropertyLongInt('radiusY');
  129596. end;
  129597. function TJSTouch._GetrotationAngle: Single;
  129598. begin
  129599. Result:=ReadJSPropertyDouble('rotationAngle');
  129600. end;
  129601. function TJSTouch._Getforce: Single;
  129602. begin
  129603. Result:=ReadJSPropertyDouble('force');
  129604. end;
  129605. constructor TJSTouch.Create(const aTouchInitDict: TJSTouchInit);
  129606. begin
  129607. JOBCreate([aTouchInitDict]);
  129608. end;
  129609. class function TJSTouch.JSClassName: UnicodeString;
  129610. begin
  129611. Result:='Touch';
  129612. end;
  129613. class function TJSTouch.Cast(const Intf: IJSObject): IJSTouch;
  129614. begin
  129615. Result:=TJSTouch.JOBCast(Intf);
  129616. end;
  129617. function TJSTouchEventInit._Gettouches: TJSTouchDynArray;
  129618. begin
  129619. Result:=ReadJSPropertyObject('touches',TJSArray) as TJSTouchDynArray;
  129620. end;
  129621. function TJSTouchEventInit._GettargetTouches: TJSTouchDynArray;
  129622. begin
  129623. Result:=ReadJSPropertyObject('targetTouches',TJSArray) as TJSTouchDynArray;
  129624. end;
  129625. function TJSTouchEventInit._GetchangedTouches: TJSTouchDynArray;
  129626. begin
  129627. Result:=ReadJSPropertyObject('changedTouches',TJSArray) as TJSTouchDynArray;
  129628. end;
  129629. procedure TJSTouchEventInit._Settouches(const aValue : TJSTouchDynArray);
  129630. begin
  129631. WriteJSPropertyObject('touches',aValue);
  129632. end;
  129633. procedure TJSTouchEventInit._SettargetTouches(const aValue : TJSTouchDynArray);
  129634. begin
  129635. WriteJSPropertyObject('targetTouches',aValue);
  129636. end;
  129637. procedure TJSTouchEventInit._SetchangedTouches(const aValue : TJSTouchDynArray);
  129638. begin
  129639. WriteJSPropertyObject('changedTouches',aValue);
  129640. end;
  129641. class function TJSTouchEventInit.JSClassName: UnicodeString;
  129642. begin
  129643. Result:='Object';
  129644. end;
  129645. class function TJSTouchEventInit.Cast(const Intf: IJSObject): IJSTouchEventInit;
  129646. begin
  129647. Result:=TJSTouchEventInit.JOBCast(Intf);
  129648. end;
  129649. function TJSTouchEvent._Gettouches: IJSTouchList;
  129650. begin
  129651. Result:=ReadJSPropertyObject('touches',TJSTouchList) as IJSTouchList;
  129652. end;
  129653. function TJSTouchEvent._GettargetTouches: IJSTouchList;
  129654. begin
  129655. Result:=ReadJSPropertyObject('targetTouches',TJSTouchList) as IJSTouchList;
  129656. end;
  129657. function TJSTouchEvent._GetchangedTouches: IJSTouchList;
  129658. begin
  129659. Result:=ReadJSPropertyObject('changedTouches',TJSTouchList) as IJSTouchList;
  129660. end;
  129661. function TJSTouchEvent._GetaltKey: Boolean;
  129662. begin
  129663. Result:=ReadJSPropertyBoolean('altKey');
  129664. end;
  129665. function TJSTouchEvent._GetmetaKey: Boolean;
  129666. begin
  129667. Result:=ReadJSPropertyBoolean('metaKey');
  129668. end;
  129669. function TJSTouchEvent._GetctrlKey: Boolean;
  129670. begin
  129671. Result:=ReadJSPropertyBoolean('ctrlKey');
  129672. end;
  129673. function TJSTouchEvent._GetshiftKey: Boolean;
  129674. begin
  129675. Result:=ReadJSPropertyBoolean('shiftKey');
  129676. end;
  129677. constructor TJSTouchEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSTouchEventInit);
  129678. begin
  129679. JOBCreate([aType_,aEventInitDict]);
  129680. end;
  129681. constructor TJSTouchEvent.Create(const aType_: UnicodeString);
  129682. begin
  129683. JOBCreate([aType_]);
  129684. end;
  129685. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aTouches: IJSTouchList; aTargetTouches: IJSTouchList; aChangedTouches: IJSTouchList);
  129686. begin
  129687. InvokeJSNoResult('initTouchEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aCtrlKey,aAltKey,aShiftKey,aMetaKey,aTouches,aTargetTouches,aChangedTouches]);
  129688. end;
  129689. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString);
  129690. begin
  129691. InvokeJSNoResult('initTouchEvent',[aType_]);
  129692. end;
  129693. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean);
  129694. begin
  129695. InvokeJSNoResult('initTouchEvent',[aType_,aCanBubble]);
  129696. end;
  129697. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean);
  129698. begin
  129699. InvokeJSNoResult('initTouchEvent',[aType_,aCanBubble,aCancelable]);
  129700. end;
  129701. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow);
  129702. begin
  129703. InvokeJSNoResult('initTouchEvent',[aType_,aCanBubble,aCancelable,aView]);
  129704. end;
  129705. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt);
  129706. begin
  129707. InvokeJSNoResult('initTouchEvent',[aType_,aCanBubble,aCancelable,aView,aDetail]);
  129708. end;
  129709. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean);
  129710. begin
  129711. InvokeJSNoResult('initTouchEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aCtrlKey]);
  129712. end;
  129713. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean);
  129714. begin
  129715. InvokeJSNoResult('initTouchEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aCtrlKey,aAltKey]);
  129716. end;
  129717. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean);
  129718. begin
  129719. InvokeJSNoResult('initTouchEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aCtrlKey,aAltKey,aShiftKey]);
  129720. end;
  129721. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean);
  129722. begin
  129723. InvokeJSNoResult('initTouchEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aCtrlKey,aAltKey,aShiftKey,aMetaKey]);
  129724. end;
  129725. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aTouches: IJSTouchList);
  129726. begin
  129727. InvokeJSNoResult('initTouchEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aCtrlKey,aAltKey,aShiftKey,aMetaKey,aTouches]);
  129728. end;
  129729. procedure TJSTouchEvent.initTouchEvent(const aType_: UnicodeString; aCanBubble: Boolean; aCancelable: Boolean; aView: IJSWindow; aDetail: LongInt; aCtrlKey: Boolean; aAltKey: Boolean; aShiftKey: Boolean; aMetaKey: Boolean; aTouches: IJSTouchList; aTargetTouches: IJSTouchList);
  129730. begin
  129731. InvokeJSNoResult('initTouchEvent',[aType_,aCanBubble,aCancelable,aView,aDetail,aCtrlKey,aAltKey,aShiftKey,aMetaKey,aTouches,aTargetTouches]);
  129732. end;
  129733. class function TJSTouchEvent.JSClassName: UnicodeString;
  129734. begin
  129735. Result:='TouchEvent';
  129736. end;
  129737. class function TJSTouchEvent.Cast(const Intf: IJSObject): IJSTouchEvent;
  129738. begin
  129739. Result:=TJSTouchEvent.JOBCast(Intf);
  129740. end;
  129741. function TJSTouchList._Getlength_: Cardinal;
  129742. begin
  129743. Result:=ReadJSPropertyInt64('length');
  129744. end;
  129745. function TJSTouchList.item(aIndex: Cardinal): IJSTouch;
  129746. begin
  129747. Result:=InvokeJSObjectResult('item',[aIndex],TJSTouch) as IJSTouch;
  129748. end;
  129749. class function TJSTouchList.JSClassName: UnicodeString;
  129750. begin
  129751. Result:='TouchList';
  129752. end;
  129753. class function TJSTouchList.Cast(const Intf: IJSObject): IJSTouchList;
  129754. begin
  129755. Result:=TJSTouchList.JOBCast(Intf);
  129756. end;
  129757. function TJSTrackEvent._Gettrack: TTrackEvent_track_Type;
  129758. begin
  129759. Result:=ReadJSPropertyVariant('track');
  129760. end;
  129761. constructor TJSTrackEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSTrackEventInit);
  129762. begin
  129763. JOBCreate([aType_,aEventInitDict]);
  129764. end;
  129765. constructor TJSTrackEvent.Create(const aType_: UnicodeString);
  129766. begin
  129767. JOBCreate([aType_]);
  129768. end;
  129769. class function TJSTrackEvent.JSClassName: UnicodeString;
  129770. begin
  129771. Result:='TrackEvent';
  129772. end;
  129773. class function TJSTrackEvent.Cast(const Intf: IJSObject): IJSTrackEvent;
  129774. begin
  129775. Result:=TJSTrackEvent.JOBCast(Intf);
  129776. end;
  129777. function TJSTrackEventInit._Gettrack: TTrackEventInit_track_Type;
  129778. begin
  129779. Result:=ReadJSPropertyVariant('track');
  129780. end;
  129781. procedure TJSTrackEventInit._Settrack(const aValue : TTrackEventInit_track_Type);
  129782. begin
  129783. WriteJSPropertyVariant('track',aValue);
  129784. end;
  129785. class function TJSTrackEventInit.JSClassName: UnicodeString;
  129786. begin
  129787. Result:='Object';
  129788. end;
  129789. class function TJSTrackEventInit.Cast(const Intf: IJSObject): IJSTrackEventInit;
  129790. begin
  129791. Result:=TJSTrackEventInit.JOBCast(Intf);
  129792. end;
  129793. function TJSTransformer._Getstart: TTransformerStartCallback;
  129794. begin
  129795. Result:=(TTransformerStartCallback(ReadJSPropertyMethod('start')));
  129796. end;
  129797. function TJSTransformer._Gettransform: TTransformerTransformCallback;
  129798. begin
  129799. Result:=(TTransformerTransformCallback(ReadJSPropertyMethod('transform')));
  129800. end;
  129801. function TJSTransformer._Getflush: TTransformerFlushCallback;
  129802. begin
  129803. Result:=(TTransformerFlushCallback(ReadJSPropertyMethod('flush')));
  129804. end;
  129805. function TJSTransformer._GetreadableType: Variant;
  129806. begin
  129807. Result:=ReadJSPropertyVariant('readableType');
  129808. end;
  129809. function TJSTransformer._GetwritableType: Variant;
  129810. begin
  129811. Result:=ReadJSPropertyVariant('writableType');
  129812. end;
  129813. procedure TJSTransformer._Setstart(const aValue : TTransformerStartCallback);
  129814. begin
  129815. WriteJSPropertyMethod('start',TMethod(aValue));
  129816. end;
  129817. procedure TJSTransformer._Settransform(const aValue : TTransformerTransformCallback);
  129818. begin
  129819. WriteJSPropertyMethod('transform',TMethod(aValue));
  129820. end;
  129821. procedure TJSTransformer._Setflush(const aValue : TTransformerFlushCallback);
  129822. begin
  129823. WriteJSPropertyMethod('flush',TMethod(aValue));
  129824. end;
  129825. procedure TJSTransformer._SetreadableType(const aValue : Variant);
  129826. begin
  129827. WriteJSPropertyVariant('readableType',aValue);
  129828. end;
  129829. procedure TJSTransformer._SetwritableType(const aValue : Variant);
  129830. begin
  129831. WriteJSPropertyVariant('writableType',aValue);
  129832. end;
  129833. class function TJSTransformer.JSClassName: UnicodeString;
  129834. begin
  129835. Result:='Object';
  129836. end;
  129837. class function TJSTransformer.Cast(const Intf: IJSObject): IJSTransformer;
  129838. begin
  129839. Result:=TJSTransformer.JOBCast(Intf);
  129840. end;
  129841. function TJSTransformStream._Getreadable: IJSReadableStream;
  129842. begin
  129843. Result:=ReadJSPropertyObject('readable',TJSReadableStream) as IJSReadableStream;
  129844. end;
  129845. function TJSTransformStream._Getwritable: IJSWritableStream;
  129846. begin
  129847. Result:=ReadJSPropertyObject('writable',TJSWritableStream) as IJSWritableStream;
  129848. end;
  129849. constructor TJSTransformStream.Create(aTransformer: IJSObject; const aWritableStrategy: TJSQueuingStrategy; const aReadableStrategy: TJSQueuingStrategy);
  129850. begin
  129851. JOBCreate([aTransformer,aWritableStrategy,aReadableStrategy]);
  129852. end;
  129853. constructor TJSTransformStream.Create;
  129854. begin
  129855. JOBCreate([]);
  129856. end;
  129857. constructor TJSTransformStream.Create(aTransformer: IJSObject);
  129858. begin
  129859. JOBCreate([aTransformer]);
  129860. end;
  129861. constructor TJSTransformStream.Create(aTransformer: IJSObject; const aWritableStrategy: TJSQueuingStrategy);
  129862. begin
  129863. JOBCreate([aTransformer,aWritableStrategy]);
  129864. end;
  129865. class function TJSTransformStream.JSClassName: UnicodeString;
  129866. begin
  129867. Result:='TransformStream';
  129868. end;
  129869. class function TJSTransformStream.Cast(const Intf: IJSObject): IJSTransformStream;
  129870. begin
  129871. Result:=TJSTransformStream.JOBCast(Intf);
  129872. end;
  129873. function TJSTransformStreamDefaultController._GetdesiredSize: Double;
  129874. begin
  129875. Result:=ReadJSPropertyDouble('desiredSize');
  129876. end;
  129877. procedure TJSTransformStreamDefaultController.enqueue(const aChunk: Variant);
  129878. begin
  129879. InvokeJSNoResult('enqueue',[aChunk]);
  129880. end;
  129881. procedure TJSTransformStreamDefaultController.enqueue;
  129882. begin
  129883. InvokeJSNoResult('enqueue',[]);
  129884. end;
  129885. procedure TJSTransformStreamDefaultController.error(const aReason: Variant);
  129886. begin
  129887. InvokeJSNoResult('error',[aReason]);
  129888. end;
  129889. procedure TJSTransformStreamDefaultController.error;
  129890. begin
  129891. InvokeJSNoResult('error',[]);
  129892. end;
  129893. procedure TJSTransformStreamDefaultController.terminate;
  129894. begin
  129895. InvokeJSNoResult('terminate',[]);
  129896. end;
  129897. class function TJSTransformStreamDefaultController.JSClassName: UnicodeString;
  129898. begin
  129899. Result:='TransformStreamDefaultController';
  129900. end;
  129901. class function TJSTransformStreamDefaultController.Cast(const Intf: IJSObject): IJSTransformStreamDefaultController;
  129902. begin
  129903. Result:=TJSTransformStreamDefaultController.JOBCast(Intf);
  129904. end;
  129905. function TJSTransitionEvent._GetpropertyName: UnicodeString;
  129906. begin
  129907. Result:=ReadJSPropertyUnicodeString('propertyName');
  129908. end;
  129909. function TJSTransitionEvent._GetelapsedTime: Single;
  129910. begin
  129911. Result:=ReadJSPropertyDouble('elapsedTime');
  129912. end;
  129913. function TJSTransitionEvent._GetpseudoElement: UnicodeString;
  129914. begin
  129915. Result:=ReadJSPropertyUnicodeString('pseudoElement');
  129916. end;
  129917. constructor TJSTransitionEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSTransitionEventInit);
  129918. begin
  129919. JOBCreate([aType_,aEventInitDict]);
  129920. end;
  129921. constructor TJSTransitionEvent.Create(const aType_: UnicodeString);
  129922. begin
  129923. JOBCreate([aType_]);
  129924. end;
  129925. class function TJSTransitionEvent.JSClassName: UnicodeString;
  129926. begin
  129927. Result:='TransitionEvent';
  129928. end;
  129929. class function TJSTransitionEvent.Cast(const Intf: IJSObject): IJSTransitionEvent;
  129930. begin
  129931. Result:=TJSTransitionEvent.JOBCast(Intf);
  129932. end;
  129933. function TJSTransitionEventInit._GetpropertyName: UnicodeString;
  129934. begin
  129935. Result:=ReadJSPropertyUnicodeString('propertyName');
  129936. end;
  129937. function TJSTransitionEventInit._GetelapsedTime: Single;
  129938. begin
  129939. Result:=ReadJSPropertyDouble('elapsedTime');
  129940. end;
  129941. function TJSTransitionEventInit._GetpseudoElement: UnicodeString;
  129942. begin
  129943. Result:=ReadJSPropertyUnicodeString('pseudoElement');
  129944. end;
  129945. procedure TJSTransitionEventInit._SetpropertyName(const aValue : UnicodeString);
  129946. begin
  129947. WriteJSPropertyUnicodeString('propertyName',aValue);
  129948. end;
  129949. procedure TJSTransitionEventInit._SetelapsedTime(const aValue : Single);
  129950. begin
  129951. WriteJSPropertyDouble('elapsedTime',aValue);
  129952. end;
  129953. procedure TJSTransitionEventInit._SetpseudoElement(const aValue : UnicodeString);
  129954. begin
  129955. WriteJSPropertyUnicodeString('pseudoElement',aValue);
  129956. end;
  129957. class function TJSTransitionEventInit.JSClassName: UnicodeString;
  129958. begin
  129959. Result:='Object';
  129960. end;
  129961. class function TJSTransitionEventInit.Cast(const Intf: IJSObject): IJSTransitionEventInit;
  129962. begin
  129963. Result:=TJSTransitionEventInit.JOBCast(Intf);
  129964. end;
  129965. function TJSTreeWalker._Getroot: IJSNode;
  129966. begin
  129967. Result:=ReadJSPropertyObject('root',TJSNode) as IJSNode;
  129968. end;
  129969. function TJSTreeWalker._GetwhatToShow: Cardinal;
  129970. begin
  129971. Result:=ReadJSPropertyInt64('whatToShow');
  129972. end;
  129973. function TJSTreeWalker._Getfilter: TNodeFilter;
  129974. begin
  129975. Result:=(TNodeFilter(ReadJSPropertyMethod('filter')));
  129976. end;
  129977. function TJSTreeWalker._GetcurrentNode: IJSNode;
  129978. begin
  129979. Result:=ReadJSPropertyObject('currentNode',TJSNode) as IJSNode;
  129980. end;
  129981. procedure TJSTreeWalker._SetcurrentNode(const aValue : IJSNode);
  129982. begin
  129983. WriteJSPropertyObject('currentNode',aValue);
  129984. end;
  129985. function TJSTreeWalker.parentNode: IJSNode;
  129986. begin
  129987. Result:=InvokeJSObjectResult('parentNode',[],TJSNode) as IJSNode;
  129988. end;
  129989. function TJSTreeWalker.firstChild: IJSNode;
  129990. begin
  129991. Result:=InvokeJSObjectResult('firstChild',[],TJSNode) as IJSNode;
  129992. end;
  129993. function TJSTreeWalker.lastChild: IJSNode;
  129994. begin
  129995. Result:=InvokeJSObjectResult('lastChild',[],TJSNode) as IJSNode;
  129996. end;
  129997. function TJSTreeWalker.previousSibling: IJSNode;
  129998. begin
  129999. Result:=InvokeJSObjectResult('previousSibling',[],TJSNode) as IJSNode;
  130000. end;
  130001. function TJSTreeWalker.nextSibling: IJSNode;
  130002. begin
  130003. Result:=InvokeJSObjectResult('nextSibling',[],TJSNode) as IJSNode;
  130004. end;
  130005. function TJSTreeWalker.previousNode: IJSNode;
  130006. begin
  130007. Result:=InvokeJSObjectResult('previousNode',[],TJSNode) as IJSNode;
  130008. end;
  130009. function TJSTreeWalker.nextNode: IJSNode;
  130010. begin
  130011. Result:=InvokeJSObjectResult('nextNode',[],TJSNode) as IJSNode;
  130012. end;
  130013. class function TJSTreeWalker.JSClassName: UnicodeString;
  130014. begin
  130015. Result:='TreeWalker';
  130016. end;
  130017. class function TJSTreeWalker.Cast(const Intf: IJSObject): IJSTreeWalker;
  130018. begin
  130019. Result:=TJSTreeWalker.JOBCast(Intf);
  130020. end;
  130021. function TJSTrustedHTML.toJSON: UnicodeString;
  130022. begin
  130023. Result:=InvokeJSUnicodeStringResult('toJSON',[]);
  130024. end;
  130025. class function TJSTrustedHTML.JSClassName: UnicodeString;
  130026. begin
  130027. Result:='TrustedHTML';
  130028. end;
  130029. class function TJSTrustedHTML.Cast(const Intf: IJSObject): IJSTrustedHTML;
  130030. begin
  130031. Result:=TJSTrustedHTML.JOBCast(Intf);
  130032. end;
  130033. function TJSTrustedScript.toJSON: UnicodeString;
  130034. begin
  130035. Result:=InvokeJSUnicodeStringResult('toJSON',[]);
  130036. end;
  130037. class function TJSTrustedScript.JSClassName: UnicodeString;
  130038. begin
  130039. Result:='TrustedScript';
  130040. end;
  130041. class function TJSTrustedScript.Cast(const Intf: IJSObject): IJSTrustedScript;
  130042. begin
  130043. Result:=TJSTrustedScript.JOBCast(Intf);
  130044. end;
  130045. function TJSTrustedScriptURL.toJSON: UnicodeString;
  130046. begin
  130047. Result:=InvokeJSUnicodeStringResult('toJSON',[]);
  130048. end;
  130049. class function TJSTrustedScriptURL.JSClassName: UnicodeString;
  130050. begin
  130051. Result:='TrustedScriptURL';
  130052. end;
  130053. class function TJSTrustedScriptURL.Cast(const Intf: IJSObject): IJSTrustedScriptURL;
  130054. begin
  130055. Result:=TJSTrustedScriptURL.JOBCast(Intf);
  130056. end;
  130057. function TJSTrustedTypePolicy._Getname: UnicodeString;
  130058. begin
  130059. Result:=ReadJSPropertyUnicodeString('name');
  130060. end;
  130061. function TJSTrustedTypePolicy.createHTML(const aInput: UnicodeString; const aArguments: Variant): IJSTrustedHTML{; ToDo:varargs};
  130062. begin
  130063. Result:=InvokeJSObjectResult('createHTML',[aInput,aArguments],TJSTrustedHTML) as IJSTrustedHTML;
  130064. end;
  130065. function TJSTrustedTypePolicy.createScript(const aInput: UnicodeString; const aArguments: Variant): IJSTrustedScript{; ToDo:varargs};
  130066. begin
  130067. Result:=InvokeJSObjectResult('createScript',[aInput,aArguments],TJSTrustedScript) as IJSTrustedScript;
  130068. end;
  130069. function TJSTrustedTypePolicy.createScriptURL(const aInput: UnicodeString; const aArguments: Variant): IJSTrustedScriptURL{; ToDo:varargs};
  130070. begin
  130071. Result:=InvokeJSObjectResult('createScriptURL',[aInput,aArguments],TJSTrustedScriptURL) as IJSTrustedScriptURL;
  130072. end;
  130073. class function TJSTrustedTypePolicy.JSClassName: UnicodeString;
  130074. begin
  130075. Result:='TrustedTypePolicy';
  130076. end;
  130077. class function TJSTrustedTypePolicy.Cast(const Intf: IJSObject): IJSTrustedTypePolicy;
  130078. begin
  130079. Result:=TJSTrustedTypePolicy.JOBCast(Intf);
  130080. end;
  130081. function TJSTrustedTypePolicyOptions._GetcreateHTML: TCreateHTMLCallback;
  130082. begin
  130083. Result:=(TCreateHTMLCallback(ReadJSPropertyMethod('createHTML')));
  130084. end;
  130085. function TJSTrustedTypePolicyOptions._GetcreateScript: TCreateScriptCallback;
  130086. begin
  130087. Result:=(TCreateScriptCallback(ReadJSPropertyMethod('createScript')));
  130088. end;
  130089. function TJSTrustedTypePolicyOptions._GetcreateScriptURL: TCreateScriptURLCallback;
  130090. begin
  130091. Result:=(TCreateScriptURLCallback(ReadJSPropertyMethod('createScriptURL')));
  130092. end;
  130093. procedure TJSTrustedTypePolicyOptions._SetcreateHTML(const aValue : TCreateHTMLCallback);
  130094. begin
  130095. WriteJSPropertyMethod('createHTML',TMethod(aValue));
  130096. end;
  130097. procedure TJSTrustedTypePolicyOptions._SetcreateScript(const aValue : TCreateScriptCallback);
  130098. begin
  130099. WriteJSPropertyMethod('createScript',TMethod(aValue));
  130100. end;
  130101. procedure TJSTrustedTypePolicyOptions._SetcreateScriptURL(const aValue : TCreateScriptURLCallback);
  130102. begin
  130103. WriteJSPropertyMethod('createScriptURL',TMethod(aValue));
  130104. end;
  130105. class function TJSTrustedTypePolicyOptions.JSClassName: UnicodeString;
  130106. begin
  130107. Result:='Object';
  130108. end;
  130109. class function TJSTrustedTypePolicyOptions.Cast(const Intf: IJSObject): IJSTrustedTypePolicyOptions;
  130110. begin
  130111. Result:=TJSTrustedTypePolicyOptions.JOBCast(Intf);
  130112. end;
  130113. function TJSTrustedTypePolicyFactory._GetemptyHTML: IJSTrustedHTML;
  130114. begin
  130115. Result:=ReadJSPropertyObject('emptyHTML',TJSTrustedHTML) as IJSTrustedHTML;
  130116. end;
  130117. function TJSTrustedTypePolicyFactory._GetemptyScript: IJSTrustedScript;
  130118. begin
  130119. Result:=ReadJSPropertyObject('emptyScript',TJSTrustedScript) as IJSTrustedScript;
  130120. end;
  130121. function TJSTrustedTypePolicyFactory._GetdefaultPolicy: IJSTrustedTypePolicy;
  130122. begin
  130123. Result:=ReadJSPropertyObject('defaultPolicy',TJSTrustedTypePolicy) as IJSTrustedTypePolicy;
  130124. end;
  130125. function TJSTrustedTypePolicyFactory.createPolicy(const aPolicyName: UnicodeString; const aPolicyOptions: TJSTrustedTypePolicyOptions): IJSTrustedTypePolicy;
  130126. begin
  130127. Result:=InvokeJSObjectResult('createPolicy',[aPolicyName,aPolicyOptions],TJSTrustedTypePolicy) as IJSTrustedTypePolicy;
  130128. end;
  130129. function TJSTrustedTypePolicyFactory.createPolicy(const aPolicyName: UnicodeString): IJSTrustedTypePolicy;
  130130. begin
  130131. Result:=InvokeJSObjectResult('createPolicy',[aPolicyName],TJSTrustedTypePolicy) as IJSTrustedTypePolicy;
  130132. end;
  130133. function TJSTrustedTypePolicyFactory.isHTML(const aValue: Variant): Boolean;
  130134. begin
  130135. Result:=InvokeJSBooleanResult('isHTML',[aValue]);
  130136. end;
  130137. function TJSTrustedTypePolicyFactory.isScript(const aValue: Variant): Boolean;
  130138. begin
  130139. Result:=InvokeJSBooleanResult('isScript',[aValue]);
  130140. end;
  130141. function TJSTrustedTypePolicyFactory.isScriptURL(const aValue: Variant): Boolean;
  130142. begin
  130143. Result:=InvokeJSBooleanResult('isScriptURL',[aValue]);
  130144. end;
  130145. function TJSTrustedTypePolicyFactory.getAttributeType(const aTagName: UnicodeString; const aAttribute: UnicodeString; const aElementNs: UnicodeString; const aAttrNs: UnicodeString): UnicodeString;
  130146. begin
  130147. Result:=InvokeJSUnicodeStringResult('getAttributeType',[aTagName,aAttribute,aElementNs,aAttrNs]);
  130148. end;
  130149. function TJSTrustedTypePolicyFactory.getAttributeType(const aTagName: UnicodeString; const aAttribute: UnicodeString): UnicodeString;
  130150. begin
  130151. Result:=InvokeJSUnicodeStringResult('getAttributeType',[aTagName,aAttribute]);
  130152. end;
  130153. function TJSTrustedTypePolicyFactory.getAttributeType(const aTagName: UnicodeString; const aAttribute: UnicodeString; const aElementNs: UnicodeString): UnicodeString;
  130154. begin
  130155. Result:=InvokeJSUnicodeStringResult('getAttributeType',[aTagName,aAttribute,aElementNs]);
  130156. end;
  130157. function TJSTrustedTypePolicyFactory.getPropertyType(const aTagName: UnicodeString; const aProperty_: UnicodeString; const aElementNs: UnicodeString): UnicodeString;
  130158. begin
  130159. Result:=InvokeJSUnicodeStringResult('getPropertyType',[aTagName,aProperty_,aElementNs]);
  130160. end;
  130161. function TJSTrustedTypePolicyFactory.getPropertyType(const aTagName: UnicodeString; const aProperty_: UnicodeString): UnicodeString;
  130162. begin
  130163. Result:=InvokeJSUnicodeStringResult('getPropertyType',[aTagName,aProperty_]);
  130164. end;
  130165. class function TJSTrustedTypePolicyFactory.JSClassName: UnicodeString;
  130166. begin
  130167. Result:='TrustedTypePolicyFactory';
  130168. end;
  130169. class function TJSTrustedTypePolicyFactory.Cast(const Intf: IJSObject): IJSTrustedTypePolicyFactory;
  130170. begin
  130171. Result:=TJSTrustedTypePolicyFactory.JOBCast(Intf);
  130172. end;
  130173. function TJSUDPMessageEventInit._GetremoteAddress: UnicodeString;
  130174. begin
  130175. Result:=ReadJSPropertyUnicodeString('remoteAddress');
  130176. end;
  130177. function TJSUDPMessageEventInit._GetremotePort: Word;
  130178. begin
  130179. Result:=ReadJSPropertyLongInt('remotePort');
  130180. end;
  130181. function TJSUDPMessageEventInit._Getdata: Variant;
  130182. begin
  130183. Result:=ReadJSPropertyVariant('data');
  130184. end;
  130185. procedure TJSUDPMessageEventInit._SetremoteAddress(const aValue : UnicodeString);
  130186. begin
  130187. WriteJSPropertyUnicodeString('remoteAddress',aValue);
  130188. end;
  130189. procedure TJSUDPMessageEventInit._SetremotePort(const aValue : Word);
  130190. begin
  130191. WriteJSPropertyLongInt('remotePort',aValue);
  130192. end;
  130193. procedure TJSUDPMessageEventInit._Setdata(const aValue : Variant);
  130194. begin
  130195. WriteJSPropertyVariant('data',aValue);
  130196. end;
  130197. class function TJSUDPMessageEventInit.JSClassName: UnicodeString;
  130198. begin
  130199. Result:='Object';
  130200. end;
  130201. class function TJSUDPMessageEventInit.Cast(const Intf: IJSObject): IJSUDPMessageEventInit;
  130202. begin
  130203. Result:=TJSUDPMessageEventInit.JOBCast(Intf);
  130204. end;
  130205. function TJSUDPOptions._GetlocalAddress: UnicodeString;
  130206. begin
  130207. Result:=ReadJSPropertyUnicodeString('localAddress');
  130208. end;
  130209. function TJSUDPOptions._GetlocalPort: Word;
  130210. begin
  130211. Result:=ReadJSPropertyLongInt('localPort');
  130212. end;
  130213. function TJSUDPOptions._GetremoteAddress: UnicodeString;
  130214. begin
  130215. Result:=ReadJSPropertyUnicodeString('remoteAddress');
  130216. end;
  130217. function TJSUDPOptions._GetremotePort: Word;
  130218. begin
  130219. Result:=ReadJSPropertyLongInt('remotePort');
  130220. end;
  130221. function TJSUDPOptions._GetaddressReuse: Boolean;
  130222. begin
  130223. Result:=ReadJSPropertyBoolean('addressReuse');
  130224. end;
  130225. function TJSUDPOptions._Getloopback: Boolean;
  130226. begin
  130227. Result:=ReadJSPropertyBoolean('loopback');
  130228. end;
  130229. procedure TJSUDPOptions._SetlocalAddress(const aValue : UnicodeString);
  130230. begin
  130231. WriteJSPropertyUnicodeString('localAddress',aValue);
  130232. end;
  130233. procedure TJSUDPOptions._SetlocalPort(const aValue : Word);
  130234. begin
  130235. WriteJSPropertyLongInt('localPort',aValue);
  130236. end;
  130237. procedure TJSUDPOptions._SetremoteAddress(const aValue : UnicodeString);
  130238. begin
  130239. WriteJSPropertyUnicodeString('remoteAddress',aValue);
  130240. end;
  130241. procedure TJSUDPOptions._SetremotePort(const aValue : Word);
  130242. begin
  130243. WriteJSPropertyLongInt('remotePort',aValue);
  130244. end;
  130245. procedure TJSUDPOptions._SetaddressReuse(const aValue : Boolean);
  130246. begin
  130247. WriteJSPropertyBoolean('addressReuse',aValue);
  130248. end;
  130249. procedure TJSUDPOptions._Setloopback(const aValue : Boolean);
  130250. begin
  130251. WriteJSPropertyBoolean('loopback',aValue);
  130252. end;
  130253. class function TJSUDPOptions.JSClassName: UnicodeString;
  130254. begin
  130255. Result:='Object';
  130256. end;
  130257. class function TJSUDPOptions.Cast(const Intf: IJSObject): IJSUDPOptions;
  130258. begin
  130259. Result:=TJSUDPOptions.JOBCast(Intf);
  130260. end;
  130261. function TJSUIEvent._Getview: IJSWindowProxy;
  130262. begin
  130263. Result:=ReadJSPropertyObject('view',TJSWindowProxy) as IJSWindowProxy;
  130264. end;
  130265. function TJSUIEvent._Getdetail: LongInt;
  130266. begin
  130267. Result:=ReadJSPropertyLongInt('detail');
  130268. end;
  130269. function TJSUIEvent._GetlayerX: LongInt;
  130270. begin
  130271. Result:=ReadJSPropertyLongInt('layerX');
  130272. end;
  130273. function TJSUIEvent._GetlayerY: LongInt;
  130274. begin
  130275. Result:=ReadJSPropertyLongInt('layerY');
  130276. end;
  130277. function TJSUIEvent._Getwhich: Cardinal;
  130278. begin
  130279. Result:=ReadJSPropertyInt64('which');
  130280. end;
  130281. function TJSUIEvent._GetrangeParent: IJSNode;
  130282. begin
  130283. Result:=ReadJSPropertyObject('rangeParent',TJSNode) as IJSNode;
  130284. end;
  130285. function TJSUIEvent._GetrangeOffset: LongInt;
  130286. begin
  130287. Result:=ReadJSPropertyLongInt('rangeOffset');
  130288. end;
  130289. constructor TJSUIEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSUIEventInit);
  130290. begin
  130291. JOBCreate([aType_,aEventInitDict]);
  130292. end;
  130293. constructor TJSUIEvent.Create(const aType_: UnicodeString);
  130294. begin
  130295. JOBCreate([aType_]);
  130296. end;
  130297. procedure TJSUIEvent.initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean; aACancelable: Boolean; aAView: IJSWindow; aADetail: LongInt);
  130298. begin
  130299. InvokeJSNoResult('initUIEvent',[aAType,aACanBubble,aACancelable,aAView,aADetail]);
  130300. end;
  130301. procedure TJSUIEvent.initUIEvent(const aAType: UnicodeString);
  130302. begin
  130303. InvokeJSNoResult('initUIEvent',[aAType]);
  130304. end;
  130305. procedure TJSUIEvent.initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean);
  130306. begin
  130307. InvokeJSNoResult('initUIEvent',[aAType,aACanBubble]);
  130308. end;
  130309. procedure TJSUIEvent.initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean; aACancelable: Boolean);
  130310. begin
  130311. InvokeJSNoResult('initUIEvent',[aAType,aACanBubble,aACancelable]);
  130312. end;
  130313. procedure TJSUIEvent.initUIEvent(const aAType: UnicodeString; aACanBubble: Boolean; aACancelable: Boolean; aAView: IJSWindow);
  130314. begin
  130315. InvokeJSNoResult('initUIEvent',[aAType,aACanBubble,aACancelable,aAView]);
  130316. end;
  130317. class function TJSUIEvent.JSClassName: UnicodeString;
  130318. begin
  130319. Result:='UIEvent';
  130320. end;
  130321. class function TJSUIEvent.Cast(const Intf: IJSObject): IJSUIEvent;
  130322. begin
  130323. Result:=TJSUIEvent.JOBCast(Intf);
  130324. end;
  130325. function TJSUIEventInit._Getview: IJSWindow;
  130326. begin
  130327. Result:=ReadJSPropertyObject('view',TJSWindow) as IJSWindow;
  130328. end;
  130329. function TJSUIEventInit._Getdetail: LongInt;
  130330. begin
  130331. Result:=ReadJSPropertyLongInt('detail');
  130332. end;
  130333. procedure TJSUIEventInit._Setview(const aValue : IJSWindow);
  130334. begin
  130335. WriteJSPropertyObject('view',aValue);
  130336. end;
  130337. procedure TJSUIEventInit._Setdetail(const aValue : LongInt);
  130338. begin
  130339. WriteJSPropertyLongInt('detail',aValue);
  130340. end;
  130341. class function TJSUIEventInit.JSClassName: UnicodeString;
  130342. begin
  130343. Result:='Object';
  130344. end;
  130345. class function TJSUIEventInit.Cast(const Intf: IJSObject): IJSUIEventInit;
  130346. begin
  130347. Result:=TJSUIEventInit.JOBCast(Intf);
  130348. end;
  130349. function TJSEventModifierInit._GetctrlKey: Boolean;
  130350. begin
  130351. Result:=ReadJSPropertyBoolean('ctrlKey');
  130352. end;
  130353. function TJSEventModifierInit._GetshiftKey: Boolean;
  130354. begin
  130355. Result:=ReadJSPropertyBoolean('shiftKey');
  130356. end;
  130357. function TJSEventModifierInit._GetaltKey: Boolean;
  130358. begin
  130359. Result:=ReadJSPropertyBoolean('altKey');
  130360. end;
  130361. function TJSEventModifierInit._GetmetaKey: Boolean;
  130362. begin
  130363. Result:=ReadJSPropertyBoolean('metaKey');
  130364. end;
  130365. function TJSEventModifierInit._GetmodifierAltGraph: Boolean;
  130366. begin
  130367. Result:=ReadJSPropertyBoolean('modifierAltGraph');
  130368. end;
  130369. function TJSEventModifierInit._GetmodifierCapsLock: Boolean;
  130370. begin
  130371. Result:=ReadJSPropertyBoolean('modifierCapsLock');
  130372. end;
  130373. function TJSEventModifierInit._GetmodifierFn: Boolean;
  130374. begin
  130375. Result:=ReadJSPropertyBoolean('modifierFn');
  130376. end;
  130377. function TJSEventModifierInit._GetmodifierFnLock: Boolean;
  130378. begin
  130379. Result:=ReadJSPropertyBoolean('modifierFnLock');
  130380. end;
  130381. function TJSEventModifierInit._GetmodifierNumLock: Boolean;
  130382. begin
  130383. Result:=ReadJSPropertyBoolean('modifierNumLock');
  130384. end;
  130385. function TJSEventModifierInit._GetmodifierOS: Boolean;
  130386. begin
  130387. Result:=ReadJSPropertyBoolean('modifierOS');
  130388. end;
  130389. function TJSEventModifierInit._GetmodifierScrollLock: Boolean;
  130390. begin
  130391. Result:=ReadJSPropertyBoolean('modifierScrollLock');
  130392. end;
  130393. function TJSEventModifierInit._GetmodifierSymbol: Boolean;
  130394. begin
  130395. Result:=ReadJSPropertyBoolean('modifierSymbol');
  130396. end;
  130397. function TJSEventModifierInit._GetmodifierSymbolLock: Boolean;
  130398. begin
  130399. Result:=ReadJSPropertyBoolean('modifierSymbolLock');
  130400. end;
  130401. procedure TJSEventModifierInit._SetctrlKey(const aValue : Boolean);
  130402. begin
  130403. WriteJSPropertyBoolean('ctrlKey',aValue);
  130404. end;
  130405. procedure TJSEventModifierInit._SetshiftKey(const aValue : Boolean);
  130406. begin
  130407. WriteJSPropertyBoolean('shiftKey',aValue);
  130408. end;
  130409. procedure TJSEventModifierInit._SetaltKey(const aValue : Boolean);
  130410. begin
  130411. WriteJSPropertyBoolean('altKey',aValue);
  130412. end;
  130413. procedure TJSEventModifierInit._SetmetaKey(const aValue : Boolean);
  130414. begin
  130415. WriteJSPropertyBoolean('metaKey',aValue);
  130416. end;
  130417. procedure TJSEventModifierInit._SetmodifierAltGraph(const aValue : Boolean);
  130418. begin
  130419. WriteJSPropertyBoolean('modifierAltGraph',aValue);
  130420. end;
  130421. procedure TJSEventModifierInit._SetmodifierCapsLock(const aValue : Boolean);
  130422. begin
  130423. WriteJSPropertyBoolean('modifierCapsLock',aValue);
  130424. end;
  130425. procedure TJSEventModifierInit._SetmodifierFn(const aValue : Boolean);
  130426. begin
  130427. WriteJSPropertyBoolean('modifierFn',aValue);
  130428. end;
  130429. procedure TJSEventModifierInit._SetmodifierFnLock(const aValue : Boolean);
  130430. begin
  130431. WriteJSPropertyBoolean('modifierFnLock',aValue);
  130432. end;
  130433. procedure TJSEventModifierInit._SetmodifierNumLock(const aValue : Boolean);
  130434. begin
  130435. WriteJSPropertyBoolean('modifierNumLock',aValue);
  130436. end;
  130437. procedure TJSEventModifierInit._SetmodifierOS(const aValue : Boolean);
  130438. begin
  130439. WriteJSPropertyBoolean('modifierOS',aValue);
  130440. end;
  130441. procedure TJSEventModifierInit._SetmodifierScrollLock(const aValue : Boolean);
  130442. begin
  130443. WriteJSPropertyBoolean('modifierScrollLock',aValue);
  130444. end;
  130445. procedure TJSEventModifierInit._SetmodifierSymbol(const aValue : Boolean);
  130446. begin
  130447. WriteJSPropertyBoolean('modifierSymbol',aValue);
  130448. end;
  130449. procedure TJSEventModifierInit._SetmodifierSymbolLock(const aValue : Boolean);
  130450. begin
  130451. WriteJSPropertyBoolean('modifierSymbolLock',aValue);
  130452. end;
  130453. class function TJSEventModifierInit.JSClassName: UnicodeString;
  130454. begin
  130455. Result:='Object';
  130456. end;
  130457. class function TJSEventModifierInit.Cast(const Intf: IJSObject): IJSEventModifierInit;
  130458. begin
  130459. Result:=TJSEventModifierInit.JOBCast(Intf);
  130460. end;
  130461. function TJSUnderlyingSink._Getstart: TUnderlyingSinkStartCallback;
  130462. begin
  130463. Result:=(TUnderlyingSinkStartCallback(ReadJSPropertyMethod('start')));
  130464. end;
  130465. function TJSUnderlyingSink._Getwrite: TUnderlyingSinkWriteCallback;
  130466. begin
  130467. Result:=(TUnderlyingSinkWriteCallback(ReadJSPropertyMethod('write')));
  130468. end;
  130469. function TJSUnderlyingSink._Getclose: TUnderlyingSinkCloseCallback;
  130470. begin
  130471. Result:=(TUnderlyingSinkCloseCallback(ReadJSPropertyMethod('close')));
  130472. end;
  130473. function TJSUnderlyingSink._Getabort: TUnderlyingSinkAbortCallback;
  130474. begin
  130475. Result:=(TUnderlyingSinkAbortCallback(ReadJSPropertyMethod('abort')));
  130476. end;
  130477. function TJSUnderlyingSink._Gettype_: Variant;
  130478. begin
  130479. Result:=ReadJSPropertyVariant('type');
  130480. end;
  130481. procedure TJSUnderlyingSink._Setstart(const aValue : TUnderlyingSinkStartCallback);
  130482. begin
  130483. WriteJSPropertyMethod('start',TMethod(aValue));
  130484. end;
  130485. procedure TJSUnderlyingSink._Setwrite(const aValue : TUnderlyingSinkWriteCallback);
  130486. begin
  130487. WriteJSPropertyMethod('write',TMethod(aValue));
  130488. end;
  130489. procedure TJSUnderlyingSink._Setclose(const aValue : TUnderlyingSinkCloseCallback);
  130490. begin
  130491. WriteJSPropertyMethod('close',TMethod(aValue));
  130492. end;
  130493. procedure TJSUnderlyingSink._Setabort(const aValue : TUnderlyingSinkAbortCallback);
  130494. begin
  130495. WriteJSPropertyMethod('abort',TMethod(aValue));
  130496. end;
  130497. procedure TJSUnderlyingSink._Settype_(const aValue : Variant);
  130498. begin
  130499. WriteJSPropertyVariant('type',aValue);
  130500. end;
  130501. class function TJSUnderlyingSink.JSClassName: UnicodeString;
  130502. begin
  130503. Result:='Object';
  130504. end;
  130505. class function TJSUnderlyingSink.Cast(const Intf: IJSObject): IJSUnderlyingSink;
  130506. begin
  130507. Result:=TJSUnderlyingSink.JOBCast(Intf);
  130508. end;
  130509. function TJSUnderlyingSource._Getstart: TUnderlyingSourceStartCallback;
  130510. begin
  130511. Result:=(TUnderlyingSourceStartCallback(ReadJSPropertyMethod('start')));
  130512. end;
  130513. function TJSUnderlyingSource._Getpull: TUnderlyingSourcePullCallback;
  130514. begin
  130515. Result:=(TUnderlyingSourcePullCallback(ReadJSPropertyMethod('pull')));
  130516. end;
  130517. function TJSUnderlyingSource._Getcancel: TUnderlyingSourceCancelCallback;
  130518. begin
  130519. Result:=(TUnderlyingSourceCancelCallback(ReadJSPropertyMethod('cancel')));
  130520. end;
  130521. function TJSUnderlyingSource._Gettype_: TReadableStreamType;
  130522. begin
  130523. Result:=ReadJSPropertyUnicodeString('type');
  130524. end;
  130525. function TJSUnderlyingSource._GetautoAllocateChunkSize: QWord;
  130526. begin
  130527. Result:=ReadJSPropertyInt64('autoAllocateChunkSize');
  130528. end;
  130529. procedure TJSUnderlyingSource._Setstart(const aValue : TUnderlyingSourceStartCallback);
  130530. begin
  130531. WriteJSPropertyMethod('start',TMethod(aValue));
  130532. end;
  130533. procedure TJSUnderlyingSource._Setpull(const aValue : TUnderlyingSourcePullCallback);
  130534. begin
  130535. WriteJSPropertyMethod('pull',TMethod(aValue));
  130536. end;
  130537. procedure TJSUnderlyingSource._Setcancel(const aValue : TUnderlyingSourceCancelCallback);
  130538. begin
  130539. WriteJSPropertyMethod('cancel',TMethod(aValue));
  130540. end;
  130541. procedure TJSUnderlyingSource._Settype_(const aValue : TReadableStreamType);
  130542. begin
  130543. WriteJSPropertyUnicodeString('type',aValue);
  130544. end;
  130545. procedure TJSUnderlyingSource._SetautoAllocateChunkSize(const aValue : QWord);
  130546. begin
  130547. WriteJSPropertyDouble('autoAllocateChunkSize',aValue);
  130548. end;
  130549. class function TJSUnderlyingSource.JSClassName: UnicodeString;
  130550. begin
  130551. Result:='Object';
  130552. end;
  130553. class function TJSUnderlyingSource.Cast(const Intf: IJSObject): IJSUnderlyingSource;
  130554. begin
  130555. Result:=TJSUnderlyingSource.JOBCast(Intf);
  130556. end;
  130557. function TJSURL._Gethref: UnicodeString;
  130558. begin
  130559. Result:=ReadJSPropertyUnicodeString('href');
  130560. end;
  130561. function TJSURL._Getorigin: UnicodeString;
  130562. begin
  130563. Result:=ReadJSPropertyUnicodeString('origin');
  130564. end;
  130565. function TJSURL._Getprotocol: UnicodeString;
  130566. begin
  130567. Result:=ReadJSPropertyUnicodeString('protocol');
  130568. end;
  130569. function TJSURL._Getusername: UnicodeString;
  130570. begin
  130571. Result:=ReadJSPropertyUnicodeString('username');
  130572. end;
  130573. function TJSURL._Getpassword: UnicodeString;
  130574. begin
  130575. Result:=ReadJSPropertyUnicodeString('password');
  130576. end;
  130577. function TJSURL._Gethost: UnicodeString;
  130578. begin
  130579. Result:=ReadJSPropertyUnicodeString('host');
  130580. end;
  130581. function TJSURL._Gethostname: UnicodeString;
  130582. begin
  130583. Result:=ReadJSPropertyUnicodeString('hostname');
  130584. end;
  130585. function TJSURL._Getport: UnicodeString;
  130586. begin
  130587. Result:=ReadJSPropertyUnicodeString('port');
  130588. end;
  130589. function TJSURL._Getpathname: UnicodeString;
  130590. begin
  130591. Result:=ReadJSPropertyUnicodeString('pathname');
  130592. end;
  130593. function TJSURL._Getsearch: UnicodeString;
  130594. begin
  130595. Result:=ReadJSPropertyUnicodeString('search');
  130596. end;
  130597. function TJSURL._GetsearchParams: IJSURLSearchParams;
  130598. begin
  130599. Result:=ReadJSPropertyObject('searchParams',TJSURLSearchParams) as IJSURLSearchParams;
  130600. end;
  130601. function TJSURL._Gethash: UnicodeString;
  130602. begin
  130603. Result:=ReadJSPropertyUnicodeString('hash');
  130604. end;
  130605. procedure TJSURL._Setprotocol(const aValue : UnicodeString);
  130606. begin
  130607. WriteJSPropertyUnicodeString('protocol',aValue);
  130608. end;
  130609. procedure TJSURL._Setusername(const aValue : UnicodeString);
  130610. begin
  130611. WriteJSPropertyUnicodeString('username',aValue);
  130612. end;
  130613. procedure TJSURL._Setpassword(const aValue : UnicodeString);
  130614. begin
  130615. WriteJSPropertyUnicodeString('password',aValue);
  130616. end;
  130617. procedure TJSURL._Sethost(const aValue : UnicodeString);
  130618. begin
  130619. WriteJSPropertyUnicodeString('host',aValue);
  130620. end;
  130621. procedure TJSURL._Sethostname(const aValue : UnicodeString);
  130622. begin
  130623. WriteJSPropertyUnicodeString('hostname',aValue);
  130624. end;
  130625. procedure TJSURL._Setport(const aValue : UnicodeString);
  130626. begin
  130627. WriteJSPropertyUnicodeString('port',aValue);
  130628. end;
  130629. procedure TJSURL._Setpathname(const aValue : UnicodeString);
  130630. begin
  130631. WriteJSPropertyUnicodeString('pathname',aValue);
  130632. end;
  130633. procedure TJSURL._Setsearch(const aValue : UnicodeString);
  130634. begin
  130635. WriteJSPropertyUnicodeString('search',aValue);
  130636. end;
  130637. procedure TJSURL._Sethash(const aValue : UnicodeString);
  130638. begin
  130639. WriteJSPropertyUnicodeString('hash',aValue);
  130640. end;
  130641. constructor TJSURL.Create(const aUrl: UnicodeString; const aBase: UnicodeString);
  130642. begin
  130643. JOBCreate([aUrl,aBase]);
  130644. end;
  130645. constructor TJSURL.Create(const aUrl: UnicodeString);
  130646. begin
  130647. JOBCreate([aUrl]);
  130648. end;
  130649. function TJSURL.parse(const aUrl: UTF8String; const aBase: UTF8String): IJSURL;
  130650. begin
  130651. Result:=InvokeJSObjectResult('parse',[aUrl,aBase],TJSURL) as IJSURL;
  130652. end;
  130653. function TJSURL.parse(const aUrl: UTF8String): IJSURL;
  130654. begin
  130655. Result:=InvokeJSObjectResult('parse',[aUrl],TJSURL) as IJSURL;
  130656. end;
  130657. function TJSURL.canParse(const aUrl: UTF8String; const aBase: UTF8String): Boolean;
  130658. begin
  130659. Result:=InvokeJSBooleanResult('canParse',[aUrl,aBase]);
  130660. end;
  130661. function TJSURL.canParse(const aUrl: UTF8String): Boolean;
  130662. begin
  130663. Result:=InvokeJSBooleanResult('canParse',[aUrl]);
  130664. end;
  130665. function TJSURL.toJSON: UnicodeString;
  130666. begin
  130667. Result:=InvokeJSUnicodeStringResult('toJSON',[]);
  130668. end;
  130669. function TJSURL.createObjectURL(aBlob: IJSBlob): UnicodeString;
  130670. begin
  130671. Result:=InvokeJSUnicodeStringResult('createObjectURL',[aBlob]);
  130672. end;
  130673. procedure TJSURL.revokeObjectURL(const aUrl: UnicodeString);
  130674. begin
  130675. InvokeJSNoResult('revokeObjectURL',[aUrl]);
  130676. end;
  130677. function TJSURL.createObjectURL(aSource: IJSMediaSource): UnicodeString;
  130678. begin
  130679. Result:=InvokeJSUnicodeStringResult('createObjectURL',[aSource]);
  130680. end;
  130681. class function TJSURL.JSClassName: UnicodeString;
  130682. begin
  130683. Result:='URL';
  130684. end;
  130685. class function TJSURL.Cast(const Intf: IJSObject): IJSURL;
  130686. begin
  130687. Result:=TJSURL.JOBCast(Intf);
  130688. end;
  130689. function TJSURLSearchParams._Getsize: Cardinal;
  130690. begin
  130691. Result:=ReadJSPropertyInt64('size');
  130692. end;
  130693. constructor TJSURLSearchParams.Create(aInit: IJSObject);
  130694. begin
  130695. JOBCreate([aInit]);
  130696. end;
  130697. constructor TJSURLSearchParams.Create;
  130698. begin
  130699. JOBCreate([]);
  130700. end;
  130701. constructor TJSURLSearchParams.Create(const aInit: TsequenceDynArrayDynArray);
  130702. begin
  130703. JOBCreate([aInit]);
  130704. end;
  130705. constructor TJSURLSearchParams.Create(const aInit: UnicodeString);
  130706. begin
  130707. JOBCreate([aInit]);
  130708. end;
  130709. procedure TJSURLSearchParams.append(const aName: UnicodeString; const aValue: UnicodeString);
  130710. begin
  130711. InvokeJSNoResult('append',[aName,aValue]);
  130712. end;
  130713. procedure TJSURLSearchParams.delete(const aName: UnicodeString; const aValue: UnicodeString);
  130714. begin
  130715. InvokeJSNoResult('delete',[aName,aValue]);
  130716. end;
  130717. procedure TJSURLSearchParams.delete(const aName: UnicodeString);
  130718. begin
  130719. InvokeJSNoResult('delete',[aName]);
  130720. end;
  130721. function TJSURLSearchParams.get(const aName: UnicodeString): UnicodeString;
  130722. begin
  130723. Result:=InvokeJSUnicodeStringResult('get',[aName]);
  130724. end;
  130725. function TJSURLSearchParams.getAll(const aName: UnicodeString): TUnicodeStringDynArray;
  130726. begin
  130727. Result:=InvokeJSObjectResult('getAll',[aName],TJSArray) as TUnicodeStringDynArray;
  130728. end;
  130729. function TJSURLSearchParams.has(const aName: UnicodeString; const aValue: UnicodeString): Boolean;
  130730. begin
  130731. Result:=InvokeJSBooleanResult('has',[aName,aValue]);
  130732. end;
  130733. function TJSURLSearchParams.has(const aName: UnicodeString): Boolean;
  130734. begin
  130735. Result:=InvokeJSBooleanResult('has',[aName]);
  130736. end;
  130737. procedure TJSURLSearchParams.set_(const aName: UnicodeString; const aValue: UnicodeString);
  130738. begin
  130739. InvokeJSNoResult('set',[aName,aValue]);
  130740. end;
  130741. procedure TJSURLSearchParams.sort;
  130742. begin
  130743. InvokeJSNoResult('sort',[]);
  130744. end;
  130745. class function TJSURLSearchParams.JSClassName: UnicodeString;
  130746. begin
  130747. Result:='URLSearchParams';
  130748. end;
  130749. class function TJSURLSearchParams.Cast(const Intf: IJSObject): IJSURLSearchParams;
  130750. begin
  130751. Result:=TJSURLSearchParams.JOBCast(Intf);
  130752. end;
  130753. function TJSUserActivation._GethasBeenActive: Boolean;
  130754. begin
  130755. Result:=ReadJSPropertyBoolean('hasBeenActive');
  130756. end;
  130757. function TJSUserActivation._GetisActive: Boolean;
  130758. begin
  130759. Result:=ReadJSPropertyBoolean('isActive');
  130760. end;
  130761. class function TJSUserActivation.JSClassName: UnicodeString;
  130762. begin
  130763. Result:='UserActivation';
  130764. end;
  130765. class function TJSUserActivation.Cast(const Intf: IJSObject): IJSUserActivation;
  130766. begin
  130767. Result:=TJSUserActivation.JOBCast(Intf);
  130768. end;
  130769. function TJSUserProximityEvent._Getnear: Boolean;
  130770. begin
  130771. Result:=ReadJSPropertyBoolean('near');
  130772. end;
  130773. constructor TJSUserProximityEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSUserProximityEventInit);
  130774. begin
  130775. JOBCreate([aType_,aEventInitDict]);
  130776. end;
  130777. constructor TJSUserProximityEvent.Create(const aType_: UnicodeString);
  130778. begin
  130779. JOBCreate([aType_]);
  130780. end;
  130781. class function TJSUserProximityEvent.JSClassName: UnicodeString;
  130782. begin
  130783. Result:='UserProximityEvent';
  130784. end;
  130785. class function TJSUserProximityEvent.Cast(const Intf: IJSObject): IJSUserProximityEvent;
  130786. begin
  130787. Result:=TJSUserProximityEvent.JOBCast(Intf);
  130788. end;
  130789. function TJSUserProximityEventInit._Getnear: Boolean;
  130790. begin
  130791. Result:=ReadJSPropertyBoolean('near');
  130792. end;
  130793. procedure TJSUserProximityEventInit._Setnear(const aValue : Boolean);
  130794. begin
  130795. WriteJSPropertyBoolean('near',aValue);
  130796. end;
  130797. class function TJSUserProximityEventInit.JSClassName: UnicodeString;
  130798. begin
  130799. Result:='Object';
  130800. end;
  130801. class function TJSUserProximityEventInit.Cast(const Intf: IJSObject): IJSUserProximityEventInit;
  130802. begin
  130803. Result:=TJSUserProximityEventInit.JOBCast(Intf);
  130804. end;
  130805. function TJSValidityState._GetvalueMissing: Boolean;
  130806. begin
  130807. Result:=ReadJSPropertyBoolean('valueMissing');
  130808. end;
  130809. function TJSValidityState._GettypeMismatch: Boolean;
  130810. begin
  130811. Result:=ReadJSPropertyBoolean('typeMismatch');
  130812. end;
  130813. function TJSValidityState._GetpatternMismatch: Boolean;
  130814. begin
  130815. Result:=ReadJSPropertyBoolean('patternMismatch');
  130816. end;
  130817. function TJSValidityState._GettooLong: Boolean;
  130818. begin
  130819. Result:=ReadJSPropertyBoolean('tooLong');
  130820. end;
  130821. function TJSValidityState._GettooShort: Boolean;
  130822. begin
  130823. Result:=ReadJSPropertyBoolean('tooShort');
  130824. end;
  130825. function TJSValidityState._GetrangeUnderflow: Boolean;
  130826. begin
  130827. Result:=ReadJSPropertyBoolean('rangeUnderflow');
  130828. end;
  130829. function TJSValidityState._GetrangeOverflow: Boolean;
  130830. begin
  130831. Result:=ReadJSPropertyBoolean('rangeOverflow');
  130832. end;
  130833. function TJSValidityState._GetstepMismatch: Boolean;
  130834. begin
  130835. Result:=ReadJSPropertyBoolean('stepMismatch');
  130836. end;
  130837. function TJSValidityState._GetbadInput: Boolean;
  130838. begin
  130839. Result:=ReadJSPropertyBoolean('badInput');
  130840. end;
  130841. function TJSValidityState._GetcustomError: Boolean;
  130842. begin
  130843. Result:=ReadJSPropertyBoolean('customError');
  130844. end;
  130845. function TJSValidityState._Getvalid: Boolean;
  130846. begin
  130847. Result:=ReadJSPropertyBoolean('valid');
  130848. end;
  130849. class function TJSValidityState.JSClassName: UnicodeString;
  130850. begin
  130851. Result:='ValidityState';
  130852. end;
  130853. class function TJSValidityState.Cast(const Intf: IJSObject): IJSValidityState;
  130854. begin
  130855. Result:=TJSValidityState.JOBCast(Intf);
  130856. end;
  130857. function TJSVideoColorSpace._Getprimaries: TVideoColorPrimaries;
  130858. begin
  130859. Result:=ReadJSPropertyUnicodeString('primaries');
  130860. end;
  130861. function TJSVideoColorSpace._Gettransfer: TVideoTransferCharacteristics;
  130862. begin
  130863. Result:=ReadJSPropertyUnicodeString('transfer');
  130864. end;
  130865. function TJSVideoColorSpace._Getmatrix: TVideoMatrixCoefficients;
  130866. begin
  130867. Result:=ReadJSPropertyUnicodeString('matrix');
  130868. end;
  130869. function TJSVideoColorSpace._GetfullRange: Boolean;
  130870. begin
  130871. Result:=ReadJSPropertyBoolean('fullRange');
  130872. end;
  130873. constructor TJSVideoColorSpace.Create(const aInit: TJSVideoColorSpaceInit);
  130874. begin
  130875. JOBCreate([aInit]);
  130876. end;
  130877. constructor TJSVideoColorSpace.Create;
  130878. begin
  130879. JOBCreate([]);
  130880. end;
  130881. function TJSVideoColorSpace.toJSON: IJSObject;
  130882. begin
  130883. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  130884. end;
  130885. class function TJSVideoColorSpace.JSClassName: UnicodeString;
  130886. begin
  130887. Result:='VideoColorSpace';
  130888. end;
  130889. class function TJSVideoColorSpace.Cast(const Intf: IJSObject): IJSVideoColorSpace;
  130890. begin
  130891. Result:=TJSVideoColorSpace.JOBCast(Intf);
  130892. end;
  130893. function TJSVideoColorSpaceInit._Getprimaries: TVideoColorPrimaries;
  130894. begin
  130895. Result:=ReadJSPropertyUnicodeString('primaries');
  130896. end;
  130897. function TJSVideoColorSpaceInit._Gettransfer: TVideoTransferCharacteristics;
  130898. begin
  130899. Result:=ReadJSPropertyUnicodeString('transfer');
  130900. end;
  130901. function TJSVideoColorSpaceInit._Getmatrix: TVideoMatrixCoefficients;
  130902. begin
  130903. Result:=ReadJSPropertyUnicodeString('matrix');
  130904. end;
  130905. function TJSVideoColorSpaceInit._GetfullRange: Boolean;
  130906. begin
  130907. Result:=ReadJSPropertyBoolean('fullRange');
  130908. end;
  130909. procedure TJSVideoColorSpaceInit._Setprimaries(const aValue : TVideoColorPrimaries);
  130910. begin
  130911. WriteJSPropertyUnicodeString('primaries',aValue);
  130912. end;
  130913. procedure TJSVideoColorSpaceInit._Settransfer(const aValue : TVideoTransferCharacteristics);
  130914. begin
  130915. WriteJSPropertyUnicodeString('transfer',aValue);
  130916. end;
  130917. procedure TJSVideoColorSpaceInit._Setmatrix(const aValue : TVideoMatrixCoefficients);
  130918. begin
  130919. WriteJSPropertyUnicodeString('matrix',aValue);
  130920. end;
  130921. procedure TJSVideoColorSpaceInit._SetfullRange(const aValue : Boolean);
  130922. begin
  130923. WriteJSPropertyBoolean('fullRange',aValue);
  130924. end;
  130925. class function TJSVideoColorSpaceInit.JSClassName: UnicodeString;
  130926. begin
  130927. Result:='Object';
  130928. end;
  130929. class function TJSVideoColorSpaceInit.Cast(const Intf: IJSObject): IJSVideoColorSpaceInit;
  130930. begin
  130931. Result:=TJSVideoColorSpaceInit.JOBCast(Intf);
  130932. end;
  130933. function TJSVideoDecoder._Getstate: TCodecState;
  130934. begin
  130935. Result:=ReadJSPropertyUnicodeString('state');
  130936. end;
  130937. function TJSVideoDecoder._GetdecodeQueueSize: Cardinal;
  130938. begin
  130939. Result:=ReadJSPropertyInt64('decodeQueueSize');
  130940. end;
  130941. function TJSVideoDecoder._Getondequeue: TEventHandler;
  130942. begin
  130943. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondequeue')));
  130944. end;
  130945. procedure TJSVideoDecoder._Setondequeue(const aValue : TEventHandler);
  130946. begin
  130947. WriteJSPropertyMethod('ondequeue',TMethod(aValue));
  130948. end;
  130949. constructor TJSVideoDecoder.Create(const aInit: TJSVideoDecoderInit);
  130950. begin
  130951. JOBCreate([aInit]);
  130952. end;
  130953. procedure TJSVideoDecoder.configure(const aConfig: TJSVideoDecoderConfig);
  130954. begin
  130955. InvokeJSNoResult('configure',[aConfig]);
  130956. end;
  130957. procedure TJSVideoDecoder.decode(aChunk: IJSEncodedVideoChunk);
  130958. begin
  130959. InvokeJSNoResult('decode',[aChunk]);
  130960. end;
  130961. function TJSVideoDecoder.flush: IJSPromise; // Promise<undefined>
  130962. begin
  130963. Result:=InvokeJSObjectResult('flush',[],TJSPromise) as IJSPromise;
  130964. end;
  130965. procedure TJSVideoDecoder.reset;
  130966. begin
  130967. InvokeJSNoResult('reset',[]);
  130968. end;
  130969. procedure TJSVideoDecoder.close;
  130970. begin
  130971. InvokeJSNoResult('close',[]);
  130972. end;
  130973. function TJSVideoDecoder.isConfigSupported(const aConfig: TJSVideoDecoderConfig): IJSPromise; // Promise<VideoDecoderSupport>
  130974. begin
  130975. Result:=InvokeJSObjectResult('isConfigSupported',[aConfig],TJSPromise) as IJSPromise;
  130976. end;
  130977. class function TJSVideoDecoder.JSClassName: UnicodeString;
  130978. begin
  130979. Result:='VideoDecoder';
  130980. end;
  130981. class function TJSVideoDecoder.Cast(const Intf: IJSObject): IJSVideoDecoder;
  130982. begin
  130983. Result:=TJSVideoDecoder.JOBCast(Intf);
  130984. end;
  130985. function TJSVideoDecoderInit._Getoutput: TVideoFrameOutputCallback;
  130986. begin
  130987. Result:=(TVideoFrameOutputCallback(ReadJSPropertyMethod('output')));
  130988. end;
  130989. function TJSVideoDecoderInit._Geterror: TWebCodecsErrorCallback;
  130990. begin
  130991. Result:=(TWebCodecsErrorCallback(ReadJSPropertyMethod('error')));
  130992. end;
  130993. procedure TJSVideoDecoderInit._Setoutput(const aValue : TVideoFrameOutputCallback);
  130994. begin
  130995. WriteJSPropertyMethod('output',TMethod(aValue));
  130996. end;
  130997. procedure TJSVideoDecoderInit._Seterror(const aValue : TWebCodecsErrorCallback);
  130998. begin
  130999. WriteJSPropertyMethod('error',TMethod(aValue));
  131000. end;
  131001. class function TJSVideoDecoderInit.JSClassName: UnicodeString;
  131002. begin
  131003. Result:='Object';
  131004. end;
  131005. class function TJSVideoDecoderInit.Cast(const Intf: IJSObject): IJSVideoDecoderInit;
  131006. begin
  131007. Result:=TJSVideoDecoderInit.JOBCast(Intf);
  131008. end;
  131009. function TJSVideoDecoderSupport._Getsupported: Boolean;
  131010. begin
  131011. Result:=ReadJSPropertyBoolean('supported');
  131012. end;
  131013. function TJSVideoDecoderSupport._Getconfig: TJSVideoDecoderConfig;
  131014. begin
  131015. Result:=ReadJSPropertyObject('config',TJSVideoDecoderConfig) as TJSVideoDecoderConfig;
  131016. end;
  131017. procedure TJSVideoDecoderSupport._Setsupported(const aValue : Boolean);
  131018. begin
  131019. WriteJSPropertyBoolean('supported',aValue);
  131020. end;
  131021. procedure TJSVideoDecoderSupport._Setconfig(const aValue : TJSVideoDecoderConfig);
  131022. begin
  131023. WriteJSPropertyObject('config',aValue);
  131024. end;
  131025. class function TJSVideoDecoderSupport.JSClassName: UnicodeString;
  131026. begin
  131027. Result:='Object';
  131028. end;
  131029. class function TJSVideoDecoderSupport.Cast(const Intf: IJSObject): IJSVideoDecoderSupport;
  131030. begin
  131031. Result:=TJSVideoDecoderSupport.JOBCast(Intf);
  131032. end;
  131033. function TJSVideoDecoderConfig._Getcodec: UnicodeString;
  131034. begin
  131035. Result:=ReadJSPropertyUnicodeString('codec');
  131036. end;
  131037. function TJSVideoDecoderConfig._Getdescription: TVideoDecoderConfig_description_Type;
  131038. begin
  131039. Result:=ReadJSPropertyVariant('description');
  131040. end;
  131041. function TJSVideoDecoderConfig._GetcodedWidth: Cardinal;
  131042. begin
  131043. Result:=ReadJSPropertyInt64('codedWidth');
  131044. end;
  131045. function TJSVideoDecoderConfig._GetcodedHeight: Cardinal;
  131046. begin
  131047. Result:=ReadJSPropertyInt64('codedHeight');
  131048. end;
  131049. function TJSVideoDecoderConfig._GetdisplayAspectWidth: Cardinal;
  131050. begin
  131051. Result:=ReadJSPropertyInt64('displayAspectWidth');
  131052. end;
  131053. function TJSVideoDecoderConfig._GetdisplayAspectHeight: Cardinal;
  131054. begin
  131055. Result:=ReadJSPropertyInt64('displayAspectHeight');
  131056. end;
  131057. function TJSVideoDecoderConfig._GetcolorSpace: TJSVideoColorSpaceInit;
  131058. begin
  131059. Result:=ReadJSPropertyObject('colorSpace',TJSVideoColorSpaceInit) as TJSVideoColorSpaceInit;
  131060. end;
  131061. function TJSVideoDecoderConfig._GethardwareAcceleration: THardwareAcceleration;
  131062. begin
  131063. Result:=ReadJSPropertyUnicodeString('hardwareAcceleration');
  131064. end;
  131065. function TJSVideoDecoderConfig._GetoptimizeForLatency: Boolean;
  131066. begin
  131067. Result:=ReadJSPropertyBoolean('optimizeForLatency');
  131068. end;
  131069. procedure TJSVideoDecoderConfig._Setcodec(const aValue : UnicodeString);
  131070. begin
  131071. WriteJSPropertyUnicodeString('codec',aValue);
  131072. end;
  131073. procedure TJSVideoDecoderConfig._Setdescription(const aValue : TVideoDecoderConfig_description_Type);
  131074. begin
  131075. WriteJSPropertyVariant('description',aValue);
  131076. end;
  131077. procedure TJSVideoDecoderConfig._SetcodedWidth(const aValue : Cardinal);
  131078. begin
  131079. WriteJSPropertyDouble('codedWidth',aValue);
  131080. end;
  131081. procedure TJSVideoDecoderConfig._SetcodedHeight(const aValue : Cardinal);
  131082. begin
  131083. WriteJSPropertyDouble('codedHeight',aValue);
  131084. end;
  131085. procedure TJSVideoDecoderConfig._SetdisplayAspectWidth(const aValue : Cardinal);
  131086. begin
  131087. WriteJSPropertyDouble('displayAspectWidth',aValue);
  131088. end;
  131089. procedure TJSVideoDecoderConfig._SetdisplayAspectHeight(const aValue : Cardinal);
  131090. begin
  131091. WriteJSPropertyDouble('displayAspectHeight',aValue);
  131092. end;
  131093. procedure TJSVideoDecoderConfig._SetcolorSpace(const aValue : TJSVideoColorSpaceInit);
  131094. begin
  131095. WriteJSPropertyObject('colorSpace',aValue);
  131096. end;
  131097. procedure TJSVideoDecoderConfig._SethardwareAcceleration(const aValue : THardwareAcceleration);
  131098. begin
  131099. WriteJSPropertyUnicodeString('hardwareAcceleration',aValue);
  131100. end;
  131101. procedure TJSVideoDecoderConfig._SetoptimizeForLatency(const aValue : Boolean);
  131102. begin
  131103. WriteJSPropertyBoolean('optimizeForLatency',aValue);
  131104. end;
  131105. class function TJSVideoDecoderConfig.JSClassName: UnicodeString;
  131106. begin
  131107. Result:='Object';
  131108. end;
  131109. class function TJSVideoDecoderConfig.Cast(const Intf: IJSObject): IJSVideoDecoderConfig;
  131110. begin
  131111. Result:=TJSVideoDecoderConfig.JOBCast(Intf);
  131112. end;
  131113. function TJSVideoEncoder._Getstate: TCodecState;
  131114. begin
  131115. Result:=ReadJSPropertyUnicodeString('state');
  131116. end;
  131117. function TJSVideoEncoder._GetencodeQueueSize: Cardinal;
  131118. begin
  131119. Result:=ReadJSPropertyInt64('encodeQueueSize');
  131120. end;
  131121. function TJSVideoEncoder._Getondequeue: TEventHandler;
  131122. begin
  131123. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondequeue')));
  131124. end;
  131125. procedure TJSVideoEncoder._Setondequeue(const aValue : TEventHandler);
  131126. begin
  131127. WriteJSPropertyMethod('ondequeue',TMethod(aValue));
  131128. end;
  131129. constructor TJSVideoEncoder.Create(const aInit: TJSVideoEncoderInit);
  131130. begin
  131131. JOBCreate([aInit]);
  131132. end;
  131133. procedure TJSVideoEncoder.configure(const aConfig: TJSVideoEncoderConfig);
  131134. begin
  131135. InvokeJSNoResult('configure',[aConfig]);
  131136. end;
  131137. procedure TJSVideoEncoder.encode(aFrame: IJSVideoFrame; const aOptions: TJSVideoEncoderEncodeOptions);
  131138. begin
  131139. InvokeJSNoResult('encode',[aFrame,aOptions]);
  131140. end;
  131141. procedure TJSVideoEncoder.encode(aFrame: IJSVideoFrame);
  131142. begin
  131143. InvokeJSNoResult('encode',[aFrame]);
  131144. end;
  131145. function TJSVideoEncoder.flush: IJSPromise; // Promise<undefined>
  131146. begin
  131147. Result:=InvokeJSObjectResult('flush',[],TJSPromise) as IJSPromise;
  131148. end;
  131149. procedure TJSVideoEncoder.reset;
  131150. begin
  131151. InvokeJSNoResult('reset',[]);
  131152. end;
  131153. procedure TJSVideoEncoder.close;
  131154. begin
  131155. InvokeJSNoResult('close',[]);
  131156. end;
  131157. function TJSVideoEncoder.isConfigSupported(const aConfig: TJSVideoEncoderConfig): IJSPromise; // Promise<VideoEncoderSupport>
  131158. begin
  131159. Result:=InvokeJSObjectResult('isConfigSupported',[aConfig],TJSPromise) as IJSPromise;
  131160. end;
  131161. class function TJSVideoEncoder.JSClassName: UnicodeString;
  131162. begin
  131163. Result:='VideoEncoder';
  131164. end;
  131165. class function TJSVideoEncoder.Cast(const Intf: IJSObject): IJSVideoEncoder;
  131166. begin
  131167. Result:=TJSVideoEncoder.JOBCast(Intf);
  131168. end;
  131169. function TJSVideoEncoderInit._Getoutput: TEncodedVideoChunkOutputCallback;
  131170. begin
  131171. Result:=(TEncodedVideoChunkOutputCallback(ReadJSPropertyMethod('output')));
  131172. end;
  131173. function TJSVideoEncoderInit._Geterror: TWebCodecsErrorCallback;
  131174. begin
  131175. Result:=(TWebCodecsErrorCallback(ReadJSPropertyMethod('error')));
  131176. end;
  131177. procedure TJSVideoEncoderInit._Setoutput(const aValue : TEncodedVideoChunkOutputCallback);
  131178. begin
  131179. WriteJSPropertyMethod('output',TMethod(aValue));
  131180. end;
  131181. procedure TJSVideoEncoderInit._Seterror(const aValue : TWebCodecsErrorCallback);
  131182. begin
  131183. WriteJSPropertyMethod('error',TMethod(aValue));
  131184. end;
  131185. class function TJSVideoEncoderInit.JSClassName: UnicodeString;
  131186. begin
  131187. Result:='Object';
  131188. end;
  131189. class function TJSVideoEncoderInit.Cast(const Intf: IJSObject): IJSVideoEncoderInit;
  131190. begin
  131191. Result:=TJSVideoEncoderInit.JOBCast(Intf);
  131192. end;
  131193. function TJSAvcEncoderConfig._Getformat: TAvcBitstreamFormat;
  131194. begin
  131195. Result:=ReadJSPropertyUnicodeString('format');
  131196. end;
  131197. procedure TJSAvcEncoderConfig._Setformat(const aValue : TAvcBitstreamFormat);
  131198. begin
  131199. WriteJSPropertyUnicodeString('format',aValue);
  131200. end;
  131201. class function TJSAvcEncoderConfig.JSClassName: UnicodeString;
  131202. begin
  131203. Result:='Object';
  131204. end;
  131205. class function TJSAvcEncoderConfig.Cast(const Intf: IJSObject): IJSAvcEncoderConfig;
  131206. begin
  131207. Result:=TJSAvcEncoderConfig.JOBCast(Intf);
  131208. end;
  131209. function TJSVideoEncoderConfig._Getcodec: UnicodeString;
  131210. begin
  131211. Result:=ReadJSPropertyUnicodeString('codec');
  131212. end;
  131213. function TJSVideoEncoderConfig._Getwidth: Cardinal;
  131214. begin
  131215. Result:=ReadJSPropertyInt64('width');
  131216. end;
  131217. function TJSVideoEncoderConfig._Getheight: Cardinal;
  131218. begin
  131219. Result:=ReadJSPropertyInt64('height');
  131220. end;
  131221. function TJSVideoEncoderConfig._GetdisplayWidth: Cardinal;
  131222. begin
  131223. Result:=ReadJSPropertyInt64('displayWidth');
  131224. end;
  131225. function TJSVideoEncoderConfig._GetdisplayHeight: Cardinal;
  131226. begin
  131227. Result:=ReadJSPropertyInt64('displayHeight');
  131228. end;
  131229. function TJSVideoEncoderConfig._Getbitrate: QWord;
  131230. begin
  131231. Result:=ReadJSPropertyInt64('bitrate');
  131232. end;
  131233. function TJSVideoEncoderConfig._Getframerate: Double;
  131234. begin
  131235. Result:=ReadJSPropertyDouble('framerate');
  131236. end;
  131237. function TJSVideoEncoderConfig._GethardwareAcceleration: THardwareAcceleration;
  131238. begin
  131239. Result:=ReadJSPropertyUnicodeString('hardwareAcceleration');
  131240. end;
  131241. function TJSVideoEncoderConfig._Getalpha: TAlphaOption;
  131242. begin
  131243. Result:=ReadJSPropertyUnicodeString('alpha');
  131244. end;
  131245. function TJSVideoEncoderConfig._GetscalabilityMode: UnicodeString;
  131246. begin
  131247. Result:=ReadJSPropertyUnicodeString('scalabilityMode');
  131248. end;
  131249. function TJSVideoEncoderConfig._GetbitrateMode: TVideoEncoderBitrateMode;
  131250. begin
  131251. Result:=ReadJSPropertyUnicodeString('bitrateMode');
  131252. end;
  131253. function TJSVideoEncoderConfig._GetlatencyMode: TLatencyMode;
  131254. begin
  131255. Result:=ReadJSPropertyUnicodeString('latencyMode');
  131256. end;
  131257. function TJSVideoEncoderConfig._GetcontentHint: UnicodeString;
  131258. begin
  131259. Result:=ReadJSPropertyUnicodeString('contentHint');
  131260. end;
  131261. function TJSVideoEncoderConfig._Getavc: TJSAvcEncoderConfig;
  131262. begin
  131263. Result:=ReadJSPropertyObject('avc',TJSAvcEncoderConfig) as TJSAvcEncoderConfig;
  131264. end;
  131265. procedure TJSVideoEncoderConfig._Setcodec(const aValue : UnicodeString);
  131266. begin
  131267. WriteJSPropertyUnicodeString('codec',aValue);
  131268. end;
  131269. procedure TJSVideoEncoderConfig._Setwidth(const aValue : Cardinal);
  131270. begin
  131271. WriteJSPropertyDouble('width',aValue);
  131272. end;
  131273. procedure TJSVideoEncoderConfig._Setheight(const aValue : Cardinal);
  131274. begin
  131275. WriteJSPropertyDouble('height',aValue);
  131276. end;
  131277. procedure TJSVideoEncoderConfig._SetdisplayWidth(const aValue : Cardinal);
  131278. begin
  131279. WriteJSPropertyDouble('displayWidth',aValue);
  131280. end;
  131281. procedure TJSVideoEncoderConfig._SetdisplayHeight(const aValue : Cardinal);
  131282. begin
  131283. WriteJSPropertyDouble('displayHeight',aValue);
  131284. end;
  131285. procedure TJSVideoEncoderConfig._Setbitrate(const aValue : QWord);
  131286. begin
  131287. WriteJSPropertyDouble('bitrate',aValue);
  131288. end;
  131289. procedure TJSVideoEncoderConfig._Setframerate(const aValue : Double);
  131290. begin
  131291. WriteJSPropertyDouble('framerate',aValue);
  131292. end;
  131293. procedure TJSVideoEncoderConfig._SethardwareAcceleration(const aValue : THardwareAcceleration);
  131294. begin
  131295. WriteJSPropertyUnicodeString('hardwareAcceleration',aValue);
  131296. end;
  131297. procedure TJSVideoEncoderConfig._Setalpha(const aValue : TAlphaOption);
  131298. begin
  131299. WriteJSPropertyUnicodeString('alpha',aValue);
  131300. end;
  131301. procedure TJSVideoEncoderConfig._SetscalabilityMode(const aValue : UnicodeString);
  131302. begin
  131303. WriteJSPropertyUnicodeString('scalabilityMode',aValue);
  131304. end;
  131305. procedure TJSVideoEncoderConfig._SetbitrateMode(const aValue : TVideoEncoderBitrateMode);
  131306. begin
  131307. WriteJSPropertyUnicodeString('bitrateMode',aValue);
  131308. end;
  131309. procedure TJSVideoEncoderConfig._SetlatencyMode(const aValue : TLatencyMode);
  131310. begin
  131311. WriteJSPropertyUnicodeString('latencyMode',aValue);
  131312. end;
  131313. procedure TJSVideoEncoderConfig._SetcontentHint(const aValue : UnicodeString);
  131314. begin
  131315. WriteJSPropertyUnicodeString('contentHint',aValue);
  131316. end;
  131317. procedure TJSVideoEncoderConfig._Setavc(const aValue : TJSAvcEncoderConfig);
  131318. begin
  131319. WriteJSPropertyObject('avc',aValue);
  131320. end;
  131321. class function TJSVideoEncoderConfig.JSClassName: UnicodeString;
  131322. begin
  131323. Result:='Object';
  131324. end;
  131325. class function TJSVideoEncoderConfig.Cast(const Intf: IJSObject): IJSVideoEncoderConfig;
  131326. begin
  131327. Result:=TJSVideoEncoderConfig.JOBCast(Intf);
  131328. end;
  131329. function TJSVideoEncoderEncodeOptions._GetkeyFrame: Boolean;
  131330. begin
  131331. Result:=ReadJSPropertyBoolean('keyFrame');
  131332. end;
  131333. function TJSVideoEncoderEncodeOptions._Getavc: TJSVideoEncoderEncodeOptionsForAvc;
  131334. begin
  131335. Result:=ReadJSPropertyObject('avc',TJSVideoEncoderEncodeOptionsForAvc) as TJSVideoEncoderEncodeOptionsForAvc;
  131336. end;
  131337. procedure TJSVideoEncoderEncodeOptions._SetkeyFrame(const aValue : Boolean);
  131338. begin
  131339. WriteJSPropertyBoolean('keyFrame',aValue);
  131340. end;
  131341. procedure TJSVideoEncoderEncodeOptions._Setavc(const aValue : TJSVideoEncoderEncodeOptionsForAvc);
  131342. begin
  131343. WriteJSPropertyObject('avc',aValue);
  131344. end;
  131345. class function TJSVideoEncoderEncodeOptions.JSClassName: UnicodeString;
  131346. begin
  131347. Result:='Object';
  131348. end;
  131349. class function TJSVideoEncoderEncodeOptions.Cast(const Intf: IJSObject): IJSVideoEncoderEncodeOptions;
  131350. begin
  131351. Result:=TJSVideoEncoderEncodeOptions.JOBCast(Intf);
  131352. end;
  131353. function TJSVideoEncoderEncodeOptionsForAvc._Getquantizer: Word;
  131354. begin
  131355. Result:=ReadJSPropertyLongInt('quantizer');
  131356. end;
  131357. procedure TJSVideoEncoderEncodeOptionsForAvc._Setquantizer(const aValue : Word);
  131358. begin
  131359. WriteJSPropertyLongInt('quantizer',aValue);
  131360. end;
  131361. class function TJSVideoEncoderEncodeOptionsForAvc.JSClassName: UnicodeString;
  131362. begin
  131363. Result:='Object';
  131364. end;
  131365. class function TJSVideoEncoderEncodeOptionsForAvc.Cast(const Intf: IJSObject): IJSVideoEncoderEncodeOptionsForAvc;
  131366. begin
  131367. Result:=TJSVideoEncoderEncodeOptionsForAvc.JOBCast(Intf);
  131368. end;
  131369. function TJSVideoEncoderSupport._Getsupported: Boolean;
  131370. begin
  131371. Result:=ReadJSPropertyBoolean('supported');
  131372. end;
  131373. function TJSVideoEncoderSupport._Getconfig: TJSVideoEncoderConfig;
  131374. begin
  131375. Result:=ReadJSPropertyObject('config',TJSVideoEncoderConfig) as TJSVideoEncoderConfig;
  131376. end;
  131377. procedure TJSVideoEncoderSupport._Setsupported(const aValue : Boolean);
  131378. begin
  131379. WriteJSPropertyBoolean('supported',aValue);
  131380. end;
  131381. procedure TJSVideoEncoderSupport._Setconfig(const aValue : TJSVideoEncoderConfig);
  131382. begin
  131383. WriteJSPropertyObject('config',aValue);
  131384. end;
  131385. class function TJSVideoEncoderSupport.JSClassName: UnicodeString;
  131386. begin
  131387. Result:='Object';
  131388. end;
  131389. class function TJSVideoEncoderSupport.Cast(const Intf: IJSObject): IJSVideoEncoderSupport;
  131390. begin
  131391. Result:=TJSVideoEncoderSupport.JOBCast(Intf);
  131392. end;
  131393. function TJSEncodedVideoChunkMetadata._GetdecoderConfig: TJSVideoDecoderConfig;
  131394. begin
  131395. Result:=ReadJSPropertyObject('decoderConfig',TJSVideoDecoderConfig) as TJSVideoDecoderConfig;
  131396. end;
  131397. function TJSEncodedVideoChunkMetadata._Getsvc: TJSSvcOutputMetadata;
  131398. begin
  131399. Result:=ReadJSPropertyObject('svc',TJSSvcOutputMetadata) as TJSSvcOutputMetadata;
  131400. end;
  131401. procedure TJSEncodedVideoChunkMetadata._SetdecoderConfig(const aValue : TJSVideoDecoderConfig);
  131402. begin
  131403. WriteJSPropertyObject('decoderConfig',aValue);
  131404. end;
  131405. procedure TJSEncodedVideoChunkMetadata._Setsvc(const aValue : TJSSvcOutputMetadata);
  131406. begin
  131407. WriteJSPropertyObject('svc',aValue);
  131408. end;
  131409. class function TJSEncodedVideoChunkMetadata.JSClassName: UnicodeString;
  131410. begin
  131411. Result:='Object';
  131412. end;
  131413. class function TJSEncodedVideoChunkMetadata.Cast(const Intf: IJSObject): IJSEncodedVideoChunkMetadata;
  131414. begin
  131415. Result:=TJSEncodedVideoChunkMetadata.JOBCast(Intf);
  131416. end;
  131417. function TJSSvcOutputMetadata._GettemporalLayerId: Cardinal;
  131418. begin
  131419. Result:=ReadJSPropertyInt64('temporalLayerId');
  131420. end;
  131421. procedure TJSSvcOutputMetadata._SettemporalLayerId(const aValue : Cardinal);
  131422. begin
  131423. WriteJSPropertyDouble('temporalLayerId',aValue);
  131424. end;
  131425. class function TJSSvcOutputMetadata.JSClassName: UnicodeString;
  131426. begin
  131427. Result:='Object';
  131428. end;
  131429. class function TJSSvcOutputMetadata.Cast(const Intf: IJSObject): IJSSvcOutputMetadata;
  131430. begin
  131431. Result:=TJSSvcOutputMetadata.JOBCast(Intf);
  131432. end;
  131433. function TJSVideoFrame._Getformat: TVideoPixelFormat;
  131434. begin
  131435. Result:=ReadJSPropertyUnicodeString('format');
  131436. end;
  131437. function TJSVideoFrame._GetcodedWidth: Cardinal;
  131438. begin
  131439. Result:=ReadJSPropertyInt64('codedWidth');
  131440. end;
  131441. function TJSVideoFrame._GetcodedHeight: Cardinal;
  131442. begin
  131443. Result:=ReadJSPropertyInt64('codedHeight');
  131444. end;
  131445. function TJSVideoFrame._GetcodedRect: IJSDOMRectReadOnly;
  131446. begin
  131447. Result:=ReadJSPropertyObject('codedRect',TJSDOMRectReadOnly) as IJSDOMRectReadOnly;
  131448. end;
  131449. function TJSVideoFrame._GetvisibleRect: IJSDOMRectReadOnly;
  131450. begin
  131451. Result:=ReadJSPropertyObject('visibleRect',TJSDOMRectReadOnly) as IJSDOMRectReadOnly;
  131452. end;
  131453. function TJSVideoFrame._GetdisplayWidth: Cardinal;
  131454. begin
  131455. Result:=ReadJSPropertyInt64('displayWidth');
  131456. end;
  131457. function TJSVideoFrame._GetdisplayHeight: Cardinal;
  131458. begin
  131459. Result:=ReadJSPropertyInt64('displayHeight');
  131460. end;
  131461. function TJSVideoFrame._Getduration: QWord;
  131462. begin
  131463. Result:=ReadJSPropertyInt64('duration');
  131464. end;
  131465. function TJSVideoFrame._Gettimestamp: Int64;
  131466. begin
  131467. Result:=ReadJSPropertyInt64('timestamp');
  131468. end;
  131469. function TJSVideoFrame._GetcolorSpace: IJSVideoColorSpace;
  131470. begin
  131471. Result:=ReadJSPropertyObject('colorSpace',TJSVideoColorSpace) as IJSVideoColorSpace;
  131472. end;
  131473. constructor TJSVideoFrame.Create(aImageElement: IJSHTMLImageElement; const aInit: TJSVideoFrameInit);
  131474. begin
  131475. JOBCreate([aImageElement,aInit]);
  131476. end;
  131477. constructor TJSVideoFrame.Create(aImageElement: IJSHTMLImageElement);
  131478. begin
  131479. JOBCreate([aImageElement]);
  131480. end;
  131481. constructor TJSVideoFrame.Create(aSvgImageElement: IJSSVGImageElement; const aInit: TJSVideoFrameInit);
  131482. begin
  131483. JOBCreate([aSvgImageElement,aInit]);
  131484. end;
  131485. constructor TJSVideoFrame.Create(aSvgImageElement: IJSSVGImageElement);
  131486. begin
  131487. JOBCreate([aSvgImageElement]);
  131488. end;
  131489. constructor TJSVideoFrame.Create(aCanvasElement: IJSHTMLCanvasElement; const aInit: TJSVideoFrameInit);
  131490. begin
  131491. JOBCreate([aCanvasElement,aInit]);
  131492. end;
  131493. constructor TJSVideoFrame.Create(aCanvasElement: IJSHTMLCanvasElement);
  131494. begin
  131495. JOBCreate([aCanvasElement]);
  131496. end;
  131497. constructor TJSVideoFrame.Create(aVideoElement: IJSHTMLVideoElement; const aInit: TJSVideoFrameInit);
  131498. begin
  131499. JOBCreate([aVideoElement,aInit]);
  131500. end;
  131501. constructor TJSVideoFrame.Create(aVideoElement: IJSHTMLVideoElement);
  131502. begin
  131503. JOBCreate([aVideoElement]);
  131504. end;
  131505. constructor TJSVideoFrame.Create(aOffscreenCanvas: IJSOffscreenCanvas; const aInit: TJSVideoFrameInit);
  131506. begin
  131507. JOBCreate([aOffscreenCanvas,aInit]);
  131508. end;
  131509. constructor TJSVideoFrame.Create(aOffscreenCanvas: IJSOffscreenCanvas);
  131510. begin
  131511. JOBCreate([aOffscreenCanvas]);
  131512. end;
  131513. constructor TJSVideoFrame.Create(aImageBitmap: IJSImageBitmap; const aInit: TJSVideoFrameInit);
  131514. begin
  131515. JOBCreate([aImageBitmap,aInit]);
  131516. end;
  131517. constructor TJSVideoFrame.Create(aImageBitmap: IJSImageBitmap);
  131518. begin
  131519. JOBCreate([aImageBitmap]);
  131520. end;
  131521. constructor TJSVideoFrame.Create(aVideoFrame: IJSVideoFrame; const aInit: TJSVideoFrameInit);
  131522. begin
  131523. JOBCreate([aVideoFrame,aInit]);
  131524. end;
  131525. constructor TJSVideoFrame.Create(aVideoFrame: IJSVideoFrame);
  131526. begin
  131527. JOBCreate([aVideoFrame]);
  131528. end;
  131529. constructor TJSVideoFrame.Create(aBufferView: IJSArrayBufferView; const aInit: TJSVideoFrameBufferInit);
  131530. begin
  131531. JOBCreate([aBufferView,aInit]);
  131532. end;
  131533. constructor TJSVideoFrame.Create(aBuffer: IJSArrayBuffer; const aInit: TJSVideoFrameBufferInit);
  131534. begin
  131535. JOBCreate([aBuffer,aInit]);
  131536. end;
  131537. function TJSVideoFrame.allocationSize(const aOptions: TJSVideoFrameCopyToOptions): Cardinal;
  131538. begin
  131539. Result:=InvokeJSLongIntResult('allocationSize',[aOptions]);
  131540. end;
  131541. function TJSVideoFrame.allocationSize: Cardinal;
  131542. begin
  131543. Result:=InvokeJSLongIntResult('allocationSize',[]);
  131544. end;
  131545. function TJSVideoFrame.copyTo(aDestination: IJSArrayBuffer; const aOptions: TJSVideoFrameCopyToOptions): IJSPromise; // Promise<sequence>
  131546. begin
  131547. Result:=InvokeJSObjectResult('copyTo',[aDestination,aOptions],TJSPromise) as IJSPromise;
  131548. end;
  131549. function TJSVideoFrame.copyTo(aDestination: IJSArrayBufferView; const aOptions: TJSVideoFrameCopyToOptions): IJSPromise; // Promise<sequence>
  131550. begin
  131551. Result:=InvokeJSObjectResult('copyTo',[aDestination,aOptions],TJSPromise) as IJSPromise;
  131552. end;
  131553. function TJSVideoFrame.copyTo(aDestination: IJSArrayBufferView): IJSPromise; // Promise<sequence>
  131554. begin
  131555. Result:=InvokeJSObjectResult('copyTo',[aDestination],TJSPromise) as IJSPromise;
  131556. end;
  131557. function TJSVideoFrame.copyTo(aDestination: IJSArrayBuffer): IJSPromise; // Promise<sequence>
  131558. begin
  131559. Result:=InvokeJSObjectResult('copyTo',[aDestination],TJSPromise) as IJSPromise;
  131560. end;
  131561. function TJSVideoFrame.clone: IJSVideoFrame;
  131562. begin
  131563. Result:=InvokeJSObjectResult('clone',[],TJSVideoFrame) as IJSVideoFrame;
  131564. end;
  131565. procedure TJSVideoFrame.close;
  131566. begin
  131567. InvokeJSNoResult('close',[]);
  131568. end;
  131569. class function TJSVideoFrame.JSClassName: UnicodeString;
  131570. begin
  131571. Result:='VideoFrame';
  131572. end;
  131573. class function TJSVideoFrame.Cast(const Intf: IJSObject): IJSVideoFrame;
  131574. begin
  131575. Result:=TJSVideoFrame.JOBCast(Intf);
  131576. end;
  131577. function TJSVideoFrameInit._Getduration: QWord;
  131578. begin
  131579. Result:=ReadJSPropertyInt64('duration');
  131580. end;
  131581. function TJSVideoFrameInit._Gettimestamp: Int64;
  131582. begin
  131583. Result:=ReadJSPropertyInt64('timestamp');
  131584. end;
  131585. function TJSVideoFrameInit._Getalpha: TAlphaOption;
  131586. begin
  131587. Result:=ReadJSPropertyUnicodeString('alpha');
  131588. end;
  131589. function TJSVideoFrameInit._GetvisibleRect: TJSDOMRectInit;
  131590. begin
  131591. Result:=ReadJSPropertyObject('visibleRect',TJSDOMRectInit) as TJSDOMRectInit;
  131592. end;
  131593. function TJSVideoFrameInit._GetdisplayWidth: Cardinal;
  131594. begin
  131595. Result:=ReadJSPropertyInt64('displayWidth');
  131596. end;
  131597. function TJSVideoFrameInit._GetdisplayHeight: Cardinal;
  131598. begin
  131599. Result:=ReadJSPropertyInt64('displayHeight');
  131600. end;
  131601. procedure TJSVideoFrameInit._Setduration(const aValue : QWord);
  131602. begin
  131603. WriteJSPropertyDouble('duration',aValue);
  131604. end;
  131605. procedure TJSVideoFrameInit._Settimestamp(const aValue : Int64);
  131606. begin
  131607. WriteJSPropertyDouble('timestamp',aValue);
  131608. end;
  131609. procedure TJSVideoFrameInit._Setalpha(const aValue : TAlphaOption);
  131610. begin
  131611. WriteJSPropertyUnicodeString('alpha',aValue);
  131612. end;
  131613. procedure TJSVideoFrameInit._SetvisibleRect(const aValue : TJSDOMRectInit);
  131614. begin
  131615. WriteJSPropertyObject('visibleRect',aValue);
  131616. end;
  131617. procedure TJSVideoFrameInit._SetdisplayWidth(const aValue : Cardinal);
  131618. begin
  131619. WriteJSPropertyDouble('displayWidth',aValue);
  131620. end;
  131621. procedure TJSVideoFrameInit._SetdisplayHeight(const aValue : Cardinal);
  131622. begin
  131623. WriteJSPropertyDouble('displayHeight',aValue);
  131624. end;
  131625. class function TJSVideoFrameInit.JSClassName: UnicodeString;
  131626. begin
  131627. Result:='Object';
  131628. end;
  131629. class function TJSVideoFrameInit.Cast(const Intf: IJSObject): IJSVideoFrameInit;
  131630. begin
  131631. Result:=TJSVideoFrameInit.JOBCast(Intf);
  131632. end;
  131633. function TJSVideoFrameBufferInit._Getformat: TVideoPixelFormat;
  131634. begin
  131635. Result:=ReadJSPropertyUnicodeString('format');
  131636. end;
  131637. function TJSVideoFrameBufferInit._GetcodedWidth: Cardinal;
  131638. begin
  131639. Result:=ReadJSPropertyInt64('codedWidth');
  131640. end;
  131641. function TJSVideoFrameBufferInit._GetcodedHeight: Cardinal;
  131642. begin
  131643. Result:=ReadJSPropertyInt64('codedHeight');
  131644. end;
  131645. function TJSVideoFrameBufferInit._Gettimestamp: Int64;
  131646. begin
  131647. Result:=ReadJSPropertyInt64('timestamp');
  131648. end;
  131649. function TJSVideoFrameBufferInit._Getduration: QWord;
  131650. begin
  131651. Result:=ReadJSPropertyInt64('duration');
  131652. end;
  131653. function TJSVideoFrameBufferInit._Getlayout: TJSPlaneLayoutDynArray;
  131654. begin
  131655. Result:=ReadJSPropertyObject('layout',TJSArray) as TJSPlaneLayoutDynArray;
  131656. end;
  131657. function TJSVideoFrameBufferInit._GetvisibleRect: TJSDOMRectInit;
  131658. begin
  131659. Result:=ReadJSPropertyObject('visibleRect',TJSDOMRectInit) as TJSDOMRectInit;
  131660. end;
  131661. function TJSVideoFrameBufferInit._GetdisplayWidth: Cardinal;
  131662. begin
  131663. Result:=ReadJSPropertyInt64('displayWidth');
  131664. end;
  131665. function TJSVideoFrameBufferInit._GetdisplayHeight: Cardinal;
  131666. begin
  131667. Result:=ReadJSPropertyInt64('displayHeight');
  131668. end;
  131669. function TJSVideoFrameBufferInit._GetcolorSpace: TJSVideoColorSpaceInit;
  131670. begin
  131671. Result:=ReadJSPropertyObject('colorSpace',TJSVideoColorSpaceInit) as TJSVideoColorSpaceInit;
  131672. end;
  131673. procedure TJSVideoFrameBufferInit._Setformat(const aValue : TVideoPixelFormat);
  131674. begin
  131675. WriteJSPropertyUnicodeString('format',aValue);
  131676. end;
  131677. procedure TJSVideoFrameBufferInit._SetcodedWidth(const aValue : Cardinal);
  131678. begin
  131679. WriteJSPropertyDouble('codedWidth',aValue);
  131680. end;
  131681. procedure TJSVideoFrameBufferInit._SetcodedHeight(const aValue : Cardinal);
  131682. begin
  131683. WriteJSPropertyDouble('codedHeight',aValue);
  131684. end;
  131685. procedure TJSVideoFrameBufferInit._Settimestamp(const aValue : Int64);
  131686. begin
  131687. WriteJSPropertyDouble('timestamp',aValue);
  131688. end;
  131689. procedure TJSVideoFrameBufferInit._Setduration(const aValue : QWord);
  131690. begin
  131691. WriteJSPropertyDouble('duration',aValue);
  131692. end;
  131693. procedure TJSVideoFrameBufferInit._Setlayout(const aValue : TJSPlaneLayoutDynArray);
  131694. begin
  131695. WriteJSPropertyObject('layout',aValue);
  131696. end;
  131697. procedure TJSVideoFrameBufferInit._SetvisibleRect(const aValue : TJSDOMRectInit);
  131698. begin
  131699. WriteJSPropertyObject('visibleRect',aValue);
  131700. end;
  131701. procedure TJSVideoFrameBufferInit._SetdisplayWidth(const aValue : Cardinal);
  131702. begin
  131703. WriteJSPropertyDouble('displayWidth',aValue);
  131704. end;
  131705. procedure TJSVideoFrameBufferInit._SetdisplayHeight(const aValue : Cardinal);
  131706. begin
  131707. WriteJSPropertyDouble('displayHeight',aValue);
  131708. end;
  131709. procedure TJSVideoFrameBufferInit._SetcolorSpace(const aValue : TJSVideoColorSpaceInit);
  131710. begin
  131711. WriteJSPropertyObject('colorSpace',aValue);
  131712. end;
  131713. class function TJSVideoFrameBufferInit.JSClassName: UnicodeString;
  131714. begin
  131715. Result:='Object';
  131716. end;
  131717. class function TJSVideoFrameBufferInit.Cast(const Intf: IJSObject): IJSVideoFrameBufferInit;
  131718. begin
  131719. Result:=TJSVideoFrameBufferInit.JOBCast(Intf);
  131720. end;
  131721. function TJSVideoFrameCopyToOptions._Getrect: TJSDOMRectInit;
  131722. begin
  131723. Result:=ReadJSPropertyObject('rect',TJSDOMRectInit) as TJSDOMRectInit;
  131724. end;
  131725. function TJSVideoFrameCopyToOptions._Getlayout: TJSPlaneLayoutDynArray;
  131726. begin
  131727. Result:=ReadJSPropertyObject('layout',TJSArray) as TJSPlaneLayoutDynArray;
  131728. end;
  131729. procedure TJSVideoFrameCopyToOptions._Setrect(const aValue : TJSDOMRectInit);
  131730. begin
  131731. WriteJSPropertyObject('rect',aValue);
  131732. end;
  131733. procedure TJSVideoFrameCopyToOptions._Setlayout(const aValue : TJSPlaneLayoutDynArray);
  131734. begin
  131735. WriteJSPropertyObject('layout',aValue);
  131736. end;
  131737. class function TJSVideoFrameCopyToOptions.JSClassName: UnicodeString;
  131738. begin
  131739. Result:='Object';
  131740. end;
  131741. class function TJSVideoFrameCopyToOptions.Cast(const Intf: IJSObject): IJSVideoFrameCopyToOptions;
  131742. begin
  131743. Result:=TJSVideoFrameCopyToOptions.JOBCast(Intf);
  131744. end;
  131745. function TJSPlaneLayout._Getoffset: Cardinal;
  131746. begin
  131747. Result:=ReadJSPropertyInt64('offset');
  131748. end;
  131749. function TJSPlaneLayout._Getstride: Cardinal;
  131750. begin
  131751. Result:=ReadJSPropertyInt64('stride');
  131752. end;
  131753. procedure TJSPlaneLayout._Setoffset(const aValue : Cardinal);
  131754. begin
  131755. WriteJSPropertyDouble('offset',aValue);
  131756. end;
  131757. procedure TJSPlaneLayout._Setstride(const aValue : Cardinal);
  131758. begin
  131759. WriteJSPropertyDouble('stride',aValue);
  131760. end;
  131761. class function TJSPlaneLayout.JSClassName: UnicodeString;
  131762. begin
  131763. Result:='Object';
  131764. end;
  131765. class function TJSPlaneLayout.Cast(const Intf: IJSObject): IJSPlaneLayout;
  131766. begin
  131767. Result:=TJSPlaneLayout.JOBCast(Intf);
  131768. end;
  131769. function TJSVideoPlaybackQuality._GetcreationTime: TDOMHighResTimeStamp;
  131770. begin
  131771. Result:=ReadJSPropertyDouble('creationTime');
  131772. end;
  131773. function TJSVideoPlaybackQuality._GettotalVideoFrames: Cardinal;
  131774. begin
  131775. Result:=ReadJSPropertyInt64('totalVideoFrames');
  131776. end;
  131777. function TJSVideoPlaybackQuality._GetdroppedVideoFrames: Cardinal;
  131778. begin
  131779. Result:=ReadJSPropertyInt64('droppedVideoFrames');
  131780. end;
  131781. class function TJSVideoPlaybackQuality.JSClassName: UnicodeString;
  131782. begin
  131783. Result:='VideoPlaybackQuality';
  131784. end;
  131785. class function TJSVideoPlaybackQuality.Cast(const Intf: IJSObject): IJSVideoPlaybackQuality;
  131786. begin
  131787. Result:=TJSVideoPlaybackQuality.JOBCast(Intf);
  131788. end;
  131789. function TJSVideoTrack._Getid: UnicodeString;
  131790. begin
  131791. Result:=ReadJSPropertyUnicodeString('id');
  131792. end;
  131793. function TJSVideoTrack._Getkind: UnicodeString;
  131794. begin
  131795. Result:=ReadJSPropertyUnicodeString('kind');
  131796. end;
  131797. function TJSVideoTrack._Getlabel_: UnicodeString;
  131798. begin
  131799. Result:=ReadJSPropertyUnicodeString('label');
  131800. end;
  131801. function TJSVideoTrack._Getlanguage: UnicodeString;
  131802. begin
  131803. Result:=ReadJSPropertyUnicodeString('language');
  131804. end;
  131805. function TJSVideoTrack._Getselected: Boolean;
  131806. begin
  131807. Result:=ReadJSPropertyBoolean('selected');
  131808. end;
  131809. procedure TJSVideoTrack._Setselected(const aValue : Boolean);
  131810. begin
  131811. WriteJSPropertyBoolean('selected',aValue);
  131812. end;
  131813. class function TJSVideoTrack.JSClassName: UnicodeString;
  131814. begin
  131815. Result:='VideoTrack';
  131816. end;
  131817. class function TJSVideoTrack.Cast(const Intf: IJSObject): IJSVideoTrack;
  131818. begin
  131819. Result:=TJSVideoTrack.JOBCast(Intf);
  131820. end;
  131821. function TJSVideoTrackList._Getlength_: Cardinal;
  131822. begin
  131823. Result:=ReadJSPropertyInt64('length');
  131824. end;
  131825. function TJSVideoTrackList._GetselectedIndex: LongInt;
  131826. begin
  131827. Result:=ReadJSPropertyLongInt('selectedIndex');
  131828. end;
  131829. function TJSVideoTrackList._Getonchange: TEventHandler;
  131830. begin
  131831. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  131832. end;
  131833. function TJSVideoTrackList._Getonaddtrack: TEventHandler;
  131834. begin
  131835. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onaddtrack')));
  131836. end;
  131837. function TJSVideoTrackList._Getonremovetrack: TEventHandler;
  131838. begin
  131839. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onremovetrack')));
  131840. end;
  131841. procedure TJSVideoTrackList._Setonchange(const aValue : TEventHandler);
  131842. begin
  131843. WriteJSPropertyMethod('onchange',TMethod(aValue));
  131844. end;
  131845. procedure TJSVideoTrackList._Setonaddtrack(const aValue : TEventHandler);
  131846. begin
  131847. WriteJSPropertyMethod('onaddtrack',TMethod(aValue));
  131848. end;
  131849. procedure TJSVideoTrackList._Setonremovetrack(const aValue : TEventHandler);
  131850. begin
  131851. WriteJSPropertyMethod('onremovetrack',TMethod(aValue));
  131852. end;
  131853. function TJSVideoTrackList.GetDefault(aIndex: Cardinal): IJSVideoTrack;
  131854. begin
  131855. Result:=InvokeJSObjectResult('',[aIndex],TJSVideoTrack) as IJSVideoTrack;
  131856. end;
  131857. function TJSVideoTrackList.getTrackById(const aId: UnicodeString): IJSVideoTrack;
  131858. begin
  131859. Result:=InvokeJSObjectResult('getTrackById',[aId],TJSVideoTrack) as IJSVideoTrack;
  131860. end;
  131861. class function TJSVideoTrackList.JSClassName: UnicodeString;
  131862. begin
  131863. Result:='VideoTrackList';
  131864. end;
  131865. class function TJSVideoTrackList.Cast(const Intf: IJSObject): IJSVideoTrackList;
  131866. begin
  131867. Result:=TJSVideoTrackList.JOBCast(Intf);
  131868. end;
  131869. function TJSVisualViewport._GetoffsetLeft: Double;
  131870. begin
  131871. Result:=ReadJSPropertyDouble('offsetLeft');
  131872. end;
  131873. function TJSVisualViewport._GetoffsetTop: Double;
  131874. begin
  131875. Result:=ReadJSPropertyDouble('offsetTop');
  131876. end;
  131877. function TJSVisualViewport._GetpageLeft: Double;
  131878. begin
  131879. Result:=ReadJSPropertyDouble('pageLeft');
  131880. end;
  131881. function TJSVisualViewport._GetpageTop: Double;
  131882. begin
  131883. Result:=ReadJSPropertyDouble('pageTop');
  131884. end;
  131885. function TJSVisualViewport._Getwidth: Double;
  131886. begin
  131887. Result:=ReadJSPropertyDouble('width');
  131888. end;
  131889. function TJSVisualViewport._Getheight: Double;
  131890. begin
  131891. Result:=ReadJSPropertyDouble('height');
  131892. end;
  131893. function TJSVisualViewport._Getscale: Double;
  131894. begin
  131895. Result:=ReadJSPropertyDouble('scale');
  131896. end;
  131897. function TJSVisualViewport._Getonresize: TEventHandler;
  131898. begin
  131899. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresize')));
  131900. end;
  131901. function TJSVisualViewport._Getonscroll: TEventHandler;
  131902. begin
  131903. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscroll')));
  131904. end;
  131905. procedure TJSVisualViewport._Setonresize(const aValue : TEventHandler);
  131906. begin
  131907. WriteJSPropertyMethod('onresize',TMethod(aValue));
  131908. end;
  131909. procedure TJSVisualViewport._Setonscroll(const aValue : TEventHandler);
  131910. begin
  131911. WriteJSPropertyMethod('onscroll',TMethod(aValue));
  131912. end;
  131913. class function TJSVisualViewport.JSClassName: UnicodeString;
  131914. begin
  131915. Result:='VisualViewport';
  131916. end;
  131917. class function TJSVisualViewport.Cast(const Intf: IJSObject): IJSVisualViewport;
  131918. begin
  131919. Result:=TJSVisualViewport.JOBCast(Intf);
  131920. end;
  131921. function TJSVRFieldOfView._GetupDegrees: Double;
  131922. begin
  131923. Result:=ReadJSPropertyDouble('upDegrees');
  131924. end;
  131925. function TJSVRFieldOfView._GetrightDegrees: Double;
  131926. begin
  131927. Result:=ReadJSPropertyDouble('rightDegrees');
  131928. end;
  131929. function TJSVRFieldOfView._GetdownDegrees: Double;
  131930. begin
  131931. Result:=ReadJSPropertyDouble('downDegrees');
  131932. end;
  131933. function TJSVRFieldOfView._GetleftDegrees: Double;
  131934. begin
  131935. Result:=ReadJSPropertyDouble('leftDegrees');
  131936. end;
  131937. class function TJSVRFieldOfView.JSClassName: UnicodeString;
  131938. begin
  131939. Result:='VRFieldOfView';
  131940. end;
  131941. class function TJSVRFieldOfView.Cast(const Intf: IJSObject): IJSVRFieldOfView;
  131942. begin
  131943. Result:=TJSVRFieldOfView.JOBCast(Intf);
  131944. end;
  131945. function TJSVRLayer._Getsource: IJSHTMLCanvasElement;
  131946. begin
  131947. Result:=ReadJSPropertyObject('source',TJSHTMLCanvasElement) as IJSHTMLCanvasElement;
  131948. end;
  131949. function TJSVRLayer._GetleftBounds: TSingleDynArray;
  131950. begin
  131951. Result:=ReadJSPropertyObject('leftBounds',TJSArray) as TSingleDynArray;
  131952. end;
  131953. function TJSVRLayer._GetrightBounds: TSingleDynArray;
  131954. begin
  131955. Result:=ReadJSPropertyObject('rightBounds',TJSArray) as TSingleDynArray;
  131956. end;
  131957. procedure TJSVRLayer._Setsource(const aValue : IJSHTMLCanvasElement);
  131958. begin
  131959. WriteJSPropertyObject('source',aValue);
  131960. end;
  131961. procedure TJSVRLayer._SetleftBounds(const aValue : TSingleDynArray);
  131962. begin
  131963. WriteJSPropertyObject('leftBounds',aValue);
  131964. end;
  131965. procedure TJSVRLayer._SetrightBounds(const aValue : TSingleDynArray);
  131966. begin
  131967. WriteJSPropertyObject('rightBounds',aValue);
  131968. end;
  131969. class function TJSVRLayer.JSClassName: UnicodeString;
  131970. begin
  131971. Result:='Object';
  131972. end;
  131973. class function TJSVRLayer.Cast(const Intf: IJSObject): IJSVRLayer;
  131974. begin
  131975. Result:=TJSVRLayer.JOBCast(Intf);
  131976. end;
  131977. function TJSVRDisplayCapabilities._GethasPosition: Boolean;
  131978. begin
  131979. Result:=ReadJSPropertyBoolean('hasPosition');
  131980. end;
  131981. function TJSVRDisplayCapabilities._GethasOrientation: Boolean;
  131982. begin
  131983. Result:=ReadJSPropertyBoolean('hasOrientation');
  131984. end;
  131985. function TJSVRDisplayCapabilities._GethasExternalDisplay: Boolean;
  131986. begin
  131987. Result:=ReadJSPropertyBoolean('hasExternalDisplay');
  131988. end;
  131989. function TJSVRDisplayCapabilities._GetcanPresent: Boolean;
  131990. begin
  131991. Result:=ReadJSPropertyBoolean('canPresent');
  131992. end;
  131993. function TJSVRDisplayCapabilities._GetmaxLayers: Cardinal;
  131994. begin
  131995. Result:=ReadJSPropertyInt64('maxLayers');
  131996. end;
  131997. class function TJSVRDisplayCapabilities.JSClassName: UnicodeString;
  131998. begin
  131999. Result:='VRDisplayCapabilities';
  132000. end;
  132001. class function TJSVRDisplayCapabilities.Cast(const Intf: IJSObject): IJSVRDisplayCapabilities;
  132002. begin
  132003. Result:=TJSVRDisplayCapabilities.JOBCast(Intf);
  132004. end;
  132005. function TJSVRStageParameters._GetsittingToStandingTransform: IJSFloat32Array;
  132006. begin
  132007. Result:=ReadJSPropertyObject('sittingToStandingTransform',TJSFloat32Array) as IJSFloat32Array;
  132008. end;
  132009. function TJSVRStageParameters._GetsizeX: Single;
  132010. begin
  132011. Result:=ReadJSPropertyDouble('sizeX');
  132012. end;
  132013. function TJSVRStageParameters._GetsizeZ: Single;
  132014. begin
  132015. Result:=ReadJSPropertyDouble('sizeZ');
  132016. end;
  132017. class function TJSVRStageParameters.JSClassName: UnicodeString;
  132018. begin
  132019. Result:='VRStageParameters';
  132020. end;
  132021. class function TJSVRStageParameters.Cast(const Intf: IJSObject): IJSVRStageParameters;
  132022. begin
  132023. Result:=TJSVRStageParameters.JOBCast(Intf);
  132024. end;
  132025. function TJSVRPose._Getposition: IJSFloat32Array;
  132026. begin
  132027. Result:=ReadJSPropertyObject('position',TJSFloat32Array) as IJSFloat32Array;
  132028. end;
  132029. function TJSVRPose._GetlinearVelocity: IJSFloat32Array;
  132030. begin
  132031. Result:=ReadJSPropertyObject('linearVelocity',TJSFloat32Array) as IJSFloat32Array;
  132032. end;
  132033. function TJSVRPose._GetlinearAcceleration: IJSFloat32Array;
  132034. begin
  132035. Result:=ReadJSPropertyObject('linearAcceleration',TJSFloat32Array) as IJSFloat32Array;
  132036. end;
  132037. function TJSVRPose._Getorientation: IJSFloat32Array;
  132038. begin
  132039. Result:=ReadJSPropertyObject('orientation',TJSFloat32Array) as IJSFloat32Array;
  132040. end;
  132041. function TJSVRPose._GetangularVelocity: IJSFloat32Array;
  132042. begin
  132043. Result:=ReadJSPropertyObject('angularVelocity',TJSFloat32Array) as IJSFloat32Array;
  132044. end;
  132045. function TJSVRPose._GetangularAcceleration: IJSFloat32Array;
  132046. begin
  132047. Result:=ReadJSPropertyObject('angularAcceleration',TJSFloat32Array) as IJSFloat32Array;
  132048. end;
  132049. class function TJSVRPose.JSClassName: UnicodeString;
  132050. begin
  132051. Result:='VRPose';
  132052. end;
  132053. class function TJSVRPose.Cast(const Intf: IJSObject): IJSVRPose;
  132054. begin
  132055. Result:=TJSVRPose.JOBCast(Intf);
  132056. end;
  132057. function TJSVRFrameData._Gettimestamp: TDOMHighResTimeStamp;
  132058. begin
  132059. Result:=ReadJSPropertyDouble('timestamp');
  132060. end;
  132061. function TJSVRFrameData._GetleftProjectionMatrix: IJSFloat32Array;
  132062. begin
  132063. Result:=ReadJSPropertyObject('leftProjectionMatrix',TJSFloat32Array) as IJSFloat32Array;
  132064. end;
  132065. function TJSVRFrameData._GetleftViewMatrix: IJSFloat32Array;
  132066. begin
  132067. Result:=ReadJSPropertyObject('leftViewMatrix',TJSFloat32Array) as IJSFloat32Array;
  132068. end;
  132069. function TJSVRFrameData._GetrightProjectionMatrix: IJSFloat32Array;
  132070. begin
  132071. Result:=ReadJSPropertyObject('rightProjectionMatrix',TJSFloat32Array) as IJSFloat32Array;
  132072. end;
  132073. function TJSVRFrameData._GetrightViewMatrix: IJSFloat32Array;
  132074. begin
  132075. Result:=ReadJSPropertyObject('rightViewMatrix',TJSFloat32Array) as IJSFloat32Array;
  132076. end;
  132077. function TJSVRFrameData._Getpose: IJSVRPose;
  132078. begin
  132079. Result:=ReadJSPropertyObject('pose',TJSVRPose) as IJSVRPose;
  132080. end;
  132081. constructor TJSVRFrameData.Create;
  132082. begin
  132083. JOBCreate([]);
  132084. end;
  132085. class function TJSVRFrameData.JSClassName: UnicodeString;
  132086. begin
  132087. Result:='VRFrameData';
  132088. end;
  132089. class function TJSVRFrameData.Cast(const Intf: IJSObject): IJSVRFrameData;
  132090. begin
  132091. Result:=TJSVRFrameData.JOBCast(Intf);
  132092. end;
  132093. function TJSVREyeParameters._Getoffset: IJSFloat32Array;
  132094. begin
  132095. Result:=ReadJSPropertyObject('offset',TJSFloat32Array) as IJSFloat32Array;
  132096. end;
  132097. function TJSVREyeParameters._GetfieldOfView: IJSVRFieldOfView;
  132098. begin
  132099. Result:=ReadJSPropertyObject('fieldOfView',TJSVRFieldOfView) as IJSVRFieldOfView;
  132100. end;
  132101. function TJSVREyeParameters._GetrenderWidth: Cardinal;
  132102. begin
  132103. Result:=ReadJSPropertyInt64('renderWidth');
  132104. end;
  132105. function TJSVREyeParameters._GetrenderHeight: Cardinal;
  132106. begin
  132107. Result:=ReadJSPropertyInt64('renderHeight');
  132108. end;
  132109. class function TJSVREyeParameters.JSClassName: UnicodeString;
  132110. begin
  132111. Result:='VREyeParameters';
  132112. end;
  132113. class function TJSVREyeParameters.Cast(const Intf: IJSObject): IJSVREyeParameters;
  132114. begin
  132115. Result:=TJSVREyeParameters.JOBCast(Intf);
  132116. end;
  132117. function TJSVRDisplay._GetisConnected: Boolean;
  132118. begin
  132119. Result:=ReadJSPropertyBoolean('isConnected');
  132120. end;
  132121. function TJSVRDisplay._GetisPresenting: Boolean;
  132122. begin
  132123. Result:=ReadJSPropertyBoolean('isPresenting');
  132124. end;
  132125. function TJSVRDisplay._Getcapabilities: IJSVRDisplayCapabilities;
  132126. begin
  132127. Result:=ReadJSPropertyObject('capabilities',TJSVRDisplayCapabilities) as IJSVRDisplayCapabilities;
  132128. end;
  132129. function TJSVRDisplay._GetstageParameters: IJSVRStageParameters;
  132130. begin
  132131. Result:=ReadJSPropertyObject('stageParameters',TJSVRStageParameters) as IJSVRStageParameters;
  132132. end;
  132133. function TJSVRDisplay._GetdisplayId: Cardinal;
  132134. begin
  132135. Result:=ReadJSPropertyInt64('displayId');
  132136. end;
  132137. function TJSVRDisplay._GetdisplayName: UnicodeString;
  132138. begin
  132139. Result:=ReadJSPropertyUnicodeString('displayName');
  132140. end;
  132141. function TJSVRDisplay._GetdepthNear: Double;
  132142. begin
  132143. Result:=ReadJSPropertyDouble('depthNear');
  132144. end;
  132145. function TJSVRDisplay._GetdepthFar: Double;
  132146. begin
  132147. Result:=ReadJSPropertyDouble('depthFar');
  132148. end;
  132149. procedure TJSVRDisplay._SetdepthNear(const aValue : Double);
  132150. begin
  132151. WriteJSPropertyDouble('depthNear',aValue);
  132152. end;
  132153. procedure TJSVRDisplay._SetdepthFar(const aValue : Double);
  132154. begin
  132155. WriteJSPropertyDouble('depthFar',aValue);
  132156. end;
  132157. function TJSVRDisplay.getEyeParameters(aWhichEye: TVREye): IJSVREyeParameters;
  132158. begin
  132159. Result:=InvokeJSObjectResult('getEyeParameters',[aWhichEye],TJSVREyeParameters) as IJSVREyeParameters;
  132160. end;
  132161. function TJSVRDisplay.getFrameData(aFrameData: IJSVRFrameData): Boolean;
  132162. begin
  132163. Result:=InvokeJSBooleanResult('getFrameData',[aFrameData]);
  132164. end;
  132165. function TJSVRDisplay.getPose: IJSVRPose;
  132166. begin
  132167. Result:=InvokeJSObjectResult('getPose',[],TJSVRPose) as IJSVRPose;
  132168. end;
  132169. procedure TJSVRDisplay.resetPose;
  132170. begin
  132171. InvokeJSNoResult('resetPose',[]);
  132172. end;
  132173. function TJSVRDisplay.requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt;
  132174. var
  132175. m: TJOB_Method;
  132176. begin
  132177. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFrameRequestCallback);
  132178. try
  132179. Result:=InvokeJSLongIntResult('requestAnimationFrame',[m]);
  132180. finally
  132181. m.free;
  132182. end;
  132183. end;
  132184. procedure TJSVRDisplay.cancelAnimationFrame(aHandle: LongInt);
  132185. begin
  132186. InvokeJSNoResult('cancelAnimationFrame',[aHandle]);
  132187. end;
  132188. function TJSVRDisplay.requestPresent(const aLayers: TJSVRLayerDynArray): IJSPromise; // Promise<undefined>
  132189. begin
  132190. Result:=InvokeJSObjectResult('requestPresent',[aLayers],TJSPromise) as IJSPromise;
  132191. end;
  132192. function TJSVRDisplay.exitPresent: IJSPromise; // Promise<undefined>
  132193. begin
  132194. Result:=InvokeJSObjectResult('exitPresent',[],TJSPromise) as IJSPromise;
  132195. end;
  132196. function TJSVRDisplay.getLayers: TJSVRLayerDynArray;
  132197. begin
  132198. Result:=InvokeJSObjectResult('getLayers',[],TJSArray) as TJSVRLayerDynArray;
  132199. end;
  132200. procedure TJSVRDisplay.submitFrame;
  132201. begin
  132202. InvokeJSNoResult('submitFrame',[]);
  132203. end;
  132204. class function TJSVRDisplay.JSClassName: UnicodeString;
  132205. begin
  132206. Result:='VRDisplay';
  132207. end;
  132208. class function TJSVRDisplay.Cast(const Intf: IJSObject): IJSVRDisplay;
  132209. begin
  132210. Result:=TJSVRDisplay.JOBCast(Intf);
  132211. end;
  132212. function TJSVRDisplayEventInit._Getdisplay: IJSVRDisplay;
  132213. begin
  132214. Result:=ReadJSPropertyObject('display',TJSVRDisplay) as IJSVRDisplay;
  132215. end;
  132216. function TJSVRDisplayEventInit._Getreason: TVRDisplayEventReason;
  132217. begin
  132218. Result:=ReadJSPropertyUnicodeString('reason');
  132219. end;
  132220. procedure TJSVRDisplayEventInit._Setdisplay(const aValue : IJSVRDisplay);
  132221. begin
  132222. WriteJSPropertyObject('display',aValue);
  132223. end;
  132224. procedure TJSVRDisplayEventInit._Setreason(const aValue : TVRDisplayEventReason);
  132225. begin
  132226. WriteJSPropertyUnicodeString('reason',aValue);
  132227. end;
  132228. class function TJSVRDisplayEventInit.JSClassName: UnicodeString;
  132229. begin
  132230. Result:='Object';
  132231. end;
  132232. class function TJSVRDisplayEventInit.Cast(const Intf: IJSObject): IJSVRDisplayEventInit;
  132233. begin
  132234. Result:=TJSVRDisplayEventInit.JOBCast(Intf);
  132235. end;
  132236. function TJSVRDisplayEvent._Getdisplay: IJSVRDisplay;
  132237. begin
  132238. Result:=ReadJSPropertyObject('display',TJSVRDisplay) as IJSVRDisplay;
  132239. end;
  132240. function TJSVRDisplayEvent._Getreason: TVRDisplayEventReason;
  132241. begin
  132242. Result:=ReadJSPropertyUnicodeString('reason');
  132243. end;
  132244. constructor TJSVRDisplayEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSVRDisplayEventInit);
  132245. begin
  132246. JOBCreate([aType_,aEventInitDict]);
  132247. end;
  132248. class function TJSVRDisplayEvent.JSClassName: UnicodeString;
  132249. begin
  132250. Result:='VRDisplayEvent';
  132251. end;
  132252. class function TJSVRDisplayEvent.Cast(const Intf: IJSObject): IJSVRDisplayEvent;
  132253. begin
  132254. Result:=TJSVRDisplayEvent.JOBCast(Intf);
  132255. end;
  132256. function TJSVRMockDisplay._GetcapPosition: Boolean;
  132257. begin
  132258. Result:=ReadJSPropertyBoolean('capPosition');
  132259. end;
  132260. function TJSVRMockDisplay._GetcapOrientation: Boolean;
  132261. begin
  132262. Result:=ReadJSPropertyBoolean('capOrientation');
  132263. end;
  132264. function TJSVRMockDisplay._GetcapPresent: Boolean;
  132265. begin
  132266. Result:=ReadJSPropertyBoolean('capPresent');
  132267. end;
  132268. function TJSVRMockDisplay._GetcapExternal: Boolean;
  132269. begin
  132270. Result:=ReadJSPropertyBoolean('capExternal');
  132271. end;
  132272. function TJSVRMockDisplay._GetcapAngularAcceleration: Boolean;
  132273. begin
  132274. Result:=ReadJSPropertyBoolean('capAngularAcceleration');
  132275. end;
  132276. function TJSVRMockDisplay._GetcapLinearAcceleration: Boolean;
  132277. begin
  132278. Result:=ReadJSPropertyBoolean('capLinearAcceleration');
  132279. end;
  132280. function TJSVRMockDisplay._GetcapStageParameters: Boolean;
  132281. begin
  132282. Result:=ReadJSPropertyBoolean('capStageParameters');
  132283. end;
  132284. function TJSVRMockDisplay._GetcapMountDetection: Boolean;
  132285. begin
  132286. Result:=ReadJSPropertyBoolean('capMountDetection');
  132287. end;
  132288. function TJSVRMockDisplay._GetcapPositionEmulated: Boolean;
  132289. begin
  132290. Result:=ReadJSPropertyBoolean('capPositionEmulated');
  132291. end;
  132292. procedure TJSVRMockDisplay._SetcapPosition(const aValue : Boolean);
  132293. begin
  132294. WriteJSPropertyBoolean('capPosition',aValue);
  132295. end;
  132296. procedure TJSVRMockDisplay._SetcapOrientation(const aValue : Boolean);
  132297. begin
  132298. WriteJSPropertyBoolean('capOrientation',aValue);
  132299. end;
  132300. procedure TJSVRMockDisplay._SetcapPresent(const aValue : Boolean);
  132301. begin
  132302. WriteJSPropertyBoolean('capPresent',aValue);
  132303. end;
  132304. procedure TJSVRMockDisplay._SetcapExternal(const aValue : Boolean);
  132305. begin
  132306. WriteJSPropertyBoolean('capExternal',aValue);
  132307. end;
  132308. procedure TJSVRMockDisplay._SetcapAngularAcceleration(const aValue : Boolean);
  132309. begin
  132310. WriteJSPropertyBoolean('capAngularAcceleration',aValue);
  132311. end;
  132312. procedure TJSVRMockDisplay._SetcapLinearAcceleration(const aValue : Boolean);
  132313. begin
  132314. WriteJSPropertyBoolean('capLinearAcceleration',aValue);
  132315. end;
  132316. procedure TJSVRMockDisplay._SetcapStageParameters(const aValue : Boolean);
  132317. begin
  132318. WriteJSPropertyBoolean('capStageParameters',aValue);
  132319. end;
  132320. procedure TJSVRMockDisplay._SetcapMountDetection(const aValue : Boolean);
  132321. begin
  132322. WriteJSPropertyBoolean('capMountDetection',aValue);
  132323. end;
  132324. procedure TJSVRMockDisplay._SetcapPositionEmulated(const aValue : Boolean);
  132325. begin
  132326. WriteJSPropertyBoolean('capPositionEmulated',aValue);
  132327. end;
  132328. procedure TJSVRMockDisplay.create;
  132329. begin
  132330. InvokeJSNoResult('create',[]);
  132331. end;
  132332. procedure TJSVRMockDisplay.setEyeFOV(aEye: TVREye; aUpDegree: Double; aRightDegree: Double; aDownDegree: Double; aLeftDegree: Double);
  132333. begin
  132334. InvokeJSNoResult('setEyeFOV',[aEye,aUpDegree,aRightDegree,aDownDegree,aLeftDegree]);
  132335. end;
  132336. procedure TJSVRMockDisplay.setEyeOffset(aEye: TVREye; aOffsetX: Double; aOffsetY: Double; aOffsetZ: Double);
  132337. begin
  132338. InvokeJSNoResult('setEyeOffset',[aEye,aOffsetX,aOffsetY,aOffsetZ]);
  132339. end;
  132340. procedure TJSVRMockDisplay.setEyeResolution(aRenderWidth: Cardinal; aRenderHeight: Cardinal);
  132341. begin
  132342. InvokeJSNoResult('setEyeResolution',[aRenderWidth,aRenderHeight]);
  132343. end;
  132344. procedure TJSVRMockDisplay.setConnected(aConnected: Boolean);
  132345. begin
  132346. InvokeJSNoResult('setConnected',[aConnected]);
  132347. end;
  132348. procedure TJSVRMockDisplay.setMounted(aMounted: Boolean);
  132349. begin
  132350. InvokeJSNoResult('setMounted',[aMounted]);
  132351. end;
  132352. procedure TJSVRMockDisplay.setStageSize(aWidth: Double; aHeight: Double);
  132353. begin
  132354. InvokeJSNoResult('setStageSize',[aWidth,aHeight]);
  132355. end;
  132356. procedure TJSVRMockDisplay.setSittingToStandingTransform(aSittingToStandingTransform: IJSFloat32Array);
  132357. begin
  132358. InvokeJSNoResult('setSittingToStandingTransform',[aSittingToStandingTransform]);
  132359. end;
  132360. procedure TJSVRMockDisplay.setPose(aPosition: IJSFloat32Array; aLinearVelocity: IJSFloat32Array; aLinearAcceleration: IJSFloat32Array; aOrientation: IJSFloat32Array; aAngularVelocity: IJSFloat32Array; aAngularAcceleration: IJSFloat32Array);
  132361. begin
  132362. InvokeJSNoResult('setPose',[aPosition,aLinearVelocity,aLinearAcceleration,aOrientation,aAngularVelocity,aAngularAcceleration]);
  132363. end;
  132364. class function TJSVRMockDisplay.JSClassName: UnicodeString;
  132365. begin
  132366. Result:='VRMockDisplay';
  132367. end;
  132368. class function TJSVRMockDisplay.Cast(const Intf: IJSObject): IJSVRMockDisplay;
  132369. begin
  132370. Result:=TJSVRMockDisplay.JOBCast(Intf);
  132371. end;
  132372. function TJSVRMockController._Gethand: TGamepadHand;
  132373. begin
  132374. Result:=ReadJSPropertyUnicodeString('hand');
  132375. end;
  132376. function TJSVRMockController._GetcapPosition: Boolean;
  132377. begin
  132378. Result:=ReadJSPropertyBoolean('capPosition');
  132379. end;
  132380. function TJSVRMockController._GetcapOrientation: Boolean;
  132381. begin
  132382. Result:=ReadJSPropertyBoolean('capOrientation');
  132383. end;
  132384. function TJSVRMockController._GetcapAngularAcceleration: Boolean;
  132385. begin
  132386. Result:=ReadJSPropertyBoolean('capAngularAcceleration');
  132387. end;
  132388. function TJSVRMockController._GetcapLinearAcceleration: Boolean;
  132389. begin
  132390. Result:=ReadJSPropertyBoolean('capLinearAcceleration');
  132391. end;
  132392. function TJSVRMockController._GetaxisCount: Cardinal;
  132393. begin
  132394. Result:=ReadJSPropertyInt64('axisCount');
  132395. end;
  132396. function TJSVRMockController._GetbuttonCount: Cardinal;
  132397. begin
  132398. Result:=ReadJSPropertyInt64('buttonCount');
  132399. end;
  132400. function TJSVRMockController._GethapticCount: Cardinal;
  132401. begin
  132402. Result:=ReadJSPropertyInt64('hapticCount');
  132403. end;
  132404. procedure TJSVRMockController._Sethand(const aValue : TGamepadHand);
  132405. begin
  132406. WriteJSPropertyUnicodeString('hand',aValue);
  132407. end;
  132408. procedure TJSVRMockController._SetcapPosition(const aValue : Boolean);
  132409. begin
  132410. WriteJSPropertyBoolean('capPosition',aValue);
  132411. end;
  132412. procedure TJSVRMockController._SetcapOrientation(const aValue : Boolean);
  132413. begin
  132414. WriteJSPropertyBoolean('capOrientation',aValue);
  132415. end;
  132416. procedure TJSVRMockController._SetcapAngularAcceleration(const aValue : Boolean);
  132417. begin
  132418. WriteJSPropertyBoolean('capAngularAcceleration',aValue);
  132419. end;
  132420. procedure TJSVRMockController._SetcapLinearAcceleration(const aValue : Boolean);
  132421. begin
  132422. WriteJSPropertyBoolean('capLinearAcceleration',aValue);
  132423. end;
  132424. procedure TJSVRMockController._SetaxisCount(const aValue : Cardinal);
  132425. begin
  132426. WriteJSPropertyDouble('axisCount',aValue);
  132427. end;
  132428. procedure TJSVRMockController._SetbuttonCount(const aValue : Cardinal);
  132429. begin
  132430. WriteJSPropertyDouble('buttonCount',aValue);
  132431. end;
  132432. procedure TJSVRMockController._SethapticCount(const aValue : Cardinal);
  132433. begin
  132434. WriteJSPropertyDouble('hapticCount',aValue);
  132435. end;
  132436. procedure TJSVRMockController.create;
  132437. begin
  132438. InvokeJSNoResult('create',[]);
  132439. end;
  132440. procedure TJSVRMockController.clear;
  132441. begin
  132442. InvokeJSNoResult('clear',[]);
  132443. end;
  132444. procedure TJSVRMockController.setPose(aPosition: IJSFloat32Array; aLinearVelocity: IJSFloat32Array; aLinearAcceleration: IJSFloat32Array; aOrientation: IJSFloat32Array; aAngularVelocity: IJSFloat32Array; aAngularAcceleration: IJSFloat32Array);
  132445. begin
  132446. InvokeJSNoResult('setPose',[aPosition,aLinearVelocity,aLinearAcceleration,aOrientation,aAngularVelocity,aAngularAcceleration]);
  132447. end;
  132448. procedure TJSVRMockController.setButtonPressed(aButtonIdx: Cardinal; aPressed: Boolean);
  132449. begin
  132450. InvokeJSNoResult('setButtonPressed',[aButtonIdx,aPressed]);
  132451. end;
  132452. procedure TJSVRMockController.setButtonTouched(aButtonIdx: Cardinal; aTouched: Boolean);
  132453. begin
  132454. InvokeJSNoResult('setButtonTouched',[aButtonIdx,aTouched]);
  132455. end;
  132456. procedure TJSVRMockController.setButtonTrigger(aButtonIdx: Cardinal; aTrigger: Double);
  132457. begin
  132458. InvokeJSNoResult('setButtonTrigger',[aButtonIdx,aTrigger]);
  132459. end;
  132460. procedure TJSVRMockController.setAxisValue(aAxisIdx: Cardinal; aValue: Double);
  132461. begin
  132462. InvokeJSNoResult('setAxisValue',[aAxisIdx,aValue]);
  132463. end;
  132464. class function TJSVRMockController.JSClassName: UnicodeString;
  132465. begin
  132466. Result:='VRMockController';
  132467. end;
  132468. class function TJSVRMockController.Cast(const Intf: IJSObject): IJSVRMockController;
  132469. begin
  132470. Result:=TJSVRMockController.JOBCast(Intf);
  132471. end;
  132472. function TJSVRServiceTest.getVRDisplay: IJSVRMockDisplay;
  132473. begin
  132474. Result:=InvokeJSObjectResult('getVRDisplay',[],TJSVRMockDisplay) as IJSVRMockDisplay;
  132475. end;
  132476. function TJSVRServiceTest.getVRController(aControllerIdx: Cardinal): IJSVRMockController;
  132477. begin
  132478. Result:=InvokeJSObjectResult('getVRController',[aControllerIdx],TJSVRMockController) as IJSVRMockController;
  132479. end;
  132480. function TJSVRServiceTest.run: IJSPromise; // Promise<undefined>
  132481. begin
  132482. Result:=InvokeJSObjectResult('run',[],TJSPromise) as IJSPromise;
  132483. end;
  132484. function TJSVRServiceTest.reset: IJSPromise; // Promise<undefined>
  132485. begin
  132486. Result:=InvokeJSObjectResult('reset',[],TJSPromise) as IJSPromise;
  132487. end;
  132488. procedure TJSVRServiceTest.commit;
  132489. begin
  132490. InvokeJSNoResult('commit',[]);
  132491. end;
  132492. procedure TJSVRServiceTest.end_;
  132493. begin
  132494. InvokeJSNoResult('end',[]);
  132495. end;
  132496. procedure TJSVRServiceTest.clearAll;
  132497. begin
  132498. InvokeJSNoResult('clearAll',[]);
  132499. end;
  132500. procedure TJSVRServiceTest.timeout(aDuration: Cardinal);
  132501. begin
  132502. InvokeJSNoResult('timeout',[aDuration]);
  132503. end;
  132504. procedure TJSVRServiceTest.wait(aDuration: Cardinal);
  132505. begin
  132506. InvokeJSNoResult('wait',[aDuration]);
  132507. end;
  132508. procedure TJSVRServiceTest.waitSubmit;
  132509. begin
  132510. InvokeJSNoResult('waitSubmit',[]);
  132511. end;
  132512. procedure TJSVRServiceTest.waitPresentationStart;
  132513. begin
  132514. InvokeJSNoResult('waitPresentationStart',[]);
  132515. end;
  132516. procedure TJSVRServiceTest.waitPresentationEnd;
  132517. begin
  132518. InvokeJSNoResult('waitPresentationEnd',[]);
  132519. end;
  132520. procedure TJSVRServiceTest.waitHapticIntensity(aControllerIdx: Cardinal; aHapticIdx: Cardinal; aIntensity: Double);
  132521. begin
  132522. InvokeJSNoResult('waitHapticIntensity',[aControllerIdx,aHapticIdx,aIntensity]);
  132523. end;
  132524. procedure TJSVRServiceTest.captureFrame;
  132525. begin
  132526. InvokeJSNoResult('captureFrame',[]);
  132527. end;
  132528. procedure TJSVRServiceTest.acknowledgeFrame;
  132529. begin
  132530. InvokeJSNoResult('acknowledgeFrame',[]);
  132531. end;
  132532. procedure TJSVRServiceTest.rejectFrame;
  132533. begin
  132534. InvokeJSNoResult('rejectFrame',[]);
  132535. end;
  132536. procedure TJSVRServiceTest.startTimer;
  132537. begin
  132538. InvokeJSNoResult('startTimer',[]);
  132539. end;
  132540. procedure TJSVRServiceTest.stopTimer;
  132541. begin
  132542. InvokeJSNoResult('stopTimer',[]);
  132543. end;
  132544. class function TJSVRServiceTest.JSClassName: UnicodeString;
  132545. begin
  132546. Result:='VRServiceTest';
  132547. end;
  132548. class function TJSVRServiceTest.Cast(const Intf: IJSObject): IJSVRServiceTest;
  132549. begin
  132550. Result:=TJSVRServiceTest.JOBCast(Intf);
  132551. end;
  132552. function TJSVTTCue._Getregion: IJSVTTRegion;
  132553. begin
  132554. Result:=ReadJSPropertyObject('region',TJSVTTRegion) as IJSVTTRegion;
  132555. end;
  132556. function TJSVTTCue._Getvertical: TDirectionSetting;
  132557. begin
  132558. Result:=ReadJSPropertyUnicodeString('vertical');
  132559. end;
  132560. function TJSVTTCue._GetsnapToLines: Boolean;
  132561. begin
  132562. Result:=ReadJSPropertyBoolean('snapToLines');
  132563. end;
  132564. function TJSVTTCue._Getline: TVTTCue_line_Type;
  132565. begin
  132566. Result:=ReadJSPropertyVariant('line');
  132567. end;
  132568. function TJSVTTCue._GetlineAlign: TLineAlignSetting;
  132569. begin
  132570. Result:=ReadJSPropertyUnicodeString('lineAlign');
  132571. end;
  132572. function TJSVTTCue._Getposition: TVTTCue_position_Type;
  132573. begin
  132574. Result:=ReadJSPropertyVariant('position');
  132575. end;
  132576. function TJSVTTCue._GetpositionAlign: TPositionAlignSetting;
  132577. begin
  132578. Result:=ReadJSPropertyUnicodeString('positionAlign');
  132579. end;
  132580. function TJSVTTCue._Getsize: Double;
  132581. begin
  132582. Result:=ReadJSPropertyDouble('size');
  132583. end;
  132584. function TJSVTTCue._Getalign: TAlignSetting;
  132585. begin
  132586. Result:=ReadJSPropertyUnicodeString('align');
  132587. end;
  132588. function TJSVTTCue._Gettext: UnicodeString;
  132589. begin
  132590. Result:=ReadJSPropertyUnicodeString('text');
  132591. end;
  132592. procedure TJSVTTCue._Setregion(const aValue : IJSVTTRegion);
  132593. begin
  132594. WriteJSPropertyObject('region',aValue);
  132595. end;
  132596. procedure TJSVTTCue._Setvertical(const aValue : TDirectionSetting);
  132597. begin
  132598. WriteJSPropertyUnicodeString('vertical',aValue);
  132599. end;
  132600. procedure TJSVTTCue._SetsnapToLines(const aValue : Boolean);
  132601. begin
  132602. WriteJSPropertyBoolean('snapToLines',aValue);
  132603. end;
  132604. procedure TJSVTTCue._Setline(const aValue : TVTTCue_line_Type);
  132605. begin
  132606. WriteJSPropertyVariant('line',aValue);
  132607. end;
  132608. procedure TJSVTTCue._SetlineAlign(const aValue : TLineAlignSetting);
  132609. begin
  132610. WriteJSPropertyUnicodeString('lineAlign',aValue);
  132611. end;
  132612. procedure TJSVTTCue._Setposition(const aValue : TVTTCue_position_Type);
  132613. begin
  132614. WriteJSPropertyVariant('position',aValue);
  132615. end;
  132616. procedure TJSVTTCue._SetpositionAlign(const aValue : TPositionAlignSetting);
  132617. begin
  132618. WriteJSPropertyUnicodeString('positionAlign',aValue);
  132619. end;
  132620. procedure TJSVTTCue._Setsize(const aValue : Double);
  132621. begin
  132622. WriteJSPropertyDouble('size',aValue);
  132623. end;
  132624. procedure TJSVTTCue._Setalign(const aValue : TAlignSetting);
  132625. begin
  132626. WriteJSPropertyUnicodeString('align',aValue);
  132627. end;
  132628. procedure TJSVTTCue._Settext(const aValue : UnicodeString);
  132629. begin
  132630. WriteJSPropertyUnicodeString('text',aValue);
  132631. end;
  132632. constructor TJSVTTCue.Create(aStartTime: Double; aEndTime: Double; const aText: UnicodeString);
  132633. begin
  132634. JOBCreate([aStartTime,aEndTime,aText]);
  132635. end;
  132636. function TJSVTTCue.getCueAsHTML: IJSDocumentFragment;
  132637. begin
  132638. Result:=InvokeJSObjectResult('getCueAsHTML',[],TJSDocumentFragment) as IJSDocumentFragment;
  132639. end;
  132640. class function TJSVTTCue.JSClassName: UnicodeString;
  132641. begin
  132642. Result:='VTTCue';
  132643. end;
  132644. class function TJSVTTCue.Cast(const Intf: IJSObject): IJSVTTCue;
  132645. begin
  132646. Result:=TJSVTTCue.JOBCast(Intf);
  132647. end;
  132648. function TJSVTTRegion._Getid: UnicodeString;
  132649. begin
  132650. Result:=ReadJSPropertyUnicodeString('id');
  132651. end;
  132652. function TJSVTTRegion._Getwidth: Double;
  132653. begin
  132654. Result:=ReadJSPropertyDouble('width');
  132655. end;
  132656. function TJSVTTRegion._Getlines: LongInt;
  132657. begin
  132658. Result:=ReadJSPropertyLongInt('lines');
  132659. end;
  132660. function TJSVTTRegion._GetregionAnchorX: Double;
  132661. begin
  132662. Result:=ReadJSPropertyDouble('regionAnchorX');
  132663. end;
  132664. function TJSVTTRegion._GetregionAnchorY: Double;
  132665. begin
  132666. Result:=ReadJSPropertyDouble('regionAnchorY');
  132667. end;
  132668. function TJSVTTRegion._GetviewportAnchorX: Double;
  132669. begin
  132670. Result:=ReadJSPropertyDouble('viewportAnchorX');
  132671. end;
  132672. function TJSVTTRegion._GetviewportAnchorY: Double;
  132673. begin
  132674. Result:=ReadJSPropertyDouble('viewportAnchorY');
  132675. end;
  132676. function TJSVTTRegion._Getscroll: TScrollSetting;
  132677. begin
  132678. Result:=ReadJSPropertyUnicodeString('scroll');
  132679. end;
  132680. procedure TJSVTTRegion._Setid(const aValue : UnicodeString);
  132681. begin
  132682. WriteJSPropertyUnicodeString('id',aValue);
  132683. end;
  132684. procedure TJSVTTRegion._Setwidth(const aValue : Double);
  132685. begin
  132686. WriteJSPropertyDouble('width',aValue);
  132687. end;
  132688. procedure TJSVTTRegion._Setlines(const aValue : LongInt);
  132689. begin
  132690. WriteJSPropertyLongInt('lines',aValue);
  132691. end;
  132692. procedure TJSVTTRegion._SetregionAnchorX(const aValue : Double);
  132693. begin
  132694. WriteJSPropertyDouble('regionAnchorX',aValue);
  132695. end;
  132696. procedure TJSVTTRegion._SetregionAnchorY(const aValue : Double);
  132697. begin
  132698. WriteJSPropertyDouble('regionAnchorY',aValue);
  132699. end;
  132700. procedure TJSVTTRegion._SetviewportAnchorX(const aValue : Double);
  132701. begin
  132702. WriteJSPropertyDouble('viewportAnchorX',aValue);
  132703. end;
  132704. procedure TJSVTTRegion._SetviewportAnchorY(const aValue : Double);
  132705. begin
  132706. WriteJSPropertyDouble('viewportAnchorY',aValue);
  132707. end;
  132708. procedure TJSVTTRegion._Setscroll(const aValue : TScrollSetting);
  132709. begin
  132710. WriteJSPropertyUnicodeString('scroll',aValue);
  132711. end;
  132712. constructor TJSVTTRegion.Create;
  132713. begin
  132714. JOBCreate([]);
  132715. end;
  132716. class function TJSVTTRegion.JSClassName: UnicodeString;
  132717. begin
  132718. Result:='VTTRegion';
  132719. end;
  132720. class function TJSVTTRegion.Cast(const Intf: IJSObject): IJSVTTRegion;
  132721. begin
  132722. Result:=TJSVTTRegion.JOBCast(Intf);
  132723. end;
  132724. function TJSWakeLock.request(aType_: TWakeLockType): IJSPromise; // Promise<WakeLockSentinel>
  132725. begin
  132726. Result:=InvokeJSObjectResult('request',[aType_],TJSPromise) as IJSPromise;
  132727. end;
  132728. function TJSWakeLock.request: IJSPromise; // Promise<WakeLockSentinel>
  132729. begin
  132730. Result:=InvokeJSObjectResult('request',[],TJSPromise) as IJSPromise;
  132731. end;
  132732. class function TJSWakeLock.JSClassName: UnicodeString;
  132733. begin
  132734. Result:='WakeLock';
  132735. end;
  132736. class function TJSWakeLock.Cast(const Intf: IJSObject): IJSWakeLock;
  132737. begin
  132738. Result:=TJSWakeLock.JOBCast(Intf);
  132739. end;
  132740. function TJSWakeLockSentinel._Getreleased: Boolean;
  132741. begin
  132742. Result:=ReadJSPropertyBoolean('released');
  132743. end;
  132744. function TJSWakeLockSentinel._Gettype_: TWakeLockType;
  132745. begin
  132746. Result:=ReadJSPropertyUnicodeString('type');
  132747. end;
  132748. function TJSWakeLockSentinel._Getonrelease: TEventHandler;
  132749. begin
  132750. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onrelease')));
  132751. end;
  132752. procedure TJSWakeLockSentinel._Setonrelease(const aValue : TEventHandler);
  132753. begin
  132754. WriteJSPropertyMethod('onrelease',TMethod(aValue));
  132755. end;
  132756. function TJSWakeLockSentinel.release: IJSPromise; // Promise<undefined>
  132757. begin
  132758. Result:=InvokeJSObjectResult('release',[],TJSPromise) as IJSPromise;
  132759. end;
  132760. class function TJSWakeLockSentinel.JSClassName: UnicodeString;
  132761. begin
  132762. Result:='WakeLockSentinel';
  132763. end;
  132764. class function TJSWakeLockSentinel.Cast(const Intf: IJSObject): IJSWakeLockSentinel;
  132765. begin
  132766. Result:=TJSWakeLockSentinel.JOBCast(Intf);
  132767. end;
  132768. function TJSWaveShaperOptions._Getcurve: TSingleDynArray;
  132769. begin
  132770. Result:=ReadJSPropertyObject('curve',TJSArray) as TSingleDynArray;
  132771. end;
  132772. function TJSWaveShaperOptions._Getoversample: TOverSampleType;
  132773. begin
  132774. Result:=ReadJSPropertyUnicodeString('oversample');
  132775. end;
  132776. procedure TJSWaveShaperOptions._Setcurve(const aValue : TSingleDynArray);
  132777. begin
  132778. WriteJSPropertyObject('curve',aValue);
  132779. end;
  132780. procedure TJSWaveShaperOptions._Setoversample(const aValue : TOverSampleType);
  132781. begin
  132782. WriteJSPropertyUnicodeString('oversample',aValue);
  132783. end;
  132784. class function TJSWaveShaperOptions.JSClassName: UnicodeString;
  132785. begin
  132786. Result:='Object';
  132787. end;
  132788. class function TJSWaveShaperOptions.Cast(const Intf: IJSObject): IJSWaveShaperOptions;
  132789. begin
  132790. Result:=TJSWaveShaperOptions.JOBCast(Intf);
  132791. end;
  132792. function TJSWaveShaperNode._Getcurve: IJSFloat32Array;
  132793. begin
  132794. Result:=ReadJSPropertyObject('curve',TJSFloat32Array) as IJSFloat32Array;
  132795. end;
  132796. function TJSWaveShaperNode._Getoversample: TOverSampleType;
  132797. begin
  132798. Result:=ReadJSPropertyUnicodeString('oversample');
  132799. end;
  132800. procedure TJSWaveShaperNode._Setcurve(const aValue : IJSFloat32Array);
  132801. begin
  132802. WriteJSPropertyObject('curve',aValue);
  132803. end;
  132804. procedure TJSWaveShaperNode._Setoversample(const aValue : TOverSampleType);
  132805. begin
  132806. WriteJSPropertyUnicodeString('oversample',aValue);
  132807. end;
  132808. constructor TJSWaveShaperNode.Create(aContext: IJSBaseAudioContext; const aOptions: TJSWaveShaperOptions);
  132809. begin
  132810. JOBCreate([aContext,aOptions]);
  132811. end;
  132812. constructor TJSWaveShaperNode.Create(aContext: IJSBaseAudioContext);
  132813. begin
  132814. JOBCreate([aContext]);
  132815. end;
  132816. class function TJSWaveShaperNode.JSClassName: UnicodeString;
  132817. begin
  132818. Result:='WaveShaperNode';
  132819. end;
  132820. class function TJSWaveShaperNode.Cast(const Intf: IJSObject): IJSWaveShaperNode;
  132821. begin
  132822. Result:=TJSWaveShaperNode.JOBCast(Intf);
  132823. end;
  132824. function TJSPublicKeyCredential._GetrawId: IJSArrayBuffer;
  132825. begin
  132826. Result:=ReadJSPropertyObject('rawId',TJSArrayBuffer) as IJSArrayBuffer;
  132827. end;
  132828. function TJSPublicKeyCredential._Getresponse: IJSAuthenticatorResponse;
  132829. begin
  132830. Result:=ReadJSPropertyObject('response',TJSAuthenticatorResponse) as IJSAuthenticatorResponse;
  132831. end;
  132832. function TJSPublicKeyCredential._GetauthenticatorAttachment: UnicodeString;
  132833. begin
  132834. Result:=ReadJSPropertyUnicodeString('authenticatorAttachment');
  132835. end;
  132836. function TJSPublicKeyCredential.getClientExtensionResults: TJSAuthenticationExtensionsClientOutputs;
  132837. begin
  132838. Result:=InvokeJSObjectResult('getClientExtensionResults',[],TJSAuthenticationExtensionsClientOutputs) as TJSAuthenticationExtensionsClientOutputs;
  132839. end;
  132840. function TJSPublicKeyCredential.isConditionalMediationAvailable: IJSPromise; // Promise<boolean>
  132841. begin
  132842. Result:=InvokeJSObjectResult('isConditionalMediationAvailable',[],TJSPromise) as IJSPromise;
  132843. end;
  132844. function TJSPublicKeyCredential.toJSON: IJSObject;
  132845. begin
  132846. Result:=InvokeJSObjectResult('toJSON',[],TJSObject) as IJSObject;
  132847. end;
  132848. function TJSPublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable: IJSPromise; // Promise<boolean>
  132849. begin
  132850. Result:=InvokeJSObjectResult('isUserVerifyingPlatformAuthenticatorAvailable',[],TJSPromise) as IJSPromise;
  132851. end;
  132852. function TJSPublicKeyCredential.parseCreationOptionsFromJSON(const aOptions: TJSPublicKeyCredentialCreationOptionsJSON): TJSPublicKeyCredentialCreationOptions;
  132853. begin
  132854. Result:=InvokeJSObjectResult('parseCreationOptionsFromJSON',[aOptions],TJSPublicKeyCredentialCreationOptions) as TJSPublicKeyCredentialCreationOptions;
  132855. end;
  132856. function TJSPublicKeyCredential.parseRequestOptionsFromJSON(const aOptions: TJSPublicKeyCredentialRequestOptionsJSON): TJSPublicKeyCredentialRequestOptions;
  132857. begin
  132858. Result:=InvokeJSObjectResult('parseRequestOptionsFromJSON',[aOptions],TJSPublicKeyCredentialRequestOptions) as TJSPublicKeyCredentialRequestOptions;
  132859. end;
  132860. class function TJSPublicKeyCredential.JSClassName: UnicodeString;
  132861. begin
  132862. Result:='PublicKeyCredential';
  132863. end;
  132864. class function TJSPublicKeyCredential.Cast(const Intf: IJSObject): IJSPublicKeyCredential;
  132865. begin
  132866. Result:=TJSPublicKeyCredential.JOBCast(Intf);
  132867. end;
  132868. function TJSRegistrationResponseJSON._Getid: TBase64URLString;
  132869. begin
  132870. Result:=ReadJSPropertyUnicodeString('id');
  132871. end;
  132872. function TJSRegistrationResponseJSON._GetrawId: TBase64URLString;
  132873. begin
  132874. Result:=ReadJSPropertyUnicodeString('rawId');
  132875. end;
  132876. function TJSRegistrationResponseJSON._Getresponse: TJSAuthenticatorAttestationResponseJSON;
  132877. begin
  132878. Result:=ReadJSPropertyObject('response',TJSAuthenticatorAttestationResponseJSON) as TJSAuthenticatorAttestationResponseJSON;
  132879. end;
  132880. function TJSRegistrationResponseJSON._GetauthenticatorAttachment: UnicodeString;
  132881. begin
  132882. Result:=ReadJSPropertyUnicodeString('authenticatorAttachment');
  132883. end;
  132884. function TJSRegistrationResponseJSON._GetclientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON;
  132885. begin
  132886. Result:=ReadJSPropertyObject('clientExtensionResults',TJSAuthenticationExtensionsClientOutputsJSON) as TJSAuthenticationExtensionsClientOutputsJSON;
  132887. end;
  132888. function TJSRegistrationResponseJSON._Gettype_: UnicodeString;
  132889. begin
  132890. Result:=ReadJSPropertyUnicodeString('type');
  132891. end;
  132892. procedure TJSRegistrationResponseJSON._Setid(const aValue : TBase64URLString);
  132893. begin
  132894. WriteJSPropertyUnicodeString('id',aValue);
  132895. end;
  132896. procedure TJSRegistrationResponseJSON._SetrawId(const aValue : TBase64URLString);
  132897. begin
  132898. WriteJSPropertyUnicodeString('rawId',aValue);
  132899. end;
  132900. procedure TJSRegistrationResponseJSON._Setresponse(const aValue : TJSAuthenticatorAttestationResponseJSON);
  132901. begin
  132902. WriteJSPropertyObject('response',aValue);
  132903. end;
  132904. procedure TJSRegistrationResponseJSON._SetauthenticatorAttachment(const aValue : UnicodeString);
  132905. begin
  132906. WriteJSPropertyUnicodeString('authenticatorAttachment',aValue);
  132907. end;
  132908. procedure TJSRegistrationResponseJSON._SetclientExtensionResults(const aValue : TJSAuthenticationExtensionsClientOutputsJSON);
  132909. begin
  132910. WriteJSPropertyObject('clientExtensionResults',aValue);
  132911. end;
  132912. procedure TJSRegistrationResponseJSON._Settype_(const aValue : UnicodeString);
  132913. begin
  132914. WriteJSPropertyUnicodeString('type',aValue);
  132915. end;
  132916. class function TJSRegistrationResponseJSON.JSClassName: UnicodeString;
  132917. begin
  132918. Result:='Object';
  132919. end;
  132920. class function TJSRegistrationResponseJSON.Cast(const Intf: IJSObject): IJSRegistrationResponseJSON;
  132921. begin
  132922. Result:=TJSRegistrationResponseJSON.JOBCast(Intf);
  132923. end;
  132924. function TJSAuthenticatorAttestationResponseJSON._GetclientDataJSON: TBase64URLString;
  132925. begin
  132926. Result:=ReadJSPropertyUnicodeString('clientDataJSON');
  132927. end;
  132928. function TJSAuthenticatorAttestationResponseJSON._GetauthenticatorData: TBase64URLString;
  132929. begin
  132930. Result:=ReadJSPropertyUnicodeString('authenticatorData');
  132931. end;
  132932. function TJSAuthenticatorAttestationResponseJSON._Gettransports: TUnicodeStringDynArray;
  132933. begin
  132934. Result:=ReadJSPropertyObject('transports',TJSArray) as TUnicodeStringDynArray;
  132935. end;
  132936. function TJSAuthenticatorAttestationResponseJSON._GetpublicKey: TBase64URLString;
  132937. begin
  132938. Result:=ReadJSPropertyUnicodeString('publicKey');
  132939. end;
  132940. function TJSAuthenticatorAttestationResponseJSON._GetpublicKeyAlgorithm: Int64;
  132941. begin
  132942. Result:=ReadJSPropertyInt64('publicKeyAlgorithm');
  132943. end;
  132944. function TJSAuthenticatorAttestationResponseJSON._GetattestationObject: TBase64URLString;
  132945. begin
  132946. Result:=ReadJSPropertyUnicodeString('attestationObject');
  132947. end;
  132948. procedure TJSAuthenticatorAttestationResponseJSON._SetclientDataJSON(const aValue : TBase64URLString);
  132949. begin
  132950. WriteJSPropertyUnicodeString('clientDataJSON',aValue);
  132951. end;
  132952. procedure TJSAuthenticatorAttestationResponseJSON._SetauthenticatorData(const aValue : TBase64URLString);
  132953. begin
  132954. WriteJSPropertyUnicodeString('authenticatorData',aValue);
  132955. end;
  132956. procedure TJSAuthenticatorAttestationResponseJSON._Settransports(const aValue : TUnicodeStringDynArray);
  132957. begin
  132958. WriteJSPropertyObject('transports',aValue);
  132959. end;
  132960. procedure TJSAuthenticatorAttestationResponseJSON._SetpublicKey(const aValue : TBase64URLString);
  132961. begin
  132962. WriteJSPropertyUnicodeString('publicKey',aValue);
  132963. end;
  132964. procedure TJSAuthenticatorAttestationResponseJSON._SetpublicKeyAlgorithm(const aValue : Int64);
  132965. begin
  132966. WriteJSPropertyDouble('publicKeyAlgorithm',aValue);
  132967. end;
  132968. procedure TJSAuthenticatorAttestationResponseJSON._SetattestationObject(const aValue : TBase64URLString);
  132969. begin
  132970. WriteJSPropertyUnicodeString('attestationObject',aValue);
  132971. end;
  132972. class function TJSAuthenticatorAttestationResponseJSON.JSClassName: UnicodeString;
  132973. begin
  132974. Result:='Object';
  132975. end;
  132976. class function TJSAuthenticatorAttestationResponseJSON.Cast(const Intf: IJSObject): IJSAuthenticatorAttestationResponseJSON;
  132977. begin
  132978. Result:=TJSAuthenticatorAttestationResponseJSON.JOBCast(Intf);
  132979. end;
  132980. function TJSAuthenticationResponseJSON._Getid: TBase64URLString;
  132981. begin
  132982. Result:=ReadJSPropertyUnicodeString('id');
  132983. end;
  132984. function TJSAuthenticationResponseJSON._GetrawId: TBase64URLString;
  132985. begin
  132986. Result:=ReadJSPropertyUnicodeString('rawId');
  132987. end;
  132988. function TJSAuthenticationResponseJSON._Getresponse: TJSAuthenticatorAssertionResponseJSON;
  132989. begin
  132990. Result:=ReadJSPropertyObject('response',TJSAuthenticatorAssertionResponseJSON) as TJSAuthenticatorAssertionResponseJSON;
  132991. end;
  132992. function TJSAuthenticationResponseJSON._GetauthenticatorAttachment: UnicodeString;
  132993. begin
  132994. Result:=ReadJSPropertyUnicodeString('authenticatorAttachment');
  132995. end;
  132996. function TJSAuthenticationResponseJSON._GetclientExtensionResults: TJSAuthenticationExtensionsClientOutputsJSON;
  132997. begin
  132998. Result:=ReadJSPropertyObject('clientExtensionResults',TJSAuthenticationExtensionsClientOutputsJSON) as TJSAuthenticationExtensionsClientOutputsJSON;
  132999. end;
  133000. function TJSAuthenticationResponseJSON._Gettype_: UnicodeString;
  133001. begin
  133002. Result:=ReadJSPropertyUnicodeString('type');
  133003. end;
  133004. procedure TJSAuthenticationResponseJSON._Setid(const aValue : TBase64URLString);
  133005. begin
  133006. WriteJSPropertyUnicodeString('id',aValue);
  133007. end;
  133008. procedure TJSAuthenticationResponseJSON._SetrawId(const aValue : TBase64URLString);
  133009. begin
  133010. WriteJSPropertyUnicodeString('rawId',aValue);
  133011. end;
  133012. procedure TJSAuthenticationResponseJSON._Setresponse(const aValue : TJSAuthenticatorAssertionResponseJSON);
  133013. begin
  133014. WriteJSPropertyObject('response',aValue);
  133015. end;
  133016. procedure TJSAuthenticationResponseJSON._SetauthenticatorAttachment(const aValue : UnicodeString);
  133017. begin
  133018. WriteJSPropertyUnicodeString('authenticatorAttachment',aValue);
  133019. end;
  133020. procedure TJSAuthenticationResponseJSON._SetclientExtensionResults(const aValue : TJSAuthenticationExtensionsClientOutputsJSON);
  133021. begin
  133022. WriteJSPropertyObject('clientExtensionResults',aValue);
  133023. end;
  133024. procedure TJSAuthenticationResponseJSON._Settype_(const aValue : UnicodeString);
  133025. begin
  133026. WriteJSPropertyUnicodeString('type',aValue);
  133027. end;
  133028. class function TJSAuthenticationResponseJSON.JSClassName: UnicodeString;
  133029. begin
  133030. Result:='Object';
  133031. end;
  133032. class function TJSAuthenticationResponseJSON.Cast(const Intf: IJSObject): IJSAuthenticationResponseJSON;
  133033. begin
  133034. Result:=TJSAuthenticationResponseJSON.JOBCast(Intf);
  133035. end;
  133036. function TJSAuthenticatorAssertionResponseJSON._GetclientDataJSON: TBase64URLString;
  133037. begin
  133038. Result:=ReadJSPropertyUnicodeString('clientDataJSON');
  133039. end;
  133040. function TJSAuthenticatorAssertionResponseJSON._GetauthenticatorData: TBase64URLString;
  133041. begin
  133042. Result:=ReadJSPropertyUnicodeString('authenticatorData');
  133043. end;
  133044. function TJSAuthenticatorAssertionResponseJSON._Getsignature: TBase64URLString;
  133045. begin
  133046. Result:=ReadJSPropertyUnicodeString('signature');
  133047. end;
  133048. function TJSAuthenticatorAssertionResponseJSON._GetuserHandle: TBase64URLString;
  133049. begin
  133050. Result:=ReadJSPropertyUnicodeString('userHandle');
  133051. end;
  133052. function TJSAuthenticatorAssertionResponseJSON._GetattestationObject: TBase64URLString;
  133053. begin
  133054. Result:=ReadJSPropertyUnicodeString('attestationObject');
  133055. end;
  133056. procedure TJSAuthenticatorAssertionResponseJSON._SetclientDataJSON(const aValue : TBase64URLString);
  133057. begin
  133058. WriteJSPropertyUnicodeString('clientDataJSON',aValue);
  133059. end;
  133060. procedure TJSAuthenticatorAssertionResponseJSON._SetauthenticatorData(const aValue : TBase64URLString);
  133061. begin
  133062. WriteJSPropertyUnicodeString('authenticatorData',aValue);
  133063. end;
  133064. procedure TJSAuthenticatorAssertionResponseJSON._Setsignature(const aValue : TBase64URLString);
  133065. begin
  133066. WriteJSPropertyUnicodeString('signature',aValue);
  133067. end;
  133068. procedure TJSAuthenticatorAssertionResponseJSON._SetuserHandle(const aValue : TBase64URLString);
  133069. begin
  133070. WriteJSPropertyUnicodeString('userHandle',aValue);
  133071. end;
  133072. procedure TJSAuthenticatorAssertionResponseJSON._SetattestationObject(const aValue : TBase64URLString);
  133073. begin
  133074. WriteJSPropertyUnicodeString('attestationObject',aValue);
  133075. end;
  133076. class function TJSAuthenticatorAssertionResponseJSON.JSClassName: UnicodeString;
  133077. begin
  133078. Result:='Object';
  133079. end;
  133080. class function TJSAuthenticatorAssertionResponseJSON.Cast(const Intf: IJSObject): IJSAuthenticatorAssertionResponseJSON;
  133081. begin
  133082. Result:=TJSAuthenticatorAssertionResponseJSON.JOBCast(Intf);
  133083. end;
  133084. function TJSAuthenticationExtensionsClientOutputsJSON._Getappid: Boolean;
  133085. begin
  133086. Result:=ReadJSPropertyBoolean('appid');
  133087. end;
  133088. function TJSAuthenticationExtensionsClientOutputsJSON._GetcredProps: TJSCredentialPropertiesOutput;
  133089. begin
  133090. Result:=ReadJSPropertyObject('credProps',TJSCredentialPropertiesOutput) as TJSCredentialPropertiesOutput;
  133091. end;
  133092. function TJSAuthenticationExtensionsClientOutputsJSON._GethmacCreateSecret: Boolean;
  133093. begin
  133094. Result:=ReadJSPropertyBoolean('hmacCreateSecret');
  133095. end;
  133096. procedure TJSAuthenticationExtensionsClientOutputsJSON._Setappid(const aValue : Boolean);
  133097. begin
  133098. WriteJSPropertyBoolean('appid',aValue);
  133099. end;
  133100. procedure TJSAuthenticationExtensionsClientOutputsJSON._SetcredProps(const aValue : TJSCredentialPropertiesOutput);
  133101. begin
  133102. WriteJSPropertyObject('credProps',aValue);
  133103. end;
  133104. procedure TJSAuthenticationExtensionsClientOutputsJSON._SethmacCreateSecret(const aValue : Boolean);
  133105. begin
  133106. WriteJSPropertyBoolean('hmacCreateSecret',aValue);
  133107. end;
  133108. class function TJSAuthenticationExtensionsClientOutputsJSON.JSClassName: UnicodeString;
  133109. begin
  133110. Result:='Object';
  133111. end;
  133112. class function TJSAuthenticationExtensionsClientOutputsJSON.Cast(const Intf: IJSObject): IJSAuthenticationExtensionsClientOutputsJSON;
  133113. begin
  133114. Result:=TJSAuthenticationExtensionsClientOutputsJSON.JOBCast(Intf);
  133115. end;
  133116. function TJSPublicKeyCredentialCreationOptionsJSON._Getrp: TJSPublicKeyCredentialRpEntity;
  133117. begin
  133118. Result:=ReadJSPropertyObject('rp',TJSPublicKeyCredentialRpEntity) as TJSPublicKeyCredentialRpEntity;
  133119. end;
  133120. function TJSPublicKeyCredentialCreationOptionsJSON._Getuser: TJSPublicKeyCredentialUserEntityJSON;
  133121. begin
  133122. Result:=ReadJSPropertyObject('user',TJSPublicKeyCredentialUserEntityJSON) as TJSPublicKeyCredentialUserEntityJSON;
  133123. end;
  133124. function TJSPublicKeyCredentialCreationOptionsJSON._Getchallenge: TBase64URLString;
  133125. begin
  133126. Result:=ReadJSPropertyUnicodeString('challenge');
  133127. end;
  133128. function TJSPublicKeyCredentialCreationOptionsJSON._GetpubKeyCredParams: TJSPublicKeyCredentialParametersDynArray;
  133129. begin
  133130. Result:=ReadJSPropertyObject('pubKeyCredParams',TJSArray) as TJSPublicKeyCredentialParametersDynArray;
  133131. end;
  133132. function TJSPublicKeyCredentialCreationOptionsJSON._Gettimeout: Cardinal;
  133133. begin
  133134. Result:=ReadJSPropertyInt64('timeout');
  133135. end;
  133136. function TJSPublicKeyCredentialCreationOptionsJSON._GetexcludeCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray;
  133137. begin
  133138. Result:=ReadJSPropertyObject('excludeCredentials',TJSArray) as TJSPublicKeyCredentialDescriptorJSONDynArray;
  133139. end;
  133140. function TJSPublicKeyCredentialCreationOptionsJSON._GetauthenticatorSelection: TJSAuthenticatorSelectionCriteria;
  133141. begin
  133142. Result:=ReadJSPropertyObject('authenticatorSelection',TJSAuthenticatorSelectionCriteria) as TJSAuthenticatorSelectionCriteria;
  133143. end;
  133144. function TJSPublicKeyCredentialCreationOptionsJSON._Gethints: TUnicodeStringDynArray;
  133145. begin
  133146. Result:=ReadJSPropertyObject('hints',TJSArray) as TUnicodeStringDynArray;
  133147. end;
  133148. function TJSPublicKeyCredentialCreationOptionsJSON._Getattestation: UnicodeString;
  133149. begin
  133150. Result:=ReadJSPropertyUnicodeString('attestation');
  133151. end;
  133152. function TJSPublicKeyCredentialCreationOptionsJSON._GetattestationFormats: TUnicodeStringDynArray;
  133153. begin
  133154. Result:=ReadJSPropertyObject('attestationFormats',TJSArray) as TUnicodeStringDynArray;
  133155. end;
  133156. function TJSPublicKeyCredentialCreationOptionsJSON._Getextensions: TJSAuthenticationExtensionsClientInputsJSON;
  133157. begin
  133158. Result:=ReadJSPropertyObject('extensions',TJSAuthenticationExtensionsClientInputsJSON) as TJSAuthenticationExtensionsClientInputsJSON;
  133159. end;
  133160. procedure TJSPublicKeyCredentialCreationOptionsJSON._Setrp(const aValue : TJSPublicKeyCredentialRpEntity);
  133161. begin
  133162. WriteJSPropertyObject('rp',aValue);
  133163. end;
  133164. procedure TJSPublicKeyCredentialCreationOptionsJSON._Setuser(const aValue : TJSPublicKeyCredentialUserEntityJSON);
  133165. begin
  133166. WriteJSPropertyObject('user',aValue);
  133167. end;
  133168. procedure TJSPublicKeyCredentialCreationOptionsJSON._Setchallenge(const aValue : TBase64URLString);
  133169. begin
  133170. WriteJSPropertyUnicodeString('challenge',aValue);
  133171. end;
  133172. procedure TJSPublicKeyCredentialCreationOptionsJSON._SetpubKeyCredParams(const aValue : TJSPublicKeyCredentialParametersDynArray);
  133173. begin
  133174. WriteJSPropertyObject('pubKeyCredParams',aValue);
  133175. end;
  133176. procedure TJSPublicKeyCredentialCreationOptionsJSON._Settimeout(const aValue : Cardinal);
  133177. begin
  133178. WriteJSPropertyDouble('timeout',aValue);
  133179. end;
  133180. procedure TJSPublicKeyCredentialCreationOptionsJSON._SetexcludeCredentials(const aValue : TJSPublicKeyCredentialDescriptorJSONDynArray);
  133181. begin
  133182. WriteJSPropertyObject('excludeCredentials',aValue);
  133183. end;
  133184. procedure TJSPublicKeyCredentialCreationOptionsJSON._SetauthenticatorSelection(const aValue : TJSAuthenticatorSelectionCriteria);
  133185. begin
  133186. WriteJSPropertyObject('authenticatorSelection',aValue);
  133187. end;
  133188. procedure TJSPublicKeyCredentialCreationOptionsJSON._Sethints(const aValue : TUnicodeStringDynArray);
  133189. begin
  133190. WriteJSPropertyObject('hints',aValue);
  133191. end;
  133192. procedure TJSPublicKeyCredentialCreationOptionsJSON._Setattestation(const aValue : UnicodeString);
  133193. begin
  133194. WriteJSPropertyUnicodeString('attestation',aValue);
  133195. end;
  133196. procedure TJSPublicKeyCredentialCreationOptionsJSON._SetattestationFormats(const aValue : TUnicodeStringDynArray);
  133197. begin
  133198. WriteJSPropertyObject('attestationFormats',aValue);
  133199. end;
  133200. procedure TJSPublicKeyCredentialCreationOptionsJSON._Setextensions(const aValue : TJSAuthenticationExtensionsClientInputsJSON);
  133201. begin
  133202. WriteJSPropertyObject('extensions',aValue);
  133203. end;
  133204. class function TJSPublicKeyCredentialCreationOptionsJSON.JSClassName: UnicodeString;
  133205. begin
  133206. Result:='Object';
  133207. end;
  133208. class function TJSPublicKeyCredentialCreationOptionsJSON.Cast(const Intf: IJSObject): IJSPublicKeyCredentialCreationOptionsJSON;
  133209. begin
  133210. Result:=TJSPublicKeyCredentialCreationOptionsJSON.JOBCast(Intf);
  133211. end;
  133212. function TJSPublicKeyCredentialUserEntityJSON._Getid: TBase64URLString;
  133213. begin
  133214. Result:=ReadJSPropertyUnicodeString('id');
  133215. end;
  133216. function TJSPublicKeyCredentialUserEntityJSON._Getname: UnicodeString;
  133217. begin
  133218. Result:=ReadJSPropertyUnicodeString('name');
  133219. end;
  133220. function TJSPublicKeyCredentialUserEntityJSON._GetdisplayName: UnicodeString;
  133221. begin
  133222. Result:=ReadJSPropertyUnicodeString('displayName');
  133223. end;
  133224. procedure TJSPublicKeyCredentialUserEntityJSON._Setid(const aValue : TBase64URLString);
  133225. begin
  133226. WriteJSPropertyUnicodeString('id',aValue);
  133227. end;
  133228. procedure TJSPublicKeyCredentialUserEntityJSON._Setname(const aValue : UnicodeString);
  133229. begin
  133230. WriteJSPropertyUnicodeString('name',aValue);
  133231. end;
  133232. procedure TJSPublicKeyCredentialUserEntityJSON._SetdisplayName(const aValue : UnicodeString);
  133233. begin
  133234. WriteJSPropertyUnicodeString('displayName',aValue);
  133235. end;
  133236. class function TJSPublicKeyCredentialUserEntityJSON.JSClassName: UnicodeString;
  133237. begin
  133238. Result:='Object';
  133239. end;
  133240. class function TJSPublicKeyCredentialUserEntityJSON.Cast(const Intf: IJSObject): IJSPublicKeyCredentialUserEntityJSON;
  133241. begin
  133242. Result:=TJSPublicKeyCredentialUserEntityJSON.JOBCast(Intf);
  133243. end;
  133244. function TJSPublicKeyCredentialDescriptorJSON._Getid: TBase64URLString;
  133245. begin
  133246. Result:=ReadJSPropertyUnicodeString('id');
  133247. end;
  133248. function TJSPublicKeyCredentialDescriptorJSON._Gettype_: UnicodeString;
  133249. begin
  133250. Result:=ReadJSPropertyUnicodeString('type');
  133251. end;
  133252. function TJSPublicKeyCredentialDescriptorJSON._Gettransports: TUnicodeStringDynArray;
  133253. begin
  133254. Result:=ReadJSPropertyObject('transports',TJSArray) as TUnicodeStringDynArray;
  133255. end;
  133256. procedure TJSPublicKeyCredentialDescriptorJSON._Setid(const aValue : TBase64URLString);
  133257. begin
  133258. WriteJSPropertyUnicodeString('id',aValue);
  133259. end;
  133260. procedure TJSPublicKeyCredentialDescriptorJSON._Settype_(const aValue : UnicodeString);
  133261. begin
  133262. WriteJSPropertyUnicodeString('type',aValue);
  133263. end;
  133264. procedure TJSPublicKeyCredentialDescriptorJSON._Settransports(const aValue : TUnicodeStringDynArray);
  133265. begin
  133266. WriteJSPropertyObject('transports',aValue);
  133267. end;
  133268. class function TJSPublicKeyCredentialDescriptorJSON.JSClassName: UnicodeString;
  133269. begin
  133270. Result:='Object';
  133271. end;
  133272. class function TJSPublicKeyCredentialDescriptorJSON.Cast(const Intf: IJSObject): IJSPublicKeyCredentialDescriptorJSON;
  133273. begin
  133274. Result:=TJSPublicKeyCredentialDescriptorJSON.JOBCast(Intf);
  133275. end;
  133276. function TJSAuthenticationExtensionsClientInputsJSON._Getappid: UnicodeString;
  133277. begin
  133278. Result:=ReadJSPropertyUnicodeString('appid');
  133279. end;
  133280. function TJSAuthenticationExtensionsClientInputsJSON._GetcredProps: Boolean;
  133281. begin
  133282. Result:=ReadJSPropertyBoolean('credProps');
  133283. end;
  133284. function TJSAuthenticationExtensionsClientInputsJSON._GethmacCreateSecret: Boolean;
  133285. begin
  133286. Result:=ReadJSPropertyBoolean('hmacCreateSecret');
  133287. end;
  133288. function TJSAuthenticationExtensionsClientInputsJSON._GetminPinLength: Boolean;
  133289. begin
  133290. Result:=ReadJSPropertyBoolean('minPinLength');
  133291. end;
  133292. procedure TJSAuthenticationExtensionsClientInputsJSON._Setappid(const aValue : UnicodeString);
  133293. begin
  133294. WriteJSPropertyUnicodeString('appid',aValue);
  133295. end;
  133296. procedure TJSAuthenticationExtensionsClientInputsJSON._SetcredProps(const aValue : Boolean);
  133297. begin
  133298. WriteJSPropertyBoolean('credProps',aValue);
  133299. end;
  133300. procedure TJSAuthenticationExtensionsClientInputsJSON._SethmacCreateSecret(const aValue : Boolean);
  133301. begin
  133302. WriteJSPropertyBoolean('hmacCreateSecret',aValue);
  133303. end;
  133304. procedure TJSAuthenticationExtensionsClientInputsJSON._SetminPinLength(const aValue : Boolean);
  133305. begin
  133306. WriteJSPropertyBoolean('minPinLength',aValue);
  133307. end;
  133308. class function TJSAuthenticationExtensionsClientInputsJSON.JSClassName: UnicodeString;
  133309. begin
  133310. Result:='Object';
  133311. end;
  133312. class function TJSAuthenticationExtensionsClientInputsJSON.Cast(const Intf: IJSObject): IJSAuthenticationExtensionsClientInputsJSON;
  133313. begin
  133314. Result:=TJSAuthenticationExtensionsClientInputsJSON.JOBCast(Intf);
  133315. end;
  133316. function TJSPublicKeyCredentialRequestOptionsJSON._Getchallenge: TBase64URLString;
  133317. begin
  133318. Result:=ReadJSPropertyUnicodeString('challenge');
  133319. end;
  133320. function TJSPublicKeyCredentialRequestOptionsJSON._Gettimeout: Cardinal;
  133321. begin
  133322. Result:=ReadJSPropertyInt64('timeout');
  133323. end;
  133324. function TJSPublicKeyCredentialRequestOptionsJSON._GetrpId: UnicodeString;
  133325. begin
  133326. Result:=ReadJSPropertyUnicodeString('rpId');
  133327. end;
  133328. function TJSPublicKeyCredentialRequestOptionsJSON._GetallowCredentials: TJSPublicKeyCredentialDescriptorJSONDynArray;
  133329. begin
  133330. Result:=ReadJSPropertyObject('allowCredentials',TJSArray) as TJSPublicKeyCredentialDescriptorJSONDynArray;
  133331. end;
  133332. function TJSPublicKeyCredentialRequestOptionsJSON._GetuserVerification: UnicodeString;
  133333. begin
  133334. Result:=ReadJSPropertyUnicodeString('userVerification');
  133335. end;
  133336. function TJSPublicKeyCredentialRequestOptionsJSON._Gethints: TUnicodeStringDynArray;
  133337. begin
  133338. Result:=ReadJSPropertyObject('hints',TJSArray) as TUnicodeStringDynArray;
  133339. end;
  133340. function TJSPublicKeyCredentialRequestOptionsJSON._Getattestation: UnicodeString;
  133341. begin
  133342. Result:=ReadJSPropertyUnicodeString('attestation');
  133343. end;
  133344. function TJSPublicKeyCredentialRequestOptionsJSON._GetattestationFormats: TUnicodeStringDynArray;
  133345. begin
  133346. Result:=ReadJSPropertyObject('attestationFormats',TJSArray) as TUnicodeStringDynArray;
  133347. end;
  133348. function TJSPublicKeyCredentialRequestOptionsJSON._Getextensions: TJSAuthenticationExtensionsClientInputsJSON;
  133349. begin
  133350. Result:=ReadJSPropertyObject('extensions',TJSAuthenticationExtensionsClientInputsJSON) as TJSAuthenticationExtensionsClientInputsJSON;
  133351. end;
  133352. procedure TJSPublicKeyCredentialRequestOptionsJSON._Setchallenge(const aValue : TBase64URLString);
  133353. begin
  133354. WriteJSPropertyUnicodeString('challenge',aValue);
  133355. end;
  133356. procedure TJSPublicKeyCredentialRequestOptionsJSON._Settimeout(const aValue : Cardinal);
  133357. begin
  133358. WriteJSPropertyDouble('timeout',aValue);
  133359. end;
  133360. procedure TJSPublicKeyCredentialRequestOptionsJSON._SetrpId(const aValue : UnicodeString);
  133361. begin
  133362. WriteJSPropertyUnicodeString('rpId',aValue);
  133363. end;
  133364. procedure TJSPublicKeyCredentialRequestOptionsJSON._SetallowCredentials(const aValue : TJSPublicKeyCredentialDescriptorJSONDynArray);
  133365. begin
  133366. WriteJSPropertyObject('allowCredentials',aValue);
  133367. end;
  133368. procedure TJSPublicKeyCredentialRequestOptionsJSON._SetuserVerification(const aValue : UnicodeString);
  133369. begin
  133370. WriteJSPropertyUnicodeString('userVerification',aValue);
  133371. end;
  133372. procedure TJSPublicKeyCredentialRequestOptionsJSON._Sethints(const aValue : TUnicodeStringDynArray);
  133373. begin
  133374. WriteJSPropertyObject('hints',aValue);
  133375. end;
  133376. procedure TJSPublicKeyCredentialRequestOptionsJSON._Setattestation(const aValue : UnicodeString);
  133377. begin
  133378. WriteJSPropertyUnicodeString('attestation',aValue);
  133379. end;
  133380. procedure TJSPublicKeyCredentialRequestOptionsJSON._SetattestationFormats(const aValue : TUnicodeStringDynArray);
  133381. begin
  133382. WriteJSPropertyObject('attestationFormats',aValue);
  133383. end;
  133384. procedure TJSPublicKeyCredentialRequestOptionsJSON._Setextensions(const aValue : TJSAuthenticationExtensionsClientInputsJSON);
  133385. begin
  133386. WriteJSPropertyObject('extensions',aValue);
  133387. end;
  133388. class function TJSPublicKeyCredentialRequestOptionsJSON.JSClassName: UnicodeString;
  133389. begin
  133390. Result:='Object';
  133391. end;
  133392. class function TJSPublicKeyCredentialRequestOptionsJSON.Cast(const Intf: IJSObject): IJSPublicKeyCredentialRequestOptionsJSON;
  133393. begin
  133394. Result:=TJSPublicKeyCredentialRequestOptionsJSON.JOBCast(Intf);
  133395. end;
  133396. function TJSAuthenticatorResponse._GetclientDataJSON: IJSArrayBuffer;
  133397. begin
  133398. Result:=ReadJSPropertyObject('clientDataJSON',TJSArrayBuffer) as IJSArrayBuffer;
  133399. end;
  133400. class function TJSAuthenticatorResponse.JSClassName: UnicodeString;
  133401. begin
  133402. Result:='AuthenticatorResponse';
  133403. end;
  133404. class function TJSAuthenticatorResponse.Cast(const Intf: IJSObject): IJSAuthenticatorResponse;
  133405. begin
  133406. Result:=TJSAuthenticatorResponse.JOBCast(Intf);
  133407. end;
  133408. function TJSAuthenticatorAttestationResponse._GetattestationObject: IJSArrayBuffer;
  133409. begin
  133410. Result:=ReadJSPropertyObject('attestationObject',TJSArrayBuffer) as IJSArrayBuffer;
  133411. end;
  133412. function TJSAuthenticatorAttestationResponse.getTransports: TUnicodeStringDynArray;
  133413. begin
  133414. Result:=InvokeJSObjectResult('getTransports',[],TJSArray) as TUnicodeStringDynArray;
  133415. end;
  133416. function TJSAuthenticatorAttestationResponse.getAuthenticatorData: IJSArrayBuffer;
  133417. begin
  133418. Result:=InvokeJSObjectResult('getAuthenticatorData',[],TJSArray) as IJSArrayBuffer;
  133419. end;
  133420. function TJSAuthenticatorAttestationResponse.getPublicKey: IJSArrayBuffer;
  133421. begin
  133422. Result:=InvokeJSObjectResult('getPublicKey',[],TJSArray) as IJSArrayBuffer;
  133423. end;
  133424. function TJSAuthenticatorAttestationResponse.getPublicKeyAlgorithm: TCOSEAlgorithmIdentifier;
  133425. begin
  133426. Result:=InvokeJSLongIntResult('getPublicKeyAlgorithm',[]);
  133427. end;
  133428. class function TJSAuthenticatorAttestationResponse.JSClassName: UnicodeString;
  133429. begin
  133430. Result:='AuthenticatorAttestationResponse';
  133431. end;
  133432. class function TJSAuthenticatorAttestationResponse.Cast(const Intf: IJSObject): IJSAuthenticatorAttestationResponse;
  133433. begin
  133434. Result:=TJSAuthenticatorAttestationResponse.JOBCast(Intf);
  133435. end;
  133436. function TJSAuthenticatorAssertionResponse._GetauthenticatorData: IJSArrayBuffer;
  133437. begin
  133438. Result:=ReadJSPropertyObject('authenticatorData',TJSArrayBuffer) as IJSArrayBuffer;
  133439. end;
  133440. function TJSAuthenticatorAssertionResponse._Getsignature: IJSArrayBuffer;
  133441. begin
  133442. Result:=ReadJSPropertyObject('signature',TJSArrayBuffer) as IJSArrayBuffer;
  133443. end;
  133444. function TJSAuthenticatorAssertionResponse._GetuserHandle: IJSArrayBuffer;
  133445. begin
  133446. Result:=ReadJSPropertyObject('userHandle',TJSArrayBuffer) as IJSArrayBuffer;
  133447. end;
  133448. class function TJSAuthenticatorAssertionResponse.JSClassName: UnicodeString;
  133449. begin
  133450. Result:='AuthenticatorAssertionResponse';
  133451. end;
  133452. class function TJSAuthenticatorAssertionResponse.Cast(const Intf: IJSObject): IJSAuthenticatorAssertionResponse;
  133453. begin
  133454. Result:=TJSAuthenticatorAssertionResponse.JOBCast(Intf);
  133455. end;
  133456. function TJSPublicKeyCredentialParameters._Gettype_: UnicodeString;
  133457. begin
  133458. Result:=ReadJSPropertyUnicodeString('type');
  133459. end;
  133460. function TJSPublicKeyCredentialParameters._Getalg: TCOSEAlgorithmIdentifier;
  133461. begin
  133462. Result:=ReadJSPropertyLongInt('alg');
  133463. end;
  133464. procedure TJSPublicKeyCredentialParameters._Settype_(const aValue : UnicodeString);
  133465. begin
  133466. WriteJSPropertyUnicodeString('type',aValue);
  133467. end;
  133468. procedure TJSPublicKeyCredentialParameters._Setalg(const aValue : TCOSEAlgorithmIdentifier);
  133469. begin
  133470. WriteJSPropertyLongInt('alg',aValue);
  133471. end;
  133472. class function TJSPublicKeyCredentialParameters.JSClassName: UnicodeString;
  133473. begin
  133474. Result:='Object';
  133475. end;
  133476. class function TJSPublicKeyCredentialParameters.Cast(const Intf: IJSObject): IJSPublicKeyCredentialParameters;
  133477. begin
  133478. Result:=TJSPublicKeyCredentialParameters.JOBCast(Intf);
  133479. end;
  133480. function TJSPublicKeyCredentialCreationOptions._Getrp: TJSPublicKeyCredentialRpEntity;
  133481. begin
  133482. Result:=ReadJSPropertyObject('rp',TJSPublicKeyCredentialRpEntity) as TJSPublicKeyCredentialRpEntity;
  133483. end;
  133484. function TJSPublicKeyCredentialCreationOptions._Getuser: TJSPublicKeyCredentialUserEntity;
  133485. begin
  133486. Result:=ReadJSPropertyObject('user',TJSPublicKeyCredentialUserEntity) as TJSPublicKeyCredentialUserEntity;
  133487. end;
  133488. function TJSPublicKeyCredentialCreationOptions._Getchallenge: IJSBufferSource;
  133489. begin
  133490. Result:=ReadJSPropertyObject('challenge',TJSBufferSource) as IJSBufferSource;
  133491. end;
  133492. function TJSPublicKeyCredentialCreationOptions._GetpubKeyCredParams: TJSPublicKeyCredentialParametersDynArray;
  133493. begin
  133494. Result:=ReadJSPropertyObject('pubKeyCredParams',TJSArray) as TJSPublicKeyCredentialParametersDynArray;
  133495. end;
  133496. function TJSPublicKeyCredentialCreationOptions._Gettimeout: Cardinal;
  133497. begin
  133498. Result:=ReadJSPropertyInt64('timeout');
  133499. end;
  133500. function TJSPublicKeyCredentialCreationOptions._GetexcludeCredentials: TJSPublicKeyCredentialDescriptorDynArray;
  133501. begin
  133502. Result:=ReadJSPropertyObject('excludeCredentials',TJSArray) as TJSPublicKeyCredentialDescriptorDynArray;
  133503. end;
  133504. function TJSPublicKeyCredentialCreationOptions._GetauthenticatorSelection: TJSAuthenticatorSelectionCriteria;
  133505. begin
  133506. Result:=ReadJSPropertyObject('authenticatorSelection',TJSAuthenticatorSelectionCriteria) as TJSAuthenticatorSelectionCriteria;
  133507. end;
  133508. function TJSPublicKeyCredentialCreationOptions._Getattestation: UnicodeString;
  133509. begin
  133510. Result:=ReadJSPropertyUnicodeString('attestation');
  133511. end;
  133512. function TJSPublicKeyCredentialCreationOptions._Getextensions: TJSAuthenticationExtensionsClientInputs;
  133513. begin
  133514. Result:=ReadJSPropertyObject('extensions',TJSAuthenticationExtensionsClientInputs) as TJSAuthenticationExtensionsClientInputs;
  133515. end;
  133516. procedure TJSPublicKeyCredentialCreationOptions._Setrp(const aValue : TJSPublicKeyCredentialRpEntity);
  133517. begin
  133518. WriteJSPropertyObject('rp',aValue);
  133519. end;
  133520. procedure TJSPublicKeyCredentialCreationOptions._Setuser(const aValue : TJSPublicKeyCredentialUserEntity);
  133521. begin
  133522. WriteJSPropertyObject('user',aValue);
  133523. end;
  133524. procedure TJSPublicKeyCredentialCreationOptions._Setchallenge(const aValue : IJSBufferSource);
  133525. begin
  133526. WriteJSPropertyObject('challenge',aValue);
  133527. end;
  133528. procedure TJSPublicKeyCredentialCreationOptions._SetpubKeyCredParams(const aValue : TJSPublicKeyCredentialParametersDynArray);
  133529. begin
  133530. WriteJSPropertyObject('pubKeyCredParams',aValue);
  133531. end;
  133532. procedure TJSPublicKeyCredentialCreationOptions._Settimeout(const aValue : Cardinal);
  133533. begin
  133534. WriteJSPropertyDouble('timeout',aValue);
  133535. end;
  133536. procedure TJSPublicKeyCredentialCreationOptions._SetexcludeCredentials(const aValue : TJSPublicKeyCredentialDescriptorDynArray);
  133537. begin
  133538. WriteJSPropertyObject('excludeCredentials',aValue);
  133539. end;
  133540. procedure TJSPublicKeyCredentialCreationOptions._SetauthenticatorSelection(const aValue : TJSAuthenticatorSelectionCriteria);
  133541. begin
  133542. WriteJSPropertyObject('authenticatorSelection',aValue);
  133543. end;
  133544. procedure TJSPublicKeyCredentialCreationOptions._Setattestation(const aValue : UnicodeString);
  133545. begin
  133546. WriteJSPropertyUnicodeString('attestation',aValue);
  133547. end;
  133548. procedure TJSPublicKeyCredentialCreationOptions._Setextensions(const aValue : TJSAuthenticationExtensionsClientInputs);
  133549. begin
  133550. WriteJSPropertyObject('extensions',aValue);
  133551. end;
  133552. class function TJSPublicKeyCredentialCreationOptions.JSClassName: UnicodeString;
  133553. begin
  133554. Result:='Object';
  133555. end;
  133556. class function TJSPublicKeyCredentialCreationOptions.Cast(const Intf: IJSObject): IJSPublicKeyCredentialCreationOptions;
  133557. begin
  133558. Result:=TJSPublicKeyCredentialCreationOptions.JOBCast(Intf);
  133559. end;
  133560. function TJSPublicKeyCredentialEntity._Getname: UnicodeString;
  133561. begin
  133562. Result:=ReadJSPropertyUnicodeString('name');
  133563. end;
  133564. procedure TJSPublicKeyCredentialEntity._Setname(const aValue : UnicodeString);
  133565. begin
  133566. WriteJSPropertyUnicodeString('name',aValue);
  133567. end;
  133568. class function TJSPublicKeyCredentialEntity.JSClassName: UnicodeString;
  133569. begin
  133570. Result:='Object';
  133571. end;
  133572. class function TJSPublicKeyCredentialEntity.Cast(const Intf: IJSObject): IJSPublicKeyCredentialEntity;
  133573. begin
  133574. Result:=TJSPublicKeyCredentialEntity.JOBCast(Intf);
  133575. end;
  133576. function TJSPublicKeyCredentialRpEntity._Getid: UnicodeString;
  133577. begin
  133578. Result:=ReadJSPropertyUnicodeString('id');
  133579. end;
  133580. procedure TJSPublicKeyCredentialRpEntity._Setid(const aValue : UnicodeString);
  133581. begin
  133582. WriteJSPropertyUnicodeString('id',aValue);
  133583. end;
  133584. class function TJSPublicKeyCredentialRpEntity.JSClassName: UnicodeString;
  133585. begin
  133586. Result:='Object';
  133587. end;
  133588. class function TJSPublicKeyCredentialRpEntity.Cast(const Intf: IJSObject): IJSPublicKeyCredentialRpEntity;
  133589. begin
  133590. Result:=TJSPublicKeyCredentialRpEntity.JOBCast(Intf);
  133591. end;
  133592. function TJSPublicKeyCredentialUserEntity._Getid: IJSBufferSource;
  133593. begin
  133594. Result:=ReadJSPropertyObject('id',TJSBufferSource) as IJSBufferSource;
  133595. end;
  133596. function TJSPublicKeyCredentialUserEntity._GetdisplayName: UnicodeString;
  133597. begin
  133598. Result:=ReadJSPropertyUnicodeString('displayName');
  133599. end;
  133600. procedure TJSPublicKeyCredentialUserEntity._Setid(const aValue : IJSBufferSource);
  133601. begin
  133602. WriteJSPropertyObject('id',aValue);
  133603. end;
  133604. procedure TJSPublicKeyCredentialUserEntity._SetdisplayName(const aValue : UnicodeString);
  133605. begin
  133606. WriteJSPropertyUnicodeString('displayName',aValue);
  133607. end;
  133608. class function TJSPublicKeyCredentialUserEntity.JSClassName: UnicodeString;
  133609. begin
  133610. Result:='Object';
  133611. end;
  133612. class function TJSPublicKeyCredentialUserEntity.Cast(const Intf: IJSObject): IJSPublicKeyCredentialUserEntity;
  133613. begin
  133614. Result:=TJSPublicKeyCredentialUserEntity.JOBCast(Intf);
  133615. end;
  133616. function TJSAuthenticatorSelectionCriteria._GetauthenticatorAttachment: UnicodeString;
  133617. begin
  133618. Result:=ReadJSPropertyUnicodeString('authenticatorAttachment');
  133619. end;
  133620. function TJSAuthenticatorSelectionCriteria._GetresidentKey: UnicodeString;
  133621. begin
  133622. Result:=ReadJSPropertyUnicodeString('residentKey');
  133623. end;
  133624. function TJSAuthenticatorSelectionCriteria._GetrequireResidentKey: Boolean;
  133625. begin
  133626. Result:=ReadJSPropertyBoolean('requireResidentKey');
  133627. end;
  133628. function TJSAuthenticatorSelectionCriteria._GetuserVerification: UnicodeString;
  133629. begin
  133630. Result:=ReadJSPropertyUnicodeString('userVerification');
  133631. end;
  133632. procedure TJSAuthenticatorSelectionCriteria._SetauthenticatorAttachment(const aValue : UnicodeString);
  133633. begin
  133634. WriteJSPropertyUnicodeString('authenticatorAttachment',aValue);
  133635. end;
  133636. procedure TJSAuthenticatorSelectionCriteria._SetresidentKey(const aValue : UnicodeString);
  133637. begin
  133638. WriteJSPropertyUnicodeString('residentKey',aValue);
  133639. end;
  133640. procedure TJSAuthenticatorSelectionCriteria._SetrequireResidentKey(const aValue : Boolean);
  133641. begin
  133642. WriteJSPropertyBoolean('requireResidentKey',aValue);
  133643. end;
  133644. procedure TJSAuthenticatorSelectionCriteria._SetuserVerification(const aValue : UnicodeString);
  133645. begin
  133646. WriteJSPropertyUnicodeString('userVerification',aValue);
  133647. end;
  133648. class function TJSAuthenticatorSelectionCriteria.JSClassName: UnicodeString;
  133649. begin
  133650. Result:='Object';
  133651. end;
  133652. class function TJSAuthenticatorSelectionCriteria.Cast(const Intf: IJSObject): IJSAuthenticatorSelectionCriteria;
  133653. begin
  133654. Result:=TJSAuthenticatorSelectionCriteria.JOBCast(Intf);
  133655. end;
  133656. function TJSPublicKeyCredentialRequestOptions._Getchallenge: IJSBufferSource;
  133657. begin
  133658. Result:=ReadJSPropertyObject('challenge',TJSBufferSource) as IJSBufferSource;
  133659. end;
  133660. function TJSPublicKeyCredentialRequestOptions._Gettimeout: Cardinal;
  133661. begin
  133662. Result:=ReadJSPropertyInt64('timeout');
  133663. end;
  133664. function TJSPublicKeyCredentialRequestOptions._GetrpId: UnicodeString;
  133665. begin
  133666. Result:=ReadJSPropertyUnicodeString('rpId');
  133667. end;
  133668. function TJSPublicKeyCredentialRequestOptions._GetallowCredentials: TJSPublicKeyCredentialDescriptorDynArray;
  133669. begin
  133670. Result:=ReadJSPropertyObject('allowCredentials',TJSArray) as TJSPublicKeyCredentialDescriptorDynArray;
  133671. end;
  133672. function TJSPublicKeyCredentialRequestOptions._GetuserVerification: UnicodeString;
  133673. begin
  133674. Result:=ReadJSPropertyUnicodeString('userVerification');
  133675. end;
  133676. function TJSPublicKeyCredentialRequestOptions._Getextensions: TJSAuthenticationExtensionsClientInputs;
  133677. begin
  133678. Result:=ReadJSPropertyObject('extensions',TJSAuthenticationExtensionsClientInputs) as TJSAuthenticationExtensionsClientInputs;
  133679. end;
  133680. procedure TJSPublicKeyCredentialRequestOptions._Setchallenge(const aValue : IJSBufferSource);
  133681. begin
  133682. WriteJSPropertyObject('challenge',aValue);
  133683. end;
  133684. procedure TJSPublicKeyCredentialRequestOptions._Settimeout(const aValue : Cardinal);
  133685. begin
  133686. WriteJSPropertyDouble('timeout',aValue);
  133687. end;
  133688. procedure TJSPublicKeyCredentialRequestOptions._SetrpId(const aValue : UnicodeString);
  133689. begin
  133690. WriteJSPropertyUnicodeString('rpId',aValue);
  133691. end;
  133692. procedure TJSPublicKeyCredentialRequestOptions._SetallowCredentials(const aValue : TJSPublicKeyCredentialDescriptorDynArray);
  133693. begin
  133694. WriteJSPropertyObject('allowCredentials',aValue);
  133695. end;
  133696. procedure TJSPublicKeyCredentialRequestOptions._SetuserVerification(const aValue : UnicodeString);
  133697. begin
  133698. WriteJSPropertyUnicodeString('userVerification',aValue);
  133699. end;
  133700. procedure TJSPublicKeyCredentialRequestOptions._Setextensions(const aValue : TJSAuthenticationExtensionsClientInputs);
  133701. begin
  133702. WriteJSPropertyObject('extensions',aValue);
  133703. end;
  133704. class function TJSPublicKeyCredentialRequestOptions.JSClassName: UnicodeString;
  133705. begin
  133706. Result:='Object';
  133707. end;
  133708. class function TJSPublicKeyCredentialRequestOptions.Cast(const Intf: IJSObject): IJSPublicKeyCredentialRequestOptions;
  133709. begin
  133710. Result:=TJSPublicKeyCredentialRequestOptions.JOBCast(Intf);
  133711. end;
  133712. function TJSAuthenticationExtensionsClientInputs._Getappid: UnicodeString;
  133713. begin
  133714. Result:=ReadJSPropertyUnicodeString('appid');
  133715. end;
  133716. function TJSAuthenticationExtensionsClientInputs._GetcredProps: Boolean;
  133717. begin
  133718. Result:=ReadJSPropertyBoolean('credProps');
  133719. end;
  133720. function TJSAuthenticationExtensionsClientInputs._GethmacCreateSecret: Boolean;
  133721. begin
  133722. Result:=ReadJSPropertyBoolean('hmacCreateSecret');
  133723. end;
  133724. function TJSAuthenticationExtensionsClientInputs._GetminPinLength: Boolean;
  133725. begin
  133726. Result:=ReadJSPropertyBoolean('minPinLength');
  133727. end;
  133728. procedure TJSAuthenticationExtensionsClientInputs._Setappid(const aValue : UnicodeString);
  133729. begin
  133730. WriteJSPropertyUnicodeString('appid',aValue);
  133731. end;
  133732. procedure TJSAuthenticationExtensionsClientInputs._SetcredProps(const aValue : Boolean);
  133733. begin
  133734. WriteJSPropertyBoolean('credProps',aValue);
  133735. end;
  133736. procedure TJSAuthenticationExtensionsClientInputs._SethmacCreateSecret(const aValue : Boolean);
  133737. begin
  133738. WriteJSPropertyBoolean('hmacCreateSecret',aValue);
  133739. end;
  133740. procedure TJSAuthenticationExtensionsClientInputs._SetminPinLength(const aValue : Boolean);
  133741. begin
  133742. WriteJSPropertyBoolean('minPinLength',aValue);
  133743. end;
  133744. class function TJSAuthenticationExtensionsClientInputs.JSClassName: UnicodeString;
  133745. begin
  133746. Result:='Object';
  133747. end;
  133748. class function TJSAuthenticationExtensionsClientInputs.Cast(const Intf: IJSObject): IJSAuthenticationExtensionsClientInputs;
  133749. begin
  133750. Result:=TJSAuthenticationExtensionsClientInputs.JOBCast(Intf);
  133751. end;
  133752. function TJSAuthenticationExtensionsClientOutputs._Getappid: Boolean;
  133753. begin
  133754. Result:=ReadJSPropertyBoolean('appid');
  133755. end;
  133756. function TJSAuthenticationExtensionsClientOutputs._GetcredProps: TJSCredentialPropertiesOutput;
  133757. begin
  133758. Result:=ReadJSPropertyObject('credProps',TJSCredentialPropertiesOutput) as TJSCredentialPropertiesOutput;
  133759. end;
  133760. function TJSAuthenticationExtensionsClientOutputs._GethmacCreateSecret: Boolean;
  133761. begin
  133762. Result:=ReadJSPropertyBoolean('hmacCreateSecret');
  133763. end;
  133764. procedure TJSAuthenticationExtensionsClientOutputs._Setappid(const aValue : Boolean);
  133765. begin
  133766. WriteJSPropertyBoolean('appid',aValue);
  133767. end;
  133768. procedure TJSAuthenticationExtensionsClientOutputs._SetcredProps(const aValue : TJSCredentialPropertiesOutput);
  133769. begin
  133770. WriteJSPropertyObject('credProps',aValue);
  133771. end;
  133772. procedure TJSAuthenticationExtensionsClientOutputs._SethmacCreateSecret(const aValue : Boolean);
  133773. begin
  133774. WriteJSPropertyBoolean('hmacCreateSecret',aValue);
  133775. end;
  133776. class function TJSAuthenticationExtensionsClientOutputs.JSClassName: UnicodeString;
  133777. begin
  133778. Result:='Object';
  133779. end;
  133780. class function TJSAuthenticationExtensionsClientOutputs.Cast(const Intf: IJSObject): IJSAuthenticationExtensionsClientOutputs;
  133781. begin
  133782. Result:=TJSAuthenticationExtensionsClientOutputs.JOBCast(Intf);
  133783. end;
  133784. function TJSCollectedClientData._Gettype_: UnicodeString;
  133785. begin
  133786. Result:=ReadJSPropertyUnicodeString('type');
  133787. end;
  133788. function TJSCollectedClientData._Getchallenge: UnicodeString;
  133789. begin
  133790. Result:=ReadJSPropertyUnicodeString('challenge');
  133791. end;
  133792. function TJSCollectedClientData._Getorigin: UnicodeString;
  133793. begin
  133794. Result:=ReadJSPropertyUnicodeString('origin');
  133795. end;
  133796. function TJSCollectedClientData._GettokenBinding: TJSTokenBinding;
  133797. begin
  133798. Result:=ReadJSPropertyObject('tokenBinding',TJSTokenBinding) as TJSTokenBinding;
  133799. end;
  133800. procedure TJSCollectedClientData._Settype_(const aValue : UnicodeString);
  133801. begin
  133802. WriteJSPropertyUnicodeString('type',aValue);
  133803. end;
  133804. procedure TJSCollectedClientData._Setchallenge(const aValue : UnicodeString);
  133805. begin
  133806. WriteJSPropertyUnicodeString('challenge',aValue);
  133807. end;
  133808. procedure TJSCollectedClientData._Setorigin(const aValue : UnicodeString);
  133809. begin
  133810. WriteJSPropertyUnicodeString('origin',aValue);
  133811. end;
  133812. procedure TJSCollectedClientData._SettokenBinding(const aValue : TJSTokenBinding);
  133813. begin
  133814. WriteJSPropertyObject('tokenBinding',aValue);
  133815. end;
  133816. class function TJSCollectedClientData.JSClassName: UnicodeString;
  133817. begin
  133818. Result:='Object';
  133819. end;
  133820. class function TJSCollectedClientData.Cast(const Intf: IJSObject): IJSCollectedClientData;
  133821. begin
  133822. Result:=TJSCollectedClientData.JOBCast(Intf);
  133823. end;
  133824. function TJSTokenBinding._Getstatus: UnicodeString;
  133825. begin
  133826. Result:=ReadJSPropertyUnicodeString('status');
  133827. end;
  133828. function TJSTokenBinding._Getid: UnicodeString;
  133829. begin
  133830. Result:=ReadJSPropertyUnicodeString('id');
  133831. end;
  133832. procedure TJSTokenBinding._Setstatus(const aValue : UnicodeString);
  133833. begin
  133834. WriteJSPropertyUnicodeString('status',aValue);
  133835. end;
  133836. procedure TJSTokenBinding._Setid(const aValue : UnicodeString);
  133837. begin
  133838. WriteJSPropertyUnicodeString('id',aValue);
  133839. end;
  133840. class function TJSTokenBinding.JSClassName: UnicodeString;
  133841. begin
  133842. Result:='Object';
  133843. end;
  133844. class function TJSTokenBinding.Cast(const Intf: IJSObject): IJSTokenBinding;
  133845. begin
  133846. Result:=TJSTokenBinding.JOBCast(Intf);
  133847. end;
  133848. function TJSPublicKeyCredentialDescriptor._Gettype_: UnicodeString;
  133849. begin
  133850. Result:=ReadJSPropertyUnicodeString('type');
  133851. end;
  133852. function TJSPublicKeyCredentialDescriptor._Getid: IJSBufferSource;
  133853. begin
  133854. Result:=ReadJSPropertyObject('id',TJSBufferSource) as IJSBufferSource;
  133855. end;
  133856. function TJSPublicKeyCredentialDescriptor._Gettransports: TUnicodeStringDynArray;
  133857. begin
  133858. Result:=ReadJSPropertyObject('transports',TJSArray) as TUnicodeStringDynArray;
  133859. end;
  133860. procedure TJSPublicKeyCredentialDescriptor._Settype_(const aValue : UnicodeString);
  133861. begin
  133862. WriteJSPropertyUnicodeString('type',aValue);
  133863. end;
  133864. procedure TJSPublicKeyCredentialDescriptor._Setid(const aValue : IJSBufferSource);
  133865. begin
  133866. WriteJSPropertyObject('id',aValue);
  133867. end;
  133868. procedure TJSPublicKeyCredentialDescriptor._Settransports(const aValue : TUnicodeStringDynArray);
  133869. begin
  133870. WriteJSPropertyObject('transports',aValue);
  133871. end;
  133872. class function TJSPublicKeyCredentialDescriptor.JSClassName: UnicodeString;
  133873. begin
  133874. Result:='Object';
  133875. end;
  133876. class function TJSPublicKeyCredentialDescriptor.Cast(const Intf: IJSObject): IJSPublicKeyCredentialDescriptor;
  133877. begin
  133878. Result:=TJSPublicKeyCredentialDescriptor.JOBCast(Intf);
  133879. end;
  133880. function TJSCredentialPropertiesOutput._Getrk: Boolean;
  133881. begin
  133882. Result:=ReadJSPropertyBoolean('rk');
  133883. end;
  133884. procedure TJSCredentialPropertiesOutput._Setrk(const aValue : Boolean);
  133885. begin
  133886. WriteJSPropertyBoolean('rk',aValue);
  133887. end;
  133888. class function TJSCredentialPropertiesOutput.JSClassName: UnicodeString;
  133889. begin
  133890. Result:='Object';
  133891. end;
  133892. class function TJSCredentialPropertiesOutput.Cast(const Intf: IJSObject): IJSCredentialPropertiesOutput;
  133893. begin
  133894. Result:=TJSCredentialPropertiesOutput.JOBCast(Intf);
  133895. end;
  133896. class function TJSWebGLSampler.JSClassName: UnicodeString;
  133897. begin
  133898. Result:='WebGLSampler';
  133899. end;
  133900. class function TJSWebGLSampler.Cast(const Intf: IJSObject): IJSWebGLSampler;
  133901. begin
  133902. Result:=TJSWebGLSampler.JOBCast(Intf);
  133903. end;
  133904. class function TJSWebGLSync.JSClassName: UnicodeString;
  133905. begin
  133906. Result:='WebGLSync';
  133907. end;
  133908. class function TJSWebGLSync.Cast(const Intf: IJSObject): IJSWebGLSync;
  133909. begin
  133910. Result:=TJSWebGLSync.JOBCast(Intf);
  133911. end;
  133912. class function TJSWebGLTransformFeedback.JSClassName: UnicodeString;
  133913. begin
  133914. Result:='WebGLTransformFeedback';
  133915. end;
  133916. class function TJSWebGLTransformFeedback.Cast(const Intf: IJSObject): IJSWebGLTransformFeedback;
  133917. begin
  133918. Result:=TJSWebGLTransformFeedback.JOBCast(Intf);
  133919. end;
  133920. function TJSWebGL2RenderingContext._Getcanvas: TCanvasSource;
  133921. begin
  133922. Result:=ReadJSPropertyVariant('canvas');
  133923. end;
  133924. function TJSWebGL2RenderingContext._GetdrawingBufferWidth: TGLsizei;
  133925. begin
  133926. Result:=ReadJSPropertyLongInt('drawingBufferWidth');
  133927. end;
  133928. function TJSWebGL2RenderingContext._GetdrawingBufferHeight: TGLsizei;
  133929. begin
  133930. Result:=ReadJSPropertyLongInt('drawingBufferHeight');
  133931. end;
  133932. function TJSWebGL2RenderingContext.getContextAttributes: TJSWebGLContextAttributes;
  133933. begin
  133934. Result:=InvokeJSObjectResult('getContextAttributes',[],TJSWebGLContextAttributes) as TJSWebGLContextAttributes;
  133935. end;
  133936. function TJSWebGL2RenderingContext.isContextLost: Boolean;
  133937. begin
  133938. Result:=InvokeJSBooleanResult('isContextLost',[]);
  133939. end;
  133940. function TJSWebGL2RenderingContext.getSupportedExtensions: TUnicodeStringDynArray;
  133941. begin
  133942. Result:=InvokeJSObjectResult('getSupportedExtensions',[],TJSArray) as TUnicodeStringDynArray;
  133943. end;
  133944. function TJSWebGL2RenderingContext.getExtension(const aName: UnicodeString): IJSObject;
  133945. begin
  133946. Result:=InvokeJSObjectResult('getExtension',[aName],TJSObject) as IJSObject;
  133947. end;
  133948. procedure TJSWebGL2RenderingContext.activeTexture(aTexture: TGLenum);
  133949. begin
  133950. InvokeJSNoResult('activeTexture',[aTexture]);
  133951. end;
  133952. procedure TJSWebGL2RenderingContext.attachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader);
  133953. begin
  133954. InvokeJSNoResult('attachShader',[aProgram_,aShader]);
  133955. end;
  133956. procedure TJSWebGL2RenderingContext.bindAttribLocation(aProgram_: IJSWebGLProgram; aIndex: TGLuint; const aName: UnicodeString);
  133957. begin
  133958. InvokeJSNoResult('bindAttribLocation',[aProgram_,aIndex,aName]);
  133959. end;
  133960. procedure TJSWebGL2RenderingContext.bindBuffer(aTarget: TGLenum; aBuffer: IJSWebGLBuffer);
  133961. begin
  133962. InvokeJSNoResult('bindBuffer',[aTarget,aBuffer]);
  133963. end;
  133964. procedure TJSWebGL2RenderingContext.bindFramebuffer(aTarget: TGLenum; aFramebuffer: IJSWebGLFramebuffer);
  133965. begin
  133966. InvokeJSNoResult('bindFramebuffer',[aTarget,aFramebuffer]);
  133967. end;
  133968. procedure TJSWebGL2RenderingContext.bindRenderbuffer(aTarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer);
  133969. begin
  133970. InvokeJSNoResult('bindRenderbuffer',[aTarget,aRenderbuffer]);
  133971. end;
  133972. procedure TJSWebGL2RenderingContext.bindTexture(aTarget: TGLenum; aTexture: IJSWebGLTexture);
  133973. begin
  133974. InvokeJSNoResult('bindTexture',[aTarget,aTexture]);
  133975. end;
  133976. procedure TJSWebGL2RenderingContext.blendColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat);
  133977. begin
  133978. InvokeJSNoResult('blendColor',[aRed,aGreen,aBlue,aAlpha]);
  133979. end;
  133980. procedure TJSWebGL2RenderingContext.blendEquation(aMode: TGLenum);
  133981. begin
  133982. InvokeJSNoResult('blendEquation',[aMode]);
  133983. end;
  133984. procedure TJSWebGL2RenderingContext.blendEquationSeparate(aModeRGB: TGLenum; aModeAlpha: TGLenum);
  133985. begin
  133986. InvokeJSNoResult('blendEquationSeparate',[aModeRGB,aModeAlpha]);
  133987. end;
  133988. procedure TJSWebGL2RenderingContext.blendFunc(aSfactor: TGLenum; aDfactor: TGLenum);
  133989. begin
  133990. InvokeJSNoResult('blendFunc',[aSfactor,aDfactor]);
  133991. end;
  133992. procedure TJSWebGL2RenderingContext.blendFuncSeparate(aSrcRGB: TGLenum; aDstRGB: TGLenum; aSrcAlpha: TGLenum; aDstAlpha: TGLenum);
  133993. begin
  133994. InvokeJSNoResult('blendFuncSeparate',[aSrcRGB,aDstRGB,aSrcAlpha,aDstAlpha]);
  133995. end;
  133996. function TJSWebGL2RenderingContext.checkFramebufferStatus(aTarget: TGLenum): TGLenum;
  133997. begin
  133998. Result:=InvokeJSLongIntResult('checkFramebufferStatus',[aTarget]);
  133999. end;
  134000. procedure TJSWebGL2RenderingContext.clear(aMask: TGLbitfield);
  134001. begin
  134002. InvokeJSNoResult('clear',[aMask]);
  134003. end;
  134004. procedure TJSWebGL2RenderingContext.clearColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat);
  134005. begin
  134006. InvokeJSNoResult('clearColor',[aRed,aGreen,aBlue,aAlpha]);
  134007. end;
  134008. procedure TJSWebGL2RenderingContext.clearDepth(aDepth: TGLclampf);
  134009. begin
  134010. InvokeJSNoResult('clearDepth',[aDepth]);
  134011. end;
  134012. procedure TJSWebGL2RenderingContext.clearStencil(aS_: TGLint);
  134013. begin
  134014. InvokeJSNoResult('clearStencil',[aS_]);
  134015. end;
  134016. procedure TJSWebGL2RenderingContext.colorMask(aRed: TGLboolean; aGreen: TGLboolean; aBlue: TGLboolean; aAlpha: TGLboolean);
  134017. begin
  134018. InvokeJSNoResult('colorMask',[aRed,aGreen,aBlue,aAlpha]);
  134019. end;
  134020. procedure TJSWebGL2RenderingContext.compileShader(aShader: IJSWebGLShader);
  134021. begin
  134022. InvokeJSNoResult('compileShader',[aShader]);
  134023. end;
  134024. procedure TJSWebGL2RenderingContext.copyTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint);
  134025. begin
  134026. InvokeJSNoResult('copyTexImage2D',[aTarget,aLevel,aInternalformat,aX,aY,aWidth,aHeight,aBorder]);
  134027. end;
  134028. procedure TJSWebGL2RenderingContext.copyTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  134029. begin
  134030. InvokeJSNoResult('copyTexSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aX,aY,aWidth,aHeight]);
  134031. end;
  134032. function TJSWebGL2RenderingContext.createBuffer: IJSWebGLBuffer;
  134033. begin
  134034. Result:=InvokeJSObjectResult('createBuffer',[],TJSWebGLBuffer) as IJSWebGLBuffer;
  134035. end;
  134036. function TJSWebGL2RenderingContext.createFramebuffer: IJSWebGLFramebuffer;
  134037. begin
  134038. Result:=InvokeJSObjectResult('createFramebuffer',[],TJSWebGLFramebuffer) as IJSWebGLFramebuffer;
  134039. end;
  134040. function TJSWebGL2RenderingContext.createProgram: IJSWebGLProgram;
  134041. begin
  134042. Result:=InvokeJSObjectResult('createProgram',[],TJSWebGLProgram) as IJSWebGLProgram;
  134043. end;
  134044. function TJSWebGL2RenderingContext.createRenderbuffer: IJSWebGLRenderbuffer;
  134045. begin
  134046. Result:=InvokeJSObjectResult('createRenderbuffer',[],TJSWebGLRenderbuffer) as IJSWebGLRenderbuffer;
  134047. end;
  134048. function TJSWebGL2RenderingContext.createShader(aType_: TGLenum): IJSWebGLShader;
  134049. begin
  134050. Result:=InvokeJSObjectResult('createShader',[aType_],TJSWebGLShader) as IJSWebGLShader;
  134051. end;
  134052. function TJSWebGL2RenderingContext.createTexture: IJSWebGLTexture;
  134053. begin
  134054. Result:=InvokeJSObjectResult('createTexture',[],TJSWebGLTexture) as IJSWebGLTexture;
  134055. end;
  134056. procedure TJSWebGL2RenderingContext.cullFace(aMode: TGLenum);
  134057. begin
  134058. InvokeJSNoResult('cullFace',[aMode]);
  134059. end;
  134060. procedure TJSWebGL2RenderingContext.deleteBuffer(aBuffer: IJSWebGLBuffer);
  134061. begin
  134062. InvokeJSNoResult('deleteBuffer',[aBuffer]);
  134063. end;
  134064. procedure TJSWebGL2RenderingContext.deleteFramebuffer(aFramebuffer: IJSWebGLFramebuffer);
  134065. begin
  134066. InvokeJSNoResult('deleteFramebuffer',[aFramebuffer]);
  134067. end;
  134068. procedure TJSWebGL2RenderingContext.deleteProgram(aProgram_: IJSWebGLProgram);
  134069. begin
  134070. InvokeJSNoResult('deleteProgram',[aProgram_]);
  134071. end;
  134072. procedure TJSWebGL2RenderingContext.deleteRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer);
  134073. begin
  134074. InvokeJSNoResult('deleteRenderbuffer',[aRenderbuffer]);
  134075. end;
  134076. procedure TJSWebGL2RenderingContext.deleteShader(aShader: IJSWebGLShader);
  134077. begin
  134078. InvokeJSNoResult('deleteShader',[aShader]);
  134079. end;
  134080. procedure TJSWebGL2RenderingContext.deleteTexture(aTexture: IJSWebGLTexture);
  134081. begin
  134082. InvokeJSNoResult('deleteTexture',[aTexture]);
  134083. end;
  134084. procedure TJSWebGL2RenderingContext.depthFunc(aFunc: TGLenum);
  134085. begin
  134086. InvokeJSNoResult('depthFunc',[aFunc]);
  134087. end;
  134088. procedure TJSWebGL2RenderingContext.depthMask(aFlag: TGLboolean);
  134089. begin
  134090. InvokeJSNoResult('depthMask',[aFlag]);
  134091. end;
  134092. procedure TJSWebGL2RenderingContext.depthRange(aZNear: TGLclampf; aZFar: TGLclampf);
  134093. begin
  134094. InvokeJSNoResult('depthRange',[aZNear,aZFar]);
  134095. end;
  134096. procedure TJSWebGL2RenderingContext.detachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader);
  134097. begin
  134098. InvokeJSNoResult('detachShader',[aProgram_,aShader]);
  134099. end;
  134100. procedure TJSWebGL2RenderingContext.disable(aCap: TGLenum);
  134101. begin
  134102. InvokeJSNoResult('disable',[aCap]);
  134103. end;
  134104. procedure TJSWebGL2RenderingContext.disableVertexAttribArray(aIndex: TGLuint);
  134105. begin
  134106. InvokeJSNoResult('disableVertexAttribArray',[aIndex]);
  134107. end;
  134108. procedure TJSWebGL2RenderingContext.drawArrays(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei);
  134109. begin
  134110. InvokeJSNoResult('drawArrays',[aMode,aFirst,aCount]);
  134111. end;
  134112. procedure TJSWebGL2RenderingContext.drawElements(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr);
  134113. begin
  134114. InvokeJSNoResult('drawElements',[aMode,aCount,aType_,aOffset]);
  134115. end;
  134116. procedure TJSWebGL2RenderingContext.enable(aCap: TGLenum);
  134117. begin
  134118. InvokeJSNoResult('enable',[aCap]);
  134119. end;
  134120. procedure TJSWebGL2RenderingContext.enableVertexAttribArray(aIndex: TGLuint);
  134121. begin
  134122. InvokeJSNoResult('enableVertexAttribArray',[aIndex]);
  134123. end;
  134124. procedure TJSWebGL2RenderingContext.finish;
  134125. begin
  134126. InvokeJSNoResult('finish',[]);
  134127. end;
  134128. procedure TJSWebGL2RenderingContext.flush;
  134129. begin
  134130. InvokeJSNoResult('flush',[]);
  134131. end;
  134132. procedure TJSWebGL2RenderingContext.framebufferRenderbuffer(aTarget: TGLenum; aAttachment: TGLenum; aRenderbuffertarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer);
  134133. begin
  134134. InvokeJSNoResult('framebufferRenderbuffer',[aTarget,aAttachment,aRenderbuffertarget,aRenderbuffer]);
  134135. end;
  134136. procedure TJSWebGL2RenderingContext.framebufferTexture2D(aTarget: TGLenum; aAttachment: TGLenum; aTextarget: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint);
  134137. begin
  134138. InvokeJSNoResult('framebufferTexture2D',[aTarget,aAttachment,aTextarget,aTexture,aLevel]);
  134139. end;
  134140. procedure TJSWebGL2RenderingContext.frontFace(aMode: TGLenum);
  134141. begin
  134142. InvokeJSNoResult('frontFace',[aMode]);
  134143. end;
  134144. procedure TJSWebGL2RenderingContext.generateMipmap(aTarget: TGLenum);
  134145. begin
  134146. InvokeJSNoResult('generateMipmap',[aTarget]);
  134147. end;
  134148. function TJSWebGL2RenderingContext.getActiveAttrib(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  134149. begin
  134150. Result:=InvokeJSObjectResult('getActiveAttrib',[aProgram_,aIndex],TJSWebGLActiveInfo) as IJSWebGLActiveInfo;
  134151. end;
  134152. function TJSWebGL2RenderingContext.getActiveUniform(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  134153. begin
  134154. Result:=InvokeJSObjectResult('getActiveUniform',[aProgram_,aIndex],TJSWebGLActiveInfo) as IJSWebGLActiveInfo;
  134155. end;
  134156. function TJSWebGL2RenderingContext.getAttachedShaders(aProgram_: IJSWebGLProgram): TJSWebGLShaderDynArray;
  134157. begin
  134158. Result:=InvokeJSObjectResult('getAttachedShaders',[aProgram_],TJSArray) as TJSWebGLShaderDynArray;
  134159. end;
  134160. function TJSWebGL2RenderingContext.getAttribLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint;
  134161. begin
  134162. Result:=InvokeJSLongIntResult('getAttribLocation',[aProgram_,aName]);
  134163. end;
  134164. function TJSWebGL2RenderingContext.getBufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  134165. begin
  134166. Result:=InvokeJSVariantResult('getBufferParameter',[aTarget,aPname]);
  134167. end;
  134168. function TJSWebGL2RenderingContext.getParameter(aPname: TGLenum): Variant;
  134169. begin
  134170. Result:=InvokeJSVariantResult('getParameter',[aPname]);
  134171. end;
  134172. function TJSWebGL2RenderingContext.getError: TGLenum;
  134173. begin
  134174. Result:=InvokeJSLongIntResult('getError',[]);
  134175. end;
  134176. function TJSWebGL2RenderingContext.getFramebufferAttachmentParameter(aTarget: TGLenum; aAttachment: TGLenum; aPname: TGLenum): Variant;
  134177. begin
  134178. Result:=InvokeJSVariantResult('getFramebufferAttachmentParameter',[aTarget,aAttachment,aPname]);
  134179. end;
  134180. function TJSWebGL2RenderingContext.getProgramParameter(aProgram_: IJSWebGLProgram; aPname: TGLenum): Variant;
  134181. begin
  134182. Result:=InvokeJSVariantResult('getProgramParameter',[aProgram_,aPname]);
  134183. end;
  134184. function TJSWebGL2RenderingContext.getProgramInfoLog(aProgram_: IJSWebGLProgram): UnicodeString;
  134185. begin
  134186. Result:=InvokeJSUnicodeStringResult('getProgramInfoLog',[aProgram_]);
  134187. end;
  134188. function TJSWebGL2RenderingContext.getRenderbufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  134189. begin
  134190. Result:=InvokeJSVariantResult('getRenderbufferParameter',[aTarget,aPname]);
  134191. end;
  134192. function TJSWebGL2RenderingContext.getShaderParameter(aShader: IJSWebGLShader; aPname: TGLenum): Variant;
  134193. begin
  134194. Result:=InvokeJSVariantResult('getShaderParameter',[aShader,aPname]);
  134195. end;
  134196. function TJSWebGL2RenderingContext.getShaderPrecisionFormat(aShadertype: TGLenum; aPrecisiontype: TGLenum): IJSWebGLShaderPrecisionFormat;
  134197. begin
  134198. Result:=InvokeJSObjectResult('getShaderPrecisionFormat',[aShadertype,aPrecisiontype],TJSWebGLShaderPrecisionFormat) as IJSWebGLShaderPrecisionFormat;
  134199. end;
  134200. function TJSWebGL2RenderingContext.getShaderInfoLog(aShader: IJSWebGLShader): UnicodeString;
  134201. begin
  134202. Result:=InvokeJSUnicodeStringResult('getShaderInfoLog',[aShader]);
  134203. end;
  134204. function TJSWebGL2RenderingContext.getShaderSource(aShader: IJSWebGLShader): UnicodeString;
  134205. begin
  134206. Result:=InvokeJSUnicodeStringResult('getShaderSource',[aShader]);
  134207. end;
  134208. function TJSWebGL2RenderingContext.getTexParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  134209. begin
  134210. Result:=InvokeJSVariantResult('getTexParameter',[aTarget,aPname]);
  134211. end;
  134212. function TJSWebGL2RenderingContext.getUniform(aProgram_: IJSWebGLProgram; aLocation: IJSWebGLUniformLocation): Variant;
  134213. begin
  134214. Result:=InvokeJSVariantResult('getUniform',[aProgram_,aLocation]);
  134215. end;
  134216. function TJSWebGL2RenderingContext.getUniformLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): IJSWebGLUniformLocation;
  134217. begin
  134218. Result:=InvokeJSObjectResult('getUniformLocation',[aProgram_,aName],TJSWebGLUniformLocation) as IJSWebGLUniformLocation;
  134219. end;
  134220. function TJSWebGL2RenderingContext.getVertexAttrib(aIndex: TGLuint; aPname: TGLenum): Variant;
  134221. begin
  134222. Result:=InvokeJSVariantResult('getVertexAttrib',[aIndex,aPname]);
  134223. end;
  134224. function TJSWebGL2RenderingContext.getVertexAttribOffset(aIndex: TGLuint; aPname: TGLenum): TGLintptr;
  134225. begin
  134226. Result:=InvokeJSMaxIntResult('getVertexAttribOffset',[aIndex,aPname]);
  134227. end;
  134228. procedure TJSWebGL2RenderingContext.hint(aTarget: TGLenum; aMode: TGLenum);
  134229. begin
  134230. InvokeJSNoResult('hint',[aTarget,aMode]);
  134231. end;
  134232. function TJSWebGL2RenderingContext.isBuffer(aBuffer: IJSWebGLBuffer): TGLboolean;
  134233. begin
  134234. Result:=InvokeJSBooleanResult('isBuffer',[aBuffer]);
  134235. end;
  134236. function TJSWebGL2RenderingContext.isEnabled(aCap: TGLenum): TGLboolean;
  134237. begin
  134238. Result:=InvokeJSBooleanResult('isEnabled',[aCap]);
  134239. end;
  134240. function TJSWebGL2RenderingContext.isFramebuffer(aFramebuffer: IJSWebGLFramebuffer): TGLboolean;
  134241. begin
  134242. Result:=InvokeJSBooleanResult('isFramebuffer',[aFramebuffer]);
  134243. end;
  134244. function TJSWebGL2RenderingContext.isProgram(aProgram_: IJSWebGLProgram): TGLboolean;
  134245. begin
  134246. Result:=InvokeJSBooleanResult('isProgram',[aProgram_]);
  134247. end;
  134248. function TJSWebGL2RenderingContext.isRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer): TGLboolean;
  134249. begin
  134250. Result:=InvokeJSBooleanResult('isRenderbuffer',[aRenderbuffer]);
  134251. end;
  134252. function TJSWebGL2RenderingContext.isShader(aShader: IJSWebGLShader): TGLboolean;
  134253. begin
  134254. Result:=InvokeJSBooleanResult('isShader',[aShader]);
  134255. end;
  134256. function TJSWebGL2RenderingContext.isTexture(aTexture: IJSWebGLTexture): TGLboolean;
  134257. begin
  134258. Result:=InvokeJSBooleanResult('isTexture',[aTexture]);
  134259. end;
  134260. procedure TJSWebGL2RenderingContext.lineWidth(aWidth: TGLfloat);
  134261. begin
  134262. InvokeJSNoResult('lineWidth',[aWidth]);
  134263. end;
  134264. procedure TJSWebGL2RenderingContext.linkProgram(aProgram_: IJSWebGLProgram);
  134265. begin
  134266. InvokeJSNoResult('linkProgram',[aProgram_]);
  134267. end;
  134268. procedure TJSWebGL2RenderingContext.pixelStorei(aPname: TGLenum; aParam: TGLint);
  134269. begin
  134270. InvokeJSNoResult('pixelStorei',[aPname,aParam]);
  134271. end;
  134272. procedure TJSWebGL2RenderingContext.polygonOffset(aFactor: TGLfloat; aUnits: TGLfloat);
  134273. begin
  134274. InvokeJSNoResult('polygonOffset',[aFactor,aUnits]);
  134275. end;
  134276. procedure TJSWebGL2RenderingContext.renderbufferStorage(aTarget: TGLenum; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  134277. begin
  134278. InvokeJSNoResult('renderbufferStorage',[aTarget,aInternalformat,aWidth,aHeight]);
  134279. end;
  134280. procedure TJSWebGL2RenderingContext.sampleCoverage(aValue: TGLclampf; aInvert: TGLboolean);
  134281. begin
  134282. InvokeJSNoResult('sampleCoverage',[aValue,aInvert]);
  134283. end;
  134284. procedure TJSWebGL2RenderingContext.scissor(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  134285. begin
  134286. InvokeJSNoResult('scissor',[aX,aY,aWidth,aHeight]);
  134287. end;
  134288. procedure TJSWebGL2RenderingContext.shaderSource(aShader: IJSWebGLShader; const aSource: UnicodeString);
  134289. begin
  134290. InvokeJSNoResult('shaderSource',[aShader,aSource]);
  134291. end;
  134292. procedure TJSWebGL2RenderingContext.stencilFunc(aFunc: TGLenum; aRef: TGLint; aMask: TGLuint);
  134293. begin
  134294. InvokeJSNoResult('stencilFunc',[aFunc,aRef,aMask]);
  134295. end;
  134296. procedure TJSWebGL2RenderingContext.stencilFuncSeparate(aFace: TGLenum; aFunc: TGLenum; aRef: TGLint; aMask: TGLuint);
  134297. begin
  134298. InvokeJSNoResult('stencilFuncSeparate',[aFace,aFunc,aRef,aMask]);
  134299. end;
  134300. procedure TJSWebGL2RenderingContext.stencilMask(aMask: TGLuint);
  134301. begin
  134302. InvokeJSNoResult('stencilMask',[aMask]);
  134303. end;
  134304. procedure TJSWebGL2RenderingContext.stencilMaskSeparate(aFace: TGLenum; aMask: TGLuint);
  134305. begin
  134306. InvokeJSNoResult('stencilMaskSeparate',[aFace,aMask]);
  134307. end;
  134308. procedure TJSWebGL2RenderingContext.stencilOp(aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum);
  134309. begin
  134310. InvokeJSNoResult('stencilOp',[aFail,aZfail,aZpass]);
  134311. end;
  134312. procedure TJSWebGL2RenderingContext.stencilOpSeparate(aFace: TGLenum; aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum);
  134313. begin
  134314. InvokeJSNoResult('stencilOpSeparate',[aFace,aFail,aZfail,aZpass]);
  134315. end;
  134316. procedure TJSWebGL2RenderingContext.texParameterf(aTarget: TGLenum; aPname: TGLenum; aParam: TGLfloat);
  134317. begin
  134318. InvokeJSNoResult('texParameterf',[aTarget,aPname,aParam]);
  134319. end;
  134320. procedure TJSWebGL2RenderingContext.texParameteri(aTarget: TGLenum; aPname: TGLenum; aParam: TGLint);
  134321. begin
  134322. InvokeJSNoResult('texParameteri',[aTarget,aPname,aParam]);
  134323. end;
  134324. procedure TJSWebGL2RenderingContext.uniform1f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat);
  134325. begin
  134326. InvokeJSNoResult('uniform1f',[aLocation,aX]);
  134327. end;
  134328. procedure TJSWebGL2RenderingContext.uniform2f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat);
  134329. begin
  134330. InvokeJSNoResult('uniform2f',[aLocation,aX,aY]);
  134331. end;
  134332. procedure TJSWebGL2RenderingContext.uniform3f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat);
  134333. begin
  134334. InvokeJSNoResult('uniform3f',[aLocation,aX,aY,aZ]);
  134335. end;
  134336. procedure TJSWebGL2RenderingContext.uniform4f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat);
  134337. begin
  134338. InvokeJSNoResult('uniform4f',[aLocation,aX,aY,aZ,aW]);
  134339. end;
  134340. procedure TJSWebGL2RenderingContext.uniform1i(aLocation: IJSWebGLUniformLocation; aX: TGLint);
  134341. begin
  134342. InvokeJSNoResult('uniform1i',[aLocation,aX]);
  134343. end;
  134344. procedure TJSWebGL2RenderingContext.uniform2i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint);
  134345. begin
  134346. InvokeJSNoResult('uniform2i',[aLocation,aX,aY]);
  134347. end;
  134348. procedure TJSWebGL2RenderingContext.uniform3i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint);
  134349. begin
  134350. InvokeJSNoResult('uniform3i',[aLocation,aX,aY,aZ]);
  134351. end;
  134352. procedure TJSWebGL2RenderingContext.uniform4i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint);
  134353. begin
  134354. InvokeJSNoResult('uniform4i',[aLocation,aX,aY,aZ,aW]);
  134355. end;
  134356. procedure TJSWebGL2RenderingContext.useProgram(aProgram_: IJSWebGLProgram);
  134357. begin
  134358. InvokeJSNoResult('useProgram',[aProgram_]);
  134359. end;
  134360. procedure TJSWebGL2RenderingContext.validateProgram(aProgram_: IJSWebGLProgram);
  134361. begin
  134362. InvokeJSNoResult('validateProgram',[aProgram_]);
  134363. end;
  134364. procedure TJSWebGL2RenderingContext.vertexAttrib1f(aIndx: TGLuint; aX: TGLfloat);
  134365. begin
  134366. InvokeJSNoResult('vertexAttrib1f',[aIndx,aX]);
  134367. end;
  134368. procedure TJSWebGL2RenderingContext.vertexAttrib1fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  134369. begin
  134370. InvokeJSNoResult('vertexAttrib1fv',[aIndx,aValues]);
  134371. end;
  134372. procedure TJSWebGL2RenderingContext.vertexAttrib1fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  134373. begin
  134374. InvokeJSNoResult('vertexAttrib1fv',[aIndx,aValues]);
  134375. end;
  134376. procedure TJSWebGL2RenderingContext.vertexAttrib2f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat);
  134377. begin
  134378. InvokeJSNoResult('vertexAttrib2f',[aIndx,aX,aY]);
  134379. end;
  134380. procedure TJSWebGL2RenderingContext.vertexAttrib2fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  134381. begin
  134382. InvokeJSNoResult('vertexAttrib2fv',[aIndx,aValues]);
  134383. end;
  134384. procedure TJSWebGL2RenderingContext.vertexAttrib2fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  134385. begin
  134386. InvokeJSNoResult('vertexAttrib2fv',[aIndx,aValues]);
  134387. end;
  134388. procedure TJSWebGL2RenderingContext.vertexAttrib3f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat);
  134389. begin
  134390. InvokeJSNoResult('vertexAttrib3f',[aIndx,aX,aY,aZ]);
  134391. end;
  134392. procedure TJSWebGL2RenderingContext.vertexAttrib3fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  134393. begin
  134394. InvokeJSNoResult('vertexAttrib3fv',[aIndx,aValues]);
  134395. end;
  134396. procedure TJSWebGL2RenderingContext.vertexAttrib3fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  134397. begin
  134398. InvokeJSNoResult('vertexAttrib3fv',[aIndx,aValues]);
  134399. end;
  134400. procedure TJSWebGL2RenderingContext.vertexAttrib4f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat);
  134401. begin
  134402. InvokeJSNoResult('vertexAttrib4f',[aIndx,aX,aY,aZ,aW]);
  134403. end;
  134404. procedure TJSWebGL2RenderingContext.vertexAttrib4fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  134405. begin
  134406. InvokeJSNoResult('vertexAttrib4fv',[aIndx,aValues]);
  134407. end;
  134408. procedure TJSWebGL2RenderingContext.vertexAttrib4fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  134409. begin
  134410. InvokeJSNoResult('vertexAttrib4fv',[aIndx,aValues]);
  134411. end;
  134412. procedure TJSWebGL2RenderingContext.vertexAttribPointer(aIndx: TGLuint; aSize: TGLint; aType_: TGLenum; aNormalized: TGLboolean; aStride: TGLsizei; aOffset: TGLintptr);
  134413. begin
  134414. InvokeJSNoResult('vertexAttribPointer',[aIndx,aSize,aType_,aNormalized,aStride,aOffset]);
  134415. end;
  134416. procedure TJSWebGL2RenderingContext.viewport(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  134417. begin
  134418. InvokeJSNoResult('viewport',[aX,aY,aWidth,aHeight]);
  134419. end;
  134420. function TJSWebGL2RenderingContext.makeXRCompatible: IJSPromise; // Promise<undefined>
  134421. begin
  134422. Result:=InvokeJSObjectResult('makeXRCompatible',[],TJSPromise) as IJSPromise;
  134423. end;
  134424. procedure TJSWebGL2RenderingContext.bufferData(aTarget: TGLenum; aSize: TGLsizeiptr; aUsage: TGLenum);
  134425. begin
  134426. InvokeJSNoResult('bufferData',[aTarget,aSize,aUsage]);
  134427. end;
  134428. procedure TJSWebGL2RenderingContext.bufferData(aTarget: TGLenum; aSrcData: IJSArrayBuffer; aUsage: TGLenum);
  134429. begin
  134430. InvokeJSNoResult('bufferData',[aTarget,aSrcData,aUsage]);
  134431. end;
  134432. procedure TJSWebGL2RenderingContext.bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum);
  134433. begin
  134434. InvokeJSNoResult('bufferData',[aTarget,aSrcData,aUsage]);
  134435. end;
  134436. procedure TJSWebGL2RenderingContext.bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBuffer);
  134437. begin
  134438. InvokeJSNoResult('bufferSubData',[aTarget,aOffset,aSrcData]);
  134439. end;
  134440. procedure TJSWebGL2RenderingContext.bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBufferView);
  134441. begin
  134442. InvokeJSNoResult('bufferSubData',[aTarget,aOffset,aSrcData]);
  134443. end;
  134444. procedure TJSWebGL2RenderingContext.bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint; aLength_: TGLuint);
  134445. begin
  134446. InvokeJSNoResult('bufferData',[aTarget,aSrcData,aUsage,aSrcOffset,aLength_]);
  134447. end;
  134448. procedure TJSWebGL2RenderingContext.bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint);
  134449. begin
  134450. InvokeJSNoResult('bufferData',[aTarget,aSrcData,aUsage,aSrcOffset]);
  134451. end;
  134452. procedure TJSWebGL2RenderingContext.bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aLength_: TGLuint);
  134453. begin
  134454. InvokeJSNoResult('bufferSubData',[aTarget,aDstByteOffset,aSrcData,aSrcOffset,aLength_]);
  134455. end;
  134456. procedure TJSWebGL2RenderingContext.bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  134457. begin
  134458. InvokeJSNoResult('bufferSubData',[aTarget,aDstByteOffset,aSrcData,aSrcOffset]);
  134459. end;
  134460. procedure TJSWebGL2RenderingContext.copyBufferSubData(aReadTarget: TGLenum; aWriteTarget: TGLenum; aReadOffset: TGLintptr; aWriteOffset: TGLintptr; aSize: TGLsizeiptr);
  134461. begin
  134462. InvokeJSNoResult('copyBufferSubData',[aReadTarget,aWriteTarget,aReadOffset,aWriteOffset,aSize]);
  134463. end;
  134464. procedure TJSWebGL2RenderingContext.getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint; aLength_: TGLuint);
  134465. begin
  134466. InvokeJSNoResult('getBufferSubData',[aTarget,aSrcByteOffset,aDstData,aDstOffset,aLength_]);
  134467. end;
  134468. procedure TJSWebGL2RenderingContext.getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView);
  134469. begin
  134470. InvokeJSNoResult('getBufferSubData',[aTarget,aSrcByteOffset,aDstData]);
  134471. end;
  134472. procedure TJSWebGL2RenderingContext.getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint);
  134473. begin
  134474. InvokeJSNoResult('getBufferSubData',[aTarget,aSrcByteOffset,aDstData,aDstOffset]);
  134475. end;
  134476. procedure TJSWebGL2RenderingContext.blitFramebuffer(aSrcX0: TGLint; aSrcY0: TGLint; aSrcX1: TGLint; aSrcY1: TGLint; aDstX0: TGLint; aDstY0: TGLint; aDstX1: TGLint; aDstY1: TGLint; aMask: TGLbitfield; aFilter: TGLenum);
  134477. begin
  134478. InvokeJSNoResult('blitFramebuffer',[aSrcX0,aSrcY0,aSrcX1,aSrcY1,aDstX0,aDstY0,aDstX1,aDstY1,aMask,aFilter]);
  134479. end;
  134480. procedure TJSWebGL2RenderingContext.framebufferTextureLayer(aTarget: TGLenum; aAttachment: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint; aLayer: TGLint);
  134481. begin
  134482. InvokeJSNoResult('framebufferTextureLayer',[aTarget,aAttachment,aTexture,aLevel,aLayer]);
  134483. end;
  134484. procedure TJSWebGL2RenderingContext.invalidateFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray);
  134485. begin
  134486. InvokeJSNoResult('invalidateFramebuffer',[aTarget,aAttachments]);
  134487. end;
  134488. procedure TJSWebGL2RenderingContext.invalidateSubFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  134489. begin
  134490. InvokeJSNoResult('invalidateSubFramebuffer',[aTarget,aAttachments,aX,aY,aWidth,aHeight]);
  134491. end;
  134492. procedure TJSWebGL2RenderingContext.readBuffer(aSrc: TGLenum);
  134493. begin
  134494. InvokeJSNoResult('readBuffer',[aSrc]);
  134495. end;
  134496. function TJSWebGL2RenderingContext.getInternalformatParameter(aTarget: TGLenum; aInternalformat: TGLenum; aPname: TGLenum): Variant;
  134497. begin
  134498. Result:=InvokeJSVariantResult('getInternalformatParameter',[aTarget,aInternalformat,aPname]);
  134499. end;
  134500. procedure TJSWebGL2RenderingContext.renderbufferStorageMultisample(aTarget: TGLenum; aSamples: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  134501. begin
  134502. InvokeJSNoResult('renderbufferStorageMultisample',[aTarget,aSamples,aInternalformat,aWidth,aHeight]);
  134503. end;
  134504. procedure TJSWebGL2RenderingContext.texStorage2D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  134505. begin
  134506. InvokeJSNoResult('texStorage2D',[aTarget,aLevels,aInternalformat,aWidth,aHeight]);
  134507. end;
  134508. procedure TJSWebGL2RenderingContext.texStorage3D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei);
  134509. begin
  134510. InvokeJSNoResult('texStorage3D',[aTarget,aLevels,aInternalformat,aWidth,aHeight,aDepth]);
  134511. end;
  134512. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  134513. begin
  134514. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aPixels]);
  134515. end;
  134516. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  134517. begin
  134518. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  134519. end;
  134520. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  134521. begin
  134522. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  134523. end;
  134524. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  134525. begin
  134526. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  134527. end;
  134528. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  134529. begin
  134530. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  134531. end;
  134532. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  134533. begin
  134534. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  134535. end;
  134536. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  134537. begin
  134538. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  134539. end;
  134540. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  134541. begin
  134542. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  134543. end;
  134544. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  134545. begin
  134546. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aPixels]);
  134547. end;
  134548. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  134549. begin
  134550. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  134551. end;
  134552. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  134553. begin
  134554. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  134555. end;
  134556. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  134557. begin
  134558. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  134559. end;
  134560. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  134561. begin
  134562. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  134563. end;
  134564. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  134565. begin
  134566. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  134567. end;
  134568. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  134569. begin
  134570. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  134571. end;
  134572. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  134573. begin
  134574. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  134575. end;
  134576. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  134577. begin
  134578. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aPboOffset]);
  134579. end;
  134580. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  134581. begin
  134582. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  134583. end;
  134584. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  134585. begin
  134586. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  134587. end;
  134588. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  134589. begin
  134590. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  134591. end;
  134592. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  134593. begin
  134594. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  134595. end;
  134596. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  134597. begin
  134598. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  134599. end;
  134600. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  134601. begin
  134602. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  134603. end;
  134604. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  134605. begin
  134606. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  134607. end;
  134608. procedure TJSWebGL2RenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  134609. begin
  134610. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSrcData,aSrcOffset]);
  134611. end;
  134612. procedure TJSWebGL2RenderingContext.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  134613. begin
  134614. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aPboOffset]);
  134615. end;
  134616. procedure TJSWebGL2RenderingContext.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  134617. begin
  134618. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  134619. end;
  134620. procedure TJSWebGL2RenderingContext.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  134621. begin
  134622. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  134623. end;
  134624. procedure TJSWebGL2RenderingContext.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  134625. begin
  134626. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  134627. end;
  134628. procedure TJSWebGL2RenderingContext.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  134629. begin
  134630. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  134631. end;
  134632. procedure TJSWebGL2RenderingContext.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  134633. begin
  134634. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  134635. end;
  134636. procedure TJSWebGL2RenderingContext.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  134637. begin
  134638. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  134639. end;
  134640. procedure TJSWebGL2RenderingContext.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  134641. begin
  134642. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  134643. end;
  134644. procedure TJSWebGL2RenderingContext.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView);
  134645. begin
  134646. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSrcData]);
  134647. end;
  134648. procedure TJSWebGL2RenderingContext.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  134649. begin
  134650. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSrcData,aSrcOffset]);
  134651. end;
  134652. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  134653. begin
  134654. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aPboOffset]);
  134655. end;
  134656. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  134657. begin
  134658. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  134659. end;
  134660. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  134661. begin
  134662. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  134663. end;
  134664. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  134665. begin
  134666. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  134667. end;
  134668. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  134669. begin
  134670. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  134671. end;
  134672. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  134673. begin
  134674. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  134675. end;
  134676. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  134677. begin
  134678. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  134679. end;
  134680. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  134681. begin
  134682. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  134683. end;
  134684. procedure TJSWebGL2RenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  134685. begin
  134686. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSrcData,aSrcOffset]);
  134687. end;
  134688. procedure TJSWebGL2RenderingContext.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  134689. begin
  134690. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aPboOffset]);
  134691. end;
  134692. procedure TJSWebGL2RenderingContext.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  134693. begin
  134694. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  134695. end;
  134696. procedure TJSWebGL2RenderingContext.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  134697. begin
  134698. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  134699. end;
  134700. procedure TJSWebGL2RenderingContext.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  134701. begin
  134702. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  134703. end;
  134704. procedure TJSWebGL2RenderingContext.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  134705. begin
  134706. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  134707. end;
  134708. procedure TJSWebGL2RenderingContext.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  134709. begin
  134710. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  134711. end;
  134712. procedure TJSWebGL2RenderingContext.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  134713. begin
  134714. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  134715. end;
  134716. procedure TJSWebGL2RenderingContext.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  134717. begin
  134718. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  134719. end;
  134720. procedure TJSWebGL2RenderingContext.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  134721. begin
  134722. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSrcData,aSrcOffset]);
  134723. end;
  134724. procedure TJSWebGL2RenderingContext.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView);
  134725. begin
  134726. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSrcData]);
  134727. end;
  134728. procedure TJSWebGL2RenderingContext.copyTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  134729. begin
  134730. InvokeJSNoResult('copyTexSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aX,aY,aWidth,aHeight]);
  134731. end;
  134732. procedure TJSWebGL2RenderingContext.compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr);
  134733. begin
  134734. InvokeJSNoResult('compressedTexImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aImageSize,aOffset]);
  134735. end;
  134736. procedure TJSWebGL2RenderingContext.compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  134737. begin
  134738. InvokeJSNoResult('compressedTexImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aSrcData,aSrcOffset,aSrcLengthOverride]);
  134739. end;
  134740. procedure TJSWebGL2RenderingContext.compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView);
  134741. begin
  134742. InvokeJSNoResult('compressedTexImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aSrcData]);
  134743. end;
  134744. procedure TJSWebGL2RenderingContext.compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  134745. begin
  134746. InvokeJSNoResult('compressedTexImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aSrcData,aSrcOffset]);
  134747. end;
  134748. procedure TJSWebGL2RenderingContext.compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr);
  134749. begin
  134750. InvokeJSNoResult('compressedTexImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aImageSize,aOffset]);
  134751. end;
  134752. procedure TJSWebGL2RenderingContext.compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  134753. begin
  134754. InvokeJSNoResult('compressedTexImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aSrcData,aSrcOffset,aSrcLengthOverride]);
  134755. end;
  134756. procedure TJSWebGL2RenderingContext.compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView);
  134757. begin
  134758. InvokeJSNoResult('compressedTexImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aSrcData]);
  134759. end;
  134760. procedure TJSWebGL2RenderingContext.compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  134761. begin
  134762. InvokeJSNoResult('compressedTexImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aSrcData,aSrcOffset]);
  134763. end;
  134764. procedure TJSWebGL2RenderingContext.compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr);
  134765. begin
  134766. InvokeJSNoResult('compressedTexSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aImageSize,aOffset]);
  134767. end;
  134768. procedure TJSWebGL2RenderingContext.compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  134769. begin
  134770. InvokeJSNoResult('compressedTexSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aSrcData,aSrcOffset,aSrcLengthOverride]);
  134771. end;
  134772. procedure TJSWebGL2RenderingContext.compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView);
  134773. begin
  134774. InvokeJSNoResult('compressedTexSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aSrcData]);
  134775. end;
  134776. procedure TJSWebGL2RenderingContext.compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  134777. begin
  134778. InvokeJSNoResult('compressedTexSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aSrcData,aSrcOffset]);
  134779. end;
  134780. procedure TJSWebGL2RenderingContext.compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr);
  134781. begin
  134782. InvokeJSNoResult('compressedTexSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aImageSize,aOffset]);
  134783. end;
  134784. procedure TJSWebGL2RenderingContext.compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  134785. begin
  134786. InvokeJSNoResult('compressedTexSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aSrcData,aSrcOffset,aSrcLengthOverride]);
  134787. end;
  134788. procedure TJSWebGL2RenderingContext.compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView);
  134789. begin
  134790. InvokeJSNoResult('compressedTexSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aSrcData]);
  134791. end;
  134792. procedure TJSWebGL2RenderingContext.compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  134793. begin
  134794. InvokeJSNoResult('compressedTexSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aSrcData,aSrcOffset]);
  134795. end;
  134796. function TJSWebGL2RenderingContext.getFragDataLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint;
  134797. begin
  134798. Result:=InvokeJSLongIntResult('getFragDataLocation',[aProgram_,aName]);
  134799. end;
  134800. procedure TJSWebGL2RenderingContext.uniform1ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint);
  134801. begin
  134802. InvokeJSNoResult('uniform1ui',[aLocation,aV0]);
  134803. end;
  134804. procedure TJSWebGL2RenderingContext.uniform2ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint);
  134805. begin
  134806. InvokeJSNoResult('uniform2ui',[aLocation,aV0,aV1]);
  134807. end;
  134808. procedure TJSWebGL2RenderingContext.uniform3ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint);
  134809. begin
  134810. InvokeJSNoResult('uniform3ui',[aLocation,aV0,aV1,aV2]);
  134811. end;
  134812. procedure TJSWebGL2RenderingContext.uniform4ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint; aV3: TGLuint);
  134813. begin
  134814. InvokeJSNoResult('uniform4ui',[aLocation,aV0,aV1,aV2,aV3]);
  134815. end;
  134816. procedure TJSWebGL2RenderingContext.uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134817. begin
  134818. InvokeJSNoResult('uniform1fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134819. end;
  134820. procedure TJSWebGL2RenderingContext.uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134821. begin
  134822. InvokeJSNoResult('uniform1fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134823. end;
  134824. procedure TJSWebGL2RenderingContext.uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  134825. begin
  134826. InvokeJSNoResult('uniform1fv',[aLocation,aData]);
  134827. end;
  134828. procedure TJSWebGL2RenderingContext.uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  134829. begin
  134830. InvokeJSNoResult('uniform1fv',[aLocation,aData]);
  134831. end;
  134832. procedure TJSWebGL2RenderingContext.uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  134833. begin
  134834. InvokeJSNoResult('uniform1fv',[aLocation,aData,aSrcOffset]);
  134835. end;
  134836. procedure TJSWebGL2RenderingContext.uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  134837. begin
  134838. InvokeJSNoResult('uniform1fv',[aLocation,aData,aSrcOffset]);
  134839. end;
  134840. procedure TJSWebGL2RenderingContext.uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134841. begin
  134842. InvokeJSNoResult('uniform2fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134843. end;
  134844. procedure TJSWebGL2RenderingContext.uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134845. begin
  134846. InvokeJSNoResult('uniform2fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134847. end;
  134848. procedure TJSWebGL2RenderingContext.uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  134849. begin
  134850. InvokeJSNoResult('uniform2fv',[aLocation,aData]);
  134851. end;
  134852. procedure TJSWebGL2RenderingContext.uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  134853. begin
  134854. InvokeJSNoResult('uniform2fv',[aLocation,aData]);
  134855. end;
  134856. procedure TJSWebGL2RenderingContext.uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  134857. begin
  134858. InvokeJSNoResult('uniform2fv',[aLocation,aData,aSrcOffset]);
  134859. end;
  134860. procedure TJSWebGL2RenderingContext.uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  134861. begin
  134862. InvokeJSNoResult('uniform2fv',[aLocation,aData,aSrcOffset]);
  134863. end;
  134864. procedure TJSWebGL2RenderingContext.uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134865. begin
  134866. InvokeJSNoResult('uniform3fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134867. end;
  134868. procedure TJSWebGL2RenderingContext.uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134869. begin
  134870. InvokeJSNoResult('uniform3fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134871. end;
  134872. procedure TJSWebGL2RenderingContext.uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  134873. begin
  134874. InvokeJSNoResult('uniform3fv',[aLocation,aData]);
  134875. end;
  134876. procedure TJSWebGL2RenderingContext.uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  134877. begin
  134878. InvokeJSNoResult('uniform3fv',[aLocation,aData]);
  134879. end;
  134880. procedure TJSWebGL2RenderingContext.uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  134881. begin
  134882. InvokeJSNoResult('uniform3fv',[aLocation,aData,aSrcOffset]);
  134883. end;
  134884. procedure TJSWebGL2RenderingContext.uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  134885. begin
  134886. InvokeJSNoResult('uniform3fv',[aLocation,aData,aSrcOffset]);
  134887. end;
  134888. procedure TJSWebGL2RenderingContext.uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134889. begin
  134890. InvokeJSNoResult('uniform4fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134891. end;
  134892. procedure TJSWebGL2RenderingContext.uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134893. begin
  134894. InvokeJSNoResult('uniform4fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134895. end;
  134896. procedure TJSWebGL2RenderingContext.uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  134897. begin
  134898. InvokeJSNoResult('uniform4fv',[aLocation,aData]);
  134899. end;
  134900. procedure TJSWebGL2RenderingContext.uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  134901. begin
  134902. InvokeJSNoResult('uniform4fv',[aLocation,aData]);
  134903. end;
  134904. procedure TJSWebGL2RenderingContext.uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  134905. begin
  134906. InvokeJSNoResult('uniform4fv',[aLocation,aData,aSrcOffset]);
  134907. end;
  134908. procedure TJSWebGL2RenderingContext.uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  134909. begin
  134910. InvokeJSNoResult('uniform4fv',[aLocation,aData,aSrcOffset]);
  134911. end;
  134912. procedure TJSWebGL2RenderingContext.uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134913. begin
  134914. InvokeJSNoResult('uniform1iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134915. end;
  134916. procedure TJSWebGL2RenderingContext.uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134917. begin
  134918. InvokeJSNoResult('uniform1iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134919. end;
  134920. procedure TJSWebGL2RenderingContext.uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  134921. begin
  134922. InvokeJSNoResult('uniform1iv',[aLocation,aData]);
  134923. end;
  134924. procedure TJSWebGL2RenderingContext.uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  134925. begin
  134926. InvokeJSNoResult('uniform1iv',[aLocation,aData]);
  134927. end;
  134928. procedure TJSWebGL2RenderingContext.uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  134929. begin
  134930. InvokeJSNoResult('uniform1iv',[aLocation,aData,aSrcOffset]);
  134931. end;
  134932. procedure TJSWebGL2RenderingContext.uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  134933. begin
  134934. InvokeJSNoResult('uniform1iv',[aLocation,aData,aSrcOffset]);
  134935. end;
  134936. procedure TJSWebGL2RenderingContext.uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134937. begin
  134938. InvokeJSNoResult('uniform2iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134939. end;
  134940. procedure TJSWebGL2RenderingContext.uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134941. begin
  134942. InvokeJSNoResult('uniform2iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134943. end;
  134944. procedure TJSWebGL2RenderingContext.uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  134945. begin
  134946. InvokeJSNoResult('uniform2iv',[aLocation,aData]);
  134947. end;
  134948. procedure TJSWebGL2RenderingContext.uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  134949. begin
  134950. InvokeJSNoResult('uniform2iv',[aLocation,aData]);
  134951. end;
  134952. procedure TJSWebGL2RenderingContext.uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  134953. begin
  134954. InvokeJSNoResult('uniform2iv',[aLocation,aData,aSrcOffset]);
  134955. end;
  134956. procedure TJSWebGL2RenderingContext.uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  134957. begin
  134958. InvokeJSNoResult('uniform2iv',[aLocation,aData,aSrcOffset]);
  134959. end;
  134960. procedure TJSWebGL2RenderingContext.uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134961. begin
  134962. InvokeJSNoResult('uniform3iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134963. end;
  134964. procedure TJSWebGL2RenderingContext.uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134965. begin
  134966. InvokeJSNoResult('uniform3iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134967. end;
  134968. procedure TJSWebGL2RenderingContext.uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  134969. begin
  134970. InvokeJSNoResult('uniform3iv',[aLocation,aData]);
  134971. end;
  134972. procedure TJSWebGL2RenderingContext.uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  134973. begin
  134974. InvokeJSNoResult('uniform3iv',[aLocation,aData]);
  134975. end;
  134976. procedure TJSWebGL2RenderingContext.uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  134977. begin
  134978. InvokeJSNoResult('uniform3iv',[aLocation,aData,aSrcOffset]);
  134979. end;
  134980. procedure TJSWebGL2RenderingContext.uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  134981. begin
  134982. InvokeJSNoResult('uniform3iv',[aLocation,aData,aSrcOffset]);
  134983. end;
  134984. procedure TJSWebGL2RenderingContext.uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134985. begin
  134986. InvokeJSNoResult('uniform4iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134987. end;
  134988. procedure TJSWebGL2RenderingContext.uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  134989. begin
  134990. InvokeJSNoResult('uniform4iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  134991. end;
  134992. procedure TJSWebGL2RenderingContext.uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  134993. begin
  134994. InvokeJSNoResult('uniform4iv',[aLocation,aData]);
  134995. end;
  134996. procedure TJSWebGL2RenderingContext.uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  134997. begin
  134998. InvokeJSNoResult('uniform4iv',[aLocation,aData]);
  134999. end;
  135000. procedure TJSWebGL2RenderingContext.uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  135001. begin
  135002. InvokeJSNoResult('uniform4iv',[aLocation,aData,aSrcOffset]);
  135003. end;
  135004. procedure TJSWebGL2RenderingContext.uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  135005. begin
  135006. InvokeJSNoResult('uniform4iv',[aLocation,aData,aSrcOffset]);
  135007. end;
  135008. procedure TJSWebGL2RenderingContext.uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135009. begin
  135010. InvokeJSNoResult('uniform1uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  135011. end;
  135012. procedure TJSWebGL2RenderingContext.uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135013. begin
  135014. InvokeJSNoResult('uniform1uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  135015. end;
  135016. procedure TJSWebGL2RenderingContext.uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  135017. begin
  135018. InvokeJSNoResult('uniform1uiv',[aLocation,aData]);
  135019. end;
  135020. procedure TJSWebGL2RenderingContext.uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  135021. begin
  135022. InvokeJSNoResult('uniform1uiv',[aLocation,aData]);
  135023. end;
  135024. procedure TJSWebGL2RenderingContext.uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  135025. begin
  135026. InvokeJSNoResult('uniform1uiv',[aLocation,aData,aSrcOffset]);
  135027. end;
  135028. procedure TJSWebGL2RenderingContext.uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  135029. begin
  135030. InvokeJSNoResult('uniform1uiv',[aLocation,aData,aSrcOffset]);
  135031. end;
  135032. procedure TJSWebGL2RenderingContext.uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135033. begin
  135034. InvokeJSNoResult('uniform2uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  135035. end;
  135036. procedure TJSWebGL2RenderingContext.uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135037. begin
  135038. InvokeJSNoResult('uniform2uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  135039. end;
  135040. procedure TJSWebGL2RenderingContext.uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  135041. begin
  135042. InvokeJSNoResult('uniform2uiv',[aLocation,aData]);
  135043. end;
  135044. procedure TJSWebGL2RenderingContext.uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  135045. begin
  135046. InvokeJSNoResult('uniform2uiv',[aLocation,aData]);
  135047. end;
  135048. procedure TJSWebGL2RenderingContext.uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  135049. begin
  135050. InvokeJSNoResult('uniform2uiv',[aLocation,aData,aSrcOffset]);
  135051. end;
  135052. procedure TJSWebGL2RenderingContext.uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  135053. begin
  135054. InvokeJSNoResult('uniform2uiv',[aLocation,aData,aSrcOffset]);
  135055. end;
  135056. procedure TJSWebGL2RenderingContext.uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135057. begin
  135058. InvokeJSNoResult('uniform3uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  135059. end;
  135060. procedure TJSWebGL2RenderingContext.uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135061. begin
  135062. InvokeJSNoResult('uniform3uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  135063. end;
  135064. procedure TJSWebGL2RenderingContext.uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  135065. begin
  135066. InvokeJSNoResult('uniform3uiv',[aLocation,aData]);
  135067. end;
  135068. procedure TJSWebGL2RenderingContext.uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  135069. begin
  135070. InvokeJSNoResult('uniform3uiv',[aLocation,aData]);
  135071. end;
  135072. procedure TJSWebGL2RenderingContext.uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  135073. begin
  135074. InvokeJSNoResult('uniform3uiv',[aLocation,aData,aSrcOffset]);
  135075. end;
  135076. procedure TJSWebGL2RenderingContext.uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  135077. begin
  135078. InvokeJSNoResult('uniform3uiv',[aLocation,aData,aSrcOffset]);
  135079. end;
  135080. procedure TJSWebGL2RenderingContext.uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135081. begin
  135082. InvokeJSNoResult('uniform4uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  135083. end;
  135084. procedure TJSWebGL2RenderingContext.uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135085. begin
  135086. InvokeJSNoResult('uniform4uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  135087. end;
  135088. procedure TJSWebGL2RenderingContext.uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  135089. begin
  135090. InvokeJSNoResult('uniform4uiv',[aLocation,aData]);
  135091. end;
  135092. procedure TJSWebGL2RenderingContext.uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  135093. begin
  135094. InvokeJSNoResult('uniform4uiv',[aLocation,aData]);
  135095. end;
  135096. procedure TJSWebGL2RenderingContext.uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  135097. begin
  135098. InvokeJSNoResult('uniform4uiv',[aLocation,aData,aSrcOffset]);
  135099. end;
  135100. procedure TJSWebGL2RenderingContext.uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  135101. begin
  135102. InvokeJSNoResult('uniform4uiv',[aLocation,aData,aSrcOffset]);
  135103. end;
  135104. procedure TJSWebGL2RenderingContext.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135105. begin
  135106. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135107. end;
  135108. procedure TJSWebGL2RenderingContext.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135109. begin
  135110. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135111. end;
  135112. procedure TJSWebGL2RenderingContext.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  135113. begin
  135114. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData]);
  135115. end;
  135116. procedure TJSWebGL2RenderingContext.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  135117. begin
  135118. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData]);
  135119. end;
  135120. procedure TJSWebGL2RenderingContext.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  135121. begin
  135122. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135123. end;
  135124. procedure TJSWebGL2RenderingContext.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  135125. begin
  135126. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135127. end;
  135128. procedure TJSWebGL2RenderingContext.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135129. begin
  135130. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135131. end;
  135132. procedure TJSWebGL2RenderingContext.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135133. begin
  135134. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135135. end;
  135136. procedure TJSWebGL2RenderingContext.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  135137. begin
  135138. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData]);
  135139. end;
  135140. procedure TJSWebGL2RenderingContext.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  135141. begin
  135142. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData]);
  135143. end;
  135144. procedure TJSWebGL2RenderingContext.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  135145. begin
  135146. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135147. end;
  135148. procedure TJSWebGL2RenderingContext.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  135149. begin
  135150. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135151. end;
  135152. procedure TJSWebGL2RenderingContext.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135153. begin
  135154. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135155. end;
  135156. procedure TJSWebGL2RenderingContext.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135157. begin
  135158. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135159. end;
  135160. procedure TJSWebGL2RenderingContext.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  135161. begin
  135162. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData]);
  135163. end;
  135164. procedure TJSWebGL2RenderingContext.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  135165. begin
  135166. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData]);
  135167. end;
  135168. procedure TJSWebGL2RenderingContext.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  135169. begin
  135170. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135171. end;
  135172. procedure TJSWebGL2RenderingContext.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  135173. begin
  135174. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135175. end;
  135176. procedure TJSWebGL2RenderingContext.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135177. begin
  135178. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135179. end;
  135180. procedure TJSWebGL2RenderingContext.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135181. begin
  135182. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135183. end;
  135184. procedure TJSWebGL2RenderingContext.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  135185. begin
  135186. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData]);
  135187. end;
  135188. procedure TJSWebGL2RenderingContext.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  135189. begin
  135190. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData]);
  135191. end;
  135192. procedure TJSWebGL2RenderingContext.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  135193. begin
  135194. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135195. end;
  135196. procedure TJSWebGL2RenderingContext.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  135197. begin
  135198. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135199. end;
  135200. procedure TJSWebGL2RenderingContext.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135201. begin
  135202. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135203. end;
  135204. procedure TJSWebGL2RenderingContext.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135205. begin
  135206. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135207. end;
  135208. procedure TJSWebGL2RenderingContext.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  135209. begin
  135210. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData]);
  135211. end;
  135212. procedure TJSWebGL2RenderingContext.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  135213. begin
  135214. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData]);
  135215. end;
  135216. procedure TJSWebGL2RenderingContext.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  135217. begin
  135218. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135219. end;
  135220. procedure TJSWebGL2RenderingContext.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  135221. begin
  135222. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135223. end;
  135224. procedure TJSWebGL2RenderingContext.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135225. begin
  135226. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135227. end;
  135228. procedure TJSWebGL2RenderingContext.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135229. begin
  135230. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135231. end;
  135232. procedure TJSWebGL2RenderingContext.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  135233. begin
  135234. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData]);
  135235. end;
  135236. procedure TJSWebGL2RenderingContext.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  135237. begin
  135238. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData]);
  135239. end;
  135240. procedure TJSWebGL2RenderingContext.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  135241. begin
  135242. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135243. end;
  135244. procedure TJSWebGL2RenderingContext.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  135245. begin
  135246. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135247. end;
  135248. procedure TJSWebGL2RenderingContext.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135249. begin
  135250. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135251. end;
  135252. procedure TJSWebGL2RenderingContext.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135253. begin
  135254. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135255. end;
  135256. procedure TJSWebGL2RenderingContext.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  135257. begin
  135258. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData]);
  135259. end;
  135260. procedure TJSWebGL2RenderingContext.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  135261. begin
  135262. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData]);
  135263. end;
  135264. procedure TJSWebGL2RenderingContext.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  135265. begin
  135266. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135267. end;
  135268. procedure TJSWebGL2RenderingContext.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  135269. begin
  135270. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135271. end;
  135272. procedure TJSWebGL2RenderingContext.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135273. begin
  135274. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135275. end;
  135276. procedure TJSWebGL2RenderingContext.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135277. begin
  135278. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135279. end;
  135280. procedure TJSWebGL2RenderingContext.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  135281. begin
  135282. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData]);
  135283. end;
  135284. procedure TJSWebGL2RenderingContext.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  135285. begin
  135286. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData]);
  135287. end;
  135288. procedure TJSWebGL2RenderingContext.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  135289. begin
  135290. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135291. end;
  135292. procedure TJSWebGL2RenderingContext.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  135293. begin
  135294. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135295. end;
  135296. procedure TJSWebGL2RenderingContext.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135297. begin
  135298. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135299. end;
  135300. procedure TJSWebGL2RenderingContext.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  135301. begin
  135302. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  135303. end;
  135304. procedure TJSWebGL2RenderingContext.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  135305. begin
  135306. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData]);
  135307. end;
  135308. procedure TJSWebGL2RenderingContext.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  135309. begin
  135310. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData]);
  135311. end;
  135312. procedure TJSWebGL2RenderingContext.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  135313. begin
  135314. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135315. end;
  135316. procedure TJSWebGL2RenderingContext.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  135317. begin
  135318. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  135319. end;
  135320. procedure TJSWebGL2RenderingContext.vertexAttribI4i(aIndex: TGLuint; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint);
  135321. begin
  135322. InvokeJSNoResult('vertexAttribI4i',[aIndex,aX,aY,aZ,aW]);
  135323. end;
  135324. procedure TJSWebGL2RenderingContext.vertexAttribI4iv(aIndex: TGLuint; aValues: IJSInt32Array);
  135325. begin
  135326. InvokeJSNoResult('vertexAttribI4iv',[aIndex,aValues]);
  135327. end;
  135328. procedure TJSWebGL2RenderingContext.vertexAttribI4iv(aIndex: TGLuint; const aValues: TGLintDynArray);
  135329. begin
  135330. InvokeJSNoResult('vertexAttribI4iv',[aIndex,aValues]);
  135331. end;
  135332. procedure TJSWebGL2RenderingContext.vertexAttribI4ui(aIndex: TGLuint; aX: TGLuint; aY: TGLuint; aZ: TGLuint; aW: TGLuint);
  135333. begin
  135334. InvokeJSNoResult('vertexAttribI4ui',[aIndex,aX,aY,aZ,aW]);
  135335. end;
  135336. procedure TJSWebGL2RenderingContext.vertexAttribI4uiv(aIndex: TGLuint; const aValues: TGLuintDynArray);
  135337. begin
  135338. InvokeJSNoResult('vertexAttribI4uiv',[aIndex,aValues]);
  135339. end;
  135340. procedure TJSWebGL2RenderingContext.vertexAttribI4uiv(aIndex: TGLuint; aValues: IJSUint32Array);
  135341. begin
  135342. InvokeJSNoResult('vertexAttribI4uiv',[aIndex,aValues]);
  135343. end;
  135344. procedure TJSWebGL2RenderingContext.vertexAttribIPointer(aIndex: TGLuint; aSize: TGLint; aType_: TGLenum; aStride: TGLsizei; aOffset: TGLintptr);
  135345. begin
  135346. InvokeJSNoResult('vertexAttribIPointer',[aIndex,aSize,aType_,aStride,aOffset]);
  135347. end;
  135348. procedure TJSWebGL2RenderingContext.vertexAttribDivisor(aIndex: TGLuint; aDivisor: TGLuint);
  135349. begin
  135350. InvokeJSNoResult('vertexAttribDivisor',[aIndex,aDivisor]);
  135351. end;
  135352. procedure TJSWebGL2RenderingContext.drawArraysInstanced(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei; aInstanceCount: TGLsizei);
  135353. begin
  135354. InvokeJSNoResult('drawArraysInstanced',[aMode,aFirst,aCount,aInstanceCount]);
  135355. end;
  135356. procedure TJSWebGL2RenderingContext.drawElementsInstanced(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr; aInstanceCount: TGLsizei);
  135357. begin
  135358. InvokeJSNoResult('drawElementsInstanced',[aMode,aCount,aType_,aOffset,aInstanceCount]);
  135359. end;
  135360. procedure TJSWebGL2RenderingContext.drawRangeElements(aMode: TGLenum; aStart: TGLuint; aEnd_: TGLuint; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr);
  135361. begin
  135362. InvokeJSNoResult('drawRangeElements',[aMode,aStart,aEnd_,aCount,aType_,aOffset]);
  135363. end;
  135364. procedure TJSWebGL2RenderingContext.readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView);
  135365. begin
  135366. InvokeJSNoResult('readPixels',[aX,aY,aWidth,aHeight,aFormat,aType_,aDstData]);
  135367. end;
  135368. procedure TJSWebGL2RenderingContext.readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aOffset: TGLintptr);
  135369. begin
  135370. InvokeJSNoResult('readPixels',[aX,aY,aWidth,aHeight,aFormat,aType_,aOffset]);
  135371. end;
  135372. procedure TJSWebGL2RenderingContext.readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView; aDstOffset: TGLuint);
  135373. begin
  135374. InvokeJSNoResult('readPixels',[aX,aY,aWidth,aHeight,aFormat,aType_,aDstData,aDstOffset]);
  135375. end;
  135376. procedure TJSWebGL2RenderingContext.drawBuffers(const aBuffers: TGLenumDynArray);
  135377. begin
  135378. InvokeJSNoResult('drawBuffers',[aBuffers]);
  135379. end;
  135380. procedure TJSWebGL2RenderingContext.clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array; aSrcOffset: TGLuint);
  135381. begin
  135382. InvokeJSNoResult('clearBufferfv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  135383. end;
  135384. procedure TJSWebGL2RenderingContext.clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray; aSrcOffset: TGLuint);
  135385. begin
  135386. InvokeJSNoResult('clearBufferfv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  135387. end;
  135388. procedure TJSWebGL2RenderingContext.clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray);
  135389. begin
  135390. InvokeJSNoResult('clearBufferfv',[aBuffer,aDrawbuffer,aValues]);
  135391. end;
  135392. procedure TJSWebGL2RenderingContext.clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array);
  135393. begin
  135394. InvokeJSNoResult('clearBufferfv',[aBuffer,aDrawbuffer,aValues]);
  135395. end;
  135396. procedure TJSWebGL2RenderingContext.clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array; aSrcOffset: TGLuint);
  135397. begin
  135398. InvokeJSNoResult('clearBufferiv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  135399. end;
  135400. procedure TJSWebGL2RenderingContext.clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray; aSrcOffset: TGLuint);
  135401. begin
  135402. InvokeJSNoResult('clearBufferiv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  135403. end;
  135404. procedure TJSWebGL2RenderingContext.clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray);
  135405. begin
  135406. InvokeJSNoResult('clearBufferiv',[aBuffer,aDrawbuffer,aValues]);
  135407. end;
  135408. procedure TJSWebGL2RenderingContext.clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array);
  135409. begin
  135410. InvokeJSNoResult('clearBufferiv',[aBuffer,aDrawbuffer,aValues]);
  135411. end;
  135412. procedure TJSWebGL2RenderingContext.clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray; aSrcOffset: TGLuint);
  135413. begin
  135414. InvokeJSNoResult('clearBufferuiv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  135415. end;
  135416. procedure TJSWebGL2RenderingContext.clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array; aSrcOffset: TGLuint);
  135417. begin
  135418. InvokeJSNoResult('clearBufferuiv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  135419. end;
  135420. procedure TJSWebGL2RenderingContext.clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array);
  135421. begin
  135422. InvokeJSNoResult('clearBufferuiv',[aBuffer,aDrawbuffer,aValues]);
  135423. end;
  135424. procedure TJSWebGL2RenderingContext.clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray);
  135425. begin
  135426. InvokeJSNoResult('clearBufferuiv',[aBuffer,aDrawbuffer,aValues]);
  135427. end;
  135428. procedure TJSWebGL2RenderingContext.clearBufferfi(aBuffer: TGLenum; aDrawbuffer: TGLint; aDepth: TGLfloat; aStencil: TGLint);
  135429. begin
  135430. InvokeJSNoResult('clearBufferfi',[aBuffer,aDrawbuffer,aDepth,aStencil]);
  135431. end;
  135432. function TJSWebGL2RenderingContext.createQuery: IJSWebGLQuery;
  135433. begin
  135434. Result:=InvokeJSObjectResult('createQuery',[],TJSWebGLQuery) as IJSWebGLQuery;
  135435. end;
  135436. procedure TJSWebGL2RenderingContext.deleteQuery(aQuery: IJSWebGLQuery);
  135437. begin
  135438. InvokeJSNoResult('deleteQuery',[aQuery]);
  135439. end;
  135440. function TJSWebGL2RenderingContext.isQuery(aQuery: IJSWebGLQuery): TGLboolean;
  135441. begin
  135442. Result:=InvokeJSBooleanResult('isQuery',[aQuery]);
  135443. end;
  135444. procedure TJSWebGL2RenderingContext.beginQuery(aTarget: TGLenum; aQuery: IJSWebGLQuery);
  135445. begin
  135446. InvokeJSNoResult('beginQuery',[aTarget,aQuery]);
  135447. end;
  135448. procedure TJSWebGL2RenderingContext.endQuery(aTarget: TGLenum);
  135449. begin
  135450. InvokeJSNoResult('endQuery',[aTarget]);
  135451. end;
  135452. function TJSWebGL2RenderingContext.getQuery(aTarget: TGLenum; aPname: TGLenum): Variant;
  135453. begin
  135454. Result:=InvokeJSVariantResult('getQuery',[aTarget,aPname]);
  135455. end;
  135456. function TJSWebGL2RenderingContext.getQueryParameter(aQuery: IJSWebGLQuery; aPname: TGLenum): Variant;
  135457. begin
  135458. Result:=InvokeJSVariantResult('getQueryParameter',[aQuery,aPname]);
  135459. end;
  135460. function TJSWebGL2RenderingContext.createSampler: IJSWebGLSampler;
  135461. begin
  135462. Result:=InvokeJSObjectResult('createSampler',[],TJSWebGLSampler) as IJSWebGLSampler;
  135463. end;
  135464. procedure TJSWebGL2RenderingContext.deleteSampler(aSampler: IJSWebGLSampler);
  135465. begin
  135466. InvokeJSNoResult('deleteSampler',[aSampler]);
  135467. end;
  135468. function TJSWebGL2RenderingContext.isSampler(aSampler: IJSWebGLSampler): TGLboolean;
  135469. begin
  135470. Result:=InvokeJSBooleanResult('isSampler',[aSampler]);
  135471. end;
  135472. procedure TJSWebGL2RenderingContext.bindSampler(aUnit_: TGLuint; aSampler: IJSWebGLSampler);
  135473. begin
  135474. InvokeJSNoResult('bindSampler',[aUnit_,aSampler]);
  135475. end;
  135476. procedure TJSWebGL2RenderingContext.samplerParameteri(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLint);
  135477. begin
  135478. InvokeJSNoResult('samplerParameteri',[aSampler,aPname,aParam]);
  135479. end;
  135480. procedure TJSWebGL2RenderingContext.samplerParameterf(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLfloat);
  135481. begin
  135482. InvokeJSNoResult('samplerParameterf',[aSampler,aPname,aParam]);
  135483. end;
  135484. function TJSWebGL2RenderingContext.getSamplerParameter(aSampler: IJSWebGLSampler; aPname: TGLenum): Variant;
  135485. begin
  135486. Result:=InvokeJSVariantResult('getSamplerParameter',[aSampler,aPname]);
  135487. end;
  135488. function TJSWebGL2RenderingContext.fenceSync(aCondition: TGLenum; aFlags: TGLbitfield): IJSWebGLSync;
  135489. begin
  135490. Result:=InvokeJSObjectResult('fenceSync',[aCondition,aFlags],TJSWebGLSync) as IJSWebGLSync;
  135491. end;
  135492. function TJSWebGL2RenderingContext.isSync(aSync: IJSWebGLSync): TGLboolean;
  135493. begin
  135494. Result:=InvokeJSBooleanResult('isSync',[aSync]);
  135495. end;
  135496. procedure TJSWebGL2RenderingContext.deleteSync(aSync: IJSWebGLSync);
  135497. begin
  135498. InvokeJSNoResult('deleteSync',[aSync]);
  135499. end;
  135500. function TJSWebGL2RenderingContext.clientWaitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLuint64): TGLenum;
  135501. begin
  135502. Result:=InvokeJSLongIntResult('clientWaitSync',[aSync,aFlags,aTimeout]);
  135503. end;
  135504. procedure TJSWebGL2RenderingContext.waitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLint64);
  135505. begin
  135506. InvokeJSNoResult('waitSync',[aSync,aFlags,aTimeout]);
  135507. end;
  135508. function TJSWebGL2RenderingContext.getSyncParameter(aSync: IJSWebGLSync; aPname: TGLenum): Variant;
  135509. begin
  135510. Result:=InvokeJSVariantResult('getSyncParameter',[aSync,aPname]);
  135511. end;
  135512. function TJSWebGL2RenderingContext.createTransformFeedback: IJSWebGLTransformFeedback;
  135513. begin
  135514. Result:=InvokeJSObjectResult('createTransformFeedback',[],TJSWebGLTransformFeedback) as IJSWebGLTransformFeedback;
  135515. end;
  135516. procedure TJSWebGL2RenderingContext.deleteTransformFeedback(aTf: IJSWebGLTransformFeedback);
  135517. begin
  135518. InvokeJSNoResult('deleteTransformFeedback',[aTf]);
  135519. end;
  135520. function TJSWebGL2RenderingContext.isTransformFeedback(aTf: IJSWebGLTransformFeedback): TGLboolean;
  135521. begin
  135522. Result:=InvokeJSBooleanResult('isTransformFeedback',[aTf]);
  135523. end;
  135524. procedure TJSWebGL2RenderingContext.bindTransformFeedback(aTarget: TGLenum; aTf: IJSWebGLTransformFeedback);
  135525. begin
  135526. InvokeJSNoResult('bindTransformFeedback',[aTarget,aTf]);
  135527. end;
  135528. procedure TJSWebGL2RenderingContext.beginTransformFeedback(aPrimitiveMode: TGLenum);
  135529. begin
  135530. InvokeJSNoResult('beginTransformFeedback',[aPrimitiveMode]);
  135531. end;
  135532. procedure TJSWebGL2RenderingContext.endTransformFeedback;
  135533. begin
  135534. InvokeJSNoResult('endTransformFeedback',[]);
  135535. end;
  135536. procedure TJSWebGL2RenderingContext.transformFeedbackVaryings(aProgram_: IJSWebGLProgram; const aVaryings: TUnicodeStringDynArray; aBufferMode: TGLenum);
  135537. begin
  135538. InvokeJSNoResult('transformFeedbackVaryings',[aProgram_,aVaryings,aBufferMode]);
  135539. end;
  135540. function TJSWebGL2RenderingContext.getTransformFeedbackVarying(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  135541. begin
  135542. Result:=InvokeJSObjectResult('getTransformFeedbackVarying',[aProgram_,aIndex],TJSWebGLActiveInfo) as IJSWebGLActiveInfo;
  135543. end;
  135544. procedure TJSWebGL2RenderingContext.pauseTransformFeedback;
  135545. begin
  135546. InvokeJSNoResult('pauseTransformFeedback',[]);
  135547. end;
  135548. procedure TJSWebGL2RenderingContext.resumeTransformFeedback;
  135549. begin
  135550. InvokeJSNoResult('resumeTransformFeedback',[]);
  135551. end;
  135552. procedure TJSWebGL2RenderingContext.bindBufferBase(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer);
  135553. begin
  135554. InvokeJSNoResult('bindBufferBase',[aTarget,aIndex,aBuffer]);
  135555. end;
  135556. procedure TJSWebGL2RenderingContext.bindBufferRange(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer; aOffset: TGLintptr; aSize: TGLsizeiptr);
  135557. begin
  135558. InvokeJSNoResult('bindBufferRange',[aTarget,aIndex,aBuffer,aOffset,aSize]);
  135559. end;
  135560. function TJSWebGL2RenderingContext.getIndexedParameter(aTarget: TGLenum; aIndex: TGLuint): Variant;
  135561. begin
  135562. Result:=InvokeJSVariantResult('getIndexedParameter',[aTarget,aIndex]);
  135563. end;
  135564. function TJSWebGL2RenderingContext.getUniformIndices(aProgram_: IJSWebGLProgram; const aUniformNames: TUnicodeStringDynArray): TGLuintDynArray;
  135565. begin
  135566. Result:=InvokeJSObjectResult('getUniformIndices',[aProgram_,aUniformNames],TJSArray) as TGLuintDynArray;
  135567. end;
  135568. function TJSWebGL2RenderingContext.getActiveUniforms(aProgram_: IJSWebGLProgram; const aUniformIndices: TGLuintDynArray; aPname: TGLenum): Variant;
  135569. begin
  135570. Result:=InvokeJSVariantResult('getActiveUniforms',[aProgram_,aUniformIndices,aPname]);
  135571. end;
  135572. function TJSWebGL2RenderingContext.getUniformBlockIndex(aProgram_: IJSWebGLProgram; const aUniformBlockName: UnicodeString): TGLuint;
  135573. begin
  135574. Result:=InvokeJSLongIntResult('getUniformBlockIndex',[aProgram_,aUniformBlockName]);
  135575. end;
  135576. function TJSWebGL2RenderingContext.getActiveUniformBlockParameter(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aPname: TGLenum): Variant;
  135577. begin
  135578. Result:=InvokeJSVariantResult('getActiveUniformBlockParameter',[aProgram_,aUniformBlockIndex,aPname]);
  135579. end;
  135580. function TJSWebGL2RenderingContext.getActiveUniformBlockName(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint): UnicodeString;
  135581. begin
  135582. Result:=InvokeJSUnicodeStringResult('getActiveUniformBlockName',[aProgram_,aUniformBlockIndex]);
  135583. end;
  135584. procedure TJSWebGL2RenderingContext.uniformBlockBinding(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aUniformBlockBinding: TGLuint);
  135585. begin
  135586. InvokeJSNoResult('uniformBlockBinding',[aProgram_,aUniformBlockIndex,aUniformBlockBinding]);
  135587. end;
  135588. function TJSWebGL2RenderingContext.createVertexArray: IJSWebGLVertexArrayObject;
  135589. begin
  135590. Result:=InvokeJSObjectResult('createVertexArray',[],TJSWebGLVertexArrayObject) as IJSWebGLVertexArrayObject;
  135591. end;
  135592. procedure TJSWebGL2RenderingContext.deleteVertexArray(aVertexArray: IJSWebGLVertexArrayObject);
  135593. begin
  135594. InvokeJSNoResult('deleteVertexArray',[aVertexArray]);
  135595. end;
  135596. function TJSWebGL2RenderingContext.isVertexArray(aVertexArray: IJSWebGLVertexArrayObject): TGLboolean;
  135597. begin
  135598. Result:=InvokeJSBooleanResult('isVertexArray',[aVertexArray]);
  135599. end;
  135600. procedure TJSWebGL2RenderingContext.bindVertexArray(aArray_: IJSWebGLVertexArrayObject);
  135601. begin
  135602. InvokeJSNoResult('bindVertexArray',[aArray_]);
  135603. end;
  135604. class function TJSWebGL2RenderingContext.JSClassName: UnicodeString;
  135605. begin
  135606. Result:='WebGL2RenderingContext';
  135607. end;
  135608. class function TJSWebGL2RenderingContext.Cast(const Intf: IJSObject): IJSWebGL2RenderingContext;
  135609. begin
  135610. Result:=TJSWebGL2RenderingContext.JOBCast(Intf);
  135611. end;
  135612. procedure TJSWebGL2RenderingContextBase.bufferData(aTarget: TGLenum; aSize: TGLsizeiptr; aUsage: TGLenum);
  135613. begin
  135614. InvokeJSNoResult('bufferData',[aTarget,aSize,aUsage]);
  135615. end;
  135616. procedure TJSWebGL2RenderingContextBase.bufferData(aTarget: TGLenum; aSrcData: IJSArrayBuffer; aUsage: TGLenum);
  135617. begin
  135618. InvokeJSNoResult('bufferData',[aTarget,aSrcData,aUsage]);
  135619. end;
  135620. procedure TJSWebGL2RenderingContextBase.bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum);
  135621. begin
  135622. InvokeJSNoResult('bufferData',[aTarget,aSrcData,aUsage]);
  135623. end;
  135624. procedure TJSWebGL2RenderingContextBase.bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBuffer);
  135625. begin
  135626. InvokeJSNoResult('bufferSubData',[aTarget,aOffset,aSrcData]);
  135627. end;
  135628. procedure TJSWebGL2RenderingContextBase.bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aSrcData: IJSArrayBufferView);
  135629. begin
  135630. InvokeJSNoResult('bufferSubData',[aTarget,aOffset,aSrcData]);
  135631. end;
  135632. procedure TJSWebGL2RenderingContextBase.bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint; aLength_: TGLuint);
  135633. begin
  135634. InvokeJSNoResult('bufferData',[aTarget,aSrcData,aUsage,aSrcOffset,aLength_]);
  135635. end;
  135636. procedure TJSWebGL2RenderingContextBase.bufferData(aTarget: TGLenum; aSrcData: IJSArrayBufferView; aUsage: TGLenum; aSrcOffset: TGLuint);
  135637. begin
  135638. InvokeJSNoResult('bufferData',[aTarget,aSrcData,aUsage,aSrcOffset]);
  135639. end;
  135640. procedure TJSWebGL2RenderingContextBase.bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aLength_: TGLuint);
  135641. begin
  135642. InvokeJSNoResult('bufferSubData',[aTarget,aDstByteOffset,aSrcData,aSrcOffset,aLength_]);
  135643. end;
  135644. procedure TJSWebGL2RenderingContextBase.bufferSubData(aTarget: TGLenum; aDstByteOffset: TGLintptr; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  135645. begin
  135646. InvokeJSNoResult('bufferSubData',[aTarget,aDstByteOffset,aSrcData,aSrcOffset]);
  135647. end;
  135648. procedure TJSWebGL2RenderingContextBase.copyBufferSubData(aReadTarget: TGLenum; aWriteTarget: TGLenum; aReadOffset: TGLintptr; aWriteOffset: TGLintptr; aSize: TGLsizeiptr);
  135649. begin
  135650. InvokeJSNoResult('copyBufferSubData',[aReadTarget,aWriteTarget,aReadOffset,aWriteOffset,aSize]);
  135651. end;
  135652. procedure TJSWebGL2RenderingContextBase.getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint; aLength_: TGLuint);
  135653. begin
  135654. InvokeJSNoResult('getBufferSubData',[aTarget,aSrcByteOffset,aDstData,aDstOffset,aLength_]);
  135655. end;
  135656. procedure TJSWebGL2RenderingContextBase.getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView);
  135657. begin
  135658. InvokeJSNoResult('getBufferSubData',[aTarget,aSrcByteOffset,aDstData]);
  135659. end;
  135660. procedure TJSWebGL2RenderingContextBase.getBufferSubData(aTarget: TGLenum; aSrcByteOffset: TGLintptr; aDstData: IJSArrayBufferView; aDstOffset: TGLuint);
  135661. begin
  135662. InvokeJSNoResult('getBufferSubData',[aTarget,aSrcByteOffset,aDstData,aDstOffset]);
  135663. end;
  135664. procedure TJSWebGL2RenderingContextBase.blitFramebuffer(aSrcX0: TGLint; aSrcY0: TGLint; aSrcX1: TGLint; aSrcY1: TGLint; aDstX0: TGLint; aDstY0: TGLint; aDstX1: TGLint; aDstY1: TGLint; aMask: TGLbitfield; aFilter: TGLenum);
  135665. begin
  135666. InvokeJSNoResult('blitFramebuffer',[aSrcX0,aSrcY0,aSrcX1,aSrcY1,aDstX0,aDstY0,aDstX1,aDstY1,aMask,aFilter]);
  135667. end;
  135668. procedure TJSWebGL2RenderingContextBase.framebufferTextureLayer(aTarget: TGLenum; aAttachment: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint; aLayer: TGLint);
  135669. begin
  135670. InvokeJSNoResult('framebufferTextureLayer',[aTarget,aAttachment,aTexture,aLevel,aLayer]);
  135671. end;
  135672. procedure TJSWebGL2RenderingContextBase.invalidateFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray);
  135673. begin
  135674. InvokeJSNoResult('invalidateFramebuffer',[aTarget,aAttachments]);
  135675. end;
  135676. procedure TJSWebGL2RenderingContextBase.invalidateSubFramebuffer(aTarget: TGLenum; const aAttachments: TGLenumDynArray; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  135677. begin
  135678. InvokeJSNoResult('invalidateSubFramebuffer',[aTarget,aAttachments,aX,aY,aWidth,aHeight]);
  135679. end;
  135680. procedure TJSWebGL2RenderingContextBase.readBuffer(aSrc: TGLenum);
  135681. begin
  135682. InvokeJSNoResult('readBuffer',[aSrc]);
  135683. end;
  135684. function TJSWebGL2RenderingContextBase.getInternalformatParameter(aTarget: TGLenum; aInternalformat: TGLenum; aPname: TGLenum): Variant;
  135685. begin
  135686. Result:=InvokeJSVariantResult('getInternalformatParameter',[aTarget,aInternalformat,aPname]);
  135687. end;
  135688. procedure TJSWebGL2RenderingContextBase.renderbufferStorageMultisample(aTarget: TGLenum; aSamples: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  135689. begin
  135690. InvokeJSNoResult('renderbufferStorageMultisample',[aTarget,aSamples,aInternalformat,aWidth,aHeight]);
  135691. end;
  135692. procedure TJSWebGL2RenderingContextBase.texStorage2D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  135693. begin
  135694. InvokeJSNoResult('texStorage2D',[aTarget,aLevels,aInternalformat,aWidth,aHeight]);
  135695. end;
  135696. procedure TJSWebGL2RenderingContextBase.texStorage3D(aTarget: TGLenum; aLevels: TGLsizei; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei);
  135697. begin
  135698. InvokeJSNoResult('texStorage3D',[aTarget,aLevels,aInternalformat,aWidth,aHeight,aDepth]);
  135699. end;
  135700. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  135701. begin
  135702. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aPixels]);
  135703. end;
  135704. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  135705. begin
  135706. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  135707. end;
  135708. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  135709. begin
  135710. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  135711. end;
  135712. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  135713. begin
  135714. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  135715. end;
  135716. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  135717. begin
  135718. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  135719. end;
  135720. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  135721. begin
  135722. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  135723. end;
  135724. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  135725. begin
  135726. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  135727. end;
  135728. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  135729. begin
  135730. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aSource]);
  135731. end;
  135732. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  135733. begin
  135734. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aPixels]);
  135735. end;
  135736. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  135737. begin
  135738. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  135739. end;
  135740. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  135741. begin
  135742. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  135743. end;
  135744. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  135745. begin
  135746. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  135747. end;
  135748. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  135749. begin
  135750. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  135751. end;
  135752. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  135753. begin
  135754. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  135755. end;
  135756. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  135757. begin
  135758. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  135759. end;
  135760. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  135761. begin
  135762. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aSource]);
  135763. end;
  135764. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  135765. begin
  135766. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aPboOffset]);
  135767. end;
  135768. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  135769. begin
  135770. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  135771. end;
  135772. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  135773. begin
  135774. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  135775. end;
  135776. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  135777. begin
  135778. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  135779. end;
  135780. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  135781. begin
  135782. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  135783. end;
  135784. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  135785. begin
  135786. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  135787. end;
  135788. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  135789. begin
  135790. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  135791. end;
  135792. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  135793. begin
  135794. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSource]);
  135795. end;
  135796. procedure TJSWebGL2RenderingContextBase.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  135797. begin
  135798. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aSrcData,aSrcOffset]);
  135799. end;
  135800. procedure TJSWebGL2RenderingContextBase.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  135801. begin
  135802. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aPboOffset]);
  135803. end;
  135804. procedure TJSWebGL2RenderingContextBase.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  135805. begin
  135806. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  135807. end;
  135808. procedure TJSWebGL2RenderingContextBase.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  135809. begin
  135810. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  135811. end;
  135812. procedure TJSWebGL2RenderingContextBase.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  135813. begin
  135814. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  135815. end;
  135816. procedure TJSWebGL2RenderingContextBase.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  135817. begin
  135818. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  135819. end;
  135820. procedure TJSWebGL2RenderingContextBase.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  135821. begin
  135822. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  135823. end;
  135824. procedure TJSWebGL2RenderingContextBase.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  135825. begin
  135826. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  135827. end;
  135828. procedure TJSWebGL2RenderingContextBase.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  135829. begin
  135830. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSource]);
  135831. end;
  135832. procedure TJSWebGL2RenderingContextBase.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView);
  135833. begin
  135834. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSrcData]);
  135835. end;
  135836. procedure TJSWebGL2RenderingContextBase.texImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  135837. begin
  135838. InvokeJSNoResult('texImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aFormat,aType_,aSrcData,aSrcOffset]);
  135839. end;
  135840. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  135841. begin
  135842. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aPboOffset]);
  135843. end;
  135844. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  135845. begin
  135846. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  135847. end;
  135848. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  135849. begin
  135850. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  135851. end;
  135852. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  135853. begin
  135854. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  135855. end;
  135856. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  135857. begin
  135858. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  135859. end;
  135860. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  135861. begin
  135862. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  135863. end;
  135864. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  135865. begin
  135866. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  135867. end;
  135868. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  135869. begin
  135870. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSource]);
  135871. end;
  135872. procedure TJSWebGL2RenderingContextBase.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  135873. begin
  135874. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aSrcData,aSrcOffset]);
  135875. end;
  135876. procedure TJSWebGL2RenderingContextBase.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPboOffset: TGLintptr);
  135877. begin
  135878. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aPboOffset]);
  135879. end;
  135880. procedure TJSWebGL2RenderingContextBase.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLCanvasElement);
  135881. begin
  135882. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  135883. end;
  135884. procedure TJSWebGL2RenderingContextBase.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLImageElement);
  135885. begin
  135886. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  135887. end;
  135888. procedure TJSWebGL2RenderingContextBase.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSHTMLVideoElement);
  135889. begin
  135890. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  135891. end;
  135892. procedure TJSWebGL2RenderingContextBase.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageBitmap);
  135893. begin
  135894. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  135895. end;
  135896. procedure TJSWebGL2RenderingContextBase.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSImageData);
  135897. begin
  135898. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  135899. end;
  135900. procedure TJSWebGL2RenderingContextBase.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSOffscreenCanvas);
  135901. begin
  135902. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  135903. end;
  135904. procedure TJSWebGL2RenderingContextBase.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSource: IJSVideoFrame);
  135905. begin
  135906. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSource]);
  135907. end;
  135908. procedure TJSWebGL2RenderingContextBase.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  135909. begin
  135910. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSrcData,aSrcOffset]);
  135911. end;
  135912. procedure TJSWebGL2RenderingContextBase.texSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aSrcData: IJSArrayBufferView);
  135913. begin
  135914. InvokeJSNoResult('texSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aType_,aSrcData]);
  135915. end;
  135916. procedure TJSWebGL2RenderingContextBase.copyTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  135917. begin
  135918. InvokeJSNoResult('copyTexSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aX,aY,aWidth,aHeight]);
  135919. end;
  135920. procedure TJSWebGL2RenderingContextBase.compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr);
  135921. begin
  135922. InvokeJSNoResult('compressedTexImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aImageSize,aOffset]);
  135923. end;
  135924. procedure TJSWebGL2RenderingContextBase.compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  135925. begin
  135926. InvokeJSNoResult('compressedTexImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aSrcData,aSrcOffset,aSrcLengthOverride]);
  135927. end;
  135928. procedure TJSWebGL2RenderingContextBase.compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView);
  135929. begin
  135930. InvokeJSNoResult('compressedTexImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aSrcData]);
  135931. end;
  135932. procedure TJSWebGL2RenderingContextBase.compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  135933. begin
  135934. InvokeJSNoResult('compressedTexImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aSrcData,aSrcOffset]);
  135935. end;
  135936. procedure TJSWebGL2RenderingContextBase.compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aImageSize: TGLsizei; aOffset: TGLintptr);
  135937. begin
  135938. InvokeJSNoResult('compressedTexImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aImageSize,aOffset]);
  135939. end;
  135940. procedure TJSWebGL2RenderingContextBase.compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  135941. begin
  135942. InvokeJSNoResult('compressedTexImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aSrcData,aSrcOffset,aSrcLengthOverride]);
  135943. end;
  135944. procedure TJSWebGL2RenderingContextBase.compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView);
  135945. begin
  135946. InvokeJSNoResult('compressedTexImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aSrcData]);
  135947. end;
  135948. procedure TJSWebGL2RenderingContextBase.compressedTexImage3D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aBorder: TGLint; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  135949. begin
  135950. InvokeJSNoResult('compressedTexImage3D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aDepth,aBorder,aSrcData,aSrcOffset]);
  135951. end;
  135952. procedure TJSWebGL2RenderingContextBase.compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr);
  135953. begin
  135954. InvokeJSNoResult('compressedTexSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aImageSize,aOffset]);
  135955. end;
  135956. procedure TJSWebGL2RenderingContextBase.compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  135957. begin
  135958. InvokeJSNoResult('compressedTexSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aSrcData,aSrcOffset,aSrcLengthOverride]);
  135959. end;
  135960. procedure TJSWebGL2RenderingContextBase.compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView);
  135961. begin
  135962. InvokeJSNoResult('compressedTexSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aSrcData]);
  135963. end;
  135964. procedure TJSWebGL2RenderingContextBase.compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  135965. begin
  135966. InvokeJSNoResult('compressedTexSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aSrcData,aSrcOffset]);
  135967. end;
  135968. procedure TJSWebGL2RenderingContextBase.compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aImageSize: TGLsizei; aOffset: TGLintptr);
  135969. begin
  135970. InvokeJSNoResult('compressedTexSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aImageSize,aOffset]);
  135971. end;
  135972. procedure TJSWebGL2RenderingContextBase.compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint; aSrcLengthOverride: TGLuint);
  135973. begin
  135974. InvokeJSNoResult('compressedTexSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aSrcData,aSrcOffset,aSrcLengthOverride]);
  135975. end;
  135976. procedure TJSWebGL2RenderingContextBase.compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView);
  135977. begin
  135978. InvokeJSNoResult('compressedTexSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aSrcData]);
  135979. end;
  135980. procedure TJSWebGL2RenderingContextBase.compressedTexSubImage3D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aZoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aDepth: TGLsizei; aFormat: TGLenum; aSrcData: IJSArrayBufferView; aSrcOffset: TGLuint);
  135981. begin
  135982. InvokeJSNoResult('compressedTexSubImage3D',[aTarget,aLevel,aXoffset,aYoffset,aZoffset,aWidth,aHeight,aDepth,aFormat,aSrcData,aSrcOffset]);
  135983. end;
  135984. function TJSWebGL2RenderingContextBase.getFragDataLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint;
  135985. begin
  135986. Result:=InvokeJSLongIntResult('getFragDataLocation',[aProgram_,aName]);
  135987. end;
  135988. procedure TJSWebGL2RenderingContextBase.uniform1ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint);
  135989. begin
  135990. InvokeJSNoResult('uniform1ui',[aLocation,aV0]);
  135991. end;
  135992. procedure TJSWebGL2RenderingContextBase.uniform2ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint);
  135993. begin
  135994. InvokeJSNoResult('uniform2ui',[aLocation,aV0,aV1]);
  135995. end;
  135996. procedure TJSWebGL2RenderingContextBase.uniform3ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint);
  135997. begin
  135998. InvokeJSNoResult('uniform3ui',[aLocation,aV0,aV1,aV2]);
  135999. end;
  136000. procedure TJSWebGL2RenderingContextBase.uniform4ui(aLocation: IJSWebGLUniformLocation; aV0: TGLuint; aV1: TGLuint; aV2: TGLuint; aV3: TGLuint);
  136001. begin
  136002. InvokeJSNoResult('uniform4ui',[aLocation,aV0,aV1,aV2,aV3]);
  136003. end;
  136004. procedure TJSWebGL2RenderingContextBase.uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136005. begin
  136006. InvokeJSNoResult('uniform1fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136007. end;
  136008. procedure TJSWebGL2RenderingContextBase.uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136009. begin
  136010. InvokeJSNoResult('uniform1fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136011. end;
  136012. procedure TJSWebGL2RenderingContextBase.uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  136013. begin
  136014. InvokeJSNoResult('uniform1fv',[aLocation,aData]);
  136015. end;
  136016. procedure TJSWebGL2RenderingContextBase.uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  136017. begin
  136018. InvokeJSNoResult('uniform1fv',[aLocation,aData]);
  136019. end;
  136020. procedure TJSWebGL2RenderingContextBase.uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136021. begin
  136022. InvokeJSNoResult('uniform1fv',[aLocation,aData,aSrcOffset]);
  136023. end;
  136024. procedure TJSWebGL2RenderingContextBase.uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136025. begin
  136026. InvokeJSNoResult('uniform1fv',[aLocation,aData,aSrcOffset]);
  136027. end;
  136028. procedure TJSWebGL2RenderingContextBase.uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136029. begin
  136030. InvokeJSNoResult('uniform2fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136031. end;
  136032. procedure TJSWebGL2RenderingContextBase.uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136033. begin
  136034. InvokeJSNoResult('uniform2fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136035. end;
  136036. procedure TJSWebGL2RenderingContextBase.uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  136037. begin
  136038. InvokeJSNoResult('uniform2fv',[aLocation,aData]);
  136039. end;
  136040. procedure TJSWebGL2RenderingContextBase.uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  136041. begin
  136042. InvokeJSNoResult('uniform2fv',[aLocation,aData]);
  136043. end;
  136044. procedure TJSWebGL2RenderingContextBase.uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136045. begin
  136046. InvokeJSNoResult('uniform2fv',[aLocation,aData,aSrcOffset]);
  136047. end;
  136048. procedure TJSWebGL2RenderingContextBase.uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136049. begin
  136050. InvokeJSNoResult('uniform2fv',[aLocation,aData,aSrcOffset]);
  136051. end;
  136052. procedure TJSWebGL2RenderingContextBase.uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136053. begin
  136054. InvokeJSNoResult('uniform3fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136055. end;
  136056. procedure TJSWebGL2RenderingContextBase.uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136057. begin
  136058. InvokeJSNoResult('uniform3fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136059. end;
  136060. procedure TJSWebGL2RenderingContextBase.uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  136061. begin
  136062. InvokeJSNoResult('uniform3fv',[aLocation,aData]);
  136063. end;
  136064. procedure TJSWebGL2RenderingContextBase.uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  136065. begin
  136066. InvokeJSNoResult('uniform3fv',[aLocation,aData]);
  136067. end;
  136068. procedure TJSWebGL2RenderingContextBase.uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136069. begin
  136070. InvokeJSNoResult('uniform3fv',[aLocation,aData,aSrcOffset]);
  136071. end;
  136072. procedure TJSWebGL2RenderingContextBase.uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136073. begin
  136074. InvokeJSNoResult('uniform3fv',[aLocation,aData,aSrcOffset]);
  136075. end;
  136076. procedure TJSWebGL2RenderingContextBase.uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136077. begin
  136078. InvokeJSNoResult('uniform4fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136079. end;
  136080. procedure TJSWebGL2RenderingContextBase.uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136081. begin
  136082. InvokeJSNoResult('uniform4fv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136083. end;
  136084. procedure TJSWebGL2RenderingContextBase.uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  136085. begin
  136086. InvokeJSNoResult('uniform4fv',[aLocation,aData]);
  136087. end;
  136088. procedure TJSWebGL2RenderingContextBase.uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  136089. begin
  136090. InvokeJSNoResult('uniform4fv',[aLocation,aData]);
  136091. end;
  136092. procedure TJSWebGL2RenderingContextBase.uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136093. begin
  136094. InvokeJSNoResult('uniform4fv',[aLocation,aData,aSrcOffset]);
  136095. end;
  136096. procedure TJSWebGL2RenderingContextBase.uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136097. begin
  136098. InvokeJSNoResult('uniform4fv',[aLocation,aData,aSrcOffset]);
  136099. end;
  136100. procedure TJSWebGL2RenderingContextBase.uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136101. begin
  136102. InvokeJSNoResult('uniform1iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136103. end;
  136104. procedure TJSWebGL2RenderingContextBase.uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136105. begin
  136106. InvokeJSNoResult('uniform1iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136107. end;
  136108. procedure TJSWebGL2RenderingContextBase.uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  136109. begin
  136110. InvokeJSNoResult('uniform1iv',[aLocation,aData]);
  136111. end;
  136112. procedure TJSWebGL2RenderingContextBase.uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  136113. begin
  136114. InvokeJSNoResult('uniform1iv',[aLocation,aData]);
  136115. end;
  136116. procedure TJSWebGL2RenderingContextBase.uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  136117. begin
  136118. InvokeJSNoResult('uniform1iv',[aLocation,aData,aSrcOffset]);
  136119. end;
  136120. procedure TJSWebGL2RenderingContextBase.uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  136121. begin
  136122. InvokeJSNoResult('uniform1iv',[aLocation,aData,aSrcOffset]);
  136123. end;
  136124. procedure TJSWebGL2RenderingContextBase.uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136125. begin
  136126. InvokeJSNoResult('uniform2iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136127. end;
  136128. procedure TJSWebGL2RenderingContextBase.uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136129. begin
  136130. InvokeJSNoResult('uniform2iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136131. end;
  136132. procedure TJSWebGL2RenderingContextBase.uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  136133. begin
  136134. InvokeJSNoResult('uniform2iv',[aLocation,aData]);
  136135. end;
  136136. procedure TJSWebGL2RenderingContextBase.uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  136137. begin
  136138. InvokeJSNoResult('uniform2iv',[aLocation,aData]);
  136139. end;
  136140. procedure TJSWebGL2RenderingContextBase.uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  136141. begin
  136142. InvokeJSNoResult('uniform2iv',[aLocation,aData,aSrcOffset]);
  136143. end;
  136144. procedure TJSWebGL2RenderingContextBase.uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  136145. begin
  136146. InvokeJSNoResult('uniform2iv',[aLocation,aData,aSrcOffset]);
  136147. end;
  136148. procedure TJSWebGL2RenderingContextBase.uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136149. begin
  136150. InvokeJSNoResult('uniform3iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136151. end;
  136152. procedure TJSWebGL2RenderingContextBase.uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136153. begin
  136154. InvokeJSNoResult('uniform3iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136155. end;
  136156. procedure TJSWebGL2RenderingContextBase.uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  136157. begin
  136158. InvokeJSNoResult('uniform3iv',[aLocation,aData]);
  136159. end;
  136160. procedure TJSWebGL2RenderingContextBase.uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  136161. begin
  136162. InvokeJSNoResult('uniform3iv',[aLocation,aData]);
  136163. end;
  136164. procedure TJSWebGL2RenderingContextBase.uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  136165. begin
  136166. InvokeJSNoResult('uniform3iv',[aLocation,aData,aSrcOffset]);
  136167. end;
  136168. procedure TJSWebGL2RenderingContextBase.uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  136169. begin
  136170. InvokeJSNoResult('uniform3iv',[aLocation,aData,aSrcOffset]);
  136171. end;
  136172. procedure TJSWebGL2RenderingContextBase.uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136173. begin
  136174. InvokeJSNoResult('uniform4iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136175. end;
  136176. procedure TJSWebGL2RenderingContextBase.uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136177. begin
  136178. InvokeJSNoResult('uniform4iv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136179. end;
  136180. procedure TJSWebGL2RenderingContextBase.uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  136181. begin
  136182. InvokeJSNoResult('uniform4iv',[aLocation,aData]);
  136183. end;
  136184. procedure TJSWebGL2RenderingContextBase.uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  136185. begin
  136186. InvokeJSNoResult('uniform4iv',[aLocation,aData]);
  136187. end;
  136188. procedure TJSWebGL2RenderingContextBase.uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray; aSrcOffset: TGLuint);
  136189. begin
  136190. InvokeJSNoResult('uniform4iv',[aLocation,aData,aSrcOffset]);
  136191. end;
  136192. procedure TJSWebGL2RenderingContextBase.uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array; aSrcOffset: TGLuint);
  136193. begin
  136194. InvokeJSNoResult('uniform4iv',[aLocation,aData,aSrcOffset]);
  136195. end;
  136196. procedure TJSWebGL2RenderingContextBase.uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136197. begin
  136198. InvokeJSNoResult('uniform1uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136199. end;
  136200. procedure TJSWebGL2RenderingContextBase.uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136201. begin
  136202. InvokeJSNoResult('uniform1uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136203. end;
  136204. procedure TJSWebGL2RenderingContextBase.uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  136205. begin
  136206. InvokeJSNoResult('uniform1uiv',[aLocation,aData]);
  136207. end;
  136208. procedure TJSWebGL2RenderingContextBase.uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  136209. begin
  136210. InvokeJSNoResult('uniform1uiv',[aLocation,aData]);
  136211. end;
  136212. procedure TJSWebGL2RenderingContextBase.uniform1uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  136213. begin
  136214. InvokeJSNoResult('uniform1uiv',[aLocation,aData,aSrcOffset]);
  136215. end;
  136216. procedure TJSWebGL2RenderingContextBase.uniform1uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  136217. begin
  136218. InvokeJSNoResult('uniform1uiv',[aLocation,aData,aSrcOffset]);
  136219. end;
  136220. procedure TJSWebGL2RenderingContextBase.uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136221. begin
  136222. InvokeJSNoResult('uniform2uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136223. end;
  136224. procedure TJSWebGL2RenderingContextBase.uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136225. begin
  136226. InvokeJSNoResult('uniform2uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136227. end;
  136228. procedure TJSWebGL2RenderingContextBase.uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  136229. begin
  136230. InvokeJSNoResult('uniform2uiv',[aLocation,aData]);
  136231. end;
  136232. procedure TJSWebGL2RenderingContextBase.uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  136233. begin
  136234. InvokeJSNoResult('uniform2uiv',[aLocation,aData]);
  136235. end;
  136236. procedure TJSWebGL2RenderingContextBase.uniform2uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  136237. begin
  136238. InvokeJSNoResult('uniform2uiv',[aLocation,aData,aSrcOffset]);
  136239. end;
  136240. procedure TJSWebGL2RenderingContextBase.uniform2uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  136241. begin
  136242. InvokeJSNoResult('uniform2uiv',[aLocation,aData,aSrcOffset]);
  136243. end;
  136244. procedure TJSWebGL2RenderingContextBase.uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136245. begin
  136246. InvokeJSNoResult('uniform3uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136247. end;
  136248. procedure TJSWebGL2RenderingContextBase.uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136249. begin
  136250. InvokeJSNoResult('uniform3uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136251. end;
  136252. procedure TJSWebGL2RenderingContextBase.uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  136253. begin
  136254. InvokeJSNoResult('uniform3uiv',[aLocation,aData]);
  136255. end;
  136256. procedure TJSWebGL2RenderingContextBase.uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  136257. begin
  136258. InvokeJSNoResult('uniform3uiv',[aLocation,aData]);
  136259. end;
  136260. procedure TJSWebGL2RenderingContextBase.uniform3uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  136261. begin
  136262. InvokeJSNoResult('uniform3uiv',[aLocation,aData,aSrcOffset]);
  136263. end;
  136264. procedure TJSWebGL2RenderingContextBase.uniform3uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  136265. begin
  136266. InvokeJSNoResult('uniform3uiv',[aLocation,aData,aSrcOffset]);
  136267. end;
  136268. procedure TJSWebGL2RenderingContextBase.uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136269. begin
  136270. InvokeJSNoResult('uniform4uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136271. end;
  136272. procedure TJSWebGL2RenderingContextBase.uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136273. begin
  136274. InvokeJSNoResult('uniform4uiv',[aLocation,aData,aSrcOffset,aSrcLength]);
  136275. end;
  136276. procedure TJSWebGL2RenderingContextBase.uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array);
  136277. begin
  136278. InvokeJSNoResult('uniform4uiv',[aLocation,aData]);
  136279. end;
  136280. procedure TJSWebGL2RenderingContextBase.uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray);
  136281. begin
  136282. InvokeJSNoResult('uniform4uiv',[aLocation,aData]);
  136283. end;
  136284. procedure TJSWebGL2RenderingContextBase.uniform4uiv(aLocation: IJSWebGLUniformLocation; aData: IJSUint32Array; aSrcOffset: TGLuint);
  136285. begin
  136286. InvokeJSNoResult('uniform4uiv',[aLocation,aData,aSrcOffset]);
  136287. end;
  136288. procedure TJSWebGL2RenderingContextBase.uniform4uiv(aLocation: IJSWebGLUniformLocation; const aData: TGLuintDynArray; aSrcOffset: TGLuint);
  136289. begin
  136290. InvokeJSNoResult('uniform4uiv',[aLocation,aData,aSrcOffset]);
  136291. end;
  136292. procedure TJSWebGL2RenderingContextBase.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136293. begin
  136294. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136295. end;
  136296. procedure TJSWebGL2RenderingContextBase.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136297. begin
  136298. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136299. end;
  136300. procedure TJSWebGL2RenderingContextBase.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  136301. begin
  136302. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData]);
  136303. end;
  136304. procedure TJSWebGL2RenderingContextBase.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  136305. begin
  136306. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData]);
  136307. end;
  136308. procedure TJSWebGL2RenderingContextBase.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136309. begin
  136310. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136311. end;
  136312. procedure TJSWebGL2RenderingContextBase.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136313. begin
  136314. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136315. end;
  136316. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136317. begin
  136318. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136319. end;
  136320. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136321. begin
  136322. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136323. end;
  136324. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  136325. begin
  136326. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData]);
  136327. end;
  136328. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  136329. begin
  136330. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData]);
  136331. end;
  136332. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136333. begin
  136334. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136335. end;
  136336. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136337. begin
  136338. InvokeJSNoResult('uniformMatrix3x2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136339. end;
  136340. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136341. begin
  136342. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136343. end;
  136344. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136345. begin
  136346. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136347. end;
  136348. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  136349. begin
  136350. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData]);
  136351. end;
  136352. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  136353. begin
  136354. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData]);
  136355. end;
  136356. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136357. begin
  136358. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136359. end;
  136360. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136361. begin
  136362. InvokeJSNoResult('uniformMatrix4x2fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136363. end;
  136364. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136365. begin
  136366. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136367. end;
  136368. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136369. begin
  136370. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136371. end;
  136372. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  136373. begin
  136374. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData]);
  136375. end;
  136376. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  136377. begin
  136378. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData]);
  136379. end;
  136380. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136381. begin
  136382. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136383. end;
  136384. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136385. begin
  136386. InvokeJSNoResult('uniformMatrix2x3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136387. end;
  136388. procedure TJSWebGL2RenderingContextBase.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136389. begin
  136390. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136391. end;
  136392. procedure TJSWebGL2RenderingContextBase.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136393. begin
  136394. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136395. end;
  136396. procedure TJSWebGL2RenderingContextBase.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  136397. begin
  136398. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData]);
  136399. end;
  136400. procedure TJSWebGL2RenderingContextBase.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  136401. begin
  136402. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData]);
  136403. end;
  136404. procedure TJSWebGL2RenderingContextBase.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136405. begin
  136406. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136407. end;
  136408. procedure TJSWebGL2RenderingContextBase.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136409. begin
  136410. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136411. end;
  136412. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136413. begin
  136414. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136415. end;
  136416. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136417. begin
  136418. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136419. end;
  136420. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  136421. begin
  136422. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData]);
  136423. end;
  136424. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  136425. begin
  136426. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData]);
  136427. end;
  136428. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136429. begin
  136430. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136431. end;
  136432. procedure TJSWebGL2RenderingContextBase.uniformMatrix4x3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136433. begin
  136434. InvokeJSNoResult('uniformMatrix4x3fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136435. end;
  136436. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136437. begin
  136438. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136439. end;
  136440. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136441. begin
  136442. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136443. end;
  136444. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  136445. begin
  136446. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData]);
  136447. end;
  136448. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  136449. begin
  136450. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData]);
  136451. end;
  136452. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136453. begin
  136454. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136455. end;
  136456. procedure TJSWebGL2RenderingContextBase.uniformMatrix2x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136457. begin
  136458. InvokeJSNoResult('uniformMatrix2x4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136459. end;
  136460. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136461. begin
  136462. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136463. end;
  136464. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136465. begin
  136466. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136467. end;
  136468. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  136469. begin
  136470. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData]);
  136471. end;
  136472. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  136473. begin
  136474. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData]);
  136475. end;
  136476. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136477. begin
  136478. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136479. end;
  136480. procedure TJSWebGL2RenderingContextBase.uniformMatrix3x4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136481. begin
  136482. InvokeJSNoResult('uniformMatrix3x4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136483. end;
  136484. procedure TJSWebGL2RenderingContextBase.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136485. begin
  136486. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136487. end;
  136488. procedure TJSWebGL2RenderingContextBase.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint; aSrcLength: TGLuint);
  136489. begin
  136490. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData,aSrcOffset,aSrcLength]);
  136491. end;
  136492. procedure TJSWebGL2RenderingContextBase.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  136493. begin
  136494. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData]);
  136495. end;
  136496. procedure TJSWebGL2RenderingContextBase.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  136497. begin
  136498. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData]);
  136499. end;
  136500. procedure TJSWebGL2RenderingContextBase.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray; aSrcOffset: TGLuint);
  136501. begin
  136502. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136503. end;
  136504. procedure TJSWebGL2RenderingContextBase.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array; aSrcOffset: TGLuint);
  136505. begin
  136506. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData,aSrcOffset]);
  136507. end;
  136508. procedure TJSWebGL2RenderingContextBase.vertexAttribI4i(aIndex: TGLuint; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint);
  136509. begin
  136510. InvokeJSNoResult('vertexAttribI4i',[aIndex,aX,aY,aZ,aW]);
  136511. end;
  136512. procedure TJSWebGL2RenderingContextBase.vertexAttribI4iv(aIndex: TGLuint; aValues: IJSInt32Array);
  136513. begin
  136514. InvokeJSNoResult('vertexAttribI4iv',[aIndex,aValues]);
  136515. end;
  136516. procedure TJSWebGL2RenderingContextBase.vertexAttribI4iv(aIndex: TGLuint; const aValues: TGLintDynArray);
  136517. begin
  136518. InvokeJSNoResult('vertexAttribI4iv',[aIndex,aValues]);
  136519. end;
  136520. procedure TJSWebGL2RenderingContextBase.vertexAttribI4ui(aIndex: TGLuint; aX: TGLuint; aY: TGLuint; aZ: TGLuint; aW: TGLuint);
  136521. begin
  136522. InvokeJSNoResult('vertexAttribI4ui',[aIndex,aX,aY,aZ,aW]);
  136523. end;
  136524. procedure TJSWebGL2RenderingContextBase.vertexAttribI4uiv(aIndex: TGLuint; const aValues: TGLuintDynArray);
  136525. begin
  136526. InvokeJSNoResult('vertexAttribI4uiv',[aIndex,aValues]);
  136527. end;
  136528. procedure TJSWebGL2RenderingContextBase.vertexAttribI4uiv(aIndex: TGLuint; aValues: IJSUint32Array);
  136529. begin
  136530. InvokeJSNoResult('vertexAttribI4uiv',[aIndex,aValues]);
  136531. end;
  136532. procedure TJSWebGL2RenderingContextBase.vertexAttribIPointer(aIndex: TGLuint; aSize: TGLint; aType_: TGLenum; aStride: TGLsizei; aOffset: TGLintptr);
  136533. begin
  136534. InvokeJSNoResult('vertexAttribIPointer',[aIndex,aSize,aType_,aStride,aOffset]);
  136535. end;
  136536. procedure TJSWebGL2RenderingContextBase.vertexAttribDivisor(aIndex: TGLuint; aDivisor: TGLuint);
  136537. begin
  136538. InvokeJSNoResult('vertexAttribDivisor',[aIndex,aDivisor]);
  136539. end;
  136540. procedure TJSWebGL2RenderingContextBase.drawArraysInstanced(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei; aInstanceCount: TGLsizei);
  136541. begin
  136542. InvokeJSNoResult('drawArraysInstanced',[aMode,aFirst,aCount,aInstanceCount]);
  136543. end;
  136544. procedure TJSWebGL2RenderingContextBase.drawElementsInstanced(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr; aInstanceCount: TGLsizei);
  136545. begin
  136546. InvokeJSNoResult('drawElementsInstanced',[aMode,aCount,aType_,aOffset,aInstanceCount]);
  136547. end;
  136548. procedure TJSWebGL2RenderingContextBase.drawRangeElements(aMode: TGLenum; aStart: TGLuint; aEnd_: TGLuint; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr);
  136549. begin
  136550. InvokeJSNoResult('drawRangeElements',[aMode,aStart,aEnd_,aCount,aType_,aOffset]);
  136551. end;
  136552. procedure TJSWebGL2RenderingContextBase.readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView);
  136553. begin
  136554. InvokeJSNoResult('readPixels',[aX,aY,aWidth,aHeight,aFormat,aType_,aDstData]);
  136555. end;
  136556. procedure TJSWebGL2RenderingContextBase.readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aOffset: TGLintptr);
  136557. begin
  136558. InvokeJSNoResult('readPixels',[aX,aY,aWidth,aHeight,aFormat,aType_,aOffset]);
  136559. end;
  136560. procedure TJSWebGL2RenderingContextBase.readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aDstData: IJSArrayBufferView; aDstOffset: TGLuint);
  136561. begin
  136562. InvokeJSNoResult('readPixels',[aX,aY,aWidth,aHeight,aFormat,aType_,aDstData,aDstOffset]);
  136563. end;
  136564. procedure TJSWebGL2RenderingContextBase.drawBuffers(const aBuffers: TGLenumDynArray);
  136565. begin
  136566. InvokeJSNoResult('drawBuffers',[aBuffers]);
  136567. end;
  136568. procedure TJSWebGL2RenderingContextBase.clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array; aSrcOffset: TGLuint);
  136569. begin
  136570. InvokeJSNoResult('clearBufferfv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  136571. end;
  136572. procedure TJSWebGL2RenderingContextBase.clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray; aSrcOffset: TGLuint);
  136573. begin
  136574. InvokeJSNoResult('clearBufferfv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  136575. end;
  136576. procedure TJSWebGL2RenderingContextBase.clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLfloatDynArray);
  136577. begin
  136578. InvokeJSNoResult('clearBufferfv',[aBuffer,aDrawbuffer,aValues]);
  136579. end;
  136580. procedure TJSWebGL2RenderingContextBase.clearBufferfv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSFloat32Array);
  136581. begin
  136582. InvokeJSNoResult('clearBufferfv',[aBuffer,aDrawbuffer,aValues]);
  136583. end;
  136584. procedure TJSWebGL2RenderingContextBase.clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array; aSrcOffset: TGLuint);
  136585. begin
  136586. InvokeJSNoResult('clearBufferiv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  136587. end;
  136588. procedure TJSWebGL2RenderingContextBase.clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray; aSrcOffset: TGLuint);
  136589. begin
  136590. InvokeJSNoResult('clearBufferiv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  136591. end;
  136592. procedure TJSWebGL2RenderingContextBase.clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLintDynArray);
  136593. begin
  136594. InvokeJSNoResult('clearBufferiv',[aBuffer,aDrawbuffer,aValues]);
  136595. end;
  136596. procedure TJSWebGL2RenderingContextBase.clearBufferiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSInt32Array);
  136597. begin
  136598. InvokeJSNoResult('clearBufferiv',[aBuffer,aDrawbuffer,aValues]);
  136599. end;
  136600. procedure TJSWebGL2RenderingContextBase.clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray; aSrcOffset: TGLuint);
  136601. begin
  136602. InvokeJSNoResult('clearBufferuiv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  136603. end;
  136604. procedure TJSWebGL2RenderingContextBase.clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array; aSrcOffset: TGLuint);
  136605. begin
  136606. InvokeJSNoResult('clearBufferuiv',[aBuffer,aDrawbuffer,aValues,aSrcOffset]);
  136607. end;
  136608. procedure TJSWebGL2RenderingContextBase.clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; aValues: IJSUint32Array);
  136609. begin
  136610. InvokeJSNoResult('clearBufferuiv',[aBuffer,aDrawbuffer,aValues]);
  136611. end;
  136612. procedure TJSWebGL2RenderingContextBase.clearBufferuiv(aBuffer: TGLenum; aDrawbuffer: TGLint; const aValues: TGLuintDynArray);
  136613. begin
  136614. InvokeJSNoResult('clearBufferuiv',[aBuffer,aDrawbuffer,aValues]);
  136615. end;
  136616. procedure TJSWebGL2RenderingContextBase.clearBufferfi(aBuffer: TGLenum; aDrawbuffer: TGLint; aDepth: TGLfloat; aStencil: TGLint);
  136617. begin
  136618. InvokeJSNoResult('clearBufferfi',[aBuffer,aDrawbuffer,aDepth,aStencil]);
  136619. end;
  136620. function TJSWebGL2RenderingContextBase.createQuery: IJSWebGLQuery;
  136621. begin
  136622. Result:=InvokeJSObjectResult('createQuery',[],TJSWebGLQuery) as IJSWebGLQuery;
  136623. end;
  136624. procedure TJSWebGL2RenderingContextBase.deleteQuery(aQuery: IJSWebGLQuery);
  136625. begin
  136626. InvokeJSNoResult('deleteQuery',[aQuery]);
  136627. end;
  136628. function TJSWebGL2RenderingContextBase.isQuery(aQuery: IJSWebGLQuery): TGLboolean;
  136629. begin
  136630. Result:=InvokeJSBooleanResult('isQuery',[aQuery]);
  136631. end;
  136632. procedure TJSWebGL2RenderingContextBase.beginQuery(aTarget: TGLenum; aQuery: IJSWebGLQuery);
  136633. begin
  136634. InvokeJSNoResult('beginQuery',[aTarget,aQuery]);
  136635. end;
  136636. procedure TJSWebGL2RenderingContextBase.endQuery(aTarget: TGLenum);
  136637. begin
  136638. InvokeJSNoResult('endQuery',[aTarget]);
  136639. end;
  136640. function TJSWebGL2RenderingContextBase.getQuery(aTarget: TGLenum; aPname: TGLenum): Variant;
  136641. begin
  136642. Result:=InvokeJSVariantResult('getQuery',[aTarget,aPname]);
  136643. end;
  136644. function TJSWebGL2RenderingContextBase.getQueryParameter(aQuery: IJSWebGLQuery; aPname: TGLenum): Variant;
  136645. begin
  136646. Result:=InvokeJSVariantResult('getQueryParameter',[aQuery,aPname]);
  136647. end;
  136648. function TJSWebGL2RenderingContextBase.createSampler: IJSWebGLSampler;
  136649. begin
  136650. Result:=InvokeJSObjectResult('createSampler',[],TJSWebGLSampler) as IJSWebGLSampler;
  136651. end;
  136652. procedure TJSWebGL2RenderingContextBase.deleteSampler(aSampler: IJSWebGLSampler);
  136653. begin
  136654. InvokeJSNoResult('deleteSampler',[aSampler]);
  136655. end;
  136656. function TJSWebGL2RenderingContextBase.isSampler(aSampler: IJSWebGLSampler): TGLboolean;
  136657. begin
  136658. Result:=InvokeJSBooleanResult('isSampler',[aSampler]);
  136659. end;
  136660. procedure TJSWebGL2RenderingContextBase.bindSampler(aUnit_: TGLuint; aSampler: IJSWebGLSampler);
  136661. begin
  136662. InvokeJSNoResult('bindSampler',[aUnit_,aSampler]);
  136663. end;
  136664. procedure TJSWebGL2RenderingContextBase.samplerParameteri(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLint);
  136665. begin
  136666. InvokeJSNoResult('samplerParameteri',[aSampler,aPname,aParam]);
  136667. end;
  136668. procedure TJSWebGL2RenderingContextBase.samplerParameterf(aSampler: IJSWebGLSampler; aPname: TGLenum; aParam: TGLfloat);
  136669. begin
  136670. InvokeJSNoResult('samplerParameterf',[aSampler,aPname,aParam]);
  136671. end;
  136672. function TJSWebGL2RenderingContextBase.getSamplerParameter(aSampler: IJSWebGLSampler; aPname: TGLenum): Variant;
  136673. begin
  136674. Result:=InvokeJSVariantResult('getSamplerParameter',[aSampler,aPname]);
  136675. end;
  136676. function TJSWebGL2RenderingContextBase.fenceSync(aCondition: TGLenum; aFlags: TGLbitfield): IJSWebGLSync;
  136677. begin
  136678. Result:=InvokeJSObjectResult('fenceSync',[aCondition,aFlags],TJSWebGLSync) as IJSWebGLSync;
  136679. end;
  136680. function TJSWebGL2RenderingContextBase.isSync(aSync: IJSWebGLSync): TGLboolean;
  136681. begin
  136682. Result:=InvokeJSBooleanResult('isSync',[aSync]);
  136683. end;
  136684. procedure TJSWebGL2RenderingContextBase.deleteSync(aSync: IJSWebGLSync);
  136685. begin
  136686. InvokeJSNoResult('deleteSync',[aSync]);
  136687. end;
  136688. function TJSWebGL2RenderingContextBase.clientWaitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLuint64): TGLenum;
  136689. begin
  136690. Result:=InvokeJSLongIntResult('clientWaitSync',[aSync,aFlags,aTimeout]);
  136691. end;
  136692. procedure TJSWebGL2RenderingContextBase.waitSync(aSync: IJSWebGLSync; aFlags: TGLbitfield; aTimeout: TGLint64);
  136693. begin
  136694. InvokeJSNoResult('waitSync',[aSync,aFlags,aTimeout]);
  136695. end;
  136696. function TJSWebGL2RenderingContextBase.getSyncParameter(aSync: IJSWebGLSync; aPname: TGLenum): Variant;
  136697. begin
  136698. Result:=InvokeJSVariantResult('getSyncParameter',[aSync,aPname]);
  136699. end;
  136700. function TJSWebGL2RenderingContextBase.createTransformFeedback: IJSWebGLTransformFeedback;
  136701. begin
  136702. Result:=InvokeJSObjectResult('createTransformFeedback',[],TJSWebGLTransformFeedback) as IJSWebGLTransformFeedback;
  136703. end;
  136704. procedure TJSWebGL2RenderingContextBase.deleteTransformFeedback(aTf: IJSWebGLTransformFeedback);
  136705. begin
  136706. InvokeJSNoResult('deleteTransformFeedback',[aTf]);
  136707. end;
  136708. function TJSWebGL2RenderingContextBase.isTransformFeedback(aTf: IJSWebGLTransformFeedback): TGLboolean;
  136709. begin
  136710. Result:=InvokeJSBooleanResult('isTransformFeedback',[aTf]);
  136711. end;
  136712. procedure TJSWebGL2RenderingContextBase.bindTransformFeedback(aTarget: TGLenum; aTf: IJSWebGLTransformFeedback);
  136713. begin
  136714. InvokeJSNoResult('bindTransformFeedback',[aTarget,aTf]);
  136715. end;
  136716. procedure TJSWebGL2RenderingContextBase.beginTransformFeedback(aPrimitiveMode: TGLenum);
  136717. begin
  136718. InvokeJSNoResult('beginTransformFeedback',[aPrimitiveMode]);
  136719. end;
  136720. procedure TJSWebGL2RenderingContextBase.endTransformFeedback;
  136721. begin
  136722. InvokeJSNoResult('endTransformFeedback',[]);
  136723. end;
  136724. procedure TJSWebGL2RenderingContextBase.transformFeedbackVaryings(aProgram_: IJSWebGLProgram; const aVaryings: TUnicodeStringDynArray; aBufferMode: TGLenum);
  136725. begin
  136726. InvokeJSNoResult('transformFeedbackVaryings',[aProgram_,aVaryings,aBufferMode]);
  136727. end;
  136728. function TJSWebGL2RenderingContextBase.getTransformFeedbackVarying(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  136729. begin
  136730. Result:=InvokeJSObjectResult('getTransformFeedbackVarying',[aProgram_,aIndex],TJSWebGLActiveInfo) as IJSWebGLActiveInfo;
  136731. end;
  136732. procedure TJSWebGL2RenderingContextBase.pauseTransformFeedback;
  136733. begin
  136734. InvokeJSNoResult('pauseTransformFeedback',[]);
  136735. end;
  136736. procedure TJSWebGL2RenderingContextBase.resumeTransformFeedback;
  136737. begin
  136738. InvokeJSNoResult('resumeTransformFeedback',[]);
  136739. end;
  136740. procedure TJSWebGL2RenderingContextBase.bindBufferBase(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer);
  136741. begin
  136742. InvokeJSNoResult('bindBufferBase',[aTarget,aIndex,aBuffer]);
  136743. end;
  136744. procedure TJSWebGL2RenderingContextBase.bindBufferRange(aTarget: TGLenum; aIndex: TGLuint; aBuffer: IJSWebGLBuffer; aOffset: TGLintptr; aSize: TGLsizeiptr);
  136745. begin
  136746. InvokeJSNoResult('bindBufferRange',[aTarget,aIndex,aBuffer,aOffset,aSize]);
  136747. end;
  136748. function TJSWebGL2RenderingContextBase.getIndexedParameter(aTarget: TGLenum; aIndex: TGLuint): Variant;
  136749. begin
  136750. Result:=InvokeJSVariantResult('getIndexedParameter',[aTarget,aIndex]);
  136751. end;
  136752. function TJSWebGL2RenderingContextBase.getUniformIndices(aProgram_: IJSWebGLProgram; const aUniformNames: TUnicodeStringDynArray): TGLuintDynArray;
  136753. begin
  136754. Result:=InvokeJSObjectResult('getUniformIndices',[aProgram_,aUniformNames],TJSArray) as TGLuintDynArray;
  136755. end;
  136756. function TJSWebGL2RenderingContextBase.getActiveUniforms(aProgram_: IJSWebGLProgram; const aUniformIndices: TGLuintDynArray; aPname: TGLenum): Variant;
  136757. begin
  136758. Result:=InvokeJSVariantResult('getActiveUniforms',[aProgram_,aUniformIndices,aPname]);
  136759. end;
  136760. function TJSWebGL2RenderingContextBase.getUniformBlockIndex(aProgram_: IJSWebGLProgram; const aUniformBlockName: UnicodeString): TGLuint;
  136761. begin
  136762. Result:=InvokeJSLongIntResult('getUniformBlockIndex',[aProgram_,aUniformBlockName]);
  136763. end;
  136764. function TJSWebGL2RenderingContextBase.getActiveUniformBlockParameter(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aPname: TGLenum): Variant;
  136765. begin
  136766. Result:=InvokeJSVariantResult('getActiveUniformBlockParameter',[aProgram_,aUniformBlockIndex,aPname]);
  136767. end;
  136768. function TJSWebGL2RenderingContextBase.getActiveUniformBlockName(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint): UnicodeString;
  136769. begin
  136770. Result:=InvokeJSUnicodeStringResult('getActiveUniformBlockName',[aProgram_,aUniformBlockIndex]);
  136771. end;
  136772. procedure TJSWebGL2RenderingContextBase.uniformBlockBinding(aProgram_: IJSWebGLProgram; aUniformBlockIndex: TGLuint; aUniformBlockBinding: TGLuint);
  136773. begin
  136774. InvokeJSNoResult('uniformBlockBinding',[aProgram_,aUniformBlockIndex,aUniformBlockBinding]);
  136775. end;
  136776. function TJSWebGL2RenderingContextBase.createVertexArray: IJSWebGLVertexArrayObject;
  136777. begin
  136778. Result:=InvokeJSObjectResult('createVertexArray',[],TJSWebGLVertexArrayObject) as IJSWebGLVertexArrayObject;
  136779. end;
  136780. procedure TJSWebGL2RenderingContextBase.deleteVertexArray(aVertexArray: IJSWebGLVertexArrayObject);
  136781. begin
  136782. InvokeJSNoResult('deleteVertexArray',[aVertexArray]);
  136783. end;
  136784. function TJSWebGL2RenderingContextBase.isVertexArray(aVertexArray: IJSWebGLVertexArrayObject): TGLboolean;
  136785. begin
  136786. Result:=InvokeJSBooleanResult('isVertexArray',[aVertexArray]);
  136787. end;
  136788. procedure TJSWebGL2RenderingContextBase.bindVertexArray(aArray_: IJSWebGLVertexArrayObject);
  136789. begin
  136790. InvokeJSNoResult('bindVertexArray',[aArray_]);
  136791. end;
  136792. class function TJSWebGL2RenderingContextBase.JSClassName: UnicodeString;
  136793. begin
  136794. Result:='WebGL2RenderingContextBase';
  136795. end;
  136796. class function TJSWebGL2RenderingContextBase.Cast(const Intf: IJSObject): IJSWebGL2RenderingContextBase;
  136797. begin
  136798. Result:=TJSWebGL2RenderingContextBase.JOBCast(Intf);
  136799. end;
  136800. class function TJSEXT_color_buffer_float.JSClassName: UnicodeString;
  136801. begin
  136802. Result:='EXT_color_buffer_float';
  136803. end;
  136804. class function TJSEXT_color_buffer_float.Cast(const Intf: IJSObject): IJSEXT_color_buffer_float;
  136805. begin
  136806. Result:=TJSEXT_color_buffer_float.JOBCast(Intf);
  136807. end;
  136808. procedure TJSOVR_multiview2.framebufferTextureMultiviewOVR(aTarget: TGLenum; aAttachment: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint; aBaseViewIndex: TGLint; aNumViews: TGLsizei);
  136809. begin
  136810. InvokeJSNoResult('framebufferTextureMultiviewOVR',[aTarget,aAttachment,aTexture,aLevel,aBaseViewIndex,aNumViews]);
  136811. end;
  136812. class function TJSOVR_multiview2.JSClassName: UnicodeString;
  136813. begin
  136814. Result:='OVR_multiview2';
  136815. end;
  136816. class function TJSOVR_multiview2.Cast(const Intf: IJSObject): IJSOVR_multiview2;
  136817. begin
  136818. Result:=TJSOVR_multiview2.JOBCast(Intf);
  136819. end;
  136820. function TJSWebGLContextEvent._GetstatusMessage: UnicodeString;
  136821. begin
  136822. Result:=ReadJSPropertyUnicodeString('statusMessage');
  136823. end;
  136824. constructor TJSWebGLContextEvent.Create(const aType_: UnicodeString; const aEventInit: TJSWebGLContextEventInit);
  136825. begin
  136826. JOBCreate([aType_,aEventInit]);
  136827. end;
  136828. constructor TJSWebGLContextEvent.Create(const aType_: UnicodeString);
  136829. begin
  136830. JOBCreate([aType_]);
  136831. end;
  136832. class function TJSWebGLContextEvent.JSClassName: UnicodeString;
  136833. begin
  136834. Result:='WebGLContextEvent';
  136835. end;
  136836. class function TJSWebGLContextEvent.Cast(const Intf: IJSObject): IJSWebGLContextEvent;
  136837. begin
  136838. Result:=TJSWebGLContextEvent.JOBCast(Intf);
  136839. end;
  136840. function TJSWebGLContextEventInit._GetstatusMessage: UnicodeString;
  136841. begin
  136842. Result:=ReadJSPropertyUnicodeString('statusMessage');
  136843. end;
  136844. procedure TJSWebGLContextEventInit._SetstatusMessage(const aValue : UnicodeString);
  136845. begin
  136846. WriteJSPropertyUnicodeString('statusMessage',aValue);
  136847. end;
  136848. class function TJSWebGLContextEventInit.JSClassName: UnicodeString;
  136849. begin
  136850. Result:='Object';
  136851. end;
  136852. class function TJSWebGLContextEventInit.Cast(const Intf: IJSObject): IJSWebGLContextEventInit;
  136853. begin
  136854. Result:=TJSWebGLContextEventInit.JOBCast(Intf);
  136855. end;
  136856. function TJSWebGLContextAttributes._Getalpha: TGLboolean;
  136857. begin
  136858. Result:=ReadJSPropertyBoolean('alpha');
  136859. end;
  136860. function TJSWebGLContextAttributes._Getdepth: TGLboolean;
  136861. begin
  136862. Result:=ReadJSPropertyBoolean('depth');
  136863. end;
  136864. function TJSWebGLContextAttributes._Getstencil: TGLboolean;
  136865. begin
  136866. Result:=ReadJSPropertyBoolean('stencil');
  136867. end;
  136868. function TJSWebGLContextAttributes._Getantialias: TGLboolean;
  136869. begin
  136870. Result:=ReadJSPropertyBoolean('antialias');
  136871. end;
  136872. function TJSWebGLContextAttributes._GetpremultipliedAlpha: TGLboolean;
  136873. begin
  136874. Result:=ReadJSPropertyBoolean('premultipliedAlpha');
  136875. end;
  136876. function TJSWebGLContextAttributes._GetpreserveDrawingBuffer: TGLboolean;
  136877. begin
  136878. Result:=ReadJSPropertyBoolean('preserveDrawingBuffer');
  136879. end;
  136880. function TJSWebGLContextAttributes._GetfailIfMajorPerformanceCaveat: TGLboolean;
  136881. begin
  136882. Result:=ReadJSPropertyBoolean('failIfMajorPerformanceCaveat');
  136883. end;
  136884. function TJSWebGLContextAttributes._GetpowerPreference: TWebGLPowerPreference;
  136885. begin
  136886. Result:=ReadJSPropertyUnicodeString('powerPreference');
  136887. end;
  136888. function TJSWebGLContextAttributes._GetcolorSpace: TPredefinedColorSpace;
  136889. begin
  136890. Result:=ReadJSPropertyUnicodeString('colorSpace');
  136891. end;
  136892. function TJSWebGLContextAttributes._GetxrCompatible: Boolean;
  136893. begin
  136894. Result:=ReadJSPropertyBoolean('xrCompatible');
  136895. end;
  136896. procedure TJSWebGLContextAttributes._Setalpha(const aValue : TGLboolean);
  136897. begin
  136898. WriteJSPropertyBoolean('alpha',aValue);
  136899. end;
  136900. procedure TJSWebGLContextAttributes._Setdepth(const aValue : TGLboolean);
  136901. begin
  136902. WriteJSPropertyBoolean('depth',aValue);
  136903. end;
  136904. procedure TJSWebGLContextAttributes._Setstencil(const aValue : TGLboolean);
  136905. begin
  136906. WriteJSPropertyBoolean('stencil',aValue);
  136907. end;
  136908. procedure TJSWebGLContextAttributes._Setantialias(const aValue : TGLboolean);
  136909. begin
  136910. WriteJSPropertyBoolean('antialias',aValue);
  136911. end;
  136912. procedure TJSWebGLContextAttributes._SetpremultipliedAlpha(const aValue : TGLboolean);
  136913. begin
  136914. WriteJSPropertyBoolean('premultipliedAlpha',aValue);
  136915. end;
  136916. procedure TJSWebGLContextAttributes._SetpreserveDrawingBuffer(const aValue : TGLboolean);
  136917. begin
  136918. WriteJSPropertyBoolean('preserveDrawingBuffer',aValue);
  136919. end;
  136920. procedure TJSWebGLContextAttributes._SetfailIfMajorPerformanceCaveat(const aValue : TGLboolean);
  136921. begin
  136922. WriteJSPropertyBoolean('failIfMajorPerformanceCaveat',aValue);
  136923. end;
  136924. procedure TJSWebGLContextAttributes._SetpowerPreference(const aValue : TWebGLPowerPreference);
  136925. begin
  136926. WriteJSPropertyUnicodeString('powerPreference',aValue);
  136927. end;
  136928. procedure TJSWebGLContextAttributes._SetcolorSpace(const aValue : TPredefinedColorSpace);
  136929. begin
  136930. WriteJSPropertyUnicodeString('colorSpace',aValue);
  136931. end;
  136932. procedure TJSWebGLContextAttributes._SetxrCompatible(const aValue : Boolean);
  136933. begin
  136934. WriteJSPropertyBoolean('xrCompatible',aValue);
  136935. end;
  136936. class function TJSWebGLContextAttributes.JSClassName: UnicodeString;
  136937. begin
  136938. Result:='Object';
  136939. end;
  136940. class function TJSWebGLContextAttributes.Cast(const Intf: IJSObject): IJSWebGLContextAttributes;
  136941. begin
  136942. Result:=TJSWebGLContextAttributes.JOBCast(Intf);
  136943. end;
  136944. class function TJSWebGLBuffer.JSClassName: UnicodeString;
  136945. begin
  136946. Result:='WebGLBuffer';
  136947. end;
  136948. class function TJSWebGLBuffer.Cast(const Intf: IJSObject): IJSWebGLBuffer;
  136949. begin
  136950. Result:=TJSWebGLBuffer.JOBCast(Intf);
  136951. end;
  136952. class function TJSWebGLFramebuffer.JSClassName: UnicodeString;
  136953. begin
  136954. Result:='WebGLFramebuffer';
  136955. end;
  136956. class function TJSWebGLFramebuffer.Cast(const Intf: IJSObject): IJSWebGLFramebuffer;
  136957. begin
  136958. Result:=TJSWebGLFramebuffer.JOBCast(Intf);
  136959. end;
  136960. class function TJSWebGLProgram.JSClassName: UnicodeString;
  136961. begin
  136962. Result:='WebGLProgram';
  136963. end;
  136964. class function TJSWebGLProgram.Cast(const Intf: IJSObject): IJSWebGLProgram;
  136965. begin
  136966. Result:=TJSWebGLProgram.JOBCast(Intf);
  136967. end;
  136968. class function TJSWebGLRenderbuffer.JSClassName: UnicodeString;
  136969. begin
  136970. Result:='WebGLRenderbuffer';
  136971. end;
  136972. class function TJSWebGLRenderbuffer.Cast(const Intf: IJSObject): IJSWebGLRenderbuffer;
  136973. begin
  136974. Result:=TJSWebGLRenderbuffer.JOBCast(Intf);
  136975. end;
  136976. class function TJSWebGLShader.JSClassName: UnicodeString;
  136977. begin
  136978. Result:='WebGLShader';
  136979. end;
  136980. class function TJSWebGLShader.Cast(const Intf: IJSObject): IJSWebGLShader;
  136981. begin
  136982. Result:=TJSWebGLShader.JOBCast(Intf);
  136983. end;
  136984. class function TJSWebGLTexture.JSClassName: UnicodeString;
  136985. begin
  136986. Result:='WebGLTexture';
  136987. end;
  136988. class function TJSWebGLTexture.Cast(const Intf: IJSObject): IJSWebGLTexture;
  136989. begin
  136990. Result:=TJSWebGLTexture.JOBCast(Intf);
  136991. end;
  136992. class function TJSWebGLUniformLocation.JSClassName: UnicodeString;
  136993. begin
  136994. Result:='WebGLUniformLocation';
  136995. end;
  136996. class function TJSWebGLUniformLocation.Cast(const Intf: IJSObject): IJSWebGLUniformLocation;
  136997. begin
  136998. Result:=TJSWebGLUniformLocation.JOBCast(Intf);
  136999. end;
  137000. class function TJSWebGLVertexArrayObject.JSClassName: UnicodeString;
  137001. begin
  137002. Result:='WebGLVertexArrayObject';
  137003. end;
  137004. class function TJSWebGLVertexArrayObject.Cast(const Intf: IJSObject): IJSWebGLVertexArrayObject;
  137005. begin
  137006. Result:=TJSWebGLVertexArrayObject.JOBCast(Intf);
  137007. end;
  137008. function TJSWebGLActiveInfo._Getsize: TGLint;
  137009. begin
  137010. Result:=ReadJSPropertyLongInt('size');
  137011. end;
  137012. function TJSWebGLActiveInfo._Gettype_: TGLenum;
  137013. begin
  137014. Result:=ReadJSPropertyInt64('type');
  137015. end;
  137016. function TJSWebGLActiveInfo._Getname: UnicodeString;
  137017. begin
  137018. Result:=ReadJSPropertyUnicodeString('name');
  137019. end;
  137020. class function TJSWebGLActiveInfo.JSClassName: UnicodeString;
  137021. begin
  137022. Result:='WebGLActiveInfo';
  137023. end;
  137024. class function TJSWebGLActiveInfo.Cast(const Intf: IJSObject): IJSWebGLActiveInfo;
  137025. begin
  137026. Result:=TJSWebGLActiveInfo.JOBCast(Intf);
  137027. end;
  137028. function TJSWebGLShaderPrecisionFormat._GetrangeMin: TGLint;
  137029. begin
  137030. Result:=ReadJSPropertyLongInt('rangeMin');
  137031. end;
  137032. function TJSWebGLShaderPrecisionFormat._GetrangeMax: TGLint;
  137033. begin
  137034. Result:=ReadJSPropertyLongInt('rangeMax');
  137035. end;
  137036. function TJSWebGLShaderPrecisionFormat._Getprecision: TGLint;
  137037. begin
  137038. Result:=ReadJSPropertyLongInt('precision');
  137039. end;
  137040. class function TJSWebGLShaderPrecisionFormat.JSClassName: UnicodeString;
  137041. begin
  137042. Result:='WebGLShaderPrecisionFormat';
  137043. end;
  137044. class function TJSWebGLShaderPrecisionFormat.Cast(const Intf: IJSObject): IJSWebGLShaderPrecisionFormat;
  137045. begin
  137046. Result:=TJSWebGLShaderPrecisionFormat.JOBCast(Intf);
  137047. end;
  137048. function TJSWebGLRenderingContextBase._Getcanvas: TCanvasSource;
  137049. begin
  137050. Result:=ReadJSPropertyVariant('canvas');
  137051. end;
  137052. function TJSWebGLRenderingContextBase._GetdrawingBufferWidth: TGLsizei;
  137053. begin
  137054. Result:=ReadJSPropertyLongInt('drawingBufferWidth');
  137055. end;
  137056. function TJSWebGLRenderingContextBase._GetdrawingBufferHeight: TGLsizei;
  137057. begin
  137058. Result:=ReadJSPropertyLongInt('drawingBufferHeight');
  137059. end;
  137060. function TJSWebGLRenderingContextBase.getContextAttributes: TJSWebGLContextAttributes;
  137061. begin
  137062. Result:=InvokeJSObjectResult('getContextAttributes',[],TJSWebGLContextAttributes) as TJSWebGLContextAttributes;
  137063. end;
  137064. function TJSWebGLRenderingContextBase.isContextLost: Boolean;
  137065. begin
  137066. Result:=InvokeJSBooleanResult('isContextLost',[]);
  137067. end;
  137068. function TJSWebGLRenderingContextBase.getSupportedExtensions: TUnicodeStringDynArray;
  137069. begin
  137070. Result:=InvokeJSObjectResult('getSupportedExtensions',[],TJSArray) as TUnicodeStringDynArray;
  137071. end;
  137072. function TJSWebGLRenderingContextBase.getExtension(const aName: UnicodeString): IJSObject;
  137073. begin
  137074. Result:=InvokeJSObjectResult('getExtension',[aName],TJSObject) as IJSObject;
  137075. end;
  137076. procedure TJSWebGLRenderingContextBase.activeTexture(aTexture: TGLenum);
  137077. begin
  137078. InvokeJSNoResult('activeTexture',[aTexture]);
  137079. end;
  137080. procedure TJSWebGLRenderingContextBase.attachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader);
  137081. begin
  137082. InvokeJSNoResult('attachShader',[aProgram_,aShader]);
  137083. end;
  137084. procedure TJSWebGLRenderingContextBase.bindAttribLocation(aProgram_: IJSWebGLProgram; aIndex: TGLuint; const aName: UnicodeString);
  137085. begin
  137086. InvokeJSNoResult('bindAttribLocation',[aProgram_,aIndex,aName]);
  137087. end;
  137088. procedure TJSWebGLRenderingContextBase.bindBuffer(aTarget: TGLenum; aBuffer: IJSWebGLBuffer);
  137089. begin
  137090. InvokeJSNoResult('bindBuffer',[aTarget,aBuffer]);
  137091. end;
  137092. procedure TJSWebGLRenderingContextBase.bindFramebuffer(aTarget: TGLenum; aFramebuffer: IJSWebGLFramebuffer);
  137093. begin
  137094. InvokeJSNoResult('bindFramebuffer',[aTarget,aFramebuffer]);
  137095. end;
  137096. procedure TJSWebGLRenderingContextBase.bindRenderbuffer(aTarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer);
  137097. begin
  137098. InvokeJSNoResult('bindRenderbuffer',[aTarget,aRenderbuffer]);
  137099. end;
  137100. procedure TJSWebGLRenderingContextBase.bindTexture(aTarget: TGLenum; aTexture: IJSWebGLTexture);
  137101. begin
  137102. InvokeJSNoResult('bindTexture',[aTarget,aTexture]);
  137103. end;
  137104. procedure TJSWebGLRenderingContextBase.blendColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat);
  137105. begin
  137106. InvokeJSNoResult('blendColor',[aRed,aGreen,aBlue,aAlpha]);
  137107. end;
  137108. procedure TJSWebGLRenderingContextBase.blendEquation(aMode: TGLenum);
  137109. begin
  137110. InvokeJSNoResult('blendEquation',[aMode]);
  137111. end;
  137112. procedure TJSWebGLRenderingContextBase.blendEquationSeparate(aModeRGB: TGLenum; aModeAlpha: TGLenum);
  137113. begin
  137114. InvokeJSNoResult('blendEquationSeparate',[aModeRGB,aModeAlpha]);
  137115. end;
  137116. procedure TJSWebGLRenderingContextBase.blendFunc(aSfactor: TGLenum; aDfactor: TGLenum);
  137117. begin
  137118. InvokeJSNoResult('blendFunc',[aSfactor,aDfactor]);
  137119. end;
  137120. procedure TJSWebGLRenderingContextBase.blendFuncSeparate(aSrcRGB: TGLenum; aDstRGB: TGLenum; aSrcAlpha: TGLenum; aDstAlpha: TGLenum);
  137121. begin
  137122. InvokeJSNoResult('blendFuncSeparate',[aSrcRGB,aDstRGB,aSrcAlpha,aDstAlpha]);
  137123. end;
  137124. function TJSWebGLRenderingContextBase.checkFramebufferStatus(aTarget: TGLenum): TGLenum;
  137125. begin
  137126. Result:=InvokeJSLongIntResult('checkFramebufferStatus',[aTarget]);
  137127. end;
  137128. procedure TJSWebGLRenderingContextBase.clear(aMask: TGLbitfield);
  137129. begin
  137130. InvokeJSNoResult('clear',[aMask]);
  137131. end;
  137132. procedure TJSWebGLRenderingContextBase.clearColor(aRed: TGLfloat; aGreen: TGLfloat; aBlue: TGLfloat; aAlpha: TGLfloat);
  137133. begin
  137134. InvokeJSNoResult('clearColor',[aRed,aGreen,aBlue,aAlpha]);
  137135. end;
  137136. procedure TJSWebGLRenderingContextBase.clearDepth(aDepth: TGLclampf);
  137137. begin
  137138. InvokeJSNoResult('clearDepth',[aDepth]);
  137139. end;
  137140. procedure TJSWebGLRenderingContextBase.clearStencil(aS_: TGLint);
  137141. begin
  137142. InvokeJSNoResult('clearStencil',[aS_]);
  137143. end;
  137144. procedure TJSWebGLRenderingContextBase.colorMask(aRed: TGLboolean; aGreen: TGLboolean; aBlue: TGLboolean; aAlpha: TGLboolean);
  137145. begin
  137146. InvokeJSNoResult('colorMask',[aRed,aGreen,aBlue,aAlpha]);
  137147. end;
  137148. procedure TJSWebGLRenderingContextBase.compileShader(aShader: IJSWebGLShader);
  137149. begin
  137150. InvokeJSNoResult('compileShader',[aShader]);
  137151. end;
  137152. procedure TJSWebGLRenderingContextBase.copyTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint);
  137153. begin
  137154. InvokeJSNoResult('copyTexImage2D',[aTarget,aLevel,aInternalformat,aX,aY,aWidth,aHeight,aBorder]);
  137155. end;
  137156. procedure TJSWebGLRenderingContextBase.copyTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  137157. begin
  137158. InvokeJSNoResult('copyTexSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aX,aY,aWidth,aHeight]);
  137159. end;
  137160. function TJSWebGLRenderingContextBase.createBuffer: IJSWebGLBuffer;
  137161. begin
  137162. Result:=InvokeJSObjectResult('createBuffer',[],TJSWebGLBuffer) as IJSWebGLBuffer;
  137163. end;
  137164. function TJSWebGLRenderingContextBase.createFramebuffer: IJSWebGLFramebuffer;
  137165. begin
  137166. Result:=InvokeJSObjectResult('createFramebuffer',[],TJSWebGLFramebuffer) as IJSWebGLFramebuffer;
  137167. end;
  137168. function TJSWebGLRenderingContextBase.createProgram: IJSWebGLProgram;
  137169. begin
  137170. Result:=InvokeJSObjectResult('createProgram',[],TJSWebGLProgram) as IJSWebGLProgram;
  137171. end;
  137172. function TJSWebGLRenderingContextBase.createRenderbuffer: IJSWebGLRenderbuffer;
  137173. begin
  137174. Result:=InvokeJSObjectResult('createRenderbuffer',[],TJSWebGLRenderbuffer) as IJSWebGLRenderbuffer;
  137175. end;
  137176. function TJSWebGLRenderingContextBase.createShader(aType_: TGLenum): IJSWebGLShader;
  137177. begin
  137178. Result:=InvokeJSObjectResult('createShader',[aType_],TJSWebGLShader) as IJSWebGLShader;
  137179. end;
  137180. function TJSWebGLRenderingContextBase.createTexture: IJSWebGLTexture;
  137181. begin
  137182. Result:=InvokeJSObjectResult('createTexture',[],TJSWebGLTexture) as IJSWebGLTexture;
  137183. end;
  137184. procedure TJSWebGLRenderingContextBase.cullFace(aMode: TGLenum);
  137185. begin
  137186. InvokeJSNoResult('cullFace',[aMode]);
  137187. end;
  137188. procedure TJSWebGLRenderingContextBase.deleteBuffer(aBuffer: IJSWebGLBuffer);
  137189. begin
  137190. InvokeJSNoResult('deleteBuffer',[aBuffer]);
  137191. end;
  137192. procedure TJSWebGLRenderingContextBase.deleteFramebuffer(aFramebuffer: IJSWebGLFramebuffer);
  137193. begin
  137194. InvokeJSNoResult('deleteFramebuffer',[aFramebuffer]);
  137195. end;
  137196. procedure TJSWebGLRenderingContextBase.deleteProgram(aProgram_: IJSWebGLProgram);
  137197. begin
  137198. InvokeJSNoResult('deleteProgram',[aProgram_]);
  137199. end;
  137200. procedure TJSWebGLRenderingContextBase.deleteRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer);
  137201. begin
  137202. InvokeJSNoResult('deleteRenderbuffer',[aRenderbuffer]);
  137203. end;
  137204. procedure TJSWebGLRenderingContextBase.deleteShader(aShader: IJSWebGLShader);
  137205. begin
  137206. InvokeJSNoResult('deleteShader',[aShader]);
  137207. end;
  137208. procedure TJSWebGLRenderingContextBase.deleteTexture(aTexture: IJSWebGLTexture);
  137209. begin
  137210. InvokeJSNoResult('deleteTexture',[aTexture]);
  137211. end;
  137212. procedure TJSWebGLRenderingContextBase.depthFunc(aFunc: TGLenum);
  137213. begin
  137214. InvokeJSNoResult('depthFunc',[aFunc]);
  137215. end;
  137216. procedure TJSWebGLRenderingContextBase.depthMask(aFlag: TGLboolean);
  137217. begin
  137218. InvokeJSNoResult('depthMask',[aFlag]);
  137219. end;
  137220. procedure TJSWebGLRenderingContextBase.depthRange(aZNear: TGLclampf; aZFar: TGLclampf);
  137221. begin
  137222. InvokeJSNoResult('depthRange',[aZNear,aZFar]);
  137223. end;
  137224. procedure TJSWebGLRenderingContextBase.detachShader(aProgram_: IJSWebGLProgram; aShader: IJSWebGLShader);
  137225. begin
  137226. InvokeJSNoResult('detachShader',[aProgram_,aShader]);
  137227. end;
  137228. procedure TJSWebGLRenderingContextBase.disable(aCap: TGLenum);
  137229. begin
  137230. InvokeJSNoResult('disable',[aCap]);
  137231. end;
  137232. procedure TJSWebGLRenderingContextBase.disableVertexAttribArray(aIndex: TGLuint);
  137233. begin
  137234. InvokeJSNoResult('disableVertexAttribArray',[aIndex]);
  137235. end;
  137236. procedure TJSWebGLRenderingContextBase.drawArrays(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei);
  137237. begin
  137238. InvokeJSNoResult('drawArrays',[aMode,aFirst,aCount]);
  137239. end;
  137240. procedure TJSWebGLRenderingContextBase.drawElements(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr);
  137241. begin
  137242. InvokeJSNoResult('drawElements',[aMode,aCount,aType_,aOffset]);
  137243. end;
  137244. procedure TJSWebGLRenderingContextBase.enable(aCap: TGLenum);
  137245. begin
  137246. InvokeJSNoResult('enable',[aCap]);
  137247. end;
  137248. procedure TJSWebGLRenderingContextBase.enableVertexAttribArray(aIndex: TGLuint);
  137249. begin
  137250. InvokeJSNoResult('enableVertexAttribArray',[aIndex]);
  137251. end;
  137252. procedure TJSWebGLRenderingContextBase.finish;
  137253. begin
  137254. InvokeJSNoResult('finish',[]);
  137255. end;
  137256. procedure TJSWebGLRenderingContextBase.flush;
  137257. begin
  137258. InvokeJSNoResult('flush',[]);
  137259. end;
  137260. procedure TJSWebGLRenderingContextBase.framebufferRenderbuffer(aTarget: TGLenum; aAttachment: TGLenum; aRenderbuffertarget: TGLenum; aRenderbuffer: IJSWebGLRenderbuffer);
  137261. begin
  137262. InvokeJSNoResult('framebufferRenderbuffer',[aTarget,aAttachment,aRenderbuffertarget,aRenderbuffer]);
  137263. end;
  137264. procedure TJSWebGLRenderingContextBase.framebufferTexture2D(aTarget: TGLenum; aAttachment: TGLenum; aTextarget: TGLenum; aTexture: IJSWebGLTexture; aLevel: TGLint);
  137265. begin
  137266. InvokeJSNoResult('framebufferTexture2D',[aTarget,aAttachment,aTextarget,aTexture,aLevel]);
  137267. end;
  137268. procedure TJSWebGLRenderingContextBase.frontFace(aMode: TGLenum);
  137269. begin
  137270. InvokeJSNoResult('frontFace',[aMode]);
  137271. end;
  137272. procedure TJSWebGLRenderingContextBase.generateMipmap(aTarget: TGLenum);
  137273. begin
  137274. InvokeJSNoResult('generateMipmap',[aTarget]);
  137275. end;
  137276. function TJSWebGLRenderingContextBase.getActiveAttrib(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  137277. begin
  137278. Result:=InvokeJSObjectResult('getActiveAttrib',[aProgram_,aIndex],TJSWebGLActiveInfo) as IJSWebGLActiveInfo;
  137279. end;
  137280. function TJSWebGLRenderingContextBase.getActiveUniform(aProgram_: IJSWebGLProgram; aIndex: TGLuint): IJSWebGLActiveInfo;
  137281. begin
  137282. Result:=InvokeJSObjectResult('getActiveUniform',[aProgram_,aIndex],TJSWebGLActiveInfo) as IJSWebGLActiveInfo;
  137283. end;
  137284. function TJSWebGLRenderingContextBase.getAttachedShaders(aProgram_: IJSWebGLProgram): TJSWebGLShaderDynArray;
  137285. begin
  137286. Result:=InvokeJSObjectResult('getAttachedShaders',[aProgram_],TJSArray) as TJSWebGLShaderDynArray;
  137287. end;
  137288. function TJSWebGLRenderingContextBase.getAttribLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): TGLint;
  137289. begin
  137290. Result:=InvokeJSLongIntResult('getAttribLocation',[aProgram_,aName]);
  137291. end;
  137292. function TJSWebGLRenderingContextBase.getBufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  137293. begin
  137294. Result:=InvokeJSVariantResult('getBufferParameter',[aTarget,aPname]);
  137295. end;
  137296. function TJSWebGLRenderingContextBase.getParameter(aPname: TGLenum): Variant;
  137297. begin
  137298. Result:=InvokeJSVariantResult('getParameter',[aPname]);
  137299. end;
  137300. function TJSWebGLRenderingContextBase.getError: TGLenum;
  137301. begin
  137302. Result:=InvokeJSLongIntResult('getError',[]);
  137303. end;
  137304. function TJSWebGLRenderingContextBase.getFramebufferAttachmentParameter(aTarget: TGLenum; aAttachment: TGLenum; aPname: TGLenum): Variant;
  137305. begin
  137306. Result:=InvokeJSVariantResult('getFramebufferAttachmentParameter',[aTarget,aAttachment,aPname]);
  137307. end;
  137308. function TJSWebGLRenderingContextBase.getProgramParameter(aProgram_: IJSWebGLProgram; aPname: TGLenum): Variant;
  137309. begin
  137310. Result:=InvokeJSVariantResult('getProgramParameter',[aProgram_,aPname]);
  137311. end;
  137312. function TJSWebGLRenderingContextBase.getProgramInfoLog(aProgram_: IJSWebGLProgram): UnicodeString;
  137313. begin
  137314. Result:=InvokeJSUnicodeStringResult('getProgramInfoLog',[aProgram_]);
  137315. end;
  137316. function TJSWebGLRenderingContextBase.getRenderbufferParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  137317. begin
  137318. Result:=InvokeJSVariantResult('getRenderbufferParameter',[aTarget,aPname]);
  137319. end;
  137320. function TJSWebGLRenderingContextBase.getShaderParameter(aShader: IJSWebGLShader; aPname: TGLenum): Variant;
  137321. begin
  137322. Result:=InvokeJSVariantResult('getShaderParameter',[aShader,aPname]);
  137323. end;
  137324. function TJSWebGLRenderingContextBase.getShaderPrecisionFormat(aShadertype: TGLenum; aPrecisiontype: TGLenum): IJSWebGLShaderPrecisionFormat;
  137325. begin
  137326. Result:=InvokeJSObjectResult('getShaderPrecisionFormat',[aShadertype,aPrecisiontype],TJSWebGLShaderPrecisionFormat) as IJSWebGLShaderPrecisionFormat;
  137327. end;
  137328. function TJSWebGLRenderingContextBase.getShaderInfoLog(aShader: IJSWebGLShader): UnicodeString;
  137329. begin
  137330. Result:=InvokeJSUnicodeStringResult('getShaderInfoLog',[aShader]);
  137331. end;
  137332. function TJSWebGLRenderingContextBase.getShaderSource(aShader: IJSWebGLShader): UnicodeString;
  137333. begin
  137334. Result:=InvokeJSUnicodeStringResult('getShaderSource',[aShader]);
  137335. end;
  137336. function TJSWebGLRenderingContextBase.getTexParameter(aTarget: TGLenum; aPname: TGLenum): Variant;
  137337. begin
  137338. Result:=InvokeJSVariantResult('getTexParameter',[aTarget,aPname]);
  137339. end;
  137340. function TJSWebGLRenderingContextBase.getUniform(aProgram_: IJSWebGLProgram; aLocation: IJSWebGLUniformLocation): Variant;
  137341. begin
  137342. Result:=InvokeJSVariantResult('getUniform',[aProgram_,aLocation]);
  137343. end;
  137344. function TJSWebGLRenderingContextBase.getUniformLocation(aProgram_: IJSWebGLProgram; const aName: UnicodeString): IJSWebGLUniformLocation;
  137345. begin
  137346. Result:=InvokeJSObjectResult('getUniformLocation',[aProgram_,aName],TJSWebGLUniformLocation) as IJSWebGLUniformLocation;
  137347. end;
  137348. function TJSWebGLRenderingContextBase.getVertexAttrib(aIndex: TGLuint; aPname: TGLenum): Variant;
  137349. begin
  137350. Result:=InvokeJSVariantResult('getVertexAttrib',[aIndex,aPname]);
  137351. end;
  137352. function TJSWebGLRenderingContextBase.getVertexAttribOffset(aIndex: TGLuint; aPname: TGLenum): TGLintptr;
  137353. begin
  137354. Result:=InvokeJSMaxIntResult('getVertexAttribOffset',[aIndex,aPname]);
  137355. end;
  137356. procedure TJSWebGLRenderingContextBase.hint(aTarget: TGLenum; aMode: TGLenum);
  137357. begin
  137358. InvokeJSNoResult('hint',[aTarget,aMode]);
  137359. end;
  137360. function TJSWebGLRenderingContextBase.isBuffer(aBuffer: IJSWebGLBuffer): TGLboolean;
  137361. begin
  137362. Result:=InvokeJSBooleanResult('isBuffer',[aBuffer]);
  137363. end;
  137364. function TJSWebGLRenderingContextBase.isEnabled(aCap: TGLenum): TGLboolean;
  137365. begin
  137366. Result:=InvokeJSBooleanResult('isEnabled',[aCap]);
  137367. end;
  137368. function TJSWebGLRenderingContextBase.isFramebuffer(aFramebuffer: IJSWebGLFramebuffer): TGLboolean;
  137369. begin
  137370. Result:=InvokeJSBooleanResult('isFramebuffer',[aFramebuffer]);
  137371. end;
  137372. function TJSWebGLRenderingContextBase.isProgram(aProgram_: IJSWebGLProgram): TGLboolean;
  137373. begin
  137374. Result:=InvokeJSBooleanResult('isProgram',[aProgram_]);
  137375. end;
  137376. function TJSWebGLRenderingContextBase.isRenderbuffer(aRenderbuffer: IJSWebGLRenderbuffer): TGLboolean;
  137377. begin
  137378. Result:=InvokeJSBooleanResult('isRenderbuffer',[aRenderbuffer]);
  137379. end;
  137380. function TJSWebGLRenderingContextBase.isShader(aShader: IJSWebGLShader): TGLboolean;
  137381. begin
  137382. Result:=InvokeJSBooleanResult('isShader',[aShader]);
  137383. end;
  137384. function TJSWebGLRenderingContextBase.isTexture(aTexture: IJSWebGLTexture): TGLboolean;
  137385. begin
  137386. Result:=InvokeJSBooleanResult('isTexture',[aTexture]);
  137387. end;
  137388. procedure TJSWebGLRenderingContextBase.lineWidth(aWidth: TGLfloat);
  137389. begin
  137390. InvokeJSNoResult('lineWidth',[aWidth]);
  137391. end;
  137392. procedure TJSWebGLRenderingContextBase.linkProgram(aProgram_: IJSWebGLProgram);
  137393. begin
  137394. InvokeJSNoResult('linkProgram',[aProgram_]);
  137395. end;
  137396. procedure TJSWebGLRenderingContextBase.pixelStorei(aPname: TGLenum; aParam: TGLint);
  137397. begin
  137398. InvokeJSNoResult('pixelStorei',[aPname,aParam]);
  137399. end;
  137400. procedure TJSWebGLRenderingContextBase.polygonOffset(aFactor: TGLfloat; aUnits: TGLfloat);
  137401. begin
  137402. InvokeJSNoResult('polygonOffset',[aFactor,aUnits]);
  137403. end;
  137404. procedure TJSWebGLRenderingContextBase.renderbufferStorage(aTarget: TGLenum; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei);
  137405. begin
  137406. InvokeJSNoResult('renderbufferStorage',[aTarget,aInternalformat,aWidth,aHeight]);
  137407. end;
  137408. procedure TJSWebGLRenderingContextBase.sampleCoverage(aValue: TGLclampf; aInvert: TGLboolean);
  137409. begin
  137410. InvokeJSNoResult('sampleCoverage',[aValue,aInvert]);
  137411. end;
  137412. procedure TJSWebGLRenderingContextBase.scissor(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  137413. begin
  137414. InvokeJSNoResult('scissor',[aX,aY,aWidth,aHeight]);
  137415. end;
  137416. procedure TJSWebGLRenderingContextBase.shaderSource(aShader: IJSWebGLShader; const aSource: UnicodeString);
  137417. begin
  137418. InvokeJSNoResult('shaderSource',[aShader,aSource]);
  137419. end;
  137420. procedure TJSWebGLRenderingContextBase.stencilFunc(aFunc: TGLenum; aRef: TGLint; aMask: TGLuint);
  137421. begin
  137422. InvokeJSNoResult('stencilFunc',[aFunc,aRef,aMask]);
  137423. end;
  137424. procedure TJSWebGLRenderingContextBase.stencilFuncSeparate(aFace: TGLenum; aFunc: TGLenum; aRef: TGLint; aMask: TGLuint);
  137425. begin
  137426. InvokeJSNoResult('stencilFuncSeparate',[aFace,aFunc,aRef,aMask]);
  137427. end;
  137428. procedure TJSWebGLRenderingContextBase.stencilMask(aMask: TGLuint);
  137429. begin
  137430. InvokeJSNoResult('stencilMask',[aMask]);
  137431. end;
  137432. procedure TJSWebGLRenderingContextBase.stencilMaskSeparate(aFace: TGLenum; aMask: TGLuint);
  137433. begin
  137434. InvokeJSNoResult('stencilMaskSeparate',[aFace,aMask]);
  137435. end;
  137436. procedure TJSWebGLRenderingContextBase.stencilOp(aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum);
  137437. begin
  137438. InvokeJSNoResult('stencilOp',[aFail,aZfail,aZpass]);
  137439. end;
  137440. procedure TJSWebGLRenderingContextBase.stencilOpSeparate(aFace: TGLenum; aFail: TGLenum; aZfail: TGLenum; aZpass: TGLenum);
  137441. begin
  137442. InvokeJSNoResult('stencilOpSeparate',[aFace,aFail,aZfail,aZpass]);
  137443. end;
  137444. procedure TJSWebGLRenderingContextBase.texParameterf(aTarget: TGLenum; aPname: TGLenum; aParam: TGLfloat);
  137445. begin
  137446. InvokeJSNoResult('texParameterf',[aTarget,aPname,aParam]);
  137447. end;
  137448. procedure TJSWebGLRenderingContextBase.texParameteri(aTarget: TGLenum; aPname: TGLenum; aParam: TGLint);
  137449. begin
  137450. InvokeJSNoResult('texParameteri',[aTarget,aPname,aParam]);
  137451. end;
  137452. procedure TJSWebGLRenderingContextBase.uniform1f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat);
  137453. begin
  137454. InvokeJSNoResult('uniform1f',[aLocation,aX]);
  137455. end;
  137456. procedure TJSWebGLRenderingContextBase.uniform2f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat);
  137457. begin
  137458. InvokeJSNoResult('uniform2f',[aLocation,aX,aY]);
  137459. end;
  137460. procedure TJSWebGLRenderingContextBase.uniform3f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat);
  137461. begin
  137462. InvokeJSNoResult('uniform3f',[aLocation,aX,aY,aZ]);
  137463. end;
  137464. procedure TJSWebGLRenderingContextBase.uniform4f(aLocation: IJSWebGLUniformLocation; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat);
  137465. begin
  137466. InvokeJSNoResult('uniform4f',[aLocation,aX,aY,aZ,aW]);
  137467. end;
  137468. procedure TJSWebGLRenderingContextBase.uniform1i(aLocation: IJSWebGLUniformLocation; aX: TGLint);
  137469. begin
  137470. InvokeJSNoResult('uniform1i',[aLocation,aX]);
  137471. end;
  137472. procedure TJSWebGLRenderingContextBase.uniform2i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint);
  137473. begin
  137474. InvokeJSNoResult('uniform2i',[aLocation,aX,aY]);
  137475. end;
  137476. procedure TJSWebGLRenderingContextBase.uniform3i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint);
  137477. begin
  137478. InvokeJSNoResult('uniform3i',[aLocation,aX,aY,aZ]);
  137479. end;
  137480. procedure TJSWebGLRenderingContextBase.uniform4i(aLocation: IJSWebGLUniformLocation; aX: TGLint; aY: TGLint; aZ: TGLint; aW: TGLint);
  137481. begin
  137482. InvokeJSNoResult('uniform4i',[aLocation,aX,aY,aZ,aW]);
  137483. end;
  137484. procedure TJSWebGLRenderingContextBase.useProgram(aProgram_: IJSWebGLProgram);
  137485. begin
  137486. InvokeJSNoResult('useProgram',[aProgram_]);
  137487. end;
  137488. procedure TJSWebGLRenderingContextBase.validateProgram(aProgram_: IJSWebGLProgram);
  137489. begin
  137490. InvokeJSNoResult('validateProgram',[aProgram_]);
  137491. end;
  137492. procedure TJSWebGLRenderingContextBase.vertexAttrib1f(aIndx: TGLuint; aX: TGLfloat);
  137493. begin
  137494. InvokeJSNoResult('vertexAttrib1f',[aIndx,aX]);
  137495. end;
  137496. procedure TJSWebGLRenderingContextBase.vertexAttrib1fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  137497. begin
  137498. InvokeJSNoResult('vertexAttrib1fv',[aIndx,aValues]);
  137499. end;
  137500. procedure TJSWebGLRenderingContextBase.vertexAttrib1fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  137501. begin
  137502. InvokeJSNoResult('vertexAttrib1fv',[aIndx,aValues]);
  137503. end;
  137504. procedure TJSWebGLRenderingContextBase.vertexAttrib2f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat);
  137505. begin
  137506. InvokeJSNoResult('vertexAttrib2f',[aIndx,aX,aY]);
  137507. end;
  137508. procedure TJSWebGLRenderingContextBase.vertexAttrib2fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  137509. begin
  137510. InvokeJSNoResult('vertexAttrib2fv',[aIndx,aValues]);
  137511. end;
  137512. procedure TJSWebGLRenderingContextBase.vertexAttrib2fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  137513. begin
  137514. InvokeJSNoResult('vertexAttrib2fv',[aIndx,aValues]);
  137515. end;
  137516. procedure TJSWebGLRenderingContextBase.vertexAttrib3f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat);
  137517. begin
  137518. InvokeJSNoResult('vertexAttrib3f',[aIndx,aX,aY,aZ]);
  137519. end;
  137520. procedure TJSWebGLRenderingContextBase.vertexAttrib3fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  137521. begin
  137522. InvokeJSNoResult('vertexAttrib3fv',[aIndx,aValues]);
  137523. end;
  137524. procedure TJSWebGLRenderingContextBase.vertexAttrib3fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  137525. begin
  137526. InvokeJSNoResult('vertexAttrib3fv',[aIndx,aValues]);
  137527. end;
  137528. procedure TJSWebGLRenderingContextBase.vertexAttrib4f(aIndx: TGLuint; aX: TGLfloat; aY: TGLfloat; aZ: TGLfloat; aW: TGLfloat);
  137529. begin
  137530. InvokeJSNoResult('vertexAttrib4f',[aIndx,aX,aY,aZ,aW]);
  137531. end;
  137532. procedure TJSWebGLRenderingContextBase.vertexAttrib4fv(aIndx: TGLuint; aValues: IJSFloat32Array);
  137533. begin
  137534. InvokeJSNoResult('vertexAttrib4fv',[aIndx,aValues]);
  137535. end;
  137536. procedure TJSWebGLRenderingContextBase.vertexAttrib4fv(aIndx: TGLuint; const aValues: TGLfloatDynArray);
  137537. begin
  137538. InvokeJSNoResult('vertexAttrib4fv',[aIndx,aValues]);
  137539. end;
  137540. procedure TJSWebGLRenderingContextBase.vertexAttribPointer(aIndx: TGLuint; aSize: TGLint; aType_: TGLenum; aNormalized: TGLboolean; aStride: TGLsizei; aOffset: TGLintptr);
  137541. begin
  137542. InvokeJSNoResult('vertexAttribPointer',[aIndx,aSize,aType_,aNormalized,aStride,aOffset]);
  137543. end;
  137544. procedure TJSWebGLRenderingContextBase.viewport(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei);
  137545. begin
  137546. InvokeJSNoResult('viewport',[aX,aY,aWidth,aHeight]);
  137547. end;
  137548. function TJSWebGLRenderingContextBase.makeXRCompatible: IJSPromise; // Promise<undefined>
  137549. begin
  137550. Result:=InvokeJSObjectResult('makeXRCompatible',[],TJSPromise) as IJSPromise;
  137551. end;
  137552. class function TJSWebGLRenderingContextBase.JSClassName: UnicodeString;
  137553. begin
  137554. Result:='WebGLRenderingContextBase';
  137555. end;
  137556. class function TJSWebGLRenderingContextBase.Cast(const Intf: IJSObject): IJSWebGLRenderingContextBase;
  137557. begin
  137558. Result:=TJSWebGLRenderingContextBase.JOBCast(Intf);
  137559. end;
  137560. procedure TJSWebGLRenderingContext.bufferData(aTarget: TGLenum; aSize: TGLsizeiptr; aUsage: TGLenum);
  137561. begin
  137562. InvokeJSNoResult('bufferData',[aTarget,aSize,aUsage]);
  137563. end;
  137564. procedure TJSWebGLRenderingContext.bufferData(aTarget: TGLenum; aData: IJSArrayBuffer; aUsage: TGLenum);
  137565. begin
  137566. InvokeJSNoResult('bufferData',[aTarget,aData,aUsage]);
  137567. end;
  137568. procedure TJSWebGLRenderingContext.bufferData(aTarget: TGLenum; aData: IJSArrayBufferView; aUsage: TGLenum);
  137569. begin
  137570. InvokeJSNoResult('bufferData',[aTarget,aData,aUsage]);
  137571. end;
  137572. procedure TJSWebGLRenderingContext.bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aData: IJSArrayBuffer);
  137573. begin
  137574. InvokeJSNoResult('bufferSubData',[aTarget,aOffset,aData]);
  137575. end;
  137576. procedure TJSWebGLRenderingContext.bufferSubData(aTarget: TGLenum; aOffset: TGLintptr; aData: IJSArrayBufferView);
  137577. begin
  137578. InvokeJSNoResult('bufferSubData',[aTarget,aOffset,aData]);
  137579. end;
  137580. procedure TJSWebGLRenderingContext.compressedTexImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLenum; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aData: IJSArrayBufferView);
  137581. begin
  137582. InvokeJSNoResult('compressedTexImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aData]);
  137583. end;
  137584. procedure TJSWebGLRenderingContext.compressedTexSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aData: IJSArrayBufferView);
  137585. begin
  137586. InvokeJSNoResult('compressedTexSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aData]);
  137587. end;
  137588. procedure TJSWebGLRenderingContext.readPixels(aX: TGLint; aY: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  137589. begin
  137590. InvokeJSNoResult('readPixels',[aX,aY,aWidth,aHeight,aFormat,aType_,aPixels]);
  137591. end;
  137592. procedure TJSWebGLRenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aBorder: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  137593. begin
  137594. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aWidth,aHeight,aBorder,aFormat,aType_,aPixels]);
  137595. end;
  137596. procedure TJSWebGLRenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageBitmap);
  137597. begin
  137598. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aPixels]);
  137599. end;
  137600. procedure TJSWebGLRenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageData);
  137601. begin
  137602. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aPixels]);
  137603. end;
  137604. procedure TJSWebGLRenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aImage: IJSHTMLImageElement);
  137605. begin
  137606. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aImage]);
  137607. end;
  137608. procedure TJSWebGLRenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSHTMLCanvasElement);
  137609. begin
  137610. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aCanvas]);
  137611. end;
  137612. procedure TJSWebGLRenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideo: IJSHTMLVideoElement);
  137613. begin
  137614. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aVideo]);
  137615. end;
  137616. procedure TJSWebGLRenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSOffscreenCanvas);
  137617. begin
  137618. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aCanvas]);
  137619. end;
  137620. procedure TJSWebGLRenderingContext.texImage2D(aTarget: TGLenum; aLevel: TGLint; aInternalformat: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideoFrame: IJSVideoFrame);
  137621. begin
  137622. InvokeJSNoResult('texImage2D',[aTarget,aLevel,aInternalformat,aFormat,aType_,aVideoFrame]);
  137623. end;
  137624. procedure TJSWebGLRenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aWidth: TGLsizei; aHeight: TGLsizei; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSArrayBufferView);
  137625. begin
  137626. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aWidth,aHeight,aFormat,aType_,aPixels]);
  137627. end;
  137628. procedure TJSWebGLRenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageBitmap);
  137629. begin
  137630. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aPixels]);
  137631. end;
  137632. procedure TJSWebGLRenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aPixels: IJSImageData);
  137633. begin
  137634. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aPixels]);
  137635. end;
  137636. procedure TJSWebGLRenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aImage: IJSHTMLImageElement);
  137637. begin
  137638. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aImage]);
  137639. end;
  137640. procedure TJSWebGLRenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSHTMLCanvasElement);
  137641. begin
  137642. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aCanvas]);
  137643. end;
  137644. procedure TJSWebGLRenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideo: IJSHTMLVideoElement);
  137645. begin
  137646. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aVideo]);
  137647. end;
  137648. procedure TJSWebGLRenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aCanvas: IJSOffscreenCanvas);
  137649. begin
  137650. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aCanvas]);
  137651. end;
  137652. procedure TJSWebGLRenderingContext.texSubImage2D(aTarget: TGLenum; aLevel: TGLint; aXoffset: TGLint; aYoffset: TGLint; aFormat: TGLenum; aType_: TGLenum; aVideoFrame: IJSVideoFrame);
  137653. begin
  137654. InvokeJSNoResult('texSubImage2D',[aTarget,aLevel,aXoffset,aYoffset,aFormat,aType_,aVideoFrame]);
  137655. end;
  137656. procedure TJSWebGLRenderingContext.uniform1fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  137657. begin
  137658. InvokeJSNoResult('uniform1fv',[aLocation,aData]);
  137659. end;
  137660. procedure TJSWebGLRenderingContext.uniform1fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  137661. begin
  137662. InvokeJSNoResult('uniform1fv',[aLocation,aData]);
  137663. end;
  137664. procedure TJSWebGLRenderingContext.uniform2fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  137665. begin
  137666. InvokeJSNoResult('uniform2fv',[aLocation,aData]);
  137667. end;
  137668. procedure TJSWebGLRenderingContext.uniform2fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  137669. begin
  137670. InvokeJSNoResult('uniform2fv',[aLocation,aData]);
  137671. end;
  137672. procedure TJSWebGLRenderingContext.uniform3fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  137673. begin
  137674. InvokeJSNoResult('uniform3fv',[aLocation,aData]);
  137675. end;
  137676. procedure TJSWebGLRenderingContext.uniform3fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  137677. begin
  137678. InvokeJSNoResult('uniform3fv',[aLocation,aData]);
  137679. end;
  137680. procedure TJSWebGLRenderingContext.uniform4fv(aLocation: IJSWebGLUniformLocation; aData: IJSFloat32Array);
  137681. begin
  137682. InvokeJSNoResult('uniform4fv',[aLocation,aData]);
  137683. end;
  137684. procedure TJSWebGLRenderingContext.uniform4fv(aLocation: IJSWebGLUniformLocation; const aData: TGLfloatDynArray);
  137685. begin
  137686. InvokeJSNoResult('uniform4fv',[aLocation,aData]);
  137687. end;
  137688. procedure TJSWebGLRenderingContext.uniform1iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  137689. begin
  137690. InvokeJSNoResult('uniform1iv',[aLocation,aData]);
  137691. end;
  137692. procedure TJSWebGLRenderingContext.uniform1iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  137693. begin
  137694. InvokeJSNoResult('uniform1iv',[aLocation,aData]);
  137695. end;
  137696. procedure TJSWebGLRenderingContext.uniform2iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  137697. begin
  137698. InvokeJSNoResult('uniform2iv',[aLocation,aData]);
  137699. end;
  137700. procedure TJSWebGLRenderingContext.uniform2iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  137701. begin
  137702. InvokeJSNoResult('uniform2iv',[aLocation,aData]);
  137703. end;
  137704. procedure TJSWebGLRenderingContext.uniform3iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  137705. begin
  137706. InvokeJSNoResult('uniform3iv',[aLocation,aData]);
  137707. end;
  137708. procedure TJSWebGLRenderingContext.uniform3iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  137709. begin
  137710. InvokeJSNoResult('uniform3iv',[aLocation,aData]);
  137711. end;
  137712. procedure TJSWebGLRenderingContext.uniform4iv(aLocation: IJSWebGLUniformLocation; aData: IJSInt32Array);
  137713. begin
  137714. InvokeJSNoResult('uniform4iv',[aLocation,aData]);
  137715. end;
  137716. procedure TJSWebGLRenderingContext.uniform4iv(aLocation: IJSWebGLUniformLocation; const aData: TGLintDynArray);
  137717. begin
  137718. InvokeJSNoResult('uniform4iv',[aLocation,aData]);
  137719. end;
  137720. procedure TJSWebGLRenderingContext.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  137721. begin
  137722. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData]);
  137723. end;
  137724. procedure TJSWebGLRenderingContext.uniformMatrix2fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  137725. begin
  137726. InvokeJSNoResult('uniformMatrix2fv',[aLocation,aTranspose,aData]);
  137727. end;
  137728. procedure TJSWebGLRenderingContext.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  137729. begin
  137730. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData]);
  137731. end;
  137732. procedure TJSWebGLRenderingContext.uniformMatrix3fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  137733. begin
  137734. InvokeJSNoResult('uniformMatrix3fv',[aLocation,aTranspose,aData]);
  137735. end;
  137736. procedure TJSWebGLRenderingContext.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; aData: IJSFloat32Array);
  137737. begin
  137738. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData]);
  137739. end;
  137740. procedure TJSWebGLRenderingContext.uniformMatrix4fv(aLocation: IJSWebGLUniformLocation; aTranspose: TGLboolean; const aData: TGLfloatDynArray);
  137741. begin
  137742. InvokeJSNoResult('uniformMatrix4fv',[aLocation,aTranspose,aData]);
  137743. end;
  137744. class function TJSWebGLRenderingContext.JSClassName: UnicodeString;
  137745. begin
  137746. Result:='WebGLRenderingContext';
  137747. end;
  137748. class function TJSWebGLRenderingContext.Cast(const Intf: IJSObject): IJSWebGLRenderingContext;
  137749. begin
  137750. Result:=TJSWebGLRenderingContext.JOBCast(Intf);
  137751. end;
  137752. class function TJSEXT_texture_compression_bptc.JSClassName: UnicodeString;
  137753. begin
  137754. Result:='EXT_texture_compression_bptc';
  137755. end;
  137756. class function TJSEXT_texture_compression_bptc.Cast(const Intf: IJSObject): IJSEXT_texture_compression_bptc;
  137757. begin
  137758. Result:=TJSEXT_texture_compression_bptc.JOBCast(Intf);
  137759. end;
  137760. class function TJSEXT_texture_compression_rgtc.JSClassName: UnicodeString;
  137761. begin
  137762. Result:='EXT_texture_compression_rgtc';
  137763. end;
  137764. class function TJSEXT_texture_compression_rgtc.Cast(const Intf: IJSObject): IJSEXT_texture_compression_rgtc;
  137765. begin
  137766. Result:=TJSEXT_texture_compression_rgtc.JOBCast(Intf);
  137767. end;
  137768. class function TJSEXT_texture_norm16.JSClassName: UnicodeString;
  137769. begin
  137770. Result:='EXT_texture_norm16';
  137771. end;
  137772. class function TJSEXT_texture_norm16.Cast(const Intf: IJSObject): IJSEXT_texture_norm16;
  137773. begin
  137774. Result:=TJSEXT_texture_norm16.JOBCast(Intf);
  137775. end;
  137776. class function TJSWEBGL_compressed_texture_s3tc.JSClassName: UnicodeString;
  137777. begin
  137778. Result:='WEBGL_compressed_texture_s3tc';
  137779. end;
  137780. class function TJSWEBGL_compressed_texture_s3tc.Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_s3tc;
  137781. begin
  137782. Result:=TJSWEBGL_compressed_texture_s3tc.JOBCast(Intf);
  137783. end;
  137784. class function TJSWEBGL_compressed_texture_s3tc_srgb.JSClassName: UnicodeString;
  137785. begin
  137786. Result:='WEBGL_compressed_texture_s3tc_srgb';
  137787. end;
  137788. class function TJSWEBGL_compressed_texture_s3tc_srgb.Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_s3tc_srgb;
  137789. begin
  137790. Result:=TJSWEBGL_compressed_texture_s3tc_srgb.JOBCast(Intf);
  137791. end;
  137792. function TJSWEBGL_compressed_texture_astc.getSupportedProfiles: TUnicodeStringDynArray;
  137793. begin
  137794. Result:=InvokeJSObjectResult('getSupportedProfiles',[],TJSArray) as TUnicodeStringDynArray;
  137795. end;
  137796. class function TJSWEBGL_compressed_texture_astc.JSClassName: UnicodeString;
  137797. begin
  137798. Result:='WEBGL_compressed_texture_astc';
  137799. end;
  137800. class function TJSWEBGL_compressed_texture_astc.Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_astc;
  137801. begin
  137802. Result:=TJSWEBGL_compressed_texture_astc.JOBCast(Intf);
  137803. end;
  137804. class function TJSWEBGL_compressed_texture_etc.JSClassName: UnicodeString;
  137805. begin
  137806. Result:='WEBGL_compressed_texture_etc';
  137807. end;
  137808. class function TJSWEBGL_compressed_texture_etc.Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_etc;
  137809. begin
  137810. Result:=TJSWEBGL_compressed_texture_etc.JOBCast(Intf);
  137811. end;
  137812. class function TJSWEBGL_compressed_texture_etc1.JSClassName: UnicodeString;
  137813. begin
  137814. Result:='WEBGL_compressed_texture_etc1';
  137815. end;
  137816. class function TJSWEBGL_compressed_texture_etc1.Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_etc1;
  137817. begin
  137818. Result:=TJSWEBGL_compressed_texture_etc1.JOBCast(Intf);
  137819. end;
  137820. class function TJSWEBGL_compressed_texture_pvrtc.JSClassName: UnicodeString;
  137821. begin
  137822. Result:='WEBGL_compressed_texture_pvrtc';
  137823. end;
  137824. class function TJSWEBGL_compressed_texture_pvrtc.Cast(const Intf: IJSObject): IJSWEBGL_compressed_texture_pvrtc;
  137825. begin
  137826. Result:=TJSWEBGL_compressed_texture_pvrtc.JOBCast(Intf);
  137827. end;
  137828. class function TJSWEBGL_debug_renderer_info.JSClassName: UnicodeString;
  137829. begin
  137830. Result:='WEBGL_debug_renderer_info';
  137831. end;
  137832. class function TJSWEBGL_debug_renderer_info.Cast(const Intf: IJSObject): IJSWEBGL_debug_renderer_info;
  137833. begin
  137834. Result:=TJSWEBGL_debug_renderer_info.JOBCast(Intf);
  137835. end;
  137836. function TJSWEBGL_debug_shaders.getTranslatedShaderSource(aShader: IJSWebGLShader): UnicodeString;
  137837. begin
  137838. Result:=InvokeJSUnicodeStringResult('getTranslatedShaderSource',[aShader]);
  137839. end;
  137840. class function TJSWEBGL_debug_shaders.JSClassName: UnicodeString;
  137841. begin
  137842. Result:='WEBGL_debug_shaders';
  137843. end;
  137844. class function TJSWEBGL_debug_shaders.Cast(const Intf: IJSObject): IJSWEBGL_debug_shaders;
  137845. begin
  137846. Result:=TJSWEBGL_debug_shaders.JOBCast(Intf);
  137847. end;
  137848. class function TJSWEBGL_depth_texture.JSClassName: UnicodeString;
  137849. begin
  137850. Result:='WEBGL_depth_texture';
  137851. end;
  137852. class function TJSWEBGL_depth_texture.Cast(const Intf: IJSObject): IJSWEBGL_depth_texture;
  137853. begin
  137854. Result:=TJSWEBGL_depth_texture.JOBCast(Intf);
  137855. end;
  137856. class function TJSOES_element_index_uint.JSClassName: UnicodeString;
  137857. begin
  137858. Result:='OES_element_index_uint';
  137859. end;
  137860. class function TJSOES_element_index_uint.Cast(const Intf: IJSObject): IJSOES_element_index_uint;
  137861. begin
  137862. Result:=TJSOES_element_index_uint.JOBCast(Intf);
  137863. end;
  137864. class function TJSEXT_frag_depth.JSClassName: UnicodeString;
  137865. begin
  137866. Result:='EXT_frag_depth';
  137867. end;
  137868. class function TJSEXT_frag_depth.Cast(const Intf: IJSObject): IJSEXT_frag_depth;
  137869. begin
  137870. Result:=TJSEXT_frag_depth.JOBCast(Intf);
  137871. end;
  137872. procedure TJSWEBGL_lose_context.loseContext;
  137873. begin
  137874. InvokeJSNoResult('loseContext',[]);
  137875. end;
  137876. procedure TJSWEBGL_lose_context.restoreContext;
  137877. begin
  137878. InvokeJSNoResult('restoreContext',[]);
  137879. end;
  137880. class function TJSWEBGL_lose_context.JSClassName: UnicodeString;
  137881. begin
  137882. Result:='WEBGL_lose_context';
  137883. end;
  137884. class function TJSWEBGL_lose_context.Cast(const Intf: IJSObject): IJSWEBGL_lose_context;
  137885. begin
  137886. Result:=TJSWEBGL_lose_context.JOBCast(Intf);
  137887. end;
  137888. class function TJSEXT_texture_filter_anisotropic.JSClassName: UnicodeString;
  137889. begin
  137890. Result:='EXT_texture_filter_anisotropic';
  137891. end;
  137892. class function TJSEXT_texture_filter_anisotropic.Cast(const Intf: IJSObject): IJSEXT_texture_filter_anisotropic;
  137893. begin
  137894. Result:=TJSEXT_texture_filter_anisotropic.JOBCast(Intf);
  137895. end;
  137896. class function TJSEXT_sRGB.JSClassName: UnicodeString;
  137897. begin
  137898. Result:='EXT_sRGB';
  137899. end;
  137900. class function TJSEXT_sRGB.Cast(const Intf: IJSObject): IJSEXT_sRGB;
  137901. begin
  137902. Result:=TJSEXT_sRGB.JOBCast(Intf);
  137903. end;
  137904. class function TJSOES_standard_derivatives.JSClassName: UnicodeString;
  137905. begin
  137906. Result:='OES_standard_derivatives';
  137907. end;
  137908. class function TJSOES_standard_derivatives.Cast(const Intf: IJSObject): IJSOES_standard_derivatives;
  137909. begin
  137910. Result:=TJSOES_standard_derivatives.JOBCast(Intf);
  137911. end;
  137912. class function TJSOES_texture_float.JSClassName: UnicodeString;
  137913. begin
  137914. Result:='OES_texture_float';
  137915. end;
  137916. class function TJSOES_texture_float.Cast(const Intf: IJSObject): IJSOES_texture_float;
  137917. begin
  137918. Result:=TJSOES_texture_float.JOBCast(Intf);
  137919. end;
  137920. procedure TJSWEBGL_draw_buffers.drawBuffersWEBGL(const aBuffers: TGLenumDynArray);
  137921. begin
  137922. InvokeJSNoResult('drawBuffersWEBGL',[aBuffers]);
  137923. end;
  137924. class function TJSWEBGL_draw_buffers.JSClassName: UnicodeString;
  137925. begin
  137926. Result:='WEBGL_draw_buffers';
  137927. end;
  137928. class function TJSWEBGL_draw_buffers.Cast(const Intf: IJSObject): IJSWEBGL_draw_buffers;
  137929. begin
  137930. Result:=TJSWEBGL_draw_buffers.JOBCast(Intf);
  137931. end;
  137932. class function TJSOES_texture_float_linear.JSClassName: UnicodeString;
  137933. begin
  137934. Result:='OES_texture_float_linear';
  137935. end;
  137936. class function TJSOES_texture_float_linear.Cast(const Intf: IJSObject): IJSOES_texture_float_linear;
  137937. begin
  137938. Result:=TJSOES_texture_float_linear.JOBCast(Intf);
  137939. end;
  137940. class function TJSEXT_shader_texture_lod.JSClassName: UnicodeString;
  137941. begin
  137942. Result:='EXT_shader_texture_lod';
  137943. end;
  137944. class function TJSEXT_shader_texture_lod.Cast(const Intf: IJSObject): IJSEXT_shader_texture_lod;
  137945. begin
  137946. Result:=TJSEXT_shader_texture_lod.JOBCast(Intf);
  137947. end;
  137948. class function TJSOES_texture_half_float.JSClassName: UnicodeString;
  137949. begin
  137950. Result:='OES_texture_half_float';
  137951. end;
  137952. class function TJSOES_texture_half_float.Cast(const Intf: IJSObject): IJSOES_texture_half_float;
  137953. begin
  137954. Result:=TJSOES_texture_half_float.JOBCast(Intf);
  137955. end;
  137956. class function TJSOES_texture_half_float_linear.JSClassName: UnicodeString;
  137957. begin
  137958. Result:='OES_texture_half_float_linear';
  137959. end;
  137960. class function TJSOES_texture_half_float_linear.Cast(const Intf: IJSObject): IJSOES_texture_half_float_linear;
  137961. begin
  137962. Result:=TJSOES_texture_half_float_linear.JOBCast(Intf);
  137963. end;
  137964. class function TJSWEBGL_color_buffer_float.JSClassName: UnicodeString;
  137965. begin
  137966. Result:='WEBGL_color_buffer_float';
  137967. end;
  137968. class function TJSWEBGL_color_buffer_float.Cast(const Intf: IJSObject): IJSWEBGL_color_buffer_float;
  137969. begin
  137970. Result:=TJSWEBGL_color_buffer_float.JOBCast(Intf);
  137971. end;
  137972. class function TJSEXT_color_buffer_half_float.JSClassName: UnicodeString;
  137973. begin
  137974. Result:='EXT_color_buffer_half_float';
  137975. end;
  137976. class function TJSEXT_color_buffer_half_float.Cast(const Intf: IJSObject): IJSEXT_color_buffer_half_float;
  137977. begin
  137978. Result:=TJSEXT_color_buffer_half_float.JOBCast(Intf);
  137979. end;
  137980. function TJSOES_vertex_array_object.createVertexArrayOES: IJSWebGLVertexArrayObject;
  137981. begin
  137982. Result:=InvokeJSObjectResult('createVertexArrayOES',[],TJSWebGLVertexArrayObject) as IJSWebGLVertexArrayObject;
  137983. end;
  137984. procedure TJSOES_vertex_array_object.deleteVertexArrayOES(aArrayObject: IJSWebGLVertexArrayObject);
  137985. begin
  137986. InvokeJSNoResult('deleteVertexArrayOES',[aArrayObject]);
  137987. end;
  137988. function TJSOES_vertex_array_object.isVertexArrayOES(aArrayObject: IJSWebGLVertexArrayObject): TGLboolean;
  137989. begin
  137990. Result:=InvokeJSBooleanResult('isVertexArrayOES',[aArrayObject]);
  137991. end;
  137992. procedure TJSOES_vertex_array_object.bindVertexArrayOES(aArrayObject: IJSWebGLVertexArrayObject);
  137993. begin
  137994. InvokeJSNoResult('bindVertexArrayOES',[aArrayObject]);
  137995. end;
  137996. class function TJSOES_vertex_array_object.JSClassName: UnicodeString;
  137997. begin
  137998. Result:='OES_vertex_array_object';
  137999. end;
  138000. class function TJSOES_vertex_array_object.Cast(const Intf: IJSObject): IJSOES_vertex_array_object;
  138001. begin
  138002. Result:=TJSOES_vertex_array_object.JOBCast(Intf);
  138003. end;
  138004. procedure TJSANGLE_instanced_arrays.drawArraysInstancedANGLE(aMode: TGLenum; aFirst: TGLint; aCount: TGLsizei; aPrimcount: TGLsizei);
  138005. begin
  138006. InvokeJSNoResult('drawArraysInstancedANGLE',[aMode,aFirst,aCount,aPrimcount]);
  138007. end;
  138008. procedure TJSANGLE_instanced_arrays.drawElementsInstancedANGLE(aMode: TGLenum; aCount: TGLsizei; aType_: TGLenum; aOffset: TGLintptr; aPrimcount: TGLsizei);
  138009. begin
  138010. InvokeJSNoResult('drawElementsInstancedANGLE',[aMode,aCount,aType_,aOffset,aPrimcount]);
  138011. end;
  138012. procedure TJSANGLE_instanced_arrays.vertexAttribDivisorANGLE(aIndex: TGLuint; aDivisor: TGLuint);
  138013. begin
  138014. InvokeJSNoResult('vertexAttribDivisorANGLE',[aIndex,aDivisor]);
  138015. end;
  138016. class function TJSANGLE_instanced_arrays.JSClassName: UnicodeString;
  138017. begin
  138018. Result:='ANGLE_instanced_arrays';
  138019. end;
  138020. class function TJSANGLE_instanced_arrays.Cast(const Intf: IJSObject): IJSANGLE_instanced_arrays;
  138021. begin
  138022. Result:=TJSANGLE_instanced_arrays.JOBCast(Intf);
  138023. end;
  138024. class function TJSEXT_blend_minmax.JSClassName: UnicodeString;
  138025. begin
  138026. Result:='EXT_blend_minmax';
  138027. end;
  138028. class function TJSEXT_blend_minmax.Cast(const Intf: IJSObject): IJSEXT_blend_minmax;
  138029. begin
  138030. Result:=TJSEXT_blend_minmax.JOBCast(Intf);
  138031. end;
  138032. class function TJSWebGLQuery.JSClassName: UnicodeString;
  138033. begin
  138034. Result:='WebGLQuery';
  138035. end;
  138036. class function TJSWebGLQuery.Cast(const Intf: IJSObject): IJSWebGLQuery;
  138037. begin
  138038. Result:=TJSWebGLQuery.JOBCast(Intf);
  138039. end;
  138040. function TJSEXT_disjoint_timer_query.createQueryEXT: IJSWebGLQuery;
  138041. begin
  138042. Result:=InvokeJSObjectResult('createQueryEXT',[],TJSWebGLQuery) as IJSWebGLQuery;
  138043. end;
  138044. procedure TJSEXT_disjoint_timer_query.deleteQueryEXT(aQuery: IJSWebGLQuery);
  138045. begin
  138046. InvokeJSNoResult('deleteQueryEXT',[aQuery]);
  138047. end;
  138048. function TJSEXT_disjoint_timer_query.isQueryEXT(aQuery: IJSWebGLQuery): Boolean;
  138049. begin
  138050. Result:=InvokeJSBooleanResult('isQueryEXT',[aQuery]);
  138051. end;
  138052. procedure TJSEXT_disjoint_timer_query.beginQueryEXT(aTarget: TGLenum; aQuery: IJSWebGLQuery);
  138053. begin
  138054. InvokeJSNoResult('beginQueryEXT',[aTarget,aQuery]);
  138055. end;
  138056. procedure TJSEXT_disjoint_timer_query.endQueryEXT(aTarget: TGLenum);
  138057. begin
  138058. InvokeJSNoResult('endQueryEXT',[aTarget]);
  138059. end;
  138060. procedure TJSEXT_disjoint_timer_query.queryCounterEXT(aQuery: IJSWebGLQuery; aTarget: TGLenum);
  138061. begin
  138062. InvokeJSNoResult('queryCounterEXT',[aQuery,aTarget]);
  138063. end;
  138064. function TJSEXT_disjoint_timer_query.getQueryEXT(aTarget: TGLenum; aPname: TGLenum): Variant;
  138065. begin
  138066. Result:=InvokeJSVariantResult('getQueryEXT',[aTarget,aPname]);
  138067. end;
  138068. function TJSEXT_disjoint_timer_query.getQueryObjectEXT(aQuery: IJSWebGLQuery; aPname: TGLenum): Variant;
  138069. begin
  138070. Result:=InvokeJSVariantResult('getQueryObjectEXT',[aQuery,aPname]);
  138071. end;
  138072. class function TJSEXT_disjoint_timer_query.JSClassName: UnicodeString;
  138073. begin
  138074. Result:='EXT_disjoint_timer_query';
  138075. end;
  138076. class function TJSEXT_disjoint_timer_query.Cast(const Intf: IJSObject): IJSEXT_disjoint_timer_query;
  138077. begin
  138078. Result:=TJSEXT_disjoint_timer_query.JOBCast(Intf);
  138079. end;
  138080. function TJSMOZ_debug.getParameter(aPname: TGLenum): Variant;
  138081. begin
  138082. Result:=InvokeJSVariantResult('getParameter',[aPname]);
  138083. end;
  138084. class function TJSMOZ_debug.JSClassName: UnicodeString;
  138085. begin
  138086. Result:='MOZ_debug';
  138087. end;
  138088. class function TJSMOZ_debug.Cast(const Intf: IJSObject): IJSMOZ_debug;
  138089. begin
  138090. Result:=TJSMOZ_debug.JOBCast(Intf);
  138091. end;
  138092. class function TJSEXT_float_blend.JSClassName: UnicodeString;
  138093. begin
  138094. Result:='EXT_float_blend';
  138095. end;
  138096. class function TJSEXT_float_blend.Cast(const Intf: IJSObject): IJSEXT_float_blend;
  138097. begin
  138098. Result:=TJSEXT_float_blend.JOBCast(Intf);
  138099. end;
  138100. class function TJSOES_fbo_render_mipmap.JSClassName: UnicodeString;
  138101. begin
  138102. Result:='OES_fbo_render_mipmap';
  138103. end;
  138104. class function TJSOES_fbo_render_mipmap.Cast(const Intf: IJSObject): IJSOES_fbo_render_mipmap;
  138105. begin
  138106. Result:=TJSOES_fbo_render_mipmap.JOBCast(Intf);
  138107. end;
  138108. procedure TJSWEBGL_explicit_present.present;
  138109. begin
  138110. InvokeJSNoResult('present',[]);
  138111. end;
  138112. class function TJSWEBGL_explicit_present.JSClassName: UnicodeString;
  138113. begin
  138114. Result:='WEBGL_explicit_present';
  138115. end;
  138116. class function TJSWEBGL_explicit_present.Cast(const Intf: IJSObject): IJSWEBGL_explicit_present;
  138117. begin
  138118. Result:=TJSWEBGL_explicit_present.JOBCast(Intf);
  138119. end;
  138120. procedure TJSOES_draw_buffers_indexed.enableiOES(aTarget: TGLenum; aIndex: TGLuint);
  138121. begin
  138122. InvokeJSNoResult('enableiOES',[aTarget,aIndex]);
  138123. end;
  138124. procedure TJSOES_draw_buffers_indexed.disableiOES(aTarget: TGLenum; aIndex: TGLuint);
  138125. begin
  138126. InvokeJSNoResult('disableiOES',[aTarget,aIndex]);
  138127. end;
  138128. procedure TJSOES_draw_buffers_indexed.blendEquationiOES(aBuf: TGLuint; aMode: TGLenum);
  138129. begin
  138130. InvokeJSNoResult('blendEquationiOES',[aBuf,aMode]);
  138131. end;
  138132. procedure TJSOES_draw_buffers_indexed.blendEquationSeparateiOES(aBuf: TGLuint; aModeRGB: TGLenum; aModeAlpha: TGLenum);
  138133. begin
  138134. InvokeJSNoResult('blendEquationSeparateiOES',[aBuf,aModeRGB,aModeAlpha]);
  138135. end;
  138136. procedure TJSOES_draw_buffers_indexed.blendFunciOES(aBuf: TGLuint; aSrc: TGLenum; aDst: TGLenum);
  138137. begin
  138138. InvokeJSNoResult('blendFunciOES',[aBuf,aSrc,aDst]);
  138139. end;
  138140. procedure TJSOES_draw_buffers_indexed.blendFuncSeparateiOES(aBuf: TGLuint; aSrcRGB: TGLenum; aDstRGB: TGLenum; aSrcAlpha: TGLenum; aDstAlpha: TGLenum);
  138141. begin
  138142. InvokeJSNoResult('blendFuncSeparateiOES',[aBuf,aSrcRGB,aDstRGB,aSrcAlpha,aDstAlpha]);
  138143. end;
  138144. procedure TJSOES_draw_buffers_indexed.colorMaskiOES(aBuf: TGLuint; aR: TGLboolean; aG: TGLboolean; aB: TGLboolean; aA: TGLboolean);
  138145. begin
  138146. InvokeJSNoResult('colorMaskiOES',[aBuf,aR,aG,aB,aA]);
  138147. end;
  138148. class function TJSOES_draw_buffers_indexed.JSClassName: UnicodeString;
  138149. begin
  138150. Result:='OES_draw_buffers_indexed';
  138151. end;
  138152. class function TJSOES_draw_buffers_indexed.Cast(const Intf: IJSObject): IJSOES_draw_buffers_indexed;
  138153. begin
  138154. Result:=TJSOES_draw_buffers_indexed.JOBCast(Intf);
  138155. end;
  138156. procedure TJSWEBGL_provoking_vertex.provokingVertexWEBGL(aProvokeMode: TGLenum);
  138157. begin
  138158. InvokeJSNoResult('provokingVertexWEBGL',[aProvokeMode]);
  138159. end;
  138160. class function TJSWEBGL_provoking_vertex.JSClassName: UnicodeString;
  138161. begin
  138162. Result:='WEBGL_provoking_vertex';
  138163. end;
  138164. class function TJSWEBGL_provoking_vertex.Cast(const Intf: IJSObject): IJSWEBGL_provoking_vertex;
  138165. begin
  138166. Result:=TJSWEBGL_provoking_vertex.JOBCast(Intf);
  138167. end;
  138168. function TJSGPUObjectBase._Getlabel_: UnicodeString;
  138169. begin
  138170. Result:=ReadJSPropertyUnicodeString('label');
  138171. end;
  138172. procedure TJSGPUObjectBase._Setlabel_(const aValue : UnicodeString);
  138173. begin
  138174. WriteJSPropertyUnicodeString('label',aValue);
  138175. end;
  138176. class function TJSGPUObjectBase.JSClassName: UnicodeString;
  138177. begin
  138178. Result:='GPUObjectBase';
  138179. end;
  138180. class function TJSGPUObjectBase.Cast(const Intf: IJSObject): IJSGPUObjectBase;
  138181. begin
  138182. Result:=TJSGPUObjectBase.JOBCast(Intf);
  138183. end;
  138184. function TJSGPUObjectDescriptorBase._Getlabel_: UnicodeString;
  138185. begin
  138186. Result:=ReadJSPropertyUnicodeString('label');
  138187. end;
  138188. procedure TJSGPUObjectDescriptorBase._Setlabel_(const aValue : UnicodeString);
  138189. begin
  138190. WriteJSPropertyUnicodeString('label',aValue);
  138191. end;
  138192. class function TJSGPUObjectDescriptorBase.JSClassName: UnicodeString;
  138193. begin
  138194. Result:='Object';
  138195. end;
  138196. class function TJSGPUObjectDescriptorBase.Cast(const Intf: IJSObject): IJSGPUObjectDescriptorBase;
  138197. begin
  138198. Result:=TJSGPUObjectDescriptorBase.JOBCast(Intf);
  138199. end;
  138200. function TJSGPUSupportedLimits._GetmaxTextureDimension1D: Cardinal;
  138201. begin
  138202. Result:=ReadJSPropertyInt64('maxTextureDimension1D');
  138203. end;
  138204. function TJSGPUSupportedLimits._GetmaxTextureDimension2D: Cardinal;
  138205. begin
  138206. Result:=ReadJSPropertyInt64('maxTextureDimension2D');
  138207. end;
  138208. function TJSGPUSupportedLimits._GetmaxTextureDimension3D: Cardinal;
  138209. begin
  138210. Result:=ReadJSPropertyInt64('maxTextureDimension3D');
  138211. end;
  138212. function TJSGPUSupportedLimits._GetmaxTextureArrayLayers: Cardinal;
  138213. begin
  138214. Result:=ReadJSPropertyInt64('maxTextureArrayLayers');
  138215. end;
  138216. function TJSGPUSupportedLimits._GetmaxBindGroups: Cardinal;
  138217. begin
  138218. Result:=ReadJSPropertyInt64('maxBindGroups');
  138219. end;
  138220. function TJSGPUSupportedLimits._GetmaxBindGroupsPlusVertexBuffers: Cardinal;
  138221. begin
  138222. Result:=ReadJSPropertyInt64('maxBindGroupsPlusVertexBuffers');
  138223. end;
  138224. function TJSGPUSupportedLimits._GetmaxBindingsPerBindGroup: Cardinal;
  138225. begin
  138226. Result:=ReadJSPropertyInt64('maxBindingsPerBindGroup');
  138227. end;
  138228. function TJSGPUSupportedLimits._GetmaxDynamicUniformBuffersPerPipelineLayout: Cardinal;
  138229. begin
  138230. Result:=ReadJSPropertyInt64('maxDynamicUniformBuffersPerPipelineLayout');
  138231. end;
  138232. function TJSGPUSupportedLimits._GetmaxDynamicStorageBuffersPerPipelineLayout: Cardinal;
  138233. begin
  138234. Result:=ReadJSPropertyInt64('maxDynamicStorageBuffersPerPipelineLayout');
  138235. end;
  138236. function TJSGPUSupportedLimits._GetmaxSampledTexturesPerShaderStage: Cardinal;
  138237. begin
  138238. Result:=ReadJSPropertyInt64('maxSampledTexturesPerShaderStage');
  138239. end;
  138240. function TJSGPUSupportedLimits._GetmaxSamplersPerShaderStage: Cardinal;
  138241. begin
  138242. Result:=ReadJSPropertyInt64('maxSamplersPerShaderStage');
  138243. end;
  138244. function TJSGPUSupportedLimits._GetmaxStorageBuffersPerShaderStage: Cardinal;
  138245. begin
  138246. Result:=ReadJSPropertyInt64('maxStorageBuffersPerShaderStage');
  138247. end;
  138248. function TJSGPUSupportedLimits._GetmaxStorageTexturesPerShaderStage: Cardinal;
  138249. begin
  138250. Result:=ReadJSPropertyInt64('maxStorageTexturesPerShaderStage');
  138251. end;
  138252. function TJSGPUSupportedLimits._GetmaxUniformBuffersPerShaderStage: Cardinal;
  138253. begin
  138254. Result:=ReadJSPropertyInt64('maxUniformBuffersPerShaderStage');
  138255. end;
  138256. function TJSGPUSupportedLimits._GetmaxUniformBufferBindingSize: QWord;
  138257. begin
  138258. Result:=ReadJSPropertyInt64('maxUniformBufferBindingSize');
  138259. end;
  138260. function TJSGPUSupportedLimits._GetmaxStorageBufferBindingSize: QWord;
  138261. begin
  138262. Result:=ReadJSPropertyInt64('maxStorageBufferBindingSize');
  138263. end;
  138264. function TJSGPUSupportedLimits._GetminUniformBufferOffsetAlignment: Cardinal;
  138265. begin
  138266. Result:=ReadJSPropertyInt64('minUniformBufferOffsetAlignment');
  138267. end;
  138268. function TJSGPUSupportedLimits._GetminStorageBufferOffsetAlignment: Cardinal;
  138269. begin
  138270. Result:=ReadJSPropertyInt64('minStorageBufferOffsetAlignment');
  138271. end;
  138272. function TJSGPUSupportedLimits._GetmaxVertexBuffers: Cardinal;
  138273. begin
  138274. Result:=ReadJSPropertyInt64('maxVertexBuffers');
  138275. end;
  138276. function TJSGPUSupportedLimits._GetmaxBufferSize: QWord;
  138277. begin
  138278. Result:=ReadJSPropertyInt64('maxBufferSize');
  138279. end;
  138280. function TJSGPUSupportedLimits._GetmaxVertexAttributes: Cardinal;
  138281. begin
  138282. Result:=ReadJSPropertyInt64('maxVertexAttributes');
  138283. end;
  138284. function TJSGPUSupportedLimits._GetmaxVertexBufferArrayStride: Cardinal;
  138285. begin
  138286. Result:=ReadJSPropertyInt64('maxVertexBufferArrayStride');
  138287. end;
  138288. function TJSGPUSupportedLimits._GetmaxInterStageShaderComponents: Cardinal;
  138289. begin
  138290. Result:=ReadJSPropertyInt64('maxInterStageShaderComponents');
  138291. end;
  138292. function TJSGPUSupportedLimits._GetmaxInterStageShaderVariables: Cardinal;
  138293. begin
  138294. Result:=ReadJSPropertyInt64('maxInterStageShaderVariables');
  138295. end;
  138296. function TJSGPUSupportedLimits._GetmaxColorAttachments: Cardinal;
  138297. begin
  138298. Result:=ReadJSPropertyInt64('maxColorAttachments');
  138299. end;
  138300. function TJSGPUSupportedLimits._GetmaxColorAttachmentBytesPerSample: Cardinal;
  138301. begin
  138302. Result:=ReadJSPropertyInt64('maxColorAttachmentBytesPerSample');
  138303. end;
  138304. function TJSGPUSupportedLimits._GetmaxComputeWorkgroupStorageSize: Cardinal;
  138305. begin
  138306. Result:=ReadJSPropertyInt64('maxComputeWorkgroupStorageSize');
  138307. end;
  138308. function TJSGPUSupportedLimits._GetmaxComputeInvocationsPerWorkgroup: Cardinal;
  138309. begin
  138310. Result:=ReadJSPropertyInt64('maxComputeInvocationsPerWorkgroup');
  138311. end;
  138312. function TJSGPUSupportedLimits._GetmaxComputeWorkgroupSizeX: Cardinal;
  138313. begin
  138314. Result:=ReadJSPropertyInt64('maxComputeWorkgroupSizeX');
  138315. end;
  138316. function TJSGPUSupportedLimits._GetmaxComputeWorkgroupSizeY: Cardinal;
  138317. begin
  138318. Result:=ReadJSPropertyInt64('maxComputeWorkgroupSizeY');
  138319. end;
  138320. function TJSGPUSupportedLimits._GetmaxComputeWorkgroupSizeZ: Cardinal;
  138321. begin
  138322. Result:=ReadJSPropertyInt64('maxComputeWorkgroupSizeZ');
  138323. end;
  138324. function TJSGPUSupportedLimits._GetmaxComputeWorkgroupsPerDimension: Cardinal;
  138325. begin
  138326. Result:=ReadJSPropertyInt64('maxComputeWorkgroupsPerDimension');
  138327. end;
  138328. class function TJSGPUSupportedLimits.JSClassName: UnicodeString;
  138329. begin
  138330. Result:='GPUSupportedLimits';
  138331. end;
  138332. class function TJSGPUSupportedLimits.Cast(const Intf: IJSObject): IJSGPUSupportedLimits;
  138333. begin
  138334. Result:=TJSGPUSupportedLimits.JOBCast(Intf);
  138335. end;
  138336. class function TJSGPUSupportedFeatures.JSClassName: UnicodeString;
  138337. begin
  138338. Result:='GPUSupportedFeatures';
  138339. end;
  138340. class function TJSGPUSupportedFeatures.Cast(const Intf: IJSObject): IJSGPUSupportedFeatures;
  138341. begin
  138342. Result:=TJSGPUSupportedFeatures.JOBCast(Intf);
  138343. end;
  138344. function TJSGPUAdapterInfo._Getvendor: UnicodeString;
  138345. begin
  138346. Result:=ReadJSPropertyUnicodeString('vendor');
  138347. end;
  138348. function TJSGPUAdapterInfo._Getarchitecture: UnicodeString;
  138349. begin
  138350. Result:=ReadJSPropertyUnicodeString('architecture');
  138351. end;
  138352. function TJSGPUAdapterInfo._Getdevice: UnicodeString;
  138353. begin
  138354. Result:=ReadJSPropertyUnicodeString('device');
  138355. end;
  138356. function TJSGPUAdapterInfo._Getdescription: UnicodeString;
  138357. begin
  138358. Result:=ReadJSPropertyUnicodeString('description');
  138359. end;
  138360. class function TJSGPUAdapterInfo.JSClassName: UnicodeString;
  138361. begin
  138362. Result:='GPUAdapterInfo';
  138363. end;
  138364. class function TJSGPUAdapterInfo.Cast(const Intf: IJSObject): IJSGPUAdapterInfo;
  138365. begin
  138366. Result:=TJSGPUAdapterInfo.JOBCast(Intf);
  138367. end;
  138368. function TJSNavigatorGPU._Getgpu: IJSGPU;
  138369. begin
  138370. Result:=ReadJSPropertyObject('gpu',TJSGPU) as IJSGPU;
  138371. end;
  138372. class function TJSNavigatorGPU.JSClassName: UnicodeString;
  138373. begin
  138374. Result:='NavigatorGPU';
  138375. end;
  138376. class function TJSNavigatorGPU.Cast(const Intf: IJSObject): IJSNavigatorGPU;
  138377. begin
  138378. Result:=TJSNavigatorGPU.JOBCast(Intf);
  138379. end;
  138380. function TJSGPU.requestAdapter(const aOptions: TJSGPURequestAdapterOptions): IJSPromise; // Promise<GPUAdapter>
  138381. begin
  138382. Result:=InvokeJSObjectResult('requestAdapter',[aOptions],TJSPromise) as IJSPromise;
  138383. end;
  138384. function TJSGPU.requestAdapter: IJSPromise; // Promise<GPUAdapter>
  138385. begin
  138386. Result:=InvokeJSObjectResult('requestAdapter',[],TJSPromise) as IJSPromise;
  138387. end;
  138388. function TJSGPU.getPreferredCanvasFormat: TGPUTextureFormat;
  138389. begin
  138390. Result:=InvokeJSUnicodeStringResult('getPreferredCanvasFormat',[]);
  138391. end;
  138392. class function TJSGPU.JSClassName: UnicodeString;
  138393. begin
  138394. Result:='GPU';
  138395. end;
  138396. class function TJSGPU.Cast(const Intf: IJSObject): IJSGPU;
  138397. begin
  138398. Result:=TJSGPU.JOBCast(Intf);
  138399. end;
  138400. function TJSGPURequestAdapterOptions._GetpowerPreference: TGPUPowerPreference;
  138401. begin
  138402. Result:=ReadJSPropertyUnicodeString('powerPreference');
  138403. end;
  138404. function TJSGPURequestAdapterOptions._GetforceFallbackAdapter: Boolean;
  138405. begin
  138406. Result:=ReadJSPropertyBoolean('forceFallbackAdapter');
  138407. end;
  138408. procedure TJSGPURequestAdapterOptions._SetpowerPreference(const aValue : TGPUPowerPreference);
  138409. begin
  138410. WriteJSPropertyUnicodeString('powerPreference',aValue);
  138411. end;
  138412. procedure TJSGPURequestAdapterOptions._SetforceFallbackAdapter(const aValue : Boolean);
  138413. begin
  138414. WriteJSPropertyBoolean('forceFallbackAdapter',aValue);
  138415. end;
  138416. class function TJSGPURequestAdapterOptions.JSClassName: UnicodeString;
  138417. begin
  138418. Result:='Object';
  138419. end;
  138420. class function TJSGPURequestAdapterOptions.Cast(const Intf: IJSObject): IJSGPURequestAdapterOptions;
  138421. begin
  138422. Result:=TJSGPURequestAdapterOptions.JOBCast(Intf);
  138423. end;
  138424. function TJSGPUAdapter._Getfeatures: IJSGPUSupportedFeatures;
  138425. begin
  138426. Result:=ReadJSPropertyObject('features',TJSGPUSupportedFeatures) as IJSGPUSupportedFeatures;
  138427. end;
  138428. function TJSGPUAdapter._Getlimits: IJSGPUSupportedLimits;
  138429. begin
  138430. Result:=ReadJSPropertyObject('limits',TJSGPUSupportedLimits) as IJSGPUSupportedLimits;
  138431. end;
  138432. function TJSGPUAdapter._GetisFallbackAdapter: Boolean;
  138433. begin
  138434. Result:=ReadJSPropertyBoolean('isFallbackAdapter');
  138435. end;
  138436. function TJSGPUAdapter.requestDevice(const aDescriptor: TJSGPUDeviceDescriptor): IJSPromise; // Promise<GPUDevice>
  138437. begin
  138438. Result:=InvokeJSObjectResult('requestDevice',[aDescriptor],TJSPromise) as IJSPromise;
  138439. end;
  138440. function TJSGPUAdapter.requestDevice: IJSPromise; // Promise<GPUDevice>
  138441. begin
  138442. Result:=InvokeJSObjectResult('requestDevice',[],TJSPromise) as IJSPromise;
  138443. end;
  138444. function TJSGPUAdapter.requestAdapterInfo(const aUnmaskHints: TUnicodeStringDynArray): IJSPromise; // Promise<GPUAdapterInfo>
  138445. begin
  138446. Result:=InvokeJSObjectResult('requestAdapterInfo',[aUnmaskHints],TJSPromise) as IJSPromise;
  138447. end;
  138448. function TJSGPUAdapter.requestAdapterInfo: IJSPromise; // Promise<GPUAdapterInfo>
  138449. begin
  138450. Result:=InvokeJSObjectResult('requestAdapterInfo',[],TJSPromise) as IJSPromise;
  138451. end;
  138452. class function TJSGPUAdapter.JSClassName: UnicodeString;
  138453. begin
  138454. Result:='GPUAdapter';
  138455. end;
  138456. class function TJSGPUAdapter.Cast(const Intf: IJSObject): IJSGPUAdapter;
  138457. begin
  138458. Result:=TJSGPUAdapter.JOBCast(Intf);
  138459. end;
  138460. function TJSGPUDeviceDescriptor._GetrequiredFeatures: TGPUFeatureNameDynArray;
  138461. begin
  138462. Result:=ReadJSPropertyObject('requiredFeatures',TJSArray) as TGPUFeatureNameDynArray;
  138463. end;
  138464. function TJSGPUDeviceDescriptor._GetrequiredLimits: IJSObject;
  138465. begin
  138466. Result:=ReadJSPropertyObject('requiredLimits',TJSObject) as IJSObject;
  138467. end;
  138468. function TJSGPUDeviceDescriptor._GetdefaultQueue: TJSGPUQueueDescriptor;
  138469. begin
  138470. Result:=ReadJSPropertyObject('defaultQueue',TJSGPUQueueDescriptor) as TJSGPUQueueDescriptor;
  138471. end;
  138472. procedure TJSGPUDeviceDescriptor._SetrequiredFeatures(const aValue : TGPUFeatureNameDynArray);
  138473. begin
  138474. WriteJSPropertyObject('requiredFeatures',aValue);
  138475. end;
  138476. procedure TJSGPUDeviceDescriptor._SetrequiredLimits(const aValue : IJSObject);
  138477. begin
  138478. WriteJSPropertyObject('requiredLimits',aValue);
  138479. end;
  138480. procedure TJSGPUDeviceDescriptor._SetdefaultQueue(const aValue : TJSGPUQueueDescriptor);
  138481. begin
  138482. WriteJSPropertyObject('defaultQueue',aValue);
  138483. end;
  138484. class function TJSGPUDeviceDescriptor.JSClassName: UnicodeString;
  138485. begin
  138486. Result:='Object';
  138487. end;
  138488. class function TJSGPUDeviceDescriptor.Cast(const Intf: IJSObject): IJSGPUDeviceDescriptor;
  138489. begin
  138490. Result:=TJSGPUDeviceDescriptor.JOBCast(Intf);
  138491. end;
  138492. function TJSGPUDevice._Getfeatures: IJSGPUSupportedFeatures;
  138493. begin
  138494. Result:=ReadJSPropertyObject('features',TJSGPUSupportedFeatures) as IJSGPUSupportedFeatures;
  138495. end;
  138496. function TJSGPUDevice._Getlimits: IJSGPUSupportedLimits;
  138497. begin
  138498. Result:=ReadJSPropertyObject('limits',TJSGPUSupportedLimits) as IJSGPUSupportedLimits;
  138499. end;
  138500. function TJSGPUDevice._Getqueue: IJSGPUQueue;
  138501. begin
  138502. Result:=ReadJSPropertyObject('queue',TJSGPUQueue) as IJSGPUQueue;
  138503. end;
  138504. function TJSGPUDevice._Getlost: IJSPromise;
  138505. begin
  138506. Result:=ReadJSPropertyObject('lost',TJSPromise) as IJSPromise;
  138507. end;
  138508. function TJSGPUDevice._Getonuncapturederror: TEventHandler;
  138509. begin
  138510. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onuncapturederror')));
  138511. end;
  138512. function TJSGPUDevice._Getlabel_: UnicodeString;
  138513. begin
  138514. Result:=ReadJSPropertyUnicodeString('label');
  138515. end;
  138516. procedure TJSGPUDevice._Setonuncapturederror(const aValue : TEventHandler);
  138517. begin
  138518. WriteJSPropertyMethod('onuncapturederror',TMethod(aValue));
  138519. end;
  138520. procedure TJSGPUDevice._Setlabel_(const aValue : UnicodeString);
  138521. begin
  138522. WriteJSPropertyUnicodeString('label',aValue);
  138523. end;
  138524. procedure TJSGPUDevice.destroy;
  138525. begin
  138526. InvokeJSNoResult('destroy',[]);
  138527. end;
  138528. function TJSGPUDevice.createBuffer(const aDescriptor: TJSGPUBufferDescriptor): IJSGPUBuffer;
  138529. begin
  138530. Result:=InvokeJSObjectResult('createBuffer',[aDescriptor],TJSGPUBuffer) as IJSGPUBuffer;
  138531. end;
  138532. function TJSGPUDevice.createTexture(const aDescriptor: TJSGPUTextureDescriptor): IJSGPUTexture;
  138533. begin
  138534. Result:=InvokeJSObjectResult('createTexture',[aDescriptor],TJSGPUTexture) as IJSGPUTexture;
  138535. end;
  138536. function TJSGPUDevice.createSampler(const aDescriptor: TJSGPUSamplerDescriptor): IJSGPUSampler;
  138537. begin
  138538. Result:=InvokeJSObjectResult('createSampler',[aDescriptor],TJSGPUSampler) as IJSGPUSampler;
  138539. end;
  138540. function TJSGPUDevice.createSampler: IJSGPUSampler;
  138541. begin
  138542. Result:=InvokeJSObjectResult('createSampler',[],TJSGPUSampler) as IJSGPUSampler;
  138543. end;
  138544. function TJSGPUDevice.createBindGroupLayout(const aDescriptor: TJSGPUBindGroupLayoutDescriptor): IJSGPUBindGroupLayout;
  138545. begin
  138546. Result:=InvokeJSObjectResult('createBindGroupLayout',[aDescriptor],TJSGPUBindGroupLayout) as IJSGPUBindGroupLayout;
  138547. end;
  138548. function TJSGPUDevice.createPipelineLayout(const aDescriptor: TJSGPUPipelineLayoutDescriptor): IJSGPUPipelineLayout;
  138549. begin
  138550. Result:=InvokeJSObjectResult('createPipelineLayout',[aDescriptor],TJSGPUPipelineLayout) as IJSGPUPipelineLayout;
  138551. end;
  138552. function TJSGPUDevice.createBindGroup(const aDescriptor: TJSGPUBindGroupDescriptor): IJSGPUBindGroup;
  138553. begin
  138554. Result:=InvokeJSObjectResult('createBindGroup',[aDescriptor],TJSGPUBindGroup) as IJSGPUBindGroup;
  138555. end;
  138556. function TJSGPUDevice.createShaderModule(const aDescriptor: TJSGPUShaderModuleDescriptor): IJSGPUShaderModule;
  138557. begin
  138558. Result:=InvokeJSObjectResult('createShaderModule',[aDescriptor],TJSGPUShaderModule) as IJSGPUShaderModule;
  138559. end;
  138560. function TJSGPUDevice.createComputePipeline(const aDescriptor: TJSGPUComputePipelineDescriptor): IJSGPUComputePipeline;
  138561. begin
  138562. Result:=InvokeJSObjectResult('createComputePipeline',[aDescriptor],TJSGPUComputePipeline) as IJSGPUComputePipeline;
  138563. end;
  138564. function TJSGPUDevice.createRenderPipeline(const aDescriptor: TJSGPURenderPipelineDescriptor): IJSGPURenderPipeline;
  138565. begin
  138566. Result:=InvokeJSObjectResult('createRenderPipeline',[aDescriptor],TJSGPURenderPipeline) as IJSGPURenderPipeline;
  138567. end;
  138568. function TJSGPUDevice.createComputePipelineAsync(const aDescriptor: TJSGPUComputePipelineDescriptor): IJSPromise; // Promise<GPUComputePipeline>
  138569. begin
  138570. Result:=InvokeJSObjectResult('createComputePipelineAsync',[aDescriptor],TJSPromise) as IJSPromise;
  138571. end;
  138572. function TJSGPUDevice.createRenderPipelineAsync(const aDescriptor: TJSGPURenderPipelineDescriptor): IJSPromise; // Promise<GPURenderPipeline>
  138573. begin
  138574. Result:=InvokeJSObjectResult('createRenderPipelineAsync',[aDescriptor],TJSPromise) as IJSPromise;
  138575. end;
  138576. function TJSGPUDevice.createCommandEncoder(const aDescriptor: TJSGPUCommandEncoderDescriptor): IJSGPUCommandEncoder;
  138577. begin
  138578. Result:=InvokeJSObjectResult('createCommandEncoder',[aDescriptor],TJSGPUCommandEncoder) as IJSGPUCommandEncoder;
  138579. end;
  138580. function TJSGPUDevice.createCommandEncoder: IJSGPUCommandEncoder;
  138581. begin
  138582. Result:=InvokeJSObjectResult('createCommandEncoder',[],TJSGPUCommandEncoder) as IJSGPUCommandEncoder;
  138583. end;
  138584. function TJSGPUDevice.createRenderBundleEncoder(const aDescriptor: TJSGPURenderBundleEncoderDescriptor): IJSGPURenderBundleEncoder;
  138585. begin
  138586. Result:=InvokeJSObjectResult('createRenderBundleEncoder',[aDescriptor],TJSGPURenderBundleEncoder) as IJSGPURenderBundleEncoder;
  138587. end;
  138588. procedure TJSGPUDevice.pushErrorScope(aFilter: TGPUErrorFilter);
  138589. begin
  138590. InvokeJSNoResult('pushErrorScope',[aFilter]);
  138591. end;
  138592. function TJSGPUDevice.popErrorScope: IJSPromise; // Promise<GPUError>
  138593. begin
  138594. Result:=InvokeJSObjectResult('popErrorScope',[],TJSPromise) as IJSPromise;
  138595. end;
  138596. class function TJSGPUDevice.JSClassName: UnicodeString;
  138597. begin
  138598. Result:='GPUDevice';
  138599. end;
  138600. class function TJSGPUDevice.Cast(const Intf: IJSObject): IJSGPUDevice;
  138601. begin
  138602. Result:=TJSGPUDevice.JOBCast(Intf);
  138603. end;
  138604. function TJSGPUBuffer._Getsize: TGPUSize64Out;
  138605. begin
  138606. Result:=ReadJSPropertyInt64('size');
  138607. end;
  138608. function TJSGPUBuffer._Getusage: TGPUFlagsConstant;
  138609. begin
  138610. Result:=ReadJSPropertyInt64('usage');
  138611. end;
  138612. function TJSGPUBuffer._GetmapState: TGPUBufferMapState;
  138613. begin
  138614. Result:=ReadJSPropertyUnicodeString('mapState');
  138615. end;
  138616. function TJSGPUBuffer.mapAsync(aMode: TGPUMapModeFlags; aOffset: TGPUSize64; aSize: TGPUSize64): IJSPromise; // Promise<undefined>
  138617. begin
  138618. Result:=InvokeJSObjectResult('mapAsync',[aMode,aOffset,aSize],TJSPromise) as IJSPromise;
  138619. end;
  138620. function TJSGPUBuffer.mapAsync(aMode: TGPUMapModeFlags): IJSPromise; // Promise<undefined>
  138621. begin
  138622. Result:=InvokeJSObjectResult('mapAsync',[aMode],TJSPromise) as IJSPromise;
  138623. end;
  138624. function TJSGPUBuffer.mapAsync(aMode: TGPUMapModeFlags; aOffset: TGPUSize64): IJSPromise; // Promise<undefined>
  138625. begin
  138626. Result:=InvokeJSObjectResult('mapAsync',[aMode,aOffset],TJSPromise) as IJSPromise;
  138627. end;
  138628. function TJSGPUBuffer.getMappedRange(aOffset: TGPUSize64; aSize: TGPUSize64): IJSArrayBuffer;
  138629. begin
  138630. Result:=InvokeJSObjectResult('getMappedRange',[aOffset,aSize],TJSArray) as IJSArrayBuffer;
  138631. end;
  138632. function TJSGPUBuffer.getMappedRange: IJSArrayBuffer;
  138633. begin
  138634. Result:=InvokeJSObjectResult('getMappedRange',[],TJSArray) as IJSArrayBuffer;
  138635. end;
  138636. function TJSGPUBuffer.getMappedRange(aOffset: TGPUSize64): IJSArrayBuffer;
  138637. begin
  138638. Result:=InvokeJSObjectResult('getMappedRange',[aOffset],TJSArray) as IJSArrayBuffer;
  138639. end;
  138640. procedure TJSGPUBuffer.unmap;
  138641. begin
  138642. InvokeJSNoResult('unmap',[]);
  138643. end;
  138644. procedure TJSGPUBuffer.destroy;
  138645. begin
  138646. InvokeJSNoResult('destroy',[]);
  138647. end;
  138648. class function TJSGPUBuffer.JSClassName: UnicodeString;
  138649. begin
  138650. Result:='GPUBuffer';
  138651. end;
  138652. class function TJSGPUBuffer.Cast(const Intf: IJSObject): IJSGPUBuffer;
  138653. begin
  138654. Result:=TJSGPUBuffer.JOBCast(Intf);
  138655. end;
  138656. function TJSGPUBufferDescriptor._Getsize: TGPUSize64;
  138657. begin
  138658. Result:=ReadJSPropertyInt64('size');
  138659. end;
  138660. function TJSGPUBufferDescriptor._Getusage: TGPUBufferUsageFlags;
  138661. begin
  138662. Result:=ReadJSPropertyInt64('usage');
  138663. end;
  138664. function TJSGPUBufferDescriptor._GetmappedAtCreation: Boolean;
  138665. begin
  138666. Result:=ReadJSPropertyBoolean('mappedAtCreation');
  138667. end;
  138668. procedure TJSGPUBufferDescriptor._Setsize(const aValue : TGPUSize64);
  138669. begin
  138670. WriteJSPropertyDouble('size',aValue);
  138671. end;
  138672. procedure TJSGPUBufferDescriptor._Setusage(const aValue : TGPUBufferUsageFlags);
  138673. begin
  138674. WriteJSPropertyDouble('usage',aValue);
  138675. end;
  138676. procedure TJSGPUBufferDescriptor._SetmappedAtCreation(const aValue : Boolean);
  138677. begin
  138678. WriteJSPropertyBoolean('mappedAtCreation',aValue);
  138679. end;
  138680. class function TJSGPUBufferDescriptor.JSClassName: UnicodeString;
  138681. begin
  138682. Result:='Object';
  138683. end;
  138684. class function TJSGPUBufferDescriptor.Cast(const Intf: IJSObject): IJSGPUBufferDescriptor;
  138685. begin
  138686. Result:=TJSGPUBufferDescriptor.JOBCast(Intf);
  138687. end;
  138688. class function TJSGPUBufferUsage.JSClassName: UnicodeString;
  138689. begin
  138690. Result:='GPUBufferUsage';
  138691. end;
  138692. class function TJSGPUBufferUsage.Cast(const Intf: IJSObject): IJSGPUBufferUsage;
  138693. begin
  138694. Result:=TJSGPUBufferUsage.JOBCast(Intf);
  138695. end;
  138696. class function TJSGPUMapMode.JSClassName: UnicodeString;
  138697. begin
  138698. Result:='GPUMapMode';
  138699. end;
  138700. class function TJSGPUMapMode.Cast(const Intf: IJSObject): IJSGPUMapMode;
  138701. begin
  138702. Result:=TJSGPUMapMode.JOBCast(Intf);
  138703. end;
  138704. function TJSGPUTexture._Getwidth: TGPUIntegerCoordinateOut;
  138705. begin
  138706. Result:=ReadJSPropertyInt64('width');
  138707. end;
  138708. function TJSGPUTexture._Getheight: TGPUIntegerCoordinateOut;
  138709. begin
  138710. Result:=ReadJSPropertyInt64('height');
  138711. end;
  138712. function TJSGPUTexture._GetdepthOrArrayLayers: TGPUIntegerCoordinateOut;
  138713. begin
  138714. Result:=ReadJSPropertyInt64('depthOrArrayLayers');
  138715. end;
  138716. function TJSGPUTexture._GetmipLevelCount: TGPUIntegerCoordinateOut;
  138717. begin
  138718. Result:=ReadJSPropertyInt64('mipLevelCount');
  138719. end;
  138720. function TJSGPUTexture._GetsampleCount: TGPUSize32Out;
  138721. begin
  138722. Result:=ReadJSPropertyInt64('sampleCount');
  138723. end;
  138724. function TJSGPUTexture._Getdimension: TGPUTextureDimension;
  138725. begin
  138726. Result:=ReadJSPropertyUnicodeString('dimension');
  138727. end;
  138728. function TJSGPUTexture._Getformat: TGPUTextureFormat;
  138729. begin
  138730. Result:=ReadJSPropertyUnicodeString('format');
  138731. end;
  138732. function TJSGPUTexture._Getusage: TGPUFlagsConstant;
  138733. begin
  138734. Result:=ReadJSPropertyInt64('usage');
  138735. end;
  138736. function TJSGPUTexture.createView(const aDescriptor: TJSGPUTextureViewDescriptor): IJSGPUTextureView;
  138737. begin
  138738. Result:=InvokeJSObjectResult('createView',[aDescriptor],TJSGPUTextureView) as IJSGPUTextureView;
  138739. end;
  138740. function TJSGPUTexture.createView: IJSGPUTextureView;
  138741. begin
  138742. Result:=InvokeJSObjectResult('createView',[],TJSGPUTextureView) as IJSGPUTextureView;
  138743. end;
  138744. procedure TJSGPUTexture.destroy;
  138745. begin
  138746. InvokeJSNoResult('destroy',[]);
  138747. end;
  138748. class function TJSGPUTexture.JSClassName: UnicodeString;
  138749. begin
  138750. Result:='GPUTexture';
  138751. end;
  138752. class function TJSGPUTexture.Cast(const Intf: IJSObject): IJSGPUTexture;
  138753. begin
  138754. Result:=TJSGPUTexture.JOBCast(Intf);
  138755. end;
  138756. function TJSGPUTextureDescriptor._Getsize: TGPUExtent3D;
  138757. begin
  138758. Result:=ReadJSPropertyVariant('size');
  138759. end;
  138760. function TJSGPUTextureDescriptor._GetmipLevelCount: TGPUIntegerCoordinate;
  138761. begin
  138762. Result:=ReadJSPropertyInt64('mipLevelCount');
  138763. end;
  138764. function TJSGPUTextureDescriptor._GetsampleCount: TGPUSize32;
  138765. begin
  138766. Result:=ReadJSPropertyInt64('sampleCount');
  138767. end;
  138768. function TJSGPUTextureDescriptor._Getdimension: TGPUTextureDimension;
  138769. begin
  138770. Result:=ReadJSPropertyUnicodeString('dimension');
  138771. end;
  138772. function TJSGPUTextureDescriptor._Getformat: TGPUTextureFormat;
  138773. begin
  138774. Result:=ReadJSPropertyUnicodeString('format');
  138775. end;
  138776. function TJSGPUTextureDescriptor._Getusage: TGPUTextureUsageFlags;
  138777. begin
  138778. Result:=ReadJSPropertyInt64('usage');
  138779. end;
  138780. function TJSGPUTextureDescriptor._GetviewFormats: TGPUTextureFormatDynArray;
  138781. begin
  138782. Result:=ReadJSPropertyObject('viewFormats',TJSArray) as TGPUTextureFormatDynArray;
  138783. end;
  138784. procedure TJSGPUTextureDescriptor._Setsize(const aValue : TGPUExtent3D);
  138785. begin
  138786. WriteJSPropertyVariant('size',aValue);
  138787. end;
  138788. procedure TJSGPUTextureDescriptor._SetmipLevelCount(const aValue : TGPUIntegerCoordinate);
  138789. begin
  138790. WriteJSPropertyDouble('mipLevelCount',aValue);
  138791. end;
  138792. procedure TJSGPUTextureDescriptor._SetsampleCount(const aValue : TGPUSize32);
  138793. begin
  138794. WriteJSPropertyDouble('sampleCount',aValue);
  138795. end;
  138796. procedure TJSGPUTextureDescriptor._Setdimension(const aValue : TGPUTextureDimension);
  138797. begin
  138798. WriteJSPropertyUnicodeString('dimension',aValue);
  138799. end;
  138800. procedure TJSGPUTextureDescriptor._Setformat(const aValue : TGPUTextureFormat);
  138801. begin
  138802. WriteJSPropertyUnicodeString('format',aValue);
  138803. end;
  138804. procedure TJSGPUTextureDescriptor._Setusage(const aValue : TGPUTextureUsageFlags);
  138805. begin
  138806. WriteJSPropertyDouble('usage',aValue);
  138807. end;
  138808. procedure TJSGPUTextureDescriptor._SetviewFormats(const aValue : TGPUTextureFormatDynArray);
  138809. begin
  138810. WriteJSPropertyObject('viewFormats',aValue);
  138811. end;
  138812. class function TJSGPUTextureDescriptor.JSClassName: UnicodeString;
  138813. begin
  138814. Result:='Object';
  138815. end;
  138816. class function TJSGPUTextureDescriptor.Cast(const Intf: IJSObject): IJSGPUTextureDescriptor;
  138817. begin
  138818. Result:=TJSGPUTextureDescriptor.JOBCast(Intf);
  138819. end;
  138820. class function TJSGPUTextureUsage.JSClassName: UnicodeString;
  138821. begin
  138822. Result:='GPUTextureUsage';
  138823. end;
  138824. class function TJSGPUTextureUsage.Cast(const Intf: IJSObject): IJSGPUTextureUsage;
  138825. begin
  138826. Result:=TJSGPUTextureUsage.JOBCast(Intf);
  138827. end;
  138828. class function TJSGPUTextureView.JSClassName: UnicodeString;
  138829. begin
  138830. Result:='GPUTextureView';
  138831. end;
  138832. class function TJSGPUTextureView.Cast(const Intf: IJSObject): IJSGPUTextureView;
  138833. begin
  138834. Result:=TJSGPUTextureView.JOBCast(Intf);
  138835. end;
  138836. function TJSGPUTextureViewDescriptor._Getformat: TGPUTextureFormat;
  138837. begin
  138838. Result:=ReadJSPropertyUnicodeString('format');
  138839. end;
  138840. function TJSGPUTextureViewDescriptor._Getdimension: TGPUTextureViewDimension;
  138841. begin
  138842. Result:=ReadJSPropertyUnicodeString('dimension');
  138843. end;
  138844. function TJSGPUTextureViewDescriptor._Getaspect: TGPUTextureAspect;
  138845. begin
  138846. Result:=ReadJSPropertyUnicodeString('aspect');
  138847. end;
  138848. function TJSGPUTextureViewDescriptor._GetbaseMipLevel: TGPUIntegerCoordinate;
  138849. begin
  138850. Result:=ReadJSPropertyInt64('baseMipLevel');
  138851. end;
  138852. function TJSGPUTextureViewDescriptor._GetmipLevelCount: TGPUIntegerCoordinate;
  138853. begin
  138854. Result:=ReadJSPropertyInt64('mipLevelCount');
  138855. end;
  138856. function TJSGPUTextureViewDescriptor._GetbaseArrayLayer: TGPUIntegerCoordinate;
  138857. begin
  138858. Result:=ReadJSPropertyInt64('baseArrayLayer');
  138859. end;
  138860. function TJSGPUTextureViewDescriptor._GetarrayLayerCount: TGPUIntegerCoordinate;
  138861. begin
  138862. Result:=ReadJSPropertyInt64('arrayLayerCount');
  138863. end;
  138864. procedure TJSGPUTextureViewDescriptor._Setformat(const aValue : TGPUTextureFormat);
  138865. begin
  138866. WriteJSPropertyUnicodeString('format',aValue);
  138867. end;
  138868. procedure TJSGPUTextureViewDescriptor._Setdimension(const aValue : TGPUTextureViewDimension);
  138869. begin
  138870. WriteJSPropertyUnicodeString('dimension',aValue);
  138871. end;
  138872. procedure TJSGPUTextureViewDescriptor._Setaspect(const aValue : TGPUTextureAspect);
  138873. begin
  138874. WriteJSPropertyUnicodeString('aspect',aValue);
  138875. end;
  138876. procedure TJSGPUTextureViewDescriptor._SetbaseMipLevel(const aValue : TGPUIntegerCoordinate);
  138877. begin
  138878. WriteJSPropertyDouble('baseMipLevel',aValue);
  138879. end;
  138880. procedure TJSGPUTextureViewDescriptor._SetmipLevelCount(const aValue : TGPUIntegerCoordinate);
  138881. begin
  138882. WriteJSPropertyDouble('mipLevelCount',aValue);
  138883. end;
  138884. procedure TJSGPUTextureViewDescriptor._SetbaseArrayLayer(const aValue : TGPUIntegerCoordinate);
  138885. begin
  138886. WriteJSPropertyDouble('baseArrayLayer',aValue);
  138887. end;
  138888. procedure TJSGPUTextureViewDescriptor._SetarrayLayerCount(const aValue : TGPUIntegerCoordinate);
  138889. begin
  138890. WriteJSPropertyDouble('arrayLayerCount',aValue);
  138891. end;
  138892. class function TJSGPUTextureViewDescriptor.JSClassName: UnicodeString;
  138893. begin
  138894. Result:='Object';
  138895. end;
  138896. class function TJSGPUTextureViewDescriptor.Cast(const Intf: IJSObject): IJSGPUTextureViewDescriptor;
  138897. begin
  138898. Result:=TJSGPUTextureViewDescriptor.JOBCast(Intf);
  138899. end;
  138900. class function TJSGPUSampler.JSClassName: UnicodeString;
  138901. begin
  138902. Result:='GPUSampler';
  138903. end;
  138904. class function TJSGPUSampler.Cast(const Intf: IJSObject): IJSGPUSampler;
  138905. begin
  138906. Result:=TJSGPUSampler.JOBCast(Intf);
  138907. end;
  138908. function TJSGPUSamplerDescriptor._GetaddressModeU: TGPUAddressMode;
  138909. begin
  138910. Result:=ReadJSPropertyUnicodeString('addressModeU');
  138911. end;
  138912. function TJSGPUSamplerDescriptor._GetaddressModeV: TGPUAddressMode;
  138913. begin
  138914. Result:=ReadJSPropertyUnicodeString('addressModeV');
  138915. end;
  138916. function TJSGPUSamplerDescriptor._GetaddressModeW: TGPUAddressMode;
  138917. begin
  138918. Result:=ReadJSPropertyUnicodeString('addressModeW');
  138919. end;
  138920. function TJSGPUSamplerDescriptor._GetmagFilter: TGPUFilterMode;
  138921. begin
  138922. Result:=ReadJSPropertyUnicodeString('magFilter');
  138923. end;
  138924. function TJSGPUSamplerDescriptor._GetminFilter: TGPUFilterMode;
  138925. begin
  138926. Result:=ReadJSPropertyUnicodeString('minFilter');
  138927. end;
  138928. function TJSGPUSamplerDescriptor._GetmipmapFilter: TGPUMipmapFilterMode;
  138929. begin
  138930. Result:=ReadJSPropertyUnicodeString('mipmapFilter');
  138931. end;
  138932. function TJSGPUSamplerDescriptor._GetlodMinClamp: Single;
  138933. begin
  138934. Result:=ReadJSPropertyDouble('lodMinClamp');
  138935. end;
  138936. function TJSGPUSamplerDescriptor._GetlodMaxClamp: Single;
  138937. begin
  138938. Result:=ReadJSPropertyDouble('lodMaxClamp');
  138939. end;
  138940. function TJSGPUSamplerDescriptor._Getcompare: TGPUCompareFunction;
  138941. begin
  138942. Result:=ReadJSPropertyUnicodeString('compare');
  138943. end;
  138944. function TJSGPUSamplerDescriptor._GetmaxAnisotropy: Word;
  138945. begin
  138946. Result:=ReadJSPropertyLongInt('maxAnisotropy');
  138947. end;
  138948. procedure TJSGPUSamplerDescriptor._SetaddressModeU(const aValue : TGPUAddressMode);
  138949. begin
  138950. WriteJSPropertyUnicodeString('addressModeU',aValue);
  138951. end;
  138952. procedure TJSGPUSamplerDescriptor._SetaddressModeV(const aValue : TGPUAddressMode);
  138953. begin
  138954. WriteJSPropertyUnicodeString('addressModeV',aValue);
  138955. end;
  138956. procedure TJSGPUSamplerDescriptor._SetaddressModeW(const aValue : TGPUAddressMode);
  138957. begin
  138958. WriteJSPropertyUnicodeString('addressModeW',aValue);
  138959. end;
  138960. procedure TJSGPUSamplerDescriptor._SetmagFilter(const aValue : TGPUFilterMode);
  138961. begin
  138962. WriteJSPropertyUnicodeString('magFilter',aValue);
  138963. end;
  138964. procedure TJSGPUSamplerDescriptor._SetminFilter(const aValue : TGPUFilterMode);
  138965. begin
  138966. WriteJSPropertyUnicodeString('minFilter',aValue);
  138967. end;
  138968. procedure TJSGPUSamplerDescriptor._SetmipmapFilter(const aValue : TGPUMipmapFilterMode);
  138969. begin
  138970. WriteJSPropertyUnicodeString('mipmapFilter',aValue);
  138971. end;
  138972. procedure TJSGPUSamplerDescriptor._SetlodMinClamp(const aValue : Single);
  138973. begin
  138974. WriteJSPropertyDouble('lodMinClamp',aValue);
  138975. end;
  138976. procedure TJSGPUSamplerDescriptor._SetlodMaxClamp(const aValue : Single);
  138977. begin
  138978. WriteJSPropertyDouble('lodMaxClamp',aValue);
  138979. end;
  138980. procedure TJSGPUSamplerDescriptor._Setcompare(const aValue : TGPUCompareFunction);
  138981. begin
  138982. WriteJSPropertyUnicodeString('compare',aValue);
  138983. end;
  138984. procedure TJSGPUSamplerDescriptor._SetmaxAnisotropy(const aValue : Word);
  138985. begin
  138986. WriteJSPropertyLongInt('maxAnisotropy',aValue);
  138987. end;
  138988. class function TJSGPUSamplerDescriptor.JSClassName: UnicodeString;
  138989. begin
  138990. Result:='Object';
  138991. end;
  138992. class function TJSGPUSamplerDescriptor.Cast(const Intf: IJSObject): IJSGPUSamplerDescriptor;
  138993. begin
  138994. Result:=TJSGPUSamplerDescriptor.JOBCast(Intf);
  138995. end;
  138996. class function TJSGPUBindGroupLayout.JSClassName: UnicodeString;
  138997. begin
  138998. Result:='GPUBindGroupLayout';
  138999. end;
  139000. class function TJSGPUBindGroupLayout.Cast(const Intf: IJSObject): IJSGPUBindGroupLayout;
  139001. begin
  139002. Result:=TJSGPUBindGroupLayout.JOBCast(Intf);
  139003. end;
  139004. function TJSGPUBindGroupLayoutDescriptor._Getentries: TJSGPUBindGroupLayoutEntryDynArray;
  139005. begin
  139006. Result:=ReadJSPropertyObject('entries',TJSArray) as TJSGPUBindGroupLayoutEntryDynArray;
  139007. end;
  139008. procedure TJSGPUBindGroupLayoutDescriptor._Setentries(const aValue : TJSGPUBindGroupLayoutEntryDynArray);
  139009. begin
  139010. WriteJSPropertyObject('entries',aValue);
  139011. end;
  139012. class function TJSGPUBindGroupLayoutDescriptor.JSClassName: UnicodeString;
  139013. begin
  139014. Result:='Object';
  139015. end;
  139016. class function TJSGPUBindGroupLayoutDescriptor.Cast(const Intf: IJSObject): IJSGPUBindGroupLayoutDescriptor;
  139017. begin
  139018. Result:=TJSGPUBindGroupLayoutDescriptor.JOBCast(Intf);
  139019. end;
  139020. function TJSGPUBindGroupLayoutEntry._Getbinding: TGPUIndex32;
  139021. begin
  139022. Result:=ReadJSPropertyInt64('binding');
  139023. end;
  139024. function TJSGPUBindGroupLayoutEntry._Getvisibility: TGPUShaderStageFlags;
  139025. begin
  139026. Result:=ReadJSPropertyInt64('visibility');
  139027. end;
  139028. function TJSGPUBindGroupLayoutEntry._Getbuffer: TJSGPUBufferBindingLayout;
  139029. begin
  139030. Result:=ReadJSPropertyObject('buffer',TJSGPUBufferBindingLayout) as TJSGPUBufferBindingLayout;
  139031. end;
  139032. function TJSGPUBindGroupLayoutEntry._Getsampler: TJSGPUSamplerBindingLayout;
  139033. begin
  139034. Result:=ReadJSPropertyObject('sampler',TJSGPUSamplerBindingLayout) as TJSGPUSamplerBindingLayout;
  139035. end;
  139036. function TJSGPUBindGroupLayoutEntry._Gettexture: TJSGPUTextureBindingLayout;
  139037. begin
  139038. Result:=ReadJSPropertyObject('texture',TJSGPUTextureBindingLayout) as TJSGPUTextureBindingLayout;
  139039. end;
  139040. function TJSGPUBindGroupLayoutEntry._GetstorageTexture: TJSGPUStorageTextureBindingLayout;
  139041. begin
  139042. Result:=ReadJSPropertyObject('storageTexture',TJSGPUStorageTextureBindingLayout) as TJSGPUStorageTextureBindingLayout;
  139043. end;
  139044. procedure TJSGPUBindGroupLayoutEntry._Setbinding(const aValue : TGPUIndex32);
  139045. begin
  139046. WriteJSPropertyDouble('binding',aValue);
  139047. end;
  139048. procedure TJSGPUBindGroupLayoutEntry._Setvisibility(const aValue : TGPUShaderStageFlags);
  139049. begin
  139050. WriteJSPropertyDouble('visibility',aValue);
  139051. end;
  139052. procedure TJSGPUBindGroupLayoutEntry._Setbuffer(const aValue : TJSGPUBufferBindingLayout);
  139053. begin
  139054. WriteJSPropertyObject('buffer',aValue);
  139055. end;
  139056. procedure TJSGPUBindGroupLayoutEntry._Setsampler(const aValue : TJSGPUSamplerBindingLayout);
  139057. begin
  139058. WriteJSPropertyObject('sampler',aValue);
  139059. end;
  139060. procedure TJSGPUBindGroupLayoutEntry._Settexture(const aValue : TJSGPUTextureBindingLayout);
  139061. begin
  139062. WriteJSPropertyObject('texture',aValue);
  139063. end;
  139064. procedure TJSGPUBindGroupLayoutEntry._SetstorageTexture(const aValue : TJSGPUStorageTextureBindingLayout);
  139065. begin
  139066. WriteJSPropertyObject('storageTexture',aValue);
  139067. end;
  139068. class function TJSGPUBindGroupLayoutEntry.JSClassName: UnicodeString;
  139069. begin
  139070. Result:='Object';
  139071. end;
  139072. class function TJSGPUBindGroupLayoutEntry.Cast(const Intf: IJSObject): IJSGPUBindGroupLayoutEntry;
  139073. begin
  139074. Result:=TJSGPUBindGroupLayoutEntry.JOBCast(Intf);
  139075. end;
  139076. class function TJSGPUShaderStage.JSClassName: UnicodeString;
  139077. begin
  139078. Result:='GPUShaderStage';
  139079. end;
  139080. class function TJSGPUShaderStage.Cast(const Intf: IJSObject): IJSGPUShaderStage;
  139081. begin
  139082. Result:=TJSGPUShaderStage.JOBCast(Intf);
  139083. end;
  139084. function TJSGPUBufferBindingLayout._Gettype_: TGPUBufferBindingType;
  139085. begin
  139086. Result:=ReadJSPropertyUnicodeString('type');
  139087. end;
  139088. function TJSGPUBufferBindingLayout._GethasDynamicOffset: Boolean;
  139089. begin
  139090. Result:=ReadJSPropertyBoolean('hasDynamicOffset');
  139091. end;
  139092. function TJSGPUBufferBindingLayout._GetminBindingSize: TGPUSize64;
  139093. begin
  139094. Result:=ReadJSPropertyInt64('minBindingSize');
  139095. end;
  139096. procedure TJSGPUBufferBindingLayout._Settype_(const aValue : TGPUBufferBindingType);
  139097. begin
  139098. WriteJSPropertyUnicodeString('type',aValue);
  139099. end;
  139100. procedure TJSGPUBufferBindingLayout._SethasDynamicOffset(const aValue : Boolean);
  139101. begin
  139102. WriteJSPropertyBoolean('hasDynamicOffset',aValue);
  139103. end;
  139104. procedure TJSGPUBufferBindingLayout._SetminBindingSize(const aValue : TGPUSize64);
  139105. begin
  139106. WriteJSPropertyDouble('minBindingSize',aValue);
  139107. end;
  139108. class function TJSGPUBufferBindingLayout.JSClassName: UnicodeString;
  139109. begin
  139110. Result:='Object';
  139111. end;
  139112. class function TJSGPUBufferBindingLayout.Cast(const Intf: IJSObject): IJSGPUBufferBindingLayout;
  139113. begin
  139114. Result:=TJSGPUBufferBindingLayout.JOBCast(Intf);
  139115. end;
  139116. function TJSGPUSamplerBindingLayout._Gettype_: TGPUSamplerBindingType;
  139117. begin
  139118. Result:=ReadJSPropertyUnicodeString('type');
  139119. end;
  139120. procedure TJSGPUSamplerBindingLayout._Settype_(const aValue : TGPUSamplerBindingType);
  139121. begin
  139122. WriteJSPropertyUnicodeString('type',aValue);
  139123. end;
  139124. class function TJSGPUSamplerBindingLayout.JSClassName: UnicodeString;
  139125. begin
  139126. Result:='Object';
  139127. end;
  139128. class function TJSGPUSamplerBindingLayout.Cast(const Intf: IJSObject): IJSGPUSamplerBindingLayout;
  139129. begin
  139130. Result:=TJSGPUSamplerBindingLayout.JOBCast(Intf);
  139131. end;
  139132. function TJSGPUTextureBindingLayout._GetsampleType: TGPUTextureSampleType;
  139133. begin
  139134. Result:=ReadJSPropertyUnicodeString('sampleType');
  139135. end;
  139136. function TJSGPUTextureBindingLayout._GetviewDimension: TGPUTextureViewDimension;
  139137. begin
  139138. Result:=ReadJSPropertyUnicodeString('viewDimension');
  139139. end;
  139140. function TJSGPUTextureBindingLayout._Getmultisampled: Boolean;
  139141. begin
  139142. Result:=ReadJSPropertyBoolean('multisampled');
  139143. end;
  139144. procedure TJSGPUTextureBindingLayout._SetsampleType(const aValue : TGPUTextureSampleType);
  139145. begin
  139146. WriteJSPropertyUnicodeString('sampleType',aValue);
  139147. end;
  139148. procedure TJSGPUTextureBindingLayout._SetviewDimension(const aValue : TGPUTextureViewDimension);
  139149. begin
  139150. WriteJSPropertyUnicodeString('viewDimension',aValue);
  139151. end;
  139152. procedure TJSGPUTextureBindingLayout._Setmultisampled(const aValue : Boolean);
  139153. begin
  139154. WriteJSPropertyBoolean('multisampled',aValue);
  139155. end;
  139156. class function TJSGPUTextureBindingLayout.JSClassName: UnicodeString;
  139157. begin
  139158. Result:='Object';
  139159. end;
  139160. class function TJSGPUTextureBindingLayout.Cast(const Intf: IJSObject): IJSGPUTextureBindingLayout;
  139161. begin
  139162. Result:=TJSGPUTextureBindingLayout.JOBCast(Intf);
  139163. end;
  139164. function TJSGPUStorageTextureBindingLayout._Getaccess: TGPUStorageTextureAccess;
  139165. begin
  139166. Result:=ReadJSPropertyUnicodeString('access');
  139167. end;
  139168. function TJSGPUStorageTextureBindingLayout._Getformat: TGPUTextureFormat;
  139169. begin
  139170. Result:=ReadJSPropertyUnicodeString('format');
  139171. end;
  139172. function TJSGPUStorageTextureBindingLayout._GetviewDimension: TGPUTextureViewDimension;
  139173. begin
  139174. Result:=ReadJSPropertyUnicodeString('viewDimension');
  139175. end;
  139176. procedure TJSGPUStorageTextureBindingLayout._Setaccess(const aValue : TGPUStorageTextureAccess);
  139177. begin
  139178. WriteJSPropertyUnicodeString('access',aValue);
  139179. end;
  139180. procedure TJSGPUStorageTextureBindingLayout._Setformat(const aValue : TGPUTextureFormat);
  139181. begin
  139182. WriteJSPropertyUnicodeString('format',aValue);
  139183. end;
  139184. procedure TJSGPUStorageTextureBindingLayout._SetviewDimension(const aValue : TGPUTextureViewDimension);
  139185. begin
  139186. WriteJSPropertyUnicodeString('viewDimension',aValue);
  139187. end;
  139188. class function TJSGPUStorageTextureBindingLayout.JSClassName: UnicodeString;
  139189. begin
  139190. Result:='Object';
  139191. end;
  139192. class function TJSGPUStorageTextureBindingLayout.Cast(const Intf: IJSObject): IJSGPUStorageTextureBindingLayout;
  139193. begin
  139194. Result:=TJSGPUStorageTextureBindingLayout.JOBCast(Intf);
  139195. end;
  139196. class function TJSGPUBindGroup.JSClassName: UnicodeString;
  139197. begin
  139198. Result:='GPUBindGroup';
  139199. end;
  139200. class function TJSGPUBindGroup.Cast(const Intf: IJSObject): IJSGPUBindGroup;
  139201. begin
  139202. Result:=TJSGPUBindGroup.JOBCast(Intf);
  139203. end;
  139204. function TJSGPUBindGroupDescriptor._Getlayout: IJSGPUBindGroupLayout;
  139205. begin
  139206. Result:=ReadJSPropertyObject('layout',TJSGPUBindGroupLayout) as IJSGPUBindGroupLayout;
  139207. end;
  139208. function TJSGPUBindGroupDescriptor._Getentries: TJSGPUBindGroupEntryDynArray;
  139209. begin
  139210. Result:=ReadJSPropertyObject('entries',TJSArray) as TJSGPUBindGroupEntryDynArray;
  139211. end;
  139212. procedure TJSGPUBindGroupDescriptor._Setlayout(const aValue : IJSGPUBindGroupLayout);
  139213. begin
  139214. WriteJSPropertyObject('layout',aValue);
  139215. end;
  139216. procedure TJSGPUBindGroupDescriptor._Setentries(const aValue : TJSGPUBindGroupEntryDynArray);
  139217. begin
  139218. WriteJSPropertyObject('entries',aValue);
  139219. end;
  139220. class function TJSGPUBindGroupDescriptor.JSClassName: UnicodeString;
  139221. begin
  139222. Result:='Object';
  139223. end;
  139224. class function TJSGPUBindGroupDescriptor.Cast(const Intf: IJSObject): IJSGPUBindGroupDescriptor;
  139225. begin
  139226. Result:=TJSGPUBindGroupDescriptor.JOBCast(Intf);
  139227. end;
  139228. function TJSGPUBindGroupEntry._Getbinding: TGPUIndex32;
  139229. begin
  139230. Result:=ReadJSPropertyInt64('binding');
  139231. end;
  139232. function TJSGPUBindGroupEntry._Getresource: TGPUBindingResource;
  139233. begin
  139234. Result:=ReadJSPropertyVariant('resource');
  139235. end;
  139236. procedure TJSGPUBindGroupEntry._Setbinding(const aValue : TGPUIndex32);
  139237. begin
  139238. WriteJSPropertyDouble('binding',aValue);
  139239. end;
  139240. procedure TJSGPUBindGroupEntry._Setresource(const aValue : TGPUBindingResource);
  139241. begin
  139242. WriteJSPropertyVariant('resource',aValue);
  139243. end;
  139244. class function TJSGPUBindGroupEntry.JSClassName: UnicodeString;
  139245. begin
  139246. Result:='Object';
  139247. end;
  139248. class function TJSGPUBindGroupEntry.Cast(const Intf: IJSObject): IJSGPUBindGroupEntry;
  139249. begin
  139250. Result:=TJSGPUBindGroupEntry.JOBCast(Intf);
  139251. end;
  139252. function TJSGPUBufferBinding._Getbuffer: IJSGPUBuffer;
  139253. begin
  139254. Result:=ReadJSPropertyObject('buffer',TJSGPUBuffer) as IJSGPUBuffer;
  139255. end;
  139256. function TJSGPUBufferBinding._Getoffset: TGPUSize64;
  139257. begin
  139258. Result:=ReadJSPropertyInt64('offset');
  139259. end;
  139260. function TJSGPUBufferBinding._Getsize: TGPUSize64;
  139261. begin
  139262. Result:=ReadJSPropertyInt64('size');
  139263. end;
  139264. procedure TJSGPUBufferBinding._Setbuffer(const aValue : IJSGPUBuffer);
  139265. begin
  139266. WriteJSPropertyObject('buffer',aValue);
  139267. end;
  139268. procedure TJSGPUBufferBinding._Setoffset(const aValue : TGPUSize64);
  139269. begin
  139270. WriteJSPropertyDouble('offset',aValue);
  139271. end;
  139272. procedure TJSGPUBufferBinding._Setsize(const aValue : TGPUSize64);
  139273. begin
  139274. WriteJSPropertyDouble('size',aValue);
  139275. end;
  139276. class function TJSGPUBufferBinding.JSClassName: UnicodeString;
  139277. begin
  139278. Result:='Object';
  139279. end;
  139280. class function TJSGPUBufferBinding.Cast(const Intf: IJSObject): IJSGPUBufferBinding;
  139281. begin
  139282. Result:=TJSGPUBufferBinding.JOBCast(Intf);
  139283. end;
  139284. class function TJSGPUPipelineLayout.JSClassName: UnicodeString;
  139285. begin
  139286. Result:='GPUPipelineLayout';
  139287. end;
  139288. class function TJSGPUPipelineLayout.Cast(const Intf: IJSObject): IJSGPUPipelineLayout;
  139289. begin
  139290. Result:=TJSGPUPipelineLayout.JOBCast(Intf);
  139291. end;
  139292. function TJSGPUPipelineLayoutDescriptor._GetbindGroupLayouts: TJSGPUBindGroupLayoutDynArray;
  139293. begin
  139294. Result:=ReadJSPropertyObject('bindGroupLayouts',TJSArray) as TJSGPUBindGroupLayoutDynArray;
  139295. end;
  139296. procedure TJSGPUPipelineLayoutDescriptor._SetbindGroupLayouts(const aValue : TJSGPUBindGroupLayoutDynArray);
  139297. begin
  139298. WriteJSPropertyObject('bindGroupLayouts',aValue);
  139299. end;
  139300. class function TJSGPUPipelineLayoutDescriptor.JSClassName: UnicodeString;
  139301. begin
  139302. Result:='Object';
  139303. end;
  139304. class function TJSGPUPipelineLayoutDescriptor.Cast(const Intf: IJSObject): IJSGPUPipelineLayoutDescriptor;
  139305. begin
  139306. Result:=TJSGPUPipelineLayoutDescriptor.JOBCast(Intf);
  139307. end;
  139308. function TJSGPUShaderModule.compilationInfo: IJSPromise; // Promise<GPUCompilationInfo>
  139309. begin
  139310. Result:=InvokeJSObjectResult('compilationInfo',[],TJSPromise) as IJSPromise;
  139311. end;
  139312. function TJSGPUShaderModule.getCompilationInfo: IJSPromise; // Promise<GPUCompilationInfo>
  139313. begin
  139314. Result:=InvokeJSObjectResult('getCompilationInfo',[],TJSPromise) as IJSPromise;
  139315. end;
  139316. class function TJSGPUShaderModule.JSClassName: UnicodeString;
  139317. begin
  139318. Result:='GPUShaderModule';
  139319. end;
  139320. class function TJSGPUShaderModule.Cast(const Intf: IJSObject): IJSGPUShaderModule;
  139321. begin
  139322. Result:=TJSGPUShaderModule.JOBCast(Intf);
  139323. end;
  139324. function TJSGPUShaderModuleDescriptor._Getcode: UTF8String;
  139325. begin
  139326. Result:=ReadJSPropertyUTF8String('code');
  139327. end;
  139328. function TJSGPUShaderModuleDescriptor._GetsourceMap: IJSObject;
  139329. begin
  139330. Result:=ReadJSPropertyObject('sourceMap',TJSObject) as IJSObject;
  139331. end;
  139332. procedure TJSGPUShaderModuleDescriptor._Setcode(const aValue : UTF8String);
  139333. begin
  139334. WriteJSPropertyUTF8String('code',aValue);
  139335. end;
  139336. procedure TJSGPUShaderModuleDescriptor._SetsourceMap(const aValue : IJSObject);
  139337. begin
  139338. WriteJSPropertyObject('sourceMap',aValue);
  139339. end;
  139340. class function TJSGPUShaderModuleDescriptor.JSClassName: UnicodeString;
  139341. begin
  139342. Result:='Object';
  139343. end;
  139344. class function TJSGPUShaderModuleDescriptor.Cast(const Intf: IJSObject): IJSGPUShaderModuleDescriptor;
  139345. begin
  139346. Result:=TJSGPUShaderModuleDescriptor.JOBCast(Intf);
  139347. end;
  139348. function TJSGPUCompilationMessage._Getmessage: UnicodeString;
  139349. begin
  139350. Result:=ReadJSPropertyUnicodeString('message');
  139351. end;
  139352. function TJSGPUCompilationMessage._Gettype_: TGPUCompilationMessageType;
  139353. begin
  139354. Result:=ReadJSPropertyUnicodeString('type');
  139355. end;
  139356. function TJSGPUCompilationMessage._GetlineNum: QWord;
  139357. begin
  139358. Result:=ReadJSPropertyInt64('lineNum');
  139359. end;
  139360. function TJSGPUCompilationMessage._GetlinePos: QWord;
  139361. begin
  139362. Result:=ReadJSPropertyInt64('linePos');
  139363. end;
  139364. function TJSGPUCompilationMessage._Getoffset: QWord;
  139365. begin
  139366. Result:=ReadJSPropertyInt64('offset');
  139367. end;
  139368. function TJSGPUCompilationMessage._Getlength_: QWord;
  139369. begin
  139370. Result:=ReadJSPropertyInt64('length');
  139371. end;
  139372. class function TJSGPUCompilationMessage.JSClassName: UnicodeString;
  139373. begin
  139374. Result:='GPUCompilationMessage';
  139375. end;
  139376. class function TJSGPUCompilationMessage.Cast(const Intf: IJSObject): IJSGPUCompilationMessage;
  139377. begin
  139378. Result:=TJSGPUCompilationMessage.JOBCast(Intf);
  139379. end;
  139380. function TJSGPUCompilationInfo._Getmessages: TJSGPUCompilationMessageDynArray;
  139381. begin
  139382. Result:=ReadJSPropertyObject('messages',TJSArray) as TJSGPUCompilationMessageDynArray;
  139383. end;
  139384. class function TJSGPUCompilationInfo.JSClassName: UnicodeString;
  139385. begin
  139386. Result:='GPUCompilationInfo';
  139387. end;
  139388. class function TJSGPUCompilationInfo.Cast(const Intf: IJSObject): IJSGPUCompilationInfo;
  139389. begin
  139390. Result:=TJSGPUCompilationInfo.JOBCast(Intf);
  139391. end;
  139392. function TJSGPUPipelineDescriptorBase._Getlayout: TGPUPipelineDescriptorBase_layout_Type;
  139393. begin
  139394. Result:=ReadJSPropertyVariant('layout');
  139395. end;
  139396. procedure TJSGPUPipelineDescriptorBase._Setlayout(const aValue : TGPUPipelineDescriptorBase_layout_Type);
  139397. begin
  139398. WriteJSPropertyVariant('layout',aValue);
  139399. end;
  139400. class function TJSGPUPipelineDescriptorBase.JSClassName: UnicodeString;
  139401. begin
  139402. Result:='Object';
  139403. end;
  139404. class function TJSGPUPipelineDescriptorBase.Cast(const Intf: IJSObject): IJSGPUPipelineDescriptorBase;
  139405. begin
  139406. Result:=TJSGPUPipelineDescriptorBase.JOBCast(Intf);
  139407. end;
  139408. function TJSGPUPipelineBase.getBindGroupLayout(aIndex: Cardinal): IJSGPUBindGroupLayout;
  139409. begin
  139410. Result:=InvokeJSObjectResult('getBindGroupLayout',[aIndex],TJSGPUBindGroupLayout) as IJSGPUBindGroupLayout;
  139411. end;
  139412. class function TJSGPUPipelineBase.JSClassName: UnicodeString;
  139413. begin
  139414. Result:='GPUPipelineBase';
  139415. end;
  139416. class function TJSGPUPipelineBase.Cast(const Intf: IJSObject): IJSGPUPipelineBase;
  139417. begin
  139418. Result:=TJSGPUPipelineBase.JOBCast(Intf);
  139419. end;
  139420. function TJSGPUProgrammableStage._Getmodule: IJSGPUShaderModule;
  139421. begin
  139422. Result:=ReadJSPropertyObject('module',TJSGPUShaderModule) as IJSGPUShaderModule;
  139423. end;
  139424. function TJSGPUProgrammableStage._GetentryPoint: UnicodeString;
  139425. begin
  139426. Result:=ReadJSPropertyUnicodeString('entryPoint');
  139427. end;
  139428. procedure TJSGPUProgrammableStage._Setmodule(const aValue : IJSGPUShaderModule);
  139429. begin
  139430. WriteJSPropertyObject('module',aValue);
  139431. end;
  139432. procedure TJSGPUProgrammableStage._SetentryPoint(const aValue : UnicodeString);
  139433. begin
  139434. WriteJSPropertyUnicodeString('entryPoint',aValue);
  139435. end;
  139436. class function TJSGPUProgrammableStage.JSClassName: UnicodeString;
  139437. begin
  139438. Result:='Object';
  139439. end;
  139440. class function TJSGPUProgrammableStage.Cast(const Intf: IJSObject): IJSGPUProgrammableStage;
  139441. begin
  139442. Result:=TJSGPUProgrammableStage.JOBCast(Intf);
  139443. end;
  139444. function TJSGPUComputePipeline._Getlabel_: UnicodeString;
  139445. begin
  139446. Result:=ReadJSPropertyUnicodeString('label');
  139447. end;
  139448. procedure TJSGPUComputePipeline._Setlabel_(const aValue : UnicodeString);
  139449. begin
  139450. WriteJSPropertyUnicodeString('label',aValue);
  139451. end;
  139452. function TJSGPUComputePipeline.getBindGroupLayout(aIndex: Cardinal): IJSGPUBindGroupLayout;
  139453. begin
  139454. Result:=InvokeJSObjectResult('getBindGroupLayout',[aIndex],TJSGPUBindGroupLayout) as IJSGPUBindGroupLayout;
  139455. end;
  139456. class function TJSGPUComputePipeline.JSClassName: UnicodeString;
  139457. begin
  139458. Result:='GPUComputePipeline';
  139459. end;
  139460. class function TJSGPUComputePipeline.Cast(const Intf: IJSObject): IJSGPUComputePipeline;
  139461. begin
  139462. Result:=TJSGPUComputePipeline.JOBCast(Intf);
  139463. end;
  139464. function TJSGPUComputePipelineDescriptor._Getcompute: TJSGPUProgrammableStage;
  139465. begin
  139466. Result:=ReadJSPropertyObject('compute',TJSGPUProgrammableStage) as TJSGPUProgrammableStage;
  139467. end;
  139468. procedure TJSGPUComputePipelineDescriptor._Setcompute(const aValue : TJSGPUProgrammableStage);
  139469. begin
  139470. WriteJSPropertyObject('compute',aValue);
  139471. end;
  139472. class function TJSGPUComputePipelineDescriptor.JSClassName: UnicodeString;
  139473. begin
  139474. Result:='Object';
  139475. end;
  139476. class function TJSGPUComputePipelineDescriptor.Cast(const Intf: IJSObject): IJSGPUComputePipelineDescriptor;
  139477. begin
  139478. Result:=TJSGPUComputePipelineDescriptor.JOBCast(Intf);
  139479. end;
  139480. function TJSGPURenderPipeline._Getlabel_: UnicodeString;
  139481. begin
  139482. Result:=ReadJSPropertyUnicodeString('label');
  139483. end;
  139484. procedure TJSGPURenderPipeline._Setlabel_(const aValue : UnicodeString);
  139485. begin
  139486. WriteJSPropertyUnicodeString('label',aValue);
  139487. end;
  139488. function TJSGPURenderPipeline.getBindGroupLayout(aIndex: Cardinal): IJSGPUBindGroupLayout;
  139489. begin
  139490. Result:=InvokeJSObjectResult('getBindGroupLayout',[aIndex],TJSGPUBindGroupLayout) as IJSGPUBindGroupLayout;
  139491. end;
  139492. class function TJSGPURenderPipeline.JSClassName: UnicodeString;
  139493. begin
  139494. Result:='GPURenderPipeline';
  139495. end;
  139496. class function TJSGPURenderPipeline.Cast(const Intf: IJSObject): IJSGPURenderPipeline;
  139497. begin
  139498. Result:=TJSGPURenderPipeline.JOBCast(Intf);
  139499. end;
  139500. function TJSGPURenderPipelineDescriptor._Getvertex: TJSGPUVertexState;
  139501. begin
  139502. Result:=ReadJSPropertyObject('vertex',TJSGPUVertexState) as TJSGPUVertexState;
  139503. end;
  139504. function TJSGPURenderPipelineDescriptor._Getprimitive: TJSGPUPrimitiveState;
  139505. begin
  139506. Result:=ReadJSPropertyObject('primitive',TJSGPUPrimitiveState) as TJSGPUPrimitiveState;
  139507. end;
  139508. function TJSGPURenderPipelineDescriptor._GetdepthStencil: TJSGPUDepthStencilState;
  139509. begin
  139510. Result:=ReadJSPropertyObject('depthStencil',TJSGPUDepthStencilState) as TJSGPUDepthStencilState;
  139511. end;
  139512. function TJSGPURenderPipelineDescriptor._Getmultisample: TJSGPUMultisampleState;
  139513. begin
  139514. Result:=ReadJSPropertyObject('multisample',TJSGPUMultisampleState) as TJSGPUMultisampleState;
  139515. end;
  139516. function TJSGPURenderPipelineDescriptor._Getfragment: TJSGPUFragmentState;
  139517. begin
  139518. Result:=ReadJSPropertyObject('fragment',TJSGPUFragmentState) as TJSGPUFragmentState;
  139519. end;
  139520. procedure TJSGPURenderPipelineDescriptor._Setvertex(const aValue : TJSGPUVertexState);
  139521. begin
  139522. WriteJSPropertyObject('vertex',aValue);
  139523. end;
  139524. procedure TJSGPURenderPipelineDescriptor._Setprimitive(const aValue : TJSGPUPrimitiveState);
  139525. begin
  139526. WriteJSPropertyObject('primitive',aValue);
  139527. end;
  139528. procedure TJSGPURenderPipelineDescriptor._SetdepthStencil(const aValue : TJSGPUDepthStencilState);
  139529. begin
  139530. WriteJSPropertyObject('depthStencil',aValue);
  139531. end;
  139532. procedure TJSGPURenderPipelineDescriptor._Setmultisample(const aValue : TJSGPUMultisampleState);
  139533. begin
  139534. WriteJSPropertyObject('multisample',aValue);
  139535. end;
  139536. procedure TJSGPURenderPipelineDescriptor._Setfragment(const aValue : TJSGPUFragmentState);
  139537. begin
  139538. WriteJSPropertyObject('fragment',aValue);
  139539. end;
  139540. class function TJSGPURenderPipelineDescriptor.JSClassName: UnicodeString;
  139541. begin
  139542. Result:='Object';
  139543. end;
  139544. class function TJSGPURenderPipelineDescriptor.Cast(const Intf: IJSObject): IJSGPURenderPipelineDescriptor;
  139545. begin
  139546. Result:=TJSGPURenderPipelineDescriptor.JOBCast(Intf);
  139547. end;
  139548. function TJSGPUPrimitiveState._Gettopology: TGPUPrimitiveTopology;
  139549. begin
  139550. Result:=ReadJSPropertyUnicodeString('topology');
  139551. end;
  139552. function TJSGPUPrimitiveState._GetstripIndexFormat: TGPUIndexFormat;
  139553. begin
  139554. Result:=ReadJSPropertyUnicodeString('stripIndexFormat');
  139555. end;
  139556. function TJSGPUPrimitiveState._GetfrontFace: TGPUFrontFace;
  139557. begin
  139558. Result:=ReadJSPropertyUnicodeString('frontFace');
  139559. end;
  139560. function TJSGPUPrimitiveState._GetcullMode: TGPUCullMode;
  139561. begin
  139562. Result:=ReadJSPropertyUnicodeString('cullMode');
  139563. end;
  139564. function TJSGPUPrimitiveState._GetunclippedDepth: Boolean;
  139565. begin
  139566. Result:=ReadJSPropertyBoolean('unclippedDepth');
  139567. end;
  139568. procedure TJSGPUPrimitiveState._Settopology(const aValue : TGPUPrimitiveTopology);
  139569. begin
  139570. WriteJSPropertyUnicodeString('topology',aValue);
  139571. end;
  139572. procedure TJSGPUPrimitiveState._SetstripIndexFormat(const aValue : TGPUIndexFormat);
  139573. begin
  139574. WriteJSPropertyUnicodeString('stripIndexFormat',aValue);
  139575. end;
  139576. procedure TJSGPUPrimitiveState._SetfrontFace(const aValue : TGPUFrontFace);
  139577. begin
  139578. WriteJSPropertyUnicodeString('frontFace',aValue);
  139579. end;
  139580. procedure TJSGPUPrimitiveState._SetcullMode(const aValue : TGPUCullMode);
  139581. begin
  139582. WriteJSPropertyUnicodeString('cullMode',aValue);
  139583. end;
  139584. procedure TJSGPUPrimitiveState._SetunclippedDepth(const aValue : Boolean);
  139585. begin
  139586. WriteJSPropertyBoolean('unclippedDepth',aValue);
  139587. end;
  139588. class function TJSGPUPrimitiveState.JSClassName: UnicodeString;
  139589. begin
  139590. Result:='Object';
  139591. end;
  139592. class function TJSGPUPrimitiveState.Cast(const Intf: IJSObject): IJSGPUPrimitiveState;
  139593. begin
  139594. Result:=TJSGPUPrimitiveState.JOBCast(Intf);
  139595. end;
  139596. function TJSGPUMultisampleState._Getcount: TGPUSize32;
  139597. begin
  139598. Result:=ReadJSPropertyInt64('count');
  139599. end;
  139600. function TJSGPUMultisampleState._Getmask: TGPUSampleMask;
  139601. begin
  139602. Result:=ReadJSPropertyInt64('mask');
  139603. end;
  139604. function TJSGPUMultisampleState._GetalphaToCoverageEnabled: Boolean;
  139605. begin
  139606. Result:=ReadJSPropertyBoolean('alphaToCoverageEnabled');
  139607. end;
  139608. procedure TJSGPUMultisampleState._Setcount(const aValue : TGPUSize32);
  139609. begin
  139610. WriteJSPropertyDouble('count',aValue);
  139611. end;
  139612. procedure TJSGPUMultisampleState._Setmask(const aValue : TGPUSampleMask);
  139613. begin
  139614. WriteJSPropertyDouble('mask',aValue);
  139615. end;
  139616. procedure TJSGPUMultisampleState._SetalphaToCoverageEnabled(const aValue : Boolean);
  139617. begin
  139618. WriteJSPropertyBoolean('alphaToCoverageEnabled',aValue);
  139619. end;
  139620. class function TJSGPUMultisampleState.JSClassName: UnicodeString;
  139621. begin
  139622. Result:='Object';
  139623. end;
  139624. class function TJSGPUMultisampleState.Cast(const Intf: IJSObject): IJSGPUMultisampleState;
  139625. begin
  139626. Result:=TJSGPUMultisampleState.JOBCast(Intf);
  139627. end;
  139628. function TJSGPUFragmentState._Gettargets: TJSGPUColorTargetStateDynArray;
  139629. begin
  139630. Result:=ReadJSPropertyObject('targets',TJSArray) as TJSGPUColorTargetStateDynArray;
  139631. end;
  139632. procedure TJSGPUFragmentState._Settargets(const aValue : TJSGPUColorTargetStateDynArray);
  139633. begin
  139634. WriteJSPropertyObject('targets',aValue);
  139635. end;
  139636. class function TJSGPUFragmentState.JSClassName: UnicodeString;
  139637. begin
  139638. Result:='Object';
  139639. end;
  139640. class function TJSGPUFragmentState.Cast(const Intf: IJSObject): IJSGPUFragmentState;
  139641. begin
  139642. Result:=TJSGPUFragmentState.JOBCast(Intf);
  139643. end;
  139644. function TJSGPUColorTargetState._Getformat: TGPUTextureFormat;
  139645. begin
  139646. Result:=ReadJSPropertyUnicodeString('format');
  139647. end;
  139648. function TJSGPUColorTargetState._Getblend: TJSGPUBlendState;
  139649. begin
  139650. Result:=ReadJSPropertyObject('blend',TJSGPUBlendState) as TJSGPUBlendState;
  139651. end;
  139652. function TJSGPUColorTargetState._GetwriteMask: TGPUColorWriteFlags;
  139653. begin
  139654. Result:=ReadJSPropertyInt64('writeMask');
  139655. end;
  139656. procedure TJSGPUColorTargetState._Setformat(const aValue : TGPUTextureFormat);
  139657. begin
  139658. WriteJSPropertyUnicodeString('format',aValue);
  139659. end;
  139660. procedure TJSGPUColorTargetState._Setblend(const aValue : TJSGPUBlendState);
  139661. begin
  139662. WriteJSPropertyObject('blend',aValue);
  139663. end;
  139664. procedure TJSGPUColorTargetState._SetwriteMask(const aValue : TGPUColorWriteFlags);
  139665. begin
  139666. WriteJSPropertyDouble('writeMask',aValue);
  139667. end;
  139668. class function TJSGPUColorTargetState.JSClassName: UnicodeString;
  139669. begin
  139670. Result:='Object';
  139671. end;
  139672. class function TJSGPUColorTargetState.Cast(const Intf: IJSObject): IJSGPUColorTargetState;
  139673. begin
  139674. Result:=TJSGPUColorTargetState.JOBCast(Intf);
  139675. end;
  139676. function TJSGPUBlendState._Getcolor: TJSGPUBlendComponent;
  139677. begin
  139678. Result:=ReadJSPropertyObject('color',TJSGPUBlendComponent) as TJSGPUBlendComponent;
  139679. end;
  139680. function TJSGPUBlendState._Getalpha: TJSGPUBlendComponent;
  139681. begin
  139682. Result:=ReadJSPropertyObject('alpha',TJSGPUBlendComponent) as TJSGPUBlendComponent;
  139683. end;
  139684. procedure TJSGPUBlendState._Setcolor(const aValue : TJSGPUBlendComponent);
  139685. begin
  139686. WriteJSPropertyObject('color',aValue);
  139687. end;
  139688. procedure TJSGPUBlendState._Setalpha(const aValue : TJSGPUBlendComponent);
  139689. begin
  139690. WriteJSPropertyObject('alpha',aValue);
  139691. end;
  139692. class function TJSGPUBlendState.JSClassName: UnicodeString;
  139693. begin
  139694. Result:='Object';
  139695. end;
  139696. class function TJSGPUBlendState.Cast(const Intf: IJSObject): IJSGPUBlendState;
  139697. begin
  139698. Result:=TJSGPUBlendState.JOBCast(Intf);
  139699. end;
  139700. class function TJSGPUColorWrite.JSClassName: UnicodeString;
  139701. begin
  139702. Result:='GPUColorWrite';
  139703. end;
  139704. class function TJSGPUColorWrite.Cast(const Intf: IJSObject): IJSGPUColorWrite;
  139705. begin
  139706. Result:=TJSGPUColorWrite.JOBCast(Intf);
  139707. end;
  139708. function TJSGPUBlendComponent._Getoperation: TGPUBlendOperation;
  139709. begin
  139710. Result:=ReadJSPropertyUnicodeString('operation');
  139711. end;
  139712. function TJSGPUBlendComponent._GetsrcFactor: TGPUBlendFactor;
  139713. begin
  139714. Result:=ReadJSPropertyUnicodeString('srcFactor');
  139715. end;
  139716. function TJSGPUBlendComponent._GetdstFactor: TGPUBlendFactor;
  139717. begin
  139718. Result:=ReadJSPropertyUnicodeString('dstFactor');
  139719. end;
  139720. procedure TJSGPUBlendComponent._Setoperation(const aValue : TGPUBlendOperation);
  139721. begin
  139722. WriteJSPropertyUnicodeString('operation',aValue);
  139723. end;
  139724. procedure TJSGPUBlendComponent._SetsrcFactor(const aValue : TGPUBlendFactor);
  139725. begin
  139726. WriteJSPropertyUnicodeString('srcFactor',aValue);
  139727. end;
  139728. procedure TJSGPUBlendComponent._SetdstFactor(const aValue : TGPUBlendFactor);
  139729. begin
  139730. WriteJSPropertyUnicodeString('dstFactor',aValue);
  139731. end;
  139732. class function TJSGPUBlendComponent.JSClassName: UnicodeString;
  139733. begin
  139734. Result:='Object';
  139735. end;
  139736. class function TJSGPUBlendComponent.Cast(const Intf: IJSObject): IJSGPUBlendComponent;
  139737. begin
  139738. Result:=TJSGPUBlendComponent.JOBCast(Intf);
  139739. end;
  139740. function TJSGPUDepthStencilState._Getformat: TGPUTextureFormat;
  139741. begin
  139742. Result:=ReadJSPropertyUnicodeString('format');
  139743. end;
  139744. function TJSGPUDepthStencilState._GetdepthWriteEnabled: Boolean;
  139745. begin
  139746. Result:=ReadJSPropertyBoolean('depthWriteEnabled');
  139747. end;
  139748. function TJSGPUDepthStencilState._GetdepthCompare: TGPUCompareFunction;
  139749. begin
  139750. Result:=ReadJSPropertyUnicodeString('depthCompare');
  139751. end;
  139752. function TJSGPUDepthStencilState._GetstencilFront: TJSGPUStencilFaceState;
  139753. begin
  139754. Result:=ReadJSPropertyObject('stencilFront',TJSGPUStencilFaceState) as TJSGPUStencilFaceState;
  139755. end;
  139756. function TJSGPUDepthStencilState._GetstencilBack: TJSGPUStencilFaceState;
  139757. begin
  139758. Result:=ReadJSPropertyObject('stencilBack',TJSGPUStencilFaceState) as TJSGPUStencilFaceState;
  139759. end;
  139760. function TJSGPUDepthStencilState._GetstencilReadMask: TGPUStencilValue;
  139761. begin
  139762. Result:=ReadJSPropertyInt64('stencilReadMask');
  139763. end;
  139764. function TJSGPUDepthStencilState._GetstencilWriteMask: TGPUStencilValue;
  139765. begin
  139766. Result:=ReadJSPropertyInt64('stencilWriteMask');
  139767. end;
  139768. function TJSGPUDepthStencilState._GetdepthBias: TGPUDepthBias;
  139769. begin
  139770. Result:=ReadJSPropertyLongInt('depthBias');
  139771. end;
  139772. function TJSGPUDepthStencilState._GetdepthBiasSlopeScale: Single;
  139773. begin
  139774. Result:=ReadJSPropertyDouble('depthBiasSlopeScale');
  139775. end;
  139776. function TJSGPUDepthStencilState._GetdepthBiasClamp: Single;
  139777. begin
  139778. Result:=ReadJSPropertyDouble('depthBiasClamp');
  139779. end;
  139780. procedure TJSGPUDepthStencilState._Setformat(const aValue : TGPUTextureFormat);
  139781. begin
  139782. WriteJSPropertyUnicodeString('format',aValue);
  139783. end;
  139784. procedure TJSGPUDepthStencilState._SetdepthWriteEnabled(const aValue : Boolean);
  139785. begin
  139786. WriteJSPropertyBoolean('depthWriteEnabled',aValue);
  139787. end;
  139788. procedure TJSGPUDepthStencilState._SetdepthCompare(const aValue : TGPUCompareFunction);
  139789. begin
  139790. WriteJSPropertyUnicodeString('depthCompare',aValue);
  139791. end;
  139792. procedure TJSGPUDepthStencilState._SetstencilFront(const aValue : TJSGPUStencilFaceState);
  139793. begin
  139794. WriteJSPropertyObject('stencilFront',aValue);
  139795. end;
  139796. procedure TJSGPUDepthStencilState._SetstencilBack(const aValue : TJSGPUStencilFaceState);
  139797. begin
  139798. WriteJSPropertyObject('stencilBack',aValue);
  139799. end;
  139800. procedure TJSGPUDepthStencilState._SetstencilReadMask(const aValue : TGPUStencilValue);
  139801. begin
  139802. WriteJSPropertyDouble('stencilReadMask',aValue);
  139803. end;
  139804. procedure TJSGPUDepthStencilState._SetstencilWriteMask(const aValue : TGPUStencilValue);
  139805. begin
  139806. WriteJSPropertyDouble('stencilWriteMask',aValue);
  139807. end;
  139808. procedure TJSGPUDepthStencilState._SetdepthBias(const aValue : TGPUDepthBias);
  139809. begin
  139810. WriteJSPropertyLongInt('depthBias',aValue);
  139811. end;
  139812. procedure TJSGPUDepthStencilState._SetdepthBiasSlopeScale(const aValue : Single);
  139813. begin
  139814. WriteJSPropertyDouble('depthBiasSlopeScale',aValue);
  139815. end;
  139816. procedure TJSGPUDepthStencilState._SetdepthBiasClamp(const aValue : Single);
  139817. begin
  139818. WriteJSPropertyDouble('depthBiasClamp',aValue);
  139819. end;
  139820. class function TJSGPUDepthStencilState.JSClassName: UnicodeString;
  139821. begin
  139822. Result:='Object';
  139823. end;
  139824. class function TJSGPUDepthStencilState.Cast(const Intf: IJSObject): IJSGPUDepthStencilState;
  139825. begin
  139826. Result:=TJSGPUDepthStencilState.JOBCast(Intf);
  139827. end;
  139828. function TJSGPUStencilFaceState._Getcompare: TGPUCompareFunction;
  139829. begin
  139830. Result:=ReadJSPropertyUnicodeString('compare');
  139831. end;
  139832. function TJSGPUStencilFaceState._GetfailOp: TGPUStencilOperation;
  139833. begin
  139834. Result:=ReadJSPropertyUnicodeString('failOp');
  139835. end;
  139836. function TJSGPUStencilFaceState._GetdepthFailOp: TGPUStencilOperation;
  139837. begin
  139838. Result:=ReadJSPropertyUnicodeString('depthFailOp');
  139839. end;
  139840. function TJSGPUStencilFaceState._GetpassOp: TGPUStencilOperation;
  139841. begin
  139842. Result:=ReadJSPropertyUnicodeString('passOp');
  139843. end;
  139844. procedure TJSGPUStencilFaceState._Setcompare(const aValue : TGPUCompareFunction);
  139845. begin
  139846. WriteJSPropertyUnicodeString('compare',aValue);
  139847. end;
  139848. procedure TJSGPUStencilFaceState._SetfailOp(const aValue : TGPUStencilOperation);
  139849. begin
  139850. WriteJSPropertyUnicodeString('failOp',aValue);
  139851. end;
  139852. procedure TJSGPUStencilFaceState._SetdepthFailOp(const aValue : TGPUStencilOperation);
  139853. begin
  139854. WriteJSPropertyUnicodeString('depthFailOp',aValue);
  139855. end;
  139856. procedure TJSGPUStencilFaceState._SetpassOp(const aValue : TGPUStencilOperation);
  139857. begin
  139858. WriteJSPropertyUnicodeString('passOp',aValue);
  139859. end;
  139860. class function TJSGPUStencilFaceState.JSClassName: UnicodeString;
  139861. begin
  139862. Result:='Object';
  139863. end;
  139864. class function TJSGPUStencilFaceState.Cast(const Intf: IJSObject): IJSGPUStencilFaceState;
  139865. begin
  139866. Result:=TJSGPUStencilFaceState.JOBCast(Intf);
  139867. end;
  139868. function TJSGPUVertexState._Getbuffers: TJSGPUVertexBufferLayoutDynArray;
  139869. begin
  139870. Result:=ReadJSPropertyObject('buffers',TJSArray) as TJSGPUVertexBufferLayoutDynArray;
  139871. end;
  139872. procedure TJSGPUVertexState._Setbuffers(const aValue : TJSGPUVertexBufferLayoutDynArray);
  139873. begin
  139874. WriteJSPropertyObject('buffers',aValue);
  139875. end;
  139876. class function TJSGPUVertexState.JSClassName: UnicodeString;
  139877. begin
  139878. Result:='Object';
  139879. end;
  139880. class function TJSGPUVertexState.Cast(const Intf: IJSObject): IJSGPUVertexState;
  139881. begin
  139882. Result:=TJSGPUVertexState.JOBCast(Intf);
  139883. end;
  139884. function TJSGPUVertexBufferLayout._GetarrayStride: TGPUSize64;
  139885. begin
  139886. Result:=ReadJSPropertyInt64('arrayStride');
  139887. end;
  139888. function TJSGPUVertexBufferLayout._GetstepMode: TGPUVertexStepMode;
  139889. begin
  139890. Result:=ReadJSPropertyUnicodeString('stepMode');
  139891. end;
  139892. function TJSGPUVertexBufferLayout._Getattributes: TJSGPUVertexAttributeDynArray;
  139893. begin
  139894. Result:=ReadJSPropertyObject('attributes',TJSArray) as TJSGPUVertexAttributeDynArray;
  139895. end;
  139896. procedure TJSGPUVertexBufferLayout._SetarrayStride(const aValue : TGPUSize64);
  139897. begin
  139898. WriteJSPropertyDouble('arrayStride',aValue);
  139899. end;
  139900. procedure TJSGPUVertexBufferLayout._SetstepMode(const aValue : TGPUVertexStepMode);
  139901. begin
  139902. WriteJSPropertyUnicodeString('stepMode',aValue);
  139903. end;
  139904. procedure TJSGPUVertexBufferLayout._Setattributes(const aValue : TJSGPUVertexAttributeDynArray);
  139905. begin
  139906. WriteJSPropertyObject('attributes',aValue);
  139907. end;
  139908. class function TJSGPUVertexBufferLayout.JSClassName: UnicodeString;
  139909. begin
  139910. Result:='Object';
  139911. end;
  139912. class function TJSGPUVertexBufferLayout.Cast(const Intf: IJSObject): IJSGPUVertexBufferLayout;
  139913. begin
  139914. Result:=TJSGPUVertexBufferLayout.JOBCast(Intf);
  139915. end;
  139916. function TJSGPUVertexAttribute._Getformat: TGPUVertexFormat;
  139917. begin
  139918. Result:=ReadJSPropertyUnicodeString('format');
  139919. end;
  139920. function TJSGPUVertexAttribute._Getoffset: TGPUSize64;
  139921. begin
  139922. Result:=ReadJSPropertyInt64('offset');
  139923. end;
  139924. function TJSGPUVertexAttribute._GetshaderLocation: TGPUIndex32;
  139925. begin
  139926. Result:=ReadJSPropertyInt64('shaderLocation');
  139927. end;
  139928. procedure TJSGPUVertexAttribute._Setformat(const aValue : TGPUVertexFormat);
  139929. begin
  139930. WriteJSPropertyUnicodeString('format',aValue);
  139931. end;
  139932. procedure TJSGPUVertexAttribute._Setoffset(const aValue : TGPUSize64);
  139933. begin
  139934. WriteJSPropertyDouble('offset',aValue);
  139935. end;
  139936. procedure TJSGPUVertexAttribute._SetshaderLocation(const aValue : TGPUIndex32);
  139937. begin
  139938. WriteJSPropertyDouble('shaderLocation',aValue);
  139939. end;
  139940. class function TJSGPUVertexAttribute.JSClassName: UnicodeString;
  139941. begin
  139942. Result:='Object';
  139943. end;
  139944. class function TJSGPUVertexAttribute.Cast(const Intf: IJSObject): IJSGPUVertexAttribute;
  139945. begin
  139946. Result:=TJSGPUVertexAttribute.JOBCast(Intf);
  139947. end;
  139948. function TJSGPUImageDataLayout._Getoffset: TGPUSize64;
  139949. begin
  139950. Result:=ReadJSPropertyInt64('offset');
  139951. end;
  139952. function TJSGPUImageDataLayout._GetbytesPerRow: TGPUSize32;
  139953. begin
  139954. Result:=ReadJSPropertyInt64('bytesPerRow');
  139955. end;
  139956. function TJSGPUImageDataLayout._GetrowsPerImage: TGPUSize32;
  139957. begin
  139958. Result:=ReadJSPropertyInt64('rowsPerImage');
  139959. end;
  139960. procedure TJSGPUImageDataLayout._Setoffset(const aValue : TGPUSize64);
  139961. begin
  139962. WriteJSPropertyDouble('offset',aValue);
  139963. end;
  139964. procedure TJSGPUImageDataLayout._SetbytesPerRow(const aValue : TGPUSize32);
  139965. begin
  139966. WriteJSPropertyDouble('bytesPerRow',aValue);
  139967. end;
  139968. procedure TJSGPUImageDataLayout._SetrowsPerImage(const aValue : TGPUSize32);
  139969. begin
  139970. WriteJSPropertyDouble('rowsPerImage',aValue);
  139971. end;
  139972. class function TJSGPUImageDataLayout.JSClassName: UnicodeString;
  139973. begin
  139974. Result:='Object';
  139975. end;
  139976. class function TJSGPUImageDataLayout.Cast(const Intf: IJSObject): IJSGPUImageDataLayout;
  139977. begin
  139978. Result:=TJSGPUImageDataLayout.JOBCast(Intf);
  139979. end;
  139980. function TJSGPUImageCopyBuffer._Getbuffer: IJSGPUBuffer;
  139981. begin
  139982. Result:=ReadJSPropertyObject('buffer',TJSGPUBuffer) as IJSGPUBuffer;
  139983. end;
  139984. procedure TJSGPUImageCopyBuffer._Setbuffer(const aValue : IJSGPUBuffer);
  139985. begin
  139986. WriteJSPropertyObject('buffer',aValue);
  139987. end;
  139988. class function TJSGPUImageCopyBuffer.JSClassName: UnicodeString;
  139989. begin
  139990. Result:='Object';
  139991. end;
  139992. class function TJSGPUImageCopyBuffer.Cast(const Intf: IJSObject): IJSGPUImageCopyBuffer;
  139993. begin
  139994. Result:=TJSGPUImageCopyBuffer.JOBCast(Intf);
  139995. end;
  139996. function TJSGPUImageCopyTexture._Gettexture: IJSGPUTexture;
  139997. begin
  139998. Result:=ReadJSPropertyObject('texture',TJSGPUTexture) as IJSGPUTexture;
  139999. end;
  140000. function TJSGPUImageCopyTexture._GetmipLevel: TGPUIntegerCoordinate;
  140001. begin
  140002. Result:=ReadJSPropertyInt64('mipLevel');
  140003. end;
  140004. function TJSGPUImageCopyTexture._Getorigin: TGPUOrigin3D;
  140005. begin
  140006. Result:=ReadJSPropertyVariant('origin');
  140007. end;
  140008. function TJSGPUImageCopyTexture._Getaspect: TGPUTextureAspect;
  140009. begin
  140010. Result:=ReadJSPropertyUnicodeString('aspect');
  140011. end;
  140012. procedure TJSGPUImageCopyTexture._Settexture(const aValue : IJSGPUTexture);
  140013. begin
  140014. WriteJSPropertyObject('texture',aValue);
  140015. end;
  140016. procedure TJSGPUImageCopyTexture._SetmipLevel(const aValue : TGPUIntegerCoordinate);
  140017. begin
  140018. WriteJSPropertyDouble('mipLevel',aValue);
  140019. end;
  140020. procedure TJSGPUImageCopyTexture._Setorigin(const aValue : TGPUOrigin3D);
  140021. begin
  140022. WriteJSPropertyVariant('origin',aValue);
  140023. end;
  140024. procedure TJSGPUImageCopyTexture._Setaspect(const aValue : TGPUTextureAspect);
  140025. begin
  140026. WriteJSPropertyUnicodeString('aspect',aValue);
  140027. end;
  140028. class function TJSGPUImageCopyTexture.JSClassName: UnicodeString;
  140029. begin
  140030. Result:='Object';
  140031. end;
  140032. class function TJSGPUImageCopyTexture.Cast(const Intf: IJSObject): IJSGPUImageCopyTexture;
  140033. begin
  140034. Result:=TJSGPUImageCopyTexture.JOBCast(Intf);
  140035. end;
  140036. function TJSGPUImageCopyTextureTagged._GetpremultipliedAlpha: Boolean;
  140037. begin
  140038. Result:=ReadJSPropertyBoolean('premultipliedAlpha');
  140039. end;
  140040. procedure TJSGPUImageCopyTextureTagged._SetpremultipliedAlpha(const aValue : Boolean);
  140041. begin
  140042. WriteJSPropertyBoolean('premultipliedAlpha',aValue);
  140043. end;
  140044. class function TJSGPUImageCopyTextureTagged.JSClassName: UnicodeString;
  140045. begin
  140046. Result:='Object';
  140047. end;
  140048. class function TJSGPUImageCopyTextureTagged.Cast(const Intf: IJSObject): IJSGPUImageCopyTextureTagged;
  140049. begin
  140050. Result:=TJSGPUImageCopyTextureTagged.JOBCast(Intf);
  140051. end;
  140052. function TJSGPUImageCopyExternalImage._Getsource: TGPUImageCopyExternalImage_source_Type;
  140053. begin
  140054. Result:=ReadJSPropertyVariant('source');
  140055. end;
  140056. function TJSGPUImageCopyExternalImage._Getorigin: TGPUOrigin2D;
  140057. begin
  140058. Result:=ReadJSPropertyVariant('origin');
  140059. end;
  140060. function TJSGPUImageCopyExternalImage._GetflipY: Boolean;
  140061. begin
  140062. Result:=ReadJSPropertyBoolean('flipY');
  140063. end;
  140064. procedure TJSGPUImageCopyExternalImage._Setsource(const aValue : TGPUImageCopyExternalImage_source_Type);
  140065. begin
  140066. WriteJSPropertyVariant('source',aValue);
  140067. end;
  140068. procedure TJSGPUImageCopyExternalImage._Setorigin(const aValue : TGPUOrigin2D);
  140069. begin
  140070. WriteJSPropertyVariant('origin',aValue);
  140071. end;
  140072. procedure TJSGPUImageCopyExternalImage._SetflipY(const aValue : Boolean);
  140073. begin
  140074. WriteJSPropertyBoolean('flipY',aValue);
  140075. end;
  140076. class function TJSGPUImageCopyExternalImage.JSClassName: UnicodeString;
  140077. begin
  140078. Result:='Object';
  140079. end;
  140080. class function TJSGPUImageCopyExternalImage.Cast(const Intf: IJSObject): IJSGPUImageCopyExternalImage;
  140081. begin
  140082. Result:=TJSGPUImageCopyExternalImage.JOBCast(Intf);
  140083. end;
  140084. class function TJSGPUCommandBuffer.JSClassName: UnicodeString;
  140085. begin
  140086. Result:='GPUCommandBuffer';
  140087. end;
  140088. class function TJSGPUCommandBuffer.Cast(const Intf: IJSObject): IJSGPUCommandBuffer;
  140089. begin
  140090. Result:=TJSGPUCommandBuffer.JOBCast(Intf);
  140091. end;
  140092. class function TJSGPUCommandBufferDescriptor.JSClassName: UnicodeString;
  140093. begin
  140094. Result:='Object';
  140095. end;
  140096. class function TJSGPUCommandBufferDescriptor.Cast(const Intf: IJSObject): IJSGPUCommandBufferDescriptor;
  140097. begin
  140098. Result:=TJSGPUCommandBufferDescriptor.JOBCast(Intf);
  140099. end;
  140100. class function TJSGPUCommandsMixin.JSClassName: UnicodeString;
  140101. begin
  140102. Result:='GPUCommandsMixin';
  140103. end;
  140104. class function TJSGPUCommandsMixin.Cast(const Intf: IJSObject): IJSGPUCommandsMixin;
  140105. begin
  140106. Result:=TJSGPUCommandsMixin.JOBCast(Intf);
  140107. end;
  140108. function TJSGPUCommandEncoder._Getlabel_: UnicodeString;
  140109. begin
  140110. Result:=ReadJSPropertyUnicodeString('label');
  140111. end;
  140112. procedure TJSGPUCommandEncoder._Setlabel_(const aValue : UnicodeString);
  140113. begin
  140114. WriteJSPropertyUnicodeString('label',aValue);
  140115. end;
  140116. function TJSGPUCommandEncoder.beginRenderPass(const aDescriptor: TJSGPURenderPassDescriptor): IJSGPURenderPassEncoder;
  140117. begin
  140118. Result:=InvokeJSObjectResult('beginRenderPass',[aDescriptor],TJSGPURenderPassEncoder) as IJSGPURenderPassEncoder;
  140119. end;
  140120. function TJSGPUCommandEncoder.beginComputePass(const aDescriptor: TJSGPUComputePassDescriptor): IJSGPUComputePassEncoder;
  140121. begin
  140122. Result:=InvokeJSObjectResult('beginComputePass',[aDescriptor],TJSGPUComputePassEncoder) as IJSGPUComputePassEncoder;
  140123. end;
  140124. function TJSGPUCommandEncoder.beginComputePass: IJSGPUComputePassEncoder;
  140125. begin
  140126. Result:=InvokeJSObjectResult('beginComputePass',[],TJSGPUComputePassEncoder) as IJSGPUComputePassEncoder;
  140127. end;
  140128. procedure TJSGPUCommandEncoder.copyBufferToBuffer(aSource: IJSGPUBuffer; aSourceOffset: TGPUSize64; aDestination: IJSGPUBuffer; aDestinationOffset: TGPUSize64; aSize: TGPUSize64);
  140129. begin
  140130. InvokeJSNoResult('copyBufferToBuffer',[aSource,aSourceOffset,aDestination,aDestinationOffset,aSize]);
  140131. end;
  140132. procedure TJSGPUCommandEncoder.copyBufferToTexture(const aSource: TJSGPUImageCopyBuffer; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TJSGPUExtent3DDict);
  140133. begin
  140134. InvokeJSNoResult('copyBufferToTexture',[aSource,aDestination,aCopySize]);
  140135. end;
  140136. procedure TJSGPUCommandEncoder.copyBufferToTexture(const aSource: TJSGPUImageCopyBuffer; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TGPUIntegerCoordinateDynArray);
  140137. begin
  140138. InvokeJSNoResult('copyBufferToTexture',[aSource,aDestination,aCopySize]);
  140139. end;
  140140. procedure TJSGPUCommandEncoder.copyTextureToBuffer(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyBuffer; const aCopySize: TJSGPUExtent3DDict);
  140141. begin
  140142. InvokeJSNoResult('copyTextureToBuffer',[aSource,aDestination,aCopySize]);
  140143. end;
  140144. procedure TJSGPUCommandEncoder.copyTextureToBuffer(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyBuffer; const aCopySize: TGPUIntegerCoordinateDynArray);
  140145. begin
  140146. InvokeJSNoResult('copyTextureToBuffer',[aSource,aDestination,aCopySize]);
  140147. end;
  140148. procedure TJSGPUCommandEncoder.copyTextureToTexture(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TJSGPUExtent3DDict);
  140149. begin
  140150. InvokeJSNoResult('copyTextureToTexture',[aSource,aDestination,aCopySize]);
  140151. end;
  140152. procedure TJSGPUCommandEncoder.copyTextureToTexture(const aSource: TJSGPUImageCopyTexture; const aDestination: TJSGPUImageCopyTexture; const aCopySize: TGPUIntegerCoordinateDynArray);
  140153. begin
  140154. InvokeJSNoResult('copyTextureToTexture',[aSource,aDestination,aCopySize]);
  140155. end;
  140156. procedure TJSGPUCommandEncoder.clearBuffer(aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64);
  140157. begin
  140158. InvokeJSNoResult('clearBuffer',[aBuffer,aOffset,aSize]);
  140159. end;
  140160. procedure TJSGPUCommandEncoder.clearBuffer(aBuffer: IJSGPUBuffer);
  140161. begin
  140162. InvokeJSNoResult('clearBuffer',[aBuffer]);
  140163. end;
  140164. procedure TJSGPUCommandEncoder.clearBuffer(aBuffer: IJSGPUBuffer; aOffset: TGPUSize64);
  140165. begin
  140166. InvokeJSNoResult('clearBuffer',[aBuffer,aOffset]);
  140167. end;
  140168. function TJSGPUCommandEncoder.finish(const aDescriptor: TJSGPUCommandBufferDescriptor): IJSGPUCommandBuffer;
  140169. begin
  140170. Result:=InvokeJSObjectResult('finish',[aDescriptor],TJSGPUCommandBuffer) as IJSGPUCommandBuffer;
  140171. end;
  140172. function TJSGPUCommandEncoder.finish: IJSGPUCommandBuffer;
  140173. begin
  140174. Result:=InvokeJSObjectResult('finish',[],TJSGPUCommandBuffer) as IJSGPUCommandBuffer;
  140175. end;
  140176. procedure TJSGPUCommandEncoder.pushDebugGroup(const aGroupLabel: UnicodeString);
  140177. begin
  140178. InvokeJSNoResult('pushDebugGroup',[aGroupLabel]);
  140179. end;
  140180. procedure TJSGPUCommandEncoder.popDebugGroup;
  140181. begin
  140182. InvokeJSNoResult('popDebugGroup',[]);
  140183. end;
  140184. procedure TJSGPUCommandEncoder.insertDebugMarker(const aMarkerLabel: UnicodeString);
  140185. begin
  140186. InvokeJSNoResult('insertDebugMarker',[aMarkerLabel]);
  140187. end;
  140188. class function TJSGPUCommandEncoder.JSClassName: UnicodeString;
  140189. begin
  140190. Result:='GPUCommandEncoder';
  140191. end;
  140192. class function TJSGPUCommandEncoder.Cast(const Intf: IJSObject): IJSGPUCommandEncoder;
  140193. begin
  140194. Result:=TJSGPUCommandEncoder.JOBCast(Intf);
  140195. end;
  140196. class function TJSGPUCommandEncoderDescriptor.JSClassName: UnicodeString;
  140197. begin
  140198. Result:='Object';
  140199. end;
  140200. class function TJSGPUCommandEncoderDescriptor.Cast(const Intf: IJSObject): IJSGPUCommandEncoderDescriptor;
  140201. begin
  140202. Result:=TJSGPUCommandEncoderDescriptor.JOBCast(Intf);
  140203. end;
  140204. procedure TJSGPUBindingCommandsMixin.setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray);
  140205. begin
  140206. InvokeJSNoResult('setBindGroup',[aIndex,aBindGroup,aDynamicOffsets]);
  140207. end;
  140208. procedure TJSGPUBindingCommandsMixin.setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup);
  140209. begin
  140210. InvokeJSNoResult('setBindGroup',[aIndex,aBindGroup]);
  140211. end;
  140212. class function TJSGPUBindingCommandsMixin.JSClassName: UnicodeString;
  140213. begin
  140214. Result:='GPUBindingCommandsMixin';
  140215. end;
  140216. class function TJSGPUBindingCommandsMixin.Cast(const Intf: IJSObject): IJSGPUBindingCommandsMixin;
  140217. begin
  140218. Result:=TJSGPUBindingCommandsMixin.JOBCast(Intf);
  140219. end;
  140220. procedure TJSGPUDebugCommandsMixin.pushDebugGroup(const aGroupLabel: UnicodeString);
  140221. begin
  140222. InvokeJSNoResult('pushDebugGroup',[aGroupLabel]);
  140223. end;
  140224. procedure TJSGPUDebugCommandsMixin.popDebugGroup;
  140225. begin
  140226. InvokeJSNoResult('popDebugGroup',[]);
  140227. end;
  140228. procedure TJSGPUDebugCommandsMixin.insertDebugMarker(const aMarkerLabel: UnicodeString);
  140229. begin
  140230. InvokeJSNoResult('insertDebugMarker',[aMarkerLabel]);
  140231. end;
  140232. class function TJSGPUDebugCommandsMixin.JSClassName: UnicodeString;
  140233. begin
  140234. Result:='GPUDebugCommandsMixin';
  140235. end;
  140236. class function TJSGPUDebugCommandsMixin.Cast(const Intf: IJSObject): IJSGPUDebugCommandsMixin;
  140237. begin
  140238. Result:=TJSGPUDebugCommandsMixin.JOBCast(Intf);
  140239. end;
  140240. function TJSGPUComputePassEncoder._Getlabel_: UnicodeString;
  140241. begin
  140242. Result:=ReadJSPropertyUnicodeString('label');
  140243. end;
  140244. procedure TJSGPUComputePassEncoder._Setlabel_(const aValue : UnicodeString);
  140245. begin
  140246. WriteJSPropertyUnicodeString('label',aValue);
  140247. end;
  140248. procedure TJSGPUComputePassEncoder.setPipeline(aPipeline: IJSGPUComputePipeline);
  140249. begin
  140250. InvokeJSNoResult('setPipeline',[aPipeline]);
  140251. end;
  140252. procedure TJSGPUComputePassEncoder.dispatchWorkgroups(aWorkgroupCountX: TGPUSize32; aWorkgroupCountY: TGPUSize32; aWorkgroupCountZ: TGPUSize32);
  140253. begin
  140254. InvokeJSNoResult('dispatchWorkgroups',[aWorkgroupCountX,aWorkgroupCountY,aWorkgroupCountZ]);
  140255. end;
  140256. procedure TJSGPUComputePassEncoder.dispatchWorkgroups(aWorkgroupCountX: TGPUSize32);
  140257. begin
  140258. InvokeJSNoResult('dispatchWorkgroups',[aWorkgroupCountX]);
  140259. end;
  140260. procedure TJSGPUComputePassEncoder.dispatchWorkgroups(aWorkgroupCountX: TGPUSize32; aWorkgroupCountY: TGPUSize32);
  140261. begin
  140262. InvokeJSNoResult('dispatchWorkgroups',[aWorkgroupCountX,aWorkgroupCountY]);
  140263. end;
  140264. procedure TJSGPUComputePassEncoder.dispatchWorkgroupsIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  140265. begin
  140266. InvokeJSNoResult('dispatchWorkgroupsIndirect',[aIndirectBuffer,aIndirectOffset]);
  140267. end;
  140268. procedure TJSGPUComputePassEncoder.end_;
  140269. begin
  140270. InvokeJSNoResult('end',[]);
  140271. end;
  140272. procedure TJSGPUComputePassEncoder.pushDebugGroup(const aGroupLabel: UnicodeString);
  140273. begin
  140274. InvokeJSNoResult('pushDebugGroup',[aGroupLabel]);
  140275. end;
  140276. procedure TJSGPUComputePassEncoder.popDebugGroup;
  140277. begin
  140278. InvokeJSNoResult('popDebugGroup',[]);
  140279. end;
  140280. procedure TJSGPUComputePassEncoder.insertDebugMarker(const aMarkerLabel: UnicodeString);
  140281. begin
  140282. InvokeJSNoResult('insertDebugMarker',[aMarkerLabel]);
  140283. end;
  140284. procedure TJSGPUComputePassEncoder.setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray);
  140285. begin
  140286. InvokeJSNoResult('setBindGroup',[aIndex,aBindGroup,aDynamicOffsets]);
  140287. end;
  140288. procedure TJSGPUComputePassEncoder.setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup);
  140289. begin
  140290. InvokeJSNoResult('setBindGroup',[aIndex,aBindGroup]);
  140291. end;
  140292. class function TJSGPUComputePassEncoder.JSClassName: UnicodeString;
  140293. begin
  140294. Result:='GPUComputePassEncoder';
  140295. end;
  140296. class function TJSGPUComputePassEncoder.Cast(const Intf: IJSObject): IJSGPUComputePassEncoder;
  140297. begin
  140298. Result:=TJSGPUComputePassEncoder.JOBCast(Intf);
  140299. end;
  140300. class function TJSGPUComputePassDescriptor.JSClassName: UnicodeString;
  140301. begin
  140302. Result:='Object';
  140303. end;
  140304. class function TJSGPUComputePassDescriptor.Cast(const Intf: IJSObject): IJSGPUComputePassDescriptor;
  140305. begin
  140306. Result:=TJSGPUComputePassDescriptor.JOBCast(Intf);
  140307. end;
  140308. function TJSGPURenderPassEncoder._Getlabel_: UnicodeString;
  140309. begin
  140310. Result:=ReadJSPropertyUnicodeString('label');
  140311. end;
  140312. procedure TJSGPURenderPassEncoder._Setlabel_(const aValue : UnicodeString);
  140313. begin
  140314. WriteJSPropertyUnicodeString('label',aValue);
  140315. end;
  140316. procedure TJSGPURenderPassEncoder.setViewport(aX: Single; aY: Single; aWidth: Single; aHeight: Single; aMinDepth: Single; aMaxDepth: Single);
  140317. begin
  140318. InvokeJSNoResult('setViewport',[aX,aY,aWidth,aHeight,aMinDepth,aMaxDepth]);
  140319. end;
  140320. procedure TJSGPURenderPassEncoder.setScissorRect(aX: TGPUIntegerCoordinate; aY: TGPUIntegerCoordinate; aWidth: TGPUIntegerCoordinate; aHeight: TGPUIntegerCoordinate);
  140321. begin
  140322. InvokeJSNoResult('setScissorRect',[aX,aY,aWidth,aHeight]);
  140323. end;
  140324. procedure TJSGPURenderPassEncoder.setBlendConstant(const aColor: TJSGPUColorDict);
  140325. begin
  140326. InvokeJSNoResult('setBlendConstant',[aColor]);
  140327. end;
  140328. procedure TJSGPURenderPassEncoder.setBlendConstant(const aColor: TDoubleDynArray);
  140329. begin
  140330. InvokeJSNoResult('setBlendConstant',[aColor]);
  140331. end;
  140332. procedure TJSGPURenderPassEncoder.setStencilReference(aReference: TGPUStencilValue);
  140333. begin
  140334. InvokeJSNoResult('setStencilReference',[aReference]);
  140335. end;
  140336. procedure TJSGPURenderPassEncoder.executeBundles(const aBundles: TJSGPURenderBundleDynArray);
  140337. begin
  140338. InvokeJSNoResult('executeBundles',[aBundles]);
  140339. end;
  140340. procedure TJSGPURenderPassEncoder.end_;
  140341. begin
  140342. InvokeJSNoResult('end',[]);
  140343. end;
  140344. procedure TJSGPURenderPassEncoder.pushDebugGroup(const aGroupLabel: UnicodeString);
  140345. begin
  140346. InvokeJSNoResult('pushDebugGroup',[aGroupLabel]);
  140347. end;
  140348. procedure TJSGPURenderPassEncoder.popDebugGroup;
  140349. begin
  140350. InvokeJSNoResult('popDebugGroup',[]);
  140351. end;
  140352. procedure TJSGPURenderPassEncoder.insertDebugMarker(const aMarkerLabel: UnicodeString);
  140353. begin
  140354. InvokeJSNoResult('insertDebugMarker',[aMarkerLabel]);
  140355. end;
  140356. procedure TJSGPURenderPassEncoder.setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray);
  140357. begin
  140358. InvokeJSNoResult('setBindGroup',[aIndex,aBindGroup,aDynamicOffsets]);
  140359. end;
  140360. procedure TJSGPURenderPassEncoder.setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup);
  140361. begin
  140362. InvokeJSNoResult('setBindGroup',[aIndex,aBindGroup]);
  140363. end;
  140364. procedure TJSGPURenderPassEncoder.setPipeline(aPipeline: IJSGPURenderPipeline);
  140365. begin
  140366. InvokeJSNoResult('setPipeline',[aPipeline]);
  140367. end;
  140368. procedure TJSGPURenderPassEncoder.setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64; aSize: TGPUSize64);
  140369. begin
  140370. InvokeJSNoResult('setIndexBuffer',[aBuffer,aIndexFormat,aOffset,aSize]);
  140371. end;
  140372. procedure TJSGPURenderPassEncoder.setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat);
  140373. begin
  140374. InvokeJSNoResult('setIndexBuffer',[aBuffer,aIndexFormat]);
  140375. end;
  140376. procedure TJSGPURenderPassEncoder.setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64);
  140377. begin
  140378. InvokeJSNoResult('setIndexBuffer',[aBuffer,aIndexFormat,aOffset]);
  140379. end;
  140380. procedure TJSGPURenderPassEncoder.setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64);
  140381. begin
  140382. InvokeJSNoResult('setVertexBuffer',[aSlot,aBuffer,aOffset,aSize]);
  140383. end;
  140384. procedure TJSGPURenderPassEncoder.setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer);
  140385. begin
  140386. InvokeJSNoResult('setVertexBuffer',[aSlot,aBuffer]);
  140387. end;
  140388. procedure TJSGPURenderPassEncoder.setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64);
  140389. begin
  140390. InvokeJSNoResult('setVertexBuffer',[aSlot,aBuffer,aOffset]);
  140391. end;
  140392. procedure TJSGPURenderPassEncoder.draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32; aFirstInstance: TGPUSize32);
  140393. begin
  140394. InvokeJSNoResult('draw',[aVertexCount,aInstanceCount,aFirstVertex,aFirstInstance]);
  140395. end;
  140396. procedure TJSGPURenderPassEncoder.draw(aVertexCount: TGPUSize32);
  140397. begin
  140398. InvokeJSNoResult('draw',[aVertexCount]);
  140399. end;
  140400. procedure TJSGPURenderPassEncoder.draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  140401. begin
  140402. InvokeJSNoResult('draw',[aVertexCount,aInstanceCount]);
  140403. end;
  140404. procedure TJSGPURenderPassEncoder.draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32);
  140405. begin
  140406. InvokeJSNoResult('draw',[aVertexCount,aInstanceCount,aFirstVertex]);
  140407. end;
  140408. procedure TJSGPURenderPassEncoder.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32; aFirstInstance: TGPUSize32);
  140409. begin
  140410. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount,aFirstIndex,aBaseVertex,aFirstInstance]);
  140411. end;
  140412. procedure TJSGPURenderPassEncoder.drawIndexed(aIndexCount: TGPUSize32);
  140413. begin
  140414. InvokeJSNoResult('drawIndexed',[aIndexCount]);
  140415. end;
  140416. procedure TJSGPURenderPassEncoder.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  140417. begin
  140418. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount]);
  140419. end;
  140420. procedure TJSGPURenderPassEncoder.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32);
  140421. begin
  140422. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount,aFirstIndex]);
  140423. end;
  140424. procedure TJSGPURenderPassEncoder.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32);
  140425. begin
  140426. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount,aFirstIndex,aBaseVertex]);
  140427. end;
  140428. procedure TJSGPURenderPassEncoder.drawIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  140429. begin
  140430. InvokeJSNoResult('drawIndirect',[aIndirectBuffer,aIndirectOffset]);
  140431. end;
  140432. procedure TJSGPURenderPassEncoder.drawIndexedIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  140433. begin
  140434. InvokeJSNoResult('drawIndexedIndirect',[aIndirectBuffer,aIndirectOffset]);
  140435. end;
  140436. class function TJSGPURenderPassEncoder.JSClassName: UnicodeString;
  140437. begin
  140438. Result:='GPURenderPassEncoder';
  140439. end;
  140440. class function TJSGPURenderPassEncoder.Cast(const Intf: IJSObject): IJSGPURenderPassEncoder;
  140441. begin
  140442. Result:=TJSGPURenderPassEncoder.JOBCast(Intf);
  140443. end;
  140444. function TJSGPURenderPassDescriptor._GetcolorAttachments: TJSGPURenderPassColorAttachmentDynArray;
  140445. begin
  140446. Result:=ReadJSPropertyObject('colorAttachments',TJSArray) as TJSGPURenderPassColorAttachmentDynArray;
  140447. end;
  140448. function TJSGPURenderPassDescriptor._GetdepthStencilAttachment: TJSGPURenderPassDepthStencilAttachment;
  140449. begin
  140450. Result:=ReadJSPropertyObject('depthStencilAttachment',TJSGPURenderPassDepthStencilAttachment) as TJSGPURenderPassDepthStencilAttachment;
  140451. end;
  140452. function TJSGPURenderPassDescriptor._GetocclusionQuerySet: IJSGPUQuerySet;
  140453. begin
  140454. Result:=ReadJSPropertyObject('occlusionQuerySet',TJSGPUQuerySet) as IJSGPUQuerySet;
  140455. end;
  140456. procedure TJSGPURenderPassDescriptor._SetcolorAttachments(const aValue : TJSGPURenderPassColorAttachmentDynArray);
  140457. begin
  140458. WriteJSPropertyObject('colorAttachments',aValue);
  140459. end;
  140460. procedure TJSGPURenderPassDescriptor._SetdepthStencilAttachment(const aValue : TJSGPURenderPassDepthStencilAttachment);
  140461. begin
  140462. WriteJSPropertyObject('depthStencilAttachment',aValue);
  140463. end;
  140464. procedure TJSGPURenderPassDescriptor._SetocclusionQuerySet(const aValue : IJSGPUQuerySet);
  140465. begin
  140466. WriteJSPropertyObject('occlusionQuerySet',aValue);
  140467. end;
  140468. class function TJSGPURenderPassDescriptor.JSClassName: UnicodeString;
  140469. begin
  140470. Result:='Object';
  140471. end;
  140472. class function TJSGPURenderPassDescriptor.Cast(const Intf: IJSObject): IJSGPURenderPassDescriptor;
  140473. begin
  140474. Result:=TJSGPURenderPassDescriptor.JOBCast(Intf);
  140475. end;
  140476. function TJSGPURenderPassColorAttachment._Getview: IJSGPUTextureView;
  140477. begin
  140478. Result:=ReadJSPropertyObject('view',TJSGPUTextureView) as IJSGPUTextureView;
  140479. end;
  140480. function TJSGPURenderPassColorAttachment._GetresolveTarget: IJSGPUTextureView;
  140481. begin
  140482. Result:=ReadJSPropertyObject('resolveTarget',TJSGPUTextureView) as IJSGPUTextureView;
  140483. end;
  140484. function TJSGPURenderPassColorAttachment._GetclearValue: TGPUColor;
  140485. begin
  140486. Result:=ReadJSPropertyVariant('clearValue');
  140487. end;
  140488. function TJSGPURenderPassColorAttachment._GetloadOp: TGPULoadOp;
  140489. begin
  140490. Result:=ReadJSPropertyUnicodeString('loadOp');
  140491. end;
  140492. function TJSGPURenderPassColorAttachment._GetstoreOp: TGPUStoreOp;
  140493. begin
  140494. Result:=ReadJSPropertyUnicodeString('storeOp');
  140495. end;
  140496. procedure TJSGPURenderPassColorAttachment._Setview(const aValue : IJSGPUTextureView);
  140497. begin
  140498. WriteJSPropertyObject('view',aValue);
  140499. end;
  140500. procedure TJSGPURenderPassColorAttachment._SetresolveTarget(const aValue : IJSGPUTextureView);
  140501. begin
  140502. WriteJSPropertyObject('resolveTarget',aValue);
  140503. end;
  140504. procedure TJSGPURenderPassColorAttachment._SetclearValue(const aValue : TGPUColor);
  140505. begin
  140506. WriteJSPropertyVariant('clearValue',aValue);
  140507. end;
  140508. procedure TJSGPURenderPassColorAttachment._SetloadOp(const aValue : TGPULoadOp);
  140509. begin
  140510. WriteJSPropertyUnicodeString('loadOp',aValue);
  140511. end;
  140512. procedure TJSGPURenderPassColorAttachment._SetstoreOp(const aValue : TGPUStoreOp);
  140513. begin
  140514. WriteJSPropertyUnicodeString('storeOp',aValue);
  140515. end;
  140516. class function TJSGPURenderPassColorAttachment.JSClassName: UnicodeString;
  140517. begin
  140518. Result:='Object';
  140519. end;
  140520. class function TJSGPURenderPassColorAttachment.Cast(const Intf: IJSObject): IJSGPURenderPassColorAttachment;
  140521. begin
  140522. Result:=TJSGPURenderPassColorAttachment.JOBCast(Intf);
  140523. end;
  140524. function TJSGPURenderPassDepthStencilAttachment._Getview: IJSGPUTextureView;
  140525. begin
  140526. Result:=ReadJSPropertyObject('view',TJSGPUTextureView) as IJSGPUTextureView;
  140527. end;
  140528. function TJSGPURenderPassDepthStencilAttachment._GetdepthClearValue: Single;
  140529. begin
  140530. Result:=ReadJSPropertyDouble('depthClearValue');
  140531. end;
  140532. function TJSGPURenderPassDepthStencilAttachment._GetdepthLoadOp: TGPULoadOp;
  140533. begin
  140534. Result:=ReadJSPropertyUnicodeString('depthLoadOp');
  140535. end;
  140536. function TJSGPURenderPassDepthStencilAttachment._GetdepthStoreOp: TGPUStoreOp;
  140537. begin
  140538. Result:=ReadJSPropertyUnicodeString('depthStoreOp');
  140539. end;
  140540. function TJSGPURenderPassDepthStencilAttachment._GetdepthReadOnly: Boolean;
  140541. begin
  140542. Result:=ReadJSPropertyBoolean('depthReadOnly');
  140543. end;
  140544. function TJSGPURenderPassDepthStencilAttachment._GetstencilClearValue: TGPUStencilValue;
  140545. begin
  140546. Result:=ReadJSPropertyInt64('stencilClearValue');
  140547. end;
  140548. function TJSGPURenderPassDepthStencilAttachment._GetstencilLoadOp: TGPULoadOp;
  140549. begin
  140550. Result:=ReadJSPropertyUnicodeString('stencilLoadOp');
  140551. end;
  140552. function TJSGPURenderPassDepthStencilAttachment._GetstencilStoreOp: TGPUStoreOp;
  140553. begin
  140554. Result:=ReadJSPropertyUnicodeString('stencilStoreOp');
  140555. end;
  140556. function TJSGPURenderPassDepthStencilAttachment._GetstencilReadOnly: Boolean;
  140557. begin
  140558. Result:=ReadJSPropertyBoolean('stencilReadOnly');
  140559. end;
  140560. procedure TJSGPURenderPassDepthStencilAttachment._Setview(const aValue : IJSGPUTextureView);
  140561. begin
  140562. WriteJSPropertyObject('view',aValue);
  140563. end;
  140564. procedure TJSGPURenderPassDepthStencilAttachment._SetdepthClearValue(const aValue : Single);
  140565. begin
  140566. WriteJSPropertyDouble('depthClearValue',aValue);
  140567. end;
  140568. procedure TJSGPURenderPassDepthStencilAttachment._SetdepthLoadOp(const aValue : TGPULoadOp);
  140569. begin
  140570. WriteJSPropertyUnicodeString('depthLoadOp',aValue);
  140571. end;
  140572. procedure TJSGPURenderPassDepthStencilAttachment._SetdepthStoreOp(const aValue : TGPUStoreOp);
  140573. begin
  140574. WriteJSPropertyUnicodeString('depthStoreOp',aValue);
  140575. end;
  140576. procedure TJSGPURenderPassDepthStencilAttachment._SetdepthReadOnly(const aValue : Boolean);
  140577. begin
  140578. WriteJSPropertyBoolean('depthReadOnly',aValue);
  140579. end;
  140580. procedure TJSGPURenderPassDepthStencilAttachment._SetstencilClearValue(const aValue : TGPUStencilValue);
  140581. begin
  140582. WriteJSPropertyDouble('stencilClearValue',aValue);
  140583. end;
  140584. procedure TJSGPURenderPassDepthStencilAttachment._SetstencilLoadOp(const aValue : TGPULoadOp);
  140585. begin
  140586. WriteJSPropertyUnicodeString('stencilLoadOp',aValue);
  140587. end;
  140588. procedure TJSGPURenderPassDepthStencilAttachment._SetstencilStoreOp(const aValue : TGPUStoreOp);
  140589. begin
  140590. WriteJSPropertyUnicodeString('stencilStoreOp',aValue);
  140591. end;
  140592. procedure TJSGPURenderPassDepthStencilAttachment._SetstencilReadOnly(const aValue : Boolean);
  140593. begin
  140594. WriteJSPropertyBoolean('stencilReadOnly',aValue);
  140595. end;
  140596. class function TJSGPURenderPassDepthStencilAttachment.JSClassName: UnicodeString;
  140597. begin
  140598. Result:='Object';
  140599. end;
  140600. class function TJSGPURenderPassDepthStencilAttachment.Cast(const Intf: IJSObject): IJSGPURenderPassDepthStencilAttachment;
  140601. begin
  140602. Result:=TJSGPURenderPassDepthStencilAttachment.JOBCast(Intf);
  140603. end;
  140604. function TJSGPURenderPassLayout._GetcolorFormats: TGPUTextureFormatDynArray;
  140605. begin
  140606. Result:=ReadJSPropertyObject('colorFormats',TJSArray) as TGPUTextureFormatDynArray;
  140607. end;
  140608. function TJSGPURenderPassLayout._GetdepthStencilFormat: TGPUTextureFormat;
  140609. begin
  140610. Result:=ReadJSPropertyUnicodeString('depthStencilFormat');
  140611. end;
  140612. function TJSGPURenderPassLayout._GetsampleCount: TGPUSize32;
  140613. begin
  140614. Result:=ReadJSPropertyInt64('sampleCount');
  140615. end;
  140616. procedure TJSGPURenderPassLayout._SetcolorFormats(const aValue : TGPUTextureFormatDynArray);
  140617. begin
  140618. WriteJSPropertyObject('colorFormats',aValue);
  140619. end;
  140620. procedure TJSGPURenderPassLayout._SetdepthStencilFormat(const aValue : TGPUTextureFormat);
  140621. begin
  140622. WriteJSPropertyUnicodeString('depthStencilFormat',aValue);
  140623. end;
  140624. procedure TJSGPURenderPassLayout._SetsampleCount(const aValue : TGPUSize32);
  140625. begin
  140626. WriteJSPropertyDouble('sampleCount',aValue);
  140627. end;
  140628. class function TJSGPURenderPassLayout.JSClassName: UnicodeString;
  140629. begin
  140630. Result:='Object';
  140631. end;
  140632. class function TJSGPURenderPassLayout.Cast(const Intf: IJSObject): IJSGPURenderPassLayout;
  140633. begin
  140634. Result:=TJSGPURenderPassLayout.JOBCast(Intf);
  140635. end;
  140636. procedure TJSGPURenderCommandsMixin.setPipeline(aPipeline: IJSGPURenderPipeline);
  140637. begin
  140638. InvokeJSNoResult('setPipeline',[aPipeline]);
  140639. end;
  140640. procedure TJSGPURenderCommandsMixin.setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64; aSize: TGPUSize64);
  140641. begin
  140642. InvokeJSNoResult('setIndexBuffer',[aBuffer,aIndexFormat,aOffset,aSize]);
  140643. end;
  140644. procedure TJSGPURenderCommandsMixin.setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat);
  140645. begin
  140646. InvokeJSNoResult('setIndexBuffer',[aBuffer,aIndexFormat]);
  140647. end;
  140648. procedure TJSGPURenderCommandsMixin.setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64);
  140649. begin
  140650. InvokeJSNoResult('setIndexBuffer',[aBuffer,aIndexFormat,aOffset]);
  140651. end;
  140652. procedure TJSGPURenderCommandsMixin.setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64);
  140653. begin
  140654. InvokeJSNoResult('setVertexBuffer',[aSlot,aBuffer,aOffset,aSize]);
  140655. end;
  140656. procedure TJSGPURenderCommandsMixin.setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer);
  140657. begin
  140658. InvokeJSNoResult('setVertexBuffer',[aSlot,aBuffer]);
  140659. end;
  140660. procedure TJSGPURenderCommandsMixin.setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64);
  140661. begin
  140662. InvokeJSNoResult('setVertexBuffer',[aSlot,aBuffer,aOffset]);
  140663. end;
  140664. procedure TJSGPURenderCommandsMixin.draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32; aFirstInstance: TGPUSize32);
  140665. begin
  140666. InvokeJSNoResult('draw',[aVertexCount,aInstanceCount,aFirstVertex,aFirstInstance]);
  140667. end;
  140668. procedure TJSGPURenderCommandsMixin.draw(aVertexCount: TGPUSize32);
  140669. begin
  140670. InvokeJSNoResult('draw',[aVertexCount]);
  140671. end;
  140672. procedure TJSGPURenderCommandsMixin.draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  140673. begin
  140674. InvokeJSNoResult('draw',[aVertexCount,aInstanceCount]);
  140675. end;
  140676. procedure TJSGPURenderCommandsMixin.draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32);
  140677. begin
  140678. InvokeJSNoResult('draw',[aVertexCount,aInstanceCount,aFirstVertex]);
  140679. end;
  140680. procedure TJSGPURenderCommandsMixin.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32; aFirstInstance: TGPUSize32);
  140681. begin
  140682. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount,aFirstIndex,aBaseVertex,aFirstInstance]);
  140683. end;
  140684. procedure TJSGPURenderCommandsMixin.drawIndexed(aIndexCount: TGPUSize32);
  140685. begin
  140686. InvokeJSNoResult('drawIndexed',[aIndexCount]);
  140687. end;
  140688. procedure TJSGPURenderCommandsMixin.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  140689. begin
  140690. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount]);
  140691. end;
  140692. procedure TJSGPURenderCommandsMixin.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32);
  140693. begin
  140694. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount,aFirstIndex]);
  140695. end;
  140696. procedure TJSGPURenderCommandsMixin.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32);
  140697. begin
  140698. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount,aFirstIndex,aBaseVertex]);
  140699. end;
  140700. procedure TJSGPURenderCommandsMixin.drawIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  140701. begin
  140702. InvokeJSNoResult('drawIndirect',[aIndirectBuffer,aIndirectOffset]);
  140703. end;
  140704. procedure TJSGPURenderCommandsMixin.drawIndexedIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  140705. begin
  140706. InvokeJSNoResult('drawIndexedIndirect',[aIndirectBuffer,aIndirectOffset]);
  140707. end;
  140708. class function TJSGPURenderCommandsMixin.JSClassName: UnicodeString;
  140709. begin
  140710. Result:='GPURenderCommandsMixin';
  140711. end;
  140712. class function TJSGPURenderCommandsMixin.Cast(const Intf: IJSObject): IJSGPURenderCommandsMixin;
  140713. begin
  140714. Result:=TJSGPURenderCommandsMixin.JOBCast(Intf);
  140715. end;
  140716. class function TJSGPURenderBundle.JSClassName: UnicodeString;
  140717. begin
  140718. Result:='GPURenderBundle';
  140719. end;
  140720. class function TJSGPURenderBundle.Cast(const Intf: IJSObject): IJSGPURenderBundle;
  140721. begin
  140722. Result:=TJSGPURenderBundle.JOBCast(Intf);
  140723. end;
  140724. class function TJSGPURenderBundleDescriptor.JSClassName: UnicodeString;
  140725. begin
  140726. Result:='Object';
  140727. end;
  140728. class function TJSGPURenderBundleDescriptor.Cast(const Intf: IJSObject): IJSGPURenderBundleDescriptor;
  140729. begin
  140730. Result:=TJSGPURenderBundleDescriptor.JOBCast(Intf);
  140731. end;
  140732. function TJSGPURenderBundleEncoder._Getlabel_: UnicodeString;
  140733. begin
  140734. Result:=ReadJSPropertyUnicodeString('label');
  140735. end;
  140736. procedure TJSGPURenderBundleEncoder._Setlabel_(const aValue : UnicodeString);
  140737. begin
  140738. WriteJSPropertyUnicodeString('label',aValue);
  140739. end;
  140740. function TJSGPURenderBundleEncoder.finish(const aDescriptor: TJSGPURenderBundleDescriptor): IJSGPURenderBundle;
  140741. begin
  140742. Result:=InvokeJSObjectResult('finish',[aDescriptor],TJSGPURenderBundle) as IJSGPURenderBundle;
  140743. end;
  140744. function TJSGPURenderBundleEncoder.finish: IJSGPURenderBundle;
  140745. begin
  140746. Result:=InvokeJSObjectResult('finish',[],TJSGPURenderBundle) as IJSGPURenderBundle;
  140747. end;
  140748. procedure TJSGPURenderBundleEncoder.pushDebugGroup(const aGroupLabel: UnicodeString);
  140749. begin
  140750. InvokeJSNoResult('pushDebugGroup',[aGroupLabel]);
  140751. end;
  140752. procedure TJSGPURenderBundleEncoder.popDebugGroup;
  140753. begin
  140754. InvokeJSNoResult('popDebugGroup',[]);
  140755. end;
  140756. procedure TJSGPURenderBundleEncoder.insertDebugMarker(const aMarkerLabel: UnicodeString);
  140757. begin
  140758. InvokeJSNoResult('insertDebugMarker',[aMarkerLabel]);
  140759. end;
  140760. procedure TJSGPURenderBundleEncoder.setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup; const aDynamicOffsets: TGPUBufferDynamicOffsetDynArray);
  140761. begin
  140762. InvokeJSNoResult('setBindGroup',[aIndex,aBindGroup,aDynamicOffsets]);
  140763. end;
  140764. procedure TJSGPURenderBundleEncoder.setBindGroup(aIndex: TGPUIndex32; aBindGroup: IJSGPUBindGroup);
  140765. begin
  140766. InvokeJSNoResult('setBindGroup',[aIndex,aBindGroup]);
  140767. end;
  140768. procedure TJSGPURenderBundleEncoder.setPipeline(aPipeline: IJSGPURenderPipeline);
  140769. begin
  140770. InvokeJSNoResult('setPipeline',[aPipeline]);
  140771. end;
  140772. procedure TJSGPURenderBundleEncoder.setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64; aSize: TGPUSize64);
  140773. begin
  140774. InvokeJSNoResult('setIndexBuffer',[aBuffer,aIndexFormat,aOffset,aSize]);
  140775. end;
  140776. procedure TJSGPURenderBundleEncoder.setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat);
  140777. begin
  140778. InvokeJSNoResult('setIndexBuffer',[aBuffer,aIndexFormat]);
  140779. end;
  140780. procedure TJSGPURenderBundleEncoder.setIndexBuffer(aBuffer: IJSGPUBuffer; aIndexFormat: TGPUIndexFormat; aOffset: TGPUSize64);
  140781. begin
  140782. InvokeJSNoResult('setIndexBuffer',[aBuffer,aIndexFormat,aOffset]);
  140783. end;
  140784. procedure TJSGPURenderBundleEncoder.setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64; aSize: TGPUSize64);
  140785. begin
  140786. InvokeJSNoResult('setVertexBuffer',[aSlot,aBuffer,aOffset,aSize]);
  140787. end;
  140788. procedure TJSGPURenderBundleEncoder.setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer);
  140789. begin
  140790. InvokeJSNoResult('setVertexBuffer',[aSlot,aBuffer]);
  140791. end;
  140792. procedure TJSGPURenderBundleEncoder.setVertexBuffer(aSlot: TGPUIndex32; aBuffer: IJSGPUBuffer; aOffset: TGPUSize64);
  140793. begin
  140794. InvokeJSNoResult('setVertexBuffer',[aSlot,aBuffer,aOffset]);
  140795. end;
  140796. procedure TJSGPURenderBundleEncoder.draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32; aFirstInstance: TGPUSize32);
  140797. begin
  140798. InvokeJSNoResult('draw',[aVertexCount,aInstanceCount,aFirstVertex,aFirstInstance]);
  140799. end;
  140800. procedure TJSGPURenderBundleEncoder.draw(aVertexCount: TGPUSize32);
  140801. begin
  140802. InvokeJSNoResult('draw',[aVertexCount]);
  140803. end;
  140804. procedure TJSGPURenderBundleEncoder.draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  140805. begin
  140806. InvokeJSNoResult('draw',[aVertexCount,aInstanceCount]);
  140807. end;
  140808. procedure TJSGPURenderBundleEncoder.draw(aVertexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstVertex: TGPUSize32);
  140809. begin
  140810. InvokeJSNoResult('draw',[aVertexCount,aInstanceCount,aFirstVertex]);
  140811. end;
  140812. procedure TJSGPURenderBundleEncoder.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32; aFirstInstance: TGPUSize32);
  140813. begin
  140814. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount,aFirstIndex,aBaseVertex,aFirstInstance]);
  140815. end;
  140816. procedure TJSGPURenderBundleEncoder.drawIndexed(aIndexCount: TGPUSize32);
  140817. begin
  140818. InvokeJSNoResult('drawIndexed',[aIndexCount]);
  140819. end;
  140820. procedure TJSGPURenderBundleEncoder.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32);
  140821. begin
  140822. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount]);
  140823. end;
  140824. procedure TJSGPURenderBundleEncoder.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32);
  140825. begin
  140826. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount,aFirstIndex]);
  140827. end;
  140828. procedure TJSGPURenderBundleEncoder.drawIndexed(aIndexCount: TGPUSize32; aInstanceCount: TGPUSize32; aFirstIndex: TGPUSize32; aBaseVertex: TGPUSignedOffset32);
  140829. begin
  140830. InvokeJSNoResult('drawIndexed',[aIndexCount,aInstanceCount,aFirstIndex,aBaseVertex]);
  140831. end;
  140832. procedure TJSGPURenderBundleEncoder.drawIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  140833. begin
  140834. InvokeJSNoResult('drawIndirect',[aIndirectBuffer,aIndirectOffset]);
  140835. end;
  140836. procedure TJSGPURenderBundleEncoder.drawIndexedIndirect(aIndirectBuffer: IJSGPUBuffer; aIndirectOffset: TGPUSize64);
  140837. begin
  140838. InvokeJSNoResult('drawIndexedIndirect',[aIndirectBuffer,aIndirectOffset]);
  140839. end;
  140840. class function TJSGPURenderBundleEncoder.JSClassName: UnicodeString;
  140841. begin
  140842. Result:='GPURenderBundleEncoder';
  140843. end;
  140844. class function TJSGPURenderBundleEncoder.Cast(const Intf: IJSObject): IJSGPURenderBundleEncoder;
  140845. begin
  140846. Result:=TJSGPURenderBundleEncoder.JOBCast(Intf);
  140847. end;
  140848. function TJSGPURenderBundleEncoderDescriptor._GetdepthReadOnly: Boolean;
  140849. begin
  140850. Result:=ReadJSPropertyBoolean('depthReadOnly');
  140851. end;
  140852. function TJSGPURenderBundleEncoderDescriptor._GetstencilReadOnly: Boolean;
  140853. begin
  140854. Result:=ReadJSPropertyBoolean('stencilReadOnly');
  140855. end;
  140856. procedure TJSGPURenderBundleEncoderDescriptor._SetdepthReadOnly(const aValue : Boolean);
  140857. begin
  140858. WriteJSPropertyBoolean('depthReadOnly',aValue);
  140859. end;
  140860. procedure TJSGPURenderBundleEncoderDescriptor._SetstencilReadOnly(const aValue : Boolean);
  140861. begin
  140862. WriteJSPropertyBoolean('stencilReadOnly',aValue);
  140863. end;
  140864. class function TJSGPURenderBundleEncoderDescriptor.JSClassName: UnicodeString;
  140865. begin
  140866. Result:='Object';
  140867. end;
  140868. class function TJSGPURenderBundleEncoderDescriptor.Cast(const Intf: IJSObject): IJSGPURenderBundleEncoderDescriptor;
  140869. begin
  140870. Result:=TJSGPURenderBundleEncoderDescriptor.JOBCast(Intf);
  140871. end;
  140872. class function TJSGPUQueueDescriptor.JSClassName: UnicodeString;
  140873. begin
  140874. Result:='Object';
  140875. end;
  140876. class function TJSGPUQueueDescriptor.Cast(const Intf: IJSObject): IJSGPUQueueDescriptor;
  140877. begin
  140878. Result:=TJSGPUQueueDescriptor.JOBCast(Intf);
  140879. end;
  140880. procedure TJSGPUQueue.submit(const aBuffers: TJSGPUCommandBufferDynArray);
  140881. begin
  140882. InvokeJSNoResult('submit',[aBuffers]);
  140883. end;
  140884. function TJSGPUQueue.onSubmittedWorkDone: IJSPromise; // Promise<undefined>
  140885. begin
  140886. Result:=InvokeJSObjectResult('onSubmittedWorkDone',[],TJSPromise) as IJSPromise;
  140887. end;
  140888. procedure TJSGPUQueue.writeBuffer(aBuffer: IJSGPUBuffer; aBufferOffset: TGPUSize64; aData: IJSBufferSource; aDataOffset: TGPUSize64; aSize: TGPUSize64);
  140889. begin
  140890. InvokeJSNoResult('writeBuffer',[aBuffer,aBufferOffset,aData,aDataOffset,aSize]);
  140891. end;
  140892. procedure TJSGPUQueue.writeBuffer(aBuffer: IJSGPUBuffer; aBufferOffset: TGPUSize64; aData: IJSBufferSource);
  140893. begin
  140894. InvokeJSNoResult('writeBuffer',[aBuffer,aBufferOffset,aData]);
  140895. end;
  140896. procedure TJSGPUQueue.writeBuffer(aBuffer: IJSGPUBuffer; aBufferOffset: TGPUSize64; aData: IJSBufferSource; aDataOffset: TGPUSize64);
  140897. begin
  140898. InvokeJSNoResult('writeBuffer',[aBuffer,aBufferOffset,aData,aDataOffset]);
  140899. end;
  140900. procedure TJSGPUQueue.writeTexture(const aDestination: TJSGPUImageCopyTexture; aData: IJSBufferSource; const aDataLayout: TJSGPUImageDataLayout; const aSize: TJSGPUExtent3DDict);
  140901. begin
  140902. InvokeJSNoResult('writeTexture',[aDestination,aData,aDataLayout,aSize]);
  140903. end;
  140904. procedure TJSGPUQueue.writeTexture(const aDestination: TJSGPUImageCopyTexture; aData: IJSBufferSource; const aDataLayout: TJSGPUImageDataLayout; const aSize: TGPUIntegerCoordinateDynArray);
  140905. begin
  140906. InvokeJSNoResult('writeTexture',[aDestination,aData,aDataLayout,aSize]);
  140907. end;
  140908. procedure TJSGPUQueue.copyExternalImageToTexture(const aSource: TJSGPUImageCopyExternalImage; const aDestination: TJSGPUImageCopyTextureTagged; const aCopySize: TJSGPUExtent3DDict);
  140909. begin
  140910. InvokeJSNoResult('copyExternalImageToTexture',[aSource,aDestination,aCopySize]);
  140911. end;
  140912. procedure TJSGPUQueue.copyExternalImageToTexture(const aSource: TJSGPUImageCopyExternalImage; const aDestination: TJSGPUImageCopyTextureTagged; const aCopySize: TGPUIntegerCoordinateDynArray);
  140913. begin
  140914. InvokeJSNoResult('copyExternalImageToTexture',[aSource,aDestination,aCopySize]);
  140915. end;
  140916. class function TJSGPUQueue.JSClassName: UnicodeString;
  140917. begin
  140918. Result:='GPUQueue';
  140919. end;
  140920. class function TJSGPUQueue.Cast(const Intf: IJSObject): IJSGPUQueue;
  140921. begin
  140922. Result:=TJSGPUQueue.JOBCast(Intf);
  140923. end;
  140924. procedure TJSGPUQuerySet.destroy;
  140925. begin
  140926. InvokeJSNoResult('destroy',[]);
  140927. end;
  140928. class function TJSGPUQuerySet.JSClassName: UnicodeString;
  140929. begin
  140930. Result:='GPUQuerySet';
  140931. end;
  140932. class function TJSGPUQuerySet.Cast(const Intf: IJSObject): IJSGPUQuerySet;
  140933. begin
  140934. Result:=TJSGPUQuerySet.JOBCast(Intf);
  140935. end;
  140936. function TJSGPUQuerySetDescriptor._Gettype_: TGPUQueryType;
  140937. begin
  140938. Result:=ReadJSPropertyUnicodeString('type');
  140939. end;
  140940. function TJSGPUQuerySetDescriptor._Getcount: TGPUSize32;
  140941. begin
  140942. Result:=ReadJSPropertyInt64('count');
  140943. end;
  140944. function TJSGPUQuerySetDescriptor._GetpipelineStatistics: TGPUPipelineStatisticNameDynArray;
  140945. begin
  140946. Result:=ReadJSPropertyObject('pipelineStatistics',TJSArray) as TGPUPipelineStatisticNameDynArray;
  140947. end;
  140948. procedure TJSGPUQuerySetDescriptor._Settype_(const aValue : TGPUQueryType);
  140949. begin
  140950. WriteJSPropertyUnicodeString('type',aValue);
  140951. end;
  140952. procedure TJSGPUQuerySetDescriptor._Setcount(const aValue : TGPUSize32);
  140953. begin
  140954. WriteJSPropertyDouble('count',aValue);
  140955. end;
  140956. procedure TJSGPUQuerySetDescriptor._SetpipelineStatistics(const aValue : TGPUPipelineStatisticNameDynArray);
  140957. begin
  140958. WriteJSPropertyObject('pipelineStatistics',aValue);
  140959. end;
  140960. class function TJSGPUQuerySetDescriptor.JSClassName: UnicodeString;
  140961. begin
  140962. Result:='Object';
  140963. end;
  140964. class function TJSGPUQuerySetDescriptor.Cast(const Intf: IJSObject): IJSGPUQuerySetDescriptor;
  140965. begin
  140966. Result:=TJSGPUQuerySetDescriptor.JOBCast(Intf);
  140967. end;
  140968. function TJSGPUCanvasContext._Getcanvas: TGPUCanvasContext_canvas_Type;
  140969. begin
  140970. Result:=ReadJSPropertyVariant('canvas');
  140971. end;
  140972. procedure TJSGPUCanvasContext.configure(const aConfiguration: TJSGPUCanvasConfiguration);
  140973. begin
  140974. InvokeJSNoResult('configure',[aConfiguration]);
  140975. end;
  140976. procedure TJSGPUCanvasContext.unconfigure;
  140977. begin
  140978. InvokeJSNoResult('unconfigure',[]);
  140979. end;
  140980. function TJSGPUCanvasContext.getCurrentTexture: IJSGPUTexture;
  140981. begin
  140982. Result:=InvokeJSObjectResult('getCurrentTexture',[],TJSGPUTexture) as IJSGPUTexture;
  140983. end;
  140984. class function TJSGPUCanvasContext.JSClassName: UnicodeString;
  140985. begin
  140986. Result:='GPUCanvasContext';
  140987. end;
  140988. class function TJSGPUCanvasContext.Cast(const Intf: IJSObject): IJSGPUCanvasContext;
  140989. begin
  140990. Result:=TJSGPUCanvasContext.JOBCast(Intf);
  140991. end;
  140992. function TJSGPUCanvasConfiguration._Getdevice: IJSGPUDevice;
  140993. begin
  140994. Result:=ReadJSPropertyObject('device',TJSGPUDevice) as IJSGPUDevice;
  140995. end;
  140996. function TJSGPUCanvasConfiguration._Getformat: TGPUTextureFormat;
  140997. begin
  140998. Result:=ReadJSPropertyUnicodeString('format');
  140999. end;
  141000. function TJSGPUCanvasConfiguration._Getusage: TGPUTextureUsageFlags;
  141001. begin
  141002. Result:=ReadJSPropertyInt64('usage');
  141003. end;
  141004. function TJSGPUCanvasConfiguration._GetviewFormats: TGPUTextureFormatDynArray;
  141005. begin
  141006. Result:=ReadJSPropertyObject('viewFormats',TJSArray) as TGPUTextureFormatDynArray;
  141007. end;
  141008. function TJSGPUCanvasConfiguration._GetalphaMode: TGPUCanvasAlphaMode;
  141009. begin
  141010. Result:=ReadJSPropertyUnicodeString('alphaMode');
  141011. end;
  141012. procedure TJSGPUCanvasConfiguration._Setdevice(const aValue : IJSGPUDevice);
  141013. begin
  141014. WriteJSPropertyObject('device',aValue);
  141015. end;
  141016. procedure TJSGPUCanvasConfiguration._Setformat(const aValue : TGPUTextureFormat);
  141017. begin
  141018. WriteJSPropertyUnicodeString('format',aValue);
  141019. end;
  141020. procedure TJSGPUCanvasConfiguration._Setusage(const aValue : TGPUTextureUsageFlags);
  141021. begin
  141022. WriteJSPropertyDouble('usage',aValue);
  141023. end;
  141024. procedure TJSGPUCanvasConfiguration._SetviewFormats(const aValue : TGPUTextureFormatDynArray);
  141025. begin
  141026. WriteJSPropertyObject('viewFormats',aValue);
  141027. end;
  141028. procedure TJSGPUCanvasConfiguration._SetalphaMode(const aValue : TGPUCanvasAlphaMode);
  141029. begin
  141030. WriteJSPropertyUnicodeString('alphaMode',aValue);
  141031. end;
  141032. class function TJSGPUCanvasConfiguration.JSClassName: UnicodeString;
  141033. begin
  141034. Result:='Object';
  141035. end;
  141036. class function TJSGPUCanvasConfiguration.Cast(const Intf: IJSObject): IJSGPUCanvasConfiguration;
  141037. begin
  141038. Result:=TJSGPUCanvasConfiguration.JOBCast(Intf);
  141039. end;
  141040. function TJSGPUDeviceLostInfo._Getreason: Variant;
  141041. begin
  141042. Result:=ReadJSPropertyVariant('reason');
  141043. end;
  141044. function TJSGPUDeviceLostInfo._Getmessage: UnicodeString;
  141045. begin
  141046. Result:=ReadJSPropertyUnicodeString('message');
  141047. end;
  141048. class function TJSGPUDeviceLostInfo.JSClassName: UnicodeString;
  141049. begin
  141050. Result:='GPUDeviceLostInfo';
  141051. end;
  141052. class function TJSGPUDeviceLostInfo.Cast(const Intf: IJSObject): IJSGPUDeviceLostInfo;
  141053. begin
  141054. Result:=TJSGPUDeviceLostInfo.JOBCast(Intf);
  141055. end;
  141056. function TJSGPUError._Getmessage: UnicodeString;
  141057. begin
  141058. Result:=ReadJSPropertyUnicodeString('message');
  141059. end;
  141060. class function TJSGPUError.JSClassName: UnicodeString;
  141061. begin
  141062. Result:='GPUError';
  141063. end;
  141064. class function TJSGPUError.Cast(const Intf: IJSObject): IJSGPUError;
  141065. begin
  141066. Result:=TJSGPUError.JOBCast(Intf);
  141067. end;
  141068. constructor TJSGPUValidationError.Create(const aMessage: UnicodeString);
  141069. begin
  141070. JOBCreate([aMessage]);
  141071. end;
  141072. class function TJSGPUValidationError.JSClassName: UnicodeString;
  141073. begin
  141074. Result:='GPUValidationError';
  141075. end;
  141076. class function TJSGPUValidationError.Cast(const Intf: IJSObject): IJSGPUValidationError;
  141077. begin
  141078. Result:=TJSGPUValidationError.JOBCast(Intf);
  141079. end;
  141080. constructor TJSGPUOutOfMemoryError.Create(const aMessage: UnicodeString);
  141081. begin
  141082. JOBCreate([aMessage]);
  141083. end;
  141084. class function TJSGPUOutOfMemoryError.JSClassName: UnicodeString;
  141085. begin
  141086. Result:='GPUOutOfMemoryError';
  141087. end;
  141088. class function TJSGPUOutOfMemoryError.Cast(const Intf: IJSObject): IJSGPUOutOfMemoryError;
  141089. begin
  141090. Result:=TJSGPUOutOfMemoryError.JOBCast(Intf);
  141091. end;
  141092. constructor TJSGPUInternalError.Create(const aMessage: UnicodeString);
  141093. begin
  141094. JOBCreate([aMessage]);
  141095. end;
  141096. class function TJSGPUInternalError.JSClassName: UnicodeString;
  141097. begin
  141098. Result:='GPUInternalError';
  141099. end;
  141100. class function TJSGPUInternalError.Cast(const Intf: IJSObject): IJSGPUInternalError;
  141101. begin
  141102. Result:=TJSGPUInternalError.JOBCast(Intf);
  141103. end;
  141104. function TJSGPUColorDict._Getr: Double;
  141105. begin
  141106. Result:=ReadJSPropertyDouble('r');
  141107. end;
  141108. function TJSGPUColorDict._Getg: Double;
  141109. begin
  141110. Result:=ReadJSPropertyDouble('g');
  141111. end;
  141112. function TJSGPUColorDict._Getb: Double;
  141113. begin
  141114. Result:=ReadJSPropertyDouble('b');
  141115. end;
  141116. function TJSGPUColorDict._Geta: Double;
  141117. begin
  141118. Result:=ReadJSPropertyDouble('a');
  141119. end;
  141120. procedure TJSGPUColorDict._Setr(const aValue : Double);
  141121. begin
  141122. WriteJSPropertyDouble('r',aValue);
  141123. end;
  141124. procedure TJSGPUColorDict._Setg(const aValue : Double);
  141125. begin
  141126. WriteJSPropertyDouble('g',aValue);
  141127. end;
  141128. procedure TJSGPUColorDict._Setb(const aValue : Double);
  141129. begin
  141130. WriteJSPropertyDouble('b',aValue);
  141131. end;
  141132. procedure TJSGPUColorDict._Seta(const aValue : Double);
  141133. begin
  141134. WriteJSPropertyDouble('a',aValue);
  141135. end;
  141136. class function TJSGPUColorDict.JSClassName: UnicodeString;
  141137. begin
  141138. Result:='Object';
  141139. end;
  141140. class function TJSGPUColorDict.Cast(const Intf: IJSObject): IJSGPUColorDict;
  141141. begin
  141142. Result:=TJSGPUColorDict.JOBCast(Intf);
  141143. end;
  141144. function TJSGPUOrigin2DDict._Getx: TGPUIntegerCoordinate;
  141145. begin
  141146. Result:=ReadJSPropertyInt64('x');
  141147. end;
  141148. function TJSGPUOrigin2DDict._Gety: TGPUIntegerCoordinate;
  141149. begin
  141150. Result:=ReadJSPropertyInt64('y');
  141151. end;
  141152. procedure TJSGPUOrigin2DDict._Setx(const aValue : TGPUIntegerCoordinate);
  141153. begin
  141154. WriteJSPropertyDouble('x',aValue);
  141155. end;
  141156. procedure TJSGPUOrigin2DDict._Sety(const aValue : TGPUIntegerCoordinate);
  141157. begin
  141158. WriteJSPropertyDouble('y',aValue);
  141159. end;
  141160. class function TJSGPUOrigin2DDict.JSClassName: UnicodeString;
  141161. begin
  141162. Result:='Object';
  141163. end;
  141164. class function TJSGPUOrigin2DDict.Cast(const Intf: IJSObject): IJSGPUOrigin2DDict;
  141165. begin
  141166. Result:=TJSGPUOrigin2DDict.JOBCast(Intf);
  141167. end;
  141168. function TJSGPUOrigin3DDict._Getx: TGPUIntegerCoordinate;
  141169. begin
  141170. Result:=ReadJSPropertyInt64('x');
  141171. end;
  141172. function TJSGPUOrigin3DDict._Gety: TGPUIntegerCoordinate;
  141173. begin
  141174. Result:=ReadJSPropertyInt64('y');
  141175. end;
  141176. function TJSGPUOrigin3DDict._Getz: TGPUIntegerCoordinate;
  141177. begin
  141178. Result:=ReadJSPropertyInt64('z');
  141179. end;
  141180. procedure TJSGPUOrigin3DDict._Setx(const aValue : TGPUIntegerCoordinate);
  141181. begin
  141182. WriteJSPropertyDouble('x',aValue);
  141183. end;
  141184. procedure TJSGPUOrigin3DDict._Sety(const aValue : TGPUIntegerCoordinate);
  141185. begin
  141186. WriteJSPropertyDouble('y',aValue);
  141187. end;
  141188. procedure TJSGPUOrigin3DDict._Setz(const aValue : TGPUIntegerCoordinate);
  141189. begin
  141190. WriteJSPropertyDouble('z',aValue);
  141191. end;
  141192. class function TJSGPUOrigin3DDict.JSClassName: UnicodeString;
  141193. begin
  141194. Result:='Object';
  141195. end;
  141196. class function TJSGPUOrigin3DDict.Cast(const Intf: IJSObject): IJSGPUOrigin3DDict;
  141197. begin
  141198. Result:=TJSGPUOrigin3DDict.JOBCast(Intf);
  141199. end;
  141200. function TJSGPUExtent3DDict._Getwidth: TGPUIntegerCoordinate;
  141201. begin
  141202. Result:=ReadJSPropertyInt64('width');
  141203. end;
  141204. function TJSGPUExtent3DDict._Getheight: TGPUIntegerCoordinate;
  141205. begin
  141206. Result:=ReadJSPropertyInt64('height');
  141207. end;
  141208. function TJSGPUExtent3DDict._GetdepthOrArrayLayers: TGPUIntegerCoordinate;
  141209. begin
  141210. Result:=ReadJSPropertyInt64('depthOrArrayLayers');
  141211. end;
  141212. procedure TJSGPUExtent3DDict._Setwidth(const aValue : TGPUIntegerCoordinate);
  141213. begin
  141214. WriteJSPropertyDouble('width',aValue);
  141215. end;
  141216. procedure TJSGPUExtent3DDict._Setheight(const aValue : TGPUIntegerCoordinate);
  141217. begin
  141218. WriteJSPropertyDouble('height',aValue);
  141219. end;
  141220. procedure TJSGPUExtent3DDict._SetdepthOrArrayLayers(const aValue : TGPUIntegerCoordinate);
  141221. begin
  141222. WriteJSPropertyDouble('depthOrArrayLayers',aValue);
  141223. end;
  141224. class function TJSGPUExtent3DDict.JSClassName: UnicodeString;
  141225. begin
  141226. Result:='Object';
  141227. end;
  141228. class function TJSGPUExtent3DDict.Cast(const Intf: IJSObject): IJSGPUExtent3DDict;
  141229. begin
  141230. Result:=TJSGPUExtent3DDict.JOBCast(Intf);
  141231. end;
  141232. function TJSWebrtcGlobalStatisticsReport._Getreports: TJSRTCStatsReportInternalDynArray;
  141233. begin
  141234. Result:=ReadJSPropertyObject('reports',TJSArray) as TJSRTCStatsReportInternalDynArray;
  141235. end;
  141236. function TJSWebrtcGlobalStatisticsReport._GetsdpHistories: TJSRTCSdpHistoryInternalDynArray;
  141237. begin
  141238. Result:=ReadJSPropertyObject('sdpHistories',TJSArray) as TJSRTCSdpHistoryInternalDynArray;
  141239. end;
  141240. procedure TJSWebrtcGlobalStatisticsReport._Setreports(const aValue : TJSRTCStatsReportInternalDynArray);
  141241. begin
  141242. WriteJSPropertyObject('reports',aValue);
  141243. end;
  141244. procedure TJSWebrtcGlobalStatisticsReport._SetsdpHistories(const aValue : TJSRTCSdpHistoryInternalDynArray);
  141245. begin
  141246. WriteJSPropertyObject('sdpHistories',aValue);
  141247. end;
  141248. class function TJSWebrtcGlobalStatisticsReport.JSClassName: UnicodeString;
  141249. begin
  141250. Result:='Object';
  141251. end;
  141252. class function TJSWebrtcGlobalStatisticsReport.Cast(const Intf: IJSObject): IJSWebrtcGlobalStatisticsReport;
  141253. begin
  141254. Result:=TJSWebrtcGlobalStatisticsReport.JOBCast(Intf);
  141255. end;
  141256. function TJSWebrtcGlobalMediaContext._GethasH264Hardware: Boolean;
  141257. begin
  141258. Result:=ReadJSPropertyBoolean('hasH264Hardware');
  141259. end;
  141260. procedure TJSWebrtcGlobalMediaContext._SethasH264Hardware(const aValue : Boolean);
  141261. begin
  141262. WriteJSPropertyBoolean('hasH264Hardware',aValue);
  141263. end;
  141264. class function TJSWebrtcGlobalMediaContext.JSClassName: UnicodeString;
  141265. begin
  141266. Result:='Object';
  141267. end;
  141268. class function TJSWebrtcGlobalMediaContext.Cast(const Intf: IJSObject): IJSWebrtcGlobalMediaContext;
  141269. begin
  141270. Result:=TJSWebrtcGlobalMediaContext.JOBCast(Intf);
  141271. end;
  141272. function TJSWebSocket._Geturl: UnicodeString;
  141273. begin
  141274. Result:=ReadJSPropertyUnicodeString('url');
  141275. end;
  141276. function TJSWebSocket._GetreadyState: Word;
  141277. begin
  141278. Result:=ReadJSPropertyLongInt('readyState');
  141279. end;
  141280. function TJSWebSocket._GetbufferedAmount: QWord;
  141281. begin
  141282. Result:=ReadJSPropertyInt64('bufferedAmount');
  141283. end;
  141284. function TJSWebSocket._Getonopen: TEventHandler;
  141285. begin
  141286. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onopen')));
  141287. end;
  141288. function TJSWebSocket._Getonerror: TEventHandler;
  141289. begin
  141290. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  141291. end;
  141292. function TJSWebSocket._Getonclose: TEventHandler;
  141293. begin
  141294. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclose')));
  141295. end;
  141296. function TJSWebSocket._Getextensions: UnicodeString;
  141297. begin
  141298. Result:=ReadJSPropertyUnicodeString('extensions');
  141299. end;
  141300. function TJSWebSocket._Getprotocol: UnicodeString;
  141301. begin
  141302. Result:=ReadJSPropertyUnicodeString('protocol');
  141303. end;
  141304. function TJSWebSocket._Getonmessage: TEventHandler;
  141305. begin
  141306. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  141307. end;
  141308. function TJSWebSocket._GetbinaryType: TBinaryType;
  141309. begin
  141310. Result:=ReadJSPropertyUnicodeString('binaryType');
  141311. end;
  141312. procedure TJSWebSocket._Setonopen(const aValue : TEventHandler);
  141313. begin
  141314. WriteJSPropertyMethod('onopen',TMethod(aValue));
  141315. end;
  141316. procedure TJSWebSocket._Setonerror(const aValue : TEventHandler);
  141317. begin
  141318. WriteJSPropertyMethod('onerror',TMethod(aValue));
  141319. end;
  141320. procedure TJSWebSocket._Setonclose(const aValue : TEventHandler);
  141321. begin
  141322. WriteJSPropertyMethod('onclose',TMethod(aValue));
  141323. end;
  141324. procedure TJSWebSocket._Setonmessage(const aValue : TEventHandler);
  141325. begin
  141326. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  141327. end;
  141328. procedure TJSWebSocket._SetbinaryType(const aValue : TBinaryType);
  141329. begin
  141330. WriteJSPropertyUnicodeString('binaryType',aValue);
  141331. end;
  141332. constructor TJSWebSocket.Create(const aUrl: UnicodeString; const aProtocols: UnicodeString);
  141333. begin
  141334. JOBCreate([aUrl,aProtocols]);
  141335. end;
  141336. constructor TJSWebSocket.Create(const aUrl: UnicodeString);
  141337. begin
  141338. JOBCreate([aUrl]);
  141339. end;
  141340. constructor TJSWebSocket.Create(const aUrl: UnicodeString; const aProtocols: TUnicodeStringDynArray);
  141341. begin
  141342. JOBCreate([aUrl,aProtocols]);
  141343. end;
  141344. procedure TJSWebSocket.close(aCode: Word; const aReason: UnicodeString);
  141345. begin
  141346. InvokeJSNoResult('close',[aCode,aReason]);
  141347. end;
  141348. procedure TJSWebSocket.close;
  141349. begin
  141350. InvokeJSNoResult('close',[]);
  141351. end;
  141352. procedure TJSWebSocket.close(aCode: Word);
  141353. begin
  141354. InvokeJSNoResult('close',[aCode]);
  141355. end;
  141356. procedure TJSWebSocket.send(const aData: UnicodeString);
  141357. begin
  141358. InvokeJSNoResult('send',[aData]);
  141359. end;
  141360. procedure TJSWebSocket.send(aData: IJSBlob);
  141361. begin
  141362. InvokeJSNoResult('send',[aData]);
  141363. end;
  141364. procedure TJSWebSocket.send(aData: IJSArrayBuffer);
  141365. begin
  141366. InvokeJSNoResult('send',[aData]);
  141367. end;
  141368. procedure TJSWebSocket.send(aData: IJSArrayBufferView);
  141369. begin
  141370. InvokeJSNoResult('send',[aData]);
  141371. end;
  141372. class function TJSWebSocket.JSClassName: UnicodeString;
  141373. begin
  141374. Result:='WebSocket';
  141375. end;
  141376. class function TJSWebSocket.Cast(const Intf: IJSObject): IJSWebSocket;
  141377. begin
  141378. Result:=TJSWebSocket.JOBCast(Intf);
  141379. end;
  141380. class function TJSnsITransportProvider.JSClassName: UnicodeString;
  141381. begin
  141382. Result:='nsITransportProvider';
  141383. end;
  141384. class function TJSnsITransportProvider.Cast(const Intf: IJSObject): IJSnsITransportProvider;
  141385. begin
  141386. Result:=TJSnsITransportProvider.JOBCast(Intf);
  141387. end;
  141388. function TJSTaskSignal._Getpriority: TTaskPriority;
  141389. begin
  141390. Result:=ReadJSPropertyUnicodeString('priority');
  141391. end;
  141392. function TJSTaskSignal._Getonprioritychange: TEventHandler;
  141393. begin
  141394. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onprioritychange')));
  141395. end;
  141396. procedure TJSTaskSignal._Setonprioritychange(const aValue : TEventHandler);
  141397. begin
  141398. WriteJSPropertyMethod('onprioritychange',TMethod(aValue));
  141399. end;
  141400. class function TJSTaskSignal.JSClassName: UnicodeString;
  141401. begin
  141402. Result:='TaskSignal';
  141403. end;
  141404. class function TJSTaskSignal.Cast(const Intf: IJSObject): IJSTaskSignal;
  141405. begin
  141406. Result:=TJSTaskSignal.JOBCast(Intf);
  141407. end;
  141408. function TJSSchedulerPostTaskOptions._Getsignal: IJSAbortSignal;
  141409. begin
  141410. Result:=ReadJSPropertyObject('signal',TJSAbortSignal) as IJSAbortSignal;
  141411. end;
  141412. function TJSSchedulerPostTaskOptions._Getpriority: TTaskPriority;
  141413. begin
  141414. Result:=ReadJSPropertyUnicodeString('priority');
  141415. end;
  141416. function TJSSchedulerPostTaskOptions._Getdelay: QWord;
  141417. begin
  141418. Result:=ReadJSPropertyInt64('delay');
  141419. end;
  141420. procedure TJSSchedulerPostTaskOptions._Setsignal(const aValue : IJSAbortSignal);
  141421. begin
  141422. WriteJSPropertyObject('signal',aValue);
  141423. end;
  141424. procedure TJSSchedulerPostTaskOptions._Setpriority(const aValue : TTaskPriority);
  141425. begin
  141426. WriteJSPropertyUnicodeString('priority',aValue);
  141427. end;
  141428. procedure TJSSchedulerPostTaskOptions._Setdelay(const aValue : QWord);
  141429. begin
  141430. WriteJSPropertyDouble('delay',aValue);
  141431. end;
  141432. class function TJSSchedulerPostTaskOptions.JSClassName: UnicodeString;
  141433. begin
  141434. Result:='Object';
  141435. end;
  141436. class function TJSSchedulerPostTaskOptions.Cast(const Intf: IJSObject): IJSSchedulerPostTaskOptions;
  141437. begin
  141438. Result:=TJSSchedulerPostTaskOptions.JOBCast(Intf);
  141439. end;
  141440. function TJSScheduler.postTask(const aCallback: TSchedulerPostTaskCallback; const aOptions: TJSSchedulerPostTaskOptions): IJSPromise; // Promise<any>
  141441. var
  141442. m: TJOB_Method;
  141443. begin
  141444. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallSchedulerPostTaskCallback);
  141445. try
  141446. Result:=InvokeJSObjectResult('postTask',[m,aOptions],TJSPromise) as IJSPromise;
  141447. finally
  141448. m.free;
  141449. end;
  141450. end;
  141451. function TJSScheduler.postTask(const aCallback: TSchedulerPostTaskCallback): IJSPromise; // Promise<any>
  141452. var
  141453. m: TJOB_Method;
  141454. begin
  141455. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallSchedulerPostTaskCallback);
  141456. try
  141457. Result:=InvokeJSObjectResult('postTask',[m],TJSPromise) as IJSPromise;
  141458. finally
  141459. m.free;
  141460. end;
  141461. end;
  141462. class function TJSScheduler.JSClassName: UnicodeString;
  141463. begin
  141464. Result:='Scheduler';
  141465. end;
  141466. class function TJSScheduler.Cast(const Intf: IJSObject): IJSScheduler;
  141467. begin
  141468. Result:=TJSScheduler.JOBCast(Intf);
  141469. end;
  141470. function TJSTaskControllerInit._Getpriority: TTaskPriority;
  141471. begin
  141472. Result:=ReadJSPropertyUnicodeString('priority');
  141473. end;
  141474. procedure TJSTaskControllerInit._Setpriority(const aValue : TTaskPriority);
  141475. begin
  141476. WriteJSPropertyUnicodeString('priority',aValue);
  141477. end;
  141478. class function TJSTaskControllerInit.JSClassName: UnicodeString;
  141479. begin
  141480. Result:='Object';
  141481. end;
  141482. class function TJSTaskControllerInit.Cast(const Intf: IJSObject): IJSTaskControllerInit;
  141483. begin
  141484. Result:=TJSTaskControllerInit.JOBCast(Intf);
  141485. end;
  141486. constructor TJSTaskController.Create(const aInit: TJSTaskControllerInit);
  141487. begin
  141488. JOBCreate([aInit]);
  141489. end;
  141490. constructor TJSTaskController.Create;
  141491. begin
  141492. JOBCreate([]);
  141493. end;
  141494. procedure TJSTaskController.setPriority(aPriority: TTaskPriority);
  141495. begin
  141496. InvokeJSNoResult('setPriority',[aPriority]);
  141497. end;
  141498. class function TJSTaskController.JSClassName: UnicodeString;
  141499. begin
  141500. Result:='TaskController';
  141501. end;
  141502. class function TJSTaskController.Cast(const Intf: IJSObject): IJSTaskController;
  141503. begin
  141504. Result:=TJSTaskController.JOBCast(Intf);
  141505. end;
  141506. function TJSWebTransportHash._Getalgorithm: UnicodeString;
  141507. begin
  141508. Result:=ReadJSPropertyUnicodeString('algorithm');
  141509. end;
  141510. function TJSWebTransportHash._Getvalue: IJSBufferSource;
  141511. begin
  141512. Result:=ReadJSPropertyObject('value',TJSBufferSource) as IJSBufferSource;
  141513. end;
  141514. procedure TJSWebTransportHash._Setalgorithm(const aValue : UnicodeString);
  141515. begin
  141516. WriteJSPropertyUnicodeString('algorithm',aValue);
  141517. end;
  141518. procedure TJSWebTransportHash._Setvalue(const aValue : IJSBufferSource);
  141519. begin
  141520. WriteJSPropertyObject('value',aValue);
  141521. end;
  141522. class function TJSWebTransportHash.JSClassName: UnicodeString;
  141523. begin
  141524. Result:='Object';
  141525. end;
  141526. class function TJSWebTransportHash.Cast(const Intf: IJSObject): IJSWebTransportHash;
  141527. begin
  141528. Result:=TJSWebTransportHash.JOBCast(Intf);
  141529. end;
  141530. function TJSWebTransportOptions._GetallowPooling: Boolean;
  141531. begin
  141532. Result:=ReadJSPropertyBoolean('allowPooling');
  141533. end;
  141534. function TJSWebTransportOptions._GetrequireUnreliable: Boolean;
  141535. begin
  141536. Result:=ReadJSPropertyBoolean('requireUnreliable');
  141537. end;
  141538. function TJSWebTransportOptions._GetserverCertificateHashes: TJSWebTransportHashDynArray;
  141539. begin
  141540. Result:=ReadJSPropertyObject('serverCertificateHashes',TJSArray) as TJSWebTransportHashDynArray;
  141541. end;
  141542. function TJSWebTransportOptions._GetcongestionControl: TWebTransportCongestionControl;
  141543. begin
  141544. Result:=ReadJSPropertyUnicodeString('congestionControl');
  141545. end;
  141546. procedure TJSWebTransportOptions._SetallowPooling(const aValue : Boolean);
  141547. begin
  141548. WriteJSPropertyBoolean('allowPooling',aValue);
  141549. end;
  141550. procedure TJSWebTransportOptions._SetrequireUnreliable(const aValue : Boolean);
  141551. begin
  141552. WriteJSPropertyBoolean('requireUnreliable',aValue);
  141553. end;
  141554. procedure TJSWebTransportOptions._SetserverCertificateHashes(const aValue : TJSWebTransportHashDynArray);
  141555. begin
  141556. WriteJSPropertyObject('serverCertificateHashes',aValue);
  141557. end;
  141558. procedure TJSWebTransportOptions._SetcongestionControl(const aValue : TWebTransportCongestionControl);
  141559. begin
  141560. WriteJSPropertyUnicodeString('congestionControl',aValue);
  141561. end;
  141562. class function TJSWebTransportOptions.JSClassName: UnicodeString;
  141563. begin
  141564. Result:='Object';
  141565. end;
  141566. class function TJSWebTransportOptions.Cast(const Intf: IJSObject): IJSWebTransportOptions;
  141567. begin
  141568. Result:=TJSWebTransportOptions.JOBCast(Intf);
  141569. end;
  141570. function TJSWebTransportCloseInfo._GetcloseCode: Cardinal;
  141571. begin
  141572. Result:=ReadJSPropertyInt64('closeCode');
  141573. end;
  141574. function TJSWebTransportCloseInfo._Getreason: UTF8String;
  141575. begin
  141576. Result:=ReadJSPropertyUTF8String('reason');
  141577. end;
  141578. procedure TJSWebTransportCloseInfo._SetcloseCode(const aValue : Cardinal);
  141579. begin
  141580. WriteJSPropertyDouble('closeCode',aValue);
  141581. end;
  141582. procedure TJSWebTransportCloseInfo._Setreason(const aValue : UTF8String);
  141583. begin
  141584. WriteJSPropertyUTF8String('reason',aValue);
  141585. end;
  141586. class function TJSWebTransportCloseInfo.JSClassName: UnicodeString;
  141587. begin
  141588. Result:='Object';
  141589. end;
  141590. class function TJSWebTransportCloseInfo.Cast(const Intf: IJSObject): IJSWebTransportCloseInfo;
  141591. begin
  141592. Result:=TJSWebTransportCloseInfo.JOBCast(Intf);
  141593. end;
  141594. function TJSWebTransportSendStreamOptions._GetsendOrder: Int64;
  141595. begin
  141596. Result:=ReadJSPropertyInt64('sendOrder');
  141597. end;
  141598. procedure TJSWebTransportSendStreamOptions._SetsendOrder(const aValue : Int64);
  141599. begin
  141600. WriteJSPropertyDouble('sendOrder',aValue);
  141601. end;
  141602. class function TJSWebTransportSendStreamOptions.JSClassName: UnicodeString;
  141603. begin
  141604. Result:='Object';
  141605. end;
  141606. class function TJSWebTransportSendStreamOptions.Cast(const Intf: IJSObject): IJSWebTransportSendStreamOptions;
  141607. begin
  141608. Result:=TJSWebTransportSendStreamOptions.JOBCast(Intf);
  141609. end;
  141610. function TJSWebTransportStats._Gettimestamp: TDOMHighResTimeStamp;
  141611. begin
  141612. Result:=ReadJSPropertyDouble('timestamp');
  141613. end;
  141614. function TJSWebTransportStats._GetbytesSent: QWord;
  141615. begin
  141616. Result:=ReadJSPropertyInt64('bytesSent');
  141617. end;
  141618. function TJSWebTransportStats._GetpacketsSent: QWord;
  141619. begin
  141620. Result:=ReadJSPropertyInt64('packetsSent');
  141621. end;
  141622. function TJSWebTransportStats._GetpacketsLost: QWord;
  141623. begin
  141624. Result:=ReadJSPropertyInt64('packetsLost');
  141625. end;
  141626. function TJSWebTransportStats._GetnumOutgoingStreamsCreated: Cardinal;
  141627. begin
  141628. Result:=ReadJSPropertyInt64('numOutgoingStreamsCreated');
  141629. end;
  141630. function TJSWebTransportStats._GetnumIncomingStreamsCreated: Cardinal;
  141631. begin
  141632. Result:=ReadJSPropertyInt64('numIncomingStreamsCreated');
  141633. end;
  141634. function TJSWebTransportStats._GetbytesReceived: QWord;
  141635. begin
  141636. Result:=ReadJSPropertyInt64('bytesReceived');
  141637. end;
  141638. function TJSWebTransportStats._GetpacketsReceived: QWord;
  141639. begin
  141640. Result:=ReadJSPropertyInt64('packetsReceived');
  141641. end;
  141642. function TJSWebTransportStats._GetsmoothedRtt: TDOMHighResTimeStamp;
  141643. begin
  141644. Result:=ReadJSPropertyDouble('smoothedRtt');
  141645. end;
  141646. function TJSWebTransportStats._GetrttVariation: TDOMHighResTimeStamp;
  141647. begin
  141648. Result:=ReadJSPropertyDouble('rttVariation');
  141649. end;
  141650. function TJSWebTransportStats._GetminRtt: TDOMHighResTimeStamp;
  141651. begin
  141652. Result:=ReadJSPropertyDouble('minRtt');
  141653. end;
  141654. function TJSWebTransportStats._Getdatagrams: TJSWebTransportDatagramStats;
  141655. begin
  141656. Result:=ReadJSPropertyObject('datagrams',TJSWebTransportDatagramStats) as TJSWebTransportDatagramStats;
  141657. end;
  141658. procedure TJSWebTransportStats._Settimestamp(const aValue : TDOMHighResTimeStamp);
  141659. begin
  141660. WriteJSPropertyDouble('timestamp',aValue);
  141661. end;
  141662. procedure TJSWebTransportStats._SetbytesSent(const aValue : QWord);
  141663. begin
  141664. WriteJSPropertyDouble('bytesSent',aValue);
  141665. end;
  141666. procedure TJSWebTransportStats._SetpacketsSent(const aValue : QWord);
  141667. begin
  141668. WriteJSPropertyDouble('packetsSent',aValue);
  141669. end;
  141670. procedure TJSWebTransportStats._SetpacketsLost(const aValue : QWord);
  141671. begin
  141672. WriteJSPropertyDouble('packetsLost',aValue);
  141673. end;
  141674. procedure TJSWebTransportStats._SetnumOutgoingStreamsCreated(const aValue : Cardinal);
  141675. begin
  141676. WriteJSPropertyDouble('numOutgoingStreamsCreated',aValue);
  141677. end;
  141678. procedure TJSWebTransportStats._SetnumIncomingStreamsCreated(const aValue : Cardinal);
  141679. begin
  141680. WriteJSPropertyDouble('numIncomingStreamsCreated',aValue);
  141681. end;
  141682. procedure TJSWebTransportStats._SetbytesReceived(const aValue : QWord);
  141683. begin
  141684. WriteJSPropertyDouble('bytesReceived',aValue);
  141685. end;
  141686. procedure TJSWebTransportStats._SetpacketsReceived(const aValue : QWord);
  141687. begin
  141688. WriteJSPropertyDouble('packetsReceived',aValue);
  141689. end;
  141690. procedure TJSWebTransportStats._SetsmoothedRtt(const aValue : TDOMHighResTimeStamp);
  141691. begin
  141692. WriteJSPropertyDouble('smoothedRtt',aValue);
  141693. end;
  141694. procedure TJSWebTransportStats._SetrttVariation(const aValue : TDOMHighResTimeStamp);
  141695. begin
  141696. WriteJSPropertyDouble('rttVariation',aValue);
  141697. end;
  141698. procedure TJSWebTransportStats._SetminRtt(const aValue : TDOMHighResTimeStamp);
  141699. begin
  141700. WriteJSPropertyDouble('minRtt',aValue);
  141701. end;
  141702. procedure TJSWebTransportStats._Setdatagrams(const aValue : TJSWebTransportDatagramStats);
  141703. begin
  141704. WriteJSPropertyObject('datagrams',aValue);
  141705. end;
  141706. class function TJSWebTransportStats.JSClassName: UnicodeString;
  141707. begin
  141708. Result:='Object';
  141709. end;
  141710. class function TJSWebTransportStats.Cast(const Intf: IJSObject): IJSWebTransportStats;
  141711. begin
  141712. Result:=TJSWebTransportStats.JOBCast(Intf);
  141713. end;
  141714. function TJSWebTransportDatagramStats._Gettimestamp: TDOMHighResTimeStamp;
  141715. begin
  141716. Result:=ReadJSPropertyDouble('timestamp');
  141717. end;
  141718. function TJSWebTransportDatagramStats._GetexpiredOutgoing: QWord;
  141719. begin
  141720. Result:=ReadJSPropertyInt64('expiredOutgoing');
  141721. end;
  141722. function TJSWebTransportDatagramStats._GetdroppedIncoming: QWord;
  141723. begin
  141724. Result:=ReadJSPropertyInt64('droppedIncoming');
  141725. end;
  141726. function TJSWebTransportDatagramStats._GetlostOutgoing: QWord;
  141727. begin
  141728. Result:=ReadJSPropertyInt64('lostOutgoing');
  141729. end;
  141730. procedure TJSWebTransportDatagramStats._Settimestamp(const aValue : TDOMHighResTimeStamp);
  141731. begin
  141732. WriteJSPropertyDouble('timestamp',aValue);
  141733. end;
  141734. procedure TJSWebTransportDatagramStats._SetexpiredOutgoing(const aValue : QWord);
  141735. begin
  141736. WriteJSPropertyDouble('expiredOutgoing',aValue);
  141737. end;
  141738. procedure TJSWebTransportDatagramStats._SetdroppedIncoming(const aValue : QWord);
  141739. begin
  141740. WriteJSPropertyDouble('droppedIncoming',aValue);
  141741. end;
  141742. procedure TJSWebTransportDatagramStats._SetlostOutgoing(const aValue : QWord);
  141743. begin
  141744. WriteJSPropertyDouble('lostOutgoing',aValue);
  141745. end;
  141746. class function TJSWebTransportDatagramStats.JSClassName: UnicodeString;
  141747. begin
  141748. Result:='Object';
  141749. end;
  141750. class function TJSWebTransportDatagramStats.Cast(const Intf: IJSObject): IJSWebTransportDatagramStats;
  141751. begin
  141752. Result:=TJSWebTransportDatagramStats.JOBCast(Intf);
  141753. end;
  141754. function TJSWebTransport._Getready: IJSPromise;
  141755. begin
  141756. Result:=ReadJSPropertyObject('ready',TJSPromise) as IJSPromise;
  141757. end;
  141758. function TJSWebTransport._Getreliability: TWebTransportReliabilityMode;
  141759. begin
  141760. Result:=ReadJSPropertyUnicodeString('reliability');
  141761. end;
  141762. function TJSWebTransport._GetcongestionControl: TWebTransportCongestionControl;
  141763. begin
  141764. Result:=ReadJSPropertyUnicodeString('congestionControl');
  141765. end;
  141766. function TJSWebTransport._Getclosed: IJSPromise;
  141767. begin
  141768. Result:=ReadJSPropertyObject('closed',TJSPromise) as IJSPromise;
  141769. end;
  141770. function TJSWebTransport._Getdatagrams: IJSWebTransportDatagramDuplexStream;
  141771. begin
  141772. Result:=ReadJSPropertyObject('datagrams',TJSWebTransportDatagramDuplexStream) as IJSWebTransportDatagramDuplexStream;
  141773. end;
  141774. function TJSWebTransport._GetincomingBidirectionalStreams: IJSReadableStream;
  141775. begin
  141776. Result:=ReadJSPropertyObject('incomingBidirectionalStreams',TJSReadableStream) as IJSReadableStream;
  141777. end;
  141778. function TJSWebTransport._GetincomingUnidirectionalStreams: IJSReadableStream;
  141779. begin
  141780. Result:=ReadJSPropertyObject('incomingUnidirectionalStreams',TJSReadableStream) as IJSReadableStream;
  141781. end;
  141782. constructor TJSWebTransport.Create(const aUrl: UnicodeString; const aOptions: TJSWebTransportOptions);
  141783. begin
  141784. JOBCreate([aUrl,aOptions]);
  141785. end;
  141786. constructor TJSWebTransport.Create(const aUrl: UnicodeString);
  141787. begin
  141788. JOBCreate([aUrl]);
  141789. end;
  141790. function TJSWebTransport.getStats: IJSPromise; // Promise<WebTransportStats>
  141791. begin
  141792. Result:=InvokeJSObjectResult('getStats',[],TJSPromise) as IJSPromise;
  141793. end;
  141794. procedure TJSWebTransport.close(const aCloseInfo: TJSWebTransportCloseInfo);
  141795. begin
  141796. InvokeJSNoResult('close',[aCloseInfo]);
  141797. end;
  141798. procedure TJSWebTransport.close;
  141799. begin
  141800. InvokeJSNoResult('close',[]);
  141801. end;
  141802. function TJSWebTransport.createBidirectionalStream(const aOptions: TJSWebTransportSendStreamOptions): IJSPromise; // Promise<WebTransportBidirectionalStream>
  141803. begin
  141804. Result:=InvokeJSObjectResult('createBidirectionalStream',[aOptions],TJSPromise) as IJSPromise;
  141805. end;
  141806. function TJSWebTransport.createBidirectionalStream: IJSPromise; // Promise<WebTransportBidirectionalStream>
  141807. begin
  141808. Result:=InvokeJSObjectResult('createBidirectionalStream',[],TJSPromise) as IJSPromise;
  141809. end;
  141810. function TJSWebTransport.createUnidirectionalStream(const aOptions: TJSWebTransportSendStreamOptions): IJSPromise; // Promise<WritableStream>
  141811. begin
  141812. Result:=InvokeJSObjectResult('createUnidirectionalStream',[aOptions],TJSPromise) as IJSPromise;
  141813. end;
  141814. function TJSWebTransport.createUnidirectionalStream: IJSPromise; // Promise<WritableStream>
  141815. begin
  141816. Result:=InvokeJSObjectResult('createUnidirectionalStream',[],TJSPromise) as IJSPromise;
  141817. end;
  141818. class function TJSWebTransport.JSClassName: UnicodeString;
  141819. begin
  141820. Result:='WebTransport';
  141821. end;
  141822. class function TJSWebTransport.Cast(const Intf: IJSObject): IJSWebTransport;
  141823. begin
  141824. Result:=TJSWebTransport.JOBCast(Intf);
  141825. end;
  141826. function TJSWebTransportDatagramDuplexStream._Getreadable: IJSReadableStream;
  141827. begin
  141828. Result:=ReadJSPropertyObject('readable',TJSReadableStream) as IJSReadableStream;
  141829. end;
  141830. function TJSWebTransportDatagramDuplexStream._Getwritable: IJSWritableStream;
  141831. begin
  141832. Result:=ReadJSPropertyObject('writable',TJSWritableStream) as IJSWritableStream;
  141833. end;
  141834. function TJSWebTransportDatagramDuplexStream._GetmaxDatagramSize: Cardinal;
  141835. begin
  141836. Result:=ReadJSPropertyInt64('maxDatagramSize');
  141837. end;
  141838. function TJSWebTransportDatagramDuplexStream._GetincomingMaxAge: Double;
  141839. begin
  141840. Result:=ReadJSPropertyDouble('incomingMaxAge');
  141841. end;
  141842. function TJSWebTransportDatagramDuplexStream._GetoutgoingMaxAge: Double;
  141843. begin
  141844. Result:=ReadJSPropertyDouble('outgoingMaxAge');
  141845. end;
  141846. function TJSWebTransportDatagramDuplexStream._GetincomingHighWaterMark: Double;
  141847. begin
  141848. Result:=ReadJSPropertyDouble('incomingHighWaterMark');
  141849. end;
  141850. function TJSWebTransportDatagramDuplexStream._GetoutgoingHighWaterMark: Double;
  141851. begin
  141852. Result:=ReadJSPropertyDouble('outgoingHighWaterMark');
  141853. end;
  141854. procedure TJSWebTransportDatagramDuplexStream._SetincomingMaxAge(const aValue : Double);
  141855. begin
  141856. WriteJSPropertyDouble('incomingMaxAge',aValue);
  141857. end;
  141858. procedure TJSWebTransportDatagramDuplexStream._SetoutgoingMaxAge(const aValue : Double);
  141859. begin
  141860. WriteJSPropertyDouble('outgoingMaxAge',aValue);
  141861. end;
  141862. procedure TJSWebTransportDatagramDuplexStream._SetincomingHighWaterMark(const aValue : Double);
  141863. begin
  141864. WriteJSPropertyDouble('incomingHighWaterMark',aValue);
  141865. end;
  141866. procedure TJSWebTransportDatagramDuplexStream._SetoutgoingHighWaterMark(const aValue : Double);
  141867. begin
  141868. WriteJSPropertyDouble('outgoingHighWaterMark',aValue);
  141869. end;
  141870. class function TJSWebTransportDatagramDuplexStream.JSClassName: UnicodeString;
  141871. begin
  141872. Result:='WebTransportDatagramDuplexStream';
  141873. end;
  141874. class function TJSWebTransportDatagramDuplexStream.Cast(const Intf: IJSObject): IJSWebTransportDatagramDuplexStream;
  141875. begin
  141876. Result:=TJSWebTransportDatagramDuplexStream.JOBCast(Intf);
  141877. end;
  141878. function TJSWebTransportError._Getsource: TWebTransportErrorSource;
  141879. begin
  141880. Result:=ReadJSPropertyUnicodeString('source');
  141881. end;
  141882. function TJSWebTransportError._GetstreamErrorCode: Byte;
  141883. begin
  141884. Result:=ReadJSPropertyLongInt('streamErrorCode');
  141885. end;
  141886. constructor TJSWebTransportError.Create(const aInit: TJSWebTransportErrorInit);
  141887. begin
  141888. JOBCreate([aInit]);
  141889. end;
  141890. constructor TJSWebTransportError.Create;
  141891. begin
  141892. JOBCreate([]);
  141893. end;
  141894. class function TJSWebTransportError.JSClassName: UnicodeString;
  141895. begin
  141896. Result:='WebTransportError';
  141897. end;
  141898. class function TJSWebTransportError.Cast(const Intf: IJSObject): IJSWebTransportError;
  141899. begin
  141900. Result:=TJSWebTransportError.JOBCast(Intf);
  141901. end;
  141902. function TJSWebTransportErrorInit._GetstreamErrorCode: Byte;
  141903. begin
  141904. Result:=ReadJSPropertyLongInt('streamErrorCode');
  141905. end;
  141906. function TJSWebTransportErrorInit._Getmessage: UnicodeString;
  141907. begin
  141908. Result:=ReadJSPropertyUnicodeString('message');
  141909. end;
  141910. procedure TJSWebTransportErrorInit._SetstreamErrorCode(const aValue : Byte);
  141911. begin
  141912. WriteJSPropertyLongInt('streamErrorCode',aValue);
  141913. end;
  141914. procedure TJSWebTransportErrorInit._Setmessage(const aValue : UnicodeString);
  141915. begin
  141916. WriteJSPropertyUnicodeString('message',aValue);
  141917. end;
  141918. class function TJSWebTransportErrorInit.JSClassName: UnicodeString;
  141919. begin
  141920. Result:='Object';
  141921. end;
  141922. class function TJSWebTransportErrorInit.Cast(const Intf: IJSObject): IJSWebTransportErrorInit;
  141923. begin
  141924. Result:=TJSWebTransportErrorInit.JOBCast(Intf);
  141925. end;
  141926. function TJSWebTransportSendStream._GetsendOrder: Int64;
  141927. begin
  141928. Result:=ReadJSPropertyInt64('sendOrder');
  141929. end;
  141930. procedure TJSWebTransportSendStream._SetsendOrder(const aValue : Int64);
  141931. begin
  141932. WriteJSPropertyDouble('sendOrder',aValue);
  141933. end;
  141934. function TJSWebTransportSendStream.getStats: IJSPromise; // Promise<WebTransportSendStreamStats>
  141935. begin
  141936. Result:=InvokeJSObjectResult('getStats',[],TJSPromise) as IJSPromise;
  141937. end;
  141938. class function TJSWebTransportSendStream.JSClassName: UnicodeString;
  141939. begin
  141940. Result:='WebTransportSendStream';
  141941. end;
  141942. class function TJSWebTransportSendStream.Cast(const Intf: IJSObject): IJSWebTransportSendStream;
  141943. begin
  141944. Result:=TJSWebTransportSendStream.JOBCast(Intf);
  141945. end;
  141946. function TJSWebTransportSendStreamStats._Gettimestamp: TDOMHighResTimeStamp;
  141947. begin
  141948. Result:=ReadJSPropertyDouble('timestamp');
  141949. end;
  141950. function TJSWebTransportSendStreamStats._GetbytesWritten: QWord;
  141951. begin
  141952. Result:=ReadJSPropertyInt64('bytesWritten');
  141953. end;
  141954. function TJSWebTransportSendStreamStats._GetbytesSent: QWord;
  141955. begin
  141956. Result:=ReadJSPropertyInt64('bytesSent');
  141957. end;
  141958. function TJSWebTransportSendStreamStats._GetbytesAcknowledged: QWord;
  141959. begin
  141960. Result:=ReadJSPropertyInt64('bytesAcknowledged');
  141961. end;
  141962. procedure TJSWebTransportSendStreamStats._Settimestamp(const aValue : TDOMHighResTimeStamp);
  141963. begin
  141964. WriteJSPropertyDouble('timestamp',aValue);
  141965. end;
  141966. procedure TJSWebTransportSendStreamStats._SetbytesWritten(const aValue : QWord);
  141967. begin
  141968. WriteJSPropertyDouble('bytesWritten',aValue);
  141969. end;
  141970. procedure TJSWebTransportSendStreamStats._SetbytesSent(const aValue : QWord);
  141971. begin
  141972. WriteJSPropertyDouble('bytesSent',aValue);
  141973. end;
  141974. procedure TJSWebTransportSendStreamStats._SetbytesAcknowledged(const aValue : QWord);
  141975. begin
  141976. WriteJSPropertyDouble('bytesAcknowledged',aValue);
  141977. end;
  141978. class function TJSWebTransportSendStreamStats.JSClassName: UnicodeString;
  141979. begin
  141980. Result:='Object';
  141981. end;
  141982. class function TJSWebTransportSendStreamStats.Cast(const Intf: IJSObject): IJSWebTransportSendStreamStats;
  141983. begin
  141984. Result:=TJSWebTransportSendStreamStats.JOBCast(Intf);
  141985. end;
  141986. function TJSWebTransportReceiveStream.getStats: IJSPromise; // Promise<WebTransportReceiveStreamStats>
  141987. begin
  141988. Result:=InvokeJSObjectResult('getStats',[],TJSPromise) as IJSPromise;
  141989. end;
  141990. class function TJSWebTransportReceiveStream.JSClassName: UnicodeString;
  141991. begin
  141992. Result:='WebTransportReceiveStream';
  141993. end;
  141994. class function TJSWebTransportReceiveStream.Cast(const Intf: IJSObject): IJSWebTransportReceiveStream;
  141995. begin
  141996. Result:=TJSWebTransportReceiveStream.JOBCast(Intf);
  141997. end;
  141998. function TJSWebTransportReceiveStreamStats._Gettimestamp: TDOMHighResTimeStamp;
  141999. begin
  142000. Result:=ReadJSPropertyDouble('timestamp');
  142001. end;
  142002. function TJSWebTransportReceiveStreamStats._GetbytesReceived: QWord;
  142003. begin
  142004. Result:=ReadJSPropertyInt64('bytesReceived');
  142005. end;
  142006. function TJSWebTransportReceiveStreamStats._GetbytesRead: QWord;
  142007. begin
  142008. Result:=ReadJSPropertyInt64('bytesRead');
  142009. end;
  142010. procedure TJSWebTransportReceiveStreamStats._Settimestamp(const aValue : TDOMHighResTimeStamp);
  142011. begin
  142012. WriteJSPropertyDouble('timestamp',aValue);
  142013. end;
  142014. procedure TJSWebTransportReceiveStreamStats._SetbytesReceived(const aValue : QWord);
  142015. begin
  142016. WriteJSPropertyDouble('bytesReceived',aValue);
  142017. end;
  142018. procedure TJSWebTransportReceiveStreamStats._SetbytesRead(const aValue : QWord);
  142019. begin
  142020. WriteJSPropertyDouble('bytesRead',aValue);
  142021. end;
  142022. class function TJSWebTransportReceiveStreamStats.JSClassName: UnicodeString;
  142023. begin
  142024. Result:='Object';
  142025. end;
  142026. class function TJSWebTransportReceiveStreamStats.Cast(const Intf: IJSObject): IJSWebTransportReceiveStreamStats;
  142027. begin
  142028. Result:=TJSWebTransportReceiveStreamStats.JOBCast(Intf);
  142029. end;
  142030. function TJSWebTransportBidirectionalStream._Getreadable: IJSWebTransportReceiveStream;
  142031. begin
  142032. Result:=ReadJSPropertyObject('readable',TJSWebTransportReceiveStream) as IJSWebTransportReceiveStream;
  142033. end;
  142034. function TJSWebTransportBidirectionalStream._Getwritable: IJSWebTransportSendStream;
  142035. begin
  142036. Result:=ReadJSPropertyObject('writable',TJSWebTransportSendStream) as IJSWebTransportSendStream;
  142037. end;
  142038. class function TJSWebTransportBidirectionalStream.JSClassName: UnicodeString;
  142039. begin
  142040. Result:='WebTransportBidirectionalStream';
  142041. end;
  142042. class function TJSWebTransportBidirectionalStream.Cast(const Intf: IJSObject): IJSWebTransportBidirectionalStream;
  142043. begin
  142044. Result:=TJSWebTransportBidirectionalStream.JOBCast(Intf);
  142045. end;
  142046. function TJSXRSystem._Getondevicechange: TEventHandler;
  142047. begin
  142048. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondevicechange')));
  142049. end;
  142050. procedure TJSXRSystem._Setondevicechange(const aValue : TEventHandler);
  142051. begin
  142052. WriteJSPropertyMethod('ondevicechange',TMethod(aValue));
  142053. end;
  142054. function TJSXRSystem.isSessionSupported(aMode: TXRSessionMode): IJSPromise; // Promise<boolean>
  142055. begin
  142056. Result:=InvokeJSObjectResult('isSessionSupported',[aMode],TJSPromise) as IJSPromise;
  142057. end;
  142058. function TJSXRSystem.requestSession(aMode: TXRSessionMode; const aOptions: TJSXRSessionInit): IJSPromise; // Promise<XRSession>
  142059. begin
  142060. Result:=InvokeJSObjectResult('requestSession',[aMode,aOptions],TJSPromise) as IJSPromise;
  142061. end;
  142062. function TJSXRSystem.requestSession(aMode: TXRSessionMode): IJSPromise; // Promise<XRSession>
  142063. begin
  142064. Result:=InvokeJSObjectResult('requestSession',[aMode],TJSPromise) as IJSPromise;
  142065. end;
  142066. class function TJSXRSystem.JSClassName: UnicodeString;
  142067. begin
  142068. Result:='XRSystem';
  142069. end;
  142070. class function TJSXRSystem.Cast(const Intf: IJSObject): IJSXRSystem;
  142071. begin
  142072. Result:=TJSXRSystem.JOBCast(Intf);
  142073. end;
  142074. function TJSXRSessionInit._GetrequiredFeatures: TUnicodeStringDynArray;
  142075. begin
  142076. Result:=ReadJSPropertyObject('requiredFeatures',TJSArray) as TUnicodeStringDynArray;
  142077. end;
  142078. function TJSXRSessionInit._GetoptionalFeatures: TUnicodeStringDynArray;
  142079. begin
  142080. Result:=ReadJSPropertyObject('optionalFeatures',TJSArray) as TUnicodeStringDynArray;
  142081. end;
  142082. procedure TJSXRSessionInit._SetrequiredFeatures(const aValue : TUnicodeStringDynArray);
  142083. begin
  142084. WriteJSPropertyObject('requiredFeatures',aValue);
  142085. end;
  142086. procedure TJSXRSessionInit._SetoptionalFeatures(const aValue : TUnicodeStringDynArray);
  142087. begin
  142088. WriteJSPropertyObject('optionalFeatures',aValue);
  142089. end;
  142090. class function TJSXRSessionInit.JSClassName: UnicodeString;
  142091. begin
  142092. Result:='Object';
  142093. end;
  142094. class function TJSXRSessionInit.Cast(const Intf: IJSObject): IJSXRSessionInit;
  142095. begin
  142096. Result:=TJSXRSessionInit.JOBCast(Intf);
  142097. end;
  142098. function TJSXRSession._GetvisibilityState: TXRVisibilityState;
  142099. begin
  142100. Result:=ReadJSPropertyUnicodeString('visibilityState');
  142101. end;
  142102. function TJSXRSession._GetrenderState: IJSXRRenderState;
  142103. begin
  142104. Result:=ReadJSPropertyObject('renderState',TJSXRRenderState) as IJSXRRenderState;
  142105. end;
  142106. function TJSXRSession._GetinputSources: IJSXRInputSourceArray;
  142107. begin
  142108. Result:=ReadJSPropertyObject('inputSources',TJSXRInputSourceArray) as IJSXRInputSourceArray;
  142109. end;
  142110. function TJSXRSession._GetframeRate: Single;
  142111. begin
  142112. Result:=ReadJSPropertyDouble('frameRate');
  142113. end;
  142114. function TJSXRSession._GetsupportedFrameRates: IJSFloat32Array;
  142115. begin
  142116. Result:=ReadJSPropertyObject('supportedFrameRates',TJSFloat32Array) as IJSFloat32Array;
  142117. end;
  142118. function TJSXRSession._Getonend: TEventHandler;
  142119. begin
  142120. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onend')));
  142121. end;
  142122. function TJSXRSession._Getoninputsourceschange: TEventHandler;
  142123. begin
  142124. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninputsourceschange')));
  142125. end;
  142126. function TJSXRSession._Getonselect: TEventHandler;
  142127. begin
  142128. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselect')));
  142129. end;
  142130. function TJSXRSession._Getonselectstart: TEventHandler;
  142131. begin
  142132. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectstart')));
  142133. end;
  142134. function TJSXRSession._Getonselectend: TEventHandler;
  142135. begin
  142136. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectend')));
  142137. end;
  142138. function TJSXRSession._Getonsqueeze: TEventHandler;
  142139. begin
  142140. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsqueeze')));
  142141. end;
  142142. function TJSXRSession._Getonsqueezestart: TEventHandler;
  142143. begin
  142144. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsqueezestart')));
  142145. end;
  142146. function TJSXRSession._Getonsqueezeend: TEventHandler;
  142147. begin
  142148. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsqueezeend')));
  142149. end;
  142150. function TJSXRSession._Getonvisibilitychange: TEventHandler;
  142151. begin
  142152. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvisibilitychange')));
  142153. end;
  142154. procedure TJSXRSession._Setonend(const aValue : TEventHandler);
  142155. begin
  142156. WriteJSPropertyMethod('onend',TMethod(aValue));
  142157. end;
  142158. procedure TJSXRSession._Setoninputsourceschange(const aValue : TEventHandler);
  142159. begin
  142160. WriteJSPropertyMethod('oninputsourceschange',TMethod(aValue));
  142161. end;
  142162. procedure TJSXRSession._Setonselect(const aValue : TEventHandler);
  142163. begin
  142164. WriteJSPropertyMethod('onselect',TMethod(aValue));
  142165. end;
  142166. procedure TJSXRSession._Setonselectstart(const aValue : TEventHandler);
  142167. begin
  142168. WriteJSPropertyMethod('onselectstart',TMethod(aValue));
  142169. end;
  142170. procedure TJSXRSession._Setonselectend(const aValue : TEventHandler);
  142171. begin
  142172. WriteJSPropertyMethod('onselectend',TMethod(aValue));
  142173. end;
  142174. procedure TJSXRSession._Setonsqueeze(const aValue : TEventHandler);
  142175. begin
  142176. WriteJSPropertyMethod('onsqueeze',TMethod(aValue));
  142177. end;
  142178. procedure TJSXRSession._Setonsqueezestart(const aValue : TEventHandler);
  142179. begin
  142180. WriteJSPropertyMethod('onsqueezestart',TMethod(aValue));
  142181. end;
  142182. procedure TJSXRSession._Setonsqueezeend(const aValue : TEventHandler);
  142183. begin
  142184. WriteJSPropertyMethod('onsqueezeend',TMethod(aValue));
  142185. end;
  142186. procedure TJSXRSession._Setonvisibilitychange(const aValue : TEventHandler);
  142187. begin
  142188. WriteJSPropertyMethod('onvisibilitychange',TMethod(aValue));
  142189. end;
  142190. procedure TJSXRSession.updateRenderState(const aState: TJSXRRenderStateInit);
  142191. begin
  142192. InvokeJSNoResult('updateRenderState',[aState]);
  142193. end;
  142194. procedure TJSXRSession.updateRenderState;
  142195. begin
  142196. InvokeJSNoResult('updateRenderState',[]);
  142197. end;
  142198. function TJSXRSession.requestReferenceSpace(aType_: TXRReferenceSpaceType): IJSPromise; // Promise<XRReferenceSpace>
  142199. begin
  142200. Result:=InvokeJSObjectResult('requestReferenceSpace',[aType_],TJSPromise) as IJSPromise;
  142201. end;
  142202. function TJSXRSession.updateTargetFrameRate(aRate: Single): IJSPromise; // Promise<undefined>
  142203. begin
  142204. Result:=InvokeJSObjectResult('updateTargetFrameRate',[aRate],TJSPromise) as IJSPromise;
  142205. end;
  142206. function TJSXRSession.requestAnimationFrame(const aCallback: TXRFrameRequestCallback): LongInt;
  142207. var
  142208. m: TJOB_Method;
  142209. begin
  142210. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallXRFrameRequestCallback);
  142211. try
  142212. Result:=InvokeJSLongIntResult('requestAnimationFrame',[m]);
  142213. finally
  142214. m.free;
  142215. end;
  142216. end;
  142217. procedure TJSXRSession.cancelAnimationFrame(aHandle: LongInt);
  142218. begin
  142219. InvokeJSNoResult('cancelAnimationFrame',[aHandle]);
  142220. end;
  142221. function TJSXRSession.end_: IJSPromise; // Promise<undefined>
  142222. begin
  142223. Result:=InvokeJSObjectResult('end',[],TJSPromise) as IJSPromise;
  142224. end;
  142225. class function TJSXRSession.JSClassName: UnicodeString;
  142226. begin
  142227. Result:='XRSession';
  142228. end;
  142229. class function TJSXRSession.Cast(const Intf: IJSObject): IJSXRSession;
  142230. begin
  142231. Result:=TJSXRSession.JOBCast(Intf);
  142232. end;
  142233. function TJSXRRenderStateInit._GetdepthNear: Double;
  142234. begin
  142235. Result:=ReadJSPropertyDouble('depthNear');
  142236. end;
  142237. function TJSXRRenderStateInit._GetdepthFar: Double;
  142238. begin
  142239. Result:=ReadJSPropertyDouble('depthFar');
  142240. end;
  142241. function TJSXRRenderStateInit._GetinlineVerticalFieldOfView: Double;
  142242. begin
  142243. Result:=ReadJSPropertyDouble('inlineVerticalFieldOfView');
  142244. end;
  142245. function TJSXRRenderStateInit._GetbaseLayer: IJSXRWebGLLayer;
  142246. begin
  142247. Result:=ReadJSPropertyObject('baseLayer',TJSXRWebGLLayer) as IJSXRWebGLLayer;
  142248. end;
  142249. procedure TJSXRRenderStateInit._SetdepthNear(const aValue : Double);
  142250. begin
  142251. WriteJSPropertyDouble('depthNear',aValue);
  142252. end;
  142253. procedure TJSXRRenderStateInit._SetdepthFar(const aValue : Double);
  142254. begin
  142255. WriteJSPropertyDouble('depthFar',aValue);
  142256. end;
  142257. procedure TJSXRRenderStateInit._SetinlineVerticalFieldOfView(const aValue : Double);
  142258. begin
  142259. WriteJSPropertyDouble('inlineVerticalFieldOfView',aValue);
  142260. end;
  142261. procedure TJSXRRenderStateInit._SetbaseLayer(const aValue : IJSXRWebGLLayer);
  142262. begin
  142263. WriteJSPropertyObject('baseLayer',aValue);
  142264. end;
  142265. class function TJSXRRenderStateInit.JSClassName: UnicodeString;
  142266. begin
  142267. Result:='Object';
  142268. end;
  142269. class function TJSXRRenderStateInit.Cast(const Intf: IJSObject): IJSXRRenderStateInit;
  142270. begin
  142271. Result:=TJSXRRenderStateInit.JOBCast(Intf);
  142272. end;
  142273. function TJSXRRenderState._GetdepthNear: Double;
  142274. begin
  142275. Result:=ReadJSPropertyDouble('depthNear');
  142276. end;
  142277. function TJSXRRenderState._GetdepthFar: Double;
  142278. begin
  142279. Result:=ReadJSPropertyDouble('depthFar');
  142280. end;
  142281. function TJSXRRenderState._GetinlineVerticalFieldOfView: Double;
  142282. begin
  142283. Result:=ReadJSPropertyDouble('inlineVerticalFieldOfView');
  142284. end;
  142285. function TJSXRRenderState._GetbaseLayer: IJSXRWebGLLayer;
  142286. begin
  142287. Result:=ReadJSPropertyObject('baseLayer',TJSXRWebGLLayer) as IJSXRWebGLLayer;
  142288. end;
  142289. class function TJSXRRenderState.JSClassName: UnicodeString;
  142290. begin
  142291. Result:='XRRenderState';
  142292. end;
  142293. class function TJSXRRenderState.Cast(const Intf: IJSObject): IJSXRRenderState;
  142294. begin
  142295. Result:=TJSXRRenderState.JOBCast(Intf);
  142296. end;
  142297. function TJSXRFrame._Getsession: IJSXRSession;
  142298. begin
  142299. Result:=ReadJSPropertyObject('session',TJSXRSession) as IJSXRSession;
  142300. end;
  142301. function TJSXRFrame.getViewerPose(aReferenceSpace: IJSXRReferenceSpace): IJSXRViewerPose;
  142302. begin
  142303. Result:=InvokeJSObjectResult('getViewerPose',[aReferenceSpace],TJSXRViewerPose) as IJSXRViewerPose;
  142304. end;
  142305. function TJSXRFrame.getPose(aSpace: IJSXRSpace; aBaseSpace: IJSXRSpace): IJSXRPose;
  142306. begin
  142307. Result:=InvokeJSObjectResult('getPose',[aSpace,aBaseSpace],TJSXRPose) as IJSXRPose;
  142308. end;
  142309. class function TJSXRFrame.JSClassName: UnicodeString;
  142310. begin
  142311. Result:='XRFrame';
  142312. end;
  142313. class function TJSXRFrame.Cast(const Intf: IJSObject): IJSXRFrame;
  142314. begin
  142315. Result:=TJSXRFrame.JOBCast(Intf);
  142316. end;
  142317. class function TJSXRSpace.JSClassName: UnicodeString;
  142318. begin
  142319. Result:='XRSpace';
  142320. end;
  142321. class function TJSXRSpace.Cast(const Intf: IJSObject): IJSXRSpace;
  142322. begin
  142323. Result:=TJSXRSpace.JOBCast(Intf);
  142324. end;
  142325. function TJSXRReferenceSpace._Getonreset: TEventHandler;
  142326. begin
  142327. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onreset')));
  142328. end;
  142329. procedure TJSXRReferenceSpace._Setonreset(const aValue : TEventHandler);
  142330. begin
  142331. WriteJSPropertyMethod('onreset',TMethod(aValue));
  142332. end;
  142333. function TJSXRReferenceSpace.getOffsetReferenceSpace(aOriginOffset: IJSXRRigidTransform): IJSXRReferenceSpace;
  142334. begin
  142335. Result:=InvokeJSObjectResult('getOffsetReferenceSpace',[aOriginOffset],TJSXRReferenceSpace) as IJSXRReferenceSpace;
  142336. end;
  142337. class function TJSXRReferenceSpace.JSClassName: UnicodeString;
  142338. begin
  142339. Result:='XRReferenceSpace';
  142340. end;
  142341. class function TJSXRReferenceSpace.Cast(const Intf: IJSObject): IJSXRReferenceSpace;
  142342. begin
  142343. Result:=TJSXRReferenceSpace.JOBCast(Intf);
  142344. end;
  142345. function TJSXRBoundedReferenceSpace._GetboundsGeometry: TJSDOMPointReadOnlyDynArray;
  142346. begin
  142347. Result:=ReadJSPropertyObject('boundsGeometry',TJSArray) as TJSDOMPointReadOnlyDynArray;
  142348. end;
  142349. class function TJSXRBoundedReferenceSpace.JSClassName: UnicodeString;
  142350. begin
  142351. Result:='XRBoundedReferenceSpace';
  142352. end;
  142353. class function TJSXRBoundedReferenceSpace.Cast(const Intf: IJSObject): IJSXRBoundedReferenceSpace;
  142354. begin
  142355. Result:=TJSXRBoundedReferenceSpace.JOBCast(Intf);
  142356. end;
  142357. function TJSXRView._Geteye: TXREye;
  142358. begin
  142359. Result:=ReadJSPropertyUnicodeString('eye');
  142360. end;
  142361. function TJSXRView._GetprojectionMatrix: IJSFloat32Array;
  142362. begin
  142363. Result:=ReadJSPropertyObject('projectionMatrix',TJSFloat32Array) as IJSFloat32Array;
  142364. end;
  142365. function TJSXRView._Gettransform: IJSXRRigidTransform;
  142366. begin
  142367. Result:=ReadJSPropertyObject('transform',TJSXRRigidTransform) as IJSXRRigidTransform;
  142368. end;
  142369. class function TJSXRView.JSClassName: UnicodeString;
  142370. begin
  142371. Result:='XRView';
  142372. end;
  142373. class function TJSXRView.Cast(const Intf: IJSObject): IJSXRView;
  142374. begin
  142375. Result:=TJSXRView.JOBCast(Intf);
  142376. end;
  142377. function TJSXRViewport._Getx: LongInt;
  142378. begin
  142379. Result:=ReadJSPropertyLongInt('x');
  142380. end;
  142381. function TJSXRViewport._Gety: LongInt;
  142382. begin
  142383. Result:=ReadJSPropertyLongInt('y');
  142384. end;
  142385. function TJSXRViewport._Getwidth: LongInt;
  142386. begin
  142387. Result:=ReadJSPropertyLongInt('width');
  142388. end;
  142389. function TJSXRViewport._Getheight: LongInt;
  142390. begin
  142391. Result:=ReadJSPropertyLongInt('height');
  142392. end;
  142393. class function TJSXRViewport.JSClassName: UnicodeString;
  142394. begin
  142395. Result:='XRViewport';
  142396. end;
  142397. class function TJSXRViewport.Cast(const Intf: IJSObject): IJSXRViewport;
  142398. begin
  142399. Result:=TJSXRViewport.JOBCast(Intf);
  142400. end;
  142401. function TJSXRRigidTransform._Getposition: IJSDOMPointReadOnly;
  142402. begin
  142403. Result:=ReadJSPropertyObject('position',TJSDOMPointReadOnly) as IJSDOMPointReadOnly;
  142404. end;
  142405. function TJSXRRigidTransform._Getorientation: IJSDOMPointReadOnly;
  142406. begin
  142407. Result:=ReadJSPropertyObject('orientation',TJSDOMPointReadOnly) as IJSDOMPointReadOnly;
  142408. end;
  142409. function TJSXRRigidTransform._Getmatrix: IJSFloat32Array;
  142410. begin
  142411. Result:=ReadJSPropertyObject('matrix',TJSFloat32Array) as IJSFloat32Array;
  142412. end;
  142413. function TJSXRRigidTransform._Getinverse: IJSXRRigidTransform;
  142414. begin
  142415. Result:=ReadJSPropertyObject('inverse',TJSXRRigidTransform) as IJSXRRigidTransform;
  142416. end;
  142417. constructor TJSXRRigidTransform.Create(const aPosition: TJSDOMPointInit; const aOrientation: TJSDOMPointInit);
  142418. begin
  142419. JOBCreate([aPosition,aOrientation]);
  142420. end;
  142421. constructor TJSXRRigidTransform.Create;
  142422. begin
  142423. JOBCreate([]);
  142424. end;
  142425. constructor TJSXRRigidTransform.Create(const aPosition: TJSDOMPointInit);
  142426. begin
  142427. JOBCreate([aPosition]);
  142428. end;
  142429. class function TJSXRRigidTransform.JSClassName: UnicodeString;
  142430. begin
  142431. Result:='XRRigidTransform';
  142432. end;
  142433. class function TJSXRRigidTransform.Cast(const Intf: IJSObject): IJSXRRigidTransform;
  142434. begin
  142435. Result:=TJSXRRigidTransform.JOBCast(Intf);
  142436. end;
  142437. function TJSXRPose._Gettransform: IJSXRRigidTransform;
  142438. begin
  142439. Result:=ReadJSPropertyObject('transform',TJSXRRigidTransform) as IJSXRRigidTransform;
  142440. end;
  142441. function TJSXRPose._GetemulatedPosition: Boolean;
  142442. begin
  142443. Result:=ReadJSPropertyBoolean('emulatedPosition');
  142444. end;
  142445. class function TJSXRPose.JSClassName: UnicodeString;
  142446. begin
  142447. Result:='XRPose';
  142448. end;
  142449. class function TJSXRPose.Cast(const Intf: IJSObject): IJSXRPose;
  142450. begin
  142451. Result:=TJSXRPose.JOBCast(Intf);
  142452. end;
  142453. function TJSXRViewerPose._Getviews: TJSXRViewDynArray;
  142454. begin
  142455. Result:=ReadJSPropertyObject('views',TJSArray) as TJSXRViewDynArray;
  142456. end;
  142457. class function TJSXRViewerPose.JSClassName: UnicodeString;
  142458. begin
  142459. Result:='XRViewerPose';
  142460. end;
  142461. class function TJSXRViewerPose.Cast(const Intf: IJSObject): IJSXRViewerPose;
  142462. begin
  142463. Result:=TJSXRViewerPose.JOBCast(Intf);
  142464. end;
  142465. function TJSXRInputSource._Gethandedness: TXRHandedness;
  142466. begin
  142467. Result:=ReadJSPropertyUnicodeString('handedness');
  142468. end;
  142469. function TJSXRInputSource._GettargetRayMode: TXRTargetRayMode;
  142470. begin
  142471. Result:=ReadJSPropertyUnicodeString('targetRayMode');
  142472. end;
  142473. function TJSXRInputSource._GettargetRaySpace: IJSXRSpace;
  142474. begin
  142475. Result:=ReadJSPropertyObject('targetRaySpace',TJSXRSpace) as IJSXRSpace;
  142476. end;
  142477. function TJSXRInputSource._GetgripSpace: IJSXRSpace;
  142478. begin
  142479. Result:=ReadJSPropertyObject('gripSpace',TJSXRSpace) as IJSXRSpace;
  142480. end;
  142481. function TJSXRInputSource._Getprofiles: TUnicodeStringDynArray;
  142482. begin
  142483. Result:=ReadJSPropertyObject('profiles',TJSArray) as TUnicodeStringDynArray;
  142484. end;
  142485. function TJSXRInputSource._Getgamepad: IJSGamepad;
  142486. begin
  142487. Result:=ReadJSPropertyObject('gamepad',TJSGamepad) as IJSGamepad;
  142488. end;
  142489. class function TJSXRInputSource.JSClassName: UnicodeString;
  142490. begin
  142491. Result:='XRInputSource';
  142492. end;
  142493. class function TJSXRInputSource.Cast(const Intf: IJSObject): IJSXRInputSource;
  142494. begin
  142495. Result:=TJSXRInputSource.JOBCast(Intf);
  142496. end;
  142497. function TJSXRInputSourceArray._Getlength_: Cardinal;
  142498. begin
  142499. Result:=ReadJSPropertyInt64('length');
  142500. end;
  142501. function TJSXRInputSourceArray.GetDefault(aIndex: Cardinal): IJSXRInputSource;
  142502. begin
  142503. Result:=InvokeJSObjectResult('',[aIndex],TJSXRInputSource) as IJSXRInputSource;
  142504. end;
  142505. class function TJSXRInputSourceArray.JSClassName: UnicodeString;
  142506. begin
  142507. Result:='XRInputSourceArray';
  142508. end;
  142509. class function TJSXRInputSourceArray.Cast(const Intf: IJSObject): IJSXRInputSourceArray;
  142510. begin
  142511. Result:=TJSXRInputSourceArray.JOBCast(Intf);
  142512. end;
  142513. function TJSXRWebGLLayerInit._Getantialias: Boolean;
  142514. begin
  142515. Result:=ReadJSPropertyBoolean('antialias');
  142516. end;
  142517. function TJSXRWebGLLayerInit._Getdepth: Boolean;
  142518. begin
  142519. Result:=ReadJSPropertyBoolean('depth');
  142520. end;
  142521. function TJSXRWebGLLayerInit._Getstencil: Boolean;
  142522. begin
  142523. Result:=ReadJSPropertyBoolean('stencil');
  142524. end;
  142525. function TJSXRWebGLLayerInit._Getalpha: Boolean;
  142526. begin
  142527. Result:=ReadJSPropertyBoolean('alpha');
  142528. end;
  142529. function TJSXRWebGLLayerInit._GetignoreDepthValues: Boolean;
  142530. begin
  142531. Result:=ReadJSPropertyBoolean('ignoreDepthValues');
  142532. end;
  142533. function TJSXRWebGLLayerInit._GetframebufferScaleFactor: Double;
  142534. begin
  142535. Result:=ReadJSPropertyDouble('framebufferScaleFactor');
  142536. end;
  142537. procedure TJSXRWebGLLayerInit._Setantialias(const aValue : Boolean);
  142538. begin
  142539. WriteJSPropertyBoolean('antialias',aValue);
  142540. end;
  142541. procedure TJSXRWebGLLayerInit._Setdepth(const aValue : Boolean);
  142542. begin
  142543. WriteJSPropertyBoolean('depth',aValue);
  142544. end;
  142545. procedure TJSXRWebGLLayerInit._Setstencil(const aValue : Boolean);
  142546. begin
  142547. WriteJSPropertyBoolean('stencil',aValue);
  142548. end;
  142549. procedure TJSXRWebGLLayerInit._Setalpha(const aValue : Boolean);
  142550. begin
  142551. WriteJSPropertyBoolean('alpha',aValue);
  142552. end;
  142553. procedure TJSXRWebGLLayerInit._SetignoreDepthValues(const aValue : Boolean);
  142554. begin
  142555. WriteJSPropertyBoolean('ignoreDepthValues',aValue);
  142556. end;
  142557. procedure TJSXRWebGLLayerInit._SetframebufferScaleFactor(const aValue : Double);
  142558. begin
  142559. WriteJSPropertyDouble('framebufferScaleFactor',aValue);
  142560. end;
  142561. class function TJSXRWebGLLayerInit.JSClassName: UnicodeString;
  142562. begin
  142563. Result:='Object';
  142564. end;
  142565. class function TJSXRWebGLLayerInit.Cast(const Intf: IJSObject): IJSXRWebGLLayerInit;
  142566. begin
  142567. Result:=TJSXRWebGLLayerInit.JOBCast(Intf);
  142568. end;
  142569. function TJSXRWebGLLayer._Getantialias: Boolean;
  142570. begin
  142571. Result:=ReadJSPropertyBoolean('antialias');
  142572. end;
  142573. function TJSXRWebGLLayer._GetignoreDepthValues: Boolean;
  142574. begin
  142575. Result:=ReadJSPropertyBoolean('ignoreDepthValues');
  142576. end;
  142577. function TJSXRWebGLLayer._Getframebuffer: IJSWebGLFramebuffer;
  142578. begin
  142579. Result:=ReadJSPropertyObject('framebuffer',TJSWebGLFramebuffer) as IJSWebGLFramebuffer;
  142580. end;
  142581. function TJSXRWebGLLayer._GetframebufferWidth: Cardinal;
  142582. begin
  142583. Result:=ReadJSPropertyInt64('framebufferWidth');
  142584. end;
  142585. function TJSXRWebGLLayer._GetframebufferHeight: Cardinal;
  142586. begin
  142587. Result:=ReadJSPropertyInt64('framebufferHeight');
  142588. end;
  142589. constructor TJSXRWebGLLayer.Create(aSession: IJSXRSession; aContext: IJSWebGL2RenderingContext; const aLayerInit: TJSXRWebGLLayerInit);
  142590. begin
  142591. JOBCreate([aSession,aContext,aLayerInit]);
  142592. end;
  142593. constructor TJSXRWebGLLayer.Create(aSession: IJSXRSession; aContext: IJSWebGLRenderingContext; const aLayerInit: TJSXRWebGLLayerInit);
  142594. begin
  142595. JOBCreate([aSession,aContext,aLayerInit]);
  142596. end;
  142597. constructor TJSXRWebGLLayer.Create(aSession: IJSXRSession; aContext: IJSWebGLRenderingContext);
  142598. begin
  142599. JOBCreate([aSession,aContext]);
  142600. end;
  142601. constructor TJSXRWebGLLayer.Create(aSession: IJSXRSession; aContext: IJSWebGL2RenderingContext);
  142602. begin
  142603. JOBCreate([aSession,aContext]);
  142604. end;
  142605. function TJSXRWebGLLayer.getViewport(aView: IJSXRView): IJSXRViewport;
  142606. begin
  142607. Result:=InvokeJSObjectResult('getViewport',[aView],TJSXRViewport) as IJSXRViewport;
  142608. end;
  142609. function TJSXRWebGLLayer.getNativeFramebufferScaleFactor(aSession: IJSXRSession): Double;
  142610. begin
  142611. Result:=InvokeJSDoubleResult('getNativeFramebufferScaleFactor',[aSession]);
  142612. end;
  142613. class function TJSXRWebGLLayer.JSClassName: UnicodeString;
  142614. begin
  142615. Result:='XRWebGLLayer';
  142616. end;
  142617. class function TJSXRWebGLLayer.Cast(const Intf: IJSObject): IJSXRWebGLLayer;
  142618. begin
  142619. Result:=TJSXRWebGLLayer.JOBCast(Intf);
  142620. end;
  142621. function TJSWheelEvent._GetwheelDeltaX: LongInt;
  142622. begin
  142623. Result:=ReadJSPropertyLongInt('wheelDeltaX');
  142624. end;
  142625. function TJSWheelEvent._GetwheelDeltaY: LongInt;
  142626. begin
  142627. Result:=ReadJSPropertyLongInt('wheelDeltaY');
  142628. end;
  142629. function TJSWheelEvent._GetwheelDelta: LongInt;
  142630. begin
  142631. Result:=ReadJSPropertyLongInt('wheelDelta');
  142632. end;
  142633. function TJSWheelEvent._GetdeltaX: Double;
  142634. begin
  142635. Result:=ReadJSPropertyDouble('deltaX');
  142636. end;
  142637. function TJSWheelEvent._GetdeltaY: Double;
  142638. begin
  142639. Result:=ReadJSPropertyDouble('deltaY');
  142640. end;
  142641. function TJSWheelEvent._GetdeltaZ: Double;
  142642. begin
  142643. Result:=ReadJSPropertyDouble('deltaZ');
  142644. end;
  142645. function TJSWheelEvent._GetdeltaMode: Cardinal;
  142646. begin
  142647. Result:=ReadJSPropertyInt64('deltaMode');
  142648. end;
  142649. constructor TJSWheelEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSWheelEventInit);
  142650. begin
  142651. JOBCreate([aType_,aEventInitDict]);
  142652. end;
  142653. constructor TJSWheelEvent.Create(const aType_: UnicodeString);
  142654. begin
  142655. JOBCreate([aType_]);
  142656. end;
  142657. class function TJSWheelEvent.JSClassName: UnicodeString;
  142658. begin
  142659. Result:='WheelEvent';
  142660. end;
  142661. class function TJSWheelEvent.Cast(const Intf: IJSObject): IJSWheelEvent;
  142662. begin
  142663. Result:=TJSWheelEvent.JOBCast(Intf);
  142664. end;
  142665. function TJSWheelEventInit._GetdeltaX: Double;
  142666. begin
  142667. Result:=ReadJSPropertyDouble('deltaX');
  142668. end;
  142669. function TJSWheelEventInit._GetdeltaY: Double;
  142670. begin
  142671. Result:=ReadJSPropertyDouble('deltaY');
  142672. end;
  142673. function TJSWheelEventInit._GetdeltaZ: Double;
  142674. begin
  142675. Result:=ReadJSPropertyDouble('deltaZ');
  142676. end;
  142677. function TJSWheelEventInit._GetdeltaMode: Cardinal;
  142678. begin
  142679. Result:=ReadJSPropertyInt64('deltaMode');
  142680. end;
  142681. procedure TJSWheelEventInit._SetdeltaX(const aValue : Double);
  142682. begin
  142683. WriteJSPropertyDouble('deltaX',aValue);
  142684. end;
  142685. procedure TJSWheelEventInit._SetdeltaY(const aValue : Double);
  142686. begin
  142687. WriteJSPropertyDouble('deltaY',aValue);
  142688. end;
  142689. procedure TJSWheelEventInit._SetdeltaZ(const aValue : Double);
  142690. begin
  142691. WriteJSPropertyDouble('deltaZ',aValue);
  142692. end;
  142693. procedure TJSWheelEventInit._SetdeltaMode(const aValue : Cardinal);
  142694. begin
  142695. WriteJSPropertyDouble('deltaMode',aValue);
  142696. end;
  142697. class function TJSWheelEventInit.JSClassName: UnicodeString;
  142698. begin
  142699. Result:='Object';
  142700. end;
  142701. class function TJSWheelEventInit.Cast(const Intf: IJSObject): IJSWheelEventInit;
  142702. begin
  142703. Result:=TJSWheelEventInit.JOBCast(Intf);
  142704. end;
  142705. class function TJSnsIBrowserDOMWindow.JSClassName: UnicodeString;
  142706. begin
  142707. Result:='nsIBrowserDOMWindow';
  142708. end;
  142709. class function TJSnsIBrowserDOMWindow.Cast(const Intf: IJSObject): IJSnsIBrowserDOMWindow;
  142710. begin
  142711. Result:=TJSnsIBrowserDOMWindow.JOBCast(Intf);
  142712. end;
  142713. class function TJSnsIDOMWindowUtils.JSClassName: UnicodeString;
  142714. begin
  142715. Result:='nsIDOMWindowUtils';
  142716. end;
  142717. class function TJSnsIDOMWindowUtils.Cast(const Intf: IJSObject): IJSnsIDOMWindowUtils;
  142718. begin
  142719. Result:=TJSnsIDOMWindowUtils.JOBCast(Intf);
  142720. end;
  142721. class function TJSnsIPrintSettings.JSClassName: UnicodeString;
  142722. begin
  142723. Result:='nsIPrintSettings';
  142724. end;
  142725. class function TJSnsIPrintSettings.Cast(const Intf: IJSObject): IJSnsIPrintSettings;
  142726. begin
  142727. Result:=TJSnsIPrintSettings.JOBCast(Intf);
  142728. end;
  142729. function TJSWindow._Getwindow: IJSWindowProxy;
  142730. begin
  142731. Result:=ReadJSPropertyObject('window',TJSWindowProxy) as IJSWindowProxy;
  142732. end;
  142733. function TJSWindow._Getself_: IJSWindowProxy;
  142734. begin
  142735. Result:=ReadJSPropertyObject('self',TJSWindowProxy) as IJSWindowProxy;
  142736. end;
  142737. function TJSWindow._Getdocument: IJSDocument;
  142738. begin
  142739. Result:=ReadJSPropertyObject('document',TJSDocument) as IJSDocument;
  142740. end;
  142741. function TJSWindow._Getname: UnicodeString;
  142742. begin
  142743. Result:=ReadJSPropertyUnicodeString('name');
  142744. end;
  142745. function TJSWindow._Getlocation: IJSLocation;
  142746. begin
  142747. Result:=ReadJSPropertyObject('location',TJSLocation) as IJSLocation;
  142748. end;
  142749. function TJSWindow._Gethistory: IJSHistory;
  142750. begin
  142751. Result:=ReadJSPropertyObject('history',TJSHistory) as IJSHistory;
  142752. end;
  142753. function TJSWindow._GetcustomElements: IJSCustomElementRegistry;
  142754. begin
  142755. Result:=ReadJSPropertyObject('customElements',TJSCustomElementRegistry) as IJSCustomElementRegistry;
  142756. end;
  142757. function TJSWindow._Getlocationbar: IJSBarProp;
  142758. begin
  142759. Result:=ReadJSPropertyObject('locationbar',TJSBarProp) as IJSBarProp;
  142760. end;
  142761. function TJSWindow._Getmenubar: IJSBarProp;
  142762. begin
  142763. Result:=ReadJSPropertyObject('menubar',TJSBarProp) as IJSBarProp;
  142764. end;
  142765. function TJSWindow._Getpersonalbar: IJSBarProp;
  142766. begin
  142767. Result:=ReadJSPropertyObject('personalbar',TJSBarProp) as IJSBarProp;
  142768. end;
  142769. function TJSWindow._Getscrollbars: IJSBarProp;
  142770. begin
  142771. Result:=ReadJSPropertyObject('scrollbars',TJSBarProp) as IJSBarProp;
  142772. end;
  142773. function TJSWindow._Getstatusbar: IJSBarProp;
  142774. begin
  142775. Result:=ReadJSPropertyObject('statusbar',TJSBarProp) as IJSBarProp;
  142776. end;
  142777. function TJSWindow._Gettoolbar: IJSBarProp;
  142778. begin
  142779. Result:=ReadJSPropertyObject('toolbar',TJSBarProp) as IJSBarProp;
  142780. end;
  142781. function TJSWindow._Getstatus: UnicodeString;
  142782. begin
  142783. Result:=ReadJSPropertyUnicodeString('status');
  142784. end;
  142785. function TJSWindow._Getclosed: Boolean;
  142786. begin
  142787. Result:=ReadJSPropertyBoolean('closed');
  142788. end;
  142789. function TJSWindow._Getevent: TWindow_event_Type;
  142790. begin
  142791. Result:=ReadJSPropertyVariant('event');
  142792. end;
  142793. function TJSWindow._Getframes: IJSWindowProxy;
  142794. begin
  142795. Result:=ReadJSPropertyObject('frames',TJSWindowProxy) as IJSWindowProxy;
  142796. end;
  142797. function TJSWindow._Getlength_: Cardinal;
  142798. begin
  142799. Result:=ReadJSPropertyInt64('length');
  142800. end;
  142801. function TJSWindow._Gettop: IJSWindowProxy;
  142802. begin
  142803. Result:=ReadJSPropertyObject('top',TJSWindowProxy) as IJSWindowProxy;
  142804. end;
  142805. function TJSWindow._Getopener: Variant;
  142806. begin
  142807. Result:=ReadJSPropertyVariant('opener');
  142808. end;
  142809. function TJSWindow._Getparent: IJSWindowProxy;
  142810. begin
  142811. Result:=ReadJSPropertyObject('parent',TJSWindowProxy) as IJSWindowProxy;
  142812. end;
  142813. function TJSWindow._GetframeElement: IJSElement;
  142814. begin
  142815. Result:=ReadJSPropertyObject('frameElement',TJSElement) as IJSElement;
  142816. end;
  142817. function TJSWindow._Getnavigator: IJSNavigator;
  142818. begin
  142819. Result:=ReadJSPropertyObject('navigator',TJSNavigator) as IJSNavigator;
  142820. end;
  142821. function TJSWindow._GetclientInformation: IJSNavigator;
  142822. begin
  142823. Result:=ReadJSPropertyObject('clientInformation',TJSNavigator) as IJSNavigator;
  142824. end;
  142825. function TJSWindow._Getexternal: IJSExternal;
  142826. begin
  142827. Result:=ReadJSPropertyObject('external',TJSExternal) as IJSExternal;
  142828. end;
  142829. function TJSWindow._Getscreen: IJSScreen;
  142830. begin
  142831. Result:=ReadJSPropertyObject('screen',TJSScreen) as IJSScreen;
  142832. end;
  142833. function TJSWindow._GetinnerWidth: Double;
  142834. begin
  142835. Result:=ReadJSPropertyDouble('innerWidth');
  142836. end;
  142837. function TJSWindow._GetinnerHeight: Double;
  142838. begin
  142839. Result:=ReadJSPropertyDouble('innerHeight');
  142840. end;
  142841. function TJSWindow._GetscrollX: Double;
  142842. begin
  142843. Result:=ReadJSPropertyDouble('scrollX');
  142844. end;
  142845. function TJSWindow._GetpageXOffset: Double;
  142846. begin
  142847. Result:=ReadJSPropertyDouble('pageXOffset');
  142848. end;
  142849. function TJSWindow._GetscrollY: Double;
  142850. begin
  142851. Result:=ReadJSPropertyDouble('scrollY');
  142852. end;
  142853. function TJSWindow._GetpageYOffset: Double;
  142854. begin
  142855. Result:=ReadJSPropertyDouble('pageYOffset');
  142856. end;
  142857. function TJSWindow._GetscreenLeft: Double;
  142858. begin
  142859. Result:=ReadJSPropertyDouble('screenLeft');
  142860. end;
  142861. function TJSWindow._GetscreenTop: Double;
  142862. begin
  142863. Result:=ReadJSPropertyDouble('screenTop');
  142864. end;
  142865. function TJSWindow._GetscreenX: Double;
  142866. begin
  142867. Result:=ReadJSPropertyDouble('screenX');
  142868. end;
  142869. function TJSWindow._GetscreenY: Double;
  142870. begin
  142871. Result:=ReadJSPropertyDouble('screenY');
  142872. end;
  142873. function TJSWindow._GetouterWidth: Double;
  142874. begin
  142875. Result:=ReadJSPropertyDouble('outerWidth');
  142876. end;
  142877. function TJSWindow._GetouterHeight: Double;
  142878. begin
  142879. Result:=ReadJSPropertyDouble('outerHeight');
  142880. end;
  142881. function TJSWindow._Getperformance: IJSPerformance;
  142882. begin
  142883. Result:=ReadJSPropertyObject('performance',TJSPerformance) as IJSPerformance;
  142884. end;
  142885. function TJSWindow._GetmozInnerScreenX: Single;
  142886. begin
  142887. Result:=ReadJSPropertyDouble('mozInnerScreenX');
  142888. end;
  142889. function TJSWindow._GetmozInnerScreenY: Single;
  142890. begin
  142891. Result:=ReadJSPropertyDouble('mozInnerScreenY');
  142892. end;
  142893. function TJSWindow._GetdevicePixelRatio: Double;
  142894. begin
  142895. Result:=ReadJSPropertyDouble('devicePixelRatio');
  142896. end;
  142897. function TJSWindow._GetscrollMaxX: LongInt;
  142898. begin
  142899. Result:=ReadJSPropertyLongInt('scrollMaxX');
  142900. end;
  142901. function TJSWindow._GetscrollMaxY: LongInt;
  142902. begin
  142903. Result:=ReadJSPropertyLongInt('scrollMaxY');
  142904. end;
  142905. function TJSWindow._GetfullScreen: Boolean;
  142906. begin
  142907. Result:=ReadJSPropertyBoolean('fullScreen');
  142908. end;
  142909. function TJSWindow._Getondevicemotion: TEventHandler;
  142910. begin
  142911. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondevicemotion')));
  142912. end;
  142913. function TJSWindow._Getondeviceorientation: TEventHandler;
  142914. begin
  142915. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondeviceorientation')));
  142916. end;
  142917. function TJSWindow._Getondeviceorientationabsolute: TEventHandler;
  142918. begin
  142919. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondeviceorientationabsolute')));
  142920. end;
  142921. function TJSWindow._Getonuserproximity: TEventHandler;
  142922. begin
  142923. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onuserproximity')));
  142924. end;
  142925. function TJSWindow._Getondevicelight: TEventHandler;
  142926. begin
  142927. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondevicelight')));
  142928. end;
  142929. function TJSWindow._GetwindowState: Word;
  142930. begin
  142931. Result:=ReadJSPropertyLongInt('windowState');
  142932. end;
  142933. function TJSWindow._GetisFullyOccluded: Boolean;
  142934. begin
  142935. Result:=ReadJSPropertyBoolean('isFullyOccluded');
  142936. end;
  142937. function TJSWindow._GetbrowserDOMWindow: IJSnsIBrowserDOMWindow;
  142938. begin
  142939. Result:=ReadJSPropertyObject('browserDOMWindow',TJSnsIBrowserDOMWindow) as IJSnsIBrowserDOMWindow;
  142940. end;
  142941. function TJSWindow._GetisChromeWindow: Boolean;
  142942. begin
  142943. Result:=ReadJSPropertyBoolean('isChromeWindow');
  142944. end;
  142945. function TJSWindow._GetGlean: IJSGleanImpl;
  142946. begin
  142947. Result:=ReadJSPropertyObject('Glean',TJSGleanImpl) as IJSGleanImpl;
  142948. end;
  142949. function TJSWindow._GetGleanPings: IJSGleanPingsImpl;
  142950. begin
  142951. Result:=ReadJSPropertyObject('GleanPings',TJSGleanPingsImpl) as IJSGleanPingsImpl;
  142952. end;
  142953. function TJSWindow._Getonvrdisplayconnect: TEventHandler;
  142954. begin
  142955. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvrdisplayconnect')));
  142956. end;
  142957. function TJSWindow._Getonvrdisplaydisconnect: TEventHandler;
  142958. begin
  142959. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvrdisplaydisconnect')));
  142960. end;
  142961. function TJSWindow._Getonvrdisplayactivate: TEventHandler;
  142962. begin
  142963. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvrdisplayactivate')));
  142964. end;
  142965. function TJSWindow._Getonvrdisplaydeactivate: TEventHandler;
  142966. begin
  142967. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvrdisplaydeactivate')));
  142968. end;
  142969. function TJSWindow._Getonvrdisplaypresentchange: TEventHandler;
  142970. begin
  142971. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvrdisplaypresentchange')));
  142972. end;
  142973. function TJSWindow._GetpaintWorklet: IJSWorklet;
  142974. begin
  142975. Result:=ReadJSPropertyObject('paintWorklet',TJSWorklet) as IJSWorklet;
  142976. end;
  142977. function TJSWindow._GetintlUtils: IJSIntlUtils;
  142978. begin
  142979. Result:=ReadJSPropertyObject('intlUtils',TJSIntlUtils) as IJSIntlUtils;
  142980. end;
  142981. function TJSWindow._GetvisualViewport: IJSVisualViewport;
  142982. begin
  142983. Result:=ReadJSPropertyObject('visualViewport',TJSVisualViewport) as IJSVisualViewport;
  142984. end;
  142985. function TJSWindow._Getonabort: TEventHandler;
  142986. begin
  142987. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  142988. end;
  142989. function TJSWindow._Getonblur: TEventHandler;
  142990. begin
  142991. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onblur')));
  142992. end;
  142993. function TJSWindow._Getonfocus: TEventHandler;
  142994. begin
  142995. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onfocus')));
  142996. end;
  142997. function TJSWindow._Getoncancel: TEventHandler;
  142998. begin
  142999. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncancel')));
  143000. end;
  143001. function TJSWindow._Getonauxclick: TEventHandler;
  143002. begin
  143003. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onauxclick')));
  143004. end;
  143005. function TJSWindow._Getonbeforeinput: TEventHandler;
  143006. begin
  143007. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforeinput')));
  143008. end;
  143009. function TJSWindow._Getonbeforetoggle: TEventHandler;
  143010. begin
  143011. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforetoggle')));
  143012. end;
  143013. function TJSWindow._Getoncanplay: TEventHandler;
  143014. begin
  143015. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplay')));
  143016. end;
  143017. function TJSWindow._Getoncanplaythrough: TEventHandler;
  143018. begin
  143019. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncanplaythrough')));
  143020. end;
  143021. function TJSWindow._Getonchange: TEventHandler;
  143022. begin
  143023. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onchange')));
  143024. end;
  143025. function TJSWindow._Getonclick: TEventHandler;
  143026. begin
  143027. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclick')));
  143028. end;
  143029. function TJSWindow._Getonclose: TEventHandler;
  143030. begin
  143031. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onclose')));
  143032. end;
  143033. function TJSWindow._Getoncontextlost: TEventHandler;
  143034. begin
  143035. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextlost')));
  143036. end;
  143037. function TJSWindow._Getoncontextmenu: TEventHandler;
  143038. begin
  143039. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextmenu')));
  143040. end;
  143041. function TJSWindow._Getoncontextrestored: TEventHandler;
  143042. begin
  143043. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncontextrestored')));
  143044. end;
  143045. function TJSWindow._Getoncopy: TEventHandler;
  143046. begin
  143047. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncopy')));
  143048. end;
  143049. function TJSWindow._Getoncuechange: TEventHandler;
  143050. begin
  143051. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncuechange')));
  143052. end;
  143053. function TJSWindow._Getoncut: TEventHandler;
  143054. begin
  143055. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oncut')));
  143056. end;
  143057. function TJSWindow._Getondblclick: TEventHandler;
  143058. begin
  143059. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondblclick')));
  143060. end;
  143061. function TJSWindow._Getondrag: TEventHandler;
  143062. begin
  143063. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrag')));
  143064. end;
  143065. function TJSWindow._Getondragend: TEventHandler;
  143066. begin
  143067. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragend')));
  143068. end;
  143069. function TJSWindow._Getondragenter: TEventHandler;
  143070. begin
  143071. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragenter')));
  143072. end;
  143073. function TJSWindow._Getondragexit: TEventHandler;
  143074. begin
  143075. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragexit')));
  143076. end;
  143077. function TJSWindow._Getondragleave: TEventHandler;
  143078. begin
  143079. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragleave')));
  143080. end;
  143081. function TJSWindow._Getondragover: TEventHandler;
  143082. begin
  143083. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragover')));
  143084. end;
  143085. function TJSWindow._Getondragstart: TEventHandler;
  143086. begin
  143087. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondragstart')));
  143088. end;
  143089. function TJSWindow._Getondrop: TEventHandler;
  143090. begin
  143091. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondrop')));
  143092. end;
  143093. function TJSWindow._Getondurationchange: TEventHandler;
  143094. begin
  143095. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ondurationchange')));
  143096. end;
  143097. function TJSWindow._Getonemptied: TEventHandler;
  143098. begin
  143099. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onemptied')));
  143100. end;
  143101. function TJSWindow._Getonended: TEventHandler;
  143102. begin
  143103. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onended')));
  143104. end;
  143105. function TJSWindow._Getonformdata: TEventHandler;
  143106. begin
  143107. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onformdata')));
  143108. end;
  143109. function TJSWindow._Getoninput: TEventHandler;
  143110. begin
  143111. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninput')));
  143112. end;
  143113. function TJSWindow._Getoninvalid: TEventHandler;
  143114. begin
  143115. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('oninvalid')));
  143116. end;
  143117. function TJSWindow._Getonkeydown: TEventHandler;
  143118. begin
  143119. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeydown')));
  143120. end;
  143121. function TJSWindow._Getonkeypress: TEventHandler;
  143122. begin
  143123. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeypress')));
  143124. end;
  143125. function TJSWindow._Getonkeyup: TEventHandler;
  143126. begin
  143127. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onkeyup')));
  143128. end;
  143129. function TJSWindow._Getonload: TEventHandler;
  143130. begin
  143131. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onload')));
  143132. end;
  143133. function TJSWindow._Getonloadeddata: TEventHandler;
  143134. begin
  143135. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadeddata')));
  143136. end;
  143137. function TJSWindow._Getonloadedmetadata: TEventHandler;
  143138. begin
  143139. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadedmetadata')));
  143140. end;
  143141. function TJSWindow._Getonloadstart: TEventHandler;
  143142. begin
  143143. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadstart')));
  143144. end;
  143145. function TJSWindow._Getonmousedown: TEventHandler;
  143146. begin
  143147. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousedown')));
  143148. end;
  143149. function TJSWindow._Getonmouseenter: TEventHandler;
  143150. begin
  143151. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseenter')));
  143152. end;
  143153. function TJSWindow._Getonmouseleave: TEventHandler;
  143154. begin
  143155. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseleave')));
  143156. end;
  143157. function TJSWindow._Getonmousemove: TEventHandler;
  143158. begin
  143159. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmousemove')));
  143160. end;
  143161. function TJSWindow._Getonmouseout: TEventHandler;
  143162. begin
  143163. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseout')));
  143164. end;
  143165. function TJSWindow._Getonmouseover: TEventHandler;
  143166. begin
  143167. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseover')));
  143168. end;
  143169. function TJSWindow._Getonmouseup: TEventHandler;
  143170. begin
  143171. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmouseup')));
  143172. end;
  143173. function TJSWindow._Getonwheel: TEventHandler;
  143174. begin
  143175. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwheel')));
  143176. end;
  143177. function TJSWindow._Getonpaste: TEventHandler;
  143178. begin
  143179. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpaste')));
  143180. end;
  143181. function TJSWindow._Getonpause: TEventHandler;
  143182. begin
  143183. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpause')));
  143184. end;
  143185. function TJSWindow._Getonplay: TEventHandler;
  143186. begin
  143187. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplay')));
  143188. end;
  143189. function TJSWindow._Getonplaying: TEventHandler;
  143190. begin
  143191. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onplaying')));
  143192. end;
  143193. function TJSWindow._Getonprogress: TEventHandler;
  143194. begin
  143195. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onprogress')));
  143196. end;
  143197. function TJSWindow._Getonratechange: TEventHandler;
  143198. begin
  143199. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onratechange')));
  143200. end;
  143201. function TJSWindow._Getonreset: TEventHandler;
  143202. begin
  143203. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onreset')));
  143204. end;
  143205. function TJSWindow._Getonresize: TEventHandler;
  143206. begin
  143207. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onresize')));
  143208. end;
  143209. function TJSWindow._Getonscroll: TEventHandler;
  143210. begin
  143211. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscroll')));
  143212. end;
  143213. function TJSWindow._Getonscrollend: TEventHandler;
  143214. begin
  143215. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onscrollend')));
  143216. end;
  143217. function TJSWindow._Getonsecuritypolicyviolation: TEventHandler;
  143218. begin
  143219. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsecuritypolicyviolation')));
  143220. end;
  143221. function TJSWindow._Getonseeked: TEventHandler;
  143222. begin
  143223. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeked')));
  143224. end;
  143225. function TJSWindow._Getonseeking: TEventHandler;
  143226. begin
  143227. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onseeking')));
  143228. end;
  143229. function TJSWindow._Getonselect: TEventHandler;
  143230. begin
  143231. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselect')));
  143232. end;
  143233. function TJSWindow._Getonslotchange: TEventHandler;
  143234. begin
  143235. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onslotchange')));
  143236. end;
  143237. function TJSWindow._Getonstalled: TEventHandler;
  143238. begin
  143239. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstalled')));
  143240. end;
  143241. function TJSWindow._Getonsubmit: TEventHandler;
  143242. begin
  143243. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsubmit')));
  143244. end;
  143245. function TJSWindow._Getonsuspend: TEventHandler;
  143246. begin
  143247. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onsuspend')));
  143248. end;
  143249. function TJSWindow._Getontimeupdate: TEventHandler;
  143250. begin
  143251. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontimeupdate')));
  143252. end;
  143253. function TJSWindow._Getonvolumechange: TEventHandler;
  143254. begin
  143255. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onvolumechange')));
  143256. end;
  143257. function TJSWindow._Getonwaiting: TEventHandler;
  143258. begin
  143259. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwaiting')));
  143260. end;
  143261. function TJSWindow._Getonselectstart: TEventHandler;
  143262. begin
  143263. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectstart')));
  143264. end;
  143265. function TJSWindow._Getonselectionchange: TEventHandler;
  143266. begin
  143267. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onselectionchange')));
  143268. end;
  143269. function TJSWindow._Getontoggle: TEventHandler;
  143270. begin
  143271. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontoggle')));
  143272. end;
  143273. function TJSWindow._Getonpointercancel: TEventHandler;
  143274. begin
  143275. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointercancel')));
  143276. end;
  143277. function TJSWindow._Getonpointerdown: TEventHandler;
  143278. begin
  143279. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerdown')));
  143280. end;
  143281. function TJSWindow._Getonpointerup: TEventHandler;
  143282. begin
  143283. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerup')));
  143284. end;
  143285. function TJSWindow._Getonpointermove: TEventHandler;
  143286. begin
  143287. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointermove')));
  143288. end;
  143289. function TJSWindow._Getonpointerout: TEventHandler;
  143290. begin
  143291. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerout')));
  143292. end;
  143293. function TJSWindow._Getonpointerover: TEventHandler;
  143294. begin
  143295. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerover')));
  143296. end;
  143297. function TJSWindow._Getonpointerenter: TEventHandler;
  143298. begin
  143299. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerenter')));
  143300. end;
  143301. function TJSWindow._Getonpointerleave: TEventHandler;
  143302. begin
  143303. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpointerleave')));
  143304. end;
  143305. function TJSWindow._Getongotpointercapture: TEventHandler;
  143306. begin
  143307. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongotpointercapture')));
  143308. end;
  143309. function TJSWindow._Getonlostpointercapture: TEventHandler;
  143310. begin
  143311. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onlostpointercapture')));
  143312. end;
  143313. function TJSWindow._Getonmozfullscreenchange: TEventHandler;
  143314. begin
  143315. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenchange')));
  143316. end;
  143317. function TJSWindow._Getonmozfullscreenerror: TEventHandler;
  143318. begin
  143319. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmozfullscreenerror')));
  143320. end;
  143321. function TJSWindow._Getonanimationcancel: TEventHandler;
  143322. begin
  143323. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationcancel')));
  143324. end;
  143325. function TJSWindow._Getonanimationend: TEventHandler;
  143326. begin
  143327. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationend')));
  143328. end;
  143329. function TJSWindow._Getonanimationiteration: TEventHandler;
  143330. begin
  143331. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationiteration')));
  143332. end;
  143333. function TJSWindow._Getonanimationstart: TEventHandler;
  143334. begin
  143335. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onanimationstart')));
  143336. end;
  143337. function TJSWindow._Getontransitioncancel: TEventHandler;
  143338. begin
  143339. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitioncancel')));
  143340. end;
  143341. function TJSWindow._Getontransitionend: TEventHandler;
  143342. begin
  143343. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionend')));
  143344. end;
  143345. function TJSWindow._Getontransitionrun: TEventHandler;
  143346. begin
  143347. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionrun')));
  143348. end;
  143349. function TJSWindow._Getontransitionstart: TEventHandler;
  143350. begin
  143351. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontransitionstart')));
  143352. end;
  143353. function TJSWindow._Getonwebkitanimationend: TEventHandler;
  143354. begin
  143355. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationend')));
  143356. end;
  143357. function TJSWindow._Getonwebkitanimationiteration: TEventHandler;
  143358. begin
  143359. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationiteration')));
  143360. end;
  143361. function TJSWindow._Getonwebkitanimationstart: TEventHandler;
  143362. begin
  143363. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkitanimationstart')));
  143364. end;
  143365. function TJSWindow._Getonwebkittransitionend: TEventHandler;
  143366. begin
  143367. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onwebkittransitionend')));
  143368. end;
  143369. function TJSWindow._Getonafterprint: TEventHandler;
  143370. begin
  143371. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onafterprint')));
  143372. end;
  143373. function TJSWindow._Getonbeforeprint: TEventHandler;
  143374. begin
  143375. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onbeforeprint')));
  143376. end;
  143377. function TJSWindow._Getonbeforeunload: TOnBeforeUnloadEventHandler;
  143378. begin
  143379. Result:=(TOnBeforeUnloadEventHandlerNonNull(ReadJSPropertyMethod('onbeforeunload')));
  143380. end;
  143381. function TJSWindow._Getonhashchange: TEventHandler;
  143382. begin
  143383. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onhashchange')));
  143384. end;
  143385. function TJSWindow._Getonlanguagechange: TEventHandler;
  143386. begin
  143387. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onlanguagechange')));
  143388. end;
  143389. function TJSWindow._Getonmessage: TEventHandler;
  143390. begin
  143391. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  143392. end;
  143393. function TJSWindow._Getonmessageerror: TEventHandler;
  143394. begin
  143395. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessageerror')));
  143396. end;
  143397. function TJSWindow._Getonoffline: TEventHandler;
  143398. begin
  143399. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onoffline')));
  143400. end;
  143401. function TJSWindow._Getononline: TEventHandler;
  143402. begin
  143403. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ononline')));
  143404. end;
  143405. function TJSWindow._Getonpagehide: TEventHandler;
  143406. begin
  143407. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpagehide')));
  143408. end;
  143409. function TJSWindow._Getonpageshow: TEventHandler;
  143410. begin
  143411. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpageshow')));
  143412. end;
  143413. function TJSWindow._Getonpopstate: TEventHandler;
  143414. begin
  143415. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onpopstate')));
  143416. end;
  143417. function TJSWindow._Getonrejectionhandled: TEventHandler;
  143418. begin
  143419. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onrejectionhandled')));
  143420. end;
  143421. function TJSWindow._Getonstorage: TEventHandler;
  143422. begin
  143423. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onstorage')));
  143424. end;
  143425. function TJSWindow._Getonunhandledrejection: TEventHandler;
  143426. begin
  143427. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onunhandledrejection')));
  143428. end;
  143429. function TJSWindow._Getonunload: TEventHandler;
  143430. begin
  143431. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onunload')));
  143432. end;
  143433. function TJSWindow._Getongamepadconnected: TEventHandler;
  143434. begin
  143435. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongamepadconnected')));
  143436. end;
  143437. function TJSWindow._Getongamepaddisconnected: TEventHandler;
  143438. begin
  143439. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ongamepaddisconnected')));
  143440. end;
  143441. function TJSWindow._GetsessionStorage: IJSStorage;
  143442. begin
  143443. Result:=ReadJSPropertyObject('sessionStorage',TJSStorage) as IJSStorage;
  143444. end;
  143445. function TJSWindow._GetlocalStorage: IJSStorage;
  143446. begin
  143447. Result:=ReadJSPropertyObject('localStorage',TJSStorage) as IJSStorage;
  143448. end;
  143449. function TJSWindow._Getcrypto: IJSCrypto;
  143450. begin
  143451. Result:=ReadJSPropertyObject('crypto',TJSCrypto) as IJSCrypto;
  143452. end;
  143453. function TJSWindow._Getontouchstart: TEventHandler;
  143454. begin
  143455. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchstart')));
  143456. end;
  143457. function TJSWindow._Getontouchend: TEventHandler;
  143458. begin
  143459. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchend')));
  143460. end;
  143461. function TJSWindow._Getontouchmove: TEventHandler;
  143462. begin
  143463. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchmove')));
  143464. end;
  143465. function TJSWindow._Getontouchcancel: TEventHandler;
  143466. begin
  143467. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontouchcancel')));
  143468. end;
  143469. function TJSWindow._Getonerror: TOnErrorEventHandler;
  143470. begin
  143471. Result:=(TOnErrorEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  143472. end;
  143473. function TJSWindow._Getorigin: UnicodeString;
  143474. begin
  143475. Result:=ReadJSPropertyUnicodeString('origin');
  143476. end;
  143477. function TJSWindow._GetcrossOriginIsolated: Boolean;
  143478. begin
  143479. Result:=ReadJSPropertyBoolean('crossOriginIsolated');
  143480. end;
  143481. function TJSWindow._GetisSecureContext: Boolean;
  143482. begin
  143483. Result:=ReadJSPropertyBoolean('isSecureContext');
  143484. end;
  143485. function TJSWindow._GetindexedDB: IJSIDBFactory;
  143486. begin
  143487. Result:=ReadJSPropertyObject('indexedDB',TJSIDBFactory) as IJSIDBFactory;
  143488. end;
  143489. function TJSWindow._Getcaches: IJSCacheStorage;
  143490. begin
  143491. Result:=ReadJSPropertyObject('caches',TJSCacheStorage) as IJSCacheStorage;
  143492. end;
  143493. function TJSWindow._Getscheduler: IJSScheduler;
  143494. begin
  143495. Result:=ReadJSPropertyObject('scheduler',TJSScheduler) as IJSScheduler;
  143496. end;
  143497. function TJSWindow._GettrustedTypes: IJSTrustedTypePolicyFactory;
  143498. begin
  143499. Result:=ReadJSPropertyObject('trustedTypes',TJSTrustedTypePolicyFactory) as IJSTrustedTypePolicyFactory;
  143500. end;
  143501. procedure TJSWindow._Setname(const aValue : UnicodeString);
  143502. begin
  143503. WriteJSPropertyUnicodeString('name',aValue);
  143504. end;
  143505. procedure TJSWindow._Setstatus(const aValue : UnicodeString);
  143506. begin
  143507. WriteJSPropertyUnicodeString('status',aValue);
  143508. end;
  143509. procedure TJSWindow._Setopener(const aValue : Variant);
  143510. begin
  143511. WriteJSPropertyVariant('opener',aValue);
  143512. end;
  143513. procedure TJSWindow._SetfullScreen(const aValue : Boolean);
  143514. begin
  143515. WriteJSPropertyBoolean('fullScreen',aValue);
  143516. end;
  143517. procedure TJSWindow._Setondevicemotion(const aValue : TEventHandler);
  143518. begin
  143519. WriteJSPropertyMethod('ondevicemotion',TMethod(aValue));
  143520. end;
  143521. procedure TJSWindow._Setondeviceorientation(const aValue : TEventHandler);
  143522. begin
  143523. WriteJSPropertyMethod('ondeviceorientation',TMethod(aValue));
  143524. end;
  143525. procedure TJSWindow._Setondeviceorientationabsolute(const aValue : TEventHandler);
  143526. begin
  143527. WriteJSPropertyMethod('ondeviceorientationabsolute',TMethod(aValue));
  143528. end;
  143529. procedure TJSWindow._Setonuserproximity(const aValue : TEventHandler);
  143530. begin
  143531. WriteJSPropertyMethod('onuserproximity',TMethod(aValue));
  143532. end;
  143533. procedure TJSWindow._Setondevicelight(const aValue : TEventHandler);
  143534. begin
  143535. WriteJSPropertyMethod('ondevicelight',TMethod(aValue));
  143536. end;
  143537. procedure TJSWindow._SetbrowserDOMWindow(const aValue : IJSnsIBrowserDOMWindow);
  143538. begin
  143539. WriteJSPropertyObject('browserDOMWindow',aValue);
  143540. end;
  143541. procedure TJSWindow._Setonvrdisplayconnect(const aValue : TEventHandler);
  143542. begin
  143543. WriteJSPropertyMethod('onvrdisplayconnect',TMethod(aValue));
  143544. end;
  143545. procedure TJSWindow._Setonvrdisplaydisconnect(const aValue : TEventHandler);
  143546. begin
  143547. WriteJSPropertyMethod('onvrdisplaydisconnect',TMethod(aValue));
  143548. end;
  143549. procedure TJSWindow._Setonvrdisplayactivate(const aValue : TEventHandler);
  143550. begin
  143551. WriteJSPropertyMethod('onvrdisplayactivate',TMethod(aValue));
  143552. end;
  143553. procedure TJSWindow._Setonvrdisplaydeactivate(const aValue : TEventHandler);
  143554. begin
  143555. WriteJSPropertyMethod('onvrdisplaydeactivate',TMethod(aValue));
  143556. end;
  143557. procedure TJSWindow._Setonvrdisplaypresentchange(const aValue : TEventHandler);
  143558. begin
  143559. WriteJSPropertyMethod('onvrdisplaypresentchange',TMethod(aValue));
  143560. end;
  143561. procedure TJSWindow._Setonabort(const aValue : TEventHandler);
  143562. begin
  143563. WriteJSPropertyMethod('onabort',TMethod(aValue));
  143564. end;
  143565. procedure TJSWindow._Setonblur(const aValue : TEventHandler);
  143566. begin
  143567. WriteJSPropertyMethod('onblur',TMethod(aValue));
  143568. end;
  143569. procedure TJSWindow._Setonfocus(const aValue : TEventHandler);
  143570. begin
  143571. WriteJSPropertyMethod('onfocus',TMethod(aValue));
  143572. end;
  143573. procedure TJSWindow._Setoncancel(const aValue : TEventHandler);
  143574. begin
  143575. WriteJSPropertyMethod('oncancel',TMethod(aValue));
  143576. end;
  143577. procedure TJSWindow._Setonauxclick(const aValue : TEventHandler);
  143578. begin
  143579. WriteJSPropertyMethod('onauxclick',TMethod(aValue));
  143580. end;
  143581. procedure TJSWindow._Setonbeforeinput(const aValue : TEventHandler);
  143582. begin
  143583. WriteJSPropertyMethod('onbeforeinput',TMethod(aValue));
  143584. end;
  143585. procedure TJSWindow._Setonbeforetoggle(const aValue : TEventHandler);
  143586. begin
  143587. WriteJSPropertyMethod('onbeforetoggle',TMethod(aValue));
  143588. end;
  143589. procedure TJSWindow._Setoncanplay(const aValue : TEventHandler);
  143590. begin
  143591. WriteJSPropertyMethod('oncanplay',TMethod(aValue));
  143592. end;
  143593. procedure TJSWindow._Setoncanplaythrough(const aValue : TEventHandler);
  143594. begin
  143595. WriteJSPropertyMethod('oncanplaythrough',TMethod(aValue));
  143596. end;
  143597. procedure TJSWindow._Setonchange(const aValue : TEventHandler);
  143598. begin
  143599. WriteJSPropertyMethod('onchange',TMethod(aValue));
  143600. end;
  143601. procedure TJSWindow._Setonclick(const aValue : TEventHandler);
  143602. begin
  143603. WriteJSPropertyMethod('onclick',TMethod(aValue));
  143604. end;
  143605. procedure TJSWindow._Setonclose(const aValue : TEventHandler);
  143606. begin
  143607. WriteJSPropertyMethod('onclose',TMethod(aValue));
  143608. end;
  143609. procedure TJSWindow._Setoncontextlost(const aValue : TEventHandler);
  143610. begin
  143611. WriteJSPropertyMethod('oncontextlost',TMethod(aValue));
  143612. end;
  143613. procedure TJSWindow._Setoncontextmenu(const aValue : TEventHandler);
  143614. begin
  143615. WriteJSPropertyMethod('oncontextmenu',TMethod(aValue));
  143616. end;
  143617. procedure TJSWindow._Setoncontextrestored(const aValue : TEventHandler);
  143618. begin
  143619. WriteJSPropertyMethod('oncontextrestored',TMethod(aValue));
  143620. end;
  143621. procedure TJSWindow._Setoncopy(const aValue : TEventHandler);
  143622. begin
  143623. WriteJSPropertyMethod('oncopy',TMethod(aValue));
  143624. end;
  143625. procedure TJSWindow._Setoncuechange(const aValue : TEventHandler);
  143626. begin
  143627. WriteJSPropertyMethod('oncuechange',TMethod(aValue));
  143628. end;
  143629. procedure TJSWindow._Setoncut(const aValue : TEventHandler);
  143630. begin
  143631. WriteJSPropertyMethod('oncut',TMethod(aValue));
  143632. end;
  143633. procedure TJSWindow._Setondblclick(const aValue : TEventHandler);
  143634. begin
  143635. WriteJSPropertyMethod('ondblclick',TMethod(aValue));
  143636. end;
  143637. procedure TJSWindow._Setondrag(const aValue : TEventHandler);
  143638. begin
  143639. WriteJSPropertyMethod('ondrag',TMethod(aValue));
  143640. end;
  143641. procedure TJSWindow._Setondragend(const aValue : TEventHandler);
  143642. begin
  143643. WriteJSPropertyMethod('ondragend',TMethod(aValue));
  143644. end;
  143645. procedure TJSWindow._Setondragenter(const aValue : TEventHandler);
  143646. begin
  143647. WriteJSPropertyMethod('ondragenter',TMethod(aValue));
  143648. end;
  143649. procedure TJSWindow._Setondragexit(const aValue : TEventHandler);
  143650. begin
  143651. WriteJSPropertyMethod('ondragexit',TMethod(aValue));
  143652. end;
  143653. procedure TJSWindow._Setondragleave(const aValue : TEventHandler);
  143654. begin
  143655. WriteJSPropertyMethod('ondragleave',TMethod(aValue));
  143656. end;
  143657. procedure TJSWindow._Setondragover(const aValue : TEventHandler);
  143658. begin
  143659. WriteJSPropertyMethod('ondragover',TMethod(aValue));
  143660. end;
  143661. procedure TJSWindow._Setondragstart(const aValue : TEventHandler);
  143662. begin
  143663. WriteJSPropertyMethod('ondragstart',TMethod(aValue));
  143664. end;
  143665. procedure TJSWindow._Setondrop(const aValue : TEventHandler);
  143666. begin
  143667. WriteJSPropertyMethod('ondrop',TMethod(aValue));
  143668. end;
  143669. procedure TJSWindow._Setondurationchange(const aValue : TEventHandler);
  143670. begin
  143671. WriteJSPropertyMethod('ondurationchange',TMethod(aValue));
  143672. end;
  143673. procedure TJSWindow._Setonemptied(const aValue : TEventHandler);
  143674. begin
  143675. WriteJSPropertyMethod('onemptied',TMethod(aValue));
  143676. end;
  143677. procedure TJSWindow._Setonended(const aValue : TEventHandler);
  143678. begin
  143679. WriteJSPropertyMethod('onended',TMethod(aValue));
  143680. end;
  143681. procedure TJSWindow._Setonformdata(const aValue : TEventHandler);
  143682. begin
  143683. WriteJSPropertyMethod('onformdata',TMethod(aValue));
  143684. end;
  143685. procedure TJSWindow._Setoninput(const aValue : TEventHandler);
  143686. begin
  143687. WriteJSPropertyMethod('oninput',TMethod(aValue));
  143688. end;
  143689. procedure TJSWindow._Setoninvalid(const aValue : TEventHandler);
  143690. begin
  143691. WriteJSPropertyMethod('oninvalid',TMethod(aValue));
  143692. end;
  143693. procedure TJSWindow._Setonkeydown(const aValue : TEventHandler);
  143694. begin
  143695. WriteJSPropertyMethod('onkeydown',TMethod(aValue));
  143696. end;
  143697. procedure TJSWindow._Setonkeypress(const aValue : TEventHandler);
  143698. begin
  143699. WriteJSPropertyMethod('onkeypress',TMethod(aValue));
  143700. end;
  143701. procedure TJSWindow._Setonkeyup(const aValue : TEventHandler);
  143702. begin
  143703. WriteJSPropertyMethod('onkeyup',TMethod(aValue));
  143704. end;
  143705. procedure TJSWindow._Setonload(const aValue : TEventHandler);
  143706. begin
  143707. WriteJSPropertyMethod('onload',TMethod(aValue));
  143708. end;
  143709. procedure TJSWindow._Setonloadeddata(const aValue : TEventHandler);
  143710. begin
  143711. WriteJSPropertyMethod('onloadeddata',TMethod(aValue));
  143712. end;
  143713. procedure TJSWindow._Setonloadedmetadata(const aValue : TEventHandler);
  143714. begin
  143715. WriteJSPropertyMethod('onloadedmetadata',TMethod(aValue));
  143716. end;
  143717. procedure TJSWindow._Setonloadstart(const aValue : TEventHandler);
  143718. begin
  143719. WriteJSPropertyMethod('onloadstart',TMethod(aValue));
  143720. end;
  143721. procedure TJSWindow._Setonmousedown(const aValue : TEventHandler);
  143722. begin
  143723. WriteJSPropertyMethod('onmousedown',TMethod(aValue));
  143724. end;
  143725. procedure TJSWindow._Setonmouseenter(const aValue : TEventHandler);
  143726. begin
  143727. WriteJSPropertyMethod('onmouseenter',TMethod(aValue));
  143728. end;
  143729. procedure TJSWindow._Setonmouseleave(const aValue : TEventHandler);
  143730. begin
  143731. WriteJSPropertyMethod('onmouseleave',TMethod(aValue));
  143732. end;
  143733. procedure TJSWindow._Setonmousemove(const aValue : TEventHandler);
  143734. begin
  143735. WriteJSPropertyMethod('onmousemove',TMethod(aValue));
  143736. end;
  143737. procedure TJSWindow._Setonmouseout(const aValue : TEventHandler);
  143738. begin
  143739. WriteJSPropertyMethod('onmouseout',TMethod(aValue));
  143740. end;
  143741. procedure TJSWindow._Setonmouseover(const aValue : TEventHandler);
  143742. begin
  143743. WriteJSPropertyMethod('onmouseover',TMethod(aValue));
  143744. end;
  143745. procedure TJSWindow._Setonmouseup(const aValue : TEventHandler);
  143746. begin
  143747. WriteJSPropertyMethod('onmouseup',TMethod(aValue));
  143748. end;
  143749. procedure TJSWindow._Setonwheel(const aValue : TEventHandler);
  143750. begin
  143751. WriteJSPropertyMethod('onwheel',TMethod(aValue));
  143752. end;
  143753. procedure TJSWindow._Setonpaste(const aValue : TEventHandler);
  143754. begin
  143755. WriteJSPropertyMethod('onpaste',TMethod(aValue));
  143756. end;
  143757. procedure TJSWindow._Setonpause(const aValue : TEventHandler);
  143758. begin
  143759. WriteJSPropertyMethod('onpause',TMethod(aValue));
  143760. end;
  143761. procedure TJSWindow._Setonplay(const aValue : TEventHandler);
  143762. begin
  143763. WriteJSPropertyMethod('onplay',TMethod(aValue));
  143764. end;
  143765. procedure TJSWindow._Setonplaying(const aValue : TEventHandler);
  143766. begin
  143767. WriteJSPropertyMethod('onplaying',TMethod(aValue));
  143768. end;
  143769. procedure TJSWindow._Setonprogress(const aValue : TEventHandler);
  143770. begin
  143771. WriteJSPropertyMethod('onprogress',TMethod(aValue));
  143772. end;
  143773. procedure TJSWindow._Setonratechange(const aValue : TEventHandler);
  143774. begin
  143775. WriteJSPropertyMethod('onratechange',TMethod(aValue));
  143776. end;
  143777. procedure TJSWindow._Setonreset(const aValue : TEventHandler);
  143778. begin
  143779. WriteJSPropertyMethod('onreset',TMethod(aValue));
  143780. end;
  143781. procedure TJSWindow._Setonresize(const aValue : TEventHandler);
  143782. begin
  143783. WriteJSPropertyMethod('onresize',TMethod(aValue));
  143784. end;
  143785. procedure TJSWindow._Setonscroll(const aValue : TEventHandler);
  143786. begin
  143787. WriteJSPropertyMethod('onscroll',TMethod(aValue));
  143788. end;
  143789. procedure TJSWindow._Setonscrollend(const aValue : TEventHandler);
  143790. begin
  143791. WriteJSPropertyMethod('onscrollend',TMethod(aValue));
  143792. end;
  143793. procedure TJSWindow._Setonsecuritypolicyviolation(const aValue : TEventHandler);
  143794. begin
  143795. WriteJSPropertyMethod('onsecuritypolicyviolation',TMethod(aValue));
  143796. end;
  143797. procedure TJSWindow._Setonseeked(const aValue : TEventHandler);
  143798. begin
  143799. WriteJSPropertyMethod('onseeked',TMethod(aValue));
  143800. end;
  143801. procedure TJSWindow._Setonseeking(const aValue : TEventHandler);
  143802. begin
  143803. WriteJSPropertyMethod('onseeking',TMethod(aValue));
  143804. end;
  143805. procedure TJSWindow._Setonselect(const aValue : TEventHandler);
  143806. begin
  143807. WriteJSPropertyMethod('onselect',TMethod(aValue));
  143808. end;
  143809. procedure TJSWindow._Setonslotchange(const aValue : TEventHandler);
  143810. begin
  143811. WriteJSPropertyMethod('onslotchange',TMethod(aValue));
  143812. end;
  143813. procedure TJSWindow._Setonstalled(const aValue : TEventHandler);
  143814. begin
  143815. WriteJSPropertyMethod('onstalled',TMethod(aValue));
  143816. end;
  143817. procedure TJSWindow._Setonsubmit(const aValue : TEventHandler);
  143818. begin
  143819. WriteJSPropertyMethod('onsubmit',TMethod(aValue));
  143820. end;
  143821. procedure TJSWindow._Setonsuspend(const aValue : TEventHandler);
  143822. begin
  143823. WriteJSPropertyMethod('onsuspend',TMethod(aValue));
  143824. end;
  143825. procedure TJSWindow._Setontimeupdate(const aValue : TEventHandler);
  143826. begin
  143827. WriteJSPropertyMethod('ontimeupdate',TMethod(aValue));
  143828. end;
  143829. procedure TJSWindow._Setonvolumechange(const aValue : TEventHandler);
  143830. begin
  143831. WriteJSPropertyMethod('onvolumechange',TMethod(aValue));
  143832. end;
  143833. procedure TJSWindow._Setonwaiting(const aValue : TEventHandler);
  143834. begin
  143835. WriteJSPropertyMethod('onwaiting',TMethod(aValue));
  143836. end;
  143837. procedure TJSWindow._Setonselectstart(const aValue : TEventHandler);
  143838. begin
  143839. WriteJSPropertyMethod('onselectstart',TMethod(aValue));
  143840. end;
  143841. procedure TJSWindow._Setonselectionchange(const aValue : TEventHandler);
  143842. begin
  143843. WriteJSPropertyMethod('onselectionchange',TMethod(aValue));
  143844. end;
  143845. procedure TJSWindow._Setontoggle(const aValue : TEventHandler);
  143846. begin
  143847. WriteJSPropertyMethod('ontoggle',TMethod(aValue));
  143848. end;
  143849. procedure TJSWindow._Setonpointercancel(const aValue : TEventHandler);
  143850. begin
  143851. WriteJSPropertyMethod('onpointercancel',TMethod(aValue));
  143852. end;
  143853. procedure TJSWindow._Setonpointerdown(const aValue : TEventHandler);
  143854. begin
  143855. WriteJSPropertyMethod('onpointerdown',TMethod(aValue));
  143856. end;
  143857. procedure TJSWindow._Setonpointerup(const aValue : TEventHandler);
  143858. begin
  143859. WriteJSPropertyMethod('onpointerup',TMethod(aValue));
  143860. end;
  143861. procedure TJSWindow._Setonpointermove(const aValue : TEventHandler);
  143862. begin
  143863. WriteJSPropertyMethod('onpointermove',TMethod(aValue));
  143864. end;
  143865. procedure TJSWindow._Setonpointerout(const aValue : TEventHandler);
  143866. begin
  143867. WriteJSPropertyMethod('onpointerout',TMethod(aValue));
  143868. end;
  143869. procedure TJSWindow._Setonpointerover(const aValue : TEventHandler);
  143870. begin
  143871. WriteJSPropertyMethod('onpointerover',TMethod(aValue));
  143872. end;
  143873. procedure TJSWindow._Setonpointerenter(const aValue : TEventHandler);
  143874. begin
  143875. WriteJSPropertyMethod('onpointerenter',TMethod(aValue));
  143876. end;
  143877. procedure TJSWindow._Setonpointerleave(const aValue : TEventHandler);
  143878. begin
  143879. WriteJSPropertyMethod('onpointerleave',TMethod(aValue));
  143880. end;
  143881. procedure TJSWindow._Setongotpointercapture(const aValue : TEventHandler);
  143882. begin
  143883. WriteJSPropertyMethod('ongotpointercapture',TMethod(aValue));
  143884. end;
  143885. procedure TJSWindow._Setonlostpointercapture(const aValue : TEventHandler);
  143886. begin
  143887. WriteJSPropertyMethod('onlostpointercapture',TMethod(aValue));
  143888. end;
  143889. procedure TJSWindow._Setonmozfullscreenchange(const aValue : TEventHandler);
  143890. begin
  143891. WriteJSPropertyMethod('onmozfullscreenchange',TMethod(aValue));
  143892. end;
  143893. procedure TJSWindow._Setonmozfullscreenerror(const aValue : TEventHandler);
  143894. begin
  143895. WriteJSPropertyMethod('onmozfullscreenerror',TMethod(aValue));
  143896. end;
  143897. procedure TJSWindow._Setonanimationcancel(const aValue : TEventHandler);
  143898. begin
  143899. WriteJSPropertyMethod('onanimationcancel',TMethod(aValue));
  143900. end;
  143901. procedure TJSWindow._Setonanimationend(const aValue : TEventHandler);
  143902. begin
  143903. WriteJSPropertyMethod('onanimationend',TMethod(aValue));
  143904. end;
  143905. procedure TJSWindow._Setonanimationiteration(const aValue : TEventHandler);
  143906. begin
  143907. WriteJSPropertyMethod('onanimationiteration',TMethod(aValue));
  143908. end;
  143909. procedure TJSWindow._Setonanimationstart(const aValue : TEventHandler);
  143910. begin
  143911. WriteJSPropertyMethod('onanimationstart',TMethod(aValue));
  143912. end;
  143913. procedure TJSWindow._Setontransitioncancel(const aValue : TEventHandler);
  143914. begin
  143915. WriteJSPropertyMethod('ontransitioncancel',TMethod(aValue));
  143916. end;
  143917. procedure TJSWindow._Setontransitionend(const aValue : TEventHandler);
  143918. begin
  143919. WriteJSPropertyMethod('ontransitionend',TMethod(aValue));
  143920. end;
  143921. procedure TJSWindow._Setontransitionrun(const aValue : TEventHandler);
  143922. begin
  143923. WriteJSPropertyMethod('ontransitionrun',TMethod(aValue));
  143924. end;
  143925. procedure TJSWindow._Setontransitionstart(const aValue : TEventHandler);
  143926. begin
  143927. WriteJSPropertyMethod('ontransitionstart',TMethod(aValue));
  143928. end;
  143929. procedure TJSWindow._Setonwebkitanimationend(const aValue : TEventHandler);
  143930. begin
  143931. WriteJSPropertyMethod('onwebkitanimationend',TMethod(aValue));
  143932. end;
  143933. procedure TJSWindow._Setonwebkitanimationiteration(const aValue : TEventHandler);
  143934. begin
  143935. WriteJSPropertyMethod('onwebkitanimationiteration',TMethod(aValue));
  143936. end;
  143937. procedure TJSWindow._Setonwebkitanimationstart(const aValue : TEventHandler);
  143938. begin
  143939. WriteJSPropertyMethod('onwebkitanimationstart',TMethod(aValue));
  143940. end;
  143941. procedure TJSWindow._Setonwebkittransitionend(const aValue : TEventHandler);
  143942. begin
  143943. WriteJSPropertyMethod('onwebkittransitionend',TMethod(aValue));
  143944. end;
  143945. procedure TJSWindow._Setonafterprint(const aValue : TEventHandler);
  143946. begin
  143947. WriteJSPropertyMethod('onafterprint',TMethod(aValue));
  143948. end;
  143949. procedure TJSWindow._Setonbeforeprint(const aValue : TEventHandler);
  143950. begin
  143951. WriteJSPropertyMethod('onbeforeprint',TMethod(aValue));
  143952. end;
  143953. procedure TJSWindow._Setonbeforeunload(const aValue : TOnBeforeUnloadEventHandler);
  143954. begin
  143955. WriteJSPropertyMethod('onbeforeunload',TMethod(aValue));
  143956. end;
  143957. procedure TJSWindow._Setonhashchange(const aValue : TEventHandler);
  143958. begin
  143959. WriteJSPropertyMethod('onhashchange',TMethod(aValue));
  143960. end;
  143961. procedure TJSWindow._Setonlanguagechange(const aValue : TEventHandler);
  143962. begin
  143963. WriteJSPropertyMethod('onlanguagechange',TMethod(aValue));
  143964. end;
  143965. procedure TJSWindow._Setonmessage(const aValue : TEventHandler);
  143966. begin
  143967. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  143968. end;
  143969. procedure TJSWindow._Setonmessageerror(const aValue : TEventHandler);
  143970. begin
  143971. WriteJSPropertyMethod('onmessageerror',TMethod(aValue));
  143972. end;
  143973. procedure TJSWindow._Setonoffline(const aValue : TEventHandler);
  143974. begin
  143975. WriteJSPropertyMethod('onoffline',TMethod(aValue));
  143976. end;
  143977. procedure TJSWindow._Setononline(const aValue : TEventHandler);
  143978. begin
  143979. WriteJSPropertyMethod('ononline',TMethod(aValue));
  143980. end;
  143981. procedure TJSWindow._Setonpagehide(const aValue : TEventHandler);
  143982. begin
  143983. WriteJSPropertyMethod('onpagehide',TMethod(aValue));
  143984. end;
  143985. procedure TJSWindow._Setonpageshow(const aValue : TEventHandler);
  143986. begin
  143987. WriteJSPropertyMethod('onpageshow',TMethod(aValue));
  143988. end;
  143989. procedure TJSWindow._Setonpopstate(const aValue : TEventHandler);
  143990. begin
  143991. WriteJSPropertyMethod('onpopstate',TMethod(aValue));
  143992. end;
  143993. procedure TJSWindow._Setonrejectionhandled(const aValue : TEventHandler);
  143994. begin
  143995. WriteJSPropertyMethod('onrejectionhandled',TMethod(aValue));
  143996. end;
  143997. procedure TJSWindow._Setonstorage(const aValue : TEventHandler);
  143998. begin
  143999. WriteJSPropertyMethod('onstorage',TMethod(aValue));
  144000. end;
  144001. procedure TJSWindow._Setonunhandledrejection(const aValue : TEventHandler);
  144002. begin
  144003. WriteJSPropertyMethod('onunhandledrejection',TMethod(aValue));
  144004. end;
  144005. procedure TJSWindow._Setonunload(const aValue : TEventHandler);
  144006. begin
  144007. WriteJSPropertyMethod('onunload',TMethod(aValue));
  144008. end;
  144009. procedure TJSWindow._Setongamepadconnected(const aValue : TEventHandler);
  144010. begin
  144011. WriteJSPropertyMethod('ongamepadconnected',TMethod(aValue));
  144012. end;
  144013. procedure TJSWindow._Setongamepaddisconnected(const aValue : TEventHandler);
  144014. begin
  144015. WriteJSPropertyMethod('ongamepaddisconnected',TMethod(aValue));
  144016. end;
  144017. procedure TJSWindow._Setontouchstart(const aValue : TEventHandler);
  144018. begin
  144019. WriteJSPropertyMethod('ontouchstart',TMethod(aValue));
  144020. end;
  144021. procedure TJSWindow._Setontouchend(const aValue : TEventHandler);
  144022. begin
  144023. WriteJSPropertyMethod('ontouchend',TMethod(aValue));
  144024. end;
  144025. procedure TJSWindow._Setontouchmove(const aValue : TEventHandler);
  144026. begin
  144027. WriteJSPropertyMethod('ontouchmove',TMethod(aValue));
  144028. end;
  144029. procedure TJSWindow._Setontouchcancel(const aValue : TEventHandler);
  144030. begin
  144031. WriteJSPropertyMethod('ontouchcancel',TMethod(aValue));
  144032. end;
  144033. procedure TJSWindow._Setonerror(const aValue : TOnErrorEventHandler);
  144034. begin
  144035. WriteJSPropertyMethod('onerror',TMethod(aValue));
  144036. end;
  144037. procedure TJSWindow.close;
  144038. begin
  144039. InvokeJSNoResult('close',[]);
  144040. end;
  144041. procedure TJSWindow.stop;
  144042. begin
  144043. InvokeJSNoResult('stop',[]);
  144044. end;
  144045. procedure TJSWindow.focus;
  144046. begin
  144047. InvokeJSNoResult('focus',[]);
  144048. end;
  144049. procedure TJSWindow.blur;
  144050. begin
  144051. InvokeJSNoResult('blur',[]);
  144052. end;
  144053. function TJSWindow.open(const aUrl: UnicodeString; const aTarget: UnicodeString; const aFeatures: UnicodeString): IJSWindowProxy;
  144054. begin
  144055. Result:=InvokeJSObjectResult('open',[aUrl,aTarget,aFeatures],TJSWindowProxy) as IJSWindowProxy;
  144056. end;
  144057. function TJSWindow.open: IJSWindowProxy;
  144058. begin
  144059. Result:=InvokeJSObjectResult('open',[],TJSWindowProxy) as IJSWindowProxy;
  144060. end;
  144061. function TJSWindow.open(const aUrl: UnicodeString): IJSWindowProxy;
  144062. begin
  144063. Result:=InvokeJSObjectResult('open',[aUrl],TJSWindowProxy) as IJSWindowProxy;
  144064. end;
  144065. function TJSWindow.open(const aUrl: UnicodeString; const aTarget: UnicodeString): IJSWindowProxy;
  144066. begin
  144067. Result:=InvokeJSObjectResult('open',[aUrl,aTarget],TJSWindowProxy) as IJSWindowProxy;
  144068. end;
  144069. function TJSWindow.GetDefault(const aName: UnicodeString): IJSObject;
  144070. begin
  144071. Result:=InvokeJSObjectResult('',[aName],TJSObject) as IJSObject;
  144072. end;
  144073. procedure TJSWindow.alert;
  144074. begin
  144075. InvokeJSNoResult('alert',[]);
  144076. end;
  144077. procedure TJSWindow.alert(const aMessage: UnicodeString);
  144078. begin
  144079. InvokeJSNoResult('alert',[aMessage]);
  144080. end;
  144081. function TJSWindow.confirm(const aMessage: UnicodeString): Boolean;
  144082. begin
  144083. Result:=InvokeJSBooleanResult('confirm',[aMessage]);
  144084. end;
  144085. function TJSWindow.confirm: Boolean;
  144086. begin
  144087. Result:=InvokeJSBooleanResult('confirm',[]);
  144088. end;
  144089. function TJSWindow.prompt(const aMessage: UnicodeString; const aDefault: UnicodeString): UnicodeString;
  144090. begin
  144091. Result:=InvokeJSUnicodeStringResult('prompt',[aMessage,aDefault]);
  144092. end;
  144093. function TJSWindow.prompt: UnicodeString;
  144094. begin
  144095. Result:=InvokeJSUnicodeStringResult('prompt',[]);
  144096. end;
  144097. function TJSWindow.prompt(const aMessage: UnicodeString): UnicodeString;
  144098. begin
  144099. Result:=InvokeJSUnicodeStringResult('prompt',[aMessage]);
  144100. end;
  144101. procedure TJSWindow.print;
  144102. begin
  144103. InvokeJSNoResult('print',[]);
  144104. end;
  144105. procedure TJSWindow.postMessage(const aMessage: Variant; const aTargetOrigin: UnicodeString; const aTransfer: TIJSObjectDynArray);
  144106. begin
  144107. InvokeJSNoResult('postMessage',[aMessage,aTargetOrigin,aTransfer]);
  144108. end;
  144109. procedure TJSWindow.postMessage(const aMessage: Variant; const aTargetOrigin: UnicodeString);
  144110. begin
  144111. InvokeJSNoResult('postMessage',[aMessage,aTargetOrigin]);
  144112. end;
  144113. procedure TJSWindow.postMessage(const aMessage: Variant; const aOptions: TJSWindowPostMessageOptions);
  144114. begin
  144115. InvokeJSNoResult('postMessage',[aMessage,aOptions]);
  144116. end;
  144117. procedure TJSWindow.postMessage(const aMessage: Variant);
  144118. begin
  144119. InvokeJSNoResult('postMessage',[aMessage]);
  144120. end;
  144121. procedure TJSWindow.captureEvents;
  144122. begin
  144123. InvokeJSNoResult('captureEvents',[]);
  144124. end;
  144125. procedure TJSWindow.releaseEvents;
  144126. begin
  144127. InvokeJSNoResult('releaseEvents',[]);
  144128. end;
  144129. function TJSWindow.getSelection: IJSSelection;
  144130. begin
  144131. Result:=InvokeJSObjectResult('getSelection',[],TJSSelection) as IJSSelection;
  144132. end;
  144133. function TJSWindow.getComputedStyle(aElt: IJSElement; const aPseudoElt: UnicodeString): IJSCSSStyleDeclaration;
  144134. begin
  144135. Result:=InvokeJSObjectResult('getComputedStyle',[aElt,aPseudoElt],TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  144136. end;
  144137. function TJSWindow.getComputedStyle(aElt: IJSElement): IJSCSSStyleDeclaration;
  144138. begin
  144139. Result:=InvokeJSObjectResult('getComputedStyle',[aElt],TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  144140. end;
  144141. function TJSWindow.matchMedia(const aQuery: UTF8String): IJSMediaQueryList;
  144142. begin
  144143. Result:=InvokeJSObjectResult('matchMedia',[aQuery],TJSMediaQueryList) as IJSMediaQueryList;
  144144. end;
  144145. procedure TJSWindow.moveTo(aX: LongInt; aY: LongInt);
  144146. begin
  144147. InvokeJSNoResult('moveTo',[aX,aY]);
  144148. end;
  144149. procedure TJSWindow.moveBy(aX: LongInt; aY: LongInt);
  144150. begin
  144151. InvokeJSNoResult('moveBy',[aX,aY]);
  144152. end;
  144153. procedure TJSWindow.resizeTo(aX: LongInt; aY: LongInt);
  144154. begin
  144155. InvokeJSNoResult('resizeTo',[aX,aY]);
  144156. end;
  144157. procedure TJSWindow.resizeBy(aX: LongInt; aY: LongInt);
  144158. begin
  144159. InvokeJSNoResult('resizeBy',[aX,aY]);
  144160. end;
  144161. procedure TJSWindow.scroll(aX: Double; aY: Double);
  144162. begin
  144163. InvokeJSNoResult('scroll',[aX,aY]);
  144164. end;
  144165. procedure TJSWindow.scroll(const aOptions: TJSScrollToOptions);
  144166. begin
  144167. InvokeJSNoResult('scroll',[aOptions]);
  144168. end;
  144169. procedure TJSWindow.scroll;
  144170. begin
  144171. InvokeJSNoResult('scroll',[]);
  144172. end;
  144173. procedure TJSWindow.scrollTo(aX: Double; aY: Double);
  144174. begin
  144175. InvokeJSNoResult('scrollTo',[aX,aY]);
  144176. end;
  144177. procedure TJSWindow.scrollTo(const aOptions: TJSScrollToOptions);
  144178. begin
  144179. InvokeJSNoResult('scrollTo',[aOptions]);
  144180. end;
  144181. procedure TJSWindow.scrollTo;
  144182. begin
  144183. InvokeJSNoResult('scrollTo',[]);
  144184. end;
  144185. procedure TJSWindow.scrollBy(aX: Double; aY: Double);
  144186. begin
  144187. InvokeJSNoResult('scrollBy',[aX,aY]);
  144188. end;
  144189. procedure TJSWindow.scrollBy(const aOptions: TJSScrollToOptions);
  144190. begin
  144191. InvokeJSNoResult('scrollBy',[aOptions]);
  144192. end;
  144193. procedure TJSWindow.scrollBy;
  144194. begin
  144195. InvokeJSNoResult('scrollBy',[]);
  144196. end;
  144197. function TJSWindow.getDefaultComputedStyle(aElt: IJSElement; const aPseudoElt: UnicodeString): IJSCSSStyleDeclaration;
  144198. begin
  144199. Result:=InvokeJSObjectResult('getDefaultComputedStyle',[aElt,aPseudoElt],TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  144200. end;
  144201. function TJSWindow.getDefaultComputedStyle(aElt: IJSElement): IJSCSSStyleDeclaration;
  144202. begin
  144203. Result:=InvokeJSObjectResult('getDefaultComputedStyle',[aElt],TJSCSSStyleDeclaration) as IJSCSSStyleDeclaration;
  144204. end;
  144205. procedure TJSWindow.scrollByLines(aNumLines: LongInt; const aOptions: TJSScrollOptions);
  144206. begin
  144207. InvokeJSNoResult('scrollByLines',[aNumLines,aOptions]);
  144208. end;
  144209. procedure TJSWindow.scrollByLines(aNumLines: LongInt);
  144210. begin
  144211. InvokeJSNoResult('scrollByLines',[aNumLines]);
  144212. end;
  144213. procedure TJSWindow.scrollByPages(aNumPages: LongInt; const aOptions: TJSScrollOptions);
  144214. begin
  144215. InvokeJSNoResult('scrollByPages',[aNumPages,aOptions]);
  144216. end;
  144217. procedure TJSWindow.scrollByPages(aNumPages: LongInt);
  144218. begin
  144219. InvokeJSNoResult('scrollByPages',[aNumPages]);
  144220. end;
  144221. procedure TJSWindow.sizeToContent;
  144222. begin
  144223. InvokeJSNoResult('sizeToContent',[]);
  144224. end;
  144225. procedure TJSWindow.updateCommands(const aAction: UnicodeString);
  144226. begin
  144227. InvokeJSNoResult('updateCommands',[aAction]);
  144228. end;
  144229. function TJSWindow.find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean; aWholeWord: Boolean; aSearchInFrames: Boolean; aShowDialog: Boolean): Boolean;
  144230. begin
  144231. Result:=InvokeJSBooleanResult('find',[aStr,aCaseSensitive,aBackwards,aWrapAround,aWholeWord,aSearchInFrames,aShowDialog]);
  144232. end;
  144233. function TJSWindow.find: Boolean;
  144234. begin
  144235. Result:=InvokeJSBooleanResult('find',[]);
  144236. end;
  144237. function TJSWindow.find(const aStr: UnicodeString): Boolean;
  144238. begin
  144239. Result:=InvokeJSBooleanResult('find',[aStr]);
  144240. end;
  144241. function TJSWindow.find(const aStr: UnicodeString; aCaseSensitive: Boolean): Boolean;
  144242. begin
  144243. Result:=InvokeJSBooleanResult('find',[aStr,aCaseSensitive]);
  144244. end;
  144245. function TJSWindow.find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean): Boolean;
  144246. begin
  144247. Result:=InvokeJSBooleanResult('find',[aStr,aCaseSensitive,aBackwards]);
  144248. end;
  144249. function TJSWindow.find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean): Boolean;
  144250. begin
  144251. Result:=InvokeJSBooleanResult('find',[aStr,aCaseSensitive,aBackwards,aWrapAround]);
  144252. end;
  144253. function TJSWindow.find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean; aWholeWord: Boolean): Boolean;
  144254. begin
  144255. Result:=InvokeJSBooleanResult('find',[aStr,aCaseSensitive,aBackwards,aWrapAround,aWholeWord]);
  144256. end;
  144257. function TJSWindow.find(const aStr: UnicodeString; aCaseSensitive: Boolean; aBackwards: Boolean; aWrapAround: Boolean; aWholeWord: Boolean; aSearchInFrames: Boolean): Boolean;
  144258. begin
  144259. Result:=InvokeJSBooleanResult('find',[aStr,aCaseSensitive,aBackwards,aWrapAround,aWholeWord,aSearchInFrames]);
  144260. end;
  144261. procedure TJSWindow.dump(const aStr: UnicodeString);
  144262. begin
  144263. InvokeJSNoResult('dump',[aStr]);
  144264. end;
  144265. procedure TJSWindow.setResizable(aResizable: Boolean);
  144266. begin
  144267. InvokeJSNoResult('setResizable',[aResizable]);
  144268. end;
  144269. procedure TJSWindow.getAttention;
  144270. begin
  144271. InvokeJSNoResult('getAttention',[]);
  144272. end;
  144273. procedure TJSWindow.getAttentionWithCycleCount(aACycleCount: LongInt);
  144274. begin
  144275. InvokeJSNoResult('getAttentionWithCycleCount',[aACycleCount]);
  144276. end;
  144277. procedure TJSWindow.setCursor(const aCursor: UTF8String);
  144278. begin
  144279. InvokeJSNoResult('setCursor',[aCursor]);
  144280. end;
  144281. procedure TJSWindow.maximize;
  144282. begin
  144283. InvokeJSNoResult('maximize',[]);
  144284. end;
  144285. procedure TJSWindow.minimize;
  144286. begin
  144287. InvokeJSNoResult('minimize',[]);
  144288. end;
  144289. procedure TJSWindow.restore;
  144290. begin
  144291. InvokeJSNoResult('restore',[]);
  144292. end;
  144293. function TJSWindow.getWorkspaceID: UnicodeString;
  144294. begin
  144295. Result:=InvokeJSUnicodeStringResult('getWorkspaceID',[]);
  144296. end;
  144297. procedure TJSWindow.moveToWorkspace(const aWorkspaceID: UnicodeString);
  144298. begin
  144299. InvokeJSNoResult('moveToWorkspace',[aWorkspaceID]);
  144300. end;
  144301. procedure TJSWindow.notifyDefaultButtonLoaded(aDefaultButton: IJSElement);
  144302. begin
  144303. InvokeJSNoResult('notifyDefaultButtonLoaded',[aDefaultButton]);
  144304. end;
  144305. function TJSWindow.promiseDocumentFlushed(const aCallback: TPromiseDocumentFlushedCallback): IJSPromise; // Promise<any>
  144306. var
  144307. m: TJOB_Method;
  144308. begin
  144309. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallPromiseDocumentFlushedCallback);
  144310. try
  144311. Result:=InvokeJSObjectResult('promiseDocumentFlushed',[m],TJSPromise) as IJSPromise;
  144312. finally
  144313. m.free;
  144314. end;
  144315. end;
  144316. function TJSWindow.requestIdleCallback(const aCallback: TIdleRequestCallback; const aOptions: TJSIdleRequestOptions): Cardinal;
  144317. var
  144318. m: TJOB_Method;
  144319. begin
  144320. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallIdleRequestCallback);
  144321. try
  144322. Result:=InvokeJSLongIntResult('requestIdleCallback',[m,aOptions]);
  144323. finally
  144324. m.free;
  144325. end;
  144326. end;
  144327. function TJSWindow.requestIdleCallback(const aCallback: TIdleRequestCallback): Cardinal;
  144328. var
  144329. m: TJOB_Method;
  144330. begin
  144331. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallIdleRequestCallback);
  144332. try
  144333. Result:=InvokeJSLongIntResult('requestIdleCallback',[m]);
  144334. finally
  144335. m.free;
  144336. end;
  144337. end;
  144338. procedure TJSWindow.cancelIdleCallback(aHandle: Cardinal);
  144339. begin
  144340. InvokeJSNoResult('cancelIdleCallback',[aHandle]);
  144341. end;
  144342. function TJSWindow.getRegionalPrefsLocales: TUnicodeStringDynArray;
  144343. begin
  144344. Result:=InvokeJSObjectResult('getRegionalPrefsLocales',[],TJSArray) as TUnicodeStringDynArray;
  144345. end;
  144346. function TJSWindow.getWebExposedLocales: TUnicodeStringDynArray;
  144347. begin
  144348. Result:=InvokeJSObjectResult('getWebExposedLocales',[],TJSArray) as TUnicodeStringDynArray;
  144349. end;
  144350. function TJSWindow.requestAnimationFrame(const aCallback: TFrameRequestCallback): LongInt;
  144351. var
  144352. m: TJOB_Method;
  144353. begin
  144354. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallFrameRequestCallback);
  144355. try
  144356. Result:=InvokeJSLongIntResult('requestAnimationFrame',[m]);
  144357. finally
  144358. m.free;
  144359. end;
  144360. end;
  144361. procedure TJSWindow.cancelAnimationFrame(aHandle: LongInt);
  144362. begin
  144363. InvokeJSNoResult('cancelAnimationFrame',[aHandle]);
  144364. end;
  144365. procedure TJSWindow.reportError(const aE: Variant);
  144366. begin
  144367. InvokeJSNoResult('reportError',[aE]);
  144368. end;
  144369. function TJSWindow.btoa(const aBtoa: UnicodeString): UnicodeString;
  144370. begin
  144371. Result:=InvokeJSUnicodeStringResult('btoa',[aBtoa]);
  144372. end;
  144373. function TJSWindow.atob(const aAtob: UnicodeString): UnicodeString;
  144374. begin
  144375. Result:=InvokeJSUnicodeStringResult('atob',[aAtob]);
  144376. end;
  144377. function TJSWindow.setTimeout(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  144378. var
  144379. m: TJOB_Method;
  144380. begin
  144381. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  144382. try
  144383. Result:=InvokeJSLongIntResult('setTimeout',[m,aTimeout,aArguments]);
  144384. finally
  144385. m.free;
  144386. end;
  144387. end;
  144388. function TJSWindow.setTimeout(const aHandler: TFunction): LongInt{; ToDo:varargs};
  144389. var
  144390. m: TJOB_Method;
  144391. begin
  144392. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  144393. try
  144394. Result:=InvokeJSLongIntResult('setTimeout',[m]);
  144395. finally
  144396. m.free;
  144397. end;
  144398. end;
  144399. function TJSWindow.setTimeout(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  144400. begin
  144401. Result:=InvokeJSLongIntResult('setTimeout',[aHandler,aTimeout,aUnused]);
  144402. end;
  144403. function TJSWindow.setTimeout(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  144404. begin
  144405. Result:=InvokeJSLongIntResult('setTimeout',[aHandler]);
  144406. end;
  144407. procedure TJSWindow.clearTimeout(aHandle: LongInt);
  144408. begin
  144409. InvokeJSNoResult('clearTimeout',[aHandle]);
  144410. end;
  144411. procedure TJSWindow.clearTimeout;
  144412. begin
  144413. InvokeJSNoResult('clearTimeout',[]);
  144414. end;
  144415. function TJSWindow.setInterval(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  144416. var
  144417. m: TJOB_Method;
  144418. begin
  144419. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  144420. try
  144421. Result:=InvokeJSLongIntResult('setInterval',[m,aTimeout,aArguments]);
  144422. finally
  144423. m.free;
  144424. end;
  144425. end;
  144426. function TJSWindow.setInterval(const aHandler: TFunction): LongInt{; ToDo:varargs};
  144427. var
  144428. m: TJOB_Method;
  144429. begin
  144430. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  144431. try
  144432. Result:=InvokeJSLongIntResult('setInterval',[m]);
  144433. finally
  144434. m.free;
  144435. end;
  144436. end;
  144437. function TJSWindow.setInterval(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  144438. begin
  144439. Result:=InvokeJSLongIntResult('setInterval',[aHandler,aTimeout,aUnused]);
  144440. end;
  144441. function TJSWindow.setInterval(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  144442. begin
  144443. Result:=InvokeJSLongIntResult('setInterval',[aHandler]);
  144444. end;
  144445. procedure TJSWindow.clearInterval(aHandle: LongInt);
  144446. begin
  144447. InvokeJSNoResult('clearInterval',[aHandle]);
  144448. end;
  144449. procedure TJSWindow.clearInterval;
  144450. begin
  144451. InvokeJSNoResult('clearInterval',[]);
  144452. end;
  144453. procedure TJSWindow.queueMicrotask(const aCallback: TVoidFunction);
  144454. var
  144455. m: TJOB_Method;
  144456. begin
  144457. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallVoidFunction);
  144458. try
  144459. InvokeJSNoResult('queueMicrotask',[m]);
  144460. finally
  144461. m.free;
  144462. end;
  144463. end;
  144464. function TJSWindow.createImageBitmap(aAImage: IJSBlob; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144465. begin
  144466. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  144467. end;
  144468. function TJSWindow.createImageBitmap(const aAImage: TCanvasImageSource; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144469. begin
  144470. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  144471. end;
  144472. function TJSWindow.createImageBitmap(aAImage: IJSCanvasRenderingContext2D; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144473. begin
  144474. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  144475. end;
  144476. function TJSWindow.createImageBitmap(aAImage: IJSImageData; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144477. begin
  144478. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  144479. end;
  144480. function TJSWindow.createImageBitmap(aAImage: IJSImageData): IJSPromise; // Promise<ImageBitmap>
  144481. begin
  144482. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  144483. end;
  144484. function TJSWindow.createImageBitmap(aAImage: IJSCanvasRenderingContext2D): IJSPromise; // Promise<ImageBitmap>
  144485. begin
  144486. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  144487. end;
  144488. function TJSWindow.createImageBitmap(const aAImage: TCanvasImageSource): IJSPromise; // Promise<ImageBitmap>
  144489. begin
  144490. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  144491. end;
  144492. function TJSWindow.createImageBitmap(aAImage: IJSBlob): IJSPromise; // Promise<ImageBitmap>
  144493. begin
  144494. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  144495. end;
  144496. function TJSWindow.createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144497. begin
  144498. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  144499. end;
  144500. function TJSWindow.createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144501. begin
  144502. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  144503. end;
  144504. function TJSWindow.createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144505. begin
  144506. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  144507. end;
  144508. function TJSWindow.createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144509. begin
  144510. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  144511. end;
  144512. function TJSWindow.createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  144513. begin
  144514. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  144515. end;
  144516. function TJSWindow.createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  144517. begin
  144518. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  144519. end;
  144520. function TJSWindow.createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  144521. begin
  144522. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  144523. end;
  144524. function TJSWindow.createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  144525. begin
  144526. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  144527. end;
  144528. function TJSWindow.structuredClone(const aValue: Variant; const aOptions: TJSStructuredSerializeOptions): Variant;
  144529. begin
  144530. Result:=InvokeJSVariantResult('structuredClone',[aValue,aOptions]);
  144531. end;
  144532. function TJSWindow.structuredClone(const aValue: Variant): Variant;
  144533. begin
  144534. Result:=InvokeJSVariantResult('structuredClone',[aValue]);
  144535. end;
  144536. function TJSWindow.fetch(aInput: IJSRequest; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  144537. begin
  144538. Result:=InvokeJSObjectResult('fetch',[aInput,aInit],TJSPromise) as IJSPromise;
  144539. end;
  144540. function TJSWindow.fetch(const aInput: UnicodeString; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  144541. begin
  144542. Result:=InvokeJSObjectResult('fetch',[aInput,aInit],TJSPromise) as IJSPromise;
  144543. end;
  144544. function TJSWindow.fetch(const aInput: UnicodeString): IJSPromise; // Promise<Response>
  144545. begin
  144546. Result:=InvokeJSObjectResult('fetch',[aInput],TJSPromise) as IJSPromise;
  144547. end;
  144548. function TJSWindow.fetch(aInput: IJSRequest): IJSPromise; // Promise<Response>
  144549. begin
  144550. Result:=InvokeJSObjectResult('fetch',[aInput],TJSPromise) as IJSPromise;
  144551. end;
  144552. class function TJSWindow.JSClassName: UnicodeString;
  144553. begin
  144554. Result:='Window';
  144555. end;
  144556. class function TJSWindow.Cast(const Intf: IJSObject): IJSWindow;
  144557. begin
  144558. Result:=TJSWindow.JOBCast(Intf);
  144559. end;
  144560. function TJSWindowSessionStorage._GetsessionStorage: IJSStorage;
  144561. begin
  144562. Result:=ReadJSPropertyObject('sessionStorage',TJSStorage) as IJSStorage;
  144563. end;
  144564. class function TJSWindowSessionStorage.JSClassName: UnicodeString;
  144565. begin
  144566. Result:='WindowSessionStorage';
  144567. end;
  144568. class function TJSWindowSessionStorage.Cast(const Intf: IJSObject): IJSWindowSessionStorage;
  144569. begin
  144570. Result:=TJSWindowSessionStorage.JOBCast(Intf);
  144571. end;
  144572. function TJSWindowLocalStorage._GetlocalStorage: IJSStorage;
  144573. begin
  144574. Result:=ReadJSPropertyObject('localStorage',TJSStorage) as IJSStorage;
  144575. end;
  144576. class function TJSWindowLocalStorage.JSClassName: UnicodeString;
  144577. begin
  144578. Result:='WindowLocalStorage';
  144579. end;
  144580. class function TJSWindowLocalStorage.Cast(const Intf: IJSObject): IJSWindowLocalStorage;
  144581. begin
  144582. Result:=TJSWindowLocalStorage.JOBCast(Intf);
  144583. end;
  144584. function TJSScrollOptions._Getbehavior: TScrollBehavior;
  144585. begin
  144586. Result:=ReadJSPropertyUnicodeString('behavior');
  144587. end;
  144588. procedure TJSScrollOptions._Setbehavior(const aValue : TScrollBehavior);
  144589. begin
  144590. WriteJSPropertyUnicodeString('behavior',aValue);
  144591. end;
  144592. class function TJSScrollOptions.JSClassName: UnicodeString;
  144593. begin
  144594. Result:='Object';
  144595. end;
  144596. class function TJSScrollOptions.Cast(const Intf: IJSObject): IJSScrollOptions;
  144597. begin
  144598. Result:=TJSScrollOptions.JOBCast(Intf);
  144599. end;
  144600. function TJSScrollToOptions._Getleft: Double;
  144601. begin
  144602. Result:=ReadJSPropertyDouble('left');
  144603. end;
  144604. function TJSScrollToOptions._Gettop: Double;
  144605. begin
  144606. Result:=ReadJSPropertyDouble('top');
  144607. end;
  144608. procedure TJSScrollToOptions._Setleft(const aValue : Double);
  144609. begin
  144610. WriteJSPropertyDouble('left',aValue);
  144611. end;
  144612. procedure TJSScrollToOptions._Settop(const aValue : Double);
  144613. begin
  144614. WriteJSPropertyDouble('top',aValue);
  144615. end;
  144616. class function TJSScrollToOptions.JSClassName: UnicodeString;
  144617. begin
  144618. Result:='Object';
  144619. end;
  144620. class function TJSScrollToOptions.Cast(const Intf: IJSObject): IJSScrollToOptions;
  144621. begin
  144622. Result:=TJSScrollToOptions.JOBCast(Intf);
  144623. end;
  144624. function TJSSizeToContentConstraints._GetmaxWidth: LongInt;
  144625. begin
  144626. Result:=ReadJSPropertyLongInt('maxWidth');
  144627. end;
  144628. function TJSSizeToContentConstraints._GetmaxHeight: LongInt;
  144629. begin
  144630. Result:=ReadJSPropertyLongInt('maxHeight');
  144631. end;
  144632. function TJSSizeToContentConstraints._GetprefWidth: LongInt;
  144633. begin
  144634. Result:=ReadJSPropertyLongInt('prefWidth');
  144635. end;
  144636. procedure TJSSizeToContentConstraints._SetmaxWidth(const aValue : LongInt);
  144637. begin
  144638. WriteJSPropertyLongInt('maxWidth',aValue);
  144639. end;
  144640. procedure TJSSizeToContentConstraints._SetmaxHeight(const aValue : LongInt);
  144641. begin
  144642. WriteJSPropertyLongInt('maxHeight',aValue);
  144643. end;
  144644. procedure TJSSizeToContentConstraints._SetprefWidth(const aValue : LongInt);
  144645. begin
  144646. WriteJSPropertyLongInt('prefWidth',aValue);
  144647. end;
  144648. class function TJSSizeToContentConstraints.JSClassName: UnicodeString;
  144649. begin
  144650. Result:='Object';
  144651. end;
  144652. class function TJSSizeToContentConstraints.Cast(const Intf: IJSObject): IJSSizeToContentConstraints;
  144653. begin
  144654. Result:=TJSSizeToContentConstraints.JOBCast(Intf);
  144655. end;
  144656. function TJSIdleRequestOptions._Gettimeout: Cardinal;
  144657. begin
  144658. Result:=ReadJSPropertyInt64('timeout');
  144659. end;
  144660. procedure TJSIdleRequestOptions._Settimeout(const aValue : Cardinal);
  144661. begin
  144662. WriteJSPropertyDouble('timeout',aValue);
  144663. end;
  144664. class function TJSIdleRequestOptions.JSClassName: UnicodeString;
  144665. begin
  144666. Result:='Object';
  144667. end;
  144668. class function TJSIdleRequestOptions.Cast(const Intf: IJSObject): IJSIdleRequestOptions;
  144669. begin
  144670. Result:=TJSIdleRequestOptions.JOBCast(Intf);
  144671. end;
  144672. function TJSWindowPostMessageOptions._GettargetOrigin: UnicodeString;
  144673. begin
  144674. Result:=ReadJSPropertyUnicodeString('targetOrigin');
  144675. end;
  144676. procedure TJSWindowPostMessageOptions._SettargetOrigin(const aValue : UnicodeString);
  144677. begin
  144678. WriteJSPropertyUnicodeString('targetOrigin',aValue);
  144679. end;
  144680. class function TJSWindowPostMessageOptions.JSClassName: UnicodeString;
  144681. begin
  144682. Result:='Object';
  144683. end;
  144684. class function TJSWindowPostMessageOptions.Cast(const Intf: IJSObject): IJSWindowPostMessageOptions;
  144685. begin
  144686. Result:=TJSWindowPostMessageOptions.JOBCast(Intf);
  144687. end;
  144688. function TJSWindowOrWorkerGlobalScope._Getorigin: UnicodeString;
  144689. begin
  144690. Result:=ReadJSPropertyUnicodeString('origin');
  144691. end;
  144692. function TJSWindowOrWorkerGlobalScope._GetcrossOriginIsolated: Boolean;
  144693. begin
  144694. Result:=ReadJSPropertyBoolean('crossOriginIsolated');
  144695. end;
  144696. function TJSWindowOrWorkerGlobalScope._GetisSecureContext: Boolean;
  144697. begin
  144698. Result:=ReadJSPropertyBoolean('isSecureContext');
  144699. end;
  144700. function TJSWindowOrWorkerGlobalScope._GetindexedDB: IJSIDBFactory;
  144701. begin
  144702. Result:=ReadJSPropertyObject('indexedDB',TJSIDBFactory) as IJSIDBFactory;
  144703. end;
  144704. function TJSWindowOrWorkerGlobalScope._Getcaches: IJSCacheStorage;
  144705. begin
  144706. Result:=ReadJSPropertyObject('caches',TJSCacheStorage) as IJSCacheStorage;
  144707. end;
  144708. function TJSWindowOrWorkerGlobalScope._Getscheduler: IJSScheduler;
  144709. begin
  144710. Result:=ReadJSPropertyObject('scheduler',TJSScheduler) as IJSScheduler;
  144711. end;
  144712. function TJSWindowOrWorkerGlobalScope._GettrustedTypes: IJSTrustedTypePolicyFactory;
  144713. begin
  144714. Result:=ReadJSPropertyObject('trustedTypes',TJSTrustedTypePolicyFactory) as IJSTrustedTypePolicyFactory;
  144715. end;
  144716. procedure TJSWindowOrWorkerGlobalScope.reportError(const aE: Variant);
  144717. begin
  144718. InvokeJSNoResult('reportError',[aE]);
  144719. end;
  144720. function TJSWindowOrWorkerGlobalScope.btoa(const aBtoa: UnicodeString): UnicodeString;
  144721. begin
  144722. Result:=InvokeJSUnicodeStringResult('btoa',[aBtoa]);
  144723. end;
  144724. function TJSWindowOrWorkerGlobalScope.atob(const aAtob: UnicodeString): UnicodeString;
  144725. begin
  144726. Result:=InvokeJSUnicodeStringResult('atob',[aAtob]);
  144727. end;
  144728. function TJSWindowOrWorkerGlobalScope.setTimeout(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  144729. var
  144730. m: TJOB_Method;
  144731. begin
  144732. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  144733. try
  144734. Result:=InvokeJSLongIntResult('setTimeout',[m,aTimeout,aArguments]);
  144735. finally
  144736. m.free;
  144737. end;
  144738. end;
  144739. function TJSWindowOrWorkerGlobalScope.setTimeout(const aHandler: TFunction): LongInt{; ToDo:varargs};
  144740. var
  144741. m: TJOB_Method;
  144742. begin
  144743. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  144744. try
  144745. Result:=InvokeJSLongIntResult('setTimeout',[m]);
  144746. finally
  144747. m.free;
  144748. end;
  144749. end;
  144750. function TJSWindowOrWorkerGlobalScope.setTimeout(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  144751. begin
  144752. Result:=InvokeJSLongIntResult('setTimeout',[aHandler,aTimeout,aUnused]);
  144753. end;
  144754. function TJSWindowOrWorkerGlobalScope.setTimeout(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  144755. begin
  144756. Result:=InvokeJSLongIntResult('setTimeout',[aHandler]);
  144757. end;
  144758. procedure TJSWindowOrWorkerGlobalScope.clearTimeout(aHandle: LongInt);
  144759. begin
  144760. InvokeJSNoResult('clearTimeout',[aHandle]);
  144761. end;
  144762. procedure TJSWindowOrWorkerGlobalScope.clearTimeout;
  144763. begin
  144764. InvokeJSNoResult('clearTimeout',[]);
  144765. end;
  144766. function TJSWindowOrWorkerGlobalScope.setInterval(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  144767. var
  144768. m: TJOB_Method;
  144769. begin
  144770. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  144771. try
  144772. Result:=InvokeJSLongIntResult('setInterval',[m,aTimeout,aArguments]);
  144773. finally
  144774. m.free;
  144775. end;
  144776. end;
  144777. function TJSWindowOrWorkerGlobalScope.setInterval(const aHandler: TFunction): LongInt{; ToDo:varargs};
  144778. var
  144779. m: TJOB_Method;
  144780. begin
  144781. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  144782. try
  144783. Result:=InvokeJSLongIntResult('setInterval',[m]);
  144784. finally
  144785. m.free;
  144786. end;
  144787. end;
  144788. function TJSWindowOrWorkerGlobalScope.setInterval(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  144789. begin
  144790. Result:=InvokeJSLongIntResult('setInterval',[aHandler,aTimeout,aUnused]);
  144791. end;
  144792. function TJSWindowOrWorkerGlobalScope.setInterval(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  144793. begin
  144794. Result:=InvokeJSLongIntResult('setInterval',[aHandler]);
  144795. end;
  144796. procedure TJSWindowOrWorkerGlobalScope.clearInterval(aHandle: LongInt);
  144797. begin
  144798. InvokeJSNoResult('clearInterval',[aHandle]);
  144799. end;
  144800. procedure TJSWindowOrWorkerGlobalScope.clearInterval;
  144801. begin
  144802. InvokeJSNoResult('clearInterval',[]);
  144803. end;
  144804. procedure TJSWindowOrWorkerGlobalScope.queueMicrotask(const aCallback: TVoidFunction);
  144805. var
  144806. m: TJOB_Method;
  144807. begin
  144808. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallVoidFunction);
  144809. try
  144810. InvokeJSNoResult('queueMicrotask',[m]);
  144811. finally
  144812. m.free;
  144813. end;
  144814. end;
  144815. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSBlob; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144816. begin
  144817. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  144818. end;
  144819. function TJSWindowOrWorkerGlobalScope.createImageBitmap(const aAImage: TCanvasImageSource; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144820. begin
  144821. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  144822. end;
  144823. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSCanvasRenderingContext2D; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144824. begin
  144825. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  144826. end;
  144827. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSImageData; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144828. begin
  144829. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  144830. end;
  144831. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSImageData): IJSPromise; // Promise<ImageBitmap>
  144832. begin
  144833. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  144834. end;
  144835. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSCanvasRenderingContext2D): IJSPromise; // Promise<ImageBitmap>
  144836. begin
  144837. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  144838. end;
  144839. function TJSWindowOrWorkerGlobalScope.createImageBitmap(const aAImage: TCanvasImageSource): IJSPromise; // Promise<ImageBitmap>
  144840. begin
  144841. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  144842. end;
  144843. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSBlob): IJSPromise; // Promise<ImageBitmap>
  144844. begin
  144845. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  144846. end;
  144847. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144848. begin
  144849. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  144850. end;
  144851. function TJSWindowOrWorkerGlobalScope.createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144852. begin
  144853. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  144854. end;
  144855. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144856. begin
  144857. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  144858. end;
  144859. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  144860. begin
  144861. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  144862. end;
  144863. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  144864. begin
  144865. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  144866. end;
  144867. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  144868. begin
  144869. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  144870. end;
  144871. function TJSWindowOrWorkerGlobalScope.createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  144872. begin
  144873. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  144874. end;
  144875. function TJSWindowOrWorkerGlobalScope.createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  144876. begin
  144877. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  144878. end;
  144879. function TJSWindowOrWorkerGlobalScope.structuredClone(const aValue: Variant; const aOptions: TJSStructuredSerializeOptions): Variant;
  144880. begin
  144881. Result:=InvokeJSVariantResult('structuredClone',[aValue,aOptions]);
  144882. end;
  144883. function TJSWindowOrWorkerGlobalScope.structuredClone(const aValue: Variant): Variant;
  144884. begin
  144885. Result:=InvokeJSVariantResult('structuredClone',[aValue]);
  144886. end;
  144887. function TJSWindowOrWorkerGlobalScope.fetch(aInput: IJSRequest; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  144888. begin
  144889. Result:=InvokeJSObjectResult('fetch',[aInput,aInit],TJSPromise) as IJSPromise;
  144890. end;
  144891. function TJSWindowOrWorkerGlobalScope.fetch(const aInput: UnicodeString; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  144892. begin
  144893. Result:=InvokeJSObjectResult('fetch',[aInput,aInit],TJSPromise) as IJSPromise;
  144894. end;
  144895. function TJSWindowOrWorkerGlobalScope.fetch(const aInput: UnicodeString): IJSPromise; // Promise<Response>
  144896. begin
  144897. Result:=InvokeJSObjectResult('fetch',[aInput],TJSPromise) as IJSPromise;
  144898. end;
  144899. function TJSWindowOrWorkerGlobalScope.fetch(aInput: IJSRequest): IJSPromise; // Promise<Response>
  144900. begin
  144901. Result:=InvokeJSObjectResult('fetch',[aInput],TJSPromise) as IJSPromise;
  144902. end;
  144903. class function TJSWindowOrWorkerGlobalScope.JSClassName: UnicodeString;
  144904. begin
  144905. Result:='WindowOrWorkerGlobalScope';
  144906. end;
  144907. class function TJSWindowOrWorkerGlobalScope.Cast(const Intf: IJSObject): IJSWindowOrWorkerGlobalScope;
  144908. begin
  144909. Result:=TJSWindowOrWorkerGlobalScope.JOBCast(Intf);
  144910. end;
  144911. function TJSWorker._Getonmessage: TEventHandler;
  144912. begin
  144913. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  144914. end;
  144915. function TJSWorker._Getonmessageerror: TEventHandler;
  144916. begin
  144917. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessageerror')));
  144918. end;
  144919. function TJSWorker._Getonerror: TEventHandler;
  144920. begin
  144921. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  144922. end;
  144923. procedure TJSWorker._Setonmessage(const aValue : TEventHandler);
  144924. begin
  144925. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  144926. end;
  144927. procedure TJSWorker._Setonmessageerror(const aValue : TEventHandler);
  144928. begin
  144929. WriteJSPropertyMethod('onmessageerror',TMethod(aValue));
  144930. end;
  144931. procedure TJSWorker._Setonerror(const aValue : TEventHandler);
  144932. begin
  144933. WriteJSPropertyMethod('onerror',TMethod(aValue));
  144934. end;
  144935. constructor TJSWorker.Create(const aScriptURL: UnicodeString; const aOptions: TJSWorkerOptions);
  144936. begin
  144937. JOBCreate([aScriptURL,aOptions]);
  144938. end;
  144939. constructor TJSWorker.Create(const aScriptURL: UnicodeString);
  144940. begin
  144941. JOBCreate([aScriptURL]);
  144942. end;
  144943. procedure TJSWorker.terminate;
  144944. begin
  144945. InvokeJSNoResult('terminate',[]);
  144946. end;
  144947. procedure TJSWorker.postMessage(const aMessage: Variant; const aTransfer: TIJSObjectDynArray);
  144948. begin
  144949. InvokeJSNoResult('postMessage',[aMessage,aTransfer]);
  144950. end;
  144951. procedure TJSWorker.postMessage(const aMessage: Variant; const aAOptions: TJSStructuredSerializeOptions);
  144952. begin
  144953. InvokeJSNoResult('postMessage',[aMessage,aAOptions]);
  144954. end;
  144955. procedure TJSWorker.postMessage(const aMessage: Variant);
  144956. begin
  144957. InvokeJSNoResult('postMessage',[aMessage]);
  144958. end;
  144959. class function TJSWorker.JSClassName: UnicodeString;
  144960. begin
  144961. Result:='Worker';
  144962. end;
  144963. class function TJSWorker.Cast(const Intf: IJSObject): IJSWorker;
  144964. begin
  144965. Result:=TJSWorker.JOBCast(Intf);
  144966. end;
  144967. function TJSWorkerOptions._Gettype_: TWorkerType;
  144968. begin
  144969. Result:=ReadJSPropertyUnicodeString('type');
  144970. end;
  144971. function TJSWorkerOptions._Getcredentials: TRequestCredentials;
  144972. begin
  144973. Result:=ReadJSPropertyUnicodeString('credentials');
  144974. end;
  144975. function TJSWorkerOptions._Getname: UnicodeString;
  144976. begin
  144977. Result:=ReadJSPropertyUnicodeString('name');
  144978. end;
  144979. procedure TJSWorkerOptions._Settype_(const aValue : TWorkerType);
  144980. begin
  144981. WriteJSPropertyUnicodeString('type',aValue);
  144982. end;
  144983. procedure TJSWorkerOptions._Setcredentials(const aValue : TRequestCredentials);
  144984. begin
  144985. WriteJSPropertyUnicodeString('credentials',aValue);
  144986. end;
  144987. procedure TJSWorkerOptions._Setname(const aValue : UnicodeString);
  144988. begin
  144989. WriteJSPropertyUnicodeString('name',aValue);
  144990. end;
  144991. class function TJSWorkerOptions.JSClassName: UnicodeString;
  144992. begin
  144993. Result:='Object';
  144994. end;
  144995. class function TJSWorkerOptions.Cast(const Intf: IJSObject): IJSWorkerOptions;
  144996. begin
  144997. Result:=TJSWorkerOptions.JOBCast(Intf);
  144998. end;
  144999. constructor TJSChromeWorker.Create(const aScriptURL: UnicodeString; const aOptions: TJSWorkerOptions);
  145000. begin
  145001. JOBCreate([aScriptURL,aOptions]);
  145002. end;
  145003. constructor TJSChromeWorker.Create(const aScriptURL: UnicodeString);
  145004. begin
  145005. JOBCreate([aScriptURL]);
  145006. end;
  145007. class function TJSChromeWorker.JSClassName: UnicodeString;
  145008. begin
  145009. Result:='ChromeWorker';
  145010. end;
  145011. class function TJSChromeWorker.Cast(const Intf: IJSObject): IJSChromeWorker;
  145012. begin
  145013. Result:=TJSChromeWorker.JOBCast(Intf);
  145014. end;
  145015. function TJSWorkerDebuggerGlobalScope._Getglobal: IJSObject;
  145016. begin
  145017. Result:=ReadJSPropertyObject('global',TJSObject) as IJSObject;
  145018. end;
  145019. function TJSWorkerDebuggerGlobalScope._Getonmessage: TEventHandler;
  145020. begin
  145021. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessage')));
  145022. end;
  145023. function TJSWorkerDebuggerGlobalScope._Getonmessageerror: TEventHandler;
  145024. begin
  145025. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onmessageerror')));
  145026. end;
  145027. procedure TJSWorkerDebuggerGlobalScope._Setonmessage(const aValue : TEventHandler);
  145028. begin
  145029. WriteJSPropertyMethod('onmessage',TMethod(aValue));
  145030. end;
  145031. procedure TJSWorkerDebuggerGlobalScope._Setonmessageerror(const aValue : TEventHandler);
  145032. begin
  145033. WriteJSPropertyMethod('onmessageerror',TMethod(aValue));
  145034. end;
  145035. function TJSWorkerDebuggerGlobalScope.createSandbox(const aName: UnicodeString; aPrototype: IJSObject): IJSObject;
  145036. begin
  145037. Result:=InvokeJSObjectResult('createSandbox',[aName,aPrototype],TJSObject) as IJSObject;
  145038. end;
  145039. procedure TJSWorkerDebuggerGlobalScope.loadSubScript(const aUrl: UnicodeString; aSandbox: IJSObject);
  145040. begin
  145041. InvokeJSNoResult('loadSubScript',[aUrl,aSandbox]);
  145042. end;
  145043. procedure TJSWorkerDebuggerGlobalScope.loadSubScript(const aUrl: UnicodeString);
  145044. begin
  145045. InvokeJSNoResult('loadSubScript',[aUrl]);
  145046. end;
  145047. procedure TJSWorkerDebuggerGlobalScope.enterEventLoop;
  145048. begin
  145049. InvokeJSNoResult('enterEventLoop',[]);
  145050. end;
  145051. procedure TJSWorkerDebuggerGlobalScope.leaveEventLoop;
  145052. begin
  145053. InvokeJSNoResult('leaveEventLoop',[]);
  145054. end;
  145055. procedure TJSWorkerDebuggerGlobalScope.postMessage(const aMessage: UnicodeString);
  145056. begin
  145057. InvokeJSNoResult('postMessage',[aMessage]);
  145058. end;
  145059. procedure TJSWorkerDebuggerGlobalScope.setImmediate(const aHandler: TFunction);
  145060. var
  145061. m: TJOB_Method;
  145062. begin
  145063. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  145064. try
  145065. InvokeJSNoResult('setImmediate',[m]);
  145066. finally
  145067. m.free;
  145068. end;
  145069. end;
  145070. procedure TJSWorkerDebuggerGlobalScope.reportError(const aMessage: UnicodeString);
  145071. begin
  145072. InvokeJSNoResult('reportError',[aMessage]);
  145073. end;
  145074. function TJSWorkerDebuggerGlobalScope.retrieveConsoleEvents: TVariantDynArray;
  145075. begin
  145076. Result:=InvokeJSObjectResult('retrieveConsoleEvents',[],TJSArray) as TVariantDynArray;
  145077. end;
  145078. procedure TJSWorkerDebuggerGlobalScope.setConsoleEventHandler(const aHandler: TAnyCallback);
  145079. var
  145080. m: TJOB_Method;
  145081. begin
  145082. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallAnyCallback);
  145083. try
  145084. InvokeJSNoResult('setConsoleEventHandler',[m]);
  145085. finally
  145086. m.free;
  145087. end;
  145088. end;
  145089. procedure TJSWorkerDebuggerGlobalScope.clearConsoleEvents;
  145090. begin
  145091. InvokeJSNoResult('clearConsoleEvents',[]);
  145092. end;
  145093. function TJSWorkerDebuggerGlobalScope.btoa(const aBtoa: UnicodeString): UnicodeString;
  145094. begin
  145095. Result:=InvokeJSUnicodeStringResult('btoa',[aBtoa]);
  145096. end;
  145097. function TJSWorkerDebuggerGlobalScope.atob(const aAtob: UnicodeString): UnicodeString;
  145098. begin
  145099. Result:=InvokeJSUnicodeStringResult('atob',[aAtob]);
  145100. end;
  145101. procedure TJSWorkerDebuggerGlobalScope.dump(const aString_: UnicodeString);
  145102. begin
  145103. InvokeJSNoResult('dump',[aString_]);
  145104. end;
  145105. procedure TJSWorkerDebuggerGlobalScope.dump;
  145106. begin
  145107. InvokeJSNoResult('dump',[]);
  145108. end;
  145109. class function TJSWorkerDebuggerGlobalScope.JSClassName: UnicodeString;
  145110. begin
  145111. Result:='WorkerDebuggerGlobalScope';
  145112. end;
  145113. class function TJSWorkerDebuggerGlobalScope.Cast(const Intf: IJSObject): IJSWorkerDebuggerGlobalScope;
  145114. begin
  145115. Result:=TJSWorkerDebuggerGlobalScope.JOBCast(Intf);
  145116. end;
  145117. function TJSWorkerGlobalScope._Getself_: IJSWorkerGlobalScope;
  145118. begin
  145119. Result:=ReadJSPropertyObject('self',TJSWorkerGlobalScope) as IJSWorkerGlobalScope;
  145120. end;
  145121. function TJSWorkerGlobalScope._Getlocation: IJSWorkerLocation;
  145122. begin
  145123. Result:=ReadJSPropertyObject('location',TJSWorkerLocation) as IJSWorkerLocation;
  145124. end;
  145125. function TJSWorkerGlobalScope._Getnavigator: IJSWorkerNavigator;
  145126. begin
  145127. Result:=ReadJSPropertyObject('navigator',TJSWorkerNavigator) as IJSWorkerNavigator;
  145128. end;
  145129. function TJSWorkerGlobalScope._Getonerror: TOnErrorEventHandler;
  145130. begin
  145131. Result:=(TOnErrorEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  145132. end;
  145133. function TJSWorkerGlobalScope._Getonlanguagechange: TEventHandler;
  145134. begin
  145135. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onlanguagechange')));
  145136. end;
  145137. function TJSWorkerGlobalScope._Getonoffline: TEventHandler;
  145138. begin
  145139. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onoffline')));
  145140. end;
  145141. function TJSWorkerGlobalScope._Getononline: TEventHandler;
  145142. begin
  145143. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ononline')));
  145144. end;
  145145. function TJSWorkerGlobalScope._Getonrejectionhandled: TEventHandler;
  145146. begin
  145147. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onrejectionhandled')));
  145148. end;
  145149. function TJSWorkerGlobalScope._Getonunhandledrejection: TEventHandler;
  145150. begin
  145151. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onunhandledrejection')));
  145152. end;
  145153. function TJSWorkerGlobalScope._Getperformance: IJSPerformance;
  145154. begin
  145155. Result:=ReadJSPropertyObject('performance',TJSPerformance) as IJSPerformance;
  145156. end;
  145157. function TJSWorkerGlobalScope._Getcrypto: IJSCrypto;
  145158. begin
  145159. Result:=ReadJSPropertyObject('crypto',TJSCrypto) as IJSCrypto;
  145160. end;
  145161. function TJSWorkerGlobalScope._Getfonts: IJSFontFaceSet;
  145162. begin
  145163. Result:=ReadJSPropertyObject('fonts',TJSFontFaceSet) as IJSFontFaceSet;
  145164. end;
  145165. function TJSWorkerGlobalScope._Getorigin: UnicodeString;
  145166. begin
  145167. Result:=ReadJSPropertyUnicodeString('origin');
  145168. end;
  145169. function TJSWorkerGlobalScope._GetcrossOriginIsolated: Boolean;
  145170. begin
  145171. Result:=ReadJSPropertyBoolean('crossOriginIsolated');
  145172. end;
  145173. function TJSWorkerGlobalScope._GetisSecureContext: Boolean;
  145174. begin
  145175. Result:=ReadJSPropertyBoolean('isSecureContext');
  145176. end;
  145177. function TJSWorkerGlobalScope._GetindexedDB: IJSIDBFactory;
  145178. begin
  145179. Result:=ReadJSPropertyObject('indexedDB',TJSIDBFactory) as IJSIDBFactory;
  145180. end;
  145181. function TJSWorkerGlobalScope._Getcaches: IJSCacheStorage;
  145182. begin
  145183. Result:=ReadJSPropertyObject('caches',TJSCacheStorage) as IJSCacheStorage;
  145184. end;
  145185. function TJSWorkerGlobalScope._Getscheduler: IJSScheduler;
  145186. begin
  145187. Result:=ReadJSPropertyObject('scheduler',TJSScheduler) as IJSScheduler;
  145188. end;
  145189. function TJSWorkerGlobalScope._GettrustedTypes: IJSTrustedTypePolicyFactory;
  145190. begin
  145191. Result:=ReadJSPropertyObject('trustedTypes',TJSTrustedTypePolicyFactory) as IJSTrustedTypePolicyFactory;
  145192. end;
  145193. procedure TJSWorkerGlobalScope._Setonerror(const aValue : TOnErrorEventHandler);
  145194. begin
  145195. WriteJSPropertyMethod('onerror',TMethod(aValue));
  145196. end;
  145197. procedure TJSWorkerGlobalScope._Setonlanguagechange(const aValue : TEventHandler);
  145198. begin
  145199. WriteJSPropertyMethod('onlanguagechange',TMethod(aValue));
  145200. end;
  145201. procedure TJSWorkerGlobalScope._Setonoffline(const aValue : TEventHandler);
  145202. begin
  145203. WriteJSPropertyMethod('onoffline',TMethod(aValue));
  145204. end;
  145205. procedure TJSWorkerGlobalScope._Setononline(const aValue : TEventHandler);
  145206. begin
  145207. WriteJSPropertyMethod('ononline',TMethod(aValue));
  145208. end;
  145209. procedure TJSWorkerGlobalScope._Setonrejectionhandled(const aValue : TEventHandler);
  145210. begin
  145211. WriteJSPropertyMethod('onrejectionhandled',TMethod(aValue));
  145212. end;
  145213. procedure TJSWorkerGlobalScope._Setonunhandledrejection(const aValue : TEventHandler);
  145214. begin
  145215. WriteJSPropertyMethod('onunhandledrejection',TMethod(aValue));
  145216. end;
  145217. procedure TJSWorkerGlobalScope.importScripts(const aUrls: UnicodeString){; ToDo:varargs};
  145218. begin
  145219. InvokeJSNoResult('importScripts',[aUrls]);
  145220. end;
  145221. procedure TJSWorkerGlobalScope.dump(const aStr: UnicodeString);
  145222. begin
  145223. InvokeJSNoResult('dump',[aStr]);
  145224. end;
  145225. procedure TJSWorkerGlobalScope.dump;
  145226. begin
  145227. InvokeJSNoResult('dump',[]);
  145228. end;
  145229. function TJSWorkerGlobalScope.getJSTestingFunctions: IJSObject;
  145230. begin
  145231. Result:=InvokeJSObjectResult('getJSTestingFunctions',[],TJSObject) as IJSObject;
  145232. end;
  145233. procedure TJSWorkerGlobalScope.reportError(const aE: Variant);
  145234. begin
  145235. InvokeJSNoResult('reportError',[aE]);
  145236. end;
  145237. function TJSWorkerGlobalScope.btoa(const aBtoa: UnicodeString): UnicodeString;
  145238. begin
  145239. Result:=InvokeJSUnicodeStringResult('btoa',[aBtoa]);
  145240. end;
  145241. function TJSWorkerGlobalScope.atob(const aAtob: UnicodeString): UnicodeString;
  145242. begin
  145243. Result:=InvokeJSUnicodeStringResult('atob',[aAtob]);
  145244. end;
  145245. function TJSWorkerGlobalScope.setTimeout(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  145246. var
  145247. m: TJOB_Method;
  145248. begin
  145249. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  145250. try
  145251. Result:=InvokeJSLongIntResult('setTimeout',[m,aTimeout,aArguments]);
  145252. finally
  145253. m.free;
  145254. end;
  145255. end;
  145256. function TJSWorkerGlobalScope.setTimeout(const aHandler: TFunction): LongInt{; ToDo:varargs};
  145257. var
  145258. m: TJOB_Method;
  145259. begin
  145260. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  145261. try
  145262. Result:=InvokeJSLongIntResult('setTimeout',[m]);
  145263. finally
  145264. m.free;
  145265. end;
  145266. end;
  145267. function TJSWorkerGlobalScope.setTimeout(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  145268. begin
  145269. Result:=InvokeJSLongIntResult('setTimeout',[aHandler,aTimeout,aUnused]);
  145270. end;
  145271. function TJSWorkerGlobalScope.setTimeout(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  145272. begin
  145273. Result:=InvokeJSLongIntResult('setTimeout',[aHandler]);
  145274. end;
  145275. procedure TJSWorkerGlobalScope.clearTimeout(aHandle: LongInt);
  145276. begin
  145277. InvokeJSNoResult('clearTimeout',[aHandle]);
  145278. end;
  145279. procedure TJSWorkerGlobalScope.clearTimeout;
  145280. begin
  145281. InvokeJSNoResult('clearTimeout',[]);
  145282. end;
  145283. function TJSWorkerGlobalScope.setInterval(const aHandler: TFunction; aTimeout: LongInt; const aArguments: Variant): LongInt{; ToDo:varargs};
  145284. var
  145285. m: TJOB_Method;
  145286. begin
  145287. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  145288. try
  145289. Result:=InvokeJSLongIntResult('setInterval',[m,aTimeout,aArguments]);
  145290. finally
  145291. m.free;
  145292. end;
  145293. end;
  145294. function TJSWorkerGlobalScope.setInterval(const aHandler: TFunction): LongInt{; ToDo:varargs};
  145295. var
  145296. m: TJOB_Method;
  145297. begin
  145298. m:=TJOB_Method.Create(TMethod(aHandler),@JOBCallFunction_);
  145299. try
  145300. Result:=InvokeJSLongIntResult('setInterval',[m]);
  145301. finally
  145302. m.free;
  145303. end;
  145304. end;
  145305. function TJSWorkerGlobalScope.setInterval(const aHandler: UnicodeString; aTimeout: LongInt; const aUnused: Variant): LongInt{; ToDo:varargs};
  145306. begin
  145307. Result:=InvokeJSLongIntResult('setInterval',[aHandler,aTimeout,aUnused]);
  145308. end;
  145309. function TJSWorkerGlobalScope.setInterval(const aHandler: UnicodeString): LongInt{; ToDo:varargs};
  145310. begin
  145311. Result:=InvokeJSLongIntResult('setInterval',[aHandler]);
  145312. end;
  145313. procedure TJSWorkerGlobalScope.clearInterval(aHandle: LongInt);
  145314. begin
  145315. InvokeJSNoResult('clearInterval',[aHandle]);
  145316. end;
  145317. procedure TJSWorkerGlobalScope.clearInterval;
  145318. begin
  145319. InvokeJSNoResult('clearInterval',[]);
  145320. end;
  145321. procedure TJSWorkerGlobalScope.queueMicrotask(const aCallback: TVoidFunction);
  145322. var
  145323. m: TJOB_Method;
  145324. begin
  145325. m:=TJOB_Method.Create(TMethod(aCallback),@JOBCallVoidFunction);
  145326. try
  145327. InvokeJSNoResult('queueMicrotask',[m]);
  145328. finally
  145329. m.free;
  145330. end;
  145331. end;
  145332. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSBlob; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  145333. begin
  145334. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  145335. end;
  145336. function TJSWorkerGlobalScope.createImageBitmap(const aAImage: TCanvasImageSource; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  145337. begin
  145338. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  145339. end;
  145340. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSCanvasRenderingContext2D; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  145341. begin
  145342. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  145343. end;
  145344. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSImageData; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  145345. begin
  145346. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aAOptions],TJSPromise) as IJSPromise;
  145347. end;
  145348. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSImageData): IJSPromise; // Promise<ImageBitmap>
  145349. begin
  145350. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  145351. end;
  145352. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSCanvasRenderingContext2D): IJSPromise; // Promise<ImageBitmap>
  145353. begin
  145354. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  145355. end;
  145356. function TJSWorkerGlobalScope.createImageBitmap(const aAImage: TCanvasImageSource): IJSPromise; // Promise<ImageBitmap>
  145357. begin
  145358. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  145359. end;
  145360. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSBlob): IJSPromise; // Promise<ImageBitmap>
  145361. begin
  145362. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage],TJSPromise) as IJSPromise;
  145363. end;
  145364. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  145365. begin
  145366. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  145367. end;
  145368. function TJSWorkerGlobalScope.createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  145369. begin
  145370. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  145371. end;
  145372. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  145373. begin
  145374. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  145375. end;
  145376. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt; const aAOptions: TJSImageBitmapOptions): IJSPromise; // Promise<ImageBitmap>
  145377. begin
  145378. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh,aAOptions],TJSPromise) as IJSPromise;
  145379. end;
  145380. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSImageData; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  145381. begin
  145382. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  145383. end;
  145384. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSCanvasRenderingContext2D; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  145385. begin
  145386. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  145387. end;
  145388. function TJSWorkerGlobalScope.createImageBitmap(const aAImage: TCanvasImageSource; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  145389. begin
  145390. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  145391. end;
  145392. function TJSWorkerGlobalScope.createImageBitmap(aAImage: IJSBlob; aASx: LongInt; aASy: LongInt; aASw: LongInt; aASh: LongInt): IJSPromise; // Promise<ImageBitmap>
  145393. begin
  145394. Result:=InvokeJSObjectResult('createImageBitmap',[aAImage,aASx,aASy,aASw,aASh],TJSPromise) as IJSPromise;
  145395. end;
  145396. function TJSWorkerGlobalScope.structuredClone(const aValue: Variant; const aOptions: TJSStructuredSerializeOptions): Variant;
  145397. begin
  145398. Result:=InvokeJSVariantResult('structuredClone',[aValue,aOptions]);
  145399. end;
  145400. function TJSWorkerGlobalScope.structuredClone(const aValue: Variant): Variant;
  145401. begin
  145402. Result:=InvokeJSVariantResult('structuredClone',[aValue]);
  145403. end;
  145404. function TJSWorkerGlobalScope.fetch(aInput: IJSRequest; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  145405. begin
  145406. Result:=InvokeJSObjectResult('fetch',[aInput,aInit],TJSPromise) as IJSPromise;
  145407. end;
  145408. function TJSWorkerGlobalScope.fetch(const aInput: UnicodeString; const aInit: TJSRequestInit): IJSPromise; // Promise<Response>
  145409. begin
  145410. Result:=InvokeJSObjectResult('fetch',[aInput,aInit],TJSPromise) as IJSPromise;
  145411. end;
  145412. function TJSWorkerGlobalScope.fetch(const aInput: UnicodeString): IJSPromise; // Promise<Response>
  145413. begin
  145414. Result:=InvokeJSObjectResult('fetch',[aInput],TJSPromise) as IJSPromise;
  145415. end;
  145416. function TJSWorkerGlobalScope.fetch(aInput: IJSRequest): IJSPromise; // Promise<Response>
  145417. begin
  145418. Result:=InvokeJSObjectResult('fetch',[aInput],TJSPromise) as IJSPromise;
  145419. end;
  145420. class function TJSWorkerGlobalScope.JSClassName: UnicodeString;
  145421. begin
  145422. Result:='WorkerGlobalScope';
  145423. end;
  145424. class function TJSWorkerGlobalScope.Cast(const Intf: IJSObject): IJSWorkerGlobalScope;
  145425. begin
  145426. Result:=TJSWorkerGlobalScope.JOBCast(Intf);
  145427. end;
  145428. function TJSWorkerLocation._Gethref: UnicodeString;
  145429. begin
  145430. Result:=ReadJSPropertyUnicodeString('href');
  145431. end;
  145432. function TJSWorkerLocation._Getorigin: UnicodeString;
  145433. begin
  145434. Result:=ReadJSPropertyUnicodeString('origin');
  145435. end;
  145436. function TJSWorkerLocation._Getprotocol: UnicodeString;
  145437. begin
  145438. Result:=ReadJSPropertyUnicodeString('protocol');
  145439. end;
  145440. function TJSWorkerLocation._Gethost: UnicodeString;
  145441. begin
  145442. Result:=ReadJSPropertyUnicodeString('host');
  145443. end;
  145444. function TJSWorkerLocation._Gethostname: UnicodeString;
  145445. begin
  145446. Result:=ReadJSPropertyUnicodeString('hostname');
  145447. end;
  145448. function TJSWorkerLocation._Getport: UnicodeString;
  145449. begin
  145450. Result:=ReadJSPropertyUnicodeString('port');
  145451. end;
  145452. function TJSWorkerLocation._Getpathname: UnicodeString;
  145453. begin
  145454. Result:=ReadJSPropertyUnicodeString('pathname');
  145455. end;
  145456. function TJSWorkerLocation._Getsearch: UnicodeString;
  145457. begin
  145458. Result:=ReadJSPropertyUnicodeString('search');
  145459. end;
  145460. function TJSWorkerLocation._Gethash: UnicodeString;
  145461. begin
  145462. Result:=ReadJSPropertyUnicodeString('hash');
  145463. end;
  145464. class function TJSWorkerLocation.JSClassName: UnicodeString;
  145465. begin
  145466. Result:='WorkerLocation';
  145467. end;
  145468. class function TJSWorkerLocation.Cast(const Intf: IJSObject): IJSWorkerLocation;
  145469. begin
  145470. Result:=TJSWorkerLocation.JOBCast(Intf);
  145471. end;
  145472. function TJSWorkerNavigator._Getconnection: IJSNetworkInformation;
  145473. begin
  145474. Result:=ReadJSPropertyObject('connection',TJSNetworkInformation) as IJSNetworkInformation;
  145475. end;
  145476. function TJSWorkerNavigator._GetmediaCapabilities: IJSMediaCapabilities;
  145477. begin
  145478. Result:=ReadJSPropertyObject('mediaCapabilities',TJSMediaCapabilities) as IJSMediaCapabilities;
  145479. end;
  145480. function TJSWorkerNavigator._GetappCodeName: UnicodeString;
  145481. begin
  145482. Result:=ReadJSPropertyUnicodeString('appCodeName');
  145483. end;
  145484. function TJSWorkerNavigator._GetappName: UnicodeString;
  145485. begin
  145486. Result:=ReadJSPropertyUnicodeString('appName');
  145487. end;
  145488. function TJSWorkerNavigator._GetappVersion: UnicodeString;
  145489. begin
  145490. Result:=ReadJSPropertyUnicodeString('appVersion');
  145491. end;
  145492. function TJSWorkerNavigator._Getplatform: UnicodeString;
  145493. begin
  145494. Result:=ReadJSPropertyUnicodeString('platform');
  145495. end;
  145496. function TJSWorkerNavigator._GetuserAgent: UnicodeString;
  145497. begin
  145498. Result:=ReadJSPropertyUnicodeString('userAgent');
  145499. end;
  145500. function TJSWorkerNavigator._Getproduct: UnicodeString;
  145501. begin
  145502. Result:=ReadJSPropertyUnicodeString('product');
  145503. end;
  145504. function TJSWorkerNavigator._Getlanguage: UnicodeString;
  145505. begin
  145506. Result:=ReadJSPropertyUnicodeString('language');
  145507. end;
  145508. function TJSWorkerNavigator._Getlanguages: TUnicodeStringDynArray;
  145509. begin
  145510. Result:=ReadJSPropertyObject('languages',TJSArray) as TUnicodeStringDynArray;
  145511. end;
  145512. function TJSWorkerNavigator._GetonLine: Boolean;
  145513. begin
  145514. Result:=ReadJSPropertyBoolean('onLine');
  145515. end;
  145516. function TJSWorkerNavigator._GethardwareConcurrency: QWord;
  145517. begin
  145518. Result:=ReadJSPropertyInt64('hardwareConcurrency');
  145519. end;
  145520. function TJSWorkerNavigator._Getstorage: IJSStorageManager;
  145521. begin
  145522. Result:=ReadJSPropertyObject('storage',TJSStorageManager) as IJSStorageManager;
  145523. end;
  145524. function TJSWorkerNavigator._GetglobalPrivacyControl: Boolean;
  145525. begin
  145526. Result:=ReadJSPropertyBoolean('globalPrivacyControl');
  145527. end;
  145528. function TJSWorkerNavigator._Getlocks: IJSLockManager;
  145529. begin
  145530. Result:=ReadJSPropertyObject('locks',TJSLockManager) as IJSLockManager;
  145531. end;
  145532. function TJSWorkerNavigator._Getgpu: IJSGPU;
  145533. begin
  145534. Result:=ReadJSPropertyObject('gpu',TJSGPU) as IJSGPU;
  145535. end;
  145536. function TJSWorkerNavigator.taintEnabled: Boolean;
  145537. begin
  145538. Result:=InvokeJSBooleanResult('taintEnabled',[]);
  145539. end;
  145540. class function TJSWorkerNavigator.JSClassName: UnicodeString;
  145541. begin
  145542. Result:='WorkerNavigator';
  145543. end;
  145544. class function TJSWorkerNavigator.Cast(const Intf: IJSObject): IJSWorkerNavigator;
  145545. begin
  145546. Result:=TJSWorkerNavigator.JOBCast(Intf);
  145547. end;
  145548. function TJSWorkerTestUtils.currentTimerNestingLevel: Cardinal;
  145549. begin
  145550. Result:=InvokeJSLongIntResult('currentTimerNestingLevel',[]);
  145551. end;
  145552. class function TJSWorkerTestUtils.JSClassName: UnicodeString;
  145553. begin
  145554. Result:='WorkerTestUtils';
  145555. end;
  145556. class function TJSWorkerTestUtils.Cast(const Intf: IJSObject): IJSWorkerTestUtils;
  145557. begin
  145558. Result:=TJSWorkerTestUtils.JOBCast(Intf);
  145559. end;
  145560. function TJSWorklet.addModule(const aModuleURL: UnicodeString; const aOptions: TJSWorkletOptions): IJSPromise; // Promise<undefined>
  145561. begin
  145562. Result:=InvokeJSObjectResult('addModule',[aModuleURL,aOptions],TJSPromise) as IJSPromise;
  145563. end;
  145564. function TJSWorklet.addModule(const aModuleURL: UnicodeString): IJSPromise; // Promise<undefined>
  145565. begin
  145566. Result:=InvokeJSObjectResult('addModule',[aModuleURL],TJSPromise) as IJSPromise;
  145567. end;
  145568. class function TJSWorklet.JSClassName: UnicodeString;
  145569. begin
  145570. Result:='Worklet';
  145571. end;
  145572. class function TJSWorklet.Cast(const Intf: IJSObject): IJSWorklet;
  145573. begin
  145574. Result:=TJSWorklet.JOBCast(Intf);
  145575. end;
  145576. function TJSWorkletOptions._Getcredentials: TRequestCredentials;
  145577. begin
  145578. Result:=ReadJSPropertyUnicodeString('credentials');
  145579. end;
  145580. procedure TJSWorkletOptions._Setcredentials(const aValue : TRequestCredentials);
  145581. begin
  145582. WriteJSPropertyUnicodeString('credentials',aValue);
  145583. end;
  145584. class function TJSWorkletOptions.JSClassName: UnicodeString;
  145585. begin
  145586. Result:='Object';
  145587. end;
  145588. class function TJSWorkletOptions.Cast(const Intf: IJSObject): IJSWorkletOptions;
  145589. begin
  145590. Result:=TJSWorkletOptions.JOBCast(Intf);
  145591. end;
  145592. procedure TJSWorkletGlobalScope.dump(const aStr: UnicodeString);
  145593. begin
  145594. InvokeJSNoResult('dump',[aStr]);
  145595. end;
  145596. procedure TJSWorkletGlobalScope.dump;
  145597. begin
  145598. InvokeJSNoResult('dump',[]);
  145599. end;
  145600. class function TJSWorkletGlobalScope.JSClassName: UnicodeString;
  145601. begin
  145602. Result:='WorkletGlobalScope';
  145603. end;
  145604. class function TJSWorkletGlobalScope.Cast(const Intf: IJSObject): IJSWorkletGlobalScope;
  145605. begin
  145606. Result:=TJSWorkletGlobalScope.JOBCast(Intf);
  145607. end;
  145608. function TJSWritableStream._Getlocked: Boolean;
  145609. begin
  145610. Result:=ReadJSPropertyBoolean('locked');
  145611. end;
  145612. constructor TJSWritableStream.Create(aUnderlyingSink: IJSObject; const aStrategy: TJSQueuingStrategy);
  145613. begin
  145614. JOBCreate([aUnderlyingSink,aStrategy]);
  145615. end;
  145616. constructor TJSWritableStream.Create;
  145617. begin
  145618. JOBCreate([]);
  145619. end;
  145620. constructor TJSWritableStream.Create(aUnderlyingSink: IJSObject);
  145621. begin
  145622. JOBCreate([aUnderlyingSink]);
  145623. end;
  145624. function TJSWritableStream.abort(const aReason: Variant): IJSPromise; // Promise<undefined>
  145625. begin
  145626. Result:=InvokeJSObjectResult('abort',[aReason],TJSPromise) as IJSPromise;
  145627. end;
  145628. function TJSWritableStream.abort: IJSPromise; // Promise<undefined>
  145629. begin
  145630. Result:=InvokeJSObjectResult('abort',[],TJSPromise) as IJSPromise;
  145631. end;
  145632. function TJSWritableStream.close: IJSPromise; // Promise<undefined>
  145633. begin
  145634. Result:=InvokeJSObjectResult('close',[],TJSPromise) as IJSPromise;
  145635. end;
  145636. function TJSWritableStream.getWriter: IJSWritableStreamDefaultWriter;
  145637. begin
  145638. Result:=InvokeJSObjectResult('getWriter',[],TJSWritableStreamDefaultWriter) as IJSWritableStreamDefaultWriter;
  145639. end;
  145640. class function TJSWritableStream.JSClassName: UnicodeString;
  145641. begin
  145642. Result:='WritableStream';
  145643. end;
  145644. class function TJSWritableStream.Cast(const Intf: IJSObject): IJSWritableStream;
  145645. begin
  145646. Result:=TJSWritableStream.JOBCast(Intf);
  145647. end;
  145648. function TJSWritableStreamDefaultController._Getsignal: IJSAbortSignal;
  145649. begin
  145650. Result:=ReadJSPropertyObject('signal',TJSAbortSignal) as IJSAbortSignal;
  145651. end;
  145652. procedure TJSWritableStreamDefaultController.error(const aE: Variant);
  145653. begin
  145654. InvokeJSNoResult('error',[aE]);
  145655. end;
  145656. procedure TJSWritableStreamDefaultController.error;
  145657. begin
  145658. InvokeJSNoResult('error',[]);
  145659. end;
  145660. class function TJSWritableStreamDefaultController.JSClassName: UnicodeString;
  145661. begin
  145662. Result:='WritableStreamDefaultController';
  145663. end;
  145664. class function TJSWritableStreamDefaultController.Cast(const Intf: IJSObject): IJSWritableStreamDefaultController;
  145665. begin
  145666. Result:=TJSWritableStreamDefaultController.JOBCast(Intf);
  145667. end;
  145668. function TJSWritableStreamDefaultWriter._Getclosed: IJSPromise;
  145669. begin
  145670. Result:=ReadJSPropertyObject('closed',TJSPromise) as IJSPromise;
  145671. end;
  145672. function TJSWritableStreamDefaultWriter._GetdesiredSize: Double;
  145673. begin
  145674. Result:=ReadJSPropertyDouble('desiredSize');
  145675. end;
  145676. function TJSWritableStreamDefaultWriter._Getready: IJSPromise;
  145677. begin
  145678. Result:=ReadJSPropertyObject('ready',TJSPromise) as IJSPromise;
  145679. end;
  145680. constructor TJSWritableStreamDefaultWriter.Create(aStream: IJSWritableStream);
  145681. begin
  145682. JOBCreate([aStream]);
  145683. end;
  145684. function TJSWritableStreamDefaultWriter.abort(const aReason: Variant): IJSPromise; // Promise<undefined>
  145685. begin
  145686. Result:=InvokeJSObjectResult('abort',[aReason],TJSPromise) as IJSPromise;
  145687. end;
  145688. function TJSWritableStreamDefaultWriter.abort: IJSPromise; // Promise<undefined>
  145689. begin
  145690. Result:=InvokeJSObjectResult('abort',[],TJSPromise) as IJSPromise;
  145691. end;
  145692. function TJSWritableStreamDefaultWriter.close: IJSPromise; // Promise<undefined>
  145693. begin
  145694. Result:=InvokeJSObjectResult('close',[],TJSPromise) as IJSPromise;
  145695. end;
  145696. procedure TJSWritableStreamDefaultWriter.releaseLock;
  145697. begin
  145698. InvokeJSNoResult('releaseLock',[]);
  145699. end;
  145700. function TJSWritableStreamDefaultWriter.write(const aChunk: Variant): IJSPromise; // Promise<undefined>
  145701. begin
  145702. Result:=InvokeJSObjectResult('write',[aChunk],TJSPromise) as IJSPromise;
  145703. end;
  145704. function TJSWritableStreamDefaultWriter.write: IJSPromise; // Promise<undefined>
  145705. begin
  145706. Result:=InvokeJSObjectResult('write',[],TJSPromise) as IJSPromise;
  145707. end;
  145708. class function TJSWritableStreamDefaultWriter.JSClassName: UnicodeString;
  145709. begin
  145710. Result:='WritableStreamDefaultWriter';
  145711. end;
  145712. class function TJSWritableStreamDefaultWriter.Cast(const Intf: IJSObject): IJSWritableStreamDefaultWriter;
  145713. begin
  145714. Result:=TJSWritableStreamDefaultWriter.JOBCast(Intf);
  145715. end;
  145716. class function TJSXMLDocument.JSClassName: UnicodeString;
  145717. begin
  145718. Result:='XMLDocument';
  145719. end;
  145720. class function TJSXMLDocument.Cast(const Intf: IJSObject): IJSXMLDocument;
  145721. begin
  145722. Result:=TJSXMLDocument.JOBCast(Intf);
  145723. end;
  145724. class function TJSMozChannel.JSClassName: UnicodeString;
  145725. begin
  145726. Result:='MozChannel';
  145727. end;
  145728. class function TJSMozChannel.Cast(const Intf: IJSObject): IJSMozChannel;
  145729. begin
  145730. Result:=TJSMozChannel.JOBCast(Intf);
  145731. end;
  145732. function TJSMozXMLHttpRequestParameters._GetmozAnon: Boolean;
  145733. begin
  145734. Result:=ReadJSPropertyBoolean('mozAnon');
  145735. end;
  145736. function TJSMozXMLHttpRequestParameters._GetmozSystem: Boolean;
  145737. begin
  145738. Result:=ReadJSPropertyBoolean('mozSystem');
  145739. end;
  145740. procedure TJSMozXMLHttpRequestParameters._SetmozAnon(const aValue : Boolean);
  145741. begin
  145742. WriteJSPropertyBoolean('mozAnon',aValue);
  145743. end;
  145744. procedure TJSMozXMLHttpRequestParameters._SetmozSystem(const aValue : Boolean);
  145745. begin
  145746. WriteJSPropertyBoolean('mozSystem',aValue);
  145747. end;
  145748. class function TJSMozXMLHttpRequestParameters.JSClassName: UnicodeString;
  145749. begin
  145750. Result:='Object';
  145751. end;
  145752. class function TJSMozXMLHttpRequestParameters.Cast(const Intf: IJSObject): IJSMozXMLHttpRequestParameters;
  145753. begin
  145754. Result:=TJSMozXMLHttpRequestParameters.JOBCast(Intf);
  145755. end;
  145756. function TJSXMLHttpRequest._Getonreadystatechange: TEventHandler;
  145757. begin
  145758. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onreadystatechange')));
  145759. end;
  145760. function TJSXMLHttpRequest._GetreadyState: Word;
  145761. begin
  145762. Result:=ReadJSPropertyLongInt('readyState');
  145763. end;
  145764. function TJSXMLHttpRequest._Gettimeout: Cardinal;
  145765. begin
  145766. Result:=ReadJSPropertyInt64('timeout');
  145767. end;
  145768. function TJSXMLHttpRequest._GetwithCredentials: Boolean;
  145769. begin
  145770. Result:=ReadJSPropertyBoolean('withCredentials');
  145771. end;
  145772. function TJSXMLHttpRequest._Getupload: IJSXMLHttpRequestUpload;
  145773. begin
  145774. Result:=ReadJSPropertyObject('upload',TJSXMLHttpRequestUpload) as IJSXMLHttpRequestUpload;
  145775. end;
  145776. function TJSXMLHttpRequest._GetresponseURL: UnicodeString;
  145777. begin
  145778. Result:=ReadJSPropertyUnicodeString('responseURL');
  145779. end;
  145780. function TJSXMLHttpRequest._Getstatus: Word;
  145781. begin
  145782. Result:=ReadJSPropertyLongInt('status');
  145783. end;
  145784. function TJSXMLHttpRequest._GetstatusText: UnicodeString;
  145785. begin
  145786. Result:=ReadJSPropertyUnicodeString('statusText');
  145787. end;
  145788. function TJSXMLHttpRequest._GetresponseType: TXMLHttpRequestResponseType;
  145789. begin
  145790. Result:=ReadJSPropertyUnicodeString('responseType');
  145791. end;
  145792. function TJSXMLHttpRequest._Getresponse: Variant;
  145793. begin
  145794. Result:=ReadJSPropertyVariant('response');
  145795. end;
  145796. function TJSXMLHttpRequest._GetresponseText: UnicodeString;
  145797. begin
  145798. Result:=ReadJSPropertyUnicodeString('responseText');
  145799. end;
  145800. function TJSXMLHttpRequest._GetresponseXML: IJSDocument;
  145801. begin
  145802. Result:=ReadJSPropertyObject('responseXML',TJSDocument) as IJSDocument;
  145803. end;
  145804. function TJSXMLHttpRequest._GetmozAnon: Boolean;
  145805. begin
  145806. Result:=ReadJSPropertyBoolean('mozAnon');
  145807. end;
  145808. function TJSXMLHttpRequest._GetmozSystem: Boolean;
  145809. begin
  145810. Result:=ReadJSPropertyBoolean('mozSystem');
  145811. end;
  145812. procedure TJSXMLHttpRequest._Setonreadystatechange(const aValue : TEventHandler);
  145813. begin
  145814. WriteJSPropertyMethod('onreadystatechange',TMethod(aValue));
  145815. end;
  145816. procedure TJSXMLHttpRequest._Settimeout(const aValue : Cardinal);
  145817. begin
  145818. WriteJSPropertyDouble('timeout',aValue);
  145819. end;
  145820. procedure TJSXMLHttpRequest._SetwithCredentials(const aValue : Boolean);
  145821. begin
  145822. WriteJSPropertyBoolean('withCredentials',aValue);
  145823. end;
  145824. procedure TJSXMLHttpRequest._SetresponseType(const aValue : TXMLHttpRequestResponseType);
  145825. begin
  145826. WriteJSPropertyUnicodeString('responseType',aValue);
  145827. end;
  145828. constructor TJSXMLHttpRequest.Create(const aParams: TJSMozXMLHttpRequestParameters);
  145829. begin
  145830. JOBCreate([aParams]);
  145831. end;
  145832. constructor TJSXMLHttpRequest.Create;
  145833. begin
  145834. JOBCreate([]);
  145835. end;
  145836. constructor TJSXMLHttpRequest.Create(const aIgnored: UnicodeString);
  145837. begin
  145838. JOBCreate([aIgnored]);
  145839. end;
  145840. procedure TJSXMLHttpRequest.open(const aMethod: UnicodeString; const aUrl: UnicodeString);
  145841. begin
  145842. InvokeJSNoResult('open',[aMethod,aUrl]);
  145843. end;
  145844. procedure TJSXMLHttpRequest.open(const aMethod: UnicodeString; const aUrl: UnicodeString; aAsync: Boolean; const aUser: UnicodeString; const aPassword: UnicodeString);
  145845. begin
  145846. InvokeJSNoResult('open',[aMethod,aUrl,aAsync,aUser,aPassword]);
  145847. end;
  145848. procedure TJSXMLHttpRequest.open(const aMethod: UnicodeString; const aUrl: UnicodeString; aAsync: Boolean);
  145849. begin
  145850. InvokeJSNoResult('open',[aMethod,aUrl,aAsync]);
  145851. end;
  145852. procedure TJSXMLHttpRequest.open(const aMethod: UnicodeString; const aUrl: UnicodeString; aAsync: Boolean; const aUser: UnicodeString);
  145853. begin
  145854. InvokeJSNoResult('open',[aMethod,aUrl,aAsync,aUser]);
  145855. end;
  145856. procedure TJSXMLHttpRequest.setRequestHeader(const aHeader: UnicodeString; const aValue: UnicodeString);
  145857. begin
  145858. InvokeJSNoResult('setRequestHeader',[aHeader,aValue]);
  145859. end;
  145860. procedure TJSXMLHttpRequest.send(aBody: IJSDocument);
  145861. begin
  145862. InvokeJSNoResult('send',[aBody]);
  145863. end;
  145864. procedure TJSXMLHttpRequest.send;
  145865. begin
  145866. InvokeJSNoResult('send',[]);
  145867. end;
  145868. procedure TJSXMLHttpRequest.send(const aBody: TXMLHttpRequestBodyInit);
  145869. begin
  145870. InvokeJSNoResult('send',[aBody]);
  145871. end;
  145872. procedure TJSXMLHttpRequest.abort;
  145873. begin
  145874. InvokeJSNoResult('abort',[]);
  145875. end;
  145876. function TJSXMLHttpRequest.getResponseHeader(const aHeader: UnicodeString): UnicodeString;
  145877. begin
  145878. Result:=InvokeJSUnicodeStringResult('getResponseHeader',[aHeader]);
  145879. end;
  145880. function TJSXMLHttpRequest.getAllResponseHeaders: UnicodeString;
  145881. begin
  145882. Result:=InvokeJSUnicodeStringResult('getAllResponseHeaders',[]);
  145883. end;
  145884. procedure TJSXMLHttpRequest.overrideMimeType(const aMime: UnicodeString);
  145885. begin
  145886. InvokeJSNoResult('overrideMimeType',[aMime]);
  145887. end;
  145888. class function TJSXMLHttpRequest.JSClassName: UnicodeString;
  145889. begin
  145890. Result:='XMLHttpRequest';
  145891. end;
  145892. class function TJSXMLHttpRequest.Cast(const Intf: IJSObject): IJSXMLHttpRequest;
  145893. begin
  145894. Result:=TJSXMLHttpRequest.JOBCast(Intf);
  145895. end;
  145896. function TJSXMLHttpRequestEventTarget._Getonloadstart: TEventHandler;
  145897. begin
  145898. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadstart')));
  145899. end;
  145900. function TJSXMLHttpRequestEventTarget._Getonprogress: TEventHandler;
  145901. begin
  145902. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onprogress')));
  145903. end;
  145904. function TJSXMLHttpRequestEventTarget._Getonabort: TEventHandler;
  145905. begin
  145906. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onabort')));
  145907. end;
  145908. function TJSXMLHttpRequestEventTarget._Getonerror: TEventHandler;
  145909. begin
  145910. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onerror')));
  145911. end;
  145912. function TJSXMLHttpRequestEventTarget._Getonload: TEventHandler;
  145913. begin
  145914. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onload')));
  145915. end;
  145916. function TJSXMLHttpRequestEventTarget._Getontimeout: TEventHandler;
  145917. begin
  145918. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('ontimeout')));
  145919. end;
  145920. function TJSXMLHttpRequestEventTarget._Getonloadend: TEventHandler;
  145921. begin
  145922. Result:=(TEventHandlerNonNull(ReadJSPropertyMethod('onloadend')));
  145923. end;
  145924. procedure TJSXMLHttpRequestEventTarget._Setonloadstart(const aValue : TEventHandler);
  145925. begin
  145926. WriteJSPropertyMethod('onloadstart',TMethod(aValue));
  145927. end;
  145928. procedure TJSXMLHttpRequestEventTarget._Setonprogress(const aValue : TEventHandler);
  145929. begin
  145930. WriteJSPropertyMethod('onprogress',TMethod(aValue));
  145931. end;
  145932. procedure TJSXMLHttpRequestEventTarget._Setonabort(const aValue : TEventHandler);
  145933. begin
  145934. WriteJSPropertyMethod('onabort',TMethod(aValue));
  145935. end;
  145936. procedure TJSXMLHttpRequestEventTarget._Setonerror(const aValue : TEventHandler);
  145937. begin
  145938. WriteJSPropertyMethod('onerror',TMethod(aValue));
  145939. end;
  145940. procedure TJSXMLHttpRequestEventTarget._Setonload(const aValue : TEventHandler);
  145941. begin
  145942. WriteJSPropertyMethod('onload',TMethod(aValue));
  145943. end;
  145944. procedure TJSXMLHttpRequestEventTarget._Setontimeout(const aValue : TEventHandler);
  145945. begin
  145946. WriteJSPropertyMethod('ontimeout',TMethod(aValue));
  145947. end;
  145948. procedure TJSXMLHttpRequestEventTarget._Setonloadend(const aValue : TEventHandler);
  145949. begin
  145950. WriteJSPropertyMethod('onloadend',TMethod(aValue));
  145951. end;
  145952. class function TJSXMLHttpRequestEventTarget.JSClassName: UnicodeString;
  145953. begin
  145954. Result:='XMLHttpRequestEventTarget';
  145955. end;
  145956. class function TJSXMLHttpRequestEventTarget.Cast(const Intf: IJSObject): IJSXMLHttpRequestEventTarget;
  145957. begin
  145958. Result:=TJSXMLHttpRequestEventTarget.JOBCast(Intf);
  145959. end;
  145960. class function TJSXMLHttpRequestUpload.JSClassName: UnicodeString;
  145961. begin
  145962. Result:='XMLHttpRequestUpload';
  145963. end;
  145964. class function TJSXMLHttpRequestUpload.Cast(const Intf: IJSObject): IJSXMLHttpRequestUpload;
  145965. begin
  145966. Result:=TJSXMLHttpRequestUpload.JOBCast(Intf);
  145967. end;
  145968. class function TJSOutputStream.JSClassName: UnicodeString;
  145969. begin
  145970. Result:='OutputStream';
  145971. end;
  145972. class function TJSOutputStream.Cast(const Intf: IJSObject): IJSOutputStream;
  145973. begin
  145974. Result:=TJSOutputStream.JOBCast(Intf);
  145975. end;
  145976. constructor TJSXMLSerializer.Create;
  145977. begin
  145978. JOBCreate([]);
  145979. end;
  145980. function TJSXMLSerializer.serializeToString(aRoot: IJSNode): UnicodeString;
  145981. begin
  145982. Result:=InvokeJSUnicodeStringResult('serializeToString',[aRoot]);
  145983. end;
  145984. class function TJSXMLSerializer.JSClassName: UnicodeString;
  145985. begin
  145986. Result:='XMLSerializer';
  145987. end;
  145988. class function TJSXMLSerializer.Cast(const Intf: IJSObject): IJSXMLSerializer;
  145989. begin
  145990. Result:=TJSXMLSerializer.JOBCast(Intf);
  145991. end;
  145992. constructor TJSXPathEvaluator.Create;
  145993. begin
  145994. JOBCreate([]);
  145995. end;
  145996. class function TJSXPathEvaluator.JSClassName: UnicodeString;
  145997. begin
  145998. Result:='XPathEvaluator';
  145999. end;
  146000. class function TJSXPathEvaluator.Cast(const Intf: IJSObject): IJSXPathEvaluator;
  146001. begin
  146002. Result:=TJSXPathEvaluator.JOBCast(Intf);
  146003. end;
  146004. function TJSXPathEvaluatorMixin.createExpression(const aExpression: UnicodeString; const aResolver: TXPathNSResolver): IJSXPathExpression;
  146005. var
  146006. m: TJOB_Method;
  146007. begin
  146008. m:=TJOB_Method.Create(TMethod(aResolver),@JOBCallXPathNSResolver);
  146009. try
  146010. Result:=InvokeJSObjectResult('createExpression',[aExpression,m],TJSXPathExpression) as IJSXPathExpression;
  146011. finally
  146012. m.free;
  146013. end;
  146014. end;
  146015. function TJSXPathEvaluatorMixin.createExpression(const aExpression: UnicodeString): IJSXPathExpression;
  146016. begin
  146017. Result:=InvokeJSObjectResult('createExpression',[aExpression],TJSXPathExpression) as IJSXPathExpression;
  146018. end;
  146019. function TJSXPathEvaluatorMixin.createNSResolver(aNodeResolver: IJSNode): IJSNode;
  146020. begin
  146021. Result:=InvokeJSObjectResult('createNSResolver',[aNodeResolver],TJSNode) as IJSNode;
  146022. end;
  146023. function TJSXPathEvaluatorMixin.evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word; aResult: IJSObject): IJSXPathResult;
  146024. var
  146025. m: TJOB_Method;
  146026. begin
  146027. m:=TJOB_Method.Create(TMethod(aResolver),@JOBCallXPathNSResolver);
  146028. try
  146029. Result:=InvokeJSObjectResult('evaluate',[aExpression,aContextNode,m,aType_,aResult],TJSXPathResult) as IJSXPathResult;
  146030. finally
  146031. m.free;
  146032. end;
  146033. end;
  146034. function TJSXPathEvaluatorMixin.evaluate(const aExpression: UnicodeString; aContextNode: IJSNode): IJSXPathResult;
  146035. begin
  146036. Result:=InvokeJSObjectResult('evaluate',[aExpression,aContextNode],TJSXPathResult) as IJSXPathResult;
  146037. end;
  146038. function TJSXPathEvaluatorMixin.evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver): IJSXPathResult;
  146039. var
  146040. m: TJOB_Method;
  146041. begin
  146042. m:=TJOB_Method.Create(TMethod(aResolver),@JOBCallXPathNSResolver);
  146043. try
  146044. Result:=InvokeJSObjectResult('evaluate',[aExpression,aContextNode,m],TJSXPathResult) as IJSXPathResult;
  146045. finally
  146046. m.free;
  146047. end;
  146048. end;
  146049. function TJSXPathEvaluatorMixin.evaluate(const aExpression: UnicodeString; aContextNode: IJSNode; const aResolver: TXPathNSResolver; aType_: Word): IJSXPathResult;
  146050. var
  146051. m: TJOB_Method;
  146052. begin
  146053. m:=TJOB_Method.Create(TMethod(aResolver),@JOBCallXPathNSResolver);
  146054. try
  146055. Result:=InvokeJSObjectResult('evaluate',[aExpression,aContextNode,m,aType_],TJSXPathResult) as IJSXPathResult;
  146056. finally
  146057. m.free;
  146058. end;
  146059. end;
  146060. class function TJSXPathEvaluatorMixin.JSClassName: UnicodeString;
  146061. begin
  146062. Result:='XPathEvaluatorMixin';
  146063. end;
  146064. class function TJSXPathEvaluatorMixin.Cast(const Intf: IJSObject): IJSXPathEvaluatorMixin;
  146065. begin
  146066. Result:=TJSXPathEvaluatorMixin.JOBCast(Intf);
  146067. end;
  146068. function TJSXPathExpression.evaluate(aContextNode: IJSNode; aType_: Word; aResult: IJSObject): IJSXPathResult;
  146069. begin
  146070. Result:=InvokeJSObjectResult('evaluate',[aContextNode,aType_,aResult],TJSXPathResult) as IJSXPathResult;
  146071. end;
  146072. function TJSXPathExpression.evaluate(aContextNode: IJSNode): IJSXPathResult;
  146073. begin
  146074. Result:=InvokeJSObjectResult('evaluate',[aContextNode],TJSXPathResult) as IJSXPathResult;
  146075. end;
  146076. function TJSXPathExpression.evaluate(aContextNode: IJSNode; aType_: Word): IJSXPathResult;
  146077. begin
  146078. Result:=InvokeJSObjectResult('evaluate',[aContextNode,aType_],TJSXPathResult) as IJSXPathResult;
  146079. end;
  146080. class function TJSXPathExpression.JSClassName: UnicodeString;
  146081. begin
  146082. Result:='XPathExpression';
  146083. end;
  146084. class function TJSXPathExpression.Cast(const Intf: IJSObject): IJSXPathExpression;
  146085. begin
  146086. Result:=TJSXPathExpression.JOBCast(Intf);
  146087. end;
  146088. function TJSXPathResult._GetresultType: Word;
  146089. begin
  146090. Result:=ReadJSPropertyLongInt('resultType');
  146091. end;
  146092. function TJSXPathResult._GetnumberValue: Double;
  146093. begin
  146094. Result:=ReadJSPropertyDouble('numberValue');
  146095. end;
  146096. function TJSXPathResult._GetstringValue: UnicodeString;
  146097. begin
  146098. Result:=ReadJSPropertyUnicodeString('stringValue');
  146099. end;
  146100. function TJSXPathResult._GetbooleanValue: Boolean;
  146101. begin
  146102. Result:=ReadJSPropertyBoolean('booleanValue');
  146103. end;
  146104. function TJSXPathResult._GetsingleNodeValue: IJSNode;
  146105. begin
  146106. Result:=ReadJSPropertyObject('singleNodeValue',TJSNode) as IJSNode;
  146107. end;
  146108. function TJSXPathResult._GetinvalidIteratorState: Boolean;
  146109. begin
  146110. Result:=ReadJSPropertyBoolean('invalidIteratorState');
  146111. end;
  146112. function TJSXPathResult._GetsnapshotLength: Cardinal;
  146113. begin
  146114. Result:=ReadJSPropertyInt64('snapshotLength');
  146115. end;
  146116. function TJSXPathResult.iterateNext: IJSNode;
  146117. begin
  146118. Result:=InvokeJSObjectResult('iterateNext',[],TJSNode) as IJSNode;
  146119. end;
  146120. function TJSXPathResult.snapshotItem(aIndex: Cardinal): IJSNode;
  146121. begin
  146122. Result:=InvokeJSObjectResult('snapshotItem',[aIndex],TJSNode) as IJSNode;
  146123. end;
  146124. class function TJSXPathResult.JSClassName: UnicodeString;
  146125. begin
  146126. Result:='XPathResult';
  146127. end;
  146128. class function TJSXPathResult.Cast(const Intf: IJSObject): IJSXPathResult;
  146129. begin
  146130. Result:=TJSXPathResult.JOBCast(Intf);
  146131. end;
  146132. function TJSXRInputSourceEvent._Getframe: IJSXRFrame;
  146133. begin
  146134. Result:=ReadJSPropertyObject('frame',TJSXRFrame) as IJSXRFrame;
  146135. end;
  146136. function TJSXRInputSourceEvent._GetinputSource: IJSXRInputSource;
  146137. begin
  146138. Result:=ReadJSPropertyObject('inputSource',TJSXRInputSource) as IJSXRInputSource;
  146139. end;
  146140. constructor TJSXRInputSourceEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSXRInputSourceEventInit);
  146141. begin
  146142. JOBCreate([aType_,aEventInitDict]);
  146143. end;
  146144. class function TJSXRInputSourceEvent.JSClassName: UnicodeString;
  146145. begin
  146146. Result:='XRInputSourceEvent';
  146147. end;
  146148. class function TJSXRInputSourceEvent.Cast(const Intf: IJSObject): IJSXRInputSourceEvent;
  146149. begin
  146150. Result:=TJSXRInputSourceEvent.JOBCast(Intf);
  146151. end;
  146152. function TJSXRInputSourceEventInit._Getframe: IJSXRFrame;
  146153. begin
  146154. Result:=ReadJSPropertyObject('frame',TJSXRFrame) as IJSXRFrame;
  146155. end;
  146156. function TJSXRInputSourceEventInit._GetinputSource: IJSXRInputSource;
  146157. begin
  146158. Result:=ReadJSPropertyObject('inputSource',TJSXRInputSource) as IJSXRInputSource;
  146159. end;
  146160. procedure TJSXRInputSourceEventInit._Setframe(const aValue : IJSXRFrame);
  146161. begin
  146162. WriteJSPropertyObject('frame',aValue);
  146163. end;
  146164. procedure TJSXRInputSourceEventInit._SetinputSource(const aValue : IJSXRInputSource);
  146165. begin
  146166. WriteJSPropertyObject('inputSource',aValue);
  146167. end;
  146168. class function TJSXRInputSourceEventInit.JSClassName: UnicodeString;
  146169. begin
  146170. Result:='Object';
  146171. end;
  146172. class function TJSXRInputSourceEventInit.Cast(const Intf: IJSObject): IJSXRInputSourceEventInit;
  146173. begin
  146174. Result:=TJSXRInputSourceEventInit.JOBCast(Intf);
  146175. end;
  146176. function TJSXRInputSourcesChangeEvent._Getsession: IJSXRSession;
  146177. begin
  146178. Result:=ReadJSPropertyObject('session',TJSXRSession) as IJSXRSession;
  146179. end;
  146180. function TJSXRInputSourcesChangeEvent._Getadded: TJSXRInputSourceDynArray;
  146181. begin
  146182. Result:=ReadJSPropertyObject('added',TJSArray) as TJSXRInputSourceDynArray;
  146183. end;
  146184. function TJSXRInputSourcesChangeEvent._Getremoved: TJSXRInputSourceDynArray;
  146185. begin
  146186. Result:=ReadJSPropertyObject('removed',TJSArray) as TJSXRInputSourceDynArray;
  146187. end;
  146188. constructor TJSXRInputSourcesChangeEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSXRInputSourcesChangeEventInit);
  146189. begin
  146190. JOBCreate([aType_,aEventInitDict]);
  146191. end;
  146192. class function TJSXRInputSourcesChangeEvent.JSClassName: UnicodeString;
  146193. begin
  146194. Result:='XRInputSourcesChangeEvent';
  146195. end;
  146196. class function TJSXRInputSourcesChangeEvent.Cast(const Intf: IJSObject): IJSXRInputSourcesChangeEvent;
  146197. begin
  146198. Result:=TJSXRInputSourcesChangeEvent.JOBCast(Intf);
  146199. end;
  146200. function TJSXRInputSourcesChangeEventInit._Getsession: IJSXRSession;
  146201. begin
  146202. Result:=ReadJSPropertyObject('session',TJSXRSession) as IJSXRSession;
  146203. end;
  146204. function TJSXRInputSourcesChangeEventInit._Getadded: TJSXRInputSourceDynArray;
  146205. begin
  146206. Result:=ReadJSPropertyObject('added',TJSArray) as TJSXRInputSourceDynArray;
  146207. end;
  146208. function TJSXRInputSourcesChangeEventInit._Getremoved: TJSXRInputSourceDynArray;
  146209. begin
  146210. Result:=ReadJSPropertyObject('removed',TJSArray) as TJSXRInputSourceDynArray;
  146211. end;
  146212. procedure TJSXRInputSourcesChangeEventInit._Setsession(const aValue : IJSXRSession);
  146213. begin
  146214. WriteJSPropertyObject('session',aValue);
  146215. end;
  146216. procedure TJSXRInputSourcesChangeEventInit._Setadded(const aValue : TJSXRInputSourceDynArray);
  146217. begin
  146218. WriteJSPropertyObject('added',aValue);
  146219. end;
  146220. procedure TJSXRInputSourcesChangeEventInit._Setremoved(const aValue : TJSXRInputSourceDynArray);
  146221. begin
  146222. WriteJSPropertyObject('removed',aValue);
  146223. end;
  146224. class function TJSXRInputSourcesChangeEventInit.JSClassName: UnicodeString;
  146225. begin
  146226. Result:='Object';
  146227. end;
  146228. class function TJSXRInputSourcesChangeEventInit.Cast(const Intf: IJSObject): IJSXRInputSourcesChangeEventInit;
  146229. begin
  146230. Result:=TJSXRInputSourcesChangeEventInit.JOBCast(Intf);
  146231. end;
  146232. function TJSXRReferenceSpaceEvent._GetreferenceSpace: IJSXRReferenceSpace;
  146233. begin
  146234. Result:=ReadJSPropertyObject('referenceSpace',TJSXRReferenceSpace) as IJSXRReferenceSpace;
  146235. end;
  146236. function TJSXRReferenceSpaceEvent._Gettransform: IJSXRRigidTransform;
  146237. begin
  146238. Result:=ReadJSPropertyObject('transform',TJSXRRigidTransform) as IJSXRRigidTransform;
  146239. end;
  146240. constructor TJSXRReferenceSpaceEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSXRReferenceSpaceEventInit);
  146241. begin
  146242. JOBCreate([aType_,aEventInitDict]);
  146243. end;
  146244. class function TJSXRReferenceSpaceEvent.JSClassName: UnicodeString;
  146245. begin
  146246. Result:='XRReferenceSpaceEvent';
  146247. end;
  146248. class function TJSXRReferenceSpaceEvent.Cast(const Intf: IJSObject): IJSXRReferenceSpaceEvent;
  146249. begin
  146250. Result:=TJSXRReferenceSpaceEvent.JOBCast(Intf);
  146251. end;
  146252. function TJSXRReferenceSpaceEventInit._GetreferenceSpace: IJSXRReferenceSpace;
  146253. begin
  146254. Result:=ReadJSPropertyObject('referenceSpace',TJSXRReferenceSpace) as IJSXRReferenceSpace;
  146255. end;
  146256. function TJSXRReferenceSpaceEventInit._Gettransform: IJSXRRigidTransform;
  146257. begin
  146258. Result:=ReadJSPropertyObject('transform',TJSXRRigidTransform) as IJSXRRigidTransform;
  146259. end;
  146260. procedure TJSXRReferenceSpaceEventInit._SetreferenceSpace(const aValue : IJSXRReferenceSpace);
  146261. begin
  146262. WriteJSPropertyObject('referenceSpace',aValue);
  146263. end;
  146264. procedure TJSXRReferenceSpaceEventInit._Settransform(const aValue : IJSXRRigidTransform);
  146265. begin
  146266. WriteJSPropertyObject('transform',aValue);
  146267. end;
  146268. class function TJSXRReferenceSpaceEventInit.JSClassName: UnicodeString;
  146269. begin
  146270. Result:='Object';
  146271. end;
  146272. class function TJSXRReferenceSpaceEventInit.Cast(const Intf: IJSObject): IJSXRReferenceSpaceEventInit;
  146273. begin
  146274. Result:=TJSXRReferenceSpaceEventInit.JOBCast(Intf);
  146275. end;
  146276. function TJSXRSessionEvent._Getsession: IJSXRSession;
  146277. begin
  146278. Result:=ReadJSPropertyObject('session',TJSXRSession) as IJSXRSession;
  146279. end;
  146280. constructor TJSXRSessionEvent.Create(const aType_: UnicodeString; const aEventInitDict: TJSXRSessionEventInit);
  146281. begin
  146282. JOBCreate([aType_,aEventInitDict]);
  146283. end;
  146284. class function TJSXRSessionEvent.JSClassName: UnicodeString;
  146285. begin
  146286. Result:='XRSessionEvent';
  146287. end;
  146288. class function TJSXRSessionEvent.Cast(const Intf: IJSObject): IJSXRSessionEvent;
  146289. begin
  146290. Result:=TJSXRSessionEvent.JOBCast(Intf);
  146291. end;
  146292. function TJSXRSessionEventInit._Getsession: IJSXRSession;
  146293. begin
  146294. Result:=ReadJSPropertyObject('session',TJSXRSession) as IJSXRSession;
  146295. end;
  146296. procedure TJSXRSessionEventInit._Setsession(const aValue : IJSXRSession);
  146297. begin
  146298. WriteJSPropertyObject('session',aValue);
  146299. end;
  146300. class function TJSXRSessionEventInit.JSClassName: UnicodeString;
  146301. begin
  146302. Result:='Object';
  146303. end;
  146304. class function TJSXRSessionEventInit.Cast(const Intf: IJSObject): IJSXRSessionEventInit;
  146305. begin
  146306. Result:=TJSXRSessionEventInit.JOBCast(Intf);
  146307. end;
  146308. constructor TJSXSLTProcessor.Create;
  146309. begin
  146310. JOBCreate([]);
  146311. end;
  146312. procedure TJSXSLTProcessor.importStylesheet(aStyle: IJSNode);
  146313. begin
  146314. InvokeJSNoResult('importStylesheet',[aStyle]);
  146315. end;
  146316. function TJSXSLTProcessor.transformToFragment(aSource: IJSNode; aOutput: IJSDocument): IJSDocumentFragment;
  146317. begin
  146318. Result:=InvokeJSObjectResult('transformToFragment',[aSource,aOutput],TJSDocumentFragment) as IJSDocumentFragment;
  146319. end;
  146320. function TJSXSLTProcessor.transformToDocument(aSource: IJSNode): IJSDocument;
  146321. begin
  146322. Result:=InvokeJSObjectResult('transformToDocument',[aSource],TJSDocument) as IJSDocument;
  146323. end;
  146324. procedure TJSXSLTProcessor.setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: Boolean);
  146325. begin
  146326. InvokeJSNoResult('setParameter',[aNamespaceURI,aLocalName,aValue]);
  146327. end;
  146328. procedure TJSXSLTProcessor.setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; const aValue: UnicodeString);
  146329. begin
  146330. InvokeJSNoResult('setParameter',[aNamespaceURI,aLocalName,aValue]);
  146331. end;
  146332. procedure TJSXSLTProcessor.setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: IJSNode);
  146333. begin
  146334. InvokeJSNoResult('setParameter',[aNamespaceURI,aLocalName,aValue]);
  146335. end;
  146336. procedure TJSXSLTProcessor.setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; const aValue: TIJSNodeDynArray);
  146337. begin
  146338. InvokeJSNoResult('setParameter',[aNamespaceURI,aLocalName,aValue]);
  146339. end;
  146340. procedure TJSXSLTProcessor.setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: Double);
  146341. begin
  146342. InvokeJSNoResult('setParameter',[aNamespaceURI,aLocalName,aValue]);
  146343. end;
  146344. procedure TJSXSLTProcessor.setParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString; aValue: IJSXPathResult);
  146345. begin
  146346. InvokeJSNoResult('setParameter',[aNamespaceURI,aLocalName,aValue]);
  146347. end;
  146348. function TJSXSLTProcessor.getParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString): TXSLTParameterValue;
  146349. begin
  146350. Result:=InvokeJSVariantResult('getParameter',[aNamespaceURI,aLocalName]);
  146351. end;
  146352. procedure TJSXSLTProcessor.removeParameter(const aNamespaceURI: UnicodeString; const aLocalName: UnicodeString);
  146353. begin
  146354. InvokeJSNoResult('removeParameter',[aNamespaceURI,aLocalName]);
  146355. end;
  146356. procedure TJSXSLTProcessor.clearParameters;
  146357. begin
  146358. InvokeJSNoResult('clearParameters',[]);
  146359. end;
  146360. procedure TJSXSLTProcessor.reset;
  146361. begin
  146362. InvokeJSNoResult('reset',[]);
  146363. end;
  146364. class function TJSXSLTProcessor.JSClassName: UnicodeString;
  146365. begin
  146366. Result:='XSLTProcessor';
  146367. end;
  146368. class function TJSXSLTProcessor.Cast(const Intf: IJSObject): IJSXSLTProcessor;
  146369. begin
  146370. Result:=TJSXSLTProcessor.JOBCast(Intf);
  146371. end;
  146372. initialization
  146373. JSDocument:=TJSDocument.JOBCreateGlobal('document');
  146374. JSWindow:=TJSWindow.JOBCreateGlobal('window');
  146375. console:=TJSconsole.JOBCreateGlobal('console');
  146376. CSS:=TJSCSS.JOBCreateGlobal('CSS');
  146377. finalization
  146378. JSDocument.Free;
  146379. JSWindow.Free;
  146380. console:=Nil;
  146381. CSS:=Nil;
  146382. end.